DEV: Add PluginOutlet on full-page-search-above-search-header and filters (#30454)

This PR adds PluginOutlets on full-page-search-above-search-header and full-page-search-filters.
This commit is contained in:
Guhyoun Nam 2025-01-02 14:35:10 -06:00 committed by GitHub
parent b1602d0e7f
commit b552d7214b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,6 +5,11 @@
{{body-class "search-page"}}
<section class="search-container">
<PluginOutlet
@name="full-page-search-above-search-header"
@connectorTagName="div"
@outletArgs={{hash searchTerm=this.searchTerm}}
/>
<div class="search-header" role="search">
<h1 class="search-page-heading">
{{#if this.hasResults}}
@ -56,13 +61,29 @@
{{/if}}
<div class="search-filters">
<SearchAdvancedOptions
@searchTerm={{readonly this.searchTerm}}
@onChangeSearchTerm={{fn (mut this.searchTerm)}}
@search={{action "search" (hash collapseFilters=true)}}
@searchButtonDisabled={{this.searchButtonDisabled}}
@expandFilters={{this.expandFilters}}
/>
<PluginOutlet
@name="full-page-search-filters"
@outletArgs={{hash
searchTerm=(readonly this.searchTerm)
onChangeSearchTerm=(fn (mut this.searchTerm))
search=(action "search" (hash collapseFilters=true))
searchButtonDisabled=this.searchButtonDisabled
expandFilters=this.expandFilters
sortOrder=this.sortOrder
sortOrderOptions=this.sortOrders
setSortOrder=this.setSortOrder
type=this.search_type
addSearchResults=this.addSearchResults
}}
>
<SearchAdvancedOptions
@searchTerm={{readonly this.searchTerm}}
@onChangeSearchTerm={{fn (mut this.searchTerm)}}
@search={{action "search" (hash collapseFilters=true)}}
@searchButtonDisabled={{this.searchButtonDisabled}}
@expandFilters={{this.expandFilters}}
/>
</PluginOutlet>
</div>
{{/if}}