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

@mathewparet/vue-filter-box

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mathewparet/vue-filter-box - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

dist/VueFilterBox.min.js

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

window.VueFilterBox=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].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,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="/dist/",e(e.s=1)}([function(t,e,n){"use strict";var r={install:function(t){t.component("filter-box",r)},props:{min:{type:Number,default:3,validator:function(t){return t>0}}},data:function(){return{searchString:"",timer:null}},methods:{filterList:function(){clearTimeout(this.timer),this.timer=setTimeout(this.callFilterCallback,1e3)},callFilterCallback:function(){(this.searchString.length>=this.min||0==this.searchString.length)&&(this.$emit("input",this.searchString),this.$emit("filter",this.searchString))}}};e.a=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),o=n(2),s=o(r.a,i.a,!1,null,null,null);e.default=s.exports},function(t,e){t.exports=function(t,e,n,r,i,o){var s,a=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(s=t,a=t.default);var u="function"==typeof a?a.options:a;e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId=i);var l;if(o?(l=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__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=l):r&&(l=r),l){var f=u.functional,d=f?u.render:u.beforeCreate;f?(u._injectStyles=l,u.render=function(t,e){return l.call(e),d(t,e)}):u.beforeCreate=d?[].concat(d,l):[l]}return{esModule:s,exports:a,options:u}}},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{directives:[{name:"model",rawName:"v-model",value:t.searchString,expression:"searchString"}],attrs:{type:"search",placeholder:"Min "+this.min+" letters"},domProps:{value:t.searchString},on:{input:[function(e){e.target.composing||(t.searchString=e.target.value)},t.filterList]}})},i=[],o={render:r,staticRenderFns:i};e.a=o}]);
window.VueFilterBox=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].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,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="/dist/",e(e.s=1)}([function(t,e,n){"use strict";var r={install:function(t){t.component("filter-box",r)},props:{min:{type:Number,default:3,validator:function(t){return t>0}},value:{required:!1}},data:function(){return{searchString:"",timer:null}},watch:{value:{handler:function(){this.searchString=this.value,this.filterList()},immediate:!0}},methods:{filterList:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t&&(this.searchString=t.target.value),clearTimeout(this.timer),this.timer=setTimeout(this.callFilterCallback,1e3)},callFilterCallback:function(){(this.searchString.length>=this.min||0==this.searchString.length)&&(this.$emit("input",this.searchString),this.$emit("filter",this.searchString))}}};e.a=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),s=n(2),o=s(r.a,i.a,!1,null,null,null);e.default=o.exports},function(t,e){t.exports=function(t,e,n,r,i,s){var o,a=t=t||{},u=typeof t.default;"object"!==u&&"function"!==u||(o=t,a=t.default);var l="function"==typeof a?a.options:a;e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId=i);var c;if(s?(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__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=c):r&&(c=r),c){var f=l.functional,d=f?l.render:l.beforeCreate;f?(l._injectStyles=c,l.render=function(t,e){return c.call(e),d(t,e)}):l.beforeCreate=d?[].concat(d,c):[c]}return{esModule:o,exports:a,options:l}}},function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{attrs:{type:"search",placeholder:"Min "+this.min+" letters"},domProps:{value:this.value},on:{input:t.filterList}})},i=[],s={render:r,staticRenderFns:i};e.a=s}]);
//# sourceMappingURL=VueFilterBox.min.js.map
{
"name": "@mathewparet/vue-filter-box",
"description": "A Vue.Js filter box to initiate search based on filter.",
"version": "1.0.2",
"version": "1.0.3",
"author": "Mathew Paret <mathewparet@gmail.com>",

@@ -6,0 +6,0 @@ "license": "MIT",

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc