fui-material 2.1.8 → 2.1.10

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.
@@ -1306,6 +1306,7 @@ const FTextField = forwardRef(
1306
1306
  "aria-invalid": !!errText,
1307
1307
  "aria-describedby": [helpText ? inputId + "-helptext" : null, (errText == null ? void 0 : errText.length) ? inputId + "-errortext" : null].filter(Boolean).join(" "),
1308
1308
  ...props,
1309
+ step: props.step !== void 0 ? props.step : "any",
1309
1310
  disabled: props.disabled || load
1310
1311
  }
1311
1312
  ),
@@ -50057,6 +50058,21 @@ const getMimeTypeFromFileName = (fileName) => {
50057
50058
  };
50058
50059
  return mimeTypes[extension];
50059
50060
  };
50061
+ function fDownloadBlobFile(blob, fileName) {
50062
+ if (!blob) {
50063
+ throw new Error("Blob or string content must not be empty");
50064
+ }
50065
+ const blobObject = typeof blob === "string" ? new Blob([blob], { type: "text/plain;charset=utf-8" }) : blob;
50066
+ const link2 = document.createElement("a");
50067
+ const url = window.URL.createObjectURL(blobObject);
50068
+ link2.href = url;
50069
+ link2.download = fileName;
50070
+ link2.style.display = "none";
50071
+ document.body.appendChild(link2);
50072
+ link2.click();
50073
+ document.body.removeChild(link2);
50074
+ window.URL.revokeObjectURL(url);
50075
+ }
50060
50076
  function bind(fn, thisArg) {
50061
50077
  return function wrap() {
50062
50078
  return fn.apply(thisArg, arguments);
@@ -52557,6 +52573,7 @@ export {
52557
52573
  fAlert,
52558
52574
  fConfirm,
52559
52575
  fConvertFileToBase64,
52576
+ fDownloadBlobFile,
52560
52577
  fDownloadFileFromBase64,
52561
52578
  fExportHtmlOrJsxToWord,
52562
52579
  fExportTableToExcel,