@mcurros2/microm 1.1.41-0 → 1.1.42-0
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 +20 -23
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -45273,6 +45273,7 @@ function $ff044f3295c81f45$export$1a5cb5295a7d2749(props) {
|
|
|
45273
45273
|
const { uploadFiles: uploadFiles, uploadProgress: uploadProgress, errorNotification: errorNotification, cancelledNotification: cancelledNotification, clearNotifications: clearNotifications, uploadingNotification: uploadingNotification, deleteFile: deleteFile, downloadFile: downloadFile, cancelUpload: cancelUpload, loadingNotification: loadingNotification } = uploadAPI;
|
|
45274
45274
|
const theme = (0, $b4te3$mantinecore.useMantineTheme)();
|
|
45275
45275
|
const modals = (0, $k7qj2.useModal)();
|
|
45276
|
+
dropzoneProps.disabled = dropzoneProps.disabled || (parentFormAPI === null || parentFormAPI === void 0 ? void 0 : parentFormAPI.formMode) === "view";
|
|
45276
45277
|
const handleUpload = (selectedFiles)=>$ff044f3295c81f45$var$__awaiter(this, void 0, void 0, function*() {
|
|
45277
45278
|
yield uploadFiles(selectedFiles);
|
|
45278
45279
|
});
|
|
@@ -45340,30 +45341,26 @@ function $ff044f3295c81f45$export$1a5cb5295a7d2749(props) {
|
|
|
45340
45341
|
size: "1rem"
|
|
45341
45342
|
})
|
|
45342
45343
|
}),
|
|
45343
|
-
(
|
|
45344
|
-
|
|
45345
|
-
|
|
45346
|
-
|
|
45347
|
-
|
|
45348
|
-
onClick: ()=>$ff044f3295c81f45$var$__awaiter(this, void 0, void 0, function*() {
|
|
45349
|
-
return yield downloadFile(report.documentURL);
|
|
45350
|
-
}),
|
|
45351
|
-
children: (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconDownload), {
|
|
45352
|
-
size: "1rem"
|
|
45353
|
-
})
|
|
45344
|
+
(0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.ActionIcon), {
|
|
45345
|
+
color: theme.primaryColor,
|
|
45346
|
+
variant: "light",
|
|
45347
|
+
onClick: ()=>$ff044f3295c81f45$var$__awaiter(this, void 0, void 0, function*() {
|
|
45348
|
+
return yield downloadFile(report.documentURL);
|
|
45354
45349
|
}),
|
|
45355
|
-
|
|
45356
|
-
|
|
45357
|
-
|
|
45358
|
-
|
|
45359
|
-
|
|
45360
|
-
|
|
45361
|
-
|
|
45362
|
-
|
|
45363
|
-
|
|
45364
|
-
|
|
45365
|
-
})
|
|
45366
|
-
|
|
45350
|
+
children: (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconDownload), {
|
|
45351
|
+
size: "1rem"
|
|
45352
|
+
})
|
|
45353
|
+
}),
|
|
45354
|
+
(parentFormAPI === null || parentFormAPI === void 0 ? void 0 : parentFormAPI.formMode) !== "view" && (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.ActionIcon), {
|
|
45355
|
+
disabled: dropzoneProps.disabled,
|
|
45356
|
+
color: theme.primaryColor,
|
|
45357
|
+
variant: "light",
|
|
45358
|
+
onClick: ()=>$ff044f3295c81f45$var$__awaiter(this, void 0, void 0, function*() {
|
|
45359
|
+
return yield handleDeleteFile(report.file_id);
|
|
45360
|
+
}),
|
|
45361
|
+
children: (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconTrash), {
|
|
45362
|
+
size: "1rem"
|
|
45363
|
+
})
|
|
45367
45364
|
})
|
|
45368
45365
|
]
|
|
45369
45366
|
})
|