ninegrid2 6.224.0 → 6.226.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.
@@ -18051,15 +18051,6 @@ class ngFiltering
18051
18051
 
18052
18052
  this.#owner.data.refreshFilter();
18053
18053
 
18054
- /**
18055
- var colnms = [];
18056
- for (let key in jsonFilter) {
18057
- colnms.push(key);
18058
- }
18059
- //var colnms = filterData.map(item => item.colnm);
18060
- */
18061
-
18062
- //ninegrid.querySelectorAll("ng-filter-button").forEach(el => {
18063
18054
  this.#owner.shadowRoot.querySelectorAll("ng-filter-button").forEach(el => {
18064
18055
  //v.filterOptions = null;
18065
18056
  let options = el.filterOptions;
@@ -18069,27 +18060,25 @@ class ngFiltering
18069
18060
  });
18070
18061
 
18071
18062
  el.filterOptions = options;
18072
-
18073
- console.log(options);
18074
18063
  });
18075
18064
 
18076
18065
  for (let key in jsonFilter) {
18077
18066
  const arr = jsonFilter[key];
18078
- this.#owner.fields.indexOf(key);
18067
+ //const idx = this.#owner.fields.indexOf(key);
18079
18068
 
18080
- console.log("=======================");
18081
- //ninegrid.querySelectorAll("ng-filter-button").forEach(el => {
18082
18069
  this.#owner.shadowRoot.querySelectorAll("ng-filter-button").forEach(el => {
18083
- //v.filterData = null;
18084
- //console.log(v);
18085
- //var b = v.colnms;
18086
18070
  let options = el.filterOptions;
18087
18071
 
18088
18072
  options.forEach(opt => {
18089
18073
 
18074
+ console.log(opt, key, arr);
18090
18075
  if (opt.hasOwnProperty(key)) {
18076
+ console.log("*******************");
18091
18077
  opt.data = arr;
18092
18078
  }
18079
+
18080
+ console.log(opt);
18081
+
18093
18082
  /**
18094
18083
  //console.log(colnms, colnm);
18095
18084
  if (colnms.includes(colnm)) {
@@ -18049,15 +18049,6 @@ class ngFiltering
18049
18049
 
18050
18050
  this.#owner.data.refreshFilter();
18051
18051
 
18052
- /**
18053
- var colnms = [];
18054
- for (let key in jsonFilter) {
18055
- colnms.push(key);
18056
- }
18057
- //var colnms = filterData.map(item => item.colnm);
18058
- */
18059
-
18060
- //ninegrid.querySelectorAll("ng-filter-button").forEach(el => {
18061
18052
  this.#owner.shadowRoot.querySelectorAll("ng-filter-button").forEach(el => {
18062
18053
  //v.filterOptions = null;
18063
18054
  let options = el.filterOptions;
@@ -18067,27 +18058,25 @@ class ngFiltering
18067
18058
  });
18068
18059
 
18069
18060
  el.filterOptions = options;
18070
-
18071
- console.log(options);
18072
18061
  });
18073
18062
 
