@ni/spright-components 2.0.18 → 2.0.19
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.
|
@@ -9411,12 +9411,15 @@ let e=""!==this.filter?this.openActiveIndex??this.selectedIndex:this.selectedInd
|
|
|
9411
9411
|
t.length>0&&!t.find((t=>t===this.options[e]))?e=this.options.indexOf(t[0]):0===t.length&&(e=-1),this.setActiveOption(e)}return this.filterMode!==jg.none&&this.emitFilterInputEvent(),t.inputType.includes("deleteContent")||!this.filter.length||t.stopPropagation(),!0}focusoutHandler(t){if(super.focusoutHandler(t),!this.open)return!0
|
|
9412
9412
|
this.open=!1
|
|
9413
9413
|
const e=t.relatedTarget
|
|
9414
|
-
return!this.isSameNode(e)||(this.focus(),!0)}keydownHandler(t){const e=this.selectedIndex
|
|
9415
|
-
super.keydownHandler(t)
|
|
9416
|
-
const n=t.key
|
|
9414
|
+
return!this.isSameNode(e)||(this.focus(),!0)}keydownHandler(t){const e=this.selectedIndex,n=t.key
|
|
9417
9415
|
if(t.ctrlKey||t.shiftKey)return!0
|
|
9416
|
+
n!==qa&&n!==Ga&&super.keydownHandler(t)
|
|
9418
9417
|
let i=this.openActiveIndex??this.selectedIndex,s=!1
|
|
9419
|
-
switch(n){case
|
|
9418
|
+
switch(n){case qa:{const e=this.options[this.selectedIndex]
|
|
9419
|
+
this.open&&mO(e)&&!wO(e)?this.openActiveIndex===this.selectedIndex?this.selectFirstOption():this.selectNextOption():super.keydownHandler(t),i=this.openActiveIndex??this.selectedIndex
|
|
9420
|
+
break}case Ga:{const e=this.options[this.selectedIndex]
|
|
9421
|
+
this.open&&mO(e)&&!wO(e)?this.openActiveIndex===this.selectedIndex?this.selectLastOption():this.selectPreviousOption():super.keydownHandler(t),i=this.openActiveIndex??this.selectedIndex
|
|
9422
|
+
break}case tl:if(this.open&&this.filterMode!==jg.none)break
|
|
9420
9423
|
t.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open),this.open||this.focus()
|
|
9421
9424
|
break
|
|
9422
9425
|
case Xa:case Za:t.preventDefault()
|