@natoora-libs/core 0.0.33 → 0.0.35
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/{chunk-RHG2EMI3.js → chunk-TZJCFK33.js} +2 -2
- package/dist/chunk-TZJCFK33.js.map +1 -0
- package/dist/components/index.cjs +657 -778
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +543 -663
- package/dist/components/index.js.map +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/providers/index.cjs +3 -3
- package/dist/providers/index.cjs.map +1 -1
- package/dist/providers/index.js +3 -3
- package/dist/providers/index.js.map +1 -1
- package/package.json +17 -24
- package/dist/chunk-RHG2EMI3.js.map +0 -1
- package/dist/components/index.d.cts +0 -659
- package/dist/components/index.d.ts +0 -659
- package/dist/hooks/index.d.cts +0 -7
- package/dist/hooks/index.d.ts +0 -7
- package/dist/index.d.cts +0 -3
- package/dist/index.d.ts +0 -3
- package/dist/providers/index.d.cts +0 -49
- package/dist/providers/index.d.ts +0 -49
|
@@ -39,7 +39,6 @@ __export(components_exports, {
|
|
|
39
39
|
Date: () => Date_default,
|
|
40
40
|
DeleteSubstitutionDialogContent: () => DeleteSubstitutionDialogContent_default,
|
|
41
41
|
DeleteUserDialogContent: () => DeleteUserDialogContent_default,
|
|
42
|
-
DesktopContainer: () => DesktopContainer_default,
|
|
43
42
|
ExtendedButton: () => ExtendedButton_default,
|
|
44
43
|
FilledButton: () => FilledButton_default,
|
|
45
44
|
FilledButtonLg: () => FilledButtonLg_default,
|
|
@@ -400,7 +399,7 @@ var BackHeader_default = BackHeader;
|
|
|
400
399
|
|
|
401
400
|
// src/components/BottomBar/BottomBar.tsx
|
|
402
401
|
var import_material6 = require("@mui/material");
|
|
403
|
-
var
|
|
402
|
+
var import_prop_types2 = require("prop-types");
|
|
404
403
|
var import_mui5 = require("tss-react/mui");
|
|
405
404
|
|
|
406
405
|
// src/components/Buttons/ExtendedButton/ExtendedButton.tsx
|
|
@@ -410,7 +409,6 @@ var import_Apps = __toESM(require("@mui/icons-material/Apps"), 1);
|
|
|
410
409
|
var import_material5 = require("@mui/material");
|
|
411
410
|
var import_Button = __toESM(require("@mui/material/Button"), 1);
|
|
412
411
|
var import_Tooltip = __toESM(require("@mui/material/Tooltip"), 1);
|
|
413
|
-
var import_prop_types2 = require("prop-types");
|
|
414
412
|
var import_mui4 = require("tss-react/mui");
|
|
415
413
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
416
414
|
var useStyles4 = (0, import_mui4.makeStyles)()((theme) => ({
|
|
@@ -474,18 +472,18 @@ var useStyles4 = (0, import_mui4.makeStyles)()((theme) => ({
|
|
|
474
472
|
}
|
|
475
473
|
}));
|
|
476
474
|
var ExtendedButton = ({
|
|
477
|
-
buttonType,
|
|
475
|
+
buttonType = "button",
|
|
478
476
|
className,
|
|
479
|
-
color,
|
|
477
|
+
color = "default",
|
|
480
478
|
copy,
|
|
481
|
-
disabled,
|
|
482
|
-
href,
|
|
483
|
-
onClick,
|
|
484
|
-
subcopy,
|
|
485
|
-
type,
|
|
486
|
-
variant,
|
|
487
|
-
component,
|
|
488
|
-
tooltip
|
|
479
|
+
disabled = false,
|
|
480
|
+
href = "",
|
|
481
|
+
onClick = void 0,
|
|
482
|
+
subcopy = void 0,
|
|
483
|
+
type = void 0,
|
|
484
|
+
variant = "outlined",
|
|
485
|
+
component = "button",
|
|
486
|
+
tooltip = ""
|
|
489
487
|
}) => {
|
|
490
488
|
const { classes, cx } = useStyles4();
|
|
491
489
|
const icons2 = {
|
|
@@ -503,12 +501,13 @@ var ExtendedButton = ({
|
|
|
503
501
|
download: import_icons_material.GetApp,
|
|
504
502
|
publish: import_icons_material.Publish
|
|
505
503
|
};
|
|
506
|
-
const
|
|
504
|
+
const muiColor = color === "noOutline" || color === "default" ? void 0 : color;
|
|
505
|
+
const IconComponent = type ? icons2[type] : null;
|
|
507
506
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_Tooltip.default, { title: tooltip, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material5.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
508
507
|
import_Button.default,
|
|
509
508
|
{
|
|
510
509
|
className: cx(classes[color], className),
|
|
511
|
-
color:
|
|
510
|
+
color: muiColor,
|
|
512
511
|
component,
|
|
513
512
|
"data-testid": copy ? `extended-button-${copy.toLowerCase()}` : "extended-button",
|
|
514
513
|
disabled,
|
|
@@ -517,7 +516,7 @@ var ExtendedButton = ({
|
|
|
517
516
|
type: buttonType,
|
|
518
517
|
variant,
|
|
519
518
|
children: [
|
|
520
|
-
|
|
519
|
+
IconComponent && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(IconComponent, { fontSize: "small", className: classes.icon }),
|
|
521
520
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: classes.copy, children: [
|
|
522
521
|
copy,
|
|
523
522
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { children: subcopy })
|
|
@@ -526,47 +525,6 @@ var ExtendedButton = ({
|
|
|
526
525
|
}
|
|
527
526
|
) }) });
|
|
528
527
|
};
|
|
529
|
-
ExtendedButton.defaultProps = {
|
|
530
|
-
buttonType: "button",
|
|
531
|
-
color: "default",
|
|
532
|
-
disabled: false,
|
|
533
|
-
href: "",
|
|
534
|
-
tooltip: "",
|
|
535
|
-
component: "button",
|
|
536
|
-
type: void 0,
|
|
537
|
-
className: void 0,
|
|
538
|
-
onClick: void 0,
|
|
539
|
-
subcopy: void 0,
|
|
540
|
-
variant: "outlined"
|
|
541
|
-
};
|
|
542
|
-
ExtendedButton.propTypes = {
|
|
543
|
-
buttonType: (0, import_prop_types2.oneOf)(["button", "submit"]),
|
|
544
|
-
className: import_prop_types2.string,
|
|
545
|
-
color: (0, import_prop_types2.oneOf)(["default", "inherit", "primary", "secondary", "noOutline"]),
|
|
546
|
-
copy: import_prop_types2.string.isRequired,
|
|
547
|
-
disabled: import_prop_types2.bool,
|
|
548
|
-
href: import_prop_types2.string,
|
|
549
|
-
onClick: import_prop_types2.func,
|
|
550
|
-
subcopy: import_prop_types2.string,
|
|
551
|
-
tooltip: import_prop_types2.string,
|
|
552
|
-
component: import_prop_types2.string,
|
|
553
|
-
type: (0, import_prop_types2.oneOf)([
|
|
554
|
-
"add",
|
|
555
|
-
"apps",
|
|
556
|
-
"childCare",
|
|
557
|
-
"delete",
|
|
558
|
-
"edit",
|
|
559
|
-
"importExport",
|
|
560
|
-
"notes",
|
|
561
|
-
"print",
|
|
562
|
-
"save",
|
|
563
|
-
"upload",
|
|
564
|
-
"refresh",
|
|
565
|
-
"download",
|
|
566
|
-
"publish"
|
|
567
|
-
]),
|
|
568
|
-
variant: (0, import_prop_types2.oneOf)(["contained", "outlined", "text"])
|
|
569
|
-
};
|
|
570
528
|
var ExtendedButton_default = (0, import_react2.memo)(ExtendedButton);
|
|
571
529
|
|
|
572
530
|
// src/components/BottomBar/BottomBar.tsx
|
|
@@ -620,10 +578,10 @@ BottomBar.defaultProps = {
|
|
|
620
578
|
onRefreshClick: null
|
|
621
579
|
};
|
|
622
580
|
BottomBar.propTypes = {
|
|
623
|
-
className:
|
|
624
|
-
children:
|
|
625
|
-
isLoading:
|
|
626
|
-
onRefreshClick:
|
|
581
|
+
className: import_prop_types2.string,
|
|
582
|
+
children: import_prop_types2.node,
|
|
583
|
+
isLoading: import_prop_types2.bool,
|
|
584
|
+
onRefreshClick: import_prop_types2.func
|
|
627
585
|
};
|
|
628
586
|
var BottomBar_default = BottomBar;
|
|
629
587
|
|
|
@@ -633,7 +591,7 @@ var import_material7 = require("@mui/material");
|
|
|
633
591
|
var import_green = __toESM(require("@mui/material/colors/green"), 1);
|
|
634
592
|
var import_orange = __toESM(require("@mui/material/colors/orange"), 1);
|
|
635
593
|
var import_red = __toESM(require("@mui/material/colors/red"), 1);
|
|
636
|
-
var
|
|
594
|
+
var import_prop_types3 = __toESM(require("prop-types"), 1);
|
|
637
595
|
var import_mui6 = require("tss-react/mui");
|
|
638
596
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
639
597
|
var useStyles6 = (0, import_mui6.makeStyles)()((theme) => ({
|
|
@@ -710,11 +668,11 @@ var BoxButton = (props) => {
|
|
|
710
668
|
);
|
|
711
669
|
};
|
|
712
670
|
BoxButton.propTypes = {
|
|
713
|
-
label:
|
|
714
|
-
onClick:
|
|
715
|
-
main:
|
|
716
|
-
extra:
|
|
717
|
-
borderColor:
|
|
671
|
+
label: import_prop_types3.default.any,
|
|
672
|
+
onClick: import_prop_types3.default.any,
|
|
673
|
+
main: import_prop_types3.default.any,
|
|
674
|
+
extra: import_prop_types3.default.any,
|
|
675
|
+
borderColor: import_prop_types3.default.any
|
|
718
676
|
};
|
|
719
677
|
var BoxButton_default = import_react3.default.memo(BoxButton);
|
|
720
678
|
|
|
@@ -722,7 +680,7 @@ var BoxButton_default = import_react3.default.memo(BoxButton);
|
|
|
722
680
|
var import_react4 = require("react");
|
|
723
681
|
var import_material8 = require("@mui/material");
|
|
724
682
|
var import_Button2 = __toESM(require("@mui/material/Button"), 1);
|
|
725
|
-
var
|
|
683
|
+
var import_prop_types4 = require("prop-types");
|
|
726
684
|
var import_mui7 = require("tss-react/mui");
|
|
727
685
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
728
686
|
var useStyles7 = (0, import_mui7.makeStyles)()((theme) => ({
|
|
@@ -821,9 +779,9 @@ var FilledButton = ({
|
|
|
821
779
|
);
|
|
822
780
|
};
|
|
823
781
|
FilledButton.propTypes = {
|
|
824
|
-
autoFocus:
|
|
825
|
-
className:
|
|
826
|
-
color: (0,
|
|
782
|
+
autoFocus: import_prop_types4.bool,
|
|
783
|
+
className: import_prop_types4.string,
|
|
784
|
+
color: (0, import_prop_types4.oneOf)([
|
|
827
785
|
"default",
|
|
828
786
|
"error",
|
|
829
787
|
"info",
|
|
@@ -833,13 +791,13 @@ FilledButton.propTypes = {
|
|
|
833
791
|
"success",
|
|
834
792
|
"warning"
|
|
835
793
|
]),
|
|
836
|
-
copy:
|
|
837
|
-
isLoading:
|
|
838
|
-
disabled:
|
|
839
|
-
href:
|
|
840
|
-
onClick:
|
|
841
|
-
type: (0,
|
|
842
|
-
variant: (0,
|
|
794
|
+
copy: import_prop_types4.string.isRequired,
|
|
795
|
+
isLoading: import_prop_types4.bool,
|
|
796
|
+
disabled: import_prop_types4.bool,
|
|
797
|
+
href: import_prop_types4.string,
|
|
798
|
+
onClick: import_prop_types4.func,
|
|
799
|
+
type: (0, import_prop_types4.oneOf)(["button", "submit"]),
|
|
800
|
+
variant: (0, import_prop_types4.oneOf)(["contained", "outlined", "text"])
|
|
843
801
|
};
|
|
844
802
|
var FilledButton_default = (0, import_react4.memo)(FilledButton);
|
|
845
803
|
|
|
@@ -847,7 +805,7 @@ var FilledButton_default = (0, import_react4.memo)(FilledButton);
|
|
|
847
805
|
var import_react5 = __toESM(require("react"), 1);
|
|
848
806
|
var import_material9 = require("@mui/material");
|
|
849
807
|
var import_Button3 = __toESM(require("@mui/material/Button"), 1);
|
|
850
|
-
var
|
|
808
|
+
var import_prop_types5 = __toESM(require("prop-types"), 1);
|
|
851
809
|
var import_mui8 = require("tss-react/mui");
|
|
852
810
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
853
811
|
var FilledButtonLg = ({
|
|
@@ -879,9 +837,9 @@ var FilledButtonLg = ({
|
|
|
879
837
|
loading && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
880
838
|
import_material9.CircularProgress,
|
|
881
839
|
{
|
|
882
|
-
color:
|
|
883
|
-
size:
|
|
884
|
-
style: { marginLeft: "15px", ...loadingProps
|
|
840
|
+
color: loadingProps?.color || "inherit",
|
|
841
|
+
size: loadingProps?.size || 22,
|
|
842
|
+
style: { marginLeft: "15px", ...loadingProps?.style }
|
|
885
843
|
}
|
|
886
844
|
)
|
|
887
845
|
]
|
|
@@ -951,17 +909,17 @@ var ActionButtonLg = (0, import_mui8.withStyles)(FilledButtonLg, (theme) => ({
|
|
|
951
909
|
}
|
|
952
910
|
}));
|
|
953
911
|
FilledButtonLg.propTypes = {
|
|
954
|
-
classes:
|
|
955
|
-
disabled:
|
|
956
|
-
variant:
|
|
957
|
-
color:
|
|
958
|
-
copy:
|
|
959
|
-
handleClick:
|
|
960
|
-
loading:
|
|
961
|
-
loadingProps:
|
|
962
|
-
color:
|
|
963
|
-
size:
|
|
964
|
-
style:
|
|
912
|
+
classes: import_prop_types5.default.any,
|
|
913
|
+
disabled: import_prop_types5.default.any,
|
|
914
|
+
variant: import_prop_types5.default.string,
|
|
915
|
+
color: import_prop_types5.default.string,
|
|
916
|
+
copy: import_prop_types5.default.any,
|
|
917
|
+
handleClick: import_prop_types5.default.any,
|
|
918
|
+
loading: import_prop_types5.default.bool,
|
|
919
|
+
loadingProps: import_prop_types5.default.shape({
|
|
920
|
+
color: import_prop_types5.default.oneOf(["primary", "secondary", "inherit"]),
|
|
921
|
+
size: import_prop_types5.default.number,
|
|
922
|
+
style: import_prop_types5.default.string
|
|
965
923
|
})
|
|
966
924
|
};
|
|
967
925
|
var FilledButtonLg_default = import_react5.default.memo(ActionButtonLg);
|
|
@@ -970,7 +928,7 @@ var FilledButtonLg_default = import_react5.default.memo(ActionButtonLg);
|
|
|
970
928
|
var import_react6 = __toESM(require("react"), 1);
|
|
971
929
|
var import_Button4 = __toESM(require("@mui/material/Button"), 1);
|
|
972
930
|
var import_CircularProgress = __toESM(require("@mui/material/CircularProgress"), 1);
|
|
973
|
-
var
|
|
931
|
+
var import_prop_types6 = require("prop-types");
|
|
974
932
|
var import_mui9 = require("tss-react/mui");
|
|
975
933
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
976
934
|
var useStyles8 = (0, import_mui9.makeStyles)()((theme) => ({
|
|
@@ -1090,17 +1048,17 @@ var OutlinedButton = ({
|
|
|
1090
1048
|
);
|
|
1091
1049
|
};
|
|
1092
1050
|
OutlinedButton.propTypes = {
|
|
1093
|
-
className:
|
|
1094
|
-
color:
|
|
1095
|
-
copy: (0,
|
|
1096
|
-
disabled:
|
|
1097
|
-
href:
|
|
1098
|
-
isLoading:
|
|
1099
|
-
onClick:
|
|
1100
|
-
startIcon:
|
|
1101
|
-
style: (0,
|
|
1102
|
-
subcopy:
|
|
1103
|
-
type: (0,
|
|
1051
|
+
className: import_prop_types6.string,
|
|
1052
|
+
color: import_prop_types6.string,
|
|
1053
|
+
copy: (0, import_prop_types6.oneOfType)([import_prop_types6.number, import_prop_types6.string]).isRequired,
|
|
1054
|
+
disabled: import_prop_types6.bool,
|
|
1055
|
+
href: import_prop_types6.string,
|
|
1056
|
+
isLoading: import_prop_types6.bool,
|
|
1057
|
+
onClick: import_prop_types6.func,
|
|
1058
|
+
startIcon: import_prop_types6.node,
|
|
1059
|
+
style: (0, import_prop_types6.shape)({}),
|
|
1060
|
+
subcopy: import_prop_types6.string,
|
|
1061
|
+
type: (0, import_prop_types6.oneOf)(["button", "submit"])
|
|
1104
1062
|
};
|
|
1105
1063
|
var OutlinedButton_default = import_react6.default.memo(OutlinedButton);
|
|
1106
1064
|
|
|
@@ -2496,7 +2454,7 @@ var RoundButton = ({
|
|
|
2496
2454
|
chevronUp: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_icons_material2.KeyboardArrowUp, { fontSize: iconSize }),
|
|
2497
2455
|
chevronDown: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_icons_material2.KeyboardArrowDown, { fontSize: iconSize }),
|
|
2498
2456
|
close: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_icons_material2.Close, { fontSize: iconSize }),
|
|
2499
|
-
delete: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_icons_material2.Delete, { fontSize: iconSize, fill: colors.
|
|
2457
|
+
delete: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_icons_material2.Delete, { fontSize: iconSize, fill: colors.neutral800 }),
|
|
2500
2458
|
done: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_icons_material2.Done, { fontSize: iconSize }),
|
|
2501
2459
|
edit: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_icons_material2.Edit, { fontSize: iconSize }),
|
|
2502
2460
|
email: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_icons_material2.Email, { fontSize: iconSize }),
|
|
@@ -2612,7 +2570,7 @@ var defaultTheme = (0, import_styles.createTheme)({
|
|
|
2612
2570
|
mode: isDarkModeEnabled3 ? "dark" : "light",
|
|
2613
2571
|
default: {
|
|
2614
2572
|
main: colors.grey650,
|
|
2615
|
-
background: colors.
|
|
2573
|
+
background: colors.neutral100
|
|
2616
2574
|
},
|
|
2617
2575
|
primary: {
|
|
2618
2576
|
main: colors.muiPrimary,
|
|
@@ -2789,55 +2747,156 @@ var DeleteUserDialogContent = ({
|
|
|
2789
2747
|
};
|
|
2790
2748
|
var DeleteUserDialogContent_default = import_react53.default.memo(DeleteUserDialogContent);
|
|
2791
2749
|
|
|
2792
|
-
// src/components/
|
|
2793
|
-
var import_material15 = require("@mui/material");
|
|
2794
|
-
var import_mui16 = require("tss-react/mui");
|
|
2795
|
-
|
|
2796
|
-
// src/components/TheToolbar/TheToolbar.tsx
|
|
2797
|
-
var import_react58 = __toESM(require("react"), 1);
|
|
2750
|
+
// src/components/Dialog/TwoButtonDialog.tsx
|
|
2798
2751
|
var import_material14 = require("@mui/material");
|
|
2752
|
+
var import_Fade = __toESM(require("@mui/material/Fade"), 1);
|
|
2799
2753
|
var import_mui15 = require("tss-react/mui");
|
|
2800
2754
|
|
|
2755
|
+
// src/components/Loading/Loading.tsx
|
|
2756
|
+
var import_material13 = require("@mui/material");
|
|
2757
|
+
var import_mui14 = require("tss-react/mui");
|
|
2758
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
2759
|
+
var useStyles13 = (0, import_mui14.makeStyles)()(() => ({
|
|
2760
|
+
wrapper: {
|
|
2761
|
+
/**
|
|
2762
|
+
* MUI Dialogs have z-index = 1300
|
|
2763
|
+
*/
|
|
2764
|
+
zIndex: 1301,
|
|
2765
|
+
backgroundColor: isDarkModeEnabled3 ? "rgba(0, 0, 0, 0.5)" : "rgba(255, 255, 255, 0.8)"
|
|
2766
|
+
}
|
|
2767
|
+
}));
|
|
2768
|
+
var Loading = ({ isLoading = false }) => {
|
|
2769
|
+
const { classes } = useStyles13();
|
|
2770
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
2771
|
+
import_material13.Backdrop,
|
|
2772
|
+
{
|
|
2773
|
+
"aria-hidden": !isLoading,
|
|
2774
|
+
className: classes.wrapper,
|
|
2775
|
+
open: isLoading,
|
|
2776
|
+
"data-testid": "backdrop-loading",
|
|
2777
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_material13.CircularProgress, { color: "primary" })
|
|
2778
|
+
}
|
|
2779
|
+
);
|
|
2780
|
+
};
|
|
2781
|
+
var Loading_default = Loading;
|
|
2782
|
+
|
|
2783
|
+
// src/components/Dialog/TwoButtonDialog.tsx
|
|
2784
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
2785
|
+
var useStyles14 = (0, import_mui15.makeStyles)()((theme) => ({
|
|
2786
|
+
paper: {
|
|
2787
|
+
padding: theme.spacing(2)
|
|
2788
|
+
},
|
|
2789
|
+
mt: {
|
|
2790
|
+
marginTop: theme.spacing(2)
|
|
2791
|
+
},
|
|
2792
|
+
mb: {
|
|
2793
|
+
marginBottom: theme.spacing(2)
|
|
2794
|
+
},
|
|
2795
|
+
buttonContainer: {
|
|
2796
|
+
display: "flex",
|
|
2797
|
+
justifyContent: "center",
|
|
2798
|
+
marginTop: theme.spacing(1)
|
|
2799
|
+
}
|
|
2800
|
+
}));
|
|
2801
|
+
var TwoButtonDialog = ({
|
|
2802
|
+
confirmButton,
|
|
2803
|
+
dialogLoading = false,
|
|
2804
|
+
title,
|
|
2805
|
+
subtitle1,
|
|
2806
|
+
subtitle2,
|
|
2807
|
+
open,
|
|
2808
|
+
setOpen
|
|
2809
|
+
}) => {
|
|
2810
|
+
const { classes } = useStyles14();
|
|
2811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2812
|
+
import_material14.Dialog,
|
|
2813
|
+
{
|
|
2814
|
+
open,
|
|
2815
|
+
disableEnforceFocus: true,
|
|
2816
|
+
maxWidth: "sm",
|
|
2817
|
+
fullWidth: true,
|
|
2818
|
+
closeAfterTransition: true,
|
|
2819
|
+
BackdropComponent: import_material14.Backdrop,
|
|
2820
|
+
BackdropProps: {
|
|
2821
|
+
timeout: 500
|
|
2822
|
+
},
|
|
2823
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_Fade.default, { in: open, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_material14.Paper, { className: classes.paper, children: [
|
|
2824
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_material14.Box, { className: classes.mb, children: [
|
|
2825
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_material14.Typography, { variant: "h5", component: "div", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2826
|
+
import_material14.Box,
|
|
2827
|
+
{
|
|
2828
|
+
sx: {
|
|
2829
|
+
fontWeight: 600
|
|
2830
|
+
},
|
|
2831
|
+
children: title
|
|
2832
|
+
}
|
|
2833
|
+
) }),
|
|
2834
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
|
|
2835
|
+
import_material14.Box,
|
|
2836
|
+
{
|
|
2837
|
+
className: classes.mt,
|
|
2838
|
+
sx: {
|
|
2839
|
+
fontWeight: 600
|
|
2840
|
+
},
|
|
2841
|
+
children: [
|
|
2842
|
+
subtitle1 && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_material14.Typography, { variant: "subtitle1", children: subtitle1 }),
|
|
2843
|
+
subtitle2 && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_material14.Typography, { variant: "subtitle1", children: subtitle2 })
|
|
2844
|
+
]
|
|
2845
|
+
}
|
|
2846
|
+
)
|
|
2847
|
+
] }),
|
|
2848
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_material14.Divider, {}),
|
|
2849
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_material14.Box, { className: classes.buttonContainer, children: [
|
|
2850
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(FilledButton_default, { copy: "CANCEL", onClick: () => setOpen(false) }),
|
|
2851
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
2852
|
+
FilledButton_default,
|
|
2853
|
+
{
|
|
2854
|
+
color: "primary",
|
|
2855
|
+
copy: "CONFIRM",
|
|
2856
|
+
onClick: confirmButton
|
|
2857
|
+
}
|
|
2858
|
+
)
|
|
2859
|
+
] }),
|
|
2860
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Loading_default, { isLoading: dialogLoading })
|
|
2861
|
+
] }) })
|
|
2862
|
+
}
|
|
2863
|
+
);
|
|
2864
|
+
};
|
|
2865
|
+
var TwoButtonDialog_default = TwoButtonDialog;
|
|
2866
|
+
|
|
2801
2867
|
// src/components/LeftDrawer/LeftDrawer.tsx
|
|
2802
2868
|
var import_react57 = __toESM(require("react"), 1);
|
|
2803
|
-
var import_react_redux2 = require("react-redux");
|
|
2804
2869
|
var import_icons_material3 = require("@mui/icons-material");
|
|
2805
|
-
var
|
|
2870
|
+
var import_material15 = require("@mui/material");
|
|
2806
2871
|
var import_Icon = __toESM(require("@mui/material/Icon"), 1);
|
|
2807
|
-
var
|
|
2872
|
+
var import_mui16 = require("tss-react/mui");
|
|
2808
2873
|
|
|
2809
2874
|
// src/components/UserBust/UserBust.tsx
|
|
2810
2875
|
var import_react55 = __toESM(require("react"), 1);
|
|
2811
2876
|
var import_Typography = __toESM(require("@mui/material/Typography"), 1);
|
|
2812
|
-
var import_prop_types9 = __toESM(require("prop-types"), 1);
|
|
2813
2877
|
|
|
2814
2878
|
// src/components/UserAvatar/UserAvatar.tsx
|
|
2815
2879
|
var import_react54 = __toESM(require("react"), 1);
|
|
2816
2880
|
var import_Avatar = __toESM(require("@mui/material/Avatar"), 1);
|
|
2817
|
-
var
|
|
2818
|
-
var
|
|
2819
|
-
var UserAvatar = ({ src, width, height }) => /* @__PURE__ */ (0,
|
|
2881
|
+
var import_prop_types7 = __toESM(require("prop-types"), 1);
|
|
2882
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
2883
|
+
var UserAvatar = ({ src, width, height }) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_Avatar.default, { alt: "user_avatar", src, style: { width, height } });
|
|
2820
2884
|
UserAvatar.propTypes = {
|
|
2821
|
-
src:
|
|
2822
|
-
width:
|
|
2823
|
-
height:
|
|
2885
|
+
src: import_prop_types7.default.any,
|
|
2886
|
+
width: import_prop_types7.default.any,
|
|
2887
|
+
height: import_prop_types7.default.any
|
|
2824
2888
|
};
|
|
2825
2889
|
var UserAvatar_default = import_react54.default.memo(UserAvatar);
|
|
2826
2890
|
|
|
2827
2891
|
// src/components/UserBust/UserBust.tsx
|
|
2828
|
-
var
|
|
2829
|
-
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0,
|
|
2830
|
-
/* @__PURE__ */ (0,
|
|
2831
|
-
/* @__PURE__ */ (0,
|
|
2832
|
-
/* @__PURE__ */ (0,
|
|
2833
|
-
/* @__PURE__ */ (0,
|
|
2892
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
2893
|
+
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { children: [
|
|
2894
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(UserAvatar_default, { ...avatarProps, src: user.profile_picture }),
|
|
2895
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { style: { paddingTop: 16 }, children: [
|
|
2896
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_Typography.default, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
|
|
2897
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_Typography.default, { ...typographyProps.username, children: user.username })
|
|
2834
2898
|
] })
|
|
2835
2899
|
] });
|
|
2836
|
-
UserBust.propTypes = {
|
|
2837
|
-
user: import_prop_types9.default.any,
|
|
2838
|
-
avatarProps: import_prop_types9.default.any,
|
|
2839
|
-
typographyProps: import_prop_types9.default.any
|
|
2840
|
-
};
|
|
2841
2900
|
var UserBust_default = import_react55.default.memo(UserBust);
|
|
2842
2901
|
|
|
2843
2902
|
// src/components/LeftDrawer/helpers/useGetFilteredDrawerAppList.tsx
|
|
@@ -2880,7 +2939,7 @@ var featureName = {
|
|
|
2880
2939
|
var featureName_default = featureName;
|
|
2881
2940
|
|
|
2882
2941
|
// src/components/LeftDrawer/helpers/drawerAppList.js
|
|
2883
|
-
var
|
|
2942
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
2884
2943
|
var drawerAppList = [
|
|
2885
2944
|
{
|
|
2886
2945
|
groupName: "Home",
|
|
@@ -2891,7 +2950,7 @@ var drawerAppList = [
|
|
|
2891
2950
|
alwaysDisplay: true,
|
|
2892
2951
|
featureNames: [],
|
|
2893
2952
|
pinned: null,
|
|
2894
|
-
icon: /* @__PURE__ */ (0,
|
|
2953
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconHome, {}),
|
|
2895
2954
|
url: `/#/`
|
|
2896
2955
|
}
|
|
2897
2956
|
]
|
|
@@ -2905,7 +2964,7 @@ var drawerAppList = [
|
|
|
2905
2964
|
alwaysDisplay: false,
|
|
2906
2965
|
featureNames: [featureName_default.NOTIFICATIONS],
|
|
2907
2966
|
pinned: null,
|
|
2908
|
-
icon: /* @__PURE__ */ (0,
|
|
2967
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconNotification, {}),
|
|
2909
2968
|
url: `/#/notifications`
|
|
2910
2969
|
},
|
|
2911
2970
|
{
|
|
@@ -2914,7 +2973,7 @@ var drawerAppList = [
|
|
|
2914
2973
|
alwaysDisplay: false,
|
|
2915
2974
|
featureNames: [featureName_default.PROMO_CODES],
|
|
2916
2975
|
pinned: null,
|
|
2917
|
-
icon: /* @__PURE__ */ (0,
|
|
2976
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconPromoCode, {}),
|
|
2918
2977
|
url: "/react/promo_codes"
|
|
2919
2978
|
},
|
|
2920
2979
|
{
|
|
@@ -2923,16 +2982,16 @@ var drawerAppList = [
|
|
|
2923
2982
|
alwaysDisplay: false,
|
|
2924
2983
|
featureNames: [featureName_default.SEARCH_CATEGORIES],
|
|
2925
2984
|
pinned: null,
|
|
2926
|
-
icon: /* @__PURE__ */ (0,
|
|
2985
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconSearchCategories, {}),
|
|
2927
2986
|
url: "/react/search-categories"
|
|
2928
2987
|
},
|
|
2929
2988
|
{
|
|
2930
2989
|
name: "Content Management",
|
|
2931
2990
|
routeName: "content-management",
|
|
2932
2991
|
alwaysDisplay: false,
|
|
2933
|
-
featureNames: [
|
|
2992
|
+
featureNames: [featureName_default.CONTENT_MANAGEMENT],
|
|
2934
2993
|
pinned: null,
|
|
2935
|
-
icon: /* @__PURE__ */ (0,
|
|
2994
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconContentManagement, {}),
|
|
2936
2995
|
url: "/react/content-management"
|
|
2937
2996
|
}
|
|
2938
2997
|
]
|
|
@@ -2946,7 +3005,7 @@ var drawerAppList = [
|
|
|
2946
3005
|
alwaysDisplay: false,
|
|
2947
3006
|
featureNames: [featureName_default.AIRCALL],
|
|
2948
3007
|
pinned: "recorded_calls",
|
|
2949
|
-
icon: /* @__PURE__ */ (0,
|
|
3008
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconPhone, {}),
|
|
2950
3009
|
url: "/react/air-call"
|
|
2951
3010
|
},
|
|
2952
3011
|
{
|
|
@@ -2955,7 +3014,7 @@ var drawerAppList = [
|
|
|
2955
3014
|
alwaysDisplay: false,
|
|
2956
3015
|
featureNames: [featureName_default.CUSTOMERS],
|
|
2957
3016
|
pinned: "customers",
|
|
2958
|
-
icon: /* @__PURE__ */ (0,
|
|
3017
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconAccount, {}),
|
|
2959
3018
|
url: `/#/customer-list`,
|
|
2960
3019
|
children: [
|
|
2961
3020
|
{
|
|
@@ -2978,7 +3037,7 @@ var drawerAppList = [
|
|
|
2978
3037
|
alwaysDisplay: false,
|
|
2979
3038
|
featureNames: [featureName_default.ORDERS],
|
|
2980
3039
|
pinned: "orders",
|
|
2981
|
-
icon: /* @__PURE__ */ (0,
|
|
3040
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconOrders, {}),
|
|
2982
3041
|
url: `/#/orders`
|
|
2983
3042
|
},
|
|
2984
3043
|
{
|
|
@@ -2987,7 +3046,7 @@ var drawerAppList = [
|
|
|
2987
3046
|
alwaysDisplay: false,
|
|
2988
3047
|
featureNames: [featureName_default.PRICE_LIST],
|
|
2989
3048
|
pinned: "price_list",
|
|
2990
|
-
icon: /* @__PURE__ */ (0,
|
|
3049
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconPriceList, {}),
|
|
2991
3050
|
url: `/#/price-list`
|
|
2992
3051
|
},
|
|
2993
3052
|
{
|
|
@@ -2996,7 +3055,7 @@ var drawerAppList = [
|
|
|
2996
3055
|
alwaysDisplay: false,
|
|
2997
3056
|
featureNames: [featureName_default.SPECIAL_PRICES],
|
|
2998
3057
|
pinned: "special_prices",
|
|
2999
|
-
icon: /* @__PURE__ */ (0,
|
|
3058
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconSpecialPrice, {}),
|
|
3000
3059
|
url: `/#/pricing/special-prices`
|
|
3001
3060
|
}
|
|
3002
3061
|
]
|
|
@@ -3010,7 +3069,7 @@ var drawerAppList = [
|
|
|
3010
3069
|
alwaysDisplay: false,
|
|
3011
3070
|
featureNames: [featureName_default.PURCHASE_ORDERS],
|
|
3012
3071
|
pinned: "purchase_orders",
|
|
3013
|
-
icon: /* @__PURE__ */ (0,
|
|
3072
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconBuying, {}),
|
|
3014
3073
|
url: "/react/purchase-orders"
|
|
3015
3074
|
},
|
|
3016
3075
|
{
|
|
@@ -3019,7 +3078,7 @@ var drawerAppList = [
|
|
|
3019
3078
|
alwaysDisplay: false,
|
|
3020
3079
|
featureNames: [featureName_default.PRODUCTS],
|
|
3021
3080
|
pinned: "products",
|
|
3022
|
-
icon: /* @__PURE__ */ (0,
|
|
3081
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconProducts, {}),
|
|
3023
3082
|
url: `/#/product-base-list`
|
|
3024
3083
|
},
|
|
3025
3084
|
{
|
|
@@ -3028,7 +3087,7 @@ var drawerAppList = [
|
|
|
3028
3087
|
alwaysDisplay: false,
|
|
3029
3088
|
featureNames: [featureName_default.SUPPLIERS],
|
|
3030
3089
|
pinned: "suppliers",
|
|
3031
|
-
icon: /* @__PURE__ */ (0,
|
|
3090
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconSupplier, {}),
|
|
3032
3091
|
url: "/react/suppliers"
|
|
3033
3092
|
},
|
|
3034
3093
|
{
|
|
@@ -3037,7 +3096,7 @@ var drawerAppList = [
|
|
|
3037
3096
|
alwaysDisplay: false,
|
|
3038
3097
|
featureNames: [featureName_default.SUPPLIER_PRICES],
|
|
3039
3098
|
pinned: "supplier_prices",
|
|
3040
|
-
icon: /* @__PURE__ */ (0,
|
|
3099
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconSupplierPrices, {}),
|
|
3041
3100
|
url: `/#/supplier-prices`
|
|
3042
3101
|
},
|
|
3043
3102
|
{
|
|
@@ -3046,7 +3105,7 @@ var drawerAppList = [
|
|
|
3046
3105
|
alwaysDisplay: false,
|
|
3047
3106
|
featureNames: [featureName_default.BULK_UPDATE],
|
|
3048
3107
|
pinned: "bulk-update",
|
|
3049
|
-
icon: /* @__PURE__ */ (0,
|
|
3108
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconImport, {}),
|
|
3050
3109
|
url: "/react/bulk_update"
|
|
3051
3110
|
}
|
|
3052
3111
|
]
|
|
@@ -3060,7 +3119,7 @@ var drawerAppList = [
|
|
|
3060
3119
|
alwaysDisplay: false,
|
|
3061
3120
|
featureNames: [featureName_default.GOODS_IN],
|
|
3062
3121
|
pinned: "goods_in",
|
|
3063
|
-
icon: /* @__PURE__ */ (0,
|
|
3122
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconGoodsin, {}),
|
|
3064
3123
|
url: "/react/goodsin-list"
|
|
3065
3124
|
},
|
|
3066
3125
|
{
|
|
@@ -3069,7 +3128,7 @@ var drawerAppList = [
|
|
|
3069
3128
|
alwaysDisplay: false,
|
|
3070
3129
|
featureNames: [featureName_default.RETURNS],
|
|
3071
3130
|
pinned: "goods_in",
|
|
3072
|
-
icon: /* @__PURE__ */ (0,
|
|
3131
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconGoodsin, {}),
|
|
3073
3132
|
url: "/react/returns"
|
|
3074
3133
|
},
|
|
3075
3134
|
{
|
|
@@ -3077,8 +3136,8 @@ var drawerAppList = [
|
|
|
3077
3136
|
routeName: "kanban",
|
|
3078
3137
|
alwaysDisplay: false,
|
|
3079
3138
|
featureNames: [featureName_default.KANBAN],
|
|
3080
|
-
pinned: "
|
|
3081
|
-
icon: /* @__PURE__ */ (0,
|
|
3139
|
+
pinned: "kanban_cards",
|
|
3140
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconVkc, {}),
|
|
3082
3141
|
url: `/#/kanban`
|
|
3083
3142
|
},
|
|
3084
3143
|
{
|
|
@@ -3090,7 +3149,7 @@ var drawerAppList = [
|
|
|
3090
3149
|
featureName: featureName_default.STOCK_MOVEMENTS
|
|
3091
3150
|
}
|
|
3092
3151
|
],
|
|
3093
|
-
icon: /* @__PURE__ */ (0,
|
|
3152
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconLocation, {}),
|
|
3094
3153
|
name: "Stock and Locations",
|
|
3095
3154
|
pinned: "locations",
|
|
3096
3155
|
routeName: "locations",
|
|
@@ -3104,7 +3163,7 @@ var drawerAppList = [
|
|
|
3104
3163
|
alwaysDisplay: false,
|
|
3105
3164
|
featureNames: [featureName_default.PICKING_STATIONS],
|
|
3106
3165
|
pinned: "picking_stations",
|
|
3107
|
-
icon: /* @__PURE__ */ (0,
|
|
3166
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconScales, {}),
|
|
3108
3167
|
url: `/#/pickingstation`
|
|
3109
3168
|
},
|
|
3110
3169
|
{
|
|
@@ -3113,7 +3172,7 @@ var drawerAppList = [
|
|
|
3113
3172
|
alwaysDisplay: false,
|
|
3114
3173
|
featureNames: [featureName_default.QUALITY_CONTROL],
|
|
3115
3174
|
pinned: "quality_control",
|
|
3116
|
-
icon: /* @__PURE__ */ (0,
|
|
3175
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconQc, {}),
|
|
3117
3176
|
url: `/#/quality-control`
|
|
3118
3177
|
},
|
|
3119
3178
|
{
|
|
@@ -3122,7 +3181,7 @@ var drawerAppList = [
|
|
|
3122
3181
|
alwaysDisplay: false,
|
|
3123
3182
|
featureNames: [featureName_default.RETAIL],
|
|
3124
3183
|
pinned: "retail",
|
|
3125
|
-
icon: /* @__PURE__ */ (0,
|
|
3184
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconRetail, {}),
|
|
3126
3185
|
url: `/retail/product-availability`
|
|
3127
3186
|
},
|
|
3128
3187
|
{
|
|
@@ -3131,7 +3190,7 @@ var drawerAppList = [
|
|
|
3131
3190
|
alwaysDisplay: false,
|
|
3132
3191
|
featureNames: [featureName_default.SERVICE_DELIVERY],
|
|
3133
3192
|
pinned: "runs",
|
|
3134
|
-
icon: /* @__PURE__ */ (0,
|
|
3193
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconRuns, {}),
|
|
3135
3194
|
url: `/#/runs`
|
|
3136
3195
|
},
|
|
3137
3196
|
{
|
|
@@ -3140,7 +3199,7 @@ var drawerAppList = [
|
|
|
3140
3199
|
alwaysDisplay: false,
|
|
3141
3200
|
featureNames: [featureName_default.OPS_METRICS],
|
|
3142
3201
|
pinned: "ops-metrics",
|
|
3143
|
-
icon: /* @__PURE__ */ (0,
|
|
3202
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconOpsMetrics, {}),
|
|
3144
3203
|
url: "/react/ops-metrics"
|
|
3145
3204
|
}
|
|
3146
3205
|
]
|
|
@@ -3154,7 +3213,7 @@ var drawerAppList = [
|
|
|
3154
3213
|
alwaysDisplay: false,
|
|
3155
3214
|
featureNames: [featureName_default.ACCOUNTS],
|
|
3156
3215
|
pinned: "accounts",
|
|
3157
|
-
icon: /* @__PURE__ */ (0,
|
|
3216
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconAccounts, {}),
|
|
3158
3217
|
url: `/#/accounts`
|
|
3159
3218
|
},
|
|
3160
3219
|
{
|
|
@@ -3163,7 +3222,7 @@ var drawerAppList = [
|
|
|
3163
3222
|
alwaysDisplay: false,
|
|
3164
3223
|
featureNames: [featureName_default.REPORTS],
|
|
3165
3224
|
pinned: "reports",
|
|
3166
|
-
icon: /* @__PURE__ */ (0,
|
|
3225
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconReports, {}),
|
|
3167
3226
|
url: `/reports`
|
|
3168
3227
|
}
|
|
3169
3228
|
]
|
|
@@ -3177,7 +3236,7 @@ var drawerAppList = [
|
|
|
3177
3236
|
alwaysDisplay: false,
|
|
3178
3237
|
featureNames: [featureName_default.ADMIN],
|
|
3179
3238
|
pinned: "admin",
|
|
3180
|
-
icon: /* @__PURE__ */ (0,
|
|
3239
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconSetting, {}),
|
|
3181
3240
|
url: `/admin`
|
|
3182
3241
|
},
|
|
3183
3242
|
{
|
|
@@ -3186,7 +3245,7 @@ var drawerAppList = [
|
|
|
3186
3245
|
alwaysDisplay: false,
|
|
3187
3246
|
featureNames: [featureName_default.USER_MANAGEMENT],
|
|
3188
3247
|
pinned: "users",
|
|
3189
|
-
icon: /* @__PURE__ */ (0,
|
|
3248
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconUserManagement, {}),
|
|
3190
3249
|
url: "/react/user-management"
|
|
3191
3250
|
},
|
|
3192
3251
|
{
|
|
@@ -3195,7 +3254,7 @@ var drawerAppList = [
|
|
|
3195
3254
|
alwaysDisplay: true,
|
|
3196
3255
|
featureNames: [],
|
|
3197
3256
|
pinned: null,
|
|
3198
|
-
icon: /* @__PURE__ */ (0,
|
|
3257
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(icons_default.SvgIconLogin, {}),
|
|
3199
3258
|
url: "/react/logout"
|
|
3200
3259
|
}
|
|
3201
3260
|
]
|
|
@@ -3255,8 +3314,8 @@ var useGetFilteredDrawerAppList = () => {
|
|
|
3255
3314
|
var useGetFilteredDrawerAppList_default = useGetFilteredDrawerAppList;
|
|
3256
3315
|
|
|
3257
3316
|
// src/components/LeftDrawer/LeftDrawer.tsx
|
|
3258
|
-
var
|
|
3259
|
-
var
|
|
3317
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
3318
|
+
var useStyles15 = (0, import_mui16.makeStyles)()((theme) => ({
|
|
3260
3319
|
subheader: {
|
|
3261
3320
|
textTransform: "uppercase",
|
|
3262
3321
|
fontSize: theme.spacing(1.5)
|
|
@@ -3312,9 +3371,14 @@ var useStyles13 = (0, import_mui14.makeStyles)()((theme) => ({
|
|
|
3312
3371
|
}
|
|
3313
3372
|
}
|
|
3314
3373
|
}));
|
|
3315
|
-
var LeftDrawer = ({
|
|
3374
|
+
var LeftDrawer = ({
|
|
3375
|
+
handleClose,
|
|
3376
|
+
handleOpen,
|
|
3377
|
+
onLogout,
|
|
3378
|
+
open,
|
|
3379
|
+
user
|
|
3380
|
+
}) => {
|
|
3316
3381
|
const [openCollapse, setOpenCollapse] = (0, import_react57.useState)({});
|
|
3317
|
-
const dispatch = (0, import_react_redux2.useDispatch)();
|
|
3318
3382
|
const filteredDrawerAppList = useGetFilteredDrawerAppList_default();
|
|
3319
3383
|
const handleCollapse = (e, routeName) => {
|
|
3320
3384
|
e.stopPropagation();
|
|
@@ -3322,9 +3386,9 @@ var LeftDrawer = ({ handleClose, handleOpen, open }) => {
|
|
|
3322
3386
|
tempOpenCollapse[routeName] = !tempOpenCollapse[routeName];
|
|
3323
3387
|
setOpenCollapse(tempOpenCollapse);
|
|
3324
3388
|
};
|
|
3325
|
-
const { classes } =
|
|
3326
|
-
return /* @__PURE__ */ (0,
|
|
3327
|
-
|
|
3389
|
+
const { classes } = useStyles15();
|
|
3390
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
3391
|
+
import_material15.SwipeableDrawer,
|
|
3328
3392
|
{
|
|
3329
3393
|
className: classes.drawer,
|
|
3330
3394
|
id: "primary-menu",
|
|
@@ -3332,19 +3396,19 @@ var LeftDrawer = ({ handleClose, handleOpen, open }) => {
|
|
|
3332
3396
|
onOpen: handleOpen,
|
|
3333
3397
|
open,
|
|
3334
3398
|
children: [
|
|
3335
|
-
/* @__PURE__ */ (0,
|
|
3336
|
-
/* @__PURE__ */ (0,
|
|
3399
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_material15.AppBar, { position: "static", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_material15.Toolbar, { className: classes.topBar, children: [
|
|
3400
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3337
3401
|
UserBust_default,
|
|
3338
3402
|
{
|
|
3339
|
-
user
|
|
3403
|
+
user,
|
|
3340
3404
|
avatarProps: { height: 50, width: 50 },
|
|
3341
3405
|
typographyProps: {
|
|
3342
|
-
name: { variant: "subtitle1" },
|
|
3343
|
-
username: { variant: "caption" }
|
|
3406
|
+
name: { variant: "subtitle1", component: "div" },
|
|
3407
|
+
username: { variant: "caption", component: "div" }
|
|
3344
3408
|
}
|
|
3345
3409
|
}
|
|
3346
3410
|
),
|
|
3347
|
-
/* @__PURE__ */ (0,
|
|
3411
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_material15.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3348
3412
|
RoundButton_default,
|
|
3349
3413
|
{
|
|
3350
3414
|
icon: "edit",
|
|
@@ -3355,73 +3419,71 @@ var LeftDrawer = ({ handleClose, handleOpen, open }) => {
|
|
|
3355
3419
|
}
|
|
3356
3420
|
) })
|
|
3357
3421
|
] }) }),
|
|
3358
|
-
/* @__PURE__ */ (0,
|
|
3359
|
-
/* @__PURE__ */ (0,
|
|
3360
|
-
group.apps.map((app) => {
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
{
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
return window.location.assign(app.url);
|
|
3371
|
-
},
|
|
3372
|
-
children: [
|
|
3373
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_material13.ListItemIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_Icon.default, { className: classes.iconMenu, children: app.icon }) }),
|
|
3374
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
3375
|
-
import_material13.ListItemText,
|
|
3376
|
-
{
|
|
3377
|
-
className: classes.appName,
|
|
3378
|
-
primary: app.name,
|
|
3379
|
-
slotProps: {
|
|
3380
|
-
primary: { variant: "body2" }
|
|
3381
|
-
}
|
|
3382
|
-
}
|
|
3383
|
-
),
|
|
3384
|
-
((_a = app.children) == null ? void 0 : _a.length) > 0 && (openCollapse[app.routeName] ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
3385
|
-
import_icons_material3.ExpandLess,
|
|
3386
|
-
{
|
|
3387
|
-
"data-testid": "svg-close-collapse",
|
|
3388
|
-
onClick: (e) => handleCollapse(e, app.routeName)
|
|
3389
|
-
}
|
|
3390
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
3391
|
-
import_icons_material3.ExpandMore,
|
|
3392
|
-
{
|
|
3393
|
-
"data-testid": "svg-open-collapse",
|
|
3394
|
-
onClick: (e) => handleCollapse(e, app.routeName)
|
|
3395
|
-
}
|
|
3396
|
-
))
|
|
3397
|
-
]
|
|
3422
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_material15.List, { children: filteredDrawerAppList.map((group) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_react57.default.Fragment, { children: [
|
|
3423
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_material15.ListSubheader, { disableSticky: true, className: classes.subheader, children: group.groupName }),
|
|
3424
|
+
group.apps.map((app) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_react57.default.Fragment, { children: [
|
|
3425
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
3426
|
+
import_material15.ListItem,
|
|
3427
|
+
{
|
|
3428
|
+
title: app.url,
|
|
3429
|
+
onClick: () => {
|
|
3430
|
+
if (app.routeName === "logout") {
|
|
3431
|
+
return onLogout();
|
|
3432
|
+
}
|
|
3433
|
+
return window.location.assign(app.url);
|
|
3398
3434
|
},
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
children: [
|
|
3409
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_material13.ListItemIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_icons_material3.FiberManualRecord, { style: { height: 12 } }) }),
|
|
3410
|
-
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
3411
|
-
import_material13.ListItemText,
|
|
3412
|
-
{
|
|
3413
|
-
primary: child.name,
|
|
3414
|
-
slotProps: {
|
|
3415
|
-
primary: { variant: "body2" }
|
|
3416
|
-
}
|
|
3435
|
+
children: [
|
|
3436
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_material15.ListItemIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_Icon.default, { className: classes.iconMenu, children: app.icon }) }),
|
|
3437
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3438
|
+
import_material15.ListItemText,
|
|
3439
|
+
{
|
|
3440
|
+
className: classes.appName,
|
|
3441
|
+
primary: app.name,
|
|
3442
|
+
slotProps: {
|
|
3443
|
+
primary: { variant: "body2" }
|
|
3417
3444
|
}
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3445
|
+
}
|
|
3446
|
+
),
|
|
3447
|
+
app.children?.length > 0 && (openCollapse[app.routeName] ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3448
|
+
import_icons_material3.ExpandLess,
|
|
3449
|
+
{
|
|
3450
|
+
"data-testid": "svg-close-collapse",
|
|
3451
|
+
onClick: (e) => handleCollapse(e, app.routeName)
|
|
3452
|
+
}
|
|
3453
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3454
|
+
import_icons_material3.ExpandMore,
|
|
3455
|
+
{
|
|
3456
|
+
"data-testid": "svg-open-collapse",
|
|
3457
|
+
onClick: (e) => handleCollapse(e, app.routeName)
|
|
3458
|
+
}
|
|
3459
|
+
))
|
|
3460
|
+
]
|
|
3461
|
+
},
|
|
3462
|
+
app.name
|
|
3463
|
+
),
|
|
3464
|
+
app.children?.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_material15.Collapse, { in: openCollapse[app.routeName], children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_material15.List, { children: app.children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
3465
|
+
import_material15.ListItemButton,
|
|
3466
|
+
{
|
|
3467
|
+
className: classes.nested,
|
|
3468
|
+
disabled: child.disabled,
|
|
3469
|
+
onClick: () => window.location.assign(app.url),
|
|
3470
|
+
title: app.url,
|
|
3471
|
+
children: [
|
|
3472
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_material15.ListItemIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_icons_material3.FiberManualRecord, { style: { height: 12 } }) }),
|
|
3473
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3474
|
+
import_material15.ListItemText,
|
|
3475
|
+
{
|
|
3476
|
+
primary: child.name,
|
|
3477
|
+
slotProps: {
|
|
3478
|
+
primary: { variant: "body2" }
|
|
3479
|
+
}
|
|
3480
|
+
}
|
|
3481
|
+
)
|
|
3482
|
+
]
|
|
3483
|
+
},
|
|
3484
|
+
child.name
|
|
3485
|
+
)) }) })
|
|
3486
|
+
] }, `${group.groupName} ${app.name}`))
|
|
3425
3487
|
] }, group.groupName)) })
|
|
3426
3488
|
]
|
|
3427
3489
|
}
|
|
@@ -3429,295 +3491,55 @@ var LeftDrawer = ({ handleClose, handleOpen, open }) => {
|
|
|
3429
3491
|
};
|
|
3430
3492
|
var LeftDrawer_default = (0, import_react57.memo)(LeftDrawer);
|
|
3431
3493
|
|
|
3432
|
-
// src/components/
|
|
3433
|
-
var
|
|
3434
|
-
var
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
},
|
|
3441
|
-
searchIcon: {
|
|
3442
|
-
opacity: ".5"
|
|
3443
|
-
},
|
|
3444
|
-
inputRoot: {
|
|
3445
|
-
color: "inherit"
|
|
3446
|
-
},
|
|
3447
|
-
inputInput: {
|
|
3448
|
-
transition: theme.transitions.create("width"),
|
|
3449
|
-
width: "100%"
|
|
3450
|
-
},
|
|
3451
|
-
topBar: {
|
|
3452
|
-
display: "flex",
|
|
3453
|
-
gap: theme.spacing(1),
|
|
3454
|
-
backgroundColor: colors.topBar
|
|
3455
|
-
},
|
|
3456
|
-
drawer: {
|
|
3457
|
-
backgroundColor: "black"
|
|
3458
|
-
},
|
|
3459
|
-
drawerItem: {
|
|
3460
|
-
maxWidth: "300px",
|
|
3461
|
-
width: "80vw"
|
|
3462
|
-
},
|
|
3463
|
-
offset: theme.mixins.toolbar
|
|
3464
|
-
}));
|
|
3465
|
-
var TheToolbar = ({ imageLogoDarkSmall, imageLogoLightSmall }) => {
|
|
3466
|
-
const { classes } = useStyles14();
|
|
3467
|
-
const [open, setOpen] = import_react58.default.useState(false);
|
|
3468
|
-
const handleOpen = () => setOpen(true);
|
|
3469
|
-
const handleClose = () => setOpen(false);
|
|
3470
|
-
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_material14.Box, { children: [
|
|
3471
|
-
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_material14.AppBar, { children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_material14.Toolbar, { className: classes.topBar, children: [
|
|
3472
|
-
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
3473
|
-
RoundButton_default,
|
|
3474
|
-
{
|
|
3475
|
-
className: classes.menuButton,
|
|
3476
|
-
icon: "menu",
|
|
3477
|
-
noStrokes: true,
|
|
3478
|
-
onClick: handleOpen
|
|
3479
|
-
}
|
|
3480
|
-
),
|
|
3481
|
-
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
3482
|
-
CompanyLogo_default,
|
|
3483
|
-
{
|
|
3484
|
-
size: "small",
|
|
3485
|
-
color: "light",
|
|
3486
|
-
imageLogoDarkSmall,
|
|
3487
|
-
imageLogoLightSmall
|
|
3488
|
-
}
|
|
3489
|
-
)
|
|
3490
|
-
] }) }),
|
|
3491
|
-
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_material14.Box, { className: classes.offset }),
|
|
3492
|
-
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
3493
|
-
LeftDrawer_default,
|
|
3494
|
-
{
|
|
3495
|
-
open,
|
|
3496
|
-
handleOpen,
|
|
3497
|
-
handleClose
|
|
3498
|
-
}
|
|
3499
|
-
)
|
|
3500
|
-
] });
|
|
3501
|
-
};
|
|
3502
|
-
var TheToolbar_default = import_react58.default.memo(TheToolbar);
|
|
3503
|
-
|
|
3504
|
-
// src/components/DesktopContainer/DesktopContainer.tsx
|
|
3505
|
-
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
3506
|
-
var useStyles15 = (0, import_mui16.makeStyles)()((theme) => ({
|
|
3494
|
+
// src/components/Pagination/PaginationForTable.tsx
|
|
3495
|
+
var import_Pagination = __toESM(require("@mui/material/Pagination"), 1);
|
|
3496
|
+
var import_Paper = __toESM(require("@mui/material/Paper"), 1);
|
|
3497
|
+
var import_Typography2 = __toESM(require("@mui/material/Typography"), 1);
|
|
3498
|
+
var import_mui17 = require("tss-react/mui");
|
|
3499
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
3500
|
+
var paginationHeight = "56px";
|
|
3501
|
+
var useStyles16 = (0, import_mui17.makeStyles)()((theme) => ({
|
|
3507
3502
|
root: {
|
|
3508
3503
|
display: "flex",
|
|
3509
|
-
flexDirection: "
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3504
|
+
flexDirection: "row",
|
|
3505
|
+
justifyContent: "flex-end",
|
|
3506
|
+
alignItems: "center",
|
|
3507
|
+
borderTop: `1px solid ${colors.grey200}`,
|
|
3508
|
+
backgroundColor: colors.tableRow2,
|
|
3509
|
+
borderRadius: "0 0 4px 4px",
|
|
3510
|
+
width: "100%",
|
|
3511
|
+
height: paginationHeight,
|
|
3512
|
+
"& > *": {
|
|
3513
|
+
margin: theme.spacing(2)
|
|
3514
|
+
},
|
|
3515
|
+
"& .MuiTypography-body1": {
|
|
3516
|
+
fontSize: ".850rem"
|
|
3517
|
+
}
|
|
3513
3518
|
},
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3519
|
+
fixed: {
|
|
3520
|
+
position: "fixed",
|
|
3521
|
+
bottom: 0,
|
|
3522
|
+
left: 0
|
|
3517
3523
|
},
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
maxWidth: 1720
|
|
3521
|
-
}
|
|
3524
|
+
fixedOffset: {
|
|
3525
|
+
height: paginationHeight
|
|
3522
3526
|
}
|
|
3523
3527
|
}));
|
|
3524
|
-
var
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
+
var PaginationForTable = ({
|
|
3529
|
+
appliedFilters,
|
|
3530
|
+
className,
|
|
3531
|
+
page,
|
|
3532
|
+
pagination,
|
|
3533
|
+
position = "relative",
|
|
3534
|
+
style,
|
|
3535
|
+
updateFilters
|
|
3528
3536
|
}) => {
|
|
3529
|
-
const { classes } =
|
|
3530
|
-
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(import_material15.Container, { className: classes.root, maxWidth: "xl", children: [
|
|
3531
|
-
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3532
|
-
TheToolbar_default,
|
|
3533
|
-
{
|
|
3534
|
-
imageLogoDarkSmall,
|
|
3535
|
-
imageLogoLightSmall
|
|
3536
|
-
}
|
|
3537
|
-
),
|
|
3538
|
-
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
3539
|
-
import_material15.Box,
|
|
3540
|
-
{
|
|
3541
|
-
className: classes.content,
|
|
3542
|
-
id: "mainContainer",
|
|
3543
|
-
sx: {
|
|
3544
|
-
display: "flex",
|
|
3545
|
-
flexDirection: "column"
|
|
3546
|
-
},
|
|
3547
|
-
children
|
|
3548
|
-
}
|
|
3549
|
-
)
|
|
3550
|
-
] });
|
|
3551
|
-
};
|
|
3552
|
-
var DesktopContainer_default = DesktopContainer;
|
|
3553
|
-
|
|
3554
|
-
// src/components/Dialog/TwoButtonDialog.tsx
|
|
3555
|
-
var import_material17 = require("@mui/material");
|
|
3556
|
-
var import_Fade = __toESM(require("@mui/material/Fade"), 1);
|
|
3557
|
-
var import_mui18 = require("tss-react/mui");
|
|
3558
|
-
|
|
3559
|
-
// src/components/Loading/Loading.tsx
|
|
3560
|
-
var import_material16 = require("@mui/material");
|
|
3561
|
-
var import_mui17 = require("tss-react/mui");
|
|
3562
|
-
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
3563
|
-
var useStyles16 = (0, import_mui17.makeStyles)()(() => ({
|
|
3564
|
-
wrapper: {
|
|
3565
|
-
/**
|
|
3566
|
-
* MUI Dialogs have z-index = 1300
|
|
3567
|
-
*/
|
|
3568
|
-
zIndex: 1301,
|
|
3569
|
-
backgroundColor: isDarkModeEnabled3 ? "rgba(0, 0, 0, 0.5)" : "rgba(255, 255, 255, 0.8)"
|
|
3570
|
-
}
|
|
3571
|
-
}));
|
|
3572
|
-
var Loading = ({ isLoading }) => {
|
|
3573
|
-
const { classes } = useStyles16();
|
|
3574
|
-
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
3575
|
-
import_material16.Backdrop,
|
|
3576
|
-
{
|
|
3577
|
-
"aria-hidden": !isLoading,
|
|
3578
|
-
className: classes.wrapper,
|
|
3579
|
-
open: isLoading,
|
|
3580
|
-
"data-testid": "backdrop-loading",
|
|
3581
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_material16.CircularProgress, { color: "primary" })
|
|
3582
|
-
}
|
|
3583
|
-
);
|
|
3584
|
-
};
|
|
3585
|
-
var Loading_default = Loading;
|
|
3586
|
-
|
|
3587
|
-
// src/components/Dialog/TwoButtonDialog.tsx
|
|
3588
|
-
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
3589
|
-
var useStyles17 = (0, import_mui18.makeStyles)()((theme) => ({
|
|
3590
|
-
paper: {
|
|
3591
|
-
padding: theme.spacing(2)
|
|
3592
|
-
},
|
|
3593
|
-
mt: {
|
|
3594
|
-
marginTop: theme.spacing(2)
|
|
3595
|
-
},
|
|
3596
|
-
mb: {
|
|
3597
|
-
marginBottom: theme.spacing(2)
|
|
3598
|
-
},
|
|
3599
|
-
buttonContainer: {
|
|
3600
|
-
display: "flex",
|
|
3601
|
-
justifyContent: "center",
|
|
3602
|
-
marginTop: theme.spacing(1)
|
|
3603
|
-
}
|
|
3604
|
-
}));
|
|
3605
|
-
var TwoButtonDialog = ({
|
|
3606
|
-
confirmButton,
|
|
3607
|
-
dialogLoading = false,
|
|
3608
|
-
title,
|
|
3609
|
-
subtitle1,
|
|
3610
|
-
subtitle2,
|
|
3611
|
-
open,
|
|
3612
|
-
setOpen
|
|
3613
|
-
}) => {
|
|
3614
|
-
const { classes } = useStyles17();
|
|
3615
|
-
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3616
|
-
import_material17.Dialog,
|
|
3617
|
-
{
|
|
3618
|
-
open,
|
|
3619
|
-
disableEnforceFocus: true,
|
|
3620
|
-
maxWidth: "sm",
|
|
3621
|
-
fullWidth: true,
|
|
3622
|
-
closeAfterTransition: true,
|
|
3623
|
-
BackdropComponent: import_material17.Backdrop,
|
|
3624
|
-
BackdropProps: {
|
|
3625
|
-
timeout: 500
|
|
3626
|
-
},
|
|
3627
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_Fade.default, { in: open, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_material17.Paper, { className: classes.paper, children: [
|
|
3628
|
-
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_material17.Box, { className: classes.mb, children: [
|
|
3629
|
-
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_material17.Typography, { variant: "h5", component: "div", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3630
|
-
import_material17.Box,
|
|
3631
|
-
{
|
|
3632
|
-
sx: {
|
|
3633
|
-
fontWeight: 600
|
|
3634
|
-
},
|
|
3635
|
-
children: title
|
|
3636
|
-
}
|
|
3637
|
-
) }),
|
|
3638
|
-
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
3639
|
-
import_material17.Box,
|
|
3640
|
-
{
|
|
3641
|
-
className: classes.mt,
|
|
3642
|
-
sx: {
|
|
3643
|
-
fontWeight: 600
|
|
3644
|
-
},
|
|
3645
|
-
children: [
|
|
3646
|
-
subtitle1 && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_material17.Typography, { variant: "subtitle1", children: subtitle1 }),
|
|
3647
|
-
subtitle2 && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_material17.Typography, { variant: "subtitle1", children: subtitle2 })
|
|
3648
|
-
]
|
|
3649
|
-
}
|
|
3650
|
-
)
|
|
3651
|
-
] }),
|
|
3652
|
-
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_material17.Divider, {}),
|
|
3653
|
-
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_material17.Box, { className: classes.buttonContainer, children: [
|
|
3654
|
-
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(FilledButton_default, { copy: "CANCEL", onClick: () => setOpen(false) }),
|
|
3655
|
-
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3656
|
-
FilledButton_default,
|
|
3657
|
-
{
|
|
3658
|
-
color: "primary",
|
|
3659
|
-
copy: "CONFIRM",
|
|
3660
|
-
onClick: confirmButton
|
|
3661
|
-
}
|
|
3662
|
-
)
|
|
3663
|
-
] }),
|
|
3664
|
-
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Loading_default, { isLoading: dialogLoading })
|
|
3665
|
-
] }) })
|
|
3666
|
-
}
|
|
3667
|
-
);
|
|
3668
|
-
};
|
|
3669
|
-
var TwoButtonDialog_default = TwoButtonDialog;
|
|
3670
|
-
|
|
3671
|
-
// src/components/Pagination/PaginationForTable.tsx
|
|
3672
|
-
var import_Pagination = __toESM(require("@mui/material/Pagination"), 1);
|
|
3673
|
-
var import_Paper = __toESM(require("@mui/material/Paper"), 1);
|
|
3674
|
-
var import_Typography2 = __toESM(require("@mui/material/Typography"), 1);
|
|
3675
|
-
var import_prop_types10 = require("prop-types");
|
|
3676
|
-
var import_mui19 = require("tss-react/mui");
|
|
3677
|
-
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
3678
|
-
var paginationHeight = "56px";
|
|
3679
|
-
var useStyles18 = (0, import_mui19.makeStyles)()((theme) => ({
|
|
3680
|
-
root: {
|
|
3681
|
-
display: "flex",
|
|
3682
|
-
flexDirection: "row",
|
|
3683
|
-
justifyContent: "flex-end",
|
|
3684
|
-
alignItems: "center",
|
|
3685
|
-
borderTop: `1px solid ${colors.grey200}`,
|
|
3686
|
-
backgroundColor: colors.tableRow2,
|
|
3687
|
-
borderRadius: "0 0 4px 4px",
|
|
3688
|
-
width: "100%",
|
|
3689
|
-
height: paginationHeight,
|
|
3690
|
-
"& > *": {
|
|
3691
|
-
margin: theme.spacing(2)
|
|
3692
|
-
},
|
|
3693
|
-
"& .MuiTypography-body1": {
|
|
3694
|
-
fontSize: ".850rem"
|
|
3695
|
-
}
|
|
3696
|
-
},
|
|
3697
|
-
fixed: {
|
|
3698
|
-
position: "fixed",
|
|
3699
|
-
bottom: 0,
|
|
3700
|
-
left: 0
|
|
3701
|
-
},
|
|
3702
|
-
fixedOffset: {
|
|
3703
|
-
height: paginationHeight
|
|
3704
|
-
}
|
|
3705
|
-
}));
|
|
3706
|
-
var PaginationForTable = ({
|
|
3707
|
-
appliedFilters,
|
|
3708
|
-
className,
|
|
3709
|
-
page,
|
|
3710
|
-
pagination,
|
|
3711
|
-
position = "relative",
|
|
3712
|
-
style,
|
|
3713
|
-
updateFilters
|
|
3714
|
-
}) => {
|
|
3715
|
-
const { classes, cx } = useStyles18();
|
|
3537
|
+
const { classes, cx } = useStyles16();
|
|
3716
3538
|
const handleChange = (event, value) => {
|
|
3717
3539
|
updateFilters({ ...appliedFilters, page: value });
|
|
3718
3540
|
};
|
|
3719
3541
|
const isFixed = position === "fixed";
|
|
3720
|
-
return /* @__PURE__ */ (0,
|
|
3542
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_Paper.default, { children: /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
|
|
3721
3543
|
"div",
|
|
3722
3544
|
{
|
|
3723
3545
|
style,
|
|
@@ -3725,11 +3547,11 @@ var PaginationForTable = ({
|
|
|
3725
3547
|
[classes.fixed]: isFixed
|
|
3726
3548
|
}),
|
|
3727
3549
|
children: [
|
|
3728
|
-
/* @__PURE__ */ (0,
|
|
3550
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_Typography2.default, { variant: "body1", children: [
|
|
3729
3551
|
"Page: ",
|
|
3730
3552
|
page
|
|
3731
3553
|
] }),
|
|
3732
|
-
/* @__PURE__ */ (0,
|
|
3554
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
3733
3555
|
import_Pagination.default,
|
|
3734
3556
|
{
|
|
3735
3557
|
count: pagination.num_pages,
|
|
@@ -3741,41 +3563,29 @@ var PaginationForTable = ({
|
|
|
3741
3563
|
}
|
|
3742
3564
|
) });
|
|
3743
3565
|
};
|
|
3744
|
-
PaginationForTable.defaultProps = {
|
|
3745
|
-
className: ""
|
|
3746
|
-
};
|
|
3747
|
-
PaginationForTable.propTypes = {
|
|
3748
|
-
appliedFilters: import_prop_types10.any,
|
|
3749
|
-
className: import_prop_types10.string,
|
|
3750
|
-
page: import_prop_types10.any,
|
|
3751
|
-
pagination: import_prop_types10.object,
|
|
3752
|
-
position: (0, import_prop_types10.oneOf)(["relative", "fixed"]),
|
|
3753
|
-
style: import_prop_types10.any,
|
|
3754
|
-
updateFilters: import_prop_types10.func.isRequired
|
|
3755
|
-
};
|
|
3756
3566
|
var PaginationForTable_default = PaginationForTable;
|
|
3757
3567
|
|
|
3758
3568
|
// src/components/ProductImage/ProductImage.tsx
|
|
3759
|
-
var
|
|
3760
|
-
var
|
|
3761
|
-
var
|
|
3762
|
-
var
|
|
3569
|
+
var import_material16 = require("@mui/material");
|
|
3570
|
+
var import_prop_types8 = require("prop-types");
|
|
3571
|
+
var import_mui18 = require("tss-react/mui");
|
|
3572
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
3763
3573
|
var PImage = ({
|
|
3764
3574
|
classes,
|
|
3765
3575
|
image,
|
|
3766
3576
|
size = "c_productbust__image_xs",
|
|
3767
3577
|
status
|
|
3768
|
-
}) => /* @__PURE__ */ (0,
|
|
3769
|
-
/* @__PURE__ */ (0,
|
|
3770
|
-
|
|
3578
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: classes.c_productbust__image, children: [
|
|
3579
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3580
|
+
import_material16.CardMedia,
|
|
3771
3581
|
{
|
|
3772
3582
|
className: classes[size],
|
|
3773
3583
|
image: image || "resources/img/peas.jpg"
|
|
3774
3584
|
}
|
|
3775
3585
|
),
|
|
3776
|
-
status && status !== "ACTIVE" && /* @__PURE__ */ (0,
|
|
3586
|
+
status && status !== "ACTIVE" && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: classes.c_productbust__label_status, children: status })
|
|
3777
3587
|
] });
|
|
3778
|
-
var ProductImage = (0,
|
|
3588
|
+
var ProductImage = (0, import_mui18.withStyles)(PImage, (theme) => ({
|
|
3779
3589
|
c_productbust__label_status: {
|
|
3780
3590
|
position: "absolute",
|
|
3781
3591
|
color: "white",
|
|
@@ -3853,25 +3663,25 @@ var ProductImage = (0, import_mui20.withStyles)(PImage, (theme) => ({
|
|
|
3853
3663
|
}
|
|
3854
3664
|
}));
|
|
3855
3665
|
PImage.propTypes = {
|
|
3856
|
-
classes:
|
|
3857
|
-
image:
|
|
3858
|
-
size:
|
|
3859
|
-
status:
|
|
3666
|
+
classes: import_prop_types8.any,
|
|
3667
|
+
image: import_prop_types8.string,
|
|
3668
|
+
size: import_prop_types8.string,
|
|
3669
|
+
status: import_prop_types8.any
|
|
3860
3670
|
};
|
|
3861
3671
|
var ProductImage_default = ProductImage;
|
|
3862
3672
|
|
|
3863
3673
|
// src/components/RenderContentList/RenderContentList.tsx
|
|
3864
|
-
var
|
|
3865
|
-
var
|
|
3866
|
-
var
|
|
3674
|
+
var import_react59 = require("react");
|
|
3675
|
+
var import_material17 = require("@mui/material");
|
|
3676
|
+
var import_mui19 = require("tss-react/mui");
|
|
3867
3677
|
|
|
3868
3678
|
// src/utils/useGetActiveSection.ts
|
|
3869
|
-
var
|
|
3679
|
+
var import_react58 = require("react");
|
|
3870
3680
|
var transformNameToID = (name) => name.replaceAll(" ", "-").toLocaleLowerCase();
|
|
3871
3681
|
|
|
3872
3682
|
// src/components/RenderContentList/RenderContentList.tsx
|
|
3873
|
-
var
|
|
3874
|
-
var
|
|
3683
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
3684
|
+
var useStyles17 = (0, import_mui19.makeStyles)()(
|
|
3875
3685
|
(_theme, _params, classes) => ({
|
|
3876
3686
|
root: {
|
|
3877
3687
|
[`&.${classes.selected}`]: {
|
|
@@ -3885,28 +3695,28 @@ var useStyles19 = (0, import_mui21.makeStyles)()(
|
|
|
3885
3695
|
})
|
|
3886
3696
|
);
|
|
3887
3697
|
var RenderContentList = ({ items, activeSection }) => {
|
|
3888
|
-
const { classes } =
|
|
3889
|
-
const [active, setActive] = (0,
|
|
3890
|
-
(0,
|
|
3698
|
+
const { classes } = useStyles17();
|
|
3699
|
+
const [active, setActive] = (0, import_react59.useState)(activeSection);
|
|
3700
|
+
(0, import_react59.useEffect)(() => {
|
|
3891
3701
|
setActive(activeSection);
|
|
3892
3702
|
}, [activeSection]);
|
|
3893
|
-
return /* @__PURE__ */ (0,
|
|
3894
|
-
|
|
3703
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
3704
|
+
import_material17.List,
|
|
3895
3705
|
{
|
|
3896
3706
|
component: "nav",
|
|
3897
3707
|
"aria-labelledby": "nested-list-subheader",
|
|
3898
|
-
subheader: /* @__PURE__ */ (0,
|
|
3708
|
+
subheader: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_material17.ListSubheader, { component: "div", id: "nested-list-subheader", children: "Contents" }),
|
|
3899
3709
|
children: items.map((item) => {
|
|
3900
3710
|
const id = transformNameToID(item);
|
|
3901
|
-
return /* @__PURE__ */ (0,
|
|
3902
|
-
|
|
3711
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
3712
|
+
import_material17.ListItemButton,
|
|
3903
3713
|
{
|
|
3904
3714
|
component: "a",
|
|
3905
3715
|
href: `#${id}`,
|
|
3906
3716
|
onClick: () => setActive(item),
|
|
3907
3717
|
selected: active === item,
|
|
3908
3718
|
classes: { root: classes.root },
|
|
3909
|
-
children: /* @__PURE__ */ (0,
|
|
3719
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_material17.ListItemText, { primary: item })
|
|
3910
3720
|
},
|
|
3911
3721
|
id
|
|
3912
3722
|
);
|
|
@@ -3917,11 +3727,11 @@ var RenderContentList = ({ items, activeSection }) => {
|
|
|
3917
3727
|
var RenderContentList_default = RenderContentList;
|
|
3918
3728
|
|
|
3919
3729
|
// src/components/RowProductCard/RowProductCard.tsx
|
|
3920
|
-
var
|
|
3921
|
-
var
|
|
3922
|
-
var
|
|
3923
|
-
var
|
|
3924
|
-
var
|
|
3730
|
+
var import_material18 = require("@mui/material");
|
|
3731
|
+
var import_mui20 = require("tss-react/mui");
|
|
3732
|
+
var import_prop_types9 = require("prop-types");
|
|
3733
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
3734
|
+
var useStyles18 = (0, import_mui20.makeStyles)()((theme) => ({
|
|
3925
3735
|
wrapper: {
|
|
3926
3736
|
display: "flex",
|
|
3927
3737
|
gap: theme.spacing(2),
|
|
@@ -3946,15 +3756,15 @@ var useStyles20 = (0, import_mui22.makeStyles)()((theme) => ({
|
|
|
3946
3756
|
}
|
|
3947
3757
|
}));
|
|
3948
3758
|
var RowProductCard = ({ children, columns, location, product, size }) => {
|
|
3949
|
-
const { classes, cx } =
|
|
3759
|
+
const { classes, cx } = useStyles18();
|
|
3950
3760
|
const hasColumns = columns.length >= 1;
|
|
3951
3761
|
const imageSize = {
|
|
3952
3762
|
small: "c_productbust__image_sm",
|
|
3953
3763
|
medium: "c_productbust__image_md",
|
|
3954
3764
|
large: "c_productbust__image_lg"
|
|
3955
3765
|
};
|
|
3956
|
-
return /* @__PURE__ */ (0,
|
|
3957
|
-
/* @__PURE__ */ (0,
|
|
3766
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_material18.Paper, { className: classes.wrapper, children: [
|
|
3767
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3958
3768
|
ProductImage_default,
|
|
3959
3769
|
{
|
|
3960
3770
|
image: product.image,
|
|
@@ -3962,15 +3772,15 @@ var RowProductCard = ({ children, columns, location, product, size }) => {
|
|
|
3962
3772
|
size: imageSize[size]
|
|
3963
3773
|
}
|
|
3964
3774
|
),
|
|
3965
|
-
/* @__PURE__ */ (0,
|
|
3775
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
3966
3776
|
"div",
|
|
3967
3777
|
{
|
|
3968
3778
|
className: cx(classes.content, {
|
|
3969
3779
|
[classes.onlyProductName]: !hasColumns && !location
|
|
3970
3780
|
}),
|
|
3971
3781
|
children: [
|
|
3972
|
-
/* @__PURE__ */ (0,
|
|
3973
|
-
|
|
3782
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
3783
|
+
import_material18.Box,
|
|
3974
3784
|
{
|
|
3975
3785
|
className: classes.upperRow,
|
|
3976
3786
|
sx: {
|
|
@@ -3979,26 +3789,26 @@ var RowProductCard = ({ children, columns, location, product, size }) => {
|
|
|
3979
3789
|
alignItems: "center"
|
|
3980
3790
|
},
|
|
3981
3791
|
children: [
|
|
3982
|
-
/* @__PURE__ */ (0,
|
|
3983
|
-
location ? /* @__PURE__ */ (0,
|
|
3984
|
-
/* @__PURE__ */ (0,
|
|
3792
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { children: [
|
|
3793
|
+
location ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_material18.Typography, { className: classes.smallTitle, variant: "caption", children: `Location: ${location}` }) : null,
|
|
3794
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_material18.Typography, { variant: "h6", children: product.name })
|
|
3985
3795
|
] }),
|
|
3986
3796
|
children
|
|
3987
3797
|
]
|
|
3988
3798
|
}
|
|
3989
3799
|
),
|
|
3990
|
-
hasColumns ? /* @__PURE__ */ (0,
|
|
3991
|
-
/* @__PURE__ */ (0,
|
|
3992
|
-
/* @__PURE__ */ (0,
|
|
3993
|
-
|
|
3800
|
+
hasColumns ? /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
|
|
3801
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_material18.Divider, { className: classes.divider }),
|
|
3802
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3803
|
+
import_material18.Box,
|
|
3994
3804
|
{
|
|
3995
3805
|
sx: {
|
|
3996
3806
|
display: "flex",
|
|
3997
3807
|
gap: "24px"
|
|
3998
3808
|
},
|
|
3999
|
-
children: columns.map((column) => /* @__PURE__ */ (0,
|
|
4000
|
-
/* @__PURE__ */ (0,
|
|
4001
|
-
typeof column.value === "string" ? /* @__PURE__ */ (0,
|
|
3809
|
+
children: columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { children: [
|
|
3810
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_material18.Typography, { className: classes.smallTitle, variant: "caption", children: column.title }),
|
|
3811
|
+
typeof column.value === "string" ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_material18.Typography, { variant: "body1", children: column.value }) : column.value
|
|
4002
3812
|
] }, column.title))
|
|
4003
3813
|
}
|
|
4004
3814
|
)
|
|
@@ -4018,48 +3828,48 @@ RowProductCard.propTypes = {
|
|
|
4018
3828
|
/**
|
|
4019
3829
|
* Possible actions or buttons that the card can have
|
|
4020
3830
|
*/
|
|
4021
|
-
children:
|
|
3831
|
+
children: import_prop_types9.node,
|
|
4022
3832
|
/**
|
|
4023
3833
|
* Details about the product
|
|
4024
3834
|
*/
|
|
4025
|
-
columns: (0,
|
|
4026
|
-
(0,
|
|
4027
|
-
title:
|
|
4028
|
-
value: (0,
|
|
3835
|
+
columns: (0, import_prop_types9.arrayOf)(
|
|
3836
|
+
(0, import_prop_types9.shape)({
|
|
3837
|
+
title: import_prop_types9.string,
|
|
3838
|
+
value: (0, import_prop_types9.oneOfType)([import_prop_types9.string, import_prop_types9.node])
|
|
4029
3839
|
})
|
|
4030
3840
|
),
|
|
4031
3841
|
/**
|
|
4032
3842
|
* Where is the product location
|
|
4033
3843
|
*/
|
|
4034
|
-
location:
|
|
3844
|
+
location: import_prop_types9.string,
|
|
4035
3845
|
/**
|
|
4036
3846
|
* Product information
|
|
4037
3847
|
*/
|
|
4038
|
-
product: (0,
|
|
4039
|
-
image:
|
|
4040
|
-
name:
|
|
4041
|
-
status:
|
|
3848
|
+
product: (0, import_prop_types9.shape)({
|
|
3849
|
+
image: import_prop_types9.string.isRequired,
|
|
3850
|
+
name: import_prop_types9.string.isRequired,
|
|
3851
|
+
status: import_prop_types9.string
|
|
4042
3852
|
}).isRequired,
|
|
4043
|
-
size: (0,
|
|
3853
|
+
size: (0, import_prop_types9.oneOf)(["small", "medium", "large"])
|
|
4044
3854
|
};
|
|
4045
3855
|
var RowProductCard_default = RowProductCard;
|
|
4046
3856
|
|
|
4047
3857
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
|
|
4048
|
-
var
|
|
3858
|
+
var import_react61 = __toESM(require("react"), 1);
|
|
4049
3859
|
var import_Box = __toESM(require("@mui/material/Box"), 1);
|
|
4050
|
-
var
|
|
4051
|
-
var
|
|
3860
|
+
var import_prop_types11 = __toESM(require("prop-types"), 1);
|
|
3861
|
+
var import_mui22 = require("tss-react/mui");
|
|
4052
3862
|
|
|
4053
3863
|
// src/components/SearchWithFilters/SearchWithFiltersForTable.tsx
|
|
4054
|
-
var
|
|
3864
|
+
var import_react60 = __toESM(require("react"), 1);
|
|
4055
3865
|
var import_ArrowDropDown = __toESM(require("@mui/icons-material/ArrowDropDown"), 1);
|
|
4056
3866
|
var import_ArrowDropUp = __toESM(require("@mui/icons-material/ArrowDropUp"), 1);
|
|
4057
3867
|
var import_Search = __toESM(require("@mui/icons-material/Search"), 1);
|
|
4058
|
-
var
|
|
4059
|
-
var
|
|
4060
|
-
var
|
|
4061
|
-
var
|
|
4062
|
-
var
|
|
3868
|
+
var import_material19 = require("@mui/material");
|
|
3869
|
+
var import_prop_types10 = __toESM(require("prop-types"), 1);
|
|
3870
|
+
var import_mui21 = require("tss-react/mui");
|
|
3871
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
3872
|
+
var useStyles19 = (0, import_mui21.makeStyles)()((theme) => ({
|
|
4063
3873
|
c_search: {
|
|
4064
3874
|
height: 46,
|
|
4065
3875
|
padding: "4px",
|
|
@@ -4117,8 +3927,8 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
4117
3927
|
enterPressedInSearch,
|
|
4118
3928
|
searchedValue
|
|
4119
3929
|
} = props;
|
|
4120
|
-
const { classes } =
|
|
4121
|
-
const [searchText, setSearchText] =
|
|
3930
|
+
const { classes } = useStyles19();
|
|
3931
|
+
const [searchText, setSearchText] = import_react60.default.useState("");
|
|
4122
3932
|
const handleTextChange = (e) => {
|
|
4123
3933
|
const { value } = e.target;
|
|
4124
3934
|
setSearchText(value);
|
|
@@ -4133,10 +3943,10 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
4133
3943
|
}
|
|
4134
3944
|
};
|
|
4135
3945
|
const ArrowIcon = isOpen ? import_ArrowDropUp.default : import_ArrowDropDown.default;
|
|
4136
|
-
return /* @__PURE__ */ (0,
|
|
4137
|
-
/* @__PURE__ */ (0,
|
|
4138
|
-
/* @__PURE__ */ (0,
|
|
4139
|
-
|
|
3946
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_material19.Paper, { className: classes.c_search, children: [
|
|
3947
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_material19.Box, { className: classes.c_search__icon, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_Search.default, { className: classes.icon, fontSize: "small" }) }),
|
|
3948
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
3949
|
+
import_material19.InputBase,
|
|
4140
3950
|
{
|
|
4141
3951
|
className: classes.c_search__input,
|
|
4142
3952
|
placeholder: "Search",
|
|
@@ -4145,22 +3955,22 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
4145
3955
|
onKeyDown: handleKeyPress
|
|
4146
3956
|
}
|
|
4147
3957
|
),
|
|
4148
|
-
showFilterButton && /* @__PURE__ */ (0,
|
|
4149
|
-
/* @__PURE__ */ (0,
|
|
4150
|
-
|
|
3958
|
+
showFilterButton && /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(import_jsx_runtime72.Fragment, { children: [
|
|
3959
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
3960
|
+
import_material19.Divider,
|
|
4151
3961
|
{
|
|
4152
3962
|
className: classes.c_search__divider,
|
|
4153
3963
|
orientation: "vertical"
|
|
4154
3964
|
}
|
|
4155
3965
|
),
|
|
4156
|
-
/* @__PURE__ */ (0,
|
|
4157
|
-
|
|
3966
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
|
|
3967
|
+
import_material19.Button,
|
|
4158
3968
|
{
|
|
4159
3969
|
className: classes.c_search__bt_filter,
|
|
4160
3970
|
onClick: handleFilterButtonClick,
|
|
4161
3971
|
children: [
|
|
4162
3972
|
"Filters",
|
|
4163
|
-
/* @__PURE__ */ (0,
|
|
3973
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)(ArrowIcon, { className: classes.c_search__bt_icon_filter })
|
|
4164
3974
|
]
|
|
4165
3975
|
}
|
|
4166
3976
|
)
|
|
@@ -4168,18 +3978,18 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
4168
3978
|
] });
|
|
4169
3979
|
};
|
|
4170
3980
|
SearchWithFiltersForTable.propTypes = {
|
|
4171
|
-
onFilterButtonClick:
|
|
4172
|
-
isOpen:
|
|
4173
|
-
updateSearch:
|
|
4174
|
-
enterPressedInSearch:
|
|
4175
|
-
showFilterButton:
|
|
4176
|
-
searchedValue:
|
|
3981
|
+
onFilterButtonClick: import_prop_types10.default.func,
|
|
3982
|
+
isOpen: import_prop_types10.default.bool,
|
|
3983
|
+
updateSearch: import_prop_types10.default.func,
|
|
3984
|
+
enterPressedInSearch: import_prop_types10.default.func,
|
|
3985
|
+
showFilterButton: import_prop_types10.default.bool,
|
|
3986
|
+
searchedValue: import_prop_types10.default.string
|
|
4177
3987
|
};
|
|
4178
|
-
var SearchWithFiltersForTable_default =
|
|
3988
|
+
var SearchWithFiltersForTable_default = import_react60.default.memo(SearchWithFiltersForTable);
|
|
4179
3989
|
|
|
4180
3990
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
|
|
4181
|
-
var
|
|
4182
|
-
var
|
|
3991
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
3992
|
+
var useStyles20 = (0, import_mui22.makeStyles)()((theme) => ({
|
|
4183
3993
|
container: {
|
|
4184
3994
|
display: "flex",
|
|
4185
3995
|
alignItems: "center",
|
|
@@ -4209,11 +4019,11 @@ var SearchAndFilterHeaderForTable = (props) => {
|
|
|
4209
4019
|
button,
|
|
4210
4020
|
searchedValue
|
|
4211
4021
|
} = props;
|
|
4212
|
-
const { classes } =
|
|
4213
|
-
return /* @__PURE__ */ (0,
|
|
4214
|
-
/* @__PURE__ */ (0,
|
|
4215
|
-
/* @__PURE__ */ (0,
|
|
4216
|
-
/* @__PURE__ */ (0,
|
|
4022
|
+
const { classes } = useStyles20();
|
|
4023
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_Box.default, { className: classes.container, children: [
|
|
4024
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_Box.default, { className: classes.leftSection, children: [
|
|
4025
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(AppLabel_default, { appName }),
|
|
4026
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
4217
4027
|
SearchWithFiltersForTable_default,
|
|
4218
4028
|
{
|
|
4219
4029
|
onFilterButtonClick,
|
|
@@ -4224,41 +4034,41 @@ var SearchAndFilterHeaderForTable = (props) => {
|
|
|
4224
4034
|
searchedValue
|
|
4225
4035
|
}
|
|
4226
4036
|
),
|
|
4227
|
-
copy && /* @__PURE__ */ (0,
|
|
4037
|
+
copy && /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
4228
4038
|
import_Box.default,
|
|
4229
4039
|
{
|
|
4230
4040
|
sx: {
|
|
4231
4041
|
margin: 0.5
|
|
4232
4042
|
},
|
|
4233
|
-
children: /* @__PURE__ */ (0,
|
|
4043
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(OutlinedButton_default, { copy })
|
|
4234
4044
|
}
|
|
4235
4045
|
)
|
|
4236
4046
|
] }),
|
|
4237
|
-
/* @__PURE__ */ (0,
|
|
4047
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_Box.default, { children: button })
|
|
4238
4048
|
] });
|
|
4239
4049
|
};
|
|
4240
4050
|
SearchAndFilterHeaderForTable.propTypes = {
|
|
4241
|
-
appName:
|
|
4242
|
-
button:
|
|
4243
|
-
copy:
|
|
4244
|
-
enterPressedInSearch:
|
|
4245
|
-
isOpen:
|
|
4246
|
-
onFilterButtonClick:
|
|
4247
|
-
searchedValue:
|
|
4248
|
-
showFilterButton:
|
|
4249
|
-
updateSearch:
|
|
4051
|
+
appName: import_prop_types11.default.string,
|
|
4052
|
+
button: import_prop_types11.default.node,
|
|
4053
|
+
copy: import_prop_types11.default.string,
|
|
4054
|
+
enterPressedInSearch: import_prop_types11.default.func,
|
|
4055
|
+
isOpen: import_prop_types11.default.bool,
|
|
4056
|
+
onFilterButtonClick: import_prop_types11.default.func,
|
|
4057
|
+
searchedValue: import_prop_types11.default.string,
|
|
4058
|
+
showFilterButton: import_prop_types11.default.bool,
|
|
4059
|
+
updateSearch: import_prop_types11.default.func
|
|
4250
4060
|
};
|
|
4251
|
-
var SearchAndFilterHeaderForTable_default =
|
|
4061
|
+
var SearchAndFilterHeaderForTable_default = import_react61.default.memo(SearchAndFilterHeaderForTable);
|
|
4252
4062
|
|
|
4253
4063
|
// src/components/SearchWithFilters/SearchWithFilters.tsx
|
|
4254
|
-
var
|
|
4064
|
+
var import_react62 = __toESM(require("react"), 1);
|
|
4255
4065
|
var import_ArrowDropDown2 = __toESM(require("@mui/icons-material/ArrowDropDown"), 1);
|
|
4256
4066
|
var import_ArrowDropUp2 = __toESM(require("@mui/icons-material/ArrowDropUp"), 1);
|
|
4257
4067
|
var import_Search2 = __toESM(require("@mui/icons-material/Search"), 1);
|
|
4258
|
-
var
|
|
4259
|
-
var
|
|
4260
|
-
var
|
|
4261
|
-
var
|
|
4068
|
+
var import_material20 = require("@mui/material");
|
|
4069
|
+
var import_mui23 = require("tss-react/mui");
|
|
4070
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
4071
|
+
var useStyles21 = (0, import_mui23.makeStyles)()((theme) => ({
|
|
4262
4072
|
searchContainer: {
|
|
4263
4073
|
height: 46,
|
|
4264
4074
|
padding: "4px",
|
|
@@ -4302,8 +4112,8 @@ var SearchWithFilters = ({
|
|
|
4302
4112
|
},
|
|
4303
4113
|
disabled = false
|
|
4304
4114
|
}) => {
|
|
4305
|
-
const [searchText, setSearchText] = (0,
|
|
4306
|
-
const { classes } =
|
|
4115
|
+
const [searchText, setSearchText] = (0, import_react62.useState)(searchValue);
|
|
4116
|
+
const { classes } = useStyles21();
|
|
4307
4117
|
const handleTextChange = (e) => {
|
|
4308
4118
|
const { value } = e.target;
|
|
4309
4119
|
setSearchText(value);
|
|
@@ -4311,16 +4121,16 @@ var SearchWithFilters = ({
|
|
|
4311
4121
|
};
|
|
4312
4122
|
const handleKeyDown = (e) => {
|
|
4313
4123
|
if (e.key === "Enter") {
|
|
4314
|
-
enterPressedInSearch
|
|
4124
|
+
enterPressedInSearch?.();
|
|
4315
4125
|
}
|
|
4316
4126
|
};
|
|
4317
|
-
(0,
|
|
4127
|
+
(0, import_react62.useEffect)(() => {
|
|
4318
4128
|
setSearchText(searchValue);
|
|
4319
4129
|
}, [searchValue]);
|
|
4320
|
-
return /* @__PURE__ */ (0,
|
|
4321
|
-
/* @__PURE__ */ (0,
|
|
4322
|
-
/* @__PURE__ */ (0,
|
|
4323
|
-
|
|
4130
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_material20.Paper, { className: classes.searchContainer, children: [
|
|
4131
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_Search2.default, { className: classes.icon, fontSize: "small" }),
|
|
4132
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4133
|
+
import_material20.InputBase,
|
|
4324
4134
|
{
|
|
4325
4135
|
className: classes.input,
|
|
4326
4136
|
placeholder: "Search",
|
|
@@ -4331,29 +4141,29 @@ var SearchWithFilters = ({
|
|
|
4331
4141
|
inputProps: { "aria-label": "search" }
|
|
4332
4142
|
}
|
|
4333
4143
|
),
|
|
4334
|
-
/* @__PURE__ */ (0,
|
|
4335
|
-
/* @__PURE__ */ (0,
|
|
4336
|
-
|
|
4144
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_material20.Divider, { className: classes.divider, orientation: "vertical" }),
|
|
4145
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
4146
|
+
import_material20.Button,
|
|
4337
4147
|
{
|
|
4338
4148
|
className: classes.filterButton,
|
|
4339
4149
|
onClick: filterClick,
|
|
4340
4150
|
disabled,
|
|
4341
4151
|
children: [
|
|
4342
4152
|
"Filters",
|
|
4343
|
-
showFilters ? /* @__PURE__ */ (0,
|
|
4153
|
+
showFilters ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_ArrowDropUp2.default, {}) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_ArrowDropDown2.default, {})
|
|
4344
4154
|
]
|
|
4345
4155
|
}
|
|
4346
4156
|
)
|
|
4347
4157
|
] });
|
|
4348
4158
|
};
|
|
4349
|
-
var SearchWithFilters_default =
|
|
4159
|
+
var SearchWithFilters_default = import_react62.default.memo(SearchWithFilters);
|
|
4350
4160
|
|
|
4351
4161
|
// src/components/SectionName/SectionName.tsx
|
|
4352
4162
|
var import_Info = __toESM(require("@mui/icons-material/Info"), 1);
|
|
4353
|
-
var
|
|
4354
|
-
var
|
|
4355
|
-
var
|
|
4356
|
-
var
|
|
4163
|
+
var import_material21 = require("@mui/material");
|
|
4164
|
+
var import_mui24 = require("tss-react/mui");
|
|
4165
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
4166
|
+
var useStyles22 = (0, import_mui24.makeStyles)()(() => ({
|
|
4357
4167
|
container: {
|
|
4358
4168
|
display: "flex",
|
|
4359
4169
|
alignItems: "flex-end",
|
|
@@ -4387,11 +4197,11 @@ var SectionName = ({
|
|
|
4387
4197
|
buttonText,
|
|
4388
4198
|
buttonDisabled
|
|
4389
4199
|
}) => {
|
|
4390
|
-
const { classes } =
|
|
4391
|
-
return /* @__PURE__ */ (0,
|
|
4392
|
-
/* @__PURE__ */ (0,
|
|
4393
|
-
/* @__PURE__ */ (0,
|
|
4394
|
-
|
|
4200
|
+
const { classes } = useStyles22();
|
|
4201
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_material21.Box, { className: classes.container, children: [
|
|
4202
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_material21.Box, { className: classes.titleContainer, children: [
|
|
4203
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4204
|
+
import_material21.Typography,
|
|
4395
4205
|
{
|
|
4396
4206
|
variant: "h5",
|
|
4397
4207
|
component: "a",
|
|
@@ -4400,7 +4210,7 @@ var SectionName = ({
|
|
|
4400
4210
|
children: name
|
|
4401
4211
|
}
|
|
4402
4212
|
),
|
|
4403
|
-
tooltipDescription ? /* @__PURE__ */ (0,
|
|
4213
|
+
tooltipDescription ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_material21.Tooltip, { title: tooltipDescription, placement: "right", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4404
4214
|
import_Info.default,
|
|
4405
4215
|
{
|
|
4406
4216
|
fontSize: "small",
|
|
@@ -4409,7 +4219,7 @@ var SectionName = ({
|
|
|
4409
4219
|
}
|
|
4410
4220
|
) }) : null
|
|
4411
4221
|
] }),
|
|
4412
|
-
buttonText ? /* @__PURE__ */ (0,
|
|
4222
|
+
buttonText ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4413
4223
|
ExtendedButton_default,
|
|
4414
4224
|
{
|
|
4415
4225
|
type: "add",
|
|
@@ -4427,14 +4237,14 @@ var SectionName = ({
|
|
|
4427
4237
|
var SectionName_default = SectionName;
|
|
4428
4238
|
|
|
4429
4239
|
// src/components/Shift/Shift.tsx
|
|
4430
|
-
var
|
|
4431
|
-
var
|
|
4432
|
-
var
|
|
4240
|
+
var import_material22 = require("@mui/material");
|
|
4241
|
+
var import_prop_types12 = require("prop-types");
|
|
4242
|
+
var import_mui25 = require("tss-react/mui");
|
|
4433
4243
|
|
|
4434
4244
|
// src/resources/icons/DayIcon.js
|
|
4435
|
-
var
|
|
4436
|
-
var
|
|
4437
|
-
var DayIcon = (props) => /* @__PURE__ */ (0,
|
|
4245
|
+
var import_react63 = __toESM(require("react"), 1);
|
|
4246
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
4247
|
+
var DayIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4438
4248
|
"svg",
|
|
4439
4249
|
{
|
|
4440
4250
|
fill: "none",
|
|
@@ -4443,7 +4253,7 @@ var DayIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
|
4443
4253
|
width: 22,
|
|
4444
4254
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4445
4255
|
...props,
|
|
4446
|
-
children: /* @__PURE__ */ (0,
|
|
4256
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4447
4257
|
"path",
|
|
4448
4258
|
{
|
|
4449
4259
|
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",
|
|
@@ -4455,9 +4265,9 @@ var DayIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
|
4455
4265
|
var DayIcon_default = DayIcon;
|
|
4456
4266
|
|
|
4457
4267
|
// src/resources/icons/NightIcon.js
|
|
4458
|
-
var
|
|
4459
|
-
var
|
|
4460
|
-
var NightIcon = (props) => /* @__PURE__ */ (0,
|
|
4268
|
+
var import_react64 = __toESM(require("react"), 1);
|
|
4269
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
4270
|
+
var NightIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
4461
4271
|
"svg",
|
|
4462
4272
|
{
|
|
4463
4273
|
fill: "none",
|
|
@@ -4466,7 +4276,7 @@ var NightIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
|
4466
4276
|
width: "14",
|
|
4467
4277
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4468
4278
|
...props,
|
|
4469
|
-
children: /* @__PURE__ */ (0,
|
|
4279
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
4470
4280
|
"path",
|
|
4471
4281
|
{
|
|
4472
4282
|
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",
|
|
@@ -4478,12 +4288,12 @@ var NightIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
|
4478
4288
|
var NightIcon_default = NightIcon;
|
|
4479
4289
|
|
|
4480
4290
|
// src/components/Shift/Shift.tsx
|
|
4481
|
-
var
|
|
4291
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
4482
4292
|
var ShiftEnum = {
|
|
4483
4293
|
DAY: "Day",
|
|
4484
4294
|
NIGHT: "Night"
|
|
4485
4295
|
};
|
|
4486
|
-
var
|
|
4296
|
+
var useStyles23 = (0, import_mui25.makeStyles)()(() => ({
|
|
4487
4297
|
shiftName: {
|
|
4488
4298
|
textTransform: "uppercase",
|
|
4489
4299
|
fontWeight: 600
|
|
@@ -4491,12 +4301,12 @@ var useStyles25 = (0, import_mui27.makeStyles)()(() => ({
|
|
|
4491
4301
|
}));
|
|
4492
4302
|
var Shift = ({ shift }) => {
|
|
4493
4303
|
const shiftIcon = {
|
|
4494
|
-
[ShiftEnum.DAY]: /* @__PURE__ */ (0,
|
|
4495
|
-
[ShiftEnum.NIGHT]: /* @__PURE__ */ (0,
|
|
4304
|
+
[ShiftEnum.DAY]: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(DayIcon_default, { "data-testid": "shift-day" }),
|
|
4305
|
+
[ShiftEnum.NIGHT]: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(NightIcon_default, { "data-testid": "shift-night" })
|
|
4496
4306
|
};
|
|
4497
|
-
const { classes } =
|
|
4498
|
-
return /* @__PURE__ */ (0,
|
|
4499
|
-
|
|
4307
|
+
const { classes } = useStyles23();
|
|
4308
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
4309
|
+
import_material22.Box,
|
|
4500
4310
|
{
|
|
4501
4311
|
sx: {
|
|
4502
4312
|
display: "flex",
|
|
@@ -4505,30 +4315,30 @@ var Shift = ({ shift }) => {
|
|
|
4505
4315
|
},
|
|
4506
4316
|
children: [
|
|
4507
4317
|
shiftIcon[shift],
|
|
4508
|
-
/* @__PURE__ */ (0,
|
|
4509
|
-
/* @__PURE__ */ (0,
|
|
4318
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_material22.Typography, { children: [
|
|
4319
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("span", { className: classes.shiftName, children: [
|
|
4510
4320
|
shift,
|
|
4511
4321
|
" "
|
|
4512
4322
|
] }),
|
|
4513
|
-
/* @__PURE__ */ (0,
|
|
4323
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { children: "Shift" })
|
|
4514
4324
|
] })
|
|
4515
4325
|
]
|
|
4516
4326
|
}
|
|
4517
4327
|
);
|
|
4518
4328
|
};
|
|
4519
4329
|
Shift.propTypes = {
|
|
4520
|
-
shift: (0,
|
|
4330
|
+
shift: (0, import_prop_types12.oneOf)(Object.values(ShiftEnum))
|
|
4521
4331
|
};
|
|
4522
4332
|
var Shift_default = Shift;
|
|
4523
4333
|
|
|
4524
4334
|
// src/components/surfaces/FixedFooter/index.js
|
|
4525
|
-
var
|
|
4526
|
-
var
|
|
4527
|
-
var
|
|
4528
|
-
var
|
|
4529
|
-
var
|
|
4335
|
+
var import_react65 = __toESM(require("react"), 1);
|
|
4336
|
+
var import_material23 = require("@mui/material");
|
|
4337
|
+
var import_prop_types13 = __toESM(require("prop-types"), 1);
|
|
4338
|
+
var import_mui26 = require("tss-react/mui");
|
|
4339
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
4530
4340
|
var footerHeight = "64px";
|
|
4531
|
-
var
|
|
4341
|
+
var useStyles24 = (0, import_mui26.makeStyles)()((theme) => ({
|
|
4532
4342
|
root: {
|
|
4533
4343
|
position: "fixed",
|
|
4534
4344
|
bottom: 0,
|
|
@@ -4546,11 +4356,11 @@ var useStyles26 = (0, import_mui28.makeStyles)()((theme) => ({
|
|
|
4546
4356
|
}
|
|
4547
4357
|
}));
|
|
4548
4358
|
var FixedFooter = ({ justifyContent, children }) => {
|
|
4549
|
-
const { classes } =
|
|
4550
|
-
return /* @__PURE__ */ (0,
|
|
4551
|
-
/* @__PURE__ */ (0,
|
|
4552
|
-
/* @__PURE__ */ (0,
|
|
4553
|
-
|
|
4359
|
+
const { classes } = useStyles24();
|
|
4360
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_material23.Box, { children: [
|
|
4361
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_material23.Box, { className: classes.fixedOffset }),
|
|
4362
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
4363
|
+
import_material23.Box,
|
|
4554
4364
|
{
|
|
4555
4365
|
className: classes.root,
|
|
4556
4366
|
sx: {
|
|
@@ -4562,21 +4372,21 @@ var FixedFooter = ({ justifyContent, children }) => {
|
|
|
4562
4372
|
] });
|
|
4563
4373
|
};
|
|
4564
4374
|
FixedFooter.propTypes = {
|
|
4565
|
-
children:
|
|
4566
|
-
justifyContent:
|
|
4375
|
+
children: import_prop_types13.default.node.isRequired,
|
|
4376
|
+
justifyContent: import_prop_types13.default.string
|
|
4567
4377
|
};
|
|
4568
|
-
var FixedFooter_default =
|
|
4378
|
+
var FixedFooter_default = import_react65.default.memo(FixedFooter);
|
|
4569
4379
|
|
|
4570
4380
|
// src/components/Table/SmartTableHeader.js
|
|
4571
|
-
var
|
|
4381
|
+
var import_react66 = __toESM(require("react"), 1);
|
|
4572
4382
|
var import_TableCell = __toESM(require("@mui/material/TableCell"), 1);
|
|
4573
4383
|
var import_TableHead = __toESM(require("@mui/material/TableHead"), 1);
|
|
4574
4384
|
var import_TableRow = __toESM(require("@mui/material/TableRow"), 1);
|
|
4575
4385
|
var import_TableSortLabel = __toESM(require("@mui/material/TableSortLabel"), 1);
|
|
4576
|
-
var
|
|
4577
|
-
var
|
|
4578
|
-
var
|
|
4579
|
-
var
|
|
4386
|
+
var import_prop_types14 = __toESM(require("prop-types"), 1);
|
|
4387
|
+
var import_mui27 = require("tss-react/mui");
|
|
4388
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
4389
|
+
var useStyles25 = (0, import_mui27.makeStyles)()(() => ({
|
|
4580
4390
|
root: {
|
|
4581
4391
|
backgroundColor: colors.background,
|
|
4582
4392
|
"& .MuiTableSortLabel-root": {
|
|
@@ -4604,18 +4414,18 @@ var useStyles27 = (0, import_mui29.makeStyles)()(() => ({
|
|
|
4604
4414
|
}
|
|
4605
4415
|
}));
|
|
4606
4416
|
var SmartTableHeader = (props) => {
|
|
4607
|
-
const { classes } =
|
|
4417
|
+
const { classes } = useStyles25();
|
|
4608
4418
|
const { order, orderBy, onRequestSort } = props;
|
|
4609
4419
|
const createSortHandler = (property) => (event) => {
|
|
4610
4420
|
onRequestSort(event, property);
|
|
4611
4421
|
};
|
|
4612
|
-
return /* @__PURE__ */ (0,
|
|
4422
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_TableHead.default, { className: classes.root, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_TableRow.default, { children: props.headCells.map((headCell) => /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
4613
4423
|
import_TableCell.default,
|
|
4614
4424
|
{
|
|
4615
4425
|
className: classes.containerTh,
|
|
4616
4426
|
align: "left",
|
|
4617
4427
|
sortDirection: orderBy === headCell.id ? order : false,
|
|
4618
|
-
children: /* @__PURE__ */ (0,
|
|
4428
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
4619
4429
|
import_TableSortLabel.default,
|
|
4620
4430
|
{
|
|
4621
4431
|
active: orderBy === headCell.id,
|
|
@@ -4623,7 +4433,7 @@ var SmartTableHeader = (props) => {
|
|
|
4623
4433
|
onClick: createSortHandler(headCell.id),
|
|
4624
4434
|
children: [
|
|
4625
4435
|
headCell.label,
|
|
4626
|
-
orderBy === headCell.id ? /* @__PURE__ */ (0,
|
|
4436
|
+
orderBy === headCell.id ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("span", { className: classes.visuallyHidden, children: order === "desc" ? "sorted descending" : "sorted ascending" }) : null
|
|
4627
4437
|
]
|
|
4628
4438
|
}
|
|
4629
4439
|
)
|
|
@@ -4632,23 +4442,23 @@ var SmartTableHeader = (props) => {
|
|
|
4632
4442
|
)) }) });
|
|
4633
4443
|
};
|
|
4634
4444
|
SmartTableHeader.propTypes = {
|
|
4635
|
-
order:
|
|
4636
|
-
orderBy:
|
|
4637
|
-
onRequestSort:
|
|
4638
|
-
headCells:
|
|
4445
|
+
order: import_prop_types14.default.string,
|
|
4446
|
+
orderBy: import_prop_types14.default.string,
|
|
4447
|
+
onRequestSort: import_prop_types14.default.func,
|
|
4448
|
+
headCells: import_prop_types14.default.any
|
|
4639
4449
|
};
|
|
4640
|
-
var SmartTableHeader_default =
|
|
4450
|
+
var SmartTableHeader_default = import_react66.default.memo(SmartTableHeader);
|
|
4641
4451
|
|
|
4642
4452
|
// src/components/Table/TableDesktop.tsx
|
|
4643
|
-
var
|
|
4644
|
-
var
|
|
4645
|
-
var
|
|
4453
|
+
var import_react67 = require("react");
|
|
4454
|
+
var import_material25 = require("@mui/material");
|
|
4455
|
+
var import_mui29 = require("tss-react/mui");
|
|
4646
4456
|
|
|
4647
4457
|
// src/components/Table/TableEmptyResult.tsx
|
|
4648
|
-
var
|
|
4649
|
-
var
|
|
4650
|
-
var
|
|
4651
|
-
var
|
|
4458
|
+
var import_material24 = require("@mui/material");
|
|
4459
|
+
var import_mui28 = require("tss-react/mui");
|
|
4460
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
4461
|
+
var useStyles26 = (0, import_mui28.makeStyles)()(() => ({
|
|
4652
4462
|
tableCellIcon: { padding: 24, height: "calc(100vh - 320px)" },
|
|
4653
4463
|
tableCellDefault: { padding: 24 }
|
|
4654
4464
|
}));
|
|
@@ -4657,12 +4467,12 @@ var TableEmptyResult = ({
|
|
|
4657
4467
|
handleClickOnClearFiltersButton = () => {
|
|
4658
4468
|
}
|
|
4659
4469
|
}) => {
|
|
4660
|
-
const { classes } =
|
|
4661
|
-
return showClearFilterButton ? /* @__PURE__ */ (0,
|
|
4662
|
-
/* @__PURE__ */ (0,
|
|
4663
|
-
/* @__PURE__ */ (0,
|
|
4664
|
-
/* @__PURE__ */ (0,
|
|
4665
|
-
/* @__PURE__ */ (0,
|
|
4470
|
+
const { classes } = useStyles26();
|
|
4471
|
+
return showClearFilterButton ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_material24.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_material24.TableCell, { className: classes.tableCellIcon, colSpan: 8, align: "center", children: [
|
|
4472
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(EmptyGlassIcon_default, {}),
|
|
4473
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_material24.Typography, { variant: "h6", children: "No results found." }),
|
|
4474
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_material24.Typography, { variant: "subtitle1", children: "Search without applied filters?" }),
|
|
4475
|
+
/* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
4666
4476
|
FilledButton_default,
|
|
4667
4477
|
{
|
|
4668
4478
|
copy: "Search",
|
|
@@ -4671,8 +4481,8 @@ var TableEmptyResult = ({
|
|
|
4671
4481
|
onClick: handleClickOnClearFiltersButton
|
|
4672
4482
|
}
|
|
4673
4483
|
)
|
|
4674
|
-
] }) }) : /* @__PURE__ */ (0,
|
|
4675
|
-
|
|
4484
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_material24.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
4485
|
+
import_material24.TableCell,
|
|
4676
4486
|
{
|
|
4677
4487
|
className: classes.tableCellDefault,
|
|
4678
4488
|
colSpan: 8,
|
|
@@ -4684,8 +4494,8 @@ var TableEmptyResult = ({
|
|
|
4684
4494
|
var TableEmptyResult_default = TableEmptyResult;
|
|
4685
4495
|
|
|
4686
4496
|
// src/components/Table/TableDesktop.tsx
|
|
4687
|
-
var
|
|
4688
|
-
var
|
|
4497
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
4498
|
+
var useStyles27 = (0, import_mui29.makeStyles)()(() => ({
|
|
4689
4499
|
root: {
|
|
4690
4500
|
justifyContent: "space-between",
|
|
4691
4501
|
display: "flex",
|
|
@@ -4730,14 +4540,14 @@ var TableDesktop = ({
|
|
|
4730
4540
|
deleteItem,
|
|
4731
4541
|
keyField
|
|
4732
4542
|
}) => {
|
|
4733
|
-
const [order, setOrder] = (0,
|
|
4734
|
-
|
|
4543
|
+
const [order, setOrder] = (0, import_react67.useState)(
|
|
4544
|
+
appliedFilters?.sortDir || "desc"
|
|
4735
4545
|
);
|
|
4736
|
-
const [orderBy, setOrderBy] = (0,
|
|
4737
|
-
|
|
4546
|
+
const [orderBy, setOrderBy] = (0, import_react67.useState)(
|
|
4547
|
+
appliedFilters?.sortField || "delivery_date"
|
|
4738
4548
|
);
|
|
4739
|
-
const [page] = (0,
|
|
4740
|
-
const { classes } =
|
|
4549
|
+
const [page] = (0, import_react67.useState)(0);
|
|
4550
|
+
const { classes } = useStyles27();
|
|
4741
4551
|
const rowHeight = 56;
|
|
4742
4552
|
const handleRequestSort = (event, property) => {
|
|
4743
4553
|
const isAsc = orderBy === property && order === "asc";
|
|
@@ -4747,24 +4557,24 @@ var TableDesktop = ({
|
|
|
4747
4557
|
updateSort(property, orderDir);
|
|
4748
4558
|
};
|
|
4749
4559
|
const emptyRows = rowsPerPage - data.length;
|
|
4750
|
-
return /* @__PURE__ */ (0,
|
|
4751
|
-
|
|
4560
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: classes.root, style: { height }, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_material25.Paper, { className: classes.paper, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { children: [...Array(Math.floor(rowsPerPage))].map((rowPerPage) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
4561
|
+
import_material25.Skeleton,
|
|
4752
4562
|
{
|
|
4753
4563
|
animation: "pulse",
|
|
4754
4564
|
style: { margin: "8px", opacity: 0.4 },
|
|
4755
4565
|
variant: "rectangular",
|
|
4756
4566
|
height: rowHeight
|
|
4757
4567
|
},
|
|
4758
|
-
|
|
4759
|
-
)) }) : /* @__PURE__ */ (0,
|
|
4760
|
-
/* @__PURE__ */ (0,
|
|
4761
|
-
|
|
4568
|
+
rowPerPage
|
|
4569
|
+
)) }) : /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
|
|
4570
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_material25.TableContainer, { className: classes.container, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
|
|
4571
|
+
import_material25.Table,
|
|
4762
4572
|
{
|
|
4763
4573
|
"aria-labelledby": "tableTitle",
|
|
4764
4574
|
"aria-label": "sticky table",
|
|
4765
4575
|
stickyHeader: true,
|
|
4766
4576
|
children: [
|
|
4767
|
-
/* @__PURE__ */ (0,
|
|
4577
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
4768
4578
|
SmartTableHeader_default,
|
|
4769
4579
|
{
|
|
4770
4580
|
headCells,
|
|
@@ -4773,15 +4583,15 @@ var TableDesktop = ({
|
|
|
4773
4583
|
onRequestSort: handleRequestSort
|
|
4774
4584
|
}
|
|
4775
4585
|
),
|
|
4776
|
-
/* @__PURE__ */ (0,
|
|
4777
|
-
stableSort(data, getSorting(order, orderBy)).slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map((item, index) => /* @__PURE__ */ (0,
|
|
4586
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_material25.TableBody, { children: [
|
|
4587
|
+
stableSort(data, getSorting(order, orderBy)).slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage).map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
4778
4588
|
RenderItem,
|
|
4779
4589
|
{
|
|
4780
4590
|
...{ ...item, index, deleteItem }
|
|
4781
4591
|
},
|
|
4782
4592
|
item[keyField]
|
|
4783
4593
|
)),
|
|
4784
|
-
rowsPerPage === emptyRows && /* @__PURE__ */ (0,
|
|
4594
|
+
rowsPerPage === emptyRows && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
4785
4595
|
TableEmptyResult_default,
|
|
4786
4596
|
{
|
|
4787
4597
|
showClearFilterButton,
|
|
@@ -4798,13 +4608,13 @@ var TableDesktop = ({
|
|
|
4798
4608
|
var TableDesktop_default = TableDesktop;
|
|
4799
4609
|
|
|
4800
4610
|
// src/components/TableHeader/TableHeader.tsx
|
|
4801
|
-
var
|
|
4611
|
+
var import_react68 = require("react");
|
|
4802
4612
|
var import_ImportExport = __toESM(require("@mui/icons-material/ImportExport"), 1);
|
|
4803
|
-
var
|
|
4804
|
-
var
|
|
4805
|
-
var
|
|
4806
|
-
var
|
|
4807
|
-
var
|
|
4613
|
+
var import_material26 = require("@mui/material");
|
|
4614
|
+
var import_prop_types15 = require("prop-types");
|
|
4615
|
+
var import_mui30 = require("tss-react/mui");
|
|
4616
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
4617
|
+
var useStyles28 = (0, import_mui30.makeStyles)()(() => ({
|
|
4808
4618
|
sortLabel: {
|
|
4809
4619
|
"& .MuiTableSortLabel-icon": {
|
|
4810
4620
|
opacity: 1
|
|
@@ -4812,9 +4622,9 @@ var useStyles30 = (0, import_mui32.makeStyles)()(() => ({
|
|
|
4812
4622
|
}
|
|
4813
4623
|
}));
|
|
4814
4624
|
var TableHeader = ({ cells, onSort }) => {
|
|
4815
|
-
const [sortableCells, setSortableCells] = (0,
|
|
4816
|
-
const { classes } =
|
|
4817
|
-
(0,
|
|
4625
|
+
const [sortableCells, setSortableCells] = (0, import_react68.useState)([]);
|
|
4626
|
+
const { classes } = useStyles28();
|
|
4627
|
+
(0, import_react68.useEffect)(() => {
|
|
4818
4628
|
setSortableCells(cells);
|
|
4819
4629
|
}, []);
|
|
4820
4630
|
const getNewSortDirection = (direction) => {
|
|
@@ -4827,7 +4637,7 @@ var TableHeader = ({ cells, onSort }) => {
|
|
|
4827
4637
|
return "";
|
|
4828
4638
|
};
|
|
4829
4639
|
const handleSortClick = (sortedCell) => {
|
|
4830
|
-
const newDirection = getNewSortDirection(sortedCell
|
|
4640
|
+
const newDirection = getNewSortDirection(sortedCell?.direction);
|
|
4831
4641
|
if (onSort) {
|
|
4832
4642
|
onSort({
|
|
4833
4643
|
direction: newDirection,
|
|
@@ -4848,11 +4658,11 @@ var TableHeader = ({ cells, onSort }) => {
|
|
|
4848
4658
|
});
|
|
4849
4659
|
setSortableCells(sortedCells);
|
|
4850
4660
|
};
|
|
4851
|
-
return /* @__PURE__ */ (0,
|
|
4852
|
-
|
|
4661
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_material26.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_material26.TableRow, { children: sortableCells.map((cell, key) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_material26.TableCell, { children: cell.isSortable ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
4662
|
+
import_material26.TableSortLabel,
|
|
4853
4663
|
{
|
|
4854
4664
|
className: classes.sortLabel,
|
|
4855
|
-
direction:
|
|
4665
|
+
direction: cell?.direction || "asc",
|
|
4856
4666
|
IconComponent: import_ImportExport.default,
|
|
4857
4667
|
onClick: () => handleSortClick(cell),
|
|
4858
4668
|
children: cell.label
|
|
@@ -4863,17 +4673,87 @@ TableHeader.defaultProps = {
|
|
|
4863
4673
|
onSort: null
|
|
4864
4674
|
};
|
|
4865
4675
|
TableHeader.propTypes = {
|
|
4866
|
-
cells: (0,
|
|
4867
|
-
(0,
|
|
4868
|
-
direction: (0,
|
|
4869
|
-
isSortable:
|
|
4870
|
-
label:
|
|
4871
|
-
name:
|
|
4676
|
+
cells: (0, import_prop_types15.arrayOf)(
|
|
4677
|
+
(0, import_prop_types15.shape)({
|
|
4678
|
+
direction: (0, import_prop_types15.oneOf)(["asc", "desc", ""]),
|
|
4679
|
+
isSortable: import_prop_types15.bool,
|
|
4680
|
+
label: import_prop_types15.string,
|
|
4681
|
+
name: import_prop_types15.string
|
|
4872
4682
|
})
|
|
4873
4683
|
).isRequired,
|
|
4874
|
-
onSort:
|
|
4684
|
+
onSort: import_prop_types15.func
|
|
4685
|
+
};
|
|
4686
|
+
var TableHeader_default = (0, import_react68.memo)(TableHeader);
|
|
4687
|
+
|
|
4688
|
+
// src/components/TheToolbar/TheToolbar.tsx
|
|
4689
|
+
var import_react69 = __toESM(require("react"), 1);
|
|
4690
|
+
var import_material27 = require("@mui/material");
|
|
4691
|
+
var import_mui31 = require("tss-react/mui");
|
|
4692
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
4693
|
+
var useStyles29 = (0, import_mui31.makeStyles)()((theme) => ({
|
|
4694
|
+
menuButton: {
|
|
4695
|
+
color: theme.palette.primary.contrastText
|
|
4696
|
+
},
|
|
4697
|
+
searchNatoora: {
|
|
4698
|
+
width: "100%"
|
|
4699
|
+
},
|
|
4700
|
+
searchIcon: {
|
|
4701
|
+
opacity: ".5"
|
|
4702
|
+
},
|
|
4703
|
+
inputRoot: {
|
|
4704
|
+
color: "inherit"
|
|
4705
|
+
},
|
|
4706
|
+
inputInput: {
|
|
4707
|
+
transition: theme.transitions.create("width"),
|
|
4708
|
+
width: "100%"
|
|
4709
|
+
},
|
|
4710
|
+
topBar: {
|
|
4711
|
+
display: "flex",
|
|
4712
|
+
gap: theme.spacing(1),
|
|
4713
|
+
backgroundColor: colors.topBar
|
|
4714
|
+
},
|
|
4715
|
+
drawer: {
|
|
4716
|
+
backgroundColor: "black"
|
|
4717
|
+
},
|
|
4718
|
+
drawerItem: {
|
|
4719
|
+
maxWidth: "300px",
|
|
4720
|
+
width: "80vw"
|
|
4721
|
+
},
|
|
4722
|
+
offset: theme.mixins.toolbar
|
|
4723
|
+
}));
|
|
4724
|
+
var TheToolbar = ({
|
|
4725
|
+
imageLogoDarkSmall,
|
|
4726
|
+
imageLogoLightSmall,
|
|
4727
|
+
handleOpen,
|
|
4728
|
+
LeftDrawer: LeftDrawer2
|
|
4729
|
+
}) => {
|
|
4730
|
+
const { classes } = useStyles29();
|
|
4731
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_material27.Box, { children: [
|
|
4732
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_material27.AppBar, { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_material27.Toolbar, { className: classes.topBar, children: [
|
|
4733
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
4734
|
+
RoundButton_default,
|
|
4735
|
+
{
|
|
4736
|
+
className: classes.menuButton,
|
|
4737
|
+
icon: "menu",
|
|
4738
|
+
noStrokes: true,
|
|
4739
|
+
onClick: handleOpen
|
|
4740
|
+
}
|
|
4741
|
+
),
|
|
4742
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
4743
|
+
CompanyLogo_default,
|
|
4744
|
+
{
|
|
4745
|
+
size: "small",
|
|
4746
|
+
color: "light",
|
|
4747
|
+
imageLogoDarkSmall,
|
|
4748
|
+
imageLogoLightSmall
|
|
4749
|
+
}
|
|
4750
|
+
)
|
|
4751
|
+
] }) }),
|
|
4752
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_material27.Box, { className: classes.offset }),
|
|
4753
|
+
LeftDrawer2
|
|
4754
|
+
] });
|
|
4875
4755
|
};
|
|
4876
|
-
var
|
|
4756
|
+
var TheToolbar_default = import_react69.default.memo(TheToolbar);
|
|
4877
4757
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4878
4758
|
0 && (module.exports = {
|
|
4879
4759
|
AlertDialog,
|
|
@@ -4886,7 +4766,6 @@ var TableHeader_default = (0, import_react69.memo)(TableHeader);
|
|
|
4886
4766
|
Date,
|
|
4887
4767
|
DeleteSubstitutionDialogContent,
|
|
4888
4768
|
DeleteUserDialogContent,
|
|
4889
|
-
DesktopContainer,
|
|
4890
4769
|
ExtendedButton,
|
|
4891
4770
|
FilledButton,
|
|
4892
4771
|
FilledButtonLg,
|