ninegrid2 6.464.0 → 6.466.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
- const idx = this.#owner.fields.indexOf(key);
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
  /**
@@ -23980,8 +23984,10 @@ class ngFiltering
23980
23984
  .forEach(m => { m.__ng.filtered = true; });
23981
23985
  */
23982
23986
 
23987
+ console.log(this.#owner.data.getValidData(), this.#owner.data.getValidData().filter(m => arr.includes(m.v[idx] || '')));
23988
+
23983
23989
  this.#owner.data.getValidData()
23984
- .filter(m => arr.includes(m.v[idx] || '') < 0)
23990
+ .filter(m => arr.includes(m.v[idx] || ''))
23985
23991
  .forEach(m => { m.__ng.filtered = true; });
23986
23992
  });
23987
23993
 
@@ -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
- const idx = this.#owner.fields.indexOf(key);
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
  /**
@@ -23978,8 +23982,10 @@ class ngFiltering
23978
23982
  .forEach(m => { m.__ng.filtered = true; });
23979
23983
  */
23980
23984
 
23985
+ console.log(this.#owner.data.getValidData(), this.#owner.data.getValidData().filter(m => arr.includes(m.v[idx] || '')));
23986
+
23981
23987
  this.#owner.data.getValidData()
23982
- .filter(m => arr.includes(m.v[idx] || '') < 0)
23988
+ .filter(m => arr.includes(m.v[idx] || ''))
23983
23989
  .forEach(m => { m.__ng.filtered = true; });
23984
23990
  });
23985
23991
 
@@ -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
- const idx = this.#owner.fields.indexOf(key);
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()
@@ -120,8 +122,10 @@ export class ngFiltering
120
122
  .forEach(m => { m.__ng.filtered = true; });
121
123
  */
122
124
 
125
+ console.log(this.#owner.data.getValidData(), this.#owner.data.getValidData().filter(m => arr.includes(m.v[idx] || '')));
126
+
123
127
  this.#owner.data.getValidData()
124
- .filter(m => arr.includes(m.v[idx] || '') < 0)
128
+ .filter(m => arr.includes(m.v[idx] || ''))
125
129
  .forEach(m => { m.__ng.filtered = true; });
126
130
  });
127
131
 
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.466.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
- const idx = this.#owner.fields.indexOf(key);
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()
@@ -120,8 +122,10 @@ export class ngFiltering
120
122
  .forEach(m => { m.__ng.filtered = true; });
121
123
  */
122
124
 
125
+ console.log(this.#owner.data.getValidData(), this.#owner.data.getValidData().filter(m => arr.includes(m.v[idx] || '')));
126
+
123
127
  this.#owner.data.getValidData()
124
- .filter(m => arr.includes(m.v[idx] || '') < 0)
128
+ .filter(m => arr.includes(m.v[idx] || ''))
125
129
  .forEach(m => { m.__ng.filtered = true; });
126
130
  });
127
131