Socket
Socket
Sign inDemoInstall

vue-autonumeric

Package Overview
Dependencies
1
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.4 to 1.0.5

1

.eslintrc.js

@@ -8,2 +8,3 @@ // http://eslint.org/docs/user-guide/configuring

sourceType: 'module',
ecmaVersion: 2017,
},

@@ -10,0 +11,0 @@ env : {

2

build/options.js

@@ -28,3 +28,3 @@ /* global module, process, __dirname */

main : path.join(__dirname, '..', 'dist'),
examples: path.join(__dirname, '..', 'examples'),
examples: path.join(__dirname, '..', 'examples/js'),
},

@@ -31,0 +31,0 @@

## Changelog for vue-autoNumeric
### 1.0.5
+ Fix issue #2 Allow the component to generate any supported Html element instead of only `<input>`
### 1.0.4

@@ -4,0 +7,0 @@ + Fix the component size issue which bundled the whole `AutoNumeric` library

/**
* vue-autonumeric v1.0.4 (https://github.com/autoNumeric/vue-autoNumeric)
* © 2017 Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
* vue-autonumeric v1.0.5 (https://github.com/autoNumeric/vue-autoNumeric)
* © 2018 Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>
* Released under the MIT License.

@@ -201,3 +201,3 @@ */

/* template */
__webpack_require__(44),
null,
/* scopeId */

@@ -299,2 +299,35 @@ null,

render: function render(createElement) {
var isInput = this.tag === 'input';
var attributes = void 0;
if (isInput) {
attributes = {
type: 'text',
placeholder: this.placeholder
};
} else {
attributes = {
contenteditable: true
};
}
return createElement(this.tag, {
attrs: attributes,
ref: 'autoNumericElement',
on: {
keydown: this.setUserInteraction,
paste: this.setUserInteraction,
wheel: this.setUserInteraction,
drop: this.setUserInteraction,
keyup: this.resetUserInteraction,
blur: this.resetUserInteraction,
'autoNumeric:rawValueModified': this.updateVModel
}
});
},
props: {

@@ -317,2 +350,8 @@ value: {

required: false
},
tag: {
type: String,
required: false,
default: 'input'
}

@@ -344,3 +383,3 @@ },

this.anElement = new _AutoNumeric2.default(this.$refs.autoNumericInput, options);
this.anElement = new _AutoNumeric2.default(this.$refs.autoNumericElement, options);
if (this.value !== null && this.value !== '') {

@@ -403,3 +442,2 @@ this.anElement.set(this.value);

}
};

@@ -848,27 +886,4 @@