18074
18063
  for (let key in jsonFilter) {
18075
18064
  const arr = jsonFilter[key];
18076
- this.#owner.fields.indexOf(key);
18065
+ //const idx = this.#owner.fields.indexOf(key);
18077
18066
 
18078
- console.log("=======================");
18079
- //ninegrid.querySelectorAll("ng-filter-button").forEach(el => {
18080
18067
  this.#owner.shadowRoot.querySelectorAll("ng-filter-button").forEach(el => {
18081
- //v.filterData = null;
18082
- //console.log(v);
18083
- //var b = v.colnms;
18084
18068
  let options = el.filterOptions;
18085
18069
 
18086
18070
  options.forEach(opt => {
18087
18071
 
18072
+ console.log(opt, key, arr);
18088
18073
  if (opt.hasOwnProperty(key)) {
18074
+ console.log("*******************");
18089
18075
  opt.data = arr;
18090
18076
  }
18077
+
18078
+ console.log(opt);
18079
+
18091
18080
  /**
18092
18081
  //console.log(colnms, colnm);
18093
18082
  if (colnms.includes(colnm)) {
@@ -119,15 +119,6 @@ export class ngFiltering
119
119
 
120
120
  this.#owner.data.refreshFilter();
121
121
 
122
- /**
123
- var colnms = [];
124
- for (let key in jsonFilter) {
125
- colnms.push(key);
126
- }
127
- //var colnms = filterData.map(item => item.colnm);
128
- */
129
-
130
- //ninegrid.querySelectorAll("ng-filter-button").forEach(el => {
131
122
  this.#owner.shadowRoot.querySelectorAll("ng-filter-button").forEach(el => {
132
123
  //v.filterOptions = null;
133
124
  let options = el.filterOptions;
@@ -137,27 +128,25 @@ export class ngFiltering
137
128
  });
138
129
 
139
130
  el.filterOptions = options;
140
-
141
- console.log(options);
142
131
  });
143
132
 
144
133
  for (let key in jsonFilter) {
145
134
  const arr = jsonFilter[key];
146
- const idx = this.#owner.fields.indexOf(key);
135
+ //const idx = this.#owner.fields.indexOf(key);
147
136
 
148
- console.log("=======================");
149
- //ninegrid.querySelectorAll("ng-filter-button").forEach(el => {
150
137
  this.#owner.shadowRoot.querySelectorAll("ng-filter-button").forEach(el => {
151
- //v.filterData = null;
152
- //console.log(v);
153
- //var b = v.colnms;
154
138
  let options = el.filterOptions;
155
139
 
156
140
  options.forEach(opt => {
157
141
 
142
+ console.log(opt, key, arr);
158
143
  if (opt.hasOwnProperty(key)) {
144
+ console.log("*******************");
159
145
  opt.data = arr;
160
146
  }
147
+
148
+ console.log(opt);
149
+
161
150
  /**
162
151
  //console.log(colnms, colnm);
163
152
  if (colnms.includes(colnm)) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.224.0",
4
+ "version": "6.226.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -119,15 +119,6 @@ export class ngFiltering
119
119
 
120
120
  this.#owner.data.refreshFilter();
121
121
 
122
- /**
123
- var colnms = [];
124
- for (let key in jsonFilter) {
125
- colnms.push(key);
126
- }
127
- //var colnms = filterData.map(item => item.colnm);
128
- */
129
-
130
- //ninegrid.querySelectorAll("ng-filter-button").forEach(el => {
131
122
  this.#owner.shadowRoot.querySelectorAll("ng-filter-button").forEach(el => {
132
123
  //v.filterOptions = null;
133
124
  let options = el.filterOptions;
@@ -137,27 +128,25 @@ export class ngFiltering
137
128
  });
138
129
 
139
130
  el.filterOptions = options;
140
-
141
- console.log(options);
142
131
  });
143
132
 
144
133
  for (let key in jsonFilter) {
145
134
  const arr = jsonFilter[key];
146
- const idx = this.#owner.fields.indexOf(key);
135
+ //const idx = this.#owner.fields.indexOf(key);
147
136
 
148
- console.log("=======================");
149
- //ninegrid.querySelectorAll("ng-filter-button").forEach(el => {
150
137
  this.#owner.shadowRoot.querySelectorAll("ng-filter-button").forEach(el => {
151
- //v.filterData = null;
152
- //console.log(v);
153
- //var b = v.colnms;
154
138
  let options = el.filterOptions;
155
139
 
156
140
  options.forEach(opt => {
157
141
 
142
+ console.log(opt, key, arr);
158
143
  if (opt.hasOwnProperty(key)) {
144
+ console.log("*******************");
159
145
  opt.data = arr;
160
146
  }
147
+
148
+ console.log(opt);
149
+
161
150
  /**
162
151
  //console.log(colnms, colnm);
163
152
  if (colnms.includes(colnm)) {