@ni/nimble-components 35.12.6 → 35.12.7
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.
|
@@ -970,7 +970,7 @@ break
|
|
|
970
970
|
case Ro:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="end"
|
|
971
971
|
break
|
|
972
972
|
default:this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition="center"}}}
|
|
973
|
-
t([pt({mode:"boolean"})],Fo.prototype,"visible",void 0),t([pt],Fo.prototype,"anchor",void 0),t([pt],Fo.prototype,"delay",void 0),t([pt],Fo.prototype,"position",void 0),t([pt({attribute:"auto-update-mode"})],Fo.prototype,"autoUpdateMode",void 0),t([pt({attribute:"horizontal-viewport-lock"})],Fo.prototype,"horizontalViewportLock",void 0),t([pt({attribute:"vertical-viewport-lock"})],Fo.prototype,"verticalViewportLock",void 0),t([C],Fo.prototype,"anchorElement",void 0),t([C],Fo.prototype,"viewportElement",void 0),t([C],Fo.prototype,"verticalPositioningMode",void 0),t([C],Fo.prototype,"horizontalPositioningMode",void 0),t([C],Fo.prototype,"horizontalInset",void 0),t([C],Fo.prototype,"verticalInset",void 0),t([C],Fo.prototype,"horizontalScaling",void 0),t([C],Fo.prototype,"verticalScaling",void 0),t([C],Fo.prototype,"verticalDefaultPosition",void 0),t([C],Fo.prototype,"horizontalDefaultPosition",void 0),t([C],Fo.prototype,"tooltipVisible",void 0),t([C],Fo.prototype,"currentDirection",void 0)
|
|
973
|
+
t([pt({mode:"boolean"})],Fo.prototype,"visible",void 0),t([pt],Fo.prototype,"anchor",void 0),t([pt({converter:ht})],Fo.prototype,"delay",void 0),t([pt],Fo.prototype,"position",void 0),t([pt({attribute:"auto-update-mode"})],Fo.prototype,"autoUpdateMode",void 0),t([pt({attribute:"horizontal-viewport-lock"})],Fo.prototype,"horizontalViewportLock",void 0),t([pt({attribute:"vertical-viewport-lock"})],Fo.prototype,"verticalViewportLock",void 0),t([C],Fo.prototype,"anchorElement",void 0),t([C],Fo.prototype,"viewportElement",void 0),t([C],Fo.prototype,"verticalPositioningMode",void 0),t([C],Fo.prototype,"horizontalPositioningMode",void 0),t([C],Fo.prototype,"horizontalInset",void 0),t([C],Fo.prototype,"verticalInset",void 0),t([C],Fo.prototype,"horizontalScaling",void 0),t([C],Fo.prototype,"verticalScaling",void 0),t([C],Fo.prototype,"verticalDefaultPosition",void 0),t([C],Fo.prototype,"horizontalDefaultPosition",void 0),t([C],Fo.prototype,"tooltipVisible",void 0),t([C],Fo.prototype,"currentDirection",void 0)
|
|
974
974
|
function Lo(t){return Ze(t)&&"treeitem"===t.getAttribute("role")}let Bo=class extends He{constructor(){super(...arguments),this.expanded=!1,this.focusable=!1,this.isNestedItem=()=>Lo(this.parentElement),this.handleExpandCollapseButtonClick=t=>{this.disabled||t.defaultPrevented||(this.expanded=!this.expanded)},this.handleFocus=t=>{this.setAttribute("tabindex","0")},this.handleBlur=t=>{this.setAttribute("tabindex","-1")}}expandedChanged(){this.$fastController.isConnected&&this.$emit("expanded-change",this)}selectedChanged(){this.$fastController.isConnected&&this.$emit("selected-change",this)}itemsChanged(t,e){this.$fastController.isConnected&&this.items.forEach(t=>{Lo(t)&&(t.nested=!0)})}static focusItem(t){t.focusable=!0,t.focus()}childItemLength(){const t=this.childItems.filter(t=>Lo(t))
|
|
975
975
|
return t?t.length:0}}
|
|
976
976
|
t([pt({mode:"boolean"})],Bo.prototype,"expanded",void 0),t([pt({mode:"boolean"})],Bo.prototype,"selected",void 0),t([pt({mode:"boolean"})],Bo.prototype,"disabled",void 0),t([C],Bo.prototype,"focusable",void 0),t([C],Bo.prototype,"childItems",void 0),t([C],Bo.prototype,"items",void 0),t([C],Bo.prototype,"nested",void 0),t([C],Bo.prototype,"renderCollapsedChildren",void 0),je(Bo,ne)
|