* Convert the old settings options name to new ones. * * @param {object} options
(options)
| 8346 | * @param {object} options |
| 8347 | */ |
| 8348 | static _convertOldOptionsToNewOnes(options) { |
| 8349 | //TODO Delete this function once the old options are not used anymore |
| 8350 | const oldOptionsConverter = { |
| 8351 | // Old option names, with their corresponding new names |
| 8352 | aSep : 'digitGroupSeparator', |
| 8353 | nSep : 'showOnlyNumbersOnFocus', |
| 8354 | dGroup : 'digitalGroupSpacing', |
| 8355 | aDec : 'decimalCharacter', |
| 8356 | altDec : 'decimalCharacterAlternative', |
| 8357 | aSign : 'currencySymbol', |
| 8358 | pSign : 'currencySymbolPlacement', |
| 8359 | pNeg : 'negativePositiveSignPlacement', |
| 8360 | aSuffix : 'suffixText', |
| 8361 | oLimits : 'overrideMinMaxLimits', |
| 8362 | vMax : 'maximumValue', |
| 8363 | vMin : 'minimumValue', |
| 8364 | mDec : 'decimalPlacesOverride', |
| 8365 | eDec : 'decimalPlacesShownOnFocus', |
| 8366 | scaleDecimal : 'decimalPlacesShownOnBlur', |
| 8367 | aStor : 'saveValueToSessionStorage', |
| 8368 | mRound : 'roundingMethod', |
| 8369 | aPad : 'allowDecimalPadding', |
| 8370 | nBracket : 'negativeBracketsTypeOnBlur', |
| 8371 | wEmpty : 'emptyInputBehavior', |
| 8372 | lZero : 'leadingZero', |
| 8373 | aForm : 'formatOnPageLoad', |
| 8374 | sNumber : 'selectNumberOnly', |
| 8375 | anDefault : 'defaultValueOverride', |
| 8376 | unSetOnSubmit : 'unformatOnSubmit', |
| 8377 | outputType : 'outputFormat', |
| 8378 | debug : 'showWarnings', |
| 8379 | |
| 8380 | // Current options : |
| 8381 | allowDecimalPadding : true, |
| 8382 | alwaysAllowDecimalCharacter : true, |
| 8383 | caretPositionOnFocus : true, |
| 8384 | createLocalList : true, |
| 8385 | currencySymbol : true, |
| 8386 | currencySymbolPlacement : true, |
| 8387 | decimalCharacter : true, |
| 8388 | decimalCharacterAlternative : true, |
| 8389 | decimalPlaces : true, |
| 8390 | decimalPlacesRawValue : true, |
| 8391 | decimalPlacesShownOnBlur : true, |
| 8392 | decimalPlacesShownOnFocus : true, |
| 8393 | defaultValueOverride : true, |
| 8394 | digitalGroupSpacing : true, |
| 8395 | digitGroupSeparator : true, |
| 8396 | divisorWhenUnfocused : true, |
| 8397 | emptyInputBehavior : true, |
| 8398 | eventBubbles : true, |
| 8399 | eventIsCancelable : true, |
| 8400 | failOnUnknownOption : true, |
| 8401 | formatOnPageLoad : true, |
| 8402 | formulaMode : true, |
| 8403 | historySize : true, |
| 8404 | isCancellable : true, |
| 8405 | leadingZero : true, |
no test coverage detected