| 969 | } |
| 970 | |
| 971 | export interface Options { |
| 972 | /** |
| 973 | * Allow padding the decimal places with zeros. |
| 974 | * @default true |
| 975 | */ |
| 976 | allowDecimalPadding?: boolean | number | string | "floats"; |
| 977 | |
| 978 | /** |
| 979 | * Determine where should be positioned the caret on focus |
| 980 | * @default null |
| 981 | */ |
| 982 | caretPositionOnFocus?: CaretPositionOption | null; |
| 983 | |
| 984 | /** |
| 985 | * Defines if the decimal character or decimal character alternative should be accepted when there is already a |
| 986 | * decimal character shown in the element. |
| 987 | * |
| 988 | * If set to `true`, any decimal character input will be accepted and will subsequently modify the decimal character |
| 989 | * position, as well as the `rawValue`. |
| 990 | * |
| 991 | * If set to `false`, the decimal character and its alternative key will be dropped as before. This is the default setting. |
| 992 | * @default false |
| 993 | */ |
| 994 | alwaysAllowDecimalCharacter?: boolean; |
| 995 | |
| 996 | /** |
| 997 | * Determine if a local list of AutoNumeric objects must be kept when initializing the elements and others |
| 998 | * @default true |
| 999 | */ |
| 1000 | createLocalList?: boolean; |
| 1001 | |
| 1002 | /** |
| 1003 | * Currency symbol |
| 1004 | * @default '' |
| 1005 | */ |
| 1006 | currencySymbol?: string; |
| 1007 | |
| 1008 | /** |
| 1009 | * Placement of the currency sign, relative to the number (as a prefix or a suffix) |
| 1010 | * @default 'p' |
| 1011 | */ |
| 1012 | currencySymbolPlacement?: CurrencySymbolPlacementOption; |
| 1013 | |
| 1014 | /** |
| 1015 | * Decimal separator character |
| 1016 | * @default '.' |
| 1017 | */ |
| 1018 | decimalCharacter?: string; |
| 1019 | |
| 1020 | /** |
| 1021 | * Allow to declare alternative decimal separator which is automatically replaced by the real decimal character |
| 1022 | * @default null |
| 1023 | */ |
| 1024 | decimalCharacterAlternative?: string | null; |
| 1025 | |
| 1026 | /** |
| 1027 | * Defines the default number of decimal places to show on the formatted value, and to keep as the precision for the rawValue |
| 1028 | * 0 or positive integer |
nothing calls this directly
no outgoing calls
no test coverage detected