Skip to content

Added blur interrupt capability #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 38 additions & 18 deletions dist/vue-autonumeric.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* vue-autonumeric v1.2.6 (https://github.com/autoNumeric/vue-autoNumeric)
* © 2018 Alexandre Bonneau <[email protected]>
* © 2019 Alexandre Bonneau <[email protected]>
* Released under the MIT License.
*/
(function webpackUniversalModuleDefinition(root, factory) {
Expand All @@ -12,7 +12,7 @@
exports["VueAutonumeric"] = factory(require("AutoNumeric"));
else
root["VueAutonumeric"] = factory(root["AutoNumeric"]);
})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_43__) {
})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_44__) {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
Expand Down Expand Up @@ -82,7 +82,7 @@ return /******/ (function(modules) { // webpackBootstrap
/* 0 */
/***/ (function(module, exports) {

var core = module.exports = { version: '2.5.4' };
var core = module.exports = { version: '2.6.5' };
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef


Expand Down Expand Up @@ -306,7 +306,7 @@ var _assign = __webpack_require__(16);

var _assign2 = _interopRequireDefault(_assign);

var _autoNumeric = __webpack_require__(43);
var _autoNumeric = __webpack_require__(44);

var _autoNumeric2 = _interopRequireDefault(_autoNumeric);

Expand Down Expand Up @@ -336,6 +336,8 @@ exports.default = {
attrs: attributes,
ref: 'autoNumericElement',
on: {

'blur': this.blurUpdateVModel,
'autoNumeric:rawValueModified': this.updateVModel
}
});
Expand Down Expand Up @@ -419,6 +421,11 @@ exports.default = {
},

methods: {
blurUpdateVModel: function blurUpdateVModel(event) {
if (this.anElement !== null) {
this.$emit('blur', this.anElement.getNumber(), event);
}
},
updateVModel: function updateVModel(event) {
if (this.anElement !== null) {
this.$emit('input', this.anElement.getNumber(), event);
Expand Down Expand Up @@ -718,9 +725,9 @@ module.exports = function (bitmap, value) {

// 19.1.2.1 Object.assign(target, source, ...)
var getKeys = __webpack_require__(30);
var gOPS = __webpack_require__(40);
var pIE = __webpack_require__(41);
var toObject = __webpack_require__(42);
var gOPS = __webpack_require__(41);
var pIE = __webpack_require__(42);
var toObject = __webpack_require__(43);
var IObject = __webpack_require__(7);
var $assign = Object.assign;

Expand Down Expand Up @@ -757,7 +764,7 @@ module.exports = !$assign || __webpack_require__(4)(function () {

// 19.1.2.14 / 15.2.3.14 Object.keys(O)
var $keys = __webpack_require__(31);
var enumBugKeys = __webpack_require__(39);
var enumBugKeys = __webpack_require__(40);

module.exports = Object.keys || function keys(O) {
return $keys(O, enumBugKeys);
Expand Down Expand Up @@ -857,7 +864,7 @@ module.exports = function (index, length) {
/***/ (function(module, exports, __webpack_require__) {

var shared = __webpack_require__(37)('keys');
var uid = __webpack_require__(38);
var uid = __webpack_require__(39);
module.exports = function (key) {
return shared[key] || (shared[key] = uid(key));
};
Expand All @@ -867,18 +874,31 @@ module.exports = function (key) {
/* 37 */
/***/ (function(module, exports, __webpack_require__) {

var core = __webpack_require__(0);
var global = __webpack_require__(1);
var SHARED = '__core-js_shared__';
var store = global[SHARED] || (global[SHARED] = {});
module.exports = function (key) {
return store[key] || (store[key] = {});
};

(module.exports = function (key, value) {
return store[key] || (store[key] = value !== undefined ? value : {});
})('versions', []).push({
version: core.version,
mode: __webpack_require__(38) ? 'pure' : 'global',
copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
});


/***/ }),
/* 38 */
/***/ (function(module, exports) {

module.exports = true;


/***/ }),
/* 39 */
/***/ (function(module, exports) {

var id = 0;
var px = Math.random();
module.exports = function (key) {
Expand All @@ -887,7 +907,7 @@ module.exports = function (key) {


/***/ }),
/* 39 */
/* 40 */
/***/ (function(module, exports) {

// IE 8- don't enum bug keys
Expand All @@ -897,21 +917,21 @@ module.exports = (


/***/ }),
/* 40 */
/* 41 */
/***/ (function(module, exports) {

exports.f = Object.getOwnPropertySymbols;


/***/ }),
/* 41 */
/* 42 */
/***/ (function(module, exports) {

exports.f = {}.propertyIsEnumerable;


/***/ }),
/* 42 */
/* 43 */
/***/ (function(module, exports, __webpack_require__) {

// 7.1.13 ToObject(argument)
Expand All @@ -922,10 +942,10 @@ module.exports = function (it) {


/***/ }),
/* 43 */
/* 44 */
/***/ (function(module, exports) {

module.exports = __WEBPACK_EXTERNAL_MODULE_43__;
module.exports = __WEBPACK_EXTERNAL_MODULE_44__;

/***/ })
/******/ ])["default"];
Expand Down
Loading