ninegrid2 6.136.0 → 6.137.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.
@@ -18017,29 +18017,23 @@ class ngFiltering
18017
18017
 
18018
18018
  #on = () => {
18019
18019
 
18020
- console.log("onnnnnnn");
18021
-
18022
18020
  this.#isFiltering = true;
18023
18021
 
18024
18022
  const lastRowIndex = this.#getLastRowIndex();
18025
18023
 
18026
- console.log(lastRowIndex);
18027
-
18028
- $(".ng-table thead th,.ng-table thead td", this.#owner.body).each((index,el) => {
18024
+ this.#owner.body.querySelectorAll(".ng-table thead th,.ng-table thead td").forEach((el) => {
18029
18025
 
18030
- if (el.closest("tr").sectionRowIndex + el.rowSpan - 1 != lastRowIndex) return true;
18026
+ if (el.closest("tr").sectionRowIndex + el.rowSpan - 1 === lastRowIndex) {
18031
18027
 
18032
- var colnms = [];
18033
- $(this.#owner.template).find(`[data-col=${el.dataset.col}]`).each((index,el) => {
18034
- if (el.dataset.bind) colnms.push(el.dataset.bind);
18035
- });
18036
- if (colnms.length == 0) return true;
18037
-
18038
- //console.log(colnms);
18039
-
18040
- $(el).append($(`<ng-filter-button></ng-filter-button`));
18041
- el.querySelector("ng-filter-button").colnms = colnms;
18042
-
18028
+ var colnms = [];
18029
+ $(this.#owner.template).find(`[data-col=${el.dataset.col}]`).each((index,el) => {
18030
+ if (el.dataset.bind) colnms.push(el.dataset.bind);
18031
+ });
18032
+ if (colnms.length != 0) {
18033
+ $(el).append($(`<ng-filter-button></ng-filter-button`));
18034
+ el.querySelector("ng-filter-button").colnms = colnms;
18035
+ }
18036
+ }
18043
18037
  //console.log(el.querySelector("ng-filter-button").colnms);
18044
18038
  });
18045
18039
  };
@@ -18015,29 +18015,23 @@ class ngFiltering
18015
18015
 
18016
18016
  #on = () => {
18017
18017
 
18018
- console.log("onnnnnnn");
18019
-
18020
18018
  this.#isFiltering = true;
18021
18019
 
18022
18020
  const lastRowIndex = this.#getLastRowIndex();
18023
18021
 
18024
- console.log(lastRowIndex);
18025
-
18026
- $(".ng-table thead th,.ng-table thead td", this.#owner.body).each((index,el) => {
18022
+ this.#owner.body.querySelectorAll(".ng-table thead th,.ng-table thead td").forEach((el) => {
18027
18023
 
18028
- if (el.closest("tr").sectionRowIndex + el.rowSpan - 1 != lastRowIndex) return true;
18024
+ if (el.closest("tr").sectionRowIndex + el.rowSpan - 1 === lastRowIndex) {
18029
18025
 
18030
- var colnms = [];
18031
- $(this.#owner.template).find(`[data-col=${el.dataset.col}]`).each((index,el) => {
18032
- if (el.dataset.bind) colnms.push(el.dataset.bind);
18033
- });
18034
- if (colnms.length == 0) return true;
18035
-
18036
- //console.log(colnms);
18037
-
18038
- $(el).append($(`<ng-filter-button></ng-filter-button`));
18039
- el.querySelector("ng-filter-button").colnms = colnms;
18040
-
18026
+ var colnms = [];
18027
+ $(this.#owner.template).find(`[data-col=${el.dataset.col}]`).each((index,el) => {
18028
+ if (el.dataset.bind) colnms.push(el.dataset.bind);
18029
+ });
18030
+ if (colnms.length != 0) {
18031
+ $(el).append($(`<ng-filter-button></ng-filter-button`));
18032
+ el.querySelector("ng-filter-button").colnms = colnms;
18033
+ }
18034
+ }
18041
18035
  //console.log(el.querySelector("ng-filter-button").colnms);
