@ts4nfdi/terminology-service-suite 6.4.5 → 6.7.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/api/ols/OlsEntityApi.d.ts +2 -2
- package/dist/api/ols/OlsHierarchyApi.d.ts +10 -4
- package/dist/api/ols/OlsOntologyApi.d.ts +2 -2
- package/dist/api/ols/OlsSearchApi.d.ts +2 -2
- package/dist/api/ols/OlsThingApi.d.ts +1 -1
- package/dist/api/{OntoPortalApi.d.ts → ontoportal/OntoPortalApi.d.ts} +3 -3
- package/dist/api/{SkosApi.d.ts → skosmos/SkosApi.d.ts} +3 -3
- package/dist/app/globals.d.ts +1 -0
- package/dist/app/types.d.ts +34 -14
- package/dist/app/util.d.ts +4 -1
- package/dist/components/helperComponents/Badge.d.ts +6 -0
- package/dist/components/helperComponents/ClassExpression.d.ts +25 -0
- package/dist/components/helperComponents/EntityLink.d.ts +25 -0
- package/dist/components/helperComponents/ExpandableOntologyBadgeList.d.ts +3 -0
- package/dist/components/helperComponents/OntologyBadge.d.ts +3 -0
- package/dist/components/helperComponents/RenderedReified.d.ts +20 -0
- package/dist/components/helperComponents/Spacer.d.ts +1 -0
- package/dist/components/helperComponents/Tooltip.d.ts +4 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/widgets/AutocompleteWidget/AutocompleteWidget.d.ts +1 -1
- package/dist/components/widgets/AutocompleteWidget/AutocompleteWidget.stories.d.ts +2 -1
- package/dist/components/widgets/AutocompleteWidget/AutocompleteWidgetStories.d.ts +2 -0
- package/dist/components/widgets/DataContentWidget/DataContentWidget.stories.d.ts +1 -1
- package/dist/components/widgets/EntityInfoWidget/EntityInfoWidget.d.ts +1 -1
- package/dist/components/widgets/EntityInfoWidget/EntityInfoWidget.stories.d.ts +1 -1
- package/dist/components/widgets/EntityRelationsWidget/EntityRelationsWidget.d.ts +14 -1
- package/dist/components/widgets/EntityRelationsWidget/EntityRelationsWidget.stories.d.ts +2 -2
- package/dist/components/widgets/GraphViewWidget/GraphConfigs.d.ts +1 -1
- package/dist/components/widgets/GraphViewWidget/GraphViewWidget.stories.d.ts +2 -1
- package/dist/components/widgets/GraphViewWidget/GraphViewWidgetStories.d.ts +9 -0
- package/dist/components/widgets/GraphViewWidget/types.d.ts +2 -1
- package/dist/components/widgets/GraphViewWidget/utils.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/BreadcrumbWidget/BreadcrumbPresentation/BreadcrumbPresentation.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/BreadcrumbWidget/BreadcrumbPresentation/BreadcrumbPresentation.stories.d.ts +2 -2
- package/dist/components/widgets/MetadataWidget/BreadcrumbWidget/BreadcrumbWidget.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/BreadcrumbWidget/BreadcrumbWidget.stories.d.ts +2 -2
- package/dist/components/widgets/MetadataWidget/BreadcrumbWidget/index.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/DescriptionWidget/DescriptionWidget.stories.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/EntityDefinedByWidget/EntityDefinedByPresentation.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/EntityDefinedByWidget/EntityDefinedByWidget.stories.d.ts +2 -2
- package/dist/components/widgets/MetadataWidget/EntityOntoListWidget/EntityOntoListPresentation.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/EntityOntoListWidget/EntityOntoListWidget.stories.d.ts +2 -2
- package/dist/components/widgets/MetadataWidget/IriWidget/IriWidget.stories.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/MetadataWidget.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/MetadataWidget.stories.d.ts +6 -3
- package/dist/components/widgets/MetadataWidget/MetadataWidgetStories.d.ts +4 -1
- package/dist/components/widgets/MetadataWidget/TabWidget/AlternativeNameTabWidget/AlternativeNameTabWidget.stories.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/TabWidget/CrossRefWidget/CrossRefTabWidget.stories.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/TabWidget/HierarchyWidget/HierarchyWidget.stories.d.ts +11 -3
- package/dist/components/widgets/MetadataWidget/TabWidget/HierarchyWidget/HierarchyWidgetStories.d.ts +87 -1
- package/dist/components/widgets/MetadataWidget/TabWidget/TabWidget.stories.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/TabWidget/index.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/TitleWidget/TitlePresentation.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/TitleWidget/TitleWidget.stories.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/index.d.ts +4 -4
- package/dist/components/widgets/OntologyInfoWidget/OntologyInfoWidget.d.ts +1 -1
- package/dist/components/widgets/OntologyInfoWidget/OntologyInfoWidget.stories.d.ts +2 -2
- package/dist/components/widgets/SearchBarWidget/SearchBarWidget.stories.d.ts +1 -1
- package/dist/components/widgets/SearchResultsListWidget/MetadataCompact.d.ts +1 -1
- package/dist/components/widgets/SearchResultsListWidget/SearchResultsListWidget.d.ts +1 -1
- package/dist/components/widgets/SearchResultsListWidget/SearchResultsListWidget.stories.d.ts +2 -1
- package/dist/components/widgets/SearchResultsListWidget/SearchResultsListWidgetStories.d.ts +1 -0
- package/dist/components/widgets/TermDepictionWidget/TermDepictionWidget.stories.d.ts +4 -22
- package/dist/components/widgets/index.d.ts +6 -6
- package/dist/esm/index.es.js +5192 -4702
- package/dist/esm/index.es.js.map +1 -1
- package/dist/esm/terminology-service-suite.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/model/ModelTypeCheck.d.ts +1 -1
- package/dist/model/interfaces/Hierarchy.d.ts +7 -5
- package/dist/{api → model/interfaces}/HierarchyBuilder.d.ts +3 -3
- package/dist/model/interfaces/Thing.d.ts +2 -2
- package/dist/model/interfaces/index.d.ts +2 -2
- package/dist/model/{LinkedEntities.d.ts → ols-model/LinkedEntities.d.ts} +1 -9
- package/dist/model/ols-model/LinkedEntity.d.ts +9 -0
- package/dist/model/{ModelObjectCreator.d.ts → ols-model/ModelObjectCreator.d.ts} +1 -1
- package/dist/model/ols3-model/OLS3Thing.d.ts +2 -2
- package/dist/model/ols3-model/index.d.ts +3 -3
- package/dist/model/ols4-model/OLS4Thing.d.ts +1 -1
- package/dist/model/ols4-model/index.d.ts +3 -3
- package/dist/server/index.es.js +132 -130
- package/dist/server/index.es.js.map +1 -1
- package/dist/stories/storyArgs.d.ts +6 -1
- package/package.json +1 -2
- package/dist/model/StructureRendering.d.ts +0 -68
- /package/dist/model/{Suggest.d.ts → ols-model/Suggest.d.ts} +0 -0
|
@@ -70,7 +70,7 @@ export declare class OlsEntityApi extends OlsBaseApi {
|
|
|
70
70
|
*/
|
|
71
71
|
getEntityObject(iri: string, entityType?: EntityTypeName, ontologyId?: string, parameter?: string, useLegacy?: boolean): Promise<Entity>;
|
|
72
72
|
getClassInstances(iri: string, ontologyId: string): Promise<Individual[]>;
|
|
73
|
-
getTermRelations: (contentParams: ContentParams) => Promise<any>;
|
|
73
|
+
getTermRelations: (contentParams: ContentParams, parameter?: string) => Promise<any>;
|
|
74
74
|
/**
|
|
75
75
|
* getTermTree:
|
|
76
76
|
* This method always requires an ontologyId in contentParams
|
|
@@ -78,5 +78,5 @@ export declare class OlsEntityApi extends OlsBaseApi {
|
|
|
78
78
|
* 2) If a termIri is defined but no child in jsTreeParams, the hierarchy containing that term will be queried
|
|
79
79
|
* 3) If a termIri is defined and also a child in jsTreeParams, the subhierarchy of that child will be queried
|
|
80
80
|
*/
|
|
81
|
-
getTermTree: (contentParams: ContentParams, treeParams: JsTreeParams) => Promise<any>;
|
|
81
|
+
getTermTree: (contentParams: ContentParams, treeParams: JsTreeParams, parameter?: string) => Promise<any>;
|
|
82
82
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
|
+
import { EntityData } from '../../app';
|
|
1
3
|
import { EntityTypeName } from '../../model/ModelTypeCheck';
|
|
2
4
|
import { Entity } from '../../model/interfaces';
|
|
3
|
-
import { JSTreeNode } from '../../utils/olsApiTypes';
|
|
4
|
-
import { BuildHierarchyProps, HierarchyBuilder, HierarchyIriProp, LoadHierarchyChildrenProps } from '../HierarchyBuilder';
|
|
5
5
|
import { Hierarchy } from '../../model/interfaces/Hierarchy';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { BuildHierarchyProps, HierarchyBuilder, HierarchyIriProp, LoadHierarchyChildrenProps } from '../../model/interfaces/HierarchyBuilder';
|
|
7
|
+
import { JSTreeNode } from '../../utils/olsApiTypes';
|
|
8
8
|
export declare const HIERARCHY_WIDGET_DEFAULT_VALUES: {
|
|
9
9
|
readonly INCLUDE_OBSOLETE_ENTITIES: false;
|
|
10
10
|
readonly PREFERRED_ROOTS: false;
|
|
@@ -12,6 +12,12 @@ export declare const HIERARCHY_WIDGET_DEFAULT_VALUES: {
|
|
|
12
12
|
readonly SHOW_SIBLINGS_ON_INIT: false;
|
|
13
13
|
readonly USE_LEGACY: false;
|
|
14
14
|
readonly WRAP: false;
|
|
15
|
+
readonly TARGET_IRI: undefined;
|
|
16
|
+
readonly SHOW_HEADER: true;
|
|
17
|
+
readonly SHOW_COMPARISON_TITLE_IN_HEADER: true;
|
|
18
|
+
readonly COLOR_UNION: "#ff991c";
|
|
19
|
+
readonly COLOR_A: "#139ec4";
|
|
20
|
+
readonly COLOR_B: "#5000C0";
|
|
15
21
|
};
|
|
16
22
|
export declare class OlsHierarchyApi implements HierarchyBuilder {
|
|
17
23
|
protected axiosInstance: AxiosInstance;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OlsBaseApi } from './OlsBaseApi';
|
|
2
|
-
import { apiCallFn } from '../../utils/olsApiTypes';
|
|
3
1
|
import { Ontologies, Ontology } from '../../model/interfaces';
|
|
2
|
+
import { apiCallFn } from '../../utils/olsApiTypes';
|
|
3
|
+
import { OlsBaseApi } from './OlsBaseApi';
|
|
4
4
|
export declare class OlsOntologyApi extends OlsBaseApi {
|
|
5
5
|
getOntologies: apiCallFn;
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OlsBaseApi } from './OlsBaseApi';
|
|
2
|
-
import { ContentParams, PaginationParams, SearchQueryParams, SelectQueryParams, SuggestQueryParams } from '../../utils/olsApiTypes';
|
|
3
1
|
import { Select } from '../../model/interfaces/Select';
|
|
2
|
+
import { ContentParams, PaginationParams, SearchQueryParams, SelectQueryParams, SuggestQueryParams } from '../../utils/olsApiTypes';
|
|
3
|
+
import { OlsBaseApi } from './OlsBaseApi';
|
|
4
4
|
export declare class OlsSearchApi extends OlsBaseApi {
|
|
5
5
|
search: (queryParams: SearchQueryParams, paginationParams: PaginationParams, contentParams?: ContentParams, parameter?: string, abortSignal?: AbortSignal) => Promise<any>;
|
|
6
6
|
select: (queryParams: SelectQueryParams, paginationParams?: PaginationParams, contentParams?: ContentParams, parameter?: string) => Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
1
2
|
import { ThingTypeName } from '../../model/ModelTypeCheck';
|
|
2
3
|
import { Thing } from '../../model/interfaces';
|
|
3
|
-
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
4
4
|
export declare class OlsThingApi {
|
|
5
5
|
protected axiosInstance: AxiosInstance;
|
|
6
6
|
private entityService;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Hierarchy } from '
|
|
3
|
-
import {
|
|
1
|
+
import { EntityData } from '../../app';
|
|
2
|
+
import { Hierarchy } from '../../model/interfaces/Hierarchy';
|
|
3
|
+
import { BuildHierarchyProps, HierarchyBuilder, HierarchyIriProp, LoadHierarchyChildrenProps } from '../../model/interfaces/HierarchyBuilder';
|
|
4
4
|
export declare class OntoPortalApi implements HierarchyBuilder {
|
|
5
5
|
private axiosInstance;
|
|
6
6
|
private apiKey;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Hierarchy } from '
|
|
3
|
-
import {
|
|
1
|
+
import { EntityData } from '../../app';
|
|
2
|
+
import { Hierarchy } from '../../model/interfaces/Hierarchy';
|
|
3
|
+
import { BuildHierarchyProps, HierarchyBuilder, HierarchyIriProp, LoadHierarchyChildrenProps } from '../../model/interfaces/HierarchyBuilder';
|
|
4
4
|
export declare class SkosApi implements HierarchyBuilder {
|
|
5
5
|
private axiosInstance;
|
|
6
6
|
constructor(api: string);
|
package/dist/app/globals.d.ts
CHANGED
|
@@ -6,3 +6,4 @@ export declare const ZBMED_OLS4_GATEWAY_API = "https://semanticlookup.zbmed.de/a
|
|
|
6
6
|
export declare const ZBMED_OLS3_GATEWAY_API = "https://ols3-semanticlookup.zbmed.de/api/";
|
|
7
7
|
export declare const EBI_API_ENDPOINT = "https://www.ebi.ac.uk/ols4/api/";
|
|
8
8
|
export declare const FINTO_V1_API_ENDPOINT = "https://api.finto.fi/rest/v1";
|
|
9
|
+
export declare const DEFAULT_SHOW_BADGES = true;
|
package/dist/app/types.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { EuiComboBoxProps } from '@elastic/eui/src/components/combo_box/combo_box';
|
|
2
|
-
import { EntityTypeName, ThingTypeName } from '../model/ModelTypeCheck';
|
|
3
|
-
import { EuiTextProps } from '@elastic/eui/src/components/text/text';
|
|
4
|
-
import { Action } from '@elastic/eui/src/components/basic_table/action_types';
|
|
5
1
|
import { EuiCardProps } from '@elastic/eui';
|
|
2
|
+
import { Action } from '@elastic/eui/src/components/basic_table/action_types';
|
|
3
|
+
import { EuiComboBoxProps } from '@elastic/eui/src/components/combo_box/combo_box';
|
|
6
4
|
import { EuiLinkColor } from '@elastic/eui/src/components/link/link';
|
|
5
|
+
import { EuiTextProps } from '@elastic/eui/src/components/text/text';
|
|
7
6
|
import { Thing } from '../model/interfaces';
|
|
8
|
-
import { BuildHierarchyProps, HierarchyIriProp } from '../
|
|
7
|
+
import { BuildHierarchyProps, HierarchyIriProp } from '../model/interfaces/HierarchyBuilder';
|
|
8
|
+
import { EntityTypeName, ThingTypeName } from '../model/ModelTypeCheck';
|
|
9
9
|
import { default as Reified } from '../model/Reified';
|
|
10
10
|
type ParameterObj = {
|
|
11
11
|
parameter?: string;
|
|
@@ -100,7 +100,7 @@ type ContainerWidthObj = {
|
|
|
100
100
|
*/
|
|
101
101
|
width?: number;
|
|
102
102
|
};
|
|
103
|
-
type CssClassNameObj = {
|
|
103
|
+
export type CssClassNameObj = {
|
|
104
104
|
/**
|
|
105
105
|
* CSS class for styling
|
|
106
106
|
*/
|
|
@@ -144,7 +144,7 @@ export type AutocompleteWidgetSelectedOptions = {
|
|
|
144
144
|
source?: string;
|
|
145
145
|
type?: string;
|
|
146
146
|
};
|
|
147
|
-
export type AutocompleteWidgetProps = EuiComboBoxProps<string> & ParameterObj & ApiObj & CssClassNameObj & UseLegacyObj & {
|
|
147
|
+
export type AutocompleteWidgetProps = EuiComboBoxProps<string> & ParameterObj & ApiObj & CssClassNameObj & UseLegacyObj & OnNavigateToOntology & {
|
|
148
148
|
/**
|
|
149
149
|
* A method that is called once the set of selection changes
|
|
150
150
|
*/
|
|
@@ -155,6 +155,12 @@ export type AutocompleteWidgetProps = EuiComboBoxProps<string> & ParameterObj &
|
|
|
155
155
|
preselected?: {
|
|
156
156
|
label?: string;
|
|
157
157
|
iri?: string;
|
|
158
|
+
description?: string;
|
|
159
|
+
ontology_name?: string;
|
|
160
|
+
type?: string;
|
|
161
|
+
short_form?: string;
|
|
162
|
+
source?: string;
|
|
163
|
+
source_url?: string;
|
|
158
164
|
}[];
|
|
159
165
|
/**
|
|
160
166
|
* Placeholder to show if no user input nor selection is performed.
|
|
@@ -206,6 +212,12 @@ export type JsonApiWidgetProps = {
|
|
|
206
212
|
*/
|
|
207
213
|
buttonSize?: "s" | "m";
|
|
208
214
|
};
|
|
215
|
+
export type ColorObj = {
|
|
216
|
+
/**
|
|
217
|
+
* Color object, can be primary, accent, success, warning, danger, ghost, text, subdued or a hex / rgb value
|
|
218
|
+
*/
|
|
219
|
+
color?: EuiLinkColor | string;
|
|
220
|
+
};
|
|
209
221
|
export type ColorFirstObj = {
|
|
210
222
|
/**
|
|
211
223
|
* Color of the first badge, can be primary, accent, success, warning, danger, ghost, text, subdued or a hex / rgb value
|
|
@@ -283,12 +295,16 @@ export type TabPresentationProps = TabWidgetProps & CssClassNameObj & {
|
|
|
283
295
|
error?: string | unknown;
|
|
284
296
|
};
|
|
285
297
|
export type EntityOntoListWidgetProps = TabSubwidgetsProps & ForcedOntologyIdObj & OnNavigateToOntology & CssClassNameObj;
|
|
286
|
-
export type
|
|
287
|
-
|
|
288
|
-
label: string;
|
|
298
|
+
export type NavigateToOntologyProps = OnNavigateToOntology & OptionalEntityTypeObj & OptionalIriObj & {
|
|
299
|
+
label?: string;
|
|
289
300
|
};
|
|
301
|
+
export type OntologyBadgeProps = NavigateToOntologyProps & OptionalOntologyIdObj & CssClassNameObj & ColorObj;
|
|
302
|
+
export type ExpandableOntologyBadgeListProps = NavigateToOntologyProps & {
|
|
303
|
+
ontolist: any[];
|
|
304
|
+
} & CssClassNameObj & ColorObj;
|
|
305
|
+
export type EntityOntoListPresentationProps = ExpandableOntologyBadgeListProps;
|
|
306
|
+
export type EntityDefinedByPresentationProps = ExpandableOntologyBadgeListProps;
|
|
290
307
|
export type EntityDefinedByWidgetProps = EntityOntoListWidgetProps;
|
|
291
|
-
export type EntityDefinedByPresentationProps = EntityOntoListPresentationProps;
|
|
292
308
|
export type AlternativeNameTabWidgetProps = TabSubwidgetsProps;
|
|
293
309
|
export type AlternativeNameTabWidgetPresentationProps = CssClassNameObj & {
|
|
294
310
|
synonyms: any[];
|
|
@@ -314,6 +330,7 @@ export type EntityData = {
|
|
|
314
330
|
* should be present for use with hierarchy
|
|
315
331
|
*/
|
|
316
332
|
parents?: Reified<string>[];
|
|
333
|
+
color?: string;
|
|
317
334
|
};
|
|
318
335
|
export type OnNavigateToEntity = {
|
|
319
336
|
/**
|
|
@@ -362,6 +379,9 @@ export type HierarchyWidgetProps = CssClassNameObj & {
|
|
|
362
379
|
apiKey?: string;
|
|
363
380
|
backendType?: string;
|
|
364
381
|
hierarchyWrap?: boolean;
|
|
382
|
+
targetIri?: string;
|
|
383
|
+
showHeader?: boolean;
|
|
384
|
+
showComparisonTitleInHeader?: boolean;
|
|
365
385
|
} & BuildHierarchyProps & HierarchyIriProp & OnNavigateToEntity & OnNavigateToOntology & ParameterObj;
|
|
366
386
|
export type TitleTextObj = {
|
|
367
387
|
/**
|
|
@@ -458,7 +478,7 @@ export type SearchBarWidgetProps = ApiObj & ParameterObj & {
|
|
|
458
478
|
type?: string;
|
|
459
479
|
}[]) => void;
|
|
460
480
|
};
|
|
461
|
-
export type SearchResultsListWidgetProps = Partial<Omit<EuiCardProps, "layout">> & ApiObj & TargetLinkObj & ParameterObj & UseLegacyObj & CssClassNameObj & {
|
|
481
|
+
export type SearchResultsListWidgetProps = Partial<Omit<EuiCardProps, "layout">> & ApiObj & TargetLinkObj & ParameterObj & UseLegacyObj & OnNavigateToOntology & CssClassNameObj & {
|
|
462
482
|
/**
|
|
463
483
|
* The terms to search. By default, the search is performed over term labels, synonyms, descriptions, identifiers and annotation properties.
|
|
464
484
|
*/
|
|
@@ -490,14 +510,14 @@ export type SearchResultProps = {
|
|
|
490
510
|
short_form: string;
|
|
491
511
|
type: ThingTypeName;
|
|
492
512
|
};
|
|
493
|
-
export type MetadataCompactProps = Partial<Omit<EuiCardProps, "layout">> & ApiObj & TargetLinkObj & ParameterObj & CssClassNameObj & OptionalEntityTypeObj & {
|
|
513
|
+
export type MetadataCompactProps = Partial<Omit<EuiCardProps, "layout">> & ApiObj & TargetLinkObj & ParameterObj & CssClassNameObj & OptionalEntityTypeObj & OnNavigateToOntology & {
|
|
494
514
|
result: SearchResultProps;
|
|
495
515
|
iri: string;
|
|
496
516
|
ontologyId: string;
|
|
497
517
|
useLegacy: boolean;
|
|
498
518
|
};
|
|
499
519
|
export type TermDepictionWidgetProps = ApiObj & ForcedIriObj & ForcedOntologyIdObj & UseLegacyObj;
|
|
500
|
-
export type GraphViewWidgetProps = ApiObj & ForcedIriObj & ForcedOntologyIdObj & CssClassNameObj & {
|
|
520
|
+
export type GraphViewWidgetProps = ApiObj & ForcedIriObj & ForcedOntologyIdObj & CssClassNameObj & ParameterObj & {
|
|
501
521
|
/**
|
|
502
522
|
* The target iri. used in the hierarchy mode to compare two terms in one graph.
|
|
503
523
|
*/
|
package/dist/app/util.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { EuiLinkColor } from '@elastic/eui/src/components/link/link';
|
|
2
|
-
import { ThingTypeName } from '../model/ModelTypeCheck';
|
|
3
2
|
import { StoryContext } from '@storybook/react';
|
|
3
|
+
import { ThingTypeName } from '../model/ModelTypeCheck';
|
|
4
|
+
import { default as Reified } from '../model/Reified';
|
|
4
5
|
export declare const OBO_FOUNDRY_REPO_URL_RAW: "https://raw.githubusercontent.com/OBOFoundry/OBOFoundry.github.io/master";
|
|
5
6
|
export declare function asArray<T>(obj: T | T[]): T[];
|
|
7
|
+
export declare function asReified<T>(obj: T | Reified<T>): Reified<T>;
|
|
6
8
|
/**
|
|
7
9
|
* Returns `useLegacy` if undefined, otherwise returns default value for useLegacy
|
|
8
10
|
* @param useLegacy
|
|
@@ -37,6 +39,7 @@ export declare function randomString(): string;
|
|
|
37
39
|
export declare function isHexColor(str: string): boolean;
|
|
38
40
|
export declare function isRgbColor(str: string): boolean;
|
|
39
41
|
export declare function isEuiLinkColor(str: string): str is EuiLinkColor;
|
|
42
|
+
export declare function withAlpha(color: string, alpha: number): string;
|
|
40
43
|
export declare function isEuiButtonColor(str: string): str is EuiLinkColor;
|
|
41
44
|
export declare function getErrorMessageToDisplay(error: any, messagePlaceholder?: string): string;
|
|
42
45
|
export declare function inferTypeFromTypeArray(types: string[]): "class" | "term" | "individual" | "property" | "annotationProperty" | "dataProperty" | "objectProperty" | "ontology";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as React, ReactElement } from 'react';
|
|
2
|
+
import { ColorObj, CssClassNameObj } from '../../app';
|
|
3
|
+
export default function Badge({ children, onClick, className, color, }: CssClassNameObj & ColorObj & {
|
|
4
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}): ReactElement;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { OnNavigates } from '../../app';
|
|
3
|
+
import { Thing } from '../../model/interfaces';
|
|
4
|
+
import { default as LinkedEntities } from '../../model/ols-model/LinkedEntities';
|
|
5
|
+
/**
|
|
6
|
+
* ONLY USABLE WITH V2-API ENTITIES
|
|
7
|
+
*
|
|
8
|
+
* Builds and returns one element of a sections' list, possibly in a recursive fashion by parsing the response object at the currentResponsePath to show Manchester syntax.
|
|
9
|
+
* @param parentEntity the entity object possessing the whole response object
|
|
10
|
+
* @param linkedEntities the linkedEntities object (exists as param because it is necessary that the entity has a linkedEntities block in properties)
|
|
11
|
+
* @param currentResponsePath the current sub-object of the parentEntity response object parsed as class expression
|
|
12
|
+
* @param showBadges boolean which indicates if badges should be shown
|
|
13
|
+
* @param onNavigates functions defining the action when clicking clickable items
|
|
14
|
+
* @param onNavigates.onNavigateToEntity function defining the action when clicking on an entities name
|
|
15
|
+
* @param onNavigates.onNavigateToOntology function defining the action when clicking on an ontology badge
|
|
16
|
+
* @param onNavigates.onNavigateToDisambiguate function defining the action when clicking on a disambiguation badge
|
|
17
|
+
* @returns ReactElement the class expression JSX
|
|
18
|
+
*/
|
|
19
|
+
export default function ClassExpression({ parentEntity, linkedEntities, currentResponsePath, showBadges, onNavigates, }: {
|
|
20
|
+
parentEntity: Thing;
|
|
21
|
+
linkedEntities: LinkedEntities;
|
|
22
|
+
currentResponsePath: any;
|
|
23
|
+
showBadges?: boolean;
|
|
24
|
+
onNavigates: OnNavigates;
|
|
25
|
+
}): ReactElement;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { OnNavigates } from '../../app';
|
|
3
|
+
import { Thing } from '../../model/interfaces';
|
|
4
|
+
import { default as LinkedEntities } from '../../model/ols-model/LinkedEntities';
|
|
5
|
+
/**
|
|
6
|
+
* ONLY USABLE WITH V2-API ENTITIES
|
|
7
|
+
*
|
|
8
|
+
* Returns a labeled entity link as JSX element
|
|
9
|
+
* @param parentEntity the entity object in which the linked entity exists
|
|
10
|
+
* @param linkedEntities the linkedEntities object (exists as param because it is necessary that the entity has a linkedEntities block in properties)
|
|
11
|
+
* @param iri the entities' iri
|
|
12
|
+
* @param showBadges boolean which indicates if badges should be shown
|
|
13
|
+
* @param onNavigates functions defining the action when clicking clickable items
|
|
14
|
+
* @param onNavigates.onNavigateToEntity function defining the action when clicking on an entities name
|
|
15
|
+
* @param onNavigates.onNavigateToOntology function defining the action when clicking on an ontology badge
|
|
16
|
+
* @param onNavigates.onNavigateToDisambiguate function defining the action when clicking on a disambiguation badge
|
|
17
|
+
* @returns ReactElement the entity link JSX
|
|
18
|
+
*/
|
|
19
|
+
export default function EntityLink({ parentEntity, linkedEntities, iri, showBadges, onNavigates, }: {
|
|
20
|
+
parentEntity: Thing;
|
|
21
|
+
linkedEntities: LinkedEntities;
|
|
22
|
+
iri: string;
|
|
23
|
+
showBadges?: boolean;
|
|
24
|
+
onNavigates: OnNavigates;
|
|
25
|
+
}): ReactElement;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { OnNavigates } from '../../app';
|
|
3
|
+
import { Thing } from '../../model/interfaces';
|
|
4
|
+
import { default as Reified } from '../../model/Reified';
|
|
5
|
+
/**
|
|
6
|
+
* Renders a given Reified
|
|
7
|
+
* @param parentEntity the entity the Reified exists in
|
|
8
|
+
* @param reified the Reified
|
|
9
|
+
* @param showBadges boolean which indicates if badges should be shown
|
|
10
|
+
* @param onNavigates functions defining the action when clicking clickable items
|
|
11
|
+
* @param onNavigates.onNavigateToEntity function defining the action when clicking on an entities name
|
|
12
|
+
* @param onNavigates.onNavigateToOntology function defining the action when clicking on an ontology badge
|
|
13
|
+
* @param onNavigates.onNavigateToDisambiguate function defining the action when clicking on a disambiguation badge
|
|
14
|
+
*/
|
|
15
|
+
export default function RenderedReified({ parentEntity, reified, showBadges, onNavigates, }: {
|
|
16
|
+
parentEntity: Thing;
|
|
17
|
+
reified: Reified<any>;
|
|
18
|
+
showBadges?: boolean;
|
|
19
|
+
onNavigates: OnNavigates;
|
|
20
|
+
}): ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Spacer(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AutocompleteWidget } from './AutocompleteWidget';
|
|
2
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { AutocompleteWidget } from './AutocompleteWidget';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
5
|
tags: string[];
|
|
@@ -51,6 +51,7 @@ declare const meta: {
|
|
|
51
51
|
useLegacy: boolean;
|
|
52
52
|
parameter: string;
|
|
53
53
|
initialSearchQuery: string;
|
|
54
|
+
onNavigateToOntology: string;
|
|
54
55
|
};
|
|
55
56
|
};
|
|
56
57
|
export default meta;
|
|
@@ -39,6 +39,7 @@ export declare const AutocompleteWidgetStoryArgsReact: {
|
|
|
39
39
|
useLegacy: boolean;
|
|
40
40
|
parameter: string;
|
|
41
41
|
initialSearchQuery: string;
|
|
42
|
+
onNavigateToOntology: string;
|
|
42
43
|
};
|
|
43
44
|
export declare const AutocompleteWidgetStoryArgsHTML: {
|
|
44
45
|
api: string;
|
|
@@ -54,6 +55,7 @@ export declare const AutocompleteWidgetStoryArgsHTML: {
|
|
|
54
55
|
useLegacy: boolean;
|
|
55
56
|
parameter: string;
|
|
56
57
|
initialSearchQuery: string;
|
|
58
|
+
onNavigateToOntology: string;
|
|
57
59
|
};
|
|
58
60
|
export declare const WithDefaultsArgs: {};
|
|
59
61
|
export declare const UseAPIGatewayWithOLSArgs: AutocompleteWidgetProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EntityInfoWidgetProps } from '../../../app
|
|
1
|
+
import { EntityInfoWidgetProps } from '../../../app';
|
|
2
2
|
declare function EntityInfoWidget(props: EntityInfoWidgetProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare function WrappedEntitiyInfoWidget(props: EntityInfoWidgetProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { EntityInfoWidget, WrappedEntitiyInfoWidget };
|
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { EntityRelationsWidgetProps, OnNavigates } from '../../../app';
|
|
3
|
+
import { Thing } from '../../../model/interfaces';
|
|
4
|
+
/**
|
|
5
|
+
* Builds and returns an array of section list elements specified at `currentResponsePath`
|
|
6
|
+
* @param parentEntity
|
|
7
|
+
* @param array
|
|
8
|
+
* @param showBadges
|
|
9
|
+
* @param onNavigates functions defining the action when clicking clickable items
|
|
10
|
+
* @param onNavigates.onNavigateToEntity function defining the action when clicking on an entities name
|
|
11
|
+
* @param onNavigates.onNavigateToOntology function defining the action when clicking on an ontology badge
|
|
12
|
+
* @param onNavigates.onNavigateToDisambiguate function defining the action when clicking on a disambiguation badge
|
|
13
|
+
*/
|
|
14
|
+
export declare function getSectionListJSX(parentEntity: Thing, array: any[], showBadges: boolean | undefined, onNavigates: OnNavigates): ReactElement;
|
|
2
15
|
declare function EntityRelationsWidget(props: EntityRelationsWidgetProps): import("react/jsx-runtime").JSX.Element;
|
|
3
16
|
declare function WrappedEntityRelationsWidget(props: EntityRelationsWidgetProps): import("react/jsx-runtime").JSX.Element;
|
|
4
17
|
export { EntityRelationsWidget, WrappedEntityRelationsWidget };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EntityRelationsWidget } from './EntityRelationsWidget';
|
|
2
|
-
import { manuallyEmbedOnNavigate } from '../../../app/util';
|
|
3
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { manuallyEmbedOnNavigate } from '../../../app/util';
|
|
3
|
+
import { EntityRelationsWidget } from './EntityRelationsWidget';
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
6
|
component: typeof EntityRelationsWidget;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GraphViewWidget } from './GraphViewWidget';
|
|
2
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { GraphViewWidget } from './GraphViewWidget';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: typeof GraphViewWidget;
|
|
@@ -33,3 +33,4 @@ export declare const ChebiCaffeineHierarchy: Story;
|
|
|
33
33
|
export declare const WithOnNodeDoubleClickCallback: Story;
|
|
34
34
|
export declare const ChebiCaffeineHierarchyWithComparison: Story;
|
|
35
35
|
export declare const ChebiIonAndIonRadicalWithComparison: Story;
|
|
36
|
+
export declare const GraphWithGermanLabel: Story;
|
|
@@ -81,6 +81,15 @@ export declare const ChebiIonAndIonRadicalWithComparisonArgs: {
|
|
|
81
81
|
rootWalk: boolean;
|
|
82
82
|
hierarchy: boolean;
|
|
83
83
|
};
|
|
84
|
+
export declare const GraphWithGermanLabelArgs: {
|
|
85
|
+
api: string;
|
|
86
|
+
iri: string;
|
|
87
|
+
ontologyId: string;
|
|
88
|
+
rootWalk: boolean;
|
|
89
|
+
hierarchy: boolean;
|
|
90
|
+
targetIri: string;
|
|
91
|
+
parameter: string;
|
|
92
|
+
};
|
|
84
93
|
export declare const commonGraphViewWidgetPlay: ({ canvasElement, }: {
|
|
85
94
|
canvasElement: HTMLElement;
|
|
86
95
|
}) => Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { JSTreeNode } from '../../../utils/olsApiTypes';
|
|
2
1
|
import { OlsGraphNode } from '../../../app';
|
|
2
|
+
import { JSTreeNode } from '../../../utils/olsApiTypes';
|
|
3
3
|
export type GraphFetchData = {
|
|
4
4
|
treeData: JSTreeNode[];
|
|
5
5
|
termRelations?: VisGraphData;
|
|
@@ -16,4 +16,5 @@ export type GraphFetchFunctionInput = {
|
|
|
16
16
|
iri: string;
|
|
17
17
|
targetIri?: string;
|
|
18
18
|
dbClicked?: boolean;
|
|
19
|
+
parameter?: string;
|
|
19
20
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GraphFetchData, GraphFetchFunctionInput } from './types';
|
|
2
1
|
import { JSTreeNode } from '../../../utils/olsApiTypes';
|
|
2
|
+
import { GraphFetchData, GraphFetchFunctionInput } from './types';
|
|
3
3
|
export declare function fetchRootWalkModeData(props: GraphFetchFunctionInput): Promise<GraphFetchData>;
|
|
4
4
|
export declare function fetchHierarchyModeData(props: GraphFetchFunctionInput): Promise<GraphFetchData>;
|
|
5
5
|
export declare function fetchNormalModeData(props: GraphFetchFunctionInput): Promise<GraphFetchData>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BreadcrumbPresentationProps } from '../../../../../app
|
|
1
|
+
import { BreadcrumbPresentationProps } from '../../../../../app';
|
|
2
2
|
declare function BreadcrumbPresentation(props: BreadcrumbPresentationProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare function WrappedBreadcrumbPresentation(props: BreadcrumbPresentationProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { BreadcrumbPresentation, WrappedBreadcrumbPresentation };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BreadcrumbPresentation } from './BreadcrumbPresentation';
|
|
2
|
-
import { manuallyEmbedOnNavigate } from '../../../../../app/util';
|
|
3
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { manuallyEmbedOnNavigate } from '../../../../../app/util';
|
|
3
|
+
import { BreadcrumbPresentation } from './BreadcrumbPresentation';
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
6
|
component: typeof BreadcrumbPresentation;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BreadcrumbWidgetProps } from '../../../../app
|
|
1
|
+
import { BreadcrumbWidgetProps } from '../../../../app';
|
|
2
2
|
declare function BreadcrumbWidget(props: BreadcrumbWidgetProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare function WrappedBreadcrumbWidget(props: BreadcrumbWidgetProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { BreadcrumbWidget, WrappedBreadcrumbWidget };
|
package/dist/components/widgets/MetadataWidget/BreadcrumbWidget/BreadcrumbWidget.stories.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BreadcrumbWidget } from './BreadcrumbWidget';
|
|
2
|
-
import { manuallyEmbedOnNavigate } from '../../../../app/util';
|
|
3
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { manuallyEmbedOnNavigate } from '../../../../app/util';
|
|
3
|
+
import { BreadcrumbWidget } from './BreadcrumbWidget';
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
6
|
component: typeof BreadcrumbWidget;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { EntityOntoListPresentationProps } from '../../../../app
|
|
1
|
+
import { EntityOntoListPresentationProps } from '../../../../app';
|
|
2
2
|
declare function EntityDefinedByPresentation(props: EntityOntoListPresentationProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export { EntityDefinedByPresentation };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EntityDefinedByWidget } from './EntityDefinedByWidget';
|
|
2
|
-
import { manuallyEmbedOnNavigate } from '../../../../app/util';
|
|
3
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { manuallyEmbedOnNavigate } from '../../../../app/util';
|
|
3
|
+
import { EntityDefinedByWidget } from './EntityDefinedByWidget';
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
6
|
component: typeof EntityDefinedByWidget;
|
package/dist/components/widgets/MetadataWidget/EntityOntoListWidget/EntityOntoListPresentation.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { EntityOntoListPresentationProps } from '../../../../app
|
|
1
|
+
import { EntityOntoListPresentationProps } from '../../../../app';
|
|
2
2
|
declare function EntityOntoListPresentation(props: EntityOntoListPresentationProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export { EntityOntoListPresentation };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EntityOntoListWidget } from './EntityOntoListWidget';
|
|
2
|
-
import { manuallyEmbedOnNavigate } from '../../../../app/util';
|
|
3
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { manuallyEmbedOnNavigate } from '../../../../app/util';
|
|
3
|
+
import { EntityOntoListWidget } from './EntityOntoListWidget';
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
6
|
component: typeof EntityOntoListWidget;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MetadataWidgetProps } from '../../../app
|
|
1
|
+
import { MetadataWidgetProps } from '../../../app';
|
|
2
2
|
declare function MetadataWidget(props: MetadataWidgetProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare function WrappedMetadataWidget(props: MetadataWidgetProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { MetadataWidget, WrappedMetadataWidget };
|