@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
package/fesm2022/acorex-modules-locale-management-acorex-modules-locale-management-CfaOC6U5.mjs
ADDED
|
@@ -0,0 +1,1975 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, inject, signal, Component, Injector, NgModule } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import { AXPSearchCommandProvider, createAllQueryView, AXPEntityQueryType, AXPEntityCommandScope, AXPSettingService, AXP_MENU_PROVIDER, AXP_SEARCH_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER } from '@acorex/platform/common';
|
|
5
|
+
import { AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex/platform/auth';
|
|
6
|
+
import { AXPEntityService, AXMEntityCrudServiceImpl, entityMasterCrudActions, entityMasterRecordActions, entityDetailsCreateActions, entityDetailsSimpleCondition, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
|
|
7
|
+
import { AXTranslationService } from '@acorex/core/translation';
|
|
8
|
+
import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
|
|
9
|
+
import { AXDataSource } from '@acorex/cdk/common';
|
|
10
|
+
import * as i1$1 from '@acorex/platform/core';
|
|
11
|
+
import { AXPPlatformScope, AXP_DATASOURCE_DEFINITION_PROVIDER } from '@acorex/platform/core';
|
|
12
|
+
import * as i2$1 from '@acorex/platform/layout/components';
|
|
13
|
+
import { AXPComponentSlotModule } from '@acorex/platform/layout/components';
|
|
14
|
+
import * as i3 from '@acorex/components/button';
|
|
15
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
16
|
+
import * as i2 from '@acorex/components/decorators';
|
|
17
|
+
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
18
|
+
import * as i1 from '@acorex/components/dropdown';
|
|
19
|
+
import { AXDropdownModule } from '@acorex/components/dropdown';
|
|
20
|
+
import { AXPopoverModule } from '@acorex/components/popover';
|
|
21
|
+
import { signalStore, withState, withMethods, patchState, withHooks } from '@ngrx/signals';
|
|
22
|
+
import { AXCalendarService } from '@acorex/core/date-time';
|
|
23
|
+
import { AXLocaleService } from '@acorex/core/locale';
|
|
24
|
+
|
|
25
|
+
const config = {
|
|
26
|
+
i18n: 'locale-management',
|
|
27
|
+
};
|
|
28
|
+
const RootConfig = {
|
|
29
|
+
config,
|
|
30
|
+
module: {
|
|
31
|
+
name: 'LocaleManagement',
|
|
32
|
+
title: '@locale-management:module-name',
|
|
33
|
+
icon: 'fa-light fa-globe',
|
|
34
|
+
},
|
|
35
|
+
entities: {
|
|
36
|
+
languages: {
|
|
37
|
+
name: 'Languages',
|
|
38
|
+
title: '@locale-management:languages.individual-title',
|
|
39
|
+
titlePlural: '@locale-management:languages.plural-title',
|
|
40
|
+
icon: 'fa-light fa-language',
|
|
41
|
+
},
|
|
42
|
+
locales: {
|
|
43
|
+
name: 'Locales',
|
|
44
|
+
title: '@locale-management:locales.individual-title',
|
|
45
|
+
titlePlural: '@locale-management:locales.plural-title',
|
|
46
|
+
icon: 'fa-light fa-globe',
|
|
47
|
+
},
|
|
48
|
+
timezones: {
|
|
49
|
+
name: 'Timezones',
|
|
50
|
+
title: '@locale-management:timezones.individual-title',
|
|
51
|
+
titlePlural: '@locale-management:timezones.plural-title',
|
|
52
|
+
icon: 'fa-light fa-clock',
|
|
53
|
+
},
|
|
54
|
+
currencies: {
|
|
55
|
+
name: 'Currencies',
|
|
56
|
+
title: '@locale-management:currencies.individual-title',
|
|
57
|
+
titlePlural: '@locale-management:currencies.plural-title',
|
|
58
|
+
icon: 'fa-light fa-coins',
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
class AXMLocaleManagementEntityProvider {
|
|
64
|
+
constructor(injector) {
|
|
65
|
+
this.injector = injector;
|
|
66
|
+
}
|
|
67
|
+
async get(moduleName, entityName) {
|
|
68
|
+
if (moduleName == RootConfig.module.name) {
|
|
69
|
+
switch (entityName) {
|
|
70
|
+
case RootConfig.entities.languages.name:
|
|
71
|
+
return (await Promise.resolve().then(function () { return languages_entity; })).languagesFactory(this.injector);
|
|
72
|
+
case RootConfig.entities.locales.name:
|
|
73
|
+
return (await Promise.resolve().then(function () { return locales_entity; })).localesFactory(this.injector);
|
|
74
|
+
case RootConfig.entities.timezones.name:
|
|
75
|
+
return (await Promise.resolve().then(function () { return timezones_entity; })).timezonesFactory(this.injector);
|
|
76
|
+
case RootConfig.entities.currencies.name:
|
|
77
|
+
return (await Promise.resolve().then(function () { return currencies_entity; })).currenciesFactory(this.injector);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocaleManagementEntityProvider, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
83
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocaleManagementEntityProvider }); }
|
|
84
|
+
}
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocaleManagementEntityProvider, decorators: [{
|
|
86
|
+
type: Injectable
|
|
87
|
+
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
88
|
+
|
|
89
|
+
class AXMLocaleManagementMenuProvider {
|
|
90
|
+
constructor() {
|
|
91
|
+
this.entityService = inject(AXPEntityService);
|
|
92
|
+
}
|
|
93
|
+
async provide(context) {
|
|
94
|
+
const module = RootConfig.module;
|
|
95
|
+
context.addItems([
|
|
96
|
+
{
|
|
97
|
+
priority: 9004,
|
|
98
|
+
text: '@locale-management:module-name',
|
|
99
|
+
icon: module.icon,
|
|
100
|
+
children: [
|
|
101
|
+
{
|
|
102
|
+
text: '@locale-management:languages.plural-title',
|
|
103
|
+
path: this.entityService.createPath(module.name, RootConfig.entities.languages.name),
|
|
104
|
+
icon: RootConfig.entities.languages.icon,
|
|
105
|
+
priority: 1,
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
text: '',
|
|
109
|
+
type: 'break',
|
|
110
|
+
priority: 2,
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
text: '@locale-management:timezones.plural-title',
|
|
114
|
+
path: this.entityService.createPath(module.name, RootConfig.entities.timezones.name),
|
|
115
|
+
icon: RootConfig.entities.timezones.icon,
|
|
116
|
+
priority: 3,
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
text: '@locale-management:currencies.plural-title',
|
|
120
|
+
path: this.entityService.createPath(module.name, RootConfig.entities.currencies.name),
|
|
121
|
+
icon: RootConfig.entities.currencies.icon,
|
|
122
|
+
priority: 4,
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
]);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
class AXMLocaleManagementPermissionDefinitionProvider {
|
|
131
|
+
constructor(injector) {
|
|
132
|
+
this.injector = injector;
|
|
133
|
+
this.translateService = this.injector.get(AXTranslationService);
|
|
134
|
+
}
|
|
135
|
+
async define(context) {
|
|
136
|
+
const trans = async (key) => await this.translateService.translateAsync(`permissions.locale-management.${key}`, {
|
|
137
|
+
scope: 'locale-management',
|
|
138
|
+
});
|
|
139
|
+
context
|
|
140
|
+
.addGroup('locale-management', 'Locale Management')
|
|
141
|
+
.addPermission('locale.management', 'Manage Locale Data')
|
|
142
|
+
.addChild('languages.view', 'View Languages')
|
|
143
|
+
.addChild('languages.create', 'Create Languages')
|
|
144
|
+
.addChild('languages.update', 'Update Languages')
|
|
145
|
+
.addChild('languages.delete', 'Delete Languages')
|
|
146
|
+
.addChild('locales.view', 'View Locales')
|
|
147
|
+
.addChild('locales.create', 'Create Locales')
|
|
148
|
+
.addChild('locales.update', 'Update Locales')
|
|
149
|
+
.addChild('locales.delete', 'Delete Locales')
|
|
150
|
+
.addChild('timezones.view', 'View Timezones')
|
|
151
|
+
.addChild('timezones.create', 'Create Timezones')
|
|
152
|
+
.addChild('timezones.update', 'Update Timezones')
|
|
153
|
+
.addChild('timezones.delete', 'Delete Timezones')
|
|
154
|
+
.addChild('currencies.view', 'View Currencies')
|
|
155
|
+
.addChild('currencies.create', 'Create Currencies')
|
|
156
|
+
.addChild('currencies.update', 'Update Currencies')
|
|
157
|
+
.addChild('currencies.delete', 'Delete Currencies')
|
|
158
|
+
.endPermission()
|
|
159
|
+
.endGroup();
|
|
160
|
+
}
|
|
161
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocaleManagementPermissionDefinitionProvider, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
162
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocaleManagementPermissionDefinitionProvider }); }
|
|
163
|
+
}
|
|
164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocaleManagementPermissionDefinitionProvider, decorators: [{
|
|
165
|
+
type: Injectable
|
|
166
|
+
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
167
|
+
|
|
168
|
+
class AXMLocaleManagementSearchCommandProvider extends AXPSearchCommandProvider {
|
|
169
|
+
constructor() {
|
|
170
|
+
super(...arguments);
|
|
171
|
+
this.commands = [
|
|
172
|
+
{
|
|
173
|
+
group: 'entity',
|
|
174
|
+
title: 'New Language',
|
|
175
|
+
icon: RootConfig.entities.languages.icon,
|
|
176
|
+
description: 'Create a new language with locales.',
|
|
177
|
+
command: {
|
|
178
|
+
name: 'create-entity',
|
|
179
|
+
options: {
|
|
180
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.languages.name}`,
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
group: 'entity',
|
|
186
|
+
title: 'New Timezone',
|
|
187
|
+
icon: RootConfig.entities.timezones.icon,
|
|
188
|
+
description: 'Create a new timezone definition.',
|
|
189
|
+
command: {
|
|
190
|
+
name: 'create-entity',
|
|
191
|
+
options: {
|
|
192
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.timezones.name}`,
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
group: 'entity',
|
|
198
|
+
title: 'New Currency',
|
|
199
|
+
icon: RootConfig.entities.currencies.icon,
|
|
200
|
+
description: 'Create a new currency definition.',
|
|
201
|
+
command: {
|
|
202
|
+
name: 'create-entity',
|
|
203
|
+
options: {
|
|
204
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.currencies.name}`,
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
];
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
class AXMLanguagesService extends AXMEntityCrudServiceImpl {
|
|
213
|
+
}
|
|
214
|
+
class AXMLanguagesServiceImpl extends AXMLanguagesService {
|
|
215
|
+
constructor() {
|
|
216
|
+
super(`${RootConfig.module.name}.${RootConfig.entities.languages.name}`);
|
|
217
|
+
}
|
|
218
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLanguagesServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
219
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLanguagesServiceImpl }); }
|
|
220
|
+
}
|
|
221
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLanguagesServiceImpl, decorators: [{
|
|
222
|
+
type: Injectable
|
|
223
|
+
}], ctorParameters: () => [] });
|
|
224
|
+
|
|
225
|
+
async function languagesFactory(injector) {
|
|
226
|
+
const dataService = injector.get(AXMLanguagesService);
|
|
227
|
+
const i18n = RootConfig.config.i18n;
|
|
228
|
+
const entityDef = {
|
|
229
|
+
module: RootConfig.module.name,
|
|
230
|
+
name: RootConfig.entities.languages.name,
|
|
231
|
+
source: '',
|
|
232
|
+
title: RootConfig.entities.languages.title,
|
|
233
|
+
formats: {
|
|
234
|
+
individual: RootConfig.entities.languages.title,
|
|
235
|
+
plural: RootConfig.entities.languages.titlePlural,
|
|
236
|
+
searchResult: {
|
|
237
|
+
title: '{{ title }}',
|
|
238
|
+
description: '{{ nativeTitle }}',
|
|
239
|
+
},
|
|
240
|
+
},
|
|
241
|
+
relatedEntities: [
|
|
242
|
+
{
|
|
243
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.locales.name}`,
|
|
244
|
+
title: RootConfig.entities.locales.title,
|
|
245
|
+
columns: ['code', 'title', 'countryCode', 'isDefault', 'isActive'],
|
|
246
|
+
conditions: [
|
|
247
|
+
entityDetailsSimpleCondition('languageId')
|
|
248
|
+
],
|
|
249
|
+
actions: [
|
|
250
|
+
entityDetailsCreateActions('languageId'),
|
|
251
|
+
],
|
|
252
|
+
},
|
|
253
|
+
],
|
|
254
|
+
groups: [
|
|
255
|
+
{
|
|
256
|
+
id: 'basic-info',
|
|
257
|
+
title: '@general:terms.basic-info',
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
id: 'settings',
|
|
261
|
+
title: '@general:terms.settings',
|
|
262
|
+
},
|
|
263
|
+
],
|
|
264
|
+
properties: [
|
|
265
|
+
{
|
|
266
|
+
name: 'code',
|
|
267
|
+
title: '@general:terms.code',
|
|
268
|
+
groupId: 'basic-info',
|
|
269
|
+
options: {
|
|
270
|
+
sort: {
|
|
271
|
+
enabled: true,
|
|
272
|
+
},
|
|
273
|
+
filter: {
|
|
274
|
+
advance: {
|
|
275
|
+
enabled: true,
|
|
276
|
+
},
|
|
277
|
+
inline: {
|
|
278
|
+
enabled: true,
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
},
|
|
282
|
+
schema: {
|
|
283
|
+
dataType: 'string',
|
|
284
|
+
interface: {
|
|
285
|
+
type: AXPWidgetsCatalog.text,
|
|
286
|
+
options: {
|
|
287
|
+
placeholder: 'e.g., en, es, fr',
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
validations: [
|
|
292
|
+
{
|
|
293
|
+
rule: 'required',
|
|
294
|
+
},
|
|
295
|
+
],
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
name: 'title',
|
|
299
|
+
title: '@general:terms.title',
|
|
300
|
+
groupId: 'basic-info',
|
|
301
|
+
options: {
|
|
302
|
+
sort: {
|
|
303
|
+
enabled: true,
|
|
304
|
+
},
|
|
305
|
+
filter: {
|
|
306
|
+
advance: {
|
|
307
|
+
enabled: true,
|
|
308
|
+
},
|
|
309
|
+
inline: {
|
|
310
|
+
enabled: true,
|
|
311
|
+
},
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
schema: {
|
|
315
|
+
dataType: 'string',
|
|
316
|
+
interface: {
|
|
317
|
+
type: AXPWidgetsCatalog.text,
|
|
318
|
+
options: {
|
|
319
|
+
placeholder: 'e.g., English, Spanish',
|
|
320
|
+
},
|
|
321
|
+
},
|
|
322
|
+
},
|
|
323
|
+
validations: [
|
|
324
|
+
{
|
|
325
|
+
rule: 'required',
|
|
326
|
+
},
|
|
327
|
+
],
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
name: 'nativeTitle',
|
|
331
|
+
title: '@locale-management:languages.native-title',
|
|
332
|
+
groupId: 'basic-info',
|
|
333
|
+
options: {
|
|
334
|
+
sort: {
|
|
335
|
+
enabled: true,
|
|
336
|
+
},
|
|
337
|
+
filter: {
|
|
338
|
+
advance: {
|
|
339
|
+
enabled: true,
|
|
340
|
+
},
|
|
341
|
+
},
|
|
342
|
+
},
|
|
343
|
+
schema: {
|
|
344
|
+
dataType: 'string',
|
|
345
|
+
interface: {
|
|
346
|
+
type: AXPWidgetsCatalog.text,
|
|
347
|
+
options: {
|
|
348
|
+
placeholder: 'e.g., English, Español',
|
|
349
|
+
},
|
|
350
|
+
},
|
|
351
|
+
},
|
|
352
|
+
validations: [
|
|
353
|
+
{
|
|
354
|
+
rule: 'required',
|
|
355
|
+
},
|
|
356
|
+
],
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
name: 'isRTL',
|
|
360
|
+
title: '@locale-management:languages.is-rtl',
|
|
361
|
+
groupId: 'settings',
|
|
362
|
+
options: {
|
|
363
|
+
filter: {
|
|
364
|
+
advance: {
|
|
365
|
+
enabled: true,
|
|
366
|
+
},
|
|
367
|
+
},
|
|
368
|
+
},
|
|
369
|
+
schema: {
|
|
370
|
+
dataType: 'boolean',
|
|
371
|
+
interface: {
|
|
372
|
+
type: AXPWidgetsCatalog.toggle,
|
|
373
|
+
},
|
|
374
|
+
},
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
name: 'isActive',
|
|
378
|
+
title: '@general:terms.is-active',
|
|
379
|
+
groupId: 'settings',
|
|
380
|
+
options: {
|
|
381
|
+
filter: {
|
|
382
|
+
advance: {
|
|
383
|
+
enabled: true,
|
|
384
|
+
},
|
|
385
|
+
},
|
|
386
|
+
},
|
|
387
|
+
schema: {
|
|
388
|
+
dataType: 'boolean',
|
|
389
|
+
interface: {
|
|
390
|
+
type: AXPWidgetsCatalog.toggle,
|
|
391
|
+
},
|
|
392
|
+
},
|
|
393
|
+
},
|
|
394
|
+
],
|
|
395
|
+
columns: [
|
|
396
|
+
{ name: 'code', options: { width: '100px', order: 1 } },
|
|
397
|
+
{ name: 'title', options: { width: '200px', order: 2 } },
|
|
398
|
+
{ name: 'nativeTitle', options: { width: '200px', order: 3 } },
|
|
399
|
+
{ name: 'isRTL', options: { width: '80px', order: 4 } },
|
|
400
|
+
{ name: 'isActive', options: { width: '80px', order: 5 } },
|
|
401
|
+
],
|
|
402
|
+
commands: {
|
|
403
|
+
create: {
|
|
404
|
+
execute: async (data) => {
|
|
405
|
+
const res = await dataService.insertOne(data);
|
|
406
|
+
return { id: res };
|
|
407
|
+
},
|
|
408
|
+
},
|
|
409
|
+
delete: {
|
|
410
|
+
execute: async (id) => {
|
|
411
|
+
return await dataService.deleteOne(id);
|
|
412
|
+
},
|
|
413
|
+
},
|
|
414
|
+
update: {
|
|
415
|
+
execute: async (data) => {
|
|
416
|
+
return await dataService.updateOne(data.id, data);
|
|
417
|
+
},
|
|
418
|
+
},
|
|
419
|
+
},
|
|
420
|
+
queries: {
|
|
421
|
+
byKey: {
|
|
422
|
+
execute: async (id) => {
|
|
423
|
+
return await dataService.getOne(id);
|
|
424
|
+
},
|
|
425
|
+
type: AXPEntityQueryType.Single,
|
|
426
|
+
},
|
|
427
|
+
list: {
|
|
428
|
+
execute: async (e) => {
|
|
429
|
+
return await dataService.query({
|
|
430
|
+
skip: e.skip,
|
|
431
|
+
take: e.take,
|
|
432
|
+
filter: e.filter,
|
|
433
|
+
});
|
|
434
|
+
},
|
|
435
|
+
type: AXPEntityQueryType.List,
|
|
436
|
+
},
|
|
437
|
+
},
|
|
438
|
+
interfaces: {
|
|
439
|
+
master: {
|
|
440
|
+
create: {
|
|
441
|
+
sections: [{ id: 'basic-info' }, { id: 'settings' }],
|
|
442
|
+
properties: [
|
|
443
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
444
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
445
|
+
{ name: 'nativeTitle', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
446
|
+
{ name: 'isRTL', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
447
|
+
{ name: 'isActive', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
|
|
448
|
+
],
|
|
449
|
+
},
|
|
450
|
+
update: {
|
|
451
|
+
sections: [{ id: 'basic-info' }, { id: 'settings' }],
|
|
452
|
+
properties: [
|
|
453
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
454
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
455
|
+
{ name: 'nativeTitle', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
456
|
+
{ name: 'isRTL', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
457
|
+
{ name: 'isActive', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
|
|
458
|
+
],
|
|
459
|
+
},
|
|
460
|
+
single: {
|
|
461
|
+
title: RootConfig.entities.languages.title,
|
|
462
|
+
sections: [{ id: 'basic-info' }, { id: 'settings' }],
|
|
463
|
+
properties: [
|
|
464
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
465
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
466
|
+
{ name: 'nativeTitle', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },
|
|
467
|
+
{ name: 'isRTL', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
468
|
+
{ name: 'isActive', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
|
|
469
|
+
],
|
|
470
|
+
actions: [
|
|
471
|
+
...entityMasterRecordActions(),
|
|
472
|
+
],
|
|
473
|
+
},
|
|
474
|
+
list: {
|
|
475
|
+
actions: [
|
|
476
|
+
...entityMasterCrudActions(),
|
|
477
|
+
],
|
|
478
|
+
views: [
|
|
479
|
+
createAllQueryView({
|
|
480
|
+
sorts: [{ name: 'title', dir: 'asc' }],
|
|
481
|
+
}),
|
|
482
|
+
],
|
|
483
|
+
},
|
|
484
|
+
},
|
|
485
|
+
},
|
|
486
|
+
};
|
|
487
|
+
return entityDef;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
var languages_entity = /*#__PURE__*/Object.freeze({
|
|
491
|
+
__proto__: null,
|
|
492
|
+
languagesFactory: languagesFactory
|
|
493
|
+
});
|
|
494
|
+
|
|
495
|
+
class AXMLocalesService extends AXMEntityCrudServiceImpl {
|
|
496
|
+
}
|
|
497
|
+
class AXMLocalesServiceImpl extends AXMLocalesService {
|
|
498
|
+
constructor() {
|
|
499
|
+
super(`${RootConfig.module.name}.${RootConfig.entities.locales.name}`);
|
|
500
|
+
}
|
|
501
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocalesServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
502
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocalesServiceImpl }); }
|
|
503
|
+
}
|
|
504
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocalesServiceImpl, decorators: [{
|
|
505
|
+
type: Injectable
|
|
506
|
+
}], ctorParameters: () => [] });
|
|
507
|
+
|
|
508
|
+
async function localesFactory(injector) {
|
|
509
|
+
const dataService = injector.get(AXMLocalesService);
|
|
510
|
+
const i18n = RootConfig.config.i18n;
|
|
511
|
+
const entityDef = {
|
|
512
|
+
module: RootConfig.module.name,
|
|
513
|
+
name: RootConfig.entities.locales.name,
|
|
514
|
+
source: '',
|
|
515
|
+
title: RootConfig.entities.locales.title,
|
|
516
|
+
formats: {
|
|
517
|
+
individual: RootConfig.entities.locales.title,
|
|
518
|
+
plural: RootConfig.entities.locales.titlePlural,
|
|
519
|
+
searchResult: {
|
|
520
|
+
title: '{{ title }}',
|
|
521
|
+
description: '{{ code }}',
|
|
522
|
+
},
|
|
523
|
+
},
|
|
524
|
+
groups: [
|
|
525
|
+
{
|
|
526
|
+
id: 'basic-info',
|
|
527
|
+
title: '@general:terms.basic-info',
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
id: 'settings',
|
|
531
|
+
title: '@general:terms.settings',
|
|
532
|
+
},
|
|
533
|
+
],
|
|
534
|
+
properties: [
|
|
535
|
+
{
|
|
536
|
+
name: 'languageId',
|
|
537
|
+
title: '@locale-management:locales.language',
|
|
538
|
+
groupId: 'basic-info',
|
|
539
|
+
options: {
|
|
540
|
+
filter: {
|
|
541
|
+
advance: {
|
|
542
|
+
enabled: true,
|
|
543
|
+
},
|
|
544
|
+
},
|
|
545
|
+
},
|
|
546
|
+
schema: {
|
|
547
|
+
dataType: 'object',
|
|
548
|
+
interface: {
|
|
549
|
+
type: AXPWidgetsCatalog.lookup,
|
|
550
|
+
options: {
|
|
551
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.languages.name}`,
|
|
552
|
+
expose: [
|
|
553
|
+
{ source: 'id', target: 'language.id' },
|
|
554
|
+
{ source: 'title', target: 'language.title' }
|
|
555
|
+
]
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
validations: [
|
|
560
|
+
{
|
|
561
|
+
rule: 'required',
|
|
562
|
+
},
|
|
563
|
+
],
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
name: 'code',
|
|
567
|
+
title: '@general:terms.code',
|
|
568
|
+
groupId: 'basic-info',
|
|
569
|
+
options: {
|
|
570
|
+
sort: {
|
|
571
|
+
enabled: true,
|
|
572
|
+
},
|
|
573
|
+
filter: {
|
|
574
|
+
advance: {
|
|
575
|
+
enabled: true,
|
|
576
|
+
},
|
|
577
|
+
inline: {
|
|
578
|
+
enabled: true,
|
|
579
|
+
},
|
|
580
|
+
},
|
|
581
|
+
},
|
|
582
|
+
schema: {
|
|
583
|
+
dataType: 'string',
|
|
584
|
+
interface: {
|
|
585
|
+
type: AXPWidgetsCatalog.text,
|
|
586
|
+
options: {
|
|
587
|
+
placeholder: 'e.g., en-US, es-MX',
|
|
588
|
+
},
|
|
589
|
+
},
|
|
590
|
+
},
|
|
591
|
+
validations: [
|
|
592
|
+
{
|
|
593
|
+
rule: 'required',
|
|
594
|
+
},
|
|
595
|
+
],
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
name: 'title',
|
|
599
|
+
title: '@general:terms.title',
|
|
600
|
+
groupId: 'basic-info',
|
|
601
|
+
options: {
|
|
602
|
+
sort: {
|
|
603
|
+
enabled: true,
|
|
604
|
+
},
|
|
605
|
+
filter: {
|
|
606
|
+
advance: {
|
|
607
|
+
enabled: true,
|
|
608
|
+
},
|
|
609
|
+
inline: {
|
|
610
|
+
enabled: true,
|
|
611
|
+
},
|
|
612
|
+
},
|
|
613
|
+
},
|
|
614
|
+
schema: {
|
|
615
|
+
dataType: 'string',
|
|
616
|
+
interface: {
|
|
617
|
+
type: AXPWidgetsCatalog.text,
|
|
618
|
+
options: {
|
|
619
|
+
placeholder: 'e.g., English (United States)',
|
|
620
|
+
},
|
|
621
|
+
},
|
|
622
|
+
},
|
|
623
|
+
validations: [
|
|
624
|
+
{
|
|
625
|
+
rule: 'required',
|
|
626
|
+
},
|
|
627
|
+
],
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
name: 'countryCode',
|
|
631
|
+
title: '@locale-management:locales.country-code',
|
|
632
|
+
groupId: 'basic-info',
|
|
633
|
+
options: {
|
|
634
|
+
sort: {
|
|
635
|
+
enabled: true,
|
|
636
|
+
},
|
|
637
|
+
filter: {
|
|
638
|
+
advance: {
|
|
639
|
+
enabled: true,
|
|
640
|
+
},
|
|
641
|
+
},
|
|
642
|
+
},
|
|
643
|
+
schema: {
|
|
644
|
+
dataType: 'string',
|
|
645
|
+
interface: {
|
|
646
|
+
type: AXPWidgetsCatalog.text,
|
|
647
|
+
options: {
|
|
648
|
+
placeholder: 'e.g., US, MX',
|
|
649
|
+
},
|
|
650
|
+
},
|
|
651
|
+
},
|
|
652
|
+
validations: [
|
|
653
|
+
{
|
|
654
|
+
rule: 'required',
|
|
655
|
+
},
|
|
656
|
+
],
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
name: 'isDefault',
|
|
660
|
+
title: '@locale-management:locales.is-default',
|
|
661
|
+
groupId: 'settings',
|
|
662
|
+
options: {
|
|
663
|
+
filter: {
|
|
664
|
+
advance: {
|
|
665
|
+
enabled: true,
|
|
666
|
+
},
|
|
667
|
+
},
|
|
668
|
+
},
|
|
669
|
+
schema: {
|
|
670
|
+
dataType: 'boolean',
|
|
671
|
+
interface: {
|
|
672
|
+
type: AXPWidgetsCatalog.toggle,
|
|
673
|
+
},
|
|
674
|
+
},
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
name: 'isActive',
|
|
678
|
+
title: '@general:terms.is-active',
|
|
679
|
+
groupId: 'settings',
|
|
680
|
+
options: {
|
|
681
|
+
filter: {
|
|
682
|
+
advance: {
|
|
683
|
+
enabled: true,
|
|
684
|
+
},
|
|
685
|
+
},
|
|
686
|
+
},
|
|
687
|
+
schema: {
|
|
688
|
+
dataType: 'boolean',
|
|
689
|
+
interface: {
|
|
690
|
+
type: AXPWidgetsCatalog.toggle,
|
|
691
|
+
},
|
|
692
|
+
},
|
|
693
|
+
},
|
|
694
|
+
],
|
|
695
|
+
columns: [
|
|
696
|
+
{ name: 'code', options: { width: '120px', order: 1 } },
|
|
697
|
+
{ name: 'title', options: { width: '250px', order: 2 } },
|
|
698
|
+
{ name: 'countryCode', options: { width: '100px', order: 3 } },
|
|
699
|
+
{ name: 'isDefault', options: { width: '80px', order: 4 } },
|
|
700
|
+
{ name: 'isActive', options: { width: '80px', order: 5 } },
|
|
701
|
+
],
|
|
702
|
+
commands: {
|
|
703
|
+
create: {
|
|
704
|
+
execute: async (data) => {
|
|
705
|
+
const res = await dataService.insertOne(data);
|
|
706
|
+
return { id: res };
|
|
707
|
+
},
|
|
708
|
+
},
|
|
709
|
+
delete: {
|
|
710
|
+
execute: async (id) => {
|
|
711
|
+
return await dataService.deleteOne(id);
|
|
712
|
+
},
|
|
713
|
+
},
|
|
714
|
+
update: {
|
|
715
|
+
execute: async (data) => {
|
|
716
|
+
return await dataService.updateOne(data.id, data);
|
|
717
|
+
},
|
|
718
|
+
},
|
|
719
|
+
},
|
|
720
|
+
queries: {
|
|
721
|
+
byKey: {
|
|
722
|
+
execute: async (id) => {
|
|
723
|
+
return await dataService.getOne(id);
|
|
724
|
+
},
|
|
725
|
+
type: AXPEntityQueryType.Single,
|
|
726
|
+
},
|
|
727
|
+
list: {
|
|
728
|
+
execute: async (e) => {
|
|
729
|
+
return await dataService.query({
|
|
730
|
+
skip: e.skip,
|
|
731
|
+
take: e.take,
|
|
732
|
+
filter: e.filter,
|
|
733
|
+
});
|
|
734
|
+
},
|
|
735
|
+
type: AXPEntityQueryType.List,
|
|
736
|
+
},
|
|
737
|
+
},
|
|
738
|
+
interfaces: {
|
|
739
|
+
master: {
|
|
740
|
+
create: {
|
|
741
|
+
sections: [{ id: 'basic-info' }, { id: 'settings' }],
|
|
742
|
+
properties: [
|
|
743
|
+
// NOTE: languageId is NOT included here - it's passed via context
|
|
744
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
745
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
746
|
+
{ name: 'countryCode', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
747
|
+
{ name: 'isDefault', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
748
|
+
{ name: 'isActive', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },
|
|
749
|
+
],
|
|
750
|
+
},
|
|
751
|
+
update: {
|
|
752
|
+
sections: [{ id: 'basic-info' }, { id: 'settings' }],
|
|
753
|
+
properties: [
|
|
754
|
+
// NOTE: languageId is NOT included here - it's immutable in update
|
|
755
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
756
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
757
|
+
{ name: 'countryCode', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
758
|
+
{ name: 'isDefault', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
759
|
+
{ name: 'isActive', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },
|
|
760
|
+
],
|
|
761
|
+
},
|
|
762
|
+
single: {
|
|
763
|
+
title: RootConfig.entities.locales.title,
|
|
764
|
+
sections: [{ id: 'basic-info' }, { id: 'settings' }],
|
|
765
|
+
actions: [
|
|
766
|
+
{
|
|
767
|
+
title: '@general:actions.edit.title',
|
|
768
|
+
command: 'quick-modify-entity',
|
|
769
|
+
priority: 'primary',
|
|
770
|
+
type: 'update',
|
|
771
|
+
scope: AXPEntityCommandScope.Individual,
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
title: '@general:actions.delete.title',
|
|
775
|
+
command: 'delete-entity',
|
|
776
|
+
priority: 'secondary',
|
|
777
|
+
type: 'delete',
|
|
778
|
+
scope: AXPEntityCommandScope.Individual,
|
|
779
|
+
},
|
|
780
|
+
],
|
|
781
|
+
},
|
|
782
|
+
list: {
|
|
783
|
+
actions: [
|
|
784
|
+
{
|
|
785
|
+
title: '@general:actions.create.title',
|
|
786
|
+
command: {
|
|
787
|
+
name: 'create-entity',
|
|
788
|
+
options: {
|
|
789
|
+
process: {
|
|
790
|
+
redirect: false,
|
|
791
|
+
canCreateNewOne: true,
|
|
792
|
+
},
|
|
793
|
+
},
|
|
794
|
+
},
|
|
795
|
+
priority: 'primary',
|
|
796
|
+
type: 'create',
|
|
797
|
+
scope: AXPEntityCommandScope.TypeLevel,
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
title: '@general:actions.delete-items.title',
|
|
801
|
+
command: 'delete-entity',
|
|
802
|
+
priority: 'primary',
|
|
803
|
+
type: 'delete',
|
|
804
|
+
scope: AXPEntityCommandScope.Selected,
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
title: '@general:actions.edit.title',
|
|
808
|
+
command: 'quick-modify-entity',
|
|
809
|
+
priority: 'secondary',
|
|
810
|
+
type: 'update',
|
|
811
|
+
scope: AXPEntityCommandScope.Individual,
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
title: '@general:actions.delete.title',
|
|
815
|
+
command: 'delete-entity',
|
|
816
|
+
priority: 'secondary',
|
|
817
|
+
type: 'delete',
|
|
818
|
+
scope: AXPEntityCommandScope.Individual,
|
|
819
|
+
},
|
|
820
|
+
],
|
|
821
|
+
views: [
|
|
822
|
+
createAllQueryView({
|
|
823
|
+
sorts: [{ name: 'isDefault', dir: 'desc' }, { name: 'title', dir: 'asc' }],
|
|
824
|
+
}),
|
|
825
|
+
],
|
|
826
|
+
},
|
|
827
|
+
},
|
|
828
|
+
},
|
|
829
|
+
};
|
|
830
|
+
return entityDef;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
var locales_entity = /*#__PURE__*/Object.freeze({
|
|
834
|
+
__proto__: null,
|
|
835
|
+
localesFactory: localesFactory
|
|
836
|
+
});
|
|
837
|
+
|
|
838
|
+
class AXMTimezonesService extends AXMEntityCrudServiceImpl {
|
|
839
|
+
}
|
|
840
|
+
class AXMTimezonesServiceImpl extends AXMTimezonesService {
|
|
841
|
+
constructor() {
|
|
842
|
+
super(`${RootConfig.module.name}.${RootConfig.entities.timezones.name}`);
|
|
843
|
+
}
|
|
844
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMTimezonesServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
845
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMTimezonesServiceImpl }); }
|
|
846
|
+
}
|
|
847
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMTimezonesServiceImpl, decorators: [{
|
|
848
|
+
type: Injectable
|
|
849
|
+
}], ctorParameters: () => [] });
|
|
850
|
+
|
|
851
|
+
async function timezonesFactory(injector) {
|
|
852
|
+
const dataService = injector.get(AXMTimezonesService);
|
|
853
|
+
const i18n = RootConfig.config.i18n;
|
|
854
|
+
const entityDef = {
|
|
855
|
+
module: RootConfig.module.name,
|
|
856
|
+
name: RootConfig.entities.timezones.name,
|
|
857
|
+
source: '',
|
|
858
|
+
title: RootConfig.entities.timezones.title,
|
|
859
|
+
formats: {
|
|
860
|
+
individual: RootConfig.entities.timezones.title,
|
|
861
|
+
plural: RootConfig.entities.timezones.titlePlural,
|
|
862
|
+
searchResult: {
|
|
863
|
+
title: '{{ title }}',
|
|
864
|
+
description: '{{ code }}',
|
|
865
|
+
},
|
|
866
|
+
},
|
|
867
|
+
groups: [
|
|
868
|
+
{
|
|
869
|
+
id: 'basic-info',
|
|
870
|
+
title: '@general:terms.basic-info',
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
id: 'settings',
|
|
874
|
+
title: '@general:terms.settings',
|
|
875
|
+
},
|
|
876
|
+
],
|
|
877
|
+
properties: [
|
|
878
|
+
{
|
|
879
|
+
name: 'code',
|
|
880
|
+
title: '@general:terms.code',
|
|
881
|
+
groupId: 'basic-info',
|
|
882
|
+
options: {
|
|
883
|
+
sort: {
|
|
884
|
+
enabled: true,
|
|
885
|
+
},
|
|
886
|
+
filter: {
|
|
887
|
+
advance: {
|
|
888
|
+
enabled: true,
|
|
889
|
+
},
|
|
890
|
+
inline: {
|
|
891
|
+
enabled: true,
|
|
892
|
+
},
|
|
893
|
+
},
|
|
894
|
+
},
|
|
895
|
+
schema: {
|
|
896
|
+
dataType: 'string',
|
|
897
|
+
interface: {
|
|
898
|
+
type: AXPWidgetsCatalog.text,
|
|
899
|
+
options: {
|
|
900
|
+
placeholder: 'e.g., America/New_York',
|
|
901
|
+
},
|
|
902
|
+
},
|
|
903
|
+
},
|
|
904
|
+
validations: [
|
|
905
|
+
{
|
|
906
|
+
rule: 'required',
|
|
907
|
+
},
|
|
908
|
+
],
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
name: 'title',
|
|
912
|
+
title: '@general:terms.title',
|
|
913
|
+
groupId: 'basic-info',
|
|
914
|
+
options: {
|
|
915
|
+
sort: {
|
|
916
|
+
enabled: true,
|
|
917
|
+
},
|
|
918
|
+
filter: {
|
|
919
|
+
advance: {
|
|
920
|
+
enabled: true,
|
|
921
|
+
},
|
|
922
|
+
inline: {
|
|
923
|
+
enabled: true,
|
|
924
|
+
},
|
|
925
|
+
},
|
|
926
|
+
},
|
|
927
|
+
schema: {
|
|
928
|
+
dataType: 'string',
|
|
929
|
+
interface: {
|
|
930
|
+
type: AXPWidgetsCatalog.text,
|
|
931
|
+
options: {
|
|
932
|
+
placeholder: 'e.g., Eastern Standard Time',
|
|
933
|
+
},
|
|
934
|
+
},
|
|
935
|
+
},
|
|
936
|
+
validations: [
|
|
937
|
+
{
|
|
938
|
+
rule: 'required',
|
|
939
|
+
},
|
|
940
|
+
],
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
name: 'abbreviation',
|
|
944
|
+
title: '@locale-management:timezones.abbreviation',
|
|
945
|
+
groupId: 'basic-info',
|
|
946
|
+
options: {
|
|
947
|
+
sort: {
|
|
948
|
+
enabled: true,
|
|
949
|
+
},
|
|
950
|
+
filter: {
|
|
951
|
+
advance: {
|
|
952
|
+
enabled: true,
|
|
953
|
+
},
|
|
954
|
+
},
|
|
955
|
+
},
|
|
956
|
+
schema: {
|
|
957
|
+
dataType: 'string',
|
|
958
|
+
interface: {
|
|
959
|
+
type: AXPWidgetsCatalog.text,
|
|
960
|
+
options: {
|
|
961
|
+
placeholder: 'e.g., EST, PST',
|
|
962
|
+
},
|
|
963
|
+
},
|
|
964
|
+
},
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
name: 'standardOffset',
|
|
968
|
+
title: '@locale-management:timezones.standard-offset',
|
|
969
|
+
groupId: 'basic-info',
|
|
970
|
+
options: {
|
|
971
|
+
sort: {
|
|
972
|
+
enabled: true,
|
|
973
|
+
},
|
|
974
|
+
filter: {
|
|
975
|
+
advance: {
|
|
976
|
+
enabled: true,
|
|
977
|
+
},
|
|
978
|
+
},
|
|
979
|
+
},
|
|
980
|
+
schema: {
|
|
981
|
+
dataType: 'number',
|
|
982
|
+
interface: {
|
|
983
|
+
type: AXPWidgetsCatalog.number,
|
|
984
|
+
options: {
|
|
985
|
+
placeholder: 'Offset in minutes from UTC',
|
|
986
|
+
},
|
|
987
|
+
},
|
|
988
|
+
},
|
|
989
|
+
validations: [
|
|
990
|
+
{
|
|
991
|
+
rule: 'required',
|
|
992
|
+
},
|
|
993
|
+
],
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
name: 'region',
|
|
997
|
+
title: '@locale-management:timezones.region',
|
|
998
|
+
groupId: 'basic-info',
|
|
999
|
+
options: {
|
|
1000
|
+
sort: {
|
|
1001
|
+
enabled: true,
|
|
1002
|
+
},
|
|
1003
|
+
filter: {
|
|
1004
|
+
advance: {
|
|
1005
|
+
enabled: true,
|
|
1006
|
+
},
|
|
1007
|
+
},
|
|
1008
|
+
},
|
|
1009
|
+
schema: {
|
|
1010
|
+
dataType: 'string',
|
|
1011
|
+
interface: {
|
|
1012
|
+
type: AXPWidgetsCatalog.text,
|
|
1013
|
+
options: {
|
|
1014
|
+
placeholder: 'e.g., Americas, Europe',
|
|
1015
|
+
},
|
|
1016
|
+
},
|
|
1017
|
+
},
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
name: 'supportsDST',
|
|
1021
|
+
title: '@locale-management:timezones.supports-dst',
|
|
1022
|
+
groupId: 'settings',
|
|
1023
|
+
options: {
|
|
1024
|
+
filter: {
|
|
1025
|
+
advance: {
|
|
1026
|
+
enabled: true,
|
|
1027
|
+
},
|
|
1028
|
+
},
|
|
1029
|
+
},
|
|
1030
|
+
schema: {
|
|
1031
|
+
dataType: 'boolean',
|
|
1032
|
+
interface: {
|
|
1033
|
+
type: AXPWidgetsCatalog.toggle,
|
|
1034
|
+
},
|
|
1035
|
+
},
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
name: 'isActive',
|
|
1039
|
+
title: '@general:terms.is-active',
|
|
1040
|
+
groupId: 'settings',
|
|
1041
|
+
options: {
|
|
1042
|
+
filter: {
|
|
1043
|
+
advance: {
|
|
1044
|
+
enabled: true,
|
|
1045
|
+
},
|
|
1046
|
+
},
|
|
1047
|
+
},
|
|
1048
|
+
schema: {
|
|
1049
|
+
dataType: 'boolean',
|
|
1050
|
+
interface: {
|
|
1051
|
+
type: AXPWidgetsCatalog.toggle,
|
|
1052
|
+
},
|
|
1053
|
+
},
|
|
1054
|
+
},
|
|
1055
|
+
],
|
|
1056
|
+
columns: [
|
|
1057
|
+
{ name: 'code', options: { width: '200px', order: 1 } },
|
|
1058
|
+
{ name: 'title', options: { width: '250px', order: 2 } },
|
|
1059
|
+
{ name: 'abbreviation', options: { width: '100px', order: 3 } },
|
|
1060
|
+
{ name: 'standardOffset', options: { width: '120px', order: 4 } },
|
|
1061
|
+
{ name: 'supportsDST', options: { width: '80px', order: 5 } },
|
|
1062
|
+
{ name: 'isActive', options: { width: '80px', order: 6 } },
|
|
1063
|
+
],
|
|
1064
|
+
commands: {
|
|
1065
|
+
create: {
|
|
1066
|
+
execute: async (data) => {
|
|
1067
|
+
const res = await dataService.insertOne(data);
|
|
1068
|
+
return { id: res };
|
|
1069
|
+
},
|
|
1070
|
+
},
|
|
1071
|
+
delete: {
|
|
1072
|
+
execute: async (id) => {
|
|
1073
|
+
return await dataService.deleteOne(id);
|
|
1074
|
+
},
|
|
1075
|
+
},
|
|
1076
|
+
update: {
|
|
1077
|
+
execute: async (data) => {
|
|
1078
|
+
return await dataService.updateOne(data.id, data);
|
|
1079
|
+
},
|
|
1080
|
+
},
|
|
1081
|
+
},
|
|
1082
|
+
queries: {
|
|
1083
|
+
byKey: {
|
|
1084
|
+
execute: async (id) => {
|
|
1085
|
+
return await dataService.getOne(id);
|
|
1086
|
+
},
|
|
1087
|
+
type: AXPEntityQueryType.Single,
|
|
1088
|
+
},
|
|
1089
|
+
list: {
|
|
1090
|
+
execute: async (e) => {
|
|
1091
|
+
return await dataService.query({
|
|
1092
|
+
skip: e.skip,
|
|
1093
|
+
take: e.take,
|
|
1094
|
+
filter: e.filter,
|
|
1095
|
+
});
|
|
1096
|
+
},
|
|
1097
|
+
type: AXPEntityQueryType.List,
|
|
1098
|
+
},
|
|
1099
|
+
},
|
|
1100
|
+
interfaces: {
|
|
1101
|
+
master: {
|
|
1102
|
+
create: {
|
|
1103
|
+
sections: [{ id: 'basic-info' }, { id: 'settings' }],
|
|
1104
|
+
properties: [
|
|
1105
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
1106
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
1107
|
+
{ name: 'abbreviation', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
1108
|
+
{ name: 'standardOffset', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
1109
|
+
{ name: 'region', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },
|
|
1110
|
+
{ name: 'supportsDST', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },
|
|
1111
|
+
{ name: 'isActive', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },
|
|
1112
|
+
],
|
|
1113
|
+
},
|
|
1114
|
+
update: {
|
|
1115
|
+
sections: [{ id: 'basic-info' }, { id: 'settings' }],
|
|
1116
|
+
properties: [
|
|
1117
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
1118
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
1119
|
+
{ name: 'abbreviation', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
1120
|
+
{ name: 'standardOffset', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
1121
|
+
{ name: 'region', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },
|
|
1122
|
+
{ name: 'supportsDST', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },
|
|
1123
|
+
{ name: 'isActive', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },
|
|
1124
|
+
],
|
|
1125
|
+
},
|
|
1126
|
+
single: {
|
|
1127
|
+
title: RootConfig.entities.timezones.title,
|
|
1128
|
+
sections: [{ id: 'basic-info' }, { id: 'settings' }],
|
|
1129
|
+
properties: [
|
|
1130
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
1131
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
1132
|
+
{ name: 'abbreviation', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
1133
|
+
{ name: 'standardOffset', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
1134
|
+
{ name: 'region', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },
|
|
1135
|
+
{ name: 'supportsDST', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },
|
|
1136
|
+
{ name: 'isActive', layout: { positions: { lg: { colSpan: 6, order: 7 } } } },
|
|
1137
|
+
],
|
|
1138
|
+
actions: [
|
|
1139
|
+
...entityMasterRecordActions(),
|
|
1140
|
+
],
|
|
1141
|
+
},
|
|
1142
|
+
list: {
|
|
1143
|
+
actions: [
|
|
1144
|
+
...entityMasterCrudActions(),
|
|
1145
|
+
],
|
|
1146
|
+
views: [
|
|
1147
|
+
createAllQueryView({
|
|
1148
|
+
sorts: [{ name: 'region', dir: 'asc' }, { name: 'title', dir: 'asc' }],
|
|
1149
|
+
}),
|
|
1150
|
+
],
|
|
1151
|
+
},
|
|
1152
|
+
},
|
|
1153
|
+
},
|
|
1154
|
+
};
|
|
1155
|
+
return entityDef;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
var timezones_entity = /*#__PURE__*/Object.freeze({
|
|
1159
|
+
__proto__: null,
|
|
1160
|
+
timezonesFactory: timezonesFactory
|
|
1161
|
+
});
|
|
1162
|
+
|
|
1163
|
+
class AXMCurrenciesService extends AXMEntityCrudServiceImpl {
|
|
1164
|
+
}
|
|
1165
|
+
class AXMCurrenciesServiceImpl extends AXMCurrenciesService {
|
|
1166
|
+
constructor() {
|
|
1167
|
+
super(`${RootConfig.module.name}.${RootConfig.entities.currencies.name}`);
|
|
1168
|
+
}
|
|
1169
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMCurrenciesServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1170
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMCurrenciesServiceImpl }); }
|
|
1171
|
+
}
|
|
1172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMCurrenciesServiceImpl, decorators: [{
|
|
1173
|
+
type: Injectable
|
|
1174
|
+
}], ctorParameters: () => [] });
|
|
1175
|
+
|
|
1176
|
+
async function currenciesFactory(injector) {
|
|
1177
|
+
const dataService = injector.get(AXMCurrenciesService);
|
|
1178
|
+
const i18n = RootConfig.config.i18n;
|
|
1179
|
+
const entityDef = {
|
|
1180
|
+
module: RootConfig.module.name,
|
|
1181
|
+
name: RootConfig.entities.currencies.name,
|
|
1182
|
+
source: '',
|
|
1183
|
+
title: RootConfig.entities.currencies.title,
|
|
1184
|
+
formats: {
|
|
1185
|
+
individual: RootConfig.entities.currencies.title,
|
|
1186
|
+
plural: RootConfig.entities.currencies.titlePlural,
|
|
1187
|
+
searchResult: {
|
|
1188
|
+
title: '{{ title }}',
|
|
1189
|
+
description: '{{ code }} ({{ symbol }})',
|
|
1190
|
+
},
|
|
1191
|
+
},
|
|
1192
|
+
groups: [
|
|
1193
|
+
{
|
|
1194
|
+
id: 'basic-info',
|
|
1195
|
+
title: '@general:terms.basic-info',
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
id: 'settings',
|
|
1199
|
+
title: '@general:terms.settings',
|
|
1200
|
+
},
|
|
1201
|
+
],
|
|
1202
|
+
properties: [
|
|
1203
|
+
{
|
|
1204
|
+
name: 'code',
|
|
1205
|
+
title: '@general:terms.code',
|
|
1206
|
+
groupId: 'basic-info',
|
|
1207
|
+
options: {
|
|
1208
|
+
sort: {
|
|
1209
|
+
enabled: true,
|
|
1210
|
+
},
|
|
1211
|
+
filter: {
|
|
1212
|
+
advance: {
|
|
1213
|
+
enabled: true,
|
|
1214
|
+
},
|
|
1215
|
+
inline: {
|
|
1216
|
+
enabled: true,
|
|
1217
|
+
},
|
|
1218
|
+
},
|
|
1219
|
+
},
|
|
1220
|
+
schema: {
|
|
1221
|
+
dataType: 'string',
|
|
1222
|
+
interface: {
|
|
1223
|
+
type: AXPWidgetsCatalog.text,
|
|
1224
|
+
options: {
|
|
1225
|
+
placeholder: 'e.g., USD, EUR, IRR',
|
|
1226
|
+
},
|
|
1227
|
+
},
|
|
1228
|
+
},
|
|
1229
|
+
validations: [
|
|
1230
|
+
{
|
|
1231
|
+
rule: 'required',
|
|
1232
|
+
},
|
|
1233
|
+
],
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
name: 'title',
|
|
1237
|
+
title: '@general:terms.title',
|
|
1238
|
+
groupId: 'basic-info',
|
|
1239
|
+
options: {
|
|
1240
|
+
sort: {
|
|
1241
|
+
enabled: true,
|
|
1242
|
+
},
|
|
1243
|
+
filter: {
|
|
1244
|
+
advance: {
|
|
1245
|
+
enabled: true,
|
|
1246
|
+
},
|
|
1247
|
+
inline: {
|
|
1248
|
+
enabled: true,
|
|
1249
|
+
},
|
|
1250
|
+
},
|
|
1251
|
+
},
|
|
1252
|
+
schema: {
|
|
1253
|
+
dataType: 'string',
|
|
1254
|
+
interface: {
|
|
1255
|
+
type: AXPWidgetsCatalog.text,
|
|
1256
|
+
options: {
|
|
1257
|
+
placeholder: 'e.g., US Dollar, Euro',
|
|
1258
|
+
},
|
|
1259
|
+
},
|
|
1260
|
+
},
|
|
1261
|
+
validations: [
|
|
1262
|
+
{
|
|
1263
|
+
rule: 'required',
|
|
1264
|
+
},
|
|
1265
|
+
],
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
name: 'symbol',
|
|
1269
|
+
title: '@locale-management:currencies.symbol',
|
|
1270
|
+
groupId: 'basic-info',
|
|
1271
|
+
options: {
|
|
1272
|
+
sort: {
|
|
1273
|
+
enabled: true,
|
|
1274
|
+
},
|
|
1275
|
+
filter: {
|
|
1276
|
+
advance: {
|
|
1277
|
+
enabled: true,
|
|
1278
|
+
},
|
|
1279
|
+
},
|
|
1280
|
+
},
|
|
1281
|
+
schema: {
|
|
1282
|
+
dataType: 'string',
|
|
1283
|
+
interface: {
|
|
1284
|
+
type: AXPWidgetsCatalog.text,
|
|
1285
|
+
options: {
|
|
1286
|
+
placeholder: 'e.g., $, €, ﷼',
|
|
1287
|
+
},
|
|
1288
|
+
},
|
|
1289
|
+
},
|
|
1290
|
+
validations: [
|
|
1291
|
+
{
|
|
1292
|
+
rule: 'required',
|
|
1293
|
+
},
|
|
1294
|
+
],
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
name: 'decimalPlaces',
|
|
1298
|
+
title: '@locale-management:currencies.decimal-places',
|
|
1299
|
+
groupId: 'basic-info',
|
|
1300
|
+
options: {
|
|
1301
|
+
sort: {
|
|
1302
|
+
enabled: true,
|
|
1303
|
+
},
|
|
1304
|
+
filter: {
|
|
1305
|
+
advance: {
|
|
1306
|
+
enabled: true,
|
|
1307
|
+
},
|
|
1308
|
+
},
|
|
1309
|
+
},
|
|
1310
|
+
schema: {
|
|
1311
|
+
dataType: 'number',
|
|
1312
|
+
interface: {
|
|
1313
|
+
type: AXPWidgetsCatalog.number,
|
|
1314
|
+
options: {
|
|
1315
|
+
minValue: 0,
|
|
1316
|
+
maxValue: 4,
|
|
1317
|
+
placeholder: 'Usually 2',
|
|
1318
|
+
},
|
|
1319
|
+
},
|
|
1320
|
+
},
|
|
1321
|
+
validations: [
|
|
1322
|
+
{
|
|
1323
|
+
rule: 'required',
|
|
1324
|
+
},
|
|
1325
|
+
],
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
name: 'isActive',
|
|
1329
|
+
title: '@general:terms.is-active',
|
|
1330
|
+
groupId: 'settings',
|
|
1331
|
+
options: {
|
|
1332
|
+
filter: {
|
|
1333
|
+
advance: {
|
|
1334
|
+
enabled: true,
|
|
1335
|
+
},
|
|
1336
|
+
},
|
|
1337
|
+
},
|
|
1338
|
+
schema: {
|
|
1339
|
+
dataType: 'boolean',
|
|
1340
|
+
interface: {
|
|
1341
|
+
type: AXPWidgetsCatalog.toggle,
|
|
1342
|
+
},
|
|
1343
|
+
},
|
|
1344
|
+
},
|
|
1345
|
+
],
|
|
1346
|
+
columns: [
|
|
1347
|
+
{ name: 'code', options: { width: '100px', order: 1 } },
|
|
1348
|
+
{ name: 'title', options: { width: '250px', order: 2 } },
|
|
1349
|
+
{ name: 'symbol', options: { width: '80px', order: 3 } },
|
|
1350
|
+
{ name: 'decimalPlaces', options: { width: '120px', order: 4 } },
|
|
1351
|
+
{ name: 'isActive', options: { width: '80px', order: 5 } },
|
|
1352
|
+
],
|
|
1353
|
+
commands: {
|
|
1354
|
+
create: {
|
|
1355
|
+
execute: async (data) => {
|
|
1356
|
+
const res = await dataService.insertOne(data);
|
|
1357
|
+
return { id: res };
|
|
1358
|
+
},
|
|
1359
|
+
},
|
|
1360
|
+
delete: {
|
|
1361
|
+
execute: async (id) => {
|
|
1362
|
+
return await dataService.deleteOne(id);
|
|
1363
|
+
},
|
|
1364
|
+
},
|
|
1365
|
+
update: {
|
|
1366
|
+
execute: async (data) => {
|
|
1367
|
+
return await dataService.updateOne(data.id, data);
|
|
1368
|
+
},
|
|
1369
|
+
},
|
|
1370
|
+
},
|
|
1371
|
+
queries: {
|
|
1372
|
+
byKey: {
|
|
1373
|
+
execute: async (id) => {
|
|
1374
|
+
return await dataService.getOne(id);
|
|
1375
|
+
},
|
|
1376
|
+
type: AXPEntityQueryType.Single,
|
|
1377
|
+
},
|
|
1378
|
+
list: {
|
|
1379
|
+
execute: async (e) => {
|
|
1380
|
+
return await dataService.query({
|
|
1381
|
+
skip: e.skip,
|
|
1382
|
+
take: e.take,
|
|
1383
|
+
filter: e.filter,
|
|
1384
|
+
});
|
|
1385
|
+
},
|
|
1386
|
+
type: AXPEntityQueryType.List,
|
|
1387
|
+
},
|
|
1388
|
+
},
|
|
1389
|
+
interfaces: {
|
|
1390
|
+
master: {
|
|
1391
|
+
create: {
|
|
1392
|
+
sections: [{ id: 'basic-info' }, { id: 'settings' }],
|
|
1393
|
+
properties: [
|
|
1394
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
1395
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
1396
|
+
{ name: 'symbol', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
1397
|
+
{ name: 'decimalPlaces', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
1398
|
+
{ name: 'isActive', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },
|
|
1399
|
+
],
|
|
1400
|
+
},
|
|
1401
|
+
update: {
|
|
1402
|
+
sections: [{ id: 'basic-info' }, { id: 'settings' }],
|
|
1403
|
+
properties: [
|
|
1404
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
1405
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
1406
|
+
{ name: 'symbol', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
1407
|
+
{ name: 'decimalPlaces', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
1408
|
+
{ name: 'isActive', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },
|
|
1409
|
+
],
|
|
1410
|
+
},
|
|
1411
|
+
single: {
|
|
1412
|
+
title: RootConfig.entities.currencies.title,
|
|
1413
|
+
sections: [{ id: 'basic-info' }, { id: 'settings' }],
|
|
1414
|
+
properties: [
|
|
1415
|
+
{ name: 'code', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
|
|
1416
|
+
{ name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
|
|
1417
|
+
{ name: 'symbol', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
|
|
1418
|
+
{ name: 'decimalPlaces', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
|
|
1419
|
+
{ name: 'isActive', layout: { positions: { lg: { colSpan: 12, order: 5 } } } },
|
|
1420
|
+
],
|
|
1421
|
+
actions: [
|
|
1422
|
+
...entityMasterRecordActions(),
|
|
1423
|
+
],
|
|
1424
|
+
},
|
|
1425
|
+
list: {
|
|
1426
|
+
actions: [
|
|
1427
|
+
...entityMasterCrudActions(),
|
|
1428
|
+
],
|
|
1429
|
+
views: [
|
|
1430
|
+
createAllQueryView({
|
|
1431
|
+
sorts: [{ name: 'title', dir: 'asc' }],
|
|
1432
|
+
}),
|
|
1433
|
+
],
|
|
1434
|
+
},
|
|
1435
|
+
},
|
|
1436
|
+
},
|
|
1437
|
+
};
|
|
1438
|
+
return entityDef;
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
var currencies_entity = /*#__PURE__*/Object.freeze({
|
|
1442
|
+
__proto__: null,
|
|
1443
|
+
currenciesFactory: currenciesFactory
|
|
1444
|
+
});
|
|
1445
|
+
|
|
1446
|
+
class AXMLocaleManagementService {
|
|
1447
|
+
constructor() {
|
|
1448
|
+
this.translationService = inject(AXTranslationService);
|
|
1449
|
+
this.currenciesService = inject(AXMCurrenciesService);
|
|
1450
|
+
this.languagesService = inject(AXMLanguagesService);
|
|
1451
|
+
this.timezonesService = inject(AXMTimezonesService);
|
|
1452
|
+
this.localesService = inject(AXMLocalesService);
|
|
1453
|
+
this.activeQuery = {
|
|
1454
|
+
skip: 0,
|
|
1455
|
+
take: 1000,
|
|
1456
|
+
filter: {
|
|
1457
|
+
logic: 'and',
|
|
1458
|
+
filters: [
|
|
1459
|
+
{
|
|
1460
|
+
field: 'isActive',
|
|
1461
|
+
operator: {
|
|
1462
|
+
type: 'equal',
|
|
1463
|
+
},
|
|
1464
|
+
value: true
|
|
1465
|
+
}
|
|
1466
|
+
]
|
|
1467
|
+
},
|
|
1468
|
+
sort: [
|
|
1469
|
+
{
|
|
1470
|
+
field: 'title',
|
|
1471
|
+
dir: 'asc',
|
|
1472
|
+
}
|
|
1473
|
+
]
|
|
1474
|
+
};
|
|
1475
|
+
}
|
|
1476
|
+
async getCurrencies() {
|
|
1477
|
+
const result = await this.currenciesService.query(this.activeQuery);
|
|
1478
|
+
return result.items.map(c => ({
|
|
1479
|
+
code: c.code,
|
|
1480
|
+
title: c.title,
|
|
1481
|
+
symbol: c.symbol,
|
|
1482
|
+
format: c.symbol,
|
|
1483
|
+
}));
|
|
1484
|
+
}
|
|
1485
|
+
async getLocaleProfiles() {
|
|
1486
|
+
const { profiles } = await import('./acorex-modules-locale-management-profiles-MJ9xFTtp.mjs');
|
|
1487
|
+
return profiles.filter((c) => ['en-US', 'fa-IR'].some((e) => e == c.localeInfo.code));
|
|
1488
|
+
}
|
|
1489
|
+
async getLanguages() {
|
|
1490
|
+
const result = await this.languagesService.query(this.activeQuery);
|
|
1491
|
+
return result.items.map(c => ({
|
|
1492
|
+
code: c.code,
|
|
1493
|
+
title: c.title,
|
|
1494
|
+
}));
|
|
1495
|
+
}
|
|
1496
|
+
async getLocales() {
|
|
1497
|
+
const result = await this.localesService.query(this.activeQuery);
|
|
1498
|
+
return result.items.map(c => ({
|
|
1499
|
+
code: c.code,
|
|
1500
|
+
title: c.title,
|
|
1501
|
+
}));
|
|
1502
|
+
}
|
|
1503
|
+
async getAvailableLanguages() {
|
|
1504
|
+
return (await this.getLanguages()).filter((c) => ['fa-IR', 'en-US'].some((e) => e == c.code));
|
|
1505
|
+
}
|
|
1506
|
+
async getTimeZones() {
|
|
1507
|
+
const result = await this.timezonesService.query({ ...this.activeQuery, sort: [{ field: 'standardOffset', dir: 'asc' }] });
|
|
1508
|
+
const padZero = (value) => value.toString().padStart(2, '0');
|
|
1509
|
+
const formatOffset = (offset) => {
|
|
1510
|
+
const sign = offset > 0 ? '+' : '-';
|
|
1511
|
+
const hours = padZero(Math.floor(Math.abs(offset) / 60));
|
|
1512
|
+
const minutes = padZero(Math.abs(offset % 60));
|
|
1513
|
+
return `${sign}${hours}:${minutes}`;
|
|
1514
|
+
};
|
|
1515
|
+
return result.items.map(c => ({
|
|
1516
|
+
code: c.code,
|
|
1517
|
+
title: `${c.title} (${formatOffset(c.standardOffset)})`,
|
|
1518
|
+
offset: c.standardOffset,
|
|
1519
|
+
iana: c.code,
|
|
1520
|
+
abbr: c.abbreviation,
|
|
1521
|
+
}));
|
|
1522
|
+
}
|
|
1523
|
+
async getBrowserTimeZoneCode() {
|
|
1524
|
+
const timeZones = await this.getTimeZones();
|
|
1525
|
+
const now = new Date();
|
|
1526
|
+
// Calculate offset in hours and minutes
|
|
1527
|
+
const offsetMinutes = now.getTimezoneOffset() * -1;
|
|
1528
|
+
// Find matching time zone
|
|
1529
|
+
const matchedZone = timeZones.find((zone) => zone.offset === offsetMinutes);
|
|
1530
|
+
return matchedZone ? matchedZone.code : 'UTC';
|
|
1531
|
+
}
|
|
1532
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocaleManagementService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1533
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocaleManagementService, providedIn: 'root' }); }
|
|
1534
|
+
}
|
|
1535
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocaleManagementService, decorators: [{
|
|
1536
|
+
type: Injectable,
|
|
1537
|
+
args: [{
|
|
1538
|
+
providedIn: 'root',
|
|
1539
|
+
}]
|
|
1540
|
+
}] });
|
|
1541
|
+
|
|
1542
|
+
class AXMLocaleManagementDataSourceDefinition {
|
|
1543
|
+
constructor() {
|
|
1544
|
+
this.localeManagementService = inject(AXMLocaleManagementService);
|
|
1545
|
+
//#region Country
|
|
1546
|
+
this.timezones = {
|
|
1547
|
+
name: 'timezones',
|
|
1548
|
+
title: 'Timezones',
|
|
1549
|
+
columns: [
|
|
1550
|
+
{
|
|
1551
|
+
name: 'code',
|
|
1552
|
+
title: 'Code',
|
|
1553
|
+
type: 'string',
|
|
1554
|
+
datatype: 'string',
|
|
1555
|
+
},
|
|
1556
|
+
{
|
|
1557
|
+
name: 'title',
|
|
1558
|
+
title: 'Title',
|
|
1559
|
+
type: 'string',
|
|
1560
|
+
datatype: 'string',
|
|
1561
|
+
},
|
|
1562
|
+
],
|
|
1563
|
+
filters: [],
|
|
1564
|
+
textField: { name: 'title', title: 'Title' },
|
|
1565
|
+
valueField: { name: 'code', title: 'Code' },
|
|
1566
|
+
samples: [
|
|
1567
|
+
{ code: 'GMT-5', title: 'Eastern Time (US & Canada)' },
|
|
1568
|
+
{ code: 'GMT+0', title: 'Greenwich Mean Time' },
|
|
1569
|
+
{ code: 'GMT+1', title: 'Central European Time' },
|
|
1570
|
+
],
|
|
1571
|
+
source: () => {
|
|
1572
|
+
return new AXDataSource({
|
|
1573
|
+
pageSize: 50,
|
|
1574
|
+
key: 'code',
|
|
1575
|
+
load: async (e) => {
|
|
1576
|
+
const items = await this.localeManagementService.getTimeZones();
|
|
1577
|
+
return {
|
|
1578
|
+
items: items,
|
|
1579
|
+
total: items.length,
|
|
1580
|
+
};
|
|
1581
|
+
},
|
|
1582
|
+
byKey: async (key) => {
|
|
1583
|
+
const items = await this.localeManagementService.getTimeZones();
|
|
1584
|
+
return items.find((t) => t.code == key);
|
|
1585
|
+
},
|
|
1586
|
+
});
|
|
1587
|
+
},
|
|
1588
|
+
};
|
|
1589
|
+
//#endregion
|
|
1590
|
+
//#region Currencies
|
|
1591
|
+
this.currencies = {
|
|
1592
|
+
name: 'currencies',
|
|
1593
|
+
title: 'Currencies',
|
|
1594
|
+
columns: [
|
|
1595
|
+
{
|
|
1596
|
+
name: 'code',
|
|
1597
|
+
title: 'Code',
|
|
1598
|
+
type: 'string',
|
|
1599
|
+
datatype: 'string',
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
name: 'title',
|
|
1603
|
+
title: 'Title',
|
|
1604
|
+
type: 'string',
|
|
1605
|
+
datatype: 'string',
|
|
1606
|
+
},
|
|
1607
|
+
],
|
|
1608
|
+
filters: [],
|
|
1609
|
+
textField: { name: 'title', title: 'Title' },
|
|
1610
|
+
valueField: { name: 'code', title: 'Code' },
|
|
1611
|
+
samples: [
|
|
1612
|
+
{ code: 'USD', title: 'United States Dollar' },
|
|
1613
|
+
{ code: 'CAD', title: 'Canadian Dollar' },
|
|
1614
|
+
{ code: 'GBP', title: 'British Pound' },
|
|
1615
|
+
],
|
|
1616
|
+
source: () => {
|
|
1617
|
+
return new AXDataSource({
|
|
1618
|
+
load: async (e) => {
|
|
1619
|
+
const items = await this.localeManagementService.getCurrencies();
|
|
1620
|
+
return {
|
|
1621
|
+
items: items,
|
|
1622
|
+
total: items.length,
|
|
1623
|
+
};
|
|
1624
|
+
},
|
|
1625
|
+
pageSize: 50,
|
|
1626
|
+
key: 'code',
|
|
1627
|
+
byKey: async (key) => {
|
|
1628
|
+
const items = await this.localeManagementService.getCurrencies();
|
|
1629
|
+
return items.find((c) => c.code == key);
|
|
1630
|
+
},
|
|
1631
|
+
});
|
|
1632
|
+
},
|
|
1633
|
+
};
|
|
1634
|
+
//#region Languages
|
|
1635
|
+
this.languages = {
|
|
1636
|
+
name: 'languages',
|
|
1637
|
+
title: 'Languages',
|
|
1638
|
+
columns: [
|
|
1639
|
+
{
|
|
1640
|
+
name: 'code',
|
|
1641
|
+
title: 'Code',
|
|
1642
|
+
type: 'string',
|
|
1643
|
+
datatype: 'string',
|
|
1644
|
+
},
|
|
1645
|
+
{
|
|
1646
|
+
name: 'title',
|
|
1647
|
+
title: 'Title',
|
|
1648
|
+
type: 'string',
|
|
1649
|
+
datatype: 'string',
|
|
1650
|
+
},
|
|
1651
|
+
],
|
|
1652
|
+
filters: [],
|
|
1653
|
+
textField: { name: 'title', title: 'Title' },
|
|
1654
|
+
valueField: { name: 'code', title: 'Code' },
|
|
1655
|
+
samples: [
|
|
1656
|
+
{ code: 'en', title: 'English' },
|
|
1657
|
+
{ code: 'fa', title: 'Persian' },
|
|
1658
|
+
],
|
|
1659
|
+
source: () => {
|
|
1660
|
+
return new AXDataSource({
|
|
1661
|
+
load: async (e) => {
|
|
1662
|
+
const items = await this.localeManagementService.getLanguages();
|
|
1663
|
+
return {
|
|
1664
|
+
items: items,
|
|
1665
|
+
total: items.length,
|
|
1666
|
+
};
|
|
1667
|
+
},
|
|
1668
|
+
pageSize: 50,
|
|
1669
|
+
key: 'code',
|
|
1670
|
+
byKey: async (key) => {
|
|
1671
|
+
const items = await this.localeManagementService.getLanguages();
|
|
1672
|
+
return items.find((l) => l.code == key);
|
|
1673
|
+
},
|
|
1674
|
+
});
|
|
1675
|
+
},
|
|
1676
|
+
};
|
|
1677
|
+
//#endregion
|
|
1678
|
+
//#region Locales
|
|
1679
|
+
this.locales = {
|
|
1680
|
+
name: 'locales',
|
|
1681
|
+
title: 'Locales',
|
|
1682
|
+
columns: [
|
|
1683
|
+
{
|
|
1684
|
+
name: 'code',
|
|
1685
|
+
title: 'Code',
|
|
1686
|
+
type: 'string',
|
|
1687
|
+
datatype: 'string',
|
|
1688
|
+
},
|
|
1689
|
+
{
|
|
1690
|
+
name: 'title',
|
|
1691
|
+
title: 'Title',
|
|
1692
|
+
type: 'string',
|
|
1693
|
+
datatype: 'string',
|
|
1694
|
+
},
|
|
1695
|
+
],
|
|
1696
|
+
filters: [],
|
|
1697
|
+
textField: { name: 'title', title: 'Title' },
|
|
1698
|
+
valueField: { name: 'code', title: 'Code' },
|
|
1699
|
+
samples: [
|
|
1700
|
+
{ code: 'en-US', title: 'English (United States)' },
|
|
1701
|
+
{ code: 'fa-IR', title: 'Persian (Iran)' },
|
|
1702
|
+
],
|
|
1703
|
+
source: () => {
|
|
1704
|
+
return new AXDataSource({
|
|
1705
|
+
load: async (e) => {
|
|
1706
|
+
const items = await this.localeManagementService.getLocales();
|
|
1707
|
+
return {
|
|
1708
|
+
items: items,
|
|
1709
|
+
total: items.length,
|
|
1710
|
+
};
|
|
1711
|
+
},
|
|
1712
|
+
pageSize: 50,
|
|
1713
|
+
key: 'code',
|
|
1714
|
+
byKey: async (key) => {
|
|
1715
|
+
const items = await this.localeManagementService.getLocales();
|
|
1716
|
+
const result = items.find((c) => c.code == key);
|
|
1717
|
+
return result;
|
|
1718
|
+
},
|
|
1719
|
+
});
|
|
1720
|
+
},
|
|
1721
|
+
};
|
|
1722
|
+
}
|
|
1723
|
+
//#endregion
|
|
1724
|
+
async items() {
|
|
1725
|
+
return [
|
|
1726
|
+
this.timezones,
|
|
1727
|
+
this.currencies,
|
|
1728
|
+
this.languages,
|
|
1729
|
+
this.locales,
|
|
1730
|
+
];
|
|
1731
|
+
}
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
const path = 'regional:';
|
|
1735
|
+
var AXPRegionalSetting;
|
|
1736
|
+
(function (AXPRegionalSetting) {
|
|
1737
|
+
AXPRegionalSetting["LocaleProfile"] = "regional:locale-profile";
|
|
1738
|
+
AXPRegionalSetting["TimeZone"] = "regional:timezone";
|
|
1739
|
+
AXPRegionalSetting["Language"] = "regional:language";
|
|
1740
|
+
AXPRegionalSetting["Country"] = "regional:country";
|
|
1741
|
+
AXPRegionalSetting["Calendar"] = "regional:calendar";
|
|
1742
|
+
AXPRegionalSetting["FirstDayOfWeek"] = "regional:first-day-of-week";
|
|
1743
|
+
AXPRegionalSetting["WeekendDays"] = "regional:weekend-days";
|
|
1744
|
+
AXPRegionalSetting["ShortDate"] = "regional:short-date";
|
|
1745
|
+
AXPRegionalSetting["LongDate"] = "regional:long-date";
|
|
1746
|
+
AXPRegionalSetting["ShortTime"] = "regional:short-time";
|
|
1747
|
+
AXPRegionalSetting["LongTime"] = "regional:long-time";
|
|
1748
|
+
AXPRegionalSetting["MeasurementUnits"] = "regional:measurement-units";
|
|
1749
|
+
AXPRegionalSetting["TemperatureUnits"] = "regional:temperature-units";
|
|
1750
|
+
AXPRegionalSetting["DistanceUnits"] = "regional:distance-units";
|
|
1751
|
+
AXPRegionalSetting["WeightUnits"] = "regional:weight-units";
|
|
1752
|
+
AXPRegionalSetting["VolumeUnits"] = "regional:volume-units";
|
|
1753
|
+
AXPRegionalSetting["SpeedUnits"] = "regional:speed-units";
|
|
1754
|
+
AXPRegionalSetting["AreaUnits"] = "regional:area-units";
|
|
1755
|
+
})(AXPRegionalSetting || (AXPRegionalSetting = {}));
|
|
1756
|
+
|
|
1757
|
+
// Regional Store - Manages regional settings and system changes
|
|
1758
|
+
const AXPRegionalStoreService = signalStore({ providedIn: 'root' },
|
|
1759
|
+
// Initial State
|
|
1760
|
+
withState((localeService = inject(AXLocaleService)) => {
|
|
1761
|
+
const state = {
|
|
1762
|
+
profile: localeService.activeProfile().localeInfo.code,
|
|
1763
|
+
language: localeService.activeProfile().localeInfo.language,
|
|
1764
|
+
calendar: localeService.activeProfile().calendar.system,
|
|
1765
|
+
};
|
|
1766
|
+
return state;
|
|
1767
|
+
}),
|
|
1768
|
+
// Computed Signals
|
|
1769
|
+
// withComputed(({ }) => ({
|
|
1770
|
+
// })),
|
|
1771
|
+
// Methods for State Management
|
|
1772
|
+
withMethods((store, settingService = inject(AXPSettingService), localeService = inject(AXLocaleService), calendarService = inject(AXCalendarService), translateService = inject(AXTranslationService)) => {
|
|
1773
|
+
const applyChanges = async () => {
|
|
1774
|
+
const profile = localeService.activeProfile();
|
|
1775
|
+
const html = document.getElementsByTagName('html')[0];
|
|
1776
|
+
profile.i18nMeta?.rtl ? html.setAttribute('dir', 'rtl') : html.removeAttribute('dir');
|
|
1777
|
+
};
|
|
1778
|
+
return {
|
|
1779
|
+
async changeProfile(profileCode) {
|
|
1780
|
+
await localeService.setProfile(profileCode);
|
|
1781
|
+
const profile = localeService.activeProfile();
|
|
1782
|
+
//
|
|
1783
|
+
if (store.profile() != profile.localeInfo.code) {
|
|
1784
|
+
settingService.scope(AXPPlatformScope.User).set(AXPRegionalSetting.LocaleProfile, profile.localeInfo.code);
|
|
1785
|
+
settingService.scope(AXPPlatformScope.User).set(AXPRegionalSetting.Language, profile.localeInfo.code);
|
|
1786
|
+
patchState(store, { profile: profile.localeInfo.code });
|
|
1787
|
+
}
|
|
1788
|
+
//
|
|
1789
|
+
await applyChanges();
|
|
1790
|
+
},
|
|
1791
|
+
async loadSetting() {
|
|
1792
|
+
const profileCode = (await settingService.scope(AXPPlatformScope.User).get(AXPRegionalSetting.LocaleProfile));
|
|
1793
|
+
patchState(store, { profile: profileCode });
|
|
1794
|
+
await localeService.setProfile(profileCode);
|
|
1795
|
+
//
|
|
1796
|
+
// delay to ensure the profile is set and override the default
|
|
1797
|
+
setTimeout(async () => {
|
|
1798
|
+
const calendar = (await settingService.scope(AXPPlatformScope.User).get(AXPRegionalSetting.Calendar));
|
|
1799
|
+
patchState(store, { calendar: calendar });
|
|
1800
|
+
calendarService.setActiveCalendar(calendar);
|
|
1801
|
+
//
|
|
1802
|
+
const language = (await settingService.scope(AXPPlatformScope.User).get(AXPRegionalSetting.Language));
|
|
1803
|
+
patchState(store, { language: language });
|
|
1804
|
+
translateService.setActiveLang(language);
|
|
1805
|
+
//
|
|
1806
|
+
await applyChanges();
|
|
1807
|
+
});
|
|
1808
|
+
//
|
|
1809
|
+
},
|
|
1810
|
+
};
|
|
1811
|
+
}), withHooks((store, settingService = inject(AXPSettingService), translateService = inject(AXTranslationService)) => ({
|
|
1812
|
+
onInit() {
|
|
1813
|
+
settingService.onChanged.subscribe(async (setting) => {
|
|
1814
|
+
const keys = [
|
|
1815
|
+
AXPRegionalSetting.LocaleProfile,
|
|
1816
|
+
AXPRegionalSetting.Language,
|
|
1817
|
+
AXPRegionalSetting.Calendar
|
|
1818
|
+
];
|
|
1819
|
+
//
|
|
1820
|
+
if (keys.some(k => setting.keys.includes(k))) {
|
|
1821
|
+
await store.loadSetting();
|
|
1822
|
+
}
|
|
1823
|
+
});
|
|
1824
|
+
},
|
|
1825
|
+
onDestroy() { },
|
|
1826
|
+
})));
|
|
1827
|
+
|
|
1828
|
+
class AXMLanguageSlotComponent {
|
|
1829
|
+
constructor() {
|
|
1830
|
+
this.localeManagementService = inject(AXMLocaleManagementService);
|
|
1831
|
+
this.store = inject(AXPRegionalStoreService);
|
|
1832
|
+
this.items = signal([], ...(ngDevMode ? [{ debugName: "items" }] : []));
|
|
1833
|
+
}
|
|
1834
|
+
async ngOnInit() {
|
|
1835
|
+
const items = await this.localeManagementService.getLocaleProfiles();
|
|
1836
|
+
this.items.set(items);
|
|
1837
|
+
}
|
|
1838
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLanguageSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1839
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.4", 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.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"] }] }); }
|
|
1840
|
+
}
|
|
1841
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLanguageSlotComponent, decorators: [{
|
|
1842
|
+
type: Component,
|
|
1843
|
+
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" }]
|
|
1844
|
+
}] });
|
|
1845
|
+
|
|
1846
|
+
class AXMLocaleManagementModule {
|
|
1847
|
+
constructor(appInitService, injector) {
|
|
1848
|
+
const service = injector.get(AXPRegionalStoreService);
|
|
1849
|
+
appInitService.registerTask({
|
|
1850
|
+
name: 'Settings',
|
|
1851
|
+
statusText: 'Apply Regional Settings ...',
|
|
1852
|
+
priority: 5,
|
|
1853
|
+
run: async () => {
|
|
1854
|
+
await service.loadSetting();
|
|
1855
|
+
}
|
|
1856
|
+
});
|
|
1857
|
+
}
|
|
1858
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocaleManagementModule, deps: [{ token: i1$1.AXPAppStartUpService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1859
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.4", ngImport: i0, type: AXMLocaleManagementModule, imports: [CommonModule, i2$1.AXPComponentSlotModule] }); }
|
|
1860
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocaleManagementModule, providers: [
|
|
1861
|
+
// Entity Services
|
|
1862
|
+
{ provide: AXMLanguagesService, useClass: AXMLanguagesServiceImpl },
|
|
1863
|
+
{ provide: AXMLocalesService, useClass: AXMLocalesServiceImpl },
|
|
1864
|
+
{ provide: AXMTimezonesService, useClass: AXMTimezonesServiceImpl },
|
|
1865
|
+
{ provide: AXMCurrenciesService, useClass: AXMCurrenciesServiceImpl },
|
|
1866
|
+
// Module Providers
|
|
1867
|
+
{
|
|
1868
|
+
provide: AXP_ENTITY_DEFINITION_LOADER,
|
|
1869
|
+
useClass: AXMLocaleManagementEntityProvider,
|
|
1870
|
+
multi: true,
|
|
1871
|
+
},
|
|
1872
|
+
{
|
|
1873
|
+
provide: AXP_MENU_PROVIDER,
|
|
1874
|
+
useClass: AXMLocaleManagementMenuProvider,
|
|
1875
|
+
multi: true,
|
|
1876
|
+
},
|
|
1877
|
+
{
|
|
1878
|
+
provide: AXP_PERMISSION_DEFINITION_PROVIDER,
|
|
1879
|
+
useClass: AXMLocaleManagementPermissionDefinitionProvider,
|
|
1880
|
+
multi: true,
|
|
1881
|
+
},
|
|
1882
|
+
{
|
|
1883
|
+
provide: AXP_SEARCH_PROVIDER,
|
|
1884
|
+
useClass: AXMLocaleManagementSearchCommandProvider,
|
|
1885
|
+
multi: true,
|
|
1886
|
+
},
|
|
1887
|
+
{
|
|
1888
|
+
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
|
1889
|
+
useFactory: async () => {
|
|
1890
|
+
const injector = inject(Injector);
|
|
1891
|
+
const provider = (await import('./acorex-modules-locale-management-settings.provider-PKnqTses.mjs')).AXMRegionalSettingProvider;
|
|
1892
|
+
return new provider(injector);
|
|
1893
|
+
},
|
|
1894
|
+
multi: true
|
|
1895
|
+
},
|
|
1896
|
+
{
|
|
1897
|
+
provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
|
|
1898
|
+
useClass: AXMLocaleManagementDataSourceDefinition,
|
|
1899
|
+
multi: true,
|
|
1900
|
+
},
|
|
1901
|
+
], imports: [CommonModule,
|
|
1902
|
+
AXPComponentSlotModule.forChild({
|
|
1903
|
+
'root-header-end': [
|
|
1904
|
+
{
|
|
1905
|
+
name: 'language',
|
|
1906
|
+
component: AXMLanguageSlotComponent
|
|
1907
|
+
}
|
|
1908
|
+
]
|
|
1909
|
+
})] }); }
|
|
1910
|
+
}
|
|
1911
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: AXMLocaleManagementModule, decorators: [{
|
|
1912
|
+
type: NgModule,
|
|
1913
|
+
args: [{
|
|
1914
|
+
imports: [
|
|
1915
|
+
CommonModule,
|
|
1916
|
+
AXPComponentSlotModule.forChild({
|
|
1917
|
+
'root-header-end': [
|
|
1918
|
+
{
|
|
1919
|
+
name: 'language',
|
|
1920
|
+
component: AXMLanguageSlotComponent
|
|
1921
|
+
}
|
|
1922
|
+
]
|
|
1923
|
+
})
|
|
1924
|
+
],
|
|
1925
|
+
providers: [
|
|
1926
|
+
// Entity Services
|
|
1927
|
+
{ provide: AXMLanguagesService, useClass: AXMLanguagesServiceImpl },
|
|
1928
|
+
{ provide: AXMLocalesService, useClass: AXMLocalesServiceImpl },
|
|
1929
|
+
{ provide: AXMTimezonesService, useClass: AXMTimezonesServiceImpl },
|
|
1930
|
+
{ provide: AXMCurrenciesService, useClass: AXMCurrenciesServiceImpl },
|
|
1931
|
+
// Module Providers
|
|
1932
|
+
{
|
|
1933
|
+
provide: AXP_ENTITY_DEFINITION_LOADER,
|
|
1934
|
+
useClass: AXMLocaleManagementEntityProvider,
|
|
1935
|
+
multi: true,
|
|
1936
|
+
},
|
|
1937
|
+
{
|
|
1938
|
+
provide: AXP_MENU_PROVIDER,
|
|
1939
|
+
useClass: AXMLocaleManagementMenuProvider,
|
|
1940
|
+
multi: true,
|
|
1941
|
+
},
|
|
1942
|
+
{
|
|
1943
|
+
provide: AXP_PERMISSION_DEFINITION_PROVIDER,
|
|
1944
|
+
useClass: AXMLocaleManagementPermissionDefinitionProvider,
|
|
1945
|
+
multi: true,
|
|
1946
|
+
},
|
|
1947
|
+
{
|
|
1948
|
+
provide: AXP_SEARCH_PROVIDER,
|
|
1949
|
+
useClass: AXMLocaleManagementSearchCommandProvider,
|
|
1950
|
+
multi: true,
|
|
1951
|
+
},
|
|
1952
|
+
{
|
|
1953
|
+
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
|
1954
|
+
useFactory: async () => {
|
|
1955
|
+
const injector = inject(Injector);
|
|
1956
|
+
const provider = (await import('./acorex-modules-locale-management-settings.provider-PKnqTses.mjs')).AXMRegionalSettingProvider;
|
|
1957
|
+
return new provider(injector);
|
|
1958
|
+
},
|
|
1959
|
+
multi: true
|
|
1960
|
+
},
|
|
1961
|
+
{
|
|
1962
|
+
provide: AXP_DATASOURCE_DEFINITION_PROVIDER,
|
|
1963
|
+
useClass: AXMLocaleManagementDataSourceDefinition,
|
|
1964
|
+
multi: true,
|
|
1965
|
+
},
|
|
1966
|
+
],
|
|
1967
|
+
}]
|
|
1968
|
+
}], ctorParameters: () => [{ type: i1$1.AXPAppStartUpService }, { type: i0.Injector }] });
|
|
1969
|
+
|
|
1970
|
+
/**
|
|
1971
|
+
* Generated bundle index. Do not edit.
|
|
1972
|
+
*/
|
|
1973
|
+
|
|
1974
|
+
export { AXMLocaleManagementService as A, RootConfig as R, AXPRegionalSetting as a, AXMLocaleManagementModule as b, AXMLanguagesService as c, AXMLanguagesServiceImpl as d, localesFactory as e, AXMLocalesService as f, AXMLocalesServiceImpl as g, AXMTimezonesService as h, AXMTimezonesServiceImpl as i, currenciesFactory as j, AXMCurrenciesService as k, languagesFactory as l, AXMCurrenciesServiceImpl as m, AXMLocaleManagementEntityProvider as n, AXMLocaleManagementMenuProvider as o, AXMLocaleManagementSearchCommandProvider as p, AXMLocaleManagementPermissionDefinitionProvider as q, timezonesFactory as t };
|
|
1975
|
+
//# sourceMappingURL=acorex-modules-locale-management-acorex-modules-locale-management-CfaOC6U5.mjs.map
|