@monoui/vuejs 1.1.80 → 1.1.81

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monoui/vuejs",
3
- "version": "1.1.80",
3
+ "version": "1.1.81",
4
4
  "description": "This project will contain MonoFor UI Framework",
5
5
  "main": "./dist/main.js",
6
6
  "repository": "git@gitlab.com:monoui/vuejs.git",
@@ -714,17 +714,15 @@ export default {
714
714
  // Update existing filter
715
715
  this.$set(this.filters, existingIndex, {
716
716
  Column: this.finalTimeFrame.column,
717
- Value: -opt,
718
- Operator: 5,
719
- AddMonths: true
717
+ Value: this.calculateStartDate(opt),
718
+ Operator: 5
720
719
  });
721
720
  } else {
722
721
  // Add new filter
723
722
  this.filters.push({
724
723
  Column: this.finalTimeFrame.column,
725
- Value: -opt,
726
- Operator: 5,
727
- AddMonths: true
724
+ Value: this.calculateStartDate(opt),
725
+ Operator: 5
728
726
  });
729
727
  }
730
728
  }
@@ -732,6 +730,12 @@ export default {
732
730
  this.getValues();
733
731
  },
734
732
 
733
+ calculateStartDate(months) {
734
+ const date = new Date();
735
+ date.setMonth(date.getMonth() - months);
736
+ return date.toISOString().split("T")[0]; // Return in YYYY-MM-DD format
737
+ },
738
+
735
739
  getCorrelationClass(row, tableData) {
736
740
  var correlationCount = 0;
737
741
  tableData.forEach(element => {