- Jul 04, 2017
-
-
Alexandre Bonneau authored
Signed-off-by:
Alexandre Bonneau <alexandre@crediz.fr>
-
- Jun 09, 2017
-
-
Alexandre Bonneau authored
Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Fix a rare bug when `scaleSymbol` is a castable to a Number, and would be added to the formatted value, instead of concatenated. Remove an unneeded temporary variable in `set()`. Add more details in some JSDoc. Fix `validate()` so that it throws an error early if `scaleDivisor` is wrongly set to `0`. Fix `_trimLeadingAndTrailingZeros()` so that it correctly handles the `null` value. Fix `_onFocusInAndMouseEnter()` so that the `decimalPlacesShownOnFocus` setting is correctly cast to a Number. Fix `_onFocusOutAndMouseLeave()` so that the `null` value is correctly handle. Also fix the error message shown when the `rawValue` is not stored as a string. Simplify a ternary condition into a simple `if` one. Hardcode the `isFocused` state to `false` when calling `_addGroupSeparators()` in `_onFocusOutAndMouseLeave()` so that it does not rely on the order where `this.isFocused` is set back to `false`. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- Jun 05, 2017
-
-
Alexandre Bonneau authored
Fix an issue related to issue #447 when the focus out action produce an error when the input raw value is set to `null` When a `mouseleave` or `blur` event was created on an input having a `rawValue` of `null`, an error was thrown due to the fact some functions were called on `rawValue`, and they expected it to be a string. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
This commit made the `AutoNumericEnum.fromCharCodeKeyCode` array read-only, preventing populating it after it was created. This fixes the introduced by commit b5c69941 (Set the read-only mode on the default settings, enumerations, events, options and pre-defined options objects). Transform `AutoNumericEnum.fromCharCodeKeyCode` from an Array to an Object. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- Jun 03, 2017
-
-
Alexandre Bonneau authored
Fix the initialization method to accepts arrays of options object/pre-defined options when using an initial value. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- Jun 02, 2017
-
-
Alexandre Bonneau authored
Set the read-only mode on the default settings, enumerations, events, options and pre-defined options objects In order to prevent any unwanted errors, the pre-defined options, enumerations, events, options and default settings objects are now in read-only mode. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Allow passing an array of options objects or pre-defined option names to the static `format` and `unformat` methods The latter options in the array will overwrite the previous ones. The array can contains either option objects, or pre-defined option names as a string (ie. `'euroPos'`). Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- Jun 01, 2017
-
-
Alexandre Bonneau authored
Allow initializing an AutoNumeric element with an array of options objects or pre-defined option names The latter options in the array will overwrite the previous ones. The array can contains either option objects, or pre-defined option names as a string (ie. `'euroPos'`). Both the initialization methods `new AutoNumeric()` and `AutoNumeric.multiple()` support using arrays of options. Add a static `AutoNumeric.mergeOptions()` function that accepts an array of option objects and / or pre-defined option names, and return a single option object where the latter element overwrite the settings from the previous ones. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- May 31, 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>
-
- May 29, 2017
-
-
Alexandre Bonneau authored
Fix issue #449 `AutoNumeric.unformat()` only removes the first instance of `settings.digitGroupSeparator` Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- May 28, 2017
-
-
Alexandre Bonneau authored
In `_saveValueToPersistentStorage()` to effectively save to persistent storage, in `_getValueFromPersistentStorage()` to retrieve the data, and finally in `_removeValueFromPersistentStorage` to delete the data from that storage. A new attribute `this.storageNamePrefix` can now be used to modify the raw value storage name variable prefix. It currently defaults to `'AUTO_'`. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- May 27, 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
The callback is then executed on the `get*` method result, or the `global.get*` method array of result. The callback is passed the result of the `get*` functions as its first argument, and the current AutoNumeric object as its second. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Update the `AutoNumericHelper.warning()` calls to take into account the `showWarnings` setting when needed Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Testing for the truthiness of `this.settings.saveValueToSessionStorage` is already done in that function. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
The `form()` method now accepts a `true` argument that will force it to discard the current parent form and search for a new one, setting `this.parentForm` again. If none are found, `this.parentForm` is set to `null`. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- May 25, 2017
-
-
Alexandre Bonneau authored
Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Add the `this.defaultRawValue` variable that store the hard-coded default raw value used during the initialization and reset. When using the option `{ emptyInputBehavior: AutoNumeric.options.emptyInputBehavior.null }`, the user can now explicitly set the AutoNumeric value to `null` (using `anElement.set(null)` for instance). Additionally, when this option is set, if the AutoNumeric element is emptied, then `rawValue` is set to `null`. Note: if the current raw value is equal to `null`, changing the `emptyInputBehavior` option to something different than `null` will update the rawValue to `''`. Known limitation : Initializing an AutoNumeric object with the `null` value is not allowed since using `null` for the initial value means that AutoNumeric needs to use the current html value instead of `null`. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- May 15, 2017
-
-
Alexandre Bonneau authored
Update the AUTHORS file Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- May 14, 2017
-
-
Alexandre Bonneau authored
Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Fix issue #440 Pasting does not work in IE11
-
Alexandre Bonneau authored
-
- May 13, 2017
-
-
beastlike authored
changed paste code to fall back to window.clipboardData if it exists (ie11 localhost/intranet)
-
- May 07, 2017
-
-
Alexandre Bonneau authored
Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Update the Changelog with the modification to the default `wheelstep` for the pre-defined percentage options Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Fix issue #442 Setting `unformatOnSubmit` to `true` does not unformat the element on the form' `submit` event Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- May 02, 2017
-
-
Alexandre Bonneau authored
Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
Alexandre Bonneau authored
Using `0.01` as the wheel step is more logical when manipulating a percentage. Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-
- Apr 25, 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
The `AUTHORS` file can now be generated with the `yarn authors` command. 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>
-
- Apr 22, 2017
-
-
Alexandre Bonneau authored
Signed-off-by:
Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
-