@ts4nfdi/terminology-service-suite 7.1.1 → 7.2.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/app/types.d.ts +8 -1
- package/dist/components/widgets/SearchResultsListWidget/SearchResultsListWidget.stories.d.ts +4 -0
- package/dist/components/widgets/SearchResultsListWidget/SearchResultsListWidgetStories.d.ts +22 -0
- package/dist/esm/index.es.js +3334 -3232
- package/dist/esm/index.es.js.map +1 -1
- package/dist/stories/storyArgs.d.ts +1 -0
- package/package.json +7 -3
package/dist/app/types.d.ts
CHANGED
|
@@ -415,6 +415,12 @@ export type OnNavigateToOntology = {
|
|
|
415
415
|
*/
|
|
416
416
|
onNavigateToOntology?: ((ontologyId: string, entityType?: string, entity?: EntityData) => void) | string;
|
|
417
417
|
};
|
|
418
|
+
export type OnNavigateToSearchResult = {
|
|
419
|
+
/**
|
|
420
|
+
* This function is called when a search result title is clicked.
|
|
421
|
+
*/
|
|
422
|
+
OnNavigateToSearchResult?: ((result: SearchResultProps) => void) | string;
|
|
423
|
+
};
|
|
418
424
|
export type OnNavigateToDisambiguate = {
|
|
419
425
|
/**
|
|
420
426
|
* This function is called every time a disambiguation badge is clicked
|
|
@@ -563,7 +569,7 @@ export type SearchBarWidgetProps = ApiObj & ParameterObj & {
|
|
|
563
569
|
type?: string;
|
|
564
570
|
}[]) => void;
|
|
565
571
|
};
|
|
566
|
-
export type SearchResultsListWidgetProps = Partial<Omit<EuiCardProps, "layout">> & ApiObj & TargetLinkObj & ParameterObj & UseLegacyObj & OnNavigateToOntology & CssClassNameObj & {
|
|
572
|
+
export type SearchResultsListWidgetProps = Partial<Omit<EuiCardProps, "layout">> & ApiObj & TargetLinkObj & ParameterObj & UseLegacyObj & OnNavigateToOntology & OnNavigateToSearchResult & CssClassNameObj & {
|
|
567
573
|
/**
|
|
568
574
|
* The terms to search. By default, the search is performed over term labels, synonyms, descriptions, identifiers and annotation properties.
|
|
569
575
|
*/
|
|
@@ -596,6 +602,7 @@ export type SearchResultProps = {
|
|
|
596
602
|
type: ThingTypeName;
|
|
597
603
|
};
|
|
598
604
|
export type MetadataCompactProps = Partial<Omit<EuiCardProps, "layout">> & ApiObj & TargetLinkObj & ParameterObj & CssClassNameObj & OptionalEntityTypeObj & OnNavigateToOntology & {
|
|
605
|
+
OnNavigateToSearchResult?: ((result: SearchResultProps) => void) | string;
|
|
599
606
|
result: SearchResultProps;
|
|
600
607
|
iri: string;
|
|
601
608
|
ontologyId: string;
|
package/dist/components/widgets/SearchResultsListWidget/SearchResultsListWidget.stories.d.ts
CHANGED
|
@@ -23,11 +23,15 @@ declare const meta: {
|
|
|
23
23
|
targetLink: string;
|
|
24
24
|
parameter: string;
|
|
25
25
|
onNavigateToOntology: string;
|
|
26
|
+
OnNavigateToSearchResult: string;
|
|
26
27
|
};
|
|
27
28
|
};
|
|
28
29
|
export default meta;
|
|
29
30
|
type Story = StoryObj<typeof meta>;
|
|
30
31
|
export declare const Default: Story;
|
|
32
|
+
export declare const ApiGateway: Story;
|
|
33
|
+
export declare const ApiGatewayWithCollection: Story;
|
|
34
|
+
export declare const NavigateToSearchResult: Story;
|
|
31
35
|
export declare const NFDI4Health: Story;
|
|
32
36
|
export declare const TibNFDI4CHEM: Story;
|
|
33
37
|
export declare const TibDataPlant: Story;
|
|
@@ -11,6 +11,7 @@ export declare const SearchResultsListWidgetStoryArgs: {
|
|
|
11
11
|
targetLink: string;
|
|
12
12
|
parameter: string;
|
|
13
13
|
onNavigateToOntology: string;
|
|
14
|
+
OnNavigateToSearchResult: string;
|
|
14
15
|
};
|
|
15
16
|
export declare const DefaultArgs: {
|
|
16
17
|
api: string;
|
|
@@ -19,6 +20,27 @@ export declare const DefaultArgs: {
|
|
|
19
20
|
parameter: string;
|
|
20
21
|
useLegacy: boolean;
|
|
21
22
|
};
|
|
23
|
+
export declare const ApiGatewayArgs: {
|
|
24
|
+
api: string;
|
|
25
|
+
query: string;
|
|
26
|
+
targetLink: string;
|
|
27
|
+
useLegacy: boolean;
|
|
28
|
+
};
|
|
29
|
+
export declare const ApiGatewayWithCollectionArgs: {
|
|
30
|
+
api: string;
|
|
31
|
+
query: string;
|
|
32
|
+
targetLink: string;
|
|
33
|
+
parameter: string;
|
|
34
|
+
useLegacy: boolean;
|
|
35
|
+
};
|
|
36
|
+
export declare const NavigateToSearchResultArgs: {
|
|
37
|
+
OnNavigateToSearchResult: string;
|
|
38
|
+
api: string;
|
|
39
|
+
query: string;
|
|
40
|
+
targetLink: string;
|
|
41
|
+
parameter: string;
|
|
42
|
+
useLegacy: boolean;
|
|
43
|
+
};
|
|
22
44
|
export declare const NFDI4HealthArgs: {
|
|
23
45
|
api: string;
|
|
24
46
|
query: string;
|