@sumaris-net/ngx-components 1.22.10 → 1.22.11-rc1

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.
@@ -24829,7 +24829,7 @@
24829
24829
  MenuComponent.decorators = [
24830
24830
  { type: i0.Component, args: [{
24831
24831
  selector: 'app-menu',
24832
- template: "<ion-split-pane #splitPane [contentId]=\"contentId\" (swiperight)=\"onSwipeRight($event)\">\n\n <ion-menu [id]=\"id\" [menuId]=\"menuId\" [contentId]=\"contentId\">\n <ion-header>\n\n <ion-toolbar @fadeInAnimation *ngIf=\"isLogin; else notLogin\" class=\"ion-toolbar-top\">\n <ion-grid>\n <ion-row>\n <ion-col size=\"4\">\n <button type=\"button\" mat-flat-button\n class=\"user-avatar\" [class.primary]=\"!accountAvatar\"\n [style.background-image]=\"'url('+(accountAvatar||'./assets/img/person.png')+')'\"\n [routerLink]=\"['/account']\"\n routerDirection=\"root\"\n routerLinkActive=\"ion-color-primary\"\n (click)=\"close()\"\n [title]=\"'MENU.BTN_MY_ACCOUNT'|translate\">\n </button>\n </ion-col>\n <ion-col size=\"8\" class=\"user-logo\">\n <img *ngIf=\"logo\" src=\"{{logo}}\" [title]=\"'APP_NAME'|translate: {appName: appName}\" width=\"108px\"/>\n <span *ngIf=\"!logo\" style=\"width: 108px;\">{{appName}}</span>\n </ion-col>\n </ion-row>\n <ion-row class=\"ion-no-padding\">\n <ion-col>\n <button mat-button type=\"button\"\n [routerLink]=\"['/account']\"\n routerDirection=\"root\"\n routerLinkActive=\"ion-color-primary\"\n (click)=\"close()\"\n [title]=\"'MENU.BTN_MY_ACCOUNT'|translate\">\n <ion-label color=\"primary\" class=\"ion-text-wrap ion-text-start\">\n <h3 class=\"no-margin username\">\n <b>{{accountName}}</b>\n </h3>\n <h4>{{accountEmail}}</h4>\n </ion-label>\n </button>\n </ion-col>\n\n <!-- Insertion headerBottomRight -->\n <ion-col size=\"auto\">\n <ng-container *ngTemplateOutlet=\"headerBottomRight\"></ng-container>\n </ion-col>\n </ion-row>\n </ion-grid>\n\n </ion-toolbar>\n\n <!-- User not logged -->\n <ng-template #notLogin>\n <mat-toolbar class=\"ion-padding\" @fadeInAnimation\n style=\"height: unset; display: block; margin: auto; text-align: center;\">\n <img *ngIf=\"logo\" src=\"{{logo}}\" [title]=\"'APP_NAME'|translate: {appName: appName}\" width=\"150px;\">\n <span *ngIf=\"!logo\" style=\"width: 150px\">{{appName}}</span>\n </mat-toolbar>\n </ng-template>\n </ion-header>\n\n <ion-content [class.has-user-header]=\"isLogin\">\n\n <ion-list lines=\"none\">\n <ion-menu-toggle auto-hide=\"false\"\n [class.flex-spacer]=\"item.cssClass == 'flex-spacer'\"\n *ngFor=\"let item of $items | async\">\n\n <!-- link -->\n <ion-item *ngIf=\"!loading && item.path\"\n @fadeInAnimation\n class=\"{{item.cssClass}} {{item.color}} text-1x\"\n tappable\n [routerLink]=\"item.path\"\n routerDirection=\"root\"\n routerLinkActive=\"selected\"\n [routerLinkActiveOptions]=\"{exact: (item.path === '/')}\">\n <ion-icon slot=\"start\" *ngIf=\"item.icon\" [name]=\"item.icon\"></ion-icon>\n <mat-icon slot=\"start\" *ngIf=\"item.matIcon\">{{item.matIcon}}</mat-icon>\n <ion-label translate>{{item.title}}</ion-label>\n </ion-item>\n\n <!-- action -->\n <ion-item *ngIf=\"!loading && item.action\"\n @fadeInAnimation\n class=\"{{item.cssClass}} {{item.color}} text-1x\"\n tappable\n (click)=\"doAction(item.action, $event)\">\n <ion-icon slot=\"start\" *ngIf=\"item.icon\" [name]=\"item.icon\"></ion-icon>\n <mat-icon slot=\"start\" *ngIf=\"item.matIcon\">{{item.matIcon}}</mat-icon>\n <ion-label translate>{{item.title}}</ion-label>\n </ion-item>\n\n <!-- divider -->\n <ion-item-divider @fadeInAnimation\n class=\"{{item.cssClass}} {{item.color}}\"\n *ngIf=\"!loading && !item.path && !item.action\">\n <ion-label translate>{{item.title}}</ion-label>\n </ion-item-divider>\n\n </ion-menu-toggle>\n </ion-list>\n </ion-content>\n\n <ion-footer class=\"hidden-xs hidden-sm\">\n <ion-toolbar>\n\n <ion-buttons slot=\"start\">\n <ion-button mat-icon-button color=\"accent\" (click)=\"openAboutModal($event)\">\n <mat-icon slot=\"icon-only\">help_outline</mat-icon>\n </ion-button>\n </ion-buttons>\n\n <ion-title (click)=\"openAboutModal($event)\" color=\"medium\">\n {{'MENU.FOOTER_VERSION_ABOUT'| translate: {version: appVersion} }}\n </ion-title>\n\n <ion-buttons slot=\"end\">\n <button mat-icon-button color=\"accent\" (click)=\"toggleSplitPaneShow($event)\"\n class=\"hidden-xs hidden-sm hidden-md\"\n [title]=\"(splitPane.when ? 'COMMON.BTN_HIDE_MENU' : 'COMMON.BTN_SHOW_MENU') |translate\">\n <mat-icon><span>{{splitPane.when ? '&#xab;' : '&#xbb;'}}</span></mat-icon>\n </button>\n </ion-buttons>\n </ion-toolbar>\n </ion-footer>\n\n </ion-menu>\n\n <ng-content select=\"ion-router-outlet\"></ng-content>\n\n</ion-split-pane>\n\n<ng-template #headerBottomRight>\n <ng-content select=\"[headerBottomRight]\"></ng-content>\n</ng-template>\n",
24832
+ template: "<ion-split-pane #splitPane [contentId]=\"contentId\" (swiperight)=\"onSwipeRight($event)\">\n\n <ion-menu [id]=\"id\" [menuId]=\"menuId\" [contentId]=\"contentId\">\n <ion-header>\n\n <ion-toolbar @fadeInAnimation *ngIf=\"isLogin; else notLogin\" class=\"ion-toolbar-top\">\n <ion-grid>\n <ion-row>\n <ion-col size=\"4\">\n <button type=\"button\" mat-flat-button\n class=\"user-avatar\" [class.primary]=\"!accountAvatar\"\n [style.background-image]=\"'url('+(accountAvatar||'./assets/img/person.png')+')'\"\n [routerLink]=\"['/account']\"\n routerDirection=\"root\"\n routerLinkActive=\"ion-color-primary\"\n (click)=\"close()\"\n [title]=\"'MENU.BTN_MY_ACCOUNT'|translate\">\n </button>\n </ion-col>\n <ion-col size=\"8\" class=\"user-logo\">\n <img *ngIf=\"logo\" src=\"{{logo}}\" [title]=\"'APP_NAME'|translate: {appName: appName}\" width=\"108px\"/>\n <span *ngIf=\"!logo\" style=\"width: 108px;\">{{appName}}</span>\n </ion-col>\n </ion-row>\n <ion-row class=\"ion-no-padding\">\n <ion-col>\n <button mat-button type=\"button\"\n [routerLink]=\"['/account']\"\n routerDirection=\"root\"\n routerLinkActive=\"ion-color-primary\"\n (click)=\"close()\"\n [title]=\"'MENU.BTN_MY_ACCOUNT'|translate\">\n <ion-label color=\"primary\" class=\"ion-text-wrap ion-text-start\">\n <h3 class=\"no-margin username\">\n <b>{{accountName}}</b>\n </h3>\n <h4>{{accountEmail}}</h4>\n </ion-label>\n </button>\n </ion-col>\n\n <!-- Insertion headerBottomRight -->\n <ion-col size=\"auto\">\n <ng-container *ngTemplateOutlet=\"headerBottomRight\"></ng-container>\n </ion-col>\n </ion-row>\n </ion-grid>\n\n </ion-toolbar>\n\n <!-- User not logged -->\n <ng-template #notLogin>\n <mat-toolbar class=\"ion-padding\" @fadeInAnimation\n style=\"height: unset; display: block; margin: auto; text-align: center;\">\n <img *ngIf=\"logo\" src=\"{{logo}}\" [title]=\"'APP_NAME'|translate: {appName: appName}\" width=\"150px;\">\n <span *ngIf=\"!logo\" style=\"width: 150px\">{{appName}}</span>\n </mat-toolbar>\n </ng-template>\n </ion-header>\n\n <ion-content [class.has-user-header]=\"isLogin\">\n\n <ion-list lines=\"none\">\n <ion-menu-toggle auto-hide=\"false\"\n [class.flex-spacer]=\"item.cssClass == 'flex-spacer'\"\n *ngFor=\"let item of $items | async\">\n\n <!-- link -->\n <ion-item *ngIf=\"!loading && item.path\"\n @fadeInAnimation\n class=\"{{item.cssClass}} {{item.color}} text-1x\"\n tappable\n [routerLink]=\"item.path\"\n routerDirection=\"root\"\n routerLinkActive=\"selected\"\n [routerLinkActiveOptions]=\"{exact: (item.path === '/')}\">\n <ion-icon slot=\"start\" *ngIf=\"item.icon\" [name]=\"item.icon\"></ion-icon>\n <mat-icon slot=\"start\" *ngIf=\"item.matIcon\">{{item.matIcon}}</mat-icon>\n <ion-label translate>{{item.title}}</ion-label>\n </ion-item>\n\n <!-- action -->\n <ion-item *ngIf=\"!loading && item.action\"\n @fadeInAnimation\n class=\"{{item.cssClass}} {{item.color}} text-1x\"\n tappable\n (click)=\"doAction(item.action, $event)\">\n <ion-icon slot=\"start\" *ngIf=\"item.icon\" [name]=\"item.icon\"></ion-icon>\n <mat-icon slot=\"start\" *ngIf=\"item.matIcon\">{{item.matIcon}}</mat-icon>\n <ion-label translate>{{item.title}}</ion-label>\n </ion-item>\n\n <!-- divider -->\n <ion-item-divider @fadeInAnimation\n class=\"{{item.cssClass}} {{item.color}}\"\n *ngIf=\"!loading && !item.path && !item.action\">\n <ion-label translate>{{item.title}}</ion-label>\n </ion-item-divider>\n\n </ion-menu-toggle>\n </ion-list>\n </ion-content>\n\n <ion-footer class=\"hidden-xs hidden-sm\">\n <ion-toolbar>\n\n <ion-buttons slot=\"start\">\n <ion-button mat-icon-button color=\"accent\" (click)=\"openAboutModal($event)\">\n <mat-icon slot=\"icon-only\">help_outline</mat-icon>\n </ion-button>\n </ion-buttons>\n\n <ion-title (click)=\"openAboutModal($event)\" color=\"medium\">\n {{'MENU.FOOTER_VERSION_ABOUT'| translate: {version: appVersion} }}\n </ion-title>\n\n <ion-buttons slot=\"end\">\n <button mat-icon-button color=\"accent\" (click)=\"toggleSplitPaneShow($event)\"\n class=\"hidden-xs hidden-sm hidden-md\"\n [title]=\"(splitPane.when ? 'COMMON.BTN_HIDE_MENU' : 'COMMON.BTN_SHOW_MENU') |translate\">\n <mat-icon><span>{{splitPane.when ? '&#xab;' : '&#xbb;'}}</span></mat-icon>\n </button>\n </ion-buttons>\n </ion-toolbar>\n </ion-footer>\n\n </ion-menu>\n\n <ng-content></ng-content>\n\n</ion-split-pane>\n\n<ng-template #headerBottomRight>\n <ng-content select=\"[headerBottomRight]\"></ng-content>\n</ng-template>\n",
24833
24833
  animations: [fadeInAnimation],
24834
24834
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
24835
24835
  styles: ["ion-menu{--ion-item-background:transparent;--ion-item-divider-background:transparent;--ion-item-icon-color:var(--ion-color-primary-tint);--ion-item-text-color:var(--ion-color-primary-tint);--ion-item-background-selected:var(--ion-color-secondary100);--ion-item-text-color-selected:var(--ion-color-primary);--ion-item-icon-color-selected:var(--ion-color-primary);--ion-item-text-color-disable:var(--ion-color-medium);--ion-item-icon-color-disable:var(--ion-color-medium)}ion-menu ion-header ion-text{color:var(--ion-color-primary)}ion-menu ion-header .user-avatar{background-size:cover;background-repeat:no-repeat;background-position:50%;background-color:var(--ion-color-secondary);border:1px solid var(--ion-color-primary);overflow:hidden!important;font-size:var(--avatar-size,60px)!important;line-height:var(--avatar-size,60px);height:var(--avatar-size,60px)!important;width:var(--avatar-size,60px)!important;border-radius:50%;display:inline-block}ion-menu ion-header .user-avatar:hover{background-color:var(--ion-color-secondary-shade);border:2px solid var(--ion-color-primary-shade)}ion-menu ion-header .user-logo{text-align:right}ion-menu ion-header .user-logo img{max-width:120px;max-height:var(--avatar-size,60px);width:auto}ion-menu ion-header .username{padding-top:0;margin-top:0;margin-bottom:0;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}ion-menu ion-header button[mat-button]{padding:0;text-align:start!important;width:100%}ion-menu .scroll-content{margin-top:79px!important}ion-menu .has-user-header .scroll-content{margin-top:188px!important}ion-menu ion-content.has-profile-header{--offset-top:188px}ion-menu ion-content.no-profile-header{--offset-top:79px}ion-menu ion-content ion-list{min-height:100%;display:flex;flex-direction:column;justify-content:flex-start}ion-menu ion-content ion-list ion-menu-toggle.flex-spacer{flex:1 1 auto;display:flex;flex-direction:column;justify-content:flex-end}ion-menu ion-content ion-list ion-item.primary{--ion-item-icon-color:var(--ion-color-primary-tint);--ion-item-text-color:var(--ion-color-primary-tint)}ion-menu ion-content ion-list ion-item.secondary{--ion-item-icon-color:var(--ion-color-secondary-tint);--ion-item-text-color:var(--ion-color-secondary-tint)}ion-menu ion-content ion-list ion-item.tertiary{--ion-item-icon-color:var(--ion-color-tertiary-tint);--ion-item-text-color:var(--ion-color-tertiary-tint)}ion-menu ion-content ion-list ion-item.danger{--ion-item-icon-color:var(--ion-color-danger-tint);--ion-item-text-color:var(--ion-color-danger-tint)}ion-menu ion-content ion-list ion-item.medium{--ion-item-icon-color:var(--ion-color-medium-shade);--ion-item-text-color:var(--ion-color-medium-shade)}ion-menu ion-content ion-list ion-item.dark{--ion-item-icon-color:var(--ion-color-dark-tint);--ion-item-text-color:var(--ion-color-dark-tint)}ion-menu ion-content ion-list ion-item ion-icon,ion-menu ion-content ion-list ion-item mat-icon{color:var(--ion-item-icon-color)!important;fill:currentColor;stroke:currentColor}ion-menu ion-content ion-list ion-item ion-label,ion-menu ion-content ion-list ion-item ion-text{color:var(--ion-item-text-color)!important}ion-menu ion-content ion-list ion-item.selected{background-color:var(--ion-item-background-selected)!important;--color-hover:var(--ion-item-background-selected)!important}ion-menu ion-content ion-list ion-item.selected ion-icon,ion-menu ion-content ion-list ion-item.selected mat-icon{color:var(--ion-item-icon-color-selected)!important;fill:currentColor;stroke:currentColor}ion-menu ion-content ion-list ion-item.selected ion-label,ion-menu ion-content ion-list ion-item.selected ion-text{color:var(--ion-item-text-color-selected)!important}ion-menu ion-content ion-list ion-item.selected:hover{--color-hover:var(--ion-item-background-selected)!important;--ion-item-icon-color-selected:var(--ion-item-icon-color)!important;--ion-item-text-color-selected:var(--ion-item-text-color)!important}ion-menu ion-footer{display:block!important}ion-menu ion-footer ion-toolbar ion-title{cursor:pointer;font-size:12pt;font-weight:400;text-align:center;padding:0 8px}ion-menu ion-footer ion-toolbar ion-button{--width:40px}@media screen and (max-width:767px){ion-menu ion-footer{display:none!important;visibility:hidden!important}}@media screen and (min-width:768px){ion-menu ion-scroll{overflow-y:auto!important}ion-menu .user-avatar{font-size:var(--avatar-size,80px)!important;line-height:var(--avatar-size,80px);height:var(--avatar-size,80px)!important;width:var(--avatar-size,80px)!important}ion-menu .user-logo img{max-height:var(--avatar-size,80px)}}"]
@@ -30245,7 +30245,7 @@
30245
30245
  _this.network = network;
30246
30246
  _this.translate = translate;
30247
30247
  _this.options = options;
30248
- _this.count$ = new rxjs.BehaviorSubject(0);
30248
+ _this._countSubject = new rxjs.BehaviorSubject(0);
30249
30249
  _this.listeners = [];
30250
30250
  _this._subscriptions = new rxjs.Subscription();
30251
30251
  _this.queries = options.queries;
@@ -30254,9 +30254,9 @@
30254
30254
  _this._logPrefix = '[user-event-service] ';
30255
30255
  return _this;
30256
30256
  }
30257
- Object.defineProperty(AbstractUserEventService.prototype, "userEventCount", {
30257
+ Object.defineProperty(AbstractUserEventService.prototype, "countSubject", {
30258
30258
  get: function () {
30259
- return this.count$.asObservable();
30259
+ return this._countSubject;
30260
30260
  },
30261
30261
  enumerable: false,
30262
30262
  configurable: true
@@ -30345,7 +30345,7 @@
30345
30345
  data: entity
30346
30346
  });
30347
30347
  // Update count
30348
- this.count$.next(this.count$.value + 1);
30348
+ this._countSubject.next(this._countSubject.value + 1);
30349
30349
  };
30350
30350
  AbstractUserEventService.prototype.count = function (filter, options) {
30351
30351
  var _a;
@@ -30407,7 +30407,7 @@
30407
30407
  if (total && _this._debug)
30408
30408
  console.debug(_this._logPrefix + "Received new user events count:", total);
30409
30409
  // update count
30410
- _this.count$.next(total);
30410
+ _this._countSubject.next(total);
30411
30411
  return total;
30412
30412
  }));
30413
30413
  };
@@ -30654,7 +30654,7 @@
30654
30654
  this.listeners.push(listener);
30655
30655
  };
