Adds v-model:value to custom components v-model. #794.
This commit is contained in:
parent
93fa07c29b
commit
d6b74c9964
|
@ -26,7 +26,7 @@
|
||||||
<b-input
|
<b-input
|
||||||
id="tainacan-text-name"
|
id="tainacan-text-name"
|
||||||
:placeholder="$i18n.get('instruction_collection_name')"
|
:placeholder="$i18n.get('instruction_collection_name')"
|
||||||
v-model="form.name"
|
v-model:value="form.name"
|
||||||
@blur="updateSlug"
|
@blur="updateSlug"
|
||||||
@focus="clearErrors('name')"/>
|
@focus="clearErrors('name')"/>
|
||||||
</b-field>
|
</b-field>
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
type="textarea"
|
type="textarea"
|
||||||
rows="3"
|
rows="3"
|
||||||
:placeholder="$i18n.get('instruction_collection_description')"
|
:placeholder="$i18n.get('instruction_collection_description')"
|
||||||
v-model="form.description"
|
v-model:value="form.description"
|
||||||
@focus="clearErrors('description')"/>
|
@focus="clearErrors('description')"/>
|
||||||
</b-field>
|
</b-field>
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@
|
||||||
<b-input
|
<b-input
|
||||||
id="tainacan-text-slug"
|
id="tainacan-text-slug"
|
||||||
@input="updateSlug"
|
@input="updateSlug"
|
||||||
v-model="form.slug"
|
v-model:value="form.slug"
|
||||||
@focus="clearErrors('slug')"
|
@focus="clearErrors('slug')"
|
||||||
:disabled="isUpdatingSlug"
|
:disabled="isUpdatingSlug"
|
||||||
:loading="isUpdatingSlug"/>
|
:loading="isUpdatingSlug"/>
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
<label class="label">{{ $i18n.get('label_sort') }} </label>
|
<label class="label">{{ $i18n.get('label_sort') }} </label>
|
||||||
<b-select
|
<b-select
|
||||||
id="tainacan-select-default_order"
|
id="tainacan-select-default_order"
|
||||||
v-model="form.default_order">
|
v-model:value="form.default_order">
|
||||||
<option
|
<option
|
||||||
role="button"
|
role="button"
|
||||||
:class="{ 'is-active': form.default_order == 'DESC' }"
|
:class="{ 'is-active': form.default_order == 'DESC' }"
|
||||||
|
@ -110,7 +110,7 @@
|
||||||
<b-select
|
<b-select
|
||||||
expanded
|
expanded
|
||||||
:loading="isLoadingMetadata"
|
:loading="isLoadingMetadata"
|
||||||
v-model="localDefaultOrderBy"
|
v-model:value="localDefaultOrderBy"
|
||||||
id="tainacan-select-default_orderby">
|
id="tainacan-select-default_orderby">
|
||||||
<option
|
<option
|
||||||
v-for="metadatum of sortingMetadata"
|
v-for="metadatum of sortingMetadata"
|
||||||
|
@ -193,7 +193,7 @@
|
||||||
<b-select
|
<b-select
|
||||||
expanded
|
expanded
|
||||||
id="tainacan-select-default_view_mode"
|
id="tainacan-select-default_view_mode"
|
||||||
v-model="form.default_view_mode"
|
v-model:value="form.default_view_mode"
|
||||||
@focus="clearErrors('default_view_mode')">
|
@focus="clearErrors('default_view_mode')">
|
||||||
<option
|
<option
|
||||||
v-for="(viewMode, index) of validDefaultViewModes"
|
v-for="(viewMode, index) of validDefaultViewModes"
|
||||||
|
@ -215,7 +215,7 @@
|
||||||
size="is-small"
|
size="is-small"
|
||||||
true-value="yes"
|
true-value="yes"
|
||||||
false-value="no"
|
false-value="no"
|
||||||
v-model="form.hide_items_thumbnail_on_lists" />
|
v-model:value="form.hide_items_thumbnail_on_lists" />
|
||||||
<help-button
|
<help-button
|
||||||
:title="$i18n.getHelperTitle('collections', 'hide_items_thumbnail_on_lists')"
|
:title="$i18n.getHelperTitle('collections', 'hide_items_thumbnail_on_lists')"
|
||||||
:message="$i18n.getHelperMessage('collections', 'hide_items_thumbnail_on_lists')"/>
|
:message="$i18n.getHelperMessage('collections', 'hide_items_thumbnail_on_lists')"/>
|
||||||
|
@ -231,7 +231,7 @@
|
||||||
size="is-small"
|
size="is-small"
|
||||||
true-value="open"
|
true-value="open"
|
||||||
false-value="closed"
|
false-value="closed"
|
||||||
v-model="form.allow_comments" />
|
v-model:value="form.allow_comments" />
|
||||||
<help-button
|
<help-button
|
||||||
:title="$i18n.getHelperTitle('collections', 'allow_comments')"
|
:title="$i18n.getHelperTitle('collections', 'allow_comments')"
|
||||||
:message="$i18n.getHelperMessage('collections', 'allow_comments')"/>
|
:message="$i18n.getHelperMessage('collections', 'allow_comments')"/>
|
||||||
|
@ -249,7 +249,7 @@
|
||||||
size="is-small"
|
size="is-small"
|
||||||
true-value="yes"
|
true-value="yes"
|
||||||
false-value="no"
|
false-value="no"
|
||||||
v-model="form.allows_submission" />
|
v-model:value="form.allows_submission" />
|
||||||
<help-button
|
<help-button
|
||||||
:title="$i18n.getHelperTitle('collections', 'allows_submission')"
|
:title="$i18n.getHelperTitle('collections', 'allows_submission')"
|
||||||
:message="$i18n.getHelperMessage('collections', 'allows_submission')"/>
|
:message="$i18n.getHelperMessage('collections', 'allows_submission')"/>
|
||||||
|
@ -272,7 +272,7 @@
|
||||||
size="is-small"
|
size="is-small"
|
||||||
true-value="yes"
|
true-value="yes"
|
||||||
false-value="no"
|
false-value="no"
|
||||||
v-model="form.submission_anonymous_user" />
|
v-model:value="form.submission_anonymous_user" />
|
||||||
<help-button
|
<help-button
|
||||||
:title="$i18n.getHelperTitle('collections', 'submission_anonymous_user')"
|
:title="$i18n.getHelperTitle('collections', 'submission_anonymous_user')"
|
||||||
:message="$i18n.getHelperMessage('collections', 'submission_anonymous_user')"/>
|
:message="$i18n.getHelperMessage('collections', 'submission_anonymous_user')"/>
|
||||||
|
@ -289,7 +289,7 @@
|
||||||
:message="$i18n.getHelperMessage('collections', 'submission_default_status')"/>
|
:message="$i18n.getHelperMessage('collections', 'submission_default_status')"/>
|
||||||
<div class="status-radios">
|
<div class="status-radios">
|
||||||
<b-radio
|
<b-radio
|
||||||
v-model="form.submission_default_status"
|
v-model:value="form.submission_default_status"
|
||||||
v-for="(statusOption, index) of $statusHelper.getStatuses().filter((status) => status.slug != 'trash')"
|
v-for="(statusOption, index) of $statusHelper.getStatuses().filter((status) => status.slug != 'trash')"
|
||||||
:key="index"
|
:key="index"
|
||||||
:native-value="statusOption.slug">
|
:native-value="statusOption.slug">
|
||||||
|
@ -322,7 +322,7 @@
|
||||||
size="is-small"
|
size="is-small"
|
||||||
true-value="yes"
|
true-value="yes"
|
||||||
false-value="no"
|
false-value="no"
|
||||||
v-model="form.submission_use_recaptcha" />
|
v-model:value="form.submission_use_recaptcha" />
|
||||||
<help-button
|
<help-button
|
||||||
:title="$i18n.getHelperTitle('collections', 'submission_use_recaptcha')"
|
:title="$i18n.getHelperTitle('collections', 'submission_use_recaptcha')"
|
||||||
:message="$i18n.getHelperMessage('collections', 'submission_use_recaptcha')"/>
|
:message="$i18n.getHelperMessage('collections', 'submission_use_recaptcha')"/>
|
||||||
|
@ -358,7 +358,7 @@
|
||||||
:message="$i18n.getHelperMessage('collections', 'status')"/>
|
:message="$i18n.getHelperMessage('collections', 'status')"/>
|
||||||
<div class="status-radios">
|
<div class="status-radios">
|
||||||
<b-radio
|
<b-radio
|
||||||
v-model="form.status"
|
v-model:value="form.status"
|
||||||
v-for="(statusOption, index) of $statusHelper.getStatuses().filter((status) => status.slug != 'draft')"
|
v-for="(statusOption, index) of $statusHelper.getStatuses().filter((status) => status.slug != 'draft')"
|
||||||
:key="index"
|
:key="index"
|
||||||
:native-value="statusOption.slug">
|
:native-value="statusOption.slug">
|
||||||
|
@ -505,7 +505,7 @@
|
||||||
size="is-small"
|
size="is-small"
|
||||||
true-value="yes"
|
true-value="yes"
|
||||||
false-value="no"
|
false-value="no"
|
||||||
v-model="form.enable_cover_page" />
|
v-model:value="form.enable_cover_page" />
|
||||||
<help-button
|
<help-button
|
||||||
:title="$i18n.getHelperTitle('collections', 'cover_page_id')"
|
:title="$i18n.getHelperTitle('collections', 'cover_page_id')"
|
||||||
:message="$i18n.getHelperMessage('collections', 'cover_page_id')"/>
|
:message="$i18n.getHelperMessage('collections', 'cover_page_id')"/>
|
||||||
|
@ -513,7 +513,7 @@
|
||||||
id="tainacan-text-cover-page"
|
id="tainacan-text-cover-page"
|
||||||
:placeholder="$i18n.get('instruction_cover_page')"
|
:placeholder="$i18n.get('instruction_cover_page')"
|
||||||
:data="coverPages"
|
:data="coverPages"
|
||||||
v-model="coverPageTitle"
|
v-model:value="coverPageTitle"
|
||||||
@select="onSelectCoverPage($event)"
|
@select="onSelectCoverPage($event)"
|
||||||
:loading="isFetchingPages"
|
:loading="isFetchingPages"
|
||||||
@input="fecthCoverPages"
|
@input="fecthCoverPages"
|
||||||
|
@ -608,7 +608,7 @@
|
||||||
<b-select
|
<b-select
|
||||||
expanded
|
expanded
|
||||||
id="tainacan-select-parent"
|
id="tainacan-select-parent"
|
||||||
v-model="form.parent"
|
v-model:value="form.parent"
|
||||||
@focus="clearErrors('parent')"
|
@focus="clearErrors('parent')"
|
||||||
:loading="isFetchingCollections"
|
:loading="isFetchingCollections"
|
||||||
:placeholder="$i18n.get('instruction_select_a_parent_collection')">
|
:placeholder="$i18n.get('instruction_select_a_parent_collection')">
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
<b-select
|
<b-select
|
||||||
@input="formErrorMessage = null"
|
@input="formErrorMessage = null"
|
||||||
expanded
|
expanded
|
||||||
v-model="selectedCollection"
|
v-model:value="selectedCollection"
|
||||||
:loading="isFetchingCollections"
|
:loading="isFetchingCollections"
|
||||||
:placeholder="$i18n.get('instruction_select_a_collection')">
|
:placeholder="$i18n.get('instruction_select_a_collection')">
|
||||||
<option
|
<option
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
<b-select
|
<b-select
|
||||||
@input="formErrorMessage = null"
|
@input="formErrorMessage = null"
|
||||||
expanded
|
expanded
|
||||||
v-model="selectedMapping"
|
v-model:value="selectedMapping"
|
||||||
:placeholder="$i18n.get('instruction_select_a_mapper')">
|
:placeholder="$i18n.get('instruction_select_a_mapper')">
|
||||||
<option
|
<option
|
||||||
v-if="exporterSession.accept_no_mapping"
|
v-if="exporterSession.accept_no_mapping"
|
||||||
|
@ -81,7 +81,7 @@
|
||||||
<b-checkbox
|
<b-checkbox
|
||||||
true-value="1"
|
true-value="1"
|
||||||
false-value="0"
|
false-value="0"
|
||||||
v-model="sendEmail"
|
v-model:value="sendEmail"
|
||||||
@input="formErrorMessage = null">
|
@input="formErrorMessage = null">
|
||||||
{{ $i18n.get('label_yes') }}
|
{{ $i18n.get('label_yes') }}
|
||||||
</b-checkbox>
|
</b-checkbox>
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
:message="$i18n.getHelperMessage('filters', 'name')"/>
|
:message="$i18n.getHelperMessage('filters', 'name')"/>
|
||||||
</label>
|
</label>
|
||||||
<b-input
|
<b-input
|
||||||
v-model="form.name"
|
v-model:value="form.name"
|
||||||
name="name"
|
name="name"
|
||||||
@focus="clearErrors('name')"/>
|
@focus="clearErrors('name')"/>
|
||||||
</b-field>
|
</b-field>
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
type="textarea"
|
type="textarea"
|
||||||
name="description"
|
name="description"
|
||||||
:rows="3"
|
:rows="3"
|
||||||
v-model="form.description"
|
v-model:value="form.description"
|
||||||
@focus="clearErrors('description')" />
|
@focus="clearErrors('description')" />
|
||||||
</b-field>
|
</b-field>
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@
|
||||||
@focus="clearErrors('label_status')"
|
@focus="clearErrors('label_status')"
|
||||||
id="tainacan-select-status-publish"
|
id="tainacan-select-status-publish"
|
||||||
name="status"
|
name="status"
|
||||||
v-model="form.status"
|
v-model:value="form.status"
|
||||||
native-value="publish">
|
native-value="publish">
|
||||||
<span class="icon has-text-gray3">
|
<span class="icon has-text-gray3">
|
||||||
<i class="tainacan-icon tainacan-icon-public"/>
|
<i class="tainacan-icon tainacan-icon-public"/>
|
||||||
|
@ -76,7 +76,7 @@
|
||||||
@focus="clearErrors('label_status')"
|
@focus="clearErrors('label_status')"
|
||||||
id="tainacan-select-status-private"
|
id="tainacan-select-status-private"
|
||||||
name="status"
|
name="status"
|
||||||
v-model="form.status"
|
v-model:value="form.status"
|
||||||
native-value="private">
|
native-value="private">
|
||||||
<span class="icon has-text-gray3">
|
<span class="icon has-text-gray3">
|
||||||
<i class="tainacan-icon tainacan-icon-private"/>
|
<i class="tainacan-icon tainacan-icon-private"/>
|
||||||
|
@ -101,7 +101,7 @@
|
||||||
class="is-flex">
|
class="is-flex">
|
||||||
<b-select
|
<b-select
|
||||||
name="max_options"
|
name="max_options"
|
||||||
v-model="form.max_options"
|
v-model:value="form.max_options"
|
||||||
:placeholder="$i18n.get('instruction_select_max_options_to_show')">
|
:placeholder="$i18n.get('instruction_select_max_options_to_show')">
|
||||||
<option value="4">4</option>
|
<option value="4">4</option>
|
||||||
<option value="8">8</option>
|
<option value="8">8</option>
|
||||||
|
@ -132,7 +132,7 @@
|
||||||
class="is-flex">
|
class="is-flex">
|
||||||
<b-input
|
<b-input
|
||||||
name="max_options"
|
name="max_options"
|
||||||
v-model="form.max_options"
|
v-model:value="form.max_options"
|
||||||
type="number"
|
type="number"
|
||||||
step="1" />
|
step="1" />
|
||||||
<button
|
<button
|
||||||
|
@ -161,7 +161,7 @@
|
||||||
<b-switch
|
<b-switch
|
||||||
size="is-small"
|
size="is-small"
|
||||||
@input="clearErrors('begin_with_filter_collapsed')"
|
@input="clearErrors('begin_with_filter_collapsed')"
|
||||||
v-model="form.begin_with_filter_collapsed"
|
v-model:value="form.begin_with_filter_collapsed"
|
||||||
:true-value="'yes'"
|
:true-value="'yes'"
|
||||||
:false-value="'no'"
|
:false-value="'no'"
|
||||||
:native-value="form.begin_with_filter_collapsed == 'yes' ? 'yes' : 'no'"
|
:native-value="form.begin_with_filter_collapsed == 'yes' ? 'yes' : 'no'"
|
||||||
|
@ -178,7 +178,7 @@
|
||||||
v-if="(form.filter_type_object && form.filter_type_object.form_component) || form.edit_form == ''"
|
v-if="(form.filter_type_object && form.filter_type_object.form_component) || form.edit_form == ''"
|
||||||
:is="form.filter_type_object.form_component"
|
:is="form.filter_type_object.form_component"
|
||||||
:filter="form"
|
:filter="form"
|
||||||
v-model="form.filter_type_options"/>
|
v-model:value="form.filter_type_options"/>
|
||||||
<div
|
<div
|
||||||
v-html="form.edit_form"
|
v-html="form.edit_form"
|
||||||
v-else/>
|
v-else/>
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
<br>
|
<br>
|
||||||
<b-upload
|
<b-upload
|
||||||
v-if="importer.tmp_file == undefined && (importerFile == undefined || importerFile == null || importerFile == '')"
|
v-if="importer.tmp_file == undefined && (importerFile == undefined || importerFile == null || importerFile == '')"
|
||||||
v-model="importerFile"
|
v-model:value="importerFile"
|
||||||
drag-drop
|
drag-drop
|
||||||
class="source-file-upload">
|
class="source-file-upload">
|
||||||
<section class="drop-inner">
|
<section class="drop-inner">
|
||||||
|
@ -80,7 +80,7 @@
|
||||||
extra-classes="tainacan-repository-tooltip"/>
|
extra-classes="tainacan-repository-tooltip"/>
|
||||||
<b-input
|
<b-input
|
||||||
id="tainacan-url-link-source"
|
id="tainacan-url-link-source"
|
||||||
v-model="url"/>
|
v-model:value="url"/>
|
||||||
</b-field>
|
</b-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -309,7 +309,7 @@
|
||||||
<b-field>
|
<b-field>
|
||||||
<b-select
|
<b-select
|
||||||
expanded
|
expanded
|
||||||
v-model="selectedTitle"
|
v-model:value="selectedTitle"
|
||||||
:placeholder="$i18n.get('label_select_metadatum')">
|
:placeholder="$i18n.get('label_select_metadatum')">
|
||||||
<option
|
<option
|
||||||
v-for="(sourceMetadatum, index) of importerSourceInfo.source_metadata"
|
v-for="(sourceMetadatum, index) of importerSourceInfo.source_metadata"
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<br>
|
<br>
|
||||||
<b-upload
|
<b-upload
|
||||||
native
|
native
|
||||||
v-model="submitedFileList"
|
v-model:value="submitedFileList"
|
||||||
drag-drop
|
drag-drop
|
||||||
multiple
|
multiple
|
||||||
@input="uploadFiles()"
|
@input="uploadFiles()"
|
||||||
|
|
|
@ -344,7 +344,7 @@
|
||||||
id="tainacan-switch-required-metadata"
|
id="tainacan-switch-required-metadata"
|
||||||
:style="'font-size: 0.625em;' + (isMobileScreen ? 'margin-right: 2rem;' : '')"
|
:style="'font-size: 0.625em;' + (isMobileScreen ? 'margin-right: 2rem;' : '')"
|
||||||
size="is-small"
|
size="is-small"
|
||||||
v-model="showOnlyRequiredMetadata">
|
v-model:value="showOnlyRequiredMetadata">
|
||||||
{{ isMobileScreen ? $i18n.get('label_required') : $i18n.get('label_only_required') }} *
|
{{ isMobileScreen ? $i18n.get('label_required') : $i18n.get('label_only_required') }} *
|
||||||
</b-switch>
|
</b-switch>
|
||||||
|
|
||||||
|
@ -354,7 +354,7 @@
|
||||||
<b-input
|
<b-input
|
||||||
v-if="!isMobileScreen || openMetadataNameFilter"
|
v-if="!isMobileScreen || openMetadataNameFilter"
|
||||||
:placeholder="$i18n.get('instruction_type_search_metadata_filter')"
|
:placeholder="$i18n.get('instruction_type_search_metadata_filter')"
|
||||||
v-model="metadataNameFilterString"
|
v-model:value="metadataNameFilterString"
|
||||||
icon="magnify"
|
icon="magnify"
|
||||||
size="is-small"
|
size="is-small"
|
||||||
icon-right="close-circle"
|
icon-right="close-circle"
|
||||||
|
@ -676,7 +676,7 @@
|
||||||
size="is-small"
|
size="is-small"
|
||||||
true-value="open"
|
true-value="open"
|
||||||
false-value="closed"
|
false-value="closed"
|
||||||
v-model="form.comment_status">
|
v-model:value="form.comment_status">
|
||||||
<span class="icon has-text-gray4">
|
<span class="icon has-text-gray4">
|
||||||
<i class="tainacan-icon tainacan-icon-comment"/>
|
<i class="tainacan-icon tainacan-icon-comment"/>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
:extra-classes="isRepositoryLevel ? 'tainacan-repository-tooltip' : ''" />
|
:extra-classes="isRepositoryLevel ? 'tainacan-repository-tooltip' : ''" />
|
||||||
</label>
|
</label>
|
||||||
<b-input
|
<b-input
|
||||||
v-model="form.name"
|
v-model:value="form.name"
|
||||||
name="name"
|
name="name"
|
||||||
@focus="clearErrors('name')"/>
|
@focus="clearErrors('name')"/>
|
||||||
</b-field>
|
</b-field>
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
type="textarea"
|
type="textarea"
|
||||||
name="description"
|
name="description"
|
||||||
rows="3"
|
rows="3"
|
||||||
v-model="form.description"
|
v-model:value="form.description"
|
||||||
@focus="clearErrors('description')"/>
|
@focus="clearErrors('description')"/>
|
||||||
</b-field>
|
</b-field>
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@
|
||||||
<b-switch
|
<b-switch
|
||||||
size="is-small"
|
size="is-small"
|
||||||
@input="clearErrors('description_bellow_name')"
|
@input="clearErrors('description_bellow_name')"
|
||||||
v-model="form.description_bellow_name"
|
v-model:value="form.description_bellow_name"
|
||||||
true-value="yes"
|
true-value="yes"
|
||||||
false-value="no"
|
false-value="no"
|
||||||
name="description_bellow_name">
|
name="description_bellow_name">
|
||||||
|
@ -100,7 +100,7 @@
|
||||||
@focus="clearErrors('label_status')"
|
@focus="clearErrors('label_status')"
|
||||||
id="tainacan-select-status-publish"
|
id="tainacan-select-status-publish"
|
||||||
name="status"
|
name="status"
|
||||||
v-model="form.status"
|
v-model:value="form.status"
|
||||||
native-value="publish">
|
native-value="publish">
|
||||||
<span class="icon has-text-gray3">
|
<span class="icon has-text-gray3">
|
||||||
<i class="tainacan-icon tainacan-icon-public"/>
|
<i class="tainacan-icon tainacan-icon-public"/>
|
||||||
|
@ -111,7 +111,7 @@
|
||||||
@focus="clearErrors('label_status')"
|
@focus="clearErrors('label_status')"
|
||||||
id="tainacan-select-status-private"
|
id="tainacan-select-status-private"
|
||||||
name="status"
|
name="status"
|
||||||
v-model="form.status"
|
v-model:value="form.status"
|
||||||
native-value="private">
|
native-value="private">
|
||||||
<span class="icon has-text-gray3">
|
<span class="icon has-text-gray3">
|
||||||
<i class="tainacan-icon tainacan-icon-private"/>
|
<i class="tainacan-icon tainacan-icon-private"/>
|
||||||
|
@ -152,7 +152,7 @@
|
||||||
<b-switch
|
<b-switch
|
||||||
size="is-small"
|
size="is-small"
|
||||||
@input="clearErrors('is_conditional_section')"
|
@input="clearErrors('is_conditional_section')"
|
||||||
v-model="form.is_conditional_section"
|
v-model:value="form.is_conditional_section"
|
||||||
true-value="yes"
|
true-value="yes"
|
||||||
false-value="no"
|
false-value="no"
|
||||||
name="is_conditional_section">
|
name="is_conditional_section">
|
||||||
|
@ -179,7 +179,7 @@
|
||||||
:extra-classes="isRepositoryLevel ? 'tainacan-repository-tooltip' : ''" />
|
:extra-classes="isRepositoryLevel ? 'tainacan-repository-tooltip' : ''" />
|
||||||
</label>
|
</label>
|
||||||
<b-select
|
<b-select
|
||||||
v-model="selectedConditionalMetadatum"
|
v-model:value="selectedConditionalMetadatum"
|
||||||
:placeholder="$i18n.get('label_select_metadatum')">
|
:placeholder="$i18n.get('label_select_metadatum')">
|
||||||
<option
|
<option
|
||||||
v-for="conditionalMetadatum of availableConditionalMetadata"
|
v-for="conditionalMetadatum of availableConditionalMetadata"
|
||||||
|
@ -201,7 +201,7 @@
|
||||||
</label>
|
</label>
|
||||||
<div style="overflow-y: auto; overflow-x: hidden; max-height: 100px;">
|
<div style="overflow-y: auto; overflow-x: hidden; max-height: 100px;">
|
||||||
<b-checkbox
|
<b-checkbox
|
||||||
v-model="selectedConditionalValue"
|
v-model:value="selectedConditionalValue"
|
||||||
v-for="(conditionalValue, conditionalValueIndex) of availableConditionalMetadata.find((availableMetadatum) => availableMetadatum.id == selectedConditionalMetadatum).metadata_type_object.options.options.split('\n')"
|
v-for="(conditionalValue, conditionalValueIndex) of availableConditionalMetadata.find((availableMetadatum) => availableMetadatum.id == selectedConditionalMetadatum).metadata_type_object.options.options.split('\n')"
|
||||||
:key="conditionalValueIndex"
|
:key="conditionalValueIndex"
|
||||||
:native-value="conditionalValue">
|
:native-value="conditionalValue">
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
:extra-classes="isRepositoryLevel ? 'tainacan-repository-tooltip' : ''" />
|
:extra-classes="isRepositoryLevel ? 'tainacan-repository-tooltip' : ''" />
|
||||||
</label>
|
</label>
|
||||||
<b-input
|
<b-input
|
||||||
v-model="form.name"
|
v-model:value="form.name"
|
||||||
name="name"
|
name="name"
|
||||||
@focus="clearErrors('name')"/>
|
@focus="clearErrors('name')"/>
|
||||||
</b-field>
|
</b-field>
|
||||||
|
@ -67,7 +67,7 @@
|
||||||
type="textarea"
|
type="textarea"
|
||||||
name="description"
|
name="description"
|
||||||
rows="3"
|
rows="3"
|
||||||
v-model="form.description"
|
v-model:value="form.description"
|
||||||
@focus="clearErrors('description')"/>
|
@focus="clearErrors('description')"/>
|
||||||
</b-field>
|
</b-field>
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@
|
||||||
<b-switch
|
<b-switch
|
||||||
size="is-small"
|
size="is-small"
|
||||||
@input="clearErrors('description_bellow_name')"
|
@input="clearErrors('description_bellow_name')"
|
||||||
v-model="form.description_bellow_name"
|
v-model:value="form.description_bellow_name"
|
||||||
true-value="yes"
|
true-value="yes"
|
||||||
false-value="no"
|
false-value="no"
|
||||||
name="description_bellow_name">
|
name="description_bellow_name">
|
||||||
|
@ -104,7 +104,7 @@
|
||||||
:extra-classes="isRepositoryLevel ? 'tainacan-repository-tooltip' : ''" />
|
:extra-classes="isRepositoryLevel ? 'tainacan-repository-tooltip' : ''" />
|
||||||
</label>
|
</label>
|
||||||
<b-input
|
<b-input
|
||||||
v-model="form.placeholder"
|
v-model:value="form.placeholder"
|
||||||
name="placeholder"
|
name="placeholder"
|
||||||
@focus="clearErrors('placeholder')"/>
|
@focus="clearErrors('placeholder')"/>
|
||||||
</b-field>
|
</b-field>
|
||||||
|
@ -126,7 +126,7 @@
|
||||||
@focus="clearErrors('label_status')"
|
@focus="clearErrors('label_status')"
|
||||||
id="tainacan-select-status-publish"
|
id="tainacan-select-status-publish"
|
||||||
name="status"
|
name="status"
|
||||||
v-model="form.status"
|
v-model:value="form.status"
|
||||||
native-value="publish">
|
native-value="publish">
|
||||||
<span class="icon has-text-gray3">
|
<span class="icon has-text-gray3">
|
||||||
<i class="tainacan-icon tainacan-icon-public"/>
|
<i class="tainacan-icon tainacan-icon-public"/>
|
||||||
|
@ -137,7 +137,7 @@
|
||||||
@focus="clearErrors('label_status')"
|
@focus="clearErrors('label_status')"
|
||||||
id="tainacan-select-status-private"
|
id="tainacan-select-status-private"
|
||||||
name="status"
|
name="status"
|
||||||
v-model="form.status"
|
v-model:value="form.status"
|
||||||
native-value="private">
|
native-value="private">
|
||||||
<span class="icon has-text-gray3">
|
<span class="icon has-text-gray3">
|
||||||
<i class="tainacan-icon tainacan-icon-private"/>
|
<i class="tainacan-icon tainacan-icon-private"/>
|
||||||
|
@ -162,7 +162,7 @@
|
||||||
</label>
|
</label>
|
||||||
<b-select
|
<b-select
|
||||||
expanded
|
expanded
|
||||||
v-model="form.display"
|
v-model:value="form.display"
|
||||||
@input="clearErrors('display')">
|
@input="clearErrors('display')">
|
||||||
<option value="yes">
|
<option value="yes">
|
||||||
{{ $i18n.get('label_display_default') }}
|
{{ $i18n.get('label_display_default') }}
|
||||||
|
@ -186,7 +186,7 @@
|
||||||
:message="formErrors['required'] != undefined ? formErrors['required'] : ''">
|
:message="formErrors['required'] != undefined ? formErrors['required'] : ''">
|
||||||
<b-checkbox
|
<b-checkbox
|
||||||
@input="clearErrors('required')"
|
@input="clearErrors('required')"
|
||||||
v-model="form.required"
|
v-model:value="form.required"
|
||||||
true-value="yes"
|
true-value="yes"
|
||||||
false-value="no"
|
false-value="no"
|
||||||
class="is-inline-block"
|
class="is-inline-block"
|
||||||
|
@ -205,7 +205,7 @@
|
||||||
:message="formErrors['collection_key'] != undefined ? formErrors['collection_key'] : ''">
|
:message="formErrors['collection_key'] != undefined ? formErrors['collection_key'] : ''">
|
||||||
<b-checkbox
|
<b-checkbox
|
||||||
@input="clearErrors('collection_key')"
|
@input="clearErrors('collection_key')"
|
||||||
v-model="form.collection_key"
|
v-model:value="form.collection_key"
|
||||||
true-value="yes"
|
true-value="yes"
|
||||||
false-value="no"
|
false-value="no"
|
||||||
class="is-inline-block"
|
class="is-inline-block"
|
||||||
|
@ -224,7 +224,7 @@
|
||||||
:message="formErrors['multiple'] != undefined ? formErrors['multiple'] : ''">
|
:message="formErrors['multiple'] != undefined ? formErrors['multiple'] : ''">
|
||||||
<b-checkbox
|
<b-checkbox
|
||||||
@input="clearErrors('multiple')"
|
@input="clearErrors('multiple')"
|
||||||
v-model="form.multiple"
|
v-model:value="form.multiple"
|
||||||
true-value="yes"
|
true-value="yes"
|
||||||
false-value="no"
|
false-value="no"
|
||||||
class="is-inline-block"
|
class="is-inline-block"
|
||||||
|
@ -247,7 +247,7 @@
|
||||||
<b-switch
|
<b-switch
|
||||||
size="is-small"
|
size="is-small"
|
||||||
:disabled="form.multiple != 'yes'"
|
:disabled="form.multiple != 'yes'"
|
||||||
v-model="showCardinalityOptions" />
|
v-model:value="showCardinalityOptions" />
|
||||||
</b-field>
|
</b-field>
|
||||||
|
|
||||||
<b-field
|
<b-field
|
||||||
|
@ -267,13 +267,13 @@
|
||||||
name="cardinality"
|
name="cardinality"
|
||||||
step="1"
|
step="1"
|
||||||
min="2"
|
min="2"
|
||||||
v-model="form.cardinality"/>
|
v-model:value="form.cardinality"/>
|
||||||
</b-field>
|
</b-field>
|
||||||
|
|
||||||
<b-field v-if="!isRepositoryLevel && isInsideImporterFlow">
|
<b-field v-if="!isRepositoryLevel && isInsideImporterFlow">
|
||||||
<b-checkbox
|
<b-checkbox
|
||||||
class="is-inline-block"
|
class="is-inline-block"
|
||||||
v-model="form.repository_level"
|
v-model:value="form.repository_level"
|
||||||
@input="clearErrors('repository_level')"
|
@input="clearErrors('repository_level')"
|
||||||
name="repository_level"
|
name="repository_level"
|
||||||
true-value="yes"
|
true-value="yes"
|
||||||
|
@ -312,7 +312,7 @@
|
||||||
v-if="(form.metadata_type_object && form.metadata_type_object.form_component) || form.edit_form != ''"
|
v-if="(form.metadata_type_object && form.metadata_type_object.form_component) || form.edit_form != ''"
|
||||||
:is="form.metadata_type_object.form_component"
|
:is="form.metadata_type_object.form_component"
|
||||||
:metadatum="form"
|
:metadatum="form"
|
||||||
v-model="form.metadata_type_options"/>
|
v-model:value="form.metadata_type_options"/>
|
||||||
<div
|
<div
|
||||||
v-html="form.edit_form"
|
v-html="form.edit_form"
|
||||||
v-else/>
|
v-else/>
|
||||||
|
@ -354,7 +354,7 @@
|
||||||
:extra-classes="isRepositoryLevel ? 'tainacan-repository-tooltip' : ''" />
|
:extra-classes="isRepositoryLevel ? 'tainacan-repository-tooltip' : ''" />
|
||||||
</label>
|
</label>
|
||||||
<b-input
|
<b-input
|
||||||
v-model="form.semantic_uri"
|
v-model:value="form.semantic_uri"
|
||||||
name="semantic_uri"
|
name="semantic_uri"
|
||||||
type="url"
|
type="url"
|
||||||
@focus="clearErrors('semantic_uri')"/>
|
@focus="clearErrors('semantic_uri')"/>
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
extra-classes="tainacan-repository-tooltip"/>
|
extra-classes="tainacan-repository-tooltip"/>
|
||||||
<b-input
|
<b-input
|
||||||
id="tainacan-text-name"
|
id="tainacan-text-name"
|
||||||
v-model="form.name"
|
v-model:value="form.name"
|
||||||
@focus="clearErrors('name')"
|
@focus="clearErrors('name')"
|
||||||
@blur="updateSlug()"
|
@blur="updateSlug()"
|
||||||
:disabled="isUpdatingSlug"
|
:disabled="isUpdatingSlug"
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
id="tainacan-text-description"
|
id="tainacan-text-description"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
rows="3"
|
rows="3"
|
||||||
v-model="form.description"
|
v-model:value="form.description"
|
||||||
@focus="clearErrors('description')"/>
|
@focus="clearErrors('description')"/>
|
||||||
</b-field>
|
</b-field>
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@
|
||||||
<b-switch
|
<b-switch
|
||||||
id="tainacan-checkbox-allow-insert"
|
id="tainacan-checkbox-allow-insert"
|
||||||
size="is-small"
|
size="is-small"
|
||||||
v-model="form.allowInsert"
|
v-model:value="form.allowInsert"
|
||||||
true-value="yes"
|
true-value="yes"
|
||||||
false-value="no" />
|
false-value="no" />
|
||||||
<help-button
|
<help-button
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
<b-switch
|
<b-switch
|
||||||
id="tainacan-checkbox-allow-insert"
|
id="tainacan-checkbox-allow-insert"
|
||||||
size="is-small"
|
size="is-small"
|
||||||
v-model="form.hierarchical"
|
v-model:value="form.hierarchical"
|
||||||
true-value="yes"
|
true-value="yes"
|
||||||
false-value="no" />
|
false-value="no" />
|
||||||
<help-button
|
<help-button
|
||||||
|
@ -107,7 +107,7 @@
|
||||||
<b-input
|
<b-input
|
||||||
@input="updateSlug()"
|
@input="updateSlug()"
|
||||||
id="tainacan-text-slug"
|
id="tainacan-text-slug"
|
||||||
v-model="form.slug"
|
v-model:value="form.slug"
|
||||||
@focus="clearErrors('slug')"
|
@focus="clearErrors('slug')"
|
||||||
:disabled="isUpdatingSlug"/>
|
:disabled="isUpdatingSlug"/>
|
||||||
</b-field>
|
</b-field>
|
||||||
|
@ -132,7 +132,7 @@
|
||||||
:native-value="wpPostType.slug"
|
:native-value="wpPostType.slug"
|
||||||
:true-value="wpPostType.slug"
|
:true-value="wpPostType.slug"
|
||||||
false-value=""
|
false-value=""
|
||||||
v-model="form.enabledPostTypes"
|
v-model:value="form.enabledPostTypes"
|
||||||
name="enabled_post_types" >
|
name="enabled_post_types" >
|
||||||
{{ wpPostType.label }}
|
{{ wpPostType.label }}
|
||||||
</b-checkbox>
|
</b-checkbox>
|
||||||
|
@ -156,7 +156,7 @@
|
||||||
extra-classes="tainacan-repository-tooltip"/>
|
extra-classes="tainacan-repository-tooltip"/>
|
||||||
<div class="status-radios">
|
<div class="status-radios">
|
||||||
<b-radio
|
<b-radio
|
||||||
v-model="form.status"
|
v-model:value="form.status"
|
||||||
v-for="(statusOption, index) of $statusHelper.getStatuses().filter((status) => status.slug != 'draft')"
|
v-for="(statusOption, index) of $statusHelper.getStatuses().filter((status) => status.slug != 'draft')"
|
||||||
:key="index"
|
:key="index"
|
||||||
:native-value="statusOption.slug">
|
:native-value="statusOption.slug">
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
</label>
|
</label>
|
||||||
<b-input
|
<b-input
|
||||||
:placeholder="$i18n.get('label_term_without_name')"
|
:placeholder="$i18n.get('label_term_without_name')"
|
||||||
v-model="form.name"
|
v-model:value="form.name"
|
||||||
name="name"
|
name="name"
|
||||||
@focus="clearErrors({ name: 'name', repeated: 'repeated' })"/>
|
@focus="clearErrors({ name: 'name', repeated: 'repeated' })"/>
|
||||||
</b-field>
|
</b-field>
|
||||||
|
@ -126,7 +126,7 @@
|
||||||
<b-input
|
<b-input
|
||||||
type="textarea"
|
type="textarea"
|
||||||
name="description"
|
name="description"
|
||||||
v-model="form.description"
|
v-model:value="form.description"
|
||||||
@focus="clearErrors('description')"/>
|
@focus="clearErrors('description')"/>
|
||||||
</b-field>
|
</b-field>
|
||||||
</div>
|
</div>
|
||||||
|
@ -144,7 +144,7 @@
|
||||||
@input="onToggleSwitch()"
|
@input="onToggleSwitch()"
|
||||||
id="tainacan-checkbox-has-parent"
|
id="tainacan-checkbox-has-parent"
|
||||||
size="is-small"
|
size="is-small"
|
||||||
v-model="hasParent" />
|
v-model:value="hasParent" />
|
||||||
<help-button
|
<help-button
|
||||||
:title="$i18n.get('label_parent_term')"
|
:title="$i18n.get('label_parent_term')"
|
||||||
:message="$i18n.get('info_help_parent_term')"
|
:message="$i18n.get('info_help_parent_term')"
|
||||||
|
@ -156,7 +156,7 @@
|
||||||
:data="parentTerms"
|
:data="parentTerms"
|
||||||
field="name"
|
field="name"
|
||||||
clearable
|
clearable
|
||||||
v-model="parentTermName"
|
v-model:value="parentTermName"
|
||||||
@select="onSelectParentTerm($event)"
|
@select="onSelectParentTerm($event)"
|
||||||
:loading="isFetchingParentTerms"
|
:loading="isFetchingParentTerms"
|
||||||
@input="fetchParentTerms"
|
@input="fetchParentTerms"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
icon="magnify"
|
icon="magnify"
|
||||||
size="is-small"
|
size="is-small"
|
||||||
:aria-labelledby="'filter-label-id-' + filter.id"
|
:aria-labelledby="'filter-label-id-' + filter.id"
|
||||||
v-model="selected"
|
v-model:value="selected"
|
||||||
:data="options"
|
:data="options"
|
||||||
expanded
|
expanded
|
||||||
:loading="isLoadingOptions"
|
:loading="isLoadingOptions"
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<b-datepicker
|
<b-datepicker
|
||||||
:aria-labelledby="'filter-label-id-' + filter.id"
|
:aria-labelledby="'filter-label-id-' + filter.id"
|
||||||
:placeholder="$i18n.get('label_selectbox_init')"
|
:placeholder="$i18n.get('label_selectbox_init')"
|
||||||
v-model="dateInit"
|
v-model:value="dateInit"
|
||||||
@focus="isTouched = true"
|
@focus="isTouched = true"
|
||||||
@input="($event) => { resetPage(); validadeValues($event) }"
|
@input="($event) => { resetPage(); validadeValues($event) }"
|
||||||
editable
|
editable
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
<b-datepicker
|
<b-datepicker
|
||||||
:aria-labelledby="'filter-label-id-' + filter.id"
|
:aria-labelledby="'filter-label-id-' + filter.id"
|
||||||
:placeholder="$i18n.get('label_selectbox_init')"
|
:placeholder="$i18n.get('label_selectbox_init')"
|
||||||
v-model="dateEnd"
|
v-model:value="dateEnd"
|
||||||
@input="validadeValues()"
|
@input="validadeValues()"
|
||||||
@focus="isTouched = true"
|
@focus="isTouched = true"
|
||||||
editable
|
editable
|
||||||
|
|
|
@ -68,12 +68,12 @@
|
||||||
size="is-small"
|
size="is-small"
|
||||||
step="1"
|
step="1"
|
||||||
@input="emitOnlyYear($event)"
|
@input="emitOnlyYear($event)"
|
||||||
v-model="yearsOnlyValue"/> -->
|
v-model:value="yearsOnlyValue"/> -->
|
||||||
<b-datepicker
|
<b-datepicker
|
||||||
position="is-bottom-left"
|
position="is-bottom-left"
|
||||||
:aria-labelledby="'filter-label-id-' + filter.id"
|
:aria-labelledby="'filter-label-id-' + filter.id"
|
||||||
:placeholder="$i18n.get('instruction_select_a_date')"
|
:placeholder="$i18n.get('instruction_select_a_date')"
|
||||||
v-model="value"
|
v-model:value="value"
|
||||||
@input="($event) => { resetPage(); emit($event); }"
|
@input="($event) => { resetPage(); emit($event); }"
|
||||||
editable
|
editable
|
||||||
:trap-focus="false"
|
:trap-focus="false"
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
</label>
|
</label>
|
||||||
<b-select
|
<b-select
|
||||||
name="type_options"
|
name="type_options"
|
||||||
v-model="type"
|
v-model:value="type"
|
||||||
@input="onUpdateType">
|
@input="onUpdateType">
|
||||||
<option value="day">{{ $i18n.get('label_day') }}</option>
|
<option value="day">{{ $i18n.get('label_day') }}</option>
|
||||||
<option value="month">{{ $i18n.get('label_month') }}</option>
|
<option value="month">{{ $i18n.get('label_month') }}</option>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
class="is-flex">
|
class="is-flex">
|
||||||
<b-select
|
<b-select
|
||||||
name="step_options"
|
name="step_options"
|
||||||
v-model="step"
|
v-model:value="step"
|
||||||
@input="onUpdateStep">
|
@input="onUpdateStep">
|
||||||
<option value="0.001">0.001</option>
|
<option value="0.001">0.001</option>
|
||||||
<option value="0.01">0.01</option>
|
<option value="0.01">0.01</option>
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
class="is-flex">
|
class="is-flex">
|
||||||
<b-input
|
<b-input
|
||||||
name="max_options"
|
name="max_options"
|
||||||
v-model="step"
|
v-model:value="step"
|
||||||
@input="onUpdateStep"
|
@input="onUpdateStep"
|
||||||
type="number"
|
type="number"
|
||||||
step="1" />
|
step="1" />
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
size="is-small"
|
size="is-small"
|
||||||
@input="($event) => { resetPage(); validadeValues($event) }"
|
@input="($event) => { resetPage(); validadeValues($event) }"
|
||||||
:step="filterTypeOptions.step"
|
:step="filterTypeOptions.step"
|
||||||
v-model="valueInit"
|
v-model:value="valueInit"
|
||||||
/>
|
/>
|
||||||
<p
|
<p
|
||||||
style="font-size: 0.75em; margin-bottom: 0.125em;"
|
style="font-size: 0.75em; margin-bottom: 0.125em;"
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
size="is-small"
|
size="is-small"
|
||||||
@input="($event) => { resetPage(); validadeValues($event) }"
|
@input="($event) => { resetPage(); validadeValues($event) }"
|
||||||
:step="filterTypeOptions.step"
|
:step="filterTypeOptions.step"
|
||||||
v-model="valueEnd"/>
|
v-model:value="valueEnd"/>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<div>
|
<div>
|
||||||
<b-field>
|
<b-field>
|
||||||
<b-checkbox
|
<b-checkbox
|
||||||
v-model="showIntervalOnTag"
|
v-model:value="showIntervalOnTag"
|
||||||
@input="onUpdateShowIntervalOnTag()">
|
@input="onUpdateShowIntervalOnTag()">
|
||||||
{{ $i18n.get('info_show_interval_on_tag') }}
|
{{ $i18n.get('info_show_interval_on_tag') }}
|
||||||
</b-checkbox>
|
</b-checkbox>
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
expanded
|
expanded
|
||||||
:placeholder="$i18n.get('label')"
|
:placeholder="$i18n.get('label')"
|
||||||
@input="onUpdate(interval)"
|
@input="onUpdate(interval)"
|
||||||
v-model="interval.label" />
|
v-model:value="interval.label" />
|
||||||
</b-field>
|
</b-field>
|
||||||
<b-field>
|
<b-field>
|
||||||
<b-input
|
<b-input
|
||||||
|
@ -43,14 +43,14 @@
|
||||||
step="0.01"
|
step="0.01"
|
||||||
:placeholder="$i18n.get('info_initial_value')"
|
:placeholder="$i18n.get('info_initial_value')"
|
||||||
@input="onUpdate(interval, true)"
|
@input="onUpdate(interval, true)"
|
||||||
v-model="interval.from" />
|
v-model:value="interval.from" />
|
||||||
<b-input
|
<b-input
|
||||||
expanded
|
expanded
|
||||||
type="number"
|
type="number"
|
||||||
step="0.01"
|
step="0.01"
|
||||||
:placeholder="$i18n.get('info_final_value')"
|
:placeholder="$i18n.get('info_final_value')"
|
||||||
@input="onUpdate(interval, true)"
|
@input="onUpdate(interval, true)"
|
||||||
v-model="interval.to" />
|
v-model:value="interval.to" />
|
||||||
</b-field>
|
</b-field>
|
||||||
<p class="control">
|
<p class="control">
|
||||||
<a
|
<a
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
expanded
|
expanded
|
||||||
:placeholder="$i18n.get('instruction_select_a_interval')"
|
:placeholder="$i18n.get('instruction_select_a_interval')"
|
||||||
@input="($event) => { resetPage; changeInterval($event) }"
|
@input="($event) => { resetPage; changeInterval($event) }"
|
||||||
v-model="selectedInterval">
|
v-model:value="selectedInterval">
|
||||||
<option value="">
|
<option value="">
|
||||||
{{ $i18n.get('label_selectbox_init') }}...
|
{{ $i18n.get('label_selectbox_init') }}...
|
||||||
</option>
|
</option>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
class="is-flex">
|
class="is-flex">
|
||||||
<b-select
|
<b-select
|
||||||
name="step_options"
|
name="step_options"
|
||||||
v-model="step"
|
v-model:value="step"
|
||||||
@input="onUpdateStep">
|
@input="onUpdateStep">
|
||||||
<option value="0.001">0.001</option>
|
<option value="0.001">0.001</option>
|
||||||
<option value="0.01">0.01</option>
|
<option value="0.01">0.01</option>
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
class="is-flex">
|
class="is-flex">
|
||||||
<b-input
|
<b-input
|
||||||
name="max_options"
|
name="max_options"
|
||||||
v-model="step"
|
v-model:value="step"
|
||||||
@input="onUpdateStep"
|
@input="onUpdateStep"
|
||||||
type="number"
|
type="number"
|
||||||
step="1" />
|
step="1" />
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
size="is-small"
|
size="is-small"
|
||||||
:step="Number(filterTypeOptions.step)"
|
:step="Number(filterTypeOptions.step)"
|
||||||
@input="($event) => { resetPage($event); emit($event); }"
|
@input="($event) => { resetPage($event); emit($event); }"
|
||||||
v-model="value"/>
|
v-model:value="value"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
custom
|
custom
|
||||||
aria-role="listitem">
|
aria-role="listitem">
|
||||||
<b-checkbox
|
<b-checkbox
|
||||||
v-model="metadataType.enabled"
|
v-model:value="metadataType.enabled"
|
||||||
:native-value="metadataType.enabled">
|
:native-value="metadataType.enabled">
|
||||||
{{ metadataType.name }}
|
{{ metadataType.name }}
|
||||||
</b-checkbox>
|
</b-checkbox>
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
<b-field class="header-item">
|
<b-field class="header-item">
|
||||||
<b-input
|
<b-input
|
||||||
:placeholder="$i18n.get('instruction_type_search_metadata_filter')"
|
:placeholder="$i18n.get('instruction_type_search_metadata_filter')"
|
||||||
v-model="metadataNameFilterString"
|
v-model:value="metadataNameFilterString"
|
||||||
icon="magnify"
|
icon="magnify"
|
||||||
size="is-small"
|
size="is-small"
|
||||||
icon-right="close-circle"
|
icon-right="close-circle"
|
||||||
|
@ -80,7 +80,7 @@
|
||||||
|
|
||||||
<!-- The Metadata Sections list -->
|
<!-- The Metadata Sections list -->
|
||||||
<draggable
|
<draggable
|
||||||
v-model="activeMetadataSectionsList"
|
v-model:value="activeMetadataSectionsList"
|
||||||
class="active-metadata-sections-area"
|
class="active-metadata-sections-area"
|
||||||
@change="handleSectionChange($event)"
|
@change="handleSectionChange($event)"
|
||||||
:group="{ name:'metadata-sections', pull: false, put: [ 'metadata-sections' ] }"
|
:group="{ name:'metadata-sections', pull: false, put: [ 'metadata-sections' ] }"
|
||||||
|
@ -250,7 +250,7 @@
|
||||||
<!-- The Metadata list, inside each metadata section -->
|
<!-- The Metadata list, inside each metadata section -->
|
||||||
<template v-if="metadataSection.metadata_object_list && Array.isArray(metadataSection.metadata_object_list)">
|
<template v-if="metadataSection.metadata_object_list && Array.isArray(metadataSection.metadata_object_list)">
|
||||||
<draggable
|
<draggable
|
||||||
v-model="metadataSection.metadata_object_list"
|
v-model:value="metadataSection.metadata_object_list"
|
||||||
class="active-metadata-area"
|
class="active-metadata-area"
|
||||||
@change="handleChange($event, sectionIndex)"
|
@change="handleChange($event, sectionIndex)"
|
||||||
:group="{ name:'metadata', pull: [ 'metadata' ], put: [ 'metadata' ] }"
|
:group="{ name:'metadata', pull: [ 'metadata' ], put: [ 'metadata' ] }"
|
||||||
|
|
|
@ -143,7 +143,7 @@
|
||||||
v-if="$userCaps.hasCapability('tnc_rep_delete_collections')"
|
v-if="$userCaps.hasCapability('tnc_rep_delete_collections')"
|
||||||
:class="{ 'is-selecting': isSelectingCollections }"
|
:class="{ 'is-selecting': isSelectingCollections }"
|
||||||
class="checkbox-cell">
|
class="checkbox-cell">
|
||||||
<b-checkbox v-model="selectedCollections[index]"/>
|
<b-checkbox v-model:value="selectedCollections[index]"/>
|
||||||
</td>
|
</td>
|
||||||
<!-- Status icon -->
|
<!-- Status icon -->
|
||||||
<td
|
<td
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
style="margin-left: 10px"
|
style="margin-left: 10px"
|
||||||
v-if="totalPages > 1 && allItemsOnPageSelected && Array.isArray(items) && items.length > 1">
|
v-if="totalPages > 1 && allItemsOnPageSelected && Array.isArray(items) && items.length > 1">
|
||||||
<b-checkbox
|
<b-checkbox
|
||||||
v-model="isAllItemsSelected">
|
v-model:value="isAllItemsSelected">
|
||||||
{{ $i18n.getWithVariables('label_select_all_%s_items', [totalItems]) }}
|
{{ $i18n.getWithVariables('label_select_all_%s_items', [totalItems]) }}
|
||||||
</b-checkbox>
|
</b-checkbox>
|
||||||
</span>
|
</span>
|
||||||
|
@ -191,7 +191,7 @@
|
||||||
v-else
|
v-else
|
||||||
name="item-single-selection"
|
name="item-single-selection"
|
||||||
:native-value="item.id"
|
:native-value="item.id"
|
||||||
v-model="singleItemSelection"
|
v-model:value="singleItemSelection"
|
||||||
:aria-label="$i18n.get('label_select_item')">
|
:aria-label="$i18n.get('label_select_item')">
|
||||||
<span class="sr-only">{{ $i18n.get('label_select_item') }}</span>
|
<span class="sr-only">{{ $i18n.get('label_select_item') }}</span>
|
||||||
</b-radio>
|
</b-radio>
|
||||||
|
@ -483,7 +483,7 @@
|
||||||
v-else
|
v-else
|
||||||
name="item-single-selection"
|
name="item-single-selection"
|
||||||
:native-value="item.id"
|
:native-value="item.id"
|
||||||
v-model="singleItemSelection">
|
v-model:value="singleItemSelection">
|
||||||
<span class="sr-only">{{ $i18n.get('label_select_item') }}</span>
|
<span class="sr-only">{{ $i18n.get('label_select_item') }}</span>
|
||||||
</b-radio>
|
</b-radio>
|
||||||
</div>
|
</div>
|
||||||
|
@ -934,7 +934,7 @@
|
||||||
v-else
|
v-else
|
||||||
name="item-single-selection"
|
name="item-single-selection"
|
||||||
:native-value="item.id"
|
:native-value="item.id"
|
||||||
v-model="singleItemSelection">
|
v-model:value="singleItemSelection">
|
||||||
<span class="sr-only">{{ $i18n.get('label_select_item') }}</span>
|
<span class="sr-only">{{ $i18n.get('label_select_item') }}</span>
|
||||||
</b-radio>
|
</b-radio>
|
||||||
</td>
|
</td>
|
||||||
|
@ -1588,7 +1588,7 @@
|
||||||
<b-select
|
<b-select
|
||||||
:placeholder="$i18n.get('instruction_select_geocoordinate_metadatum')"
|
:placeholder="$i18n.get('instruction_select_geocoordinate_metadatum')"
|
||||||
id="tainacan-select-geocoordinate-metatum"
|
id="tainacan-select-geocoordinate-metatum"
|
||||||
v-model="selectedGeocoordinateMetadatumId">
|
v-model:value="selectedGeocoordinateMetadatumId">
|
||||||
<option
|
<option
|
||||||
v-for="(geocoordinateMetadatum, geocoordinateMetadatumId) in geocoordinateMetadata"
|
v-for="(geocoordinateMetadatum, geocoordinateMetadatumId) in geocoordinateMetadata"
|
||||||
:key="geocoordinateMetadatum.id"
|
:key="geocoordinateMetadatum.id"
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
|
|
||||||
<b-select
|
<b-select
|
||||||
:name="'mappers-metadatum-select-' + mapperMetadatum.slug"
|
:name="'mappers-metadatum-select-' + mapperMetadatum.slug"
|
||||||
v-model="mapperMetadatum.selected"
|
v-model:value="mapperMetadatum.selected"
|
||||||
@input="onSelectMetadatumForMapperMetadata">
|
@input="onSelectMetadatumForMapperMetadata">
|
||||||
<option
|
<option
|
||||||
value="">
|
value="">
|
||||||
|
@ -172,7 +172,7 @@
|
||||||
</div>
|
</div>
|
||||||
<b-field>
|
<b-field>
|
||||||
<b-input
|
<b-input
|
||||||
v-model="newMetadataLabel"
|
v-model:value="newMetadataLabel"
|
||||||
required
|
required
|
||||||
:placeholder="$i18n.get('label_name')"/>
|
:placeholder="$i18n.get('label_name')"/>
|
||||||
</b-field>
|
</b-field>
|
||||||
|
@ -181,7 +181,7 @@
|
||||||
placeholder="URI"
|
placeholder="URI"
|
||||||
type="url"
|
type="url"
|
||||||
required
|
required
|
||||||
v-model="newMetadataUri"/>
|
v-model:value="newMetadataUri"/>
|
||||||
</b-field>
|
</b-field>
|
||||||
<div class="field is-grouped form-submit">
|
<div class="field is-grouped form-submit">
|
||||||
<div class="control">
|
<div class="control">
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<h3 class="label">{{ $i18n.get('label_available_metadata_types') }}</h3>
|
<h3 class="label">{{ $i18n.get('label_available_metadata_types') }}</h3>
|
||||||
<draggable
|
<draggable
|
||||||
v-model="availableMetadatumList"
|
v-model:value="availableMetadatumList"
|
||||||
:sort="false"
|
:sort="false"
|
||||||
:group="{ name:'metadata', pull: 'clone', put: false, revertClone: true }"
|
:group="{ name:'metadata', pull: 'clone', put: false, revertClone: true }"
|
||||||
drag-class="sortable-drag">
|
drag-class="sortable-drag">
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
|
|
||||||
<draggable
|
<draggable
|
||||||
v-if="!isRepositoryLevel"
|
v-if="!isRepositoryLevel"
|
||||||
v-model="availableMetadataSectionsList"
|
v-model:value="availableMetadataSectionsList"
|
||||||
:sort="false"
|
:sort="false"
|
||||||
:group="{ name:'metadata-sections', pull: 'clone', put: false, revertClone: true }"
|
:group="{ name:'metadata-sections', pull: 'clone', put: false, revertClone: true }"
|
||||||
drag-class="sortable-drag">
|
drag-class="sortable-drag">
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
:class="{ 'is-selecting': isSelecting }"
|
:class="{ 'is-selecting': isSelecting }"
|
||||||
class="checkbox-cell">
|
class="checkbox-cell">
|
||||||
<b-checkbox
|
<b-checkbox
|
||||||
v-model="selected[index]"/>
|
v-model:value="selected[index]"/>
|
||||||
</span> -->
|
</span> -->
|
||||||
<!-- Name -->
|
<!-- Name -->
|
||||||
<span
|
<span
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
custom
|
custom
|
||||||
aria-role="listitem">
|
aria-role="listitem">
|
||||||
<b-checkbox
|
<b-checkbox
|
||||||
v-model="metadataType.enabled"
|
v-model:value="metadataType.enabled"
|
||||||
:native-value="metadataType.enabled">
|
:native-value="metadataType.enabled">
|
||||||
{{ metadataType.name }}
|
{{ metadataType.name }}
|
||||||
</b-checkbox>
|
</b-checkbox>
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
<b-field class="header-item">
|
<b-field class="header-item">
|
||||||
<b-input
|
<b-input
|
||||||
:placeholder="$i18n.get('instruction_type_search_metadata_filter')"
|
:placeholder="$i18n.get('instruction_type_search_metadata_filter')"
|
||||||
v-model="metadataNameFilterString"
|
v-model:value="metadataNameFilterString"
|
||||||
icon="magnify"
|
icon="magnify"
|
||||||
size="is-small"
|
size="is-small"
|
||||||
icon-right="close-circle"
|
icon-right="close-circle"
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
<!-- The Repository Metadata list -->
|
<!-- The Repository Metadata list -->
|
||||||
<div class="active-metadata-sections-area">
|
<div class="active-metadata-sections-area">
|
||||||
<draggable
|
<draggable
|
||||||
v-model="activeMetadatumList"
|
v-model:value="activeMetadatumList"
|
||||||
class="active-metadata-area"
|
class="active-metadata-area"
|
||||||
@change="handleChange($event)"
|
@change="handleChange($event)"
|
||||||
:group="{ name:'metadata', pull: false, put: true }"
|
:group="{ name:'metadata', pull: false, put: true }"
|
||||||
|
|
|
@ -92,7 +92,7 @@
|
||||||
:class="{ 'is-selecting': isSelecting }"
|
:class="{ 'is-selecting': isSelecting }"
|
||||||
class="checkbox-cell">
|
class="checkbox-cell">
|
||||||
<b-checkbox
|
<b-checkbox
|
||||||
v-model="selected[index]"/>
|
v-model:value="selected[index]"/>
|
||||||
</td>
|
</td>
|
||||||
<!-- Status icon -->
|
<!-- Status icon -->
|
||||||
<td
|
<td
|
||||||
|
|
|
@ -243,7 +243,7 @@
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<b-modal
|
<b-modal
|
||||||
v-model="isEditingTerm"
|
v-model:value="isEditingTerm"
|
||||||
:width="768"
|
:width="768"
|
||||||
trap-focus
|
trap-focus
|
||||||
aria-role="dialog"
|
aria-role="dialog"
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
autocomplete="on"
|
autocomplete="on"
|
||||||
:placeholder="$i18n.get('instruction_search')"
|
:placeholder="$i18n.get('instruction_search')"
|
||||||
:aria-name="$i18n.get('instruction_search')"
|
:aria-name="$i18n.get('instruction_search')"
|
||||||
v-model="searchString"
|
v-model:value="searchString"
|
||||||
icon-right="magnify"
|
icon-right="magnify"
|
||||||
type="search" />
|
type="search" />
|
||||||
</b-field>
|
</b-field>
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<draggable
|
<draggable
|
||||||
v-model="childrenMetadata"
|
v-model:value="childrenMetadata"
|
||||||
:style="{ minHeight: childrenMetadata.length > 0 ? '40px' : '70px' }"
|
:style="{ minHeight: childrenMetadata.length > 0 ? '40px' : '70px' }"
|
||||||
class="active-metadata-area child-metadata-area"
|
class="active-metadata-area child-metadata-area"
|
||||||
@change="handleChange"
|
@change="handleChange"
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
:custom-class="{ 'is-danger': isInvalidDate && dateValue }"
|
:custom-class="{ 'is-danger': isInvalidDate && dateValue }"
|
||||||
type="text"
|
type="text"
|
||||||
v-mask="dateMask"
|
v-mask="dateMask"
|
||||||
v-model="dateValue"
|
v-model:value="dateValue"
|
||||||
@input="onInput"
|
@input="onInput"
|
||||||
@blur="onBlur"
|
@blur="onBlur"
|
||||||
@focus="onMobileSpecialFocus"
|
@focus="onMobileSpecialFocus"
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
<!--<div class="field">-->
|
<!--<div class="field">-->
|
||||||
<!--<b-datepicker-->
|
<!--<b-datepicker-->
|
||||||
<!--v-model="dateValue"-->
|
<!--v-model:value="dateValue"-->
|
||||||
<!--:readonly="false"-->
|
<!--:readonly="false"-->
|
||||||
<!--inline-->
|
<!--inline-->
|
||||||
<!--@input="onInput($event)"-->
|
<!--@input="onInput($event)"-->
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
</label>
|
</label>
|
||||||
<b-input
|
<b-input
|
||||||
name="mapProvider"
|
name="mapProvider"
|
||||||
v-model="mapProvider"
|
v-model:value="mapProvider"
|
||||||
@input="emitValues()"
|
@input="emitValues()"
|
||||||
placeholder="https://tile.openstreetmap.org/{z}/{x}/{y}.png" />
|
placeholder="https://tile.openstreetmap.org/{z}/{x}/{y}.png" />
|
||||||
</b-field>
|
</b-field>
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
</label>
|
</label>
|
||||||
<b-input
|
<b-input
|
||||||
name="attribution"
|
name="attribution"
|
||||||
v-model="attribution"
|
v-model:value="attribution"
|
||||||
@input="emitValues()"
|
@input="emitValues()"
|
||||||
placeholder="© OpenStreetMap contributors" />
|
placeholder="© OpenStreetMap contributors" />
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
</label>
|
</label>
|
||||||
<b-numberinput
|
<b-numberinput
|
||||||
name="initialZoom"
|
name="initialZoom"
|
||||||
v-model="initialZoom"
|
v-model:value="initialZoom"
|
||||||
@input="emitValues()"
|
@input="emitValues()"
|
||||||
:step="1"
|
:step="1"
|
||||||
:max="19"
|
:max="19"
|
||||||
|
@ -61,7 +61,7 @@
|
||||||
</label>
|
</label>
|
||||||
<b-numberinput
|
<b-numberinput
|
||||||
name="maximumZoom"
|
name="maximumZoom"
|
||||||
v-model="maximumZoom"
|
v-model:value="maximumZoom"
|
||||||
@input="emitValues()"
|
@input="emitValues()"
|
||||||
:step="1"
|
:step="1"
|
||||||
:max="19"
|
:max="19"
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
class="is-flex">
|
class="is-flex">
|
||||||
<b-select
|
<b-select
|
||||||
name="step_options"
|
name="step_options"
|
||||||
v-model="step"
|
v-model:value="step"
|
||||||
@input="onUpdateStep">
|
@input="onUpdateStep">
|
||||||
<option value="0.001">0.001</option>
|
<option value="0.001">0.001</option>
|
||||||
<option value="0.01">0.01</option>
|
<option value="0.01">0.01</option>
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
class="is-flex">
|
class="is-flex">
|
||||||
<b-input
|
<b-input
|
||||||
name="max_options"
|
name="max_options"
|
||||||
v-model="step"
|
v-model:value="step"
|
||||||
@input="onUpdateStep"
|
@input="onUpdateStep"
|
||||||
type="number"
|
type="number"
|
||||||
step="1" />
|
step="1" />
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<b-select
|
<b-select
|
||||||
name="metadata_type_relationship[collection_id]"
|
name="metadata_type_relationship[collection_id]"
|
||||||
:placeholder="$i18n.get('instruction_select_collection_fetch_items' )"
|
:placeholder="$i18n.get('instruction_select_collection_fetch_items' )"
|
||||||
v-model="collection"
|
v-model:value="collection"
|
||||||
@change="emitValues()"
|
@change="emitValues()"
|
||||||
@focus="clear()"
|
@focus="clear()"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
</label>
|
</label>
|
||||||
<b-select
|
<b-select
|
||||||
name="metadata_type_relationship[search]"
|
name="metadata_type_relationship[search]"
|
||||||
v-model="modelSearch"
|
v-model:value="modelSearch"
|
||||||
expanded>
|
expanded>
|
||||||
<option
|
<option
|
||||||
v-for="(option, index) in metadata.filter(metadatum => metadatum.metadata_type_object.component !== 'tainacan-compound')"
|
v-for="(option, index) in metadata.filter(metadatum => metadatum.metadata_type_object.component !== 'tainacan-compound')"
|
||||||
|
@ -72,7 +72,7 @@
|
||||||
native-value="thumbnail"
|
native-value="thumbnail"
|
||||||
name="metadata_type_relationship[display_related_item_metadata]"
|
name="metadata_type_relationship[display_related_item_metadata]"
|
||||||
@input="emitValues()"
|
@input="emitValues()"
|
||||||
v-model="displayRelatedItemMetadata">
|
v-model:value="displayRelatedItemMetadata">
|
||||||
{{ $i18n.get('label_thumbnail') }}
|
{{ $i18n.get('label_thumbnail') }}
|
||||||
</b-checkbox>
|
</b-checkbox>
|
||||||
<b-checkbox
|
<b-checkbox
|
||||||
|
@ -81,7 +81,7 @@
|
||||||
:native-value="metadatumOption.id"
|
:native-value="metadatumOption.id"
|
||||||
name="metadata_type_relationship[display_related_item_metadata]"
|
name="metadata_type_relationship[display_related_item_metadata]"
|
||||||
@input="emitValues()"
|
@input="emitValues()"
|
||||||
v-model="displayRelatedItemMetadata"
|
v-model:value="displayRelatedItemMetadata"
|
||||||
:disabled="metadatumOption.id == modelSearch">
|
:disabled="metadatumOption.id == modelSearch">
|
||||||
{{ metadatumOption.name }}
|
{{ metadatumOption.name }}
|
||||||
</b-checkbox>
|
</b-checkbox>
|
||||||
|
@ -95,7 +95,7 @@
|
||||||
|
|
||||||
<b-switch
|
<b-switch
|
||||||
size="is-small"
|
size="is-small"
|
||||||
v-model="modelDisplayInRelatedItems"
|
v-model:value="modelDisplayInRelatedItems"
|
||||||
@input="emitValues()"
|
@input="emitValues()"
|
||||||
true-value="yes"
|
true-value="yes"
|
||||||
false-value="no" />
|
false-value="no" />
|
||||||
|
@ -110,7 +110,7 @@
|
||||||
|
|
||||||
<b-switch
|
<b-switch
|
||||||
size="is-small"
|
size="is-small"
|
||||||
v-model="modelAcceptDraftItems"
|
v-model:value="modelAcceptDraftItems"
|
||||||
@input="emitValues()"
|
@input="emitValues()"
|
||||||
true-value="yes"
|
true-value="yes"
|
||||||
false-value="no" />
|
false-value="no" />
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<b-tabs
|
<b-tabs
|
||||||
size="is-small"
|
size="is-small"
|
||||||
animated
|
animated
|
||||||
v-model="activeTab">
|
v-model:value="activeTab">
|
||||||
<b-tab-item :label="$i18n.get('label_insert_items')">
|
<b-tab-item :label="$i18n.get('label_insert_items')">
|
||||||
<b-taginput
|
<b-taginput
|
||||||
expanded
|
expanded
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<b-taginput
|
<b-taginput
|
||||||
v-model="options"
|
v-model:value="options"
|
||||||
@input="emitValues()"
|
@input="emitValues()"
|
||||||
@focus="clear()"
|
@focus="clear()"
|
||||||
attached
|
attached
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
:key="separator"
|
:key="separator"
|
||||||
name="metadata_type_selectbox[options_separator]"
|
name="metadata_type_selectbox[options_separator]"
|
||||||
@input="emitValues()"
|
@input="emitValues()"
|
||||||
v-model="optionsSeparator"
|
v-model:value="optionsSeparator"
|
||||||
:native-value="separator"
|
:native-value="separator"
|
||||||
:disabled="separator == 'Enter'">
|
:disabled="separator == 'Enter'">
|
||||||
<kbd>{{ separator }}</kbd>
|
<kbd>{{ separator }}</kbd>
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
</p>
|
</p>
|
||||||
<component
|
<component
|
||||||
:is="metadatumComponent"
|
:is="metadatumComponent"
|
||||||
v-model="values[0]"
|
v-model:value="values[0]"
|
||||||
:item-metadatum="itemMetadatum"
|
:item-metadatum="itemMetadatum"
|
||||||
@input="changeValue"
|
@input="changeValue"
|
||||||
@blur="performValueChange"
|
@blur="performValueChange"
|
||||||
|
@ -81,7 +81,7 @@
|
||||||
<component
|
<component
|
||||||
v-if="index > 0"
|
v-if="index > 0"
|
||||||
:is="metadatumComponent"
|
:is="metadatumComponent"
|
||||||
v-model="values[index]"
|
v-model:value="values[index]"
|
||||||
:item-metadatum="itemMetadatum"
|
:item-metadatum="itemMetadatum"
|
||||||
@input="changeValue"
|
@input="changeValue"
|
||||||
@blur="performValueChange"
|
@blur="performValueChange"
|
||||||
|
@ -135,7 +135,7 @@
|
||||||
</p>
|
</p>
|
||||||
<component
|
<component
|
||||||
:is="metadatumComponent"
|
:is="metadatumComponent"
|
||||||
v-model="values"
|
v-model:value="values"
|
||||||
:item-metadatum="itemMetadatum"
|
:item-metadatum="itemMetadatum"
|
||||||
@input="changeValue"
|
@input="changeValue"
|
||||||
@blur="performValueChange"
|
@blur="performValueChange"
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<b-select
|
<b-select
|
||||||
name="field_type_options[taxonomy_id]"
|
name="field_type_options[taxonomy_id]"
|
||||||
placeholder="Select the taxonomy"
|
placeholder="Select the taxonomy"
|
||||||
v-model="taxonomy_id"
|
v-model:value="taxonomy_id"
|
||||||
@input="emitValues()"
|
@input="emitValues()"
|
||||||
@focus="clear"
|
@focus="clear"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
name="metadata_type_options[component_type]"
|
name="metadata_type_options[component_type]"
|
||||||
placeholder="Select the input type for the taxonomy metadatum"
|
placeholder="Select the input type for the taxonomy metadatum"
|
||||||
@input="emitValues()"
|
@input="emitValues()"
|
||||||
v-model="input_type"
|
v-model:value="input_type"
|
||||||
expanded>
|
expanded>
|
||||||
<option
|
<option
|
||||||
v-for="(option, index) in single_types"
|
v-for="(option, index) in single_types"
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
<b-select
|
<b-select
|
||||||
name="metadata_type_options[input_type]"
|
name="metadata_type_options[input_type]"
|
||||||
placeholder="Select the input type for the taxonomy metadatum"
|
placeholder="Select the input type for the taxonomy metadatum"
|
||||||
v-model="input_type"
|
v-model:value="input_type"
|
||||||
@input="emitValues()"
|
@input="emitValues()"
|
||||||
v-else
|
v-else
|
||||||
expanded>
|
expanded>
|
||||||
|
@ -75,7 +75,7 @@
|
||||||
|
|
||||||
<b-switch
|
<b-switch
|
||||||
size="is-small"
|
size="is-small"
|
||||||
v-model="visible_options_list"
|
v-model:value="visible_options_list"
|
||||||
@input="emitValues()" />
|
@input="emitValues()" />
|
||||||
<help-button
|
<help-button
|
||||||
:title="$i18n.getHelperTitle('tainacan-taxonomy', 'visible_options_list')"
|
:title="$i18n.getHelperTitle('tainacan-taxonomy', 'visible_options_list')"
|
||||||
|
@ -88,7 +88,7 @@
|
||||||
|
|
||||||
<b-switch
|
<b-switch
|
||||||
size="is-small"
|
size="is-small"
|
||||||
v-model="allow_new_terms"
|
v-model:value="allow_new_terms"
|
||||||
@input="emitValues()"
|
@input="emitValues()"
|
||||||
true-value="yes"
|
true-value="yes"
|
||||||
false-value="no" />
|
false-value="no" />
|
||||||
|
@ -103,7 +103,7 @@
|
||||||
|
|
||||||
<b-switch
|
<b-switch
|
||||||
size="is-small"
|
size="is-small"
|
||||||
v-model="do_not_dispaly_term_as_link"
|
v-model:value="do_not_dispaly_term_as_link"
|
||||||
@input="emitValues()"
|
@input="emitValues()"
|
||||||
true-value="yes"
|
true-value="yes"
|
||||||
false-value="no" />
|
false-value="no" />
|
||||||
|
@ -160,7 +160,7 @@
|
||||||
|
|
||||||
<b-switch
|
<b-switch
|
||||||
size="is-small"
|
size="is-small"
|
||||||
v-model="hide_hierarchy_path"
|
v-model:value="hide_hierarchy_path"
|
||||||
@input="emitValues()"
|
@input="emitValues()"
|
||||||
true-value="yes"
|
true-value="yes"
|
||||||
false-value="no" />
|
false-value="no" />
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:is="getComponent"
|
:is="getComponent"
|
||||||
:maxtags="maxtags != undefined ? maxtags : (itemMetadatum.metadatum.multiple == 'yes' || allowNew === true ? (maxMultipleValues !== undefined ? maxMultipleValues : null) : '1')"
|
:maxtags="maxtags != undefined ? maxtags : (itemMetadatum.metadatum.multiple == 'yes' || allowNew === true ? (maxMultipleValues !== undefined ? maxMultipleValues : null) : '1')"
|
||||||
v-model="valueComponent"
|
v-model:value="valueComponent"
|
||||||
:allow-select-to-create="allowSelectToCreate"
|
:allow-select-to-create="allowSelectToCreate"
|
||||||
:allow-new="allowNewFromOptions"
|
:allow-new="allowNewFromOptions"
|
||||||
:placeholder="itemMetadatum.metadatum.placeholder ? itemMetadatum.metadatum.placeholder : $i18n.get('instruction_type_existing_term')"
|
:placeholder="itemMetadatum.metadatum.placeholder ? itemMetadatum.metadatum.placeholder : $i18n.get('instruction_type_existing_term')"
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
|
|
||||||
<!-- Term creation modal, used on admin for a complete term creation -->
|
<!-- Term creation modal, used on admin for a complete term creation -->
|
||||||
<b-modal
|
<b-modal
|
||||||
v-model="isTermCreationModalOpen"
|
v-model:value="isTermCreationModalOpen"
|
||||||
:width="768"
|
:width="768"
|
||||||
trap-focus
|
trap-focus
|
||||||
aria-role="dialog"
|
aria-role="dialog"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
:allow-new="false"
|
:allow-new="false"
|
||||||
@add="emitAdd"
|
@add="emitAdd"
|
||||||
@remove="emitRemove"
|
@remove="emitRemove"
|
||||||
v-model="selected"
|
v-model:value="selected"
|
||||||
:data="labels"
|
:data="labels"
|
||||||
:maxtags="maxtags"
|
:maxtags="maxtags"
|
||||||
field="label"
|
field="label"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
:message="$i18n.getHelperMessage('tainacan-user', 'default_author')"/>
|
:message="$i18n.getHelperMessage('tainacan-user', 'default_author')"/>
|
||||||
</label>
|
</label>
|
||||||
<b-checkbox
|
<b-checkbox
|
||||||
v-model="defaultAuthor"
|
v-model:value="defaultAuthor"
|
||||||
@input="onUpdateDefaultAuthor"
|
@input="onUpdateDefaultAuthor"
|
||||||
true-value="yes"
|
true-value="yes"
|
||||||
false-value="no">
|
false-value="no">
|
||||||
|
|
|
@ -121,7 +121,7 @@
|
||||||
placement: 'bottom',
|
placement: 'bottom',
|
||||||
popperClass: ['tainacan-tooltip', 'tooltip']
|
popperClass: ['tainacan-tooltip', 'tooltip']
|
||||||
}"
|
}"
|
||||||
v-model="shouldRespectFetchOnly">{{ $i18n.get('label_expose_only_displayed_metadata') }}</b-checkbox>
|
v-model:value="shouldRespectFetchOnly">{{ $i18n.get('label_expose_only_displayed_metadata') }}</b-checkbox>
|
||||||
</div>
|
</div>
|
||||||
<b-field
|
<b-field
|
||||||
:addons="false"
|
:addons="false"
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
ref="item-document-text-input"
|
ref="item-document-text-input"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:autofocus="true"
|
:autofocus="true"
|
||||||
v-model="localTextContent"/>
|
v-model:value="localTextContent"/>
|
||||||
|
|
||||||
<div class="field is-grouped form-submit">
|
<div class="field is-grouped form-submit">
|
||||||
<div class="control">
|
<div class="control">
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<b-input
|
<b-input
|
||||||
aria-labelledby="item-document-url-modal-title"
|
aria-labelledby="item-document-url-modal-title"
|
||||||
ref="item-document-url-input"
|
ref="item-document-url-input"
|
||||||
v-model="localUrlLink" />
|
v-model:value="localUrlLink" />
|
||||||
<br>
|
<br>
|
||||||
<b-field
|
<b-field
|
||||||
:addons="false"
|
:addons="false"
|
||||||
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
<b-switch
|
<b-switch
|
||||||
size="is-small"
|
size="is-small"
|
||||||
v-model="localUrlForcedIframe" />
|
v-model:value="localUrlForcedIframe" />
|
||||||
<help-button
|
<help-button
|
||||||
:title="$i18n.get('label_document_option_forced_iframe')"
|
:title="$i18n.get('label_document_option_forced_iframe')"
|
||||||
:message="$i18n.get('info_document_option_forced_iframe')" />
|
:message="$i18n.get('info_document_option_forced_iframe')" />
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
:aria-minus-label="$i18n.get('label_decrease')"
|
:aria-minus-label="$i18n.get('label_decrease')"
|
||||||
:aria-plus-label="$i18n.get('label_increase')"
|
:aria-plus-label="$i18n.get('label_increase')"
|
||||||
min="1"
|
min="1"
|
||||||
v-model="localUrlIframeWidth"
|
v-model:value="localUrlIframeWidth"
|
||||||
step="1" />
|
step="1" />
|
||||||
</b-field>
|
</b-field>
|
||||||
<b-field :label="$i18n.get('label_document_option_iframe_height')">
|
<b-field :label="$i18n.get('label_document_option_iframe_height')">
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
:aria-minus-label="$i18n.get('label_decrease')"
|
:aria-minus-label="$i18n.get('label_decrease')"
|
||||||
:aria-plus-label="$i18n.get('label_increase')"
|
:aria-plus-label="$i18n.get('label_increase')"
|
||||||
min="1"
|
min="1"
|
||||||
v-model="localUrlIframeHeight"
|
v-model:value="localUrlIframeHeight"
|
||||||
step="1" />
|
step="1" />
|
||||||
</b-field>
|
</b-field>
|
||||||
</b-field>
|
</b-field>
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
|
|
||||||
<b-switch
|
<b-switch
|
||||||
size="is-small"
|
size="is-small"
|
||||||
v-model="localUrlIsImage" />
|
v-model:value="localUrlIsImage" />
|
||||||
<help-button
|
<help-button
|
||||||
:title="$i18n.get('label_document_option_is_image')"
|
:title="$i18n.get('label_document_option_is_image')"
|
||||||
:message="$i18n.get('info_document_option_is_image')" />
|
:message="$i18n.get('info_document_option_is_image')" />
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
size="is-small"
|
size="is-small"
|
||||||
animated
|
animated
|
||||||
@input="fetchSelectedLabels()"
|
@input="fetchSelectedLabels()"
|
||||||
v-model="activeTab"
|
v-model:value="activeTab"
|
||||||
:class="{ 'hidden-tabs-section': !isModal || !hasToDisplaySearchBar }">
|
:class="{ 'hidden-tabs-section': !isModal || !hasToDisplaySearchBar }">
|
||||||
<b-tab-item
|
<b-tab-item
|
||||||
:style="{ margin: isModal ? '0' : '0 0 1rem 0' }"
|
:style="{ margin: isModal ? '0' : '0 0 1rem 0' }"
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
autocomplete="on"
|
autocomplete="on"
|
||||||
:placeholder="$i18n.get('instruction_search')"
|
:placeholder="$i18n.get('instruction_search')"
|
||||||
:aria-label="$i18n.get('instruction_search')"
|
:aria-label="$i18n.get('instruction_search')"
|
||||||
v-model="optionName"
|
v-model:value="optionName"
|
||||||
@input="autoComplete"
|
@input="autoComplete"
|
||||||
icon-right="magnify"
|
icon-right="magnify"
|
||||||
type="search" />
|
type="search" />
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
size="is-small"
|
size="is-small"
|
||||||
animated
|
animated
|
||||||
@input="fetchSelectedLabels()"
|
@input="fetchSelectedLabels()"
|
||||||
v-model="activeTab"
|
v-model:value="activeTab"
|
||||||
:class="{ 'hidden-tabs-section': (shouldBeginWithListExpanded && !hasToDisplaySearchBar) }">
|
:class="{ 'hidden-tabs-section': (shouldBeginWithListExpanded && !hasToDisplaySearchBar) }">
|
||||||
<b-tab-item :label="isTaxonomy ? $i18n.get('label_all_terms') : $i18n.get('label_all_metadatum_values')">
|
<b-tab-item :label="isTaxonomy ? $i18n.get('label_all_terms') : $i18n.get('label_all_metadatum_values')">
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
autocomplete="on"
|
autocomplete="on"
|
||||||
:placeholder="metadatum.placeholder ? metadatum.placeholder : ( expandResultsSection ? $i18n.get('instruction_search') : $i18n.get('instruction_click_to_see_or_search') )"
|
:placeholder="metadatum.placeholder ? metadatum.placeholder : ( expandResultsSection ? $i18n.get('instruction_search') : $i18n.get('instruction_click_to_see_or_search') )"
|
||||||
:aria-label="expandResultsSection ? $i18n.get('instruction_search') : $i18n.get('instruction_click_to_see_or_search')"
|
:aria-label="expandResultsSection ? $i18n.get('instruction_search') : $i18n.get('instruction_click_to_see_or_search')"
|
||||||
v-model="optionName"
|
v-model:value="optionName"
|
||||||
@input="autoComplete"
|
@input="autoComplete"
|
||||||
@focus="!shouldBeginWithListExpanded && !expandResultsSection ? toggleResultsSection() : null"
|
@focus="!shouldBeginWithListExpanded && !expandResultsSection ? toggleResultsSection() : null"
|
||||||
icon-right="magnify"
|
icon-right="magnify"
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
<!-- Status -------------------------------- -->
|
<!-- Status -------------------------------- -->
|
||||||
<div class="status-radios">
|
<div class="status-radios">
|
||||||
<b-radio
|
<b-radio
|
||||||
v-model="selectedStatus"
|
v-model:value="selectedStatus"
|
||||||
v-for="(statusOption, index) of availableStatus"
|
v-for="(statusOption, index) of availableStatus"
|
||||||
:key="index"
|
:key="index"
|
||||||
:native-value="statusOption.slug">
|
:native-value="statusOption.slug">
|
||||||
|
|
|
@ -33,12 +33,12 @@
|
||||||
class="type-of-deletion-options">
|
class="type-of-deletion-options">
|
||||||
<b-radio
|
<b-radio
|
||||||
native-value="selected"
|
native-value="selected"
|
||||||
v-model="typeOfDelete">
|
v-model:value="typeOfDelete">
|
||||||
{{ amountOfTerms > 1 ? $i18n.get('label_remove_selected_terms') : $i18n.get('label_remove_selected_term') }}
|
{{ amountOfTerms > 1 ? $i18n.get('label_remove_selected_terms') : $i18n.get('label_remove_selected_term') }}
|
||||||
</b-radio>
|
</b-radio>
|
||||||
<b-radio
|
<b-radio
|
||||||
native-value="descendants"
|
native-value="descendants"
|
||||||
v-model="typeOfDelete">
|
v-model:value="typeOfDelete">
|
||||||
{{ amountOfTerms > 1 ? $i18n.get('label_remove_terms_and_descendants') : $i18n.get('label_remove_term_and_descendants') }}
|
{{ amountOfTerms > 1 ? $i18n.get('label_remove_terms_and_descendants') : $i18n.get('label_remove_term_and_descendants') }}
|
||||||
</b-radio>
|
</b-radio>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<b-taginput
|
<b-taginput
|
||||||
v-model="termNames"
|
v-model:value="termNames"
|
||||||
attached
|
attached
|
||||||
:confirm-keys="termNamesSeparator"
|
:confirm-keys="termNamesSeparator"
|
||||||
:on-paste-separators="termNamesSeparator"
|
:on-paste-separators="termNamesSeparator"
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
v-for="separator of ['Enter', ',', ';', '|']"
|
v-for="separator of ['Enter', ',', ';', '|']"
|
||||||
:key="separator"
|
:key="separator"
|
||||||
name="term-multiple-insertion-separator"
|
name="term-multiple-insertion-separator"
|
||||||
v-model="termNamesSeparator"
|
v-model:value="termNamesSeparator"
|
||||||
:native-value="separator"
|
:native-value="separator"
|
||||||
:disabled="separator == 'Enter'">
|
:disabled="separator == 'Enter'">
|
||||||
<kbd>{{ separator }}</kbd>
|
<kbd>{{ separator }}</kbd>
|
||||||
|
@ -66,12 +66,12 @@
|
||||||
class="parent-term-options">
|
class="parent-term-options">
|
||||||
<b-radio
|
<b-radio
|
||||||
:native-value="false"
|
:native-value="false"
|
||||||
v-model="hasParent">
|
v-model:value="hasParent">
|
||||||
{{ $i18n.get('label_no_parent_root_term') }}
|
{{ $i18n.get('label_no_parent_root_term') }}
|
||||||
</b-radio>
|
</b-radio>
|
||||||
<b-radio
|
<b-radio
|
||||||
:native-value="true"
|
:native-value="true"
|
||||||
v-model="hasParent">
|
v-model:value="hasParent">
|
||||||
{{ $i18n.get('instruction_select_a_parent_term') }}
|
{{ $i18n.get('instruction_select_a_parent_term') }}
|
||||||
</b-radio>
|
</b-radio>
|
||||||
<b-autocomplete
|
<b-autocomplete
|
||||||
|
@ -81,7 +81,7 @@
|
||||||
:data="parentTerms"
|
:data="parentTerms"
|
||||||
field="name"
|
field="name"
|
||||||
clearable
|
clearable
|
||||||
v-model="parentTermName"
|
v-model:value="parentTermName"
|
||||||
@select="onSelectParentTerm($event)"
|
@select="onSelectParentTerm($event)"
|
||||||
:loading="isFetchingParentTerms"
|
:loading="isFetchingParentTerms"
|
||||||
@input="fetchParentTerms"
|
@input="fetchParentTerms"
|
||||||
|
|
|
@ -33,12 +33,12 @@
|
||||||
<div class="parent-term-options">
|
<div class="parent-term-options">
|
||||||
<b-radio
|
<b-radio
|
||||||
:native-value="false"
|
:native-value="false"
|
||||||
v-model="hasParent">
|
v-model:value="hasParent">
|
||||||
{{ $i18n.get('label_no_parent_root_term') }}
|
{{ $i18n.get('label_no_parent_root_term') }}
|
||||||
</b-radio>
|
</b-radio>
|
||||||
<b-radio
|
<b-radio
|
||||||
:native-value="true"
|
:native-value="true"
|
||||||
v-model="hasParent">
|
v-model:value="hasParent">
|
||||||
{{ $i18n.get('instruction_select_a_parent_term') }}
|
{{ $i18n.get('instruction_select_a_parent_term') }}
|
||||||
</b-radio>
|
</b-radio>
|
||||||
<b-autocomplete
|
<b-autocomplete
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
:data="parentTerms"
|
:data="parentTerms"
|
||||||
field="name"
|
field="name"
|
||||||
clearable
|
clearable
|
||||||
v-model="parentTermName"
|
v-model:value="parentTermName"
|
||||||
@select="onSelectParentTerm($event)"
|
@select="onSelectParentTerm($event)"
|
||||||
:loading="isFetchingParentTerms"
|
:loading="isFetchingParentTerms"
|
||||||
@input="fetchParentTerms"
|
@input="fetchParentTerms"
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
<b-datepicker
|
<b-datepicker
|
||||||
ref="datepicker"
|
ref="datepicker"
|
||||||
:placeholder="$i18n.get('instruction_filter_activities_date')"
|
:placeholder="$i18n.get('instruction_filter_activities_date')"
|
||||||
v-model="searchDates"
|
v-model:value="searchDates"
|
||||||
range
|
range
|
||||||
:trap-focus="false"
|
:trap-focus="false"
|
||||||
@input="searchActivities()"
|
@input="searchActivities()"
|
||||||
|
@ -132,7 +132,7 @@
|
||||||
size="is-small"
|
size="is-small"
|
||||||
:aria-label="$i18n.get('instruction_search') + ' ' + $i18n.get('activities')"
|
:aria-label="$i18n.get('instruction_search') + ' ' + $i18n.get('activities')"
|
||||||
autocomplete="on"
|
autocomplete="on"
|
||||||
v-model="searchQuery"
|
v-model:value="searchQuery"
|
||||||
@keyup.enter="searchActivities()"
|
@keyup.enter="searchActivities()"
|
||||||
icon-right="magnify"
|
icon-right="magnify"
|
||||||
icon-right-clickable
|
icon-right-clickable
|
||||||
|
@ -149,7 +149,7 @@
|
||||||
:placeholder="$i18n.get('instruction_filter_activities_date')"
|
:placeholder="$i18n.get('instruction_filter_activities_date')"
|
||||||
range
|
range
|
||||||
icon="calendar-today"
|
icon="calendar-today"
|
||||||
v-model="searchDates"
|
v-model:value="searchDates"
|
||||||
@input="searchProcesses()"
|
@input="searchProcesses()"
|
||||||
:date-formatter="(date) => dateFormatter(date)"
|
:date-formatter="(date) => dateFormatter(date)"
|
||||||
:date-parser="(date) => dateParser(date)"
|
:date-parser="(date) => dateParser(date)"
|
||||||
|
@ -196,7 +196,7 @@
|
||||||
size="is-small"
|
size="is-small"
|
||||||
:aria-label="$i18n.get('instruction_search') + ' ' + $i18n.get('activities')"
|
:aria-label="$i18n.get('instruction_search') + ' ' + $i18n.get('activities')"
|
||||||
autocomplete="on"
|
autocomplete="on"
|
||||||
v-model="searchQuery"
|
v-model:value="searchQuery"
|
||||||
@keyup.enter="searchProcesses()"
|
@keyup.enter="searchProcesses()"
|
||||||
icon-right="magnify"
|
icon-right="magnify"
|
||||||
icon-right-clickable
|
icon-right-clickable
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<div class="control has-icons-right is-small is-clearfix">
|
<div class="control has-icons-right is-small is-clearfix">
|
||||||
<b-autocomplete
|
<b-autocomplete
|
||||||
clearable
|
clearable
|
||||||
v-model="filteredRole"
|
v-model:value="filteredRole"
|
||||||
:data="filteredRoles"
|
:data="filteredRoles"
|
||||||
:placeholder="$i18n.get('instruction_type_search_roles_filter')"
|
:placeholder="$i18n.get('instruction_type_search_roles_filter')"
|
||||||
keep-first
|
keep-first
|
||||||
|
|
|
@ -88,7 +88,7 @@
|
||||||
custom
|
custom
|
||||||
aria-role="listitem">
|
aria-role="listitem">
|
||||||
<b-checkbox
|
<b-checkbox
|
||||||
v-model="collectionTaxonomyTerm.enabled"
|
v-model:value="collectionTaxonomyTerm.enabled"
|
||||||
:native-value="collectionTaxonomyTerm.enabled">
|
:native-value="collectionTaxonomyTerm.enabled">
|
||||||
{{ collectionTaxonomyTerm.name }}
|
{{ collectionTaxonomyTerm.name }}
|
||||||
</b-checkbox>
|
</b-checkbox>
|
||||||
|
@ -183,7 +183,7 @@
|
||||||
size="is-small"
|
size="is-small"
|
||||||
:aria-label="$i18n.get('instruction_search') + ' ' + $i18n.get('collections')"
|
:aria-label="$i18n.get('instruction_search') + ' ' + $i18n.get('collections')"
|
||||||
autocomplete="on"
|
autocomplete="on"
|
||||||
v-model="searchQuery"
|
v-model:value="searchQuery"
|
||||||
@keyup.enter="searchCollections()"
|
@keyup.enter="searchCollections()"
|
||||||
icon-right="magnify"
|
icon-right="magnify"
|
||||||
icon-right-clickable
|
icon-right-clickable
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
<b-field class="header-item">
|
<b-field class="header-item">
|
||||||
<b-input
|
<b-input
|
||||||
:placeholder="$i18n.get('instruction_type_search_filter_filter')"
|
:placeholder="$i18n.get('instruction_type_search_filter_filter')"
|
||||||
v-model="filterNameFilterString"
|
v-model:value="filterNameFilterString"
|
||||||
icon="magnify"
|
icon="magnify"
|
||||||
size="is-small"
|
size="is-small"
|
||||||
icon-right="close-circle"
|
icon-right="close-circle"
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
class="active-filters-area"
|
class="active-filters-area"
|
||||||
@change="handleChangeOnFilter"
|
@change="handleChangeOnFilter"
|
||||||
:class="{'filters-area-receive': isDraggingFromAvailable}"
|
:class="{'filters-area-receive': isDraggingFromAvailable}"
|
||||||
v-model="activeFiltersList"
|
v-model:value="activeFiltersList"
|
||||||
:group="{ name:'filters', pull: false, put: true }"
|
:group="{ name:'filters', pull: false, put: true }"
|
||||||
:sort="(openedFilterId == '' || openedFilterId == undefined) && !isRepositoryLevel"
|
:sort="(openedFilterId == '' || openedFilterId == undefined) && !isRepositoryLevel"
|
||||||
:handle="'.handle'"
|
:handle="'.handle'"
|
||||||
|
@ -231,7 +231,7 @@
|
||||||
<b-field class="header-item">
|
<b-field class="header-item">
|
||||||
<b-input
|
<b-input
|
||||||
:placeholder="$i18n.get('instruction_type_search_metadata_filter')"
|
:placeholder="$i18n.get('instruction_type_search_metadata_filter')"
|
||||||
v-model="metadatumNameFilterString"
|
v-model:value="metadatumNameFilterString"
|
||||||
icon="magnify"
|
icon="magnify"
|
||||||
size="is-small"
|
size="is-small"
|
||||||
icon-right="close-circle"
|
icon-right="close-circle"
|
||||||
|
@ -245,7 +245,7 @@
|
||||||
<draggable
|
<draggable
|
||||||
@change="handleChangeOnMetadata"
|
@change="handleChangeOnMetadata"
|
||||||
v-if="availableMetadata.length > 0 && !isLoadingMetadatumTypes"
|
v-if="availableMetadata.length > 0 && !isLoadingMetadatumTypes"
|
||||||
v-model="availableMetadata"
|
v-model:value="availableMetadata"
|
||||||
:sort="false"
|
:sort="false"
|
||||||
filter=".not-sortable-item"
|
filter=".not-sortable-item"
|
||||||
:prevent-on-filter="false"
|
:prevent-on-filter="false"
|
||||||
|
|
|
@ -255,7 +255,7 @@
|
||||||
custom
|
custom
|
||||||
aria-role="listitem">
|
aria-role="listitem">
|
||||||
<b-checkbox
|
<b-checkbox
|
||||||
v-model="column.display"
|
v-model:value="column.display"
|
||||||
:native-value="column.display">
|
:native-value="column.display">
|
||||||
{{ column.name }}
|
{{ column.name }}
|
||||||
</b-checkbox>
|
</b-checkbox>
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<div class="metadata-list-page">
|
<div class="metadata-list-page">
|
||||||
<b-tabs
|
<b-tabs
|
||||||
v-if="(isRepositoryLevel && $userCaps.hasCapability('tnc_rep_edit_metadata') || (!isRepositoryLevel && collection && collection.current_user_can_edit_metadata))"
|
v-if="(isRepositoryLevel && $userCaps.hasCapability('tnc_rep_edit_metadata') || (!isRepositoryLevel && collection && collection.current_user_can_edit_metadata))"
|
||||||
v-model="activeTab">
|
v-model:value="activeTab">
|
||||||
<b-tab-item :label="isRepositoryLevel ? repositoryTabLabel : collectionTabLabel">
|
<b-tab-item :label="isRepositoryLevel ? repositoryTabLabel : collectionTabLabel">
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,7 @@
|
||||||
size="is-small"
|
size="is-small"
|
||||||
:aria-label="$i18n.get('instruction_search') + ' ' + $i18n.get('taxonomies')"
|
:aria-label="$i18n.get('instruction_search') + ' ' + $i18n.get('taxonomies')"
|
||||||
autocomplete="on"
|
autocomplete="on"
|
||||||
v-model="searchQuery"
|
v-model:value="searchQuery"
|
||||||
@keyup.enter="searchTaxonomies()"
|
@keyup.enter="searchTaxonomies()"
|
||||||
icon-right="magnify"
|
icon-right="magnify"
|
||||||
icon-right-clickable
|
icon-right-clickable
|
||||||
|
|
|
@ -163,7 +163,7 @@
|
||||||
<b-select
|
<b-select
|
||||||
:placeholder="$i18n.get('instruction_select_geocoordinate_metadatum')"
|
:placeholder="$i18n.get('instruction_select_geocoordinate_metadatum')"
|
||||||
id="tainacan-select-geocoordinate-metatum"
|
id="tainacan-select-geocoordinate-metatum"
|
||||||
v-model="selectedGeocoordinateMetadatumId">
|
v-model:value="selectedGeocoordinateMetadatumId">
|
||||||
<option
|
<option
|
||||||
v-for="(geocoordinateMetadatum, geocoordinateMetadatumId) in geocoordinateMetadata"
|
v-for="(geocoordinateMetadatum, geocoordinateMetadatumId) in geocoordinateMetadata"
|
||||||
:key="geocoordinateMetadatum.id"
|
:key="geocoordinateMetadatum.id"
|
||||||
|
|
|
@ -188,7 +188,7 @@
|
||||||
custom
|
custom
|
||||||
aria-role="listitem">
|
aria-role="listitem">
|
||||||
<b-checkbox
|
<b-checkbox
|
||||||
v-model="column.display"
|
v-model:value="column.display"
|
||||||
:native-value="column.display">
|
:native-value="column.display">
|
||||||
{{ column.name }}
|
{{ column.name }}
|
||||||
</b-checkbox>
|
</b-checkbox>
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
</label>
|
</label>
|
||||||
<b-input
|
<b-input
|
||||||
:placeholder="$i18n.get('label_term_without_name')"
|
:placeholder="$i18n.get('label_term_without_name')"
|
||||||
v-model="form.name"
|
v-model:value="form.name"
|
||||||
name="name"
|
name="name"
|
||||||
@focus="clearErrors({ name: 'name', repeated: 'repeated' })"/>
|
@focus="clearErrors({ name: 'name', repeated: 'repeated' })"/>
|
||||||
</b-field>
|
</b-field>
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
@input="onToggleSwitch()"
|
@input="onToggleSwitch()"
|
||||||
id="tainacan-checkbox-has-parent"
|
id="tainacan-checkbox-has-parent"
|
||||||
size="is-small"
|
size="is-small"
|
||||||
v-model="hasParent" />
|
v-model:value="hasParent" />
|
||||||
<help-button
|
<help-button
|
||||||
:title="$i18n.get('label_parent_term')"
|
:title="$i18n.get('label_parent_term')"
|
||||||
:message="$i18n.get('info_help_parent_term')"/>
|
:message="$i18n.get('info_help_parent_term')"/>
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
:data="parentTerms"
|
:data="parentTerms"
|
||||||
field="name"
|
field="name"
|
||||||
clearable
|
clearable
|
||||||
v-model="parentTermName"
|
v-model:value="parentTermName"
|
||||||
@select="onSelectParentTerm($event)"
|
@select="onSelectParentTerm($event)"
|
||||||
:loading="isFetchingParentTerms"
|
:loading="isFetchingParentTerms"
|
||||||
@input="fetchParentTerms"
|
@input="fetchParentTerms"
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
<b-upload
|
<b-upload
|
||||||
expanded
|
expanded
|
||||||
v-if="!form.document"
|
v-if="!form.document"
|
||||||
v-model="form.document"
|
v-model:value="form.document"
|
||||||
drag-drop>
|
drag-drop>
|
||||||
<section class="section">
|
<section class="section">
|
||||||
<div class="content has-text-centered">
|
<div class="content has-text-centered">
|
||||||
|
@ -85,21 +85,21 @@
|
||||||
<div v-if="form.document_type == 'text'">
|
<div v-if="form.document_type == 'text'">
|
||||||
<b-input
|
<b-input
|
||||||
type="textarea"
|
type="textarea"
|
||||||
v-model="form.document" />
|
v-model:value="form.document" />
|
||||||
<br v-if="hasMoreThanOneDocumentTypeOption">
|
<br v-if="hasMoreThanOneDocumentTypeOption">
|
||||||
</div>
|
</div>
|
||||||
<div v-if="form.document_type == 'url'">
|
<div v-if="form.document_type == 'url'">
|
||||||
<b-input
|
<b-input
|
||||||
:placeholder="$i18n.get('instruction_insert_url')"
|
:placeholder="$i18n.get('instruction_insert_url')"
|
||||||
type="url"
|
type="url"
|
||||||
v-model="form.document" />
|
v-model:value="form.document" />
|
||||||
<b-field
|
<b-field
|
||||||
:addons="false"
|
:addons="false"
|
||||||
:label="$i18n.get('label_document_option_forced_iframe')">
|
:label="$i18n.get('label_document_option_forced_iframe')">
|
||||||
|
|
||||||
<b-switch
|
<b-switch
|
||||||
size="is-small"
|
size="is-small"
|
||||||
v-model="form.document_options.forced_iframe" />
|
v-model:value="form.document_options.forced_iframe" />
|
||||||
<help-button
|
<help-button
|
||||||
:title="$i18n.get('label_document_option_forced_iframe')"
|
:title="$i18n.get('label_document_option_forced_iframe')"
|
||||||
:message="$i18n.get('info_document_option_forced_iframe')" />
|
:message="$i18n.get('info_document_option_forced_iframe')" />
|
||||||
|
@ -114,7 +114,7 @@
|
||||||
:aria-minus-label="$i18n.get('label_decrease')"
|
:aria-minus-label="$i18n.get('label_decrease')"
|
||||||
:aria-plus-label="$i18n.get('label_increase')"
|
:aria-plus-label="$i18n.get('label_increase')"
|
||||||
min="1"
|
min="1"
|
||||||
v-model="form.document_options.forced_iframe_width"
|
v-model:value="form.document_options.forced_iframe_width"
|
||||||
step="1" />
|
step="1" />
|
||||||
</b-field>
|
</b-field>
|
||||||
<b-field
|
<b-field
|
||||||
|
@ -124,7 +124,7 @@
|
||||||
:aria-minus-label="$i18n.get('label_decrease')"
|
:aria-minus-label="$i18n.get('label_decrease')"
|
||||||
:aria-plus-label="$i18n.get('label_increase')"
|
:aria-plus-label="$i18n.get('label_increase')"
|
||||||
min="1"
|
min="1"
|
||||||
v-model="form.document_options.forced_iframe_height"
|
v-model:value="form.document_options.forced_iframe_height"
|
||||||
step="1" />
|
step="1" />
|
||||||
</b-field>
|
</b-field>
|
||||||
</b-field>
|
</b-field>
|
||||||
|
@ -141,7 +141,7 @@
|
||||||
|
|
||||||
<b-switch
|
<b-switch
|
||||||
size="is-small"
|
size="is-small"
|
||||||
v-model="form.document_options.is_image" />
|
v-model:value="form.document_options.is_image" />
|
||||||
<help-button
|
<help-button
|
||||||
:title="$i18n.get('label_document_option_is_image')"
|
:title="$i18n.get('label_document_option_is_image')"
|
||||||
:message="$i18n.get('info_document_option_is_image')" />
|
:message="$i18n.get('info_document_option_is_image')" />
|
||||||
|
@ -226,7 +226,7 @@
|
||||||
<b-switch
|
<b-switch
|
||||||
id="tainacan-checkbox-show-thumbnail-input"
|
id="tainacan-checkbox-show-thumbnail-input"
|
||||||
size="is-small"
|
size="is-small"
|
||||||
v-model="showThumbnailInput">
|
v-model:value="showThumbnailInput">
|
||||||
{{ $i18n.get('label_upload_custom_thumbnail') }}
|
{{ $i18n.get('label_upload_custom_thumbnail') }}
|
||||||
</b-switch>
|
</b-switch>
|
||||||
</div>
|
</div>
|
||||||
|
@ -238,7 +238,7 @@
|
||||||
<b-upload
|
<b-upload
|
||||||
expanded
|
expanded
|
||||||
v-if="!form.thumbnail"
|
v-if="!form.thumbnail"
|
||||||
v-model="form.thumbnail"
|
v-model:value="form.thumbnail"
|
||||||
drag-drop>
|
drag-drop>
|
||||||
<section class="section">
|
<section class="section">
|
||||||
<div class="content has-text-centered">
|
<div class="content has-text-centered">
|
||||||
|
@ -311,7 +311,7 @@
|
||||||
id="tainacan-item-metadatum_id-attachments">
|
id="tainacan-item-metadatum_id-attachments">
|
||||||
<b-upload
|
<b-upload
|
||||||
expanded
|
expanded
|
||||||
v-model="form.attachments"
|
v-model:value="form.attachments"
|
||||||
multiple
|
multiple
|
||||||
drag-drop>
|
drag-drop>
|
||||||
<section class="section">
|
<section class="section">
|
||||||
|
@ -383,7 +383,7 @@
|
||||||
size="is-small"
|
size="is-small"
|
||||||
true-value="open"
|
true-value="open"
|
||||||
false-value="closed"
|
false-value="closed"
|
||||||
v-model="form.comment_status">
|
v-model:value="form.comment_status">
|
||||||
{{ $i18n.get('label_allow_comments') }}
|
{{ $i18n.get('label_allow_comments') }}
|
||||||
</b-switch>
|
</b-switch>
|
||||||
</div>
|
</div>
|
||||||
|
@ -420,7 +420,7 @@
|
||||||
<component
|
<component
|
||||||
v-if="metadataSections.length"
|
v-if="metadataSections.length"
|
||||||
:is="showSteppedLayout ? 'b-steps' : 'div'"
|
:is="showSteppedLayout ? 'b-steps' : 'div'"
|
||||||
v-model="activeSectionStep"
|
v-model:value="activeSectionStep"
|
||||||
:has-navigation="false"
|
:has-navigation="false"
|
||||||
type="is-secondary"
|
type="is-secondary"
|
||||||
mobile-mode="compact"
|
mobile-mode="compact"
|
||||||
|
@ -588,7 +588,7 @@
|
||||||
class="terms-agreement-confirmation-section">
|
class="terms-agreement-confirmation-section">
|
||||||
<b-field>
|
<b-field>
|
||||||
<b-checkbox
|
<b-checkbox
|
||||||
v-model="userHasAgreedToTerms"
|
v-model:value="userHasAgreedToTerms"
|
||||||
size="is-medium">
|
size="is-medium">
|
||||||
<span v-html="termsAgreementMessage" />
|
<span v-html="termsAgreementMessage" />
|
||||||
</b-checkbox>
|
</b-checkbox>
|
||||||
|
|
Loading…
Reference in New Issue