@ni/spright-components 1.0.22 → 1.0.24
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.
|
@@ -4036,7 +4036,11 @@ const vv=xe`
|
|
|
4036
4036
|
display: none;
|
|
4037
4037
|
}
|
|
4038
4038
|
`
|
|
4039
|
-
class bv extends Nn{constructor(){super(...arguments),this.hidden=!1,this.visuallyHidden=!1,this.activeOption=!1,this.hasOverflow=!1}get elementTextContent(){return this.contentSlot.assignedNodes().map((e=>e.textContent?.trim())).join(" ")}connectedCallback(){super.connectedCallback()
|
|
4039
|
+
class bv extends Nn{constructor(){super(...arguments),this.hidden=!1,this.visuallyHidden=!1,this.activeOption=!1,this.hasOverflow=!1}get elementTextContent(){return this.contentSlot.assignedNodes().map((e=>e.textContent?.trim())).join(" ")}connectedCallback(){super.connectedCallback()
|
|
4040
|
+
const e=this.getListOptionOwner()
|
|
4041
|
+
e?.registerOption(this)}getListOptionOwner(){let e=this.parentElement
|
|
4042
|
+
for(;e;){if(this.isListOptionOwner(e))return e
|
|
4043
|
+
e=e.parentElement}}isListOptionOwner(e){return!!e&&"function"==typeof e.registerOption}}e([le({mode:"boolean"})],bv.prototype,"hidden",void 0),e([le({attribute:"visually-hidden",mode:"boolean"})],bv.prototype,"visuallyHidden",void 0),e([le({attribute:"active-option",mode:"boolean"})],bv.prototype,"activeOption",void 0),e([g],bv.prototype,"hasOverflow",void 0)
|
|
4040
4044
|
const yv=bv.compose({baseName:"list-option",baseClass:Nn,template:(e,t)=>G`
|
|
4041
4045
|
<template
|
|
4042
4046
|
aria-checked="${e=>e.ariaChecked}"
|