Declares all events in the "emits" array. #794.

This commit is contained in:
mateuswetah 2023-07-17 10:21:26 -03:00
parent f590930271
commit 93fa07c29b
69 changed files with 290 additions and 50 deletions

View File

@ -63,6 +63,10 @@
TainacanHeader,
TainacanRepositorySubheader
},
emits: [
'onCollectionBreadCrumbUpdate',
'openProcessesPopup'
],
data(){
return {
isMenuCompressed: false,

View File

@ -225,7 +225,13 @@ export default {
index: '',
editedFilter: Object,
originalFilter: Object,
},
},
emits: [
'onUpdateSavedState',
'onEditionFinished',
'onEditionCanceled',
'onErrorFound'
],
data(){
return {
form: {},
@ -237,8 +243,7 @@ export default {
entityName: 'filter',
isLoading: false
}
},
},
created() {
this.form = this.editedFilter;

View File

@ -58,7 +58,11 @@ export default {
totalAttachments: Number,
isLoading: Boolean,
shouldLoadAttachments: Boolean
}
},
emits: [
'openAttachmentsMediaFrame',
'onDeleteAttachment'
]
}
</script>

View File

@ -103,7 +103,14 @@ export default {
props: {
item: Object,
form: Object
}
},
emits: [
'onSetFileDocument',
'onSetTextDocument',
'onSetURLDocument',
'onSetDocument',
'onRemoveDocument'
]
}
</script>

View File

