@telicent-oss/ds 0.10.4-rc3 → 0.11.0-sitest

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.
@@ -1,11 +1,13 @@
1
1
  import { default as React } from 'react';
2
2
  import { MarkerEvent, MarkerInstance } from 'react-map-gl/dist/esm/types';
3
+ import { FlattenedStyleType, FlattenedStyleTypeForFindIcon } from '@telicent-oss/ontologyservice';
3
4
 
4
5
  type Feature = GeoJSON.Feature<GeoJSON.Point, OntologyClassMarkerProperties>;
5
6
  export type OntologyClassMarkerProperties<FeatureProperties = unknown> = FeatureProperties & {
6
7
  uri: string;
7
8
  classUri: string;
8
9
  id: string;
10
+ icon: FlattenedStyleTypeForFindIcon | FlattenedStyleType;
9
11
  } & Partial<{
10
12
  selected: boolean;
11
13
  }>;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { IconStyle } from '../../contexts/OntologyStyles';
2
+ import { IconStyle } from './types';
3
3
 
4
4
  export interface OntologyInputHierarchy {
5
5
  name: string;
@@ -1,9 +1,9 @@
1
- import { IconStyle } from '../../contexts/OntologyStyles';
1
+ import { FlattenedStyleType } from '@telicent-oss/ontologyservice';
2
2
  import * as d3 from "d3";
3
3
  export interface HierarchyBase {
4
4
  name: string;
5
5
  id?: string;
6
- ontology?: Required<IconStyle>;
6
+ ontology?: FlattenedStyleType;
7
7
  yPos?: number;
8
8
  startLeft?: number;
9
9
  hOrderPosition?: number;
@@ -18,4 +18,4 @@ export declare const prepareTreeData: (chartData: d3.HierarchyNode<HierarchyBase
18
18
  [key: string]: number;
19
19
  }, depthTab: number, rowHeight: number, descendantCount: boolean) => d3.HierarchyNode<HierarchyBase>[];
20
20
  export declare const addHierarchy: (data: HierarchyBase, startingDepth: number, baseKey: string, filterIds: string[], expandAll: boolean, expandElement: boolean) => d3.HierarchyNode<HierarchyBase>;
21
- export declare const checkOntology: (iconType: string, findIcon: (classUri: string) => IconStyle) => Required<IconStyle>;
21
+ export declare const checkOntology: (iconType: string, findIcon: (classUri: string) => FlattenedStyleType) => FlattenedStyleType;
@@ -0,0 +1,3 @@
1
+ import { FlattenedStyleType, FlattenedStyleTypeForFindIcon } from '@telicent-oss/ontologyservice';
2
+
3
+ export type IconStyle = FlattenedStyleType | FlattenedStyleTypeForFindIcon;
@@ -1,7 +1,10 @@
1
1
  import { default as React } from 'react';
2
2
  import { TeliTypeIconSizeProp } from './type-icon-utils';
3
+ import { FlattenedStyleType, FlattenedStyleTypeForFindIcon } from '@telicent-oss/ontologyservice';
3
4
 
4
- export type TeliTypeIconProps = Partial<{
5
+ export type TeliTypeIconProps = {
6
+ icon: FlattenedStyleTypeForFindIcon | FlattenedStyleType;
7
+ } & Partial<{
5
8
  /**
6
9
  * Can be used to override the border color defined in the ontology
7
10
  */
@@ -14,10 +17,6 @@ export type TeliTypeIconProps = Partial<{
14
17
  * Used to control the size of the component
15
18
  */
16
19
  size: TeliTypeIconSizeProp;
17
- /**
18
- * Ontology type (class) uri or short uri
19
- */
20
- type: string;
21
20
  }>;
22
21
  /**
23
22
  * This component can be used to display type/class iconography defined in the
@@ -15,7 +15,7 @@ export { default as TeliSwitch } from './TeliSwitch/TeliSwitch';
15
15
  export { default as TeliTextField } from './TeliTextField/TeliTextField';
16
16
  export { default as TeliInput } from './TeliTextField/TeliInput';
17
17
  export { default as TeliToolbar } from './TeliToolbar/TeliToolbar';
18
- export { default as TeliTypeIcon } from './TeliTypeIcon/TeliTypeIcon';
18
+ export { default as TeliTypeIcon, type TeliTypeIconProps } from './TeliTypeIcon/TeliTypeIcon';
19
19
  export { default as TeliTypeahead } from './TeliTypeahead/TeliTypeahead';
20
20
  export { default as TeliUserProfile } from './TeliUserProfile/TeliUserProfile';
21
21
  export { default as OntologyHierarchy } from './OntologyHierarchy/OntologyHierarchy';
@@ -2,8 +2,6 @@
2
2
  export { default as TeliStandardLayout } from './layouts/TeliStandardLayout/TeliStandardLayout';
3
3
  export { default as TeliBasicLayout } from './layouts/TeliBasicLayout/TeliBasicLayout';
4
4
  export { default as DSProviders } from './providers/LayoutProviders/DSProviders';
5
- export { useOntologyStyles } from './contexts/OntologyStyles';
6
- export type { IconStyle } from './contexts/OntologyStyles';
7
5
  export * from './components';
8
6
  export { default as useDebounce } from './hooks/useDebounce';
9
7
  export { default as useExtendedTheme } from './hooks/useExtendedTheme';
@@ -1,2 +1,2 @@
1
- declare const useTypeaheadQuery: (url: string, queryParamKey: string, query: string, onTransform?: <Data>(data: Data) => any) => import('@tanstack/react-query').DefinedUseQueryResult<unknown, Error>;
1
+ declare const useTypeaheadQuery: (url: string, queryParamKey: string, query: string, onTransform?: <Data>(data: Data) => any) => import('@tanstack/react-query').UseQueryResult<any, Error>;
2
2
  export default useTypeaheadQuery;
@@ -3,8 +3,13 @@ import { ListProps as MUIListProps } from '@mui/material/List';
3
3
  import { ListItemProps as MUIListItemProps } from '@mui/material/ListItem';
4
4
  import { ListItemButtonProps as MUIListItemButtonProps } from '@mui/material/ListItemButton';
5
5
  import { ListItemIconProps as MUIListItemIconProps } from '@mui/material/ListItemIcon';
6
+ import { ListItemTextProps as MUIListItemTextProps } from '@mui/material/ListItemText';
6
7
 
7
8
  export declare const List: React.FC<MUIListProps>;
8
9
  export declare const ListItem: React.FC<MUIListItemProps>;
9
10
  export declare const ListItemButton: React.FC<MUIListItemButtonProps>;
10
11
  export declare const ListItemIcon: React.FC<MUIListItemIconProps>;
12
+ interface ListItemTextProps extends Omit<MUIListItemTextProps, "primaryTypographyProps" | "secondaryTypographyProps" | "sx"> {
13
+ }
14
+ export declare const ListItemText: React.FC<ListItemTextProps>;
15
+ export {};