@natoora-libs/core 0.2.45 → 0.2.46
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 +21 -12
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +4 -3
- package/dist/components/index.d.ts +4 -3
- package/dist/components/index.js +90 -81
- package/dist/components/index.js.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -928,12 +930,11 @@ type SearchHeaderProps = {
|
|
|
928
930
|
children?: ReactNode;
|
|
929
931
|
onSearch?: (value: string) => void;
|
|
930
932
|
value?: string;
|
|
931
|
-
initialValue?: string;
|
|
932
933
|
onChange?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
933
934
|
onKeyDown?: (e: React__default.KeyboardEvent<HTMLInputElement>) => void;
|
|
934
935
|
width?: number;
|
|
935
936
|
};
|
|
936
|
-
declare const SearchHeader: ({ renderButton, renderExtraAction, children, onSearch, value, onChange, onKeyDown, width,
|
|
937
|
+
declare const SearchHeader: ({ renderButton, renderExtraAction, children, onSearch, value, onChange, onKeyDown, width, }: SearchHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
937
938
|
|
|
938
939
|
interface ISearchWithFiltersProps {
|
|
939
940
|
enterPressedInSearch?: () => void;
|
|
@@ -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;
|
|
@@ -928,12 +930,11 @@ type SearchHeaderProps = {
|
|
|
928
930
|
children?: ReactNode;
|
|
929
931
|
onSearch?: (value: string) => void;
|
|
930
932
|
value?: string;
|
|
931
|
-
initialValue?: string;
|
|
932
933
|
onChange?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
933
934
|
onKeyDown?: (e: React__default.KeyboardEvent<HTMLInputElement>) => void;
|
|
934
935
|
width?: number;
|
|
935
936
|
};
|
|
936
|
-
declare const SearchHeader: ({ renderButton, renderExtraAction, children, onSearch, value, onChange, onKeyDown, width,
|
|
937
|
+
declare const SearchHeader: ({ renderButton, renderExtraAction, children, onSearch, value, onChange, onKeyDown, width, }: SearchHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
937
938
|
|
|
938
939
|
interface ISearchWithFiltersProps {
|
|
939
940
|
enterPressedInSearch?: () => void;
|
package/dist/components/index.js
CHANGED
|
@@ -6669,7 +6669,7 @@ var NumpadPlus = ({ handleClick, handleUndo }) => {
|
|
|
6669
6669
|
var NumpadPlus_default = NumpadPlus;
|
|
6670
6670
|
|
|
6671
6671
|
// src/components/Pagination/Pagination.tsx
|
|
6672
|
-
import { Pagination, Paper as Paper5, Typography as Typography22 } from "@mui/material";
|
|
6672
|
+
import { Pagination, Paper as Paper5, Typography as Typography22, Box as Box33 } from "@mui/material";
|
|
6673
6673
|
import { makeStyles as makeStyles33 } from "tss-react/mui";
|
|
6674
6674
|
import { jsx as jsx106, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
6675
6675
|
var paginationHeight = "56px";
|
|
@@ -6684,11 +6684,18 @@ var useStyles33 = makeStyles33()((theme) => ({
|
|
|
6684
6684
|
borderRadius: "0 0 4px 4px",
|
|
6685
6685
|
width: "100%",
|
|
6686
6686
|
height: paginationHeight,
|
|
6687
|
+
overflow: "hidden",
|
|
6687
6688
|
"& > *": {
|
|
6688
6689
|
margin: theme.spacing(2)
|
|
6689
6690
|
},
|
|
6690
|
-
"& .
|
|
6691
|
-
|
|
6691
|
+
"& .MuiPagination-root": {
|
|
6692
|
+
minWidth: 0
|
|
6693
|
+
},
|
|
6694
|
+
"& .MuiPagination-ul": {
|
|
6695
|
+
flexWrap: "nowrap"
|
|
6696
|
+
},
|
|
6697
|
+
"& .MuiPaginationItem-root": {
|
|
6698
|
+
flexShrink: 0
|
|
6692
6699
|
}
|
|
6693
6700
|
},
|
|
6694
6701
|
fixed: {
|
|
@@ -6708,7 +6715,9 @@ var PaginationForTable = ({
|
|
|
6708
6715
|
pagination,
|
|
6709
6716
|
position = "relative",
|
|
6710
6717
|
style,
|
|
6711
|
-
updateFilters
|
|
6718
|
+
updateFilters,
|
|
6719
|
+
siblingCount = 1,
|
|
6720
|
+
boundaryCount = 1
|
|
6712
6721
|
}) => {
|
|
6713
6722
|
const { classes, cx } = useStyles33();
|
|
6714
6723
|
const handleChange = (event, value) => {
|
|
@@ -6716,7 +6725,7 @@ var PaginationForTable = ({
|
|
|
6716
6725
|
};
|
|
6717
6726
|
const isFixed = position === "fixed";
|
|
6718
6727
|
return /* @__PURE__ */ jsx106(Paper5, { children: /* @__PURE__ */ jsxs69(
|
|
6719
|
-
|
|
6728
|
+
Box33,
|
|
6720
6729
|
{
|
|
6721
6730
|
style,
|
|
6722
6731
|
className: cx(classes.root, className, {
|
|
@@ -6727,14 +6736,16 @@ var PaginationForTable = ({
|
|
|
6727
6736
|
"Page: ",
|
|
6728
6737
|
page
|
|
6729
6738
|
] }),
|
|
6730
|
-
/* @__PURE__ */ jsx106(
|
|
6739
|
+
/* @__PURE__ */ jsx106(Box33, { style: { overflowX: "auto", maxWidth: 400 }, children: /* @__PURE__ */ jsx106(
|
|
6731
6740
|
Pagination,
|
|
6732
6741
|
{
|
|
6733
6742
|
count: pagination.num_pages,
|
|
6734
|
-
page,
|
|
6735
|
-
onChange: handleChange
|
|
6743
|
+
page: Number(page),
|
|
6744
|
+
onChange: handleChange,
|
|
6745
|
+
siblingCount,
|
|
6746
|
+
boundaryCount
|
|
6736
6747
|
}
|
|
6737
|
-
)
|
|
6748
|
+
) })
|
|
6738
6749
|
]
|
|
6739
6750
|
}
|
|
6740
6751
|
) });
|
|
@@ -7273,7 +7284,7 @@ var ProductBust = withStyles4(PBust, (theme) => ({
|
|
|
7273
7284
|
var ProductBust_default = ProductBust;
|
|
7274
7285
|
|
|
7275
7286
|
// src/components/RenderAvatar/RenderAvatar.tsx
|
|
7276
|
-
import { Avatar, Badge, Box as
|
|
7287
|
+
import { Avatar, Badge, Box as Box34, Typography as Typography25 } from "@mui/material";
|
|
7277
7288
|
import { withStyles as withStyles5 } from "tss-react/mui";
|
|
7278
7289
|
import { jsx as jsx110, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
7279
7290
|
var RenderAvatar = ({ active }) => {
|
|
@@ -7285,7 +7296,7 @@ var RenderAvatar = ({ active }) => {
|
|
|
7285
7296
|
}
|
|
7286
7297
|
}));
|
|
7287
7298
|
return /* @__PURE__ */ jsxs73(
|
|
7288
|
-
|
|
7299
|
+
Box34,
|
|
7289
7300
|
{
|
|
7290
7301
|
sx: { display: "flex", flexDirection: "column", alignItems: "center" },
|
|
7291
7302
|
children: [
|
|
@@ -7451,7 +7462,7 @@ var RenderContentList = ({
|
|
|
7451
7462
|
var RenderContentList_default = RenderContentList;
|
|
7452
7463
|
|
|
7453
7464
|
// src/components/RowProductCard/RowProductCard.tsx
|
|
7454
|
-
import { Box as
|
|
7465
|
+
import { Box as Box35, Divider as Divider6, Paper as Paper6, Typography as Typography26 } from "@mui/material";
|
|
7455
7466
|
import { makeStyles as makeStyles36 } from "tss-react/mui";
|
|
7456
7467
|
import { Fragment as Fragment11, jsx as jsx112, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
7457
7468
|
var useStyles36 = makeStyles36()((theme) => ({
|
|
@@ -7509,7 +7520,7 @@ var RowProductCard = ({
|
|
|
7509
7520
|
}),
|
|
7510
7521
|
children: [
|
|
7511
7522
|
/* @__PURE__ */ jsxs75(
|
|
7512
|
-
|
|
7523
|
+
Box35,
|
|
7513
7524
|
{
|
|
7514
7525
|
className: classes.upperRow,
|
|
7515
7526
|
sx: {
|
|
@@ -7529,7 +7540,7 @@ var RowProductCard = ({
|
|
|
7529
7540
|
hasColumns ? /* @__PURE__ */ jsxs75(Fragment11, { children: [
|
|
7530
7541
|
/* @__PURE__ */ jsx112(Divider6, { className: classes.divider }),
|
|
7531
7542
|
/* @__PURE__ */ jsx112(
|
|
7532
|
-
|
|
7543
|
+
Box35,
|
|
7533
7544
|
{
|
|
7534
7545
|
sx: {
|
|
7535
7546
|
display: "flex",
|
|
@@ -7551,7 +7562,7 @@ var RowProductCard_default = RowProductCard;
|
|
|
7551
7562
|
|
|
7552
7563
|
// src/components/ScrollableDialog/ScrollableDialog.tsx
|
|
7553
7564
|
import { useEffect as useEffect10, useRef as useRef7, useState as useState13 } from "react";
|
|
7554
|
-
import { Box as
|
|
7565
|
+
import { Box as Box36, Dialog as Dialog4, Divider as Divider7, Fade, Paper as Paper7, Typography as Typography27 } from "@mui/material";
|
|
7555
7566
|
import { makeStyles as makeStyles37 } from "tss-react/mui";
|
|
7556
7567
|
import { jsx as jsx113, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
7557
7568
|
var useStyles37 = makeStyles37()((theme) => ({
|
|
@@ -7663,7 +7674,7 @@ var ScrollableDialog = ({
|
|
|
7663
7674
|
] }),
|
|
7664
7675
|
/* @__PURE__ */ jsx113(Divider7, {}),
|
|
7665
7676
|
footer ? /* @__PURE__ */ jsx113(
|
|
7666
|
-
|
|
7677
|
+
Box36,
|
|
7667
7678
|
{
|
|
7668
7679
|
className: classes.footer,
|
|
7669
7680
|
id: "dialog-footer",
|
|
@@ -7681,7 +7692,7 @@ var ScrollableDialog = ({
|
|
|
7681
7692
|
var ScrollableDialog_default = ScrollableDialog;
|
|
7682
7693
|
|
|
7683
7694
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeader.tsx
|
|
7684
|
-
import { Box as
|
|
7695
|
+
import { Box as Box37, Paper as Paper9 } from "@mui/material";
|
|
7685
7696
|
import { makeStyles as makeStyles39 } from "tss-react/mui";
|
|
7686
7697
|
|
|
7687
7698
|
// src/components/SearchWithFilters/SearchWithFilters.tsx
|
|
@@ -7822,9 +7833,9 @@ var SearchAndFilterHeader = ({
|
|
|
7822
7833
|
searchValue
|
|
7823
7834
|
}) => {
|
|
7824
7835
|
const { classes } = useStyles39();
|
|
7825
|
-
return /* @__PURE__ */ jsx115(Paper9, { children: /* @__PURE__ */ jsxs78(
|
|
7826
|
-
/* @__PURE__ */ jsxs78(
|
|
7827
|
-
/* @__PURE__ */ jsxs78(
|
|
7836
|
+
return /* @__PURE__ */ jsx115(Paper9, { children: /* @__PURE__ */ jsxs78(Box37, { className: classes.wrapper, children: [
|
|
7837
|
+
/* @__PURE__ */ jsxs78(Box37, { className: classes.container, children: [
|
|
7838
|
+
/* @__PURE__ */ jsxs78(Box37, { className: classes.leftSection, children: [
|
|
7828
7839
|
/* @__PURE__ */ jsx115(AppLabel_default, { appName }),
|
|
7829
7840
|
/* @__PURE__ */ jsx115(
|
|
7830
7841
|
SearchWithFilters_default,
|
|
@@ -7837,9 +7848,9 @@ var SearchAndFilterHeader = ({
|
|
|
7837
7848
|
}
|
|
7838
7849
|
)
|
|
7839
7850
|
] }),
|
|
7840
|
-
/* @__PURE__ */ jsx115(
|
|
7851
|
+
/* @__PURE__ */ jsx115(Box37, { children: extraButton })
|
|
7841
7852
|
] }),
|
|
7842
|
-
showFilters ? /* @__PURE__ */ jsx115(
|
|
7853
|
+
showFilters ? /* @__PURE__ */ jsx115(Box37, { children: filtersComponent }) : null,
|
|
7843
7854
|
appliedFiltersComponent
|
|
7844
7855
|
] }) });
|
|
7845
7856
|
};
|
|
@@ -7847,7 +7858,7 @@ var SearchAndFilterHeader_default = SearchAndFilterHeader;
|
|
|
7847
7858
|
|
|
7848
7859
|
// src/components/SearchAndFilterHeader/SearchAndFilterHeaderForTable.tsx
|
|
7849
7860
|
import * as React7 from "react";
|
|
7850
|
-
import { Box as
|
|
7861
|
+
import { Box as Box39 } from "@mui/material";
|
|
7851
7862
|
import { makeStyles as makeStyles41 } from "tss-react/mui";
|
|
7852
7863
|
|
|
7853
7864
|
// src/components/SearchWithFilters/SearchWithFiltersForTable.tsx
|
|
@@ -7857,7 +7868,7 @@ import {
|
|
|
7857
7868
|
ArrowDropUp as ArrowDropUpIcon2,
|
|
7858
7869
|
Search as SearchIcon2
|
|
7859
7870
|
} from "@mui/icons-material";
|
|
7860
|
-
import { Box as
|
|
7871
|
+
import { Box as Box38, Button as Button15, Divider as Divider9, InputBase as InputBase3, Paper as Paper10 } from "@mui/material";
|
|
7861
7872
|
import { makeStyles as makeStyles40 } from "tss-react/mui";
|
|
7862
7873
|
import { Fragment as Fragment12, jsx as jsx116, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
7863
7874
|
var useStyles40 = makeStyles40()((theme) => ({
|
|
@@ -7935,7 +7946,7 @@ var SearchWithFiltersForTable = (props) => {
|
|
|
7935
7946
|
};
|
|
7936
7947
|
const ArrowIcon = isOpen ? ArrowDropUpIcon2 : ArrowDropDownIcon2;
|
|
7937
7948
|
return /* @__PURE__ */ jsxs79(Paper10, { className: classes.c_search, children: [
|
|
7938
|
-
/* @__PURE__ */ jsx116(
|
|
7949
|
+
/* @__PURE__ */ jsx116(Box38, { className: classes.c_search__icon, children: /* @__PURE__ */ jsx116(SearchIcon2, { className: classes.icon, fontSize: "small" }) }),
|
|
7939
7950
|
/* @__PURE__ */ jsx116(
|
|
7940
7951
|
InputBase3,
|
|
7941
7952
|
{
|
|
@@ -8003,8 +8014,8 @@ var SearchAndFilterHeaderForTable = (props) => {
|
|
|
8003
8014
|
searchedValue
|
|
8004
8015
|
} = props;
|
|
8005
8016
|
const { classes } = useStyles41();
|
|
8006
|
-
return /* @__PURE__ */ jsxs80(
|
|
8007
|
-
/* @__PURE__ */ jsxs80(
|
|
8017
|
+
return /* @__PURE__ */ jsxs80(Box39, { className: classes.container, children: [
|
|
8018
|
+
/* @__PURE__ */ jsxs80(Box39, { className: classes.leftSection, children: [
|
|
8008
8019
|
/* @__PURE__ */ jsx117(AppLabel_default, { appName }),
|
|
8009
8020
|
/* @__PURE__ */ jsx117(
|
|
8010
8021
|
SearchWithFiltersForTable_default,
|
|
@@ -8018,7 +8029,7 @@ var SearchAndFilterHeaderForTable = (props) => {
|
|
|
8018
8029
|
}
|
|
8019
8030
|
),
|
|
8020
8031
|
copy && /* @__PURE__ */ jsx117(
|
|
8021
|
-
|
|
8032
|
+
Box39,
|
|
8022
8033
|
{
|
|
8023
8034
|
sx: {
|
|
8024
8035
|
margin: 0.5
|
|
@@ -8027,13 +8038,13 @@ var SearchAndFilterHeaderForTable = (props) => {
|
|
|
8027
8038
|
}
|
|
8028
8039
|
)
|
|
8029
8040
|
] }),
|
|
8030
|
-
/* @__PURE__ */ jsx117(
|
|
8041
|
+
/* @__PURE__ */ jsx117(Box39, { children: button })
|
|
8031
8042
|
] });
|
|
8032
8043
|
};
|
|
8033
8044
|
var SearchAndFilterHeaderForTable_default = React7.memo(SearchAndFilterHeaderForTable);
|
|
8034
8045
|
|
|
8035
8046
|
// src/components/SearchHeader/SearchHeader.tsx
|
|
8036
|
-
import { Box as
|
|
8047
|
+
import { Box as Box40, Paper as Paper11 } from "@mui/material";
|
|
8037
8048
|
import { jsx as jsx118, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
8038
8049
|
var SearchHeader = ({
|
|
8039
8050
|
renderButton,
|
|
@@ -8043,8 +8054,7 @@ var SearchHeader = ({
|
|
|
8043
8054
|
value,
|
|
8044
8055
|
onChange,
|
|
8045
8056
|
onKeyDown,
|
|
8046
|
-
width
|
|
8047
|
-
initialValue
|
|
8057
|
+
width
|
|
8048
8058
|
}) => {
|
|
8049
8059
|
return /* @__PURE__ */ jsxs81(
|
|
8050
8060
|
Paper11,
|
|
@@ -8056,7 +8066,7 @@ var SearchHeader = ({
|
|
|
8056
8066
|
},
|
|
8057
8067
|
children: [
|
|
8058
8068
|
/* @__PURE__ */ jsxs81(
|
|
8059
|
-
|
|
8069
|
+
Box40,
|
|
8060
8070
|
{
|
|
8061
8071
|
sx: {
|
|
8062
8072
|
display: "flex",
|
|
@@ -8064,7 +8074,7 @@ var SearchHeader = ({
|
|
|
8064
8074
|
alignItems: "center"
|
|
8065
8075
|
},
|
|
8066
8076
|
children: [
|
|
8067
|
-
/* @__PURE__ */ jsxs81(
|
|
8077
|
+
/* @__PURE__ */ jsxs81(Box40, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
|
|
8068
8078
|
/* @__PURE__ */ jsx118(
|
|
8069
8079
|
SearchFieldDebounced,
|
|
8070
8080
|
{
|
|
@@ -8072,8 +8082,7 @@ var SearchHeader = ({
|
|
|
8072
8082
|
onSearch,
|
|
8073
8083
|
value,
|
|
8074
8084
|
onChange,
|
|
8075
|
-
onKeyDown
|
|
8076
|
-
initialValue
|
|
8085
|
+
onKeyDown
|
|
8077
8086
|
}
|
|
8078
8087
|
),
|
|
8079
8088
|
renderExtraAction
|
|
@@ -8091,7 +8100,7 @@ var SearchHeader = ({
|
|
|
8091
8100
|
// src/components/SectionName/SectionName.tsx
|
|
8092
8101
|
import HistoryIcon from "@mui/icons-material/History";
|
|
8093
8102
|
import InfoIcon from "@mui/icons-material/Info";
|
|
8094
|
-
import { Box as
|
|
8103
|
+
import { Box as Box41, Divider as Divider10, IconButton as IconButton6, Tooltip as Tooltip10, Typography as Typography28 } from "@mui/material";
|
|
8095
8104
|
import { makeStyles as makeStyles42 } from "tss-react/mui";
|
|
8096
8105
|
import { jsx as jsx119, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
8097
8106
|
var useStyles42 = makeStyles42()((theme) => ({
|
|
@@ -8149,8 +8158,8 @@ var SectionName = ({
|
|
|
8149
8158
|
}
|
|
8150
8159
|
}
|
|
8151
8160
|
};
|
|
8152
|
-
return /* @__PURE__ */ jsxs82(
|
|
8153
|
-
/* @__PURE__ */ jsxs82(
|
|
8161
|
+
return /* @__PURE__ */ jsxs82(Box41, { className: classes.container, children: [
|
|
8162
|
+
/* @__PURE__ */ jsxs82(Box41, { className: classes.titleContainer, children: [
|
|
8154
8163
|
/* @__PURE__ */ jsx119(
|
|
8155
8164
|
Typography28,
|
|
8156
8165
|
{
|
|
@@ -8169,7 +8178,7 @@ var SectionName = ({
|
|
|
8169
8178
|
}
|
|
8170
8179
|
) }) : null
|
|
8171
8180
|
] }),
|
|
8172
|
-
/* @__PURE__ */ jsxs82(
|
|
8181
|
+
/* @__PURE__ */ jsxs82(Box41, { className: classes.actionButtons, children: [
|
|
8173
8182
|
buttonText ? /* @__PURE__ */ jsx119(
|
|
8174
8183
|
ExtendedButton_default,
|
|
8175
8184
|
{
|
|
@@ -8193,7 +8202,7 @@ var SectionName_default = SectionName;
|
|
|
8193
8202
|
// src/components/SmartMultipleSelect/SmartMultipleSelect.tsx
|
|
8194
8203
|
import { useState as useState16 } from "react";
|
|
8195
8204
|
import {
|
|
8196
|
-
Box as
|
|
8205
|
+
Box as Box42,
|
|
8197
8206
|
Checkbox as Checkbox7,
|
|
8198
8207
|
CircularProgress as CircularProgress5,
|
|
8199
8208
|
FormControl as FormControl5,
|
|
@@ -8236,18 +8245,18 @@ var SmartMultipleSelect = ({
|
|
|
8236
8245
|
onChange?.(newValues);
|
|
8237
8246
|
};
|
|
8238
8247
|
const renderMenuContent = () => !menuOptions?.length ? /* @__PURE__ */ jsx120(
|
|
8239
|
-
|
|
8248
|
+
Box42,
|
|
8240
8249
|
{
|
|
8241
8250
|
sx: { display: "flex", justifyContent: "center", alignItems: "center" },
|
|
8242
8251
|
children: /* @__PURE__ */ jsx120(Typography29, { children: emptyMessage })
|
|
8243
8252
|
}
|
|
8244
|
-
) : /* @__PURE__ */ jsx120(
|
|
8253
|
+
) : /* @__PURE__ */ jsx120(Box42, { sx: { display: "flex", flexDirection: "column" }, children: menuOptions?.map((option, index) => {
|
|
8245
8254
|
const selectedValues = values ?? localValues ?? [];
|
|
8246
8255
|
const isSelected = selectedValues.some(
|
|
8247
8256
|
(selected) => selected.value === option.value
|
|
8248
8257
|
);
|
|
8249
8258
|
return /* @__PURE__ */ jsxs83(
|
|
8250
|
-
|
|
8259
|
+
Box42,
|
|
8251
8260
|
{
|
|
8252
8261
|
onClick: () => handleChangeOption(option),
|
|
8253
8262
|
sx: {
|
|
@@ -8290,7 +8299,7 @@ var SmartMultipleSelect = ({
|
|
|
8290
8299
|
return /* @__PURE__ */ jsx120(DynamicOverflowTooltip, { tooltipDescription: valuesString, children: valuesString });
|
|
8291
8300
|
},
|
|
8292
8301
|
children: isLoading ? /* @__PURE__ */ jsx120(
|
|
8293
|
-
|
|
8302
|
+
Box42,
|
|
8294
8303
|
{
|
|
8295
8304
|
sx: {
|
|
8296
8305
|
display: "flex",
|
|
@@ -8533,7 +8542,7 @@ var SmartTableHeaderFilterMenu = ({
|
|
|
8533
8542
|
// src/components/SmartTableHeader/SmartTableHeader.tsx
|
|
8534
8543
|
import { memo as memo22 } from "react";
|
|
8535
8544
|
import {
|
|
8536
|
-
Box as
|
|
8545
|
+
Box as Box43,
|
|
8537
8546
|
Checkbox as Checkbox8,
|
|
8538
8547
|
TableCell,
|
|
8539
8548
|
TableHead,
|
|
@@ -8604,7 +8613,7 @@ var SmartTableHeader = memo22(
|
|
|
8604
8613
|
}
|
|
8605
8614
|
},
|
|
8606
8615
|
children: /* @__PURE__ */ jsxs86(
|
|
8607
|
-
|
|
8616
|
+
Box43,
|
|
8608
8617
|
{
|
|
8609
8618
|
display: "flex",
|
|
8610
8619
|
flexDirection: "row",
|
|
@@ -8663,7 +8672,7 @@ var SmartTableHeader = memo22(
|
|
|
8663
8672
|
var import_debounce = __toESM(require_debounce(), 1);
|
|
8664
8673
|
import { useLayoutEffect, useState as useState18 } from "react";
|
|
8665
8674
|
import {
|
|
8666
|
-
Box as
|
|
8675
|
+
Box as Box45,
|
|
8667
8676
|
Paper as Paper12,
|
|
8668
8677
|
Table as MUITable,
|
|
8669
8678
|
TableBody,
|
|
@@ -8677,12 +8686,12 @@ import { makeStyles as makeStyles44 } from "tss-react/mui";
|
|
|
8677
8686
|
import { v4 as uuidv4 } from "uuid";
|
|
8678
8687
|
|
|
8679
8688
|
// src/components/TableLoading/TableLoading.tsx
|
|
8680
|
-
import { Box as
|
|
8689
|
+
import { Box as Box44, Skeleton as Skeleton4 } from "@mui/material";
|
|
8681
8690
|
import { jsx as jsx125 } from "react/jsx-runtime";
|
|
8682
8691
|
var TableLoading = ({
|
|
8683
8692
|
rowsPerPage,
|
|
8684
8693
|
rowHeight
|
|
8685
|
-
}) => /* @__PURE__ */ jsx125(
|
|
8694
|
+
}) => /* @__PURE__ */ jsx125(Box44, { children: Array.from({ length: rowsPerPage ?? 0 }).map((_, index) => /* @__PURE__ */ jsx125(
|
|
8686
8695
|
Skeleton4,
|
|
8687
8696
|
{
|
|
8688
8697
|
animation: "pulse",
|
|
@@ -8820,7 +8829,7 @@ var Table = ({
|
|
|
8820
8829
|
}
|
|
8821
8830
|
return rowsComponents;
|
|
8822
8831
|
};
|
|
8823
|
-
return /* @__PURE__ */ jsx126(Paper12, { className: classes.root, children: /* @__PURE__ */ jsx126(
|
|
8832
|
+
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: [
|
|
8824
8833
|
/* @__PURE__ */ jsx126(TableHead2, { className: classes.header, children: /* @__PURE__ */ jsx126(TableRow2, { children: headCells?.map((headCell) => /* @__PURE__ */ jsx126(
|
|
8825
8834
|
TableCell2,
|
|
8826
8835
|
{
|
|
@@ -8853,7 +8862,7 @@ import {
|
|
|
8853
8862
|
useEffect as useEffect13,
|
|
8854
8863
|
useRef as useRef8
|
|
8855
8864
|
} from "react";
|
|
8856
|
-
import { Paper as Paper13, Table as Table2, TableBody as TableBody3, TableContainer as TableContainer2, Box as
|
|
8865
|
+
import { Paper as Paper13, Table as Table2, TableBody as TableBody3, TableContainer as TableContainer2, Box as Box47 } from "@mui/material";
|
|
8857
8866
|
|
|
8858
8867
|
// src/components/TableDesktopLoadingState/TableDesktopLoadingState.tsx
|
|
8859
8868
|
import { Skeleton as Skeleton5, TableCell as TableCell3, TableRow as TableRow3 } from "@mui/material";
|
|
@@ -9027,7 +9036,7 @@ var TableDesktopRows = ({
|
|
|
9027
9036
|
};
|
|
9028
9037
|
|
|
9029
9038
|
// src/components/TableDesktopRowSelectionBar/TableDesktopRowSelectionBar.tsx
|
|
9030
|
-
import { Box as
|
|
9039
|
+
import { Box as Box46, Button as Button17, Typography as Typography33 } from "@mui/material";
|
|
9031
9040
|
import { jsx as jsx130, jsxs as jsxs90 } from "react/jsx-runtime";
|
|
9032
9041
|
var TableDesktopRowSelectionBar = ({
|
|
9033
9042
|
isEveryRowInPageSelected,
|
|
@@ -9048,7 +9057,7 @@ var TableDesktopRowSelectionBar = ({
|
|
|
9048
9057
|
return `${numSelectedRows} row${numSelectedRows > 1 ? "s" : ""} selected.`;
|
|
9049
9058
|
};
|
|
9050
9059
|
return isAnyRowSelected ? /* @__PURE__ */ jsxs90(
|
|
9051
|
-
|
|
9060
|
+
Box46,
|
|
9052
9061
|
{
|
|
9053
9062
|
sx: {
|
|
9054
9063
|
p: 1,
|
|
@@ -9283,7 +9292,7 @@ var TableDesktop = ({
|
|
|
9283
9292
|
);
|
|
9284
9293
|
};
|
|
9285
9294
|
return /* @__PURE__ */ jsx132(
|
|
9286
|
-
|
|
9295
|
+
Box47,
|
|
9287
9296
|
{
|
|
9288
9297
|
sx: {
|
|
9289
9298
|
height,
|
|
@@ -9952,7 +9961,7 @@ var TableDesktopEditableField = ({
|
|
|
9952
9961
|
// src/components/TableDesktopFooter/TableDesktopFooter.tsx
|
|
9953
9962
|
import Refresh3 from "@mui/icons-material/Refresh";
|
|
9954
9963
|
import {
|
|
9955
|
-
Box as
|
|
9964
|
+
Box as Box48,
|
|
9956
9965
|
Button as Button18,
|
|
9957
9966
|
MenuItem as MenuItem4,
|
|
9958
9967
|
Pagination as Pagination2,
|
|
@@ -9972,7 +9981,7 @@ var TableDesktopFooter = ({
|
|
|
9972
9981
|
isFetching
|
|
9973
9982
|
}) => {
|
|
9974
9983
|
return /* @__PURE__ */ jsxs93(
|
|
9975
|
-
|
|
9984
|
+
Box48,
|
|
9976
9985
|
{
|
|
9977
9986
|
sx: {
|
|
9978
9987
|
py: 1,
|
|
@@ -10004,7 +10013,7 @@ var TableDesktopFooter = ({
|
|
|
10004
10013
|
)
|
|
10005
10014
|
}
|
|
10006
10015
|
) : null,
|
|
10007
|
-
/* @__PURE__ */ jsxs93(
|
|
10016
|
+
/* @__PURE__ */ jsxs93(Box48, { sx: { display: "flex", ml: "auto", py: 1 }, children: [
|
|
10008
10017
|
pageSize && pageSizeOptions && onPageSizeChange ? /* @__PURE__ */ jsxs93(Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
|
|
10009
10018
|
/* @__PURE__ */ jsx139(Typography35, { fontSize: 12, children: "Rows per page:" }),
|
|
10010
10019
|
/* @__PURE__ */ jsx139(
|
|
@@ -10144,7 +10153,7 @@ import Download from "@mui/icons-material/Download";
|
|
|
10144
10153
|
import KeyboardArrowLeft2 from "@mui/icons-material/KeyboardArrowLeft";
|
|
10145
10154
|
import KeyboardArrowRight2 from "@mui/icons-material/KeyboardArrowRight";
|
|
10146
10155
|
import {
|
|
10147
|
-
Box as
|
|
10156
|
+
Box as Box49,
|
|
10148
10157
|
Button as Button19,
|
|
10149
10158
|
Divider as Divider11,
|
|
10150
10159
|
FormControlLabel as FormControlLabel7,
|
|
@@ -10208,7 +10217,7 @@ var TableDesktopToolbar = ({
|
|
|
10208
10217
|
});
|
|
10209
10218
|
};
|
|
10210
10219
|
return /* @__PURE__ */ jsxs95(
|
|
10211
|
-
|
|
10220
|
+
Box49,
|
|
10212
10221
|
{
|
|
10213
10222
|
sx: {
|
|
10214
10223
|
borderBottom: "1px solid",
|
|
@@ -10217,7 +10226,7 @@ var TableDesktopToolbar = ({
|
|
|
10217
10226
|
},
|
|
10218
10227
|
children: [
|
|
10219
10228
|
/* @__PURE__ */ jsxs95(
|
|
10220
|
-
|
|
10229
|
+
Box49,
|
|
10221
10230
|
{
|
|
10222
10231
|
sx: {
|
|
10223
10232
|
py: 1,
|
|
@@ -10229,7 +10238,7 @@ var TableDesktopToolbar = ({
|
|
|
10229
10238
|
},
|
|
10230
10239
|
children: [
|
|
10231
10240
|
/* @__PURE__ */ jsxs95(
|
|
10232
|
-
|
|
10241
|
+
Box49,
|
|
10233
10242
|
{
|
|
10234
10243
|
sx: {
|
|
10235
10244
|
py: 1,
|
|
@@ -10277,7 +10286,7 @@ var TableDesktopToolbar = ({
|
|
|
10277
10286
|
}
|
|
10278
10287
|
),
|
|
10279
10288
|
/* @__PURE__ */ jsx141(
|
|
10280
|
-
|
|
10289
|
+
Box49,
|
|
10281
10290
|
{
|
|
10282
10291
|
ref: scrollRef,
|
|
10283
10292
|
sx: {
|
|
@@ -10299,7 +10308,7 @@ var TableDesktopToolbar = ({
|
|
|
10299
10308
|
return null;
|
|
10300
10309
|
}
|
|
10301
10310
|
return editableCellType && /* @__PURE__ */ jsx141(
|
|
10302
|
-
|
|
10311
|
+
Box49,
|
|
10303
10312
|
{
|
|
10304
10313
|
sx: { width, flex: "0 0 auto" },
|
|
10305
10314
|
children: /* @__PURE__ */ jsx141(
|
|
@@ -10352,7 +10361,7 @@ var TableDesktopToolbar = ({
|
|
|
10352
10361
|
children: "APPLY"
|
|
10353
10362
|
}
|
|
10354
10363
|
)
|
|
10355
|
-
] }) : /* @__PURE__ */ jsxs95(
|
|
10364
|
+
] }) : /* @__PURE__ */ jsxs95(Box49, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
10356
10365
|
renderInfoIcons,
|
|
10357
10366
|
renderExportCsvDialog ? /* @__PURE__ */ jsx141(Tooltip13, { title: "Download List", children: /* @__PURE__ */ jsx141("span", { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ jsx141(
|
|
10358
10367
|
IconButton8,
|
|
@@ -10467,7 +10476,7 @@ var TableHeader = ({ cells, onSort = null }) => {
|
|
|
10467
10476
|
var TableHeader_default = memo23(TableHeader);
|
|
10468
10477
|
|
|
10469
10478
|
// src/components/TextDivider/TextDivider.tsx
|
|
10470
|
-
import { Box as
|
|
10479
|
+
import { Box as Box50, Typography as Typography37, Divider as Divider12, Button as Button20 } from "@mui/material";
|
|
10471
10480
|
import { makeStyles as makeStyles47 } from "tss-react/mui";
|
|
10472
10481
|
import { jsx as jsx143, jsxs as jsxs96 } from "react/jsx-runtime";
|
|
10473
10482
|
var useStyles47 = makeStyles47()(() => ({
|
|
@@ -10507,7 +10516,7 @@ var TextDivider = ({
|
|
|
10507
10516
|
const { classes } = useStyles47();
|
|
10508
10517
|
const iconColor = color ?? colors.neutral900;
|
|
10509
10518
|
return /* @__PURE__ */ jsxs96(
|
|
10510
|
-
|
|
10519
|
+
Box50,
|
|
10511
10520
|
{
|
|
10512
10521
|
display: "flex",
|
|
10513
10522
|
alignItems: "center",
|
|
@@ -10515,7 +10524,7 @@ var TextDivider = ({
|
|
|
10515
10524
|
className: classes.container,
|
|
10516
10525
|
children: [
|
|
10517
10526
|
/* @__PURE__ */ jsx143(Divider12, { className: classes.leftDivider }),
|
|
10518
|
-
/* @__PURE__ */ jsx143(Button20, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs96(
|
|
10527
|
+
/* @__PURE__ */ jsx143(Button20, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ jsxs96(Box50, { className: classes.center, children: [
|
|
10519
10528
|
Icon2 && iconPosition === "left" && /* @__PURE__ */ jsx143(Icon2, { className: classes.icon, style: { color: iconColor } }),
|
|
10520
10529
|
/* @__PURE__ */ jsx143(
|
|
10521
10530
|
Typography37,
|
|
@@ -10642,7 +10651,7 @@ var ThemedDateRangePicker_default = ThemedDateRangePicker;
|
|
|
10642
10651
|
|
|
10643
10652
|
// src/components/TheToolbar/TheToolbar.tsx
|
|
10644
10653
|
import { memo as memo24 } from "react";
|
|
10645
|
-
import { AppBar, Box as
|
|
10654
|
+
import { AppBar, Box as Box51, Toolbar } from "@mui/material";
|
|
10646
10655
|
import { makeStyles as makeStyles49 } from "tss-react/mui";
|
|
10647
10656
|
import { jsx as jsx145, jsxs as jsxs97 } from "react/jsx-runtime";
|
|
10648
10657
|
var useStyles49 = makeStyles49()((theme) => ({
|
|
@@ -10669,9 +10678,9 @@ var TheToolbar = ({
|
|
|
10669
10678
|
isAuthenticated = true
|
|
10670
10679
|
}) => {
|
|
10671
10680
|
const { classes } = useStyles49();
|
|
10672
|
-
return /* @__PURE__ */ jsxs97(
|
|
10681
|
+
return /* @__PURE__ */ jsxs97(Box51, { children: [
|
|
10673
10682
|
/* @__PURE__ */ jsx145(AppBar, { children: /* @__PURE__ */ jsxs97(Toolbar, { className: classes.topBar, children: [
|
|
10674
|
-
isAuthenticated ? /* @__PURE__ */ jsx145(
|
|
10683
|
+
isAuthenticated ? /* @__PURE__ */ jsx145(Box51, { sx: { flexShrink: 0, display: "flex" }, children: /* @__PURE__ */ jsx145(
|
|
10675
10684
|
RoundButton_default,
|
|
10676
10685
|
{
|
|
10677
10686
|
className: classes.menuButton,
|
|
@@ -10680,7 +10689,7 @@ var TheToolbar = ({
|
|
|
10680
10689
|
onClick: handleOpen
|
|
10681
10690
|
}
|
|
10682
10691
|
) }) : null,
|
|
10683
|
-
/* @__PURE__ */ jsx145(
|
|
10692
|
+
/* @__PURE__ */ jsx145(Box51, { sx: { display: { xs: "none", lg: "block" }, flexShrink: 0 }, children: /* @__PURE__ */ jsx145(
|
|
10684
10693
|
CompanyLogo_default,
|
|
10685
10694
|
{
|
|
10686
10695
|
size: "small",
|
|
@@ -10690,7 +10699,7 @@ var TheToolbar = ({
|
|
|
10690
10699
|
}
|
|
10691
10700
|
) }),
|
|
10692
10701
|
/* @__PURE__ */ jsx145(
|
|
10693
|
-
|
|
10702
|
+
Box51,
|
|
10694
10703
|
{
|
|
10695
10704
|
ml: { xs: 0, lg: 2 },
|
|
10696
10705
|
sx: { flexShrink: 0, display: { xs: "none", xl: "block" } },
|
|
@@ -10698,7 +10707,7 @@ var TheToolbar = ({
|
|
|
10698
10707
|
}
|
|
10699
10708
|
),
|
|
10700
10709
|
centerSection ? /* @__PURE__ */ jsx145(
|
|
10701
|
-
|
|
10710
|
+
Box51,
|
|
10702
10711
|
{
|
|
10703
10712
|
sx: {
|
|
10704
10713
|
flexGrow: 1,
|
|
@@ -10708,8 +10717,8 @@ var TheToolbar = ({
|
|
|
10708
10717
|
},
|
|
10709
10718
|
children: centerSection
|
|
10710
10719
|
}
|
|
10711
|
-
) : /* @__PURE__ */ jsx145(
|
|
10712
|
-
/* @__PURE__ */ jsx145(
|
|
10720
|
+
) : /* @__PURE__ */ jsx145(Box51, { sx: { flexGrow: 1 } }),
|
|
10721
|
+
/* @__PURE__ */ jsx145(Box51, { sx: { flexShrink: 0, display: { xs: "none", xl: "block" } }, children: rightSection })
|
|
10713
10722
|
] }) }),
|
|
10714
10723
|
LeftDrawer
|
|
10715
10724
|
] });
|
|
@@ -10762,7 +10771,7 @@ import {
|
|
|
10762
10771
|
Typography as Typography38,
|
|
10763
10772
|
Dialog as Dialog5,
|
|
10764
10773
|
Backdrop,
|
|
10765
|
-
Box as
|
|
10774
|
+
Box as Box52,
|
|
10766
10775
|
Divider as Divider13,
|
|
10767
10776
|
Paper as Paper14,
|
|
10768
10777
|
Fade as Fade2
|
|
@@ -10809,9 +10818,9 @@ var TwoButtonDialog = ({
|
|
|
10809
10818
|
BackdropComponent: Backdrop,
|
|
10810
10819
|
BackdropProps: { timeout: 500 },
|
|
10811
10820
|
children: /* @__PURE__ */ jsx147(Fade2, { in: open, children: /* @__PURE__ */ jsxs98(Paper14, { className: classes.paper, children: [
|
|
10812
|
-
/* @__PURE__ */ jsxs98(
|
|
10821
|
+
/* @__PURE__ */ jsxs98(Box52, { className: classes.mb, children: [
|
|
10813
10822
|
/* @__PURE__ */ jsx147(Typography38, { variant: "h5", component: "div", children: /* @__PURE__ */ jsx147(
|
|
10814
|
-
|
|
10823
|
+
Box52,
|
|
10815
10824
|
{
|
|
10816
10825
|
sx: {
|
|
10817
10826
|
fontWeight: 600
|
|
@@ -10820,7 +10829,7 @@ var TwoButtonDialog = ({
|
|
|
10820
10829
|
}
|
|
10821
10830
|
) }),
|
|
10822
10831
|
/* @__PURE__ */ jsxs98(
|
|
10823
|
-
|
|
10832
|
+
Box52,
|
|
10824
10833
|
{
|
|
10825
10834
|
className: classes.mt,
|
|
10826
10835
|
sx: {
|
|
@@ -10834,7 +10843,7 @@ var TwoButtonDialog = ({
|
|
|
10834
10843
|
)
|
|
10835
10844
|
] }),
|
|
10836
10845
|
/* @__PURE__ */ jsx147(Divider13, {}),
|
|
10837
|
-
/* @__PURE__ */ jsxs98(
|
|
10846
|
+
/* @__PURE__ */ jsxs98(Box52, { className: classes.buttonContainer, children: [
|
|
10838
10847
|
/* @__PURE__ */ jsx147(
|
|
10839
10848
|
FilledButton_default,
|
|
10840
10849
|
{
|