@glossarist/concept-browser 0.7.26 → 0.7.27
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.7.
|
|
3
|
+
"version": "0.7.27",
|
|
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": {
|
|
@@ -252,7 +252,7 @@ const activeSectionId = computed(() => {
|
|
|
252
252
|
<button
|
|
253
253
|
v-if="group.label"
|
|
254
254
|
@click="toggleGroup(group.id)"
|
|
255
|
-
class="w-full flex items-start gap-1.5 px-2 py-1.5 rounded-lg text-xs font-semibold transition-colors hover:bg-ink-50"
|
|
255
|
+
class="sidebar-group-label w-full flex items-start gap-1.5 px-2 py-1.5 rounded-lg text-xs font-semibold transition-colors hover:bg-ink-50"
|
|
256
256
|
:style="group.color ? { color: group.color } : {}"
|
|
257
257
|
>
|
|
258
258
|
<span class="w-3 text-[10px] mt-0.5 flex-shrink-0">{{ isGroupExpanded(group.id) ? '▾' : '▸' }}</span>
|
|
@@ -143,7 +143,7 @@ async function navigateRelated(ref: { source: string | null; id: string | null }
|
|
|
143
143
|
router.push({ name: 'concept', params: { registerId: target.registerId, conceptId: target.conceptId } });
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
function relatedLabel(dr: { content?: string; ref?: { source: string | null; id: string | null } | null }): string {
|
|
146
|
+
function relatedLabel(dr: { content?: string | null; ref?: { source: string | null; id: string | null } | null }): string {
|
|
147
147
|
if (dr.content) return dr.content;
|
|
148
148
|
const resolved = dr.ref ? getResolvedRef(dr.ref).target : null;
|
|
149
149
|
if (resolved) {
|
|
@@ -364,7 +364,7 @@ const edgeDisplayCache = computed(() => {
|
|
|
364
364
|
});
|
|
365
365
|
|
|
366
366
|
function getEdgeDisplay(uri: string): EdgeDisplay {
|
|
367
|
-
return edgeDisplayCache.value.get(uri) ?? { uri, conceptId: uri, tooltip: uri, isLocal: false, badge: null };
|
|
367
|
+
return edgeDisplayCache.value.get(uri) ?? { uri, conceptId: uri, designation: "", tooltip: uri, isLocal: false, badge: null };
|
|
368
368
|
}
|
|
369
369
|
|
|
370
370
|
interface ResolvedRef {
|
|
@@ -402,7 +402,7 @@ async function navigateEdge(edge: GraphEdge) {
|
|
|
402
402
|
|
|
403
403
|
function navigateDomain(domain: { slug: string; conceptId?: string }) {
|
|
404
404
|
const sectionId = domain.conceptId || domain.slug;
|
|
405
|
-
router.push({ name: 'dataset', params: { registerId: manifest.id }, query: { section: sectionId } });
|
|
405
|
+
router.push({ name: 'dataset', params: { registerId: props.manifest.id }, query: { section: sectionId } });
|
|
406
406
|
}
|
|
407
407
|
|
|
408
408
|
function getTermForLang(lang: string): string {
|
package/src/style.css
CHANGED
|
@@ -434,6 +434,14 @@
|
|
|
434
434
|
.dark .bg-red-50 { background-color: rgba(239, 68, 68, 0.15) !important; }
|
|
435
435
|
.dark .text-red-600 { color: #fca5a5 !important; }
|
|
436
436
|
|
|
437
|
+
/* ── Sidebar group labels (brand colors are too dark in dark mode) ── */
|
|
438
|
+
.dark .sidebar-group-label {
|
|
439
|
+
filter: brightness(2);
|
|
440
|
+
}
|
|
441
|
+
.dark .sidebar-group-label:hover {
|
|
442
|
+
filter: brightness(1.8);
|
|
443
|
+
}
|
|
444
|
+
|
|
437
445
|
/* Scrollbar hide utility */
|
|
438
446
|
@layer utilities {
|
|
439
447
|
.scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; }
|