vue-currency-input
Advanced tools
Comparing version 3.0.3 to 3.0.4
import { Ref } from 'vue'; | ||
/** | ||
* @internal | ||
*/ | ||
interface CurrencyInputValue { | ||
@@ -24,15 +27,13 @@ number: number | null; | ||
} | ||
interface CurrencyFormatOptions { | ||
locale?: string; | ||
interface CurrencyInputOptions { | ||
accountingSign?: boolean; | ||
autoDecimalDigits?: boolean; | ||
currency: string; | ||
currencyDisplay?: CurrencyDisplay; | ||
precision?: NumberRange | number; | ||
accountingSign?: boolean; | ||
useGrouping?: boolean; | ||
} | ||
interface CurrencyInputOptions extends CurrencyFormatOptions { | ||
hideCurrencySymbolOnFocus?: boolean; | ||
hideGroupingSeparatorOnFocus?: boolean; | ||
hideNegligibleDecimalDigitsOnFocus?: boolean; | ||
autoDecimalDigits?: boolean; | ||
locale?: string; | ||
precision?: NumberRange | number; | ||
useGrouping?: boolean; | ||
valueRange?: NumberRange; | ||
@@ -42,7 +43,7 @@ valueScaling?: ValueScaling; | ||
interface UseCurrencyInput { | ||
formattedValue: Ref<string | null>; | ||
inputRef: Ref; | ||
numberValue: Ref<number | null>; | ||
formattedValue: Ref<string | null>; | ||
setOptions: (options: CurrencyInputOptions) => void; | ||
setValue: (number: number | null) => void; | ||
setOptions: (options: CurrencyInputOptions) => void; | ||
} | ||
@@ -52,2 +53,2 @@ | ||
export { CurrencyDisplay, CurrencyFormatOptions, CurrencyInputOptions, CurrencyInputValue, NumberRange, UseCurrencyInput, ValueScaling, useCurrencyInput }; | ||
export { CurrencyDisplay, CurrencyInputOptions, CurrencyInputValue, NumberRange, UseCurrencyInput, ValueScaling, useCurrencyInput }; |
{ | ||
"name": "vue-currency-input", | ||
"description": "Easy input of currency formatted numbers for Vue.js.", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "module": "./dist/index.mjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
60895
1124