@natoora-libs/core 0.2.16-packages-upgrade → 0.2.17
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/{TableDesktop-Z0KE59L4.d.cts → TableDesktop-wpKCBVE4.d.cts} +2 -1
- package/dist/{TableDesktop-Z0KE59L4.d.ts → TableDesktop-wpKCBVE4.d.ts} +2 -1
- package/dist/components/index.cjs +228 -183
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +10 -7
- package/dist/components/index.d.ts +10 -7
- package/dist/components/index.js +209 -163
- package/dist/components/index.js.map +1 -1
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +31 -20
package/dist/components/index.js
CHANGED
|
@@ -369,7 +369,9 @@ var AlertDialog = ({
|
|
|
369
369
|
rejectCopy,
|
|
370
370
|
acceptCopy,
|
|
371
371
|
content,
|
|
372
|
-
disabledContentPadding
|
|
372
|
+
disabledContentPadding,
|
|
373
|
+
disableEnforceFocus,
|
|
374
|
+
disableRestoreFocus
|
|
373
375
|
}) => {
|
|
374
376
|
const { classes } = useStyles();
|
|
375
377
|
return /* @__PURE__ */ jsx2(
|
|
@@ -380,6 +382,8 @@ var AlertDialog = ({
|
|
|
380
382
|
maxWidth,
|
|
381
383
|
fullScreen,
|
|
382
384
|
fullWidth,
|
|
385
|
+
disableEnforceFocus,
|
|
386
|
+
disableRestoreFocus,
|
|
383
387
|
children: /* @__PURE__ */ jsxs2(Box, { children: [
|
|
384
388
|
/* @__PURE__ */ jsxs2(Box, { className: classes.topSection, children: [
|
|
385
389
|
alertTitle ? /* @__PURE__ */ jsx2(Typography2, { variant: "h5", className: classes.title, children: alertTitle }) : null,
|
|
@@ -1894,7 +1898,8 @@ import {
|
|
|
1894
1898
|
Send,
|
|
1895
1899
|
ThumbDown,
|
|
1896
1900
|
ThumbUp,
|
|
1897
|
-
Undo
|
|
1901
|
+
Undo,
|
|
1902
|
+
SwapHoriz
|
|
1898
1903
|
} from "@mui/icons-material";
|
|
1899
1904
|
import { Fab, Tooltip as Tooltip5 } from "@mui/material";
|
|
1900
1905
|
import { makeStyles as makeStyles11 } from "tss-react/mui";
|
|
@@ -3284,7 +3289,8 @@ var RoundButton = ({
|
|
|
3284
3289
|
knife: /* @__PURE__ */ jsx70(IconKnife_default, {}),
|
|
3285
3290
|
bicycle: /* @__PURE__ */ jsx70(IconBicycle_default, {}),
|
|
3286
3291
|
heart: /* @__PURE__ */ jsx70(IconHeart_default, {}),
|
|
3287
|
-
airplane: /* @__PURE__ */ jsx70(IconAirplane_default, {})
|
|
3292
|
+
airplane: /* @__PURE__ */ jsx70(IconAirplane_default, {}),
|
|
3293
|
+
swapHoriz: /* @__PURE__ */ jsx70(SwapHoriz, { fontSize: iconSize })
|
|
3288
3294
|
};
|
|
3289
3295
|
const filteredSize = size === "double" ? void 0 : size;
|
|
3290
3296
|
const handleClick = (e) => {
|
|
@@ -3667,41 +3673,29 @@ var ClearFiltersConfirmationDialog = ({
|
|
|
3667
3673
|
};
|
|
3668
3674
|
|
|
3669
3675
|
// src/components/CompanyLogo/CompanyLogo.tsx
|
|
3670
|
-
import { makeStyles as makeStyles15 } from "tss-react/mui";
|
|
3671
3676
|
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
3672
|
-
var useStyles15 = makeStyles15()((theme, { imageLogoDarkSmall, imageLogoLightSmall }) => ({
|
|
3673
|
-
logoSmall: {
|
|
3674
|
-
height: 46,
|
|
3675
|
-
width: 112
|
|
3676
|
-
},
|
|
3677
|
-
logoMedium: {
|
|
3678
|
-
height: 72,
|
|
3679
|
-
width: 160
|
|
3680
|
-
},
|
|
3681
|
-
logoDark: {
|
|
3682
|
-
backgroundImage: `url(${imageLogoDarkSmall})`
|
|
3683
|
-
},
|
|
3684
|
-
logoLight: {
|
|
3685
|
-
backgroundImage: `url(${imageLogoLightSmall})`
|
|
3686
|
-
}
|
|
3687
|
-
}));
|
|
3688
3677
|
var CompanyLogo = ({
|
|
3689
3678
|
size,
|
|
3690
3679
|
color,
|
|
3691
3680
|
imageLogoDarkSmall,
|
|
3692
3681
|
imageLogoLightSmall
|
|
3693
3682
|
}) => {
|
|
3694
|
-
const
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3683
|
+
const src = color === "dark" ? imageLogoDarkSmall : imageLogoLightSmall;
|
|
3684
|
+
const dimensions = size === "small" ? { width: 112, height: 46 } : { width: 160, height: 72 };
|
|
3685
|
+
return /* @__PURE__ */ jsx76(
|
|
3686
|
+
"img",
|
|
3687
|
+
{
|
|
3688
|
+
src,
|
|
3689
|
+
alt: "Company logo",
|
|
3690
|
+
width: dimensions.width,
|
|
3691
|
+
height: dimensions.height,
|
|
3692
|
+
fetchPriority: "high",
|
|
3693
|
+
decoding: "async",
|
|
3694
|
+
style: {
|
|
3695
|
+
display: "block"
|
|
3696
|
+
}
|
|
3697
|
+
}
|
|
3698
|
+
);
|
|
3705
3699
|
};
|
|
3706
3700
|
var CompanyLogo_default = CompanyLogo;
|
|
3707
3701
|
|
|
@@ -3754,9 +3748,9 @@ var ControlledCheckbox_default = ControlledCheckbox;
|
|
|
3754
3748
|
// src/components/ControlledNumberInput/ControlledNumberInput.tsx
|
|
3755
3749
|
import { Controller as Controller2 } from "react-hook-form";
|
|
3756
3750
|
import { TextField as TextField2 } from "@mui/material";
|
|
3757
|
-
import { makeStyles as
|
|
3751
|
+
import { makeStyles as makeStyles15 } from "tss-react/mui";
|
|
3758
3752
|
import { jsx as jsx78 } from "react/jsx-runtime";
|
|
3759
|
-
var
|
|
3753
|
+
var useStyles15 = makeStyles15()(() => ({
|
|
3760
3754
|
selectInput: {
|
|
3761
3755
|
minWidth: 122
|
|
3762
3756
|
}
|
|
@@ -3772,7 +3766,7 @@ var ControlledNumberInput = ({
|
|
|
3772
3766
|
shrink = false,
|
|
3773
3767
|
className
|
|
3774
3768
|
}) => {
|
|
3775
|
-
const { classes } =
|
|
3769
|
+
const { classes } = useStyles15();
|
|
3776
3770
|
const blockInvalidChar = (input) => ![
|
|
3777
3771
|
"0",
|
|
3778
3772
|
"1",
|
|
@@ -3838,10 +3832,10 @@ import {
|
|
|
3838
3832
|
InputAdornment as InputAdornment2,
|
|
3839
3833
|
TextField as TextField3
|
|
3840
3834
|
} from "@mui/material";
|
|
3841
|
-
import { makeStyles as
|
|
3835
|
+
import { makeStyles as makeStyles16 } from "tss-react/mui";
|
|
3842
3836
|
import { jsx as jsx79, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
3843
3837
|
var convertUnderscoreToHyphen = (str) => str.replace(/_/g, "-");
|
|
3844
|
-
var
|
|
3838
|
+
var useStyles16 = makeStyles16()((theme) => ({
|
|
3845
3839
|
textFieldButtons: {
|
|
3846
3840
|
display: "flex",
|
|
3847
3841
|
flexDirection: "column",
|
|
@@ -3869,7 +3863,7 @@ var ControlledNumericField = ({
|
|
|
3869
3863
|
"data-testid": dataTestId,
|
|
3870
3864
|
fieldName
|
|
3871
3865
|
}) => {
|
|
3872
|
-
const { classes } =
|
|
3866
|
+
const { classes } = useStyles16();
|
|
3873
3867
|
const isLowerThanMinimum = (value) => min !== void 0 && min > value;
|
|
3874
3868
|
const isGreaterThanMaximum = (value) => max !== void 0 && max < value;
|
|
3875
3869
|
const handleChange = (field, value) => {
|
|
@@ -4021,9 +4015,9 @@ var ControlledNumericField_default = ControlledNumericField;
|
|
|
4021
4015
|
// src/components/ControlledSelectWithArray/ControlledSelectWithArray.tsx
|
|
4022
4016
|
import { Controller as Controller4 } from "react-hook-form";
|
|
4023
4017
|
import { FormControl, FormHelperText, InputLabel, Select } from "@mui/material";
|
|
4024
|
-
import { makeStyles as
|
|
4018
|
+
import { makeStyles as makeStyles17 } from "tss-react/mui";
|
|
4025
4019
|
import { jsx as jsx80, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
4026
|
-
var
|
|
4020
|
+
var useStyles17 = makeStyles17()(() => ({
|
|
4027
4021
|
selectInput: {
|
|
4028
4022
|
minWidth: 122
|
|
4029
4023
|
}
|
|
@@ -4038,7 +4032,7 @@ var ControlledSelectWithArray = ({
|
|
|
4038
4032
|
className,
|
|
4039
4033
|
revalidateFormFunction
|
|
4040
4034
|
}) => {
|
|
4041
|
-
const { classes } =
|
|
4035
|
+
const { classes } = useStyles17();
|
|
4042
4036
|
return /* @__PURE__ */ jsx80(
|
|
4043
4037
|
Controller4,
|
|
4044
4038
|
{
|
|
@@ -4090,9 +4084,9 @@ var ControlledSelectWithArray_default = ControlledSelectWithArray;
|
|
|
4090
4084
|
// src/components/ControlledSelectWithObject/ControlledSelectWithObject.tsx
|
|
4091
4085
|
import { Controller as Controller5 } from "react-hook-form";
|
|
4092
4086
|
import { FormControl as FormControl2, FormHelperText as FormHelperText2, InputLabel as InputLabel2, Select as Select2 } from "@mui/material";
|
|
4093
|
-
import { makeStyles as
|
|
4087
|
+
import { makeStyles as makeStyles18 } from "tss-react/mui";
|
|
4094
4088
|
import { jsx as jsx81, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
4095
|
-
var
|
|
4089
|
+
var useStyles18 = makeStyles18()(() => ({
|
|
4096
4090
|
selectInput: {
|
|
4097
4091
|
minWidth: 122
|
|
4098
4092
|
}
|
|
@@ -4108,7 +4102,7 @@ var ControlledSelectWithObject = ({
|
|
|
4108
4102
|
listToDisableFromOptions = [],
|
|
4109
4103
|
revalidateFormFunction
|
|
4110
4104
|
}) => {
|
|
4111
|
-
const { classes } =
|
|
4105
|
+
const { classes } = useStyles18();
|
|
4112
4106
|
return /* @__PURE__ */ jsx81(
|
|
4113
4107
|
Controller5,
|
|
4114
4108
|
{
|
|
@@ -4171,9 +4165,9 @@ import {
|
|
|
4171
4165
|
} from "react-hook-form";
|
|
4172
4166
|
import { Box as Box17, TextField as TextField4 } from "@mui/material";
|
|
4173
4167
|
import classNames from "classnames";
|
|
4174
|
-
import { makeStyles as
|
|
4168
|
+
import { makeStyles as makeStyles19 } from "tss-react/mui";
|
|
4175
4169
|
import { jsx as jsx82, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
4176
|
-
var
|
|
4170
|
+
var useStyles19 = makeStyles19()(() => ({
|
|
4177
4171
|
fullWidthWrapper: {
|
|
4178
4172
|
maxWidth: "100%"
|
|
4179
4173
|
},
|
|
@@ -4199,7 +4193,7 @@ var ControlledValidTextInput = ({
|
|
|
4199
4193
|
updateCustomerData,
|
|
4200
4194
|
customHandleBlurValidationAndSubmit
|
|
4201
4195
|
}) => {
|
|
4202
|
-
const { classes } =
|
|
4196
|
+
const { classes } = useStyles19();
|
|
4203
4197
|
const defaultHandleBlurValidationAndSubmit = async ({ name, value, onChange }, isDirty) => {
|
|
4204
4198
|
const trimmedValue = value?.trim();
|
|
4205
4199
|
if (value !== trimmedValue) {
|
|
@@ -4282,9 +4276,9 @@ var ControlledValidTextInput_default = ControlledValidTextInput;
|
|
|
4282
4276
|
import { useState as useState4 } from "react";
|
|
4283
4277
|
import { Paper as Paper2, Skeleton as Skeleton3 } from "@mui/material";
|
|
4284
4278
|
import { DataGrid as MUIDataGrid } from "@mui/x-data-grid";
|
|
4285
|
-
import { makeStyles as
|
|
4279
|
+
import { makeStyles as makeStyles20 } from "tss-react/mui";
|
|
4286
4280
|
import { Fragment as Fragment3, jsx as jsx83, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
4287
|
-
var
|
|
4281
|
+
var useStyles20 = makeStyles20()(() => ({
|
|
4288
4282
|
root: {
|
|
4289
4283
|
justifyContent: "space-between",
|
|
4290
4284
|
display: "flex",
|
|
@@ -4321,7 +4315,7 @@ var DataGrid = ({
|
|
|
4321
4315
|
height,
|
|
4322
4316
|
children
|
|
4323
4317
|
}) => {
|
|
4324
|
-
const { classes } =
|
|
4318
|
+
const { classes } = useStyles20();
|
|
4325
4319
|
const [sortModel, setSortModel] = useState4([
|
|
4326
4320
|
{
|
|
4327
4321
|
field: sortField || "id",
|
|
@@ -4462,9 +4456,9 @@ var Date_default = Date;
|
|
|
4462
4456
|
// src/components/DeleteSubstitutionDialogContent/DeleteSubstitutionDialogContent.tsx
|
|
4463
4457
|
import { memo as memo10 } from "react";
|
|
4464
4458
|
import { Alert as Alert2, AlertTitle as AlertTitle2, Typography as Typography12, Box as Box18 } from "@mui/material";
|
|
4465
|
-
import { makeStyles as
|
|
4459
|
+
import { makeStyles as makeStyles21 } from "tss-react/mui";
|
|
4466
4460
|
import { Fragment as Fragment4, jsx as jsx85, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
4467
|
-
var
|
|
4461
|
+
var useStyles21 = makeStyles21()(() => ({
|
|
4468
4462
|
alert: { marginBottom: 16 },
|
|
4469
4463
|
bottomBar: {
|
|
4470
4464
|
marginTop: "12px",
|
|
@@ -4480,7 +4474,7 @@ var DeleteSubstitutionDialogContent = ({
|
|
|
4480
4474
|
substitutionName,
|
|
4481
4475
|
deleteSubstitution
|
|
4482
4476
|
}) => {
|
|
4483
|
-
const { classes } =
|
|
4477
|
+
const { classes } = useStyles21();
|
|
4484
4478
|
return /* @__PURE__ */ jsxs50(Fragment4, { children: [
|
|
4485
4479
|
/* @__PURE__ */ jsxs50(Alert2, { severity: "warning", className: classes.alert, children: [
|
|
4486
4480
|
/* @__PURE__ */ jsxs50(AlertTitle2, { children: [
|
|
@@ -4510,9 +4504,9 @@ var DeleteSubstitutionDialogContent_default = memo10(DeleteSubstitutionDialogCon
|
|
|
4510
4504
|
// src/components/DeleteUserDialogContent/DeleteUserDialogContent.tsx
|
|
4511
4505
|
import { memo as memo11 } from "react";
|
|
4512
4506
|
import { Alert as Alert3, AlertTitle as AlertTitle3, Typography as Typography13, Box as Box19 } from "@mui/material";
|
|
4513
|
-
import { makeStyles as
|
|
4507
|
+
import { makeStyles as makeStyles22 } from "tss-react/mui";
|
|
4514
4508
|
import { Fragment as Fragment5, jsx as jsx86, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
4515
|
-
var
|
|
4509
|
+
var useStyles22 = makeStyles22()(() => ({
|
|
4516
4510
|
alert: { marginBottom: 16 },
|
|
4517
4511
|
bottomBar: {
|
|
4518
4512
|
marginTop: "12px",
|
|
@@ -4528,7 +4522,7 @@ var DeleteUserDialogContent = ({
|
|
|
4528
4522
|
userName,
|
|
4529
4523
|
deleteUser
|
|
4530
4524
|
}) => {
|
|
4531
|
-
const { classes } =
|
|
4525
|
+
const { classes } = useStyles22();
|
|
4532
4526
|
return /* @__PURE__ */ jsxs51(Fragment5, { children: [
|
|
4533
4527
|
/* @__PURE__ */ jsxs51(Alert3, { severity: "warning", className: classes.alert, children: [
|
|
4534
4528
|
/* @__PURE__ */ jsxs51(AlertTitle3, { children: [
|
|
@@ -4618,9 +4612,9 @@ var FileCard_default = FileCard;
|
|
|
4618
4612
|
import { memo as memo12 } from "react";
|
|
4619
4613
|
import { Typography as Typography15 } from "@mui/material";
|
|
4620
4614
|
import { brown, teal } from "@mui/material/colors";
|
|
4621
|
-
import { makeStyles as
|
|
4615
|
+
import { makeStyles as makeStyles23 } from "tss-react/mui";
|
|
4622
4616
|
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
4623
|
-
var
|
|
4617
|
+
var useStyles23 = makeStyles23()((theme) => ({
|
|
4624
4618
|
siteOne: {
|
|
4625
4619
|
backgroundColor: teal["50"],
|
|
4626
4620
|
color: teal["500"],
|
|
@@ -4646,7 +4640,7 @@ var useStyles24 = makeStyles24()((theme) => ({
|
|
|
4646
4640
|
}));
|
|
4647
4641
|
var FilledLabel = (props) => {
|
|
4648
4642
|
const { color, copy } = props;
|
|
4649
|
-
const { classes } =
|
|
4643
|
+
const { classes } = useStyles23();
|
|
4650
4644
|
return /* @__PURE__ */ jsx88(Typography15, { variant: "caption", className: classes[color], children: copy });
|
|
4651
4645
|
};
|
|
4652
4646
|
var FilledLabel_default = memo12(FilledLabel);
|
|
@@ -4662,9 +4656,9 @@ import {
|
|
|
4662
4656
|
ListItemText,
|
|
4663
4657
|
Divider as Divider4
|
|
4664
4658
|
} from "@mui/material";
|
|
4665
|
-
import { makeStyles as
|
|
4659
|
+
import { makeStyles as makeStyles24 } from "tss-react/mui";
|
|
4666
4660
|
import { Fragment as Fragment6, jsx as jsx89, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
4667
|
-
var
|
|
4661
|
+
var useStyles24 = makeStyles24()((theme) => ({
|
|
4668
4662
|
filterOptions: {
|
|
4669
4663
|
height: 450,
|
|
4670
4664
|
overflowY: "auto",
|
|
@@ -4692,7 +4686,7 @@ var FilterGroupSelector = ({
|
|
|
4692
4686
|
handleClickOnApply,
|
|
4693
4687
|
optionsList = [{ category: "Category", options: ["Option 1"] }]
|
|
4694
4688
|
}) => {
|
|
4695
|
-
const { classes } =
|
|
4689
|
+
const { classes } = useStyles24();
|
|
4696
4690
|
const [anchorEl, setAnchorEl] = useState5(null);
|
|
4697
4691
|
const [values, setValues] = useState5([]);
|
|
4698
4692
|
const open = Boolean(anchorEl);
|
|
@@ -4791,9 +4785,9 @@ import {
|
|
|
4791
4785
|
ListItemText as ListItemText2,
|
|
4792
4786
|
Divider as Divider5
|
|
4793
4787
|
} from "@mui/material";
|
|
4794
|
-
import { makeStyles as
|
|
4788
|
+
import { makeStyles as makeStyles25 } from "tss-react/mui";
|
|
4795
4789
|
import { Fragment as Fragment7, jsx as jsx90, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
4796
|
-
var
|
|
4790
|
+
var useStyles25 = makeStyles25()((theme) => ({
|
|
4797
4791
|
filterOptions: {
|
|
4798
4792
|
height: 450,
|
|
4799
4793
|
overflowY: "auto",
|
|
@@ -4820,7 +4814,7 @@ var FilterSimpleSelector = ({
|
|
|
4820
4814
|
setSelectedOptions,
|
|
4821
4815
|
handleClickOnApply
|
|
4822
4816
|
}) => {
|
|
4823
|
-
const { classes } =
|
|
4817
|
+
const { classes } = useStyles25();
|
|
4824
4818
|
const [anchorEl, setAnchorEl] = useState6(null);
|
|
4825
4819
|
const [values, setValues] = useState6([]);
|
|
4826
4820
|
const open = Boolean(anchorEl);
|
|
@@ -4899,10 +4893,10 @@ var FilterSimpleSelector_default = FilterSimpleSelector;
|
|
|
4899
4893
|
// src/components/FixedFooter/FixedFooter.tsx
|
|
4900
4894
|
import * as React4 from "react";
|
|
4901
4895
|
import { Box as Box23 } from "@mui/material";
|
|
4902
|
-
import { makeStyles as
|
|
4896
|
+
import { makeStyles as makeStyles26 } from "tss-react/mui";
|
|
4903
4897
|
import { jsx as jsx91, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
4904
4898
|
var footerHeight = "64px";
|
|
4905
|
-
var
|
|
4899
|
+
var useStyles26 = makeStyles26()((theme) => ({
|
|
4906
4900
|
root: {
|
|
4907
4901
|
position: "fixed",
|
|
4908
4902
|
bottom: 0,
|
|
@@ -4913,14 +4907,16 @@ var useStyles27 = makeStyles27()((theme) => ({
|
|
|
4913
4907
|
borderTop: `1px solid ${colors.neutral400}`,
|
|
4914
4908
|
width: "100%",
|
|
4915
4909
|
height: footerHeight,
|
|
4916
|
-
padding: theme.spacing(0, 2)
|
|
4910
|
+
padding: theme.spacing(0, 2),
|
|
4911
|
+
zIndex: 999
|
|
4917
4912
|
},
|
|
4918
4913
|
fixedOffset: {
|
|
4919
|
-
height: footerHeight
|
|
4914
|
+
height: footerHeight,
|
|
4915
|
+
backgroundColor: "white"
|
|
4920
4916
|
}
|
|
4921
4917
|
}));
|
|
4922
4918
|
var FixedFooter = ({ justifyContent, children }) => {
|
|
4923
|
-
const { classes } =
|
|
4919
|
+
const { classes } = useStyles26();
|
|
4924
4920
|
return /* @__PURE__ */ jsxs55(Box23, { children: [
|
|
4925
4921
|
/* @__PURE__ */ jsx91(Box23, { className: classes.fixedOffset }),
|
|
4926
4922
|
/* @__PURE__ */ jsx91(
|
|
@@ -4939,9 +4935,9 @@ var FixedFooter_default = React4.memo(FixedFooter);
|
|
|
4939
4935
|
|
|
4940
4936
|
// src/components/Header/Header.tsx
|
|
4941
4937
|
import { Paper as Paper3 } from "@mui/material";
|
|
4942
|
-
import { makeStyles as
|
|
4938
|
+
import { makeStyles as makeStyles27 } from "tss-react/mui";
|
|
4943
4939
|
import { jsx as jsx92, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
4944
|
-
var
|
|
4940
|
+
var useStyles27 = makeStyles27()((theme) => ({
|
|
4945
4941
|
container: {
|
|
4946
4942
|
margin: theme.spacing(1)
|
|
4947
4943
|
},
|
|
@@ -4962,7 +4958,7 @@ var Header = ({
|
|
|
4962
4958
|
children = null,
|
|
4963
4959
|
wrappedHeader = false
|
|
4964
4960
|
}) => {
|
|
4965
|
-
const { classes, cx } =
|
|
4961
|
+
const { classes, cx } = useStyles27();
|
|
4966
4962
|
return /* @__PURE__ */ jsx92(
|
|
4967
4963
|
Paper3,
|
|
4968
4964
|
{
|
|
@@ -5014,9 +5010,9 @@ import { Fragment as Fragment9 } from "react";
|
|
|
5014
5010
|
import { Box as Box24, Chip as Chip4, Typography as Typography18 } from "@mui/material";
|
|
5015
5011
|
import { purple } from "@mui/material/colors";
|
|
5016
5012
|
import classNames2 from "classnames";
|
|
5017
|
-
import { makeStyles as
|
|
5013
|
+
import { makeStyles as makeStyles28 } from "tss-react/mui";
|
|
5018
5014
|
import { jsx as jsx94, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
5019
|
-
var
|
|
5015
|
+
var useStyles28 = makeStyles28()(() => ({
|
|
5020
5016
|
container: {
|
|
5021
5017
|
display: "flex",
|
|
5022
5018
|
alignItems: "center",
|
|
@@ -5051,7 +5047,7 @@ var LocationsSectionInfo = ({
|
|
|
5051
5047
|
isPicking,
|
|
5052
5048
|
isStock
|
|
5053
5049
|
}) => {
|
|
5054
|
-
const { classes } =
|
|
5050
|
+
const { classes } = useStyles28();
|
|
5055
5051
|
const getLocationLabel = () => {
|
|
5056
5052
|
if (isPicking && isStock) {
|
|
5057
5053
|
return "PICKING & STOCK";
|
|
@@ -5085,9 +5081,9 @@ var LocationsSectionInfo_default = LocationsSectionInfo;
|
|
|
5085
5081
|
// src/components/Notes/Notes.tsx
|
|
5086
5082
|
import { useEffect as useEffect4, useState as useState7 } from "react";
|
|
5087
5083
|
import { FormControl as FormControl3, Input, InputAdornment as InputAdornment3, InputLabel as InputLabel3 } from "@mui/material";
|
|
5088
|
-
import { makeStyles as
|
|
5084
|
+
import { makeStyles as makeStyles29 } from "tss-react/mui";
|
|
5089
5085
|
import { jsx as jsx95, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
5090
|
-
var
|
|
5086
|
+
var useStyles29 = makeStyles29()((theme) => ({
|
|
5091
5087
|
wrapper: {
|
|
5092
5088
|
padding: theme.spacing(3),
|
|
5093
5089
|
backgroundColor: colors.blueOpacity08
|
|
@@ -5128,7 +5124,7 @@ var Notes2 = ({
|
|
|
5128
5124
|
onChange(value);
|
|
5129
5125
|
}
|
|
5130
5126
|
};
|
|
5131
|
-
const { classes } =
|
|
5127
|
+
const { classes } = useStyles29();
|
|
5132
5128
|
return /* @__PURE__ */ jsx95("div", { className: classes.wrapper, children: /* @__PURE__ */ jsxs59(FormControl3, { fullWidth: true, children: [
|
|
5133
5129
|
/* @__PURE__ */ jsx95(InputLabel3, { htmlFor: "notes", children: "Notes" }),
|
|
5134
5130
|
/* @__PURE__ */ jsx95(
|
|
@@ -5311,9 +5307,9 @@ var Numpad_default = Numpad;
|
|
|
5311
5307
|
// src/components/NumpadInput/NumpadInput.tsx
|
|
5312
5308
|
import { memo as memo14, useState as useState8 } from "react";
|
|
5313
5309
|
import { TextField as TextField5, Typography as Typography19 } from "@mui/material";
|
|
5314
|
-
import { makeStyles as
|
|
5310
|
+
import { makeStyles as makeStyles30 } from "tss-react/mui";
|
|
5315
5311
|
import { jsx as jsx97, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
5316
|
-
var
|
|
5312
|
+
var useStyles30 = makeStyles30()(() => ({
|
|
5317
5313
|
c_numpadinput__textfield: {
|
|
5318
5314
|
"& .MuiInputLabel-outlined.MuiInputLabel-shrink": {
|
|
5319
5315
|
transform: "translate(18px, -13px) scale(0.75)"
|
|
@@ -5338,7 +5334,7 @@ var useStyles31 = makeStyles31()(() => ({
|
|
|
5338
5334
|
}));
|
|
5339
5335
|
var NumpadInput = (props) => {
|
|
5340
5336
|
const { handleNextClick, inputLabel, children } = props;
|
|
5341
|
-
const { classes } =
|
|
5337
|
+
const { classes } = useStyles30();
|
|
5342
5338
|
const [state, setState] = useState8("");
|
|
5343
5339
|
const handleNumpadClick = (value) => {
|
|
5344
5340
|
setState(state + value);
|
|
@@ -5389,9 +5385,9 @@ var NumpadInput_default = memo14(NumpadInput);
|
|
|
5389
5385
|
|
|
5390
5386
|
// src/components/NumpadPlus/NumpadPlus.tsx
|
|
5391
5387
|
import { Box as Box25 } from "@mui/material";
|
|
5392
|
-
import { makeStyles as
|
|
5388
|
+
import { makeStyles as makeStyles31 } from "tss-react/mui";
|
|
5393
5389
|
import { jsx as jsx98, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
5394
|
-
var
|
|
5390
|
+
var useStyles31 = makeStyles31()(() => ({
|
|
5395
5391
|
numpadContainer: {
|
|
5396
5392
|
display: "flex",
|
|
5397
5393
|
flexDirection: "row",
|
|
@@ -5421,7 +5417,7 @@ var useStyles32 = makeStyles32()(() => ({
|
|
|
5421
5417
|
}
|
|
5422
5418
|
}));
|
|
5423
5419
|
var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
5424
|
-
const { classes: styles } =
|
|
5420
|
+
const { classes: styles } = useStyles31();
|
|
5425
5421
|
return /* @__PURE__ */ jsxs62(Box25, { className: styles.numpadContainer, children: [
|
|
5426
5422
|
/* @__PURE__ */ jsxs62(Box25, { className: styles.numpadNumbersContainer, children: [
|
|
5427
5423
|
/* @__PURE__ */ jsxs62(Box25, { className: styles.numpadRow, children: [
|
|
@@ -5556,10 +5552,10 @@ var NumpadPlus_default = NumpadPlus;
|
|
|
5556
5552
|
|
|
5557
5553
|
// src/components/Pagination/Pagination.tsx
|
|
5558
5554
|
import { Pagination, Paper as Paper4, Typography as Typography20 } from "@mui/material";
|
|
5559
|
-
import { makeStyles as
|
|
5555
|
+
import { makeStyles as makeStyles32 } from "tss-react/mui";
|
|
5560
5556
|
import { jsx as jsx99, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
5561
5557
|
var paginationHeight = "56px";
|
|
5562
|
-
var
|
|
5558
|
+
var useStyles32 = makeStyles32()((theme) => ({
|
|
5563
5559
|
root: {
|
|
5564
5560
|
display: "flex",
|
|
5565
5561
|
flexDirection: "row",
|
|
@@ -5583,7 +5579,8 @@ var useStyles33 = makeStyles33()((theme) => ({
|
|
|
5583
5579
|
left: 0
|
|
5584
5580
|
},
|
|
5585
5581
|
fixedOffset: {
|
|
5586
|
-
height: paginationHeight
|
|
5582
|
+
height: paginationHeight,
|
|
5583
|
+
backgroundColor: "white"
|
|
5587
5584
|
}
|
|
5588
5585
|
}));
|
|
5589
5586
|
var PaginationForTable = ({
|
|
@@ -5595,7 +5592,7 @@ var PaginationForTable = ({
|
|
|
5595
5592
|
style,
|
|
5596
5593
|
updateFilters
|
|
5597
5594
|
}) => {
|
|
5598
|
-
const { classes, cx } =
|
|
5595
|
+
const { classes, cx } = useStyles32();
|
|
5599
5596
|
const handleChange = (event, value) => {
|
|
5600
5597
|
updateFilters({ ...appliedFilters, page: value });
|
|
5601
5598
|
};
|
|
@@ -5690,9 +5687,9 @@ import {
|
|
|
5690
5687
|
TextField as TextField7,
|
|
5691
5688
|
Typography as Typography22
|
|
5692
5689
|
} from "@mui/material";
|
|
5693
|
-
import { makeStyles as
|
|
5690
|
+
import { makeStyles as makeStyles33 } from "tss-react/mui";
|
|
5694
5691
|
import { jsx as jsx101, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
5695
|
-
var
|
|
5692
|
+
var useStyles33 = makeStyles33()((theme) => ({
|
|
5696
5693
|
container: {
|
|
5697
5694
|
position: "relative",
|
|
5698
5695
|
/**
|
|
@@ -5833,7 +5830,7 @@ var PlusMinusInput = ({
|
|
|
5833
5830
|
}
|
|
5834
5831
|
updateInputValue(value);
|
|
5835
5832
|
};
|
|
5836
|
-
const { classes, cx } =
|
|
5833
|
+
const { classes, cx } = useStyles33();
|
|
5837
5834
|
return /* @__PURE__ */ jsx101("div", { className: classes.container, children: /* @__PURE__ */ jsxs65(
|
|
5838
5835
|
FormGroup,
|
|
5839
5836
|
{
|
|
@@ -6250,7 +6247,7 @@ var RenderAvatar_default = RenderAvatar;
|
|
|
6250
6247
|
|
|
6251
6248
|
// src/components/RenderContentList/RenderContentList.tsx
|
|
6252
6249
|
import { useEffect as useEffect7, useState as useState11, useRef as useRef5 } from "react";
|
|
6253
|
-
import
|
|
6250
|
+
import WarningAmber from "@mui/icons-material/WarningAmber";
|
|
6254
6251
|
import {
|
|
6255
6252
|
List,
|
|
6256
6253
|
ListItemButton,
|
|
@@ -6258,7 +6255,7 @@ import {
|
|
|
6258
6255
|
ListSubheader,
|
|
6259
6256
|
Tooltip as Tooltip7
|
|
6260
6257
|
} from "@mui/material";
|
|
6261
|
-
import { makeStyles as
|
|
6258
|
+
import { makeStyles as makeStyles34 } from "tss-react/mui";
|
|
6262
6259
|
|
|
6263
6260
|
// src/utils/useGetActiveSection.ts
|
|
6264
6261
|
import { useEffect as useEffect6, useState as useState10 } from "react";
|
|
@@ -6266,7 +6263,7 @@ var transformNameToID = (name) => name.replaceAll(" ", "_").toLocaleLowerCase();
|
|
|
6266
6263
|
|
|
6267
6264
|
// src/components/RenderContentList/RenderContentList.tsx
|
|
6268
6265
|
import { jsx as jsx105, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
6269
|
-
var
|
|
6266
|
+
var useStyles34 = makeStyles34()(
|
|
6270
6267
|
(_theme, _params, classes) => ({
|
|
6271
6268
|
root: {
|
|
6272
6269
|
[`&.${classes.selected}`]: {
|
|
@@ -6285,11 +6282,34 @@ var RenderContentList = ({
|
|
|
6285
6282
|
warningItems,
|
|
6286
6283
|
warningMessage = "Missing information on this section"
|
|
6287
6284
|
}) => {
|
|
6288
|
-
const { classes } =
|
|
6285
|
+
const { classes } = useStyles34();
|
|
6289
6286
|
const [active, setActive] = useState11(activeSection);
|
|
6290
6287
|
const observer = useRef5(null);
|
|
6288
|
+
const isScrolling = useRef5(false);
|
|
6289
|
+
const timeoutScrolling = useRef5(null);
|
|
6291
6290
|
useEffect7(() => {
|
|
6292
|
-
|
|
6291
|
+
if (!activeSection) {
|
|
6292
|
+
return void 0;
|
|
6293
|
+
}
|
|
6294
|
+
isScrolling.current = true;
|
|
6295
|
+
const targetId = transformNameToID(activeSection);
|
|
6296
|
+
setActive(targetId);
|
|
6297
|
+
const element = document.getElementById(targetId);
|
|
6298
|
+
if (element) {
|
|
6299
|
+
element.scrollIntoView({
|
|
6300
|
+
behavior: "smooth",
|
|
6301
|
+
block: "start"
|
|
6302
|
+
});
|
|
6303
|
+
}
|
|
6304
|
+
if (timeoutScrolling.current) {
|
|
6305
|
+
clearTimeout(timeoutScrolling.current);
|
|
6306
|
+
}
|
|
6307
|
+
timeoutScrolling.current = setTimeout(() => {
|
|
6308
|
+
isScrolling.current = false;
|
|
6309
|
+
}, 1e3);
|
|
6310
|
+
return () => {
|
|
6311
|
+
if (timeoutScrolling.current) clearTimeout(timeoutScrolling.current);
|
|
6312
|
+
};
|
|
6293
6313
|
}, [activeSection]);
|
|
6294
6314
|
useEffect7(() => {
|
|
6295
6315
|
const sections = items.map((item) => ({
|
|
@@ -6299,9 +6319,14 @@ var RenderContentList = ({
|
|
|
6299
6319
|
if (observer.current) {
|
|
6300
6320
|
observer.current.disconnect();
|
|
6301
6321
|
}
|
|
6302
|
-
if (sections.length === 0)
|
|
6322
|
+
if (sections.length === 0) {
|
|
6323
|
+
return void 0;
|
|
6324
|
+
}
|
|
6303
6325
|
observer.current = new IntersectionObserver(
|
|
6304
6326
|
(entries) => {
|
|
6327
|
+
if (isScrolling.current) {
|
|
6328
|
+
return;
|
|
6329
|
+
}
|
|
6305
6330
|
const visibleSection = entries.find((entry) => entry.isIntersecting);
|
|
6306
6331
|
if (visibleSection) {
|
|
6307
6332
|
setActive(visibleSection.target.id);
|
|
@@ -6320,6 +6345,21 @@ var RenderContentList = ({
|
|
|
6320
6345
|
observer.current?.disconnect();
|
|
6321
6346
|
};
|
|
6322
6347
|
}, [items]);
|
|
6348
|
+
const handleMenuClick = (id) => {
|
|
6349
|
+
isScrolling.current = true;
|
|
6350
|
+
setActive(id);
|
|
6351
|
+
const element = document.getElementById(id);
|
|
6352
|
+
if (element) {
|
|
6353
|
+
element.scrollIntoView({
|
|
6354
|
+
behavior: "smooth",
|
|
6355
|
+
block: "start"
|
|
6356
|
+
});
|
|
6357
|
+
}
|
|
6358
|
+
if (timeoutScrolling.current) clearTimeout(timeoutScrolling.current);
|
|
6359
|
+
timeoutScrolling.current = setTimeout(() => {
|
|
6360
|
+
isScrolling.current = false;
|
|
6361
|
+
}, 1e3);
|
|
6362
|
+
};
|
|
6323
6363
|
return /* @__PURE__ */ jsx105(
|
|
6324
6364
|
List,
|
|
6325
6365
|
{
|
|
@@ -6333,16 +6373,7 @@ var RenderContentList = ({
|
|
|
6333
6373
|
{
|
|
6334
6374
|
selected: active === id,
|
|
6335
6375
|
classes: { root: classes.root, selected: classes.selected },
|
|
6336
|
-
onClick: () =>
|
|
6337
|
-
setActive(id);
|
|
6338
|
-
const element = document.getElementById(id);
|
|
6339
|
-
if (element) {
|
|
6340
|
-
element.scrollIntoView({
|
|
6341
|
-
behavior: "smooth",
|
|
6342
|
-
block: "start"
|
|
6343
|
-
});
|
|
6344
|
-
}
|
|
6345
|
-
},
|
|
6376
|
+
onClick: () => handleMenuClick(id),
|
|
6346
6377
|
children: [
|
|
6347
6378
|
/* @__PURE__ */ jsx105(ListItemText4, { primary: item }),
|
|
6348
6379
|
(warningItems?.includes(item) || warningItems?.includes(id)) && /* @__PURE__ */ jsx105(Tooltip7, { title: warningMessage, children: /* @__PURE__ */ jsx105(WarningAmber, { color: "warning" }) })
|
|
@@ -6358,9 +6389,9 @@ var RenderContentList_default = RenderContentList;
|
|
|
6358
6389
|
|
|
6359
6390
|
// src/components/RowProductCard/RowProductCard.tsx
|
|
6360
6391
|
import { Box as Box28, Divider as Divider6, Paper as Paper5, Typography as Typography25 } from "@mui/material";
|
|
6361
|
-
import { makeStyles as
|
|
6392
|
+
import { makeStyles as makeStyles35 } from "tss-react/mui";
|
|
6362
6393
|
import { Fragment as Fragment11, jsx as jsx106, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
6363
|
-
var
|
|
6394
|
+
var useStyles35 = makeStyles35()((theme) => ({
|
|
6364
6395
|
wrapper: {
|
|
6365
6396
|
display: "flex",
|
|
6366
6397
|
gap: theme.spacing(2),
|
|
@@ -6391,7 +6422,7 @@ var RowProductCard = ({
|
|
|
6391
6422
|
product,
|
|
6392
6423
|
size = "medium"
|
|
6393
6424
|
}) => {
|
|
6394
|
-
const { classes, cx } =
|
|
6425
|
+
const { classes, cx } = useStyles35();
|
|
6395
6426
|
const hasColumns = columns.length >= 1;
|
|
6396
6427
|
const imageSize = {
|
|
6397
6428
|
small: "c_productbust__image_sm",
|
|
@@ -6458,9 +6489,9 @@ var RowProductCard_default = RowProductCard;
|
|
|
6458
6489
|
// src/components/ScrollableDialog/ScrollableDialog.tsx
|
|
6459
6490
|
import { useEffect as useEffect8, useRef as useRef6, useState as useState12 } from "react";
|
|
6460
6491
|
import { Box as Box29, Dialog as Dialog4, Divider as Divider7, Fade, Paper as Paper6, Typography as Typography26 } from "@mui/material";
|
|
6461
|
-
import { makeStyles as
|
|
6492
|
+
import { makeStyles as makeStyles36 } from "tss-react/mui";
|
|
6462
6493
|
import { jsx as jsx107, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
6463
|
-
var
|
|
6494
|
+
var useStyles36 = makeStyles36()((theme) => ({
|
|
6464
6495
|
dialog: {
|
|
6465
6496
|
margin: "0 auto",
|
|
6466
6497
|
[theme.breakpoints.up("md")]: {
|
|
@@ -6502,7 +6533,7 @@ var ScrollableDialog = ({
|
|
|
6502
6533
|
const [bodyHeight, setBodyHeight] = useState12(0);
|
|
6503
6534
|
const [hasScrollBar, setHasScrollBar] = useState12(false);
|
|
6504
6535
|
const [maxDialogHeight, setMaxDialogHeight] = useState12(0);
|
|
6505
|
-
const { classes, cx } =
|
|
6536
|
+
const { classes, cx } = useStyles36();
|
|
6506
6537
|
const headerRef = useRef6(null);
|
|
6507
6538
|
const footerRef = useRef6(null);
|
|
6508
6539
|
const titleRef = useRef6(null);
|
|
@@ -6588,7 +6619,7 @@ var ScrollableDialog_default = ScrollableDialog;
|
|
|
6588
6619
|
|
|
6589
6620
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeader.tsx
|
|
6590
6621
|
import { Box as Box30, Paper as Paper8 } from "@mui/material";
|
|
6591
|
-
import { makeStyles as
|
|
6622
|
+
import { makeStyles as makeStyles38 } from "tss-react/mui";
|
|
6592
6623
|
|
|
6593
6624
|
// src/components/SearchWithFilters/SearchWithFilters.tsx
|
|
6594
6625
|
import { useState as useState13, useEffect as useEffect9 } from "react";
|
|
@@ -6599,9 +6630,9 @@ import {
|
|
|
6599
6630
|
Search as SearchIcon
|
|
6600
6631
|
} from "@mui/icons-material";
|
|
6601
6632
|
import { Button as Button14, Divider as Divider8, InputBase, Paper as Paper7 } from "@mui/material";
|
|
6602
|
-
import { makeStyles as
|
|
6633
|
+
import { makeStyles as makeStyles37 } from "tss-react/mui";
|
|
6603
6634
|
import { jsx as jsx108, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
6604
|
-
var
|
|
6635
|
+
var useStyles37 = makeStyles37()((theme) => ({
|
|
6605
6636
|
searchContainer: {
|
|
6606
6637
|
height: 46,
|
|
6607
6638
|
padding: "4px",
|
|
@@ -6646,7 +6677,7 @@ var SearchWithFilters = ({
|
|
|
6646
6677
|
disabled = false
|
|
6647
6678
|
}) => {
|
|
6648
6679
|
const [searchText, setSearchText] = useState13(searchValue);
|
|
6649
|
-
const { classes } =
|
|
6680
|
+
const { classes } = useStyles37();
|
|
6650
6681
|
const handleTextChange = (e) => {
|
|
6651
6682
|
const { value } = e.target;
|
|
6652
6683
|
setSearchText(value);
|
|
@@ -6693,7 +6724,7 @@ var SearchWithFilters_default = React6.memo(SearchWithFilters);
|
|
|
6693
6724
|
|
|
6694
6725
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeader.tsx
|
|
6695
6726
|
import { jsx as jsx109, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
6696
|
-
var
|
|
6727
|
+
var useStyles38 = makeStyles38()((theme) => ({
|
|
6697
6728
|
wrapper: {
|
|
6698
6729
|
display: "flex",
|
|
6699
6730
|
flexDirection: "column",
|
|
@@ -6727,7 +6758,7 @@ var SearchAndFilterHeader = ({
|
|
|
6727
6758
|
appliedFiltersComponent,
|
|
6728
6759
|
searchValue
|
|
6729
6760
|
}) => {
|
|
6730
|
-
const { classes } =
|
|
6761
|
+
const { classes } = useStyles38();
|
|
6731
6762
|
return /* @__PURE__ */ jsx109(Paper8, { children: /* @__PURE__ */ jsxs73(Box30, { className: classes.wrapper, children: [
|
|
6732
6763
|
/* @__PURE__ */ jsxs73(Box30, { className: classes.container, children: [
|
|
6733
6764
|
/* @__PURE__ */ jsxs73(Box30, { className: classes.leftSection, children: [
|
|
@@ -6754,7 +6785,7 @@ var SearchAndFilterHeader_default = SearchAndFilterHeader;
|
|
|
6754
6785
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
|
|
6755
6786
|
import * as React7 from "react";
|
|
6756
6787
|
import { Box as Box32 } from "@mui/material";
|
|
6757
|
-
import { makeStyles as
|
|
6788
|
+
import { makeStyles as makeStyles40 } from "tss-react/mui";
|
|
6758
6789
|
|
|
6759
6790
|
// src/components/SearchWithFilters/SearchWithFiltersForTable.tsx
|
|
6760
6791
|
import { useState as useState14, memo as memo16 } from "react";
|
|
@@ -6764,9 +6795,9 @@ import {
|
|
|
6764
6795
|
Search as SearchIcon2
|
|
6765
6796
|
} from "@mui/icons-material";
|
|
6766
6797
|
import { Box as Box31, Button as Button15, Divider as Divider9, InputBase as InputBase2, Paper as Paper9 } from "@mui/material";
|
|
6767
|
-
import { makeStyles as
|
|
6798
|
+
import { makeStyles as makeStyles39 } from "tss-react/mui";
|
|
6768
6799
|
import { Fragment as Fragment12, jsx as jsx110, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
6769
|
-
var
|
|
6800
|
+
var useStyles39 = makeStyles39()((theme) => ({
|
|
6770
6801
|
c_search: {
|
|
6771
6802
|
height: 46,
|
|
6772
6803
|
padding: "4px",
|
|
@@ -6824,7 +6855,7 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
6824
6855
|
enterPressedInSearch,
|
|
6825
6856
|
searchedValue
|
|
6826
6857
|
} = props;
|
|
6827
|
-
const { classes } =
|
|
6858
|
+
const { classes } = useStyles39();
|
|
6828
6859
|
const [searchText, setSearchText] = useState14("");
|
|
6829
6860
|
const handleTextChange = (e) => {
|
|
6830
6861
|
const { value } = e.target;
|
|
@@ -6878,7 +6909,7 @@ var SearchWithFiltersForTable_default = memo16(SearchWithFiltersForTable);
|
|
|
6878
6909
|
|
|
6879
6910
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
|
|
6880
6911
|
import { jsx as jsx111, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
6881
|
-
var
|
|
6912
|
+
var useStyles40 = makeStyles40()((theme) => ({
|
|
6882
6913
|
container: {
|
|
6883
6914
|
display: "flex",
|
|
6884
6915
|
alignItems: "center",
|
|
@@ -6908,7 +6939,7 @@ var SearchAndFilterHeaderForTable = (props) => {
|
|
|
6908
6939
|
button,
|
|
6909
6940
|
searchedValue
|
|
6910
6941
|
} = props;
|
|
6911
|
-
const { classes } =
|
|
6942
|
+
const { classes } = useStyles40();
|
|
6912
6943
|
return /* @__PURE__ */ jsxs75(Box32, { className: classes.container, children: [
|
|
6913
6944
|
/* @__PURE__ */ jsxs75(Box32, { className: classes.leftSection, children: [
|
|
6914
6945
|
/* @__PURE__ */ jsx111(AppLabel_default, { appName }),
|
|
@@ -6975,11 +7006,12 @@ var SearchHeader = memo18(
|
|
|
6975
7006
|
);
|
|
6976
7007
|
|
|
6977
7008
|
// src/components/SectionName/SectionName.tsx
|
|
6978
|
-
import
|
|
7009
|
+
import HistoryIcon from "@mui/icons-material/History";
|
|
7010
|
+
import InfoIcon from "@mui/icons-material/Info";
|
|
6979
7011
|
import { Box as Box34, Divider as Divider10, IconButton as IconButton4, Tooltip as Tooltip8, Typography as Typography27 } from "@mui/material";
|
|
6980
|
-
import { makeStyles as
|
|
7012
|
+
import { makeStyles as makeStyles41 } from "tss-react/mui";
|
|
6981
7013
|
import { jsx as jsx113, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
6982
|
-
var
|
|
7014
|
+
var useStyles41 = makeStyles41()((theme) => ({
|
|
6983
7015
|
container: {
|
|
6984
7016
|
display: "flex",
|
|
6985
7017
|
alignItems: "flex-end",
|
|
@@ -7020,15 +7052,27 @@ var SectionName = ({
|
|
|
7020
7052
|
buttonDisabled,
|
|
7021
7053
|
openHistoryLog
|
|
7022
7054
|
}) => {
|
|
7023
|
-
const { classes } =
|
|
7055
|
+
const { classes } = useStyles41();
|
|
7056
|
+
const handleScroll = (e) => {
|
|
7057
|
+
e.preventDefault();
|
|
7058
|
+
if (sectionId) {
|
|
7059
|
+
const targetId = sectionId.startsWith("#") ? sectionId.slice(1) : sectionId;
|
|
7060
|
+
const element = document.getElementById(targetId);
|
|
7061
|
+
if (element) {
|
|
7062
|
+
element.scrollIntoView({
|
|
7063
|
+
behavior: "smooth",
|
|
7064
|
+
block: "start"
|
|
7065
|
+
});
|
|
7066
|
+
}
|
|
7067
|
+
}
|
|
7068
|
+
};
|
|
7024
7069
|
return /* @__PURE__ */ jsxs77(Box34, { className: classes.container, children: [
|
|
7025
7070
|
/* @__PURE__ */ jsxs77(Box34, { className: classes.titleContainer, children: [
|
|
7026
7071
|
/* @__PURE__ */ jsx113(
|
|
7027
7072
|
Typography27,
|
|
7028
7073
|
{
|
|
7029
7074
|
variant: "h5",
|
|
7030
|
-
|
|
7031
|
-
href: sectionId,
|
|
7075
|
+
onClick: handleScroll,
|
|
7032
7076
|
className: classes.typography,
|
|
7033
7077
|
children: name
|
|
7034
7078
|
}
|
|
@@ -7057,7 +7101,7 @@ var SectionName = ({
|
|
|
7057
7101
|
}
|
|
7058
7102
|
) : null,
|
|
7059
7103
|
openHistoryLog && buttonText && /* @__PURE__ */ jsx113(Divider10, { orientation: "vertical", sx: { height: "24px" } }),
|
|
7060
|
-
openHistoryLog && /* @__PURE__ */ jsx113(IconButton4, { size: "small", onClick: () => openHistoryLog(), children: /* @__PURE__ */ jsx113(
|
|
7104
|
+
openHistoryLog && /* @__PURE__ */ jsx113(IconButton4, { size: "small", onClick: () => openHistoryLog(), children: /* @__PURE__ */ jsx113(HistoryIcon, {}) })
|
|
7061
7105
|
] })
|
|
7062
7106
|
] });
|
|
7063
7107
|
};
|
|
@@ -7325,9 +7369,9 @@ var SmartSelect = forwardRef2(
|
|
|
7325
7369
|
import { memo as memo19 } from "react";
|
|
7326
7370
|
import { Typography as Typography29 } from "@mui/material";
|
|
7327
7371
|
import { red as red2 } from "@mui/material/colors";
|
|
7328
|
-
import { makeStyles as
|
|
7372
|
+
import { makeStyles as makeStyles42 } from "tss-react/mui";
|
|
7329
7373
|
import { jsx as jsx116 } from "react/jsx-runtime";
|
|
7330
|
-
var
|
|
7374
|
+
var useStyles42 = makeStyles42()((theme) => ({
|
|
7331
7375
|
red: {
|
|
7332
7376
|
backgroundColor: red2["50"],
|
|
7333
7377
|
color: red2["500"],
|
|
@@ -7340,7 +7384,7 @@ var useStyles43 = makeStyles43()((theme) => ({
|
|
|
7340
7384
|
}
|
|
7341
7385
|
}));
|
|
7342
7386
|
var SquareLabel = ({ color, copy }) => {
|
|
7343
|
-
const { classes } =
|
|
7387
|
+
const { classes } = useStyles42();
|
|
7344
7388
|
return /* @__PURE__ */ jsx116(Typography29, { className: classes[color], children: copy });
|
|
7345
7389
|
};
|
|
7346
7390
|
var SquareLabel_default = memo19(SquareLabel);
|
|
@@ -7686,7 +7730,7 @@ import {
|
|
|
7686
7730
|
TableRow as TableRow2,
|
|
7687
7731
|
TableSortLabel as TableSortLabel2
|
|
7688
7732
|
} from "@mui/material";
|
|
7689
|
-
import { makeStyles as
|
|
7733
|
+
import { makeStyles as makeStyles43 } from "tss-react/mui";
|
|
7690
7734
|
import { v4 as uuidv4 } from "uuid";
|
|
7691
7735
|
|
|
7692
7736
|
// src/components/TableLoading/TableLoading.tsx
|
|
@@ -7745,7 +7789,7 @@ function calculateRowsPerPage(rowHeight) {
|
|
|
7745
7789
|
|
|
7746
7790
|
// src/components/Table/Table.tsx
|
|
7747
7791
|
import { jsx as jsx121, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
7748
|
-
var
|
|
7792
|
+
var useStyles43 = makeStyles43()(() => ({
|
|
7749
7793
|
root: {
|
|
7750
7794
|
height: "calc(100vh - 262px)",
|
|
7751
7795
|
overflow: "scroll"
|
|
@@ -7784,7 +7828,7 @@ var Table = ({
|
|
|
7784
7828
|
appliedFilters?.sortField || "delivery_date"
|
|
7785
7829
|
);
|
|
7786
7830
|
const [rowsPerPage, setRowsPerPage] = useState17(defaultRowsPerPage);
|
|
7787
|
-
const { classes } =
|
|
7831
|
+
const { classes } = useStyles43();
|
|
7788
7832
|
const rowHeight = 56;
|
|
7789
7833
|
const emptyRows = rowsPerPage - Math.min(rowsPerPage, data.length - page * rowsPerPage);
|
|
7790
7834
|
const handleRequestSort = (event, property) => {
|
|
@@ -8087,9 +8131,9 @@ var TableDesktopRowSelectionBar = ({
|
|
|
8087
8131
|
|
|
8088
8132
|
// src/components/TableEmptyResult/TableEmptyResult.tsx
|
|
8089
8133
|
import { TableCell as TableCell5, TableRow as TableRow5, Typography as Typography33 } from "@mui/material";
|
|
8090
|
-
import { makeStyles as
|
|
8134
|
+
import { makeStyles as makeStyles44 } from "tss-react/mui";
|
|
8091
8135
|
import { jsx as jsx126, jsxs as jsxs87 } from "react/jsx-runtime";
|
|
8092
|
-
var
|
|
8136
|
+
var useStyles44 = makeStyles44()(() => ({
|
|
8093
8137
|
tableCellIcon: { padding: 24, height: "calc(100vh - 320px)" },
|
|
8094
8138
|
tableCellDefault: { padding: 24 }
|
|
8095
8139
|
}));
|
|
@@ -8099,7 +8143,7 @@ var TableEmptyResult = ({
|
|
|
8099
8143
|
handleClickOnClearFiltersButton = () => {
|
|
8100
8144
|
}
|
|
8101
8145
|
}) => {
|
|
8102
|
-
const { classes } =
|
|
8146
|
+
const { classes } = useStyles44();
|
|
8103
8147
|
return showClearFilterButton ? /* @__PURE__ */ jsx126(TableRow5, { children: /* @__PURE__ */ jsxs87(
|
|
8104
8148
|
TableCell5,
|
|
8105
8149
|
{
|
|
@@ -8247,12 +8291,12 @@ var TableDesktop = ({
|
|
|
8247
8291
|
setIsBulkChangesMode(checked);
|
|
8248
8292
|
if (!checked) {
|
|
8249
8293
|
resetSelectedRows();
|
|
8294
|
+
refetchData?.();
|
|
8250
8295
|
}
|
|
8251
8296
|
};
|
|
8252
8297
|
useEffect11(() => {
|
|
8253
8298
|
if (isRowsFromAllPagesSelected) {
|
|
8254
8299
|
selectAllRowsInPage();
|
|
8255
|
-
selectAllRowsInPage();
|
|
8256
8300
|
}
|
|
8257
8301
|
}, [isRowsFromAllPagesSelected, data]);
|
|
8258
8302
|
const renderBody = () => {
|
|
@@ -8992,6 +9036,7 @@ var TableDesktopToolbar = ({
|
|
|
8992
9036
|
disableBulkChangesMode = false,
|
|
8993
9037
|
isBulkChangesMode,
|
|
8994
9038
|
onChangeBulkChangesMode,
|
|
9039
|
+
onActivateBulkChangesMode,
|
|
8995
9040
|
refetchData,
|
|
8996
9041
|
renderExportCsvDialog,
|
|
8997
9042
|
renderBulkChangesDialog,
|
|
@@ -9016,8 +9061,8 @@ var TableDesktopToolbar = ({
|
|
|
9016
9061
|
const handleChangeBulkChangesMode = (_, checked) => {
|
|
9017
9062
|
setBulkChanges([]);
|
|
9018
9063
|
onChangeBulkChangesMode(checked);
|
|
9019
|
-
if (
|
|
9020
|
-
|
|
9064
|
+
if (checked) {
|
|
9065
|
+
onActivateBulkChangesMode?.();
|
|
9021
9066
|
}
|
|
9022
9067
|
};
|
|
9023
9068
|
const handleUpdateEditableCell = ({
|
|
@@ -9226,9 +9271,9 @@ var TableDesktopToolbar = ({
|
|
|
9226
9271
|
import { memo as memo22, useEffect as useEffect14, useState as useState24 } from "react";
|
|
9227
9272
|
import { ImportExport as ImportExportIcon } from "@mui/icons-material";
|
|
9228
9273
|
import { TableCell as TableCell7, TableHead as TableHead3, TableRow as TableRow6, TableSortLabel as TableSortLabel3 } from "@mui/material";
|
|
9229
|
-
import { makeStyles as
|
|
9274
|
+
import { makeStyles as makeStyles45 } from "tss-react/mui";
|
|
9230
9275
|
import { jsx as jsx135 } from "react/jsx-runtime";
|
|
9231
|
-
var
|
|
9276
|
+
var useStyles45 = makeStyles45()(() => ({
|
|
9232
9277
|
sortLabel: {
|
|
9233
9278
|
"& .MuiTableSortLabel-icon": {
|
|
9234
9279
|
opacity: 1
|
|
@@ -9237,7 +9282,7 @@ var useStyles46 = makeStyles46()(() => ({
|
|
|
9237
9282
|
}));
|
|
9238
9283
|
var TableHeader = ({ cells, onSort = null }) => {
|
|
9239
9284
|
const [sortableCells, setSortableCells] = useState24([]);
|
|
9240
|
-
const { classes } =
|
|
9285
|
+
const { classes } = useStyles45();
|
|
9241
9286
|
useEffect14(() => {
|
|
9242
9287
|
setSortableCells(cells);
|
|
9243
9288
|
}, []);
|
|
@@ -9287,9 +9332,9 @@ var TableHeader_default = memo22(TableHeader);
|
|
|
9287
9332
|
|
|
9288
9333
|
// src/components/TextDivider/TextDivider.tsx
|
|
9289
9334
|
import { Box as Box44, Typography as Typography36, Divider as Divider12, Button as Button20 } from "@mui/material";
|
|
9290
|
-
import { makeStyles as
|
|
9335
|
+
import { makeStyles as makeStyles46 } from "tss-react/mui";
|
|
9291
9336
|
import { jsx as jsx136, jsxs as jsxs92 } from "react/jsx-runtime";
|
|
9292
|
-
var
|
|
9337
|
+
var useStyles46 = makeStyles46()(() => ({
|
|
9293
9338
|
icon: {
|
|
9294
9339
|
fontSize: 20
|
|
9295
9340
|
},
|
|
@@ -9323,7 +9368,7 @@ var TextDivider = ({
|
|
|
9323
9368
|
iconPosition = "left",
|
|
9324
9369
|
titleWeight = "400"
|
|
9325
9370
|
}) => {
|
|
9326
|
-
const { classes } =
|
|
9371
|
+
const { classes } = useStyles46();
|
|
9327
9372
|
const iconColor = color ?? colors.neutral900;
|
|
9328
9373
|
return /* @__PURE__ */ jsxs92(
|
|
9329
9374
|
Box44,
|
|
@@ -9356,11 +9401,11 @@ var TextDivider_default = TextDivider;
|
|
|
9356
9401
|
|
|
9357
9402
|
// src/components/ThemedDateRangePicker/ThemedDateRangePicker.tsx
|
|
9358
9403
|
import { DateRangePicker } from "react-dates";
|
|
9359
|
-
import { makeStyles as
|
|
9404
|
+
import { makeStyles as makeStyles47 } from "tss-react/mui";
|
|
9360
9405
|
import "react-dates/initialize";
|
|
9361
9406
|
import "react-dates/lib/css/_datepicker.css";
|
|
9362
9407
|
import { jsx as jsx137 } from "react/jsx-runtime";
|
|
9363
|
-
var
|
|
9408
|
+
var useStyles47 = makeStyles47()((theme) => ({
|
|
9364
9409
|
wrapper: {
|
|
9365
9410
|
"& .DateRangePicker": {
|
|
9366
9411
|
backgroundColor: theme.palette.mode === "dark" ? theme.palette.grey[900] : colors.neutral100,
|
|
@@ -9454,7 +9499,7 @@ var ThemedDateRangePicker = ({
|
|
|
9454
9499
|
className,
|
|
9455
9500
|
...props
|
|
9456
9501
|
}) => {
|
|
9457
|
-
const { classes, cx } =
|
|
9502
|
+
const { classes, cx } = useStyles47();
|
|
9458
9503
|
return /* @__PURE__ */ jsx137("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ jsx137(DateRangePicker, { ...props }) });
|
|
9459
9504
|
};
|
|
9460
9505
|
var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
@@ -9462,9 +9507,9 @@ var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
|
9462
9507
|
// src/components/TheToolbar/TheToolbar.tsx
|
|
9463
9508
|
import { memo as memo23 } from "react";
|
|
9464
9509
|
import { AppBar, Box as Box45, Toolbar } from "@mui/material";
|
|
9465
|
-
import { makeStyles as
|
|
9510
|
+
import { makeStyles as makeStyles48 } from "tss-react/mui";
|
|
9466
9511
|
import { jsx as jsx138, jsxs as jsxs93 } from "react/jsx-runtime";
|
|
9467
|
-
var
|
|
9512
|
+
var useStyles48 = makeStyles48()((theme) => ({
|
|
9468
9513
|
menuButton: {
|
|
9469
9514
|
color: theme.palette.primary.contrastText
|
|
9470
9515
|
},
|
|
@@ -9480,12 +9525,13 @@ var TheToolbar = ({
|
|
|
9480
9525
|
handleOpen,
|
|
9481
9526
|
LeftDrawer,
|
|
9482
9527
|
leftSection,
|
|
9483
|
-
rightSection
|
|
9528
|
+
rightSection,
|
|
9529
|
+
isAuthenticated = true
|
|
9484
9530
|
}) => {
|
|
9485
|
-
const { classes } =
|
|
9531
|
+
const { classes } = useStyles48();
|
|
9486
9532
|
return /* @__PURE__ */ jsxs93(Box45, { children: [
|
|
9487
9533
|
/* @__PURE__ */ jsx138(AppBar, { children: /* @__PURE__ */ jsxs93(Toolbar, { className: classes.topBar, children: [
|
|
9488
|
-
/* @__PURE__ */ jsx138(
|
|
9534
|
+
isAuthenticated ? /* @__PURE__ */ jsx138(
|
|
9489
9535
|
RoundButton_default,
|
|
9490
9536
|
{
|
|
9491
9537
|
className: classes.menuButton,
|
|
@@ -9493,7 +9539,7 @@ var TheToolbar = ({
|
|
|
9493
9539
|
noStrokes: true,
|
|
9494
9540
|
onClick: handleOpen
|
|
9495
9541
|
}
|
|
9496
|
-
),
|
|
9542
|
+
) : null,
|
|
9497
9543
|
/* @__PURE__ */ jsx138(
|
|
9498
9544
|
CompanyLogo_default,
|
|
9499
9545
|
{
|
|
@@ -9523,7 +9569,7 @@ var ToastMessage = ({
|
|
|
9523
9569
|
Snackbar,
|
|
9524
9570
|
{
|
|
9525
9571
|
open,
|
|
9526
|
-
autoHideDuration:
|
|
9572
|
+
autoHideDuration: 3e3,
|
|
9527
9573
|
onClose,
|
|
9528
9574
|
anchorOrigin: { vertical: "top", horizontal: "right" },
|
|
9529
9575
|
children: /* @__PURE__ */ jsx139(
|
|
@@ -9562,9 +9608,9 @@ import {
|
|
|
9562
9608
|
Paper as Paper13,
|
|
9563
9609
|
Fade as Fade2
|
|
9564
9610
|
} from "@mui/material";
|
|
9565
|
-
import { makeStyles as
|
|
9611
|
+
import { makeStyles as makeStyles49 } from "tss-react/mui";
|
|
9566
9612
|
import { jsx as jsx140, jsxs as jsxs94 } from "react/jsx-runtime";
|
|
9567
|
-
var
|
|
9613
|
+
var useStyles49 = makeStyles49()((theme) => ({
|
|
9568
9614
|
paper: {
|
|
9569
9615
|
padding: theme.spacing(2)
|
|
9570
9616
|
},
|
|
@@ -9592,7 +9638,7 @@ var TwoButtonDialog = ({
|
|
|
9592
9638
|
cancelLabel = "CANCEL",
|
|
9593
9639
|
cancelButton
|
|
9594
9640
|
}) => {
|
|
9595
|
-
const { classes } =
|
|
9641
|
+
const { classes } = useStyles49();
|
|
9596
9642
|
return /* @__PURE__ */ jsx140(
|
|
9597
9643
|
Dialog5,
|
|
9598
9644
|
{
|