From 58bd84629a2665a902e6afc9af193d8864356364 Mon Sep 17 00:00:00 2001 From: Matanya Fishaimer Date: Fri, 17 Apr 2020 10:39:53 +0300 Subject: [PATCH] fix #820 --- compiled/components/VtClientTable.js | 3 + compiled/components/VtServerTable.js | 3 + dist/vue-tables-2.min.js | 2 +- dist/vue-tables.js | 6 +- lib/components/VtClientTable.jsx | 3 + lib/components/VtServerTable.jsx | 38 +++++---- lib/v-client-table.js | 2 +- package-lock.json | 117 +++------------------------ package.json | 2 +- 9 files changed, 51 insertions(+), 125 deletions(-) diff --git a/compiled/components/VtClientTable.js b/compiled/components/VtClientTable.js index 2d23578b..28edf98c 100644 --- a/compiled/components/VtClientTable.js +++ b/compiled/components/VtClientTable.js @@ -66,6 +66,9 @@ var _default2 = { getOpenChildRows: function getOpenChildRows() { var rows = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; return this.$refs.table.getOpenChildRows(rows); + }, + resetQuery: function resetQuery() { + this.$refs.table.resetQuery(); } }, computed: { diff --git a/compiled/components/VtServerTable.js b/compiled/components/VtServerTable.js index 253366f2..c47cdc9e 100644 --- a/compiled/components/VtServerTable.js +++ b/compiled/components/VtServerTable.js @@ -88,6 +88,9 @@ var _default2 = { }, getResponseData: function getResponseData(response) { return this.$refs.table.getResponseData(response); + }, + resetQuery: function resetQuery() { + this.$refs.table.resetQuery(); } }, provide: function provide() { diff --git a/dist/vue-tables-2.min.js b/dist/vue-tables-2.min.js index 70cb1395..3b47ba6a 100644 --- a/dist/vue-tables-2.min.js +++ b/dist/vue-tables-2.min.js @@ -5,4 +5,4 @@ var VueTables=function(t){var e={};function r(n){if(e[n])return e[n].exports;var * @author Feross Aboukhadijeh * @license MIT */ -var n=r(92),i=r(93),o=r(94);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return N(t).length;default:if(n)return q(t).length;e=(""+e).toLowerCase(),n=!0}}function m(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return B(this,e,r);case"utf8":case"utf-8":return R(this,e,r);case"ascii":return O(this,e,r);case"latin1":case"binary":return M(this,e,r);case"base64":return x(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:y(t,e,r,n,i);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):y(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,r,n,i){var o,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}function l(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var c=-1;for(o=r;oa&&(r=a-u),o=r;o>=0;o--){for(var h=!0,f=0;fi&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function x(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function R(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i239?4:l>223?3:l>191?2:1;if(i+h<=r)switch(h){case 1:l<128&&(c=l);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(u=(15&l)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}return function(t){var e=t.length;if(e<=T)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},u.prototype.compare=function(t,e,r,n,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(o,s),l=this.slice(n,i),c=t.slice(e,r),h=0;hi)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return b(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":return _(this,t,e,r);case"latin1":case"binary":return C(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function O(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;in)&&(r=n);for(var i="",o=e;or)throw new RangeError("Trying to access beyond buffer length")}function k(t,e,r,n,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function A(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i>>8*(n?i:1-i)}function j(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i>>8*(n?i:3-i)&255}function V(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function F(t,e,r,n,o){return o||V(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function I(t,e,r,n,o){return o||V(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUInt8=function(t,e){return e||E(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||E(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||E(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||E(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||E(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||E(t,e,this.length);for(var n=this[t],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||E(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||E(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||E(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||E(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||E(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||E(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||E(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||E(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||E(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||E(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||k(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||k(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||k(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):A(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||k(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):A(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||k(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):j(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||k(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);k(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);k(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||k(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||k(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):A(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||k(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):A(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||k(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):j(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||k(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return F(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return F(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return I(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return I(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--i)t[i+e]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function N(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(L,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Y(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(91))},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";e.byteLength=function(t){var e=l(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=l(t),s=n[0],a=n[1],u=new o(function(t,e,r){return 3*(e+r)/4-r}(0,s,a)),c=0,h=a>0?s-4:s;for(r=0;r>16&255,u[c++]=e>>8&255,u[c++]=255&e;2===a&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,u[c++]=255&e);1===a&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e);return u},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],s=0,a=r-i;sa?a:s+16383));1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,r){for(var i,o,s=[],a=e;a>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<>1,c=-7,h=r?i-1:0,f=r?-1:1,d=t[e+h];for(h+=f,o=d&(1<<-c)-1,d>>=-c,c+=a;c>0;o=256*o+t[e+h],h+=f,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+t[e+h],h+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),o-=l}return(d?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,u,l=8*o-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+h>=1?f/u:f*Math.pow(2,1-h))*u>=2&&(s++,u/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(e*u-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[r+d]=255&a,d+=p,a/=256,i-=8);for(s=s<0;t[r+d]=255&s,d+=p,s/=256,l-=8);t[r+d-p]|=128*m}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){"use strict";t.exports=function(t){return!!this.opts.filterable&&(this.isTextFilter(t)?"vt-text-filter":this.isDateFilter(t)?"vt-date-filter":this.isListFilter(t)?"vt-list-filter":void 0)}},function(t,e,r){"use strict";var n,i=(n=r(97))&&n.__esModule?n:{default:n};t.exports=function(t){var e="client"===this.source?this.search.bind(this,this.data):this.serverSearch.bind(this);if(!t)return e;var r=(0,i.default)(e,t);return function(t){9!==t.keyCode&&(13===t.keyCode?(r.clear(),e.apply(void 0,arguments)):r.apply(void 0,arguments))}}},function(t,e){function r(t,e,r){var n,i,o,s,a;function u(){var l=Date.now()-s;l=0?n=setTimeout(u,e-l):(n=null,r||(a=t.apply(o,i),o=i=null))}null==e&&(e=100);var l=function(){o=this,i=arguments,s=Date.now();var l=r&&!n;return n||(n=setTimeout(u,e)),l&&(a=t.apply(o,i),o=i=null),a};return l.clear=function(){n&&(clearTimeout(n),n=null)},l.flush=function(){n&&(a=t.apply(o,i),o=i=null,clearTimeout(n),n=null)},l}r.debounce=r,t.exports=r},function(t,e,r){"use strict";t.exports={listColumnsObject:r(99),allColumns:r(100),templatesKeys:r(101),opts:r(102),tableData:r(104),storage:r(105),filterableColumns:r(106),datepickerColumns:r(107),hasChildRow:r(108),colspan:r(109),hasGenericFilter:r(110),perPageValues:r(111),stateKey:function(){return"vuetables_"+(this.name?this.name:this.id)},Page:function(){return this.page},tabIndex:function(){return this.opts.tabbable?0:-1}}},function(t,e,r){"use strict";t.exports=function(){var t=Object.keys(this.opts.listColumns),e={};return t.forEach(function(t){e[t]={},this.opts.listColumns[t].forEach((function(r){e[t][r.id]=r.text}))}.bind(this)),e}},function(t,e,r){"use strict";t.exports=function(){var t=this,e=this.columnsDisplay;return e||this.userControlsColumns?this.userControlsColumns?this.columns.filter((function(e){return t.userColumnsDisplay.includes(e)})):this.opts.ssr?this.Columns:this.Columns.filter((function(r){if(!t._shouldShowColumnOnInit(r))return!1;if(!e[r])return!0;var n=e[r],i=n[2],o=(!n[0]||t.windowWidth>=n[0])&&(!n[1]||t.windowWidth=t.count;return e.push(r),!n})),e}},function(t,e,r){"use strict";var n,i=(n=r(1))&&n.__esModule?n:{default:n};t.exports=function(){var t,e=this;this.opts.destroyEventBus&&(i.default.$off(),i.default.$destroy()),this.vuex&&!this.opts.preserveState&&this.$store.unregisterModule(this.name),this.opts.filterByColumn&&this.datepickerColumns.forEach((function(r){(t=$(e.$el).find("#VueTables__"+$.escapeSelector(r)+"-filter").data("daterangepicker"))&&t.remove()}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(r(11)),i=l(r(12)),o=l(r(13)),s=l(r(14)),a=l(r(15)),u=l(r(16));function l(t){return t&&t.__esModule?t:{default:t}}var c={name:"VtClientTable",components:{VtPerPageSelector:n.default,VtTable:i.default,VtPagination:o.default,VtDropdownPagination:s.default,VtColumnsDropdown:u.default,VtGenericFilter:a.default},props:{columns:{type:Array,required:!0},data:{type:Array,required:!0},name:{type:String,required:!1},options:{type:Object,required:!1,default:function(){return{}}}},methods:{setFilter:function(t){this.$refs.table.setFilter(t)},setPage:function(t){this.$refs.table.setPage(t)},setOrder:function(t,e){this.$refs.table.setOrder(t,e)},toggleChildRow:function(t){this.$refs.table.toggleChildRow(t)},getOpenChildRows:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.$refs.table.getOpenChildRows(t)}},computed:{filteredData:function(){return this.$refs.table.filteredData},allFilteredData:function(){return this.$refs.table.allFilteredData}},provide:function(){var t=this;return{scopedSlots:function(){return t.$scopedSlots},slots:function(){return t.$slots}}},model:{prop:"data"},render:function(t){return t("r-l-client-table",{attrs:{data:this.data,columns:this.columns,name:this.name,options:this.options},ref:"table",scopedSlots:{default:function(e){return e.override?t(e.override,{attrs:{props:e}}):t("div",{class:"VueTables VueTables--"+e.source},[t("div",{class:e.theme.row},[t("div",{class:e.theme.column},[!e.opts.filterByColumn&&e.opts.filterable?t("div",{class:"".concat(e.theme.field," ").concat(e.theme.inline," ").concat(e.theme.left," VueTables__search")},[e.slots.beforeFilter,t("vt-generic-filter"),e.slots.afterFilter]):"",e.slots.afterFilterWrapper,e.perPageValues.length>1?t("div",{class:"".concat(e.theme.field," ").concat(e.theme.inline," ").concat(e.theme.right," VueTables__limit")},[e.slots.beforeLimit,t("vt-per-page-selector"),e.slots.afterLimit]):"",e.opts.pagination.dropdown&&e.totalPages>1?t("div",{class:"VueTables__pagination-wrapper"},[t("div",{class:"".concat(e.theme.field," ").concat(e.theme.inline," ").concat(e.theme.right," VueTables__dropdown-pagination")},[t("vt-dropdown-pagination")])]):"",e.opts.columnsDropdown?t("div",{class:"VueTables__columns-dropdown-wrapper ".concat(e.theme.right," ").concat(e.theme.dropdown.container)},[t("vt-columns-dropdown")]):""])]),e.slots.beforeTable,t("div",{class:"table-responsive"},[t("vt-table",{ref:"vt_table"})]),e.slots.afterTable,t("vt-pagination")])}}})}};e.default=c},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLPerPageSelector",inject:["opts","limit","setLimit","perPageValues","id","theme","display","componentsOverride"],render:function(){var t=this;return this.$scopedSlots.default({perPageValues:this.perPageValues(),theme:this.theme,limit:this.limit(),setLimit:this.setLimit,id:this.id,selectClass:this.theme.select,display:this.display,selectAttrs:{id:"VueTables__limit_".concat(this.id),class:this.theme.select,value:this.limit()},selectEvents:{change:function(e){return t.setLimit(e)}},override:this.componentsOverride.perPageSelector})}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLTable",inject:["opts","theme","colspan","slots","componentsOverride"],render:function(){return this.$scopedSlots.default({tableAttrs:{summary:this.opts().summary,class:"VueTables__table ".concat(this.opts().skin?this.opts().skin:this.theme.table)},slots:this.slots(),colspan:this.colspan(),caption:this.opts().caption,override:this.componentsOverride.table})}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=s(r(117)),i=s(r(118)),o=s(r(124));function s(t){return t&&t.__esModule?t:{default:t}}var a={name:"VtTableHead",components:{RLTableHead:n.default,VtHeadingsRow:i.default,VtFiltersRow:o.default},render:function(){var t=arguments[0];return t("r-l-table-head",{scopedSlots:{default:function(e){return e.override?t(e.override,{attrs:{props:e}}):t("thead",[e.slots.prependHead,t("vt-headings-row"),e.slots.beforeFilters,e.opts.filterByColumn&&e.opts.filterable?t("vt-filters-row"):"",e.slots.afterFilters])}}})}};e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLTableHead",inject:["opts","slots","componentsOverride"],render:function(){return this.$scopedSlots.default({opts:this.opts(),slots:this.slots(),override:this.componentsOverride.tableHead})}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(r(119)),i=o(r(120));function o(t){return t&&t.__esModule?t:{default:t}}var s={name:"VtHeadingsRow",components:{RLHeadingsRow:n.default,VtTableHeading:i.default},render:function(){var t=arguments[0];return t("r-l-headings-row",{scopedSlots:{default:function(e){var r=[];return e.childRowTogglerFirst&&r.push(t("th")),e.columns.map((function(e){r.push(t("vt-table-heading",{attrs:{column:e}}))})),e.childRowTogglerLast&&r.push(t("th")),t("tr",[r])}}})}};e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLHeadingRow",inject:["opts","theme","hasChildRow","allColumns"],render:function(){return this.$scopedSlots.default({columns:this.allColumns(),hasChildRow:this.hasChildRow,childRowTogglerFirst:this.hasChildRow()&&this.opts().showChildRowToggler&&this.opts().childRowTogglerFirst,childRowTogglerLast:this.hasChildRow()&&this.opts().showChildRowToggler&&!this.opts().childRowTogglerFirst})}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(r(121)),i=o(r(122));function o(t){return t&&t.__esModule?t:{default:t}}var s={name:"VtTableHeading",props:["column"],components:{RLTableHeading:n.default,VtSortControl:i.default},render:function(){var t=arguments[0];return t("r-l-table-heading",{attrs:{column:this.column},scopedSlots:{default:function(e){return e.override?t(e.override,{attrs:{props:e}}):t("th",{on:{keypress:e.thEvents.keypress,click:e.thEvents.click},class:e.thAttrs.class,attrs:{tabindex:e.thAttrs.tabIndex}},[t("span",{class:"VueTables__heading",attrs:{title:e.title}},[e.heading]),t("vt-sort-control")])}}})}};e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLTableHeading",props:["column"],provide:function(){return{column:this.column}},inject:["opts","theme","sortableClass","getHeadingTooltip","getHeading","orderByColumn","componentsOverride","tabIndex"],render:function(t){var e=this;return this.$scopedSlots.default({thAttrs:{class:this.sortableClass(this.column),tabIndex:this.tabIndex()},thEvents:{keypress:function(t){"Enter"===t.key&&this.orderByColumn(this.column,t)},click:function(t){"resize-handle"!==t.target.className&&e.orderByColumn(e.column,t)}},spanAttrs:{title:this.getHeadingTooltip(this.column)},heading:this.getHeading(this.column,t),override:this.componentsOverride.tableHeading})}}},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"VtSortControl",components:{RLSortControl:((n=r(123))&&n.__esModule?n:{default:n}).default},render:function(){var t=arguments[0];return t("r-l-sort-control",{scopedSlots:{default:function(e){return e.sortable?e.override?t(e.override,{attrs:{props:e}}):t("span",{class:e.class}):""}}})}};e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLSortControl",inject:["column","theme","sortable","hasMultiSort","orderBy","userMultiSorting","sortableChevronClass","componentsOverride"],render:function(){return this.$scopedSlots.default({sortable:this.sortable(this.column),class:"VueTables__sort-icon ".concat(this.theme.right," ").concat(this.sortableChevronClass(this.column)),sortStatus:this.sortStatus,override:this.componentsOverride.sortControl})},computed:{OrderBy:function(){return this.orderBy()},UserMultiSorting:function(){return this.userMultiSorting()},sortStatus:function(){var t=this;if(this.hasMultiSort&&this.OrderBy.column&&this.UserMultiSorting[this.OrderBy.column]){var e=this.UserMultiSorting[this.OrderBy.column].filter((function(e){return e.column===t.column}))[0];if(e)return{sorted:!0,asc:e.ascending}}return this.column===this.OrderBy.column?{sorted:!0,asc:this.OrderBy.ascending}:{sorted:!1,asc:!1}}},methods:{}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(r(125)),i=a(r(126)),o=a(r(128)),s=a(r(130));function a(t){return t&&t.__esModule?t:{default:t}}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var l={name:"VtFiltersRow",components:{RLFiltersRow:n.default,VtTextFilter:i.default,VtListFilter:o.default,VtDateFilter:s.default},render:function(){var t=arguments[0];return t("r-l-filters-row",{scopedSlots:{default:function(e){var r=[];return e.hasChildRow&&e.opts.childRowTogglerFirst&&e.opts.showChildRowToggler&&r.push(t("th")),e.columns.map((function(n){var i="";e.filterable(n)&&(i=t(e.filterType(n),{props:{column:n}})),void 0!==e.slots["filter__".concat(n)]&&(i=i?t("div",[i,e.slots["filter__".concat(n)]]):e.slots["filter__".concat(n)]),r.push(t("th",{class:e.columnClass(n)},[i?t("div",u({class:"VueTables__column-filter"},"class","VueTables__"+n+"-filter-wrapper"),[i]):""]))})),e.hasChildRow&&!e.opts.childRowTogglerFirst&&e.opts.showChildRowToggler&&r.push(t("th")),e.override?t(e.override,{attrs:{props:e}}):t("tr",{class:"VueTables__filters-row"},[r])}}})}};e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLFiltersRow",inject:["opts","theme","allColumns","filterable","filterType","slots","columnClass","hasChildRow","componentsOverride"],render:function(){return this.$scopedSlots.default({columns:this.allColumns(),filterable:this.filterable,filterType:this.filterType,opts:this.opts(),slots:this.slots(),columnClass:this.columnClass,hasChildRow:this.hasChildRow(),override:this.componentsOverride.filtersRow})}}},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"VtTextFilter",props:["column"],components:{RLTextFilter:((n=r(127))&&n.__esModule?n:{default:n}).default},render:function(){var t=this,e=arguments[0];return e("r-l-text-filter",{attrs:{column:this.column},scopedSlots:{default:function(r){return r.override?e(r.override,{attrs:{props:r}}):e("input",{on:{keyup:r.search(r.debounce)},class:r.theme.input,attrs:{name:r.getColumnName(t.column),type:"text",placeholder:r.display("filterBy",{column:r.getHeading(t.column)}),autocomplete:"off"}})}}})}};e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLTextFilter",inject:["opts","search","query","theme","getHeading","display","getColumnName","componentsOverride"],props:["column"],render:function(t){return this.$scopedSlots.default({column:this.column,debounce:this.opts().debounce,theme:this.theme,search:this.search,query:this.query(),getHeading:this.getHeading,getColumnName:this.getColumnName,display:this.display,override:this.componentsOverride.textFilter})}}},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"VtListFilter",props:["column"],components:{RLListFilter:((n=r(129))&&n.__esModule?n:{default:n}).default},render:function(){var t=this,e=arguments[0];return e("r-l-list-filter",{attrs:{column:this.column},scopedSlots:{default:function(r){var n,i=[];return r.items.map((function(o){n=String(o.id)===String(r.query[t.column])&&""!==r.query[t.column],i.push(e("option",{domProps:{value:o.id,selected:n}},[o.text]))})),r.override?e(r.override,{attrs:{props:r}}):e("div",{class:"VueTables__list-filter",attrs:{id:"VueTables__"+t.column+"-filter"}},[e("select",{class:r.theme.select,on:{change:r.search(!1)},attrs:{name:r.name},domProps:{value:r.value}},[e("option",{attrs:{value:""}},[r.defaultOption]),i])])}}})}};e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLListFilter",inject:["search","query","theme","getHeading","display","getColumnName","opts","componentsOverride"],props:["column"],render:function(t){return this.$scopedSlots.default({theme:this.theme,search:this.search,query:this.query(),getHeading:this.getHeading,display:this.display,items:this.opts().listColumns[this.column].filter((function(t){return!t.hide})),defaultOption:this.display("defaultOption",{column:this.opts().headings[this.column]?this.opts().headings[this.column]:this.column}),name:this.getColumnName(this.column),value:this.query()[this.column],column:this.column,override:this.componentsOverride.listFilter})}}},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"VtDateFilter",props:["column"],components:{RLDateFilter:((n=r(131))&&n.__esModule?n:{default:n}).default},render:function(t){var e=this;return t("r-l-date-filter",{attrs:{column:this.column},scopedSlots:{default:function(r){return r.overide?t(r.override,{attrs:{props:r}}):t("div",{class:"VueTables__date-filter",attrs:{id:"VueTables__"+e.column+"-filter"}},[t("span",{class:"VueTables__filter-placeholder"},[r.placeholder])])}}})}};e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLDateFilter",inject:["getHeading","display","componentsOverride"],props:["column"],render:function(t){return this.$scopedSlots.default({column:this.column,placeholder:this.display("filterBy",{column:this.getHeading(this.column)}),display:this.display,override:this.componentsOverride.dateFilter})}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=u(r(133)),i=u(r(134)),o=u(r(136)),s=u(r(143)),a=u(r(145));function u(t){return t&&t.__esModule?t:{default:t}}var l={name:"VtTableBody",components:{RLTableBody:n.default,VtNoResultsRow:i.default,VtTableRow:o.default,VtChildRow:a.default,VtGroupRow:s.default},render:function(){var t=arguments[0];return t("r-l-table-body",{scopedSlots:{default:function(e){var r,n=[];return e.data.forEach((function(i,o){e.groupBy&&"client"===e.source&&i[e.groupBy]!==r&&(n.push(t("vt-group-row",{attrs:{row:i}})),r=i[e.groupBy]),e.canToggleGroups&&e.collapsedGroups.includes(r)||(n.push(t("vt-table-row",{attrs:{row:i,index:e.initialIndex+o+1}})),e.hasChildRow&&e.openChildRows.includes(i[e.uniqueRowId])&&n.push(t("vt-child-row",{attrs:{row:i,index:e.initialIndex+o+1}})))})),e.override?t(e.override,{attrs:{props:e}}):t("tbody",[e.slots.prependBody,0===e.data.length?t("vt-no-results-row"):"",n,e.slots.appendBody])}}})}};e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLTableBody",inject:["opts","theme","source","filteredData","tableData","colspan","openChildRows","collapsedGroups","scopedSlots","slots","componentsOverride","page","limit"],render:function(){return this.$scopedSlots.default({source:this.source,canToggleGroups:this.opts().toggleGroups,collapsedGroups:this.collapsedGroups(),data:"client"===this.source?this.filteredData():this.tableData(),colspan:this.colspan(),loading:!0,hasChildRow:this.opts().childRow||this.scopedSlots().child_row,openChildRows:this.openChildRows(),uniqueRowId:this.opts().uniqueKey,groupBy:this.opts().groupBy,slots:this.slots(),override:this.componentsOverride.tableBody,initialIndex:(this.page()-1)*this.limit()})}}},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"VtNoResultsRow",components:{RLNoResultsRow:((n=r(135))&&n.__esModule?n:{default:n}).default},render:function(){var t=arguments[0];return t("r-l-no-results-row",{scopedSlots:{default:function(e){return e.override?t(e.override,{attrs:{props:e}}):t("tr",{class:"VueTables__no-results"},[t("td",{class:"text-center",attrs:{tabindex:e.tabIndex,colspan:e.colspan}},[e.display(e.loading?"loading":"noResults")])])}}})}};e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLNoResultsRow",inject:["colspan","display","componentsOverride","tabIndex"],render:function(){return this.$scopedSlots.default({colspan:this.colspan(),display:this.display,tabIndex:this.tabIndex(),override:this.componentsOverride.noResultsRow})}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(r(137)),i=a(r(138)),o=a(r(139)),s=a(r(141));function a(t){return t&&t.__esModule?t:{default:t}}var u={name:"VtTableRow",props:["row","index"],components:{RLTableRow:i.default,VtTableCell:o.default,VtChildRowToggler:s.default},render:function(){var t=arguments[0];return t("r-l-table-row",{attrs:{row:this.row,index:this.index},scopedSlots:{default:function(e){return e.override?t(e.override,{attrs:{props:e}}):t("tr",(0,n.default)([{class:"VueTables__row "+e.rowAttrs.class},{attrs:e.rowAttrs.attrs},{on:{click:e.rowEvents.click}}]),[e.childRowTogglerFirst?t("vt-child-row-toggler",{attrs:{"row-id":e.rowId}}):"",e.columns.map((function(e){return t("vt-table-cell",{attrs:{column:e}})})),e.childRowTogglerLast?t("vt-child-row-toggler",{attrs:{"row-id":e.rowId}}):""])}}})}};e.default=u},function(t,e){var r=/^(attrs|props|on|nativeOn|class|style|hook)$/;function n(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce((function(t,e){var i,o,s,a,u;for(s in e)if(i=t[s],o=e[s],i&&r.test(s))if("class"===s&&("string"==typeof i&&(u=i,t[s]=i={},i[u]=!0),"string"==typeof o&&(u=o,e[s]=o={},o[u]=!0)),"on"===s||"nativeOn"===s||"hook"===s)for(a in o)i[a]=n(i[a],o[a]);else if(Array.isArray(i))t[s]=i.concat(o);else if(Array.isArray(o))t[s]=[i].concat(o);else for(a in o)i[a]=o[a];else t[s]=e[s];return t}),{})}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLTableRow",props:["row","index"],inject:["allColumns","opts","rowWasClicked","hasChildRow","componentsOverride"],provide:function(){var t=this;return{row:function(){return t.row},index:this.index}},render:function(){return this.$scopedSlots.default({columns:this.allColumns(),hasChildRow:this.hasChildRow(),opts:this.opts(),rowId:this.row[this.opts().uniqueKey],rowAttrs:{class:this.opts().rowClassCallback?this.opts().rowClassCallback(this.row):"",attrs:this.opts().rowAttributesCallback?this.opts().rowAttributesCallback(this.row):{}},rowEvents:{click:this.rowWasClicked.bind(this,this.row,this.index),dblclick:this.rowWasClicked.bind(this,this.row,this.index)},childRowTogglerFirst:this.hasChildRow()&&this.opts().showChildRowToggler&&this.opts().childRowTogglerFirst,childRowTogglerLast:this.hasChildRow()&&this.opts().showChildRowToggler&&!this.opts().childRowTogglerFirst,override:this.componentsOverride.tableRow})}}},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"VtTableCell",props:["column"],components:{RLTableCell:((n=r(140))&&n.__esModule?n:{default:n}).default},render:function(){var t=arguments[0];return t("r-l-table-cell",{attrs:{column:this.column},scopedSlots:{default:function(e){return e.override?t(e.override,{attrs:{props:e}}):t("td",{attrs:{tabindex:e.tabIndex},class:e.classes},[e.content])}}})}};e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o={name:"RLTableCell",inject:["row","scopedSlots","opts","render","index","setEditingCell","updateValue","revertValue","editing","getValue","columnClass","cellClasses","componentsOverride","isListFilter","optionText","source","dateFormat","formatDate","tabIndex"],props:["column"],render:function(t){return this.$scopedSlots.default({row:this.Row,content:this.content(t),classes:"".concat(this.columnClass(this.column)," ").concat(this.cellClasses(this.column,this.Row)).trim(),tabIndex:this.tabIndex(),override:this.componentsOverride.tableCell})},computed:{Row:function(){return this.row()}},methods:{content:function(t){if(this.opts().templates[this.column])return this.render(this.Row,this.column,this.index,t);if(this.scopedSlots()[this.column]){var e={row:this.Row,column:this.column,index:this.index};return this.opts().editableColumns.includes(this.column)&&(e=(0,i.default)(e,this.getEditFunctions())),this.scopedSlots()[this.column](e)}return this.formatCellContent(this.getValue(this.Row,this.column),this.column)},formatCellContent:function(t,e){return"client"===this.source&&this.opts().dateColumns.includes(e)?this.formatDate(t,this.dateFormat(e)):this.isListFilter(e)?this.optionText(t,e):t},isEditing:function(){return function(){var t=this;return this.editing().find((function(e){return e.id===t.Row[t.opts().uniqueKey]&&e.column===t.column}))}.bind(this)},getEditFunctions:function(){return{update:this.updateValue(this.Row,this.column),isEditing:this.isEditing(),setEditing:this.setEditingCell(this.Row,this.column),revertValue:this.revertValue(this.Row,this.column)}}}};e.default=o},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"VtChildRowToggler",props:["rowId"],components:{RLChildRowToggler:((n=r(142))&&n.__esModule?n:{default:n}).default},render:function(t){return t("r-l-child-row-toggler",{attrs:{"row-id":this.rowId},scopedSlots:{default:function(e){return e.override?t(e.override,{attrs:{props:e}}):t("td",{attrs:{tabindex:e.tabIndex},on:{keypress:function(t){"Enter"===t.key&&e.toggle()},click:e.toggle}},[t("span",{class:"VueTables__child-row-toggler "+e.class()})])}}})}};e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLChildRowToggler",props:["rowId"],inject:["toggleChildRow","childRowTogglerClass","componentsOverride","tabIndex"],render:function(t){return this.$scopedSlots.default({class:this.childRowTogglerClass.bind(this,this.rowId),toggle:this.toggleChildRow.bind(this,this.rowId),override:this.componentsOverride.childRowToggler,tabIndex:this.tabIndex()})}}},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"VtGroupRow",components:{RLGroupRow:((n=r(144))&&n.__esModule?n:{default:n}).default},props:["row"],render:function(){var t=arguments[0];return t("r-l-group-row",{attrs:{row:this.row},scopedSlots:{default:function(e){return e.override?t(e.override,{attrs:{props:e}}):t("tr",{class:e.theme.groupTr,on:{click:e.toggleGroupDirection}},[t("td",{attrs:{colspan:e.colspan}},[e.canToggleGroup?t("button",{class:e.theme.button,on:{click:e.toggleGroup.bind(this,e.groupValue)}},[e.groupValue,t("span",{class:e.groupToggleIcon(e.groupValue)})]):"",e.canToggleGroup?"":t("span",[e.groupValue]),e.slot])])}}})}};e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLGroupRow",props:["row"],inject:["colspan","opts","theme","toggleGroupDirection","toggleGroup","groupToggleIcon","getGroupSlot","componentsOverride"],render:function(){return this.$scopedSlots.default({theme:this.theme,colspan:this.colspan(),toggleGroupDirection:this.toggleGroupDirection,canToggleGroup:this.opts().toggleGroups,toggleGroup:this.toggleGroup,groupValue:this.row[this.opts().groupBy],groupToggleIcon:this.groupToggleIcon,slot:this.getGroupSlot(this.row[this.opts().groupBy]),override:this.componentsOverride.groupRow})}}},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"VtChildRow",props:["row","index"],components:{RLChildRow:((n=r(146))&&n.__esModule?n:{default:n}).default},render:function(){var t=arguments[0];return t("r-l-child-row",{attrs:{row:this.row,index:this.index},scopedSlots:{default:function(e){return e.override?t(e.override,{attrs:{props:e}}):t("tr",{class:"VueTables__child-row "+e.class},[t("td",{attrs:{colspan:e.colspan}},[e.childRow])])}}})}};e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLChildRow",props:["row","index"],inject:["colspan","scopedSlots","getChildRowTemplate","opts","componentsOverride"],render:function(t){return this.$scopedSlots.default({childRow:this.getChildRowTemplate(t,this.row,this.index,this.scopedSlots().child_row),colspan:this.colspan(),class:this.opts().rowClassCallback?this.opts().rowClassCallback(this.row):"",override:this.componentsOverride.childRow})}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o={name:"RLPagination",inject:["opts","count","limit","vuex","name","id","theme","page","setPage","totalPages","componentsOverride"],render:function(){return this.$scopedSlots.default({setPage:this.setPage,options:this.opts().pagination,infiniteScroll:this.opts().infiniteScroll,page:this.page(),records:this.count(),perPage:parseInt(this.limit()),name:this.vuex?this.name:this.id,vuex:this.vuex,theme:this.theme,texts:this.opts().texts,totalPages:this.totalPages(),optionsObj:{theme:(0,i.default)(this.theme.pagination,{wrapper:"".concat(this.theme.row," ").concat(this.theme.column," ").concat(this.theme.contentCenter),nav:this.theme.center,count:"".concat(this.theme.center," ").concat(this.theme.column)}),chunk:this.opts().pagination.chunk,chunksNavigation:this.opts().pagination.nav,edgeNavigation:this.opts().pagination.edge,texts:{count:this.opts().texts.count,first:this.opts().texts.first,last:this.opts().texts.last}},override:this.componentsOverride.pagination})}};e.default=o},function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=s(r(149)),o=s(r(0));function s(t){return t&&t.__esModule?t:{default:t}}var a=r(150);t.exports={render:a.call(void 0),model:{prop:"page",event:"paginate"},props:{page:{type:Number,required:!0},for:{type:String,required:!1},records:{type:Number,required:!0},perPage:{type:Number,default:25},vuex:{type:Boolean},options:{type:Object}},data:function(){return{firstPage:this.page}},watch:{page:function(t){"scroll"===this.opts.chunksNavigation&&this.allowedPage(t)&&!this.inDisplay(t)&&(this.firstPage=t)}},computed:{opts:function(){return(0,o.default)((0,i.default)(),this.options)},Theme:function(){if("object"===n(this.opts.theme))return this.opts.theme;var t={bootstrap3:r(151),bootstrap4:r(152),bulma:r(153)};if(void 0===n(t[this.opts.theme]))throw"vue-pagination-2: the theme "+this.opts.theme+" does not exist";return t[this.opts.theme]},pages:function(){return this.records?(t=this.paginationStart,e=this.pagesInCurrentChunk,Array.apply(0,Array(e)).map((function(e,r){return r+t}))):[];var t,e},totalPages:function(){return this.records?Math.ceil(this.records/this.perPage):1},totalChunks:function(){return Math.ceil(this.totalPages/this.opts.chunk)},currentChunk:function(){return Math.ceil(this.page/this.opts.chunk)},paginationStart:function(){return"scroll"===this.opts.chunksNavigation?this.firstPage:(this.currentChunk-1)*this.opts.chunk+1},pagesInCurrentChunk:function(){return this.paginationStart+this.opts.chunk<=this.totalPages?this.opts.chunk:this.totalPages-this.paginationStart+1},count:function(){if(/{page}/.test(this.opts.texts.count))return this.totalPages<=1?"":this.opts.texts.count.replace("{page}",this.page).replace("{pages}",this.totalPages);var t=this.opts.texts.count.split("|"),e=(this.page-1)*this.perPage+1,r=this.page==this.totalPages?this.records:e+this.perPage-1;return t[Math.min(1==this.records?2:1==this.totalPages?1:0,t.length-1)].replace("{count}",this.formatNumber(this.records)).replace("{from}",this.formatNumber(e)).replace("{to}",this.formatNumber(r))}},methods:{setPage:function(t){this.allowedPage(t)&&this.paginate(t)},paginate:function(t){this.$emit("paginate",t)},next:function(){var t=this.page+1;return"scroll"===this.opts.chunksNavigation&&this.allowedPage(t)&&!this.inDisplay(t)&&this.firstPage++,this.setPage(t)},prev:function(){var t=this.page-1;return"scroll"===this.opts.chunksNavigation&&this.allowedPage(t)&&!this.inDisplay(t)&&this.firstPage--,this.setPage(t)},inDisplay:function(t){var e=this.firstPage,r=e+this.opts.chunk-1;return t>=e&&t<=r},nextChunk:function(){return this.setChunk(1)},prevChunk:function(){return this.setChunk(-1)},setChunk:function(t){this.setPage((this.currentChunk-1+t)*this.opts.chunk+1)},allowedPage:function(t){return t>=1&&t<=this.totalPages},allowedChunk:function(t){return 1==t&&this.currentChunk1},allowedPageClass:function(t){return this.allowedPage(t)?"":this.Theme.disabled},allowedChunkClass:function(t){return this.allowedChunk(t)?"":this.Theme.disabled},activeClass:function(t){return this.page==t?this.Theme.active:""},formatNumber:function(t){return this.opts.format?t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):t}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return{format:!0,chunk:10,chunksNavigation:"fixed",edgeNavigation:!1,theme:"bootstrap3",texts:{count:"Showing {from} to {to} of {count} records|{count} records|One record",first:"First",last:"Last"}}}},function(t,e,r){"use strict";t.exports=function(){return function(t){var e=this.Theme,r=[],n="",i="",o="",s="";return this.opts.edgeNavigation&&this.totalChunks>1&&(o=t("li",{class:"VuePagination__pagination-item "+e.item+" "+(1===this.page?e.disabled:"")+" VuePagination__pagination-item-prev-chunk"},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:1===this.page},on:{click:this.setPage.bind(this,1)}},[this.opts.texts.first])]),s=t("li",{class:"VuePagination__pagination-item "+e.item+" "+(this.page===this.totalPages?e.disabled:"")+" VuePagination__pagination-item-prev-chunk"},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:this.page===this.totalPages},on:{click:this.setPage.bind(this,this.totalPages)}},[this.opts.texts.last])])),"fixed"===this.opts.chunksNavigation&&(n=t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.prev+" VuePagination__pagination-item-prev-chunk "+this.allowedChunkClass(-1)},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedChunkClass(-1)},on:{click:this.setChunk.bind(this,-1)}},["<<"])]),i=t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.next+" VuePagination__pagination-item-next-chunk "+this.allowedChunkClass(1)},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedChunkClass(1)},on:{click:this.setChunk.bind(this,1)}},[">>"])])),this.pages.map(function(n){r.push(t("li",{class:"VuePagination__pagination-item "+e.item+" "+this.activeClass(n)},[t("a",{class:e.link+" "+this.activeClass(n),attrs:{href:"javascript:void(0)",role:"button"},on:{click:this.setPage.bind(this,n)}},[n])]))}.bind(this)),t("div",{class:"VuePagination "+e.wrapper},[t("nav",{class:""+e.nav},[t("ul",{directives:[{name:"show",value:this.totalPages>1}],class:e.list+" VuePagination__pagination"},[o,n,t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.prev+" VuePagination__pagination-item-prev-page "+this.allowedPageClass(this.page-1)},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedPageClass(this.page-1)},on:{click:this.prev.bind(this)}},["<"])]),r,t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.next+" VuePagination__pagination-item-next-page "+this.allowedPageClass(this.page+1)},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedPageClass(this.page+1)},on:{click:this.next.bind(this)}},[">"])]),i,s]),t("p",{directives:[{name:"show",value:parseInt(this.records)}],class:"VuePagination__count "+e.count},[this.count])])])}}},function(t,e,r){"use strict";t.exports={nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active",disabled:"disabled"}},function(t,e,r){"use strict";t.exports={nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active",disabled:"disabled"}},function(t,e,r){"use strict";t.exports={nav:"",count:"",wrapper:"pagination",list:"pagination-list",item:"",link:"pagination-link",next:"",prev:"",active:"is-current",disabled:""}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"RLDropdownPagination",inject:["limit","count","theme","page","setPage","totalPages","componentsOverride","id"],render:function(){return this.$scopedSlots.default({name:this.id,setPage:this.setPage,page:this.page(),records:this.count(),perPage:parseInt(this.limit()),theme:this.theme,totalPages:this.totalPages(),override:this.componentsOverride.dropdownPagination})}};e.default=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLGenericFilter",inject:["opts","theme","source","search","query","display","id","componentsOverride"],render:function(){return this.$scopedSlots.default({theme:this.theme,search:this.search,query:this.query(),display:this.display,id:this.id,override:this.componentsOverride.genericFilter})}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLColumnsDropdown",inject:["getHeading","display","theme","allColumns","onlyColumn","toggleColumn","toggleColumnsDropdown","displayColumnsDropdown","origColumns","componentsOverride"],render:function(){return this.$scopedSlots.default({theme:this.theme,getHeading:this.getHeading,display:this.display,onlyColumn:this.onlyColumn,toggleColumn:this.toggleColumn,toggleColumnsDropdown:this.toggleColumnsDropdown,displayColumnsDropdown:this.displayColumnsDropdown(),origColumns:this.origColumns,columns:this.allColumns(),override:this.componentsOverride.columnsDropdown})}}},function(t,e,r){"use strict";t.exports=function(t,e,r,n){return"bulma"===e.framework?t("div",{class:e.menu,style:n?"display:block":"display:none"},[t("div",{class:e.content},[r])]):"bootstrap4"===e.framework?t("div",{class:e.menu,style:n?"display:block":"display:none"},[r]):t("ul",{class:e.menu,style:n?"display:block":"display:none"},[r])}},function(t,e,r){"use strict";t.exports=function(t){if(null==t)return!0;if(t.length>0)return!1;if(0===t.length)return!0;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}},function(t,e,r){"use strict";var n=s(r(160)),i=s(r(161)),o=s(r(0));function s(t){return t&&t.__esModule?t:{default:t}}t.exports=function(t){var e={state:(0,n.default)(t),mutations:(0,i.default)(t)};t.$store&&t.$store.state&&t.$store.state[t.name]&&(e.state=o.default.recursive(e.state,t.$store.state[t.name]),t.$store.unregisterModule(t.name)),t.$store.registerModule(t.name,e)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e={page:t.opts.initialPage?t.opts.initialPage:1,limit:t.opts.perPage,count:"server"==t.source?0:t.data.length,columns:t.columns,data:"client"==t.source?t.data:[],query:t.initQuery(),customQueries:t.initCustomFilters(),sortBy:!(!t.opts.orderBy||!t.opts.orderBy.column)&&t.opts.orderBy.column,ascending:!t.opts.orderBy||!t.opts.orderBy.hasOwnProperty("ascending")||t.opts.orderBy.ascending};if(void 0!==t.$store.state[t.name])return(0,i.default)(!0,t.$store.state[t.name],e);return e};var n,i=(n=r(0))&&n.__esModule?n:{default:n}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e,r,n="server"==t.source?(o(e={},"".concat(t.name,"/SET_DATA"),(function(e,r){var n=t.opts.responseAdapter.call(t,r);e.data=n.data,e.count=parseInt(n.count)})),o(e,"".concat(t.name,"/LOADING"),(function(t,e){})),o(e,"".concat(t.name,"/LOADED"),(function(t,e){})),o(e,"".concat(t.name,"/ERROR"),(function(t,e){})),o(e,"".concat(t.name,"/SET_COUNT"),(function(t,e){t.count=e})),e):o({},"".concat(t.name,"/SET_COUNT"),(function(t,e){t.count=e}));return i.default.recursive(!0,(o(r={},"".concat(t.name,"/PAGINATE"),(function(e,r){e.page=r,t.updateState("page",r),"server"==t.source&&t.getData(),t.commit("PAGINATION",r)})),o(r,"".concat(t.name,"/SET_FILTER"),(function(e,r){e.page=1,t.updateState("page",1),e.query=r,"server"==t.source&&t.getData()})),o(r,"".concat(t.name,"/PAGINATION"),(function(t,e){})),o(r,"".concat(t.name,"/SET_CUSTOM_FILTER"),(function(e,r){var n=r.filter,i=r.value;e.customQueries[n]=i,e.page=1,t.updateState("page",1),t.updateState("customQueries",e.customQueries),"server"==t.source&&t.getData()})),o(r,"".concat(t.name,"/SET_STATE"),(function(t,e){var r=e.page,n=e.query,i=e.customQueries,o=e.limit,s=e.orderBy;t.customQueries=i,t.query=n,t.page=r,t.limit=o,t.ascending=s.ascending,t.sortBy=s.column})),o(r,"".concat(t.name,"/SET_LIMIT"),(function(e,r){e.page=1,t.updateState("page",1),e.limit=r,"server"==t.source&&t.getData()})),o(r,"".concat(t.name,"/SORT"),(function(e,r){var n=r.column,i=r.ascending;e.ascending=i,e.sortBy=n,"server"==t.source&&t.getData()})),o(r,"".concat(t.name,"/SORTED"),(function(t,e){})),o(r,"".concat(t.name,"/ROW_CLICK"),(function(t,e){})),o(r,"".concat(t.name,"/FILTER"),(function(t,e){})),o(r,"".concat(t.name,"/LIMIT"),(function(t,e){})),o(r,"".concat(t.name,"/INPUT"),(function(t,e){})),o(r,"".concat(t.name,"/UPDATE"),(function(t,e){})),r),n)};var n,i=(n=r(0))&&n.__esModule?n:{default:n};function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){"use strict";t.exports=function(){return this.opts.filterByColumn?JSON.stringify(this.query):this.query}},function(t,e,r){"use strict";t.exports=function(){return JSON.stringify(this.customQueries)}},function(t,e,r){"use strict";var n=r(8);t.exports=function(){var t=n(this.tableData),e=this.orderBy.column;t=this.search(t),e?(this.time&&(this.time=this.time),t=this.opts.sortingAlgorithm.call(this,t,e||this.opts.groupBy)):this.opts.groupBy&&(t=this.opts.sortingAlgorithm.call(this,t,this.opts.groupBy)),this.vuex?this.count!=t.length&&this.commit("SET_COUNT",t.length):this.count=t.length;var r=(this.page-1)*this.limit;return this.allFilteredData=JSON.parse(JSON.stringify(t)),t.splice(r,this.limit)}},function(t,e,r){"use strict";t.exports=function(){this.data.forEach(function(t,e){this.opts.dateColumns.forEach(function(e){t[e]=t[e]?moment(t[e],this.opts.toMomentFormat):""}.bind(this))}.bind(this))}},function(t,e,r){"use strict";var n,i=(n=r(1))&&n.__esModule?n:{default:n};t.exports=function(){var t=this,e="vue-tables";this.name&&(e+="."+this.name),this.opts.customFilters.forEach((function(r){i.default.$off("".concat(e,".filter::").concat(r.name)),i.default.$on("".concat(e,".filter::").concat(r.name),(function(e){t.customQueries[r.name]=e,t.updateState("customQueries",t.customQueries)}))}))}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=r(168),o=r(6),s=r(169);t.exports=function(t,e){if(e){var r=this.query;this.setPage(1,!0);var a=this.getName(e.target.name),u="object"===n(e.target.value)?e.target.value:""+e.target.value;a?r[a]=u:r=u,this.vuex?this.commit("SET_FILTER",r):this.query=r,this.updateState("query",r),a?(this.dispatch("filter",{name:a,value:u}),this.dispatch("filter::".concat(a),u)):this.dispatch("filter",u)}var l,c,h,f,d,p=this.query,m=p?1:0;if(!this.opts)return t;this.opts.filterByColumn&&(m=i(p));t=s(t,this.opts.customFilters,this.customQueries);return m?t.filter(function(t,e){return l=0,this.filterableColumns.forEach(function(e){f=this.opts.dateColumns.indexOf(e)>-1&&this.opts.filterByColumn,d=this.isListFilter(e)&&this.opts.filterByColumn,h=this.dateFormat(e),u=this._getValue(t,e),o(u)&&!f&&(u=u.format(h)),(c=function(t){return t?"string"==typeof t?t.toLowerCase():t:""}(c=this.opts.filterByColumn?p[e]:p))&&(this.opts.filterAlgorithm[e]?this.opts.filterAlgorithm[e].call(this.$parent.$parent,t,this.opts.filterByColumn?p[e]:p)&&l++:function t(e,r,i){["string","number","boolean"].indexOf(n(r))>-1&&(r=String(r).toLowerCase());if(i)return r==e;if("string"==typeof r)return r.indexOf(e)>-1;if(o(r)){var s=moment(e.start,"YYYY-MM-DD HH:mm:ss"),a=moment(e.end,"YYYY-MM-DD HH:mm:ss");return r>=s&&r<=a}if("object"===n(r)){for(var u in r)if(t(e,r[u]))return!0;return!1}return r>=s&&r<=a}(c,u,d)&&l++)}.bind(this)),l>=m}.bind(this)):t}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){var e=0;for(var r in t){("object"==n(t[r])||t[r]&&(!isNaN(t[r])||t[r].trim()))&&e++}return e}},function(t,e,r){"use strict";t.exports=function(t,e,r){var n;return t.filter((function(t){return n=!0,e.forEach((function(e){var i=r[e.name];i&&!e.callback(t,i)&&(n=!1)})),n}))}},function(t,e,r){"use strict";t.exports=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,n=this.defaultSort,i=this.userMultiSorting[this.currentlySorting.column]?this.userMultiSorting[this.currentlySorting.column]:this.opts.multiSorting[this.currentlySorting.column],o=this.currentlySorting.ascending,s=this;return function(a,u){var l,c=s._getValue(a,t)||"",h=s._getValue(u,t)||"",f=e?1:-1;if("string"==typeof c&&(c=c.toLowerCase()),"string"==typeof h&&(h=h.toLowerCase()),c===h&&i&&i[r+1]){var d=i[r+1];return l=void 0!==d.ascending?d.ascending:d.matchDir?o:!o,n(d.column,l,r+1)(a,u)}return c>h?f:-f}}},function(t,e,r){"use strict";t.exports=function(t){if(this.$parent.$scopedSlots&&this.$parent.$scopedSlots.__group_meta){var e=this.opts.groupMeta.find((function(e){return e.value===t}));return e?this.$parent.$scopedSlots.__group_meta(e):""}return""}},function(t,e,r){"use strict";var n=c(r(0)),i=c(r(9)),o=c(r(2)),s=c(r(3)),a=c(r(4)),u=c(r(10)),l=c(r(173));function c(t){return t&&t.__esModule?t:{default:t}}var h=r(17),f=r(18),d=r(19),p={bootstrap3:r(20)(),bootstrap4:r(21)(),bulma:r(22)()};e.install=function(t,e,c){var m=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"bootstrap3",g=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},v=c?(0,o.default)("server"):(0,s.default)(),y=n.default.recursive(!0,(0,a.default)(),{name:"r-l-server-table",render:r(23),props:{columns:{type:Array,required:!0},url:{type:String},name:{type:String,required:!1},options:{type:Object,required:!1,default:function(){return{}}}},provide:d,created:function(){if(!this.opts.requestFunction&&!this.url)throw'vue-tables-2: you must provide either a "url" prop or a custom request function. Aborting';f(this),this.vuex||(this.query=this.initQuery(),this.initOrderBy(),this.customQueries=this.initCustomFilters()),this.opts.sendInitialRequest&&(this.loadState(),this.getData(!0).then(function(t){void 0!==t&&(this.setData(t),this.loading=!1,this.hasDateFilters()&&setTimeout(function(){this.initDateFilters()}.bind(this),0))}.bind(this)))},mounted:function(){this._setFiltersDOM(this.query),this.opts.resizableColumns&&(0,u.default)(this.$el.querySelector("table"),this.hasChildRow,this.opts.childRowTogglerFirst,this.opts.resizableColumns),this.vuex||(this.registerServerFilters(),this.options.initialPage&&this.setPage(this.options.initialPage,!0))},data:function(){return n.default.recursive(h(),{source:"server",loading:!0,lastKeyStrokeAt:!1,globalOptions:e,componentsOverride:g,theme:"string"==typeof m?p[m]:m()},(0,i.default)(c,"server",this.options.initialPage))},methods:{refresh:r(174),getData:r(175),setData:r(176),serverSearch:r(5),registerServerFilters:r(177),loadState:function(){var t=this;if(this.opts.saveState){if(!this.storage.getItem(this.stateKey))return this.initState(),void(this.activeState=!0);var e=JSON.parse(this.storage.getItem(this.stateKey));this.vuex?this.commit("SET_STATE",{query:e.query,customQueries:e.customQueries,page:e.page,limit:e.perPage,orderBy:e.orderBy}):(this.page=e.page,this.query=e.query,this.customQueries=e.customQueries,this.limit=e.perPage,this.orderBy=e.orderBy),!this.opts.pagination.dropdown&&this.$refs.pagination&&setTimeout((function(){t.$refs.pagination.Page=e.page}),0),this.opts.filterable&&setTimeout((function(){t._setFiltersDOM(e.query)}),0),this.activeState=!0}}},watch:{url:function(){this.refresh()}},computed:{totalPages:r(24),filteredQuery:r(178),hasMultiSort:function(){return this.opts.serverMultiSorting}}},v);return t.component("r-l-server-table",y),t.component("v-server-table",l.default),l.default}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(r(11)),i=l(r(12)),o=l(r(13)),s=l(r(14)),a=l(r(15)),u=l(r(16));function l(t){return t&&t.__esModule?t:{default:t}}var c={name:"VtServerTable",components:{VtPerPageSelector:n.default,VtTable:i.default,VtPagination:o.default,VtDropdownPagination:s.default,VtColumnsDropdown:u.default,VtGenericFilter:a.default},props:{columns:{type:Array,required:!0},url:{type:String,required:!1},name:{type:String,required:!1},options:{type:Object,required:!1,default:function(){return{}}}},computed:{customQueries:{get:function(){return this.$refs.table.customQueries},set:function(t){this.$refs.table.customQueries=t}},data:function(){return this.$refs.table.tableData}},methods:{refresh:function(){this.$refs.table.refresh()},getData:function(){return this.$refs.table.getData()},setFilter:function(t){this.$refs.table.setFilter(t)},setPage:function(t){this.$refs.table.setPage(t)},setOrder:function(t,e){this.$refs.table.setOrder(t,e)},toggleChildRow:function(t){this.$refs.table.toggleChildRow(t)},getOpenChildRows:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.$refs.table.getOpenChildRows(t)},getResponseData:function(t){return this.$refs.table.getResponseData(t)}},provide:function(){var t=this;return{scopedSlots:function(){return t.$scopedSlots},slots:function(){return t.$slots}}},model:{prop:"data"},render:function(t){return t("r-l-server-table",{attrs:{url:this.url,columns:this.columns,name:this.name,options:this.options},ref:"table",scopedSlots:{default:function(e){return e.override?t(e.override,{attrs:{props:e}}):t("div",{class:"VueTables VueTables--"+e.source},[t("div",{class:e.theme.row},[t("div",{class:e.theme.column},[!e.opts.filterByColumn&&e.opts.filterable?t("div",{class:"".concat(e.theme.field," ").concat(e.theme.inline," ").concat(e.theme.left," VueTables__search")},[e.slots.beforeFilter,t("vt-generic-filter"),e.slots.afterFilter]):"",e.slots.afterFilterWrapper,e.perPageValues.length>1?t("div",{class:"".concat(e.theme.field," ").concat(e.theme.inline," ").concat(e.theme.right," VueTables__limit")},[e.slots.beforeLimit,t("vt-per-page-selector"),e.slots.afterLimit]):"",e.opts.pagination.dropdown&&e.totalPages>1?t("div",{class:"VueTables__pagination-wrapper"},[t("div",{class:"".concat(e.theme.field," ").concat(e.theme.inline," ").concat(e.theme.right," VueTables__dropdown-pagination")},[t("vt-dropdown-pagination")])]):"",e.opts.columnsDropdown?t("div",{class:"VueTables__columns-dropdown-wrapper ".concat(e.theme.right," ").concat(e.theme.dropdown.container)},[t("vt-columns-dropdown")]):""])]),e.slots.beforeTable,t("div",{class:"table-responsive"},[t("vt-table",{ref:"vt_table"})]),e.slots.afterTable,t("vt-pagination")])}}})}};e.default=c},function(t,e,r){"use strict";t.exports=function(){this.serverSearch()}},function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(0);t.exports=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=this.opts.requestKeys,a=(n(e={},s.query,this.filteredQuery),n(e,s.limit,this.limit),n(e,s.ascending,this.orderBy.ascending?1:0),n(e,s.page,parseInt(this.page)),n(e,s.byColumn,this.opts.filterByColumn?1:0),e);this.orderBy.hasOwnProperty("column")&&this.orderBy.column&&(a[s.orderBy]=this.orderBy.column),a=i(a,this.opts.params,this.customQueries,r),this.hasMultiSort&&this.orderBy.column&&this.userMultiSorting[this.orderBy.column]&&(a.multiSort=this.userMultiSorting[this.orderBy.column]),a=this.opts.requestAdapter(a),o&&this.dispatch("loading",a);var u=this.sendRequest(a);return t?u:u.then(function(t){return void 0!==t&&(this.loading=!1,this.setData(t))}.bind(this))}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){var e=this.opts.responseAdapter.call(this,t);if(this.data=e.data,isNaN(e.count))throw console.error("vue-tables-2: invalid 'count' property. Expected number, got ".concat(n(e.count))),console.error("count equals",e.count),new Error;this.count=parseInt(e.count),setTimeout(function(){this.dispatch("loaded",t)}.bind(this),0)}},function(t,e,r){"use strict";var n,i=(n=r(1))&&n.__esModule?n:{default:n};t.exports=function(){var t="vue-tables";this.name&&(t+="."+this.name),this.opts.customFilters.forEach(function(e){i.default.$off("".concat(t,".filter::").concat(e)),i.default.$on("".concat(t,".filter::").concat(e),function(t){this.customQueries[e]=t,this.updateState("customQueries",this.customQueries),this.refresh()}.bind(this))}.bind(this))}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(){if("object"!==n(this.query)||this.opts.sendEmptyFilters)return this.query;var t={};for(var e in this.query)""!==this.query[e]&&this.filterable(e)&&(t[e]=this.query[e]);return t}}]); \ No newline at end of file +var n=r(92),i=r(93),o=r(94);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return N(t).length;default:if(n)return q(t).length;e=(""+e).toLowerCase(),n=!0}}function m(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return B(this,e,r);case"utf8":case"utf-8":return R(this,e,r);case"ascii":return O(this,e,r);case"latin1":case"binary":return M(this,e,r);case"base64":return x(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:y(t,e,r,n,i);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):y(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,r,n,i){var o,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}function l(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var c=-1;for(o=r;oa&&(r=a-u),o=r;o>=0;o--){for(var h=!0,f=0;fi&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function x(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function R(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i239?4:l>223?3:l>191?2:1;if(i+h<=r)switch(h){case 1:l<128&&(c=l);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(u=(15&l)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}return function(t){var e=t.length;if(e<=T)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},u.prototype.compare=function(t,e,r,n,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(o,s),l=this.slice(n,i),c=t.slice(e,r),h=0;hi)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return b(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":return _(this,t,e,r);case"latin1":case"binary":return C(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function O(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;in)&&(r=n);for(var i="",o=e;or)throw new RangeError("Trying to access beyond buffer length")}function k(t,e,r,n,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function A(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i>>8*(n?i:1-i)}function j(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i>>8*(n?i:3-i)&255}function V(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function F(t,e,r,n,o){return o||V(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function I(t,e,r,n,o){return o||V(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUInt8=function(t,e){return e||E(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||E(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||E(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||E(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||E(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||E(t,e,this.length);for(var n=this[t],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||E(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||E(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||E(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||E(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||E(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||E(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||E(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||E(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||E(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||E(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||k(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||k(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||k(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):A(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||k(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):A(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||k(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):j(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||k(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);k(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);k(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||k(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||k(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):A(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||k(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):A(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||k(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):j(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||k(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return F(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return F(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return I(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return I(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--i)t[i+e]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function N(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(L,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Y(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(91))},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";e.byteLength=function(t){var e=l(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=l(t),s=n[0],a=n[1],u=new o(function(t,e,r){return 3*(e+r)/4-r}(0,s,a)),c=0,h=a>0?s-4:s;for(r=0;r>16&255,u[c++]=e>>8&255,u[c++]=255&e;2===a&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,u[c++]=255&e);1===a&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e);return u},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],s=0,a=r-i;sa?a:s+16383));1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,r){for(var i,o,s=[],a=e;a>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<>1,c=-7,h=r?i-1:0,f=r?-1:1,d=t[e+h];for(h+=f,o=d&(1<<-c)-1,d>>=-c,c+=a;c>0;o=256*o+t[e+h],h+=f,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+t[e+h],h+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),o-=l}return(d?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,u,l=8*o-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+h>=1?f/u:f*Math.pow(2,1-h))*u>=2&&(s++,u/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(e*u-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[r+d]=255&a,d+=p,a/=256,i-=8);for(s=s<0;t[r+d]=255&s,d+=p,s/=256,l-=8);t[r+d-p]|=128*m}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){"use strict";t.exports=function(t){return!!this.opts.filterable&&(this.isTextFilter(t)?"vt-text-filter":this.isDateFilter(t)?"vt-date-filter":this.isListFilter(t)?"vt-list-filter":void 0)}},function(t,e,r){"use strict";var n,i=(n=r(97))&&n.__esModule?n:{default:n};t.exports=function(t){var e="client"===this.source?this.search.bind(this,this.data):this.serverSearch.bind(this);if(!t)return e;var r=(0,i.default)(e,t);return function(t){9!==t.keyCode&&(13===t.keyCode?(r.clear(),e.apply(void 0,arguments)):r.apply(void 0,arguments))}}},function(t,e){function r(t,e,r){var n,i,o,s,a;function u(){var l=Date.now()-s;l=0?n=setTimeout(u,e-l):(n=null,r||(a=t.apply(o,i),o=i=null))}null==e&&(e=100);var l=function(){o=this,i=arguments,s=Date.now();var l=r&&!n;return n||(n=setTimeout(u,e)),l&&(a=t.apply(o,i),o=i=null),a};return l.clear=function(){n&&(clearTimeout(n),n=null)},l.flush=function(){n&&(a=t.apply(o,i),o=i=null,clearTimeout(n),n=null)},l}r.debounce=r,t.exports=r},function(t,e,r){"use strict";t.exports={listColumnsObject:r(99),allColumns:r(100),templatesKeys:r(101),opts:r(102),tableData:r(104),storage:r(105),filterableColumns:r(106),datepickerColumns:r(107),hasChildRow:r(108),colspan:r(109),hasGenericFilter:r(110),perPageValues:r(111),stateKey:function(){return"vuetables_"+(this.name?this.name:this.id)},Page:function(){return this.page},tabIndex:function(){return this.opts.tabbable?0:-1}}},function(t,e,r){"use strict";t.exports=function(){var t=Object.keys(this.opts.listColumns),e={};return t.forEach(function(t){e[t]={},this.opts.listColumns[t].forEach((function(r){e[t][r.id]=r.text}))}.bind(this)),e}},function(t,e,r){"use strict";t.exports=function(){var t=this,e=this.columnsDisplay;return e||this.userControlsColumns?this.userControlsColumns?this.columns.filter((function(e){return t.userColumnsDisplay.includes(e)})):this.opts.ssr?this.Columns:this.Columns.filter((function(r){if(!t._shouldShowColumnOnInit(r))return!1;if(!e[r])return!0;var n=e[r],i=n[2],o=(!n[0]||t.windowWidth>=n[0])&&(!n[1]||t.windowWidth=t.count;return e.push(r),!n})),e}},function(t,e,r){"use strict";var n,i=(n=r(1))&&n.__esModule?n:{default:n};t.exports=function(){var t,e=this;this.opts.destroyEventBus&&(i.default.$off(),i.default.$destroy()),this.vuex&&!this.opts.preserveState&&this.$store.unregisterModule(this.name),this.opts.filterByColumn&&this.datepickerColumns.forEach((function(r){(t=$(e.$el).find("#VueTables__"+$.escapeSelector(r)+"-filter").data("daterangepicker"))&&t.remove()}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(r(11)),i=l(r(12)),o=l(r(13)),s=l(r(14)),a=l(r(15)),u=l(r(16));function l(t){return t&&t.__esModule?t:{default:t}}var c={name:"VtClientTable",components:{VtPerPageSelector:n.default,VtTable:i.default,VtPagination:o.default,VtDropdownPagination:s.default,VtColumnsDropdown:u.default,VtGenericFilter:a.default},props:{columns:{type:Array,required:!0},data:{type:Array,required:!0},name:{type:String,required:!1},options:{type:Object,required:!1,default:function(){return{}}}},methods:{setFilter:function(t){this.$refs.table.setFilter(t)},setPage:function(t){this.$refs.table.setPage(t)},setOrder:function(t,e){this.$refs.table.setOrder(t,e)},toggleChildRow:function(t){this.$refs.table.toggleChildRow(t)},getOpenChildRows:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.$refs.table.getOpenChildRows(t)},resetQuery:function(){this.$refs.table.resetQuery()}},computed:{filteredData:function(){return this.$refs.table.filteredData},allFilteredData:function(){return this.$refs.table.allFilteredData}},provide:function(){var t=this;return{scopedSlots:function(){return t.$scopedSlots},slots:function(){return t.$slots}}},model:{prop:"data"},render:function(t){return t("r-l-client-table",{attrs:{data:this.data,columns:this.columns,name:this.name,options:this.options},ref:"table",scopedSlots:{default:function(e){return e.override?t(e.override,{attrs:{props:e}}):t("div",{class:"VueTables VueTables--"+e.source},[t("div",{class:e.theme.row},[t("div",{class:e.theme.column},[!e.opts.filterByColumn&&e.opts.filterable?t("div",{class:"".concat(e.theme.field," ").concat(e.theme.inline," ").concat(e.theme.left," VueTables__search")},[e.slots.beforeFilter,t("vt-generic-filter"),e.slots.afterFilter]):"",e.slots.afterFilterWrapper,e.perPageValues.length>1?t("div",{class:"".concat(e.theme.field," ").concat(e.theme.inline," ").concat(e.theme.right," VueTables__limit")},[e.slots.beforeLimit,t("vt-per-page-selector"),e.slots.afterLimit]):"",e.opts.pagination.dropdown&&e.totalPages>1?t("div",{class:"VueTables__pagination-wrapper"},[t("div",{class:"".concat(e.theme.field," ").concat(e.theme.inline," ").concat(e.theme.right," VueTables__dropdown-pagination")},[t("vt-dropdown-pagination")])]):"",e.opts.columnsDropdown?t("div",{class:"VueTables__columns-dropdown-wrapper ".concat(e.theme.right," ").concat(e.theme.dropdown.container)},[t("vt-columns-dropdown")]):""])]),e.slots.beforeTable,t("div",{class:"table-responsive"},[t("vt-table",{ref:"vt_table"})]),e.slots.afterTable,t("vt-pagination")])}}})}};e.default=c},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLPerPageSelector",inject:["opts","limit","setLimit","perPageValues","id","theme","display","componentsOverride"],render:function(){var t=this;return this.$scopedSlots.default({perPageValues:this.perPageValues(),theme:this.theme,limit:this.limit(),setLimit:this.setLimit,id:this.id,selectClass:this.theme.select,display:this.display,selectAttrs:{id:"VueTables__limit_".concat(this.id),class:this.theme.select,value:this.limit()},selectEvents:{change:function(e){return t.setLimit(e)}},override:this.componentsOverride.perPageSelector})}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLTable",inject:["opts","theme","colspan","slots","componentsOverride"],render:function(){return this.$scopedSlots.default({tableAttrs:{summary:this.opts().summary,class:"VueTables__table ".concat(this.opts().skin?this.opts().skin:this.theme.table)},slots:this.slots(),colspan:this.colspan(),caption:this.opts().caption,override:this.componentsOverride.table})}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=s(r(117)),i=s(r(118)),o=s(r(124));function s(t){return t&&t.__esModule?t:{default:t}}var a={name:"VtTableHead",components:{RLTableHead:n.default,VtHeadingsRow:i.default,VtFiltersRow:o.default},render:function(){var t=arguments[0];return t("r-l-table-head",{scopedSlots:{default:function(e){return e.override?t(e.override,{attrs:{props:e}}):t("thead",[e.slots.prependHead,t("vt-headings-row"),e.slots.beforeFilters,e.opts.filterByColumn&&e.opts.filterable?t("vt-filters-row"):"",e.slots.afterFilters])}}})}};e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLTableHead",inject:["opts","slots","componentsOverride"],render:function(){return this.$scopedSlots.default({opts:this.opts(),slots:this.slots(),override:this.componentsOverride.tableHead})}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(r(119)),i=o(r(120));function o(t){return t&&t.__esModule?t:{default:t}}var s={name:"VtHeadingsRow",components:{RLHeadingsRow:n.default,VtTableHeading:i.default},render:function(){var t=arguments[0];return t("r-l-headings-row",{scopedSlots:{default:function(e){var r=[];return e.childRowTogglerFirst&&r.push(t("th")),e.columns.map((function(e){r.push(t("vt-table-heading",{attrs:{column:e}}))})),e.childRowTogglerLast&&r.push(t("th")),t("tr",[r])}}})}};e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLHeadingRow",inject:["opts","theme","hasChildRow","allColumns"],render:function(){return this.$scopedSlots.default({columns:this.allColumns(),hasChildRow:this.hasChildRow,childRowTogglerFirst:this.hasChildRow()&&this.opts().showChildRowToggler&&this.opts().childRowTogglerFirst,childRowTogglerLast:this.hasChildRow()&&this.opts().showChildRowToggler&&!this.opts().childRowTogglerFirst})}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(r(121)),i=o(r(122));function o(t){return t&&t.__esModule?t:{default:t}}var s={name:"VtTableHeading",props:["column"],components:{RLTableHeading:n.default,VtSortControl:i.default},render:function(){var t=arguments[0];return t("r-l-table-heading",{attrs:{column:this.column},scopedSlots:{default:function(e){return e.override?t(e.override,{attrs:{props:e}}):t("th",{on:{keypress:e.thEvents.keypress,click:e.thEvents.click},class:e.thAttrs.class,attrs:{tabindex:e.thAttrs.tabIndex}},[t("span",{class:"VueTables__heading",attrs:{title:e.title}},[e.heading]),t("vt-sort-control")])}}})}};e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLTableHeading",props:["column"],provide:function(){return{column:this.column}},inject:["opts","theme","sortableClass","getHeadingTooltip","getHeading","orderByColumn","componentsOverride","tabIndex"],render:function(t){var e=this;return this.$scopedSlots.default({thAttrs:{class:this.sortableClass(this.column),tabIndex:this.tabIndex()},thEvents:{keypress:function(t){"Enter"===t.key&&this.orderByColumn(this.column,t)},click:function(t){"resize-handle"!==t.target.className&&e.orderByColumn(e.column,t)}},spanAttrs:{title:this.getHeadingTooltip(this.column)},heading:this.getHeading(this.column,t),override:this.componentsOverride.tableHeading})}}},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"VtSortControl",components:{RLSortControl:((n=r(123))&&n.__esModule?n:{default:n}).default},render:function(){var t=arguments[0];return t("r-l-sort-control",{scopedSlots:{default:function(e){return e.sortable?e.override?t(e.override,{attrs:{props:e}}):t("span",{class:e.class}):""}}})}};e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLSortControl",inject:["column","theme","sortable","hasMultiSort","orderBy","userMultiSorting","sortableChevronClass","componentsOverride"],render:function(){return this.$scopedSlots.default({sortable:this.sortable(this.column),class:"VueTables__sort-icon ".concat(this.theme.right," ").concat(this.sortableChevronClass(this.column)),sortStatus:this.sortStatus,override:this.componentsOverride.sortControl})},computed:{OrderBy:function(){return this.orderBy()},UserMultiSorting:function(){return this.userMultiSorting()},sortStatus:function(){var t=this;if(this.hasMultiSort&&this.OrderBy.column&&this.UserMultiSorting[this.OrderBy.column]){var e=this.UserMultiSorting[this.OrderBy.column].filter((function(e){return e.column===t.column}))[0];if(e)return{sorted:!0,asc:e.ascending}}return this.column===this.OrderBy.column?{sorted:!0,asc:this.OrderBy.ascending}:{sorted:!1,asc:!1}}},methods:{}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(r(125)),i=a(r(126)),o=a(r(128)),s=a(r(130));function a(t){return t&&t.__esModule?t:{default:t}}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var l={name:"VtFiltersRow",components:{RLFiltersRow:n.default,VtTextFilter:i.default,VtListFilter:o.default,VtDateFilter:s.default},render:function(){var t=arguments[0];return t("r-l-filters-row",{scopedSlots:{default:function(e){var r=[];return e.hasChildRow&&e.opts.childRowTogglerFirst&&e.opts.showChildRowToggler&&r.push(t("th")),e.columns.map((function(n){var i="";e.filterable(n)&&(i=t(e.filterType(n),{props:{column:n}})),void 0!==e.slots["filter__".concat(n)]&&(i=i?t("div",[i,e.slots["filter__".concat(n)]]):e.slots["filter__".concat(n)]),r.push(t("th",{class:e.columnClass(n)},[i?t("div",u({class:"VueTables__column-filter"},"class","VueTables__"+n+"-filter-wrapper"),[i]):""]))})),e.hasChildRow&&!e.opts.childRowTogglerFirst&&e.opts.showChildRowToggler&&r.push(t("th")),e.override?t(e.override,{attrs:{props:e}}):t("tr",{class:"VueTables__filters-row"},[r])}}})}};e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLFiltersRow",inject:["opts","theme","allColumns","filterable","filterType","slots","columnClass","hasChildRow","componentsOverride"],render:function(){return this.$scopedSlots.default({columns:this.allColumns(),filterable:this.filterable,filterType:this.filterType,opts:this.opts(),slots:this.slots(),columnClass:this.columnClass,hasChildRow:this.hasChildRow(),override:this.componentsOverride.filtersRow})}}},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"VtTextFilter",props:["column"],components:{RLTextFilter:((n=r(127))&&n.__esModule?n:{default:n}).default},render:function(){var t=this,e=arguments[0];return e("r-l-text-filter",{attrs:{column:this.column},scopedSlots:{default:function(r){return r.override?e(r.override,{attrs:{props:r}}):e("input",{on:{keyup:r.search(r.debounce)},class:r.theme.input,attrs:{name:r.getColumnName(t.column),type:"text",placeholder:r.display("filterBy",{column:r.getHeading(t.column)}),autocomplete:"off"}})}}})}};e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLTextFilter",inject:["opts","search","query","theme","getHeading","display","getColumnName","componentsOverride"],props:["column"],render:function(t){return this.$scopedSlots.default({column:this.column,debounce:this.opts().debounce,theme:this.theme,search:this.search,query:this.query(),getHeading:this.getHeading,getColumnName:this.getColumnName,display:this.display,override:this.componentsOverride.textFilter})}}},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"VtListFilter",props:["column"],components:{RLListFilter:((n=r(129))&&n.__esModule?n:{default:n}).default},render:function(){var t=this,e=arguments[0];return e("r-l-list-filter",{attrs:{column:this.column},scopedSlots:{default:function(r){var n,i=[];return r.items.map((function(o){n=String(o.id)===String(r.query[t.column])&&""!==r.query[t.column],i.push(e("option",{domProps:{value:o.id,selected:n}},[o.text]))})),r.override?e(r.override,{attrs:{props:r}}):e("div",{class:"VueTables__list-filter",attrs:{id:"VueTables__"+t.column+"-filter"}},[e("select",{class:r.theme.select,on:{change:r.search(!1)},attrs:{name:r.name},domProps:{value:r.value}},[e("option",{attrs:{value:""}},[r.defaultOption]),i])])}}})}};e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLListFilter",inject:["search","query","theme","getHeading","display","getColumnName","opts","componentsOverride"],props:["column"],render:function(t){return this.$scopedSlots.default({theme:this.theme,search:this.search,query:this.query(),getHeading:this.getHeading,display:this.display,items:this.opts().listColumns[this.column].filter((function(t){return!t.hide})),defaultOption:this.display("defaultOption",{column:this.opts().headings[this.column]?this.opts().headings[this.column]:this.column}),name:this.getColumnName(this.column),value:this.query()[this.column],column:this.column,override:this.componentsOverride.listFilter})}}},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"VtDateFilter",props:["column"],components:{RLDateFilter:((n=r(131))&&n.__esModule?n:{default:n}).default},render:function(t){var e=this;return t("r-l-date-filter",{attrs:{column:this.column},scopedSlots:{default:function(r){return r.overide?t(r.override,{attrs:{props:r}}):t("div",{class:"VueTables__date-filter",attrs:{id:"VueTables__"+e.column+"-filter"}},[t("span",{class:"VueTables__filter-placeholder"},[r.placeholder])])}}})}};e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLDateFilter",inject:["getHeading","display","componentsOverride"],props:["column"],render:function(t){return this.$scopedSlots.default({column:this.column,placeholder:this.display("filterBy",{column:this.getHeading(this.column)}),display:this.display,override:this.componentsOverride.dateFilter})}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=u(r(133)),i=u(r(134)),o=u(r(136)),s=u(r(143)),a=u(r(145));function u(t){return t&&t.__esModule?t:{default:t}}var l={name:"VtTableBody",components:{RLTableBody:n.default,VtNoResultsRow:i.default,VtTableRow:o.default,VtChildRow:a.default,VtGroupRow:s.default},render:function(){var t=arguments[0];return t("r-l-table-body",{scopedSlots:{default:function(e){var r,n=[];return e.data.forEach((function(i,o){e.groupBy&&"client"===e.source&&i[e.groupBy]!==r&&(n.push(t("vt-group-row",{attrs:{row:i}})),r=i[e.groupBy]),e.canToggleGroups&&e.collapsedGroups.includes(r)||(n.push(t("vt-table-row",{attrs:{row:i,index:e.initialIndex+o+1}})),e.hasChildRow&&e.openChildRows.includes(i[e.uniqueRowId])&&n.push(t("vt-child-row",{attrs:{row:i,index:e.initialIndex+o+1}})))})),e.override?t(e.override,{attrs:{props:e}}):t("tbody",[e.slots.prependBody,0===e.data.length?t("vt-no-results-row"):"",n,e.slots.appendBody])}}})}};e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLTableBody",inject:["opts","theme","source","filteredData","tableData","colspan","openChildRows","collapsedGroups","scopedSlots","slots","componentsOverride","page","limit"],render:function(){return this.$scopedSlots.default({source:this.source,canToggleGroups:this.opts().toggleGroups,collapsedGroups:this.collapsedGroups(),data:"client"===this.source?this.filteredData():this.tableData(),colspan:this.colspan(),loading:!0,hasChildRow:this.opts().childRow||this.scopedSlots().child_row,openChildRows:this.openChildRows(),uniqueRowId:this.opts().uniqueKey,groupBy:this.opts().groupBy,slots:this.slots(),override:this.componentsOverride.tableBody,initialIndex:(this.page()-1)*this.limit()})}}},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"VtNoResultsRow",components:{RLNoResultsRow:((n=r(135))&&n.__esModule?n:{default:n}).default},render:function(){var t=arguments[0];return t("r-l-no-results-row",{scopedSlots:{default:function(e){return e.override?t(e.override,{attrs:{props:e}}):t("tr",{class:"VueTables__no-results"},[t("td",{class:"text-center",attrs:{tabindex:e.tabIndex,colspan:e.colspan}},[e.display(e.loading?"loading":"noResults")])])}}})}};e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLNoResultsRow",inject:["colspan","display","componentsOverride","tabIndex"],render:function(){return this.$scopedSlots.default({colspan:this.colspan(),display:this.display,tabIndex:this.tabIndex(),override:this.componentsOverride.noResultsRow})}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(r(137)),i=a(r(138)),o=a(r(139)),s=a(r(141));function a(t){return t&&t.__esModule?t:{default:t}}var u={name:"VtTableRow",props:["row","index"],components:{RLTableRow:i.default,VtTableCell:o.default,VtChildRowToggler:s.default},render:function(){var t=arguments[0];return t("r-l-table-row",{attrs:{row:this.row,index:this.index},scopedSlots:{default:function(e){return e.override?t(e.override,{attrs:{props:e}}):t("tr",(0,n.default)([{class:"VueTables__row "+e.rowAttrs.class},{attrs:e.rowAttrs.attrs},{on:{click:e.rowEvents.click}}]),[e.childRowTogglerFirst?t("vt-child-row-toggler",{attrs:{"row-id":e.rowId}}):"",e.columns.map((function(e){return t("vt-table-cell",{attrs:{column:e}})})),e.childRowTogglerLast?t("vt-child-row-toggler",{attrs:{"row-id":e.rowId}}):""])}}})}};e.default=u},function(t,e){var r=/^(attrs|props|on|nativeOn|class|style|hook)$/;function n(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce((function(t,e){var i,o,s,a,u;for(s in e)if(i=t[s],o=e[s],i&&r.test(s))if("class"===s&&("string"==typeof i&&(u=i,t[s]=i={},i[u]=!0),"string"==typeof o&&(u=o,e[s]=o={},o[u]=!0)),"on"===s||"nativeOn"===s||"hook"===s)for(a in o)i[a]=n(i[a],o[a]);else if(Array.isArray(i))t[s]=i.concat(o);else if(Array.isArray(o))t[s]=[i].concat(o);else for(a in o)i[a]=o[a];else t[s]=e[s];return t}),{})}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLTableRow",props:["row","index"],inject:["allColumns","opts","rowWasClicked","hasChildRow","componentsOverride"],provide:function(){var t=this;return{row:function(){return t.row},index:this.index}},render:function(){return this.$scopedSlots.default({columns:this.allColumns(),hasChildRow:this.hasChildRow(),opts:this.opts(),rowId:this.row[this.opts().uniqueKey],rowAttrs:{class:this.opts().rowClassCallback?this.opts().rowClassCallback(this.row):"",attrs:this.opts().rowAttributesCallback?this.opts().rowAttributesCallback(this.row):{}},rowEvents:{click:this.rowWasClicked.bind(this,this.row,this.index),dblclick:this.rowWasClicked.bind(this,this.row,this.index)},childRowTogglerFirst:this.hasChildRow()&&this.opts().showChildRowToggler&&this.opts().childRowTogglerFirst,childRowTogglerLast:this.hasChildRow()&&this.opts().showChildRowToggler&&!this.opts().childRowTogglerFirst,override:this.componentsOverride.tableRow})}}},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"VtTableCell",props:["column"],components:{RLTableCell:((n=r(140))&&n.__esModule?n:{default:n}).default},render:function(){var t=arguments[0];return t("r-l-table-cell",{attrs:{column:this.column},scopedSlots:{default:function(e){return e.override?t(e.override,{attrs:{props:e}}):t("td",{attrs:{tabindex:e.tabIndex},class:e.classes},[e.content])}}})}};e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o={name:"RLTableCell",inject:["row","scopedSlots","opts","render","index","setEditingCell","updateValue","revertValue","editing","getValue","columnClass","cellClasses","componentsOverride","isListFilter","optionText","source","dateFormat","formatDate","tabIndex"],props:["column"],render:function(t){return this.$scopedSlots.default({row:this.Row,content:this.content(t),classes:"".concat(this.columnClass(this.column)," ").concat(this.cellClasses(this.column,this.Row)).trim(),tabIndex:this.tabIndex(),override:this.componentsOverride.tableCell})},computed:{Row:function(){return this.row()}},methods:{content:function(t){if(this.opts().templates[this.column])return this.render(this.Row,this.column,this.index,t);if(this.scopedSlots()[this.column]){var e={row:this.Row,column:this.column,index:this.index};return this.opts().editableColumns.includes(this.column)&&(e=(0,i.default)(e,this.getEditFunctions())),this.scopedSlots()[this.column](e)}return this.formatCellContent(this.getValue(this.Row,this.column),this.column)},formatCellContent:function(t,e){return"client"===this.source&&this.opts().dateColumns.includes(e)?this.formatDate(t,this.dateFormat(e)):this.isListFilter(e)?this.optionText(t,e):t},isEditing:function(){return function(){var t=this;return this.editing().find((function(e){return e.id===t.Row[t.opts().uniqueKey]&&e.column===t.column}))}.bind(this)},getEditFunctions:function(){return{update:this.updateValue(this.Row,this.column),isEditing:this.isEditing(),setEditing:this.setEditingCell(this.Row,this.column),revertValue:this.revertValue(this.Row,this.column)}}}};e.default=o},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"VtChildRowToggler",props:["rowId"],components:{RLChildRowToggler:((n=r(142))&&n.__esModule?n:{default:n}).default},render:function(t){return t("r-l-child-row-toggler",{attrs:{"row-id":this.rowId},scopedSlots:{default:function(e){return e.override?t(e.override,{attrs:{props:e}}):t("td",{attrs:{tabindex:e.tabIndex},on:{keypress:function(t){"Enter"===t.key&&e.toggle()},click:e.toggle}},[t("span",{class:"VueTables__child-row-toggler "+e.class()})])}}})}};e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLChildRowToggler",props:["rowId"],inject:["toggleChildRow","childRowTogglerClass","componentsOverride","tabIndex"],render:function(t){return this.$scopedSlots.default({class:this.childRowTogglerClass.bind(this,this.rowId),toggle:this.toggleChildRow.bind(this,this.rowId),override:this.componentsOverride.childRowToggler,tabIndex:this.tabIndex()})}}},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"VtGroupRow",components:{RLGroupRow:((n=r(144))&&n.__esModule?n:{default:n}).default},props:["row"],render:function(){var t=arguments[0];return t("r-l-group-row",{attrs:{row:this.row},scopedSlots:{default:function(e){return e.override?t(e.override,{attrs:{props:e}}):t("tr",{class:e.theme.groupTr,on:{click:e.toggleGroupDirection}},[t("td",{attrs:{colspan:e.colspan}},[e.canToggleGroup?t("button",{class:e.theme.button,on:{click:e.toggleGroup.bind(this,e.groupValue)}},[e.groupValue,t("span",{class:e.groupToggleIcon(e.groupValue)})]):"",e.canToggleGroup?"":t("span",[e.groupValue]),e.slot])])}}})}};e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLGroupRow",props:["row"],inject:["colspan","opts","theme","toggleGroupDirection","toggleGroup","groupToggleIcon","getGroupSlot","componentsOverride"],render:function(){return this.$scopedSlots.default({theme:this.theme,colspan:this.colspan(),toggleGroupDirection:this.toggleGroupDirection,canToggleGroup:this.opts().toggleGroups,toggleGroup:this.toggleGroup,groupValue:this.row[this.opts().groupBy],groupToggleIcon:this.groupToggleIcon,slot:this.getGroupSlot(this.row[this.opts().groupBy]),override:this.componentsOverride.groupRow})}}},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"VtChildRow",props:["row","index"],components:{RLChildRow:((n=r(146))&&n.__esModule?n:{default:n}).default},render:function(){var t=arguments[0];return t("r-l-child-row",{attrs:{row:this.row,index:this.index},scopedSlots:{default:function(e){return e.override?t(e.override,{attrs:{props:e}}):t("tr",{class:"VueTables__child-row "+e.class},[t("td",{attrs:{colspan:e.colspan}},[e.childRow])])}}})}};e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLChildRow",props:["row","index"],inject:["colspan","scopedSlots","getChildRowTemplate","opts","componentsOverride"],render:function(t){return this.$scopedSlots.default({childRow:this.getChildRowTemplate(t,this.row,this.index,this.scopedSlots().child_row),colspan:this.colspan(),class:this.opts().rowClassCallback?this.opts().rowClassCallback(this.row):"",override:this.componentsOverride.childRow})}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o={name:"RLPagination",inject:["opts","count","limit","vuex","name","id","theme","page","setPage","totalPages","componentsOverride"],render:function(){return this.$scopedSlots.default({setPage:this.setPage,options:this.opts().pagination,infiniteScroll:this.opts().infiniteScroll,page:this.page(),records:this.count(),perPage:parseInt(this.limit()),name:this.vuex?this.name:this.id,vuex:this.vuex,theme:this.theme,texts:this.opts().texts,totalPages:this.totalPages(),optionsObj:{theme:(0,i.default)(this.theme.pagination,{wrapper:"".concat(this.theme.row," ").concat(this.theme.column," ").concat(this.theme.contentCenter),nav:this.theme.center,count:"".concat(this.theme.center," ").concat(this.theme.column)}),chunk:this.opts().pagination.chunk,chunksNavigation:this.opts().pagination.nav,edgeNavigation:this.opts().pagination.edge,texts:{count:this.opts().texts.count,first:this.opts().texts.first,last:this.opts().texts.last}},override:this.componentsOverride.pagination})}};e.default=o},function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=s(r(149)),o=s(r(0));function s(t){return t&&t.__esModule?t:{default:t}}var a=r(150);t.exports={render:a.call(void 0),model:{prop:"page",event:"paginate"},props:{page:{type:Number,required:!0},for:{type:String,required:!1},records:{type:Number,required:!0},perPage:{type:Number,default:25},vuex:{type:Boolean},options:{type:Object}},data:function(){return{firstPage:this.page}},watch:{page:function(t){"scroll"===this.opts.chunksNavigation&&this.allowedPage(t)&&!this.inDisplay(t)&&(this.firstPage=t)}},computed:{opts:function(){return(0,o.default)((0,i.default)(),this.options)},Theme:function(){if("object"===n(this.opts.theme))return this.opts.theme;var t={bootstrap3:r(151),bootstrap4:r(152),bulma:r(153)};if(void 0===n(t[this.opts.theme]))throw"vue-pagination-2: the theme "+this.opts.theme+" does not exist";return t[this.opts.theme]},pages:function(){return this.records?(t=this.paginationStart,e=this.pagesInCurrentChunk,Array.apply(0,Array(e)).map((function(e,r){return r+t}))):[];var t,e},totalPages:function(){return this.records?Math.ceil(this.records/this.perPage):1},totalChunks:function(){return Math.ceil(this.totalPages/this.opts.chunk)},currentChunk:function(){return Math.ceil(this.page/this.opts.chunk)},paginationStart:function(){return"scroll"===this.opts.chunksNavigation?this.firstPage:(this.currentChunk-1)*this.opts.chunk+1},pagesInCurrentChunk:function(){return this.paginationStart+this.opts.chunk<=this.totalPages?this.opts.chunk:this.totalPages-this.paginationStart+1},count:function(){if(/{page}/.test(this.opts.texts.count))return this.totalPages<=1?"":this.opts.texts.count.replace("{page}",this.page).replace("{pages}",this.totalPages);var t=this.opts.texts.count.split("|"),e=(this.page-1)*this.perPage+1,r=this.page==this.totalPages?this.records:e+this.perPage-1;return t[Math.min(1==this.records?2:1==this.totalPages?1:0,t.length-1)].replace("{count}",this.formatNumber(this.records)).replace("{from}",this.formatNumber(e)).replace("{to}",this.formatNumber(r))}},methods:{setPage:function(t){this.allowedPage(t)&&this.paginate(t)},paginate:function(t){this.$emit("paginate",t)},next:function(){var t=this.page+1;return"scroll"===this.opts.chunksNavigation&&this.allowedPage(t)&&!this.inDisplay(t)&&this.firstPage++,this.setPage(t)},prev:function(){var t=this.page-1;return"scroll"===this.opts.chunksNavigation&&this.allowedPage(t)&&!this.inDisplay(t)&&this.firstPage--,this.setPage(t)},inDisplay:function(t){var e=this.firstPage,r=e+this.opts.chunk-1;return t>=e&&t<=r},nextChunk:function(){return this.setChunk(1)},prevChunk:function(){return this.setChunk(-1)},setChunk:function(t){this.setPage((this.currentChunk-1+t)*this.opts.chunk+1)},allowedPage:function(t){return t>=1&&t<=this.totalPages},allowedChunk:function(t){return 1==t&&this.currentChunk1},allowedPageClass:function(t){return this.allowedPage(t)?"":this.Theme.disabled},allowedChunkClass:function(t){return this.allowedChunk(t)?"":this.Theme.disabled},activeClass:function(t){return this.page==t?this.Theme.active:""},formatNumber:function(t){return this.opts.format?t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):t}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return{format:!0,chunk:10,chunksNavigation:"fixed",edgeNavigation:!1,theme:"bootstrap3",texts:{count:"Showing {from} to {to} of {count} records|{count} records|One record",first:"First",last:"Last"}}}},function(t,e,r){"use strict";t.exports=function(){return function(t){var e=this.Theme,r=[],n="",i="",o="",s="";return this.opts.edgeNavigation&&this.totalChunks>1&&(o=t("li",{class:"VuePagination__pagination-item "+e.item+" "+(1===this.page?e.disabled:"")+" VuePagination__pagination-item-prev-chunk"},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:1===this.page},on:{click:this.setPage.bind(this,1)}},[this.opts.texts.first])]),s=t("li",{class:"VuePagination__pagination-item "+e.item+" "+(this.page===this.totalPages?e.disabled:"")+" VuePagination__pagination-item-prev-chunk"},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:this.page===this.totalPages},on:{click:this.setPage.bind(this,this.totalPages)}},[this.opts.texts.last])])),"fixed"===this.opts.chunksNavigation&&(n=t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.prev+" VuePagination__pagination-item-prev-chunk "+this.allowedChunkClass(-1)},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedChunkClass(-1)},on:{click:this.setChunk.bind(this,-1)}},["<<"])]),i=t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.next+" VuePagination__pagination-item-next-chunk "+this.allowedChunkClass(1)},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedChunkClass(1)},on:{click:this.setChunk.bind(this,1)}},[">>"])])),this.pages.map(function(n){r.push(t("li",{class:"VuePagination__pagination-item "+e.item+" "+this.activeClass(n)},[t("a",{class:e.link+" "+this.activeClass(n),attrs:{href:"javascript:void(0)",role:"button"},on:{click:this.setPage.bind(this,n)}},[n])]))}.bind(this)),t("div",{class:"VuePagination "+e.wrapper},[t("nav",{class:""+e.nav},[t("ul",{directives:[{name:"show",value:this.totalPages>1}],class:e.list+" VuePagination__pagination"},[o,n,t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.prev+" VuePagination__pagination-item-prev-page "+this.allowedPageClass(this.page-1)},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedPageClass(this.page-1)},on:{click:this.prev.bind(this)}},["<"])]),r,t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.next+" VuePagination__pagination-item-next-page "+this.allowedPageClass(this.page+1)},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedPageClass(this.page+1)},on:{click:this.next.bind(this)}},[">"])]),i,s]),t("p",{directives:[{name:"show",value:parseInt(this.records)}],class:"VuePagination__count "+e.count},[this.count])])])}}},function(t,e,r){"use strict";t.exports={nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active",disabled:"disabled"}},function(t,e,r){"use strict";t.exports={nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active",disabled:"disabled"}},function(t,e,r){"use strict";t.exports={nav:"",count:"",wrapper:"pagination",list:"pagination-list",item:"",link:"pagination-link",next:"",prev:"",active:"is-current",disabled:""}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"RLDropdownPagination",inject:["limit","count","theme","page","setPage","totalPages","componentsOverride","id"],render:function(){return this.$scopedSlots.default({name:this.id,setPage:this.setPage,page:this.page(),records:this.count(),perPage:parseInt(this.limit()),theme:this.theme,totalPages:this.totalPages(),override:this.componentsOverride.dropdownPagination})}};e.default=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLGenericFilter",inject:["opts","theme","source","search","query","display","id","componentsOverride"],render:function(){return this.$scopedSlots.default({theme:this.theme,search:this.search,query:this.query(),display:this.display,id:this.id,override:this.componentsOverride.genericFilter})}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={name:"RLColumnsDropdown",inject:["getHeading","display","theme","allColumns","onlyColumn","toggleColumn","toggleColumnsDropdown","displayColumnsDropdown","origColumns","componentsOverride"],render:function(){return this.$scopedSlots.default({theme:this.theme,getHeading:this.getHeading,display:this.display,onlyColumn:this.onlyColumn,toggleColumn:this.toggleColumn,toggleColumnsDropdown:this.toggleColumnsDropdown,displayColumnsDropdown:this.displayColumnsDropdown(),origColumns:this.origColumns,columns:this.allColumns(),override:this.componentsOverride.columnsDropdown})}}},function(t,e,r){"use strict";t.exports=function(t,e,r,n){return"bulma"===e.framework?t("div",{class:e.menu,style:n?"display:block":"display:none"},[t("div",{class:e.content},[r])]):"bootstrap4"===e.framework?t("div",{class:e.menu,style:n?"display:block":"display:none"},[r]):t("ul",{class:e.menu,style:n?"display:block":"display:none"},[r])}},function(t,e,r){"use strict";t.exports=function(t){if(null==t)return!0;if(t.length>0)return!1;if(0===t.length)return!0;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}},function(t,e,r){"use strict";var n=s(r(160)),i=s(r(161)),o=s(r(0));function s(t){return t&&t.__esModule?t:{default:t}}t.exports=function(t){var e={state:(0,n.default)(t),mutations:(0,i.default)(t)};t.$store&&t.$store.state&&t.$store.state[t.name]&&(e.state=o.default.recursive(e.state,t.$store.state[t.name]),t.$store.unregisterModule(t.name)),t.$store.registerModule(t.name,e)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e={page:t.opts.initialPage?t.opts.initialPage:1,limit:t.opts.perPage,count:"server"==t.source?0:t.data.length,columns:t.columns,data:"client"==t.source?t.data:[],query:t.initQuery(),customQueries:t.initCustomFilters(),sortBy:!(!t.opts.orderBy||!t.opts.orderBy.column)&&t.opts.orderBy.column,ascending:!t.opts.orderBy||!t.opts.orderBy.hasOwnProperty("ascending")||t.opts.orderBy.ascending};if(void 0!==t.$store.state[t.name])return(0,i.default)(!0,t.$store.state[t.name],e);return e};var n,i=(n=r(0))&&n.__esModule?n:{default:n}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e,r,n="server"==t.source?(o(e={},"".concat(t.name,"/SET_DATA"),(function(e,r){var n=t.opts.responseAdapter.call(t,r);e.data=n.data,e.count=parseInt(n.count)})),o(e,"".concat(t.name,"/LOADING"),(function(t,e){})),o(e,"".concat(t.name,"/LOADED"),(function(t,e){})),o(e,"".concat(t.name,"/ERROR"),(function(t,e){})),o(e,"".concat(t.name,"/SET_COUNT"),(function(t,e){t.count=e})),e):o({},"".concat(t.name,"/SET_COUNT"),(function(t,e){t.count=e}));return i.default.recursive(!0,(o(r={},"".concat(t.name,"/PAGINATE"),(function(e,r){e.page=r,t.updateState("page",r),"server"==t.source&&t.getData(),t.commit("PAGINATION",r)})),o(r,"".concat(t.name,"/SET_FILTER"),(function(e,r){e.page=1,t.updateState("page",1),e.query=r,"server"==t.source&&t.getData()})),o(r,"".concat(t.name,"/PAGINATION"),(function(t,e){})),o(r,"".concat(t.name,"/SET_CUSTOM_FILTER"),(function(e,r){var n=r.filter,i=r.value;e.customQueries[n]=i,e.page=1,t.updateState("page",1),t.updateState("customQueries",e.customQueries),"server"==t.source&&t.getData()})),o(r,"".concat(t.name,"/SET_STATE"),(function(t,e){var r=e.page,n=e.query,i=e.customQueries,o=e.limit,s=e.orderBy;t.customQueries=i,t.query=n,t.page=r,t.limit=o,t.ascending=s.ascending,t.sortBy=s.column})),o(r,"".concat(t.name,"/SET_LIMIT"),(function(e,r){e.page=1,t.updateState("page",1),e.limit=r,"server"==t.source&&t.getData()})),o(r,"".concat(t.name,"/SORT"),(function(e,r){var n=r.column,i=r.ascending;e.ascending=i,e.sortBy=n,"server"==t.source&&t.getData()})),o(r,"".concat(t.name,"/SORTED"),(function(t,e){})),o(r,"".concat(t.name,"/ROW_CLICK"),(function(t,e){})),o(r,"".concat(t.name,"/FILTER"),(function(t,e){})),o(r,"".concat(t.name,"/LIMIT"),(function(t,e){})),o(r,"".concat(t.name,"/INPUT"),(function(t,e){})),o(r,"".concat(t.name,"/UPDATE"),(function(t,e){})),r),n)};var n,i=(n=r(0))&&n.__esModule?n:{default:n};function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){"use strict";t.exports=function(){return this.opts.filterByColumn?JSON.stringify(this.query):this.query}},function(t,e,r){"use strict";t.exports=function(){return JSON.stringify(this.customQueries)}},function(t,e,r){"use strict";var n=r(8);t.exports=function(){var t=n(this.tableData),e=this.orderBy.column;t=this.search(t),e?(this.time&&(this.time=this.time),t=this.opts.sortingAlgorithm.call(this,t,e||this.opts.groupBy)):this.opts.groupBy&&(t=this.opts.sortingAlgorithm.call(this,t,this.opts.groupBy)),this.vuex?this.count!=t.length&&this.commit("SET_COUNT",t.length):this.count=t.length;var r=(this.page-1)*this.limit;return this.allFilteredData=JSON.parse(JSON.stringify(t)),t.splice(r,this.limit)}},function(t,e,r){"use strict";t.exports=function(){this.data.forEach(function(t,e){this.opts.dateColumns.forEach(function(e){t[e]=t[e]?moment(t[e],this.opts.toMomentFormat):""}.bind(this))}.bind(this))}},function(t,e,r){"use strict";var n,i=(n=r(1))&&n.__esModule?n:{default:n};t.exports=function(){var t=this,e="vue-tables";this.name&&(e+="."+this.name),this.opts.customFilters.forEach((function(r){i.default.$off("".concat(e,".filter::").concat(r.name)),i.default.$on("".concat(e,".filter::").concat(r.name),(function(e){t.customQueries[r.name]=e,t.updateState("customQueries",t.customQueries)}))}))}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=r(168),o=r(6),s=r(169);t.exports=function(t,e){if(e){var r=this.query;this.setPage(1,!0);var a=this.getName(e.target.name),u="object"===n(e.target.value)?e.target.value:""+e.target.value;a?r[a]=u:r=u,this.vuex?this.commit("SET_FILTER",r):this.query=r,this.updateState("query",r),a?(this.dispatch("filter",{name:a,value:u}),this.dispatch("filter::".concat(a),u)):this.dispatch("filter",u)}var l,c,h,f,d,p=this.query,m=p?1:0;if(!this.opts)return t;this.opts.filterByColumn&&(m=i(p));t=s(t,this.opts.customFilters,this.customQueries);return m?t.filter(function(t,e){return l=0,this.filterableColumns.forEach(function(e){f=this.opts.dateColumns.indexOf(e)>-1&&this.opts.filterByColumn,d=this.isListFilter(e)&&this.opts.filterByColumn,h=this.dateFormat(e),u=this._getValue(t,e),o(u)&&!f&&(u=u.format(h)),(c=function(t){return t?"string"==typeof t?t.toLowerCase():t:""}(c=this.opts.filterByColumn?p[e]:p))&&(this.opts.filterAlgorithm[e]?this.opts.filterAlgorithm[e].call(this.$parent.$parent,t,this.opts.filterByColumn?p[e]:p)&&l++:function t(e,r,i){["string","number","boolean"].indexOf(n(r))>-1&&(r=String(r).toLowerCase());if(i)return r==e;if("string"==typeof r)return r.indexOf(e)>-1;if(o(r)){var s=moment(e.start,"YYYY-MM-DD HH:mm:ss"),a=moment(e.end,"YYYY-MM-DD HH:mm:ss");return r>=s&&r<=a}if("object"===n(r)){for(var u in r)if(t(e,r[u]))return!0;return!1}return r>=s&&r<=a}(c,u,d)&&l++)}.bind(this)),l>=m}.bind(this)):t}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){var e=0;for(var r in t){("object"==n(t[r])||t[r]&&(!isNaN(t[r])||t[r].trim()))&&e++}return e}},function(t,e,r){"use strict";t.exports=function(t,e,r){var n;return t.filter((function(t){return n=!0,e.forEach((function(e){var i=r[e.name];i&&!e.callback(t,i)&&(n=!1)})),n}))}},function(t,e,r){"use strict";t.exports=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,n=this.defaultSort,i=this.userMultiSorting[this.currentlySorting.column]?this.userMultiSorting[this.currentlySorting.column]:this.opts.multiSorting[this.currentlySorting.column],o=this.currentlySorting.ascending,s=this;return function(a,u){var l,c=s._getValue(a,t)||"",h=s._getValue(u,t)||"",f=e?1:-1;if("string"==typeof c&&(c=c.toLowerCase()),"string"==typeof h&&(h=h.toLowerCase()),c===h&&i&&i[r+1]){var d=i[r+1];return l=void 0!==d.ascending?d.ascending:d.matchDir?o:!o,n(d.column,l,r+1)(a,u)}return c>h?f:-f}}},function(t,e,r){"use strict";t.exports=function(t){if(this.$parent.$scopedSlots&&this.$parent.$scopedSlots.__group_meta){var e=this.opts.groupMeta.find((function(e){return e.value===t}));return e?this.$parent.$scopedSlots.__group_meta(e):""}return""}},function(t,e,r){"use strict";var n=c(r(0)),i=c(r(9)),o=c(r(2)),s=c(r(3)),a=c(r(4)),u=c(r(10)),l=c(r(173));function c(t){return t&&t.__esModule?t:{default:t}}var h=r(17),f=r(18),d=r(19),p={bootstrap3:r(20)(),bootstrap4:r(21)(),bulma:r(22)()};e.install=function(t,e,c){var m=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"bootstrap3",g=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},v=c?(0,o.default)("server"):(0,s.default)(),y=n.default.recursive(!0,(0,a.default)(),{name:"r-l-server-table",render:r(23),props:{columns:{type:Array,required:!0},url:{type:String},name:{type:String,required:!1},options:{type:Object,required:!1,default:function(){return{}}}},provide:d,created:function(){if(!this.opts.requestFunction&&!this.url)throw'vue-tables-2: you must provide either a "url" prop or a custom request function. Aborting';f(this),this.vuex||(this.query=this.initQuery(),this.initOrderBy(),this.customQueries=this.initCustomFilters()),this.opts.sendInitialRequest&&(this.loadState(),this.getData(!0).then(function(t){void 0!==t&&(this.setData(t),this.loading=!1,this.hasDateFilters()&&setTimeout(function(){this.initDateFilters()}.bind(this),0))}.bind(this)))},mounted:function(){this._setFiltersDOM(this.query),this.opts.resizableColumns&&(0,u.default)(this.$el.querySelector("table"),this.hasChildRow,this.opts.childRowTogglerFirst,this.opts.resizableColumns),this.vuex||(this.registerServerFilters(),this.options.initialPage&&this.setPage(this.options.initialPage,!0))},data:function(){return n.default.recursive(h(),{source:"server",loading:!0,lastKeyStrokeAt:!1,globalOptions:e,componentsOverride:g,theme:"string"==typeof m?p[m]:m()},(0,i.default)(c,"server",this.options.initialPage))},methods:{refresh:r(174),getData:r(175),setData:r(176),serverSearch:r(5),registerServerFilters:r(177),loadState:function(){var t=this;if(this.opts.saveState){if(!this.storage.getItem(this.stateKey))return this.initState(),void(this.activeState=!0);var e=JSON.parse(this.storage.getItem(this.stateKey));this.vuex?this.commit("SET_STATE",{query:e.query,customQueries:e.customQueries,page:e.page,limit:e.perPage,orderBy:e.orderBy}):(this.page=e.page,this.query=e.query,this.customQueries=e.customQueries,this.limit=e.perPage,this.orderBy=e.orderBy),!this.opts.pagination.dropdown&&this.$refs.pagination&&setTimeout((function(){t.$refs.pagination.Page=e.page}),0),this.opts.filterable&&setTimeout((function(){t._setFiltersDOM(e.query)}),0),this.activeState=!0}}},watch:{url:function(){this.refresh()}},computed:{totalPages:r(24),filteredQuery:r(178),hasMultiSort:function(){return this.opts.serverMultiSorting}}},v);return t.component("r-l-server-table",y),t.component("v-server-table",l.default),l.default}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(r(11)),i=l(r(12)),o=l(r(13)),s=l(r(14)),a=l(r(15)),u=l(r(16));function l(t){return t&&t.__esModule?t:{default:t}}var c={name:"VtServerTable",components:{VtPerPageSelector:n.default,VtTable:i.default,VtPagination:o.default,VtDropdownPagination:s.default,VtColumnsDropdown:u.default,VtGenericFilter:a.default},props:{columns:{type:Array,required:!0},url:{type:String,required:!1},name:{type:String,required:!1},options:{type:Object,required:!1,default:function(){return{}}}},computed:{customQueries:{get:function(){return this.$refs.table.customQueries},set:function(t){this.$refs.table.customQueries=t}},data:function(){return this.$refs.table.tableData}},methods:{refresh:function(){this.$refs.table.refresh()},getData:function(){return this.$refs.table.getData()},setFilter:function(t){this.$refs.table.setFilter(t)},setPage:function(t){this.$refs.table.setPage(t)},setOrder:function(t,e){this.$refs.table.setOrder(t,e)},toggleChildRow:function(t){this.$refs.table.toggleChildRow(t)},getOpenChildRows:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.$refs.table.getOpenChildRows(t)},getResponseData:function(t){return this.$refs.table.getResponseData(t)},resetQuery:function(){this.$refs.table.resetQuery()}},provide:function(){var t=this;return{scopedSlots:function(){return t.$scopedSlots},slots:function(){return t.$slots}}},model:{prop:"data"},render:function(t){return t("r-l-server-table",{attrs:{url:this.url,columns:this.columns,name:this.name,options:this.options},ref:"table",scopedSlots:{default:function(e){return e.override?t(e.override,{attrs:{props:e}}):t("div",{class:"VueTables VueTables--"+e.source},[t("div",{class:e.theme.row},[t("div",{class:e.theme.column},[!e.opts.filterByColumn&&e.opts.filterable?t("div",{class:"".concat(e.theme.field," ").concat(e.theme.inline," ").concat(e.theme.left," VueTables__search")},[e.slots.beforeFilter,t("vt-generic-filter"),e.slots.afterFilter]):"",e.slots.afterFilterWrapper,e.perPageValues.length>1?t("div",{class:"".concat(e.theme.field," ").concat(e.theme.inline," ").concat(e.theme.right," VueTables__limit")},[e.slots.beforeLimit,t("vt-per-page-selector"),e.slots.afterLimit]):"",e.opts.pagination.dropdown&&e.totalPages>1?t("div",{class:"VueTables__pagination-wrapper"},[t("div",{class:"".concat(e.theme.field," ").concat(e.theme.inline," ").concat(e.theme.right," VueTables__dropdown-pagination")},[t("vt-dropdown-pagination")])]):"",e.opts.columnsDropdown?t("div",{class:"VueTables__columns-dropdown-wrapper ".concat(e.theme.right," ").concat(e.theme.dropdown.container)},[t("vt-columns-dropdown")]):""])]),e.slots.beforeTable,t("div",{class:"table-responsive"},[t("vt-table",{ref:"vt_table"})]),e.slots.afterTable,t("vt-pagination")])}}})}};e.default=c},function(t,e,r){"use strict";t.exports=function(){this.serverSearch()}},function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i=r(0);t.exports=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=this.opts.requestKeys,a=(n(e={},s.query,this.filteredQuery),n(e,s.limit,this.limit),n(e,s.ascending,this.orderBy.ascending?1:0),n(e,s.page,parseInt(this.page)),n(e,s.byColumn,this.opts.filterByColumn?1:0),e);this.orderBy.hasOwnProperty("column")&&this.orderBy.column&&(a[s.orderBy]=this.orderBy.column),a=i(a,this.opts.params,this.customQueries,r),this.hasMultiSort&&this.orderBy.column&&this.userMultiSorting[this.orderBy.column]&&(a.multiSort=this.userMultiSorting[this.orderBy.column]),a=this.opts.requestAdapter(a),o&&this.dispatch("loading",a);var u=this.sendRequest(a);return t?u:u.then(function(t){return void 0!==t&&(this.loading=!1,this.setData(t))}.bind(this))}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){var e=this.opts.responseAdapter.call(this,t);if(this.data=e.data,isNaN(e.count))throw console.error("vue-tables-2: invalid 'count' property. Expected number, got ".concat(n(e.count))),console.error("count equals",e.count),new Error;this.count=parseInt(e.count),setTimeout(function(){this.dispatch("loaded",t)}.bind(this),0)}},function(t,e,r){"use strict";var n,i=(n=r(1))&&n.__esModule?n:{default:n};t.exports=function(){var t="vue-tables";this.name&&(t+="."+this.name),this.opts.customFilters.forEach(function(e){i.default.$off("".concat(t,".filter::").concat(e)),i.default.$on("".concat(t,".filter::").concat(e),function(t){this.customQueries[e]=t,this.updateState("customQueries",this.customQueries),this.refresh()}.bind(this))}.bind(this))}},function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(){if("object"!==n(this.query)||this.opts.sendEmptyFilters)return this.query;var t={};for(var e in this.query)""!==this.query[e]&&this.filterable(e)&&(t[e]=this.query[e]);return t}}]); \ No newline at end of file diff --git a/dist/vue-tables.js b/dist/vue-tables.js index 24c2fa77..849cec77 100644 --- a/dist/vue-tables.js +++ b/dist/vue-tables.js @@ -131,7 +131,7 @@ eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _VtPerPageSelector = _interopRequireDefault(__webpack_require__(/*! ./VtPerPageSelector */ \"./lib/components/VtPerPageSelector.jsx\"));\n\nvar _VtTable = _interopRequireDefault(__webpack_require__(/*! ./VtTable */ \"./lib/components/VtTable.jsx\"));\n\nvar _VtPagination = _interopRequireDefault(__webpack_require__(/*! ./VtPagination */ \"./lib/components/VtPagination.jsx\"));\n\nvar _VtDropdownPagination = _interopRequireDefault(__webpack_require__(/*! ./VtDropdownPagination */ \"./lib/components/VtDropdownPagination.jsx\"));\n\nvar _VtGenericFilter = _interopRequireDefault(__webpack_require__(/*! ./VtGenericFilter */ \"./lib/components/VtGenericFilter.jsx\"));\n\nvar _VtColumnsDropdown = _interopRequireDefault(__webpack_require__(/*! ./VtColumnsDropdown */ \"./lib/components/VtColumnsDropdown.jsx\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default2 = {\n name: 'VtClientTable',\n components: {\n VtPerPageSelector: _VtPerPageSelector[\"default\"],\n VtTable: _VtTable[\"default\"],\n VtPagination: _VtPagination[\"default\"],\n VtDropdownPagination: _VtDropdownPagination[\"default\"],\n VtColumnsDropdown: _VtColumnsDropdown[\"default\"],\n VtGenericFilter: _VtGenericFilter[\"default\"]\n },\n props: {\n columns: {\n type: Array,\n required: true\n },\n data: {\n type: Array,\n required: true\n },\n name: {\n type: String,\n required: false\n },\n options: {\n type: Object,\n required: false,\n \"default\": function _default() {\n return {};\n }\n }\n },\n methods: {\n setFilter: function setFilter(val) {\n this.$refs.table.setFilter(val);\n },\n setPage: function setPage(val) {\n this.$refs.table.setPage(val);\n },\n setOrder: function setOrder(column, asc) {\n this.$refs.table.setOrder(column, asc);\n },\n toggleChildRow: function toggleChildRow(rowId) {\n this.$refs.table.toggleChildRow(rowId);\n },\n getOpenChildRows: function getOpenChildRows() {\n var rows = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n return this.$refs.table.getOpenChildRows(rows);\n }\n },\n computed: {\n filteredData: function filteredData() {\n return this.$refs.table.filteredData;\n },\n allFilteredData: function allFilteredData() {\n return this.$refs.table.allFilteredData;\n }\n },\n provide: function provide() {\n var _this = this;\n\n return {\n scopedSlots: function scopedSlots() {\n return _this.$scopedSlots;\n },\n slots: function slots() {\n return _this.$slots;\n }\n };\n },\n model: {\n prop: \"data\"\n },\n render: function render(h) {\n return h(\"r-l-client-table\", {\n attrs: {\n data: this.data,\n columns: this.columns,\n name: this.name,\n options: this.options\n },\n ref: \"table\",\n scopedSlots: {\n \"default\": function _default(props) {\n return props.override ? h(props.override, {\n attrs: {\n props: props\n }\n }) : h(\"div\", {\n \"class\": \"VueTables VueTables--\" + props.source\n }, [h(\"div\", {\n \"class\": props.theme.row\n }, [h(\"div\", {\n \"class\": props.theme.column\n }, [!props.opts.filterByColumn && props.opts.filterable ? h(\"div\", {\n \"class\": \"\".concat(props.theme.field, \" \").concat(props.theme.inline, \" \").concat(props.theme.left, \" VueTables__search\")\n }, [props.slots.beforeFilter, h(\"vt-generic-filter\"), props.slots.afterFilter]) : '', props.slots.afterFilterWrapper, props.perPageValues.length > 1 ? h(\"div\", {\n \"class\": \"\".concat(props.theme.field, \" \").concat(props.theme.inline, \" \").concat(props.theme.right, \" VueTables__limit\")\n }, [props.slots.beforeLimit, h(\"vt-per-page-selector\"), props.slots.afterLimit]) : '', props.opts.pagination.dropdown && props.totalPages > 1 ? h(\"div\", {\n \"class\": \"VueTables__pagination-wrapper\"\n }, [h(\"div\", {\n \"class\": \"\".concat(props.theme.field, \" \").concat(props.theme.inline, \" \").concat(props.theme.right, \" VueTables__dropdown-pagination\")\n }, [h(\"vt-dropdown-pagination\")])]) : '', props.opts.columnsDropdown ? h(\"div\", {\n \"class\": \"VueTables__columns-dropdown-wrapper \".concat(props.theme.right, \" \").concat(props.theme.dropdown.container)\n }, [h(\"vt-columns-dropdown\")]) : ''])]), props.slots.beforeTable, h(\"div\", {\n \"class\": \"table-responsive\"\n }, [h(\"vt-table\", {\n ref: \"vt_table\"\n })]), props.slots.afterTable, h(\"vt-pagination\")]);\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtClientTable.jsx?"); +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _VtPerPageSelector = _interopRequireDefault(__webpack_require__(/*! ./VtPerPageSelector */ \"./lib/components/VtPerPageSelector.jsx\"));\n\nvar _VtTable = _interopRequireDefault(__webpack_require__(/*! ./VtTable */ \"./lib/components/VtTable.jsx\"));\n\nvar _VtPagination = _interopRequireDefault(__webpack_require__(/*! ./VtPagination */ \"./lib/components/VtPagination.jsx\"));\n\nvar _VtDropdownPagination = _interopRequireDefault(__webpack_require__(/*! ./VtDropdownPagination */ \"./lib/components/VtDropdownPagination.jsx\"));\n\nvar _VtGenericFilter = _interopRequireDefault(__webpack_require__(/*! ./VtGenericFilter */ \"./lib/components/VtGenericFilter.jsx\"));\n\nvar _VtColumnsDropdown = _interopRequireDefault(__webpack_require__(/*! ./VtColumnsDropdown */ \"./lib/components/VtColumnsDropdown.jsx\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default2 = {\n name: 'VtClientTable',\n components: {\n VtPerPageSelector: _VtPerPageSelector[\"default\"],\n VtTable: _VtTable[\"default\"],\n VtPagination: _VtPagination[\"default\"],\n VtDropdownPagination: _VtDropdownPagination[\"default\"],\n VtColumnsDropdown: _VtColumnsDropdown[\"default\"],\n VtGenericFilter: _VtGenericFilter[\"default\"]\n },\n props: {\n columns: {\n type: Array,\n required: true\n },\n data: {\n type: Array,\n required: true\n },\n name: {\n type: String,\n required: false\n },\n options: {\n type: Object,\n required: false,\n \"default\": function _default() {\n return {};\n }\n }\n },\n methods: {\n setFilter: function setFilter(val) {\n this.$refs.table.setFilter(val);\n },\n setPage: function setPage(val) {\n this.$refs.table.setPage(val);\n },\n setOrder: function setOrder(column, asc) {\n this.$refs.table.setOrder(column, asc);\n },\n toggleChildRow: function toggleChildRow(rowId) {\n this.$refs.table.toggleChildRow(rowId);\n },\n getOpenChildRows: function getOpenChildRows() {\n var rows = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n return this.$refs.table.getOpenChildRows(rows);\n },\n resetQuery: function resetQuery() {\n this.$refs.table.resetQuery();\n }\n },\n computed: {\n filteredData: function filteredData() {\n return this.$refs.table.filteredData;\n },\n allFilteredData: function allFilteredData() {\n return this.$refs.table.allFilteredData;\n }\n },\n provide: function provide() {\n var _this = this;\n\n return {\n scopedSlots: function scopedSlots() {\n return _this.$scopedSlots;\n },\n slots: function slots() {\n return _this.$slots;\n }\n };\n },\n model: {\n prop: \"data\"\n },\n render: function render(h) {\n return h(\"r-l-client-table\", {\n attrs: {\n data: this.data,\n columns: this.columns,\n name: this.name,\n options: this.options\n },\n ref: \"table\",\n scopedSlots: {\n \"default\": function _default(props) {\n return props.override ? h(props.override, {\n attrs: {\n props: props\n }\n }) : h(\"div\", {\n \"class\": \"VueTables VueTables--\" + props.source\n }, [h(\"div\", {\n \"class\": props.theme.row\n }, [h(\"div\", {\n \"class\": props.theme.column\n }, [!props.opts.filterByColumn && props.opts.filterable ? h(\"div\", {\n \"class\": \"\".concat(props.theme.field, \" \").concat(props.theme.inline, \" \").concat(props.theme.left, \" VueTables__search\")\n }, [props.slots.beforeFilter, h(\"vt-generic-filter\"), props.slots.afterFilter]) : '', props.slots.afterFilterWrapper, props.perPageValues.length > 1 ? h(\"div\", {\n \"class\": \"\".concat(props.theme.field, \" \").concat(props.theme.inline, \" \").concat(props.theme.right, \" VueTables__limit\")\n }, [props.slots.beforeLimit, h(\"vt-per-page-selector\"), props.slots.afterLimit]) : '', props.opts.pagination.dropdown && props.totalPages > 1 ? h(\"div\", {\n \"class\": \"VueTables__pagination-wrapper\"\n }, [h(\"div\", {\n \"class\": \"\".concat(props.theme.field, \" \").concat(props.theme.inline, \" \").concat(props.theme.right, \" VueTables__dropdown-pagination\")\n }, [h(\"vt-dropdown-pagination\")])]) : '', props.opts.columnsDropdown ? h(\"div\", {\n \"class\": \"VueTables__columns-dropdown-wrapper \".concat(props.theme.right, \" \").concat(props.theme.dropdown.container)\n }, [h(\"vt-columns-dropdown\")]) : ''])]), props.slots.beforeTable, h(\"div\", {\n \"class\": \"table-responsive\"\n }, [h(\"vt-table\", {\n ref: \"vt_table\"\n })]), props.slots.afterTable, h(\"vt-pagination\")]);\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtClientTable.jsx?"); /***/ }), @@ -275,7 +275,7 @@ eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _VtPerPageSelector = _interopRequireDefault(__webpack_require__(/*! ./VtPerPageSelector */ \"./lib/components/VtPerPageSelector.jsx\"));\n\nvar _VtTable = _interopRequireDefault(__webpack_require__(/*! ./VtTable */ \"./lib/components/VtTable.jsx\"));\n\nvar _VtPagination = _interopRequireDefault(__webpack_require__(/*! ./VtPagination */ \"./lib/components/VtPagination.jsx\"));\n\nvar _VtDropdownPagination = _interopRequireDefault(__webpack_require__(/*! ./VtDropdownPagination */ \"./lib/components/VtDropdownPagination.jsx\"));\n\nvar _VtGenericFilter = _interopRequireDefault(__webpack_require__(/*! ./VtGenericFilter */ \"./lib/components/VtGenericFilter.jsx\"));\n\nvar _VtColumnsDropdown = _interopRequireDefault(__webpack_require__(/*! ./VtColumnsDropdown */ \"./lib/components/VtColumnsDropdown.jsx\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default2 = {\n name: 'VtServerTable',\n components: {\n VtPerPageSelector: _VtPerPageSelector[\"default\"],\n VtTable: _VtTable[\"default\"],\n VtPagination: _VtPagination[\"default\"],\n VtDropdownPagination: _VtDropdownPagination[\"default\"],\n VtColumnsDropdown: _VtColumnsDropdown[\"default\"],\n VtGenericFilter: _VtGenericFilter[\"default\"]\n },\n props: {\n columns: {\n type: Array,\n required: true\n },\n url: {\n type: String,\n required: false\n },\n name: {\n type: String,\n required: false\n },\n options: {\n type: Object,\n required: false,\n \"default\": function _default() {\n return {};\n }\n }\n },\n computed: {\n customQueries: {\n get: function get() {\n return this.$refs.table.customQueries;\n },\n set: function set(val) {\n this.$refs.table.customQueries = val;\n }\n },\n data: function data() {\n return this.$refs.table.tableData;\n }\n },\n methods: {\n refresh: function refresh() {\n this.$refs.table.refresh();\n },\n getData: function getData() {\n return this.$refs.table.getData();\n },\n setFilter: function setFilter(val) {\n this.$refs.table.setFilter(val);\n },\n setPage: function setPage(val) {\n this.$refs.table.setPage(val);\n },\n setOrder: function setOrder(column, asc) {\n this.$refs.table.setOrder(column, asc);\n },\n toggleChildRow: function toggleChildRow(rowId) {\n this.$refs.table.toggleChildRow(rowId);\n },\n getOpenChildRows: function getOpenChildRows() {\n var rows = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n return this.$refs.table.getOpenChildRows(rows);\n },\n getResponseData: function getResponseData(response) {\n return this.$refs.table.getResponseData(response);\n }\n },\n provide: function provide() {\n var _this = this;\n\n return {\n scopedSlots: function scopedSlots() {\n return _this.$scopedSlots;\n },\n slots: function slots() {\n return _this.$slots;\n }\n };\n },\n model: {\n prop: \"data\"\n },\n render: function render(h) {\n return h(\"r-l-server-table\", {\n attrs: {\n url: this.url,\n columns: this.columns,\n name: this.name,\n options: this.options\n },\n ref: \"table\",\n scopedSlots: {\n \"default\": function _default(props) {\n return props.override ? h(props.override, {\n attrs: {\n props: props\n }\n }) : h(\"div\", {\n \"class\": \"VueTables VueTables--\" + props.source\n }, [h(\"div\", {\n \"class\": props.theme.row\n }, [h(\"div\", {\n \"class\": props.theme.column\n }, [!props.opts.filterByColumn && props.opts.filterable ? h(\"div\", {\n \"class\": \"\".concat(props.theme.field, \" \").concat(props.theme.inline, \" \").concat(props.theme.left, \" VueTables__search\")\n }, [props.slots.beforeFilter, h(\"vt-generic-filter\"), props.slots.afterFilter]) : '', props.slots.afterFilterWrapper, props.perPageValues.length > 1 ? h(\"div\", {\n \"class\": \"\".concat(props.theme.field, \" \").concat(props.theme.inline, \" \").concat(props.theme.right, \" VueTables__limit\")\n }, [props.slots.beforeLimit, h(\"vt-per-page-selector\"), props.slots.afterLimit]) : '', props.opts.pagination.dropdown && props.totalPages > 1 ? h(\"div\", {\n \"class\": \"VueTables__pagination-wrapper\"\n }, [h(\"div\", {\n \"class\": \"\".concat(props.theme.field, \" \").concat(props.theme.inline, \" \").concat(props.theme.right, \" VueTables__dropdown-pagination\")\n }, [h(\"vt-dropdown-pagination\")])]) : '', props.opts.columnsDropdown ? h(\"div\", {\n \"class\": \"VueTables__columns-dropdown-wrapper \".concat(props.theme.right, \" \").concat(props.theme.dropdown.container)\n }, [h(\"vt-columns-dropdown\")]) : ''])]), props.slots.beforeTable, h(\"div\", {\n \"class\": \"table-responsive\"\n }, [h(\"vt-table\", {\n ref: \"vt_table\"\n })]), props.slots.afterTable, h(\"vt-pagination\")]);\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtServerTable.jsx?"); +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _VtPerPageSelector = _interopRequireDefault(__webpack_require__(/*! ./VtPerPageSelector */ \"./lib/components/VtPerPageSelector.jsx\"));\n\nvar _VtTable = _interopRequireDefault(__webpack_require__(/*! ./VtTable */ \"./lib/components/VtTable.jsx\"));\n\nvar _VtPagination = _interopRequireDefault(__webpack_require__(/*! ./VtPagination */ \"./lib/components/VtPagination.jsx\"));\n\nvar _VtDropdownPagination = _interopRequireDefault(__webpack_require__(/*! ./VtDropdownPagination */ \"./lib/components/VtDropdownPagination.jsx\"));\n\nvar _VtGenericFilter = _interopRequireDefault(__webpack_require__(/*! ./VtGenericFilter */ \"./lib/components/VtGenericFilter.jsx\"));\n\nvar _VtColumnsDropdown = _interopRequireDefault(__webpack_require__(/*! ./VtColumnsDropdown */ \"./lib/components/VtColumnsDropdown.jsx\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default2 = {\n name: 'VtServerTable',\n components: {\n VtPerPageSelector: _VtPerPageSelector[\"default\"],\n VtTable: _VtTable[\"default\"],\n VtPagination: _VtPagination[\"default\"],\n VtDropdownPagination: _VtDropdownPagination[\"default\"],\n VtColumnsDropdown: _VtColumnsDropdown[\"default\"],\n VtGenericFilter: _VtGenericFilter[\"default\"]\n },\n props: {\n columns: {\n type: Array,\n required: true\n },\n url: {\n type: String,\n required: false\n },\n name: {\n type: String,\n required: false\n },\n options: {\n type: Object,\n required: false,\n \"default\": function _default() {\n return {};\n }\n }\n },\n computed: {\n customQueries: {\n get: function get() {\n return this.$refs.table.customQueries;\n },\n set: function set(val) {\n this.$refs.table.customQueries = val;\n }\n },\n data: function data() {\n return this.$refs.table.tableData;\n }\n },\n methods: {\n refresh: function refresh() {\n this.$refs.table.refresh();\n },\n getData: function getData() {\n return this.$refs.table.getData();\n },\n setFilter: function setFilter(val) {\n this.$refs.table.setFilter(val);\n },\n setPage: function setPage(val) {\n this.$refs.table.setPage(val);\n },\n setOrder: function setOrder(column, asc) {\n this.$refs.table.setOrder(column, asc);\n },\n toggleChildRow: function toggleChildRow(rowId) {\n this.$refs.table.toggleChildRow(rowId);\n },\n getOpenChildRows: function getOpenChildRows() {\n var rows = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n return this.$refs.table.getOpenChildRows(rows);\n },\n getResponseData: function getResponseData(response) {\n return this.$refs.table.getResponseData(response);\n },\n resetQuery: function resetQuery() {\n this.$refs.table.resetQuery();\n }\n },\n provide: function provide() {\n var _this = this;\n\n return {\n scopedSlots: function scopedSlots() {\n return _this.$scopedSlots;\n },\n slots: function slots() {\n return _this.$slots;\n }\n };\n },\n model: {\n prop: \"data\"\n },\n render: function render(h) {\n return h(\"r-l-server-table\", {\n attrs: {\n url: this.url,\n columns: this.columns,\n name: this.name,\n options: this.options\n },\n ref: \"table\",\n scopedSlots: {\n \"default\": function _default(props) {\n return props.override ? h(props.override, {\n attrs: {\n props: props\n }\n }) : h(\"div\", {\n \"class\": \"VueTables VueTables--\" + props.source\n }, [h(\"div\", {\n \"class\": props.theme.row\n }, [h(\"div\", {\n \"class\": props.theme.column\n }, [!props.opts.filterByColumn && props.opts.filterable ? h(\"div\", {\n \"class\": \"\".concat(props.theme.field, \" \").concat(props.theme.inline, \" \").concat(props.theme.left, \" VueTables__search\")\n }, [props.slots.beforeFilter, h(\"vt-generic-filter\"), props.slots.afterFilter]) : '', props.slots.afterFilterWrapper, props.perPageValues.length > 1 ? h(\"div\", {\n \"class\": \"\".concat(props.theme.field, \" \").concat(props.theme.inline, \" \").concat(props.theme.right, \" VueTables__limit\")\n }, [props.slots.beforeLimit, h(\"vt-per-page-selector\"), props.slots.afterLimit]) : '', props.opts.pagination.dropdown && props.totalPages > 1 ? h(\"div\", {\n \"class\": \"VueTables__pagination-wrapper\"\n }, [h(\"div\", {\n \"class\": \"\".concat(props.theme.field, \" \").concat(props.theme.inline, \" \").concat(props.theme.right, \" VueTables__dropdown-pagination\")\n }, [h(\"vt-dropdown-pagination\")])]) : '', props.opts.columnsDropdown ? h(\"div\", {\n \"class\": \"VueTables__columns-dropdown-wrapper \".concat(props.theme.right, \" \").concat(props.theme.dropdown.container)\n }, [h(\"vt-columns-dropdown\")]) : ''])]), props.slots.beforeTable, h(\"div\", {\n \"class\": \"table-responsive\"\n }, [h(\"vt-table\", {\n ref: \"vt_table\"\n })]), props.slots.afterTable, h(\"vt-pagination\")]);\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtServerTable.jsx?"); /***/ }), @@ -2003,7 +2003,7 @@ eval("\n\nmodule.exports = function () {\n return {\n framework: 'bulma',\n /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nvar _vuex = _interopRequireDefault(__webpack_require__(/*! ./state/vuex */ \"./lib/state/vuex.js\"));\n\nvar _normal = _interopRequireDefault(__webpack_require__(/*! ./state/normal */ \"./lib/state/normal.js\"));\n\nvar _merge = _interopRequireDefault(__webpack_require__(/*! merge */ \"./node_modules/merge/merge.js\"));\n\nvar _table = _interopRequireDefault(__webpack_require__(/*! ./table */ \"./lib/table.js\"));\n\nvar _data2 = _interopRequireDefault(__webpack_require__(/*! ./state/data */ \"./lib/state/data.js\"));\n\nvar _resizeableColumns = _interopRequireDefault(__webpack_require__(/*! ./helpers/resizeable-columns */ \"./lib/helpers/resizeable-columns.js\"));\n\nvar _VtClientTable = _interopRequireDefault(__webpack_require__(/*! ./components/VtClientTable.jsx */ \"./lib/components/VtClientTable.jsx\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _data = __webpack_require__(/*! ./mixins/data */ \"./lib/mixins/data.js\");\n\nvar _created = __webpack_require__(/*! ./mixins/created */ \"./lib/mixins/created.js\");\n\nvar provide = __webpack_require__(/*! ./mixins/provide */ \"./lib/mixins/provide.js\");\n\nvar themes = {\n bootstrap3: __webpack_require__(/*! ./themes/bootstrap3 */ \"./lib/themes/bootstrap3.js\")(),\n bootstrap4: __webpack_require__(/*! ./themes/bootstrap4 */ \"./lib/themes/bootstrap4.js\")(),\n bulma: __webpack_require__(/*! ./themes/bulma */ \"./lib/themes/bulma.js\")()\n};\n\nexports.install = function (Vue, globalOptions, useVuex) {\n var theme = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : \"bootstrap3\";\n var componentsOverride = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};\n\n var client = _merge[\"default\"].recursive(true, (0, _table[\"default\"])(), {\n name: \"r-l-client-table\",\n render: __webpack_require__(/*! ./components/renderless/RLDataTable */ \"./lib/components/renderless/RLDataTable.js\"),\n provide: provide,\n props: {\n columns: {\n type: Array,\n required: true\n },\n data: {\n type: Array,\n required: true\n },\n name: {\n type: String,\n required: false\n },\n options: {\n type: Object,\n required: false,\n \"default\": function _default() {\n return {};\n }\n }\n },\n created: function created() {\n _created(this);\n\n if (this.opts.toMomentFormat) this.transformDateStringsToMoment();\n\n if (!this.vuex) {\n this.initOrderBy();\n this.query = this.initQuery();\n this.customQueries = this.initCustomFilters();\n }\n },\n mounted: function mounted() {\n var _this = this;\n\n this._setFiltersDOM(this.query);\n\n if (this.opts.resizableColumns) {\n (0, _resizeableColumns[\"default\"])(this.$el.querySelector(\"table\"), this.hasChildRow, this.opts.childRowTogglerFirst);\n } // this._setColumnsDropdownCloseListener();\n\n\n if (!this.vuex) {\n this.registerClientFilters();\n if (this.options.initialPage) this.setPage(this.options.initialPage);\n }\n\n if (this.opts.groupBy && !this.opts.orderBy) {\n this.orderBy.column = this.opts.groupBy;\n }\n\n this.loadState();\n\n if (this.hasDateFilters()) {\n this.initDateFilters();\n } // listen for data being removed\n // and nav to last page if current page is greater than total pages\n\n\n this.$watch('data', function () {\n if (_this.page > _this.totalPages) {\n _this.setPage(_this.totalPages);\n }\n });\n },\n model: {\n prop: \"data\"\n },\n data: function data() {\n return _merge[\"default\"].recursive(_data(), {\n source: \"client\",\n theme: typeof theme === 'string' ? themes[theme] : theme(),\n globalOptions: globalOptions,\n componentsOverride: componentsOverride,\n currentlySorting: {},\n time: Date.now()\n }, (0, _data2[\"default\"])(useVuex, \"client\", this.options.initialPage));\n },\n computed: {\n q: __webpack_require__(/*! ./computed/q */ \"./lib/computed/q.js\"),\n customQ: __webpack_require__(/*! ./computed/custom-q */ \"./lib/computed/custom-q.js\"),\n totalPages: __webpack_require__(/*! ./computed/total-pages */ \"./lib/computed/total-pages.js\"),\n filteredData: __webpack_require__(/*! ./computed/filtered-data */ \"./lib/computed/filtered-data.js\"),\n hasMultiSort: function hasMultiSort() {\n return this.opts.clientMultiSorting;\n }\n },\n methods: {\n transformDateStringsToMoment: __webpack_require__(/*! ./methods/transform-date-strings-to-moment */ \"./lib/methods/transform-date-strings-to-moment.js\"),\n registerClientFilters: __webpack_require__(/*! ./methods/register-client-filters */ \"./lib/methods/register-client-filters.js\"),\n search: __webpack_require__(/*! ./methods/client-search */ \"./lib/methods/client-search.js\"),\n defaultSort: __webpack_require__(/*! ./methods/default-sort */ \"./lib/methods/default-sort.js\"),\n getGroupSlot: __webpack_require__(/*! ./methods/get-group-slot */ \"./lib/methods/get-group-slot.js\"),\n toggleGroup: function toggleGroup(group, e) {\n e.stopPropagation();\n var i = this.collapsedGroups.indexOf(group);\n\n if (i >= 0) {\n this.collapsedGroups.splice(i, 1);\n } else {\n this.collapsedGroups.push(group);\n }\n },\n groupToggleIcon: function groupToggleIcon(group) {\n var cls = this.opts.sortIcon.base + \" \";\n cls += this.collapsedGroups.indexOf(group) > -1 ? this.opts.sortIcon.down : this.opts.sortIcon.up;\n return cls;\n },\n loadState: function loadState() {\n if (!this.opts.saveState) return;\n\n if (!this.storage.getItem(this.stateKey)) {\n this.initState();\n this.activeState = true;\n return;\n }\n\n var state = JSON.parse(this.storage.getItem(this.stateKey));\n if (this.opts.filterable) this.setFilter(state.query);\n this.setOrder(state.orderBy.column, state.orderBy.ascending);\n\n if (this.vuex) {\n this.commit(\"SET_LIMIT\", state.perPage);\n } else {\n this.limit = state.perPage;\n }\n\n this.setPage(state.page);\n this.activeState = true;\n\n if (state.userControlsColumns) {\n this.userColumnsDisplay = state.userColumnsDisplay;\n this.userControlsColumns = state.userControlsColumns;\n } // TODO: Custom Queries\n\n }\n }\n });\n\n var state = useVuex ? (0, _vuex[\"default\"])() : (0, _normal[\"default\"])();\n client = _merge[\"default\"].recursive(client, state);\n Vue.component(\"r-l-client-table\", client);\n Vue.component(\"v-client-table\", _VtClientTable[\"default\"]);\n return _VtClientTable[\"default\"];\n};\n\n//# sourceURL=webpack://VueTables/./lib/v-client-table.js?"); +eval("\n\nvar _vuex = _interopRequireDefault(__webpack_require__(/*! ./state/vuex */ \"./lib/state/vuex.js\"));\n\nvar _normal = _interopRequireDefault(__webpack_require__(/*! ./state/normal */ \"./lib/state/normal.js\"));\n\nvar _merge = _interopRequireDefault(__webpack_require__(/*! merge */ \"./node_modules/merge/merge.js\"));\n\nvar _table = _interopRequireDefault(__webpack_require__(/*! ./table */ \"./lib/table.js\"));\n\nvar _data2 = _interopRequireDefault(__webpack_require__(/*! ./state/data */ \"./lib/state/data.js\"));\n\nvar _resizeableColumns = _interopRequireDefault(__webpack_require__(/*! ./helpers/resizeable-columns */ \"./lib/helpers/resizeable-columns.js\"));\n\nvar _VtClientTable = _interopRequireDefault(__webpack_require__(/*! ./components/VtClientTable */ \"./lib/components/VtClientTable.jsx\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _data = __webpack_require__(/*! ./mixins/data */ \"./lib/mixins/data.js\");\n\nvar _created = __webpack_require__(/*! ./mixins/created */ \"./lib/mixins/created.js\");\n\nvar provide = __webpack_require__(/*! ./mixins/provide */ \"./lib/mixins/provide.js\");\n\nvar themes = {\n bootstrap3: __webpack_require__(/*! ./themes/bootstrap3 */ \"./lib/themes/bootstrap3.js\")(),\n bootstrap4: __webpack_require__(/*! ./themes/bootstrap4 */ \"./lib/themes/bootstrap4.js\")(),\n bulma: __webpack_require__(/*! ./themes/bulma */ \"./lib/themes/bulma.js\")()\n};\n\nexports.install = function (Vue, globalOptions, useVuex) {\n var theme = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : \"bootstrap3\";\n var componentsOverride = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};\n\n var client = _merge[\"default\"].recursive(true, (0, _table[\"default\"])(), {\n name: \"r-l-client-table\",\n render: __webpack_require__(/*! ./components/renderless/RLDataTable */ \"./lib/components/renderless/RLDataTable.js\"),\n provide: provide,\n props: {\n columns: {\n type: Array,\n required: true\n },\n data: {\n type: Array,\n required: true\n },\n name: {\n type: String,\n required: false\n },\n options: {\n type: Object,\n required: false,\n \"default\": function _default() {\n return {};\n }\n }\n },\n created: function created() {\n _created(this);\n\n if (this.opts.toMomentFormat) this.transformDateStringsToMoment();\n\n if (!this.vuex) {\n this.initOrderBy();\n this.query = this.initQuery();\n this.customQueries = this.initCustomFilters();\n }\n },\n mounted: function mounted() {\n var _this = this;\n\n this._setFiltersDOM(this.query);\n\n if (this.opts.resizableColumns) {\n (0, _resizeableColumns[\"default\"])(this.$el.querySelector(\"table\"), this.hasChildRow, this.opts.childRowTogglerFirst);\n } // this._setColumnsDropdownCloseListener();\n\n\n if (!this.vuex) {\n this.registerClientFilters();\n if (this.options.initialPage) this.setPage(this.options.initialPage);\n }\n\n if (this.opts.groupBy && !this.opts.orderBy) {\n this.orderBy.column = this.opts.groupBy;\n }\n\n this.loadState();\n\n if (this.hasDateFilters()) {\n this.initDateFilters();\n } // listen for data being removed\n // and nav to last page if current page is greater than total pages\n\n\n this.$watch('data', function () {\n if (_this.page > _this.totalPages) {\n _this.setPage(_this.totalPages);\n }\n });\n },\n model: {\n prop: \"data\"\n },\n data: function data() {\n return _merge[\"default\"].recursive(_data(), {\n source: \"client\",\n theme: typeof theme === 'string' ? themes[theme] : theme(),\n globalOptions: globalOptions,\n componentsOverride: componentsOverride,\n currentlySorting: {},\n time: Date.now()\n }, (0, _data2[\"default\"])(useVuex, \"client\", this.options.initialPage));\n },\n computed: {\n q: __webpack_require__(/*! ./computed/q */ \"./lib/computed/q.js\"),\n customQ: __webpack_require__(/*! ./computed/custom-q */ \"./lib/computed/custom-q.js\"),\n totalPages: __webpack_require__(/*! ./computed/total-pages */ \"./lib/computed/total-pages.js\"),\n filteredData: __webpack_require__(/*! ./computed/filtered-data */ \"./lib/computed/filtered-data.js\"),\n hasMultiSort: function hasMultiSort() {\n return this.opts.clientMultiSorting;\n }\n },\n methods: {\n transformDateStringsToMoment: __webpack_require__(/*! ./methods/transform-date-strings-to-moment */ \"./lib/methods/transform-date-strings-to-moment.js\"),\n registerClientFilters: __webpack_require__(/*! ./methods/register-client-filters */ \"./lib/methods/register-client-filters.js\"),\n search: __webpack_require__(/*! ./methods/client-search */ \"./lib/methods/client-search.js\"),\n defaultSort: __webpack_require__(/*! ./methods/default-sort */ \"./lib/methods/default-sort.js\"),\n getGroupSlot: __webpack_require__(/*! ./methods/get-group-slot */ \"./lib/methods/get-group-slot.js\"),\n toggleGroup: function toggleGroup(group, e) {\n e.stopPropagation();\n var i = this.collapsedGroups.indexOf(group);\n\n if (i >= 0) {\n this.collapsedGroups.splice(i, 1);\n } else {\n this.collapsedGroups.push(group);\n }\n },\n groupToggleIcon: function groupToggleIcon(group) {\n var cls = this.opts.sortIcon.base + \" \";\n cls += this.collapsedGroups.indexOf(group) > -1 ? this.opts.sortIcon.down : this.opts.sortIcon.up;\n return cls;\n },\n loadState: function loadState() {\n if (!this.opts.saveState) return;\n\n if (!this.storage.getItem(this.stateKey)) {\n this.initState();\n this.activeState = true;\n return;\n }\n\n var state = JSON.parse(this.storage.getItem(this.stateKey));\n if (this.opts.filterable) this.setFilter(state.query);\n this.setOrder(state.orderBy.column, state.orderBy.ascending);\n\n if (this.vuex) {\n this.commit(\"SET_LIMIT\", state.perPage);\n } else {\n this.limit = state.perPage;\n }\n\n this.setPage(state.page);\n this.activeState = true;\n\n if (state.userControlsColumns) {\n this.userColumnsDisplay = state.userColumnsDisplay;\n this.userControlsColumns = state.userControlsColumns;\n } // TODO: Custom Queries\n\n }\n }\n });\n\n var state = useVuex ? (0, _vuex[\"default\"])() : (0, _normal[\"default\"])();\n client = _merge[\"default\"].recursive(client, state);\n Vue.component(\"r-l-client-table\", client);\n Vue.component(\"v-client-table\", _VtClientTable[\"default\"]);\n return _VtClientTable[\"default\"];\n};\n\n//# sourceURL=webpack://VueTables/./lib/v-client-table.js?"); /***/ }), diff --git a/lib/components/VtClientTable.jsx b/lib/components/VtClientTable.jsx index 04a2c456..c2ccb8ef 100644 --- a/lib/components/VtClientTable.jsx +++ b/lib/components/VtClientTable.jsx @@ -51,6 +51,9 @@ export default { }, getOpenChildRows(rows = null) { return this.$refs.table.getOpenChildRows(rows); + }, + resetQuery() { + this.$refs.table.resetQuery() } }, computed: { diff --git a/lib/components/VtServerTable.jsx b/lib/components/VtServerTable.jsx index bc648cd5..7b1c29f5 100644 --- a/lib/components/VtServerTable.jsx +++ b/lib/components/VtServerTable.jsx @@ -37,24 +37,24 @@ export default { } }, computed: { - customQueries: { - get() { - return this.$refs.table.customQueries; + customQueries: { + get() { + return this.$refs.table.customQueries; + }, + set(val) { + this.$refs.table.customQueries = val; + } }, - set(val) { - this.$refs.table.customQueries = val; - } - }, data() { - return this.$refs.table.tableData + return this.$refs.table.tableData } }, methods: { refresh() { - this.$refs.table.refresh(); + this.$refs.table.refresh(); }, getData() { - return this.$refs.table.getData(); + return this.$refs.table.getData(); }, setFilter(val) { this.$refs.table.setFilter(val); @@ -73,6 +73,9 @@ export default { }, getResponseData(response) { return this.$refs.table.getResponseData(response); + }, + resetQuery() { + this.$refs.table.resetQuery() } }, provide() { @@ -85,7 +88,8 @@ export default { prop: "data" }, render(h) { - return
{!props.opts.filterByColumn && props.opts.filterable ? -
+
{props.slots.beforeFilter} {props.slots.afterFilter}
: ''} {props.slots.afterFilterWrapper} - {props.perPageValues.length > 1 ?
+ {props.perPageValues.length > 1 ?
{props.slots.beforeLimit} {props.slots.afterLimit} @@ -110,12 +116,14 @@ export default { {props.opts.pagination.dropdown && props.totalPages > 1 ?
-
+
: ''} - {props.opts.columnsDropdown ?
+ {props.opts.columnsDropdown ?
: ''}
diff --git a/lib/v-client-table.js b/lib/v-client-table.js index 36324927..8f3479ac 100644 --- a/lib/v-client-table.js +++ b/lib/v-client-table.js @@ -4,7 +4,7 @@ import merge from "merge"; import Table from "./table"; import stateData from "./state/data"; import resizableColumns from "./helpers/resizeable-columns"; -import VtClientTable from "./components/VtClientTable.jsx"; +import VtClientTable from "./components/VtClientTable"; var data = require("./mixins/data"); var created = require("./mixins/created"); diff --git a/package-lock.json b/package-lock.json index fd4f104c..671c4bc6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -185,6 +185,7 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.0.0.tgz", "integrity": "sha512-aP/hlLq01DWNEiDg4Jn23i+CXxW/owM4WpDLFUbpjxe4NS3BhLVZQ5i7E0ZrxuQ/vwekIeciyamgB1UIYxxM6A==", + "dev": true, "requires": { "@babel/types": "^7.0.0" } @@ -226,7 +227,8 @@ "@babel/helper-plugin-utils": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0.tgz", - "integrity": "sha512-CYAOUCARwExnEixLdB6sDm2dIJ/YgEAKDM1MOeMeZu9Ld/bDgVo8aiWrXwcY7OBh+1Ea2uUcVRcxKk0GJvW7QA==" + "integrity": "sha512-CYAOUCARwExnEixLdB6sDm2dIJ/YgEAKDM1MOeMeZu9Ld/bDgVo8aiWrXwcY7OBh+1Ea2uUcVRcxKk0GJvW7QA==", + "dev": true }, "@babel/helper-regex": { "version": "7.5.5", @@ -424,6 +426,7 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.2.0.tgz", "integrity": "sha512-VyN4QANJkRW6lDBmENzRszvZf3/4AXaj9YR7GwrWeeN9tEBPuXbmDYVU9bYBN0D70zCWVwUy0HWq2553VCb6Hw==", + "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } @@ -882,6 +885,7 @@ "version": "7.7.4", "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", + "dev": true, "requires": { "esutils": "^2.0.2", "lodash": "^4.17.13", @@ -967,90 +971,6 @@ "integrity": "sha512-vRuMyoOr5yfNf8QWxXegOjeyjpWJxFePzHzmBOIzDIzo+rSqF94RW0PkS6y4T2+VjAWLXHWrfbIJY3E3aS7lUw==", "dev": true }, - "@vue/babel-helper-vue-jsx-merge-props": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@vue/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-1.0.0.tgz", - "integrity": "sha512-6tyf5Cqm4m6v7buITuwS+jHzPlIPxbFzEhXR5JGZpbrvOcp1hiQKckd305/3C7C36wFekNTQSxAtgeM0j0yoUw==" - }, - "@vue/babel-plugin-transform-vue-jsx": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@vue/babel-plugin-transform-vue-jsx/-/babel-plugin-transform-vue-jsx-1.1.2.tgz", - "integrity": "sha512-YfdaoSMvD1nj7+DsrwfTvTnhDXI7bsuh+Y5qWwvQXlD24uLgnsoww3qbiZvWf/EoviZMrvqkqN4CBw0W3BWUTQ==", - "requires": { - "@babel/helper-module-imports": "^7.0.0", - "@babel/plugin-syntax-jsx": "^7.2.0", - "@vue/babel-helper-vue-jsx-merge-props": "^1.0.0", - "html-tags": "^2.0.0", - "lodash.kebabcase": "^4.1.1", - "svg-tags": "^1.0.0" - } - }, - "@vue/babel-preset-jsx": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@vue/babel-preset-jsx/-/babel-preset-jsx-1.1.2.tgz", - "integrity": "sha512-zDpVnFpeC9YXmvGIDSsKNdL7qCG2rA3gjywLYHPCKDT10erjxF4U+6ay9X6TW5fl4GsDlJp9bVfAVQAAVzxxvQ==", - "requires": { - "@vue/babel-helper-vue-jsx-merge-props": "^1.0.0", - "@vue/babel-plugin-transform-vue-jsx": "^1.1.2", - "@vue/babel-sugar-functional-vue": "^1.1.2", - "@vue/babel-sugar-inject-h": "^1.1.2", - "@vue/babel-sugar-v-model": "^1.1.2", - "@vue/babel-sugar-v-on": "^1.1.2" - } - }, - "@vue/babel-sugar-functional-vue": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@vue/babel-sugar-functional-vue/-/babel-sugar-functional-vue-1.1.2.tgz", - "integrity": "sha512-YhmdJQSVEFF5ETJXzrMpj0nkCXEa39TvVxJTuVjzvP2rgKhdMmQzlJuMv/HpadhZaRVMCCF3AEjjJcK5q/cYzQ==", - "requires": { - "@babel/plugin-syntax-jsx": "^7.2.0" - } - }, - "@vue/babel-sugar-inject-h": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@vue/babel-sugar-inject-h/-/babel-sugar-inject-h-1.1.2.tgz", - "integrity": "sha512-VRSENdTvD5htpnVp7i7DNuChR5rVMcORdXjvv5HVvpdKHzDZAYiLSD+GhnhxLm3/dMuk8pSzV+k28ECkiN5m8w==", - "requires": { - "@babel/plugin-syntax-jsx": "^7.2.0" - } - }, - "@vue/babel-sugar-v-model": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@vue/babel-sugar-v-model/-/babel-sugar-v-model-1.1.2.tgz", - "integrity": "sha512-vLXPvNq8vDtt0u9LqFdpGM9W9IWDmCmCyJXuozlq4F4UYVleXJ2Fa+3JsnTZNJcG+pLjjfnEGHci2339Kj5sGg==", - "requires": { - "@babel/plugin-syntax-jsx": "^7.2.0", - "@vue/babel-helper-vue-jsx-merge-props": "^1.0.0", - "@vue/babel-plugin-transform-vue-jsx": "^1.1.2", - "camelcase": "^5.0.0", - "html-tags": "^2.0.0", - "svg-tags": "^1.0.0" - }, - "dependencies": { - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" - } - } - }, - "@vue/babel-sugar-v-on": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@vue/babel-sugar-v-on/-/babel-sugar-v-on-1.1.2.tgz", - "integrity": "sha512-T8ZCwC8Jp2uRtcZ88YwZtZXe7eQrJcfRq0uTFy6ShbwYJyz5qWskRFoVsdTi9o0WEhmQXxhQUewodOSCUPVmsQ==", - "requires": { - "@babel/plugin-syntax-jsx": "^7.2.0", - "@vue/babel-plugin-transform-vue-jsx": "^1.1.2", - "camelcase": "^5.0.0" - }, - "dependencies": { - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" - } - } - }, "@vue/component-compiler-utils": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/@vue/component-compiler-utils/-/component-compiler-utils-3.1.0.tgz", @@ -1795,7 +1715,8 @@ "babel-helper-vue-jsx-merge-props": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-2.0.3.tgz", - "integrity": "sha512-gsLiKK7Qrb7zYJNgiXKpXblxbV5ffSwR0f5whkPAaBAR4fhi6bwRZxX9wBlIc5M/v8CCkXUbXZL4N/nSE97cqg==" + "integrity": "sha512-gsLiKK7Qrb7zYJNgiXKpXblxbV5ffSwR0f5whkPAaBAR4fhi6bwRZxX9wBlIc5M/v8CCkXUbXZL4N/nSE97cqg==", + "dev": true }, "babel-helpers": { "version": "6.24.1", @@ -3788,7 +3709,8 @@ "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true }, "etag": { "version": "1.8.1", @@ -5482,11 +5404,6 @@ "integrity": "sha1-DfKTUfByEWNRXfueVUPl9u7VFi8=", "dev": true }, - "html-tags": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/html-tags/-/html-tags-2.0.0.tgz", - "integrity": "sha1-ELMKOGCF9Dzt41PMj6fLDe7qZos=" - }, "http-cache-semantics": { "version": "3.8.1", "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz", @@ -8158,7 +8075,8 @@ "lodash": { "version": "4.17.15", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true }, "lodash.camelcase": { "version": "4.3.0", @@ -8172,11 +8090,6 @@ "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=", "dev": true }, - "lodash.kebabcase": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz", - "integrity": "sha1-hImxyw0p/4gZXM7KRI/21swpXDY=" - }, "lodash.memoize": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", @@ -11746,11 +11659,6 @@ "has-flag": "^3.0.0" } }, - "svg-tags": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/svg-tags/-/svg-tags-1.0.0.tgz", - "integrity": "sha1-WPcc7jvVGbWdSyqEO2x95krAR2Q=" - }, "svgo": { "version": "0.7.2", "resolved": "https://registry.npmjs.org/svgo/-/svgo-0.7.2.tgz", @@ -12008,7 +11916,8 @@ "to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=" + "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", + "dev": true }, "to-object-path": { "version": "0.3.0", diff --git a/package.json b/package.json index 1ffa1e3c..88ba7739 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vue-tables-2", "description": "Vue.js 2 grid components", - "version": "2.0.14", + "version": "2.0.15", "keywords": [ "vue2", "vuex",