ninegrid2 6.176.0 → 6.177.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.
@@ -18243,7 +18243,7 @@ class ngFilterButton extends HTMLElement
18243
18243
  //$(panel).offset({left: l, top: t});
18244
18244
  $(panel).css({left: l, top: t});
18245
18245
 
18246
- panel.open(this.#owner, this);
18246
+ panel.open(this);
18247
18247
  }
18248
18248
  };
18249
18249
  }
@@ -18462,16 +18462,13 @@ class ngFilterPanel extends HTMLElement
18462
18462
  this.style.display = 'none';
18463
18463
  };
18464
18464
 
18465
- open = (owner, filterButton) => {
18465
+ open = (filterButton) => {
18466
18466
 
18467
- console.log(this.shadow.closest("nine-grid"));
18467
+ const owner = this.shadow.closest("nine-grid");
18468
18468
 
18469
18469
  var col = filterButton.closest('th,td').dataset.col;
18470
18470
  this.col = col;
18471
18471
 
18472
- //if (this.#target && this.#target.uuid == owner.uuid && this.#target.col == col && $(this).is(':visible')) {
18473
- if (this.#target && this.#target.col == col && $(this).is(':visible')) ;
18474
-
18475
18472
  this.#target = {
18476
18473
  owner : owner,
18477
18474
  button : filterButton,
@@ -18495,6 +18492,12 @@ class ngFilterPanel extends HTMLElement
18495
18492
  $(owner.template).find(`[data-col=${col}]`).each((index,el) => {
18496
18493
  if (el.dataset.bind) colnms.push(el.dataset.bind);
18497
18494
  });
18495
+
18496
+ owner.activeTmpl.querySelectorAll(`[data-col=${col}]`).forEach(el => {
18497
+ if (el.dataset.bind) colnms.push(el.dataset.bind);
18498
+ });
18499
+
18500
+ console.log(colnms);
18498
18501
 
18499
18502
  var data = owner.data.getValidDataNF();
18500
18503
  $("ng-filter-button", owner.body).each((index,el) => {
@@ -18241,7 +18241,7 @@ class ngFilterButton extends HTMLElement
18241
18241
  //$(panel).offset({left: l, top: t});
18242
18242
  $(panel).css({left: l, top: t});
18243
18243
 
18244
- panel.open(this.#owner, this);
18244
+ panel.open(this);
18245
18245
  }
18246
18246
  };
18247
18247
  }
@@ -18460,16 +18460,13 @@ class ngFilterPanel extends HTMLElement
18460
18460
  this.style.display = 'none';
18461
18461
  };
18462
18462
 
18463
- open = (owner, filterButton) => {
18463
+ open = (filterButton) => {
18464
18464
 
18465
- console.log(this.shadow.closest("nine-grid"));
18465
+ const owner = this.shadow.closest("nine-grid");
18466
18466
 
18467
18467
  var col = filterButton.closest('th,td').dataset.col;
18468
18468
  this.col = col;
18469
18469
 
18470
- //if (this.#target && this.#target.uuid == owner.uuid && this.#target.col == col && $(this).is(':visible')) {
18471
- if (this.#target && this.#target.col == col && $(this).is(':visible')) ;
18472
-
18473
18470
  this.#target = {
18474
18471
  owner : owner,
18475
18472
  button : filterButton,
@@ -18493,6 +18490,12 @@ class ngFilterPanel extends HTMLElement
18493
18490
  $(owner.template).find(`[data-col=${col}]`).each((index,el) => {
18494
18491
  if (el.dataset.bind) colnms.push(el.dataset.bind);
18495
18492
  });
18493
+
18494
+ owner.activeTmpl.querySelectorAll(`[data-col=${col}]`).forEach(el => {
18495
+ if (el.dataset.bind) colnms.push(el.dataset.bind);
18496
+ });
18497
+
18498
+ console.log(colnms);
18496
18499
 
18497
18500
  var data = owner.data.getValidDataNF();
18498
18501
  $("ng-filter-button", owner.body).each((index,el) => {
@@ -307,7 +307,7 @@ class ngFilterButton extends HTMLElement
307
307
  //$(panel).offset({left: l, top: t});
308
308
  $(panel).css({left: l, top: t});
309
309
 
310
- panel.open(this.#owner, this);
310
+ panel.open(this);
311
311
  }
312
312
  };
313
313
  }
@@ -528,19 +528,13 @@ class ngFilterPanel extends HTMLElement
528
528
  this.style.display = 'none';
529
529
  };
530
530
 
531
- open = (owner, filterButton) => {
531
+ open = (filterButton) => {
532
532
 
533
- console.log(this.shadow.closest("nine-grid"));
533
+ const owner = this.shadow.closest("nine-grid");
534
534
 
535
535
  var col = filterButton.closest('th,td').dataset.col;
536
536
  this.col = col;
537
537
 
538
- //if (this.#target && this.#target.uuid == owner.uuid && this.#target.col == col && $(this).is(':visible')) {
539
- if (this.#target && this.#target.col == col && $(this).is(':visible')) {
540
- //$(this).hide();
541
- //return;
542
- }
543
-
544
538
  this.#target = {
545
539
  owner : owner,
546
540
  button : filterButton,
@@ -564,6 +558,12 @@ class ngFilterPanel extends HTMLElement
564
558
  $(owner.template).find(`[data-col=${col}]`).each((index,el) => {
565
559
  if (el.dataset.bind) colnms.push(el.dataset.bind);
566
560
  });
561
+
562
+ owner.activeTmpl.querySelectorAll(`[data-col=${col}]`).forEach(el => {
563
+ if (el.dataset.bind) colnms.push(el.dataset.bind);
564
+ });
565
+
566
+ console.log(colnms);
567
567
 
568
568
  var data = owner.data.getValidDataNF();
569
569
  $("ng-filter-button", owner.body).each((index,el) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.176.0",
4
+ "version": "6.177.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -307,7 +307,7 @@ class ngFilterButton extends HTMLElement
307
307
  //$(panel).offset({left: l, top: t});
308
308
  $(panel).css({left: l, top: t});
309
309
 
310
- panel.open(this.#owner, this);
310
+ panel.open(this);
311
311
  }
312
312
  };
313
313
  }
@@ -528,19 +528,13 @@ class ngFilterPanel extends HTMLElement
528
528
  this.style.display = 'none';
529
529
  };
530
530
 
531
- open = (owner, filterButton) => {
531
+ open = (filterButton) => {
532
532
 
533
- console.log(this.shadow.closest("nine-grid"));
533
+ const owner = this.shadow.closest("nine-grid");
534
534
 
535
535
  var col = filterButton.closest('th,td').dataset.col;
536
536
  this.col = col;
537
537
 
538
- //if (this.#target && this.#target.uuid == owner.uuid && this.#target.col == col && $(this).is(':visible')) {
539
- if (this.#target && this.#target.col == col && $(this).is(':visible')) {
540
- //$(this).hide();
541
- //return;
542
- }
543
-
544
538
  this.#target = {
545
539
  owner : owner,
546
540
  button : filterButton,
@@ -564,6 +558,12 @@ class ngFilterPanel extends HTMLElement
564
558
  $(owner.template).find(`[data-col=${col}]`).each((index,el) => {
565
559
  if (el.dataset.bind) colnms.push(el.dataset.bind);
566
560
  });
561
+
562
+ owner.activeTmpl.querySelectorAll(`[data-col=${col}]`).forEach(el => {
563
+ if (el.dataset.bind) colnms.push(el.dataset.bind);
564
+ });
565
+
566
+ console.log(colnms);
567
567
 
568
568
  var data = owner.data.getValidDataNF();
569
569
  $("ng-filter-button", owner.body).each((index,el) => {