@acorex/modules 20.2.4-next.0 → 20.2.4-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auth/index.d.ts +1 -0
- package/common/index.d.ts +16 -13
- package/contact-management/index.d.ts +0 -6
- package/conversation/index.d.ts +8 -0
- package/dashboard-management/index.d.ts +3 -79
- package/data-management/index.d.ts +2 -69
- package/document-management/index.d.ts +20 -5
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-C8p1VeqM.mjs → acorex-modules-auth-acorex-modules-auth-BbO_ea5W.mjs} +18 -14
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-C8p1VeqM.mjs.map → acorex-modules-auth-acorex-modules-auth-BbO_ea5W.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-app-chooser.component-CDKLbD_u.mjs → acorex-modules-auth-app-chooser.component-y0HLrwJM.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-app-chooser.component-CDKLbD_u.mjs.map → acorex-modules-auth-app-chooser.component-y0HLrwJM.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-login.module-DGPRxnXo.mjs → acorex-modules-auth-login.module-1U_5UgDs.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-login.module-DGPRxnXo.mjs.map → acorex-modules-auth-login.module-1U_5UgDs.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-master.layout-BNFGuQQs.mjs → acorex-modules-auth-master.layout-DGsAGhOH.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-master.layout-BNFGuQQs.mjs.map → acorex-modules-auth-master.layout-DGsAGhOH.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-oauth-callback.component-B3sSFdOA.mjs → acorex-modules-auth-oauth-callback.component-CPHBV5bA.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-oauth-callback.component-B3sSFdOA.mjs.map → acorex-modules-auth-oauth-callback.component-CPHBV5bA.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-ln2kDKPR.mjs → acorex-modules-auth-password.component-C85NgQxA.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-ln2kDKPR.mjs.map → acorex-modules-auth-password.component-C85NgQxA.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-Dyox9sR4.mjs → acorex-modules-auth-password.component-CF3ReHyw.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-Dyox9sR4.mjs.map → acorex-modules-auth-password.component-CF3ReHyw.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-routes-7vr8T08D.mjs → acorex-modules-auth-routes-BJh0Fwpy.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-7vr8T08D.mjs.map → acorex-modules-auth-routes-BJh0Fwpy.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module-D6XCUP_A.mjs → acorex-modules-auth-two-factor.module-Bsh2_A5L.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-two-factor.module-D6XCUP_A.mjs.map → acorex-modules-auth-two-factor.module-Bsh2_A5L.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth-user-sessions.component-ChMkstLg.mjs +137 -0
- package/fesm2022/acorex-modules-auth-user-sessions.component-ChMkstLg.mjs.map +1 -0
- package/fesm2022/acorex-modules-auth.mjs +1 -1
- package/fesm2022/acorex-modules-calendar-management.mjs +12 -40
- package/fesm2022/acorex-modules-calendar-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-common-manage-extra-properties-popup.component-BgXwb8Su.mjs +71 -0
- package/fesm2022/acorex-modules-common-manage-extra-properties-popup.component-BgXwb8Su.mjs.map +1 -0
- package/fesm2022/acorex-modules-common-manage-extra-properties.command-DqdhTfLD.mjs +47 -0
- package/fesm2022/acorex-modules-common-manage-extra-properties.command-DqdhTfLD.mjs.map +1 -0
- package/fesm2022/{acorex-modules-common-search-popup.component-39U0-TIj.mjs → acorex-modules-common-search-popup.component-BSQyjDKA.mjs} +8 -8
- package/fesm2022/{acorex-modules-common-search-popup.component-39U0-TIj.mjs.map → acorex-modules-common-search-popup.component-BSQyjDKA.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-common-timeline-version-history-popup.component-_KJd8oGw.mjs → acorex-modules-common-timeline-version-history-popup.component-ByAc4Yp9.mjs} +5 -5
- package/fesm2022/{acorex-modules-common-timeline-version-history-popup.component-_KJd8oGw.mjs.map → acorex-modules-common-timeline-version-history-popup.component-ByAc4Yp9.mjs.map} +1 -1
- package/fesm2022/acorex-modules-common.mjs +532 -91
- package/fesm2022/acorex-modules-common.mjs.map +1 -1
- package/fesm2022/{acorex-modules-contact-management-contact-method.entity-CIeZtPSy.mjs → acorex-modules-contact-management-contact-method.entity-DR6V9Nox.mjs} +15 -41
- package/fesm2022/acorex-modules-contact-management-contact-method.entity-DR6V9Nox.mjs.map +1 -0
- package/fesm2022/{acorex-modules-contact-management-emergency-contact.entity-CeIealVy.mjs → acorex-modules-contact-management-emergency-contact.entity-D75qsDor.mjs} +13 -90
- package/fesm2022/acorex-modules-contact-management-emergency-contact.entity-D75qsDor.mjs.map +1 -0
- package/fesm2022/acorex-modules-contact-management.mjs +793 -1
- package/fesm2022/acorex-modules-contact-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-content-management.mjs +3 -3
- package/fesm2022/acorex-modules-content-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-conversation.mjs +84 -24
- package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
- package/fesm2022/acorex-modules-dashboard-management.mjs +29 -325
- package/fesm2022/acorex-modules-dashboard-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-data-management.mjs +160 -1009
- package/fesm2022/acorex-modules-data-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-D9oPjJnn.mjs → acorex-modules-document-management-acorex-modules-document-management-DG7QxbqI.mjs} +174 -286
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-DG7QxbqI.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-CcWvTWv0.mjs → acorex-modules-document-management-attachment-widget.component-tk2f6GPy.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-CcWvTWv0.mjs.map → acorex-modules-document-management-attachment-widget.component-tk2f6GPy.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-DPFIPNE_.mjs → acorex-modules-document-management-create-folder-dialog.component-DJ-BBmR2.mjs} +3 -3
- package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-DJ-BBmR2.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-details-view.component-BKNvUhdl.mjs → acorex-modules-document-management-details-view.component-CX10ubfL.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-details-view.component-BKNvUhdl.mjs.map → acorex-modules-document-management-details-view.component-CX10ubfL.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-document-signature-popup.component-CK8MX49w.mjs → acorex-modules-document-management-document-signature-popup.component-CMUZSL2S.mjs} +42 -2
- package/fesm2022/acorex-modules-document-management-document-signature-popup.component-CMUZSL2S.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-BOPjvKlN.mjs → acorex-modules-document-management-drive-choose.component-DOxdrJh-.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-BOPjvKlN.mjs.map → acorex-modules-document-management-drive-choose.component-DOxdrJh-.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive.component-DutBXTtm.mjs → acorex-modules-document-management-drive.component-Crt-i9Xe.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-drive.component-DutBXTtm.mjs.map → acorex-modules-document-management-drive.component-Crt-i9Xe.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-DX2_xsbq.mjs → acorex-modules-document-management-large-icons-view.component-DLds0iA6.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-DX2_xsbq.mjs.map → acorex-modules-document-management-large-icons-view.component-DLds0iA6.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-CshjCgG5.mjs → acorex-modules-document-management-large-tiles-view.component-DELo5m5s.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-CshjCgG5.mjs.map → acorex-modules-document-management-large-tiles-view.component-DELo5m5s.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-link-dialog.component-DKOod11R.mjs → acorex-modules-document-management-link-dialog.component-DM1Djews.mjs} +2 -2
- package/fesm2022/acorex-modules-document-management-link-dialog.component-DM1Djews.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-list-view.component-DdLTVccZ.mjs → acorex-modules-document-management-list-view.component-DsR96OWz.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-list-view.component-DdLTVccZ.mjs.map → acorex-modules-document-management-list-view.component-DsR96OWz.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-meta-choose-popup.component-BomZu2bT.mjs → acorex-modules-document-management-meta-choose-popup.component-BbPbZmkc.mjs} +6 -6
- package/fesm2022/acorex-modules-document-management-meta-choose-popup.component-BbPbZmkc.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-permission-definition.provider-_AXz3sdF.mjs → acorex-modules-document-management-permission-definition.provider-DiXt_BzX.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-permission-definition.provider-_AXz3sdF.mjs.map → acorex-modules-document-management-permission-definition.provider-DiXt_BzX.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-DZRAXwFy.mjs → acorex-modules-document-management-rename-node-dialog.component-CNeHhc0E.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-DZRAXwFy.mjs.map → acorex-modules-document-management-rename-node-dialog.component-CNeHhc0E.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-share-dialog.component-mBEu2KpG.mjs → acorex-modules-document-management-share-dialog.component-BNN3t8AV.mjs} +2 -2
- package/fesm2022/acorex-modules-document-management-share-dialog.component-BNN3t8AV.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-share-email-dialog.component-CI4SKdjk.mjs → acorex-modules-document-management-share-email-dialog.component-8WAUtRyJ.mjs} +2 -2
- package/fesm2022/acorex-modules-document-management-share-email-dialog.component-8WAUtRyJ.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-DG3AbQJO.mjs → acorex-modules-document-management-small-icons-view.component-D9AIIBMz.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-DG3AbQJO.mjs.map → acorex-modules-document-management-small-icons-view.component-D9AIIBMz.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-Cx9jczo-.mjs → acorex-modules-document-management-small-tiles-view.component-HpEgcH1F.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-Cx9jczo-.mjs.map → acorex-modules-document-management-small-tiles-view.component-HpEgcH1F.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-CLSHVjDE.mjs → acorex-modules-form-template-management-acorex-modules-form-template-management-COVNekIY.mjs} +13 -85
- package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-COVNekIY.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-permission-definition.provider-I8BY9RVh.mjs → acorex-modules-form-template-management-permission-definition.provider-BEkbbQH2.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-permission-definition.provider-I8BY9RVh.mjs.map → acorex-modules-form-template-management-permission-definition.provider-BEkbbQH2.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-settings.provider-B8ip0Ou_.mjs → acorex-modules-form-template-management-settings.provider-DSI7cmrW.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-settings.provider-B8ip0Ou_.mjs.map → acorex-modules-form-template-management-settings.provider-DSI7cmrW.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-template-picker.component-BNM3RyDv.mjs → acorex-modules-form-template-management-template-picker.component-5n_kQMuQ.mjs} +6 -4
- package/fesm2022/acorex-modules-form-template-management-template-picker.component-5n_kQMuQ.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-DFfvdZqJ.mjs → acorex-modules-form-template-management-template-widget-edit.component-BtCYeGB-.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-DFfvdZqJ.mjs.map → acorex-modules-form-template-management-template-widget-edit.component-BtCYeGB-.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-form-template-management-template.entity-BCpgfVMz.mjs → acorex-modules-form-template-management-template.entity-Cm-AVAF_.mjs} +15 -85
- package/fesm2022/acorex-modules-form-template-management-template.entity-Cm-AVAF_.mjs.map +1 -0
- package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-DDfjwbrL.mjs → acorex-modules-form-template-management-viewer-popup.component-C8TC42DL.mjs} +2 -2
- package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-DDfjwbrL.mjs.map → acorex-modules-form-template-management-viewer-popup.component-C8TC42DL.mjs.map} +1 -1
- package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
- package/fesm2022/{acorex-modules-help-desk-acorex-modules-help-desk-CAibWOZT.mjs → acorex-modules-help-desk-acorex-modules-help-desk-hH3VgxdE.mjs} +6 -6
- package/fesm2022/acorex-modules-help-desk-acorex-modules-help-desk-hH3VgxdE.mjs.map +1 -0
- package/fesm2022/{acorex-modules-help-desk-capture-screen.component-BSBozesT.mjs → acorex-modules-help-desk-capture-screen.component-ae64BzbL.mjs} +2 -2
- package/fesm2022/{acorex-modules-help-desk-capture-screen.component-BSBozesT.mjs.map → acorex-modules-help-desk-capture-screen.component-ae64BzbL.mjs.map} +1 -1
- package/fesm2022/acorex-modules-help-desk.mjs +1 -1
- package/fesm2022/acorex-modules-location-management.mjs +16 -29
- package/fesm2022/acorex-modules-location-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-log-management.mjs +1 -1
- package/fesm2022/acorex-modules-log-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-meeting-management.mjs +107 -95
- package/fesm2022/acorex-modules-meeting-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-notification-management-notification-page.component-BUslAF8w.mjs +855 -0
- package/fesm2022/acorex-modules-notification-management-notification-page.component-BUslAF8w.mjs.map +1 -0
- package/fesm2022/acorex-modules-notification-management.mjs +20 -20
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-organization-management-add-item.component-DkXcoyHa.mjs → acorex-modules-organization-management-add-item.component-B7AYaZrD.mjs} +2 -2
- package/fesm2022/acorex-modules-organization-management-add-item.component-B7AYaZrD.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-branch.entity-CHp5WtIF.mjs → acorex-modules-organization-management-branch.entity-B_CYwiX9.mjs} +14 -42
- package/fesm2022/acorex-modules-organization-management-branch.entity-B_CYwiX9.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-chart.entity-UAn44WCP.mjs → acorex-modules-organization-management-chart.entity-8J9I9lgq.mjs} +14 -42
- package/fesm2022/acorex-modules-organization-management-chart.entity-8J9I9lgq.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-company.entity-D1A1HSkC.mjs → acorex-modules-organization-management-company.entity-BBNM-Ihr.mjs} +14 -42
- package/fesm2022/acorex-modules-organization-management-company.entity-BBNM-Ihr.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-department.entity-BxCyXNtv.mjs → acorex-modules-organization-management-department.entity-BbBrK4BN.mjs} +14 -42
- package/fesm2022/acorex-modules-organization-management-department.entity-BbBrK4BN.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-division.entity-DzQT2jpz.mjs → acorex-modules-organization-management-division.entity-DdX7LcCU.mjs} +14 -42
- package/fesm2022/acorex-modules-organization-management-division.entity-DdX7LcCU.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-employee.entity-CRc2YjNR.mjs → acorex-modules-organization-management-employee.entity-DJH02MJJ.mjs} +85 -186
- package/fesm2022/acorex-modules-organization-management-employee.entity-DJH02MJJ.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-employment-type.entity-h9Hua7Xe.mjs → acorex-modules-organization-management-employment-type.entity-Dw3TLMtD.mjs} +14 -42
- package/fesm2022/acorex-modules-organization-management-employment-type.entity-Dw3TLMtD.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-org-chart.page-DuyhYwnh.mjs → acorex-modules-organization-management-org-chart.page-DxVm1V4w.mjs} +2 -2
- package/fesm2022/{acorex-modules-organization-management-org-chart.page-DuyhYwnh.mjs.map → acorex-modules-organization-management-org-chart.page-DxVm1V4w.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-organization-management-role.entity-CruQeObl.mjs → acorex-modules-organization-management-position.entity-DT7EyvrR.mjs} +96 -79
- package/fesm2022/acorex-modules-organization-management-position.entity-DT7EyvrR.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-responsibility-category.entity-tJFpEylO.mjs → acorex-modules-organization-management-responsibility.entity-DpUTLjdp.mjs} +19 -91
- package/fesm2022/acorex-modules-organization-management-responsibility.entity-DpUTLjdp.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-role-category.entity-CAljzQcH.mjs → acorex-modules-organization-management-role.entity-BdjgFsgo.mjs} +68 -51
- package/fesm2022/acorex-modules-organization-management-role.entity-BdjgFsgo.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-skill.entity-DoAsCzm9.mjs → acorex-modules-organization-management-skill.entity-O1453j6I.mjs} +14 -105
- package/fesm2022/acorex-modules-organization-management-skill.entity-O1453j6I.mjs.map +1 -0
- package/fesm2022/{acorex-modules-organization-management-team.entity-DMCfAZsr.mjs → acorex-modules-organization-management-team.entity-DkRLWl0u.mjs} +13 -32
- package/fesm2022/acorex-modules-organization-management-team.entity-DkRLWl0u.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management.mjs +15 -256
- package/fesm2022/acorex-modules-organization-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-party-management-acorex-modules-party-management-BUc-9XOG.mjs → acorex-modules-party-management-acorex-modules-party-management-BFyD7IcC.mjs} +11 -21
- package/fesm2022/acorex-modules-party-management-acorex-modules-party-management-BFyD7IcC.mjs.map +1 -0
- package/fesm2022/{acorex-modules-party-management-party-identifier-type.entity-Bgq-y9TN.mjs → acorex-modules-party-management-party-identifier-type.entity-BYsWpup7.mjs} +20 -19
- package/fesm2022/acorex-modules-party-management-party-identifier-type.entity-BYsWpup7.mjs.map +1 -0
- package/fesm2022/{acorex-modules-party-management-party-identifier.entity-CP47qbc-.mjs → acorex-modules-party-management-party-identifier.entity-DSn4lsX-.mjs} +9 -12
- package/fesm2022/acorex-modules-party-management-party-identifier.entity-DSn4lsX-.mjs.map +1 -0
- package/fesm2022/{acorex-modules-party-management-party-relationship.entity-pGea5plN.mjs → acorex-modules-party-management-party-relationship.entity-BG5zuKPH.mjs} +9 -14
- package/fesm2022/acorex-modules-party-management-party-relationship.entity-BG5zuKPH.mjs.map +1 -0
- package/fesm2022/{acorex-modules-party-management-party-role.entity-CDt7Rxu7.mjs → acorex-modules-party-management-party-role.entity-jCTZL0mT.mjs} +9 -12
- package/fesm2022/acorex-modules-party-management-party-role.entity-jCTZL0mT.mjs.map +1 -0
- package/fesm2022/{acorex-modules-party-management-party.entity-DAvqOPic.mjs → acorex-modules-party-management-party.entity-BwAAZRJc.mjs} +43 -43
- package/fesm2022/acorex-modules-party-management-party.entity-BwAAZRJc.mjs.map +1 -0
- package/fesm2022/acorex-modules-party-management.mjs +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs +2 -2
- package/fesm2022/acorex-modules-platform-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-project-management.mjs +60 -48
- package/fesm2022/acorex-modules-project-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-report-management-report-create-root.component-L-7aG8op.mjs → acorex-modules-report-management-report-create-root.component-DAOMkt_F.mjs} +2 -2
- package/fesm2022/acorex-modules-report-management-report-create-root.component-DAOMkt_F.mjs.map +1 -0
- package/fesm2022/acorex-modules-report-management.mjs +57 -58
- package/fesm2022/acorex-modules-report-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-scheduler-job-management.mjs +6 -7
- package/fesm2022/acorex-modules-scheduler-job-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-security-management.mjs +27 -173
- package/fesm2022/acorex-modules-security-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-task-management-task-board.page-DbpqZaC7.mjs → acorex-modules-task-management-task-board.page-BBbHu2jz.mjs} +311 -71
- package/fesm2022/acorex-modules-task-management-task-board.page-BBbHu2jz.mjs.map +1 -0
- package/fesm2022/acorex-modules-task-management.mjs +619 -241
- package/fesm2022/acorex-modules-task-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-text-template-management.mjs +4 -6
- package/fesm2022/acorex-modules-text-template-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-training-management.mjs +35 -35
- package/fesm2022/acorex-modules-training-management.mjs.map +1 -1
- package/form-template-management/index.d.ts +6 -32
- package/organization-management/index.d.ts +3 -111
- package/package.json +9 -9
- package/security-management/index.d.ts +1 -4
- package/task-management/README.md +1 -1
- package/task-management/index.d.ts +80 -6
- package/fesm2022/acorex-modules-auth-user-sessions.component-B5aBDmdR.mjs +0 -135
- package/fesm2022/acorex-modules-auth-user-sessions.component-B5aBDmdR.mjs.map +0 -1
- package/fesm2022/acorex-modules-contact-management-acorex-modules-contact-management-_Bxallkg.mjs +0 -863
- package/fesm2022/acorex-modules-contact-management-acorex-modules-contact-management-_Bxallkg.mjs.map +0 -1
- package/fesm2022/acorex-modules-contact-management-contact-method.entity-CIeZtPSy.mjs.map +0 -1
- package/fesm2022/acorex-modules-contact-management-emergency-contact-category.entity-B2DPfonq.mjs +0 -680
- package/fesm2022/acorex-modules-contact-management-emergency-contact-category.entity-B2DPfonq.mjs.map +0 -1
- package/fesm2022/acorex-modules-contact-management-emergency-contact.entity-CeIealVy.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-D9oPjJnn.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-DPFIPNE_.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-document-signature-popup.component-CK8MX49w.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-link-dialog.component-DKOod11R.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-meta-choose-popup.component-BomZu2bT.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-share-dialog.component-mBEu2KpG.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-share-email-dialog.component-CI4SKdjk.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-acorex-modules-form-template-management-CLSHVjDE.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-category.entity-BBjVWSJ_.mjs +0 -245
- package/fesm2022/acorex-modules-form-template-management-category.entity-BBjVWSJ_.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-template-picker.component-BNM3RyDv.mjs.map +0 -1
- package/fesm2022/acorex-modules-form-template-management-template.entity-BCpgfVMz.mjs.map +0 -1
- package/fesm2022/acorex-modules-help-desk-acorex-modules-help-desk-CAibWOZT.mjs.map +0 -1
- package/fesm2022/acorex-modules-notification-management-notification-page.component-TLxLpxzE.mjs +0 -544
- package/fesm2022/acorex-modules-notification-management-notification-page.component-TLxLpxzE.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-add-item.component-DkXcoyHa.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-branch.entity-CHp5WtIF.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-chart.entity-UAn44WCP.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-company.entity-D1A1HSkC.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-department.entity-BxCyXNtv.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-division.entity-DzQT2jpz.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-employee.entity-CRc2YjNR.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-employment-type.entity-h9Hua7Xe.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-position-category.entity-CIir9UMg.mjs +0 -305
- package/fesm2022/acorex-modules-organization-management-position-category.entity-CIir9UMg.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-position.entity-BpkjUsoZ.mjs +0 -526
- package/fesm2022/acorex-modules-organization-management-position.entity-BpkjUsoZ.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-responsibility-category.entity-tJFpEylO.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-responsibility.entity-DmKSoxpL.mjs +0 -338
- package/fesm2022/acorex-modules-organization-management-responsibility.entity-DmKSoxpL.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-role-category.entity-CAljzQcH.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-role.entity-CruQeObl.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-skill-category.entity-iIbc-pjJ.mjs +0 -305
- package/fesm2022/acorex-modules-organization-management-skill-category.entity-iIbc-pjJ.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-skill.entity-DoAsCzm9.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-team.entity-DMCfAZsr.mjs.map +0 -1
- package/fesm2022/acorex-modules-party-management-acorex-modules-party-management-BUc-9XOG.mjs.map +0 -1
- package/fesm2022/acorex-modules-party-management-party-identifier-type.entity-Bgq-y9TN.mjs.map +0 -1
- package/fesm2022/acorex-modules-party-management-party-identifier.entity-CP47qbc-.mjs.map +0 -1
- package/fesm2022/acorex-modules-party-management-party-relationship.entity-pGea5plN.mjs.map +0 -1
- package/fesm2022/acorex-modules-party-management-party-role.entity-CDt7Rxu7.mjs.map +0 -1
- package/fesm2022/acorex-modules-party-management-party.entity-DAvqOPic.mjs.map +0 -1
- package/fesm2022/acorex-modules-report-management-report-create-root.component-L-7aG8op.mjs.map +0 -1
- package/fesm2022/acorex-modules-task-management-task-board.page-DbpqZaC7.mjs.map +0 -1
package/fesm2022/acorex-modules-notification-management-notification-page.component-BUslAF8w.mjs
ADDED
|
@@ -0,0 +1,855 @@
|
|
|
1
|
+
import * as i3$1 from '@acorex/components/badge';
|
|
2
|
+
import { AXBadgeModule } from '@acorex/components/badge';
|
|
3
|
+
import * as i6 from '@acorex/components/button';
|
|
4
|
+
import { AXButtonModule } from '@acorex/components/button';
|
|
5
|
+
import * as i4 from '@acorex/components/check-box';
|
|
6
|
+
import { AXCheckBoxModule } from '@acorex/components/check-box';
|
|
7
|
+
import * as i2 from '@acorex/components/decorators';
|
|
8
|
+
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
9
|
+
import * as i8 from '@acorex/components/dropdown';
|
|
10
|
+
import { AXDropdownModule } from '@acorex/components/dropdown';
|
|
11
|
+
import { AXDropdownButtonModule } from '@acorex/components/dropdown-button';
|
|
12
|
+
import * as i10 from '@acorex/components/label';
|
|
13
|
+
import { AXLabelModule } from '@acorex/components/label';
|
|
14
|
+
import * as i9 from '@acorex/components/search-box';
|
|
15
|
+
import { AXSearchBoxModule } from '@acorex/components/search-box';
|
|
16
|
+
import * as i5 from '@acorex/components/skeleton';
|
|
17
|
+
import { AXSkeletonModule } from '@acorex/components/skeleton';
|
|
18
|
+
import * as i11 from '@acorex/components/sliding-item';
|
|
19
|
+
import { AXSlidingItemModule } from '@acorex/components/sliding-item';
|
|
20
|
+
import * as i2$2 from '@acorex/core/format';
|
|
21
|
+
import { AXFormatModule } from '@acorex/core/format';
|
|
22
|
+
import { AXPUserAvatarComponent, AXPThemeLayoutBlockComponent } from '@acorex/platform/layout/components';
|
|
23
|
+
import { AXPPageLayoutBaseComponent, AXPPageLayoutComponent, AXPPageLayoutBase } from '@acorex/platform/layout/views';
|
|
24
|
+
import * as i2$1 from '@angular/common';
|
|
25
|
+
import { CommonModule } from '@angular/common';
|
|
26
|
+
import * as i0 from '@angular/core';
|
|
27
|
+
import { inject, signal, viewChild, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
28
|
+
import * as i3 from '@angular/forms';
|
|
29
|
+
import { FormsModule } from '@angular/forms';
|
|
30
|
+
import { AXContextMenuComponent } from '@acorex/components/menu';
|
|
31
|
+
import { AXPLayoutThemeService } from '@acorex/platform/themes/shared';
|
|
32
|
+
import { AXMNotificationConnectorService, AXPNotificationDefinitionService } from './acorex-modules-notification-management.mjs';
|
|
33
|
+
|
|
34
|
+
//#region ---- Component Definition ----
|
|
35
|
+
class AXMNotificationPageComponent extends AXPPageLayoutBaseComponent {
|
|
36
|
+
constructor() {
|
|
37
|
+
super(...arguments);
|
|
38
|
+
//#region ---- Services & Dependencies ----
|
|
39
|
+
this.layoutThemeService = inject(AXPLayoutThemeService);
|
|
40
|
+
this.connector = inject(AXMNotificationConnectorService);
|
|
41
|
+
this.definitionService = inject(AXPNotificationDefinitionService);
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region ---- State & Computed Properties ----
|
|
44
|
+
this.loading = this.connector.loading;
|
|
45
|
+
this.errorMessage = this.connector.errorMessage;
|
|
46
|
+
this.notifications = this.connector.notificationList;
|
|
47
|
+
this.unreadCount = this.connector.unreadCount;
|
|
48
|
+
this.totalCount = this.connector.total;
|
|
49
|
+
// Local UI state
|
|
50
|
+
this.searchQuery = signal('', ...(ngDevMode ? [{ debugName: "searchQuery" }] : []));
|
|
51
|
+
this.isEditing = signal(false, ...(ngDevMode ? [{ debugName: "isEditing" }] : []));
|
|
52
|
+
this.contextMenu = viewChild('contextMenu', ...(ngDevMode ? [{ debugName: "contextMenu" }] : []));
|
|
53
|
+
// #isEditingEff = effect(() => {
|
|
54
|
+
// if (this.isEditing() && this.selectedIds().size === 0) {
|
|
55
|
+
// this.isEditing.set(false);
|
|
56
|
+
// }
|
|
57
|
+
// });
|
|
58
|
+
this.filteredNotifications = computed(() => {
|
|
59
|
+
const query = (this.searchQuery() || '').toLowerCase().trim();
|
|
60
|
+
const items = this.notifications();
|
|
61
|
+
if (!query) {
|
|
62
|
+
return this.activeTab() === 'unread' ? items.filter((n) => !n.readAt) : items;
|
|
63
|
+
}
|
|
64
|
+
const base = this.activeTab() === 'unread' ? items.filter((n) => !n.readAt) : items;
|
|
65
|
+
return base.filter((n) => {
|
|
66
|
+
const title = (n.title || '').toLowerCase();
|
|
67
|
+
const body = (n.body || '').toLowerCase();
|
|
68
|
+
const sender = (n.sender?.fullName || '').toLowerCase();
|
|
69
|
+
return title.includes(query) || body.includes(query) || sender.includes(query);
|
|
70
|
+
});
|
|
71
|
+
}, ...(ngDevMode ? [{ debugName: "filteredNotifications" }] : []));
|
|
72
|
+
// Tab state: 'all' | 'unread'
|
|
73
|
+
this.tab = signal('all', ...(ngDevMode ? [{ debugName: "tab" }] : []));
|
|
74
|
+
this.activeTab = computed(() => this.tab(), ...(ngDevMode ? [{ debugName: "activeTab" }] : []));
|
|
75
|
+
// Selection state for bulk actions
|
|
76
|
+
this.selectedIds = signal(new Set(), ...(ngDevMode ? [{ debugName: "selectedIds" }] : []));
|
|
77
|
+
this.selectedCount = computed(() => this.selectedIds().size, ...(ngDevMode ? [{ debugName: "selectedCount" }] : []));
|
|
78
|
+
this.contextItem = signal(null, ...(ngDevMode ? [{ debugName: "contextItem" }] : []));
|
|
79
|
+
}
|
|
80
|
+
selectedTab() {
|
|
81
|
+
return this.tab();
|
|
82
|
+
}
|
|
83
|
+
setTab(v) {
|
|
84
|
+
this.tab.set(v);
|
|
85
|
+
}
|
|
86
|
+
onTabChange(index) {
|
|
87
|
+
this.tab.set(index === 1 ? 'unread' : 'all');
|
|
88
|
+
}
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region ---- Page Interface Methods ----
|
|
91
|
+
async getPageTitle() {
|
|
92
|
+
return 'Notifications';
|
|
93
|
+
}
|
|
94
|
+
getPageDescription() {
|
|
95
|
+
const unread = this.unreadCount();
|
|
96
|
+
const total = this.totalCount();
|
|
97
|
+
if (!total) {
|
|
98
|
+
return 'No notifications';
|
|
99
|
+
}
|
|
100
|
+
return unread > 0 ? `${unread} unread out of ${total}` : `${total} notifications`;
|
|
101
|
+
}
|
|
102
|
+
async getPrimaryMenuItems() {
|
|
103
|
+
const items = [];
|
|
104
|
+
if (this.selectedCount() > 0) {
|
|
105
|
+
items.push({
|
|
106
|
+
title: 'Delete',
|
|
107
|
+
icon: 'fa-light fa-trash',
|
|
108
|
+
command: { name: 'delete-selected' },
|
|
109
|
+
color: 'danger',
|
|
110
|
+
});
|
|
111
|
+
items.push({
|
|
112
|
+
title: 'Mark as read',
|
|
113
|
+
icon: 'fa-light fa-envelopes-bulk',
|
|
114
|
+
command: { name: 'mark-selected-as-read' },
|
|
115
|
+
color: 'primary',
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
return items;
|
|
119
|
+
}
|
|
120
|
+
async getSecondaryMenuItems() {
|
|
121
|
+
const items = [];
|
|
122
|
+
if (this.selectedCount() === 0) {
|
|
123
|
+
items.push({
|
|
124
|
+
title: 'Refresh',
|
|
125
|
+
icon: 'fa-light fa-rotate',
|
|
126
|
+
command: { name: 'refresh' },
|
|
127
|
+
}, {
|
|
128
|
+
title: 'Mark all as read',
|
|
129
|
+
icon: 'fa-light fa-envelopes-bulk',
|
|
130
|
+
command: { name: 'mark-all-as-read' },
|
|
131
|
+
disabled: this.unreadCount() === 0,
|
|
132
|
+
}, {
|
|
133
|
+
title: 'Select items',
|
|
134
|
+
icon: 'fa-light fa-pen',
|
|
135
|
+
command: { name: 'edit-mode' },
|
|
136
|
+
color: 'primary',
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
return items;
|
|
140
|
+
}
|
|
141
|
+
async execute(command) {
|
|
142
|
+
switch (command.name) {
|
|
143
|
+
case 'refresh':
|
|
144
|
+
await this.onRefresh();
|
|
145
|
+
if (this.isEditing()) {
|
|
146
|
+
this.isEditing.set(false);
|
|
147
|
+
}
|
|
148
|
+
break;
|
|
149
|
+
case 'delete-selected':
|
|
150
|
+
await this.deleteSelected();
|
|
151
|
+
if (this.isEditing()) {
|
|
152
|
+
this.isEditing.set(false);
|
|
153
|
+
}
|
|
154
|
+
break;
|
|
155
|
+
case 'mark-selected-as-read':
|
|
156
|
+
await this.markSelectedAsRead();
|
|
157
|
+
if (this.isEditing()) {
|
|
158
|
+
this.isEditing.set(false);
|
|
159
|
+
}
|
|
160
|
+
break;
|
|
161
|
+
case 'mark-all-as-read':
|
|
162
|
+
await this.onMarkAllAsRead();
|
|
163
|
+
if (this.isEditing()) {
|
|
164
|
+
this.isEditing.set(false);
|
|
165
|
+
}
|
|
166
|
+
break;
|
|
167
|
+
case 'edit-mode':
|
|
168
|
+
if (this.isEditing()) {
|
|
169
|
+
this.deselectAll();
|
|
170
|
+
this.isEditing.set(false);
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
this.isEditing.set(true);
|
|
174
|
+
}
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
//#endregion
|
|
179
|
+
//#region ---- UI Handlers ----
|
|
180
|
+
onSearch(value) {
|
|
181
|
+
this.searchQuery.set(value);
|
|
182
|
+
}
|
|
183
|
+
onClearSearch() {
|
|
184
|
+
this.searchQuery.set('');
|
|
185
|
+
}
|
|
186
|
+
async onRefresh() {
|
|
187
|
+
await this.connector.getList();
|
|
188
|
+
}
|
|
189
|
+
async onMarkAllAsRead() {
|
|
190
|
+
await this.connector.markAllAsRead();
|
|
191
|
+
}
|
|
192
|
+
isSelected(id) {
|
|
193
|
+
return this.selectedIds().has(id);
|
|
194
|
+
}
|
|
195
|
+
toggleSelectionWithModel(id, checked) {
|
|
196
|
+
const next = new Set(this.selectedIds());
|
|
197
|
+
if (checked) {
|
|
198
|
+
next.add(id);
|
|
199
|
+
}
|
|
200
|
+
else {
|
|
201
|
+
next.delete(id);
|
|
202
|
+
}
|
|
203
|
+
this.selectedIds.set(next);
|
|
204
|
+
}
|
|
205
|
+
isAllSelected() {
|
|
206
|
+
const items = this.filteredNotifications();
|
|
207
|
+
return items.length > 0 && items.every((i) => this.selectedIds().has(i.id));
|
|
208
|
+
}
|
|
209
|
+
toggleSelectAll(event) {
|
|
210
|
+
const checked = event.target.checked;
|
|
211
|
+
if (checked) {
|
|
212
|
+
this.selectedIds.set(new Set(this.filteredNotifications().map((i) => i.id)));
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
this.selectedIds.set(new Set());
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
async markSelectedAsRead(item) {
|
|
219
|
+
const ids = item ? [item.id] : Array.from(this.selectedIds());
|
|
220
|
+
if (ids.length === 0)
|
|
221
|
+
return;
|
|
222
|
+
await this.connector.markAsRead({ id: ids });
|
|
223
|
+
this.selectedIds.set(new Set());
|
|
224
|
+
}
|
|
225
|
+
async deleteSelected(item) {
|
|
226
|
+
const ids = item ? [item.id] : Array.from(this.selectedIds());
|
|
227
|
+
if (ids.length === 0)
|
|
228
|
+
return;
|
|
229
|
+
for (const id of ids) {
|
|
230
|
+
await this.connector.deleteOne(id);
|
|
231
|
+
}
|
|
232
|
+
this.selectedIds.set(new Set());
|
|
233
|
+
}
|
|
234
|
+
deselectAll() {
|
|
235
|
+
if (this.selectedCount() > 0) {
|
|
236
|
+
this.selectedIds.set(new Set());
|
|
237
|
+
}
|
|
238
|
+
if (this.isEditing()) {
|
|
239
|
+
this.isEditing.set(false);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
// Row interactions
|
|
243
|
+
onRowClick(id) {
|
|
244
|
+
this.toggleSelectionById(id);
|
|
245
|
+
}
|
|
246
|
+
async openItem(id) {
|
|
247
|
+
if (this.isEditing()) {
|
|
248
|
+
this.toggleSelectionById(id);
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
//avoid double click on selected items
|
|
252
|
+
if (this.selectedCount() > 0) {
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
const item = this.notifications().find((n) => n.id === id);
|
|
256
|
+
if (!item) {
|
|
257
|
+
return;
|
|
258
|
+
}
|
|
259
|
+
// Mark as read (idempotent per service logic)
|
|
260
|
+
await this.connector.markAsRead({ id: [id] });
|
|
261
|
+
// Execute provider click action if available
|
|
262
|
+
const provider = this.definitionService.resolve(item.type);
|
|
263
|
+
await provider?.execute?.({ name: 'click' }, item);
|
|
264
|
+
}
|
|
265
|
+
toggleSelectionById(id) {
|
|
266
|
+
const next = new Set(this.selectedIds());
|
|
267
|
+
if (next.has(id)) {
|
|
268
|
+
next.delete(id);
|
|
269
|
+
}
|
|
270
|
+
else {
|
|
271
|
+
next.add(id);
|
|
272
|
+
}
|
|
273
|
+
this.selectedIds.set(next);
|
|
274
|
+
}
|
|
275
|
+
//#endregion
|
|
276
|
+
slidingItemsHandler(item, action) {
|
|
277
|
+
switch (action) {
|
|
278
|
+
case 'mark-as-read':
|
|
279
|
+
this.markSelectedAsRead(item);
|
|
280
|
+
break;
|
|
281
|
+
case 'delete':
|
|
282
|
+
this.deleteSelected(item);
|
|
283
|
+
break;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
handleContextMenuItemClick(e) {
|
|
287
|
+
const item = this.contextItem();
|
|
288
|
+
if (!item) {
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
291
|
+
switch (e.item.name) {
|
|
292
|
+
case 'mark-as-read':
|
|
293
|
+
this.markSelectedAsRead(item);
|
|
294
|
+
break;
|
|
295
|
+
case 'delete':
|
|
296
|
+
this.deleteSelected(item);
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
handleContextMenuOpening(e) {
|
|
301
|
+
e.items = [
|
|
302
|
+
{
|
|
303
|
+
name: 'mark-as-read',
|
|
304
|
+
text: 'Mark as read',
|
|
305
|
+
icon: 'fa-light fa-envelopes-bulk',
|
|
306
|
+
color: 'primary',
|
|
307
|
+
},
|
|
308
|
+
];
|
|
309
|
+
e.items.push({
|
|
310
|
+
name: 'delete',
|
|
311
|
+
text: 'Delete',
|
|
312
|
+
icon: 'fa-light fa-trash-can',
|
|
313
|
+
color: 'danger',
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
openContextMenu(e, item) {
|
|
317
|
+
if (this.isEditing() || this.selectedCount() > 0) {
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
e.preventDefault();
|
|
321
|
+
this.contextMenu()?.showAt({
|
|
322
|
+
x: e.clientX,
|
|
323
|
+
y: e.clientY,
|
|
324
|
+
});
|
|
325
|
+
this.contextItem.set(item);
|
|
326
|
+
}
|
|
327
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMNotificationPageComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
328
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: AXMNotificationPageComponent, isStandalone: true, selector: "axm-notification-page", host: { listeners: { "document:keydown.escape": "deselectAll()" } }, providers: [
|
|
329
|
+
{
|
|
330
|
+
provide: AXPPageLayoutBase,
|
|
331
|
+
useExisting: AXMNotificationPageComponent,
|
|
332
|
+
},
|
|
333
|
+
], viewQueries: [{ propertyName: "contextMenu", first: true, predicate: ["contextMenu"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
334
|
+
<axp-page-layout>
|
|
335
|
+
<axp-page-toolbar>
|
|
336
|
+
<axp-layout-prefix>
|
|
337
|
+
@if (selectedCount() > 0 || isEditing()) {
|
|
338
|
+
<div class="ax-flex ax-gap-3 ax-items-center ax-h-10">
|
|
339
|
+
<span class="ax-text-xl ax-font-bold">{{ selectedCount() }} items selected</span>
|
|
340
|
+
<span (click)="deselectAll()" class="ax-text-sm ax-text-secondary ax-underline ax-cursor-pointer"
|
|
341
|
+
>Unselect</span
|
|
342
|
+
>
|
|
343
|
+
</div>
|
|
344
|
+
} @else {
|
|
345
|
+
<ax-button [text]="activeTab() === 'all' ? 'All Notifications' : 'Unread Notifications'">
|
|
346
|
+
<ax-dropdown-panel >
|
|
347
|
+
<ax-button-item-list class="ax-min-w-52">
|
|
348
|
+
<ax-button-item
|
|
349
|
+
[text]="'All notifications'"
|
|
350
|
+
[selected]="activeTab() === 'all'"
|
|
351
|
+
(onClick)="setTab('all')"
|
|
352
|
+
></ax-button-item>
|
|
353
|
+
<ax-button-item
|
|
354
|
+
[text]="'Unread Notifications'"
|
|
355
|
+
[selected]="activeTab() === 'unread'"
|
|
356
|
+
(onClick)="setTab('unread')"
|
|
357
|
+
>
|
|
358
|
+
<ax-suffix>
|
|
359
|
+
<ax-badge [text]="unreadCount().toString()" [color]="'primary'"></ax-badge>
|
|
360
|
+
</ax-suffix>
|
|
361
|
+
</ax-button-item>
|
|
362
|
+
</ax-button-item-list>
|
|
363
|
+
</ax-dropdown-panel>
|
|
364
|
+
</ax-button>
|
|
365
|
+
|
|
366
|
+
<ax-search-box
|
|
367
|
+
look="solid"
|
|
368
|
+
[placeholder]="'Search notifications'"
|
|
369
|
+
[value]="searchQuery()"
|
|
370
|
+
(onValueChanged)="onSearch($event.value)"
|
|
371
|
+
class="ax-w-72 ax-hidden md:ax-flex"
|
|
372
|
+
>
|
|
373
|
+
<ax-clear-button></ax-clear-button>
|
|
374
|
+
</ax-search-box>
|
|
375
|
+
}
|
|
376
|
+
</axp-layout-prefix>
|
|
377
|
+
<!-- <axp-layout-suffix>
|
|
378
|
+
@if (selectedCount() > 0) {
|
|
379
|
+
<div class="ax-flex ax-gap-2">
|
|
380
|
+
@if (activeTab() === 'unread') {
|
|
381
|
+
<ax-button [text]="'Mark as read'" (onClick)="markSelectedAsRead()"></ax-button>
|
|
382
|
+
}
|
|
383
|
+
<ax-button look="outline" color="danger" [text]="'Delete'" (onClick)="deleteSelected()"></ax-button>
|
|
384
|
+
</div>
|
|
385
|
+
}
|
|
386
|
+
</axp-layout-suffix> -->
|
|
387
|
+
</axp-page-toolbar>
|
|
388
|
+
<axp-page-content>
|
|
389
|
+
<div class="ax-flex ax-flex-col ax-gap-4">
|
|
390
|
+
<!-- List -->
|
|
391
|
+
@if (loading()) {
|
|
392
|
+
<div class="ax-p-4 ax-space-y-4">
|
|
393
|
+
@for (_ of [1, 2, 3, 4, 5, 6]; track $index) {
|
|
394
|
+
<div class="ax-flex ax-items-center ax-space-x-3">
|
|
395
|
+
<ax-skeleton [animated]="true" class="ax-w-12 ax-h-12 ax-rounded-full"></ax-skeleton>
|
|
396
|
+
<div class="ax-flex-1 ax-space-y-2">
|
|
397
|
+
<ax-skeleton [animated]="true" class="ax-w-3/4 ax-h-4 ax-rounded-md"></ax-skeleton>
|
|
398
|
+
<ax-skeleton [animated]="true" class="ax-w-1/2 ax-h-3 ax-rounded-md"></ax-skeleton>
|
|
399
|
+
</div>
|
|
400
|
+
</div>
|
|
401
|
+
}
|
|
402
|
+
</div>
|
|
403
|
+
} @else if (filteredNotifications().length === 0) {
|
|
404
|
+
<div
|
|
405
|
+
class="ax-rounded-xl ax-py-16 ax-px-6 ax-flex ax-flex-col ax-items-center ax-justify-center ax-gap-4 ax-text-center"
|
|
406
|
+
>
|
|
407
|
+
<div class="ax-h-14 ax-w-14 ax-rounded-full ax-flex ax-items-center ax-justify-center ax-text-2xl">
|
|
408
|
+
@if (searchQuery()) {
|
|
409
|
+
🔍
|
|
410
|
+
} @else if (activeTab() === 'unread') {
|
|
411
|
+
🎉
|
|
412
|
+
} @else {
|
|
413
|
+
🔔
|
|
414
|
+
}
|
|
415
|
+
</div>
|
|
416
|
+
<div class="ax-space-y-1">
|
|
417
|
+
@if (searchQuery()) {
|
|
418
|
+
<div class="ax-text-lg ax-font-semibold">No results</div>
|
|
419
|
+
<div class="ax-text-sm">We couldn’t find anything matching “{{ searchQuery() }}”.</div>
|
|
420
|
+
} @else if (activeTab() === 'unread') {
|
|
421
|
+
<div class="ax-text-lg ax-font-semibold">You’re all caught up</div>
|
|
422
|
+
<div class="ax-text-sm">No unread notifications right now.</div>
|
|
423
|
+
} @else {
|
|
424
|
+
<div class="ax-text-lg ax-font-semibold">No notifications yet</div>
|
|
425
|
+
<div class="ax-text-sm">You’ll see new activity and alerts here.</div>
|
|
426
|
+
}
|
|
427
|
+
</div>
|
|
428
|
+
<div class="ax-flex ax-gap-2">
|
|
429
|
+
@if (searchQuery()) {
|
|
430
|
+
<ax-button look="outline" [text]="'Clear search'" (onClick)="onClearSearch()"></ax-button>
|
|
431
|
+
} @else {
|
|
432
|
+
<!-- <ax-button [text]="'Refresh'" (onClick)="onRefresh()"></ax-button> -->
|
|
433
|
+
}
|
|
434
|
+
</div>
|
|
435
|
+
</div>
|
|
436
|
+
} @else {
|
|
437
|
+
<div>
|
|
438
|
+
@for (item of filteredNotifications(); track item.id) {
|
|
439
|
+
@if (layoutThemeService.isMobileDevice()) {
|
|
440
|
+
<ng-container
|
|
441
|
+
#contextMenuContainer
|
|
442
|
+
[ngTemplateOutlet]="mobile"
|
|
443
|
+
[ngTemplateOutletContext]="{ $implicit: item }"
|
|
444
|
+
></ng-container>
|
|
445
|
+
} @else {
|
|
446
|
+
<ng-container
|
|
447
|
+
[ngTemplateOutlet]="desktop"
|
|
448
|
+
[ngTemplateOutletContext]="{ $implicit: item }"
|
|
449
|
+
></ng-container>
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
</div>
|
|
453
|
+
}
|
|
454
|
+
</div>
|
|
455
|
+
</axp-page-content>
|
|
456
|
+
</axp-page-layout>
|
|
457
|
+
|
|
458
|
+
<ng-template #mobile let-item>
|
|
459
|
+
<ax-sliding-item class="ax-h-24">
|
|
460
|
+
<!-- <ax-sliding-item-prefix (onClick)="clickHandler($event)" color="danger" text="delete">
|
|
461
|
+
<ax-icon class="fa-solid fa-trash"></ax-icon>
|
|
462
|
+
</ax-sliding-item-prefix> -->
|
|
463
|
+
|
|
464
|
+
<ax-content class="!ax-p-0">
|
|
465
|
+
<div
|
|
466
|
+
class="ax-select-none ax-flex ax-size-full ax-mb-2 ax-gap-3 ax-py-2 ax-px-4 ax-items-center ax-rounded-md ax-cursor-pointer ax-line-clamp-2"
|
|
467
|
+
[class.ax-bg-lighter]="isSelected(item.id)"
|
|
468
|
+
[id]="item.id"
|
|
469
|
+
(click)="openItem(item.id)"
|
|
470
|
+
(contextmenu)="openContextMenu($event, item)"
|
|
471
|
+
>
|
|
472
|
+
@if (isEditing()) {
|
|
473
|
+
<ax-check-box
|
|
474
|
+
class="ax-mt-1"
|
|
475
|
+
[ngModel]="isSelected(item.id)"
|
|
476
|
+
(ngModelChange)="toggleSelectionWithModel(item.id, $event)"
|
|
477
|
+
>
|
|
478
|
+
<ax-label></ax-label>
|
|
479
|
+
</ax-check-box>
|
|
480
|
+
}
|
|
481
|
+
<!-- Avatar + Unread Dot -->
|
|
482
|
+
<div class="ax-relative ax-w-12 ax-flex ax-items-center ax-justify-center">
|
|
483
|
+
<axp-user-avatar [size]="48" [userId]="item.sender.id"></axp-user-avatar>
|
|
484
|
+
@if (!item.readAt) {
|
|
485
|
+
<span class="ax-absolute ax-right-0 ax-top-0 ax-block ax-h-3 ax-w-3 ax-rounded-full"></span>
|
|
486
|
+
}
|
|
487
|
+
</div>
|
|
488
|
+
|
|
489
|
+
<!-- Content -->
|
|
490
|
+
<div class="ax-flex ax-flex-col ax-gap-1 ax-flex-1 ax-justify-center">
|
|
491
|
+
<div class="ax-flex ax-items-center ax-justify-between ax-gap-2">
|
|
492
|
+
<div class="ax-flex ax-items-center ax-gap-2">
|
|
493
|
+
<div class="ax-font-medium" [class.ax-font-semibold]="!item.readAt">
|
|
494
|
+
{{ item.sender.fullName || item.title }}
|
|
495
|
+
</div>
|
|
496
|
+
<span>•</span>
|
|
497
|
+
<div class="ax-text-xs ax-opacity-75">
|
|
498
|
+
{{ item.createAt | format: 'timeleft' | async }}
|
|
499
|
+
</div>
|
|
500
|
+
</div>
|
|
501
|
+
</div>
|
|
502
|
+
<div class="ax-text-sm ax-line-clamp-2">{{ item.body }}</div>
|
|
503
|
+
</div>
|
|
504
|
+
<!-- Actions (future: per-item kebab) -->
|
|
505
|
+
</div>
|
|
506
|
+
</ax-content>
|
|
507
|
+
|
|
508
|
+
<ax-sliding-item-suffix (onClick)="slidingItemsHandler(item, 'mark-as-read')" color="primary">
|
|
509
|
+
<ax-icon class="fa-light fa-envelopes-bulk fa-xl"></ax-icon>
|
|
510
|
+
</ax-sliding-item-suffix>
|
|
511
|
+
|
|
512
|
+
<ax-sliding-item-suffix (onClick)="slidingItemsHandler(item, 'delete')" color="danger">
|
|
513
|
+
<ax-icon class="fa-light fa-trash-can fa-xl"></ax-icon>
|
|
514
|
+
</ax-sliding-item-suffix>
|
|
515
|
+
</ax-sliding-item>
|
|
516
|
+
</ng-template>
|
|
517
|
+
|
|
518
|
+
<ng-template #desktop let-item>
|
|
519
|
+
<div
|
|
520
|
+
class="ax-flex ax-gap-3 ax-p-4 ax-items-center ax-rounded-md ax-cursor-pointer hover:ax-bg-surface ax-mb-2 last:ax-mb-0"
|
|
521
|
+
[class.ax-bg-lighter]="isSelected(item.id)"
|
|
522
|
+
[id]="item.id"
|
|
523
|
+
(click)="openItem(item.id)"
|
|
524
|
+
(contextmenu)="openContextMenu($event, item)"
|
|
525
|
+
>
|
|
526
|
+
<!-- @if (isSelected(item.id)) {
|
|
527
|
+
<div class="ax-w-1 ax-self-stretch ax-rounded ax-bg-primary"></div>
|
|
528
|
+
} -->
|
|
529
|
+
<!-- Select via checkbox -->
|
|
530
|
+
@if (isEditing()) {
|
|
531
|
+
<ax-check-box
|
|
532
|
+
class="ax-mt-1"
|
|
533
|
+
[ngModel]="isSelected(item.id)"
|
|
534
|
+
(ngModelChange)="toggleSelectionWithModel(item.id, $event)"
|
|
535
|
+
>
|
|
536
|
+
<ax-label></ax-label>
|
|
537
|
+
</ax-check-box>
|
|
538
|
+
}
|
|
539
|
+
<!-- Avatar + Unread Dot -->
|
|
540
|
+
<div class="ax-relative ax-w-12 ax-flex ax-items-center ax-justify-center">
|
|
541
|
+
<axp-user-avatar [size]="48" [userId]="item.sender.id"></axp-user-avatar>
|
|
542
|
+
@if (!item.readAt) {
|
|
543
|
+
<span class="ax-absolute ax-right-0 ax-top-0 ax-block ax-h-3 ax-w-3 ax-rounded-full"></span>
|
|
544
|
+
}
|
|
545
|
+
</div>
|
|
546
|
+
|
|
547
|
+
<!-- Content -->
|
|
548
|
+
<div class="ax-flex ax-flex-col ax-gap-1 ax-flex-1 ax-justify-center">
|
|
549
|
+
<div class="ax-flex ax-items-center ax-justify-between ax-gap-2">
|
|
550
|
+
<div class="ax-flex ax-items-center ax-gap-2">
|
|
551
|
+
<div class="ax-font-medium" [class.ax-font-semibold]="!item.readAt">
|
|
552
|
+
{{ item.sender.fullName || item.title }}
|
|
553
|
+
</div>
|
|
554
|
+
<span>•</span>
|
|
555
|
+
<div class="ax-text-xs ax-opacity-75">
|
|
556
|
+
{{ item.createAt | format: 'timeleft' | async }}
|
|
557
|
+
</div>
|
|
558
|
+
</div>
|
|
559
|
+
</div>
|
|
560
|
+
<div class="ax-text-sm ax-line-clamp-2">{{ item.body }}</div>
|
|
561
|
+
</div>
|
|
562
|
+
<!-- Actions (future: per-item kebab) -->
|
|
563
|
+
</div>
|
|
564
|
+
</ng-template>
|
|
565
|
+
<ax-context-menu
|
|
566
|
+
#contextMenu
|
|
567
|
+
[openOn]="'click'"
|
|
568
|
+
[closeOn]="'click'"
|
|
569
|
+
[orientation]="'horizontal'"
|
|
570
|
+
(onOpening)="handleContextMenuOpening($event)"
|
|
571
|
+
(onItemClick)="handleContextMenuItemClick($event)"
|
|
572
|
+
>
|
|
573
|
+
</ax-context-menu>
|
|
574
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i2.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i2.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: AXFormatModule }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "component", type: i4.AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "tabIndex", "readonly", "color", "value", "name", "id", "isLoading", "indeterminate"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { kind: "ngmodule", type: AXSkeletonModule }, { kind: "component", type: i5.AXSkeletonComponent, selector: "ax-skeleton", inputs: ["animated"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i6.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: i6.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i6.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type: i3$1.AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i8.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "placement", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "ngmodule", type: AXSearchBoxModule }, { kind: "component", type: i9.AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "component", type: AXPUserAvatarComponent, selector: "axp-user-avatar", inputs: ["size", "userId"] }, { kind: "component", type: AXPPageLayoutComponent, selector: "axp-page-layout" }, { 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: "component", type: AXContextMenuComponent, selector: "ax-context-menu", inputs: ["orientation", "openOn", "closeOn", "items", "target"], outputs: ["onItemClick", "onOpening"] }, { kind: "ngmodule", type: AXLabelModule }, { kind: "component", type: i10.AXLabelComponent, selector: "ax-label", inputs: ["required", "for"], outputs: ["requiredChange"] }, { kind: "ngmodule", type: AXSlidingItemModule }, { kind: "component", type: i11.AXSlidingItemComponent, selector: "ax-sliding-item" }, { kind: "component", type: i11.AXSlidingItemSuffixComponent, selector: "ax-sliding-item-suffix", inputs: ["color", "text"], outputs: ["onClick"] }, { kind: "pipe", type: i2$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2$2.AXFormatPipe, name: "format" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
575
|
+
}
|
|
576
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXMNotificationPageComponent, decorators: [{
|
|
577
|
+
type: Component,
|
|
578
|
+
args: [{
|
|
579
|
+
selector: 'axm-notification-page',
|
|
580
|
+
template: `
|
|
581
|
+
<axp-page-layout>
|
|
582
|
+
<axp-page-toolbar>
|
|
583
|
+
<axp-layout-prefix>
|
|
584
|
+
@if (selectedCount() > 0 || isEditing()) {
|
|
585
|
+
<div class="ax-flex ax-gap-3 ax-items-center ax-h-10">
|
|
586
|
+
<span class="ax-text-xl ax-font-bold">{{ selectedCount() }} items selected</span>
|
|
587
|
+
<span (click)="deselectAll()" class="ax-text-sm ax-text-secondary ax-underline ax-cursor-pointer"
|
|
588
|
+
>Unselect</span
|
|
589
|
+
>
|
|
590
|
+
</div>
|
|
591
|
+
} @else {
|
|
592
|
+
<ax-button [text]="activeTab() === 'all' ? 'All Notifications' : 'Unread Notifications'">
|
|
593
|
+
<ax-dropdown-panel >
|
|
594
|
+
<ax-button-item-list class="ax-min-w-52">
|
|
595
|
+
<ax-button-item
|
|
596
|
+
[text]="'All notifications'"
|
|
597
|
+
[selected]="activeTab() === 'all'"
|
|
598
|
+
(onClick)="setTab('all')"
|
|
599
|
+
></ax-button-item>
|
|
600
|
+
<ax-button-item
|
|
601
|
+
[text]="'Unread Notifications'"
|
|
602
|
+
[selected]="activeTab() === 'unread'"
|
|
603
|
+
(onClick)="setTab('unread')"
|
|
604
|
+
>
|
|
605
|
+
<ax-suffix>
|
|
606
|
+
<ax-badge [text]="unreadCount().toString()" [color]="'primary'"></ax-badge>
|
|
607
|
+
</ax-suffix>
|
|
608
|
+
</ax-button-item>
|
|
609
|
+
</ax-button-item-list>
|
|
610
|
+
</ax-dropdown-panel>
|
|
611
|
+
</ax-button>
|
|
612
|
+
|
|
613
|
+
<ax-search-box
|
|
614
|
+
look="solid"
|
|
615
|
+
[placeholder]="'Search notifications'"
|
|
616
|
+
[value]="searchQuery()"
|
|
617
|
+
(onValueChanged)="onSearch($event.value)"
|
|
618
|
+
class="ax-w-72 ax-hidden md:ax-flex"
|
|
619
|
+
>
|
|
620
|
+
<ax-clear-button></ax-clear-button>
|
|
621
|
+
</ax-search-box>
|
|
622
|
+
}
|
|
623
|
+
</axp-layout-prefix>
|
|
624
|
+
<!-- <axp-layout-suffix>
|
|
625
|
+
@if (selectedCount() > 0) {
|
|
626
|
+
<div class="ax-flex ax-gap-2">
|
|
627
|
+
@if (activeTab() === 'unread') {
|
|
628
|
+
<ax-button [text]="'Mark as read'" (onClick)="markSelectedAsRead()"></ax-button>
|
|
629
|
+
}
|
|
630
|
+
<ax-button look="outline" color="danger" [text]="'Delete'" (onClick)="deleteSelected()"></ax-button>
|
|
631
|
+
</div>
|
|
632
|
+
}
|
|
633
|
+
</axp-layout-suffix> -->
|
|
634
|
+
</axp-page-toolbar>
|
|
635
|
+
<axp-page-content>
|
|
636
|
+
<div class="ax-flex ax-flex-col ax-gap-4">
|
|
637
|
+
<!-- List -->
|
|
638
|
+
@if (loading()) {
|
|
639
|
+
<div class="ax-p-4 ax-space-y-4">
|
|
640
|
+
@for (_ of [1, 2, 3, 4, 5, 6]; track $index) {
|
|
641
|
+
<div class="ax-flex ax-items-center ax-space-x-3">
|
|
642
|
+
<ax-skeleton [animated]="true" class="ax-w-12 ax-h-12 ax-rounded-full"></ax-skeleton>
|
|
643
|
+
<div class="ax-flex-1 ax-space-y-2">
|
|
644
|
+
<ax-skeleton [animated]="true" class="ax-w-3/4 ax-h-4 ax-rounded-md"></ax-skeleton>
|
|
645
|
+
<ax-skeleton [animated]="true" class="ax-w-1/2 ax-h-3 ax-rounded-md"></ax-skeleton>
|
|
646
|
+
</div>
|
|
647
|
+
</div>
|
|
648
|
+
}
|
|
649
|
+
</div>
|
|
650
|
+
} @else if (filteredNotifications().length === 0) {
|
|
651
|
+
<div
|
|
652
|
+
class="ax-rounded-xl ax-py-16 ax-px-6 ax-flex ax-flex-col ax-items-center ax-justify-center ax-gap-4 ax-text-center"
|
|
653
|
+
>
|
|
654
|
+
<div class="ax-h-14 ax-w-14 ax-rounded-full ax-flex ax-items-center ax-justify-center ax-text-2xl">
|
|
655
|
+
@if (searchQuery()) {
|
|
656
|
+
🔍
|
|
657
|
+
} @else if (activeTab() === 'unread') {
|
|
658
|
+
🎉
|
|
659
|
+
} @else {
|
|
660
|
+
🔔
|
|
661
|
+
}
|
|
662
|
+
</div>
|
|
663
|
+
<div class="ax-space-y-1">
|
|
664
|
+
@if (searchQuery()) {
|
|
665
|
+
<div class="ax-text-lg ax-font-semibold">No results</div>
|
|
666
|
+
<div class="ax-text-sm">We couldn’t find anything matching “{{ searchQuery() }}”.</div>
|
|
667
|
+
} @else if (activeTab() === 'unread') {
|
|
668
|
+
<div class="ax-text-lg ax-font-semibold">You’re all caught up</div>
|
|
669
|
+
<div class="ax-text-sm">No unread notifications right now.</div>
|
|
670
|
+
} @else {
|
|
671
|
+
<div class="ax-text-lg ax-font-semibold">No notifications yet</div>
|
|
672
|
+
<div class="ax-text-sm">You’ll see new activity and alerts here.</div>
|
|
673
|
+
}
|
|
674
|
+
</div>
|
|
675
|
+
<div class="ax-flex ax-gap-2">
|
|
676
|
+
@if (searchQuery()) {
|
|
677
|
+
<ax-button look="outline" [text]="'Clear search'" (onClick)="onClearSearch()"></ax-button>
|
|
678
|
+
} @else {
|
|
679
|
+
<!-- <ax-button [text]="'Refresh'" (onClick)="onRefresh()"></ax-button> -->
|
|
680
|
+
}
|
|
681
|
+
</div>
|
|
682
|
+
</div>
|
|
683
|
+
} @else {
|
|
684
|
+
<div>
|
|
685
|
+
@for (item of filteredNotifications(); track item.id) {
|
|
686
|
+
@if (layoutThemeService.isMobileDevice()) {
|
|
687
|
+
<ng-container
|
|
688
|
+
#contextMenuContainer
|
|
689
|
+
[ngTemplateOutlet]="mobile"
|
|
690
|
+
[ngTemplateOutletContext]="{ $implicit: item }"
|
|
691
|
+
></ng-container>
|
|
692
|
+
} @else {
|
|
693
|
+
<ng-container
|
|
694
|
+
[ngTemplateOutlet]="desktop"
|
|
695
|
+
[ngTemplateOutletContext]="{ $implicit: item }"
|
|
696
|
+
></ng-container>
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
</div>
|
|
700
|
+
}
|
|
701
|
+
</div>
|
|
702
|
+
</axp-page-content>
|
|
703
|
+
</axp-page-layout>
|
|
704
|
+
|
|
705
|
+
<ng-template #mobile let-item>
|
|
706
|
+
<ax-sliding-item class="ax-h-24">
|
|
707
|
+
<!-- <ax-sliding-item-prefix (onClick)="clickHandler($event)" color="danger" text="delete">
|
|
708
|
+
<ax-icon class="fa-solid fa-trash"></ax-icon>
|
|
709
|
+
</ax-sliding-item-prefix> -->
|
|
710
|
+
|
|
711
|
+
<ax-content class="!ax-p-0">
|
|
712
|
+
<div
|
|
713
|
+
class="ax-select-none ax-flex ax-size-full ax-mb-2 ax-gap-3 ax-py-2 ax-px-4 ax-items-center ax-rounded-md ax-cursor-pointer ax-line-clamp-2"
|
|
714
|
+
[class.ax-bg-lighter]="isSelected(item.id)"
|
|
715
|
+
[id]="item.id"
|
|
716
|
+
(click)="openItem(item.id)"
|
|
717
|
+
(contextmenu)="openContextMenu($event, item)"
|
|
718
|
+
>
|
|
719
|
+
@if (isEditing()) {
|
|
720
|
+
<ax-check-box
|
|
721
|
+
class="ax-mt-1"
|
|
722
|
+
[ngModel]="isSelected(item.id)"
|
|
723
|
+
(ngModelChange)="toggleSelectionWithModel(item.id, $event)"
|
|
724
|
+
>
|
|
725
|
+
<ax-label></ax-label>
|
|
726
|
+
</ax-check-box>
|
|
727
|
+
}
|
|
728
|
+
<!-- Avatar + Unread Dot -->
|
|
729
|
+
<div class="ax-relative ax-w-12 ax-flex ax-items-center ax-justify-center">
|
|
730
|
+
<axp-user-avatar [size]="48" [userId]="item.sender.id"></axp-user-avatar>
|
|
731
|
+
@if (!item.readAt) {
|
|
732
|
+
<span class="ax-absolute ax-right-0 ax-top-0 ax-block ax-h-3 ax-w-3 ax-rounded-full"></span>
|
|
733
|
+
}
|
|
734
|
+
</div>
|
|
735
|
+
|
|
736
|
+
<!-- Content -->
|
|
737
|
+
<div class="ax-flex ax-flex-col ax-gap-1 ax-flex-1 ax-justify-center">
|
|
738
|
+
<div class="ax-flex ax-items-center ax-justify-between ax-gap-2">
|
|
739
|
+
<div class="ax-flex ax-items-center ax-gap-2">
|
|
740
|
+
<div class="ax-font-medium" [class.ax-font-semibold]="!item.readAt">
|
|
741
|
+
{{ item.sender.fullName || item.title }}
|
|
742
|
+
</div>
|
|
743
|
+
<span>•</span>
|
|
744
|
+
<div class="ax-text-xs ax-opacity-75">
|
|
745
|
+
{{ item.createAt | format: 'timeleft' | async }}
|
|
746
|
+
</div>
|
|
747
|
+
</div>
|
|
748
|
+
</div>
|
|
749
|
+
<div class="ax-text-sm ax-line-clamp-2">{{ item.body }}</div>
|
|
750
|
+
</div>
|
|
751
|
+
<!-- Actions (future: per-item kebab) -->
|
|
752
|
+
</div>
|
|
753
|
+
</ax-content>
|
|
754
|
+
|
|
755
|
+
<ax-sliding-item-suffix (onClick)="slidingItemsHandler(item, 'mark-as-read')" color="primary">
|
|
756
|
+
<ax-icon class="fa-light fa-envelopes-bulk fa-xl"></ax-icon>
|
|
757
|
+
</ax-sliding-item-suffix>
|
|
758
|
+
|
|
759
|
+
<ax-sliding-item-suffix (onClick)="slidingItemsHandler(item, 'delete')" color="danger">
|
|
760
|
+
<ax-icon class="fa-light fa-trash-can fa-xl"></ax-icon>
|
|
761
|
+
</ax-sliding-item-suffix>
|
|
762
|
+
</ax-sliding-item>
|
|
763
|
+
</ng-template>
|
|
764
|
+
|
|
765
|
+
<ng-template #desktop let-item>
|
|
766
|
+
<div
|
|
767
|
+
class="ax-flex ax-gap-3 ax-p-4 ax-items-center ax-rounded-md ax-cursor-pointer hover:ax-bg-surface ax-mb-2 last:ax-mb-0"
|
|
768
|
+
[class.ax-bg-lighter]="isSelected(item.id)"
|
|
769
|
+
[id]="item.id"
|
|
770
|
+
(click)="openItem(item.id)"
|
|
771
|
+
(contextmenu)="openContextMenu($event, item)"
|
|
772
|
+
>
|
|
773
|
+
<!-- @if (isSelected(item.id)) {
|
|
774
|
+
<div class="ax-w-1 ax-self-stretch ax-rounded ax-bg-primary"></div>
|
|
775
|
+
} -->
|
|
776
|
+
<!-- Select via checkbox -->
|
|
777
|
+
@if (isEditing()) {
|
|
778
|
+
<ax-check-box
|
|
779
|
+
class="ax-mt-1"
|
|
780
|
+
[ngModel]="isSelected(item.id)"
|
|
781
|
+
(ngModelChange)="toggleSelectionWithModel(item.id, $event)"
|
|
782
|
+
>
|
|
783
|
+
<ax-label></ax-label>
|
|
784
|
+
</ax-check-box>
|
|
785
|
+
}
|
|
786
|
+
<!-- Avatar + Unread Dot -->
|
|
787
|
+
<div class="ax-relative ax-w-12 ax-flex ax-items-center ax-justify-center">
|
|
788
|
+
<axp-user-avatar [size]="48" [userId]="item.sender.id"></axp-user-avatar>
|
|
789
|
+
@if (!item.readAt) {
|
|
790
|
+
<span class="ax-absolute ax-right-0 ax-top-0 ax-block ax-h-3 ax-w-3 ax-rounded-full"></span>
|
|
791
|
+
}
|
|
792
|
+
</div>
|
|
793
|
+
|
|
794
|
+
<!-- Content -->
|
|
795
|
+
<div class="ax-flex ax-flex-col ax-gap-1 ax-flex-1 ax-justify-center">
|
|
796
|
+
<div class="ax-flex ax-items-center ax-justify-between ax-gap-2">
|
|
797
|
+
<div class="ax-flex ax-items-center ax-gap-2">
|
|
798
|
+
<div class="ax-font-medium" [class.ax-font-semibold]="!item.readAt">
|
|
799
|
+
{{ item.sender.fullName || item.title }}
|
|
800
|
+
</div>
|
|
801
|
+
<span>•</span>
|
|
802
|
+
<div class="ax-text-xs ax-opacity-75">
|
|
803
|
+
{{ item.createAt | format: 'timeleft' | async }}
|
|
804
|
+
</div>
|
|
805
|
+
</div>
|
|
806
|
+
</div>
|
|
807
|
+
<div class="ax-text-sm ax-line-clamp-2">{{ item.body }}</div>
|
|
808
|
+
</div>
|
|
809
|
+
<!-- Actions (future: per-item kebab) -->
|
|
810
|
+
</div>
|
|
811
|
+
</ng-template>
|
|
812
|
+
<ax-context-menu
|
|
813
|
+
#contextMenu
|
|
814
|
+
[openOn]="'click'"
|
|
815
|
+
[closeOn]="'click'"
|
|
816
|
+
[orientation]="'horizontal'"
|
|
817
|
+
(onOpening)="handleContextMenuOpening($event)"
|
|
818
|
+
(onItemClick)="handleContextMenuItemClick($event)"
|
|
819
|
+
>
|
|
820
|
+
</ax-context-menu>
|
|
821
|
+
`,
|
|
822
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
823
|
+
providers: [
|
|
824
|
+
{
|
|
825
|
+
provide: AXPPageLayoutBase,
|
|
826
|
+
useExisting: AXMNotificationPageComponent,
|
|
827
|
+
},
|
|
828
|
+
],
|
|
829
|
+
host: {
|
|
830
|
+
'(document:keydown.escape)': 'deselectAll()',
|
|
831
|
+
},
|
|
832
|
+
imports: [
|
|
833
|
+
AXDecoratorModule,
|
|
834
|
+
CommonModule,
|
|
835
|
+
FormsModule,
|
|
836
|
+
AXFormatModule,
|
|
837
|
+
AXCheckBoxModule,
|
|
838
|
+
AXSkeletonModule,
|
|
839
|
+
AXButtonModule,
|
|
840
|
+
AXBadgeModule,
|
|
841
|
+
AXDropdownModule,
|
|
842
|
+
AXDropdownButtonModule,
|
|
843
|
+
AXSearchBoxModule,
|
|
844
|
+
AXPUserAvatarComponent,
|
|
845
|
+
AXPPageLayoutComponent,
|
|
846
|
+
AXPThemeLayoutBlockComponent,
|
|
847
|
+
AXContextMenuComponent,
|
|
848
|
+
AXLabelModule,
|
|
849
|
+
AXSlidingItemModule,
|
|
850
|
+
],
|
|
851
|
+
}]
|
|
852
|
+
}] });
|
|
853
|
+
|
|
854
|
+
export { AXMNotificationPageComponent };
|
|
855
|
+
//# sourceMappingURL=acorex-modules-notification-management-notification-page.component-BUslAF8w.mjs.map
|