@memberjunction/ng-notifications 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/module.d.ts +9 -0
- package/dist/lib/module.d.ts.map +1 -0
- package/dist/lib/module.js +25 -0
- package/dist/lib/module.js.map +1 -0
- package/dist/lib/notifications.service.d.ts +47 -0
- package/dist/lib/notifications.service.d.ts.map +1 -0
- package/dist/lib/notifications.service.js +179 -0
- package/dist/lib/notifications.service.js.map +1 -0
- package/dist/public-api.d.ts +3 -0
- package/dist/public-api.d.ts.map +1 -0
- package/dist/public-api.js +3 -0
- package/dist/public-api.js.map +1 -0
- package/package.json +35 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "@progress/kendo-angular-notification";
|
|
4
|
+
export declare class MJNotificationsModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MJNotificationsModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MJNotificationsModule, never, [typeof i1.CommonModule, typeof i2.NotificationModule], never>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MJNotificationsModule>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/lib/module.ts"],"names":[],"mappings":";;;AAMA,qBAUa,qBAAqB;yCAArB,qBAAqB;0CAArB,qBAAqB;0CAArB,qBAAqB;CAAI"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
// Kendo UI Angular imports
|
|
4
|
+
import { NotificationModule } from '@progress/kendo-angular-notification';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export class MJNotificationsModule {
|
|
7
|
+
}
|
|
8
|
+
MJNotificationsModule.ɵfac = function MJNotificationsModule_Factory(t) { return new (t || MJNotificationsModule)(); };
|
|
9
|
+
MJNotificationsModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MJNotificationsModule });
|
|
10
|
+
MJNotificationsModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
|
|
11
|
+
NotificationModule] });
|
|
12
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MJNotificationsModule, [{
|
|
13
|
+
type: NgModule,
|
|
14
|
+
args: [{
|
|
15
|
+
declarations: [],
|
|
16
|
+
imports: [
|
|
17
|
+
CommonModule,
|
|
18
|
+
NotificationModule
|
|
19
|
+
],
|
|
20
|
+
exports: []
|
|
21
|
+
}]
|
|
22
|
+
}], null, null); })();
|
|
23
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MJNotificationsModule, { imports: [CommonModule,
|
|
24
|
+
NotificationModule] }); })();
|
|
25
|
+
//# sourceMappingURL=module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/lib/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,2BAA2B;AAC3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;;AAY1E,MAAM,OAAO,qBAAqB;;0FAArB,qBAAqB;uEAArB,qBAAqB;2EAN9B,YAAY;QACZ,kBAAkB;iFAKT,qBAAqB;cAVjC,QAAQ;eAAC;gBACR,YAAY,EAAE,EACb;gBACD,OAAO,EAAE;oBACP,YAAY;oBACZ,kBAAkB;iBACnB;gBACD,OAAO,EAAE,EACR;aACF;;wFACY,qBAAqB,cAN9B,YAAY;QACZ,kBAAkB"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { UserNotificationEntity } from '@memberjunction/core-entities';
|
|
2
|
+
import { NotificationService } from "@progress/kendo-angular-notification";
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* This injectable service is also available as a singleton MJNotificationService.Instance globally within an Angular application/library process space. It is responsible for displaying notifications to the user and also is able to manage the User Notifications entity
|
|
7
|
+
* in the database.
|
|
8
|
+
*/
|
|
9
|
+
export declare class MJNotificationService {
|
|
10
|
+
private notificationService;
|
|
11
|
+
private static _instance;
|
|
12
|
+
private static _loaded;
|
|
13
|
+
private static isLoading$;
|
|
14
|
+
private tabChange;
|
|
15
|
+
tabChange$: Observable<unknown>;
|
|
16
|
+
constructor(notificationService: NotificationService);
|
|
17
|
+
PushStatusUpdates(): Observable<string>;
|
|
18
|
+
static get Instance(): MJNotificationService;
|
|
19
|
+
private static _userNotifications;
|
|
20
|
+
static get UserNotifications(): UserNotificationEntity[];
|
|
21
|
+
static get UnreadUserNotifications(): UserNotificationEntity[];
|
|
22
|
+
static get UnreadUserNotificationCount(): number;
|
|
23
|
+
/**
|
|
24
|
+
* Creates a user notification in the database and refreshes the UI. Returns the notification object.
|
|
25
|
+
* @param title
|
|
26
|
+
* @param message
|
|
27
|
+
* @param resourceTypeId
|
|
28
|
+
* @param resourceRecordId
|
|
29
|
+
* @param resourceConfiguration Any object, it is converted to a string by JSON.stringify and stored in the database
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
CreateNotification(title: string, message: string, resourceTypeId: string | null, resourceRecordId: string | null, resourceConfiguration: any | null, displayToUser?: boolean): Promise<UserNotificationEntity>;
|
|
33
|
+
/**
|
|
34
|
+
* Refresh the User Notifications from the database. This is called automatically when the service is first loaded after login occurs.
|
|
35
|
+
*/
|
|
36
|
+
static RefreshUserNotifications(): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Creates a message that is not saved to the User Notifications table, but is displayed to the user.
|
|
39
|
+
* @param message - text to display
|
|
40
|
+
* @param style - display styling
|
|
41
|
+
* @param hideAfter - option to auto hide after the specified delay in milliseconds
|
|
42
|
+
*/
|
|
43
|
+
CreateSimpleNotification(message: string, style?: "none" | "success" | "error" | "warning" | "info", hideAfter?: number): void;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MJNotificationService, never>;
|
|
45
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MJNotificationService>;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=notifications.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.service.d.ts","sourceRoot":"","sources":["../../src/lib/notifications.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAGvE,OAAO,EAAE,mBAAmB,EAAwB,MAAM,sCAAsC,CAAC;AACjG,OAAO,EAAmB,UAAU,EAAW,MAAM,MAAM,CAAC;;AAE5D;;;GAGG;AACH,qBAGa,qBAAqB;IAQpB,OAAO,CAAC,mBAAmB;IAPvC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAwB;IAChD,OAAO,CAAC,MAAM,CAAC,OAAO,CAAkB;IAExC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAuC;IAChE,OAAO,CAAC,SAAS,CAAiB;IAClC,UAAU,sBAAiC;gBAEvB,mBAAmB,EAAE,mBAAmB;IAwDrD,iBAAiB,IAAI,UAAU,CAAC,MAAM,CAAC;IAK9C,WAAkB,QAAQ,IAAI,qBAAqB,CAElD;IAED,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAAgC;IACjE,WAAkB,iBAAiB,IAAI,sBAAsB,EAAE,CAE9D;IACD,WAAkB,uBAAuB,IAAI,sBAAsB,EAAE,CAEpE;IACD,WAAkB,2BAA2B,IAAI,MAAM,CAEtD;IAGD;;;;;;;;OAQG;IACU,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,IAAI,EAAE,gBAAgB,EAAE,MAAM,GAAG,IAAI,EAAE,qBAAqB,EAAE,GAAG,GAAG,IAAI,EAAE,aAAa,GAAE,OAAc,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAyBlO;;OAEG;WACiB,wBAAwB;IAmB5C;;;;;OAKG;IACI,wBAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,GAAE,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAkB,EAAE,SAAS,CAAC,EAAE,MAAM;yCAnJ9H,qBAAqB;6CAArB,qBAAqB;CAkKjC"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { Injectable } from '@angular/core';
|
|
11
|
+
import { LogError, Metadata, RunView } from '@memberjunction/core';
|
|
12
|
+
import { MJEventType, MJGlobal } from '@memberjunction/global';
|
|
13
|
+
import { BehaviorSubject, Subject } from 'rxjs';
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
import * as i1 from "@progress/kendo-angular-notification";
|
|
16
|
+
/**
|
|
17
|
+
* This injectable service is also available as a singleton MJNotificationService.Instance globally within an Angular application/library process space. It is responsible for displaying notifications to the user and also is able to manage the User Notifications entity
|
|
18
|
+
* in the database.
|
|
19
|
+
*/
|
|
20
|
+
export class MJNotificationService {
|
|
21
|
+
constructor(notificationService) {
|
|
22
|
+
this.notificationService = notificationService;
|
|
23
|
+
this.tabChange = new Subject();
|
|
24
|
+
this.tabChange$ = this.tabChange.asObservable();
|
|
25
|
+
if (MJNotificationService._instance) {
|
|
26
|
+
// return existing instance which will short circuit the creation of a new instance
|
|
27
|
+
return MJNotificationService._instance;
|
|
28
|
+
}
|
|
29
|
+
// first time this has been called, so return ourselves since we're in the constructor
|
|
30
|
+
MJNotificationService._instance = this;
|
|
31
|
+
MJGlobal.Instance.GetEventListener(true).subscribe((event) => {
|
|
32
|
+
switch (event.event) {
|
|
33
|
+
case MJEventType.DisplaySimpleNotificationRequest:
|
|
34
|
+
// received the message to display a notification to the user, so do that...
|
|
35
|
+
const messageData = event.args;
|
|
36
|
+
this.CreateSimpleNotification(messageData.message, messageData.style, messageData.DisplayDuration);
|
|
37
|
+
break;
|
|
38
|
+
case MJEventType.ComponentEvent:
|
|
39
|
+
if (event.eventCode === "UserNotificationsUpdated") {
|
|
40
|
+
// refresh the user notifications
|
|
41
|
+
MJNotificationService.RefreshUserNotifications();
|
|
42
|
+
}
|
|
43
|
+
break;
|
|
44
|
+
case MJEventType.LoggedIn:
|
|
45
|
+
if (MJNotificationService._loaded === false)
|
|
46
|
+
MJNotificationService.RefreshUserNotifications();
|
|
47
|
+
// got the login, now subscribe to push status updates here so we can then raise them as events in MJ Global locally
|
|
48
|
+
this.PushStatusUpdates().subscribe((status) => {
|
|
49
|
+
var _a, _b, _c;
|
|
50
|
+
const statusObj = JSON.parse(status.message);
|
|
51
|
+
// pass along as an event so anyone else who wants to know about the push status update can do stuff
|
|
52
|
+
MJGlobal.Instance.RaiseEvent({
|
|
53
|
+
event: MJEventType.ComponentEvent,
|
|
54
|
+
eventCode: "PushStatusUpdates",
|
|
55
|
+
args: statusObj,
|
|
56
|
+
component: this
|
|
57
|
+
});
|
|
58
|
+
if (((_a = statusObj.type) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === 'usernotifications') {
|
|
59
|
+
if (statusObj.details && ((_b = statusObj.details.action) === null || _b === void 0 ? void 0 : _b.trim().toLowerCase()) === 'create') {
|
|
60
|
+
// we have changes to user notifications, so refresh them
|
|
61
|
+
this.CreateSimpleNotification('New Notification Available', "success", 2000);
|
|
62
|
+
MJNotificationService.RefreshUserNotifications();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
// otherwise just post it as a simple notification, except Skip messages, we will let Skip handle those
|
|
67
|
+
if (((_c = statusObj.type) === null || _c === void 0 ? void 0 : _c.trim().toLowerCase()) !== 'askskip') {
|
|
68
|
+
this.CreateSimpleNotification(statusObj.message, "success", 2500);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
PushStatusUpdates() {
|
|
77
|
+
const gp = Metadata.Provider;
|
|
78
|
+
return gp.PushStatusUpdates();
|
|
79
|
+
}
|
|
80
|
+
static get Instance() {
|
|
81
|
+
return MJNotificationService._instance;
|
|
82
|
+
}
|
|
83
|
+
static get UserNotifications() {
|
|
84
|
+
return MJNotificationService._userNotifications;
|
|
85
|
+
}
|
|
86
|
+
static get UnreadUserNotifications() {
|
|
87
|
+
return MJNotificationService._userNotifications.filter(n => n.Unread);
|
|
88
|
+
}
|
|
89
|
+
static get UnreadUserNotificationCount() {
|
|
90
|
+
return MJNotificationService.UnreadUserNotifications.length;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Creates a user notification in the database and refreshes the UI. Returns the notification object.
|
|
94
|
+
* @param title
|
|
95
|
+
* @param message
|
|
96
|
+
* @param resourceTypeId
|
|
97
|
+
* @param resourceRecordId
|
|
98
|
+
* @param resourceConfiguration Any object, it is converted to a string by JSON.stringify and stored in the database
|
|
99
|
+
* @returns
|
|
100
|
+
*/
|
|
101
|
+
CreateNotification(title_1, message_1, resourceTypeId_1, resourceRecordId_1, resourceConfiguration_1) {
|
|
102
|
+
return __awaiter(this, arguments, void 0, function* (title, message, resourceTypeId, resourceRecordId, resourceConfiguration, displayToUser = true) {
|
|
103
|
+
const md = new Metadata();
|
|
104
|
+
const notification = yield md.GetEntityObject('User Notifications');
|
|
105
|
+
notification.Title = title;
|
|
106
|
+
notification.Message = message;
|
|
107
|
+
if (resourceTypeId)
|
|
108
|
+
notification.ResourceTypeID = resourceTypeId;
|
|
109
|
+
if (resourceRecordId)
|
|
110
|
+
notification.ResourceRecordID = resourceRecordId;
|
|
111
|
+
if (resourceConfiguration)
|
|
112
|
+
notification.ResourceConfiguration = JSON.stringify(resourceConfiguration);
|
|
113
|
+
notification.UserID = md.CurrentUser.ID;
|
|
114
|
+
notification.Unread = true;
|
|
115
|
+
const result = yield notification.Save();
|
|
116
|
+
if (result) {
|
|
117
|
+
MJNotificationService.RefreshUserNotifications();
|
|
118
|
+
}
|
|
119
|
+
if (displayToUser)
|
|
120
|
+
this.CreateSimpleNotification(notification.Message, "success", 2500);
|
|
121
|
+
return notification;
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Refresh the User Notifications from the database. This is called automatically when the service is first loaded after login occurs.
|
|
126
|
+
*/
|
|
127
|
+
static RefreshUserNotifications() {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
129
|
+
try {
|
|
130
|
+
const rv = new RunView();
|
|
131
|
+
const md = new Metadata();
|
|
132
|
+
const result = yield rv.RunView({
|
|
133
|
+
EntityName: 'User Notifications',
|
|
134
|
+
ExtraFilter: `UserID='${md.CurrentUser.ID}'`,
|
|
135
|
+
OrderBy: '__mj_CreatedAt DESC',
|
|
136
|
+
ResultType: 'entity_object' /* we want the entity objects, this has a little bit of overhead cost, but since we'll want to be able to modify the unread state it is helpful to have these ready to go */
|
|
137
|
+
});
|
|
138
|
+
if (result && result.Success) {
|
|
139
|
+
MJNotificationService._userNotifications = result.Results;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
catch (e) {
|
|
143
|
+
LogError(e);
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Creates a message that is not saved to the User Notifications table, but is displayed to the user.
|
|
149
|
+
* @param message - text to display
|
|
150
|
+
* @param style - display styling
|
|
151
|
+
* @param hideAfter - option to auto hide after the specified delay in milliseconds
|
|
152
|
+
*/
|
|
153
|
+
CreateSimpleNotification(message, style = "success", hideAfter) {
|
|
154
|
+
const props = {
|
|
155
|
+
content: message,
|
|
156
|
+
cssClass: "button-notification",
|
|
157
|
+
animation: { type: "slide", duration: 400 },
|
|
158
|
+
position: { horizontal: "center", vertical: "top" },
|
|
159
|
+
type: { style: style, icon: true }
|
|
160
|
+
};
|
|
161
|
+
if (hideAfter)
|
|
162
|
+
props.hideAfter = hideAfter;
|
|
163
|
+
else
|
|
164
|
+
props.closable = true;
|
|
165
|
+
this.notificationService.show(props);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
MJNotificationService._loaded = false;
|
|
169
|
+
MJNotificationService.isLoading$ = new BehaviorSubject(false);
|
|
170
|
+
MJNotificationService._userNotifications = [];
|
|
171
|
+
MJNotificationService.ɵfac = function MJNotificationService_Factory(t) { return new (t || MJNotificationService)(i0.ɵɵinject(i1.NotificationService)); };
|
|
172
|
+
MJNotificationService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: MJNotificationService, factory: MJNotificationService.ɵfac, providedIn: 'root' });
|
|
173
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MJNotificationService, [{
|
|
174
|
+
type: Injectable,
|
|
175
|
+
args: [{
|
|
176
|
+
providedIn: 'root'
|
|
177
|
+
}]
|
|
178
|
+
}], () => [{ type: i1.NotificationService }], null); })();
|
|
179
|
+
//# sourceMappingURL=notifications.service.js.map
|
|
@@ -0,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,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE;SACnC,CAAA;QACD,IAAI,SAAS;YACX,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;;YAE5B,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;QAExB,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACvC,CAAC;;AA/Jc,6BAAO,GAAY,KAAK,AAAjB,CAAkB;AAEzB,gCAAU,GAAG,IAAI,eAAe,CAAU,KAAK,CAAC,AAAtC,CAAuC;AAqEjD,wCAAkB,GAA6B,EAAE,AAA/B,CAAgC;0FAzEtD,qBAAqB;2EAArB,qBAAqB,WAArB,qBAAqB,mBAFpB,MAAM;iFAEP,qBAAqB;cAHjC,UAAU;eAAC;gBACV,UAAU,EAAE,MAAM;aACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,6BAA6B,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@memberjunction/ng-notifications",
|
|
3
|
+
"version": "2.17.0",
|
|
4
|
+
"description": "MemberJunction: Simple Angular library for displaying user notifications",
|
|
5
|
+
"main": "./dist/public-api.js",
|
|
6
|
+
"typings": "./dist/public-api.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"/dist"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
|
+
"build": "ngc"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [],
|
|
15
|
+
"author": "",
|
|
16
|
+
"license": "ISC",
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@angular/compiler": "18.0.2",
|
|
19
|
+
"@angular/compiler-cli": "18.0.2"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"@angular/common": "18.0.2",
|
|
23
|
+
"@angular/core": "18.0.2",
|
|
24
|
+
"@progress/kendo-angular-notification": "16.2.0"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@memberjunction/core": "2.17.0",
|
|
28
|
+
"@memberjunction/core-entities": "2.17.0",
|
|
29
|
+
"@memberjunction/global": "2.17.0",
|
|
30
|
+
"@memberjunction/graphql-dataprovider": "2.17.0",
|
|
31
|
+
"tslib": "^2.3.0",
|
|
32
|
+
"rxjs": "^7.8.1"
|
|
33
|
+
},
|
|
34
|
+
"sideEffects": false
|
|
35
|
+
}
|