ninegrid2 6.186.0 → 6.188.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.
@@ -18461,7 +18461,7 @@ class ngFilterPanel extends HTMLElement
18461
18461
  const owner = this.shadow.closest("nine-grid");
18462
18462
  const colnms = [...new Set(filterButton.filterOptions.map(item => item.colnm))];
18463
18463
 
18464
- console.log(this, owner, filterButton.filterOptions, colnms);
18464
+ //console.log(this, owner, filterButton.filterOptions, colnms);
18465
18465
 
18466
18466
  var col = filterButton.closest('th,td').dataset.col;
18467
18467
  this.col = col;
@@ -18487,13 +18487,14 @@ class ngFilterPanel extends HTMLElement
18487
18487
 
18488
18488
  let data = owner.data.getValidDataNF();
18489
18489
 
18490
- //console.log(data);
18490
+ console.log(data);
18491
18491
 
18492
- owner.body.querySelectorAll(`th[data-col]:not([data-col="${col}"]),td[data-col]:not([data-col="${col}"])`).forEach(td => {
18493
- const el = td.querySelector("ng-filter-button");
18494
- console.log(owner, td, el);
18492
+ owner.body.querySelectorAll("ng-filter-button").forEach(el => {
18493
+ console.log(el);
18494
+ if (el.closest('th,td').dataset.col != col || el.filterOptions) {
18495
+
18496
+ console.log("================", el.filterOptions);
18495
18497
 
18496
- if (el && el.filterOptions) {
18497
18498
  el.filterOptions.forEach(filterOption => {
18498
18499
  var idx = owner.fields.indexOf(filterOption.colnm);
18499
18500
 
@@ -18459,7 +18459,7 @@ class ngFilterPanel extends HTMLElement
18459
18459
  const owner = this.shadow.closest("nine-grid");
18460
18460
  const colnms = [...new Set(filterButton.filterOptions.map(item => item.colnm))];
18461
18461
 
18462
- console.log(this, owner, filterButton.filterOptions, colnms);
18462
+ //console.log(this, owner, filterButton.filterOptions, colnms);
18463
18463
 
18464
18464
  var col = filterButton.closest('th,td').dataset.col;
18465
18465
  this.col = col;
@@ -18485,13 +18485,14 @@ class ngFilterPanel extends HTMLElement
18485
18485
 
18486
18486
  let data = owner.data.getValidDataNF();
18487
18487
 
18488
- //console.log(data);
18488
+ console.log(data);
18489
18489
 
18490
- owner.body.querySelectorAll(`th[data-col]:not([data-col="${col}"]),td[data-col]:not([data-col="${col}"])`).forEach(td => {
18491
- const el = td.querySelector("ng-filter-button");
18492
- console.log(owner, td, el);
18490
+ owner.body.querySelectorAll("ng-filter-button").forEach(el => {
18491
+ console.log(el);
18492
+ if (el.closest('th,td').dataset.col != col || el.filterOptions) {
18493
+
18494
+ console.log("================", el.filterOptions);
18493
18495
 
18494
- if (el && el.filterOptions) {
18495
18496
  el.filterOptions.forEach(filterOption => {
18496
18497
  var idx = owner.fields.indexOf(filterOption.colnm);
18497
18498
 
@@ -531,7 +531,7 @@ class ngFilterPanel extends HTMLElement
531
531
  const owner = this.shadow.closest("nine-grid");
532
532
  const colnms = [...new Set(filterButton.filterOptions.map(item => item.colnm))];
533
533
 
534
- console.log(this, owner, filterButton.filterOptions, colnms);
534
+ //console.log(this, owner, filterButton.filterOptions, colnms);
535
535
 
536
536
  var col = filterButton.closest('th,td').dataset.col;
537
537
  this.col = col;
@@ -557,13 +557,14 @@ class ngFilterPanel extends HTMLElement
557
557
 
558
558
  let data = owner.data.getValidDataNF();
559
559
 
560
- //console.log(data);
560
+ console.log(data);
561
561
 
562
- owner.body.querySelectorAll(`th[data-col]:not([data-col="${col}"]),td[data-col]:not([data-col="${col}"])`).forEach(td => {
563
- const el = td.querySelector("ng-filter-button");
564
- console.log(owner, td, el);
562
+ owner.body.querySelectorAll("ng-filter-button").forEach(el => {
563
+ console.log(el);
564
+ if (el.closest('th,td').dataset.col != col || el.filterOptions) {
565
+
566
+ console.log("================", el.filterOptions);
565
567
 
566
- if (el && el.filterOptions) {
567
568
  el.filterOptions.forEach(filterOption => {
568
569
  var idx = owner.fields.indexOf(filterOption.colnm);
569
570
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.186.0",
4
+ "version": "6.188.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -531,7 +531,7 @@ class ngFilterPanel extends HTMLElement
531
531
  const owner = this.shadow.closest("nine-grid");
532
532
  const colnms = [...new Set(filterButton.filterOptions.map(item => item.colnm))];
533
533
 
534
- console.log(this, owner, filterButton.filterOptions, colnms);
534
+ //console.log(this, owner, filterButton.filterOptions, colnms);
535
535
 
536
536
  var col = filterButton.closest('th,td').dataset.col;
537
537
  this.col = col;
@@ -557,13 +557,14 @@ class ngFilterPanel extends HTMLElement
557
557
 
558
558
  let data = owner.data.getValidDataNF();
559
559
 
560
- //console.log(data);
560
+ console.log(data);
561
561
 
562
- owner.body.querySelectorAll(`th[data-col]:not([data-col="${col}"]),td[data-col]:not([data-col="${col}"])`).forEach(td => {
563
- const el = td.querySelector("ng-filter-button");
564
- console.log(owner, td, el);
562
+ owner.body.querySelectorAll("ng-filter-button").forEach(el => {
563
+ console.log(el);
564
+ if (el.closest('th,td').dataset.col != col || el.filterOptions) {
565
+
566
+ console.log("================", el.filterOptions);
565
567
 
566
- if (el && el.filterOptions) {
567
568
  el.filterOptions.forEach(filterOption => {
568
569
  var idx = owner.fields.indexOf(filterOption.colnm);
569
570