cloudmr-ux 1.3.8 → 1.4.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 +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -341,7 +341,6 @@ function CmrUploadWindow({
|
|
|
341
341
|
setInfoOpen(true);
|
|
342
342
|
setInfoStyle("error");
|
|
343
343
|
setWarningText("Alias contains invalid characters ( . , : % > < or spaces )");
|
|
344
|
-
setTimeout(() => setInfoOpen(false), 3e3);
|
|
345
344
|
return;
|
|
346
345
|
}
|
|
347
346
|
setOpen(false);
|
|
@@ -411,9 +410,11 @@ function CmrUploadWindow({
|
|
|
411
410
|
const value = e.target.value;
|
|
412
411
|
setFileAlias(value);
|
|
413
412
|
if (INVALID_ALIAS_REGEX.test(value)) {
|
|
414
|
-
|
|
413
|
+
setInfoOpen(true);
|
|
414
|
+
setInfoStyle("error");
|
|
415
|
+
setWarningText("Alias contains invalid characters ( . , : % > < or spaces )");
|
|
415
416
|
} else {
|
|
416
|
-
|
|
417
|
+
setInfoOpen(false);
|
|
417
418
|
}
|
|
418
419
|
};
|
|
419
420
|
function loadFiles(files) {
|
|
@@ -607,7 +608,6 @@ function CmrUploadWindow({
|
|
|
607
608
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
608
609
|
import_Button.default,
|
|
609
610
|
{
|
|
610
|
-
color: "inherit",
|
|
611
611
|
variant: "outlined",
|
|
612
612
|
disabled: UpBtnDisabled,
|
|
613
613
|
onClick: handleClose,
|
package/dist/index.mjs
CHANGED
|
@@ -293,7 +293,6 @@ function CmrUploadWindow({
|
|
|
293
293
|
setInfoOpen(true);
|
|
294
294
|
setInfoStyle("error");
|
|
295
295
|
setWarningText("Alias contains invalid characters ( . , : % > < or spaces )");
|
|
296
|
-
setTimeout(() => setInfoOpen(false), 3e3);
|
|
297
296
|
return;
|
|
298
297
|
}
|
|
299
298
|
setOpen(false);
|
|
@@ -363,9 +362,11 @@ function CmrUploadWindow({
|
|
|
363
362
|
const value = e.target.value;
|
|
364
363
|
setFileAlias(value);
|
|
365
364
|
if (INVALID_ALIAS_REGEX.test(value)) {
|
|
366
|
-
|
|
365
|
+
setInfoOpen(true);
|
|
366
|
+
setInfoStyle("error");
|
|
367
|
+
setWarningText("Alias contains invalid characters ( . , : % > < or spaces )");
|
|
367
368
|
} else {
|
|
368
|
-
|
|
369
|
+
setInfoOpen(false);
|
|
369
370
|
}
|
|
370
371
|
};
|
|
371
372
|
function loadFiles(files) {
|
|
@@ -559,7 +560,6 @@ function CmrUploadWindow({
|
|
|
559
560
|
/* @__PURE__ */ jsx9(
|
|
560
561
|
Button2,
|
|
561
562
|
{
|
|
562
|
-
color: "inherit",
|
|
563
563
|
variant: "outlined",
|
|
564
564
|
disabled: UpBtnDisabled,
|
|
565
565
|
onClick: handleClose,
|