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