@ts4nfdi/terminology-service-suite 6.6.5 → 6.8.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/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/ontoportal/OntoPortalApi.d.ts +2 -2
- package/dist/api/skosmos/SkosApi.d.ts +2 -2
- package/dist/app/types.d.ts +8 -4
- package/dist/app/util.d.ts +2 -1
- package/dist/components/helperComponents/Badge.d.ts +1 -1
- package/dist/components/helperComponents/ClassExpression.d.ts +2 -2
- package/dist/components/helperComponents/EntityLink.d.ts +2 -2
- package/dist/components/helperComponents/RenderedReified.d.ts +3 -3
- package/dist/components/index.d.ts +1 -1
- package/dist/components/widgets/AutocompleteWidget/AutocompleteWidget.stories.d.ts +1 -1
- package/dist/components/widgets/DataContentWidget/DataContentWidget.stories.d.ts +1 -1
- package/dist/components/widgets/EntityInfoWidget/EntityInfoWidget.stories.d.ts +1 -1
- package/dist/components/widgets/EntityRelationsWidget/EntityRelationsWidget.d.ts +1 -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 +1 -1
- package/dist/components/widgets/GraphViewWidget/types.d.ts +1 -1
- package/dist/components/widgets/GraphViewWidget/utils.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/BreadcrumbWidget/BreadcrumbPresentation/BreadcrumbPresentation.stories.d.ts +2 -2
- 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/EntityDefinedByWidget.stories.d.ts +2 -2
- 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.stories.d.ts +2 -2
- 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 +7 -2
- package/dist/components/widgets/MetadataWidget/TabWidget/HierarchyWidget/HierarchyWidgetStories.d.ts +83 -0
- 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/TitleWidget.stories.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/index.d.ts +4 -4
- 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/SearchResultsListWidget.stories.d.ts +4 -5
- package/dist/components/widgets/SearchResultsListWidget/SearchResultsListWidgetStories.d.ts +4 -9
- 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 +5130 -4642
- 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 +6 -4
- package/dist/model/interfaces/HierarchyBuilder.d.ts +1 -1
- package/dist/model/interfaces/Thing.d.ts +1 -1
- package/dist/model/interfaces/index.d.ts +2 -2
- package/dist/model/ols3-model/OLS3Thing.d.ts +1 -1
- package/dist/model/ols3-model/index.d.ts +3 -3
- package/dist/model/ols4-model/index.d.ts +3 -3
- package/dist/server/index.es.js +93 -91
- package/dist/server/index.es.js.map +1 -1
- package/dist/stories/storyArgs.d.ts +2 -0
- package/package.json +1 -2
|
@@ -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 '../../model/interfaces/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 { BuildHierarchyProps, HierarchyBuilder, HierarchyIriProp, LoadHierarchyChildrenProps } from '../../model/interfaces/HierarchyBuilder';
|
|
2
|
-
import { Hierarchy } from '../../model/interfaces/Hierarchy';
|
|
3
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 { BuildHierarchyProps, HierarchyBuilder, HierarchyIriProp, LoadHierarchyChildrenProps } from '../../model/interfaces/HierarchyBuilder';
|
|
2
|
-
import { Hierarchy } from '../../model/interfaces/Hierarchy';
|
|
3
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/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
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;
|
|
@@ -330,6 +330,7 @@ export type EntityData = {
|
|
|
330
330
|
* should be present for use with hierarchy
|
|
331
331
|
*/
|
|
332
332
|
parents?: Reified<string>[];
|
|
333
|
+
color?: string;
|
|
333
334
|
};
|
|
334
335
|
export type OnNavigateToEntity = {
|
|
335
336
|
/**
|
|
@@ -378,6 +379,9 @@ export type HierarchyWidgetProps = CssClassNameObj & {
|
|
|
378
379
|
apiKey?: string;
|
|
379
380
|
backendType?: string;
|
|
380
381
|
hierarchyWrap?: boolean;
|
|
382
|
+
targetIri?: string;
|
|
383
|
+
showHeader?: boolean;
|
|
384
|
+
showComparisonTitleInHeader?: boolean;
|
|
381
385
|
} & BuildHierarchyProps & HierarchyIriProp & OnNavigateToEntity & OnNavigateToOntology & ParameterObj;
|
|
382
386
|
export type TitleTextObj = {
|
|
383
387
|
/**
|
package/dist/app/util.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
4
|
import { default as Reified } from '../model/Reified';
|
|
5
5
|
export declare const OBO_FOUNDRY_REPO_URL_RAW: "https://raw.githubusercontent.com/OBOFoundry/OBOFoundry.github.io/master";
|
|
6
6
|
export declare function asArray<T>(obj: T | T[]): T[];
|
|
@@ -39,6 +39,7 @@ export declare function randomString(): string;
|
|
|
39
39
|
export declare function isHexColor(str: string): boolean;
|
|
40
40
|
export declare function isRgbColor(str: string): boolean;
|
|
41
41
|
export declare function isEuiLinkColor(str: string): str is EuiLinkColor;
|
|
42
|
+
export declare function withAlpha(color: string, alpha: number): string;
|
|
42
43
|
export declare function isEuiButtonColor(str: string): str is EuiLinkColor;
|
|
43
44
|
export declare function getErrorMessageToDisplay(error: any, messagePlaceholder?: string): string;
|
|
44
45
|
export declare function inferTypeFromTypeArray(types: string[]): "class" | "term" | "individual" | "property" | "annotationProperty" | "dataProperty" | "objectProperty" | "ontology";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React, ReactElement } from 'react';
|
|
2
2
|
import { ColorObj, CssClassNameObj } from '../../app';
|
|
3
|
-
export default function Badge({ children, onClick, className, color }: CssClassNameObj & ColorObj & {
|
|
3
|
+
export default function Badge({ children, onClick, className, color, }: CssClassNameObj & ColorObj & {
|
|
4
4
|
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
}): ReactElement;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
+
import { OnNavigates } from '../../app';
|
|
2
3
|
import { Thing } from '../../model/interfaces';
|
|
3
4
|
import { default as LinkedEntities } from '../../model/ols-model/LinkedEntities';
|
|
4
|
-
import { OnNavigates } from '../../app';
|
|
5
5
|
/**
|
|
6
6
|
* ONLY USABLE WITH V2-API ENTITIES
|
|
7
7
|
*
|
|
@@ -16,7 +16,7 @@ import { OnNavigates } from '../../app';
|
|
|
16
16
|
* @param onNavigates.onNavigateToDisambiguate function defining the action when clicking on a disambiguation badge
|
|
17
17
|
* @returns ReactElement the class expression JSX
|
|
18
18
|
*/
|
|
19
|
-
export default function ClassExpression({ parentEntity, linkedEntities, currentResponsePath, showBadges, onNavigates }: {
|
|
19
|
+
export default function ClassExpression({ parentEntity, linkedEntities, currentResponsePath, showBadges, onNavigates, }: {
|
|
20
20
|
parentEntity: Thing;
|
|
21
21
|
linkedEntities: LinkedEntities;
|
|
22
22
|
currentResponsePath: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
+
import { OnNavigates } from '../../app';
|
|
2
3
|
import { Thing } from '../../model/interfaces';
|
|
3
4
|
import { default as LinkedEntities } from '../../model/ols-model/LinkedEntities';
|
|
4
|
-
import { OnNavigates } from '../../app';
|
|
5
5
|
/**
|
|
6
6
|
* ONLY USABLE WITH V2-API ENTITIES
|
|
7
7
|
*
|
|
@@ -16,7 +16,7 @@ import { OnNavigates } from '../../app';
|
|
|
16
16
|
* @param onNavigates.onNavigateToDisambiguate function defining the action when clicking on a disambiguation badge
|
|
17
17
|
* @returns ReactElement the entity link JSX
|
|
18
18
|
*/
|
|
19
|
-
export default function EntityLink({ parentEntity, linkedEntities, iri, showBadges, onNavigates }: {
|
|
19
|
+
export default function EntityLink({ parentEntity, linkedEntities, iri, showBadges, onNavigates, }: {
|
|
20
20
|
parentEntity: Thing;
|
|
21
21
|
linkedEntities: LinkedEntities;
|
|
22
22
|
iri: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { OnNavigates } from '../../app';
|
|
1
3
|
import { Thing } from '../../model/interfaces';
|
|
2
4
|
import { default as Reified } from '../../model/Reified';
|
|
3
|
-
import { OnNavigates } from '../../app';
|
|
4
|
-
import { ReactElement } from 'react';
|
|
5
5
|
/**
|
|
6
6
|
* Renders a given Reified
|
|
7
7
|
* @param parentEntity the entity the Reified exists in
|
|
@@ -12,7 +12,7 @@ import { ReactElement } from 'react';
|
|
|
12
12
|
* @param onNavigates.onNavigateToOntology function defining the action when clicking on an ontology badge
|
|
13
13
|
* @param onNavigates.onNavigateToDisambiguate function defining the action when clicking on a disambiguation badge
|
|
14
14
|
*/
|
|
15
|
-
export default function RenderedReified({ parentEntity, reified, showBadges, onNavigates }: {
|
|
15
|
+
export default function RenderedReified({ parentEntity, reified, showBadges, onNavigates, }: {
|
|
16
16
|
parentEntity: Thing;
|
|
17
17
|
reified: Reified<any>;
|
|
18
18
|
showBadges?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { Thing } from '../../../model/interfaces';
|
|
3
2
|
import { EntityRelationsWidgetProps, OnNavigates } from '../../../app';
|
|
3
|
+
import { Thing } from '../../../model/interfaces';
|
|
4
4
|
/**
|
|
5
5
|
* Builds and returns an array of section list elements specified at `currentResponsePath`
|
|
6
6
|
* @param parentEntity
|
|
@@ -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 { 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,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;
|
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,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;
|
|
@@ -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,6 +1,6 @@
|
|
|
1
|
-
import { MetadataWidget } from './MetadataWidget';
|
|
2
|
-
import { manuallyEmbedOnNavigate } from '../../../app/util';
|
|
3
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { manuallyEmbedOnNavigate } from '../../../app/util';
|
|
3
|
+
import { MetadataWidget } from './MetadataWidget';
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
6
|
component: typeof MetadataWidget;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AlternativeNameTabWidget } from './AlternativeNameTabWidget';
|
|
2
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { AlternativeNameTabWidget } from './AlternativeNameTabWidget';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
5
|
component: typeof AlternativeNameTabWidget;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HierarchyWidget } from './HierarchyWidget';
|
|
2
|
-
import { manuallyEmbedOnNavigate } from '../../../../../app/util';
|
|
3
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { manuallyEmbedOnNavigate } from '../../../../../app/util';
|
|
3
|
+
import { HierarchyWidget } from './HierarchyWidget';
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
6
|
component: typeof HierarchyWidget;
|
|
@@ -170,6 +170,9 @@ declare const meta: {
|
|
|
170
170
|
readonly useLegacy: false;
|
|
171
171
|
readonly hierarchyWrap: false;
|
|
172
172
|
readonly parameter: "";
|
|
173
|
+
readonly targetIri: "";
|
|
174
|
+
readonly showHeader: true;
|
|
175
|
+
readonly showComparisonTitleInHeader: true;
|
|
173
176
|
};
|
|
174
177
|
};
|
|
175
178
|
export default meta;
|
|
@@ -187,3 +190,5 @@ export declare const OntoportalHierarchy: Story;
|
|
|
187
190
|
export declare const OLS3Hierarchy: Story;
|
|
188
191
|
export declare const OLSGerman: Story;
|
|
189
192
|
export declare const SkosmosAgrovocGerman: Story;
|
|
193
|
+
export declare const CompareHierarchies: Story;
|
|
194
|
+
export declare const CompareHierarchiesSubEntity: Story;
|
package/dist/components/widgets/MetadataWidget/TabWidget/HierarchyWidget/HierarchyWidgetStories.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EntityTypeName } from '../../../../../model/ModelTypeCheck';
|
|
1
2
|
export declare const HierarchyWidgetStoryArgTypes: {
|
|
2
3
|
hierarchyWrap: {
|
|
3
4
|
required: boolean;
|
|
@@ -153,6 +154,9 @@ export declare const HierarchyWidgetStoryArgs: {
|
|
|
153
154
|
readonly useLegacy: false;
|
|
154
155
|
readonly hierarchyWrap: false;
|
|
155
156
|
readonly parameter: "";
|
|
157
|
+
readonly targetIri: "";
|
|
158
|
+
readonly showHeader: true;
|
|
159
|
+
readonly showComparisonTitleInHeader: true;
|
|
156
160
|
};
|
|
157
161
|
export declare const ClassHierarchyArgs: {
|
|
158
162
|
readonly apiUrl: "https://www.ebi.ac.uk/ols4/api/";
|
|
@@ -170,6 +174,9 @@ export declare const ClassHierarchyArgs: {
|
|
|
170
174
|
readonly useLegacy: false;
|
|
171
175
|
readonly hierarchyWrap: false;
|
|
172
176
|
readonly parameter: "";
|
|
177
|
+
readonly targetIri: "";
|
|
178
|
+
readonly showHeader: true;
|
|
179
|
+
readonly showComparisonTitleInHeader: true;
|
|
173
180
|
};
|
|
174
181
|
export declare const IndividualHierarchyArgs: {
|
|
175
182
|
readonly apiUrl: "https://www.ebi.ac.uk/ols4/api/";
|
|
@@ -187,6 +194,9 @@ export declare const IndividualHierarchyArgs: {
|
|
|
187
194
|
readonly useLegacy: false;
|
|
188
195
|
readonly hierarchyWrap: false;
|
|
189
196
|
readonly parameter: "";
|
|
197
|
+
readonly targetIri: "";
|
|
198
|
+
readonly showHeader: true;
|
|
199
|
+
readonly showComparisonTitleInHeader: true;
|
|
190
200
|
};
|
|
191
201
|
export declare const PreferredRootsArgs: {
|
|
192
202
|
readonly apiUrl: "https://www.ebi.ac.uk/ols4/api/";
|
|
@@ -204,6 +214,9 @@ export declare const PreferredRootsArgs: {
|
|
|
204
214
|
readonly useLegacy: false;
|
|
205
215
|
readonly hierarchyWrap: false;
|
|
206
216
|
readonly parameter: "";
|
|
217
|
+
readonly targetIri: "";
|
|
218
|
+
readonly showHeader: true;
|
|
219
|
+
readonly showComparisonTitleInHeader: true;
|
|
207
220
|
};
|
|
208
221
|
export declare const IncludeObsoleteEntitiesArgs: {
|
|
209
222
|
readonly apiUrl: "https://www.ebi.ac.uk/ols4/api/";
|
|
@@ -221,6 +234,9 @@ export declare const IncludeObsoleteEntitiesArgs: {
|
|
|
221
234
|
readonly showSiblingsOnInit: false;
|
|
222
235
|
readonly hierarchyWrap: false;
|
|
223
236
|
readonly parameter: "";
|
|
237
|
+
readonly targetIri: "";
|
|
238
|
+
readonly showHeader: true;
|
|
239
|
+
readonly showComparisonTitleInHeader: true;
|
|
224
240
|
};
|
|
225
241
|
export declare const PropertyRootsArgs: {
|
|
226
242
|
readonly apiUrl: "https://www.ebi.ac.uk/ols4/api/";
|
|
@@ -238,6 +254,9 @@ export declare const PropertyRootsArgs: {
|
|
|
238
254
|
readonly showSiblingsOnInit: false;
|
|
239
255
|
readonly hierarchyWrap: false;
|
|
240
256
|
readonly parameter: "";
|
|
257
|
+
readonly targetIri: "";
|
|
258
|
+
readonly showHeader: true;
|
|
259
|
+
readonly showComparisonTitleInHeader: true;
|
|
241
260
|
};
|
|
242
261
|
export declare const IndividualRootsArgs: {
|
|
243
262
|
readonly apiUrl: "https://www.ebi.ac.uk/ols4/api/";
|
|
@@ -255,6 +274,9 @@ export declare const IndividualRootsArgs: {
|
|
|
255
274
|
readonly useLegacy: false;
|
|
256
275
|
readonly hierarchyWrap: false;
|
|
257
276
|
readonly parameter: "";
|
|
277
|
+
readonly targetIri: "";
|
|
278
|
+
readonly showHeader: true;
|
|
279
|
+
readonly showComparisonTitleInHeader: true;
|
|
258
280
|
};
|
|
259
281
|
export declare const LargeHierarchyArgs: {
|
|
260
282
|
readonly apiUrl: "https://www.ebi.ac.uk/ols4/api/";
|
|
@@ -272,6 +294,9 @@ export declare const LargeHierarchyArgs: {
|
|
|
272
294
|
readonly useLegacy: false;
|
|
273
295
|
readonly hierarchyWrap: false;
|
|
274
296
|
readonly parameter: "";
|
|
297
|
+
readonly targetIri: "";
|
|
298
|
+
readonly showHeader: true;
|
|
299
|
+
readonly showComparisonTitleInHeader: true;
|
|
275
300
|
};
|
|
276
301
|
export declare const SkosHierarchyArgs: {
|
|
277
302
|
readonly apiUrl: "https://api.finto.fi/rest/v1";
|
|
@@ -289,6 +314,9 @@ export declare const SkosHierarchyArgs: {
|
|
|
289
314
|
readonly useLegacy: false;
|
|
290
315
|
readonly hierarchyWrap: false;
|
|
291
316
|
readonly parameter: "";
|
|
317
|
+
readonly targetIri: "";
|
|
318
|
+
readonly showHeader: true;
|
|
319
|
+
readonly showComparisonTitleInHeader: true;
|
|
292
320
|
};
|
|
293
321
|
export declare const SagePubHierarchyArgs: {
|
|
294
322
|
readonly apiUrl: "https://concepts.sagepub.com/vocabularies/rest/v1/";
|
|
@@ -306,6 +334,9 @@ export declare const SagePubHierarchyArgs: {
|
|
|
306
334
|
readonly useLegacy: false;
|
|
307
335
|
readonly hierarchyWrap: false;
|
|
308
336
|
readonly parameter: "";
|
|
337
|
+
readonly targetIri: "";
|
|
338
|
+
readonly showHeader: true;
|
|
339
|
+
readonly showComparisonTitleInHeader: true;
|
|
309
340
|
};
|
|
310
341
|
export declare const OntoportalHierarchyArgs: {
|
|
311
342
|
readonly apiUrl: "https://data.biodivportal.gfbio.org";
|
|
@@ -323,6 +354,9 @@ export declare const OntoportalHierarchyArgs: {
|
|
|
323
354
|
readonly useLegacy: false;
|
|
324
355
|
readonly hierarchyWrap: false;
|
|
325
356
|
readonly parameter: "";
|
|
357
|
+
readonly targetIri: "";
|
|
358
|
+
readonly showHeader: true;
|
|
359
|
+
readonly showComparisonTitleInHeader: true;
|
|
326
360
|
};
|
|
327
361
|
export declare const OLS3HierarchyArgs: {
|
|
328
362
|
readonly apiUrl: "https://ols3-semanticlookup.zbmed.de/ols/api/";
|
|
@@ -340,6 +374,9 @@ export declare const OLS3HierarchyArgs: {
|
|
|
340
374
|
readonly showSiblingsOnInit: false;
|
|
341
375
|
readonly hierarchyWrap: false;
|
|
342
376
|
readonly parameter: "";
|
|
377
|
+
readonly targetIri: "";
|
|
378
|
+
readonly showHeader: true;
|
|
379
|
+
readonly showComparisonTitleInHeader: true;
|
|
343
380
|
};
|
|
344
381
|
export declare const OLSGermanArgs: {
|
|
345
382
|
readonly apiUrl: "https://www.ebi.ac.uk/ols4/api/";
|
|
@@ -357,6 +394,9 @@ export declare const OLSGermanArgs: {
|
|
|
357
394
|
readonly keepExpansionStates: false;
|
|
358
395
|
readonly showSiblingsOnInit: false;
|
|
359
396
|
readonly hierarchyWrap: false;
|
|
397
|
+
readonly targetIri: "";
|
|
398
|
+
readonly showHeader: true;
|
|
399
|
+
readonly showComparisonTitleInHeader: true;
|
|
360
400
|
};
|
|
361
401
|
export declare const SkosmosAgrovocGermanArgs: {
|
|
362
402
|
readonly apiUrl: "https://agrovoc.fao.org/browse/rest/v1/";
|
|
@@ -374,6 +414,49 @@ export declare const SkosmosAgrovocGermanArgs: {
|
|
|
374
414
|
readonly keepExpansionStates: false;
|
|
375
415
|
readonly useLegacy: false;
|
|
376
416
|
readonly hierarchyWrap: false;
|
|
417
|
+
readonly targetIri: "";
|
|
418
|
+
readonly showHeader: true;
|
|
419
|
+
readonly showComparisonTitleInHeader: true;
|
|
420
|
+
};
|
|
421
|
+
export declare const CompareHierarchiesArgs: {
|
|
422
|
+
apiUrl: string;
|
|
423
|
+
backendType: string;
|
|
424
|
+
iri: string;
|
|
425
|
+
targetIri: string;
|
|
426
|
+
entityType: EntityTypeName;
|
|
427
|
+
ontologyId: string;
|
|
428
|
+
apiKey: "";
|
|
429
|
+
onNavigateToEntity: "Console message";
|
|
430
|
+
onNavigateToOntology: "Console message";
|
|
431
|
+
includeObsoleteEntities: false;
|
|
432
|
+
preferredRoots: false;
|
|
433
|
+
keepExpansionStates: false;
|
|
434
|
+
showSiblingsOnInit: false;
|
|
435
|
+
useLegacy: false;
|
|
436
|
+
hierarchyWrap: false;
|
|
437
|
+
parameter: "";
|
|
438
|
+
showHeader: true;
|
|
439
|
+
showComparisonTitleInHeader: true;
|
|
440
|
+
};
|
|
441
|
+
export declare const CompareHierarchiesSubEntityArgs: {
|
|
442
|
+
apiUrl: string;
|
|
443
|
+
backendType: string;
|
|
444
|
+
iri: string;
|
|
445
|
+
targetIri: string;
|
|
446
|
+
entityType: EntityTypeName;
|
|
447
|
+
ontologyId: string;
|
|
448
|
+
apiKey: "";
|
|
449
|
+
onNavigateToEntity: "Console message";
|
|
450
|
+
onNavigateToOntology: "Console message";
|
|
451
|
+
includeObsoleteEntities: false;
|
|
452
|
+
preferredRoots: false;
|
|
453
|
+
keepExpansionStates: false;
|
|
454
|
+
showSiblingsOnInit: false;
|
|
455
|
+
useLegacy: false;
|
|
456
|
+
hierarchyWrap: false;
|
|
457
|
+
parameter: "";
|
|
458
|
+
showHeader: true;
|
|
459
|
+
showComparisonTitleInHeader: true;
|
|
377
460
|
};
|
|
378
461
|
export declare const commonHierarchyWidgetPlay: ({ canvasElement, }: {
|
|
379
462
|
canvasElement: HTMLElement;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
export * from './BreadcrumbWidget';
|
|
1
2
|
export * from './DescriptionWidget';
|
|
3
|
+
export * from './EntityDefinedByWidget';
|
|
4
|
+
export * from './EntityOntoListWidget';
|
|
2
5
|
export * from './IriWidget';
|
|
3
|
-
export
|
|
6
|
+
export { MetadataWidget } from './MetadataWidget';
|
|
4
7
|
export * from './TabWidget';
|
|
5
8
|
export { TitleWidget } from './TitleWidget';
|
|
6
|
-
export { MetadataWidget } from './MetadataWidget';
|
|
7
|
-
export * from './EntityOntoListWidget';
|
|
8
|
-
export * from './EntityDefinedByWidget';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OntologyInfoWidget } from './OntologyInfoWidget';
|
|
2
|
-
import { manuallyEmbedOnNavigate } from '../../../app/util';
|
|
3
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { manuallyEmbedOnNavigate } from '../../../app/util';
|
|
3
|
+
import { OntologyInfoWidget } from './OntologyInfoWidget';
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
6
|
component: typeof OntologyInfoWidget;
|