@acorex/modules 20.0.25 → 20.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auth/index.d.ts +57 -4
- package/common/index.d.ts +8 -1
- package/data-management/index.d.ts +401 -3
- package/fesm2022/{acorex-modules-application-management-module-designer.component-BvuZJdwg.mjs → acorex-modules-application-management-module-designer.component-udoks-Ef.mjs} +17 -17
- package/fesm2022/acorex-modules-application-management-module-designer.component-udoks-Ef.mjs.map +1 -0
- package/fesm2022/acorex-modules-application-management.mjs +53 -53
- package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-DqsEqXec.mjs → acorex-modules-auth-acorex-modules-auth-5TIjp5UG.mjs} +182 -123
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-5TIjp5UG.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-app-chooser.component-D0pKNUts.mjs → acorex-modules-auth-app-chooser.component-B0w1Xzx7.mjs} +6 -6
- package/fesm2022/{acorex-modules-auth-app-chooser.component-D0pKNUts.mjs.map → acorex-modules-auth-app-chooser.component-B0w1Xzx7.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-blank.layout-BwVSMaFI.mjs → acorex-modules-auth-blank.layout-C8NsXB9K.mjs} +5 -5
- package/fesm2022/{acorex-modules-auth-blank.layout-BwVSMaFI.mjs.map → acorex-modules-auth-blank.layout-C8NsXB9K.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-login.module-Dky49ylL.mjs → acorex-modules-auth-login.module-B8sVVZHV.mjs} +8 -8
- package/fesm2022/{acorex-modules-auth-login.module-Dky49ylL.mjs.map → acorex-modules-auth-login.module-B8sVVZHV.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-master.layout-DXfRjCLL.mjs → acorex-modules-auth-master.layout-CMKxj1Qo.mjs} +7 -7
- package/fesm2022/{acorex-modules-auth-master.layout-DXfRjCLL.mjs.map → acorex-modules-auth-master.layout-CMKxj1Qo.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth-oauth-callback.component-C95YLpI_.mjs +101 -0
- package/fesm2022/acorex-modules-auth-oauth-callback.component-C95YLpI_.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-password.component-oH5OFHqQ.mjs → acorex-modules-auth-password.component-DH0qKunk.mjs} +9 -9
- package/fesm2022/{acorex-modules-auth-password.component-oH5OFHqQ.mjs.map → acorex-modules-auth-password.component-DH0qKunk.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth-password.component-Du0EBIiw.mjs +239 -0
- package/fesm2022/acorex-modules-auth-password.component-Du0EBIiw.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-routes-DAiaTm4Y.mjs → acorex-modules-auth-routes-Q9zaIiBS.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-DAiaTm4Y.mjs.map → acorex-modules-auth-routes-Q9zaIiBS.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth-settings.provider-CM-T8nbI.mjs.map +1 -1
- package/fesm2022/{acorex-modules-auth-tenant-chooser.component-3-FFY4tI.mjs → acorex-modules-auth-tenant-chooser.component-wp7OOLsH.mjs} +16 -13
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-wp7OOLsH.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-two-factor-code.component-UUmdX7IM.mjs → acorex-modules-auth-two-factor-code.component-DSWd06bn.mjs} +7 -7
- package/fesm2022/{acorex-modules-auth-two-factor-code.component-UUmdX7IM.mjs.map → acorex-modules-auth-two-factor-code.component-DSWd06bn.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module-Coe4NNUW.mjs → acorex-modules-auth-two-factor.module-oRixkeAn.mjs} +7 -7
- package/fesm2022/{acorex-modules-auth-two-factor.module-Coe4NNUW.mjs.map → acorex-modules-auth-two-factor.module-oRixkeAn.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth-user-sessions.component-8wwWI0cQ.mjs +135 -0
- package/fesm2022/acorex-modules-auth-user-sessions.component-8wwWI0cQ.mjs.map +1 -0
- package/fesm2022/acorex-modules-auth.mjs +1 -1
- package/fesm2022/acorex-modules-calendar-management.mjs +19 -19
- package/fesm2022/acorex-modules-calendar-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-common-acorex-modules-common-DQESb8jf.mjs +1667 -0
- package/fesm2022/acorex-modules-common-acorex-modules-common-DQESb8jf.mjs.map +1 -0
- package/fesm2022/{acorex-modules-common-search-popup.component-B_bJ0ZRM.mjs → acorex-modules-common-search-popup.component-CpFvcrxw.mjs} +13 -13
- package/fesm2022/acorex-modules-common-search-popup.component-CpFvcrxw.mjs.map +1 -0
- package/fesm2022/{acorex-modules-platform-management-settings.provider-intHn3XI.mjs → acorex-modules-common-settings.provider-ha75F6g5.mjs} +2 -3
- package/fesm2022/acorex-modules-common-settings.provider-ha75F6g5.mjs.map +1 -0
- package/fesm2022/{acorex-modules-common-timeline-version-history-popup.component-D48aDOVu.mjs → acorex-modules-common-timeline-version-history-popup.component-D_6STmWm.mjs} +11 -11
- package/fesm2022/acorex-modules-common-timeline-version-history-popup.component-D_6STmWm.mjs.map +1 -0
- package/fesm2022/acorex-modules-common.mjs +1 -1199
- package/fesm2022/acorex-modules-common.mjs.map +1 -1
- package/fesm2022/{acorex-modules-contact-management-acorex-modules-contact-management-DVjMlS0K.mjs → acorex-modules-contact-management-acorex-modules-contact-management-CM72FkGM.mjs} +47 -222
- package/fesm2022/acorex-modules-contact-management-acorex-modules-contact-management-CM72FkGM.mjs.map +1 -0
- package/fesm2022/{acorex-modules-contact-management-address-type.entity-CWIBwWfZ.mjs → acorex-modules-contact-management-address-type.entity-CW0fx3v8.mjs} +2 -2
- package/fesm2022/{acorex-modules-contact-management-address-type.entity-CWIBwWfZ.mjs.map → acorex-modules-contact-management-address-type.entity-CW0fx3v8.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-contact-management-contact-address.entity-DO6GizbS.mjs → acorex-modules-contact-management-contact-address.entity-D5OGWsSx.mjs} +2 -2
- package/fesm2022/{acorex-modules-contact-management-contact-address.entity-DO6GizbS.mjs.map → acorex-modules-contact-management-contact-address.entity-D5OGWsSx.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-contact-management-contact-method.entity-tEtMSV4f.mjs → acorex-modules-contact-management-contact-method.entity-Cpdd-Xwb.mjs} +2 -2
- package/fesm2022/{acorex-modules-contact-management-contact-method.entity-tEtMSV4f.mjs.map → acorex-modules-contact-management-contact-method.entity-Cpdd-Xwb.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-contact-management-contact-relationship.entity-C-B5aOoq.mjs → acorex-modules-contact-management-contact-relationship.entity-B_gQ7mEo.mjs} +2 -2
- package/fesm2022/{acorex-modules-contact-management-contact-relationship.entity-C-B5aOoq.mjs.map → acorex-modules-contact-management-contact-relationship.entity-B_gQ7mEo.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-contact-management-contact-source.entity-Dw8jwcox.mjs → acorex-modules-contact-management-contact-source.entity-BwYBaS8B.mjs} +2 -2
- package/fesm2022/{acorex-modules-contact-management-contact-source.entity-Dw8jwcox.mjs.map → acorex-modules-contact-management-contact-source.entity-BwYBaS8B.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-contact-management-emergency-contact-category.entity-BJOOhcD1.mjs → acorex-modules-contact-management-emergency-contact-category.entity-CDbm4Rq3.mjs} +2 -2
- package/fesm2022/{acorex-modules-contact-management-emergency-contact-category.entity-BJOOhcD1.mjs.map → acorex-modules-contact-management-emergency-contact-category.entity-CDbm4Rq3.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-contact-management-emergency-contact.entity-Cr7_5JKD.mjs → acorex-modules-contact-management-emergency-contact.entity-BpNDJPVs.mjs} +2 -2
- package/fesm2022/{acorex-modules-contact-management-emergency-contact.entity-Cr7_5JKD.mjs.map → acorex-modules-contact-management-emergency-contact.entity-BpNDJPVs.mjs.map} +1 -1
- package/fesm2022/acorex-modules-contact-management.mjs +1 -1
- package/fesm2022/acorex-modules-content-management.mjs +14 -14
- package/fesm2022/acorex-modules-content-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-conversation.mjs +123 -123
- package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
- package/fesm2022/acorex-modules-dashboard-management.mjs +191 -191
- package/fesm2022/acorex-modules-dashboard-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-data-management.mjs +2215 -265
- package/fesm2022/acorex-modules-data-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-Bte3VGKC.mjs → acorex-modules-document-management-acorex-modules-document-management-B4Jd-KGV.mjs} +144 -144
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-B4Jd-KGV.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-Cc0anIMV.mjs → acorex-modules-document-management-attachment-widget.component-Bp4kKjC4.mjs} +5 -5
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-Cc0anIMV.mjs.map → acorex-modules-document-management-attachment-widget.component-Bp4kKjC4.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-BNcu8bzT.mjs → acorex-modules-document-management-create-folder-dialog.component-12aUAucS.mjs} +22 -22
- package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-12aUAucS.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-details-view.component-BeN0NPcy.mjs → acorex-modules-document-management-details-view.component-bzA7fJZW.mjs} +5 -5
- package/fesm2022/{acorex-modules-document-management-details-view.component-BeN0NPcy.mjs.map → acorex-modules-document-management-details-view.component-bzA7fJZW.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-B66wODCQ.mjs → acorex-modules-document-management-drive-choose.component-DLJdJzp1.mjs} +18 -18
- package/fesm2022/acorex-modules-document-management-drive-choose.component-DLJdJzp1.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-drive.component-CUej0GjY.mjs → acorex-modules-document-management-drive.component-DrkSd6Rv.mjs} +28 -28
- package/fesm2022/acorex-modules-document-management-drive.component-DrkSd6Rv.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-BuwrkLhe.mjs → acorex-modules-document-management-large-icons-view.component-DV8oWdDh.mjs} +5 -5
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-BuwrkLhe.mjs.map → acorex-modules-document-management-large-icons-view.component-DV8oWdDh.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-Cs-mjiQX.mjs → acorex-modules-document-management-large-tiles-view.component-Bgr9s_zf.mjs} +5 -5
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-Cs-mjiQX.mjs.map → acorex-modules-document-management-large-tiles-view.component-Bgr9s_zf.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-link-dialog.component-OTa8ttto.mjs → acorex-modules-document-management-link-dialog.component-CSEIhT4P.mjs} +5 -5
- package/fesm2022/{acorex-modules-document-management-link-dialog.component-OTa8ttto.mjs.map → acorex-modules-document-management-link-dialog.component-CSEIhT4P.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-list-view.component-1M2rIOGv.mjs → acorex-modules-document-management-list-view.component-Dz6ymqrq.mjs} +5 -5
- package/fesm2022/{acorex-modules-document-management-list-view.component-1M2rIOGv.mjs.map → acorex-modules-document-management-list-view.component-Dz6ymqrq.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-meta-choose-popup.component-DsSo15AL.mjs → acorex-modules-document-management-meta-choose-popup.component-DYJN-4Pe.mjs} +20 -20
- package/fesm2022/acorex-modules-document-management-meta-choose-popup.component-DYJN-4Pe.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-meta-selector-widget-column.component-gunvY9et.mjs → acorex-modules-document-management-meta-selector-widget-column.component-C_J1rPak.mjs} +4 -4
- package/fesm2022/{acorex-modules-document-management-meta-selector-widget-column.component-gunvY9et.mjs.map → acorex-modules-document-management-meta-selector-widget-column.component-C_J1rPak.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-meta-selector-widget-designer.component-B-fYrGs1.mjs → acorex-modules-document-management-meta-selector-widget-designer.component-By_NgUX6.mjs} +7 -7
- package/fesm2022/acorex-modules-document-management-meta-selector-widget-designer.component-By_NgUX6.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-meta-selector-widget-view.component-D4gu7liQ.mjs → acorex-modules-document-management-meta-selector-widget-view.component-zwCw3v1w.mjs} +4 -4
- package/fesm2022/{acorex-modules-document-management-meta-selector-widget-view.component-D4gu7liQ.mjs.map → acorex-modules-document-management-meta-selector-widget-view.component-zwCw3v1w.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-permission-definition.provider-BEq3ySY3.mjs → acorex-modules-document-management-permission-definition.provider-CN7HVQLu.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-permission-definition.provider-BEq3ySY3.mjs.map → acorex-modules-document-management-permission-definition.provider-CN7HVQLu.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-DWzD41AV.mjs → acorex-modules-document-management-rename-node-dialog.component-C_dsLLMb.mjs} +15 -15
- package/fesm2022/acorex-modules-document-management-rename-node-dialog.component-C_dsLLMb.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-share-dialog.component-DiyR6CiE.mjs → acorex-modules-document-management-share-dialog.component-CBrf7hjZ.mjs} +6 -6
- package/fesm2022/{acorex-modules-document-management-share-dialog.component-DiyR6CiE.mjs.map → acorex-modules-document-management-share-dialog.component-CBrf7hjZ.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-share-email-dialog.component-CKlG3YwB.mjs → acorex-modules-document-management-share-email-dialog.component-D3WcHAOf.mjs} +5 -5
- package/fesm2022/{acorex-modules-document-management-share-email-dialog.component-CKlG3YwB.mjs.map → acorex-modules-document-management-share-email-dialog.component-D3WcHAOf.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-Dh5Di_2Y.mjs → acorex-modules-document-management-small-icons-view.component-wvFkjOqg.mjs} +5 -5
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-Dh5Di_2Y.mjs.map → acorex-modules-document-management-small-icons-view.component-wvFkjOqg.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-mOjQbw-f.mjs → acorex-modules-document-management-small-tiles-view.component-C4ARGOZR.mjs} +5 -5
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-mOjQbw-f.mjs.map → acorex-modules-document-management-small-tiles-view.component-C4ARGOZR.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-EsaVgkdd.mjs → acorex-modules-form-template-management-acorex-modules-form-template-management-zz8KU2BM.mjs} +68 -68
- package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-zz8KU2BM.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-category.entity-CC0qe4pv.mjs → acorex-modules-form-template-management-category.entity-g5YGQjj3.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-category.entity-CC0qe4pv.mjs.map → acorex-modules-form-template-management-category.entity-g5YGQjj3.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-designer.page-B14QVCAw.mjs → acorex-modules-form-template-management-designer.page-DQorNK3f.mjs} +6 -6
- package/fesm2022/acorex-modules-form-template-management-designer.page-DQorNK3f.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-permission-definition.provider-BMd6DvoR.mjs → acorex-modules-form-template-management-permission-definition.provider-BFPqDVO3.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-permission-definition.provider-BMd6DvoR.mjs.map → acorex-modules-form-template-management-permission-definition.provider-BFPqDVO3.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-settings.provider-BYS5t4c_.mjs → acorex-modules-form-template-management-settings.provider-DYbrgJI7.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-settings.provider-BYS5t4c_.mjs.map → acorex-modules-form-template-management-settings.provider-DYbrgJI7.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-template-picker.component-C0mLCsFT.mjs → acorex-modules-form-template-management-template-picker.component-DgH_DUIB.mjs} +14 -14
- package/fesm2022/acorex-modules-form-template-management-template-picker.component-DgH_DUIB.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-CffnsEo2.mjs → acorex-modules-form-template-management-template-widget-edit.component-CCL7xNSm.mjs} +9 -9
- package/fesm2022/acorex-modules-form-template-management-template-widget-edit.component-CCL7xNSm.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-template.entity-DTx9CejD.mjs → acorex-modules-form-template-management-template.entity-XNBsmQZY.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-template.entity-DTx9CejD.mjs.map → acorex-modules-form-template-management-template.entity-XNBsmQZY.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-BwVSDsN3.mjs → acorex-modules-form-template-management-viewer-popup.component-Bw9VbGx7.mjs} +12 -12
- package/fesm2022/acorex-modules-form-template-management-viewer-popup.component-Bw9VbGx7.mjs.map +1 -0
- package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
- package/fesm2022/{acorex-modules-issue-management-acorex-modules-issue-management-DKdtV_QL.mjs → acorex-modules-issue-management-acorex-modules-issue-management-B8ZVc-0b.mjs} +45 -45
- package/fesm2022/{acorex-modules-issue-management-acorex-modules-issue-management-DKdtV_QL.mjs.map → acorex-modules-issue-management-acorex-modules-issue-management-B8ZVc-0b.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-issue-management-capture-screen.component-CucnKDr1.mjs → acorex-modules-issue-management-capture-screen.component-D1vapaJC.mjs} +7 -7
- package/fesm2022/{acorex-modules-issue-management-capture-screen.component-CucnKDr1.mjs.map → acorex-modules-issue-management-capture-screen.component-D1vapaJC.mjs.map} +1 -1
- package/fesm2022/acorex-modules-issue-management.mjs +1 -1
- package/fesm2022/acorex-modules-log-management.mjs +427 -479
- package/fesm2022/acorex-modules-log-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-notification-management.mjs +60 -60
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-organization-management-add-item.component-Br70YGJS.mjs → acorex-modules-organization-management-add-item.component-DsDk5cyO.mjs} +16 -16
- package/fesm2022/{acorex-modules-organization-management-add-item.component-Br70YGJS.mjs.map → acorex-modules-organization-management-add-item.component-DsDk5cyO.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-branch.entity-Bsgj4Pow.mjs → acorex-modules-organization-management-branch.entity-CHp5WtIF.mjs} +80 -6
- package/fesm2022/acorex-modules-organization-management-branch.entity-CHp5WtIF.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-chart.entity-UAn44WCP.mjs.map +1 -1
- package/fesm2022/acorex-modules-organization-management-company.entity-D1A1HSkC.mjs.map +1 -1
- package/fesm2022/{acorex-modules-organization-management-department.entity-BMojk26d.mjs → acorex-modules-organization-management-department.entity-BxCyXNtv.mjs} +68 -7
- package/fesm2022/acorex-modules-organization-management-department.entity-BxCyXNtv.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-division.entity-BnWpX4US.mjs → acorex-modules-organization-management-division.entity-DzQT2jpz.mjs} +68 -6
- package/fesm2022/acorex-modules-organization-management-division.entity-DzQT2jpz.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-employee.entity-DBuCVYZP.mjs → acorex-modules-organization-management-employee.entity-CSY_U9Bl.mjs} +152 -28
- package/fesm2022/acorex-modules-organization-management-employee.entity-CSY_U9Bl.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-employment-type.entity-CWYu9tIg.mjs → acorex-modules-organization-management-employment-type.entity-h9Hua7Xe.mjs} +21 -8
- package/fesm2022/acorex-modules-organization-management-employment-type.entity-h9Hua7Xe.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.page-DHu4UuxD.mjs → acorex-modules-organization-management-org-chart-configuration.page-a2JPiCy9.mjs} +6 -6
- package/fesm2022/acorex-modules-organization-management-org-chart-configuration.page-a2JPiCy9.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-org-chart-configuration.service-CcZMGyCz.mjs → acorex-modules-organization-management-org-chart-configuration.service-BkfSow3s.mjs} +5 -5
- package/fesm2022/acorex-modules-organization-management-org-chart-configuration.service-BkfSow3s.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-org-chart.page-CSMTnTDi.mjs → acorex-modules-organization-management-org-chart.page-DWQ-5NF_.mjs} +20 -20
- package/fesm2022/acorex-modules-organization-management-org-chart.page-DWQ-5NF_.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-position-category.entity-DrZ9Ott4.mjs → acorex-modules-organization-management-position-category.entity-CIir9UMg.mjs} +20 -35
- package/fesm2022/acorex-modules-organization-management-position-category.entity-CIir9UMg.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-position.entity-BpkjUsoZ.mjs +526 -0
- package/fesm2022/acorex-modules-organization-management-position.entity-BpkjUsoZ.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-responsibility-category.entity-CmafbyCZ.mjs → acorex-modules-organization-management-responsibility-category.entity-tJFpEylO.mjs} +12 -25
- package/fesm2022/acorex-modules-organization-management-responsibility-category.entity-tJFpEylO.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-responsibility.entity-DmLeFogS.mjs → acorex-modules-organization-management-responsibility.entity-DmKSoxpL.mjs} +70 -25
- package/fesm2022/acorex-modules-organization-management-responsibility.entity-DmKSoxpL.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-role-category.entity-Cyt1dAKR.mjs → acorex-modules-organization-management-role-category.entity-CAljzQcH.mjs} +22 -14
- package/fesm2022/acorex-modules-organization-management-role-category.entity-CAljzQcH.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-position.entity-CY4TugWR.mjs → acorex-modules-organization-management-role.entity-CruQeObl.mjs} +77 -79
- package/fesm2022/acorex-modules-organization-management-role.entity-CruQeObl.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management-settings.provider-hlbUXugb.mjs.map +1 -1
- package/fesm2022/{acorex-modules-organization-management-skill-category.entity-BPgGGVT3.mjs → acorex-modules-organization-management-skill-category.entity-iIbc-pjJ.mjs} +18 -33
- package/fesm2022/acorex-modules-organization-management-skill-category.entity-iIbc-pjJ.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-skill.entity-D9XojzUV.mjs → acorex-modules-organization-management-skill.entity-DoAsCzm9.mjs} +61 -22
- package/fesm2022/acorex-modules-organization-management-skill.entity-DoAsCzm9.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-team.entity-mYPhrc2l.mjs → acorex-modules-organization-management-team.entity-DMCfAZsr.mjs} +58 -10
- package/fesm2022/acorex-modules-organization-management-team.entity-DMCfAZsr.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management.mjs +221 -136
- package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-platform-management-list-version.component-CgF5pvTa.mjs → acorex-modules-platform-management-list-version.component-BOfUQDwo.mjs} +9 -9
- package/fesm2022/acorex-modules-platform-management-list-version.component-BOfUQDwo.mjs.map +1 -0
- package/fesm2022/acorex-modules-platform-management.mjs +3479 -1
- package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-project-management.mjs +43 -43
- package/fesm2022/acorex-modules-project-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-report-management-report-create-root.component-DqrLa6vh.mjs → acorex-modules-report-management-report-create-root.component-DgouOz2M.mjs} +10 -10
- package/fesm2022/acorex-modules-report-management-report-create-root.component-DgouOz2M.mjs.map +1 -0
- package/fesm2022/{acorex-modules-report-management-report-runner-root-page.component-C3UP9Jsi.mjs → acorex-modules-report-management-report-runner-root-page.component-DHu-kyCd.mjs} +13 -13
- package/fesm2022/{acorex-modules-report-management-report-runner-root-page.component-C3UP9Jsi.mjs.map → acorex-modules-report-management-report-runner-root-page.component-DHu-kyCd.mjs.map} +1 -1
- package/fesm2022/acorex-modules-report-management.mjs +465 -232
- 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 +170 -102
- package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-settings-management-setting-page.component-BbnEqXKu.mjs → acorex-modules-settings-management-setting-page.component-cG4ykm2g.mjs} +17 -17
- package/fesm2022/acorex-modules-settings-management-setting-page.component-cG4ykm2g.mjs.map +1 -0
- package/fesm2022/{acorex-modules-settings-management-setting-view.component-DP8mxDK9.mjs → acorex-modules-settings-management-setting-view.component-CrEK2N1U.mjs} +11 -11
- package/fesm2022/acorex-modules-settings-management-setting-view.component-CrEK2N1U.mjs.map +1 -0
- package/fesm2022/acorex-modules-settings-management.mjs +6 -6
- package/fesm2022/acorex-modules-settings-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-text-template-management-settings.provider-fX0dhWUL.mjs.map +1 -1
- 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-task-board.page-zaSchG-u.mjs → acorex-modules-workflow-management-task-board.page-BoG_tFGn.mjs} +123 -133
- package/fesm2022/acorex-modules-workflow-management-task-board.page-BoG_tFGn.mjs.map +1 -0
- package/fesm2022/acorex-modules-workflow-management.mjs +12 -12
- package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -1
- package/log-management/index.d.ts +46 -19
- package/organization-management/index.d.ts +41 -13
- package/package.json +1 -1
- package/platform-management/index.d.ts +8 -277
- package/report-management/index.d.ts +180 -126
- package/security-management/index.d.ts +2 -46
- package/fesm2022/acorex-modules-application-management-module-designer.component-BvuZJdwg.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-DqsEqXec.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-password.component-BbsQWpEh.mjs +0 -134
- package/fesm2022/acorex-modules-auth-password.component-BbsQWpEh.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-tenant-chooser.component-3-FFY4tI.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-user-sessions.component-CtTrstZT.mjs +0 -135
- package/fesm2022/acorex-modules-auth-user-sessions.component-CtTrstZT.mjs.map +0 -1
- package/fesm2022/acorex-modules-common-search-popup.component-B_bJ0ZRM.mjs.map +0 -1
- package/fesm2022/acorex-modules-common-timeline-version-history-popup.component-D48aDOVu.mjs.map +0 -1
- package/fesm2022/acorex-modules-contact-management-acorex-modules-contact-management-DVjMlS0K.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-Bte3VGKC.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-BNcu8bzT.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-drive-choose.component-B66wODCQ.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-drive.component-CUej0GjY.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-meta-choose-popup.component-DsSo15AL.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-meta-selector-widget-designer.component-B-fYrGs1.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-rename-node-dialog.component-DWzD41AV.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-EsaVgkdd.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-designer.page-B14QVCAw.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-template-picker.component-C0mLCsFT.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-template-widget-edit.component-CffnsEo2.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-viewer-popup.component-BwVSDsN3.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-branch.entity-Bsgj4Pow.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-department.entity-BMojk26d.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-division.entity-BnWpX4US.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-employee.entity-DBuCVYZP.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-employment-type.entity-CWYu9tIg.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-org-chart-configuration.page-DHu4UuxD.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-org-chart-configuration.service-CcZMGyCz.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-org-chart.page-CSMTnTDi.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-position-category.entity-DrZ9Ott4.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-position.entity-CY4TugWR.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-responsibility-category.entity-CmafbyCZ.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-responsibility.entity-DmLeFogS.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-role-category.entity-Cyt1dAKR.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-role.entity-BDErzNv-.mjs +0 -324
- package/fesm2022/acorex-modules-organization-management-role.entity-BDErzNv-.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-skill-category.entity-BPgGGVT3.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-skill.entity-D9XojzUV.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-team.entity-mYPhrc2l.mjs.map +0 -1
- package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-BLhzWiXM.mjs +0 -5524
- package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-BLhzWiXM.mjs.map +0 -1
- package/fesm2022/acorex-modules-platform-management-list-version.component-CgF5pvTa.mjs.map +0 -1
- package/fesm2022/acorex-modules-platform-management-settings.provider-intHn3XI.mjs.map +0 -1
- package/fesm2022/acorex-modules-report-management-report-create-root.component-DqrLa6vh.mjs.map +0 -1
- package/fesm2022/acorex-modules-settings-management-setting-page.component-BbnEqXKu.mjs.map +0 -1
- package/fesm2022/acorex-modules-settings-management-setting-view.component-DP8mxDK9.mjs.map +0 -1
- package/fesm2022/acorex-modules-workflow-management-task-board.page-zaSchG-u.mjs.map +0 -1
@@ -1,2 +1,3480 @@
|
|
1
|
-
|
1
|
+
import { createAllQueryView, AXPEntityCommandScope, AXPEntityQueryType, AXPSettingService, AXP_APP_VERSION_PROVIDER, AXP_MENU_PROVIDER, AXP_SETTING_DEFINITION_PROVIDER, AXP_GLOBAL_VARIABLE_DEFINITION_PROVIDER } from '@acorex/platform/common';
|
2
|
+
import * as i4$1 from '@acorex/platform/layout/components';
|
3
|
+
import { AXPThemeLayoutBlockComponent, AXPComponentSlotModule } from '@acorex/platform/layout/components';
|
4
|
+
import { AXMEntityCrudServiceImpl, AXPEntityService, AXP_ENTITY_CONFIG_TOKEN, AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
|
5
|
+
import * as i3$2 from '@acorex/platform/workflow';
|
6
|
+
import { AXPWorkflowAction, AXPWorkflowService, AXPWorkflowTaskProvider, AXPWorkflowModule, AXP_WORKFLOW_TASK_PROVIDER } from '@acorex/platform/workflow';
|
7
|
+
import * as i0 from '@angular/core';
|
8
|
+
import { Injectable, inject, signal, HostListener, Component, Input, Injector, NgModule } from '@angular/core';
|
9
|
+
import { ROUTES } from '@angular/router';
|
10
|
+
import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
|
11
|
+
import * as i3 from '@acorex/cdk/outline';
|
12
|
+
import { AXOutlineModule } from '@acorex/cdk/outline';
|
13
|
+
import * as i3$1 from '@acorex/components/decorators';
|
14
|
+
import { AXDecoratorModule } from '@acorex/components/decorators';
|
15
|
+
import * as i2 from '@acorex/components/side-menu';
|
16
|
+
import { AXSideMenuModule } from '@acorex/components/side-menu';
|
17
|
+
import * as i5$1 from '@acorex/core/format';
|
18
|
+
import { AXFormatModule } from '@acorex/core/format';
|
19
|
+
import * as i6 from '@acorex/core/translation';
|
20
|
+
import { AXTranslationModule, AXTranslationService } from '@acorex/core/translation';
|
21
|
+
import { AXPPageLayoutBaseComponent, AXPPageLayoutComponent, AXPPageLayoutBase } from '@acorex/platform/layout/views';
|
22
|
+
import * as i5 from '@angular/common';
|
23
|
+
import { CommonModule } from '@angular/common';
|
24
|
+
import { AXSafePipe } from '@acorex/core/pipes';
|
25
|
+
import { AXPopupService } from '@acorex/components/popup';
|
26
|
+
import { AXPPlatformScope, AXPAppStartUpService, objectKeyValueTransforms } from '@acorex/platform/core';
|
27
|
+
import * as i4 from '@acorex/components/button';
|
28
|
+
import { AXButtonModule } from '@acorex/components/button';
|
29
|
+
import * as i2$1 from '@acorex/components/check-box';
|
30
|
+
import { AXCheckBoxModule } from '@acorex/components/check-box';
|
31
|
+
import * as i1 from '@acorex/components/label';
|
32
|
+
import { AXLabelModule } from '@acorex/components/label';
|
33
|
+
import { AXBasePageComponent } from '@acorex/components/page';
|
34
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
35
|
+
import { AXPWidgetsList } from '@acorex/modules/common';
|
36
|
+
import { AXPSessionService } from '@acorex/platform/auth';
|
37
|
+
import { AXDialogService } from '@acorex/components/dialog';
|
38
|
+
import { SwUpdate } from '@angular/service-worker';
|
39
|
+
import { firstValueFrom } from 'rxjs';
|
40
|
+
import { AXCalendarService } from '@acorex/core/date-time';
|
41
|
+
|
42
|
+
const config = {
|
43
|
+
i18n: 'platform-management',
|
44
|
+
};
|
45
|
+
const RootConfig = {
|
46
|
+
config,
|
47
|
+
module: {
|
48
|
+
route: 'platform-management',
|
49
|
+
name: 'PlatformManagement',
|
50
|
+
title: `t('platformManagement', {scope:"${config.i18n}"})`,
|
51
|
+
icon: 'fa-light fa-cogs',
|
52
|
+
},
|
53
|
+
entities: {
|
54
|
+
glossary: {
|
55
|
+
name: 'Glossary',
|
56
|
+
title: `t("glossary.individual-title", { scope: "${config.i18n}" })`,
|
57
|
+
titlePlural: `t("glossary.plural-title", { scope: "${config.i18n}" })`,
|
58
|
+
icon: 'fa-light fa-file',
|
59
|
+
},
|
60
|
+
localizationManagement: {
|
61
|
+
name: 'Localization Management',
|
62
|
+
title: `t("localization-management", {scope:"${config.i18n}"})`,
|
63
|
+
icon: 'fa-light fa-globe',
|
64
|
+
},
|
65
|
+
globalVariable: {
|
66
|
+
name: 'GlobalVariables',
|
67
|
+
title: `t("variables", {scope:"${config.i18n}"})`,
|
68
|
+
icon: 'fa-light fa-object-exclude',
|
69
|
+
},
|
70
|
+
appVersion: {
|
71
|
+
name: 'app-version',
|
72
|
+
title: `t("appVersion", {scope:"${config.i18n}"})`,
|
73
|
+
titlePlural: `t("appVersionPlural", {scope:"${config.i18n}"})`,
|
74
|
+
icon: 'fa-light fa-code-branch',
|
75
|
+
},
|
76
|
+
appTerm: {
|
77
|
+
name: 'app-term',
|
78
|
+
title: `t("app-term.individual-title", {scope:"${config.i18n}"})`,
|
79
|
+
titlePlural: `t("app-term.plural-title", {scope:"${config.i18n}"})`,
|
80
|
+
pageTitle: `t("app-term.page-title", {scope:"${config.i18n}"})`,
|
81
|
+
pageDescription: `t("app-term.page-description", {scope:"${config.i18n}"})`,
|
82
|
+
icon: 'fa-light fa-scale-balanced',
|
83
|
+
},
|
84
|
+
metaDataDefinitionCategory: {
|
85
|
+
name: 'MetaDataDefinitionCategory',
|
86
|
+
title: `t("MetaDataDefinitionCategory", {scope:"${config.i18n}"})`,
|
87
|
+
titlePlural: `t("MetaDataDefinitionCategoryPlural", {scope:"${config.i18n}"})`,
|
88
|
+
icon: 'fa-light fa-list',
|
89
|
+
},
|
90
|
+
metaDataDefinition: {
|
91
|
+
name: 'MetaDataDefinition',
|
92
|
+
title: `t("metaDataDefinition", {scope:"${config.i18n}"})`,
|
93
|
+
titlePlural: `t("metaDataDefinitionPlural", {scope:"${config.i18n}"})`,
|
94
|
+
icon: 'fa-light fa-server',
|
95
|
+
},
|
96
|
+
},
|
97
|
+
};
|
98
|
+
|
99
|
+
class AXMAppTermService extends AXMEntityCrudServiceImpl {
|
100
|
+
}
|
101
|
+
class AXMAppTermServiceImpl extends AXMEntityCrudServiceImpl {
|
102
|
+
constructor() {
|
103
|
+
super(`${RootConfig.module.name}.${RootConfig.entities.appTerm.name}`);
|
104
|
+
}
|
105
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMAppTermServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
106
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMAppTermServiceImpl }); }
|
107
|
+
}
|
108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMAppTermServiceImpl, decorators: [{
|
109
|
+
type: Injectable
|
110
|
+
}], ctorParameters: () => [] });
|
111
|
+
|
112
|
+
async function appTermEntityEntityFactory(injector) {
|
113
|
+
const dataService = injector.get(AXMAppTermService);
|
114
|
+
const i18n = RootConfig.config.i18n;
|
115
|
+
const entityDef = {
|
116
|
+
module: RootConfig.module.name,
|
117
|
+
name: RootConfig.entities.appTerm.name,
|
118
|
+
source: '',
|
119
|
+
title: RootConfig.entities.appTerm.title,
|
120
|
+
formats: {
|
121
|
+
individual: RootConfig.entities.appTerm.title,
|
122
|
+
plural: RootConfig.entities.appTerm.titlePlural,
|
123
|
+
searchResult: {
|
124
|
+
title: '{{ title }}',
|
125
|
+
description: RootConfig.module.title,
|
126
|
+
},
|
127
|
+
},
|
128
|
+
relatedEntities: [],
|
129
|
+
groups: [
|
130
|
+
{
|
131
|
+
id: 'section',
|
132
|
+
title: RootConfig.entities.appTerm.title,
|
133
|
+
},
|
134
|
+
],
|
135
|
+
properties: [
|
136
|
+
{
|
137
|
+
name: 'type',
|
138
|
+
title: `t("type", { scope: "common" })`,
|
139
|
+
groupId: 'section',
|
140
|
+
schema: {
|
141
|
+
dataType: 'string',
|
142
|
+
interface: {
|
143
|
+
type: AXPWidgetsCatalog.text,
|
144
|
+
},
|
145
|
+
},
|
146
|
+
validations: [
|
147
|
+
{
|
148
|
+
rule: 'required',
|
149
|
+
},
|
150
|
+
],
|
151
|
+
},
|
152
|
+
{
|
153
|
+
name: 'title',
|
154
|
+
title: `t("title", { scope: "common" })`,
|
155
|
+
groupId: 'section',
|
156
|
+
schema: {
|
157
|
+
dataType: 'string',
|
158
|
+
interface: {
|
159
|
+
type: AXPWidgetsCatalog.text,
|
160
|
+
},
|
161
|
+
},
|
162
|
+
options: {
|
163
|
+
filter: {
|
164
|
+
advance: {
|
165
|
+
enabled: true,
|
166
|
+
},
|
167
|
+
inline: {
|
168
|
+
enabled: true,
|
169
|
+
},
|
170
|
+
},
|
171
|
+
sort: {
|
172
|
+
enabled: true,
|
173
|
+
},
|
174
|
+
},
|
175
|
+
validations: [
|
176
|
+
{
|
177
|
+
rule: 'required',
|
178
|
+
},
|
179
|
+
],
|
180
|
+
},
|
181
|
+
{
|
182
|
+
name: 'content',
|
183
|
+
title: `t("content", { scope: "${i18n}" })`,
|
184
|
+
groupId: 'section',
|
185
|
+
schema: {
|
186
|
+
dataType: 'string',
|
187
|
+
interface: {
|
188
|
+
type: AXPWidgetsCatalog.richText,
|
189
|
+
options: {
|
190
|
+
minLineCount: 5,
|
191
|
+
maxLineCount: 17,
|
192
|
+
isFitLine: true,
|
193
|
+
},
|
194
|
+
},
|
195
|
+
},
|
196
|
+
validations: [
|
197
|
+
{
|
198
|
+
rule: 'required',
|
199
|
+
},
|
200
|
+
],
|
201
|
+
},
|
202
|
+
{
|
203
|
+
name: 'version',
|
204
|
+
title: `t("version", { scope: "${i18n}" })`,
|
205
|
+
groupId: 'section',
|
206
|
+
schema: {
|
207
|
+
dataType: 'number',
|
208
|
+
interface: {
|
209
|
+
type: AXPWidgetsCatalog.number,
|
210
|
+
},
|
211
|
+
},
|
212
|
+
options: {
|
213
|
+
filter: {
|
214
|
+
advance: {
|
215
|
+
enabled: true,
|
216
|
+
},
|
217
|
+
},
|
218
|
+
sort: {
|
219
|
+
enabled: true,
|
220
|
+
},
|
221
|
+
},
|
222
|
+
validations: [
|
223
|
+
{
|
224
|
+
rule: 'required',
|
225
|
+
},
|
226
|
+
],
|
227
|
+
},
|
228
|
+
{
|
229
|
+
name: 'effectiveDate',
|
230
|
+
title: `t("effectiveDate", { scope: "${i18n}" })`,
|
231
|
+
groupId: 'section',
|
232
|
+
schema: {
|
233
|
+
dataType: 'dateTime',
|
234
|
+
interface: {
|
235
|
+
type: AXPWidgetsCatalog.dateTime,
|
236
|
+
},
|
237
|
+
},
|
238
|
+
options: {
|
239
|
+
filter: {
|
240
|
+
advance: {
|
241
|
+
enabled: true,
|
242
|
+
},
|
243
|
+
},
|
244
|
+
sort: {
|
245
|
+
enabled: true,
|
246
|
+
},
|
247
|
+
},
|
248
|
+
validations: [
|
249
|
+
{
|
250
|
+
rule: 'required',
|
251
|
+
},
|
252
|
+
],
|
253
|
+
},
|
254
|
+
],
|
255
|
+
columns: [{ name: 'title' }, { name: 'content' }, { name: 'version' }, { name: 'effectiveDate' }],
|
256
|
+
commands: {
|
257
|
+
create: {
|
258
|
+
execute: async (data) => {
|
259
|
+
return Promise.resolve({ id: await dataService.insertOne(data) });
|
260
|
+
},
|
261
|
+
},
|
262
|
+
delete: {
|
263
|
+
execute: async (id) => {
|
264
|
+
await await dataService.deleteOne(id);
|
265
|
+
return Promise.resolve();
|
266
|
+
},
|
267
|
+
},
|
268
|
+
update: {
|
269
|
+
execute: async (data) => {
|
270
|
+
return new Promise((resolve) => {
|
271
|
+
setTimeout(async () => {
|
272
|
+
await dataService.updateOne(data.id, data);
|
273
|
+
resolve(data);
|
274
|
+
}, 1000);
|
275
|
+
});
|
276
|
+
},
|
277
|
+
},
|
278
|
+
},
|
279
|
+
queries: {
|
280
|
+
byKey: {
|
281
|
+
execute: async (id) => {
|
282
|
+
return new Promise((resolve) => {
|
283
|
+
setTimeout(async () => {
|
284
|
+
const entity = await dataService.getOne(id);
|
285
|
+
resolve(entity);
|
286
|
+
}, 500);
|
287
|
+
});
|
288
|
+
},
|
289
|
+
type: AXPEntityQueryType.Single,
|
290
|
+
},
|
291
|
+
list: {
|
292
|
+
execute: async (e) => {
|
293
|
+
const x = await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
|
294
|
+
return x;
|
295
|
+
},
|
296
|
+
type: AXPEntityQueryType.List,
|
297
|
+
},
|
298
|
+
},
|
299
|
+
interfaces: {
|
300
|
+
master: {
|
301
|
+
create: {
|
302
|
+
sections: [
|
303
|
+
{
|
304
|
+
id: 'section',
|
305
|
+
},
|
306
|
+
],
|
307
|
+
properties: [
|
308
|
+
{
|
309
|
+
name: 'title',
|
310
|
+
layout: {
|
311
|
+
positions: {
|
312
|
+
lg: {
|
313
|
+
colSpan: 12,
|
314
|
+
order: 1,
|
315
|
+
},
|
316
|
+
},
|
317
|
+
},
|
318
|
+
},
|
319
|
+
{
|
320
|
+
name: 'type',
|
321
|
+
layout: {
|
322
|
+
positions: {
|
323
|
+
lg: {
|
324
|
+
colSpan: 4,
|
325
|
+
order: 2,
|
326
|
+
},
|
327
|
+
},
|
328
|
+
},
|
329
|
+
},
|
330
|
+
{
|
331
|
+
name: 'version',
|
332
|
+
layout: {
|
333
|
+
positions: {
|
334
|
+
lg: {
|
335
|
+
colSpan: 4,
|
336
|
+
order: 3,
|
337
|
+
},
|
338
|
+
},
|
339
|
+
},
|
340
|
+
},
|
341
|
+
{
|
342
|
+
name: 'content',
|
343
|
+
layout: {
|
344
|
+
positions: {
|
345
|
+
lg: {
|
346
|
+
colSpan: 12,
|
347
|
+
order: 10,
|
348
|
+
},
|
349
|
+
},
|
350
|
+
},
|
351
|
+
},
|
352
|
+
{
|
353
|
+
name: 'effectiveDate',
|
354
|
+
layout: {
|
355
|
+
positions: {
|
356
|
+
lg: {
|
357
|
+
colSpan: 4,
|
358
|
+
order: 4,
|
359
|
+
},
|
360
|
+
},
|
361
|
+
},
|
362
|
+
},
|
363
|
+
],
|
364
|
+
},
|
365
|
+
update: {
|
366
|
+
sections: [
|
367
|
+
{
|
368
|
+
id: 'section',
|
369
|
+
},
|
370
|
+
],
|
371
|
+
properties: [
|
372
|
+
{
|
373
|
+
name: 'title',
|
374
|
+
layout: {
|
375
|
+
positions: {
|
376
|
+
lg: {
|
377
|
+
colSpan: 12,
|
378
|
+
order: 1,
|
379
|
+
},
|
380
|
+
},
|
381
|
+
},
|
382
|
+
},
|
383
|
+
{
|
384
|
+
name: 'type',
|
385
|
+
layout: {
|
386
|
+
positions: {
|
387
|
+
lg: {
|
388
|
+
colSpan: 4,
|
389
|
+
order: 2,
|
390
|
+
},
|
391
|
+
},
|
392
|
+
},
|
393
|
+
},
|
394
|
+
{
|
395
|
+
name: 'version',
|
396
|
+
layout: {
|
397
|
+
positions: {
|
398
|
+
lg: {
|
399
|
+
colSpan: 4,
|
400
|
+
order: 3,
|
401
|
+
},
|
402
|
+
},
|
403
|
+
},
|
404
|
+
},
|
405
|
+
{
|
406
|
+
name: 'content',
|
407
|
+
layout: {
|
408
|
+
positions: {
|
409
|
+
lg: {
|
410
|
+
colSpan: 12,
|
411
|
+
order: 10,
|
412
|
+
},
|
413
|
+
},
|
414
|
+
},
|
415
|
+
},
|
416
|
+
{
|
417
|
+
name: 'effectiveDate',
|
418
|
+
layout: {
|
419
|
+
positions: {
|
420
|
+
lg: {
|
421
|
+
colSpan: 4,
|
422
|
+
order: 4,
|
423
|
+
},
|
424
|
+
},
|
425
|
+
},
|
426
|
+
},
|
427
|
+
],
|
428
|
+
},
|
429
|
+
single: {
|
430
|
+
title: '{{title}}',
|
431
|
+
sections: [
|
432
|
+
{
|
433
|
+
id: 'section',
|
434
|
+
},
|
435
|
+
],
|
436
|
+
properties: [
|
437
|
+
{
|
438
|
+
name: 'title',
|
439
|
+
layout: {
|
440
|
+
positions: {
|
441
|
+
lg: {
|
442
|
+
colSpan: 6,
|
443
|
+
order: 1,
|
444
|
+
},
|
445
|
+
},
|
446
|
+
},
|
447
|
+
},
|
448
|
+
{
|
449
|
+
name: 'type',
|
450
|
+
layout: {
|
451
|
+
positions: {
|
452
|
+
lg: {
|
453
|
+
colSpan: 6,
|
454
|
+
order: 2,
|
455
|
+
},
|
456
|
+
},
|
457
|
+
},
|
458
|
+
},
|
459
|
+
{
|
460
|
+
name: 'version',
|
461
|
+
layout: {
|
462
|
+
positions: {
|
463
|
+
lg: {
|
464
|
+
colSpan: 6,
|
465
|
+
order: 3,
|
466
|
+
},
|
467
|
+
},
|
468
|
+
},
|
469
|
+
},
|
470
|
+
{
|
471
|
+
name: 'content',
|
472
|
+
layout: {
|
473
|
+
positions: {
|
474
|
+
lg: {
|
475
|
+
colSpan: 12,
|
476
|
+
order: 10,
|
477
|
+
},
|
478
|
+
},
|
479
|
+
},
|
480
|
+
},
|
481
|
+
{
|
482
|
+
name: 'effectiveDate',
|
483
|
+
layout: {
|
484
|
+
positions: {
|
485
|
+
lg: {
|
486
|
+
colSpan: 6,
|
487
|
+
order: 4,
|
488
|
+
},
|
489
|
+
},
|
490
|
+
},
|
491
|
+
},
|
492
|
+
],
|
493
|
+
actions: [],
|
494
|
+
},
|
495
|
+
list: {
|
496
|
+
actions: [
|
497
|
+
{
|
498
|
+
title: 'Create New',
|
499
|
+
command: 'create-entity',
|
500
|
+
priority: 'primary',
|
501
|
+
type: 'create',
|
502
|
+
scope: AXPEntityCommandScope.TypeLevel,
|
503
|
+
},
|
504
|
+
{
|
505
|
+
title: 'Delete Items',
|
506
|
+
command: 'delete-entity',
|
507
|
+
priority: 'primary',
|
508
|
+
type: 'delete',
|
509
|
+
scope: AXPEntityCommandScope.Selected,
|
510
|
+
},
|
511
|
+
{
|
512
|
+
title: 'Details',
|
513
|
+
command: 'open-entity',
|
514
|
+
priority: 'secondary',
|
515
|
+
type: 'view',
|
516
|
+
scope: AXPEntityCommandScope.Individual,
|
517
|
+
},
|
518
|
+
{
|
519
|
+
title: 'Delete',
|
520
|
+
command: 'delete-entity',
|
521
|
+
priority: 'secondary',
|
522
|
+
type: 'delete',
|
523
|
+
scope: AXPEntityCommandScope.Individual,
|
524
|
+
},
|
525
|
+
],
|
526
|
+
views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
|
527
|
+
},
|
528
|
+
},
|
529
|
+
},
|
530
|
+
};
|
531
|
+
return entityDef;
|
532
|
+
}
|
533
|
+
|
534
|
+
class AXMListTermsComponent extends AXPPageLayoutBaseComponent {
|
535
|
+
constructor() {
|
536
|
+
super(...arguments);
|
537
|
+
this.service = inject(AXMAppTermService);
|
538
|
+
this.terms = [];
|
539
|
+
this.loaded = signal(false, ...(ngDevMode ? [{ debugName: "loaded" }] : []));
|
540
|
+
this.showScrollSide = signal(true, ...(ngDevMode ? [{ debugName: "showScrollSide" }] : []));
|
541
|
+
}
|
542
|
+
ngAfterViewInit() {
|
543
|
+
this.checkScroll();
|
544
|
+
}
|
545
|
+
onResize() {
|
546
|
+
this.checkScroll();
|
547
|
+
}
|
548
|
+
checkScroll() {
|
549
|
+
const contentElement = document.getElementById('contentDiv');
|
550
|
+
if (contentElement != null) {
|
551
|
+
this.showScrollSide.set(contentElement.offsetHeight > window.innerHeight - 140);
|
552
|
+
}
|
553
|
+
}
|
554
|
+
async ngOnInit() {
|
555
|
+
super.ngOnInit();
|
556
|
+
const result = await this.service.query({
|
557
|
+
skip: 0,
|
558
|
+
take: 1000,
|
559
|
+
});
|
560
|
+
this.terms = result.items.map((term) => {
|
561
|
+
return {
|
562
|
+
...term,
|
563
|
+
content: term.content.replace(/\n/g, "<br>"),
|
564
|
+
};
|
565
|
+
});
|
566
|
+
this.loaded.set(true);
|
567
|
+
setTimeout(() => this.checkScroll(), 50);
|
568
|
+
}
|
569
|
+
getPageTitle() {
|
570
|
+
return RootConfig.entities.appTerm.pageTitle;
|
571
|
+
}
|
572
|
+
getPageDescription() {
|
573
|
+
return RootConfig.entities.appTerm.pageDescription;
|
574
|
+
}
|
575
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMListTermsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
576
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.3", type: AXMListTermsComponent, isStandalone: true, selector: "ng-component", host: { listeners: { "window:resize": "onResize($event)" } }, providers: [
|
577
|
+
{
|
578
|
+
provide: AXPPageLayoutBase,
|
579
|
+
useExisting: AXMListTermsComponent,
|
580
|
+
},
|
581
|
+
], usesInheritance: true, ngImport: i0, template: "<axp-page-layout *translate=\"let t\">\n @if(loaded()){\n <axp-page-content id=\"contentDiv\" axOutlineContainer target=\"h2\" [scrollableElementId]=\"'axp-page-layout'\"\n [activationOffset]=\"120\" class=\"ax-flex ax-flex-row\">\n <div class=\"ax-flex ax-flex-col\">\n @for (term of terms; track term.id) {\n <div class=\"ax-flex ax-flex-col\">\n <h2 class=\"ax-px-4 ax-font-semibold ax-text-xl\">{{ term.title }}</h2>\n <p class=\"ax-px-4 ax-text-sm ax-leading-5 ax-opacity-65\">\n {{ term.effectiveDate | format : 'datetime' | async }}\n </p>\n <div class=\"ax-pt-3 ax-pb-6 ax-px-4 ax-text-base/6\" [innerHTML]=\"term.content | safe:'html'\"></div>\n </div>\n }\n </div>\n @if(showScrollSide()){\n <div class=\"ax-hidden lg:ax-block ax-min-w-60\">\n <ax-side-menu axOutlineSideMenu look=\"with-line\" class=\"ax-w-full ax-sticky ax-top-24\"></ax-side-menu>\n </div>\n }\n </axp-page-content>\n }\n</axp-page-layout>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "ngmodule", type: AXFormatModule }, { kind: "component", type: AXPThemeLayoutBlockComponent, selector: " axp-page-content, axp-page-footer-container, axp-page-footer, axp-page-header, axp-page-header-container, axp-page-toolbar, axp-layout-content, axp-layout-page-content, axp-layout-sections, axp-layout-body, axp-layout-page-body, axp-layout-prefix, axp-layout-suffix, axp-layout-title-bar, axp-layout-title, axp-layout-title-actions, axp-layout-nav-button, axp-layout-description, axp-layout-breadcrumbs, axp-layout-list-action, " }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i6.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: AXSideMenuModule }, { kind: "component", type: i2.AXSideMenuComponent, selector: "ax-side-menu", inputs: ["items", "look", "location"], outputs: ["itemsChange"] }, { kind: "directive", type: i2.AXOutlineSideMenuDirective, selector: "[axOutlineSideMenu]", exportAs: ["axOutlineSideMenu"] }, { kind: "ngmodule", type: AXOutlineModule }, { kind: "directive", type: i3.AXOutlineContainerDirective, selector: "[axOutlineContainer]", inputs: ["target", "smoothScroll", "showHashItem", "activationOffset", "copyUrlOnClick", "activateLastAtBottom", "scrollableElementId"], exportAs: ["axOutlineContainer"] }, { kind: "component", type: AXPPageLayoutComponent, selector: "axp-page-layout" }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }, { kind: "pipe", type: i5$1.AXFormatPipe, name: "format" }, { kind: "pipe", type: AXSafePipe, name: "safe" }] }); }
|
582
|
+
}
|
583
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMListTermsComponent, decorators: [{
|
584
|
+
type: Component,
|
585
|
+
args: [{ imports: [
|
586
|
+
CommonModule,
|
587
|
+
AXDecoratorModule,
|
588
|
+
AXFormatModule,
|
589
|
+
AXPThemeLayoutBlockComponent,
|
590
|
+
AXTranslationModule,
|
591
|
+
AXSideMenuModule,
|
592
|
+
AXOutlineModule,
|
593
|
+
AXPPageLayoutComponent,
|
594
|
+
AXSafePipe
|
595
|
+
], providers: [
|
596
|
+
{
|
597
|
+
provide: AXPPageLayoutBase,
|
598
|
+
useExisting: AXMListTermsComponent,
|
599
|
+
},
|
600
|
+
], template: "<axp-page-layout *translate=\"let t\">\n @if(loaded()){\n <axp-page-content id=\"contentDiv\" axOutlineContainer target=\"h2\" [scrollableElementId]=\"'axp-page-layout'\"\n [activationOffset]=\"120\" class=\"ax-flex ax-flex-row\">\n <div class=\"ax-flex ax-flex-col\">\n @for (term of terms; track term.id) {\n <div class=\"ax-flex ax-flex-col\">\n <h2 class=\"ax-px-4 ax-font-semibold ax-text-xl\">{{ term.title }}</h2>\n <p class=\"ax-px-4 ax-text-sm ax-leading-5 ax-opacity-65\">\n {{ term.effectiveDate | format : 'datetime' | async }}\n </p>\n <div class=\"ax-pt-3 ax-pb-6 ax-px-4 ax-text-base/6\" [innerHTML]=\"term.content | safe:'html'\"></div>\n </div>\n }\n </div>\n @if(showScrollSide()){\n <div class=\"ax-hidden lg:ax-block ax-min-w-60\">\n <ax-side-menu axOutlineSideMenu look=\"with-line\" class=\"ax-w-full ax-sticky ax-top-24\"></ax-side-menu>\n </div>\n }\n </axp-page-content>\n }\n</axp-page-layout>" }]
|
601
|
+
}], propDecorators: { onResize: [{
|
602
|
+
type: HostListener,
|
603
|
+
args: ['window:resize', ['$event']]
|
604
|
+
}] } });
|
605
|
+
|
606
|
+
var listTerms_component = /*#__PURE__*/Object.freeze({
|
607
|
+
__proto__: null,
|
608
|
+
AXMListTermsComponent: AXMListTermsComponent
|
609
|
+
});
|
610
|
+
|
611
|
+
class AXMNotifyAppTermComponent extends AXBasePageComponent {
|
612
|
+
constructor() {
|
613
|
+
super(...arguments);
|
614
|
+
this.isConfirm = false;
|
615
|
+
this.i18n = RootConfig.config.i18n;
|
616
|
+
}
|
617
|
+
transformContent(content) {
|
618
|
+
return content.replace(/\n/g, '<br>');
|
619
|
+
}
|
620
|
+
send() {
|
621
|
+
this.close({ data: this.data });
|
622
|
+
}
|
623
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMNotifyAppTermComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
624
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.3", type: AXMNotifyAppTermComponent, isStandalone: true, selector: "axm-notify-app", usesInheritance: true, ngImport: i0, template: "@for (item of data; track $index) {\n<ax-content class=\"ax-block ax-px-4 ax-py-4 ax-font-bold\">{{ item.title }}</ax-content>\n<ax-content class=\"ax-block ax-px-4 ax-pb-4 ax-text-base/6\" [innerHTML]=\"transformContent(item.content) | safe : 'html'\"></ax-content>\n}\n<ax-footer class=\"ax-flex ax-items-center ax-justify-between ax-p-2\">\n <ax-check-box [(value)]=\"isConfirm\">\n <ax-label>{{ 'agreeTerm' | translate : { scope: i18n } | async }}</ax-label>\n </ax-check-box>\n <ax-button (click)=\"send()\" [text]=\"'okay' | translate | async\" [disabled]=\"!isConfirm\" color=\"primary\"></ax-button>\n</ax-footer>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i1.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "component", type: i2$1.AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "tabIndex", "readonly", "color", "value", "name", "id", "checked", "isLoading", "indeterminate"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i4.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AXSafePipe, name: "safe" }] }); }
|
625
|
+
}
|
626
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMNotifyAppTermComponent, decorators: [{
|
627
|
+
type: Component,
|
628
|
+
args: [{ selector: 'axm-notify-app', imports: [
|
629
|
+
CommonModule,
|
630
|
+
AXLabelModule,
|
631
|
+
AXCheckBoxModule,
|
632
|
+
AXDecoratorModule,
|
633
|
+
AXButtonModule,
|
634
|
+
AXTranslationModule,
|
635
|
+
AXSafePipe,
|
636
|
+
], template: "@for (item of data; track $index) {\n<ax-content class=\"ax-block ax-px-4 ax-py-4 ax-font-bold\">{{ item.title }}</ax-content>\n<ax-content class=\"ax-block ax-px-4 ax-pb-4 ax-text-base/6\" [innerHTML]=\"transformContent(item.content) | safe : 'html'\"></ax-content>\n}\n<ax-footer class=\"ax-flex ax-items-center ax-justify-between ax-p-2\">\n <ax-check-box [(value)]=\"isConfirm\">\n <ax-label>{{ 'agreeTerm' | translate : { scope: i18n } | async }}</ax-label>\n </ax-check-box>\n <ax-button (click)=\"send()\" [text]=\"'okay' | translate | async\" [disabled]=\"!isConfirm\" color=\"primary\"></ax-button>\n</ax-footer>" }]
|
637
|
+
}] });
|
638
|
+
|
639
|
+
class AXMNotifyNewTermPopupAction extends AXPWorkflowAction {
|
640
|
+
constructor() {
|
641
|
+
super(...arguments);
|
642
|
+
this.popupService = inject(AXPopupService);
|
643
|
+
}
|
644
|
+
async execute(context) {
|
645
|
+
const data = context.getVariable();
|
646
|
+
await this.popupService.open(AXMNotifyAppTermComponent, {
|
647
|
+
title: 'New Terms And Conditions',
|
648
|
+
data: { data },
|
649
|
+
closeButton: false,
|
650
|
+
});
|
651
|
+
}
|
652
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMNotifyNewTermPopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
653
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMNotifyNewTermPopupAction }); }
|
654
|
+
}
|
655
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMNotifyNewTermPopupAction, decorators: [{
|
656
|
+
type: Injectable
|
657
|
+
}] });
|
658
|
+
class AXMTermUpdateSettingAction extends AXPWorkflowAction {
|
659
|
+
constructor() {
|
660
|
+
super(...arguments);
|
661
|
+
this.settingService = inject(AXPSettingService);
|
662
|
+
}
|
663
|
+
async execute(context) {
|
664
|
+
const dataList = context.getVariable();
|
665
|
+
for (const data of dataList) {
|
666
|
+
await this.settingService.scope(AXPPlatformScope.User).set(`is-confirm-term-${data.id}`, true);
|
667
|
+
}
|
668
|
+
}
|
669
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMTermUpdateSettingAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
670
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMTermUpdateSettingAction }); }
|
671
|
+
}
|
672
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMTermUpdateSettingAction, decorators: [{
|
673
|
+
type: Injectable
|
674
|
+
}] });
|
675
|
+
const AXMNewTermWorkflow = {
|
676
|
+
startStepId: 'show-popup',
|
677
|
+
steps: {
|
678
|
+
'show-popup': {
|
679
|
+
action: 'AXMNotifyNewTermPopupAction',
|
680
|
+
nextSteps: [
|
681
|
+
{
|
682
|
+
conditions: [],
|
683
|
+
nextStepId: 'first-time-add-to-setting',
|
684
|
+
},
|
685
|
+
],
|
686
|
+
},
|
687
|
+
'first-time-add-to-setting': {
|
688
|
+
action: 'AXMTermUpdateSettingAction',
|
689
|
+
},
|
690
|
+
},
|
691
|
+
};
|
692
|
+
|
693
|
+
class AXMAppVersionService extends AXMEntityCrudServiceImpl {
|
694
|
+
}
|
695
|
+
class AXMAppVersionServiceImpl extends AXMEntityCrudServiceImpl {
|
696
|
+
constructor() {
|
697
|
+
super(`${RootConfig.module.name}.${RootConfig.entities.appVersion.name}`);
|
698
|
+
}
|
699
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMAppVersionServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
700
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMAppVersionServiceImpl }); }
|
701
|
+
}
|
702
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMAppVersionServiceImpl, decorators: [{
|
703
|
+
type: Injectable
|
704
|
+
}], ctorParameters: () => [] });
|
705
|
+
|
706
|
+
async function appVersionEntityEntityFactory(injector) {
|
707
|
+
const dataService = injector.get(AXMAppVersionService);
|
708
|
+
const i18n = RootConfig.config.i18n;
|
709
|
+
const entityDef = {
|
710
|
+
module: RootConfig.module.name,
|
711
|
+
name: RootConfig.entities.appVersion.name,
|
712
|
+
source: '',
|
713
|
+
title: RootConfig.entities.appVersion.title,
|
714
|
+
formats: {
|
715
|
+
individual: RootConfig.entities.appVersion.title,
|
716
|
+
plural: RootConfig.entities.appVersion.title,
|
717
|
+
searchResult: {
|
718
|
+
title: '{{ versionNumber }}',
|
719
|
+
description: RootConfig.module.title,
|
720
|
+
},
|
721
|
+
},
|
722
|
+
relatedEntities: [],
|
723
|
+
groups: [
|
724
|
+
{
|
725
|
+
id: 'section',
|
726
|
+
title: RootConfig.entities.appVersion.title,
|
727
|
+
},
|
728
|
+
],
|
729
|
+
properties: [
|
730
|
+
{
|
731
|
+
name: 'versionNumber',
|
732
|
+
title: `t("versionNumber", { scope: "${i18n}" })`,
|
733
|
+
groupId: 'section',
|
734
|
+
schema: {
|
735
|
+
dataType: 'string',
|
736
|
+
interface: {
|
737
|
+
type: AXPWidgetsCatalog.text,
|
738
|
+
},
|
739
|
+
},
|
740
|
+
options: {
|
741
|
+
filter: {
|
742
|
+
advance: {
|
743
|
+
enabled: true,
|
744
|
+
},
|
745
|
+
inline: {
|
746
|
+
enabled: true,
|
747
|
+
},
|
748
|
+
},
|
749
|
+
sort: {
|
750
|
+
enabled: true,
|
751
|
+
},
|
752
|
+
},
|
753
|
+
validations: [
|
754
|
+
{
|
755
|
+
rule: 'required',
|
756
|
+
},
|
757
|
+
],
|
758
|
+
},
|
759
|
+
{
|
760
|
+
name: 'changeLog',
|
761
|
+
title: `t("changeLogs", { scope: "${i18n}" })`,
|
762
|
+
groupId: 'section',
|
763
|
+
schema: {
|
764
|
+
dataType: 'string',
|
765
|
+
interface: {
|
766
|
+
type: AXPWidgetsCatalog.richText,
|
767
|
+
options: {
|
768
|
+
minLineCount: 5,
|
769
|
+
maxLineCount: 17,
|
770
|
+
isFitLine: true,
|
771
|
+
},
|
772
|
+
},
|
773
|
+
},
|
774
|
+
validations: [
|
775
|
+
{
|
776
|
+
rule: 'required',
|
777
|
+
},
|
778
|
+
],
|
779
|
+
},
|
780
|
+
{
|
781
|
+
name: 'publishDate',
|
782
|
+
title: `t("publishDate", { scope: "${i18n}" })`,
|
783
|
+
groupId: 'section',
|
784
|
+
schema: {
|
785
|
+
dataType: 'dateTime',
|
786
|
+
interface: {
|
787
|
+
type: AXPWidgetsCatalog.dateTime,
|
788
|
+
},
|
789
|
+
},
|
790
|
+
options: {
|
791
|
+
filter: {
|
792
|
+
advance: {
|
793
|
+
enabled: true,
|
794
|
+
},
|
795
|
+
},
|
796
|
+
sort: {
|
797
|
+
enabled: true,
|
798
|
+
},
|
799
|
+
},
|
800
|
+
validations: [
|
801
|
+
{
|
802
|
+
rule: 'required',
|
803
|
+
},
|
804
|
+
],
|
805
|
+
},
|
806
|
+
{
|
807
|
+
name: 'showFirstTimePopup',
|
808
|
+
title: `t("notifyUser", { scope: "${i18n}" })`,
|
809
|
+
groupId: 'section',
|
810
|
+
schema: {
|
811
|
+
dataType: 'boolean',
|
812
|
+
interface: {
|
813
|
+
type: AXPWidgetsCatalog.checkbox,
|
814
|
+
},
|
815
|
+
},
|
816
|
+
},
|
817
|
+
],
|
818
|
+
columns: [
|
819
|
+
{ name: 'versionNumber' },
|
820
|
+
{ name: 'changeLog' },
|
821
|
+
{ name: 'publishDate' },
|
822
|
+
{ name: 'showFirstTimePopup' },
|
823
|
+
],
|
824
|
+
commands: {
|
825
|
+
create: {
|
826
|
+
execute: async (data) => {
|
827
|
+
return Promise.resolve({ id: await dataService.insertOne(data) });
|
828
|
+
},
|
829
|
+
},
|
830
|
+
delete: {
|
831
|
+
execute: async (id) => {
|
832
|
+
await await dataService.deleteOne(id);
|
833
|
+
return Promise.resolve();
|
834
|
+
},
|
835
|
+
},
|
836
|
+
update: {
|
837
|
+
execute: async (data) => {
|
838
|
+
return new Promise((resolve) => {
|
839
|
+
setTimeout(async () => {
|
840
|
+
await dataService.updateOne(data.id, data);
|
841
|
+
resolve(data);
|
842
|
+
}, 1000);
|
843
|
+
});
|
844
|
+
},
|
845
|
+
},
|
846
|
+
},
|
847
|
+
queries: {
|
848
|
+
byKey: {
|
849
|
+
execute: async (id) => {
|
850
|
+
return new Promise((resolve) => {
|
851
|
+
setTimeout(async () => {
|
852
|
+
const entity = await dataService.getOne(id);
|
853
|
+
resolve(entity);
|
854
|
+
}, 500);
|
855
|
+
});
|
856
|
+
},
|
857
|
+
type: AXPEntityQueryType.Single,
|
858
|
+
},
|
859
|
+
list: {
|
860
|
+
execute: async (e) => {
|
861
|
+
console.log(e);
|
862
|
+
const x = await dataService.query({ skip: e.skip, take: e.take, filter: e.filter, sort: e.sort });
|
863
|
+
return x;
|
864
|
+
},
|
865
|
+
type: AXPEntityQueryType.List,
|
866
|
+
},
|
867
|
+
},
|
868
|
+
interfaces: {
|
869
|
+
master: {
|
870
|
+
create: {
|
871
|
+
sections: [
|
872
|
+
{
|
873
|
+
id: 'section',
|
874
|
+
},
|
875
|
+
],
|
876
|
+
properties: [
|
877
|
+
{
|
878
|
+
name: 'versionNumber',
|
879
|
+
layout: {
|
880
|
+
positions: {
|
881
|
+
lg: {
|
882
|
+
order: 1,
|
883
|
+
colSpan: 4,
|
884
|
+
},
|
885
|
+
},
|
886
|
+
},
|
887
|
+
},
|
888
|
+
{
|
889
|
+
name: 'publishDate',
|
890
|
+
layout: {
|
891
|
+
positions: {
|
892
|
+
lg: {
|
893
|
+
order: 2,
|
894
|
+
colSpan: 4,
|
895
|
+
},
|
896
|
+
},
|
897
|
+
},
|
898
|
+
},
|
899
|
+
{
|
900
|
+
name: 'showFirstTimePopup',
|
901
|
+
layout: {
|
902
|
+
positions: {
|
903
|
+
lg: {
|
904
|
+
colSpan: 4,
|
905
|
+
order: 3,
|
906
|
+
},
|
907
|
+
},
|
908
|
+
},
|
909
|
+
},
|
910
|
+
{
|
911
|
+
name: 'changeLog',
|
912
|
+
layout: {
|
913
|
+
positions: {
|
914
|
+
lg: {
|
915
|
+
order: 10,
|
916
|
+
colSpan: 12,
|
917
|
+
},
|
918
|
+
},
|
919
|
+
},
|
920
|
+
},
|
921
|
+
],
|
922
|
+
},
|
923
|
+
update: {
|
924
|
+
sections: [
|
925
|
+
{
|
926
|
+
id: 'section',
|
927
|
+
},
|
928
|
+
],
|
929
|
+
properties: [
|
930
|
+
{
|
931
|
+
name: 'versionNumber',
|
932
|
+
layout: {
|
933
|
+
positions: {
|
934
|
+
lg: {
|
935
|
+
colSpan: 4,
|
936
|
+
order: 1,
|
937
|
+
},
|
938
|
+
},
|
939
|
+
},
|
940
|
+
},
|
941
|
+
{
|
942
|
+
name: 'publishDate',
|
943
|
+
layout: {
|
944
|
+
positions: {
|
945
|
+
lg: {
|
946
|
+
colSpan: 4,
|
947
|
+
order: 2,
|
948
|
+
},
|
949
|
+
},
|
950
|
+
},
|
951
|
+
},
|
952
|
+
{
|
953
|
+
name: 'showFirstTimePopup',
|
954
|
+
layout: {
|
955
|
+
positions: {
|
956
|
+
lg: {
|
957
|
+
colSpan: 4,
|
958
|
+
order: 3,
|
959
|
+
},
|
960
|
+
},
|
961
|
+
},
|
962
|
+
},
|
963
|
+
{
|
964
|
+
name: 'changeLog',
|
965
|
+
layout: {
|
966
|
+
positions: {
|
967
|
+
lg: {
|
968
|
+
colSpan: 12,
|
969
|
+
order: 4,
|
970
|
+
},
|
971
|
+
},
|
972
|
+
},
|
973
|
+
},
|
974
|
+
],
|
975
|
+
},
|
976
|
+
single: {
|
977
|
+
title: '{{versionNumber}}',
|
978
|
+
sections: [
|
979
|
+
{
|
980
|
+
id: 'section',
|
981
|
+
},
|
982
|
+
],
|
983
|
+
properties: [
|
984
|
+
{
|
985
|
+
name: 'versionNumber',
|
986
|
+
layout: {
|
987
|
+
positions: {
|
988
|
+
lg: {
|
989
|
+
colSpan: 4,
|
990
|
+
},
|
991
|
+
},
|
992
|
+
},
|
993
|
+
},
|
994
|
+
{
|
995
|
+
name: 'publishDate',
|
996
|
+
layout: {
|
997
|
+
positions: {
|
998
|
+
lg: {
|
999
|
+
colSpan: 4,
|
1000
|
+
},
|
1001
|
+
},
|
1002
|
+
},
|
1003
|
+
},
|
1004
|
+
{
|
1005
|
+
name: 'showFirstTimePopup',
|
1006
|
+
layout: {
|
1007
|
+
positions: {
|
1008
|
+
lg: {
|
1009
|
+
colSpan: 4,
|
1010
|
+
},
|
1011
|
+
},
|
1012
|
+
},
|
1013
|
+
},
|
1014
|
+
{
|
1015
|
+
name: 'changeLog',
|
1016
|
+
layout: {
|
1017
|
+
positions: {
|
1018
|
+
lg: {
|
1019
|
+
colSpan: 8,
|
1020
|
+
},
|
1021
|
+
},
|
1022
|
+
},
|
1023
|
+
},
|
1024
|
+
],
|
1025
|
+
actions: [],
|
1026
|
+
},
|
1027
|
+
list: {
|
1028
|
+
actions: [
|
1029
|
+
{
|
1030
|
+
title: 'Create New',
|
1031
|
+
command: 'create-entity',
|
1032
|
+
priority: 'primary',
|
1033
|
+
type: 'create',
|
1034
|
+
scope: AXPEntityCommandScope.TypeLevel,
|
1035
|
+
},
|
1036
|
+
{
|
1037
|
+
title: 'Delete Items',
|
1038
|
+
command: 'delete-entity',
|
1039
|
+
priority: 'primary',
|
1040
|
+
type: 'delete',
|
1041
|
+
scope: AXPEntityCommandScope.Selected,
|
1042
|
+
},
|
1043
|
+
{
|
1044
|
+
title: 'Details',
|
1045
|
+
command: 'open-entity',
|
1046
|
+
priority: 'secondary',
|
1047
|
+
type: 'view',
|
1048
|
+
scope: AXPEntityCommandScope.Individual,
|
1049
|
+
},
|
1050
|
+
{
|
1051
|
+
title: 'Delete',
|
1052
|
+
command: 'delete-entity',
|
1053
|
+
priority: 'secondary',
|
1054
|
+
type: 'delete',
|
1055
|
+
scope: AXPEntityCommandScope.Individual,
|
1056
|
+
},
|
1057
|
+
],
|
1058
|
+
views: [createAllQueryView({ sorts: [{ name: 'versionNumber', dir: 'desc' }] })],
|
1059
|
+
},
|
1060
|
+
},
|
1061
|
+
},
|
1062
|
+
};
|
1063
|
+
return entityDef;
|
1064
|
+
}
|
1065
|
+
|
1066
|
+
class AXMNotifyAppComponent extends AXBasePageComponent {
|
1067
|
+
constructor() {
|
1068
|
+
super(...arguments);
|
1069
|
+
this.isShowAgain = true;
|
1070
|
+
this.sanitize = inject(DomSanitizer);
|
1071
|
+
}
|
1072
|
+
ngOnInit() {
|
1073
|
+
super.ngOnInit();
|
1074
|
+
this.safeData = this.sanitize.bypassSecurityTrustHtml(this.data.changeLog);
|
1075
|
+
}
|
1076
|
+
send() {
|
1077
|
+
this.close({ data: this.data, isShowAgain: !this.isShowAgain });
|
1078
|
+
}
|
1079
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMNotifyAppComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
1080
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.3", type: AXMNotifyAppComponent, isStandalone: true, selector: "axm-notify-app", usesInheritance: true, ngImport: i0, template: "<ax-content class=\"ax-block ax-px-4 ax-py-4 ax-text-base/6\" [innerHTML]=\"safeData\"></ax-content>\n<ax-footer class=\"ax-flex ax-items-center ax-justify-between ax-p-2\">\n <ax-check-box [(value)]=\"isShowAgain\">\n <ax-label>Don't Show Again</ax-label>\n </ax-check-box>\n <ax-button color=\"primary\" (click)=\"send()\" [text]=\"'okay' | translate | async\"></ax-button>\n</ax-footer>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i1.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "component", type: i2$1.AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "tabIndex", "readonly", "color", "value", "name", "id", "checked", "isLoading", "indeterminate"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3$1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i4.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }] }); }
|
1081
|
+
}
|
1082
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMNotifyAppComponent, decorators: [{
|
1083
|
+
type: Component,
|
1084
|
+
args: [{ selector: 'axm-notify-app', imports: [CommonModule, AXLabelModule, AXCheckBoxModule, AXDecoratorModule, AXButtonModule, AXTranslationModule], template: "<ax-content class=\"ax-block ax-px-4 ax-py-4 ax-text-base/6\" [innerHTML]=\"safeData\"></ax-content>\n<ax-footer class=\"ax-flex ax-items-center ax-justify-between ax-p-2\">\n <ax-check-box [(value)]=\"isShowAgain\">\n <ax-label>Don't Show Again</ax-label>\n </ax-check-box>\n <ax-button color=\"primary\" (click)=\"send()\" [text]=\"'okay' | translate | async\"></ax-button>\n</ax-footer>\n" }]
|
1085
|
+
}] });
|
1086
|
+
|
1087
|
+
var notifyApp_component = /*#__PURE__*/Object.freeze({
|
1088
|
+
__proto__: null,
|
1089
|
+
AXMNotifyAppComponent: AXMNotifyAppComponent
|
1090
|
+
});
|
1091
|
+
|
1092
|
+
class AXMAppVersionSlotComponent {
|
1093
|
+
constructor() {
|
1094
|
+
this.versionProvider = inject(AXP_APP_VERSION_PROVIDER);
|
1095
|
+
this.workflowService = inject(AXPWorkflowService);
|
1096
|
+
this.versionNumber = '';
|
1097
|
+
}
|
1098
|
+
async ngOnInit() {
|
1099
|
+
this.versionNumber = (await this.versionProvider.provider()).version;
|
1100
|
+
}
|
1101
|
+
openPopup() {
|
1102
|
+
this.workflowService.execute('show-release-notes');
|
1103
|
+
}
|
1104
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMAppVersionSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
1105
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.3", type: AXMAppVersionSlotComponent, isStandalone: true, selector: "ng-component", inputs: { text: "text" }, ngImport: i0, template: ` <small class="ax-text-sm ax-cursor-pointer" (click)="openPopup()">{{ versionNumber }}</small> `, isInline: true }); }
|
1106
|
+
}
|
1107
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMAppVersionSlotComponent, decorators: [{
|
1108
|
+
type: Component,
|
1109
|
+
args: [{
|
1110
|
+
template: ` <small class="ax-text-sm ax-cursor-pointer" (click)="openPopup()">{{ versionNumber }}</small> `,
|
1111
|
+
standalone: true,
|
1112
|
+
}]
|
1113
|
+
}], propDecorators: { text: [{
|
1114
|
+
type: Input
|
1115
|
+
}] } });
|
1116
|
+
|
1117
|
+
class AppVersionCheckService {
|
1118
|
+
constructor() {
|
1119
|
+
this.versionProvider = inject(AXP_APP_VERSION_PROVIDER);
|
1120
|
+
this.settingsService = inject(AXPSettingService);
|
1121
|
+
this.workflowService = inject(AXPWorkflowService);
|
1122
|
+
this.appVersionService = inject(AXMAppVersionService);
|
1123
|
+
}
|
1124
|
+
async checkVersion() {
|
1125
|
+
const current = (await this.versionProvider.provider()).version;
|
1126
|
+
const initVersion = await this.settingsService.scope(AXPPlatformScope.User).get(`init-application-version`);
|
1127
|
+
if (initVersion == null) {
|
1128
|
+
await this.settingsService.scope(AXPPlatformScope.User).set(`init-application-version`, current);
|
1129
|
+
}
|
1130
|
+
else {
|
1131
|
+
const versions = await this.appVersionService.query();
|
1132
|
+
for (const v of versions.items) {
|
1133
|
+
if (v.versionNumber == current && v.versionNumber != initVersion) {
|
1134
|
+
const isSee = await this.settingsService
|
1135
|
+
.scope(AXPPlatformScope.User)
|
1136
|
+
.get(`is-see-check-version-${v.versionNumber}`);
|
1137
|
+
if (!isSee) {
|
1138
|
+
setTimeout(() => {
|
1139
|
+
this.workflowService.execute('show-what-is-new', v);
|
1140
|
+
}, 300);
|
1141
|
+
}
|
1142
|
+
}
|
1143
|
+
}
|
1144
|
+
}
|
1145
|
+
}
|
1146
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AppVersionCheckService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1147
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AppVersionCheckService }); }
|
1148
|
+
}
|
1149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AppVersionCheckService, decorators: [{
|
1150
|
+
type: Injectable
|
1151
|
+
}] });
|
1152
|
+
|
1153
|
+
class AXMChangeLogPopupAction extends AXPWorkflowAction {
|
1154
|
+
constructor() {
|
1155
|
+
super(...arguments);
|
1156
|
+
this.popupService = inject(AXPopupService);
|
1157
|
+
}
|
1158
|
+
async execute(context) {
|
1159
|
+
const data = context.getVariable();
|
1160
|
+
const comp = (await Promise.resolve().then(function () { return notifyApp_component; })).AXMNotifyAppComponent;
|
1161
|
+
const result = await this.popupService.open(comp, {
|
1162
|
+
title: `New Features in Version ${data.versionNumber}`,
|
1163
|
+
data: { data },
|
1164
|
+
});
|
1165
|
+
if (result.data?.isShowAgain) {
|
1166
|
+
context.setOutput('result', false);
|
1167
|
+
}
|
1168
|
+
else {
|
1169
|
+
context.setOutput('result', true);
|
1170
|
+
}
|
1171
|
+
}
|
1172
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMChangeLogPopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
1173
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMChangeLogPopupAction }); }
|
1174
|
+
}
|
1175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMChangeLogPopupAction, decorators: [{
|
1176
|
+
type: Injectable
|
1177
|
+
}] });
|
1178
|
+
class AXMChangeLogUpdateSettingAction extends AXPWorkflowAction {
|
1179
|
+
constructor() {
|
1180
|
+
super(...arguments);
|
1181
|
+
this.settingService = inject(AXPSettingService);
|
1182
|
+
}
|
1183
|
+
async execute(context) {
|
1184
|
+
const data = context.getVariable();
|
1185
|
+
if (context.getOutput('result')) {
|
1186
|
+
await this.settingService.scope(AXPPlatformScope.User).set(`is-see-check-version-${data.versionNumber}`, true);
|
1187
|
+
}
|
1188
|
+
}
|
1189
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMChangeLogUpdateSettingAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
1190
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMChangeLogUpdateSettingAction }); }
|
1191
|
+
}
|
1192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMChangeLogUpdateSettingAction, decorators: [{
|
1193
|
+
type: Injectable
|
1194
|
+
}] });
|
1195
|
+
const AXMWhatsNewWorkflow = {
|
1196
|
+
startStepId: 'show-popup',
|
1197
|
+
steps: {
|
1198
|
+
'show-popup': {
|
1199
|
+
action: 'AXMChangeLogPopupAction',
|
1200
|
+
nextSteps: [
|
1201
|
+
{
|
1202
|
+
conditions: [{ type: 'SINGLE', expression: 'context.getOutput("result") == true' }],
|
1203
|
+
nextStepId: 'first-time-add-to-setting',
|
1204
|
+
},
|
1205
|
+
],
|
1206
|
+
},
|
1207
|
+
'first-time-add-to-setting': {
|
1208
|
+
action: 'AXMChangeLogUpdateSettingAction',
|
1209
|
+
},
|
1210
|
+
},
|
1211
|
+
};
|
1212
|
+
class AXMCheckNewVersionAction extends AXPWorkflowAction {
|
1213
|
+
constructor() {
|
1214
|
+
super(...arguments);
|
1215
|
+
this.appVersionCheckService = inject(AppVersionCheckService);
|
1216
|
+
this.settingService = inject(AXPSettingService);
|
1217
|
+
}
|
1218
|
+
async execute(context) {
|
1219
|
+
const shouldShow = await this.settingService.scope(AXPPlatformScope.User).get(`general:startup:release-notes`);
|
1220
|
+
if (shouldShow == false) {
|
1221
|
+
return;
|
1222
|
+
}
|
1223
|
+
await this.appVersionCheckService.checkVersion();
|
1224
|
+
}
|
1225
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMCheckNewVersionAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
1226
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMCheckNewVersionAction }); }
|
1227
|
+
}
|
1228
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMCheckNewVersionAction, decorators: [{
|
1229
|
+
type: Injectable
|
1230
|
+
}] });
|
1231
|
+
const AXMCheckNewVersionWorkflow = {
|
1232
|
+
startStepId: 'check-new-version',
|
1233
|
+
steps: {
|
1234
|
+
'check-new-version': {
|
1235
|
+
action: 'AXMCheckNewVersionAction',
|
1236
|
+
},
|
1237
|
+
},
|
1238
|
+
};
|
1239
|
+
|
1240
|
+
class AXMGlobalVariablesService extends AXMEntityCrudServiceImpl {
|
1241
|
+
}
|
1242
|
+
class AXMGlobalVariablesServiceImpl extends AXMEntityCrudServiceImpl {
|
1243
|
+
constructor() {
|
1244
|
+
super(`${RootConfig.module.name}.${RootConfig.entities.globalVariable.name}`);
|
1245
|
+
}
|
1246
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMGlobalVariablesServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1247
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMGlobalVariablesServiceImpl }); }
|
1248
|
+
}
|
1249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMGlobalVariablesServiceImpl, decorators: [{
|
1250
|
+
type: Injectable
|
1251
|
+
}], ctorParameters: () => [] });
|
1252
|
+
|
1253
|
+
async function globalVariableEntityFactory(injector) {
|
1254
|
+
const dataService = injector.get(AXMGlobalVariablesService);
|
1255
|
+
const i18n = RootConfig.config.i18n;
|
1256
|
+
const entityDef = {
|
1257
|
+
module: RootConfig.module.name,
|
1258
|
+
name: RootConfig.entities.globalVariable.name,
|
1259
|
+
source: '',
|
1260
|
+
title: RootConfig.entities.globalVariable.title,
|
1261
|
+
formats: {
|
1262
|
+
individual: 'Global Variable',
|
1263
|
+
plural: 'Global Variables',
|
1264
|
+
},
|
1265
|
+
relatedEntities: [],
|
1266
|
+
groups: [
|
1267
|
+
{
|
1268
|
+
id: 'section',
|
1269
|
+
title: 'Global Variable',
|
1270
|
+
},
|
1271
|
+
],
|
1272
|
+
properties: [
|
1273
|
+
{
|
1274
|
+
name: 'name',
|
1275
|
+
title: `t("name", { scope: "common" })`,
|
1276
|
+
groupId: 'section',
|
1277
|
+
schema: {
|
1278
|
+
dataType: 'string',
|
1279
|
+
interface: {
|
1280
|
+
type: AXPWidgetsCatalog.text,
|
1281
|
+
},
|
1282
|
+
},
|
1283
|
+
validations: [
|
1284
|
+
{
|
1285
|
+
rule: 'required',
|
1286
|
+
},
|
1287
|
+
],
|
1288
|
+
options: {
|
1289
|
+
filter: {
|
1290
|
+
inline: {
|
1291
|
+
enabled: true,
|
1292
|
+
},
|
1293
|
+
},
|
1294
|
+
sort: {
|
1295
|
+
enabled: true,
|
1296
|
+
},
|
1297
|
+
},
|
1298
|
+
},
|
1299
|
+
{
|
1300
|
+
name: 'title',
|
1301
|
+
title: `t("title", { scope: "common" })`,
|
1302
|
+
groupId: 'section',
|
1303
|
+
schema: {
|
1304
|
+
dataType: 'string',
|
1305
|
+
interface: {
|
1306
|
+
type: AXPWidgetsCatalog.text,
|
1307
|
+
},
|
1308
|
+
},
|
1309
|
+
validations: [
|
1310
|
+
{
|
1311
|
+
rule: 'required',
|
1312
|
+
},
|
1313
|
+
],
|
1314
|
+
options: {
|
1315
|
+
filter: {
|
1316
|
+
inline: {
|
1317
|
+
enabled: true,
|
1318
|
+
},
|
1319
|
+
},
|
1320
|
+
sort: {
|
1321
|
+
enabled: true,
|
1322
|
+
},
|
1323
|
+
},
|
1324
|
+
},
|
1325
|
+
{
|
1326
|
+
name: 'value',
|
1327
|
+
title: `t("value", { scope: "${i18n}" })`,
|
1328
|
+
groupId: 'section',
|
1329
|
+
schema: {
|
1330
|
+
dataType: 'string',
|
1331
|
+
interface: {
|
1332
|
+
type: AXPWidgetsCatalog.text,
|
1333
|
+
},
|
1334
|
+
},
|
1335
|
+
validations: [
|
1336
|
+
{
|
1337
|
+
rule: 'required',
|
1338
|
+
},
|
1339
|
+
],
|
1340
|
+
},
|
1341
|
+
{
|
1342
|
+
name: 'dataType',
|
1343
|
+
title: `t("dataType", { scope: "${i18n}" })`,
|
1344
|
+
groupId: 'section',
|
1345
|
+
schema: {
|
1346
|
+
dataType: 'string',
|
1347
|
+
interface: {
|
1348
|
+
type: AXPWidgetsCatalog.select,
|
1349
|
+
options: {
|
1350
|
+
valueField: 'name',
|
1351
|
+
textField: 'title',
|
1352
|
+
dataSource: [
|
1353
|
+
{ title: 'String', name: 'String' },
|
1354
|
+
{ title: 'Integer', name: 'integer' },
|
1355
|
+
{ title: 'Date Time', name: 'dateTime' },
|
1356
|
+
{ title: 'Boolean', name: 'boolean' },
|
1357
|
+
{ title: 'Function', name: 'function' },
|
1358
|
+
{ title: 'Custom', name: 'custom' },
|
1359
|
+
],
|
1360
|
+
direction: 'horizontal',
|
1361
|
+
multiple: false,
|
1362
|
+
},
|
1363
|
+
},
|
1364
|
+
},
|
1365
|
+
validations: [
|
1366
|
+
{
|
1367
|
+
rule: 'required',
|
1368
|
+
},
|
1369
|
+
],
|
1370
|
+
options: {
|
1371
|
+
filter: {
|
1372
|
+
advance: {
|
1373
|
+
enabled: true,
|
1374
|
+
},
|
1375
|
+
},
|
1376
|
+
sort: {
|
1377
|
+
enabled: true,
|
1378
|
+
},
|
1379
|
+
},
|
1380
|
+
},
|
1381
|
+
],
|
1382
|
+
columns: [{ name: 'title' }, { name: 'dataType' }, { name: 'value' }],
|
1383
|
+
commands: {
|
1384
|
+
create: {
|
1385
|
+
execute: async (data) => {
|
1386
|
+
return Promise.resolve({ id: await dataService.insertOne(data) });
|
1387
|
+
},
|
1388
|
+
},
|
1389
|
+
delete: {
|
1390
|
+
execute: async (id) => {
|
1391
|
+
await await dataService.deleteOne(id);
|
1392
|
+
return Promise.resolve();
|
1393
|
+
},
|
1394
|
+
},
|
1395
|
+
update: {
|
1396
|
+
execute: async (data) => {
|
1397
|
+
return new Promise((resolve) => {
|
1398
|
+
setTimeout(async () => {
|
1399
|
+
await dataService.updateOne(data.id, data);
|
1400
|
+
resolve(data);
|
1401
|
+
}, 1000);
|
1402
|
+
});
|
1403
|
+
},
|
1404
|
+
},
|
1405
|
+
},
|
1406
|
+
queries: {
|
1407
|
+
byKey: {
|
1408
|
+
execute: async (id) => {
|
1409
|
+
return new Promise((resolve) => {
|
1410
|
+
setTimeout(async () => {
|
1411
|
+
const entity = await dataService.getOne(id);
|
1412
|
+
resolve(entity);
|
1413
|
+
}, 500);
|
1414
|
+
});
|
1415
|
+
},
|
1416
|
+
type: AXPEntityQueryType.Single,
|
1417
|
+
},
|
1418
|
+
list: {
|
1419
|
+
execute: async (e) => {
|
1420
|
+
const x = await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
|
1421
|
+
console.log(x);
|
1422
|
+
return x;
|
1423
|
+
},
|
1424
|
+
type: AXPEntityQueryType.List,
|
1425
|
+
},
|
1426
|
+
},
|
1427
|
+
interfaces: {
|
1428
|
+
master: {
|
1429
|
+
create: {
|
1430
|
+
sections: [
|
1431
|
+
{
|
1432
|
+
id: 'section',
|
1433
|
+
},
|
1434
|
+
],
|
1435
|
+
properties: [
|
1436
|
+
{
|
1437
|
+
name: 'title',
|
1438
|
+
layout: {
|
1439
|
+
positions: {
|
1440
|
+
lg: {
|
1441
|
+
colSpan: 6,
|
1442
|
+
},
|
1443
|
+
},
|
1444
|
+
},
|
1445
|
+
},
|
1446
|
+
{
|
1447
|
+
name: 'name',
|
1448
|
+
layout: {
|
1449
|
+
positions: {
|
1450
|
+
lg: {
|
1451
|
+
colSpan: 6,
|
1452
|
+
},
|
1453
|
+
},
|
1454
|
+
},
|
1455
|
+
},
|
1456
|
+
{
|
1457
|
+
name: 'value',
|
1458
|
+
layout: {
|
1459
|
+
positions: {
|
1460
|
+
lg: {
|
1461
|
+
colSpan: 6,
|
1462
|
+
},
|
1463
|
+
},
|
1464
|
+
},
|
1465
|
+
},
|
1466
|
+
{
|
1467
|
+
name: 'dataType',
|
1468
|
+
layout: {
|
1469
|
+
positions: {
|
1470
|
+
lg: {
|
1471
|
+
colSpan: 6,
|
1472
|
+
},
|
1473
|
+
},
|
1474
|
+
},
|
1475
|
+
},
|
1476
|
+
],
|
1477
|
+
},
|
1478
|
+
update: {
|
1479
|
+
sections: [
|
1480
|
+
{
|
1481
|
+
id: 'section',
|
1482
|
+
},
|
1483
|
+
],
|
1484
|
+
properties: [
|
1485
|
+
{
|
1486
|
+
name: 'title',
|
1487
|
+
layout: {
|
1488
|
+
positions: {
|
1489
|
+
lg: {
|
1490
|
+
colSpan: 6,
|
1491
|
+
},
|
1492
|
+
},
|
1493
|
+
},
|
1494
|
+
},
|
1495
|
+
{
|
1496
|
+
name: 'name',
|
1497
|
+
layout: {
|
1498
|
+
positions: {
|
1499
|
+
lg: {
|
1500
|
+
colSpan: 6,
|
1501
|
+
},
|
1502
|
+
},
|
1503
|
+
},
|
1504
|
+
},
|
1505
|
+
{
|
1506
|
+
name: 'value',
|
1507
|
+
layout: {
|
1508
|
+
positions: {
|
1509
|
+
lg: {
|
1510
|
+
colSpan: 6,
|
1511
|
+
},
|
1512
|
+
},
|
1513
|
+
},
|
1514
|
+
},
|
1515
|
+
{
|
1516
|
+
name: 'dataType',
|
1517
|
+
layout: {
|
1518
|
+
positions: {
|
1519
|
+
lg: {
|
1520
|
+
colSpan: 6,
|
1521
|
+
},
|
1522
|
+
},
|
1523
|
+
},
|
1524
|
+
},
|
1525
|
+
],
|
1526
|
+
},
|
1527
|
+
single: {
|
1528
|
+
title: '{{title}}',
|
1529
|
+
sections: [
|
1530
|
+
{
|
1531
|
+
id: 'section',
|
1532
|
+
},
|
1533
|
+
],
|
1534
|
+
properties: [
|
1535
|
+
{
|
1536
|
+
name: 'title',
|
1537
|
+
layout: {
|
1538
|
+
positions: {
|
1539
|
+
lg: {
|
1540
|
+
colSpan: 6,
|
1541
|
+
},
|
1542
|
+
},
|
1543
|
+
},
|
1544
|
+
},
|
1545
|
+
{
|
1546
|
+
name: 'name',
|
1547
|
+
layout: {
|
1548
|
+
positions: {
|
1549
|
+
lg: {
|
1550
|
+
colSpan: 6,
|
1551
|
+
},
|
1552
|
+
},
|
1553
|
+
},
|
1554
|
+
},
|
1555
|
+
{
|
1556
|
+
name: 'value',
|
1557
|
+
layout: {
|
1558
|
+
positions: {
|
1559
|
+
lg: {
|
1560
|
+
colSpan: 6,
|
1561
|
+
},
|
1562
|
+
},
|
1563
|
+
},
|
1564
|
+
},
|
1565
|
+
{
|
1566
|
+
name: 'dataType',
|
1567
|
+
layout: {
|
1568
|
+
positions: {
|
1569
|
+
lg: {
|
1570
|
+
colSpan: 6,
|
1571
|
+
},
|
1572
|
+
},
|
1573
|
+
},
|
1574
|
+
},
|
1575
|
+
],
|
1576
|
+
actions: [],
|
1577
|
+
},
|
1578
|
+
list: {
|
1579
|
+
actions: [
|
1580
|
+
{
|
1581
|
+
title: `t("create", { scope: "common" })`,
|
1582
|
+
command: 'create-entity',
|
1583
|
+
priority: 'primary',
|
1584
|
+
type: 'create',
|
1585
|
+
scope: AXPEntityCommandScope.TypeLevel,
|
1586
|
+
},
|
1587
|
+
{
|
1588
|
+
title: 't("deleteItems", { scope: "common" })',
|
1589
|
+
command: 'delete-entity',
|
1590
|
+
priority: 'primary',
|
1591
|
+
type: 'delete',
|
1592
|
+
scope: AXPEntityCommandScope.Selected,
|
1593
|
+
},
|
1594
|
+
{
|
1595
|
+
title: 't("deleteItems", { scope: "common" })',
|
1596
|
+
command: 'open-entity',
|
1597
|
+
priority: 'secondary',
|
1598
|
+
type: 'view',
|
1599
|
+
scope: AXPEntityCommandScope.Individual,
|
1600
|
+
},
|
1601
|
+
{
|
1602
|
+
title: 't("delete", { scope: "common" })',
|
1603
|
+
command: 'delete-entity',
|
1604
|
+
priority: 'secondary',
|
1605
|
+
type: 'delete',
|
1606
|
+
scope: AXPEntityCommandScope.Individual,
|
1607
|
+
},
|
1608
|
+
],
|
1609
|
+
views: [
|
1610
|
+
{
|
1611
|
+
name: 'all',
|
1612
|
+
title: 't("allItem", { scope: "common" })',
|
1613
|
+
fixed: true,
|
1614
|
+
columns: [],
|
1615
|
+
conditions: [],
|
1616
|
+
sorts: [],
|
1617
|
+
},
|
1618
|
+
],
|
1619
|
+
},
|
1620
|
+
},
|
1621
|
+
},
|
1622
|
+
};
|
1623
|
+
return entityDef;
|
1624
|
+
}
|
1625
|
+
|
1626
|
+
class AXMGlossaryService extends AXMEntityCrudServiceImpl {
|
1627
|
+
}
|
1628
|
+
class AXMGlossaryServiceImpl extends AXMGlossaryService {
|
1629
|
+
constructor() {
|
1630
|
+
super(`${RootConfig.module.name}.${RootConfig.entities.glossary.name}`);
|
1631
|
+
}
|
1632
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMGlossaryServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1633
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMGlossaryServiceImpl }); }
|
1634
|
+
}
|
1635
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMGlossaryServiceImpl, decorators: [{
|
1636
|
+
type: Injectable
|
1637
|
+
}], ctorParameters: () => [] });
|
1638
|
+
|
1639
|
+
async function glossaryEntityFactory(injector) {
|
1640
|
+
const dataService = injector.get(AXMGlossaryService);
|
1641
|
+
const i18n = RootConfig.config.i18n + '.glossary';
|
1642
|
+
const entityDef = {
|
1643
|
+
module: RootConfig.module.name,
|
1644
|
+
name: RootConfig.entities.glossary.name,
|
1645
|
+
source: '',
|
1646
|
+
title: RootConfig.entities.glossary.title,
|
1647
|
+
formats: {
|
1648
|
+
individual: RootConfig.entities.glossary.title,
|
1649
|
+
plural: RootConfig.entities.glossary.titlePlural,
|
1650
|
+
searchResult: {
|
1651
|
+
title: '{{ title }}',
|
1652
|
+
description: RootConfig.module.title,
|
1653
|
+
},
|
1654
|
+
},
|
1655
|
+
relatedEntities: [],
|
1656
|
+
groups: [
|
1657
|
+
{
|
1658
|
+
id: 'section',
|
1659
|
+
title: RootConfig.entities.glossary.title,
|
1660
|
+
},
|
1661
|
+
],
|
1662
|
+
properties: [
|
1663
|
+
{
|
1664
|
+
name: 'title',
|
1665
|
+
title: `t("title", { scope: "${i18n}" })`,
|
1666
|
+
groupId: 'section',
|
1667
|
+
options: {
|
1668
|
+
sort: {
|
1669
|
+
enabled: true,
|
1670
|
+
},
|
1671
|
+
filter: {
|
1672
|
+
advance: {
|
1673
|
+
enabled: true,
|
1674
|
+
},
|
1675
|
+
inline: {
|
1676
|
+
enabled: false,
|
1677
|
+
},
|
1678
|
+
},
|
1679
|
+
},
|
1680
|
+
schema: {
|
1681
|
+
dataType: 'string',
|
1682
|
+
interface: {
|
1683
|
+
type: AXPWidgetsList.Editors.TextBox,
|
1684
|
+
},
|
1685
|
+
},
|
1686
|
+
validations: [
|
1687
|
+
{
|
1688
|
+
rule: 'required',
|
1689
|
+
},
|
1690
|
+
],
|
1691
|
+
},
|
1692
|
+
{
|
1693
|
+
name: 'parentId',
|
1694
|
+
title: `t("parentId",{ scope: "${i18n}" })`,
|
1695
|
+
groupId: 'section',
|
1696
|
+
schema: {
|
1697
|
+
dataType: 'string',
|
1698
|
+
interface: {
|
1699
|
+
type: AXPWidgetsList.Editors.LookupBox,
|
1700
|
+
options: {
|
1701
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.glossary.name}`,
|
1702
|
+
},
|
1703
|
+
},
|
1704
|
+
},
|
1705
|
+
},
|
1706
|
+
{
|
1707
|
+
name: 'translation',
|
1708
|
+
title: `t("translation",{ scope: "${i18n}" })`,
|
1709
|
+
groupId: 'section',
|
1710
|
+
schema: {
|
1711
|
+
dataType: 'string',
|
1712
|
+
interface: {
|
1713
|
+
type: AXPWidgetsList.Editors.TextBox,
|
1714
|
+
options: {
|
1715
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.glossary.name}`,
|
1716
|
+
multiLanguage: true,
|
1717
|
+
},
|
1718
|
+
},
|
1719
|
+
},
|
1720
|
+
},
|
1721
|
+
],
|
1722
|
+
columns: [{ name: 'title' }],
|
1723
|
+
commands: {
|
1724
|
+
create: {
|
1725
|
+
execute: async (data) => {
|
1726
|
+
const res = await dataService.insertOne(data);
|
1727
|
+
return { id: res };
|
1728
|
+
},
|
1729
|
+
},
|
1730
|
+
delete: {
|
1731
|
+
execute: async (id) => {
|
1732
|
+
return await dataService.deleteOne(id);
|
1733
|
+
},
|
1734
|
+
},
|
1735
|
+
update: {
|
1736
|
+
execute: async (data) => {
|
1737
|
+
return await dataService.updateOne(data.id, data);
|
1738
|
+
},
|
1739
|
+
},
|
1740
|
+
},
|
1741
|
+
queries: {
|
1742
|
+
byKey: {
|
1743
|
+
execute: async (id) => {
|
1744
|
+
return await dataService.getOne(id);
|
1745
|
+
},
|
1746
|
+
type: AXPEntityQueryType.Single,
|
1747
|
+
},
|
1748
|
+
list: {
|
1749
|
+
execute: async (e) => {
|
1750
|
+
return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
|
1751
|
+
},
|
1752
|
+
type: AXPEntityQueryType.List,
|
1753
|
+
},
|
1754
|
+
},
|
1755
|
+
interfaces: {
|
1756
|
+
master: {
|
1757
|
+
create: {
|
1758
|
+
sections: [
|
1759
|
+
{
|
1760
|
+
id: 'section',
|
1761
|
+
},
|
1762
|
+
],
|
1763
|
+
properties: [
|
1764
|
+
{
|
1765
|
+
name: 'title',
|
1766
|
+
layout: {
|
1767
|
+
positions: {
|
1768
|
+
lg: {
|
1769
|
+
colSpan: 12,
|
1770
|
+
order: 1,
|
1771
|
+
},
|
1772
|
+
},
|
1773
|
+
},
|
1774
|
+
},
|
1775
|
+
{
|
1776
|
+
name: 'parentId',
|
1777
|
+
layout: {
|
1778
|
+
positions: {
|
1779
|
+
lg: {
|
1780
|
+
colSpan: 12,
|
1781
|
+
order: 2,
|
1782
|
+
},
|
1783
|
+
},
|
1784
|
+
},
|
1785
|
+
},
|
1786
|
+
{
|
1787
|
+
name: 'translation',
|
1788
|
+
layout: {
|
1789
|
+
positions: {
|
1790
|
+
lg: {
|
1791
|
+
colSpan: 12,
|
1792
|
+
order: 3,
|
1793
|
+
},
|
1794
|
+
},
|
1795
|
+
},
|
1796
|
+
},
|
1797
|
+
],
|
1798
|
+
},
|
1799
|
+
update: {
|
1800
|
+
sections: [
|
1801
|
+
{
|
1802
|
+
id: 'section',
|
1803
|
+
},
|
1804
|
+
],
|
1805
|
+
properties: [
|
1806
|
+
{
|
1807
|
+
name: 'title',
|
1808
|
+
layout: {
|
1809
|
+
positions: {
|
1810
|
+
lg: {
|
1811
|
+
colSpan: 12,
|
1812
|
+
order: 1,
|
1813
|
+
},
|
1814
|
+
},
|
1815
|
+
},
|
1816
|
+
},
|
1817
|
+
{
|
1818
|
+
name: 'parentId',
|
1819
|
+
layout: {
|
1820
|
+
positions: {
|
1821
|
+
lg: {
|
1822
|
+
colSpan: 12,
|
1823
|
+
order: 2,
|
1824
|
+
},
|
1825
|
+
},
|
1826
|
+
},
|
1827
|
+
},
|
1828
|
+
{
|
1829
|
+
name: 'translation',
|
1830
|
+
layout: {
|
1831
|
+
positions: {
|
1832
|
+
lg: {
|
1833
|
+
colSpan: 12,
|
1834
|
+
order: 3,
|
1835
|
+
},
|
1836
|
+
},
|
1837
|
+
},
|
1838
|
+
},
|
1839
|
+
],
|
1840
|
+
},
|
1841
|
+
single: {
|
1842
|
+
title: '{{title}}',
|
1843
|
+
sections: [
|
1844
|
+
{
|
1845
|
+
id: 'section',
|
1846
|
+
layout: {
|
1847
|
+
positions: {
|
1848
|
+
lg: {
|
1849
|
+
colSpan: 12,
|
1850
|
+
},
|
1851
|
+
},
|
1852
|
+
},
|
1853
|
+
},
|
1854
|
+
],
|
1855
|
+
properties: [
|
1856
|
+
{
|
1857
|
+
name: 'title',
|
1858
|
+
layout: {
|
1859
|
+
positions: {
|
1860
|
+
lg: {
|
1861
|
+
colSpan: 12,
|
1862
|
+
order: 1,
|
1863
|
+
},
|
1864
|
+
},
|
1865
|
+
},
|
1866
|
+
},
|
1867
|
+
{
|
1868
|
+
name: 'parentId',
|
1869
|
+
layout: {
|
1870
|
+
positions: {
|
1871
|
+
lg: {
|
1872
|
+
colSpan: 12,
|
1873
|
+
order: 2,
|
1874
|
+
},
|
1875
|
+
},
|
1876
|
+
},
|
1877
|
+
},
|
1878
|
+
{
|
1879
|
+
name: 'translation',
|
1880
|
+
layout: {
|
1881
|
+
positions: {
|
1882
|
+
lg: {
|
1883
|
+
colSpan: 12,
|
1884
|
+
order: 3,
|
1885
|
+
},
|
1886
|
+
},
|
1887
|
+
},
|
1888
|
+
},
|
1889
|
+
],
|
1890
|
+
actions: [],
|
1891
|
+
},
|
1892
|
+
list: {
|
1893
|
+
actions: [
|
1894
|
+
{
|
1895
|
+
title: `t("create", { scope: "common" })`,
|
1896
|
+
command: 'create-entity',
|
1897
|
+
priority: 'primary',
|
1898
|
+
type: 'create',
|
1899
|
+
scope: AXPEntityCommandScope.TypeLevel,
|
1900
|
+
},
|
1901
|
+
{
|
1902
|
+
title: 't("deleteItems", { scope: "common" })',
|
1903
|
+
command: 'delete-entity',
|
1904
|
+
priority: 'primary',
|
1905
|
+
type: 'delete',
|
1906
|
+
scope: AXPEntityCommandScope.Selected,
|
1907
|
+
},
|
1908
|
+
{
|
1909
|
+
title: 't("detail", { scope: "common" })',
|
1910
|
+
command: 'open-entity',
|
1911
|
+
priority: 'secondary',
|
1912
|
+
type: 'view',
|
1913
|
+
scope: AXPEntityCommandScope.Individual,
|
1914
|
+
},
|
1915
|
+
{
|
1916
|
+
title: 't("delete", { scope: "common" })',
|
1917
|
+
command: 'delete-entity',
|
1918
|
+
priority: 'secondary',
|
1919
|
+
type: 'delete',
|
1920
|
+
scope: AXPEntityCommandScope.Individual,
|
1921
|
+
},
|
1922
|
+
],
|
1923
|
+
views: [
|
1924
|
+
createAllQueryView({
|
1925
|
+
sorts: [{ name: 'title', dir: 'asc' }],
|
1926
|
+
}),
|
1927
|
+
],
|
1928
|
+
},
|
1929
|
+
},
|
1930
|
+
},
|
1931
|
+
};
|
1932
|
+
return entityDef;
|
1933
|
+
}
|
1934
|
+
|
1935
|
+
class AXMMetaDataDefinitionService extends AXMEntityCrudServiceImpl {
|
1936
|
+
}
|
1937
|
+
class AXMPMetaDataDefinitionServiceImpl extends AXMMetaDataDefinitionService {
|
1938
|
+
constructor() {
|
1939
|
+
super(`${RootConfig.module.name}.${RootConfig.entities.metaDataDefinition.name}`);
|
1940
|
+
}
|
1941
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMPMetaDataDefinitionServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1942
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMPMetaDataDefinitionServiceImpl }); }
|
1943
|
+
}
|
1944
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMPMetaDataDefinitionServiceImpl, decorators: [{
|
1945
|
+
type: Injectable
|
1946
|
+
}], ctorParameters: () => [] });
|
1947
|
+
|
1948
|
+
async function metaDataDefinitionFactory(injector) {
|
1949
|
+
const dataService = injector.get(AXMMetaDataDefinitionService);
|
1950
|
+
const entityDef = {
|
1951
|
+
module: RootConfig.module.name,
|
1952
|
+
name: RootConfig.entities.metaDataDefinition.name,
|
1953
|
+
source: '',
|
1954
|
+
title: RootConfig.entities.metaDataDefinition.title,
|
1955
|
+
formats: {
|
1956
|
+
individual: RootConfig.entities.metaDataDefinition.title,
|
1957
|
+
plural: RootConfig.entities.metaDataDefinition.titlePlural,
|
1958
|
+
searchResult: {
|
1959
|
+
title: '{{ title }}',
|
1960
|
+
description: RootConfig.module.title,
|
1961
|
+
},
|
1962
|
+
},
|
1963
|
+
relatedEntities: [],
|
1964
|
+
versionHistory: {
|
1965
|
+
enabled: true,
|
1966
|
+
showInList: true,
|
1967
|
+
showInDetail: true,
|
1968
|
+
},
|
1969
|
+
category: {
|
1970
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.metaDataDefinitionCategory.name}`,
|
1971
|
+
title: 'Categories',
|
1972
|
+
textField: 'title',
|
1973
|
+
valueField: 'id',
|
1974
|
+
applyConditions: [
|
1975
|
+
{
|
1976
|
+
name: 'categoryIds',
|
1977
|
+
operator: {
|
1978
|
+
type: 'contains',
|
1979
|
+
},
|
1980
|
+
value: 'id',
|
1981
|
+
},
|
1982
|
+
],
|
1983
|
+
},
|
1984
|
+
groups: [
|
1985
|
+
{
|
1986
|
+
id: 'section',
|
1987
|
+
title: RootConfig.entities.metaDataDefinition.title,
|
1988
|
+
},
|
1989
|
+
],
|
1990
|
+
properties: [
|
1991
|
+
{
|
1992
|
+
name: 'name',
|
1993
|
+
title: 't("name", { scope: "common" })',
|
1994
|
+
groupId: 'section',
|
1995
|
+
options: {
|
1996
|
+
sort: {
|
1997
|
+
enabled: true,
|
1998
|
+
},
|
1999
|
+
},
|
2000
|
+
schema: {
|
2001
|
+
dataType: 'string',
|
2002
|
+
interface: {
|
2003
|
+
type: AXPWidgetsCatalog.text,
|
2004
|
+
},
|
2005
|
+
},
|
2006
|
+
validations: [
|
2007
|
+
{
|
2008
|
+
rule: 'required',
|
2009
|
+
},
|
2010
|
+
],
|
2011
|
+
},
|
2012
|
+
{
|
2013
|
+
name: 'title',
|
2014
|
+
title: 't("title", { scope: "common" })',
|
2015
|
+
groupId: 'section',
|
2016
|
+
schema: {
|
2017
|
+
dataType: 'string',
|
2018
|
+
interface: {
|
2019
|
+
type: AXPWidgetsCatalog.text,
|
2020
|
+
},
|
2021
|
+
},
|
2022
|
+
validations: [
|
2023
|
+
{
|
2024
|
+
rule: 'required',
|
2025
|
+
},
|
2026
|
+
],
|
2027
|
+
},
|
2028
|
+
{
|
2029
|
+
name: 'description',
|
2030
|
+
title: 't("description", { scope: "common" })',
|
2031
|
+
groupId: 'section',
|
2032
|
+
schema: {
|
2033
|
+
dataType: 'string',
|
2034
|
+
interface: {
|
2035
|
+
type: AXPWidgetsCatalog.text,
|
2036
|
+
},
|
2037
|
+
},
|
2038
|
+
},
|
2039
|
+
{
|
2040
|
+
name: 'categoryIds',
|
2041
|
+
title: 't("category", { scope: "common" })',
|
2042
|
+
groupId: 'section',
|
2043
|
+
schema: {
|
2044
|
+
dataType: 'string',
|
2045
|
+
interface: {
|
2046
|
+
type: AXPWidgetsCatalog.lookup,
|
2047
|
+
options: {
|
2048
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.metaDataDefinitionCategory.name}`,
|
2049
|
+
multiple: true,
|
2050
|
+
expose: [
|
2051
|
+
{ source: 'id', target: 'categories.{id}' },
|
2052
|
+
{ source: 'title', target: 'categories.{title}' },
|
2053
|
+
],
|
2054
|
+
},
|
2055
|
+
},
|
2056
|
+
},
|
2057
|
+
validations: [
|
2058
|
+
{
|
2059
|
+
rule: 'required',
|
2060
|
+
},
|
2061
|
+
],
|
2062
|
+
},
|
2063
|
+
{
|
2064
|
+
name: 'interface',
|
2065
|
+
title: `t("interface", { scope: "${RootConfig.config.i18n}" })`,
|
2066
|
+
groupId: 'section',
|
2067
|
+
schema: {
|
2068
|
+
dataType: 'string',
|
2069
|
+
interface: {
|
2070
|
+
type: AXPWidgetsCatalog.templateDesigner,
|
2071
|
+
options: {
|
2072
|
+
embedded: true,
|
2073
|
+
},
|
2074
|
+
},
|
2075
|
+
},
|
2076
|
+
validations: [
|
2077
|
+
{
|
2078
|
+
rule: 'required',
|
2079
|
+
},
|
2080
|
+
],
|
2081
|
+
},
|
2082
|
+
],
|
2083
|
+
columns: [
|
2084
|
+
{ name: 'name' },
|
2085
|
+
{ name: 'title' },
|
2086
|
+
{ name: 'description' },
|
2087
|
+
{ name: 'categoryIds', options: { dataPath: 'categories' } },
|
2088
|
+
],
|
2089
|
+
commands: {
|
2090
|
+
create: {
|
2091
|
+
execute: async (data) => {
|
2092
|
+
const res = await dataService.insertOne(data);
|
2093
|
+
return { id: res };
|
2094
|
+
},
|
2095
|
+
},
|
2096
|
+
delete: {
|
2097
|
+
execute: async (id) => {
|
2098
|
+
return await dataService.deleteOne(id);
|
2099
|
+
},
|
2100
|
+
},
|
2101
|
+
update: {
|
2102
|
+
execute: async (data) => {
|
2103
|
+
return await dataService.updateOne(data.id, data);
|
2104
|
+
},
|
2105
|
+
},
|
2106
|
+
},
|
2107
|
+
queries: {
|
2108
|
+
byKey: {
|
2109
|
+
execute: async (id) => {
|
2110
|
+
return await dataService.getOne(id);
|
2111
|
+
},
|
2112
|
+
type: AXPEntityQueryType.Single,
|
2113
|
+
},
|
2114
|
+
list: {
|
2115
|
+
execute: async (e) => {
|
2116
|
+
return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
|
2117
|
+
},
|
2118
|
+
type: AXPEntityQueryType.List,
|
2119
|
+
},
|
2120
|
+
},
|
2121
|
+
interfaces: {
|
2122
|
+
master: {
|
2123
|
+
create: {
|
2124
|
+
sections: [
|
2125
|
+
{
|
2126
|
+
id: 'section',
|
2127
|
+
},
|
2128
|
+
],
|
2129
|
+
properties: [
|
2130
|
+
{
|
2131
|
+
name: 'name',
|
2132
|
+
layout: {
|
2133
|
+
positions: {
|
2134
|
+
lg: {
|
2135
|
+
colSpan: 6,
|
2136
|
+
},
|
2137
|
+
},
|
2138
|
+
},
|
2139
|
+
},
|
2140
|
+
{
|
2141
|
+
name: 'title',
|
2142
|
+
layout: {
|
2143
|
+
positions: {
|
2144
|
+
lg: {
|
2145
|
+
colSpan: 6,
|
2146
|
+
},
|
2147
|
+
},
|
2148
|
+
},
|
2149
|
+
},
|
2150
|
+
{
|
2151
|
+
name: 'description',
|
2152
|
+
layout: {
|
2153
|
+
positions: {
|
2154
|
+
lg: {
|
2155
|
+
colSpan: 12,
|
2156
|
+
},
|
2157
|
+
},
|
2158
|
+
},
|
2159
|
+
},
|
2160
|
+
{
|
2161
|
+
name: 'categoryIds',
|
2162
|
+
layout: {
|
2163
|
+
positions: {
|
2164
|
+
lg: {
|
2165
|
+
colSpan: 6,
|
2166
|
+
},
|
2167
|
+
},
|
2168
|
+
},
|
2169
|
+
},
|
2170
|
+
{
|
2171
|
+
name: 'interface',
|
2172
|
+
layout: {
|
2173
|
+
positions: {
|
2174
|
+
lg: {
|
2175
|
+
colSpan: 6,
|
2176
|
+
},
|
2177
|
+
},
|
2178
|
+
},
|
2179
|
+
},
|
2180
|
+
],
|
2181
|
+
},
|
2182
|
+
update: {
|
2183
|
+
sections: [
|
2184
|
+
{
|
2185
|
+
id: 'section',
|
2186
|
+
},
|
2187
|
+
],
|
2188
|
+
properties: [
|
2189
|
+
{
|
2190
|
+
name: 'name',
|
2191
|
+
layout: {
|
2192
|
+
positions: {
|
2193
|
+
lg: {
|
2194
|
+
colSpan: 6,
|
2195
|
+
},
|
2196
|
+
},
|
2197
|
+
},
|
2198
|
+
},
|
2199
|
+
{
|
2200
|
+
name: 'title',
|
2201
|
+
layout: {
|
2202
|
+
positions: {
|
2203
|
+
lg: {
|
2204
|
+
colSpan: 6,
|
2205
|
+
},
|
2206
|
+
},
|
2207
|
+
},
|
2208
|
+
},
|
2209
|
+
{
|
2210
|
+
name: 'description',
|
2211
|
+
layout: {
|
2212
|
+
positions: {
|
2213
|
+
lg: {
|
2214
|
+
colSpan: 12,
|
2215
|
+
},
|
2216
|
+
},
|
2217
|
+
},
|
2218
|
+
},
|
2219
|
+
{
|
2220
|
+
name: 'categoryIds',
|
2221
|
+
layout: {
|
2222
|
+
positions: {
|
2223
|
+
lg: {
|
2224
|
+
colSpan: 6,
|
2225
|
+
},
|
2226
|
+
},
|
2227
|
+
},
|
2228
|
+
},
|
2229
|
+
{
|
2230
|
+
name: 'interface',
|
2231
|
+
layout: {
|
2232
|
+
positions: {
|
2233
|
+
lg: {
|
2234
|
+
colSpan: 6,
|
2235
|
+
},
|
2236
|
+
},
|
2237
|
+
},
|
2238
|
+
},
|
2239
|
+
],
|
2240
|
+
},
|
2241
|
+
single: {
|
2242
|
+
title: '{{title}}',
|
2243
|
+
sections: [
|
2244
|
+
{
|
2245
|
+
id: 'section',
|
2246
|
+
layout: {
|
2247
|
+
positions: {
|
2248
|
+
lg: {
|
2249
|
+
colSpan: 12,
|
2250
|
+
},
|
2251
|
+
},
|
2252
|
+
},
|
2253
|
+
},
|
2254
|
+
],
|
2255
|
+
properties: [
|
2256
|
+
{
|
2257
|
+
name: 'name',
|
2258
|
+
layout: {
|
2259
|
+
positions: {
|
2260
|
+
lg: {
|
2261
|
+
colSpan: 6,
|
2262
|
+
},
|
2263
|
+
},
|
2264
|
+
},
|
2265
|
+
},
|
2266
|
+
{
|
2267
|
+
name: 'title',
|
2268
|
+
layout: {
|
2269
|
+
positions: {
|
2270
|
+
lg: {
|
2271
|
+
colSpan: 6,
|
2272
|
+
},
|
2273
|
+
},
|
2274
|
+
},
|
2275
|
+
},
|
2276
|
+
{
|
2277
|
+
name: 'description',
|
2278
|
+
layout: {
|
2279
|
+
positions: {
|
2280
|
+
lg: {
|
2281
|
+
colSpan: 12,
|
2282
|
+
},
|
2283
|
+
},
|
2284
|
+
},
|
2285
|
+
},
|
2286
|
+
{
|
2287
|
+
name: 'categoryIds',
|
2288
|
+
dataPath: 'categories',
|
2289
|
+
layout: {
|
2290
|
+
positions: {
|
2291
|
+
lg: {
|
2292
|
+
colSpan: 6,
|
2293
|
+
},
|
2294
|
+
},
|
2295
|
+
},
|
2296
|
+
},
|
2297
|
+
{
|
2298
|
+
name: 'interface',
|
2299
|
+
layout: {
|
2300
|
+
positions: {
|
2301
|
+
lg: {
|
2302
|
+
colSpan: 6,
|
2303
|
+
},
|
2304
|
+
},
|
2305
|
+
},
|
2306
|
+
},
|
2307
|
+
],
|
2308
|
+
actions: [],
|
2309
|
+
},
|
2310
|
+
list: {
|
2311
|
+
actions: [
|
2312
|
+
{
|
2313
|
+
title: `t("create", { scope: "common" })`,
|
2314
|
+
command: 'create-entity',
|
2315
|
+
priority: 'primary',
|
2316
|
+
type: 'create',
|
2317
|
+
scope: AXPEntityCommandScope.TypeLevel,
|
2318
|
+
},
|
2319
|
+
{
|
2320
|
+
title: 't("deleteItems", { scope: "common" })',
|
2321
|
+
command: 'delete-entity',
|
2322
|
+
priority: 'primary',
|
2323
|
+
type: 'delete',
|
2324
|
+
scope: AXPEntityCommandScope.Selected,
|
2325
|
+
},
|
2326
|
+
{
|
2327
|
+
title: 't("detail", { scope: "common" })',
|
2328
|
+
command: 'open-entity',
|
2329
|
+
priority: 'secondary',
|
2330
|
+
type: 'view',
|
2331
|
+
scope: AXPEntityCommandScope.Individual,
|
2332
|
+
},
|
2333
|
+
{
|
2334
|
+
title: 't("delete", { scope: "common" })',
|
2335
|
+
command: 'delete-entity',
|
2336
|
+
priority: 'secondary',
|
2337
|
+
type: 'delete',
|
2338
|
+
scope: AXPEntityCommandScope.Individual,
|
2339
|
+
},
|
2340
|
+
],
|
2341
|
+
views: [createAllQueryView({ sorts: [{ name: 'title', dir: 'asc' }] })],
|
2342
|
+
},
|
2343
|
+
},
|
2344
|
+
},
|
2345
|
+
};
|
2346
|
+
return entityDef;
|
2347
|
+
}
|
2348
|
+
|
2349
|
+
class AXMMetaDataDefinitionCategoryService extends AXMEntityCrudServiceImpl {
|
2350
|
+
}
|
2351
|
+
class AXMMetaDataDefinitionCategoryServiceImpl extends AXMMetaDataDefinitionCategoryService {
|
2352
|
+
constructor() {
|
2353
|
+
super(`${RootConfig.module.name}.${RootConfig.entities.metaDataDefinitionCategory.name}`);
|
2354
|
+
}
|
2355
|
+
getAllWithItems() {
|
2356
|
+
throw new Error('Not implemented');
|
2357
|
+
}
|
2358
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMMetaDataDefinitionCategoryServiceImpl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
2359
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMMetaDataDefinitionCategoryServiceImpl }); }
|
2360
|
+
}
|
2361
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMMetaDataDefinitionCategoryServiceImpl, decorators: [{
|
2362
|
+
type: Injectable
|
2363
|
+
}], ctorParameters: () => [] });
|
2364
|
+
|
2365
|
+
async function metaDataDefinitionCategoryEntityFactory(injector) {
|
2366
|
+
const dataService = injector.get(AXMMetaDataDefinitionCategoryService);
|
2367
|
+
const i18n = RootConfig.config.i18n;
|
2368
|
+
const entityDef = {
|
2369
|
+
module: RootConfig.module.name,
|
2370
|
+
name: RootConfig.entities.metaDataDefinitionCategory.name,
|
2371
|
+
parentKey: 'parentId',
|
2372
|
+
source: '',
|
2373
|
+
title: RootConfig.entities.metaDataDefinitionCategory.title,
|
2374
|
+
formats: {
|
2375
|
+
individual: `t("metaDataDefinitionCategory", { scope: "${i18n}" })`,
|
2376
|
+
plural: `t("metaDataDefinitionCategories", { scope: "${i18n}" })`,
|
2377
|
+
searchResult: {
|
2378
|
+
title: '{{ title }}',
|
2379
|
+
description: RootConfig.module.title,
|
2380
|
+
},
|
2381
|
+
},
|
2382
|
+
relatedEntities: [],
|
2383
|
+
groups: [
|
2384
|
+
{
|
2385
|
+
id: 'section',
|
2386
|
+
title: `t("metaDataDefinitionCategory", { scope: "common" })`,
|
2387
|
+
},
|
2388
|
+
],
|
2389
|
+
properties: [
|
2390
|
+
{
|
2391
|
+
name: 'title',
|
2392
|
+
title: `t("title",{ scope: "common" })`,
|
2393
|
+
groupId: 'section',
|
2394
|
+
schema: {
|
2395
|
+
dataType: 'string',
|
2396
|
+
interface: {
|
2397
|
+
type: AXPWidgetsCatalog.text,
|
2398
|
+
options: {
|
2399
|
+
width: '400px',
|
2400
|
+
},
|
2401
|
+
},
|
2402
|
+
},
|
2403
|
+
validations: [
|
2404
|
+
{
|
2405
|
+
rule: 'required',
|
2406
|
+
},
|
2407
|
+
],
|
2408
|
+
},
|
2409
|
+
{
|
2410
|
+
name: 'parentId',
|
2411
|
+
title: `t("parent",{ scope: "${i18n}" })`,
|
2412
|
+
groupId: 'section',
|
2413
|
+
schema: {
|
2414
|
+
dataType: 'string',
|
2415
|
+
interface: {
|
2416
|
+
type: AXPWidgetsCatalog.lookup,
|
2417
|
+
options: {
|
2418
|
+
entity: `${RootConfig.module.name}.${RootConfig.entities.metaDataDefinitionCategory.name}`,
|
2419
|
+
},
|
2420
|
+
},
|
2421
|
+
},
|
2422
|
+
},
|
2423
|
+
],
|
2424
|
+
columns: [{ name: 'title' }],
|
2425
|
+
commands: {
|
2426
|
+
create: {
|
2427
|
+
execute: async (data) => {
|
2428
|
+
const res = await dataService.insertOne(data);
|
2429
|
+
return { id: res };
|
2430
|
+
},
|
2431
|
+
},
|
2432
|
+
delete: {
|
2433
|
+
execute: async (id) => {
|
2434
|
+
return await dataService.deleteOne(id);
|
2435
|
+
},
|
2436
|
+
},
|
2437
|
+
update: {
|
2438
|
+
execute: async (data) => {
|
2439
|
+
return await dataService.updateOne(data.id, data);
|
2440
|
+
},
|
2441
|
+
},
|
2442
|
+
},
|
2443
|
+
queries: {
|
2444
|
+
byKey: {
|
2445
|
+
execute: async (id) => {
|
2446
|
+
return await dataService.getOne(id);
|
2447
|
+
},
|
2448
|
+
type: AXPEntityQueryType.Single,
|
2449
|
+
},
|
2450
|
+
list: {
|
2451
|
+
execute: async (e) => {
|
2452
|
+
return await dataService.query({ skip: e.skip, take: e.take, filter: e.filter });
|
2453
|
+
},
|
2454
|
+
type: AXPEntityQueryType.List,
|
2455
|
+
},
|
2456
|
+
},
|
2457
|
+
interfaces: {
|
2458
|
+
master: {
|
2459
|
+
create: {
|
2460
|
+
sections: [
|
2461
|
+
{
|
2462
|
+
id: 'section',
|
2463
|
+
},
|
2464
|
+
],
|
2465
|
+
properties: [
|
2466
|
+
{
|
2467
|
+
name: 'title',
|
2468
|
+
layout: {
|
2469
|
+
positions: {
|
2470
|
+
lg: {
|
2471
|
+
colSpan: 12,
|
2472
|
+
},
|
2473
|
+
},
|
2474
|
+
},
|
2475
|
+
},
|
2476
|
+
{
|
2477
|
+
name: 'parentId',
|
2478
|
+
layout: {
|
2479
|
+
positions: {
|
2480
|
+
lg: {
|
2481
|
+
colSpan: 12,
|
2482
|
+
},
|
2483
|
+
},
|
2484
|
+
},
|
2485
|
+
},
|
2486
|
+
],
|
2487
|
+
},
|
2488
|
+
update: {
|
2489
|
+
sections: [
|
2490
|
+
{
|
2491
|
+
id: 'section',
|
2492
|
+
},
|
2493
|
+
],
|
2494
|
+
properties: [
|
2495
|
+
{
|
2496
|
+
name: 'title',
|
2497
|
+
layout: {
|
2498
|
+
positions: {
|
2499
|
+
lg: {
|
2500
|
+
colSpan: 12,
|
2501
|
+
},
|
2502
|
+
},
|
2503
|
+
},
|
2504
|
+
},
|
2505
|
+
{
|
2506
|
+
name: 'parentId',
|
2507
|
+
layout: {
|
2508
|
+
positions: {
|
2509
|
+
lg: {
|
2510
|
+
colSpan: 12,
|
2511
|
+
},
|
2512
|
+
},
|
2513
|
+
},
|
2514
|
+
},
|
2515
|
+
],
|
2516
|
+
},
|
2517
|
+
single: {
|
2518
|
+
title: '{{title}}',
|
2519
|
+
sections: [
|
2520
|
+
{
|
2521
|
+
id: 'section',
|
2522
|
+
layout: {
|
2523
|
+
positions: {
|
2524
|
+
lg: {
|
2525
|
+
colSpan: 12,
|
2526
|
+
},
|
2527
|
+
},
|
2528
|
+
},
|
2529
|
+
},
|
2530
|
+
],
|
2531
|
+
properties: [
|
2532
|
+
{
|
2533
|
+
name: 'title',
|
2534
|
+
layout: {
|
2535
|
+
positions: {
|
2536
|
+
lg: {
|
2537
|
+
colSpan: 6,
|
2538
|
+
},
|
2539
|
+
},
|
2540
|
+
},
|
2541
|
+
},
|
2542
|
+
],
|
2543
|
+
actions: [],
|
2544
|
+
},
|
2545
|
+
list: {
|
2546
|
+
actions: [
|
2547
|
+
{
|
2548
|
+
title: `t("create", { scope: "common" })`,
|
2549
|
+
command: 'create-entity',
|
2550
|
+
priority: 'primary',
|
2551
|
+
type: 'create',
|
2552
|
+
scope: AXPEntityCommandScope.TypeLevel,
|
2553
|
+
},
|
2554
|
+
{
|
2555
|
+
title: 't("deleteItems", { scope: "common" })',
|
2556
|
+
command: 'delete-entity',
|
2557
|
+
priority: 'primary',
|
2558
|
+
type: 'delete',
|
2559
|
+
scope: AXPEntityCommandScope.Selected,
|
2560
|
+
},
|
2561
|
+
{
|
2562
|
+
title: 't("detail", { scope: "common" })',
|
2563
|
+
command: 'open-entity',
|
2564
|
+
priority: 'secondary',
|
2565
|
+
type: 'view',
|
2566
|
+
scope: AXPEntityCommandScope.Individual,
|
2567
|
+
},
|
2568
|
+
{
|
2569
|
+
title: 't("delete", { scope: "common" })',
|
2570
|
+
command: 'delete-entity',
|
2571
|
+
priority: 'secondary',
|
2572
|
+
type: 'delete',
|
2573
|
+
scope: AXPEntityCommandScope.Individual,
|
2574
|
+
},
|
2575
|
+
],
|
2576
|
+
views: [createAllQueryView()],
|
2577
|
+
},
|
2578
|
+
},
|
2579
|
+
},
|
2580
|
+
};
|
2581
|
+
return entityDef;
|
2582
|
+
}
|
2583
|
+
|
2584
|
+
// Option 1: Class implementation
|
2585
|
+
// export class MetaDataDefinitionCategory implements AXMMetaDataDefinitionCategoryEntityModel {
|
2586
|
+
// id?: string;
|
2587
|
+
// title: string;
|
2588
|
+
// parentId?: string;
|
2589
|
+
// createdAt?: Date;
|
2590
|
+
// updatedAt?: Date;
|
2591
|
+
// createdBy?: string;
|
2592
|
+
// updatedBy?: string;
|
2593
|
+
// constructor(data: Omit<AXMMetaDataDefinitionCategoryEntityModel, 'x'>) {
|
2594
|
+
// this.id = data.id;
|
2595
|
+
// this.title = data.title;
|
2596
|
+
// this.parentId = data.parentId;
|
2597
|
+
// this.createdAt = data.createdAt;
|
2598
|
+
// this.updatedAt = data.updatedAt;
|
2599
|
+
// this.createdBy = data.createdBy;
|
2600
|
+
// this.updatedBy = data.updatedBy;
|
2601
|
+
// }
|
2602
|
+
// // Getter for x property
|
2603
|
+
// get x(): string {
|
2604
|
+
// return this.parentId ? `${this.title}_${this.parentId}` : this.title;
|
2605
|
+
// }
|
2606
|
+
// }
|
2607
|
+
// // Option 2: Factory function
|
2608
|
+
// export function createMetaDataDefinitionCategory(
|
2609
|
+
// data: Omit<AXMMetaDataDefinitionCategoryEntityModel, 'x'>
|
2610
|
+
// ): AXMMetaDataDefinitionCategoryEntityModel {
|
2611
|
+
// return {
|
2612
|
+
// ...data,
|
2613
|
+
// get x() {
|
2614
|
+
// return this.parentId ? `${this.title}_${this.parentId}` : this.title;
|
2615
|
+
// },
|
2616
|
+
// };
|
2617
|
+
// }
|
2618
|
+
|
2619
|
+
var index = /*#__PURE__*/Object.freeze({
|
2620
|
+
__proto__: null,
|
2621
|
+
AXMAppTermService: AXMAppTermService,
|
2622
|
+
AXMAppTermServiceImpl: AXMAppTermServiceImpl,
|
2623
|
+
AXMAppVersionService: AXMAppVersionService,
|
2624
|
+
AXMAppVersionServiceImpl: AXMAppVersionServiceImpl,
|
2625
|
+
AXMAppVersionSlotComponent: AXMAppVersionSlotComponent,
|
2626
|
+
AXMChangeLogPopupAction: AXMChangeLogPopupAction,
|
2627
|
+
AXMChangeLogUpdateSettingAction: AXMChangeLogUpdateSettingAction,
|
2628
|
+
AXMCheckNewVersionAction: AXMCheckNewVersionAction,
|
2629
|
+
AXMCheckNewVersionWorkflow: AXMCheckNewVersionWorkflow,
|
2630
|
+
AXMGlobalVariablesService: AXMGlobalVariablesService,
|
2631
|
+
AXMGlobalVariablesServiceImpl: AXMGlobalVariablesServiceImpl,
|
2632
|
+
AXMGlossaryService: AXMGlossaryService,
|
2633
|
+
AXMGlossaryServiceImpl: AXMGlossaryServiceImpl,
|
2634
|
+
AXMListTermsComponent: AXMListTermsComponent,
|
2635
|
+
AXMMetaDataDefinitionCategoryService: AXMMetaDataDefinitionCategoryService,
|
2636
|
+
AXMMetaDataDefinitionCategoryServiceImpl: AXMMetaDataDefinitionCategoryServiceImpl,
|
2637
|
+
AXMMetaDataDefinitionService: AXMMetaDataDefinitionService,
|
2638
|
+
AXMNewTermWorkflow: AXMNewTermWorkflow,
|
2639
|
+
AXMNotifyAppComponent: AXMNotifyAppComponent,
|
2640
|
+
AXMNotifyNewTermPopupAction: AXMNotifyNewTermPopupAction,
|
2641
|
+
AXMPMetaDataDefinitionServiceImpl: AXMPMetaDataDefinitionServiceImpl,
|
2642
|
+
AXMTermUpdateSettingAction: AXMTermUpdateSettingAction,
|
2643
|
+
AXMWhatsNewWorkflow: AXMWhatsNewWorkflow,
|
2644
|
+
appTermEntityEntityFactory: appTermEntityEntityFactory,
|
2645
|
+
appVersionEntityEntityFactory: appVersionEntityEntityFactory,
|
2646
|
+
globalVariableEntityFactory: globalVariableEntityFactory,
|
2647
|
+
glossaryEntityFactory: glossaryEntityFactory,
|
2648
|
+
metaDataDefinitionCategoryEntityFactory: metaDataDefinitionCategoryEntityFactory,
|
2649
|
+
metaDataDefinitionFactory: metaDataDefinitionFactory
|
2650
|
+
});
|
2651
|
+
|
2652
|
+
class AXMEntityLoader {
|
2653
|
+
constructor() {
|
2654
|
+
this.injector = inject(Injector);
|
2655
|
+
}
|
2656
|
+
preload() {
|
2657
|
+
const module = RootConfig.module.name;
|
2658
|
+
return Array.from(Object.values(RootConfig.entities)).map((entity) => ({
|
2659
|
+
module: module,
|
2660
|
+
entity: entity.name,
|
2661
|
+
}));
|
2662
|
+
}
|
2663
|
+
async get(moduleName, entityName) {
|
2664
|
+
if (moduleName == RootConfig.module.name) {
|
2665
|
+
return new Promise(async (resolve) => {
|
2666
|
+
switch (entityName) {
|
2667
|
+
case RootConfig.entities.glossary.name: {
|
2668
|
+
const entity = (await Promise.resolve().then(function () { return index; })).glossaryEntityFactory;
|
2669
|
+
resolve(entity(this.injector));
|
2670
|
+
break;
|
2671
|
+
}
|
2672
|
+
case RootConfig.entities.globalVariable.name: {
|
2673
|
+
const entity = (await Promise.resolve().then(function () { return index; })).globalVariableEntityFactory;
|
2674
|
+
resolve(entity(this.injector));
|
2675
|
+
break;
|
2676
|
+
}
|
2677
|
+
case RootConfig.entities.appVersion.name: {
|
2678
|
+
const entity = (await Promise.resolve().then(function () { return index; })).appVersionEntityEntityFactory;
|
2679
|
+
resolve(entity(this.injector));
|
2680
|
+
break;
|
2681
|
+
}
|
2682
|
+
case RootConfig.entities.appTerm.name: {
|
2683
|
+
const entity = (await Promise.resolve().then(function () { return index; })).appTermEntityEntityFactory;
|
2684
|
+
resolve(entity(this.injector));
|
2685
|
+
break;
|
2686
|
+
}
|
2687
|
+
case RootConfig.entities.metaDataDefinitionCategory.name: {
|
2688
|
+
const entity = (await Promise.resolve().then(function () { return index; })).metaDataDefinitionCategoryEntityFactory;
|
2689
|
+
resolve(entity(this.injector));
|
2690
|
+
break;
|
2691
|
+
}
|
2692
|
+
case RootConfig.entities.metaDataDefinition.name: {
|
2693
|
+
const entity = (await Promise.resolve().then(function () { return index; })).metaDataDefinitionFactory;
|
2694
|
+
resolve(entity(this.injector));
|
2695
|
+
break;
|
2696
|
+
}
|
2697
|
+
default:
|
2698
|
+
resolve(null);
|
2699
|
+
}
|
2700
|
+
});
|
2701
|
+
}
|
2702
|
+
return null;
|
2703
|
+
}
|
2704
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMEntityLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
2705
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMEntityLoader }); }
|
2706
|
+
}
|
2707
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMEntityLoader, decorators: [{
|
2708
|
+
type: Injectable
|
2709
|
+
}] });
|
2710
|
+
|
2711
|
+
var AXPApplicationTermsSettings;
|
2712
|
+
(function (AXPApplicationTermsSettings) {
|
2713
|
+
AXPApplicationTermsSettings["ApplicationTerms"] = "general:startup:application-terms";
|
2714
|
+
})(AXPApplicationTermsSettings || (AXPApplicationTermsSettings = {}));
|
2715
|
+
|
2716
|
+
class AppTermsCheckService {
|
2717
|
+
constructor() {
|
2718
|
+
this.settingsService = inject(AXPSettingService);
|
2719
|
+
this.workflowService = inject(AXPWorkflowService);
|
2720
|
+
this.appTermService = inject(AXMAppTermService);
|
2721
|
+
this.appInitService = inject(AXPAppStartUpService);
|
2722
|
+
this.sessionService = inject(AXPSessionService);
|
2723
|
+
this.appInitService.registerTask({
|
2724
|
+
name: 'Terms',
|
2725
|
+
statusText: 'Check New Terms And Conditions...',
|
2726
|
+
priority: 6,
|
2727
|
+
run: async () => {
|
2728
|
+
this.sessionService.application$.subscribe(async (app) => {
|
2729
|
+
if (app != null) {
|
2730
|
+
const filterTerms = [];
|
2731
|
+
const terms = await this.appTermService.query();
|
2732
|
+
for (const term of terms.items) {
|
2733
|
+
const isConfirm = await this.settingsService
|
2734
|
+
.scope(AXPPlatformScope.User)
|
2735
|
+
.get(`is-confirm-term-${term.id}`);
|
2736
|
+
const isEnableToShow = await this.settingsService
|
2737
|
+
.scope(AXPPlatformScope.User)
|
2738
|
+
.get(AXPApplicationTermsSettings.ApplicationTerms);
|
2739
|
+
if (!isConfirm && isEnableToShow) {
|
2740
|
+
filterTerms.push(term);
|
2741
|
+
}
|
2742
|
+
}
|
2743
|
+
if (filterTerms.length > 0) {
|
2744
|
+
setTimeout(() => {
|
2745
|
+
this.workflowService.execute('new-term', filterTerms);
|
2746
|
+
}, 500);
|
2747
|
+
}
|
2748
|
+
}
|
2749
|
+
});
|
2750
|
+
},
|
2751
|
+
});
|
2752
|
+
}
|
2753
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AppTermsCheckService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
2754
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AppTermsCheckService }); }
|
2755
|
+
}
|
2756
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AppTermsCheckService, decorators: [{
|
2757
|
+
type: Injectable
|
2758
|
+
}], ctorParameters: () => [] });
|
2759
|
+
|
2760
|
+
class AXMShowReleaseNotesPopupAction extends AXPWorkflowAction {
|
2761
|
+
constructor() {
|
2762
|
+
super(...arguments);
|
2763
|
+
this.popupService = inject(AXPopupService);
|
2764
|
+
}
|
2765
|
+
async execute(context) {
|
2766
|
+
const scope = RootConfig.config.i18n;
|
2767
|
+
const comp = (await import('./acorex-modules-platform-management-list-version.component-BOfUQDwo.mjs')).AXMListVersionComponent;
|
2768
|
+
this.popupService.open(comp, {
|
2769
|
+
title: `t('release-notes',{scope: "${scope}"})`,
|
2770
|
+
});
|
2771
|
+
}
|
2772
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMShowReleaseNotesPopupAction, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
2773
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMShowReleaseNotesPopupAction }); }
|
2774
|
+
}
|
2775
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMShowReleaseNotesPopupAction, decorators: [{
|
2776
|
+
type: Injectable
|
2777
|
+
}] });
|
2778
|
+
const AXMShowReleaseNotesWorkflow = {
|
2779
|
+
startStepId: 'show-popup',
|
2780
|
+
steps: {
|
2781
|
+
'show-popup': {
|
2782
|
+
action: 'AXMShowReleaseNotesPopupAction',
|
2783
|
+
},
|
2784
|
+
},
|
2785
|
+
};
|
2786
|
+
|
2787
|
+
var AXPReleaseNotesSettings;
|
2788
|
+
(function (AXPReleaseNotesSettings) {
|
2789
|
+
AXPReleaseNotesSettings["ReleaseNotes"] = "general:startup:release-notes";
|
2790
|
+
})(AXPReleaseNotesSettings || (AXPReleaseNotesSettings = {}));
|
2791
|
+
|
2792
|
+
class AXPReleaseNotesSettingProvider {
|
2793
|
+
constructor(injector) {
|
2794
|
+
this.injector = injector;
|
2795
|
+
this.translateService = this.injector.get(AXTranslationService);
|
2796
|
+
}
|
2797
|
+
async provide(context) {
|
2798
|
+
const trans = async (key) => await this.translateService.translateAsync(`settings.${key}`, { scope: 'general' });
|
2799
|
+
// Find the 'General Settings' group
|
2800
|
+
const group = context.group('general');
|
2801
|
+
if (!group) {
|
2802
|
+
return;
|
2803
|
+
}
|
2804
|
+
// Find the 'Startup' section
|
2805
|
+
const section = group.section('startup');
|
2806
|
+
if (!section) {
|
2807
|
+
return;
|
2808
|
+
}
|
2809
|
+
// Add the 'Release Notes' setting
|
2810
|
+
section.addSetting({
|
2811
|
+
key: AXPReleaseNotesSettings.ReleaseNotes,
|
2812
|
+
title: await trans('general.startup.release-notes.title'),
|
2813
|
+
scope: AXPPlatformScope.User,
|
2814
|
+
isInherited: true,
|
2815
|
+
defaultValue: false,
|
2816
|
+
valueTransforms: objectKeyValueTransforms('id'),
|
2817
|
+
widget: {
|
2818
|
+
type: AXPWidgetsCatalog.toggle,
|
2819
|
+
options: {
|
2820
|
+
label: null,
|
2821
|
+
}
|
2822
|
+
},
|
2823
|
+
description: await trans('general.startup.release-notes.description'),
|
2824
|
+
});
|
2825
|
+
}
|
2826
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPReleaseNotesSettingProvider, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
2827
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPReleaseNotesSettingProvider }); }
|
2828
|
+
}
|
2829
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPReleaseNotesSettingProvider, decorators: [{
|
2830
|
+
type: Injectable
|
2831
|
+
}], ctorParameters: () => [{ type: i0.Injector }] });
|
2832
|
+
|
2833
|
+
class AXPUpdaterService {
|
2834
|
+
constructor() {
|
2835
|
+
const swUpdate = inject(SwUpdate, { optional: true });
|
2836
|
+
const dialogService = inject(AXDialogService);
|
2837
|
+
const translateService = inject(AXTranslationService);
|
2838
|
+
if (swUpdate?.isEnabled) {
|
2839
|
+
swUpdate.versionUpdates.subscribe((event) => {
|
2840
|
+
if (event.type === 'VERSION_READY') {
|
2841
|
+
console.log('New version available');
|
2842
|
+
const scope = RootConfig.config.i18n;
|
2843
|
+
const dialog = dialogService.open({
|
2844
|
+
icon: 'fa-regular fa-info',
|
2845
|
+
content: translateService.translateSync('updater.content', { scope: scope }),
|
2846
|
+
title: translateService.translateSync('updater.title', { scope: scope }),
|
2847
|
+
type: 'primary',
|
2848
|
+
orientation: 'horizontal',
|
2849
|
+
buttons: [
|
2850
|
+
{
|
2851
|
+
text: translateService.translateSync('updater.update', { scope: scope }),
|
2852
|
+
color: 'primary',
|
2853
|
+
onClick: async (e) => {
|
2854
|
+
try {
|
2855
|
+
document.location.reload();
|
2856
|
+
dialog.close();
|
2857
|
+
}
|
2858
|
+
catch (error) {
|
2859
|
+
console.error(error);
|
2860
|
+
}
|
2861
|
+
},
|
2862
|
+
},
|
2863
|
+
{
|
2864
|
+
text: translateService.translateSync('updater.cancel', { scope: scope }),
|
2865
|
+
color: 'default',
|
2866
|
+
autofocus: true,
|
2867
|
+
onClick: (e) => {
|
2868
|
+
dialog.close();
|
2869
|
+
},
|
2870
|
+
},
|
2871
|
+
],
|
2872
|
+
closeButton: false,
|
2873
|
+
});
|
2874
|
+
}
|
2875
|
+
});
|
2876
|
+
}
|
2877
|
+
}
|
2878
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPUpdaterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
2879
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPUpdaterService, providedIn: 'root' }); }
|
2880
|
+
}
|
2881
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXPUpdaterService, decorators: [{
|
2882
|
+
type: Injectable,
|
2883
|
+
args: [{ providedIn: 'root' }]
|
2884
|
+
}], ctorParameters: () => [] });
|
2885
|
+
|
2886
|
+
class AXMUpdaterModule {
|
2887
|
+
constructor(updaterService) {
|
2888
|
+
this.updaterService = updaterService;
|
2889
|
+
}
|
2890
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMUpdaterModule, deps: [{ token: AXPUpdaterService }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
2891
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXMUpdaterModule }); }
|
2892
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMUpdaterModule, providers: [AXPUpdaterService] }); }
|
2893
|
+
}
|
2894
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMUpdaterModule, decorators: [{
|
2895
|
+
type: NgModule,
|
2896
|
+
args: [{
|
2897
|
+
imports: [],
|
2898
|
+
exports: [],
|
2899
|
+
declarations: [],
|
2900
|
+
providers: [AXPUpdaterService],
|
2901
|
+
}]
|
2902
|
+
}], ctorParameters: () => [{ type: AXPUpdaterService }] });
|
2903
|
+
|
2904
|
+
class AXMMenuProvider {
|
2905
|
+
constructor() {
|
2906
|
+
this.entityService = inject(AXPEntityService);
|
2907
|
+
this.sessionService = inject(AXPSessionService);
|
2908
|
+
}
|
2909
|
+
async provide(context) {
|
2910
|
+
const scope = RootConfig.config.i18n;
|
2911
|
+
const appName = this.sessionService.application?.name;
|
2912
|
+
const module = RootConfig.module;
|
2913
|
+
//
|
2914
|
+
context.addItems([
|
2915
|
+
{
|
2916
|
+
name: 'app-help',
|
2917
|
+
text: `t('help',{scope: "${scope}"})`,
|
2918
|
+
icon: 'fa-light fa-circle-question',
|
2919
|
+
priority: 100000,
|
2920
|
+
data: {
|
2921
|
+
requiredPermission: 'platform',
|
2922
|
+
},
|
2923
|
+
children: [
|
2924
|
+
{
|
2925
|
+
name: 'app-help-center',
|
2926
|
+
text: `t('help-center',{scope: "${scope}"})`,
|
2927
|
+
icon: 'fa-light fa-book-open',
|
2928
|
+
priority: 100001,
|
2929
|
+
},
|
2930
|
+
{
|
2931
|
+
name: 'app-help-tutorials',
|
2932
|
+
text: `t('tutorials',{scope: "${scope}"})`,
|
2933
|
+
icon: 'fa-light fa-clapperboard-play',
|
2934
|
+
priority: 100002,
|
2935
|
+
},
|
2936
|
+
{
|
2937
|
+
name: 'app-release-notes',
|
2938
|
+
text: `t('release-notes',{scope: "${scope}"})`,
|
2939
|
+
icon: 'fa-light fa-memo-pad',
|
2940
|
+
command: {
|
2941
|
+
name: 'show-release-notes',
|
2942
|
+
},
|
2943
|
+
priority: 100003,
|
2944
|
+
},
|
2945
|
+
{
|
2946
|
+
text: 'break',
|
2947
|
+
type: 'break',
|
2948
|
+
priority: 100004,
|
2949
|
+
},
|
2950
|
+
{
|
2951
|
+
name: 'app-terms',
|
2952
|
+
text: `t('terms-conditions',{scope: "${scope}"})`,
|
2953
|
+
icon: 'fa-light fa-circle-info',
|
2954
|
+
path: `${appName}/terms`,
|
2955
|
+
priority: 100031,
|
2956
|
+
},
|
2957
|
+
{
|
2958
|
+
name: 'app-about',
|
2959
|
+
text: `t('about',{scope: "${scope}"})`,
|
2960
|
+
icon: 'fa-light fa-circle-info',
|
2961
|
+
priority: 100032,
|
2962
|
+
},
|
2963
|
+
{
|
2964
|
+
text: 'break',
|
2965
|
+
type: 'break',
|
2966
|
+
priority: 100030,
|
2967
|
+
},
|
2968
|
+
],
|
2969
|
+
},
|
2970
|
+
]);
|
2971
|
+
//
|
2972
|
+
const isAuthorized = await firstValueFrom(this.sessionService.isAuthorized$);
|
2973
|
+
if (!isAuthorized) {
|
2974
|
+
return;
|
2975
|
+
}
|
2976
|
+
//
|
2977
|
+
context.addItems([
|
2978
|
+
{
|
2979
|
+
name: 'administration-group',
|
2980
|
+
priority: 2000,
|
2981
|
+
text: `t('administration',{scope: "${scope}"})`,
|
2982
|
+
type: 'group',
|
2983
|
+
data: {
|
2984
|
+
// requiredPermission: 'admin',
|
2985
|
+
},
|
2986
|
+
},
|
2987
|
+
{
|
2988
|
+
text: `t('root-menu', {scope: "${scope}"})`,
|
2989
|
+
icon: 'fa-light fa-square-terminal',
|
2990
|
+
type: 'menu',
|
2991
|
+
name: 'platform-management',
|
2992
|
+
priority: 9100,
|
2993
|
+
data: {
|
2994
|
+
requiredPermission: 'platform',
|
2995
|
+
},
|
2996
|
+
children: [
|
2997
|
+
{
|
2998
|
+
priority: 9001,
|
2999
|
+
text: RootConfig.entities.globalVariable.title,
|
3000
|
+
path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.globalVariable.name),
|
3001
|
+
icon: RootConfig.entities.globalVariable.icon,
|
3002
|
+
data: {
|
3003
|
+
// requiredPermission: '',
|
3004
|
+
},
|
3005
|
+
},
|
3006
|
+
{
|
3007
|
+
priority: 9002,
|
3008
|
+
text: RootConfig.entities.glossary.title,
|
3009
|
+
path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.glossary.name),
|
3010
|
+
icon: RootConfig.entities.glossary.icon,
|
3011
|
+
},
|
3012
|
+
{
|
3013
|
+
priority: 9003,
|
3014
|
+
text: RootConfig.entities.appVersion.title,
|
3015
|
+
path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.appVersion.name),
|
3016
|
+
icon: RootConfig.entities.appVersion.icon,
|
3017
|
+
data: {
|
3018
|
+
// requiredPermission: '',
|
3019
|
+
},
|
3020
|
+
},
|
3021
|
+
{
|
3022
|
+
priority: 9004,
|
3023
|
+
text: RootConfig.entities.appTerm.title,
|
3024
|
+
path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.appTerm.name),
|
3025
|
+
icon: RootConfig.entities.appTerm.icon,
|
3026
|
+
data: {
|
3027
|
+
// requiredPermission: '',
|
3028
|
+
},
|
3029
|
+
},
|
3030
|
+
{
|
3031
|
+
priority: 9008,
|
3032
|
+
text: RootConfig.entities.metaDataDefinition.title,
|
3033
|
+
path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.metaDataDefinition.name),
|
3034
|
+
icon: RootConfig.entities.metaDataDefinition.icon,
|
3035
|
+
data: {
|
3036
|
+
// requiredPermission: '',
|
3037
|
+
},
|
3038
|
+
},
|
3039
|
+
{
|
3040
|
+
priority: 9007,
|
3041
|
+
text: RootConfig.entities.metaDataDefinitionCategory.title,
|
3042
|
+
path: this.entityService.createPath(RootConfig.module.name, RootConfig.entities.metaDataDefinitionCategory.name),
|
3043
|
+
icon: RootConfig.entities.metaDataDefinitionCategory.icon,
|
3044
|
+
},
|
3045
|
+
],
|
3046
|
+
},
|
3047
|
+
]);
|
3048
|
+
}
|
3049
|
+
}
|
3050
|
+
|
3051
|
+
class AXPTaskBoardTaskProvider extends AXPWorkflowTaskProvider {
|
3052
|
+
constructor() {
|
3053
|
+
super(...arguments);
|
3054
|
+
this.calendarService = inject(AXCalendarService);
|
3055
|
+
this.list = [
|
3056
|
+
{
|
3057
|
+
id: 3,
|
3058
|
+
title: 'Deploy new security patch',
|
3059
|
+
startDate: this.calendarService.create(new Date()).add('day', 2).date,
|
3060
|
+
endDate: this.calendarService.create(new Date()).add('day', 3).date,
|
3061
|
+
description: 'Apply critical security patch to all production servers.',
|
3062
|
+
priority: 'highest',
|
3063
|
+
allDay: true,
|
3064
|
+
statusKey: 'todo',
|
3065
|
+
data: {
|
3066
|
+
actions: [
|
3067
|
+
{
|
3068
|
+
name: 'edit',
|
3069
|
+
title: 'Edit',
|
3070
|
+
icon: 'fa-light fa-pencil',
|
3071
|
+
command: { name: 'edit', options: { taskId: 3 } },
|
3072
|
+
},
|
3073
|
+
],
|
3074
|
+
},
|
3075
|
+
},
|
3076
|
+
{
|
3077
|
+
id: 4,
|
3078
|
+
title: 'Monitor server performance',
|
3079
|
+
startDate: this.calendarService.create(new Date()).set('hour', 9).date,
|
3080
|
+
endDate: this.calendarService.create(new Date()).set('hour', 10).add('minute', -30).date,
|
3081
|
+
description: 'Live monitoring of server load during peak hours.',
|
3082
|
+
priority: 'high',
|
3083
|
+
allDay: false,
|
3084
|
+
statusKey: 'todo',
|
3085
|
+
data: {
|
3086
|
+
actions: [
|
3087
|
+
{
|
3088
|
+
name: 'edit',
|
3089
|
+
title: 'Edit',
|
3090
|
+
icon: 'fa-light fa-pencil',
|
3091
|
+
command: { name: 'edit', options: { taskId: 4 } },
|
3092
|
+
},
|
3093
|
+
{
|
3094
|
+
name: 'view-logs',
|
3095
|
+
title: 'View Logs',
|
3096
|
+
icon: 'fa-light fa-file-waveform',
|
3097
|
+
command: { name: 'viewLogs', options: { taskId: 4 } },
|
3098
|
+
},
|
3099
|
+
],
|
3100
|
+
},
|
3101
|
+
},
|
3102
|
+
{
|
3103
|
+
id: 5,
|
3104
|
+
title: 'Weekly database backup',
|
3105
|
+
startDate: this.calendarService.create(new Date()).set('hour', 2).date,
|
3106
|
+
endDate: this.calendarService.create(new Date()).set('hour', 4).date,
|
3107
|
+
description: 'Perform full backup of the main database. System will be in maintenance mode.',
|
3108
|
+
priority: 'medium',
|
3109
|
+
allDay: false,
|
3110
|
+
statusKey: 'in-progress',
|
3111
|
+
readonly: true,
|
3112
|
+
data: {
|
3113
|
+
actions: [
|
3114
|
+
{
|
3115
|
+
name: 'view-status',
|
3116
|
+
title: 'View Status',
|
3117
|
+
icon: 'fa-light fa-circle-info',
|
3118
|
+
command: { name: 'viewStatus', options: { taskId: 5 } },
|
3119
|
+
},
|
3120
|
+
],
|
3121
|
+
},
|
3122
|
+
},
|
3123
|
+
{
|
3124
|
+
id: 6,
|
3125
|
+
title: 'Review user feedback logs',
|
3126
|
+
startDate: this.calendarService.create(new Date()).add('day', 1).date,
|
3127
|
+
endDate: this.calendarService.create(new Date()).add('day', 3).date,
|
3128
|
+
description: 'Analyze logs from the past month to identify common issues.',
|
3129
|
+
priority: 'low',
|
3130
|
+
allDay: true,
|
3131
|
+
statusKey: 'done',
|
3132
|
+
data: {
|
3133
|
+
actions: [
|
3134
|
+
{
|
3135
|
+
name: 'edit',
|
3136
|
+
title: 'Edit',
|
3137
|
+
icon: 'fa-light fa-pencil',
|
3138
|
+
command: { name: 'edit', options: { taskId: 6 } },
|
3139
|
+
},
|
3140
|
+
],
|
3141
|
+
},
|
3142
|
+
},
|
3143
|
+
{
|
3144
|
+
id: 7,
|
3145
|
+
title: 'Renew SSL Certificates',
|
3146
|
+
startDate: this.calendarService.create(new Date()).add('day', 10).date,
|
3147
|
+
endDate: this.calendarService.create(new Date()).add('day', 11).date,
|
3148
|
+
description: 'Renew expiring SSL certificates for *.acorex.com.',
|
3149
|
+
priority: 'high',
|
3150
|
+
allDay: true,
|
3151
|
+
statusKey: 'done',
|
3152
|
+
data: {
|
3153
|
+
actions: [
|
3154
|
+
{
|
3155
|
+
name: 'edit',
|
3156
|
+
title: 'Edit',
|
3157
|
+
icon: 'fa-light fa-pencil',
|
3158
|
+
command: { name: 'edit', options: { taskId: 7 } },
|
3159
|
+
},
|
3160
|
+
],
|
3161
|
+
},
|
3162
|
+
},
|
3163
|
+
];
|
3164
|
+
}
|
3165
|
+
get name() {
|
3166
|
+
return 'platform-tasks';
|
3167
|
+
}
|
3168
|
+
get title() {
|
3169
|
+
return 'Platform Tasks';
|
3170
|
+
}
|
3171
|
+
get icon() {
|
3172
|
+
return 'fa-square-terminal';
|
3173
|
+
}
|
3174
|
+
get statuses() {
|
3175
|
+
return [
|
3176
|
+
{
|
3177
|
+
index: 0,
|
3178
|
+
key: 'todo',
|
3179
|
+
title: 'To Do',
|
3180
|
+
},
|
3181
|
+
{
|
3182
|
+
index: 1,
|
3183
|
+
key: 'in-progress',
|
3184
|
+
title: 'In Progress',
|
3185
|
+
},
|
3186
|
+
{
|
3187
|
+
index: 2,
|
3188
|
+
key: 'done',
|
3189
|
+
title: 'Done',
|
3190
|
+
},
|
3191
|
+
];
|
3192
|
+
}
|
3193
|
+
async getTasks(options) {
|
3194
|
+
return this.list;
|
3195
|
+
}
|
3196
|
+
async updateTaskDateRange(id, range) {
|
3197
|
+
const item = this.list.find((t) => t.id === id);
|
3198
|
+
if (!item) {
|
3199
|
+
throw new Error('Item not found');
|
3200
|
+
}
|
3201
|
+
item.startDate = range.from;
|
3202
|
+
item.endDate = range.end;
|
3203
|
+
if (this.isDurationMoreThan24Hours(item.startDate, item.endDate)) {
|
3204
|
+
item.allDay = true;
|
3205
|
+
}
|
3206
|
+
else {
|
3207
|
+
item.allDay = false;
|
3208
|
+
}
|
3209
|
+
this.list = this.list.map((t) => (t.id === id ? item : t));
|
3210
|
+
return item;
|
3211
|
+
}
|
3212
|
+
async updateMultipleTasks(tasks) {
|
3213
|
+
this.list = tasks;
|
3214
|
+
return this.list;
|
3215
|
+
}
|
3216
|
+
isDurationMoreThan24Hours(date1, date2) {
|
3217
|
+
const millisecondsIn24Hours = 24 * 60 * 60 * 1000 - 1;
|
3218
|
+
const differenceInMilliseconds = Math.abs(date1.getTime() - date2.getTime());
|
3219
|
+
return differenceInMilliseconds >= millisecondsIn24Hours;
|
3220
|
+
}
|
3221
|
+
async executeCommand(command) {
|
3222
|
+
return {
|
3223
|
+
success: true,
|
3224
|
+
};
|
3225
|
+
}
|
3226
|
+
}
|
3227
|
+
|
3228
|
+
/**
|
3229
|
+
* Global variable that returns current ISO date-time string.
|
3230
|
+
*/
|
3231
|
+
class AXMGlobalVariableProvider {
|
3232
|
+
constructor() {
|
3233
|
+
this.name = 'now';
|
3234
|
+
this.title = 'Now';
|
3235
|
+
this.description = 'Current date and time in ISO format';
|
3236
|
+
}
|
3237
|
+
execute() {
|
3238
|
+
return Promise.resolve(new Date().toISOString());
|
3239
|
+
}
|
3240
|
+
}
|
3241
|
+
|
3242
|
+
function routesFactory() {
|
3243
|
+
const config = inject(AXP_ENTITY_CONFIG_TOKEN);
|
3244
|
+
const routes = [
|
3245
|
+
{
|
3246
|
+
path: ':app/terms',
|
3247
|
+
loadComponent: () => {
|
3248
|
+
return config.viewers.root();
|
3249
|
+
},
|
3250
|
+
children: [
|
3251
|
+
{
|
3252
|
+
path: '',
|
3253
|
+
loadComponent: () => Promise.resolve().then(function () { return listTerms_component; }).then((c) => c.AXMListTermsComponent),
|
3254
|
+
},
|
3255
|
+
],
|
3256
|
+
},
|
3257
|
+
];
|
3258
|
+
return routes;
|
3259
|
+
}
|
3260
|
+
class AXMPlatformManagementModule {
|
3261
|
+
/**
|
3262
|
+
* @ignore
|
3263
|
+
*/
|
3264
|
+
constructor(appVersionCheck, appTermsCheck) { }
|
3265
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMPlatformManagementModule, deps: [{ token: AppVersionCheckService }, { token: AppTermsCheckService }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
3266
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: AXMPlatformManagementModule, imports: [AXMUpdaterModule, i3$2.AXPWorkflowModule, i4$1.AXPComponentSlotModule] }); }
|
3267
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMPlatformManagementModule, providers: [
|
3268
|
+
{
|
3269
|
+
provide: AXMGlossaryService,
|
3270
|
+
useClass: AXMGlossaryServiceImpl,
|
3271
|
+
},
|
3272
|
+
{
|
3273
|
+
provide: ROUTES,
|
3274
|
+
multi: true,
|
3275
|
+
useFactory: routesFactory,
|
3276
|
+
},
|
3277
|
+
{
|
3278
|
+
provide: AXMGlobalVariablesService,
|
3279
|
+
useClass: AXMGlobalVariablesServiceImpl,
|
3280
|
+
},
|
3281
|
+
{
|
3282
|
+
provide: AXMAppVersionService,
|
3283
|
+
useClass: AXMAppVersionServiceImpl,
|
3284
|
+
},
|
3285
|
+
{
|
3286
|
+
provide: AXMAppTermService,
|
3287
|
+
useClass: AXMAppTermServiceImpl,
|
3288
|
+
},
|
3289
|
+
{
|
3290
|
+
provide: AXMMetaDataDefinitionService,
|
3291
|
+
useClass: AXMPMetaDataDefinitionServiceImpl,
|
3292
|
+
},
|
3293
|
+
{
|
3294
|
+
provide: AXMMetaDataDefinitionCategoryService,
|
3295
|
+
useClass: AXMMetaDataDefinitionCategoryServiceImpl,
|
3296
|
+
},
|
3297
|
+
{
|
3298
|
+
provide: AXP_ENTITY_DEFINITION_LOADER,
|
3299
|
+
useClass: AXMEntityLoader,
|
3300
|
+
multi: true,
|
3301
|
+
},
|
3302
|
+
{
|
3303
|
+
provide: AXP_MENU_PROVIDER,
|
3304
|
+
useClass: AXMMenuProvider,
|
3305
|
+
multi: true,
|
3306
|
+
},
|
3307
|
+
{
|
3308
|
+
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
3309
|
+
useClass: AXPReleaseNotesSettingProvider,
|
3310
|
+
multi: true,
|
3311
|
+
},
|
3312
|
+
{
|
3313
|
+
provide: AXP_WORKFLOW_TASK_PROVIDER,
|
3314
|
+
useClass: AXPTaskBoardTaskProvider,
|
3315
|
+
multi: true,
|
3316
|
+
},
|
3317
|
+
{
|
3318
|
+
provide: AXP_GLOBAL_VARIABLE_DEFINITION_PROVIDER,
|
3319
|
+
useClass: AXMGlobalVariableProvider,
|
3320
|
+
multi: true,
|
3321
|
+
},
|
3322
|
+
AppVersionCheckService,
|
3323
|
+
AppTermsCheckService,
|
3324
|
+
], imports: [AXMUpdaterModule,
|
3325
|
+
AXPWorkflowModule.forChild({
|
3326
|
+
actions: {
|
3327
|
+
AXMChangeLogPopupAction,
|
3328
|
+
AXMChangeLogUpdateSettingAction,
|
3329
|
+
//
|
3330
|
+
AXMNotifyNewTermPopupAction,
|
3331
|
+
AXMTermUpdateSettingAction,
|
3332
|
+
//
|
3333
|
+
AXMShowReleaseNotesPopupAction,
|
3334
|
+
AXMCheckNewVersionAction,
|
3335
|
+
},
|
3336
|
+
workflows: {
|
3337
|
+
'show-what-is-new': AXMWhatsNewWorkflow,
|
3338
|
+
'show-release-notes': AXMShowReleaseNotesWorkflow,
|
3339
|
+
'new-term': AXMNewTermWorkflow,
|
3340
|
+
'check-new-version': AXMCheckNewVersionWorkflow,
|
3341
|
+
},
|
3342
|
+
}),
|
3343
|
+
AXPComponentSlotModule.forChild({
|
3344
|
+
'side-menu-footer': [
|
3345
|
+
// {
|
3346
|
+
// name: 'side-menu-footer',
|
3347
|
+
// component: AXMPromotionSlotComponent,
|
3348
|
+
// options: {
|
3349
|
+
// location: 'side-menu-footer',
|
3350
|
+
// },
|
3351
|
+
// },
|
3352
|
+
],
|
3353
|
+
'side-menu-header': [
|
3354
|
+
// {
|
3355
|
+
// name: 'side-menu-header',
|
3356
|
+
// component: AXMPromotionSlotComponent,
|
3357
|
+
// priority: 2,
|
3358
|
+
// options: {
|
3359
|
+
// location: 'side-menu-header',
|
3360
|
+
// },
|
3361
|
+
// },
|
3362
|
+
],
|
3363
|
+
})] }); }
|
3364
|
+
}
|
3365
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AXMPlatformManagementModule, decorators: [{
|
3366
|
+
type: NgModule,
|
3367
|
+
args: [{
|
3368
|
+
imports: [
|
3369
|
+
AXMUpdaterModule,
|
3370
|
+
AXPWorkflowModule.forChild({
|
3371
|
+
actions: {
|
3372
|
+
AXMChangeLogPopupAction,
|
3373
|
+
AXMChangeLogUpdateSettingAction,
|
3374
|
+
//
|
3375
|
+
AXMNotifyNewTermPopupAction,
|
3376
|
+
AXMTermUpdateSettingAction,
|
3377
|
+
//
|
3378
|
+
AXMShowReleaseNotesPopupAction,
|
3379
|
+
AXMCheckNewVersionAction,
|
3380
|
+
},
|
3381
|
+
workflows: {
|
3382
|
+
'show-what-is-new': AXMWhatsNewWorkflow,
|
3383
|
+
'show-release-notes': AXMShowReleaseNotesWorkflow,
|
3384
|
+
'new-term': AXMNewTermWorkflow,
|
3385
|
+
'check-new-version': AXMCheckNewVersionWorkflow,
|
3386
|
+
},
|
3387
|
+
}),
|
3388
|
+
AXPComponentSlotModule.forChild({
|
3389
|
+
'side-menu-footer': [
|
3390
|
+
// {
|
3391
|
+
// name: 'side-menu-footer',
|
3392
|
+
// component: AXMPromotionSlotComponent,
|
3393
|
+
// options: {
|
3394
|
+
// location: 'side-menu-footer',
|
3395
|
+
// },
|
3396
|
+
// },
|
3397
|
+
],
|
3398
|
+
'side-menu-header': [
|
3399
|
+
// {
|
3400
|
+
// name: 'side-menu-header',
|
3401
|
+
// component: AXMPromotionSlotComponent,
|
3402
|
+
// priority: 2,
|
3403
|
+
// options: {
|
3404
|
+
// location: 'side-menu-header',
|
3405
|
+
// },
|
3406
|
+
// },
|
3407
|
+
],
|
3408
|
+
}),
|
3409
|
+
],
|
3410
|
+
exports: [],
|
3411
|
+
declarations: [],
|
3412
|
+
providers: [
|
3413
|
+
{
|
3414
|
+
provide: AXMGlossaryService,
|
3415
|
+
useClass: AXMGlossaryServiceImpl,
|
3416
|
+
},
|
3417
|
+
{
|
3418
|
+
provide: ROUTES,
|
3419
|
+
multi: true,
|
3420
|
+
useFactory: routesFactory,
|
3421
|
+
},
|
3422
|
+
{
|
3423
|
+
provide: AXMGlobalVariablesService,
|
3424
|
+
useClass: AXMGlobalVariablesServiceImpl,
|
3425
|
+
},
|
3426
|
+
{
|
3427
|
+
provide: AXMAppVersionService,
|
3428
|
+
useClass: AXMAppVersionServiceImpl,
|
3429
|
+
},
|
3430
|
+
{
|
3431
|
+
provide: AXMAppTermService,
|
3432
|
+
useClass: AXMAppTermServiceImpl,
|
3433
|
+
},
|
3434
|
+
{
|
3435
|
+
provide: AXMMetaDataDefinitionService,
|
3436
|
+
useClass: AXMPMetaDataDefinitionServiceImpl,
|
3437
|
+
},
|
3438
|
+
{
|
3439
|
+
provide: AXMMetaDataDefinitionCategoryService,
|
3440
|
+
useClass: AXMMetaDataDefinitionCategoryServiceImpl,
|
3441
|
+
},
|
3442
|
+
{
|
3443
|
+
provide: AXP_ENTITY_DEFINITION_LOADER,
|
3444
|
+
useClass: AXMEntityLoader,
|
3445
|
+
multi: true,
|
3446
|
+
},
|
3447
|
+
{
|
3448
|
+
provide: AXP_MENU_PROVIDER,
|
3449
|
+
useClass: AXMMenuProvider,
|
3450
|
+
multi: true,
|
3451
|
+
},
|
3452
|
+
{
|
3453
|
+
provide: AXP_SETTING_DEFINITION_PROVIDER,
|
3454
|
+
useClass: AXPReleaseNotesSettingProvider,
|
3455
|
+
multi: true,
|
3456
|
+
},
|
3457
|
+
{
|
3458
|
+
provide: AXP_WORKFLOW_TASK_PROVIDER,
|
3459
|
+
useClass: AXPTaskBoardTaskProvider,
|
3460
|
+
multi: true,
|
3461
|
+
},
|
3462
|
+
{
|
3463
|
+
provide: AXP_GLOBAL_VARIABLE_DEFINITION_PROVIDER,
|
3464
|
+
useClass: AXMGlobalVariableProvider,
|
3465
|
+
multi: true,
|
3466
|
+
},
|
3467
|
+
AppVersionCheckService,
|
3468
|
+
AppTermsCheckService,
|
3469
|
+
],
|
3470
|
+
}]
|
3471
|
+
}], ctorParameters: () => [{ type: AppVersionCheckService }, { type: AppTermsCheckService }] });
|
3472
|
+
|
3473
|
+
// export * from './lib/features';
|
3474
|
+
|
3475
|
+
/**
|
3476
|
+
* Generated bundle index. Do not edit.
|
3477
|
+
*/
|
3478
|
+
|
3479
|
+
export { AXMAppTermService, AXMAppTermServiceImpl, AXMAppVersionService, AXMAppVersionServiceImpl, AXMAppVersionSlotComponent, AXMChangeLogPopupAction, AXMChangeLogUpdateSettingAction, AXMCheckNewVersionAction, AXMCheckNewVersionWorkflow, AXMGlobalVariablesService, AXMGlobalVariablesServiceImpl, AXMGlossaryService, AXMGlossaryServiceImpl, AXMListTermsComponent, AXMMetaDataDefinitionCategoryService, AXMMetaDataDefinitionCategoryServiceImpl, AXMMetaDataDefinitionService, AXMNewTermWorkflow, AXMNotifyAppComponent, AXMNotifyNewTermPopupAction, AXMPMetaDataDefinitionServiceImpl, AXMPlatformManagementModule, AXMTermUpdateSettingAction, AXMWhatsNewWorkflow, RootConfig, appTermEntityEntityFactory, appVersionEntityEntityFactory, globalVariableEntityFactory, glossaryEntityFactory, metaDataDefinitionCategoryEntityFactory, metaDataDefinitionFactory };
|
2
3480
|
//# sourceMappingURL=acorex-modules-platform-management.mjs.map
|