Skip to content

Commit

Permalink
updates SchemeLabelViewer #209
Browse files Browse the repository at this point in the history
  • Loading branch information
chrabyrd committed Feb 21, 2025
1 parent b0a009f commit cd4eebb
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ async function deleteSectionValue(tileId: string) {
icon="pi pi-file-edit"
:aria-label="$gettext('edit')"
@click="
openEditor(componentName, slotProps.data.tileid)
openEditor!(
componentName,
slotProps.data.tileid,
)
"
/>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import { useGettext } from "vue3-gettext";
import MetaStringViewer from "@/arches_lingo/components/generic/MetaStringViewer.vue";
import ResourceInstanceRelationships from "@/arches_lingo/components/generic/ResourceInstanceRelationships.vue";
import ReferenceDatatype from "@/arches_lingo/components/generic/ReferenceDatatype.vue";
import NonLocalizedStringWidget from "@/arches_component_lab/widgets/NonLocalizedStringWidget/NonLocalizedStringWidget.vue";
import ReferenceSelectWidget from "@/arches_controlled_lists/widgets/ReferenceSelectWidget/ReferenceSelectWidget.vue";
Expand All @@ -15,14 +13,13 @@ import type {
AppellativeStatus,
MetaStringText,
} from "@/arches_lingo/types.ts";
import { getCurrentInstance } from "vue";
const { $gettext } = useGettext();
const props = defineProps<{
schemeLabels: AppellativeStatus[];
}>();
const { $gettext } = useGettext();
const metaStringLabel: MetaStringText = {
deleteConfirm: $gettext("Are you sure you want to delete this label?"),
language: $gettext("Label Language"),
Expand All @@ -41,52 +38,53 @@ const metaStringLabel: MetaStringText = {
node-alias="appellative_status"
>
<template #name="{ rowData }">
<span>
{{
(rowData as AppellativeStatus)
.appellative_status_ascribed_name_content
}}
</span>
<NonLocalizedStringWidget
graph-slug="scheme"
node-alias="appellative_status_ascribed_name_content"
:initial-value="
rowData.appellative_status_ascribed_name_content
"
:mode="VIEW"
:hide-label="true"
/>
</template>
<template #type="{ rowData }">
<ReferenceDatatype
:value="
(rowData as AppellativeStatus)
.appellative_status_ascribed_relation
"
<ReferenceSelectWidget
graph-slug="scheme"
node-alias="appellative_status_ascribed_relation"
:initial-value="rowData.appellative_status_ascribed_relation"
:mode="VIEW"
>
</ReferenceDatatype>
:hide-label="true"
/>
</template>
<template #language="{ rowData }">
<ReferenceDatatype
:value="
(rowData as AppellativeStatus)
.appellative_status_ascribed_name_language
<ReferenceSelectWidget
graph-slug="scheme"
node-alias="appellative_status_ascribed_name_language"
:initial-value="
rowData.appellative_status_ascribed_name_language
"
:mode="VIEW"
>
</ReferenceDatatype>
:hide-label="true"
/>
</template>
<template #drawer="{ rowData }">
<div>
<span>{{ $gettext("Bibliographic Sources:") }}</span>
<ResourceInstanceRelationships
:value="
(rowData as AppellativeStatus)
.appellative_status_data_assignment_object_used
"
></ResourceInstanceRelationships>
</div>
<div>
<span>{{ $gettext("Contributors:") }}</span>
<ResourceInstanceRelationships
:value="
(rowData as AppellativeStatus)
.appellative_status_data_assignment_actor
"
></ResourceInstanceRelationships>
</div>
<ResourceInstanceMultiSelectWidget
graph-slug="scheme"
node-alias="appellative_status_data_assignment_object_used"
:initial-value="
rowData.appellative_status_data_assignment_object_used
"
:mode="VIEW"
/>
<ResourceInstanceMultiSelectWidget
graph-slug="scheme"
node-alias="appellative_status_data_assignment_actor"
:initial-value="
rowData.appellative_status_data_assignment_actor
"
:mode="VIEW"
/>
</template>
</MetaStringViewer>
</template>
Expand Down

0 comments on commit cd4eebb

Please sign in to comment.