@mcurros2/microm 1.1.40-0 → 1.1.41-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
@@ -45253,7 +45253,7 @@ const $ff044f3295c81f45$export$6ff6b9827853730f = {
45253
45253
  cancelLabel: "Cancel"
45254
45254
  };
45255
45255
  function $ff044f3295c81f45$export$1a5cb5295a7d2749(props) {
45256
- const _a = (0, $b4te3$mantinecore.useComponentDefaultProps)("FileUploader", $ff044f3295c81f45$export$6ff6b9827853730f, props), { IdleIcon: IdleIcon, UploadText: UploadText, uploadAPI: uploadAPI, EachFileShouldNotExceedText: EachFileShouldNotExceedText, AttachUpToText: AttachUpToText, FilesText: FilesText, imageProps: imageProps, onDelete: onDelete, closeText: closeText, cancelledText: cancelledText, operationCancelledText: operationCancelledText, pdfCannotBeViewedText: pdfCannotBeViewedText, showCancelButton: showCancelButton, cancelLabel: cancelLabel } = _a, dropzoneProps = $ff044f3295c81f45$var$__rest(_a, [
45256
+ const _a = (0, $b4te3$mantinecore.useComponentDefaultProps)("FileUploader", $ff044f3295c81f45$export$6ff6b9827853730f, props), { IdleIcon: IdleIcon, UploadText: UploadText, uploadAPI: uploadAPI, EachFileShouldNotExceedText: EachFileShouldNotExceedText, AttachUpToText: AttachUpToText, FilesText: FilesText, imageProps: imageProps, onDelete: onDelete, closeText: closeText, cancelledText: cancelledText, operationCancelledText: operationCancelledText, pdfCannotBeViewedText: pdfCannotBeViewedText, showCancelButton: showCancelButton, cancelLabel: cancelLabel, parentFormAPI: parentFormAPI } = _a, dropzoneProps = $ff044f3295c81f45$var$__rest(_a, [
45257
45257
  "IdleIcon",
45258
45258
  "UploadText",
45259
45259
  "uploadAPI",
@@ -45267,7 +45267,8 @@ function $ff044f3295c81f45$export$1a5cb5295a7d2749(props) {
45267
45267
  "operationCancelledText",
45268
45268
  "pdfCannotBeViewedText",
45269
45269
  "showCancelButton",
45270
- "cancelLabel"
45270
+ "cancelLabel",
45271
+ "parentFormAPI"
45271
45272
  ]);
45272
45273
  const { uploadFiles: uploadFiles, uploadProgress: uploadProgress, errorNotification: errorNotification, cancelledNotification: cancelledNotification, clearNotifications: clearNotifications, uploadingNotification: uploadingNotification, deleteFile: deleteFile, downloadFile: downloadFile, cancelUpload: cancelUpload, loadingNotification: loadingNotification } = uploadAPI;
45273
45274
  const theme = (0, $b4te3$mantinecore.useMantineTheme)();
@@ -45339,26 +45340,30 @@ function $ff044f3295c81f45$export$1a5cb5295a7d2749(props) {
45339
45340
  size: "1rem"
45340
45341
  })
45341
45342
  }),
45342
- (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.ActionIcon), {
45343
- color: theme.primaryColor,
45344
- variant: "light",
45345
- onClick: ()=>$ff044f3295c81f45$var$__awaiter(this, void 0, void 0, function*() {
45346
- return yield downloadFile(report.documentURL);
45347
- }),
45348
- children: (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconDownload), {
45349
- size: "1rem"
45350
- })
45351
- }),
45352
- (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.ActionIcon), {
45353
- disabled: dropzoneProps.disabled,
45354
- color: theme.primaryColor,
45355
- variant: "light",
45356
- onClick: ()=>$ff044f3295c81f45$var$__awaiter(this, void 0, void 0, function*() {
45357
- return yield handleDeleteFile(report.file_id);
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
+ })
45358
45354
  }),
45359
- children: (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconTrash), {
45360
- size: "1rem"
45361
- })
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
+ ]
45362
45367
  })
45363
45368
  ]
45364
45369
  })