@mamrp/components 1.4.8 → 1.4.9
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/date-pickers/index.d.mts +4 -0
- package/dist/date-pickers/index.d.ts +4 -0
- package/dist/date-pickers/index.js +14 -6
- package/dist/date-pickers/index.js.map +1 -1
- package/dist/date-pickers/index.mjs +14 -6
- package/dist/date-pickers/index.mjs.map +1 -1
- package/dist/index.js +2 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +68 -81
- package/dist/index.mjs.map +1 -1
- package/dist/selectors/index.d.mts +4 -1
- package/dist/selectors/index.d.ts +4 -1
- package/dist/selectors/index.js +28 -5
- package/dist/selectors/index.js.map +1 -1
- package/dist/selectors/index.mjs +28 -5
- package/dist/selectors/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
|
|
4
4
|
// src/auto-complete/selector/index.tsx
|
|
5
|
-
import {
|
|
5
|
+
import { CircularProgress, Popper } from "@mui/material";
|
|
6
6
|
import Autocomplete from "@mui/material/Autocomplete";
|
|
7
7
|
import TextField from "@mui/material/TextField";
|
|
8
8
|
import * as React3 from "react";
|
|
@@ -597,7 +597,7 @@ function MultipleSelectChip({
|
|
|
597
597
|
isOptionEqualToValue: (option, value2) => String(option.key) === String(value2?.key),
|
|
598
598
|
getOptionLabel: (option) => option.title,
|
|
599
599
|
loading: isLoading,
|
|
600
|
-
loadingText: "
|
|
600
|
+
loadingText: "",
|
|
601
601
|
renderOption: (props, option) => /* @__PURE__ */ React3.createElement(
|
|
602
602
|
CustomeStyle,
|
|
603
603
|
{
|
|
@@ -640,20 +640,7 @@ function MultipleSelectChip({
|
|
|
640
640
|
placeholder,
|
|
641
641
|
InputProps: {
|
|
642
642
|
...params.InputProps,
|
|
643
|
-
|
|
644
|
-
"div",
|
|
645
|
-
{
|
|
646
|
-
style: {
|
|
647
|
-
display: "flex",
|
|
648
|
-
flexWrap: "wrap",
|
|
649
|
-
maxHeight: "250px",
|
|
650
|
-
overflowY: "auto",
|
|
651
|
-
padding: 0
|
|
652
|
-
}
|
|
653
|
-
},
|
|
654
|
-
isLoading ? /* @__PURE__ */ React3.createElement(Typography2, { sx: { marginRight: 1 } }, "\u062F\u0631 \u062D\u0627\u0644 \u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC...") : null,
|
|
655
|
-
params.InputProps.startAdornment
|
|
656
|
-
)
|
|
643
|
+
endAdornment: /* @__PURE__ */ React3.createElement(React3.Fragment, null, isLoading ? /* @__PURE__ */ React3.createElement(CircularProgress, { color: "primary", size: 20 }) : null, params.InputProps.endAdornment)
|
|
657
644
|
}
|
|
658
645
|
}
|
|
659
646
|
)
|
|
@@ -790,7 +777,7 @@ import DialogTitle2 from "@mui/material/DialogTitle";
|
|
|
790
777
|
import {
|
|
791
778
|
Box as Box5,
|
|
792
779
|
Button as Button3,
|
|
793
|
-
CircularProgress,
|
|
780
|
+
CircularProgress as CircularProgress2,
|
|
794
781
|
Divider,
|
|
795
782
|
IconButton as IconButton2,
|
|
796
783
|
useMediaQuery
|
|
@@ -900,7 +887,7 @@ function ConfirmationDialog({
|
|
|
900
887
|
variant: "contained",
|
|
901
888
|
color,
|
|
902
889
|
sx: { minWidth: "120px" },
|
|
903
|
-
startIcon: isLoading ? /* @__PURE__ */ React7.createElement(
|
|
890
|
+
startIcon: isLoading ? /* @__PURE__ */ React7.createElement(CircularProgress2, { sx: { color: "white" }, size: 20 }) : React7.cloneElement(icon, { size: 16 })
|
|
904
891
|
},
|
|
905
892
|
actionTitle
|
|
906
893
|
)
|
|
@@ -914,7 +901,7 @@ import {
|
|
|
914
901
|
Button as Button4,
|
|
915
902
|
Divider as Divider2,
|
|
916
903
|
IconButton as IconButton3,
|
|
917
|
-
Typography as
|
|
904
|
+
Typography as Typography2,
|
|
918
905
|
TextField as TextField2,
|
|
919
906
|
InputAdornment,
|
|
920
907
|
useTheme as useTheme3
|
|
@@ -1105,7 +1092,7 @@ var TimePickerComponent = ({
|
|
|
1105
1092
|
/* @__PURE__ */ React.createElement(MdClose2, null)
|
|
1106
1093
|
),
|
|
1107
1094
|
/* @__PURE__ */ React.createElement(Divider2, { sx: { my: "10px" } }),
|
|
1108
|
-
/* @__PURE__ */ React.createElement(DialogContent3, null, /* @__PURE__ */ React.createElement(Box6, { display: "flex", justifyContent: "space-between", gap: "20px" }, /* @__PURE__ */ React.createElement(Box6, { flex: 1 }, /* @__PURE__ */ React.createElement(
|
|
1095
|
+
/* @__PURE__ */ React.createElement(DialogContent3, null, /* @__PURE__ */ React.createElement(Box6, { display: "flex", justifyContent: "space-between", gap: "20px" }, /* @__PURE__ */ React.createElement(Box6, { flex: 1 }, /* @__PURE__ */ React.createElement(Typography2, { variant: "h6", textAlign: "center", gutterBottom: true }, "\u062F\u0642\u06CC\u0642\u0647"), /* @__PURE__ */ React.createElement(
|
|
1109
1096
|
Box6,
|
|
1110
1097
|
{
|
|
1111
1098
|
maxHeight: "200px",
|
|
@@ -1127,9 +1114,9 @@ var TimePickerComponent = ({
|
|
|
1127
1114
|
sx: { cursor: "pointer" },
|
|
1128
1115
|
onClick: () => handleSelectMinute(minute)
|
|
1129
1116
|
},
|
|
1130
|
-
/* @__PURE__ */ React.createElement(
|
|
1117
|
+
/* @__PURE__ */ React.createElement(Typography2, null, minute.toString().padStart(2, "0"))
|
|
1131
1118
|
))
|
|
1132
|
-
)), /* @__PURE__ */ React.createElement(Box6, { flex: 1 }, /* @__PURE__ */ React.createElement(
|
|
1119
|
+
)), /* @__PURE__ */ React.createElement(Box6, { flex: 1 }, /* @__PURE__ */ React.createElement(Typography2, { variant: "h6", textAlign: "center", gutterBottom: true }, "\u0633\u0627\u0639\u062A"), /* @__PURE__ */ React.createElement(
|
|
1133
1120
|
Box6,
|
|
1134
1121
|
{
|
|
1135
1122
|
maxHeight: "200px",
|
|
@@ -1151,7 +1138,7 @@ var TimePickerComponent = ({
|
|
|
1151
1138
|
sx: { cursor: "pointer" },
|
|
1152
1139
|
onClick: () => handleSelectHour(hour)
|
|
1153
1140
|
},
|
|
1154
|
-
/* @__PURE__ */ React.createElement(
|
|
1141
|
+
/* @__PURE__ */ React.createElement(Typography2, null, hour.toString().padStart(2, "0"))
|
|
1155
1142
|
))
|
|
1156
1143
|
)))),
|
|
1157
1144
|
/* @__PURE__ */ React.createElement(DialogActions2, { sx: { padding: 2 } }, /* @__PURE__ */ React.createElement(
|
|
@@ -1177,8 +1164,8 @@ import { FaChevronLeft, FaChevronRight } from "react-icons/fa";
|
|
|
1177
1164
|
import * as yup from "yup";
|
|
1178
1165
|
|
|
1179
1166
|
// src/date-picker/index.tsx
|
|
1180
|
-
import { Box as Box7, IconButton as IconButton4, Tooltip as Tooltip2, Typography as
|
|
1181
|
-
import
|
|
1167
|
+
import { Box as Box7, IconButton as IconButton4, Tooltip as Tooltip2, Typography as Typography3 } from "@mui/material";
|
|
1168
|
+
import CircularProgress3 from "@mui/material/CircularProgress";
|
|
1182
1169
|
import { DatePicker, LocalizationProvider } from "@mui/x-date-pickers";
|
|
1183
1170
|
import { AdapterMomentJalaali } from "@mui/x-date-pickers/AdapterMomentJalaali";
|
|
1184
1171
|
import dayjs from "dayjs";
|
|
@@ -1332,7 +1319,7 @@ var JalaliDatePicker = ({
|
|
|
1332
1319
|
/* @__PURE__ */ React8.createElement(MdChevronRight, { size: 26 })
|
|
1333
1320
|
))
|
|
1334
1321
|
),
|
|
1335
|
-
endAdornment: isLoading ? /* @__PURE__ */ React8.createElement(
|
|
1322
|
+
endAdornment: isLoading ? /* @__PURE__ */ React8.createElement(CircularProgress3, { color: "secondary", size: 20 }) : disabled ? null : /* @__PURE__ */ React8.createElement(
|
|
1336
1323
|
Box7,
|
|
1337
1324
|
{
|
|
1338
1325
|
sx: { display: "flex", alignItems: "center", ml: 1 }
|
|
@@ -1412,8 +1399,8 @@ var JalaliDatePicker = ({
|
|
|
1412
1399
|
mx: 4
|
|
1413
1400
|
}
|
|
1414
1401
|
},
|
|
1415
|
-
/* @__PURE__ */ React8.createElement(
|
|
1416
|
-
/* @__PURE__ */ React8.createElement(
|
|
1402
|
+
/* @__PURE__ */ React8.createElement(Typography3, { variant: "overline", color: "primary" }, "\u062A\u0627\u0631\u06CC\u062E \u0631\u0627 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F"),
|
|
1403
|
+
/* @__PURE__ */ React8.createElement(Typography3, { variant: "h4" }, formattedDate == "Invalid date" ? "" : formattedDate)
|
|
1417
1404
|
);
|
|
1418
1405
|
},
|
|
1419
1406
|
monthButton: (props) => {
|
|
@@ -1444,7 +1431,7 @@ var JalaliDatePicker = ({
|
|
|
1444
1431
|
minDate: minDate ? minDate : null,
|
|
1445
1432
|
maxDate: maxDate ? maxDate : today
|
|
1446
1433
|
}
|
|
1447
|
-
), error && /* @__PURE__ */ React8.createElement(
|
|
1434
|
+
), error && /* @__PURE__ */ React8.createElement(Typography3, { fontSize: 13, color: "error", sx: { mt: 0.6, ml: 1 } }, error.message));
|
|
1448
1435
|
}
|
|
1449
1436
|
}
|
|
1450
1437
|
)
|
|
@@ -1636,7 +1623,7 @@ function DateFilter({ setHandler }) {
|
|
|
1636
1623
|
}
|
|
1637
1624
|
|
|
1638
1625
|
// src/date-time-picker/index.tsx
|
|
1639
|
-
import { Typography as
|
|
1626
|
+
import { Typography as Typography4 } from "@mui/material";
|
|
1640
1627
|
import useMediaQuery4 from "@mui/material/useMediaQuery";
|
|
1641
1628
|
import { Box as Box8 } from "@mui/system";
|
|
1642
1629
|
import { DateTimePicker, LocalizationProvider as LocalizationProvider2 } from "@mui/x-date-pickers";
|
|
@@ -1755,7 +1742,7 @@ var JalaliDatePicker2 = ({
|
|
|
1755
1742
|
}
|
|
1756
1743
|
},
|
|
1757
1744
|
/* @__PURE__ */ React10.createElement(
|
|
1758
|
-
|
|
1745
|
+
Typography4,
|
|
1759
1746
|
{
|
|
1760
1747
|
fontSize: 16,
|
|
1761
1748
|
variant: "overline",
|
|
@@ -1764,7 +1751,7 @@ var JalaliDatePicker2 = ({
|
|
|
1764
1751
|
`${formattedDay}\u060C`
|
|
1765
1752
|
),
|
|
1766
1753
|
/* @__PURE__ */ React10.createElement(
|
|
1767
|
-
|
|
1754
|
+
Typography4,
|
|
1768
1755
|
{
|
|
1769
1756
|
variant: "h4",
|
|
1770
1757
|
fontSize: 26,
|
|
@@ -1773,7 +1760,7 @@ var JalaliDatePicker2 = ({
|
|
|
1773
1760
|
`${formattedDate}`
|
|
1774
1761
|
),
|
|
1775
1762
|
/* @__PURE__ */ React10.createElement(
|
|
1776
|
-
|
|
1763
|
+
Typography4,
|
|
1777
1764
|
{
|
|
1778
1765
|
fontSize: 16,
|
|
1779
1766
|
variant: "body2",
|
|
@@ -1781,9 +1768,9 @@ var JalaliDatePicker2 = ({
|
|
|
1781
1768
|
},
|
|
1782
1769
|
`${formattedYear}`
|
|
1783
1770
|
),
|
|
1784
|
-
field.value && /* @__PURE__ */ React10.createElement(
|
|
1771
|
+
field.value && /* @__PURE__ */ React10.createElement(Typography4, null, "-"),
|
|
1785
1772
|
/* @__PURE__ */ React10.createElement(
|
|
1786
|
-
|
|
1773
|
+
Typography4,
|
|
1787
1774
|
{
|
|
1788
1775
|
fontSize: 16,
|
|
1789
1776
|
variant: "body2",
|
|
@@ -1901,7 +1888,7 @@ var JalaliDatePicker2 = ({
|
|
|
1901
1888
|
}
|
|
1902
1889
|
}
|
|
1903
1890
|
}
|
|
1904
|
-
), error && /* @__PURE__ */ React10.createElement(
|
|
1891
|
+
), error && /* @__PURE__ */ React10.createElement(Typography4, { fontSize: 13, color: "error", sx: { mt: 0.6, ml: 1 } }, error.message))
|
|
1905
1892
|
}
|
|
1906
1893
|
)
|
|
1907
1894
|
);
|
|
@@ -1909,7 +1896,7 @@ var JalaliDatePicker2 = ({
|
|
|
1909
1896
|
var date_time_picker_default = JalaliDatePicker2;
|
|
1910
1897
|
|
|
1911
1898
|
// src/date-time-range-picker/index.tsx
|
|
1912
|
-
import { Box as Box9, Typography as
|
|
1899
|
+
import { Box as Box9, Typography as Typography5 } from "@mui/material";
|
|
1913
1900
|
import { LocalizationProvider as LocalizationProvider3 } from "@mui/x-date-pickers";
|
|
1914
1901
|
import { AdapterMomentJalaali as AdapterMomentJalaali3 } from "@mui/x-date-pickers/AdapterMomentJalaali";
|
|
1915
1902
|
import moment5 from "moment-jalaali";
|
|
@@ -1955,7 +1942,7 @@ var JalaliDateTimeRangePicker = ({
|
|
|
1955
1942
|
disabled: disabled || isLoading
|
|
1956
1943
|
}
|
|
1957
1944
|
),
|
|
1958
|
-
/* @__PURE__ */ React11.createElement(
|
|
1945
|
+
/* @__PURE__ */ React11.createElement(Typography5, { variant: "h6" }, "-"),
|
|
1959
1946
|
/* @__PURE__ */ React11.createElement(
|
|
1960
1947
|
date_time_picker_default,
|
|
1961
1948
|
{
|
|
@@ -1971,8 +1958,8 @@ var JalaliDateTimeRangePicker = ({
|
|
|
1971
1958
|
var date_time_range_picker_default = JalaliDateTimeRangePicker;
|
|
1972
1959
|
|
|
1973
1960
|
// src/date-month/index.tsx
|
|
1974
|
-
import { Box as Box10, Typography as
|
|
1975
|
-
import
|
|
1961
|
+
import { Box as Box10, Typography as Typography6 } from "@mui/material";
|
|
1962
|
+
import CircularProgress4 from "@mui/material/CircularProgress";
|
|
1976
1963
|
import { DatePicker as DatePicker2, LocalizationProvider as LocalizationProvider4 } from "@mui/x-date-pickers";
|
|
1977
1964
|
import { AdapterMomentJalaali as AdapterMomentJalaali4 } from "@mui/x-date-pickers/AdapterMomentJalaali";
|
|
1978
1965
|
import dayjs2 from "dayjs";
|
|
@@ -2074,7 +2061,7 @@ var DateMonthPicker = ({
|
|
|
2074
2061
|
},
|
|
2075
2062
|
InputProps: {
|
|
2076
2063
|
...isLoading && {
|
|
2077
|
-
endAdornment: /* @__PURE__ */ React12.createElement(
|
|
2064
|
+
endAdornment: /* @__PURE__ */ React12.createElement(CircularProgress4, { color: "secondary", size: 20 })
|
|
2078
2065
|
} || disabled && { endAdornment: false },
|
|
2079
2066
|
...field.value && {
|
|
2080
2067
|
value: `${moment6(field.value).format("jMMMM jYYYY")}`
|
|
@@ -2138,8 +2125,8 @@ var DateMonthPicker = ({
|
|
|
2138
2125
|
mx: 4
|
|
2139
2126
|
}
|
|
2140
2127
|
},
|
|
2141
|
-
/* @__PURE__ */ React12.createElement(
|
|
2142
|
-
/* @__PURE__ */ React12.createElement(
|
|
2128
|
+
/* @__PURE__ */ React12.createElement(Typography6, { variant: "overline", color: "primary" }, "\u0645\u0627\u0647 \u0648 \u0633\u0627\u0644 \u0631\u0627 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F"),
|
|
2129
|
+
/* @__PURE__ */ React12.createElement(Typography6, { variant: "h4" }, formattedDate == "Invalid date" ? "" : formattedDate)
|
|
2143
2130
|
);
|
|
2144
2131
|
},
|
|
2145
2132
|
monthButton: (props) => {
|
|
@@ -2171,7 +2158,7 @@ var DateMonthPicker = ({
|
|
|
2171
2158
|
minDate: minDate ? minDate : null,
|
|
2172
2159
|
maxDate: maxDate ? maxDate : today
|
|
2173
2160
|
}
|
|
2174
|
-
), error && /* @__PURE__ */ React12.createElement(
|
|
2161
|
+
), error && /* @__PURE__ */ React12.createElement(Typography6, { fontSize: 13, color: "error", sx: { mt: 0.6, ml: 1 } }, error.message))
|
|
2175
2162
|
}
|
|
2176
2163
|
)
|
|
2177
2164
|
);
|
|
@@ -2180,7 +2167,7 @@ var date_month_default = DateMonthPicker;
|
|
|
2180
2167
|
|
|
2181
2168
|
// src/license-plate-search/index.tsx
|
|
2182
2169
|
import { convertToEnglishDigits as convertToEnglishDigits2, convertToPersianDigits as convertToPersianDigits2 } from "@mamrp/utils";
|
|
2183
|
-
import { Box as Box11, IconButton as IconButton5, Typography as
|
|
2170
|
+
import { Box as Box11, IconButton as IconButton5, Typography as Typography7 } from "@mui/material";
|
|
2184
2171
|
import Button7 from "@mui/material/Button";
|
|
2185
2172
|
import Dialog4 from "@mui/material/Dialog";
|
|
2186
2173
|
import DialogContent4 from "@mui/material/DialogContent";
|
|
@@ -2464,7 +2451,7 @@ function SearchLicensePlate({
|
|
|
2464
2451
|
},
|
|
2465
2452
|
onClick: () => handleInputChange(letter, "input2", 3, 1)
|
|
2466
2453
|
},
|
|
2467
|
-
/* @__PURE__ */ React13.createElement(
|
|
2454
|
+
/* @__PURE__ */ React13.createElement(Typography7, { color: "#117A4F", fontWeight: "bold" }, letter)
|
|
2468
2455
|
))
|
|
2469
2456
|
), /* @__PURE__ */ React13.createElement(Box11, { sx: { display: "flex", justifyContent: "center", mt: 2.5 } }, /* @__PURE__ */ React13.createElement(
|
|
2470
2457
|
Button7,
|
|
@@ -2566,7 +2553,7 @@ function SearchLicensePlate({
|
|
|
2566
2553
|
}
|
|
2567
2554
|
|
|
2568
2555
|
// src/mobile-date-time-picker/index.tsx
|
|
2569
|
-
import { Button as Button8, Typography as
|
|
2556
|
+
import { Button as Button8, Typography as Typography8 } from "@mui/material";
|
|
2570
2557
|
import useMediaQuery5 from "@mui/material/useMediaQuery";
|
|
2571
2558
|
import { Box as Box12 } from "@mui/system";
|
|
2572
2559
|
import {
|
|
@@ -2680,7 +2667,7 @@ var JalaliDatePicker3 = ({
|
|
|
2680
2667
|
}
|
|
2681
2668
|
},
|
|
2682
2669
|
/* @__PURE__ */ React14.createElement(
|
|
2683
|
-
|
|
2670
|
+
Typography8,
|
|
2684
2671
|
{
|
|
2685
2672
|
fontSize: 16,
|
|
2686
2673
|
variant: "overline",
|
|
@@ -2689,7 +2676,7 @@ var JalaliDatePicker3 = ({
|
|
|
2689
2676
|
`${formattedDay}\u060C`
|
|
2690
2677
|
),
|
|
2691
2678
|
/* @__PURE__ */ React14.createElement(
|
|
2692
|
-
|
|
2679
|
+
Typography8,
|
|
2693
2680
|
{
|
|
2694
2681
|
variant: "h4",
|
|
2695
2682
|
fontSize: 26,
|
|
@@ -2698,7 +2685,7 @@ var JalaliDatePicker3 = ({
|
|
|
2698
2685
|
`${formattedDate}`
|
|
2699
2686
|
),
|
|
2700
2687
|
/* @__PURE__ */ React14.createElement(
|
|
2701
|
-
|
|
2688
|
+
Typography8,
|
|
2702
2689
|
{
|
|
2703
2690
|
fontSize: 16,
|
|
2704
2691
|
variant: "body2",
|
|
@@ -2706,9 +2693,9 @@ var JalaliDatePicker3 = ({
|
|
|
2706
2693
|
},
|
|
2707
2694
|
`${formattedYear}`
|
|
2708
2695
|
),
|
|
2709
|
-
field.value && /* @__PURE__ */ React14.createElement(
|
|
2696
|
+
field.value && /* @__PURE__ */ React14.createElement(Typography8, null, "-"),
|
|
2710
2697
|
/* @__PURE__ */ React14.createElement(
|
|
2711
|
-
|
|
2698
|
+
Typography8,
|
|
2712
2699
|
{
|
|
2713
2700
|
fontSize: 16,
|
|
2714
2701
|
variant: "body2",
|
|
@@ -2798,7 +2785,7 @@ var JalaliDatePicker3 = ({
|
|
|
2798
2785
|
}
|
|
2799
2786
|
}
|
|
2800
2787
|
}
|
|
2801
|
-
), error && /* @__PURE__ */ React14.createElement(
|
|
2788
|
+
), error && /* @__PURE__ */ React14.createElement(Typography8, { fontSize: 13, color: "error", sx: { mt: 0.6, ml: 1 } }, error.message))
|
|
2802
2789
|
}
|
|
2803
2790
|
)
|
|
2804
2791
|
);
|
|
@@ -2814,7 +2801,7 @@ import DialogTitle5 from "@mui/material/DialogTitle";
|
|
|
2814
2801
|
import {
|
|
2815
2802
|
Box as Box13,
|
|
2816
2803
|
Button as Button9,
|
|
2817
|
-
CircularProgress as
|
|
2804
|
+
CircularProgress as CircularProgress5,
|
|
2818
2805
|
Divider as Divider3,
|
|
2819
2806
|
IconButton as IconButton6
|
|
2820
2807
|
} from "@mui/material";
|
|
@@ -2876,7 +2863,7 @@ function ConfirmationDialog2({
|
|
|
2876
2863
|
variant: "contained",
|
|
2877
2864
|
color: "error",
|
|
2878
2865
|
sx: { minWidth: "120px" },
|
|
2879
|
-
startIcon: isLoading ? /* @__PURE__ */ React15.createElement(
|
|
2866
|
+
startIcon: isLoading ? /* @__PURE__ */ React15.createElement(CircularProgress5, { sx: { color: "white" }, size: 20 }) : /* @__PURE__ */ React15.createElement(Delete, { size: 16 })
|
|
2880
2867
|
},
|
|
2881
2868
|
"\u062D\u0630\u0641"
|
|
2882
2869
|
),
|
|
@@ -2898,7 +2885,7 @@ function ConfirmationDialog2({
|
|
|
2898
2885
|
import {
|
|
2899
2886
|
Card as Card2,
|
|
2900
2887
|
Stack as Stack3,
|
|
2901
|
-
Typography as
|
|
2888
|
+
Typography as Typography9,
|
|
2902
2889
|
useTheme as useTheme4
|
|
2903
2890
|
} from "@mui/material";
|
|
2904
2891
|
import React16 from "react";
|
|
@@ -2937,7 +2924,7 @@ function NoResult({
|
|
|
2937
2924
|
width: 100
|
|
2938
2925
|
}
|
|
2939
2926
|
),
|
|
2940
|
-
/* @__PURE__ */ React16.createElement(Stack3, { spacing: 1, alignItems: "center" }, /* @__PURE__ */ React16.createElement(
|
|
2927
|
+
/* @__PURE__ */ React16.createElement(Stack3, { spacing: 1, alignItems: "center" }, /* @__PURE__ */ React16.createElement(Typography9, { fontWeight: "600" }, title), description && /* @__PURE__ */ React16.createElement(Typography9, { fontWeight: "500" }, description))
|
|
2941
2928
|
)
|
|
2942
2929
|
);
|
|
2943
2930
|
}
|
|
@@ -3049,7 +3036,7 @@ import RadioGroup from "@mui/material/RadioGroup";
|
|
|
3049
3036
|
import FormControlLabel2 from "@mui/material/FormControlLabel";
|
|
3050
3037
|
import FormControl from "@mui/material/FormControl";
|
|
3051
3038
|
import FormLabel from "@mui/material/FormLabel";
|
|
3052
|
-
import { Typography as
|
|
3039
|
+
import { Typography as Typography10 } from "@mui/material";
|
|
3053
3040
|
import theme from "@mamrp/layout/theme";
|
|
3054
3041
|
import { Box as Box15 } from "@mui/system";
|
|
3055
3042
|
function RadioButton({
|
|
@@ -3121,7 +3108,7 @@ function RadioButton({
|
|
|
3121
3108
|
label: option.name
|
|
3122
3109
|
}
|
|
3123
3110
|
))
|
|
3124
|
-
), error?.message && /* @__PURE__ */ React18.createElement(
|
|
3111
|
+
), error?.message && /* @__PURE__ */ React18.createElement(Typography10, { color: "error", fontSize: theme.CustomComponents.RadioButton.errorFontSize, ml: 2 }, error?.message))
|
|
3125
3112
|
}
|
|
3126
3113
|
)
|
|
3127
3114
|
));
|
|
@@ -3139,7 +3126,7 @@ import {
|
|
|
3139
3126
|
ListItemText,
|
|
3140
3127
|
MenuItem,
|
|
3141
3128
|
Select,
|
|
3142
|
-
Typography as
|
|
3129
|
+
Typography as Typography11
|
|
3143
3130
|
} from "@mui/material";
|
|
3144
3131
|
import React19, { useState as useState10 } from "react";
|
|
3145
3132
|
var backendResponse = {
|
|
@@ -3244,7 +3231,7 @@ var NestedSelect = () => {
|
|
|
3244
3231
|
open: menuOpen,
|
|
3245
3232
|
onOpen: () => setMenuOpen(true),
|
|
3246
3233
|
onClose: () => setMenuOpen(false),
|
|
3247
|
-
renderValue: (selected) => selectedItem ? /* @__PURE__ */ React19.createElement(
|
|
3234
|
+
renderValue: (selected) => selectedItem ? /* @__PURE__ */ React19.createElement(Typography11, null, selectedItem.title) : " "
|
|
3248
3235
|
},
|
|
3249
3236
|
renderMenuItems(backendResponse.value.data)
|
|
3250
3237
|
));
|
|
@@ -3363,7 +3350,7 @@ function HorizontalStepper({
|
|
|
3363
3350
|
}
|
|
3364
3351
|
|
|
3365
3352
|
// src/table/index.tsx
|
|
3366
|
-
import { Typography as
|
|
3353
|
+
import { Typography as Typography12 } from "@mui/material";
|
|
3367
3354
|
import Skeleton2 from "@mui/material/Skeleton";
|
|
3368
3355
|
import { styled as styled2 } from "@mui/material/styles";
|
|
3369
3356
|
import {
|
|
@@ -3546,7 +3533,7 @@ var Table = ({
|
|
|
3546
3533
|
}
|
|
3547
3534
|
)) : `${from} - ${!isNaN(to) ? to : "..."} \u0627\u0632 ${count !== void 0 ? count : "..."}`
|
|
3548
3535
|
},
|
|
3549
|
-
footerRowSelected: (count) => /* @__PURE__ */ React22.createElement(
|
|
3536
|
+
footerRowSelected: (count) => /* @__PURE__ */ React22.createElement(Typography12, null, "\u0633\u0637\u0631 \u0647\u0627\u06CC \u0627\u0646\u062A\u062E\u0627\u0628 \u0634\u062F\u0647 : ", count)
|
|
3550
3537
|
},
|
|
3551
3538
|
...rest
|
|
3552
3539
|
}
|
|
@@ -3559,7 +3546,7 @@ import TextField3 from "@mui/material/TextField";
|
|
|
3559
3546
|
import { forwardRef } from "react";
|
|
3560
3547
|
import { Controller as Controller9 } from "react-hook-form";
|
|
3561
3548
|
import { NumericFormat } from "react-number-format";
|
|
3562
|
-
import
|
|
3549
|
+
import CircularProgress6 from "@mui/material/CircularProgress";
|
|
3563
3550
|
import InputAdornment2 from "@mui/material/InputAdornment";
|
|
3564
3551
|
import React23 from "react";
|
|
3565
3552
|
var FormInputNumber = ({
|
|
@@ -3641,7 +3628,7 @@ var FormInputNumber = ({
|
|
|
3641
3628
|
maxLength,
|
|
3642
3629
|
decimalScale
|
|
3643
3630
|
},
|
|
3644
|
-
endAdornment: isLoading ? /* @__PURE__ */ React23.createElement(InputAdornment2, { position: "end" }, /* @__PURE__ */ React23.createElement(
|
|
3631
|
+
endAdornment: isLoading ? /* @__PURE__ */ React23.createElement(InputAdornment2, { position: "end" }, /* @__PURE__ */ React23.createElement(CircularProgress6, { size: 20 })) : endAdornment,
|
|
3645
3632
|
startAdornment
|
|
3646
3633
|
},
|
|
3647
3634
|
...rest
|
|
@@ -3689,7 +3676,7 @@ var NumericFormatCustom = forwardRef(
|
|
|
3689
3676
|
var number_type_default = FormInputNumber;
|
|
3690
3677
|
|
|
3691
3678
|
// src/text-field/text-type/index.tsx
|
|
3692
|
-
import
|
|
3679
|
+
import CircularProgress7 from "@mui/material/CircularProgress";
|
|
3693
3680
|
import InputAdornment3 from "@mui/material/InputAdornment";
|
|
3694
3681
|
import TextField4 from "@mui/material/TextField";
|
|
3695
3682
|
import React24 from "react";
|
|
@@ -3736,7 +3723,7 @@ var FormInputText = ({
|
|
|
3736
3723
|
readOnly
|
|
3737
3724
|
},
|
|
3738
3725
|
InputProps: {
|
|
3739
|
-
endAdornment: isLoading ? /* @__PURE__ */ React24.createElement(InputAdornment3, { position: "end" }, /* @__PURE__ */ React24.createElement(
|
|
3726
|
+
endAdornment: isLoading ? /* @__PURE__ */ React24.createElement(InputAdornment3, { position: "end" }, /* @__PURE__ */ React24.createElement(CircularProgress7, { size: 20 })) : null
|
|
3740
3727
|
},
|
|
3741
3728
|
InputLabelProps: { shrink: true },
|
|
3742
3729
|
inputRef: ref,
|
|
@@ -3749,7 +3736,7 @@ var FormInputText = ({
|
|
|
3749
3736
|
var text_type_default = FormInputText;
|
|
3750
3737
|
|
|
3751
3738
|
// src/text-field/number-pattern-input/index.tsx
|
|
3752
|
-
import
|
|
3739
|
+
import CircularProgress8 from "@mui/material/CircularProgress";
|
|
3753
3740
|
import InputAdornment4 from "@mui/material/InputAdornment";
|
|
3754
3741
|
import TextField5 from "@mui/material/TextField";
|
|
3755
3742
|
import React25, { forwardRef as forwardRef2 } from "react";
|
|
@@ -3814,7 +3801,7 @@ var PatternTextField = ({
|
|
|
3814
3801
|
format: formatPattern
|
|
3815
3802
|
// 👈 الگوی نمایش
|
|
3816
3803
|
},
|
|
3817
|
-
endAdornment: isLoading ? /* @__PURE__ */ React25.createElement(InputAdornment4, { position: "end" }, /* @__PURE__ */ React25.createElement(
|
|
3804
|
+
endAdornment: isLoading ? /* @__PURE__ */ React25.createElement(InputAdornment4, { position: "end" }, /* @__PURE__ */ React25.createElement(CircularProgress8, { size: 20 })) : null
|
|
3818
3805
|
},
|
|
3819
3806
|
InputLabelProps: { shrink: true },
|
|
3820
3807
|
inputRef: ref
|
|
@@ -3851,7 +3838,7 @@ import React26 from "react";
|
|
|
3851
3838
|
import {
|
|
3852
3839
|
Controller as Controller12
|
|
3853
3840
|
} from "react-hook-form";
|
|
3854
|
-
import { Box as Box18, Button as Button11, Stack as Stack5, Typography as
|
|
3841
|
+
import { Box as Box18, Button as Button11, Stack as Stack5, Typography as Typography13 } from "@mui/material";
|
|
3855
3842
|
import { GrUpload, GrGallery } from "react-icons/gr";
|
|
3856
3843
|
import { MdOutlineCameraAlt } from "react-icons/md";
|
|
3857
3844
|
import Image3 from "next/image";
|
|
@@ -4062,7 +4049,7 @@ var UploadImage = ({
|
|
|
4062
4049
|
},
|
|
4063
4050
|
"\u062D\u0630\u0641 \u062A\u0635\u0648\u06CC\u0631"
|
|
4064
4051
|
)
|
|
4065
|
-
), errors[name] && /* @__PURE__ */ React26.createElement(
|
|
4052
|
+
), errors[name] && /* @__PURE__ */ React26.createElement(Typography13, { color: "error", variant: "body2", sx: { mt: 1.5, ml: 1 } }, String(errors[name]?.message || "")))
|
|
4066
4053
|
}
|
|
4067
4054
|
);
|
|
4068
4055
|
};
|
|
@@ -4078,7 +4065,7 @@ import {
|
|
|
4078
4065
|
IconButton as IconButton9,
|
|
4079
4066
|
Stack as Stack6,
|
|
4080
4067
|
Tooltip as Tooltip3,
|
|
4081
|
-
Typography as
|
|
4068
|
+
Typography as Typography15,
|
|
4082
4069
|
useTheme as useTheme6
|
|
4083
4070
|
} from "@mui/material";
|
|
4084
4071
|
import Image5 from "next/image";
|
|
@@ -4092,10 +4079,10 @@ import { MdAddPhotoAlternate, MdOutlineCameraAlt as MdOutlineCameraAlt2 } from "
|
|
|
4092
4079
|
// src/enhanced-upload-image/ImageViewer.tsx
|
|
4093
4080
|
import {
|
|
4094
4081
|
Box as Box19,
|
|
4095
|
-
CircularProgress as
|
|
4082
|
+
CircularProgress as CircularProgress9,
|
|
4096
4083
|
Dialog as Dialog6,
|
|
4097
4084
|
IconButton as IconButton8,
|
|
4098
|
-
Typography as
|
|
4085
|
+
Typography as Typography14
|
|
4099
4086
|
} from "@mui/material";
|
|
4100
4087
|
import Image4 from "next/image";
|
|
4101
4088
|
import { useCallback, useEffect as useEffect9, useState as useState12 } from "react";
|
|
@@ -4218,7 +4205,7 @@ function ImageViewer({
|
|
|
4218
4205
|
},
|
|
4219
4206
|
/* @__PURE__ */ React.createElement(MdZoomOut, { color: "white" })
|
|
4220
4207
|
)),
|
|
4221
|
-
/* @__PURE__ */ React.createElement(
|
|
4208
|
+
/* @__PURE__ */ React.createElement(Typography14, { color: "white" }, title)
|
|
4222
4209
|
),
|
|
4223
4210
|
(isLoading || loading) && /* @__PURE__ */ React.createElement(
|
|
4224
4211
|
Box19,
|
|
@@ -4232,7 +4219,7 @@ function ImageViewer({
|
|
|
4232
4219
|
color: "white"
|
|
4233
4220
|
}
|
|
4234
4221
|
},
|
|
4235
|
-
/* @__PURE__ */ React.createElement(
|
|
4222
|
+
/* @__PURE__ */ React.createElement(CircularProgress9, { color: "inherit" })
|
|
4236
4223
|
),
|
|
4237
4224
|
/* @__PURE__ */ React.createElement(
|
|
4238
4225
|
Box19,
|
|
@@ -4480,7 +4467,7 @@ var UploadImage2 = ({
|
|
|
4480
4467
|
}
|
|
4481
4468
|
)
|
|
4482
4469
|
), /* @__PURE__ */ React27.createElement(
|
|
4483
|
-
|
|
4470
|
+
Typography15,
|
|
4484
4471
|
{
|
|
4485
4472
|
variant: "h6",
|
|
4486
4473
|
sx: {
|
|
@@ -4492,7 +4479,7 @@ var UploadImage2 = ({
|
|
|
4492
4479
|
},
|
|
4493
4480
|
placeholder
|
|
4494
4481
|
), /* @__PURE__ */ React27.createElement(
|
|
4495
|
-
|
|
4482
|
+
Typography15,
|
|
4496
4483
|
{
|
|
4497
4484
|
variant: "body2",
|
|
4498
4485
|
sx: {
|
|
@@ -4613,7 +4600,7 @@ var UploadImage2 = ({
|
|
|
4613
4600
|
}
|
|
4614
4601
|
},
|
|
4615
4602
|
/* @__PURE__ */ React27.createElement(
|
|
4616
|
-
|
|
4603
|
+
Typography15,
|
|
4617
4604
|
{
|
|
4618
4605
|
color: "error",
|
|
4619
4606
|
variant: "body2",
|
|
@@ -4649,7 +4636,7 @@ import MuiAccordionSummary, {
|
|
|
4649
4636
|
} from "@mui/material/AccordionSummary";
|
|
4650
4637
|
import MuiAccordionDetails from "@mui/material/AccordionDetails";
|
|
4651
4638
|
import {
|
|
4652
|
-
Typography as
|
|
4639
|
+
Typography as Typography16
|
|
4653
4640
|
} from "@mui/material";
|
|
4654
4641
|
import { useState as useState14 } from "react";
|
|
4655
4642
|
function Page({
|
|
@@ -4705,7 +4692,7 @@ function Page({
|
|
|
4705
4692
|
}
|
|
4706
4693
|
}
|
|
4707
4694
|
},
|
|
4708
|
-
/* @__PURE__ */ React.createElement(
|
|
4695
|
+
/* @__PURE__ */ React.createElement(Typography16, { component: "span" }, item.title)
|
|
4709
4696
|
),
|
|
4710
4697
|
/* @__PURE__ */ React.createElement(AccordionDetails, null, item.body)
|
|
4711
4698
|
);
|