@mamrp/components 1.0.5 → 1.0.7
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 +3 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -598,7 +598,6 @@ function MultipleSelectChip({
|
|
|
598
598
|
].filter(Boolean);
|
|
599
599
|
const [selectedValues, setSelectedValues] = React3.useState([]);
|
|
600
600
|
const handleChange = (event, value, onChange) => {
|
|
601
|
-
console.log(value);
|
|
602
601
|
if (multipleitems) {
|
|
603
602
|
if (value.some((item) => item.title === "\u0627\u0646\u062A\u062E\u0627\u0628 \u0647\u0645\u0647")) {
|
|
604
603
|
const allItems = [...dataOptions];
|
|
@@ -633,7 +632,6 @@ function MultipleSelectChip({
|
|
|
633
632
|
{
|
|
634
633
|
disableClearable: clear,
|
|
635
634
|
disabled: disabled || isLoading,
|
|
636
|
-
disablePortal: true,
|
|
637
635
|
size,
|
|
638
636
|
disableCloseOnSelect: multipleitems,
|
|
639
637
|
options: combinedOptions,
|
|
@@ -1276,7 +1274,9 @@ var JalaliDatePicker = ({
|
|
|
1276
1274
|
style: { color: error ? "#D32F2F" : "inherit" }
|
|
1277
1275
|
},
|
|
1278
1276
|
InputProps: {
|
|
1279
|
-
...isLoading && {
|
|
1277
|
+
...isLoading && {
|
|
1278
|
+
endAdornment: /* @__PURE__ */ import_react7.default.createElement(import_CircularProgress.default, { color: "secondary", size: 20 })
|
|
1279
|
+
} || disabled && { endAdornment: false },
|
|
1280
1280
|
...field.value && {
|
|
1281
1281
|
value: persian ? `${(0, import_moment_jalaali.default)(field.value).format("dddd - jDD/jMMMM/jYYYY")}` : `${(0, import_moment_jalaali.default)(field.value).format("jYYYY/jMM/jDD")}`
|
|
1282
1282
|
},
|
|
@@ -1306,10 +1306,6 @@ var JalaliDatePicker = ({
|
|
|
1306
1306
|
let iranHour = nowUTC3.getUTCHours();
|
|
1307
1307
|
let iranMinute = nowUTC3.getUTCMinutes();
|
|
1308
1308
|
const dateTimeWithIranTime4 = currentDate.hour(iranHour).minute(iranMinute).second(nowUTC3.getUTCSeconds());
|
|
1309
|
-
console.log(
|
|
1310
|
-
currentDate.format("YYYY-MM-DDTHH:mm:ss"),
|
|
1311
|
-
dateTimeWithIranTime4.format("YYYY-MM-DDTHH:mm:ss")
|
|
1312
|
-
);
|
|
1313
1309
|
field.onChange(
|
|
1314
1310
|
dateTimeWithIranTime4.format("YYYY-MM-DDTHH:mm:ss")
|
|
1315
1311
|
);
|
|
@@ -3484,12 +3480,8 @@ var UploadImage = ({
|
|
|
3484
3480
|
const handleImageChange = async (event, source) => {
|
|
3485
3481
|
const file = event.target.files?.[0];
|
|
3486
3482
|
if (file) {
|
|
3487
|
-
console.log(`Original File Size: ${(file.size / 1024).toFixed(2)} KB`);
|
|
3488
3483
|
const compressedFile = await compressImage(file);
|
|
3489
3484
|
if (compressedFile) {
|
|
3490
|
-
console.log(
|
|
3491
|
-
`Compressed File Size: ${(compressedFile.size / 1024).toFixed(2)} KB`
|
|
3492
|
-
);
|
|
3493
3485
|
const objectURL = URL.createObjectURL(compressedFile);
|
|
3494
3486
|
setSelectedImage(objectURL);
|
|
3495
3487
|
setValue(name, compressedFile);
|