@ts4nfdi/terminology-service-suite 6.16.0 → 7.0.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/README.md +1 -1
- package/dist/api/ols/OlsSearchApi.d.ts +1 -2
- package/dist/app/globals.d.ts +0 -1
- package/dist/app/types.d.ts +11 -9
- package/dist/app/widgetDescriptions.d.ts +1 -0
- package/dist/components/widgets/AutocompleteWidget/AutocompleteWidget.stories.d.ts +0 -5
- package/dist/components/widgets/AutocompleteWidget/AutocompleteWidgetStories.d.ts +0 -6
- package/dist/components/widgets/EntityInfoWidget/EntityInfoWidget.stories.d.ts +1 -1
- package/dist/components/widgets/EntityInfoWidget/EntityInfoWidgetStories.d.ts +1 -1
- package/dist/components/widgets/MappingListWidget/MappingListWidget.d.ts +5 -0
- package/dist/components/widgets/{MappingListDetailWidget/MappingListDetailWidgetStories.d.ts → MappingListWidget/MappingListWidgetStories.d.ts} +7 -7
- package/dist/components/widgets/MappingListWidget/index.d.ts +1 -0
- package/dist/components/widgets/MetadataWidget/MathFormulaWidget/MathFormulaWidget.d.ts +1 -1
- package/dist/components/widgets/MetadataWidget/MathFormulaWidget/MathFormulaWidget.stories.d.ts +9 -23
- package/dist/components/widgets/MetadataWidget/MathFormulaWidget/MathFormulaWidgetStories.d.ts +15 -24
- package/dist/components/widgets/index.d.ts +1 -1
- package/dist/esm/index.es.js +2653 -2568
- package/dist/esm/index.es.js.map +1 -1
- package/dist/server/index.es.js +2 -1
- package/dist/server/index.es.js.map +1 -1
- package/dist/stories/storyArgs.d.ts +30 -2
- package/dist/utils/olsApiUtils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/components/widgets/MappingListDetailWidget/MappingListDetailWidget.d.ts +0 -5
- package/dist/components/widgets/MappingListDetailWidget/index.d.ts +0 -1
- package/dist/model/ts4nfdi-model/Ts4nfdiSearchResult.d.ts +0 -16
- /package/dist/components/widgets/{MappingListDetailWidget/MappingListDetailWidget.stories.d.ts → MappingListWidget/MappingListWidget.stories.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ npm install @ts4nfdi/terminology-service-suite
|
|
|
19
19
|
2. Install peer dependencies
|
|
20
20
|
|
|
21
21
|
```
|
|
22
|
-
npm install @elastic/eui@
|
|
22
|
+
npm install @elastic/eui@115.0.0 @emotion/react@11.13.5 react@18.3.0 react-dom@18.3.0 react-query@3.39.2 axios@1.1.2 moment@2.30.1 @elastic/datemath@5.0.3 @emotion/css@11.13.5 @elastic/eui-theme-borealis@7.0.0
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
3. In the 'Docs' tab of the widgets in the React Storybook, a code snippet is provided in the `Show code` drop-down below the sample widget. Copy the snippet, add into your app and replace with your parameters. See example below:
|
|
@@ -4,7 +4,6 @@ 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>;
|
|
7
|
-
searchTs4nfdiGateway: (queryParams: SelectQueryParams, paginationParams?: PaginationParams, contentParams?: ContentParams, parameter?: string, ts4nfdiGateway?: boolean) => Promise<any>;
|
|
8
7
|
/**
|
|
9
8
|
* Fetch select data.
|
|
10
9
|
* @param queryParams
|
|
@@ -12,7 +11,7 @@ export declare class OlsSearchApi extends OlsBaseApi {
|
|
|
12
11
|
* @param contentParams
|
|
13
12
|
* @param parameter
|
|
14
13
|
*/
|
|
15
|
-
getSelectData(queryParams: SelectQueryParams, paginationParams?: PaginationParams, contentParams?: ContentParams, parameter?: string
|
|
14
|
+
getSelectData(queryParams: SelectQueryParams, paginationParams?: PaginationParams, contentParams?: ContentParams, parameter?: string): Promise<Select>;
|
|
16
15
|
suggest: (queryParams: SuggestQueryParams, paginationParams?: PaginationParams, contentParams?: ContentParams, parameter?: string) => Promise<any>;
|
|
17
16
|
}
|
|
18
17
|
export declare function splitAndApplyParams(url: URL, raw: string): void;
|
package/dist/app/globals.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export declare const TIB_API_ENDPOINT = "https://api.terminology.tib.eu/api/";
|
|
2
|
-
export declare const GATEWAY_API_ENDPOINT = "https://terminology.services.base4nfdi.de/api-gateway/";
|
|
3
2
|
export declare const GATEWAY_API_OLS_ENDPOINT = "https://terminology.services.base4nfdi.de/api-gateway/ols4/api/";
|
|
4
3
|
export declare const ZBMED_OLS4_API = "https://semanticlookup.zbmed.de/ols/api/";
|
|
5
4
|
export declare const ZBMED_OLS3_API = "https://ols3-semanticlookup.zbmed.de/ols/api/";
|
package/dist/app/types.d.ts
CHANGED
|
@@ -197,11 +197,7 @@ export type AutocompleteWidgetProps = EuiComboBoxProps<string> & ParameterObj &
|
|
|
197
197
|
*/
|
|
198
198
|
singleSuggestionRow?: boolean;
|
|
199
199
|
/**
|
|
200
|
-
*
|
|
201
|
-
*/
|
|
202
|
-
ts4nfdiGateway?: boolean;
|
|
203
|
-
/**
|
|
204
|
-
* Whether to show the api source in the result list or not. Default is true. Only when the API gateway is selected.
|
|
200
|
+
* Whether to show the api source in the result list or not. Default is true. Only when the API Gateway is selected.
|
|
205
201
|
*/
|
|
206
202
|
showApiSource?: boolean;
|
|
207
203
|
/**
|
|
@@ -273,11 +269,17 @@ export type DescriptionPresentationProps = DescTextObj & CssClassNameObj & {
|
|
|
273
269
|
isLoading?: boolean;
|
|
274
270
|
error?: string | unknown;
|
|
275
271
|
};
|
|
276
|
-
export type MathFormulaWidgetProps =
|
|
272
|
+
export type MathFormulaWidgetProps = OptionalIriObj & ApiObj & OptionalOntologyIdObj & {
|
|
273
|
+
/**
|
|
274
|
+
* The math property URI to render for the target term.
|
|
275
|
+
* Required when mathML is not provided.
|
|
276
|
+
*/
|
|
277
|
+
mathProperty?: string;
|
|
277
278
|
/**
|
|
278
|
-
*
|
|
279
|
+
* Inline MathML string to render directly.
|
|
280
|
+
* When provided, iri, ontologyId, and mathProperty are not required.
|
|
279
281
|
*/
|
|
280
|
-
|
|
282
|
+
mathML?: string;
|
|
281
283
|
};
|
|
282
284
|
export type IriWidgetProps = ForcedIriObj & CssClassNameObj & {
|
|
283
285
|
/**
|
|
@@ -663,7 +665,7 @@ export type EntityListWidgetProps = {
|
|
|
663
665
|
entityType: EntityTypeName;
|
|
664
666
|
parameter?: string;
|
|
665
667
|
};
|
|
666
|
-
export type
|
|
668
|
+
export type MappingListWidgetProps = {
|
|
667
669
|
api: string;
|
|
668
670
|
source: string;
|
|
669
671
|
};
|
|
@@ -10,6 +10,7 @@ export declare const DescriptionDescription: string;
|
|
|
10
10
|
export declare const EntityDefinedByDescription: string;
|
|
11
11
|
export declare const EntityOntoListDescription: string;
|
|
12
12
|
export declare const IriDescription: string;
|
|
13
|
+
export declare const MathFormulaDescription: string;
|
|
13
14
|
export declare const MetadataDescription: string;
|
|
14
15
|
export declare const AlternativeNameTabDescription: string;
|
|
15
16
|
export declare const CrossRefTabDescription: string;
|
|
@@ -38,7 +38,6 @@ declare const meta: {
|
|
|
38
38
|
};
|
|
39
39
|
args: {
|
|
40
40
|
api: string;
|
|
41
|
-
ts4nfdiGateway: boolean;
|
|
42
41
|
singleSelection: boolean;
|
|
43
42
|
allowCustomTerms: boolean;
|
|
44
43
|
selectionChangedEvent: import('storybook/internal/actions').HandlerFunction;
|
|
@@ -57,10 +56,6 @@ declare const meta: {
|
|
|
57
56
|
export default meta;
|
|
58
57
|
type Story = StoryObj<typeof meta>;
|
|
59
58
|
export declare const WithDefaults: Story;
|
|
60
|
-
export declare const UseAPIGatewayWithOLS: Story;
|
|
61
|
-
export declare const UseAPIGatewayWithOntoPortal: Story;
|
|
62
|
-
export declare const UseAPIGatewayWithSkosmos: Story;
|
|
63
|
-
export declare const HideApiSourceApiGateway: Story;
|
|
64
59
|
export declare const WithDefaultsCompact: Story;
|
|
65
60
|
export declare const WithPreselectedValueOLS4v2: Story;
|
|
66
61
|
export declare const WithPreselectedValueAndUnresolvedIriOLS3: Story;
|
|
@@ -26,7 +26,6 @@ export declare const AutocompleteWidgetStoryArgTypes: {
|
|
|
26
26
|
};
|
|
27
27
|
export declare const AutocompleteWidgetStoryArgsReact: {
|
|
28
28
|
api: string;
|
|
29
|
-
ts4nfdiGateway: boolean;
|
|
30
29
|
singleSelection: boolean;
|
|
31
30
|
allowCustomTerms: boolean;
|
|
32
31
|
selectionChangedEvent: import('storybook/actions').HandlerFunction;
|
|
@@ -43,7 +42,6 @@ export declare const AutocompleteWidgetStoryArgsReact: {
|
|
|
43
42
|
};
|
|
44
43
|
export declare const AutocompleteWidgetStoryArgsHTML: {
|
|
45
44
|
api: string;
|
|
46
|
-
ts4nfdiGateway: boolean;
|
|
47
45
|
singleSelection: boolean;
|
|
48
46
|
allowCustomTerms: boolean;
|
|
49
47
|
selectionChangedEvent: () => void;
|
|
@@ -58,10 +56,6 @@ export declare const AutocompleteWidgetStoryArgsHTML: {
|
|
|
58
56
|
onNavigateToOntology: string;
|
|
59
57
|
};
|
|
60
58
|
export declare const WithDefaultsArgs: {};
|
|
61
|
-
export declare const UseAPIGatewayWithOLSArgs: AutocompleteWidgetProps;
|
|
62
|
-
export declare const UseAPIGatewayWithOntoPortalArgs: AutocompleteWidgetProps;
|
|
63
|
-
export declare const UseAPIGatewayWithSkosmosArgs: AutocompleteWidgetProps;
|
|
64
|
-
export declare const HideApiSourceApiGatewayArgs: AutocompleteWidgetProps;
|
|
65
59
|
export declare const WithDefaultsCompactArgs: AutocompleteWidgetProps;
|
|
66
60
|
export declare const WithPreselectedValueOLS4v2Args: AutocompleteWidgetProps;
|
|
67
61
|
export declare const WithPreselectedValueAndUnresolvedIriOLS3Args: AutocompleteWidgetProps;
|
|
@@ -66,4 +66,4 @@ export declare const InfoWidgetPropertyAssertion: Story;
|
|
|
66
66
|
export declare const InfoWidgetPropertyCharacteristics: Story;
|
|
67
67
|
export declare const NavigateToEBIPage: Story;
|
|
68
68
|
export declare const SkosmosImport: Story;
|
|
69
|
-
export declare const
|
|
69
|
+
export declare const MathFormularRepresentation: Story;
|
|
@@ -182,7 +182,7 @@ export declare const SkosmosImportArgs: {
|
|
|
182
182
|
onNavigateToOntology: string;
|
|
183
183
|
onNavigateToDisambiguate: string;
|
|
184
184
|
};
|
|
185
|
-
export declare const
|
|
185
|
+
export declare const MathFormularRepresentationArgs: {
|
|
186
186
|
api: string;
|
|
187
187
|
useLegacy: boolean;
|
|
188
188
|
iri: string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { MappingListWidgetProps } from '../../../app';
|
|
2
|
+
declare function MappingListWidget(props: MappingListWidgetProps): import("react").JSX.Element;
|
|
3
|
+
export declare function WrappedMappingListWidget(props: MappingListWidgetProps): import("react").JSX.Element;
|
|
4
|
+
export { MappingListWidget };
|
|
5
|
+
export default WrappedMappingListWidget;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
1
|
+
export declare const MappingListWidgetStoryArgTypes: {};
|
|
2
|
+
export declare const MappingListWidgetStoryArgs_OEO_00000150: {
|
|
3
3
|
readonly api: "https://coli-conc.gbv.de/api/";
|
|
4
4
|
readonly source: "https://openenergyplatform.org/ontology/oeo/OEO_00000150";
|
|
5
5
|
};
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const MappingListWidgetStoryArgs_Q259745: {
|
|
7
7
|
readonly api: "https://coli-conc.gbv.de/api/";
|
|
8
8
|
readonly source: "http://www.wikidata.org/entity/Q259745";
|
|
9
9
|
};
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const MappingListWidgetStoryArgs_Energy: {
|
|
11
11
|
readonly api: "https://coli-conc.gbv.de/api/";
|
|
12
12
|
readonly source: "https://schema.org/Energy";
|
|
13
13
|
};
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const MappingListWidgetStoryArgs_Rec_B_2000: {
|
|
15
15
|
readonly api: "https://coli-conc.gbv.de/api/";
|
|
16
16
|
readonly source: "http://uri.gbv.de/terminology/nsk/Rec%20B%202000";
|
|
17
17
|
};
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const MappingListWidgetStoryArgs_Ges_C_2700: {
|
|
19
19
|
readonly api: "https://coli-conc.gbv.de/api/";
|
|
20
20
|
readonly source: "http://uri.gbv.de/terminology/nsk/Ges%20C%202700";
|
|
21
21
|
};
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const MappingListWidgetStoryArgs_B14C4A: {
|
|
23
23
|
readonly api: "https://coli-conc.gbv.de/api/";
|
|
24
24
|
readonly source: "https://www.w3id.org/archlink/terms/conservationthesaurus/B14C4A";
|
|
25
25
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MappingListWidget, WrappedMappingListWidget, } from './MappingListWidget';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MathFormulaWidgetProps } from '../../../../app
|
|
1
|
+
import { MathFormulaWidgetProps } from '../../../../app';
|
|
2
2
|
declare function MathFormulaWidget(props: MathFormulaWidgetProps): import("react").JSX.Element;
|
|
3
3
|
declare function WrappedMathFormulaWidget(props: MathFormulaWidgetProps): import("react").JSX.Element;
|
|
4
4
|
export { MathFormulaWidget, WrappedMathFormulaWidget };
|
package/dist/components/widgets/MetadataWidget/MathFormulaWidget/MathFormulaWidget.stories.d.ts
CHANGED
|
@@ -5,30 +5,13 @@ declare const meta: {
|
|
|
5
5
|
component: typeof MathFormulaWidget;
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
required: boolean;
|
|
12
|
-
description: string;
|
|
13
|
-
table: {
|
|
14
|
-
type: {
|
|
15
|
-
summary: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
ontologyId: {
|
|
20
|
-
required: boolean;
|
|
21
|
-
description: string;
|
|
22
|
-
table: {
|
|
23
|
-
defaultValue: {
|
|
24
|
-
summary: string;
|
|
25
|
-
};
|
|
26
|
-
type: {
|
|
27
|
-
summary: string;
|
|
28
|
-
};
|
|
8
|
+
docs: {
|
|
9
|
+
description: {
|
|
10
|
+
component: string;
|
|
29
11
|
};
|
|
30
12
|
};
|
|
31
13
|
};
|
|
14
|
+
argTypes: import('@storybook/react-vite').ArgTypes<import('@storybook/react-vite').Args>;
|
|
32
15
|
args: {
|
|
33
16
|
readonly api: "";
|
|
34
17
|
readonly ontologyId: "";
|
|
@@ -37,5 +20,8 @@ declare const meta: {
|
|
|
37
20
|
};
|
|
38
21
|
export default meta;
|
|
39
22
|
type Story = StoryObj<typeof meta>;
|
|
40
|
-
export declare const
|
|
41
|
-
export declare const
|
|
23
|
+
export declare const MathmoddbDefiningFormula: Story;
|
|
24
|
+
export declare const MathmoddbInDefiningFormula: Story;
|
|
25
|
+
export declare const MathMLInput: Story;
|
|
26
|
+
export declare const MathMLTextInput: Story;
|
|
27
|
+
export declare const MathMLFractionInput: Story;
|
package/dist/components/widgets/MetadataWidget/MathFormulaWidget/MathFormulaWidgetStories.d.ts
CHANGED
|
@@ -1,38 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
table: {
|
|
15
|
-
defaultValue: {
|
|
16
|
-
summary: string;
|
|
17
|
-
};
|
|
18
|
-
type: {
|
|
19
|
-
summary: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
1
|
+
import { ArgTypes } from '@storybook/react';
|
|
2
|
+
export declare const SimpleMathMLExample = "<math xmlns=\"http://www.w3.org/1998/Math/MathML\"><mi>x</mi><mo>=</mo><mn>1</mn></math>";
|
|
3
|
+
export declare const TextMathMLExample = "<math xmlns=\"http://www.w3.org/1998/Math/MathML\"><mtext>formula example</mtext></math>";
|
|
4
|
+
export declare const FractionMathMLExample = "<math xmlns=\"http://www.w3.org/1998/Math/MathML\"><mfrac><mrow><mi>a</mi><mo>+</mo><mi>b</mi></mrow><mi>c</mi></mfrac></math>";
|
|
5
|
+
export declare const MathFormulaWidgetStoryArgTypes: ArgTypes;
|
|
6
|
+
export declare const MathMLInputStoryArgs: {
|
|
7
|
+
mathML: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const MathMLTextInputStoryArgs: {
|
|
10
|
+
mathML: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const MathMLFractionInputStoryArgs: {
|
|
13
|
+
mathML: string;
|
|
23
14
|
};
|
|
24
15
|
export declare const MathFormulaWidgetStoryArgs: {
|
|
25
16
|
readonly api: "";
|
|
26
17
|
readonly ontologyId: "";
|
|
27
18
|
readonly iri: "";
|
|
28
19
|
};
|
|
29
|
-
export declare const
|
|
20
|
+
export declare const MathmoddbInDefiningFormulaStoryArgs: {
|
|
30
21
|
api: string;
|
|
31
22
|
ontologyId: string;
|
|
32
23
|
iri: string;
|
|
33
24
|
mathProperty: string;
|
|
34
25
|
};
|
|
35
|
-
export declare const
|
|
26
|
+
export declare const MathmoddbDefiningFormulaStoryArgs: {
|
|
36
27
|
api: string;
|
|
37
28
|
ontologyId: string;
|
|
38
29
|
iri: string;
|
|
@@ -5,7 +5,7 @@ export * from './EntityListWidget';
|
|
|
5
5
|
export * from './EntityRelationsWidget';
|
|
6
6
|
export * from './GraphViewWidget';
|
|
7
7
|
export * from './JsonApiWidget';
|
|
8
|
-
export * from './
|
|
8
|
+
export * from './MappingListWidget';
|
|
9
9
|
export * from './MetadataWidget';
|
|
10
10
|
export * from './OntologyInfoWidget';
|
|
11
11
|
export * from './ResourcesWidget';
|