Skip to content

Commit

Permalink
Merge branch 'dev' into saved-search-2140
Browse files Browse the repository at this point in the history
  • Loading branch information
prakhyatox committed Aug 2, 2024
2 parents 736c2f5 + 7b060f8 commit 12e710a
Show file tree
Hide file tree
Showing 61 changed files with 122 additions and 254 deletions.
2 changes: 1 addition & 1 deletion documentation/html/ExternalRESTClients.html
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion documentation/html/GraphQLClient.html
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion documentation/html/RESTClient.html
Original file line number Diff line number Diff line change
Expand Up @@ -8895,7 +8895,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion documentation/html/Static.html
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion documentation/html/classes.list.html
Original file line number Diff line number Diff line change
Expand Up @@ -2771,7 +2771,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
60 changes: 5 additions & 55 deletions documentation/html/components_Records_Record_Collections.vue.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ <h1 class="page-title">Source: components/Records/Record/Collections.vue</h1>
color="accent3"
slider-color="accent3"
class="mb-5"
:hide-slider="tabsData.tabs[Object.keys(tabsData.tabs)[tabsData.selectedTab]].type === 'conforming_resources'? !currentRecord['fairsharingRecord'].savedSearches.length : tabsData.tabs[Object.keys(tabsData.tabs)[tabsData.selectedTab]].data.length===0"
:hide-slider="tabsData.tabs[Object.keys(tabsData.tabs)[tabsData.selectedTab]].data.length===0"
>
&lt;v-tab
v-for="(tabName,tabIndex) in Object.keys(tabsData.tabs)"
:key="tabName+'_'+tabIndex"
:disabled="tabName === 'conforming_resources' ? !currentRecord['fairsharingRecord'].savedSearches.length : tabsData.tabs[tabName].data.length===0"
:disabled="tabsData.tabs[tabName].data.length===0"
@change="selectedValues=null"
>
{{ cleanString(tabName) }} ({{ tabName === 'conforming_resources' ? currentRecord['fairsharingRecord'].savedSearches.length : tabsData.tabs[tabName].count }})
{{ cleanString(tabName) }} ({{ tabsData.tabs[tabName].count }})
&lt;/v-tab>
&lt;/v-tabs>
&lt;!-- tab content -->
Expand All @@ -156,12 +156,7 @@ <h1 class="page-title">Source: components/Records/Record/Collections.vue</h1>
v-for="(tabItem,tabItemIndex) in filterList"
:key="tabItem+'_'+tabItemIndex"
>
&lt;SavedSearches
v-if="tabItem.type === 'conforming_resources'"
/>

&lt;v-virtual-scroll
v-else
:items="tabItem.data"
height="400"
item-height="130"
Expand Down Expand Up @@ -215,7 +210,6 @@ <h1 class="page-title">Source: components/Records/Record/Collections.vue</h1>
&lt;script>
import {mapState} from "vuex";

import SavedSearches from '@/components/Records/Record/GeneralInfo/SavedSearches'
import SectionTitle from '@/components/Records/Record/SectionTitle';
import RecordStatus from "@/components/Records/Shared/RecordStatus";
import recordRelationShipsDefinitions from "@/data/RecordRelationShipsDefinitions.json";
Expand All @@ -227,7 +221,6 @@ <h1 class="page-title">Source: components/Records/Record/Collections.vue</h1>
components: {
RecordStatus,
SectionTitle,
SavedSearches
},
mixins: [stringUtils, recordTabUtils],
props:{
Expand All @@ -245,42 +238,12 @@ <h1 class="page-title">Source: components/Records/Record/Collections.vue</h1>
tabs: {
in_collections: {relation: 'collects', data: [], count:0}
}
},
}
}
},
computed: {
...mapState("record", ["currentRecord"]),
},
watch:{
currentRecord() {
let _module = this
Object.keys(_module.tabsData.tabs).forEach(tabName => {
//Update the count of the conforming resources after unlinking saved search
if (tabName === 'conforming_resources') {
_module.tabsData.tabs[tabName].count = _module.currentRecord['fairsharingRecord'].savedSearches.length;
}
//If no saved search is available in conforming resources tab
if(!_module.currentRecord['fairsharingRecord'].savedSearches.length) {
//If no conforming resources is available then shift focus to Related Policies tab
if(tabName === "related_policies") {
if(_module.tabsData.tabs[tabName].data.length) {
this.tabsData.selectedTab = 1
}
}
//If no related policies is available then shift focus to In collections tab
else if(tabName === "in_collections") {
if(_module.tabsData.tabs[tabName].data.length) {
this.tabsData.selectedTab = 0
}
}
//If nothing is available make all tabs section disabled with its initial value i.e null
else {
this.selectedValues = null
}
}
})
}
},
methods: {
/** Dynamically sets data for each tabs based on the data received from recordAssociations and reverseAssociations*/
prepareTabsData() {
Expand All @@ -292,12 +255,6 @@ <h1 class="page-title">Source: components/Records/Record/Collections.vue</h1>
data: [],
count:0
}
_module.tabsData.tabs.conforming_resources = {
registry: ['Policy'],
data: [],
count:0,
type:'conforming_resources'
}
}
else {
_module.tabsData.tabs.in_policies = {
Expand Down Expand Up @@ -325,13 +282,6 @@ <h1 class="page-title">Source: components/Records/Record/Collections.vue</h1>
)
_module.tabsData.tabs[tabName].count = _module.tabsData.tabs[tabName].data.length;
}
//Save searches for the policy
else if (tabName === 'conforming_resources') {
_module.tabsData.tabs[tabName].data =
_module.currentRecord['fairsharingRecord'].savedSearches

_module.tabsData.tabs[tabName].count = _module.currentRecord['fairsharingRecord'].savedSearches.length;
}
// All incoming collections.
else {
_module.tabsData.tabs[tabName].data = _module.prepareAssociations(
Expand Down Expand Up @@ -407,7 +357,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion documentation/html/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -2751,7 +2751,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion documentation/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
2 changes: 1 addition & 1 deletion documentation/html/lib_Client_ExternalClients.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ <h4 class="modal-title">Search results</h4>
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.3</a>

on Thu Aug 1st 2024
on Fri Aug 2nd 2024

using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
</span>
Expand Down
Loading

0 comments on commit 12e710a

Please sign in to comment.