fui-material 2.2.2 → 2.2.3

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.
@@ -50171,12 +50171,24 @@ function fBankRound(value, decimalPlaces) {
50171
50171
  return +roundedValue.toFixed(decimalPlaces);
50172
50172
  }
50173
50173
  const fFormatRuNumber = (a, options) => {
50174
- if (typeof a !== "number" || isNaN(a)) return "";
50174
+ if (typeof a !== "number" || isNaN(a)) return (options == null ? void 0 : options.returnNumber) ? NaN : "";
50175
50175
  let processedValue = a;
50176
50176
  if (options == null ? void 0 : options.useBankRound) {
50177
- const decimalPlaces = options.bankRoundDecimalPlaces;
50177
+ const decimalPlaces = options.bankRoundDecimalPlaces ?? 2;
50178
50178
  processedValue = fBankRound(processedValue, decimalPlaces);
50179
50179
  }
50180
+ if (options == null ? void 0 : options.returnNumber) {
50181
+ if (options.maximumFractionDigits !== void 0 || options.minimumFractionDigits !== void 0) {
50182
+ const min = options.minimumFractionDigits ?? 0;
50183
+ const max = options.maximumFractionDigits ?? 20;
50184
+ processedValue = Number(processedValue.toLocaleString("en-US", {
50185
+ minimumFractionDigits: min,
50186
+ maximumFractionDigits: max,
50187
+ useGrouping: false
50188
+ }));
50189
+ }
50190
+ return processedValue;
50191
+ }
50180
50192
  const formatOptions = {};
50181
50193
  if ((options == null ? void 0 : options.maximumFractionDigits) !== void 0) {
50182
50194
  formatOptions.maximumFractionDigits = options.maximumFractionDigits;