@reltio/components 1.4.2230 → 1.4.2231

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.
@@ -5,6 +5,7 @@ type NodeTitleProps = {
5
5
  isSelected?: boolean;
6
6
  anchorEl?: HTMLElement;
7
7
  withEntityDetails?: boolean;
8
+ classNames?: string;
8
9
  };
9
- export declare const HierarchyNodeTitle: ({ title, isSelected, entityUri, anchorEl, withEntityDetails }: NodeTitleProps) => React.JSX.Element;
10
+ export declare const HierarchyNodeTitle: ({ title, isSelected, entityUri, anchorEl, withEntityDetails, classNames }: NodeTitleProps) => React.JSX.Element;
10
11
  export {};
@@ -9,7 +9,7 @@ import { useEntityDetails } from './useEntityDetails';
9
9
  import { useStyles } from './styles';
10
10
  export var HierarchyNodeTitle = function (_a) {
11
11
  var _b;
12
- var title = _a.title, isSelected = _a.isSelected, entityUri = _a.entityUri, anchorEl = _a.anchorEl, _c = _a.withEntityDetails, withEntityDetails = _c === void 0 ? true : _c;
12
+ var title = _a.title, isSelected = _a.isSelected, entityUri = _a.entityUri, anchorEl = _a.anchorEl, _c = _a.withEntityDetails, withEntityDetails = _c === void 0 ? true : _c, classNames = _a.classNames;
13
13
  var styles = useStyles();
14
14
  var generateEntityUrl = useContext(UrlGeneratorsContext).generateEntityUrl;
15
15
  var openEntity = useMdmAction('openEntity');
@@ -21,7 +21,7 @@ export var HierarchyNodeTitle = function (_a) {
21
21
  openEntity({ uri: entityUri });
22
22
  }, [openEntity, entityUri]);
23
23
  return (React.createElement(React.Fragment, null,
24
- React.createElement("span", { "data-reltio-id": "reltio-hierarchy-node-title", className: classnames(styles.link, (_b = {}, _b[styles.selected] = isSelected, _b)), onMouseEnter: withEntityDetails ? showEntityDetails : undefined, onMouseLeave: withEntityDetails ? hideEntityDetails : undefined },
24
+ React.createElement("span", { "data-reltio-id": "reltio-hierarchy-node-title", className: classnames(styles.link, (_b = {}, _b[styles.selected] = isSelected, _b), classNames), onMouseEnter: withEntityDetails ? showEntityDetails : undefined, onMouseLeave: withEntityDetails ? hideEntityDetails : undefined },
25
25
  React.createElement(Link, { to: link, onClick: handleClick }, title)),
26
26
  React.createElement(Popper, { anchorEl: anchorEl, className: styles.popper, open: showPopper, modal: false, placement: "top-start" },
27
27
  React.createElement(ProfileCard, { entity: entityDetails, variant: isLoading ? 'loading' : 'normal' }))));
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"link" | "label" | "image" | "info" | "secondaryLabel" | "thirdRow" | "entityId" | "entityIdLabel" | "entityIdValue">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"link" | "label" | "image" | "info" | "secondaryLabel" | "entityId" | "thirdRow" | "entityIdLabel" | "entityIdValue">;
@@ -5,6 +5,7 @@ type NodeTitleProps = {
5
5
  isSelected?: boolean;
6
6
  anchorEl?: HTMLElement;
7
7
  withEntityDetails?: boolean;
8
+ classNames?: string;
8
9
  };
9
- export declare const HierarchyNodeTitle: ({ title, isSelected, entityUri, anchorEl, withEntityDetails }: NodeTitleProps) => React.JSX.Element;
10
+ export declare const HierarchyNodeTitle: ({ title, isSelected, entityUri, anchorEl, withEntityDetails, classNames }: NodeTitleProps) => React.JSX.Element;
10
11
  export {};
@@ -38,7 +38,7 @@ var useEntityDetails_1 = require("./useEntityDetails");
38
38
  var styles_1 = require("./styles");
39
39
  var HierarchyNodeTitle = function (_a) {
40
40
  var _b;
41
- var title = _a.title, isSelected = _a.isSelected, entityUri = _a.entityUri, anchorEl = _a.anchorEl, _c = _a.withEntityDetails, withEntityDetails = _c === void 0 ? true : _c;
41
+ var title = _a.title, isSelected = _a.isSelected, entityUri = _a.entityUri, anchorEl = _a.anchorEl, _c = _a.withEntityDetails, withEntityDetails = _c === void 0 ? true : _c, classNames = _a.classNames;
42
42
  var styles = (0, styles_1.useStyles)();
43
43
  var generateEntityUrl = (0, react_1.useContext)(UrlGeneratorsContext_1.UrlGeneratorsContext).generateEntityUrl;
44
44
  var openEntity = (0, MdmModuleContext_1.useMdmAction)('openEntity');
@@ -50,7 +50,7 @@ var HierarchyNodeTitle = function (_a) {
50
50
  openEntity({ uri: entityUri });
51
51
  }, [openEntity, entityUri]);
52
52
  return (react_1.default.createElement(react_1.default.Fragment, null,
53
- react_1.default.createElement("span", { "data-reltio-id": "reltio-hierarchy-node-title", className: (0, classnames_1.default)(styles.link, (_b = {}, _b[styles.selected] = isSelected, _b)), onMouseEnter: withEntityDetails ? showEntityDetails : undefined, onMouseLeave: withEntityDetails ? hideEntityDetails : undefined },
53
+ react_1.default.createElement("span", { "data-reltio-id": "reltio-hierarchy-node-title", className: (0, classnames_1.default)(styles.link, (_b = {}, _b[styles.selected] = isSelected, _b), classNames), onMouseEnter: withEntityDetails ? showEntityDetails : undefined, onMouseLeave: withEntityDetails ? hideEntityDetails : undefined },
54
54
  react_1.default.createElement(Link_1.Link, { to: link, onClick: handleClick }, title)),
55
55
  react_1.default.createElement(Popper_1.Popper, { anchorEl: anchorEl, className: styles.popper, open: showPopper, modal: false, placement: "top-start" },
56
56
  react_1.default.createElement(ProfileCard_1.ProfileCard, { entity: entityDetails, variant: isLoading ? 'loading' : 'normal' }))));
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"link" | "label" | "image" | "info" | "secondaryLabel" | "thirdRow" | "entityId" | "entityIdLabel" | "entityIdValue">;
1
+ export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"link" | "label" | "image" | "info" | "secondaryLabel" | "entityId" | "thirdRow" | "entityIdLabel" | "entityIdValue">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reltio/components",
3
- "version": "1.4.2230",
3
+ "version": "1.4.2231",
4
4
  "license": "SEE LICENSE IN LICENSE FILE",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./index.js",
@@ -11,7 +11,7 @@
11
11
  "@fluentui/react-context-selector": "^9.1.26",
12
12
  "@googlemaps/markerclusterer": "^2.5.3",
13
13
  "@react-sigma/core": "3.4.0",
14
- "@reltio/mdm-sdk": "^1.4.2022",
14
+ "@reltio/mdm-sdk": "^1.4.2023",
15
15
  "@vis.gl/react-google-maps": "^1.3.0",
16
16
  "d3-cloud": "^1.2.5",
17
17
  "d3-geo": "^2.0.1",