ninegrid2 6.208.0 → 6.209.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.
@@ -18204,10 +18204,9 @@ class ngFilterButton extends HTMLElement
18204
18204
  return this.#filterOptions;
18205
18205
  };
18206
18206
  set filterOptions(v) {
18207
- console.log(v);
18208
18207
  this.#filterOptions = v;
18209
- v && v.length > 0 ? this.classList.add('filtered') : this.classList.remove('filtered');
18210
- };
18208
+ this.classList.toggle('filtered', this.#filterOptions.some(filterOption => filterOption.data.length > 0));
18209
+ }
18211
18210
 
18212
18211
  #onClick = (e) => {
18213
18212
 
@@ -18202,10 +18202,9 @@ class ngFilterButton extends HTMLElement
18202
18202
  return this.#filterOptions;
18203
18203
  };
18204
18204
  set filterOptions(v) {
18205
- console.log(v);
18206
18205
  this.#filterOptions = v;
18207
- v && v.length > 0 ? this.classList.add('filtered') : this.classList.remove('filtered');
18208
- };
18206
+ this.classList.toggle('filtered', this.#filterOptions.some(filterOption => filterOption.data.length > 0));
18207
+ }
18209
18208
 
18210
18209
  #onClick = (e) => {
18211
18210
 
@@ -272,10 +272,9 @@ class ngFilterButton extends HTMLElement
272
272
  return this.#filterOptions;
273
273
  };
274
274
  set filterOptions(v) {
275
- console.log(v);
276
275
  this.#filterOptions = v;
277
- v && v.length > 0 ? this.classList.add('filtered') : this.classList.remove('filtered');
278
- };
276
+ this.classList.toggle('filtered', this.#filterOptions.some(filterOption => filterOption.data.length > 0));
277
+ }
279
278
 
280
279
  #onClick = (e) => {
281
280
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.208.0",
4
+ "version": "6.209.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -272,10 +272,9 @@ class ngFilterButton extends HTMLElement
272
272
  return this.#filterOptions;
273
273
  };
274
274
  set filterOptions(v) {
275
- console.log(v);
276
275
  this.#filterOptions = v;
277
- v && v.length > 0 ? this.classList.add('filtered') : this.classList.remove('filtered');
278
- };
276
+ this.classList.toggle('filtered', this.#filterOptions.some(filterOption => filterOption.data.length > 0));
277
+ }
279
278
 
280
279
  #onClick = (e) => {
281
280