ninegrid2 6.214.0 → 6.216.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,9 +18204,8 @@ 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
- this.classList.toggle('filtered', this.#filterOptions.some(item => item.data.length > 0));
18208
+ this.classList.toggle('filtered', !v && this.#filterOptions.some(item => item.data.length > 0));
18210
18209
  }
18211
18210
 
18212
18211
  #onClick = (e) => {
@@ -18202,9 +18202,8 @@ 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
- this.classList.toggle('filtered', this.#filterOptions.some(item => item.data.length > 0));
18206
+ this.classList.toggle('filtered', !v && this.#filterOptions.some(item => item.data.length > 0));
18208
18207
  }
18209
18208
 
18210
18209
  #onClick = (e) => {
@@ -272,9 +272,8 @@ 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
- this.classList.toggle('filtered', this.#filterOptions.some(item => item.data.length > 0));
276
+ this.classList.toggle('filtered', !v && this.#filterOptions.some(item => item.data.length > 0));
278
277
  }
279
278
 
280
279
  #onClick = (e) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.214.0",
4
+ "version": "6.216.0",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
7
7
  "import": "./dist/index.js",
@@ -272,9 +272,8 @@ 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
- this.classList.toggle('filtered', this.#filterOptions.some(item => item.data.length > 0));
276
+ this.classList.toggle('filtered', !v && this.#filterOptions.some(item => item.data.length > 0));
278
277
  }
279
278
 
280
279
  #onClick = (e) => {