/***/ }),
/* 44 */
/***/ (function(module, exports) {
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
return _c('input', {
ref: "autoNumericInput",
attrs: {
"type": "text",
"placeholder": _vm.placeholder
},
on: {
"keydown": _vm.setUserInteraction,
"paste": _vm.setUserInteraction,
"wheel": _vm.setUserInteraction,
"drop": _vm.setUserInteraction,
"keyup": _vm.resetUserInteraction,
"blur": _vm.resetUserInteraction,
"autoNumeric:rawValueModified": _vm.updateVModel
}
})
},staticRenderFns: []}
/***/ })
/******/ ])["default"];
});

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("AutoNumeric")):"function"==typeof define&&define.amd?define("VueAutonumeric",["AutoNumeric"],e):"object"==typeof exports?exports.VueAutonumeric=e(require("AutoNumeric")):t.VueAutonumeric=e(t.AutoNumeric)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=9)}([function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(6),o=n(7);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(32);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VueAutonumeric=void 0;var r=n(10),o=function(t){return t&&t.__esModule?t:{default:t}}(r);"undefined"!=typeof window&&window.Vue&&Vue.component("vue-autonumeric",o.default),e.VueAutonumeric=o.default,e.default=o.default},function(t,e,n){var r=n(11)(n(12),n(44),null,null);t.exports=r.exports},function(t,e){t.exports=function(t,e,n,r){var o,u=t=t||{},i=typeof t.default;"object"!==i&&"function"!==i||(o=t,u=t.default);var c="function"==typeof u?u.options:u;if(e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns),n&&(c._scopeId=n),r){var f=Object.create(c.computed||null);Object.keys(r).forEach(function(t){var e=r[t];f[t]=function(){return e}}),c.computed=f}return{esModule:o,exports:u,options:c}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(13),u=r(o),i=n(15),c=r(i),f=n(43),a=r(f),s={};e.default={name:"VueAutonumeric",props:{value:{type:Number,required:!1},options:{type:[Object,String,Array],required:!1,default:function(){return s}},placeholder:{type:String,required:!1}},data:function(){return{anElement:null,userInteraction:!1}},mounted:function(){var t=this,e=void 0;if(Array.isArray(this.options)){var n={};this.options.forEach(function(r){e=t.manageOptionElement(r),n=(0,c.default)(n,e)}),e=n}else e=this.manageOptionElement(this.options);this.anElement=new a.default(this.$refs.autoNumericInput,e),null!==this.value&&""!==this.value&&(this.anElement.set(this.value),this.updateVModel(),this.resetUserInteraction())},methods:{updateVModel:function(t){null!==this.anElement&&this.$emit("input",this.anElement.getNumber(),t)},setUserInteraction:function(){this.userInteraction=!0},resetUserInteraction:function(){this.userInteraction=!1},manageOptionElement:function(t){var e=void 0;return"string"==typeof t||t instanceof String?void 0!==(e=a.default.getPredefinedOptions()[t])&&null!==e||(console.warn("The given pre-defined options ["+t+"] is not recognized by autoNumeric.\nSwitching back to the default options."),e=s):e=t,e}},watch:{value:function(t,e){try{this.userInteraction||t!==e&&this.anElement.set(t)}catch(t){console.error(t)}this.resetUserInteraction()},options:function(t,e){(0,u.default)(t)!==(0,u.default)(e)&&this.anElement.update(t)}}}},function(t,e,n){t.exports={default:n(14),__esModule:!0}},function(t,e,n){var r=n(0),o=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},function(t,e,n){t.exports={default:n(16),__esModule:!0}},function(t,e,n){n(17),t.exports=n(0).Object.assign},function(t,e,n){var r=n(18);r(r.S+r.F,"Object",{assign:n(28)})},function(t,e,n){var r=n(1),o=n(0),u=n(19),i=n(21),c=function(t,e,n){var f,a,s,p=t&c.F,l=t&c.G,d=t&c.S,v=t&c.P,h=t&c.B,y=t&c.W,m=l?o:o[e]||(o[e]={}),x=m.prototype,b=l?r:d?r[e]:(r[e]||{}).prototype;l&&(n=e);for(f in n)(a=!p&&b&&void 0!==b[f])&&f in m||(s=a?b[f]:n[f],m[f]=l&&"function"!=typeof b[f]?n[f]:h&&a?u(s,r):y&&b[f]==s?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(s):v&&"function"==typeof s?u(Function.call,s):s,v&&((m.virtual||(m.virtual={}))[f]=s,t&c.R&&x&&!x[f]&&i(x,f,s)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var r=n(20);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(22),o=n(27);t.exports=n(3)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(23),o=n(24),u=n(26),i=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(r(t),e=u(e,!0),r(n),o)try{return i(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(2);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(25)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(2),o=n(1).document,u=r(o)&&r(o.createElement);t.exports=function(t){return u?o.createElement(t):{}}},function(t,e,n){var r=n(2);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var r=n(29),o=n(40),u=n(41),i=n(42),c=n(6),f=Object.assign;t.exports=!f||n(4)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=f({},t)[n]||Object.keys(f({},e)).join("")!=r})?function(t,e){for(var n=i(t),f=arguments.length,a=1,s=o.f,p=u.f;f>a;)for(var l,d=c(arguments[a++]),v=s?r(d).concat(s(d)):r(d),h=v.length,y=0;h>y;)p.call(d,l=v[y++])&&(n[l]=d[l]);return n}:f},function(t,e,n){var r=n(30),o=n(39);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(31),o=n(5),u=n(33)(!1),i=n(36)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),f=0,a=[];for(n in c)n!=i&&r(c,n)&&a.push(n);for(;e.length>f;)r(c,n=e[f++])&&(~u(a,n)||a.push(n));return a}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(5),o=n(34),u=n(35);t.exports=function(t){return function(e,n,i){var c,f=r(e),a=o(f.length),s=u(i,a);if(t&&n!=n){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===n)return t||s||0;return!t&&-1}}},function(t,e,n){var r=n(8),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(8),o=Math.max,u=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):u(t,e)}},function(t,e,n){var r=n(37)("keys"),o=n(38);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(1),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(7);t.exports=function(t){return Object(r(t))}},function(e,n){e.exports=t},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{ref:"autoNumericInput",attrs:{type:"text",placeholder:t.placeholder},on:{keydown:t.setUserInteraction,paste:t.setUserInteraction,wheel:t.setUserInteraction,drop:t.setUserInteraction,keyup:t.resetUserInteraction,blur:t.resetUserInteraction,"autoNumeric:rawValueModified":t.updateVModel}})},staticRenderFns:[]}}]).default});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("AutoNumeric")):"function"==typeof define&&define.amd?define("VueAutonumeric",["AutoNumeric"],e):"object"==typeof exports?exports.VueAutonumeric=e(require("AutoNumeric")):t.VueAutonumeric=e(t.AutoNumeric)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=9)}([function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(6),o=n(7);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(32);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VueAutonumeric=void 0;var r=n(10),o=function(t){return t&&t.__esModule?t:{default:t}}(r);"undefined"!=typeof window&&window.Vue&&Vue.component("vue-autonumeric",o.default),e.VueAutonumeric=o.default,e.default=o.default},function(t,e,n){var r=n(11)(n(12),null,null,null);t.exports=r.exports},function(t,e){t.exports=function(t,e,n,r){var o,u=t=t||{},i=typeof t.default;"object"!==i&&"function"!==i||(o=t,u=t.default);var c="function"==typeof u?u.options:u;if(e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns),n&&(c._scopeId=n),r){var f=Object.create(c.computed||null);Object.keys(r).forEach(function(t){var e=r[t];f[t]=function(){return e}}),c.computed=f}return{esModule:o,exports:u,options:c}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(13),u=r(o),i=n(15),c=r(i),f=n(43),a=r(f),s={};e.default={name:"VueAutonumeric",render:function(t){var e="input"===this.tag,n=void 0;return n=e?{type:"text",placeholder:this.placeholder}:{contenteditable:!0},t(this.tag,{attrs:n,ref:"autoNumericElement",on:{keydown:this.setUserInteraction,paste:this.setUserInteraction,wheel:this.setUserInteraction,drop:this.setUserInteraction,keyup:this.resetUserInteraction,blur:this.resetUserInteraction,"autoNumeric:rawValueModified":this.updateVModel}})},props:{value:{type:Number,required:!1},options:{type:[Object,String,Array],required:!1,default:function(){return s}},placeholder:{type:String,required:!1},tag:{type:String,required:!1,default:"input"}},data:function(){return{anElement:null,userInteraction:!1}},mounted:function(){var t=this,e=void 0;if(Array.isArray(this.options)){var n={};this.options.forEach(function(r){e=t.manageOptionElement(r),n=(0,c.default)(n,e)}),e=n}else e=this.manageOptionElement(this.options);this.anElement=new a.default(this.$refs.autoNumericElement,e),null!==this.value&&""!==this.value&&(this.anElement.set(this.value),this.updateVModel(),this.resetUserInteraction())},methods:{updateVModel:function(t){null!==this.anElement&&this.$emit("input",this.anElement.getNumber(),t)},setUserInteraction:function(){this.userInteraction=!0},resetUserInteraction:function(){this.userInteraction=!1},manageOptionElement:function(t){var e=void 0;return"string"==typeof t||t instanceof String?void 0!==(e=a.default.getPredefinedOptions()[t])&&null!==e||(console.warn("The given pre-defined options ["+t+"] is not recognized by autoNumeric.\nSwitching back to the default options."),e=s):e=t,e}},watch:{value:function(t,e){try{this.userInteraction||t!==e&&this.anElement.set(t)}catch(t){console.error(t)}this.resetUserInteraction()},options:function(t,e){(0,u.default)(t)!==(0,u.default)(e)&&this.anElement.update(t)}}}},function(t,e,n){t.exports={default:n(14),__esModule:!0}},function(t,e,n){var r=n(0),o=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},function(t,e,n){t.exports={default:n(16),__esModule:!0}},function(t,e,n){n(17),t.exports=n(0).Object.assign},function(t,e,n){var r=n(18);r(r.S+r.F,"Object",{assign:n(28)})},function(t,e,n){var r=n(1),o=n(0),u=n(19),i=n(21),c=function(t,e,n){var f,a,s,p=t&c.F,l=t&c.G,d=t&c.S,h=t&c.P,v=t&c.B,y=t&c.W,m=l?o:o[e]||(o[e]={}),x=m.prototype,b=l?r:d?r[e]:(r[e]||{}).prototype;l&&(n=e);for(f in n)(a=!p&&b&&void 0!==b[f])&&f in m||(s=a?b[f]:n[f],m[f]=l&&"function"!=typeof b[f]?n[f]:v&&a?u(s,r):y&&b[f]==s?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(s):h&&"function"==typeof s?u(Function.call,s):s,h&&((m.virtual||(m.virtual={}))[f]=s,t&c.R&&x&&!x[f]&&i(x,f,s)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var r=n(20);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(22),o=n(27);t.exports=n(3)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(23),o=n(24),u=n(26),i=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(r(t),e=u(e,!0),r(n),o)try{return i(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(2);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(25)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(2),o=n(1).document,u=r(o)&&r(o.createElement);t.exports=function(t){return u?o.createElement(t):{}}},function(t,e,n){var r=n(2);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var r=n(29),o=n(40),u=n(41),i=n(42),c=n(6),f=Object.assign;t.exports=!f||n(4)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=f({},t)[n]||Object.keys(f({},e)).join("")!=r})?function(t,e){for(var n=i(t),f=arguments.length,a=1,s=o.f,p=u.f;f>a;)for(var l,d=c(arguments[a++]),h=s?r(d).concat(s(d)):r(d),v=h.length,y=0;v>y;)p.call(d,l=h[y++])&&(n[l]=d[l]);return n}:f},function(t,e,n){var r=n(30),o=n(39);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(31),o=n(5),u=n(33)(!1),i=n(36)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),f=0,a=[];for(n in c)n!=i&&r(c,n)&&a.push(n);for(;e.length>f;)r(c,n=e[f++])&&(~u(a,n)||a.push(n));return a}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(5),o=n(34),u=n(35);t.exports=function(t){return function(e,n,i){var c,f=r(e),a=o(f.length),s=u(i,a);if(t&&n!=n){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===n)return t||s||0;return!t&&-1}}},function(t,e,n){var r=n(8),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(8),o=Math.max,u=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):u(t,e)}},function(t,e,n){var r=n(37)("keys"),o=n(38);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(1),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(7);t.exports=function(t){return Object(r(t))}},function(e,n){e.exports=t}]).default});
{
"name": "vue-autonumeric",
"version": "1.0.4",
"version": "1.0.5",
"description": "An AutoNumeric wrapper for Vue.js",

@@ -13,3 +13,3 @@ "author": "Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>",

"build": "npm run build:debug && npm run build:release && npm run build:examples",
"clean": "rimraf ./examples/examples.bundle.css ./examples/examples.bundle.js",
"clean": "rimraf ./examples/js/examples.bundle.js",
"lint": "eslint --ext .js,.vue src examples-src build",

@@ -43,3 +43,3 @@ "lintfix": "eslint --fix --ext .js,.vue src examples-src build"

"dependencies": {
"autonumeric": "^4.1.0-beta.16"
"autonumeric": "^4.1.0-beta.24"
},

@@ -46,0 +46,0 @@ "devDependencies": {

@@ -136,2 +136,4 @@ ## vue-autoNumeric

##### Placeholder
You can define the input placeholder using:

@@ -146,4 +148,16 @@ ```html

*In the future, you'll be able to define the type of element tag (`<p>`, `<div>`, etc.) you want that component to generate.<br>This will allow you to create any supported tag with the `contenteditable` attribute set to `true`, instead of `<input>` one as it is for now.*
##### Tag
You can also specify the type of html tag (within the [AutoNumeric supported list](https://github.com/autoNumeric/autoNumeric/tree/next#on-other-dom-elements)) this component should generate using the `tag` prop.
By default, an `<input>` element is generated, but if you want a `<div>` element, you can use:
```html
<vue-autonumeric
v-model="myValue"
options="euro"
tag="div"
></vue-autonumeric>
```
*Note: this will automatically set the `contenteditable` attribute to `true` for that generated element.*
#### Integration with other scripts & events support

@@ -192,6 +206,11 @@

### License
### Contributing
`vue-autoNumeric` is open source and released under the [MIT License](https://github.com/autoNumeric/vue-autoNumeric/blob/master/LICENSE).
Whenever you change the source code, you can check how it affects the default examples by first building those in `examples/index.html` with:
```sh
yarn build:examples
```
The [contribution guidelines](https://github.com/autoNumeric/autoNumeric/blob/next/doc/CONTRIBUTING.md) for vue-autoNumeric are the same than for the parent [AutoNumeric](https://github.com/autoNumeric/autoNumeric) project.
### Support

@@ -202,8 +221,11 @@

### License
<br>Copyright © 2016 Alexandre Bonneau
`vue-autoNumeric` is open source and released under the [MIT License](https://github.com/autoNumeric/vue-autoNumeric/blob/master/LICENSE).
<br>Copyright © 2016-2018 Alexandre Bonneau
> PS:<br>
I would love to know how you're using vue-autonumeric.<br>
Contact me! :)
Contact and tell me! :)

@@ -210,0 +232,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc