diff --git a/build/webpack.base.js b/build/webpack.base.js index c064af9..5f44611 100644 --- a/build/webpack.base.js +++ b/build/webpack.base.js @@ -92,6 +92,6 @@ module.exports = { * }, * }, */ - 'autonumeric/dist/autoNumeric.min': 'AutoNumeric', + autonumeric: 'AutoNumeric', }, }; diff --git a/dist/vue-autonumeric.js b/dist/vue-autonumeric.js index d59c067..295594a 100644 --- a/dist/vue-autonumeric.js +++ b/dist/vue-autonumeric.js @@ -1,6 +1,6 @@ /** * vue-autonumeric v1.2.6 (https://github.com/autoNumeric/vue-autoNumeric) - * © 2018 Alexandre Bonneau + * © 2019 Alexandre Bonneau * Released under the MIT License. */ (function webpackUniversalModuleDefinition(root, factory) { @@ -306,9 +306,9 @@ var _assign = __webpack_require__(16); var _assign2 = _interopRequireDefault(_assign); -var _autoNumeric = __webpack_require__(43); +var _autonumeric = __webpack_require__(43); -var _autoNumeric2 = _interopRequireDefault(_autoNumeric); +var _autonumeric2 = _interopRequireDefault(_autonumeric); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -400,7 +400,7 @@ exports.default = { this.hasContentEditable = !this.initialOptions.readOnly; }, mounted: function mounted() { - this.anElement = new _autoNumeric2.default(this.$refs.autoNumericElement, this.initialOptions); + this.anElement = new _autonumeric2.default(this.$refs.autoNumericElement, this.initialOptions); if (this.value !== null && this.value !== '') { this.anElement.set(this.value); @@ -427,7 +427,7 @@ exports.default = { manageOptionElement: function manageOptionElement(optionElement) { var options = void 0; if (typeof optionElement === 'string' || optionElement instanceof String) { - options = _autoNumeric2.default.getPredefinedOptions()[optionElement]; + options = _autonumeric2.default.getPredefinedOptions()[optionElement]; if (options === void 0 || options === null) { console.warn('The given pre-defined options [' + optionElement + '] is not recognized by AutoNumeric.\nSwitching back to the default options.'); options = defaultOptions; @@ -449,9 +449,9 @@ exports.default = { var optionsToUse = void 0; if (Array.isArray(newValue.options)) { - optionsToUse = _autoNumeric2.default.mergeOptions(newValue.options); + optionsToUse = _autonumeric2.default.mergeOptions(newValue.options); } else { - optionsToUse = _autoNumeric2.default._getOptionObject(newValue.options); + optionsToUse = _autonumeric2.default._getOptionObject(newValue.options); } this.anElement.update(optionsToUse); diff --git a/src/components/VueAutonumeric.vue b/src/components/VueAutonumeric.vue index 3a06a1b..f92bb0d 100644 --- a/src/components/VueAutonumeric.vue +++ b/src/components/VueAutonumeric.vue @@ -38,7 +38,7 @@ OTHER DEALINGS IN THE SOFTWARE. -->