@nectary/components 5.31.4 → 5.32.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.
package/bundle.js CHANGED
@@ -13234,8 +13234,11 @@ class SelectMenu extends NectaryElement {
13234
13234
  const $options = this.#getOptionElements();
13235
13235
  let someFound = false;
13236
13236
  for (const $opt of $options) {
13237
- const isHidden = searchValue.length > 0 && !$opt.matchesSearch(searchValue);
13238
- someFound ||= !isHidden;
13237
+ const isAction = getBooleanAttribute($opt, "action");
13238
+ const isHidden = searchValue.length > 0 && !isAction && !$opt.matchesSearch(searchValue);
13239
+ if (!isAction) {
13240
+ someFound ||= !isHidden;
13241
+ }
13239
13242
  setClass($opt, "hidden", isHidden);
13240
13243
  }
13241
13244
  setClass(this.#$notFound, "active", searchValue.length > 0 && !someFound);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nectary/components",
3
- "version": "5.31.4",
3
+ "version": "5.32.0",
4
4
  "files": [
5
5
  "**/*/*.css",
6
6
  "**/*/*.json",
@@ -271,8 +271,11 @@ class SelectMenu extends NectaryElement {
271
271
  const $options = this.#getOptionElements();
272
272
  let someFound = false;
273
273
  for (const $opt of $options) {
274
- const isHidden = searchValue.length > 0 && !$opt.matchesSearch(searchValue);
275
- someFound ||= !isHidden;
274
+ const isAction = getBooleanAttribute($opt, "action");
275
+ const isHidden = searchValue.length > 0 && !isAction && !$opt.matchesSearch(searchValue);
276
+ if (!isAction) {
277
+ someFound ||= !isHidden;
278
+ }
276
279
  setClass($opt, "hidden", isHidden);
277
280
  }
278
281
  setClass(this.#$notFound, "active", searchValue.length > 0 && !someFound);