ninegrid2 6.197.0 → 6.198.0

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.
@@ -18491,7 +18491,7 @@ class ngFilterPanel extends HTMLElement
18491
18491
 
18492
18492
  owner.body.querySelectorAll("ng-filter-button").forEach(el => {
18493
18493
  //console.log(el);
18494
- if (el.closest('th,td').dataset.col != col && el.filterOptions.length > 0) {
18494
+ if (el.closest('th,td').dataset.col != col && el.filterOptions) {
18495
18495
 
18496
18496
  //console.log("================", el.filterOptions);
18497
18497
 
@@ -18500,7 +18500,7 @@ class ngFilterPanel extends HTMLElement
18500
18500
 
18501
18501
  //console.log(idx);
18502
18502
 
18503
- if (idx >= 0) {
18503
+ if (idx >= 0 && filterOption.data.length > 0) {
18504
18504
  data = data.filter(m => { return filterOption.data.nineBinarySearch(m.v[idx] || '') >= 0; });
18505
18505
  }
18506
18506
  });
@@ -18489,7 +18489,7 @@ class ngFilterPanel extends HTMLElement
18489
18489
 
18490
18490
  owner.body.querySelectorAll("ng-filter-button").forEach(el => {
18491
18491
  //console.log(el);
18492
- if (el.closest('th,td').dataset.col != col && el.filterOptions.length > 0) {
18492
+ if (el.closest('th,td').dataset.col != col && el.filterOptions) {
18493
18493
 
18494
18494
  //console.log("================", el.filterOptions);
18495
18495
 
@@ -18498,7 +18498,7 @@ class ngFilterPanel extends HTMLElement
18498
18498
 
18499
18499
  //console.log(idx);
18500
18500
 
18501
- if (idx >= 0) {
18501
+ if (idx >= 0 && filterOption.data.length > 0) {
18502
18502
  data = data.filter(m => { return filterOption.data.nineBinarySearch(m.v[idx] || '') >= 0; });
18503
18503
  }
18504
18504
  });
@@ -561,7 +561,7 @@ class ngFilterPanel extends HTMLElement
561
561
 
562
562
  owner.body.querySelectorAll("ng-filter-button").forEach(el => {
563
563
  //console.log(el);
564
- if (el.closest('th,td').dataset.col != col && el.filterOptions.length > 0) {
564
+ if (el.closest('th,td').dataset.col != col && el.filterOptions) {
565
565
 
566
566
  //console.log("================", el.filterOptions);
567
567
 
@@ -570,7 +570,7 @@ class ngFilterPanel extends HTMLElement
570
570
 
571
571
  //console.log(idx);
572
572
 
573
- if (idx >= 0) {
573
+ if (idx >= 0 && filterOption.data.length > 0) {
574
574
  data = data.filter(m => { return filterOption.data.nineBinarySearch(m.v[idx] || '') >= 0; });
575
575
  }
576
576
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.197.0",
4
+ "version": "6.198.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -561,7 +561,7 @@ class ngFilterPanel extends HTMLElement
561
561
 
562
562
  owner.body.querySelectorAll("ng-filter-button").forEach(el => {
563
563
  //console.log(el);
564
- if (el.closest('th,td').dataset.col != col && el.filterOptions.length > 0) {
564
+ if (el.closest('th,td').dataset.col != col && el.filterOptions) {
565
565
 
566
566
  //console.log("================", el.filterOptions);
567
567
 
@@ -570,7 +570,7 @@ class ngFilterPanel extends HTMLElement
570
570
 
571
571
  //console.log(idx);
572
572
 
573
- if (idx >= 0) {
573
+ if (idx >= 0 && filterOption.data.length > 0) {
574
574
  data = data.filter(m => { return filterOption.data.nineBinarySearch(m.v[idx] || '') >= 0; });
575
575
  }
576
576
  });