@acorex/modules 20.2.0-next.2 → 20.2.0-next.3
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/index.d.ts +1 -0
- package/common/index.d.ts +1 -8
- package/contact-management/index.d.ts +69 -2
- package/conversation/README.md +1 -1
- package/conversation/index.d.ts +180 -121
- package/data-management/index.d.ts +5 -12
- package/document-management/index.d.ts +51 -4
- package/fesm2022/{acorex-modules-application-management-module-designer.component-udoks-Ef.mjs → acorex-modules-application-management-module-designer.component-CsZjqUAj.mjs} +7 -7
- package/fesm2022/{acorex-modules-application-management-module-designer.component-udoks-Ef.mjs.map → acorex-modules-application-management-module-designer.component-CsZjqUAj.mjs.map} +1 -1
- package/fesm2022/acorex-modules-application-management.mjs +41 -41
- package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-BxqN76H7.mjs → acorex-modules-auth-acorex-modules-auth-tDyQQDnk.mjs} +50 -49
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-tDyQQDnk.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-app-chooser.component-5FbgqbVo.mjs → acorex-modules-auth-app-chooser.component-yu1DJZKN.mjs} +5 -5
- package/fesm2022/{acorex-modules-auth-app-chooser.component-5FbgqbVo.mjs.map → acorex-modules-auth-app-chooser.component-yu1DJZKN.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-blank.layout-C8NsXB9K.mjs → acorex-modules-auth-blank.layout-ZjroQcdq.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-blank.layout-C8NsXB9K.mjs.map → acorex-modules-auth-blank.layout-ZjroQcdq.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-login.module-CmMM4TpQ.mjs → acorex-modules-auth-login.module-D1aa1F6G.mjs} +8 -8
- package/fesm2022/{acorex-modules-auth-login.module-CmMM4TpQ.mjs.map → acorex-modules-auth-login.module-D1aa1F6G.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-master.layout-eX5-7AeO.mjs → acorex-modules-auth-master.layout-CGQmSlGQ.mjs} +5 -5
- package/fesm2022/{acorex-modules-auth-master.layout-eX5-7AeO.mjs.map → acorex-modules-auth-master.layout-CGQmSlGQ.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-oauth-callback.component-C9s-5c7F.mjs → acorex-modules-auth-oauth-callback.component-m9YiJ4e9.mjs} +5 -5
- package/fesm2022/{acorex-modules-auth-oauth-callback.component-C9s-5c7F.mjs.map → acorex-modules-auth-oauth-callback.component-m9YiJ4e9.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-CDrYHh1x.mjs → acorex-modules-auth-password.component-Cb3FJ1DZ.mjs} +5 -5
- package/fesm2022/{acorex-modules-auth-password.component-CDrYHh1x.mjs.map → acorex-modules-auth-password.component-Cb3FJ1DZ.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-r_Lh8oGN.mjs → acorex-modules-auth-password.component-CiWdX7f_.mjs} +5 -5
- package/fesm2022/{acorex-modules-auth-password.component-r_Lh8oGN.mjs.map → acorex-modules-auth-password.component-CiWdX7f_.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-routes-CMdsDZud.mjs → acorex-modules-auth-routes-pae8qpX9.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-CMdsDZud.mjs.map → acorex-modules-auth-routes-pae8qpX9.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-tenant-chooser.component-BdK5T-8X.mjs → acorex-modules-auth-tenant-chooser.component-Bk0l3XoV.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-tenant-chooser.component-BdK5T-8X.mjs.map → acorex-modules-auth-tenant-chooser.component-Bk0l3XoV.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor-code.component-DSWd06bn.mjs → acorex-modules-auth-two-factor-code.component-DDEIajiI.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-two-factor-code.component-DSWd06bn.mjs.map → acorex-modules-auth-two-factor-code.component-DDEIajiI.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module-YV9pDOnB.mjs → acorex-modules-auth-two-factor.module-DtcoHPH4.mjs} +7 -7
- package/fesm2022/{acorex-modules-auth-two-factor.module-YV9pDOnB.mjs.map → acorex-modules-auth-two-factor.module-DtcoHPH4.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-user-sessions.component-KI9dYs78.mjs → acorex-modules-auth-user-sessions.component-sI6P2joA.mjs} +5 -5
- package/fesm2022/{acorex-modules-auth-user-sessions.component-KI9dYs78.mjs.map → acorex-modules-auth-user-sessions.component-sI6P2joA.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth.mjs +1 -1
- package/fesm2022/acorex-modules-calendar-management.mjs +22 -22
- package/fesm2022/acorex-modules-calendar-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-common-search-popup.component-DbTj01Wz.mjs → acorex-modules-common-search-popup.component-D7Y4T3Rp.mjs} +8 -8
- package/fesm2022/{acorex-modules-common-search-popup.component-DbTj01Wz.mjs.map → acorex-modules-common-search-popup.component-D7Y4T3Rp.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-common-timeline-version-history-popup.component-D_6STmWm.mjs → acorex-modules-common-timeline-version-history-popup.component-ceEtE6qB.mjs} +7 -7
- package/fesm2022/{acorex-modules-common-timeline-version-history-popup.component-D_6STmWm.mjs.map → acorex-modules-common-timeline-version-history-popup.component-ceEtE6qB.mjs.map} +1 -1
- package/fesm2022/acorex-modules-common.mjs +1222 -1
- package/fesm2022/acorex-modules-common.mjs.map +1 -1
- package/fesm2022/{acorex-modules-contact-management-acorex-modules-contact-management-CM72FkGM.mjs → acorex-modules-contact-management-acorex-modules-contact-management-Co0tt3cj.mjs} +281 -54
- package/fesm2022/acorex-modules-contact-management-acorex-modules-contact-management-Co0tt3cj.mjs.map +1 -0
- package/fesm2022/{acorex-modules-contact-management-address-type.entity-CW0fx3v8.mjs → acorex-modules-contact-management-address-type.entity-DQZwgXki.mjs} +2 -2
- package/fesm2022/{acorex-modules-contact-management-address-type.entity-CW0fx3v8.mjs.map → acorex-modules-contact-management-address-type.entity-DQZwgXki.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-contact-management-contact-address.entity-D5OGWsSx.mjs → acorex-modules-contact-management-contact-address.entity-CFfRywsB.mjs} +2 -2
- package/fesm2022/{acorex-modules-contact-management-contact-address.entity-D5OGWsSx.mjs.map → acorex-modules-contact-management-contact-address.entity-CFfRywsB.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-contact-management-contact-method.entity-Cpdd-Xwb.mjs → acorex-modules-contact-management-contact-method.entity-Ci93_mb9.mjs} +2 -2
- package/fesm2022/{acorex-modules-contact-management-contact-method.entity-Cpdd-Xwb.mjs.map → acorex-modules-contact-management-contact-method.entity-Ci93_mb9.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-contact-management-contact-relationship.entity-B_gQ7mEo.mjs → acorex-modules-contact-management-contact-relationship.entity-CqdXpqLN.mjs} +2 -2
- package/fesm2022/{acorex-modules-contact-management-contact-relationship.entity-B_gQ7mEo.mjs.map → acorex-modules-contact-management-contact-relationship.entity-CqdXpqLN.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-contact-management-contact-source.entity-BwYBaS8B.mjs → acorex-modules-contact-management-contact-source.entity-BsF9p0GK.mjs} +2 -2
- package/fesm2022/{acorex-modules-contact-management-contact-source.entity-BwYBaS8B.mjs.map → acorex-modules-contact-management-contact-source.entity-BsF9p0GK.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-contact-management-emergency-contact-category.entity-CDbm4Rq3.mjs → acorex-modules-contact-management-emergency-contact-category.entity-DjOm8qQb.mjs} +2 -2
- package/fesm2022/{acorex-modules-contact-management-emergency-contact-category.entity-CDbm4Rq3.mjs.map → acorex-modules-contact-management-emergency-contact-category.entity-DjOm8qQb.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-contact-management-emergency-contact.entity-BpNDJPVs.mjs → acorex-modules-contact-management-emergency-contact.entity-BQyjzPR8.mjs} +2 -2
- package/fesm2022/{acorex-modules-contact-management-emergency-contact.entity-BpNDJPVs.mjs.map → acorex-modules-contact-management-emergency-contact.entity-BQyjzPR8.mjs.map} +1 -1
- package/fesm2022/acorex-modules-contact-management.mjs +1 -1
- package/fesm2022/acorex-modules-content-management.mjs +14 -36
- package/fesm2022/acorex-modules-content-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-conversation.mjs +1549 -1324
- package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
- package/fesm2022/acorex-modules-dashboard-management.mjs +76 -75
- package/fesm2022/acorex-modules-dashboard-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-data-management.mjs +140 -126
- package/fesm2022/acorex-modules-data-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-C7ot6PfT.mjs → acorex-modules-document-management-acorex-modules-document-management-DXGX-riG.mjs} +1402 -389
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-DXGX-riG.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-C6pop0RM.mjs → acorex-modules-document-management-attachment-widget.component-NaY7Mn95.mjs} +5 -5
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-C6pop0RM.mjs.map → acorex-modules-document-management-attachment-widget.component-NaY7Mn95.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-ga7fuY4H.mjs → acorex-modules-document-management-create-folder-dialog.component-epxEuBU5.mjs} +5 -5
- package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-ga7fuY4H.mjs.map → acorex-modules-document-management-create-folder-dialog.component-epxEuBU5.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-details-view.component-CzTg3hha.mjs → acorex-modules-document-management-details-view.component-CMI2Eokj.mjs} +5 -5
- package/fesm2022/{acorex-modules-document-management-details-view.component-CzTg3hha.mjs.map → acorex-modules-document-management-details-view.component-CMI2Eokj.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-BB5d32EI.mjs → acorex-modules-document-management-drive-choose.component-DBKgwm70.mjs} +5 -5
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-BB5d32EI.mjs.map → acorex-modules-document-management-drive-choose.component-DBKgwm70.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive.component-TzRLr7rb.mjs → acorex-modules-document-management-drive.component-DoGdTL3n.mjs} +11 -10
- package/fesm2022/acorex-modules-document-management-drive.component-DoGdTL3n.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-BeKFvgYU.mjs → acorex-modules-document-management-large-icons-view.component-BRsTSoln.mjs} +5 -5
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-BeKFvgYU.mjs.map → acorex-modules-document-management-large-icons-view.component-BRsTSoln.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-CQyiGE99.mjs → acorex-modules-document-management-large-tiles-view.component-CpYeYyR5.mjs} +5 -5
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-CQyiGE99.mjs.map → acorex-modules-document-management-large-tiles-view.component-CpYeYyR5.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-link-dialog.component-CPuOuvu-.mjs → acorex-modules-document-management-link-dialog.component-ZteosW8O.mjs} +4 -4
- package/fesm2022/{acorex-modules-document-management-link-dialog.component-CPuOuvu-.mjs.map → acorex-modules-document-management-link-dialog.component-ZteosW8O.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-list-view.component-CWGGArxw.mjs → acorex-modules-document-management-list-view.component-C4VFnACA.mjs} +5 -5
- package/fesm2022/{acorex-modules-document-management-list-view.component-CWGGArxw.mjs.map → acorex-modules-document-management-list-view.component-C4VFnACA.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-meta-choose-popup.component-C7ounW6N.mjs → acorex-modules-document-management-meta-choose-popup.component-D5Csi3A3.mjs} +4 -4
- package/fesm2022/{acorex-modules-document-management-meta-choose-popup.component-C7ounW6N.mjs.map → acorex-modules-document-management-meta-choose-popup.component-D5Csi3A3.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-meta-selector-widget-column.component-C_J1rPak.mjs → acorex-modules-document-management-meta-selector-widget-column.component-OXeS0kW8.mjs} +4 -4
- package/fesm2022/{acorex-modules-document-management-meta-selector-widget-column.component-C_J1rPak.mjs.map → acorex-modules-document-management-meta-selector-widget-column.component-OXeS0kW8.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-meta-selector-widget-designer.component-By_NgUX6.mjs → acorex-modules-document-management-meta-selector-widget-designer.component-BdVSGb3M.mjs} +4 -4
- package/fesm2022/{acorex-modules-document-management-meta-selector-widget-designer.component-By_NgUX6.mjs.map → acorex-modules-document-management-meta-selector-widget-designer.component-BdVSGb3M.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-meta-selector-widget-view.component-zwCw3v1w.mjs → acorex-modules-document-management-meta-selector-widget-view.component-B-Vos30P.mjs} +4 -4
- package/fesm2022/{acorex-modules-document-management-meta-selector-widget-view.component-zwCw3v1w.mjs.map → acorex-modules-document-management-meta-selector-widget-view.component-B-Vos30P.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-permission-definition.provider-s0P0M8p2.mjs → acorex-modules-document-management-permission-definition.provider-Bc7rbWwN.mjs} +10 -2
- package/fesm2022/acorex-modules-document-management-permission-definition.provider-Bc7rbWwN.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-MPkYZl2p.mjs → acorex-modules-document-management-rename-node-dialog.component-DWUVMrVt.mjs} +5 -5
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-MPkYZl2p.mjs.map → acorex-modules-document-management-rename-node-dialog.component-DWUVMrVt.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-share-dialog.component-CLF6b1Io.mjs → acorex-modules-document-management-share-dialog.component-CkyuEAwV.mjs} +4 -4
- package/fesm2022/{acorex-modules-document-management-share-dialog.component-CLF6b1Io.mjs.map → acorex-modules-document-management-share-dialog.component-CkyuEAwV.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-share-email-dialog.component-B8zNvOUv.mjs → acorex-modules-document-management-share-email-dialog.component-DXjcTOny.mjs} +4 -4
- package/fesm2022/{acorex-modules-document-management-share-email-dialog.component-B8zNvOUv.mjs.map → acorex-modules-document-management-share-email-dialog.component-DXjcTOny.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-DRVLlW1e.mjs → acorex-modules-document-management-small-icons-view.component-CCirsfoz.mjs} +5 -5
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-DRVLlW1e.mjs.map → acorex-modules-document-management-small-icons-view.component-CCirsfoz.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-C1E8RKYM.mjs → acorex-modules-document-management-small-tiles-view.component-58KZSQC4.mjs} +5 -5
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-C1E8RKYM.mjs.map → acorex-modules-document-management-small-tiles-view.component-58KZSQC4.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-zz8KU2BM.mjs → acorex-modules-form-template-management-acorex-modules-form-template-management-DxSYInAR.mjs} +65 -67
- package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-DxSYInAR.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-category.entity-g5YGQjj3.mjs → acorex-modules-form-template-management-category.entity-DeCfvNqF.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-category.entity-g5YGQjj3.mjs.map → acorex-modules-form-template-management-category.entity-DeCfvNqF.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-designer.page-DQorNK3f.mjs → acorex-modules-form-template-management-designer.page-BsjFGFOD.mjs} +4 -4
- package/fesm2022/{acorex-modules-form-template-management-designer.page-DQorNK3f.mjs.map → acorex-modules-form-template-management-designer.page-BsjFGFOD.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-permission-definition.provider-BFPqDVO3.mjs → acorex-modules-form-template-management-permission-definition.provider-CsjgxSgC.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-permission-definition.provider-BFPqDVO3.mjs.map → acorex-modules-form-template-management-permission-definition.provider-CsjgxSgC.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-settings.provider-DYbrgJI7.mjs → acorex-modules-form-template-management-settings.provider-_BIGyRt8.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-settings.provider-DYbrgJI7.mjs.map → acorex-modules-form-template-management-settings.provider-_BIGyRt8.mjs.map} +1 -1
- package/fesm2022/acorex-modules-form-template-management-template-picker.component-BCg756yD.mjs +224 -0
- package/fesm2022/acorex-modules-form-template-management-template-picker.component-BCg756yD.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-CCL7xNSm.mjs → acorex-modules-form-template-management-template-widget-edit.component-DkqRsXMq.mjs} +5 -5
- package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-CCL7xNSm.mjs.map → acorex-modules-form-template-management-template-widget-edit.component-DkqRsXMq.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-template.entity-XNBsmQZY.mjs → acorex-modules-form-template-management-template.entity-CQm29n5v.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-template.entity-XNBsmQZY.mjs.map → acorex-modules-form-template-management-template.entity-CQm29n5v.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-Bw9VbGx7.mjs → acorex-modules-form-template-management-viewer-popup.component-DW2Z5EcJ.mjs} +12 -19
- package/fesm2022/acorex-modules-form-template-management-viewer-popup.component-DW2Z5EcJ.mjs.map +1 -0
- package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
- package/fesm2022/{acorex-modules-issue-management-acorex-modules-issue-management-ITP4K-tZ.mjs → acorex-modules-issue-management-acorex-modules-issue-management-a_wcGVPh.mjs} +31 -35
- package/fesm2022/acorex-modules-issue-management-acorex-modules-issue-management-a_wcGVPh.mjs.map +1 -0
- package/fesm2022/{acorex-modules-issue-management-capture-screen.component-C1USFJeP.mjs → acorex-modules-issue-management-capture-screen.component-CsahsE-E.mjs} +5 -5
- package/fesm2022/{acorex-modules-issue-management-capture-screen.component-C1USFJeP.mjs.map → acorex-modules-issue-management-capture-screen.component-CsahsE-E.mjs.map} +1 -1
- package/fesm2022/acorex-modules-issue-management.mjs +1 -1
- package/fesm2022/acorex-modules-locale-management-acorex-modules-locale-management-CfaOC6U5.mjs +1975 -0
- package/fesm2022/acorex-modules-locale-management-acorex-modules-locale-management-CfaOC6U5.mjs.map +1 -0
- package/fesm2022/acorex-modules-locale-management-profiles-MJ9xFTtp.mjs +19 -0
- package/fesm2022/acorex-modules-locale-management-profiles-MJ9xFTtp.mjs.map +1 -0
- package/fesm2022/{acorex-modules-common-settings.provider-DPVsF4c9.mjs → acorex-modules-locale-management-settings.provider-PKnqTses.mjs} +6 -6
- package/fesm2022/acorex-modules-locale-management-settings.provider-PKnqTses.mjs.map +1 -0
- package/fesm2022/acorex-modules-locale-management.mjs +2 -0
- package/fesm2022/acorex-modules-locale-management.mjs.map +1 -0
- package/fesm2022/acorex-modules-location-management.mjs +3139 -0
- package/fesm2022/acorex-modules-location-management.mjs.map +1 -0
- package/fesm2022/acorex-modules-log-management.mjs +160 -35
- package/fesm2022/acorex-modules-log-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-notification-management.mjs +149 -123
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-organization-management-add-item.component-Dr-bwC4K.mjs → acorex-modules-organization-management-add-item.component-CzIIXsRJ.mjs} +4 -4
- package/fesm2022/{acorex-modules-organization-management-add-item.component-Dr-bwC4K.mjs.map → acorex-modules-organization-management-add-item.component-CzIIXsRJ.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.page-a2JPiCy9.mjs → acorex-modules-organization-management-org-chart-configuration.page-XXAEpYNo.mjs} +5 -5
- package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.page-a2JPiCy9.mjs.map → acorex-modules-organization-management-org-chart-configuration.page-XXAEpYNo.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.service-BkfSow3s.mjs → acorex-modules-organization-management-org-chart-configuration.service-CIveMQUH.mjs} +4 -4
- package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.service-BkfSow3s.mjs.map → acorex-modules-organization-management-org-chart-configuration.service-CIveMQUH.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-org-chart.page-CXhtYrCS.mjs → acorex-modules-organization-management-org-chart.page-UqJ1VOJ-.mjs} +15 -14
- package/fesm2022/acorex-modules-organization-management-org-chart.page-UqJ1VOJ-.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-settings.provider-hlbUXugb.mjs → acorex-modules-organization-management-settings.provider-feVwZnkw.mjs} +6 -30
- package/fesm2022/acorex-modules-organization-management-settings.provider-feVwZnkw.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management.mjs +128 -124
- package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-platform-management-list-version.component-BOfUQDwo.mjs → acorex-modules-platform-management-list-version.component-wqhq6ek4.mjs} +4 -4
- package/fesm2022/{acorex-modules-platform-management-list-version.component-BOfUQDwo.mjs.map → acorex-modules-platform-management-list-version.component-wqhq6ek4.mjs.map} +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs +91 -303
- package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-project-management.mjs +232 -453
- package/fesm2022/acorex-modules-project-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-report-management-report-create-root.component-Cv88TDx7.mjs → acorex-modules-report-management-report-create-root.component-CFNtnshF.mjs} +4 -4
- package/fesm2022/{acorex-modules-report-management-report-create-root.component-Cv88TDx7.mjs.map → acorex-modules-report-management-report-create-root.component-CFNtnshF.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-report-management-report-runner-root-page.component-DHu-kyCd.mjs → acorex-modules-report-management-report-runner-root-page.component-CbfJ_7Da.mjs} +7 -7
- package/fesm2022/{acorex-modules-report-management-report-runner-root-page.component-DHu-kyCd.mjs.map → acorex-modules-report-management-report-runner-root-page.component-CbfJ_7Da.mjs.map} +1 -1
- package/fesm2022/acorex-modules-report-management.mjs +24 -24
- package/fesm2022/acorex-modules-report-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-scheduler-job-management.mjs +14 -14
- package/fesm2022/acorex-modules-scheduler-job-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-security-management.mjs +97 -61
- package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-settings-management-setting-page.component-cG4ykm2g.mjs → acorex-modules-settings-management-setting-page.component-BhF5x-8D.mjs} +12 -6
- package/fesm2022/acorex-modules-settings-management-setting-page.component-BhF5x-8D.mjs.map +1 -0
- package/fesm2022/{acorex-modules-settings-management-setting-view.component-CrEK2N1U.mjs → acorex-modules-settings-management-setting-view.component-Do_gNJ2t.mjs} +4 -4
- package/fesm2022/{acorex-modules-settings-management-setting-view.component-CrEK2N1U.mjs.map → acorex-modules-settings-management-setting-view.component-Do_gNJ2t.mjs.map} +1 -1
- package/fesm2022/acorex-modules-settings-management.mjs +9 -7
- package/fesm2022/acorex-modules-settings-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-task-management.mjs +5937 -0
- package/fesm2022/acorex-modules-task-management.mjs.map +1 -0
- package/fesm2022/acorex-modules-text-template-management.mjs +24 -24
- package/fesm2022/acorex-modules-text-template-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-training-management.mjs +43 -43
- package/fesm2022/acorex-modules-training-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-workflow-management-acorex-modules-workflow-management-DnSdOSmj.mjs → acorex-modules-workflow-management-acorex-modules-workflow-management-DC7jdoqZ.mjs} +60 -29
- package/fesm2022/acorex-modules-workflow-management-acorex-modules-workflow-management-DC7jdoqZ.mjs.map +1 -0
- package/fesm2022/{acorex-modules-workflow-management-task-board.page-Bzu4j4VW.mjs → acorex-modules-workflow-management-task-board.page-Bv2GAPaN.mjs} +197 -183
- package/fesm2022/acorex-modules-workflow-management-task-board.page-Bv2GAPaN.mjs.map +1 -0
- package/fesm2022/acorex-modules-workflow-management.mjs +1 -1
- package/locale-management/README.md +3 -0
- package/locale-management/index.d.ts +182 -0
- package/location-management/README.md +3 -0
- package/location-management/index.d.ts +166 -0
- package/notification-management/index.d.ts +14 -5
- package/package.json +17 -5
- package/task-management/README.md +189 -0
- package/task-management/index.d.ts +320 -0
- package/workflow-management/index.d.ts +8 -3
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-BxqN76H7.mjs.map +0 -1
- package/fesm2022/acorex-modules-common-acorex-modules-common-D06CT4CO.mjs +0 -1657
- package/fesm2022/acorex-modules-common-acorex-modules-common-D06CT4CO.mjs.map +0 -1
- package/fesm2022/acorex-modules-common-settings.provider-DPVsF4c9.mjs.map +0 -1
- package/fesm2022/acorex-modules-contact-management-acorex-modules-contact-management-CM72FkGM.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-C7ot6PfT.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-drive.component-TzRLr7rb.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-permission-definition.provider-s0P0M8p2.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-zz8KU2BM.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-template-picker.component-DgH_DUIB.mjs +0 -196
- package/fesm2022/acorex-modules-form-template-management-template-picker.component-DgH_DUIB.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-viewer-popup.component-Bw9VbGx7.mjs.map +0 -1
- package/fesm2022/acorex-modules-issue-management-acorex-modules-issue-management-ITP4K-tZ.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-org-chart.page-CXhtYrCS.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-settings.provider-hlbUXugb.mjs.map +0 -1
- package/fesm2022/acorex-modules-settings-management-setting-page.component-cG4ykm2g.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-acorex-modules-workflow-management-DnSdOSmj.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-task-board.page-Bzu4j4VW.mjs.map +0 -1
|
@@ -1,2 +1,1223 @@
|
|
|
1
|
-
|
|
1
|
+
import { AXPSessionService, AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex/platform/auth';
|
|
2
|
+
import { AXPHomePageService, AXPSearchCommandProvider, AXPSearchService, AXPSettingService, AXPLockService, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_SEARCH_PROVIDER } from '@acorex/platform/common';
|
|
3
|
+
import { AXPEntityDefinitionRegistryService, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { inject, Injector, Injectable, input, signal, ViewEncapsulation, Component, NgModule, InjectionToken, HostListener, computed, viewChild } from '@angular/core';
|
|
6
|
+
import { firstValueFrom, Subject } from 'rxjs';
|
|
7
|
+
import * as i1$2 from '@acorex/platform/core';
|
|
8
|
+
import { objectKeyValueTransforms, AXPPlatformScope, AXPActivityLogService, AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER } from '@acorex/platform/core';
|
|
9
|
+
import * as i4 from '@acorex/core/translation';
|
|
10
|
+
import { AXTranslationService, AXTranslationModule } from '@acorex/core/translation';
|
|
11
|
+
import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
|
|
12
|
+
import { AXPWidgetsModule } from '@acorex/platform/widgets';
|
|
13
|
+
import * as i1$1 from '@acorex/platform/workflow';
|
|
14
|
+
import { AXPWorkflowAction, AXPWorkflowModule, AXPWorkflowService } from '@acorex/platform/workflow';
|
|
15
|
+
import * as i1 from '@angular/common';
|
|
16
|
+
import { CommonModule } from '@angular/common';
|
|
17
|
+
import * as i2 from '@acorex/components/button';
|
|
18
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
19
|
+
import { AXBasePageComponent } from '@acorex/components/page';
|
|
20
|
+
import * as i3 from '@acorex/components/decorators';
|
|
21
|
+
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
22
|
+
import * as i2$1 from '@acorex/platform/layout/components';
|
|
23
|
+
import { AXPCompareViewComponent, AXPComponentSlotModule } from '@acorex/platform/layout/components';
|
|
24
|
+
import { AXPopupService } from '@acorex/components/popup';
|
|
25
|
+
import { AXFormatService } from '@acorex/core/format';
|
|
26
|
+
import { AXTextBoxModule } from '@acorex/components/text-box';
|
|
27
|
+
import { AXDialogService } from '@acorex/components/dialog';
|
|
28
|
+
import * as i1$3 from '@angular/forms';
|
|
29
|
+
import { FormsModule } from '@angular/forms';
|
|
30
|
+
import * as i4$1 from '@acorex/components/form';
|
|
31
|
+
import { AXFormModule } from '@acorex/components/form';
|
|
32
|
+
import * as i5 from '@acorex/components/label';
|
|
33
|
+
import { AXLabelModule } from '@acorex/components/label';
|
|
34
|
+
import * as i6 from '@acorex/components/select-box';
|
|
35
|
+
import { AXSelectBoxModule } from '@acorex/components/select-box';
|
|
36
|
+
import * as i7 from '@acorex/components/text-area';
|
|
37
|
+
import { AXTextAreaModule } from '@acorex/components/text-area';
|
|
38
|
+
import { AXValidationModule } from '@acorex/core/validation';
|
|
39
|
+
import { AXCalendarService } from '@acorex/core/date-time';
|
|
40
|
+
|
|
41
|
+
const config = {
|
|
42
|
+
i18n: 'common',
|
|
43
|
+
};
|
|
44
|
+
const RootConfig = {
|
|
45
|
+
config,
|
|
46
|
+
module: {
|
|
47
|
+
module: 'common',
|
|
48
|
+
name: 'Common',
|
|
49
|
+
title: `t('module-name', {scope:"${config.i18n}"})`,
|
|
50
|
+
icon: 'fa-light fa-file-invoice',
|
|
51
|
+
},
|
|
52
|
+
entities: {},
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
class AXMEntityProvider {
|
|
56
|
+
constructor() {
|
|
57
|
+
this.injector = inject(Injector);
|
|
58
|
+
}
|
|
59
|
+
preload() {
|
|
60
|
+
const module = RootConfig.module.name;
|
|
61
|
+
return Array.from(Object.values(RootConfig.entities)).map((entity) => ({
|
|
62
|
+
module: module,
|
|
63
|
+
entity: entity.name,
|
|
64
|
+
}));
|
|
65
|
+
}
|
|
66
|
+
async get(moduleName, entityName) {
|
|
67
|
+
if (moduleName == RootConfig.module.name) {
|
|
68
|
+
switch (entityName) {
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMEntityProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
74
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMEntityProvider }); }
|
|
75
|
+
}
|
|
76
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMEntityProvider, decorators: [{
|
|
77
|
+
type: Injectable
|
|
78
|
+
}] });
|
|
79
|
+
|
|
80
|
+
class AXMMenuProvider {
|
|
81
|
+
constructor() {
|
|
82
|
+
this.sessionService = inject(AXPSessionService);
|
|
83
|
+
this.homePageService = inject(AXPHomePageService);
|
|
84
|
+
}
|
|
85
|
+
async provide(context) {
|
|
86
|
+
const scope = RootConfig.config.i18n;
|
|
87
|
+
const module = RootConfig.module;
|
|
88
|
+
const appName = this.sessionService.application?.name;
|
|
89
|
+
const isAuthorized = await firstValueFrom(this.sessionService.isAuthorized$);
|
|
90
|
+
if (!isAuthorized) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
//
|
|
94
|
+
const homePagePath = this.homePageService.getCurrent().path;
|
|
95
|
+
if (homePagePath) {
|
|
96
|
+
context.addItems([
|
|
97
|
+
{
|
|
98
|
+
priority: -9,
|
|
99
|
+
text: `t('home',{scope:'common'})`,
|
|
100
|
+
path: homePagePath,
|
|
101
|
+
icon: 'fa-light fa-grid-2',
|
|
102
|
+
data: {
|
|
103
|
+
//requiredPermission: '',
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
]);
|
|
107
|
+
}
|
|
108
|
+
context.find('user-profile').addItems([
|
|
109
|
+
{
|
|
110
|
+
text: `t('user.title', {scope: "settings"})`,
|
|
111
|
+
name: 'user-settings',
|
|
112
|
+
icon: 'fa-light fa-gear',
|
|
113
|
+
path: `/${this.sessionService.application?.name}/settings/user`,
|
|
114
|
+
},
|
|
115
|
+
]);
|
|
116
|
+
context.addItems([
|
|
117
|
+
{
|
|
118
|
+
name: 'tenant-application-settings',
|
|
119
|
+
priority: 10000,
|
|
120
|
+
text: `t('tenant.title', {scope: "settings"})`,
|
|
121
|
+
type: 'menu',
|
|
122
|
+
icon: 'fa-light fa-gear',
|
|
123
|
+
path: `/${appName}/settings/tenant`,
|
|
124
|
+
data: {
|
|
125
|
+
requiredPermission: 'admin',
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
]);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
class AXMPermissionDefinitionProvider {
|
|
133
|
+
async define(context) {
|
|
134
|
+
// context.addPermissions([
|
|
135
|
+
// {
|
|
136
|
+
// name: 'view_templates',
|
|
137
|
+
// title: 'Permission to view templates',
|
|
138
|
+
// isArchived: false,
|
|
139
|
+
// },
|
|
140
|
+
// ]);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
class AXMSearchCommandProvider extends AXPSearchCommandProvider {
|
|
145
|
+
constructor() {
|
|
146
|
+
super(...arguments);
|
|
147
|
+
this.commands = [
|
|
148
|
+
// {
|
|
149
|
+
// group: 'command',
|
|
150
|
+
// title: 'New Form Template',
|
|
151
|
+
// icon: RootConfig.entities.template.icon,
|
|
152
|
+
// description: 'Create a new form template for designing reusable forms.', // Added description
|
|
153
|
+
// commands: {
|
|
154
|
+
// 'create-entity': {
|
|
155
|
+
// entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`,
|
|
156
|
+
// },
|
|
157
|
+
// },
|
|
158
|
+
// }
|
|
159
|
+
];
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
var AXMLockSystemSettings;
|
|
164
|
+
(function (AXMLockSystemSettings) {
|
|
165
|
+
AXMLockSystemSettings["LockSystem"] = "general:lock-system:lock";
|
|
166
|
+
})(AXMLockSystemSettings || (AXMLockSystemSettings = {}));
|
|
167
|
+
|
|
168
|
+
class AXMSettingProvider {
|
|
169
|
+
constructor(injector) {
|
|
170
|
+
this.injector = injector;
|
|
171
|
+
this.translateService = this.injector.get(AXTranslationService);
|
|
172
|
+
}
|
|
173
|
+
async provide(context) {
|
|
174
|
+
const trans = async (key) => await this.translateService.translateAsync(`settings.${key}`, { scope: 'general' });
|
|
175
|
+
// Find the 'General Settings' group
|
|
176
|
+
const group = context.group('general');
|
|
177
|
+
if (!group) {
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
// Add the 'Release Notes' setting
|
|
181
|
+
group.addSection('lock-system', await trans('general.lock-system.lock.title'), await trans('general.lock-system.lock.description')).addSetting({
|
|
182
|
+
key: AXMLockSystemSettings.LockSystem,
|
|
183
|
+
title: await trans('general.lock-system.lock.title'),
|
|
184
|
+
scope: AXPPlatformScope.Tenant,
|
|
185
|
+
isInherited: true,
|
|
186
|
+
defaultValue: false,
|
|
187
|
+
valueTransforms: objectKeyValueTransforms('id'),
|
|
188
|
+
widget: {
|
|
189
|
+
type: AXPWidgetsCatalog.toggle,
|
|
190
|
+
options: {
|
|
191
|
+
label: null,
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
description: await trans('general.lock-system.lock.description'),
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMSettingProvider, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
198
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMSettingProvider }); }
|
|
199
|
+
}
|
|
200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMSettingProvider, decorators: [{
|
|
201
|
+
type: Injectable
|
|
202
|
+
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
203
|
+
|
|
204
|
+
class AXPComparePopupComponent extends AXBasePageComponent {
|
|
205
|
+
constructor() {
|
|
206
|
+
super(...arguments);
|
|
207
|
+
this.inputs = input(...(ngDevMode ? [undefined, { debugName: "inputs" }] : []));
|
|
208
|
+
this.isBusy = signal(false, ...(ngDevMode ? [{ debugName: "isBusy" }] : []));
|
|
209
|
+
this.mode = input('compare', ...(ngDevMode ? [{ debugName: "mode" }] : []));
|
|
210
|
+
}
|
|
211
|
+
ngOnInit() {
|
|
212
|
+
super.ngOnInit();
|
|
213
|
+
// Any additional initialization logic can go here
|
|
214
|
+
}
|
|
215
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXPComparePopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
216
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.4", type: AXPComparePopupComponent, isStandalone: true, selector: "axp-compare-popup", inputs: { inputs: { classPropertyName: "inputs", publicName: "inputs", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null } }, providers: [], usesInheritance: true, ngImport: i0, template: "<ax-content>\n <div class=\"ax-p-6 ax-min-h-[30vh] ax-overflow-y-auto\">\n <axp-compare-view [inputs]=\"inputs()\" [mode]=\"mode()\"></axp-compare-view>\n </div>\n</ax-content>\n<ax-footer>\n <ax-prefix></ax-prefix>\n <ax-suffix>\n <ax-button [text]=\"'close' | translate | async\" look=\"solid\" color=\"primary\" (onClick)=\"close()\"> </ax-button>\n </ax-suffix>\n</ax-footer>", dependencies: [{ kind: "ngmodule", type:
|
|
217
|
+
// Angular
|
|
218
|
+
CommonModule }, { kind: "ngmodule", type:
|
|
219
|
+
// ACoreX
|
|
220
|
+
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: i2.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: "component", type:
|
|
221
|
+
// Compare View
|
|
222
|
+
AXPCompareViewComponent, selector: "axp-compare-view", inputs: ["inputs", "mode"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.AXTranslatorPipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
223
|
+
}
|
|
224
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXPComparePopupComponent, decorators: [{
|
|
225
|
+
type: Component,
|
|
226
|
+
args: [{ selector: 'axp-compare-popup', standalone: true, imports: [
|
|
227
|
+
// Angular
|
|
228
|
+
CommonModule,
|
|
229
|
+
// ACoreX
|
|
230
|
+
AXDecoratorModule,
|
|
231
|
+
AXButtonModule,
|
|
232
|
+
AXTranslationModule,
|
|
233
|
+
// Compare View
|
|
234
|
+
AXPCompareViewComponent
|
|
235
|
+
], encapsulation: ViewEncapsulation.None, providers: [], template: "<ax-content>\n <div class=\"ax-p-6 ax-min-h-[30vh] ax-overflow-y-auto\">\n <axp-compare-view [inputs]=\"inputs()\" [mode]=\"mode()\"></axp-compare-view>\n </div>\n</ax-content>\n<ax-footer>\n <ax-prefix></ax-prefix>\n <ax-suffix>\n <ax-button [text]=\"'close' | translate | async\" look=\"solid\" color=\"primary\" (onClick)=\"close()\"> </ax-button>\n </ax-suffix>\n</ax-footer>" }]
|
|
236
|
+
}] });
|
|
237
|
+
|
|
238
|
+
var comparePopup_component = /*#__PURE__*/Object.freeze({
|
|
239
|
+
__proto__: null,
|
|
240
|
+
AXPComparePopupComponent: AXPComparePopupComponent
|
|
241
|
+
});
|
|
242
|
+
|
|
243
|
+
class AXMComparePopupStartAction extends AXPWorkflowAction {
|
|
244
|
+
constructor() {
|
|
245
|
+
super(...arguments);
|
|
246
|
+
this.popupService = inject(AXPopupService);
|
|
247
|
+
this.translate = inject(AXTranslationService);
|
|
248
|
+
}
|
|
249
|
+
async execute(context) {
|
|
250
|
+
const comp = (await Promise.resolve().then(function () { return comparePopup_component; })).AXPComparePopupComponent;
|
|
251
|
+
this.popupService.open(comp, {
|
|
252
|
+
title: await this.translate.translateAsync('Compare'),
|
|
253
|
+
size: 'lg',
|
|
254
|
+
data: {
|
|
255
|
+
inputs: signal(context.getVariable('inputs')),
|
|
256
|
+
mode: signal(context.getVariable('mode')),
|
|
257
|
+
},
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMComparePopupStartAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
261
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMComparePopupStartAction }); }
|
|
262
|
+
}
|
|
263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMComparePopupStartAction, decorators: [{
|
|
264
|
+
type: Injectable
|
|
265
|
+
}] });
|
|
266
|
+
class AXMCompareEntityRecordsAction extends AXPWorkflowAction {
|
|
267
|
+
constructor() {
|
|
268
|
+
super(...arguments);
|
|
269
|
+
this.entityRegistry = inject(AXPEntityDefinitionRegistryService);
|
|
270
|
+
}
|
|
271
|
+
async execute(context) {
|
|
272
|
+
const [moduleName, entityName] = context.getVariable('entity').split('.');
|
|
273
|
+
const entityRef = await this.entityRegistry.resolve(moduleName, entityName);
|
|
274
|
+
const records = context.getVariable('data');
|
|
275
|
+
const ids = records?.map((r) => r.id);
|
|
276
|
+
const getById = entityRef.queries.byKey?.execute;
|
|
277
|
+
//
|
|
278
|
+
const fields = entityRef.properties
|
|
279
|
+
.filter(p => p.schema.interface && p.schema.hidden != true)
|
|
280
|
+
.map((p) => ({
|
|
281
|
+
path: p.name,
|
|
282
|
+
title: p.title,
|
|
283
|
+
description: p.description,
|
|
284
|
+
widget: {
|
|
285
|
+
type: p.schema.interface?.type,
|
|
286
|
+
name: p.name,
|
|
287
|
+
path: p.name,
|
|
288
|
+
options: p.schema.interface?.options,
|
|
289
|
+
},
|
|
290
|
+
}));
|
|
291
|
+
const objects = await Promise.all(ids.map(async (c) => {
|
|
292
|
+
const object = await getById(c);
|
|
293
|
+
return {
|
|
294
|
+
id: object.id,
|
|
295
|
+
title: object.title,
|
|
296
|
+
description: object.description,
|
|
297
|
+
context: object,
|
|
298
|
+
};
|
|
299
|
+
}));
|
|
300
|
+
const inputs = {
|
|
301
|
+
fields: fields,
|
|
302
|
+
objects: objects,
|
|
303
|
+
};
|
|
304
|
+
//
|
|
305
|
+
context.setVariable('inputs', inputs);
|
|
306
|
+
context.setVariable('mode', 'records');
|
|
307
|
+
context.setOutput('result', true);
|
|
308
|
+
}
|
|
309
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMCompareEntityRecordsAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
310
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMCompareEntityRecordsAction }); }
|
|
311
|
+
}
|
|
312
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMCompareEntityRecordsAction, decorators: [{
|
|
313
|
+
type: Injectable
|
|
314
|
+
}] });
|
|
315
|
+
class AXMCompareEntityRecordVersionsAction extends AXPWorkflowAction {
|
|
316
|
+
constructor() {
|
|
317
|
+
super(...arguments);
|
|
318
|
+
this.entityRegistry = inject(AXPEntityDefinitionRegistryService);
|
|
319
|
+
this.activityLogService = inject(AXPActivityLogService);
|
|
320
|
+
this.formatService = inject(AXFormatService);
|
|
321
|
+
this.translate = inject(AXTranslationService);
|
|
322
|
+
}
|
|
323
|
+
async execute(context) {
|
|
324
|
+
const [moduleName, entityName] = context.getVariable('entity').split('.');
|
|
325
|
+
const entityRef = await this.entityRegistry.resolve(moduleName, entityName);
|
|
326
|
+
const refId = context.getVariable('data.refId');
|
|
327
|
+
const refType = context.getVariable('data.refType');
|
|
328
|
+
const ids = context.getVariable('data.ids');
|
|
329
|
+
const histories = await this.activityLogService.getHistoryByIds(refId, refType, ids);
|
|
330
|
+
//
|
|
331
|
+
const fields = entityRef.properties
|
|
332
|
+
.filter(p => p.schema.interface && p.schema.hidden != true)
|
|
333
|
+
.map((p) => ({
|
|
334
|
+
path: p.name,
|
|
335
|
+
title: p.title,
|
|
336
|
+
description: p.description,
|
|
337
|
+
widget: {
|
|
338
|
+
type: p.schema.interface?.type,
|
|
339
|
+
name: p.name,
|
|
340
|
+
path: p.name,
|
|
341
|
+
options: p.schema.interface?.options,
|
|
342
|
+
},
|
|
343
|
+
}));
|
|
344
|
+
const objects = await Promise.all(histories.map(async (h) => ({
|
|
345
|
+
id: h.id,
|
|
346
|
+
title: await this.translate.translateAsync(`@activity-log:${h.changeType == 'update' ? 'updated' : 'created'}-by-title`, {
|
|
347
|
+
params: {
|
|
348
|
+
user: h.user?.title,
|
|
349
|
+
date: this.formatService.format(h.date, 'datetime', { format: 'short' }),
|
|
350
|
+
}
|
|
351
|
+
}),
|
|
352
|
+
description: h.user?.title,
|
|
353
|
+
context: h.data,
|
|
354
|
+
})));
|
|
355
|
+
const inputs = {
|
|
356
|
+
fields: fields,
|
|
357
|
+
objects: objects,
|
|
358
|
+
};
|
|
359
|
+
//
|
|
360
|
+
context.setVariable('inputs', inputs);
|
|
361
|
+
context.setVariable('mode', 'changes');
|
|
362
|
+
context.setOutput('result', true);
|
|
363
|
+
}
|
|
364
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMCompareEntityRecordVersionsAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
365
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMCompareEntityRecordVersionsAction }); }
|
|
366
|
+
}
|
|
367
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMCompareEntityRecordVersionsAction, decorators: [{
|
|
368
|
+
type: Injectable
|
|
369
|
+
}] });
|
|
370
|
+
const AXMCompareEntityRecordsWorkflow = {
|
|
371
|
+
startStepId: 'start',
|
|
372
|
+
steps: {
|
|
373
|
+
start: {
|
|
374
|
+
action: 'show-entity-records-compare-action',
|
|
375
|
+
nextSteps: [
|
|
376
|
+
{
|
|
377
|
+
conditions: [{ type: 'SINGLE', expression: 'context.getOutput("result") == true' }],
|
|
378
|
+
nextStepId: 'show-popup',
|
|
379
|
+
}
|
|
380
|
+
],
|
|
381
|
+
},
|
|
382
|
+
'show-popup': {
|
|
383
|
+
action: 'show-compare-popup-action',
|
|
384
|
+
},
|
|
385
|
+
},
|
|
386
|
+
};
|
|
387
|
+
const AXMCompareEntityRecordVersionsWorkflow = {
|
|
388
|
+
startStepId: 'start',
|
|
389
|
+
steps: {
|
|
390
|
+
start: {
|
|
391
|
+
action: 'show-entity-record-versions-compare-action',
|
|
392
|
+
nextSteps: [
|
|
393
|
+
{
|
|
394
|
+
conditions: [{ type: 'SINGLE', expression: 'context.getOutput("result") == true' }],
|
|
395
|
+
nextStepId: 'show-popup',
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
},
|
|
399
|
+
'show-popup': {
|
|
400
|
+
action: 'show-compare-popup-action',
|
|
401
|
+
},
|
|
402
|
+
},
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
class AXPCompareModule {
|
|
406
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXPCompareModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
407
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.4", ngImport: i0, type: AXPCompareModule, imports: [AXPComparePopupComponent, i1$1.AXPWorkflowModule], exports: [AXPComparePopupComponent] }); }
|
|
408
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXPCompareModule, imports: [AXPComparePopupComponent,
|
|
409
|
+
AXPWorkflowModule.forChild({
|
|
410
|
+
actions: {
|
|
411
|
+
'show-compare-popup-action': AXMComparePopupStartAction,
|
|
412
|
+
'show-entity-records-compare-action': AXMCompareEntityRecordsAction,
|
|
413
|
+
'show-entity-record-versions-compare-action': AXMCompareEntityRecordVersionsAction,
|
|
414
|
+
},
|
|
415
|
+
workflows: {
|
|
416
|
+
'show-entity-records-compare': AXMCompareEntityRecordsWorkflow,
|
|
417
|
+
'show-entity-record-versions-compare': AXMCompareEntityRecordVersionsWorkflow,
|
|
418
|
+
},
|
|
419
|
+
})] }); }
|
|
420
|
+
}
|
|
421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXPCompareModule, decorators: [{
|
|
422
|
+
type: NgModule,
|
|
423
|
+
args: [{
|
|
424
|
+
imports: [
|
|
425
|
+
AXPComparePopupComponent,
|
|
426
|
+
AXPWorkflowModule.forChild({
|
|
427
|
+
actions: {
|
|
428
|
+
'show-compare-popup-action': AXMComparePopupStartAction,
|
|
429
|
+
'show-entity-records-compare-action': AXMCompareEntityRecordsAction,
|
|
430
|
+
'show-entity-record-versions-compare-action': AXMCompareEntityRecordVersionsAction,
|
|
431
|
+
},
|
|
432
|
+
workflows: {
|
|
433
|
+
'show-entity-records-compare': AXMCompareEntityRecordsWorkflow,
|
|
434
|
+
'show-entity-record-versions-compare': AXMCompareEntityRecordVersionsWorkflow,
|
|
435
|
+
},
|
|
436
|
+
}),
|
|
437
|
+
],
|
|
438
|
+
exports: [AXPComparePopupComponent],
|
|
439
|
+
}]
|
|
440
|
+
}] });
|
|
441
|
+
|
|
442
|
+
const AXP_GLOBAL_SEARCH_CONFIG_TOKEN = new InjectionToken('AXP_GLOBAL_SEARCH_CONFIG_TOKEN');
|
|
443
|
+
|
|
444
|
+
class AXPGlobalSearchSlotComponent {
|
|
445
|
+
constructor() {
|
|
446
|
+
this.workflow = inject(AXPWorkflowService);
|
|
447
|
+
}
|
|
448
|
+
async startSearch() {
|
|
449
|
+
await this.workflow.execute('global-search');
|
|
450
|
+
}
|
|
451
|
+
async handleKeyboardEvent(event) {
|
|
452
|
+
if (event.ctrlKey) {
|
|
453
|
+
switch (event.code) {
|
|
454
|
+
case 'KeyK':
|
|
455
|
+
event.preventDefault();
|
|
456
|
+
event.stopPropagation();
|
|
457
|
+
await this.startSearch();
|
|
458
|
+
break;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXPGlobalSearchSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
463
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.4", type: AXPGlobalSearchSlotComponent, isStandalone: true, selector: "ng-component", host: { listeners: { "document:keydown": "handleKeyboardEvent($event)" } }, ngImport: i0, template: `
|
|
464
|
+
<ax-button color="primary" class="ax-flex md:ax-hidden" (onClick)="startSearch()">
|
|
465
|
+
<ax-icon class="fa-regular fa-search">
|
|
466
|
+
</ax-icon>
|
|
467
|
+
</ax-button>
|
|
468
|
+
<div class="ax-bg-primary-200/15 ax-h-10 ax-w-72 ax-rounded-default ax-cursor-pointer ax-justify-between ax-hidden md:ax-flex ax-items-center ax-px-3 hover:ax-bg-primary-200/30 ax-text-primary-text" (click)="startSearch()" *translate="let t">
|
|
469
|
+
<div class="ax-flex ax-items-center ax-gap-2">
|
|
470
|
+
<i class="fa-light fa-search ax-text-xl"></i>
|
|
471
|
+
<span>{{ t('search-placeholder',{scope:'global-search'}) | async}}</span>
|
|
472
|
+
</div>
|
|
473
|
+
<kbd class="ax-text-sm">Ctrl+K</kbd>
|
|
474
|
+
</div>
|
|
475
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2.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: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i4.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] }); }
|
|
476
|
+
}
|
|
477
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXPGlobalSearchSlotComponent, decorators: [{
|
|
478
|
+
type: Component,
|
|
479
|
+
args: [{
|
|
480
|
+
template: `
|
|
481
|
+
<ax-button color="primary" class="ax-flex md:ax-hidden" (onClick)="startSearch()">
|
|
482
|
+
<ax-icon class="fa-regular fa-search">
|
|
483
|
+
</ax-icon>
|
|
484
|
+
</ax-button>
|
|
485
|
+
<div class="ax-bg-primary-200/15 ax-h-10 ax-w-72 ax-rounded-default ax-cursor-pointer ax-justify-between ax-hidden md:ax-flex ax-items-center ax-px-3 hover:ax-bg-primary-200/30 ax-text-primary-text" (click)="startSearch()" *translate="let t">
|
|
486
|
+
<div class="ax-flex ax-items-center ax-gap-2">
|
|
487
|
+
<i class="fa-light fa-search ax-text-xl"></i>
|
|
488
|
+
<span>{{ t('search-placeholder',{scope:'global-search'}) | async}}</span>
|
|
489
|
+
</div>
|
|
490
|
+
<kbd class="ax-text-sm">Ctrl+K</kbd>
|
|
491
|
+
</div>
|
|
492
|
+
`,
|
|
493
|
+
imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXTranslationModule, AXTextBoxModule]
|
|
494
|
+
}]
|
|
495
|
+
}], propDecorators: { handleKeyboardEvent: [{
|
|
496
|
+
type: HostListener,
|
|
497
|
+
args: ['document:keydown', ['$event']]
|
|
498
|
+
}] } });
|
|
499
|
+
|
|
500
|
+
class AXPGlobalSearchStartAction extends AXPWorkflowAction {
|
|
501
|
+
constructor() {
|
|
502
|
+
super(...arguments);
|
|
503
|
+
this.popupService = inject(AXPopupService);
|
|
504
|
+
this.workflow = inject(AXPWorkflowService);
|
|
505
|
+
this.config = inject(AXP_GLOBAL_SEARCH_CONFIG_TOKEN);
|
|
506
|
+
}
|
|
507
|
+
async execute(context) {
|
|
508
|
+
const component = await this.config.window();
|
|
509
|
+
const popup = await this.popupService.open(component, {
|
|
510
|
+
title: 'Search...',
|
|
511
|
+
size: 'fit',
|
|
512
|
+
closeOnBackdropClick: true,
|
|
513
|
+
data: {
|
|
514
|
+
text: context.getVariable('text'),
|
|
515
|
+
},
|
|
516
|
+
header: false,
|
|
517
|
+
});
|
|
518
|
+
if (popup.data) {
|
|
519
|
+
const result = popup.data;
|
|
520
|
+
if (result && result.command) {
|
|
521
|
+
this.workflow.execute(result.command?.name, result.command?.options);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXPGlobalSearchStartAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
526
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXPGlobalSearchStartAction }); }
|
|
527
|
+
}
|
|
528
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXPGlobalSearchStartAction, decorators: [{
|
|
529
|
+
type: Injectable
|
|
530
|
+
}] });
|
|
531
|
+
const AXPGlobalSearchWorkflow = {
|
|
532
|
+
startStepId: 'start',
|
|
533
|
+
steps: {
|
|
534
|
+
start: {
|
|
535
|
+
action: 'AXPGlobalSearchStartAction',
|
|
536
|
+
},
|
|
537
|
+
},
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
class AXPGlobalSearchModule {
|
|
541
|
+
constructor(appInitService, injector) {
|
|
542
|
+
}
|
|
543
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXPGlobalSearchModule, deps: [{ token: i1$2.AXPAppStartUpService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
544
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.4", ngImport: i0, type: AXPGlobalSearchModule, imports: [i2$1.AXPComponentSlotModule, i1$1.AXPWorkflowModule] }); }
|
|
545
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXPGlobalSearchModule, providers: [
|
|
546
|
+
{
|
|
547
|
+
provide: AXP_GLOBAL_SEARCH_CONFIG_TOKEN,
|
|
548
|
+
useValue: {
|
|
549
|
+
window: () => import('./acorex-modules-common-search-popup.component-D7Y4T3Rp.mjs').then((c) => c.AXPGlobalSearchPopupComponent),
|
|
550
|
+
},
|
|
551
|
+
},
|
|
552
|
+
], imports: [AXPComponentSlotModule.forChild({
|
|
553
|
+
'root-header-start': [
|
|
554
|
+
{
|
|
555
|
+
priority: 0,
|
|
556
|
+
name: 'search',
|
|
557
|
+
component: AXPGlobalSearchSlotComponent,
|
|
558
|
+
},
|
|
559
|
+
],
|
|
560
|
+
}),
|
|
561
|
+
//
|
|
562
|
+
AXPWorkflowModule.forChild({
|
|
563
|
+
actions: {
|
|
564
|
+
AXPGlobalSearchStartAction
|
|
565
|
+
},
|
|
566
|
+
workflows: {
|
|
567
|
+
'global-search': AXPGlobalSearchWorkflow,
|
|
568
|
+
},
|
|
569
|
+
})] }); }
|
|
570
|
+
}
|
|
571
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXPGlobalSearchModule, decorators: [{
|
|
572
|
+
type: NgModule,
|
|
573
|
+
args: [{
|
|
574
|
+
imports: [
|
|
575
|
+
AXPComponentSlotModule.forChild({
|
|
576
|
+
'root-header-start': [
|
|
577
|
+
{
|
|
578
|
+
priority: 0,
|
|
579
|
+
name: 'search',
|
|
580
|
+
component: AXPGlobalSearchSlotComponent,
|
|
581
|
+
},
|
|
582
|
+
],
|
|
583
|
+
}),
|
|
584
|
+
//
|
|
585
|
+
AXPWorkflowModule.forChild({
|
|
586
|
+
actions: {
|
|
587
|
+
AXPGlobalSearchStartAction
|
|
588
|
+
},
|
|
589
|
+
workflows: {
|
|
590
|
+
'global-search': AXPGlobalSearchWorkflow,
|
|
591
|
+
},
|
|
592
|
+
})
|
|
593
|
+
],
|
|
594
|
+
exports: [],
|
|
595
|
+
declarations: [],
|
|
596
|
+
providers: [
|
|
597
|
+
{
|
|
598
|
+
provide: AXP_GLOBAL_SEARCH_CONFIG_TOKEN,
|
|
599
|
+
useValue: {
|
|
600
|
+
window: () => import('./acorex-modules-common-search-popup.component-D7Y4T3Rp.mjs').then((c) => c.AXPGlobalSearchPopupComponent),
|
|
601
|
+
},
|
|
602
|
+
},
|
|
603
|
+
]
|
|
604
|
+
}]
|
|
605
|
+
}], ctorParameters: () => [{ type: i1$2.AXPAppStartUpService }, { type: i0.Injector }] });
|
|
606
|
+
|
|
607
|
+
class AXPGlobalSearchViewModel {
|
|
608
|
+
constructor() {
|
|
609
|
+
this.settingKeys = {
|
|
610
|
+
recent: "global-search:recents:items",
|
|
611
|
+
pinned: "global-search:pinned:items"
|
|
612
|
+
};
|
|
613
|
+
this.searchService = inject(AXPSearchService);
|
|
614
|
+
this.settingService = inject(AXPSettingService);
|
|
615
|
+
this._text = signal(null, ...(ngDevMode ? [{ debugName: "_text" }] : []));
|
|
616
|
+
this.text = this._text.asReadonly();
|
|
617
|
+
this._results = signal([], ...(ngDevMode ? [{ debugName: "_results" }] : []));
|
|
618
|
+
this.results = this._results.asReadonly();
|
|
619
|
+
this._isBusy = signal(false, ...(ngDevMode ? [{ debugName: "_isBusy" }] : []));
|
|
620
|
+
this.isBusy = this._isBusy.asReadonly();
|
|
621
|
+
this.isEmpty = computed(() => this.text() && this.results().length == 0, ...(ngDevMode ? [{ debugName: "isEmpty" }] : []));
|
|
622
|
+
this.isValid = computed(() => (this.text()?.length ?? 0) > 2, ...(ngDevMode ? [{ debugName: "isValid" }] : []));
|
|
623
|
+
this.isStart = computed(() => !this.isEmpty() && this.results().length == 0, ...(ngDevMode ? [{ debugName: "isStart" }] : []));
|
|
624
|
+
this.isWelcome = computed(() => this.isStart() && this.pinnedItems().length == 0 && this.recentItems().length == 0, ...(ngDevMode ? [{ debugName: "isWelcome" }] : []));
|
|
625
|
+
this._recentItems = signal([], ...(ngDevMode ? [{ debugName: "_recentItems" }] : []));
|
|
626
|
+
this._pinnedItems = signal([], ...(ngDevMode ? [{ debugName: "_pinnedItems" }] : []));
|
|
627
|
+
this.pinnedItems = this._pinnedItems.asReadonly();
|
|
628
|
+
this.recentItems = computed(() => this.getTopRecentItems(), ...(ngDevMode ? [{ debugName: "recentItems" }] : []));
|
|
629
|
+
this.onItemSelected = new Subject();
|
|
630
|
+
this.loadSettings();
|
|
631
|
+
}
|
|
632
|
+
async search(text) {
|
|
633
|
+
this._isBusy.set(true);
|
|
634
|
+
this._text.set(text);
|
|
635
|
+
if (!this.isValid()) {
|
|
636
|
+
this._results.set([]);
|
|
637
|
+
}
|
|
638
|
+
else {
|
|
639
|
+
await new Promise((resolve) => setTimeout(resolve, 250));
|
|
640
|
+
const results = await this.searchService.search(text);
|
|
641
|
+
this._results.set(results);
|
|
642
|
+
}
|
|
643
|
+
this._isBusy.set(false);
|
|
644
|
+
}
|
|
645
|
+
async execute(item) {
|
|
646
|
+
this.onItemSelected.next(item);
|
|
647
|
+
await this.updateSelectionHistory(item);
|
|
648
|
+
}
|
|
649
|
+
async pin(item) {
|
|
650
|
+
const currentPinned = this._pinnedItems();
|
|
651
|
+
if (!currentPinned.some(i => i.id === item.id)) {
|
|
652
|
+
this._pinnedItems.set([item, ...currentPinned].slice(0, 5));
|
|
653
|
+
await this.saveSettings();
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
async unpin(item) {
|
|
657
|
+
const currentPinned = this._pinnedItems();
|
|
658
|
+
this._pinnedItems.set(currentPinned.filter(i => i.id !== item.id));
|
|
659
|
+
await this.saveSettings();
|
|
660
|
+
}
|
|
661
|
+
async togglePin(item) {
|
|
662
|
+
if (this.isPinned(item)) {
|
|
663
|
+
await this.unpin(item);
|
|
664
|
+
}
|
|
665
|
+
else {
|
|
666
|
+
await this.pin(item);
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
isPinned(item) {
|
|
670
|
+
const currentPinned = this._pinnedItems();
|
|
671
|
+
return currentPinned.some(i => i.id === item.id);
|
|
672
|
+
}
|
|
673
|
+
async updateSelectionHistory(item) {
|
|
674
|
+
// Update recent selections
|
|
675
|
+
const currentHistory = this._recentItems();
|
|
676
|
+
const updatedHistory = [item, ...currentHistory.filter(i => i.id !== item.id)].slice(0, 5);
|
|
677
|
+
this._recentItems.set(updatedHistory);
|
|
678
|
+
// Save updated settings
|
|
679
|
+
await this.saveSettings();
|
|
680
|
+
}
|
|
681
|
+
getTopRecentItems() {
|
|
682
|
+
const pinnedIds = new Set(this._pinnedItems().map(item => item.id));
|
|
683
|
+
return this._recentItems().filter(item => !pinnedIds.has(item.id)).slice(0, 5);
|
|
684
|
+
}
|
|
685
|
+
async clearRecentItems() {
|
|
686
|
+
this._recentItems.set([]);
|
|
687
|
+
await this.settingService.scope(AXPPlatformScope.User).set(this.settingKeys.recent, []);
|
|
688
|
+
}
|
|
689
|
+
async loadSettings() {
|
|
690
|
+
// Load recent selections
|
|
691
|
+
const recent = await this.settingService.get(this.settingKeys.recent);
|
|
692
|
+
if (recent) {
|
|
693
|
+
this._recentItems.set(recent.slice(0, 5));
|
|
694
|
+
}
|
|
695
|
+
// Load pinned items
|
|
696
|
+
const pinned = await this.settingService.get(this.settingKeys.pinned);
|
|
697
|
+
if (pinned) {
|
|
698
|
+
this._pinnedItems.set(pinned.slice(0, 5));
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
async saveSettings() {
|
|
702
|
+
// Save recent selections
|
|
703
|
+
await this.settingService.scope(AXPPlatformScope.User).set(this.settingKeys.recent, this._recentItems().slice(0, 5));
|
|
704
|
+
// Save pinned items
|
|
705
|
+
await this.settingService.scope(AXPPlatformScope.User).set(this.settingKeys.pinned, this._pinnedItems().slice(0, 5));
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
class AXMLockPopupWorkflowAction extends AXPWorkflowAction {
|
|
710
|
+
constructor() {
|
|
711
|
+
super(...arguments);
|
|
712
|
+
this.popupService = inject(AXPopupService);
|
|
713
|
+
}
|
|
714
|
+
async execute(context) {
|
|
715
|
+
const comp = (await Promise.resolve().then(function () { return index; })).AXPLockPopupComponent;
|
|
716
|
+
const result = await this.popupService.open(comp, {
|
|
717
|
+
title: 'lock-system.lock',
|
|
718
|
+
data: {
|
|
719
|
+
refId: context.getVariable('options.refId'),
|
|
720
|
+
refType: context.getVariable('options.refType'),
|
|
721
|
+
},
|
|
722
|
+
});
|
|
723
|
+
if (result.data != null && result.data.isCanceled != null) {
|
|
724
|
+
context.setOutput('isCanceled', result.data.isCanceled);
|
|
725
|
+
if (!result.data.isCanceled) {
|
|
726
|
+
context.setOutput('lockDuration', result.data.duration);
|
|
727
|
+
context.setOutput('lockReason', result.data.reason);
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
else {
|
|
731
|
+
context.setOutput('isCanceled', true);
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
const AXMLockPopupWorkflow = {
|
|
736
|
+
startStepId: 'lock-popup',
|
|
737
|
+
steps: {
|
|
738
|
+
'lock-popup': {
|
|
739
|
+
action: 'AXMLockPopupWorkflowAction',
|
|
740
|
+
nextSteps: [
|
|
741
|
+
{
|
|
742
|
+
conditions: [{ type: 'SINGLE', expression: 'context.getOutput("isCanceled") == false' }],
|
|
743
|
+
nextStepId: 'successToast',
|
|
744
|
+
},
|
|
745
|
+
],
|
|
746
|
+
},
|
|
747
|
+
successToast: {
|
|
748
|
+
id: 'successToast',
|
|
749
|
+
action: 'AXPToastAction',
|
|
750
|
+
input: {
|
|
751
|
+
color: 'success',
|
|
752
|
+
title: 'workflow.entity-modified-title',
|
|
753
|
+
content: 'workflow.entity-modified-body',
|
|
754
|
+
},
|
|
755
|
+
nextSteps: [
|
|
756
|
+
{
|
|
757
|
+
conditions: [],
|
|
758
|
+
nextStepId: 'modifyConfirmed',
|
|
759
|
+
},
|
|
760
|
+
],
|
|
761
|
+
},
|
|
762
|
+
modifyConfirmed: {
|
|
763
|
+
id: 'modifyConfirmed',
|
|
764
|
+
action: 'AXPEntityModifyConfirmedAction',
|
|
765
|
+
},
|
|
766
|
+
},
|
|
767
|
+
};
|
|
768
|
+
|
|
769
|
+
class AXMUnlockConfirmWorkflowAction extends AXPWorkflowAction {
|
|
770
|
+
constructor() {
|
|
771
|
+
super(...arguments);
|
|
772
|
+
this.dialogService = inject(AXDialogService);
|
|
773
|
+
this.translationService = inject(AXTranslationService);
|
|
774
|
+
this.lockService = inject(AXPLockService);
|
|
775
|
+
this.sessionService = inject(AXPSessionService);
|
|
776
|
+
}
|
|
777
|
+
async execute(context) {
|
|
778
|
+
const refId = context.getVariable('options.refId');
|
|
779
|
+
const refType = context.getVariable('options.refType');
|
|
780
|
+
// Show confirmation dialog
|
|
781
|
+
const dialogResult = await this.dialogService.confirm(await this.translationService.translateAsync('unlock.title', { scope: 'general' }), await this.translationService.translateAsync('lock-system.confirm-unlock', { scope: 'general' }), 'warning', 'horizontal', false, 'cancel');
|
|
782
|
+
if (dialogResult.result) {
|
|
783
|
+
try {
|
|
784
|
+
// Perform unlock
|
|
785
|
+
await this.lockService.unlock({
|
|
786
|
+
refId: refId,
|
|
787
|
+
refType: refType,
|
|
788
|
+
type: 'user',
|
|
789
|
+
});
|
|
790
|
+
context.setOutput('isCanceled', false);
|
|
791
|
+
context.setOutput('unlocked', true);
|
|
792
|
+
}
|
|
793
|
+
catch (error) {
|
|
794
|
+
console.error('Unlock failed:', error);
|
|
795
|
+
// Show error dialog
|
|
796
|
+
await this.dialogService.alert(await this.translationService.translateAsync('workflow.error'), await this.translationService.translateAsync('lock-system.unlock-failed', { scope: 'general' }), 'danger');
|
|
797
|
+
context.setOutput('isCanceled', true);
|
|
798
|
+
context.setOutput('unlocked', false);
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
else {
|
|
802
|
+
context.setOutput('isCanceled', true);
|
|
803
|
+
context.setOutput('unlocked', false);
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
const AXMUnlockConfirmWorkflow = {
|
|
808
|
+
startStepId: 'unlock-confirm',
|
|
809
|
+
steps: {
|
|
810
|
+
'unlock-confirm': {
|
|
811
|
+
action: 'AXMUnlockConfirmWorkflowAction',
|
|
812
|
+
nextSteps: [
|
|
813
|
+
{
|
|
814
|
+
conditions: [{ type: 'SINGLE', expression: 'context.getOutput("unlocked") == true' }],
|
|
815
|
+
nextStepId: 'successToast',
|
|
816
|
+
},
|
|
817
|
+
],
|
|
818
|
+
},
|
|
819
|
+
successToast: {
|
|
820
|
+
id: 'successToast',
|
|
821
|
+
action: 'AXPToastAction',
|
|
822
|
+
input: {
|
|
823
|
+
color: 'success',
|
|
824
|
+
title: 'workflow.entity-modified-title',
|
|
825
|
+
content: 'workflow.entity-modified-body',
|
|
826
|
+
},
|
|
827
|
+
nextSteps: [
|
|
828
|
+
{
|
|
829
|
+
conditions: [],
|
|
830
|
+
nextStepId: 'modifyConfirmed',
|
|
831
|
+
},
|
|
832
|
+
],
|
|
833
|
+
},
|
|
834
|
+
modifyConfirmed: {
|
|
835
|
+
id: 'modifyConfirmed',
|
|
836
|
+
action: 'AXPEntityModifyConfirmedAction',
|
|
837
|
+
},
|
|
838
|
+
},
|
|
839
|
+
};
|
|
840
|
+
|
|
841
|
+
class AXPLockPopupComponent extends AXBasePageComponent {
|
|
842
|
+
constructor() {
|
|
843
|
+
super(...arguments);
|
|
844
|
+
//#endregion
|
|
845
|
+
//#region ---- Signals & Services ----
|
|
846
|
+
this.isBusy = signal(false, ...(ngDevMode ? [{ debugName: "isBusy" }] : []));
|
|
847
|
+
this.form = viewChild.required('form');
|
|
848
|
+
this.lockService = inject(AXPLockService);
|
|
849
|
+
this.sessionService = inject(AXPSessionService);
|
|
850
|
+
this.translationService = inject(AXTranslationService);
|
|
851
|
+
//#endregion
|
|
852
|
+
//#region ---- Form Data ----
|
|
853
|
+
this.duration = '1h';
|
|
854
|
+
this.reason = '';
|
|
855
|
+
this.lockDurations = [];
|
|
856
|
+
}
|
|
857
|
+
async ngOnInit() {
|
|
858
|
+
// Load translated duration options
|
|
859
|
+
this.lockDurations = [
|
|
860
|
+
{
|
|
861
|
+
value: '1h',
|
|
862
|
+
text: await this.translationService.translateAsync('lock-system.duration.options.1h', { scope: 'general' }),
|
|
863
|
+
hours: 1
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
value: '1d',
|
|
867
|
+
text: await this.translationService.translateAsync('lock-system.duration.options.1d', { scope: 'general' }),
|
|
868
|
+
hours: 24
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
value: 'infinite',
|
|
872
|
+
text: await this.translationService.translateAsync('lock-system.duration.options.infinite', { scope: 'general' })
|
|
873
|
+
}
|
|
874
|
+
];
|
|
875
|
+
}
|
|
876
|
+
//#endregion
|
|
877
|
+
//#region ---- UI Handlers ----
|
|
878
|
+
async handleConfirm() {
|
|
879
|
+
if (this.isBusy()) {
|
|
880
|
+
return;
|
|
881
|
+
}
|
|
882
|
+
// Validate form
|
|
883
|
+
const validation = await this.form().validate();
|
|
884
|
+
if (!validation.result) {
|
|
885
|
+
return;
|
|
886
|
+
}
|
|
887
|
+
// Ensure duration is selected
|
|
888
|
+
if (!this.duration) {
|
|
889
|
+
return;
|
|
890
|
+
}
|
|
891
|
+
this.isBusy.set(true);
|
|
892
|
+
try {
|
|
893
|
+
const selectedDuration = this.lockDurations.find(d => d.value === this.duration);
|
|
894
|
+
const expireAt = selectedDuration?.hours
|
|
895
|
+
? new Date(Date.now() + selectedDuration.hours * 60 * 60 * 1000)
|
|
896
|
+
: undefined; // undefined means infinite
|
|
897
|
+
await this.lockService.lock({
|
|
898
|
+
refId: this.refId,
|
|
899
|
+
refType: this.refType,
|
|
900
|
+
type: 'user',
|
|
901
|
+
date: new Date().toISOString(),
|
|
902
|
+
expireAt: expireAt,
|
|
903
|
+
lockedBy: {
|
|
904
|
+
id: this.sessionService.user?.id ?? 'system',
|
|
905
|
+
type: 'oidc.users',
|
|
906
|
+
},
|
|
907
|
+
});
|
|
908
|
+
// Close and notify success
|
|
909
|
+
this.close({
|
|
910
|
+
isCanceled: false,
|
|
911
|
+
duration: this.duration,
|
|
912
|
+
reason: this.reason
|
|
913
|
+
});
|
|
914
|
+
}
|
|
915
|
+
catch (error) {
|
|
916
|
+
console.error(error);
|
|
917
|
+
// TODO: show error toast if required
|
|
918
|
+
}
|
|
919
|
+
finally {
|
|
920
|
+
this.isBusy.set(false);
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
handleCancel() {
|
|
924
|
+
this.close({ isCanceled: true });
|
|
925
|
+
}
|
|
926
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXPLockPopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
927
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.1.4", type: AXPLockPopupComponent, isStandalone: true, selector: "axp-lock-popup", viewQueries: [{ propertyName: "form", first: true, predicate: ["form"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ax-content *translate=\"let t\">\n <div class=\"ax-p-6\">\n <ax-form #form>\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\n \n <!-- Lock Duration Selection -->\n <ax-form-field class=\"ax-col-span-12\">\n <ax-label>{{ t('lock-system.duration.title', {scope: 'general'}) | async }}</ax-label>\n <ax-select-box\n [(ngModel)]=\"duration\"\n [dataSource]=\"lockDurations\"\n [valueField]=\"'value'\"\n [textField]=\"'text'\"\n name=\"duration\"\n class=\"ax-w-full\"\n >\n <ax-validation-rule\n rule=\"required\"\n message=\"This field is required\"\n ></ax-validation-rule>\n </ax-select-box>\n </ax-form-field>\n\n <!-- Optional Reason -->\n <ax-form-field class=\"ax-col-span-12\">\n <ax-label>{{ t('lock-system.reason.title', {scope: 'general'}) | async }}</ax-label>\n <ax-text-area\n [(ngModel)]=\"reason\"\n [placeholder]=\"t('lock-system.reason.placeholder', {scope: 'general'}) | async\"\n name=\"reason\"\n class=\"ax-w-full ax-min-h-20\"\n >\n <ax-clear-button></ax-clear-button>\n </ax-text-area>\n </ax-form-field>\n\n </div>\n </ax-form>\n </div>\n</ax-content>\n\n<ax-footer *translate=\"let t\">\n <ax-prefix></ax-prefix>\n <ax-suffix>\n <ax-button \n [text]=\"t('cancel') | async\" \n (onClick)=\"handleCancel()\" \n [disabled]=\"isBusy()\"\n ></ax-button>\n <ax-button\n [text]=\"t('lock-system.lock', {scope: 'general'}) | async\"\n color=\"primary\"\n look=\"solid\"\n (onClick)=\"handleConfirm()\"\n [disabled]=\"isBusy()\"\n >\n </ax-button>\n </ax-suffix>\n</ax-footer>\n", styles: [""], dependencies: [{ kind: "ngmodule", type:
|
|
928
|
+
// Angular
|
|
929
|
+
CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type:
|
|
930
|
+
// ACoreX
|
|
931
|
+
AXButtonModule }, { kind: "component", type: i2.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: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { 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: 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", "disabled"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i5.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "component", type: i6.AXSelectBoxComponent, selector: "ax-select-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "minValue", "maxValue", "value", "state", "name", "id", "type", "look", "multiple", "valueField", "textField", "disabledField", "textTemplate", "selectedItems", "isItemTruncated", "showItemTooltip", "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: i7.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: AXTranslationModule }, { kind: "directive", type: i4.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXValidationModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
932
|
+
}
|
|
933
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXPLockPopupComponent, decorators: [{
|
|
934
|
+
type: Component,
|
|
935
|
+
args: [{ selector: 'axp-lock-popup', standalone: true, imports: [
|
|
936
|
+
// Angular
|
|
937
|
+
CommonModule,
|
|
938
|
+
FormsModule,
|
|
939
|
+
// ACoreX
|
|
940
|
+
AXButtonModule,
|
|
941
|
+
AXDecoratorModule,
|
|
942
|
+
AXFormModule,
|
|
943
|
+
AXLabelModule,
|
|
944
|
+
AXSelectBoxModule,
|
|
945
|
+
AXTextAreaModule,
|
|
946
|
+
AXTranslationModule,
|
|
947
|
+
AXValidationModule,
|
|
948
|
+
], encapsulation: ViewEncapsulation.None, template: "<ax-content *translate=\"let t\">\n <div class=\"ax-p-6\">\n <ax-form #form>\n <div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\n \n <!-- Lock Duration Selection -->\n <ax-form-field class=\"ax-col-span-12\">\n <ax-label>{{ t('lock-system.duration.title', {scope: 'general'}) | async }}</ax-label>\n <ax-select-box\n [(ngModel)]=\"duration\"\n [dataSource]=\"lockDurations\"\n [valueField]=\"'value'\"\n [textField]=\"'text'\"\n name=\"duration\"\n class=\"ax-w-full\"\n >\n <ax-validation-rule\n rule=\"required\"\n message=\"This field is required\"\n ></ax-validation-rule>\n </ax-select-box>\n </ax-form-field>\n\n <!-- Optional Reason -->\n <ax-form-field class=\"ax-col-span-12\">\n <ax-label>{{ t('lock-system.reason.title', {scope: 'general'}) | async }}</ax-label>\n <ax-text-area\n [(ngModel)]=\"reason\"\n [placeholder]=\"t('lock-system.reason.placeholder', {scope: 'general'}) | async\"\n name=\"reason\"\n class=\"ax-w-full ax-min-h-20\"\n >\n <ax-clear-button></ax-clear-button>\n </ax-text-area>\n </ax-form-field>\n\n </div>\n </ax-form>\n </div>\n</ax-content>\n\n<ax-footer *translate=\"let t\">\n <ax-prefix></ax-prefix>\n <ax-suffix>\n <ax-button \n [text]=\"t('cancel') | async\" \n (onClick)=\"handleCancel()\" \n [disabled]=\"isBusy()\"\n ></ax-button>\n <ax-button\n [text]=\"t('lock-system.lock', {scope: 'general'}) | async\"\n color=\"primary\"\n look=\"solid\"\n (onClick)=\"handleConfirm()\"\n [disabled]=\"isBusy()\"\n >\n </ax-button>\n </ax-suffix>\n</ax-footer>\n" }]
|
|
949
|
+
}] });
|
|
950
|
+
|
|
951
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
952
|
+
__proto__: null,
|
|
953
|
+
AXPLockPopupComponent: AXPLockPopupComponent
|
|
954
|
+
});
|
|
955
|
+
|
|
956
|
+
class AXMLockEvaluatorScopeProvider {
|
|
957
|
+
constructor() {
|
|
958
|
+
this.lockService = inject(AXPLockService);
|
|
959
|
+
}
|
|
960
|
+
async provide(context) {
|
|
961
|
+
context.addScope('lock', {
|
|
962
|
+
check: async (refId, refType) => {
|
|
963
|
+
const lock = await this.lockService.check({
|
|
964
|
+
refId, refType
|
|
965
|
+
});
|
|
966
|
+
return lock;
|
|
967
|
+
}
|
|
968
|
+
});
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
class AXMVersionHistoryPopupStartAction extends AXPWorkflowAction {
|
|
973
|
+
constructor() {
|
|
974
|
+
super(...arguments);
|
|
975
|
+
this.popupService = inject(AXPopupService);
|
|
976
|
+
this.translate = inject(AXTranslationService);
|
|
977
|
+
}
|
|
978
|
+
async execute(context) {
|
|
979
|
+
const comp = (await import('./acorex-modules-common-timeline-version-history-popup.component-ceEtE6qB.mjs')).AXMTimelineVersionHistoryPopupComponent;
|
|
980
|
+
this.popupService.open(comp, {
|
|
981
|
+
title: await this.translate.translateAsync('@activity-log:actions.view-history'),
|
|
982
|
+
data: {
|
|
983
|
+
refId: context.getVariable('options.refId'),
|
|
984
|
+
refType: context.getVariable('options.refType'),
|
|
985
|
+
fromDate: context.getVariable('options.fromDate'),
|
|
986
|
+
toDate: context.getVariable('options.toDate'),
|
|
987
|
+
limit: context.getVariable('options.limit'),
|
|
988
|
+
offset: context.getVariable('options.offset'),
|
|
989
|
+
},
|
|
990
|
+
});
|
|
991
|
+
}
|
|
992
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMVersionHistoryPopupStartAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
993
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMVersionHistoryPopupStartAction }); }
|
|
994
|
+
}
|
|
995
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMVersionHistoryPopupStartAction, decorators: [{
|
|
996
|
+
type: Injectable
|
|
997
|
+
}] });
|
|
998
|
+
const AXMVersionHistoryPopupWorkflow = {
|
|
999
|
+
startStepId: 'start',
|
|
1000
|
+
steps: {
|
|
1001
|
+
start: {
|
|
1002
|
+
action: 'show-version-history-popup-action',
|
|
1003
|
+
},
|
|
1004
|
+
},
|
|
1005
|
+
};
|
|
1006
|
+
|
|
1007
|
+
class AXPVersionHistoryModule {
|
|
1008
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXPVersionHistoryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1009
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.4", ngImport: i0, type: AXPVersionHistoryModule, imports: [i1$1.AXPWorkflowModule] }); }
|
|
1010
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXPVersionHistoryModule, imports: [AXPWorkflowModule.forChild({
|
|
1011
|
+
actions: {
|
|
1012
|
+
'show-version-history-popup-action': AXMVersionHistoryPopupStartAction,
|
|
1013
|
+
},
|
|
1014
|
+
workflows: {
|
|
1015
|
+
'show-version-history-popup': AXMVersionHistoryPopupWorkflow,
|
|
1016
|
+
},
|
|
1017
|
+
})] }); }
|
|
1018
|
+
}
|
|
1019
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXPVersionHistoryModule, decorators: [{
|
|
1020
|
+
type: NgModule,
|
|
1021
|
+
args: [{
|
|
1022
|
+
imports: [
|
|
1023
|
+
AXPWorkflowModule.forChild({
|
|
1024
|
+
actions: {
|
|
1025
|
+
'show-version-history-popup-action': AXMVersionHistoryPopupStartAction,
|
|
1026
|
+
},
|
|
1027
|
+
workflows: {
|
|
1028
|
+
'show-version-history-popup': AXMVersionHistoryPopupWorkflow,
|
|
1029
|
+
},
|
|
1030
|
+
}),
|
|
1031
|
+
],
|
|
1032
|
+
exports: [],
|
|
1033
|
+
}]
|
|
1034
|
+
}] });
|
|
1035
|
+
|
|
1036
|
+
class AXPDateTimeEvaluatorScopeProvider {
|
|
1037
|
+
constructor() {
|
|
1038
|
+
this.calendarService = inject(AXCalendarService);
|
|
1039
|
+
}
|
|
1040
|
+
async provide(context) {
|
|
1041
|
+
context.addScope('date', {
|
|
1042
|
+
today: () => {
|
|
1043
|
+
return this.calendarService.now();
|
|
1044
|
+
},
|
|
1045
|
+
tomorrow: () => {
|
|
1046
|
+
return this.calendarService.create(this.calendarService.now()).add('day', 1).startOf('day').date;
|
|
1047
|
+
},
|
|
1048
|
+
yesterday: () => {
|
|
1049
|
+
return this.calendarService.create(this.calendarService.now()).add('day', -1).startOf('day').date;
|
|
1050
|
+
},
|
|
1051
|
+
addDays: (date, days) => {
|
|
1052
|
+
return this.calendarService.create(date).add('day', days).date;
|
|
1053
|
+
},
|
|
1054
|
+
});
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
class AXMCommonModule {
|
|
1059
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1060
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.4", ngImport: i0, type: AXMCommonModule, imports: [AXPGlobalSearchModule,
|
|
1061
|
+
AXPWidgetsModule,
|
|
1062
|
+
AXPVersionHistoryModule,
|
|
1063
|
+
AXPCompareModule, i1$1.AXPWorkflowModule] }); }
|
|
1064
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMCommonModule, providers: [
|
|
1065
|
+
{
|
|
1066
|
+
provide: AXP_MENU_PROVIDER,
|
|
1067
|
+
useClass: AXMMenuProvider,
|
|
1068
|
+
multi: true,
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
provide: AXP_ENTITY_DEFINITION_LOADER,
|
|
1072
|
+
useClass: AXMEntityProvider,
|
|
1073
|
+
multi: true,
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
|
1077
|
+
useClass: AXMSettingProvider,
|
|
1078
|
+
multi: true,
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
provide: AXP_SEARCH_PROVIDER,
|
|
1082
|
+
useClass: AXMSearchCommandProvider,
|
|
1083
|
+
multi: true,
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
provide: AXP_PERMISSION_DEFINITION_PROVIDER,
|
|
1087
|
+
useClass: AXMPermissionDefinitionProvider,
|
|
1088
|
+
multi: true,
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
provide: AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER,
|
|
1092
|
+
useClass: AXMLockEvaluatorScopeProvider,
|
|
1093
|
+
multi: true,
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
provide: AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER,
|
|
1097
|
+
useClass: AXPDateTimeEvaluatorScopeProvider,
|
|
1098
|
+
multi: true,
|
|
1099
|
+
},
|
|
1100
|
+
], imports: [AXPGlobalSearchModule,
|
|
1101
|
+
AXPWidgetsModule,
|
|
1102
|
+
AXPVersionHistoryModule,
|
|
1103
|
+
AXPCompareModule,
|
|
1104
|
+
AXPWorkflowModule.forChild({
|
|
1105
|
+
actions: {
|
|
1106
|
+
AXMLockPopupWorkflowAction,
|
|
1107
|
+
AXMUnlockConfirmWorkflowAction,
|
|
1108
|
+
},
|
|
1109
|
+
workflows: {
|
|
1110
|
+
'lock-popup': AXMLockPopupWorkflow,
|
|
1111
|
+
'unlock-confirm': AXMUnlockConfirmWorkflow,
|
|
1112
|
+
},
|
|
1113
|
+
})] }); }
|
|
1114
|
+
}
|
|
1115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMCommonModule, decorators: [{
|
|
1116
|
+
type: NgModule,
|
|
1117
|
+
args: [{
|
|
1118
|
+
imports: [
|
|
1119
|
+
AXPGlobalSearchModule,
|
|
1120
|
+
AXPWidgetsModule,
|
|
1121
|
+
AXPVersionHistoryModule,
|
|
1122
|
+
AXPCompareModule,
|
|
1123
|
+
AXPWorkflowModule.forChild({
|
|
1124
|
+
actions: {
|
|
1125
|
+
AXMLockPopupWorkflowAction,
|
|
1126
|
+
AXMUnlockConfirmWorkflowAction,
|
|
1127
|
+
},
|
|
1128
|
+
workflows: {
|
|
1129
|
+
'lock-popup': AXMLockPopupWorkflow,
|
|
1130
|
+
'unlock-confirm': AXMUnlockConfirmWorkflow,
|
|
1131
|
+
},
|
|
1132
|
+
}),
|
|
1133
|
+
],
|
|
1134
|
+
exports: [],
|
|
1135
|
+
declarations: [],
|
|
1136
|
+
providers: [
|
|
1137
|
+
{
|
|
1138
|
+
provide: AXP_MENU_PROVIDER,
|
|
1139
|
+
useClass: AXMMenuProvider,
|
|
1140
|
+
multi: true,
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
provide: AXP_ENTITY_DEFINITION_LOADER,
|
|
1144
|
+
useClass: AXMEntityProvider,
|
|
1145
|
+
multi: true,
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
|
1149
|
+
useClass: AXMSettingProvider,
|
|
1150
|
+
multi: true,
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
provide: AXP_SEARCH_PROVIDER,
|
|
1154
|
+
useClass: AXMSearchCommandProvider,
|
|
1155
|
+
multi: true,
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
provide: AXP_PERMISSION_DEFINITION_PROVIDER,
|
|
1159
|
+
useClass: AXMPermissionDefinitionProvider,
|
|
1160
|
+
multi: true,
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
provide: AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER,
|
|
1164
|
+
useClass: AXMLockEvaluatorScopeProvider,
|
|
1165
|
+
multi: true,
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
provide: AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER,
|
|
1169
|
+
useClass: AXPDateTimeEvaluatorScopeProvider,
|
|
1170
|
+
multi: true,
|
|
1171
|
+
},
|
|
1172
|
+
],
|
|
1173
|
+
}]
|
|
1174
|
+
}] });
|
|
1175
|
+
|
|
1176
|
+
const AXPWidgetsList = {
|
|
1177
|
+
Editors: {
|
|
1178
|
+
DocumentAttachment: 'document-attachment-editor',
|
|
1179
|
+
TagBox: 'tagable-editor',
|
|
1180
|
+
CheckBox: 'checkbox-editor',
|
|
1181
|
+
ColorBox: 'color-editor',
|
|
1182
|
+
DateTimeBox: 'date-time-editor',
|
|
1183
|
+
Direction: 'direction',
|
|
1184
|
+
LargeTextBox: 'large-text-editor',
|
|
1185
|
+
NumberBox: 'number-editor',
|
|
1186
|
+
UnitValueBox: 'number-unit-editor',
|
|
1187
|
+
PasswordBox: 'password-editor',
|
|
1188
|
+
QueryBuilder: 'query-builder-editor',
|
|
1189
|
+
RichText: 'rich-text-editor',
|
|
1190
|
+
SelectBox: 'select-editor',
|
|
1191
|
+
SelectionList: 'selection-list-editor',
|
|
1192
|
+
TextBox: 'text-editor',
|
|
1193
|
+
InlineDataTable: 'table-editor',
|
|
1194
|
+
ToggleSwitch: 'toggle-editor',
|
|
1195
|
+
FileTypeExtension: 'file-type-extension',
|
|
1196
|
+
MapBox: 'map',
|
|
1197
|
+
MediaGallery: 'gallery',
|
|
1198
|
+
SignatureBox: 'signature',
|
|
1199
|
+
LookupBox: 'lookup-editor',
|
|
1200
|
+
},
|
|
1201
|
+
Layouts: {
|
|
1202
|
+
BlockLayout: 'block-layout',
|
|
1203
|
+
RepeaterLayout: 'repeater-layout',
|
|
1204
|
+
TextBlockLayout: 'text-block-layout',
|
|
1205
|
+
FormField: 'form-field',
|
|
1206
|
+
},
|
|
1207
|
+
Actions: {
|
|
1208
|
+
ActionButton: 'button-action',
|
|
1209
|
+
},
|
|
1210
|
+
Advanced: {
|
|
1211
|
+
QRCode: 'qrcode',
|
|
1212
|
+
},
|
|
1213
|
+
Templates: {
|
|
1214
|
+
Designer: 'template-designer',
|
|
1215
|
+
},
|
|
1216
|
+
};
|
|
1217
|
+
|
|
1218
|
+
/**
|
|
1219
|
+
* Generated bundle index. Do not edit.
|
|
1220
|
+
*/
|
|
1221
|
+
|
|
1222
|
+
export { AXMCommonModule, AXMEntityProvider, AXMLockPopupWorkflow, AXMLockPopupWorkflowAction, AXMMenuProvider, AXMSearchCommandProvider, AXMSettingProvider, AXMUnlockConfirmWorkflow, AXMUnlockConfirmWorkflowAction, AXPGlobalSearchModule, AXPGlobalSearchViewModel, AXPLockPopupComponent, AXPVersionHistoryModule, AXPWidgetsList, AXP_GLOBAL_SEARCH_CONFIG_TOKEN, RootConfig };
|
|
2
1223
|
//# sourceMappingURL=acorex-modules-common.mjs.map
|