@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.
@@ -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: return [4 /*yield*/, this.popoverController.create({
31112
- component: UserEventNotificationList,
31113
- componentProps: {
31114
- debug: this.debug,
31115
- titleI18n: this.titleI18n,
31116
- readEvent: this._readEvent
31117
- },
31118
- backdropDismiss: true,
31119
- keyboardClose: true,
31120
- event: event,
31121
- translucent: true,
31122
- cssClass: 'popover-large'
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.count$.next(this.userEvents.length);
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
  };