-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f459ca5
commit 1d451fd
Showing
3 changed files
with
90 additions
and
13 deletions.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
arches_lingo/src/arches_lingo/components/generic/LabelEditor.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<script setup lang="ts"> | ||
import { defineProps, ref } from "vue"; | ||
import NonLocalizedString from "@/arches_lingo/components/generic/NonLocalizedString.vue"; | ||
// import ResourceInstanceRelationships from "@/arches_lingo/components/generic/ResourceInstanceRelationships.vue"; | ||
import { EDIT } from "@/arches_lingo/constants.ts"; | ||
import type { AppellativeStatus } from "@/arches_lingo/types.ts"; | ||
const props = withDefaults( | ||
defineProps<{ | ||
value?: AppellativeStatus; | ||
}>(), | ||
{ | ||
value: () => ({}) as AppellativeStatus, | ||
}, | ||
); | ||
const appellative_status = ref(props.value); | ||
function onUpdate(newValue: string) { | ||
// handle the update | ||
console.log("Update new value here!" + newValue); | ||
} | ||
</script> | ||
|
||
<template> | ||
<!-- Label: string --> | ||
<label for="">{{ $gettext("Label") }}</label> | ||
<NonLocalizedString | ||
:value=" | ||
appellative_status?.appellative_status_ascribed_name_content ?? '' | ||
" | ||
:mode="EDIT" | ||
@update="onUpdate" | ||
/> | ||
<!-- Label Language: reference datatype --> | ||
<label for="">{{ $gettext("Label Language") }}</label> | ||
|
||
<!-- Label Type: reference datatype --> | ||
<label for="">{{ $gettext("Label Type") }}</label> | ||
|
||
<!-- Label Status: reference datatype --> | ||
<label for="">{{ $gettext("Label Status") }}</label> | ||
|
||
<!-- Label Status Metatype: reference datatype --> | ||
<label for="">{{ $gettext("Label Metatype") }}</label> | ||
|
||
<!-- Label Temporal Validity Start: date --> | ||
<label for="">{{ $gettext("Label Temporal Validity Start") }}</label> | ||
|
||
<!-- Label Temporal Validity End: date --> | ||
<label for="">{{ $gettext("Label Temporal Validity End") }}</label> | ||
|
||
<!-- Contributor: resource instance --> | ||
<label for="">{{ $gettext("Contributor") }}</label> | ||
|
||
<!-- Sources: resource instance --> | ||
<label for="">{{ $gettext("Sources") }}</label> | ||
|
||
<!-- Warrant Type: reference datatype --> | ||
<label for="">{{ $gettext("Warrant Type") }}</label> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters