cat-qw-lib 1.0.21 → 1.0.25

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.
@@ -4701,8 +4701,9 @@ class WidgetItemComponent {
4701
4701
  this.widgetStore.setEventClickDetails({ recordId: null, isDailogShow: false });
4702
4702
  }
4703
4703
  isDate(value) {
4704
- console.log("value=>", value, moment(value).isValid());
4705
- return moment(value).isValid();
4704
+ const validFormats = ['YYYY/MM/DD', moment.ISO_8601, "DD/MM/YYYY"];
4705
+ console.log("value=>", value, moment(value, validFormats, true).isValid());
4706
+ return moment(value, validFormats, true).isValid();
4706
4707
  }
4707
4708
  handleWidgetItemClick(widgetItem) {
4708
4709
  const updatedItem = { ...widgetItem };