ninegrid2 6.142.0 → 6.144.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 +18 -32
- package/dist/bundle.esm.js +18 -32
- package/dist/etc/ngFiltering.js +18 -32
- package/package.json +1 -1
- package/src/etc/ngFiltering.js +18 -32
package/dist/bundle.cjs.js
CHANGED
|
@@ -17866,7 +17866,7 @@ class ngFields
|
|
|
17866
17866
|
}
|
|
17867
17867
|
|
|
17868
17868
|
/**
|
|
17869
|
-
* button.
|
|
17869
|
+
* button.filterOptions = [{
|
|
17870
17870
|
* colnm: "userId",
|
|
17871
17871
|
* data: [],
|
|
17872
17872
|
* }]
|
|
@@ -17891,7 +17891,7 @@ class ngFiltering
|
|
|
17891
17891
|
this.#isFiltering = false;
|
|
17892
17892
|
this.#owner.data.clearFilter();
|
|
17893
17893
|
|
|
17894
|
-
this.#on();
|
|
17894
|
+
//this.#on();
|
|
17895
17895
|
};
|
|
17896
17896
|
|
|
17897
17897
|
isFiltering = () => {
|
|
@@ -18017,45 +18017,31 @@ class ngFiltering
|
|
|
18017
18017
|
return index;
|
|
18018
18018
|
};
|
|
18019
18019
|
|
|
18020
|
-
|
|
18021
|
-
|
|
18022
|
-
this.#isFiltering = true;
|
|
18023
|
-
|
|
18024
|
-
const lastRowIndex = this.#getLastRowIndex();
|
|
18025
|
-
|
|
18026
|
-
this.#owner.body.querySelectorAll(".ng-table thead th,.ng-table thead td").forEach((el) => {
|
|
18027
|
-
|
|
18028
|
-
if (el.closest("tr").sectionRowIndex + el.rowSpan - 1 === lastRowIndex) {
|
|
18029
|
-
|
|
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) {
|
|
18035
|
-
$(el).append($(`<ng-filter-button></ng-filter-button`));
|
|
18036
|
-
el.querySelector("ng-filter-button").colnms = colnms;
|
|
18037
|
-
}
|
|
18038
|
-
}
|
|
18039
|
-
//console.log(el.querySelector("ng-filter-button").colnms);
|
|
18040
|
-
});
|
|
18041
|
-
};
|
|
18020
|
+
|
|
18042
18021
|
#on = () => {
|
|
18043
18022
|
this.#isFiltering = true;
|
|
18044
18023
|
|
|
18045
18024
|
const lastRowIndex = this.#getLastRowIndex();
|
|
18046
18025
|
|
|
18047
|
-
this.#owner.body.querySelectorAll(".ng-table thead th, .ng-table thead td").forEach((
|
|
18048
|
-
if (
|
|
18049
|
-
let colnms = [];
|
|
18050
|
-
|
|
18051
|
-
this.#owner.activeTmpl.querySelectorAll(`[data-col="${
|
|
18052
|
-
if (
|
|
18026
|
+
this.#owner.body.querySelectorAll(".ng-table thead th, .ng-table thead td").forEach((td) => {
|
|
18027
|
+
if (td.closest("tr").sectionRowIndex + td.rowSpan - 1 === lastRowIndex) {
|
|
18028
|
+
//let colnms = [];
|
|
18029
|
+
const options = [];
|
|
18030
|
+
this.#owner.activeTmpl.querySelectorAll(`[data-col="${td.dataset.col}"]`).forEach((el) => {
|
|
18031
|
+
if (el.dataset.bind) {
|
|
18032
|
+
options.push({
|
|
18033
|
+
colnm: elem.dataset.bind,
|
|
18034
|
+
data: [],
|
|
18035
|
+
});
|
|
18036
|
+
}
|
|
18053
18037
|
});
|
|
18054
18038
|
|
|
18055
|
-
if (
|
|
18039
|
+
if (data.length > 0) {
|
|
18056
18040
|
const filterButton = document.createElement("ng-filter-button"); // ✅ `ng-filter-button` 생성
|
|
18057
18041
|
el.appendChild(filterButton);
|
|
18058
|
-
filterButton.
|
|
18042
|
+
filterButton.filterOptions = options; // ✅ 속성 설정
|
|
18043
|
+
|
|
18044
|
+
console.log(filterButton, filterButton.filterOptions);
|
|
18059
18045
|
}
|
|
18060
18046
|
}
|
|
18061
18047
|
});
|
package/dist/bundle.esm.js
CHANGED
|
@@ -17864,7 +17864,7 @@ class ngFields
|
|
|
17864
17864
|
}
|
|
17865
17865
|
|
|
17866
17866
|
/**
|
|
17867
|
-
* button.
|
|
17867
|
+
* button.filterOptions = [{
|
|
17868
17868
|
* colnm: "userId",
|
|
17869
17869
|
* data: [],
|
|
17870
17870
|
* }]
|
|
@@ -17889,7 +17889,7 @@ class ngFiltering
|
|
|
17889
17889
|
this.#isFiltering = false;
|
|
17890
17890
|
this.#owner.data.clearFilter();
|
|
17891
17891
|
|
|
17892
|
-
this.#on();
|
|
17892
|
+
//this.#on();
|
|
17893
17893
|
};
|
|
17894
17894
|
|
|
17895
17895
|
isFiltering = () => {
|
|
@@ -18015,45 +18015,31 @@ class ngFiltering
|
|
|
18015
18015
|
return index;
|
|
18016
18016
|
};
|
|
18017
18017
|
|
|
18018
|
-
|
|
18019
|
-
|
|
18020
|
-
this.#isFiltering = true;
|
|
18021
|
-
|
|
18022
|
-
const lastRowIndex = this.#getLastRowIndex();
|
|
18023
|
-
|
|
18024
|
-
this.#owner.body.querySelectorAll(".ng-table thead th,.ng-table thead td").forEach((el) => {
|
|
18025
|
-
|
|
18026
|
-
if (el.closest("tr").sectionRowIndex + el.rowSpan - 1 === lastRowIndex) {
|
|
18027
|
-
|
|
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
|
-
}
|
|
18037
|
-
//console.log(el.querySelector("ng-filter-button").colnms);
|
|
18038
|
-
});
|
|
18039
|
-
};
|
|
18018
|
+
|
|
18040
18019
|
#on = () => {
|
|
18041
18020
|
this.#isFiltering = true;
|
|
18042
18021
|
|
|
18043
18022
|
const lastRowIndex = this.#getLastRowIndex();
|
|
18044
18023
|
|
|
18045
|
-
this.#owner.body.querySelectorAll(".ng-table thead th, .ng-table thead td").forEach((
|
|
18046
|
-
if (
|
|
18047
|
-
let colnms = [];
|
|
18048
|
-
|
|
18049
|
-
this.#owner.activeTmpl.querySelectorAll(`[data-col="${
|
|
18050
|
-
if (
|
|
18024
|
+
this.#owner.body.querySelectorAll(".ng-table thead th, .ng-table thead td").forEach((td) => {
|
|
18025
|
+
if (td.closest("tr").sectionRowIndex + td.rowSpan - 1 === lastRowIndex) {
|
|
18026
|
+
//let colnms = [];
|
|
18027
|
+
const options = [];
|
|
18028
|
+
this.#owner.activeTmpl.querySelectorAll(`[data-col="${td.dataset.col}"]`).forEach((el) => {
|
|
18029
|
+
if (el.dataset.bind) {
|
|
18030
|
+
options.push({
|
|
18031
|
+
colnm: elem.dataset.bind,
|
|
18032
|
+
data: [],
|
|
18033
|
+
});
|
|
18034
|
+
}
|
|
18051
18035
|
});
|
|
18052
18036
|
|
|
18053
|
-
if (
|
|
18037
|
+
if (data.length > 0) {
|
|
18054
18038
|
const filterButton = document.createElement("ng-filter-button"); // ✅ `ng-filter-button` 생성
|
|
18055
18039
|
el.appendChild(filterButton);
|
|
18056
|
-
filterButton.
|
|
18040
|
+
filterButton.filterOptions = options; // ✅ 속성 설정
|
|
18041
|
+
|
|
18042
|
+
console.log(filterButton, filterButton.filterOptions);
|
|
18057
18043
|
}
|
|
18058
18044
|
}
|
|
18059
18045
|
});
|
package/dist/etc/ngFiltering.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ninegrid from "../index.js";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* button.
|
|
4
|
+
* button.filterOptions = [{
|
|
5
5
|
* colnm: "userId",
|
|
6
6
|
* data: [],
|
|
7
7
|
* }]
|
|
@@ -26,7 +26,7 @@ export class ngFiltering
|
|
|
26
26
|
this.#isFiltering = false;
|
|
27
27
|
this.#owner.data.clearFilter();
|
|
28
28
|
|
|
29
|
-
this.#on();
|
|
29
|
+
//this.#on();
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
isFiltering = () => {
|
|
@@ -152,45 +152,31 @@ export class ngFiltering
|
|
|
152
152
|
return index;
|
|
153
153
|
};
|
|
154
154
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
this.#isFiltering = true;
|
|
158
|
-
|
|
159
|
-
const lastRowIndex = this.#getLastRowIndex();
|
|
160
|
-
|
|
161
|
-
this.#owner.body.querySelectorAll(".ng-table thead th,.ng-table thead td").forEach((el) => {
|
|
162
|
-
|
|
163
|
-
if (el.closest("tr").sectionRowIndex + el.rowSpan - 1 === lastRowIndex) {
|
|
164
|
-
|
|
165
|
-
var colnms = [];
|
|
166
|
-
$(this.#owner.template).find(`[data-col=${el.dataset.col}]`).each((index,el) => {
|
|
167
|
-
if (el.dataset.bind) colnms.push(el.dataset.bind);
|
|
168
|
-
});
|
|
169
|
-
if (colnms.length != 0) {
|
|
170
|
-
$(el).append($(`<ng-filter-button></ng-filter-button`));
|
|
171
|
-
el.querySelector("ng-filter-button").colnms = colnms;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
//console.log(el.querySelector("ng-filter-button").colnms);
|
|
175
|
-
});
|
|
176
|
-
};
|
|
155
|
+
|
|
177
156
|
#on = () => {
|
|
178
157
|
this.#isFiltering = true;
|
|
179
158
|
|
|
180
159
|
const lastRowIndex = this.#getLastRowIndex();
|
|
181
160
|
|
|
182
|
-
this.#owner.body.querySelectorAll(".ng-table thead th, .ng-table thead td").forEach((
|
|
183
|
-
if (
|
|
184
|
-
let colnms = [];
|
|
185
|
-
|
|
186
|
-
this.#owner.activeTmpl.querySelectorAll(`[data-col="${
|
|
187
|
-
if (
|
|
161
|
+
this.#owner.body.querySelectorAll(".ng-table thead th, .ng-table thead td").forEach((td) => {
|
|
162
|
+
if (td.closest("tr").sectionRowIndex + td.rowSpan - 1 === lastRowIndex) {
|
|
163
|
+
//let colnms = [];
|
|
164
|
+
const options = [];
|
|
165
|
+
this.#owner.activeTmpl.querySelectorAll(`[data-col="${td.dataset.col}"]`).forEach((el) => {
|
|
166
|
+
if (el.dataset.bind) {
|
|
167
|
+
options.push({
|
|
168
|
+
colnm: elem.dataset.bind,
|
|
169
|
+
data: [],
|
|
170
|
+
});
|
|
171
|
+
}
|
|
188
172
|
});
|
|
189
173
|
|
|
190
|
-
if (
|
|
174
|
+
if (data.length > 0) {
|
|
191
175
|
const filterButton = document.createElement("ng-filter-button"); // ✅ `ng-filter-button` 생성
|
|
192
176
|
el.appendChild(filterButton);
|
|
193
|
-
filterButton.
|
|
177
|
+
filterButton.filterOptions = options; // ✅ 속성 설정
|
|
178
|
+
|
|
179
|
+
console.log(filterButton, filterButton.filterOptions);
|
|
194
180
|
}
|
|
195
181
|
}
|
|
196
182
|
});
|
package/package.json
CHANGED
package/src/etc/ngFiltering.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ninegrid from "../index.js";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* button.
|
|
4
|
+
* button.filterOptions = [{
|
|
5
5
|
* colnm: "userId",
|
|
6
6
|
* data: [],
|
|
7
7
|
* }]
|
|
@@ -26,7 +26,7 @@ export class ngFiltering
|
|
|
26
26
|
this.#isFiltering = false;
|
|
27
27
|
this.#owner.data.clearFilter();
|
|
28
28
|
|
|
29
|
-
this.#on();
|
|
29
|
+
//this.#on();
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
isFiltering = () => {
|
|
@@ -152,45 +152,31 @@ export class ngFiltering
|
|
|
152
152
|
return index;
|
|
153
153
|
};
|
|
154
154
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
this.#isFiltering = true;
|
|
158
|
-
|
|
159
|
-
const lastRowIndex = this.#getLastRowIndex();
|
|
160
|
-
|
|
161
|
-
this.#owner.body.querySelectorAll(".ng-table thead th,.ng-table thead td").forEach((el) => {
|
|
162
|
-
|
|
163
|
-
if (el.closest("tr").sectionRowIndex + el.rowSpan - 1 === lastRowIndex) {
|
|
164
|
-
|
|
165
|
-
var colnms = [];
|
|
166
|
-
$(this.#owner.template).find(`[data-col=${el.dataset.col}]`).each((index,el) => {
|
|
167
|
-
if (el.dataset.bind) colnms.push(el.dataset.bind);
|
|
168
|
-
});
|
|
169
|
-
if (colnms.length != 0) {
|
|
170
|
-
$(el).append($(`<ng-filter-button></ng-filter-button`));
|
|
171
|
-
el.querySelector("ng-filter-button").colnms = colnms;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
//console.log(el.querySelector("ng-filter-button").colnms);
|
|
175
|
-
});
|
|
176
|
-
};
|
|
155
|
+
|
|
177
156
|
#on = () => {
|
|
178
157
|
this.#isFiltering = true;
|
|
179
158
|
|
|
180
159
|
const lastRowIndex = this.#getLastRowIndex();
|
|
181
160
|
|
|
182
|
-
this.#owner.body.querySelectorAll(".ng-table thead th, .ng-table thead td").forEach((
|
|
183
|
-
if (
|
|
184
|
-
let colnms = [];
|
|
185
|
-
|
|
186
|
-
this.#owner.activeTmpl.querySelectorAll(`[data-col="${
|
|
187
|
-
if (
|
|
161
|
+
this.#owner.body.querySelectorAll(".ng-table thead th, .ng-table thead td").forEach((td) => {
|
|
162
|
+
if (td.closest("tr").sectionRowIndex + td.rowSpan - 1 === lastRowIndex) {
|
|
163
|
+
//let colnms = [];
|
|
164
|
+
const options = [];
|
|
165
|
+
this.#owner.activeTmpl.querySelectorAll(`[data-col="${td.dataset.col}"]`).forEach((el) => {
|
|
166
|
+
if (el.dataset.bind) {
|
|
167
|
+
options.push({
|
|
168
|
+
colnm: elem.dataset.bind,
|
|
169
|
+
data: [],
|
|
170
|
+
});
|
|
171
|
+
}
|
|
188
172
|
});
|
|
189
173
|
|
|
190
|
-
if (
|
|
174
|
+
if (data.length > 0) {
|
|
191
175
|
const filterButton = document.createElement("ng-filter-button"); // ✅ `ng-filter-button` 생성
|
|
192
176
|
el.appendChild(filterButton);
|
|
193
|
-
filterButton.
|
|
177
|
+
filterButton.filterOptions = options; // ✅ 속성 설정
|
|
178
|
+
|
|
179
|
+
console.log(filterButton, filterButton.filterOptions);
|
|
194
180
|
}
|
|
195
181
|
}
|
|
196
182
|
});
|