vc-create-dashboard 2.8.11 → 2.8.12
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,7 @@
|
|
|
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
3
|
import * as dayjs from 'dayjs';
|
|
4
|
+
import * as customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
4
5
|
import * as i1 from '@angular/common/http';
|
|
5
6
|
import { HttpHeaders, HttpParams } from '@angular/common/http';
|
|
6
7
|
import { JwtHelperService } from '@auth0/angular-jwt';
|
|
@@ -3025,7 +3026,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
|
|
|
3025
3026
|
type: Output
|
|
3026
3027
|
}] } });
|
|
3027
3028
|
|
|
3028
|
-
|
|
3029
|
+
dayjs.extend(customParseFormat);
|
|
3029
3030
|
class CreateDashboardComponent {
|
|
3030
3031
|
constructor(createDashboardService, paginationService, cdr, snackBar, popoverService, configureWidgetsService, textCount) {
|
|
3031
3032
|
this.createDashboardService = createDashboardService;
|
|
@@ -3675,7 +3676,7 @@ class CreateDashboardComponent {
|
|
|
3675
3676
|
if (!this.dashboardForm.dashboardName || this.dashboardForm.dashboardName.trim() == ''
|
|
3676
3677
|
|| (this.dashboardForm.dashboardName.length > 30)
|
|
3677
3678
|
|| (this.textCount.transform(this.dashboardForm?.dashboardDescriptionText) > 250)
|
|
3678
|
-
|| (this.dashboardForm
|
|
3679
|
+
|| (this.dashboardForm?.selectedFromDate && (!this.dashboardForm.selectedToDate))
|
|
3679
3680
|
|| (this.dashboardForm.selectedResponsibilityCenters.length == 0 &&
|
|
3680
3681
|
this.dashboardForm.selectedResponsibilityCategories.length == 0 &&
|
|
3681
3682
|
this.dashboardForm.selectedRiskCategories.length == 0)) {
|
|
@@ -3698,7 +3699,7 @@ class CreateDashboardComponent {
|
|
|
3698
3699
|
this.vLoader = true;
|
|
3699
3700
|
const dashboard = this.dashboardForm;
|
|
3700
3701
|
console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD')", dashboard);
|
|
3701
|
-
console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') 123", dayjs(dashboard
|
|
3702
|
+
console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') 123", dayjs(dashboard?.selectedFromDate).format('YYYY-MM-DD'));
|
|
3702
3703
|
const payload = {
|
|
3703
3704
|
dashboard_name: dashboard.dashboardName,
|
|
3704
3705
|
description: [
|