@telicent-oss/ds 0.0.1 → 0.0.2-rc2
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 +25 -119
- package/dist/ds.js +8789 -8768
- package/dist/ds.umd.cjs +92 -92
- package/dist/src/components/OntologyClassMarker/OntologyClassMarker.stories.d.ts +1 -1
- package/dist/src/components/OntologyHierarchy/OntologyHierarchy.d.ts +2 -0
- package/dist/src/components/OntologyHierarchy/OntologyHierarchy.stories.d.ts +3 -1
- package/dist/src/components/OntologyHierarchy/OntologyHierarchyFunctions.d.ts +5 -4
- package/dist/src/components/SearchAutocomplete/SearchAutocomplete.stories.d.ts +1 -1
- package/dist/src/components/SearchAutocompleteDialog/SearchAutocompleteDialog.stories.d.ts +1 -1
- package/dist/src/components/TeliSelect/TeliSelect.stories.d.ts +1 -1
- package/dist/src/components/TeliToolbar/TeliToolbar.stories.d.ts +1 -1
- package/dist/src/components/TeliTypeIcon/TeliTypeIcon.stories.d.ts +1 -1
- package/dist/src/components/TeliTypeahead/TeliTypeahead.stories.d.ts +1 -1
- package/dist/src/hooks/useTypeahead.d.ts +1 -1
- package/package.json +4 -1
|
@@ -7,7 +7,7 @@ declare const meta: {
|
|
|
7
7
|
features: import("geojson").Feature<import("geojson").Point, OntologyClassMarkerProperties<unknown>>[];
|
|
8
8
|
onClick: (event: import("react-map-gl/dist/esm/types").MarkerEvent<import("react-map-gl/maplibre").MarkerInstance, MouseEvent>, feature: import("geojson").Feature<import("geojson").Point, OntologyClassMarkerProperties<unknown>>) => void;
|
|
9
9
|
}>>;
|
|
10
|
-
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react
|
|
10
|
+
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
11
11
|
features?: import("geojson").Feature<import("geojson").Point, OntologyClassMarkerProperties<unknown>>[] | undefined;
|
|
12
12
|
onClick?: ((event: import("react-map-gl/dist/esm/types").MarkerEvent<import("react-map-gl/maplibre").MarkerInstance, MouseEvent>, feature: import("geojson").Feature<import("geojson").Point, OntologyClassMarkerProperties<unknown>>) => void) | undefined;
|
|
13
13
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
@@ -10,6 +10,7 @@ export interface OntologyHierarchyProps {
|
|
|
10
10
|
instanceId: string;
|
|
11
11
|
data: OntologyInputHierarchy;
|
|
12
12
|
expandElement?: boolean;
|
|
13
|
+
collapseUri?: string;
|
|
13
14
|
isDraggable?: boolean;
|
|
14
15
|
isClickable?: boolean;
|
|
15
16
|
dragEvent?: (event: React.DragEvent<HTMLElement>, nodeType: string) => void;
|
|
@@ -17,6 +18,7 @@ export interface OntologyHierarchyProps {
|
|
|
17
18
|
filterIds?: string[];
|
|
18
19
|
baseKey?: string;
|
|
19
20
|
descendantCount?: boolean;
|
|
21
|
+
expandAll?: boolean;
|
|
20
22
|
}
|
|
21
23
|
declare const OntologyHierarchy: React.FC<OntologyHierarchyProps>;
|
|
22
24
|
export default OntologyHierarchy;
|
|
@@ -2,10 +2,11 @@ import React from "react";
|
|
|
2
2
|
import { StoryObj } from "@storybook/react";
|
|
3
3
|
declare const meta: {
|
|
4
4
|
component: React.FC<import("./OntologyHierarchy").OntologyHierarchyProps>;
|
|
5
|
-
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react
|
|
5
|
+
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
6
6
|
instanceId: string;
|
|
7
7
|
data: import("./OntologyHierarchy").OntologyInputHierarchy;
|
|
8
8
|
expandElement?: boolean | undefined;
|
|
9
|
+
collapseUri?: string | undefined;
|
|
9
10
|
isDraggable?: boolean | undefined;
|
|
10
11
|
isClickable?: boolean | undefined;
|
|
11
12
|
dragEvent?: ((event: React.DragEvent<HTMLElement>, nodeType: string) => void) | undefined;
|
|
@@ -13,6 +14,7 @@ declare const meta: {
|
|
|
13
14
|
filterIds?: string[] | undefined;
|
|
14
15
|
baseKey?: string | undefined;
|
|
15
16
|
descendantCount?: boolean | undefined;
|
|
17
|
+
expandAll?: boolean | undefined;
|
|
16
18
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
17
19
|
};
|
|
18
20
|
export default meta;
|
|
@@ -8,13 +8,14 @@ export interface HierarchyBase {
|
|
|
8
8
|
startLeft?: number;
|
|
9
9
|
hOrderPosition?: number;
|
|
10
10
|
descendantCount?: number;
|
|
11
|
+
expandLabel?: string;
|
|
12
|
+
labelWidth?: number;
|
|
13
|
+
highlight?: boolean;
|
|
11
14
|
_children?: d3.HierarchyNode<HierarchyBase>[];
|
|
12
15
|
children?: d3.HierarchyNode<HierarchyBase>[] | HierarchyBase[];
|
|
13
16
|
}
|
|
14
|
-
export declare const resetDragData: (svg: d3.Selection<null, unknown, null, undefined> | undefined, d: d3.HierarchyNode<HierarchyBase>, rowHeight: number, instanceId: string, clickEvent?: ((nodeId: string) => void) | undefined) => string;
|
|
15
|
-
export declare const setDragElementStyles: (instanceId: string) => void;
|
|
16
17
|
export declare const prepareTreeData: (chartData: d3.HierarchyNode<HierarchyBase>, margin: {
|
|
17
18
|
[key: string]: number;
|
|
18
|
-
}, depthTab: number, rowHeight: number) => d3.HierarchyNode<HierarchyBase>[];
|
|
19
|
-
export declare const addHierarchy: (data: HierarchyBase, startingDepth: number, baseKey: string, filterIds: string[]) => d3.HierarchyNode<HierarchyBase>;
|
|
19
|
+
}, depthTab: number, rowHeight: number, descendantCount: boolean) => d3.HierarchyNode<HierarchyBase>[];
|
|
20
|
+
export declare const addHierarchy: (data: HierarchyBase, startingDepth: number, baseKey: string, filterIds: string[], expandAll: boolean) => d3.HierarchyNode<HierarchyBase>;
|
|
20
21
|
export declare const checkOntology: (iconType: string, findIcon: (classUri: string) => IconStyle) => Required<IconStyle>;
|
|
@@ -9,7 +9,7 @@ declare const meta: {
|
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react
|
|
12
|
+
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
13
13
|
options: readonly unknown[];
|
|
14
14
|
autoHighlight?: boolean | undefined;
|
|
15
15
|
autoFocus?: boolean | undefined;
|
|
@@ -16,7 +16,7 @@ declare const meta: {
|
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
-
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react
|
|
19
|
+
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
20
20
|
autoFocus?: boolean | undefined;
|
|
21
21
|
id?: string | undefined;
|
|
22
22
|
onChange?: ((event: import("react").SyntheticEvent<Element, Event>, value: string | {
|
|
@@ -10,7 +10,7 @@ declare const meta: {
|
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react
|
|
13
|
+
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
14
14
|
defaultOpen?: boolean | undefined;
|
|
15
15
|
defaultValue?: any;
|
|
16
16
|
disabled?: boolean | undefined;
|
|
@@ -11,7 +11,7 @@ declare const meta: {
|
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react
|
|
14
|
+
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
15
15
|
defaultControls?: boolean | undefined;
|
|
16
16
|
vertical?: boolean | undefined;
|
|
17
17
|
position?: "top-start" | "top-end" | "bottom-start" | "bottom-end" | undefined;
|
|
@@ -14,7 +14,7 @@ declare const meta: {
|
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react
|
|
17
|
+
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
18
18
|
borderColor?: string | undefined;
|
|
19
19
|
disabled?: boolean | undefined;
|
|
20
20
|
size?: import("./type-icon-utils").TeliTypeIconSizeProp | undefined;
|
|
@@ -12,7 +12,7 @@ declare const meta: {
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react
|
|
15
|
+
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react").ReactRenderer, {
|
|
16
16
|
errorMessage?: string | undefined;
|
|
17
17
|
queryParamKey: string;
|
|
18
18
|
url: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const useTypeaheadQuery: (url: string, queryParamKey: string, query: string, onTransform?: (<Data>(data: Data) => any) | undefined) => import("@tanstack/react-query
|
|
1
|
+
declare const useTypeaheadQuery: (url: string, queryParamKey: string, query: string, onTransform?: (<Data>(data: Data) => any) | undefined) => import("@tanstack/react-query").UseQueryResult<unknown, Error>;
|
|
2
2
|
export default useTypeaheadQuery;
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"url": "https://github.com/telicent-oss/telicent-ds.git"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
|
-
"version": "0.0.
|
|
10
|
+
"version": "0.0.2-rc2",
|
|
11
11
|
"private": false,
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@emotion/react": "^11.10.6",
|
|
@@ -29,6 +29,9 @@
|
|
|
29
29
|
"typescript": "*",
|
|
30
30
|
"zod": "^3.21.4"
|
|
31
31
|
},
|
|
32
|
+
"resolutions": {
|
|
33
|
+
"jackspeak": "2.1.1"
|
|
34
|
+
},
|
|
32
35
|
"scripts": {
|
|
33
36
|
"lint": "eslint --resolve-plugins-relative-to src",
|
|
34
37
|
"clean": "rimraf dist storybook-static",
|