@natoora-libs/core 0.0.32 → 0.0.34
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 +572 -677
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +54 -64
- package/dist/components/index.d.ts +54 -64
- package/dist/components/index.js +480 -584
- package/dist/components/index.js.map +1 -1
- package/package.json +2 -2
package/dist/components/index.js
CHANGED
|
@@ -191,7 +191,7 @@ var BackHeader_default = BackHeader;
|
|
|
191
191
|
|
|
192
192
|
// src/components/BottomBar/BottomBar.tsx
|
|
193
193
|
import { Box as Box5, Paper } from "@mui/material";
|
|
194
|
-
import { bool
|
|
194
|
+
import { bool, func, node, string } from "prop-types";
|
|
195
195
|
import { makeStyles as makeStyles5 } from "tss-react/mui";
|
|
196
196
|
|
|
197
197
|
// src/components/Buttons/ExtendedButton/ExtendedButton.tsx
|
|
@@ -214,7 +214,6 @@ import AppsIcon from "@mui/icons-material/Apps";
|
|
|
214
214
|
import { Box as Box4 } from "@mui/material";
|
|
215
215
|
import Button4 from "@mui/material/Button";
|
|
216
216
|
import Tooltip from "@mui/material/Tooltip";
|
|
217
|
-
import { bool, func, oneOf, string } from "prop-types";
|
|
218
217
|
import { makeStyles as makeStyles4 } from "tss-react/mui";
|
|
219
218
|
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
220
219
|
var useStyles4 = makeStyles4()((theme) => ({
|
|
@@ -278,18 +277,18 @@ var useStyles4 = makeStyles4()((theme) => ({
|
|
|
278
277
|
}
|
|
279
278
|
}));
|
|
280
279
|
var ExtendedButton = ({
|
|
281
|
-
buttonType,
|
|
280
|
+
buttonType = "button",
|
|
282
281
|
className,
|
|
283
|
-
color,
|
|
282
|
+
color = "default",
|
|
284
283
|
copy,
|
|
285
|
-
disabled,
|
|
286
|
-
href,
|
|
287
|
-
onClick,
|
|
288
|
-
subcopy,
|
|
289
|
-
type,
|
|
290
|
-
variant,
|
|
291
|
-
component,
|
|
292
|
-
tooltip
|
|
284
|
+
disabled = false,
|
|
285
|
+
href = "",
|
|
286
|
+
onClick = void 0,
|
|
287
|
+
subcopy = void 0,
|
|
288
|
+
type = void 0,
|
|
289
|
+
variant = "outlined",
|
|
290
|
+
component = "button",
|
|
291
|
+
tooltip = ""
|
|
293
292
|
}) => {
|
|
294
293
|
const { classes, cx } = useStyles4();
|
|
295
294
|
const icons2 = {
|
|
@@ -307,12 +306,13 @@ var ExtendedButton = ({
|
|
|
307
306
|
download: GetApp,
|
|
308
307
|
publish: Publish
|
|
309
308
|
};
|
|
310
|
-
const
|
|
309
|
+
const muiColor = color === "noOutline" || color === "default" ? void 0 : color;
|
|
310
|
+
const IconComponent = type ? icons2[type] : null;
|
|
311
311
|
return /* @__PURE__ */ jsx5(Tooltip, { title: tooltip, children: /* @__PURE__ */ jsx5(Box4, { children: /* @__PURE__ */ jsxs4(
|
|
312
312
|
Button4,
|
|
313
313
|
{
|
|
314
314
|
className: cx(classes[color], className),
|
|
315
|
-
color:
|
|
315
|
+
color: muiColor,
|
|
316
316
|
component,
|
|
317
317
|
"data-testid": copy ? `extended-button-${copy.toLowerCase()}` : "extended-button",
|
|
318
318
|
disabled,
|
|
@@ -321,7 +321,7 @@ var ExtendedButton = ({
|
|
|
321
321
|
type: buttonType,
|
|
322
322
|
variant,
|
|
323
323
|
children: [
|
|
324
|
-
|
|
324
|
+
IconComponent && /* @__PURE__ */ jsx5(IconComponent, { fontSize: "small", className: classes.icon }),
|
|
325
325
|
/* @__PURE__ */ jsxs4("div", { className: classes.copy, children: [
|
|
326
326
|
copy,
|
|
327
327
|
/* @__PURE__ */ jsx5("span", { children: subcopy })
|
|
@@ -330,47 +330,6 @@ var ExtendedButton = ({
|
|
|
330
330
|
}
|
|
331
331
|
) }) });
|
|
332
332
|
};
|
|
333
|
-
ExtendedButton.defaultProps = {
|
|
334
|
-
buttonType: "button",
|
|
335
|
-
color: "default",
|
|
336
|
-
disabled: false,
|
|
337
|
-
href: "",
|
|
338
|
-
tooltip: "",
|
|
339
|
-
component: "button",
|
|
340
|
-
type: void 0,
|
|
341
|
-
className: void 0,
|
|
342
|
-
onClick: void 0,
|
|
343
|
-
subcopy: void 0,
|
|
344
|
-
variant: "outlined"
|
|
345
|
-
};
|
|
346
|
-
ExtendedButton.propTypes = {
|
|
347
|
-
buttonType: oneOf(["button", "submit"]),
|
|
348
|
-
className: string,
|
|
349
|
-
color: oneOf(["default", "inherit", "primary", "secondary", "noOutline"]),
|
|
350
|
-
copy: string.isRequired,
|
|
351
|
-
disabled: bool,
|
|
352
|
-
href: string,
|
|
353
|
-
onClick: func,
|
|
354
|
-
subcopy: string,
|
|
355
|
-
tooltip: string,
|
|
356
|
-
component: string,
|
|
357
|
-
type: oneOf([
|
|
358
|
-
"add",
|
|
359
|
-
"apps",
|
|
360
|
-
"childCare",
|
|
361
|
-
"delete",
|
|
362
|
-
"edit",
|
|
363
|
-
"importExport",
|
|
364
|
-
"notes",
|
|
365
|
-
"print",
|
|
366
|
-
"save",
|
|
367
|
-
"upload",
|
|
368
|
-
"refresh",
|
|
369
|
-
"download",
|
|
370
|
-
"publish"
|
|
371
|
-
]),
|
|
372
|
-
variant: oneOf(["contained", "outlined", "text"])
|
|
373
|
-
};
|
|
374
333
|
var ExtendedButton_default = memo(ExtendedButton);
|
|
375
334
|
|
|
376
335
|
// src/components/BottomBar/BottomBar.tsx
|
|
@@ -424,10 +383,10 @@ BottomBar.defaultProps = {
|
|
|
424
383
|
onRefreshClick: null
|
|
425
384
|
};
|
|
426
385
|
BottomBar.propTypes = {
|
|
427
|
-
className:
|
|
386
|
+
className: string,
|
|
428
387
|
children: node,
|
|
429
|
-
isLoading:
|
|
430
|
-
onRefreshClick:
|
|
388
|
+
isLoading: bool,
|
|
389
|
+
onRefreshClick: func
|
|
431
390
|
};
|
|
432
391
|
var BottomBar_default = BottomBar;
|
|
433
392
|
|
|
@@ -526,7 +485,7 @@ var BoxButton_default = React3.memo(BoxButton);
|
|
|
526
485
|
import { memo as memo2 } from "react";
|
|
527
486
|
import { CircularProgress } from "@mui/material";
|
|
528
487
|
import Button5 from "@mui/material/Button";
|
|
529
|
-
import { bool as
|
|
488
|
+
import { bool as bool2, func as func2, oneOf, string as string2 } from "prop-types";
|
|
530
489
|
import { makeStyles as makeStyles7 } from "tss-react/mui";
|
|
531
490
|
import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
532
491
|
var useStyles7 = makeStyles7()((theme) => ({
|
|
@@ -625,9 +584,9 @@ var FilledButton = ({
|
|
|
625
584
|
);
|
|
626
585
|
};
|
|
627
586
|
FilledButton.propTypes = {
|
|
628
|
-
autoFocus:
|
|
629
|
-
className:
|
|
630
|
-
color:
|
|
587
|
+
autoFocus: bool2,
|
|
588
|
+
className: string2,
|
|
589
|
+
color: oneOf([
|
|
631
590
|
"default",
|
|
632
591
|
"error",
|
|
633
592
|
"info",
|
|
@@ -637,13 +596,13 @@ FilledButton.propTypes = {
|
|
|
637
596
|
"success",
|
|
638
597
|
"warning"
|
|
639
598
|
]),
|
|
640
|
-
copy:
|
|
641
|
-
isLoading:
|
|
642
|
-
disabled:
|
|
643
|
-
href:
|
|
644
|
-
onClick:
|
|
645
|
-
type:
|
|
646
|
-
variant:
|
|
599
|
+
copy: string2.isRequired,
|
|
600
|
+
isLoading: bool2,
|
|
601
|
+
disabled: bool2,
|
|
602
|
+
href: string2,
|
|
603
|
+
onClick: func2,
|
|
604
|
+
type: oneOf(["button", "submit"]),
|
|
605
|
+
variant: oneOf(["contained", "outlined", "text"])
|
|
647
606
|
};
|
|
648
607
|
var FilledButton_default = memo2(FilledButton);
|
|
649
608
|
|
|
@@ -775,14 +734,14 @@ import React6 from "react";
|
|
|
775
734
|
import Button7 from "@mui/material/Button";
|
|
776
735
|
import CircularProgress3 from "@mui/material/CircularProgress";
|
|
777
736
|
import {
|
|
778
|
-
bool as
|
|
779
|
-
func as
|
|
737
|
+
bool as bool3,
|
|
738
|
+
func as func3,
|
|
780
739
|
node as node2,
|
|
781
740
|
number,
|
|
782
|
-
oneOf as
|
|
741
|
+
oneOf as oneOf2,
|
|
783
742
|
oneOfType,
|
|
784
743
|
shape,
|
|
785
|
-
string as
|
|
744
|
+
string as string3
|
|
786
745
|
} from "prop-types";
|
|
787
746
|
import { makeStyles as makeStyles8 } from "tss-react/mui";
|
|
788
747
|
import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
@@ -903,17 +862,17 @@ var OutlinedButton = ({
|
|
|
903
862
|
);
|
|
904
863
|
};
|
|
905
864
|
OutlinedButton.propTypes = {
|
|
906
|
-
className:
|
|
907
|
-
color:
|
|
908
|
-
copy: oneOfType([number,
|
|
909
|
-
disabled:
|
|
910
|
-
href:
|
|
911
|
-
isLoading:
|
|
912
|
-
onClick:
|
|
865
|
+
className: string3,
|
|
866
|
+
color: string3,
|
|
867
|
+
copy: oneOfType([number, string3]).isRequired,
|
|
868
|
+
disabled: bool3,
|
|
869
|
+
href: string3,
|
|
870
|
+
isLoading: bool3,
|
|
871
|
+
onClick: func3,
|
|
913
872
|
startIcon: node2,
|
|
914
873
|
style: shape({}),
|
|
915
|
-
subcopy:
|
|
916
|
-
type:
|
|
874
|
+
subcopy: string3,
|
|
875
|
+
type: oneOf2(["button", "submit"])
|
|
917
876
|
};
|
|
918
877
|
var OutlinedButton_default = React6.memo(OutlinedButton);
|
|
919
878
|
|
|
@@ -2631,18 +2590,102 @@ var DeleteUserDialogContent = ({
|
|
|
2631
2590
|
};
|
|
2632
2591
|
var DeleteUserDialogContent_default = React53.memo(DeleteUserDialogContent);
|
|
2633
2592
|
|
|
2634
|
-
// src/components/
|
|
2635
|
-
import {
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2593
|
+
// src/components/Dialog/TwoButtonDialog.tsx
|
|
2594
|
+
import {
|
|
2595
|
+
Typography as Typography7,
|
|
2596
|
+
Dialog as Dialog3,
|
|
2597
|
+
Backdrop,
|
|
2598
|
+
Box as Box9,
|
|
2599
|
+
Divider,
|
|
2600
|
+
Paper as Paper2
|
|
2601
|
+
} from "@mui/material";
|
|
2602
|
+
import Fade from "@mui/material/Fade";
|
|
2603
|
+
import { makeStyles as makeStyles13 } from "tss-react/mui";
|
|
2604
|
+
import { jsx as jsx62, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
2605
|
+
var useStyles13 = makeStyles13()((theme) => ({
|
|
2606
|
+
paper: {
|
|
2607
|
+
padding: theme.spacing(2)
|
|
2608
|
+
},
|
|
2609
|
+
mt: {
|
|
2610
|
+
marginTop: theme.spacing(2)
|
|
2611
|
+
},
|
|
2612
|
+
mb: {
|
|
2613
|
+
marginBottom: theme.spacing(2)
|
|
2614
|
+
},
|
|
2615
|
+
buttonContainer: {
|
|
2616
|
+
display: "flex",
|
|
2617
|
+
justifyContent: "center",
|
|
2618
|
+
marginTop: theme.spacing(1)
|
|
2619
|
+
}
|
|
2620
|
+
}));
|
|
2621
|
+
var TwoButtonDialog = ({
|
|
2622
|
+
confirmButton,
|
|
2623
|
+
dialogLoading = false,
|
|
2624
|
+
title,
|
|
2625
|
+
subtitle1,
|
|
2626
|
+
subtitle2,
|
|
2627
|
+
open,
|
|
2628
|
+
setOpen
|
|
2629
|
+
}) => {
|
|
2630
|
+
const { classes } = useStyles13();
|
|
2631
|
+
return /* @__PURE__ */ jsx62(
|
|
2632
|
+
Dialog3,
|
|
2633
|
+
{
|
|
2634
|
+
open,
|
|
2635
|
+
disableEnforceFocus: true,
|
|
2636
|
+
maxWidth: "sm",
|
|
2637
|
+
fullWidth: true,
|
|
2638
|
+
closeAfterTransition: true,
|
|
2639
|
+
BackdropComponent: Backdrop,
|
|
2640
|
+
BackdropProps: {
|
|
2641
|
+
timeout: 500
|
|
2642
|
+
},
|
|
2643
|
+
children: /* @__PURE__ */ jsx62(Fade, { in: open, children: /* @__PURE__ */ jsxs37(Paper2, { className: classes.paper, children: [
|
|
2644
|
+
/* @__PURE__ */ jsxs37(Box9, { className: classes.mb, children: [
|
|
2645
|
+
/* @__PURE__ */ jsx62(Typography7, { variant: "h5", component: "div", children: /* @__PURE__ */ jsx62(
|
|
2646
|
+
Box9,
|
|
2647
|
+
{
|
|
2648
|
+
sx: {
|
|
2649
|
+
fontWeight: 600
|
|
2650
|
+
},
|
|
2651
|
+
children: title
|
|
2652
|
+
}
|
|
2653
|
+
) }),
|
|
2654
|
+
/* @__PURE__ */ jsxs37(
|
|
2655
|
+
Box9,
|
|
2656
|
+
{
|
|
2657
|
+
className: classes.mt,
|
|
2658
|
+
sx: {
|
|
2659
|
+
fontWeight: 600
|
|
2660
|
+
},
|
|
2661
|
+
children: [
|
|
2662
|
+
subtitle1 && /* @__PURE__ */ jsx62(Typography7, { variant: "subtitle1", children: subtitle1 }),
|
|
2663
|
+
subtitle2 && /* @__PURE__ */ jsx62(Typography7, { variant: "subtitle1", children: subtitle2 })
|
|
2664
|
+
]
|
|
2665
|
+
}
|
|
2666
|
+
)
|
|
2667
|
+
] }),
|
|
2668
|
+
/* @__PURE__ */ jsx62(Divider, {}),
|
|
2669
|
+
/* @__PURE__ */ jsxs37(Box9, { className: classes.buttonContainer, children: [
|
|
2670
|
+
/* @__PURE__ */ jsx62(FilledButton_default, { copy: "CANCEL", onClick: () => setOpen(false) }),
|
|
2671
|
+
/* @__PURE__ */ jsx62(
|
|
2672
|
+
FilledButton_default,
|
|
2673
|
+
{
|
|
2674
|
+
color: "primary",
|
|
2675
|
+
copy: "CONFIRM",
|
|
2676
|
+
onClick: confirmButton
|
|
2677
|
+
}
|
|
2678
|
+
)
|
|
2679
|
+
] }),
|
|
2680
|
+
/* @__PURE__ */ jsx62(Loading_default, { isLoading: dialogLoading })
|
|
2681
|
+
] }) })
|
|
2682
|
+
}
|
|
2683
|
+
);
|
|
2684
|
+
};
|
|
2685
|
+
var TwoButtonDialog_default = TwoButtonDialog;
|
|
2642
2686
|
|
|
2643
2687
|
// src/components/LeftDrawer/LeftDrawer.tsx
|
|
2644
2688
|
import React57, { memo as memo3, useState } from "react";
|
|
2645
|
-
import { useDispatch } from "react-redux";
|
|
2646
2689
|
import { ExpandLess, ExpandMore, FiberManualRecord } from "@mui/icons-material";
|
|
2647
2690
|
import {
|
|
2648
2691
|
AppBar,
|
|
@@ -2654,23 +2697,22 @@ import {
|
|
|
2654
2697
|
ListSubheader,
|
|
2655
2698
|
SwipeableDrawer,
|
|
2656
2699
|
Toolbar,
|
|
2657
|
-
Box as
|
|
2700
|
+
Box as Box10,
|
|
2658
2701
|
ListItemButton
|
|
2659
2702
|
} from "@mui/material";
|
|
2660
2703
|
import Icon from "@mui/material/Icon";
|
|
2661
|
-
import { makeStyles as
|
|
2704
|
+
import { makeStyles as makeStyles14 } from "tss-react/mui";
|
|
2662
2705
|
|
|
2663
2706
|
// src/components/UserBust/UserBust.tsx
|
|
2664
2707
|
import React55 from "react";
|
|
2665
|
-
import
|
|
2666
|
-
import PropTypes4 from "prop-types";
|
|
2708
|
+
import Typography8 from "@mui/material/Typography";
|
|
2667
2709
|
|
|
2668
2710
|
// src/components/UserAvatar/UserAvatar.tsx
|
|
2669
2711
|
import React54 from "react";
|
|
2670
2712
|
import Avatar from "@mui/material/Avatar";
|
|
2671
2713
|
import PropTypes3 from "prop-types";
|
|
2672
|
-
import { jsx as
|
|
2673
|
-
var UserAvatar = ({ src, width, height }) => /* @__PURE__ */
|
|
2714
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
2715
|
+
var UserAvatar = ({ src, width, height }) => /* @__PURE__ */ jsx63(Avatar, { alt: "user_avatar", src, style: { width, height } });
|
|
2674
2716
|
UserAvatar.propTypes = {
|
|
2675
2717
|
src: PropTypes3.any,
|
|
2676
2718
|
width: PropTypes3.any,
|
|
@@ -2679,19 +2721,14 @@ UserAvatar.propTypes = {
|
|
|
2679
2721
|
var UserAvatar_default = React54.memo(UserAvatar);
|
|
2680
2722
|
|
|
2681
2723
|
// src/components/UserBust/UserBust.tsx
|
|
2682
|
-
import { jsx as
|
|
2683
|
-
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */
|
|
2684
|
-
/* @__PURE__ */
|
|
2685
|
-
/* @__PURE__ */
|
|
2686
|
-
/* @__PURE__ */
|
|
2687
|
-
/* @__PURE__ */
|
|
2724
|
+
import { jsx as jsx64, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
2725
|
+
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ jsxs38("div", { children: [
|
|
2726
|
+
/* @__PURE__ */ jsx64(UserAvatar_default, { ...avatarProps, src: user.profile_picture }),
|
|
2727
|
+
/* @__PURE__ */ jsxs38("div", { style: { paddingTop: 16 }, children: [
|
|
2728
|
+
/* @__PURE__ */ jsx64(Typography8, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
|
|
2729
|
+
/* @__PURE__ */ jsx64(Typography8, { ...typographyProps.username, children: user.username })
|
|
2688
2730
|
] })
|
|
2689
2731
|
] });
|
|
2690
|
-
UserBust.propTypes = {
|
|
2691
|
-
user: PropTypes4.any,
|
|
2692
|
-
avatarProps: PropTypes4.any,
|
|
2693
|
-
typographyProps: PropTypes4.any
|
|
2694
|
-
};
|
|
2695
2732
|
var UserBust_default = React55.memo(UserBust);
|
|
2696
2733
|
|
|
2697
2734
|
// src/components/LeftDrawer/helpers/useGetFilteredDrawerAppList.tsx
|
|
@@ -2734,7 +2771,7 @@ var featureName = {
|
|
|
2734
2771
|
var featureName_default = featureName;
|
|
2735
2772
|
|
|
2736
2773
|
// src/components/LeftDrawer/helpers/drawerAppList.js
|
|
2737
|
-
import { jsx as
|
|
2774
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
2738
2775
|
var drawerAppList = [
|
|
2739
2776
|
{
|
|
2740
2777
|
groupName: "Home",
|
|
@@ -2745,7 +2782,7 @@ var drawerAppList = [
|
|
|
2745
2782
|
alwaysDisplay: true,
|
|
2746
2783
|
featureNames: [],
|
|
2747
2784
|
pinned: null,
|
|
2748
|
-
icon: /* @__PURE__ */
|
|
2785
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconHome, {}),
|
|
2749
2786
|
url: `/#/`
|
|
2750
2787
|
}
|
|
2751
2788
|
]
|
|
@@ -2759,7 +2796,7 @@ var drawerAppList = [
|
|
|
2759
2796
|
alwaysDisplay: false,
|
|
2760
2797
|
featureNames: [featureName_default.NOTIFICATIONS],
|
|
2761
2798
|
pinned: null,
|
|
2762
|
-
icon: /* @__PURE__ */
|
|
2799
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconNotification, {}),
|
|
2763
2800
|
url: `/#/notifications`
|
|
2764
2801
|
},
|
|
2765
2802
|
{
|
|
@@ -2768,7 +2805,7 @@ var drawerAppList = [
|
|
|
2768
2805
|
alwaysDisplay: false,
|
|
2769
2806
|
featureNames: [featureName_default.PROMO_CODES],
|
|
2770
2807
|
pinned: null,
|
|
2771
|
-
icon: /* @__PURE__ */
|
|
2808
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconPromoCode, {}),
|
|
2772
2809
|
url: "/react/promo_codes"
|
|
2773
2810
|
},
|
|
2774
2811
|
{
|
|
@@ -2777,7 +2814,7 @@ var drawerAppList = [
|
|
|
2777
2814
|
alwaysDisplay: false,
|
|
2778
2815
|
featureNames: [featureName_default.SEARCH_CATEGORIES],
|
|
2779
2816
|
pinned: null,
|
|
2780
|
-
icon: /* @__PURE__ */
|
|
2817
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconSearchCategories, {}),
|
|
2781
2818
|
url: "/react/search-categories"
|
|
2782
2819
|
},
|
|
2783
2820
|
{
|
|
@@ -2786,7 +2823,7 @@ var drawerAppList = [
|
|
|
2786
2823
|
alwaysDisplay: false,
|
|
2787
2824
|
featureNames: ["cms"],
|
|
2788
2825
|
pinned: null,
|
|
2789
|
-
icon: /* @__PURE__ */
|
|
2826
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconContentManagement, {}),
|
|
2790
2827
|
url: "/react/content-management"
|
|
2791
2828
|
}
|
|
2792
2829
|
]
|
|
@@ -2800,7 +2837,7 @@ var drawerAppList = [
|
|
|
2800
2837
|
alwaysDisplay: false,
|
|
2801
2838
|
featureNames: [featureName_default.AIRCALL],
|
|
2802
2839
|
pinned: "recorded_calls",
|
|
2803
|
-
icon: /* @__PURE__ */
|
|
2840
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconPhone, {}),
|
|
2804
2841
|
url: "/react/air-call"
|
|
2805
2842
|
},
|
|
2806
2843
|
{
|
|
@@ -2809,7 +2846,7 @@ var drawerAppList = [
|
|
|
2809
2846
|
alwaysDisplay: false,
|
|
2810
2847
|
featureNames: [featureName_default.CUSTOMERS],
|
|
2811
2848
|
pinned: "customers",
|
|
2812
|
-
icon: /* @__PURE__ */
|
|
2849
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconAccount, {}),
|
|
2813
2850
|
url: `/#/customer-list`,
|
|
2814
2851
|
children: [
|
|
2815
2852
|
{
|
|
@@ -2832,7 +2869,7 @@ var drawerAppList = [
|
|
|
2832
2869
|
alwaysDisplay: false,
|
|
2833
2870
|
featureNames: [featureName_default.ORDERS],
|
|
2834
2871
|
pinned: "orders",
|
|
2835
|
-
icon: /* @__PURE__ */
|
|
2872
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconOrders, {}),
|
|
2836
2873
|
url: `/#/orders`
|
|
2837
2874
|
},
|
|
2838
2875
|
{
|
|
@@ -2841,7 +2878,7 @@ var drawerAppList = [
|
|
|
2841
2878
|
alwaysDisplay: false,
|
|
2842
2879
|
featureNames: [featureName_default.PRICE_LIST],
|
|
2843
2880
|
pinned: "price_list",
|
|
2844
|
-
icon: /* @__PURE__ */
|
|
2881
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconPriceList, {}),
|
|
2845
2882
|
url: `/#/price-list`
|
|
2846
2883
|
},
|
|
2847
2884
|
{
|
|
@@ -2850,7 +2887,7 @@ var drawerAppList = [
|
|
|
2850
2887
|
alwaysDisplay: false,
|
|
2851
2888
|
featureNames: [featureName_default.SPECIAL_PRICES],
|
|
2852
2889
|
pinned: "special_prices",
|
|
2853
|
-
icon: /* @__PURE__ */
|
|
2890
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconSpecialPrice, {}),
|
|
2854
2891
|
url: `/#/pricing/special-prices`
|
|
2855
2892
|
}
|
|
2856
2893
|
]
|
|
@@ -2864,7 +2901,7 @@ var drawerAppList = [
|
|
|
2864
2901
|
alwaysDisplay: false,
|
|
2865
2902
|
featureNames: [featureName_default.PURCHASE_ORDERS],
|
|
2866
2903
|
pinned: "purchase_orders",
|
|
2867
|
-
icon: /* @__PURE__ */
|
|
2904
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconBuying, {}),
|
|
2868
2905
|
url: "/react/purchase-orders"
|
|
2869
2906
|
},
|
|
2870
2907
|
{
|
|
@@ -2873,7 +2910,7 @@ var drawerAppList = [
|
|
|
2873
2910
|
alwaysDisplay: false,
|
|
2874
2911
|
featureNames: [featureName_default.PRODUCTS],
|
|
2875
2912
|
pinned: "products",
|
|
2876
|
-
icon: /* @__PURE__ */
|
|
2913
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconProducts, {}),
|
|
2877
2914
|
url: `/#/product-base-list`
|
|
2878
2915
|
},
|
|
2879
2916
|
{
|
|
@@ -2882,7 +2919,7 @@ var drawerAppList = [
|
|
|
2882
2919
|
alwaysDisplay: false,
|
|
2883
2920
|
featureNames: [featureName_default.SUPPLIERS],
|
|
2884
2921
|
pinned: "suppliers",
|
|
2885
|
-
icon: /* @__PURE__ */
|
|
2922
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconSupplier, {}),
|
|
2886
2923
|
url: "/react/suppliers"
|
|
2887
2924
|
},
|
|
2888
2925
|
{
|
|
@@ -2891,7 +2928,7 @@ var drawerAppList = [
|
|
|
2891
2928
|
alwaysDisplay: false,
|
|
2892
2929
|
featureNames: [featureName_default.SUPPLIER_PRICES],
|
|
2893
2930
|
pinned: "supplier_prices",
|
|
2894
|
-
icon: /* @__PURE__ */
|
|
2931
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconSupplierPrices, {}),
|
|
2895
2932
|
url: `/#/supplier-prices`
|
|
2896
2933
|
},
|
|
2897
2934
|
{
|
|
@@ -2900,7 +2937,7 @@ var drawerAppList = [
|
|
|
2900
2937
|
alwaysDisplay: false,
|
|
2901
2938
|
featureNames: [featureName_default.BULK_UPDATE],
|
|
2902
2939
|
pinned: "bulk-update",
|
|
2903
|
-
icon: /* @__PURE__ */
|
|
2940
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconImport, {}),
|
|
2904
2941
|
url: "/react/bulk_update"
|
|
2905
2942
|
}
|
|
2906
2943
|
]
|
|
@@ -2914,7 +2951,7 @@ var drawerAppList = [
|
|
|
2914
2951
|
alwaysDisplay: false,
|
|
2915
2952
|
featureNames: [featureName_default.GOODS_IN],
|
|
2916
2953
|
pinned: "goods_in",
|
|
2917
|
-
icon: /* @__PURE__ */
|
|
2954
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconGoodsin, {}),
|
|
2918
2955
|
url: "/react/goodsin-list"
|
|
2919
2956
|
},
|
|
2920
2957
|
{
|
|
@@ -2923,7 +2960,7 @@ var drawerAppList = [
|
|
|
2923
2960
|
alwaysDisplay: false,
|
|
2924
2961
|
featureNames: [featureName_default.RETURNS],
|
|
2925
2962
|
pinned: "goods_in",
|
|
2926
|
-
icon: /* @__PURE__ */
|
|
2963
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconGoodsin, {}),
|
|
2927
2964
|
url: "/react/returns"
|
|
2928
2965
|
},
|
|
2929
2966
|
{
|
|
@@ -2932,7 +2969,7 @@ var drawerAppList = [
|
|
|
2932
2969
|
alwaysDisplay: false,
|
|
2933
2970
|
featureNames: [featureName_default.KANBAN],
|
|
2934
2971
|
pinned: "kanbancards",
|
|
2935
|
-
icon: /* @__PURE__ */
|
|
2972
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconVkc, {}),
|
|
2936
2973
|
url: `/#/kanban`
|
|
2937
2974
|
},
|
|
2938
2975
|
{
|
|
@@ -2944,7 +2981,7 @@ var drawerAppList = [
|
|
|
2944
2981
|
featureName: featureName_default.STOCK_MOVEMENTS
|
|
2945
2982
|
}
|
|
2946
2983
|
],
|
|
2947
|
-
icon: /* @__PURE__ */
|
|
2984
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconLocation, {}),
|
|
2948
2985
|
name: "Stock and Locations",
|
|
2949
2986
|
pinned: "locations",
|
|
2950
2987
|
routeName: "locations",
|
|
@@ -2958,7 +2995,7 @@ var drawerAppList = [
|
|
|
2958
2995
|
alwaysDisplay: false,
|
|
2959
2996
|
featureNames: [featureName_default.PICKING_STATIONS],
|
|
2960
2997
|
pinned: "picking_stations",
|
|
2961
|
-
icon: /* @__PURE__ */
|
|
2998
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconScales, {}),
|
|
2962
2999
|
url: `/#/pickingstation`
|
|
2963
3000
|
},
|
|
2964
3001
|
{
|
|
@@ -2967,7 +3004,7 @@ var drawerAppList = [
|
|
|
2967
3004
|
alwaysDisplay: false,
|
|
2968
3005
|
featureNames: [featureName_default.QUALITY_CONTROL],
|
|
2969
3006
|
pinned: "quality_control",
|
|
2970
|
-
icon: /* @__PURE__ */
|
|
3007
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconQc, {}),
|
|
2971
3008
|
url: `/#/quality-control`
|
|
2972
3009
|
},
|
|
2973
3010
|
{
|
|
@@ -2976,7 +3013,7 @@ var drawerAppList = [
|
|
|
2976
3013
|
alwaysDisplay: false,
|
|
2977
3014
|
featureNames: [featureName_default.RETAIL],
|
|
2978
3015
|
pinned: "retail",
|
|
2979
|
-
icon: /* @__PURE__ */
|
|
3016
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconRetail, {}),
|
|
2980
3017
|
url: `/retail/product-availability`
|
|
2981
3018
|
},
|
|
2982
3019
|
{
|
|
@@ -2985,7 +3022,7 @@ var drawerAppList = [
|
|
|
2985
3022
|
alwaysDisplay: false,
|
|
2986
3023
|
featureNames: [featureName_default.SERVICE_DELIVERY],
|
|
2987
3024
|
pinned: "runs",
|
|
2988
|
-
icon: /* @__PURE__ */
|
|
3025
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconRuns, {}),
|
|
2989
3026
|
url: `/#/runs`
|
|
2990
3027
|
},
|
|
2991
3028
|
{
|
|
@@ -2994,7 +3031,7 @@ var drawerAppList = [
|
|
|
2994
3031
|
alwaysDisplay: false,
|
|
2995
3032
|
featureNames: [featureName_default.OPS_METRICS],
|
|
2996
3033
|
pinned: "ops-metrics",
|
|
2997
|
-
icon: /* @__PURE__ */
|
|
3034
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconOpsMetrics, {}),
|
|
2998
3035
|
url: "/react/ops-metrics"
|
|
2999
3036
|
}
|
|
3000
3037
|
]
|
|
@@ -3008,7 +3045,7 @@ var drawerAppList = [
|
|
|
3008
3045
|
alwaysDisplay: false,
|
|
3009
3046
|
featureNames: [featureName_default.ACCOUNTS],
|
|
3010
3047
|
pinned: "accounts",
|
|
3011
|
-
icon: /* @__PURE__ */
|
|
3048
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconAccounts, {}),
|
|
3012
3049
|
url: `/#/accounts`
|
|
3013
3050
|
},
|
|
3014
3051
|
{
|
|
@@ -3017,7 +3054,7 @@ var drawerAppList = [
|
|
|
3017
3054
|
alwaysDisplay: false,
|
|
3018
3055
|
featureNames: [featureName_default.REPORTS],
|
|
3019
3056
|
pinned: "reports",
|
|
3020
|
-
icon: /* @__PURE__ */
|
|
3057
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconReports, {}),
|
|
3021
3058
|
url: `/reports`
|
|
3022
3059
|
}
|
|
3023
3060
|
]
|
|
@@ -3031,7 +3068,7 @@ var drawerAppList = [
|
|
|
3031
3068
|
alwaysDisplay: false,
|
|
3032
3069
|
featureNames: [featureName_default.ADMIN],
|
|
3033
3070
|
pinned: "admin",
|
|
3034
|
-
icon: /* @__PURE__ */
|
|
3071
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconSetting, {}),
|
|
3035
3072
|
url: `/admin`
|
|
3036
3073
|
},
|
|
3037
3074
|
{
|
|
@@ -3040,7 +3077,7 @@ var drawerAppList = [
|
|
|
3040
3077
|
alwaysDisplay: false,
|
|
3041
3078
|
featureNames: [featureName_default.USER_MANAGEMENT],
|
|
3042
3079
|
pinned: "users",
|
|
3043
|
-
icon: /* @__PURE__ */
|
|
3080
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconUserManagement, {}),
|
|
3044
3081
|
url: "/react/user-management"
|
|
3045
3082
|
},
|
|
3046
3083
|
{
|
|
@@ -3049,7 +3086,7 @@ var drawerAppList = [
|
|
|
3049
3086
|
alwaysDisplay: true,
|
|
3050
3087
|
featureNames: [],
|
|
3051
3088
|
pinned: null,
|
|
3052
|
-
icon: /* @__PURE__ */
|
|
3089
|
+
icon: /* @__PURE__ */ jsx65(icons_default.SvgIconLogin, {}),
|
|
3053
3090
|
url: "/react/logout"
|
|
3054
3091
|
}
|
|
3055
3092
|
]
|
|
@@ -3092,8 +3129,8 @@ var useGetFilteredDrawerAppList = () => {
|
|
|
3092
3129
|
var useGetFilteredDrawerAppList_default = useGetFilteredDrawerAppList;
|
|
3093
3130
|
|
|
3094
3131
|
// src/components/LeftDrawer/LeftDrawer.tsx
|
|
3095
|
-
import { jsx as
|
|
3096
|
-
var
|
|
3132
|
+
import { jsx as jsx66, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
3133
|
+
var useStyles14 = makeStyles14()((theme) => ({
|
|
3097
3134
|
subheader: {
|
|
3098
3135
|
textTransform: "uppercase",
|
|
3099
3136
|
fontSize: theme.spacing(1.5)
|
|
@@ -3149,9 +3186,14 @@ var useStyles13 = makeStyles13()((theme) => ({
|
|
|
3149
3186
|
}
|
|
3150
3187
|
}
|
|
3151
3188
|
}));
|
|
3152
|
-
var LeftDrawer = ({
|
|
3189
|
+
var LeftDrawer = ({
|
|
3190
|
+
handleClose,
|
|
3191
|
+
handleOpen,
|
|
3192
|
+
onLogout,
|
|
3193
|
+
open,
|
|
3194
|
+
user
|
|
3195
|
+
}) => {
|
|
3153
3196
|
const [openCollapse, setOpenCollapse] = useState({});
|
|
3154
|
-
const dispatch = useDispatch();
|
|
3155
3197
|
const filteredDrawerAppList = useGetFilteredDrawerAppList_default();
|
|
3156
3198
|
const handleCollapse = (e, routeName) => {
|
|
3157
3199
|
e.stopPropagation();
|
|
@@ -3159,8 +3201,8 @@ var LeftDrawer = ({ handleClose, handleOpen, open }) => {
|
|
|
3159
3201
|
tempOpenCollapse[routeName] = !tempOpenCollapse[routeName];
|
|
3160
3202
|
setOpenCollapse(tempOpenCollapse);
|
|
3161
3203
|
};
|
|
3162
|
-
const { classes } =
|
|
3163
|
-
return /* @__PURE__ */
|
|
3204
|
+
const { classes } = useStyles14();
|
|
3205
|
+
return /* @__PURE__ */ jsxs39(
|
|
3164
3206
|
SwipeableDrawer,
|
|
3165
3207
|
{
|
|
3166
3208
|
className: classes.drawer,
|
|
@@ -3169,19 +3211,19 @@ var LeftDrawer = ({ handleClose, handleOpen, open }) => {
|
|
|
3169
3211
|
onOpen: handleOpen,
|
|
3170
3212
|
open,
|
|
3171
3213
|
children: [
|
|
3172
|
-
/* @__PURE__ */
|
|
3173
|
-
/* @__PURE__ */
|
|
3214
|
+
/* @__PURE__ */ jsx66(AppBar, { position: "static", children: /* @__PURE__ */ jsxs39(Toolbar, { className: classes.topBar, children: [
|
|
3215
|
+
/* @__PURE__ */ jsx66(
|
|
3174
3216
|
UserBust_default,
|
|
3175
3217
|
{
|
|
3176
|
-
user
|
|
3218
|
+
user,
|
|
3177
3219
|
avatarProps: { height: 50, width: 50 },
|
|
3178
3220
|
typographyProps: {
|
|
3179
|
-
name: { variant: "subtitle1" },
|
|
3180
|
-
username: { variant: "caption" }
|
|
3221
|
+
name: { variant: "subtitle1", component: "div" },
|
|
3222
|
+
username: { variant: "caption", component: "div" }
|
|
3181
3223
|
}
|
|
3182
3224
|
}
|
|
3183
3225
|
),
|
|
3184
|
-
/* @__PURE__ */
|
|
3226
|
+
/* @__PURE__ */ jsx66(Box10, { children: /* @__PURE__ */ jsx66(
|
|
3185
3227
|
RoundButton_default,
|
|
3186
3228
|
{
|
|
3187
3229
|
icon: "edit",
|
|
@@ -3192,21 +3234,22 @@ var LeftDrawer = ({ handleClose, handleOpen, open }) => {
|
|
|
3192
3234
|
}
|
|
3193
3235
|
) })
|
|
3194
3236
|
] }) }),
|
|
3195
|
-
/* @__PURE__ */
|
|
3196
|
-
/* @__PURE__ */
|
|
3197
|
-
group.apps.map((app) => /* @__PURE__ */
|
|
3198
|
-
/* @__PURE__ */
|
|
3237
|
+
/* @__PURE__ */ jsx66(List, { children: filteredDrawerAppList.map((group) => /* @__PURE__ */ jsxs39(React57.Fragment, { children: [
|
|
3238
|
+
/* @__PURE__ */ jsx66(ListSubheader, { disableSticky: true, className: classes.subheader, children: group.groupName }),
|
|
3239
|
+
group.apps.map((app) => /* @__PURE__ */ jsxs39(React57.Fragment, { children: [
|
|
3240
|
+
/* @__PURE__ */ jsxs39(
|
|
3199
3241
|
ListItem,
|
|
3200
3242
|
{
|
|
3201
3243
|
title: app.url,
|
|
3202
3244
|
onClick: () => {
|
|
3203
3245
|
if (app.routeName === "logout") {
|
|
3246
|
+
return onLogout();
|
|
3204
3247
|
}
|
|
3205
3248
|
return window.location.assign(app.url);
|
|
3206
3249
|
},
|
|
3207
3250
|
children: [
|
|
3208
|
-
/* @__PURE__ */
|
|
3209
|
-
/* @__PURE__ */
|
|
3251
|
+
/* @__PURE__ */ jsx66(ListItemIcon, { children: /* @__PURE__ */ jsx66(Icon, { className: classes.iconMenu, children: app.icon }) }),
|
|
3252
|
+
/* @__PURE__ */ jsx66(
|
|
3210
3253
|
ListItemText,
|
|
3211
3254
|
{
|
|
3212
3255
|
className: classes.appName,
|
|
@@ -3216,13 +3259,13 @@ var LeftDrawer = ({ handleClose, handleOpen, open }) => {
|
|
|
3216
3259
|
}
|
|
3217
3260
|
}
|
|
3218
3261
|
),
|
|
3219
|
-
app.children?.length > 0 && (openCollapse[app.routeName] ? /* @__PURE__ */
|
|
3262
|
+
app.children?.length > 0 && (openCollapse[app.routeName] ? /* @__PURE__ */ jsx66(
|
|
3220
3263
|
ExpandLess,
|
|
3221
3264
|
{
|
|
3222
3265
|
"data-testid": "svg-close-collapse",
|
|
3223
3266
|
onClick: (e) => handleCollapse(e, app.routeName)
|
|
3224
3267
|
}
|
|
3225
|
-
) : /* @__PURE__ */
|
|
3268
|
+
) : /* @__PURE__ */ jsx66(
|
|
3226
3269
|
ExpandMore,
|
|
3227
3270
|
{
|
|
3228
3271
|
"data-testid": "svg-open-collapse",
|
|
@@ -3233,7 +3276,7 @@ var LeftDrawer = ({ handleClose, handleOpen, open }) => {
|
|
|
3233
3276
|
},
|
|
3234
3277
|
app.name
|
|
3235
3278
|
),
|
|
3236
|
-
app.children?.length > 0 && /* @__PURE__ */
|
|
3279
|
+
app.children?.length > 0 && /* @__PURE__ */ jsx66(Collapse, { in: openCollapse[app.routeName], children: /* @__PURE__ */ jsx66(List, { children: app.children.map((child) => /* @__PURE__ */ jsxs39(
|
|
3237
3280
|
ListItemButton,
|
|
3238
3281
|
{
|
|
3239
3282
|
className: classes.nested,
|
|
@@ -3241,8 +3284,8 @@ var LeftDrawer = ({ handleClose, handleOpen, open }) => {
|
|
|
3241
3284
|
onClick: () => window.location.assign(app.url),
|
|
3242
3285
|
title: app.url,
|
|
3243
3286
|
children: [
|
|
3244
|
-
/* @__PURE__ */
|
|
3245
|
-
/* @__PURE__ */
|
|
3287
|
+
/* @__PURE__ */ jsx66(ListItemIcon, { children: /* @__PURE__ */ jsx66(FiberManualRecord, { style: { height: 12 } }) }),
|
|
3288
|
+
/* @__PURE__ */ jsx66(
|
|
3246
3289
|
ListItemText,
|
|
3247
3290
|
{
|
|
3248
3291
|
primary: child.name,
|
|
@@ -3263,231 +3306,15 @@ var LeftDrawer = ({ handleClose, handleOpen, open }) => {
|
|
|
3263
3306
|
};
|
|
3264
3307
|
var LeftDrawer_default = memo3(LeftDrawer);
|
|
3265
3308
|
|
|
3266
|
-
// src/components/TheToolbar/TheToolbar.tsx
|
|
3267
|
-
import { jsx as jsx66, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
3268
|
-
var useStyles14 = makeStyles14()((theme) => ({
|
|
3269
|
-
menuButton: {
|
|
3270
|
-
color: theme.palette.primary.contrastText
|
|
3271
|
-
},
|
|
3272
|
-
searchNatoora: {
|
|
3273
|
-
width: "100%"
|
|
3274
|
-
},
|
|
3275
|
-
searchIcon: {
|
|
3276
|
-
opacity: ".5"
|
|
3277
|
-
},
|
|
3278
|
-
inputRoot: {
|
|
3279
|
-
color: "inherit"
|
|
3280
|
-
},
|
|
3281
|
-
inputInput: {
|
|
3282
|
-
transition: theme.transitions.create("width"),
|
|
3283
|
-
width: "100%"
|
|
3284
|
-
},
|
|
3285
|
-
topBar: {
|
|
3286
|
-
display: "flex",
|
|
3287
|
-
gap: theme.spacing(1),
|
|
3288
|
-
backgroundColor: colors.topBar
|
|
3289
|
-
},
|
|
3290
|
-
drawer: {
|
|
3291
|
-
backgroundColor: "black"
|
|
3292
|
-
},
|
|
3293
|
-
drawerItem: {
|
|
3294
|
-
maxWidth: "300px",
|
|
3295
|
-
width: "80vw"
|
|
3296
|
-
},
|
|
3297
|
-
offset: theme.mixins.toolbar
|
|
3298
|
-
}));
|
|
3299
|
-
var TheToolbar = ({ imageLogoDarkSmall, imageLogoLightSmall }) => {
|
|
3300
|
-
const { classes } = useStyles14();
|
|
3301
|
-
const [open, setOpen] = React58.useState(false);
|
|
3302
|
-
const handleOpen = () => setOpen(true);
|
|
3303
|
-
const handleClose = () => setOpen(false);
|
|
3304
|
-
return /* @__PURE__ */ jsxs39(Box10, { children: [
|
|
3305
|
-
/* @__PURE__ */ jsx66(AppBar2, { children: /* @__PURE__ */ jsxs39(Toolbar2, { className: classes.topBar, children: [
|
|
3306
|
-
/* @__PURE__ */ jsx66(
|
|
3307
|
-
RoundButton_default,
|
|
3308
|
-
{
|
|
3309
|
-
className: classes.menuButton,
|
|
3310
|
-
icon: "menu",
|
|
3311
|
-
noStrokes: true,
|
|
3312
|
-
onClick: handleOpen
|
|
3313
|
-
}
|
|
3314
|
-
),
|
|
3315
|
-
/* @__PURE__ */ jsx66(
|
|
3316
|
-
CompanyLogo_default,
|
|
3317
|
-
{
|
|
3318
|
-
size: "small",
|
|
3319
|
-
color: "light",
|
|
3320
|
-
imageLogoDarkSmall,
|
|
3321
|
-
imageLogoLightSmall
|
|
3322
|
-
}
|
|
3323
|
-
)
|
|
3324
|
-
] }) }),
|
|
3325
|
-
/* @__PURE__ */ jsx66(Box10, { className: classes.offset }),
|
|
3326
|
-
/* @__PURE__ */ jsx66(
|
|
3327
|
-
LeftDrawer_default,
|
|
3328
|
-
{
|
|
3329
|
-
open,
|
|
3330
|
-
handleOpen,
|
|
3331
|
-
handleClose
|
|
3332
|
-
}
|
|
3333
|
-
)
|
|
3334
|
-
] });
|
|
3335
|
-
};
|
|
3336
|
-
var TheToolbar_default = React58.memo(TheToolbar);
|
|
3337
|
-
|
|
3338
|
-
// src/components/DesktopContainer/DesktopContainer.tsx
|
|
3339
|
-
import { jsx as jsx67, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
3340
|
-
var useStyles15 = makeStyles15()((theme) => ({
|
|
3341
|
-
root: {
|
|
3342
|
-
display: "flex",
|
|
3343
|
-
flexDirection: "column",
|
|
3344
|
-
minHeight: "100vh",
|
|
3345
|
-
maxWidth: 1420,
|
|
3346
|
-
padding: 0
|
|
3347
|
-
},
|
|
3348
|
-
content: {
|
|
3349
|
-
height: "100%",
|
|
3350
|
-
flexGrow: 1
|
|
3351
|
-
},
|
|
3352
|
-
[theme.breakpoints.up("xl")]: {
|
|
3353
|
-
root: {
|
|
3354
|
-
maxWidth: 1720
|
|
3355
|
-
}
|
|
3356
|
-
}
|
|
3357
|
-
}));
|
|
3358
|
-
var DesktopContainer = ({
|
|
3359
|
-
imageLogoDarkSmall,
|
|
3360
|
-
imageLogoLightSmall,
|
|
3361
|
-
children
|
|
3362
|
-
}) => {
|
|
3363
|
-
const { classes } = useStyles15();
|
|
3364
|
-
return /* @__PURE__ */ jsxs40(Container, { className: classes.root, maxWidth: "xl", children: [
|
|
3365
|
-
/* @__PURE__ */ jsx67(
|
|
3366
|
-
TheToolbar_default,
|
|
3367
|
-
{
|
|
3368
|
-
imageLogoDarkSmall,
|
|
3369
|
-
imageLogoLightSmall
|
|
3370
|
-
}
|
|
3371
|
-
),
|
|
3372
|
-
/* @__PURE__ */ jsx67(
|
|
3373
|
-
Box11,
|
|
3374
|
-
{
|
|
3375
|
-
className: classes.content,
|
|
3376
|
-
id: "mainContainer",
|
|
3377
|
-
sx: {
|
|
3378
|
-
display: "flex",
|
|
3379
|
-
flexDirection: "column"
|
|
3380
|
-
},
|
|
3381
|
-
children
|
|
3382
|
-
}
|
|
3383
|
-
)
|
|
3384
|
-
] });
|
|
3385
|
-
};
|
|
3386
|
-
var DesktopContainer_default = DesktopContainer;
|
|
3387
|
-
|
|
3388
|
-
// src/components/Dialog/TwoButtonDialog.tsx
|
|
3389
|
-
import {
|
|
3390
|
-
Typography as Typography8,
|
|
3391
|
-
Dialog as Dialog3,
|
|
3392
|
-
Backdrop,
|
|
3393
|
-
Box as Box12,
|
|
3394
|
-
Divider,
|
|
3395
|
-
Paper as Paper2
|
|
3396
|
-
} from "@mui/material";
|
|
3397
|
-
import Fade from "@mui/material/Fade";
|
|
3398
|
-
import { makeStyles as makeStyles16 } from "tss-react/mui";
|
|
3399
|
-
import { jsx as jsx68, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
3400
|
-
var useStyles16 = makeStyles16()((theme) => ({
|
|
3401
|
-
paper: {
|
|
3402
|
-
padding: theme.spacing(2)
|
|
3403
|
-
},
|
|
3404
|
-
mt: {
|
|
3405
|
-
marginTop: theme.spacing(2)
|
|
3406
|
-
},
|
|
3407
|
-
mb: {
|
|
3408
|
-
marginBottom: theme.spacing(2)
|
|
3409
|
-
},
|
|
3410
|
-
buttonContainer: {
|
|
3411
|
-
display: "flex",
|
|
3412
|
-
justifyContent: "center",
|
|
3413
|
-
marginTop: theme.spacing(1)
|
|
3414
|
-
}
|
|
3415
|
-
}));
|
|
3416
|
-
var TwoButtonDialog = ({
|
|
3417
|
-
confirmButton,
|
|
3418
|
-
dialogLoading = false,
|
|
3419
|
-
title,
|
|
3420
|
-
subtitle1,
|
|
3421
|
-
subtitle2,
|
|
3422
|
-
open,
|
|
3423
|
-
setOpen
|
|
3424
|
-
}) => {
|
|
3425
|
-
const { classes } = useStyles16();
|
|
3426
|
-
return /* @__PURE__ */ jsx68(
|
|
3427
|
-
Dialog3,
|
|
3428
|
-
{
|
|
3429
|
-
open,
|
|
3430
|
-
disableEnforceFocus: true,
|
|
3431
|
-
maxWidth: "sm",
|
|
3432
|
-
fullWidth: true,
|
|
3433
|
-
closeAfterTransition: true,
|
|
3434
|
-
BackdropComponent: Backdrop,
|
|
3435
|
-
BackdropProps: {
|
|
3436
|
-
timeout: 500
|
|
3437
|
-
},
|
|
3438
|
-
children: /* @__PURE__ */ jsx68(Fade, { in: open, children: /* @__PURE__ */ jsxs41(Paper2, { className: classes.paper, children: [
|
|
3439
|
-
/* @__PURE__ */ jsxs41(Box12, { className: classes.mb, children: [
|
|
3440
|
-
/* @__PURE__ */ jsx68(Typography8, { variant: "h5", component: "div", children: /* @__PURE__ */ jsx68(
|
|
3441
|
-
Box12,
|
|
3442
|
-
{
|
|
3443
|
-
sx: {
|
|
3444
|
-
fontWeight: 600
|
|
3445
|
-
},
|
|
3446
|
-
children: title
|
|
3447
|
-
}
|
|
3448
|
-
) }),
|
|
3449
|
-
/* @__PURE__ */ jsxs41(
|
|
3450
|
-
Box12,
|
|
3451
|
-
{
|
|
3452
|
-
className: classes.mt,
|
|
3453
|
-
sx: {
|
|
3454
|
-
fontWeight: 600
|
|
3455
|
-
},
|
|
3456
|
-
children: [
|
|
3457
|
-
subtitle1 && /* @__PURE__ */ jsx68(Typography8, { variant: "subtitle1", children: subtitle1 }),
|
|
3458
|
-
subtitle2 && /* @__PURE__ */ jsx68(Typography8, { variant: "subtitle1", children: subtitle2 })
|
|
3459
|
-
]
|
|
3460
|
-
}
|
|
3461
|
-
)
|
|
3462
|
-
] }),
|
|
3463
|
-
/* @__PURE__ */ jsx68(Divider, {}),
|
|
3464
|
-
/* @__PURE__ */ jsxs41(Box12, { className: classes.buttonContainer, children: [
|
|
3465
|
-
/* @__PURE__ */ jsx68(FilledButton_default, { copy: "CANCEL", onClick: () => setOpen(false) }),
|
|
3466
|
-
/* @__PURE__ */ jsx68(
|
|
3467
|
-
FilledButton_default,
|
|
3468
|
-
{
|
|
3469
|
-
color: "primary",
|
|
3470
|
-
copy: "CONFIRM",
|
|
3471
|
-
onClick: confirmButton
|
|
3472
|
-
}
|
|
3473
|
-
)
|
|
3474
|
-
] }),
|
|
3475
|
-
/* @__PURE__ */ jsx68(Loading_default, { isLoading: dialogLoading })
|
|
3476
|
-
] }) })
|
|
3477
|
-
}
|
|
3478
|
-
);
|
|
3479
|
-
};
|
|
3480
|
-
var TwoButtonDialog_default = TwoButtonDialog;
|
|
3481
|
-
|
|
3482
3309
|
// src/components/Pagination/PaginationForTable.tsx
|
|
3483
3310
|
import Pagination from "@mui/material/Pagination";
|
|
3484
3311
|
import Paper3 from "@mui/material/Paper";
|
|
3485
3312
|
import Typography9 from "@mui/material/Typography";
|
|
3486
|
-
import { any as any2, func as
|
|
3487
|
-
import { makeStyles as
|
|
3488
|
-
import { jsx as
|
|
3313
|
+
import { any as any2, func as func4, object, oneOf as oneOf3, string as string4 } from "prop-types";
|
|
3314
|
+
import { makeStyles as makeStyles15 } from "tss-react/mui";
|
|
3315
|
+
import { jsx as jsx67, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
3489
3316
|
var paginationHeight = "56px";
|
|
3490
|
-
var
|
|
3317
|
+
var useStyles15 = makeStyles15()((theme) => ({
|
|
3491
3318
|
root: {
|
|
3492
3319
|
display: "flex",
|
|
3493
3320
|
flexDirection: "row",
|
|
@@ -3523,12 +3350,12 @@ var PaginationForTable = ({
|
|
|
3523
3350
|
style,
|
|
3524
3351
|
updateFilters
|
|
3525
3352
|
}) => {
|
|
3526
|
-
const { classes, cx } =
|
|
3353
|
+
const { classes, cx } = useStyles15();
|
|
3527
3354
|
const handleChange = (event, value) => {
|
|
3528
3355
|
updateFilters({ ...appliedFilters, page: value });
|
|
3529
3356
|
};
|
|
3530
3357
|
const isFixed = position === "fixed";
|
|
3531
|
-
return /* @__PURE__ */
|
|
3358
|
+
return /* @__PURE__ */ jsx67(Paper3, { children: /* @__PURE__ */ jsxs40(
|
|
3532
3359
|
"div",
|
|
3533
3360
|
{
|
|
3534
3361
|
style,
|
|
@@ -3536,11 +3363,11 @@ var PaginationForTable = ({
|
|
|
3536
3363
|
[classes.fixed]: isFixed
|
|
3537
3364
|
}),
|
|
3538
3365
|
children: [
|
|
3539
|
-
/* @__PURE__ */
|
|
3366
|
+
/* @__PURE__ */ jsxs40(Typography9, { variant: "body1", children: [
|
|
3540
3367
|
"Page: ",
|
|
3541
3368
|
page
|
|
3542
3369
|
] }),
|
|
3543
|
-
/* @__PURE__ */
|
|
3370
|
+
/* @__PURE__ */ jsx67(
|
|
3544
3371
|
Pagination,
|
|
3545
3372
|
{
|
|
3546
3373
|
count: pagination.num_pages,
|
|
@@ -3557,34 +3384,34 @@ PaginationForTable.defaultProps = {
|
|
|
3557
3384
|
};
|
|
3558
3385
|
PaginationForTable.propTypes = {
|
|
3559
3386
|
appliedFilters: any2,
|
|
3560
|
-
className:
|
|
3387
|
+
className: string4,
|
|
3561
3388
|
page: any2,
|
|
3562
3389
|
pagination: object,
|
|
3563
|
-
position:
|
|
3390
|
+
position: oneOf3(["relative", "fixed"]),
|
|
3564
3391
|
style: any2,
|
|
3565
|
-
updateFilters:
|
|
3392
|
+
updateFilters: func4.isRequired
|
|
3566
3393
|
};
|
|
3567
3394
|
var PaginationForTable_default = PaginationForTable;
|
|
3568
3395
|
|
|
3569
3396
|
// src/components/ProductImage/ProductImage.tsx
|
|
3570
3397
|
import { CardMedia } from "@mui/material";
|
|
3571
|
-
import { any as any3, string as
|
|
3398
|
+
import { any as any3, string as string5 } from "prop-types";
|
|
3572
3399
|
import { withStyles as withStyles2 } from "tss-react/mui";
|
|
3573
|
-
import { jsx as
|
|
3400
|
+
import { jsx as jsx68, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
3574
3401
|
var PImage = ({
|
|
3575
3402
|
classes,
|
|
3576
3403
|
image,
|
|
3577
3404
|
size = "c_productbust__image_xs",
|
|
3578
3405
|
status
|
|
3579
|
-
}) => /* @__PURE__ */
|
|
3580
|
-
/* @__PURE__ */
|
|
3406
|
+
}) => /* @__PURE__ */ jsxs41("div", { className: classes.c_productbust__image, children: [
|
|
3407
|
+
/* @__PURE__ */ jsx68(
|
|
3581
3408
|
CardMedia,
|
|
3582
3409
|
{
|
|
3583
3410
|
className: classes[size],
|
|
3584
3411
|
image: image || "resources/img/peas.jpg"
|
|
3585
3412
|
}
|
|
3586
3413
|
),
|
|
3587
|
-
status && status !== "ACTIVE" && /* @__PURE__ */
|
|
3414
|
+
status && status !== "ACTIVE" && /* @__PURE__ */ jsx68("div", { className: classes.c_productbust__label_status, children: status })
|
|
3588
3415
|
] });
|
|
3589
3416
|
var ProductImage = withStyles2(PImage, (theme) => ({
|
|
3590
3417
|
c_productbust__label_status: {
|
|
@@ -3665,8 +3492,8 @@ var ProductImage = withStyles2(PImage, (theme) => ({
|
|
|
3665
3492
|
}));
|
|
3666
3493
|
PImage.propTypes = {
|
|
3667
3494
|
classes: any3,
|
|
3668
|
-
image:
|
|
3669
|
-
size:
|
|
3495
|
+
image: string5,
|
|
3496
|
+
size: string5,
|
|
3670
3497
|
status: any3
|
|
3671
3498
|
};
|
|
3672
3499
|
var ProductImage_default = ProductImage;
|
|
@@ -3679,15 +3506,15 @@ import {
|
|
|
3679
3506
|
ListItemText as ListItemText2,
|
|
3680
3507
|
ListSubheader as ListSubheader2
|
|
3681
3508
|
} from "@mui/material";
|
|
3682
|
-
import { makeStyles as
|
|
3509
|
+
import { makeStyles as makeStyles16 } from "tss-react/mui";
|
|
3683
3510
|
|
|
3684
3511
|
// src/utils/useGetActiveSection.ts
|
|
3685
3512
|
import { useEffect, useState as useState2 } from "react";
|
|
3686
3513
|
var transformNameToID = (name) => name.replaceAll(" ", "-").toLocaleLowerCase();
|
|
3687
3514
|
|
|
3688
3515
|
// src/components/RenderContentList/RenderContentList.tsx
|
|
3689
|
-
import { jsx as
|
|
3690
|
-
var
|
|
3516
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
3517
|
+
var useStyles16 = makeStyles16()(
|
|
3691
3518
|
(_theme, _params, classes) => ({
|
|
3692
3519
|
root: {
|
|
3693
3520
|
[`&.${classes.selected}`]: {
|
|
@@ -3701,20 +3528,20 @@ var useStyles18 = makeStyles18()(
|
|
|
3701
3528
|
})
|
|
3702
3529
|
);
|
|
3703
3530
|
var RenderContentList = ({ items, activeSection }) => {
|
|
3704
|
-
const { classes } =
|
|
3531
|
+
const { classes } = useStyles16();
|
|
3705
3532
|
const [active, setActive] = useState3(activeSection);
|
|
3706
3533
|
useEffect2(() => {
|
|
3707
3534
|
setActive(activeSection);
|
|
3708
3535
|
}, [activeSection]);
|
|
3709
|
-
return /* @__PURE__ */
|
|
3536
|
+
return /* @__PURE__ */ jsx69(
|
|
3710
3537
|
List2,
|
|
3711
3538
|
{
|
|
3712
3539
|
component: "nav",
|
|
3713
3540
|
"aria-labelledby": "nested-list-subheader",
|
|
3714
|
-
subheader: /* @__PURE__ */
|
|
3541
|
+
subheader: /* @__PURE__ */ jsx69(ListSubheader2, { component: "div", id: "nested-list-subheader", children: "Contents" }),
|
|
3715
3542
|
children: items.map((item) => {
|
|
3716
3543
|
const id = transformNameToID(item);
|
|
3717
|
-
return /* @__PURE__ */
|
|
3544
|
+
return /* @__PURE__ */ jsx69(
|
|
3718
3545
|
ListItemButton2,
|
|
3719
3546
|
{
|
|
3720
3547
|
component: "a",
|
|
@@ -3722,7 +3549,7 @@ var RenderContentList = ({ items, activeSection }) => {
|
|
|
3722
3549
|
onClick: () => setActive(item),
|
|
3723
3550
|
selected: active === item,
|
|
3724
3551
|
classes: { root: classes.root },
|
|
3725
|
-
children: /* @__PURE__ */
|
|
3552
|
+
children: /* @__PURE__ */ jsx69(ListItemText2, { primary: item })
|
|
3726
3553
|
},
|
|
3727
3554
|
id
|
|
3728
3555
|
);
|
|
@@ -3733,11 +3560,11 @@ var RenderContentList = ({ items, activeSection }) => {
|
|
|
3733
3560
|
var RenderContentList_default = RenderContentList;
|
|
3734
3561
|
|
|
3735
3562
|
// src/components/RowProductCard/RowProductCard.tsx
|
|
3736
|
-
import { Box as
|
|
3737
|
-
import { makeStyles as
|
|
3738
|
-
import { arrayOf, node as node3, oneOf as
|
|
3739
|
-
import { Fragment as Fragment3, jsx as
|
|
3740
|
-
var
|
|
3563
|
+
import { Box as Box11, Divider as Divider2, Paper as Paper4, Typography as Typography10 } from "@mui/material";
|
|
3564
|
+
import { makeStyles as makeStyles17 } from "tss-react/mui";
|
|
3565
|
+
import { arrayOf, node as node3, oneOf as oneOf4, oneOfType as oneOfType2, shape as shape2, string as string6 } from "prop-types";
|
|
3566
|
+
import { Fragment as Fragment3, jsx as jsx70, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
3567
|
+
var useStyles17 = makeStyles17()((theme) => ({
|
|
3741
3568
|
wrapper: {
|
|
3742
3569
|
display: "flex",
|
|
3743
3570
|
gap: theme.spacing(2),
|
|
@@ -3762,15 +3589,15 @@ var useStyles19 = makeStyles19()((theme) => ({
|
|
|
3762
3589
|
}
|
|
3763
3590
|
}));
|
|
3764
3591
|
var RowProductCard = ({ children, columns, location, product, size }) => {
|
|
3765
|
-
const { classes, cx } =
|
|
3592
|
+
const { classes, cx } = useStyles17();
|
|
3766
3593
|
const hasColumns = columns.length >= 1;
|
|
3767
3594
|
const imageSize = {
|
|
3768
3595
|
small: "c_productbust__image_sm",
|
|
3769
3596
|
medium: "c_productbust__image_md",
|
|
3770
3597
|
large: "c_productbust__image_lg"
|
|
3771
3598
|
};
|
|
3772
|
-
return /* @__PURE__ */
|
|
3773
|
-
/* @__PURE__ */
|
|
3599
|
+
return /* @__PURE__ */ jsxs42(Paper4, { className: classes.wrapper, children: [
|
|
3600
|
+
/* @__PURE__ */ jsx70(
|
|
3774
3601
|
ProductImage_default,
|
|
3775
3602
|
{
|
|
3776
3603
|
image: product.image,
|
|
@@ -3778,15 +3605,15 @@ var RowProductCard = ({ children, columns, location, product, size }) => {
|
|
|
3778
3605
|
size: imageSize[size]
|
|
3779
3606
|
}
|
|
3780
3607
|
),
|
|
3781
|
-
/* @__PURE__ */
|
|
3608
|
+
/* @__PURE__ */ jsxs42(
|
|
3782
3609
|
"div",
|
|
3783
3610
|
{
|
|
3784
3611
|
className: cx(classes.content, {
|
|
3785
3612
|
[classes.onlyProductName]: !hasColumns && !location
|
|
3786
3613
|
}),
|
|
3787
3614
|
children: [
|
|
3788
|
-
/* @__PURE__ */
|
|
3789
|
-
|
|
3615
|
+
/* @__PURE__ */ jsxs42(
|
|
3616
|
+
Box11,
|
|
3790
3617
|
{
|
|
3791
3618
|
className: classes.upperRow,
|
|
3792
3619
|
sx: {
|
|
@@ -3795,26 +3622,26 @@ var RowProductCard = ({ children, columns, location, product, size }) => {
|
|
|
3795
3622
|
alignItems: "center"
|
|
3796
3623
|
},
|
|
3797
3624
|
children: [
|
|
3798
|
-
/* @__PURE__ */
|
|
3799
|
-
location ? /* @__PURE__ */
|
|
3800
|
-
/* @__PURE__ */
|
|
3625
|
+
/* @__PURE__ */ jsxs42("div", { children: [
|
|
3626
|
+
location ? /* @__PURE__ */ jsx70(Typography10, { className: classes.smallTitle, variant: "caption", children: `Location: ${location}` }) : null,
|
|
3627
|
+
/* @__PURE__ */ jsx70(Typography10, { variant: "h6", children: product.name })
|
|
3801
3628
|
] }),
|
|
3802
3629
|
children
|
|
3803
3630
|
]
|
|
3804
3631
|
}
|
|
3805
3632
|
),
|
|
3806
|
-
hasColumns ? /* @__PURE__ */
|
|
3807
|
-
/* @__PURE__ */
|
|
3808
|
-
/* @__PURE__ */
|
|
3809
|
-
|
|
3633
|
+
hasColumns ? /* @__PURE__ */ jsxs42(Fragment3, { children: [
|
|
3634
|
+
/* @__PURE__ */ jsx70(Divider2, { className: classes.divider }),
|
|
3635
|
+
/* @__PURE__ */ jsx70(
|
|
3636
|
+
Box11,
|
|
3810
3637
|
{
|
|
3811
3638
|
sx: {
|
|
3812
3639
|
display: "flex",
|
|
3813
3640
|
gap: "24px"
|
|
3814
3641
|
},
|
|
3815
|
-
children: columns.map((column) => /* @__PURE__ */
|
|
3816
|
-
/* @__PURE__ */
|
|
3817
|
-
typeof column.value === "string" ? /* @__PURE__ */
|
|
3642
|
+
children: columns.map((column) => /* @__PURE__ */ jsxs42("div", { children: [
|
|
3643
|
+
/* @__PURE__ */ jsx70(Typography10, { className: classes.smallTitle, variant: "caption", children: column.title }),
|
|
3644
|
+
typeof column.value === "string" ? /* @__PURE__ */ jsx70(Typography10, { variant: "body1", children: column.value }) : column.value
|
|
3818
3645
|
] }, column.title))
|
|
3819
3646
|
}
|
|
3820
3647
|
)
|
|
@@ -3840,42 +3667,42 @@ RowProductCard.propTypes = {
|
|
|
3840
3667
|
*/
|
|
3841
3668
|
columns: arrayOf(
|
|
3842
3669
|
shape2({
|
|
3843
|
-
title:
|
|
3844
|
-
value: oneOfType2([
|
|
3670
|
+
title: string6,
|
|
3671
|
+
value: oneOfType2([string6, node3])
|
|
3845
3672
|
})
|
|
3846
3673
|
),
|
|
3847
3674
|
/**
|
|
3848
3675
|
* Where is the product location
|
|
3849
3676
|
*/
|
|
3850
|
-
location:
|
|
3677
|
+
location: string6,
|
|
3851
3678
|
/**
|
|
3852
3679
|
* Product information
|
|
3853
3680
|
*/
|
|
3854
3681
|
product: shape2({
|
|
3855
|
-
image:
|
|
3856
|
-
name:
|
|
3857
|
-
status:
|
|
3682
|
+
image: string6.isRequired,
|
|
3683
|
+
name: string6.isRequired,
|
|
3684
|
+
status: string6
|
|
3858
3685
|
}).isRequired,
|
|
3859
|
-
size:
|
|
3686
|
+
size: oneOf4(["small", "medium", "large"])
|
|
3860
3687
|
};
|
|
3861
3688
|
var RowProductCard_default = RowProductCard;
|
|
3862
3689
|
|
|
3863
3690
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
|
|
3864
|
-
import
|
|
3865
|
-
import
|
|
3866
|
-
import
|
|
3867
|
-
import { makeStyles as
|
|
3691
|
+
import React60 from "react";
|
|
3692
|
+
import Box13 from "@mui/material/Box";
|
|
3693
|
+
import PropTypes5 from "prop-types";
|
|
3694
|
+
import { makeStyles as makeStyles19 } from "tss-react/mui";
|
|
3868
3695
|
|
|
3869
3696
|
// src/components/SearchWithFilters/SearchWithFiltersForTable.tsx
|
|
3870
|
-
import
|
|
3697
|
+
import React59 from "react";
|
|
3871
3698
|
import ArrowDropDownIcon from "@mui/icons-material/ArrowDropDown";
|
|
3872
3699
|
import ArrowDropUpIcon from "@mui/icons-material/ArrowDropUp";
|
|
3873
3700
|
import SearchIcon from "@mui/icons-material/Search";
|
|
3874
|
-
import { Box as
|
|
3875
|
-
import
|
|
3876
|
-
import { makeStyles as
|
|
3877
|
-
import { Fragment as Fragment4, jsx as
|
|
3878
|
-
var
|
|
3701
|
+
import { Box as Box12, Button as Button8, Divider as Divider3, InputBase, Paper as Paper5 } from "@mui/material";
|
|
3702
|
+
import PropTypes4 from "prop-types";
|
|
3703
|
+
import { makeStyles as makeStyles18 } from "tss-react/mui";
|
|
3704
|
+
import { Fragment as Fragment4, jsx as jsx71, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
3705
|
+
var useStyles18 = makeStyles18()((theme) => ({
|
|
3879
3706
|
c_search: {
|
|
3880
3707
|
height: 46,
|
|
3881
3708
|
padding: "4px",
|
|
@@ -3933,8 +3760,8 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
3933
3760
|
enterPressedInSearch,
|
|
3934
3761
|
searchedValue
|
|
3935
3762
|
} = props;
|
|
3936
|
-
const { classes } =
|
|
3937
|
-
const [searchText, setSearchText] =
|
|
3763
|
+
const { classes } = useStyles18();
|
|
3764
|
+
const [searchText, setSearchText] = React59.useState("");
|
|
3938
3765
|
const handleTextChange = (e) => {
|
|
3939
3766
|
const { value } = e.target;
|
|
3940
3767
|
setSearchText(value);
|
|
@@ -3949,9 +3776,9 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
3949
3776
|
}
|
|
3950
3777
|
};
|
|
3951
3778
|
const ArrowIcon = isOpen ? ArrowDropUpIcon : ArrowDropDownIcon;
|
|
3952
|
-
return /* @__PURE__ */
|
|
3953
|
-
/* @__PURE__ */
|
|
3954
|
-
/* @__PURE__ */
|
|
3779
|
+
return /* @__PURE__ */ jsxs43(Paper5, { className: classes.c_search, children: [
|
|
3780
|
+
/* @__PURE__ */ jsx71(Box12, { className: classes.c_search__icon, children: /* @__PURE__ */ jsx71(SearchIcon, { className: classes.icon, fontSize: "small" }) }),
|
|
3781
|
+
/* @__PURE__ */ jsx71(
|
|
3955
3782
|
InputBase,
|
|
3956
3783
|
{
|
|
3957
3784
|
className: classes.c_search__input,
|
|
@@ -3961,22 +3788,22 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
3961
3788
|
onKeyDown: handleKeyPress
|
|
3962
3789
|
}
|
|
3963
3790
|
),
|
|
3964
|
-
showFilterButton && /* @__PURE__ */
|
|
3965
|
-
/* @__PURE__ */
|
|
3791
|
+
showFilterButton && /* @__PURE__ */ jsxs43(Fragment4, { children: [
|
|
3792
|
+
/* @__PURE__ */ jsx71(
|
|
3966
3793
|
Divider3,
|
|
3967
3794
|
{
|
|
3968
3795
|
className: classes.c_search__divider,
|
|
3969
3796
|
orientation: "vertical"
|
|
3970
3797
|
}
|
|
3971
3798
|
),
|
|
3972
|
-
/* @__PURE__ */
|
|
3799
|
+
/* @__PURE__ */ jsxs43(
|
|
3973
3800
|
Button8,
|
|
3974
3801
|
{
|
|
3975
3802
|
className: classes.c_search__bt_filter,
|
|
3976
3803
|
onClick: handleFilterButtonClick,
|
|
3977
3804
|
children: [
|
|
3978
3805
|
"Filters",
|
|
3979
|
-
/* @__PURE__ */
|
|
3806
|
+
/* @__PURE__ */ jsx71(ArrowIcon, { className: classes.c_search__bt_icon_filter })
|
|
3980
3807
|
]
|
|
3981
3808
|
}
|
|
3982
3809
|
)
|
|
@@ -3984,18 +3811,18 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
3984
3811
|
] });
|
|
3985
3812
|
};
|
|
3986
3813
|
SearchWithFiltersForTable.propTypes = {
|
|
3987
|
-
onFilterButtonClick:
|
|
3988
|
-
isOpen:
|
|
3989
|
-
updateSearch:
|
|
3990
|
-
enterPressedInSearch:
|
|
3991
|
-
showFilterButton:
|
|
3992
|
-
searchedValue:
|
|
3814
|
+
onFilterButtonClick: PropTypes4.func,
|
|
3815
|
+
isOpen: PropTypes4.bool,
|
|
3816
|
+
updateSearch: PropTypes4.func,
|
|
3817
|
+
enterPressedInSearch: PropTypes4.func,
|
|
3818
|
+
showFilterButton: PropTypes4.bool,
|
|
3819
|
+
searchedValue: PropTypes4.string
|
|
3993
3820
|
};
|
|
3994
|
-
var SearchWithFiltersForTable_default =
|
|
3821
|
+
var SearchWithFiltersForTable_default = React59.memo(SearchWithFiltersForTable);
|
|
3995
3822
|
|
|
3996
3823
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
|
|
3997
|
-
import { jsx as
|
|
3998
|
-
var
|
|
3824
|
+
import { jsx as jsx72, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
3825
|
+
var useStyles19 = makeStyles19()((theme) => ({
|
|
3999
3826
|
container: {
|
|
4000
3827
|
display: "flex",
|
|
4001
3828
|
alignItems: "center",
|
|
@@ -4025,11 +3852,11 @@ var SearchAndFilterHeaderForTable = (props) => {
|
|
|
4025
3852
|
button,
|
|
4026
3853
|
searchedValue
|
|
4027
3854
|
} = props;
|
|
4028
|
-
const { classes } =
|
|
4029
|
-
return /* @__PURE__ */
|
|
4030
|
-
/* @__PURE__ */
|
|
4031
|
-
/* @__PURE__ */
|
|
4032
|
-
/* @__PURE__ */
|
|
3855
|
+
const { classes } = useStyles19();
|
|
3856
|
+
return /* @__PURE__ */ jsxs44(Box13, { className: classes.container, children: [
|
|
3857
|
+
/* @__PURE__ */ jsxs44(Box13, { className: classes.leftSection, children: [
|
|
3858
|
+
/* @__PURE__ */ jsx72(AppLabel_default, { appName }),
|
|
3859
|
+
/* @__PURE__ */ jsx72(
|
|
4033
3860
|
SearchWithFiltersForTable_default,
|
|
4034
3861
|
{
|
|
4035
3862
|
onFilterButtonClick,
|
|
@@ -4040,41 +3867,41 @@ var SearchAndFilterHeaderForTable = (props) => {
|
|
|
4040
3867
|
searchedValue
|
|
4041
3868
|
}
|
|
4042
3869
|
),
|
|
4043
|
-
copy && /* @__PURE__ */
|
|
4044
|
-
|
|
3870
|
+
copy && /* @__PURE__ */ jsx72(
|
|
3871
|
+
Box13,
|
|
4045
3872
|
{
|
|
4046
3873
|
sx: {
|
|
4047
3874
|
margin: 0.5
|
|
4048
3875
|
},
|
|
4049
|
-
children: /* @__PURE__ */
|
|
3876
|
+
children: /* @__PURE__ */ jsx72(OutlinedButton_default, { copy })
|
|
4050
3877
|
}
|
|
4051
3878
|
)
|
|
4052
3879
|
] }),
|
|
4053
|
-
/* @__PURE__ */
|
|
3880
|
+
/* @__PURE__ */ jsx72(Box13, { children: button })
|
|
4054
3881
|
] });
|
|
4055
3882
|
};
|
|
4056
3883
|
SearchAndFilterHeaderForTable.propTypes = {
|
|
4057
|
-
appName:
|
|
4058
|
-
button:
|
|
4059
|
-
copy:
|
|
4060
|
-
enterPressedInSearch:
|
|
4061
|
-
isOpen:
|
|
4062
|
-
onFilterButtonClick:
|
|
4063
|
-
searchedValue:
|
|
4064
|
-
showFilterButton:
|
|
4065
|
-
updateSearch:
|
|
3884
|
+
appName: PropTypes5.string,
|
|
3885
|
+
button: PropTypes5.node,
|
|
3886
|
+
copy: PropTypes5.string,
|
|
3887
|
+
enterPressedInSearch: PropTypes5.func,
|
|
3888
|
+
isOpen: PropTypes5.bool,
|
|
3889
|
+
onFilterButtonClick: PropTypes5.func,
|
|
3890
|
+
searchedValue: PropTypes5.string,
|
|
3891
|
+
showFilterButton: PropTypes5.bool,
|
|
3892
|
+
updateSearch: PropTypes5.func
|
|
4066
3893
|
};
|
|
4067
|
-
var SearchAndFilterHeaderForTable_default =
|
|
3894
|
+
var SearchAndFilterHeaderForTable_default = React60.memo(SearchAndFilterHeaderForTable);
|
|
4068
3895
|
|
|
4069
3896
|
// src/components/SearchWithFilters/SearchWithFilters.tsx
|
|
4070
|
-
import
|
|
3897
|
+
import React61, { useState as useState4, useEffect as useEffect3 } from "react";
|
|
4071
3898
|
import ArrowDropDownIcon2 from "@mui/icons-material/ArrowDropDown";
|
|
4072
3899
|
import ArrowDropUpIcon2 from "@mui/icons-material/ArrowDropUp";
|
|
4073
3900
|
import SearchIcon2 from "@mui/icons-material/Search";
|
|
4074
3901
|
import { Button as Button9, Divider as Divider4, InputBase as InputBase2, Paper as Paper6 } from "@mui/material";
|
|
4075
|
-
import { makeStyles as
|
|
4076
|
-
import { jsx as
|
|
4077
|
-
var
|
|
3902
|
+
import { makeStyles as makeStyles20 } from "tss-react/mui";
|
|
3903
|
+
import { jsx as jsx73, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
3904
|
+
var useStyles20 = makeStyles20()((theme) => ({
|
|
4078
3905
|
searchContainer: {
|
|
4079
3906
|
height: 46,
|
|
4080
3907
|
padding: "4px",
|
|
@@ -4119,7 +3946,7 @@ var SearchWithFilters = ({
|
|
|
4119
3946
|
disabled = false
|
|
4120
3947
|
}) => {
|
|
4121
3948
|
const [searchText, setSearchText] = useState4(searchValue);
|
|
4122
|
-
const { classes } =
|
|
3949
|
+
const { classes } = useStyles20();
|
|
4123
3950
|
const handleTextChange = (e) => {
|
|
4124
3951
|
const { value } = e.target;
|
|
4125
3952
|
setSearchText(value);
|
|
@@ -4133,9 +3960,9 @@ var SearchWithFilters = ({
|
|
|
4133
3960
|
useEffect3(() => {
|
|
4134
3961
|
setSearchText(searchValue);
|
|
4135
3962
|
}, [searchValue]);
|
|
4136
|
-
return /* @__PURE__ */
|
|
4137
|
-
/* @__PURE__ */
|
|
4138
|
-
/* @__PURE__ */
|
|
3963
|
+
return /* @__PURE__ */ jsxs45(Paper6, { className: classes.searchContainer, children: [
|
|
3964
|
+
/* @__PURE__ */ jsx73(SearchIcon2, { className: classes.icon, fontSize: "small" }),
|
|
3965
|
+
/* @__PURE__ */ jsx73(
|
|
4139
3966
|
InputBase2,
|
|
4140
3967
|
{
|
|
4141
3968
|
className: classes.input,
|
|
@@ -4147,8 +3974,8 @@ var SearchWithFilters = ({
|
|
|
4147
3974
|
inputProps: { "aria-label": "search" }
|
|
4148
3975
|
}
|
|
4149
3976
|
),
|
|
4150
|
-
/* @__PURE__ */
|
|
4151
|
-
/* @__PURE__ */
|
|
3977
|
+
/* @__PURE__ */ jsx73(Divider4, { className: classes.divider, orientation: "vertical" }),
|
|
3978
|
+
/* @__PURE__ */ jsxs45(
|
|
4152
3979
|
Button9,
|
|
4153
3980
|
{
|
|
4154
3981
|
className: classes.filterButton,
|
|
@@ -4156,20 +3983,20 @@ var SearchWithFilters = ({
|
|
|
4156
3983
|
disabled,
|
|
4157
3984
|
children: [
|
|
4158
3985
|
"Filters",
|
|
4159
|
-
showFilters ? /* @__PURE__ */
|
|
3986
|
+
showFilters ? /* @__PURE__ */ jsx73(ArrowDropUpIcon2, {}) : /* @__PURE__ */ jsx73(ArrowDropDownIcon2, {})
|
|
4160
3987
|
]
|
|
4161
3988
|
}
|
|
4162
3989
|
)
|
|
4163
3990
|
] });
|
|
4164
3991
|
};
|
|
4165
|
-
var SearchWithFilters_default =
|
|
3992
|
+
var SearchWithFilters_default = React61.memo(SearchWithFilters);
|
|
4166
3993
|
|
|
4167
3994
|
// src/components/SectionName/SectionName.tsx
|
|
4168
3995
|
import InfoIcon from "@mui/icons-material/Info";
|
|
4169
|
-
import { Box as
|
|
4170
|
-
import { makeStyles as
|
|
4171
|
-
import { jsx as
|
|
4172
|
-
var
|
|
3996
|
+
import { Box as Box14, Tooltip as Tooltip3, Typography as Typography11 } from "@mui/material";
|
|
3997
|
+
import { makeStyles as makeStyles21 } from "tss-react/mui";
|
|
3998
|
+
import { jsx as jsx74, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
3999
|
+
var useStyles21 = makeStyles21()(() => ({
|
|
4173
4000
|
container: {
|
|
4174
4001
|
display: "flex",
|
|
4175
4002
|
alignItems: "flex-end",
|
|
@@ -4203,10 +4030,10 @@ var SectionName = ({
|
|
|
4203
4030
|
buttonText,
|
|
4204
4031
|
buttonDisabled
|
|
4205
4032
|
}) => {
|
|
4206
|
-
const { classes } =
|
|
4207
|
-
return /* @__PURE__ */
|
|
4208
|
-
/* @__PURE__ */
|
|
4209
|
-
/* @__PURE__ */
|
|
4033
|
+
const { classes } = useStyles21();
|
|
4034
|
+
return /* @__PURE__ */ jsxs46(Box14, { className: classes.container, children: [
|
|
4035
|
+
/* @__PURE__ */ jsxs46(Box14, { className: classes.titleContainer, children: [
|
|
4036
|
+
/* @__PURE__ */ jsx74(
|
|
4210
4037
|
Typography11,
|
|
4211
4038
|
{
|
|
4212
4039
|
variant: "h5",
|
|
@@ -4216,7 +4043,7 @@ var SectionName = ({
|
|
|
4216
4043
|
children: name
|
|
4217
4044
|
}
|
|
4218
4045
|
),
|
|
4219
|
-
tooltipDescription ? /* @__PURE__ */
|
|
4046
|
+
tooltipDescription ? /* @__PURE__ */ jsx74(Tooltip3, { title: tooltipDescription, placement: "right", children: /* @__PURE__ */ jsx74(
|
|
4220
4047
|
InfoIcon,
|
|
4221
4048
|
{
|
|
4222
4049
|
fontSize: "small",
|
|
@@ -4225,7 +4052,7 @@ var SectionName = ({
|
|
|
4225
4052
|
}
|
|
4226
4053
|
) }) : null
|
|
4227
4054
|
] }),
|
|
4228
|
-
buttonText ? /* @__PURE__ */
|
|
4055
|
+
buttonText ? /* @__PURE__ */ jsx74(
|
|
4229
4056
|
ExtendedButton_default,
|
|
4230
4057
|
{
|
|
4231
4058
|
type: "add",
|
|
@@ -4243,14 +4070,14 @@ var SectionName = ({
|
|
|
4243
4070
|
var SectionName_default = SectionName;
|
|
4244
4071
|
|
|
4245
4072
|
// src/components/Shift/Shift.tsx
|
|
4246
|
-
import { Box as
|
|
4247
|
-
import { oneOf as
|
|
4248
|
-
import { makeStyles as
|
|
4073
|
+
import { Box as Box15, Typography as Typography12 } from "@mui/material";
|
|
4074
|
+
import { oneOf as oneOf5 } from "prop-types";
|
|
4075
|
+
import { makeStyles as makeStyles22 } from "tss-react/mui";
|
|
4249
4076
|
|
|
4250
4077
|
// src/resources/icons/DayIcon.js
|
|
4251
|
-
import
|
|
4252
|
-
import { jsx as
|
|
4253
|
-
var DayIcon = (props) => /* @__PURE__ */
|
|
4078
|
+
import React62 from "react";
|
|
4079
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
4080
|
+
var DayIcon = (props) => /* @__PURE__ */ jsx75(
|
|
4254
4081
|
"svg",
|
|
4255
4082
|
{
|
|
4256
4083
|
fill: "none",
|
|
@@ -4259,7 +4086,7 @@ var DayIcon = (props) => /* @__PURE__ */ jsx77(
|
|
|
4259
4086
|
width: 22,
|
|
4260
4087
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4261
4088
|
...props,
|
|
4262
|
-
children: /* @__PURE__ */
|
|
4089
|
+
children: /* @__PURE__ */ jsx75(
|
|
4263
4090
|
"path",
|
|
4264
4091
|
{
|
|
4265
4092
|
d: "M2.55 18.09L3.96 19.5L5.76 17.71L4.34 16.29M11 5C7.69 5 5 7.69 5 11C5 14.31 7.69 17 11 17C14.31 17 17 14.31 17 11C17 7.68 14.31 5 11 5ZM19 12H22V10H19M16.24 17.71L18.04 19.5L19.45 18.09L17.66 16.29M19.45 4L18.04 2.6L16.24 4.39L17.66 5.81M12 0H10V3H12M5.76 4.39L3.96 2.6L2.55 4L4.34 5.81L5.76 4.39ZM0 12H3V10H0M12 19H10V22H12",
|
|
@@ -4271,9 +4098,9 @@ var DayIcon = (props) => /* @__PURE__ */ jsx77(
|
|
|
4271
4098
|
var DayIcon_default = DayIcon;
|
|
4272
4099
|
|
|
4273
4100
|
// src/resources/icons/NightIcon.js
|
|
4274
|
-
import
|
|
4275
|
-
import { jsx as
|
|
4276
|
-
var NightIcon = (props) => /* @__PURE__ */
|
|
4101
|
+
import React63 from "react";
|
|
4102
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
4103
|
+
var NightIcon = (props) => /* @__PURE__ */ jsx76(
|
|
4277
4104
|
"svg",
|
|
4278
4105
|
{
|
|
4279
4106
|
fill: "none",
|
|
@@ -4282,7 +4109,7 @@ var NightIcon = (props) => /* @__PURE__ */ jsx78(
|
|
|
4282
4109
|
width: "14",
|
|
4283
4110
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4284
4111
|
...props,
|
|
4285
|
-
children: /* @__PURE__ */
|
|
4112
|
+
children: /* @__PURE__ */ jsx76(
|
|
4286
4113
|
"path",
|
|
4287
4114
|
{
|
|
4288
4115
|
d: "M0.92627 9.99963C0.926174 11.5698 1.29582 13.1179 2.00528 14.5186C2.71474 15.9194 3.74407 17.1334 5.00994 18.0623C6.27582 18.9913 7.74265 19.6091 9.29169 19.8657C10.8407 20.1224 12.4284 20.0107 13.9263 19.5396C11.8959 18.9016 10.122 17.6323 8.86268 15.9165C7.60338 14.2008 6.92434 12.1279 6.92434 9.99963C6.92434 7.87132 7.60338 5.79851 8.86268 4.08274C10.122 2.36696 11.8959 1.09772 13.9263 0.459633C12.4284 -0.0114145 10.8407 -0.123133 9.29169 0.133521C7.74265 0.390176 6.27582 1.00799 5.00994 1.93695C3.74407 2.8659 2.71474 4.07989 2.00528 5.48063C1.29582 6.88136 0.926174 8.42948 0.92627 9.99963Z",
|
|
@@ -4294,12 +4121,12 @@ var NightIcon = (props) => /* @__PURE__ */ jsx78(
|
|
|
4294
4121
|
var NightIcon_default = NightIcon;
|
|
4295
4122
|
|
|
4296
4123
|
// src/components/Shift/Shift.tsx
|
|
4297
|
-
import { jsx as
|
|
4124
|
+
import { jsx as jsx77, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
4298
4125
|
var ShiftEnum = {
|
|
4299
4126
|
DAY: "Day",
|
|
4300
4127
|
NIGHT: "Night"
|
|
4301
4128
|
};
|
|
4302
|
-
var
|
|
4129
|
+
var useStyles22 = makeStyles22()(() => ({
|
|
4303
4130
|
shiftName: {
|
|
4304
4131
|
textTransform: "uppercase",
|
|
4305
4132
|
fontWeight: 600
|
|
@@ -4307,12 +4134,12 @@ var useStyles24 = makeStyles24()(() => ({
|
|
|
4307
4134
|
}));
|
|
4308
4135
|
var Shift = ({ shift }) => {
|
|
4309
4136
|
const shiftIcon = {
|
|
4310
|
-
[ShiftEnum.DAY]: /* @__PURE__ */
|
|
4311
|
-
[ShiftEnum.NIGHT]: /* @__PURE__ */
|
|
4137
|
+
[ShiftEnum.DAY]: /* @__PURE__ */ jsx77(DayIcon_default, { "data-testid": "shift-day" }),
|
|
4138
|
+
[ShiftEnum.NIGHT]: /* @__PURE__ */ jsx77(NightIcon_default, { "data-testid": "shift-night" })
|
|
4312
4139
|
};
|
|
4313
|
-
const { classes } =
|
|
4314
|
-
return /* @__PURE__ */
|
|
4315
|
-
|
|
4140
|
+
const { classes } = useStyles22();
|
|
4141
|
+
return /* @__PURE__ */ jsxs47(
|
|
4142
|
+
Box15,
|
|
4316
4143
|
{
|
|
4317
4144
|
sx: {
|
|
4318
4145
|
display: "flex",
|
|
@@ -4321,30 +4148,30 @@ var Shift = ({ shift }) => {
|
|
|
4321
4148
|
},
|
|
4322
4149
|
children: [
|
|
4323
4150
|
shiftIcon[shift],
|
|
4324
|
-
/* @__PURE__ */
|
|
4325
|
-
/* @__PURE__ */
|
|
4151
|
+
/* @__PURE__ */ jsxs47(Typography12, { children: [
|
|
4152
|
+
/* @__PURE__ */ jsxs47("span", { className: classes.shiftName, children: [
|
|
4326
4153
|
shift,
|
|
4327
4154
|
" "
|
|
4328
4155
|
] }),
|
|
4329
|
-
/* @__PURE__ */
|
|
4156
|
+
/* @__PURE__ */ jsx77("span", { children: "Shift" })
|
|
4330
4157
|
] })
|
|
4331
4158
|
]
|
|
4332
4159
|
}
|
|
4333
4160
|
);
|
|
4334
4161
|
};
|
|
4335
4162
|
Shift.propTypes = {
|
|
4336
|
-
shift:
|
|
4163
|
+
shift: oneOf5(Object.values(ShiftEnum))
|
|
4337
4164
|
};
|
|
4338
4165
|
var Shift_default = Shift;
|
|
4339
4166
|
|
|
4340
4167
|
// src/components/surfaces/FixedFooter/index.js
|
|
4341
|
-
import
|
|
4342
|
-
import { Box as
|
|
4343
|
-
import
|
|
4344
|
-
import { makeStyles as
|
|
4345
|
-
import { jsx as
|
|
4168
|
+
import React64 from "react";
|
|
4169
|
+
import { Box as Box16 } from "@mui/material";
|
|
4170
|
+
import PropTypes6 from "prop-types";
|
|
4171
|
+
import { makeStyles as makeStyles23 } from "tss-react/mui";
|
|
4172
|
+
import { jsx as jsx78, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
4346
4173
|
var footerHeight = "64px";
|
|
4347
|
-
var
|
|
4174
|
+
var useStyles23 = makeStyles23()((theme) => ({
|
|
4348
4175
|
root: {
|
|
4349
4176
|
position: "fixed",
|
|
4350
4177
|
bottom: 0,
|
|
@@ -4362,11 +4189,11 @@ var useStyles25 = makeStyles25()((theme) => ({
|
|
|
4362
4189
|
}
|
|
4363
4190
|
}));
|
|
4364
4191
|
var FixedFooter = ({ justifyContent, children }) => {
|
|
4365
|
-
const { classes } =
|
|
4366
|
-
return /* @__PURE__ */
|
|
4367
|
-
/* @__PURE__ */
|
|
4368
|
-
/* @__PURE__ */
|
|
4369
|
-
|
|
4192
|
+
const { classes } = useStyles23();
|
|
4193
|
+
return /* @__PURE__ */ jsxs48(Box16, { children: [
|
|
4194
|
+
/* @__PURE__ */ jsx78(Box16, { className: classes.fixedOffset }),
|
|
4195
|
+
/* @__PURE__ */ jsx78(
|
|
4196
|
+
Box16,
|
|
4370
4197
|
{
|
|
4371
4198
|
className: classes.root,
|
|
4372
4199
|
sx: {
|
|
@@ -4378,21 +4205,21 @@ var FixedFooter = ({ justifyContent, children }) => {
|
|
|
4378
4205
|
] });
|
|
4379
4206
|
};
|
|
4380
4207
|
FixedFooter.propTypes = {
|
|
4381
|
-
children:
|
|
4382
|
-
justifyContent:
|
|
4208
|
+
children: PropTypes6.node.isRequired,
|
|
4209
|
+
justifyContent: PropTypes6.string
|
|
4383
4210
|
};
|
|
4384
|
-
var FixedFooter_default =
|
|
4211
|
+
var FixedFooter_default = React64.memo(FixedFooter);
|
|
4385
4212
|
|
|
4386
4213
|
// src/components/Table/SmartTableHeader.js
|
|
4387
|
-
import
|
|
4214
|
+
import React65 from "react";
|
|
4388
4215
|
import TableCell from "@mui/material/TableCell";
|
|
4389
4216
|
import TableHead from "@mui/material/TableHead";
|
|
4390
4217
|
import TableRow from "@mui/material/TableRow";
|
|
4391
4218
|
import TableSortLabel from "@mui/material/TableSortLabel";
|
|
4392
|
-
import
|
|
4393
|
-
import { makeStyles as
|
|
4394
|
-
import { jsx as
|
|
4395
|
-
var
|
|
4219
|
+
import PropTypes7 from "prop-types";
|
|
4220
|
+
import { makeStyles as makeStyles24 } from "tss-react/mui";
|
|
4221
|
+
import { jsx as jsx79, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
4222
|
+
var useStyles24 = makeStyles24()(() => ({
|
|
4396
4223
|
root: {
|
|
4397
4224
|
backgroundColor: colors.background,
|
|
4398
4225
|
"& .MuiTableSortLabel-root": {
|
|
@@ -4420,18 +4247,18 @@ var useStyles26 = makeStyles26()(() => ({
|
|
|
4420
4247
|
}
|
|
4421
4248
|
}));
|
|
4422
4249
|
var SmartTableHeader = (props) => {
|
|
4423
|
-
const { classes } =
|
|
4250
|
+
const { classes } = useStyles24();
|
|
4424
4251
|
const { order, orderBy, onRequestSort } = props;
|
|
4425
4252
|
const createSortHandler = (property) => (event) => {
|
|
4426
4253
|
onRequestSort(event, property);
|
|
4427
4254
|
};
|
|
4428
|
-
return /* @__PURE__ */
|
|
4255
|
+
return /* @__PURE__ */ jsx79(TableHead, { className: classes.root, children: /* @__PURE__ */ jsx79(TableRow, { children: props.headCells.map((headCell) => /* @__PURE__ */ jsx79(
|
|
4429
4256
|
TableCell,
|
|
4430
4257
|
{
|
|
4431
4258
|
className: classes.containerTh,
|
|
4432
4259
|
align: "left",
|
|
4433
4260
|
sortDirection: orderBy === headCell.id ? order : false,
|
|
4434
|
-
children: /* @__PURE__ */
|
|
4261
|
+
children: /* @__PURE__ */ jsxs49(
|
|
4435
4262
|
TableSortLabel,
|
|
4436
4263
|
{
|
|
4437
4264
|
active: orderBy === headCell.id,
|
|
@@ -4439,7 +4266,7 @@ var SmartTableHeader = (props) => {
|
|
|
4439
4266
|
onClick: createSortHandler(headCell.id),
|
|
4440
4267
|
children: [
|
|
4441
4268
|
headCell.label,
|
|
4442
|
-
orderBy === headCell.id ? /* @__PURE__ */
|
|
4269
|
+
orderBy === headCell.id ? /* @__PURE__ */ jsx79("span", { className: classes.visuallyHidden, children: order === "desc" ? "sorted descending" : "sorted ascending" }) : null
|
|
4443
4270
|
]
|
|
4444
4271
|
}
|
|
4445
4272
|
)
|
|
@@ -4448,12 +4275,12 @@ var SmartTableHeader = (props) => {
|
|
|
4448
4275
|
)) }) });
|
|
4449
4276
|
};
|
|
4450
4277
|
SmartTableHeader.propTypes = {
|
|
4451
|
-
order:
|
|
4452
|
-
orderBy:
|
|
4453
|
-
onRequestSort:
|
|
4454
|
-
headCells:
|
|
4278
|
+
order: PropTypes7.string,
|
|
4279
|
+
orderBy: PropTypes7.string,
|
|
4280
|
+
onRequestSort: PropTypes7.func,
|
|
4281
|
+
headCells: PropTypes7.any
|
|
4455
4282
|
};
|
|
4456
|
-
var SmartTableHeader_default =
|
|
4283
|
+
var SmartTableHeader_default = React65.memo(SmartTableHeader);
|
|
4457
4284
|
|
|
4458
4285
|
// src/components/Table/TableDesktop.tsx
|
|
4459
4286
|
import { useState as useState5 } from "react";
|
|
@@ -4464,13 +4291,13 @@ import {
|
|
|
4464
4291
|
TableContainer,
|
|
4465
4292
|
Skeleton
|
|
4466
4293
|
} from "@mui/material";
|
|
4467
|
-
import { makeStyles as
|
|
4294
|
+
import { makeStyles as makeStyles26 } from "tss-react/mui";
|
|
4468
4295
|
|
|
4469
4296
|
// src/components/Table/TableEmptyResult.tsx
|
|
4470
4297
|
import { TableCell as TableCell2, TableRow as TableRow2, Typography as Typography13 } from "@mui/material";
|
|
4471
|
-
import { makeStyles as
|
|
4472
|
-
import { jsx as
|
|
4473
|
-
var
|
|
4298
|
+
import { makeStyles as makeStyles25 } from "tss-react/mui";
|
|
4299
|
+
import { jsx as jsx80, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
4300
|
+
var useStyles25 = makeStyles25()(() => ({
|
|
4474
4301
|
tableCellIcon: { padding: 24, height: "calc(100vh - 320px)" },
|
|
4475
4302
|
tableCellDefault: { padding: 24 }
|
|
4476
4303
|
}));
|
|
@@ -4479,12 +4306,12 @@ var TableEmptyResult = ({
|
|
|
4479
4306
|
handleClickOnClearFiltersButton = () => {
|
|
4480
4307
|
}
|
|
4481
4308
|
}) => {
|
|
4482
|
-
const { classes } =
|
|
4483
|
-
return showClearFilterButton ? /* @__PURE__ */
|
|
4484
|
-
/* @__PURE__ */
|
|
4485
|
-
/* @__PURE__ */
|
|
4486
|
-
/* @__PURE__ */
|
|
4487
|
-
/* @__PURE__ */
|
|
4309
|
+
const { classes } = useStyles25();
|
|
4310
|
+
return showClearFilterButton ? /* @__PURE__ */ jsx80(TableRow2, { children: /* @__PURE__ */ jsxs50(TableCell2, { className: classes.tableCellIcon, colSpan: 8, align: "center", children: [
|
|
4311
|
+
/* @__PURE__ */ jsx80(EmptyGlassIcon_default, {}),
|
|
4312
|
+
/* @__PURE__ */ jsx80(Typography13, { variant: "h6", children: "No results found." }),
|
|
4313
|
+
/* @__PURE__ */ jsx80(Typography13, { variant: "subtitle1", children: "Search without applied filters?" }),
|
|
4314
|
+
/* @__PURE__ */ jsx80(
|
|
4488
4315
|
FilledButton_default,
|
|
4489
4316
|
{
|
|
4490
4317
|
copy: "Search",
|
|
@@ -4493,7 +4320,7 @@ var TableEmptyResult = ({
|
|
|
4493
4320
|
onClick: handleClickOnClearFiltersButton
|
|
4494
4321
|
}
|
|
4495
4322
|
)
|
|
4496
|
-
] }) }) : /* @__PURE__ */
|
|
4323
|
+
] }) }) : /* @__PURE__ */ jsx80(TableRow2, { children: /* @__PURE__ */ jsx80(
|
|
4497
4324
|
TableCell2,
|
|
4498
4325
|
{
|
|
4499
4326
|
className: classes.tableCellDefault,
|
|
@@ -4506,8 +4333,8 @@ var TableEmptyResult = ({
|
|
|
4506
4333
|
var TableEmptyResult_default = TableEmptyResult;
|
|
4507
4334
|
|
|
4508
4335
|
// src/components/Table/TableDesktop.tsx
|
|
4509
|
-
import { Fragment as Fragment5, jsx as
|
|
4510
|
-
var
|
|
4336
|
+
import { Fragment as Fragment5, jsx as jsx81, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
4337
|
+
var useStyles26 = makeStyles26()(() => ({
|
|
4511
4338
|
root: {
|
|
4512
4339
|
justifyContent: "space-between",
|
|
4513
4340
|
display: "flex",
|
|
@@ -4559,7 +4386,7 @@ var TableDesktop = ({
|
|
|
4559
4386
|
appliedFilters?.sortField || "delivery_date"
|
|
4560
4387
|
);
|
|
4561
4388
|
const [page] = useState5(0);
|
|
4562
|
-
const { classes } =
|
|
4389
|
+
const { classes } = useStyles26();
|
|
4563
4390
|
const rowHeight = 56;
|
|
4564
4391
|
const handleRequestSort = (event, property) => {
|
|
4565
4392
|
const isAsc = orderBy === property && order === "asc";
|
|
@@ -4569,7 +4396,7 @@ var TableDesktop = ({
|
|
|
4569
4396
|
updateSort(property, orderDir);
|
|
4570
4397
|
};
|
|
4571
4398
|
const emptyRows = rowsPerPage - data.length;
|
|
4572
|
-
return /* @__PURE__ */
|
|
4399
|
+
return /* @__PURE__ */ jsx81("div", { className: classes.root, style: { height }, children: /* @__PURE__ */ jsx81(Paper7, { className: classes.paper, children: isLoading ? /* @__PURE__ */ jsx81("div", { children: [...Array(Math.floor(rowsPerPage))].map(() => /* @__PURE__ */ jsx81(
|
|
4573
4400
|
Skeleton,
|
|
4574
4401
|
{
|
|
4575
4402
|
animation: "pulse",
|
|
@@ -4578,15 +4405,15 @@ var TableDesktop = ({
|
|
|
4578
4405
|
height: rowHeight
|
|
4579
4406
|
},
|
|
4580
4407
|
Math.random()
|
|
4581
|
-
)) }) : /* @__PURE__ */
|
|
4582
|
-
/* @__PURE__ */
|
|
4408
|
+
)) }) : /* @__PURE__ */ jsxs51(Fragment5, { children: [
|
|
4409
|
+
/* @__PURE__ */ jsx81(TableContainer, { className: classes.container, children: /* @__PURE__ */ jsxs51(
|
|
4583
4410
|
Table,
|
|
4584
4411
|
{
|
|
4585
4412
|
"aria-labelledby": "tableTitle",
|
|
4586
4413
|
"aria-label": "sticky table",
|
|
4587
4414
|
stickyHeader: true,
|
|
4588
4415
|
children: [
|
|
4589
|
-
/* @__PURE__ */
|
|
4416
|
+
/* @__PURE__ */ jsx81(
|
|
4590
4417
|
SmartTableHeader_default,
|
|
4591
4418
|
{
|
|
4592
4419
|
headCells,
|
|
@@ -4595,15 +4422,15 @@ var TableDesktop = ({
|
|
|
4595
4422
|
onRequestSort: handleRequestSort
|
|
4596
4423
|
}
|
|
4597
4424
|
),
|
|
4598
|
-
/* @__PURE__ */
|
|
4599
|
-
stableSort(data, getSorting(order, orderBy)).slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map((item, index) => /* @__PURE__ */
|
|
4425
|
+
/* @__PURE__ */ jsxs51(TableBody, { children: [
|
|
4426
|
+
stableSort(data, getSorting(order, orderBy)).slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map((item, index) => /* @__PURE__ */ jsx81(
|
|
4600
4427
|
RenderItem,
|
|
4601
4428
|
{
|
|
4602
4429
|
...{ ...item, index, deleteItem }
|
|
4603
4430
|
},
|
|
4604
4431
|
item[keyField]
|
|
4605
4432
|
)),
|
|
4606
|
-
rowsPerPage === emptyRows && /* @__PURE__ */
|
|
4433
|
+
rowsPerPage === emptyRows && /* @__PURE__ */ jsx81(
|
|
4607
4434
|
TableEmptyResult_default,
|
|
4608
4435
|
{
|
|
4609
4436
|
showClearFilterButton,
|
|
@@ -4623,10 +4450,10 @@ var TableDesktop_default = TableDesktop;
|
|
|
4623
4450
|
import { memo as memo4, useEffect as useEffect4, useState as useState6 } from "react";
|
|
4624
4451
|
import ImportExportIcon from "@mui/icons-material/ImportExport";
|
|
4625
4452
|
import { TableCell as TableCell3, TableHead as TableHead2, TableRow as TableRow3, TableSortLabel as TableSortLabel2 } from "@mui/material";
|
|
4626
|
-
import { arrayOf as arrayOf2, bool as
|
|
4627
|
-
import { makeStyles as
|
|
4628
|
-
import { jsx as
|
|
4629
|
-
var
|
|
4453
|
+
import { arrayOf as arrayOf2, bool as bool4, func as func5, oneOf as oneOf6, shape as shape3, string as string7 } from "prop-types";
|
|
4454
|
+
import { makeStyles as makeStyles27 } from "tss-react/mui";
|
|
4455
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
4456
|
+
var useStyles27 = makeStyles27()(() => ({
|
|
4630
4457
|
sortLabel: {
|
|
4631
4458
|
"& .MuiTableSortLabel-icon": {
|
|
4632
4459
|
opacity: 1
|
|
@@ -4635,7 +4462,7 @@ var useStyles29 = makeStyles29()(() => ({
|
|
|
4635
4462
|
}));
|
|
4636
4463
|
var TableHeader = ({ cells, onSort }) => {
|
|
4637
4464
|
const [sortableCells, setSortableCells] = useState6([]);
|
|
4638
|
-
const { classes } =
|
|
4465
|
+
const { classes } = useStyles27();
|
|
4639
4466
|
useEffect4(() => {
|
|
4640
4467
|
setSortableCells(cells);
|
|
4641
4468
|
}, []);
|
|
@@ -4670,7 +4497,7 @@ var TableHeader = ({ cells, onSort }) => {
|
|
|
4670
4497
|
});
|
|
4671
4498
|
setSortableCells(sortedCells);
|
|
4672
4499
|
};
|
|
4673
|
-
return /* @__PURE__ */
|
|
4500
|
+
return /* @__PURE__ */ jsx82(TableHead2, { children: /* @__PURE__ */ jsx82(TableRow3, { children: sortableCells.map((cell, key) => /* @__PURE__ */ jsx82(TableCell3, { children: cell.isSortable ? /* @__PURE__ */ jsx82(
|
|
4674
4501
|
TableSortLabel2,
|
|
4675
4502
|
{
|
|
4676
4503
|
className: classes.sortLabel,
|
|
@@ -4687,15 +4514,85 @@ TableHeader.defaultProps = {
|
|
|
4687
4514
|
TableHeader.propTypes = {
|
|
4688
4515
|
cells: arrayOf2(
|
|
4689
4516
|
shape3({
|
|
4690
|
-
direction:
|
|
4691
|
-
isSortable:
|
|
4692
|
-
label:
|
|
4693
|
-
name:
|
|
4517
|
+
direction: oneOf6(["asc", "desc", ""]),
|
|
4518
|
+
isSortable: bool4,
|
|
4519
|
+
label: string7,
|
|
4520
|
+
name: string7
|
|
4694
4521
|
})
|
|
4695
4522
|
).isRequired,
|
|
4696
|
-
onSort:
|
|
4523
|
+
onSort: func5
|
|
4697
4524
|
};
|
|
4698
4525
|
var TableHeader_default = memo4(TableHeader);
|
|
4526
|
+
|
|
4527
|
+
// src/components/TheToolbar/TheToolbar.tsx
|
|
4528
|
+
import React68 from "react";
|
|
4529
|
+
import { AppBar as AppBar2, Box as Box17, Toolbar as Toolbar2 } from "@mui/material";
|
|
4530
|
+
import { makeStyles as makeStyles28 } from "tss-react/mui";
|
|
4531
|
+
import { jsx as jsx83, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
4532
|
+
var useStyles28 = makeStyles28()((theme) => ({
|
|
4533
|
+
menuButton: {
|
|
4534
|
+
color: theme.palette.primary.contrastText
|
|
4535
|
+
},
|
|
4536
|
+
searchNatoora: {
|
|
4537
|
+
width: "100%"
|
|
4538
|
+
},
|
|
4539
|
+
searchIcon: {
|
|
4540
|
+
opacity: ".5"
|
|
4541
|
+
},
|
|
4542
|
+
inputRoot: {
|
|
4543
|
+
color: "inherit"
|
|
4544
|
+
},
|
|
4545
|
+
inputInput: {
|
|
4546
|
+
transition: theme.transitions.create("width"),
|
|
4547
|
+
width: "100%"
|
|
4548
|
+
},
|
|
4549
|
+
topBar: {
|
|
4550
|
+
display: "flex",
|
|
4551
|
+
gap: theme.spacing(1),
|
|
4552
|
+
backgroundColor: colors.topBar
|
|
4553
|
+
},
|
|
4554
|
+
drawer: {
|
|
4555
|
+
backgroundColor: "black"
|
|
4556
|
+
},
|
|
4557
|
+
drawerItem: {
|
|
4558
|
+
maxWidth: "300px",
|
|
4559
|
+
width: "80vw"
|
|
4560
|
+
},
|
|
4561
|
+
offset: theme.mixins.toolbar
|
|
4562
|
+
}));
|
|
4563
|
+
var TheToolbar = ({
|
|
4564
|
+
imageLogoDarkSmall,
|
|
4565
|
+
imageLogoLightSmall,
|
|
4566
|
+
handleOpen,
|
|
4567
|
+
LeftDrawer: LeftDrawer2
|
|
4568
|
+
}) => {
|
|
4569
|
+
const { classes } = useStyles28();
|
|
4570
|
+
return /* @__PURE__ */ jsxs52(Box17, { children: [
|
|
4571
|
+
/* @__PURE__ */ jsx83(AppBar2, { children: /* @__PURE__ */ jsxs52(Toolbar2, { className: classes.topBar, children: [
|
|
4572
|
+
/* @__PURE__ */ jsx83(
|
|
4573
|
+
RoundButton_default,
|
|
4574
|
+
{
|
|
4575
|
+
className: classes.menuButton,
|
|
4576
|
+
icon: "menu",
|
|
4577
|
+
noStrokes: true,
|
|
4578
|
+
onClick: handleOpen
|
|
4579
|
+
}
|
|
4580
|
+
),
|
|
4581
|
+
/* @__PURE__ */ jsx83(
|
|
4582
|
+
CompanyLogo_default,
|
|
4583
|
+
{
|
|
4584
|
+
size: "small",
|
|
4585
|
+
color: "light",
|
|
4586
|
+
imageLogoDarkSmall,
|
|
4587
|
+
imageLogoLightSmall
|
|
4588
|
+
}
|
|
4589
|
+
)
|
|
4590
|
+
] }) }),
|
|
4591
|
+
/* @__PURE__ */ jsx83(Box17, { className: classes.offset }),
|
|
4592
|
+
LeftDrawer2
|
|
4593
|
+
] });
|
|
4594
|
+
};
|
|
4595
|
+
var TheToolbar_default = React68.memo(TheToolbar);
|
|
4699
4596
|
export {
|
|
4700
4597
|
AlertDialog_default as AlertDialog,
|
|
4701
4598
|
AlertDialogFullScreen_default as AlertDialogFullScreen,
|
|
@@ -4707,7 +4604,6 @@ export {
|
|
|
4707
4604
|
Date_default as Date,
|
|
4708
4605
|
DeleteSubstitutionDialogContent_default as DeleteSubstitutionDialogContent,
|
|
4709
4606
|
DeleteUserDialogContent_default as DeleteUserDialogContent,
|
|
4710
|
-
DesktopContainer_default as DesktopContainer,
|
|
4711
4607
|
ExtendedButton_default as ExtendedButton,
|
|
4712
4608
|
FilledButton_default as FilledButton,
|
|
4713
4609
|
FilledButtonLg_default as FilledButtonLg,
|