Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

autonumeric

Package Overview
Dependencies
Maintainers
2
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autonumeric - npm Package Compare versions

Comparing version 4.6.3 to 4.7.0

autonumeric-4.7.0.tgz

27

index.d.ts

@@ -336,2 +336,4 @@ /**

alwaysAllowDecimalCharacter?: boolean;
/**

@@ -422,2 +424,6 @@ * Determine if a local list of AutoNumeric objects must be kept when initializing the elements and others

eventBubbles?: boolean;
eventIsCancelable?: boolean;
failOnUnknownOption?: boolean;

@@ -427,4 +433,8 @@

formulaMode?: boolean;
historySize?: number;
invalidClass?: string;
isCancellable?: boolean;

@@ -439,2 +449,7 @@

/**
* Determine if the element value can be incremented / decremented with the up and down arrow keys.
*/
modifyValueOnUpDownArrow?: boolean;
/**
* Determine if the element value can be incremented / decremented with the mouse wheel.

@@ -453,2 +468,4 @@ */

negativeSignCharacter?: string;
noEventListeners?: boolean;

@@ -462,2 +479,4 @@

positiveSignCharacter?: string;
rawValueDivisor?: number | null;

@@ -511,2 +530,10 @@

upDownStep?: number | "progressive";
valuesToStrings?: object;
watchExternalChanges?: boolean;
wheelOn?: "focus" | "hover";
wheelStep?: number | "progressive";

@@ -513,0 +540,0 @@ }

2

package.json
{
"name": "autonumeric",
"version": "4.6.3",
"version": "4.7.0",
"description": "autoNumeric is a standalone Javascript library that provides live *as-you-type* formatting for international numbers and currencies. It supports most international numeric formats and currencies including those used in Europe, Asia, and North and South America.",

@@ -5,0 +5,0 @@ "main": "dist/autoNumeric.js",

@@ -70,2 +70,3 @@ /**

minimumValue : AutoNumeric.options.minimumValue.tenTrillions,
modifyValueOnUpDownArrow : AutoNumeric.options.modifyValueOnUpDownArrow.modifyValue,
modifyValueOnWheel : AutoNumeric.options.modifyValueOnWheel.modifyValue,

@@ -96,2 +97,3 @@ negativeBracketsTypeOnBlur : AutoNumeric.options.negativeBracketsTypeOnBlur.none,

unformatOnSubmit : AutoNumeric.options.unformatOnSubmit.keepCurrentValue,
upDownStep : '1', // To mimic the behavior of 'numeric'-typed input
valuesToStrings : AutoNumeric.options.valuesToStrings.none,

@@ -98,0 +100,0 @@ watchExternalChanges : AutoNumeric.options.watchExternalChanges.doNotWatch,

@@ -411,3 +411,16 @@ /**

/* Allows the user to increment or decrement the element value with the up and down arrow keys.
* The behavior is similar to the mouse wheel one.
* The up and down arrow keys behavior can be modified by the `upDownStep` option.
* This `upDownStep` option can be used in two ways, either by setting:
* - a 'fixed' step value (`upDownStep : 1000`), or
* - the 'progressive' string (`upDownStep : 'progressive'`), which will then activate a special mode where the step is automatically calculated based on the element value size.
*/
modifyValueOnUpDownArrow: {
modifyValue: true,
doNothing : false,
},
/* Allows the user to increment or decrement the element value with the mouse wheel.
* The behavior is similar to the up/down arrow one.
* The wheel behavior can be modified by the `wheelStep` option.

@@ -827,2 +840,14 @@ * This `wheelStep` option can be used in two ways, either by setting:

/* That option is linked to the `modifyValueOnUpDownArrow` one and will only be used if the latter is set to `true`.
* This option will modify the up/down arrow behavior and can be used in two ways, either by setting :
* - a 'fixed' step value (a positive float or integer number (ex: `1000`)), or
* - the `'progressive'` string.
*
* The 'fixed' mode always increment/decrement the element value by that amount, while respecting the `minimumValue` and `maximumValue` settings.
* The 'progressive' mode will increment/decrement the element value based on its current value. The bigger the number, the bigger the step, and vice versa.
*/
upDownStep: {
progressive: 'progressive',
},
/* Provides a way for automatically replacing the formatted value with a pre-defined string, when the raw value is equal to a specific value

@@ -866,3 +891,3 @@ * Here you can specify as many 'conversion' as needed.

* This option will modify the wheel behavior and can be used in two ways, either by setting :
* - a 'fixed' step value (a positive float or integer number `1000`), or
* - a 'fixed' step value (a positive float or integer (ex: number `1000`)), or
* - the `'progressive'` string.

@@ -869,0 +894,0 @@ *

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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 too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc