ninegrid2 6.251.0 → 6.252.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.
@@ -16036,20 +16036,6 @@ class ngData
16036
16036
  (this.#parent.rawRecords || []).forEach(v => {
16037
16037
  v.__ng.height = this.#defaultHeight.slice();
16038
16038
  });
16039
-
16040
- this.#owner.filtering.clear = () => {
16041
- this.#parent.rawRecords.map(item => { item.__ng.filtered = false; });
16042
- this.#records = this.#parent.rawRecords.filter(item => { return !item.__ng.deleted && !item.__ng.filtered; } );
16043
- return this.#records;
16044
- };
16045
-
16046
- this.#owner.filtering.refresh = () => {
16047
- this.#records = this.#parent.rawRecords.filter(item => { return !item.__ng.deleted && !item.__ng.filtered; } );
16048
- //this.#records.forEach((o,i) => { o.__ng.rowidx = i; });
16049
- //this.getValidData().forEach((o,i) => { o.__ng._[ninegrid.ROW.ORDER] = i + 1; });
16050
- this.#resetOrder();
16051
- return this.#records;
16052
- };
16053
16039
  };
16054
16040
 
16055
16041
 
@@ -17862,8 +17848,7 @@ class ngFiltering
17862
17848
  * 1. grid attr == filter : on();
17863
17849
  */
17864
17850
  this.#isFiltering = false;
17865
- //this.#owner.data.clearFilter();
17866
- this.#owner.filtering.clear();
17851
+ this.#owner.data.clearFilter();
17867
17852
  };
17868
17853
 
17869
17854
  isFiltering = () => {
@@ -17935,8 +17920,7 @@ class ngFiltering
17935
17920
  ? Object.fromEntries(Object.keys(oFilter[0]).map(key => [key, [...new Set(oFilter.map(item => item[key]))]]))
17936
17921
  : oFilter;
17937
17922
 
17938
- //this.#owner.data.clearFilter();
17939
- this.#owner.filtering.clear();
17923
+ this.#owner.data.clearFilter();
17940
17924
 
17941
17925
  Object.entries(jsonFilter).forEach(([key, arr]) => {
17942
17926
  const idx = this.#owner.fields.indexOf(key);
@@ -17953,8 +17937,7 @@ class ngFiltering
17953
17937
  });
17954
17938
 
17955
17939
 
17956
- //this.#owner.data.refreshFilter();
17957
- this.#owner.filtering.refresh();
17940
+ this.#owner.data.refreshFilter();
17958
17941
 
17959
17942
  // ✅ 필터 버튼 초기화
17960
17943
  this.#owner.shadowRoot.querySelectorAll("ng-filter-button").forEach(el => {
@@ -16034,20 +16034,6 @@ class ngData
16034
16034
  (this.#parent.rawRecords || []).forEach(v => {
16035
16035
  v.__ng.height = this.#defaultHeight.slice();
16036
16036
  });
16037
-
16038
- this.#owner.filtering.clear = () => {
16039
- this.#parent.rawRecords.map(item => { item.__ng.filtered = false; });
16040
- this.#records = this.#parent.rawRecords.filter(item => { return !item.__ng.deleted && !item.__ng.filtered; } );
16041
- return this.#records;
16042
- };
16043
-
16044
- this.#owner.filtering.refresh = () => {
16045
- this.#records = this.#parent.rawRecords.filter(item => { return !item.__ng.deleted && !item.__ng.filtered; } );
16046
- //this.#records.forEach((o,i) => { o.__ng.rowidx = i; });
16047
- //this.getValidData().forEach((o,i) => { o.__ng._[ninegrid.ROW.ORDER] = i + 1; });
16048
- this.#resetOrder();
16049
- return this.#records;
16050
- };
16051
16037
  };
16052
16038
 
16053
16039
 
@@ -17860,8 +17846,7 @@ class ngFiltering
17860
17846
  * 1. grid attr == filter : on();
17861
17847
  */
17862
17848
  this.#isFiltering = false;
17863
- //this.#owner.data.clearFilter();
17864
- this.#owner.filtering.clear();
17849
+ this.#owner.data.clearFilter();
17865
17850
  };
17866
17851
 
17867
17852
  isFiltering = () => {
@@ -17933,8 +17918,7 @@ class ngFiltering
17933
17918
  ? Object.fromEntries(Object.keys(oFilter[0]).map(key => [key, [...new Set(oFilter.map(item => item[key]))]]))
17934
17919
  : oFilter;
17935
17920
 
17936
- //this.#owner.data.clearFilter();
17937
- this.#owner.filtering.clear();
17921
+ this.#owner.data.clearFilter();
17938
17922
 
17939
17923
  Object.entries(jsonFilter).forEach(([key, arr]) => {
17940
17924
  const idx = this.#owner.fields.indexOf(key);
@@ -17951,8 +17935,7 @@ class ngFiltering
17951
17935
  });
17952
17936
 
17953
17937
 
17954
- //this.#owner.data.refreshFilter();
17955
- this.#owner.filtering.refresh();
17938
+ this.#owner.data.refreshFilter();
17956
17939
 
17957
17940
  // ✅ 필터 버튼 초기화
17958
17941
  this.#owner.shadowRoot.querySelectorAll("ng-filter-button").forEach(el => {
@@ -117,20 +117,6 @@ export class ngData
117
117
  (this.#parent.rawRecords || []).forEach(v => {
118
118
  v.__ng.height = this.#defaultHeight.slice();
119
119
  });
120
-
121
- this.#owner.filtering.clear = () => {
122
- this.#parent.rawRecords.map(item => { item.__ng.filtered = false; });
123
- this.#records = this.#parent.rawRecords.filter(item => { return !item.__ng.deleted && !item.__ng.filtered; } );
124
- return this.#records;
125
- }
126
-
127
- this.#owner.filtering.refresh = () => {
128
- this.#records = this.#parent.rawRecords.filter(item => { return !item.__ng.deleted && !item.__ng.filtered; } );
129
- //this.#records.forEach((o,i) => { o.__ng.rowidx = i; });
130
- //this.getValidData().forEach((o,i) => { o.__ng._[ninegrid.ROW.ORDER] = i + 1; });
131
- this.#resetOrder();
132
- return this.#records;
133
- }
134
120
  };
135
121
 
136
122
 
@@ -26,8 +26,7 @@ export class ngFiltering
26
26
  * 1. grid attr == filter : on();
27
27
  */
28
28
  this.#isFiltering = false;
29
- //this.#owner.data.clearFilter();
30
- this.#owner.filtering.clear();
29
+ this.#owner.data.clearFilter();
31
30
  };
32
31
 
33
32
  isFiltering = () => {
@@ -99,8 +98,7 @@ export class ngFiltering
99
98
  ? Object.fromEntries(Object.keys(oFilter[0]).map(key => [key, [...new Set(oFilter.map(item => item[key]))]]))
100
99
  : oFilter;
101
100
 
102
- //this.#owner.data.clearFilter();
103
- this.#owner.filtering.clear();
101
+ this.#owner.data.clearFilter();
104
102
 
105
103
  Object.entries(jsonFilter).forEach(([key, arr]) => {
106
104
  const idx = this.#owner.fields.indexOf(key);
@@ -117,8 +115,7 @@ export class ngFiltering
117
115
  });
118
116
 
119
117
 
120
- //this.#owner.data.refreshFilter();
121
- this.#owner.filtering.refresh();
118
+ this.#owner.data.refreshFilter();
122
119
 
123
120
  // ✅ 필터 버튼 초기화
124
121
  this.#owner.shadowRoot.querySelectorAll("ng-filter-button").forEach(el => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.251.0",
4
+ "version": "6.252.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
package/src/etc/ngData.js CHANGED
@@ -117,20 +117,6 @@ export class ngData
117
117
  (this.#parent.rawRecords || []).forEach(v => {
118
118
  v.__ng.height = this.#defaultHeight.slice();
119
119
  });
120
-
121
- this.#owner.filtering.clear = () => {
122
- this.#parent.rawRecords.map(item => { item.__ng.filtered = false; });
123
- this.#records = this.#parent.rawRecords.filter(item => { return !item.__ng.deleted && !item.__ng.filtered; } );
124
- return this.#records;
125
- }
126
-
127
- this.#owner.filtering.refresh = () => {
128
- this.#records = this.#parent.rawRecords.filter(item => { return !item.__ng.deleted && !item.__ng.filtered; } );
129
- //this.#records.forEach((o,i) => { o.__ng.rowidx = i; });
130
- //this.getValidData().forEach((o,i) => { o.__ng._[ninegrid.ROW.ORDER] = i + 1; });
131
- this.#resetOrder();
132
- return this.#records;
133
- }
134
120
  };
135
121
 
136
122
 
@@ -26,8 +26,7 @@ export class ngFiltering
26
26
  * 1. grid attr == filter : on();
27
27
  */
28
28
  this.#isFiltering = false;
29
- //this.#owner.data.clearFilter();
30
- this.#owner.filtering.clear();
29
+ this.#owner.data.clearFilter();
31
30
  };
32
31
 
33
32
  isFiltering = () => {
@@ -99,8 +98,7 @@ export class ngFiltering
99
98
  ? Object.fromEntries(Object.keys(oFilter[0]).map(key => [key, [...new Set(oFilter.map(item => item[key]))]]))
100
99
  : oFilter;
101
100
 
102
- //this.#owner.data.clearFilter();
103
- this.#owner.filtering.clear();
101
+ this.#owner.data.clearFilter();
104
102
 
105
103
  Object.entries(jsonFilter).forEach(([key, arr]) => {
106
104
  const idx = this.#owner.fields.indexOf(key);
@@ -117,8 +115,7 @@ export class ngFiltering
117
115
  });
118
116
 
119
117
 
120
- //this.#owner.data.refreshFilter();
121
- this.#owner.filtering.refresh();
118
+ this.#owner.data.refreshFilter();
122
119
 
123
120
  // ✅ 필터 버튼 초기화
124
121
  this.#owner.shadowRoot.querySelectorAll("ng-filter-button").forEach(el => {