@mcurros2/microm 1.1.41-0 → 1.1.43-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 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
- (parentFormAPI === null || parentFormAPI === void 0 ? void 0 : parentFormAPI.formMode) !== "view" && (0, $b4te3$reactjsxruntime.jsxs)((0, $b4te3$reactjsxruntime.Fragment), {
45344
- children: [
45345
- (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.ActionIcon), {
45346
- color: theme.primaryColor,
45347
- variant: "light",
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
- (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.ActionIcon), {
45356
- disabled: dropzoneProps.disabled,
45357
- color: theme.primaryColor,
45358
- variant: "light",
45359
- onClick: ()=>$ff044f3295c81f45$var$__awaiter(this, void 0, void 0, function*() {
45360
- return yield handleDeleteFile(report.file_id);
45361
- }),
45362
- children: (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconTrash), {
45363
- size: "1rem"
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
  })
@@ -45885,6 +45882,7 @@ var $d79003fd5611c3b6$var$__awaiter = undefined && undefined.__awaiter || functi
45885
45882
  };
45886
45883
  function $d79003fd5611c3b6$export$66b3c1a9709bd8fc(_a) {
45887
45884
  return $d79003fd5611c3b6$var$__awaiter(this, arguments, void 0, function*({ modals: modals, title: title, element: element, handleModalCancel: handleModalCancel, handleModalSaved: handleModalSaved, modalFormSize: modalFormSize, formProps: formProps, handleModalClosed: handleModalClosed, withModalFullscreenButton: withModalFullscreenButton }) {
45885
+ withModalFullscreenButton = withModalFullscreenButton === undefined ? withModalFullscreenButton : true;
45888
45886
  const showOK = formProps.initialFormMode !== "view";
45889
45887
  const onSaved = formProps.initialFormMode !== "view" ? (new_status)=>handleModalSaved(new_status) : ()=>Promise.resolve();
45890
45888
  const onCancel = ()=>handleModalCancel();