ninegrid2 6.462.0 → 6.464.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 -4
- package/dist/bundle.esm.js +11 -4
- package/dist/utils/ngFiltering.js +11 -2
- package/package.json +1 -1
- package/src/utils/ngFiltering.js +11 -2
package/dist/bundle.cjs.js
CHANGED
|
@@ -23960,22 +23960,29 @@ class ngFiltering
|
|
|
23960
23960
|
? Object.fromEntries(Object.keys(oFilter[0]).map(key => [key, [...new Set(oFilter.map(item => item[key]))]]))
|
|
23961
23961
|
: oFilter;
|
|
23962
23962
|
|
|
23963
|
-
console.log(oFilter, jsonFilter);
|
|
23963
|
+
//console.log(oFilter, jsonFilter);
|
|
23964
23964
|
|
|
23965
23965
|
this.#owner.data.clearFilter();
|
|
23966
23966
|
|
|
23967
23967
|
Object.entries(jsonFilter).forEach(([key, arr]) => {
|
|
23968
|
+
|
|
23969
|
+
console.log();
|
|
23970
|
+
|
|
23968
23971
|
const idx = this.#owner.fields.indexOf(key);
|
|
23969
23972
|
|
|
23970
23973
|
// ✅ 숫자 판별 및 변환
|
|
23971
|
-
if (this.#owner.data.getValidData().some(o => typeof o.v[idx] === "number"))
|
|
23972
|
-
arr = arr.map(Number);
|
|
23973
|
-
}
|
|
23974
|
+
if (this.#owner.data.getValidData().some(o => typeof o.v[idx] === "number")) ;
|
|
23974
23975
|
|
|
23975
23976
|
// ✅ 필터 적용
|
|
23977
|
+
/**
|
|
23976
23978
|
this.#owner.data.getValidData()
|
|
23977
23979
|
.filter(m => arr.nineBinarySearch(m.v[idx] || '') < 0)
|
|
23978
23980
|
.forEach(m => { m.__ng.filtered = true; });
|
|
23981
|
+
*/
|
|
23982
|
+
|
|
23983
|
+
this.#owner.data.getValidData()
|
|
23984
|
+
.filter(m => arr.includes(m.v[idx] || '') < 0)
|
|
23985
|
+
.forEach(m => { m.__ng.filtered = true; });
|
|
23979
23986
|
});
|
|
23980
23987
|
|
|
23981
23988
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -23958,22 +23958,29 @@ class ngFiltering
|
|
|
23958
23958
|
? Object.fromEntries(Object.keys(oFilter[0]).map(key => [key, [...new Set(oFilter.map(item => item[key]))]]))
|
|
23959
23959
|
: oFilter;
|
|
23960
23960
|
|
|
23961
|
-
console.log(oFilter, jsonFilter);
|
|
23961
|
+
//console.log(oFilter, jsonFilter);
|
|
23962
23962
|
|
|
23963
23963
|
this.#owner.data.clearFilter();
|
|
23964
23964
|
|
|
23965
23965
|
Object.entries(jsonFilter).forEach(([key, arr]) => {
|
|
23966
|
+
|
|
23967
|
+
console.log();
|
|
23968
|
+
|
|
23966
23969
|
const idx = this.#owner.fields.indexOf(key);
|
|
23967
23970
|
|
|
23968
23971
|
// ✅ 숫자 판별 및 변환
|
|
23969
|
-
if (this.#owner.data.getValidData().some(o => typeof o.v[idx] === "number"))
|
|
23970
|
-
arr = arr.map(Number);
|
|
23971
|
-
}
|
|
23972
|
+
if (this.#owner.data.getValidData().some(o => typeof o.v[idx] === "number")) ;
|
|
23972
23973
|
|
|
23973
23974
|
// ✅ 필터 적용
|
|
23975
|
+
/**
|
|
23974
23976
|
this.#owner.data.getValidData()
|
|
23975
23977
|
.filter(m => arr.nineBinarySearch(m.v[idx] || '') < 0)
|
|
23976
23978
|
.forEach(m => { m.__ng.filtered = true; });
|
|
23979
|
+
*/
|
|
23980
|
+
|
|
23981
|
+
this.#owner.data.getValidData()
|
|
23982
|
+
.filter(m => arr.includes(m.v[idx] || '') < 0)
|
|
23983
|
+
.forEach(m => { m.__ng.filtered = true; });
|
|
23977
23984
|
});
|
|
23978
23985
|
|
|
23979
23986
|
|
|
@@ -98,22 +98,31 @@ export class ngFiltering
|
|
|
98
98
|
? Object.fromEntries(Object.keys(oFilter[0]).map(key => [key, [...new Set(oFilter.map(item => item[key]))]]))
|
|
99
99
|
: oFilter;
|
|
100
100
|
|
|
101
|
-
console.log(oFilter, jsonFilter);
|
|
101
|
+
//console.log(oFilter, jsonFilter);
|
|
102
102
|
|
|
103
103
|
this.#owner.data.clearFilter();
|
|
104
104
|
|
|
105
105
|
Object.entries(jsonFilter).forEach(([key, arr]) => {
|
|
106
|
+
|
|
107
|
+
console.log()
|
|
108
|
+
|
|
106
109
|
const idx = this.#owner.fields.indexOf(key);
|
|
107
110
|
|
|
108
111
|
// ✅ 숫자 판별 및 변환
|
|
109
112
|
if (this.#owner.data.getValidData().some(o => typeof o.v[idx] === "number")) {
|
|
110
|
-
arr = arr.map(Number);
|
|
113
|
+
//arr = arr.map(Number);
|
|
111
114
|
}
|
|
112
115
|
|
|
113
116
|
// ✅ 필터 적용
|
|
117
|
+
/**
|
|
114
118
|
this.#owner.data.getValidData()
|
|
115
119
|
.filter(m => arr.nineBinarySearch(m.v[idx] || '') < 0)
|
|
116
120
|
.forEach(m => { m.__ng.filtered = true; });
|
|
121
|
+
*/
|
|
122
|
+
|
|
123
|
+
this.#owner.data.getValidData()
|
|
124
|
+
.filter(m => arr.includes(m.v[idx] || '') < 0)
|
|
125
|
+
.forEach(m => { m.__ng.filtered = true; });
|
|
117
126
|
});
|
|
118
127
|
|
|
119
128
|
|
package/package.json
CHANGED
package/src/utils/ngFiltering.js
CHANGED
|
@@ -98,22 +98,31 @@ export class ngFiltering
|
|
|
98
98
|
? Object.fromEntries(Object.keys(oFilter[0]).map(key => [key, [...new Set(oFilter.map(item => item[key]))]]))
|
|
99
99
|
: oFilter;
|
|
100
100
|
|
|
101
|
-
console.log(oFilter, jsonFilter);
|
|
101
|
+
//console.log(oFilter, jsonFilter);
|
|
102
102
|
|
|
103
103
|
this.#owner.data.clearFilter();
|
|
104
104
|
|
|
105
105
|
Object.entries(jsonFilter).forEach(([key, arr]) => {
|
|
106
|
+
|
|
107
|
+
console.log()
|
|
108
|
+
|
|
106
109
|
const idx = this.#owner.fields.indexOf(key);
|
|
107
110
|
|
|
108
111
|
// ✅ 숫자 판별 및 변환
|
|
109
112
|
if (this.#owner.data.getValidData().some(o => typeof o.v[idx] === "number")) {
|
|
110
|
-
arr = arr.map(Number);
|
|
113
|
+
//arr = arr.map(Number);
|
|
111
114
|
}
|
|
112
115
|
|
|
113
116
|
// ✅ 필터 적용
|
|
117
|
+
/**
|
|
114
118
|
this.#owner.data.getValidData()
|
|
115
119
|
.filter(m => arr.nineBinarySearch(m.v[idx] || '') < 0)
|
|
116
120
|
.forEach(m => { m.__ng.filtered = true; });
|
|
121
|
+
*/
|
|
122
|
+
|
|
123
|
+
this.#owner.data.getValidData()
|
|
124
|
+
.filter(m => arr.includes(m.v[idx] || '') < 0)
|
|
125
|
+
.forEach(m => { m.__ng.filtered = true; });
|
|
117
126
|
});
|
|
118
127
|
|
|
119
128
|
|