ninegrid2 6.125.0 → 6.127.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.
@@ -18297,7 +18297,7 @@ class ngFilterPanel extends HTMLElement
18297
18297
  var data = owner.data.getValidDataNF();
18298
18298
  $("ng-filter-button", owner.body).each((index,el) => {
18299
18299
 
18300
- if (el.closest('th,td').dataset.col == col || !el.filterData) return true;
18300
+ if (el.closest('th,td').dataset.col !== col || !el.filterData) return true;
18301
18301
  /**
18302
18302
  el.filterData.forEach(o => {
18303
18303
  var idx = owner.fields.indexOf(o.colnm);
@@ -18313,6 +18313,8 @@ class ngFilterPanel extends HTMLElement
18313
18313
  //colnms.forEach(colnm => {
18314
18314
  var idx = owner.fields.indexOf(el.dataset.bind);
18315
18315
 
18316
+ console.log(idx);
18317
+
18316
18318
  if (idx >= 0) {
18317
18319
  data = data.filter(m => { return el.filterData.nineBinarySearch(m.v[idx] || '') >= 0; });
18318
18320
  }
@@ -18295,7 +18295,7 @@ class ngFilterPanel extends HTMLElement
18295
18295
  var data = owner.data.getValidDataNF();
18296
18296
  $("ng-filter-button", owner.body).each((index,el) => {
18297
18297
 
18298
- if (el.closest('th,td').dataset.col == col || !el.filterData) return true;
18298
+ if (el.closest('th,td').dataset.col !== col || !el.filterData) return true;
18299
18299
  /**
18300
18300
  el.filterData.forEach(o => {
18301
18301
  var idx = owner.fields.indexOf(o.colnm);
@@ -18311,6 +18311,8 @@ class ngFilterPanel extends HTMLElement
18311
18311
  //colnms.forEach(colnm => {
18312
18312
  var idx = owner.fields.indexOf(el.dataset.bind);
18313
18313
 
18314
+ console.log(idx);
18315
+
18314
18316
  if (idx >= 0) {
18315
18317
  data = data.filter(m => { return el.filterData.nineBinarySearch(m.v[idx] || '') >= 0; });
18316
18318
  }
@@ -434,7 +434,7 @@ class ngFilterPanel extends HTMLElement
434
434
  var data = owner.data.getValidDataNF();
435
435
  $("ng-filter-button", owner.body).each((index,el) => {
436
436
 
437
- if (el.closest('th,td').dataset.col == col || !el.filterData) return true;
437
+ if (el.closest('th,td').dataset.col !== col || !el.filterData) return true;
438
438
  /**
439
439
  el.filterData.forEach(o => {
440
440
  var idx = owner.fields.indexOf(o.colnm);
@@ -450,6 +450,8 @@ class ngFilterPanel extends HTMLElement
450
450
  //colnms.forEach(colnm => {
451
451
  var idx = owner.fields.indexOf(el.dataset.bind);
452
452
 
453
+ console.log(idx);
454
+
453
455
  if (idx >= 0) {
454
456
  data = data.filter(m => { return el.filterData.nineBinarySearch(m.v[idx] || '') >= 0; });
455
457
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.125.0",
4
+ "version": "6.127.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -434,7 +434,7 @@ class ngFilterPanel extends HTMLElement
434
434
  var data = owner.data.getValidDataNF();
435
435
  $("ng-filter-button", owner.body).each((index,el) => {
436
436
 
437
- if (el.closest('th,td').dataset.col == col || !el.filterData) return true;
437
+ if (el.closest('th,td').dataset.col !== col || !el.filterData) return true;
438
438
  /**
439
439
  el.filterData.forEach(o => {
440
440
  var idx = owner.fields.indexOf(o.colnm);
@@ -450,6 +450,8 @@ class ngFilterPanel extends HTMLElement
450
450
  //colnms.forEach(colnm => {
451
451
  var idx = owner.fields.indexOf(el.dataset.bind);
452
452
 
453
+ console.log(idx);
454
+
453
455
  if (idx >= 0) {
454
456
  data = data.filter(m => { return el.filterData.nineBinarySearch(m.v[idx] || '') >= 0; });
455
457
  }