@economic/taco 2.58.2-EC-64961.1 → 2.58.2-EC-64961.2
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/taco.cjs +5 -2
- package/dist/taco.cjs.map +1 -1
- package/dist/taco.d.ts +4 -1
- package/dist/taco.js +5 -2
- package/dist/taco.js.map +1 -1
- package/package.json +2 -2
package/dist/taco.cjs
CHANGED
@@ -33078,7 +33078,8 @@ const dataTypes = {
|
|
33078
33078
|
},
|
33079
33079
|
// numbers
|
33080
33080
|
number: createNumberDataType("left"),
|
33081
|
-
amount: createNumberDataType("right", { decimals: 2, useGrouping: true })
|
33081
|
+
amount: createNumberDataType("right", { decimals: 2, useGrouping: true }),
|
33082
|
+
percentage: createNumberDataType("right", { useGrouping: true, percent: true })
|
33082
33083
|
};
|
33083
33084
|
function createNumberDataType(align, defaultOptions2) {
|
33084
33085
|
return {
|
@@ -33108,7 +33109,9 @@ function createNumberDataType(align, defaultOptions2) {
|
|
33108
33109
|
minimumFractionDigits: (dataTypeOptions == null ? void 0 : dataTypeOptions.decimals) ?? (defaultOptions2 == null ? void 0 : defaultOptions2.decimals),
|
33109
33110
|
maximumFractionDigits: (dataTypeOptions == null ? void 0 : dataTypeOptions.decimals) ?? (defaultOptions2 == null ? void 0 : defaultOptions2.decimals)
|
33110
33111
|
};
|
33111
|
-
if (
|
33112
|
+
if (defaultOptions2 == null ? void 0 : defaultOptions2.percent) {
|
33113
|
+
numberFormatOptions.style = "percent";
|
33114
|
+
} else if (dataTypeOptions == null ? void 0 : dataTypeOptions.currency) {
|
33112
33115
|
numberFormatOptions.style = "currency";
|
33113
33116
|
numberFormatOptions.currency = dataTypeOptions.currency;
|
33114
33117
|
numberFormatOptions.currencyDisplay = "code";
|