@abdellatifui/react 3.1.93 → 3.1.95
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 +7 -1
- package/dist/nextgen.js +61 -35
- package/dist/nextgen.js.map +1 -1
- package/dist/style.css +44 -13
- package/dist/types/components/Containers/Model.d.ts.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/types.d.ts +1 -0
- package/dist/types/components/NetworkMap/types.d.ts.map +1 -1
- package/dist/types/components/Spinner/InlineSpinner.d.ts +5 -1
- package/dist/types/components/Spinner/InlineSpinner.d.ts.map +1 -1
- package/dist/types/components/Tables/NextGen/main/main.d.ts.map +1 -1
- package/dist/types/components/Tables/NextGen/main/plugins/Topbar/Topbar.d.ts.map +1 -1
- package/dist/types/components/types.d.ts +2 -0
- package/dist/types/components/types.d.ts.map +1 -1
- package/dist/types/stories/Map/map.stories.d.ts.map +1 -1
- package/dist/types/stories/Spinner/InlineSpinner.stories.d.ts +1 -1
- package/package.json +1 -1
package/dist/nextgen.d.ts
CHANGED
|
@@ -386,10 +386,15 @@ export declare interface InformationTableProps {
|
|
|
386
386
|
className?: string;
|
|
387
387
|
}
|
|
388
388
|
|
|
389
|
-
export declare const InlineSpinner: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<default_2.RefAttributes<
|
|
389
|
+
export declare const InlineSpinner: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<InlineSpinnerProps & default_2.RefAttributes<InlineSpinnerHandle>>>;
|
|
390
|
+
|
|
391
|
+
declare interface InlineSpinnerHandle extends ModelHandle {
|
|
392
|
+
}
|
|
390
393
|
|
|
391
394
|
export declare interface InlineSpinnerProps extends SpinnerProps {
|
|
392
395
|
inline?: boolean;
|
|
396
|
+
defaultOpen?: boolean;
|
|
397
|
+
modelClassName?: string | Record<string, any>;
|
|
393
398
|
}
|
|
394
399
|
|
|
395
400
|
export declare const Input: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>>;
|
|
@@ -657,6 +662,7 @@ declare type NetworkMapProps_2 = {
|
|
|
657
662
|
};
|
|
658
663
|
hideLinks: boolean;
|
|
659
664
|
mapProps: MapProps;
|
|
665
|
+
customControlButtons: default_2.ReactNode[];
|
|
660
666
|
menuItems: {
|
|
661
667
|
label: string;
|
|
662
668
|
action?: (args: {
|
package/dist/nextgen.js
CHANGED
|
@@ -6636,33 +6636,41 @@ const SpinnerDialog = forwardRef((props, ref) => {
|
|
|
6636
6636
|
const rref = useRef();
|
|
6637
6637
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Model, { inline, ref: ref || rref, className: cn("z-[30000]", modelClassName), children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spinner, { variant, size, period, onAbort, text, timeout: timeout2 }) }) });
|
|
6638
6638
|
});
|
|
6639
|
-
const InlineSpinnerComponent = forwardRef(
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6639
|
+
const InlineSpinnerComponent = forwardRef(
|
|
6640
|
+
(props, ref) => {
|
|
6641
|
+
const { defaultOpen, ...restProps } = props;
|
|
6642
|
+
const internalRef = useRef(null);
|
|
6643
|
+
const spinnerRef = ref || internalRef;
|
|
6644
|
+
useEffect(() => {
|
|
6645
|
+
if (defaultOpen) {
|
|
6646
|
+
const timer = setTimeout(() => {
|
|
6647
|
+
var _a;
|
|
6648
|
+
const currentRef = ref || internalRef;
|
|
6649
|
+
if (currentRef && typeof currentRef === "object" && "current" in currentRef) {
|
|
6650
|
+
if ((_a = currentRef.current) == null ? void 0 : _a.open) {
|
|
6651
|
+
currentRef.current.open();
|
|
6652
|
+
}
|
|
6653
|
+
}
|
|
6654
|
+
}, 0);
|
|
6655
|
+
return () => clearTimeout(timer);
|
|
6652
6656
|
}
|
|
6653
|
-
}
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6657
|
+
}, [defaultOpen]);
|
|
6658
|
+
const SpinnerDialogTyped = SpinnerDialog;
|
|
6659
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
6660
|
+
SpinnerDialogTyped,
|
|
6661
|
+
{
|
|
6662
|
+
...restProps,
|
|
6663
|
+
inline: true,
|
|
6664
|
+
open: true,
|
|
6665
|
+
ref: spinnerRef
|
|
6666
|
+
}
|
|
6667
|
+
);
|
|
6668
|
+
}
|
|
6669
|
+
);
|
|
6670
|
+
InlineSpinnerComponent.displayName = "InlineSpinner";
|
|
6671
|
+
const InlineSpinner = memo(InlineSpinnerComponent, (prevProps, nextProps) => {
|
|
6672
|
+
return prevProps.defaultOpen === nextProps.defaultOpen && prevProps.variant === nextProps.variant && prevProps.size === nextProps.size && prevProps.text === nextProps.text && prevProps.timeout === nextProps.timeout && prevProps.period === nextProps.period && prevProps.onAbort === nextProps.onAbort && prevProps.className === nextProps.className && prevProps.modelClassName === nextProps.modelClassName;
|
|
6664
6673
|
});
|
|
6665
|
-
const InlineSpinner = memo(InlineSpinnerComponent);
|
|
6666
6674
|
const buttonVariants = cva(
|
|
6667
6675
|
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed disabled:pointer-events-auto",
|
|
6668
6676
|
{
|
|
@@ -12380,7 +12388,12 @@ const Model = forwardRef((props, ref) => {
|
|
|
12380
12388
|
onContextMenu: handleContextMenu,
|
|
12381
12389
|
onClick: handleWrapperClose,
|
|
12382
12390
|
id,
|
|
12383
|
-
className: cn(
|
|
12391
|
+
className: cn(
|
|
12392
|
+
vrs$g({ variant, inline, blur }),
|
|
12393
|
+
"custom-click-away flex justify-center items-center opacity-100",
|
|
12394
|
+
className,
|
|
12395
|
+
open && "z-[300]"
|
|
12396
|
+
),
|
|
12384
12397
|
children
|
|
12385
12398
|
}
|
|
12386
12399
|
) }) });
|
|
@@ -14711,7 +14724,8 @@ const SourcesPorts$1 = memo(SourcesPorts);
|
|
|
14711
14724
|
const CustomNavigateButtons = (props) => {
|
|
14712
14725
|
const {
|
|
14713
14726
|
mapApi,
|
|
14714
|
-
showGoNodeControlButton
|
|
14727
|
+
showGoNodeControlButton,
|
|
14728
|
+
customControlButtons = []
|
|
14715
14729
|
} = props;
|
|
14716
14730
|
const onMapPinClick = () => {
|
|
14717
14731
|
var _a, _b, _c, _d;
|
|
@@ -14719,7 +14733,12 @@ const CustomNavigateButtons = (props) => {
|
|
|
14719
14733
|
(_c = (_b = (_a = mapApi == null ? void 0 : mapApi.current) == null ? void 0 : _a.nodes) == null ? void 0 : _b[0]) == null ? void 0 : _c.elementId
|
|
14720
14734
|
);
|
|
14721
14735
|
};
|
|
14722
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
14736
|
+
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: [
|
|
14737
|
+
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 }) }),
|
|
14738
|
+
customControlButtons == null ? void 0 : customControlButtons.map((button, index) => {
|
|
14739
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: button }, "custom-control-button-" + qindex);
|
|
14740
|
+
})
|
|
14741
|
+
] });
|
|
14723
14742
|
};
|
|
14724
14743
|
const CustomNavigateButtons$1 = memo(CustomNavigateButtons);
|
|
14725
14744
|
const baseFont = 0.75;
|
|
@@ -14754,6 +14773,7 @@ const NetworkMapComponent = forwardRef((props, ref) => {
|
|
|
14754
14773
|
MapLogoClassName,
|
|
14755
14774
|
MapLogoStyle,
|
|
14756
14775
|
linkAnimation = true,
|
|
14776
|
+
customControlButtons = [],
|
|
14757
14777
|
showGoNodeControlButton = true,
|
|
14758
14778
|
onConnClick = () => {
|
|
14759
14779
|
},
|
|
@@ -15349,7 +15369,8 @@ const NetworkMapComponent = forwardRef((props, ref) => {
|
|
|
15349
15369
|
CustomNavigateButtons$1,
|
|
15350
15370
|
{
|
|
15351
15371
|
mapApi: ref,
|
|
15352
|
-
showGoNodeControlButton
|
|
15372
|
+
showGoNodeControlButton,
|
|
15373
|
+
customControlButtons
|
|
15353
15374
|
}
|
|
15354
15375
|
),
|
|
15355
15376
|
MapLogo && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -19417,7 +19438,7 @@ const Topbar = (props) => {
|
|
|
19417
19438
|
);
|
|
19418
19439
|
expandApi.triggerExpansion("internal", expandApi.expanded);
|
|
19419
19440
|
}, [(_b = callback.cell) == null ? void 0 : _b.value]);
|
|
19420
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center w-full css-klk212 border-b p-
|
|
19441
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center w-full css-klk212 border-b p-1 overflow-hidden h-[40px]", children: [
|
|
19421
19442
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "select-none font-aptos font-[400] flex w-[calc(100%)-80px]", children: [
|
|
19422
19443
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-black w-fit text-nowrap border-r mr-4 pr-2 ", children: tableName }),
|
|
19423
19444
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "select-none font-Roboto text-black text-nowrap w-full flex", children: [
|
|
@@ -19425,12 +19446,13 @@ const Topbar = (props) => {
|
|
|
19425
19446
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: " max-w-[300px] z-0 ml-2 text-gray-600 truncate", title: (_d = cell.value) == null ? void 0 : _d.toString(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(Label$1, { className: "capitaliz", children: ((_e = cell.value) == null ? void 0 : _e.toString()) ? (_f = cell.value) == null ? void 0 : _f.toString() : "" }) })
|
|
19426
19447
|
] })
|
|
19427
19448
|
] }),
|
|
19428
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center space-x-2 mr-1 p-1 border-l absolute right-0 css-klk212 z-10", children: [
|
|
19449
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center space-x-2 mr-1 p-1 border-l absolute right-0 css-klk212 z-10 scale-90", children: [
|
|
19429
19450
|
isFilterApplied ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19430
19451
|
IconButton$1,
|
|
19431
19452
|
{
|
|
19432
19453
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(FilterX, { color: "gray" }),
|
|
19433
19454
|
tooltip: "Clear all filters.",
|
|
19455
|
+
outline: false,
|
|
19434
19456
|
onClick: () => {
|
|
19435
19457
|
setFilterItems((prev2) => {
|
|
19436
19458
|
prev2.row.map((item) => {
|
|
@@ -19450,6 +19472,7 @@ const Topbar = (props) => {
|
|
|
19450
19472
|
{
|
|
19451
19473
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(RotateCw, {}),
|
|
19452
19474
|
tooltip: "Refresh",
|
|
19475
|
+
outline: false,
|
|
19453
19476
|
disable: isRefreshDisabled,
|
|
19454
19477
|
onClick: () => {
|
|
19455
19478
|
onRefresh(callback);
|
|
@@ -19459,6 +19482,7 @@ const Topbar = (props) => {
|
|
|
19459
19482
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19460
19483
|
IconButton$1,
|
|
19461
19484
|
{
|
|
19485
|
+
outline: false,
|
|
19462
19486
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(Fullscreen, {}),
|
|
19463
19487
|
tooltip: "Fullscreen",
|
|
19464
19488
|
onClick: () => {
|
|
@@ -19472,6 +19496,7 @@ const Topbar = (props) => {
|
|
|
19472
19496
|
{
|
|
19473
19497
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(FoldHorizontal, {}),
|
|
19474
19498
|
tooltip: "Autofit columns",
|
|
19499
|
+
outline: false,
|
|
19475
19500
|
onClick: () => {
|
|
19476
19501
|
callback.autoFit(false);
|
|
19477
19502
|
}
|
|
@@ -19480,6 +19505,7 @@ const Topbar = (props) => {
|
|
|
19480
19505
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19481
19506
|
IconButton$1,
|
|
19482
19507
|
{
|
|
19508
|
+
outline: false,
|
|
19483
19509
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(Download, {}),
|
|
19484
19510
|
tooltip: "Export(CSV)",
|
|
19485
19511
|
onClick: () => {
|
|
@@ -19490,6 +19516,7 @@ const Topbar = (props) => {
|
|
|
19490
19516
|
enableExpand && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19491
19517
|
IconButton$1,
|
|
19492
19518
|
{
|
|
19519
|
+
outline: false,
|
|
19493
19520
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(Brackets, {}),
|
|
19494
19521
|
disable: expandBtnDisable,
|
|
19495
19522
|
tooltip: "Expand Cell Array Items",
|
|
@@ -19499,6 +19526,7 @@ const Topbar = (props) => {
|
|
|
19499
19526
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
19500
19527
|
IconButton$1,
|
|
19501
19528
|
{
|
|
19529
|
+
outline: false,
|
|
19502
19530
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(LucideEllipsisVertical, {}),
|
|
19503
19531
|
tooltip: "Show more options",
|
|
19504
19532
|
onClick: (e) => {
|
|
@@ -19907,9 +19935,7 @@ const TableComponent = forwardRef((props, ref) => {
|
|
|
19907
19935
|
setCell({ header: hasValue ? cell.header : " ", value: hasValue ? cell.value : " ", params });
|
|
19908
19936
|
setShowCopyMenuButton(hasValue);
|
|
19909
19937
|
event.preventDefault();
|
|
19910
|
-
|
|
19911
|
-
setTableBodyMenuEvent(event);
|
|
19912
|
-
});
|
|
19938
|
+
setTableBodyMenuEvent(event);
|
|
19913
19939
|
}, [cell.value, cell.header]);
|
|
19914
19940
|
useEffect(() => {
|
|
19915
19941
|
if (ready) {
|
|
@@ -20229,7 +20255,7 @@ const TableComponent = forwardRef((props, ref) => {
|
|
|
20229
20255
|
close: false
|
|
20230
20256
|
}
|
|
20231
20257
|
),
|
|
20232
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("w-full relative flex flex-col", topbar ? "h-[calc(100%-
|
|
20258
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn("w-full relative flex flex-col", topbar ? "h-[calc(100%-40px)] " : "h-full"), children: [
|
|
20233
20259
|
showTableSpinner ? /* @__PURE__ */ jsxRuntimeExports.jsx(InlineSpinner, { variant: "white", defaultOpen: true }) : false,
|
|
20234
20260
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20235
20261
|
AgGridReact,
|