@capillarytech/blaze-ui 6.5.0 → 6.6.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/CapAdvancedIcon/types.d.ts +1 -0
- package/CapAdvancedIcon/types.d.ts.map +1 -1
- package/CapDnDGraph/index.js +2 -2
- package/CapDndGraphSidebar/SideBarIcon.d.ts +3 -23
- package/CapDndGraphSidebar/SideBarIcon.d.ts.map +1 -1
- package/CapDndGraphSidebar/SideBarIcon.js +21 -39
- package/CapDndGraphSidebar/SidebarNodesRendered.d.ts +3 -9
- package/CapDndGraphSidebar/SidebarNodesRendered.d.ts.map +1 -1
- package/CapDndGraphSidebar/SidebarNodesRendered.js +13 -4
- package/CapDndGraphSidebar/index.d.ts +4 -20
- package/CapDndGraphSidebar/index.d.ts.map +1 -1
- package/CapDndGraphSidebar/index.js +31 -33
- package/CapDndGraphSidebar/styles.css +19 -6
- package/CapDndGraphSidebar/styles.module.scss.js +15 -0
- package/CapDndGraphSidebar/styles.scss +68 -51
- package/CapDndGraphSidebar/types.d.ts +106 -0
- package/CapDndGraphSidebar/types.d.ts.map +1 -0
- package/CapDragAndDrop/index.d.ts +3 -19
- package/CapDragAndDrop/index.d.ts.map +1 -1
- package/CapDragAndDrop/index.js +24 -29
- package/CapDragAndDrop/messages.d.ts +25 -0
- package/CapDragAndDrop/messages.d.ts.map +1 -0
- package/CapDragAndDrop/messages.js +28 -0
- package/CapDragAndDrop/styles.css +17 -15
- package/CapDragAndDrop/styles.module.scss.js +21 -0
- package/CapDragAndDrop/styles.scss +18 -16
- package/CapDragAndDrop/types.d.ts +17 -0
- package/CapDragAndDrop/types.d.ts.map +1 -0
- package/CapDragAndDrop/types.js +1 -0
- package/CapIcon/index.js +12 -12
- package/CapIcon/styles.css +17 -21
- package/CapIcon/styles.module.scss.js +3 -4
- package/CapIcon/styles.scss +10 -15
- package/CapMediaPreview/ImageRenderer.d.ts +2 -15
- package/CapMediaPreview/ImageRenderer.d.ts.map +1 -1
- package/CapMediaPreview/ImageRenderer.js +3 -11
- package/CapMediaPreview/MediaRenderer.d.ts +2 -1
- package/CapMediaPreview/MediaRenderer.d.ts.map +1 -1
- package/CapMediaPreview/MediaRenderer.js +17 -15
- package/CapMediaPreview/VideoPlayer.d.ts +2 -1
- package/CapMediaPreview/VideoPlayer.d.ts.map +1 -1
- package/CapMediaPreview/VideoPlayer.js +16 -15
- package/CapMediaPreview/index.d.ts +4 -51
- package/CapMediaPreview/index.d.ts.map +1 -1
- package/CapMediaPreview/index.js +86 -69
- package/CapMediaPreview/styles.css +31 -21
- package/CapMediaPreview/styles.module.scss.js +24 -0
- package/CapMediaPreview/styles.scss +38 -27
- package/CapMediaPreview/types.d.ts +48 -0
- package/CapMediaPreview/types.d.ts.map +1 -0
- package/CapMediaPreview/types.js +1 -0
- package/CapPopoverTree/index.d.ts +40 -3
- package/CapPopoverTree/index.d.ts.map +1 -1
- package/CapPopoverTree/index.js +82 -72
- package/CapPopoverTree/style.d.ts +1 -5
- package/CapPopoverTree/style.d.ts.map +1 -1
- package/CapPopoverTree/styles.css +18 -119
- package/CapPopoverTree/styles.scss +31 -179
- package/CapSelectFilter/types.d.ts +1 -1
- package/CapSelectFilter/types.d.ts.map +1 -1
- package/CapTimeline/CapTimelineCard.d.ts +4 -27
- package/CapTimeline/CapTimelineCard.d.ts.map +1 -1
- package/CapTimeline/CapTimelineCard.js +40 -157
- package/CapTimeline/CapTimelinePanesWrapper.d.ts +4 -25
- package/CapTimeline/CapTimelinePanesWrapper.d.ts.map +1 -1
- package/CapTimeline/CapTimelinePanesWrapper.js +24 -20
- package/CapTimeline/index.d.ts +2 -17
- package/CapTimeline/index.d.ts.map +1 -1
- package/CapTimeline/index.js +62 -23
- package/CapTimeline/messages.d.ts +21 -0
- package/CapTimeline/messages.d.ts.map +1 -0
- package/CapTimeline/messages.js +24 -0
- package/CapTimeline/styles.css +40 -40
- package/CapTimeline/styles.module.scss.js +30 -0
- package/CapTimeline/styles.scss +76 -57
- package/CapTimeline/tests/CapTimeline.mockData.d.ts +14 -0
- package/CapTimeline/tests/CapTimeline.mockData.d.ts.map +1 -0
- package/CapTimeline/types.d.ts +60 -0
- package/CapTimeline/types.d.ts.map +1 -0
- package/CapTimeline/types.js +1 -0
- package/index.d.ts +8 -0
- package/index.d.ts.map +1 -1
- package/index.js +179 -171
- package/package.json +2 -2
- package/utils/getCapThemeConfig.d.ts +1 -1
- package/utils/getCapThemeConfig.d.ts.map +1 -1
- package/utils/getCapThemeConfig.js +9 -1
- package/CapPopoverTree/styles.module.scss.js +0 -26
- package/CapPopoverTree/tests/CapPopoverTree.mockData.d.ts +0 -22
- package/CapPopoverTree/tests/CapPopoverTree.mockData.d.ts.map +0 -1
- package/CapPopoverTree/types.d.ts +0 -62
- package/CapPopoverTree/types.d.ts.map +0 -1
- package/CapVirtualSelect/actions.d.ts +0 -16
- package/CapVirtualSelect/actions.d.ts.map +0 -1
- package/CapVirtualSelect/actions.js +0 -21
- package/CapVirtualSelect/constants.d.ts +0 -13
- package/CapVirtualSelect/constants.d.ts.map +0 -1
- package/CapVirtualSelect/constants.js +0 -26
- package/CapVirtualSelect/index.d.ts +0 -169
- package/CapVirtualSelect/index.d.ts.map +0 -1
- package/CapVirtualSelect/index.js +0 -409
- package/CapVirtualSelect/messages.d.ts +0 -9
- package/CapVirtualSelect/messages.d.ts.map +0 -1
- package/CapVirtualSelect/messages.js +0 -12
- package/CapVirtualSelect/reducer.d.ts +0 -4
- package/CapVirtualSelect/reducer.d.ts.map +0 -1
- package/CapVirtualSelect/reducer.js +0 -63
- package/CapVirtualSelect/saga.d.ts +0 -40
- package/CapVirtualSelect/saga.d.ts.map +0 -1
- package/CapVirtualSelect/saga.js +0 -91
- package/CapVirtualSelect/selectors.d.ts +0 -28
- package/CapVirtualSelect/selectors.d.ts.map +0 -1
- package/CapVirtualSelect/selectors.js +0 -30
- package/CapVirtualSelect/styles.css +0 -110
- package/CapVirtualSelect/styles.scss +0 -106
- package/CapVirtualSelect/tests/mockData.d.ts +0 -7
- package/CapVirtualSelect/tests/mockData.d.ts.map +0 -1
- package/CapVirtualSelect/utils.d.ts +0 -2
- package/CapVirtualSelect/utils.d.ts.map +0 -1
- package/CapVirtualSelect/utils.js +0 -12
- /package/{CapPopoverTree → CapDndGraphSidebar}/types.js +0 -0
|
@@ -27,6 +27,7 @@ export interface BackgroundProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
|
27
27
|
backgroundColor?: string;
|
|
28
28
|
className?: string;
|
|
29
29
|
style?: React.CSSProperties;
|
|
30
|
+
opacity?: number;
|
|
30
31
|
}
|
|
31
32
|
export type StoreUploadStatusIndicator = React.ReactElement | null;
|
|
32
33
|
export interface CapAdvancedIconProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../components/CapAdvancedIcon/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,CAAC;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAC;IACrC,8BAA8B,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9F,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,OAAO,EAAE,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CACpE;AAED,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IAC5E,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../components/CapAdvancedIcon/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,CAAC;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAC;IACrC,8BAA8B,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9F,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,OAAO,EAAE,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CACpE;AAED,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IAC5E,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,0BAA0B,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;AAEnE,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC,CAAC;IACxF,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,0BAA0B,CAAC,EAAE,0BAA0B,CAAC;IACxD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
|
package/CapDnDGraph/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { useDrop } from "react-dnd";
|
|
|
11
11
|
import { createRoot } from "react-dom/client";
|
|
12
12
|
import { IntlProvider } from "react-intl";
|
|
13
13
|
import CapBorderedBox from "../CapBorderedBox/index.js";
|
|
14
|
-
import
|
|
14
|
+
import { CapDndGraphSidebar } from "../CapDndGraphSidebar/index.js";
|
|
15
15
|
import CapHeadingWithStatic from "../CapHeading/index.js";
|
|
16
16
|
import CapIcon from "../CapIcon/index.js";
|
|
17
17
|
import CapLabelWithStatic from "../CapLabel/index.js";
|
|
@@ -918,7 +918,7 @@ const CapDndGraph = (props) => {
|
|
|
918
918
|
}, []);
|
|
919
919
|
return /* @__PURE__ */ jsxs(CapRow, { className: "cap-graph-builder", style: { height: "calc(100vh - 120px)" }, children: [
|
|
920
920
|
/* @__PURE__ */ jsx(
|
|
921
|
-
|
|
921
|
+
CapDndGraphSidebar,
|
|
922
922
|
{
|
|
923
923
|
...sidebarProps,
|
|
924
924
|
onDropOutsideCanvas: onDrop,
|
|
@@ -1,25 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
childNode: any;
|
|
5
|
-
color: any;
|
|
6
|
-
isNodeDraggable: any;
|
|
7
|
-
viewMode: any;
|
|
8
|
-
onDropOutsideCanvas: any;
|
|
9
|
-
showModel: any;
|
|
10
|
-
setShowModel: any;
|
|
11
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
propTypes: {
|
|
13
|
-
childNode: PropTypes.Requireable<object>;
|
|
14
|
-
color: PropTypes.Requireable<string>;
|
|
15
|
-
isNodeDraggable: PropTypes.Requireable<boolean>;
|
|
16
|
-
viewMode: PropTypes.Requireable<boolean>;
|
|
17
|
-
onDropOutsideCanvas: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
|
-
};
|
|
19
|
-
defaultProps: {
|
|
20
|
-
viewMode: boolean;
|
|
21
|
-
onDropOutsideCanvas: () => void;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SideBarIconProps } from './types';
|
|
3
|
+
declare const SideBarIcon: React.FC<SideBarIconProps>;
|
|
24
4
|
export default SideBarIcon;
|
|
25
5
|
//# sourceMappingURL=SideBarIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideBarIcon.d.ts","sourceRoot":"","sources":["../../components/CapDndGraphSidebar/SideBarIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SideBarIcon.d.ts","sourceRoot":"","sources":["../../components/CapDndGraphSidebar/SideBarIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA2G3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,32 +1,20 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
2
|
import { useDrag } from "react-dnd";
|
|
4
|
-
import styled from "styled-components";
|
|
5
3
|
import CapAdvancedIcon from "../CapAdvancedIcon/index.js";
|
|
6
4
|
import { CHANNEL_TO_ICONS_MAPPING } from "../CapDnDGraph/constants.js";
|
|
7
5
|
import CapIcon from "../CapIcon/index.js";
|
|
8
6
|
import CapLabelWithStatic from "../CapLabel/index.js";
|
|
9
7
|
import CapModalWithHoc from "../CapModal/index.js";
|
|
10
8
|
import CapTooltip from "../CapTooltip/index.js";
|
|
11
|
-
|
|
12
|
-
.ant-modal-content {
|
|
13
|
-
width: 33.786rem;
|
|
14
|
-
height: 19.429rem;
|
|
15
|
-
div.ant-modal-body {
|
|
16
|
-
padding: 1.715rem 1.715rem 1.575rem 1.715rem;
|
|
17
|
-
}
|
|
18
|
-
.ant-modal-footer {
|
|
19
|
-
display: none;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
`;
|
|
9
|
+
import styles from "./styles.module.scss.js";
|
|
23
10
|
const SideBarIcon = ({
|
|
24
11
|
childNode,
|
|
25
12
|
color,
|
|
26
13
|
isNodeDraggable,
|
|
27
|
-
viewMode,
|
|
28
|
-
onDropOutsideCanvas
|
|
29
|
-
|
|
14
|
+
viewMode = false,
|
|
15
|
+
onDropOutsideCanvas = () => {
|
|
16
|
+
},
|
|
17
|
+
showModel = false,
|
|
30
18
|
setShowModel
|
|
31
19
|
}) => {
|
|
32
20
|
const {
|
|
@@ -61,10 +49,13 @@ const SideBarIcon = ({
|
|
|
61
49
|
{
|
|
62
50
|
type,
|
|
63
51
|
backgroundProps: {
|
|
64
|
-
|
|
65
|
-
|
|
52
|
+
style: {
|
|
53
|
+
backgroundColor: color,
|
|
54
|
+
opacity: viewMode || isDisabled ? 0.5 : 1,
|
|
55
|
+
borderRadius: 18
|
|
56
|
+
}
|
|
66
57
|
},
|
|
67
|
-
label: /* @__PURE__ */ jsx(CapLabelWithStatic, { className: "node-label", type: "label5", children: label }),
|
|
58
|
+
label: /* @__PURE__ */ jsx(CapLabelWithStatic, { className: styles["node-label"], type: "label5", children: label }),
|
|
68
59
|
svgProps: {
|
|
69
60
|
height: "24px",
|
|
70
61
|
width: "24px",
|
|
@@ -75,43 +66,34 @@ const SideBarIcon = ({
|
|
|
75
66
|
}
|
|
76
67
|
);
|
|
77
68
|
const handleModel = () => {
|
|
78
|
-
setShowModel
|
|
69
|
+
if (setShowModel) {
|
|
70
|
+
setShowModel(!showModel);
|
|
71
|
+
}
|
|
79
72
|
};
|
|
80
|
-
|
|
81
|
-
|
|
73
|
+
const tooltipContent = showPremiumIcon && typeof tooltipText === "function" ? tooltipText(id, isDisabled, handleModel) : typeof tooltipText === "function" ? tooltipText(id, isDisabled, handleModel) : tooltipText;
|
|
74
|
+
return /* @__PURE__ */ jsxs("div", { className: styles["node-container"], children: [
|
|
75
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
82
76
|
tooltipText ? /* @__PURE__ */ jsx(
|
|
83
77
|
CapTooltip,
|
|
84
78
|
{
|
|
85
79
|
placement: showPremiumIcon && isDisabled ? "right" : "top",
|
|
86
|
-
title:
|
|
87
|
-
children: Icon
|
|
80
|
+
title: tooltipContent,
|
|
81
|
+
children: /* @__PURE__ */ jsx("div", { children: Icon })
|
|
88
82
|
}
|
|
89
83
|
) : /* @__PURE__ */ jsx(Fragment, { children: Icon }),
|
|
90
84
|
showPremiumIcon && /* @__PURE__ */ jsx(CapTooltip, { title: premiumTooltipText, children: /* @__PURE__ */ jsx(
|
|
91
85
|
CapIcon,
|
|
92
86
|
{
|
|
93
87
|
svgProps: { width: 12, height: 12 },
|
|
94
|
-
className: "premium-icon",
|
|
88
|
+
className: styles["premium-icon"],
|
|
95
89
|
type: "premiumColored",
|
|
96
90
|
size: "s"
|
|
97
91
|
}
|
|
98
92
|
) })
|
|
99
93
|
] }),
|
|
100
|
-
showPremiumIcon && /* @__PURE__ */ jsx(
|
|
94
|
+
showPremiumIcon && premiumModelContent && /* @__PURE__ */ jsx(CapModalWithHoc, { open: showModel, onCancel: handleModel, className: styles["premium-modal"], children: premiumModelContent() })
|
|
101
95
|
] }, type);
|
|
102
96
|
};
|
|
103
|
-
SideBarIcon.propTypes = {
|
|
104
|
-
childNode: PropTypes.object,
|
|
105
|
-
color: PropTypes.string,
|
|
106
|
-
isNodeDraggable: PropTypes.bool,
|
|
107
|
-
viewMode: PropTypes.bool,
|
|
108
|
-
onDropOutsideCanvas: PropTypes.func
|
|
109
|
-
};
|
|
110
|
-
SideBarIcon.defaultProps = {
|
|
111
|
-
viewMode: false,
|
|
112
|
-
onDropOutsideCanvas: () => {
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
97
|
export {
|
|
116
98
|
SideBarIcon as default
|
|
117
99
|
};
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
endDrag: any;
|
|
5
|
-
viewMode: any;
|
|
6
|
-
onDropOutsideCanvas: any;
|
|
7
|
-
showModel: any;
|
|
8
|
-
setShowModel: any;
|
|
9
|
-
}) => import("react/jsx-runtime").JSX.Element[];
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SidebarNodesRenderedProps } from './types';
|
|
3
|
+
declare const SidebarNodesRendered: React.FC<SidebarNodesRenderedProps>;
|
|
10
4
|
export default SidebarNodesRendered;
|
|
11
5
|
//# sourceMappingURL=SidebarNodesRendered.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarNodesRendered.d.ts","sourceRoot":"","sources":["../../components/CapDndGraphSidebar/SidebarNodesRendered.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarNodesRendered.d.ts","sourceRoot":"","sources":["../../components/CapDndGraphSidebar/SidebarNodesRendered.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAIzD,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA0C1D,CAAC;AAEL,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import classNames from "classnames";
|
|
2
3
|
import CapHeadingWithStatic from "../CapHeading/index.js";
|
|
3
4
|
import CapIcon from "../CapIcon/index.js";
|
|
4
5
|
import CapRow from "../CapRow/index.js";
|
|
5
6
|
import CapTooltip from "../CapTooltip/index.js";
|
|
6
7
|
import SideBarIcon from "./SideBarIcon.js";
|
|
8
|
+
import styles from "./styles.module.scss.js";
|
|
7
9
|
const { CapHeadingSpan } = CapHeadingWithStatic;
|
|
8
10
|
const SidebarNodesRendered = ({
|
|
9
11
|
nodes = [],
|
|
@@ -15,12 +17,19 @@ const SidebarNodesRendered = ({
|
|
|
15
17
|
setShowModel
|
|
16
18
|
}) => nodes.map((node) => {
|
|
17
19
|
const { title, tooltipText, children, color, key } = node;
|
|
18
|
-
return /* @__PURE__ */ jsxs(CapRow, { className: "category-container", children: [
|
|
19
|
-
/* @__PURE__ */ jsxs(CapRow, { className: "align-items-center", children: [
|
|
20
|
+
return /* @__PURE__ */ jsxs(CapRow, { className: styles["category-container"], children: [
|
|
21
|
+
/* @__PURE__ */ jsxs(CapRow, { className: styles["align-items-center"], children: [
|
|
20
22
|
/* @__PURE__ */ jsx(CapHeadingSpan, { type: "h4", children: title }),
|
|
21
|
-
tooltipText && /* @__PURE__ */ jsx(CapTooltip, { title: tooltipText,
|
|
23
|
+
tooltipText && /* @__PURE__ */ jsx(CapTooltip, { title: tooltipText, classNames: { root: styles["hide-tooltip-pointer"] }, children: /* @__PURE__ */ jsx(
|
|
24
|
+
CapIcon,
|
|
25
|
+
{
|
|
26
|
+
type: "info",
|
|
27
|
+
className: classNames(styles["info-icon"], styles["margin-l-4"]),
|
|
28
|
+
size: "xs"
|
|
29
|
+
}
|
|
30
|
+
) })
|
|
22
31
|
] }),
|
|
23
|
-
/* @__PURE__ */ jsx(CapRow, { className: "icons-container", children: children.map((childNode) => /* @__PURE__ */ jsx(
|
|
32
|
+
/* @__PURE__ */ jsx(CapRow, { className: styles["icons-container"], children: children.map((childNode) => /* @__PURE__ */ jsx(
|
|
24
33
|
SideBarIcon,
|
|
25
34
|
{
|
|
26
35
|
childNode,
|
|
@@ -1,22 +1,6 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import './
|
|
4
|
-
export declare const CapDndGraphSidebar:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
nodes: PropTypes.Requireable<object>;
|
|
8
|
-
sidebarTitle: PropTypes.Requireable<string>;
|
|
9
|
-
sidebarDescription: PropTypes.Requireable<string>;
|
|
10
|
-
sidebarTitleInfo: PropTypes.Requireable<string>;
|
|
11
|
-
isNodeDraggable: PropTypes.Requireable<boolean>;
|
|
12
|
-
endDrag: PropTypes.Requireable<object>;
|
|
13
|
-
viewMode: PropTypes.Requireable<boolean>;
|
|
14
|
-
onDropOutsideCanvas: PropTypes.Requireable<(...args: any[]) => any>;
|
|
15
|
-
};
|
|
16
|
-
defaultProps: {
|
|
17
|
-
viewMode: boolean;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
declare const _default: React.ComponentType<Omit<any, "intl">>;
|
|
21
|
-
export default _default;
|
|
2
|
+
import type { CapDndGraphSidebarProps } from './types';
|
|
3
|
+
export declare const CapDndGraphSidebar: React.FC<CapDndGraphSidebarProps>;
|
|
4
|
+
export default CapDndGraphSidebar;
|
|
5
|
+
export type { CapDndGraphSidebarProps } from './types';
|
|
22
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/CapDndGraphSidebar/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/CapDndGraphSidebar/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAUxC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAIvD,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA+ChE,CAAC;AAEF,eAAe,kBAAkB,CAAC;AAClC,YAAY,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,33 +1,45 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import classNames from "classnames";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import CapHeadingWithStatic from "../CapHeading/index.js";
|
|
5
5
|
import CapIcon from "../CapIcon/index.js";
|
|
6
6
|
import CapLabelWithStatic from "../CapLabel/index.js";
|
|
7
7
|
import CapRow from "../CapRow/index.js";
|
|
8
8
|
import CapTooltip from "../CapTooltip/index.js";
|
|
9
|
-
import LocaleHoc from "../LocaleHoc/index.js";
|
|
10
9
|
import SidebarNodesRendered from "./SidebarNodesRendered.js";
|
|
11
|
-
import
|
|
10
|
+
import styles from "./styles.module.scss.js";
|
|
12
11
|
const { CapHeadingSpan } = CapHeadingWithStatic;
|
|
13
|
-
const CapDndGraphSidebar = (
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} = props;
|
|
12
|
+
const CapDndGraphSidebar = ({
|
|
13
|
+
nodes = [],
|
|
14
|
+
sidebarTitle,
|
|
15
|
+
sidebarDescription,
|
|
16
|
+
sidebarTitleInfo,
|
|
17
|
+
isNodeDraggable,
|
|
18
|
+
endDrag,
|
|
19
|
+
viewMode = false,
|
|
20
|
+
onDropOutsideCanvas
|
|
21
|
+
}) => {
|
|
24
22
|
const [showModel, setShowModel] = useState(false);
|
|
25
|
-
return /* @__PURE__ */ jsxs(CapRow, { className: "dnd-graph-sidebar-container", children: [
|
|
26
|
-
sidebarTitle && /* @__PURE__ */ jsxs(CapRow, { className: "align-items-center", children: [
|
|
23
|
+
return /* @__PURE__ */ jsxs(CapRow, { className: styles["dnd-graph-sidebar-container"], children: [
|
|
24
|
+
sidebarTitle && /* @__PURE__ */ jsxs(CapRow, { className: styles["align-items-center"], children: [
|
|
27
25
|
/* @__PURE__ */ jsx(CapHeadingSpan, { type: "h3", children: sidebarTitle }),
|
|
28
|
-
sidebarTitleInfo && /* @__PURE__ */ jsx(
|
|
26
|
+
sidebarTitleInfo && /* @__PURE__ */ jsx(
|
|
27
|
+
CapTooltip,
|
|
28
|
+
{
|
|
29
|
+
title: sidebarTitleInfo,
|
|
30
|
+
classNames: { root: styles["hide-tooltip-pointer"] },
|
|
31
|
+
children: /* @__PURE__ */ jsx(
|
|
32
|
+
CapIcon,
|
|
33
|
+
{
|
|
34
|
+
type: "info",
|
|
35
|
+
className: classNames(styles["info-icon"], styles["margin-l-4"]),
|
|
36
|
+
size: "xs"
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
}
|
|
40
|
+
)
|
|
29
41
|
] }),
|
|
30
|
-
sidebarDescription && /* @__PURE__ */ jsx(CapLabelWithStatic, { type: "label3", className: "margin-t-4", children: sidebarDescription }),
|
|
42
|
+
sidebarDescription && /* @__PURE__ */ jsx(CapLabelWithStatic, { type: "label3", className: styles["margin-t-4"], children: sidebarDescription }),
|
|
31
43
|
/* @__PURE__ */ jsx(
|
|
32
44
|
SidebarNodesRendered,
|
|
33
45
|
{
|
|
@@ -42,21 +54,7 @@ const CapDndGraphSidebar = (props) => {
|
|
|
42
54
|
)
|
|
43
55
|
] });
|
|
44
56
|
};
|
|
45
|
-
CapDndGraphSidebar.propTypes = {
|
|
46
|
-
nodes: PropTypes.object,
|
|
47
|
-
sidebarTitle: PropTypes.string,
|
|
48
|
-
sidebarDescription: PropTypes.string,
|
|
49
|
-
sidebarTitleInfo: PropTypes.string,
|
|
50
|
-
isNodeDraggable: PropTypes.bool,
|
|
51
|
-
endDrag: PropTypes.object,
|
|
52
|
-
viewMode: PropTypes.bool,
|
|
53
|
-
onDropOutsideCanvas: PropTypes.func
|
|
54
|
-
};
|
|
55
|
-
CapDndGraphSidebar.defaultProps = {
|
|
56
|
-
viewMode: false
|
|
57
|
-
};
|
|
58
|
-
const CapIconsSidebar = LocaleHoc(CapDndGraphSidebar, { key: "CapDndGraphSidebar" });
|
|
59
57
|
export {
|
|
60
58
|
CapDndGraphSidebar,
|
|
61
|
-
|
|
59
|
+
CapDndGraphSidebar as default
|
|
62
60
|
};
|
|
@@ -8,19 +8,28 @@
|
|
|
8
8
|
/* Timezones Footer */
|
|
9
9
|
.dnd-graph-sidebar-container {
|
|
10
10
|
background: #fafbfc;
|
|
11
|
-
width:
|
|
11
|
+
width: 17.143rem;
|
|
12
12
|
height: 100%;
|
|
13
13
|
display: inline-block;
|
|
14
|
-
padding:
|
|
14
|
+
padding: 1.071rem 1.714rem;
|
|
15
15
|
overflow: auto;
|
|
16
16
|
}
|
|
17
|
-
.dnd-graph-sidebar-container .
|
|
17
|
+
.dnd-graph-sidebar-container .align-items-center {
|
|
18
18
|
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
}
|
|
21
|
+
.dnd-graph-sidebar-container .margin-l-4 {
|
|
22
|
+
margin-left: 0.285rem;
|
|
23
|
+
}
|
|
24
|
+
.dnd-graph-sidebar-container .margin-t-4 {
|
|
25
|
+
margin-top: 0.285rem;
|
|
19
26
|
}
|
|
20
|
-
.dnd-graph-sidebar-container .
|
|
27
|
+
.dnd-graph-sidebar-container .info-icon {
|
|
21
28
|
display: flex;
|
|
22
29
|
align-items: center;
|
|
23
|
-
|
|
30
|
+
}
|
|
31
|
+
.dnd-graph-sidebar-container .title-row {
|
|
32
|
+
display: flex;
|
|
24
33
|
}
|
|
25
34
|
.dnd-graph-sidebar-container .category-container {
|
|
26
35
|
margin: 1.142rem 0;
|
|
@@ -28,6 +37,7 @@
|
|
|
28
37
|
.dnd-graph-sidebar-container .category-container .icons-container {
|
|
29
38
|
display: flex;
|
|
30
39
|
flex-wrap: wrap;
|
|
40
|
+
width: 100%;
|
|
31
41
|
}
|
|
32
42
|
.dnd-graph-sidebar-container .category-container .icons-container .node-container {
|
|
33
43
|
width: 33.3333333333%;
|
|
@@ -36,7 +46,7 @@
|
|
|
36
46
|
position: relative;
|
|
37
47
|
}
|
|
38
48
|
.dnd-graph-sidebar-container .category-container .icons-container .node-container .cap-icon-background {
|
|
39
|
-
padding:
|
|
49
|
+
padding: 0.643rem;
|
|
40
50
|
}
|
|
41
51
|
.dnd-graph-sidebar-container .category-container .icons-container .node-container .node-label {
|
|
42
52
|
white-space: nowrap;
|
|
@@ -52,4 +62,7 @@
|
|
|
52
62
|
padding: 0.125rem;
|
|
53
63
|
background-color: #ffffff;
|
|
54
64
|
border-radius: 50%;
|
|
65
|
+
}
|
|
66
|
+
.dnd-graph-sidebar-container .category-container .icons-container .node-container .cap-tooltip-wrapper {
|
|
67
|
+
display: block;
|
|
55
68
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import './styles.css';const styles = {
|
|
2
|
+
"dnd-graph-sidebar-container": "dnd-graph-sidebar-container",
|
|
3
|
+
"align-items-center": "align-items-center",
|
|
4
|
+
"margin-l-4": "margin-l-4",
|
|
5
|
+
"margin-t-4": "margin-t-4",
|
|
6
|
+
"info-icon": "info-icon",
|
|
7
|
+
"category-container": "category-container",
|
|
8
|
+
"icons-container": "icons-container",
|
|
9
|
+
"node-container": "node-container",
|
|
10
|
+
"node-label": "node-label",
|
|
11
|
+
"premium-icon": "premium-icon"
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
styles as default
|
|
15
|
+
};
|
|
@@ -1,57 +1,74 @@
|
|
|
1
1
|
@import '../styles/_variables.scss';
|
|
2
2
|
|
|
3
|
-
.dnd-graph-sidebar-container{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
3
|
+
.dnd-graph-sidebar-container {
|
|
4
|
+
background: $CAP_G10;
|
|
5
|
+
width: 17.143rem;
|
|
6
|
+
height: 100%;
|
|
7
|
+
display: inline-block;
|
|
8
|
+
padding: 1.071rem $CAP_SPACE_24;
|
|
9
|
+
overflow: auto;
|
|
10
|
+
|
|
11
|
+
.align-items-center {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.margin-l-4 {
|
|
17
|
+
margin-left: $CAP_SPACE_04;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.margin-t-4 {
|
|
21
|
+
margin-top: $CAP_SPACE_04;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.info-icon {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.title-row {
|
|
30
|
+
display: flex;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.category-container {
|
|
34
|
+
margin: $CAP_SPACE_16 0;
|
|
35
|
+
|
|
36
|
+
.icons-container {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-wrap: wrap;
|
|
39
|
+
width: 100%;
|
|
40
|
+
|
|
41
|
+
.node-container {
|
|
42
|
+
width: calc(100% / 3);
|
|
43
|
+
text-align: center;
|
|
44
|
+
margin: $CAP_SPACE_04 0;
|
|
45
|
+
position: relative;
|
|
46
|
+
|
|
47
|
+
.cap-icon-background {
|
|
48
|
+
padding: 0.643rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.node-label {
|
|
52
|
+
white-space: nowrap;
|
|
53
|
+
align-items: center;
|
|
54
|
+
display: inline-block;
|
|
55
|
+
white-space: normal;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.premium-icon {
|
|
59
|
+
position: absolute;
|
|
60
|
+
top: -0.313rem;
|
|
61
|
+
right: 0.25rem;
|
|
62
|
+
z-index: 99;
|
|
63
|
+
padding: 0.125rem;
|
|
64
|
+
background-color: $CAP_WHITE;
|
|
65
|
+
border-radius: 50%;
|
|
18
66
|
}
|
|
19
|
-
}
|
|
20
67
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
.icons-container {
|
|
25
|
-
display: flex;
|
|
26
|
-
flex-wrap: wrap;
|
|
27
|
-
|
|
28
|
-
.node-container {
|
|
29
|
-
width: calc(100% / 3);
|
|
30
|
-
text-align: center;
|
|
31
|
-
margin: $CAP_SPACE_04 0;
|
|
32
|
-
position: relative;
|
|
33
|
-
|
|
34
|
-
.cap-icon-background {
|
|
35
|
-
padding: 9px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.node-label {
|
|
39
|
-
white-space: nowrap;
|
|
40
|
-
align-items: center;
|
|
41
|
-
display: inline-block;
|
|
42
|
-
white-space: normal;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.premium-icon {
|
|
46
|
-
position: absolute;
|
|
47
|
-
top: -0.313rem;
|
|
48
|
-
right: 0.25rem;
|
|
49
|
-
z-index: 99;
|
|
50
|
-
padding: 0.125rem;
|
|
51
|
-
background-color: $CAP_WHITE;
|
|
52
|
-
border-radius: 50%;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
68
|
+
:global(.cap-tooltip-wrapper) {
|
|
69
|
+
display: block;
|
|
55
70
|
}
|
|
71
|
+
}
|
|
56
72
|
}
|
|
57
|
-
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { DragSourceMonitor } from 'react-dnd';
|
|
3
|
+
/**
|
|
4
|
+
* Child node structure for sidebar icons
|
|
5
|
+
*/
|
|
6
|
+
export interface ChildNode {
|
|
7
|
+
id: string;
|
|
8
|
+
type: string;
|
|
9
|
+
label: string;
|
|
10
|
+
isMultiPath?: boolean;
|
|
11
|
+
isDisabled?: boolean;
|
|
12
|
+
tooltipText?: string | ((id: string, isDisabled: boolean, handleModel: () => void) => React.ReactNode);
|
|
13
|
+
premiumTooltipText?: string;
|
|
14
|
+
showPremiumIcon?: boolean;
|
|
15
|
+
premiumModelContent?: () => React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Node structure with categories and children
|
|
19
|
+
*/
|
|
20
|
+
export interface Node {
|
|
21
|
+
key: string;
|
|
22
|
+
title: string;
|
|
23
|
+
tooltipText?: string;
|
|
24
|
+
children: ChildNode[];
|
|
25
|
+
color: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Props for CapDndGraphSidebar component
|
|
29
|
+
*/
|
|
30
|
+
export interface CapDndGraphSidebarProps {
|
|
31
|
+
/** Array of node categories with their children */
|
|
32
|
+
nodes?: Node[];
|
|
33
|
+
/** Title displayed at the top of the sidebar */
|
|
34
|
+
sidebarTitle?: string;
|
|
35
|
+
/** Description text displayed below the title */
|
|
36
|
+
sidebarDescription?: string;
|
|
37
|
+
/** Info tooltip text for the sidebar title */
|
|
38
|
+
sidebarTitleInfo?: string;
|
|
39
|
+
/** Whether nodes can be dragged */
|
|
40
|
+
isNodeDraggable?: boolean;
|
|
41
|
+
/** Handler for drag end events */
|
|
42
|
+
endDrag?: (item: unknown, monitor: DragSourceMonitor) => void;
|
|
43
|
+
/** Whether the sidebar is in view-only mode */
|
|
44
|
+
viewMode?: boolean;
|
|
45
|
+
/** Callback when a node is dropped outside the canvas */
|
|
46
|
+
onDropOutsideCanvas?: (item: {
|
|
47
|
+
id: string;
|
|
48
|
+
type: string;
|
|
49
|
+
iconType: string;
|
|
50
|
+
color: string;
|
|
51
|
+
isMultiPath?: boolean;
|
|
52
|
+
}) => void;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Props for SideBarIcon component
|
|
56
|
+
*/
|
|
57
|
+
export interface SideBarIconProps {
|
|
58
|
+
/** Child node data */
|
|
59
|
+
childNode: ChildNode;
|
|
60
|
+
/** Color for the icon background */
|
|
61
|
+
color: string;
|
|
62
|
+
/** Whether the node can be dragged */
|
|
63
|
+
isNodeDraggable?: boolean;
|
|
64
|
+
/** Whether the sidebar is in view-only mode */
|
|
65
|
+
viewMode?: boolean;
|
|
66
|
+
/** Callback when a node is dropped outside the canvas */
|
|
67
|
+
onDropOutsideCanvas?: (item: {
|
|
68
|
+
id: string;
|
|
69
|
+
type: string;
|
|
70
|
+
iconType: string;
|
|
71
|
+
color: string;
|
|
72
|
+
isMultiPath?: boolean;
|
|
73
|
+
}) => void;
|
|
74
|
+
/** Whether the premium modal is shown */
|
|
75
|
+
showModel?: boolean;
|
|
76
|
+
/** Handler to toggle the premium modal */
|
|
77
|
+
setShowModel?: (show: boolean) => void;
|
|
78
|
+
/** Handler for drag end events (passed through but not used directly) */
|
|
79
|
+
endDrag?: (item: unknown, monitor: DragSourceMonitor) => void;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Props for SidebarNodesRendered component
|
|
83
|
+
*/
|
|
84
|
+
export interface SidebarNodesRenderedProps {
|
|
85
|
+
/** Array of node categories with their children */
|
|
86
|
+
nodes?: Node[];
|
|
87
|
+
/** Whether nodes can be dragged */
|
|
88
|
+
isNodeDraggable?: boolean;
|
|
89
|
+
/** Handler for drag end events */
|
|
90
|
+
endDrag?: (item: unknown, monitor: DragSourceMonitor) => void;
|
|
91
|
+
/** Whether the sidebar is in view-only mode */
|
|
92
|
+
viewMode?: boolean;
|
|
93
|
+
/** Callback when a node is dropped outside the canvas */
|
|
94
|
+
onDropOutsideCanvas?: (item: {
|
|
95
|
+
id: string;
|
|
96
|
+
type: string;
|
|
97
|
+
iconType: string;
|
|
98
|
+
color: string;
|
|
99
|
+
isMultiPath?: boolean;
|
|
100
|
+
}) => void;
|
|
101
|
+
/** Whether the premium modal is shown */
|
|
102
|
+
showModel?: boolean;
|
|
103
|
+
/** Handler to toggle the premium modal */
|
|
104
|
+
setShowModel?: (show: boolean) => void;
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=types.d.ts.map
|