vueless 0.0.469 → 0.0.470

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.469",
3
+ "version": "0.0.470",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -65,16 +65,11 @@ export default class FormatService {
65
65
  rawValuePrefix: false,
66
66
  });
67
67
 
68
- const formattedValue = intlNumber.formatToParts(parseFloat(rawValue) || 0).map((part) => {
69
- if (part.type === "group") part.value = thousandsSeparator;
70
- if (part.type === "decimal") part.value = decimalSeparator;
71
- if (part.type === "fraction") part.value = part.value.padEnd(maxFractionDigits, "0");
68
+ const formattedValue = intlNumber
69
+ .format(rawValue)
70
+ .replaceAll(this.comma, thousandsSeparator)
71
+ .replaceAll(this.rawDecimalMark, decimalSeparator);
72
72
 
73
- return part;
74
- });
75
-
76
- formattedValue.unshift({ value: prefix, type: "minusSign" });
77
-
78
- return formattedValue.map((part) => part.value).join("");
73
+ return prefix + formattedValue;
79
74
  }
80
75
  }
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.469",
4
+ "version": "0.0.470",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",