@sumaris-net/ngx-components 1.21.0-beta18 → 1.21.0-beta19
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/sumaris-net.ngx-components.umd.js +20 -22
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/social/user-event/notification/user-event-notification.component.js +3 -1
- package/esm2015/src/app/social/user-event/testing/user-event.testing.service.js +3 -7
- package/esm2015/src/app/social/user-event/user-event.service.js +4 -1
- package/fesm2015/sumaris-net.ngx-components.js +6 -5
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/social/user-event/testing/user-event.testing.service.d.ts +0 -2
- package/src/app/social/user-event/user-event.service.d.ts +5 -3
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -30547,6 +30547,9 @@
|
|
|
30547
30547
|
this.listeners = [];
|
|
30548
30548
|
this.listeners.push(listener);
|
|
30549
30549
|
};
|
|
30550
|
+
AbstractUserEventService.prototype.resetCount = function () {
|
|
30551
|
+
this._count$.next(undefined);
|
|
30552
|
+
};
|
|
30550
30553
|
/* -- protected methods -- */
|
|
30551
30554
|
AbstractUserEventService.prototype.onLogin = function () {
|
|
30552
30555
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -31108,19 +31111,22 @@
|
|
|
31108
31111
|
var popover;
|
|
31109
31112
|
return __generator(this, function (_b) {
|
|
31110
31113
|
switch (_b.label) {
|
|
31111
|
-
case 0:
|
|
31112
|
-
|
|
31113
|
-
|
|
31114
|
-
|
|
31115
|
-
|
|
31116
|
-
|
|
31117
|
-
|
|
31118
|
-
|
|
31119
|
-
|
|
31120
|
-
|
|
31121
|
-
|
|
31122
|
-
|
|
31123
|
-
|
|
31114
|
+
case 0:
|
|
31115
|
+
// Reset count
|
|
31116
|
+
this.userEventService.resetCount();
|
|
31117
|
+
return [4 /*yield*/, this.popoverController.create({
|
|
31118
|
+
component: UserEventNotificationList,
|
|
31119
|
+
componentProps: {
|
|
31120
|
+
debug: this.debug,
|
|
31121
|
+
titleI18n: this.titleI18n,
|
|
31122
|
+
readEvent: this._readEvent
|
|
31123
|
+
},
|
|
31124
|
+
backdropDismiss: true,
|
|
31125
|
+
keyboardClose: true,
|
|
31126
|
+
event: event,
|
|
31127
|
+
translucent: true,
|
|
31128
|
+
cssClass: 'popover-large'
|
|
31129
|
+
})];
|
|
31124
31130
|
case 1:
|
|
31125
31131
|
popover = _b.sent();
|
|
31126
31132
|
return [4 /*yield*/, popover.present()];
|
|
@@ -31167,7 +31173,6 @@
|
|
|
31167
31173
|
_this.translate = translate;
|
|
31168
31174
|
_this.environment = environment;
|
|
31169
31175
|
_this.userEvents = [];
|
|
31170
|
-
_this.count$ = new rxjs.BehaviorSubject(0);
|
|
31171
31176
|
return _this;
|
|
31172
31177
|
}
|
|
31173
31178
|
UserEventTestService.prototype.fromObject = function (source) {
|
|
@@ -31177,15 +31182,8 @@
|
|
|
31177
31182
|
entity = this.processUserEvent(entity);
|
|
31178
31183
|
entity.id = this.userEvents.length + 1;
|
|
31179
31184
|
this.userEvents.push(entity);
|
|
31180
|
-
this.
|
|
31185
|
+
this._count$.next(this.userEvents.length);
|
|
31181
31186
|
};
|
|
31182
|
-
Object.defineProperty(UserEventTestService.prototype, "userEventCount", {
|
|
31183
|
-
get: function () {
|
|
31184
|
-
return this.count$.asObservable();
|
|
31185
|
-
},
|
|
31186
|
-
enumerable: false,
|
|
31187
|
-
configurable: true
|
|
31188
|
-
});
|
|
31189
31187
|
UserEventTestService.prototype.asFilter = function (filter) {
|
|
31190
31188
|
return filter;
|
|
31191
31189
|
};
|