ninegrid2 6.461.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/ai/aiMessage.js +0 -7
- package/dist/bundle.cjs.js +12 -10
- package/dist/bundle.esm.js +12 -10
- package/dist/utils/ngFiltering.js +12 -1
- package/package.json +1 -1
- package/src/ai/aiMessage.js +0 -7
- package/src/utils/ngFiltering.js +12 -1
package/dist/ai/aiMessage.js
CHANGED
|
@@ -53,16 +53,9 @@ class aiMessage extends HTMLElement
|
|
|
53
53
|
if (this.#unique) {
|
|
54
54
|
const grd = document.querySelector("nine-grid");
|
|
55
55
|
|
|
56
|
-
console.log(this.#data.map(item =>
|
|
57
|
-
Object.fromEntries(this.#unique.map(key => [key, item[key]]))
|
|
58
|
-
));
|
|
59
|
-
|
|
60
56
|
grd.filtering.set(this.#data.map(item =>
|
|
61
57
|
Object.fromEntries(this.#unique.map(key => [key, item[key]]))
|
|
62
58
|
));
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
59
|
}
|
|
67
60
|
});
|
|
68
61
|
|
package/dist/bundle.cjs.js
CHANGED
|
@@ -23960,20 +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);
|
|
23964
|
+
|
|
23963
23965
|
this.#owner.data.clearFilter();
|
|
23964
23966
|
|
|
23965
23967
|
Object.entries(jsonFilter).forEach(([key, arr]) => {
|
|
23968
|
+
|
|
23969
|
+
console.log();
|
|
23970
|
+
|
|
23966
23971
|
const idx = this.#owner.fields.indexOf(key);
|
|
23967
23972
|
|
|
23968
23973
|
// ✅ 숫자 판별 및 변환
|
|
23969
|
-
if (this.#owner.data.getValidData().some(o => typeof o.v[idx] === "number"))
|
|
23970
|
-
arr = arr.map(Number);
|
|
23971
|
-
}
|
|
23974
|
+
if (this.#owner.data.getValidData().some(o => typeof o.v[idx] === "number")) ;
|
|
23972
23975
|
|
|
23973
23976
|
// ✅ 필터 적용
|
|
23977
|
+
/**
|
|
23974
23978
|
this.#owner.data.getValidData()
|
|
23975
23979
|
.filter(m => arr.nineBinarySearch(m.v[idx] || '') < 0)
|
|
23976
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; });
|
|
23977
23986
|
});
|
|
23978
23987
|
|
|
23979
23988
|
|
|
@@ -27478,16 +27487,9 @@ class aiMessage extends HTMLElement
|
|
|
27478
27487
|
if (this.#unique) {
|
|
27479
27488
|
const grd = document.querySelector("nine-grid");
|
|
27480
27489
|
|
|
27481
|
-
console.log(this.#data.map(item =>
|
|
27482
|
-
Object.fromEntries(this.#unique.map(key => [key, item[key]]))
|
|
27483
|
-
));
|
|
27484
|
-
|
|
27485
27490
|
grd.filtering.set(this.#data.map(item =>
|
|
27486
27491
|
Object.fromEntries(this.#unique.map(key => [key, item[key]]))
|
|
27487
27492
|
));
|
|
27488
|
-
|
|
27489
|
-
|
|
27490
|
-
|
|
27491
27493
|
}
|
|
27492
27494
|
});
|
|
27493
27495
|
|
package/dist/bundle.esm.js
CHANGED
|
@@ -23958,20 +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);
|
|
23962
|
+
|
|
23961
23963
|
this.#owner.data.clearFilter();
|
|
23962
23964
|
|
|
23963
23965
|
Object.entries(jsonFilter).forEach(([key, arr]) => {
|
|
23966
|
+
|
|
23967
|
+
console.log();
|
|
23968
|
+
|
|
23964
23969
|
const idx = this.#owner.fields.indexOf(key);
|
|
23965
23970
|
|
|
23966
23971
|
// ✅ 숫자 판별 및 변환
|
|
23967
|
-
if (this.#owner.data.getValidData().some(o => typeof o.v[idx] === "number"))
|
|
23968
|
-
arr = arr.map(Number);
|
|
23969
|
-
}
|
|
23972
|
+
if (this.#owner.data.getValidData().some(o => typeof o.v[idx] === "number")) ;
|
|
23970
23973
|
|
|
23971
23974
|
// ✅ 필터 적용
|
|
23975
|
+
/**
|
|
23972
23976
|
this.#owner.data.getValidData()
|
|
23973
23977
|
.filter(m => arr.nineBinarySearch(m.v[idx] || '') < 0)
|
|
23974
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; });
|
|
23975
23984
|
});
|
|
23976
23985
|
|
|
23977
23986
|
|
|
@@ -27476,16 +27485,9 @@ class aiMessage extends HTMLElement
|
|
|
27476
27485
|
if (this.#unique) {
|
|
27477
27486
|
const grd = document.querySelector("nine-grid");
|
|
27478
27487
|
|
|
27479
|
-
console.log(this.#data.map(item =>
|
|
27480
|
-
Object.fromEntries(this.#unique.map(key => [key, item[key]]))
|
|
27481
|
-
));
|
|
27482
|
-
|
|
27483
27488
|
grd.filtering.set(this.#data.map(item =>
|
|
27484
27489
|
Object.fromEntries(this.#unique.map(key => [key, item[key]]))
|
|
27485
27490
|
));
|
|
27486
|
-
|
|
27487
|
-
|
|
27488
|
-
|
|
27489
27491
|
}
|
|
27490
27492
|
});
|
|
27491
27493
|
|
|
@@ -98,20 +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);
|
|
102
|
+
|
|
101
103
|
this.#owner.data.clearFilter();
|
|
102
104
|
|
|
103
105
|
Object.entries(jsonFilter).forEach(([key, arr]) => {
|
|
106
|
+
|
|
107
|
+
console.log()
|
|
108
|
+
|
|
104
109
|
const idx = this.#owner.fields.indexOf(key);
|
|
105
110
|
|
|
106
111
|
// ✅ 숫자 판별 및 변환
|
|
107
112
|
if (this.#owner.data.getValidData().some(o => typeof o.v[idx] === "number")) {
|
|
108
|
-
arr = arr.map(Number);
|
|
113
|
+
//arr = arr.map(Number);
|
|
109
114
|
}
|
|
110
115
|
|
|
111
116
|
// ✅ 필터 적용
|
|
117
|
+
/**
|
|
112
118
|
this.#owner.data.getValidData()
|
|
113
119
|
.filter(m => arr.nineBinarySearch(m.v[idx] || '') < 0)
|
|
114
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; });
|
|
115
126
|
});
|
|
116
127
|
|
|
117
128
|
|
package/package.json
CHANGED
package/src/ai/aiMessage.js
CHANGED
|
@@ -53,16 +53,9 @@ class aiMessage extends HTMLElement
|
|
|
53
53
|
if (this.#unique) {
|
|
54
54
|
const grd = document.querySelector("nine-grid");
|
|
55
55
|
|
|
56
|
-
console.log(this.#data.map(item =>
|
|
57
|
-
Object.fromEntries(this.#unique.map(key => [key, item[key]]))
|
|
58
|
-
));
|
|
59
|
-
|
|
60
56
|
grd.filtering.set(this.#data.map(item =>
|
|
61
57
|
Object.fromEntries(this.#unique.map(key => [key, item[key]]))
|
|
62
58
|
));
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
59
|
}
|
|
67
60
|
});
|
|
68
61
|
|
package/src/utils/ngFiltering.js
CHANGED
|
@@ -98,20 +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);
|
|
102
|
+
|
|
101
103
|
this.#owner.data.clearFilter();
|
|
102
104
|
|
|
103
105
|
Object.entries(jsonFilter).forEach(([key, arr]) => {
|
|
106
|
+
|
|
107
|
+
console.log()
|
|
108
|
+
|
|
104
109
|
const idx = this.#owner.fields.indexOf(key);
|
|
105
110
|
|
|
106
111
|
// ✅ 숫자 판별 및 변환
|
|
107
112
|
if (this.#owner.data.getValidData().some(o => typeof o.v[idx] === "number")) {
|
|
108
|
-
arr = arr.map(Number);
|
|
113
|
+
//arr = arr.map(Number);
|
|
109
114
|
}
|
|
110
115
|
|
|
111
116
|
// ✅ 필터 적용
|
|
117
|
+
/**
|
|
112
118
|
this.#owner.data.getValidData()
|
|
113
119
|
.filter(m => arr.nineBinarySearch(m.v[idx] || '') < 0)
|
|
114
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; });
|
|
115
126
|
});
|
|
116
127
|
|
|
117
128
|
|