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.
- package/dist/bundle.cjs.js +11 -17
- package/dist/bundle.esm.js +11 -17
- package/dist/etc/ngFiltering.js +11 -17
- package/package.json +1 -1
- package/src/etc/ngFiltering.js +11 -17
package/dist/bundle.cjs.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|
18026
|
+
if (el.closest("tr").sectionRowIndex + el.rowSpan - 1 === lastRowIndex) {
|
|
18031
18027
|
|
|
18032
|
-
|
|
18033
|
-
|
|
18034
|
-
|
|
18035
|
-
|
|
18036
|
-
|
|
18037
|
-
|
|
18038
|
-
|
|
18039
|
-
|
|
18040
|
-
|
|
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
|
};
|
package/dist/bundle.esm.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|
18024
|
+
if (el.closest("tr").sectionRowIndex + el.rowSpan - 1 === lastRowIndex) {
|
|
18029
18025
|
|
|
18030
|
-
|
|
18031
|
-
|
|
18032
|
-
|
|
18033
|
-
|
|
18034
|
-
|
|
18035
|
-
|
|
18036
|
-
|
|
18037
|
-
|
|
18038
|
-
|
|
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
|
};
|
package/dist/etc/ngFiltering.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|
161
|
+
if (el.closest("tr").sectionRowIndex + el.rowSpan - 1 === lastRowIndex) {
|
|
166
162
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
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
package/src/etc/ngFiltering.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|
161
|
+
if (el.closest("tr").sectionRowIndex + el.rowSpan - 1 === lastRowIndex) {
|
|
166
162
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
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
|
};
|