@monoui/vuejs 1.1.79 → 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.79",
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 => {
@@ -866,8 +870,8 @@ export default {
866
870
  );
867
871
  if (result && result.status === 200) {
868
872
  this.$successToast(
869
- "Export Started",
870
- "The export process has begun. Please wait... Once completed, you can download it from the Reports/Exports page."
873
+ "Export In Progress",
874
+ "It will be available on the Reports/Exports page shortly."
871
875
  );
872
876
  } else {
873
877
  this.$errorToast(
@@ -885,8 +889,8 @@ export default {
885
889
 
886
890
  if (exportScope) {
887
891
  this.$successToast(
888
- "Export Started",
889
- "The export process has begun. Please wait... Once completed, you can download it from the Reports/Exports page."
892
+ "Export In Progress",
893
+ "It will be available on the Reports/Exports page shortly."
890
894
  );
891
895
  }
892
896