@optifye/dashboard-core 6.12.19 → 6.12.20
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/index.js +28 -21
- package/dist/index.mjs +28 -21
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -54907,27 +54907,34 @@ var WorkspaceGrid = React144__namespace.default.memo(({
|
|
|
54907
54907
|
[viewMode, workspaces]
|
|
54908
54908
|
);
|
|
54909
54909
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex flex-col w-full h-full overflow-hidden bg-slate-50/50 ${className}`, children: [
|
|
54910
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
54911
|
-
|
|
54912
|
-
|
|
54913
|
-
|
|
54914
|
-
|
|
54915
|
-
|
|
54916
|
-
{
|
|
54917
|
-
|
|
54918
|
-
|
|
54919
|
-
|
|
54920
|
-
|
|
54921
|
-
|
|
54922
|
-
|
|
54923
|
-
|
|
54924
|
-
|
|
54925
|
-
|
|
54926
|
-
|
|
54927
|
-
|
|
54928
|
-
|
|
54929
|
-
|
|
54930
|
-
|
|
54910
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
54911
|
+
"div",
|
|
54912
|
+
{
|
|
54913
|
+
"data-testid": "workspace-grid-toolbar",
|
|
54914
|
+
className: "relative z-[100] flex-none px-4 py-3 flex flex-row items-center justify-between gap-4",
|
|
54915
|
+
children: [
|
|
54916
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "hidden sm:block", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "inline-flex bg-white/95 rounded-lg shadow-sm px-4 py-2 border border-slate-200/60 backdrop-blur-sm", children: /* @__PURE__ */ jsxRuntime.jsx(Legend5, { legend, metricLabel: legendMetricLabel }) }) }),
|
|
54917
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-end gap-3 shrink-0", children: [
|
|
54918
|
+
toolbarRightContent,
|
|
54919
|
+
mapViewEnabled && /* @__PURE__ */ jsxRuntime.jsx(
|
|
54920
|
+
"button",
|
|
54921
|
+
{
|
|
54922
|
+
onClick: handleViewModeToggle,
|
|
54923
|
+
className: "flex items-center gap-2 px-3 py-1.5 bg-white border border-slate-200 rounded-md shadow-sm hover:bg-slate-50 transition-colors duration-200 text-slate-700",
|
|
54924
|
+
title: viewMode === "video" ? "Switch to Map View" : "Switch to Video View",
|
|
54925
|
+
children: viewMode === "video" ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
54926
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Map, { className: "w-4 h-4 text-slate-500" }),
|
|
54927
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "hidden sm:inline text-sm font-medium", children: "Map View" })
|
|
54928
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
54929
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Video, { className: "w-4 h-4 text-slate-500" }),
|
|
54930
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "hidden sm:inline text-sm font-medium", children: "Video View" })
|
|
54931
|
+
] })
|
|
54932
|
+
}
|
|
54933
|
+
)
|
|
54934
|
+
] })
|
|
54935
|
+
]
|
|
54936
|
+
}
|
|
54937
|
+
),
|
|
54931
54938
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sm:hidden px-3 py-2 bg-white border-b border-slate-200/60 z-10", children: /* @__PURE__ */ jsxRuntime.jsx(Legend5, { legend, metricLabel: legendMetricLabel }) }),
|
|
54932
54939
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 relative overflow-hidden", children: /* @__PURE__ */ jsxRuntime.jsx(AnimatePresence, { mode: "wait", children: viewMode === "video" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
54933
54940
|
motion.div,
|
package/dist/index.mjs
CHANGED
|
@@ -54878,27 +54878,34 @@ var WorkspaceGrid = React144__default.memo(({
|
|
|
54878
54878
|
[viewMode, workspaces]
|
|
54879
54879
|
);
|
|
54880
54880
|
return /* @__PURE__ */ jsxs("div", { className: `flex flex-col w-full h-full overflow-hidden bg-slate-50/50 ${className}`, children: [
|
|
54881
|
-
/* @__PURE__ */ jsxs(
|
|
54882
|
-
|
|
54883
|
-
|
|
54884
|
-
|
|
54885
|
-
|
|
54886
|
-
|
|
54887
|
-
{
|
|
54888
|
-
|
|
54889
|
-
|
|
54890
|
-
|
|
54891
|
-
|
|
54892
|
-
|
|
54893
|
-
|
|
54894
|
-
|
|
54895
|
-
|
|
54896
|
-
|
|
54897
|
-
|
|
54898
|
-
|
|
54899
|
-
|
|
54900
|
-
|
|
54901
|
-
|
|
54881
|
+
/* @__PURE__ */ jsxs(
|
|
54882
|
+
"div",
|
|
54883
|
+
{
|
|
54884
|
+
"data-testid": "workspace-grid-toolbar",
|
|
54885
|
+
className: "relative z-[100] flex-none px-4 py-3 flex flex-row items-center justify-between gap-4",
|
|
54886
|
+
children: [
|
|
54887
|
+
/* @__PURE__ */ jsx("div", { className: "hidden sm:block", children: /* @__PURE__ */ jsx("div", { className: "inline-flex bg-white/95 rounded-lg shadow-sm px-4 py-2 border border-slate-200/60 backdrop-blur-sm", children: /* @__PURE__ */ jsx(Legend5, { legend, metricLabel: legendMetricLabel }) }) }),
|
|
54888
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-3 shrink-0", children: [
|
|
54889
|
+
toolbarRightContent,
|
|
54890
|
+
mapViewEnabled && /* @__PURE__ */ jsx(
|
|
54891
|
+
"button",
|
|
54892
|
+
{
|
|
54893
|
+
onClick: handleViewModeToggle,
|
|
54894
|
+
className: "flex items-center gap-2 px-3 py-1.5 bg-white border border-slate-200 rounded-md shadow-sm hover:bg-slate-50 transition-colors duration-200 text-slate-700",
|
|
54895
|
+
title: viewMode === "video" ? "Switch to Map View" : "Switch to Video View",
|
|
54896
|
+
children: viewMode === "video" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
54897
|
+
/* @__PURE__ */ jsx(Map$1, { className: "w-4 h-4 text-slate-500" }),
|
|
54898
|
+
/* @__PURE__ */ jsx("span", { className: "hidden sm:inline text-sm font-medium", children: "Map View" })
|
|
54899
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
54900
|
+
/* @__PURE__ */ jsx(Video, { className: "w-4 h-4 text-slate-500" }),
|
|
54901
|
+
/* @__PURE__ */ jsx("span", { className: "hidden sm:inline text-sm font-medium", children: "Video View" })
|
|
54902
|
+
] })
|
|
54903
|
+
}
|
|
54904
|
+
)
|
|
54905
|
+
] })
|
|
54906
|
+
]
|
|
54907
|
+
}
|
|
54908
|
+
),
|
|
54902
54909
|
/* @__PURE__ */ jsx("div", { className: "sm:hidden px-3 py-2 bg-white border-b border-slate-200/60 z-10", children: /* @__PURE__ */ jsx(Legend5, { legend, metricLabel: legendMetricLabel }) }),
|
|
54903
54910
|
/* @__PURE__ */ jsx("div", { className: "flex-1 relative overflow-hidden", children: /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: viewMode === "video" ? /* @__PURE__ */ jsx(
|
|
54904
54911
|
motion.div,
|