@posiwise/admin-module 0.0.188 → 0.0.190

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.
@@ -69,7 +69,7 @@ import { moveItemInArray } from '@angular/cdk/drag-drop';
69
69
  import groupBy from 'lodash/groupBy';
70
70
  import { forkJoin, map, Subject, takeUntil, of } from 'rxjs';
71
71
  import * as i3$4 from '@angular/platform-browser';
72
- import * as i5$2 from 'primeng/tabmenu';
72
+ import * as i5$2 from 'primeng/tabs';
73
73
  import uniqBy from 'lodash/uniqBy';
74
74
  import moment from 'moment';
75
75
  import { StatusCodes } from 'http-status-codes';
@@ -1417,7 +1417,6 @@ class DomainConfigCoreComponent extends AppBaseComponent {
1417
1417
  });
1418
1418
  this.subscriptionId = PermissionService.selectedSubscription?.id;
1419
1419
  this.route.params.subscribe(params => {
1420
- console.log('n', params);
1421
1420
  this.id = Number(params['id']);
1422
1421
  if (this.id) {
1423
1422
  this.getDomainConfigDetails();
@@ -1427,13 +1426,6 @@ class DomainConfigCoreComponent extends AppBaseComponent {
1427
1426
  this.getDuplicateDomainConfigDetails();
1428
1427
  }
1429
1428
  }
1430
- ngAfterViewInit() {
1431
- console.log('ACTUAL queryParams', this.route.snapshot.queryParams);
1432
- // also try:
1433
- this.route.queryParams.subscribe(params => {
1434
- console.log('Live queryParams', params);
1435
- });
1436
- }
1437
1429
  getDuplicateDomainConfigDetails() {
1438
1430
  this.isLoading = true;
1439
1431
  this.adminService
@@ -1551,7 +1543,6 @@ class BaseDomainConfigComponent extends AppBaseComponent {
1551
1543
  : this.adminService.createDomainConfig(data);
1552
1544
  sub$.subscribe({
1553
1545
  next: res => {
1554
- console.log('in this', this.getTabId());
1555
1546
  this.toast.success(this.translation.translate('Admin.DomainConfig.UpdatedMessage'));
1556
1547
  this.router.navigate([`${this.routers.domainConfigDetails}${this.id ? this.id : res.id}`], {
1557
1548
  queryParams: {
@@ -3030,9 +3021,8 @@ class AddEditIncidentComponent extends AppBaseComponent {
3030
3021
  })
3031
3022
  .add(() => (this.buttonBusy = false));
3032
3023
  }
3033
- catch (error) {
3024
+ catch {
3034
3025
  this.buttonBusy = false;
3035
- console.log(error);
3036
3026
  }
3037
3027
  }
3038
3028
  onUpdate() {
@@ -3053,9 +3043,8 @@ class AddEditIncidentComponent extends AppBaseComponent {
3053
3043
  })
3054
3044
  .add(() => (this.buttonBusy = false));
3055
3045
  }
3056
- catch (error) {
3046
+ catch {
3057
3047
  this.buttonBusy = false;
3058
- console.log(error);
3059
3048
  }
3060
3049
  }
3061
3050
  onCancel() {
@@ -3496,7 +3485,6 @@ class MailerListComponent extends AppBaseComponent {
3496
3485
  }
3497
3486
  ngOnInit() {
3498
3487
  this.authService.getToken$().subscribe(res => {
3499
- console.log(res);
3500
3488
  this.userLoggedIn = !!res;
3501
3489
  if (this.userLoggedIn) {
3502
3490
  this.subscriptionId = PermissionService.selectedSubscription?.id;
@@ -4527,8 +4515,18 @@ class RoleDetailsComponent extends AppBaseComponent {
4527
4515
  { id: 'permission', label: 'Role Permissions', icon: 'fa fa-fw fa-signature' }
4528
4516
  ];
4529
4517
  [this.activeItem] = this.items;
4518
+ this.activeTabValue = this.activeItem?.id;
4530
4519
  this.form = AppAdmin.getRolesForm();
4531
4520
  }
4521
+ onTabChange(value) {
4522
+ const item = this.items.find(i => i.id === value);
4523
+ if (item) {
4524
+ this.activeItem = item;
4525
+ if (this.activeItem.id === 'permission') {
4526
+ this.getRolePermissions();
4527
+ }
4528
+ }
4529
+ }
4532
4530
  ngOnInit() {
4533
4531
  this.subscriptionId = PermissionService.selectedSubscription?.id;
4534
4532
  this.route.params.subscribe((data) => {
@@ -4544,12 +4542,6 @@ class RoleDetailsComponent extends AppBaseComponent {
4544
4542
  this.permissions = this.permissionService.getPermissionTreeDataByRole(permissions);
4545
4543
  });
4546
4544
  }
4547
- activateMenu() {
4548
- this.activeItem = this.menu['activeItem'];
4549
- if (this.activeItem.id === 'permission') {
4550
- this.getRolePermissions();
4551
- }
4552
- }
4553
4545
  getRoleDetails() {
4554
4546
  this.adminService.getRoles({}, this.subscriptionId).subscribe(response => {
4555
4547
  if (response.roles && response.roles.length > 0) {
@@ -4621,7 +4613,7 @@ class RoleDetailsComponent extends AppBaseComponent {
4621
4613
  super.ngOnDestroy();
4622
4614
  }
4623
4615
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: RoleDetailsComponent, deps: [{ token: i1.AdminService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
4624
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: RoleDetailsComponent, isStandalone: false, selector: "pw-role-details", viewQueries: [{ propertyName: "menu", first: true, predicate: ["menuItems"], descendants: true, static: true }, { propertyName: "permissionTree", first: true, predicate: ["permissionTree"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"container-fluid pw-tab overflow-hidden\">\n <p-tabMenu #menuItems\n [model]=\"items\"\n [activeItem]=\"activeItem\"\n (keydown.enter)=\"activateMenu(); $event.preventDefault()\"\n (keydown.space)=\"activateMenu(); $event.preventDefault()\"\n (click)=\"activateMenu()\">\n </p-tabMenu>\n\n <div class=\"dashboard\">\n <div class=\"dashboard-body\">\n <ng-template [ngIf]=\"activeItem.id === 'details'\">\n <div class=\"mb-4 mt-4\">\n <div class=\"d-flex align-items-center\">\n <div class=\"me-auto col-xs-6\">\n <a aria-label=\"Navigate to Target\"\n (click)=\"previous()\"\n class=\"previous\"><i class=\"fa fa-arrow-alt-circle-left\" aria-hidden=\"true\"></i></a>\n <h3 class=\"\">Role: {{ role?.name }}</h3>\n </div>\n </div>\n </div>\n\n <div class=\"w-100 text-center mt-3\"\n *ngIf=\"isLoading\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n\n <form [formGroup]=\"form\"\n *ngIf=\"!isLoading\"\n (ngSubmit)=\"onSave()\">\n <div class=\"row\">\n <div class=\"col-12 col-md-8\">\n <div class=\"mb-3\">\n <label for=\"name\">{{ 'Admin.Roles.RoleName' | transloco }}</label>\n <input type=\"text\"\n class=\"form-control\"\n formControlName=\"name\" />\n </div>\n </div>\n <div class=\"col-12 col-md-4\">\n <div class=\"mb-3 text-center\">\n <label for=\"active\">{{ 'Admin.Roles.IsActive' | transloco }}</label>\n <br />\n <ui-switch class=\"d-block\"\n formControlName=\"active\"\n name=\"active\">\n </ui-switch>\n </div>\n </div>\n </div>\n <div class=\"row mt-5 text-end\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"onDiscard()\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\"\n *rbacAllow=\"'Pages.Admin.Roles.Create'\">\n {{ 'Button.Save' | transloco }}\n </button>\n </div>\n </div>\n </form>\n </ng-template>\n\n <ng-template [ngIf]=\"activeItem.id === 'permission'\">\n <div class=\"p-4\">\n <ng-container *ngIf=\"permissions\">\n <permission-tree [data]=\"permissions\"\n #permissionTree></permission-tree>\n\n <div class=\"row mt-5 text-end\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"onDiscard()\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\"\n (click)=\"savePermission()\">\n {{ 'Button.Save' | transloco }}\n </button>\n </div>\n </div>\n </ng-container>\n </div>\n </ng-template>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "component", type: i4.UiSwitchComponent, selector: "ui-switch", inputs: ["size", "color", "switchOffColor", "switchColor", "defaultBgColor", "defaultBoColor", "checkedLabel", "uncheckedLabel", "checkedTextColor", "uncheckedTextColor", "beforeChange", "ariaLabel", "checked", "disabled", "reverse", "loading"], outputs: ["change", "changeEvent", "valueChange"] }, { kind: "component", type: i5$2.TabMenu, selector: "p-tabMenu, p-tabmenu", inputs: ["model", "activeItem", "scrollable", "popup", "style", "styleClass", "ariaLabel", "ariaLabelledBy"], outputs: ["activeItemChange"] }, { kind: "component", type: i5.ProgressSpinner, selector: "p-progressSpinner, p-progress-spinner, p-progressspinner", inputs: ["styleClass", "style", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i1$1.PermissionTreeComponent, selector: "permission-tree", inputs: ["data"] }, { kind: "directive", type: i10.ButtonBusyDirective, selector: "[buttonBusy]", inputs: ["buttonBusy", "busyText"] }, { kind: "directive", type: i10.RbacAllowDirective, selector: "[rbacAllow]", inputs: ["rbacAllow"] }, { kind: "directive", type: i3$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "pipe", type: i12.TranslocoPipe, name: "transloco" }] }); }
4616
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.18", type: RoleDetailsComponent, isStandalone: false, selector: "pw-role-details", viewQueries: [{ propertyName: "permissionTree", first: true, predicate: ["permissionTree"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"container-fluid pw-tab overflow-hidden\">\n <p-tabs [value]=\"activeTabValue\" (valueChange)=\"onTabChange($event)\">\n <p-tablist>\n <p-tab *ngFor=\"let item of items\" [value]=\"item.id\">\n <i *ngIf=\"item.icon\" [class]=\"item.icon\" aria-hidden=\"true\"></i>\n <span>{{ item.label }}</span>\n </p-tab>\n </p-tablist>\n </p-tabs>\n\n <div class=\"dashboard\">\n <div class=\"dashboard-body\">\n <ng-template [ngIf]=\"activeItem.id === 'details'\">\n <div class=\"mb-4 mt-4\">\n <div class=\"d-flex align-items-center\">\n <div class=\"me-auto col-xs-6\">\n <a aria-label=\"Navigate to Target\"\n (click)=\"previous()\"\n class=\"previous\"><i class=\"fa fa-arrow-alt-circle-left\" aria-hidden=\"true\"></i></a>\n <h3 class=\"\">Role: {{ role?.name }}</h3>\n </div>\n </div>\n </div>\n\n <div class=\"w-100 text-center mt-3\"\n *ngIf=\"isLoading\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n\n <form [formGroup]=\"form\"\n *ngIf=\"!isLoading\"\n (ngSubmit)=\"onSave()\">\n <div class=\"row\">\n <div class=\"col-12 col-md-8\">\n <div class=\"mb-3\">\n <label for=\"name\">{{ 'Admin.Roles.RoleName' | transloco }}</label>\n <input type=\"text\"\n class=\"form-control\"\n formControlName=\"name\" />\n </div>\n </div>\n <div class=\"col-12 col-md-4\">\n <div class=\"mb-3 text-center\">\n <label for=\"active\">{{ 'Admin.Roles.IsActive' | transloco }}</label>\n <br />\n <ui-switch class=\"d-block\"\n formControlName=\"active\"\n name=\"active\">\n </ui-switch>\n </div>\n </div>\n </div>\n <div class=\"row mt-5 text-end\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"onDiscard()\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\"\n *rbacAllow=\"'Pages.Admin.Roles.Create'\">\n {{ 'Button.Save' | transloco }}\n </button>\n </div>\n </div>\n </form>\n </ng-template>\n\n <ng-template [ngIf]=\"activeItem.id === 'permission'\">\n <div class=\"p-4\">\n <ng-container *ngIf=\"permissions\">\n <permission-tree [data]=\"permissions\"\n #permissionTree></permission-tree>\n\n <div class=\"row mt-5 text-end\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"onDiscard()\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\"\n (click)=\"savePermission()\">\n {{ 'Button.Save' | transloco }}\n </button>\n </div>\n </div>\n </ng-container>\n </div>\n </ng-template>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "component", type: i4.UiSwitchComponent, selector: "ui-switch", inputs: ["size", "color", "switchOffColor", "switchColor", "defaultBgColor", "defaultBoColor", "checkedLabel", "uncheckedLabel", "checkedTextColor", "uncheckedTextColor", "beforeChange", "ariaLabel", "checked", "disabled", "reverse", "loading"], outputs: ["change", "changeEvent", "valueChange"] }, { kind: "component", type: i5$2.Tabs, selector: "p-tabs", inputs: ["value", "scrollable", "lazy", "selectOnFocus", "showNavigators", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: i5$2.TabList, selector: "p-tablist" }, { kind: "component", type: i5$2.Tab, selector: "p-tab", inputs: ["value", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: i5.ProgressSpinner, selector: "p-progressSpinner, p-progress-spinner, p-progressspinner", inputs: ["styleClass", "style", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i1$1.PermissionTreeComponent, selector: "permission-tree", inputs: ["data"] }, { kind: "directive", type: i10.ButtonBusyDirective, selector: "[buttonBusy]", inputs: ["buttonBusy", "busyText"] }, { kind: "directive", type: i10.RbacAllowDirective, selector: "[rbacAllow]", inputs: ["rbacAllow"] }, { kind: "directive", type: i3$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "pipe", type: i12.TranslocoPipe, name: "transloco" }] }); }
4625
4617
  }
4626
4618
  __decorate([
4627
4619
  ValidateForm('form'),
@@ -4631,11 +4623,8 @@ __decorate([
4631
4623
  ], RoleDetailsComponent.prototype, "onSave", null);
4632
4624
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: RoleDetailsComponent, decorators: [{
4633
4625
  type: Component,
4634
- args: [{ selector: 'pw-role-details', standalone: false, template: "<div class=\"container-fluid pw-tab overflow-hidden\">\n <p-tabMenu #menuItems\n [model]=\"items\"\n [activeItem]=\"activeItem\"\n (keydown.enter)=\"activateMenu(); $event.preventDefault()\"\n (keydown.space)=\"activateMenu(); $event.preventDefault()\"\n (click)=\"activateMenu()\">\n </p-tabMenu>\n\n <div class=\"dashboard\">\n <div class=\"dashboard-body\">\n <ng-template [ngIf]=\"activeItem.id === 'details'\">\n <div class=\"mb-4 mt-4\">\n <div class=\"d-flex align-items-center\">\n <div class=\"me-auto col-xs-6\">\n <a aria-label=\"Navigate to Target\"\n (click)=\"previous()\"\n class=\"previous\"><i class=\"fa fa-arrow-alt-circle-left\" aria-hidden=\"true\"></i></a>\n <h3 class=\"\">Role: {{ role?.name }}</h3>\n </div>\n </div>\n </div>\n\n <div class=\"w-100 text-center mt-3\"\n *ngIf=\"isLoading\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n\n <form [formGroup]=\"form\"\n *ngIf=\"!isLoading\"\n (ngSubmit)=\"onSave()\">\n <div class=\"row\">\n <div class=\"col-12 col-md-8\">\n <div class=\"mb-3\">\n <label for=\"name\">{{ 'Admin.Roles.RoleName' | transloco }}</label>\n <input type=\"text\"\n class=\"form-control\"\n formControlName=\"name\" />\n </div>\n </div>\n <div class=\"col-12 col-md-4\">\n <div class=\"mb-3 text-center\">\n <label for=\"active\">{{ 'Admin.Roles.IsActive' | transloco }}</label>\n <br />\n <ui-switch class=\"d-block\"\n formControlName=\"active\"\n name=\"active\">\n </ui-switch>\n </div>\n </div>\n </div>\n <div class=\"row mt-5 text-end\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"onDiscard()\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\"\n *rbacAllow=\"'Pages.Admin.Roles.Create'\">\n {{ 'Button.Save' | transloco }}\n </button>\n </div>\n </div>\n </form>\n </ng-template>\n\n <ng-template [ngIf]=\"activeItem.id === 'permission'\">\n <div class=\"p-4\">\n <ng-container *ngIf=\"permissions\">\n <permission-tree [data]=\"permissions\"\n #permissionTree></permission-tree>\n\n <div class=\"row mt-5 text-end\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"onDiscard()\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\"\n (click)=\"savePermission()\">\n {{ 'Button.Save' | transloco }}\n </button>\n </div>\n </div>\n </ng-container>\n </div>\n </ng-template>\n </div>\n </div>\n</div>\n" }]
4635
- }], ctorParameters: () => [{ type: i1.AdminService }, { type: i0.Injector }], propDecorators: { menu: [{
4636
- type: ViewChild,
4637
- args: ['menuItems', { static: true }]
4638
- }], permissionTree: [{
4626
+ args: [{ selector: 'pw-role-details', standalone: false, template: "<div class=\"container-fluid pw-tab overflow-hidden\">\n <p-tabs [value]=\"activeTabValue\" (valueChange)=\"onTabChange($event)\">\n <p-tablist>\n <p-tab *ngFor=\"let item of items\" [value]=\"item.id\">\n <i *ngIf=\"item.icon\" [class]=\"item.icon\" aria-hidden=\"true\"></i>\n <span>{{ item.label }}</span>\n </p-tab>\n </p-tablist>\n </p-tabs>\n\n <div class=\"dashboard\">\n <div class=\"dashboard-body\">\n <ng-template [ngIf]=\"activeItem.id === 'details'\">\n <div class=\"mb-4 mt-4\">\n <div class=\"d-flex align-items-center\">\n <div class=\"me-auto col-xs-6\">\n <a aria-label=\"Navigate to Target\"\n (click)=\"previous()\"\n class=\"previous\"><i class=\"fa fa-arrow-alt-circle-left\" aria-hidden=\"true\"></i></a>\n <h3 class=\"\">Role: {{ role?.name }}</h3>\n </div>\n </div>\n </div>\n\n <div class=\"w-100 text-center mt-3\"\n *ngIf=\"isLoading\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n\n <form [formGroup]=\"form\"\n *ngIf=\"!isLoading\"\n (ngSubmit)=\"onSave()\">\n <div class=\"row\">\n <div class=\"col-12 col-md-8\">\n <div class=\"mb-3\">\n <label for=\"name\">{{ 'Admin.Roles.RoleName' | transloco }}</label>\n <input type=\"text\"\n class=\"form-control\"\n formControlName=\"name\" />\n </div>\n </div>\n <div class=\"col-12 col-md-4\">\n <div class=\"mb-3 text-center\">\n <label for=\"active\">{{ 'Admin.Roles.IsActive' | transloco }}</label>\n <br />\n <ui-switch class=\"d-block\"\n formControlName=\"active\"\n name=\"active\">\n </ui-switch>\n </div>\n </div>\n </div>\n <div class=\"row mt-5 text-end\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"onDiscard()\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\"\n *rbacAllow=\"'Pages.Admin.Roles.Create'\">\n {{ 'Button.Save' | transloco }}\n </button>\n </div>\n </div>\n </form>\n </ng-template>\n\n <ng-template [ngIf]=\"activeItem.id === 'permission'\">\n <div class=\"p-4\">\n <ng-container *ngIf=\"permissions\">\n <permission-tree [data]=\"permissions\"\n #permissionTree></permission-tree>\n\n <div class=\"row mt-5 text-end\">\n <div class=\"col-12\">\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"onDiscard()\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button type=\"submit\"\n [buttonBusy]=\"buttonBusy\"\n class=\"btn btn-primary\"\n (click)=\"savePermission()\">\n {{ 'Button.Save' | transloco }}\n </button>\n </div>\n </div>\n </ng-container>\n </div>\n </ng-template>\n </div>\n </div>\n</div>\n" }]
4627
+ }], ctorParameters: () => [{ type: i1.AdminService }, { type: i0.Injector }], propDecorators: { permissionTree: [{
4639
4628
  type: ViewChild,
4640
4629
  args: ['permissionTree', { static: false }]
4641
4630
  }], onSave: [] } });
@@ -5341,7 +5330,6 @@ class ResourceAdminDetailsComponent extends AppBaseComponent {
5341
5330
  this.form.get('accepted_at').enable();
5342
5331
  }
5343
5332
  this.route.params.subscribe(params => {
5344
- console.log(params['slug']);
5345
5333
  this.slug = params['slug'] ?? '';
5346
5334
  if (this.slug !== 'create') {
5347
5335
  this.getBlogItem(this.slug);
@@ -8530,9 +8518,6 @@ class AhoyEventsComponent extends AppBaseComponent {
8530
8518
  this.scrollListener = this.onScroll.bind(this);
8531
8519
  multiSelectPanel.addEventListener('scroll', this.scrollListener);
8532
8520
  }
8533
- else {
8534
- console.log('MultiSelect panel not found.');
8535
- }
8536
8521
  }, 0);
8537
8522
  }
8538
8523
  onScroll(event) {
@@ -8647,7 +8632,6 @@ class AhoyEventsComponent extends AppBaseComponent {
8647
8632
  newUsers.forEach(user => {
8648
8633
  const index = this.searchOptions.findIndex(existing => existing.value === user.value);
8649
8634
  if (index !== -1) {
8650
- console.log('Removing user');
8651
8635
  this.searchOptions.splice(index, 1); // Remove the user from searchOptions
8652
8636
  }
8653
8637
  });
@@ -8761,9 +8745,6 @@ class AhoyMessagesComponent extends AppBaseComponent {
8761
8745
  this.scrollListener = this.onScroll.bind(this);
8762
8746
  multiSelectItemPanel.addEventListener('scroll', this.scrollListener);
8763
8747
  }
8764
- else {
8765
- console.log('MultiSelect panel not found.');
8766
- }
8767
8748
  }, 0);
8768
8749
  }
8769
8750
  onScroll(event) {
@@ -8828,7 +8809,6 @@ class AhoyMessagesComponent extends AppBaseComponent {
8828
8809
  newUsers.forEach(user => {
8829
8810
  const index = this.searchOptions.findIndex(existing => existing.value === user.value);
8830
8811
  if (index !== -1) {
8831
- console.log('Removing user');
8832
8812
  this.searchOptions.splice(index, 1);
8833
8813
  }
8834
8814
  });
@@ -8903,9 +8883,6 @@ class AhoyVisitsComponent extends AppBaseComponent {
8903
8883
  this.scrollListener = this.onScroll.bind(this);
8904
8884
  multiSelectPanelWrapper.addEventListener('scroll', this.scrollListener);
8905
8885
  }
8906
- else {
8907
- console.log('MultiSelect panel not found.');
8908
- }
8909
8886
  }, 0);
8910
8887
  }
8911
8888
  onScroll(event) {
@@ -9002,7 +8979,6 @@ class AhoyVisitsComponent extends AppBaseComponent {
9002
8979
  newUsers.forEach(user => {
9003
8980
  const index = this.searchOptions.findIndex(existing => existing.value === user.value);
9004
8981
  if (index !== -1) {
9005
- console.log('Removing user');
9006
8982
  this.searchOptions.splice(index, 1);
9007
8983
  }
9008
8984
  });
@@ -9078,9 +9054,6 @@ class EventsComponent extends AppBaseComponent {
9078
9054
  this.scrollListener = this.onScroll.bind(this);
9079
9055
  multiSelectPanel.addEventListener('scroll', this.scrollListener);
9080
9056
  }
9081
- else {
9082
- console.log('MultiSelect panel not found.');
9083
- }
9084
9057
  }, 0);
9085
9058
  }
9086
9059
  onScroll(event) {
@@ -9177,7 +9150,6 @@ class EventsComponent extends AppBaseComponent {
9177
9150
  newUsers.forEach(user => {
9178
9151
  const index = this.searchOptions.findIndex(existing => existing.value === user.value);
9179
9152
  if (index !== -1) {
9180
- console.log('Removing user');
9181
9153
  this.searchOptions.splice(index, 1);
9182
9154
  }
9183
9155
  });
@@ -9331,9 +9303,6 @@ class VersionsComponent extends AppBaseComponent {
9331
9303
  this.scrollListener = this.onScroll.bind(this);
9332
9304
  multiSelectPanelSelecter.addEventListener('scroll', this.scrollListener);
9333
9305
  }
9334
- else {
9335
- console.log('MultiSelect panel not found.');
9336
- }
9337
9306
  }, 0);
9338
9307
  }
9339
9308
  onScroll(event) {
@@ -9406,7 +9375,6 @@ class VersionsComponent extends AppBaseComponent {
9406
9375
  newUsers.forEach(user => {
9407
9376
  const index = this.searchOptions.findIndex(existing => existing.value === user.value);
9408
9377
  if (index !== -1) {
9409
- console.log('Removing user');
9410
9378
  this.searchOptions.splice(index, 1);
9411
9379
  }
9412
9380
  });
@@ -10806,9 +10774,6 @@ const primeNgModules = [
10806
10774
  InputTextModule
10807
10775
  ];
10808
10776
  class AdminModule {
10809
- constructor() {
10810
- console.log('🚀 Admin MODULE LOADED! - User is authenticated');
10811
- }
10812
10777
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: AdminModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
10813
10778
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.18", ngImport: i0, type: AdminModule, declarations: [UserTabComponent,
10814
10779
  SubscriptionComponent,
@@ -11143,7 +11108,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImpo
11143
11108
  ],
11144
11109
  schemas: [CUSTOM_ELEMENTS_SCHEMA]
11145
11110
  }]
11146
- }], ctorParameters: () => [] });
11111
+ }] });
11147
11112
 
11148
11113
  class AdminGuardService {
11149
11114
  constructor(userService, router, permissionService) {
@@ -11152,7 +11117,6 @@ class AdminGuardService {
11152
11117
  this.permissionService = permissionService;
11153
11118
  }
11154
11119
  canLoad(route) {
11155
- console.log('Bug');
11156
11120
  return this.userService.getUserInfo().pipe(take(1), concatMap(user => {
11157
11121
  this.permissionService.user = user;
11158
11122
  if (route.data && this.permissionService.isGranted(route.data['permission'])) {