@acorex/modules 18.1.5 → 18.1.6
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/application-management/index.d.ts +2 -0
- package/application-management/lib/application-management.module.d.ts +0 -2
- package/application-management/lib/application-management.route.d.ts +2 -0
- package/application-management/lib/application-management.service.d.ts +18 -0
- package/application-management/lib/application-management.source.d.ts +7 -0
- package/application-management/lib/application-management.types.d.ts +50 -0
- package/application-management/lib/entity.loader.d.ts +9 -0
- package/application-management/lib/menu.provider.d.ts +4 -0
- package/auth/lib/auth.module.d.ts +4 -7
- package/auth/lib/menu.provider.d.ts +4 -0
- package/backend/lib/data/api/data-provider.d.ts +1 -0
- package/backend/lib/data/index.d.ts +0 -1
- package/backend/lib/data/local/local-data-provider.d.ts +1 -0
- package/esm2022/application-management/index.mjs +3 -1
- package/esm2022/application-management/lib/application-management.module.mjs +17 -47
- package/esm2022/application-management/lib/application-management.route.mjs +29 -0
- package/esm2022/application-management/lib/application-management.service.mjs +18 -2
- package/esm2022/application-management/lib/application-management.source.mjs +8 -0
- package/esm2022/application-management/lib/application-management.types.mjs +2 -0
- package/esm2022/application-management/lib/entities/property.entity.mjs +1 -2
- package/esm2022/application-management/lib/entity.loader.mjs +46 -0
- package/esm2022/application-management/lib/layouts/module-entity-detail-view/module-entity-detail-view.component.mjs +3 -3
- package/esm2022/application-management/lib/menu.provider.mjs +24 -0
- package/esm2022/auth/lib/account/app-chooser/app-chooser-slot.component.mjs +2 -2
- package/esm2022/auth/lib/account/profile/profile-slot.component.mjs +6 -3
- package/esm2022/auth/lib/auth.module.mjs +20 -14
- package/esm2022/auth/lib/login/password/password.component.mjs +2 -2
- package/esm2022/auth/lib/menu.provider.mjs +45 -0
- package/esm2022/backend/lib/backend.module.mjs +22 -26
- package/esm2022/backend/lib/data/api/data-provider.mjs +9 -1
- package/esm2022/backend/lib/data/index.mjs +1 -2
- package/esm2022/backend/lib/data/local/local-data-provider.mjs +11 -1
- package/esm2022/form-management/lib/form-management.module.mjs +32 -9
- package/esm2022/form-management/lib/menu.provider.mjs +29 -0
- package/esm2022/notification-management/index.mjs +3 -1
- package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-item/admin-notification-item.component.mjs +8 -16
- package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-panel/admin-notification-panel.component.mjs +31 -7
- package/esm2022/notification-management/lib/admin-notification-slot/admin-notification-slot/admin-notification-slot.component.mjs +3 -3
- package/esm2022/notification-management/lib/entities/my-notification.mjs +243 -0
- package/esm2022/notification-management/lib/entities/notification-channel.entity.mjs +2 -3
- package/esm2022/notification-management/lib/entities/notification-log.entity.mjs +180 -0
- package/esm2022/notification-management/lib/entity.loader.mjs +41 -0
- package/esm2022/notification-management/lib/menu.provider.mjs +51 -0
- package/esm2022/notification-management/lib/notification-management-mock-data.mjs +2 -2
- package/esm2022/notification-management/lib/notification-management.module.mjs +34 -39
- package/esm2022/notification-management/lib/notification-management.type.mjs +1 -1
- package/esm2022/notification-management/lib/notification.service.mjs +1 -1
- package/esm2022/{language-management/acorex-modules-language-management.mjs → platform-management/acorex-modules-platform-management.mjs} +1 -1
- package/esm2022/platform-management/index.mjs +5 -0
- package/esm2022/platform-management/lib/comments/comment-management.service.mjs +18 -0
- package/esm2022/platform-management/lib/global-variables/entities/global-variable.entity.mjs +295 -0
- package/esm2022/platform-management/lib/global-variables/entity.loader.mjs +26 -0
- package/esm2022/platform-management/lib/global-variables/global-variables.service.mjs +16 -0
- package/esm2022/platform-management/lib/global-variables/global-variables.types.mjs +2 -0
- package/esm2022/platform-management/lib/global-variables/index.mjs +5 -0
- package/esm2022/platform-management/lib/languages/entities/language.entity.mjs +234 -0
- package/esm2022/platform-management/lib/languages/entity.loader.mjs +26 -0
- package/esm2022/platform-management/lib/languages/index.mjs +5 -0
- package/esm2022/platform-management/lib/languages/language-management.service.mjs +16 -0
- package/esm2022/platform-management/lib/languages/language.types.mjs +2 -0
- package/esm2022/platform-management/lib/menu.provider.mjs +46 -0
- package/esm2022/platform-management/lib/platform-management.module.mjs +82 -0
- package/esm2022/template-management/index.mjs +7 -3
- package/esm2022/template-management/lib/entities/category.entity.mjs +233 -0
- package/esm2022/template-management/lib/entities/index.mjs +4 -0
- package/esm2022/template-management/lib/entities/template-variable.entity.mjs +113 -110
- package/esm2022/template-management/lib/entities/text-template.entity.mjs +385 -0
- package/esm2022/template-management/lib/entity.loader.mjs +36 -0
- package/esm2022/template-management/lib/menu.provider.mjs +37 -0
- package/esm2022/template-management/lib/template-management.module.mjs +53 -37
- package/esm2022/template-management/lib/template-management.types.mjs +2 -0
- package/esm2022/template-management/lib/template.service.mjs +17 -0
- package/esm2022/template-management/lib/text-management.source.mjs +3 -0
- package/esm2022/template-management/lib/text-template-category.service.mjs +17 -0
- package/fesm2022/{acorex-modules-application-management-module-designer.component-CFLXuP2G.mjs → acorex-modules-application-management-module-designer.component-BCaCCEXO.mjs} +2 -2
- package/fesm2022/{acorex-modules-application-management-module-designer.component-CFLXuP2G.mjs.map → acorex-modules-application-management-module-designer.component-BCaCCEXO.mjs.map} +1 -1
- package/fesm2022/acorex-modules-application-management.mjs +140 -50
- package/fesm2022/acorex-modules-application-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-auth-acorex-modules-auth-iGiPFEeb.mjs → acorex-modules-auth-acorex-modules-auth-B0aeYVeJ.mjs} +78 -24
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-B0aeYVeJ.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-app-chooser.component-BB3SIzCP.mjs → acorex-modules-auth-app-chooser.component-4b6b3ttW.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-app-chooser.component-BB3SIzCP.mjs.map → acorex-modules-auth-app-chooser.component-4b6b3ttW.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-login.module-ChEv9c5I.mjs → acorex-modules-auth-login.module-A7u1YYeo.mjs} +4 -4
- package/fesm2022/{acorex-modules-auth-login.module-ChEv9c5I.mjs.map → acorex-modules-auth-login.module-A7u1YYeo.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-master.layout-CZv3BD5c.mjs → acorex-modules-auth-master.layout--UllrmW0.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-master.layout-CZv3BD5c.mjs.map → acorex-modules-auth-master.layout--UllrmW0.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-password.component-CxZ1weks.mjs → acorex-modules-auth-password.component-BjqQ-qVo.mjs} +3 -3
- package/fesm2022/acorex-modules-auth-password.component-BjqQ-qVo.mjs.map +1 -0
- package/fesm2022/{acorex-modules-auth-password.component-CPWiBXdG.mjs → acorex-modules-auth-password.component-Dv0VXzh_.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-password.component-CPWiBXdG.mjs.map → acorex-modules-auth-password.component-Dv0VXzh_.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-routes-C7r2Jm6s.mjs → acorex-modules-auth-routes-C4eNPru3.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-routes-C7r2Jm6s.mjs.map → acorex-modules-auth-routes-C4eNPru3.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-auth-two-factor.module-BgkJYe7T.mjs → acorex-modules-auth-two-factor.module-C6V_pb_Q.mjs} +2 -2
- package/fesm2022/{acorex-modules-auth-two-factor.module-BgkJYe7T.mjs.map → acorex-modules-auth-two-factor.module-C6V_pb_Q.mjs.map} +1 -1
- package/fesm2022/acorex-modules-auth.mjs +1 -1
- package/fesm2022/acorex-modules-backend.mjs +40 -232
- package/fesm2022/acorex-modules-backend.mjs.map +1 -1
- package/fesm2022/acorex-modules-form-management.mjs +57 -6
- package/fesm2022/acorex-modules-form-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-notification-management.mjs +590 -64
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs +752 -0
- package/fesm2022/acorex-modules-platform-management.mjs.map +1 -0
- package/fesm2022/acorex-modules-template-management.mjs +600 -194
- package/fesm2022/acorex-modules-template-management.mjs.map +1 -1
- package/form-management/lib/form-management.module.d.ts +2 -2
- package/form-management/lib/menu.provider.d.ts +4 -0
- package/notification-management/index.d.ts +2 -0
- package/notification-management/lib/admin-notification-slot/admin-notification-item/admin-notification-item.component.d.ts +0 -4
- package/notification-management/lib/admin-notification-slot/admin-notification-panel/admin-notification-panel.component.d.ts +7 -2
- package/{template-management/lib/entities/global-template.entity.d.ts → notification-management/lib/entities/my-notification.d.ts} +1 -1
- package/notification-management/lib/entities/notification-log.entity.d.ts +3 -0
- package/notification-management/lib/entity.loader.d.ts +9 -0
- package/notification-management/lib/menu.provider.d.ts +4 -0
- package/notification-management/lib/notification-management-mock-data.d.ts +2 -3
- package/notification-management/lib/notification-management.module.d.ts +1 -7
- package/notification-management/lib/notification-management.service.d.ts +2 -2
- package/notification-management/lib/notification-management.type.d.ts +1 -1
- package/notification-management/lib/notification.service.d.ts +3 -4
- package/package.json +6 -6
- package/platform-management/README.md +4 -0
- package/platform-management/index.d.ts +4 -0
- package/platform-management/lib/comments/comment-management.service.d.ts +10 -0
- package/platform-management/lib/global-variables/entities/global-variable.entity.d.ts +3 -0
- package/platform-management/lib/global-variables/entity.loader.d.ts +9 -0
- package/platform-management/lib/global-variables/global-variables.service.d.ts +10 -0
- package/platform-management/lib/global-variables/global-variables.types.d.ts +7 -0
- package/platform-management/lib/global-variables/index.d.ts +4 -0
- package/platform-management/lib/languages/entity.loader.d.ts +9 -0
- package/platform-management/lib/languages/index.d.ts +4 -0
- package/platform-management/lib/languages/language-management.service.d.ts +10 -0
- package/platform-management/lib/languages/language.types.d.ts +5 -0
- package/platform-management/lib/menu.provider.d.ts +4 -0
- package/platform-management/lib/platform-management.module.d.ts +6 -0
- package/template-management/index.d.ts +6 -2
- package/template-management/lib/entities/category.entity.d.ts +3 -0
- package/template-management/lib/entities/index.d.ts +3 -0
- package/template-management/lib/entities/template-variable.entity.d.ts +1 -1
- package/template-management/lib/entities/text-template.entity.d.ts +3 -0
- package/template-management/lib/entity.loader.d.ts +9 -0
- package/template-management/lib/menu.provider.d.ts +4 -0
- package/template-management/lib/template-management.module.d.ts +4 -10
- package/template-management/lib/template-management.types.d.ts +19 -0
- package/template-management/lib/template.service.d.ts +10 -0
- package/template-management/lib/text-management.source.d.ts +2 -0
- package/template-management/lib/text-template-category.service.d.ts +10 -0
- package/backend/lib/data/api/comment.mock.service.d.ts +0 -62
- package/backend/lib/data/api/notification.mock.service.d.ts +0 -34
- package/esm2022/backend/lib/data/api/comment.mock.service.mjs +0 -142
- package/esm2022/backend/lib/data/api/notification.mock.service.mjs +0 -71
- package/esm2022/language-management/index.mjs +0 -2
- package/esm2022/language-management/lib/entities/language.entity.mjs +0 -242
- package/esm2022/language-management/lib/language-management.module.mjs +0 -39
- package/esm2022/language-management/lib/notification-management.service.mjs +0 -23
- package/esm2022/template-management/lib/entities/global-template.entity.mjs +0 -298
- package/esm2022/template-management/lib/template-management-mock-data.mjs +0 -11
- package/esm2022/template-management/lib/template-management.service.mjs +0 -24
- package/fesm2022/acorex-modules-auth-acorex-modules-auth-iGiPFEeb.mjs.map +0 -1
- package/fesm2022/acorex-modules-auth-password.component-CxZ1weks.mjs.map +0 -1
- package/fesm2022/acorex-modules-language-management-language.entity-CwD5FHGc.mjs +0 -266
- package/fesm2022/acorex-modules-language-management-language.entity-CwD5FHGc.mjs.map +0 -1
- package/fesm2022/acorex-modules-language-management.mjs +0 -46
- package/fesm2022/acorex-modules-language-management.mjs.map +0 -1
- package/language-management/README.md +0 -3
- package/language-management/index.d.ts +0 -1
- package/language-management/lib/language-management.module.d.ts +0 -12
- package/language-management/lib/notification-management.service.d.ts +0 -9
- package/template-management/lib/template-management-mock-data.d.ts +0 -7
- package/template-management/lib/template-management.service.d.ts +0 -9
- /package/{language-management/lib → platform-management/lib/languages}/entities/language.entity.d.ts +0 -0
@@ -1,48 +1,43 @@
|
|
1
1
|
import * as i1$2 from '@acorex/platform/common';
|
2
|
-
import {
|
3
|
-
import {
|
2
|
+
import { AXP_MENU_PROVIDER, AXPComponentSlotModule, AXPEntityStorageService, AXPEntityDataProviderImpl, AXPDataGenerator, AXPEntityQueryType, AXPEntityCommandScope } from '@acorex/platform/common';
|
3
|
+
import { AXP_ENTITY_DEFINITION_LOADER } from '@acorex/platform/layout/entity';
|
4
4
|
import * as i0 from '@angular/core';
|
5
|
-
import { input, output,
|
5
|
+
import { input, output, computed, Component, ChangeDetectionStrategy, inject, signal, effect, Injector, Injectable, NgModule } from '@angular/core';
|
6
6
|
import * as i4$1 from '@acorex/components/badge';
|
7
7
|
import { AXBadgeModule } from '@acorex/components/badge';
|
8
8
|
import * as i1$1 from '@acorex/components/button';
|
9
9
|
import { AXButtonModule } from '@acorex/components/button';
|
10
|
-
import * as
|
10
|
+
import * as i2 from '@acorex/components/decorators';
|
11
11
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
12
12
|
import * as i4$2 from '@acorex/components/popover';
|
13
13
|
import { AXPopoverModule } from '@acorex/components/popover';
|
14
14
|
import * as i1 from '@angular/common';
|
15
15
|
import { CommonModule } from '@angular/common';
|
16
|
-
import * as
|
16
|
+
import * as i3 from '@acorex/components/avatar';
|
17
17
|
import { AXAvatarModule } from '@acorex/components/avatar';
|
18
|
-
import * as
|
18
|
+
import * as i4 from '@acorex/components/image';
|
19
19
|
import { AXImageModule } from '@acorex/components/image';
|
20
|
-
import * as
|
20
|
+
import * as i5 from '@acorex/core/format';
|
21
21
|
import { AXFormatModule } from '@acorex/core/format';
|
22
|
-
import
|
23
|
-
import { Router } from '@angular/router';
|
24
|
-
import * as i2 from '@acorex/components/tabs';
|
22
|
+
import * as i2$1 from '@acorex/components/tabs';
|
25
23
|
import { AXTabsModule } from '@acorex/components/tabs';
|
26
24
|
import { AXToastService } from '@acorex/components/toast';
|
27
|
-
import {
|
25
|
+
import { AXPSessionService } from '@acorex/platform/auth';
|
26
|
+
import { Router } from '@angular/router';
|
28
27
|
import { AXPWidgetsCatalog } from '@acorex/platform/layout/builder';
|
28
|
+
import { applySortArray, applyFilterArray } from '@acorex/platform/core';
|
29
29
|
|
30
30
|
class AXMAdminNotificationItemComponent {
|
31
31
|
constructor() {
|
32
32
|
this.data = input.required();
|
33
33
|
this.onPressNotificationItem = output();
|
34
|
-
this.router = inject(Router);
|
35
|
-
this.sessionStorage = inject(AXPSessionService);
|
36
34
|
this.differentTime = computed(() => Date.now() - this.data().createAt.getTime());
|
37
35
|
}
|
38
36
|
pressNotificationItem(id) {
|
39
37
|
this.onPressNotificationItem.emit(id);
|
40
|
-
//const [module, entity] = this.data().RelativeType?.split('.') as [string, string];
|
41
|
-
//const url = `${this.sessionStorage.application?.name}/m/${module}/e/${entity}/${this.data().RelativeId}`;
|
42
|
-
//console.log(url);
|
43
38
|
}
|
44
39
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMAdminNotificationItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
45
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXMAdminNotificationItemComponent, isStandalone: true, selector: "axp-master-notification-item", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onPressNotificationItem: "onPressNotificationItem" }, ngImport: i0, template: "<div\n class=\"notification-item\"\n [id]=\"data().id\"\n (click)=\"pressNotificationItem(data().id)\"\n [class]=\"[data().template.prority, data().readAt ? 'read' : 'unread']\"\n>\n <ax-avatar look=\"rounded\" color=\"primary\">\n @if(data().user.image){\n <ax-image src=\"https://i.pravatar.cc/300\"></ax-image>\n }@else {\n <ax-icon>\n <i class=\"fa-solid fa-lock\"></i>\n </ax-icon>\n }\n </ax-avatar>\n <div>\n <div class=\"notification-item-title\">{{ data().title }}</div>\n <div class=\"notification-item-body\">{{ data().body }}</div>\n @if(
|
40
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXMAdminNotificationItemComponent, isStandalone: true, selector: "axp-master-notification-item", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { onPressNotificationItem: "onPressNotificationItem" }, ngImport: i0, template: "<div\n class=\"notification-item\"\n [id]=\"data().id\"\n (click)=\"pressNotificationItem(data().id)\"\n [class]=\"[data().template.prority, data().readAt ? 'read' : 'unread']\"\n>\n <ax-avatar look=\"rounded\" color=\"primary\">\n @if(data().user.image){\n <ax-image src=\"https://i.pravatar.cc/300\"></ax-image>\n }@else {\n <ax-icon>\n <i class=\"fa-solid fa-lock\"></i>\n </ax-icon>\n }\n </ax-avatar>\n <div>\n <div class=\"notification-item-title\">{{ data().title }}</div>\n <div class=\"notification-item-body\">{{ data().body }}</div>\n <!-- @if(false){\n <div>\n <div class=\"notification-file\">\n <ax-avatar color=\"primary\">\n <ax-icon>\n <i class=\"fa-solid fa-file-word ax-text-2xl\"></i>\n </ax-icon>\n </ax-avatar>\n <div>\n <div class=\"notification-file-name\">New project details.docx</div>\n <div class=\"notification-file-size\">250 KB</div>\n </div>\n <ax-button look=\"blank\">\n <ax-icon>\n <i class=\"fa-solid fa-download\"></i>\n </ax-icon>\n </ax-button>\n </div>\n </div>\n } -->\n <div class=\"notification-item-time\">{{ differentTime() | format : 'timeleft' | async }}</div>\n </div>\n @if(!data().template.isPinned){\n <div class=\"pin-notification\">\n <ax-icon>\n <i class=\"fa-solid fa-thumbtack\"></i>\n </ax-icon>\n </div>\n }\n</div>\n", styles: [".notification-item{position:relative;display:flex;cursor:pointer;gap:.75rem;overflow-x:hidden;padding:1rem}.notification-item.read{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.notification-item.unread{background:rgb(var(--ax-color-on-surface))}.notification-item.Notice:before,.notification-item.Danger:before,.notification-item.Warning:before{content:\"\";position:absolute;height:95%;width:.2rem;inset-inline-start:0;top:50%;transform:translateY(-50%)}.notification-item.Notice:before{background:rgb(var(--ax-color-success-500))}.notification-item.Danger:before{background:rgb(var(--ax-color-danger-500))}.notification-item.Warning:before{background:rgb(var(--ax-color-warning-500))}.notification-item ax-avatar ax-badge{position:absolute;bottom:0;inset-inline-end:.25rem;top:auto;border-width:1px;--tw-border-opacity: 1;border-color:rgba(var(--ax-color-surface),var(--tw-border-opacity))}.notification-item>div{display:flex;flex:1 1 0%;flex-direction:column}.notification-item>div .notification-item-title,.notification-item>div .notification-file-name{max-width:20rem;font-size:1rem;font-weight:600;line-height:1.5rem}.notification-item>div .notification-item-time,.notification-item>div .notification-file-size{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgba(var(--ax-color-neutral-400),var(--tw-text-opacity))}.notification-item>div .notification-item-body{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;max-width:20rem;font-size:.875rem;font-weight:400;line-height:1.5rem}.notification-item>ax-badge{position:absolute;top:1rem;inset-inline-end:1rem}.notification-item .notification-file{margin-top:.5rem;margin-bottom:.5rem;display:flex;gap:.5rem;border-radius:.5rem;border-width:1px;--tw-bg-opacity: 1;background-color:rgba(var(--ax-color-surface),var(--tw-bg-opacity));padding:.5rem}.notification-item .notification-file>div{flex:1 1 0%}.notification-item .pin-notification{position:absolute;top:0;right:0;--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));padding:1rem;--tw-text-opacity: 1;color:rgba(var(--ax-color-neutral-400),var(--tw-text-opacity))}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "ngmodule", type: AXAvatarModule }, { kind: "component", type: i3.AXAvatarComponent, selector: "ax-avatar", inputs: ["color", "size", "look"], outputs: ["sizeChange"] }, { kind: "ngmodule", type: AXImageModule }, { kind: "component", type: i4.AXImageComponent, selector: "ax-image", inputs: ["overlayMode", "src", "alt", "priority", "lazy"], outputs: ["onLoad", "onError"] }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "ngmodule", type: AXFormatModule }, { kind: "pipe", type: i5.AXFormatPipe, name: "format" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
46
41
|
}
|
47
42
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMAdminNotificationItemComponent, decorators: [{
|
48
43
|
type: Component,
|
@@ -54,7 +49,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
54
49
|
AXImageModule,
|
55
50
|
AXBadgeModule,
|
56
51
|
AXFormatModule,
|
57
|
-
], template: "<div\n class=\"notification-item\"\n [id]=\"data().id\"\n (click)=\"pressNotificationItem(data().id)\"\n [class]=\"[data().template.prority, data().readAt ? 'read' : 'unread']\"\n>\n <ax-avatar look=\"rounded\" color=\"primary\">\n @if(data().user.image){\n <ax-image src=\"https://i.pravatar.cc/300\"></ax-image>\n }@else {\n <ax-icon>\n <i class=\"fa-solid fa-lock\"></i>\n </ax-icon>\n }\n </ax-avatar>\n <div>\n <div class=\"notification-item-title\">{{ data().title }}</div>\n <div class=\"notification-item-body\">{{ data().body }}</div>\n @if(
|
52
|
+
], template: "<div\n class=\"notification-item\"\n [id]=\"data().id\"\n (click)=\"pressNotificationItem(data().id)\"\n [class]=\"[data().template.prority, data().readAt ? 'read' : 'unread']\"\n>\n <ax-avatar look=\"rounded\" color=\"primary\">\n @if(data().user.image){\n <ax-image src=\"https://i.pravatar.cc/300\"></ax-image>\n }@else {\n <ax-icon>\n <i class=\"fa-solid fa-lock\"></i>\n </ax-icon>\n }\n </ax-avatar>\n <div>\n <div class=\"notification-item-title\">{{ data().title }}</div>\n <div class=\"notification-item-body\">{{ data().body }}</div>\n <!-- @if(false){\n <div>\n <div class=\"notification-file\">\n <ax-avatar color=\"primary\">\n <ax-icon>\n <i class=\"fa-solid fa-file-word ax-text-2xl\"></i>\n </ax-icon>\n </ax-avatar>\n <div>\n <div class=\"notification-file-name\">New project details.docx</div>\n <div class=\"notification-file-size\">250 KB</div>\n </div>\n <ax-button look=\"blank\">\n <ax-icon>\n <i class=\"fa-solid fa-download\"></i>\n </ax-icon>\n </ax-button>\n </div>\n </div>\n } -->\n <div class=\"notification-item-time\">{{ differentTime() | format : 'timeleft' | async }}</div>\n </div>\n @if(!data().template.isPinned){\n <div class=\"pin-notification\">\n <ax-icon>\n <i class=\"fa-solid fa-thumbtack\"></i>\n </ax-icon>\n </div>\n }\n</div>\n", styles: [".notification-item{position:relative;display:flex;cursor:pointer;gap:.75rem;overflow-x:hidden;padding:1rem}.notification-item.read{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.notification-item.unread{background:rgb(var(--ax-color-on-surface))}.notification-item.Notice:before,.notification-item.Danger:before,.notification-item.Warning:before{content:\"\";position:absolute;height:95%;width:.2rem;inset-inline-start:0;top:50%;transform:translateY(-50%)}.notification-item.Notice:before{background:rgb(var(--ax-color-success-500))}.notification-item.Danger:before{background:rgb(var(--ax-color-danger-500))}.notification-item.Warning:before{background:rgb(var(--ax-color-warning-500))}.notification-item ax-avatar ax-badge{position:absolute;bottom:0;inset-inline-end:.25rem;top:auto;border-width:1px;--tw-border-opacity: 1;border-color:rgba(var(--ax-color-surface),var(--tw-border-opacity))}.notification-item>div{display:flex;flex:1 1 0%;flex-direction:column}.notification-item>div .notification-item-title,.notification-item>div .notification-file-name{max-width:20rem;font-size:1rem;font-weight:600;line-height:1.5rem}.notification-item>div .notification-item-time,.notification-item>div .notification-file-size{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgba(var(--ax-color-neutral-400),var(--tw-text-opacity))}.notification-item>div .notification-item-body{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;max-width:20rem;font-size:.875rem;font-weight:400;line-height:1.5rem}.notification-item>ax-badge{position:absolute;top:1rem;inset-inline-end:1rem}.notification-item .notification-file{margin-top:.5rem;margin-bottom:.5rem;display:flex;gap:.5rem;border-radius:.5rem;border-width:1px;--tw-bg-opacity: 1;background-color:rgba(var(--ax-color-surface),var(--tw-bg-opacity));padding:.5rem}.notification-item .notification-file>div{flex:1 1 0%}.notification-item .pin-notification{position:absolute;top:0;right:0;--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));padding:1rem;--tw-text-opacity: 1;color:rgba(var(--ax-color-neutral-400),var(--tw-text-opacity))}\n"] }]
|
58
53
|
}] });
|
59
54
|
|
60
55
|
class AXMNotificationService {
|
@@ -65,6 +60,8 @@ class AXMAdminNotificationPanelComponent {
|
|
65
60
|
this.onNewNotfication = output();
|
66
61
|
this.notificationService = inject(AXMNotificationService);
|
67
62
|
this.toastService = inject(AXToastService);
|
63
|
+
this.router = inject(Router);
|
64
|
+
this.sessionService = inject(AXPSessionService);
|
68
65
|
this.notifications = signal(undefined);
|
69
66
|
this.totalNotifications = signal(undefined);
|
70
67
|
this.tabItems = computed(() => this.getTabItems(this.notifications()), {
|
@@ -73,9 +70,6 @@ class AXMAdminNotificationPanelComponent {
|
|
73
70
|
this.activeTab = signal('All');
|
74
71
|
this.NewNotification = computed(() => this.getNewNotification(this.tabItems()));
|
75
72
|
this.NewNotificationEffect = effect(() => this.onNewNotfication.emit(this.NewNotification()));
|
76
|
-
this.onPressNotificationItem = (id) => {
|
77
|
-
this.notifications.update((old) => old?.map((item) => (item.id === id && !item.readAt ? { ...item, readAt: new Date() } : item)));
|
78
|
-
};
|
79
73
|
}
|
80
74
|
changeActiveTab(tab) {
|
81
75
|
this.activeTab.set(tab);
|
@@ -150,7 +144,27 @@ class AXMAdminNotificationPanelComponent {
|
|
150
144
|
}
|
151
145
|
}
|
152
146
|
//
|
153
|
-
|
147
|
+
async markAsRead(id) {
|
148
|
+
try {
|
149
|
+
const payload = { id: [id] };
|
150
|
+
await this.notificationService.markAsRead(payload);
|
151
|
+
this.toggleRead(id);
|
152
|
+
}
|
153
|
+
catch (error) { }
|
154
|
+
}
|
155
|
+
toggleRead(id) {
|
156
|
+
this.notifications.update((old) => old?.map((item) => (item.id === id ? { ...item, readAt: item.readAt ? null : new Date() } : item)));
|
157
|
+
}
|
158
|
+
async markAllAsRead() {
|
159
|
+
try {
|
160
|
+
await this.notificationService.markAsRead();
|
161
|
+
this.toggleMarkAllAsRead();
|
162
|
+
}
|
163
|
+
catch (error) {
|
164
|
+
console.error(error);
|
165
|
+
}
|
166
|
+
}
|
167
|
+
toggleMarkAllAsRead() {
|
154
168
|
this.notifications.update((notification) => notification?.map((item) => {
|
155
169
|
if (!item.readAt) {
|
156
170
|
return { ...item, readAt: new Date() };
|
@@ -158,8 +172,11 @@ class AXMAdminNotificationPanelComponent {
|
|
158
172
|
return item;
|
159
173
|
}));
|
160
174
|
}
|
175
|
+
viewAllNotifications() {
|
176
|
+
this.router.navigate([`${this.sessionService.application?.name}/m/notification-management/e/my-notification/list`]);
|
177
|
+
}
|
161
178
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMAdminNotificationPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
162
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXMAdminNotificationPanelComponent, isStandalone: true, selector: "axm-admin-notification-panel", outputs: { onNewNotfication: "onNewNotfication" }, ngImport: i0, template: "<div class=\"ax-p-4 ax-flex ax-justify-between ax-items-center\">\n <span class=\"ax-text-xl\">Notifications</span>\n <ax-button color=\"default\" look=\"blank\">\n <ax-icon>\n <i class=\"fa-regular fa-gear fa-lg\"></i>\n </ax-icon>\n </ax-button>\n</div>\n<ax-tabs [content]=\"cons\" look=\"with-line\" location=\"bottom\">\n @for(tab of tabItems(); track tab.text){\n <ax-tab-item [text]=\"tab.text\" [active]=\"activeTab() === tab.text\" (activeChange)=\"changeActiveTab(tab.text)\">\n <ax-suffix>\n @if(tab.count){\n <ax-badge [color]=\"activeTab() === tab.text ? 'primary' : 'ghost'\" [text]=\"tab.count.toString()\"></ax-badge>\n }\n </ax-suffix>\n <ax-content>\n <div class=\"ax-max-h-[50vh] ax-overflow-y-auto\">\n @for(notif of getNotificationItems(tab.text); track notif.id){\n <axp-master-notification-item\n [data]=\"notif\"\n (onPressNotificationItem)=\"
|
179
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXMAdminNotificationPanelComponent, isStandalone: true, selector: "axm-admin-notification-panel", outputs: { onNewNotfication: "onNewNotfication" }, ngImport: i0, template: "<div class=\"ax-p-4 ax-flex ax-justify-between ax-items-center\">\n <span class=\"ax-text-xl\">Notifications</span>\n <ax-button color=\"default\" look=\"blank\">\n <ax-icon>\n <i class=\"fa-regular fa-gear fa-lg\"></i>\n </ax-icon>\n </ax-button>\n</div>\n<ax-tabs [content]=\"cons\" look=\"with-line\" location=\"bottom\">\n @for(tab of tabItems(); track tab.text){\n <ax-tab-item [text]=\"tab.text\" [active]=\"activeTab() === tab.text\" (activeChange)=\"changeActiveTab(tab.text)\">\n <ax-suffix>\n @if(tab.count){\n <ax-badge [color]=\"activeTab() === tab.text ? 'primary' : 'ghost'\" [text]=\"tab.count.toString()\"></ax-badge>\n }\n </ax-suffix>\n <ax-content>\n <div class=\"ax-max-h-[50vh] ax-overflow-y-auto\">\n @for(notif of getNotificationItems(tab.text); track notif.id){\n <axp-master-notification-item\n [data]=\"notif\"\n (onPressNotificationItem)=\"markAsRead($event)\"\n ></axp-master-notification-item>\n }\n </div>\n <div class=\"ax-flex ax-gap-4 ax-justify-between ax-p-4 ax-border-t ax-border-default\">\n <ax-button\n [disabled]=\"NewNotification() === 0\"\n color=\"ghost\"\n text=\"Mark all as read\"\n (onClick)=\"markAllAsRead()\"\n ></ax-button>\n <ax-button color=\"primary\" text=\"View all notifications\" (onClick)=\"viewAllNotifications()\"></ax-button>\n </div>\n </ax-content>\n </ax-tab-item>\n }\n</ax-tabs>\n\n<ng-template [axTabContent] #cons=\"axTabContent\"></ng-template>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXTabsModule }, { kind: "component", type: i2$1.AXTabsComponent, selector: "ax-tabs", inputs: ["look", "location", "fitParent", "minWidth", "content"], outputs: ["onActiveTabChanged"] }, { kind: "component", type: i2$1.AXTabItemComponent, selector: "ax-tab-item", inputs: ["disabled", "text", "key", "headerTemplate", "active"], outputs: ["disabledChange", "onClick", "onBlur", "onFocus", "activeChange"] }, { kind: "directive", type: i2$1.AXTabContentDirective, selector: "[axTabContent]", inputs: ["axTabContent"], exportAs: ["axTabContent"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i2.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type: i4$1.AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "component", type: AXMAdminNotificationItemComponent, selector: "axp-master-notification-item", inputs: ["data"], outputs: ["onPressNotificationItem"] }, { kind: "ngmodule", type: AXFormatModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
163
180
|
}
|
164
181
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMAdminNotificationPanelComponent, decorators: [{
|
165
182
|
type: Component,
|
@@ -172,7 +189,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
172
189
|
AXPopoverModule,
|
173
190
|
AXMAdminNotificationItemComponent,
|
174
191
|
AXFormatModule,
|
175
|
-
], template: "<div class=\"ax-p-4 ax-flex ax-justify-between ax-items-center\">\n <span class=\"ax-text-xl\">Notifications</span>\n <ax-button color=\"default\" look=\"blank\">\n <ax-icon>\n <i class=\"fa-regular fa-gear fa-lg\"></i>\n </ax-icon>\n </ax-button>\n</div>\n<ax-tabs [content]=\"cons\" look=\"with-line\" location=\"bottom\">\n @for(tab of tabItems(); track tab.text){\n <ax-tab-item [text]=\"tab.text\" [active]=\"activeTab() === tab.text\" (activeChange)=\"changeActiveTab(tab.text)\">\n <ax-suffix>\n @if(tab.count){\n <ax-badge [color]=\"activeTab() === tab.text ? 'primary' : 'ghost'\" [text]=\"tab.count.toString()\"></ax-badge>\n }\n </ax-suffix>\n <ax-content>\n <div class=\"ax-max-h-[50vh] ax-overflow-y-auto\">\n @for(notif of getNotificationItems(tab.text); track notif.id){\n <axp-master-notification-item\n [data]=\"notif\"\n (onPressNotificationItem)=\"
|
192
|
+
], template: "<div class=\"ax-p-4 ax-flex ax-justify-between ax-items-center\">\n <span class=\"ax-text-xl\">Notifications</span>\n <ax-button color=\"default\" look=\"blank\">\n <ax-icon>\n <i class=\"fa-regular fa-gear fa-lg\"></i>\n </ax-icon>\n </ax-button>\n</div>\n<ax-tabs [content]=\"cons\" look=\"with-line\" location=\"bottom\">\n @for(tab of tabItems(); track tab.text){\n <ax-tab-item [text]=\"tab.text\" [active]=\"activeTab() === tab.text\" (activeChange)=\"changeActiveTab(tab.text)\">\n <ax-suffix>\n @if(tab.count){\n <ax-badge [color]=\"activeTab() === tab.text ? 'primary' : 'ghost'\" [text]=\"tab.count.toString()\"></ax-badge>\n }\n </ax-suffix>\n <ax-content>\n <div class=\"ax-max-h-[50vh] ax-overflow-y-auto\">\n @for(notif of getNotificationItems(tab.text); track notif.id){\n <axp-master-notification-item\n [data]=\"notif\"\n (onPressNotificationItem)=\"markAsRead($event)\"\n ></axp-master-notification-item>\n }\n </div>\n <div class=\"ax-flex ax-gap-4 ax-justify-between ax-p-4 ax-border-t ax-border-default\">\n <ax-button\n [disabled]=\"NewNotification() === 0\"\n color=\"ghost\"\n text=\"Mark all as read\"\n (onClick)=\"markAllAsRead()\"\n ></ax-button>\n <ax-button color=\"primary\" text=\"View all notifications\" (onClick)=\"viewAllNotifications()\"></ax-button>\n </div>\n </ax-content>\n </ax-tab-item>\n }\n</ax-tabs>\n\n<ng-template [axTabContent] #cons=\"axTabContent\"></ng-template>\n" }]
|
176
193
|
}] });
|
177
194
|
|
178
195
|
class AXMAdminNotificationSlotComponent {
|
@@ -183,7 +200,7 @@ class AXMAdminNotificationSlotComponent {
|
|
183
200
|
this.totalNewNotification.set(value);
|
184
201
|
}
|
185
202
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMAdminNotificationSlotComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
186
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXMAdminNotificationSlotComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ax-button color=\"secondary\" class=\"ax-relative\" look=\"blank\" #notification>\n <ax-icon>\n <i class=\"fa-regular fa-bell
|
203
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXMAdminNotificationSlotComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ax-button color=\"secondary\" class=\"ax-relative\" look=\"blank\" #notification>\n <ax-icon>\n <i class=\"fa-regular fa-bell\"></i>\n </ax-icon>\n <ax-suffix class=\"ax-absolute ax-top-0 ax-left-1/2\">\n @if(totalNewNotification()){\n <ax-badge color=\"success\" [text]=\"totalNewNotification().toString()\"></ax-badge>\n }\n </ax-suffix>\n</ax-button>\n<ax-popover [target]=\"notification\" [openOn]=\"'toggle'\" [closeOn]=\"'clickOut'\" [adaptivityEnabled]=\"true\">\n <div class=\"ax-bg-surface ax-border ax-border-default ax-rounded-md ax-shadow-md ax-w-full\">\n <axm-admin-notification-panel (onNewNotfication)=\"setTotalNewNotification($event)\"> </axm-admin-notification-panel>\n </div>\n</ax-popover>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i1$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i2.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type: i4$1.AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "component", type: i4$2.AXPopoverComponent, selector: "ax-popover", inputs: ["offsetX", "offsetY", "target", "placement", "content", "openOn", "closeOn", "hasBackdrop", "openAfter", "closeAfter", "backdropClass", "panelClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "component", type: AXMAdminNotificationPanelComponent, selector: "axm-admin-notification-panel", outputs: ["onNewNotfication"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
187
204
|
}
|
188
205
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMAdminNotificationSlotComponent, decorators: [{
|
189
206
|
type: Component,
|
@@ -195,42 +212,118 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
195
212
|
AXPopoverModule,
|
196
213
|
AXMAdminNotificationItemComponent,
|
197
214
|
AXMAdminNotificationPanelComponent,
|
198
|
-
], template: "<ax-button color=\"secondary\" class=\"ax-relative\" look=\"blank\" #notification>\n <ax-icon>\n <i class=\"fa-regular fa-bell
|
215
|
+
], template: "<ax-button color=\"secondary\" class=\"ax-relative\" look=\"blank\" #notification>\n <ax-icon>\n <i class=\"fa-regular fa-bell\"></i>\n </ax-icon>\n <ax-suffix class=\"ax-absolute ax-top-0 ax-left-1/2\">\n @if(totalNewNotification()){\n <ax-badge color=\"success\" [text]=\"totalNewNotification().toString()\"></ax-badge>\n }\n </ax-suffix>\n</ax-button>\n<ax-popover [target]=\"notification\" [openOn]=\"'toggle'\" [closeOn]=\"'clickOut'\" [adaptivityEnabled]=\"true\">\n <div class=\"ax-bg-surface ax-border ax-border-default ax-rounded-md ax-shadow-md ax-w-full\">\n <axm-admin-notification-panel (onNewNotfication)=\"setTotalNewNotification($event)\"> </axm-admin-notification-panel>\n </div>\n</ax-popover>\n" }]
|
199
216
|
}] });
|
200
217
|
|
201
|
-
class
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
218
|
+
class AXMNotificationModuleEntityLoader {
|
219
|
+
constructor() {
|
220
|
+
this.injector = inject(Injector);
|
221
|
+
}
|
222
|
+
async get(moduleName, entityName) {
|
223
|
+
return new Promise(async (resolve) => {
|
224
|
+
switch (entityName) {
|
225
|
+
case 'notificationTemplate': {
|
226
|
+
const entity = (await Promise.resolve().then(function () { return notificationTemplate_entity; })).notificationTemplateEntityFactory;
|
227
|
+
resolve(entity(this.injector));
|
228
|
+
break;
|
229
|
+
}
|
230
|
+
case 'notificationChannel': {
|
231
|
+
const entity = (await Promise.resolve().then(function () { return notificationChannel_entity; })).notificationChannelEntityFactory;
|
232
|
+
resolve(entity(this.injector));
|
233
|
+
break;
|
234
|
+
}
|
235
|
+
case 'my-notification': {
|
236
|
+
const entity = (await Promise.resolve().then(function () { return myNotification; })).myNotificationEntityFactory;
|
237
|
+
resolve(entity(this.injector));
|
238
|
+
break;
|
239
|
+
}
|
240
|
+
case 'notification': {
|
241
|
+
const entity = (await Promise.resolve().then(function () { return notification_entity; })).notificationEntityFactory;
|
242
|
+
resolve(entity(this.injector));
|
243
|
+
break;
|
244
|
+
}
|
245
|
+
default:
|
246
|
+
resolve(null);
|
247
|
+
}
|
248
|
+
});
|
249
|
+
}
|
250
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMNotificationModuleEntityLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
251
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMNotificationModuleEntityLoader }); }
|
252
|
+
}
|
253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMNotificationModuleEntityLoader, decorators: [{
|
254
|
+
type: Injectable
|
255
|
+
}] });
|
256
|
+
|
257
|
+
class AXMNotificationManagmentModuleMenuProvider {
|
258
|
+
async items() {
|
259
|
+
return [
|
260
|
+
{
|
261
|
+
items: [
|
262
|
+
{
|
263
|
+
text: 'My Notifications',
|
264
|
+
path: '/demo/m/notification-management/e/my-notification/list',
|
265
|
+
data: {
|
266
|
+
//requiredPermission: '',
|
267
|
+
},
|
217
268
|
},
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
269
|
+
],
|
270
|
+
insertAt: {
|
271
|
+
target: 'edit-profile'
|
272
|
+
}
|
273
|
+
},
|
274
|
+
{
|
275
|
+
items: [
|
276
|
+
{
|
277
|
+
priority: 9001,
|
278
|
+
text: 'Notification Management',
|
279
|
+
icon: 'fa-solid fa-bells',
|
280
|
+
data: {
|
281
|
+
// requiredPermission: 'demo.admin.settings',
|
282
|
+
},
|
283
|
+
children: [
|
284
|
+
{
|
285
|
+
text: 'Template',
|
286
|
+
path: '/demo/m/notification-management/e/notificationTemplate/list',
|
287
|
+
icon: 'fa-solid fa-file-invoice',
|
288
|
+
data: {
|
289
|
+
//requiredPermission: '',
|
290
|
+
},
|
291
|
+
},
|
292
|
+
{
|
293
|
+
text: 'Report',
|
294
|
+
path: '/demo/m/notification-management/e/notification/list',
|
295
|
+
icon: 'fa-solid fa-file-chart-column',
|
296
|
+
data: {
|
297
|
+
//requiredPermission: '',
|
298
|
+
},
|
299
|
+
},
|
300
|
+
],
|
301
|
+
},
|
302
|
+
]
|
303
|
+
}
|
304
|
+
];
|
222
305
|
}
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMNotificationManagementModule, deps: [{ token: 'AXP_REGISTER_TEMPLATE_NoTIFICATION', optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
306
|
+
}
|
307
|
+
|
308
|
+
class AXMNotificationManagementModule {
|
309
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMNotificationManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
228
310
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: AXMNotificationManagementModule, imports: [i1$2.AXPComponentSlotModule] }); }
|
229
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMNotificationManagementModule,
|
311
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXMNotificationManagementModule, providers: [
|
312
|
+
{
|
313
|
+
provide: AXP_ENTITY_DEFINITION_LOADER,
|
314
|
+
useClass: AXMNotificationModuleEntityLoader,
|
315
|
+
multi: true,
|
316
|
+
},
|
317
|
+
{
|
318
|
+
provide: AXP_MENU_PROVIDER,
|
319
|
+
useClass: AXMNotificationManagmentModuleMenuProvider,
|
320
|
+
multi: true
|
321
|
+
}
|
322
|
+
], imports: [AXPComponentSlotModule.forChild({
|
230
323
|
'header-end': [
|
231
324
|
{
|
232
325
|
name: 'notification',
|
233
|
-
component: AXMAdminNotificationSlotComponent
|
326
|
+
component: AXMAdminNotificationSlotComponent,
|
234
327
|
},
|
235
328
|
],
|
236
329
|
})] }); }
|
@@ -243,20 +336,273 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
243
336
|
'header-end': [
|
244
337
|
{
|
245
338
|
name: 'notification',
|
246
|
-
component: AXMAdminNotificationSlotComponent
|
339
|
+
component: AXMAdminNotificationSlotComponent,
|
247
340
|
},
|
248
341
|
],
|
249
342
|
}),
|
250
343
|
],
|
251
344
|
exports: [],
|
252
345
|
declarations: [],
|
346
|
+
providers: [
|
347
|
+
{
|
348
|
+
provide: AXP_ENTITY_DEFINITION_LOADER,
|
349
|
+
useClass: AXMNotificationModuleEntityLoader,
|
350
|
+
multi: true,
|
351
|
+
},
|
352
|
+
{
|
353
|
+
provide: AXP_MENU_PROVIDER,
|
354
|
+
useClass: AXMNotificationManagmentModuleMenuProvider,
|
355
|
+
multi: true
|
356
|
+
}
|
357
|
+
],
|
253
358
|
}]
|
254
|
-
}]
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
359
|
+
}] });
|
360
|
+
|
361
|
+
async function myNotificationEntityFactory(injector) {
|
362
|
+
const storageService = injector.get(AXPEntityStorageService);
|
363
|
+
const dataProvider = new AXPEntityDataProviderImpl(storageService, 'notifications');
|
364
|
+
const entityDef = {
|
365
|
+
module: 'notification-management',
|
366
|
+
name: 'notification',
|
367
|
+
source: 'notification-management.notification',
|
368
|
+
title: 'My Notifications',
|
369
|
+
formats: {
|
370
|
+
individual: 'Notification',
|
371
|
+
plural: 'My Notifications',
|
372
|
+
},
|
373
|
+
groups: [
|
374
|
+
{ id: 'data', title: 'Data' },
|
375
|
+
{ id: 'content', title: 'Content' },
|
376
|
+
{ id: 'action', title: 'Action' },
|
377
|
+
{ id: 'user', title: 'User' },
|
378
|
+
{ id: 'template', title: 'Template' },
|
379
|
+
],
|
380
|
+
properties: [
|
381
|
+
{
|
382
|
+
name: 'id',
|
383
|
+
title: 'ID',
|
384
|
+
groupId: 'data',
|
385
|
+
schema: {
|
386
|
+
dataType: 'string',
|
387
|
+
hidden: true,
|
388
|
+
nullable: false,
|
389
|
+
readonly: true,
|
390
|
+
unique: { enabled: true },
|
391
|
+
},
|
392
|
+
},
|
393
|
+
{
|
394
|
+
name: 'title',
|
395
|
+
title: 'Title',
|
396
|
+
groupId: 'data',
|
397
|
+
schema: {
|
398
|
+
dataType: 'string',
|
399
|
+
interface: {
|
400
|
+
type: AXPWidgetsCatalog.text,
|
401
|
+
},
|
402
|
+
},
|
403
|
+
},
|
404
|
+
{
|
405
|
+
name: 'body',
|
406
|
+
title: 'Body',
|
407
|
+
groupId: 'data',
|
408
|
+
schema: {
|
409
|
+
dataType: 'string',
|
410
|
+
interface: {
|
411
|
+
type: AXPWidgetsCatalog.largeText,
|
412
|
+
},
|
413
|
+
},
|
414
|
+
},
|
415
|
+
{
|
416
|
+
name: 'channel',
|
417
|
+
title: 'Channel',
|
418
|
+
groupId: 'data',
|
419
|
+
schema: {
|
420
|
+
dataType: 'string',
|
421
|
+
interface: {
|
422
|
+
type: AXPWidgetsCatalog.select,
|
423
|
+
options: { dataSource: ['InApp', 'Email', 'SMS'], multiple: false },
|
424
|
+
},
|
425
|
+
},
|
426
|
+
},
|
427
|
+
{
|
428
|
+
name: 'content.type',
|
429
|
+
title: 'Content Data',
|
430
|
+
groupId: 'content',
|
431
|
+
schema: {
|
432
|
+
dataType: 'object',
|
433
|
+
interface: {
|
434
|
+
type: AXPWidgetsCatalog.richText,
|
435
|
+
},
|
436
|
+
},
|
437
|
+
},
|
438
|
+
{
|
439
|
+
name: 'action.type',
|
440
|
+
title: 'Action Type',
|
441
|
+
groupId: 'action',
|
442
|
+
schema: {
|
443
|
+
dataType: 'string',
|
444
|
+
interface: {
|
445
|
+
type: AXPWidgetsCatalog.select,
|
446
|
+
options: { dataSource: ['Link', 'Entity', 'Popup'], multiple: false },
|
447
|
+
},
|
448
|
+
},
|
449
|
+
},
|
450
|
+
{
|
451
|
+
name: 'User.name',
|
452
|
+
title: 'Username',
|
453
|
+
groupId: 'user',
|
454
|
+
schema: {
|
455
|
+
dataType: 'string',
|
456
|
+
interface: {
|
457
|
+
type: AXPWidgetsCatalog.text,
|
458
|
+
},
|
459
|
+
},
|
460
|
+
},
|
461
|
+
{
|
462
|
+
name: 'template.category',
|
463
|
+
title: 'Category',
|
464
|
+
groupId: 'template',
|
465
|
+
schema: {
|
466
|
+
dataType: 'string',
|
467
|
+
interface: {
|
468
|
+
type: AXPWidgetsCatalog.select,
|
469
|
+
options: { dataSource: ['Inbox', 'Archive'], multiple: false },
|
470
|
+
},
|
471
|
+
},
|
472
|
+
},
|
473
|
+
{
|
474
|
+
name: 'template.prority',
|
475
|
+
title: 'Prority',
|
476
|
+
groupId: 'template',
|
477
|
+
schema: {
|
478
|
+
dataType: 'string',
|
479
|
+
interface: {
|
480
|
+
type: AXPWidgetsCatalog.select,
|
481
|
+
options: { dataSource: ['Warning', 'Danger', 'Notice'], multiple: false },
|
482
|
+
},
|
483
|
+
},
|
484
|
+
},
|
485
|
+
{
|
486
|
+
name: 'template.isPinned',
|
487
|
+
title: 'Is Pinned',
|
488
|
+
groupId: 'template',
|
489
|
+
schema: {
|
490
|
+
dataType: 'boolean',
|
491
|
+
interface: {
|
492
|
+
type: AXPWidgetsCatalog.checkbox,
|
493
|
+
options: {
|
494
|
+
label: 'Is Pinned',
|
495
|
+
},
|
496
|
+
},
|
497
|
+
},
|
498
|
+
},
|
499
|
+
{
|
500
|
+
name: 'readAt',
|
501
|
+
title: 'Read At',
|
502
|
+
groupId: 'data',
|
503
|
+
schema: {
|
504
|
+
dataType: 'datetime',
|
505
|
+
interface: {
|
506
|
+
type: AXPWidgetsCatalog.dateTime,
|
507
|
+
options: { format: 'date' },
|
508
|
+
},
|
509
|
+
},
|
510
|
+
},
|
511
|
+
{
|
512
|
+
name: 'createAt',
|
513
|
+
title: 'Created At',
|
514
|
+
groupId: 'data',
|
515
|
+
schema: {
|
516
|
+
dataType: 'datetime',
|
517
|
+
interface: {
|
518
|
+
type: AXPWidgetsCatalog.dateTime,
|
519
|
+
options: { format: 'date' },
|
520
|
+
},
|
521
|
+
},
|
522
|
+
},
|
523
|
+
],
|
524
|
+
columns: [
|
525
|
+
{ name: 'title' },
|
526
|
+
{ name: 'body' },
|
527
|
+
{ name: 'channel' },
|
528
|
+
{ name: 'user.name' },
|
529
|
+
{ name: 'template.category' },
|
530
|
+
{ name: 'template.prority' },
|
531
|
+
{ name: 'createAt' },
|
532
|
+
{ name: 'readAt' },
|
533
|
+
],
|
534
|
+
commands: {
|
535
|
+
create: {
|
536
|
+
execute: async (data) => {
|
537
|
+
console.log('CREATE', data);
|
538
|
+
const entity = Object.assign(data, { id: AXPDataGenerator.uuid() });
|
539
|
+
await dataProvider.insertOne(entity);
|
540
|
+
return entity;
|
541
|
+
},
|
542
|
+
},
|
543
|
+
delete: {
|
544
|
+
execute: async (id) => {
|
545
|
+
console.log('CREATE', id);
|
546
|
+
await dataProvider.deleteOne(id);
|
547
|
+
},
|
548
|
+
},
|
549
|
+
update: {
|
550
|
+
execute: async (data) => {
|
551
|
+
await dataProvider.updateOne(data.id, data);
|
552
|
+
},
|
553
|
+
},
|
554
|
+
},
|
555
|
+
queries: {
|
556
|
+
byKey: {
|
557
|
+
execute: async (id) => {
|
558
|
+
return await dataProvider.getOne(id);
|
559
|
+
},
|
560
|
+
type: AXPEntityQueryType.Single,
|
561
|
+
},
|
562
|
+
list: {
|
563
|
+
execute: async (e) => {
|
564
|
+
const list = await dataProvider.getAll();
|
565
|
+
return {
|
566
|
+
total: list.length,
|
567
|
+
items: list.slice(e.skip, e.skip + e.take),
|
568
|
+
};
|
569
|
+
},
|
570
|
+
type: AXPEntityQueryType.List,
|
571
|
+
},
|
572
|
+
},
|
573
|
+
interfaces: {
|
574
|
+
master: {
|
575
|
+
create: { sections: [{ id: 'content' }, { id: 'action' }, { id: 'user' }, { id: 'template' }] },
|
576
|
+
update: { sections: [{ id: 'content' }, { id: 'action' }, { id: 'user' }, { id: 'template' }] },
|
577
|
+
list: {
|
578
|
+
actions: [
|
579
|
+
// {
|
580
|
+
// title: 'Create New',
|
581
|
+
// command: 'create-entity',
|
582
|
+
// priority: 'primary',
|
583
|
+
// type: 'create',
|
584
|
+
// scope: AXPEntityCommandScope.TypeLevel,
|
585
|
+
// },
|
586
|
+
{
|
587
|
+
title: 'Delete',
|
588
|
+
command: 'delete-entity',
|
589
|
+
priority: 'primary',
|
590
|
+
type: 'delete',
|
591
|
+
scope: AXPEntityCommandScope.Selected,
|
592
|
+
},
|
593
|
+
],
|
594
|
+
views: [{ name: 'all', title: 'All Notifications', fixed: true, columns: [], conditions: [], sorts: [] }],
|
595
|
+
},
|
596
|
+
},
|
597
|
+
},
|
598
|
+
};
|
599
|
+
return entityDef;
|
600
|
+
}
|
601
|
+
|
602
|
+
var myNotification = /*#__PURE__*/Object.freeze({
|
603
|
+
__proto__: null,
|
604
|
+
myNotificationEntityFactory: myNotificationEntityFactory
|
605
|
+
});
|
260
606
|
|
261
607
|
const CHANNELS = ['InApp', 'Email', 'SMS'];
|
262
608
|
const TITLES = ['Buy Me!', 'Black Friday', 'New Message'];
|
@@ -265,7 +611,7 @@ const CATEGORIES = ['Inbox', 'Archive', 'Role'];
|
|
265
611
|
const TYPES = ['File', 'Person', 'Notification'];
|
266
612
|
const PRORITIES = ['Warning', 'Danger', 'Notice'];
|
267
613
|
const NOTIFICATION_TEMPLATES = Array.from({ length: 5 }).map((_, i) => {
|
268
|
-
const name = AXPDataGenerator.string;
|
614
|
+
const name = AXPDataGenerator.string();
|
269
615
|
return {
|
270
616
|
id: AXPDataGenerator.uuid(),
|
271
617
|
name: name,
|
@@ -404,7 +750,7 @@ async function notificationChannelEntityFactory(injector) {
|
|
404
750
|
schema: {
|
405
751
|
dataType: 'string',
|
406
752
|
interface: {
|
407
|
-
type: AXPWidgetsCatalog.
|
753
|
+
type: AXPWidgetsCatalog.richText,
|
408
754
|
},
|
409
755
|
},
|
410
756
|
validations: [
|
@@ -474,7 +820,6 @@ async function notificationChannelEntityFactory(injector) {
|
|
474
820
|
},
|
475
821
|
update: {
|
476
822
|
execute: async (data) => {
|
477
|
-
debugger;
|
478
823
|
return new Promise((resolve) => {
|
479
824
|
setTimeout(async () => {
|
480
825
|
await dataService.notificationChannelDataProvider.updateOne(data.id, data);
|
@@ -693,6 +1038,182 @@ var notificationChannel_entity = /*#__PURE__*/Object.freeze({
|
|
693
1038
|
notificationChannelEntityFactory: notificationChannelEntityFactory
|
694
1039
|
});
|
695
1040
|
|
1041
|
+
async function notificationLogEntityFactory(injector) {
|
1042
|
+
const dataService = injector.get(NotificationManagementService);
|
1043
|
+
const entityDef = {
|
1044
|
+
module: 'notification-management',
|
1045
|
+
name: 'notification',
|
1046
|
+
source: 'notification-management.notificationLog',
|
1047
|
+
title: 'Notification',
|
1048
|
+
formats: {
|
1049
|
+
individual: 'NotificationLog',
|
1050
|
+
plural: 'NotificationLogs',
|
1051
|
+
},
|
1052
|
+
relatedEntities: [],
|
1053
|
+
groups: [
|
1054
|
+
{
|
1055
|
+
id: 'notification',
|
1056
|
+
title: 'Notification',
|
1057
|
+
},
|
1058
|
+
],
|
1059
|
+
properties: [
|
1060
|
+
{
|
1061
|
+
name: 'name',
|
1062
|
+
title: 'Name',
|
1063
|
+
groupId: 'notification',
|
1064
|
+
schema: {
|
1065
|
+
dataType: 'string',
|
1066
|
+
interface: {
|
1067
|
+
type: AXPWidgetsCatalog.text,
|
1068
|
+
},
|
1069
|
+
},
|
1070
|
+
},
|
1071
|
+
{
|
1072
|
+
name: 'title',
|
1073
|
+
title: 'Title',
|
1074
|
+
groupId: 'notification',
|
1075
|
+
schema: {
|
1076
|
+
dataType: 'string',
|
1077
|
+
interface: {
|
1078
|
+
type: AXPWidgetsCatalog.text,
|
1079
|
+
},
|
1080
|
+
},
|
1081
|
+
},
|
1082
|
+
{
|
1083
|
+
name: 'status',
|
1084
|
+
title: 'Status',
|
1085
|
+
groupId: 'notification',
|
1086
|
+
schema: {
|
1087
|
+
dataType: 'string',
|
1088
|
+
interface: {
|
1089
|
+
type: AXPWidgetsCatalog.richText,
|
1090
|
+
},
|
1091
|
+
},
|
1092
|
+
},
|
1093
|
+
],
|
1094
|
+
columns: [{ name: 'name' }, { name: 'title' }, { name: 'body' }, { name: 'user.name' }, { name: 'channel' }],
|
1095
|
+
queries: {
|
1096
|
+
byKey: {
|
1097
|
+
execute: async (id) => {
|
1098
|
+
return new Promise((resolve) => {
|
1099
|
+
setTimeout(async () => {
|
1100
|
+
const entity = await dataService.notificationDataProvider.getOne(id);
|
1101
|
+
resolve(entity);
|
1102
|
+
}, 500);
|
1103
|
+
});
|
1104
|
+
},
|
1105
|
+
type: AXPEntityQueryType.Single,
|
1106
|
+
},
|
1107
|
+
list: {
|
1108
|
+
execute: async (e) => {
|
1109
|
+
const list = await dataService.notificationDataProvider.getAll();
|
1110
|
+
const sortedItems = applySortArray(list, e.sort);
|
1111
|
+
const filteredItems = applyFilterArray(sortedItems, e.filter ? [e.filter] : []);
|
1112
|
+
return Promise.resolve({
|
1113
|
+
total: filteredItems.length,
|
1114
|
+
items: filteredItems.slice(e.skip, (e.skip ?? 0) + (e.take ?? 0)),
|
1115
|
+
});
|
1116
|
+
},
|
1117
|
+
type: AXPEntityQueryType.List,
|
1118
|
+
},
|
1119
|
+
},
|
1120
|
+
interfaces: {
|
1121
|
+
master: {
|
1122
|
+
single: {
|
1123
|
+
title: '{{title}}',
|
1124
|
+
sections: [
|
1125
|
+
{
|
1126
|
+
id: 'notification',
|
1127
|
+
layout: {
|
1128
|
+
positions: {
|
1129
|
+
lg: {
|
1130
|
+
colSpan: 12,
|
1131
|
+
},
|
1132
|
+
},
|
1133
|
+
},
|
1134
|
+
},
|
1135
|
+
],
|
1136
|
+
properties: [
|
1137
|
+
{
|
1138
|
+
name: 'name',
|
1139
|
+
layout: {
|
1140
|
+
positions: {
|
1141
|
+
lg: {
|
1142
|
+
colSpan: 6,
|
1143
|
+
},
|
1144
|
+
},
|
1145
|
+
},
|
1146
|
+
},
|
1147
|
+
{
|
1148
|
+
name: 'user.name',
|
1149
|
+
layout: {
|
1150
|
+
positions: {
|
1151
|
+
lg: {
|
1152
|
+
colSpan: 6,
|
1153
|
+
},
|
1154
|
+
},
|
1155
|
+
},
|
1156
|
+
},
|
1157
|
+
{
|
1158
|
+
name: 'title',
|
1159
|
+
layout: {
|
1160
|
+
positions: {
|
1161
|
+
lg: {
|
1162
|
+
colSpan: 12,
|
1163
|
+
},
|
1164
|
+
},
|
1165
|
+
},
|
1166
|
+
},
|
1167
|
+
{
|
1168
|
+
name: 'body',
|
1169
|
+
layout: {
|
1170
|
+
positions: {
|
1171
|
+
lg: {
|
1172
|
+
colSpan: 12,
|
1173
|
+
},
|
1174
|
+
},
|
1175
|
+
},
|
1176
|
+
},
|
1177
|
+
{
|
1178
|
+
name: 'channel',
|
1179
|
+
layout: {
|
1180
|
+
positions: {
|
1181
|
+
lg: {
|
1182
|
+
colSpan: 6,
|
1183
|
+
},
|
1184
|
+
},
|
1185
|
+
},
|
1186
|
+
},
|
1187
|
+
],
|
1188
|
+
actions: [],
|
1189
|
+
},
|
1190
|
+
list: {
|
1191
|
+
actions: [
|
1192
|
+
{
|
1193
|
+
title: 'Details',
|
1194
|
+
command: 'open-entity',
|
1195
|
+
priority: 'primary',
|
1196
|
+
type: 'view',
|
1197
|
+
scope: AXPEntityCommandScope.Individual,
|
1198
|
+
},
|
1199
|
+
],
|
1200
|
+
views: [
|
1201
|
+
{
|
1202
|
+
name: 'all',
|
1203
|
+
title: 'All Items',
|
1204
|
+
fixed: true,
|
1205
|
+
columns: [],
|
1206
|
+
conditions: [],
|
1207
|
+
sorts: [],
|
1208
|
+
},
|
1209
|
+
],
|
1210
|
+
},
|
1211
|
+
},
|
1212
|
+
},
|
1213
|
+
};
|
1214
|
+
return entityDef;
|
1215
|
+
}
|
1216
|
+
|
696
1217
|
async function notificationTemplateEntityFactory(injector) {
|
697
1218
|
const dataService = injector.get(NotificationManagementService);
|
698
1219
|
const entityDef = {
|
@@ -987,6 +1508,11 @@ async function notificationTemplateEntityFactory(injector) {
|
|
987
1508
|
return entityDef;
|
988
1509
|
}
|
989
1510
|
|
1511
|
+
var notificationTemplate_entity = /*#__PURE__*/Object.freeze({
|
1512
|
+
__proto__: null,
|
1513
|
+
notificationTemplateEntityFactory: notificationTemplateEntityFactory
|
1514
|
+
});
|
1515
|
+
|
990
1516
|
async function notificationEntityFactory(injector) {
|
991
1517
|
const dataService = injector.get(NotificationManagementService);
|
992
1518
|
const entityDef = {
|
@@ -1199,5 +1725,5 @@ var notification_entity = /*#__PURE__*/Object.freeze({
|
|
1199
1725
|
* Generated bundle index. Do not edit.
|
1200
1726
|
*/
|
1201
1727
|
|
1202
|
-
export { AXMNotificationManagementModule, AXMNotificationService, notificationChannelEntityFactory, notificationEntityFactory, notificationTemplateEntityFactory };
|
1728
|
+
export { AXMNotificationManagementModule, AXMNotificationService, myNotificationEntityFactory, notificationChannelEntityFactory, notificationEntityFactory, notificationLogEntityFactory, notificationTemplateEntityFactory };
|
1203
1729
|
//# sourceMappingURL=acorex-modules-notification-management.mjs.map
|