30656
30656
  AbstractUserEventService.prototype.resetCount = function () {
30657
- this.count$.next(undefined);
30657
+ this._countSubject.next(undefined);
30658
30658
  this.resetCountDate = moment$6();
30659
30659
  // restart listening count changes
30660
30660
  this.startListenCountChanges();
@@ -30671,7 +30671,7 @@
30671
30671
  if (this._debug)
30672
30672
  console.debug(this._logPrefix + "Receiving user events count", count);
30673
30673
  // Update count
30674
- this.count$.next(count);
30674
+ this._countSubject.next(count);
30675
30675
  // Then listen changes
30676
30676
  this.startListenCountChanges();
30677
30677
  return [2 /*return*/];
@@ -30816,20 +30816,22 @@
30816
30816
  UserEventNotificationList.prototype.ngOnInit = function () {
30817
30817
  var _this = this;
30818
30818
  // Watch all user events
30819
- this.subscriptions.add(this.userEventService
30820
- .watchAll(0, 10, 'creationDate', "desc", undefined)
30821
- .subscribe(function (result) {
30822
- if (_this.debug)
30823
- console.debug("[user-event-notification-list] receiving " + result.total + " user events", result.data);
30824
- _this.userEvents.next(result.data);
30825
- _this.markForCheck();
30826
- }));
30827
- // Listen changes
30828
- this.subscriptions.add(this.userEventService.listenChanges(undefined)
30829
- .subscribe(function (data) {
30830
- if (_this.debug)
30831
- console.debug("[user-event-notification-list] receiving " + data.length + " new user events", data);
30832
- }));
30819
+ if (this.userEventService) {
30820
+ this.subscriptions.add(this.userEventService
30821
+ .watchAll(0, 10, 'creationDate', 'desc', undefined)
30822
+ .subscribe(function (result) {
30823
+ if (_this.debug)
30824
+ console.debug("[user-event-notification-list] receiving " + result.total + " user events", result.data);
30825
+ _this.userEvents.next(result.data);
30826
+ _this.markForCheck();
30827
+ }));
30828
+ // Listen changes
30829
+ this.subscriptions.add(this.userEventService.listenChanges(undefined)
30830
+ .subscribe(function (data) {
30831
+ if (_this.debug)
30832
+ console.debug("[user-event-notification-list] receiving " + data.length + " new user events", data);
30833
+ }));
30834
+ }
30833
30835
  };
30834
30836
  UserEventNotificationList.prototype.ngOnDestroy = function () {
30835
30837
  this.subscriptions.unsubscribe();
@@ -30880,31 +30882,35 @@
30880
30882
  readEvents: [{ type: i0.Output }]
30881
30883
  };
30882
30884
 
30883
- var UserEventNotificationComponent = /** @class */ (function () {
30884
- function UserEventNotificationComponent(userEventService, accountService, popoverController) {
30885
+ var AppUserEventNotificationIcon = /** @class */ (function () {
30886
+ function AppUserEventNotificationIcon(userEventService, accountService, popoverController) {
30885
30887
  this.userEventService = userEventService;
30886
30888
  this.accountService = accountService;
30887
30889
  this.popoverController = popoverController;
30888
30890
  this.debug = false;
30889
30891
  this.titleI18n = 'SOCIAL.USER_EVENT.NOTIFICATION.TITLE';
30890
30892
  this.disabled = false;
30893
+ this.filter = null;
30891
30894
  this._logPrefix = '[user-event-notification] ';
30892
30895
  this._readEvent = new i0.EventEmitter();
30893
30896
  this._readEvents = new i0.EventEmitter();
30894
30897
  }
30895
- Object.defineProperty(UserEventNotificationComponent.prototype, "count", {
30898
+ Object.defineProperty(AppUserEventNotificationIcon.prototype, "countChanges", {
30896
30899
  get: function () {
30897
- var _a;
30898
- return (_a = this.userEventService) === null || _a === void 0 ? void 0 : _a.userEventCount.pipe(operators.map(function (value) { return value === 0 ? undefined : value; }));
30900
+ if (!this.userEventService)
30901
+ return rxjs.of();
30902
+ return this.userEventService
30903
+ .countSubject
30904
+ .pipe(operators.map(function (value) { return value === 0 ? undefined : value; }));
30899
30905
  },
30900
30906
  enumerable: false,
30901
30907
  configurable: true
30902
30908
  });
30903
- UserEventNotificationComponent.prototype.ngOnInit = function () {
30909
+ AppUserEventNotificationIcon.prototype.ngOnInit = function () {
30904
30910
  return __awaiter(this, void 0, void 0, function () {
30905
30911
  var _this = this;
30906
- return __generator(this, function (_b) {
30907
- switch (_b.label) {
30912
+ return __generator(this, function (_a) {
30913
+ switch (_a.label) {
30908
30914
  case 0:
30909
30915
  if (isNil(this.userEventService)) {
30910
30916
  console.warn(this._logPrefix + "No service injected");
@@ -30915,7 +30921,7 @@
30915
30921
  return [4 /*yield*/, this.userEventService.ready()];
30916
30922
  case 1:
30917
30923
  // Wait service
30918
- _b.sent();
30924
+ _a.sent();
30919
30925
  // Subscribe to read event
30920
30926
  this._readEvent.subscribe(function (value) {
30921
30927
  // default: mark event as read
@@ -30929,11 +30935,11 @@
30929
30935
  });
30930
30936
  });
30931
30937
  };
30932
- UserEventNotificationComponent.prototype.showList = function (event) {
30938
+ AppUserEventNotificationIcon.prototype.showList = function (event) {
30933
30939
  return __awaiter(this, void 0, void 0, function () {
30934
30940
  var popover;
30935
- return __generator(this, function (_b) {
30936
- switch (_b.label) {
30941
+ return __generator(this, function (_a) {
30942
+ switch (_a.label) {
30937
30943
  case 0:
30938
30944
  // Reset count
30939
30945
  this.userEventService.resetCount();
@@ -30952,39 +30958,39 @@
30952
30958
  cssClass: 'popover-large'
30953
30959
  })];
30954
30960
  case 1:
30955
- popover = _b.sent();
30961
+ popover = _a.sent();
30956
30962
  return [4 /*yield*/, popover.present()];
30957
30963
  case 2:
30958
- _b.sent();
30964
+ _a.sent();
30959
30965
  return [2 /*return*/];
30960
30966
  }
30961
30967
  });
30962
30968
  });
30963
30969
  };
30964
- UserEventNotificationComponent.prototype.ngOnDestroy = function () {
30970
+ AppUserEventNotificationIcon.prototype.ngOnDestroy = function () {
30965
30971
  if (this.debug) {
30966
30972
  console.debug(this._logPrefix + "Destroying");
30967
30973
  }
30968
30974
  };
30969
- return UserEventNotificationComponent;
30975
+ return AppUserEventNotificationIcon;
30970
30976
  }());
30971
- UserEventNotificationComponent.decorators = [
30977
+ AppUserEventNotificationIcon.decorators = [
30972
30978
  { type: i0.Component, args: [{
30973
- selector: 'app-user-event-notification-component',
30974
- template: "<button\n #button\n mat-icon-button\n [title]=\"titleI18n | translate\"\n [disabled]=\"disabled\"\n (click)=\"showList($event)\"\n>\n <mat-icon\n [matBadge]=\"count | async\"\n matBadgeColor=\"accent\"\n matBadgeSize=\"small\"\n matBadgePosition=\"above after\"\n >notifications\n </mat-icon>\n</button>\n\n",
30975
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
30976
- styles: [""]
30979
+ selector: 'app-user-event-notification-icon',
30980
+ template: "<button\n #button\n mat-icon-button\n [title]=\"titleI18n | translate\"\n [disabled]=\"disabled\"\n (click)=\"showList($event)\"\n>\n <mat-icon\n [matBadge]=\"countChanges | async\"\n matBadgeColor=\"accent\"\n matBadgeSize=\"small\"\n matBadgePosition=\"above after\"\n >notifications\n </mat-icon>\n</button>\n\n",
30981
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
30977
30982
  },] }
30978
30983
  ];
30979
- UserEventNotificationComponent.ctorParameters = function () { return [
30984
+ AppUserEventNotificationIcon.ctorParameters = function () { return [
30980
30985
  { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [USER_EVENT_SERVICE,] }] },
30981
30986
  { type: AccountService },
30982
30987
  { type: i1$5.PopoverController }
30983
30988
  ]; };
30984
- UserEventNotificationComponent.propDecorators = {
30989
+ AppUserEventNotificationIcon.propDecorators = {
30985
30990
  debug: [{ type: i0.Input }],
30986
30991
  titleI18n: [{ type: i0.Input }],
30987
- disabled: [{ type: i0.Input }]
30992
+ disabled: [{ type: i0.Input }],
30993
+ filter: [{ type: i0.Input }]
30988
30994
  };
30989
30995
 
30990
30996
  var UserEventModule = /** @class */ (function () {
@@ -31000,11 +31006,11 @@
31000
31006
  AppIconModule
31001
31007
  ],
31002
31008
  declarations: [
31003
- UserEventNotificationComponent,
31009
+ AppUserEventNotificationIcon,
31004
31010
  UserEventNotificationList
31005
31011
  ],
31006
31012
  exports: [
31007
- UserEventNotificationComponent
31013
+ AppUserEventNotificationIcon
31008
31014
  ]
31009
31015
  },] }
31010
31016
  ];
@@ -31603,6 +31609,11 @@
31603
31609
  JobModule,
31604
31610
  MessageModule
31605
31611
  ],
31612
+ exports: [
31613
+ UserEventModule,
31614
+ JobModule,
31615
+ MessageModule
31616
+ ]
31606
31617
  },] }
31607
31618
  ];
31608
31619
 
@@ -33897,6 +33908,7 @@
33897
33908
  exports.AppTable = AppTable;
33898
33909
  exports.AppTableDataSourceOptions = AppTableDataSourceOptions;
33899
33910
  exports.AppTableUtils = AppTableUtils;
33911
+ exports.AppUserEventNotificationIcon = AppUserEventNotificationIcon;
33900
33912
  exports.AppValidatorService = AppValidatorService;
33901
33913
  exports.AppendToInputDirective = AppendToInputDirective;
33902
33914
  exports.ArrayFilterPipe = ArrayFilterPipe;
@@ -34133,7 +34145,6 @@
34133
34145
  exports.UriUtils = UriUtils;
34134
34146
  exports.UserEventFragments = UserEventFragments;
34135
34147
  exports.UserEventModule = UserEventModule;
34136
- exports.UserEventNotificationComponent = UserEventNotificationComponent;
34137
34148
  exports.UserEventTypes = UserEventTypes;
34138
34149
  exports.UsersPage = UsersPage;
34139
34150
  exports.accountToString = accountToString;