@memberjunction/ng-explorer-core 1.8.0 → 1.8.1
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.
|
@@ -462,13 +462,13 @@ export class NavigationComponent {
|
|
|
462
462
|
const workspaceParams = {
|
|
463
463
|
EntityName: "Workspaces",
|
|
464
464
|
ExtraFilter: `UserID=${md.CurrentUser.ID}`,
|
|
465
|
-
OrderBy: "
|
|
465
|
+
OrderBy: "__mj_UpdatedAt DESC", // by default get the workspace that was most recently updated
|
|
466
466
|
ResultType: "entity_object" /*we want entity objects back so that we can modify them as needed*/
|
|
467
467
|
};
|
|
468
468
|
const workspaces = yield rv.RunView(workspaceParams);
|
|
469
469
|
if (workspaces.Success) {
|
|
470
470
|
if (workspaces.Results.length) {
|
|
471
|
-
this.workSpace = workspaces.Results[0]; // by default get the first one, and since we are sorting by
|
|
471
|
+
this.workSpace = workspaces.Results[0]; // by default get the first one, and since we are sorting by __mj_UpdatedAt DESC above, will be most recently modified one. Future feature for multi-workspace support we'll have to adjust this
|
|
472
472
|
}
|
|
473
473
|
else {
|
|
474
474
|
// no matching record found, so create a new one
|
|
@@ -119,7 +119,7 @@ function UserNotificationsComponent_ng_template_16_Template(rf, ctx) { if (rf &
|
|
|
119
119
|
i0.ɵɵadvance();
|
|
120
120
|
i0.ɵɵtextInterpolate(dataItem_r11.Title);
|
|
121
121
|
i0.ɵɵadvance(3);
|
|
122
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(6, 9, dataItem_r11.
|
|
122
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(6, 9, dataItem_r11.__mj_CreatedAt, "long"));
|
|
123
123
|
i0.ɵɵadvance(3);
|
|
124
124
|
i0.ɵɵtextInterpolate(dataItem_r11.Message);
|
|
125
125
|
i0.ɵɵadvance(2);
|
|
@@ -386,7 +386,7 @@ UserNotificationsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
386
386
|
} }, dependencies: [i3.NgIf, i4.ButtonComponent, i5.TextBoxComponent, i5.TextBoxSuffixTemplateDirective, i6.FillContainer, i7.ItemTemplateDirective, i7.ListViewComponent, i3.DatePipe], styles: [".notification-list-wrap[_ngcontent-%COMP%] {\n height: 800px;\n overflow-y: auto;\n overflow-x: hidden;\n border: solid 1px lightgray;\n}\n\n.k-listview[_ngcontent-%COMP%] {\n font-family: sans-serif;\n border: 0;\n}\n.product[_ngcontent-%COMP%] {\n width: 100%;\n}\n.header[_ngcontent-%COMP%] {\n display: flex;\n background-color: lightgray;\n padding: 12px;\n height: 24px;\n}\n\n.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%] { \n\n margin-right: 10px; \n}\n\n.title[_ngcontent-%COMP%] {\n flex: 1;\n font-size: 22px;\n font-weight: bold;\n}\n.filter-input[_ngcontent-%COMP%] {\n width: 200px;\n}\n.radio-label[_ngcontent-%COMP%] {\n cursor: pointer;\n margin-right: 10px;\n}\n\n.notification-wrap[_ngcontent-%COMP%] {\n padding-left: 10px;\n padding-right: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border-bottom: dashed 1px lightgray;\n background-color: white;\n}\n\n.notification-wrap-unread[_ngcontent-%COMP%] {\n background-color: aliceblue;\n}\n\n.notification-wrap-clickable[_ngcontent-%COMP%] {\n cursor: pointer;\n}\n\n.notification-title[_ngcontent-%COMP%] {\n font-size: 16px;\n}\n.notification-wrap-clickable[_ngcontent-%COMP%] > .notification-title[_ngcontent-%COMP%] {\n color: blue;\n text-decoration: underline;\n}\n.notification-title-unread[_ngcontent-%COMP%] {\n font-weight: bold;\n}\n\n.notification-body[_ngcontent-%COMP%] {\n font-size: 14px;\n}\n\n.notification-date[_ngcontent-%COMP%] {\n margin-left: 1px;\n font-size: 12px;\n color: gray;\n font-style: italic;\n}"] });
|
|
387
387
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserNotificationsComponent, [{
|
|
388
388
|
type: Component,
|
|
389
|
-
args: [{ selector: 'app-user-notifications', template: "<div class=\"notification-list-wrap\" mjFillContainer [bottomMargin]=\"5\"> \n <div class=\"header\">\n <div class=\"title\">\n Notifications\n </div>\n <div>\n <button *ngIf=\"UnreadNotifications.length > 0\" kendoButton (click)=\"markAllAsRead()\">Mark All as Read</button>\n <button *ngIf=\"ReadNotifications.length > 0\" kendoButton (click)=\"markAllAsUnread()\">Mark All as Unread</button>\n <input *ngIf=\"AllNotifications.length > 0\" #allRadio checked type=\"radio\" name=\"UnreadStatus\" value=\"All\" (change)=\"onReadRadioChanged($event)\" /><span *ngIf=\"AllNotifications.length > 0\" class=\"radio-label\" \n (click)=\"selectReadOption('All')\">All</span>\n <input *ngIf=\"UnreadNotifications.length > 0 && ReadNotifications.length > 0\" #unreadRadio type=\"radio\" name=\"UnreadStatus\" value=\"Unread\" (change)=\"onReadRadioChanged($event)\" /><span *ngIf=\"UnreadNotifications.length > 0 && ReadNotifications.length > 0\" class=\"radio-label\" \n (click)=\"selectReadOption('Unread')\">Unread</span>\n <input *ngIf=\"ReadNotifications.length > 0 && UnreadNotifications.length > 0\" #readRadio type=\"radio\" name=\"UnreadStatus\" value=\"Read\" (change)=\"onReadRadioChanged($event)\" /><span *ngIf=\"ReadNotifications.length > 0 && UnreadNotifications.length > 0\" class=\"radio-label\" \n (click)=\"selectReadOption('Read')\">Read</span>\n <kendo-textbox\n class=\"filter-input\"\n placeholder=\"Filter items...\"\n (valueChange)=\"onFilterChanged($event)\"\n >\n <ng-template kendoTextBoxSuffixTemplate>\n <span class=\"fa-solid fa-magnifying-glass\"></span>\n </ng-template>\n </kendo-textbox> \n </div>\n </div> \n\n <kendo-listview [data]=\"NotificationsToShow\">\n <ng-template kendoListViewItemTemplate let-dataItem=\"dataItem\">\n <div [class]=\"getItemWrapperClass(dataItem)\">\n <div [class]=\"getItemTitleClass(dataItem)\" (click)=\"notificationClicked(dataItem)\">{{dataItem.Title}}</div>\n <div class=\"notification-body\" (click)=\"notificationClicked(dataItem)\">\n <div class=\"notification-date\">{{dataItem.
|
|
389
|
+
args: [{ selector: 'app-user-notifications', template: "<div class=\"notification-list-wrap\" mjFillContainer [bottomMargin]=\"5\"> \n <div class=\"header\">\n <div class=\"title\">\n Notifications\n </div>\n <div>\n <button *ngIf=\"UnreadNotifications.length > 0\" kendoButton (click)=\"markAllAsRead()\">Mark All as Read</button>\n <button *ngIf=\"ReadNotifications.length > 0\" kendoButton (click)=\"markAllAsUnread()\">Mark All as Unread</button>\n <input *ngIf=\"AllNotifications.length > 0\" #allRadio checked type=\"radio\" name=\"UnreadStatus\" value=\"All\" (change)=\"onReadRadioChanged($event)\" /><span *ngIf=\"AllNotifications.length > 0\" class=\"radio-label\" \n (click)=\"selectReadOption('All')\">All</span>\n <input *ngIf=\"UnreadNotifications.length > 0 && ReadNotifications.length > 0\" #unreadRadio type=\"radio\" name=\"UnreadStatus\" value=\"Unread\" (change)=\"onReadRadioChanged($event)\" /><span *ngIf=\"UnreadNotifications.length > 0 && ReadNotifications.length > 0\" class=\"radio-label\" \n (click)=\"selectReadOption('Unread')\">Unread</span>\n <input *ngIf=\"ReadNotifications.length > 0 && UnreadNotifications.length > 0\" #readRadio type=\"radio\" name=\"UnreadStatus\" value=\"Read\" (change)=\"onReadRadioChanged($event)\" /><span *ngIf=\"ReadNotifications.length > 0 && UnreadNotifications.length > 0\" class=\"radio-label\" \n (click)=\"selectReadOption('Read')\">Read</span>\n <kendo-textbox\n class=\"filter-input\"\n placeholder=\"Filter items...\"\n (valueChange)=\"onFilterChanged($event)\"\n >\n <ng-template kendoTextBoxSuffixTemplate>\n <span class=\"fa-solid fa-magnifying-glass\"></span>\n </ng-template>\n </kendo-textbox> \n </div>\n </div> \n\n <kendo-listview [data]=\"NotificationsToShow\">\n <ng-template kendoListViewItemTemplate let-dataItem=\"dataItem\">\n <div [class]=\"getItemWrapperClass(dataItem)\">\n <div [class]=\"getItemTitleClass(dataItem)\" (click)=\"notificationClicked(dataItem)\">{{dataItem.Title}}</div>\n <div class=\"notification-body\" (click)=\"notificationClicked(dataItem)\">\n <div class=\"notification-date\">{{dataItem.__mj_CreatedAt | date:'long'}}</div>\n <div class=\"notification-message\">{{dataItem.Message}}</div>\n </div>\n <div>\n <button kendoButton *ngIf=\"dataItem.Unread\" (click)=\"markAsRead(dataItem, true, null)\">Mark as Read</button>\n <button kendoButton *ngIf=\"!dataItem.Unread\" (click)=\"markAsRead(dataItem, false, null)\">Mark as Unread</button>\n </div> \n </div>\n </ng-template>\n </kendo-listview>\n</div>\n", styles: [".notification-list-wrap {\n height: 800px;\n overflow-y: auto;\n overflow-x: hidden;\n border: solid 1px lightgray;\n}\n\n.k-listview {\n font-family: sans-serif;\n border: 0;\n}\n.product {\n width: 100%;\n}\n.header {\n display: flex;\n background-color: lightgray;\n padding: 12px;\n height: 24px;\n}\n\n.header button { /*buttons within the header*/\n margin-right: 10px; \n}\n\n.title {\n flex: 1;\n font-size: 22px;\n font-weight: bold;\n}\n.filter-input {\n width: 200px;\n}\n.radio-label {\n cursor: pointer;\n margin-right: 10px;\n}\n\n.notification-wrap {\n padding-left: 10px;\n padding-right: 10px;\n padding-top: 10px;\n padding-bottom: 10px;\n border-bottom: dashed 1px lightgray;\n background-color: white;\n}\n\n.notification-wrap-unread {\n background-color: aliceblue;\n}\n\n.notification-wrap-clickable {\n cursor: pointer;\n}\n\n.notification-title {\n font-size: 16px;\n}\n.notification-wrap-clickable > .notification-title {\n color: blue;\n text-decoration: underline;\n}\n.notification-title-unread {\n font-weight: bold;\n}\n\n.notification-body {\n font-size: 14px;\n}\n\n.notification-date {\n margin-left: 1px;\n font-size: 12px;\n color: gray;\n font-style: italic;\n}"] }]
|
|
390
390
|
}], () => [{ type: i1.SharedService }, { type: i2.Router }], { allRadio: [{
|
|
391
391
|
type: ViewChild,
|
|
392
392
|
args: ['allRadio']
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-explorer-core",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"description": "MemberJunction Explorer: Core Angular Components",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -26,23 +26,23 @@
|
|
|
26
26
|
"@angular/router": "18.0.2"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@memberjunction/global": "1.8.
|
|
30
|
-
"@memberjunction/core": "1.8.
|
|
31
|
-
"@memberjunction/ng-compare-records": "1.8.
|
|
32
|
-
"@memberjunction/ng-file-storage": "1.8.
|
|
33
|
-
"@memberjunction/ng-record-changes": "1.8.
|
|
34
|
-
"@memberjunction/ng-container-directives": "1.8.
|
|
35
|
-
"@memberjunction/ng-user-view-grid": "1.8.
|
|
36
|
-
"@memberjunction/ng-query-grid": "1.8.
|
|
37
|
-
"@memberjunction/ng-user-view-properties": "1.8.
|
|
38
|
-
"@memberjunction/ng-shared": "1.8.
|
|
39
|
-
"@memberjunction/ng-tabstrip": "1.8.
|
|
40
|
-
"@memberjunction/ng-ask-skip": "1.8.
|
|
41
|
-
"@memberjunction/ng-auth-services": "1.8.
|
|
42
|
-
"@memberjunction/ng-explorer-settings": "1.8.
|
|
43
|
-
"@memberjunction/ng-base-forms": "1.8.
|
|
44
|
-
"@memberjunction/ng-entity-form-dialog": "1.8.
|
|
45
|
-
"@memberjunction/ng-record-selector": "1.8.
|
|
29
|
+
"@memberjunction/global": "1.8.1",
|
|
30
|
+
"@memberjunction/core": "1.8.1",
|
|
31
|
+
"@memberjunction/ng-compare-records": "1.8.1",
|
|
32
|
+
"@memberjunction/ng-file-storage": "1.8.1",
|
|
33
|
+
"@memberjunction/ng-record-changes": "1.8.1",
|
|
34
|
+
"@memberjunction/ng-container-directives": "1.8.1",
|
|
35
|
+
"@memberjunction/ng-user-view-grid": "1.8.1",
|
|
36
|
+
"@memberjunction/ng-query-grid": "1.8.1",
|
|
37
|
+
"@memberjunction/ng-user-view-properties": "1.8.1",
|
|
38
|
+
"@memberjunction/ng-shared": "1.8.1",
|
|
39
|
+
"@memberjunction/ng-tabstrip": "1.8.1",
|
|
40
|
+
"@memberjunction/ng-ask-skip": "1.8.1",
|
|
41
|
+
"@memberjunction/ng-auth-services": "1.8.1",
|
|
42
|
+
"@memberjunction/ng-explorer-settings": "1.8.1",
|
|
43
|
+
"@memberjunction/ng-base-forms": "1.8.1",
|
|
44
|
+
"@memberjunction/ng-entity-form-dialog": "1.8.1",
|
|
45
|
+
"@memberjunction/ng-record-selector": "1.8.1",
|
|
46
46
|
"@progress/kendo-angular-grid": "16.2.0",
|
|
47
47
|
"@progress/kendo-angular-buttons": "16.2.0",
|
|
48
48
|
"@progress/kendo-angular-listview": "16.2.0",
|