18042
18036
  });
18043
18037
  };
@@ -152,29 +152,23 @@ export class ngFiltering
152
152
 
153
153
  #on = () => {
154
154
 
155
- console.log("onnnnnnn");
156
-
157
155
  this.#isFiltering = true;
158
156
 
159
157
  const lastRowIndex = this.#getLastRowIndex();
160
158
 
161
- console.log(lastRowIndex);
162
-
163
- $(".ng-table thead th,.ng-table thead td", this.#owner.body).each((index,el) => {
159
+ this.#owner.body.querySelectorAll(".ng-table thead th,.ng-table thead td").forEach((el) => {
164
160
 
165
- if (el.closest("tr").sectionRowIndex + el.rowSpan - 1 != lastRowIndex) return true;
161
+ if (el.closest("tr").sectionRowIndex + el.rowSpan - 1 === lastRowIndex) {
166
162
 
167
- var colnms = [];
168
- $(this.#owner.template).find(`[data-col=${el.dataset.col}]`).each((index,el) => {
169
- if (el.dataset.bind) colnms.push(el.dataset.bind);
170
- });
171
- if (colnms.length == 0) return true;
172
-
173
- //console.log(colnms);
174
-
175
- $(el).append($(`<ng-filter-button></ng-filter-button`));
176
- el.querySelector("ng-filter-button").colnms = colnms;
177
-
163
+ var colnms = [];
164
+ $(this.#owner.template).find(`[data-col=${el.dataset.col}]`).each((index,el) => {
165
+ if (el.dataset.bind) colnms.push(el.dataset.bind);
166
+ });
167
+ if (colnms.length != 0) {
168
+ $(el).append($(`<ng-filter-button></ng-filter-button`));
169
+ el.querySelector("ng-filter-button").colnms = colnms;
170
+ }
171
+ }
178
172
  //console.log(el.querySelector("ng-filter-button").colnms);
179
173
  });
180
174
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.136.0",
4
+ "version": "6.137.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -152,29 +152,23 @@ export class ngFiltering
152
152
 
153
153
  #on = () => {
154
154
 
155
- console.log("onnnnnnn");
156
-
157
155
  this.#isFiltering = true;
158
156
 
159
157
  const lastRowIndex = this.#getLastRowIndex();
160
158
 
161
- console.log(lastRowIndex);
162
-
163
- $(".ng-table thead th,.ng-table thead td", this.#owner.body).each((index,el) => {
159
+ this.#owner.body.querySelectorAll(".ng-table thead th,.ng-table thead td").forEach((el) => {
164
160
 
165
- if (el.closest("tr").sectionRowIndex + el.rowSpan - 1 != lastRowIndex) return true;
161
+ if (el.closest("tr").sectionRowIndex + el.rowSpan - 1 === lastRowIndex) {
166
162
 
167
- var colnms = [];
168
- $(this.#owner.template).find(`[data-col=${el.dataset.col}]`).each((index,el) => {
169
- if (el.dataset.bind) colnms.push(el.dataset.bind);
170
- });
171
- if (colnms.length == 0) return true;
172
-
173
- //console.log(colnms);
174
-
175
- $(el).append($(`<ng-filter-button></ng-filter-button`));
176
- el.querySelector("ng-filter-button").colnms = colnms;
177
-
163
+ var colnms = [];
164
+ $(this.#owner.template).find(`[data-col=${el.dataset.col}]`).each((index,el) => {
165
+ if (el.dataset.bind) colnms.push(el.dataset.bind);
166
+ });
167
+ if (colnms.length != 0) {
168
+ $(el).append($(`<ng-filter-button></ng-filter-button`));
169
+ el.querySelector("ng-filter-button").colnms = colnms;
170
+ }
171
+ }
178
172
  //console.log(el.querySelector("ng-filter-button").colnms);
179
173
  });
180
174
  };