vc-create-dashboard 2.8.14 → 2.8.16

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.
@@ -3227,6 +3227,7 @@ class CreateDashboardComponent {
3227
3227
  }
3228
3228
  closeFromDatePicker() {
3229
3229
  var _a, _b;
3230
+ console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') ==>", this.dashboardForm, this.dashboardForm.selectedFromDate);
3230
3231
  if (!this.dashboardForm.selectedFromDate) {
3231
3232
  this.dashboardForm.selectedToDate = undefined;
3232
3233
  this.hideToDate = true;
@@ -3238,6 +3239,7 @@ class CreateDashboardComponent {
3238
3239
  return;
3239
3240
  }
3240
3241
  let minToDate = this.setToDate(this.dashboardForm.selectedFromDate);
3242
+ console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') ==>1", minToDate);
3241
3243
  this.toDatePickerConfig = { min: minToDate };
3242
3244
  const fromDate = new Date(minToDate.split('-').reverse().join('-'));
3243
3245
  const toDate = new Date(this.dashboardForm.selectedToDate);
@@ -3693,7 +3695,7 @@ class CreateDashboardComponent {
3693
3695
  * Validates the data submitted on create dashboard form
3694
3696
  */
3695
3697
  validateDashboard() {
3696
- var _a;
3698
+ var _a, _b;
3697
3699
  setTimeout(() => {
3698
3700
  this.submitted = true;
3699
3701
  }, 100);
@@ -3705,7 +3707,7 @@ class CreateDashboardComponent {
3705
3707
  if (!this.dashboardForm.dashboardName || this.dashboardForm.dashboardName.trim() == ''
3706
3708
  || (this.dashboardForm.dashboardName.length > 30)
3707
3709
  || (this.textCount.transform((_a = this.dashboardForm) === null || _a === void 0 ? void 0 : _a.dashboardDescriptionText) > 250)
3708
- || (this.dashboardForm.selectedFromDate && (!this.dashboardForm.selectedToDate))
3710
+ || (((_b = this.dashboardForm) === null || _b === void 0 ? void 0 : _b.selectedFromDate) && (!this.dashboardForm.selectedToDate))
3709
3711
  || (this.dashboardForm.selectedResponsibilityCenters.length == 0 &&
3710
3712
  this.dashboardForm.selectedResponsibilityCategories.length == 0 &&
3711
3713
  this.dashboardForm.selectedRiskCategories.length == 0)) {
@@ -3727,6 +3729,8 @@ class CreateDashboardComponent {
3727
3729
  }
3728
3730
  this.vLoader = true;
3729
3731
  const dashboard = this.dashboardForm;
3732
+ console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD')", dashboard);
3733
+ console.log("dayjs(dashboard.selectedFromDate).format('YYYY-MM-DD') 123", dayjs(dashboard === null || dashboard === void 0 ? void 0 : dashboard.selectedFromDate).format('YYYY-MM-DD'));
3730
3734
  const payload = {
3731
3735
  dashboard_name: dashboard.dashboardName,
3732
3736
  description: [