nuxeo-development-framework 0.1.9 → 0.2.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/bundles/nuxeo-development-framework.umd.js +18 -13
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/latest-activity/latest-activity.module.js +3 -7
- package/esm2015/lib/components/notifications/components/notification-item/notification-item.component.js +11 -3
- package/esm2015/lib/components/notifications/components/notifications-button/notifications-button.component.js +6 -3
- package/esm2015/lib/directive/app-has-role/app-has-role.directive.js +1 -1
- package/esm2015/public-api.js +1 -3
- package/fesm2015/nuxeo-development-framework.js +18 -11
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/latest-activity/latest-activity.module.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +0 -2
|
@@ -15333,13 +15333,21 @@
|
|
|
15333
15333
|
var approval = sourceType === "approval";
|
|
15334
15334
|
var memo = sourceType === "memo";
|
|
15335
15335
|
var general = sourceType === "general";
|
|
15336
|
+
var id = memo ? this.notification.sourceId : corrId;
|
|
15336
15337
|
if (corrId) {
|
|
15337
15338
|
this.router.navigate([
|
|
15338
15339
|
{
|
|
15339
|
-
outlets: { viewer: ["view",
|
|
15340
|
+
outlets: { viewer: ["view", id] },
|
|
15340
15341
|
},
|
|
15341
15342
|
], {
|
|
15342
|
-
queryParams: Object.assign(Object.assign({ location: this.router.url }, (isAssignmentOrApproval && { approvalMode: true })), (assignment && {
|
|
15343
|
+
queryParams: Object.assign(Object.assign({ location: this.router.url }, (isAssignmentOrApproval && { approvalMode: true })), (assignment && {
|
|
15344
|
+
assignmentId: this.notification.data.assignmentId,
|
|
15345
|
+
})),
|
|
15346
|
+
});
|
|
15347
|
+
}
|
|
15348
|
+
if (memo) {
|
|
15349
|
+
this.router.navigate([{ outlets: { viewer: ["memo", id] } }], {
|
|
15350
|
+
queryParams: { location: this.router.url },
|
|
15343
15351
|
});
|
|
15344
15352
|
}
|
|
15345
15353
|
};
|
|
@@ -15955,7 +15963,7 @@
|
|
|
15955
15963
|
NotificationsButtonComponent.prototype.ngOnInit = function () {
|
|
15956
15964
|
var _this = this;
|
|
15957
15965
|
this.subscription = this.notificationsService.listenerObserver.subscribe(function (activity) { return __awaiter(_this, void 0, void 0, function () {
|
|
15958
|
-
var ar, sourceType, isAssignmentOrApproval, correspondence, assignment, approval, memo, general;
|
|
15966
|
+
var ar, sourceType, isAssignmentOrApproval, correspondence, assignment, approval, memo, general, id;
|
|
15959
15967
|
var _this = this;
|
|
15960
15968
|
return __generator(this, function (_b) {
|
|
15961
15969
|
switch (_b.label) {
|
|
@@ -15971,6 +15979,7 @@
|
|
|
15971
15979
|
approval = sourceType === "approval";
|
|
15972
15980
|
memo = sourceType === "memo";
|
|
15973
15981
|
general = sourceType === "general";
|
|
15982
|
+
id = memo ? activity.sourceId : activity.data.correspondenceId;
|
|
15974
15983
|
this.showToastr(activity, ar)
|
|
15975
15984
|
.onTap.pipe(take.take(1))
|
|
15976
15985
|
.subscribe(function () {
|
|
@@ -15980,11 +15989,13 @@
|
|
|
15980
15989
|
_this.router.navigate([
|
|
15981
15990
|
{
|
|
15982
15991
|
outlets: {
|
|
15983
|
-
viewer: ["view",
|
|
15992
|
+
viewer: ["view", id],
|
|
15984
15993
|
},
|
|
15985
15994
|
},
|
|
15986
15995
|
], {
|
|
15987
|
-
queryParams: Object.assign(Object.assign({ location: _this.router.url }, (isAssignmentOrApproval && { approvalMode: true })), (assignment && {
|
|
15996
|
+
queryParams: Object.assign(Object.assign({ location: _this.router.url }, (isAssignmentOrApproval && { approvalMode: true })), (assignment && {
|
|
15997
|
+
assignmentId: activity.data.assignmentId,
|
|
15998
|
+
})),
|
|
15988
15999
|
});
|
|
15989
16000
|
}
|
|
15990
16001
|
});
|
|
@@ -17134,9 +17145,7 @@
|
|
|
17134
17145
|
ActivityModule,
|
|
17135
17146
|
CardModule,
|
|
17136
17147
|
PipesModule,
|
|
17137
|
-
i7$1.InfiniteScrollModule], exports: [LatestActivityComponent
|
|
17138
|
-
SingleActivityComponent,
|
|
17139
|
-
ActivityLineComponent] });
|
|
17148
|
+
i7$1.InfiniteScrollModule], exports: [LatestActivityComponent] });
|
|
17140
17149
|
LatestActivityModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: LatestActivityModule, imports: [[
|
|
17141
17150
|
i3.CommonModule,
|
|
17142
17151
|
PaginationModule,
|
|
@@ -17160,9 +17169,7 @@
|
|
|
17160
17169
|
i7$1.InfiniteScrollModule
|
|
17161
17170
|
],
|
|
17162
17171
|
exports: [
|
|
17163
|
-
LatestActivityComponent
|
|
17164
|
-
SingleActivityComponent,
|
|
17165
|
-
ActivityLineComponent
|
|
17172
|
+
LatestActivityComponent
|
|
17166
17173
|
]
|
|
17167
17174
|
}]
|
|
17168
17175
|
}] });
|
|
@@ -18472,7 +18479,6 @@
|
|
|
18472
18479
|
* Generated bundle index. Do not edit.
|
|
18473
18480
|
*/
|
|
18474
18481
|
|
|
18475
|
-
exports.ActivityLineComponent = ActivityLineComponent;
|
|
18476
18482
|
exports.AdapterService = AdapterService;
|
|
18477
18483
|
exports.AppConfigService = AppConfigService;
|
|
18478
18484
|
exports.AppHasRoleDirective = AppHasRoleDirective;
|
|
@@ -18597,7 +18603,6 @@
|
|
|
18597
18603
|
exports.SelectModule = SelectModule;
|
|
18598
18604
|
exports.SetDirRtlDirective = SetDirRtlDirective;
|
|
18599
18605
|
exports.SetRtlDirective = SetRtlDirective;
|
|
18600
|
-
exports.SingleActivityComponent = SingleActivityComponent;
|
|
18601
18606
|
exports.SpinnerComponent = SpinnerComponent;
|
|
18602
18607
|
exports.TRANSLATION_PROVIDER = TRANSLATION_PROVIDER$1;
|
|
18603
18608
|
exports.TableComponent = TableComponent;
|