cat-qw-lib 1.0.32 → 1.0.34

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.
@@ -4704,7 +4704,6 @@ class WidgetItemComponent {
4704
4704
  }
4705
4705
  isDate(value) {
4706
4706
  const validFormats = ['YYYY/MM/DD', moment.ISO_8601, "DD/MM/YYYY"];
4707
- console.log("value=>", value, moment(value, validFormats, true).isValid());
4708
4707
  return moment(value, validFormats, true).isValid();
4709
4708
  }
4710
4709
  handleWidgetItemClick(widgetItem) {
@@ -4745,12 +4744,9 @@ class WidgetItemComponent {
4745
4744
  if (!value || value === 'null' || value === 'undefined') {
4746
4745
  return false;
4747
4746
  }
4748
- // Create a temporary div element to parse HTML
4749
4747
  const tempDiv = document.createElement('div');
4750
4748
  tempDiv.innerHTML = value;
4751
- // Get text content (strips HTML tags)
4752
4749
  const textContent = tempDiv.textContent || tempDiv.innerText || '';
4753
- // Strip commas, periods, and whitespace, then check if there's meaningful content
4754
4750
  return textContent.replace(/[,.]/g, '').trim().length > 0;
4755
4751
  }
4756
4752
  formatDate(value) {