@ts4nfdi/terminology-service-suite 6.9.1 → 6.11.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/dist/app/globals.d.ts +1 -0
- package/dist/components/widgets/GraphViewWidget/GraphViewWidget.stories.d.ts +1 -0
- package/dist/components/widgets/GraphViewWidget/GraphViewWidgetStories.d.ts +11 -0
- package/dist/components/widgets/MetadataWidget/TabWidget/HierarchyWidget/HierarchyWidget.stories.d.ts +1 -0
- package/dist/components/widgets/MetadataWidget/TabWidget/HierarchyWidget/HierarchyWidgetStories.d.ts +23 -3
- package/dist/components/widgets/TermDepictionWidget/TermDepictionWidget.stories.d.ts +2 -1
- package/dist/components/widgets/TermDepictionWidget/TermDepictionWidgetStories.d.ts +7 -1
- package/dist/esm/index.es.js +64 -57
- package/dist/esm/index.es.js.map +1 -1
- package/dist/server/index.es.js +2 -1
- package/dist/server/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/app/globals.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const TIB_API_ENDPOINT = "https://api.terminology.tib.eu/api/";
|
|
2
2
|
export declare const GATEWAY_API_ENDPOINT = "https://terminology.services.base4nfdi.de/api-gateway/";
|
|
3
|
+
export declare const GATEWAY_API_OLS_ENDPOINT = "https://terminology.services.base4nfdi.de/api-gateway/ols4/api/";
|
|
3
4
|
export declare const ZBMED_OLS4_API = "https://semanticlookup.zbmed.de/ols/api/";
|
|
4
5
|
export declare const ZBMED_OLS3_API = "https://ols3-semanticlookup.zbmed.de/ols/api/";
|
|
5
6
|
export declare const ZBMED_OLS4_GATEWAY_API = "https://semanticlookup.zbmed.de/api/";
|
|
@@ -34,3 +34,4 @@ export declare const WithOnNodeDoubleClickCallback: Story;
|
|
|
34
34
|
export declare const ChebiCaffeineHierarchyWithComparison: Story;
|
|
35
35
|
export declare const ChebiIonAndIonRadicalWithComparison: Story;
|
|
36
36
|
export declare const GraphWithGermanLabel: Story;
|
|
37
|
+
export declare const GraphWithGermanLabelWithComparison: Story;
|
|
@@ -89,6 +89,17 @@ export declare const GraphWithGermanLabelArgs: {
|
|
|
89
89
|
hierarchy: boolean;
|
|
90
90
|
targetIri: string;
|
|
91
91
|
parameter: string;
|
|
92
|
+
edgeLabel: string;
|
|
93
|
+
};
|
|
94
|
+
export declare const GraphWithGermanLabelWithComparisonArgs: {
|
|
95
|
+
api: string;
|
|
96
|
+
iri: string;
|
|
97
|
+
targetIri: string;
|
|
98
|
+
ontologyId: string;
|
|
99
|
+
rootWalk: boolean;
|
|
100
|
+
hierarchy: boolean;
|
|
101
|
+
parameter: string;
|
|
102
|
+
edgeLabel: string;
|
|
92
103
|
};
|
|
93
104
|
export declare const commonGraphViewWidgetPlay: ({ canvasElement, }: {
|
|
94
105
|
canvasElement: HTMLElement;
|
|
@@ -191,4 +191,5 @@ export declare const OLS3Hierarchy: Story;
|
|
|
191
191
|
export declare const OLSGerman: Story;
|
|
192
192
|
export declare const SkosmosAgrovocGerman: Story;
|
|
193
193
|
export declare const CompareHierarchies: Story;
|
|
194
|
+
export declare const CompareHierarchiesGerman: Story;
|
|
194
195
|
export declare const CompareHierarchiesSubEntity: Story;
|
package/dist/components/widgets/MetadataWidget/TabWidget/HierarchyWidget/HierarchyWidgetStories.d.ts
CHANGED
|
@@ -379,11 +379,11 @@ export declare const OLS3HierarchyArgs: {
|
|
|
379
379
|
readonly showComparisonTitleInHeader: true;
|
|
380
380
|
};
|
|
381
381
|
export declare const OLSGermanArgs: {
|
|
382
|
-
readonly apiUrl: "https://
|
|
382
|
+
readonly apiUrl: "https://api.terminology.tib.eu/api/";
|
|
383
383
|
readonly backendType: "ols";
|
|
384
|
-
readonly iri: "
|
|
384
|
+
readonly iri: "https://database.factgrid.de/entity/Q692839";
|
|
385
385
|
readonly entityType: "class";
|
|
386
|
-
readonly ontologyId: "
|
|
386
|
+
readonly ontologyId: "ohdab";
|
|
387
387
|
readonly useLegacy: false;
|
|
388
388
|
readonly parameter: "lang=de";
|
|
389
389
|
readonly apiKey: "";
|
|
@@ -458,6 +458,26 @@ export declare const CompareHierarchiesSubEntityArgs: {
|
|
|
458
458
|
showHeader: true;
|
|
459
459
|
showComparisonTitleInHeader: true;
|
|
460
460
|
};
|
|
461
|
+
export declare const CompareHierarchiesGermanArgs: {
|
|
462
|
+
readonly apiUrl: "https://api.terminology.tib.eu/api/";
|
|
463
|
+
readonly backendType: "ols";
|
|
464
|
+
readonly iri: "https://database.factgrid.de/entity/Q692839";
|
|
465
|
+
readonly targetIri: "https://database.factgrid.de/entity/Q522788";
|
|
466
|
+
readonly entityType: "class";
|
|
467
|
+
readonly ontologyId: "ohdab";
|
|
468
|
+
readonly useLegacy: false;
|
|
469
|
+
readonly parameter: "lang=de";
|
|
470
|
+
readonly apiKey: "";
|
|
471
|
+
readonly onNavigateToEntity: "Console message";
|
|
472
|
+
readonly onNavigateToOntology: "Console message";
|
|
473
|
+
readonly includeObsoleteEntities: false;
|
|
474
|
+
readonly preferredRoots: false;
|
|
475
|
+
readonly keepExpansionStates: false;
|
|
476
|
+
readonly showSiblingsOnInit: false;
|
|
477
|
+
readonly hierarchyWrap: false;
|
|
478
|
+
readonly showHeader: true;
|
|
479
|
+
readonly showComparisonTitleInHeader: true;
|
|
480
|
+
};
|
|
461
481
|
export declare const commonHierarchyWidgetPlay: ({ canvasElement, }: {
|
|
462
482
|
canvasElement: HTMLElement;
|
|
463
483
|
}) => Promise<void>;
|
|
@@ -25,4 +25,5 @@ export default meta;
|
|
|
25
25
|
type Story = StoryObj<typeof meta>;
|
|
26
26
|
export declare const TermDepictionWidgetExample: Story;
|
|
27
27
|
export declare const TermDepictionWidget3D: Story;
|
|
28
|
-
export declare const
|
|
28
|
+
export declare const ColiConcAPIGatewayDepiction: Story;
|
|
29
|
+
export declare const IconclassAPIGatewayDepiction: Story;
|
|
@@ -19,7 +19,13 @@ export declare const TermDepictionWidget3DArgs: {
|
|
|
19
19
|
ontologyId: string;
|
|
20
20
|
useLegacy: boolean;
|
|
21
21
|
};
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const ColiConcAPIGatewayDepictionArgs: {
|
|
23
|
+
api: string;
|
|
24
|
+
iri: string;
|
|
25
|
+
ontologyId: string;
|
|
26
|
+
useLegacy: boolean;
|
|
27
|
+
};
|
|
28
|
+
export declare const IconclassAPIGatewayDepictionArgs: {
|
|
23
29
|
api: string;
|
|
24
30
|
iri: string;
|
|
25
31
|
ontologyId: string;
|
package/dist/esm/index.es.js
CHANGED
|
@@ -5,7 +5,7 @@ var A = (e, t, r) => Vi(e, typeof t != "symbol" ? t + "" : t, r);
|
|
|
5
5
|
import ut from "axios";
|
|
6
6
|
import { jsx as i, Fragment as u, jsxs as h } from "react/jsx-runtime";
|
|
7
7
|
import ct, { useState as G, useEffect as Re, useReducer as qi, useMemo as Xi, useCallback as mi, useRef as et } from "react";
|
|
8
|
-
import { EuiIconTip as Ki, EuiBadge as Yi, EuiIcon as je, EuiLoadingSpinner as ce, EuiText as K, EuiFlexItem as j, EuiLink as Ke, EuiButtonIcon as dt, EuiPanel as Me, EuiFlexGroup as Ee, EuiTitle as wi, EuiButton as ft, EuiSpacer as
|
|
8
|
+
import { EuiIconTip as Ki, EuiBadge as Yi, EuiIcon as je, EuiLoadingSpinner as ce, EuiText as K, EuiFlexItem as j, EuiLink as Ke, EuiButtonIcon as dt, EuiPanel as Me, EuiFlexGroup as Ee, EuiTitle as wi, EuiButton as ft, EuiSpacer as pe, EuiAccordion as Qi, EuiHealth as tt, EuiCard as pt, EuiPopover as Zi, EuiTextColor as er, EuiButtonEmpty as bi, EuiImage as tr, EuiFormRow as Xe, EuiFieldText as ir, EuiSwitch as Ot, EuiTabbedContent as rr, euiPaletteColorBlind as nr, EuiComboBox as Ii, EuiHighlight as xt, EuiCallOut as or, EuiHorizontalRule as Ti, EuiBasicTable as kt, Comparators as si, EuiScreenReaderOnly as sr, EuiDescriptionList as ar, EuiSelectable as bt, EuiTablePagination as lr } from "@elastic/eui";
|
|
9
9
|
import { useQuery as le } from "react-query";
|
|
10
10
|
import { DataSet as ai } from "vis-data";
|
|
11
11
|
import { Network as cr } from "vis-network";
|
|
@@ -200,11 +200,11 @@ function St(e, t, r, o) {
|
|
|
200
200
|
...e,
|
|
201
201
|
sort: `${t.sortField},${t.sortDir}`,
|
|
202
202
|
...r,
|
|
203
|
-
...
|
|
203
|
+
...fe(o)
|
|
204
204
|
} : {
|
|
205
205
|
...e,
|
|
206
206
|
...r,
|
|
207
|
-
...
|
|
207
|
+
...fe(o)
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
210
|
function Bt(e) {
|
|
@@ -222,10 +222,10 @@ function ci(e, t, r, o, n) {
|
|
|
222
222
|
...s,
|
|
223
223
|
...Bt(t),
|
|
224
224
|
...r,
|
|
225
|
-
...
|
|
225
|
+
...fe(o)
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function fe(e) {
|
|
229
229
|
const t = {};
|
|
230
230
|
return e && e.split("&").forEach((o) => {
|
|
231
231
|
const n = o.split("=")[0], s = o.split("=")[1];
|
|
@@ -246,7 +246,7 @@ function wr(e, t, r, o) {
|
|
|
246
246
|
},
|
|
247
247
|
...Bt(t),
|
|
248
248
|
...r,
|
|
249
|
-
...
|
|
249
|
+
...fe(o)
|
|
250
250
|
};
|
|
251
251
|
}
|
|
252
252
|
function br(e, t, r, o) {
|
|
@@ -256,7 +256,7 @@ function br(e, t, r, o) {
|
|
|
256
256
|
},
|
|
257
257
|
...Bt(t),
|
|
258
258
|
...r,
|
|
259
|
-
...
|
|
259
|
+
...fe(o)
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
262
|
function It(e) {
|
|
@@ -1264,7 +1264,7 @@ class me extends Vt {
|
|
|
1264
1264
|
A(this, "getTerm", async (r, o, n, s, a, l) => {
|
|
1265
1265
|
const c = n != null && n.ontologyId ? "ontologies/" + (n == null ? void 0 : n.ontologyId) + "/" : "", d = be(a) ? "terms" : "classes", g = {
|
|
1266
1266
|
iri: n == null ? void 0 : n.termIri,
|
|
1267
|
-
...
|
|
1267
|
+
...fe(s)
|
|
1268
1268
|
};
|
|
1269
1269
|
return this.makeCall(
|
|
1270
1270
|
c + d,
|
|
@@ -1281,7 +1281,7 @@ class me extends Vt {
|
|
|
1281
1281
|
A(this, "getProperty", async (r, o, n, s, a, l) => {
|
|
1282
1282
|
const c = n != null && n.ontologyId ? "ontologies/" + (n == null ? void 0 : n.ontologyId) + "/" : "", d = {
|
|
1283
1283
|
iri: n == null ? void 0 : n.propertyIri,
|
|
1284
|
-
...
|
|
1284
|
+
...fe(s)
|
|
1285
1285
|
};
|
|
1286
1286
|
return this.makeCall(
|
|
1287
1287
|
c + "properties",
|
|
@@ -1298,7 +1298,7 @@ class me extends Vt {
|
|
|
1298
1298
|
A(this, "getIndividual", async (r, o, n, s, a, l) => {
|
|
1299
1299
|
const c = n != null && n.ontologyId ? "ontologies/" + (n == null ? void 0 : n.ontologyId) + "/" : "", d = {
|
|
1300
1300
|
iri: n == null ? void 0 : n.individualIri,
|
|
1301
|
-
...
|
|
1301
|
+
...fe(s)
|
|
1302
1302
|
};
|
|
1303
1303
|
return this.makeCall(
|
|
1304
1304
|
c + "individuals",
|
|
@@ -1315,7 +1315,8 @@ class me extends Vt {
|
|
|
1315
1315
|
A(this, "getEntity", async (r, o, n, s, a) => {
|
|
1316
1316
|
const l = n != null && n.ontologyId ? "ontologies/" + (n == null ? void 0 : n.ontologyId) + "/" : "", c = {
|
|
1317
1317
|
iri: n == null ? void 0 : n.termIri,
|
|
1318
|
-
...mr(s)
|
|
1318
|
+
...mr(s),
|
|
1319
|
+
...fe(s)
|
|
1319
1320
|
};
|
|
1320
1321
|
return this.makeCall(
|
|
1321
1322
|
l + "entities",
|
|
@@ -1856,7 +1857,7 @@ class yt extends Vt {
|
|
|
1856
1857
|
));
|
|
1857
1858
|
A(this, "getOntology", async (r, o, n, s, a) => {
|
|
1858
1859
|
const l = {
|
|
1859
|
-
...
|
|
1860
|
+
...fe(s)
|
|
1860
1861
|
};
|
|
1861
1862
|
return this.makeCall(
|
|
1862
1863
|
"ontologies/" + (n == null ? void 0 : n.ontologyId),
|
|
@@ -2555,7 +2556,7 @@ class gt {
|
|
|
2555
2556
|
params: {
|
|
2556
2557
|
size: "1000",
|
|
2557
2558
|
includeObsoleteEntities: s,
|
|
2558
|
-
...
|
|
2559
|
+
...fe(a)
|
|
2559
2560
|
}
|
|
2560
2561
|
},
|
|
2561
2562
|
n
|
|
@@ -2570,7 +2571,7 @@ class gt {
|
|
|
2570
2571
|
params: {
|
|
2571
2572
|
size: "1000",
|
|
2572
2573
|
includeObsoleteEntities: s,
|
|
2573
|
-
...
|
|
2574
|
+
...fe(a)
|
|
2574
2575
|
}
|
|
2575
2576
|
},
|
|
2576
2577
|
n
|
|
@@ -2610,7 +2611,7 @@ class gt {
|
|
|
2610
2611
|
params: {
|
|
2611
2612
|
size: "1000",
|
|
2612
2613
|
viewMode: "All",
|
|
2613
|
-
...
|
|
2614
|
+
...fe(n)
|
|
2614
2615
|
}
|
|
2615
2616
|
},
|
|
2616
2617
|
!0
|
|
@@ -2630,7 +2631,7 @@ class gt {
|
|
|
2630
2631
|
params: {
|
|
2631
2632
|
size: "1000",
|
|
2632
2633
|
includeObsoleteEntities: n,
|
|
2633
|
-
...
|
|
2634
|
+
...fe(a)
|
|
2634
2635
|
}
|
|
2635
2636
|
},
|
|
2636
2637
|
s
|
|
@@ -2644,7 +2645,7 @@ class gt {
|
|
|
2644
2645
|
{
|
|
2645
2646
|
params: {
|
|
2646
2647
|
size: "1000",
|
|
2647
|
-
...
|
|
2648
|
+
...fe(a)
|
|
2648
2649
|
}
|
|
2649
2650
|
},
|
|
2650
2651
|
s
|
|
@@ -2659,7 +2660,7 @@ class gt {
|
|
|
2659
2660
|
params: {
|
|
2660
2661
|
size: "1000",
|
|
2661
2662
|
includeObsoleteEntities: n,
|
|
2662
|
-
...
|
|
2663
|
+
...fe(a)
|
|
2663
2664
|
}
|
|
2664
2665
|
},
|
|
2665
2666
|
s
|
|
@@ -2674,7 +2675,7 @@ class gt {
|
|
|
2674
2675
|
params: {
|
|
2675
2676
|
size: "1000",
|
|
2676
2677
|
includeObsoleteEntities: n,
|
|
2677
|
-
...
|
|
2678
|
+
...fe(a)
|
|
2678
2679
|
}
|
|
2679
2680
|
},
|
|
2680
2681
|
s
|
|
@@ -2700,7 +2701,7 @@ class gt {
|
|
|
2700
2701
|
params: {
|
|
2701
2702
|
size: "1000",
|
|
2702
2703
|
includeObsoleteEntities: n,
|
|
2703
|
-
...
|
|
2704
|
+
...fe(a)
|
|
2704
2705
|
}
|
|
2705
2706
|
},
|
|
2706
2707
|
s
|
|
@@ -2721,7 +2722,7 @@ class gt {
|
|
|
2721
2722
|
includeObsoleteEntities: n,
|
|
2722
2723
|
hasDirectParents: o ? void 0 : "false",
|
|
2723
2724
|
isPreferredRoot: o ? "true" : void 0,
|
|
2724
|
-
...
|
|
2725
|
+
...fe(a)
|
|
2725
2726
|
}
|
|
2726
2727
|
},
|
|
2727
2728
|
s
|
|
@@ -3616,7 +3617,7 @@ function Ur(e) {
|
|
|
3616
3617
|
) })
|
|
3617
3618
|
] }),
|
|
3618
3619
|
N && W && /* @__PURE__ */ h(j, { children: [
|
|
3619
|
-
/* @__PURE__ */ i(
|
|
3620
|
+
/* @__PURE__ */ i(pe, { size: "s" }),
|
|
3620
3621
|
/* @__PURE__ */ i(
|
|
3621
3622
|
Qi,
|
|
3622
3623
|
{
|
|
@@ -4344,7 +4345,7 @@ function Hr(e) {
|
|
|
4344
4345
|
/* @__PURE__ */ i("b", { children: "Label:" }),
|
|
4345
4346
|
w.getLabel()
|
|
4346
4347
|
] }),
|
|
4347
|
-
/* @__PURE__ */ i(
|
|
4348
|
+
/* @__PURE__ */ i(pe, {})
|
|
4348
4349
|
] }) });
|
|
4349
4350
|
}
|
|
4350
4351
|
function L(w) {
|
|
@@ -5204,7 +5205,7 @@ function an(e) {
|
|
|
5204
5205
|
}), f(!0);
|
|
5205
5206
|
}
|
|
5206
5207
|
function Fi(x) {
|
|
5207
|
-
var re, M,
|
|
5208
|
+
var re, M, ye;
|
|
5208
5209
|
let z = se.current.length;
|
|
5209
5210
|
for (let ee of ((re = x.termRelations) == null ? void 0 : re.nodes) ?? [])
|
|
5210
5211
|
He(ee);
|
|
@@ -5218,12 +5219,12 @@ function an(e) {
|
|
|
5218
5219
|
He(ee, !1, de, $);
|
|
5219
5220
|
}
|
|
5220
5221
|
return z === se.current.length && ie(!0), [
|
|
5221
|
-
...((
|
|
5222
|
+
...((ye = x.termRelations) == null ? void 0 : ye.nodes) ?? [],
|
|
5222
5223
|
...q
|
|
5223
5224
|
];
|
|
5224
5225
|
}
|
|
5225
5226
|
function Wi(x) {
|
|
5226
|
-
var q, re, M,
|
|
5227
|
+
var q, re, M, ye;
|
|
5227
5228
|
for (let ee of ((q = x.termRelations) == null ? void 0 : q.edges) ?? []) {
|
|
5228
5229
|
if (!vt.includes(ee.uri)) {
|
|
5229
5230
|
Ze(ee, ee.label);
|
|
@@ -5237,7 +5238,7 @@ function an(e) {
|
|
|
5237
5238
|
(M = x.termRelations) != null && M.edges.find(
|
|
5238
5239
|
(Pe) => Pe.source === ee.source && Pe.target === ee.target
|
|
5239
5240
|
) || (Ze(ee), z.push(ee));
|
|
5240
|
-
return [...((
|
|
5241
|
+
return [...((ye = x.termRelations) == null ? void 0 : ye.edges) ?? [], ...z];
|
|
5241
5242
|
}
|
|
5242
5243
|
function He(x, z = !1, q = "", re = "") {
|
|
5243
5244
|
let M = new Ft(x = x);
|
|
@@ -5253,11 +5254,11 @@ function an(e) {
|
|
|
5253
5254
|
q.dashes = re, we.current.get(q.id) || ((M = q.id) != null && M.includes(r) && n && (q.color.color = "black"), we.current.add(q));
|
|
5254
5255
|
}
|
|
5255
5256
|
function ii(x, z, q = !1) {
|
|
5256
|
-
let re = [...z], M = [],
|
|
5257
|
+
let re = [...z], M = [], ye = 1, ee = [], Pe = se.current.length;
|
|
5257
5258
|
for (; ; ) {
|
|
5258
5259
|
let $e = re[0];
|
|
5259
5260
|
re = re.slice(1);
|
|
5260
|
-
let Je = { iri: $e.iri, label: $e.text, level:
|
|
5261
|
+
let Je = { iri: $e.iri, label: $e.text, level: ye };
|
|
5261
5262
|
if (q ? x.nodes.find((qe) => qe.iri === Je.iri) ? He(
|
|
5262
5263
|
Je,
|
|
5263
5264
|
!0,
|
|
@@ -5281,7 +5282,7 @@ function an(e) {
|
|
|
5281
5282
|
}), $e.childrenList && $e.childrenList.length !== 0 && M.push(...$e.childrenList), re.length === 0) {
|
|
5282
5283
|
if (M.length === 0)
|
|
5283
5284
|
break;
|
|
5284
|
-
|
|
5285
|
+
ye += 1, re.push(...M), M = [];
|
|
5285
5286
|
}
|
|
5286
5287
|
}
|
|
5287
5288
|
return x.nodes = [...x.nodes, ...ee], Pe === se.current.length && ie(!0), x;
|
|
@@ -5291,7 +5292,7 @@ function an(e) {
|
|
|
5291
5292
|
return;
|
|
5292
5293
|
let re = "", M = "";
|
|
5293
5294
|
q && (re = de, M = $);
|
|
5294
|
-
let
|
|
5295
|
+
let ye = {
|
|
5295
5296
|
nodes: [],
|
|
5296
5297
|
edges: []
|
|
5297
5298
|
};
|
|
@@ -5308,14 +5309,14 @@ function an(e) {
|
|
|
5308
5309
|
M
|
|
5309
5310
|
));
|
|
5310
5311
|
x.nodes = x.nodes.concat(
|
|
5311
|
-
|
|
5312
|
+
ye.nodes
|
|
5312
5313
|
), x.edges = x.edges.concat(
|
|
5313
|
-
|
|
5314
|
+
ye.edges
|
|
5314
5315
|
);
|
|
5315
5316
|
}
|
|
5316
5317
|
function ni(x, z, q, re) {
|
|
5317
|
-
let M = { nodes: [], edges: [] },
|
|
5318
|
-
if (ii(M,
|
|
5318
|
+
let M = { nodes: [], edges: [] }, ye = fi(x);
|
|
5319
|
+
if (ii(M, ye), L || ri(M, z), ae && q) {
|
|
5319
5320
|
let ee = fi(
|
|
5320
5321
|
q
|
|
5321
5322
|
);
|
|
@@ -5459,13 +5460,13 @@ function an(e) {
|
|
|
5459
5460
|
}), ge.current.on("doubleClick", function(x) {
|
|
5460
5461
|
var z, q, re, M;
|
|
5461
5462
|
if (x.nodes.length > 0) {
|
|
5462
|
-
let
|
|
5463
|
+
let ye = x.nodes[0];
|
|
5463
5464
|
Ie({
|
|
5464
5465
|
//@ts-ignore
|
|
5465
|
-
bgColor: (q = (z = se.current.get(
|
|
5466
|
+
bgColor: (q = (z = se.current.get(ye)) == null ? void 0 : z.color) == null ? void 0 : q.background,
|
|
5466
5467
|
//@ts-ignore
|
|
5467
|
-
color: (M = (re = se.current.get(
|
|
5468
|
-
}), R(
|
|
5468
|
+
color: (M = (re = se.current.get(ye)) == null ? void 0 : re.font) == null ? void 0 : M.color
|
|
5469
|
+
}), R(ye), _ ? c(ye) : m(!0);
|
|
5469
5470
|
}
|
|
5470
5471
|
}));
|
|
5471
5472
|
}, [ge.current]), Re(() => {
|
|
@@ -5766,7 +5767,13 @@ function cn(e) {
|
|
|
5766
5767
|
function dn(e) {
|
|
5767
5768
|
const { api: t, iri: r, ontologyId: o, useLegacy: n } = e, s = new Yt(t), { data: a, isLoading: l, isSuccess: c, isLoadingError: d, error: g } = le(
|
|
5768
5769
|
["termDepiction", t, r, o, n],
|
|
5769
|
-
async () => s.getThingObject(
|
|
5770
|
+
async () => s.getThingObject(
|
|
5771
|
+
r,
|
|
5772
|
+
"class",
|
|
5773
|
+
encodeURIComponent(encodeURIComponent(o)),
|
|
5774
|
+
"",
|
|
5775
|
+
n
|
|
5776
|
+
)
|
|
5770
5777
|
);
|
|
5771
5778
|
return /* @__PURE__ */ h("div", { "data-testid": "term-depiction", children: [
|
|
5772
5779
|
l && /* @__PURE__ */ i(ce, { size: "s" }),
|
|
@@ -5872,7 +5879,7 @@ function hn(e) {
|
|
|
5872
5879
|
if ((e.hierarchyTab === void 0 || e.hierarchyTab) && n.push({
|
|
5873
5880
|
content: /* @__PURE__ */ i(u, { children: /* @__PURE__ */ h(Ee, { direction: "column", gutterSize: "xs", children: [
|
|
5874
5881
|
/* @__PURE__ */ i(j, { children: /* @__PURE__ */ i(Ee, { justifyContent: "flexEnd", responsive: !1, children: /* @__PURE__ */ i(j, { grow: !1, children: e.enableComparisonMode && /* @__PURE__ */ h(u, { children: [
|
|
5875
|
-
/* @__PURE__ */ i(
|
|
5882
|
+
/* @__PURE__ */ i(pe, { size: "s" }),
|
|
5876
5883
|
/* @__PURE__ */ i(
|
|
5877
5884
|
Ot,
|
|
5878
5885
|
{
|
|
@@ -5881,7 +5888,7 @@ function hn(e) {
|
|
|
5881
5888
|
onChange: (y) => l(y)
|
|
5882
5889
|
}
|
|
5883
5890
|
),
|
|
5884
|
-
/* @__PURE__ */ i(
|
|
5891
|
+
/* @__PURE__ */ i(pe, { size: "s" })
|
|
5885
5892
|
] }) }) }) }),
|
|
5886
5893
|
/* @__PURE__ */ i(j, { children: e.enableComparisonMode && s && /* @__PURE__ */ i(
|
|
5887
5894
|
pi,
|
|
@@ -5943,7 +5950,7 @@ function hn(e) {
|
|
|
5943
5950
|
}), (e.graphViewTab === void 0 || e.graphViewTab) && n.push({
|
|
5944
5951
|
content: /* @__PURE__ */ h(Ee, { direction: "column", gutterSize: "xs", children: [
|
|
5945
5952
|
/* @__PURE__ */ i(j, { children: /* @__PURE__ */ i(Ee, { justifyContent: "flexEnd", responsive: !1, children: /* @__PURE__ */ i(j, { grow: !1, children: e.enableComparisonMode && /* @__PURE__ */ h(u, { children: [
|
|
5946
|
-
/* @__PURE__ */ i(
|
|
5953
|
+
/* @__PURE__ */ i(pe, { size: "s" }),
|
|
5947
5954
|
/* @__PURE__ */ i(
|
|
5948
5955
|
Ot,
|
|
5949
5956
|
{
|
|
@@ -5952,7 +5959,7 @@ function hn(e) {
|
|
|
5952
5959
|
onChange: (y) => l(y)
|
|
5953
5960
|
}
|
|
5954
5961
|
),
|
|
5955
|
-
/* @__PURE__ */ i(
|
|
5962
|
+
/* @__PURE__ */ i(pe, { size: "s" })
|
|
5956
5963
|
] }) }) }) }),
|
|
5957
5964
|
/* @__PURE__ */ i(j, { children: e.enableComparisonMode && s && /* @__PURE__ */ i(
|
|
5958
5965
|
pi,
|
|
@@ -7071,14 +7078,14 @@ function Jn(e) {
|
|
|
7071
7078
|
return /* @__PURE__ */ h("div", { className: W, "data-testid": "resources", children: [
|
|
7072
7079
|
k && /* @__PURE__ */ h(u, { children: [
|
|
7073
7080
|
/* @__PURE__ */ i(or, { title: "Licenses", iconType: "iInCircle", color: "warning", children: /* @__PURE__ */ i("p", { children: "The use and distribution of the terminologies beyond this service is only permitted in compliance with the license conditions of the respective terminology, also in compliance with the license conditions in the respective countries." }) }),
|
|
7074
|
-
/* @__PURE__ */ i(
|
|
7081
|
+
/* @__PURE__ */ i(pe, { size: "s" }),
|
|
7075
7082
|
/* @__PURE__ */ h(K, { size: "xs", children: [
|
|
7076
7083
|
"Showing ",
|
|
7077
7084
|
ae,
|
|
7078
7085
|
" ",
|
|
7079
7086
|
/* @__PURE__ */ i("strong", { children: "Ontologies" })
|
|
7080
7087
|
] }),
|
|
7081
|
-
/* @__PURE__ */ i(
|
|
7088
|
+
/* @__PURE__ */ i(pe, { size: "s" }),
|
|
7082
7089
|
/* @__PURE__ */ i(Ti, { margin: "none", style: { height: 2 } }),
|
|
7083
7090
|
/* @__PURE__ */ i(
|
|
7084
7091
|
kt,
|
|
@@ -7238,7 +7245,7 @@ function Tn(e) {
|
|
|
7238
7245
|
href: o ? r.type != "ontology" ? o + "ontologies/" + r.ontology_name + "/" + xe(r.type, !0) + "?iri=" + encodeURIComponent(r.iri) : o + "ontologies/" + r.ontology_name : void 0,
|
|
7239
7246
|
titleElement: "span",
|
|
7240
7247
|
title: /* @__PURE__ */ h("div", { children: [
|
|
7241
|
-
/* @__PURE__ */ i(
|
|
7248
|
+
/* @__PURE__ */ i(pe, { size: "m" }),
|
|
7242
7249
|
/* @__PURE__ */ i(wi, { children: /* @__PURE__ */ i("h2", { children: r.label }) })
|
|
7243
7250
|
] }),
|
|
7244
7251
|
children: [
|
|
@@ -7253,9 +7260,9 @@ function Tn(e) {
|
|
|
7253
7260
|
onNavigateToOntology: g
|
|
7254
7261
|
}
|
|
7255
7262
|
),
|
|
7256
|
-
/* @__PURE__ */ i(
|
|
7263
|
+
/* @__PURE__ */ i(pe, { size: "s" }),
|
|
7257
7264
|
r.type != "ontology" ? /* @__PURE__ */ i(Ai, { iri: r.iri, className: `${n}-iri` }) : void 0,
|
|
7258
|
-
/* @__PURE__ */ i(
|
|
7265
|
+
/* @__PURE__ */ i(pe, { size: "s" }),
|
|
7259
7266
|
R && /* @__PURE__ */ h("div", { style: { maxWidth: 600 }, children: [
|
|
7260
7267
|
/* @__PURE__ */ i(
|
|
7261
7268
|
Zt,
|
|
@@ -7280,7 +7287,7 @@ function Tn(e) {
|
|
|
7280
7287
|
}
|
|
7281
7288
|
)
|
|
7282
7289
|
] }),
|
|
7283
|
-
/* @__PURE__ */ i(
|
|
7290
|
+
/* @__PURE__ */ i(pe, { size: "s" }),
|
|
7284
7291
|
/* @__PURE__ */ i(
|
|
7285
7292
|
Fr,
|
|
7286
7293
|
{
|
|
@@ -7455,8 +7462,8 @@ function Bn(e) {
|
|
|
7455
7462
|
parameter: o
|
|
7456
7463
|
}
|
|
7457
7464
|
),
|
|
7458
|
-
/* @__PURE__ */ i(
|
|
7459
|
-
/* @__PURE__ */ i(
|
|
7465
|
+
/* @__PURE__ */ i(pe, { size: "xl" }),
|
|
7466
|
+
/* @__PURE__ */ i(pe, { size: "s" }),
|
|
7460
7467
|
/* @__PURE__ */ h(Ee, { children: [
|
|
7461
7468
|
/* @__PURE__ */ i(j, { grow: 3, style: { minWidth: 250 }, children: /* @__PURE__ */ h(Me, { children: [
|
|
7462
7469
|
T && /* @__PURE__ */ i(Xe, { label: "Filter by type", children: /* @__PURE__ */ i(
|
|
@@ -7539,7 +7546,7 @@ function Bn(e) {
|
|
|
7539
7546
|
}
|
|
7540
7547
|
) })
|
|
7541
7548
|
] }),
|
|
7542
|
-
/* @__PURE__ */ i(
|
|
7549
|
+
/* @__PURE__ */ i(pe, { size: "m" }),
|
|
7543
7550
|
/* @__PURE__ */ h(K, { size: "xs", style: { padding: "0 8px" }, children: [
|
|
7544
7551
|
"Showing ",
|
|
7545
7552
|
Math.min(C * v + 1, F),
|
|
@@ -7551,9 +7558,9 @@ function Bn(e) {
|
|
|
7551
7558
|
F,
|
|
7552
7559
|
" results"
|
|
7553
7560
|
] }),
|
|
7554
|
-
/* @__PURE__ */ i(
|
|
7561
|
+
/* @__PURE__ */ i(pe, { size: "s" }),
|
|
7555
7562
|
/* @__PURE__ */ i(Ti, { margin: "none", style: { height: 2 } }),
|
|
7556
|
-
/* @__PURE__ */ i(
|
|
7563
|
+
/* @__PURE__ */ i(pe, { size: "s" }),
|
|
7557
7564
|
/* @__PURE__ */ i(
|
|
7558
7565
|
lr,
|
|
7559
7566
|
{
|
|
@@ -7566,7 +7573,7 @@ function Bn(e) {
|
|
|
7566
7573
|
itemsPerPageOptions: s
|
|
7567
7574
|
}
|
|
7568
7575
|
),
|
|
7569
|
-
/* @__PURE__ */ i(
|
|
7576
|
+
/* @__PURE__ */ i(pe, { size: "s" }),
|
|
7570
7577
|
ne && ne.map(($) => /* @__PURE__ */ h(
|
|
7571
7578
|
ct.Fragment,
|
|
7572
7579
|
{
|
|
@@ -7586,7 +7593,7 @@ function Bn(e) {
|
|
|
7586
7593
|
onNavigateToOntology: c
|
|
7587
7594
|
}
|
|
7588
7595
|
),
|
|
7589
|
-
/* @__PURE__ */ i(
|
|
7596
|
+
/* @__PURE__ */ i(pe, {})
|
|
7590
7597
|
]
|
|
7591
7598
|
},
|
|
7592
7599
|
$.iri + $.ontology_name + $.type
|