vc-create-dashboard 2.7.7 → 2.7.9

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.
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Injectable, Pipe, Optional, EventEmitter, Component, Input, Output, Directive, HostListener, ViewChild, forwardRef, NgModule } from '@angular/core';
3
- import dayjs from 'dayjs';
3
+ import * as dayjs from 'dayjs';
4
4
  import * as i1 from '@angular/common/http';
5
5
  import { HttpHeaders, HttpParams } from '@angular/common/http';
6
6
  import { JwtHelperService } from '@auth0/angular-jwt';
@@ -147,7 +147,7 @@ class CreateDashboardService {
147
147
  }
148
148
  getComplianceCategoriesListFromGlobal() {
149
149
  const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
150
- return this.http.get(this.env?.complianceGet + 'complianceCategory/CategoryListTree&program=1', {
150
+ return this.http.get(this.env?.complianceGet + 'complianceCategory/CategoryListTree&program=1&isDashboard=true', {
151
151
  headers,
152
152
  }).pipe(retry(2));
153
153
  }
@@ -3020,6 +3020,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
3020
3020
  type: Output
3021
3021
  }] } });
3022
3022
 
3023
+ // dayjs.extend(customParseFormat);
3023
3024
  class CreateDashboardComponent {
3024
3025
  constructor(createDashboardService, paginationService, cdr, snackBar, popoverService, configureWidgetsService, textCount) {
3025
3026
  this.createDashboardService = createDashboardService;
@@ -3138,7 +3139,6 @@ class CreateDashboardComponent {
3138
3139
  this.smileyMessage = '';
3139
3140
  this.groupsEnabled = false;
3140
3141
  this.submitted = false;
3141
- //dayjs.extend(customParseFormat)
3142
3142
  }
3143
3143
  ngOnChanges() {
3144
3144
  if (this.createdBy) {
@@ -3770,7 +3770,7 @@ class CreateDashboardComponent {
3770
3770
  }
3771
3771
  populateDashboardForm(data) {
3772
3772
  try {
3773
- console.log("datattttta ===>", data, this.groupList);
3773
+ console.log(" datattttta ===> ", data, this.groupList);
3774
3774
  this.dashboardForm.dashboardName = data?.dashboard_name,
3775
3775
  this.dashboardForm.dashboardDescriptionText = data?.description[0]?.content ?? "",
3776
3776
  this.dashboardForm.selectedViewers = this.setList(this.usersList, data?.visible_to_users, 'member_id');
@@ -3797,7 +3797,7 @@ class CreateDashboardComponent {
3797
3797
  }, 20);
3798
3798
  }
3799
3799
  catch (error) {
3800
- console.log("populate dashboard error ==>", error);
3800
+ console.log("populate dashboard error =>", error);
3801
3801
  }
3802
3802
  }
3803
3803
  setFrequency(event, mode) {