mirror of
https://github.com/status-im/consul.git
synced 2025-02-02 17:03:31 +00:00
4d36e2b08e
Upgrade ember-composable-helpers to version 5.x. This version contains the pick-helper which makes composition in the template layer easier with Octane. {{!-- this is usually hard to do with Octane --}} <input {{on "input" (pick "target.value" this.updateText)}} .../> Version 5.x also fixes a regression with sort-by that according to @johncowen was the reason why the version was pinned to 4.0.0 at the moment. Version 5 of ember-composable-helpers removes the contains-helper in favor of includes which I changed all occurences for.
26 lines
692 B
Handlebars
26 lines
692 B
Handlebars
<@disclosure.Details as |details|>
|
|
<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
|
|
(array 'paged-collection-scroll' (includes pager.type (array 'virtual-scroll' 'native-scroll')))
|
|
}}
|
|
...attributes
|
|
>
|
|
{{yield (hash
|
|
Menu=(component 'menu'
|
|
disclosure=@disclosure
|
|
pager=pager
|
|
)
|
|
)}}
|
|
</div>
|
|
</PagedCollection>
|
|
</@disclosure.Details>
|
|
|