2023-03-14 13:18:55 +00:00
|
|
|
{{!
|
|
|
|
Copyright (c) HashiCorp, Inc.
|
|
|
|
SPDX-License-Identifier: MPL-2.0
|
|
|
|
}}
|
|
|
|
|
2022-02-09 09:47:45 +00:00
|
|
|
<ul
|
|
|
|
role="menu"
|
2022-02-25 10:01:08 +00:00
|
|
|
style={{{style-map
|
|
|
|
(array 'height' (if (and @pager (not-eq @pager.type 'native-scroll')) @pager.totalHeight) 'px')
|
|
|
|
(array '--paged-start' (if (and @pager (not-eq @pager.type 'native-scroll')) @pager.startHeight) 'px')
|
|
|
|
}}}
|
|
|
|
{{did-insert (optional @pager.pane)}}
|
2022-02-09 09:47:45 +00:00
|
|
|
{{aria-menu
|
|
|
|
onclose=(or @onclose @disclosure.close)
|
|
|
|
openEvent=(or @event @disclosure.event)
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
{{yield (hash
|
2022-02-21 12:22:59 +00:00
|
|
|
Action=(component 'menu/action' disclosure=@disclosure)
|
2022-02-09 09:47:45 +00:00
|
|
|
Item=(component 'menu/item')
|
|
|
|
Separator=(component 'menu/separator')
|
2022-02-25 10:01:08 +00:00
|
|
|
items=@pager.items
|
2022-02-09 09:47:45 +00:00
|
|
|
)}}
|
|
|
|
</ul>
|