@natoora-libs/core 0.2.32-global-search-dev → 0.2.32
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/components/index.cjs +642 -928
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +18 -40
- package/dist/components/index.d.ts +18 -40
- package/dist/components/index.js +540 -824
- package/dist/components/index.js.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -5750,283 +5750,10 @@ var FixedFooter = ({ justifyContent, children }) => {
|
|
|
5750
5750
|
};
|
|
5751
5751
|
var FixedFooter_default = React4.memo(FixedFooter);
|
|
5752
5752
|
|
|
5753
|
-
// src/components/GlobalSearchTrigger/GlobalSearchTrigger.tsx
|
|
5754
|
-
import { memo as memo14 } from "react";
|
|
5755
|
-
import SearchRoundedIcon from "@mui/icons-material/SearchRounded";
|
|
5756
|
-
import { Box as Box29, InputBase, Paper as Paper3 } from "@mui/material";
|
|
5757
|
-
import { alpha as alpha2 } from "@mui/material/styles";
|
|
5758
|
-
import { jsx as jsx97, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
5759
|
-
var GlobalSearchTrigger = ({
|
|
5760
|
-
onClick,
|
|
5761
|
-
onFocus,
|
|
5762
|
-
onChange,
|
|
5763
|
-
onKeyDown,
|
|
5764
|
-
readOnly = true,
|
|
5765
|
-
placeholder = "Search",
|
|
5766
|
-
ariaLabel = "Global search",
|
|
5767
|
-
shortcutLabel = "\u2318 K",
|
|
5768
|
-
value = "",
|
|
5769
|
-
minWidth = 220,
|
|
5770
|
-
sx,
|
|
5771
|
-
ref,
|
|
5772
|
-
inputRef
|
|
5773
|
-
}) => {
|
|
5774
|
-
return /* @__PURE__ */ jsxs61(
|
|
5775
|
-
Paper3,
|
|
5776
|
-
{
|
|
5777
|
-
ref,
|
|
5778
|
-
elevation: 0,
|
|
5779
|
-
onClick,
|
|
5780
|
-
role: "search",
|
|
5781
|
-
sx: {
|
|
5782
|
-
display: "flex",
|
|
5783
|
-
alignItems: "center",
|
|
5784
|
-
gap: 1,
|
|
5785
|
-
border: `1px solid ${alpha2(colors.white, 0.22)}`,
|
|
5786
|
-
borderRadius: 1,
|
|
5787
|
-
px: 1.5,
|
|
5788
|
-
py: 0.75,
|
|
5789
|
-
minWidth,
|
|
5790
|
-
backgroundColor: alpha2(colors.black, 0.2),
|
|
5791
|
-
color: alpha2(colors.white, 0.82),
|
|
5792
|
-
transition: "background-color 0.15s ease, border-color 0.15s ease",
|
|
5793
|
-
"&:hover": {
|
|
5794
|
-
borderColor: alpha2(colors.white, 0.38),
|
|
5795
|
-
backgroundColor: alpha2(colors.black, 0.35)
|
|
5796
|
-
},
|
|
5797
|
-
"&:focus-within": {
|
|
5798
|
-
borderColor: alpha2(colors.muiPrimary, 0.95),
|
|
5799
|
-
backgroundColor: alpha2(colors.black, 0.35)
|
|
5800
|
-
},
|
|
5801
|
-
...sx
|
|
5802
|
-
},
|
|
5803
|
-
children: [
|
|
5804
|
-
/* @__PURE__ */ jsx97(SearchRoundedIcon, { sx: { fontSize: 19, color: colors.muiPrimary } }),
|
|
5805
|
-
/* @__PURE__ */ jsx97(
|
|
5806
|
-
InputBase,
|
|
5807
|
-
{
|
|
5808
|
-
inputRef,
|
|
5809
|
-
value,
|
|
5810
|
-
readOnly,
|
|
5811
|
-
onFocus,
|
|
5812
|
-
onKeyDown,
|
|
5813
|
-
onChange: (event) => onChange?.(event.target.value),
|
|
5814
|
-
placeholder,
|
|
5815
|
-
inputProps: { "aria-label": ariaLabel },
|
|
5816
|
-
sx: {
|
|
5817
|
-
flexGrow: 1,
|
|
5818
|
-
color: alpha2(colors.white, 0.82),
|
|
5819
|
-
fontSize: 14,
|
|
5820
|
-
"& input::placeholder": {
|
|
5821
|
-
color: alpha2(colors.white, 0.62),
|
|
5822
|
-
opacity: 1
|
|
5823
|
-
}
|
|
5824
|
-
}
|
|
5825
|
-
}
|
|
5826
|
-
),
|
|
5827
|
-
/* @__PURE__ */ jsx97(
|
|
5828
|
-
Box29,
|
|
5829
|
-
{
|
|
5830
|
-
sx: {
|
|
5831
|
-
border: `1px solid ${alpha2(colors.white, 0.32)}`,
|
|
5832
|
-
borderRadius: "5px",
|
|
5833
|
-
px: 0.6,
|
|
5834
|
-
py: 0.2,
|
|
5835
|
-
fontSize: 11,
|
|
5836
|
-
lineHeight: 1
|
|
5837
|
-
},
|
|
5838
|
-
children: shortcutLabel
|
|
5839
|
-
}
|
|
5840
|
-
)
|
|
5841
|
-
]
|
|
5842
|
-
}
|
|
5843
|
-
);
|
|
5844
|
-
};
|
|
5845
|
-
var GlobalSearchTrigger_default = memo14(GlobalSearchTrigger);
|
|
5846
|
-
|
|
5847
|
-
// src/components/GlobalSearch/GlobalSearch.tsx
|
|
5848
|
-
import { memo as memo15, useCallback as useCallback2, useEffect as useEffect5, useRef as useRef5, useState as useState7 } from "react";
|
|
5849
|
-
import { Box as Box30 } from "@mui/material";
|
|
5850
|
-
import { jsx as jsx98 } from "react/jsx-runtime";
|
|
5851
|
-
var IFRAME_MESSAGE_SOURCE = "global-search-iframe";
|
|
5852
|
-
var HOST_SOURCE = "global-search-host";
|
|
5853
|
-
var COLLAPSED_HEIGHT = 44;
|
|
5854
|
-
var MAX_WIDTH = 760;
|
|
5855
|
-
var MIN_WIDTH = 280;
|
|
5856
|
-
var MAX_HEIGHT = 820;
|
|
5857
|
-
var WIDGET_SRC = "/react/search/widget";
|
|
5858
|
-
var isEditableElement = (target) => {
|
|
5859
|
-
if (!(target instanceof HTMLElement)) {
|
|
5860
|
-
return false;
|
|
5861
|
-
}
|
|
5862
|
-
if (target.isContentEditable) {
|
|
5863
|
-
return true;
|
|
5864
|
-
}
|
|
5865
|
-
const tagName = target.tagName.toLowerCase();
|
|
5866
|
-
const role = target.getAttribute("role");
|
|
5867
|
-
return tagName === "input" || tagName === "textarea" || tagName === "select" || role === "textbox";
|
|
5868
|
-
};
|
|
5869
|
-
var GlobalSearch = ({
|
|
5870
|
-
onNavigate,
|
|
5871
|
-
shouldUseWindowLocation = (path) => path.startsWith("/react/") || path.startsWith("/#/")
|
|
5872
|
-
}) => {
|
|
5873
|
-
const iframeRef = useRef5(null);
|
|
5874
|
-
const wrapperRef = useRef5(null);
|
|
5875
|
-
const [open, setOpen] = useState7(false);
|
|
5876
|
-
const [height, setHeight] = useState7(COLLAPSED_HEIGHT);
|
|
5877
|
-
const widgetSrc = WIDGET_SRC;
|
|
5878
|
-
const widgetOrigin = new URL(widgetSrc, window.location.origin).origin;
|
|
5879
|
-
const postToIframe = useCallback2(
|
|
5880
|
-
(type) => {
|
|
5881
|
-
const targetWindow = iframeRef.current?.contentWindow;
|
|
5882
|
-
if (!targetWindow) {
|
|
5883
|
-
return;
|
|
5884
|
-
}
|
|
5885
|
-
targetWindow.postMessage(
|
|
5886
|
-
{
|
|
5887
|
-
source: HOST_SOURCE,
|
|
5888
|
-
type
|
|
5889
|
-
},
|
|
5890
|
-
widgetOrigin
|
|
5891
|
-
);
|
|
5892
|
-
},
|
|
5893
|
-
[widgetOrigin]
|
|
5894
|
-
);
|
|
5895
|
-
const close = useCallback2(() => {
|
|
5896
|
-
setOpen(false);
|
|
5897
|
-
setHeight(COLLAPSED_HEIGHT);
|
|
5898
|
-
postToIframe("GLOBAL_SEARCH_CLOSE");
|
|
5899
|
-
}, [postToIframe]);
|
|
5900
|
-
const toggle = useCallback2(() => {
|
|
5901
|
-
setOpen(true);
|
|
5902
|
-
setHeight(MAX_HEIGHT);
|
|
5903
|
-
postToIframe("GLOBAL_SEARCH_TOGGLE");
|
|
5904
|
-
}, [postToIframe]);
|
|
5905
|
-
useEffect5(() => {
|
|
5906
|
-
const onKeyDown = (event) => {
|
|
5907
|
-
const isCommandOrCtrl = event.metaKey || event.ctrlKey;
|
|
5908
|
-
if (isCommandOrCtrl && event.key.toLowerCase() === "k") {
|
|
5909
|
-
if (isEditableElement(event.target) && !open) {
|
|
5910
|
-
return;
|
|
5911
|
-
}
|
|
5912
|
-
event.preventDefault();
|
|
5913
|
-
toggle();
|
|
5914
|
-
}
|
|
5915
|
-
if (event.key === "Escape" && open) {
|
|
5916
|
-
event.preventDefault();
|
|
5917
|
-
close();
|
|
5918
|
-
}
|
|
5919
|
-
};
|
|
5920
|
-
window.addEventListener("keydown", onKeyDown);
|
|
5921
|
-
return () => window.removeEventListener("keydown", onKeyDown);
|
|
5922
|
-
}, [close, open, toggle]);
|
|
5923
|
-
useEffect5(() => {
|
|
5924
|
-
if (!open) {
|
|
5925
|
-
return void 0;
|
|
5926
|
-
}
|
|
5927
|
-
const onPointerDown = (event) => {
|
|
5928
|
-
const wrapper = wrapperRef.current;
|
|
5929
|
-
if (!wrapper) {
|
|
5930
|
-
return;
|
|
5931
|
-
}
|
|
5932
|
-
const target = event.target;
|
|
5933
|
-
if (!(target instanceof Node)) {
|
|
5934
|
-
return;
|
|
5935
|
-
}
|
|
5936
|
-
if (!wrapper.contains(target)) {
|
|
5937
|
-
close();
|
|
5938
|
-
}
|
|
5939
|
-
};
|
|
5940
|
-
document.addEventListener("pointerdown", onPointerDown, true);
|
|
5941
|
-
return () => document.removeEventListener("pointerdown", onPointerDown, true);
|
|
5942
|
-
}, [close, open]);
|
|
5943
|
-
useEffect5(() => {
|
|
5944
|
-
const onMessage = (event) => {
|
|
5945
|
-
if (event.origin !== widgetOrigin) {
|
|
5946
|
-
return;
|
|
5947
|
-
}
|
|
5948
|
-
const iframeWindow = iframeRef.current?.contentWindow;
|
|
5949
|
-
if (iframeWindow && event.source !== iframeWindow) {
|
|
5950
|
-
return;
|
|
5951
|
-
}
|
|
5952
|
-
const data = event.data;
|
|
5953
|
-
if (!data || data.source !== IFRAME_MESSAGE_SOURCE) {
|
|
5954
|
-
return;
|
|
5955
|
-
}
|
|
5956
|
-
if (data.type === "GLOBAL_SEARCH_CLOSE") {
|
|
5957
|
-
setOpen(false);
|
|
5958
|
-
setHeight(COLLAPSED_HEIGHT);
|
|
5959
|
-
return;
|
|
5960
|
-
}
|
|
5961
|
-
if (data.type === "GLOBAL_SEARCH_RESIZE") {
|
|
5962
|
-
const nextHeight = Math.max(
|
|
5963
|
-
COLLAPSED_HEIGHT,
|
|
5964
|
-
Math.min(MAX_HEIGHT, Math.ceil(Number(data.height || 0)))
|
|
5965
|
-
);
|
|
5966
|
-
setHeight(nextHeight);
|
|
5967
|
-
setOpen(nextHeight > COLLAPSED_HEIGHT + 1);
|
|
5968
|
-
return;
|
|
5969
|
-
}
|
|
5970
|
-
if (data.type === "GLOBAL_SEARCH_NAVIGATE") {
|
|
5971
|
-
const rawRoute = data.route;
|
|
5972
|
-
if (!rawRoute || !rawRoute.startsWith("/")) {
|
|
5973
|
-
return;
|
|
5974
|
-
}
|
|
5975
|
-
setOpen(false);
|
|
5976
|
-
setHeight(COLLAPSED_HEIGHT);
|
|
5977
|
-
const nextRoute = rawRoute.startsWith("/react/") || rawRoute.startsWith("/#/") ? rawRoute : `/react${rawRoute}`;
|
|
5978
|
-
if (nextRoute.startsWith("/react/") || shouldUseWindowLocation(rawRoute)) {
|
|
5979
|
-
window.location.assign(nextRoute);
|
|
5980
|
-
return;
|
|
5981
|
-
}
|
|
5982
|
-
onNavigate?.(nextRoute);
|
|
5983
|
-
}
|
|
5984
|
-
};
|
|
5985
|
-
window.addEventListener("message", onMessage);
|
|
5986
|
-
return () => window.removeEventListener("message", onMessage);
|
|
5987
|
-
}, [onNavigate, shouldUseWindowLocation, widgetOrigin]);
|
|
5988
|
-
return /* @__PURE__ */ jsx98(
|
|
5989
|
-
Box30,
|
|
5990
|
-
{
|
|
5991
|
-
ref: wrapperRef,
|
|
5992
|
-
sx: {
|
|
5993
|
-
position: "relative",
|
|
5994
|
-
overflow: "visible",
|
|
5995
|
-
width: "100%",
|
|
5996
|
-
maxWidth: MAX_WIDTH,
|
|
5997
|
-
minWidth: MIN_WIDTH,
|
|
5998
|
-
flex: "1 1 420px",
|
|
5999
|
-
height: COLLAPSED_HEIGHT
|
|
6000
|
-
},
|
|
6001
|
-
children: /* @__PURE__ */ jsx98(
|
|
6002
|
-
"iframe",
|
|
6003
|
-
{
|
|
6004
|
-
ref: iframeRef,
|
|
6005
|
-
title: "Global Search",
|
|
6006
|
-
"data-testid": "global-search-widget-iframe",
|
|
6007
|
-
src: widgetSrc,
|
|
6008
|
-
scrolling: "no",
|
|
6009
|
-
style: {
|
|
6010
|
-
position: "absolute",
|
|
6011
|
-
top: 0,
|
|
6012
|
-
right: 0,
|
|
6013
|
-
width: "100%",
|
|
6014
|
-
height,
|
|
6015
|
-
border: 0,
|
|
6016
|
-
display: "block",
|
|
6017
|
-
backgroundColor: "transparent"
|
|
6018
|
-
}
|
|
6019
|
-
}
|
|
6020
|
-
)
|
|
6021
|
-
}
|
|
6022
|
-
);
|
|
6023
|
-
};
|
|
6024
|
-
var GlobalSearch_default = memo15(GlobalSearch);
|
|
6025
|
-
|
|
6026
5753
|
// src/components/Header/Header.tsx
|
|
6027
|
-
import { Paper as
|
|
5754
|
+
import { Paper as Paper3 } from "@mui/material";
|
|
6028
5755
|
import { makeStyles as makeStyles28 } from "tss-react/mui";
|
|
6029
|
-
import { jsx as
|
|
5756
|
+
import { jsx as jsx97, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
6030
5757
|
var useStyles28 = makeStyles28()((theme) => ({
|
|
6031
5758
|
container: {
|
|
6032
5759
|
margin: theme.spacing(1)
|
|
@@ -6049,16 +5776,16 @@ var Header = ({
|
|
|
6049
5776
|
wrappedHeader = false
|
|
6050
5777
|
}) => {
|
|
6051
5778
|
const { classes, cx } = useStyles28();
|
|
6052
|
-
return /* @__PURE__ */
|
|
6053
|
-
|
|
5779
|
+
return /* @__PURE__ */ jsx97(
|
|
5780
|
+
Paper3,
|
|
6054
5781
|
{
|
|
6055
5782
|
className: cx({
|
|
6056
5783
|
[classes.container]: !wrappedHeader
|
|
6057
5784
|
}),
|
|
6058
5785
|
elevation: wrappedHeader ? 0 : 1,
|
|
6059
|
-
children: /* @__PURE__ */
|
|
6060
|
-
/* @__PURE__ */
|
|
6061
|
-
children ? /* @__PURE__ */
|
|
5786
|
+
children: /* @__PURE__ */ jsxs61("header", { className: classes.header, children: [
|
|
5787
|
+
/* @__PURE__ */ jsx97(AppLabel_default, { appName }),
|
|
5788
|
+
children ? /* @__PURE__ */ jsx97("div", { className: classes.rightContent, children }) : null
|
|
6062
5789
|
] })
|
|
6063
5790
|
}
|
|
6064
5791
|
);
|
|
@@ -6068,20 +5795,20 @@ var Header_default = Header;
|
|
|
6068
5795
|
// src/components/List/List.tsx
|
|
6069
5796
|
import { FixedSizeList } from "react-window";
|
|
6070
5797
|
import { ListItem, ListItemText as ListItemText3 } from "@mui/material";
|
|
6071
|
-
import { Fragment as Fragment8, jsx as
|
|
5798
|
+
import { Fragment as Fragment8, jsx as jsx98, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
6072
5799
|
var ListHeader = (props) => {
|
|
6073
5800
|
const headers = props.headers || [];
|
|
6074
|
-
return /* @__PURE__ */
|
|
5801
|
+
return /* @__PURE__ */ jsx98(ListItem, { children: headers.map((header, i) => (
|
|
6075
5802
|
// eslint-disable-next-line react/no-array-index-key
|
|
6076
|
-
/* @__PURE__ */
|
|
5803
|
+
/* @__PURE__ */ jsx98(ListItemText3, { primary: header.text }, i)
|
|
6077
5804
|
)) });
|
|
6078
5805
|
};
|
|
6079
5806
|
function VirtualizedList(props) {
|
|
6080
5807
|
const { innerWidth, innerHeight } = window;
|
|
6081
5808
|
const { headers, items, renderItem } = props;
|
|
6082
|
-
return /* @__PURE__ */
|
|
6083
|
-
/* @__PURE__ */
|
|
6084
|
-
/* @__PURE__ */
|
|
5809
|
+
return /* @__PURE__ */ jsxs62(Fragment8, { children: [
|
|
5810
|
+
/* @__PURE__ */ jsx98(ListHeader, { headers }),
|
|
5811
|
+
/* @__PURE__ */ jsx98(
|
|
6085
5812
|
FixedSizeList,
|
|
6086
5813
|
{
|
|
6087
5814
|
height: innerHeight - 150,
|
|
@@ -6097,11 +5824,11 @@ function VirtualizedList(props) {
|
|
|
6097
5824
|
|
|
6098
5825
|
// src/components/LocationsSectionInfo/LocationsSectionInfo.tsx
|
|
6099
5826
|
import { Fragment as Fragment9 } from "react";
|
|
6100
|
-
import { Box as
|
|
5827
|
+
import { Box as Box29, Chip as Chip4, Typography as Typography20 } from "@mui/material";
|
|
6101
5828
|
import { purple } from "@mui/material/colors";
|
|
6102
5829
|
import classNames2 from "classnames";
|
|
6103
5830
|
import { makeStyles as makeStyles29 } from "tss-react/mui";
|
|
6104
|
-
import { jsx as
|
|
5831
|
+
import { jsx as jsx99, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
6105
5832
|
var useStyles29 = makeStyles29()(() => ({
|
|
6106
5833
|
container: {
|
|
6107
5834
|
display: "flex",
|
|
@@ -6147,8 +5874,8 @@ var LocationsSectionInfo = ({
|
|
|
6147
5874
|
}
|
|
6148
5875
|
return "STOCK";
|
|
6149
5876
|
};
|
|
6150
|
-
return /* @__PURE__ */
|
|
6151
|
-
/* @__PURE__ */
|
|
5877
|
+
return /* @__PURE__ */ jsxs63(Box29, { className: classes.container, children: [
|
|
5878
|
+
/* @__PURE__ */ jsx99(
|
|
6152
5879
|
Chip4,
|
|
6153
5880
|
{
|
|
6154
5881
|
className: classNames2(classes.defaultChip, {
|
|
@@ -6159,20 +5886,20 @@ var LocationsSectionInfo = ({
|
|
|
6159
5886
|
label: getLocationLabel()
|
|
6160
5887
|
}
|
|
6161
5888
|
),
|
|
6162
|
-
/* @__PURE__ */
|
|
6163
|
-
secondaryLocation?.map((loc) => /* @__PURE__ */
|
|
6164
|
-
/* @__PURE__ */
|
|
6165
|
-
/* @__PURE__ */
|
|
5889
|
+
/* @__PURE__ */ jsx99(Typography20, { className: classes.locationText, color: "primary", children: principalLocation }),
|
|
5890
|
+
secondaryLocation?.map((loc) => /* @__PURE__ */ jsxs63(Fragment9, { children: [
|
|
5891
|
+
/* @__PURE__ */ jsx99(Typography20, { className: classes.smallTitle, children: "/" }),
|
|
5892
|
+
/* @__PURE__ */ jsx99(Typography20, { className: classes.locationText, children: loc })
|
|
6166
5893
|
] }, loc))
|
|
6167
5894
|
] });
|
|
6168
5895
|
};
|
|
6169
5896
|
var LocationsSectionInfo_default = LocationsSectionInfo;
|
|
6170
5897
|
|
|
6171
5898
|
// src/components/Notes/Notes.tsx
|
|
6172
|
-
import { useEffect as
|
|
5899
|
+
import { useEffect as useEffect5, useState as useState7 } from "react";
|
|
6173
5900
|
import { FormControl as FormControl4, Input, InputAdornment as InputAdornment3, InputLabel as InputLabel4 } from "@mui/material";
|
|
6174
5901
|
import { makeStyles as makeStyles30 } from "tss-react/mui";
|
|
6175
|
-
import { jsx as
|
|
5902
|
+
import { jsx as jsx100, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
6176
5903
|
var useStyles30 = makeStyles30()((theme) => ({
|
|
6177
5904
|
wrapper: {
|
|
6178
5905
|
padding: theme.spacing(3),
|
|
@@ -6189,8 +5916,8 @@ var Notes2 = ({
|
|
|
6189
5916
|
onChange,
|
|
6190
5917
|
onClearNotes
|
|
6191
5918
|
}) => {
|
|
6192
|
-
const [notes, setNotes] =
|
|
6193
|
-
|
|
5919
|
+
const [notes, setNotes] = useState7("");
|
|
5920
|
+
useEffect5(() => {
|
|
6194
5921
|
if (!initialNotes) {
|
|
6195
5922
|
return;
|
|
6196
5923
|
}
|
|
@@ -6215,13 +5942,13 @@ var Notes2 = ({
|
|
|
6215
5942
|
}
|
|
6216
5943
|
};
|
|
6217
5944
|
const { classes } = useStyles30();
|
|
6218
|
-
return /* @__PURE__ */
|
|
6219
|
-
/* @__PURE__ */
|
|
6220
|
-
/* @__PURE__ */
|
|
5945
|
+
return /* @__PURE__ */ jsx100("div", { className: classes.wrapper, children: /* @__PURE__ */ jsxs64(FormControl4, { fullWidth: true, children: [
|
|
5946
|
+
/* @__PURE__ */ jsx100(InputLabel4, { htmlFor: "notes", children: "Notes" }),
|
|
5947
|
+
/* @__PURE__ */ jsx100(
|
|
6221
5948
|
Input,
|
|
6222
5949
|
{
|
|
6223
5950
|
disabled: isDisabled || isLoading,
|
|
6224
|
-
endAdornment: isEditable && notes.length > 0 && /* @__PURE__ */
|
|
5951
|
+
endAdornment: isEditable && notes.length > 0 && /* @__PURE__ */ jsx100(InputAdornment3, { position: "end", children: /* @__PURE__ */ jsx100(
|
|
6225
5952
|
RoundButton_default,
|
|
6226
5953
|
{
|
|
6227
5954
|
disabled: isLoading,
|
|
@@ -6247,8 +5974,8 @@ var Notes2 = ({
|
|
|
6247
5974
|
var Notes_default = Notes2;
|
|
6248
5975
|
|
|
6249
5976
|
// src/components/Numpad/Numpad.tsx
|
|
6250
|
-
import { jsx as
|
|
6251
|
-
var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */
|
|
5977
|
+
import { jsx as jsx101, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
5978
|
+
var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs65(
|
|
6252
5979
|
"div",
|
|
6253
5980
|
{
|
|
6254
5981
|
style: {
|
|
@@ -6260,9 +5987,9 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
|
|
|
6260
5987
|
padding: 8
|
|
6261
5988
|
},
|
|
6262
5989
|
children: [
|
|
6263
|
-
/* @__PURE__ */
|
|
6264
|
-
/* @__PURE__ */
|
|
6265
|
-
/* @__PURE__ */
|
|
5990
|
+
/* @__PURE__ */ jsxs65("div", { children: [
|
|
5991
|
+
/* @__PURE__ */ jsxs65("div", { children: [
|
|
5992
|
+
/* @__PURE__ */ jsx101(
|
|
6266
5993
|
RoundButton_default,
|
|
6267
5994
|
{
|
|
6268
5995
|
onClick: () => handleClick("1"),
|
|
@@ -6271,7 +5998,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
|
|
|
6271
5998
|
children: "1"
|
|
6272
5999
|
}
|
|
6273
6000
|
),
|
|
6274
|
-
/* @__PURE__ */
|
|
6001
|
+
/* @__PURE__ */ jsx101(
|
|
6275
6002
|
RoundButton_default,
|
|
6276
6003
|
{
|
|
6277
6004
|
onClick: () => handleClick("2"),
|
|
@@ -6280,7 +6007,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
|
|
|
6280
6007
|
children: "2"
|
|
6281
6008
|
}
|
|
6282
6009
|
),
|
|
6283
|
-
/* @__PURE__ */
|
|
6010
|
+
/* @__PURE__ */ jsx101(
|
|
6284
6011
|
RoundButton_default,
|
|
6285
6012
|
{
|
|
6286
6013
|
onClick: () => handleClick("3"),
|
|
@@ -6290,8 +6017,8 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
|
|
|
6290
6017
|
}
|
|
6291
6018
|
)
|
|
6292
6019
|
] }),
|
|
6293
|
-
/* @__PURE__ */
|
|
6294
|
-
/* @__PURE__ */
|
|
6020
|
+
/* @__PURE__ */ jsxs65("div", { children: [
|
|
6021
|
+
/* @__PURE__ */ jsx101(
|
|
6295
6022
|
RoundButton_default,
|
|
6296
6023
|
{
|
|
6297
6024
|
onClick: () => handleClick("4"),
|
|
@@ -6300,7 +6027,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
|
|
|
6300
6027
|
children: "4"
|
|
6301
6028
|
}
|
|
6302
6029
|
),
|
|
6303
|
-
/* @__PURE__ */
|
|
6030
|
+
/* @__PURE__ */ jsx101(
|
|
6304
6031
|
RoundButton_default,
|
|
6305
6032
|
{
|
|
6306
6033
|
onClick: () => handleClick("5"),
|
|
@@ -6309,7 +6036,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
|
|
|
6309
6036
|
children: "5"
|
|
6310
6037
|
}
|
|
6311
6038
|
),
|
|
6312
|
-
/* @__PURE__ */
|
|
6039
|
+
/* @__PURE__ */ jsx101(
|
|
6313
6040
|
RoundButton_default,
|
|
6314
6041
|
{
|
|
6315
6042
|
onClick: () => handleClick("6"),
|
|
@@ -6319,8 +6046,8 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
|
|
|
6319
6046
|
}
|
|
6320
6047
|
)
|
|
6321
6048
|
] }),
|
|
6322
|
-
/* @__PURE__ */
|
|
6323
|
-
/* @__PURE__ */
|
|
6049
|
+
/* @__PURE__ */ jsxs65("div", { children: [
|
|
6050
|
+
/* @__PURE__ */ jsx101(
|
|
6324
6051
|
RoundButton_default,
|
|
6325
6052
|
{
|
|
6326
6053
|
onClick: () => handleClick("7"),
|
|
@@ -6329,7 +6056,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
|
|
|
6329
6056
|
children: "7"
|
|
6330
6057
|
}
|
|
6331
6058
|
),
|
|
6332
|
-
/* @__PURE__ */
|
|
6059
|
+
/* @__PURE__ */ jsx101(
|
|
6333
6060
|
RoundButton_default,
|
|
6334
6061
|
{
|
|
6335
6062
|
onClick: () => handleClick("8"),
|
|
@@ -6338,7 +6065,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
|
|
|
6338
6065
|
children: "8"
|
|
6339
6066
|
}
|
|
6340
6067
|
),
|
|
6341
|
-
/* @__PURE__ */
|
|
6068
|
+
/* @__PURE__ */ jsx101(
|
|
6342
6069
|
RoundButton_default,
|
|
6343
6070
|
{
|
|
6344
6071
|
onClick: () => handleClick("9"),
|
|
@@ -6348,8 +6075,8 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
|
|
|
6348
6075
|
}
|
|
6349
6076
|
)
|
|
6350
6077
|
] }),
|
|
6351
|
-
/* @__PURE__ */
|
|
6352
|
-
/* @__PURE__ */
|
|
6078
|
+
/* @__PURE__ */ jsxs65("div", { children: [
|
|
6079
|
+
/* @__PURE__ */ jsx101(
|
|
6353
6080
|
RoundButton_default,
|
|
6354
6081
|
{
|
|
6355
6082
|
onClick: () => handleClick("0"),
|
|
@@ -6358,7 +6085,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
|
|
|
6358
6085
|
children: "0"
|
|
6359
6086
|
}
|
|
6360
6087
|
),
|
|
6361
|
-
/* @__PURE__ */
|
|
6088
|
+
/* @__PURE__ */ jsx101(
|
|
6362
6089
|
RoundButton_default,
|
|
6363
6090
|
{
|
|
6364
6091
|
onClick: () => handleClick("."),
|
|
@@ -6369,7 +6096,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
|
|
|
6369
6096
|
)
|
|
6370
6097
|
] })
|
|
6371
6098
|
] }),
|
|
6372
|
-
/* @__PURE__ */
|
|
6099
|
+
/* @__PURE__ */ jsx101(
|
|
6373
6100
|
"div",
|
|
6374
6101
|
{
|
|
6375
6102
|
style: {
|
|
@@ -6378,7 +6105,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
|
|
|
6378
6105
|
justifyContent: "space-between",
|
|
6379
6106
|
borderLeft: `1px solid ${colors.neutral250}`
|
|
6380
6107
|
},
|
|
6381
|
-
children: /* @__PURE__ */
|
|
6108
|
+
children: /* @__PURE__ */ jsx101(
|
|
6382
6109
|
RoundButton_default,
|
|
6383
6110
|
{
|
|
6384
6111
|
icon: "backspaceOutlined",
|
|
@@ -6395,10 +6122,10 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ jsxs66(
|
|
|
6395
6122
|
var Numpad_default = Numpad;
|
|
6396
6123
|
|
|
6397
6124
|
// src/components/NumpadInput/NumpadInput.tsx
|
|
6398
|
-
import { memo as
|
|
6125
|
+
import { memo as memo14, useState as useState8 } from "react";
|
|
6399
6126
|
import { TextField as TextField6, Typography as Typography21 } from "@mui/material";
|
|
6400
6127
|
import { makeStyles as makeStyles31 } from "tss-react/mui";
|
|
6401
|
-
import { jsx as
|
|
6128
|
+
import { jsx as jsx102, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
6402
6129
|
var useStyles31 = makeStyles31()(() => ({
|
|
6403
6130
|
c_numpadinput__textfield: {
|
|
6404
6131
|
"& .MuiInputLabel-outlined.MuiInputLabel-shrink": {
|
|
@@ -6425,7 +6152,7 @@ var useStyles31 = makeStyles31()(() => ({
|
|
|
6425
6152
|
var NumpadInput = (props) => {
|
|
6426
6153
|
const { handleNextClick, inputLabel, children } = props;
|
|
6427
6154
|
const { classes } = useStyles31();
|
|
6428
|
-
const [state, setState] =
|
|
6155
|
+
const [state, setState] = useState8("");
|
|
6429
6156
|
const handleNumpadClick = (value) => {
|
|
6430
6157
|
setState(state + value);
|
|
6431
6158
|
};
|
|
@@ -6435,13 +6162,13 @@ var NumpadInput = (props) => {
|
|
|
6435
6162
|
function handleSubmit() {
|
|
6436
6163
|
handleNextClick?.(state);
|
|
6437
6164
|
}
|
|
6438
|
-
const DefaultInput = /* @__PURE__ */
|
|
6439
|
-
/* @__PURE__ */
|
|
6440
|
-
/* @__PURE__ */
|
|
6165
|
+
const DefaultInput = /* @__PURE__ */ jsxs66("div", { children: [
|
|
6166
|
+
/* @__PURE__ */ jsx102(Typography21, { variant: "h5", style: { padding: "16px 0 3rem" }, children: inputLabel }),
|
|
6167
|
+
/* @__PURE__ */ jsx102("form", { noValidate: true, autoComplete: "off", children: /* @__PURE__ */ jsx102(
|
|
6441
6168
|
TextField6,
|
|
6442
6169
|
{
|
|
6443
6170
|
id: "outlined-basic",
|
|
6444
|
-
label: /* @__PURE__ */
|
|
6171
|
+
label: /* @__PURE__ */ jsx102(Typography21, { style: { fontSize: "1.5rem" }, children: "Insert" }),
|
|
6445
6172
|
value: state,
|
|
6446
6173
|
variant: "outlined",
|
|
6447
6174
|
autoFocus: true,
|
|
@@ -6456,27 +6183,27 @@ var NumpadInput = (props) => {
|
|
|
6456
6183
|
) }),
|
|
6457
6184
|
children
|
|
6458
6185
|
] });
|
|
6459
|
-
return /* @__PURE__ */
|
|
6460
|
-
/* @__PURE__ */
|
|
6186
|
+
return /* @__PURE__ */ jsxs66("div", { children: [
|
|
6187
|
+
/* @__PURE__ */ jsxs66("div", { className: classes.c_numpadinput__body, children: [
|
|
6461
6188
|
children || DefaultInput,
|
|
6462
|
-
/* @__PURE__ */
|
|
6189
|
+
/* @__PURE__ */ jsx102(Numpad_default, { handleClick: handleNumpadClick, handleUndo })
|
|
6463
6190
|
] }),
|
|
6464
|
-
state ? /* @__PURE__ */
|
|
6191
|
+
state ? /* @__PURE__ */ jsx102(
|
|
6465
6192
|
FilledButtonLg_default,
|
|
6466
6193
|
{
|
|
6467
6194
|
color: "primary",
|
|
6468
6195
|
copy: "next",
|
|
6469
6196
|
handleClick: handleSubmit
|
|
6470
6197
|
}
|
|
6471
|
-
) : /* @__PURE__ */
|
|
6198
|
+
) : /* @__PURE__ */ jsx102(FilledButtonLg_default, { copy: "next", disabled: true })
|
|
6472
6199
|
] });
|
|
6473
6200
|
};
|
|
6474
|
-
var NumpadInput_default =
|
|
6201
|
+
var NumpadInput_default = memo14(NumpadInput);
|
|
6475
6202
|
|
|
6476
6203
|
// src/components/NumpadPlus/NumpadPlus.tsx
|
|
6477
|
-
import { Box as
|
|
6204
|
+
import { Box as Box30 } from "@mui/material";
|
|
6478
6205
|
import { makeStyles as makeStyles32 } from "tss-react/mui";
|
|
6479
|
-
import { jsx as
|
|
6206
|
+
import { jsx as jsx103, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
6480
6207
|
var useStyles32 = makeStyles32()(() => ({
|
|
6481
6208
|
numpadContainer: {
|
|
6482
6209
|
display: "flex",
|
|
@@ -6508,10 +6235,10 @@ var useStyles32 = makeStyles32()(() => ({
|
|
|
6508
6235
|
}));
|
|
6509
6236
|
var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
6510
6237
|
const { classes: styles } = useStyles32();
|
|
6511
|
-
return /* @__PURE__ */
|
|
6512
|
-
/* @__PURE__ */
|
|
6513
|
-
/* @__PURE__ */
|
|
6514
|
-
/* @__PURE__ */
|
|
6238
|
+
return /* @__PURE__ */ jsxs67(Box30, { className: styles.numpadContainer, children: [
|
|
6239
|
+
/* @__PURE__ */ jsxs67(Box30, { className: styles.numpadNumbersContainer, children: [
|
|
6240
|
+
/* @__PURE__ */ jsxs67(Box30, { className: styles.numpadRow, children: [
|
|
6241
|
+
/* @__PURE__ */ jsx103(
|
|
6515
6242
|
RoundButton_default,
|
|
6516
6243
|
{
|
|
6517
6244
|
onClick: () => handleClick("1"),
|
|
@@ -6520,7 +6247,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6520
6247
|
children: "1"
|
|
6521
6248
|
}
|
|
6522
6249
|
),
|
|
6523
|
-
/* @__PURE__ */
|
|
6250
|
+
/* @__PURE__ */ jsx103(
|
|
6524
6251
|
RoundButton_default,
|
|
6525
6252
|
{
|
|
6526
6253
|
onClick: () => handleClick("2"),
|
|
@@ -6529,7 +6256,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6529
6256
|
children: "2"
|
|
6530
6257
|
}
|
|
6531
6258
|
),
|
|
6532
|
-
/* @__PURE__ */
|
|
6259
|
+
/* @__PURE__ */ jsx103(
|
|
6533
6260
|
RoundButton_default,
|
|
6534
6261
|
{
|
|
6535
6262
|
onClick: () => handleClick("3"),
|
|
@@ -6539,8 +6266,8 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6539
6266
|
}
|
|
6540
6267
|
)
|
|
6541
6268
|
] }),
|
|
6542
|
-
/* @__PURE__ */
|
|
6543
|
-
/* @__PURE__ */
|
|
6269
|
+
/* @__PURE__ */ jsxs67(Box30, { className: styles.numpadRow, children: [
|
|
6270
|
+
/* @__PURE__ */ jsx103(
|
|
6544
6271
|
RoundButton_default,
|
|
6545
6272
|
{
|
|
6546
6273
|
onClick: () => handleClick("4"),
|
|
@@ -6549,7 +6276,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6549
6276
|
children: "4"
|
|
6550
6277
|
}
|
|
6551
6278
|
),
|
|
6552
|
-
/* @__PURE__ */
|
|
6279
|
+
/* @__PURE__ */ jsx103(
|
|
6553
6280
|
RoundButton_default,
|
|
6554
6281
|
{
|
|
6555
6282
|
onClick: () => handleClick("5"),
|
|
@@ -6558,7 +6285,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6558
6285
|
children: "5"
|
|
6559
6286
|
}
|
|
6560
6287
|
),
|
|
6561
|
-
/* @__PURE__ */
|
|
6288
|
+
/* @__PURE__ */ jsx103(
|
|
6562
6289
|
RoundButton_default,
|
|
6563
6290
|
{
|
|
6564
6291
|
onClick: () => handleClick("6"),
|
|
@@ -6568,8 +6295,8 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6568
6295
|
}
|
|
6569
6296
|
)
|
|
6570
6297
|
] }),
|
|
6571
|
-
/* @__PURE__ */
|
|
6572
|
-
/* @__PURE__ */
|
|
6298
|
+
/* @__PURE__ */ jsxs67(Box30, { className: styles.numpadRow, children: [
|
|
6299
|
+
/* @__PURE__ */ jsx103(
|
|
6573
6300
|
RoundButton_default,
|
|
6574
6301
|
{
|
|
6575
6302
|
onClick: () => handleClick("7"),
|
|
@@ -6578,7 +6305,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6578
6305
|
children: "7"
|
|
6579
6306
|
}
|
|
6580
6307
|
),
|
|
6581
|
-
/* @__PURE__ */
|
|
6308
|
+
/* @__PURE__ */ jsx103(
|
|
6582
6309
|
RoundButton_default,
|
|
6583
6310
|
{
|
|
6584
6311
|
onClick: () => handleClick("8"),
|
|
@@ -6587,7 +6314,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6587
6314
|
children: "8"
|
|
6588
6315
|
}
|
|
6589
6316
|
),
|
|
6590
|
-
/* @__PURE__ */
|
|
6317
|
+
/* @__PURE__ */ jsx103(
|
|
6591
6318
|
RoundButton_default,
|
|
6592
6319
|
{
|
|
6593
6320
|
onClick: () => handleClick("9"),
|
|
@@ -6597,8 +6324,8 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6597
6324
|
}
|
|
6598
6325
|
)
|
|
6599
6326
|
] }),
|
|
6600
|
-
/* @__PURE__ */
|
|
6601
|
-
/* @__PURE__ */
|
|
6327
|
+
/* @__PURE__ */ jsxs67(Box30, { className: styles.numpadRow, children: [
|
|
6328
|
+
/* @__PURE__ */ jsx103(
|
|
6602
6329
|
RoundButton_default,
|
|
6603
6330
|
{
|
|
6604
6331
|
onClick: () => handleClick("0"),
|
|
@@ -6607,7 +6334,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6607
6334
|
children: "0"
|
|
6608
6335
|
}
|
|
6609
6336
|
),
|
|
6610
|
-
/* @__PURE__ */
|
|
6337
|
+
/* @__PURE__ */ jsx103(
|
|
6611
6338
|
RoundButton_default,
|
|
6612
6339
|
{
|
|
6613
6340
|
onClick: () => handleClick("."),
|
|
@@ -6616,7 +6343,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6616
6343
|
children: "."
|
|
6617
6344
|
}
|
|
6618
6345
|
),
|
|
6619
|
-
/* @__PURE__ */
|
|
6346
|
+
/* @__PURE__ */ jsx103(
|
|
6620
6347
|
RoundButton_default,
|
|
6621
6348
|
{
|
|
6622
6349
|
onClick: () => handleClick("-"),
|
|
@@ -6627,7 +6354,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6627
6354
|
)
|
|
6628
6355
|
] })
|
|
6629
6356
|
] }),
|
|
6630
|
-
/* @__PURE__ */
|
|
6357
|
+
/* @__PURE__ */ jsx103(Box30, { className: styles.numpadBackspace, children: /* @__PURE__ */ jsx103(
|
|
6631
6358
|
RoundButton_default,
|
|
6632
6359
|
{
|
|
6633
6360
|
icon: "backspaceOutlined",
|
|
@@ -6641,9 +6368,9 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6641
6368
|
var NumpadPlus_default = NumpadPlus;
|
|
6642
6369
|
|
|
6643
6370
|
// src/components/Pagination/Pagination.tsx
|
|
6644
|
-
import { Pagination, Paper as
|
|
6371
|
+
import { Pagination, Paper as Paper4, Typography as Typography22 } from "@mui/material";
|
|
6645
6372
|
import { makeStyles as makeStyles33 } from "tss-react/mui";
|
|
6646
|
-
import { jsx as
|
|
6373
|
+
import { jsx as jsx104, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
6647
6374
|
var paginationHeight = "56px";
|
|
6648
6375
|
var useStyles33 = makeStyles33()((theme) => ({
|
|
6649
6376
|
root: {
|
|
@@ -6680,14 +6407,16 @@ var PaginationForTable = ({
|
|
|
6680
6407
|
pagination,
|
|
6681
6408
|
position = "relative",
|
|
6682
6409
|
style,
|
|
6683
|
-
updateFilters
|
|
6410
|
+
updateFilters,
|
|
6411
|
+
siblingCount = 1,
|
|
6412
|
+
boundaryCount = 1
|
|
6684
6413
|
}) => {
|
|
6685
6414
|
const { classes, cx } = useStyles33();
|
|
6686
6415
|
const handleChange = (event, value) => {
|
|
6687
6416
|
updateFilters({ ...appliedFilters, page: value });
|
|
6688
6417
|
};
|
|
6689
6418
|
const isFixed = position === "fixed";
|
|
6690
|
-
return /* @__PURE__ */
|
|
6419
|
+
return /* @__PURE__ */ jsx104(Paper4, { children: /* @__PURE__ */ jsxs68(
|
|
6691
6420
|
"div",
|
|
6692
6421
|
{
|
|
6693
6422
|
style,
|
|
@@ -6695,16 +6424,18 @@ var PaginationForTable = ({
|
|
|
6695
6424
|
[classes.fixed]: isFixed
|
|
6696
6425
|
}),
|
|
6697
6426
|
children: [
|
|
6698
|
-
/* @__PURE__ */
|
|
6427
|
+
/* @__PURE__ */ jsxs68(Typography22, { variant: "body1", children: [
|
|
6699
6428
|
"Page: ",
|
|
6700
6429
|
page
|
|
6701
6430
|
] }),
|
|
6702
|
-
/* @__PURE__ */
|
|
6431
|
+
/* @__PURE__ */ jsx104(
|
|
6703
6432
|
Pagination,
|
|
6704
6433
|
{
|
|
6705
6434
|
count: pagination.num_pages,
|
|
6706
6435
|
page,
|
|
6707
|
-
onChange: handleChange
|
|
6436
|
+
onChange: handleChange,
|
|
6437
|
+
siblingCount,
|
|
6438
|
+
boundaryCount
|
|
6708
6439
|
}
|
|
6709
6440
|
)
|
|
6710
6441
|
]
|
|
@@ -6714,7 +6445,7 @@ var PaginationForTable = ({
|
|
|
6714
6445
|
var Pagination_default = PaginationForTable;
|
|
6715
6446
|
|
|
6716
6447
|
// src/components/PlusMinusInput/PlusMinusInput.tsx
|
|
6717
|
-
import { useCallback as
|
|
6448
|
+
import { useCallback as useCallback2, useEffect as useEffect6 } from "react";
|
|
6718
6449
|
import { Controller as Controller9, useForm, useWatch } from "react-hook-form";
|
|
6719
6450
|
import {
|
|
6720
6451
|
FormControlLabel as FormControlLabel5,
|
|
@@ -6723,7 +6454,7 @@ import {
|
|
|
6723
6454
|
Typography as Typography23
|
|
6724
6455
|
} from "@mui/material";
|
|
6725
6456
|
import { makeStyles as makeStyles34 } from "tss-react/mui";
|
|
6726
|
-
import { jsx as
|
|
6457
|
+
import { jsx as jsx105, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
6727
6458
|
var useStyles34 = makeStyles34()((theme) => ({
|
|
6728
6459
|
container: {
|
|
6729
6460
|
position: "relative",
|
|
@@ -6801,7 +6532,7 @@ var PlusMinusInput = ({
|
|
|
6801
6532
|
}
|
|
6802
6533
|
});
|
|
6803
6534
|
const inputValue = useWatch({ control, name: "inputValue" });
|
|
6804
|
-
const setInputValue =
|
|
6535
|
+
const setInputValue = useCallback2(
|
|
6805
6536
|
(newValue) => {
|
|
6806
6537
|
if (Number.isNaN(newValue) || newValue < 0) {
|
|
6807
6538
|
return;
|
|
@@ -6810,7 +6541,7 @@ var PlusMinusInput = ({
|
|
|
6810
6541
|
},
|
|
6811
6542
|
[setValue]
|
|
6812
6543
|
);
|
|
6813
|
-
|
|
6544
|
+
useEffect6(() => {
|
|
6814
6545
|
clearErrors("inputValue");
|
|
6815
6546
|
if (inputValue === "") {
|
|
6816
6547
|
setError("inputValue", {
|
|
@@ -6830,7 +6561,7 @@ var PlusMinusInput = ({
|
|
|
6830
6561
|
}
|
|
6831
6562
|
}
|
|
6832
6563
|
}, [clearErrors, inputValue, setError]);
|
|
6833
|
-
|
|
6564
|
+
useEffect6(() => {
|
|
6834
6565
|
if (typeof initialValue !== "number") {
|
|
6835
6566
|
return;
|
|
6836
6567
|
}
|
|
@@ -6866,7 +6597,7 @@ var PlusMinusInput = ({
|
|
|
6866
6597
|
updateInputValue(value);
|
|
6867
6598
|
};
|
|
6868
6599
|
const { classes, cx } = useStyles34();
|
|
6869
|
-
return /* @__PURE__ */
|
|
6600
|
+
return /* @__PURE__ */ jsx105("div", { className: classes.container, children: /* @__PURE__ */ jsxs69(
|
|
6870
6601
|
FormGroup,
|
|
6871
6602
|
{
|
|
6872
6603
|
className: cx(classes.wrapper, {
|
|
@@ -6874,7 +6605,7 @@ var PlusMinusInput = ({
|
|
|
6874
6605
|
[classes.rightButtons]: buttonsPosition === "right"
|
|
6875
6606
|
}),
|
|
6876
6607
|
children: [
|
|
6877
|
-
/* @__PURE__ */
|
|
6608
|
+
/* @__PURE__ */ jsx105(
|
|
6878
6609
|
RoundButton_default,
|
|
6879
6610
|
{
|
|
6880
6611
|
className: classes.minus,
|
|
@@ -6884,18 +6615,18 @@ var PlusMinusInput = ({
|
|
|
6884
6615
|
size: "small"
|
|
6885
6616
|
}
|
|
6886
6617
|
),
|
|
6887
|
-
/* @__PURE__ */
|
|
6888
|
-
/* @__PURE__ */
|
|
6618
|
+
/* @__PURE__ */ jsxs69("div", { children: [
|
|
6619
|
+
/* @__PURE__ */ jsx105(
|
|
6889
6620
|
Controller9,
|
|
6890
6621
|
{
|
|
6891
6622
|
control,
|
|
6892
6623
|
name: "inputValue",
|
|
6893
|
-
render: ({ field }) => /* @__PURE__ */
|
|
6624
|
+
render: ({ field }) => /* @__PURE__ */ jsx105(
|
|
6894
6625
|
FormControlLabel5,
|
|
6895
6626
|
{
|
|
6896
6627
|
...field,
|
|
6897
6628
|
className: classes.formControlLabel,
|
|
6898
|
-
control: /* @__PURE__ */
|
|
6629
|
+
control: /* @__PURE__ */ jsx105(
|
|
6899
6630
|
TextField7,
|
|
6900
6631
|
{
|
|
6901
6632
|
className: classes.input,
|
|
@@ -6912,7 +6643,7 @@ var PlusMinusInput = ({
|
|
|
6912
6643
|
)
|
|
6913
6644
|
}
|
|
6914
6645
|
),
|
|
6915
|
-
errors.inputValue && /* @__PURE__ */
|
|
6646
|
+
errors.inputValue && /* @__PURE__ */ jsx105(
|
|
6916
6647
|
Typography23,
|
|
6917
6648
|
{
|
|
6918
6649
|
className: classes.errorText,
|
|
@@ -6923,7 +6654,7 @@ var PlusMinusInput = ({
|
|
|
6923
6654
|
}
|
|
6924
6655
|
)
|
|
6925
6656
|
] }),
|
|
6926
|
-
/* @__PURE__ */
|
|
6657
|
+
/* @__PURE__ */ jsx105(
|
|
6927
6658
|
RoundButton_default,
|
|
6928
6659
|
{
|
|
6929
6660
|
className: classes.plus,
|
|
@@ -6940,28 +6671,28 @@ var PlusMinusInput = ({
|
|
|
6940
6671
|
var PlusMinusInput_default = PlusMinusInput;
|
|
6941
6672
|
|
|
6942
6673
|
// src/components/ProductBust/ProductBust.tsx
|
|
6943
|
-
import { useState as
|
|
6674
|
+
import { useState as useState9 } from "react";
|
|
6944
6675
|
import { Typography as Typography24 } from "@mui/material";
|
|
6945
6676
|
import { withStyles as withStyles4 } from "tss-react/mui";
|
|
6946
6677
|
|
|
6947
6678
|
// src/components/ProductImage/ProductImage.tsx
|
|
6948
6679
|
import { CardMedia } from "@mui/material";
|
|
6949
6680
|
import { withStyles as withStyles3 } from "tss-react/mui";
|
|
6950
|
-
import { jsx as
|
|
6681
|
+
import { jsx as jsx106, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
6951
6682
|
var PImage = ({
|
|
6952
6683
|
classes,
|
|
6953
6684
|
image,
|
|
6954
6685
|
size = "c_productbust__image_xs",
|
|
6955
6686
|
status
|
|
6956
|
-
}) => /* @__PURE__ */
|
|
6957
|
-
/* @__PURE__ */
|
|
6687
|
+
}) => /* @__PURE__ */ jsxs70("div", { className: classes.c_productbust__image, children: [
|
|
6688
|
+
/* @__PURE__ */ jsx106(
|
|
6958
6689
|
CardMedia,
|
|
6959
6690
|
{
|
|
6960
6691
|
className: classes[size],
|
|
6961
6692
|
image: image || "@/resources/img/peas.jpg"
|
|
6962
6693
|
}
|
|
6963
6694
|
),
|
|
6964
|
-
status && status !== "ACTIVE" && /* @__PURE__ */
|
|
6695
|
+
status && status !== "ACTIVE" && /* @__PURE__ */ jsx106("div", { className: classes.c_productbust__label_status, children: status })
|
|
6965
6696
|
] });
|
|
6966
6697
|
var ProductImage = withStyles3(PImage, (theme) => ({
|
|
6967
6698
|
c_productbust__label_status: {
|
|
@@ -7043,7 +6774,7 @@ var ProductImage = withStyles3(PImage, (theme) => ({
|
|
|
7043
6774
|
var ProductImage_default = ProductImage;
|
|
7044
6775
|
|
|
7045
6776
|
// src/components/ProductBust/ProductBust.tsx
|
|
7046
|
-
import { Fragment as Fragment10, jsx as
|
|
6777
|
+
import { Fragment as Fragment10, jsx as jsx107, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
7047
6778
|
var PBust = ({
|
|
7048
6779
|
classes,
|
|
7049
6780
|
size,
|
|
@@ -7085,8 +6816,8 @@ var PBust = ({
|
|
|
7085
6816
|
default:
|
|
7086
6817
|
break;
|
|
7087
6818
|
}
|
|
7088
|
-
const [historyVisible, setHistoryVisible] =
|
|
7089
|
-
const historyDataIcon = () => /* @__PURE__ */
|
|
6819
|
+
const [historyVisible, setHistoryVisible] = useState9(false);
|
|
6820
|
+
const historyDataIcon = () => /* @__PURE__ */ jsx107(
|
|
7090
6821
|
RoundButton_default,
|
|
7091
6822
|
{
|
|
7092
6823
|
icon: "history",
|
|
@@ -7094,8 +6825,8 @@ var PBust = ({
|
|
|
7094
6825
|
size: "small"
|
|
7095
6826
|
}
|
|
7096
6827
|
);
|
|
7097
|
-
return /* @__PURE__ */
|
|
7098
|
-
/* @__PURE__ */
|
|
6828
|
+
return /* @__PURE__ */ jsxs71("div", { className: classes.c_productbust, children: [
|
|
6829
|
+
/* @__PURE__ */ jsx107(
|
|
7099
6830
|
ProductImage_default,
|
|
7100
6831
|
{
|
|
7101
6832
|
image: product?.image,
|
|
@@ -7103,10 +6834,10 @@ var PBust = ({
|
|
|
7103
6834
|
size: imageSize
|
|
7104
6835
|
}
|
|
7105
6836
|
),
|
|
7106
|
-
/* @__PURE__ */
|
|
7107
|
-
/* @__PURE__ */
|
|
7108
|
-
/* @__PURE__ */
|
|
7109
|
-
/* @__PURE__ */
|
|
6837
|
+
/* @__PURE__ */ jsxs71("div", { className: classes.c_productbust__container, children: [
|
|
6838
|
+
/* @__PURE__ */ jsxs71("div", { className: classes.c_productbust__heading, children: [
|
|
6839
|
+
/* @__PURE__ */ jsxs71("div", { children: [
|
|
6840
|
+
/* @__PURE__ */ jsx107(
|
|
7110
6841
|
Typography24,
|
|
7111
6842
|
{
|
|
7112
6843
|
component: "span",
|
|
@@ -7115,10 +6846,10 @@ var PBust = ({
|
|
|
7115
6846
|
children: !!locationData && locationData
|
|
7116
6847
|
}
|
|
7117
6848
|
),
|
|
7118
|
-
/* @__PURE__ */
|
|
7119
|
-
!product && /* @__PURE__ */
|
|
7120
|
-
primaryData || /* @__PURE__ */
|
|
7121
|
-
/* @__PURE__ */
|
|
6849
|
+
/* @__PURE__ */ jsx107(Typography24, { component: "span", className: classes[titleSize], children: product?.name }),
|
|
6850
|
+
!product && /* @__PURE__ */ jsx107(Typography24, { component: "span", className: classes[titleSize], children: "Empty Position" }),
|
|
6851
|
+
primaryData || /* @__PURE__ */ jsxs71(Fragment10, { children: [
|
|
6852
|
+
/* @__PURE__ */ jsx107(
|
|
7122
6853
|
Typography24,
|
|
7123
6854
|
{
|
|
7124
6855
|
style: { color: "#555" },
|
|
@@ -7126,7 +6857,7 @@ var PBust = ({
|
|
|
7126
6857
|
children: product?.category.name
|
|
7127
6858
|
}
|
|
7128
6859
|
),
|
|
7129
|
-
/* @__PURE__ */
|
|
6860
|
+
/* @__PURE__ */ jsx107(
|
|
7130
6861
|
Typography24,
|
|
7131
6862
|
{
|
|
7132
6863
|
style: { color: "#A42966", textTransform: "uppercase" },
|
|
@@ -7136,14 +6867,14 @@ var PBust = ({
|
|
|
7136
6867
|
)
|
|
7137
6868
|
] })
|
|
7138
6869
|
] }),
|
|
7139
|
-
/* @__PURE__ */
|
|
7140
|
-
/* @__PURE__ */
|
|
7141
|
-
/* @__PURE__ */
|
|
6870
|
+
/* @__PURE__ */ jsxs71("div", { className: classes.c_productbust__btns, children: [
|
|
6871
|
+
/* @__PURE__ */ jsx107("div", { children: buttonData }),
|
|
6872
|
+
/* @__PURE__ */ jsx107("div", { children: !!locationId && historyDataIcon() })
|
|
7142
6873
|
] })
|
|
7143
6874
|
] }),
|
|
7144
|
-
/* @__PURE__ */
|
|
6875
|
+
/* @__PURE__ */ jsx107("div", { children: !!secondaryData && secondaryData })
|
|
7145
6876
|
] }),
|
|
7146
|
-
/* @__PURE__ */
|
|
6877
|
+
/* @__PURE__ */ jsx107(
|
|
7147
6878
|
LocationHistoryDialog,
|
|
7148
6879
|
{
|
|
7149
6880
|
handleVisible: setHistoryVisible,
|
|
@@ -7245,9 +6976,9 @@ var ProductBust = withStyles4(PBust, (theme) => ({
|
|
|
7245
6976
|
var ProductBust_default = ProductBust;
|
|
7246
6977
|
|
|
7247
6978
|
// src/components/RenderAvatar/RenderAvatar.tsx
|
|
7248
|
-
import { Avatar, Badge, Box as
|
|
6979
|
+
import { Avatar, Badge, Box as Box31, Typography as Typography25 } from "@mui/material";
|
|
7249
6980
|
import { withStyles as withStyles5 } from "tss-react/mui";
|
|
7250
|
-
import { jsx as
|
|
6981
|
+
import { jsx as jsx108, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
7251
6982
|
var RenderAvatar = ({ active }) => {
|
|
7252
6983
|
const StyledBadge = withStyles5(Badge, () => ({
|
|
7253
6984
|
root: {
|
|
@@ -7256,12 +6987,12 @@ var RenderAvatar = ({ active }) => {
|
|
|
7256
6987
|
}
|
|
7257
6988
|
}
|
|
7258
6989
|
}));
|
|
7259
|
-
return /* @__PURE__ */
|
|
7260
|
-
|
|
6990
|
+
return /* @__PURE__ */ jsxs72(
|
|
6991
|
+
Box31,
|
|
7261
6992
|
{
|
|
7262
6993
|
sx: { display: "flex", flexDirection: "column", alignItems: "center" },
|
|
7263
6994
|
children: [
|
|
7264
|
-
/* @__PURE__ */
|
|
6995
|
+
/* @__PURE__ */ jsx108(
|
|
7265
6996
|
StyledBadge,
|
|
7266
6997
|
{
|
|
7267
6998
|
overlap: "circular",
|
|
@@ -7270,10 +7001,10 @@ var RenderAvatar = ({ active }) => {
|
|
|
7270
7001
|
horizontal: "right"
|
|
7271
7002
|
},
|
|
7272
7003
|
variant: "dot",
|
|
7273
|
-
children: /* @__PURE__ */
|
|
7004
|
+
children: /* @__PURE__ */ jsx108(Avatar, {})
|
|
7274
7005
|
}
|
|
7275
7006
|
),
|
|
7276
|
-
/* @__PURE__ */
|
|
7007
|
+
/* @__PURE__ */ jsx108(Typography25, { variant: "caption", children: active ? "Active" : "Disabled" })
|
|
7277
7008
|
]
|
|
7278
7009
|
}
|
|
7279
7010
|
);
|
|
@@ -7281,7 +7012,7 @@ var RenderAvatar = ({ active }) => {
|
|
|
7281
7012
|
var RenderAvatar_default = RenderAvatar;
|
|
7282
7013
|
|
|
7283
7014
|
// src/components/RenderContentList/RenderContentList.tsx
|
|
7284
|
-
import { useEffect as
|
|
7015
|
+
import { useEffect as useEffect8, useState as useState11, useRef as useRef5 } from "react";
|
|
7285
7016
|
import WarningAmber from "@mui/icons-material/WarningAmber";
|
|
7286
7017
|
import {
|
|
7287
7018
|
List,
|
|
@@ -7293,11 +7024,11 @@ import {
|
|
|
7293
7024
|
import { makeStyles as makeStyles35 } from "tss-react/mui";
|
|
7294
7025
|
|
|
7295
7026
|
// src/utils/useGetActiveSection.ts
|
|
7296
|
-
import { useEffect as
|
|
7027
|
+
import { useEffect as useEffect7, useState as useState10 } from "react";
|
|
7297
7028
|
var transformNameToID = (name) => name.replaceAll(" ", "_").toLocaleLowerCase();
|
|
7298
7029
|
|
|
7299
7030
|
// src/components/RenderContentList/RenderContentList.tsx
|
|
7300
|
-
import { jsx as
|
|
7031
|
+
import { jsx as jsx109, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
7301
7032
|
var useStyles35 = makeStyles35()(
|
|
7302
7033
|
(_theme, _params, classes) => ({
|
|
7303
7034
|
root: {
|
|
@@ -7318,11 +7049,11 @@ var RenderContentList = ({
|
|
|
7318
7049
|
warningMessage = "Missing information on this section"
|
|
7319
7050
|
}) => {
|
|
7320
7051
|
const { classes } = useStyles35();
|
|
7321
|
-
const [active, setActive] =
|
|
7322
|
-
const observer =
|
|
7323
|
-
const isScrolling =
|
|
7324
|
-
const timeoutScrolling =
|
|
7325
|
-
|
|
7052
|
+
const [active, setActive] = useState11(activeSection);
|
|
7053
|
+
const observer = useRef5(null);
|
|
7054
|
+
const isScrolling = useRef5(false);
|
|
7055
|
+
const timeoutScrolling = useRef5(null);
|
|
7056
|
+
useEffect8(() => {
|
|
7326
7057
|
if (!activeSection) {
|
|
7327
7058
|
return void 0;
|
|
7328
7059
|
}
|
|
@@ -7346,7 +7077,7 @@ var RenderContentList = ({
|
|
|
7346
7077
|
if (timeoutScrolling.current) clearTimeout(timeoutScrolling.current);
|
|
7347
7078
|
};
|
|
7348
7079
|
}, [activeSection]);
|
|
7349
|
-
|
|
7080
|
+
useEffect8(() => {
|
|
7350
7081
|
const sections = items.map((item) => ({
|
|
7351
7082
|
id: transformNameToID(item),
|
|
7352
7083
|
element: document.getElementById(transformNameToID(item))
|
|
@@ -7395,23 +7126,23 @@ var RenderContentList = ({
|
|
|
7395
7126
|
isScrolling.current = false;
|
|
7396
7127
|
}, 1e3);
|
|
7397
7128
|
};
|
|
7398
|
-
return /* @__PURE__ */
|
|
7129
|
+
return /* @__PURE__ */ jsx109(
|
|
7399
7130
|
List,
|
|
7400
7131
|
{
|
|
7401
7132
|
component: "nav",
|
|
7402
7133
|
"aria-labelledby": "nested-list-subheader",
|
|
7403
|
-
subheader: /* @__PURE__ */
|
|
7134
|
+
subheader: /* @__PURE__ */ jsx109(ListSubheader, { component: "div", id: "nested-list-subheader", children: "Contents" }),
|
|
7404
7135
|
children: items.map((item) => {
|
|
7405
7136
|
const id = transformNameToID(item);
|
|
7406
|
-
return /* @__PURE__ */
|
|
7137
|
+
return /* @__PURE__ */ jsxs73(
|
|
7407
7138
|
ListItemButton,
|
|
7408
7139
|
{
|
|
7409
7140
|
selected: active === id,
|
|
7410
7141
|
classes: { root: classes.root, selected: classes.selected },
|
|
7411
7142
|
onClick: () => handleMenuClick(id),
|
|
7412
7143
|
children: [
|
|
7413
|
-
/* @__PURE__ */
|
|
7414
|
-
(warningItems?.includes(item) || warningItems?.includes(id)) && /* @__PURE__ */
|
|
7144
|
+
/* @__PURE__ */ jsx109(ListItemText4, { primary: item }),
|
|
7145
|
+
(warningItems?.includes(item) || warningItems?.includes(id)) && /* @__PURE__ */ jsx109(Tooltip9, { title: warningMessage, children: /* @__PURE__ */ jsx109(WarningAmber, { color: "warning" }) })
|
|
7415
7146
|
]
|
|
7416
7147
|
},
|
|
7417
7148
|
id
|
|
@@ -7423,9 +7154,9 @@ var RenderContentList = ({
|
|
|
7423
7154
|
var RenderContentList_default = RenderContentList;
|
|
7424
7155
|
|
|
7425
7156
|
// src/components/RowProductCard/RowProductCard.tsx
|
|
7426
|
-
import { Box as
|
|
7157
|
+
import { Box as Box32, Divider as Divider6, Paper as Paper5, Typography as Typography26 } from "@mui/material";
|
|
7427
7158
|
import { makeStyles as makeStyles36 } from "tss-react/mui";
|
|
7428
|
-
import { Fragment as Fragment11, jsx as
|
|
7159
|
+
import { Fragment as Fragment11, jsx as jsx110, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
7429
7160
|
var useStyles36 = makeStyles36()((theme) => ({
|
|
7430
7161
|
wrapper: {
|
|
7431
7162
|
display: "flex",
|
|
@@ -7464,8 +7195,8 @@ var RowProductCard = ({
|
|
|
7464
7195
|
medium: "c_productbust__image_md",
|
|
7465
7196
|
large: "c_productbust__image_lg"
|
|
7466
7197
|
};
|
|
7467
|
-
return /* @__PURE__ */
|
|
7468
|
-
/* @__PURE__ */
|
|
7198
|
+
return /* @__PURE__ */ jsxs74(Paper5, { className: classes.wrapper, children: [
|
|
7199
|
+
/* @__PURE__ */ jsx110(
|
|
7469
7200
|
ProductImage_default,
|
|
7470
7201
|
{
|
|
7471
7202
|
image: product.image,
|
|
@@ -7473,15 +7204,15 @@ var RowProductCard = ({
|
|
|
7473
7204
|
size: imageSize[size]
|
|
7474
7205
|
}
|
|
7475
7206
|
),
|
|
7476
|
-
/* @__PURE__ */
|
|
7207
|
+
/* @__PURE__ */ jsxs74(
|
|
7477
7208
|
"div",
|
|
7478
7209
|
{
|
|
7479
7210
|
className: cx(classes.content, {
|
|
7480
7211
|
[classes.onlyProductName]: !hasColumns && !location
|
|
7481
7212
|
}),
|
|
7482
7213
|
children: [
|
|
7483
|
-
/* @__PURE__ */
|
|
7484
|
-
|
|
7214
|
+
/* @__PURE__ */ jsxs74(
|
|
7215
|
+
Box32,
|
|
7485
7216
|
{
|
|
7486
7217
|
className: classes.upperRow,
|
|
7487
7218
|
sx: {
|
|
@@ -7490,26 +7221,26 @@ var RowProductCard = ({
|
|
|
7490
7221
|
alignItems: "center"
|
|
7491
7222
|
},
|
|
7492
7223
|
children: [
|
|
7493
|
-
/* @__PURE__ */
|
|
7494
|
-
location ? /* @__PURE__ */
|
|
7495
|
-
/* @__PURE__ */
|
|
7224
|
+
/* @__PURE__ */ jsxs74("div", { children: [
|
|
7225
|
+
location ? /* @__PURE__ */ jsx110(Typography26, { className: classes.smallTitle, variant: "caption", children: `Location: ${location}` }) : null,
|
|
7226
|
+
/* @__PURE__ */ jsx110(Typography26, { variant: "h6", children: product.name })
|
|
7496
7227
|
] }),
|
|
7497
7228
|
children
|
|
7498
7229
|
]
|
|
7499
7230
|
}
|
|
7500
7231
|
),
|
|
7501
|
-
hasColumns ? /* @__PURE__ */
|
|
7502
|
-
/* @__PURE__ */
|
|
7503
|
-
/* @__PURE__ */
|
|
7504
|
-
|
|
7232
|
+
hasColumns ? /* @__PURE__ */ jsxs74(Fragment11, { children: [
|
|
7233
|
+
/* @__PURE__ */ jsx110(Divider6, { className: classes.divider }),
|
|
7234
|
+
/* @__PURE__ */ jsx110(
|
|
7235
|
+
Box32,
|
|
7505
7236
|
{
|
|
7506
7237
|
sx: {
|
|
7507
7238
|
display: "flex",
|
|
7508
7239
|
gap: "24px"
|
|
7509
7240
|
},
|
|
7510
|
-
children: columns.map((column) => /* @__PURE__ */
|
|
7511
|
-
/* @__PURE__ */
|
|
7512
|
-
typeof column.value === "string" ? /* @__PURE__ */
|
|
7241
|
+
children: columns.map((column) => /* @__PURE__ */ jsxs74("div", { children: [
|
|
7242
|
+
/* @__PURE__ */ jsx110(Typography26, { className: classes.smallTitle, variant: "caption", children: column.title }),
|
|
7243
|
+
typeof column.value === "string" ? /* @__PURE__ */ jsx110(Typography26, { variant: "body1", children: column.value }) : column.value
|
|
7513
7244
|
] }, column.title))
|
|
7514
7245
|
}
|
|
7515
7246
|
)
|
|
@@ -7522,10 +7253,10 @@ var RowProductCard = ({
|
|
|
7522
7253
|
var RowProductCard_default = RowProductCard;
|
|
7523
7254
|
|
|
7524
7255
|
// src/components/ScrollableDialog/ScrollableDialog.tsx
|
|
7525
|
-
import { useEffect as
|
|
7526
|
-
import { Box as
|
|
7256
|
+
import { useEffect as useEffect9, useRef as useRef6, useState as useState12 } from "react";
|
|
7257
|
+
import { Box as Box33, Dialog as Dialog4, Divider as Divider7, Fade, Paper as Paper6, Typography as Typography27 } from "@mui/material";
|
|
7527
7258
|
import { makeStyles as makeStyles37 } from "tss-react/mui";
|
|
7528
|
-
import { jsx as
|
|
7259
|
+
import { jsx as jsx111, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
7529
7260
|
var useStyles37 = makeStyles37()((theme) => ({
|
|
7530
7261
|
dialog: {
|
|
7531
7262
|
margin: "0 auto",
|
|
@@ -7565,18 +7296,18 @@ var ScrollableDialog = ({
|
|
|
7565
7296
|
isOpen,
|
|
7566
7297
|
title
|
|
7567
7298
|
}) => {
|
|
7568
|
-
const [bodyHeight, setBodyHeight] =
|
|
7569
|
-
const [hasScrollBar, setHasScrollBar] =
|
|
7570
|
-
const [maxDialogHeight, setMaxDialogHeight] =
|
|
7299
|
+
const [bodyHeight, setBodyHeight] = useState12(0);
|
|
7300
|
+
const [hasScrollBar, setHasScrollBar] = useState12(false);
|
|
7301
|
+
const [maxDialogHeight, setMaxDialogHeight] = useState12(0);
|
|
7571
7302
|
const { classes, cx } = useStyles37();
|
|
7572
|
-
const headerRef =
|
|
7573
|
-
const footerRef =
|
|
7574
|
-
const titleRef =
|
|
7575
|
-
const bodyRef =
|
|
7303
|
+
const headerRef = useRef6(null);
|
|
7304
|
+
const footerRef = useRef6(null);
|
|
7305
|
+
const titleRef = useRef6(null);
|
|
7306
|
+
const bodyRef = useRef6(null);
|
|
7576
7307
|
const DIALOG_MARGIN = 65;
|
|
7577
7308
|
const DEFAULT_MAX_HEIGHT = 728;
|
|
7578
7309
|
const TITLE_MARGIN = 48;
|
|
7579
|
-
|
|
7310
|
+
useEffect9(() => {
|
|
7580
7311
|
const handleResize = () => {
|
|
7581
7312
|
const screenHeight = window.innerHeight;
|
|
7582
7313
|
const newMaxHeight = screenHeight < DEFAULT_MAX_HEIGHT + DIALOG_MARGIN ? screenHeight - DIALOG_MARGIN : DEFAULT_MAX_HEIGHT;
|
|
@@ -7595,22 +7326,22 @@ var ScrollableDialog = ({
|
|
|
7595
7326
|
const scrollHeight = bodyRef.current?.scrollHeight || 0;
|
|
7596
7327
|
setHasScrollBar(scrollHeight > contentHeight);
|
|
7597
7328
|
};
|
|
7598
|
-
|
|
7329
|
+
useEffect9(() => {
|
|
7599
7330
|
if (isOpen) {
|
|
7600
7331
|
requestAnimationFrame(measureHeights);
|
|
7601
7332
|
}
|
|
7602
7333
|
}, [isOpen, header, footer, title, maxDialogHeight]);
|
|
7603
|
-
return /* @__PURE__ */
|
|
7334
|
+
return /* @__PURE__ */ jsx111(Dialog4, { className: classes.dialog, fullWidth: true, maxWidth: false, open: isOpen, children: /* @__PURE__ */ jsx111(
|
|
7604
7335
|
Fade,
|
|
7605
7336
|
{
|
|
7606
7337
|
in: isOpen,
|
|
7607
7338
|
onEntered: () => {
|
|
7608
7339
|
requestAnimationFrame(measureHeights);
|
|
7609
7340
|
},
|
|
7610
|
-
children: /* @__PURE__ */
|
|
7611
|
-
header ? /* @__PURE__ */
|
|
7612
|
-
/* @__PURE__ */
|
|
7613
|
-
/* @__PURE__ */
|
|
7341
|
+
children: /* @__PURE__ */ jsxs75(Paper6, { className: classes.wrapper, children: [
|
|
7342
|
+
header ? /* @__PURE__ */ jsx111("div", { className: classes.header, id: "dialog-header", children: header }) : null,
|
|
7343
|
+
/* @__PURE__ */ jsxs75("div", { className: classes.body, children: [
|
|
7344
|
+
/* @__PURE__ */ jsx111(
|
|
7614
7345
|
Typography27,
|
|
7615
7346
|
{
|
|
7616
7347
|
className: classes.title,
|
|
@@ -7619,7 +7350,7 @@ var ScrollableDialog = ({
|
|
|
7619
7350
|
children: title
|
|
7620
7351
|
}
|
|
7621
7352
|
),
|
|
7622
|
-
/* @__PURE__ */
|
|
7353
|
+
/* @__PURE__ */ jsx111(
|
|
7623
7354
|
"div",
|
|
7624
7355
|
{
|
|
7625
7356
|
className: cx(classes.scrollableContainer, {
|
|
@@ -7633,9 +7364,9 @@ var ScrollableDialog = ({
|
|
|
7633
7364
|
}
|
|
7634
7365
|
)
|
|
7635
7366
|
] }),
|
|
7636
|
-
/* @__PURE__ */
|
|
7637
|
-
footer ? /* @__PURE__ */
|
|
7638
|
-
|
|
7367
|
+
/* @__PURE__ */ jsx111(Divider7, {}),
|
|
7368
|
+
footer ? /* @__PURE__ */ jsx111(
|
|
7369
|
+
Box33,
|
|
7639
7370
|
{
|
|
7640
7371
|
className: classes.footer,
|
|
7641
7372
|
id: "dialog-footer",
|
|
@@ -7653,20 +7384,20 @@ var ScrollableDialog = ({
|
|
|
7653
7384
|
var ScrollableDialog_default = ScrollableDialog;
|
|
7654
7385
|
|
|
7655
7386
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeader.tsx
|
|
7656
|
-
import { Box as
|
|
7387
|
+
import { Box as Box34, Paper as Paper8 } from "@mui/material";
|
|
7657
7388
|
import { makeStyles as makeStyles39 } from "tss-react/mui";
|
|
7658
7389
|
|
|
7659
7390
|
// src/components/SearchWithFilters/SearchWithFilters.tsx
|
|
7660
|
-
import { useState as
|
|
7391
|
+
import { useState as useState13, useEffect as useEffect10 } from "react";
|
|
7661
7392
|
import * as React6 from "react";
|
|
7662
7393
|
import {
|
|
7663
7394
|
ArrowDropDown as ArrowDropDownIcon,
|
|
7664
7395
|
ArrowDropUp as ArrowDropUpIcon,
|
|
7665
7396
|
Search as SearchIcon
|
|
7666
7397
|
} from "@mui/icons-material";
|
|
7667
|
-
import { Button as Button14, Divider as Divider8, InputBase
|
|
7398
|
+
import { Button as Button14, Divider as Divider8, InputBase, Paper as Paper7 } from "@mui/material";
|
|
7668
7399
|
import { makeStyles as makeStyles38 } from "tss-react/mui";
|
|
7669
|
-
import { jsx as
|
|
7400
|
+
import { jsx as jsx112, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
7670
7401
|
var useStyles38 = makeStyles38()((theme) => ({
|
|
7671
7402
|
searchContainer: {
|
|
7672
7403
|
height: 46,
|
|
@@ -7711,7 +7442,7 @@ var SearchWithFilters = ({
|
|
|
7711
7442
|
},
|
|
7712
7443
|
disabled = false
|
|
7713
7444
|
}) => {
|
|
7714
|
-
const [searchText, setSearchText] =
|
|
7445
|
+
const [searchText, setSearchText] = useState13(searchValue);
|
|
7715
7446
|
const { classes } = useStyles38();
|
|
7716
7447
|
const handleTextChange = (e) => {
|
|
7717
7448
|
const { value } = e.target;
|
|
@@ -7723,13 +7454,13 @@ var SearchWithFilters = ({
|
|
|
7723
7454
|
enterPressedInSearch?.();
|
|
7724
7455
|
}
|
|
7725
7456
|
};
|
|
7726
|
-
|
|
7457
|
+
useEffect10(() => {
|
|
7727
7458
|
setSearchText(searchValue);
|
|
7728
7459
|
}, [searchValue]);
|
|
7729
|
-
return /* @__PURE__ */
|
|
7730
|
-
/* @__PURE__ */
|
|
7731
|
-
/* @__PURE__ */
|
|
7732
|
-
|
|
7460
|
+
return /* @__PURE__ */ jsxs76(Paper7, { className: classes.searchContainer, children: [
|
|
7461
|
+
/* @__PURE__ */ jsx112(SearchIcon, { className: classes.icon, fontSize: "small" }),
|
|
7462
|
+
/* @__PURE__ */ jsx112(
|
|
7463
|
+
InputBase,
|
|
7733
7464
|
{
|
|
7734
7465
|
className: classes.input,
|
|
7735
7466
|
placeholder: "Search",
|
|
@@ -7740,8 +7471,8 @@ var SearchWithFilters = ({
|
|
|
7740
7471
|
inputProps: { "aria-label": "search" }
|
|
7741
7472
|
}
|
|
7742
7473
|
),
|
|
7743
|
-
/* @__PURE__ */
|
|
7744
|
-
/* @__PURE__ */
|
|
7474
|
+
/* @__PURE__ */ jsx112(Divider8, { className: classes.divider, orientation: "vertical" }),
|
|
7475
|
+
/* @__PURE__ */ jsxs76(
|
|
7745
7476
|
Button14,
|
|
7746
7477
|
{
|
|
7747
7478
|
className: classes.filterButton,
|
|
@@ -7749,7 +7480,7 @@ var SearchWithFilters = ({
|
|
|
7749
7480
|
disabled,
|
|
7750
7481
|
children: [
|
|
7751
7482
|
"Filters",
|
|
7752
|
-
showFilters ? /* @__PURE__ */
|
|
7483
|
+
showFilters ? /* @__PURE__ */ jsx112(ArrowDropUpIcon, {}) : /* @__PURE__ */ jsx112(ArrowDropDownIcon, {})
|
|
7753
7484
|
]
|
|
7754
7485
|
}
|
|
7755
7486
|
)
|
|
@@ -7758,7 +7489,7 @@ var SearchWithFilters = ({
|
|
|
7758
7489
|
var SearchWithFilters_default = React6.memo(SearchWithFilters);
|
|
7759
7490
|
|
|
7760
7491
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeader.tsx
|
|
7761
|
-
import { jsx as
|
|
7492
|
+
import { jsx as jsx113, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
7762
7493
|
var useStyles39 = makeStyles39()((theme) => ({
|
|
7763
7494
|
wrapper: {
|
|
7764
7495
|
display: "flex",
|
|
@@ -7794,11 +7525,11 @@ var SearchAndFilterHeader = ({
|
|
|
7794
7525
|
searchValue
|
|
7795
7526
|
}) => {
|
|
7796
7527
|
const { classes } = useStyles39();
|
|
7797
|
-
return /* @__PURE__ */
|
|
7798
|
-
/* @__PURE__ */
|
|
7799
|
-
/* @__PURE__ */
|
|
7800
|
-
/* @__PURE__ */
|
|
7801
|
-
/* @__PURE__ */
|
|
7528
|
+
return /* @__PURE__ */ jsx113(Paper8, { children: /* @__PURE__ */ jsxs77(Box34, { className: classes.wrapper, children: [
|
|
7529
|
+
/* @__PURE__ */ jsxs77(Box34, { className: classes.container, children: [
|
|
7530
|
+
/* @__PURE__ */ jsxs77(Box34, { className: classes.leftSection, children: [
|
|
7531
|
+
/* @__PURE__ */ jsx113(AppLabel_default, { appName }),
|
|
7532
|
+
/* @__PURE__ */ jsx113(
|
|
7802
7533
|
SearchWithFilters_default,
|
|
7803
7534
|
{
|
|
7804
7535
|
searchValue,
|
|
@@ -7809,9 +7540,9 @@ var SearchAndFilterHeader = ({
|
|
|
7809
7540
|
}
|
|
7810
7541
|
)
|
|
7811
7542
|
] }),
|
|
7812
|
-
/* @__PURE__ */
|
|
7543
|
+
/* @__PURE__ */ jsx113(Box34, { children: extraButton })
|
|
7813
7544
|
] }),
|
|
7814
|
-
showFilters ? /* @__PURE__ */
|
|
7545
|
+
showFilters ? /* @__PURE__ */ jsx113(Box34, { children: filtersComponent }) : null,
|
|
7815
7546
|
appliedFiltersComponent
|
|
7816
7547
|
] }) });
|
|
7817
7548
|
};
|
|
@@ -7819,19 +7550,19 @@ var SearchAndFilterHeader_default = SearchAndFilterHeader;
|
|
|
7819
7550
|
|
|
7820
7551
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
|
|
7821
7552
|
import * as React7 from "react";
|
|
7822
|
-
import { Box as
|
|
7553
|
+
import { Box as Box36 } from "@mui/material";
|
|
7823
7554
|
import { makeStyles as makeStyles41 } from "tss-react/mui";
|
|
7824
7555
|
|
|
7825
7556
|
// src/components/SearchWithFilters/SearchWithFiltersForTable.tsx
|
|
7826
|
-
import { useState as
|
|
7557
|
+
import { useState as useState14, memo as memo16 } from "react";
|
|
7827
7558
|
import {
|
|
7828
7559
|
ArrowDropDown as ArrowDropDownIcon2,
|
|
7829
7560
|
ArrowDropUp as ArrowDropUpIcon2,
|
|
7830
7561
|
Search as SearchIcon2
|
|
7831
7562
|
} from "@mui/icons-material";
|
|
7832
|
-
import { Box as
|
|
7563
|
+
import { Box as Box35, Button as Button15, Divider as Divider9, InputBase as InputBase2, Paper as Paper9 } from "@mui/material";
|
|
7833
7564
|
import { makeStyles as makeStyles40 } from "tss-react/mui";
|
|
7834
|
-
import { Fragment as Fragment12, jsx as
|
|
7565
|
+
import { Fragment as Fragment12, jsx as jsx114, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
7835
7566
|
var useStyles40 = makeStyles40()((theme) => ({
|
|
7836
7567
|
c_search: {
|
|
7837
7568
|
height: 46,
|
|
@@ -7891,7 +7622,7 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
7891
7622
|
searchedValue
|
|
7892
7623
|
} = props;
|
|
7893
7624
|
const { classes } = useStyles40();
|
|
7894
|
-
const [searchText, setSearchText] =
|
|
7625
|
+
const [searchText, setSearchText] = useState14("");
|
|
7895
7626
|
const handleTextChange = (e) => {
|
|
7896
7627
|
const { value } = e.target;
|
|
7897
7628
|
setSearchText(value);
|
|
@@ -7906,10 +7637,10 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
7906
7637
|
}
|
|
7907
7638
|
};
|
|
7908
7639
|
const ArrowIcon = isOpen ? ArrowDropUpIcon2 : ArrowDropDownIcon2;
|
|
7909
|
-
return /* @__PURE__ */
|
|
7910
|
-
/* @__PURE__ */
|
|
7911
|
-
/* @__PURE__ */
|
|
7912
|
-
|
|
7640
|
+
return /* @__PURE__ */ jsxs78(Paper9, { className: classes.c_search, children: [
|
|
7641
|
+
/* @__PURE__ */ jsx114(Box35, { className: classes.c_search__icon, children: /* @__PURE__ */ jsx114(SearchIcon2, { className: classes.icon, fontSize: "small" }) }),
|
|
7642
|
+
/* @__PURE__ */ jsx114(
|
|
7643
|
+
InputBase2,
|
|
7913
7644
|
{
|
|
7914
7645
|
className: classes.c_search__input,
|
|
7915
7646
|
placeholder: "Search",
|
|
@@ -7918,32 +7649,32 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
7918
7649
|
onKeyDown: handleKeyPress
|
|
7919
7650
|
}
|
|
7920
7651
|
),
|
|
7921
|
-
showFilterButton && /* @__PURE__ */
|
|
7922
|
-
/* @__PURE__ */
|
|
7652
|
+
showFilterButton && /* @__PURE__ */ jsxs78(Fragment12, { children: [
|
|
7653
|
+
/* @__PURE__ */ jsx114(
|
|
7923
7654
|
Divider9,
|
|
7924
7655
|
{
|
|
7925
7656
|
className: classes.c_search__divider,
|
|
7926
7657
|
orientation: "vertical"
|
|
7927
7658
|
}
|
|
7928
7659
|
),
|
|
7929
|
-
/* @__PURE__ */
|
|
7660
|
+
/* @__PURE__ */ jsxs78(
|
|
7930
7661
|
Button15,
|
|
7931
7662
|
{
|
|
7932
7663
|
className: classes.c_search__bt_filter,
|
|
7933
7664
|
onClick: handleFilterButtonClick,
|
|
7934
7665
|
children: [
|
|
7935
7666
|
"Filters",
|
|
7936
|
-
/* @__PURE__ */
|
|
7667
|
+
/* @__PURE__ */ jsx114(ArrowIcon, { className: classes.c_search__bt_icon_filter })
|
|
7937
7668
|
]
|
|
7938
7669
|
}
|
|
7939
7670
|
)
|
|
7940
7671
|
] })
|
|
7941
7672
|
] });
|
|
7942
7673
|
};
|
|
7943
|
-
var SearchWithFiltersForTable_default =
|
|
7674
|
+
var SearchWithFiltersForTable_default = memo16(SearchWithFiltersForTable);
|
|
7944
7675
|
|
|
7945
7676
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
|
|
7946
|
-
import { jsx as
|
|
7677
|
+
import { jsx as jsx115, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
7947
7678
|
var useStyles41 = makeStyles41()((theme) => ({
|
|
7948
7679
|
container: {
|
|
7949
7680
|
display: "flex",
|
|
@@ -7975,10 +7706,10 @@ var SearchAndFilterHeaderForTable = (props) => {
|
|
|
7975
7706
|
searchedValue
|
|
7976
7707
|
} = props;
|
|
7977
7708
|
const { classes } = useStyles41();
|
|
7978
|
-
return /* @__PURE__ */
|
|
7979
|
-
/* @__PURE__ */
|
|
7980
|
-
/* @__PURE__ */
|
|
7981
|
-
/* @__PURE__ */
|
|
7709
|
+
return /* @__PURE__ */ jsxs79(Box36, { className: classes.container, children: [
|
|
7710
|
+
/* @__PURE__ */ jsxs79(Box36, { className: classes.leftSection, children: [
|
|
7711
|
+
/* @__PURE__ */ jsx115(AppLabel_default, { appName }),
|
|
7712
|
+
/* @__PURE__ */ jsx115(
|
|
7982
7713
|
SearchWithFiltersForTable_default,
|
|
7983
7714
|
{
|
|
7984
7715
|
onFilterButtonClick,
|
|
@@ -7989,24 +7720,24 @@ var SearchAndFilterHeaderForTable = (props) => {
|
|
|
7989
7720
|
searchedValue
|
|
7990
7721
|
}
|
|
7991
7722
|
),
|
|
7992
|
-
copy && /* @__PURE__ */
|
|
7993
|
-
|
|
7723
|
+
copy && /* @__PURE__ */ jsx115(
|
|
7724
|
+
Box36,
|
|
7994
7725
|
{
|
|
7995
7726
|
sx: {
|
|
7996
7727
|
margin: 0.5
|
|
7997
7728
|
},
|
|
7998
|
-
children: /* @__PURE__ */
|
|
7729
|
+
children: /* @__PURE__ */ jsx115(OutlinedButton_default, { copy })
|
|
7999
7730
|
}
|
|
8000
7731
|
)
|
|
8001
7732
|
] }),
|
|
8002
|
-
/* @__PURE__ */
|
|
7733
|
+
/* @__PURE__ */ jsx115(Box36, { children: button })
|
|
8003
7734
|
] });
|
|
8004
7735
|
};
|
|
8005
7736
|
var SearchAndFilterHeaderForTable_default = React7.memo(SearchAndFilterHeaderForTable);
|
|
8006
7737
|
|
|
8007
7738
|
// src/components/SearchHeader/SearchHeader.tsx
|
|
8008
|
-
import { Box as
|
|
8009
|
-
import { jsx as
|
|
7739
|
+
import { Box as Box37, Paper as Paper10 } from "@mui/material";
|
|
7740
|
+
import { jsx as jsx116, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
8010
7741
|
var SearchHeader = ({
|
|
8011
7742
|
renderButton,
|
|
8012
7743
|
renderExtraAction,
|
|
@@ -8017,8 +7748,8 @@ var SearchHeader = ({
|
|
|
8017
7748
|
onKeyDown,
|
|
8018
7749
|
width
|
|
8019
7750
|
}) => {
|
|
8020
|
-
return /* @__PURE__ */
|
|
8021
|
-
|
|
7751
|
+
return /* @__PURE__ */ jsxs80(
|
|
7752
|
+
Paper10,
|
|
8022
7753
|
{
|
|
8023
7754
|
sx: {
|
|
8024
7755
|
display: "flex",
|
|
@@ -8026,8 +7757,8 @@ var SearchHeader = ({
|
|
|
8026
7757
|
padding: 2
|
|
8027
7758
|
},
|
|
8028
7759
|
children: [
|
|
8029
|
-
/* @__PURE__ */
|
|
8030
|
-
|
|
7760
|
+
/* @__PURE__ */ jsxs80(
|
|
7761
|
+
Box37,
|
|
8031
7762
|
{
|
|
8032
7763
|
sx: {
|
|
8033
7764
|
display: "flex",
|
|
@@ -8035,8 +7766,8 @@ var SearchHeader = ({
|
|
|
8035
7766
|
alignItems: "center"
|
|
8036
7767
|
},
|
|
8037
7768
|
children: [
|
|
8038
|
-
/* @__PURE__ */
|
|
8039
|
-
/* @__PURE__ */
|
|
7769
|
+
/* @__PURE__ */ jsxs80(Box37, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
|
|
7770
|
+
/* @__PURE__ */ jsx116(
|
|
8040
7771
|
SearchFieldDebounced,
|
|
8041
7772
|
{
|
|
8042
7773
|
width,
|
|
@@ -8061,9 +7792,9 @@ var SearchHeader = ({
|
|
|
8061
7792
|
// src/components/SectionName/SectionName.tsx
|
|
8062
7793
|
import HistoryIcon from "@mui/icons-material/History";
|
|
8063
7794
|
import InfoIcon from "@mui/icons-material/Info";
|
|
8064
|
-
import { Box as
|
|
7795
|
+
import { Box as Box38, Divider as Divider10, IconButton as IconButton5, Tooltip as Tooltip10, Typography as Typography28 } from "@mui/material";
|
|
8065
7796
|
import { makeStyles as makeStyles42 } from "tss-react/mui";
|
|
8066
|
-
import { jsx as
|
|
7797
|
+
import { jsx as jsx117, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
8067
7798
|
var useStyles42 = makeStyles42()((theme) => ({
|
|
8068
7799
|
container: {
|
|
8069
7800
|
display: "flex",
|
|
@@ -8119,9 +7850,9 @@ var SectionName = ({
|
|
|
8119
7850
|
}
|
|
8120
7851
|
}
|
|
8121
7852
|
};
|
|
8122
|
-
return /* @__PURE__ */
|
|
8123
|
-
/* @__PURE__ */
|
|
8124
|
-
/* @__PURE__ */
|
|
7853
|
+
return /* @__PURE__ */ jsxs81(Box38, { className: classes.container, children: [
|
|
7854
|
+
/* @__PURE__ */ jsxs81(Box38, { className: classes.titleContainer, children: [
|
|
7855
|
+
/* @__PURE__ */ jsx117(
|
|
8125
7856
|
Typography28,
|
|
8126
7857
|
{
|
|
8127
7858
|
variant: "h5",
|
|
@@ -8130,7 +7861,7 @@ var SectionName = ({
|
|
|
8130
7861
|
children: name
|
|
8131
7862
|
}
|
|
8132
7863
|
),
|
|
8133
|
-
tooltipDescription ? /* @__PURE__ */
|
|
7864
|
+
tooltipDescription ? /* @__PURE__ */ jsx117(Tooltip10, { title: tooltipDescription, placement: "right", children: /* @__PURE__ */ jsx117(
|
|
8134
7865
|
InfoIcon,
|
|
8135
7866
|
{
|
|
8136
7867
|
fontSize: "small",
|
|
@@ -8139,8 +7870,8 @@ var SectionName = ({
|
|
|
8139
7870
|
}
|
|
8140
7871
|
) }) : null
|
|
8141
7872
|
] }),
|
|
8142
|
-
/* @__PURE__ */
|
|
8143
|
-
buttonText ? /* @__PURE__ */
|
|
7873
|
+
/* @__PURE__ */ jsxs81(Box38, { className: classes.actionButtons, children: [
|
|
7874
|
+
buttonText ? /* @__PURE__ */ jsx117(
|
|
8144
7875
|
ExtendedButton_default,
|
|
8145
7876
|
{
|
|
8146
7877
|
type: buttonType,
|
|
@@ -8153,17 +7884,17 @@ var SectionName = ({
|
|
|
8153
7884
|
variant: "text"
|
|
8154
7885
|
}
|
|
8155
7886
|
) : null,
|
|
8156
|
-
openHistoryLog && buttonText && /* @__PURE__ */
|
|
8157
|
-
openHistoryLog && /* @__PURE__ */
|
|
7887
|
+
openHistoryLog && buttonText && /* @__PURE__ */ jsx117(Divider10, { orientation: "vertical", sx: { height: "24px" } }),
|
|
7888
|
+
openHistoryLog && /* @__PURE__ */ jsx117(IconButton5, { size: "small", onClick: () => openHistoryLog(), children: /* @__PURE__ */ jsx117(HistoryIcon, {}) })
|
|
8158
7889
|
] })
|
|
8159
7890
|
] });
|
|
8160
7891
|
};
|
|
8161
7892
|
var SectionName_default = SectionName;
|
|
8162
7893
|
|
|
8163
7894
|
// src/components/SmartMultipleSelect/SmartMultipleSelect.tsx
|
|
8164
|
-
import { useState as
|
|
7895
|
+
import { useState as useState15 } from "react";
|
|
8165
7896
|
import {
|
|
8166
|
-
Box as
|
|
7897
|
+
Box as Box39,
|
|
8167
7898
|
Checkbox as Checkbox7,
|
|
8168
7899
|
CircularProgress as CircularProgress5,
|
|
8169
7900
|
FormControl as FormControl5,
|
|
@@ -8173,7 +7904,7 @@ import {
|
|
|
8173
7904
|
Select as Select4,
|
|
8174
7905
|
Typography as Typography29
|
|
8175
7906
|
} from "@mui/material";
|
|
8176
|
-
import { jsx as
|
|
7907
|
+
import { jsx as jsx118, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
8177
7908
|
var SmartMultipleSelect = ({
|
|
8178
7909
|
inputLabel,
|
|
8179
7910
|
variant = "standard",
|
|
@@ -8191,7 +7922,7 @@ var SmartMultipleSelect = ({
|
|
|
8191
7922
|
helperText,
|
|
8192
7923
|
menuProps
|
|
8193
7924
|
}) => {
|
|
8194
|
-
const [localValues, setLocalValues] =
|
|
7925
|
+
const [localValues, setLocalValues] = useState15(defaultValues ?? []);
|
|
8195
7926
|
const handleChangeOption = (option) => {
|
|
8196
7927
|
let newValues = [];
|
|
8197
7928
|
const selectedIndex = localValues.findIndex(
|
|
@@ -8205,19 +7936,19 @@ var SmartMultipleSelect = ({
|
|
|
8205
7936
|
setLocalValues(newValues);
|
|
8206
7937
|
onChange?.(newValues);
|
|
8207
7938
|
};
|
|
8208
|
-
const renderMenuContent = () => !menuOptions?.length ? /* @__PURE__ */
|
|
8209
|
-
|
|
7939
|
+
const renderMenuContent = () => !menuOptions?.length ? /* @__PURE__ */ jsx118(
|
|
7940
|
+
Box39,
|
|
8210
7941
|
{
|
|
8211
7942
|
sx: { display: "flex", justifyContent: "center", alignItems: "center" },
|
|
8212
|
-
children: /* @__PURE__ */
|
|
7943
|
+
children: /* @__PURE__ */ jsx118(Typography29, { children: emptyMessage })
|
|
8213
7944
|
}
|
|
8214
|
-
) : /* @__PURE__ */
|
|
7945
|
+
) : /* @__PURE__ */ jsx118(Box39, { sx: { display: "flex", flexDirection: "column" }, children: menuOptions?.map((option, index) => {
|
|
8215
7946
|
const selectedValues = values ?? localValues ?? [];
|
|
8216
7947
|
const isSelected = selectedValues.some(
|
|
8217
7948
|
(selected) => selected.value === option.value
|
|
8218
7949
|
);
|
|
8219
|
-
return /* @__PURE__ */
|
|
8220
|
-
|
|
7950
|
+
return /* @__PURE__ */ jsxs82(
|
|
7951
|
+
Box39,
|
|
8221
7952
|
{
|
|
8222
7953
|
onClick: () => handleChangeOption(option),
|
|
8223
7954
|
sx: {
|
|
@@ -8227,14 +7958,14 @@ var SmartMultipleSelect = ({
|
|
|
8227
7958
|
backgroundColor: isSelected ? colors.lightBlueBackground : void 0
|
|
8228
7959
|
},
|
|
8229
7960
|
children: [
|
|
8230
|
-
/* @__PURE__ */
|
|
8231
|
-
/* @__PURE__ */
|
|
7961
|
+
/* @__PURE__ */ jsx118(Checkbox7, { disableRipple: true, sx: { py: 0.5 }, checked: isSelected }),
|
|
7962
|
+
/* @__PURE__ */ jsx118(ListItemText5, { primary: option.label })
|
|
8232
7963
|
]
|
|
8233
7964
|
},
|
|
8234
7965
|
option.value ?? index
|
|
8235
7966
|
);
|
|
8236
7967
|
}) });
|
|
8237
|
-
return /* @__PURE__ */
|
|
7968
|
+
return /* @__PURE__ */ jsxs82(
|
|
8238
7969
|
FormControl5,
|
|
8239
7970
|
{
|
|
8240
7971
|
fullWidth: true,
|
|
@@ -8243,8 +7974,8 @@ var SmartMultipleSelect = ({
|
|
|
8243
7974
|
disabled,
|
|
8244
7975
|
error,
|
|
8245
7976
|
children: [
|
|
8246
|
-
/* @__PURE__ */
|
|
8247
|
-
/* @__PURE__ */
|
|
7977
|
+
/* @__PURE__ */ jsx118(InputLabel5, { children: inputLabel }),
|
|
7978
|
+
/* @__PURE__ */ jsx118(
|
|
8248
7979
|
Select4,
|
|
8249
7980
|
{
|
|
8250
7981
|
multiple: true,
|
|
@@ -8257,33 +7988,33 @@ var SmartMultipleSelect = ({
|
|
|
8257
7988
|
onClose: () => onClose?.(localValues),
|
|
8258
7989
|
renderValue: (selectedValues) => {
|
|
8259
7990
|
const valuesString = selectedValues.map((v) => v.label)?.join(", ");
|
|
8260
|
-
return /* @__PURE__ */
|
|
7991
|
+
return /* @__PURE__ */ jsx118(DynamicOverflowTooltip, { tooltipDescription: valuesString, children: valuesString });
|
|
8261
7992
|
},
|
|
8262
|
-
children: isLoading ? /* @__PURE__ */
|
|
8263
|
-
|
|
7993
|
+
children: isLoading ? /* @__PURE__ */ jsx118(
|
|
7994
|
+
Box39,
|
|
8264
7995
|
{
|
|
8265
7996
|
sx: {
|
|
8266
7997
|
display: "flex",
|
|
8267
7998
|
justifyContent: "center",
|
|
8268
7999
|
alignItems: "center"
|
|
8269
8000
|
},
|
|
8270
|
-
children: /* @__PURE__ */
|
|
8001
|
+
children: /* @__PURE__ */ jsx118(CircularProgress5, { size: 24 })
|
|
8271
8002
|
}
|
|
8272
8003
|
) : renderMenuContent()
|
|
8273
8004
|
}
|
|
8274
8005
|
),
|
|
8275
|
-
helperText && /* @__PURE__ */
|
|
8006
|
+
helperText && /* @__PURE__ */ jsx118(FormHelperText4, { children: helperText })
|
|
8276
8007
|
]
|
|
8277
8008
|
}
|
|
8278
8009
|
);
|
|
8279
8010
|
};
|
|
8280
8011
|
|
|
8281
8012
|
// src/components/SquareLabel/SquareLabel.tsx
|
|
8282
|
-
import { memo as
|
|
8013
|
+
import { memo as memo18 } from "react";
|
|
8283
8014
|
import { Typography as Typography30 } from "@mui/material";
|
|
8284
8015
|
import { red as red2 } from "@mui/material/colors";
|
|
8285
8016
|
import { makeStyles as makeStyles43 } from "tss-react/mui";
|
|
8286
|
-
import { jsx as
|
|
8017
|
+
import { jsx as jsx119 } from "react/jsx-runtime";
|
|
8287
8018
|
var useStyles43 = makeStyles43()((theme) => ({
|
|
8288
8019
|
red: {
|
|
8289
8020
|
backgroundColor: red2["50"],
|
|
@@ -8298,15 +8029,15 @@ var useStyles43 = makeStyles43()((theme) => ({
|
|
|
8298
8029
|
}));
|
|
8299
8030
|
var SquareLabel = ({ color, copy }) => {
|
|
8300
8031
|
const { classes } = useStyles43();
|
|
8301
|
-
return /* @__PURE__ */
|
|
8032
|
+
return /* @__PURE__ */ jsx119(Typography30, { className: classes[color], children: copy });
|
|
8302
8033
|
};
|
|
8303
|
-
var SquareLabel_default =
|
|
8034
|
+
var SquareLabel_default = memo18(SquareLabel);
|
|
8304
8035
|
|
|
8305
8036
|
// src/components/Switch/Switch.tsx
|
|
8306
|
-
import { memo as
|
|
8037
|
+
import { memo as memo19 } from "react";
|
|
8307
8038
|
import { Grid as Grid2, Switch } from "@mui/material";
|
|
8308
8039
|
import { withStyles as withStyles6 } from "tss-react/mui";
|
|
8309
|
-
import { jsx as
|
|
8040
|
+
import { jsx as jsx120, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
8310
8041
|
var LSwitch = ({
|
|
8311
8042
|
checked,
|
|
8312
8043
|
labelOn,
|
|
@@ -8314,7 +8045,7 @@ var LSwitch = ({
|
|
|
8314
8045
|
handleChange,
|
|
8315
8046
|
classes,
|
|
8316
8047
|
disabled
|
|
8317
|
-
}) => /* @__PURE__ */
|
|
8048
|
+
}) => /* @__PURE__ */ jsx120("div", { className: classes.c_switch, children: /* @__PURE__ */ jsxs83(
|
|
8318
8049
|
Grid2,
|
|
8319
8050
|
{
|
|
8320
8051
|
component: "label",
|
|
@@ -8324,8 +8055,8 @@ var LSwitch = ({
|
|
|
8324
8055
|
alignItems: "center"
|
|
8325
8056
|
},
|
|
8326
8057
|
children: [
|
|
8327
|
-
labelOff && /* @__PURE__ */
|
|
8328
|
-
/* @__PURE__ */
|
|
8058
|
+
labelOff && /* @__PURE__ */ jsx120(Grid2, { children: labelOff }),
|
|
8059
|
+
/* @__PURE__ */ jsx120(Grid2, { children: /* @__PURE__ */ jsx120(
|
|
8329
8060
|
Switch,
|
|
8330
8061
|
{
|
|
8331
8062
|
checked,
|
|
@@ -8334,7 +8065,7 @@ var LSwitch = ({
|
|
|
8334
8065
|
disabled
|
|
8335
8066
|
}
|
|
8336
8067
|
) }),
|
|
8337
|
-
labelOn && /* @__PURE__ */
|
|
8068
|
+
labelOn && /* @__PURE__ */ jsx120(Grid2, { children: labelOn })
|
|
8338
8069
|
]
|
|
8339
8070
|
}
|
|
8340
8071
|
) });
|
|
@@ -8356,14 +8087,14 @@ var LabelledSwitch = withStyles6(LSwitch, (theme) => ({
|
|
|
8356
8087
|
fontSize: "1rem"
|
|
8357
8088
|
}
|
|
8358
8089
|
}));
|
|
8359
|
-
var Switch_default =
|
|
8090
|
+
var Switch_default = memo19(LabelledSwitch);
|
|
8360
8091
|
|
|
8361
8092
|
// src/components/SmartTableHeaderFilterMenu/SmartTableHeaderFilterMenu.tsx
|
|
8362
|
-
import { useState as
|
|
8093
|
+
import { useState as useState16, useEffect as useEffect11 } from "react";
|
|
8363
8094
|
import { Menu as Menu4 } from "@mui/material";
|
|
8364
8095
|
import classNames3 from "classnames";
|
|
8365
|
-
import { Fragment as Fragment13, jsx as
|
|
8366
|
-
var
|
|
8096
|
+
import { Fragment as Fragment13, jsx as jsx121, jsxs as jsxs84 } from "react/jsx-runtime";
|
|
8097
|
+
var MAX_WIDTH = 276;
|
|
8367
8098
|
var findFilterIndex = (filters, filterOption) => filters.findIndex((item) => {
|
|
8368
8099
|
if (typeof item === "string" && typeof filterOption === "string") {
|
|
8369
8100
|
return item === filterOption;
|
|
@@ -8380,11 +8111,11 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
8380
8111
|
shouldShowCheckOnFilter,
|
|
8381
8112
|
onApplyFilters
|
|
8382
8113
|
}) => {
|
|
8383
|
-
const [anchorEl, setAnchorEl] =
|
|
8384
|
-
const [filterOptionsData, setFilterOptionsData] =
|
|
8385
|
-
const [selectedFilterOptions, setSelectedFilterOptions] =
|
|
8114
|
+
const [anchorEl, setAnchorEl] = useState16(null);
|
|
8115
|
+
const [filterOptionsData, setFilterOptionsData] = useState16();
|
|
8116
|
+
const [selectedFilterOptions, setSelectedFilterOptions] = useState16(headerFilters[headCell.id] ?? []);
|
|
8386
8117
|
const numFilterOptions = filterOptionsData?.length ?? 0;
|
|
8387
|
-
|
|
8118
|
+
useEffect11(() => {
|
|
8388
8119
|
if (headCell.filterOptions) {
|
|
8389
8120
|
setFilterOptionsData(headCell.filterOptions);
|
|
8390
8121
|
} else if (headCell.filterType === "boolean") {
|
|
@@ -8440,11 +8171,11 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
8440
8171
|
onApplyFilters?.(updatedFilters, shouldSave);
|
|
8441
8172
|
setAnchorEl(null);
|
|
8442
8173
|
};
|
|
8443
|
-
|
|
8174
|
+
useEffect11(() => {
|
|
8444
8175
|
setSelectedFilterOptions(headerFilters[headCell.id] ?? []);
|
|
8445
8176
|
}, [headerFilters, headCell.id]);
|
|
8446
|
-
return /* @__PURE__ */
|
|
8447
|
-
/* @__PURE__ */
|
|
8177
|
+
return /* @__PURE__ */ jsxs84(Fragment13, { children: [
|
|
8178
|
+
/* @__PURE__ */ jsx121(
|
|
8448
8179
|
ActiveFiltersIconButton,
|
|
8449
8180
|
{
|
|
8450
8181
|
numActiveFilters,
|
|
@@ -8454,7 +8185,7 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
8454
8185
|
})
|
|
8455
8186
|
}
|
|
8456
8187
|
),
|
|
8457
|
-
/* @__PURE__ */
|
|
8188
|
+
/* @__PURE__ */ jsx121(
|
|
8458
8189
|
Menu4,
|
|
8459
8190
|
{
|
|
8460
8191
|
open: !!anchorEl,
|
|
@@ -8463,12 +8194,12 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
8463
8194
|
"data-testid": "filter-menu",
|
|
8464
8195
|
slotProps: {
|
|
8465
8196
|
list: {
|
|
8466
|
-
sx: { p: 0, maxWidth:
|
|
8197
|
+
sx: { p: 0, maxWidth: MAX_WIDTH }
|
|
8467
8198
|
}
|
|
8468
8199
|
},
|
|
8469
8200
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
8470
8201
|
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
8471
|
-
children: headCell.filterType === "autocomplete" ? /* @__PURE__ */
|
|
8202
|
+
children: headCell.filterType === "autocomplete" ? /* @__PURE__ */ jsx121(
|
|
8472
8203
|
AutocompleteFilterMenuContent,
|
|
8473
8204
|
{
|
|
8474
8205
|
columnId: headCell.id,
|
|
@@ -8481,7 +8212,7 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
8481
8212
|
onApplyFiltersClick: handleApplyFiltersClick,
|
|
8482
8213
|
shouldShowCheckOnFilter
|
|
8483
8214
|
}
|
|
8484
|
-
) : /* @__PURE__ */
|
|
8215
|
+
) : /* @__PURE__ */ jsx121(
|
|
8485
8216
|
CheckboxFilterMenuContent,
|
|
8486
8217
|
{
|
|
8487
8218
|
columnId: headCell.id,
|
|
@@ -8501,9 +8232,9 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
8501
8232
|
};
|
|
8502
8233
|
|
|
8503
8234
|
// src/components/SmartTableHeader/SmartTableHeader.tsx
|
|
8504
|
-
import { memo as
|
|
8235
|
+
import { memo as memo20 } from "react";
|
|
8505
8236
|
import {
|
|
8506
|
-
Box as
|
|
8237
|
+
Box as Box40,
|
|
8507
8238
|
Checkbox as Checkbox8,
|
|
8508
8239
|
TableCell,
|
|
8509
8240
|
TableHead,
|
|
@@ -8512,8 +8243,8 @@ import {
|
|
|
8512
8243
|
Tooltip as Tooltip11,
|
|
8513
8244
|
Typography as Typography31
|
|
8514
8245
|
} from "@mui/material";
|
|
8515
|
-
import { jsx as
|
|
8516
|
-
var SmartTableHeader =
|
|
8246
|
+
import { jsx as jsx122, jsxs as jsxs85 } from "react/jsx-runtime";
|
|
8247
|
+
var SmartTableHeader = memo20(
|
|
8517
8248
|
({
|
|
8518
8249
|
order,
|
|
8519
8250
|
orderBy,
|
|
@@ -8531,13 +8262,13 @@ var SmartTableHeader = memo22(
|
|
|
8531
8262
|
onRequestSort(event, property);
|
|
8532
8263
|
};
|
|
8533
8264
|
const isSortActive = (headCellId) => orderBy === headCellId;
|
|
8534
|
-
return /* @__PURE__ */
|
|
8535
|
-
enableCheckboxSelection ? /* @__PURE__ */
|
|
8265
|
+
return /* @__PURE__ */ jsx122(TableHead, { children: /* @__PURE__ */ jsxs85(TableRow, { children: [
|
|
8266
|
+
enableCheckboxSelection ? /* @__PURE__ */ jsx122(
|
|
8536
8267
|
TableCell,
|
|
8537
8268
|
{
|
|
8538
8269
|
padding: "checkbox",
|
|
8539
8270
|
sx: { backgroundColor: colors.neutral100 },
|
|
8540
|
-
children: /* @__PURE__ */
|
|
8271
|
+
children: /* @__PURE__ */ jsx122(
|
|
8541
8272
|
Checkbox8,
|
|
8542
8273
|
{
|
|
8543
8274
|
color: "primary",
|
|
@@ -8549,7 +8280,7 @@ var SmartTableHeader = memo22(
|
|
|
8549
8280
|
)
|
|
8550
8281
|
}
|
|
8551
8282
|
) : null,
|
|
8552
|
-
headCells.map((headCell) => /* @__PURE__ */
|
|
8283
|
+
headCells.map((headCell) => /* @__PURE__ */ jsx122(
|
|
8553
8284
|
TableCell,
|
|
8554
8285
|
{
|
|
8555
8286
|
align: "left",
|
|
@@ -8573,14 +8304,14 @@ var SmartTableHeader = memo22(
|
|
|
8573
8304
|
}
|
|
8574
8305
|
}
|
|
8575
8306
|
},
|
|
8576
|
-
children: /* @__PURE__ */
|
|
8577
|
-
|
|
8307
|
+
children: /* @__PURE__ */ jsxs85(
|
|
8308
|
+
Box40,
|
|
8578
8309
|
{
|
|
8579
8310
|
display: "flex",
|
|
8580
8311
|
flexDirection: "row",
|
|
8581
8312
|
gap: headCell.disableSort ? 1 : 0,
|
|
8582
8313
|
children: [
|
|
8583
|
-
headCell.disableSort ? headCell.renderHeader ?? /* @__PURE__ */
|
|
8314
|
+
headCell.disableSort ? headCell.renderHeader ?? /* @__PURE__ */ jsx122(Tooltip11, { title: headCell.labelTooltip ?? "", arrow: true, children: /* @__PURE__ */ jsx122(Typography31, { variant: "subtitle2", mt: 0.25, mb: -0.25, children: headCell.label }) }) : /* @__PURE__ */ jsx122(Tooltip11, { title: headCell.labelTooltip ?? "", arrow: true, children: /* @__PURE__ */ jsxs85(
|
|
8584
8315
|
TableSortLabel,
|
|
8585
8316
|
{
|
|
8586
8317
|
"data-testid": "table-sort-label",
|
|
@@ -8589,7 +8320,7 @@ var SmartTableHeader = memo22(
|
|
|
8589
8320
|
onClick: createSortHandler(headCell.id),
|
|
8590
8321
|
children: [
|
|
8591
8322
|
headCell.renderHeader ?? headCell.label,
|
|
8592
|
-
orderBy === headCell.id ? /* @__PURE__ */
|
|
8323
|
+
orderBy === headCell.id ? /* @__PURE__ */ jsx122(
|
|
8593
8324
|
"span",
|
|
8594
8325
|
{
|
|
8595
8326
|
style: {
|
|
@@ -8609,7 +8340,7 @@ var SmartTableHeader = memo22(
|
|
|
8609
8340
|
]
|
|
8610
8341
|
}
|
|
8611
8342
|
) }),
|
|
8612
|
-
headCell.filterType ? /* @__PURE__ */
|
|
8343
|
+
headCell.filterType ? /* @__PURE__ */ jsx122(
|
|
8613
8344
|
SmartTableHeaderFilterMenu,
|
|
8614
8345
|
{
|
|
8615
8346
|
headCell,
|
|
@@ -8631,10 +8362,10 @@ var SmartTableHeader = memo22(
|
|
|
8631
8362
|
|
|
8632
8363
|
// src/components/Table/Table.tsx
|
|
8633
8364
|
var import_debounce = __toESM(require_debounce(), 1);
|
|
8634
|
-
import { useLayoutEffect, useState as
|
|
8365
|
+
import { useLayoutEffect, useState as useState17 } from "react";
|
|
8635
8366
|
import {
|
|
8636
|
-
Box as
|
|
8637
|
-
Paper as
|
|
8367
|
+
Box as Box42,
|
|
8368
|
+
Paper as Paper11,
|
|
8638
8369
|
Table as MUITable,
|
|
8639
8370
|
TableBody,
|
|
8640
8371
|
TableCell as TableCell2,
|
|
@@ -8647,12 +8378,12 @@ import { makeStyles as makeStyles44 } from "tss-react/mui";
|
|
|
8647
8378
|
import { v4 as uuidv4 } from "uuid";
|
|
8648
8379
|
|
|
8649
8380
|
// src/components/TableLoading/TableLoading.tsx
|
|
8650
|
-
import { Box as
|
|
8651
|
-
import { jsx as
|
|
8381
|
+
import { Box as Box41, Skeleton as Skeleton4 } from "@mui/material";
|
|
8382
|
+
import { jsx as jsx123 } from "react/jsx-runtime";
|
|
8652
8383
|
var TableLoading = ({
|
|
8653
8384
|
rowsPerPage,
|
|
8654
8385
|
rowHeight
|
|
8655
|
-
}) => /* @__PURE__ */
|
|
8386
|
+
}) => /* @__PURE__ */ jsx123(Box41, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ jsx123(
|
|
8656
8387
|
Skeleton4,
|
|
8657
8388
|
{
|
|
8658
8389
|
animation: "pulse",
|
|
@@ -8701,7 +8432,7 @@ function calculateRowsPerPage(rowHeight) {
|
|
|
8701
8432
|
}
|
|
8702
8433
|
|
|
8703
8434
|
// src/components/Table/Table.tsx
|
|
8704
|
-
import { jsx as
|
|
8435
|
+
import { jsx as jsx124, jsxs as jsxs86 } from "react/jsx-runtime";
|
|
8705
8436
|
var useStyles44 = makeStyles44()(() => ({
|
|
8706
8437
|
root: {
|
|
8707
8438
|
height: "calc(100vh - 262px)",
|
|
@@ -8736,11 +8467,11 @@ var Table = ({
|
|
|
8736
8467
|
serverRendered,
|
|
8737
8468
|
updateSort
|
|
8738
8469
|
}) => {
|
|
8739
|
-
const [order, setOrder] =
|
|
8740
|
-
const [orderBy, setOrderBy] =
|
|
8470
|
+
const [order, setOrder] = useState17(appliedFilters?.sortDir || "desc");
|
|
8471
|
+
const [orderBy, setOrderBy] = useState17(
|
|
8741
8472
|
appliedFilters?.sortField || "delivery_date"
|
|
8742
8473
|
);
|
|
8743
|
-
const [rowsPerPage, setRowsPerPage] =
|
|
8474
|
+
const [rowsPerPage, setRowsPerPage] = useState17(defaultRowsPerPage);
|
|
8744
8475
|
const { classes } = useStyles44();
|
|
8745
8476
|
const rowHeight = 56;
|
|
8746
8477
|
const emptyRows = rowsPerPage - Math.min(rowsPerPage, data.length - page * rowsPerPage);
|
|
@@ -8779,24 +8510,24 @@ var Table = ({
|
|
|
8779
8510
|
);
|
|
8780
8511
|
const rowsComponents = rows.map((row) => {
|
|
8781
8512
|
if (RenderItem) {
|
|
8782
|
-
return /* @__PURE__ */
|
|
8513
|
+
return /* @__PURE__ */ jsx124(RenderItem, { ...row }, row.id);
|
|
8783
8514
|
}
|
|
8784
|
-
return /* @__PURE__ */
|
|
8515
|
+
return /* @__PURE__ */ jsx124(TableRow2, { hover: true, onClick: () => onRowClick?.(row), children: headCells?.map((column) => /* @__PURE__ */ jsx124(TableCell2, { children: row[column.id] }, column.id)) }, row.id);
|
|
8785
8516
|
});
|
|
8786
8517
|
if (emptyRows > 0 && rowsPerPage > emptyRows) {
|
|
8787
8518
|
rowsComponents.push(
|
|
8788
|
-
/* @__PURE__ */
|
|
8519
|
+
/* @__PURE__ */ jsx124(TableRow2, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ jsx124(TableCell2, { colSpan: 8 }) }, uuidv4())
|
|
8789
8520
|
);
|
|
8790
8521
|
}
|
|
8791
8522
|
return rowsComponents;
|
|
8792
8523
|
};
|
|
8793
|
-
return /* @__PURE__ */
|
|
8794
|
-
/* @__PURE__ */
|
|
8524
|
+
return /* @__PURE__ */ jsx124(Paper11, { className: classes.root, children: /* @__PURE__ */ jsx124(Box42, { className: classes.paper, children: isLoading ? /* @__PURE__ */ jsx124(TableLoading_default, { rowHeight, rowsPerPage }) : /* @__PURE__ */ jsx124(TableContainer, { className: classes.container, children: /* @__PURE__ */ jsxs86(MUITable, { size: "medium", stickyHeader: true, children: [
|
|
8525
|
+
/* @__PURE__ */ jsx124(TableHead2, { className: classes.header, children: /* @__PURE__ */ jsx124(TableRow2, { children: headCells?.map((headCell) => /* @__PURE__ */ jsx124(
|
|
8795
8526
|
TableCell2,
|
|
8796
8527
|
{
|
|
8797
8528
|
align: "left",
|
|
8798
8529
|
sortDirection: orderBy === headCell.id ? order : void 0,
|
|
8799
|
-
children: /* @__PURE__ */
|
|
8530
|
+
children: /* @__PURE__ */ jsx124(
|
|
8800
8531
|
TableSortLabel2,
|
|
8801
8532
|
{
|
|
8802
8533
|
active: orderBy === headCell.id,
|
|
@@ -8808,9 +8539,9 @@ var Table = ({
|
|
|
8808
8539
|
},
|
|
8809
8540
|
headCell.id
|
|
8810
8541
|
)) }) }),
|
|
8811
|
-
/* @__PURE__ */
|
|
8542
|
+
/* @__PURE__ */ jsxs86(TableBody, { children: [
|
|
8812
8543
|
getTableRows(),
|
|
8813
|
-
rowsPerPage === emptyRows && /* @__PURE__ */
|
|
8544
|
+
rowsPerPage === emptyRows && /* @__PURE__ */ jsx124(TableRow2, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ jsx124(TableCell2, { colSpan: 8, align: "center", children: "Nothing to display" }) })
|
|
8814
8545
|
] })
|
|
8815
8546
|
] }) }) }) });
|
|
8816
8547
|
};
|
|
@@ -8819,22 +8550,22 @@ var Table_default = Table;
|
|
|
8819
8550
|
// src/components/TableDesktop/TableDesktop.tsx
|
|
8820
8551
|
import {
|
|
8821
8552
|
useMemo as useMemo5,
|
|
8822
|
-
useState as
|
|
8823
|
-
useEffect as
|
|
8824
|
-
useRef as
|
|
8553
|
+
useState as useState18,
|
|
8554
|
+
useEffect as useEffect12,
|
|
8555
|
+
useRef as useRef7
|
|
8825
8556
|
} from "react";
|
|
8826
|
-
import { Paper as
|
|
8557
|
+
import { Paper as Paper12, Table as Table2, TableBody as TableBody3, TableContainer as TableContainer2, Box as Box44 } from "@mui/material";
|
|
8827
8558
|
|
|
8828
8559
|
// src/components/TableDesktopLoadingState/TableDesktopLoadingState.tsx
|
|
8829
8560
|
import { Skeleton as Skeleton5, TableCell as TableCell3, TableRow as TableRow3 } from "@mui/material";
|
|
8830
|
-
import { jsx as
|
|
8561
|
+
import { jsx as jsx125 } from "react/jsx-runtime";
|
|
8831
8562
|
var getRange = (n) => Array.from({ length: n }, (_, i) => i + 1);
|
|
8832
8563
|
var TableDesktopLoadingState = ({
|
|
8833
8564
|
numRows,
|
|
8834
8565
|
numColumns,
|
|
8835
8566
|
rowHeight = 56
|
|
8836
8567
|
}) => {
|
|
8837
|
-
return getRange(numRows).map((rowNum) => /* @__PURE__ */
|
|
8568
|
+
return getRange(numRows).map((rowNum) => /* @__PURE__ */ jsx125(TableRow3, { children: getRange(numColumns).map((colNum) => /* @__PURE__ */ jsx125(TableCell3, { children: /* @__PURE__ */ jsx125(
|
|
8838
8569
|
Skeleton5,
|
|
8839
8570
|
{
|
|
8840
8571
|
animation: "pulse",
|
|
@@ -8854,9 +8585,9 @@ import Typography32 from "@mui/material/Typography";
|
|
|
8854
8585
|
|
|
8855
8586
|
// src/components/Buttons/BaseButton/BaseIconButton.tsx
|
|
8856
8587
|
import { Button as Button16 } from "@mui/material";
|
|
8857
|
-
import { jsxs as
|
|
8588
|
+
import { jsxs as jsxs87 } from "react/jsx-runtime";
|
|
8858
8589
|
var BaseIconButton = ({ icon, sx, ...props }) => {
|
|
8859
|
-
return /* @__PURE__ */
|
|
8590
|
+
return /* @__PURE__ */ jsxs87(
|
|
8860
8591
|
Button16,
|
|
8861
8592
|
{
|
|
8862
8593
|
sx: {
|
|
@@ -8877,10 +8608,10 @@ var BaseIconButton = ({ icon, sx, ...props }) => {
|
|
|
8877
8608
|
};
|
|
8878
8609
|
|
|
8879
8610
|
// src/components/TableDesktopNoColumnsMessage/TableDesktopNoColumnsMessage.tsx
|
|
8880
|
-
import { jsx as
|
|
8611
|
+
import { jsx as jsx126, jsxs as jsxs88 } from "react/jsx-runtime";
|
|
8881
8612
|
var TableDesktopNoColumnsMessage = ({
|
|
8882
8613
|
onClickNoColumnsMessageOpenMenu
|
|
8883
|
-
}) => /* @__PURE__ */
|
|
8614
|
+
}) => /* @__PURE__ */ jsx126(TableBody2, { children: /* @__PURE__ */ jsx126(TableRow4, { children: /* @__PURE__ */ jsxs88(
|
|
8884
8615
|
TableCell4,
|
|
8885
8616
|
{
|
|
8886
8617
|
sx: {
|
|
@@ -8893,9 +8624,9 @@ var TableDesktopNoColumnsMessage = ({
|
|
|
8893
8624
|
alignItems: "center"
|
|
8894
8625
|
},
|
|
8895
8626
|
children: [
|
|
8896
|
-
/* @__PURE__ */
|
|
8897
|
-
/* @__PURE__ */
|
|
8898
|
-
/* @__PURE__ */
|
|
8627
|
+
/* @__PURE__ */ jsx126(Typography32, { variant: "subtitle2", fontSize: 16, children: "Customise your view" }),
|
|
8628
|
+
/* @__PURE__ */ jsx126(Typography32, { variant: "subtitle1", align: "center", color: "textSecondary", children: "Open the menu to customise your table and search." }),
|
|
8629
|
+
/* @__PURE__ */ jsxs88(
|
|
8899
8630
|
Typography32,
|
|
8900
8631
|
{
|
|
8901
8632
|
variant: "subtitle1",
|
|
@@ -8908,18 +8639,18 @@ var TableDesktopNoColumnsMessage = ({
|
|
|
8908
8639
|
},
|
|
8909
8640
|
children: [
|
|
8910
8641
|
"Tips: ",
|
|
8911
|
-
/* @__PURE__ */
|
|
8642
|
+
/* @__PURE__ */ jsx126(Typography32, { component: "strong", children: "Save as default" }),
|
|
8912
8643
|
" to keep these columns for future views"
|
|
8913
8644
|
]
|
|
8914
8645
|
}
|
|
8915
8646
|
),
|
|
8916
|
-
/* @__PURE__ */
|
|
8647
|
+
/* @__PURE__ */ jsx126(
|
|
8917
8648
|
BaseIconButton,
|
|
8918
8649
|
{
|
|
8919
8650
|
variant: "contained",
|
|
8920
8651
|
color: "primary",
|
|
8921
8652
|
onClick: onClickNoColumnsMessageOpenMenu,
|
|
8922
|
-
icon: /* @__PURE__ */
|
|
8653
|
+
icon: /* @__PURE__ */ jsx126(IconTableEdit_default, { fill: colors.white }),
|
|
8923
8654
|
children: "OPEN MENU"
|
|
8924
8655
|
}
|
|
8925
8656
|
)
|
|
@@ -8928,7 +8659,7 @@ var TableDesktopNoColumnsMessage = ({
|
|
|
8928
8659
|
) }) });
|
|
8929
8660
|
|
|
8930
8661
|
// src/components/TableDesktopRows/TableDesktopRows.tsx
|
|
8931
|
-
import { jsx as
|
|
8662
|
+
import { jsx as jsx127 } from "react/jsx-runtime";
|
|
8932
8663
|
var descendingComparator2 = (a, b, orderBy) => {
|
|
8933
8664
|
const objA = a[orderBy];
|
|
8934
8665
|
const objB = b[orderBy];
|
|
@@ -8975,7 +8706,7 @@ var TableDesktopRows = ({
|
|
|
8975
8706
|
return sortedData.map((row, index) => {
|
|
8976
8707
|
const rowId = getRowId(row);
|
|
8977
8708
|
const isItemSelected = selectedRows.has(rowId);
|
|
8978
|
-
return /* @__PURE__ */
|
|
8709
|
+
return /* @__PURE__ */ jsx127(
|
|
8979
8710
|
RenderItem,
|
|
8980
8711
|
{
|
|
8981
8712
|
...{
|
|
@@ -8997,8 +8728,8 @@ var TableDesktopRows = ({
|
|
|
8997
8728
|
};
|
|
8998
8729
|
|
|
8999
8730
|
// src/components/TableDesktopRowSelectionBar/TableDesktopRowSelectionBar.tsx
|
|
9000
|
-
import { Box as
|
|
9001
|
-
import { jsx as
|
|
8731
|
+
import { Box as Box43, Button as Button17, Typography as Typography33 } from "@mui/material";
|
|
8732
|
+
import { jsx as jsx128, jsxs as jsxs89 } from "react/jsx-runtime";
|
|
9002
8733
|
var TableDesktopRowSelectionBar = ({
|
|
9003
8734
|
isEveryRowInPageSelected,
|
|
9004
8735
|
isRowsFromAllPagesSelected,
|
|
@@ -9017,8 +8748,8 @@ var TableDesktopRowSelectionBar = ({
|
|
|
9017
8748
|
}
|
|
9018
8749
|
return `${numSelectedRows} row${numSelectedRows > 1 ? "s" : ""} selected.`;
|
|
9019
8750
|
};
|
|
9020
|
-
return isAnyRowSelected ? /* @__PURE__ */
|
|
9021
|
-
|
|
8751
|
+
return isAnyRowSelected ? /* @__PURE__ */ jsxs89(
|
|
8752
|
+
Box43,
|
|
9022
8753
|
{
|
|
9023
8754
|
sx: {
|
|
9024
8755
|
p: 1,
|
|
@@ -9030,13 +8761,13 @@ var TableDesktopRowSelectionBar = ({
|
|
|
9030
8761
|
backgroundColor: colors.neutral150
|
|
9031
8762
|
},
|
|
9032
8763
|
children: [
|
|
9033
|
-
/* @__PURE__ */
|
|
9034
|
-
!isRowsFromAllPagesSelected ? /* @__PURE__ */
|
|
8764
|
+
/* @__PURE__ */ jsx128(Typography33, { children: getSelectedRowsText() }),
|
|
8765
|
+
!isRowsFromAllPagesSelected ? /* @__PURE__ */ jsxs89(Button17, { onClick: onSelectRowsFromAllPagesClick, children: [
|
|
9035
8766
|
"Select all ",
|
|
9036
8767
|
totalRowCount,
|
|
9037
8768
|
" rows from all pages based on your filters"
|
|
9038
8769
|
] }) : null,
|
|
9039
|
-
/* @__PURE__ */
|
|
8770
|
+
/* @__PURE__ */ jsx128(Button17, { onClick: onClearSelectionClick, children: "Clear Selection" })
|
|
9040
8771
|
]
|
|
9041
8772
|
}
|
|
9042
8773
|
) : null;
|
|
@@ -9045,7 +8776,7 @@ var TableDesktopRowSelectionBar = ({
|
|
|
9045
8776
|
// src/components/TableEmptyResult/TableEmptyResult.tsx
|
|
9046
8777
|
import { TableCell as TableCell5, TableRow as TableRow5, Typography as Typography34 } from "@mui/material";
|
|
9047
8778
|
import { makeStyles as makeStyles45 } from "tss-react/mui";
|
|
9048
|
-
import { jsx as
|
|
8779
|
+
import { jsx as jsx129, jsxs as jsxs90 } from "react/jsx-runtime";
|
|
9049
8780
|
var useStyles45 = makeStyles45()(() => ({
|
|
9050
8781
|
tableCellIcon: { padding: 24, height: "calc(100vh - 320px)" },
|
|
9051
8782
|
tableCellDefault: { padding: 24 }
|
|
@@ -9057,17 +8788,17 @@ var TableEmptyResult = ({
|
|
|
9057
8788
|
}
|
|
9058
8789
|
}) => {
|
|
9059
8790
|
const { classes } = useStyles45();
|
|
9060
|
-
return showClearFilterButton ? /* @__PURE__ */
|
|
8791
|
+
return showClearFilterButton ? /* @__PURE__ */ jsx129(TableRow5, { children: /* @__PURE__ */ jsxs90(
|
|
9061
8792
|
TableCell5,
|
|
9062
8793
|
{
|
|
9063
8794
|
className: classes.tableCellIcon,
|
|
9064
8795
|
colSpan,
|
|
9065
8796
|
align: "center",
|
|
9066
8797
|
children: [
|
|
9067
|
-
/* @__PURE__ */
|
|
9068
|
-
/* @__PURE__ */
|
|
9069
|
-
/* @__PURE__ */
|
|
9070
|
-
/* @__PURE__ */
|
|
8798
|
+
/* @__PURE__ */ jsx129(EmptyGlassIcon_default, {}),
|
|
8799
|
+
/* @__PURE__ */ jsx129(Typography34, { variant: "h6", children: "No results found." }),
|
|
8800
|
+
/* @__PURE__ */ jsx129(Typography34, { variant: "subtitle1", children: "Search without applied filters?" }),
|
|
8801
|
+
/* @__PURE__ */ jsx129(
|
|
9071
8802
|
FilledButton_default,
|
|
9072
8803
|
{
|
|
9073
8804
|
copy: "Search",
|
|
@@ -9078,7 +8809,7 @@ var TableEmptyResult = ({
|
|
|
9078
8809
|
)
|
|
9079
8810
|
]
|
|
9080
8811
|
}
|
|
9081
|
-
) }) : /* @__PURE__ */
|
|
8812
|
+
) }) : /* @__PURE__ */ jsx129(TableRow5, { children: /* @__PURE__ */ jsx129(
|
|
9082
8813
|
TableCell5,
|
|
9083
8814
|
{
|
|
9084
8815
|
className: classes.tableCellDefault,
|
|
@@ -9091,7 +8822,7 @@ var TableEmptyResult = ({
|
|
|
9091
8822
|
var TableEmptyResult_default = TableEmptyResult;
|
|
9092
8823
|
|
|
9093
8824
|
// src/components/TableDesktop/TableDesktop.tsx
|
|
9094
|
-
import { Fragment as Fragment14, jsx as
|
|
8825
|
+
import { Fragment as Fragment14, jsx as jsx130, jsxs as jsxs91 } from "react/jsx-runtime";
|
|
9095
8826
|
var resolveKeyValue = (keyField, rowData) => {
|
|
9096
8827
|
if (typeof keyField === "string") {
|
|
9097
8828
|
return rowData[keyField];
|
|
@@ -9124,15 +8855,15 @@ var TableDesktop = ({
|
|
|
9124
8855
|
shouldShowCheckOnFilter,
|
|
9125
8856
|
refetchData
|
|
9126
8857
|
}) => {
|
|
9127
|
-
const tableToolbarMenuButtonRef =
|
|
9128
|
-
const [tableToolbarMenuAnchor, setTableToolbarMenuAnchor] =
|
|
9129
|
-
const [order, setOrder] =
|
|
9130
|
-
const [orderBy, setOrderBy] =
|
|
8858
|
+
const tableToolbarMenuButtonRef = useRef7(null);
|
|
8859
|
+
const [tableToolbarMenuAnchor, setTableToolbarMenuAnchor] = useState18(null);
|
|
8860
|
+
const [order, setOrder] = useState18(appliedFilters?.sortDir || "desc");
|
|
8861
|
+
const [orderBy, setOrderBy] = useState18(
|
|
9131
8862
|
appliedFilters?.sortField || "delivery_date"
|
|
9132
8863
|
);
|
|
9133
|
-
const [selectedRows, setSelectedRows] =
|
|
9134
|
-
const [isRowsFromAllPagesSelected, setIsRowsFromAllPagesSelected] =
|
|
9135
|
-
const [isBulkChangesMode, setIsBulkChangesMode] =
|
|
8864
|
+
const [selectedRows, setSelectedRows] = useState18(/* @__PURE__ */ new Set());
|
|
8865
|
+
const [isRowsFromAllPagesSelected, setIsRowsFromAllPagesSelected] = useState18(false);
|
|
8866
|
+
const [isBulkChangesMode, setIsBulkChangesMode] = useState18(false);
|
|
9136
8867
|
const numRows = data.length;
|
|
9137
8868
|
const numSelectedRows = useMemo5(() => {
|
|
9138
8869
|
const currentPageIds = new Set(
|
|
@@ -9207,14 +8938,14 @@ var TableDesktop = ({
|
|
|
9207
8938
|
refetchData?.();
|
|
9208
8939
|
}
|
|
9209
8940
|
};
|
|
9210
|
-
|
|
8941
|
+
useEffect12(() => {
|
|
9211
8942
|
if (isRowsFromAllPagesSelected) {
|
|
9212
8943
|
selectAllRowsInPage();
|
|
9213
8944
|
}
|
|
9214
8945
|
}, [isRowsFromAllPagesSelected, data]);
|
|
9215
8946
|
const renderBody = () => {
|
|
9216
8947
|
if (isLoading) {
|
|
9217
|
-
return /* @__PURE__ */
|
|
8948
|
+
return /* @__PURE__ */ jsx130(
|
|
9218
8949
|
TableDesktopLoadingState,
|
|
9219
8950
|
{
|
|
9220
8951
|
numRows: Math.min(rowsPerPage, 10),
|
|
@@ -9224,7 +8955,7 @@ var TableDesktop = ({
|
|
|
9224
8955
|
);
|
|
9225
8956
|
}
|
|
9226
8957
|
if (numRows === 0) {
|
|
9227
|
-
return /* @__PURE__ */
|
|
8958
|
+
return /* @__PURE__ */ jsx130(
|
|
9228
8959
|
TableEmptyResult_default,
|
|
9229
8960
|
{
|
|
9230
8961
|
showClearFilterButton,
|
|
@@ -9233,7 +8964,7 @@ var TableDesktop = ({
|
|
|
9233
8964
|
}
|
|
9234
8965
|
);
|
|
9235
8966
|
}
|
|
9236
|
-
return /* @__PURE__ */
|
|
8967
|
+
return /* @__PURE__ */ jsx130(
|
|
9237
8968
|
TableDesktopRows,
|
|
9238
8969
|
{
|
|
9239
8970
|
data,
|
|
@@ -9252,8 +8983,8 @@ var TableDesktop = ({
|
|
|
9252
8983
|
}
|
|
9253
8984
|
);
|
|
9254
8985
|
};
|
|
9255
|
-
return /* @__PURE__ */
|
|
9256
|
-
|
|
8986
|
+
return /* @__PURE__ */ jsx130(
|
|
8987
|
+
Box44,
|
|
9257
8988
|
{
|
|
9258
8989
|
sx: {
|
|
9259
8990
|
height,
|
|
@@ -9261,8 +8992,8 @@ var TableDesktop = ({
|
|
|
9261
8992
|
justifyContent: "space-between",
|
|
9262
8993
|
justifyItems: "stretch"
|
|
9263
8994
|
},
|
|
9264
|
-
children: /* @__PURE__ */
|
|
9265
|
-
|
|
8995
|
+
children: /* @__PURE__ */ jsxs91(
|
|
8996
|
+
Paper12,
|
|
9266
8997
|
{
|
|
9267
8998
|
sx: {
|
|
9268
8999
|
width: "100%",
|
|
@@ -9286,7 +9017,7 @@ var TableDesktop = ({
|
|
|
9286
9017
|
isBulkChangesMode,
|
|
9287
9018
|
onChangeBulkChangesMode: handleChangeBulkChangesMode
|
|
9288
9019
|
}) : null,
|
|
9289
|
-
/* @__PURE__ */
|
|
9020
|
+
/* @__PURE__ */ jsx130(
|
|
9290
9021
|
TableDesktopRowSelectionBar,
|
|
9291
9022
|
{
|
|
9292
9023
|
isEveryRowInPageSelected,
|
|
@@ -9297,7 +9028,7 @@ var TableDesktop = ({
|
|
|
9297
9028
|
onClearSelectionClick: handleClearSelectionClick
|
|
9298
9029
|
}
|
|
9299
9030
|
),
|
|
9300
|
-
/* @__PURE__ */
|
|
9031
|
+
/* @__PURE__ */ jsx130(
|
|
9301
9032
|
TableContainer2,
|
|
9302
9033
|
{
|
|
9303
9034
|
sx: {
|
|
@@ -9319,13 +9050,13 @@ var TableDesktop = ({
|
|
|
9319
9050
|
backgroundColor: (theme) => theme.palette.grey[500]
|
|
9320
9051
|
}
|
|
9321
9052
|
},
|
|
9322
|
-
children: /* @__PURE__ */
|
|
9053
|
+
children: /* @__PURE__ */ jsx130(Table2, { stickyHeader: true, "aria-label": "sticky-table", sx: { tableLayout }, children: visibleHeadCells.length === 0 ? /* @__PURE__ */ jsx130(
|
|
9323
9054
|
TableDesktopNoColumnsMessage,
|
|
9324
9055
|
{
|
|
9325
9056
|
onClickNoColumnsMessageOpenMenu: handleClickToolbarMenuOpen
|
|
9326
9057
|
}
|
|
9327
|
-
) : /* @__PURE__ */
|
|
9328
|
-
/* @__PURE__ */
|
|
9058
|
+
) : /* @__PURE__ */ jsxs91(Fragment14, { children: [
|
|
9059
|
+
/* @__PURE__ */ jsx130(
|
|
9329
9060
|
SmartTableHeader,
|
|
9330
9061
|
{
|
|
9331
9062
|
order,
|
|
@@ -9341,7 +9072,7 @@ var TableDesktop = ({
|
|
|
9341
9072
|
shouldShowCheckOnFilter
|
|
9342
9073
|
}
|
|
9343
9074
|
),
|
|
9344
|
-
/* @__PURE__ */
|
|
9075
|
+
/* @__PURE__ */ jsx130(TableBody3, { children: renderBody() })
|
|
9345
9076
|
] }) })
|
|
9346
9077
|
}
|
|
9347
9078
|
),
|
|
@@ -9358,7 +9089,7 @@ var TableDesktop = ({
|
|
|
9358
9089
|
};
|
|
9359
9090
|
|
|
9360
9091
|
// src/components/TableDesktopEditableField/TableDesktopEditableField.tsx
|
|
9361
|
-
import { useEffect as
|
|
9092
|
+
import { useEffect as useEffect14, useState as useState23 } from "react";
|
|
9362
9093
|
import DeleteIcon from "@mui/icons-material/Delete";
|
|
9363
9094
|
import { Checkbox as Checkbox9, FormControlLabel as FormControlLabel6 } from "@mui/material";
|
|
9364
9095
|
import { DatePicker, TimePicker } from "@mui/x-date-pickers";
|
|
@@ -9366,7 +9097,7 @@ import moment2 from "moment";
|
|
|
9366
9097
|
|
|
9367
9098
|
// src/components/TableDesktopEditableField/TableDesktopSmartMultipleSelect.tsx
|
|
9368
9099
|
import { useMemo as useMemo6 } from "react";
|
|
9369
|
-
import { jsx as
|
|
9100
|
+
import { jsx as jsx131 } from "react/jsx-runtime";
|
|
9370
9101
|
var TableDesktopSmartMultipleSelect = ({
|
|
9371
9102
|
initialValue,
|
|
9372
9103
|
inputLabel,
|
|
@@ -9387,7 +9118,7 @@ var TableDesktopSmartMultipleSelect = ({
|
|
|
9387
9118
|
label: val[fieldName].toString()
|
|
9388
9119
|
}));
|
|
9389
9120
|
}, [initialValue]);
|
|
9390
|
-
return /* @__PURE__ */
|
|
9121
|
+
return /* @__PURE__ */ jsx131(
|
|
9391
9122
|
SmartMultipleSelect,
|
|
9392
9123
|
{
|
|
9393
9124
|
inputLabel,
|
|
@@ -9418,8 +9149,8 @@ var TableDesktopSmartMultipleSelect = ({
|
|
|
9418
9149
|
};
|
|
9419
9150
|
|
|
9420
9151
|
// src/components/TableDesktopEditableField/TableDesktopSmartSelect.tsx
|
|
9421
|
-
import { useState as
|
|
9422
|
-
import { jsx as
|
|
9152
|
+
import { useState as useState19 } from "react";
|
|
9153
|
+
import { jsx as jsx132 } from "react/jsx-runtime";
|
|
9423
9154
|
var TableDesktopSmartSelect = ({
|
|
9424
9155
|
ref,
|
|
9425
9156
|
initialValue,
|
|
@@ -9436,12 +9167,12 @@ var TableDesktopSmartSelect = ({
|
|
|
9436
9167
|
isFetchingFilterOptions,
|
|
9437
9168
|
onUpdateEditableCell
|
|
9438
9169
|
}) => {
|
|
9439
|
-
const [value, setValue] =
|
|
9170
|
+
const [value, setValue] = useState19(
|
|
9440
9171
|
initialValue
|
|
9441
9172
|
);
|
|
9442
9173
|
const valueId = resolveObjectType(value ?? "", "id");
|
|
9443
9174
|
const valueLabel = resolveObjectType(value ?? "", fieldName);
|
|
9444
|
-
return /* @__PURE__ */
|
|
9175
|
+
return /* @__PURE__ */ jsx132(
|
|
9445
9176
|
SmartSelect,
|
|
9446
9177
|
{
|
|
9447
9178
|
ref,
|
|
@@ -9473,18 +9204,18 @@ var TableDesktopSmartSelect = ({
|
|
|
9473
9204
|
};
|
|
9474
9205
|
|
|
9475
9206
|
// src/components/TableDesktopEditableField/TableDesktopTagsField.tsx
|
|
9476
|
-
import { useEffect as
|
|
9207
|
+
import { useEffect as useEffect13, useMemo as useMemo7, useState as useState21, useRef as useRef8 } from "react";
|
|
9477
9208
|
|
|
9478
9209
|
// src/components/HashtagInput/HashtagInput.tsx
|
|
9479
|
-
import { useState as
|
|
9210
|
+
import { useState as useState20 } from "react";
|
|
9480
9211
|
import {
|
|
9481
9212
|
Autocomplete,
|
|
9482
9213
|
Chip as Chip5,
|
|
9483
9214
|
TextField as TextField8,
|
|
9484
|
-
alpha as
|
|
9215
|
+
alpha as alpha2,
|
|
9485
9216
|
useTheme as useTheme2
|
|
9486
9217
|
} from "@mui/material";
|
|
9487
|
-
import { jsx as
|
|
9218
|
+
import { jsx as jsx133 } from "react/jsx-runtime";
|
|
9488
9219
|
import { createElement } from "react";
|
|
9489
9220
|
var HashtagInput = ({
|
|
9490
9221
|
label,
|
|
@@ -9500,7 +9231,7 @@ var HashtagInput = ({
|
|
|
9500
9231
|
...props
|
|
9501
9232
|
}) => {
|
|
9502
9233
|
const { palette } = useTheme2();
|
|
9503
|
-
const [inputValue, setInputValue] =
|
|
9234
|
+
const [inputValue, setInputValue] = useState20("");
|
|
9504
9235
|
const sanitizeTag = (value) => {
|
|
9505
9236
|
return value.toLowerCase().replace(/[^a-z0-9#]/g, "").trim();
|
|
9506
9237
|
};
|
|
@@ -9517,7 +9248,7 @@ var HashtagInput = ({
|
|
|
9517
9248
|
handleAddTag();
|
|
9518
9249
|
}
|
|
9519
9250
|
};
|
|
9520
|
-
return /* @__PURE__ */
|
|
9251
|
+
return /* @__PURE__ */ jsx133(
|
|
9521
9252
|
Autocomplete,
|
|
9522
9253
|
{
|
|
9523
9254
|
...props,
|
|
@@ -9536,7 +9267,7 @@ var HashtagInput = ({
|
|
|
9536
9267
|
onDeleteTag?.(details.option);
|
|
9537
9268
|
}
|
|
9538
9269
|
},
|
|
9539
|
-
renderInput: (textFieldProps) => /* @__PURE__ */
|
|
9270
|
+
renderInput: (textFieldProps) => /* @__PURE__ */ jsx133(
|
|
9540
9271
|
TextField8,
|
|
9541
9272
|
{
|
|
9542
9273
|
...textFieldProps,
|
|
@@ -9567,7 +9298,7 @@ var HashtagInput = ({
|
|
|
9567
9298
|
paddingBlock: 0,
|
|
9568
9299
|
color: palette.primary.main,
|
|
9569
9300
|
fontWeight: "bold",
|
|
9570
|
-
backgroundColor:
|
|
9301
|
+
backgroundColor: alpha2(palette.primary.main, 0.1)
|
|
9571
9302
|
}
|
|
9572
9303
|
}
|
|
9573
9304
|
);
|
|
@@ -9577,7 +9308,7 @@ var HashtagInput = ({
|
|
|
9577
9308
|
};
|
|
9578
9309
|
|
|
9579
9310
|
// src/components/TableDesktopEditableField/TableDesktopTagsField.tsx
|
|
9580
|
-
import { Fragment as Fragment15, jsx as
|
|
9311
|
+
import { Fragment as Fragment15, jsx as jsx134 } from "react/jsx-runtime";
|
|
9581
9312
|
var TableDesktopTagsField = ({
|
|
9582
9313
|
initialValue,
|
|
9583
9314
|
inputLabel,
|
|
@@ -9588,9 +9319,9 @@ var TableDesktopTagsField = ({
|
|
|
9588
9319
|
size,
|
|
9589
9320
|
onUpdateEditableCell
|
|
9590
9321
|
}) => {
|
|
9591
|
-
const [error, setError] =
|
|
9592
|
-
const [values, setValues] =
|
|
9593
|
-
const valuesRef =
|
|
9322
|
+
const [error, setError] = useState21();
|
|
9323
|
+
const [values, setValues] = useState21([]);
|
|
9324
|
+
const valuesRef = useRef8([]);
|
|
9594
9325
|
const validateTag = (tag) => {
|
|
9595
9326
|
if (tag.length >= 30) {
|
|
9596
9327
|
return false;
|
|
@@ -9612,11 +9343,11 @@ var TableDesktopTagsField = ({
|
|
|
9612
9343
|
const initialValueTags = useMemo7(() => {
|
|
9613
9344
|
return (initialValue ?? []).map((val) => val.tag);
|
|
9614
9345
|
}, [initialValue]);
|
|
9615
|
-
|
|
9346
|
+
useEffect13(() => {
|
|
9616
9347
|
setValues(initialValueTags);
|
|
9617
9348
|
valuesRef.current = initialValueTags;
|
|
9618
9349
|
}, [initialValueTags]);
|
|
9619
|
-
return /* @__PURE__ */
|
|
9350
|
+
return /* @__PURE__ */ jsx134(Fragment15, { children: /* @__PURE__ */ jsx134(
|
|
9620
9351
|
HashtagInput,
|
|
9621
9352
|
{
|
|
9622
9353
|
autoFocus: true,
|
|
@@ -9651,9 +9382,9 @@ var TableDesktopTagsField = ({
|
|
|
9651
9382
|
};
|
|
9652
9383
|
|
|
9653
9384
|
// src/components/TableDesktopEditableField/TableDesktopTextField.tsx
|
|
9654
|
-
import { useMemo as useMemo8, useState as
|
|
9385
|
+
import { useMemo as useMemo8, useState as useState22, useRef as useRef9 } from "react";
|
|
9655
9386
|
import { TextField as TextField9 } from "@mui/material";
|
|
9656
|
-
import { jsx as
|
|
9387
|
+
import { jsx as jsx135 } from "react/jsx-runtime";
|
|
9657
9388
|
var TableDesktopTextField = ({
|
|
9658
9389
|
rowId,
|
|
9659
9390
|
initialValue,
|
|
@@ -9666,8 +9397,8 @@ var TableDesktopTextField = ({
|
|
|
9666
9397
|
validateInput,
|
|
9667
9398
|
onUpdateEditableCell
|
|
9668
9399
|
}) => {
|
|
9669
|
-
const [input, setInput] =
|
|
9670
|
-
const oldValue =
|
|
9400
|
+
const [input, setInput] = useState22(initialValue);
|
|
9401
|
+
const oldValue = useRef9(initialValue);
|
|
9671
9402
|
const isDirty = useMemo8(
|
|
9672
9403
|
() => input !== oldValue.current,
|
|
9673
9404
|
[input, oldValue.current]
|
|
@@ -9690,7 +9421,7 @@ var TableDesktopTextField = ({
|
|
|
9690
9421
|
commitValue(input);
|
|
9691
9422
|
}
|
|
9692
9423
|
};
|
|
9693
|
-
return /* @__PURE__ */
|
|
9424
|
+
return /* @__PURE__ */ jsx135(
|
|
9694
9425
|
TextField9,
|
|
9695
9426
|
{
|
|
9696
9427
|
fullWidth: true,
|
|
@@ -9723,7 +9454,7 @@ var TableDesktopTextField = ({
|
|
|
9723
9454
|
};
|
|
9724
9455
|
|
|
9725
9456
|
// src/components/TableDesktopEditableField/TableDesktopEditableField.tsx
|
|
9726
|
-
import { jsx as
|
|
9457
|
+
import { jsx as jsx136 } from "react/jsx-runtime";
|
|
9727
9458
|
var TableDesktopEditableField = ({
|
|
9728
9459
|
editInitialValue,
|
|
9729
9460
|
rowId,
|
|
@@ -9744,8 +9475,8 @@ var TableDesktopEditableField = ({
|
|
|
9744
9475
|
allowBlankSelectOption
|
|
9745
9476
|
}
|
|
9746
9477
|
}) => {
|
|
9747
|
-
const [parsedFilterOptions, setParsedFilterOptions] =
|
|
9748
|
-
|
|
9478
|
+
const [parsedFilterOptions, setParsedFilterOptions] = useState23();
|
|
9479
|
+
useEffect14(() => {
|
|
9749
9480
|
if (filterOptions && editableCellType === "select" || editableCellType === "multipleSelect") {
|
|
9750
9481
|
const parsedOptions = filterOptions?.map(
|
|
9751
9482
|
(option) => ({
|
|
@@ -9757,7 +9488,7 @@ var TableDesktopEditableField = ({
|
|
|
9757
9488
|
}
|
|
9758
9489
|
}, [filterOptions, editableCellType]);
|
|
9759
9490
|
const editableComponents = {
|
|
9760
|
-
select: /* @__PURE__ */
|
|
9491
|
+
select: /* @__PURE__ */ jsx136(
|
|
9761
9492
|
TableDesktopSmartSelect,
|
|
9762
9493
|
{
|
|
9763
9494
|
rowId,
|
|
@@ -9775,7 +9506,7 @@ var TableDesktopEditableField = ({
|
|
|
9775
9506
|
onUpdateEditableCell
|
|
9776
9507
|
}
|
|
9777
9508
|
),
|
|
9778
|
-
multipleSelect: /* @__PURE__ */
|
|
9509
|
+
multipleSelect: /* @__PURE__ */ jsx136(
|
|
9779
9510
|
TableDesktopSmartMultipleSelect,
|
|
9780
9511
|
{
|
|
9781
9512
|
rowId,
|
|
@@ -9792,11 +9523,11 @@ var TableDesktopEditableField = ({
|
|
|
9792
9523
|
onUpdateEditableCell
|
|
9793
9524
|
}
|
|
9794
9525
|
),
|
|
9795
|
-
checkbox: /* @__PURE__ */
|
|
9526
|
+
checkbox: /* @__PURE__ */ jsx136(
|
|
9796
9527
|
FormControlLabel6,
|
|
9797
9528
|
{
|
|
9798
9529
|
label: showCheckboxLabel ? inputLabel : "",
|
|
9799
|
-
control: /* @__PURE__ */
|
|
9530
|
+
control: /* @__PURE__ */ jsx136(
|
|
9800
9531
|
Checkbox9,
|
|
9801
9532
|
{
|
|
9802
9533
|
disableRipple: true,
|
|
@@ -9814,7 +9545,7 @@ var TableDesktopEditableField = ({
|
|
|
9814
9545
|
)
|
|
9815
9546
|
}
|
|
9816
9547
|
),
|
|
9817
|
-
text: /* @__PURE__ */
|
|
9548
|
+
text: /* @__PURE__ */ jsx136(
|
|
9818
9549
|
TableDesktopTextField,
|
|
9819
9550
|
{
|
|
9820
9551
|
type: "text",
|
|
@@ -9829,7 +9560,7 @@ var TableDesktopEditableField = ({
|
|
|
9829
9560
|
onUpdateEditableCell
|
|
9830
9561
|
}
|
|
9831
9562
|
),
|
|
9832
|
-
numeric: /* @__PURE__ */
|
|
9563
|
+
numeric: /* @__PURE__ */ jsx136(
|
|
9833
9564
|
TableDesktopTextField,
|
|
9834
9565
|
{
|
|
9835
9566
|
type: "numeric",
|
|
@@ -9844,7 +9575,7 @@ var TableDesktopEditableField = ({
|
|
|
9844
9575
|
onUpdateEditableCell
|
|
9845
9576
|
}
|
|
9846
9577
|
),
|
|
9847
|
-
date: /* @__PURE__ */
|
|
9578
|
+
date: /* @__PURE__ */ jsx136(
|
|
9848
9579
|
DatePicker,
|
|
9849
9580
|
{
|
|
9850
9581
|
defaultValue: editInitialValue ? moment2(editInitialValue, "HH:mm:ss") : void 0,
|
|
@@ -9873,7 +9604,7 @@ var TableDesktopEditableField = ({
|
|
|
9873
9604
|
}
|
|
9874
9605
|
}
|
|
9875
9606
|
),
|
|
9876
|
-
time: /* @__PURE__ */
|
|
9607
|
+
time: /* @__PURE__ */ jsx136(
|
|
9877
9608
|
TimePicker,
|
|
9878
9609
|
{
|
|
9879
9610
|
defaultValue: editInitialValue ? moment2(editInitialValue, "HH:mm:ss") : void 0,
|
|
@@ -9900,7 +9631,7 @@ var TableDesktopEditableField = ({
|
|
|
9900
9631
|
}
|
|
9901
9632
|
}
|
|
9902
9633
|
),
|
|
9903
|
-
tags: /* @__PURE__ */
|
|
9634
|
+
tags: /* @__PURE__ */ jsx136(
|
|
9904
9635
|
TableDesktopTagsField,
|
|
9905
9636
|
{
|
|
9906
9637
|
initialValue: editInitialValue,
|
|
@@ -9922,7 +9653,7 @@ var TableDesktopEditableField = ({
|
|
|
9922
9653
|
// src/components/TableDesktopFooter/TableDesktopFooter.tsx
|
|
9923
9654
|
import Refresh3 from "@mui/icons-material/Refresh";
|
|
9924
9655
|
import {
|
|
9925
|
-
Box as
|
|
9656
|
+
Box as Box45,
|
|
9926
9657
|
Button as Button18,
|
|
9927
9658
|
MenuItem as MenuItem4,
|
|
9928
9659
|
Pagination as Pagination2,
|
|
@@ -9930,7 +9661,7 @@ import {
|
|
|
9930
9661
|
Stack,
|
|
9931
9662
|
Typography as Typography35
|
|
9932
9663
|
} from "@mui/material";
|
|
9933
|
-
import { jsx as
|
|
9664
|
+
import { jsx as jsx137, jsxs as jsxs92 } from "react/jsx-runtime";
|
|
9934
9665
|
var TableDesktopFooter = ({
|
|
9935
9666
|
numPages,
|
|
9936
9667
|
page,
|
|
@@ -9941,8 +9672,8 @@ var TableDesktopFooter = ({
|
|
|
9941
9672
|
refetchData,
|
|
9942
9673
|
isFetching
|
|
9943
9674
|
}) => {
|
|
9944
|
-
return /* @__PURE__ */
|
|
9945
|
-
|
|
9675
|
+
return /* @__PURE__ */ jsxs92(
|
|
9676
|
+
Box45,
|
|
9946
9677
|
{
|
|
9947
9678
|
sx: {
|
|
9948
9679
|
py: 1,
|
|
@@ -9953,7 +9684,7 @@ var TableDesktopFooter = ({
|
|
|
9953
9684
|
borderTop: `1px solid ${colors.neutral300}`
|
|
9954
9685
|
},
|
|
9955
9686
|
children: [
|
|
9956
|
-
refetchData ? /* @__PURE__ */
|
|
9687
|
+
refetchData ? /* @__PURE__ */ jsx137(
|
|
9957
9688
|
Button18,
|
|
9958
9689
|
{
|
|
9959
9690
|
disableRipple: true,
|
|
@@ -9965,7 +9696,7 @@ var TableDesktopFooter = ({
|
|
|
9965
9696
|
ml: 1,
|
|
9966
9697
|
gap: 1
|
|
9967
9698
|
},
|
|
9968
|
-
children: /* @__PURE__ */
|
|
9699
|
+
children: /* @__PURE__ */ jsx137(
|
|
9969
9700
|
Refresh3,
|
|
9970
9701
|
{
|
|
9971
9702
|
fontSize: "small",
|
|
@@ -9974,21 +9705,21 @@ var TableDesktopFooter = ({
|
|
|
9974
9705
|
)
|
|
9975
9706
|
}
|
|
9976
9707
|
) : null,
|
|
9977
|
-
/* @__PURE__ */
|
|
9978
|
-
pageSize && pageSizeOptions && onPageSizeChange ? /* @__PURE__ */
|
|
9979
|
-
/* @__PURE__ */
|
|
9980
|
-
/* @__PURE__ */
|
|
9708
|
+
/* @__PURE__ */ jsxs92(Box45, { sx: { display: "flex", ml: "auto", py: 1 }, children: [
|
|
9709
|
+
pageSize && pageSizeOptions && onPageSizeChange ? /* @__PURE__ */ jsxs92(Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
|
|
9710
|
+
/* @__PURE__ */ jsx137(Typography35, { fontSize: 12, children: "Rows per page:" }),
|
|
9711
|
+
/* @__PURE__ */ jsx137(
|
|
9981
9712
|
Select5,
|
|
9982
9713
|
{
|
|
9983
9714
|
value: pageSize,
|
|
9984
9715
|
onChange: onPageSizeChange,
|
|
9985
9716
|
size: "small",
|
|
9986
9717
|
variant: "standard",
|
|
9987
|
-
children: pageSizeOptions.map((pageSizeOption) => /* @__PURE__ */
|
|
9718
|
+
children: pageSizeOptions.map((pageSizeOption) => /* @__PURE__ */ jsx137(MenuItem4, { value: pageSizeOption, children: pageSizeOption }, pageSizeOption))
|
|
9988
9719
|
}
|
|
9989
9720
|
)
|
|
9990
9721
|
] }) : null,
|
|
9991
|
-
/* @__PURE__ */
|
|
9722
|
+
/* @__PURE__ */ jsx137(
|
|
9992
9723
|
Pagination2,
|
|
9993
9724
|
{
|
|
9994
9725
|
color: "standard",
|
|
@@ -10004,15 +9735,15 @@ var TableDesktopFooter = ({
|
|
|
10004
9735
|
};
|
|
10005
9736
|
|
|
10006
9737
|
// src/components/TableDesktopCell/TableDesktopCell.tsx
|
|
10007
|
-
import { useEffect as
|
|
9738
|
+
import { useEffect as useEffect15, useState as useState24 } from "react";
|
|
10008
9739
|
import CheckIcon3 from "@mui/icons-material/Check";
|
|
10009
9740
|
import CloseIcon from "@mui/icons-material/Close";
|
|
10010
9741
|
import EditIcon from "@mui/icons-material/Edit";
|
|
10011
9742
|
import { IconButton as IconButton6, TableCell as TableCell6, Tooltip as Tooltip12 } from "@mui/material";
|
|
10012
|
-
import { Fragment as Fragment16, jsx as
|
|
9743
|
+
import { Fragment as Fragment16, jsx as jsx138, jsxs as jsxs93 } from "react/jsx-runtime";
|
|
10013
9744
|
var getReadOnlyBooleanIcon = (value) => {
|
|
10014
9745
|
if (value) {
|
|
10015
|
-
return /* @__PURE__ */
|
|
9746
|
+
return /* @__PURE__ */ jsx138(CheckIcon3, { sx: { fontSize: 16 } });
|
|
10016
9747
|
}
|
|
10017
9748
|
return "-";
|
|
10018
9749
|
};
|
|
@@ -10034,10 +9765,10 @@ var TableDesktopCell = ({
|
|
|
10034
9765
|
onCellClick,
|
|
10035
9766
|
headCell
|
|
10036
9767
|
}) => {
|
|
10037
|
-
const [isCellHovered, setIsCellHovered] =
|
|
10038
|
-
const [isCellInEditMode, setIsCellInEditMode] =
|
|
9768
|
+
const [isCellHovered, setIsCellHovered] = useState24(false);
|
|
9769
|
+
const [isCellInEditMode, setIsCellInEditMode] = useState24(false);
|
|
10039
9770
|
const { width, editableCellType } = headCell;
|
|
10040
|
-
|
|
9771
|
+
useEffect15(() => {
|
|
10041
9772
|
const handleKeyDown = (e) => {
|
|
10042
9773
|
if (e.key === "Escape") {
|
|
10043
9774
|
setIsCellInEditMode(false);
|
|
@@ -10055,7 +9786,7 @@ var TableDesktopCell = ({
|
|
|
10055
9786
|
setIsCellInEditMode((prev) => !prev);
|
|
10056
9787
|
};
|
|
10057
9788
|
const isCellEditable = !!enableEditMode && !!editableCellType && !disabled;
|
|
10058
|
-
return /* @__PURE__ */
|
|
9789
|
+
return /* @__PURE__ */ jsx138(
|
|
10059
9790
|
TableCell6,
|
|
10060
9791
|
{
|
|
10061
9792
|
align: "left",
|
|
@@ -10070,8 +9801,8 @@ var TableDesktopCell = ({
|
|
|
10070
9801
|
":hover": isCellEditable ? getCellBackgroundColor(isCellInEditMode) : void 0,
|
|
10071
9802
|
background: enableEditMode && isCellInEditMode ? colors.lightBlueBackground : void 0
|
|
10072
9803
|
},
|
|
10073
|
-
children: /* @__PURE__ */
|
|
10074
|
-
enableEditMode && isCellHovered ? /* @__PURE__ */
|
|
9804
|
+
children: /* @__PURE__ */ jsx138(DynamicOverflowTooltip, { tooltipDescription: String(readOnlyValue), arrow: true, children: /* @__PURE__ */ jsxs93(Fragment16, { children: [
|
|
9805
|
+
enableEditMode && isCellHovered ? /* @__PURE__ */ jsx138(Tooltip12, { title: isCellInEditMode ? "" : "Toggle Edit Mode", children: /* @__PURE__ */ jsx138(
|
|
10075
9806
|
IconButton6,
|
|
10076
9807
|
{
|
|
10077
9808
|
onClick: handleEditClick,
|
|
@@ -10086,10 +9817,10 @@ var TableDesktopCell = ({
|
|
|
10086
9817
|
backgroundColor: isCellInEditMode ? colors.lightBlueBackground : colors.neutral150
|
|
10087
9818
|
}
|
|
10088
9819
|
},
|
|
10089
|
-
children: isCellInEditMode ? /* @__PURE__ */
|
|
9820
|
+
children: isCellInEditMode ? /* @__PURE__ */ jsx138(CloseIcon, { fontSize: "small", color: "error" }) : /* @__PURE__ */ jsx138(EditIcon, { fontSize: "small" })
|
|
10090
9821
|
}
|
|
10091
9822
|
) }) : null,
|
|
10092
|
-
enableEditMode && isCellInEditMode && editableCellType ? /* @__PURE__ */
|
|
9823
|
+
enableEditMode && isCellInEditMode && editableCellType ? /* @__PURE__ */ jsx138(
|
|
10093
9824
|
TableDesktopEditableField,
|
|
10094
9825
|
{
|
|
10095
9826
|
editInitialValue,
|
|
@@ -10106,15 +9837,15 @@ var TableDesktopCell = ({
|
|
|
10106
9837
|
|
|
10107
9838
|
// src/components/TableDesktopToolbar/TableDesktopToolbar.tsx
|
|
10108
9839
|
import {
|
|
10109
|
-
useState as
|
|
9840
|
+
useState as useState25,
|
|
10110
9841
|
useMemo as useMemo9,
|
|
10111
|
-
useRef as
|
|
9842
|
+
useRef as useRef10
|
|
10112
9843
|
} from "react";
|
|
10113
9844
|
import Download from "@mui/icons-material/Download";
|
|
10114
9845
|
import KeyboardArrowLeft2 from "@mui/icons-material/KeyboardArrowLeft";
|
|
10115
9846
|
import KeyboardArrowRight2 from "@mui/icons-material/KeyboardArrowRight";
|
|
10116
9847
|
import {
|
|
10117
|
-
Box as
|
|
9848
|
+
Box as Box46,
|
|
10118
9849
|
Button as Button19,
|
|
10119
9850
|
Divider as Divider11,
|
|
10120
9851
|
FormControlLabel as FormControlLabel7,
|
|
@@ -10123,7 +9854,7 @@ import {
|
|
|
10123
9854
|
Tooltip as Tooltip13,
|
|
10124
9855
|
Typography as Typography36
|
|
10125
9856
|
} from "@mui/material";
|
|
10126
|
-
import { Fragment as Fragment17, jsx as
|
|
9857
|
+
import { Fragment as Fragment17, jsx as jsx139, jsxs as jsxs94 } from "react/jsx-runtime";
|
|
10127
9858
|
var TableDesktopToolbar = ({
|
|
10128
9859
|
toolbarLabel,
|
|
10129
9860
|
headCells,
|
|
@@ -10146,11 +9877,11 @@ var TableDesktopToolbar = ({
|
|
|
10146
9877
|
renderTableColumnConfigurationMenu,
|
|
10147
9878
|
renderInfoIcons
|
|
10148
9879
|
}) => {
|
|
10149
|
-
const scrollRef =
|
|
10150
|
-
const [bulkChanges, setBulkChanges] =
|
|
10151
|
-
const [isBulkChangesDialogOpen, setIsBulkChangesDialogOpen] =
|
|
10152
|
-
const [isExportCsvDialogOpen, setIsExportCsvDialogOpen] =
|
|
10153
|
-
const [resetCounter, setResetCounter] =
|
|
9880
|
+
const scrollRef = useRef10(null);
|
|
9881
|
+
const [bulkChanges, setBulkChanges] = useState25([]);
|
|
9882
|
+
const [isBulkChangesDialogOpen, setIsBulkChangesDialogOpen] = useState25(false);
|
|
9883
|
+
const [isExportCsvDialogOpen, setIsExportCsvDialogOpen] = useState25(false);
|
|
9884
|
+
const [resetCounter, setResetCounter] = useState25(0);
|
|
10154
9885
|
const visibleEditableColumns = useMemo9(
|
|
10155
9886
|
() => headCells.filter(
|
|
10156
9887
|
(headCell) => headCell?.enabled && !!headCell?.editableCellType
|
|
@@ -10177,8 +9908,8 @@ var TableDesktopToolbar = ({
|
|
|
10177
9908
|
return [...prev, { field: columnId, value, label }];
|
|
10178
9909
|
});
|
|
10179
9910
|
};
|
|
10180
|
-
return /* @__PURE__ */
|
|
10181
|
-
|
|
9911
|
+
return /* @__PURE__ */ jsxs94(
|
|
9912
|
+
Box46,
|
|
10182
9913
|
{
|
|
10183
9914
|
sx: {
|
|
10184
9915
|
borderBottom: "1px solid",
|
|
@@ -10186,8 +9917,8 @@ var TableDesktopToolbar = ({
|
|
|
10186
9917
|
maxWidth: "100%"
|
|
10187
9918
|
},
|
|
10188
9919
|
children: [
|
|
10189
|
-
/* @__PURE__ */
|
|
10190
|
-
|
|
9920
|
+
/* @__PURE__ */ jsxs94(
|
|
9921
|
+
Box46,
|
|
10191
9922
|
{
|
|
10192
9923
|
sx: {
|
|
10193
9924
|
py: 1,
|
|
@@ -10198,8 +9929,8 @@ var TableDesktopToolbar = ({
|
|
|
10198
9929
|
background: isBulkChangesMode ? colors.neutral150 : void 0
|
|
10199
9930
|
},
|
|
10200
9931
|
children: [
|
|
10201
|
-
/* @__PURE__ */
|
|
10202
|
-
|
|
9932
|
+
/* @__PURE__ */ jsxs94(
|
|
9933
|
+
Box46,
|
|
10203
9934
|
{
|
|
10204
9935
|
sx: {
|
|
10205
9936
|
py: 1,
|
|
@@ -10209,20 +9940,20 @@ var TableDesktopToolbar = ({
|
|
|
10209
9940
|
whiteSpace: "nowrap"
|
|
10210
9941
|
},
|
|
10211
9942
|
children: [
|
|
10212
|
-
toolbarLabel ? /* @__PURE__ */
|
|
10213
|
-
/* @__PURE__ */
|
|
10214
|
-
/* @__PURE__ */
|
|
9943
|
+
toolbarLabel ? /* @__PURE__ */ jsxs94(Fragment17, { children: [
|
|
9944
|
+
/* @__PURE__ */ jsx139(Typography36, { variant: "subtitle2", color: "textSecondary", children: toolbarLabel }),
|
|
9945
|
+
/* @__PURE__ */ jsx139(Divider11, { orientation: "vertical", sx: { height: 0.75, py: 2.5 } })
|
|
10215
9946
|
] }) : null,
|
|
10216
|
-
renderBulkChangesDialog && refetchData ? /* @__PURE__ */
|
|
9947
|
+
renderBulkChangesDialog && refetchData ? /* @__PURE__ */ jsx139(
|
|
10217
9948
|
Tooltip13,
|
|
10218
9949
|
{
|
|
10219
9950
|
title: disableBulkChangesMode ? "Access denied, you don\u2019t have permission to use this feature." : "",
|
|
10220
|
-
children: /* @__PURE__ */
|
|
9951
|
+
children: /* @__PURE__ */ jsx139(
|
|
10221
9952
|
FormControlLabel7,
|
|
10222
9953
|
{
|
|
10223
9954
|
label: "Bulk Changes Mode",
|
|
10224
9955
|
disabled: disableBulkChangesMode || !visibleEditableColumns.length,
|
|
10225
|
-
control: /* @__PURE__ */
|
|
9956
|
+
control: /* @__PURE__ */ jsx139(
|
|
10226
9957
|
Switch2,
|
|
10227
9958
|
{
|
|
10228
9959
|
size: "small",
|
|
@@ -10237,17 +9968,17 @@ var TableDesktopToolbar = ({
|
|
|
10237
9968
|
]
|
|
10238
9969
|
}
|
|
10239
9970
|
),
|
|
10240
|
-
isScrollable && /* @__PURE__ */
|
|
9971
|
+
isScrollable && /* @__PURE__ */ jsx139(
|
|
10241
9972
|
IconButton7,
|
|
10242
9973
|
{
|
|
10243
9974
|
"aria-label": "scroll-left",
|
|
10244
9975
|
sx: { padding: 0, alignSelf: "center" },
|
|
10245
9976
|
onClick: () => scroll("left"),
|
|
10246
|
-
children: /* @__PURE__ */
|
|
9977
|
+
children: /* @__PURE__ */ jsx139(KeyboardArrowLeft2, {})
|
|
10247
9978
|
}
|
|
10248
9979
|
),
|
|
10249
|
-
/* @__PURE__ */
|
|
10250
|
-
|
|
9980
|
+
/* @__PURE__ */ jsx139(
|
|
9981
|
+
Box46,
|
|
10251
9982
|
{
|
|
10252
9983
|
ref: scrollRef,
|
|
10253
9984
|
sx: {
|
|
@@ -10268,11 +9999,11 @@ var TableDesktopToolbar = ({
|
|
|
10268
9999
|
if (bulkUpdateDisabled) {
|
|
10269
10000
|
return null;
|
|
10270
10001
|
}
|
|
10271
|
-
return editableCellType && /* @__PURE__ */
|
|
10272
|
-
|
|
10002
|
+
return editableCellType && /* @__PURE__ */ jsx139(
|
|
10003
|
+
Box46,
|
|
10273
10004
|
{
|
|
10274
10005
|
sx: { width, flex: "0 0 auto" },
|
|
10275
|
-
children: /* @__PURE__ */
|
|
10006
|
+
children: /* @__PURE__ */ jsx139(
|
|
10276
10007
|
TableDesktopEditableField,
|
|
10277
10008
|
{
|
|
10278
10009
|
headCell,
|
|
@@ -10288,17 +10019,17 @@ var TableDesktopToolbar = ({
|
|
|
10288
10019
|
}) : null
|
|
10289
10020
|
}
|
|
10290
10021
|
),
|
|
10291
|
-
isScrollable && /* @__PURE__ */
|
|
10022
|
+
isScrollable && /* @__PURE__ */ jsx139(
|
|
10292
10023
|
IconButton7,
|
|
10293
10024
|
{
|
|
10294
10025
|
"aria-label": "scroll-right",
|
|
10295
10026
|
sx: { p: 0, alignSelf: "center" },
|
|
10296
10027
|
onClick: () => scroll("right"),
|
|
10297
|
-
children: /* @__PURE__ */
|
|
10028
|
+
children: /* @__PURE__ */ jsx139(KeyboardArrowRight2, {})
|
|
10298
10029
|
}
|
|
10299
10030
|
),
|
|
10300
|
-
isBulkChangesMode ? /* @__PURE__ */
|
|
10301
|
-
/* @__PURE__ */
|
|
10031
|
+
isBulkChangesMode ? /* @__PURE__ */ jsxs94(Fragment17, { children: [
|
|
10032
|
+
/* @__PURE__ */ jsx139(
|
|
10302
10033
|
Button19,
|
|
10303
10034
|
{
|
|
10304
10035
|
variant: "outlined",
|
|
@@ -10311,7 +10042,7 @@ var TableDesktopToolbar = ({
|
|
|
10311
10042
|
children: "RESET"
|
|
10312
10043
|
}
|
|
10313
10044
|
),
|
|
10314
|
-
/* @__PURE__ */
|
|
10045
|
+
/* @__PURE__ */ jsx139(
|
|
10315
10046
|
Button19,
|
|
10316
10047
|
{
|
|
10317
10048
|
variant: "contained",
|
|
@@ -10322,26 +10053,26 @@ var TableDesktopToolbar = ({
|
|
|
10322
10053
|
children: "APPLY"
|
|
10323
10054
|
}
|
|
10324
10055
|
)
|
|
10325
|
-
] }) : /* @__PURE__ */
|
|
10056
|
+
] }) : /* @__PURE__ */ jsxs94(Box46, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
10326
10057
|
renderInfoIcons,
|
|
10327
|
-
renderExportCsvDialog ? /* @__PURE__ */
|
|
10058
|
+
renderExportCsvDialog ? /* @__PURE__ */ jsx139(Tooltip13, { title: "Download List", children: /* @__PURE__ */ jsx139("span", { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ jsx139(
|
|
10328
10059
|
IconButton7,
|
|
10329
10060
|
{
|
|
10330
10061
|
disableRipple: true,
|
|
10331
10062
|
disabled: isDataEmpty,
|
|
10332
10063
|
"aria-label": "export-csv-button",
|
|
10333
10064
|
onClick: () => setIsExportCsvDialogOpen(true),
|
|
10334
|
-
children: /* @__PURE__ */
|
|
10065
|
+
children: /* @__PURE__ */ jsx139(Download, { fill: colors.neutral750 })
|
|
10335
10066
|
}
|
|
10336
10067
|
) }) }) : null,
|
|
10337
|
-
renderTableColumnConfigurationMenu ? /* @__PURE__ */
|
|
10068
|
+
renderTableColumnConfigurationMenu ? /* @__PURE__ */ jsx139(Tooltip13, { title: "Table Column Configuration", children: /* @__PURE__ */ jsx139(
|
|
10338
10069
|
IconButton7,
|
|
10339
10070
|
{
|
|
10340
10071
|
disableRipple: true,
|
|
10341
10072
|
"aria-label": "table-column-config-button",
|
|
10342
10073
|
ref: tableToolbarMenuButtonRef,
|
|
10343
10074
|
onClick: onClickToolbarMenuOpen,
|
|
10344
|
-
children: /* @__PURE__ */
|
|
10075
|
+
children: /* @__PURE__ */ jsx139(IconTableEdit_default, { fill: colors.neutral750 })
|
|
10345
10076
|
}
|
|
10346
10077
|
) }) : null
|
|
10347
10078
|
] })
|
|
@@ -10374,11 +10105,11 @@ var TableDesktopToolbar = ({
|
|
|
10374
10105
|
};
|
|
10375
10106
|
|
|
10376
10107
|
// src/components/TableHeader/TableHeader.tsx
|
|
10377
|
-
import { memo as
|
|
10108
|
+
import { memo as memo21, useEffect as useEffect16, useState as useState26 } from "react";
|
|
10378
10109
|
import ImportExportIcon from "@mui/icons-material/ImportExport";
|
|
10379
10110
|
import { TableCell as TableCell7, TableHead as TableHead3, TableRow as TableRow6, TableSortLabel as TableSortLabel3 } from "@mui/material";
|
|
10380
10111
|
import { makeStyles as makeStyles46 } from "tss-react/mui";
|
|
10381
|
-
import { jsx as
|
|
10112
|
+
import { jsx as jsx140 } from "react/jsx-runtime";
|
|
10382
10113
|
var useStyles46 = makeStyles46()(() => ({
|
|
10383
10114
|
sortLabel: {
|
|
10384
10115
|
"& .MuiTableSortLabel-icon": {
|
|
@@ -10387,9 +10118,9 @@ var useStyles46 = makeStyles46()(() => ({
|
|
|
10387
10118
|
}
|
|
10388
10119
|
}));
|
|
10389
10120
|
var TableHeader = ({ cells, onSort = null }) => {
|
|
10390
|
-
const [sortableCells, setSortableCells] =
|
|
10121
|
+
const [sortableCells, setSortableCells] = useState26([]);
|
|
10391
10122
|
const { classes } = useStyles46();
|
|
10392
|
-
|
|
10123
|
+
useEffect16(() => {
|
|
10393
10124
|
setSortableCells(cells);
|
|
10394
10125
|
}, []);
|
|
10395
10126
|
const getNewSortDirection = (direction) => {
|
|
@@ -10423,7 +10154,7 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
10423
10154
|
});
|
|
10424
10155
|
setSortableCells(sortedCells);
|
|
10425
10156
|
};
|
|
10426
|
-
return /* @__PURE__ */
|
|
10157
|
+
return /* @__PURE__ */ jsx140(TableHead3, { children: /* @__PURE__ */ jsx140(TableRow6, { children: sortableCells.map((cell, key) => /* @__PURE__ */ jsx140(TableCell7, { children: cell.isSortable ? /* @__PURE__ */ jsx140(
|
|
10427
10158
|
TableSortLabel3,
|
|
10428
10159
|
{
|
|
10429
10160
|
className: classes.sortLabel,
|
|
@@ -10434,12 +10165,12 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
10434
10165
|
}
|
|
10435
10166
|
) : cell.label }, cell.label || key)) }) });
|
|
10436
10167
|
};
|
|
10437
|
-
var TableHeader_default =
|
|
10168
|
+
var TableHeader_default = memo21(TableHeader);
|
|
10438
10169
|
|
|
10439
10170
|
// src/components/TextDivider/TextDivider.tsx
|
|
10440
|
-
import { Box as
|
|
10171
|
+
import { Box as Box47, Typography as Typography37, Divider as Divider12, Button as Button20 } from "@mui/material";
|
|
10441
10172
|
import { makeStyles as makeStyles47 } from "tss-react/mui";
|
|
10442
|
-
import { jsx as
|
|
10173
|
+
import { jsx as jsx141, jsxs as jsxs95 } from "react/jsx-runtime";
|
|
10443
10174
|
var useStyles47 = makeStyles47()(() => ({
|
|
10444
10175
|
icon: {
|
|
10445
10176
|
fontSize: 20
|
|
@@ -10476,18 +10207,18 @@ var TextDivider = ({
|
|
|
10476
10207
|
}) => {
|
|
10477
10208
|
const { classes } = useStyles47();
|
|
10478
10209
|
const iconColor = color ?? colors.neutral900;
|
|
10479
|
-
return /* @__PURE__ */
|
|
10480
|
-
|
|
10210
|
+
return /* @__PURE__ */ jsxs95(
|
|
10211
|
+
Box47,
|
|
10481
10212
|
{
|
|
10482
10213
|
display: "flex",
|
|
10483
10214
|
alignItems: "center",
|
|
10484
10215
|
justifyContent: "space-between",
|
|
10485
10216
|
className: classes.container,
|
|
10486
10217
|
children: [
|
|
10487
|
-
/* @__PURE__ */
|
|
10488
|
-
/* @__PURE__ */
|
|
10489
|
-
Icon2 && iconPosition === "left" && /* @__PURE__ */
|
|
10490
|
-
/* @__PURE__ */
|
|
10218
|
+
/* @__PURE__ */ jsx141(Divider12, { className: classes.leftDivider }),
|
|
10219
|
+
/* @__PURE__ */ jsx141(Button20, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs95(Box47, { className: classes.center, children: [
|
|
10220
|
+
Icon2 && iconPosition === "left" && /* @__PURE__ */ jsx141(Icon2, { className: classes.icon, style: { color: iconColor } }),
|
|
10221
|
+
/* @__PURE__ */ jsx141(
|
|
10491
10222
|
Typography37,
|
|
10492
10223
|
{
|
|
10493
10224
|
color: "textSecondary",
|
|
@@ -10496,9 +10227,9 @@ var TextDivider = ({
|
|
|
10496
10227
|
children: title
|
|
10497
10228
|
}
|
|
10498
10229
|
),
|
|
10499
|
-
Icon2 && iconPosition === "right" && /* @__PURE__ */
|
|
10230
|
+
Icon2 && iconPosition === "right" && /* @__PURE__ */ jsx141(Icon2, { className: classes.icon, style: { color: iconColor } })
|
|
10500
10231
|
] }) }),
|
|
10501
|
-
/* @__PURE__ */
|
|
10232
|
+
/* @__PURE__ */ jsx141(Divider12, { className: classes.rightDivider })
|
|
10502
10233
|
]
|
|
10503
10234
|
}
|
|
10504
10235
|
);
|
|
@@ -10510,7 +10241,7 @@ import { DateRangePicker } from "react-dates";
|
|
|
10510
10241
|
import { makeStyles as makeStyles48 } from "tss-react/mui";
|
|
10511
10242
|
import "react-dates/initialize";
|
|
10512
10243
|
import "react-dates/lib/css/_datepicker.css";
|
|
10513
|
-
import { jsx as
|
|
10244
|
+
import { jsx as jsx142 } from "react/jsx-runtime";
|
|
10514
10245
|
var useStyles48 = makeStyles48()((theme) => ({
|
|
10515
10246
|
wrapper: {
|
|
10516
10247
|
"& .DateRangePicker": {
|
|
@@ -10606,15 +10337,15 @@ var ThemedDateRangePicker = ({
|
|
|
10606
10337
|
...props
|
|
10607
10338
|
}) => {
|
|
10608
10339
|
const { classes, cx } = useStyles48();
|
|
10609
|
-
return /* @__PURE__ */
|
|
10340
|
+
return /* @__PURE__ */ jsx142("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ jsx142(DateRangePicker, { ...props }) });
|
|
10610
10341
|
};
|
|
10611
10342
|
var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
10612
10343
|
|
|
10613
10344
|
// src/components/TheToolbar/TheToolbar.tsx
|
|
10614
|
-
import { memo as
|
|
10615
|
-
import { AppBar, Box as
|
|
10345
|
+
import { memo as memo22 } from "react";
|
|
10346
|
+
import { AppBar, Box as Box48, Toolbar } from "@mui/material";
|
|
10616
10347
|
import { makeStyles as makeStyles49 } from "tss-react/mui";
|
|
10617
|
-
import { jsx as
|
|
10348
|
+
import { jsx as jsx143, jsxs as jsxs96 } from "react/jsx-runtime";
|
|
10618
10349
|
var useStyles49 = makeStyles49()((theme) => ({
|
|
10619
10350
|
menuButton: {
|
|
10620
10351
|
color: theme.palette.primary.contrastText
|
|
@@ -10631,14 +10362,13 @@ var TheToolbar = ({
|
|
|
10631
10362
|
handleOpen,
|
|
10632
10363
|
LeftDrawer,
|
|
10633
10364
|
leftSection,
|
|
10634
|
-
centerSection,
|
|
10635
10365
|
rightSection,
|
|
10636
10366
|
isAuthenticated = true
|
|
10637
10367
|
}) => {
|
|
10638
10368
|
const { classes } = useStyles49();
|
|
10639
|
-
return /* @__PURE__ */
|
|
10640
|
-
/* @__PURE__ */
|
|
10641
|
-
isAuthenticated ? /* @__PURE__ */
|
|
10369
|
+
return /* @__PURE__ */ jsxs96(Box48, { children: [
|
|
10370
|
+
/* @__PURE__ */ jsx143(AppBar, { children: /* @__PURE__ */ jsxs96(Toolbar, { className: classes.topBar, children: [
|
|
10371
|
+
isAuthenticated ? /* @__PURE__ */ jsx143(
|
|
10642
10372
|
RoundButton_default,
|
|
10643
10373
|
{
|
|
10644
10374
|
className: classes.menuButton,
|
|
@@ -10647,7 +10377,7 @@ var TheToolbar = ({
|
|
|
10647
10377
|
onClick: handleOpen
|
|
10648
10378
|
}
|
|
10649
10379
|
) : null,
|
|
10650
|
-
/* @__PURE__ */
|
|
10380
|
+
/* @__PURE__ */ jsx143(
|
|
10651
10381
|
CompanyLogo_default,
|
|
10652
10382
|
{
|
|
10653
10383
|
size: "small",
|
|
@@ -10656,42 +10386,30 @@ var TheToolbar = ({
|
|
|
10656
10386
|
imageLogoLightSmall
|
|
10657
10387
|
}
|
|
10658
10388
|
),
|
|
10659
|
-
/* @__PURE__ */
|
|
10660
|
-
|
|
10661
|
-
Box50,
|
|
10662
|
-
{
|
|
10663
|
-
sx: {
|
|
10664
|
-
flexGrow: 1,
|
|
10665
|
-
minWidth: 0,
|
|
10666
|
-
display: "flex",
|
|
10667
|
-
justifyContent: "center"
|
|
10668
|
-
},
|
|
10669
|
-
children: centerSection
|
|
10670
|
-
}
|
|
10671
|
-
) : /* @__PURE__ */ jsx145(Box50, { sx: { flexGrow: 1 } }),
|
|
10672
|
-
/* @__PURE__ */ jsx145(Box50, { children: rightSection })
|
|
10389
|
+
/* @__PURE__ */ jsx143(Box48, { ml: 2, children: leftSection }),
|
|
10390
|
+
/* @__PURE__ */ jsx143(Box48, { ml: "auto", children: rightSection })
|
|
10673
10391
|
] }) }),
|
|
10674
10392
|
LeftDrawer
|
|
10675
10393
|
] });
|
|
10676
10394
|
};
|
|
10677
|
-
var TheToolbar_default =
|
|
10395
|
+
var TheToolbar_default = memo22(TheToolbar);
|
|
10678
10396
|
|
|
10679
10397
|
// src/components/ToastMessage/ToastMessage.tsx
|
|
10680
10398
|
import { Alert as MuiAlert, Snackbar } from "@mui/material";
|
|
10681
|
-
import { jsx as
|
|
10399
|
+
import { jsx as jsx144 } from "react/jsx-runtime";
|
|
10682
10400
|
var ToastMessage = ({
|
|
10683
10401
|
toastType,
|
|
10684
10402
|
toastMessage,
|
|
10685
10403
|
open,
|
|
10686
10404
|
onClose
|
|
10687
|
-
}) => /* @__PURE__ */
|
|
10405
|
+
}) => /* @__PURE__ */ jsx144(
|
|
10688
10406
|
Snackbar,
|
|
10689
10407
|
{
|
|
10690
10408
|
open,
|
|
10691
10409
|
autoHideDuration: 3e3,
|
|
10692
10410
|
onClose,
|
|
10693
10411
|
anchorOrigin: { vertical: "top", horizontal: "right" },
|
|
10694
|
-
children: /* @__PURE__ */
|
|
10412
|
+
children: /* @__PURE__ */ jsx144(
|
|
10695
10413
|
MuiAlert,
|
|
10696
10414
|
{
|
|
10697
10415
|
elevation: 6,
|
|
@@ -10722,13 +10440,13 @@ import {
|
|
|
10722
10440
|
Typography as Typography38,
|
|
10723
10441
|
Dialog as Dialog5,
|
|
10724
10442
|
Backdrop,
|
|
10725
|
-
Box as
|
|
10443
|
+
Box as Box49,
|
|
10726
10444
|
Divider as Divider13,
|
|
10727
|
-
Paper as
|
|
10445
|
+
Paper as Paper13,
|
|
10728
10446
|
Fade as Fade2
|
|
10729
10447
|
} from "@mui/material";
|
|
10730
10448
|
import { makeStyles as makeStyles50 } from "tss-react/mui";
|
|
10731
|
-
import { jsx as
|
|
10449
|
+
import { jsx as jsx145, jsxs as jsxs97 } from "react/jsx-runtime";
|
|
10732
10450
|
var useStyles50 = makeStyles50()((theme) => ({
|
|
10733
10451
|
paper: {
|
|
10734
10452
|
padding: theme.spacing(2)
|
|
@@ -10758,7 +10476,7 @@ var TwoButtonDialog = ({
|
|
|
10758
10476
|
cancelButton
|
|
10759
10477
|
}) => {
|
|
10760
10478
|
const { classes } = useStyles50();
|
|
10761
|
-
return /* @__PURE__ */
|
|
10479
|
+
return /* @__PURE__ */ jsx145(
|
|
10762
10480
|
Dialog5,
|
|
10763
10481
|
{
|
|
10764
10482
|
open,
|
|
@@ -10768,10 +10486,10 @@ var TwoButtonDialog = ({
|
|
|
10768
10486
|
closeAfterTransition: true,
|
|
10769
10487
|
BackdropComponent: Backdrop,
|
|
10770
10488
|
BackdropProps: { timeout: 500 },
|
|
10771
|
-
children: /* @__PURE__ */
|
|
10772
|
-
/* @__PURE__ */
|
|
10773
|
-
/* @__PURE__ */
|
|
10774
|
-
|
|
10489
|
+
children: /* @__PURE__ */ jsx145(Fade2, { in: open, children: /* @__PURE__ */ jsxs97(Paper13, { className: classes.paper, children: [
|
|
10490
|
+
/* @__PURE__ */ jsxs97(Box49, { className: classes.mb, children: [
|
|
10491
|
+
/* @__PURE__ */ jsx145(Typography38, { variant: "h5", component: "div", children: /* @__PURE__ */ jsx145(
|
|
10492
|
+
Box49,
|
|
10775
10493
|
{
|
|
10776
10494
|
sx: {
|
|
10777
10495
|
fontWeight: 600
|
|
@@ -10779,23 +10497,23 @@ var TwoButtonDialog = ({
|
|
|
10779
10497
|
children: title
|
|
10780
10498
|
}
|
|
10781
10499
|
) }),
|
|
10782
|
-
/* @__PURE__ */
|
|
10783
|
-
|
|
10500
|
+
/* @__PURE__ */ jsxs97(
|
|
10501
|
+
Box49,
|
|
10784
10502
|
{
|
|
10785
10503
|
className: classes.mt,
|
|
10786
10504
|
sx: {
|
|
10787
10505
|
fontWeight: 600
|
|
10788
10506
|
},
|
|
10789
10507
|
children: [
|
|
10790
|
-
subtitle1 && /* @__PURE__ */
|
|
10791
|
-
subtitle2 && /* @__PURE__ */
|
|
10508
|
+
subtitle1 && /* @__PURE__ */ jsx145(Typography38, { variant: "subtitle1", children: subtitle1 }),
|
|
10509
|
+
subtitle2 && /* @__PURE__ */ jsx145(Typography38, { variant: "subtitle1", children: subtitle2 })
|
|
10792
10510
|
]
|
|
10793
10511
|
}
|
|
10794
10512
|
)
|
|
10795
10513
|
] }),
|
|
10796
|
-
/* @__PURE__ */
|
|
10797
|
-
/* @__PURE__ */
|
|
10798
|
-
/* @__PURE__ */
|
|
10514
|
+
/* @__PURE__ */ jsx145(Divider13, {}),
|
|
10515
|
+
/* @__PURE__ */ jsxs97(Box49, { className: classes.buttonContainer, children: [
|
|
10516
|
+
/* @__PURE__ */ jsx145(
|
|
10799
10517
|
FilledButton_default,
|
|
10800
10518
|
{
|
|
10801
10519
|
copy: cancelLabel,
|
|
@@ -10808,7 +10526,7 @@ var TwoButtonDialog = ({
|
|
|
10808
10526
|
}
|
|
10809
10527
|
}
|
|
10810
10528
|
),
|
|
10811
|
-
/* @__PURE__ */
|
|
10529
|
+
/* @__PURE__ */ jsx145(
|
|
10812
10530
|
FilledButton_default,
|
|
10813
10531
|
{
|
|
10814
10532
|
color: "primary",
|
|
@@ -10817,7 +10535,7 @@ var TwoButtonDialog = ({
|
|
|
10817
10535
|
}
|
|
10818
10536
|
)
|
|
10819
10537
|
] }),
|
|
10820
|
-
/* @__PURE__ */
|
|
10538
|
+
/* @__PURE__ */ jsx145(Loading_default, { isLoading: dialogLoading })
|
|
10821
10539
|
] }) })
|
|
10822
10540
|
}
|
|
10823
10541
|
);
|
|
@@ -10825,11 +10543,11 @@ var TwoButtonDialog = ({
|
|
|
10825
10543
|
var TwoButtonDialog_default = TwoButtonDialog;
|
|
10826
10544
|
|
|
10827
10545
|
// src/components/UserBust/UserBust.tsx
|
|
10828
|
-
import { memo as
|
|
10546
|
+
import { memo as memo23 } from "react";
|
|
10829
10547
|
import { Avatar as Avatar2, Typography as Typography39 } from "@mui/material";
|
|
10830
|
-
import { jsx as
|
|
10831
|
-
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */
|
|
10832
|
-
/* @__PURE__ */
|
|
10548
|
+
import { jsx as jsx146, jsxs as jsxs98 } from "react/jsx-runtime";
|
|
10549
|
+
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs98("div", { children: [
|
|
10550
|
+
/* @__PURE__ */ jsx146(
|
|
10833
10551
|
Avatar2,
|
|
10834
10552
|
{
|
|
10835
10553
|
src: user.profile_picture,
|
|
@@ -10837,18 +10555,18 @@ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs9
|
|
|
10837
10555
|
style: { width: avatarProps.width, height: avatarProps.height }
|
|
10838
10556
|
}
|
|
10839
10557
|
),
|
|
10840
|
-
/* @__PURE__ */
|
|
10841
|
-
/* @__PURE__ */
|
|
10842
|
-
/* @__PURE__ */
|
|
10558
|
+
/* @__PURE__ */ jsxs98("div", { style: { paddingTop: 16 }, children: [
|
|
10559
|
+
/* @__PURE__ */ jsx146(Typography39, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
|
|
10560
|
+
/* @__PURE__ */ jsx146(Typography39, { ...typographyProps.username, children: user.username })
|
|
10843
10561
|
] })
|
|
10844
10562
|
] });
|
|
10845
|
-
var UserBust_default =
|
|
10563
|
+
var UserBust_default = memo23(UserBust);
|
|
10846
10564
|
|
|
10847
10565
|
// src/components/icons/IconChart.tsx
|
|
10848
|
-
import { jsx as
|
|
10566
|
+
import { jsx as jsx147 } from "react/jsx-runtime";
|
|
10849
10567
|
var SvgIconChart = (props) => {
|
|
10850
10568
|
const { fill } = props;
|
|
10851
|
-
return /* @__PURE__ */
|
|
10569
|
+
return /* @__PURE__ */ jsx147(
|
|
10852
10570
|
"svg",
|
|
10853
10571
|
{
|
|
10854
10572
|
width: "20",
|
|
@@ -10857,7 +10575,7 @@ var SvgIconChart = (props) => {
|
|
|
10857
10575
|
fill: "none",
|
|
10858
10576
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10859
10577
|
...props,
|
|
10860
|
-
children: /* @__PURE__ */
|
|
10578
|
+
children: /* @__PURE__ */ jsx147(
|
|
10861
10579
|
"path",
|
|
10862
10580
|
{
|
|
10863
10581
|
d: "M2.49967 11.6667L2.91634 11.725L6.72467 7.91667C6.57467 7.375 6.71634 6.75833 7.15801 6.325C7.80801 5.66667 8.85801 5.66667 9.50801 6.325C9.94967 6.75833 10.0913 7.375 9.94134 7.91667L12.083 10.0583L12.4997 10C12.6497 10 12.7913 10 12.9163 10.0583L15.8913 7.08333C15.833 6.95833 15.833 6.81667 15.833 6.66667C15.833 6.22464 16.0086 5.80072 16.3212 5.48816C16.6337 5.17559 17.0576 5 17.4997 5C17.9417 5 18.3656 5.17559 18.6782 5.48816C18.9907 5.80072 19.1663 6.22464 19.1663 6.66667C19.1663 7.10869 18.9907 7.53262 18.6782 7.84518C18.3656 8.15774 17.9417 8.33333 17.4997 8.33333C17.3497 8.33333 17.208 8.33333 17.083 8.275L14.108 11.25C14.1663 11.375 14.1663 11.5167 14.1663 11.6667C14.1663 12.1087 13.9907 12.5326 13.6782 12.8452C13.3656 13.1577 12.9417 13.3333 12.4997 13.3333C12.0576 13.3333 11.6337 13.1577 11.3212 12.8452C11.0086 12.5326 10.833 12.1087 10.833 11.6667L10.8913 11.25L8.74967 9.10833C8.48301 9.16667 8.18301 9.16667 7.91634 9.10833L4.10801 12.9167L4.16634 13.3333C4.16634 13.7754 3.99075 14.1993 3.67819 14.5118C3.36563 14.8244 2.9417 15 2.49967 15C2.05765 15 1.63372 14.8244 1.32116 14.5118C1.0086 14.1993 0.833008 13.7754 0.833008 13.3333C0.833008 12.8913 1.0086 12.4674 1.32116 12.1548C1.63372 11.8423 2.05765 11.6667 2.49967 11.6667Z",
|
|
@@ -10904,8 +10622,6 @@ export {
|
|
|
10904
10622
|
FilterOptionsCheckboxes,
|
|
10905
10623
|
FilterSimpleSelector_default as FilterSimpleSelector,
|
|
10906
10624
|
FixedFooter_default as FixedFooter,
|
|
10907
|
-
GlobalSearch_default as GlobalSearch,
|
|
10908
|
-
GlobalSearchTrigger_default as GlobalSearchTrigger,
|
|
10909
10625
|
GooglePlacesAddressAutocomplete,
|
|
10910
10626
|
HashtagInput,
|
|
10911
10627
|
Header_default as Header,
|