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';
|
|
@@ -3046,7 +3047,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
|
|
|
3046
3047
|
type: Output
|
|
3047
3048
|
}] } });
|
|
3048
3049
|
|
|
3049
|
-
|
|
3050
|
+
dayjs.extend(customParseFormat);
|
|
3050
3051
|
class CreateDashboardComponent {
|
|
3051
3052
|
constructor(createDashboardService, paginationService, cdr, snackBar, popoverService, configureWidgetsService, textCount) {
|
|
3052
3053
|
this.createDashboardService = createDashboardService;
|
|
@@ -3693,7 +3694,7 @@ class CreateDashboardComponent {
|
|
|
3693
3694
|
* Validates the data submitted on create dashboard form
|
|
3694
3695
|
*/
|
|
3695
3696
|
validateDashboard() {
|
|
3696
|
-
var _a;
|
|
3697
|
+
var _a, _b;
|
|
3697
3698
|
setTimeout(() => {
|
|
3698
3699
|
this.submitted = true;
|
|
3699
3700
|
}, 100);
|
|
@@ -3705,7 +3706,7 @@ class CreateDashboardComponent {
|
|
|
3705
3706
|
if (!this.dashboardForm.dashboardName || this.dashboardForm.dashboardName.trim() == ''
|
|
3706
3707
|
|| (this.dashboardForm.dashboardName.length > 30)
|
|
3707
3708
|
|| (this.textCount.transform((_a = this.dashboardForm) === null || _a === void 0 ? void 0 : _a.dashboardDescriptionText) > 250)
|
|
3708
|
-
|| (this.dashboardForm.selectedFromDate && (!this.dashboardForm.selectedToDate))
|
|
3709
|
+
|| (((_b = this.dashboardForm) === null || _b === void 0 ? void 0 : _b.selectedFromDate) && (!this.dashboardForm.selectedToDate))
|
|
3709
3710
|
|| (this.dashboardForm.selectedResponsibilityCenters.length == 0 &&
|
|
3710
3711
|
this.dashboardForm.selectedResponsibilityCategories.length == 0 &&
|
|
3711
3712
|
this.dashboardForm.selectedRiskCategories.length == 0)) {
|
|
@@ -3728,7 +3729,7 @@ class CreateDashboardComponent {
|
|
|
3728
3729
|
this.vLoader = true;
|
|
3729
3730
|
const dashboard = this.dashboardForm;
|
|
3730
3731
|
console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD')", dashboard);
|
|
3731
|
-
console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') 123", dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD'));
|
|
3732
|
+
console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') 123", dayjs(dashboard === null || dashboard === void 0 ? void 0 : dashboard.selectedFromDate).format('YYYY-MM-DD'));
|
|
3732
3733
|
const payload = {
|
|
3733
3734
|
dashboard_name: dashboard.dashboardName,
|
|
3734
3735
|
description: [
|