@ -765,6 +765,9 @@ export default {
next()
}
},
emits: [
'toggleItemEditionFooterDropdown'
],
data(){
return {
swiper: {},

View File

@ -199,6 +199,12 @@ export default {
currentUserCanPublish: Boolean,
isEditingItemMetadataInsideIframe: Boolean
},
emits: [
'onSubmit',
'onNextInSequence',
'onPrevInSequence',
'onDiscard',
],
mounted() {
this.$parent.$on('toggleItemEditionFooterDropdown', () => {
if (this.$refs && this.$refs['item-edition-footer-dropdown'])

View File

@ -106,6 +106,11 @@ export default {
item: Object,
form: Object
},
emits: [
'openThumbnailMediaFrame',
'onDeleteThumbnail',
'onUpdateThumbnailAlt'
],
methods: {
updateThumbnailAlt: _.debounce(function($event) {
this.$emit('onUpdateThumbnailAlt', $event.target.value);

View File

@ -259,6 +259,10 @@
collectionId: '',
isInsideImporterFlow: false,
},
emits: [
'onEditionFinished',
'onEditionCanceled'
],
data() {
return {
form: {},

View File

@ -402,6 +402,11 @@
isParentMultiple: false,
isInsideImporterFlow: false
},
emits: [
'onEditionFinished',
'onEditionCanceled',
'onErrorFound'
],
data() {
return {
form: {},

View File

@ -236,6 +236,9 @@
isHierarchical: Boolean,
isTermInsertionFlow: false
},
emits: [
'onEditionFinished'
],
data() {
return {
formErrors: {},

View File

@ -50,6 +50,9 @@
export default {
mixins: [filterTypeMixin, dynamicFilterTypeMixin],
emits: [
'input',
],
data(){
return {
selected:'',

View File

@ -72,6 +72,10 @@
props: {
filtersAsModal: Boolean
},
emits: [
'input',
'updateParentCollapse'
],
data(){
return {
options: [],
@ -99,10 +103,10 @@
this.loadOptions();
},
created() {
this.$eventBusSearch.$on('has-to-reload-facets', this.reloadOptions);
this.$eventBusSearch.$on('hasToReloadFacets', this.reloadOptions);
},
beforeUnmount() {
this.$eventBusSearch.$off('has-to-reload-facets', this.reloadOptions);
this.$eventBusSearch.$off('hasToReloadFacets', this.reloadOptions);
},
methods: {
reloadOptions(shouldReload) {

View File

@ -61,6 +61,9 @@
dateInter,
filterTypeMixin
],
emits: [
'input',
],
data(){
return {
dateInit: undefined,

View File

@ -123,6 +123,9 @@
dateInter,
filterTypeMixin
],
emits: [
'input',
],
data(){
return {
value: null,

View File

@ -34,6 +34,9 @@
type: [String]
}
},
emits: [
'input',
],
methods: {
onUpdateType(type) {
this.$emit('input', { type: type });

View File

@ -79,6 +79,9 @@
props: {
value: [String, Number, Array]
},
emits: [
'input',
],
data() {
return {
step: [Number, String],

View File

@ -30,6 +30,9 @@
import { filterTypeMixin } from '../../../js/filter-types-mixin';
export default {
mixins: [ filterTypeMixin ],
emits: [
'input',
],
data(){
return {
valueInit: null,

View File

@ -93,6 +93,9 @@
id: '',
disabled: false,
},
emits: [
'input',
],
data() {
return {
showIntervalOnTag: true,

View File

@ -22,6 +22,9 @@
import { filterTypeMixin } from '../../../js/filter-types-mixin';
export default {
mixins: [ filterTypeMixin ],
emits: [
'input',
],
data() {
return {
valueInit: 0,

View File

@ -78,6 +78,9 @@
props: {
value: [String, Number, Array]
},
emits: [
'input',
],
data() {
return {
step: [Number, String],

View File

@ -78,6 +78,9 @@
mixins: [
filterTypeMixin
],
emits: [
'input',
],
data(){
return {
value: null,

View File

@ -30,6 +30,10 @@
export default {
mixins: [filterTypeMixin, dynamicFilterTypeMixin],
emits: [
'input',
'updateParentCollapse'
],
data(){
return {
options: [],
@ -50,10 +54,10 @@
this.loadOptions();
},
created() {
this.$eventBusSearch.$on('has-to-reload-facets', this.reloadOptions);
this.$eventBusSearch.$on('hasToReloadFacets', this.reloadOptions);
},
beforeUnmount() {
this.$eventBusSearch.$off('has-to-reload-facets', this.reloadOptions);
this.$eventBusSearch.$off('hasToReloadFacets', this.reloadOptions);
},
methods: {
reloadOptions(shouldReload) {

View File

@ -50,6 +50,9 @@
export default {
mixins: [filterTypeMixin, dynamicFilterTypeMixin],
emits: [
'input',
],
data() {
return {
results:'',

View File

@ -78,6 +78,10 @@
currentCollectionId: String,
filtersAsModal: Boolean
},
emits: [
'input',
'updateParentCollapse'
],
data(){
return {
isLoadingOptions: true,
@ -125,7 +129,7 @@
this.taxonomyId = this.filter.metadatum.metadata_type_object.options.taxonomy_id;
this.taxonomy = this.filter.metadatum.metadata_type_object.options.taxonomy;
}
this.$eventBusSearch.$on('has-to-reload-facets', this.reloadOptions);
this.$eventBusSearch.$on('hasToReloadFacets', this.reloadOptions);
},
mounted(){
if (!this.isUsingElasticSearch)
@ -137,7 +141,7 @@
if (this.getOptionsValuesCancel != undefined)
this.getOptionsValuesCancel.cancel('Facet search Canceled.');
this.$eventBusSearch.$off('has-to-reload-facets', this.reloadOptions);
this.$eventBusSearch.$off('hasToReloadFacets', this.reloadOptions);
},
methods: {
...mapGetters('search', [

View File

@ -44,6 +44,9 @@
export default {
mixins: [ filterTypeMixin ],
emits: [
'input',
],
data(){
return {
isLoadingOptions: false,

View File

@ -102,6 +102,9 @@
shouldLoadAttachments: Boolean,
isEditable: Boolean,
},
emits: [
'onDeleteAttachment',
],
data() {
return {
attachmentsPage: 1,

View File

@ -514,6 +514,9 @@ export default {
props: {
metadataTypeFilterOptions: Array
},
emits: [
'onUpdatehighlightedMetadatum',
],
data() {
return {
collectionId: '',
@ -521,7 +524,7 @@ export default {
isUpdatingMetadataOrder: false,
openedMetadatumId: '',
openedMetadataSectionId: '',
hightlightedMetadatum: '',
highlightedMetadatum: '',
collapses: {},
collapseAll: false,
metadataNameFilterString: '',
@ -710,8 +713,8 @@ export default {
this.addNewMetadatum(metadatumType, this.activeMetadataSectionsList[0].metadata_object_list.length, 0);
// Higlights the clicked metadatum
this.hightlightedMetadatum = metadatumType.name;
this.$emit('onUpdatehightlightedMetadatum', this.hightlightedMetadatum);
this.highlightedMetadatum = metadatumType.name;
this.$emit('onUpdatehighlightedMetadatum', this.highlightedMetadatum);
},
addMetadataSectionViaButton() {
let lastIndex = this.activeMetadataSectionsList.length;
@ -734,9 +737,9 @@ export default {
this.updateMetadataOrder(sectionIndex);
this.toggleMetadatumEdition(metadatum)
this.hightlightedMetadatum = '';
this.highlightedMetadatum = '';
this.isUpdatingMetadatum = false;
this.$emit('onUpdatehightlightedMetadatum', this.hightlightedMetadatum);
this.$emit('onUpdatehighlightedMetadatum', this.highlightedMetadatum);
})
.catch((error) => {
this.isUpdatingMetadatum = false;

View File

@ -1885,6 +1885,10 @@ export default {
viewMode: 'card',
isRepositoryLevel: false
},
emits: [
'updateIsLoading',
'openProcessesPopup'
],
data(){
return {
isAllItemsSelected: false,

View File

@ -16,7 +16,7 @@
:id="metadatum.component"
@click.prevent.once="addMetadatumViaButton(metadatum)"
class="available-metadatum-item"
:class="{ 'hightlighted-metadatum' : hightlightedMetadatum == metadatum.name, 'inherited-metadatum': metadatum.inherited || isRepositoryLevel }"
:class="{ 'highlighted-metadatum' : highlightedMetadatum == metadatum.name, 'inherited-metadatum': metadatum.inherited || isRepositoryLevel }"
v-for="(metadatum, index) in availableMetadatumList"
:key="index">
<span
@ -59,7 +59,7 @@
</span>
<span
class="loading-spinner"
v-if="hightlightedMetadatum == metadatum.name"/>
v-if="highlightedMetadatum == metadatum.name"/>
</div>
</draggable>
@ -126,8 +126,11 @@ export default {
name: 'MetadataTypesList',
props: {
isRepositoryLevel: Boolean,
hightlightedMetadatum: String
highlightedMetadatum: String
},
emits: [
'onFinishedLoadingMetadataTypes'
],
data() {
return {
isLoadingMetadataTypes: true,
@ -351,7 +354,7 @@ export default {
border-color: transparent white transparent transparent;
}
}
.hightlighted-metadatum {
.highlighted-metadatum {
background-color: var(--tainacan-white);
position: relative;
left: 0px;

View File

@ -292,12 +292,15 @@ export default {
props: {
metadataTypeFilterOptions: Array
},
emits: [
'onUpdatehighlightedMetadatum',
],
data() {
return {
collectionId: 'default',
isLoadingMetadata: false,
openedMetadatumId: '',
hightlightedMetadatum: '',
highlightedMetadatum: '',
collapses: {},
collapseAll: false,
metadataNameFilterString: '',
@ -364,8 +367,8 @@ export default {
this.addNewMetadatum(metadatumType, lastIndex);
// Higlights the clicked metadatum
this.hightlightedMetadatum = metadatumType.name;
this.$emit('onUpdatehightlightedMetadatum', this.hightlightedMetadatum);
this.highlightedMetadatum = metadatumType.name;
this.$emit('onUpdatehighlightedMetadatum', this.highlightedMetadatum);
},
addNewMetadatum(newMetadatum, newIndex) {
this.sendMetadatum({
@ -379,8 +382,8 @@ export default {
})
.then((metadatum) => {
this.toggleMetadatumEdition(metadatum);
this.hightlightedMetadatum = '';
this.$emit('onUpdatehightlightedMetadatum', this.hightlightedMetadatum);
this.highlightedMetadatum = '';
this.$emit('onUpdatehighlightedMetadatum', this.highlightedMetadatum);
})
.catch((error) => {
this.$console.error(error);

View File

@ -281,6 +281,10 @@ export default {
searchString: String,
isHierarchical: Boolean
},
emits: [
'onUpdateSelectedColumnIndex',
'onUpdateSelectedTerms',
],
data() {
return {
termColumns: [],

View File

@ -131,6 +131,10 @@ export default {
currentUserCanEditTaxonomy: Boolean,
isHierarchical: Boolean
},
emits: [
'deleteSelectedTerms',
'updateSelectedTermsParent'
],
data() {
return {
searchString: '',

View File

@ -352,7 +352,7 @@
if (this.itemMetadatum.value && this.itemMetadatum.value[groupIndex] && this.itemMetadatum.value[groupIndex][0]) {
this.isRemovingGroup = true;
eventBusItemMetadata.$emit('remove_group', {
eventBusItemMetadata.$emit('removeCompoundGroup', {
itemId: this.itemMetadatum.item.id,
metadatumId: this.itemMetadatum.metadatum.id,
parentMetaId: this.itemMetadatum.item.id ? this.itemMetadatum.value[groupIndex][0].parent_meta_id : groupIndex

View File

@ -263,7 +263,7 @@
isLoadingMetadata: false,
isUpdatingMetadataOrder: false,
openedMetadatumId: '',
hightlightedMetadatum: '',
highlightedMetadatum: '',
metadataSearchCancel: undefined,
childrenMetadata: [],
collapses: {}
@ -353,7 +353,7 @@
this.updateMetadataOrder();
this.toggleMetadatumEdition(metadatum.id)
this.hightlightedMetadatum = '';
this.highlightedMetadatum = '';
})
.catch((error) => {
this.$console.error(error);

View File

@ -45,6 +45,11 @@
value: [String, Number, Array],
disabled: false,
},
emits: [
'input',
'blur',
'mobileSpecialFocus'
],
data() {
return {
dateValue: '',

View File

@ -76,6 +76,7 @@
props: {
value: [ String, Object, Array ]
},
emits: ['input'],
data() {
return {
mapProvider: String,

View File

@ -119,6 +119,7 @@
maxtags: '',
isLastMetadatum: false
},
emits: ['input'],
data() {
return {
editingMarkerIndex: -1,

View File

@ -77,6 +77,7 @@
props: {
value: [ String, Object, Array ]
},
emits: ['input'],
data() {
return {
step: [Number, String],

View File

@ -19,6 +19,11 @@
value: [String, Number, Array],
disabled: false,
},
emits: [
'input',
'blur',
'mobileSpecialFocus'
],
computed: {
getStep() {
if (this.itemMetadatum && this.itemMetadatum.metadatum.metadata_type_options && this.itemMetadatum.metadatum.metadata_type_options.step)

View File

@ -133,6 +133,7 @@
metadatum: [ String, Object ],
errors: [ String, Object, Array ]
},
emits: ['input'],
data(){
return {
icon: '',

View File

@ -154,6 +154,11 @@
isLastMetadatum: false,
isMobileScreen: false
},
emits: [
'input',
'blur',
'mobileSpecialFocus'
],
data() {
return {
selected:[],

View File

@ -58,6 +58,7 @@
metadatum: [ String, Object ],
errors: [ String, Object, Array ]
},
emits: ['input'],
data() {
return {
optionType: '',

View File

@ -32,6 +32,10 @@
value: [String, Number, Array],
disabled: false,
},
emits: [
'input',
'mobileSpecialFocus'
],
computed: {
getOptions(){
if (this.itemMetadatum && this.itemMetadatum.metadatum.metadata_type_options && this.itemMetadatum.metadatum.metadata_type_options.options ) {

View File

@ -1,7 +1,7 @@
<template>
<b-field
:class="metadatumFormClasses"
:ref="isHighlightedMetadatum ? 'hightlighted-metadatum': 'null'"
:ref="isHighlightedMetadatum ? 'highlighted-metadatum': 'null'"
:addons="false"
:message="errorMessage"
:type="errorMessage ? 'is-danger' : ''">
@ -173,6 +173,11 @@
isFocused: false,
isMetadataNavigation: false
},
emits: [
'input',
'changeCollapse',
'mobileSpecialFocus'
],
data(){
return {
values: [],
@ -203,7 +208,7 @@
metadatumFormClasses() {
return '' +
(this.hideCollapses ? ' has-collapses-hidden' : '') +
(this.isHighlightedMetadatum ? ' hightlighted-metadatum' : '') +
(this.isHighlightedMetadatum ? ' highlighted-metadatum' : '') +
(this.metadatumComponent ? ' tainacan-metadatum-component--' + this.metadatumComponent : '') +
(this.itemMetadatum && this.itemMetadatum.metadatum && this.itemMetadatum.metadatum.placeholder ? ' has-placeholder' : '') +
(this.itemMetadatum && this.itemMetadatum.metadatum && this.itemMetadatum.metadatum.description ? ' has-description' : '') +
@ -236,7 +241,7 @@
if (this.isHighlightedMetadatum) {
nextTick(() => {
let highlightedMetadatum = this.$refs['hightlighted-metadatum'];
let highlightedMetadatum = this.$refs['highlighted-metadatum'];
if (highlightedMetadatum && highlightedMetadatum.$el && highlightedMetadatum.$el.scrollIntoView)
setTimeout(() => highlightedMetadatum.$el.scrollIntoView(), 500);
});
@ -363,7 +368,7 @@
border-bottom: 1px solid var(--tainacan-input-border-color);
padding: 10px var(--tainacan-container-padding);
&.hightlighted-metadatum {
&.highlighted-metadatum {
background-color: var(--tainacan-white);
transition: background-color 0.8s;
animation-name: metadatum-highlight;

View File

@ -181,6 +181,7 @@
metadatum: [ String, Object ],
errors: [ String, Object, Array ]
},
emits: ['input'],
data(){
return {
isReady: false,

View File

@ -102,6 +102,11 @@
allowSelectToCreate: false,
isMobileScreen: false,
},
emits: [
'input',
'updateTaxonomyInputs',
'mobileSpecialFocus'
],
data(){
return {
valueComponent: null,
@ -191,7 +196,7 @@
}).then(() => {
this.isAddingNewTermVaue = false;
this.valueComponent = term.id;
this.$emit('update-taxonomy-inputs', { taxonomyId: this.taxonomyId, metadatumId: this.itemMetadatum.metadatum.id });
this.$emit('updateTaxonomyInputs', { taxonomyId: this.taxonomyId, metadatumId: this.itemMetadatum.metadatum.id });
})
} else {
val = val ? val : [];
@ -201,7 +206,7 @@
}).then(() => {
this.isAddingNewTermVaue = false;
this.valueComponent = val;
this.$emit('update-taxonomy-inputs', { taxonomyId: this.taxonomyId, metadatumId: this.itemMetadatum.metadatum.id });
this.$emit('updateTaxonomyInputs', { taxonomyId: this.taxonomyId, metadatumId: this.itemMetadatum.metadatum.id });
})
}
}

View File

@ -61,6 +61,10 @@
maxtags: '',
isLastMetadatum: false
},
emits: [
'input',
'showAddNewTerm'
],
data() {
return {
selected: [],

View File

@ -22,6 +22,7 @@
props: {
value: [ String, Object, Array ]
},
emits: ['input'],
data() {
return {
displaySuggestions: String

View File

@ -52,6 +52,11 @@
value: [String, Number, Array],
disabled: false
},
emits: [
'input',
'blur',
'mobileSpecialFocus'
],
data() {
return {
selected:'',

View File

@ -17,6 +17,11 @@
value: [String, Number, Array],
disabled: false
},
emits: [
'input',
'blur',
'mobileSpecialFocus'
],
methods: {
onInput(value) {
this.$emit('input', value);

View File

@ -23,6 +23,9 @@
props: {
value: [ String, Object, Array ]
},
emits: [
'input',
],
data() {
return {
defaultAuthor: String

View File

@ -63,6 +63,11 @@ export default {
allowNew: true,
isLastMetadatum: false
},
emits: [
'input',
'blur',
'mobileSpecialFocus'
],
data() {
return {
selected:[],

View File

@ -614,6 +614,10 @@
props: {
activityId: String
},
emits: [
'approveActivity',
'notApproveActivity',
],
data() {
return {
infoEmpty: `[ ${this.$i18n.get('info_empty').toLowerCase()} ]`,

View File

@ -37,6 +37,10 @@ export default {
props: {
textContent: ''
},
emits: [
'confirmTextWriting',
'cancelTextWriting'
],
data(){
return {
localTextContent: ''

View File

@ -90,6 +90,7 @@ export default {
urlIframeHeight: 450,
urlIsImage: false,
},
emits: ['confirmURLSelection'],
data(){
return {
localUrlLink: '',

View File

@ -349,6 +349,10 @@
default: true,
}
},
emits: [
'input',
'appliedCheckBoxModal'
],
data() {
return {
finderColumns: [],
@ -398,7 +402,7 @@
else
this.isCheckboxListLoading = true;
this.$parent.$on('update-taxonomy-inputs', ($event) => {
this.$parent.$on('updateTaxonomyInputs', ($event) => {
if ($event.taxonomyId == this.taxonomy_id && $event.metadatumId == this.metadatumId) {
this.finderColumns = [];
this.optionName = '';

View File

@ -347,6 +347,11 @@
maxMultipleValues: undefined,
isMobileScreen: false
},
emits: [
'input',
'mobileSpecialFocus',
'showAddNewTerm'
],
data() {
return {
finderColumns: [],
@ -400,7 +405,7 @@
this.expandResultsSection = this.shouldBeginWithListExpanded;
this.$parent.$on('update-taxonomy-inputs', ($event) => {
this.$parent.$on('updateTaxonomyInputs', ($event) => {
if ($event.taxonomyId == this.taxonomy_id && $event.metadatumId == this.metadatumId) {
this.finderColumns = [];
this.optionName = '';

View File

@ -155,6 +155,9 @@ import moment from 'moment';
export default {
name: 'ProcessesPopup',
emits: [
'closeProcessesPopup'
],
data() {
return {
showProcessesList: false,

View File

@ -244,6 +244,10 @@
isRepositoryLevel: false,
collectionId: ''
},
emits: [
'close',
'performAdvancedSearch'
],
data() {
return {
metaqueryOperatorsForInterval: {

View File

@ -319,6 +319,9 @@
isLoadingItems: Boolean,
isMobileScreen: false
},
emits: [
'updateIsLoadingItemsState'
],
data() {
return {
isLoadingFilters: false,

View File

@ -1,7 +1,7 @@
import { createApp } from 'vue';
import store from './store/store'
export const eventBusItemMetadata = new createApp({
export const eventBusItemMetadata = createApp({
store,
data: {
errors : [],
@ -17,13 +17,26 @@ export const eventBusItemMetadata = new createApp({
}
}
},
emits: [
'input',
'itemEditionFormResize',
'focusPreviousChildMetadatum',
'focusNextChildMetadatum',
'removeCompoundGroup',
'isOnLastMetadatumOfCompoundNavigation',
'isOnFirstMetadatumOfCompoundNavigation',
'hasErrorsOnForm',
'updateErrorMessageOf#',
'hasRemovedItemMetadataGroup',
'isUpdatingValue'
],
created() {
this.$on('input', this.updateValue);
this.$on('remove_group', this.removeItemMetadataGroup);
this.$on('removeCompoundGroup', this.removeItemMetadataGroup);
},
beforeUpdate() {
this.$off('input', this.updateValue);
this.$on('remove_group', this.removeItemMetadataGroup);
this.$on('removeCompoundGroup', this.removeItemMetadataGroup);
},
methods : {
updateValue({ itemId, metadatumId, values, parentMetaId, parentId }){

View File

@ -4,7 +4,11 @@ export default {
install(app, options = {}) {
app.config.globalProperties.$eventBusMetadataList = new createApp({
app.config.globalProperties.$eventBusMetadataList = createApp({
emits: [
'addMetadatumViaButton',
'addMetadataSectionViaButton'
],
methods: {
onAddMetadatumViaButton(metadataType) {
this.$emit('addMetadatumViaButton', metadataType);

View File

@ -4,7 +4,7 @@ export default {
install(app, options = {}) {
app.config.globalProperties.$eventBusSearch = new createApp({
app.config.globalProperties.$eventBusSearch = createApp({
router: options.router,
store: options.store,
data: {
@ -17,6 +17,14 @@ export default {
termId: undefined,
searchCancel: undefined
},
emits: [
'input',
'startSlideshowFromItem',
'hasToReloadFacets',
'isLoadingItems',
'hasFiltered',
'closeAdvancedSearch'
],
created() {
this.$on('input', data => {
if (data.taxonomy)
@ -126,7 +134,7 @@ export default {
// Emit slideshow-from to start this view mode from index
if (this.$route.query.view_mode != 'slideshow' && this.$route.query['slideshow-from'] !== null && this.$route.query['slideshow-from'] !== undefined && this.$route.query['slideshow-from'] !== false)
this.$emit('start-slideshow-from-item', this.$route.query['slideshow-from']);
this.$emit('startSlideshowFromItem', this.$route.query['slideshow-from']);
// Admin View Modes
if (this.$route.name != null && this.$route.name != undefined &&
@ -174,7 +182,7 @@ export default {
JSON.stringify(oldStatusArray) != JSON.stringify(newStatusArray) ||
JSON.stringify(oldSearchQuery) != JSON.stringify(newSearchQuery)
) {
this.$emit('has-to-reload-facets', true);
this.$emit('hasToReloadFacets', true);
}
// Finally, loads items

View File

@ -43,6 +43,7 @@ export const dynamicFilterTypeMixin = {
facetSearchPage: 1
}
},
emits: ['updateParentCollapse'],
computed: {
facetsFromItemSearch() {
return this.getFacets();

View File

@ -21,15 +21,15 @@
<repository-metadata-list
v-if="isRepositoryLevel"
:metadata-type-filter-options="metadataTypeFilterOptions"
@onUpdatehightlightedMetadatum="(newValue) => hightlightedMetadatum = newValue" />
@onUpdatehighlightedMetadatum="(newValue) => highlightedMetadatum = newValue" />
<collection-metadata-list
v-else
:metadata-type-filter-options="metadataTypeFilterOptions"
@onUpdatehightlightedMetadatum="(newValue) => hightlightedMetadatum = newValue" />
@onUpdatehighlightedMetadatum="(newValue) => highlightedMetadatum = newValue" />
<!-- Available Metadata Area -->
<metadata-types-list
:hightlighted-metadatum="hightlightedMetadatum"
:highlighted-metadatum="highlightedMetadatum"
:is-repository-level="isRepositoryLevel"
@onFinishedLoadingMetadataTypes="createMetadataTypeFilterOptions"/>
</div>
@ -78,7 +78,7 @@ export default {
return {
isRepositoryLevel: false,
activeTab: 0,
hightlightedMetadatum: '',
highlightedMetadatum: '',
metadataTypeFilterOptions: []
}
},

View File

@ -927,7 +927,7 @@
});
}
this.$eventBusSearch.$on('start-slideshow-from-item', (index) => {
this.$eventBusSearch.$on('startSlideshowFromItem', (index) => {
let currentQuery = this.$route.query;
delete currentQuery['slideshow-from'];
this.$router.replace({ query: currentQuery }).catch((error) => this.$console.log(error));

View File

@ -135,6 +135,9 @@ export default {
itemsCountStyle: String,
imageSize: String
},
emits: [
'onDisplayChildTerms'
],
computed:{
facetId() {
return (this.facet.id != undefined ? this.facet.id : this.facet.value);
@ -142,7 +145,7 @@ export default {
},
methods: {
displayChildTerms(facetId) {
this.$emit('on-display-child-terms', facetId)
this.$emit('onDisplayChildTerms', facetId)
},
isCollapseInsteadOfLink(facet) {
return (this.appendChildTerms && facet.total_children > 0 && (!this.childFacetsObject[facet.id != undefined ? facet.id : facet.value] || this.childFacetsObject[facet.id != undefined ? facet.id : facet.value].facets.length) );

View File

@ -122,6 +122,10 @@
taxonomyId: '',
isHierarchical: Boolean
},
emits: [
'onEditionFinished',
'onEditionCanceled'
],
data() {
return {
formErrors: {},

View File

@ -97,6 +97,9 @@ import { reportsChartMixin } from '../js/reports-mixin';
export default {
mixins: [ reportsChartMixin ],
emits: [
'timeRangeUpdate'
],
data() {
return {
chartSeriesByUser: [],
@ -136,7 +139,7 @@ export default {
let currentStartDate = new Date(this.currentStart.getTime());
const newStart = new Date(currentStartDate.setFullYear(newStartYear));
this.setStartDate(newStart.toISOString());
this.$emit('time-range-update', newStart.toISOString());
this.$emit('timeRangeUpdate', newStart.toISOString());
},
getDaysArray(start, end) {
let everyDay = [];