@abdellatifui/react 3.1.92 → 3.1.94
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/nextgen.d.ts +1 -0
- package/dist/nextgen.js +14 -11
- package/dist/nextgen.js.map +1 -1
- package/dist/types/components/NetworkMap/CustomNavigateButtons.d.ts.map +1 -1
- package/dist/types/components/NetworkMap/Map.d.ts.map +1 -1
- package/dist/types/components/NetworkMap/SourcePort.d.ts.map +1 -1
- package/dist/types/components/NetworkMap/types.d.ts +1 -0
- package/dist/types/components/NetworkMap/types.d.ts.map +1 -1
- package/dist/types/stories/Map/map.stories.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/nextgen.d.ts
CHANGED
package/dist/nextgen.js
CHANGED
|
@@ -14300,7 +14300,7 @@ const CustomMarker = (props) => {
|
|
|
14300
14300
|
latitude,
|
|
14301
14301
|
anchor: "center",
|
|
14302
14302
|
className: cn(
|
|
14303
|
-
"group z-30 isolate hover:z-40",
|
|
14303
|
+
"group z-30 isolate hover:z-40 w-fit h-fit",
|
|
14304
14304
|
className
|
|
14305
14305
|
),
|
|
14306
14306
|
style: {
|
|
@@ -14446,7 +14446,6 @@ const PortText = (props) => {
|
|
|
14446
14446
|
var _a;
|
|
14447
14447
|
const ref = useRef(null);
|
|
14448
14448
|
const {
|
|
14449
|
-
text,
|
|
14450
14449
|
rotation,
|
|
14451
14450
|
isVisible,
|
|
14452
14451
|
data,
|
|
@@ -14455,9 +14454,6 @@ const PortText = (props) => {
|
|
|
14455
14454
|
isSource,
|
|
14456
14455
|
setSupressLinkHover
|
|
14457
14456
|
} = props;
|
|
14458
|
-
const vsConnectionHander = (data2) => {
|
|
14459
|
-
console.log(data2);
|
|
14460
|
-
};
|
|
14461
14457
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
14462
14458
|
"div",
|
|
14463
14459
|
{
|
|
@@ -14490,12 +14486,11 @@ const PortText = (props) => {
|
|
|
14490
14486
|
"flex gap-x-2 px-1 group/2 w-fit rounded-full relative hover:ring-[4px] outline-offset-1 outline-blue-600 transition-all duration-300 ease-in-out"
|
|
14491
14487
|
),
|
|
14492
14488
|
id: `#sub-${item == null ? void 0 : item.u_id}`,
|
|
14493
|
-
onMouseEnter: () => vsConnectionHander(item),
|
|
14494
14489
|
style: {
|
|
14495
14490
|
backgroundColor: data == null ? void 0 : data.linkColorHex
|
|
14496
14491
|
},
|
|
14497
14492
|
children: [
|
|
14498
|
-
|
|
14493
|
+
isSource ? item == null ? void 0 : item.sourcePort : item == null ? void 0 : item.destinationPort,
|
|
14499
14494
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-[0px] group-hover/2:text-xs text-black/80 -translate-x-full group-hover/2:translate-x-0 transition-all duration-300 ease-in-out relative flex gap-x-2", children: isSource ? item == null ? void 0 : item.destinationPort : item == null ? void 0 : item.sourcePort })
|
|
14500
14495
|
]
|
|
14501
14496
|
},
|
|
@@ -14716,7 +14711,8 @@ const SourcesPorts$1 = memo(SourcesPorts);
|
|
|
14716
14711
|
const CustomNavigateButtons = (props) => {
|
|
14717
14712
|
const {
|
|
14718
14713
|
mapApi,
|
|
14719
|
-
showGoNodeControlButton
|
|
14714
|
+
showGoNodeControlButton,
|
|
14715
|
+
customControlButtons = []
|
|
14720
14716
|
} = props;
|
|
14721
14717
|
const onMapPinClick = () => {
|
|
14722
14718
|
var _a, _b, _c, _d;
|
|
@@ -14724,7 +14720,12 @@ const CustomNavigateButtons = (props) => {
|
|
|
14724
14720
|
(_c = (_b = (_a = mapApi == null ? void 0 : mapApi.current) == null ? void 0 : _a.nodes) == null ? void 0 : _b[0]) == null ? void 0 : _c.elementId
|
|
14725
14721
|
);
|
|
14726
14722
|
};
|
|
14727
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
14723
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "absolute bottom-10 overflow-hidden right-3 z-50 min-h-[60px] w-[25px] gap-2 bg-white border rounded-full flex flex-wrap items-center justify-center py-1", children: [
|
|
14724
|
+
showGoNodeControlButton && /* @__PURE__ */ jsxRuntimeExports.jsx(StyledTooltip, { title: "Go to first node", children: /* @__PURE__ */ jsxRuntimeExports.jsx(MapPin, { onClick: onMapPinClick, className: "text-blue-600 hover:bg-accent rounded-full", size: 18 }) }),
|
|
14725
|
+
customControlButtons == null ? void 0 : customControlButtons.map((button, index) => {
|
|
14726
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: button }, "custom-control-button-" + qindex);
|
|
14727
|
+
})
|
|
14728
|
+
] });
|
|
14728
14729
|
};
|
|
14729
14730
|
const CustomNavigateButtons$1 = memo(CustomNavigateButtons);
|
|
14730
14731
|
const baseFont = 0.75;
|
|
@@ -14759,6 +14760,7 @@ const NetworkMapComponent = forwardRef((props, ref) => {
|
|
|
14759
14760
|
MapLogoClassName,
|
|
14760
14761
|
MapLogoStyle,
|
|
14761
14762
|
linkAnimation = true,
|
|
14763
|
+
customControlButtons = [],
|
|
14762
14764
|
showGoNodeControlButton = true,
|
|
14763
14765
|
onConnClick = () => {
|
|
14764
14766
|
},
|
|
@@ -15161,7 +15163,7 @@ const NetworkMapComponent = forwardRef((props, ref) => {
|
|
|
15161
15163
|
if ((e == null ? void 0 : e.picked) && ((_b = (_a = e == null ? void 0 : e.layer) == null ? void 0 : _a.props) == null ? void 0 : _b.main)) {
|
|
15162
15164
|
mapApi.current.getCanvas().style.cursor = "default";
|
|
15163
15165
|
setHoveredConnection({ ...e.object });
|
|
15164
|
-
onLinkMouseOver({ event: e, data: e == null ? void 0 : e.object, type: "connection", id: (_c = e == null ? void 0 : e.object) == null ? void 0 : _c.id, mapApi });
|
|
15166
|
+
onLinkMouseOver({ event: e, data: e == null ? void 0 : e.object, type: "connection", id: (_c = e == null ? void 0 : e.object) == null ? void 0 : _c.id, mapApi: ref || mapApi });
|
|
15165
15167
|
}
|
|
15166
15168
|
};
|
|
15167
15169
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -15354,7 +15356,8 @@ const NetworkMapComponent = forwardRef((props, ref) => {
|
|
|
15354
15356
|
CustomNavigateButtons$1,
|
|
15355
15357
|
{
|
|
15356
15358
|
mapApi: ref,
|
|
15357
|
-
showGoNodeControlButton
|
|
15359
|
+
showGoNodeControlButton,
|
|
15360
|
+
customControlButtons
|
|
15358
15361
|
}
|
|
15359
15362
|
),
|
|
15360
15363
|
MapLogo && /* @__PURE__ */ jsxRuntimeExports.jsx(
|