ninegrid2 6.464.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.
@@ -23966,12 +23966,16 @@ class ngFiltering
23966
23966
 
23967
23967
  Object.entries(jsonFilter).forEach(([key, arr]) => {
23968
23968
 
23969
- console.log();
23969
+
23970
23970
 
23971
23971
  const idx = this.#owner.fields.indexOf(key);
23972
23972
 
23973
23973
  // ✅ 숫자 판별 및 변환
23974
- if (this.#owner.data.getValidData().some(o => typeof o.v[idx] === "number")) ;
23974
+ if (this.#owner.data.getValidData().some(o => typeof o.v[idx] === "number")) {
23975
+ arr = arr.map(Number);
23976
+ }
23977
+
23978
+ console.log(key, arr, idx);
23975
23979
 
23976
23980
  // ✅ 필터 적용
23977
23981
  /**
@@ -23981,7 +23985,7 @@ class ngFiltering
23981
23985
  */
23982
23986
 
23983
23987
  this.#owner.data.getValidData()
23984
- .filter(m => arr.includes(m.v[idx] || '') < 0)
23988
+ .filter(m => arr.includes(m.v[idx] || ''))
23985
23989
  .forEach(m => { m.__ng.filtered = true; });
23986
23990
  });
23987
23991
 
@@ -23964,12 +23964,16 @@ class ngFiltering
23964
23964
 
23965
23965
  Object.entries(jsonFilter).forEach(([key, arr]) => {
23966
23966
 
23967
- console.log();
23967
+
23968
23968
 
23969
23969
  const idx = this.#owner.fields.indexOf(key);
23970
23970
 
23971
23971
  // ✅ 숫자 판별 및 변환
23972
- if (this.#owner.data.getValidData().some(o => typeof o.v[idx] === "number")) ;
23972
+ if (this.#owner.data.getValidData().some(o => typeof o.v[idx] === "number")) {
23973
+ arr = arr.map(Number);
23974
+ }
23975
+
23976
+ console.log(key, arr, idx);
23973
23977
 
23974
23978
  // ✅ 필터 적용
23975
23979
  /**
@@ -23979,7 +23983,7 @@ class ngFiltering
23979
23983
  */
23980
23984
 
23981
23985
  this.#owner.data.getValidData()
23982
- .filter(m => arr.includes(m.v[idx] || '') < 0)
23986
+ .filter(m => arr.includes(m.v[idx] || ''))
23983
23987
  .forEach(m => { m.__ng.filtered = true; });
23984
23988
  });
23985
23989
 
@@ -104,15 +104,17 @@ export class ngFiltering
104
104
 
105
105
  Object.entries(jsonFilter).forEach(([key, arr]) => {
106
106
 
107
- console.log()
107
+
108
108
 
109
109
  const idx = this.#owner.fields.indexOf(key);
110
110
 
111
111
  // ✅ 숫자 판별 및 변환
112
112
  if (this.#owner.data.getValidData().some(o => typeof o.v[idx] === "number")) {
113
- //arr = arr.map(Number);
113
+ arr = arr.map(Number);
114
114
  }
115
115
 
116
+ console.log(key, arr, idx);
117
+
116
118
  // ✅ 필터 적용
117
119
  /**
118
120
  this.#owner.data.getValidData()
@@ -121,7 +123,7 @@ export class ngFiltering
121
123
  */
122
124
 
123
125
  this.#owner.data.getValidData()
124
- .filter(m => arr.includes(m.v[idx] || '') < 0)
126
+ .filter(m => arr.includes(m.v[idx] || ''))
125
127
  .forEach(m => { m.__ng.filtered = true; });
126
128
  });
127
129
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.464.0",
4
+ "version": "6.465.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -104,15 +104,17 @@ export class ngFiltering
104
104
 
105
105
  Object.entries(jsonFilter).forEach(([key, arr]) => {
106
106
 
107
- console.log()
107
+
108
108
 
109
109
  const idx = this.#owner.fields.indexOf(key);
110
110
 
111
111
  // ✅ 숫자 판별 및 변환
112
112
  if (this.#owner.data.getValidData().some(o => typeof o.v[idx] === "number")) {
113
- //arr = arr.map(Number);
113
+ arr = arr.map(Number);
114
114
  }
115
115
 
116
+ console.log(key, arr, idx);
117
+
116
118
  // ✅ 필터 적용
117
119
  /**
118
120
  this.#owner.data.getValidData()
@@ -121,7 +123,7 @@ export class ngFiltering
121
123
  */
122
124
 
123
125
  this.#owner.data.getValidData()
124
- .filter(m => arr.includes(m.v[idx] || '') < 0)
126
+ .filter(m => arr.includes(m.v[idx] || ''))
125
127
  .forEach(m => { m.__ng.filtered = true; });
126
128
  });
127
129