@glossarist/concept-browser 0.4.9 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glossarist/concept-browser",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Vue SPA for browsing Glossarist terminology datasets with cross-reference resolution, graph visualization, and multi-language support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -22,7 +22,6 @@ const {
|
|
|
22
22
|
taxonomyKeys,
|
|
23
23
|
taxonomyLabels,
|
|
24
24
|
treeRoots,
|
|
25
|
-
supportingClasses,
|
|
26
25
|
toggleExpand,
|
|
27
26
|
childClasses,
|
|
28
27
|
hasChildren,
|
|
@@ -167,19 +166,6 @@ function selectTaxonomy(key: string) {
|
|
|
167
166
|
</div>
|
|
168
167
|
</template>
|
|
169
168
|
|
|
170
|
-
<!-- Supporting classes -->
|
|
171
|
-
<div v-if="supportingClasses.length" class="mt-2 pt-2 border-t border-ink-100/40">
|
|
172
|
-
<div class="text-[10px] uppercase tracking-wide text-ink-300 mb-1 px-2">Supporting</div>
|
|
173
|
-
<button v-for="cls in supportingClasses" :key="cls.compact"
|
|
174
|
-
@click="selectClass(cls.compact)"
|
|
175
|
-
class="w-full flex items-center gap-1.5 px-2 py-1 rounded-lg text-[11px] transition-colors"
|
|
176
|
-
:class="activeClassId === cls.compact && !activeTaxonomy ? 'bg-ink-800/8 text-blue-700 font-medium' : 'text-ink-400 hover:bg-ink-50'"
|
|
177
|
-
>
|
|
178
|
-
<span class="w-3 text-ink-200">·</span>
|
|
179
|
-
<span class="flex-1 text-left">{{ cls.label }}</span>
|
|
180
|
-
</button>
|
|
181
|
-
</div>
|
|
182
|
-
|
|
183
169
|
<!-- SKOS Taxonomies -->
|
|
184
170
|
<div class="mt-2 pt-2 border-t border-ink-100/40">
|
|
185
171
|
<div class="text-[10px] uppercase tracking-wide text-ink-300 mb-1 px-2">Taxonomies</div>
|
|
@@ -2,7 +2,6 @@ import { ref, computed } from 'vue';
|
|
|
2
2
|
import {
|
|
3
3
|
getClass,
|
|
4
4
|
getClassTree,
|
|
5
|
-
getAllClasses,
|
|
6
5
|
type OwlClass,
|
|
7
6
|
} from '../adapters/ontology-schema';
|
|
8
7
|
|
|
@@ -53,15 +52,6 @@ function hasChildren(cls: OwlClass): boolean {
|
|
|
53
52
|
|
|
54
53
|
const treeRoots = getClassTree();
|
|
55
54
|
|
|
56
|
-
const supportingClasses = computed(() =>
|
|
57
|
-
getAllClasses().filter(
|
|
58
|
-
c => c.children.length === 0
|
|
59
|
-
&& !c.subClassOf?.startsWith('gloss:')
|
|
60
|
-
&& c.compact !== 'gloss:Concept'
|
|
61
|
-
&& c.compact !== 'gloss:ConceptCollection'
|
|
62
|
-
)
|
|
63
|
-
);
|
|
64
|
-
|
|
65
55
|
const allNavItems = computed(() => {
|
|
66
56
|
const items: { id: string; label: string; depth: number }[] = [];
|
|
67
57
|
function walk(classes: OwlClass[], depth: number) {
|
|
@@ -82,7 +72,6 @@ export function useOntologyNav() {
|
|
|
82
72
|
taxonomyKeys,
|
|
83
73
|
taxonomyLabels,
|
|
84
74
|
treeRoots,
|
|
85
|
-
supportingClasses,
|
|
86
75
|
allNavItems,
|
|
87
76
|
toggleExpand,
|
|
88
77
|
childClasses,
|