vc-create-dashboard 2.8.15 → 2.8.17
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,7 +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
3
|
import * as dayjs from 'dayjs';
|
|
4
|
-
import * as customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
5
4
|
import * as i1 from '@angular/common/http';
|
|
6
5
|
import { HttpHeaders, HttpParams } from '@angular/common/http';
|
|
7
6
|
import { JwtHelperService } from '@auth0/angular-jwt';
|
|
@@ -3026,7 +3025,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.8", ngImpor
|
|
|
3026
3025
|
type: Output
|
|
3027
3026
|
}] } });
|
|
3028
3027
|
|
|
3029
|
-
dayjs.extend(customParseFormat);
|
|
3028
|
+
// dayjs.extend(customParseFormat);
|
|
3030
3029
|
class CreateDashboardComponent {
|
|
3031
3030
|
constructor(createDashboardService, paginationService, cdr, snackBar, popoverService, configureWidgetsService, textCount) {
|
|
3032
3031
|
this.createDashboardService = createDashboardService;
|
|
@@ -3203,7 +3202,7 @@ class CreateDashboardComponent {
|
|
|
3203
3202
|
this.datePickerOverlay = true;
|
|
3204
3203
|
}
|
|
3205
3204
|
closeFromDatePicker() {
|
|
3206
|
-
console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') ==>", this.dashboardForm, this.dashboardForm
|
|
3205
|
+
console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') ==>", this.dashboardForm, new Date(this.dashboardForm?.selectedFromDate));
|
|
3207
3206
|
if (!this.dashboardForm.selectedFromDate) {
|
|
3208
3207
|
this.dashboardForm.selectedToDate = undefined;
|
|
3209
3208
|
this.hideToDate = true;
|
|
@@ -3700,7 +3699,7 @@ class CreateDashboardComponent {
|
|
|
3700
3699
|
}
|
|
3701
3700
|
this.vLoader = true;
|
|
3702
3701
|
const dashboard = this.dashboardForm;
|
|
3703
|
-
console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD')", dashboard);
|
|
3702
|
+
console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD')", dashboard, new Date(dashboard?.selectedFromDate));
|
|
3704
3703
|
console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') 123", dayjs(dashboard?.selectedFromDate).format('YYYY-MM-DD'));
|
|
3705
3704
|
const payload = {
|
|
3706
3705
|
dashboard_name: dashboard.dashboardName,
|
|
@@ -3717,8 +3716,8 @@ class CreateDashboardComponent {
|
|
|
3717
3716
|
risk_category: this.returnIds(dashboard.selectedRiskCategories, 'category_id'),
|
|
3718
3717
|
display_criteria: (dashboard.displayCriteria === 'and') ? 'BOTH_RC_AND_CATEGORY' : 'RC_OR_CATEGORY',
|
|
3719
3718
|
timeframe: {
|
|
3720
|
-
start_date: (dashboard.selectedFromDate) ? dayjs(dashboard
|
|
3721
|
-
end_date: (dashboard.selectedToDate) ? dayjs(dashboard
|
|
3719
|
+
start_date: (dashboard.selectedFromDate) ? dayjs(new Date(dashboard?.selectedFromDate)).format('YYYY-MM-DD') : '',
|
|
3720
|
+
end_date: (dashboard.selectedToDate) ? dayjs(new Date(dashboard?.selectedToDate)).format('YYYY-MM-DD') : '',
|
|
3722
3721
|
},
|
|
3723
3722
|
email_summary: this.setFrequency('', 'export'),
|
|
3724
3723
|
widget_details: dashboard.configureWidget
|