vue-ads-pagination
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -5,2 +5,3 @@ ## Changelog | ||
| --- | --- | --- | | ||
| v1.0.0 | 14/08/2018 | Initial release | | ||
| v1.0.1 | 14/08/2018 | Make the emitted events case insensitive. | | ||
| v1.0.0 | 14/08/2018 | Initial release. | |
@@ -108,3 +108,3 @@ module.exports = | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/home/arnedesmedt/workspace/vue/packages/vue-ads-pagination/node_modules/.cache/vue-loader","cacheIdentifier":"02bea4b2-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Pagination.vue?vue&type=template&id=678c71bd | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/home/arnedesmedt/workspace/vue/packages/vue-ads-pagination/node_modules/.cache/vue-loader","cacheIdentifier":"02bea4b2-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Pagination.vue?vue&type=template&id=78db9a0c | ||
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.totalPages > 0)?_c('div',{staticClass:"m-2 flex text-xs px-0"},[_c('div',{staticClass:"pr-2 leading-loose"},[_vm._t("default",[_vm._v("\n "+_vm._s(_vm.oneBasedStart)+" - "+_vm._s(_vm.oneBasedEnd)+" of "+_vm._s(_vm.totalItems)+" items\n ")],{range:{start: _vm.oneBasedStart, end: _vm.oneBasedEnd, total: _vm.totalItems}})],2),(_vm.totalPages > 1)?_c('div',{staticClass:"flex-grow text-right px-0 flex justify-end"},_vm._l((_vm.buttons),function(button,key){return _c('Button',{key:key,class:_vm.buttonClasses(button),attrs:{"disabled":button.disabled,"title":button.title},domProps:{"innerHTML":_vm._s(button.html)},nativeOn:{"click":function($event){button.page === undefined || button.active ? null : _vm.pageChange(button.page)}}})})):_vm._e()]):_vm._e()} | ||
@@ -114,3 +114,3 @@ var staticRenderFns = [] | ||
// CONCATENATED MODULE: ./src/components/Pagination.vue?vue&type=template&id=678c71bd | ||
// CONCATENATED MODULE: ./src/components/Pagination.vue?vue&type=template&id=78db9a0c | ||
@@ -461,3 +461,3 @@ // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.from.js | ||
this.currentPage = page; | ||
this.$emit('pageChange', this.currentPage, this.range); | ||
this.$emit('page-change', this.currentPage, this.range); | ||
} | ||
@@ -464,0 +464,0 @@ } |
@@ -117,3 +117,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/home/arnedesmedt/workspace/vue/packages/vue-ads-pagination/node_modules/.cache/vue-loader","cacheIdentifier":"02bea4b2-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Pagination.vue?vue&type=template&id=678c71bd | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"/home/arnedesmedt/workspace/vue/packages/vue-ads-pagination/node_modules/.cache/vue-loader","cacheIdentifier":"02bea4b2-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Pagination.vue?vue&type=template&id=78db9a0c | ||
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.totalPages > 0)?_c('div',{staticClass:"m-2 flex text-xs px-0"},[_c('div',{staticClass:"pr-2 leading-loose"},[_vm._t("default",[_vm._v("\n "+_vm._s(_vm.oneBasedStart)+" - "+_vm._s(_vm.oneBasedEnd)+" of "+_vm._s(_vm.totalItems)+" items\n ")],{range:{start: _vm.oneBasedStart, end: _vm.oneBasedEnd, total: _vm.totalItems}})],2),(_vm.totalPages > 1)?_c('div',{staticClass:"flex-grow text-right px-0 flex justify-end"},_vm._l((_vm.buttons),function(button,key){return _c('Button',{key:key,class:_vm.buttonClasses(button),attrs:{"disabled":button.disabled,"title":button.title},domProps:{"innerHTML":_vm._s(button.html)},nativeOn:{"click":function($event){button.page === undefined || button.active ? null : _vm.pageChange(button.page)}}})})):_vm._e()]):_vm._e()} | ||
@@ -123,3 +123,3 @@ var staticRenderFns = [] | ||
// CONCATENATED MODULE: ./src/components/Pagination.vue?vue&type=template&id=678c71bd | ||
// CONCATENATED MODULE: ./src/components/Pagination.vue?vue&type=template&id=78db9a0c | ||
@@ -470,3 +470,3 @@ // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.from.js | ||
this.currentPage = page; | ||
this.$emit('pageChange', this.currentPage, this.range); | ||
this.$emit('page-change', this.currentPage, this.range); | ||
} | ||
@@ -473,0 +473,0 @@ } |
@@ -1,2 +0,2 @@ | ||
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue-ads-pagination"]=e():t["vue-ads-pagination"]=e()})("undefined"!==typeof self?self:this,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="+xUi")}({"+rLv":function(t,e,n){var r=n("dyZX").document;t.exports=r&&r.documentElement},"+xUi":function(t,e,n){"use strict";n.r(e);n("HrLf");var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.totalPages>0?n("div",{staticClass:"m-2 flex text-xs px-0"},[n("div",{staticClass:"pr-2 leading-loose"},[t._t("default",[t._v("\n "+t._s(t.oneBasedStart)+" - "+t._s(t.oneBasedEnd)+" of "+t._s(t.totalItems)+" items\n ")],{range:{start:t.oneBasedStart,end:t.oneBasedEnd,total:t.totalItems}})],2),t.totalPages>1?n("div",{staticClass:"flex-grow text-right px-0 flex justify-end"},t._l(t.buttons,function(e,r){return n("Button",{key:r,class:t.buttonClasses(e),attrs:{disabled:e.disabled,title:e.title},domProps:{innerHTML:t._s(e.html)},nativeOn:{click:function(n){void 0!==e.page&&!e.active&&t.pageChange(e.page)}}})})):t._e()]):t._e()},o=[],i=(n("HEwt"),n("xfY5"),n("A0st"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"border ml-1 leading-normal w-6"})}),a=[],u={name:"Button"},c=u;function s(t,e,n,r,o,i,a,u){var c,s="function"===typeof t?t.options:t;if(e&&(s.render=e,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),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__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},s._ssrRegister=c):o&&(c=u?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(s.functional){s._injectStyles=c;var f=s.render;s.render=function(t,e){return c.call(e),f(t,e)}}else{var l=s.beforeCreate;s.beforeCreate=l?[].concat(l,c):[c]}return{exports:t,options:s}}var f=s(c,i,a,!1,null,null,null),l=f.exports,p={name:"Pagination",components:{Button:l},props:{page:{type:Number,required:!1,default:0},itemsPerPage:{type:Number,required:!1,default:10},maxVisiblePages:{type:Number,required:!1,default:5},totalItems:{type:Number,required:!0},loading:{type:Boolean,required:!1,default:!1}},data:function(){return{currentPage:this.page}},mounted:function(){this.pageChange(this.currentPage)},watch:{page:function(t){t!==this.currentPage&&this.pageChange(t)}},computed:{range:function(){if(this.currentPage<0)throw new Error("page has to be positive");if(this.currentPage>this.totalPages)throw new Error("page may be maximum the total number of pages");var t=this.currentPage*this.itemsPerPage,e=t+this.itemsPerPage;return{start:t,end:e}},totalPages:function(){if(this.totalItems<0)throw new Error("totalItems has to be positive");if(this.itemsPerPage<0)throw new Error("itemsPerPage has to be positive");return 0===this.itemsPerPage?0:Math.ceil(this.totalItems/this.itemsPerPage)},oneBasedStart:function(){return this.range.start+1},oneBasedEnd:function(){var t=this.range.end;return this.totalItems<t?this.totalItems:t},buttons:function(){var t=this,e=this.visibleButtonValues.map(function(e){return"..."===e?t.getButton(void 0,"...","",!0,!1):t.getButton(e)});return e.unshift(this.getButton(0)),e.unshift(this.getButton(this.currentPage-1,'<i class="fa fa-angle-double-left"></i>',"previous",0===this.currentPage,!0)),e.push(this.getButton(this.totalPages-1)),e.push(this.getButton(this.currentPage+1,'<i class="fa fa-angle-double-right"></i>',"next",this.currentPage===this.totalPages-1,!0)),e},visibleButtonValues:function(){if(this.maxVisiblePages<1)throw new Error("maxVisiblePages has to be greater than 0");var t=this.maxVisiblePages-1,e=t/2+1,n=this.maxVisiblePages+2,r=this.currentPage-Math.floor(e);r<1&&(r=1);var o=r+n;o>this.totalPages-1&&(o=this.totalPages-1),o-r<n&&(r=o-n,r=r<1?1:r);var i=Array.from(new Array(o-r),function(t,e){return r+e});return i[0]>1&&(i[0]="..."),i[i.length-1]<this.totalPages-2&&(i[i.length-1]="..."),i}},methods:{getButton:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=t===this.currentPage;return{page:t,html:e||t+1,active:i,title:r||i?"":n||t+1||"",disabled:r,showDisabled:o}},buttonClasses:function(t){return{"text-grey":t.disabled&&t.showDisabled,"bg-grey-light":t.disabled&&t.showDisabled,"cursor-default":t.disabled||t.active,"border-none":t.disabled&&!t.showDisabled,"bg-tt-green":t.active,"text-white":t.active,"hover:bg-grey-lighter":!t.active&&!t.disabled}},pageChange:function(t){this.currentPage=t,this.$emit("pageChange",this.currentPage,this.range)}}},h=p,d=s(h,r,o,!1,null,null,null),g=d.exports,v=g;e["default"]=v},"/e88":function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"0/R4":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},"2OiF":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"4R4u":function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"8a7r":function(t,e,n){"use strict";var r=n("hswa"),o=n("RjD/");t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},A0st:function(t,e,n){},DVgA:function(t,e,n){var r=n("zhAb"),o=n("4R4u");t.exports=Object.keys||function(t){return r(t,o)}},EemH:function(t,e,n){var r=n("UqcF"),o=n("RjD/"),i=n("aCFj"),a=n("apmT"),u=n("aagx"),c=n("xpql"),s=Object.getOwnPropertyDescriptor;e.f=n("nh4g")?s:function(t,e){if(t=i(t),e=a(e,!0),c)try{return s(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},FJW5:function(t,e,n){var r=n("hswa"),o=n("y3w9"),i=n("DVgA");t.exports=n("nh4g")?Object.defineProperties:function(t,e){o(t);var n,a=i(e),u=a.length,c=0;while(u>c)r.f(t,n=a[c++],e[n]);return t}},H6hf:function(t,e,n){var r=n("y3w9");t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t["return"];throw void 0!==i&&r(i.call(t)),e}}},HEwt:function(t,e,n){"use strict";var r=n("m0Pp"),o=n("XKFU"),i=n("S/j/"),a=n("H6hf"),u=n("M6Qj"),c=n("ne8i"),s=n("8a7r"),f=n("J+6e");o(o.S+o.F*!n("XMVh")(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,l,p=i(t),h="function"==typeof this?this:Array,d=arguments.length,g=d>1?arguments[1]:void 0,v=void 0!==g,y=0,m=f(p);if(v&&(g=r(g,d>2?arguments[2]:void 0,2)),void 0==m||h==Array&&u(m))for(e=c(p.length),n=new h(e);e>y;y++)s(n,y,v?g(p[y],y):p[y]);else for(l=m.call(p),n=new h;!(o=l.next()).done;y++)s(n,y,v?a(l,g,[o.value,y],!0):o.value);return n.length=y,n}})},HrLf:function(t,e,n){if("undefined"!==typeof window){let t;(t=window.document.currentScript)&&(t=t.src.match(/(.+\/)[^/]+\.js$/))&&(n.p=t[1])}},"I8a+":function(t,e,n){var r=n("LZWt"),o=n("K0xU")("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},Iw71:function(t,e,n){var r=n("0/R4"),o=n("dyZX").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"J+6e":function(t,e,n){var r=n("I8a+"),o=n("K0xU")("iterator"),i=n("hPIQ");t.exports=n("g3g5").getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},K0xU:function(t,e,n){var r=n("VTer")("wks"),o=n("ylqs"),i=n("dyZX").Symbol,a="function"==typeof i,u=t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))};u.store=r},KroJ:function(t,e,n){var r=n("dyZX"),o=n("Mukb"),i=n("aagx"),a=n("ylqs")("src"),u="toString",c=Function[u],s=(""+c).split(u);n("g3g5").inspectSource=function(t){return c.call(t)},(t.exports=function(t,e,n,u){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,a)||o(n,a,t[e]?""+t[e]:s.join(String(e)))),t===r?t[e]=n:u?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,u,function(){return"function"==typeof this&&this[a]||c.call(this)})},Kuth:function(t,e,n){var r=n("y3w9"),o=n("FJW5"),i=n("4R4u"),a=n("YTvA")("IE_PROTO"),u=function(){},c="prototype",s=function(){var t,e=n("Iw71")("iframe"),r=i.length,o="<",a=">";e.style.display="none",n("+rLv").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),s=t.F;while(r--)delete s[c][i[r]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(u[c]=r(t),n=new u,u[c]=null,n[a]=t):n=s(),void 0===e?n:o(n,e)}},LQAc:function(t,e){t.exports=!1},LZWt:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},M6Qj:function(t,e,n){var r=n("hPIQ"),o=n("K0xU")("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},Mukb:function(t,e,n){var r=n("hswa"),o=n("RjD/");t.exports=n("nh4g")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},RYi7:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"RjD/":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"S/j/":function(t,e,n){var r=n("vhPU");t.exports=function(t){return Object(r(t))}},UqcF:function(t,e){e.f={}.propertyIsEnumerable},VTer:function(t,e,n){var r=n("g3g5"),o=n("dyZX"),i="__core-js_shared__",a=o[i]||(o[i]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("LQAc")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},XKFU:function(t,e,n){var r=n("dyZX"),o=n("g3g5"),i=n("Mukb"),a=n("KroJ"),u=n("m0Pp"),c="prototype",s=function(t,e,n){var f,l,p,h,d=t&s.F,g=t&s.G,v=t&s.S,y=t&s.P,m=t&s.B,b=g?r:v?r[e]||(r[e]={}):(r[e]||{})[c],x=g?o:o[e]||(o[e]={}),P=x[c]||(x[c]={});for(f in g&&(n=e),n)l=!d&&b&&void 0!==b[f],p=(l?b:n)[f],h=m&&l?u(p,r):y&&"function"==typeof p?u(Function.call,p):p,b&&a(b,f,p,t&s.U),x[f]!=p&&i(x,f,h),y&&P[f]!=p&&(P[f]=p)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},XMVh:function(t,e,n){var r=n("K0xU")("iterator"),o=!1;try{var i=[7][r]();i["return"]=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},Xbzi:function(t,e,n){var r=n("0/R4"),o=n("i5dc").set;t.exports=function(t,e,n){var i,a=e.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},YTvA:function(t,e,n){var r=n("VTer")("keys"),o=n("ylqs");t.exports=function(t){return r[t]||(r[t]=o(t))}},Ymqv:function(t,e,n){var r=n("LZWt");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},aCFj:function(t,e,n){var r=n("Ymqv"),o=n("vhPU");t.exports=function(t){return r(o(t))}},aagx:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},apmT:function(t,e,n){var r=n("0/R4");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"d/Gc":function(t,e,n){var r=n("RYi7"),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},dyZX: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)},eeVq:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},g3g5:function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},hPIQ:function(t,e){t.exports={}},hswa:function(t,e,n){var r=n("y3w9"),o=n("xpql"),i=n("apmT"),a=Object.defineProperty;e.f=n("nh4g")?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(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}},i5dc:function(t,e,n){var r=n("0/R4"),o=n("y3w9"),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n("m0Pp")(Function.call,n("EemH").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},kJMx:function(t,e,n){var r=n("zhAb"),o=n("4R4u").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},m0Pp:function(t,e,n){var r=n("2OiF");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},ne8i:function(t,e,n){var r=n("RYi7"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},nh4g:function(t,e,n){t.exports=!n("eeVq")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},qncB:function(t,e,n){var r=n("XKFU"),o=n("vhPU"),i=n("eeVq"),a=n("/e88"),u="["+a+"]",c=" ",s=RegExp("^"+u+u+"*"),f=RegExp(u+u+"*$"),l=function(t,e,n){var o={},u=i(function(){return!!a[t]()||c[t]()!=c}),s=o[t]=u?e(p):a[t];n&&(o[n]=s),r(r.P+r.F*u,"String",o)},p=l.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(s,"")),2&e&&(t=t.replace(f,"")),t};t.exports=l},vhPU:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},w2a5:function(t,e,n){var r=n("aCFj"),o=n("ne8i"),i=n("d/Gc");t.exports=function(t){return function(e,n,a){var u,c=r(e),s=o(c.length),f=i(a,s);if(t&&n!=n){while(s>f)if(u=c[f++],u!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},xfY5:function(t,e,n){"use strict";var r=n("dyZX"),o=n("aagx"),i=n("LZWt"),a=n("Xbzi"),u=n("apmT"),c=n("eeVq"),s=n("kJMx").f,f=n("EemH").f,l=n("hswa").f,p=n("qncB").trim,h="Number",d=r[h],g=d,v=d.prototype,y=i(n("Kuth")(v))==h,m="trim"in String.prototype,b=function(t){var e=u(t,!1);if("string"==typeof e&&e.length>2){e=m?e.trim():p(e,3);var n,r,o,i=e.charCodeAt(0);if(43===i||45===i){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var a,c=e.slice(2),s=0,f=c.length;s<f;s++)if(a=c.charCodeAt(s),a<48||a>o)return NaN;return parseInt(c,r)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof d&&(y?c(function(){v.valueOf.call(n)}):i(n)!=h)?a(new g(b(e)),n,d):b(e)};for(var x,P=n("nh4g")?s(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;P.length>w;w++)o(g,x=P[w])&&!o(d,x)&&l(d,x,f(g,x));d.prototype=v,v.constructor=d,n("KroJ")(r,h,d)}},xpql:function(t,e,n){t.exports=!n("nh4g")&&!n("eeVq")(function(){return 7!=Object.defineProperty(n("Iw71")("div"),"a",{get:function(){return 7}}).a})},y3w9:function(t,e,n){var r=n("0/R4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ylqs:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},zhAb:function(t,e,n){var r=n("aagx"),o=n("aCFj"),i=n("w2a5")(!1),a=n("YTvA")("IE_PROTO");t.exports=function(t,e){var n,u=o(t),c=0,s=[];for(n in u)n!=a&&r(u,n)&&s.push(n);while(e.length>c)r(u,n=e[c++])&&(~i(s,n)||s.push(n));return s}}})}); | ||
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue-ads-pagination"]=e():t["vue-ads-pagination"]=e()})("undefined"!==typeof self?self:this,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="+xUi")}({"+rLv":function(t,e,n){var r=n("dyZX").document;t.exports=r&&r.documentElement},"+xUi":function(t,e,n){"use strict";n.r(e);n("HrLf");var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.totalPages>0?n("div",{staticClass:"m-2 flex text-xs px-0"},[n("div",{staticClass:"pr-2 leading-loose"},[t._t("default",[t._v("\n "+t._s(t.oneBasedStart)+" - "+t._s(t.oneBasedEnd)+" of "+t._s(t.totalItems)+" items\n ")],{range:{start:t.oneBasedStart,end:t.oneBasedEnd,total:t.totalItems}})],2),t.totalPages>1?n("div",{staticClass:"flex-grow text-right px-0 flex justify-end"},t._l(t.buttons,function(e,r){return n("Button",{key:r,class:t.buttonClasses(e),attrs:{disabled:e.disabled,title:e.title},domProps:{innerHTML:t._s(e.html)},nativeOn:{click:function(n){void 0!==e.page&&!e.active&&t.pageChange(e.page)}}})})):t._e()]):t._e()},o=[],i=(n("HEwt"),n("xfY5"),n("A0st"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"border ml-1 leading-normal w-6"})}),a=[],u={name:"Button"},c=u;function s(t,e,n,r,o,i,a,u){var c,s="function"===typeof t?t.options:t;if(e&&(s.render=e,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),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__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},s._ssrRegister=c):o&&(c=u?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(s.functional){s._injectStyles=c;var f=s.render;s.render=function(t,e){return c.call(e),f(t,e)}}else{var l=s.beforeCreate;s.beforeCreate=l?[].concat(l,c):[c]}return{exports:t,options:s}}var f=s(c,i,a,!1,null,null,null),l=f.exports,p={name:"Pagination",components:{Button:l},props:{page:{type:Number,required:!1,default:0},itemsPerPage:{type:Number,required:!1,default:10},maxVisiblePages:{type:Number,required:!1,default:5},totalItems:{type:Number,required:!0},loading:{type:Boolean,required:!1,default:!1}},data:function(){return{currentPage:this.page}},mounted:function(){this.pageChange(this.currentPage)},watch:{page:function(t){t!==this.currentPage&&this.pageChange(t)}},computed:{range:function(){if(this.currentPage<0)throw new Error("page has to be positive");if(this.currentPage>this.totalPages)throw new Error("page may be maximum the total number of pages");var t=this.currentPage*this.itemsPerPage,e=t+this.itemsPerPage;return{start:t,end:e}},totalPages:function(){if(this.totalItems<0)throw new Error("totalItems has to be positive");if(this.itemsPerPage<0)throw new Error("itemsPerPage has to be positive");return 0===this.itemsPerPage?0:Math.ceil(this.totalItems/this.itemsPerPage)},oneBasedStart:function(){return this.range.start+1},oneBasedEnd:function(){var t=this.range.end;return this.totalItems<t?this.totalItems:t},buttons:function(){var t=this,e=this.visibleButtonValues.map(function(e){return"..."===e?t.getButton(void 0,"...","",!0,!1):t.getButton(e)});return e.unshift(this.getButton(0)),e.unshift(this.getButton(this.currentPage-1,'<i class="fa fa-angle-double-left"></i>',"previous",0===this.currentPage,!0)),e.push(this.getButton(this.totalPages-1)),e.push(this.getButton(this.currentPage+1,'<i class="fa fa-angle-double-right"></i>',"next",this.currentPage===this.totalPages-1,!0)),e},visibleButtonValues:function(){if(this.maxVisiblePages<1)throw new Error("maxVisiblePages has to be greater than 0");var t=this.maxVisiblePages-1,e=t/2+1,n=this.maxVisiblePages+2,r=this.currentPage-Math.floor(e);r<1&&(r=1);var o=r+n;o>this.totalPages-1&&(o=this.totalPages-1),o-r<n&&(r=o-n,r=r<1?1:r);var i=Array.from(new Array(o-r),function(t,e){return r+e});return i[0]>1&&(i[0]="..."),i[i.length-1]<this.totalPages-2&&(i[i.length-1]="..."),i}},methods:{getButton:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=t===this.currentPage;return{page:t,html:e||t+1,active:i,title:r||i?"":n||t+1||"",disabled:r,showDisabled:o}},buttonClasses:function(t){return{"text-grey":t.disabled&&t.showDisabled,"bg-grey-light":t.disabled&&t.showDisabled,"cursor-default":t.disabled||t.active,"border-none":t.disabled&&!t.showDisabled,"bg-tt-green":t.active,"text-white":t.active,"hover:bg-grey-lighter":!t.active&&!t.disabled}},pageChange:function(t){this.currentPage=t,this.$emit("page-change",this.currentPage,this.range)}}},h=p,d=s(h,r,o,!1,null,null,null),g=d.exports,v=g;e["default"]=v},"/e88":function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"0/R4":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},"2OiF":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"4R4u":function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"8a7r":function(t,e,n){"use strict";var r=n("hswa"),o=n("RjD/");t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},A0st:function(t,e,n){},DVgA:function(t,e,n){var r=n("zhAb"),o=n("4R4u");t.exports=Object.keys||function(t){return r(t,o)}},EemH:function(t,e,n){var r=n("UqcF"),o=n("RjD/"),i=n("aCFj"),a=n("apmT"),u=n("aagx"),c=n("xpql"),s=Object.getOwnPropertyDescriptor;e.f=n("nh4g")?s:function(t,e){if(t=i(t),e=a(e,!0),c)try{return s(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},FJW5:function(t,e,n){var r=n("hswa"),o=n("y3w9"),i=n("DVgA");t.exports=n("nh4g")?Object.defineProperties:function(t,e){o(t);var n,a=i(e),u=a.length,c=0;while(u>c)r.f(t,n=a[c++],e[n]);return t}},H6hf:function(t,e,n){var r=n("y3w9");t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t["return"];throw void 0!==i&&r(i.call(t)),e}}},HEwt:function(t,e,n){"use strict";var r=n("m0Pp"),o=n("XKFU"),i=n("S/j/"),a=n("H6hf"),u=n("M6Qj"),c=n("ne8i"),s=n("8a7r"),f=n("J+6e");o(o.S+o.F*!n("XMVh")(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,l,p=i(t),h="function"==typeof this?this:Array,d=arguments.length,g=d>1?arguments[1]:void 0,v=void 0!==g,y=0,m=f(p);if(v&&(g=r(g,d>2?arguments[2]:void 0,2)),void 0==m||h==Array&&u(m))for(e=c(p.length),n=new h(e);e>y;y++)s(n,y,v?g(p[y],y):p[y]);else for(l=m.call(p),n=new h;!(o=l.next()).done;y++)s(n,y,v?a(l,g,[o.value,y],!0):o.value);return n.length=y,n}})},HrLf:function(t,e,n){if("undefined"!==typeof window){let t;(t=window.document.currentScript)&&(t=t.src.match(/(.+\/)[^/]+\.js$/))&&(n.p=t[1])}},"I8a+":function(t,e,n){var r=n("LZWt"),o=n("K0xU")("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},Iw71:function(t,e,n){var r=n("0/R4"),o=n("dyZX").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"J+6e":function(t,e,n){var r=n("I8a+"),o=n("K0xU")("iterator"),i=n("hPIQ");t.exports=n("g3g5").getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},K0xU:function(t,e,n){var r=n("VTer")("wks"),o=n("ylqs"),i=n("dyZX").Symbol,a="function"==typeof i,u=t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))};u.store=r},KroJ:function(t,e,n){var r=n("dyZX"),o=n("Mukb"),i=n("aagx"),a=n("ylqs")("src"),u="toString",c=Function[u],s=(""+c).split(u);n("g3g5").inspectSource=function(t){return c.call(t)},(t.exports=function(t,e,n,u){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,a)||o(n,a,t[e]?""+t[e]:s.join(String(e)))),t===r?t[e]=n:u?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,u,function(){return"function"==typeof this&&this[a]||c.call(this)})},Kuth:function(t,e,n){var r=n("y3w9"),o=n("FJW5"),i=n("4R4u"),a=n("YTvA")("IE_PROTO"),u=function(){},c="prototype",s=function(){var t,e=n("Iw71")("iframe"),r=i.length,o="<",a=">";e.style.display="none",n("+rLv").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),s=t.F;while(r--)delete s[c][i[r]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(u[c]=r(t),n=new u,u[c]=null,n[a]=t):n=s(),void 0===e?n:o(n,e)}},LQAc:function(t,e){t.exports=!1},LZWt:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},M6Qj:function(t,e,n){var r=n("hPIQ"),o=n("K0xU")("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},Mukb:function(t,e,n){var r=n("hswa"),o=n("RjD/");t.exports=n("nh4g")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},RYi7:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"RjD/":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"S/j/":function(t,e,n){var r=n("vhPU");t.exports=function(t){return Object(r(t))}},UqcF:function(t,e){e.f={}.propertyIsEnumerable},VTer:function(t,e,n){var r=n("g3g5"),o=n("dyZX"),i="__core-js_shared__",a=o[i]||(o[i]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("LQAc")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},XKFU:function(t,e,n){var r=n("dyZX"),o=n("g3g5"),i=n("Mukb"),a=n("KroJ"),u=n("m0Pp"),c="prototype",s=function(t,e,n){var f,l,p,h,d=t&s.F,g=t&s.G,v=t&s.S,y=t&s.P,m=t&s.B,b=g?r:v?r[e]||(r[e]={}):(r[e]||{})[c],x=g?o:o[e]||(o[e]={}),P=x[c]||(x[c]={});for(f in g&&(n=e),n)l=!d&&b&&void 0!==b[f],p=(l?b:n)[f],h=m&&l?u(p,r):y&&"function"==typeof p?u(Function.call,p):p,b&&a(b,f,p,t&s.U),x[f]!=p&&i(x,f,h),y&&P[f]!=p&&(P[f]=p)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},XMVh:function(t,e,n){var r=n("K0xU")("iterator"),o=!1;try{var i=[7][r]();i["return"]=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},Xbzi:function(t,e,n){var r=n("0/R4"),o=n("i5dc").set;t.exports=function(t,e,n){var i,a=e.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},YTvA:function(t,e,n){var r=n("VTer")("keys"),o=n("ylqs");t.exports=function(t){return r[t]||(r[t]=o(t))}},Ymqv:function(t,e,n){var r=n("LZWt");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},aCFj:function(t,e,n){var r=n("Ymqv"),o=n("vhPU");t.exports=function(t){return r(o(t))}},aagx:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},apmT:function(t,e,n){var r=n("0/R4");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"d/Gc":function(t,e,n){var r=n("RYi7"),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},dyZX: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)},eeVq:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},g3g5:function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},hPIQ:function(t,e){t.exports={}},hswa:function(t,e,n){var r=n("y3w9"),o=n("xpql"),i=n("apmT"),a=Object.defineProperty;e.f=n("nh4g")?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(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}},i5dc:function(t,e,n){var r=n("0/R4"),o=n("y3w9"),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n("m0Pp")(Function.call,n("EemH").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},kJMx:function(t,e,n){var r=n("zhAb"),o=n("4R4u").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},m0Pp:function(t,e,n){var r=n("2OiF");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},ne8i:function(t,e,n){var r=n("RYi7"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},nh4g:function(t,e,n){t.exports=!n("eeVq")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},qncB:function(t,e,n){var r=n("XKFU"),o=n("vhPU"),i=n("eeVq"),a=n("/e88"),u="["+a+"]",c=" ",s=RegExp("^"+u+u+"*"),f=RegExp(u+u+"*$"),l=function(t,e,n){var o={},u=i(function(){return!!a[t]()||c[t]()!=c}),s=o[t]=u?e(p):a[t];n&&(o[n]=s),r(r.P+r.F*u,"String",o)},p=l.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(s,"")),2&e&&(t=t.replace(f,"")),t};t.exports=l},vhPU:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},w2a5:function(t,e,n){var r=n("aCFj"),o=n("ne8i"),i=n("d/Gc");t.exports=function(t){return function(e,n,a){var u,c=r(e),s=o(c.length),f=i(a,s);if(t&&n!=n){while(s>f)if(u=c[f++],u!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},xfY5:function(t,e,n){"use strict";var r=n("dyZX"),o=n("aagx"),i=n("LZWt"),a=n("Xbzi"),u=n("apmT"),c=n("eeVq"),s=n("kJMx").f,f=n("EemH").f,l=n("hswa").f,p=n("qncB").trim,h="Number",d=r[h],g=d,v=d.prototype,y=i(n("Kuth")(v))==h,m="trim"in String.prototype,b=function(t){var e=u(t,!1);if("string"==typeof e&&e.length>2){e=m?e.trim():p(e,3);var n,r,o,i=e.charCodeAt(0);if(43===i||45===i){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var a,c=e.slice(2),s=0,f=c.length;s<f;s++)if(a=c.charCodeAt(s),a<48||a>o)return NaN;return parseInt(c,r)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof d&&(y?c(function(){v.valueOf.call(n)}):i(n)!=h)?a(new g(b(e)),n,d):b(e)};for(var x,P=n("nh4g")?s(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;P.length>w;w++)o(g,x=P[w])&&!o(d,x)&&l(d,x,f(g,x));d.prototype=v,v.constructor=d,n("KroJ")(r,h,d)}},xpql:function(t,e,n){t.exports=!n("nh4g")&&!n("eeVq")(function(){return 7!=Object.defineProperty(n("Iw71")("div"),"a",{get:function(){return 7}}).a})},y3w9:function(t,e,n){var r=n("0/R4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ylqs:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},zhAb:function(t,e,n){var r=n("aagx"),o=n("aCFj"),i=n("w2a5")(!1),a=n("YTvA")("IE_PROTO");t.exports=function(t,e){var n,u=o(t),c=0,s=[];for(n in u)n!=a&&r(u,n)&&s.push(n);while(e.length>c)r(u,n=e[c++])&&(~i(s,n)||s.push(n));return s}}})}); | ||
//# sourceMappingURL=vue-ads-pagination.umd.min.js.map |
{ | ||
"name": "vue-ads-pagination", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "./dist/vue-ads-pagination.common.js", | ||
@@ -13,3 +13,6 @@ "files": [ | ||
"lint": "vue-cli-service lint", | ||
"test:unit": "vue-cli-service test:unit --silent" | ||
"test:unit": "vue-cli-service test:unit --silent", | ||
"preversion": "npm run lint && npm run test:unit", | ||
"version": "npm run build:bundle", | ||
"postversion": "git push origin $(git_current_branch) && git push --tags" | ||
}, | ||
@@ -16,0 +19,0 @@ "dependencies": { |
@@ -40,3 +40,3 @@ # vue-ads-pagination | ||
:totalItems="200" | ||
@pageChange="pageChange" | ||
@page-change="pageChange" | ||
/> | ||
@@ -77,3 +77,3 @@ </div> | ||
| --- | --- | --- | | ||
| pageChange | page, range | Emitted on creation, to know the initial state, and if another page is clicked. Two parameters are given: The zero-based page and the range. This is an object that contain the start and end keys. They contain a zero-based number to identify the items to be shown.| | ||
| page-change | page, range | Emitted on creation, to know the initial state, and if another page is clicked. Two parameters are given: The zero-based page and the range. This is an object that contain the start and end keys. They contain a zero-based number to identify the items to be shown.| | ||
@@ -80,0 +80,0 @@ ## Testing |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1481104