@natoora-libs/core 0.2.48-dev-doug-1 → 0.2.49-dev-doug-1
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.
|
@@ -772,8 +772,10 @@ interface PaginationForTableProps {
|
|
|
772
772
|
position?: any;
|
|
773
773
|
style?: any;
|
|
774
774
|
updateFilters: any;
|
|
775
|
+
siblingCount?: number;
|
|
776
|
+
boundaryCount?: number;
|
|
775
777
|
}
|
|
776
|
-
declare const PaginationForTable: ({ appliedFilters, className, page, pagination, position, style, updateFilters, }: PaginationForTableProps) => react_jsx_runtime.JSX.Element;
|
|
778
|
+
declare const PaginationForTable: ({ appliedFilters, className, page, pagination, position, style, updateFilters, siblingCount, boundaryCount }: PaginationForTableProps) => react_jsx_runtime.JSX.Element;
|
|
777
779
|
|
|
778
780
|
interface PhoneInputProps {
|
|
779
781
|
value?: string | null;
|
|
@@ -772,8 +772,10 @@ interface PaginationForTableProps {
|
|
|
772
772
|
position?: any;
|
|
773
773
|
style?: any;
|
|
774
774
|
updateFilters: any;
|
|
775
|
+
siblingCount?: number;
|
|
776
|
+
boundaryCount?: number;
|
|
775
777
|
}
|
|
776
|
-
declare const PaginationForTable: ({ appliedFilters, className, page, pagination, position, style, updateFilters, }: PaginationForTableProps) => react_jsx_runtime.JSX.Element;
|
|
778
|
+
declare const PaginationForTable: ({ appliedFilters, className, page, pagination, position, style, updateFilters, siblingCount, boundaryCount }: PaginationForTableProps) => react_jsx_runtime.JSX.Element;
|
|
777
779
|
|
|
778
780
|
interface PhoneInputProps {
|
|
779
781
|
value?: string | null;
|
package/dist/components/index.js
CHANGED
|
@@ -6380,7 +6380,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6380
6380
|
var NumpadPlus_default = NumpadPlus;
|
|
6381
6381
|
|
|
6382
6382
|
// src/components/Pagination/Pagination.tsx
|
|
6383
|
-
import { Pagination, Paper as Paper5, Typography as Typography22 } from "@mui/material";
|
|
6383
|
+
import { Pagination, Paper as Paper5, Typography as Typography22, Box as Box33 } from "@mui/material";
|
|
6384
6384
|
import { makeStyles as makeStyles33 } from "tss-react/mui";
|
|
6385
6385
|
import { jsx as jsx106, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
6386
6386
|
var paginationHeight = "56px";
|
|
@@ -6395,11 +6395,18 @@ var useStyles33 = makeStyles33()((theme) => ({
|
|
|
6395
6395
|
borderRadius: "0 0 4px 4px",
|
|
6396
6396
|
width: "100%",
|
|
6397
6397
|
height: paginationHeight,
|
|
6398
|
+
overflow: "hidden",
|
|
6398
6399
|
"& > *": {
|
|
6399
6400
|
margin: theme.spacing(2)
|
|
6400
6401
|
},
|
|
6401
|
-
"& .
|
|
6402
|
-
|
|
6402
|
+
"& .MuiPagination-root": {
|
|
6403
|
+
minWidth: 0
|
|
6404
|
+
},
|
|
6405
|
+
"& .MuiPagination-ul": {
|
|
6406
|
+
flexWrap: "nowrap"
|
|
6407
|
+
},
|
|
6408
|
+
"& .MuiPaginationItem-root": {
|
|
6409
|
+
flexShrink: 0
|
|
6403
6410
|
}
|
|
6404
6411
|
},
|
|
6405
6412
|
fixed: {
|
|
@@ -6419,7 +6426,9 @@ var PaginationForTable = ({
|
|
|
6419
6426
|
pagination,
|
|
6420
6427
|
position = "relative",
|
|
6421
6428
|
style,
|
|
6422
|
-
updateFilters
|
|
6429
|
+
updateFilters,
|
|
6430
|
+
siblingCount = 1,
|
|
6431
|
+
boundaryCount = 1
|
|
6423
6432
|
}) => {
|
|
6424
6433
|
const { classes, cx } = useStyles33();
|
|
6425
6434
|
const handleChange = (event, value) => {
|
|
@@ -6427,7 +6436,7 @@ var PaginationForTable = ({
|
|
|
6427
6436
|
};
|
|
6428
6437
|
const isFixed = position === "fixed";
|
|
6429
6438
|
return /* @__PURE__ */ jsx106(Paper5, { children: /* @__PURE__ */ jsxs69(
|
|
6430
|
-
|
|
6439
|
+
Box33,
|
|
6431
6440
|
{
|
|
6432
6441
|
style,
|
|
6433
6442
|
className: cx(classes.root, className, {
|
|
@@ -6438,14 +6447,16 @@ var PaginationForTable = ({
|
|
|
6438
6447
|
"Page: ",
|
|
6439
6448
|
page
|
|
6440
6449
|
] }),
|
|
6441
|
-
/* @__PURE__ */ jsx106(
|
|
6450
|
+
/* @__PURE__ */ jsx106(Box33, { style: { overflowX: "auto", maxWidth: 400 }, children: /* @__PURE__ */ jsx106(
|
|
6442
6451
|
Pagination,
|
|
6443
6452
|
{
|
|
6444
6453
|
count: pagination.num_pages,
|
|
6445
|
-
page,
|
|
6446
|
-
onChange: handleChange
|
|
6454
|
+
page: Number(page),
|
|
6455
|
+
onChange: handleChange,
|
|
6456
|
+
siblingCount,
|
|
6457
|
+
boundaryCount
|
|
6447
6458
|
}
|
|
6448
|
-
)
|
|
6459
|
+
) })
|
|
6449
6460
|
]
|
|
6450
6461
|
}
|
|
6451
6462
|
) });
|
|
@@ -6984,7 +6995,7 @@ var ProductBust = withStyles4(PBust, (theme) => ({
|
|
|
6984
6995
|
var ProductBust_default = ProductBust;
|
|
6985
6996
|
|
|
6986
6997
|
// src/components/RenderAvatar/RenderAvatar.tsx
|
|
6987
|
-
import { Avatar, Badge, Box as
|
|
6998
|
+
import { Avatar, Badge, Box as Box34, Typography as Typography25 } from "@mui/material";
|
|
6988
6999
|
import { withStyles as withStyles5 } from "tss-react/mui";
|
|
6989
7000
|
import { jsx as jsx110, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
6990
7001
|
var RenderAvatar = ({ active }) => {
|
|
@@ -6996,7 +7007,7 @@ var RenderAvatar = ({ active }) => {
|
|
|
6996
7007
|
}
|
|
6997
7008
|
}));
|
|
6998
7009
|
return /* @__PURE__ */ jsxs73(
|
|
6999
|
-
|
|
7010
|
+
Box34,
|
|
7000
7011
|
{
|
|
7001
7012
|
sx: { display: "flex", flexDirection: "column", alignItems: "center" },
|
|
7002
7013
|
children: [
|
|
@@ -7162,7 +7173,7 @@ var RenderContentList = ({
|
|
|
7162
7173
|
var RenderContentList_default = RenderContentList;
|
|
7163
7174
|
|
|
7164
7175
|
// src/components/RowProductCard/RowProductCard.tsx
|
|
7165
|
-
import { Box as
|
|
7176
|
+
import { Box as Box35, Divider as Divider6, Paper as Paper6, Typography as Typography26 } from "@mui/material";
|
|
7166
7177
|
import { makeStyles as makeStyles36 } from "tss-react/mui";
|
|
7167
7178
|
import { Fragment as Fragment11, jsx as jsx112, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
7168
7179
|
var useStyles36 = makeStyles36()((theme) => ({
|
|
@@ -7220,7 +7231,7 @@ var RowProductCard = ({
|
|
|
7220
7231
|
}),
|
|
7221
7232
|
children: [
|
|
7222
7233
|
/* @__PURE__ */ jsxs75(
|
|
7223
|
-
|
|
7234
|
+
Box35,
|
|
7224
7235
|
{
|
|
7225
7236
|
className: classes.upperRow,
|
|
7226
7237
|
sx: {
|
|
@@ -7240,7 +7251,7 @@ var RowProductCard = ({
|
|
|
7240
7251
|
hasColumns ? /* @__PURE__ */ jsxs75(Fragment11, { children: [
|
|
7241
7252
|
/* @__PURE__ */ jsx112(Divider6, { className: classes.divider }),
|
|
7242
7253
|
/* @__PURE__ */ jsx112(
|
|
7243
|
-
|
|
7254
|
+
Box35,
|
|
7244
7255
|
{
|
|
7245
7256
|
sx: {
|
|
7246
7257
|
display: "flex",
|
|
@@ -7262,7 +7273,7 @@ var RowProductCard_default = RowProductCard;
|
|
|
7262
7273
|
|
|
7263
7274
|
// src/components/ScrollableDialog/ScrollableDialog.tsx
|
|
7264
7275
|
import { useEffect as useEffect10, useRef as useRef7, useState as useState13 } from "react";
|
|
7265
|
-
import { Box as
|
|
7276
|
+
import { Box as Box36, Dialog as Dialog4, Divider as Divider7, Fade, Paper as Paper7, Typography as Typography27 } from "@mui/material";
|
|
7266
7277
|
import { makeStyles as makeStyles37 } from "tss-react/mui";
|
|
7267
7278
|
import { jsx as jsx113, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
7268
7279
|
var useStyles37 = makeStyles37()((theme) => ({
|
|
@@ -7374,7 +7385,7 @@ var ScrollableDialog = ({
|
|
|
7374
7385
|
] }),
|
|
7375
7386
|
/* @__PURE__ */ jsx113(Divider7, {}),
|
|
7376
7387
|
footer ? /* @__PURE__ */ jsx113(
|
|
7377
|
-
|
|
7388
|
+
Box36,
|
|
7378
7389
|
{
|
|
7379
7390
|
className: classes.footer,
|
|
7380
7391
|
id: "dialog-footer",
|
|
@@ -7392,7 +7403,7 @@ var ScrollableDialog = ({
|
|
|
7392
7403
|
var ScrollableDialog_default = ScrollableDialog;
|
|
7393
7404
|
|
|
7394
7405
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeader.tsx
|
|
7395
|
-
import { Box as
|
|
7406
|
+
import { Box as Box37, Paper as Paper9 } from "@mui/material";
|
|
7396
7407
|
import { makeStyles as makeStyles39 } from "tss-react/mui";
|
|
7397
7408
|
|
|
7398
7409
|
// src/components/SearchWithFilters/SearchWithFilters.tsx
|
|
@@ -7533,9 +7544,9 @@ var SearchAndFilterHeader = ({
|
|
|
7533
7544
|
searchValue
|
|
7534
7545
|
}) => {
|
|
7535
7546
|
const { classes } = useStyles39();
|
|
7536
|
-
return /* @__PURE__ */ jsx115(Paper9, { children: /* @__PURE__ */ jsxs78(
|
|
7537
|
-
/* @__PURE__ */ jsxs78(
|
|
7538
|
-
/* @__PURE__ */ jsxs78(
|
|
7547
|
+
return /* @__PURE__ */ jsx115(Paper9, { children: /* @__PURE__ */ jsxs78(Box37, { className: classes.wrapper, children: [
|
|
7548
|
+
/* @__PURE__ */ jsxs78(Box37, { className: classes.container, children: [
|
|
7549
|
+
/* @__PURE__ */ jsxs78(Box37, { className: classes.leftSection, children: [
|
|
7539
7550
|
/* @__PURE__ */ jsx115(AppLabel_default, { appName }),
|
|
7540
7551
|
/* @__PURE__ */ jsx115(
|
|
7541
7552
|
SearchWithFilters_default,
|
|
@@ -7548,9 +7559,9 @@ var SearchAndFilterHeader = ({
|
|
|
7548
7559
|
}
|
|
7549
7560
|
)
|
|
7550
7561
|
] }),
|
|
7551
|
-
/* @__PURE__ */ jsx115(
|
|
7562
|
+
/* @__PURE__ */ jsx115(Box37, { children: extraButton })
|
|
7552
7563
|
] }),
|
|
7553
|
-
showFilters ? /* @__PURE__ */ jsx115(
|
|
7564
|
+
showFilters ? /* @__PURE__ */ jsx115(Box37, { children: filtersComponent }) : null,
|
|
7554
7565
|
appliedFiltersComponent
|
|
7555
7566
|
] }) });
|
|
7556
7567
|
};
|
|
@@ -7558,7 +7569,7 @@ var SearchAndFilterHeader_default = SearchAndFilterHeader;
|
|
|
7558
7569
|
|
|
7559
7570
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
|
|
7560
7571
|
import * as React7 from "react";
|
|
7561
|
-
import { Box as
|
|
7572
|
+
import { Box as Box39 } from "@mui/material";
|
|
7562
7573
|
import { makeStyles as makeStyles41 } from "tss-react/mui";
|
|
7563
7574
|
|
|
7564
7575
|
// src/components/SearchWithFilters/SearchWithFiltersForTable.tsx
|
|
@@ -7568,7 +7579,7 @@ import {
|
|
|
7568
7579
|
ArrowDropUp as ArrowDropUpIcon2,
|
|
7569
7580
|
Search as SearchIcon2
|
|
7570
7581
|
} from "@mui/icons-material";
|
|
7571
|
-
import { Box as
|
|
7582
|
+
import { Box as Box38, Button as Button15, Divider as Divider9, InputBase as InputBase3, Paper as Paper10 } from "@mui/material";
|
|
7572
7583
|
import { makeStyles as makeStyles40 } from "tss-react/mui";
|
|
7573
7584
|
import { Fragment as Fragment12, jsx as jsx116, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
7574
7585
|
var useStyles40 = makeStyles40()((theme) => ({
|
|
@@ -7646,7 +7657,7 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
7646
7657
|
};
|
|
7647
7658
|
const ArrowIcon = isOpen ? ArrowDropUpIcon2 : ArrowDropDownIcon2;
|
|
7648
7659
|
return /* @__PURE__ */ jsxs79(Paper10, { className: classes.c_search, children: [
|
|
7649
|
-
/* @__PURE__ */ jsx116(
|
|
7660
|
+
/* @__PURE__ */ jsx116(Box38, { className: classes.c_search__icon, children: /* @__PURE__ */ jsx116(SearchIcon2, { className: classes.icon, fontSize: "small" }) }),
|
|
7650
7661
|
/* @__PURE__ */ jsx116(
|
|
7651
7662
|
InputBase3,
|
|
7652
7663
|
{
|
|
@@ -7714,8 +7725,8 @@ var SearchAndFilterHeaderForTable = (props) => {
|
|
|
7714
7725
|
searchedValue
|
|
7715
7726
|
} = props;
|
|
7716
7727
|
const { classes } = useStyles41();
|
|
7717
|
-
return /* @__PURE__ */ jsxs80(
|
|
7718
|
-
/* @__PURE__ */ jsxs80(
|
|
7728
|
+
return /* @__PURE__ */ jsxs80(Box39, { className: classes.container, children: [
|
|
7729
|
+
/* @__PURE__ */ jsxs80(Box39, { className: classes.leftSection, children: [
|
|
7719
7730
|
/* @__PURE__ */ jsx117(AppLabel_default, { appName }),
|
|
7720
7731
|
/* @__PURE__ */ jsx117(
|
|
7721
7732
|
SearchWithFiltersForTable_default,
|
|
@@ -7729,7 +7740,7 @@ var SearchAndFilterHeaderForTable = (props) => {
|
|
|
7729
7740
|
}
|
|
7730
7741
|
),
|
|
7731
7742
|
copy && /* @__PURE__ */ jsx117(
|
|
7732
|
-
|
|
7743
|
+
Box39,
|
|
7733
7744
|
{
|
|
7734
7745
|
sx: {
|
|
7735
7746
|
margin: 0.5
|
|
@@ -7738,13 +7749,13 @@ var SearchAndFilterHeaderForTable = (props) => {
|
|
|
7738
7749
|
}
|
|
7739
7750
|
)
|
|
7740
7751
|
] }),
|
|
7741
|
-
/* @__PURE__ */ jsx117(
|
|
7752
|
+
/* @__PURE__ */ jsx117(Box39, { children: button })
|
|
7742
7753
|
] });
|
|
7743
7754
|
};
|
|
7744
7755
|
var SearchAndFilterHeaderForTable_default = React7.memo(SearchAndFilterHeaderForTable);
|
|
7745
7756
|
|
|
7746
7757
|
// src/components/SearchHeader/SearchHeader.tsx
|
|
7747
|
-
import { Box as
|
|
7758
|
+
import { Box as Box40, Paper as Paper11 } from "@mui/material";
|
|
7748
7759
|
import { jsx as jsx118, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
7749
7760
|
var SearchHeader = ({
|
|
7750
7761
|
renderButton,
|
|
@@ -7766,7 +7777,7 @@ var SearchHeader = ({
|
|
|
7766
7777
|
},
|
|
7767
7778
|
children: [
|
|
7768
7779
|
/* @__PURE__ */ jsxs81(
|
|
7769
|
-
|
|
7780
|
+
Box40,
|
|
7770
7781
|
{
|
|
7771
7782
|
sx: {
|
|
7772
7783
|
display: "flex",
|
|
@@ -7774,7 +7785,7 @@ var SearchHeader = ({
|
|
|
7774
7785
|
alignItems: "center"
|
|
7775
7786
|
},
|
|
7776
7787
|
children: [
|
|
7777
|
-
/* @__PURE__ */ jsxs81(
|
|
7788
|
+
/* @__PURE__ */ jsxs81(Box40, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
|
|
7778
7789
|
/* @__PURE__ */ jsx118(
|
|
7779
7790
|
SearchFieldDebounced,
|
|
7780
7791
|
{
|
|
@@ -7800,7 +7811,7 @@ var SearchHeader = ({
|
|
|
7800
7811
|
// src/components/SectionName/SectionName.tsx
|
|
7801
7812
|
import HistoryIcon from "@mui/icons-material/History";
|
|
7802
7813
|
import InfoIcon from "@mui/icons-material/Info";
|
|
7803
|
-
import { Box as
|
|
7814
|
+
import { Box as Box41, Divider as Divider10, IconButton as IconButton6, Tooltip as Tooltip10, Typography as Typography28 } from "@mui/material";
|
|
7804
7815
|
import { makeStyles as makeStyles42 } from "tss-react/mui";
|
|
7805
7816
|
import { jsx as jsx119, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
7806
7817
|
var useStyles42 = makeStyles42()((theme) => ({
|
|
@@ -7858,8 +7869,8 @@ var SectionName = ({
|
|
|
7858
7869
|
}
|
|
7859
7870
|
}
|
|
7860
7871
|
};
|
|
7861
|
-
return /* @__PURE__ */ jsxs82(
|
|
7862
|
-
/* @__PURE__ */ jsxs82(
|
|
7872
|
+
return /* @__PURE__ */ jsxs82(Box41, { className: classes.container, children: [
|
|
7873
|
+
/* @__PURE__ */ jsxs82(Box41, { className: classes.titleContainer, children: [
|
|
7863
7874
|
/* @__PURE__ */ jsx119(
|
|
7864
7875
|
Typography28,
|
|
7865
7876
|
{
|
|
@@ -7878,7 +7889,7 @@ var SectionName = ({
|
|
|
7878
7889
|
}
|
|
7879
7890
|
) }) : null
|
|
7880
7891
|
] }),
|
|
7881
|
-
/* @__PURE__ */ jsxs82(
|
|
7892
|
+
/* @__PURE__ */ jsxs82(Box41, { className: classes.actionButtons, children: [
|
|
7882
7893
|
buttonText ? /* @__PURE__ */ jsx119(
|
|
7883
7894
|
ExtendedButton_default,
|
|
7884
7895
|
{
|
|
@@ -7902,7 +7913,7 @@ var SectionName_default = SectionName;
|
|
|
7902
7913
|
// src/components/SmartMultipleSelect/SmartMultipleSelect.tsx
|
|
7903
7914
|
import { useState as useState16 } from "react";
|
|
7904
7915
|
import {
|
|
7905
|
-
Box as
|
|
7916
|
+
Box as Box42,
|
|
7906
7917
|
Checkbox as Checkbox7,
|
|
7907
7918
|
CircularProgress as CircularProgress5,
|
|
7908
7919
|
FormControl as FormControl5,
|
|
@@ -7945,18 +7956,18 @@ var SmartMultipleSelect = ({
|
|
|
7945
7956
|
onChange?.(newValues);
|
|
7946
7957
|
};
|
|
7947
7958
|
const renderMenuContent = () => !menuOptions?.length ? /* @__PURE__ */ jsx120(
|
|
7948
|
-
|
|
7959
|
+
Box42,
|
|
7949
7960
|
{
|
|
7950
7961
|
sx: { display: "flex", justifyContent: "center", alignItems: "center" },
|
|
7951
7962
|
children: /* @__PURE__ */ jsx120(Typography29, { children: emptyMessage })
|
|
7952
7963
|
}
|
|
7953
|
-
) : /* @__PURE__ */ jsx120(
|
|
7964
|
+
) : /* @__PURE__ */ jsx120(Box42, { sx: { display: "flex", flexDirection: "column" }, children: menuOptions?.map((option, index) => {
|
|
7954
7965
|
const selectedValues = values ?? localValues ?? [];
|
|
7955
7966
|
const isSelected = selectedValues.some(
|
|
7956
7967
|
(selected) => selected.value === option.value
|
|
7957
7968
|
);
|
|
7958
7969
|
return /* @__PURE__ */ jsxs83(
|
|
7959
|
-
|
|
7970
|
+
Box42,
|
|
7960
7971
|
{
|
|
7961
7972
|
onClick: () => handleChangeOption(option),
|
|
7962
7973
|
sx: {
|
|
@@ -7999,7 +8010,7 @@ var SmartMultipleSelect = ({
|
|
|
7999
8010
|
return /* @__PURE__ */ jsx120(DynamicOverflowTooltip, { tooltipDescription: valuesString, children: valuesString });
|
|
8000
8011
|
},
|
|
8001
8012
|
children: isLoading ? /* @__PURE__ */ jsx120(
|
|
8002
|
-
|
|
8013
|
+
Box42,
|
|
8003
8014
|
{
|
|
8004
8015
|
sx: {
|
|
8005
8016
|
display: "flex",
|
|
@@ -8242,7 +8253,7 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
8242
8253
|
// src/components/SmartTableHeader/SmartTableHeader.tsx
|
|
8243
8254
|
import { memo as memo22 } from "react";
|
|
8244
8255
|
import {
|
|
8245
|
-
Box as
|
|
8256
|
+
Box as Box43,
|
|
8246
8257
|
Checkbox as Checkbox8,
|
|
8247
8258
|
TableCell,
|
|
8248
8259
|
TableHead,
|
|
@@ -8313,7 +8324,7 @@ var SmartTableHeader = memo22(
|
|
|
8313
8324
|
}
|
|
8314
8325
|
},
|
|
8315
8326
|
children: /* @__PURE__ */ jsxs86(
|
|
8316
|
-
|
|
8327
|
+
Box43,
|
|
8317
8328
|
{
|
|
8318
8329
|
display: "flex",
|
|
8319
8330
|
flexDirection: "row",
|
|
@@ -8371,7 +8382,7 @@ var SmartTableHeader = memo22(
|
|
|
8371
8382
|
// src/components/Table/Table.tsx
|
|
8372
8383
|
import { useLayoutEffect, useState as useState18 } from "react";
|
|
8373
8384
|
import {
|
|
8374
|
-
Box as
|
|
8385
|
+
Box as Box45,
|
|
8375
8386
|
Paper as Paper12,
|
|
8376
8387
|
Table as MUITable,
|
|
8377
8388
|
TableBody,
|
|
@@ -8386,12 +8397,12 @@ import { makeStyles as makeStyles44 } from "tss-react/mui";
|
|
|
8386
8397
|
import { v4 as uuidv4 } from "uuid";
|
|
8387
8398
|
|
|
8388
8399
|
// src/components/TableLoading/TableLoading.tsx
|
|
8389
|
-
import { Box as
|
|
8400
|
+
import { Box as Box44, Skeleton as Skeleton4 } from "@mui/material";
|
|
8390
8401
|
import { jsx as jsx125 } from "react/jsx-runtime";
|
|
8391
8402
|
var TableLoading = ({
|
|
8392
8403
|
rowsPerPage,
|
|
8393
8404
|
rowHeight
|
|
8394
|
-
}) => /* @__PURE__ */ jsx125(
|
|
8405
|
+
}) => /* @__PURE__ */ jsx125(Box44, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ jsx125(
|
|
8395
8406
|
Skeleton4,
|
|
8396
8407
|
{
|
|
8397
8408
|
animation: "pulse",
|
|
@@ -8529,7 +8540,7 @@ var Table = ({
|
|
|
8529
8540
|
}
|
|
8530
8541
|
return rowsComponents;
|
|
8531
8542
|
};
|
|
8532
|
-
return /* @__PURE__ */ jsx126(Paper12, { className: classes.root, children: /* @__PURE__ */ jsx126(
|
|
8543
|
+
return /* @__PURE__ */ jsx126(Paper12, { className: classes.root, children: /* @__PURE__ */ jsx126(Box45, { className: classes.paper, children: isLoading ? /* @__PURE__ */ jsx126(TableLoading_default, { rowHeight, rowsPerPage }) : /* @__PURE__ */ jsx126(TableContainer, { className: classes.container, children: /* @__PURE__ */ jsxs87(MUITable, { size: "medium", stickyHeader: true, children: [
|
|
8533
8544
|
/* @__PURE__ */ jsx126(TableHead2, { className: classes.header, children: /* @__PURE__ */ jsx126(TableRow2, { children: headCells?.map((headCell) => /* @__PURE__ */ jsx126(
|
|
8534
8545
|
TableCell2,
|
|
8535
8546
|
{
|
|
@@ -8562,7 +8573,7 @@ import {
|
|
|
8562
8573
|
useEffect as useEffect13,
|
|
8563
8574
|
useRef as useRef8
|
|
8564
8575
|
} from "react";
|
|
8565
|
-
import { Paper as Paper13, Table as Table2, TableBody as TableBody3, TableContainer as TableContainer2, Box as
|
|
8576
|
+
import { Paper as Paper13, Table as Table2, TableBody as TableBody3, TableContainer as TableContainer2, Box as Box47 } from "@mui/material";
|
|
8566
8577
|
|
|
8567
8578
|
// src/components/TableDesktopLoadingState/TableDesktopLoadingState.tsx
|
|
8568
8579
|
import { Skeleton as Skeleton5, TableCell as TableCell3, TableRow as TableRow3 } from "@mui/material";
|
|
@@ -8736,7 +8747,7 @@ var TableDesktopRows = ({
|
|
|
8736
8747
|
};
|
|
8737
8748
|
|
|
8738
8749
|
// src/components/TableDesktopRowSelectionBar/TableDesktopRowSelectionBar.tsx
|
|
8739
|
-
import { Box as
|
|
8750
|
+
import { Box as Box46, Button as Button17, Typography as Typography33 } from "@mui/material";
|
|
8740
8751
|
import { jsx as jsx130, jsxs as jsxs90 } from "react/jsx-runtime";
|
|
8741
8752
|
var TableDesktopRowSelectionBar = ({
|
|
8742
8753
|
isEveryRowInPageSelected,
|
|
@@ -8757,7 +8768,7 @@ var TableDesktopRowSelectionBar = ({
|
|
|
8757
8768
|
return `${numSelectedRows} row${numSelectedRows > 1 ? "s" : ""} selected.`;
|
|
8758
8769
|
};
|
|
8759
8770
|
return isAnyRowSelected ? /* @__PURE__ */ jsxs90(
|
|
8760
|
-
|
|
8771
|
+
Box46,
|
|
8761
8772
|
{
|
|
8762
8773
|
sx: {
|
|
8763
8774
|
p: 1,
|
|
@@ -8992,7 +9003,7 @@ var TableDesktop = ({
|
|
|
8992
9003
|
);
|
|
8993
9004
|
};
|
|
8994
9005
|
return /* @__PURE__ */ jsx132(
|
|
8995
|
-
|
|
9006
|
+
Box47,
|
|
8996
9007
|
{
|
|
8997
9008
|
sx: {
|
|
8998
9009
|
height,
|
|
@@ -9661,7 +9672,7 @@ var TableDesktopEditableField = ({
|
|
|
9661
9672
|
// src/components/TableDesktopFooter/TableDesktopFooter.tsx
|
|
9662
9673
|
import Refresh3 from "@mui/icons-material/Refresh";
|
|
9663
9674
|
import {
|
|
9664
|
-
Box as
|
|
9675
|
+
Box as Box48,
|
|
9665
9676
|
Button as Button18,
|
|
9666
9677
|
MenuItem as MenuItem4,
|
|
9667
9678
|
Pagination as Pagination2,
|
|
@@ -9681,7 +9692,7 @@ var TableDesktopFooter = ({
|
|
|
9681
9692
|
isFetching
|
|
9682
9693
|
}) => {
|
|
9683
9694
|
return /* @__PURE__ */ jsxs93(
|
|
9684
|
-
|
|
9695
|
+
Box48,
|
|
9685
9696
|
{
|
|
9686
9697
|
sx: {
|
|
9687
9698
|
py: 1,
|
|
@@ -9713,7 +9724,7 @@ var TableDesktopFooter = ({
|
|
|
9713
9724
|
)
|
|
9714
9725
|
}
|
|
9715
9726
|
) : null,
|
|
9716
|
-
/* @__PURE__ */ jsxs93(
|
|
9727
|
+
/* @__PURE__ */ jsxs93(Box48, { sx: { display: "flex", ml: "auto", py: 1 }, children: [
|
|
9717
9728
|
pageSize && pageSizeOptions && onPageSizeChange ? /* @__PURE__ */ jsxs93(Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
|
|
9718
9729
|
/* @__PURE__ */ jsx139(Typography35, { fontSize: 12, children: "Rows per page:" }),
|
|
9719
9730
|
/* @__PURE__ */ jsx139(
|
|
@@ -9853,7 +9864,7 @@ import Download from "@mui/icons-material/Download";
|
|
|
9853
9864
|
import KeyboardArrowLeft2 from "@mui/icons-material/KeyboardArrowLeft";
|
|
9854
9865
|
import KeyboardArrowRight2 from "@mui/icons-material/KeyboardArrowRight";
|
|
9855
9866
|
import {
|
|
9856
|
-
Box as
|
|
9867
|
+
Box as Box49,
|
|
9857
9868
|
Button as Button19,
|
|
9858
9869
|
Divider as Divider11,
|
|
9859
9870
|
FormControlLabel as FormControlLabel7,
|
|
@@ -9917,7 +9928,7 @@ var TableDesktopToolbar = ({
|
|
|
9917
9928
|
});
|
|
9918
9929
|
};
|
|
9919
9930
|
return /* @__PURE__ */ jsxs95(
|
|
9920
|
-
|
|
9931
|
+
Box49,
|
|
9921
9932
|
{
|
|
9922
9933
|
sx: {
|
|
9923
9934
|
borderBottom: "1px solid",
|
|
@@ -9926,7 +9937,7 @@ var TableDesktopToolbar = ({
|
|
|
9926
9937
|
},
|
|
9927
9938
|
children: [
|
|
9928
9939
|
/* @__PURE__ */ jsxs95(
|
|
9929
|
-
|
|
9940
|
+
Box49,
|
|
9930
9941
|
{
|
|
9931
9942
|
sx: {
|
|
9932
9943
|
py: 1,
|
|
@@ -9938,7 +9949,7 @@ var TableDesktopToolbar = ({
|
|
|
9938
9949
|
},
|
|
9939
9950
|
children: [
|
|
9940
9951
|
/* @__PURE__ */ jsxs95(
|
|
9941
|
-
|
|
9952
|
+
Box49,
|
|
9942
9953
|
{
|
|
9943
9954
|
sx: {
|
|
9944
9955
|
py: 1,
|
|
@@ -9986,7 +9997,7 @@ var TableDesktopToolbar = ({
|
|
|
9986
9997
|
}
|
|
9987
9998
|
),
|
|
9988
9999
|
/* @__PURE__ */ jsx141(
|
|
9989
|
-
|
|
10000
|
+
Box49,
|
|
9990
10001
|
{
|
|
9991
10002
|
ref: scrollRef,
|
|
9992
10003
|
sx: {
|
|
@@ -10008,7 +10019,7 @@ var TableDesktopToolbar = ({
|
|
|
10008
10019
|
return null;
|
|
10009
10020
|
}
|
|
10010
10021
|
return editableCellType && /* @__PURE__ */ jsx141(
|
|
10011
|
-
|
|
10022
|
+
Box49,
|
|
10012
10023
|
{
|
|
10013
10024
|
sx: { width, flex: "0 0 auto" },
|
|
10014
10025
|
children: /* @__PURE__ */ jsx141(
|
|
@@ -10061,7 +10072,7 @@ var TableDesktopToolbar = ({
|
|
|
10061
10072
|
children: "APPLY"
|
|
10062
10073
|
}
|
|
10063
10074
|
)
|
|
10064
|
-
] }) : /* @__PURE__ */ jsxs95(
|
|
10075
|
+
] }) : /* @__PURE__ */ jsxs95(Box49, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
10065
10076
|
renderInfoIcons,
|
|
10066
10077
|
renderExportCsvDialog ? /* @__PURE__ */ jsx141(Tooltip13, { title: "Download List", children: /* @__PURE__ */ jsx141("span", { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ jsx141(
|
|
10067
10078
|
IconButton8,
|
|
@@ -10176,7 +10187,7 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
10176
10187
|
var TableHeader_default = memo23(TableHeader);
|
|
10177
10188
|
|
|
10178
10189
|
// src/components/TextDivider/TextDivider.tsx
|
|
10179
|
-
import { Box as
|
|
10190
|
+
import { Box as Box50, Typography as Typography37, Divider as Divider12, Button as Button20 } from "@mui/material";
|
|
10180
10191
|
import { makeStyles as makeStyles47 } from "tss-react/mui";
|
|
10181
10192
|
import { jsx as jsx143, jsxs as jsxs96 } from "react/jsx-runtime";
|
|
10182
10193
|
var useStyles47 = makeStyles47()(() => ({
|
|
@@ -10216,7 +10227,7 @@ var TextDivider = ({
|
|
|
10216
10227
|
const { classes } = useStyles47();
|
|
10217
10228
|
const iconColor = color ?? colors.neutral900;
|
|
10218
10229
|
return /* @__PURE__ */ jsxs96(
|
|
10219
|
-
|
|
10230
|
+
Box50,
|
|
10220
10231
|
{
|
|
10221
10232
|
display: "flex",
|
|
10222
10233
|
alignItems: "center",
|
|
@@ -10224,7 +10235,7 @@ var TextDivider = ({
|
|
|
10224
10235
|
className: classes.container,
|
|
10225
10236
|
children: [
|
|
10226
10237
|
/* @__PURE__ */ jsx143(Divider12, { className: classes.leftDivider }),
|
|
10227
|
-
/* @__PURE__ */ jsx143(Button20, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs96(
|
|
10238
|
+
/* @__PURE__ */ jsx143(Button20, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs96(Box50, { className: classes.center, children: [
|
|
10228
10239
|
Icon2 && iconPosition === "left" && /* @__PURE__ */ jsx143(Icon2, { className: classes.icon, style: { color: iconColor } }),
|
|
10229
10240
|
/* @__PURE__ */ jsx143(
|
|
10230
10241
|
Typography37,
|
|
@@ -10351,7 +10362,7 @@ var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
|
10351
10362
|
|
|
10352
10363
|
// src/components/TheToolbar/TheToolbar.tsx
|
|
10353
10364
|
import { memo as memo24 } from "react";
|
|
10354
|
-
import { AppBar, Box as
|
|
10365
|
+
import { AppBar, Box as Box51, Toolbar } from "@mui/material";
|
|
10355
10366
|
import { makeStyles as makeStyles49 } from "tss-react/mui";
|
|
10356
10367
|
import { jsx as jsx145, jsxs as jsxs97 } from "react/jsx-runtime";
|
|
10357
10368
|
var useStyles49 = makeStyles49()((theme) => ({
|
|
@@ -10378,9 +10389,9 @@ var TheToolbar = ({
|
|
|
10378
10389
|
isAuthenticated = true
|
|
10379
10390
|
}) => {
|
|
10380
10391
|
const { classes } = useStyles49();
|
|
10381
|
-
return /* @__PURE__ */ jsxs97(
|
|
10392
|
+
return /* @__PURE__ */ jsxs97(Box51, { children: [
|
|
10382
10393
|
/* @__PURE__ */ jsx145(AppBar, { children: /* @__PURE__ */ jsxs97(Toolbar, { className: classes.topBar, children: [
|
|
10383
|
-
isAuthenticated ? /* @__PURE__ */ jsx145(
|
|
10394
|
+
isAuthenticated ? /* @__PURE__ */ jsx145(Box51, { sx: { flexShrink: 0, display: "flex" }, children: /* @__PURE__ */ jsx145(
|
|
10384
10395
|
RoundButton_default,
|
|
10385
10396
|
{
|
|
10386
10397
|
className: classes.menuButton,
|
|
@@ -10389,7 +10400,7 @@ var TheToolbar = ({
|
|
|
10389
10400
|
onClick: handleOpen
|
|
10390
10401
|
}
|
|
10391
10402
|
) }) : null,
|
|
10392
|
-
/* @__PURE__ */ jsx145(
|
|
10403
|
+
/* @__PURE__ */ jsx145(Box51, { sx: { display: { xs: "none", lg: "block" }, flexShrink: 0 }, children: /* @__PURE__ */ jsx145(
|
|
10393
10404
|
CompanyLogo_default,
|
|
10394
10405
|
{
|
|
10395
10406
|
size: "small",
|
|
@@ -10399,7 +10410,7 @@ var TheToolbar = ({
|
|
|
10399
10410
|
}
|
|
10400
10411
|
) }),
|
|
10401
10412
|
/* @__PURE__ */ jsx145(
|
|
10402
|
-
|
|
10413
|
+
Box51,
|
|
10403
10414
|
{
|
|
10404
10415
|
ml: { xs: 0, lg: 2 },
|
|
10405
10416
|
sx: { flexShrink: 0, display: { xs: "none", xl: "block" } },
|
|
@@ -10407,7 +10418,7 @@ var TheToolbar = ({
|
|
|
10407
10418
|
}
|
|
10408
10419
|
),
|
|
10409
10420
|
centerSection ? /* @__PURE__ */ jsx145(
|
|
10410
|
-
|
|
10421
|
+
Box51,
|
|
10411
10422
|
{
|
|
10412
10423
|
sx: {
|
|
10413
10424
|
flexGrow: 1,
|
|
@@ -10417,8 +10428,8 @@ var TheToolbar = ({
|
|
|
10417
10428
|
},
|
|
10418
10429
|
children: centerSection
|
|
10419
10430
|
}
|
|
10420
|
-
) : /* @__PURE__ */ jsx145(
|
|
10421
|
-
/* @__PURE__ */ jsx145(
|
|
10431
|
+
) : /* @__PURE__ */ jsx145(Box51, { sx: { flexGrow: 1 } }),
|
|
10432
|
+
/* @__PURE__ */ jsx145(Box51, { sx: { flexShrink: 0, display: { xs: "none", xl: "block" } }, children: rightSection })
|
|
10422
10433
|
] }) }),
|
|
10423
10434
|
LeftDrawer
|
|
10424
10435
|
] });
|
|
@@ -10471,7 +10482,7 @@ import {
|
|
|
10471
10482
|
Typography as Typography38,
|
|
10472
10483
|
Dialog as Dialog5,
|
|
10473
10484
|
Backdrop,
|
|
10474
|
-
Box as
|
|
10485
|
+
Box as Box52,
|
|
10475
10486
|
Divider as Divider13,
|
|
10476
10487
|
Paper as Paper14,
|
|
10477
10488
|
Fade as Fade2
|
|
@@ -10518,9 +10529,9 @@ var TwoButtonDialog = ({
|
|
|
10518
10529
|
BackdropComponent: Backdrop,
|
|
10519
10530
|
BackdropProps: { timeout: 500 },
|
|
10520
10531
|
children: /* @__PURE__ */ jsx147(Fade2, { in: open, children: /* @__PURE__ */ jsxs98(Paper14, { className: classes.paper, children: [
|
|
10521
|
-
/* @__PURE__ */ jsxs98(
|
|
10532
|
+
/* @__PURE__ */ jsxs98(Box52, { className: classes.mb, children: [
|
|
10522
10533
|
/* @__PURE__ */ jsx147(Typography38, { variant: "h5", component: "div", children: /* @__PURE__ */ jsx147(
|
|
10523
|
-
|
|
10534
|
+
Box52,
|
|
10524
10535
|
{
|
|
10525
10536
|
sx: {
|
|
10526
10537
|
fontWeight: 600
|
|
@@ -10529,7 +10540,7 @@ var TwoButtonDialog = ({
|
|
|
10529
10540
|
}
|
|
10530
10541
|
) }),
|
|
10531
10542
|
/* @__PURE__ */ jsxs98(
|
|
10532
|
-
|
|
10543
|
+
Box52,
|
|
10533
10544
|
{
|
|
10534
10545
|
className: classes.mt,
|
|
10535
10546
|
sx: {
|
|
@@ -10543,7 +10554,7 @@ var TwoButtonDialog = ({
|
|
|
10543
10554
|
)
|
|
10544
10555
|
] }),
|
|
10545
10556
|
/* @__PURE__ */ jsx147(Divider13, {}),
|
|
10546
|
-
/* @__PURE__ */ jsxs98(
|
|
10557
|
+
/* @__PURE__ */ jsxs98(Box52, { className: classes.buttonContainer, children: [
|
|
10547
10558
|
/* @__PURE__ */ jsx147(
|
|
10548
10559
|
FilledButton_default,
|
|
10549
10560
|
{
|