@mamrp/components 1.4.16 → 1.5.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.
- package/dist/index.js +107 -83
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +79 -56
- package/dist/index.mjs.map +1 -1
- package/package.json +27 -26
package/dist/index.js
CHANGED
|
@@ -144,7 +144,7 @@ function LicensePlate({
|
|
|
144
144
|
readOnly = true,
|
|
145
145
|
size
|
|
146
146
|
}) {
|
|
147
|
-
const
|
|
147
|
+
const theme3 = (0, import_material.useTheme)();
|
|
148
148
|
const [open, setOpen] = (0, import_react.useState)(false);
|
|
149
149
|
const [selectedValue, setSelectedValue] = (0, import_react.useState)("");
|
|
150
150
|
const [inputValues, setInputValues] = (0, import_react.useState)({
|
|
@@ -271,7 +271,7 @@ function LicensePlate({
|
|
|
271
271
|
maxLength: 2,
|
|
272
272
|
placeholder: "- -",
|
|
273
273
|
style: {
|
|
274
|
-
color:
|
|
274
|
+
color: theme3.palette.text.primary,
|
|
275
275
|
width: "24px",
|
|
276
276
|
textAlign: "center",
|
|
277
277
|
backgroundColor: "transparent",
|
|
@@ -321,7 +321,7 @@ function LicensePlate({
|
|
|
321
321
|
maxLength: 3,
|
|
322
322
|
placeholder: "-",
|
|
323
323
|
style: {
|
|
324
|
-
color:
|
|
324
|
+
color: theme3.palette.text.primary,
|
|
325
325
|
width: "28px",
|
|
326
326
|
textAlign: "center",
|
|
327
327
|
backgroundColor: "transparent",
|
|
@@ -423,7 +423,7 @@ function LicensePlate({
|
|
|
423
423
|
maxLength: 3,
|
|
424
424
|
placeholder: "- - -",
|
|
425
425
|
style: {
|
|
426
|
-
color:
|
|
426
|
+
color: theme3.palette.text.primary,
|
|
427
427
|
width: "40px",
|
|
428
428
|
// w-10
|
|
429
429
|
textAlign: "center",
|
|
@@ -470,7 +470,7 @@ function LicensePlate({
|
|
|
470
470
|
maxLength: 2,
|
|
471
471
|
placeholder: "- -",
|
|
472
472
|
style: {
|
|
473
|
-
color:
|
|
473
|
+
color: theme3.palette.text.primary,
|
|
474
474
|
width: "24px",
|
|
475
475
|
textAlign: "center",
|
|
476
476
|
backgroundColor: "transparent",
|
|
@@ -741,7 +741,7 @@ function AdvancedSearchButton({
|
|
|
741
741
|
paddingY,
|
|
742
742
|
fontSize
|
|
743
743
|
}) {
|
|
744
|
-
const
|
|
744
|
+
const theme3 = (0, import_material4.useTheme)();
|
|
745
745
|
return /* @__PURE__ */ import_react3.default.createElement(
|
|
746
746
|
import_material4.Button,
|
|
747
747
|
{
|
|
@@ -751,7 +751,7 @@ function AdvancedSearchButton({
|
|
|
751
751
|
},
|
|
752
752
|
startIcon: /* @__PURE__ */ import_react3.default.createElement(AnimatedIcon, { isShowFilter }),
|
|
753
753
|
sx: {
|
|
754
|
-
color:
|
|
754
|
+
color: theme3.palette.text.primary ?? color,
|
|
755
755
|
borderRadius,
|
|
756
756
|
paddingY,
|
|
757
757
|
fontSize
|
|
@@ -894,7 +894,7 @@ function ConfirmationDialog({
|
|
|
894
894
|
position: "absolute",
|
|
895
895
|
right: 8,
|
|
896
896
|
top: 8,
|
|
897
|
-
color: (
|
|
897
|
+
color: (theme3) => theme3.palette.grey[500]
|
|
898
898
|
}
|
|
899
899
|
},
|
|
900
900
|
/* @__PURE__ */ React7.createElement(import_md.MdClose, null)
|
|
@@ -1008,7 +1008,7 @@ var TimePickerComponent = ({
|
|
|
1008
1008
|
autoRefresh,
|
|
1009
1009
|
disabled = false
|
|
1010
1010
|
}) => {
|
|
1011
|
-
const
|
|
1011
|
+
const theme3 = (0, import_material8.useTheme)();
|
|
1012
1012
|
const initialHour = value ? parseInt(value.split(":")[0]) : null;
|
|
1013
1013
|
const initialMinute = value ? parseInt(value.split(":")[1]) : null;
|
|
1014
1014
|
const [isModalOpen, setIsModalOpen] = (0, import_react6.useState)(false);
|
|
@@ -1105,7 +1105,7 @@ var TimePickerComponent = ({
|
|
|
1105
1105
|
},
|
|
1106
1106
|
InputProps: {
|
|
1107
1107
|
...!disabled && {
|
|
1108
|
-
endAdornment: /* @__PURE__ */ React.createElement(import_material8.InputAdornment, { position: "end" }, /* @__PURE__ */ React.createElement(import_Tooltip.default, { title: "\u0627\u0646\u062A\u062E\u0627\u0628 \u0632\u0645\u0627\u0646" }, /* @__PURE__ */ React.createElement(import_material8.IconButton, { onClick: () => setIsModalOpen(true) }, /* @__PURE__ */ React.createElement(import_common.Clock, { size: 22, color:
|
|
1108
|
+
endAdornment: /* @__PURE__ */ React.createElement(import_material8.InputAdornment, { position: "end" }, /* @__PURE__ */ React.createElement(import_Tooltip.default, { title: "\u0627\u0646\u062A\u062E\u0627\u0628 \u0632\u0645\u0627\u0646" }, /* @__PURE__ */ React.createElement(import_material8.IconButton, { onClick: () => setIsModalOpen(true) }, /* @__PURE__ */ React.createElement(import_common.Clock, { size: 22, color: theme3.palette.text.primary }))))
|
|
1109
1109
|
}
|
|
1110
1110
|
},
|
|
1111
1111
|
sx: { width: fullwidth ? "100%" : "8rem" },
|
|
@@ -1139,7 +1139,7 @@ var TimePickerComponent = ({
|
|
|
1139
1139
|
position: "absolute",
|
|
1140
1140
|
right: 8,
|
|
1141
1141
|
top: 8,
|
|
1142
|
-
color: (
|
|
1142
|
+
color: (theme4) => theme4.palette.grey[500]
|
|
1143
1143
|
}
|
|
1144
1144
|
},
|
|
1145
1145
|
/* @__PURE__ */ React.createElement(import_md2.MdClose, null)
|
|
@@ -1213,7 +1213,7 @@ var import_system = require("@mui/system");
|
|
|
1213
1213
|
var import_moment = __toESM(require("moment"));
|
|
1214
1214
|
var import_react8 = require("react");
|
|
1215
1215
|
var import_react_hook_form5 = require("react-hook-form");
|
|
1216
|
-
var
|
|
1216
|
+
var import_fa2 = require("react-icons/fa");
|
|
1217
1217
|
var yup = __toESM(require("yup"));
|
|
1218
1218
|
|
|
1219
1219
|
// src/date-picker/index.tsx
|
|
@@ -1224,7 +1224,6 @@ var import_AdapterMomentJalaali = require("@mui/x-date-pickers/AdapterMomentJala
|
|
|
1224
1224
|
var import_dayjs = __toESM(require("dayjs"));
|
|
1225
1225
|
var import_moment_jalaali = __toESM(require("moment-jalaali"));
|
|
1226
1226
|
var import_react7 = __toESM(require("react"));
|
|
1227
|
-
var import_fa2 = require("moment/locale/fa");
|
|
1228
1227
|
var import_react_hook_form4 = require("react-hook-form");
|
|
1229
1228
|
var import_md3 = require("react-icons/md");
|
|
1230
1229
|
import_moment_jalaali.default.locale("fa");
|
|
@@ -1458,6 +1457,28 @@ var JalaliDatePicker = ({
|
|
|
1458
1457
|
);
|
|
1459
1458
|
},
|
|
1460
1459
|
monthButton: (props) => {
|
|
1460
|
+
const ariaLabel = props["aria-label"] || "";
|
|
1461
|
+
let monthName = ariaLabel;
|
|
1462
|
+
const persianMonths = [
|
|
1463
|
+
"\u0641\u0631\u0648\u0631\u062F\u06CC\u0646",
|
|
1464
|
+
"\u0627\u0631\u062F\u06CC\u0628\u0647\u0634\u062A",
|
|
1465
|
+
"\u062E\u0631\u062F\u0627\u062F",
|
|
1466
|
+
"\u062A\u06CC\u0631",
|
|
1467
|
+
"\u0645\u0631\u062F\u0627\u062F",
|
|
1468
|
+
"\u0634\u0647\u0631\u06CC\u0648\u0631",
|
|
1469
|
+
"\u0645\u0647\u0631",
|
|
1470
|
+
"\u0622\u0628\u0627\u0646",
|
|
1471
|
+
"\u0622\u0630\u0631",
|
|
1472
|
+
"\u062F\u06CC",
|
|
1473
|
+
"\u0628\u0647\u0645\u0646",
|
|
1474
|
+
"\u0627\u0633\u0641\u0646\u062F"
|
|
1475
|
+
];
|
|
1476
|
+
if (monthName.startsWith("\u0627")) {
|
|
1477
|
+
const withoutAlef = monthName.substring(1);
|
|
1478
|
+
if (persianMonths.includes(withoutAlef)) {
|
|
1479
|
+
monthName = withoutAlef;
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1461
1482
|
return /* @__PURE__ */ import_react7.default.createElement(
|
|
1462
1483
|
"button",
|
|
1463
1484
|
{
|
|
@@ -1478,7 +1499,7 @@ var JalaliDatePicker = ({
|
|
|
1478
1499
|
onClick: props.onClick,
|
|
1479
1500
|
ref: props.ref
|
|
1480
1501
|
},
|
|
1481
|
-
|
|
1502
|
+
monthName
|
|
1482
1503
|
);
|
|
1483
1504
|
}
|
|
1484
1505
|
},
|
|
@@ -1555,7 +1576,7 @@ function DateFilterRange({ FromDate, ToDate }) {
|
|
|
1555
1576
|
onClick: () => handleDate("forward", "time"),
|
|
1556
1577
|
disabled: isNextDisabled || isNextDisabledTime
|
|
1557
1578
|
},
|
|
1558
|
-
/* @__PURE__ */ React.createElement(
|
|
1579
|
+
/* @__PURE__ */ React.createElement(import_fa2.FaChevronRight, { size: 30 })
|
|
1559
1580
|
)), /* @__PURE__ */ React.createElement(import_Grid2.default, { size: { xs: 7, sm: 8, md: 8, lg: 6 } }, /* @__PURE__ */ React.createElement(date_picker_default, { name: "time", control, label: "\u062A\u0627\u0631\u06CC\u062E \u0627\u0632", maxDate: (0, import_moment.default)(watch("time2")), align: "center", persian: true, clear: false, size: isSmMobile ? "small" : "medium" })), /* @__PURE__ */ React.createElement(import_Grid2.default, { size: 2, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React.createElement(
|
|
1560
1581
|
import_Button2.default,
|
|
1561
1582
|
{
|
|
@@ -1567,7 +1588,7 @@ function DateFilterRange({ FromDate, ToDate }) {
|
|
|
1567
1588
|
},
|
|
1568
1589
|
onClick: () => handleDate("backward", "time")
|
|
1569
1590
|
},
|
|
1570
|
-
/* @__PURE__ */ React.createElement(
|
|
1591
|
+
/* @__PURE__ */ React.createElement(import_fa2.FaChevronLeft, { size: 30 })
|
|
1571
1592
|
))), /* @__PURE__ */ React.createElement(import_Grid2.default, { container: true, size: 12, width: !isMobile ? "50%" : "100%", alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React.createElement(import_Grid2.default, { size: 2, justifyContent: "start" }, /* @__PURE__ */ React.createElement(
|
|
1572
1593
|
import_Button2.default,
|
|
1573
1594
|
{
|
|
@@ -1580,7 +1601,7 @@ function DateFilterRange({ FromDate, ToDate }) {
|
|
|
1580
1601
|
onClick: () => handleDate("forward", "time2"),
|
|
1581
1602
|
disabled: isNextDisabledTime2
|
|
1582
1603
|
},
|
|
1583
|
-
/* @__PURE__ */ React.createElement(
|
|
1604
|
+
/* @__PURE__ */ React.createElement(import_fa2.FaChevronRight, { size: 30 })
|
|
1584
1605
|
)), /* @__PURE__ */ React.createElement(import_Grid2.default, { size: { xs: 7, sm: 8, md: 8, lg: 6 } }, /* @__PURE__ */ React.createElement(date_picker_default, { name: "time2", control, label: "\u062A\u0627\u0631\u06CC\u062E \u062A\u0627", minDate: (0, import_moment.default)(watch("time")), persian: true, align: "center", clear: false, size: isSmMobile ? "small" : "medium" })), /* @__PURE__ */ React.createElement(import_Grid2.default, { size: 2, display: "flex", justifyContent: "end" }, /* @__PURE__ */ React.createElement(
|
|
1585
1606
|
import_Button2.default,
|
|
1586
1607
|
{
|
|
@@ -1593,7 +1614,7 @@ function DateFilterRange({ FromDate, ToDate }) {
|
|
|
1593
1614
|
onClick: () => handleDate("backward", "time2"),
|
|
1594
1615
|
disabled: isLastDisabledTime
|
|
1595
1616
|
},
|
|
1596
|
-
/* @__PURE__ */ React.createElement(
|
|
1617
|
+
/* @__PURE__ */ React.createElement(import_fa2.FaChevronLeft, { size: 30 })
|
|
1597
1618
|
)))), /* @__PURE__ */ React.createElement(import_Grid2.default, { container: true, size: 12 }, /* @__PURE__ */ React.createElement(import_Grid2.default, { size: 12 })));
|
|
1598
1619
|
}
|
|
1599
1620
|
|
|
@@ -1606,7 +1627,7 @@ var import_moment2 = __toESM(require("moment"));
|
|
|
1606
1627
|
var import_react9 = __toESM(require("react"));
|
|
1607
1628
|
var import_react10 = require("react");
|
|
1608
1629
|
var import_react_hook_form6 = require("react-hook-form");
|
|
1609
|
-
var
|
|
1630
|
+
var import_fa3 = require("react-icons/fa");
|
|
1610
1631
|
var yup2 = __toESM(require("yup"));
|
|
1611
1632
|
var nowUTC2 = import_moment2.default.utc();
|
|
1612
1633
|
var dateTimeWithIranTime3 = nowUTC2;
|
|
@@ -1660,7 +1681,7 @@ function DateFilter({ setHandler }) {
|
|
|
1660
1681
|
onClick: () => handleDate("forward"),
|
|
1661
1682
|
disabled: isNextDisabled
|
|
1662
1683
|
},
|
|
1663
|
-
/* @__PURE__ */ import_react9.default.createElement(
|
|
1684
|
+
/* @__PURE__ */ import_react9.default.createElement(import_fa3.FaChevronRight, { size: 30 })
|
|
1664
1685
|
)), /* @__PURE__ */ import_react9.default.createElement(import_Grid22.default, { size: { xs: 7, sm: 8, md: 8, lg: 6 } }, /* @__PURE__ */ import_react9.default.createElement(date_picker_default, { name: "time", control, label: "", persian: true, clear: false, align: "center", size: isSmMobile ? "small" : "medium" })), /* @__PURE__ */ import_react9.default.createElement(import_Grid22.default, { size: 2, display: "flex", justifyContent: "end" }, /* @__PURE__ */ import_react9.default.createElement(
|
|
1665
1686
|
import_Button3.default,
|
|
1666
1687
|
{
|
|
@@ -1672,7 +1693,7 @@ function DateFilter({ setHandler }) {
|
|
|
1672
1693
|
},
|
|
1673
1694
|
onClick: () => handleDate("backward")
|
|
1674
1695
|
},
|
|
1675
|
-
/* @__PURE__ */ import_react9.default.createElement(
|
|
1696
|
+
/* @__PURE__ */ import_react9.default.createElement(import_fa3.FaChevronLeft, { size: 30 })
|
|
1676
1697
|
)))), /* @__PURE__ */ import_react9.default.createElement(import_Grid22.default, { container: true, size: 12 }, /* @__PURE__ */ import_react9.default.createElement(import_Grid22.default, { size: 12 })));
|
|
1677
1698
|
}
|
|
1678
1699
|
|
|
@@ -2019,26 +2040,7 @@ var import_AdapterMomentJalaali4 = require("@mui/x-date-pickers/AdapterMomentJal
|
|
|
2019
2040
|
var import_dayjs2 = __toESM(require("dayjs"));
|
|
2020
2041
|
var import_moment_jalaali4 = __toESM(require("moment-jalaali"));
|
|
2021
2042
|
var import_react13 = __toESM(require("react"));
|
|
2022
|
-
var import_fa5 = require("moment/locale/fa");
|
|
2023
2043
|
var import_react_hook_form9 = require("react-hook-form");
|
|
2024
|
-
import_moment_jalaali4.default.locale("fa");
|
|
2025
|
-
import_moment_jalaali4.default.loadPersian({ dialect: "persian-modern", usePersianDigits: true });
|
|
2026
|
-
import_moment_jalaali4.default.updateLocale("fa", {
|
|
2027
|
-
months: [
|
|
2028
|
-
"\u0641\u0631\u0648\u0631\u062F\u06CC\u0646",
|
|
2029
|
-
"\u0627\u0631\u062F\u06CC\u0628\u0647\u0634\u062A",
|
|
2030
|
-
"\u062E\u0631\u062F\u0627\u062F",
|
|
2031
|
-
"\u062A\u06CC\u0631",
|
|
2032
|
-
"\u0645\u0631\u062F\u0627\u062F",
|
|
2033
|
-
"\u0634\u0647\u0631\u06CC\u0648\u0631",
|
|
2034
|
-
"\u0645\u0647\u0631",
|
|
2035
|
-
"\u0622\u0628\u0627\u0646",
|
|
2036
|
-
"\u0622\u0630\u0631",
|
|
2037
|
-
"\u062F\u06CC",
|
|
2038
|
-
"\u0628\u0647\u0645\u0646",
|
|
2039
|
-
"\u0627\u0633\u0641\u0646\u062F"
|
|
2040
|
-
]
|
|
2041
|
-
});
|
|
2042
2044
|
var DateMonthPicker = ({
|
|
2043
2045
|
name,
|
|
2044
2046
|
control,
|
|
@@ -2185,6 +2187,28 @@ var DateMonthPicker = ({
|
|
|
2185
2187
|
);
|
|
2186
2188
|
},
|
|
2187
2189
|
monthButton: (props) => {
|
|
2190
|
+
const ariaLabel = props["aria-label"] || "";
|
|
2191
|
+
let monthName = ariaLabel;
|
|
2192
|
+
const persianMonths = [
|
|
2193
|
+
"\u0641\u0631\u0648\u0631\u062F\u06CC\u0646",
|
|
2194
|
+
"\u0627\u0631\u062F\u06CC\u0628\u0647\u0634\u062A",
|
|
2195
|
+
"\u062E\u0631\u062F\u0627\u062F",
|
|
2196
|
+
"\u062A\u06CC\u0631",
|
|
2197
|
+
"\u0645\u0631\u062F\u0627\u062F",
|
|
2198
|
+
"\u0634\u0647\u0631\u06CC\u0648\u0631",
|
|
2199
|
+
"\u0645\u0647\u0631",
|
|
2200
|
+
"\u0622\u0628\u0627\u0646",
|
|
2201
|
+
"\u0622\u0630\u0631",
|
|
2202
|
+
"\u062F\u06CC",
|
|
2203
|
+
"\u0628\u0647\u0645\u0646",
|
|
2204
|
+
"\u0627\u0633\u0641\u0646\u062F"
|
|
2205
|
+
];
|
|
2206
|
+
if (monthName.startsWith("\u0627")) {
|
|
2207
|
+
const withoutAlef = monthName.substring(1);
|
|
2208
|
+
if (persianMonths.includes(withoutAlef)) {
|
|
2209
|
+
monthName = withoutAlef;
|
|
2210
|
+
}
|
|
2211
|
+
}
|
|
2188
2212
|
return /* @__PURE__ */ import_react13.default.createElement(
|
|
2189
2213
|
"button",
|
|
2190
2214
|
{
|
|
@@ -2205,7 +2229,7 @@ var DateMonthPicker = ({
|
|
|
2205
2229
|
onClick: props.onClick,
|
|
2206
2230
|
ref: props.ref
|
|
2207
2231
|
},
|
|
2208
|
-
|
|
2232
|
+
monthName,
|
|
2209
2233
|
" "
|
|
2210
2234
|
);
|
|
2211
2235
|
}
|
|
@@ -2882,7 +2906,7 @@ function ConfirmationDialog2({
|
|
|
2882
2906
|
position: "absolute",
|
|
2883
2907
|
right: 8,
|
|
2884
2908
|
top: 8,
|
|
2885
|
-
color: (
|
|
2909
|
+
color: (theme3) => theme3.palette.grey[500]
|
|
2886
2910
|
}
|
|
2887
2911
|
},
|
|
2888
2912
|
/* @__PURE__ */ React15.createElement(import_md4.MdClose, null)
|
|
@@ -2935,7 +2959,7 @@ function NoResult({
|
|
|
2935
2959
|
description,
|
|
2936
2960
|
sx = {}
|
|
2937
2961
|
}) {
|
|
2938
|
-
const
|
|
2962
|
+
const theme3 = (0, import_material16.useTheme)();
|
|
2939
2963
|
return /* @__PURE__ */ import_react17.default.createElement(
|
|
2940
2964
|
import_material16.Card,
|
|
2941
2965
|
{
|
|
@@ -2943,7 +2967,7 @@ function NoResult({
|
|
|
2943
2967
|
width: "100%",
|
|
2944
2968
|
minWidth: 300,
|
|
2945
2969
|
borderRadius: "12px",
|
|
2946
|
-
border: `1px solid ${
|
|
2970
|
+
border: `1px solid ${theme3.palette.secondary.light}`
|
|
2947
2971
|
}
|
|
2948
2972
|
},
|
|
2949
2973
|
/* @__PURE__ */ import_react17.default.createElement(
|
|
@@ -2976,7 +3000,7 @@ var import_material17 = require("@mui/material");
|
|
|
2976
3000
|
var import_Stack = __toESM(require("@mui/material/Stack"));
|
|
2977
3001
|
var import_system5 = require("@mui/system");
|
|
2978
3002
|
var React17 = __toESM(require("react"));
|
|
2979
|
-
var
|
|
3003
|
+
var import_fa4 = require("react-icons/fa");
|
|
2980
3004
|
function PaginationList({
|
|
2981
3005
|
currentPage,
|
|
2982
3006
|
setCurrentPage,
|
|
@@ -3020,7 +3044,7 @@ function PaginationList({
|
|
|
3020
3044
|
justifyContent: "center"
|
|
3021
3045
|
},
|
|
3022
3046
|
size: "large",
|
|
3023
|
-
startIcon: /* @__PURE__ */ React17.createElement(
|
|
3047
|
+
startIcon: /* @__PURE__ */ React17.createElement(import_fa4.FaChevronRight, null)
|
|
3024
3048
|
},
|
|
3025
3049
|
"\u0642\u0628\u0644\u06CC",
|
|
3026
3050
|
" "
|
|
@@ -3061,7 +3085,7 @@ function PaginationList({
|
|
|
3061
3085
|
justifyContent: "center"
|
|
3062
3086
|
},
|
|
3063
3087
|
size: "large",
|
|
3064
|
-
endIcon: /* @__PURE__ */ React17.createElement(
|
|
3088
|
+
endIcon: /* @__PURE__ */ React17.createElement(import_fa4.FaChevronLeft, null)
|
|
3065
3089
|
},
|
|
3066
3090
|
"\u0628\u0639\u062F\u06CC",
|
|
3067
3091
|
" "
|
|
@@ -4267,6 +4291,7 @@ function ImageViewer({
|
|
|
4267
4291
|
}
|
|
4268
4292
|
|
|
4269
4293
|
// src/enhanced-upload-image/index.tsx
|
|
4294
|
+
var import_theme2 = __toESM(require("@mamrp/layout/theme"));
|
|
4270
4295
|
var UploadImage2 = ({
|
|
4271
4296
|
placeholder,
|
|
4272
4297
|
name,
|
|
@@ -4279,7 +4304,6 @@ var UploadImage2 = ({
|
|
|
4279
4304
|
allowGallery = false,
|
|
4280
4305
|
imageFit = "cover"
|
|
4281
4306
|
}) => {
|
|
4282
|
-
const theme2 = (0, import_material24.useTheme)();
|
|
4283
4307
|
const [viewerOpen, setViewerOpen] = (0, import_react27.useState)(false);
|
|
4284
4308
|
const [viewerSrc, setViewerSrc] = (0, import_react27.useState)("");
|
|
4285
4309
|
const compressImage = (file, quality = 0.9, maxWidth = 1600, maxHeight = 1600) => {
|
|
@@ -4374,13 +4398,13 @@ var UploadImage2 = ({
|
|
|
4374
4398
|
height,
|
|
4375
4399
|
borderRadius: 3,
|
|
4376
4400
|
overflow: "hidden",
|
|
4377
|
-
backgroundColor: selectedImage ? "transparent" : (0, import_material24.alpha)(
|
|
4378
|
-
border: selectedImage ? `2px solid ${(0, import_material24.alpha)(
|
|
4401
|
+
backgroundColor: selectedImage ? "transparent" : (0, import_material24.alpha)(import_theme2.default.palette.primary.main, 0.02),
|
|
4402
|
+
border: selectedImage ? `2px solid ${(0, import_material24.alpha)(import_theme2.default.palette.primary.main, 0.1)}` : `2px dashed ${(0, import_material24.alpha)(import_theme2.default.palette.primary.main, 0.2)}`,
|
|
4379
4403
|
transition: "all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",
|
|
4380
4404
|
cursor: allowGallery ? "default" : "pointer",
|
|
4381
4405
|
"&:hover": {
|
|
4382
|
-
borderColor: selectedImage ? (0, import_material24.alpha)(
|
|
4383
|
-
backgroundColor: selectedImage ? "transparent" : (0, import_material24.alpha)(
|
|
4406
|
+
borderColor: selectedImage ? (0, import_material24.alpha)(import_theme2.default.palette.primary.main, 0.3) : (0, import_material24.alpha)(import_theme2.default.palette.primary.main, 0.4),
|
|
4407
|
+
backgroundColor: selectedImage ? "transparent" : (0, import_material24.alpha)(import_theme2.default.palette.primary.main, 0.04)
|
|
4384
4408
|
}
|
|
4385
4409
|
}
|
|
4386
4410
|
},
|
|
@@ -4416,17 +4440,17 @@ var UploadImage2 = ({
|
|
|
4416
4440
|
position: "absolute",
|
|
4417
4441
|
top: 12,
|
|
4418
4442
|
right: 12,
|
|
4419
|
-
backgroundColor: (0, import_material24.alpha)(
|
|
4443
|
+
backgroundColor: (0, import_material24.alpha)(import_theme2.default.palette.error.main, 0.9),
|
|
4420
4444
|
color: "white",
|
|
4421
4445
|
width: 40,
|
|
4422
4446
|
height: 40,
|
|
4423
4447
|
"&:hover": {
|
|
4424
|
-
backgroundColor:
|
|
4448
|
+
backgroundColor: import_theme2.default.palette.error.main,
|
|
4425
4449
|
transform: "scale(1.1)"
|
|
4426
4450
|
},
|
|
4427
4451
|
transition: "all 0.2s ease",
|
|
4428
4452
|
boxShadow: `0 4px 12px ${(0, import_material24.alpha)(
|
|
4429
|
-
|
|
4453
|
+
import_theme2.default.palette.error.main,
|
|
4430
4454
|
0.3
|
|
4431
4455
|
)}`
|
|
4432
4456
|
}
|
|
@@ -4451,7 +4475,7 @@ var UploadImage2 = ({
|
|
|
4451
4475
|
height: 64,
|
|
4452
4476
|
borderRadius: "50%",
|
|
4453
4477
|
backgroundColor: (0, import_material24.alpha)(
|
|
4454
|
-
|
|
4478
|
+
import_theme2.default.palette.successLight.main,
|
|
4455
4479
|
0.1
|
|
4456
4480
|
),
|
|
4457
4481
|
display: "flex",
|
|
@@ -4464,7 +4488,7 @@ var UploadImage2 = ({
|
|
|
4464
4488
|
import_md8.MdAddPhotoAlternate,
|
|
4465
4489
|
{
|
|
4466
4490
|
size: 32,
|
|
4467
|
-
color:
|
|
4491
|
+
color: import_theme2.default.palette.successLight.main,
|
|
4468
4492
|
style: { opacity: 0.8 }
|
|
4469
4493
|
}
|
|
4470
4494
|
)
|
|
@@ -4473,7 +4497,7 @@ var UploadImage2 = ({
|
|
|
4473
4497
|
{
|
|
4474
4498
|
variant: "h6",
|
|
4475
4499
|
sx: {
|
|
4476
|
-
color:
|
|
4500
|
+
color: import_theme2.default.palette.text.primary,
|
|
4477
4501
|
fontWeight: 500,
|
|
4478
4502
|
textAlign: "center",
|
|
4479
4503
|
mb: 1
|
|
@@ -4485,7 +4509,7 @@ var UploadImage2 = ({
|
|
|
4485
4509
|
{
|
|
4486
4510
|
variant: "body2",
|
|
4487
4511
|
sx: {
|
|
4488
|
-
color:
|
|
4512
|
+
color: import_theme2.default.palette.text.secondary,
|
|
4489
4513
|
textAlign: "center",
|
|
4490
4514
|
fontSize: "0.875rem"
|
|
4491
4515
|
}
|
|
@@ -4507,20 +4531,20 @@ var UploadImage2 = ({
|
|
|
4507
4531
|
textTransform: "none",
|
|
4508
4532
|
fontWeight: 600,
|
|
4509
4533
|
boxShadow: `0 4px 12px ${(0, import_material24.alpha)(
|
|
4510
|
-
|
|
4534
|
+
import_theme2.default.palette.successLight.main,
|
|
4511
4535
|
0.3
|
|
4512
4536
|
)}`,
|
|
4513
4537
|
zIndex: 1,
|
|
4514
4538
|
transition: "all 0.2s ease",
|
|
4515
4539
|
"&:hover": {
|
|
4516
4540
|
boxShadow: `0 6px 20px ${(0, import_material24.alpha)(
|
|
4517
|
-
|
|
4541
|
+
import_theme2.default.palette.successLight.main,
|
|
4518
4542
|
0.4
|
|
4519
4543
|
)}`,
|
|
4520
4544
|
transform: "translateY(-1px)"
|
|
4521
4545
|
}
|
|
4522
4546
|
},
|
|
4523
|
-
color: "
|
|
4547
|
+
color: "success"
|
|
4524
4548
|
},
|
|
4525
4549
|
"\u062F\u0648\u0631\u0628\u06CC\u0646"
|
|
4526
4550
|
), /* @__PURE__ */ import_react27.default.createElement(
|
|
@@ -4541,13 +4565,13 @@ var UploadImage2 = ({
|
|
|
4541
4565
|
transition: "all 0.2s ease",
|
|
4542
4566
|
"&:hover": {
|
|
4543
4567
|
boxShadow: `0 6px 20px ${(0, import_material24.alpha)(
|
|
4544
|
-
|
|
4568
|
+
import_theme2.default.palette.successLight.main,
|
|
4545
4569
|
0.4
|
|
4546
4570
|
)}`,
|
|
4547
4571
|
transform: "translateY(-1px)"
|
|
4548
4572
|
}
|
|
4549
4573
|
},
|
|
4550
|
-
color: "
|
|
4574
|
+
color: "success"
|
|
4551
4575
|
},
|
|
4552
4576
|
"\u06AF\u0627\u0644\u0631\u06CC"
|
|
4553
4577
|
))
|
|
@@ -4597,8 +4621,8 @@ var UploadImage2 = ({
|
|
|
4597
4621
|
mt: 1.5,
|
|
4598
4622
|
p: 1.5,
|
|
4599
4623
|
borderRadius: 1,
|
|
4600
|
-
backgroundColor: (0, import_material24.alpha)(
|
|
4601
|
-
border: `1px solid ${(0, import_material24.alpha)(
|
|
4624
|
+
backgroundColor: (0, import_material24.alpha)(import_theme2.default.palette.error.main, 0.05),
|
|
4625
|
+
border: `1px solid ${(0, import_material24.alpha)(import_theme2.default.palette.error.main, 0.2)}`
|
|
4602
4626
|
}
|
|
4603
4627
|
},
|
|
4604
4628
|
/* @__PURE__ */ import_react27.default.createElement(
|
|
@@ -4640,8 +4664,8 @@ var import_react28 = require("react");
|
|
|
4640
4664
|
function Page({
|
|
4641
4665
|
data
|
|
4642
4666
|
}) {
|
|
4643
|
-
const Accordion = (0, import_styles2.styled)((props) => /* @__PURE__ */ React.createElement(import_Accordion.default, { disableGutters: true, elevation: 0, square: true, ...props }))(({ theme:
|
|
4644
|
-
border: `1px solid ${
|
|
4667
|
+
const Accordion = (0, import_styles2.styled)((props) => /* @__PURE__ */ React.createElement(import_Accordion.default, { disableGutters: true, elevation: 0, square: true, ...props }))(({ theme: theme3 }) => ({
|
|
4668
|
+
border: `1px solid ${theme3.palette.divider}`,
|
|
4645
4669
|
"&:not(:last-child)": {
|
|
4646
4670
|
borderBottom: 0
|
|
4647
4671
|
},
|
|
@@ -4649,21 +4673,21 @@ function Page({
|
|
|
4649
4673
|
display: "none"
|
|
4650
4674
|
}
|
|
4651
4675
|
}));
|
|
4652
|
-
const AccordionSummary = (0, import_styles2.styled)((props) => /* @__PURE__ */ React.createElement(import_AccordionSummary.default, { expandIcon: /* @__PURE__ */ React.createElement(import_io2.IoIosArrowForward, null), ...props }))(({ theme:
|
|
4676
|
+
const AccordionSummary = (0, import_styles2.styled)((props) => /* @__PURE__ */ React.createElement(import_AccordionSummary.default, { expandIcon: /* @__PURE__ */ React.createElement(import_io2.IoIosArrowForward, null), ...props }))(({ theme: theme3 }) => ({
|
|
4653
4677
|
backgroundColor: "rgba(0, 0, 0, .03)",
|
|
4654
4678
|
flexDirection: "row-reverse",
|
|
4655
4679
|
[`& .${import_AccordionSummary.accordionSummaryClasses.expandIconWrapper}.${import_AccordionSummary.accordionSummaryClasses.expanded}`]: {
|
|
4656
4680
|
transform: "rotate(90deg)"
|
|
4657
4681
|
},
|
|
4658
4682
|
[`& .${import_AccordionSummary.accordionSummaryClasses.content}`]: {
|
|
4659
|
-
marginLeft:
|
|
4683
|
+
marginLeft: theme3.spacing(1)
|
|
4660
4684
|
},
|
|
4661
|
-
...
|
|
4685
|
+
...theme3.applyStyles("dark", {
|
|
4662
4686
|
backgroundColor: "rgba(255, 255, 255, .05)"
|
|
4663
4687
|
})
|
|
4664
4688
|
}));
|
|
4665
|
-
const AccordionDetails = (0, import_styles2.styled)(import_AccordionDetails.default)(({ theme:
|
|
4666
|
-
padding:
|
|
4689
|
+
const AccordionDetails = (0, import_styles2.styled)(import_AccordionDetails.default)(({ theme: theme3 }) => ({
|
|
4690
|
+
padding: theme3.spacing(2),
|
|
4667
4691
|
borderTop: "1px solid rgba(0, 0, 0, .125)"
|
|
4668
4692
|
}));
|
|
4669
4693
|
const [expanded, setExpanded] = (0, import_react28.useState)("");
|
|
@@ -4709,11 +4733,11 @@ var SwitchButton = ({
|
|
|
4709
4733
|
iconChecked,
|
|
4710
4734
|
iconUnchecked
|
|
4711
4735
|
}) => {
|
|
4712
|
-
const
|
|
4713
|
-
const isDarkMode =
|
|
4714
|
-
const CustomSwitch = (0, import_system8.styled)(import_material26.Switch)(({ theme:
|
|
4736
|
+
const theme3 = (0, import_material27.useTheme)();
|
|
4737
|
+
const isDarkMode = theme3.palette.mode === "dark";
|
|
4738
|
+
const CustomSwitch = (0, import_system8.styled)(import_material26.Switch)(({ theme: theme4 }) => ({
|
|
4715
4739
|
"& .MuiSwitch-switchBase.Mui-checked": {
|
|
4716
|
-
color:
|
|
4740
|
+
color: theme4.palette.primary.main
|
|
4717
4741
|
},
|
|
4718
4742
|
"& .MuiSwitch-switchBase": {
|
|
4719
4743
|
color: isDarkMode ? "rgba(220,220,220,1)" : "rgba(188,188,188,1)"
|
|
@@ -4724,16 +4748,16 @@ var SwitchButton = ({
|
|
|
4724
4748
|
border: isDarkMode ? "2px solid white" : "2px solid rgba(80,80,80, 1)"
|
|
4725
4749
|
}
|
|
4726
4750
|
}));
|
|
4727
|
-
const BoxContainer = (0, import_system8.styled)(import_material26.Box)(({ theme:
|
|
4751
|
+
const BoxContainer = (0, import_system8.styled)(import_material26.Box)(({ theme: theme4 }) => ({
|
|
4728
4752
|
display: "flex",
|
|
4729
4753
|
alignItems: "center",
|
|
4730
4754
|
backgroundColor: "rgba(188,188,188, 0.1)",
|
|
4731
4755
|
border: "2px solid rgba(200,200,200, 1)",
|
|
4732
4756
|
borderRadius: 10,
|
|
4733
4757
|
transition: "all 0.3s ease",
|
|
4734
|
-
paddingTop:
|
|
4735
|
-
paddingBottom:
|
|
4736
|
-
paddingLeft:
|
|
4758
|
+
paddingTop: theme4.spacing(0.1),
|
|
4759
|
+
paddingBottom: theme4.spacing(0.1),
|
|
4760
|
+
paddingLeft: theme4.spacing(1)
|
|
4737
4761
|
}));
|
|
4738
4762
|
const LabelContainer = (0, import_system8.styled)("div")({
|
|
4739
4763
|
transition: "all 0.2s ease",
|
|
@@ -4855,10 +4879,10 @@ function DraggablePaper({
|
|
|
4855
4879
|
var import_Clear = __toESM(require("@mui/icons-material/Clear"));
|
|
4856
4880
|
var import_material30 = require("@mui/material");
|
|
4857
4881
|
var import_material_react_table = require("material-react-table");
|
|
4858
|
-
var
|
|
4882
|
+
var import_fa5 = require("material-react-table/locales/fa");
|
|
4859
4883
|
var import_react32 = require("react");
|
|
4860
4884
|
var customLocalization = {
|
|
4861
|
-
...
|
|
4885
|
+
...import_fa5.MRT_Localization_FA,
|
|
4862
4886
|
mrt_columns_showHide_resetOrder: "\u0628\u0627\u0632\u0646\u0634\u0627\u0646\u06CC \u062A\u0631\u062A\u06CC\u0628"
|
|
4863
4887
|
};
|
|
4864
4888
|
var DataTable = ({
|