ninegrid2 6.137.0 → 6.139.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.
@@ -18015,7 +18015,7 @@ class ngFiltering
18015
18015
  return index;
18016
18016
  };
18017
18017
 
18018
- #on = () => {
18018
+ #on_bak = () => {
18019
18019
 
18020
18020
  this.#isFiltering = true;
18021
18021
 
@@ -18037,6 +18037,28 @@ class ngFiltering
18037
18037
  //console.log(el.querySelector("ng-filter-button").colnms);
18038
18038
  });
18039
18039
  };
18040
+ #on = () => {
18041
+ this.#isFiltering = true;
18042
+
18043
+ const lastRowIndex = this.#getLastRowIndex();
18044
+
18045
+ this.#owner.body.querySelectorAll(".ng-table thead th, .ng-table thead td").forEach((el) => {
18046
+ if (el.closest("tr").sectionRowIndex + el.rowSpan - 1 === lastRowIndex) {
18047
+ let colnms = [];
18048
+
18049
+ this.#owner.template.querySelectorAll(`[data-col="${el.dataset.col}"]`).forEach((elem) => {
18050
+ if (elem.dataset.bind) colnms.push(elem.dataset.bind);
18051
+ });
18052
+
18053
+ if (colnms.length !== 0) {
18054
+ const filterButton = document.createElement("ng-filter-button"); // ✅ `ng-filter-button` 생성
18055
+ el.appendChild(filterButton);
18056
+ filterButton.colnms = colnms; // ✅ 속성 설정
18057
+ }
18058
+ }
18059
+ });
18060
+ };
18061
+
18040
18062
  off = () => {
18041
18063
  this.#isFiltering = false;
18042
18064
  $(".ng-table ng-filter-button", this.#owner.body).remove();
@@ -18013,7 +18013,7 @@ class ngFiltering
18013
18013
  return index;
18014
18014
  };
18015
18015
 
18016
- #on = () => {
18016
+ #on_bak = () => {
18017
18017
 
18018
18018
  this.#isFiltering = true;
18019
18019
 
@@ -18035,6 +18035,28 @@ class ngFiltering
18035
18035
  //console.log(el.querySelector("ng-filter-button").colnms);
18036
18036
  });
18037
18037
  };
18038
+ #on = () => {
18039
+ this.#isFiltering = true;
18040
+
18041
+ const lastRowIndex = this.#getLastRowIndex();
18042
+
18043
+ this.#owner.body.querySelectorAll(".ng-table thead th, .ng-table thead td").forEach((el) => {
18044
+ if (el.closest("tr").sectionRowIndex + el.rowSpan - 1 === lastRowIndex) {
18045
+ let colnms = [];
18046
+
18047
+ this.#owner.template.querySelectorAll(`[data-col="${el.dataset.col}"]`).forEach((elem) => {
18048
+ if (elem.dataset.bind) colnms.push(elem.dataset.bind);
18049
+ });
18050
+
18051
+ if (colnms.length !== 0) {
18052
+ const filterButton = document.createElement("ng-filter-button"); // ✅ `ng-filter-button` 생성
18053
+ el.appendChild(filterButton);
18054
+ filterButton.colnms = colnms; // ✅ 속성 설정
18055
+ }
18056
+ }
18057
+ });
18058
+ };
18059
+
18038
18060
  off = () => {
18039
18061
  this.#isFiltering = false;
18040
18062
  $(".ng-table ng-filter-button", this.#owner.body).remove();
@@ -150,7 +150,7 @@ export class ngFiltering
150
150
  return index;
151
151
  };
152
152
 
153
- #on = () => {
153
+ #on_bak = () => {
154
154
 
155
155
  this.#isFiltering = true;
156
156
 
@@ -172,6 +172,28 @@ export class ngFiltering
172
172
  //console.log(el.querySelector("ng-filter-button").colnms);
173
173
  });
174
174
  };
175
+ #on = () => {
176
+ this.#isFiltering = true;
177
+
178
+ const lastRowIndex = this.#getLastRowIndex();
179
+
180
+ this.#owner.body.querySelectorAll(".ng-table thead th, .ng-table thead td").forEach((el) => {
181
+ if (el.closest("tr").sectionRowIndex + el.rowSpan - 1 === lastRowIndex) {
182
+ let colnms = [];
183
+
184
+ this.#owner.template.querySelectorAll(`[data-col="${el.dataset.col}"]`).forEach((elem) => {
185
+ if (elem.dataset.bind) colnms.push(elem.dataset.bind);
186
+ });
187
+
188
+ if (colnms.length !== 0) {
189
+ const filterButton = document.createElement("ng-filter-button"); // ✅ `ng-filter-button` 생성
190
+ el.appendChild(filterButton);
191
+ filterButton.colnms = colnms; // ✅ 속성 설정
192
+ }
193
+ }
194
+ });
195
+ };
196
+
175
197
  off = () => {
176
198
  this.#isFiltering = false;
177
199
  $(".ng-table ng-filter-button", this.#owner.body).remove();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.137.0",
4
+ "version": "6.139.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -150,7 +150,7 @@ export class ngFiltering
150
150
  return index;
151
151
  };
152
152
 
153
- #on = () => {
153
+ #on_bak = () => {
154
154
 
155
155
  this.#isFiltering = true;
156
156
 
@@ -172,6 +172,28 @@ export class ngFiltering
172
172
  //console.log(el.querySelector("ng-filter-button").colnms);
173
173
  });
174
174
  };
175
+ #on = () => {
176
+ this.#isFiltering = true;
177
+
178
+ const lastRowIndex = this.#getLastRowIndex();
179
+
180
+ this.#owner.body.querySelectorAll(".ng-table thead th, .ng-table thead td").forEach((el) => {
181
+ if (el.closest("tr").sectionRowIndex + el.rowSpan - 1 === lastRowIndex) {
182
+ let colnms = [];
183
+
184
+ this.#owner.template.querySelectorAll(`[data-col="${el.dataset.col}"]`).forEach((elem) => {
185
+ if (elem.dataset.bind) colnms.push(elem.dataset.bind);
186
+ });
187
+
188
+ if (colnms.length !== 0) {
189
+ const filterButton = document.createElement("ng-filter-button"); // ✅ `ng-filter-button` 생성
190
+ el.appendChild(filterButton);
191
+ filterButton.colnms = colnms; // ✅ 속성 설정
192
+ }
193
+ }
194
+ });
195
+ };
196
+
175
197
  off = () => {
176
198
  this.#isFiltering = false;
177
199
  $(".ng-table ng-filter-button", this.#owner.body).remove();