@mamrp/components 1.0.24 → 1.0.26
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 +16 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -868,7 +868,7 @@ var import_DialogActions = __toESM(require("@mui/material/DialogActions"));
|
|
|
868
868
|
var import_DialogContent2 = __toESM(require("@mui/material/DialogContent"));
|
|
869
869
|
var import_DialogTitle2 = __toESM(require("@mui/material/DialogTitle"));
|
|
870
870
|
var import_material7 = require("@mui/material");
|
|
871
|
-
var
|
|
871
|
+
var import_go = require("react-icons/go");
|
|
872
872
|
var import_md = require("react-icons/md");
|
|
873
873
|
function ConfirmationDialog({
|
|
874
874
|
open,
|
|
@@ -893,13 +893,7 @@ function ConfirmationDialog({
|
|
|
893
893
|
alignItems: "center",
|
|
894
894
|
gap: 1
|
|
895
895
|
},
|
|
896
|
-
/* @__PURE__ */ React7.createElement(
|
|
897
|
-
import_fa2.FaRegTrashAlt,
|
|
898
|
-
{
|
|
899
|
-
style: { color: iconColor },
|
|
900
|
-
size: isMobile ? 18 : 20
|
|
901
|
-
}
|
|
902
|
-
),
|
|
896
|
+
/* @__PURE__ */ React7.createElement(import_go.GoTrash, { style: { color: iconColor }, size: isMobile ? 18 : 20 }),
|
|
903
897
|
headerText
|
|
904
898
|
), /* @__PURE__ */ React7.createElement(
|
|
905
899
|
import_material7.IconButton,
|
|
@@ -914,7 +908,7 @@ function ConfirmationDialog({
|
|
|
914
908
|
}
|
|
915
909
|
},
|
|
916
910
|
/* @__PURE__ */ React7.createElement(import_md.MdClose, null)
|
|
917
|
-
), /* @__PURE__ */ React7.createElement(import_material7.Divider,
|
|
911
|
+
), /* @__PURE__ */ React7.createElement(import_material7.Divider, null), /* @__PURE__ */ React7.createElement(
|
|
918
912
|
import_DialogContent2.default,
|
|
919
913
|
{
|
|
920
914
|
sx: {
|
|
@@ -954,7 +948,7 @@ function ConfirmationDialog({
|
|
|
954
948
|
variant: "contained",
|
|
955
949
|
color,
|
|
956
950
|
sx: { minWidth: "120px" },
|
|
957
|
-
startIcon: isLoading ? /* @__PURE__ */ React7.createElement(import_material7.CircularProgress, { sx: { color: "white" }, size: 20 }) : /* @__PURE__ */ React7.createElement(
|
|
951
|
+
startIcon: isLoading ? /* @__PURE__ */ React7.createElement(import_material7.CircularProgress, { sx: { color: "white" }, size: 20 }) : /* @__PURE__ */ React7.createElement(import_go.GoTrash, { size: 16 })
|
|
958
952
|
},
|
|
959
953
|
actionTitle
|
|
960
954
|
),
|
|
@@ -1228,7 +1222,7 @@ var import_system = require("@mui/system");
|
|
|
1228
1222
|
var import_moment = __toESM(require("moment"));
|
|
1229
1223
|
var import_react8 = require("react");
|
|
1230
1224
|
var import_react_hook_form5 = require("react-hook-form");
|
|
1231
|
-
var
|
|
1225
|
+
var import_fa3 = require("react-icons/fa");
|
|
1232
1226
|
var yup = __toESM(require("yup"));
|
|
1233
1227
|
|
|
1234
1228
|
// src/date-picker/index.tsx
|
|
@@ -1238,7 +1232,7 @@ var import_x_date_pickers = require("@mui/x-date-pickers");
|
|
|
1238
1232
|
var import_AdapterMomentJalaali = require("@mui/x-date-pickers/AdapterMomentJalaali");
|
|
1239
1233
|
var import_dayjs = __toESM(require("dayjs"));
|
|
1240
1234
|
var import_moment_jalaali = __toESM(require("moment-jalaali"));
|
|
1241
|
-
var
|
|
1235
|
+
var import_fa2 = require("moment/locale/fa");
|
|
1242
1236
|
var import_react7 = __toESM(require("react"));
|
|
1243
1237
|
var import_react_hook_form4 = require("react-hook-form");
|
|
1244
1238
|
import_moment_jalaali.default.locale("fa");
|
|
@@ -1495,7 +1489,7 @@ function DateFilterRange({ FromDate, ToDate }) {
|
|
|
1495
1489
|
onClick: () => handleDate("forward", "time"),
|
|
1496
1490
|
disabled: isNextDisabled || isNextDisabledTime
|
|
1497
1491
|
},
|
|
1498
|
-
/* @__PURE__ */ React.createElement(
|
|
1492
|
+
/* @__PURE__ */ React.createElement(import_fa3.FaChevronRight, { size: 30 })
|
|
1499
1493
|
)), /* @__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(
|
|
1500
1494
|
import_Button2.default,
|
|
1501
1495
|
{
|
|
@@ -1507,7 +1501,7 @@ function DateFilterRange({ FromDate, ToDate }) {
|
|
|
1507
1501
|
},
|
|
1508
1502
|
onClick: () => handleDate("backward", "time")
|
|
1509
1503
|
},
|
|
1510
|
-
/* @__PURE__ */ React.createElement(
|
|
1504
|
+
/* @__PURE__ */ React.createElement(import_fa3.FaChevronLeft, { size: 30 })
|
|
1511
1505
|
))), /* @__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(
|
|
1512
1506
|
import_Button2.default,
|
|
1513
1507
|
{
|
|
@@ -1520,7 +1514,7 @@ function DateFilterRange({ FromDate, ToDate }) {
|
|
|
1520
1514
|
onClick: () => handleDate("forward", "time2"),
|
|
1521
1515
|
disabled: isNextDisabledTime2
|
|
1522
1516
|
},
|
|
1523
|
-
/* @__PURE__ */ React.createElement(
|
|
1517
|
+
/* @__PURE__ */ React.createElement(import_fa3.FaChevronRight, { size: 30 })
|
|
1524
1518
|
)), /* @__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(
|
|
1525
1519
|
import_Button2.default,
|
|
1526
1520
|
{
|
|
@@ -1533,7 +1527,7 @@ function DateFilterRange({ FromDate, ToDate }) {
|
|
|
1533
1527
|
onClick: () => handleDate("backward", "time2"),
|
|
1534
1528
|
disabled: isLastDisabledTime
|
|
1535
1529
|
},
|
|
1536
|
-
/* @__PURE__ */ React.createElement(
|
|
1530
|
+
/* @__PURE__ */ React.createElement(import_fa3.FaChevronLeft, { size: 30 })
|
|
1537
1531
|
)))), /* @__PURE__ */ React.createElement(import_Grid2.default, { container: true, size: 12 }, /* @__PURE__ */ React.createElement(import_Grid2.default, { size: 12 })));
|
|
1538
1532
|
}
|
|
1539
1533
|
|
|
@@ -1546,7 +1540,7 @@ var import_moment2 = __toESM(require("moment"));
|
|
|
1546
1540
|
var import_react9 = __toESM(require("react"));
|
|
1547
1541
|
var import_react10 = require("react");
|
|
1548
1542
|
var import_react_hook_form6 = require("react-hook-form");
|
|
1549
|
-
var
|
|
1543
|
+
var import_fa4 = require("react-icons/fa");
|
|
1550
1544
|
var yup2 = __toESM(require("yup"));
|
|
1551
1545
|
var nowUTC2 = import_moment2.default.utc();
|
|
1552
1546
|
var dateTimeWithIranTime3 = nowUTC2;
|
|
@@ -1600,7 +1594,7 @@ function DateFilter({ setHandler }) {
|
|
|
1600
1594
|
onClick: () => handleDate("forward"),
|
|
1601
1595
|
disabled: isNextDisabled
|
|
1602
1596
|
},
|
|
1603
|
-
/* @__PURE__ */ import_react9.default.createElement(
|
|
1597
|
+
/* @__PURE__ */ import_react9.default.createElement(import_fa4.FaChevronRight, { size: 30 })
|
|
1604
1598
|
)), /* @__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(
|
|
1605
1599
|
import_Button3.default,
|
|
1606
1600
|
{
|
|
@@ -1612,7 +1606,7 @@ function DateFilter({ setHandler }) {
|
|
|
1612
1606
|
},
|
|
1613
1607
|
onClick: () => handleDate("backward")
|
|
1614
1608
|
},
|
|
1615
|
-
/* @__PURE__ */ import_react9.default.createElement(
|
|
1609
|
+
/* @__PURE__ */ import_react9.default.createElement(import_fa4.FaChevronLeft, { size: 30 })
|
|
1616
1610
|
)))), /* @__PURE__ */ import_react9.default.createElement(import_Grid22.default, { container: true, size: 12 }, /* @__PURE__ */ import_react9.default.createElement(import_Grid22.default, { size: 12 })));
|
|
1617
1611
|
}
|
|
1618
1612
|
|
|
@@ -2707,7 +2701,7 @@ var import_material16 = require("@mui/material");
|
|
|
2707
2701
|
var import_Stack = __toESM(require("@mui/material/Stack"));
|
|
2708
2702
|
var import_system5 = require("@mui/system");
|
|
2709
2703
|
var React16 = __toESM(require("react"));
|
|
2710
|
-
var
|
|
2704
|
+
var import_fa5 = require("react-icons/fa");
|
|
2711
2705
|
function PaginationList({
|
|
2712
2706
|
currentPage,
|
|
2713
2707
|
setCurrentPage,
|
|
@@ -2751,7 +2745,7 @@ function PaginationList({
|
|
|
2751
2745
|
justifyContent: "center"
|
|
2752
2746
|
},
|
|
2753
2747
|
size: "large",
|
|
2754
|
-
startIcon: /* @__PURE__ */ React16.createElement(
|
|
2748
|
+
startIcon: /* @__PURE__ */ React16.createElement(import_fa5.FaChevronRight, null)
|
|
2755
2749
|
},
|
|
2756
2750
|
"\u0642\u0628\u0644\u06CC",
|
|
2757
2751
|
" "
|
|
@@ -2792,7 +2786,7 @@ function PaginationList({
|
|
|
2792
2786
|
justifyContent: "center"
|
|
2793
2787
|
},
|
|
2794
2788
|
size: "large",
|
|
2795
|
-
endIcon: /* @__PURE__ */ React16.createElement(
|
|
2789
|
+
endIcon: /* @__PURE__ */ React16.createElement(import_fa5.FaChevronLeft, null)
|
|
2796
2790
|
},
|
|
2797
2791
|
"\u0628\u0639\u062F\u06CC",
|
|
2798
2792
|
" "
|