@natoora-libs/core 0.2.30 → 0.2.32-global-search-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.cjs +989 -697
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +41 -16
- package/dist/components/index.d.ts +41 -16
- package/dist/components/index.js +829 -539
- package/dist/components/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -352,6 +352,8 @@ __export(components_exports, {
|
|
|
352
352
|
FilterOptionsCheckboxes: () => FilterOptionsCheckboxes,
|
|
353
353
|
FilterSimpleSelector: () => FilterSimpleSelector_default,
|
|
354
354
|
FixedFooter: () => FixedFooter_default,
|
|
355
|
+
GlobalSearch: () => GlobalSearch_default,
|
|
356
|
+
GlobalSearchTrigger: () => GlobalSearchTrigger_default,
|
|
355
357
|
GooglePlacesAddressAutocomplete: () => GooglePlacesAddressAutocomplete,
|
|
356
358
|
HashtagInput: () => HashtagInput,
|
|
357
359
|
Header: () => Header_default,
|
|
@@ -416,7 +418,7 @@ module.exports = __toCommonJS(components_exports);
|
|
|
416
418
|
|
|
417
419
|
// src/components/ActiveFiltersIconButton/ActiveFiltersIconButton.tsx
|
|
418
420
|
var import_react = require("react");
|
|
419
|
-
var
|
|
421
|
+
var import_FilterList = __toESM(require("@mui/icons-material/FilterList"), 1);
|
|
420
422
|
var import_material = require("@mui/material");
|
|
421
423
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
422
424
|
var ActiveFiltersIconButton = (0, import_react.memo)(
|
|
@@ -441,9 +443,9 @@ var ActiveFiltersIconButton = (0, import_react.memo)(
|
|
|
441
443
|
{
|
|
442
444
|
sx: { height: 24 },
|
|
443
445
|
label: numActiveFilters,
|
|
444
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
446
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_FilterList.default, { style: { fontSize: 18 }, color: "primary" })
|
|
445
447
|
}
|
|
446
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
448
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_FilterList.default, { style: { fontSize: 18 } })
|
|
447
449
|
]
|
|
448
450
|
}
|
|
449
451
|
)
|
|
@@ -1177,6 +1179,7 @@ var ADDRESS_FORM_FIELDS = [
|
|
|
1177
1179
|
];
|
|
1178
1180
|
var AddressFormFields = ({
|
|
1179
1181
|
form,
|
|
1182
|
+
hidePrimaryPhoneNumberField = false,
|
|
1180
1183
|
countriesSelectProps: { countries, isCountriesFetching, refetchCountries },
|
|
1181
1184
|
statesSelectProps: { addressStates, isAddressStatesFetching },
|
|
1182
1185
|
googlePlacesAutocompleteProps
|
|
@@ -1241,7 +1244,7 @@ var AddressFormFields = ({
|
|
|
1241
1244
|
helperText: "Name this address for easier reference (e.g. Office, Home, etc.)."
|
|
1242
1245
|
}
|
|
1243
1246
|
),
|
|
1244
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1247
|
+
!hidePrimaryPhoneNumberField && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1245
1248
|
import_react_hook_form2.Controller,
|
|
1246
1249
|
{
|
|
1247
1250
|
control,
|
|
@@ -1774,7 +1777,7 @@ var resolveObjectType = (object, fieldName) => {
|
|
|
1774
1777
|
|
|
1775
1778
|
// src/components/Buttons/ExtendedButton/ExtendedButton.tsx
|
|
1776
1779
|
var import_react9 = require("react");
|
|
1777
|
-
var
|
|
1780
|
+
var import_icons_material = require("@mui/icons-material");
|
|
1778
1781
|
var import_material12 = require("@mui/material");
|
|
1779
1782
|
var import_mui4 = require("tss-react/mui");
|
|
1780
1783
|
|
|
@@ -1882,19 +1885,19 @@ var ExtendedButton = ({
|
|
|
1882
1885
|
}) => {
|
|
1883
1886
|
const { classes, cx } = useStyles4();
|
|
1884
1887
|
const icons2 = {
|
|
1885
|
-
add:
|
|
1886
|
-
apps:
|
|
1887
|
-
childCare:
|
|
1888
|
-
delete:
|
|
1889
|
-
edit:
|
|
1890
|
-
importExport:
|
|
1891
|
-
notes:
|
|
1892
|
-
print:
|
|
1893
|
-
save:
|
|
1894
|
-
upload:
|
|
1895
|
-
refresh:
|
|
1896
|
-
download:
|
|
1897
|
-
publish:
|
|
1888
|
+
add: import_icons_material.Add,
|
|
1889
|
+
apps: import_icons_material.Apps,
|
|
1890
|
+
childCare: import_icons_material.ChildCare,
|
|
1891
|
+
delete: import_icons_material.Delete,
|
|
1892
|
+
edit: import_icons_material.Edit,
|
|
1893
|
+
importExport: import_icons_material.ImportExport,
|
|
1894
|
+
notes: import_icons_material.Notes,
|
|
1895
|
+
print: import_icons_material.Print,
|
|
1896
|
+
save: import_icons_material.Save,
|
|
1897
|
+
upload: import_icons_material.CloudUpload,
|
|
1898
|
+
refresh: import_icons_material.Refresh,
|
|
1899
|
+
download: import_icons_material.GetApp,
|
|
1900
|
+
publish: import_icons_material.Publish,
|
|
1898
1901
|
compare: IconCompare_default
|
|
1899
1902
|
};
|
|
1900
1903
|
const IconComponent = icons2[type || "add"];
|
|
@@ -2677,7 +2680,8 @@ var ImageButton = (props) => {
|
|
|
2677
2680
|
var ImageButton_default = (0, import_react14.memo)(ImageButton);
|
|
2678
2681
|
|
|
2679
2682
|
// src/components/Buttons/SquareButton/SquareButton.tsx
|
|
2680
|
-
var
|
|
2683
|
+
var import_Add = __toESM(require("@mui/icons-material/Add"), 1);
|
|
2684
|
+
var import_ChevronRight = __toESM(require("@mui/icons-material/ChevronRight"), 1);
|
|
2681
2685
|
var import_material22 = require("@mui/material");
|
|
2682
2686
|
var import_mui11 = require("tss-react/mui");
|
|
2683
2687
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
@@ -2716,8 +2720,8 @@ var SquareButton = ({
|
|
|
2716
2720
|
}) => {
|
|
2717
2721
|
const { classes, cx } = useStyles10();
|
|
2718
2722
|
const icon = {
|
|
2719
|
-
add: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2720
|
-
forward: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2723
|
+
add: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_Add.default, { className: classes.icon }),
|
|
2724
|
+
forward: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_ChevronRight.default, { className: classes.icon })
|
|
2721
2725
|
};
|
|
2722
2726
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
2723
2727
|
import_material22.Button,
|
|
@@ -2983,7 +2987,7 @@ var FilterButtonLg = (0, import_mui13.withStyles)(AButton, (theme) => ({
|
|
|
2983
2987
|
var OutlinedButtonLg_default = (0, import_react17.memo)(FilterButtonLg);
|
|
2984
2988
|
|
|
2985
2989
|
// src/components/Buttons/RoundButton/RoundButton.tsx
|
|
2986
|
-
var
|
|
2990
|
+
var import_icons_material2 = require("@mui/icons-material");
|
|
2987
2991
|
var import_material26 = require("@mui/material");
|
|
2988
2992
|
var import_mui14 = require("tss-react/mui");
|
|
2989
2993
|
|
|
@@ -4331,39 +4335,39 @@ var RoundButton = ({
|
|
|
4331
4335
|
const { classes, cx } = useStyles12();
|
|
4332
4336
|
const iconSize = size === "small" ? "small" : "medium";
|
|
4333
4337
|
const iconComponentMap = {
|
|
4334
|
-
add: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4335
|
-
apps: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4336
|
-
arrowBack: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4337
|
-
arrowForward: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4338
|
+
add: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.Add, { fontSize: iconSize }),
|
|
4339
|
+
apps: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.Apps, { fontSize: iconSize }),
|
|
4340
|
+
arrowBack: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.ArrowBack, { fontSize: iconSize }),
|
|
4341
|
+
arrowForward: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.ArrowForward, { fontSize: iconSize }),
|
|
4338
4342
|
avocado: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(IconAvocado_default, {}),
|
|
4339
|
-
backspaceOutlined: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4343
|
+
backspaceOutlined: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.BackspaceOutlined, { fontSize: iconSize }),
|
|
4340
4344
|
banana: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(IconBanana_default, {}),
|
|
4341
|
-
block: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4345
|
+
block: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.Block, { fontSize: iconSize }),
|
|
4342
4346
|
bulk: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(BulkIcon_default, { fill: colors.contrast }),
|
|
4343
|
-
callSplit: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4344
|
-
chevronRight: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4345
|
-
chevronUp: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4346
|
-
chevronDown: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4347
|
-
close: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4348
|
-
delete: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4349
|
-
done: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4350
|
-
edit: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4351
|
-
email: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4347
|
+
callSplit: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.CallSplit, { fontSize: iconSize }),
|
|
4348
|
+
chevronRight: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.ChevronRight, { fontSize: iconSize }),
|
|
4349
|
+
chevronUp: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.KeyboardArrowUp, { fontSize: iconSize }),
|
|
4350
|
+
chevronDown: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.KeyboardArrowDown, { fontSize: iconSize }),
|
|
4351
|
+
close: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.Close, { fontSize: iconSize }),
|
|
4352
|
+
delete: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.Delete, { fontSize: iconSize, fill: colors.neutral800 }),
|
|
4353
|
+
done: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.Done, { fontSize: iconSize }),
|
|
4354
|
+
edit: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.Edit, { fontSize: iconSize }),
|
|
4355
|
+
email: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.Email, { fontSize: iconSize }),
|
|
4352
4356
|
grape: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(IconGrape_default, {}),
|
|
4353
|
-
groupAdd: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4354
|
-
history: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4355
|
-
menu: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4356
|
-
threeDots: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4357
|
-
notes: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4358
|
-
refresh: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4359
|
-
remove: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4360
|
-
search: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4361
|
-
send: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4357
|
+
groupAdd: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.GroupAdd, { fontSize: iconSize }),
|
|
4358
|
+
history: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.History, { fontSize: iconSize }),
|
|
4359
|
+
menu: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.Menu, { fontSize: iconSize }),
|
|
4360
|
+
threeDots: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.MoreHoriz, { fontSize: iconSize, color: iconColor }),
|
|
4361
|
+
notes: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.Comment, { fontSize: iconSize }),
|
|
4362
|
+
refresh: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.Refresh, { fontSize: iconSize }),
|
|
4363
|
+
remove: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.Remove, { fontSize: iconSize }),
|
|
4364
|
+
search: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.Search, { fontSize: iconSize }),
|
|
4365
|
+
send: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.Send, { fontSize: iconSize }),
|
|
4362
4366
|
strawberry: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(IconStrawberry_default, {}),
|
|
4363
|
-
thumbDown: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4364
|
-
thumbUp: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4365
|
-
undo: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4366
|
-
play: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4367
|
+
thumbDown: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.ThumbDown, { fontSize: iconSize }),
|
|
4368
|
+
thumbUp: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.ThumbUp, { fontSize: iconSize }),
|
|
4369
|
+
undo: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.Undo, { fontSize: iconSize }),
|
|
4370
|
+
play: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.PlayArrowRounded, { fontSize: iconSize }),
|
|
4367
4371
|
snail: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(icons_default.SvgIconSnail, { fontSize: iconSize, fill: colors.muiPrimary }),
|
|
4368
4372
|
bus: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(IconBus_default, {}),
|
|
4369
4373
|
spoon: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(IconSpoon_default, {}),
|
|
@@ -4373,7 +4377,7 @@ var RoundButton = ({
|
|
|
4373
4377
|
bicycle: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(IconBicycle_default, {}),
|
|
4374
4378
|
heart: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(IconHeart_default, {}),
|
|
4375
4379
|
airplane: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(IconAirplane_default, {}),
|
|
4376
|
-
swapHoriz: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4380
|
+
swapHoriz: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_icons_material2.SwapHoriz, { fontSize: iconSize })
|
|
4377
4381
|
};
|
|
4378
4382
|
const filteredSize = size === "double" ? void 0 : size;
|
|
4379
4383
|
const handleClick = (e) => {
|
|
@@ -4899,7 +4903,7 @@ var ControlledNumberInput_default = ControlledNumberInput;
|
|
|
4899
4903
|
// src/components/ControlledNumericField/ControlledNumericField.tsx
|
|
4900
4904
|
var import_react19 = require("react");
|
|
4901
4905
|
var import_react_hook_form5 = require("react-hook-form");
|
|
4902
|
-
var
|
|
4906
|
+
var import_icons_material3 = require("@mui/icons-material");
|
|
4903
4907
|
var import_material33 = require("@mui/material");
|
|
4904
4908
|
var import_mui20 = require("tss-react/mui");
|
|
4905
4909
|
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
@@ -5056,7 +5060,7 @@ var ControlledNumericField = ({
|
|
|
5056
5060
|
className: classes.arrowButton,
|
|
5057
5061
|
onClick: incrementValue(field),
|
|
5058
5062
|
"data-testid": "arrow-up",
|
|
5059
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5063
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons_material3.KeyboardArrowUp, { sx: { fontSize: 15 } })
|
|
5060
5064
|
}
|
|
5061
5065
|
),
|
|
5062
5066
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
@@ -5066,7 +5070,7 @@ var ControlledNumericField = ({
|
|
|
5066
5070
|
className: classes.arrowButton,
|
|
5067
5071
|
onClick: decrementValue(field),
|
|
5068
5072
|
"data-testid": "arrow-down",
|
|
5069
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5073
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_icons_material3.KeyboardArrowDown, { sx: { fontSize: 15 } })
|
|
5070
5074
|
}
|
|
5071
5075
|
)
|
|
5072
5076
|
] }) })
|
|
@@ -5646,7 +5650,7 @@ var DeliveryInstructionsFormFields = ({
|
|
|
5646
5650
|
};
|
|
5647
5651
|
|
|
5648
5652
|
// src/components/FileCard/FileCard.tsx
|
|
5649
|
-
var
|
|
5653
|
+
var import_Description = __toESM(require("@mui/icons-material/Description"), 1);
|
|
5650
5654
|
var import_material40 = require("@mui/material");
|
|
5651
5655
|
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
5652
5656
|
var getFileMetadata = (file) => {
|
|
@@ -5681,7 +5685,7 @@ var FileCard = ({ document: document2 }) => {
|
|
|
5681
5685
|
justifyContent: "center",
|
|
5682
5686
|
alignItems: "center"
|
|
5683
5687
|
},
|
|
5684
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
5688
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_Description.default, { fontSize: "medium", color: "action" })
|
|
5685
5689
|
}
|
|
5686
5690
|
),
|
|
5687
5691
|
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
@@ -6013,10 +6017,283 @@ var FixedFooter = ({ justifyContent, children }) => {
|
|
|
6013
6017
|
};
|
|
6014
6018
|
var FixedFooter_default = React4.memo(FixedFooter);
|
|
6015
6019
|
|
|
6016
|
-
// src/components/
|
|
6020
|
+
// src/components/GlobalSearchTrigger/GlobalSearchTrigger.tsx
|
|
6021
|
+
var import_react26 = require("react");
|
|
6022
|
+
var import_SearchRounded = __toESM(require("@mui/icons-material/SearchRounded"), 1);
|
|
6017
6023
|
var import_material45 = require("@mui/material");
|
|
6018
|
-
var
|
|
6024
|
+
var import_styles3 = require("@mui/material/styles");
|
|
6019
6025
|
var import_jsx_runtime97 = require("react/jsx-runtime");
|
|
6026
|
+
var GlobalSearchTrigger = ({
|
|
6027
|
+
onClick,
|
|
6028
|
+
onFocus,
|
|
6029
|
+
onChange,
|
|
6030
|
+
onKeyDown,
|
|
6031
|
+
readOnly = true,
|
|
6032
|
+
placeholder = "Search",
|
|
6033
|
+
ariaLabel = "Global search",
|
|
6034
|
+
shortcutLabel = "\u2318 K",
|
|
6035
|
+
value = "",
|
|
6036
|
+
minWidth = 220,
|
|
6037
|
+
sx,
|
|
6038
|
+
ref,
|
|
6039
|
+
inputRef
|
|
6040
|
+
}) => {
|
|
6041
|
+
return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
|
|
6042
|
+
import_material45.Paper,
|
|
6043
|
+
{
|
|
6044
|
+
ref,
|
|
6045
|
+
elevation: 0,
|
|
6046
|
+
onClick,
|
|
6047
|
+
role: "search",
|
|
6048
|
+
sx: {
|
|
6049
|
+
display: "flex",
|
|
6050
|
+
alignItems: "center",
|
|
6051
|
+
gap: 1,
|
|
6052
|
+
border: `1px solid ${(0, import_styles3.alpha)(colors.white, 0.22)}`,
|
|
6053
|
+
borderRadius: 1,
|
|
6054
|
+
px: 1.5,
|
|
6055
|
+
py: 0.75,
|
|
6056
|
+
minWidth,
|
|
6057
|
+
backgroundColor: (0, import_styles3.alpha)(colors.black, 0.2),
|
|
6058
|
+
color: (0, import_styles3.alpha)(colors.white, 0.82),
|
|
6059
|
+
transition: "background-color 0.15s ease, border-color 0.15s ease",
|
|
6060
|
+
"&:hover": {
|
|
6061
|
+
borderColor: (0, import_styles3.alpha)(colors.white, 0.38),
|
|
6062
|
+
backgroundColor: (0, import_styles3.alpha)(colors.black, 0.35)
|
|
6063
|
+
},
|
|
6064
|
+
"&:focus-within": {
|
|
6065
|
+
borderColor: (0, import_styles3.alpha)(colors.muiPrimary, 0.95),
|
|
6066
|
+
backgroundColor: (0, import_styles3.alpha)(colors.black, 0.35)
|
|
6067
|
+
},
|
|
6068
|
+
...sx
|
|
6069
|
+
},
|
|
6070
|
+
children: [
|
|
6071
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(import_SearchRounded.default, { sx: { fontSize: 19, color: colors.muiPrimary } }),
|
|
6072
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
6073
|
+
import_material45.InputBase,
|
|
6074
|
+
{
|
|
6075
|
+
inputRef,
|
|
6076
|
+
value,
|
|
6077
|
+
readOnly,
|
|
6078
|
+
onFocus,
|
|
6079
|
+
onKeyDown,
|
|
6080
|
+
onChange: (event) => onChange?.(event.target.value),
|
|
6081
|
+
placeholder,
|
|
6082
|
+
inputProps: { "aria-label": ariaLabel },
|
|
6083
|
+
sx: {
|
|
6084
|
+
flexGrow: 1,
|
|
6085
|
+
color: (0, import_styles3.alpha)(colors.white, 0.82),
|
|
6086
|
+
fontSize: 14,
|
|
6087
|
+
"& input::placeholder": {
|
|
6088
|
+
color: (0, import_styles3.alpha)(colors.white, 0.62),
|
|
6089
|
+
opacity: 1
|
|
6090
|
+
}
|
|
6091
|
+
}
|
|
6092
|
+
}
|
|
6093
|
+
),
|
|
6094
|
+
/* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
|
|
6095
|
+
import_material45.Box,
|
|
6096
|
+
{
|
|
6097
|
+
sx: {
|
|
6098
|
+
border: `1px solid ${(0, import_styles3.alpha)(colors.white, 0.32)}`,
|
|
6099
|
+
borderRadius: "5px",
|
|
6100
|
+
px: 0.6,
|
|
6101
|
+
py: 0.2,
|
|
6102
|
+
fontSize: 11,
|
|
6103
|
+
lineHeight: 1
|
|
6104
|
+
},
|
|
6105
|
+
children: shortcutLabel
|
|
6106
|
+
}
|
|
6107
|
+
)
|
|
6108
|
+
]
|
|
6109
|
+
}
|
|
6110
|
+
);
|
|
6111
|
+
};
|
|
6112
|
+
var GlobalSearchTrigger_default = (0, import_react26.memo)(GlobalSearchTrigger);
|
|
6113
|
+
|
|
6114
|
+
// src/components/GlobalSearch/GlobalSearch.tsx
|
|
6115
|
+
var import_react27 = require("react");
|
|
6116
|
+
var import_material46 = require("@mui/material");
|
|
6117
|
+
var import_jsx_runtime98 = require("react/jsx-runtime");
|
|
6118
|
+
var IFRAME_MESSAGE_SOURCE = "global-search-iframe";
|
|
6119
|
+
var HOST_SOURCE = "global-search-host";
|
|
6120
|
+
var COLLAPSED_HEIGHT = 44;
|
|
6121
|
+
var MAX_WIDTH = 760;
|
|
6122
|
+
var MIN_WIDTH = 280;
|
|
6123
|
+
var MAX_HEIGHT = 820;
|
|
6124
|
+
var WIDGET_SRC = "/react/search/widget";
|
|
6125
|
+
var isEditableElement = (target) => {
|
|
6126
|
+
if (!(target instanceof HTMLElement)) {
|
|
6127
|
+
return false;
|
|
6128
|
+
}
|
|
6129
|
+
if (target.isContentEditable) {
|
|
6130
|
+
return true;
|
|
6131
|
+
}
|
|
6132
|
+
const tagName = target.tagName.toLowerCase();
|
|
6133
|
+
const role = target.getAttribute("role");
|
|
6134
|
+
return tagName === "input" || tagName === "textarea" || tagName === "select" || role === "textbox";
|
|
6135
|
+
};
|
|
6136
|
+
var GlobalSearch = ({
|
|
6137
|
+
onNavigate,
|
|
6138
|
+
shouldUseWindowLocation = (path) => path.startsWith("/react/") || path.startsWith("/#/")
|
|
6139
|
+
}) => {
|
|
6140
|
+
const iframeRef = (0, import_react27.useRef)(null);
|
|
6141
|
+
const wrapperRef = (0, import_react27.useRef)(null);
|
|
6142
|
+
const [open, setOpen] = (0, import_react27.useState)(false);
|
|
6143
|
+
const [height, setHeight] = (0, import_react27.useState)(COLLAPSED_HEIGHT);
|
|
6144
|
+
const widgetSrc = WIDGET_SRC;
|
|
6145
|
+
const widgetOrigin = new URL(widgetSrc, window.location.origin).origin;
|
|
6146
|
+
const postToIframe = (0, import_react27.useCallback)(
|
|
6147
|
+
(type) => {
|
|
6148
|
+
const targetWindow = iframeRef.current?.contentWindow;
|
|
6149
|
+
if (!targetWindow) {
|
|
6150
|
+
return;
|
|
6151
|
+
}
|
|
6152
|
+
targetWindow.postMessage(
|
|
6153
|
+
{
|
|
6154
|
+
source: HOST_SOURCE,
|
|
6155
|
+
type
|
|
6156
|
+
},
|
|
6157
|
+
widgetOrigin
|
|
6158
|
+
);
|
|
6159
|
+
},
|
|
6160
|
+
[widgetOrigin]
|
|
6161
|
+
);
|
|
6162
|
+
const close = (0, import_react27.useCallback)(() => {
|
|
6163
|
+
setOpen(false);
|
|
6164
|
+
setHeight(COLLAPSED_HEIGHT);
|
|
6165
|
+
postToIframe("GLOBAL_SEARCH_CLOSE");
|
|
6166
|
+
}, [postToIframe]);
|
|
6167
|
+
const toggle = (0, import_react27.useCallback)(() => {
|
|
6168
|
+
setOpen(true);
|
|
6169
|
+
setHeight(MAX_HEIGHT);
|
|
6170
|
+
postToIframe("GLOBAL_SEARCH_TOGGLE");
|
|
6171
|
+
}, [postToIframe]);
|
|
6172
|
+
(0, import_react27.useEffect)(() => {
|
|
6173
|
+
const onKeyDown = (event) => {
|
|
6174
|
+
const isCommandOrCtrl = event.metaKey || event.ctrlKey;
|
|
6175
|
+
if (isCommandOrCtrl && event.key.toLowerCase() === "k") {
|
|
6176
|
+
if (isEditableElement(event.target) && !open) {
|
|
6177
|
+
return;
|
|
6178
|
+
}
|
|
6179
|
+
event.preventDefault();
|
|
6180
|
+
toggle();
|
|
6181
|
+
}
|
|
6182
|
+
if (event.key === "Escape" && open) {
|
|
6183
|
+
event.preventDefault();
|
|
6184
|
+
close();
|
|
6185
|
+
}
|
|
6186
|
+
};
|
|
6187
|
+
window.addEventListener("keydown", onKeyDown);
|
|
6188
|
+
return () => window.removeEventListener("keydown", onKeyDown);
|
|
6189
|
+
}, [close, open, toggle]);
|
|
6190
|
+
(0, import_react27.useEffect)(() => {
|
|
6191
|
+
if (!open) {
|
|
6192
|
+
return void 0;
|
|
6193
|
+
}
|
|
6194
|
+
const onPointerDown = (event) => {
|
|
6195
|
+
const wrapper = wrapperRef.current;
|
|
6196
|
+
if (!wrapper) {
|
|
6197
|
+
return;
|
|
6198
|
+
}
|
|
6199
|
+
const target = event.target;
|
|
6200
|
+
if (!(target instanceof Node)) {
|
|
6201
|
+
return;
|
|
6202
|
+
}
|
|
6203
|
+
if (!wrapper.contains(target)) {
|
|
6204
|
+
close();
|
|
6205
|
+
}
|
|
6206
|
+
};
|
|
6207
|
+
document.addEventListener("pointerdown", onPointerDown, true);
|
|
6208
|
+
return () => document.removeEventListener("pointerdown", onPointerDown, true);
|
|
6209
|
+
}, [close, open]);
|
|
6210
|
+
(0, import_react27.useEffect)(() => {
|
|
6211
|
+
const onMessage = (event) => {
|
|
6212
|
+
if (event.origin !== widgetOrigin) {
|
|
6213
|
+
return;
|
|
6214
|
+
}
|
|
6215
|
+
const iframeWindow = iframeRef.current?.contentWindow;
|
|
6216
|
+
if (iframeWindow && event.source !== iframeWindow) {
|
|
6217
|
+
return;
|
|
6218
|
+
}
|
|
6219
|
+
const data = event.data;
|
|
6220
|
+
if (!data || data.source !== IFRAME_MESSAGE_SOURCE) {
|
|
6221
|
+
return;
|
|
6222
|
+
}
|
|
6223
|
+
if (data.type === "GLOBAL_SEARCH_CLOSE") {
|
|
6224
|
+
setOpen(false);
|
|
6225
|
+
setHeight(COLLAPSED_HEIGHT);
|
|
6226
|
+
return;
|
|
6227
|
+
}
|
|
6228
|
+
if (data.type === "GLOBAL_SEARCH_RESIZE") {
|
|
6229
|
+
const nextHeight = Math.max(
|
|
6230
|
+
COLLAPSED_HEIGHT,
|
|
6231
|
+
Math.min(MAX_HEIGHT, Math.ceil(Number(data.height || 0)))
|
|
6232
|
+
);
|
|
6233
|
+
setHeight(nextHeight);
|
|
6234
|
+
setOpen(nextHeight > COLLAPSED_HEIGHT + 1);
|
|
6235
|
+
return;
|
|
6236
|
+
}
|
|
6237
|
+
if (data.type === "GLOBAL_SEARCH_NAVIGATE") {
|
|
6238
|
+
const rawRoute = data.route;
|
|
6239
|
+
if (!rawRoute || !rawRoute.startsWith("/")) {
|
|
6240
|
+
return;
|
|
6241
|
+
}
|
|
6242
|
+
setOpen(false);
|
|
6243
|
+
setHeight(COLLAPSED_HEIGHT);
|
|
6244
|
+
const nextRoute = rawRoute.startsWith("/react/") || rawRoute.startsWith("/#/") ? rawRoute : `/react${rawRoute}`;
|
|
6245
|
+
if (nextRoute.startsWith("/react/") || shouldUseWindowLocation(rawRoute)) {
|
|
6246
|
+
window.location.assign(nextRoute);
|
|
6247
|
+
return;
|
|
6248
|
+
}
|
|
6249
|
+
onNavigate?.(nextRoute);
|
|
6250
|
+
}
|
|
6251
|
+
};
|
|
6252
|
+
window.addEventListener("message", onMessage);
|
|
6253
|
+
return () => window.removeEventListener("message", onMessage);
|
|
6254
|
+
}, [onNavigate, shouldUseWindowLocation, widgetOrigin]);
|
|
6255
|
+
return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
6256
|
+
import_material46.Box,
|
|
6257
|
+
{
|
|
6258
|
+
ref: wrapperRef,
|
|
6259
|
+
sx: {
|
|
6260
|
+
position: "relative",
|
|
6261
|
+
overflow: "visible",
|
|
6262
|
+
width: "100%",
|
|
6263
|
+
maxWidth: MAX_WIDTH,
|
|
6264
|
+
minWidth: MIN_WIDTH,
|
|
6265
|
+
flex: "1 1 420px",
|
|
6266
|
+
height: COLLAPSED_HEIGHT
|
|
6267
|
+
},
|
|
6268
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
|
|
6269
|
+
"iframe",
|
|
6270
|
+
{
|
|
6271
|
+
ref: iframeRef,
|
|
6272
|
+
title: "Global Search",
|
|
6273
|
+
"data-testid": "global-search-widget-iframe",
|
|
6274
|
+
src: widgetSrc,
|
|
6275
|
+
scrolling: "no",
|
|
6276
|
+
style: {
|
|
6277
|
+
position: "absolute",
|
|
6278
|
+
top: 0,
|
|
6279
|
+
right: 0,
|
|
6280
|
+
width: "100%",
|
|
6281
|
+
height,
|
|
6282
|
+
border: 0,
|
|
6283
|
+
display: "block",
|
|
6284
|
+
backgroundColor: "transparent"
|
|
6285
|
+
}
|
|
6286
|
+
}
|
|
6287
|
+
)
|
|
6288
|
+
}
|
|
6289
|
+
);
|
|
6290
|
+
};
|
|
6291
|
+
var GlobalSearch_default = (0, import_react27.memo)(GlobalSearch);
|
|
6292
|
+
|
|
6293
|
+
// src/components/Header/Header.tsx
|
|
6294
|
+
var import_material47 = require("@mui/material");
|
|
6295
|
+
var import_mui30 = require("tss-react/mui");
|
|
6296
|
+
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
6020
6297
|
var useStyles28 = (0, import_mui30.makeStyles)()((theme) => ({
|
|
6021
6298
|
container: {
|
|
6022
6299
|
margin: theme.spacing(1)
|
|
@@ -6039,16 +6316,16 @@ var Header = ({
|
|
|
6039
6316
|
wrappedHeader = false
|
|
6040
6317
|
}) => {
|
|
6041
6318
|
const { classes, cx } = useStyles28();
|
|
6042
|
-
return /* @__PURE__ */ (0,
|
|
6043
|
-
|
|
6319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
6320
|
+
import_material47.Paper,
|
|
6044
6321
|
{
|
|
6045
6322
|
className: cx({
|
|
6046
6323
|
[classes.container]: !wrappedHeader
|
|
6047
6324
|
}),
|
|
6048
6325
|
elevation: wrappedHeader ? 0 : 1,
|
|
6049
|
-
children: /* @__PURE__ */ (0,
|
|
6050
|
-
/* @__PURE__ */ (0,
|
|
6051
|
-
children ? /* @__PURE__ */ (0,
|
|
6326
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("header", { className: classes.header, children: [
|
|
6327
|
+
/* @__PURE__ */ (0, import_jsx_runtime99.jsx)(AppLabel_default, { appName }),
|
|
6328
|
+
children ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: classes.rightContent, children }) : null
|
|
6052
6329
|
] })
|
|
6053
6330
|
}
|
|
6054
6331
|
);
|
|
@@ -6057,21 +6334,21 @@ var Header_default = Header;
|
|
|
6057
6334
|
|
|
6058
6335
|
// src/components/List/List.tsx
|
|
6059
6336
|
var import_react_window = require("react-window");
|
|
6060
|
-
var
|
|
6061
|
-
var
|
|
6337
|
+
var import_material48 = require("@mui/material");
|
|
6338
|
+
var import_jsx_runtime100 = (
|
|
6062
6339
|
// eslint-disable-next-line react/no-array-index-key
|
|
6063
6340
|
require("react/jsx-runtime")
|
|
6064
6341
|
);
|
|
6065
6342
|
var ListHeader = (props) => {
|
|
6066
6343
|
const headers = props.headers || [];
|
|
6067
|
-
return /* @__PURE__ */ (0,
|
|
6344
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_material48.ListItem, { children: headers.map((header, i) => /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(import_material48.ListItemText, { primary: header.text }, i)) });
|
|
6068
6345
|
};
|
|
6069
6346
|
function VirtualizedList(props) {
|
|
6070
6347
|
const { innerWidth, innerHeight } = window;
|
|
6071
6348
|
const { headers, items, renderItem } = props;
|
|
6072
|
-
return /* @__PURE__ */ (0,
|
|
6073
|
-
/* @__PURE__ */ (0,
|
|
6074
|
-
/* @__PURE__ */ (0,
|
|
6349
|
+
return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_jsx_runtime100.Fragment, { children: [
|
|
6350
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(ListHeader, { headers }),
|
|
6351
|
+
/* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
|
|
6075
6352
|
import_react_window.FixedSizeList,
|
|
6076
6353
|
{
|
|
6077
6354
|
height: innerHeight - 150,
|
|
@@ -6086,9 +6363,9 @@ function VirtualizedList(props) {
|
|
|
6086
6363
|
}
|
|
6087
6364
|
|
|
6088
6365
|
// src/components/Loading/Loading.tsx
|
|
6089
|
-
var
|
|
6366
|
+
var import_material49 = require("@mui/material");
|
|
6090
6367
|
var import_mui31 = require("tss-react/mui");
|
|
6091
|
-
var
|
|
6368
|
+
var import_jsx_runtime101 = require("react/jsx-runtime");
|
|
6092
6369
|
var useStyles29 = (0, import_mui31.makeStyles)()(() => ({
|
|
6093
6370
|
wrapper: {
|
|
6094
6371
|
/**
|
|
@@ -6100,26 +6377,26 @@ var useStyles29 = (0, import_mui31.makeStyles)()(() => ({
|
|
|
6100
6377
|
}));
|
|
6101
6378
|
var Loading = ({ isLoading }) => {
|
|
6102
6379
|
const { classes } = useStyles29();
|
|
6103
|
-
return /* @__PURE__ */ (0,
|
|
6104
|
-
|
|
6380
|
+
return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
|
|
6381
|
+
import_material49.Backdrop,
|
|
6105
6382
|
{
|
|
6106
6383
|
"aria-hidden": !isLoading,
|
|
6107
6384
|
className: classes.wrapper,
|
|
6108
6385
|
open: isLoading,
|
|
6109
6386
|
"data-testid": "backdrop-loading",
|
|
6110
|
-
children: /* @__PURE__ */ (0,
|
|
6387
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_material49.CircularProgress, { color: "primary" })
|
|
6111
6388
|
}
|
|
6112
6389
|
);
|
|
6113
6390
|
};
|
|
6114
6391
|
var Loading_default = Loading;
|
|
6115
6392
|
|
|
6116
6393
|
// src/components/LocationsSectionInfo/LocationsSectionInfo.tsx
|
|
6117
|
-
var
|
|
6118
|
-
var
|
|
6119
|
-
var
|
|
6394
|
+
var import_react28 = require("react");
|
|
6395
|
+
var import_material50 = require("@mui/material");
|
|
6396
|
+
var import_colors38 = require("@mui/material/colors");
|
|
6120
6397
|
var import_classnames2 = __toESM(require("classnames"), 1);
|
|
6121
6398
|
var import_mui32 = require("tss-react/mui");
|
|
6122
|
-
var
|
|
6399
|
+
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
6123
6400
|
var useStyles30 = (0, import_mui32.makeStyles)()(() => ({
|
|
6124
6401
|
container: {
|
|
6125
6402
|
display: "flex",
|
|
@@ -6145,8 +6422,8 @@ var useStyles30 = (0, import_mui32.makeStyles)()(() => ({
|
|
|
6145
6422
|
borderColor: colors.neutral100
|
|
6146
6423
|
},
|
|
6147
6424
|
pickingStockChip: {
|
|
6148
|
-
backgroundColor:
|
|
6149
|
-
color:
|
|
6425
|
+
backgroundColor: import_colors38.purple[50],
|
|
6426
|
+
color: import_colors38.purple[500]
|
|
6150
6427
|
}
|
|
6151
6428
|
}));
|
|
6152
6429
|
var LocationsSectionInfo = ({
|
|
@@ -6165,9 +6442,9 @@ var LocationsSectionInfo = ({
|
|
|
6165
6442
|
}
|
|
6166
6443
|
return "STOCK";
|
|
6167
6444
|
};
|
|
6168
|
-
return /* @__PURE__ */ (0,
|
|
6169
|
-
/* @__PURE__ */ (0,
|
|
6170
|
-
|
|
6445
|
+
return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_material50.Box, { className: classes.container, children: [
|
|
6446
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
6447
|
+
import_material50.Chip,
|
|
6171
6448
|
{
|
|
6172
6449
|
className: (0, import_classnames2.default)(classes.defaultChip, {
|
|
6173
6450
|
[classes.stockChip]: isStock,
|
|
@@ -6177,20 +6454,20 @@ var LocationsSectionInfo = ({
|
|
|
6177
6454
|
label: getLocationLabel()
|
|
6178
6455
|
}
|
|
6179
6456
|
),
|
|
6180
|
-
/* @__PURE__ */ (0,
|
|
6181
|
-
secondaryLocation?.map((loc) => /* @__PURE__ */ (0,
|
|
6182
|
-
/* @__PURE__ */ (0,
|
|
6183
|
-
/* @__PURE__ */ (0,
|
|
6457
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_material50.Typography, { className: classes.locationText, color: "primary", children: principalLocation }),
|
|
6458
|
+
secondaryLocation?.map((loc) => /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_react28.Fragment, { children: [
|
|
6459
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_material50.Typography, { className: classes.smallTitle, children: "/" }),
|
|
6460
|
+
/* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_material50.Typography, { className: classes.locationText, children: loc })
|
|
6184
6461
|
] }, loc))
|
|
6185
6462
|
] });
|
|
6186
6463
|
};
|
|
6187
6464
|
var LocationsSectionInfo_default = LocationsSectionInfo;
|
|
6188
6465
|
|
|
6189
6466
|
// src/components/Notes/Notes.tsx
|
|
6190
|
-
var
|
|
6191
|
-
var
|
|
6467
|
+
var import_react29 = require("react");
|
|
6468
|
+
var import_material51 = require("@mui/material");
|
|
6192
6469
|
var import_mui33 = require("tss-react/mui");
|
|
6193
|
-
var
|
|
6470
|
+
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
6194
6471
|
var useStyles31 = (0, import_mui33.makeStyles)()((theme) => ({
|
|
6195
6472
|
wrapper: {
|
|
6196
6473
|
padding: theme.spacing(3),
|
|
@@ -6207,8 +6484,8 @@ var Notes2 = ({
|
|
|
6207
6484
|
onChange,
|
|
6208
6485
|
onClearNotes
|
|
6209
6486
|
}) => {
|
|
6210
|
-
const [notes, setNotes] = (0,
|
|
6211
|
-
(0,
|
|
6487
|
+
const [notes, setNotes] = (0, import_react29.useState)("");
|
|
6488
|
+
(0, import_react29.useEffect)(() => {
|
|
6212
6489
|
if (!initialNotes) {
|
|
6213
6490
|
return;
|
|
6214
6491
|
}
|
|
@@ -6233,13 +6510,13 @@ var Notes2 = ({
|
|
|
6233
6510
|
}
|
|
6234
6511
|
};
|
|
6235
6512
|
const { classes } = useStyles31();
|
|
6236
|
-
return /* @__PURE__ */ (0,
|
|
6237
|
-
/* @__PURE__ */ (0,
|
|
6238
|
-
/* @__PURE__ */ (0,
|
|
6239
|
-
|
|
6513
|
+
return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: classes.wrapper, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_material51.FormControl, { fullWidth: true, children: [
|
|
6514
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_material51.InputLabel, { htmlFor: "notes", children: "Notes" }),
|
|
6515
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
6516
|
+
import_material51.Input,
|
|
6240
6517
|
{
|
|
6241
6518
|
disabled: isDisabled || isLoading,
|
|
6242
|
-
endAdornment: isEditable && notes.length > 0 && /* @__PURE__ */ (0,
|
|
6519
|
+
endAdornment: isEditable && notes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_material51.InputAdornment, { position: "end", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
6243
6520
|
RoundButton_default,
|
|
6244
6521
|
{
|
|
6245
6522
|
disabled: isLoading,
|
|
@@ -6265,8 +6542,8 @@ var Notes2 = ({
|
|
|
6265
6542
|
var Notes_default = Notes2;
|
|
6266
6543
|
|
|
6267
6544
|
// src/components/Numpad/Numpad.tsx
|
|
6268
|
-
var
|
|
6269
|
-
var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0,
|
|
6545
|
+
var import_jsx_runtime104 = require("react/jsx-runtime");
|
|
6546
|
+
var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
|
|
6270
6547
|
"div",
|
|
6271
6548
|
{
|
|
6272
6549
|
style: {
|
|
@@ -6278,9 +6555,9 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6278
6555
|
padding: 8
|
|
6279
6556
|
},
|
|
6280
6557
|
children: [
|
|
6281
|
-
/* @__PURE__ */ (0,
|
|
6282
|
-
/* @__PURE__ */ (0,
|
|
6283
|
-
/* @__PURE__ */ (0,
|
|
6558
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { children: [
|
|
6559
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { children: [
|
|
6560
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6284
6561
|
RoundButton_default,
|
|
6285
6562
|
{
|
|
6286
6563
|
onClick: () => handleClick("1"),
|
|
@@ -6289,7 +6566,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6289
6566
|
children: "1"
|
|
6290
6567
|
}
|
|
6291
6568
|
),
|
|
6292
|
-
/* @__PURE__ */ (0,
|
|
6569
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6293
6570
|
RoundButton_default,
|
|
6294
6571
|
{
|
|
6295
6572
|
onClick: () => handleClick("2"),
|
|
@@ -6298,7 +6575,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6298
6575
|
children: "2"
|
|
6299
6576
|
}
|
|
6300
6577
|
),
|
|
6301
|
-
/* @__PURE__ */ (0,
|
|
6578
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6302
6579
|
RoundButton_default,
|
|
6303
6580
|
{
|
|
6304
6581
|
onClick: () => handleClick("3"),
|
|
@@ -6308,8 +6585,8 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6308
6585
|
}
|
|
6309
6586
|
)
|
|
6310
6587
|
] }),
|
|
6311
|
-
/* @__PURE__ */ (0,
|
|
6312
|
-
/* @__PURE__ */ (0,
|
|
6588
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { children: [
|
|
6589
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6313
6590
|
RoundButton_default,
|
|
6314
6591
|
{
|
|
6315
6592
|
onClick: () => handleClick("4"),
|
|
@@ -6318,7 +6595,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6318
6595
|
children: "4"
|
|
6319
6596
|
}
|
|
6320
6597
|
),
|
|
6321
|
-
/* @__PURE__ */ (0,
|
|
6598
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6322
6599
|
RoundButton_default,
|
|
6323
6600
|
{
|
|
6324
6601
|
onClick: () => handleClick("5"),
|
|
@@ -6327,7 +6604,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6327
6604
|
children: "5"
|
|
6328
6605
|
}
|
|
6329
6606
|
),
|
|
6330
|
-
/* @__PURE__ */ (0,
|
|
6607
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6331
6608
|
RoundButton_default,
|
|
6332
6609
|
{
|
|
6333
6610
|
onClick: () => handleClick("6"),
|
|
@@ -6337,8 +6614,8 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6337
6614
|
}
|
|
6338
6615
|
)
|
|
6339
6616
|
] }),
|
|
6340
|
-
/* @__PURE__ */ (0,
|
|
6341
|
-
/* @__PURE__ */ (0,
|
|
6617
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { children: [
|
|
6618
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6342
6619
|
RoundButton_default,
|
|
6343
6620
|
{
|
|
6344
6621
|
onClick: () => handleClick("7"),
|
|
@@ -6347,7 +6624,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6347
6624
|
children: "7"
|
|
6348
6625
|
}
|
|
6349
6626
|
),
|
|
6350
|
-
/* @__PURE__ */ (0,
|
|
6627
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6351
6628
|
RoundButton_default,
|
|
6352
6629
|
{
|
|
6353
6630
|
onClick: () => handleClick("8"),
|
|
@@ -6356,7 +6633,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6356
6633
|
children: "8"
|
|
6357
6634
|
}
|
|
6358
6635
|
),
|
|
6359
|
-
/* @__PURE__ */ (0,
|
|
6636
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6360
6637
|
RoundButton_default,
|
|
6361
6638
|
{
|
|
6362
6639
|
onClick: () => handleClick("9"),
|
|
@@ -6366,8 +6643,8 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6366
6643
|
}
|
|
6367
6644
|
)
|
|
6368
6645
|
] }),
|
|
6369
|
-
/* @__PURE__ */ (0,
|
|
6370
|
-
/* @__PURE__ */ (0,
|
|
6646
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { children: [
|
|
6647
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6371
6648
|
RoundButton_default,
|
|
6372
6649
|
{
|
|
6373
6650
|
onClick: () => handleClick("0"),
|
|
@@ -6376,7 +6653,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6376
6653
|
children: "0"
|
|
6377
6654
|
}
|
|
6378
6655
|
),
|
|
6379
|
-
/* @__PURE__ */ (0,
|
|
6656
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6380
6657
|
RoundButton_default,
|
|
6381
6658
|
{
|
|
6382
6659
|
onClick: () => handleClick("."),
|
|
@@ -6387,7 +6664,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6387
6664
|
)
|
|
6388
6665
|
] })
|
|
6389
6666
|
] }),
|
|
6390
|
-
/* @__PURE__ */ (0,
|
|
6667
|
+
/* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6391
6668
|
"div",
|
|
6392
6669
|
{
|
|
6393
6670
|
style: {
|
|
@@ -6396,7 +6673,7 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6396
6673
|
justifyContent: "space-between",
|
|
6397
6674
|
borderLeft: `1px solid ${colors.neutral250}`
|
|
6398
6675
|
},
|
|
6399
|
-
children: /* @__PURE__ */ (0,
|
|
6676
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
|
|
6400
6677
|
RoundButton_default,
|
|
6401
6678
|
{
|
|
6402
6679
|
icon: "backspaceOutlined",
|
|
@@ -6413,10 +6690,10 @@ var Numpad = ({ handleClick, handleUndo }) => /* @__PURE__ */ (0, import_jsx_run
|
|
|
6413
6690
|
var Numpad_default = Numpad;
|
|
6414
6691
|
|
|
6415
6692
|
// src/components/NumpadInput/NumpadInput.tsx
|
|
6416
|
-
var
|
|
6417
|
-
var
|
|
6693
|
+
var import_react30 = require("react");
|
|
6694
|
+
var import_material52 = require("@mui/material");
|
|
6418
6695
|
var import_mui34 = require("tss-react/mui");
|
|
6419
|
-
var
|
|
6696
|
+
var import_jsx_runtime105 = require("react/jsx-runtime");
|
|
6420
6697
|
var useStyles32 = (0, import_mui34.makeStyles)()(() => ({
|
|
6421
6698
|
c_numpadinput__textfield: {
|
|
6422
6699
|
"& .MuiInputLabel-outlined.MuiInputLabel-shrink": {
|
|
@@ -6443,7 +6720,7 @@ var useStyles32 = (0, import_mui34.makeStyles)()(() => ({
|
|
|
6443
6720
|
var NumpadInput = (props) => {
|
|
6444
6721
|
const { handleNextClick, inputLabel, children } = props;
|
|
6445
6722
|
const { classes } = useStyles32();
|
|
6446
|
-
const [state, setState] = (0,
|
|
6723
|
+
const [state, setState] = (0, import_react30.useState)("");
|
|
6447
6724
|
const handleNumpadClick = (value) => {
|
|
6448
6725
|
setState(state + value);
|
|
6449
6726
|
};
|
|
@@ -6453,13 +6730,13 @@ var NumpadInput = (props) => {
|
|
|
6453
6730
|
function handleSubmit() {
|
|
6454
6731
|
handleNextClick?.(state);
|
|
6455
6732
|
}
|
|
6456
|
-
const DefaultInput = /* @__PURE__ */ (0,
|
|
6457
|
-
/* @__PURE__ */ (0,
|
|
6458
|
-
/* @__PURE__ */ (0,
|
|
6459
|
-
|
|
6733
|
+
const DefaultInput = /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { children: [
|
|
6734
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_material52.Typography, { variant: "h5", style: { padding: "16px 0 3rem" }, children: inputLabel }),
|
|
6735
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)("form", { noValidate: true, autoComplete: "off", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
6736
|
+
import_material52.TextField,
|
|
6460
6737
|
{
|
|
6461
6738
|
id: "outlined-basic",
|
|
6462
|
-
label: /* @__PURE__ */ (0,
|
|
6739
|
+
label: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_material52.Typography, { style: { fontSize: "1.5rem" }, children: "Insert" }),
|
|
6463
6740
|
value: state,
|
|
6464
6741
|
variant: "outlined",
|
|
6465
6742
|
autoFocus: true,
|
|
@@ -6474,27 +6751,27 @@ var NumpadInput = (props) => {
|
|
|
6474
6751
|
) }),
|
|
6475
6752
|
children
|
|
6476
6753
|
] });
|
|
6477
|
-
return /* @__PURE__ */ (0,
|
|
6478
|
-
/* @__PURE__ */ (0,
|
|
6754
|
+
return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { children: [
|
|
6755
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: classes.c_numpadinput__body, children: [
|
|
6479
6756
|
children || DefaultInput,
|
|
6480
|
-
/* @__PURE__ */ (0,
|
|
6757
|
+
/* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Numpad_default, { handleClick: handleNumpadClick, handleUndo })
|
|
6481
6758
|
] }),
|
|
6482
|
-
state ? /* @__PURE__ */ (0,
|
|
6759
|
+
state ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
|
|
6483
6760
|
FilledButtonLg_default,
|
|
6484
6761
|
{
|
|
6485
6762
|
color: "primary",
|
|
6486
6763
|
copy: "next",
|
|
6487
6764
|
handleClick: handleSubmit
|
|
6488
6765
|
}
|
|
6489
|
-
) : /* @__PURE__ */ (0,
|
|
6766
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(FilledButtonLg_default, { copy: "next", disabled: true })
|
|
6490
6767
|
] });
|
|
6491
6768
|
};
|
|
6492
|
-
var NumpadInput_default = (0,
|
|
6769
|
+
var NumpadInput_default = (0, import_react30.memo)(NumpadInput);
|
|
6493
6770
|
|
|
6494
6771
|
// src/components/NumpadPlus/NumpadPlus.tsx
|
|
6495
|
-
var
|
|
6772
|
+
var import_material53 = require("@mui/material");
|
|
6496
6773
|
var import_mui35 = require("tss-react/mui");
|
|
6497
|
-
var
|
|
6774
|
+
var import_jsx_runtime106 = require("react/jsx-runtime");
|
|
6498
6775
|
var useStyles33 = (0, import_mui35.makeStyles)()(() => ({
|
|
6499
6776
|
numpadContainer: {
|
|
6500
6777
|
display: "flex",
|
|
@@ -6526,10 +6803,10 @@ var useStyles33 = (0, import_mui35.makeStyles)()(() => ({
|
|
|
6526
6803
|
}));
|
|
6527
6804
|
var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
6528
6805
|
const { classes: styles } = useStyles33();
|
|
6529
|
-
return /* @__PURE__ */ (0,
|
|
6530
|
-
/* @__PURE__ */ (0,
|
|
6531
|
-
/* @__PURE__ */ (0,
|
|
6532
|
-
/* @__PURE__ */ (0,
|
|
6806
|
+
return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_material53.Box, { className: styles.numpadContainer, children: [
|
|
6807
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_material53.Box, { className: styles.numpadNumbersContainer, children: [
|
|
6808
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_material53.Box, { className: styles.numpadRow, children: [
|
|
6809
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6533
6810
|
RoundButton_default,
|
|
6534
6811
|
{
|
|
6535
6812
|
onClick: () => handleClick("1"),
|
|
@@ -6538,7 +6815,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6538
6815
|
children: "1"
|
|
6539
6816
|
}
|
|
6540
6817
|
),
|
|
6541
|
-
/* @__PURE__ */ (0,
|
|
6818
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6542
6819
|
RoundButton_default,
|
|
6543
6820
|
{
|
|
6544
6821
|
onClick: () => handleClick("2"),
|
|
@@ -6547,7 +6824,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6547
6824
|
children: "2"
|
|
6548
6825
|
}
|
|
6549
6826
|
),
|
|
6550
|
-
/* @__PURE__ */ (0,
|
|
6827
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6551
6828
|
RoundButton_default,
|
|
6552
6829
|
{
|
|
6553
6830
|
onClick: () => handleClick("3"),
|
|
@@ -6557,8 +6834,8 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6557
6834
|
}
|
|
6558
6835
|
)
|
|
6559
6836
|
] }),
|
|
6560
|
-
/* @__PURE__ */ (0,
|
|
6561
|
-
/* @__PURE__ */ (0,
|
|
6837
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_material53.Box, { className: styles.numpadRow, children: [
|
|
6838
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6562
6839
|
RoundButton_default,
|
|
6563
6840
|
{
|
|
6564
6841
|
onClick: () => handleClick("4"),
|
|
@@ -6567,7 +6844,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6567
6844
|
children: "4"
|
|
6568
6845
|
}
|
|
6569
6846
|
),
|
|
6570
|
-
/* @__PURE__ */ (0,
|
|
6847
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6571
6848
|
RoundButton_default,
|
|
6572
6849
|
{
|
|
6573
6850
|
onClick: () => handleClick("5"),
|
|
@@ -6576,7 +6853,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6576
6853
|
children: "5"
|
|
6577
6854
|
}
|
|
6578
6855
|
),
|
|
6579
|
-
/* @__PURE__ */ (0,
|
|
6856
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6580
6857
|
RoundButton_default,
|
|
6581
6858
|
{
|
|
6582
6859
|
onClick: () => handleClick("6"),
|
|
@@ -6586,8 +6863,8 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6586
6863
|
}
|
|
6587
6864
|
)
|
|
6588
6865
|
] }),
|
|
6589
|
-
/* @__PURE__ */ (0,
|
|
6590
|
-
/* @__PURE__ */ (0,
|
|
6866
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_material53.Box, { className: styles.numpadRow, children: [
|
|
6867
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6591
6868
|
RoundButton_default,
|
|
6592
6869
|
{
|
|
6593
6870
|
onClick: () => handleClick("7"),
|
|
@@ -6596,7 +6873,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6596
6873
|
children: "7"
|
|
6597
6874
|
}
|
|
6598
6875
|
),
|
|
6599
|
-
/* @__PURE__ */ (0,
|
|
6876
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6600
6877
|
RoundButton_default,
|
|
6601
6878
|
{
|
|
6602
6879
|
onClick: () => handleClick("8"),
|
|
@@ -6605,7 +6882,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6605
6882
|
children: "8"
|
|
6606
6883
|
}
|
|
6607
6884
|
),
|
|
6608
|
-
/* @__PURE__ */ (0,
|
|
6885
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6609
6886
|
RoundButton_default,
|
|
6610
6887
|
{
|
|
6611
6888
|
onClick: () => handleClick("9"),
|
|
@@ -6615,8 +6892,8 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6615
6892
|
}
|
|
6616
6893
|
)
|
|
6617
6894
|
] }),
|
|
6618
|
-
/* @__PURE__ */ (0,
|
|
6619
|
-
/* @__PURE__ */ (0,
|
|
6895
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_material53.Box, { className: styles.numpadRow, children: [
|
|
6896
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6620
6897
|
RoundButton_default,
|
|
6621
6898
|
{
|
|
6622
6899
|
onClick: () => handleClick("0"),
|
|
@@ -6625,7 +6902,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6625
6902
|
children: "0"
|
|
6626
6903
|
}
|
|
6627
6904
|
),
|
|
6628
|
-
/* @__PURE__ */ (0,
|
|
6905
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6629
6906
|
RoundButton_default,
|
|
6630
6907
|
{
|
|
6631
6908
|
onClick: () => handleClick("."),
|
|
@@ -6634,7 +6911,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6634
6911
|
children: "."
|
|
6635
6912
|
}
|
|
6636
6913
|
),
|
|
6637
|
-
/* @__PURE__ */ (0,
|
|
6914
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6638
6915
|
RoundButton_default,
|
|
6639
6916
|
{
|
|
6640
6917
|
onClick: () => handleClick("-"),
|
|
@@ -6645,7 +6922,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6645
6922
|
)
|
|
6646
6923
|
] })
|
|
6647
6924
|
] }),
|
|
6648
|
-
/* @__PURE__ */ (0,
|
|
6925
|
+
/* @__PURE__ */ (0, import_jsx_runtime106.jsx)(import_material53.Box, { className: styles.numpadBackspace, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
|
|
6649
6926
|
RoundButton_default,
|
|
6650
6927
|
{
|
|
6651
6928
|
icon: "backspaceOutlined",
|
|
@@ -6659,9 +6936,9 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6659
6936
|
var NumpadPlus_default = NumpadPlus;
|
|
6660
6937
|
|
|
6661
6938
|
// src/components/Pagination/Pagination.tsx
|
|
6662
|
-
var
|
|
6939
|
+
var import_material54 = require("@mui/material");
|
|
6663
6940
|
var import_mui36 = require("tss-react/mui");
|
|
6664
|
-
var
|
|
6941
|
+
var import_jsx_runtime107 = require("react/jsx-runtime");
|
|
6665
6942
|
var paginationHeight = "56px";
|
|
6666
6943
|
var useStyles34 = (0, import_mui36.makeStyles)()((theme) => ({
|
|
6667
6944
|
root: {
|
|
@@ -6705,7 +6982,7 @@ var PaginationForTable = ({
|
|
|
6705
6982
|
updateFilters({ ...appliedFilters, page: value });
|
|
6706
6983
|
};
|
|
6707
6984
|
const isFixed = position === "fixed";
|
|
6708
|
-
return /* @__PURE__ */ (0,
|
|
6985
|
+
return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_material54.Paper, { children: /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
|
|
6709
6986
|
"div",
|
|
6710
6987
|
{
|
|
6711
6988
|
style,
|
|
@@ -6713,12 +6990,12 @@ var PaginationForTable = ({
|
|
|
6713
6990
|
[classes.fixed]: isFixed
|
|
6714
6991
|
}),
|
|
6715
6992
|
children: [
|
|
6716
|
-
/* @__PURE__ */ (0,
|
|
6993
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_material54.Typography, { variant: "body1", children: [
|
|
6717
6994
|
"Page: ",
|
|
6718
6995
|
page
|
|
6719
6996
|
] }),
|
|
6720
|
-
/* @__PURE__ */ (0,
|
|
6721
|
-
|
|
6997
|
+
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
|
|
6998
|
+
import_material54.Pagination,
|
|
6722
6999
|
{
|
|
6723
7000
|
count: pagination.num_pages,
|
|
6724
7001
|
page,
|
|
@@ -6732,11 +7009,11 @@ var PaginationForTable = ({
|
|
|
6732
7009
|
var Pagination_default = PaginationForTable;
|
|
6733
7010
|
|
|
6734
7011
|
// src/components/PlusMinusInput/PlusMinusInput.tsx
|
|
6735
|
-
var
|
|
7012
|
+
var import_react31 = require("react");
|
|
6736
7013
|
var import_react_hook_form9 = require("react-hook-form");
|
|
6737
|
-
var
|
|
7014
|
+
var import_material55 = require("@mui/material");
|
|
6738
7015
|
var import_mui37 = require("tss-react/mui");
|
|
6739
|
-
var
|
|
7016
|
+
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
6740
7017
|
var useStyles35 = (0, import_mui37.makeStyles)()((theme) => ({
|
|
6741
7018
|
container: {
|
|
6742
7019
|
position: "relative",
|
|
@@ -6814,7 +7091,7 @@ var PlusMinusInput = ({
|
|
|
6814
7091
|
}
|
|
6815
7092
|
});
|
|
6816
7093
|
const inputValue = (0, import_react_hook_form9.useWatch)({ control, name: "inputValue" });
|
|
6817
|
-
const setInputValue = (0,
|
|
7094
|
+
const setInputValue = (0, import_react31.useCallback)(
|
|
6818
7095
|
(newValue) => {
|
|
6819
7096
|
if (Number.isNaN(newValue) || newValue < 0) {
|
|
6820
7097
|
return;
|
|
@@ -6823,7 +7100,7 @@ var PlusMinusInput = ({
|
|
|
6823
7100
|
},
|
|
6824
7101
|
[setValue]
|
|
6825
7102
|
);
|
|
6826
|
-
(0,
|
|
7103
|
+
(0, import_react31.useEffect)(() => {
|
|
6827
7104
|
clearErrors("inputValue");
|
|
6828
7105
|
if (inputValue === "") {
|
|
6829
7106
|
setError("inputValue", {
|
|
@@ -6843,7 +7120,7 @@ var PlusMinusInput = ({
|
|
|
6843
7120
|
}
|
|
6844
7121
|
}
|
|
6845
7122
|
}, [clearErrors, inputValue, setError]);
|
|
6846
|
-
(0,
|
|
7123
|
+
(0, import_react31.useEffect)(() => {
|
|
6847
7124
|
if (typeof initialValue !== "number") {
|
|
6848
7125
|
return;
|
|
6849
7126
|
}
|
|
@@ -6879,15 +7156,15 @@ var PlusMinusInput = ({
|
|
|
6879
7156
|
updateInputValue(value);
|
|
6880
7157
|
};
|
|
6881
7158
|
const { classes, cx } = useStyles35();
|
|
6882
|
-
return /* @__PURE__ */ (0,
|
|
6883
|
-
|
|
7159
|
+
return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("div", { className: classes.container, children: /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
|
|
7160
|
+
import_material55.FormGroup,
|
|
6884
7161
|
{
|
|
6885
7162
|
className: cx(classes.wrapper, {
|
|
6886
7163
|
[classes.leftButtons]: buttonsPosition === "left",
|
|
6887
7164
|
[classes.rightButtons]: buttonsPosition === "right"
|
|
6888
7165
|
}),
|
|
6889
7166
|
children: [
|
|
6890
|
-
/* @__PURE__ */ (0,
|
|
7167
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
6891
7168
|
RoundButton_default,
|
|
6892
7169
|
{
|
|
6893
7170
|
className: classes.minus,
|
|
@@ -6897,19 +7174,19 @@ var PlusMinusInput = ({
|
|
|
6897
7174
|
size: "small"
|
|
6898
7175
|
}
|
|
6899
7176
|
),
|
|
6900
|
-
/* @__PURE__ */ (0,
|
|
6901
|
-
/* @__PURE__ */ (0,
|
|
7177
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { children: [
|
|
7178
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
6902
7179
|
import_react_hook_form9.Controller,
|
|
6903
7180
|
{
|
|
6904
7181
|
control,
|
|
6905
7182
|
name: "inputValue",
|
|
6906
|
-
render: ({ field }) => /* @__PURE__ */ (0,
|
|
6907
|
-
|
|
7183
|
+
render: ({ field }) => /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
7184
|
+
import_material55.FormControlLabel,
|
|
6908
7185
|
{
|
|
6909
7186
|
...field,
|
|
6910
7187
|
className: classes.formControlLabel,
|
|
6911
|
-
control: /* @__PURE__ */ (0,
|
|
6912
|
-
|
|
7188
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
7189
|
+
import_material55.TextField,
|
|
6913
7190
|
{
|
|
6914
7191
|
className: classes.input,
|
|
6915
7192
|
disabled,
|
|
@@ -6925,8 +7202,8 @@ var PlusMinusInput = ({
|
|
|
6925
7202
|
)
|
|
6926
7203
|
}
|
|
6927
7204
|
),
|
|
6928
|
-
errors.inputValue && /* @__PURE__ */ (0,
|
|
6929
|
-
|
|
7205
|
+
errors.inputValue && /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
7206
|
+
import_material55.Typography,
|
|
6930
7207
|
{
|
|
6931
7208
|
className: classes.errorText,
|
|
6932
7209
|
color: "error",
|
|
@@ -6936,7 +7213,7 @@ var PlusMinusInput = ({
|
|
|
6936
7213
|
}
|
|
6937
7214
|
)
|
|
6938
7215
|
] }),
|
|
6939
|
-
/* @__PURE__ */ (0,
|
|
7216
|
+
/* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
6940
7217
|
RoundButton_default,
|
|
6941
7218
|
{
|
|
6942
7219
|
className: classes.plus,
|
|
@@ -6953,28 +7230,28 @@ var PlusMinusInput = ({
|
|
|
6953
7230
|
var PlusMinusInput_default = PlusMinusInput;
|
|
6954
7231
|
|
|
6955
7232
|
// src/components/ProductBust/ProductBust.tsx
|
|
6956
|
-
var
|
|
6957
|
-
var
|
|
7233
|
+
var import_react32 = require("react");
|
|
7234
|
+
var import_material57 = require("@mui/material");
|
|
6958
7235
|
var import_mui39 = require("tss-react/mui");
|
|
6959
7236
|
|
|
6960
7237
|
// src/components/ProductImage/ProductImage.tsx
|
|
6961
|
-
var
|
|
7238
|
+
var import_material56 = require("@mui/material");
|
|
6962
7239
|
var import_mui38 = require("tss-react/mui");
|
|
6963
|
-
var
|
|
7240
|
+
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
6964
7241
|
var PImage = ({
|
|
6965
7242
|
classes,
|
|
6966
7243
|
image,
|
|
6967
7244
|
size = "c_productbust__image_xs",
|
|
6968
7245
|
status
|
|
6969
|
-
}) => /* @__PURE__ */ (0,
|
|
6970
|
-
/* @__PURE__ */ (0,
|
|
6971
|
-
|
|
7246
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: classes.c_productbust__image, children: [
|
|
7247
|
+
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
7248
|
+
import_material56.CardMedia,
|
|
6972
7249
|
{
|
|
6973
7250
|
className: classes[size],
|
|
6974
7251
|
image: image || "@/resources/img/peas.jpg"
|
|
6975
7252
|
}
|
|
6976
7253
|
),
|
|
6977
|
-
status && status !== "ACTIVE" && /* @__PURE__ */ (0,
|
|
7254
|
+
status && status !== "ACTIVE" && /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("div", { className: classes.c_productbust__label_status, children: status })
|
|
6978
7255
|
] });
|
|
6979
7256
|
var ProductImage = (0, import_mui38.withStyles)(PImage, (theme) => ({
|
|
6980
7257
|
c_productbust__label_status: {
|
|
@@ -7056,7 +7333,7 @@ var ProductImage = (0, import_mui38.withStyles)(PImage, (theme) => ({
|
|
|
7056
7333
|
var ProductImage_default = ProductImage;
|
|
7057
7334
|
|
|
7058
7335
|
// src/components/ProductBust/ProductBust.tsx
|
|
7059
|
-
var
|
|
7336
|
+
var import_jsx_runtime110 = require("react/jsx-runtime");
|
|
7060
7337
|
var PBust = ({
|
|
7061
7338
|
classes,
|
|
7062
7339
|
size,
|
|
@@ -7098,8 +7375,8 @@ var PBust = ({
|
|
|
7098
7375
|
default:
|
|
7099
7376
|
break;
|
|
7100
7377
|
}
|
|
7101
|
-
const [historyVisible, setHistoryVisible] = (0,
|
|
7102
|
-
const historyDataIcon = () => /* @__PURE__ */ (0,
|
|
7378
|
+
const [historyVisible, setHistoryVisible] = (0, import_react32.useState)(false);
|
|
7379
|
+
const historyDataIcon = () => /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
7103
7380
|
RoundButton_default,
|
|
7104
7381
|
{
|
|
7105
7382
|
icon: "history",
|
|
@@ -7107,8 +7384,8 @@ var PBust = ({
|
|
|
7107
7384
|
size: "small"
|
|
7108
7385
|
}
|
|
7109
7386
|
);
|
|
7110
|
-
return /* @__PURE__ */ (0,
|
|
7111
|
-
/* @__PURE__ */ (0,
|
|
7387
|
+
return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: classes.c_productbust, children: [
|
|
7388
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
7112
7389
|
ProductImage_default,
|
|
7113
7390
|
{
|
|
7114
7391
|
image: product?.image,
|
|
@@ -7116,11 +7393,11 @@ var PBust = ({
|
|
|
7116
7393
|
size: imageSize
|
|
7117
7394
|
}
|
|
7118
7395
|
),
|
|
7119
|
-
/* @__PURE__ */ (0,
|
|
7120
|
-
/* @__PURE__ */ (0,
|
|
7121
|
-
/* @__PURE__ */ (0,
|
|
7122
|
-
/* @__PURE__ */ (0,
|
|
7123
|
-
|
|
7396
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: classes.c_productbust__container, children: [
|
|
7397
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: classes.c_productbust__heading, children: [
|
|
7398
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { children: [
|
|
7399
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
7400
|
+
import_material57.Typography,
|
|
7124
7401
|
{
|
|
7125
7402
|
component: "span",
|
|
7126
7403
|
color: "textSecondary",
|
|
@@ -7128,19 +7405,19 @@ var PBust = ({
|
|
|
7128
7405
|
children: !!locationData && locationData
|
|
7129
7406
|
}
|
|
7130
7407
|
),
|
|
7131
|
-
/* @__PURE__ */ (0,
|
|
7132
|
-
!product && /* @__PURE__ */ (0,
|
|
7133
|
-
primaryData || /* @__PURE__ */ (0,
|
|
7134
|
-
/* @__PURE__ */ (0,
|
|
7135
|
-
|
|
7408
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_material57.Typography, { component: "span", className: classes[titleSize], children: product?.name }),
|
|
7409
|
+
!product && /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_material57.Typography, { component: "span", className: classes[titleSize], children: "Empty Position" }),
|
|
7410
|
+
primaryData || /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(import_jsx_runtime110.Fragment, { children: [
|
|
7411
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
7412
|
+
import_material57.Typography,
|
|
7136
7413
|
{
|
|
7137
7414
|
style: { color: "#555" },
|
|
7138
7415
|
className: classes[subtitle1Size],
|
|
7139
7416
|
children: product?.category.name
|
|
7140
7417
|
}
|
|
7141
7418
|
),
|
|
7142
|
-
/* @__PURE__ */ (0,
|
|
7143
|
-
|
|
7419
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
7420
|
+
import_material57.Typography,
|
|
7144
7421
|
{
|
|
7145
7422
|
style: { color: "#A42966", textTransform: "uppercase" },
|
|
7146
7423
|
className: classes[subtitle2Size],
|
|
@@ -7149,14 +7426,14 @@ var PBust = ({
|
|
|
7149
7426
|
)
|
|
7150
7427
|
] })
|
|
7151
7428
|
] }),
|
|
7152
|
-
/* @__PURE__ */ (0,
|
|
7153
|
-
/* @__PURE__ */ (0,
|
|
7154
|
-
/* @__PURE__ */ (0,
|
|
7429
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: classes.c_productbust__btns, children: [
|
|
7430
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { children: buttonData }),
|
|
7431
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { children: !!locationId && historyDataIcon() })
|
|
7155
7432
|
] })
|
|
7156
7433
|
] }),
|
|
7157
|
-
/* @__PURE__ */ (0,
|
|
7434
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { children: !!secondaryData && secondaryData })
|
|
7158
7435
|
] }),
|
|
7159
|
-
/* @__PURE__ */ (0,
|
|
7436
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
|
|
7160
7437
|
LocationHistoryDialog,
|
|
7161
7438
|
{
|
|
7162
7439
|
handleVisible: setHistoryVisible,
|
|
@@ -7258,23 +7535,23 @@ var ProductBust = (0, import_mui39.withStyles)(PBust, (theme) => ({
|
|
|
7258
7535
|
var ProductBust_default = ProductBust;
|
|
7259
7536
|
|
|
7260
7537
|
// src/components/RenderAvatar/RenderAvatar.tsx
|
|
7261
|
-
var
|
|
7538
|
+
var import_material58 = require("@mui/material");
|
|
7262
7539
|
var import_mui40 = require("tss-react/mui");
|
|
7263
|
-
var
|
|
7540
|
+
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
7264
7541
|
var RenderAvatar = ({ active }) => {
|
|
7265
|
-
const StyledBadge = (0, import_mui40.withStyles)(
|
|
7542
|
+
const StyledBadge = (0, import_mui40.withStyles)(import_material58.Badge, () => ({
|
|
7266
7543
|
root: {
|
|
7267
7544
|
".MuiBadge-dot": {
|
|
7268
7545
|
backgroundColor: active ? colors.muiSuccess : colors.neutral700
|
|
7269
7546
|
}
|
|
7270
7547
|
}
|
|
7271
7548
|
}));
|
|
7272
|
-
return /* @__PURE__ */ (0,
|
|
7273
|
-
|
|
7549
|
+
return /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(
|
|
7550
|
+
import_material58.Box,
|
|
7274
7551
|
{
|
|
7275
7552
|
sx: { display: "flex", flexDirection: "column", alignItems: "center" },
|
|
7276
7553
|
children: [
|
|
7277
|
-
/* @__PURE__ */ (0,
|
|
7554
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
7278
7555
|
StyledBadge,
|
|
7279
7556
|
{
|
|
7280
7557
|
overlap: "circular",
|
|
@@ -7283,10 +7560,10 @@ var RenderAvatar = ({ active }) => {
|
|
|
7283
7560
|
horizontal: "right"
|
|
7284
7561
|
},
|
|
7285
7562
|
variant: "dot",
|
|
7286
|
-
children: /* @__PURE__ */ (0,
|
|
7563
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material58.Avatar, {})
|
|
7287
7564
|
}
|
|
7288
7565
|
),
|
|
7289
|
-
/* @__PURE__ */ (0,
|
|
7566
|
+
/* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_material58.Typography, { variant: "caption", children: active ? "Active" : "Disabled" })
|
|
7290
7567
|
]
|
|
7291
7568
|
}
|
|
7292
7569
|
);
|
|
@@ -7294,17 +7571,17 @@ var RenderAvatar = ({ active }) => {
|
|
|
7294
7571
|
var RenderAvatar_default = RenderAvatar;
|
|
7295
7572
|
|
|
7296
7573
|
// src/components/RenderContentList/RenderContentList.tsx
|
|
7297
|
-
var
|
|
7574
|
+
var import_react34 = require("react");
|
|
7298
7575
|
var import_WarningAmber = __toESM(require("@mui/icons-material/WarningAmber"), 1);
|
|
7299
|
-
var
|
|
7576
|
+
var import_material59 = require("@mui/material");
|
|
7300
7577
|
var import_mui41 = require("tss-react/mui");
|
|
7301
7578
|
|
|
7302
7579
|
// src/utils/useGetActiveSection.ts
|
|
7303
|
-
var
|
|
7580
|
+
var import_react33 = require("react");
|
|
7304
7581
|
var transformNameToID = (name) => name.replaceAll(" ", "_").toLocaleLowerCase();
|
|
7305
7582
|
|
|
7306
7583
|
// src/components/RenderContentList/RenderContentList.tsx
|
|
7307
|
-
var
|
|
7584
|
+
var import_jsx_runtime112 = require("react/jsx-runtime");
|
|
7308
7585
|
var useStyles36 = (0, import_mui41.makeStyles)()(
|
|
7309
7586
|
(_theme, _params, classes) => ({
|
|
7310
7587
|
root: {
|
|
@@ -7325,11 +7602,11 @@ var RenderContentList = ({
|
|
|
7325
7602
|
warningMessage = "Missing information on this section"
|
|
7326
7603
|
}) => {
|
|
7327
7604
|
const { classes } = useStyles36();
|
|
7328
|
-
const [active, setActive] = (0,
|
|
7329
|
-
const observer = (0,
|
|
7330
|
-
const isScrolling = (0,
|
|
7331
|
-
const timeoutScrolling = (0,
|
|
7332
|
-
(0,
|
|
7605
|
+
const [active, setActive] = (0, import_react34.useState)(activeSection);
|
|
7606
|
+
const observer = (0, import_react34.useRef)(null);
|
|
7607
|
+
const isScrolling = (0, import_react34.useRef)(false);
|
|
7608
|
+
const timeoutScrolling = (0, import_react34.useRef)(null);
|
|
7609
|
+
(0, import_react34.useEffect)(() => {
|
|
7333
7610
|
if (!activeSection) {
|
|
7334
7611
|
return void 0;
|
|
7335
7612
|
}
|
|
@@ -7353,7 +7630,7 @@ var RenderContentList = ({
|
|
|
7353
7630
|
if (timeoutScrolling.current) clearTimeout(timeoutScrolling.current);
|
|
7354
7631
|
};
|
|
7355
7632
|
}, [activeSection]);
|
|
7356
|
-
(0,
|
|
7633
|
+
(0, import_react34.useEffect)(() => {
|
|
7357
7634
|
const sections = items.map((item) => ({
|
|
7358
7635
|
id: transformNameToID(item),
|
|
7359
7636
|
element: document.getElementById(transformNameToID(item))
|
|
@@ -7402,23 +7679,23 @@ var RenderContentList = ({
|
|
|
7402
7679
|
isScrolling.current = false;
|
|
7403
7680
|
}, 1e3);
|
|
7404
7681
|
};
|
|
7405
|
-
return /* @__PURE__ */ (0,
|
|
7406
|
-
|
|
7682
|
+
return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
7683
|
+
import_material59.List,
|
|
7407
7684
|
{
|
|
7408
7685
|
component: "nav",
|
|
7409
7686
|
"aria-labelledby": "nested-list-subheader",
|
|
7410
|
-
subheader: /* @__PURE__ */ (0,
|
|
7687
|
+
subheader: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material59.ListSubheader, { component: "div", id: "nested-list-subheader", children: "Contents" }),
|
|
7411
7688
|
children: items.map((item) => {
|
|
7412
7689
|
const id = transformNameToID(item);
|
|
7413
|
-
return /* @__PURE__ */ (0,
|
|
7414
|
-
|
|
7690
|
+
return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(
|
|
7691
|
+
import_material59.ListItemButton,
|
|
7415
7692
|
{
|
|
7416
7693
|
selected: active === id,
|
|
7417
7694
|
classes: { root: classes.root, selected: classes.selected },
|
|
7418
7695
|
onClick: () => handleMenuClick(id),
|
|
7419
7696
|
children: [
|
|
7420
|
-
/* @__PURE__ */ (0,
|
|
7421
|
-
(warningItems?.includes(item) || warningItems?.includes(id)) && /* @__PURE__ */ (0,
|
|
7697
|
+
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material59.ListItemText, { primary: item }),
|
|
7698
|
+
(warningItems?.includes(item) || warningItems?.includes(id)) && /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_material59.Tooltip, { title: warningMessage, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_WarningAmber.default, { color: "warning" }) })
|
|
7422
7699
|
]
|
|
7423
7700
|
},
|
|
7424
7701
|
id
|
|
@@ -7430,9 +7707,9 @@ var RenderContentList = ({
|
|
|
7430
7707
|
var RenderContentList_default = RenderContentList;
|
|
7431
7708
|
|
|
7432
7709
|
// src/components/RowProductCard/RowProductCard.tsx
|
|
7433
|
-
var
|
|
7710
|
+
var import_material60 = require("@mui/material");
|
|
7434
7711
|
var import_mui42 = require("tss-react/mui");
|
|
7435
|
-
var
|
|
7712
|
+
var import_jsx_runtime113 = require("react/jsx-runtime");
|
|
7436
7713
|
var useStyles37 = (0, import_mui42.makeStyles)()((theme) => ({
|
|
7437
7714
|
wrapper: {
|
|
7438
7715
|
display: "flex",
|
|
@@ -7471,8 +7748,8 @@ var RowProductCard = ({
|
|
|
7471
7748
|
medium: "c_productbust__image_md",
|
|
7472
7749
|
large: "c_productbust__image_lg"
|
|
7473
7750
|
};
|
|
7474
|
-
return /* @__PURE__ */ (0,
|
|
7475
|
-
/* @__PURE__ */ (0,
|
|
7751
|
+
return /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_material60.Paper, { className: classes.wrapper, children: [
|
|
7752
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
7476
7753
|
ProductImage_default,
|
|
7477
7754
|
{
|
|
7478
7755
|
image: product.image,
|
|
@@ -7480,15 +7757,15 @@ var RowProductCard = ({
|
|
|
7480
7757
|
size: imageSize[size]
|
|
7481
7758
|
}
|
|
7482
7759
|
),
|
|
7483
|
-
/* @__PURE__ */ (0,
|
|
7760
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
|
|
7484
7761
|
"div",
|
|
7485
7762
|
{
|
|
7486
7763
|
className: cx(classes.content, {
|
|
7487
7764
|
[classes.onlyProductName]: !hasColumns && !location
|
|
7488
7765
|
}),
|
|
7489
7766
|
children: [
|
|
7490
|
-
/* @__PURE__ */ (0,
|
|
7491
|
-
|
|
7767
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
|
|
7768
|
+
import_material60.Box,
|
|
7492
7769
|
{
|
|
7493
7770
|
className: classes.upperRow,
|
|
7494
7771
|
sx: {
|
|
@@ -7497,26 +7774,26 @@ var RowProductCard = ({
|
|
|
7497
7774
|
alignItems: "center"
|
|
7498
7775
|
},
|
|
7499
7776
|
children: [
|
|
7500
|
-
/* @__PURE__ */ (0,
|
|
7501
|
-
location ? /* @__PURE__ */ (0,
|
|
7502
|
-
/* @__PURE__ */ (0,
|
|
7777
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { children: [
|
|
7778
|
+
location ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material60.Typography, { className: classes.smallTitle, variant: "caption", children: `Location: ${location}` }) : null,
|
|
7779
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material60.Typography, { variant: "h6", children: product.name })
|
|
7503
7780
|
] }),
|
|
7504
7781
|
children
|
|
7505
7782
|
]
|
|
7506
7783
|
}
|
|
7507
7784
|
),
|
|
7508
|
-
hasColumns ? /* @__PURE__ */ (0,
|
|
7509
|
-
/* @__PURE__ */ (0,
|
|
7510
|
-
/* @__PURE__ */ (0,
|
|
7511
|
-
|
|
7785
|
+
hasColumns ? /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_jsx_runtime113.Fragment, { children: [
|
|
7786
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material60.Divider, { className: classes.divider }),
|
|
7787
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
|
|
7788
|
+
import_material60.Box,
|
|
7512
7789
|
{
|
|
7513
7790
|
sx: {
|
|
7514
7791
|
display: "flex",
|
|
7515
7792
|
gap: "24px"
|
|
7516
7793
|
},
|
|
7517
|
-
children: columns.map((column) => /* @__PURE__ */ (0,
|
|
7518
|
-
/* @__PURE__ */ (0,
|
|
7519
|
-
typeof column.value === "string" ? /* @__PURE__ */ (0,
|
|
7794
|
+
children: columns.map((column) => /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { children: [
|
|
7795
|
+
/* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material60.Typography, { className: classes.smallTitle, variant: "caption", children: column.title }),
|
|
7796
|
+
typeof column.value === "string" ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(import_material60.Typography, { variant: "body1", children: column.value }) : column.value
|
|
7520
7797
|
] }, column.title))
|
|
7521
7798
|
}
|
|
7522
7799
|
)
|
|
@@ -7529,10 +7806,10 @@ var RowProductCard = ({
|
|
|
7529
7806
|
var RowProductCard_default = RowProductCard;
|
|
7530
7807
|
|
|
7531
7808
|
// src/components/ScrollableDialog/ScrollableDialog.tsx
|
|
7532
|
-
var
|
|
7533
|
-
var
|
|
7809
|
+
var import_react35 = require("react");
|
|
7810
|
+
var import_material61 = require("@mui/material");
|
|
7534
7811
|
var import_mui43 = require("tss-react/mui");
|
|
7535
|
-
var
|
|
7812
|
+
var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
7536
7813
|
var useStyles38 = (0, import_mui43.makeStyles)()((theme) => ({
|
|
7537
7814
|
dialog: {
|
|
7538
7815
|
margin: "0 auto",
|
|
@@ -7572,18 +7849,18 @@ var ScrollableDialog = ({
|
|
|
7572
7849
|
isOpen,
|
|
7573
7850
|
title
|
|
7574
7851
|
}) => {
|
|
7575
|
-
const [bodyHeight, setBodyHeight] = (0,
|
|
7576
|
-
const [hasScrollBar, setHasScrollBar] = (0,
|
|
7577
|
-
const [maxDialogHeight, setMaxDialogHeight] = (0,
|
|
7852
|
+
const [bodyHeight, setBodyHeight] = (0, import_react35.useState)(0);
|
|
7853
|
+
const [hasScrollBar, setHasScrollBar] = (0, import_react35.useState)(false);
|
|
7854
|
+
const [maxDialogHeight, setMaxDialogHeight] = (0, import_react35.useState)(0);
|
|
7578
7855
|
const { classes, cx } = useStyles38();
|
|
7579
|
-
const headerRef = (0,
|
|
7580
|
-
const footerRef = (0,
|
|
7581
|
-
const titleRef = (0,
|
|
7582
|
-
const bodyRef = (0,
|
|
7856
|
+
const headerRef = (0, import_react35.useRef)(null);
|
|
7857
|
+
const footerRef = (0, import_react35.useRef)(null);
|
|
7858
|
+
const titleRef = (0, import_react35.useRef)(null);
|
|
7859
|
+
const bodyRef = (0, import_react35.useRef)(null);
|
|
7583
7860
|
const DIALOG_MARGIN = 65;
|
|
7584
7861
|
const DEFAULT_MAX_HEIGHT = 728;
|
|
7585
7862
|
const TITLE_MARGIN = 48;
|
|
7586
|
-
(0,
|
|
7863
|
+
(0, import_react35.useEffect)(() => {
|
|
7587
7864
|
const handleResize = () => {
|
|
7588
7865
|
const screenHeight = window.innerHeight;
|
|
7589
7866
|
const newMaxHeight = screenHeight < DEFAULT_MAX_HEIGHT + DIALOG_MARGIN ? screenHeight - DIALOG_MARGIN : DEFAULT_MAX_HEIGHT;
|
|
@@ -7602,23 +7879,23 @@ var ScrollableDialog = ({
|
|
|
7602
7879
|
const scrollHeight = bodyRef.current?.scrollHeight || 0;
|
|
7603
7880
|
setHasScrollBar(scrollHeight > contentHeight);
|
|
7604
7881
|
};
|
|
7605
|
-
(0,
|
|
7882
|
+
(0, import_react35.useEffect)(() => {
|
|
7606
7883
|
if (isOpen) {
|
|
7607
7884
|
requestAnimationFrame(measureHeights);
|
|
7608
7885
|
}
|
|
7609
7886
|
}, [isOpen, header, footer, title, maxDialogHeight]);
|
|
7610
|
-
return /* @__PURE__ */ (0,
|
|
7611
|
-
|
|
7887
|
+
return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.Dialog, { className: classes.dialog, fullWidth: true, maxWidth: false, open: isOpen, children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7888
|
+
import_material61.Fade,
|
|
7612
7889
|
{
|
|
7613
7890
|
in: isOpen,
|
|
7614
7891
|
onEntered: () => {
|
|
7615
7892
|
requestAnimationFrame(measureHeights);
|
|
7616
7893
|
},
|
|
7617
|
-
children: /* @__PURE__ */ (0,
|
|
7618
|
-
header ? /* @__PURE__ */ (0,
|
|
7619
|
-
/* @__PURE__ */ (0,
|
|
7620
|
-
/* @__PURE__ */ (0,
|
|
7621
|
-
|
|
7894
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(import_material61.Paper, { className: classes.wrapper, children: [
|
|
7895
|
+
header ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("div", { className: classes.header, id: "dialog-header", children: header }) : null,
|
|
7896
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: classes.body, children: [
|
|
7897
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7898
|
+
import_material61.Typography,
|
|
7622
7899
|
{
|
|
7623
7900
|
className: classes.title,
|
|
7624
7901
|
id: "dialog-title",
|
|
@@ -7626,7 +7903,7 @@ var ScrollableDialog = ({
|
|
|
7626
7903
|
children: title
|
|
7627
7904
|
}
|
|
7628
7905
|
),
|
|
7629
|
-
/* @__PURE__ */ (0,
|
|
7906
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7630
7907
|
"div",
|
|
7631
7908
|
{
|
|
7632
7909
|
className: cx(classes.scrollableContainer, {
|
|
@@ -7640,9 +7917,9 @@ var ScrollableDialog = ({
|
|
|
7640
7917
|
}
|
|
7641
7918
|
)
|
|
7642
7919
|
] }),
|
|
7643
|
-
/* @__PURE__ */ (0,
|
|
7644
|
-
footer ? /* @__PURE__ */ (0,
|
|
7645
|
-
|
|
7920
|
+
/* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_material61.Divider, {}),
|
|
7921
|
+
footer ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
7922
|
+
import_material61.Box,
|
|
7646
7923
|
{
|
|
7647
7924
|
className: classes.footer,
|
|
7648
7925
|
id: "dialog-footer",
|
|
@@ -7660,16 +7937,16 @@ var ScrollableDialog = ({
|
|
|
7660
7937
|
var ScrollableDialog_default = ScrollableDialog;
|
|
7661
7938
|
|
|
7662
7939
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeader.tsx
|
|
7663
|
-
var
|
|
7940
|
+
var import_material63 = require("@mui/material");
|
|
7664
7941
|
var import_mui45 = require("tss-react/mui");
|
|
7665
7942
|
|
|
7666
7943
|
// src/components/SearchWithFilters/SearchWithFilters.tsx
|
|
7667
|
-
var
|
|
7944
|
+
var import_react36 = require("react");
|
|
7668
7945
|
var React6 = __toESM(require("react"), 1);
|
|
7669
|
-
var
|
|
7670
|
-
var
|
|
7946
|
+
var import_icons_material4 = require("@mui/icons-material");
|
|
7947
|
+
var import_material62 = require("@mui/material");
|
|
7671
7948
|
var import_mui44 = require("tss-react/mui");
|
|
7672
|
-
var
|
|
7949
|
+
var import_jsx_runtime115 = require("react/jsx-runtime");
|
|
7673
7950
|
var useStyles39 = (0, import_mui44.makeStyles)()((theme) => ({
|
|
7674
7951
|
searchContainer: {
|
|
7675
7952
|
height: 46,
|
|
@@ -7714,7 +7991,7 @@ var SearchWithFilters = ({
|
|
|
7714
7991
|
},
|
|
7715
7992
|
disabled = false
|
|
7716
7993
|
}) => {
|
|
7717
|
-
const [searchText, setSearchText] = (0,
|
|
7994
|
+
const [searchText, setSearchText] = (0, import_react36.useState)(searchValue);
|
|
7718
7995
|
const { classes } = useStyles39();
|
|
7719
7996
|
const handleTextChange = (e) => {
|
|
7720
7997
|
const { value } = e.target;
|
|
@@ -7726,13 +8003,13 @@ var SearchWithFilters = ({
|
|
|
7726
8003
|
enterPressedInSearch?.();
|
|
7727
8004
|
}
|
|
7728
8005
|
};
|
|
7729
|
-
(0,
|
|
8006
|
+
(0, import_react36.useEffect)(() => {
|
|
7730
8007
|
setSearchText(searchValue);
|
|
7731
8008
|
}, [searchValue]);
|
|
7732
|
-
return /* @__PURE__ */ (0,
|
|
7733
|
-
/* @__PURE__ */ (0,
|
|
7734
|
-
/* @__PURE__ */ (0,
|
|
7735
|
-
|
|
8009
|
+
return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_material62.Paper, { className: classes.searchContainer, children: [
|
|
8010
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_icons_material4.Search, { className: classes.icon, fontSize: "small" }),
|
|
8011
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
|
|
8012
|
+
import_material62.InputBase,
|
|
7736
8013
|
{
|
|
7737
8014
|
className: classes.input,
|
|
7738
8015
|
placeholder: "Search",
|
|
@@ -7743,16 +8020,16 @@ var SearchWithFilters = ({
|
|
|
7743
8020
|
inputProps: { "aria-label": "search" }
|
|
7744
8021
|
}
|
|
7745
8022
|
),
|
|
7746
|
-
/* @__PURE__ */ (0,
|
|
7747
|
-
/* @__PURE__ */ (0,
|
|
7748
|
-
|
|
8023
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_material62.Divider, { className: classes.divider, orientation: "vertical" }),
|
|
8024
|
+
/* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
|
|
8025
|
+
import_material62.Button,
|
|
7749
8026
|
{
|
|
7750
8027
|
className: classes.filterButton,
|
|
7751
8028
|
onClick: filterClick,
|
|
7752
8029
|
disabled,
|
|
7753
8030
|
children: [
|
|
7754
8031
|
"Filters",
|
|
7755
|
-
showFilters ? /* @__PURE__ */ (0,
|
|
8032
|
+
showFilters ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_icons_material4.ArrowDropUp, {}) : /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_icons_material4.ArrowDropDown, {})
|
|
7756
8033
|
]
|
|
7757
8034
|
}
|
|
7758
8035
|
)
|
|
@@ -7761,7 +8038,7 @@ var SearchWithFilters = ({
|
|
|
7761
8038
|
var SearchWithFilters_default = React6.memo(SearchWithFilters);
|
|
7762
8039
|
|
|
7763
8040
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeader.tsx
|
|
7764
|
-
var
|
|
8041
|
+
var import_jsx_runtime116 = require("react/jsx-runtime");
|
|
7765
8042
|
var useStyles40 = (0, import_mui45.makeStyles)()((theme) => ({
|
|
7766
8043
|
wrapper: {
|
|
7767
8044
|
display: "flex",
|
|
@@ -7797,11 +8074,11 @@ var SearchAndFilterHeader = ({
|
|
|
7797
8074
|
searchValue
|
|
7798
8075
|
}) => {
|
|
7799
8076
|
const { classes } = useStyles40();
|
|
7800
|
-
return /* @__PURE__ */ (0,
|
|
7801
|
-
/* @__PURE__ */ (0,
|
|
7802
|
-
/* @__PURE__ */ (0,
|
|
7803
|
-
/* @__PURE__ */ (0,
|
|
7804
|
-
/* @__PURE__ */ (0,
|
|
8077
|
+
return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_material63.Paper, { children: /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(import_material63.Box, { className: classes.wrapper, children: [
|
|
8078
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(import_material63.Box, { className: classes.container, children: [
|
|
8079
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(import_material63.Box, { className: classes.leftSection, children: [
|
|
8080
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(AppLabel_default, { appName }),
|
|
8081
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
|
|
7805
8082
|
SearchWithFilters_default,
|
|
7806
8083
|
{
|
|
7807
8084
|
searchValue,
|
|
@@ -7812,9 +8089,9 @@ var SearchAndFilterHeader = ({
|
|
|
7812
8089
|
}
|
|
7813
8090
|
)
|
|
7814
8091
|
] }),
|
|
7815
|
-
/* @__PURE__ */ (0,
|
|
8092
|
+
/* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_material63.Box, { children: extraButton })
|
|
7816
8093
|
] }),
|
|
7817
|
-
showFilters ? /* @__PURE__ */ (0,
|
|
8094
|
+
showFilters ? /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(import_material63.Box, { children: filtersComponent }) : null,
|
|
7818
8095
|
appliedFiltersComponent
|
|
7819
8096
|
] }) });
|
|
7820
8097
|
};
|
|
@@ -7822,15 +8099,15 @@ var SearchAndFilterHeader_default = SearchAndFilterHeader;
|
|
|
7822
8099
|
|
|
7823
8100
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
|
|
7824
8101
|
var React7 = __toESM(require("react"), 1);
|
|
7825
|
-
var
|
|
8102
|
+
var import_material65 = require("@mui/material");
|
|
7826
8103
|
var import_mui47 = require("tss-react/mui");
|
|
7827
8104
|
|
|
7828
8105
|
// src/components/SearchWithFilters/SearchWithFiltersForTable.tsx
|
|
7829
|
-
var
|
|
7830
|
-
var
|
|
7831
|
-
var
|
|
8106
|
+
var import_react37 = require("react");
|
|
8107
|
+
var import_icons_material5 = require("@mui/icons-material");
|
|
8108
|
+
var import_material64 = require("@mui/material");
|
|
7832
8109
|
var import_mui46 = require("tss-react/mui");
|
|
7833
|
-
var
|
|
8110
|
+
var import_jsx_runtime117 = require("react/jsx-runtime");
|
|
7834
8111
|
var useStyles41 = (0, import_mui46.makeStyles)()((theme) => ({
|
|
7835
8112
|
c_search: {
|
|
7836
8113
|
height: 46,
|
|
@@ -7890,7 +8167,7 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
7890
8167
|
searchedValue
|
|
7891
8168
|
} = props;
|
|
7892
8169
|
const { classes } = useStyles41();
|
|
7893
|
-
const [searchText, setSearchText] = (0,
|
|
8170
|
+
const [searchText, setSearchText] = (0, import_react37.useState)("");
|
|
7894
8171
|
const handleTextChange = (e) => {
|
|
7895
8172
|
const { value } = e.target;
|
|
7896
8173
|
setSearchText(value);
|
|
@@ -7904,11 +8181,11 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
7904
8181
|
enterPressedInSearch();
|
|
7905
8182
|
}
|
|
7906
8183
|
};
|
|
7907
|
-
const ArrowIcon = isOpen ?
|
|
7908
|
-
return /* @__PURE__ */ (0,
|
|
7909
|
-
/* @__PURE__ */ (0,
|
|
7910
|
-
/* @__PURE__ */ (0,
|
|
7911
|
-
|
|
8184
|
+
const ArrowIcon = isOpen ? import_icons_material5.ArrowDropUp : import_icons_material5.ArrowDropDown;
|
|
8185
|
+
return /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(import_material64.Paper, { className: classes.c_search, children: [
|
|
8186
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_material64.Box, { className: classes.c_search__icon, children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(import_icons_material5.Search, { className: classes.icon, fontSize: "small" }) }),
|
|
8187
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
|
|
8188
|
+
import_material64.InputBase,
|
|
7912
8189
|
{
|
|
7913
8190
|
className: classes.c_search__input,
|
|
7914
8191
|
placeholder: "Search",
|
|
@@ -7917,32 +8194,32 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
7917
8194
|
onKeyDown: handleKeyPress
|
|
7918
8195
|
}
|
|
7919
8196
|
),
|
|
7920
|
-
showFilterButton && /* @__PURE__ */ (0,
|
|
7921
|
-
/* @__PURE__ */ (0,
|
|
7922
|
-
|
|
8197
|
+
showFilterButton && /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(import_jsx_runtime117.Fragment, { children: [
|
|
8198
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
|
|
8199
|
+
import_material64.Divider,
|
|
7923
8200
|
{
|
|
7924
8201
|
className: classes.c_search__divider,
|
|
7925
8202
|
orientation: "vertical"
|
|
7926
8203
|
}
|
|
7927
8204
|
),
|
|
7928
|
-
/* @__PURE__ */ (0,
|
|
7929
|
-
|
|
8205
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(
|
|
8206
|
+
import_material64.Button,
|
|
7930
8207
|
{
|
|
7931
8208
|
className: classes.c_search__bt_filter,
|
|
7932
8209
|
onClick: handleFilterButtonClick,
|
|
7933
8210
|
children: [
|
|
7934
8211
|
"Filters",
|
|
7935
|
-
/* @__PURE__ */ (0,
|
|
8212
|
+
/* @__PURE__ */ (0, import_jsx_runtime117.jsx)(ArrowIcon, { className: classes.c_search__bt_icon_filter })
|
|
7936
8213
|
]
|
|
7937
8214
|
}
|
|
7938
8215
|
)
|
|
7939
8216
|
] })
|
|
7940
8217
|
] });
|
|
7941
8218
|
};
|
|
7942
|
-
var SearchWithFiltersForTable_default = (0,
|
|
8219
|
+
var SearchWithFiltersForTable_default = (0, import_react37.memo)(SearchWithFiltersForTable);
|
|
7943
8220
|
|
|
7944
8221
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
|
|
7945
|
-
var
|
|
8222
|
+
var import_jsx_runtime118 = require("react/jsx-runtime");
|
|
7946
8223
|
var useStyles42 = (0, import_mui47.makeStyles)()((theme) => ({
|
|
7947
8224
|
container: {
|
|
7948
8225
|
display: "flex",
|
|
@@ -7974,10 +8251,10 @@ var SearchAndFilterHeaderForTable = (props) => {
|
|
|
7974
8251
|
searchedValue
|
|
7975
8252
|
} = props;
|
|
7976
8253
|
const { classes } = useStyles42();
|
|
7977
|
-
return /* @__PURE__ */ (0,
|
|
7978
|
-
/* @__PURE__ */ (0,
|
|
7979
|
-
/* @__PURE__ */ (0,
|
|
7980
|
-
/* @__PURE__ */ (0,
|
|
8254
|
+
return /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(import_material65.Box, { className: classes.container, children: [
|
|
8255
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(import_material65.Box, { className: classes.leftSection, children: [
|
|
8256
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)(AppLabel_default, { appName }),
|
|
8257
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
7981
8258
|
SearchWithFiltersForTable_default,
|
|
7982
8259
|
{
|
|
7983
8260
|
onFilterButtonClick,
|
|
@@ -7988,24 +8265,24 @@ var SearchAndFilterHeaderForTable = (props) => {
|
|
|
7988
8265
|
searchedValue
|
|
7989
8266
|
}
|
|
7990
8267
|
),
|
|
7991
|
-
copy && /* @__PURE__ */ (0,
|
|
7992
|
-
|
|
8268
|
+
copy && /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
|
|
8269
|
+
import_material65.Box,
|
|
7993
8270
|
{
|
|
7994
8271
|
sx: {
|
|
7995
8272
|
margin: 0.5
|
|
7996
8273
|
},
|
|
7997
|
-
children: /* @__PURE__ */ (0,
|
|
8274
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(OutlinedButton_default, { copy })
|
|
7998
8275
|
}
|
|
7999
8276
|
)
|
|
8000
8277
|
] }),
|
|
8001
|
-
/* @__PURE__ */ (0,
|
|
8278
|
+
/* @__PURE__ */ (0, import_jsx_runtime118.jsx)(import_material65.Box, { children: button })
|
|
8002
8279
|
] });
|
|
8003
8280
|
};
|
|
8004
8281
|
var SearchAndFilterHeaderForTable_default = React7.memo(SearchAndFilterHeaderForTable);
|
|
8005
8282
|
|
|
8006
8283
|
// src/components/SearchHeader/SearchHeader.tsx
|
|
8007
|
-
var
|
|
8008
|
-
var
|
|
8284
|
+
var import_material66 = require("@mui/material");
|
|
8285
|
+
var import_jsx_runtime119 = require("react/jsx-runtime");
|
|
8009
8286
|
var SearchHeader = ({
|
|
8010
8287
|
renderButton,
|
|
8011
8288
|
renderExtraAction,
|
|
@@ -8016,8 +8293,8 @@ var SearchHeader = ({
|
|
|
8016
8293
|
onKeyDown,
|
|
8017
8294
|
width
|
|
8018
8295
|
}) => {
|
|
8019
|
-
return /* @__PURE__ */ (0,
|
|
8020
|
-
|
|
8296
|
+
return /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
|
|
8297
|
+
import_material66.Paper,
|
|
8021
8298
|
{
|
|
8022
8299
|
sx: {
|
|
8023
8300
|
display: "flex",
|
|
@@ -8025,8 +8302,8 @@ var SearchHeader = ({
|
|
|
8025
8302
|
padding: 2
|
|
8026
8303
|
},
|
|
8027
8304
|
children: [
|
|
8028
|
-
/* @__PURE__ */ (0,
|
|
8029
|
-
|
|
8305
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
|
|
8306
|
+
import_material66.Box,
|
|
8030
8307
|
{
|
|
8031
8308
|
sx: {
|
|
8032
8309
|
display: "flex",
|
|
@@ -8034,8 +8311,8 @@ var SearchHeader = ({
|
|
|
8034
8311
|
alignItems: "center"
|
|
8035
8312
|
},
|
|
8036
8313
|
children: [
|
|
8037
|
-
/* @__PURE__ */ (0,
|
|
8038
|
-
/* @__PURE__ */ (0,
|
|
8314
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(import_material66.Box, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
|
|
8315
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
8039
8316
|
SearchFieldDebounced,
|
|
8040
8317
|
{
|
|
8041
8318
|
width,
|
|
@@ -8060,9 +8337,9 @@ var SearchHeader = ({
|
|
|
8060
8337
|
// src/components/SectionName/SectionName.tsx
|
|
8061
8338
|
var import_History = __toESM(require("@mui/icons-material/History"), 1);
|
|
8062
8339
|
var import_Info = __toESM(require("@mui/icons-material/Info"), 1);
|
|
8063
|
-
var
|
|
8340
|
+
var import_material67 = require("@mui/material");
|
|
8064
8341
|
var import_mui48 = require("tss-react/mui");
|
|
8065
|
-
var
|
|
8342
|
+
var import_jsx_runtime120 = require("react/jsx-runtime");
|
|
8066
8343
|
var useStyles43 = (0, import_mui48.makeStyles)()((theme) => ({
|
|
8067
8344
|
container: {
|
|
8068
8345
|
display: "flex",
|
|
@@ -8118,10 +8395,10 @@ var SectionName = ({
|
|
|
8118
8395
|
}
|
|
8119
8396
|
}
|
|
8120
8397
|
};
|
|
8121
|
-
return /* @__PURE__ */ (0,
|
|
8122
|
-
/* @__PURE__ */ (0,
|
|
8123
|
-
/* @__PURE__ */ (0,
|
|
8124
|
-
|
|
8398
|
+
return /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(import_material67.Box, { className: classes.container, children: [
|
|
8399
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(import_material67.Box, { className: classes.titleContainer, children: [
|
|
8400
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
8401
|
+
import_material67.Typography,
|
|
8125
8402
|
{
|
|
8126
8403
|
variant: "h5",
|
|
8127
8404
|
onClick: handleScroll,
|
|
@@ -8129,7 +8406,7 @@ var SectionName = ({
|
|
|
8129
8406
|
children: name
|
|
8130
8407
|
}
|
|
8131
8408
|
),
|
|
8132
|
-
tooltipDescription ? /* @__PURE__ */ (0,
|
|
8409
|
+
tooltipDescription ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material67.Tooltip, { title: tooltipDescription, placement: "right", children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
8133
8410
|
import_Info.default,
|
|
8134
8411
|
{
|
|
8135
8412
|
fontSize: "small",
|
|
@@ -8138,8 +8415,8 @@ var SectionName = ({
|
|
|
8138
8415
|
}
|
|
8139
8416
|
) }) : null
|
|
8140
8417
|
] }),
|
|
8141
|
-
/* @__PURE__ */ (0,
|
|
8142
|
-
buttonText ? /* @__PURE__ */ (0,
|
|
8418
|
+
/* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(import_material67.Box, { className: classes.actionButtons, children: [
|
|
8419
|
+
buttonText ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
|
|
8143
8420
|
ExtendedButton_default,
|
|
8144
8421
|
{
|
|
8145
8422
|
type: buttonType,
|
|
@@ -8152,17 +8429,17 @@ var SectionName = ({
|
|
|
8152
8429
|
variant: "text"
|
|
8153
8430
|
}
|
|
8154
8431
|
) : null,
|
|
8155
|
-
openHistoryLog && buttonText && /* @__PURE__ */ (0,
|
|
8156
|
-
openHistoryLog && /* @__PURE__ */ (0,
|
|
8432
|
+
openHistoryLog && buttonText && /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material67.Divider, { orientation: "vertical", sx: { height: "24px" } }),
|
|
8433
|
+
openHistoryLog && /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_material67.IconButton, { size: "small", onClick: () => openHistoryLog(), children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(import_History.default, {}) })
|
|
8157
8434
|
] })
|
|
8158
8435
|
] });
|
|
8159
8436
|
};
|
|
8160
8437
|
var SectionName_default = SectionName;
|
|
8161
8438
|
|
|
8162
8439
|
// src/components/SmartMultipleSelect/SmartMultipleSelect.tsx
|
|
8163
|
-
var
|
|
8164
|
-
var
|
|
8165
|
-
var
|
|
8440
|
+
var import_react38 = require("react");
|
|
8441
|
+
var import_material68 = require("@mui/material");
|
|
8442
|
+
var import_jsx_runtime121 = require("react/jsx-runtime");
|
|
8166
8443
|
var SmartMultipleSelect = ({
|
|
8167
8444
|
inputLabel,
|
|
8168
8445
|
variant = "standard",
|
|
@@ -8180,7 +8457,7 @@ var SmartMultipleSelect = ({
|
|
|
8180
8457
|
helperText,
|
|
8181
8458
|
menuProps
|
|
8182
8459
|
}) => {
|
|
8183
|
-
const [localValues, setLocalValues] = (0,
|
|
8460
|
+
const [localValues, setLocalValues] = (0, import_react38.useState)(defaultValues ?? []);
|
|
8184
8461
|
const handleChangeOption = (option) => {
|
|
8185
8462
|
let newValues = [];
|
|
8186
8463
|
const selectedIndex = localValues.findIndex(
|
|
@@ -8194,19 +8471,19 @@ var SmartMultipleSelect = ({
|
|
|
8194
8471
|
setLocalValues(newValues);
|
|
8195
8472
|
onChange?.(newValues);
|
|
8196
8473
|
};
|
|
8197
|
-
const renderMenuContent = () => !menuOptions?.length ? /* @__PURE__ */ (0,
|
|
8198
|
-
|
|
8474
|
+
const renderMenuContent = () => !menuOptions?.length ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
8475
|
+
import_material68.Box,
|
|
8199
8476
|
{
|
|
8200
8477
|
sx: { display: "flex", justifyContent: "center", alignItems: "center" },
|
|
8201
|
-
children: /* @__PURE__ */ (0,
|
|
8478
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.Typography, { children: emptyMessage })
|
|
8202
8479
|
}
|
|
8203
|
-
) : /* @__PURE__ */ (0,
|
|
8480
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.Box, { sx: { display: "flex", flexDirection: "column" }, children: menuOptions?.map((option, index) => {
|
|
8204
8481
|
const selectedValues = values ?? localValues ?? [];
|
|
8205
8482
|
const isSelected = selectedValues.some(
|
|
8206
8483
|
(selected) => selected.value === option.value
|
|
8207
8484
|
);
|
|
8208
|
-
return /* @__PURE__ */ (0,
|
|
8209
|
-
|
|
8485
|
+
return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
|
|
8486
|
+
import_material68.Box,
|
|
8210
8487
|
{
|
|
8211
8488
|
onClick: () => handleChangeOption(option),
|
|
8212
8489
|
sx: {
|
|
@@ -8216,15 +8493,15 @@ var SmartMultipleSelect = ({
|
|
|
8216
8493
|
backgroundColor: isSelected ? colors.lightBlueBackground : void 0
|
|
8217
8494
|
},
|
|
8218
8495
|
children: [
|
|
8219
|
-
/* @__PURE__ */ (0,
|
|
8220
|
-
/* @__PURE__ */ (0,
|
|
8496
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.Checkbox, { disableRipple: true, sx: { py: 0.5 }, checked: isSelected }),
|
|
8497
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.ListItemText, { primary: option.label })
|
|
8221
8498
|
]
|
|
8222
8499
|
},
|
|
8223
8500
|
option.value ?? index
|
|
8224
8501
|
);
|
|
8225
8502
|
}) });
|
|
8226
|
-
return /* @__PURE__ */ (0,
|
|
8227
|
-
|
|
8503
|
+
return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
|
|
8504
|
+
import_material68.FormControl,
|
|
8228
8505
|
{
|
|
8229
8506
|
fullWidth: true,
|
|
8230
8507
|
variant,
|
|
@@ -8232,9 +8509,9 @@ var SmartMultipleSelect = ({
|
|
|
8232
8509
|
disabled,
|
|
8233
8510
|
error,
|
|
8234
8511
|
children: [
|
|
8235
|
-
/* @__PURE__ */ (0,
|
|
8236
|
-
/* @__PURE__ */ (0,
|
|
8237
|
-
|
|
8512
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.InputLabel, { children: inputLabel }),
|
|
8513
|
+
/* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
8514
|
+
import_material68.Select,
|
|
8238
8515
|
{
|
|
8239
8516
|
multiple: true,
|
|
8240
8517
|
label: inputLabel,
|
|
@@ -8246,37 +8523,37 @@ var SmartMultipleSelect = ({
|
|
|
8246
8523
|
onClose: () => onClose?.(localValues),
|
|
8247
8524
|
renderValue: (selectedValues) => {
|
|
8248
8525
|
const valuesString = selectedValues.map((v) => v.label)?.join(", ");
|
|
8249
|
-
return /* @__PURE__ */ (0,
|
|
8526
|
+
return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(DynamicOverflowTooltip, { tooltipDescription: valuesString, children: valuesString });
|
|
8250
8527
|
},
|
|
8251
|
-
children: isLoading ? /* @__PURE__ */ (0,
|
|
8252
|
-
|
|
8528
|
+
children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
8529
|
+
import_material68.Box,
|
|
8253
8530
|
{
|
|
8254
8531
|
sx: {
|
|
8255
8532
|
display: "flex",
|
|
8256
8533
|
justifyContent: "center",
|
|
8257
8534
|
alignItems: "center"
|
|
8258
8535
|
},
|
|
8259
|
-
children: /* @__PURE__ */ (0,
|
|
8536
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.CircularProgress, { size: 24 })
|
|
8260
8537
|
}
|
|
8261
8538
|
) : renderMenuContent()
|
|
8262
8539
|
}
|
|
8263
8540
|
),
|
|
8264
|
-
helperText && /* @__PURE__ */ (0,
|
|
8541
|
+
helperText && /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_material68.FormHelperText, { children: helperText })
|
|
8265
8542
|
]
|
|
8266
8543
|
}
|
|
8267
8544
|
);
|
|
8268
8545
|
};
|
|
8269
8546
|
|
|
8270
8547
|
// src/components/SquareLabel/SquareLabel.tsx
|
|
8271
|
-
var
|
|
8272
|
-
var
|
|
8273
|
-
var
|
|
8548
|
+
var import_react39 = require("react");
|
|
8549
|
+
var import_material69 = require("@mui/material");
|
|
8550
|
+
var import_colors53 = require("@mui/material/colors");
|
|
8274
8551
|
var import_mui49 = require("tss-react/mui");
|
|
8275
|
-
var
|
|
8552
|
+
var import_jsx_runtime122 = require("react/jsx-runtime");
|
|
8276
8553
|
var useStyles44 = (0, import_mui49.makeStyles)()((theme) => ({
|
|
8277
8554
|
red: {
|
|
8278
|
-
backgroundColor:
|
|
8279
|
-
color:
|
|
8555
|
+
backgroundColor: import_colors53.red["50"],
|
|
8556
|
+
color: import_colors53.red["500"],
|
|
8280
8557
|
padding: theme.spacing(1.5),
|
|
8281
8558
|
borderRadius: "5px",
|
|
8282
8559
|
marginTop: theme.spacing(1),
|
|
@@ -8287,15 +8564,15 @@ var useStyles44 = (0, import_mui49.makeStyles)()((theme) => ({
|
|
|
8287
8564
|
}));
|
|
8288
8565
|
var SquareLabel = ({ color, copy }) => {
|
|
8289
8566
|
const { classes } = useStyles44();
|
|
8290
|
-
return /* @__PURE__ */ (0,
|
|
8567
|
+
return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(import_material69.Typography, { className: classes[color], children: copy });
|
|
8291
8568
|
};
|
|
8292
|
-
var SquareLabel_default = (0,
|
|
8569
|
+
var SquareLabel_default = (0, import_react39.memo)(SquareLabel);
|
|
8293
8570
|
|
|
8294
8571
|
// src/components/Switch/Switch.tsx
|
|
8295
|
-
var
|
|
8296
|
-
var
|
|
8572
|
+
var import_react40 = require("react");
|
|
8573
|
+
var import_material70 = require("@mui/material");
|
|
8297
8574
|
var import_mui50 = require("tss-react/mui");
|
|
8298
|
-
var
|
|
8575
|
+
var import_jsx_runtime123 = require("react/jsx-runtime");
|
|
8299
8576
|
var LSwitch = ({
|
|
8300
8577
|
checked,
|
|
8301
8578
|
labelOn,
|
|
@@ -8303,8 +8580,8 @@ var LSwitch = ({
|
|
|
8303
8580
|
handleChange,
|
|
8304
8581
|
classes,
|
|
8305
8582
|
disabled
|
|
8306
|
-
}) => /* @__PURE__ */ (0,
|
|
8307
|
-
|
|
8583
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("div", { className: classes.c_switch, children: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(
|
|
8584
|
+
import_material70.Grid,
|
|
8308
8585
|
{
|
|
8309
8586
|
component: "label",
|
|
8310
8587
|
container: true,
|
|
@@ -8313,9 +8590,9 @@ var LSwitch = ({
|
|
|
8313
8590
|
alignItems: "center"
|
|
8314
8591
|
},
|
|
8315
8592
|
children: [
|
|
8316
|
-
labelOff && /* @__PURE__ */ (0,
|
|
8317
|
-
/* @__PURE__ */ (0,
|
|
8318
|
-
|
|
8593
|
+
labelOff && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material70.Grid, { children: labelOff }),
|
|
8594
|
+
/* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material70.Grid, { children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
|
|
8595
|
+
import_material70.Switch,
|
|
8319
8596
|
{
|
|
8320
8597
|
checked,
|
|
8321
8598
|
color: "primary",
|
|
@@ -8323,7 +8600,7 @@ var LSwitch = ({
|
|
|
8323
8600
|
disabled
|
|
8324
8601
|
}
|
|
8325
8602
|
) }),
|
|
8326
|
-
labelOn && /* @__PURE__ */ (0,
|
|
8603
|
+
labelOn && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(import_material70.Grid, { children: labelOn })
|
|
8327
8604
|
]
|
|
8328
8605
|
}
|
|
8329
8606
|
) });
|
|
@@ -8345,14 +8622,14 @@ var LabelledSwitch = (0, import_mui50.withStyles)(LSwitch, (theme) => ({
|
|
|
8345
8622
|
fontSize: "1rem"
|
|
8346
8623
|
}
|
|
8347
8624
|
}));
|
|
8348
|
-
var Switch_default = (0,
|
|
8625
|
+
var Switch_default = (0, import_react40.memo)(LabelledSwitch);
|
|
8349
8626
|
|
|
8350
8627
|
// src/components/SmartTableHeaderFilterMenu/SmartTableHeaderFilterMenu.tsx
|
|
8351
|
-
var
|
|
8352
|
-
var
|
|
8628
|
+
var import_react41 = require("react");
|
|
8629
|
+
var import_material71 = require("@mui/material");
|
|
8353
8630
|
var import_classnames3 = __toESM(require("classnames"), 1);
|
|
8354
|
-
var
|
|
8355
|
-
var
|
|
8631
|
+
var import_jsx_runtime124 = require("react/jsx-runtime");
|
|
8632
|
+
var MAX_WIDTH2 = 276;
|
|
8356
8633
|
var findFilterIndex = (filters, filterOption) => filters.findIndex((item) => {
|
|
8357
8634
|
if (typeof item === "string" && typeof filterOption === "string") {
|
|
8358
8635
|
return item === filterOption;
|
|
@@ -8369,11 +8646,11 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
8369
8646
|
shouldShowCheckOnFilter,
|
|
8370
8647
|
onApplyFilters
|
|
8371
8648
|
}) => {
|
|
8372
|
-
const [anchorEl, setAnchorEl] = (0,
|
|
8373
|
-
const [filterOptionsData, setFilterOptionsData] = (0,
|
|
8374
|
-
const [selectedFilterOptions, setSelectedFilterOptions] = (0,
|
|
8649
|
+
const [anchorEl, setAnchorEl] = (0, import_react41.useState)(null);
|
|
8650
|
+
const [filterOptionsData, setFilterOptionsData] = (0, import_react41.useState)();
|
|
8651
|
+
const [selectedFilterOptions, setSelectedFilterOptions] = (0, import_react41.useState)(headerFilters[headCell.id] ?? []);
|
|
8375
8652
|
const numFilterOptions = filterOptionsData?.length ?? 0;
|
|
8376
|
-
(0,
|
|
8653
|
+
(0, import_react41.useEffect)(() => {
|
|
8377
8654
|
if (headCell.filterOptions) {
|
|
8378
8655
|
setFilterOptionsData(headCell.filterOptions);
|
|
8379
8656
|
} else if (headCell.filterType === "boolean") {
|
|
@@ -8429,11 +8706,11 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
8429
8706
|
onApplyFilters?.(updatedFilters, shouldSave);
|
|
8430
8707
|
setAnchorEl(null);
|
|
8431
8708
|
};
|
|
8432
|
-
(0,
|
|
8709
|
+
(0, import_react41.useEffect)(() => {
|
|
8433
8710
|
setSelectedFilterOptions(headerFilters[headCell.id] ?? []);
|
|
8434
8711
|
}, [headerFilters, headCell.id]);
|
|
8435
|
-
return /* @__PURE__ */ (0,
|
|
8436
|
-
/* @__PURE__ */ (0,
|
|
8712
|
+
return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(import_jsx_runtime124.Fragment, { children: [
|
|
8713
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
8437
8714
|
ActiveFiltersIconButton,
|
|
8438
8715
|
{
|
|
8439
8716
|
numActiveFilters,
|
|
@@ -8443,8 +8720,8 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
8443
8720
|
})
|
|
8444
8721
|
}
|
|
8445
8722
|
),
|
|
8446
|
-
/* @__PURE__ */ (0,
|
|
8447
|
-
|
|
8723
|
+
/* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
8724
|
+
import_material71.Menu,
|
|
8448
8725
|
{
|
|
8449
8726
|
open: !!anchorEl,
|
|
8450
8727
|
onClose: handleFilterMenuClose,
|
|
@@ -8452,12 +8729,12 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
8452
8729
|
"data-testid": "filter-menu",
|
|
8453
8730
|
slotProps: {
|
|
8454
8731
|
list: {
|
|
8455
|
-
sx: { p: 0, maxWidth:
|
|
8732
|
+
sx: { p: 0, maxWidth: MAX_WIDTH2 }
|
|
8456
8733
|
}
|
|
8457
8734
|
},
|
|
8458
8735
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
8459
8736
|
transformOrigin: { vertical: "top", horizontal: "right" },
|
|
8460
|
-
children: headCell.filterType === "autocomplete" ? /* @__PURE__ */ (0,
|
|
8737
|
+
children: headCell.filterType === "autocomplete" ? /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
8461
8738
|
AutocompleteFilterMenuContent,
|
|
8462
8739
|
{
|
|
8463
8740
|
columnId: headCell.id,
|
|
@@ -8470,7 +8747,7 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
8470
8747
|
onApplyFiltersClick: handleApplyFiltersClick,
|
|
8471
8748
|
shouldShowCheckOnFilter
|
|
8472
8749
|
}
|
|
8473
|
-
) : /* @__PURE__ */ (0,
|
|
8750
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
|
|
8474
8751
|
CheckboxFilterMenuContent,
|
|
8475
8752
|
{
|
|
8476
8753
|
columnId: headCell.id,
|
|
@@ -8490,10 +8767,10 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
8490
8767
|
};
|
|
8491
8768
|
|
|
8492
8769
|
// src/components/SmartTableHeader/SmartTableHeader.tsx
|
|
8493
|
-
var
|
|
8494
|
-
var
|
|
8495
|
-
var
|
|
8496
|
-
var SmartTableHeader = (0,
|
|
8770
|
+
var import_react42 = require("react");
|
|
8771
|
+
var import_material72 = require("@mui/material");
|
|
8772
|
+
var import_jsx_runtime125 = require("react/jsx-runtime");
|
|
8773
|
+
var SmartTableHeader = (0, import_react42.memo)(
|
|
8497
8774
|
({
|
|
8498
8775
|
order,
|
|
8499
8776
|
orderBy,
|
|
@@ -8511,14 +8788,14 @@ var SmartTableHeader = (0, import_react40.memo)(
|
|
|
8511
8788
|
onRequestSort(event, property);
|
|
8512
8789
|
};
|
|
8513
8790
|
const isSortActive = (headCellId) => orderBy === headCellId;
|
|
8514
|
-
return /* @__PURE__ */ (0,
|
|
8515
|
-
enableCheckboxSelection ? /* @__PURE__ */ (0,
|
|
8516
|
-
|
|
8791
|
+
return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(import_material72.TableRow, { children: [
|
|
8792
|
+
enableCheckboxSelection ? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8793
|
+
import_material72.TableCell,
|
|
8517
8794
|
{
|
|
8518
8795
|
padding: "checkbox",
|
|
8519
8796
|
sx: { backgroundColor: colors.neutral100 },
|
|
8520
|
-
children: /* @__PURE__ */ (0,
|
|
8521
|
-
|
|
8797
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8798
|
+
import_material72.Checkbox,
|
|
8522
8799
|
{
|
|
8523
8800
|
color: "primary",
|
|
8524
8801
|
disableRipple: true,
|
|
@@ -8529,8 +8806,8 @@ var SmartTableHeader = (0, import_react40.memo)(
|
|
|
8529
8806
|
)
|
|
8530
8807
|
}
|
|
8531
8808
|
) : null,
|
|
8532
|
-
headCells.map((headCell) => /* @__PURE__ */ (0,
|
|
8533
|
-
|
|
8809
|
+
headCells.map((headCell) => /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8810
|
+
import_material72.TableCell,
|
|
8534
8811
|
{
|
|
8535
8812
|
align: "left",
|
|
8536
8813
|
width: headCell.width ?? "auto",
|
|
@@ -8553,15 +8830,15 @@ var SmartTableHeader = (0, import_react40.memo)(
|
|
|
8553
8830
|
}
|
|
8554
8831
|
}
|
|
8555
8832
|
},
|
|
8556
|
-
children: /* @__PURE__ */ (0,
|
|
8557
|
-
|
|
8833
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(
|
|
8834
|
+
import_material72.Box,
|
|
8558
8835
|
{
|
|
8559
8836
|
display: "flex",
|
|
8560
8837
|
flexDirection: "row",
|
|
8561
8838
|
gap: headCell.disableSort ? 1 : 0,
|
|
8562
8839
|
children: [
|
|
8563
|
-
headCell.disableSort ? headCell.renderHeader ?? /* @__PURE__ */ (0,
|
|
8564
|
-
|
|
8840
|
+
headCell.disableSort ? headCell.renderHeader ?? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.Tooltip, { title: headCell.labelTooltip ?? "", arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.Typography, { variant: "subtitle2", mt: 0.25, mb: -0.25, children: headCell.label }) }) : /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(import_material72.Tooltip, { title: headCell.labelTooltip ?? "", arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(
|
|
8841
|
+
import_material72.TableSortLabel,
|
|
8565
8842
|
{
|
|
8566
8843
|
"data-testid": "table-sort-label",
|
|
8567
8844
|
active: isSortActive(headCell.id),
|
|
@@ -8569,7 +8846,7 @@ var SmartTableHeader = (0, import_react40.memo)(
|
|
|
8569
8846
|
onClick: createSortHandler(headCell.id),
|
|
8570
8847
|
children: [
|
|
8571
8848
|
headCell.renderHeader ?? headCell.label,
|
|
8572
|
-
orderBy === headCell.id ? /* @__PURE__ */ (0,
|
|
8849
|
+
orderBy === headCell.id ? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8573
8850
|
"span",
|
|
8574
8851
|
{
|
|
8575
8852
|
style: {
|
|
@@ -8589,7 +8866,7 @@ var SmartTableHeader = (0, import_react40.memo)(
|
|
|
8589
8866
|
]
|
|
8590
8867
|
}
|
|
8591
8868
|
) }),
|
|
8592
|
-
headCell.filterType ? /* @__PURE__ */ (0,
|
|
8869
|
+
headCell.filterType ? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
|
|
8593
8870
|
SmartTableHeaderFilterMenu,
|
|
8594
8871
|
{
|
|
8595
8872
|
headCell,
|
|
@@ -8610,20 +8887,20 @@ var SmartTableHeader = (0, import_react40.memo)(
|
|
|
8610
8887
|
);
|
|
8611
8888
|
|
|
8612
8889
|
// src/components/Table/Table.tsx
|
|
8613
|
-
var
|
|
8614
|
-
var
|
|
8890
|
+
var import_react43 = require("react");
|
|
8891
|
+
var import_material74 = require("@mui/material");
|
|
8615
8892
|
var import_debounce = __toESM(require_debounce(), 1);
|
|
8616
8893
|
var import_mui51 = require("tss-react/mui");
|
|
8617
8894
|
var import_uuid = require("uuid");
|
|
8618
8895
|
|
|
8619
8896
|
// src/components/TableLoading/TableLoading.tsx
|
|
8620
|
-
var
|
|
8621
|
-
var
|
|
8897
|
+
var import_material73 = require("@mui/material");
|
|
8898
|
+
var import_jsx_runtime126 = require("react/jsx-runtime");
|
|
8622
8899
|
var TableLoading = ({
|
|
8623
8900
|
rowsPerPage,
|
|
8624
8901
|
rowHeight
|
|
8625
|
-
}) => /* @__PURE__ */ (0,
|
|
8626
|
-
|
|
8902
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(import_material73.Box, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
|
|
8903
|
+
import_material73.Skeleton,
|
|
8627
8904
|
{
|
|
8628
8905
|
animation: "pulse",
|
|
8629
8906
|
"data-testid": "table-loading-skeleton",
|
|
@@ -8671,7 +8948,7 @@ function calculateRowsPerPage(rowHeight) {
|
|
|
8671
8948
|
}
|
|
8672
8949
|
|
|
8673
8950
|
// src/components/Table/Table.tsx
|
|
8674
|
-
var
|
|
8951
|
+
var import_jsx_runtime127 = require("react/jsx-runtime");
|
|
8675
8952
|
var useStyles45 = (0, import_mui51.makeStyles)()(() => ({
|
|
8676
8953
|
root: {
|
|
8677
8954
|
height: "calc(100vh - 262px)",
|
|
@@ -8706,11 +8983,11 @@ var Table = ({
|
|
|
8706
8983
|
serverRendered,
|
|
8707
8984
|
updateSort
|
|
8708
8985
|
}) => {
|
|
8709
|
-
const [order, setOrder] = (0,
|
|
8710
|
-
const [orderBy, setOrderBy] = (0,
|
|
8986
|
+
const [order, setOrder] = (0, import_react43.useState)(appliedFilters?.sortDir || "desc");
|
|
8987
|
+
const [orderBy, setOrderBy] = (0, import_react43.useState)(
|
|
8711
8988
|
appliedFilters?.sortField || "delivery_date"
|
|
8712
8989
|
);
|
|
8713
|
-
const [rowsPerPage, setRowsPerPage] = (0,
|
|
8990
|
+
const [rowsPerPage, setRowsPerPage] = (0, import_react43.useState)(defaultRowsPerPage);
|
|
8714
8991
|
const { classes } = useStyles45();
|
|
8715
8992
|
const rowHeight = 56;
|
|
8716
8993
|
const emptyRows = rowsPerPage - Math.min(rowsPerPage, data.length - page * rowsPerPage);
|
|
@@ -8723,7 +9000,7 @@ var Table = ({
|
|
|
8723
9000
|
updateSort(property, orderDir);
|
|
8724
9001
|
}
|
|
8725
9002
|
};
|
|
8726
|
-
(0,
|
|
9003
|
+
(0, import_react43.useLayoutEffect)(() => {
|
|
8727
9004
|
if (!doNotCalculateRows) {
|
|
8728
9005
|
return;
|
|
8729
9006
|
}
|
|
@@ -8749,25 +9026,25 @@ var Table = ({
|
|
|
8749
9026
|
);
|
|
8750
9027
|
const rowsComponents = rows.map((row) => {
|
|
8751
9028
|
if (RenderItem) {
|
|
8752
|
-
return /* @__PURE__ */ (0,
|
|
9029
|
+
return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(RenderItem, { ...row }, row.id);
|
|
8753
9030
|
}
|
|
8754
|
-
return /* @__PURE__ */ (0,
|
|
9031
|
+
return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableRow, { hover: true, onClick: () => onRowClick?.(row), children: headCells?.map((column) => /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableCell, { children: row[column.id] }, column.id)) }, row.id);
|
|
8755
9032
|
});
|
|
8756
9033
|
if (emptyRows > 0 && rowsPerPage > emptyRows) {
|
|
8757
9034
|
rowsComponents.push(
|
|
8758
|
-
/* @__PURE__ */ (0,
|
|
9035
|
+
/* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableRow, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableCell, { colSpan: 8 }) }, (0, import_uuid.v4)())
|
|
8759
9036
|
);
|
|
8760
9037
|
}
|
|
8761
9038
|
return rowsComponents;
|
|
8762
9039
|
};
|
|
8763
|
-
return /* @__PURE__ */ (0,
|
|
8764
|
-
/* @__PURE__ */ (0,
|
|
8765
|
-
|
|
9040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.Paper, { className: classes.root, children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.Box, { className: classes.paper, children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(TableLoading_default, { rowHeight, rowsPerPage }) : /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableContainer, { className: classes.container, children: /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_material74.Table, { size: "medium", stickyHeader: true, children: [
|
|
9041
|
+
/* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableHead, { className: classes.header, children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableRow, { children: headCells?.map((headCell) => /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
|
|
9042
|
+
import_material74.TableCell,
|
|
8766
9043
|
{
|
|
8767
9044
|
align: "left",
|
|
8768
9045
|
sortDirection: orderBy === headCell.id ? order : void 0,
|
|
8769
|
-
children: /* @__PURE__ */ (0,
|
|
8770
|
-
|
|
9046
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
|
|
9047
|
+
import_material74.TableSortLabel,
|
|
8771
9048
|
{
|
|
8772
9049
|
active: orderBy === headCell.id,
|
|
8773
9050
|
direction: orderBy === headCell.id ? order : "asc",
|
|
@@ -8778,29 +9055,29 @@ var Table = ({
|
|
|
8778
9055
|
},
|
|
8779
9056
|
headCell.id
|
|
8780
9057
|
)) }) }),
|
|
8781
|
-
/* @__PURE__ */ (0,
|
|
9058
|
+
/* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(import_material74.TableBody, { children: [
|
|
8782
9059
|
getTableRows(),
|
|
8783
|
-
rowsPerPage === emptyRows && /* @__PURE__ */ (0,
|
|
9060
|
+
rowsPerPage === emptyRows && /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableRow, { style: { height: rowHeight * emptyRows }, children: /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(import_material74.TableCell, { colSpan: 8, align: "center", children: "Nothing to display" }) })
|
|
8784
9061
|
] })
|
|
8785
9062
|
] }) }) }) });
|
|
8786
9063
|
};
|
|
8787
9064
|
var Table_default = Table;
|
|
8788
9065
|
|
|
8789
9066
|
// src/components/TableDesktop/TableDesktop.tsx
|
|
8790
|
-
var
|
|
8791
|
-
var
|
|
9067
|
+
var import_react44 = require("react");
|
|
9068
|
+
var import_material79 = require("@mui/material");
|
|
8792
9069
|
|
|
8793
9070
|
// src/components/TableDesktopLoadingState/TableDesktopLoadingState.tsx
|
|
8794
|
-
var
|
|
8795
|
-
var
|
|
9071
|
+
var import_material75 = require("@mui/material");
|
|
9072
|
+
var import_jsx_runtime128 = require("react/jsx-runtime");
|
|
8796
9073
|
var getRange = (n) => Array.from({ length: n }, (_, i) => i + 1);
|
|
8797
9074
|
var TableDesktopLoadingState = ({
|
|
8798
9075
|
numRows,
|
|
8799
9076
|
numColumns,
|
|
8800
9077
|
rowHeight = 56
|
|
8801
9078
|
}) => {
|
|
8802
|
-
return getRange(numRows).map((rowNum) => /* @__PURE__ */ (0,
|
|
8803
|
-
|
|
9079
|
+
return getRange(numRows).map((rowNum) => /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_material75.TableRow, { children: getRange(numColumns).map((colNum) => /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(import_material75.TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
|
|
9080
|
+
import_material75.Skeleton,
|
|
8804
9081
|
{
|
|
8805
9082
|
animation: "pulse",
|
|
8806
9083
|
variant: "rounded",
|
|
@@ -8818,11 +9095,11 @@ var import_TableRow = __toESM(require("@mui/material/TableRow"), 1);
|
|
|
8818
9095
|
var import_Typography = __toESM(require("@mui/material/Typography"), 1);
|
|
8819
9096
|
|
|
8820
9097
|
// src/components/Buttons/BaseButton/BaseIconButton.tsx
|
|
8821
|
-
var
|
|
8822
|
-
var
|
|
9098
|
+
var import_material76 = require("@mui/material");
|
|
9099
|
+
var import_jsx_runtime129 = require("react/jsx-runtime");
|
|
8823
9100
|
var BaseIconButton = ({ icon, sx, ...props }) => {
|
|
8824
|
-
return /* @__PURE__ */ (0,
|
|
8825
|
-
|
|
9101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(
|
|
9102
|
+
import_material76.Button,
|
|
8826
9103
|
{
|
|
8827
9104
|
sx: {
|
|
8828
9105
|
display: "flex",
|
|
@@ -8842,10 +9119,10 @@ var BaseIconButton = ({ icon, sx, ...props }) => {
|
|
|
8842
9119
|
};
|
|
8843
9120
|
|
|
8844
9121
|
// src/components/TableDesktopNoColumnsMessage/TableDesktopNoColumnsMessage.tsx
|
|
8845
|
-
var
|
|
9122
|
+
var import_jsx_runtime130 = require("react/jsx-runtime");
|
|
8846
9123
|
var TableDesktopNoColumnsMessage = ({
|
|
8847
9124
|
onClickNoColumnsMessageOpenMenu
|
|
8848
|
-
}) => /* @__PURE__ */ (0,
|
|
9125
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_TableBody.default, { children: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_TableRow.default, { children: /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
|
|
8849
9126
|
import_TableCell.default,
|
|
8850
9127
|
{
|
|
8851
9128
|
sx: {
|
|
@@ -8858,9 +9135,9 @@ var TableDesktopNoColumnsMessage = ({
|
|
|
8858
9135
|
alignItems: "center"
|
|
8859
9136
|
},
|
|
8860
9137
|
children: [
|
|
8861
|
-
/* @__PURE__ */ (0,
|
|
8862
|
-
/* @__PURE__ */ (0,
|
|
8863
|
-
/* @__PURE__ */ (0,
|
|
9138
|
+
/* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_Typography.default, { variant: "subtitle2", fontSize: 16, children: "Customise your view" }),
|
|
9139
|
+
/* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_Typography.default, { variant: "subtitle1", align: "center", color: "textSecondary", children: "Open the menu to customise your table and search." }),
|
|
9140
|
+
/* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
|
|
8864
9141
|
import_Typography.default,
|
|
8865
9142
|
{
|
|
8866
9143
|
variant: "subtitle1",
|
|
@@ -8873,18 +9150,18 @@ var TableDesktopNoColumnsMessage = ({
|
|
|
8873
9150
|
},
|
|
8874
9151
|
children: [
|
|
8875
9152
|
"Tips: ",
|
|
8876
|
-
/* @__PURE__ */ (0,
|
|
9153
|
+
/* @__PURE__ */ (0, import_jsx_runtime130.jsx)(import_Typography.default, { component: "strong", children: "Save as default" }),
|
|
8877
9154
|
" to keep these columns for future views"
|
|
8878
9155
|
]
|
|
8879
9156
|
}
|
|
8880
9157
|
),
|
|
8881
|
-
/* @__PURE__ */ (0,
|
|
9158
|
+
/* @__PURE__ */ (0, import_jsx_runtime130.jsx)(
|
|
8882
9159
|
BaseIconButton,
|
|
8883
9160
|
{
|
|
8884
9161
|
variant: "contained",
|
|
8885
9162
|
color: "primary",
|
|
8886
9163
|
onClick: onClickNoColumnsMessageOpenMenu,
|
|
8887
|
-
icon: /* @__PURE__ */ (0,
|
|
9164
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(IconTableEdit_default, { fill: colors.white }),
|
|
8888
9165
|
children: "OPEN MENU"
|
|
8889
9166
|
}
|
|
8890
9167
|
)
|
|
@@ -8893,7 +9170,7 @@ var TableDesktopNoColumnsMessage = ({
|
|
|
8893
9170
|
) }) });
|
|
8894
9171
|
|
|
8895
9172
|
// src/components/TableDesktopRows/TableDesktopRows.tsx
|
|
8896
|
-
var
|
|
9173
|
+
var import_jsx_runtime131 = require("react/jsx-runtime");
|
|
8897
9174
|
var descendingComparator2 = (a, b, orderBy) => {
|
|
8898
9175
|
const objA = a[orderBy];
|
|
8899
9176
|
const objB = b[orderBy];
|
|
@@ -8940,7 +9217,7 @@ var TableDesktopRows = ({
|
|
|
8940
9217
|
return sortedData.map((row, index) => {
|
|
8941
9218
|
const rowId = getRowId(row);
|
|
8942
9219
|
const isItemSelected = selectedRows.has(rowId);
|
|
8943
|
-
return /* @__PURE__ */ (0,
|
|
9220
|
+
return /* @__PURE__ */ (0, import_jsx_runtime131.jsx)(
|
|
8944
9221
|
RenderItem,
|
|
8945
9222
|
{
|
|
8946
9223
|
...{
|
|
@@ -8962,8 +9239,8 @@ var TableDesktopRows = ({
|
|
|
8962
9239
|
};
|
|
8963
9240
|
|
|
8964
9241
|
// src/components/TableDesktopRowSelectionBar/TableDesktopRowSelectionBar.tsx
|
|
8965
|
-
var
|
|
8966
|
-
var
|
|
9242
|
+
var import_material77 = require("@mui/material");
|
|
9243
|
+
var import_jsx_runtime132 = require("react/jsx-runtime");
|
|
8967
9244
|
var TableDesktopRowSelectionBar = ({
|
|
8968
9245
|
isEveryRowInPageSelected,
|
|
8969
9246
|
isRowsFromAllPagesSelected,
|
|
@@ -8982,8 +9259,8 @@ var TableDesktopRowSelectionBar = ({
|
|
|
8982
9259
|
}
|
|
8983
9260
|
return `${numSelectedRows} row${numSelectedRows > 1 ? "s" : ""} selected.`;
|
|
8984
9261
|
};
|
|
8985
|
-
return isAnyRowSelected ? /* @__PURE__ */ (0,
|
|
8986
|
-
|
|
9262
|
+
return isAnyRowSelected ? /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(
|
|
9263
|
+
import_material77.Box,
|
|
8987
9264
|
{
|
|
8988
9265
|
sx: {
|
|
8989
9266
|
p: 1,
|
|
@@ -8995,22 +9272,22 @@ var TableDesktopRowSelectionBar = ({
|
|
|
8995
9272
|
backgroundColor: colors.neutral150
|
|
8996
9273
|
},
|
|
8997
9274
|
children: [
|
|
8998
|
-
/* @__PURE__ */ (0,
|
|
8999
|
-
!isRowsFromAllPagesSelected ? /* @__PURE__ */ (0,
|
|
9275
|
+
/* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_material77.Typography, { children: getSelectedRowsText() }),
|
|
9276
|
+
!isRowsFromAllPagesSelected ? /* @__PURE__ */ (0, import_jsx_runtime132.jsxs)(import_material77.Button, { onClick: onSelectRowsFromAllPagesClick, children: [
|
|
9000
9277
|
"Select all ",
|
|
9001
9278
|
totalRowCount,
|
|
9002
9279
|
" rows from all pages based on your filters"
|
|
9003
9280
|
] }) : null,
|
|
9004
|
-
/* @__PURE__ */ (0,
|
|
9281
|
+
/* @__PURE__ */ (0, import_jsx_runtime132.jsx)(import_material77.Button, { onClick: onClearSelectionClick, children: "Clear Selection" })
|
|
9005
9282
|
]
|
|
9006
9283
|
}
|
|
9007
9284
|
) : null;
|
|
9008
9285
|
};
|
|
9009
9286
|
|
|
9010
9287
|
// src/components/TableEmptyResult/TableEmptyResult.tsx
|
|
9011
|
-
var
|
|
9288
|
+
var import_material78 = require("@mui/material");
|
|
9012
9289
|
var import_mui52 = require("tss-react/mui");
|
|
9013
|
-
var
|
|
9290
|
+
var import_jsx_runtime133 = require("react/jsx-runtime");
|
|
9014
9291
|
var useStyles46 = (0, import_mui52.makeStyles)()(() => ({
|
|
9015
9292
|
tableCellIcon: { padding: 24, height: "calc(100vh - 320px)" },
|
|
9016
9293
|
tableCellDefault: { padding: 24 }
|
|
@@ -9022,17 +9299,17 @@ var TableEmptyResult = ({
|
|
|
9022
9299
|
}
|
|
9023
9300
|
}) => {
|
|
9024
9301
|
const { classes } = useStyles46();
|
|
9025
|
-
return showClearFilterButton ? /* @__PURE__ */ (0,
|
|
9026
|
-
|
|
9302
|
+
return showClearFilterButton ? /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_material78.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime133.jsxs)(
|
|
9303
|
+
import_material78.TableCell,
|
|
9027
9304
|
{
|
|
9028
9305
|
className: classes.tableCellIcon,
|
|
9029
9306
|
colSpan,
|
|
9030
9307
|
align: "center",
|
|
9031
9308
|
children: [
|
|
9032
|
-
/* @__PURE__ */ (0,
|
|
9033
|
-
/* @__PURE__ */ (0,
|
|
9034
|
-
/* @__PURE__ */ (0,
|
|
9035
|
-
/* @__PURE__ */ (0,
|
|
9309
|
+
/* @__PURE__ */ (0, import_jsx_runtime133.jsx)(EmptyGlassIcon_default, {}),
|
|
9310
|
+
/* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_material78.Typography, { variant: "h6", children: "No results found." }),
|
|
9311
|
+
/* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_material78.Typography, { variant: "subtitle1", children: "Search without applied filters?" }),
|
|
9312
|
+
/* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
|
|
9036
9313
|
FilledButton_default,
|
|
9037
9314
|
{
|
|
9038
9315
|
copy: "Search",
|
|
@@ -9043,8 +9320,8 @@ var TableEmptyResult = ({
|
|
|
9043
9320
|
)
|
|
9044
9321
|
]
|
|
9045
9322
|
}
|
|
9046
|
-
) }) : /* @__PURE__ */ (0,
|
|
9047
|
-
|
|
9323
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_material78.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
|
|
9324
|
+
import_material78.TableCell,
|
|
9048
9325
|
{
|
|
9049
9326
|
className: classes.tableCellDefault,
|
|
9050
9327
|
colSpan,
|
|
@@ -9056,7 +9333,7 @@ var TableEmptyResult = ({
|
|
|
9056
9333
|
var TableEmptyResult_default = TableEmptyResult;
|
|
9057
9334
|
|
|
9058
9335
|
// src/components/TableDesktop/TableDesktop.tsx
|
|
9059
|
-
var
|
|
9336
|
+
var import_jsx_runtime134 = require("react/jsx-runtime");
|
|
9060
9337
|
var resolveKeyValue = (keyField, rowData) => {
|
|
9061
9338
|
if (typeof keyField === "string") {
|
|
9062
9339
|
return rowData[keyField];
|
|
@@ -9089,24 +9366,24 @@ var TableDesktop = ({
|
|
|
9089
9366
|
shouldShowCheckOnFilter,
|
|
9090
9367
|
refetchData
|
|
9091
9368
|
}) => {
|
|
9092
|
-
const tableToolbarMenuButtonRef = (0,
|
|
9093
|
-
const [tableToolbarMenuAnchor, setTableToolbarMenuAnchor] = (0,
|
|
9094
|
-
const [order, setOrder] = (0,
|
|
9095
|
-
const [orderBy, setOrderBy] = (0,
|
|
9369
|
+
const tableToolbarMenuButtonRef = (0, import_react44.useRef)(null);
|
|
9370
|
+
const [tableToolbarMenuAnchor, setTableToolbarMenuAnchor] = (0, import_react44.useState)(null);
|
|
9371
|
+
const [order, setOrder] = (0, import_react44.useState)(appliedFilters?.sortDir || "desc");
|
|
9372
|
+
const [orderBy, setOrderBy] = (0, import_react44.useState)(
|
|
9096
9373
|
appliedFilters?.sortField || "delivery_date"
|
|
9097
9374
|
);
|
|
9098
|
-
const [selectedRows, setSelectedRows] = (0,
|
|
9099
|
-
const [isRowsFromAllPagesSelected, setIsRowsFromAllPagesSelected] = (0,
|
|
9100
|
-
const [isBulkChangesMode, setIsBulkChangesMode] = (0,
|
|
9375
|
+
const [selectedRows, setSelectedRows] = (0, import_react44.useState)(/* @__PURE__ */ new Set());
|
|
9376
|
+
const [isRowsFromAllPagesSelected, setIsRowsFromAllPagesSelected] = (0, import_react44.useState)(false);
|
|
9377
|
+
const [isBulkChangesMode, setIsBulkChangesMode] = (0, import_react44.useState)(false);
|
|
9101
9378
|
const numRows = data.length;
|
|
9102
|
-
const numSelectedRows = (0,
|
|
9379
|
+
const numSelectedRows = (0, import_react44.useMemo)(() => {
|
|
9103
9380
|
const currentPageIds = new Set(
|
|
9104
9381
|
data.map((row) => resolveKeyValue(keyField, row))
|
|
9105
9382
|
);
|
|
9106
9383
|
return [...selectedRows].filter((id) => currentPageIds.has(id)).length;
|
|
9107
9384
|
}, [data, selectedRows, keyField]);
|
|
9108
9385
|
const isEveryRowInPageSelected = numRows > 0 && numSelectedRows === numRows;
|
|
9109
|
-
const visibleHeadCells = (0,
|
|
9386
|
+
const visibleHeadCells = (0, import_react44.useMemo)(
|
|
9110
9387
|
() => headCells.filter((headCell) => headCell?.enabled ?? true),
|
|
9111
9388
|
[headCells]
|
|
9112
9389
|
);
|
|
@@ -9172,14 +9449,14 @@ var TableDesktop = ({
|
|
|
9172
9449
|
refetchData?.();
|
|
9173
9450
|
}
|
|
9174
9451
|
};
|
|
9175
|
-
(0,
|
|
9452
|
+
(0, import_react44.useEffect)(() => {
|
|
9176
9453
|
if (isRowsFromAllPagesSelected) {
|
|
9177
9454
|
selectAllRowsInPage();
|
|
9178
9455
|
}
|
|
9179
9456
|
}, [isRowsFromAllPagesSelected, data]);
|
|
9180
9457
|
const renderBody = () => {
|
|
9181
9458
|
if (isLoading) {
|
|
9182
|
-
return /* @__PURE__ */ (0,
|
|
9459
|
+
return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9183
9460
|
TableDesktopLoadingState,
|
|
9184
9461
|
{
|
|
9185
9462
|
numRows: Math.min(rowsPerPage, 10),
|
|
@@ -9189,7 +9466,7 @@ var TableDesktop = ({
|
|
|
9189
9466
|
);
|
|
9190
9467
|
}
|
|
9191
9468
|
if (numRows === 0) {
|
|
9192
|
-
return /* @__PURE__ */ (0,
|
|
9469
|
+
return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9193
9470
|
TableEmptyResult_default,
|
|
9194
9471
|
{
|
|
9195
9472
|
showClearFilterButton,
|
|
@@ -9198,7 +9475,7 @@ var TableDesktop = ({
|
|
|
9198
9475
|
}
|
|
9199
9476
|
);
|
|
9200
9477
|
}
|
|
9201
|
-
return /* @__PURE__ */ (0,
|
|
9478
|
+
return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9202
9479
|
TableDesktopRows,
|
|
9203
9480
|
{
|
|
9204
9481
|
data,
|
|
@@ -9217,8 +9494,8 @@ var TableDesktop = ({
|
|
|
9217
9494
|
}
|
|
9218
9495
|
);
|
|
9219
9496
|
};
|
|
9220
|
-
return /* @__PURE__ */ (0,
|
|
9221
|
-
|
|
9497
|
+
return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9498
|
+
import_material79.Box,
|
|
9222
9499
|
{
|
|
9223
9500
|
sx: {
|
|
9224
9501
|
height,
|
|
@@ -9226,8 +9503,8 @@ var TableDesktop = ({
|
|
|
9226
9503
|
justifyContent: "space-between",
|
|
9227
9504
|
justifyItems: "stretch"
|
|
9228
9505
|
},
|
|
9229
|
-
children: /* @__PURE__ */ (0,
|
|
9230
|
-
|
|
9506
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(
|
|
9507
|
+
import_material79.Paper,
|
|
9231
9508
|
{
|
|
9232
9509
|
sx: {
|
|
9233
9510
|
width: "100%",
|
|
@@ -9251,7 +9528,7 @@ var TableDesktop = ({
|
|
|
9251
9528
|
isBulkChangesMode,
|
|
9252
9529
|
onChangeBulkChangesMode: handleChangeBulkChangesMode
|
|
9253
9530
|
}) : null,
|
|
9254
|
-
/* @__PURE__ */ (0,
|
|
9531
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9255
9532
|
TableDesktopRowSelectionBar,
|
|
9256
9533
|
{
|
|
9257
9534
|
isEveryRowInPageSelected,
|
|
@@ -9262,8 +9539,8 @@ var TableDesktop = ({
|
|
|
9262
9539
|
onClearSelectionClick: handleClearSelectionClick
|
|
9263
9540
|
}
|
|
9264
9541
|
),
|
|
9265
|
-
/* @__PURE__ */ (0,
|
|
9266
|
-
|
|
9542
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9543
|
+
import_material79.TableContainer,
|
|
9267
9544
|
{
|
|
9268
9545
|
sx: {
|
|
9269
9546
|
flexGrow: 1,
|
|
@@ -9284,13 +9561,13 @@ var TableDesktop = ({
|
|
|
9284
9561
|
backgroundColor: (theme) => theme.palette.grey[500]
|
|
9285
9562
|
}
|
|
9286
9563
|
},
|
|
9287
|
-
children: /* @__PURE__ */ (0,
|
|
9564
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material79.Table, { stickyHeader: true, "aria-label": "sticky-table", sx: { tableLayout }, children: visibleHeadCells.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9288
9565
|
TableDesktopNoColumnsMessage,
|
|
9289
9566
|
{
|
|
9290
9567
|
onClickNoColumnsMessageOpenMenu: handleClickToolbarMenuOpen
|
|
9291
9568
|
}
|
|
9292
|
-
) : /* @__PURE__ */ (0,
|
|
9293
|
-
/* @__PURE__ */ (0,
|
|
9569
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_jsx_runtime134.Fragment, { children: [
|
|
9570
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
|
|
9294
9571
|
SmartTableHeader,
|
|
9295
9572
|
{
|
|
9296
9573
|
order,
|
|
@@ -9306,7 +9583,7 @@ var TableDesktop = ({
|
|
|
9306
9583
|
shouldShowCheckOnFilter
|
|
9307
9584
|
}
|
|
9308
9585
|
),
|
|
9309
|
-
/* @__PURE__ */ (0,
|
|
9586
|
+
/* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material79.TableBody, { children: renderBody() })
|
|
9310
9587
|
] }) })
|
|
9311
9588
|
}
|
|
9312
9589
|
),
|
|
@@ -9323,15 +9600,15 @@ var TableDesktop = ({
|
|
|
9323
9600
|
};
|
|
9324
9601
|
|
|
9325
9602
|
// src/components/TableDesktopEditableField/TableDesktopEditableField.tsx
|
|
9326
|
-
var
|
|
9603
|
+
var import_react51 = require("react");
|
|
9327
9604
|
var import_Delete = __toESM(require("@mui/icons-material/Delete"), 1);
|
|
9328
|
-
var
|
|
9605
|
+
var import_material82 = require("@mui/material");
|
|
9329
9606
|
var import_x_date_pickers = require("@mui/x-date-pickers");
|
|
9330
9607
|
var import_moment3 = __toESM(require("moment"), 1);
|
|
9331
9608
|
|
|
9332
9609
|
// src/components/TableDesktopEditableField/TableDesktopSmartMultipleSelect.tsx
|
|
9333
|
-
var
|
|
9334
|
-
var
|
|
9610
|
+
var import_react45 = require("react");
|
|
9611
|
+
var import_jsx_runtime135 = require("react/jsx-runtime");
|
|
9335
9612
|
var TableDesktopSmartMultipleSelect = ({
|
|
9336
9613
|
initialValue,
|
|
9337
9614
|
inputLabel,
|
|
@@ -9346,13 +9623,13 @@ var TableDesktopSmartMultipleSelect = ({
|
|
|
9346
9623
|
isFetchingFilterOptions,
|
|
9347
9624
|
onUpdateEditableCell
|
|
9348
9625
|
}) => {
|
|
9349
|
-
const defaultValues = (0,
|
|
9626
|
+
const defaultValues = (0, import_react45.useMemo)(() => {
|
|
9350
9627
|
return initialValue?.map((val) => ({
|
|
9351
9628
|
value: val.id,
|
|
9352
9629
|
label: val[fieldName].toString()
|
|
9353
9630
|
}));
|
|
9354
9631
|
}, [initialValue]);
|
|
9355
|
-
return /* @__PURE__ */ (0,
|
|
9632
|
+
return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
|
|
9356
9633
|
SmartMultipleSelect,
|
|
9357
9634
|
{
|
|
9358
9635
|
inputLabel,
|
|
@@ -9383,8 +9660,8 @@ var TableDesktopSmartMultipleSelect = ({
|
|
|
9383
9660
|
};
|
|
9384
9661
|
|
|
9385
9662
|
// src/components/TableDesktopEditableField/TableDesktopSmartSelect.tsx
|
|
9386
|
-
var
|
|
9387
|
-
var
|
|
9663
|
+
var import_react46 = require("react");
|
|
9664
|
+
var import_jsx_runtime136 = require("react/jsx-runtime");
|
|
9388
9665
|
var TableDesktopSmartSelect = ({
|
|
9389
9666
|
ref,
|
|
9390
9667
|
initialValue,
|
|
@@ -9401,12 +9678,12 @@ var TableDesktopSmartSelect = ({
|
|
|
9401
9678
|
isFetchingFilterOptions,
|
|
9402
9679
|
onUpdateEditableCell
|
|
9403
9680
|
}) => {
|
|
9404
|
-
const [value, setValue] = (0,
|
|
9681
|
+
const [value, setValue] = (0, import_react46.useState)(
|
|
9405
9682
|
initialValue
|
|
9406
9683
|
);
|
|
9407
9684
|
const valueId = resolveObjectType(value ?? "", "id");
|
|
9408
9685
|
const valueLabel = resolveObjectType(value ?? "", fieldName);
|
|
9409
|
-
return /* @__PURE__ */ (0,
|
|
9686
|
+
return /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
|
|
9410
9687
|
SmartSelect,
|
|
9411
9688
|
{
|
|
9412
9689
|
ref,
|
|
@@ -9438,13 +9715,13 @@ var TableDesktopSmartSelect = ({
|
|
|
9438
9715
|
};
|
|
9439
9716
|
|
|
9440
9717
|
// src/components/TableDesktopEditableField/TableDesktopTagsField.tsx
|
|
9441
|
-
var
|
|
9718
|
+
var import_react49 = require("react");
|
|
9442
9719
|
|
|
9443
9720
|
// src/components/HashtagInput/HashtagInput.tsx
|
|
9444
|
-
var
|
|
9445
|
-
var
|
|
9446
|
-
var
|
|
9447
|
-
var
|
|
9721
|
+
var import_react47 = require("react");
|
|
9722
|
+
var import_material80 = require("@mui/material");
|
|
9723
|
+
var import_jsx_runtime137 = require("react/jsx-runtime");
|
|
9724
|
+
var import_react48 = require("react");
|
|
9448
9725
|
var HashtagInput = ({
|
|
9449
9726
|
label,
|
|
9450
9727
|
placeholder,
|
|
@@ -9458,8 +9735,8 @@ var HashtagInput = ({
|
|
|
9458
9735
|
onBlur,
|
|
9459
9736
|
...props
|
|
9460
9737
|
}) => {
|
|
9461
|
-
const { palette: palette2 } = (0,
|
|
9462
|
-
const [inputValue, setInputValue] = (0,
|
|
9738
|
+
const { palette: palette2 } = (0, import_material80.useTheme)();
|
|
9739
|
+
const [inputValue, setInputValue] = (0, import_react47.useState)("");
|
|
9463
9740
|
const sanitizeTag = (value) => {
|
|
9464
9741
|
return value.toLowerCase().replace(/[^a-z0-9#]/g, "").trim();
|
|
9465
9742
|
};
|
|
@@ -9476,8 +9753,8 @@ var HashtagInput = ({
|
|
|
9476
9753
|
handleAddTag();
|
|
9477
9754
|
}
|
|
9478
9755
|
};
|
|
9479
|
-
return /* @__PURE__ */ (0,
|
|
9480
|
-
|
|
9756
|
+
return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
|
|
9757
|
+
import_material80.Autocomplete,
|
|
9481
9758
|
{
|
|
9482
9759
|
...props,
|
|
9483
9760
|
multiple: true,
|
|
@@ -9495,8 +9772,8 @@ var HashtagInput = ({
|
|
|
9495
9772
|
onDeleteTag?.(details.option);
|
|
9496
9773
|
}
|
|
9497
9774
|
},
|
|
9498
|
-
renderInput: (textFieldProps) => /* @__PURE__ */ (0,
|
|
9499
|
-
|
|
9775
|
+
renderInput: (textFieldProps) => /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
|
|
9776
|
+
import_material80.TextField,
|
|
9500
9777
|
{
|
|
9501
9778
|
...textFieldProps,
|
|
9502
9779
|
autoFocus,
|
|
@@ -9515,8 +9792,8 @@ var HashtagInput = ({
|
|
|
9515
9792
|
}
|
|
9516
9793
|
),
|
|
9517
9794
|
renderValue: (value, getTagProps) => value.map((option, index) => {
|
|
9518
|
-
return /* @__PURE__ */ (0,
|
|
9519
|
-
|
|
9795
|
+
return /* @__PURE__ */ (0, import_react48.createElement)(
|
|
9796
|
+
import_material80.Chip,
|
|
9520
9797
|
{
|
|
9521
9798
|
...getTagProps({ index }),
|
|
9522
9799
|
key: option.id,
|
|
@@ -9526,7 +9803,7 @@ var HashtagInput = ({
|
|
|
9526
9803
|
paddingBlock: 0,
|
|
9527
9804
|
color: palette2.primary.main,
|
|
9528
9805
|
fontWeight: "bold",
|
|
9529
|
-
backgroundColor: (0,
|
|
9806
|
+
backgroundColor: (0, import_material80.alpha)(palette2.primary.main, 0.1)
|
|
9530
9807
|
}
|
|
9531
9808
|
}
|
|
9532
9809
|
);
|
|
@@ -9536,7 +9813,7 @@ var HashtagInput = ({
|
|
|
9536
9813
|
};
|
|
9537
9814
|
|
|
9538
9815
|
// src/components/TableDesktopEditableField/TableDesktopTagsField.tsx
|
|
9539
|
-
var
|
|
9816
|
+
var import_jsx_runtime138 = require("react/jsx-runtime");
|
|
9540
9817
|
var TableDesktopTagsField = ({
|
|
9541
9818
|
initialValue,
|
|
9542
9819
|
inputLabel,
|
|
@@ -9547,9 +9824,9 @@ var TableDesktopTagsField = ({
|
|
|
9547
9824
|
size,
|
|
9548
9825
|
onUpdateEditableCell
|
|
9549
9826
|
}) => {
|
|
9550
|
-
const [error, setError] = (0,
|
|
9551
|
-
const [values, setValues] = (0,
|
|
9552
|
-
const valuesRef = (0,
|
|
9827
|
+
const [error, setError] = (0, import_react49.useState)();
|
|
9828
|
+
const [values, setValues] = (0, import_react49.useState)([]);
|
|
9829
|
+
const valuesRef = (0, import_react49.useRef)([]);
|
|
9553
9830
|
const validateTag = (tag) => {
|
|
9554
9831
|
if (tag.length >= 30) {
|
|
9555
9832
|
return false;
|
|
@@ -9568,14 +9845,14 @@ var TableDesktopTagsField = ({
|
|
|
9568
9845
|
setValues(newTags);
|
|
9569
9846
|
valuesRef.current = newTags;
|
|
9570
9847
|
};
|
|
9571
|
-
const initialValueTags = (0,
|
|
9848
|
+
const initialValueTags = (0, import_react49.useMemo)(() => {
|
|
9572
9849
|
return (initialValue ?? []).map((val) => val.tag);
|
|
9573
9850
|
}, [initialValue]);
|
|
9574
|
-
(0,
|
|
9851
|
+
(0, import_react49.useEffect)(() => {
|
|
9575
9852
|
setValues(initialValueTags);
|
|
9576
9853
|
valuesRef.current = initialValueTags;
|
|
9577
9854
|
}, [initialValueTags]);
|
|
9578
|
-
return /* @__PURE__ */ (0,
|
|
9855
|
+
return /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(import_jsx_runtime138.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
|
|
9579
9856
|
HashtagInput,
|
|
9580
9857
|
{
|
|
9581
9858
|
autoFocus: true,
|
|
@@ -9610,9 +9887,9 @@ var TableDesktopTagsField = ({
|
|
|
9610
9887
|
};
|
|
9611
9888
|
|
|
9612
9889
|
// src/components/TableDesktopEditableField/TableDesktopTextField.tsx
|
|
9613
|
-
var
|
|
9614
|
-
var
|
|
9615
|
-
var
|
|
9890
|
+
var import_react50 = require("react");
|
|
9891
|
+
var import_material81 = require("@mui/material");
|
|
9892
|
+
var import_jsx_runtime139 = require("react/jsx-runtime");
|
|
9616
9893
|
var TableDesktopTextField = ({
|
|
9617
9894
|
rowId,
|
|
9618
9895
|
initialValue,
|
|
@@ -9625,13 +9902,13 @@ var TableDesktopTextField = ({
|
|
|
9625
9902
|
validateInput,
|
|
9626
9903
|
onUpdateEditableCell
|
|
9627
9904
|
}) => {
|
|
9628
|
-
const [input, setInput] = (0,
|
|
9629
|
-
const oldValue = (0,
|
|
9630
|
-
const isDirty = (0,
|
|
9905
|
+
const [input, setInput] = (0, import_react50.useState)(initialValue);
|
|
9906
|
+
const oldValue = (0, import_react50.useRef)(initialValue);
|
|
9907
|
+
const isDirty = (0, import_react50.useMemo)(
|
|
9631
9908
|
() => input !== oldValue.current,
|
|
9632
9909
|
[input, oldValue.current]
|
|
9633
9910
|
);
|
|
9634
|
-
const hasValidationError = (0,
|
|
9911
|
+
const hasValidationError = (0, import_react50.useMemo)(
|
|
9635
9912
|
() => isDirty && validateInput && !validateInput(input),
|
|
9636
9913
|
[input, validateInput]
|
|
9637
9914
|
);
|
|
@@ -9649,8 +9926,8 @@ var TableDesktopTextField = ({
|
|
|
9649
9926
|
commitValue(input);
|
|
9650
9927
|
}
|
|
9651
9928
|
};
|
|
9652
|
-
return /* @__PURE__ */ (0,
|
|
9653
|
-
|
|
9929
|
+
return /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(
|
|
9930
|
+
import_material81.TextField,
|
|
9654
9931
|
{
|
|
9655
9932
|
fullWidth: true,
|
|
9656
9933
|
variant,
|
|
@@ -9682,7 +9959,7 @@ var TableDesktopTextField = ({
|
|
|
9682
9959
|
};
|
|
9683
9960
|
|
|
9684
9961
|
// src/components/TableDesktopEditableField/TableDesktopEditableField.tsx
|
|
9685
|
-
var
|
|
9962
|
+
var import_jsx_runtime140 = require("react/jsx-runtime");
|
|
9686
9963
|
var TableDesktopEditableField = ({
|
|
9687
9964
|
editInitialValue,
|
|
9688
9965
|
rowId,
|
|
@@ -9703,8 +9980,8 @@ var TableDesktopEditableField = ({
|
|
|
9703
9980
|
allowBlankSelectOption
|
|
9704
9981
|
}
|
|
9705
9982
|
}) => {
|
|
9706
|
-
const [parsedFilterOptions, setParsedFilterOptions] = (0,
|
|
9707
|
-
(0,
|
|
9983
|
+
const [parsedFilterOptions, setParsedFilterOptions] = (0, import_react51.useState)();
|
|
9984
|
+
(0, import_react51.useEffect)(() => {
|
|
9708
9985
|
if (filterOptions && editableCellType === "select" || editableCellType === "multipleSelect") {
|
|
9709
9986
|
const parsedOptions = filterOptions?.map(
|
|
9710
9987
|
(option) => ({
|
|
@@ -9716,7 +9993,7 @@ var TableDesktopEditableField = ({
|
|
|
9716
9993
|
}
|
|
9717
9994
|
}, [filterOptions, editableCellType]);
|
|
9718
9995
|
const editableComponents = {
|
|
9719
|
-
select: /* @__PURE__ */ (0,
|
|
9996
|
+
select: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
9720
9997
|
TableDesktopSmartSelect,
|
|
9721
9998
|
{
|
|
9722
9999
|
rowId,
|
|
@@ -9734,7 +10011,7 @@ var TableDesktopEditableField = ({
|
|
|
9734
10011
|
onUpdateEditableCell
|
|
9735
10012
|
}
|
|
9736
10013
|
),
|
|
9737
|
-
multipleSelect: /* @__PURE__ */ (0,
|
|
10014
|
+
multipleSelect: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
9738
10015
|
TableDesktopSmartMultipleSelect,
|
|
9739
10016
|
{
|
|
9740
10017
|
rowId,
|
|
@@ -9751,12 +10028,12 @@ var TableDesktopEditableField = ({
|
|
|
9751
10028
|
onUpdateEditableCell
|
|
9752
10029
|
}
|
|
9753
10030
|
),
|
|
9754
|
-
checkbox: /* @__PURE__ */ (0,
|
|
9755
|
-
|
|
10031
|
+
checkbox: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
10032
|
+
import_material82.FormControlLabel,
|
|
9756
10033
|
{
|
|
9757
10034
|
label: showCheckboxLabel ? inputLabel : "",
|
|
9758
|
-
control: /* @__PURE__ */ (0,
|
|
9759
|
-
|
|
10035
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
10036
|
+
import_material82.Checkbox,
|
|
9760
10037
|
{
|
|
9761
10038
|
disableRipple: true,
|
|
9762
10039
|
disabled,
|
|
@@ -9773,7 +10050,7 @@ var TableDesktopEditableField = ({
|
|
|
9773
10050
|
)
|
|
9774
10051
|
}
|
|
9775
10052
|
),
|
|
9776
|
-
text: /* @__PURE__ */ (0,
|
|
10053
|
+
text: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
9777
10054
|
TableDesktopTextField,
|
|
9778
10055
|
{
|
|
9779
10056
|
type: "text",
|
|
@@ -9788,7 +10065,7 @@ var TableDesktopEditableField = ({
|
|
|
9788
10065
|
onUpdateEditableCell
|
|
9789
10066
|
}
|
|
9790
10067
|
),
|
|
9791
|
-
numeric: /* @__PURE__ */ (0,
|
|
10068
|
+
numeric: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
9792
10069
|
TableDesktopTextField,
|
|
9793
10070
|
{
|
|
9794
10071
|
type: "numeric",
|
|
@@ -9803,7 +10080,7 @@ var TableDesktopEditableField = ({
|
|
|
9803
10080
|
onUpdateEditableCell
|
|
9804
10081
|
}
|
|
9805
10082
|
),
|
|
9806
|
-
date: /* @__PURE__ */ (0,
|
|
10083
|
+
date: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
9807
10084
|
import_x_date_pickers.DatePicker,
|
|
9808
10085
|
{
|
|
9809
10086
|
defaultValue: editInitialValue ? (0, import_moment3.default)(editInitialValue, "HH:mm:ss") : void 0,
|
|
@@ -9832,7 +10109,7 @@ var TableDesktopEditableField = ({
|
|
|
9832
10109
|
}
|
|
9833
10110
|
}
|
|
9834
10111
|
),
|
|
9835
|
-
time: /* @__PURE__ */ (0,
|
|
10112
|
+
time: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
9836
10113
|
import_x_date_pickers.TimePicker,
|
|
9837
10114
|
{
|
|
9838
10115
|
defaultValue: editInitialValue ? (0, import_moment3.default)(editInitialValue, "HH:mm:ss") : void 0,
|
|
@@ -9859,7 +10136,7 @@ var TableDesktopEditableField = ({
|
|
|
9859
10136
|
}
|
|
9860
10137
|
}
|
|
9861
10138
|
),
|
|
9862
|
-
tags: /* @__PURE__ */ (0,
|
|
10139
|
+
tags: /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
|
|
9863
10140
|
TableDesktopTagsField,
|
|
9864
10141
|
{
|
|
9865
10142
|
initialValue: editInitialValue,
|
|
@@ -9880,8 +10157,8 @@ var TableDesktopEditableField = ({
|
|
|
9880
10157
|
|
|
9881
10158
|
// src/components/TableDesktopFooter/TableDesktopFooter.tsx
|
|
9882
10159
|
var import_Refresh = __toESM(require("@mui/icons-material/Refresh"), 1);
|
|
9883
|
-
var
|
|
9884
|
-
var
|
|
10160
|
+
var import_material83 = require("@mui/material");
|
|
10161
|
+
var import_jsx_runtime141 = require("react/jsx-runtime");
|
|
9885
10162
|
var TableDesktopFooter = ({
|
|
9886
10163
|
numPages,
|
|
9887
10164
|
page,
|
|
@@ -9892,8 +10169,8 @@ var TableDesktopFooter = ({
|
|
|
9892
10169
|
refetchData,
|
|
9893
10170
|
isFetching
|
|
9894
10171
|
}) => {
|
|
9895
|
-
return /* @__PURE__ */ (0,
|
|
9896
|
-
|
|
10172
|
+
return /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)(
|
|
10173
|
+
import_material83.Box,
|
|
9897
10174
|
{
|
|
9898
10175
|
sx: {
|
|
9899
10176
|
py: 1,
|
|
@@ -9904,8 +10181,8 @@ var TableDesktopFooter = ({
|
|
|
9904
10181
|
borderTop: `1px solid ${colors.neutral300}`
|
|
9905
10182
|
},
|
|
9906
10183
|
children: [
|
|
9907
|
-
refetchData ? /* @__PURE__ */ (0,
|
|
9908
|
-
|
|
10184
|
+
refetchData ? /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
|
|
10185
|
+
import_material83.Button,
|
|
9909
10186
|
{
|
|
9910
10187
|
disableRipple: true,
|
|
9911
10188
|
variant: "text",
|
|
@@ -9916,7 +10193,7 @@ var TableDesktopFooter = ({
|
|
|
9916
10193
|
ml: 1,
|
|
9917
10194
|
gap: 1
|
|
9918
10195
|
},
|
|
9919
|
-
children: /* @__PURE__ */ (0,
|
|
10196
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
|
|
9920
10197
|
import_Refresh.default,
|
|
9921
10198
|
{
|
|
9922
10199
|
fontSize: "small",
|
|
@@ -9925,22 +10202,22 @@ var TableDesktopFooter = ({
|
|
|
9925
10202
|
)
|
|
9926
10203
|
}
|
|
9927
10204
|
) : null,
|
|
9928
|
-
/* @__PURE__ */ (0,
|
|
9929
|
-
pageSize && pageSizeOptions && onPageSizeChange ? /* @__PURE__ */ (0,
|
|
9930
|
-
/* @__PURE__ */ (0,
|
|
9931
|
-
/* @__PURE__ */ (0,
|
|
9932
|
-
|
|
10205
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsxs)(import_material83.Box, { sx: { display: "flex", ml: "auto", py: 1 }, children: [
|
|
10206
|
+
pageSize && pageSizeOptions && onPageSizeChange ? /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)(import_material83.Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
|
|
10207
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsx)(import_material83.Typography, { fontSize: 12, children: "Rows per page:" }),
|
|
10208
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
|
|
10209
|
+
import_material83.Select,
|
|
9933
10210
|
{
|
|
9934
10211
|
value: pageSize,
|
|
9935
10212
|
onChange: onPageSizeChange,
|
|
9936
10213
|
size: "small",
|
|
9937
10214
|
variant: "standard",
|
|
9938
|
-
children: pageSizeOptions.map((pageSizeOption) => /* @__PURE__ */ (0,
|
|
10215
|
+
children: pageSizeOptions.map((pageSizeOption) => /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(import_material83.MenuItem, { value: pageSizeOption, children: pageSizeOption }, pageSizeOption))
|
|
9939
10216
|
}
|
|
9940
10217
|
)
|
|
9941
10218
|
] }) : null,
|
|
9942
|
-
/* @__PURE__ */ (0,
|
|
9943
|
-
|
|
10219
|
+
/* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
|
|
10220
|
+
import_material83.Pagination,
|
|
9944
10221
|
{
|
|
9945
10222
|
color: "standard",
|
|
9946
10223
|
count: numPages,
|
|
@@ -9955,15 +10232,15 @@ var TableDesktopFooter = ({
|
|
|
9955
10232
|
};
|
|
9956
10233
|
|
|
9957
10234
|
// src/components/TableDesktopCell/TableDesktopCell.tsx
|
|
9958
|
-
var
|
|
10235
|
+
var import_react52 = require("react");
|
|
9959
10236
|
var import_Check3 = __toESM(require("@mui/icons-material/Check"), 1);
|
|
9960
10237
|
var import_Close = __toESM(require("@mui/icons-material/Close"), 1);
|
|
9961
10238
|
var import_Edit = __toESM(require("@mui/icons-material/Edit"), 1);
|
|
9962
|
-
var
|
|
9963
|
-
var
|
|
10239
|
+
var import_material84 = require("@mui/material");
|
|
10240
|
+
var import_jsx_runtime142 = require("react/jsx-runtime");
|
|
9964
10241
|
var getReadOnlyBooleanIcon = (value) => {
|
|
9965
10242
|
if (value) {
|
|
9966
|
-
return /* @__PURE__ */ (0,
|
|
10243
|
+
return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_Check3.default, { sx: { fontSize: 16 } });
|
|
9967
10244
|
}
|
|
9968
10245
|
return "-";
|
|
9969
10246
|
};
|
|
@@ -9985,10 +10262,10 @@ var TableDesktopCell = ({
|
|
|
9985
10262
|
onCellClick,
|
|
9986
10263
|
headCell
|
|
9987
10264
|
}) => {
|
|
9988
|
-
const [isCellHovered, setIsCellHovered] = (0,
|
|
9989
|
-
const [isCellInEditMode, setIsCellInEditMode] = (0,
|
|
10265
|
+
const [isCellHovered, setIsCellHovered] = (0, import_react52.useState)(false);
|
|
10266
|
+
const [isCellInEditMode, setIsCellInEditMode] = (0, import_react52.useState)(false);
|
|
9990
10267
|
const { width, editableCellType } = headCell;
|
|
9991
|
-
(0,
|
|
10268
|
+
(0, import_react52.useEffect)(() => {
|
|
9992
10269
|
const handleKeyDown = (e) => {
|
|
9993
10270
|
if (e.key === "Escape") {
|
|
9994
10271
|
setIsCellInEditMode(false);
|
|
@@ -10006,8 +10283,8 @@ var TableDesktopCell = ({
|
|
|
10006
10283
|
setIsCellInEditMode((prev) => !prev);
|
|
10007
10284
|
};
|
|
10008
10285
|
const isCellEditable = !!enableEditMode && !!editableCellType && !disabled;
|
|
10009
|
-
return /* @__PURE__ */ (0,
|
|
10010
|
-
|
|
10286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
|
|
10287
|
+
import_material84.TableCell,
|
|
10011
10288
|
{
|
|
10012
10289
|
align: "left",
|
|
10013
10290
|
onMouseEnter: () => isCellEditable && setIsCellHovered(true),
|
|
@@ -10021,9 +10298,9 @@ var TableDesktopCell = ({
|
|
|
10021
10298
|
":hover": isCellEditable ? getCellBackgroundColor(isCellInEditMode) : void 0,
|
|
10022
10299
|
background: enableEditMode && isCellInEditMode ? colors.lightBlueBackground : void 0
|
|
10023
10300
|
},
|
|
10024
|
-
children: /* @__PURE__ */ (0,
|
|
10025
|
-
enableEditMode && isCellHovered ? /* @__PURE__ */ (0,
|
|
10026
|
-
|
|
10301
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(DynamicOverflowTooltip, { tooltipDescription: String(readOnlyValue), arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_jsx_runtime142.Fragment, { children: [
|
|
10302
|
+
enableEditMode && isCellHovered ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material84.Tooltip, { title: isCellInEditMode ? "" : "Toggle Edit Mode", children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
|
|
10303
|
+
import_material84.IconButton,
|
|
10027
10304
|
{
|
|
10028
10305
|
onClick: handleEditClick,
|
|
10029
10306
|
sx: {
|
|
@@ -10037,10 +10314,10 @@ var TableDesktopCell = ({
|
|
|
10037
10314
|
backgroundColor: isCellInEditMode ? colors.lightBlueBackground : colors.neutral150
|
|
10038
10315
|
}
|
|
10039
10316
|
},
|
|
10040
|
-
children: isCellInEditMode ? /* @__PURE__ */ (0,
|
|
10317
|
+
children: isCellInEditMode ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_Close.default, { fontSize: "small", color: "error" }) : /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_Edit.default, { fontSize: "small" })
|
|
10041
10318
|
}
|
|
10042
10319
|
) }) : null,
|
|
10043
|
-
enableEditMode && isCellInEditMode && editableCellType ? /* @__PURE__ */ (0,
|
|
10320
|
+
enableEditMode && isCellInEditMode && editableCellType ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
|
|
10044
10321
|
TableDesktopEditableField,
|
|
10045
10322
|
{
|
|
10046
10323
|
editInitialValue,
|
|
@@ -10056,12 +10333,12 @@ var TableDesktopCell = ({
|
|
|
10056
10333
|
};
|
|
10057
10334
|
|
|
10058
10335
|
// src/components/TableDesktopToolbar/TableDesktopToolbar.tsx
|
|
10059
|
-
var
|
|
10336
|
+
var import_react53 = require("react");
|
|
10060
10337
|
var import_Download = __toESM(require("@mui/icons-material/Download"), 1);
|
|
10061
10338
|
var import_KeyboardArrowLeft2 = __toESM(require("@mui/icons-material/KeyboardArrowLeft"), 1);
|
|
10062
10339
|
var import_KeyboardArrowRight2 = __toESM(require("@mui/icons-material/KeyboardArrowRight"), 1);
|
|
10063
|
-
var
|
|
10064
|
-
var
|
|
10340
|
+
var import_material85 = require("@mui/material");
|
|
10341
|
+
var import_jsx_runtime143 = require("react/jsx-runtime");
|
|
10065
10342
|
var TableDesktopToolbar = ({
|
|
10066
10343
|
toolbarLabel,
|
|
10067
10344
|
headCells,
|
|
@@ -10084,12 +10361,12 @@ var TableDesktopToolbar = ({
|
|
|
10084
10361
|
renderTableColumnConfigurationMenu,
|
|
10085
10362
|
renderInfoIcons
|
|
10086
10363
|
}) => {
|
|
10087
|
-
const scrollRef = (0,
|
|
10088
|
-
const [bulkChanges, setBulkChanges] = (0,
|
|
10089
|
-
const [isBulkChangesDialogOpen, setIsBulkChangesDialogOpen] = (0,
|
|
10090
|
-
const [isExportCsvDialogOpen, setIsExportCsvDialogOpen] = (0,
|
|
10091
|
-
const [resetCounter, setResetCounter] = (0,
|
|
10092
|
-
const visibleEditableColumns = (0,
|
|
10364
|
+
const scrollRef = (0, import_react53.useRef)(null);
|
|
10365
|
+
const [bulkChanges, setBulkChanges] = (0, import_react53.useState)([]);
|
|
10366
|
+
const [isBulkChangesDialogOpen, setIsBulkChangesDialogOpen] = (0, import_react53.useState)(false);
|
|
10367
|
+
const [isExportCsvDialogOpen, setIsExportCsvDialogOpen] = (0, import_react53.useState)(false);
|
|
10368
|
+
const [resetCounter, setResetCounter] = (0, import_react53.useState)(0);
|
|
10369
|
+
const visibleEditableColumns = (0, import_react53.useMemo)(
|
|
10093
10370
|
() => headCells.filter(
|
|
10094
10371
|
(headCell) => headCell?.enabled && !!headCell?.editableCellType
|
|
10095
10372
|
),
|
|
@@ -10115,8 +10392,8 @@ var TableDesktopToolbar = ({
|
|
|
10115
10392
|
return [...prev, { field: columnId, value, label }];
|
|
10116
10393
|
});
|
|
10117
10394
|
};
|
|
10118
|
-
return /* @__PURE__ */ (0,
|
|
10119
|
-
|
|
10395
|
+
return /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(
|
|
10396
|
+
import_material85.Box,
|
|
10120
10397
|
{
|
|
10121
10398
|
sx: {
|
|
10122
10399
|
borderBottom: "1px solid",
|
|
@@ -10124,8 +10401,8 @@ var TableDesktopToolbar = ({
|
|
|
10124
10401
|
maxWidth: "100%"
|
|
10125
10402
|
},
|
|
10126
10403
|
children: [
|
|
10127
|
-
/* @__PURE__ */ (0,
|
|
10128
|
-
|
|
10404
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(
|
|
10405
|
+
import_material85.Box,
|
|
10129
10406
|
{
|
|
10130
10407
|
sx: {
|
|
10131
10408
|
py: 1,
|
|
@@ -10136,8 +10413,8 @@ var TableDesktopToolbar = ({
|
|
|
10136
10413
|
background: isBulkChangesMode ? colors.neutral150 : void 0
|
|
10137
10414
|
},
|
|
10138
10415
|
children: [
|
|
10139
|
-
/* @__PURE__ */ (0,
|
|
10140
|
-
|
|
10416
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(
|
|
10417
|
+
import_material85.Box,
|
|
10141
10418
|
{
|
|
10142
10419
|
sx: {
|
|
10143
10420
|
py: 1,
|
|
@@ -10147,21 +10424,21 @@ var TableDesktopToolbar = ({
|
|
|
10147
10424
|
whiteSpace: "nowrap"
|
|
10148
10425
|
},
|
|
10149
10426
|
children: [
|
|
10150
|
-
toolbarLabel ? /* @__PURE__ */ (0,
|
|
10151
|
-
/* @__PURE__ */ (0,
|
|
10152
|
-
/* @__PURE__ */ (0,
|
|
10427
|
+
toolbarLabel ? /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_jsx_runtime143.Fragment, { children: [
|
|
10428
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material85.Typography, { variant: "subtitle2", color: "textSecondary", children: toolbarLabel }),
|
|
10429
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material85.Divider, { orientation: "vertical", sx: { height: 0.75, py: 2.5 } })
|
|
10153
10430
|
] }) : null,
|
|
10154
|
-
renderBulkChangesDialog && refetchData ? /* @__PURE__ */ (0,
|
|
10155
|
-
|
|
10431
|
+
renderBulkChangesDialog && refetchData ? /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
10432
|
+
import_material85.Tooltip,
|
|
10156
10433
|
{
|
|
10157
10434
|
title: disableBulkChangesMode ? "Access denied, you don\u2019t have permission to use this feature." : "",
|
|
10158
|
-
children: /* @__PURE__ */ (0,
|
|
10159
|
-
|
|
10435
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
10436
|
+
import_material85.FormControlLabel,
|
|
10160
10437
|
{
|
|
10161
10438
|
label: "Bulk Changes Mode",
|
|
10162
10439
|
disabled: disableBulkChangesMode || !visibleEditableColumns.length,
|
|
10163
|
-
control: /* @__PURE__ */ (0,
|
|
10164
|
-
|
|
10440
|
+
control: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
10441
|
+
import_material85.Switch,
|
|
10165
10442
|
{
|
|
10166
10443
|
size: "small",
|
|
10167
10444
|
"aria-label": "bulk-changes-mode-switch",
|
|
@@ -10175,17 +10452,17 @@ var TableDesktopToolbar = ({
|
|
|
10175
10452
|
]
|
|
10176
10453
|
}
|
|
10177
10454
|
),
|
|
10178
|
-
isScrollable && /* @__PURE__ */ (0,
|
|
10179
|
-
|
|
10455
|
+
isScrollable && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
10456
|
+
import_material85.IconButton,
|
|
10180
10457
|
{
|
|
10181
10458
|
"aria-label": "scroll-left",
|
|
10182
10459
|
sx: { padding: 0, alignSelf: "center" },
|
|
10183
10460
|
onClick: () => scroll("left"),
|
|
10184
|
-
children: /* @__PURE__ */ (0,
|
|
10461
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_KeyboardArrowLeft2.default, {})
|
|
10185
10462
|
}
|
|
10186
10463
|
),
|
|
10187
|
-
/* @__PURE__ */ (0,
|
|
10188
|
-
|
|
10464
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
10465
|
+
import_material85.Box,
|
|
10189
10466
|
{
|
|
10190
10467
|
ref: scrollRef,
|
|
10191
10468
|
sx: {
|
|
@@ -10206,11 +10483,11 @@ var TableDesktopToolbar = ({
|
|
|
10206
10483
|
if (bulkUpdateDisabled) {
|
|
10207
10484
|
return null;
|
|
10208
10485
|
}
|
|
10209
|
-
return editableCellType && /* @__PURE__ */ (0,
|
|
10210
|
-
|
|
10486
|
+
return editableCellType && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
10487
|
+
import_material85.Box,
|
|
10211
10488
|
{
|
|
10212
10489
|
sx: { width, flex: "0 0 auto" },
|
|
10213
|
-
children: /* @__PURE__ */ (0,
|
|
10490
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
10214
10491
|
TableDesktopEditableField,
|
|
10215
10492
|
{
|
|
10216
10493
|
headCell,
|
|
@@ -10226,18 +10503,18 @@ var TableDesktopToolbar = ({
|
|
|
10226
10503
|
}) : null
|
|
10227
10504
|
}
|
|
10228
10505
|
),
|
|
10229
|
-
isScrollable && /* @__PURE__ */ (0,
|
|
10230
|
-
|
|
10506
|
+
isScrollable && /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
10507
|
+
import_material85.IconButton,
|
|
10231
10508
|
{
|
|
10232
10509
|
"aria-label": "scroll-right",
|
|
10233
10510
|
sx: { p: 0, alignSelf: "center" },
|
|
10234
10511
|
onClick: () => scroll("right"),
|
|
10235
|
-
children: /* @__PURE__ */ (0,
|
|
10512
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_KeyboardArrowRight2.default, {})
|
|
10236
10513
|
}
|
|
10237
10514
|
),
|
|
10238
|
-
isBulkChangesMode ? /* @__PURE__ */ (0,
|
|
10239
|
-
/* @__PURE__ */ (0,
|
|
10240
|
-
|
|
10515
|
+
isBulkChangesMode ? /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_jsx_runtime143.Fragment, { children: [
|
|
10516
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
10517
|
+
import_material85.Button,
|
|
10241
10518
|
{
|
|
10242
10519
|
variant: "outlined",
|
|
10243
10520
|
sx: { borderRadius: 25, alignSelf: "center" },
|
|
@@ -10249,8 +10526,8 @@ var TableDesktopToolbar = ({
|
|
|
10249
10526
|
children: "RESET"
|
|
10250
10527
|
}
|
|
10251
10528
|
),
|
|
10252
|
-
/* @__PURE__ */ (0,
|
|
10253
|
-
|
|
10529
|
+
/* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
10530
|
+
import_material85.Button,
|
|
10254
10531
|
{
|
|
10255
10532
|
variant: "contained",
|
|
10256
10533
|
"aria-label": "bulk-changes-apply-button",
|
|
@@ -10260,26 +10537,26 @@ var TableDesktopToolbar = ({
|
|
|
10260
10537
|
children: "APPLY"
|
|
10261
10538
|
}
|
|
10262
10539
|
)
|
|
10263
|
-
] }) : /* @__PURE__ */ (0,
|
|
10540
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)(import_material85.Box, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
10264
10541
|
renderInfoIcons,
|
|
10265
|
-
renderExportCsvDialog ? /* @__PURE__ */ (0,
|
|
10266
|
-
|
|
10542
|
+
renderExportCsvDialog ? /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material85.Tooltip, { title: "Download List", children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)("span", { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
10543
|
+
import_material85.IconButton,
|
|
10267
10544
|
{
|
|
10268
10545
|
disableRipple: true,
|
|
10269
10546
|
disabled: isDataEmpty,
|
|
10270
10547
|
"aria-label": "export-csv-button",
|
|
10271
10548
|
onClick: () => setIsExportCsvDialogOpen(true),
|
|
10272
|
-
children: /* @__PURE__ */ (0,
|
|
10549
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_Download.default, { fill: colors.neutral750 })
|
|
10273
10550
|
}
|
|
10274
10551
|
) }) }) : null,
|
|
10275
|
-
renderTableColumnConfigurationMenu ? /* @__PURE__ */ (0,
|
|
10276
|
-
|
|
10552
|
+
renderTableColumnConfigurationMenu ? /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material85.Tooltip, { title: "Table Column Configuration", children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
10553
|
+
import_material85.IconButton,
|
|
10277
10554
|
{
|
|
10278
10555
|
disableRipple: true,
|
|
10279
10556
|
"aria-label": "table-column-config-button",
|
|
10280
10557
|
ref: tableToolbarMenuButtonRef,
|
|
10281
10558
|
onClick: onClickToolbarMenuOpen,
|
|
10282
|
-
children: /* @__PURE__ */ (0,
|
|
10559
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(IconTableEdit_default, { fill: colors.neutral750 })
|
|
10283
10560
|
}
|
|
10284
10561
|
) }) : null
|
|
10285
10562
|
] })
|
|
@@ -10312,11 +10589,11 @@ var TableDesktopToolbar = ({
|
|
|
10312
10589
|
};
|
|
10313
10590
|
|
|
10314
10591
|
// src/components/TableHeader/TableHeader.tsx
|
|
10315
|
-
var
|
|
10316
|
-
var
|
|
10317
|
-
var
|
|
10592
|
+
var import_react54 = require("react");
|
|
10593
|
+
var import_ImportExport = __toESM(require("@mui/icons-material/ImportExport"), 1);
|
|
10594
|
+
var import_material86 = require("@mui/material");
|
|
10318
10595
|
var import_mui53 = require("tss-react/mui");
|
|
10319
|
-
var
|
|
10596
|
+
var import_jsx_runtime144 = require("react/jsx-runtime");
|
|
10320
10597
|
var useStyles47 = (0, import_mui53.makeStyles)()(() => ({
|
|
10321
10598
|
sortLabel: {
|
|
10322
10599
|
"& .MuiTableSortLabel-icon": {
|
|
@@ -10325,9 +10602,9 @@ var useStyles47 = (0, import_mui53.makeStyles)()(() => ({
|
|
|
10325
10602
|
}
|
|
10326
10603
|
}));
|
|
10327
10604
|
var TableHeader = ({ cells, onSort = null }) => {
|
|
10328
|
-
const [sortableCells, setSortableCells] = (0,
|
|
10605
|
+
const [sortableCells, setSortableCells] = (0, import_react54.useState)([]);
|
|
10329
10606
|
const { classes } = useStyles47();
|
|
10330
|
-
(0,
|
|
10607
|
+
(0, import_react54.useEffect)(() => {
|
|
10331
10608
|
setSortableCells(cells);
|
|
10332
10609
|
}, []);
|
|
10333
10610
|
const getNewSortDirection = (direction) => {
|
|
@@ -10361,23 +10638,23 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
10361
10638
|
});
|
|
10362
10639
|
setSortableCells(sortedCells);
|
|
10363
10640
|
};
|
|
10364
|
-
return /* @__PURE__ */ (0,
|
|
10365
|
-
|
|
10641
|
+
return /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material86.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material86.TableRow, { children: sortableCells.map((cell, key) => /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material86.TableCell, { children: cell.isSortable ? /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
10642
|
+
import_material86.TableSortLabel,
|
|
10366
10643
|
{
|
|
10367
10644
|
className: classes.sortLabel,
|
|
10368
10645
|
direction: cell?.direction || "asc",
|
|
10369
|
-
IconComponent:
|
|
10646
|
+
IconComponent: import_ImportExport.default,
|
|
10370
10647
|
onClick: () => handleSortClick(cell),
|
|
10371
10648
|
children: cell.label
|
|
10372
10649
|
}
|
|
10373
10650
|
) : cell.label }, cell.label || key)) }) });
|
|
10374
10651
|
};
|
|
10375
|
-
var TableHeader_default = (0,
|
|
10652
|
+
var TableHeader_default = (0, import_react54.memo)(TableHeader);
|
|
10376
10653
|
|
|
10377
10654
|
// src/components/TextDivider/TextDivider.tsx
|
|
10378
|
-
var
|
|
10655
|
+
var import_material87 = require("@mui/material");
|
|
10379
10656
|
var import_mui54 = require("tss-react/mui");
|
|
10380
|
-
var
|
|
10657
|
+
var import_jsx_runtime145 = require("react/jsx-runtime");
|
|
10381
10658
|
var useStyles48 = (0, import_mui54.makeStyles)()(() => ({
|
|
10382
10659
|
icon: {
|
|
10383
10660
|
fontSize: 20
|
|
@@ -10414,19 +10691,19 @@ var TextDivider = ({
|
|
|
10414
10691
|
}) => {
|
|
10415
10692
|
const { classes } = useStyles48();
|
|
10416
10693
|
const iconColor = color ?? colors.neutral900;
|
|
10417
|
-
return /* @__PURE__ */ (0,
|
|
10418
|
-
|
|
10694
|
+
return /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(
|
|
10695
|
+
import_material87.Box,
|
|
10419
10696
|
{
|
|
10420
10697
|
display: "flex",
|
|
10421
10698
|
alignItems: "center",
|
|
10422
10699
|
justifyContent: "space-between",
|
|
10423
10700
|
className: classes.container,
|
|
10424
10701
|
children: [
|
|
10425
|
-
/* @__PURE__ */ (0,
|
|
10426
|
-
/* @__PURE__ */ (0,
|
|
10427
|
-
Icon2 && iconPosition === "left" && /* @__PURE__ */ (0,
|
|
10428
|
-
/* @__PURE__ */ (0,
|
|
10429
|
-
|
|
10702
|
+
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material87.Divider, { className: classes.leftDivider }),
|
|
10703
|
+
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material87.Button, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)(import_material87.Box, { className: classes.center, children: [
|
|
10704
|
+
Icon2 && iconPosition === "left" && /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } }),
|
|
10705
|
+
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
|
|
10706
|
+
import_material87.Typography,
|
|
10430
10707
|
{
|
|
10431
10708
|
color: "textSecondary",
|
|
10432
10709
|
className: classes.title,
|
|
@@ -10434,9 +10711,9 @@ var TextDivider = ({
|
|
|
10434
10711
|
children: title
|
|
10435
10712
|
}
|
|
10436
10713
|
),
|
|
10437
|
-
Icon2 && iconPosition === "right" && /* @__PURE__ */ (0,
|
|
10714
|
+
Icon2 && iconPosition === "right" && /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } })
|
|
10438
10715
|
] }) }),
|
|
10439
|
-
/* @__PURE__ */ (0,
|
|
10716
|
+
/* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material87.Divider, { className: classes.rightDivider })
|
|
10440
10717
|
]
|
|
10441
10718
|
}
|
|
10442
10719
|
);
|
|
@@ -10448,7 +10725,7 @@ var import_react_dates = require("react-dates");
|
|
|
10448
10725
|
var import_mui55 = require("tss-react/mui");
|
|
10449
10726
|
var import_initialize = require("react-dates/initialize");
|
|
10450
10727
|
var import_datepicker = require("react-dates/lib/css/_datepicker.css");
|
|
10451
|
-
var
|
|
10728
|
+
var import_jsx_runtime146 = require("react/jsx-runtime");
|
|
10452
10729
|
var useStyles49 = (0, import_mui55.makeStyles)()((theme) => ({
|
|
10453
10730
|
wrapper: {
|
|
10454
10731
|
"& .DateRangePicker": {
|
|
@@ -10544,15 +10821,15 @@ var ThemedDateRangePicker = ({
|
|
|
10544
10821
|
...props
|
|
10545
10822
|
}) => {
|
|
10546
10823
|
const { classes, cx } = useStyles49();
|
|
10547
|
-
return /* @__PURE__ */ (0,
|
|
10824
|
+
return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(import_react_dates.DateRangePicker, { ...props }) });
|
|
10548
10825
|
};
|
|
10549
10826
|
var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
10550
10827
|
|
|
10551
10828
|
// src/components/TheToolbar/TheToolbar.tsx
|
|
10552
|
-
var
|
|
10553
|
-
var
|
|
10829
|
+
var import_react55 = require("react");
|
|
10830
|
+
var import_material88 = require("@mui/material");
|
|
10554
10831
|
var import_mui56 = require("tss-react/mui");
|
|
10555
|
-
var
|
|
10832
|
+
var import_jsx_runtime147 = require("react/jsx-runtime");
|
|
10556
10833
|
var useStyles50 = (0, import_mui56.makeStyles)()((theme) => ({
|
|
10557
10834
|
menuButton: {
|
|
10558
10835
|
color: theme.palette.primary.contrastText
|
|
@@ -10569,13 +10846,14 @@ var TheToolbar = ({
|
|
|
10569
10846
|
handleOpen,
|
|
10570
10847
|
LeftDrawer,
|
|
10571
10848
|
leftSection,
|
|
10849
|
+
centerSection,
|
|
10572
10850
|
rightSection,
|
|
10573
10851
|
isAuthenticated = true
|
|
10574
10852
|
}) => {
|
|
10575
10853
|
const { classes } = useStyles50();
|
|
10576
|
-
return /* @__PURE__ */ (0,
|
|
10577
|
-
/* @__PURE__ */ (0,
|
|
10578
|
-
isAuthenticated ? /* @__PURE__ */ (0,
|
|
10854
|
+
return /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_material88.Box, { children: [
|
|
10855
|
+
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material88.AppBar, { children: /* @__PURE__ */ (0, import_jsx_runtime147.jsxs)(import_material88.Toolbar, { className: classes.topBar, children: [
|
|
10856
|
+
isAuthenticated ? /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
|
|
10579
10857
|
RoundButton_default,
|
|
10580
10858
|
{
|
|
10581
10859
|
className: classes.menuButton,
|
|
@@ -10584,7 +10862,7 @@ var TheToolbar = ({
|
|
|
10584
10862
|
onClick: handleOpen
|
|
10585
10863
|
}
|
|
10586
10864
|
) : null,
|
|
10587
|
-
/* @__PURE__ */ (0,
|
|
10865
|
+
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
|
|
10588
10866
|
CompanyLogo_default,
|
|
10589
10867
|
{
|
|
10590
10868
|
size: "small",
|
|
@@ -10593,31 +10871,43 @@ var TheToolbar = ({
|
|
|
10593
10871
|
imageLogoLightSmall
|
|
10594
10872
|
}
|
|
10595
10873
|
),
|
|
10596
|
-
/* @__PURE__ */ (0,
|
|
10597
|
-
/* @__PURE__ */ (0,
|
|
10874
|
+
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material88.Box, { ml: 2, children: leftSection }),
|
|
10875
|
+
centerSection ? /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
|
|
10876
|
+
import_material88.Box,
|
|
10877
|
+
{
|
|
10878
|
+
sx: {
|
|
10879
|
+
flexGrow: 1,
|
|
10880
|
+
minWidth: 0,
|
|
10881
|
+
display: "flex",
|
|
10882
|
+
justifyContent: "center"
|
|
10883
|
+
},
|
|
10884
|
+
children: centerSection
|
|
10885
|
+
}
|
|
10886
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material88.Box, { sx: { flexGrow: 1 } }),
|
|
10887
|
+
/* @__PURE__ */ (0, import_jsx_runtime147.jsx)(import_material88.Box, { children: rightSection })
|
|
10598
10888
|
] }) }),
|
|
10599
10889
|
LeftDrawer
|
|
10600
10890
|
] });
|
|
10601
10891
|
};
|
|
10602
|
-
var TheToolbar_default = (0,
|
|
10892
|
+
var TheToolbar_default = (0, import_react55.memo)(TheToolbar);
|
|
10603
10893
|
|
|
10604
10894
|
// src/components/ToastMessage/ToastMessage.tsx
|
|
10605
|
-
var
|
|
10606
|
-
var
|
|
10895
|
+
var import_material89 = require("@mui/material");
|
|
10896
|
+
var import_jsx_runtime148 = require("react/jsx-runtime");
|
|
10607
10897
|
var ToastMessage = ({
|
|
10608
10898
|
toastType,
|
|
10609
10899
|
toastMessage,
|
|
10610
10900
|
open,
|
|
10611
10901
|
onClose
|
|
10612
|
-
}) => /* @__PURE__ */ (0,
|
|
10613
|
-
|
|
10902
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
|
|
10903
|
+
import_material89.Snackbar,
|
|
10614
10904
|
{
|
|
10615
10905
|
open,
|
|
10616
10906
|
autoHideDuration: 3e3,
|
|
10617
10907
|
onClose,
|
|
10618
10908
|
anchorOrigin: { vertical: "top", horizontal: "right" },
|
|
10619
|
-
children: /* @__PURE__ */ (0,
|
|
10620
|
-
|
|
10909
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
|
|
10910
|
+
import_material89.Alert,
|
|
10621
10911
|
{
|
|
10622
10912
|
elevation: 6,
|
|
10623
10913
|
variant: "filled",
|
|
@@ -10643,9 +10933,9 @@ var ToastMessage = ({
|
|
|
10643
10933
|
var ToastMessage_default = ToastMessage;
|
|
10644
10934
|
|
|
10645
10935
|
// src/components/TwoButtonDialog/TwoButtonDialog.tsx
|
|
10646
|
-
var
|
|
10936
|
+
var import_material90 = require("@mui/material");
|
|
10647
10937
|
var import_mui57 = require("tss-react/mui");
|
|
10648
|
-
var
|
|
10938
|
+
var import_jsx_runtime149 = require("react/jsx-runtime");
|
|
10649
10939
|
var useStyles51 = (0, import_mui57.makeStyles)()((theme) => ({
|
|
10650
10940
|
paper: {
|
|
10651
10941
|
padding: theme.spacing(2)
|
|
@@ -10675,20 +10965,20 @@ var TwoButtonDialog = ({
|
|
|
10675
10965
|
cancelButton
|
|
10676
10966
|
}) => {
|
|
10677
10967
|
const { classes } = useStyles51();
|
|
10678
|
-
return /* @__PURE__ */ (0,
|
|
10679
|
-
|
|
10968
|
+
return /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
|
|
10969
|
+
import_material90.Dialog,
|
|
10680
10970
|
{
|
|
10681
10971
|
open,
|
|
10682
10972
|
disableEnforceFocus: true,
|
|
10683
10973
|
maxWidth: "sm",
|
|
10684
10974
|
fullWidth: true,
|
|
10685
10975
|
closeAfterTransition: true,
|
|
10686
|
-
BackdropComponent:
|
|
10976
|
+
BackdropComponent: import_material90.Backdrop,
|
|
10687
10977
|
BackdropProps: { timeout: 500 },
|
|
10688
|
-
children: /* @__PURE__ */ (0,
|
|
10689
|
-
/* @__PURE__ */ (0,
|
|
10690
|
-
/* @__PURE__ */ (0,
|
|
10691
|
-
|
|
10978
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material90.Fade, { in: open, children: /* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(import_material90.Paper, { className: classes.paper, children: [
|
|
10979
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(import_material90.Box, { className: classes.mb, children: [
|
|
10980
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material90.Typography, { variant: "h5", component: "div", children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
|
|
10981
|
+
import_material90.Box,
|
|
10692
10982
|
{
|
|
10693
10983
|
sx: {
|
|
10694
10984
|
fontWeight: 600
|
|
@@ -10696,23 +10986,23 @@ var TwoButtonDialog = ({
|
|
|
10696
10986
|
children: title
|
|
10697
10987
|
}
|
|
10698
10988
|
) }),
|
|
10699
|
-
/* @__PURE__ */ (0,
|
|
10700
|
-
|
|
10989
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(
|
|
10990
|
+
import_material90.Box,
|
|
10701
10991
|
{
|
|
10702
10992
|
className: classes.mt,
|
|
10703
10993
|
sx: {
|
|
10704
10994
|
fontWeight: 600
|
|
10705
10995
|
},
|
|
10706
10996
|
children: [
|
|
10707
|
-
subtitle1 && /* @__PURE__ */ (0,
|
|
10708
|
-
subtitle2 && /* @__PURE__ */ (0,
|
|
10997
|
+
subtitle1 && /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material90.Typography, { variant: "subtitle1", children: subtitle1 }),
|
|
10998
|
+
subtitle2 && /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material90.Typography, { variant: "subtitle1", children: subtitle2 })
|
|
10709
10999
|
]
|
|
10710
11000
|
}
|
|
10711
11001
|
)
|
|
10712
11002
|
] }),
|
|
10713
|
-
/* @__PURE__ */ (0,
|
|
10714
|
-
/* @__PURE__ */ (0,
|
|
10715
|
-
/* @__PURE__ */ (0,
|
|
11003
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(import_material90.Divider, {}),
|
|
11004
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsxs)(import_material90.Box, { className: classes.buttonContainer, children: [
|
|
11005
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
|
|
10716
11006
|
FilledButton_default,
|
|
10717
11007
|
{
|
|
10718
11008
|
copy: cancelLabel,
|
|
@@ -10725,7 +11015,7 @@ var TwoButtonDialog = ({
|
|
|
10725
11015
|
}
|
|
10726
11016
|
}
|
|
10727
11017
|
),
|
|
10728
|
-
/* @__PURE__ */ (0,
|
|
11018
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
|
|
10729
11019
|
FilledButton_default,
|
|
10730
11020
|
{
|
|
10731
11021
|
color: "primary",
|
|
@@ -10734,7 +11024,7 @@ var TwoButtonDialog = ({
|
|
|
10734
11024
|
}
|
|
10735
11025
|
)
|
|
10736
11026
|
] }),
|
|
10737
|
-
/* @__PURE__ */ (0,
|
|
11027
|
+
/* @__PURE__ */ (0, import_jsx_runtime149.jsx)(Loading_default, { isLoading: dialogLoading })
|
|
10738
11028
|
] }) })
|
|
10739
11029
|
}
|
|
10740
11030
|
);
|
|
@@ -10742,30 +11032,30 @@ var TwoButtonDialog = ({
|
|
|
10742
11032
|
var TwoButtonDialog_default = TwoButtonDialog;
|
|
10743
11033
|
|
|
10744
11034
|
// src/components/UserBust/UserBust.tsx
|
|
10745
|
-
var
|
|
10746
|
-
var
|
|
10747
|
-
var
|
|
10748
|
-
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0,
|
|
10749
|
-
/* @__PURE__ */ (0,
|
|
10750
|
-
|
|
11035
|
+
var import_react56 = require("react");
|
|
11036
|
+
var import_material91 = require("@mui/material");
|
|
11037
|
+
var import_jsx_runtime150 = require("react/jsx-runtime");
|
|
11038
|
+
var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0, import_jsx_runtime150.jsxs)("div", { children: [
|
|
11039
|
+
/* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
|
|
11040
|
+
import_material91.Avatar,
|
|
10751
11041
|
{
|
|
10752
11042
|
src: user.profile_picture,
|
|
10753
11043
|
alt: "user_avatar",
|
|
10754
11044
|
style: { width: avatarProps.width, height: avatarProps.height }
|
|
10755
11045
|
}
|
|
10756
11046
|
),
|
|
10757
|
-
/* @__PURE__ */ (0,
|
|
10758
|
-
/* @__PURE__ */ (0,
|
|
10759
|
-
/* @__PURE__ */ (0,
|
|
11047
|
+
/* @__PURE__ */ (0, import_jsx_runtime150.jsxs)("div", { style: { paddingTop: 16 }, children: [
|
|
11048
|
+
/* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_material91.Typography, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
|
|
11049
|
+
/* @__PURE__ */ (0, import_jsx_runtime150.jsx)(import_material91.Typography, { ...typographyProps.username, children: user.username })
|
|
10760
11050
|
] })
|
|
10761
11051
|
] });
|
|
10762
|
-
var UserBust_default = (0,
|
|
11052
|
+
var UserBust_default = (0, import_react56.memo)(UserBust);
|
|
10763
11053
|
|
|
10764
11054
|
// src/components/icons/IconChart.tsx
|
|
10765
|
-
var
|
|
11055
|
+
var import_jsx_runtime151 = require("react/jsx-runtime");
|
|
10766
11056
|
var SvgIconChart = (props) => {
|
|
10767
11057
|
const { fill } = props;
|
|
10768
|
-
return /* @__PURE__ */ (0,
|
|
11058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
|
|
10769
11059
|
"svg",
|
|
10770
11060
|
{
|
|
10771
11061
|
width: "20",
|
|
@@ -10774,7 +11064,7 @@ var SvgIconChart = (props) => {
|
|
|
10774
11064
|
fill: "none",
|
|
10775
11065
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10776
11066
|
...props,
|
|
10777
|
-
children: /* @__PURE__ */ (0,
|
|
11067
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
|
|
10778
11068
|
"path",
|
|
10779
11069
|
{
|
|
10780
11070
|
d: "M2.49967 11.6667L2.91634 11.725L6.72467 7.91667C6.57467 7.375 6.71634 6.75833 7.15801 6.325C7.80801 5.66667 8.85801 5.66667 9.50801 6.325C9.94967 6.75833 10.0913 7.375 9.94134 7.91667L12.083 10.0583L12.4997 10C12.6497 10 12.7913 10 12.9163 10.0583L15.8913 7.08333C15.833 6.95833 15.833 6.81667 15.833 6.66667C15.833 6.22464 16.0086 5.80072 16.3212 5.48816C16.6337 5.17559 17.0576 5 17.4997 5C17.9417 5 18.3656 5.17559 18.6782 5.48816C18.9907 5.80072 19.1663 6.22464 19.1663 6.66667C19.1663 7.10869 18.9907 7.53262 18.6782 7.84518C18.3656 8.15774 17.9417 8.33333 17.4997 8.33333C17.3497 8.33333 17.208 8.33333 17.083 8.275L14.108 11.25C14.1663 11.375 14.1663 11.5167 14.1663 11.6667C14.1663 12.1087 13.9907 12.5326 13.6782 12.8452C13.3656 13.1577 12.9417 13.3333 12.4997 13.3333C12.0576 13.3333 11.6337 13.1577 11.3212 12.8452C11.0086 12.5326 10.833 12.1087 10.833 11.6667L10.8913 11.25L8.74967 9.10833C8.48301 9.16667 8.18301 9.16667 7.91634 9.10833L4.10801 12.9167L4.16634 13.3333C4.16634 13.7754 3.99075 14.1993 3.67819 14.5118C3.36563 14.8244 2.9417 15 2.49967 15C2.05765 15 1.63372 14.8244 1.32116 14.5118C1.0086 14.1993 0.833008 13.7754 0.833008 13.3333C0.833008 12.8913 1.0086 12.4674 1.32116 12.1548C1.63372 11.8423 2.05765 11.6667 2.49967 11.6667Z",
|
|
@@ -10822,6 +11112,8 @@ var IconChart_default = SvgIconChart;
|
|
|
10822
11112
|
FilterOptionsCheckboxes,
|
|
10823
11113
|
FilterSimpleSelector,
|
|
10824
11114
|
FixedFooter,
|
|
11115
|
+
GlobalSearch,
|
|
11116
|
+
GlobalSearchTrigger,
|
|
10825
11117
|
GooglePlacesAddressAutocomplete,
|
|
10826
11118
|
HashtagInput,
|
|
10827
11119
|
Header,
|