@acorex/modules 20.2.0-next.2 → 20.2.0-next.4
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,1657 +0,0 @@
|
|
|
1
|
-
import { AXPSessionService, AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex/platform/auth';
|
|
2
|
-
import { AXPHomePageService, AXPSearchCommandProvider, AXPSearchService, AXPSettingService, AXPLockService, AXPRegionalService, AXP_SETTING_DEFINITION_PROVIDER, AXP_MENU_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, applyQueryArray, 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, AXP_WIDGET_DATASOURCE_PROVIDER } 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 i3 from '@acorex/components/button';
|
|
18
|
-
import { AXButtonModule } from '@acorex/components/button';
|
|
19
|
-
import { AXBasePageComponent } from '@acorex/components/page';
|
|
20
|
-
import * as i2 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
|
-
import { signalStore, withState, withMethods, patchState, withHooks } from '@ngrx/signals';
|
|
41
|
-
import { AXLocaleService } from '@acorex/core/locale';
|
|
42
|
-
import * as i1$4 from '@acorex/components/dropdown';
|
|
43
|
-
import { AXDropdownModule } from '@acorex/components/dropdown';
|
|
44
|
-
import { AXPopoverModule } from '@acorex/components/popover';
|
|
45
|
-
import { AXDataSource } from '@acorex/cdk/common';
|
|
46
|
-
|
|
47
|
-
const config = {
|
|
48
|
-
i18n: 'common',
|
|
49
|
-
};
|
|
50
|
-
const RootConfig = {
|
|
51
|
-
config,
|
|
52
|
-
module: {
|
|
53
|
-
module: 'common',
|
|
54
|
-
name: 'Common',
|
|
55
|
-
title: `t('module-name', {scope:"${config.i18n}"})`,
|
|
56
|
-
icon: 'fa-light fa-file-invoice',
|
|
57
|
-
},
|
|
58
|
-
entities: {},
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
class AXMEntityProvider {
|
|
62
|
-
constructor() {
|
|
63
|
-
this.injector = inject(Injector);
|
|
64
|
-
}
|
|
65
|
-
preload() {
|
|
66
|
-
const module = RootConfig.module.name;
|
|
67
|
-
return Array.from(Object.values(RootConfig.entities)).map((entity) => ({
|
|
68
|
-
module: module,
|
|
69
|
-
entity: entity.name,
|
|
70
|
-
}));
|
|
71
|
-
}
|
|
72
|
-
async get(moduleName, entityName) {
|
|
73
|
-
if (moduleName == RootConfig.module.name) {
|
|
74
|
-
switch (entityName) {
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
return null;
|
|
78
|
-
}
|
|
79
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMEntityProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
80
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMEntityProvider }); }
|
|
81
|
-
}
|
|
82
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMEntityProvider, decorators: [{
|
|
83
|
-
type: Injectable
|
|
84
|
-
}] });
|
|
85
|
-
|
|
86
|
-
class AXMMenuProvider {
|
|
87
|
-
constructor() {
|
|
88
|
-
this.sessionService = inject(AXPSessionService);
|
|
89
|
-
this.homePageService = inject(AXPHomePageService);
|
|
90
|
-
}
|
|
91
|
-
async provide(context) {
|
|
92
|
-
const scope = RootConfig.config.i18n;
|
|
93
|
-
const module = RootConfig.module;
|
|
94
|
-
const appName = this.sessionService.application?.name;
|
|
95
|
-
const isAuthorized = await firstValueFrom(this.sessionService.isAuthorized$);
|
|
96
|
-
if (!isAuthorized) {
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
//
|
|
100
|
-
const homePagePath = this.homePageService.getCurrent().path;
|
|
101
|
-
if (homePagePath) {
|
|
102
|
-
context.addItems([
|
|
103
|
-
{
|
|
104
|
-
priority: -9,
|
|
105
|
-
text: `t('home',{scope:'common'})`,
|
|
106
|
-
path: homePagePath,
|
|
107
|
-
icon: 'fa-light fa-grid-2',
|
|
108
|
-
data: {
|
|
109
|
-
//requiredPermission: '',
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
]);
|
|
113
|
-
}
|
|
114
|
-
context.find('user-profile').addItems([
|
|
115
|
-
{
|
|
116
|
-
text: `t('user.title', {scope: "settings"})`,
|
|
117
|
-
name: 'user-settings',
|
|
118
|
-
icon: 'fa-light fa-gear',
|
|
119
|
-
path: `/${this.sessionService.application?.name}/settings/user`,
|
|
120
|
-
},
|
|
121
|
-
]);
|
|
122
|
-
context.addItems([
|
|
123
|
-
{
|
|
124
|
-
name: 'tenant-application-settings',
|
|
125
|
-
priority: 10000,
|
|
126
|
-
text: `t('tenant.title', {scope: "settings"})`,
|
|
127
|
-
type: 'menu',
|
|
128
|
-
icon: 'fa-light fa-gear',
|
|
129
|
-
path: `/${appName}/settings/tenant`,
|
|
130
|
-
data: {
|
|
131
|
-
requiredPermission: 'admin',
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
]);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
class AXMPermissionDefinitionProvider {
|
|
139
|
-
async define(context) {
|
|
140
|
-
// context.addPermissions([
|
|
141
|
-
// {
|
|
142
|
-
// name: 'view_templates',
|
|
143
|
-
// title: 'Permission to view templates',
|
|
144
|
-
// isArchived: false,
|
|
145
|
-
// },
|
|
146
|
-
// ]);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
class AXMSearchCommandProvider extends AXPSearchCommandProvider {
|
|
151
|
-
constructor() {
|
|
152
|
-
super(...arguments);
|
|
153
|
-
this.commands = [
|
|
154
|
-
// {
|
|
155
|
-
// group: 'command',
|
|
156
|
-
// title: 'New Form Template',
|
|
157
|
-
// icon: RootConfig.entities.template.icon,
|
|
158
|
-
// description: 'Create a new form template for designing reusable forms.', // Added description
|
|
159
|
-
// commands: {
|
|
160
|
-
// 'create-entity': {
|
|
161
|
-
// entity: `${RootConfig.module.name}.${RootConfig.entities.template.name}`,
|
|
162
|
-
// },
|
|
163
|
-
// },
|
|
164
|
-
// }
|
|
165
|
-
];
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
var AXMLockSystemSettings;
|
|
170
|
-
(function (AXMLockSystemSettings) {
|
|
171
|
-
AXMLockSystemSettings["LockSystem"] = "general:lock-system:lock";
|
|
172
|
-
})(AXMLockSystemSettings || (AXMLockSystemSettings = {}));
|
|
173
|
-
|
|
174
|
-
class AXMSettingProvider {
|
|
175
|
-
constructor(injector) {
|
|
176
|
-
this.injector = injector;
|
|
177
|
-
this.translateService = this.injector.get(AXTranslationService);
|
|
178
|
-
}
|
|
179
|
-
async provide(context) {
|
|
180
|
-
const trans = async (key) => await this.translateService.translateAsync(`settings.${key}`, { scope: 'general' });
|
|
181
|
-
// Find the 'General Settings' group
|
|
182
|
-
const group = context.group('general');
|
|
183
|
-
if (!group) {
|
|
184
|
-
return;
|
|
185
|
-
}
|
|
186
|
-
// Add the 'Release Notes' setting
|
|
187
|
-
group.addSection('lock-system', await trans('general.lock-system.lock.title'), await trans('general.lock-system.lock.description')).addSetting({
|
|
188
|
-
key: AXMLockSystemSettings.LockSystem,
|
|
189
|
-
title: await trans('general.lock-system.lock.title'),
|
|
190
|
-
scope: AXPPlatformScope.Tenant,
|
|
191
|
-
isInherited: true,
|
|
192
|
-
defaultValue: false,
|
|
193
|
-
valueTransforms: objectKeyValueTransforms('id'),
|
|
194
|
-
widget: {
|
|
195
|
-
type: AXPWidgetsCatalog.toggle,
|
|
196
|
-
options: {
|
|
197
|
-
label: null,
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
description: await trans('general.lock-system.lock.description'),
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMSettingProvider, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
204
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMSettingProvider }); }
|
|
205
|
-
}
|
|
206
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMSettingProvider, decorators: [{
|
|
207
|
-
type: Injectable
|
|
208
|
-
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
209
|
-
|
|
210
|
-
class AXPComparePopupComponent extends AXBasePageComponent {
|
|
211
|
-
constructor() {
|
|
212
|
-
super(...arguments);
|
|
213
|
-
this.inputs = input(...(ngDevMode ? [undefined, { debugName: "inputs" }] : []));
|
|
214
|
-
this.isBusy = signal(false, ...(ngDevMode ? [{ debugName: "isBusy" }] : []));
|
|
215
|
-
this.mode = input('compare', ...(ngDevMode ? [{ debugName: "mode" }] : []));
|
|
216
|
-
}
|
|
217
|
-
ngOnInit() {
|
|
218
|
-
super.ngOnInit();
|
|
219
|
-
// Any additional initialization logic can go here
|
|
220
|
-
}
|
|
221
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPComparePopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
222
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.3", 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:
|
|
223
|
-
// Angular
|
|
224
|
-
CommonModule }, { kind: "ngmodule", type:
|
|
225
|
-
// ACoreX
|
|
226
|
-
AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.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:
|
|
227
|
-
// Compare View
|
|
228
|
-
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 }); }
|
|
229
|
-
}
|
|
230
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPComparePopupComponent, decorators: [{
|
|
231
|
-
type: Component,
|
|
232
|
-
args: [{ selector: 'axp-compare-popup', standalone: true, imports: [
|
|
233
|
-
// Angular
|
|
234
|
-
CommonModule,
|
|
235
|
-
// ACoreX
|
|
236
|
-
AXDecoratorModule,
|
|
237
|
-
AXButtonModule,
|
|
238
|
-
AXTranslationModule,
|
|
239
|
-
// Compare View
|
|
240
|
-
AXPCompareViewComponent
|
|
241
|
-
], 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>" }]
|
|
242
|
-
}] });
|
|
243
|
-
|
|
244
|
-
var comparePopup_component = /*#__PURE__*/Object.freeze({
|
|
245
|
-
__proto__: null,
|
|
246
|
-
AXPComparePopupComponent: AXPComparePopupComponent
|
|
247
|
-
});
|
|
248
|
-
|
|
249
|
-
class AXMComparePopupStartAction extends AXPWorkflowAction {
|
|
250
|
-
constructor() {
|
|
251
|
-
super(...arguments);
|
|
252
|
-
this.popupService = inject(AXPopupService);
|
|
253
|
-
this.translate = inject(AXTranslationService);
|
|
254
|
-
}
|
|
255
|
-
async execute(context) {
|
|
256
|
-
const comp = (await Promise.resolve().then(function () { return comparePopup_component; })).AXPComparePopupComponent;
|
|
257
|
-
this.popupService.open(comp, {
|
|
258
|
-
title: await this.translate.translateAsync('Compare'),
|
|
259
|
-
size: 'lg',
|
|
260
|
-
data: {
|
|
261
|
-
inputs: signal(context.getVariable('inputs')),
|
|
262
|
-
mode: signal(context.getVariable('mode')),
|
|
263
|
-
},
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMComparePopupStartAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
267
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMComparePopupStartAction }); }
|
|
268
|
-
}
|
|
269
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMComparePopupStartAction, decorators: [{
|
|
270
|
-
type: Injectable
|
|
271
|
-
}] });
|
|
272
|
-
class AXMCompareEntityRecordsAction extends AXPWorkflowAction {
|
|
273
|
-
constructor() {
|
|
274
|
-
super(...arguments);
|
|
275
|
-
this.entityRegistry = inject(AXPEntityDefinitionRegistryService);
|
|
276
|
-
}
|
|
277
|
-
async execute(context) {
|
|
278
|
-
const [moduleName, entityName] = context.getVariable('entity').split('.');
|
|
279
|
-
const entityRef = await this.entityRegistry.resolve(moduleName, entityName);
|
|
280
|
-
const records = context.getVariable('data');
|
|
281
|
-
const ids = records?.map((r) => r.id);
|
|
282
|
-
const getById = entityRef.queries.byKey?.execute;
|
|
283
|
-
//
|
|
284
|
-
const fields = entityRef.properties
|
|
285
|
-
.filter(p => p.schema.interface && p.schema.hidden != true)
|
|
286
|
-
.map((p) => ({
|
|
287
|
-
path: p.name,
|
|
288
|
-
title: p.title,
|
|
289
|
-
description: p.description,
|
|
290
|
-
widget: {
|
|
291
|
-
type: p.schema.interface?.type,
|
|
292
|
-
name: p.name,
|
|
293
|
-
path: p.name,
|
|
294
|
-
options: p.schema.interface?.options,
|
|
295
|
-
},
|
|
296
|
-
}));
|
|
297
|
-
const objects = await Promise.all(ids.map(async (c) => {
|
|
298
|
-
const object = await getById(c);
|
|
299
|
-
return {
|
|
300
|
-
id: object.id,
|
|
301
|
-
title: object.title,
|
|
302
|
-
description: object.description,
|
|
303
|
-
context: object,
|
|
304
|
-
};
|
|
305
|
-
}));
|
|
306
|
-
const inputs = {
|
|
307
|
-
fields: fields,
|
|
308
|
-
objects: objects,
|
|
309
|
-
};
|
|
310
|
-
//
|
|
311
|
-
context.setVariable('inputs', inputs);
|
|
312
|
-
context.setVariable('mode', 'records');
|
|
313
|
-
context.setOutput('result', true);
|
|
314
|
-
}
|
|
315
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMCompareEntityRecordsAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
316
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMCompareEntityRecordsAction }); }
|
|
317
|
-
}
|
|
318
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMCompareEntityRecordsAction, decorators: [{
|
|
319
|
-
type: Injectable
|
|
320
|
-
}] });
|
|
321
|
-
class AXMCompareEntityRecordVersionsAction extends AXPWorkflowAction {
|
|
322
|
-
constructor() {
|
|
323
|
-
super(...arguments);
|
|
324
|
-
this.entityRegistry = inject(AXPEntityDefinitionRegistryService);
|
|
325
|
-
this.activityLogService = inject(AXPActivityLogService);
|
|
326
|
-
this.formatService = inject(AXFormatService);
|
|
327
|
-
this.translate = inject(AXTranslationService);
|
|
328
|
-
}
|
|
329
|
-
async execute(context) {
|
|
330
|
-
const [moduleName, entityName] = context.getVariable('entity').split('.');
|
|
331
|
-
const entityRef = await this.entityRegistry.resolve(moduleName, entityName);
|
|
332
|
-
const refId = context.getVariable('data.refId');
|
|
333
|
-
const refType = context.getVariable('data.refType');
|
|
334
|
-
const ids = context.getVariable('data.ids');
|
|
335
|
-
const histories = await this.activityLogService.getHistoryByIds(refId, refType, ids);
|
|
336
|
-
//
|
|
337
|
-
const fields = entityRef.properties
|
|
338
|
-
.filter(p => p.schema.interface && p.schema.hidden != true)
|
|
339
|
-
.map((p) => ({
|
|
340
|
-
path: p.name,
|
|
341
|
-
title: p.title,
|
|
342
|
-
description: p.description,
|
|
343
|
-
widget: {
|
|
344
|
-
type: p.schema.interface?.type,
|
|
345
|
-
name: p.name,
|
|
346
|
-
path: p.name,
|
|
347
|
-
options: p.schema.interface?.options,
|
|
348
|
-
},
|
|
349
|
-
}));
|
|
350
|
-
const objects = await Promise.all(histories.map(async (h) => ({
|
|
351
|
-
id: h.id,
|
|
352
|
-
title: await this.translate.translateAsync(`@activity-log:${h.changeType == 'update' ? 'updated' : 'created'}-by-title`, {
|
|
353
|
-
params: {
|
|
354
|
-
user: h.user?.title,
|
|
355
|
-
date: this.formatService.format(h.date, 'datetime', { format: 'short' }),
|
|
356
|
-
}
|
|
357
|
-
}),
|
|
358
|
-
description: h.user?.title,
|
|
359
|
-
context: h.data,
|
|
360
|
-
})));
|
|
361
|
-
const inputs = {
|
|
362
|
-
fields: fields,
|
|
363
|
-
objects: objects,
|
|
364
|
-
};
|
|
365
|
-
//
|
|
366
|
-
context.setVariable('inputs', inputs);
|
|
367
|
-
context.setVariable('mode', 'changes');
|
|
368
|
-
context.setOutput('result', true);
|
|
369
|
-
}
|
|
370
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMCompareEntityRecordVersionsAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
371
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMCompareEntityRecordVersionsAction }); }
|
|
372
|
-
}
|
|
373
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMCompareEntityRecordVersionsAction, decorators: [{
|
|
374
|
-
type: Injectable
|
|
375
|
-
}] });
|
|
376
|
-
const AXMCompareEntityRecordsWorkflow = {
|
|
377
|
-
startStepId: 'start',
|
|
378
|
-
steps: {
|
|
379
|
-
start: {
|
|
380
|
-
action: 'show-entity-records-compare-action',
|
|
381
|
-
nextSteps: [
|
|
382
|
-
{
|
|
383
|
-
conditions: [{ type: 'SINGLE', expression: 'context.getOutput("result") == true' }],
|
|
384
|
-
nextStepId: 'show-popup',
|
|
385
|
-
}
|
|
386
|
-
],
|
|
387
|
-
},
|
|
388
|
-
'show-popup': {
|
|
389
|
-
action: 'show-compare-popup-action',
|
|
390
|
-
},
|
|
391
|
-
},
|
|
392
|
-
};
|
|
393
|
-
const AXMCompareEntityRecordVersionsWorkflow = {
|
|
394
|
-
startStepId: 'start',
|
|
395
|
-
steps: {
|
|
396
|
-
start: {
|
|
397
|
-
action: 'show-entity-record-versions-compare-action',
|
|
398
|
-
nextSteps: [
|
|
399
|
-
{
|
|
400
|
-
conditions: [{ type: 'SINGLE', expression: 'context.getOutput("result") == true' }],
|
|
401
|
-
nextStepId: 'show-popup',
|
|
402
|
-
}
|
|
403
|
-
],
|
|
404
|
-
},
|
|
405
|
-
'show-popup': {
|
|
406
|
-
action: 'show-compare-popup-action',
|
|
407
|
-
},
|
|
408
|
-
},
|
|
409
|
-
};
|
|
410
|
-
|
|
411
|
-
class AXPCompareModule {
|
|
412
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPCompareModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
413
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXPCompareModule, imports: [AXPComparePopupComponent, i1$1.AXPWorkflowModule], exports: [AXPComparePopupComponent] }); }
|
|
414
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPCompareModule, imports: [AXPComparePopupComponent,
|
|
415
|
-
AXPWorkflowModule.forChild({
|
|
416
|
-
actions: {
|
|
417
|
-
'show-compare-popup-action': AXMComparePopupStartAction,
|
|
418
|
-
'show-entity-records-compare-action': AXMCompareEntityRecordsAction,
|
|
419
|
-
'show-entity-record-versions-compare-action': AXMCompareEntityRecordVersionsAction,
|
|
420
|
-
},
|
|
421
|
-
workflows: {
|
|
422
|
-
'show-entity-records-compare': AXMCompareEntityRecordsWorkflow,
|
|
423
|
-
'show-entity-record-versions-compare': AXMCompareEntityRecordVersionsWorkflow,
|
|
424
|
-
},
|
|
425
|
-
})] }); }
|
|
426
|
-
}
|
|
427
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPCompareModule, decorators: [{
|
|
428
|
-
type: NgModule,
|
|
429
|
-
args: [{
|
|
430
|
-
imports: [
|
|
431
|
-
AXPComparePopupComponent,
|
|
432
|
-
AXPWorkflowModule.forChild({
|
|
433
|
-
actions: {
|
|
434
|
-
'show-compare-popup-action': AXMComparePopupStartAction,
|
|
435
|
-
'show-entity-records-compare-action': AXMCompareEntityRecordsAction,
|
|
436
|
-
'show-entity-record-versions-compare-action': AXMCompareEntityRecordVersionsAction,
|
|
437
|
-
},
|
|
438
|
-
workflows: {
|
|
439
|
-
'show-entity-records-compare': AXMCompareEntityRecordsWorkflow,
|
|
440
|
-
'show-entity-record-versions-compare': AXMCompareEntityRecordVersionsWorkflow,
|
|
441
|
-
},
|
|
442
|
-
}),
|
|
443
|
-
],
|
|
444
|
-
exports: [AXPComparePopupComponent],
|
|
445
|
-
}]
|
|
446
|
-
}] });
|
|
447
|
-
|
|
448
|
-
const AXP_GLOBAL_SEARCH_CONFIG_TOKEN = new InjectionToken('AXP_GLOBAL_SEARCH_CONFIG_TOKEN');
|
|
449
|
-
|
|
450
|
-
class AXPGlobalSearchSlotComponent {
|
|
451
|
-
constructor() {
|
|
452
|
-
this.workflow = inject(AXPWorkflowService);
|
|
453
|
-
}
|
|
454
|
-
async startSearch() {
|
|
455
|
-
await this.workflow.execute('global-search');
|
|
456
|
-
}
|
|
457
|
-
async handleKeyboardEvent(event) {
|
|
458
|
-
if (event.ctrlKey) {
|
|
459
|
-
switch (event.code) {
|
|
460
|
-
case 'KeyK':
|
|
461
|
-
event.preventDefault();
|
|
462
|
-
event.stopPropagation();
|
|
463
|
-
await this.startSearch();
|
|
464
|
-
break;
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPGlobalSearchSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
469
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.3", type: AXPGlobalSearchSlotComponent, isStandalone: true, selector: "ng-component", host: { listeners: { "document:keydown": "handleKeyboardEvent($event)" } }, ngImport: i0, template: `
|
|
470
|
-
<ax-button color="primary" class="ax-flex md:ax-hidden" (onClick)="startSearch()">
|
|
471
|
-
<ax-icon class="fa-regular fa-search">
|
|
472
|
-
</ax-icon>
|
|
473
|
-
</ax-button>
|
|
474
|
-
<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">
|
|
475
|
-
<div class="ax-flex ax-items-center ax-gap-2">
|
|
476
|
-
<i class="fa-light fa-search ax-text-xl"></i>
|
|
477
|
-
<span>{{ t('search-placeholder',{scope:'global-search'}) | async}}</span>
|
|
478
|
-
</div>
|
|
479
|
-
<kbd class="ax-text-sm">Ctrl+K</kbd>
|
|
480
|
-
</div>
|
|
481
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.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: i2.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" }] }); }
|
|
482
|
-
}
|
|
483
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPGlobalSearchSlotComponent, decorators: [{
|
|
484
|
-
type: Component,
|
|
485
|
-
args: [{
|
|
486
|
-
template: `
|
|
487
|
-
<ax-button color="primary" class="ax-flex md:ax-hidden" (onClick)="startSearch()">
|
|
488
|
-
<ax-icon class="fa-regular fa-search">
|
|
489
|
-
</ax-icon>
|
|
490
|
-
</ax-button>
|
|
491
|
-
<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">
|
|
492
|
-
<div class="ax-flex ax-items-center ax-gap-2">
|
|
493
|
-
<i class="fa-light fa-search ax-text-xl"></i>
|
|
494
|
-
<span>{{ t('search-placeholder',{scope:'global-search'}) | async}}</span>
|
|
495
|
-
</div>
|
|
496
|
-
<kbd class="ax-text-sm">Ctrl+K</kbd>
|
|
497
|
-
</div>
|
|
498
|
-
`,
|
|
499
|
-
imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXTranslationModule, AXTextBoxModule]
|
|
500
|
-
}]
|
|
501
|
-
}], propDecorators: { handleKeyboardEvent: [{
|
|
502
|
-
type: HostListener,
|
|
503
|
-
args: ['document:keydown', ['$event']]
|
|
504
|
-
}] } });
|
|
505
|
-
|
|
506
|
-
class AXPGlobalSearchStartAction extends AXPWorkflowAction {
|
|
507
|
-
constructor() {
|
|
508
|
-
super(...arguments);
|
|
509
|
-
this.popupService = inject(AXPopupService);
|
|
510
|
-
this.workflow = inject(AXPWorkflowService);
|
|
511
|
-
this.config = inject(AXP_GLOBAL_SEARCH_CONFIG_TOKEN);
|
|
512
|
-
}
|
|
513
|
-
async execute(context) {
|
|
514
|
-
const component = await this.config.window();
|
|
515
|
-
const popup = await this.popupService.open(component, {
|
|
516
|
-
title: 'Search...',
|
|
517
|
-
size: 'fit',
|
|
518
|
-
closeOnBackdropClick: true,
|
|
519
|
-
data: {
|
|
520
|
-
text: context.getVariable('text'),
|
|
521
|
-
},
|
|
522
|
-
header: false,
|
|
523
|
-
});
|
|
524
|
-
if (popup.data) {
|
|
525
|
-
const result = popup.data;
|
|
526
|
-
if (result && result.command) {
|
|
527
|
-
this.workflow.execute(result.command?.name, result.command?.options);
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPGlobalSearchStartAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
532
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPGlobalSearchStartAction }); }
|
|
533
|
-
}
|
|
534
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPGlobalSearchStartAction, decorators: [{
|
|
535
|
-
type: Injectable
|
|
536
|
-
}] });
|
|
537
|
-
const AXPGlobalSearchWorkflow = {
|
|
538
|
-
startStepId: 'start',
|
|
539
|
-
steps: {
|
|
540
|
-
start: {
|
|
541
|
-
action: 'AXPGlobalSearchStartAction',
|
|
542
|
-
},
|
|
543
|
-
},
|
|
544
|
-
};
|
|
545
|
-
|
|
546
|
-
class AXPGlobalSearchModule {
|
|
547
|
-
constructor(appInitService, injector) {
|
|
548
|
-
}
|
|
549
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPGlobalSearchModule, deps: [{ token: i1$2.AXPAppStartUpService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
550
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXPGlobalSearchModule, imports: [i2$1.AXPComponentSlotModule, i1$1.AXPWorkflowModule] }); }
|
|
551
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPGlobalSearchModule, providers: [
|
|
552
|
-
{
|
|
553
|
-
provide: AXP_GLOBAL_SEARCH_CONFIG_TOKEN,
|
|
554
|
-
useValue: {
|
|
555
|
-
window: () => import('./acorex-modules-common-search-popup.component-DbTj01Wz.mjs').then((c) => c.AXPGlobalSearchPopupComponent),
|
|
556
|
-
},
|
|
557
|
-
},
|
|
558
|
-
], imports: [AXPComponentSlotModule.forChild({
|
|
559
|
-
'root-header-start': [
|
|
560
|
-
{
|
|
561
|
-
priority: 0,
|
|
562
|
-
name: 'search',
|
|
563
|
-
component: AXPGlobalSearchSlotComponent,
|
|
564
|
-
},
|
|
565
|
-
],
|
|
566
|
-
}),
|
|
567
|
-
//
|
|
568
|
-
AXPWorkflowModule.forChild({
|
|
569
|
-
actions: {
|
|
570
|
-
AXPGlobalSearchStartAction
|
|
571
|
-
},
|
|
572
|
-
workflows: {
|
|
573
|
-
'global-search': AXPGlobalSearchWorkflow,
|
|
574
|
-
},
|
|
575
|
-
})] }); }
|
|
576
|
-
}
|
|
577
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPGlobalSearchModule, decorators: [{
|
|
578
|
-
type: NgModule,
|
|
579
|
-
args: [{
|
|
580
|
-
imports: [
|
|
581
|
-
AXPComponentSlotModule.forChild({
|
|
582
|
-
'root-header-start': [
|
|
583
|
-
{
|
|
584
|
-
priority: 0,
|
|
585
|
-
name: 'search',
|
|
586
|
-
component: AXPGlobalSearchSlotComponent,
|
|
587
|
-
},
|
|
588
|
-
],
|
|
589
|
-
}),
|
|
590
|
-
//
|
|
591
|
-
AXPWorkflowModule.forChild({
|
|
592
|
-
actions: {
|
|
593
|
-
AXPGlobalSearchStartAction
|
|
594
|
-
},
|
|
595
|
-
workflows: {
|
|
596
|
-
'global-search': AXPGlobalSearchWorkflow,
|
|
597
|
-
},
|
|
598
|
-
})
|
|
599
|
-
],
|
|
600
|
-
exports: [],
|
|
601
|
-
declarations: [],
|
|
602
|
-
providers: [
|
|
603
|
-
{
|
|
604
|
-
provide: AXP_GLOBAL_SEARCH_CONFIG_TOKEN,
|
|
605
|
-
useValue: {
|
|
606
|
-
window: () => import('./acorex-modules-common-search-popup.component-DbTj01Wz.mjs').then((c) => c.AXPGlobalSearchPopupComponent),
|
|
607
|
-
},
|
|
608
|
-
},
|
|
609
|
-
]
|
|
610
|
-
}]
|
|
611
|
-
}], ctorParameters: () => [{ type: i1$2.AXPAppStartUpService }, { type: i0.Injector }] });
|
|
612
|
-
|
|
613
|
-
class AXPGlobalSearchViewModel {
|
|
614
|
-
constructor() {
|
|
615
|
-
this.settingKeys = {
|
|
616
|
-
recent: "global-search:recents:items",
|
|
617
|
-
pinned: "global-search:pinned:items"
|
|
618
|
-
};
|
|
619
|
-
this.searchService = inject(AXPSearchService);
|
|
620
|
-
this.settingService = inject(AXPSettingService);
|
|
621
|
-
this._text = signal(null, ...(ngDevMode ? [{ debugName: "_text" }] : []));
|
|
622
|
-
this.text = this._text.asReadonly();
|
|
623
|
-
this._results = signal([], ...(ngDevMode ? [{ debugName: "_results" }] : []));
|
|
624
|
-
this.results = this._results.asReadonly();
|
|
625
|
-
this._isBusy = signal(false, ...(ngDevMode ? [{ debugName: "_isBusy" }] : []));
|
|
626
|
-
this.isBusy = this._isBusy.asReadonly();
|
|
627
|
-
this.isEmpty = computed(() => this.text() && this.results().length == 0, ...(ngDevMode ? [{ debugName: "isEmpty" }] : []));
|
|
628
|
-
this.isValid = computed(() => (this.text()?.length ?? 0) > 2, ...(ngDevMode ? [{ debugName: "isValid" }] : []));
|
|
629
|
-
this.isStart = computed(() => !this.isEmpty() && this.results().length == 0, ...(ngDevMode ? [{ debugName: "isStart" }] : []));
|
|
630
|
-
this.isWelcome = computed(() => this.isStart() && this.pinnedItems().length == 0 && this.recentItems().length == 0, ...(ngDevMode ? [{ debugName: "isWelcome" }] : []));
|
|
631
|
-
this._recentItems = signal([], ...(ngDevMode ? [{ debugName: "_recentItems" }] : []));
|
|
632
|
-
this._pinnedItems = signal([], ...(ngDevMode ? [{ debugName: "_pinnedItems" }] : []));
|
|
633
|
-
this.pinnedItems = this._pinnedItems.asReadonly();
|
|
634
|
-
this.recentItems = computed(() => this.getTopRecentItems(), ...(ngDevMode ? [{ debugName: "recentItems" }] : []));
|
|
635
|
-
this.onItemSelected = new Subject();
|
|
636
|
-
this.loadSettings();
|
|
637
|
-
}
|
|
638
|
-
async search(text) {
|
|
639
|
-
this._isBusy.set(true);
|
|
640
|
-
this._text.set(text);
|
|
641
|
-
if (!this.isValid()) {
|
|
642
|
-
this._results.set([]);
|
|
643
|
-
}
|
|
644
|
-
else {
|
|
645
|
-
await new Promise((resolve) => setTimeout(resolve, 250));
|
|
646
|
-
const results = await this.searchService.search(text);
|
|
647
|
-
this._results.set(results);
|
|
648
|
-
}
|
|
649
|
-
this._isBusy.set(false);
|
|
650
|
-
}
|
|
651
|
-
async execute(item) {
|
|
652
|
-
this.onItemSelected.next(item);
|
|
653
|
-
await this.updateSelectionHistory(item);
|
|
654
|
-
}
|
|
655
|
-
async pin(item) {
|
|
656
|
-
const currentPinned = this._pinnedItems();
|
|
657
|
-
if (!currentPinned.some(i => i.id === item.id)) {
|
|
658
|
-
this._pinnedItems.set([item, ...currentPinned].slice(0, 5));
|
|
659
|
-
await this.saveSettings();
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
async unpin(item) {
|
|
663
|
-
const currentPinned = this._pinnedItems();
|
|
664
|
-
this._pinnedItems.set(currentPinned.filter(i => i.id !== item.id));
|
|
665
|
-
await this.saveSettings();
|
|
666
|
-
}
|
|
667
|
-
async togglePin(item) {
|
|
668
|
-
if (this.isPinned(item)) {
|
|
669
|
-
await this.unpin(item);
|
|
670
|
-
}
|
|
671
|
-
else {
|
|
672
|
-
await this.pin(item);
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
isPinned(item) {
|
|
676
|
-
const currentPinned = this._pinnedItems();
|
|
677
|
-
return currentPinned.some(i => i.id === item.id);
|
|
678
|
-
}
|
|
679
|
-
async updateSelectionHistory(item) {
|
|
680
|
-
// Update recent selections
|
|
681
|
-
const currentHistory = this._recentItems();
|
|
682
|
-
const updatedHistory = [item, ...currentHistory.filter(i => i.id !== item.id)].slice(0, 5);
|
|
683
|
-
this._recentItems.set(updatedHistory);
|
|
684
|
-
// Save updated settings
|
|
685
|
-
await this.saveSettings();
|
|
686
|
-
}
|
|
687
|
-
getTopRecentItems() {
|
|
688
|
-
const pinnedIds = new Set(this._pinnedItems().map(item => item.id));
|
|
689
|
-
return this._recentItems().filter(item => !pinnedIds.has(item.id)).slice(0, 5);
|
|
690
|
-
}
|
|
691
|
-
async clearRecentItems() {
|
|
692
|
-
this._recentItems.set([]);
|
|
693
|
-
await this.settingService.scope(AXPPlatformScope.User).set(this.settingKeys.recent, []);
|
|
694
|
-
}
|
|
695
|
-
async loadSettings() {
|
|
696
|
-
// Load recent selections
|
|
697
|
-
const recent = await this.settingService.get(this.settingKeys.recent);
|
|
698
|
-
if (recent) {
|
|
699
|
-
this._recentItems.set(recent.slice(0, 5));
|
|
700
|
-
}
|
|
701
|
-
// Load pinned items
|
|
702
|
-
const pinned = await this.settingService.get(this.settingKeys.pinned);
|
|
703
|
-
if (pinned) {
|
|
704
|
-
this._pinnedItems.set(pinned.slice(0, 5));
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
async saveSettings() {
|
|
708
|
-
// Save recent selections
|
|
709
|
-
await this.settingService.scope(AXPPlatformScope.User).set(this.settingKeys.recent, this._recentItems().slice(0, 5));
|
|
710
|
-
// Save pinned items
|
|
711
|
-
await this.settingService.scope(AXPPlatformScope.User).set(this.settingKeys.pinned, this._pinnedItems().slice(0, 5));
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
class AXMLockPopupWorkflowAction extends AXPWorkflowAction {
|
|
716
|
-
constructor() {
|
|
717
|
-
super(...arguments);
|
|
718
|
-
this.popupService = inject(AXPopupService);
|
|
719
|
-
}
|
|
720
|
-
async execute(context) {
|
|
721
|
-
const comp = (await Promise.resolve().then(function () { return index; })).AXPLockPopupComponent;
|
|
722
|
-
const result = await this.popupService.open(comp, {
|
|
723
|
-
title: 'lock-system.lock',
|
|
724
|
-
data: {
|
|
725
|
-
refId: context.getVariable('options.refId'),
|
|
726
|
-
refType: context.getVariable('options.refType'),
|
|
727
|
-
},
|
|
728
|
-
});
|
|
729
|
-
if (result.data != null && result.data.isCanceled != null) {
|
|
730
|
-
context.setOutput('isCanceled', result.data.isCanceled);
|
|
731
|
-
if (!result.data.isCanceled) {
|
|
732
|
-
context.setOutput('lockDuration', result.data.duration);
|
|
733
|
-
context.setOutput('lockReason', result.data.reason);
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
else {
|
|
737
|
-
context.setOutput('isCanceled', true);
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
const AXMLockPopupWorkflow = {
|
|
742
|
-
startStepId: 'lock-popup',
|
|
743
|
-
steps: {
|
|
744
|
-
'lock-popup': {
|
|
745
|
-
action: 'AXMLockPopupWorkflowAction',
|
|
746
|
-
nextSteps: [
|
|
747
|
-
{
|
|
748
|
-
conditions: [{ type: 'SINGLE', expression: 'context.getOutput("isCanceled") == false' }],
|
|
749
|
-
nextStepId: 'successToast',
|
|
750
|
-
},
|
|
751
|
-
],
|
|
752
|
-
},
|
|
753
|
-
successToast: {
|
|
754
|
-
id: 'successToast',
|
|
755
|
-
action: 'AXPToastAction',
|
|
756
|
-
input: {
|
|
757
|
-
color: 'success',
|
|
758
|
-
title: 'workflow.entity-modified-title',
|
|
759
|
-
content: 'workflow.entity-modified-body',
|
|
760
|
-
},
|
|
761
|
-
nextSteps: [
|
|
762
|
-
{
|
|
763
|
-
conditions: [],
|
|
764
|
-
nextStepId: 'modifyConfirmed',
|
|
765
|
-
},
|
|
766
|
-
],
|
|
767
|
-
},
|
|
768
|
-
modifyConfirmed: {
|
|
769
|
-
id: 'modifyConfirmed',
|
|
770
|
-
action: 'AXPEntityModifyConfirmedAction',
|
|
771
|
-
},
|
|
772
|
-
},
|
|
773
|
-
};
|
|
774
|
-
|
|
775
|
-
class AXMUnlockConfirmWorkflowAction extends AXPWorkflowAction {
|
|
776
|
-
constructor() {
|
|
777
|
-
super(...arguments);
|
|
778
|
-
this.dialogService = inject(AXDialogService);
|
|
779
|
-
this.translationService = inject(AXTranslationService);
|
|
780
|
-
this.lockService = inject(AXPLockService);
|
|
781
|
-
this.sessionService = inject(AXPSessionService);
|
|
782
|
-
}
|
|
783
|
-
async execute(context) {
|
|
784
|
-
const refId = context.getVariable('options.refId');
|
|
785
|
-
const refType = context.getVariable('options.refType');
|
|
786
|
-
// Show confirmation dialog
|
|
787
|
-
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');
|
|
788
|
-
if (dialogResult.result) {
|
|
789
|
-
try {
|
|
790
|
-
// Perform unlock
|
|
791
|
-
await this.lockService.unlock({
|
|
792
|
-
refId: refId,
|
|
793
|
-
refType: refType,
|
|
794
|
-
type: 'user',
|
|
795
|
-
});
|
|
796
|
-
context.setOutput('isCanceled', false);
|
|
797
|
-
context.setOutput('unlocked', true);
|
|
798
|
-
}
|
|
799
|
-
catch (error) {
|
|
800
|
-
console.error('Unlock failed:', error);
|
|
801
|
-
// Show error dialog
|
|
802
|
-
await this.dialogService.alert(await this.translationService.translateAsync('workflow.error'), await this.translationService.translateAsync('lock-system.unlock-failed', { scope: 'general' }), 'danger');
|
|
803
|
-
context.setOutput('isCanceled', true);
|
|
804
|
-
context.setOutput('unlocked', false);
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
else {
|
|
808
|
-
context.setOutput('isCanceled', true);
|
|
809
|
-
context.setOutput('unlocked', false);
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
const AXMUnlockConfirmWorkflow = {
|
|
814
|
-
startStepId: 'unlock-confirm',
|
|
815
|
-
steps: {
|
|
816
|
-
'unlock-confirm': {
|
|
817
|
-
action: 'AXMUnlockConfirmWorkflowAction',
|
|
818
|
-
nextSteps: [
|
|
819
|
-
{
|
|
820
|
-
conditions: [{ type: 'SINGLE', expression: 'context.getOutput("unlocked") == true' }],
|
|
821
|
-
nextStepId: 'successToast',
|
|
822
|
-
},
|
|
823
|
-
],
|
|
824
|
-
},
|
|
825
|
-
successToast: {
|
|
826
|
-
id: 'successToast',
|
|
827
|
-
action: 'AXPToastAction',
|
|
828
|
-
input: {
|
|
829
|
-
color: 'success',
|
|
830
|
-
title: 'workflow.entity-modified-title',
|
|
831
|
-
content: 'workflow.entity-modified-body',
|
|
832
|
-
},
|
|
833
|
-
nextSteps: [
|
|
834
|
-
{
|
|
835
|
-
conditions: [],
|
|
836
|
-
nextStepId: 'modifyConfirmed',
|
|
837
|
-
},
|
|
838
|
-
],
|
|
839
|
-
},
|
|
840
|
-
modifyConfirmed: {
|
|
841
|
-
id: 'modifyConfirmed',
|
|
842
|
-
action: 'AXPEntityModifyConfirmedAction',
|
|
843
|
-
},
|
|
844
|
-
},
|
|
845
|
-
};
|
|
846
|
-
|
|
847
|
-
class AXPLockPopupComponent extends AXBasePageComponent {
|
|
848
|
-
constructor() {
|
|
849
|
-
super(...arguments);
|
|
850
|
-
//#endregion
|
|
851
|
-
//#region ---- Signals & Services ----
|
|
852
|
-
this.isBusy = signal(false, ...(ngDevMode ? [{ debugName: "isBusy" }] : []));
|
|
853
|
-
this.form = viewChild.required('form');
|
|
854
|
-
this.lockService = inject(AXPLockService);
|
|
855
|
-
this.sessionService = inject(AXPSessionService);
|
|
856
|
-
this.translationService = inject(AXTranslationService);
|
|
857
|
-
//#endregion
|
|
858
|
-
//#region ---- Form Data ----
|
|
859
|
-
this.duration = '1h';
|
|
860
|
-
this.reason = '';
|
|
861
|
-
this.lockDurations = [];
|
|
862
|
-
}
|
|
863
|
-
async ngOnInit() {
|
|
864
|
-
// Load translated duration options
|
|
865
|
-
this.lockDurations = [
|
|
866
|
-
{
|
|
867
|
-
value: '1h',
|
|
868
|
-
text: await this.translationService.translateAsync('lock-system.duration.options.1h', { scope: 'general' }),
|
|
869
|
-
hours: 1
|
|
870
|
-
},
|
|
871
|
-
{
|
|
872
|
-
value: '1d',
|
|
873
|
-
text: await this.translationService.translateAsync('lock-system.duration.options.1d', { scope: 'general' }),
|
|
874
|
-
hours: 24
|
|
875
|
-
},
|
|
876
|
-
{
|
|
877
|
-
value: 'infinite',
|
|
878
|
-
text: await this.translationService.translateAsync('lock-system.duration.options.infinite', { scope: 'general' })
|
|
879
|
-
}
|
|
880
|
-
];
|
|
881
|
-
}
|
|
882
|
-
//#endregion
|
|
883
|
-
//#region ---- UI Handlers ----
|
|
884
|
-
async handleConfirm() {
|
|
885
|
-
if (this.isBusy()) {
|
|
886
|
-
return;
|
|
887
|
-
}
|
|
888
|
-
// Validate form
|
|
889
|
-
const validation = await this.form().validate();
|
|
890
|
-
if (!validation.result) {
|
|
891
|
-
return;
|
|
892
|
-
}
|
|
893
|
-
// Ensure duration is selected
|
|
894
|
-
if (!this.duration) {
|
|
895
|
-
return;
|
|
896
|
-
}
|
|
897
|
-
this.isBusy.set(true);
|
|
898
|
-
try {
|
|
899
|
-
const selectedDuration = this.lockDurations.find(d => d.value === this.duration);
|
|
900
|
-
const expireAt = selectedDuration?.hours
|
|
901
|
-
? new Date(Date.now() + selectedDuration.hours * 60 * 60 * 1000)
|
|
902
|
-
: undefined; // undefined means infinite
|
|
903
|
-
await this.lockService.lock({
|
|
904
|
-
refId: this.refId,
|
|
905
|
-
refType: this.refType,
|
|
906
|
-
type: 'user',
|
|
907
|
-
date: new Date().toISOString(),
|
|
908
|
-
expireAt: expireAt,
|
|
909
|
-
lockedBy: {
|
|
910
|
-
id: this.sessionService.user?.id ?? 'system',
|
|
911
|
-
type: 'oidc.users',
|
|
912
|
-
},
|
|
913
|
-
});
|
|
914
|
-
// Close and notify success
|
|
915
|
-
this.close({
|
|
916
|
-
isCanceled: false,
|
|
917
|
-
duration: this.duration,
|
|
918
|
-
reason: this.reason
|
|
919
|
-
});
|
|
920
|
-
}
|
|
921
|
-
catch (error) {
|
|
922
|
-
console.error(error);
|
|
923
|
-
// TODO: show error toast if required
|
|
924
|
-
}
|
|
925
|
-
finally {
|
|
926
|
-
this.isBusy.set(false);
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
handleCancel() {
|
|
930
|
-
this.close({ isCanceled: true });
|
|
931
|
-
}
|
|
932
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPLockPopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
933
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.1.3", 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:
|
|
934
|
-
// Angular
|
|
935
|
-
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:
|
|
936
|
-
// ACoreX
|
|
937
|
-
AXButtonModule }, { kind: "component", type: i3.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: i2.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i2.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 }); }
|
|
938
|
-
}
|
|
939
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPLockPopupComponent, decorators: [{
|
|
940
|
-
type: Component,
|
|
941
|
-
args: [{ selector: 'axp-lock-popup', standalone: true, imports: [
|
|
942
|
-
// Angular
|
|
943
|
-
CommonModule,
|
|
944
|
-
FormsModule,
|
|
945
|
-
// ACoreX
|
|
946
|
-
AXButtonModule,
|
|
947
|
-
AXDecoratorModule,
|
|
948
|
-
AXFormModule,
|
|
949
|
-
AXLabelModule,
|
|
950
|
-
AXSelectBoxModule,
|
|
951
|
-
AXTextAreaModule,
|
|
952
|
-
AXTranslationModule,
|
|
953
|
-
AXValidationModule,
|
|
954
|
-
], 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" }]
|
|
955
|
-
}] });
|
|
956
|
-
|
|
957
|
-
var index = /*#__PURE__*/Object.freeze({
|
|
958
|
-
__proto__: null,
|
|
959
|
-
AXPLockPopupComponent: AXPLockPopupComponent
|
|
960
|
-
});
|
|
961
|
-
|
|
962
|
-
class AXMLockEvaluatorScopeProvider {
|
|
963
|
-
constructor() {
|
|
964
|
-
this.lockService = inject(AXPLockService);
|
|
965
|
-
}
|
|
966
|
-
async provide(context) {
|
|
967
|
-
context.addScope('lock', {
|
|
968
|
-
check: async (refId, refType) => {
|
|
969
|
-
const lock = await this.lockService.check({
|
|
970
|
-
refId, refType
|
|
971
|
-
});
|
|
972
|
-
return lock;
|
|
973
|
-
}
|
|
974
|
-
});
|
|
975
|
-
}
|
|
976
|
-
}
|
|
977
|
-
|
|
978
|
-
class AXMVersionHistoryPopupStartAction extends AXPWorkflowAction {
|
|
979
|
-
constructor() {
|
|
980
|
-
super(...arguments);
|
|
981
|
-
this.popupService = inject(AXPopupService);
|
|
982
|
-
this.translate = inject(AXTranslationService);
|
|
983
|
-
}
|
|
984
|
-
async execute(context) {
|
|
985
|
-
const comp = (await import('./acorex-modules-common-timeline-version-history-popup.component-D_6STmWm.mjs')).AXMTimelineVersionHistoryPopupComponent;
|
|
986
|
-
this.popupService.open(comp, {
|
|
987
|
-
title: await this.translate.translateAsync('@activity-log:actions.view-history'),
|
|
988
|
-
data: {
|
|
989
|
-
refId: context.getVariable('options.refId'),
|
|
990
|
-
refType: context.getVariable('options.refType'),
|
|
991
|
-
fromDate: context.getVariable('options.fromDate'),
|
|
992
|
-
toDate: context.getVariable('options.toDate'),
|
|
993
|
-
limit: context.getVariable('options.limit'),
|
|
994
|
-
offset: context.getVariable('options.offset'),
|
|
995
|
-
},
|
|
996
|
-
});
|
|
997
|
-
}
|
|
998
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMVersionHistoryPopupStartAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
999
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMVersionHistoryPopupStartAction }); }
|
|
1000
|
-
}
|
|
1001
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMVersionHistoryPopupStartAction, decorators: [{
|
|
1002
|
-
type: Injectable
|
|
1003
|
-
}] });
|
|
1004
|
-
const AXMVersionHistoryPopupWorkflow = {
|
|
1005
|
-
startStepId: 'start',
|
|
1006
|
-
steps: {
|
|
1007
|
-
start: {
|
|
1008
|
-
action: 'show-version-history-popup-action',
|
|
1009
|
-
},
|
|
1010
|
-
},
|
|
1011
|
-
};
|
|
1012
|
-
|
|
1013
|
-
class AXPVersionHistoryModule {
|
|
1014
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPVersionHistoryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1015
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXPVersionHistoryModule, imports: [i1$1.AXPWorkflowModule] }); }
|
|
1016
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPVersionHistoryModule, imports: [AXPWorkflowModule.forChild({
|
|
1017
|
-
actions: {
|
|
1018
|
-
'show-version-history-popup-action': AXMVersionHistoryPopupStartAction,
|
|
1019
|
-
},
|
|
1020
|
-
workflows: {
|
|
1021
|
-
'show-version-history-popup': AXMVersionHistoryPopupWorkflow,
|
|
1022
|
-
},
|
|
1023
|
-
})] }); }
|
|
1024
|
-
}
|
|
1025
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPVersionHistoryModule, decorators: [{
|
|
1026
|
-
type: NgModule,
|
|
1027
|
-
args: [{
|
|
1028
|
-
imports: [
|
|
1029
|
-
AXPWorkflowModule.forChild({
|
|
1030
|
-
actions: {
|
|
1031
|
-
'show-version-history-popup-action': AXMVersionHistoryPopupStartAction,
|
|
1032
|
-
},
|
|
1033
|
-
workflows: {
|
|
1034
|
-
'show-version-history-popup': AXMVersionHistoryPopupWorkflow,
|
|
1035
|
-
},
|
|
1036
|
-
}),
|
|
1037
|
-
],
|
|
1038
|
-
exports: [],
|
|
1039
|
-
}]
|
|
1040
|
-
}] });
|
|
1041
|
-
|
|
1042
|
-
class AXPDateTimeEvaluatorScopeProvider {
|
|
1043
|
-
constructor() {
|
|
1044
|
-
this.calendarService = inject(AXCalendarService);
|
|
1045
|
-
}
|
|
1046
|
-
async provide(context) {
|
|
1047
|
-
context.addScope('date', {
|
|
1048
|
-
today: () => {
|
|
1049
|
-
return this.calendarService.now();
|
|
1050
|
-
},
|
|
1051
|
-
tomorrow: () => {
|
|
1052
|
-
return this.calendarService.create(this.calendarService.now()).add('day', 1).startOf('day').date;
|
|
1053
|
-
},
|
|
1054
|
-
yesterday: () => {
|
|
1055
|
-
return this.calendarService.create(this.calendarService.now()).add('day', -1).startOf('day').date;
|
|
1056
|
-
},
|
|
1057
|
-
addDays: (date, days) => {
|
|
1058
|
-
return this.calendarService.create(date).add('day', days).date;
|
|
1059
|
-
},
|
|
1060
|
-
});
|
|
1061
|
-
}
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
const path = 'regional:';
|
|
1065
|
-
var AXPRegionalSetting;
|
|
1066
|
-
(function (AXPRegionalSetting) {
|
|
1067
|
-
AXPRegionalSetting["LocaleProfile"] = "regional:locale-profile";
|
|
1068
|
-
AXPRegionalSetting["TimeZone"] = "regional:timezone";
|
|
1069
|
-
AXPRegionalSetting["Language"] = "regional:language";
|
|
1070
|
-
AXPRegionalSetting["Country"] = "regional:country";
|
|
1071
|
-
AXPRegionalSetting["Calendar"] = "regional:calendar";
|
|
1072
|
-
AXPRegionalSetting["FirstDayOfWeek"] = "regional:first-day-of-week";
|
|
1073
|
-
AXPRegionalSetting["WeekendDays"] = "regional:weekend-days";
|
|
1074
|
-
AXPRegionalSetting["ShortDate"] = "regional:short-date";
|
|
1075
|
-
AXPRegionalSetting["LongDate"] = "regional:long-date";
|
|
1076
|
-
AXPRegionalSetting["ShortTime"] = "regional:short-time";
|
|
1077
|
-
AXPRegionalSetting["LongTime"] = "regional:long-time";
|
|
1078
|
-
AXPRegionalSetting["MeasurementUnits"] = "regional:measurement-units";
|
|
1079
|
-
AXPRegionalSetting["TemperatureUnits"] = "regional:temperature-units";
|
|
1080
|
-
AXPRegionalSetting["DistanceUnits"] = "regional:distance-units";
|
|
1081
|
-
AXPRegionalSetting["WeightUnits"] = "regional:weight-units";
|
|
1082
|
-
AXPRegionalSetting["VolumeUnits"] = "regional:volume-units";
|
|
1083
|
-
AXPRegionalSetting["SpeedUnits"] = "regional:speed-units";
|
|
1084
|
-
AXPRegionalSetting["AreaUnits"] = "regional:area-units";
|
|
1085
|
-
})(AXPRegionalSetting || (AXPRegionalSetting = {}));
|
|
1086
|
-
|
|
1087
|
-
// Regional Store - Manages regional settings and system changes
|
|
1088
|
-
const AXPRegionalStoreService = signalStore({ providedIn: 'root' },
|
|
1089
|
-
// Initial State
|
|
1090
|
-
withState((localeService = inject(AXLocaleService)) => {
|
|
1091
|
-
const state = {
|
|
1092
|
-
profile: localeService.activeProfile().localeInfo.code,
|
|
1093
|
-
language: localeService.activeProfile().localeInfo.language,
|
|
1094
|
-
calendar: localeService.activeProfile().calendar.system,
|
|
1095
|
-
};
|
|
1096
|
-
return state;
|
|
1097
|
-
}),
|
|
1098
|
-
// Computed Signals
|
|
1099
|
-
// withComputed(({ }) => ({
|
|
1100
|
-
// })),
|
|
1101
|
-
// Methods for State Management
|
|
1102
|
-
withMethods((store, settingService = inject(AXPSettingService), localeService = inject(AXLocaleService), calendarService = inject(AXCalendarService), translateService = inject(AXTranslationService)) => {
|
|
1103
|
-
const applyChanges = async () => {
|
|
1104
|
-
const profile = localeService.activeProfile();
|
|
1105
|
-
const html = document.getElementsByTagName('html')[0];
|
|
1106
|
-
profile.i18nMeta?.rtl ? html.setAttribute('dir', 'rtl') : html.removeAttribute('dir');
|
|
1107
|
-
};
|
|
1108
|
-
return {
|
|
1109
|
-
async changeProfile(profileCode) {
|
|
1110
|
-
await localeService.setProfile(profileCode);
|
|
1111
|
-
const profile = localeService.activeProfile();
|
|
1112
|
-
//
|
|
1113
|
-
if (store.profile() != profile.localeInfo.code) {
|
|
1114
|
-
settingService.scope(AXPPlatformScope.User).set(AXPRegionalSetting.LocaleProfile, profile.localeInfo.code);
|
|
1115
|
-
settingService.scope(AXPPlatformScope.User).set(AXPRegionalSetting.Language, profile.localeInfo.code);
|
|
1116
|
-
patchState(store, { profile: profile.localeInfo.code });
|
|
1117
|
-
}
|
|
1118
|
-
//
|
|
1119
|
-
await applyChanges();
|
|
1120
|
-
},
|
|
1121
|
-
async loadSetting() {
|
|
1122
|
-
const profileCode = (await settingService.scope(AXPPlatformScope.User).get(AXPRegionalSetting.LocaleProfile));
|
|
1123
|
-
patchState(store, { profile: profileCode });
|
|
1124
|
-
await localeService.setProfile(profileCode);
|
|
1125
|
-
//
|
|
1126
|
-
// delay to ensure the profile is set and override the default
|
|
1127
|
-
setTimeout(async () => {
|
|
1128
|
-
const calendar = (await settingService.scope(AXPPlatformScope.User).get(AXPRegionalSetting.Calendar));
|
|
1129
|
-
patchState(store, { calendar: calendar });
|
|
1130
|
-
calendarService.setActiveCalendar(calendar);
|
|
1131
|
-
//
|
|
1132
|
-
const language = (await settingService.scope(AXPPlatformScope.User).get(AXPRegionalSetting.Language));
|
|
1133
|
-
patchState(store, { language: language });
|
|
1134
|
-
translateService.setActiveLang(language);
|
|
1135
|
-
//
|
|
1136
|
-
await applyChanges();
|
|
1137
|
-
});
|
|
1138
|
-
//
|
|
1139
|
-
},
|
|
1140
|
-
};
|
|
1141
|
-
}), withHooks((store, settingService = inject(AXPSettingService), translateService = inject(AXTranslationService)) => ({
|
|
1142
|
-
onInit() {
|
|
1143
|
-
settingService.onChanged.subscribe(async (setting) => {
|
|
1144
|
-
const keys = [
|
|
1145
|
-
AXPRegionalSetting.LocaleProfile,
|
|
1146
|
-
AXPRegionalSetting.Language,
|
|
1147
|
-
AXPRegionalSetting.Calendar
|
|
1148
|
-
];
|
|
1149
|
-
//
|
|
1150
|
-
if (keys.some(k => setting.keys.includes(k))) {
|
|
1151
|
-
await store.loadSetting();
|
|
1152
|
-
}
|
|
1153
|
-
});
|
|
1154
|
-
},
|
|
1155
|
-
onDestroy() { },
|
|
1156
|
-
})));
|
|
1157
|
-
|
|
1158
|
-
class AXMLanguageSlotComponent {
|
|
1159
|
-
constructor() {
|
|
1160
|
-
this.regionalService = inject(AXPRegionalService);
|
|
1161
|
-
this.store = inject(AXPRegionalStoreService);
|
|
1162
|
-
this.items = signal([], ...(ngDevMode ? [{ debugName: "items" }] : []));
|
|
1163
|
-
}
|
|
1164
|
-
async ngOnInit() {
|
|
1165
|
-
const items = await this.regionalService.getLocaleProfiles();
|
|
1166
|
-
this.items.set(items);
|
|
1167
|
-
}
|
|
1168
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMLanguageSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1169
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.3", type: AXMLanguageSlotComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ax-button color=\"primary\">\n <ax-icon class=\"fa-regular fa-globe\"> </ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(lang of items(); track lang){\n <ax-button-item\n [text]=\"lang.title\"\n [selected]=\"store.profile() === lang.code\"\n (onClick)=\"store.changeProfile(lang.code)\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-solid fa-flag\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n</ax-button>\n", dependencies: [{ kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i1$4.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "placement", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i2.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: i3.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i3.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items"], outputs: ["onItemClick"] }] }); }
|
|
1170
|
-
}
|
|
1171
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMLanguageSlotComponent, decorators: [{
|
|
1172
|
-
type: Component,
|
|
1173
|
-
args: [{ imports: [AXDropdownModule, AXDecoratorModule, AXPopoverModule, AXButtonModule], template: "<ax-button color=\"primary\">\n <ax-icon class=\"fa-regular fa-globe\"> </ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(lang of items(); track lang){\n <ax-button-item\n [text]=\"lang.title\"\n [selected]=\"store.profile() === lang.code\"\n (onClick)=\"store.changeProfile(lang.code)\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-solid fa-flag\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n</ax-button>\n" }]
|
|
1174
|
-
}] });
|
|
1175
|
-
|
|
1176
|
-
class AXPRegionalWidgetDataSourceProvider {
|
|
1177
|
-
constructor() {
|
|
1178
|
-
this.regionalService = inject(AXPRegionalService);
|
|
1179
|
-
//#region Country
|
|
1180
|
-
this.country = {
|
|
1181
|
-
name: 'countries',
|
|
1182
|
-
title: 'Countries',
|
|
1183
|
-
textField: 'title',
|
|
1184
|
-
valueField: 'code',
|
|
1185
|
-
columns: [
|
|
1186
|
-
{
|
|
1187
|
-
name: 'code',
|
|
1188
|
-
title: 'Code',
|
|
1189
|
-
},
|
|
1190
|
-
{
|
|
1191
|
-
name: 'title',
|
|
1192
|
-
title: 'Title',
|
|
1193
|
-
},
|
|
1194
|
-
{
|
|
1195
|
-
name: 'timezone',
|
|
1196
|
-
title: 'Timezone',
|
|
1197
|
-
},
|
|
1198
|
-
],
|
|
1199
|
-
source: async () => {
|
|
1200
|
-
const list = await this.regionalService.getCountries();
|
|
1201
|
-
return new AXDataSource({
|
|
1202
|
-
pageSize: 20,
|
|
1203
|
-
key: 'code',
|
|
1204
|
-
load: (e) => {
|
|
1205
|
-
return applyQueryArray(list, e);
|
|
1206
|
-
},
|
|
1207
|
-
byKey: async (key) => {
|
|
1208
|
-
return list.find((c) => c.code == key);
|
|
1209
|
-
},
|
|
1210
|
-
});
|
|
1211
|
-
},
|
|
1212
|
-
samples: [
|
|
1213
|
-
{ code: 'US', title: 'United States', timezone: 'GMT-5' },
|
|
1214
|
-
{ code: 'CA', title: 'Canada', timezone: 'GMT-6' },
|
|
1215
|
-
{ code: 'GB', title: 'United Kingdom', timezone: 'GMT+0' },
|
|
1216
|
-
],
|
|
1217
|
-
};
|
|
1218
|
-
//#endregion
|
|
1219
|
-
//#region Cities
|
|
1220
|
-
this.cities = {
|
|
1221
|
-
name: 'cities',
|
|
1222
|
-
title: 'Cities',
|
|
1223
|
-
textField: 'title',
|
|
1224
|
-
valueField: 'code',
|
|
1225
|
-
columns: [
|
|
1226
|
-
{
|
|
1227
|
-
name: 'code',
|
|
1228
|
-
title: 'Code',
|
|
1229
|
-
},
|
|
1230
|
-
{
|
|
1231
|
-
name: 'title',
|
|
1232
|
-
title: 'Title',
|
|
1233
|
-
},
|
|
1234
|
-
{
|
|
1235
|
-
name: 'timezone',
|
|
1236
|
-
title: 'Timezone',
|
|
1237
|
-
},
|
|
1238
|
-
],
|
|
1239
|
-
source: async () => {
|
|
1240
|
-
const list = await this.regionalService.getCities();
|
|
1241
|
-
return new AXDataSource({
|
|
1242
|
-
pageSize: 20,
|
|
1243
|
-
key: 'code',
|
|
1244
|
-
load: (e) => {
|
|
1245
|
-
return applyQueryArray(list, e);
|
|
1246
|
-
},
|
|
1247
|
-
byKey: async (key) => {
|
|
1248
|
-
return list.find((c) => c.code == key);
|
|
1249
|
-
},
|
|
1250
|
-
});
|
|
1251
|
-
},
|
|
1252
|
-
samples: [
|
|
1253
|
-
{ code: 'NYC', title: 'New York', timezone: 'GMT-5' },
|
|
1254
|
-
{ code: 'TOR', title: 'Toronto', timezone: 'GMT-5' },
|
|
1255
|
-
{ code: 'LDN', title: 'London', timezone: 'GMT+0' },
|
|
1256
|
-
],
|
|
1257
|
-
};
|
|
1258
|
-
//#endregion
|
|
1259
|
-
//#region Provinces
|
|
1260
|
-
this.provinces = {
|
|
1261
|
-
name: 'provinces',
|
|
1262
|
-
title: 'Provinces',
|
|
1263
|
-
textField: 'title',
|
|
1264
|
-
valueField: 'code',
|
|
1265
|
-
columns: [
|
|
1266
|
-
{
|
|
1267
|
-
name: 'code',
|
|
1268
|
-
title: 'Code',
|
|
1269
|
-
},
|
|
1270
|
-
{
|
|
1271
|
-
name: 'title',
|
|
1272
|
-
title: 'Title',
|
|
1273
|
-
},
|
|
1274
|
-
{
|
|
1275
|
-
name: 'timezone',
|
|
1276
|
-
title: 'Timezone',
|
|
1277
|
-
},
|
|
1278
|
-
],
|
|
1279
|
-
source: async () => {
|
|
1280
|
-
const list = await this.regionalService.getProvinces();
|
|
1281
|
-
return new AXDataSource({
|
|
1282
|
-
pageSize: 20,
|
|
1283
|
-
key: 'code',
|
|
1284
|
-
load: (e) => {
|
|
1285
|
-
return applyQueryArray(list, e);
|
|
1286
|
-
},
|
|
1287
|
-
byKey: async (key) => {
|
|
1288
|
-
return list.find((p) => p.code == key);
|
|
1289
|
-
},
|
|
1290
|
-
});
|
|
1291
|
-
},
|
|
1292
|
-
samples: [
|
|
1293
|
-
{ code: 'CA', title: 'California', timezone: 'GMT-8' },
|
|
1294
|
-
{ code: 'ON', title: 'Ontario', timezone: 'GMT-5' },
|
|
1295
|
-
{ code: 'ENG', title: 'England', timezone: 'GMT+0' },
|
|
1296
|
-
],
|
|
1297
|
-
};
|
|
1298
|
-
//#endregion
|
|
1299
|
-
//#region Currencies
|
|
1300
|
-
this.currencies = {
|
|
1301
|
-
name: 'currencies',
|
|
1302
|
-
title: 'Currencies',
|
|
1303
|
-
textField: 'title',
|
|
1304
|
-
valueField: 'code',
|
|
1305
|
-
columns: [
|
|
1306
|
-
{
|
|
1307
|
-
name: 'code',
|
|
1308
|
-
title: 'Code',
|
|
1309
|
-
},
|
|
1310
|
-
{
|
|
1311
|
-
name: 'title',
|
|
1312
|
-
title: 'Title',
|
|
1313
|
-
},
|
|
1314
|
-
{
|
|
1315
|
-
name: 'symbol',
|
|
1316
|
-
title: 'Symbol',
|
|
1317
|
-
},
|
|
1318
|
-
],
|
|
1319
|
-
source: async () => {
|
|
1320
|
-
const list = await this.regionalService.getCurrencies();
|
|
1321
|
-
return new AXDataSource({
|
|
1322
|
-
pageSize: 20,
|
|
1323
|
-
key: 'code',
|
|
1324
|
-
load: (e) => {
|
|
1325
|
-
return applyQueryArray(list, e);
|
|
1326
|
-
},
|
|
1327
|
-
byKey: async (key) => {
|
|
1328
|
-
return list.find((c) => c.code == key);
|
|
1329
|
-
},
|
|
1330
|
-
});
|
|
1331
|
-
},
|
|
1332
|
-
samples: [
|
|
1333
|
-
{ code: 'USD', title: 'United States Dollar', symbol: '$' },
|
|
1334
|
-
{ code: 'CAD', title: 'Canadian Dollar', symbol: 'CA$' },
|
|
1335
|
-
{ code: 'GBP', title: 'British Pound', symbol: '£' },
|
|
1336
|
-
],
|
|
1337
|
-
};
|
|
1338
|
-
//#endregion
|
|
1339
|
-
//#region Languages
|
|
1340
|
-
this.languages = {
|
|
1341
|
-
name: 'languages',
|
|
1342
|
-
title: 'Languages',
|
|
1343
|
-
textField: 'title',
|
|
1344
|
-
valueField: 'code',
|
|
1345
|
-
columns: [
|
|
1346
|
-
{
|
|
1347
|
-
name: 'code',
|
|
1348
|
-
title: 'Code',
|
|
1349
|
-
},
|
|
1350
|
-
{
|
|
1351
|
-
name: 'title',
|
|
1352
|
-
title: 'Title',
|
|
1353
|
-
},
|
|
1354
|
-
],
|
|
1355
|
-
source: async () => {
|
|
1356
|
-
const list = await this.regionalService.getLanguages();
|
|
1357
|
-
return new AXDataSource({
|
|
1358
|
-
pageSize: 20,
|
|
1359
|
-
key: 'code',
|
|
1360
|
-
load: (e) => {
|
|
1361
|
-
return applyQueryArray(list, e);
|
|
1362
|
-
},
|
|
1363
|
-
byKey: async (key) => {
|
|
1364
|
-
return list.find((l) => l.code == key);
|
|
1365
|
-
},
|
|
1366
|
-
});
|
|
1367
|
-
},
|
|
1368
|
-
samples: [
|
|
1369
|
-
{ code: 'EN', title: 'English', nativeName: 'English' },
|
|
1370
|
-
{ code: 'FR', title: 'French', nativeName: 'Français' },
|
|
1371
|
-
{ code: 'ES', title: 'Spanish', nativeName: 'Español' },
|
|
1372
|
-
],
|
|
1373
|
-
};
|
|
1374
|
-
//#endregion
|
|
1375
|
-
//#region Timezones
|
|
1376
|
-
this.timezones = {
|
|
1377
|
-
name: 'timezones',
|
|
1378
|
-
title: 'Timezones',
|
|
1379
|
-
textField: 'title',
|
|
1380
|
-
valueField: 'iana',
|
|
1381
|
-
columns: [
|
|
1382
|
-
{
|
|
1383
|
-
name: 'code',
|
|
1384
|
-
title: 'Code',
|
|
1385
|
-
},
|
|
1386
|
-
{
|
|
1387
|
-
name: 'title',
|
|
1388
|
-
title: 'Title',
|
|
1389
|
-
},
|
|
1390
|
-
],
|
|
1391
|
-
source: async () => {
|
|
1392
|
-
const list = await this.regionalService.getTimeZones();
|
|
1393
|
-
return new AXDataSource({
|
|
1394
|
-
pageSize: 20,
|
|
1395
|
-
key: 'code',
|
|
1396
|
-
load: (e) => {
|
|
1397
|
-
return applyQueryArray(list, e);
|
|
1398
|
-
},
|
|
1399
|
-
byKey: async (key) => {
|
|
1400
|
-
return list.find((t) => t.code == key);
|
|
1401
|
-
},
|
|
1402
|
-
});
|
|
1403
|
-
},
|
|
1404
|
-
samples: [
|
|
1405
|
-
{ code: 'GMT-5', title: 'Eastern Time (US & Canada)' },
|
|
1406
|
-
{ code: 'GMT+0', title: 'Greenwich Mean Time' },
|
|
1407
|
-
{ code: 'GMT+1', title: 'Central European Time' },
|
|
1408
|
-
],
|
|
1409
|
-
};
|
|
1410
|
-
}
|
|
1411
|
-
//#endregion
|
|
1412
|
-
async items() {
|
|
1413
|
-
return [this.country, this.cities, this.provinces, this.currencies, this.languages, this.timezones];
|
|
1414
|
-
}
|
|
1415
|
-
}
|
|
1416
|
-
|
|
1417
|
-
class AXMRegionalModule {
|
|
1418
|
-
constructor(appInitService, injector) {
|
|
1419
|
-
const service = injector.get(AXPRegionalStoreService);
|
|
1420
|
-
appInitService.registerTask({
|
|
1421
|
-
name: 'Settings',
|
|
1422
|
-
statusText: 'Apply Regional Settings ...',
|
|
1423
|
-
priority: 2,
|
|
1424
|
-
run: async () => {
|
|
1425
|
-
await service.loadSetting();
|
|
1426
|
-
}
|
|
1427
|
-
});
|
|
1428
|
-
}
|
|
1429
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMRegionalModule, deps: [{ token: i1$2.AXPAppStartUpService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1430
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXMRegionalModule, imports: [i2$1.AXPComponentSlotModule] }); }
|
|
1431
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMRegionalModule, providers: [
|
|
1432
|
-
{
|
|
1433
|
-
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
|
1434
|
-
useFactory: async () => {
|
|
1435
|
-
const injector = inject(Injector);
|
|
1436
|
-
const provider = (await import('./acorex-modules-common-settings.provider-DPVsF4c9.mjs')).AXMRegionalSettingProvider;
|
|
1437
|
-
return new provider(injector);
|
|
1438
|
-
},
|
|
1439
|
-
multi: true
|
|
1440
|
-
},
|
|
1441
|
-
{
|
|
1442
|
-
provide: AXP_WIDGET_DATASOURCE_PROVIDER,
|
|
1443
|
-
useClass: AXPRegionalWidgetDataSourceProvider,
|
|
1444
|
-
multi: true
|
|
1445
|
-
},
|
|
1446
|
-
], imports: [AXPComponentSlotModule.forChild({
|
|
1447
|
-
'root-header-end': [
|
|
1448
|
-
{
|
|
1449
|
-
name: 'language',
|
|
1450
|
-
component: AXMLanguageSlotComponent
|
|
1451
|
-
}
|
|
1452
|
-
]
|
|
1453
|
-
})] }); }
|
|
1454
|
-
}
|
|
1455
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMRegionalModule, decorators: [{
|
|
1456
|
-
type: NgModule,
|
|
1457
|
-
args: [{
|
|
1458
|
-
imports: [
|
|
1459
|
-
AXPComponentSlotModule.forChild({
|
|
1460
|
-
'root-header-end': [
|
|
1461
|
-
{
|
|
1462
|
-
name: 'language',
|
|
1463
|
-
component: AXMLanguageSlotComponent
|
|
1464
|
-
}
|
|
1465
|
-
]
|
|
1466
|
-
})
|
|
1467
|
-
],
|
|
1468
|
-
exports: [],
|
|
1469
|
-
declarations: [],
|
|
1470
|
-
providers: [
|
|
1471
|
-
{
|
|
1472
|
-
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
|
1473
|
-
useFactory: async () => {
|
|
1474
|
-
const injector = inject(Injector);
|
|
1475
|
-
const provider = (await import('./acorex-modules-common-settings.provider-DPVsF4c9.mjs')).AXMRegionalSettingProvider;
|
|
1476
|
-
return new provider(injector);
|
|
1477
|
-
},
|
|
1478
|
-
multi: true
|
|
1479
|
-
},
|
|
1480
|
-
{
|
|
1481
|
-
provide: AXP_WIDGET_DATASOURCE_PROVIDER,
|
|
1482
|
-
useClass: AXPRegionalWidgetDataSourceProvider,
|
|
1483
|
-
multi: true
|
|
1484
|
-
},
|
|
1485
|
-
],
|
|
1486
|
-
}]
|
|
1487
|
-
}], ctorParameters: () => [{ type: i1$2.AXPAppStartUpService }, { type: i0.Injector }] });
|
|
1488
|
-
|
|
1489
|
-
class AXMCommonModule {
|
|
1490
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1491
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXMCommonModule, imports: [AXPGlobalSearchModule,
|
|
1492
|
-
AXPWidgetsModule,
|
|
1493
|
-
AXPVersionHistoryModule,
|
|
1494
|
-
AXPCompareModule,
|
|
1495
|
-
AXMRegionalModule, i1$1.AXPWorkflowModule] }); }
|
|
1496
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMCommonModule, providers: [
|
|
1497
|
-
{
|
|
1498
|
-
provide: AXP_MENU_PROVIDER,
|
|
1499
|
-
useClass: AXMMenuProvider,
|
|
1500
|
-
multi: true,
|
|
1501
|
-
},
|
|
1502
|
-
{
|
|
1503
|
-
provide: AXP_ENTITY_DEFINITION_LOADER,
|
|
1504
|
-
useClass: AXMEntityProvider,
|
|
1505
|
-
multi: true,
|
|
1506
|
-
},
|
|
1507
|
-
{
|
|
1508
|
-
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
|
1509
|
-
useClass: AXMSettingProvider,
|
|
1510
|
-
multi: true,
|
|
1511
|
-
},
|
|
1512
|
-
{
|
|
1513
|
-
provide: AXP_SEARCH_PROVIDER,
|
|
1514
|
-
useClass: AXMSearchCommandProvider,
|
|
1515
|
-
multi: true,
|
|
1516
|
-
},
|
|
1517
|
-
{
|
|
1518
|
-
provide: AXP_PERMISSION_DEFINITION_PROVIDER,
|
|
1519
|
-
useClass: AXMPermissionDefinitionProvider,
|
|
1520
|
-
multi: true,
|
|
1521
|
-
},
|
|
1522
|
-
{
|
|
1523
|
-
provide: AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER,
|
|
1524
|
-
useClass: AXMLockEvaluatorScopeProvider,
|
|
1525
|
-
multi: true,
|
|
1526
|
-
},
|
|
1527
|
-
{
|
|
1528
|
-
provide: AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER,
|
|
1529
|
-
useClass: AXPDateTimeEvaluatorScopeProvider,
|
|
1530
|
-
multi: true,
|
|
1531
|
-
},
|
|
1532
|
-
], imports: [AXPGlobalSearchModule,
|
|
1533
|
-
AXPWidgetsModule,
|
|
1534
|
-
AXPVersionHistoryModule,
|
|
1535
|
-
AXPCompareModule,
|
|
1536
|
-
AXMRegionalModule,
|
|
1537
|
-
AXPWorkflowModule.forChild({
|
|
1538
|
-
actions: {
|
|
1539
|
-
AXMLockPopupWorkflowAction,
|
|
1540
|
-
AXMUnlockConfirmWorkflowAction,
|
|
1541
|
-
},
|
|
1542
|
-
workflows: {
|
|
1543
|
-
'lock-popup': AXMLockPopupWorkflow,
|
|
1544
|
-
'unlock-confirm': AXMUnlockConfirmWorkflow,
|
|
1545
|
-
},
|
|
1546
|
-
})] }); }
|
|
1547
|
-
}
|
|
1548
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMCommonModule, decorators: [{
|
|
1549
|
-
type: NgModule,
|
|
1550
|
-
args: [{
|
|
1551
|
-
imports: [
|
|
1552
|
-
AXPGlobalSearchModule,
|
|
1553
|
-
AXPWidgetsModule,
|
|
1554
|
-
AXPVersionHistoryModule,
|
|
1555
|
-
AXPCompareModule,
|
|
1556
|
-
AXMRegionalModule,
|
|
1557
|
-
AXPWorkflowModule.forChild({
|
|
1558
|
-
actions: {
|
|
1559
|
-
AXMLockPopupWorkflowAction,
|
|
1560
|
-
AXMUnlockConfirmWorkflowAction,
|
|
1561
|
-
},
|
|
1562
|
-
workflows: {
|
|
1563
|
-
'lock-popup': AXMLockPopupWorkflow,
|
|
1564
|
-
'unlock-confirm': AXMUnlockConfirmWorkflow,
|
|
1565
|
-
},
|
|
1566
|
-
}),
|
|
1567
|
-
],
|
|
1568
|
-
exports: [],
|
|
1569
|
-
declarations: [],
|
|
1570
|
-
providers: [
|
|
1571
|
-
{
|
|
1572
|
-
provide: AXP_MENU_PROVIDER,
|
|
1573
|
-
useClass: AXMMenuProvider,
|
|
1574
|
-
multi: true,
|
|
1575
|
-
},
|
|
1576
|
-
{
|
|
1577
|
-
provide: AXP_ENTITY_DEFINITION_LOADER,
|
|
1578
|
-
useClass: AXMEntityProvider,
|
|
1579
|
-
multi: true,
|
|
1580
|
-
},
|
|
1581
|
-
{
|
|
1582
|
-
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
|
1583
|
-
useClass: AXMSettingProvider,
|
|
1584
|
-
multi: true,
|
|
1585
|
-
},
|
|
1586
|
-
{
|
|
1587
|
-
provide: AXP_SEARCH_PROVIDER,
|
|
1588
|
-
useClass: AXMSearchCommandProvider,
|
|
1589
|
-
multi: true,
|
|
1590
|
-
},
|
|
1591
|
-
{
|
|
1592
|
-
provide: AXP_PERMISSION_DEFINITION_PROVIDER,
|
|
1593
|
-
useClass: AXMPermissionDefinitionProvider,
|
|
1594
|
-
multi: true,
|
|
1595
|
-
},
|
|
1596
|
-
{
|
|
1597
|
-
provide: AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER,
|
|
1598
|
-
useClass: AXMLockEvaluatorScopeProvider,
|
|
1599
|
-
multi: true,
|
|
1600
|
-
},
|
|
1601
|
-
{
|
|
1602
|
-
provide: AXP_EXPRESSION_EVALUATOR_SCOPE_PROVIDER,
|
|
1603
|
-
useClass: AXPDateTimeEvaluatorScopeProvider,
|
|
1604
|
-
multi: true,
|
|
1605
|
-
},
|
|
1606
|
-
],
|
|
1607
|
-
}]
|
|
1608
|
-
}] });
|
|
1609
|
-
|
|
1610
|
-
const AXPWidgetsList = {
|
|
1611
|
-
Editors: {
|
|
1612
|
-
DocumentAttachment: 'document-attachment-editor',
|
|
1613
|
-
TagBox: 'tagable-editor',
|
|
1614
|
-
CheckBox: 'checkbox-editor',
|
|
1615
|
-
ColorBox: 'color-editor',
|
|
1616
|
-
DateTimeBox: 'date-time-editor',
|
|
1617
|
-
Direction: 'direction',
|
|
1618
|
-
LargeTextBox: 'large-text-editor',
|
|
1619
|
-
NumberBox: 'number-editor',
|
|
1620
|
-
UnitValueBox: 'number-unit-editor',
|
|
1621
|
-
PasswordBox: 'password-editor',
|
|
1622
|
-
QueryBuilder: 'query-builder-editor',
|
|
1623
|
-
RichText: 'rich-text-editor',
|
|
1624
|
-
SelectBox: 'select-editor',
|
|
1625
|
-
SelectionList: 'selection-list-editor',
|
|
1626
|
-
TextBox: 'text-editor',
|
|
1627
|
-
InlineDataTable: 'table-editor',
|
|
1628
|
-
ToggleSwitch: 'toggle-editor',
|
|
1629
|
-
FileTypeExtension: 'file-type-extension',
|
|
1630
|
-
MapBox: 'map',
|
|
1631
|
-
MediaGallery: 'gallery',
|
|
1632
|
-
SignatureBox: 'signature',
|
|
1633
|
-
LookupBox: 'lookup-editor',
|
|
1634
|
-
},
|
|
1635
|
-
Layouts: {
|
|
1636
|
-
BlockLayout: 'block-layout',
|
|
1637
|
-
RepeaterLayout: 'repeater-layout',
|
|
1638
|
-
TextBlockLayout: 'text-block-layout',
|
|
1639
|
-
FormField: 'form-field',
|
|
1640
|
-
},
|
|
1641
|
-
Actions: {
|
|
1642
|
-
ActionButton: 'button-action',
|
|
1643
|
-
},
|
|
1644
|
-
Advanced: {
|
|
1645
|
-
QRCode: 'qrcode',
|
|
1646
|
-
},
|
|
1647
|
-
Templates: {
|
|
1648
|
-
Designer: 'template-designer',
|
|
1649
|
-
},
|
|
1650
|
-
};
|
|
1651
|
-
|
|
1652
|
-
/**
|
|
1653
|
-
* Generated bundle index. Do not edit.
|
|
1654
|
-
*/
|
|
1655
|
-
|
|
1656
|
-
export { AXPGlobalSearchViewModel as A, RootConfig as R, AXPWidgetsList as a, AXPRegionalSetting as b, AXMCommonModule as c, AXMEntityProvider as d, AXMMenuProvider as e, AXMSearchCommandProvider as f, AXMSettingProvider as g, AXP_GLOBAL_SEARCH_CONFIG_TOKEN as h, AXPGlobalSearchModule as i, AXPVersionHistoryModule as j, AXMLockPopupWorkflowAction as k, AXMLockPopupWorkflow as l, AXMUnlockConfirmWorkflowAction as m, AXMUnlockConfirmWorkflow as n, AXPLockPopupComponent as o };
|
|
1657
|
-
//# sourceMappingURL=acorex-modules-common-acorex-modules-common-D06CT4CO.mjs.map
|