ninegrid2 6.134.0 → 6.135.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.
- package/dist/bundle.cjs.js +14 -4
- package/dist/bundle.esm.js +14 -4
- package/dist/etc/ngFiltering.js +14 -4
- package/package.json +1 -1
- package/src/etc/ngFiltering.js +14 -4
package/dist/bundle.cjs.js
CHANGED
|
@@ -18005,6 +18005,17 @@ class ngFiltering
|
|
|
18005
18005
|
this.#owner.paging.reset();
|
|
18006
18006
|
};
|
|
18007
18007
|
|
|
18008
|
+
#getLastRowIndex = (v = "thead") => {
|
|
18009
|
+
|
|
18010
|
+
console.log(v);
|
|
18011
|
+
|
|
18012
|
+
let index = 0;
|
|
18013
|
+
this.#owner.body.querySelectorAll(`.ng-table ${v}`).forEach((el) => {
|
|
18014
|
+
index = Math.max(el.rows.length - 1, index);
|
|
18015
|
+
});
|
|
18016
|
+
|
|
18017
|
+
return index;
|
|
18018
|
+
};
|
|
18008
18019
|
|
|
18009
18020
|
#on = () => {
|
|
18010
18021
|
|
|
@@ -18012,10 +18023,9 @@ class ngFiltering
|
|
|
18012
18023
|
|
|
18013
18024
|
this.#isFiltering = true;
|
|
18014
18025
|
|
|
18015
|
-
|
|
18016
|
-
|
|
18017
|
-
|
|
18018
|
-
});
|
|
18026
|
+
const lastRowIndex = this.#getLastRowIndex("thead");
|
|
18027
|
+
|
|
18028
|
+
console.log(lastRowIndex);
|
|
18019
18029
|
|
|
18020
18030
|
$(".ng-table thead th,.ng-table thead td", this.#owner.body).each((index,el) => {
|
|
18021
18031
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -18003,6 +18003,17 @@ class ngFiltering
|
|
|
18003
18003
|
this.#owner.paging.reset();
|
|
18004
18004
|
};
|
|
18005
18005
|
|
|
18006
|
+
#getLastRowIndex = (v = "thead") => {
|
|
18007
|
+
|
|
18008
|
+
console.log(v);
|
|
18009
|
+
|
|
18010
|
+
let index = 0;
|
|
18011
|
+
this.#owner.body.querySelectorAll(`.ng-table ${v}`).forEach((el) => {
|
|
18012
|
+
index = Math.max(el.rows.length - 1, index);
|
|
18013
|
+
});
|
|
18014
|
+
|
|
18015
|
+
return index;
|
|
18016
|
+
};
|
|
18006
18017
|
|
|
18007
18018
|
#on = () => {
|
|
18008
18019
|
|
|
@@ -18010,10 +18021,9 @@ class ngFiltering
|
|
|
18010
18021
|
|
|
18011
18022
|
this.#isFiltering = true;
|
|
18012
18023
|
|
|
18013
|
-
|
|
18014
|
-
|
|
18015
|
-
|
|
18016
|
-
});
|
|
18024
|
+
const lastRowIndex = this.#getLastRowIndex("thead");
|
|
18025
|
+
|
|
18026
|
+
console.log(lastRowIndex);
|
|
18017
18027
|
|
|
18018
18028
|
$(".ng-table thead th,.ng-table thead td", this.#owner.body).each((index,el) => {
|
|
18019
18029
|
|
package/dist/etc/ngFiltering.js
CHANGED
|
@@ -140,6 +140,17 @@ export class ngFiltering
|
|
|
140
140
|
this.#owner.paging.reset();
|
|
141
141
|
};
|
|
142
142
|
|
|
143
|
+
#getLastRowIndex = (v = "thead") => {
|
|
144
|
+
|
|
145
|
+
console.log(v);
|
|
146
|
+
|
|
147
|
+
let index = 0;
|
|
148
|
+
this.#owner.body.querySelectorAll(`.ng-table ${v}`).forEach((el) => {
|
|
149
|
+
index = Math.max(el.rows.length - 1, index);
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
return index;
|
|
153
|
+
};
|
|
143
154
|
|
|
144
155
|
#on = () => {
|
|
145
156
|
|
|
@@ -147,10 +158,9 @@ export class ngFiltering
|
|
|
147
158
|
|
|
148
159
|
this.#isFiltering = true;
|
|
149
160
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
});
|
|
161
|
+
const lastRowIndex = this.#getLastRowIndex("thead");
|
|
162
|
+
|
|
163
|
+
console.log(lastRowIndex);
|
|
154
164
|
|
|
155
165
|
$(".ng-table thead th,.ng-table thead td", this.#owner.body).each((index,el) => {
|
|
156
166
|
|
package/package.json
CHANGED
package/src/etc/ngFiltering.js
CHANGED
|
@@ -140,6 +140,17 @@ export class ngFiltering
|
|
|
140
140
|
this.#owner.paging.reset();
|
|
141
141
|
};
|
|
142
142
|
|
|
143
|
+
#getLastRowIndex = (v = "thead") => {
|
|
144
|
+
|
|
145
|
+
console.log(v);
|
|
146
|
+
|
|
147
|
+
let index = 0;
|
|
148
|
+
this.#owner.body.querySelectorAll(`.ng-table ${v}`).forEach((el) => {
|
|
149
|
+
index = Math.max(el.rows.length - 1, index);
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
return index;
|
|
153
|
+
};
|
|
143
154
|
|
|
144
155
|
#on = () => {
|
|
145
156
|
|
|
@@ -147,10 +158,9 @@ export class ngFiltering
|
|
|
147
158
|
|
|
148
159
|
this.#isFiltering = true;
|
|
149
160
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
});
|
|
161
|
+
const lastRowIndex = this.#getLastRowIndex("thead");
|
|
162
|
+
|
|
163
|
+
console.log(lastRowIndex);
|
|
154
164
|
|
|
155
165
|
$(".ng-table thead th,.ng-table thead td", this.#owner.body).each((index,el) => {
|
|
156
166
|
|