@internationalized/number
Advanced tools
Comparing version 3.0.0-nightly-a626c2596-240926 to 3.0.0-nightly-a98da553e-241116
@@ -25,3 +25,3 @@ | ||
// eslint-disable-next-line no-empty | ||
} catch (e) {} | ||
} catch {} | ||
let $0c1d5654b62fc485$var$supportsUnit = false; | ||
@@ -35,3 +35,3 @@ try { | ||
// eslint-disable-next-line no-empty | ||
} catch (e) {} | ||
} catch {} | ||
// Polyfill for units since Safari doesn't support them yet. See https://bugs.webkit.org/show_bug.cgi?id=215438. | ||
@@ -38,0 +38,0 @@ // Currently only polyfilling the unit degree in narrow format for ColorSlider in our supported locales. |
@@ -19,3 +19,3 @@ /* | ||
// eslint-disable-next-line no-empty | ||
} catch (e) {} | ||
} catch {} | ||
let $488c6ddbf4ef74c2$var$supportsUnit = false; | ||
@@ -29,3 +29,3 @@ try { | ||
// eslint-disable-next-line no-empty | ||
} catch (e) {} | ||
} catch {} | ||
// Polyfill for units since Safari doesn't support them yet. See https://bugs.webkit.org/show_bug.cgi?id=215438. | ||
@@ -32,0 +32,0 @@ // Currently only polyfilling the unit degree in narrow format for ColorSlider in our supported locales. |
@@ -24,3 +24,5 @@ var $0c1d5654b62fc485$exports = require("./NumberFormatter.main.js"); | ||
'arab', | ||
'hanidec' | ||
'hanidec', | ||
'deva', | ||
'beng' | ||
]; | ||
@@ -191,4 +193,8 @@ class $d68f3f4c684426c6$export$cd11ab140839f11d { | ||
...intlOptions, | ||
// Resets so we get the full range of symbols | ||
minimumSignificantDigits: 1, | ||
maximumSignificantDigits: 21 | ||
maximumSignificantDigits: 21, | ||
roundingIncrement: 1, | ||
roundingPriority: 'auto', | ||
roundingMode: 'halfExpand' | ||
}); | ||
@@ -195,0 +201,0 @@ // Note: some locale's don't add a group symbol until there is a ten thousands place |
@@ -18,3 +18,5 @@ import {NumberFormatter as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5} from "./NumberFormatter.module.js"; | ||
'arab', | ||
'hanidec' | ||
'hanidec', | ||
'deva', | ||
'beng' | ||
]; | ||
@@ -185,4 +187,8 @@ class $6c7bd7858deea686$export$cd11ab140839f11d { | ||
...intlOptions, | ||
// Resets so we get the full range of symbols | ||
minimumSignificantDigits: 1, | ||
maximumSignificantDigits: 21 | ||
maximumSignificantDigits: 21, | ||
roundingIncrement: 1, | ||
roundingPriority: 'auto', | ||
roundingMode: 'halfExpand' | ||
}); | ||
@@ -189,0 +195,0 @@ // Note: some locale's don't add a group symbol until there is a ten thousands place |
{ | ||
"name": "@internationalized/number", | ||
"version": "3.0.0-nightly-a626c2596-240926", | ||
"version": "3.0.0-nightly-a98da553e-241116", | ||
"description": "Internationalized number formatting and parsing utilities", | ||
@@ -30,3 +30,3 @@ "license": "Apache-2.0", | ||
}, | ||
"stableVersion": "3.5.3" | ||
"stableVersion": "3.5.4" | ||
} |
@@ -20,3 +20,3 @@ /* | ||
// eslint-disable-next-line no-empty | ||
} catch (e) {} | ||
} catch {} | ||
@@ -28,3 +28,3 @@ let supportsUnit = false; | ||
// eslint-disable-next-line no-empty | ||
} catch (e) {} | ||
} catch {} | ||
@@ -31,0 +31,0 @@ // Polyfill for units since Safari doesn't support them yet. See https://bugs.webkit.org/show_bug.cgi?id=215438. |
@@ -26,3 +26,3 @@ /* | ||
const CURRENCY_SIGN_REGEX = new RegExp('^.*\\(.*\\).*$'); | ||
const NUMBERING_SYSTEMS = ['latn', 'arab', 'hanidec']; | ||
const NUMBERING_SYSTEMS = ['latn', 'arab', 'hanidec', 'deva', 'beng']; | ||
@@ -259,3 +259,10 @@ /** | ||
// formatter needs access to all decimal places in order to generate the correct literal strings for the plural set | ||
let symbolFormatter = new Intl.NumberFormat(locale, {...intlOptions, minimumSignificantDigits: 1, maximumSignificantDigits: 21}); | ||
let symbolFormatter = new Intl.NumberFormat(locale, {...intlOptions, | ||
// Resets so we get the full range of symbols | ||
minimumSignificantDigits: 1, | ||
maximumSignificantDigits: 21, | ||
roundingIncrement: 1, | ||
roundingPriority: 'auto', | ||
roundingMode: 'halfExpand' | ||
}); | ||
// Note: some locale's don't add a group symbol until there is a ten thousands place | ||
@@ -262,0 +269,0 @@ let allParts = symbolFormatter.formatToParts(-10000.111); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
171374
1810