@ts4nfdi/terminology-service-suite 6.4.5 → 6.6.5
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 +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 +26 -10
- package/dist/app/util.d.ts +2 -0
- 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/widgets/AutocompleteWidget/AutocompleteWidget.d.ts +1 -1
- package/dist/components/widgets/AutocompleteWidget/AutocompleteWidget.stories.d.ts +1 -0
- package/dist/components/widgets/AutocompleteWidget/AutocompleteWidgetStories.d.ts +2 -0
- package/dist/components/widgets/EntityInfoWidget/EntityInfoWidget.d.ts +1 -1
- package/dist/components/widgets/EntityRelationsWidget/EntityRelationsWidget.d.ts +14 -1
- package/dist/components/widgets/GraphViewWidget/GraphViewWidget.stories.d.ts +1 -0
- package/dist/components/widgets/GraphViewWidget/GraphViewWidgetStories.d.ts +9 -0
- package/dist/components/widgets/GraphViewWidget/types.d.ts +1 -0
- package/dist/components/widgets/MetadataWidget/BreadcrumbWidget/BreadcrumbPresentation/BreadcrumbPresentation.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/BreadcrumbWidget/BreadcrumbWidget.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/EntityDefinedByWidget/EntityDefinedByPresentation.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/EntityOntoListWidget/EntityOntoListPresentation.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/MetadataWidget.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/MetadataWidget.stories.d.ts +4 -1
- package/dist/components/widgets/MetadataWidget/MetadataWidgetStories.d.ts +4 -1
- package/dist/components/widgets/MetadataWidget/TabWidget/HierarchyWidget/HierarchyWidget.stories.d.ts +4 -1
- package/dist/components/widgets/MetadataWidget/TabWidget/HierarchyWidget/HierarchyWidgetStories.d.ts +4 -1
- package/dist/components/widgets/MetadataWidget/TitleWidget/TitlePresentation.d.ts +1 -1
- package/dist/components/widgets/OntologyInfoWidget/OntologyInfoWidget.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 +1 -0
- package/dist/components/widgets/SearchResultsListWidget/SearchResultsListWidgetStories.d.ts +1 -0
- package/dist/esm/index.es.js +3147 -3132
- package/dist/esm/index.es.js.map +1 -1
- package/dist/esm/terminology-service-suite.css +1 -1
- package/dist/model/interfaces/Hierarchy.d.ts +2 -2
- package/dist/{api → model/interfaces}/HierarchyBuilder.d.ts +3 -3
- package/dist/model/interfaces/Thing.d.ts +1 -1
- 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 +1 -1
- package/dist/model/ols4-model/OLS4Thing.d.ts +1 -1
- package/dist/server/index.es.js +40 -40
- package/dist/server/index.es.js.map +1 -1
- package/dist/stories/storyArgs.d.ts +4 -1
- package/package.json +1 -1
- 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,7 +1,7 @@
|
|
|
1
1
|
import { EntityTypeName } from '../../model/ModelTypeCheck';
|
|
2
2
|
import { Entity } from '../../model/interfaces';
|
|
3
3
|
import { JSTreeNode } from '../../utils/olsApiTypes';
|
|
4
|
-
import { BuildHierarchyProps, HierarchyBuilder, HierarchyIriProp, LoadHierarchyChildrenProps } from '
|
|
4
|
+
import { BuildHierarchyProps, HierarchyBuilder, HierarchyIriProp, LoadHierarchyChildrenProps } from '../../model/interfaces/HierarchyBuilder';
|
|
5
5
|
import { Hierarchy } from '../../model/interfaces/Hierarchy';
|
|
6
6
|
import { EntityData } from '../../app';
|
|
7
7
|
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BuildHierarchyProps, HierarchyBuilder, HierarchyIriProp, LoadHierarchyChildrenProps } from '
|
|
2
|
-
import { Hierarchy } from '
|
|
3
|
-
import { EntityData } from '
|
|
1
|
+
import { BuildHierarchyProps, HierarchyBuilder, HierarchyIriProp, LoadHierarchyChildrenProps } from '../../model/interfaces/HierarchyBuilder';
|
|
2
|
+
import { Hierarchy } from '../../model/interfaces/Hierarchy';
|
|
3
|
+
import { EntityData } from '../../app';
|
|
4
4
|
export declare class OntoPortalApi implements HierarchyBuilder {
|
|
5
5
|
private axiosInstance;
|
|
6
6
|
private apiKey;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BuildHierarchyProps, HierarchyBuilder, HierarchyIriProp, LoadHierarchyChildrenProps } from '
|
|
2
|
-
import { Hierarchy } from '
|
|
3
|
-
import { EntityData } from '
|
|
1
|
+
import { BuildHierarchyProps, HierarchyBuilder, HierarchyIriProp, LoadHierarchyChildrenProps } from '../../model/interfaces/HierarchyBuilder';
|
|
2
|
+
import { Hierarchy } from '../../model/interfaces/Hierarchy';
|
|
3
|
+
import { EntityData } from '../../app';
|
|
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
|
@@ -5,7 +5,7 @@ import { Action } from '@elastic/eui/src/components/basic_table/action_types';
|
|
|
5
5
|
import { EuiCardProps } from '@elastic/eui';
|
|
6
6
|
import { EuiLinkColor } from '@elastic/eui/src/components/link/link';
|
|
7
7
|
import { Thing } from '../model/interfaces';
|
|
8
|
-
import { BuildHierarchyProps, HierarchyIriProp } from '../
|
|
8
|
+
import { BuildHierarchyProps, HierarchyIriProp } from '../model/interfaces/HierarchyBuilder';
|
|
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[];
|
|
@@ -458,7 +474,7 @@ export type SearchBarWidgetProps = ApiObj & ParameterObj & {
|
|
|
458
474
|
type?: string;
|
|
459
475
|
}[]) => void;
|
|
460
476
|
};
|
|
461
|
-
export type SearchResultsListWidgetProps = Partial<Omit<EuiCardProps, "layout">> & ApiObj & TargetLinkObj & ParameterObj & UseLegacyObj & CssClassNameObj & {
|
|
477
|
+
export type SearchResultsListWidgetProps = Partial<Omit<EuiCardProps, "layout">> & ApiObj & TargetLinkObj & ParameterObj & UseLegacyObj & OnNavigateToOntology & CssClassNameObj & {
|
|
462
478
|
/**
|
|
463
479
|
* The terms to search. By default, the search is performed over term labels, synonyms, descriptions, identifiers and annotation properties.
|
|
464
480
|
*/
|
|
@@ -490,14 +506,14 @@ export type SearchResultProps = {
|
|
|
490
506
|
short_form: string;
|
|
491
507
|
type: ThingTypeName;
|
|
492
508
|
};
|
|
493
|
-
export type MetadataCompactProps = Partial<Omit<EuiCardProps, "layout">> & ApiObj & TargetLinkObj & ParameterObj & CssClassNameObj & OptionalEntityTypeObj & {
|
|
509
|
+
export type MetadataCompactProps = Partial<Omit<EuiCardProps, "layout">> & ApiObj & TargetLinkObj & ParameterObj & CssClassNameObj & OptionalEntityTypeObj & OnNavigateToOntology & {
|
|
494
510
|
result: SearchResultProps;
|
|
495
511
|
iri: string;
|
|
496
512
|
ontologyId: string;
|
|
497
513
|
useLegacy: boolean;
|
|
498
514
|
};
|
|
499
515
|
export type TermDepictionWidgetProps = ApiObj & ForcedIriObj & ForcedOntologyIdObj & UseLegacyObj;
|
|
500
|
-
export type GraphViewWidgetProps = ApiObj & ForcedIriObj & ForcedOntologyIdObj & CssClassNameObj & {
|
|
516
|
+
export type GraphViewWidgetProps = ApiObj & ForcedIriObj & ForcedOntologyIdObj & CssClassNameObj & ParameterObj & {
|
|
501
517
|
/**
|
|
502
518
|
* The target iri. used in the hierarchy mode to compare two terms in one graph.
|
|
503
519
|
*/
|
package/dist/app/util.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { EuiLinkColor } from '@elastic/eui/src/components/link/link';
|
|
2
2
|
import { ThingTypeName } from '../model/ModelTypeCheck';
|
|
3
3
|
import { StoryContext } from '@storybook/react';
|
|
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
|
|
@@ -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 { Thing } from '../../model/interfaces';
|
|
3
|
+
import { default as LinkedEntities } from '../../model/ols-model/LinkedEntities';
|
|
4
|
+
import { OnNavigates } from '../../app';
|
|
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 { Thing } from '../../model/interfaces';
|
|
3
|
+
import { default as LinkedEntities } from '../../model/ols-model/LinkedEntities';
|
|
4
|
+
import { OnNavigates } from '../../app';
|
|
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 { Thing } from '../../model/interfaces';
|
|
2
|
+
import { default as Reified } from '../../model/Reified';
|
|
3
|
+
import { OnNavigates } from '../../app';
|
|
4
|
+
import { ReactElement } from 'react';
|
|
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;
|
|
@@ -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 { Thing } from '../../../model/interfaces';
|
|
3
|
+
import { EntityRelationsWidgetProps, OnNavigates } from '../../../app';
|
|
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 };
|
|
@@ -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,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,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 };
|
|
@@ -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 };
|
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,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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OntologyInfoWidgetProps } from '../../../app
|
|
1
|
+
import { OntologyInfoWidgetProps } from '../../../app';
|
|
2
2
|
declare function OntologyInfoWidget(props: OntologyInfoWidgetProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare function WrappedOntologyInfoWidget(props: OntologyInfoWidgetProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { OntologyInfoWidget, WrappedOntologyInfoWidget };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SearchResultsListWidgetProps } from '../../../app
|
|
1
|
+
import { SearchResultsListWidgetProps } from '../../../app';
|
|
2
2
|
declare function SearchResultsListWidget(props: SearchResultsListWidgetProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare function WrappedSearchResultsListWidget(props: SearchResultsListWidgetProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { SearchResultsListWidget, WrappedSearchResultsListWidget };
|