@memberjunction/ng-shared 2.16.0 → 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/base-resource-component.d.ts +1 -13
- package/dist/lib/base-resource-component.d.ts.map +1 -1
- package/dist/lib/base-resource-component.js +1 -23
- package/dist/lib/base-resource-component.js.map +1 -1
- package/dist/lib/shared.service.d.ts +18 -3
- package/dist/lib/shared.service.d.ts.map +1 -1
- package/dist/lib/shared.service.js +36 -97
- package/dist/lib/shared.service.js.map +1 -1
- package/dist/module.d.ts +2 -1
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +6 -2
- package/dist/module.js.map +1 -1
- package/package.json +7 -5
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseEntity } from "@memberjunction/core";
|
|
2
2
|
import { BaseNavigationComponent } from "./base-navigation-component";
|
|
3
|
+
import { ResourceData } from "@memberjunction/core-entities";
|
|
3
4
|
export declare abstract class BaseResourceComponent extends BaseNavigationComponent {
|
|
4
5
|
Data: ResourceData;
|
|
5
6
|
private _loadComplete;
|
|
@@ -21,17 +22,4 @@ export declare abstract class BaseResourceComponent extends BaseNavigationCompon
|
|
|
21
22
|
abstract GetResourceDisplayName(data: ResourceData): Promise<string>;
|
|
22
23
|
abstract GetResourceIconClass(data: ResourceData): Promise<string>;
|
|
23
24
|
}
|
|
24
|
-
export declare class ResourceData {
|
|
25
|
-
constructor(data?: any);
|
|
26
|
-
ID: number;
|
|
27
|
-
Name: string;
|
|
28
|
-
ResourceTypeID: string;
|
|
29
|
-
ResourceRecordID: any;
|
|
30
|
-
Configuration: any;
|
|
31
|
-
/**
|
|
32
|
-
* Returns the name of the resource type based on the ResourceTypeID
|
|
33
|
-
*/
|
|
34
|
-
get ResourceType(): string;
|
|
35
|
-
get ResourceIcon(): string;
|
|
36
|
-
}
|
|
37
25
|
//# sourceMappingURL=base-resource-component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-resource-component.d.ts","sourceRoot":"","sources":["../../src/lib/base-resource-component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"base-resource-component.d.ts","sourceRoot":"","sources":["../../src/lib/base-resource-component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,8BAAsB,qBAAsB,SAAQ,uBAAuB;IAChE,IAAI,EAAE,YAAY,CAAsB;IAE/C,OAAO,CAAC,aAAa,CAAkB;IACvC,IAAW,YAAY,IAAI,OAAO,CAEjC;IAED,OAAO,CAAC,YAAY,CAAkB;IACtC,IAAW,WAAW,IAAI,OAAO,CAEhC;IAGD,OAAO,CAAC,kBAAkB,CAAa;IACvC,IAAW,iBAAiB,IAAI,GAAG,CAElC;IACD,IAAW,iBAAiB,CAAC,KAAK,EAAE,GAAG,EAEtC;IAED,OAAO,CAAC,iBAAiB,CAAa;IACtC,IAAW,gBAAgB,IAAI,GAAG,CAEjC;IACD,IAAW,gBAAgB,CAAC,KAAK,EAAE,GAAG,EAErC;IAED,OAAO,CAAC,yBAAyB,CAAa;IAC9C,IAAW,wBAAwB,IAAI,GAAG,CAEzC;IACD,IAAW,wBAAwB,CAAC,KAAK,EAAE,GAAG,EAE7C;IAED,SAAS,CAAC,kBAAkB;IAO5B,SAAS,CAAC,iBAAiB;IAS3B,SAAS,CAAC,mBAAmB,CAAC,oBAAoB,EAAE,UAAU;IAO9D,QAAQ,CAAC,sBAAsB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC;IAEpE,QAAQ,CAAC,oBAAoB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC;CACrE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SharedService } from "./shared.service";
|
|
2
1
|
import { BaseNavigationComponent } from "./base-navigation-component";
|
|
2
|
+
import { ResourceData } from "@memberjunction/core-entities";
|
|
3
3
|
export class BaseResourceComponent extends BaseNavigationComponent {
|
|
4
4
|
constructor() {
|
|
5
5
|
super(...arguments);
|
|
@@ -53,26 +53,4 @@ export class BaseResourceComponent extends BaseNavigationComponent {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
export class ResourceData {
|
|
57
|
-
constructor(data = null) {
|
|
58
|
-
if (data) {
|
|
59
|
-
this.ID = data.ID;
|
|
60
|
-
this.Name = data.Name;
|
|
61
|
-
this.ResourceTypeID = data.ResourceTypeID;
|
|
62
|
-
this.ResourceRecordID = data.ResourceRecordID;
|
|
63
|
-
this.Configuration = data.Configuration;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Returns the name of the resource type based on the ResourceTypeID
|
|
68
|
-
*/
|
|
69
|
-
get ResourceType() {
|
|
70
|
-
const rt = SharedService.Instance.ResourceTypes.find(rt => rt.ID === this.ResourceTypeID);
|
|
71
|
-
return rt ? rt.Name : '';
|
|
72
|
-
}
|
|
73
|
-
get ResourceIcon() {
|
|
74
|
-
const rt = SharedService.Instance.ResourceTypes.find(rt => rt.ID === this.ResourceTypeID);
|
|
75
|
-
return rt && rt.Icon ? rt.Icon : '';
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
56
|
//# sourceMappingURL=base-resource-component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-resource-component.js","sourceRoot":"","sources":["../../src/lib/base-resource-component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base-resource-component.js","sourceRoot":"","sources":["../../src/lib/base-resource-component.ts"],"names":[],"mappings":"AAEA,OAAO,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BAAiB,EAAE,CAAC;YACzB,IAAI,CAAC,iBAAiB,EAAE,CAAC;QAC7B,CAAC;IACL,CAAC;IAIS,mBAAmB,CAAC,oBAAgC;QAC1D,IAAI,CAAC,IAAI,CAAC,gBAAgB,GAAG,oBAAoB,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxE,IAAI,IAAI,CAAC,yBAAyB,EAAE,CAAC;YACjC,IAAI,CAAC,yBAAyB,CAAC,oBAAoB,CAAC,CAAC;QACzD,CAAC;IACL,CAAC;CAKJ"}
|
|
@@ -2,16 +2,18 @@ import { ElementRef } from '@angular/core';
|
|
|
2
2
|
import { ResourceTypeEntity, UserNotificationEntity, ViewColumnInfo } from '@memberjunction/core-entities';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { NotificationService } from "@progress/kendo-angular-notification";
|
|
5
|
+
import { MJNotificationService } from '@memberjunction/ng-notifications';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class SharedService {
|
|
7
8
|
private notificationService;
|
|
9
|
+
private mjNotificationsService;
|
|
8
10
|
private static _instance;
|
|
9
11
|
private static _loaded;
|
|
10
12
|
private static _resourceTypes;
|
|
11
13
|
private static isLoading$;
|
|
12
14
|
private tabChange;
|
|
13
15
|
tabChange$: Observable<unknown>;
|
|
14
|
-
constructor(notificationService: NotificationService);
|
|
16
|
+
constructor(notificationService: NotificationService, mjNotificationsService: MJNotificationService);
|
|
15
17
|
static get Instance(): SharedService;
|
|
16
18
|
/**
|
|
17
19
|
* Returns the current session ID, which is automatically created when the service is instantiated.
|
|
@@ -38,9 +40,17 @@ export declare class SharedService {
|
|
|
38
40
|
private _currentUserImage;
|
|
39
41
|
get CurrentUserImage(): string | Blob;
|
|
40
42
|
set CurrentUserImage(value: string | Blob);
|
|
41
|
-
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated Use MJNotificationService.UserNotifications instead
|
|
45
|
+
*/
|
|
42
46
|
static get UserNotifications(): UserNotificationEntity[];
|
|
47
|
+
/**
|
|
48
|
+
* @deprecated Use MJNotificationService.UnreadUserNotifications instead
|
|
49
|
+
*/
|
|
43
50
|
static get UnreadUserNotifications(): UserNotificationEntity[];
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated Use MJNotificationService.UnreadUserNotificationCount instead
|
|
53
|
+
*/
|
|
44
54
|
static get UnreadUserNotificationCount(): number;
|
|
45
55
|
/**
|
|
46
56
|
* Utility method that returns true if child is a descendant of parent, false otherwise.
|
|
@@ -54,14 +64,19 @@ export declare class SharedService {
|
|
|
54
64
|
* @param resourceRecordId
|
|
55
65
|
* @param resourceConfiguration Any object, it is converted to a string by JSON.stringify and stored in the database
|
|
56
66
|
* @returns
|
|
67
|
+
* @deprecated Use MJNotificationService.CreateNotification instead
|
|
68
|
+
*/
|
|
69
|
+
CreateNotification(title: string, message: string, resourceTypeId: string | null, resourceRecordId: string | null, resourceConfiguration: any | null, displayToUser?: boolean): Promise<UserNotificationEntity>;
|
|
70
|
+
/**
|
|
71
|
+
* @deprecated Use MJNotificationService.RefreshUserNotifications instead
|
|
57
72
|
*/
|
|
58
|
-
CreateNotification(title: string, message: string, resourceTypeId: string | null, resourceRecordId: string | null, resourceConfiguration: any | null): Promise<UserNotificationEntity>;
|
|
59
73
|
static RefreshUserNotifications(): Promise<void>;
|
|
60
74
|
/**
|
|
61
75
|
* Creates a message that is not saved to the User Notifications table, but is displayed to the user.
|
|
62
76
|
* @param message - text to display
|
|
63
77
|
* @param style - display styling
|
|
64
78
|
* @param hideAfter - option to auto hide after the specified delay in milliseconds
|
|
79
|
+
* @deprecated Use MJNotificationService.CreateSimpleNotification instead
|
|
65
80
|
*/
|
|
66
81
|
CreateSimpleNotification(message: string, style?: "none" | "success" | "error" | "warning" | "info", hideAfter?: number): void;
|
|
67
82
|
private _resourceTypeMap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.service.d.ts","sourceRoot":"","sources":["../../src/lib/shared.service.ts"],"names":[],"mappings":"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AAC;IAInO;;OAEG;WACiB,wBAAwB;IAI5C;;;;;;OAMG;IACI,wBAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,GAAE,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAkB,EAAE,SAAS,CAAC,EAAE,MAAM;IAMzI,OAAO,CAAC,gBAAgB,CASvB;IACD;;;;OAIG;IACI,iCAAiC,CAAC,gBAAgB,EAAE,MAAM;IAQjE;;;;OAIG;IACI,iCAAiC,CAAC,oBAAoB,EAAE,MAAM;yCA7P1D,aAAa;6CAAb,aAAa;CAoQzB;AAED,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAG1E,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;CAeb,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -8,16 +8,19 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { Injectable } from '@angular/core';
|
|
11
|
-
import { LogError, Metadata
|
|
11
|
+
import { LogError, Metadata } from '@memberjunction/core';
|
|
12
12
|
import { ResourcePermissionEngine } from '@memberjunction/core-entities';
|
|
13
13
|
import { MJEventType, MJGlobal, ConvertMarkdownStringToHtmlList } from '@memberjunction/global';
|
|
14
14
|
import { Subject, BehaviorSubject, firstValueFrom } from 'rxjs';
|
|
15
15
|
import { first, tap } from 'rxjs/operators';
|
|
16
|
+
import { MJNotificationService } from '@memberjunction/ng-notifications';
|
|
16
17
|
import * as i0 from "@angular/core";
|
|
17
18
|
import * as i1 from "@progress/kendo-angular-notification";
|
|
19
|
+
import * as i2 from "@memberjunction/ng-notifications";
|
|
18
20
|
export class SharedService {
|
|
19
|
-
constructor(notificationService) {
|
|
21
|
+
constructor(notificationService, mjNotificationsService) {
|
|
20
22
|
this.notificationService = notificationService;
|
|
23
|
+
this.mjNotificationsService = mjNotificationsService;
|
|
21
24
|
this.tabChange = new Subject();
|
|
22
25
|
this.tabChange$ = this.tabChange.asObservable();
|
|
23
26
|
this._currentUserImage = '/assets/user.png';
|
|
@@ -36,50 +39,17 @@ export class SharedService {
|
|
|
36
39
|
}
|
|
37
40
|
// first time this has been called, so return ourselves since we're in the constructor
|
|
38
41
|
SharedService._instance = this;
|
|
39
|
-
MJGlobal.Instance.GetEventListener(true).subscribe((event) => {
|
|
42
|
+
MJGlobal.Instance.GetEventListener(true).subscribe((event) => __awaiter(this, void 0, void 0, function* () {
|
|
40
43
|
switch (event.event) {
|
|
41
|
-
case MJEventType.DisplaySimpleNotificationRequest:
|
|
42
|
-
// received the message to display a notification to the user, so do that...
|
|
43
|
-
const messageData = event.args;
|
|
44
|
-
this.CreateSimpleNotification(messageData.message, messageData.style, messageData.DisplayDuration);
|
|
45
|
-
break;
|
|
46
|
-
case MJEventType.ComponentEvent:
|
|
47
|
-
if (event.eventCode === EventCodes.UserNotificationsUpdated) {
|
|
48
|
-
// refresh the user notifications
|
|
49
|
-
SharedService.RefreshUserNotifications();
|
|
50
|
-
}
|
|
51
|
-
break;
|
|
52
44
|
case MJEventType.LoggedIn:
|
|
53
|
-
if (SharedService._loaded === false)
|
|
54
|
-
SharedService.RefreshData(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
const statusObj = JSON.parse(status.message);
|
|
59
|
-
// pass along as an event so anyone else who wants to know about the push status update can do stuff
|
|
60
|
-
MJGlobal.Instance.RaiseEvent({
|
|
61
|
-
event: MJEventType.ComponentEvent,
|
|
62
|
-
eventCode: EventCodes.PushStatusUpdates,
|
|
63
|
-
args: statusObj,
|
|
64
|
-
component: this
|
|
65
|
-
});
|
|
66
|
-
if (((_a = statusObj.type) === null || _a === void 0 ? void 0 : _a.trim().toLowerCase()) === 'usernotifications') {
|
|
67
|
-
if (statusObj.details && ((_b = statusObj.details.action) === null || _b === void 0 ? void 0 : _b.trim().toLowerCase()) === 'create') {
|
|
68
|
-
// we have changes to user notifications, so refresh them
|
|
69
|
-
this.CreateSimpleNotification('New Notification Available', "success", 2000);
|
|
70
|
-
SharedService.RefreshUserNotifications();
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
// otherwise just post it as a simple notification, except Skip messages, we will let Skip handle those
|
|
75
|
-
if (((_c = statusObj.type) === null || _c === void 0 ? void 0 : _c.trim().toLowerCase()) !== 'askskip') {
|
|
76
|
-
this.CreateSimpleNotification(statusObj.message, "success", 2500);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
});
|
|
45
|
+
if (SharedService._loaded === false) {
|
|
46
|
+
const p1 = SharedService.RefreshData(false);
|
|
47
|
+
const p2 = ResourcePermissionEngine.Instance.Config(); // make sure that we get resource permissions configured
|
|
48
|
+
yield Promise.all([p1, p2]);
|
|
49
|
+
}
|
|
80
50
|
break;
|
|
81
51
|
}
|
|
82
|
-
});
|
|
52
|
+
}));
|
|
83
53
|
}
|
|
84
54
|
static get Instance() {
|
|
85
55
|
return SharedService._instance;
|
|
@@ -189,14 +159,23 @@ export class SharedService {
|
|
|
189
159
|
set CurrentUserImage(value) {
|
|
190
160
|
this._currentUserImage = value;
|
|
191
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* @deprecated Use MJNotificationService.UserNotifications instead
|
|
164
|
+
*/
|
|
192
165
|
static get UserNotifications() {
|
|
193
|
-
return
|
|
166
|
+
return MJNotificationService.UserNotifications;
|
|
194
167
|
}
|
|
168
|
+
/**
|
|
169
|
+
* @deprecated Use MJNotificationService.UnreadUserNotifications instead
|
|
170
|
+
*/
|
|
195
171
|
static get UnreadUserNotifications() {
|
|
196
|
-
return
|
|
172
|
+
return MJNotificationService.UnreadUserNotifications;
|
|
197
173
|
}
|
|
174
|
+
/**
|
|
175
|
+
* @deprecated Use MJNotificationService.UnreadUserNotificationCount instead
|
|
176
|
+
*/
|
|
198
177
|
static get UnreadUserNotificationCount() {
|
|
199
|
-
return
|
|
178
|
+
return MJNotificationService.UnreadUserNotificationCount;
|
|
200
179
|
}
|
|
201
180
|
/**
|
|
202
181
|
* Utility method that returns true if child is a descendant of parent, false otherwise.
|
|
@@ -221,48 +200,19 @@ export class SharedService {
|
|
|
221
200
|
* @param resourceRecordId
|
|
222
201
|
* @param resourceConfiguration Any object, it is converted to a string by JSON.stringify and stored in the database
|
|
223
202
|
* @returns
|
|
203
|
+
* @deprecated Use MJNotificationService.CreateNotification instead
|
|
224
204
|
*/
|
|
225
|
-
CreateNotification(
|
|
226
|
-
return __awaiter(this,
|
|
227
|
-
|
|
228
|
-
const notification = yield md.GetEntityObject('User Notifications');
|
|
229
|
-
notification.Title = title;
|
|
230
|
-
notification.Message = message;
|
|
231
|
-
if (resourceTypeId)
|
|
232
|
-
notification.ResourceTypeID = resourceTypeId;
|
|
233
|
-
if (resourceRecordId)
|
|
234
|
-
notification.ResourceRecordID = resourceRecordId;
|
|
235
|
-
if (resourceConfiguration)
|
|
236
|
-
notification.ResourceConfiguration = JSON.stringify(resourceConfiguration);
|
|
237
|
-
notification.UserID = md.CurrentUser.ID;
|
|
238
|
-
notification.Unread = true;
|
|
239
|
-
const result = yield notification.Save();
|
|
240
|
-
if (result) {
|
|
241
|
-
SharedService.RefreshUserNotifications();
|
|
242
|
-
}
|
|
243
|
-
// test
|
|
244
|
-
this.CreateSimpleNotification(notification.Message, "success", 2500);
|
|
245
|
-
return notification;
|
|
205
|
+
CreateNotification(title_1, message_1, resourceTypeId_1, resourceRecordId_1, resourceConfiguration_1) {
|
|
206
|
+
return __awaiter(this, arguments, void 0, function* (title, message, resourceTypeId, resourceRecordId, resourceConfiguration, displayToUser = true) {
|
|
207
|
+
return this.mjNotificationsService.CreateNotification(title, message, resourceTypeId, resourceRecordId, resourceConfiguration, displayToUser);
|
|
246
208
|
});
|
|
247
209
|
}
|
|
210
|
+
/**
|
|
211
|
+
* @deprecated Use MJNotificationService.RefreshUserNotifications instead
|
|
212
|
+
*/
|
|
248
213
|
static RefreshUserNotifications() {
|
|
249
214
|
return __awaiter(this, void 0, void 0, function* () {
|
|
250
|
-
|
|
251
|
-
const rv = new RunView();
|
|
252
|
-
const md = new Metadata();
|
|
253
|
-
const result = yield rv.RunView({
|
|
254
|
-
EntityName: 'User Notifications',
|
|
255
|
-
ExtraFilter: `UserID='${md.CurrentUser.ID}'`,
|
|
256
|
-
OrderBy: '__mj_CreatedAt DESC',
|
|
257
|
-
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 */
|
|
258
|
-
});
|
|
259
|
-
if (result && result.Success) {
|
|
260
|
-
SharedService._userNotifications = result.Results;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
catch (e) {
|
|
264
|
-
LogError(e);
|
|
265
|
-
}
|
|
215
|
+
MJNotificationService.RefreshUserNotifications();
|
|
266
216
|
});
|
|
267
217
|
}
|
|
268
218
|
/**
|
|
@@ -270,20 +220,10 @@ export class SharedService {
|
|
|
270
220
|
* @param message - text to display
|
|
271
221
|
* @param style - display styling
|
|
272
222
|
* @param hideAfter - option to auto hide after the specified delay in milliseconds
|
|
223
|
+
* @deprecated Use MJNotificationService.CreateSimpleNotification instead
|
|
273
224
|
*/
|
|
274
225
|
CreateSimpleNotification(message, style = "success", hideAfter) {
|
|
275
|
-
|
|
276
|
-
content: message,
|
|
277
|
-
cssClass: "button-notification",
|
|
278
|
-
animation: { type: "slide", duration: 400 },
|
|
279
|
-
position: { horizontal: "center", vertical: "top" },
|
|
280
|
-
type: { style: style, icon: true }
|
|
281
|
-
};
|
|
282
|
-
if (hideAfter)
|
|
283
|
-
props.hideAfter = hideAfter;
|
|
284
|
-
else
|
|
285
|
-
props.closable = true;
|
|
286
|
-
this.notificationService.show(props);
|
|
226
|
+
return this.mjNotificationsService.CreateSimpleNotification(message, style, hideAfter);
|
|
287
227
|
}
|
|
288
228
|
/**
|
|
289
229
|
* Maps a Resource Type record Name column to the corresponding route segment
|
|
@@ -313,15 +253,14 @@ export class SharedService {
|
|
|
313
253
|
SharedService._loaded = false;
|
|
314
254
|
SharedService._resourceTypes = [];
|
|
315
255
|
SharedService.isLoading$ = new BehaviorSubject(false);
|
|
316
|
-
SharedService
|
|
317
|
-
SharedService.ɵfac = function SharedService_Factory(t) { return new (t || SharedService)(i0.ɵɵinject(i1.NotificationService)); };
|
|
256
|
+
SharedService.ɵfac = function SharedService_Factory(t) { return new (t || SharedService)(i0.ɵɵinject(i1.NotificationService), i0.ɵɵinject(i2.MJNotificationService)); };
|
|
318
257
|
SharedService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: SharedService, factory: SharedService.ɵfac, providedIn: 'root' });
|
|
319
258
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SharedService, [{
|
|
320
259
|
type: Injectable,
|
|
321
260
|
args: [{
|
|
322
261
|
providedIn: 'root'
|
|
323
262
|
}]
|
|
324
|
-
}], () => [{ type: i1.NotificationService }], null); })();
|
|
263
|
+
}], () => [{ type: i1.NotificationService }, { type: i2.MJNotificationService }], null); })();
|
|
325
264
|
export const HtmlListType = {
|
|
326
265
|
Unordered: 'Unordered',
|
|
327
266
|
Ordered: 'Ordered',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.service.js","sourceRoot":"","sources":["../../src/lib/shared.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAc,UAAU,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAA0B,QAAQ,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"shared.service.js","sourceRoot":"","sources":["../../src/lib/shared.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAc,UAAU,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAA0B,QAAQ,EAAE,QAAQ,EAAW,M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
|
|
|
2
2
|
import * as i1 from "./lib/urlPipe";
|
|
3
3
|
import * as i2 from "./lib/simpleTextFormat";
|
|
4
4
|
import * as i3 from "@progress/kendo-angular-notification";
|
|
5
|
+
import * as i4 from "@memberjunction/ng-notifications";
|
|
5
6
|
export declare class MemberJunctionSharedModule {
|
|
6
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<MemberJunctionSharedModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MemberJunctionSharedModule, [typeof i1.URLPipe, typeof i2.SimpleTextFormatPipe], [typeof i3.NotificationModule], [typeof i1.URLPipe, typeof i2.SimpleTextFormatPipe]>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MemberJunctionSharedModule, [typeof i1.URLPipe, typeof i2.SimpleTextFormatPipe], [typeof i3.NotificationModule, typeof i4.MJNotificationsModule], [typeof i1.URLPipe, typeof i2.SimpleTextFormatPipe]>;
|
|
8
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<MemberJunctionSharedModule>;
|
|
9
10
|
}
|
|
10
11
|
//# sourceMappingURL=module.d.ts.map
|
package/dist/module.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":";;;;;AAKA,qBAca,0BAA0B;yCAA1B,0BAA0B;0CAA1B,0BAA0B;0CAA1B,0BAA0B;CAAI"}
|
package/dist/module.js
CHANGED
|
@@ -2,12 +2,14 @@ import { NgModule } from '@angular/core';
|
|
|
2
2
|
import { URLPipe } from './lib/urlPipe';
|
|
3
3
|
import { NotificationModule } from '@progress/kendo-angular-notification';
|
|
4
4
|
import { SimpleTextFormatPipe } from './lib/simpleTextFormat';
|
|
5
|
+
import { MJNotificationsModule } from '@memberjunction/ng-notifications';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export class MemberJunctionSharedModule {
|
|
7
8
|
}
|
|
8
9
|
MemberJunctionSharedModule.ɵfac = function MemberJunctionSharedModule_Factory(t) { return new (t || MemberJunctionSharedModule)(); };
|
|
9
10
|
MemberJunctionSharedModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: MemberJunctionSharedModule });
|
|
10
|
-
MemberJunctionSharedModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [NotificationModule
|
|
11
|
+
MemberJunctionSharedModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [NotificationModule,
|
|
12
|
+
MJNotificationsModule] });
|
|
11
13
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MemberJunctionSharedModule, [{
|
|
12
14
|
type: NgModule,
|
|
13
15
|
args: [{
|
|
@@ -17,6 +19,7 @@ MemberJunctionSharedModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports
|
|
|
17
19
|
],
|
|
18
20
|
imports: [
|
|
19
21
|
NotificationModule,
|
|
22
|
+
MJNotificationsModule
|
|
20
23
|
],
|
|
21
24
|
exports: [
|
|
22
25
|
URLPipe,
|
|
@@ -25,6 +28,7 @@ MemberJunctionSharedModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports
|
|
|
25
28
|
}]
|
|
26
29
|
}], null, null); })();
|
|
27
30
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MemberJunctionSharedModule, { declarations: [URLPipe,
|
|
28
|
-
SimpleTextFormatPipe], imports: [NotificationModule
|
|
31
|
+
SimpleTextFormatPipe], imports: [NotificationModule,
|
|
32
|
+
MJNotificationsModule], exports: [URLPipe,
|
|
29
33
|
SimpleTextFormatPipe] }); })();
|
|
30
34
|
//# sourceMappingURL=module.js.map
|
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;;
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;;AAezE,MAAM,OAAO,0BAA0B;;oGAA1B,0BAA0B;4EAA1B,0BAA0B;gFARnC,kBAAkB;QAClB,qBAAqB;iFAOZ,0BAA0B;cAdtC,QAAQ;eAAC;gBACR,YAAY,EAAE;oBACZ,OAAO;oBACP,oBAAoB;iBACrB;gBACD,OAAO,EAAE;oBACP,kBAAkB;oBAClB,qBAAqB;iBACtB;gBACD,OAAO,EAAE;oBACP,OAAO;oBACP,oBAAoB;iBACrB;aACF;;wFACY,0BAA0B,mBAZnC,OAAO;QACP,oBAAoB,aAGpB,kBAAkB;QAClB,qBAAqB,aAGrB,OAAO;QACP,oBAAoB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-shared",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.17.0",
|
|
4
4
|
"description": "MemberJunction: Angular Shared Package - utility functions and other reusable elements used across other MJ Angular packages",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -23,12 +23,14 @@
|
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@angular/common": "18.0.2",
|
|
26
|
-
"@angular/core": "18.0.2"
|
|
26
|
+
"@angular/core": "18.0.2",
|
|
27
|
+
"rxjs": "^7.8.1"
|
|
27
28
|
},
|
|
28
29
|
"dependencies": {
|
|
29
|
-
"@memberjunction/core": "2.
|
|
30
|
-
"@memberjunction/core-entities": "2.
|
|
31
|
-
"@memberjunction/
|
|
30
|
+
"@memberjunction/core": "2.17.0",
|
|
31
|
+
"@memberjunction/core-entities": "2.17.0",
|
|
32
|
+
"@memberjunction/ng-notifications": "2.17.0",
|
|
33
|
+
"@memberjunction/graphql-dataprovider": "2.17.0",
|
|
32
34
|
"@progress/kendo-angular-notification": "16.2.0",
|
|
33
35
|
"tslib": "^2.3.0"
|
|
34
36
|
},
|