mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-18 04:16:28 +00:00

* Releases updated version of datahub-web client UI code * Fix typo in yarn lock * Change yarn lock to match yarn registry directories * Previous commit missed some paths * Even more changes to yarnlock missing in previous commit * Include codegen file for typings * Add files to get parity for datahub-web and current OS datahub-midtier * Add in typo fix from previous commit - change to proper license * Implement proper OS fix for person entity picture url * Workarounds for open source DH issues * Fixes institutional memory api and removes unopensourced tabs for datasets * Fixes search dataset deprecation and user search issue as a result of changes * Remove internal only options in the avatar menu
41 lines
1.3 KiB
Handlebars
41 lines
1.3 KiB
Handlebars
{{! TODO: META-8742 Add this as a component in the Nacho Component library as part of NachoHoverDropdown }}
|
|
{{#basic-dropdown renderInPlace=@renderInPlace as |bd|}}
|
|
{{#if (not-eq @wrappedTriggerComponent true)}}
|
|
<bd.trigger
|
|
@class="nacho-drop-down__trigger {{@triggerClass}}"
|
|
{{on "mousedown" this.prevent}}
|
|
{{on "mouseenter" (fn this.showDropDown bd)}}
|
|
{{on "mouseleave" (fn this.hideDropDown bd)}}
|
|
>
|
|
<strong class="nacho-drop-down__active">
|
|
{{this.selectedDropDown.label}}
|
|
</strong>
|
|
|
|
{{#if this.selectedDropDown}}
|
|
<span class="nacho-drop-down__active__toggle">
|
|
{{fa-icon (if this.isExpanded "caret-up" "caret-down")}}
|
|
</span>
|
|
{{/if}}
|
|
</bd.trigger>
|
|
{{/if}}
|
|
|
|
{{yield
|
|
(hash
|
|
trigger=(component bd.trigger
|
|
onMouseDown=(fn this.prevent)
|
|
onMouseEnter=(fn this.showDropDown)
|
|
onMouseLeave=(fn this.hideDropDown)
|
|
)
|
|
isExpanded=this.isExpanded
|
|
content=(component "nacho-hover-dropdown/dropdown-content"
|
|
baseComponent=bd.content
|
|
onMouseEnter=(fn this.showDropDown bd)
|
|
onMouseLeave=(fn this.hideDropDown bd)
|
|
onSelect=(fn this.onDropDownSelect bd)
|
|
selectedOption=this.selectedDropDown
|
|
options=this.dropDownItems
|
|
)
|
|
)
|
|
}}
|
|
{{/basic-dropdown}}
|