+
@@ -581,30 +562,34 @@
\ No newline at end of file
diff --git a/src/views/admin/js/event-bus-search.js b/src/views/admin/js/event-bus-search.js
index 47d945e81..4dd009a3e 100644
--- a/src/views/admin/js/event-bus-search.js
+++ b/src/views/admin/js/event-bus-search.js
@@ -26,12 +26,12 @@ export default {
this.$root.$on('closeAdvancedSearch', () => {
this.$store.dispatch('search/setPage', 1);
- this.searchAdvanced({});
+ this.performAdvancedSearch({});
});
- this.$root.$on('searchAdvanced', advancedSearchQuery => {
+ this.$root.$on('performAdvancedSearch', advancedSearchQuery => {
this.$store.dispatch('search/setPage', 1);
- this.searchAdvanced(advancedSearchQuery);
+ this.performAdvancedSearch(advancedSearchQuery);
this.updateURLQueries();
});
@@ -177,7 +177,7 @@ export default {
}
},
methods: {
- searchAdvanced(data) {
+ performAdvancedSearch(data) {
this.$store.dispatch('search/set_advanced_query', data);
this.updateURLQueries();
},
@@ -384,10 +384,6 @@ export default {
resp.request.then((res) => {
this.$emit( 'isLoadingItems', false);
this.$emit( 'hasFiltered', res.hasFiltered);
-
- if (res.advancedSearchResults){
- this.$emit('advancedSearchResults', res.advancedSearchResults);
- }
})
.catch(() => {
this.$emit( 'isLoadingItems', false);
diff --git a/src/views/admin/js/store/modules/collection/actions.js b/src/views/admin/js/store/modules/collection/actions.js
index 59a1d1550..c17a3d6b5 100644
--- a/src/views/admin/js/store/modules/collection/actions.js
+++ b/src/views/admin/js/store/modules/collection/actions.js
@@ -25,7 +25,6 @@ export const fetchItems = ({ rootGetters, dispatch, commit }, { collectionId, is
// Sets a flag to inform components that an empty sate is or not due to filtering
let hasFiltered = false;
- let advancedSearchResults = false;
// We mark as filtered if there is a metaquery, taxquery or a postin
if (
@@ -38,13 +37,8 @@ export const fetchItems = ({ rootGetters, dispatch, commit }, { collectionId, is
(postQueries.postin != undefined &&
postQueries.postin.length
)
- ) {
-
+ )
hasFiltered = true;
-
- if (postQueries.advancedSearch)
- advancedSearchResults = postQueries.advancedSearch;
- }
// Admin default tab should load publish, private and draft statuses
if (!isOnTheme && !postQueries.status) {
@@ -93,7 +87,6 @@ export const fetchItems = ({ rootGetters, dispatch, commit }, { collectionId, is
'itemsListTemplate': res.data.template,
'total': res.headers['x-wp-total'],
hasFiltered: hasFiltered,
- advancedSearchResults: advancedSearchResults,
itemsPerPage: res.headers['x-wp-itemperpage']});
} else {
commit('setItems', items);
@@ -102,7 +95,6 @@ export const fetchItems = ({ rootGetters, dispatch, commit }, { collectionId, is
'total': res.headers['x-wp-total'],
totalPages: res.headers['x-wp-totalpages'],
hasFiltered: hasFiltered,
- advancedSearchResults: advancedSearchResults ,
itemsPerPage: res.headers['x-wp-itemperpage'] });
}
dispatch('search/setTotalItems', res.headers['x-wp-total'], { root: true } );
diff --git a/src/views/admin/pages/lists/items-page.vue b/src/views/admin/pages/lists/items-page.vue
index 80e1befc8..673147880 100644
--- a/src/views/admin/pages/lists/items-page.vue
+++ b/src/views/admin/pages/lists/items-page.vue
@@ -9,27 +9,8 @@
-
-
-
-
{{ $i18n.get('info_search_criteria') }}
-
-
-
-
-
@@ -75,9 +55,7 @@
-
+
@@ -91,19 +69,24 @@
@keyup.enter.native="updateSearch()"
icon-right="magnify"
icon-right-clickable
- @icon-right-click="updateSearch()" />
+ @icon-right-click="updateSearch()"
+ :disabled="openAdvancedSearch" />
{{ $i18n.get('advanced_search') }}
+ class="advanced-search-toggle has-text-secondary"
+ :class="openAdvancedSearch ? 'is-open' : 'is-closed'">
+ {{ $i18n.get('advanced_search') }}
+
+
+
+
@@ -478,41 +461,22 @@
@mousemove="handleMouseMoveOverList">
-
-
-
-
-
+
@@ -556,8 +520,7 @@
@@ -679,9 +640,6 @@
localDisplayedMetadata: [],
registeredViewModes: tainacan_plugin.registered_view_modes,
openAdvancedSearch: false,
- openFormAdvancedSearch: false,
- advancedSearchResults: false,
- isDoingSearch: false,
sortingMetadata: [],
isFiltersModalActive: false,
hasAnOpenModal: false,
@@ -746,7 +704,6 @@
openAdvancedSearch(newValue) {
if (newValue == false){
this.$eventBusSearch.$emit('closeAdvancedSearch');
- this.advancedSearchResults = false;
this.isFiltersModalActive = true;
} else {
this.isFiltersModalActive = false;
@@ -790,10 +747,6 @@
this.hasFiltered = hasFiltered;
});
- this.$eventBusSearch.$on('advancedSearchResults', advancedSearchResults => {
- this.advancedSearchResults = advancedSearchResults;
- });
-
this.$eventBusSearch.$on('hasToPrepareMetadataAndFilters', () => {
this.prepareMetadata();
});
@@ -1327,7 +1280,6 @@
// $eventBusSearch
this.$eventBusSearch.$off('isLoadingItems');
this.$eventBusSearch.$off('hasFiltered');
- this.$eventBusSearch.$off('advancedSearchResults');
this.$eventBusSearch.$off('hasToPrepareMetadataAndFilters');
}
}
@@ -1347,58 +1299,6 @@
overflow-y: auto;
}
- .advanced-search-criteria-title {
- margin-bottom: 40px;
-
- h1, h2 {
- font-size: 1.25em;
- font-weight: 500;
- color: var(--tainacan-heading-color);
- display: inline-block;
- margin-bottom: 0;
- }
- .field.is-grouped {
- margin-left: auto;
- }
- a.back-link{
- font-weight: 500;
- float: right;
- margin-top: 5px;
- }
- hr{
- margin: 3px 0px 4px 0px;
- height: 2px;
- background-color: var(--tainacan-secondary);
- border: none;
- }
- }
-
- .advanced-search-results-title {
- margin-bottom: 40px;
- margin: 0 var(--tainacan-one-column) 42px var(--tainacan-one-column);
-
- h1, h2 {
- font-size: 1.25em;
- font-weight: 500;
- color: var(--tainacan-heading-color);
- display: inline-block;
- margin-bottom: 0;
- }
- .field.is-grouped {
- margin-left: auto;
- }
- a.back-link{
- font-weight: 500;
- float: right;
- margin-top: 5px;
- }
- hr{
- margin: 3px 0px 4px 0px;
- height: 1px;
- background-color: var(--tainacan-secondary);
- }
- }
-
.advanced-search-form-submit {
display: flex;
justify-content: flex-end;
@@ -1516,7 +1416,7 @@
opacity: 1;
}
- .search-area .is-pulled-right {
+ .search-area .advanced-search-toggle {
display: none;
}
}
@@ -1538,10 +1438,6 @@
padding-right: 0;
max-width: 100% !important;
}
- .is-pulled-right {
- position: relative;
- right: 0px !important;
- }
}
}
@@ -1627,14 +1523,26 @@
width: 100%;
margin-bottom: 5px;
}
- .is-pulled-right {
- position: absolute;
- right: 15px;
- top: 100%;
- }
- a {
+ a.advanced-search-toggle {
margin-left: 12px;
white-space: nowrap;
+ position: absolute;
+ font-size: 0.75em;
+ right: 15px;
+ left: unset;
+ top: 100%;
+ transition: font-size 0.2s ease, right 0.3s ease, left 0.3s ease, top 0.4s ease;
+
+ .icon {
+ display: 0;
+ opacity: 0.0;
+ max-width: 0;
+ transition: opacity 0.2s ease, max-width 0.2s ease;
+ }
+
+ &.is-open {
+ font-size: 0;
+ }
}
}
diff --git a/src/views/admin/pages/lists/metadata-page.vue b/src/views/admin/pages/lists/metadata-page.vue
index 9cf65cea0..8893eaeed 100644
--- a/src/views/admin/pages/lists/metadata-page.vue
+++ b/src/views/admin/pages/lists/metadata-page.vue
@@ -560,8 +560,6 @@ export default {
.then(() => {
if (!this.isRepositoryLevel)
this.updateMetadataOrder();
- else
- this.$root.$emit('metadatumUpdated', this.isRepositoryLevel);
})
.catch(() => {
this.$console.log("Error deleting metadatum.")
diff --git a/src/views/admin/scss/_animations.scss b/src/views/admin/scss/_animations.scss
index 806694320..13bf35f42 100644
--- a/src/views/admin/scss/_animations.scss
+++ b/src/views/admin/scss/_animations.scss
@@ -121,6 +121,17 @@
transform: translate(0, 0px);
}
}
+.item-appear-enter-active {
+ animation-name: item-appear;
+ animation-duration: 0.2s;
+ animation-timing-function: ease-out;
+}
+.item-appear-leave-active {
+ animation-name: item-appear;
+ animation-duration: 0.2s;
+ animation-timing-function: ease-in;
+ animation-direction: reverse;
+}
// Filter Item Collapse
@keyframes filter-item-in {
diff --git a/src/views/gutenberg-blocks/blocks/faceted-search/theme-search/theme-items-page.vue b/src/views/gutenberg-blocks/blocks/faceted-search/theme-search/theme-items-page.vue
index dede25134..ebd3dbb28 100644
--- a/src/views/gutenberg-blocks/blocks/faceted-search/theme-search/theme-items-page.vue
+++ b/src/views/gutenberg-blocks/blocks/faceted-search/theme-search/theme-items-page.vue
@@ -8,57 +8,6 @@
'is-fullscreen': registeredViewModes[viewMode] != undefined && registeredViewModes[viewMode].full_screen
}"
aria-live="polite">
-
-
-
-
-
-
-
-
{{ $i18n.get('info_search_criteria') }}
-
-
-
-
-
-
-
-
-
-
@@ -398,34 +351,34 @@
-