ninegrid2 6.462.0 → 6.465.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 +12 -1
- package/dist/bundle.esm.js +12 -1
- package/dist/utils/ngFiltering.js +12 -1
- package/package.json +1 -1
- package/src/utils/ngFiltering.js +12 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -23960,11 +23960,14 @@ 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
|
+
|
|
23970
|
+
|
|
23968
23971
|
const idx = this.#owner.fields.indexOf(key);
|
|
23969
23972
|
|
|
23970
23973
|
// ✅ 숫자 판별 및 변환
|
|
@@ -23972,10 +23975,18 @@ class ngFiltering
|
|
|
23972
23975
|
arr = arr.map(Number);
|
|
23973
23976
|
}
|
|
23974
23977
|
|
|
23978
|
+
console.log(key, arr, idx);
|
|
23979
|
+
|
|
23975
23980
|
// ✅ 필터 적용
|
|
23981
|
+
/**
|
|
23976
23982
|
this.#owner.data.getValidData()
|
|
23977
23983
|
.filter(m => arr.nineBinarySearch(m.v[idx] || '') < 0)
|
|
23978
23984
|
.forEach(m => { m.__ng.filtered = true; });
|
|
23985
|
+
*/
|
|
23986
|
+
|
|
23987
|
+
this.#owner.data.getValidData()
|
|
23988
|
+
.filter(m => arr.includes(m.v[idx] || ''))
|
|
23989
|
+
.forEach(m => { m.__ng.filtered = true; });
|
|
23979
23990
|
});
|
|
23980
23991
|
|
|
23981
23992
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -23958,11 +23958,14 @@ 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
|
+
|
|
23968
|
+
|
|
23966
23969
|
const idx = this.#owner.fields.indexOf(key);
|
|
23967
23970
|
|
|
23968
23971
|
// ✅ 숫자 판별 및 변환
|
|
@@ -23970,10 +23973,18 @@ class ngFiltering
|
|
|
23970
23973
|
arr = arr.map(Number);
|
|
23971
23974
|
}
|
|
23972
23975
|
|
|
23976
|
+
console.log(key, arr, idx);
|
|
23977
|
+
|
|
23973
23978
|
// ✅ 필터 적용
|
|
23979
|
+
/**
|
|
23974
23980
|
this.#owner.data.getValidData()
|
|
23975
23981
|
.filter(m => arr.nineBinarySearch(m.v[idx] || '') < 0)
|
|
23976
23982
|
.forEach(m => { m.__ng.filtered = true; });
|
|
23983
|
+
*/
|
|
23984
|
+
|
|
23985
|
+
this.#owner.data.getValidData()
|
|
23986
|
+
.filter(m => arr.includes(m.v[idx] || ''))
|
|
23987
|
+
.forEach(m => { m.__ng.filtered = true; });
|
|
23977
23988
|
});
|
|
23978
23989
|
|
|
23979
23990
|
|
|
@@ -98,11 +98,14 @@ 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
|
+
|
|
108
|
+
|
|
106
109
|
const idx = this.#owner.fields.indexOf(key);
|
|
107
110
|
|
|
108
111
|
// ✅ 숫자 판별 및 변환
|
|
@@ -110,10 +113,18 @@ export class ngFiltering
|
|
|
110
113
|
arr = arr.map(Number);
|
|
111
114
|
}
|
|
112
115
|
|
|
116
|
+
console.log(key, arr, idx);
|
|
117
|
+
|
|
113
118
|
// ✅ 필터 적용
|
|
119
|
+
/**
|
|
114
120
|
this.#owner.data.getValidData()
|
|
115
121
|
.filter(m => arr.nineBinarySearch(m.v[idx] || '') < 0)
|
|
116
122
|
.forEach(m => { m.__ng.filtered = true; });
|
|
123
|
+
*/
|
|
124
|
+
|
|
125
|
+
this.#owner.data.getValidData()
|
|
126
|
+
.filter(m => arr.includes(m.v[idx] || ''))
|
|
127
|
+
.forEach(m => { m.__ng.filtered = true; });
|
|
117
128
|
});
|
|
118
129
|
|
|
119
130
|
|
package/package.json
CHANGED
package/src/utils/ngFiltering.js
CHANGED
|
@@ -98,11 +98,14 @@ 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
|
+
|
|
108
|
+
|
|
106
109
|
const idx = this.#owner.fields.indexOf(key);
|
|
107
110
|
|
|
108
111
|
// ✅ 숫자 판별 및 변환
|
|
@@ -110,10 +113,18 @@ export class ngFiltering
|
|
|
110
113
|
arr = arr.map(Number);
|
|
111
114
|
}
|
|
112
115
|
|
|
116
|
+
console.log(key, arr, idx);
|
|
117
|
+
|
|
113
118
|
// ✅ 필터 적용
|
|
119
|
+
/**
|
|
114
120
|
this.#owner.data.getValidData()
|
|
115
121
|
.filter(m => arr.nineBinarySearch(m.v[idx] || '') < 0)
|
|
116
122
|
.forEach(m => { m.__ng.filtered = true; });
|
|
123
|
+
*/
|
|
124
|
+
|
|
125
|
+
this.#owner.data.getValidData()
|
|
126
|
+
.filter(m => arr.includes(m.v[idx] || ''))
|
|
127
|
+
.forEach(m => { m.__ng.filtered = true; });
|
|
117
128
|
});
|
|
118
129
|
|
|
119
130
|
|