Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vstx-input

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vstx-input - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

2

dist/vstx-input.js

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("vstx-input",[],t):"object"==typeof exports?exports["vstx-input"]=t():e["vstx-input"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(s){if(n[s])return n[s].exports;var i=n[s]={i:s,l:!1,exports:{}};return e[s].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,s){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:s})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=1)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"vstxInput",props:{inputClasses:{type:Object,default:function(){return{}}},label:{type:String,default:""},layout:{type:String,default:""},placeholder:{type:String,default:""},value:{default:""},iconLeft:{type:String,default:""},iconRight:{type:String,default:""},success:{type:String,default:""},danger:{type:String,default:""},type:{type:String,default:"text"},size:{type:String,default:""},styles:{type:String,default:"normal"},state:{type:String,default:"normal"},step:{type:[Number,String],default:1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:""},autocomplete:{type:String,default:"off"},nowrap:{type:Boolean,default:!1}},data:function(){return{}},computed:{getInputSize:function(){return this.nowrap&&this.value?this.value.length:0},getIcons:function(){return{"has-icons-left":this.iconLeft.length,"has-icons-right":this.iconRight.length}},getStyles:function(){return{"is-rounded":"rounded"===this.styles}},getState:function(){return{"is-success":"success"===this.state,"is-warning":"warning"===this.state,"is-danger":"danger"===this.state,"is-loading":"loading"===this.state,"is-hovered":"hovered"===this.state,"is-focused":"focused"===this.state,"is-static":"static"===this.state}},getSize:function(){return{"is-small":"small"===this.size,"is-normal":"normal"===this.size,"is-medium":"medium"===this.size,"is-large":"large"===this.size}}},methods:{onInput:function(e){this.$emit("input",e)},onSelect:function(e){this.$emit("onSelect",e)}}}},function(e,t,n){"use strict";function s(e){l||n(2)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,function(){return i[e]})}(r);var o=n(8),l=!1,u=n(7),c=s,p=u(a.a,o.a,!1,c,null,null);p.options.__file="src\\vstxInput.vue",t.default=p.exports},function(e,t,n){var s=n(3);"string"==typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);n(5)("4e2fb223",s,!1)},function(e,t,n){t=e.exports=n(4)(void 0),t.push([e.i,"",""])},function(e,t){function n(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var a=s(i);return[n].concat(i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"})).concat([a]).join("\n")}return[n].join("\n")}function s(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var s=n(t,e);return t[2]?"@media "+t[2]+"{"+s+"}":s}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var s={},i=0;i<this.length;i++){var a=this[i][0];"number"==typeof a&&(s[a]=!0)}for(i=0;i<e.length;i++){var r=e[i];"number"==typeof r[0]&&s[r[0]]||(n&&!r[2]?r[2]=n:n&&(r[2]="("+r[2]+") and ("+n+")"),t.push(r))}},t}},function(e,t,n){function s(e){for(var t=0;t<e.length;t++){var n=e[t],s=c[n.id];if(s){s.refs++;for(var i=0;i<s.parts.length;i++)s.parts[i](n.parts[i]);for(;i<n.parts.length;i++)s.parts.push(a(n.parts[i]));s.parts.length>n.parts.length&&(s.parts.length=n.parts.length)}else{for(var r=[],i=0;i<n.parts.length;i++)r.push(a(n.parts[i]));c[n.id]={id:n.id,refs:1,parts:r}}}}function i(){var e=document.createElement("style");return e.type="text/css",p.appendChild(e),e}function a(e){var t,n,s=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(s){if(g)return h;s.parentNode.removeChild(s)}if(v){var a=d++;s=f||(f=i()),t=r.bind(null,s,a,!1),n=r.bind(null,s,a,!0)}else s=i(),t=o.bind(null,s),n=function(){s.parentNode.removeChild(s)};return t(e),function(s){if(s){if(s.css===e.css&&s.media===e.media&&s.sourceMap===e.sourceMap)return;t(e=s)}else n()}}function r(e,t,n,s){var i=n?"":s.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var a=document.createTextNode(i),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(a,r[t]):e.appendChild(a)}}function o(e,t){var n=t.css,s=t.media,i=t.sourceMap;if(s&&e.setAttribute("media",s),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var u=n(6),c={},p=l&&(document.head||document.getElementsByTagName("head")[0]),f=null,d=0,g=!1,h=function(){},v="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n){g=n;var i=u(e,t);return s(i),function(t){for(var n=[],a=0;a<i.length;a++){var r=i[a],o=c[r.id];o.refs--,n.push(o)}t?(i=u(e,t),s(i)):i=[];for(var a=0;a<n.length;a++){var o=n[a];if(0===o.refs){for(var l=0;l<o.parts.length;l++)o.parts[l]();delete c[o.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e,t){for(var n=[],s={},i=0;i<t.length;i++){var a=t[i],r=a[0],o=a[1],l=a[2],u=a[3],c={id:e+":"+i,css:o,media:l,sourceMap:u};s[r]?s[r].parts.push(c):n.push(s[r]={id:r,parts:[c]})}return n}},function(e,t){e.exports=function(e,t,n,s,i,a){var r,o=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(r=e,o=e.default);var u="function"==typeof o?o.options:o;t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId=i);var c;if(a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),s&&s.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):s&&(c=s),c){var p=u.functional,f=p?u.render:u.beforeCreate;p?(u._injectStyles=c,u.render=function(e,t){return c.call(t),f(e,t)}):u.beforeCreate=f?[].concat(f,c):[c]}return{esModule:r,exports:o,options:u}}},function(e,t,n){"use strict";var s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return"horizontal"===e.layout?n("div",{staticClass:"field is-horizontal",class:e.getSize},[e._t("slot-label",[e.label.length?n("div",{staticClass:"field-label",class:e.getSize},[e.label.length?n("label",{staticClass:"label",class:e.getSize},[e._v(e._s(e.label))]):e._e()]):e._e()]),n("div",{staticClass:"field-body"},[n("div",{staticClass:"field"},[n("div",{staticClass:"control",class:e.getIcons},[n("input",e._b({staticClass:"input",class:[e.getSize,e.getState,e.getStyles],attrs:{autocomplete:e.autocomplete,step:e.step,min:e.min,max:e.max,disabled:"disabled"===e.state,readonly:"readonly"===e.state,type:e.type,placeholder:e.placeholder,size:e.getInputSize},domProps:{value:e.value},on:{input:function(t){e.onInput(t.target.value)},keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key))return null;t.preventDefault(),t.stopPropagation(),e.onSelect(t.target.value)}}},"input",e.$attrs,!1)),e.iconLeft.length?n("span",{staticClass:"icon is-left",class:e.getSize},[n("i",{staticClass:"fa",class:e.iconLeft})]):e._e(),e.iconRight.length?n("span",{staticClass:"icon is-right",class:e.getSize},[n("i",{staticClass:"fa",class:e.iconRight})]):e._e()]),e.success.length?n("p",{staticClass:"help is-success"},[e._v(e._s(e.success))]):e._e(),e.danger.length?n("p",{staticClass:"help is-danger"},[e._v(e._s(e.danger))]):e._e()])])],2):"horizontal"!==e.layout?n("div",{staticClass:"field",class:e.getSize},[e._t("slot-label",[e.label.length?n("label",{staticClass:"label",class:e.getSize},[e._v(e._s(e.label))]):e._e()]),n("div",{staticClass:"control",class:[e.getSize,e.getState,e.getIcons]},[n("input",e._b({staticClass:"input",class:[e.getSize,e.getState,e.getStyles].concat(e.inputClasses),attrs:{autocomplete:e.autocomplete,step:e.step,min:e.min,max:e.max,disabled:"disabled"===e.state,readonly:"readonly"===e.state,type:e.type,placeholder:e.placeholder,size:e.getInputSize},domProps:{value:e.value},on:{input:function(t){e.onInput(t.target.value)},keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key))return null;t.preventDefault(),t.stopPropagation(),e.onSelect(t.target.value)}}},"input",e.$attrs,!1)),e.iconLeft.length?n("span",{staticClass:"icon is-left",class:e.getSize},[n("i",{staticClass:"fa",class:e.iconLeft})]):e._e(),e.iconRight.length?n("span",{staticClass:"icon is-right",class:e.getSize},[n("i",{staticClass:"fa",class:e.iconRight})]):e._e()]),e.success.length?n("p",{staticClass:"help is-success"},[e._v(e._s(e.success))]):e._e(),e.danger.length?n("p",{staticClass:"help is-danger"},[e._v(e._s(e.danger))]):e._e()],2):e._e()},i=[];s._withStripped=!0;var a={render:s,staticRenderFns:i};t.a=a}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("vstx-input",[],t):"object"==typeof exports?exports["vstx-input"]=t():e["vstx-input"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(s){if(n[s])return n[s].exports;var i=n[s]={i:s,l:!1,exports:{}};return e[s].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,s){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:s})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=1)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"vstxInput",props:{inputClasses:{type:Object,default:function(){return{}}},label:{type:String,default:""},layout:{type:String,default:""},placeholder:{type:String,default:""},value:{default:""},iconLeft:{type:String,default:""},iconRight:{type:String,default:""},success:{type:String,default:""},danger:{type:String,default:""},type:{type:String,default:"text"},size:{type:String,default:""},styles:{type:String,default:"normal"},state:{type:String,default:"normal"},step:{type:[Number,String],default:1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:""},autocomplete:{type:String,default:"off"},nowrap:{type:Boolean,default:!1}},data:function(){return{}},computed:{getInputSize:function(){return this.nowrap&&this.value?this.value.length:0},getIcons:function(){return{"has-icons-left":this.iconLeft.length,"has-icons-right":this.iconRight.length}},getStyles:function(){return{"is-rounded":"rounded"===this.styles}},getState:function(){return{"is-success":"success"===this.state,"is-warning":"warning"===this.state,"is-danger":"danger"===this.state,"is-loading":"loading"===this.state,"is-hovered":"hovered"===this.state,"is-focused":"focused"===this.state,"is-static":"static"===this.state}},getSize:function(){return{"is-small":"small"===this.size,"is-normal":"normal"===this.size,"is-medium":"medium"===this.size,"is-large":"large"===this.size}}},methods:{onInput:function(e){this.$emit("input",e)},onSelect:function(e){this.$emit("onSelect",e)}}}},function(e,t,n){"use strict";function s(e){l||n(2)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n.n(i);for(var r in i)"default"!==r&&function(e){n.d(t,e,function(){return i[e]})}(r);var o=n(8),l=!1,u=n(7),c=s,d=u(a.a,o.a,!1,c,null,null);d.options.__file="src\\vstxInput.vue",t.default=d.exports},function(e,t,n){var s=n(3);"string"==typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);n(5)("4e2fb223",s,!1)},function(e,t,n){t=e.exports=n(4)(void 0),t.push([e.i,"",""])},function(e,t){function n(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var a=s(i);return[n].concat(i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"})).concat([a]).join("\n")}return[n].join("\n")}function s(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var s=n(t,e);return t[2]?"@media "+t[2]+"{"+s+"}":s}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var s={},i=0;i<this.length;i++){var a=this[i][0];"number"==typeof a&&(s[a]=!0)}for(i=0;i<e.length;i++){var r=e[i];"number"==typeof r[0]&&s[r[0]]||(n&&!r[2]?r[2]=n:n&&(r[2]="("+r[2]+") and ("+n+")"),t.push(r))}},t}},function(e,t,n){function s(e){for(var t=0;t<e.length;t++){var n=e[t],s=c[n.id];if(s){s.refs++;for(var i=0;i<s.parts.length;i++)s.parts[i](n.parts[i]);for(;i<n.parts.length;i++)s.parts.push(a(n.parts[i]));s.parts.length>n.parts.length&&(s.parts.length=n.parts.length)}else{for(var r=[],i=0;i<n.parts.length;i++)r.push(a(n.parts[i]));c[n.id]={id:n.id,refs:1,parts:r}}}}function i(){var e=document.createElement("style");return e.type="text/css",d.appendChild(e),e}function a(e){var t,n,s=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(s){if(g)return h;s.parentNode.removeChild(s)}if(v){var a=f++;s=p||(p=i()),t=r.bind(null,s,a,!1),n=r.bind(null,s,a,!0)}else s=i(),t=o.bind(null,s),n=function(){s.parentNode.removeChild(s)};return t(e),function(s){if(s){if(s.css===e.css&&s.media===e.media&&s.sourceMap===e.sourceMap)return;t(e=s)}else n()}}function r(e,t,n,s){var i=n?"":s.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var a=document.createTextNode(i),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(a,r[t]):e.appendChild(a)}}function o(e,t){var n=t.css,s=t.media,i=t.sourceMap;if(s&&e.setAttribute("media",s),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var u=n(6),c={},d=l&&(document.head||document.getElementsByTagName("head")[0]),p=null,f=0,g=!1,h=function(){},v="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n){g=n;var i=u(e,t);return s(i),function(t){for(var n=[],a=0;a<i.length;a++){var r=i[a],o=c[r.id];o.refs--,n.push(o)}t?(i=u(e,t),s(i)):i=[];for(var a=0;a<n.length;a++){var o=n[a];if(0===o.refs){for(var l=0;l<o.parts.length;l++)o.parts[l]();delete c[o.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e,t){for(var n=[],s={},i=0;i<t.length;i++){var a=t[i],r=a[0],o=a[1],l=a[2],u=a[3],c={id:e+":"+i,css:o,media:l,sourceMap:u};s[r]?s[r].parts.push(c):n.push(s[r]={id:r,parts:[c]})}return n}},function(e,t){e.exports=function(e,t,n,s,i,a){var r,o=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(r=e,o=e.default);var u="function"==typeof o?o.options:o;t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId=i);var c;if(a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),s&&s.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):s&&(c=s),c){var d=u.functional,p=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(e,t){return c.call(t),p(e,t)}):u.beforeCreate=p?[].concat(p,c):[c]}return{esModule:r,exports:o,options:u}}},function(e,t,n){"use strict";var s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return"horizontal"===e.layout?n("div",{staticClass:"field is-horizontal",class:e.getSize},[e._t("slot-label",[e.label.length?n("div",{staticClass:"field-label",class:e.getSize},[e.label.length?n("label",{staticClass:"label",class:e.getSize},[e._v(e._s(e.label))]):e._e()]):e._e()]),n("div",{staticClass:"field-body"},[n("div",{staticClass:"field"},[n("div",{staticClass:"control",class:e.getIcons},[n("input",e._b({staticClass:"input",class:[e.getSize,e.getState,e.getStyles],attrs:{autocomplete:e.autocomplete,step:e.step,min:e.min,max:e.max,disabled:"disabled"===e.state||e.$attrs.disabled,readonly:"readonly"===e.state,type:e.type,placeholder:e.placeholder,size:e.getInputSize},domProps:{value:e.value},on:{input:function(t){e.onInput(t.target.value)},keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key))return null;t.preventDefault(),t.stopPropagation(),e.onSelect(t.target.value)}}},"input",e.$attrs,!1)),e.iconLeft.length?n("span",{staticClass:"icon is-left",class:e.getSize},[n("i",{staticClass:"fa",class:e.iconLeft})]):e._e(),e.iconRight.length?n("span",{staticClass:"icon is-right",class:e.getSize},[n("i",{staticClass:"fa",class:e.iconRight})]):e._e()]),e.success.length?n("p",{staticClass:"help is-success"},[e._v(e._s(e.success))]):e._e(),e.danger.length?n("p",{staticClass:"help is-danger"},[e._v(e._s(e.danger))]):e._e()])])],2):"horizontal"!==e.layout?n("div",{staticClass:"field",class:e.getSize},[e._t("slot-label",[e.label.length?n("label",{staticClass:"label",class:e.getSize},[e._v(e._s(e.label))]):e._e()]),n("div",{staticClass:"control",class:[e.getSize,e.getState,e.getIcons]},[n("input",e._b({staticClass:"input",class:[e.getSize,e.getState,e.getStyles].concat(e.inputClasses),attrs:{autocomplete:e.autocomplete,step:e.step,min:e.min,max:e.max,disabled:"disabled"===e.state||e.$attrs.disabled,readonly:"readonly"===e.state,type:e.type,placeholder:e.placeholder,size:e.getInputSize},domProps:{value:e.value},on:{input:function(t){e.onInput(t.target.value)},keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key))return null;t.preventDefault(),t.stopPropagation(),e.onSelect(t.target.value)}}},"input",e.$attrs,!1)),e.iconLeft.length?n("span",{staticClass:"icon is-left",class:e.getSize},[n("i",{staticClass:"fa",class:e.iconLeft})]):e._e(),e.iconRight.length?n("span",{staticClass:"icon is-right",class:e.getSize},[n("i",{staticClass:"fa",class:e.iconRight})]):e._e()]),e.success.length?n("p",{staticClass:"help is-success"},[e._v(e._s(e.success))]):e._e(),e.danger.length?n("p",{staticClass:"help is-danger"},[e._v(e._s(e.danger))]):e._e()],2):e._e()},i=[];s._withStripped=!0;var a={render:s,staticRenderFns:i};t.a=a}])});

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

window.vstxInput=function(t){function e(s){if(n[s])return n[s].exports;var i=n[s]={i:s,l:!1,exports:{}};return t[s].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,s){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:s})},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=1)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"vstxInput",props:{inputClasses:{type:Object,default:function(){return{}}},label:{type:String,default:""},layout:{type:String,default:""},placeholder:{type:String,default:""},value:{default:""},iconLeft:{type:String,default:""},iconRight:{type:String,default:""},success:{type:String,default:""},danger:{type:String,default:""},type:{type:String,default:"text"},size:{type:String,default:""},styles:{type:String,default:"normal"},state:{type:String,default:"normal"},step:{type:[Number,String],default:1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:""},autocomplete:{type:String,default:"off"},nowrap:{type:Boolean,default:!1}},data:function(){return{}},computed:{getInputSize:function(){return this.nowrap&&this.value?this.value.length:0},getIcons:function(){return{"has-icons-left":this.iconLeft.length,"has-icons-right":this.iconRight.length}},getStyles:function(){return{"is-rounded":"rounded"===this.styles}},getState:function(){return{"is-success":"success"===this.state,"is-warning":"warning"===this.state,"is-danger":"danger"===this.state,"is-loading":"loading"===this.state,"is-hovered":"hovered"===this.state,"is-focused":"focused"===this.state,"is-static":"static"===this.state}},getSize:function(){return{"is-small":"small"===this.size,"is-normal":"normal"===this.size,"is-medium":"medium"===this.size,"is-large":"large"===this.size}}},methods:{onInput:function(t){this.$emit("input",t)},onSelect:function(t){this.$emit("onSelect",t)}}}},function(t,e,n){"use strict";var s=n(2),i=function(t){return t&&t.__esModule?t:{default:t}}(s);t.exports={install:function(t,e){t.component("vstx-input",i.default)}}},function(t,e,n){"use strict";function s(t){l||n(3)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),a=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,function(){return i[t]})}(r);var o=n(9),l=!1,u=n(8),c=s,d=u(a.a,o.a,!1,c,null,null);d.options.__file="src\\vstxInput.vue",e.default=d.exports},function(t,e,n){var s=n(4);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);n(6)("4e2fb223",s,!1)},function(t,e,n){e=t.exports=n(5)(void 0),e.push([t.i,"",""])},function(t,e){function n(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var a=s(i);return[n].concat(i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"})).concat([a]).join("\n")}return[n].join("\n")}function s(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var s=n(e,t);return e[2]?"@media "+e[2]+"{"+s+"}":s}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var s={},i=0;i<this.length;i++){var a=this[i][0];"number"==typeof a&&(s[a]=!0)}for(i=0;i<t.length;i++){var r=t[i];"number"==typeof r[0]&&s[r[0]]||(n&&!r[2]?r[2]=n:n&&(r[2]="("+r[2]+") and ("+n+")"),e.push(r))}},e}},function(t,e,n){function s(t){for(var e=0;e<t.length;e++){var n=t[e],s=c[n.id];if(s){s.refs++;for(var i=0;i<s.parts.length;i++)s.parts[i](n.parts[i]);for(;i<n.parts.length;i++)s.parts.push(a(n.parts[i]));s.parts.length>n.parts.length&&(s.parts.length=n.parts.length)}else{for(var r=[],i=0;i<n.parts.length;i++)r.push(a(n.parts[i]));c[n.id]={id:n.id,refs:1,parts:r}}}}function i(){var t=document.createElement("style");return t.type="text/css",d.appendChild(t),t}function a(t){var e,n,s=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(s){if(g)return h;s.parentNode.removeChild(s)}if(v){var a=f++;s=p||(p=i()),e=r.bind(null,s,a,!1),n=r.bind(null,s,a,!0)}else s=i(),e=o.bind(null,s),n=function(){s.parentNode.removeChild(s)};return e(t),function(s){if(s){if(s.css===t.css&&s.media===t.media&&s.sourceMap===t.sourceMap)return;e(t=s)}else n()}}function r(t,e,n,s){var i=n?"":s.css;if(t.styleSheet)t.styleSheet.cssText=m(e,i);else{var a=document.createTextNode(i),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(a,r[e]):t.appendChild(a)}}function o(t,e){var n=e.css,s=e.media,i=e.sourceMap;if(s&&t.setAttribute("media",s),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var u=n(7),c={},d=l&&(document.head||document.getElementsByTagName("head")[0]),p=null,f=0,g=!1,h=function(){},v="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,n){g=n;var i=u(t,e);return s(i),function(e){for(var n=[],a=0;a<i.length;a++){var r=i[a],o=c[r.id];o.refs--,n.push(o)}e?(i=u(t,e),s(i)):i=[];for(var a=0;a<n.length;a++){var o=n[a];if(0===o.refs){for(var l=0;l<o.parts.length;l++)o.parts[l]();delete c[o.id]}}}};var m=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e){for(var n=[],s={},i=0;i<e.length;i++){var a=e[i],r=a[0],o=a[1],l=a[2],u=a[3],c={id:t+":"+i,css:o,media:l,sourceMap:u};s[r]?s[r].parts.push(c):n.push(s[r]={id:r,parts:[c]})}return n}},function(t,e){t.exports=function(t,e,n,s,i,a){var r,o=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(r=t,o=t.default);var u="function"==typeof o?o.options:o;e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId=i);var c;if(a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):s&&(c=s),c){var d=u.functional,p=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(t,e){return c.call(e),p(t,e)}):u.beforeCreate=p?[].concat(p,c):[c]}return{esModule:r,exports:o,options:u}}},function(t,e,n){"use strict";var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return"horizontal"===t.layout?n("div",{staticClass:"field is-horizontal",class:t.getSize},[t._t("slot-label",[t.label.length?n("div",{staticClass:"field-label",class:t.getSize},[t.label.length?n("label",{staticClass:"label",class:t.getSize},[t._v(t._s(t.label))]):t._e()]):t._e()]),n("div",{staticClass:"field-body"},[n("div",{staticClass:"field"},[n("div",{staticClass:"control",class:t.getIcons},[n("input",t._b({staticClass:"input",class:[t.getSize,t.getState,t.getStyles],attrs:{autocomplete:t.autocomplete,step:t.step,min:t.min,max:t.max,disabled:"disabled"===t.state,readonly:"readonly"===t.state,type:t.type,placeholder:t.placeholder,size:t.getInputSize},domProps:{value:t.value},on:{input:function(e){t.onInput(e.target.value)},keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;e.preventDefault(),e.stopPropagation(),t.onSelect(e.target.value)}}},"input",t.$attrs,!1)),t.iconLeft.length?n("span",{staticClass:"icon is-left",class:t.getSize},[n("i",{staticClass:"fa",class:t.iconLeft})]):t._e(),t.iconRight.length?n("span",{staticClass:"icon is-right",class:t.getSize},[n("i",{staticClass:"fa",class:t.iconRight})]):t._e()]),t.success.length?n("p",{staticClass:"help is-success"},[t._v(t._s(t.success))]):t._e(),t.danger.length?n("p",{staticClass:"help is-danger"},[t._v(t._s(t.danger))]):t._e()])])],2):"horizontal"!==t.layout?n("div",{staticClass:"field",class:t.getSize},[t._t("slot-label",[t.label.length?n("label",{staticClass:"label",class:t.getSize},[t._v(t._s(t.label))]):t._e()]),n("div",{staticClass:"control",class:[t.getSize,t.getState,t.getIcons]},[n("input",t._b({staticClass:"input",class:[t.getSize,t.getState,t.getStyles].concat(t.inputClasses),attrs:{autocomplete:t.autocomplete,step:t.step,min:t.min,max:t.max,disabled:"disabled"===t.state,readonly:"readonly"===t.state,type:t.type,placeholder:t.placeholder,size:t.getInputSize},domProps:{value:t.value},on:{input:function(e){t.onInput(e.target.value)},keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;e.preventDefault(),e.stopPropagation(),t.onSelect(e.target.value)}}},"input",t.$attrs,!1)),t.iconLeft.length?n("span",{staticClass:"icon is-left",class:t.getSize},[n("i",{staticClass:"fa",class:t.iconLeft})]):t._e(),t.iconRight.length?n("span",{staticClass:"icon is-right",class:t.getSize},[n("i",{staticClass:"fa",class:t.iconRight})]):t._e()]),t.success.length?n("p",{staticClass:"help is-success"},[t._v(t._s(t.success))]):t._e(),t.danger.length?n("p",{staticClass:"help is-danger"},[t._v(t._s(t.danger))]):t._e()],2):t._e()},i=[];s._withStripped=!0;var a={render:s,staticRenderFns:i};e.a=a}]);
window.vstxInput=function(t){function e(s){if(n[s])return n[s].exports;var i=n[s]={i:s,l:!1,exports:{}};return t[s].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,s){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:s})},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=1)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"vstxInput",props:{inputClasses:{type:Object,default:function(){return{}}},label:{type:String,default:""},layout:{type:String,default:""},placeholder:{type:String,default:""},value:{default:""},iconLeft:{type:String,default:""},iconRight:{type:String,default:""},success:{type:String,default:""},danger:{type:String,default:""},type:{type:String,default:"text"},size:{type:String,default:""},styles:{type:String,default:"normal"},state:{type:String,default:"normal"},step:{type:[Number,String],default:1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:""},autocomplete:{type:String,default:"off"},nowrap:{type:Boolean,default:!1}},data:function(){return{}},computed:{getInputSize:function(){return this.nowrap&&this.value?this.value.length:0},getIcons:function(){return{"has-icons-left":this.iconLeft.length,"has-icons-right":this.iconRight.length}},getStyles:function(){return{"is-rounded":"rounded"===this.styles}},getState:function(){return{"is-success":"success"===this.state,"is-warning":"warning"===this.state,"is-danger":"danger"===this.state,"is-loading":"loading"===this.state,"is-hovered":"hovered"===this.state,"is-focused":"focused"===this.state,"is-static":"static"===this.state}},getSize:function(){return{"is-small":"small"===this.size,"is-normal":"normal"===this.size,"is-medium":"medium"===this.size,"is-large":"large"===this.size}}},methods:{onInput:function(t){this.$emit("input",t)},onSelect:function(t){this.$emit("onSelect",t)}}}},function(t,e,n){"use strict";var s=n(2),i=function(t){return t&&t.__esModule?t:{default:t}}(s);t.exports={install:function(t,e){t.component("vstx-input",i.default)}}},function(t,e,n){"use strict";function s(t){l||n(3)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),a=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,function(){return i[t]})}(r);var o=n(9),l=!1,u=n(8),c=s,d=u(a.a,o.a,!1,c,null,null);d.options.__file="src\\vstxInput.vue",e.default=d.exports},function(t,e,n){var s=n(4);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);n(6)("4e2fb223",s,!1)},function(t,e,n){e=t.exports=n(5)(void 0),e.push([t.i,"",""])},function(t,e){function n(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var a=s(i);return[n].concat(i.sources.map(function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"})).concat([a]).join("\n")}return[n].join("\n")}function s(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var s=n(e,t);return e[2]?"@media "+e[2]+"{"+s+"}":s}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var s={},i=0;i<this.length;i++){var a=this[i][0];"number"==typeof a&&(s[a]=!0)}for(i=0;i<t.length;i++){var r=t[i];"number"==typeof r[0]&&s[r[0]]||(n&&!r[2]?r[2]=n:n&&(r[2]="("+r[2]+") and ("+n+")"),e.push(r))}},e}},function(t,e,n){function s(t){for(var e=0;e<t.length;e++){var n=t[e],s=c[n.id];if(s){s.refs++;for(var i=0;i<s.parts.length;i++)s.parts[i](n.parts[i]);for(;i<n.parts.length;i++)s.parts.push(a(n.parts[i]));s.parts.length>n.parts.length&&(s.parts.length=n.parts.length)}else{for(var r=[],i=0;i<n.parts.length;i++)r.push(a(n.parts[i]));c[n.id]={id:n.id,refs:1,parts:r}}}}function i(){var t=document.createElement("style");return t.type="text/css",d.appendChild(t),t}function a(t){var e,n,s=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(s){if(g)return h;s.parentNode.removeChild(s)}if(v){var a=f++;s=p||(p=i()),e=r.bind(null,s,a,!1),n=r.bind(null,s,a,!0)}else s=i(),e=o.bind(null,s),n=function(){s.parentNode.removeChild(s)};return e(t),function(s){if(s){if(s.css===t.css&&s.media===t.media&&s.sourceMap===t.sourceMap)return;e(t=s)}else n()}}function r(t,e,n,s){var i=n?"":s.css;if(t.styleSheet)t.styleSheet.cssText=m(e,i);else{var a=document.createTextNode(i),r=t.childNodes;r[e]&&t.removeChild(r[e]),r.length?t.insertBefore(a,r[e]):t.appendChild(a)}}function o(t,e){var n=e.css,s=e.media,i=e.sourceMap;if(s&&t.setAttribute("media",s),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var u=n(7),c={},d=l&&(document.head||document.getElementsByTagName("head")[0]),p=null,f=0,g=!1,h=function(){},v="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,n){g=n;var i=u(t,e);return s(i),function(e){for(var n=[],a=0;a<i.length;a++){var r=i[a],o=c[r.id];o.refs--,n.push(o)}e?(i=u(t,e),s(i)):i=[];for(var a=0;a<n.length;a++){var o=n[a];if(0===o.refs){for(var l=0;l<o.parts.length;l++)o.parts[l]();delete c[o.id]}}}};var m=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t,e){for(var n=[],s={},i=0;i<e.length;i++){var a=e[i],r=a[0],o=a[1],l=a[2],u=a[3],c={id:t+":"+i,css:o,media:l,sourceMap:u};s[r]?s[r].parts.push(c):n.push(s[r]={id:r,parts:[c]})}return n}},function(t,e){t.exports=function(t,e,n,s,i,a){var r,o=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(r=t,o=t.default);var u="function"==typeof o?o.options:o;e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId=i);var c;if(a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):s&&(c=s),c){var d=u.functional,p=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(t,e){return c.call(e),p(t,e)}):u.beforeCreate=p?[].concat(p,c):[c]}return{esModule:r,exports:o,options:u}}},function(t,e,n){"use strict";var s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return"horizontal"===t.layout?n("div",{staticClass:"field is-horizontal",class:t.getSize},[t._t("slot-label",[t.label.length?n("div",{staticClass:"field-label",class:t.getSize},[t.label.length?n("label",{staticClass:"label",class:t.getSize},[t._v(t._s(t.label))]):t._e()]):t._e()]),n("div",{staticClass:"field-body"},[n("div",{staticClass:"field"},[n("div",{staticClass:"control",class:t.getIcons},[n("input",t._b({staticClass:"input",class:[t.getSize,t.getState,t.getStyles],attrs:{autocomplete:t.autocomplete,step:t.step,min:t.min,max:t.max,disabled:"disabled"===t.state||t.$attrs.disabled,readonly:"readonly"===t.state,type:t.type,placeholder:t.placeholder,size:t.getInputSize},domProps:{value:t.value},on:{input:function(e){t.onInput(e.target.value)},keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;e.preventDefault(),e.stopPropagation(),t.onSelect(e.target.value)}}},"input",t.$attrs,!1)),t.iconLeft.length?n("span",{staticClass:"icon is-left",class:t.getSize},[n("i",{staticClass:"fa",class:t.iconLeft})]):t._e(),t.iconRight.length?n("span",{staticClass:"icon is-right",class:t.getSize},[n("i",{staticClass:"fa",class:t.iconRight})]):t._e()]),t.success.length?n("p",{staticClass:"help is-success"},[t._v(t._s(t.success))]):t._e(),t.danger.length?n("p",{staticClass:"help is-danger"},[t._v(t._s(t.danger))]):t._e()])])],2):"horizontal"!==t.layout?n("div",{staticClass:"field",class:t.getSize},[t._t("slot-label",[t.label.length?n("label",{staticClass:"label",class:t.getSize},[t._v(t._s(t.label))]):t._e()]),n("div",{staticClass:"control",class:[t.getSize,t.getState,t.getIcons]},[n("input",t._b({staticClass:"input",class:[t.getSize,t.getState,t.getStyles].concat(t.inputClasses),attrs:{autocomplete:t.autocomplete,step:t.step,min:t.min,max:t.max,disabled:"disabled"===t.state||t.$attrs.disabled,readonly:"readonly"===t.state,type:t.type,placeholder:t.placeholder,size:t.getInputSize},domProps:{value:t.value},on:{input:function(e){t.onInput(e.target.value)},keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;e.preventDefault(),e.stopPropagation(),t.onSelect(e.target.value)}}},"input",t.$attrs,!1)),t.iconLeft.length?n("span",{staticClass:"icon is-left",class:t.getSize},[n("i",{staticClass:"fa",class:t.iconLeft})]):t._e(),t.iconRight.length?n("span",{staticClass:"icon is-right",class:t.getSize},[n("i",{staticClass:"fa",class:t.iconRight})]):t._e()]),t.success.length?n("p",{staticClass:"help is-success"},[t._v(t._s(t.success))]):t._e(),t.danger.length?n("p",{staticClass:"help is-danger"},[t._v(t._s(t.danger))]):t._e()],2):t._e()},i=[];s._withStripped=!0;var a={render:s,staticRenderFns:i};e.a=a}]);
{
"name": "vstx-input",
"version": "0.1.5",
"version": "0.1.6",
"description": "Input for the Vue Stacks Template",

@@ -5,0 +5,0 @@ "main": "dist/vstx-input.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc