- Mar 24, 2017
-
-
Alexandre Bonneau authored
Add a new `historySize` option that allows to set how many undo states each AutoNumeric object should keep in memory. Always use the `_setRawValue()` function to set the `rawValue` ; directly setting `this.settings.rawValue = 'foo'` is not allowed anymore. Modify the `set()` function signature by allowing to pass a third parameter to prevent saving the changed state to the history table. Update the `keyName` enumeration with the capitalized letters. Upgrade the `getElementSelection()` helper function in order to support contenteditable-enabled elements and hidden inputs. Add an `arrayTrim()` helper function that trim the start of an array. Create undo/redo end-to-end tests. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- Mar 19, 2017
-
-
Alexandre Bonneau authored
Fix a case where the rounding method `toNearest05Alt` would behave differently than `upToNext05` while it should not Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- Mar 18, 2017
-
-
Alexandre Bonneau authored
Also add some links to ease the navigation Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Fix issue #414 Changing the value of an element from negative to positive is not possible for some specific configuration of brackets Modify the jasmine default timeout in order to allow for longer end-to-end tests. Simplify `_addGroupSeparators` and `_onFocusOutAndMouseLeave` by using `this.settings.rawValue` instead of `this.settings.trailingNegative`. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- Mar 17, 2017
-
-
Alexandre Bonneau authored
Fix issue #413 Manage the drag 'n drop event so that the text dropped in the AutoNumeric element gets formatted accordingly Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Fix the issue where having `emptyInputBehavior` equal to `always` would not reformat the AutoNumeric element correctly if its value is set to the empty string `''`. Fix the issue where having `emptyInputBehavior` equal to `zero` would not reformat the AutoNumeric element correctly if its value is set to the empty string `''`. Fix the `_mergeCurrencySignNegativePositiveSignAndValue()` function that did not manage all `negativePositiveSignPlacement` combinations. Simplify the `_mergeCurrencySignNegativePositiveSignAndValue()` function. Add function chaining to the `options.*` methods. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- Mar 16, 2017
-
-
Alexandre Bonneau authored
Fix issue #412 Using `set('')` does not respect the `emptyInputBehavior` option when it's set to `'always'` Add a `createLocalList` option which allow to control whether a local list of AutoNumeric objects should be saved on initializations. Add a `global.update()` function to update the settings on a local list. Modify the `global.clear()` function to be able to force a `clear` call. Add a `global.nuke()` function to `remove` then delete the local list DOM element from the DOM. Update the `global.clear()` function signature with the `clear()` one. Fix the `global.addObject()` function that did not update the local list of the added element. Fix the `global.addObject()` function so that if it add an AutoNumeric object that already has a local list with multiple other AutoNumeric objects, it merges the list. Fix the `global.removeObject()` function to make it update all the objects local list. Also add special behaviors when an AutoNumeric element removes itself or another one. Fix the `global.empty()` function to match the `removeObject` behavior. Simplify the `init()` method by removing a negation in one of its parameter. Fix the `init()` method initialization process by preventing creating a local list, then removing it immediately if the user wanted a detached element. Now, the local list is just not created (Using the `createLocalList` option set to `false`). Add an end-to-end test for the `remove()` method. Add a `_hasLocalList()` method that tests if the AutoNumeric element has a local list and that it has at least one element in it (itself usually). Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- Mar 14, 2017
-
-
Alexandre Bonneau authored
Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Fix issue #320 Use `event.key` instead of `event.keyCode` and `event.which` since those two attributes are deprecated Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- Mar 10, 2017
-
-
Alexandre Bonneau authored
Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Update the Contributing help file. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Correct the test for the `<input>` of type `tel`. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Those options are `dotDecimalCharCommaSeparator`, `commaDecimalCharDotSeparator`, `integer`, `integerPos`, `integerNeg`, `float`, `floatPos`, `floatNeg`, `numeric`, `numericPos`, `numericNeg`, `euro`, `euroPos`, `euroNeg`, `euroSpace`, `euroSpacePos`, `euroSpaceNeg`, `percentageEU2dec`, `percentageEU2decPos`, `percentageEU2decNeg`, `percentageEU3dec`, `percentageEU3decPos`, `percentageEU3decNeg`, `dollar`, `dollarPos`, `dollarNeg`, `percentageUS2dec`, `percentageUS2decPos`, `percentageUS2decNeg`, `percentageUS3dec`, `percentageUS3decPos` and `percentageUS3decNeg`. Add the unit tests for those pre-defined options. Update the readme accordingly, doing a distinction between the 'Predefined language options' and the 'Predefined common options'. Rename `getLanguages()` to `getPredefinedOptions()`. Add the percentage, permille and basis point sign to the default `suffixText` options. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- Mar 09, 2017
-
-
Alexandre Bonneau authored
Add the 'dot' character to the `decimalCharacterAlternative` option enumeration. Update the end-to-end tests that test the element value selection on focus, to reflect the change to the default value for `selectNumberOnly`. Update the unit tests to correct the rounding on some values that used the previous default one defined in `AutoNumeric.languageOptions.French`. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- Mar 08, 2017
-
-
Alexandre Bonneau authored
Replace the hard-coded default option values with references to the `AutoNumeric.options` object values. Re-order alphabetically the options enumeration. Add more choices for some options. Rename default options value names to more meaningful descriptions. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Fix the initialization problem when searching for a parent <form> on an element that has no parentNode. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Add a test to warn the user when the given CSS selector does not select any element during initialization. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- Mar 07, 2017
-
-
Alexandre Bonneau authored
Remove some debug messages. Remove the need to initialize the `savedCancellableValue` variable when unneeded. Check and remove the unnecessary `hasFocus` calls and sets. Add regex caching to the static `format()` function, since this used the `_addGroupSeparators` function that calls the `_stripAllNonNumberCharacters` one that extensively uses those. Rename the temporary settings copy, and move those out of the `this.settings` object. Prevent setting the value with `set()` if the value hasn't changed when calling the 'cancellable' event. Rename `_setsAlternativeDecimalSeparatorCharacter()` to `_setAlternativeDecimalSeparatorCharacter()`. Remove the unused and deprecated `aScale` reference from a test. Move away from the `this.settings` object the following variables : `caretFix`, `throwInput`, `tagList`, `originalDecimalPlacesOverride`, `originalAllowDecimalPadding`, `originalNegativeBracketsTypeOnBlur`, `originalDigitGroupSeparator`, `originalCurrencySymbol`, `originalSuffixText` and `aNegRegAutoStrip`. Refactor some tests in `_formatValue()`. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Fix issue #408 Allow brackets and parenthesis to be added for negative numbers on any combination of `currencySymbolPlacement` and `negativePositiveSignPlacement` values Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- Mar 06, 2017
-
-
Alexandre Bonneau authored
Remove the jQuery reference from the dependencies in the readme. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- Mar 03, 2017
-
-
Alexandre Bonneau authored
Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Since it's now a module, we respect the naming convention. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Issue 401 403
-
Alexandre Bonneau authored
Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Make sure that if an element is focused, and a `mouseleave` event is captured, we do not unformat the element value (with the scale options). Make sure if the element value is empty, that the scaleDivisor option do not convert it to `'0.00'` on `mouseenter`. Remove a ternary operator which lead to a variable overwriting itself. Fix the end-to-end tests which test the percentage with the scale options. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- Mar 02, 2017
-
-
Alexandre Bonneau authored
# Conflicts: # CHANGELOG.md # dist/autoNumeric.js # dist/autoNumeric.min.js # dist/autoNumeric.min.js.map # package.json # src/autoNumeric.js # test/e2e/index.html # test/e2e/specs/autoNumeric.e2e.spec.js
-
Alexandre Bonneau authored
Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Bob Knothe authored
+ Fix issue #401 autoNumeric 2.0.8 prevents IE11 from entering the decimal character from the numpad + Fix issue #403 autoNumeric 2.0.8 scaling option when the divisor is less than zero and the input receives focus multiple times
-
Alexandre Bonneau authored
Fix issue #395 Allow to show the unformatted value when hovering over the element and pressing `Alt` Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- Mar 01, 2017
-
-
Alexandre Bonneau authored
Using `karma` instead of `QT_QPA_PLATFORM='' ./node_modules/karma/bin/karma` still makes sure `npm` first try to launch the local `karma` version instead of a potential globally installed one. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-