Socket
Socket
Sign inDemoInstall

vstx-autocomplete

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.9 to 0.0.10

2

dist/vstx-autocomplete.js

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("lodash")):"function"==typeof define&&define.amd?define("vstx-autocomplete",["lodash"],e):"object"==typeof exports?exports["vstx-autocomplete"]=e(require("lodash")):t["vstx-autocomplete"]=e(t.lodash)}("undefined"!=typeof self?self:this,function(t){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},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=7)}([function(t,e,n){t.exports=!n(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(14),r=function(t){return t&&t.__esModule?t:{default:t}}(i),o=n(27);e.default={name:"vstx-auto-complete",data:function(){return{isOpen:!1,highlightedPosition:0,search:""}},inheritAttrs:!0,props:{isRelative:{type:Boolean,required:!1,default:!0},options:{type:Array,required:!0},configuration:{type:Object,required:!1},size:{type:String,default:"normal"},state:{type:String,default:"normal"},styles:{type:String,default:"normal"}},computed:{getStyle:function(){return{"is-rounded":"rounded"===this.styles}},getState:function(){var t;return t={"is-loading":"loading"===this.state,"is-success":"success"===this.state,"is-warning":"warning"===this.state,"is-danger":"danger"===this.state,"is-hovered":"hovered"===this.state,"is-focused":"focused"===this.state},(0,r.default)(t,"is-loading","loading"===this.state),(0,r.default)(t,"is-static","static"===this.state),t},getSize:function(){return{"is-small":"small"===this.size,"is-normal":"normal"===this.size,"is-medium":"medium"===this.size,"is-large":"large"===this.size}},fOptions:function(){var t=new RegExp(this.search,"i");return this.options.filter(function(e){return e.name.match(t)})}},methods:{onInput:function(t){this.highlightedPosition=0,this.isOpen=!!t,this.$emit("autocompleteOnKeyPress",this.search)},onFocus:(0,o.debounce)(function(t){var e=this.search.length>0&&this.fOptions.length>0;this.isOpen=e},500),moveDown:function(){this.isOpen&&(this.highlightedPosition=(this.highlightedPosition+1)%this.fOptions.length)},moveUp:function(){this.isOpen&&(this.highlightedPosition=this.highlightedPosition-1<0?this.fOptions.length-1:this.highlightedPosition-1)},select:function(){var t=this.fOptions[this.highlightedPosition];this.$emit("select",t),this.isOpen=!1,this.search=""}}}},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){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(t,e,n){var i=n(22),r=n(23),o=n(25),s=Object.defineProperty;e.f=n(0)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return s(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){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";function i(t){u||n(8)}Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),o=n.n(r);for(var s in r)"default"!==s&&function(t){n.d(e,t,function(){return r[t]})}(s);var a=n(28),u=!1,c=n(13),f=i,l=c(o.a,a.a,!1,f,null,null);l.options.__file="src\\vstxAutocomplete.vue",e.default=l.exports},function(t,e,n){var i=n(9);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(11)("700405e0",i,!1)},function(t,e,n){e=t.exports=n(10)(void 0),e.push([t.i,"\n.vstx-auto-complete .panel.options-list .panel-block.highlighted {\n background: #f8f8f8;\n}\n.is-relative {\n position: relative;\n}\n.vstx-auto-complete .options-list {\n background: #fff;\n position: absolute;\n left: 0;\n z-index: 5;\n font-size: 0.9rem;\n}\n",""])},function(t,e){function n(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=i(r);return[n].concat(r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"})).concat([o]).join("\n")}return[n].join("\n")}function i(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 i=n(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(i[o]=!0)}for(r=0;r<t.length;r++){var s=t[r];"number"==typeof s[0]&&i[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},function(t,e,n){function i(t){for(var e=0;e<t.length;e++){var n=t[e],i=f[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(o(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{for(var s=[],r=0;r<n.parts.length;r++)s.push(o(n.parts[r]));f[n.id]={id:n.id,refs:1,parts:s}}}}function r(){var t=document.createElement("style");return t.type="text/css",l.appendChild(t),t}function o(t){var e,n,i=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(i){if(h)return v;i.parentNode.removeChild(i)}if(g){var o=d++;i=p||(p=r()),e=s.bind(null,i,o,!1),n=s.bind(null,i,o,!0)}else i=r(),e=a.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}function s(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=m(e,r);else{var o=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function a(t,e){var n=e.css,i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var u="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!u)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 c=n(12),f={},l=u&&(document.head||document.getElementsByTagName("head")[0]),p=null,d=0,h=!1,v=function(){},g="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,n){h=n;var r=c(t,e);return i(r),function(e){for(var n=[],o=0;o<r.length;o++){var s=r[o],a=f[s.id];a.refs--,n.push(a)}e?(r=c(t,e),i(r)):r=[];for(var o=0;o<n.length;o++){var a=n[o];if(0===a.refs){for(var u=0;u<a.parts.length;u++)a.parts[u]();delete f[a.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=[],i={},r=0;r<e.length;r++){var o=e[r],s=o[0],a=o[1],u=o[2],c=o[3],f={id:t+":"+r,css:a,media:u,sourceMap:c};i[s]?i[s].parts.push(f):n.push(i[s]={id:s,parts:[f]})}return n}},function(t,e){t.exports=function(t,e,n,i,r,o){var s,a=t=t||{},u=typeof t.default;"object"!==u&&"function"!==u||(s=t,a=t.default);var c="function"==typeof a?a.options:a;e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId=r);var f;if(o?(f=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__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=f):i&&(f=i),f){var l=c.functional,p=l?c.render:c.beforeCreate;l?(c._injectStyles=f,c.render=function(t,e){return f.call(e),p(t,e)}):c.beforeCreate=p?[].concat(p,f):[f]}return{esModule:s,exports:a,options:c}}},function(t,e,n){"use strict";e.__esModule=!0;var i=n(15),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(t,e,n){return e in t?(0,r.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){t.exports={default:n(16),__esModule:!0}},function(t,e,n){n(17);var i=n(4).Object;t.exports=function(t,e,n){return i.defineProperty(t,e,n)}},function(t,e,n){var i=n(18);i(i.S+i.F*!n(0),"Object",{defineProperty:n(5).f})},function(t,e,n){var i=n(3),r=n(4),o=n(19),s=n(21),a=function(t,e,n){var u,c,f,l=t&a.F,p=t&a.G,d=t&a.S,h=t&a.P,v=t&a.B,g=t&a.W,m=p?r:r[e]||(r[e]={}),y=m.prototype,b=p?i:d?i[e]:(i[e]||{}).prototype;p&&(n=e);for(u in n)(c=!l&&b&&void 0!==b[u])&&u in m||(f=c?b[u]:n[u],m[u]=p&&"function"!=typeof b[u]?n[u]:v&&c?o(f,i):g&&b[u]==f?function(t){var e=function(e,n,i){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,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):h&&"function"==typeof f?o(Function.call,f):f,h&&((m.virtual||(m.virtual={}))[u]=f,t&a.R&&y&&!y[u]&&s(y,u,f)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e,n){var i=n(20);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}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 i=n(5),r=n(26);t.exports=n(0)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(1);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(0)&&!n(6)(function(){return 7!=Object.defineProperty(n(24)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(1),r=n(3).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e,n){var i=n(1);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;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(e,n){e.exports=t},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vstx-auto-complete",class:{"is-relative":t.isRelative}},[n("div",{staticClass:"field"},[n("p",{staticClass:"control has-icons-left has-icons-right",class:[t.getState,t.getSize]},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.search,expression:"search"}],staticClass:"input",class:[t.getSize,t.getState,t.getStyle],attrs:{type:"text",placeholder:void 0!==t.configuration.placeholder?t.configuration.placeholder:"Search...",disabled:"disabled"===t.state,readonly:"readonly"===t.state},domProps:{value:t.search},on:{input:[function(e){e.target.composing||(t.search=e.target.value)},function(e){t.onInput(e.target.value)}],keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key))return null;t.isOpen=!1},blur:function(e){t.isOpen=!1},"!keydown":[function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key))return null;t.moveDown(e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key))return null;t.moveUp(e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.select(e)}],focus:t.onFocus}}),n("span",{staticClass:"icon is-left",class:[t.getSize]},[n("i",{staticClass:"fa fa-search"})]),n("span",{staticClass:"icon is-right",class:t.getSize},[n("i",{staticClass:"fa fa-caret-down"})])]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isOpen&&t.fOptions.length>0,expression:"isOpen && fOptions.length > 0"}],staticClass:"panel options-list"},t._l(t.fOptions,function(e,i){return n("a",{staticClass:"panel-block",class:{highlighted:i===t.highlightedPosition},on:{mouseover:function(e){t.highlightedPosition=i},mousedown:t.select}},[t._t("item",[t._v(t._s(e.name))])],2)}))])])},r=[];i._withStripped=!0;var o={render:i,staticRenderFns:r};e.a=o}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("lodash")):"function"==typeof define&&define.amd?define("vstx-autocomplete",["lodash"],e):"object"==typeof exports?exports["vstx-autocomplete"]=e(require("lodash")):t["vstx-autocomplete"]=e(t.lodash)}("undefined"!=typeof self?self:this,function(t){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},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=7)}([function(t,e,n){t.exports=!n(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(14),r=function(t){return t&&t.__esModule?t:{default:t}}(i),o=n(27);e.default={name:"vstx-auto-complete",data:function(){return{isOpen:!1,highlightedPosition:0,search:""}},inheritAttrs:!0,props:{isRelative:{type:Boolean,required:!1,default:!0},options:{type:Array,required:!0},configuration:{type:Object,required:!1},size:{type:String,default:"normal"},state:{type:String,default:"normal"},styles:{type:String,default:"normal"}},computed:{getStyle:function(){return{"is-rounded":"rounded"===this.styles}},getState:function(){var t;return t={"is-loading":"loading"===this.state,"is-success":"success"===this.state,"is-warning":"warning"===this.state,"is-danger":"danger"===this.state,"is-hovered":"hovered"===this.state,"is-focused":"focused"===this.state},(0,r.default)(t,"is-loading","loading"===this.state),(0,r.default)(t,"is-static","static"===this.state),t},getSize:function(){return{"is-small":"small"===this.size,"is-normal":"normal"===this.size,"is-medium":"medium"===this.size,"is-large":"large"===this.size}},fOptions:function(){var t=new RegExp(this.search,"i");return this.options.filter(function(e){return e.name.match(t)})}},methods:{onInput:function(t){this.highlightedPosition=0,this.isOpen=!!t,this.$emit("autocompleteOnKeyPress",this.search)},onFocus:(0,o.debounce)(function(t){var e=this.search.length>0&&this.fOptions.length>0;this.isOpen=e},500),moveDown:function(){this.isOpen&&(this.highlightedPosition=(this.highlightedPosition+1)%this.fOptions.length)},moveUp:function(){this.isOpen&&(this.highlightedPosition=this.highlightedPosition-1<0?this.fOptions.length-1:this.highlightedPosition-1)},select:function(){var t=this.fOptions[this.highlightedPosition];this.$emit("select",t),this.isOpen=!1,this.search=""}}}},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){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(t,e,n){var i=n(22),r=n(23),o=n(25),s=Object.defineProperty;e.f=n(0)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return s(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){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";function i(t){u||n(8)}Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),o=n.n(r);for(var s in r)"default"!==s&&function(t){n.d(e,t,function(){return r[t]})}(s);var a=n(28),u=!1,c=n(13),f=i,l=c(o.a,a.a,!1,f,null,null);l.options.__file="src\\vstxAutocomplete.vue",e.default=l.exports},function(t,e,n){var i=n(9);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(11)("700405e0",i,!1)},function(t,e,n){e=t.exports=n(10)(void 0),e.push([t.i,"\n.vstx-auto-complete .panel.options-list .panel-block.highlighted {\n background: #f8f8f8;\n}\n.is-relative {\n position: relative;\n}\n.vstx-auto-complete .options-list {\n background: #fff;\n position: absolute;\n left: 0;\n z-index: 5;\n font-size: 0.9rem;\n}\n",""])},function(t,e){function n(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=i(r);return[n].concat(r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"})).concat([o]).join("\n")}return[n].join("\n")}function i(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 i=n(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(i[o]=!0)}for(r=0;r<t.length;r++){var s=t[r];"number"==typeof s[0]&&i[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},function(t,e,n){function i(t){for(var e=0;e<t.length;e++){var n=t[e],i=f[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(o(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{for(var s=[],r=0;r<n.parts.length;r++)s.push(o(n.parts[r]));f[n.id]={id:n.id,refs:1,parts:s}}}}function r(){var t=document.createElement("style");return t.type="text/css",l.appendChild(t),t}function o(t){var e,n,i=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(i){if(h)return v;i.parentNode.removeChild(i)}if(g){var o=d++;i=p||(p=r()),e=s.bind(null,i,o,!1),n=s.bind(null,i,o,!0)}else i=r(),e=a.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}function s(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=m(e,r);else{var o=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function a(t,e){var n=e.css,i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var u="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!u)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 c=n(12),f={},l=u&&(document.head||document.getElementsByTagName("head")[0]),p=null,d=0,h=!1,v=function(){},g="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,n){h=n;var r=c(t,e);return i(r),function(e){for(var n=[],o=0;o<r.length;o++){var s=r[o],a=f[s.id];a.refs--,n.push(a)}e?(r=c(t,e),i(r)):r=[];for(var o=0;o<n.length;o++){var a=n[o];if(0===a.refs){for(var u=0;u<a.parts.length;u++)a.parts[u]();delete f[a.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=[],i={},r=0;r<e.length;r++){var o=e[r],s=o[0],a=o[1],u=o[2],c=o[3],f={id:t+":"+r,css:a,media:u,sourceMap:c};i[s]?i[s].parts.push(f):n.push(i[s]={id:s,parts:[f]})}return n}},function(t,e){t.exports=function(t,e,n,i,r,o){var s,a=t=t||{},u=typeof t.default;"object"!==u&&"function"!==u||(s=t,a=t.default);var c="function"==typeof a?a.options:a;e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId=r);var f;if(o?(f=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__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=f):i&&(f=i),f){var l=c.functional,p=l?c.render:c.beforeCreate;l?(c._injectStyles=f,c.render=function(t,e){return f.call(e),p(t,e)}):c.beforeCreate=p?[].concat(p,f):[f]}return{esModule:s,exports:a,options:c}}},function(t,e,n){"use strict";e.__esModule=!0;var i=n(15),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(t,e,n){return e in t?(0,r.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){t.exports={default:n(16),__esModule:!0}},function(t,e,n){n(17);var i=n(4).Object;t.exports=function(t,e,n){return i.defineProperty(t,e,n)}},function(t,e,n){var i=n(18);i(i.S+i.F*!n(0),"Object",{defineProperty:n(5).f})},function(t,e,n){var i=n(3),r=n(4),o=n(19),s=n(21),a=function(t,e,n){var u,c,f,l=t&a.F,p=t&a.G,d=t&a.S,h=t&a.P,v=t&a.B,g=t&a.W,m=p?r:r[e]||(r[e]={}),y=m.prototype,b=p?i:d?i[e]:(i[e]||{}).prototype;p&&(n=e);for(u in n)(c=!l&&b&&void 0!==b[u])&&u in m||(f=c?b[u]:n[u],m[u]=p&&"function"!=typeof b[u]?n[u]:v&&c?o(f,i):g&&b[u]==f?function(t){var e=function(e,n,i){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,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):h&&"function"==typeof f?o(Function.call,f):f,h&&((m.virtual||(m.virtual={}))[u]=f,t&a.R&&y&&!y[u]&&s(y,u,f)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e,n){var i=n(20);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}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 i=n(5),r=n(26);t.exports=n(0)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(1);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(0)&&!n(6)(function(){return 7!=Object.defineProperty(n(24)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(1),r=n(3).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e,n){var i=n(1);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;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(e,n){e.exports=t},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vstx-auto-complete",class:{"is-relative":t.isRelative}},[n("div",{staticClass:"field"},[n("p",{staticClass:"control has-icons-left has-icons-right",class:[t.getState,t.getSize]},[n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.search,expression:"search"}],staticClass:"input",class:[t.getSize,t.getState,t.getStyle],attrs:{type:"text",placeholder:void 0!==t.configuration.placeholder?t.configuration.placeholder:"Search...",disabled:"disabled"===t.state,readonly:"readonly"===t.state},domProps:{value:t.search},on:{input:[function(e){e.target.composing||(t.search=e.target.value)},function(e){t.onInput(e.target.value)}],keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key))return null;t.isOpen=!1},blur:function(e){t.isOpen=!1},"!keydown":[function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key))return null;t.moveDown(e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key))return null;t.moveUp(e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.select(e)}],focus:t.onFocus}},"input",t.$attrs,!1)),n("span",{staticClass:"icon is-left",class:[t.getSize]},[n("i",{staticClass:"fa fa-search"})]),n("span",{staticClass:"icon is-right",class:t.getSize},[n("i",{staticClass:"fa fa-caret-down"})])]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isOpen&&t.fOptions.length>0,expression:"isOpen && fOptions.length > 0"}],staticClass:"panel options-list"},t._l(t.fOptions,function(e,i){return n("a",{staticClass:"panel-block",class:{highlighted:i===t.highlightedPosition},on:{mouseover:function(e){t.highlightedPosition=i},mousedown:t.select}},[t._t("item",[t._v(t._s(e.name))])],2)}))])])},r=[];i._withStripped=!0;var o={render:i,staticRenderFns:r};e.a=o}])});

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

window.vstxAutocomplete=function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},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=7)}([function(t,e,n){t.exports=!n(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(15),r=function(t){return t&&t.__esModule?t:{default:t}}(i),o=n(28);e.default={name:"vstx-auto-complete",data:function(){return{isOpen:!1,highlightedPosition:0,search:""}},inheritAttrs:!0,props:{isRelative:{type:Boolean,required:!1,default:!0},options:{type:Array,required:!0},configuration:{type:Object,required:!1},size:{type:String,default:"normal"},state:{type:String,default:"normal"},styles:{type:String,default:"normal"}},computed:{getStyle:function(){return{"is-rounded":"rounded"===this.styles}},getState:function(){var t;return t={"is-loading":"loading"===this.state,"is-success":"success"===this.state,"is-warning":"warning"===this.state,"is-danger":"danger"===this.state,"is-hovered":"hovered"===this.state,"is-focused":"focused"===this.state},(0,r.default)(t,"is-loading","loading"===this.state),(0,r.default)(t,"is-static","static"===this.state),t},getSize:function(){return{"is-small":"small"===this.size,"is-normal":"normal"===this.size,"is-medium":"medium"===this.size,"is-large":"large"===this.size}},fOptions:function(){var t=new RegExp(this.search,"i");return this.options.filter(function(e){return e.name.match(t)})}},methods:{onInput:function(t){this.highlightedPosition=0,this.isOpen=!!t,this.$emit("autocompleteOnKeyPress",this.search)},onFocus:(0,o.debounce)(function(t){var e=this.search.length>0&&this.fOptions.length>0;this.isOpen=e},500),moveDown:function(){this.isOpen&&(this.highlightedPosition=(this.highlightedPosition+1)%this.fOptions.length)},moveUp:function(){this.isOpen&&(this.highlightedPosition=this.highlightedPosition-1<0?this.fOptions.length-1:this.highlightedPosition-1)},select:function(){var t=this.fOptions[this.highlightedPosition];this.$emit("select",t),this.isOpen=!1,this.search=""}}}},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){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(t,e,n){var i=n(23),r=n(24),o=n(26),s=Object.defineProperty;e.f=n(0)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return s(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){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";var i=n(8),r=function(t){return t&&t.__esModule?t:{default:t}}(i);t.exports={install:function(t,e){t.component("vstx-autocomplete",r.default)}}},function(t,e,n){"use strict";function i(t){u||n(9)}Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),o=n.n(r);for(var s in r)"default"!==s&&function(t){n.d(e,t,function(){return r[t]})}(s);var a=n(29),u=!1,c=n(14),f=i,l=c(o.a,a.a,!1,f,null,null);l.options.__file="src\\vstxAutocomplete.vue",e.default=l.exports},function(t,e,n){var i=n(10);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(12)("700405e0",i,!1)},function(t,e,n){e=t.exports=n(11)(void 0),e.push([t.i,"\n.vstx-auto-complete .panel.options-list .panel-block.highlighted {\n background: #f8f8f8;\n}\n.is-relative {\n position: relative;\n}\n.vstx-auto-complete .options-list {\n background: #fff;\n position: absolute;\n left: 0;\n z-index: 5;\n font-size: 0.9rem;\n}\n",""])},function(t,e){function n(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=i(r);return[n].concat(r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"})).concat([o]).join("\n")}return[n].join("\n")}function i(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 i=n(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(i[o]=!0)}for(r=0;r<t.length;r++){var s=t[r];"number"==typeof s[0]&&i[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},function(t,e,n){function i(t){for(var e=0;e<t.length;e++){var n=t[e],i=f[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(o(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{for(var s=[],r=0;r<n.parts.length;r++)s.push(o(n.parts[r]));f[n.id]={id:n.id,refs:1,parts:s}}}}function r(){var t=document.createElement("style");return t.type="text/css",l.appendChild(t),t}function o(t){var e,n,i=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(i){if(h)return v;i.parentNode.removeChild(i)}if(g){var o=d++;i=p||(p=r()),e=s.bind(null,i,o,!1),n=s.bind(null,i,o,!0)}else i=r(),e=a.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}function s(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=m(e,r);else{var o=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function a(t,e){var n=e.css,i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var u="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!u)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 c=n(13),f={},l=u&&(document.head||document.getElementsByTagName("head")[0]),p=null,d=0,h=!1,v=function(){},g="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,n){h=n;var r=c(t,e);return i(r),function(e){for(var n=[],o=0;o<r.length;o++){var s=r[o],a=f[s.id];a.refs--,n.push(a)}e?(r=c(t,e),i(r)):r=[];for(var o=0;o<n.length;o++){var a=n[o];if(0===a.refs){for(var u=0;u<a.parts.length;u++)a.parts[u]();delete f[a.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=[],i={},r=0;r<e.length;r++){var o=e[r],s=o[0],a=o[1],u=o[2],c=o[3],f={id:t+":"+r,css:a,media:u,sourceMap:c};i[s]?i[s].parts.push(f):n.push(i[s]={id:s,parts:[f]})}return n}},function(t,e){t.exports=function(t,e,n,i,r,o){var s,a=t=t||{},u=typeof t.default;"object"!==u&&"function"!==u||(s=t,a=t.default);var c="function"==typeof a?a.options:a;e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId=r);var f;if(o?(f=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__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=f):i&&(f=i),f){var l=c.functional,p=l?c.render:c.beforeCreate;l?(c._injectStyles=f,c.render=function(t,e){return f.call(e),p(t,e)}):c.beforeCreate=p?[].concat(p,f):[f]}return{esModule:s,exports:a,options:c}}},function(t,e,n){"use strict";e.__esModule=!0;var i=n(16),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(t,e,n){return e in t?(0,r.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){t.exports={default:n(17),__esModule:!0}},function(t,e,n){n(18);var i=n(4).Object;t.exports=function(t,e,n){return i.defineProperty(t,e,n)}},function(t,e,n){var i=n(19);i(i.S+i.F*!n(0),"Object",{defineProperty:n(5).f})},function(t,e,n){var i=n(3),r=n(4),o=n(20),s=n(22),a=function(t,e,n){var u,c,f,l=t&a.F,p=t&a.G,d=t&a.S,h=t&a.P,v=t&a.B,g=t&a.W,m=p?r:r[e]||(r[e]={}),y=m.prototype,b=p?i:d?i[e]:(i[e]||{}).prototype;p&&(n=e);for(u in n)(c=!l&&b&&void 0!==b[u])&&u in m||(f=c?b[u]:n[u],m[u]=p&&"function"!=typeof b[u]?n[u]:v&&c?o(f,i):g&&b[u]==f?function(t){var e=function(e,n,i){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,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):h&&"function"==typeof f?o(Function.call,f):f,h&&((m.virtual||(m.virtual={}))[u]=f,t&a.R&&y&&!y[u]&&s(y,u,f)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e,n){var i=n(21);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}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 i=n(5),r=n(27);t.exports=n(0)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(1);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(0)&&!n(6)(function(){return 7!=Object.defineProperty(n(25)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(1),r=n(3).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e,n){var i=n(1);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;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){!function(){t.exports=window.lodash}()},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vstx-auto-complete",class:{"is-relative":t.isRelative}},[n("div",{staticClass:"field"},[n("p",{staticClass:"control has-icons-left has-icons-right",class:[t.getState,t.getSize]},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.search,expression:"search"}],staticClass:"input",class:[t.getSize,t.getState,t.getStyle],attrs:{type:"text",placeholder:void 0!==t.configuration.placeholder?t.configuration.placeholder:"Search...",disabled:"disabled"===t.state,readonly:"readonly"===t.state},domProps:{value:t.search},on:{input:[function(e){e.target.composing||(t.search=e.target.value)},function(e){t.onInput(e.target.value)}],keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key))return null;t.isOpen=!1},blur:function(e){t.isOpen=!1},"!keydown":[function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key))return null;t.moveDown(e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key))return null;t.moveUp(e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.select(e)}],focus:t.onFocus}}),n("span",{staticClass:"icon is-left",class:[t.getSize]},[n("i",{staticClass:"fa fa-search"})]),n("span",{staticClass:"icon is-right",class:t.getSize},[n("i",{staticClass:"fa fa-caret-down"})])]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isOpen&&t.fOptions.length>0,expression:"isOpen && fOptions.length > 0"}],staticClass:"panel options-list"},t._l(t.fOptions,function(e,i){return n("a",{staticClass:"panel-block",class:{highlighted:i===t.highlightedPosition},on:{mouseover:function(e){t.highlightedPosition=i},mousedown:t.select}},[t._t("item",[t._v(t._s(e.name))])],2)}))])])},r=[];i._withStripped=!0;var o={render:i,staticRenderFns:r};e.a=o}]);
window.vstxAutocomplete=function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},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=7)}([function(t,e,n){t.exports=!n(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(15),r=function(t){return t&&t.__esModule?t:{default:t}}(i),o=n(28);e.default={name:"vstx-auto-complete",data:function(){return{isOpen:!1,highlightedPosition:0,search:""}},inheritAttrs:!0,props:{isRelative:{type:Boolean,required:!1,default:!0},options:{type:Array,required:!0},configuration:{type:Object,required:!1},size:{type:String,default:"normal"},state:{type:String,default:"normal"},styles:{type:String,default:"normal"}},computed:{getStyle:function(){return{"is-rounded":"rounded"===this.styles}},getState:function(){var t;return t={"is-loading":"loading"===this.state,"is-success":"success"===this.state,"is-warning":"warning"===this.state,"is-danger":"danger"===this.state,"is-hovered":"hovered"===this.state,"is-focused":"focused"===this.state},(0,r.default)(t,"is-loading","loading"===this.state),(0,r.default)(t,"is-static","static"===this.state),t},getSize:function(){return{"is-small":"small"===this.size,"is-normal":"normal"===this.size,"is-medium":"medium"===this.size,"is-large":"large"===this.size}},fOptions:function(){var t=new RegExp(this.search,"i");return this.options.filter(function(e){return e.name.match(t)})}},methods:{onInput:function(t){this.highlightedPosition=0,this.isOpen=!!t,this.$emit("autocompleteOnKeyPress",this.search)},onFocus:(0,o.debounce)(function(t){var e=this.search.length>0&&this.fOptions.length>0;this.isOpen=e},500),moveDown:function(){this.isOpen&&(this.highlightedPosition=(this.highlightedPosition+1)%this.fOptions.length)},moveUp:function(){this.isOpen&&(this.highlightedPosition=this.highlightedPosition-1<0?this.fOptions.length-1:this.highlightedPosition-1)},select:function(){var t=this.fOptions[this.highlightedPosition];this.$emit("select",t),this.isOpen=!1,this.search=""}}}},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){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(t,e,n){var i=n(23),r=n(24),o=n(26),s=Object.defineProperty;e.f=n(0)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return s(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){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";var i=n(8),r=function(t){return t&&t.__esModule?t:{default:t}}(i);t.exports={install:function(t,e){t.component("vstx-autocomplete",r.default)}}},function(t,e,n){"use strict";function i(t){u||n(9)}Object.defineProperty(e,"__esModule",{value:!0});var r=n(2),o=n.n(r);for(var s in r)"default"!==s&&function(t){n.d(e,t,function(){return r[t]})}(s);var a=n(29),u=!1,c=n(14),f=i,l=c(o.a,a.a,!1,f,null,null);l.options.__file="src\\vstxAutocomplete.vue",e.default=l.exports},function(t,e,n){var i=n(10);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);n(12)("700405e0",i,!1)},function(t,e,n){e=t.exports=n(11)(void 0),e.push([t.i,"\n.vstx-auto-complete .panel.options-list .panel-block.highlighted {\n background: #f8f8f8;\n}\n.is-relative {\n position: relative;\n}\n.vstx-auto-complete .options-list {\n background: #fff;\n position: absolute;\n left: 0;\n z-index: 5;\n font-size: 0.9rem;\n}\n",""])},function(t,e){function n(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=i(r);return[n].concat(r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"})).concat([o]).join("\n")}return[n].join("\n")}function i(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 i=n(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(i[o]=!0)}for(r=0;r<t.length;r++){var s=t[r];"number"==typeof s[0]&&i[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},function(t,e,n){function i(t){for(var e=0;e<t.length;e++){var n=t[e],i=f[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(o(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{for(var s=[],r=0;r<n.parts.length;r++)s.push(o(n.parts[r]));f[n.id]={id:n.id,refs:1,parts:s}}}}function r(){var t=document.createElement("style");return t.type="text/css",l.appendChild(t),t}function o(t){var e,n,i=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(i){if(h)return v;i.parentNode.removeChild(i)}if(g){var o=d++;i=p||(p=r()),e=s.bind(null,i,o,!1),n=s.bind(null,i,o,!0)}else i=r(),e=a.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}function s(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=m(e,r);else{var o=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function a(t,e){var n=e.css,i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var u="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!u)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 c=n(13),f={},l=u&&(document.head||document.getElementsByTagName("head")[0]),p=null,d=0,h=!1,v=function(){},g="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());t.exports=function(t,e,n){h=n;var r=c(t,e);return i(r),function(e){for(var n=[],o=0;o<r.length;o++){var s=r[o],a=f[s.id];a.refs--,n.push(a)}e?(r=c(t,e),i(r)):r=[];for(var o=0;o<n.length;o++){var a=n[o];if(0===a.refs){for(var u=0;u<a.parts.length;u++)a.parts[u]();delete f[a.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=[],i={},r=0;r<e.length;r++){var o=e[r],s=o[0],a=o[1],u=o[2],c=o[3],f={id:t+":"+r,css:a,media:u,sourceMap:c};i[s]?i[s].parts.push(f):n.push(i[s]={id:s,parts:[f]})}return n}},function(t,e){t.exports=function(t,e,n,i,r,o){var s,a=t=t||{},u=typeof t.default;"object"!==u&&"function"!==u||(s=t,a=t.default);var c="function"==typeof a?a.options:a;e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId=r);var f;if(o?(f=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__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=f):i&&(f=i),f){var l=c.functional,p=l?c.render:c.beforeCreate;l?(c._injectStyles=f,c.render=function(t,e){return f.call(e),p(t,e)}):c.beforeCreate=p?[].concat(p,f):[f]}return{esModule:s,exports:a,options:c}}},function(t,e,n){"use strict";e.__esModule=!0;var i=n(16),r=function(t){return t&&t.__esModule?t:{default:t}}(i);e.default=function(t,e,n){return e in t?(0,r.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){t.exports={default:n(17),__esModule:!0}},function(t,e,n){n(18);var i=n(4).Object;t.exports=function(t,e,n){return i.defineProperty(t,e,n)}},function(t,e,n){var i=n(19);i(i.S+i.F*!n(0),"Object",{defineProperty:n(5).f})},function(t,e,n){var i=n(3),r=n(4),o=n(20),s=n(22),a=function(t,e,n){var u,c,f,l=t&a.F,p=t&a.G,d=t&a.S,h=t&a.P,v=t&a.B,g=t&a.W,m=p?r:r[e]||(r[e]={}),y=m.prototype,b=p?i:d?i[e]:(i[e]||{}).prototype;p&&(n=e);for(u in n)(c=!l&&b&&void 0!==b[u])&&u in m||(f=c?b[u]:n[u],m[u]=p&&"function"!=typeof b[u]?n[u]:v&&c?o(f,i):g&&b[u]==f?function(t){var e=function(e,n,i){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,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):h&&"function"==typeof f?o(Function.call,f):f,h&&((m.virtual||(m.virtual={}))[u]=f,t&a.R&&y&&!y[u]&&s(y,u,f)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e,n){var i=n(21);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}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 i=n(5),r=n(27);t.exports=n(0)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(1);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(0)&&!n(6)(function(){return 7!=Object.defineProperty(n(25)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(1),r=n(3).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e,n){var i=n(1);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;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){!function(){t.exports=window.lodash}()},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vstx-auto-complete",class:{"is-relative":t.isRelative}},[n("div",{staticClass:"field"},[n("p",{staticClass:"control has-icons-left has-icons-right",class:[t.getState,t.getSize]},[n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.search,expression:"search"}],staticClass:"input",class:[t.getSize,t.getState,t.getStyle],attrs:{type:"text",placeholder:void 0!==t.configuration.placeholder?t.configuration.placeholder:"Search...",disabled:"disabled"===t.state,readonly:"readonly"===t.state},domProps:{value:t.search},on:{input:[function(e){e.target.composing||(t.search=e.target.value)},function(e){t.onInput(e.target.value)}],keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key))return null;t.isOpen=!1},blur:function(e){t.isOpen=!1},"!keydown":[function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key))return null;t.moveDown(e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key))return null;t.moveUp(e)},function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key))return null;t.select(e)}],focus:t.onFocus}},"input",t.$attrs,!1)),n("span",{staticClass:"icon is-left",class:[t.getSize]},[n("i",{staticClass:"fa fa-search"})]),n("span",{staticClass:"icon is-right",class:t.getSize},[n("i",{staticClass:"fa fa-caret-down"})])]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.isOpen&&t.fOptions.length>0,expression:"isOpen && fOptions.length > 0"}],staticClass:"panel options-list"},t._l(t.fOptions,function(e,i){return n("a",{staticClass:"panel-block",class:{highlighted:i===t.highlightedPosition},on:{mouseover:function(e){t.highlightedPosition=i},mousedown:t.select}},[t._t("item",[t._v(t._s(e.name))])],2)}))])])},r=[];i._withStripped=!0;var o={render:i,staticRenderFns:r};e.a=o}]);
{
"name": "vstx-autocomplete",
"version": "0.0.9",
"version": "0.0.10",
"description": "Autocomplete component for the Vue Stacks Template",

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

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