ninegrid2 6.236.0 → 6.238.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.
@@ -17928,16 +17928,23 @@ class ngFiltering
17928
17928
  el.filterOptions.forEach(opt => { opt.data = []; });
17929
17929
  });
17930
17930
 
17931
- // 필터 데이터 적용
17932
- Object.entries(jsonFilter).forEach(([key, arr]) => {
17931
+ for (let key in jsonFilter) {
17933
17932
  this.#owner.shadowRoot.querySelectorAll("ng-filter-button").forEach(el => {
17934
- el.filterOptions.forEach(opt => {
17935
- if (opt.colnm === key) opt.data = arr;
17933
+ let options = el.filterOptions;
17934
+
17935
+ options.forEach(opt => {
17936
+ if (opt.colnm === key) {
17937
+ opt.data = jsonFilter[key];
17938
+ }
17936
17939
  });
17940
+
17941
+ el.filterOptions = options;
17937
17942
  });
17938
- });
17943
+ }
17944
+
17939
17945
 
17940
17946
  this.#owner.scrollTo_V1(0);
17947
+
17941
17948
  this.#owner.paging.reset();
17942
17949
  };
17943
17950
 
@@ -17926,16 +17926,23 @@ class ngFiltering
17926
17926
  el.filterOptions.forEach(opt => { opt.data = []; });
17927
17927
  });
17928
17928
 
17929
- // 필터 데이터 적용
17930
- Object.entries(jsonFilter).forEach(([key, arr]) => {
17929
+ for (let key in jsonFilter) {
17931
17930
  this.#owner.shadowRoot.querySelectorAll("ng-filter-button").forEach(el => {
17932
- el.filterOptions.forEach(opt => {
17933
- if (opt.colnm === key) opt.data = arr;
17931
+ let options = el.filterOptions;
17932
+
17933
+ options.forEach(opt => {
17934
+ if (opt.colnm === key) {
17935
+ opt.data = jsonFilter[key];
17936
+ }
17934
17937
  });
17938
+
17939
+ el.filterOptions = options;
17935
17940
  });
17936
- });
17941
+ }
17942
+
17937
17943
 
17938
17944
  this.#owner.scrollTo_V1(0);
17945
+
17939
17946
  this.#owner.paging.reset();
17940
17947
  };
17941
17948
 
@@ -105,16 +105,23 @@ export class ngFiltering
105
105
  el.filterOptions.forEach(opt => { opt.data = []; });
106
106
  });
107
107
 
108
- // 필터 데이터 적용
109
- Object.entries(jsonFilter).forEach(([key, arr]) => {
108
+ for (let key in jsonFilter) {
110
109
  this.#owner.shadowRoot.querySelectorAll("ng-filter-button").forEach(el => {
111
- el.filterOptions.forEach(opt => {
112
- if (opt.colnm === key) opt.data = arr;
110
+ let options = el.filterOptions;
111
+
112
+ options.forEach(opt => {
113
+ if (opt.colnm === key) {
114
+ opt.data = jsonFilter[key];
115
+ }
113
116
  });
117
+
118
+ el.filterOptions = options;
114
119
  });
115
- });
120
+ }
121
+
116
122
 
117
123
  this.#owner.scrollTo_V1(0);
124
+
118
125
  this.#owner.paging.reset();
119
126
  };
120
127
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.236.0",
4
+ "version": "6.238.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -105,16 +105,23 @@ export class ngFiltering
105
105
  el.filterOptions.forEach(opt => { opt.data = []; });
106
106
  });
107
107
 
108
- // 필터 데이터 적용
109
- Object.entries(jsonFilter).forEach(([key, arr]) => {
108
+ for (let key in jsonFilter) {
110
109
  this.#owner.shadowRoot.querySelectorAll("ng-filter-button").forEach(el => {
111
- el.filterOptions.forEach(opt => {
112
- if (opt.colnm === key) opt.data = arr;
110
+ let options = el.filterOptions;
111
+
112
+ options.forEach(opt => {
113
+ if (opt.colnm === key) {
114
+ opt.data = jsonFilter[key];
115
+ }
113
116
  });
117
+
118
+ el.filterOptions = options;
114
119
  });
115
- });
120
+ }
121
+
116
122
 
117
123
  this.#owner.scrollTo_V1(0);
124
+
118
125
  this.#owner.paging.reset();
119
126
  };
120
127