2023-03-14 13:18:55 +00:00
|
|
|
{{!
|
|
|
|
Copyright (c) HashiCorp, Inc.
|
2023-08-11 13:12:13 +00:00
|
|
|
SPDX-License-Identifier: BUSL-1.1
|
2023-03-14 13:18:55 +00:00
|
|
|
}}
|
|
|
|
|
2022-02-11 14:11:16 +00:00
|
|
|
<@disclosure.Details as |details|>
|
2022-02-25 10:01:08 +00:00
|
|
|
<PagedCollection
|
|
|
|
@items={{or @items (array)}}
|
|
|
|
as |pager|>
|
|
|
|
<div
|
|
|
|
{{on-outside 'click' @disclosure.close}}
|
|
|
|
{{did-insert pager.viewport}}
|
|
|
|
{{on-resize pager.resize}}
|
|
|
|
{{css-prop '--paged-row-height' returns=pager.rowHeight}}
|
|
|
|
{{css-prop 'max-height' returns=pager.maxHeight}}
|
|
|
|
class={{class-map
|
2022-06-08 15:07:51 +00:00
|
|
|
(array 'paged-collection-scroll' (includes pager.type (array 'virtual-scroll' 'native-scroll')))
|
2022-02-25 10:01:08 +00:00
|
|
|
}}
|
|
|
|
...attributes
|
|
|
|
>
|
|
|
|
{{yield (hash
|
|
|
|
Menu=(component 'menu'
|
|
|
|
disclosure=@disclosure
|
|
|
|
pager=pager
|
|
|
|
)
|
|
|
|
)}}
|
|
|
|
</div>
|
|
|
|
</PagedCollection>
|
2022-02-11 14:11:16 +00:00
|
|
|
</@disclosure.Details>
|
|
|
|
|