From 3a882611daa6614b29a2a9b91bd552211781fe39 Mon Sep 17 00:00:00 2001 From: Matanya Fishaimer Date: Wed, 15 Apr 2020 08:07:14 +0300 Subject: [PATCH] build dist --- .../components/renderless/RLPagination.js | 1 + compiled/config/defaults.js | 1 + dist/vue-tables-2.min.js | 4 +- dist/vue-tables.js | 963 ++++++++++++------ lib/components/renderless/RLPagination.js | 1 + lib/config/defaults.js | 1 + lib/v-client-table.js | 2 +- package-lock.json | 116 ++- package.json | 2 +- webpack.config.dist.js | 6 +- 10 files changed, 773 insertions(+), 324 deletions(-) diff --git a/compiled/components/renderless/RLPagination.js b/compiled/components/renderless/RLPagination.js index 4a2f4708..ad057888 100644 --- a/compiled/components/renderless/RLPagination.js +++ b/compiled/components/renderless/RLPagination.js @@ -16,6 +16,7 @@ var _default = { 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()), diff --git a/compiled/config/defaults.js b/compiled/config/defaults.js index 26499007..96586079 100644 --- a/compiled/config/defaults.js +++ b/compiled/config/defaults.js @@ -112,6 +112,7 @@ module.exports = function () { resizableColumns: true, editableColumns: [], tabbable: true, + infiniteScroll: false, componentsOverride: {} }; }; \ No newline at end of file diff --git a/dist/vue-tables-2.min.js b/dist/vue-tables-2.min.js index 203ab251..70cb1395 100644 --- a/dist/vue-tables-2.min.js +++ b/dist/vue-tables-2.min.js @@ -1,8 +1,8 @@ -var VueTables=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=20)}([function(t,e,n){(function(t){!function(e){var n=function(t){return r(!0===t,!1,arguments)};function i(t,e){if("object"!==o(t))return e;for(var n in e)"object"===o(t[n])&&"object"===o(e[n])?t[n]=i(t[n],e[n]):t[n]=e[n];return t}function r(t,e,r){var s=r[0],a=r.length;(t||"object"!==o(s))&&(s={});for(var u=0;u=0?i=setTimeout(u,e-l):(i=null,n||(a=t.apply(o,r),o=r=null))}null==e&&(e=100);var l=function(){o=this,r=arguments,s=Date.now();var l=n&&!i;return i||(i=setTimeout(u,e)),l&&(a=t.apply(o,r),o=r=null),a};return l.clear=function(){i&&(clearTimeout(i),i=null)},l.flush=function(){i&&(a=t.apply(o,r),o=r=null,clearTimeout(i),i=null)},l}n.debounce=n,t.exports=n},function(t,e){t.exports=Vue},function(t,e,n){var i=n(22),r=n(5);t.exports={Pagination:i,PaginationEvent:r}},function(t,e,n){"use strict";var i,r=n(3);var o=new((i=r)&&i.__esModule?i:{default:i}).default;t.exports=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e="server"==t?{methods:{setData:function(t){this.commit("SET_DATA",t),setTimeout(function(){this.dispatch("loaded",t)}.bind(this),0)}}}:{};return r.default.recursive(!0,{props:{name:{type:String,required:!0}},computed:{state:function(){return this.$store.state[this.name]},Page:function(){return this.state.page},count:function(){return this.state.count},Columns:function(){return this.state.columns},tableData:function(){return this.state.data},page:function(){return this.state.page},limit:function(){return this.state.limit},customQueries:function(){return this.state.customQueries},query:function(){return this.state.query},orderBy:function(){return{column:this.state.sortBy,ascending:this.state.ascending}}},methods:{commit:function(t,e){return this.$store.commit("".concat(this.name,"/").concat(t),e)},orderByColumn:function(t,e){if(this.sortable(t))if(e.shiftKey&&this.orderBy.column&&this.hasMultiSort)this.setUserMultiSort(t);else{var n={column:t,ascending:this.orderBy.column===t?!this.orderBy.ascending:this._initialOrderAscending(t)};this.updateState("orderBy",n),this.commit("SORT",n),this.dispatch("sorted",n)}},setLimit:function(t){var e="object"===o(t)?parseInt(t.target.value):t;this.updateState("perPage",e),this.commit("SET_LIMIT",e),this.dispatch("limit",e)},setOrder:function(t,e){this.updateState("orderBy",{column:t,ascending:e}),this.commit("SORT",{column:t,ascending:e})},setPage:function(t){t||(t=this.$refs.page.value),this.opts.pagination.dropdown||(this.$refs.pagination.Page=t),this.commit("PAGINATE",t)}}},e)};var i,r=(i=n(0))&&i.__esModule?i:{default:i};function o(t){return(o="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)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return{computed:{Columns:function(){return this.columns}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return{methods:i,computed:r,beforeDestroy:o}};var i=n(29),r=n(89),o=n(102)},function(t,e,n){"use strict";t.exports=function(t,e){var n=this.vuex?JSON.parse(JSON.stringify(this.query)):this.query;if("Object"==Object.prototype.toString.call(t).slice(8,-1)){n=this.vuex?JSON.parse(JSON.stringify(t)):t,this.vuex||(this.query=n);var i=e.target.name,r=e.target.value;i?(this.dispatch("filter",{name:i,value:r}),this.dispatch("filter::".concat(i),r)):this.dispatch("filter",r),this.updateState("query",n)}else if(t){var o=this.getName(t.target.name),s=t.target.value;o?n[o]=s:n=s,this.vuex||(this.query=n),o?(this.dispatch("filter",{name:o,value:s}),this.dispatch("filter::".concat(o),s)):this.dispatch("filter",s),this.updateState("query",n)}return function(t,e){t.vuex?t.commit("SET_FILTER",e):(t.initPagination(),t.opts.pagination.dropdown&&t.getData())}(this,n)}},function(t,e,n){"use strict";t.exports=function(t){return t&&"function"==typeof t.isValid&&t.isValid()}},function(t,e,n){"use strict";n.r(e);e.default=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:1,i={vuex:!0,activeState:!1,userColumnsDisplay:[],userControlsColumns:!1,displayColumnsDropdown:!1,collapsedGroups:[]};if(t)return i;i=(0,r.default)(i,{vuex:!1,count:0,customQueries:{},query:null,page:n,limit:10,windowWidth:"undefined"!=typeof window?window.innerWidth:null,orderBy:{column:!1,ascending:!0}}),"server"==e&&(i.data=[]);return i};var i,r=(i=n(0))&&i.__esModule?i:{default:i}},function(t,e,n){"use strict";function i(t){return(i="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,e,n,r){var o=t.getElementsByTagName("tr")[0],s=o?Array.from(o.children):void 0;if(s){"object"===i(r)&&(s=s.filter((function(t){return r.includes(t.id.split("--")[1])}))),t.style.overflow="hidden";for(var a=t.offsetHeight,u=e&&n?1:0,l=e&&!n?s.length-2:s.length;u-1&&e[0]}t.exports=function(t){t.vuex?r(t):t.limit=t.opts.perPage,i(t.opts.columnsDisplay)||"undefined"==typeof window||(t.columnsDisplay=function(t){var e,n,i,r={};for(var a in t){i=s(t[a]);try{u=t[a],l=void 0,l=u.split("_"),n=l.length>1?l[1]:l[0],e=o(n,i),r[a]=e.concat([i])}catch(t){console.warn("Unknown device "+n)}}var u,l;return r}(t.opts.columnsDisplay),window.addEventListener("resize",function(){t.windowWidth=window.innerWidth}.bind(t)))}},function(t,e,n){"use strict";function i(t){return(i="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,e){var r={bootstrap3:n(107)(),bootstrap4:n(108)(),bulma:n(109)()},o={default:n(110),footerPagination:n(111)};return function(s){var a={rows:n(112).call(this,s),normalFilter:n(119).call(this,s),dropdownPagination:n(120).call(this,s),dropdownPaginationCount:n(121).call(this,s),columnFilters:n(122).call(this,s),pagination:n(126).call(this,s),headings:n(127).call(this,s),perPage:n(129).call(this,s),columnsDropdown:n(130).call(this,s)};if("string"==typeof t&&(!o[t]||"function"!=typeof o[t]))throw'vue-tables-2: Template "'.concat(t,'" does not exist');if("string"==typeof e&&(!r[e]||"object"!==i(r[e])))throw'vue-tables-2: Theme "'.concat(e,'" does not exist');var u="string"==typeof t?o[t]:t,l="string"==typeof e?r[e]:e(),c=n(133).call(this);return u.call(this,s,a,l,c)}}},function(t,e,n){"use strict";t.exports=function(t){var e=this,n=[];return this.opts.perPageValues.every((function(i){var r=i>=e.count,o=e.limit==i||r&&e.limit>i;return n.push(t("option",{domProps:{value:i,selected:o}},[i])),!r})),n}},function(t,e,n){(function(e){var n=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var n,i,r;try{n=Map}catch(t){n=function(){}}try{i=Set}catch(t){i=function(){}}try{r=Promise}catch(t){r=function(){}}function o(s,u,l,c,f){"object"==typeof u&&(l=u.depth,c=u.prototype,f=u.includeNonEnumerable,u=u.circular);var h=[],p=[],d=void 0!==e;return void 0===u&&(u=!0),void 0===l&&(l=1/0),function s(l,g){if(null===l)return null;if(0===g)return l;var m,y;if("object"!=typeof l)return l;if(t(l,n))m=new n;else if(t(l,i))m=new i;else if(t(l,r))m=new r((function(t,e){l.then((function(e){t(s(e,g-1))}),(function(t){e(s(t,g-1))}))}));else if(o.__isArray(l))m=[];else if(o.__isRegExp(l))m=new RegExp(l.source,a(l)),l.lastIndex&&(m.lastIndex=l.lastIndex);else if(o.__isDate(l))m=new Date(l.getTime());else{if(d&&e.isBuffer(l))return m=e.allocUnsafe?e.allocUnsafe(l.length):new e(l.length),l.copy(m),m;t(l,Error)?m=Object.create(l):void 0===c?(y=Object.getPrototypeOf(l),m=Object.create(y)):(m=Object.create(c),y=c)}if(u){var v=h.indexOf(l);if(-1!=v)return p[v];h.push(l),p.push(m)}for(var b in t(l,n)&&l.forEach((function(t,e){var n=s(e,g-1),i=s(t,g-1);m.set(n,i)})),t(l,i)&&l.forEach((function(t){var e=s(t,g-1);m.add(e)})),l){var w;y&&(w=Object.getOwnPropertyDescriptor(y,b)),w&&null==w.set||(m[b]=s(l[b],g-1))}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(l);for(b=0;b<_.length;b++){var S=_[b];(!(x=Object.getOwnPropertyDescriptor(l,S))||x.enumerable||f)&&(m[S]=s(l[S],g-1),x.enumerable||Object.defineProperty(m,S,{enumerable:!1}))}}if(f){var C=Object.getOwnPropertyNames(l);for(b=0;b3&&void 0!==arguments[3]?arguments[3]:"bootstrap3",g=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"default",m=s.default.recursive(!0,(0,a.default)(),{name:"client-table",components:{Pagination:i.Pagination},render:p.call(this,g,d),props:{columns:{type:Array,required:!0},data:{type:Array,required:!0},name:{type:String,required:!1},options:{type:Object,required:!1,default:function(){return{}}}},created:function(){h(this),this.opts.toMomentFormat&&this.transformDateStringsToMoment(),this.vuex||(this.initOrderBy(),this.query=this.initQuery(),this.customQueries=this.initCustomFilters())},mounted:function(){this._setFiltersDOM(this.query),this.opts.resizableColumns&&(0,l.default)(this.$el.querySelector("table"),this.hasChildRow,this.opts.childRowTogglerFirst,this.opts.resizableColumns),this._setColumnsDropdownCloseListener(),this.vuex||(this.registerClientFilters(),this.options.initialPage&&this.setPage(this.options.initialPage)),this.opts.groupBy&&!this.opts.orderBy&&(this.orderBy.column=this.opts.groupBy),this.loadState(),this.hasDateFilters()&&this.initDateFilters()},model:{prop:"data"},data:function(){return s.default.recursive(f(),{source:"client",globalOptions:e,currentlySorting:{},time:Date.now()},(0,u.default)(c,"client",this.options.initialPage))},computed:{q:n(134),customQ:n(135),totalPages:n(19),filteredData:n(136),hasMultiSort:function(){return this.opts.clientMultiSorting}},methods:{transformDateStringsToMoment:n(137),registerClientFilters:n(138),search:n(139),defaultSort:n(142),getGroupSlot:n(143),toggleGroup:function(t,e){e.stopPropagation();var n=this.collapsedGroups.indexOf(t);n>=0?this.collapsedGroups.splice(n,1):this.collapsedGroups.push(t)},groupToggleIcon:function(t){var e=this.opts.sortIcon.base+" ";return e+=this.collapsedGroups.indexOf(t)>-1?this.opts.sortIcon.down:this.opts.sortIcon.up},loadState:function(){if(this.opts.saveState){if(!this.storage.getItem(this.stateKey))return this.initState(),void(this.activeState=!0);var t=JSON.parse(this.storage.getItem(this.stateKey));this.opts.filterable&&this.setFilter(t.query),this.setOrder(t.orderBy.column,t.orderBy.ascending),this.vuex?this.commit("SET_LIMIT",t.perPage):this.limit=t.perPage,this.setPage(t.page),this.activeState=!0,t.userControlsColumns&&(this.userColumnsDisplay=t.userColumnsDisplay,this.userControlsColumns=t.userControlsColumns)}}}}),y=c?(0,r.default)():(0,o.default)();return m=s.default.recursive(m,y),t.component("v-client-table",m),m}},function(t,e,n){"use strict";var i="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},r=s(n(23)),o=s(n(0));function s(t){return t&&t.__esModule?t:{default:t}}var a=n(25),u=n(5);t.exports={render:a.call(void 0),props:{for:{type:String,required:!1},records:{type:Number,required:!0},perPage:{type:Number,default:25},vuex:{type:Boolean},options:{type:Object}},created:function(){if(this.vuex){if(!this.for)throw new Error('vue-pagination-2: The "for" prop is required when using vuex');var t,e,n,i=this.for;if(!this.$store.state[i])this.$store.registerModule(this.for,{state:{page:1},mutations:(t={},e=i+"/PAGINATE",n=function(t,e){t.page=e},e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t)})}},data:function(){return{Page:1,firstPage:1}},computed:{opts:function(){return(0,o.default)((0,r.default)(),this.options)},Theme:function(){if("object"===i(this.opts.theme))return this.opts.theme;var t={bootstrap3:n(26),bootstrap4:n(27),bulma:n(28)};if(void 0===i(t[this.opts.theme]))throw"vue-pagination-2: the theme "+this.opts.theme+" does not exist";return t[this.opts.theme]},page:function(){return this.vuex?this.$store.state[this.for].page:this.Page},pages:function(){return this.records?(t=this.paginationStart,e=this.pagesInCurrentChunk,Array.apply(0,Array(e)).map((function(e,n){return n+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(){if("scroll"===this.opts.chunksNavigation){var t=this.Page-this.opts.chunk+1;return t>0?t:1}return(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,n=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(n))}},methods:{setPage:function(t){this.allowedPage(t)&&this.paginate(t)},paginate:function(t){this.vuex?this.$store.commit(this.for+"/PAGINATE",t):this.Page=t,this.$emit("paginate",t),this.for&&u.$emit("vue-pagination::"+this.for,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,n=e+this.opts.chunk-1;return t>=e&&t<=n},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}},beforeDestroy:function(){u.$off(),u.$destroy()}}},function(t,e,n){"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){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";t.exports=function(){return function(t){var e=this.Theme,n="",i="",r="",o="",s=this.pages.map(function(n){return t("li",{class:"VuePagination__pagination-item "+e.item+" "+this.activeClass(n),on:{click:this.setPage.bind(this,n)}},[t("a",{class:e.link+" "+this.activeClass(n),attrs:{href:"javascript:void(0)",role:"button"}},[n])])}.bind(this));return this.opts.edgeNavigation&&this.totalChunks>1&&(r=t("li",{class:"VuePagination__pagination-item "+e.item+" "+(1===this.page?e.disabled:"")+" VuePagination__pagination-item-prev-chunk",on:{click:this.setPage.bind(this,1)}},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:1===this.page}},[this.opts.texts.first])]),o=t("li",{class:"VuePagination__pagination-item "+e.item+" "+(this.page===this.totalPages?e.disabled:"")+" VuePagination__pagination-item-prev-chunk",on:{click:this.setPage.bind(this,this.totalPages)}},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:this.page===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),on:{click:this.setChunk.bind(this,-1)}},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedChunkClass(-1)}},["<<"])]),i=t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.next+" VuePagination__pagination-item-next-chunk "+this.allowedChunkClass(1),on:{click:this.setChunk.bind(this,1)}},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedChunkClass(1)}},[">>"])])),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"},[r,n,t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.prev+" VuePagination__pagination-item-prev-page "+this.allowedPageClass(this.page-1),on:{click:this.prev.bind(this)}},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedPageClass(this.page-1)}},["<"])]),s,t("li",{class:"VuePagination__pagination-item "+e.item+" "+e.next+" VuePagination__pagination-item-next-page "+this.allowedPageClass(this.page+1),on:{click:this.next.bind(this)}},[t("a",{class:e.link,attrs:{href:"javascript:void(0);",disabled:!!this.allowedPageClass(this.page+1)}},[">"])]),i,o]),t("p",{directives:[{name:"show",value:parseInt(this.records)}],class:"VuePagination__count "+e.count},[this.count])])])}}},function(t,e,n){"use strict";t.exports={nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active",disabled:"disabled"}},function(t,e,n){"use strict";t.exports={nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active",disabled:"disabled"}},function(t,e,n){"use strict";t.exports={nav:"",count:"",wrapper:"pagination",list:"pagination-list",item:"",link:"pagination-link",next:"",prev:"",active:"is-current",disabled:""}},function(t,e,n){"use strict";t.exports={initQuery:n(30),resetQuery:n(31),initCustomFilters:n(32),initOptions:n(33),sortableClass:n(34),sortableChevronClass:n(35),display:n(36),orderByColumn:n(37),getHeading:n(38),getHeadingTooltip:n(40),sortable:n(41),serverSearch:n(9),initOrderBy:n(42),initDateFilters:n(43),setFilter:n(44),setPage:n(45),setOrder:n(46),initPagination:n(47),filterable:n(48),isTextFilter:n(49),isDateFilter:n(50),isListFilter:n(51),highlightMatch:n(52),formatDate:n(53),hasDateFilters:n(54),applyFilters:n(55),optionText:n(56),render:n(57),rowWasClicked:n(58),setLimit:n(59),getOpenChildRows:n(60),dispatch:n(61),toggleChildRow:n(62),childRowTogglerClass:n(63),sendRequest:n(64),getResponseData:n(65),getSortFn:n(66),initState:n(67),updateState:n(68),columnClass:n(69),getName:n(70),toggleColumn:n(71),setUserMultiSort:n(72),_cellClasses:n(73),_setFiltersDOM:n(74),_currentlySorted:n(75),_getChildRowTemplate:n(76),_toggleColumnsDropdown:n(77),_onlyColumn:n(78),_onPagination:n(79),_toggleGroupDirection:n(80),_getInitialDateRange:n(81),_setDatepickerText:n(82),_initialOrderAscending:n(83),dateFormat:n(84),_setColumnsDropdownCloseListener:n(85),_getValue:n(86),_getColumnName:n(87),_shouldShowColumnOnInit:n(88)}},function(t,e,n){"use strict";function i(t){return(i="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(){var t=this.opts.initFilters;if(!this.opts.filterByColumn)return t.hasOwnProperty("GENERIC")?t.GENERIC:"";var e={};return(this.opts.filterable&&"object"==i(this.opts.filterable)?this.opts.filterable:this.columns).forEach(function(n){e[n]=function(t,e){return t.hasOwnProperty(e)?void 0===t[e].start?t[e]:{start:t[e].start.format("YYYY-MM-DD HH:mm:ss"),end:t[e].end.format("YYYY-MM-DD HH:mm:ss")}:""}(t,n)}.bind(this)),e}},function(t,e,n){"use strict";t.exports=function(){if(this.opts.filterByColumn){var t={};for(var e in this.query)t[e]=""}else t="";this.setFilter(t)}},function(t,e,n){"use strict";t.exports=function(){var t,e={},n=this.opts.initFilters;return this.opts.customFilters.forEach(function(i){t="client"==this.source?i.name:i,e[t]=n.hasOwnProperty(t)?n[t]:""}.bind(this)),e}},function(t,e,n){"use strict";var i=n(0);t.exports=function(t,e,n){return e&&(t=i.recursive(t,e)),n=i.recursive(t,n)}},function(t,e,n){"use strict";t.exports=function(t){var e=this.sortable(t)?"VueTables__sortable ":"";return e+=this.columnClass(t)}},function(t,e,n){"use strict";t.exports=function(t){var e=this.opts.sortIcon.base+" ";if(this.sortable(t)){if(this.opts.sortIcon.is&&!this._currentlySorted(t)&&(e+=this.opts.sortIcon.is+" "),this.hasMultiSort&&this.orderBy.column&&this.userMultiSorting[this.orderBy.column]){var n=this.userMultiSorting[this.orderBy.column].filter((function(e){return e.column===t}))[0];n&&(e+=n.ascending?this.opts.sortIcon.up:this.opts.sortIcon.down)}return t==this.orderBy.column&&(e+=1==this.orderBy.ascending?this.opts.sortIcon.up:this.opts.sortIcon.down),e}}},function(t,e,n){"use strict";t.exports=function(t,e){if(!this.opts.texts)return"";t=this.opts.texts[t];if(e)for(var n in e)t=t.replace("{"+n+"}",e[n]);return t}},function(t,e,n){"use strict";t.exports=function(t,e){this.sortable(t)&&(e&&e.shiftKey&&this.orderBy.column&&this.hasMultiSort?this.setUserMultiSort(t):(this.userMultiSorting={},this.orderBy.ascending=t==this.orderBy.column?!this.orderBy.ascending:this._initialOrderAscending(t),this.orderBy.column=t,this.updateState("orderBy",this.orderBy),this.dispatch("sorted",JSON.parse(JSON.stringify(this.orderBy)))),"server"==this.source&&this.getData())}},function(t,e,n){"use strict";var i,r=(i=n(39))&&i.__esModule?i:{default:i};t.exports=function(t,e){if("string"!=typeof t)return"";if(void 0!==this.$slots["h__".concat(t)])return this.$slots["h__".concat(t)];var n=(0,r.default)(t.split("_").join(" "));return this.opts.headings.hasOwnProperty(t)?"function"==typeof this.opts.headings[t]?e?this.opts.headings[t].call(this.$parent,e):n:this.opts.headings[t]:n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}},function(t,e,n){"use strict";t.exports=function(t,e){if("string"!=typeof t)return"";return this.opts.headingsTooltips.hasOwnProperty(t)?"function"==typeof this.opts.headingsTooltips[t]?e?this.opts.headingsTooltips[t].call(this.$parent,e):"":this.opts.headingsTooltips[t]:""}},function(t,e,n){"use strict";t.exports=function(t){return!("boolean"!=typeof this.opts.sortable||!this.opts.sortable)||this.opts.sortable.indexOf(t)>-1}},function(t,e,n){"use strict";t.exports=function(){this.opts.orderBy&&(this.orderBy.column=this.opts.orderBy.column,this.orderBy.ascending=!this.opts.orderBy.hasOwnProperty("ascending")||this.opts.orderBy.ascending)}},function(t,e,n){"use strict";var i=n(0);t.exports=function(){if("undefined"!=typeof $&&void 0!==$(this.$el).daterangepicker){var t,e,n,r=this,o=this.vuex?JSON.parse(JSON.stringify(this.query)):this.query,s=function(t,e){return"client"==r.source?r.search(r.data,e):r.serverSearch(t,e)},a=i.recursive(this.opts.datepickerOptions,{autoUpdateInput:!1,singleDatePicker:!1});r.datepickerColumns.forEach((function(u){var l=r._getInitialDateRange(u);l?(r._setDatepickerText(u,l.start,l.end),l={startDate:l.start,endDate:l.end}):l={},t=$(r.$el).find("#VueTables__"+$.escapeSelector(u)+"-filter"),e=void 0!==r.opts.datepickerPerColumnOptions[u]?r.opts.datepickerPerColumnOptions[u]:{},e=i.recursive(e,{locale:{format:r.dateFormat(u)}}),n=i(!0,a),!1===e.ranges&&(n.ranges={}),t.daterangepicker(i.recursive(n,e,l)),t.on("apply.daterangepicker",(function(t,e){o[u]={start:e.startDate.format("YYYY-MM-DD HH:mm:ss"),end:e.endDate.format("YYYY-MM-DD HH:mm:ss")},r.vuex||(r.query=o),r._setDatepickerText(u,e.startDate,e.endDate),r.updateState("query",o),s(o,{target:{name:r._getColumnName(u),value:o[u]}})})),t.on("cancel.daterangepicker",(function(t,e){o[u]="",r.vuex||(r.query=o),e.setStartDate(moment()),e.setEndDate(moment()),r.updateState("query",o),$(this).html(""+r.display("filterBy",{column:r.getHeading(u)})+""),s(o,{target:{name:r._getColumnName(u),value:o[u]}})}))}))}else console.error("Date filters require jquery and daterangepicker")}},function(t,e,n){"use strict";var i=n(0);t.exports=function(t){if(this.opts.filterable)if(this.opts.filterByColumn&&"string"==typeof t)console.warn("vue-tables-2: Unable to set filter. Filter value must be an object (`filterByColumn` is set to `true`)");else if(this.opts.filterByColumn||"string"==typeof t){var e=this.opts.filterByColumn?i(this.query,t):t;this.vuex?this.commit("SET_FILTER",e):(this.query=e,this.setPage(1,!0)),this.updateState("query",e),this._setFiltersDOM(t),"server"==this.source&&this.getData()}else console.warn("vue-tables-2: Unable to set filter. Filter value must be a string (`filterByColumn` is set to `false`)");else console.warn("vue-tables-2: Unable to set filter. Filtering is disabled (filterable: false)")}},function(t,e,n){"use strict";t.exports=function(t,e){t=t||this.$refs.page.value,this.opts.pagination.dropdown||(this.$refs.pagination.Page=t),this.page=t,this.updateState("page",t),"server"!=this.source||e||this.getData()}},function(t,e,n){"use strict";t.exports=function(t,e){this.orderBy.column=t,this.orderBy.ascending=e,this.updateState("orderBy",{column:t,ascending:e}),"server"==this.source&&this.getData()}},function(t,e,n){"use strict";t.exports=function(){this.page=1,this.opts.pagination.dropdown||this.$refs.pagination.setPage(1)}},function(t,e,n){"use strict";t.exports=function(t){return!!this.opts.filterable&&("boolean"==typeof this.opts.filterable&&this.opts.filterable||this.opts.filterable.indexOf(t)>-1)}},function(t,e,n){"use strict";t.exports=function(t){return this.query.hasOwnProperty(t)&&-1==this.opts.dateColumns.indexOf(t)&&!this.opts.listColumns.hasOwnProperty(t)}},function(t,e,n){"use strict";t.exports=function(t){return this.query.hasOwnProperty(t)&&this.opts.dateColumns.indexOf(t)>-1}},function(t,e,n){"use strict";t.exports=function(t){return this.query.hasOwnProperty(t)&&this.opts.listColumns.hasOwnProperty(t)}},function(t,e,n){"use strict";t.exports=function(t,e,n){var i,r=this.opts.filterByColumn?this.query[e]:this.query;return r?n("span",{class:"VueTables__highlight"},function(t,e,n){return String(t).split(e).map((function(t){return e.test(t)?n("b",{},t):t}))}(t,r=new RegExp("("+("string"==typeof(i=r)?i.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"):i)+")","i"),n)):t}},function(t,e,n){"use strict";var i=n(10);t.exports=function(t,e){return i(t)?t.format(e):t}},function(t,e,n){"use strict";function i(t){return(i="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 r=n(11).default;t.exports=function(){var t=this.opts;return t.dateColumns.length&&t.filterByColumn&&("boolean"==typeof t.filterable&&t.filterable||"object"==i(t.filterable)&&r(t.filterable,t.dateColumns).length)}},function(t,e,n){"use strict";function i(t){return(i="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;try{return t.map((function(t){for(var n in t)"client"===e.source&&(t[n]=e.formatDate(t[n],e.dateFormat(n))),!e.isListFilter(n)||e.opts.templates[n]||e.$scopedSlots[n]||(t[n]=e.optionText(t[n],n));return t}))}catch(e){throw console.error("vue-tables-2: non-iterable data property. Expected array, got ".concat(i(t),". Make sure that your response conforms to the expected format, or use the 'responseAdapter' option to match the currently returned format")),console.error("Data equals",t),new Error}}},function(t,e,n){"use strict";t.exports=function(t,e){var n=this.listColumnsObject[e];return void 0===n[t]?t:n[t]}},function(t,e,n){"use strict";t.exports=function(t,e,n,i){var r=this._getValue(t,e);if(-1==this.templatesKeys.indexOf(e))return void 0!==r&&this.opts.highlightMatches&&-1!==this.filterableColumns.indexOf(e)?this.highlightMatch(r,e,i):r;var o=this.opts.templates[e];return o="function"==typeof o?o.apply(this.$root,[i,t,n,e]):i(o,{attrs:{data:t,column:e,index:n}})}},function(t,e,n){"use strict";t.exports=function(t,e,n){var i,r=this.opts.uniqueKey;i="client"==this.source&&void 0!==t[r]?this.tableData.filter((function(e){return t[r]===e[r]}))[0]:t,this.dispatch("row-click",{row:i,index:e,event:n})}},function(t,e,n){"use strict";function i(t){return(i="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){this.limit="object"===i(t)?t.target.value:t,this.updateState("perPage",this.limit),this.dispatch("limit",parseInt(this.limit)),this.setPage(1)}},function(t,e,n){"use strict";t.exports=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!this.opts.childRow||"function"==typeof this.opts.childRow)throw new Error("vue-tables-2: Child row undefined or not a component");var n=e?this.openChildRows.filter((function(t){return e.includes(t)})):this.openChildRows;if(!n.length)return[];var i=this.$children.filter((function(e){return"ChildRow"===e.$options.name&&n.includes(e.data[t.opts.uniqueKey])}));return i}},function(t,e,n){"use strict";var i,r=(i=n(1))&&i.__esModule?i:{default:i};t.exports=function(t,e){if(this.vuex){if(t.split("::").length>1)return;this.commit(t.toUpperCase().replace("-","_"),e)}this.$emit(t,e),r.default.$emit("vue-tables.".concat(t),e),this.name&&r.default.$emit("vue-tables.".concat(this.name,".").concat(t),e)}},function(t,e,n){"use strict";t.exports=function(t,e){if(e&&e.stopPropagation(),this.openChildRows.includes(t)){var n=this.openChildRows.indexOf(t);this.openChildRows.splice(n,1)}else this.openChildRows.push(t)}},function(t,e,n){"use strict";t.exports=function(t){return this.openChildRows.includes(t)?"VueTables__child-row-toggler--open":"VueTables__child-row-toggler--closed"}},function(t,e,n){"use strict";t.exports=function(t){if("function"==typeof this.opts.requestFunction)return this.opts.requestFunction.call(this,t);if("undefined"!=typeof axios)return axios.get(this.url,{params:t}).catch(function(t){this.dispatch("error",t)}.bind(this));if(void 0!==this.$http)return this.$http.get(this.url,{params:t}).then(function(t){return t.json()}.bind(this),function(t){this.dispatch("error",t)}.bind(this));if("undefined"!=typeof $)return $.getJSON(this.url,t).fail(function(t){this.dispatch("error",t)}.bind(this));throw"vue-tables: No supported ajax library was found. (jQuery, axios or vue-resource). To use a different library you can write your own request function (see the `requestFunction` option)"}},function(t,e,n){"use strict";t.exports=function(t){return"undefined"!=typeof axios?t.data:t}},function(t,e,n){"use strict";t.exports=function(t){var e=this.orderBy.ascending;return this.currentlySorting={column:t,ascending:e},void 0===this.opts.customSorting[t]?this.defaultSort(t,e):this.opts.customSorting[t](e)}},function(t,e,n){"use strict";t.exports=function(){var t={page:1,query:this.query,orderBy:this.orderBy,perPage:this.opts.perPage,customQueries:this.customQueries};return this.storage.setItem(this.stateKey,JSON.stringify(t)),t}},function(t,e,n){"use strict";t.exports=function(t,e){if(this.opts.saveState&&this.activeState){try{var n=JSON.parse(this.storage.getItem(this.stateKey))}catch(t){n=this.initState()}n[t]=e,this.storage.setItem(this.stateKey,JSON.stringify(n))}}},function(t,e,n){"use strict";t.exports=function(t){var e=this.opts.columnsClasses;return e.hasOwnProperty(t)?e[t]:""}},function(t,e,n){"use strict";t.exports=function(t){return t?((t=t.split("__")).shift(),t.join("__").split("@@@").join(".")):t}},function(t,e,n){"use strict";t.exports=function(t){var e=this;if(this.userControlsColumns||(this.userColumnsDisplay=JSON.parse(JSON.stringify(this.allColumns)),this.userControlsColumns=!0),this.userColumnsDisplay.includes(t)){if(1===this.userColumnsDisplay.length)return;var n=this.userColumnsDisplay.indexOf(t);this.userColumnsDisplay.splice(n,1)}else this.userColumnsDisplay.push(t);this.updateState("userControlsColumns",!0),this.updateState("userColumnsDisplay",this.userColumnsDisplay),this.$nextTick((function(){e._setFiltersDOM(e.query)}))}},function(t,e,n){"use strict";t.exports=function(t){var e=this.orderBy.column,n=this.orderBy.ascending;this.userMultiSorting[e]||(this.userMultiSorting[e]=[]);var i=this.userMultiSorting[e];if(e===t)!i.length||n?this.orderBy.ascending=!this.orderBy.ascending:(this.orderBy=i.shift(),this.userMultiSorting={},this.userMultiSorting[this.orderBy.column]=i);else{var r=i.filter((function(e){return e.column==t}))[0];r?r.ascending?r.ascending=!r.ascending:(this.userMultiSorting[e]=i.filter((function(e){return e.column!=t})),this.userMultiSorting[e].length||(this.userMultiSorting={})):i.push({column:t,ascending:!0})}this.time=Date.now(),this.dispatch("sorted",function(t,e){var n=[JSON.parse(JSON.stringify(t))];return n=n.concat(e[t.column])}(this.orderBy,this.userMultiSorting))}},function(t,e,n){"use strict";t.exports=function(t,e){return this.opts.cellClasses[t]?this.opts.cellClasses[t].filter((function(t){return t.condition(e)})).map((function(t){return t.class})).join(" "):""}},function(t,e,n){"use strict";function i(t){return(i="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;if(this.opts.filterByColumn)for(var n in t){var r=this._getColumnName(n);if(this.isDateFilter(n))if(t[n]&&"object"===i(t[n])){var o="string"==typeof t[n].start?moment(t[n].start,"YYYY-MM-DD"):t[n].start,s="string"==typeof t[n].end?moment(t[n].end,"YYYY-MM-DD"):t[n].end;this._setDatepickerText(n,o,s)}else $(this.$el).find("#VueTables__"+$.escapeSelector(n)+"-filter").html(""+this.display("filterBy",{column:this.getHeading(n)})+"");else(e=this.$el.querySelector("[name='".concat(r,"']")))?e.value=t[n]:-1===this.columns.indexOf(n)&&console.error("vue-tables-2: Error in setting filter value. Column '".concat(n,"' does not exist."))}else(e=this.$el.querySelector(".VueTables__search__input"))&&(e.value=t)}},function(t,e,n){"use strict";t.exports=function(t){var e=Object.keys(this.userMultiSorting);return e.length&&this.orderBy.column!==t?!!this.userMultiSorting[e[0]].filter((function(e){return e.column==t})).length:this.orderBy.column===t}},function(t,e,n){"use strict";t.exports=function(t,e,n){if(this.$scopedSlots.child_row)return this.$scopedSlots.child_row({row:e,index:n});var i=this.opts.childRow;return"function"==typeof i?i.apply(this,[t,e]):t(i,{attrs:{data:e}})}},function(t,e,n){"use strict";t.exports=function(){this.displayColumnsDropdown=!this.displayColumnsDropdown}},function(t,e,n){"use strict";t.exports=function(t){return 1===this.userColumnsDisplay.length&&this.userColumnsDisplay[0]===t}},function(t,e,n){"use strict";t.exports=function(t){this.vuex||(this.setPage(t),this.dispatch("pagination",t))}},function(t,e,n){"use strict";t.exports=function(){this.orderBy.column!=this.opts.groupBy?this.setOrder(this.opts.groupBy,!0):this.setOrder(this.opts.groupBy,!this.orderBy.ascending)}},function(t,e,n){"use strict";t.exports=function(t){return void 0!==this.opts.initFilters[t]?this.opts.initFilters[t]:!(void 0===this.query[t]||!this.query[t].start)&&{start:moment(this.query[t].start,"YYYY-MM-DD HH:mm:ss"),end:moment(this.query[t].end,"YYYY-MM-DD HH:mm:ss")}}},function(t,e,n){"use strict";t.exports=function(t,e,n){var i=this.dateFormat(t);("string"==typeof t?$(this.$el).find("#VueTables__"+$.escapeSelector(t)+"-filter"):t).text(e.format(i)+" - "+n.format(i))}},function(t,e,n){"use strict";t.exports=function(t){return!this.opts.descOrderColumns.includes(t)}},function(t,e,n){"use strict";t.exports=function(t){return this.opts.dateFormatPerColumn.hasOwnProperty(t)?this.opts.dateFormatPerColumn[t]:this.opts.dateFormat}},function(t,e,n){"use strict";t.exports=function(){var t=this;if(this.opts.columnsDropdown){var e=function(t){return t.stopPropagation()},n=function(){t.displayColumnsDropdown&&(t.displayColumnsDropdown=!1)};this.$refs.columnsdropdown.addEventListener("click",e),document.addEventListener("click",n),this.$once("hook:beforeDestroy",(function(){document.removeEventListener("click",n),t.$refs.columnsdropdown.removeEventListener("click",e)}))}}},function(t,e,n){"use strict";t.exports=function(t,e){if(-1===e.indexOf("."))return t[e];var n=e.split("."),i=t[n[0]];if(!i)return"";for(var r=1;r=i[0])&&(!i[1]||t.windowWidth0)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,n){"use strict";var i=s(n(105)),r=s(n(106)),o=s(n(0));function s(t){return t&&t.__esModule?t:{default:t}}t.exports=function(t){var e={state:(0,i.default)(t),mutations:(0,r.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,n){"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,r.default)(!0,t.$store.state[t.name],e);return e};var i,r=(i=n(0))&&i.__esModule?i:{default:i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e,n,i="server"==t.source?(o(e={},"".concat(t.name,"/SET_DATA"),(function(e,n){var i=t.opts.responseAdapter.call(t,n);e.data=i.data,e.count=parseInt(i.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 r.default.recursive(!0,(o(n={},"".concat(t.name,"/PAGINATE"),(function(e,n){e.page=n,t.updateState("page",n),"server"==t.source&&t.getData(),t.commit("PAGINATION",n)})),o(n,"".concat(t.name,"/SET_FILTER"),(function(e,n){e.page=1,t.updateState("page",1),e.query=n,"server"==t.source&&t.getData()})),o(n,"".concat(t.name,"/PAGINATION"),(function(t,e){})),o(n,"".concat(t.name,"/SET_CUSTOM_FILTER"),(function(e,n){var i=n.filter,r=n.value;e.customQueries[i]=r,e.page=1,t.updateState("page",1),t.updateState("customQueries",e.customQueries),"server"==t.source&&t.getData()})),o(n,"".concat(t.name,"/SET_STATE"),(function(t,e){var n=e.page,i=e.query,r=e.customQueries,o=e.limit,s=e.orderBy;t.customQueries=r,t.query=i,t.page=n,t.limit=o,t.ascending=s.ascending,t.sortBy=s.column})),o(n,"".concat(t.name,"/SET_LIMIT"),(function(e,n){e.page=1,t.updateState("page",1),e.limit=n,"server"==t.source&&t.getData()})),o(n,"".concat(t.name,"/SORT"),(function(e,n){var i=n.column,r=n.ascending;e.ascending=r,e.sortBy=i,"server"==t.source&&t.getData()})),o(n,"".concat(t.name,"/SORTED"),(function(t,e){})),o(n,"".concat(t.name,"/ROW_CLICK"),(function(t,e){})),o(n,"".concat(t.name,"/FILTER"),(function(t,e){})),o(n,"".concat(t.name,"/LIMIT"),(function(t,e){})),n),i)};var i,r=(i=n(0))&&i.__esModule?i:{default:i};function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";t.exports=function(){return{framework:"bootstrap3",table:"table table-striped table-bordered table-hover",row:"row",column:"col-md-12",label:"",input:"form-control",select:"form-control",field:"form-group",inline:"form-inline",right:"pull-right",left:"pull-left",center:"text-center",contentCenter:"",small:"",nomargin:"",groupTr:"info",button:"btn btn-secondary",dropdown:{container:"dropdown",trigger:"dropdown-toggle",menu:"dropdown-menu",content:"",item:"",caret:"caret"},pagination:{nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active",disabled:"disabled"}}}},function(t,e,n){"use strict";t.exports=function(){return{framework:"bootstrap4",table:"table table-striped table-bordered table-hover",row:"row",column:"col-md-12",label:"",input:"form-control",select:"form-control",field:"form-group",inline:"form-inline",right:"float-right",left:"float-left",center:"text-center",contentCenter:"justify-content-center",nomargin:"m-0",groupTr:"table-info",small:"",button:"btn btn-secondary",dropdown:{container:"dropdown",trigger:"dropdown-toggle",menu:"dropdown-menu",content:"",item:"dropdown-item",caret:"caret"},pagination:{nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active",disabled:"disabled"}}}},function(t,e,n){"use strict";t.exports=function(){return{framework:"bulma",table:"table is-bordered is-striped is-hoverable is-fullwidth",row:"columns",column:"column is-12",label:"label",input:"input",select:"select",field:"field",inline:"is-horizontal",right:"is-pulled-right",left:"is-pulled-left",center:"has-text-centered",contentCenter:"is-centered",icon:"icon",small:"is-small",nomargin:"marginless",button:"button",groupTr:"is-selected",dropdown:{container:"dropdown",trigger:"dropdown-trigger",menu:"dropdown-menu",content:"dropdown-content",item:"dropdown-item",caret:"fa fa-angle-down"},pagination:{nav:"",count:"",wrapper:"pagination",list:"pagination-list",item:"",link:"pagination-link",next:"",prev:"",active:"is-current",disabled:""}}}},function(t,e,n){"use strict";var i,r=(i=n(0))&&i.__esModule?i:{default:i};t.exports=function(t,e,i,o){var s="VueTables__search_"+this.id,a="VueTables__dropdown-pagination_"+this.id,u="VueTables__limit_"+this.id,l=n(17).call(this,t),c=this.opts.caption?t("caption",[this.opts.caption]):"",f=this.hasGenericFilter?t("div",{class:"VueTables__search-field"},[t("label",{attrs:{for:s},class:i.label},[this.display("filter")]),e.normalFilter(i,s)]):"",h=!this.opts.hidePerPageSelect&&(l.length>1||this.opts.alwaysShowPerPageSelect)?t("div",{class:"VueTables__limit-field"},[t("label",{class:i.label,attrs:{for:u}},[this.display("limit")]),e.perPage(l,i.select,u)]):"",p=this.opts.pagination&&this.opts.pagination.dropdown?t("div",{class:"VueTables__pagination-wrapper"},[t("div",{class:"".concat(i.field," ").concat(i.inline," ").concat(i.right," VueTables__dropdown-pagination"),directives:[{name:"show",value:this.totalPages>1}]},[t("label",{attrs:{for:a}},[this.display("page")]),e.dropdownPagination(i.select,a)])]):"",d=this.opts.columnsDropdown?t("div",{class:"VueTables__columns-dropdown-wrapper"},[e.columnsDropdown(i)]):"",g=this.opts.footerHeadings?t("tfoot",[t("tr",[e.headings(i.right)])]):"",m=f||h||p||d||o.beforeFilter||o.afterFilter||o.beforeLimit||o.afterLimit,y=t("div",{class:i.row,directives:[{name:"show",value:m}]},[t("div",{class:i.column},[t("div",{class:"".concat(i.field," ").concat(i.inline," ").concat(i.left," VueTables__search")},[o.beforeFilter,f,o.afterFilter]),o.afterFilterWrapper,t("div",{class:"".concat(i.field," ").concat(i.inline," ").concat(i.right," VueTables__limit")},[o.beforeLimit,h,o.afterLimit]),p,d])]);return t("div",{class:"VueTables VueTables--"+this.source},[y,o.beforeTable,t("div",{class:"table-responsive"},[t("table",{class:"VueTables__table ".concat(this.opts.skin?this.opts.skin:i.table),attrs:{summary:this.opts.summary}},[c,t("thead",[o.prependHead,t("tr",[e.headings(i.right)]),o.beforeFilters,e.columnFilters(i),o.afterFilters]),g,o.beforeBody,t("tbody",[o.prependBody,e.rows(i),o.appendBody]),o.afterBody])]),o.afterTable,e.pagination((0,r.default)(i.pagination,{wrapper:"".concat(i.row," ").concat(i.column," ").concat(i.contentCenter),nav:i.center,count:"".concat(i.center," ").concat(i.column)})),e.dropdownPaginationCount()])}},function(t,e,n){"use strict";var i,r=(i=n(0))&&i.__esModule?i:{default:i};t.exports=function(t,e,i,o){var s="VueTables__search_"+this.id,a="VueTables__limit_"+this.id,u=n(17).call(this,t),l=this.opts.caption?t("caption",[this.opts.caption]):"",c=this.hasGenericFilter?t("div",{class:"VueTables__search-field"},[t("label",{attrs:{for:s},class:i.label},[this.display("filter")]),e.normalFilter(i,s)]):"",f=u.length>1?t("div",{class:"VueTables__limit-field"},[t("label",{class:i.label,attrs:{for:a}},[this.display("limit")]),e.perPage(u,i.select,a)]):"",h=this.opts.columnsDropdown?t("div",{class:"VueTables__columns-dropdown-wrapper"},[e.columnsDropdown(i)]):"",p=c||f||h||o.beforeFilter||o.afterFilter||o.beforeLimit||o.afterLimit,d=t("div",{class:i.row,directives:[{name:"show",value:p}]},[t("div",{class:i.column},[t("div",{class:"".concat(i.field," ").concat(i.inline," ").concat(i.left," VueTables__search")},[o.beforeFilter,c,o.afterFilter]),o.afterFilterWrapper,t("div",{class:"".concat(i.field," ").concat(i.inline," ").concat(i.right," VueTables__limit")},[o.beforeLimit,f,o.afterLimit]),h])]);return t("div",{class:"VueTables VueTables--"+this.source},[d,o.beforeTable,t("div",{class:"table-responsive"},[t("table",{class:"VueTables__table ".concat(this.opts.skin?this.opts.skin:i.table),attrs:{summary:this.opts.summary}},[l,t("thead",[o.prependHead,t("tr",[e.headings(i.right)]),o.beforeFilters,e.columnFilters(i),o.afterFilters]),t("tfoot",[t("tr",[t("td",{attrs:{colspan:this.colspan}},[e.pagination((0,r.default)(i.pagination,{list:"".concat(i.pagination.list," ").concat(i.right," ").concat(i.nomargin),count:"".concat(i.left)}))])])]),o.beforeBody,t("tbody",[o.prependBody,e.rows(i),o.appendBody]),o.afterBody])]),o.afterTable])}},function(t,e,n){"use strict";var i=o(n(113)),r=o(n(18));function o(t){return t&&t.__esModule?t:{default:t}}t.exports=function(t){var e=this;return function(n){var o;if("client"===e.source?(o=e.filteredData).length||"client"!==e.source||1===e.page||e.setPage(e.totalPages?e.totalPages:1):o=e.tableData,0===o.length){e.allColumns.length;return e.hasChildRow&&e.opts.showChildRowToggler&&0,t("tr",{class:"VueTables__no-results"},[t("td",{class:"text-center",attrs:{tabindex:"0",colspan:e.colspan}},[e.display(e.loading?"loading":"noResults")])])}var s,a,u,l,c,f,h,p=[],d=e.opts.uniqueKey,g=(e.Page-1)*e.limit;return o.map((function(o,m){if(e.opts.groupBy&&"client"===e.source&&o[e.opts.groupBy]!==l&&(c=e.getGroupSlot(o[e.opts.groupBy]),f=o[e.opts.groupBy],h=e.opts.toggleGroups?t("button",{class:n.button,on:{click:e.toggleGroup.bind(e,f)}},[f,t("span",{class:e.groupToggleIcon(f)})]):f,p.push(t("tr",{class:n.groupTr,on:{click:e._toggleGroupDirection.bind(e)}},[t("td",{attrs:{colspan:e.colspan}},[h,c])])),l=o[e.opts.groupBy]),!e.opts.toggleGroups||!e.collapsedGroups.includes(l)){if(m=g+m+1,s=[],e.hasChildRow&&e.opts.showChildRowToggler){var y=t("td",{attrs:{tabindex:"0"},on:{keypress:function(t){"Enter"===t.key&&e.toggleChildRow.bind(e,o[d])()},click:e.toggleChildRow.bind(e,o[d])}},[t("span",{class:"VueTables__child-row-toggler "+e.childRowTogglerClass(o[d])})]);e.opts.childRowTogglerFirst&&s.push(y)}e.allColumns.map((function(n){var i=e.$scopedSlots&&e.$scopedSlots[n];if(i)var a={row:o,column:n,index:m};e.opts.editableColumns.includes(n)&&(a.update=function(t,e){return function(n){var i=this,o=t[e];t[e]=function(t){if(t.target)return"checkbox"===t.target.type?t.target.checked:t.target.value;return t}(n);var s=(0,r.default)(this.data).map((function(e){return e[i.opts.uniqueKey]===t[i.opts.uniqueKey]?t:e}));this.$emit("input",s),this.$emit("update",{row:t,column:e,oldVal:o,newVal:t[e]})}}(o,n).bind(e),a.isEditing=function(t,e){return function(){var n=this;return this.editing.find((function(i){return i.id===t[n.opts.uniqueKey]&&i.column===e}))}}(o,n).bind(e),a.setEditing=function(t,e){return function(n){var i=this;n?this.editing.push({id:t[this.opts.uniqueKey],column:e,originalValue:t[e]}):this.editing=this.editing.filter((function(e){return e.id!==t[i.opts.uniqueKey]}))}}(o,n).bind(e),a.revertValue=function(t,e){return function(){var n=this,i=this.editing.find((function(e){return e.id===t[n.opts.uniqueKey]})).originalValue;t[e]=i}}(o,n).bind(e)),s.push(t("td",{class:"".concat(e.columnClass(n)," ").concat(e._cellClasses(n,o)).trim(),attrs:{tabindex:"0"}},[i?i(a):e.render(o,n,m,t)]))})),e.hasChildRow&&!e.opts.childRowTogglerFirst&&e.opts.showChildRowToggler&&s.push(y),u=e.opts.rowClassCallback?e.opts.rowClassCallback(o):"",a=e.opts.rowAttributesCallback?e.opts.rowAttributesCallback(o):{},p.push(t("tr",(0,i.default)([{attrs:a},{class:"VueTables__row ".concat(u),on:{click:e.rowWasClicked.bind(e,o,m)}}]),[s," "])),p.push(e.hasChildRow&&e.openChildRows.includes(o[d])?t("tr",{class:"VueTables__child-row ".concat(u)},[t("td",{attrs:{colspan:e.colspan,tabindex:"0"}},[e._getChildRowTemplate(t,o,m)])]):t())}})),p}}},function(t,e){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function i(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 r,o,s,a,u;for(s in e)if(r=t[s],o=e[s],r&&n.test(s))if("class"===s&&("string"==typeof r&&(u=r,t[s]=r={},r[u]=!0),"string"==typeof o&&(u=o,e[s]=o={},o[u]=!0)),"on"===s||"nativeOn"===s||"hook"===s)for(a in o)r[a]=i(r[a],o[a]);else if(Array.isArray(r))t[s]=r.concat(o);else if(Array.isArray(o))t[s]=[r].concat(o);else for(a in o)r[a]=o[a];else t[s]=e[s];return t}),{})}},function(t,e,n){"use strict";(function(t){ +var VueTables=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/dist/",r(r.s=25)}([function(t,e,r){(function(t){!function(e){var r=function(t){return i(!0===t,!1,arguments)};function n(t,e){if("object"!==o(t))return e;for(var r in e)"object"===o(t[r])&&"object"===o(e[r])?t[r]=n(t[r],e[r]):t[r]=e[r];return t}function i(t,e,i){var s=i[0],a=i.length;(t||"object"!==o(s))&&(s={});for(var u=0;u1?e-1:0),n=1;n2&&void 0!==arguments[2]?arguments[2]:1,n={vuex:!0,activeState:!1,userColumnsDisplay:[],userControlsColumns:!1,displayColumnsDropdown:!1,collapsedGroups:[]};if(t)return n;n=(0,i.default)(n,{vuex:!1,count:0,customQueries:{},query:null,page:r,limit:10,windowWidth:"undefined"!=typeof window?window.innerWidth:null,orderBy:{column:!1,ascending:!0}}),"server"==e&&(n.data=[]);return n};var n,i=(n=r(0))&&n.__esModule?n:{default:n}},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,e,r,i){var o=t.getElementsByTagName("tr")[0],s=o?Array.from(o.children):void 0;if(s){"object"===n(i)&&(s=s.filter((function(t){return i.includes(t.id.split("--")[1])}))),t.style.overflow="hidden";for(var a=t.offsetHeight,u=e&&r?1:0,l=e&&!r?s.length-2:s.length;u-1&&e[0]}t.exports=function(t){t.vuex?i(t):t.limit=t.opts.perPage,n(t.opts.columnsDisplay)||"undefined"==typeof window||(t.columnsDisplay=function(t){var e,r,n,i={};for(var a in t){n=s(t[a]);try{u=t[a],l=void 0,l=u.split("_"),r=l.length>1?l[1]:l[0],e=o(r,n),i[a]=e.concat([n])}catch(t){console.warn("Unknown device "+r)}}var u,l;return i}(t.opts.columnsDisplay),window.addEventListener("resize",function(){t.windowWidth=window.innerWidth}.bind(t)))}},function(t,e,r){"use strict";t.exports=function(){var t=this;return{count:function(){return t.count},rowWasClicked:this.rowWasClicked,render:this.render,opts:function(){return t.opts},limit:function(){return t.limit},setLimit:this.setLimit,perPageValues:function(){return t.perPageValues},page:function(){return t.page},id:this.id,theme:this.theme,display:this.display,origColumns:this.columns,allColumns:function(){return t.allColumns},sortableClass:this.sortableClass,getHeadingTooltip:this.getHeadingTooltip,getHeading:this.getHeading,sortable:this.sortable,sortableChevronClass:this.sortableChevronClass,orderByColumn:this.orderByColumn,filteredData:function(){return t.filteredData},tableData:function(){return t.tableData},source:this.source,colspan:function(){return t.colspan},setEditingCell:this._setEditingCell,revertValue:this._revertValue,updateValue:this._updateValue,editing:function(){return t.editing},hasChildRow:function(){return t.hasChildRow},getChildRowTemplate:this._getChildRowTemplate,openChildRows:function(){return t.openChildRows},vuex:this.vuex,name:this.name,setPage:this.setPage,totalPages:function(){return t.totalPages},query:function(){return t.query},filterable:this.filterable,filterType:this._filterType,columnClass:this.columnClass,search:this._search,getColumnName:this._getColumnName,onlyColumn:this._onlyColumn,toggleColumn:this.toggleColumn,toggleColumnsDropdown:this._toggleColumnsDropdown,displayColumnsDropdown:function(){return t.displayColumnsDropdown},childRowTogglerClass:this.childRowTogglerClass,toggleChildRow:this.toggleChildRow,componentsOverride:this.componentsOverride,getValue:this._getValue,cellClasses:this._cellClasses,toggleGroup:this.toggleGroup,groupToggleIcon:this.groupToggleIcon,getGroupSlot:this.getGroupSlot,toggleGroupDirection:this._toggleGroupDirection,collapsedGroups:function(){return t.collapsedGroups},userMultiSorting:function(){return t.userMultiSorting},hasMultiSort:this.hasMultiSort,orderBy:function(){return t.orderBy},isListFilter:this.isListFilter,optionText:this.optionText,dateFormat:this.dateFormat,formatDate:this.formatDate,tabIndex:function(){return t.tabIndex}}}},function(t,e,r){"use strict";t.exports=function(){return{framework:"bootstrap3",table:"table table-striped table-bordered table-hover",row:"row",column:"col-md-12",label:"",input:"form-control",select:"form-control",field:"form-group",inline:"form-inline",right:"pull-right",left:"pull-left",center:"text-center",contentCenter:"",small:"",nomargin:"",groupTr:"info",button:"btn btn-secondary",icon:"",dropdown:{container:"dropdown",trigger:"dropdown-toggle",menu:"dropdown-menu",content:"",item:"",caret:"caret"},pagination:{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=function(){return{framework:"bootstrap4",table:"table table-striped table-bordered table-hover",row:"row",column:"col-md-12",label:"",input:"form-control",select:"form-control",field:"form-group",inline:"form-inline",right:"float-right",left:"float-left",center:"text-center",contentCenter:"justify-content-center",nomargin:"m-0",groupTr:"table-info",small:"",button:"btn btn-secondary",dropdown:{container:"dropdown",trigger:"dropdown-toggle",menu:"dropdown-menu",content:"",item:"dropdown-item",caret:"caret"},pagination:{nav:"",count:"",wrapper:"",list:"pagination",item:"page-item",link:"page-link",next:"",prev:"",active:"active",disabled:"disabled",icon:""}}}},function(t,e,r){"use strict";t.exports=function(){return{framework:"bulma",table:"table is-bordered is-striped is-hoverable is-fullwidth",row:"columns",column:"column is-12",label:"label",input:"input",select:"select",field:"field",inline:"is-horizontal",right:"is-pulled-right",left:"is-pulled-left",center:"has-text-centered",contentCenter:"is-centered",icon:"icon",small:"is-small",nomargin:"marginless",button:"button",groupTr:"is-selected",dropdown:{container:"dropdown",trigger:"dropdown-trigger",menu:"dropdown-menu",content:"dropdown-content",item:"dropdown-item",caret:"fa fa-angle-down"},pagination:{nav:"",count:"",wrapper:"pagination",list:"pagination-list",item:"",link:"pagination-link",next:"",prev:"",active:"is-current",disabled:""}}}},function(t,e,r){"use strict";t.exports=function(){return this.$scopedSlots.default({source:this.source,theme:this.theme,opts:this.opts,perPageValues:this.perPageValues,totalPages:this.totalPages,slots:this.$parent.$slots,override:this.componentsOverride.dataTable})}},function(t,e,r){"use strict";t.exports=function(){return Math.ceil(this.count/this.limit)}},function(t,e,r){"use strict";var n,i=(n=r(1))&&n.__esModule?n:{default:n};var o=r(27),s=r(172);t.exports={ClientTable:o,ServerTable:s,Event:i.default}},function(t,e){t.exports=Vue},function(t,e,r){"use strict";var n=c(r(2)),i=c(r(3)),o=c(r(0)),s=c(r(4)),a=c(r(9)),u=c(r(10)),l=c(r(113));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=o.default.recursive(!0,(0,s.default)(),{name:"r-l-client-table",render:r(23),provide:d,props:{columns:{type:Array,required:!0},data:{type:Array,required:!0},name:{type:String,required:!1},options:{type:Object,required:!1,default:function(){return{}}}},created:function(){f(this),this.opts.toMomentFormat&&this.transformDateStringsToMoment(),this.vuex||(this.initOrderBy(),this.query=this.initQuery(),this.customQueries=this.initCustomFilters())},mounted:function(){var t=this;this._setFiltersDOM(this.query),this.opts.resizableColumns&&(0,u.default)(this.$el.querySelector("table"),this.hasChildRow,this.opts.childRowTogglerFirst),this.vuex||(this.registerClientFilters(),this.options.initialPage&&this.setPage(this.options.initialPage)),this.opts.groupBy&&!this.opts.orderBy&&(this.orderBy.column=this.opts.groupBy),this.loadState(),this.hasDateFilters()&&this.initDateFilters(),this.$watch("data",(function(){t.page>t.totalPages&&t.setPage(t.totalPages)}))},model:{prop:"data"},data:function(){return o.default.recursive(h(),{source:"client",theme:"string"==typeof m?p[m]:m(),globalOptions:e,componentsOverride:g,currentlySorting:{},time:Date.now()},(0,a.default)(c,"client",this.options.initialPage))},computed:{q:r(162),customQ:r(163),totalPages:r(24),filteredData:r(164),hasMultiSort:function(){return this.opts.clientMultiSorting}},methods:{transformDateStringsToMoment:r(165),registerClientFilters:r(166),search:r(167),defaultSort:r(170),getGroupSlot:r(171),toggleGroup:function(t,e){e.stopPropagation();var r=this.collapsedGroups.indexOf(t);r>=0?this.collapsedGroups.splice(r,1):this.collapsedGroups.push(t)},groupToggleIcon:function(t){var e=this.opts.sortIcon.base+" ";return e+=this.collapsedGroups.indexOf(t)>-1?this.opts.sortIcon.down:this.opts.sortIcon.up},loadState:function(){if(this.opts.saveState){if(!this.storage.getItem(this.stateKey))return this.initState(),void(this.activeState=!0);var t=JSON.parse(this.storage.getItem(this.stateKey));this.opts.filterable&&this.setFilter(t.query),this.setOrder(t.orderBy.column,t.orderBy.ascending),this.vuex?this.commit("SET_LIMIT",t.perPage):this.limit=t.perPage,this.setPage(t.page),this.activeState=!0,t.userControlsColumns&&(this.userColumnsDisplay=t.userColumnsDisplay,this.userControlsColumns=t.userControlsColumns)}}}}),y=c?(0,n.default)():(0,i.default)();return v=o.default.recursive(v,y),t.component("r-l-client-table",v),t.component("v-client-table",l.default),l.default}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){"use strict";t.exports={initQuery:r(30),resetQuery:r(31),initCustomFilters:r(32),initOptions:r(33),sortableClass:r(34),sortableChevronClass:r(35),display:r(36),orderByColumn:r(37),getHeading:r(38),getHeadingTooltip:r(40),sortable:r(41),serverSearch:r(5),initOrderBy:r(42),initDateFilters:r(43),setFilter:r(44),setPage:r(45),setOrder:r(46),filterable:r(47),isTextFilter:r(48),isDateFilter:r(49),isListFilter:r(50),highlightMatch:r(51),formatDate:r(52),hasDateFilters:r(53),optionText:r(54),render:r(55),rowWasClicked:r(56),setLimit:r(57),getOpenChildRows:r(58),dispatch:r(59),toggleChildRow:r(60),childRowTogglerClass:r(61),sendRequest:r(62),getResponseData:r(63),getSortFn:r(64),initState:r(65),updateState:r(66),columnClass:r(67),getName:r(68),toggleColumn:r(69),setUserMultiSort:r(70),_cellClasses:r(71),_setFiltersDOM:r(72),_currentlySorted:r(73),_getChildRowTemplate:r(74),_toggleColumnsDropdown:r(75),_onlyColumn:r(76),_onPagination:r(77),_toggleGroupDirection:r(78),_getInitialDateRange:r(79),_setDatepickerText:r(80),_initialOrderAscending:r(81),dateFormat:r(82),_setColumnsDropdownCloseListener:r(83),_getValue:r(84),_getColumnName:r(85),_shouldShowColumnOnInit:r(86),_setEditingCell:r(87),_revertValue:r(88),_updateValue:r(89),_filterType:r(95),_search:r(96)}},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(){var t=this.opts.initFilters;if(!this.opts.filterByColumn)return t.hasOwnProperty("GENERIC")?t.GENERIC:"";var e={};return(this.opts.filterable&&"object"==n(this.opts.filterable)?this.opts.filterable:this.columns).forEach(function(r){e[r]=function(t,e){return t.hasOwnProperty(e)?void 0===t[e].start?t[e]:{start:t[e].start.format("YYYY-MM-DD HH:mm:ss"),end:t[e].end.format("YYYY-MM-DD HH:mm:ss")}:""}(t,r)}.bind(this)),e}},function(t,e,r){"use strict";t.exports=function(){if(this.opts.filterByColumn){var t={};for(var e in this.query)t[e]=""}else t="";this.setFilter(t)}},function(t,e,r){"use strict";t.exports=function(){var t,e={},r=this.opts.initFilters;return this.opts.customFilters.forEach(function(n){t="client"==this.source?n.name:n,e[t]=r.hasOwnProperty(t)?r[t]:""}.bind(this)),e}},function(t,e,r){"use strict";var n=r(0);t.exports=function(t,e,r){return e&&(t=n.recursive(t,e)),r=n.recursive(t,r)}},function(t,e,r){"use strict";t.exports=function(t){var e=this.sortable(t)?"VueTables__sortable ":"";return e+=this.columnClass(t)}},function(t,e,r){"use strict";t.exports=function(t){var e=this.opts.sortIcon.base+" ";if(this.sortable(t)){if(this.opts.sortIcon.is&&!this._currentlySorted(t)&&(e+=this.opts.sortIcon.is+" "),this.hasMultiSort&&this.orderBy.column&&this.userMultiSorting[this.orderBy.column]){var r=this.userMultiSorting[this.orderBy.column].filter((function(e){return e.column===t}))[0];r&&(e+=r.ascending?this.opts.sortIcon.up:this.opts.sortIcon.down)}return t==this.orderBy.column&&(e+=1==this.orderBy.ascending?this.opts.sortIcon.up:this.opts.sortIcon.down),e}}},function(t,e,r){"use strict";t.exports=function(t,e){if(!this.opts.texts)return"";t=this.opts.texts[t];if(e)for(var r in e)t=t.replace("{"+r+"}",e[r]);return t}},function(t,e,r){"use strict";t.exports=function(t,e){this.sortable(t)&&(e&&e.shiftKey&&this.orderBy.column&&this.hasMultiSort?this.setUserMultiSort(t):(this.userMultiSorting={},this.orderBy.ascending=t==this.orderBy.column?!this.orderBy.ascending:this._initialOrderAscending(t),this.orderBy.column=t,this.updateState("orderBy",this.orderBy),this.dispatch("sorted",JSON.parse(JSON.stringify(this.orderBy)))),"server"==this.source&&this.getData())}},function(t,e,r){"use strict";var n,i=(n=r(39))&&n.__esModule?n:{default:n};t.exports=function(t,e){if("string"!=typeof t)return"";if(void 0!==this.$parent.$slots["h__".concat(t)])return this.$parent.$slots["h__".concat(t)];var r=(0,i.default)(t.split("_").join(" "));return this.opts.headings.hasOwnProperty(t)?"function"==typeof this.opts.headings[t]?e?this.opts.headings[t].call(this.$parent,e):r:this.opts.headings[t]:r}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}},function(t,e,r){"use strict";t.exports=function(t,e){if("string"!=typeof t)return"";return this.opts.headingsTooltips.hasOwnProperty(t)?"function"==typeof this.opts.headingsTooltips[t]?e?this.opts.headingsTooltips[t].call(this.$parent,e):"":this.opts.headingsTooltips[t]:""}},function(t,e,r){"use strict";t.exports=function(t){return!("boolean"!=typeof this.opts.sortable||!this.opts.sortable)||this.opts.sortable.indexOf(t)>-1}},function(t,e,r){"use strict";t.exports=function(){this.opts.orderBy&&(this.orderBy.column=this.opts.orderBy.column,this.orderBy.ascending=!this.opts.orderBy.hasOwnProperty("ascending")||this.opts.orderBy.ascending)}},function(t,e,r){"use strict";var n=r(0);t.exports=function(){if("undefined"!=typeof $&&void 0!==$(this.$el).daterangepicker){var t,e,r,i=this,o=this.vuex?JSON.parse(JSON.stringify(this.query)):this.query,s=function(t,e){return"client"==i.source?i.search(i.data,e):i.serverSearch(t,e)},a=n.recursive(this.opts.datepickerOptions,{autoUpdateInput:!1,singleDatePicker:!1});i.datepickerColumns.forEach((function(u){var l=i._getInitialDateRange(u);l?(i._setDatepickerText(u,l.start,l.end),l={startDate:l.start,endDate:l.end}):l={},t=$(i.$el).find("#VueTables__"+$.escapeSelector(u)+"-filter"),e=void 0!==i.opts.datepickerPerColumnOptions[u]?i.opts.datepickerPerColumnOptions[u]:{},e=n.recursive(e,{locale:{format:i.dateFormat(u)}}),r=n(!0,a),!1===e.ranges&&(r.ranges={}),t.daterangepicker(n.recursive(r,e,l)),t.on("apply.daterangepicker",(function(t,e){o[u]={start:e.startDate.format("YYYY-MM-DD HH:mm:ss"),end:e.endDate.format("YYYY-MM-DD HH:mm:ss")},i.vuex||(i.query=o),i._setDatepickerText(u,e.startDate,e.endDate),i.updateState("query",o),s(o,{target:{name:i._getColumnName(u),value:o[u]}})})),t.on("cancel.daterangepicker",(function(t,e){o[u]="",i.vuex||(i.query=o),e.setStartDate(moment()),e.setEndDate(moment()),i.updateState("query",o),$(this).html(""+i.display("filterBy",{column:i.getHeading(u)})+""),s(o,{target:{name:i._getColumnName(u),value:o[u]}})}))}))}else console.error("Date filters require jquery and daterangepicker")}},function(t,e,r){"use strict";var n=r(0);t.exports=function(t){if(this.opts.filterable)if(this.opts.filterByColumn&&"string"==typeof t)console.warn("vue-tables-2: Unable to set filter. Filter value must be an object (`filterByColumn` is set to `true`)");else if(this.opts.filterByColumn||"string"==typeof t){var e=this.opts.filterByColumn?n(this.query,t):t;this.vuex?this.commit("SET_FILTER",e):(this.query=e,this.setPage(1,!0)),this.updateState("query",e),this._setFiltersDOM(t),"server"==this.source&&this.getData()}else console.warn("vue-tables-2: Unable to set filter. Filter value must be a string (`filterByColumn` is set to `false`)");else console.warn("vue-tables-2: Unable to set filter. Filtering is disabled (filterable: false)")}},function(t,e,r){"use strict";t.exports=function(t,e){t=parseInt(t),this.page=t,this.updateState("page",t),this.dispatch("pagination",t),"server"!=this.source||e||this.getData()}},function(t,e,r){"use strict";t.exports=function(t,e){this.orderBy.column=t,this.orderBy.ascending=e,this.updateState("orderBy",{column:t,ascending:e}),"server"==this.source&&this.getData()}},function(t,e,r){"use strict";t.exports=function(t){return!!this.opts.filterable&&("boolean"==typeof this.opts.filterable&&this.opts.filterable||this.opts.filterable.indexOf(t)>-1)}},function(t,e,r){"use strict";t.exports=function(t){return this.query.hasOwnProperty(t)&&-1==this.opts.dateColumns.indexOf(t)&&!this.opts.listColumns.hasOwnProperty(t)}},function(t,e,r){"use strict";t.exports=function(t){return this.query.hasOwnProperty(t)&&this.opts.dateColumns.indexOf(t)>-1}},function(t,e,r){"use strict";t.exports=function(t){return this.opts.listColumns.hasOwnProperty(t)}},function(t,e,r){"use strict";t.exports=function(t,e,r){var n,i=this.opts.filterByColumn?this.query[e]:this.query;return i?r("span",{class:"VueTables__highlight"},function(t,e,r){return String(t).split(e).map((function(t){return e.test(t)?r("b",{},t):t}))}(t,i=new RegExp("("+("string"==typeof(n=i)?n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"):n)+")","i"),r)):t}},function(t,e,r){"use strict";var n=r(6);t.exports=function(t,e){return n(t)?t.format(e):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)}var i=r(7).default;t.exports=function(){var t=this.opts;return t.dateColumns.length&&t.filterByColumn&&("boolean"==typeof t.filterable&&t.filterable||"object"==n(t.filterable)&&i(t.filterable,t.dateColumns).length)}},function(t,e,r){"use strict";t.exports=function(t,e){var r=this.listColumnsObject[e];return void 0===r[t]?t:r[t]}},function(t,e,r){"use strict";t.exports=function(t,e,r,n){var i=this._getValue(t,e);if(-1==this.templatesKeys.indexOf(e))return void 0!==i&&this.opts.highlightMatches&&-1!==this.filterableColumns.indexOf(e)?this.highlightMatch(i,e,n):i;var o=this.opts.templates[e];return o="function"==typeof o?o.apply(this.$root,[n,t,r,e]):n(o,{attrs:{data:t,column:e,index:r}})}},function(t,e,r){"use strict";t.exports=function(t,e,r){var n,i=this.opts.uniqueKey;n="client"==this.source&&void 0!==t[i]?this.tableData.filter((function(e){return t[i]===e[i]}))[0]:t,this.dispatch("row-click",{row:n,index:e,event:r})}},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){this.limit="object"===n(t)?t.target.value:t,this.updateState("perPage",this.limit),this.dispatch("limit",parseInt(this.limit)),this.setPage(1)}},function(t,e,r){"use strict";t.exports=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!this.opts.childRow||"function"==typeof this.opts.childRow)throw new Error("vue-tables-2: Child row undefined or not a component");var r=e?this.openChildRows.filter((function(t){return e.includes(t)})):this.openChildRows;return r.length?this.$parent.$refs.vt_table.$refs.vt_table_body.$children[0].$children.filter((function(e){return"VtChildRow"===e.$options.name&&r.includes(e.$children[0].$children[0].data[t.opts.uniqueKey])})).map((function(t){return t.$children[0].$children[0]})):[]}},function(t,e,r){"use strict";var n,i=(n=r(1))&&n.__esModule?n:{default:n};t.exports=function(t,e){if(this.vuex){if(t.split("::").length>1)return;this.commit(t.toUpperCase().replace("-","_"),e)}this.$parent.$emit(t,e),i.default.$emit("vue-tables.".concat(t),e),this.name&&i.default.$emit("vue-tables.".concat(this.name,".").concat(t),e)}},function(t,e,r){"use strict";t.exports=function(t,e){if(e&&e.stopPropagation(),this.openChildRows.includes(t)){var r=this.openChildRows.indexOf(t);this.openChildRows.splice(r,1)}else this.openChildRows.push(t)}},function(t,e,r){"use strict";t.exports=function(t){return this.openChildRows.includes(t)?"VueTables__child-row-toggler--open":"VueTables__child-row-toggler--closed"}},function(t,e,r){"use strict";t.exports=function(t){if("function"==typeof this.opts.requestFunction)return this.opts.requestFunction.call(this,t);if("undefined"!=typeof axios)return axios.get(this.url,{params:t}).catch(function(t){this.dispatch("error",t)}.bind(this));if(void 0!==this.$http)return this.$http.get(this.url,{params:t}).then(function(t){return t.json()}.bind(this),function(t){this.dispatch("error",t)}.bind(this));if("undefined"!=typeof $)return $.getJSON(this.url,t).fail(function(t){this.dispatch("error",t)}.bind(this));throw"vue-tables: No supported ajax library was found. (jQuery, axios or vue-resource). To use a different library you can write your own request function (see the `requestFunction` option)"}},function(t,e,r){"use strict";t.exports=function(t){return"undefined"!=typeof axios?t.data:t}},function(t,e,r){"use strict";t.exports=function(t){var e=this.orderBy.ascending;return this.currentlySorting={column:t,ascending:e},void 0===this.opts.customSorting[t]?this.defaultSort(t,e):this.opts.customSorting[t](e)}},function(t,e,r){"use strict";t.exports=function(){var t={page:1,query:this.query,orderBy:this.orderBy,perPage:this.opts.perPage,customQueries:this.customQueries};return this.storage.setItem(this.stateKey,JSON.stringify(t)),t}},function(t,e,r){"use strict";t.exports=function(t,e){if(this.opts.saveState&&this.activeState){try{var r=JSON.parse(this.storage.getItem(this.stateKey))}catch(t){r=this.initState()}r[t]=e,this.storage.setItem(this.stateKey,JSON.stringify(r))}}},function(t,e,r){"use strict";t.exports=function(t){var e=this.opts.columnsClasses;return e.hasOwnProperty(t)?e[t]:""}},function(t,e,r){"use strict";t.exports=function(t){return t?((t=t.split("__")).shift(),t.join("__").split("@@@").join(".")):t}},function(t,e,r){"use strict";t.exports=function(t){var e=this;if(this.userControlsColumns||(this.userColumnsDisplay=JSON.parse(JSON.stringify(this.allColumns)),this.userControlsColumns=!0),this.userColumnsDisplay.includes(t)){if(1===this.userColumnsDisplay.length)return;var r=this.userColumnsDisplay.indexOf(t);this.userColumnsDisplay.splice(r,1)}else this.userColumnsDisplay.push(t);this.updateState("userControlsColumns",!0),this.updateState("userColumnsDisplay",this.userColumnsDisplay),this.$nextTick((function(){e._setFiltersDOM(e.query)}))}},function(t,e,r){"use strict";t.exports=function(t){var e=this.orderBy.column,r=this.orderBy.ascending;this.userMultiSorting[e]||this.$set(this.userMultiSorting,e,[]);var n=this.userMultiSorting[e];if(e===t)!n.length||r?this.orderBy.ascending=!this.orderBy.ascending:(this.orderBy=n.shift(),this.userMultiSorting={},this.$set(this.userMultiSorting,this.orderBy.column,n));else{var i=n.filter((function(e){return e.column==t}))[0];i?i.ascending?i.ascending=!i.ascending:(this.$set(this.userMultiSorting,e,n.filter((function(e){return e.column!=t}))),this.userMultiSorting[e].length||(this.userMultiSorting={})):n.push({column:t,ascending:!0})}this.time=Date.now(),this.dispatch("sorted",function(t,e){var r=[JSON.parse(JSON.stringify(t))];return r=r.concat(e[t.column])}(this.orderBy,this.userMultiSorting))}},function(t,e,r){"use strict";t.exports=function(t,e){return this.opts.cellClasses[t]?this.opts.cellClasses[t].filter((function(t){return t.condition(e)})).map((function(t){return t.class})).join(" "):""}},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;if(this.opts.filterByColumn)for(var r in t){var i=this._getColumnName(r);if(this.isDateFilter(r))if(t[r]&&"object"===n(t[r])){var o="string"==typeof t[r].start?moment(t[r].start,"YYYY-MM-DD"):t[r].start,s="string"==typeof t[r].end?moment(t[r].end,"YYYY-MM-DD"):t[r].end;this._setDatepickerText(r,o,s)}else $(this.$el).find("#VueTables__"+$.escapeSelector(r)+"-filter").html(""+this.display("filterBy",{column:this.getHeading(r)})+"");else(e=this.$el.querySelector("[name='".concat(i,"']")))?e.value=t[r]:-1===this.columns.indexOf(r)&&console.error("vue-tables-2: Error in setting filter value. Column '".concat(r,"' does not exist."))}else(e=this.$el.querySelector(".VueTables__search__input"))&&(e.value=t)}},function(t,e,r){"use strict";t.exports=function(t){var e=Object.keys(this.userMultiSorting);return e.length&&this.orderBy.column!==t?!!this.userMultiSorting[e[0]].filter((function(e){return e.column==t})).length:this.orderBy.column===t}},function(t,e,r){"use strict";t.exports=function(t,e,r,n){if(n)return n({row:e,index:r});var i=this.opts.childRow;return"function"==typeof i?i.apply(this,[t,e]):t(i,{attrs:{data:e}})}},function(t,e,r){"use strict";t.exports=function(){this.displayColumnsDropdown=!this.displayColumnsDropdown}},function(t,e,r){"use strict";t.exports=function(t){return 1===this.userColumnsDisplay.length&&this.userColumnsDisplay[0]===t}},function(t,e,r){"use strict";t.exports=function(t){this.vuex||(this.setPage(t),this.dispatch("pagination",t))}},function(t,e,r){"use strict";t.exports=function(){this.orderBy.column!=this.opts.groupBy?this.setOrder(this.opts.groupBy,!0):this.setOrder(this.opts.groupBy,!this.orderBy.ascending)}},function(t,e,r){"use strict";t.exports=function(t){return void 0!==this.opts.initFilters[t]?this.opts.initFilters[t]:!(void 0===this.query[t]||!this.query[t].start)&&{start:moment(this.query[t].start,"YYYY-MM-DD HH:mm:ss"),end:moment(this.query[t].end,"YYYY-MM-DD HH:mm:ss")}}},function(t,e,r){"use strict";t.exports=function(t,e,r){var n=this.dateFormat(t);("string"==typeof t?$(this.$el).find("#VueTables__"+$.escapeSelector(t)+"-filter"):t).text(e.format(n)+" - "+r.format(n))}},function(t,e,r){"use strict";t.exports=function(t){return!this.opts.descOrderColumns.includes(t)}},function(t,e,r){"use strict";t.exports=function(t){return this.opts.dateFormatPerColumn.hasOwnProperty(t)?this.opts.dateFormatPerColumn[t]:this.opts.dateFormat}},function(t,e,r){"use strict";t.exports=function(){var t=this;if(this.opts.columnsDropdown){var e=function(t){return t.stopPropagation()},r=function(){t.displayColumnsDropdown&&(t.displayColumnsDropdown=!1)};this.$refs.columnsdropdown.addEventListener("click",e),document.addEventListener("click",r),this.$once("hook:beforeDestroy",(function(){document.removeEventListener("click",r),t.$refs.columnsdropdown.removeEventListener("click",e)}))}}},function(t,e,r){"use strict";t.exports=function(t,e){if(-1===e.indexOf("."))return t[e];var r=e.split("."),n=t[r[0]];if(!n)return"";for(var i=1;i * @license MIT */ -var i=n(116),r=n(117),o=n(118);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 d(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 n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return N(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return L(t).length;default:if(i)return N(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return D(this,e,n);case"utf8":case"utf-8":return T(this,e,n);case"ascii":return O(this,e,n);case"latin1":case"binary":return E(this,e,n);case"base64":return P(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function m(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function y(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=u.from(e,i)),u.isBuffer(e))return 0===e.length?-1:v(t,e,n,i,r);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,i,r){var o,s=1,a=t.length,u=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,n/=2}function l(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(r){var c=-1;for(o=n;oa&&(n=a-u),o=n;o>=0;o--){for(var f=!0,h=0;hr&&(i=r):i=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var s=0;s>8,r=n%256,o.push(r),o.push(i);return o}(e,t.length-n),t,n,i)}function P(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function T(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r239?4:l>223?3:l>191?2:1;if(r+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(o=t[r+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=t[r+1],s=t[r+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[r+1],s=t[r+2],a=t[r+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,f=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),r+=f}return function(t){var e=t.length;if(e<=B)return String.fromCharCode.apply(String,t);var n="",i=0;for(;i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},u.prototype.compare=function(t,e,n,i,r){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(r>>>=0)-(i>>>=0),s=(n>>>=0)-(e>>>=0),a=Math.min(o,s),l=this.slice(i,r),c=t.slice(e,n),f=0;fr)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return w(this,t,e,n);case"ascii":return _(this,t,e,n);case"latin1":case"binary":return S(this,t,e,n);case"base64":return C(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var B=4096;function O(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;ri)&&(n=i);for(var r="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function A(t,e,n,i,r,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function M(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(t.length-n,2);r>>8*(i?r:1-r)}function F(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(t.length-n,4);r>>8*(i?r:3-r)&255}function $(t,e,n,i,r,o){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function I(t,e,n,i,o){return o||$(t,0,n,4),r.write(t,e,n,i,23,4),n+4}function q(t,e,n,i,o){return o||$(t,0,n,8),r.write(t,e,n,i,52,8),n+8}u.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e0&&(r*=256);)i+=this[t+--e]*r;return i},u.prototype.readUInt8=function(t,e){return e||k(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||k(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||k(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||k(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||k(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||k(t,e,this.length);for(var i=this[t],r=1,o=0;++o=(r*=128)&&(i-=Math.pow(2,8*e)),i},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||k(t,e,this.length);for(var i=e,r=1,o=this[t+--i];i>0&&(r*=256);)o+=this[t+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||k(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||k(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||k(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||k(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||k(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||k(t,4,this.length),r.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||k(t,4,this.length),r.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||k(t,8,this.length),r.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||k(t,8,this.length),r.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,i){(t=+t,e|=0,n|=0,i)||A(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+r]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||A(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,n){return t=+t,e|=0,n||A(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||A(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||A(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):F(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||A(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):F(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);A(this,t,e,n,r-1,-r)}var o=0,s=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+n},u.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);A(this,t,e,n,r-1,-r)}var o=n-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+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||A(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,n){return t=+t,e|=0,n||A(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||A(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||A(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):F(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||A(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):F(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return I(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return I(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return q(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return q(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e=0;--r)t[r+e]=this[r+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===i){(e-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function L(t){return i.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(j,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function V(t,e,n,i){for(var r=0;r=e.length||r>=t.length);++r)e[r+n]=t[r];return r}}).call(this,n(115))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";e.byteLength=function(t){var e=l(t),n=e[0],i=e[1];return 3*(n+i)/4-i},e.toByteArray=function(t){var e,n,i=l(t),s=i[0],a=i[1],u=new o(function(t,e,n){return 3*(e+n)/4-n}(0,s,a)),c=0,f=a>0?s-4:s;for(n=0;n>16&255,u[c++]=e>>8&255,u[c++]=255&e;2===a&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,u[c++]=255&e);1===a&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e);return u},e.fromByteArray=function(t){for(var e,n=t.length,r=n%3,o=[],s=0,a=n-r;sa?a:s+16383));1===r?(e=t[n-1],o.push(i[e>>2]+i[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],o.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"="));return o.join("")};for(var i=[],r=[],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 n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,n){for(var r,o,s=[],a=e;a>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,i,r){var o,s,a=8*r-i-1,u=(1<>1,c=-7,f=n?r-1:0,h=n?-1:1,p=t[e+f];for(f+=h,o=p&(1<<-c)-1,p>>=-c,c+=a;c>0;o=256*o+t[e+f],f+=h,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=i;c>0;s=256*s+t[e+f],f+=h,c-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,i),o-=l}return(p?-1:1)*s*Math.pow(2,o-i)},e.write=function(t,e,n,i,r,o){var s,a,u,l=8*o-r-1,c=(1<>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:o-1,d=i?1:-1,g=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+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(e*u-1)*Math.pow(2,r),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,r),s=0));r>=8;t[n+p]=255&a,p+=d,a/=256,r-=8);for(s=s<0;t[n+p]=255&s,p+=d,s/=256,l-=8);t[n+p-d]|=128*g}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";var i=n(2);t.exports=function(t){var e=this;return function(n,r){var o="client"==e.source?e.search.bind(e,e.data):e.serverSearch.bind(e);return t("input",{class:"VueTables__search__input ".concat(n.input," ").concat(n.small),attrs:{type:"text",placeholder:e.display("filterPlaceholder"),id:r,autocomplete:"off"},on:{keyup:e.opts.debounce?i(o,e.opts.debounce):o}})}}},function(t,e,n){"use strict";n(2);t.exports=function(t){var e=this;return function(n,i){for(var r=[],o=1;o<=e.totalPages;o++){var s=e.page==o;r.push(t("option",{domProps:{value:o,selected:s}},[o]))}return t("select",{class:"".concat(n," dropdown-pagination"),directives:[{name:"show",value:e.totalPages>1}],attrs:{name:"page",id:i},ref:"page",domProps:{value:e.page},on:{change:e.setPage.bind(e,null,!1)}},[r])}}},function(t,e,n){"use strict";t.exports=function(t){var e=this;return function(){if(e.count>0&&e.opts.pagination.dropdown){var n=parseInt(e.limit),i=(e.Page-1)*n+1,r=e.Page==e.totalPages?e.count:i+n-1,o=e.opts.texts.count.split("|"),s=o[Math.min(1==e.count?2:1==e.totalPages?1:0,o.length-1)].replace("{count}",e.count).replace("{from}",i).replace("{to}",r);return t("div",{class:"VuePagination"},[t("p",{class:"VuePagination__count"},[s])])}return""}}},function(t,e,n){"use strict";var i;(i=n(0))&&i.__esModule;function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}t.exports=function(t){var e=this;return function(i){if(!e.opts.filterByColumn||!e.opts.filterable)return"";var o=n(123).call(e,t,i.input),s=n(124).call(e,t),a=n(125).call(e,t,i.select),u=[];return e.hasChildRow&&e.opts.childRowTogglerFirst&&e.opts.showChildRowToggler&&u.push(t("th")),e.allColumns.map((function(n){var i="";if(e.filterable(n))switch(!0){case e.isTextFilter(n):i=o(n);break;case e.isDateFilter(n):i=s(n);break;case e.isListFilter(n):i=a(n)}void 0!==e.$slots["filter__".concat(n)]&&(i=i?t("div",[i,e.$slots["filter__".concat(n)]]):e.$slots["filter__".concat(n)]),u.push(t("th",{class:e.columnClass(n)},[t("div",r({class:"VueTables__column-filter"},"class","VueTables__"+n+"-filter-wrapper"),[i])]))})),e.hasChildRow&&!e.opts.childRowTogglerFirst&&e.opts.showChildRowToggler&&u.push(t("th")),t("tr",{class:"VueTables__filters-row"},[u])}}},function(t,e,n){"use strict";var i=n(2);t.exports=function(t,e){var n=this,r="client"==this.source?this.search.bind(this,this.data):this.serverSearch.bind(this);if(this.opts.debounce)var o=i(r,this.opts.debounce),s=function(t){9!==t.keyCode&&(13===t.keyCode?(o.clear(),r.apply(void 0,arguments)):o.apply(void 0,arguments))};return function(i){return t("input",{on:{keyup:n.opts.debounce?s:r},class:e,attrs:{name:n._getColumnName(i),type:"text",placeholder:n.display("filterBy",{column:n.getHeading(i)}),autocomplete:"off"}})}}},function(t,e,n){"use strict";t.exports=function(t){var e=this;return function(n){return t("div",{class:"VueTables__date-filter",attrs:{id:"VueTables__"+n+"-filter"}},[t("span",{class:"VueTables__filter-placeholder"},[e.display("filterBy",{column:e.getHeading(n)})])])}}},function(t,e,n){"use strict";t.exports=function(t,e){var n=this;return function(i){var r,o=[],s="client"==n.source?n.search.bind(n,n.data):n.serverSearch.bind(n);return n.opts.listColumns[i].filter((function(t){return!t.hide})).map((function(e){r=e.id==n.query[i]&&""!==n.query[i],o.push(t("option",{domProps:{value:e.id,selected:r}},[e.text]))})),t("div",{class:"VueTables__list-filter",attrs:{id:"VueTables__"+i+"-filter"}},[t("select",{class:e,on:{change:s},attrs:{name:n._getColumnName(i)},domProps:{value:n.query[i]}},[t("option",{attrs:{value:""}},[n.display("defaultOption",{column:n.opts.headings[i]?n.opts.headings[i]:i})]),o])])}}},function(t,e,n){"use strict";t.exports=function(t){var e=this;return function(n){if(e.opts.pagination&&e.opts.pagination.dropdown)return"";var i={theme:n,chunk:e.opts.pagination.chunk,chunksNavigation:e.opts.pagination.nav,edgeNavigation:e.opts.pagination.edge,texts:{count:e.opts.texts.count,first:e.opts.texts.first,last:e.opts.texts.last}},r=e.vuex?e.name:e.id;return t("pagination",{ref:"pagination",attrs:{options:i,for:r,vuex:e.vuex,records:e.count,"per-page":parseInt(e.limit)},on:{paginate:e._onPagination.bind(e)}})}}},function(t,e,n){"use strict";t.exports=function(t){var e=this;return function(i){var r=e,o=n(128)(t,i),s=[];return e.hasChildRow&&e.opts.childRowTogglerFirst&&e.opts.showChildRowToggler&&s.push(t("th")),e.allColumns.map(function(e){s.push(t("th",{on:{keypress:function(t){"Enter"===t.key&&r.orderByColumn.bind(r,e,t)()},click:function(t){"resize-handle"!==t.target.className&&r.orderByColumn.bind(r,e,t)()}},attrs:{id:"VueTables_th--".concat(e),tabindex:"0"},class:this.sortableClass(e)},[t("span",{class:"VueTables__heading",attrs:{title:this.getHeadingTooltip(e,t)}},[this.getHeading(e,t)]),o.call(this,e)]))}.bind(e)),e.hasChildRow&&!e.opts.childRowTogglerFirst&&e.opts.showChildRowToggler&&s.push(t("th")),s}}},function(t,e,n){"use strict";t.exports=function(t,e){return function(n){return this.sortable(n)?t("span",{class:"VueTables__sort-icon ".concat(e," ").concat(this.sortableChevronClass(n))}):""}}},function(t,e,n){"use strict";t.exports=function(t){var e=this;return function(n,i,r){return t("select",{class:i,attrs:{name:"limit",id:r},domProps:{value:e.limit},on:{change:e.setLimit.bind(e)}},[n])}}},function(t,e,n){"use strict";var i=n(131),r=n(132);t.exports=function(t){var e=this;return function(n){var o=e.columns.map((function(i){return r(t,n,t("a",{class:n.dropdown.item,attrs:{href:"#"},on:{click:function(){return e.toggleColumn(i)}}},[t("input",{attrs:{type:"checkbox",disabled:e._onlyColumn(i)},domProps:{value:i,checked:e.allColumns.includes(i)}}),e.getHeading(i)]))}));return t("div",{ref:"columnsdropdown",class:"".concat(n.dropdown.container," ").concat(n.right," VueTables__columns-dropdown")},[t("button",{attrs:{type:"button"},class:"".concat(n.button," ").concat(n.dropdown.trigger),on:{click:e._toggleColumnsDropdown.bind(e)}},[e.display("columns"),t("span",{class:"".concat(n.icon," ").concat(n.small)},[t("i",{class:n.dropdown.caret})])]),i.call(e,t,n,o)])}}},function(t,e,n){"use strict";t.exports=function(t,e,n){return"bulma"===e.framework?t("div",{class:e.dropdown.menu,style:this.displayColumnsDropdown?"display:block":"display:none"},[t("div",{class:e.dropdown.content},[n])]):"bootstrap4"===e.framework?t("div",{class:e.dropdown.menu,style:this.displayColumnsDropdown?"display:block":"display:none"},[n]):t("ul",{class:e.dropdown.menu,style:this.displayColumnsDropdown?"display:block":"display:none"},[n])}},function(t,e,n){"use strict";t.exports=function(t,e,n){return"bulma"===e.framework?n:t("li",[n])}},function(t,e,n){"use strict";t.exports=function(){return{beforeFilters:this.$slots.beforeFilters?this.$slots.beforeFilters:"",afterFilters:this.$slots.afterFilters?this.$slots.afterFilters:"",prependHead:this.$slots.prependHead?this.$slots.prependHead:"",beforeBody:this.$slots.beforeBody?this.$slots.beforeBody:"",prependBody:this.$slots.prependBody?this.$slots.prependBody:"",appendBody:this.$slots.appendBody?this.$slots.appendBody:"",afterBody:this.$slots.afterBody?this.$slots.afterBody:"",beforeFilter:this.$slots.beforeFilter?this.$slots.beforeFilter:"",afterFilter:this.$slots.afterFilter?this.$slots.afterFilter:"",afterFilterWrapper:this.$slots.afterFilterWrapper?this.$slots.afterFilterWrapper:"",beforeSearch:this.$slots.beforeSearch?this.$slots.beforeSearch:"",beforeLimit:this.$slots.beforeLimit?this.$slots.beforeLimit:"",afterLimit:this.$slots.afterLimit?this.$slots.afterLimit:"",beforeTable:this.$slots.beforeTable?this.$slots.beforeTable:"",afterTable:this.$slots.afterTable?this.$slots.afterTable:""}}},function(t,e,n){"use strict";t.exports=function(){return this.opts.filterByColumn?JSON.stringify(this.query):this.query}},function(t,e,n){"use strict";t.exports=function(){return JSON.stringify(this.customQueries)}},function(t,e,n){"use strict";var i=n(18);t.exports={get:function(){var t=i(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&&(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 n=(this.page-1)*this.limit;return this.allFilteredData=JSON.parse(JSON.stringify(t)),t=t.splice(n,this.limit),this.applyFilters(t)},set:function(t){console.log(t)}}},function(t,e,n){"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,n){"use strict";var i,r=(i=n(1))&&i.__esModule?i:{default:i};t.exports=function(){var t=this,e="vue-tables";this.name&&(e+="."+this.name),this.opts.customFilters.forEach((function(n){r.default.$off("".concat(e,".filter::").concat(n.name)),r.default.$on("".concat(e,".filter::").concat(n.name),(function(e){t.customQueries[n.name]=e,t.updateState("customQueries",t.customQueries)}))}))}},function(t,e,n){"use strict";function i(t){return(i="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 r=n(140),o=n(10),s=n(141);t.exports=function(t,e){if(e){var n=this.query;this.setPage(1,!0);var a=this.getName(e.target.name),u="object"===i(e.target.value)?e.target.value:""+e.target.value;a?n[a]=u:n=u,this.vuex?this.commit("SET_FILTER",n):this.query=n,this.updateState("query",n),a?(this.dispatch("filter",{name:a,value:u}),this.dispatch("filter::".concat(a),u)):this.dispatch("filter",u)}var l,c,f,h,p,d=this.query,g=d?1:0;if(!this.opts)return t;this.opts.filterByColumn&&(g=r(d));t=s(t,this.opts.customFilters,this.customQueries);return g?t.filter(function(t,e){return l=0,this.filterableColumns.forEach(function(e){h=this.opts.dateColumns.indexOf(e)>-1&&this.opts.filterByColumn,p=this.isListFilter(e)&&this.opts.filterByColumn,f=this.dateFormat(e),u=this._getValue(t,e),o(u)&&!h&&(u=u.format(f)),(c=function(t){return t?"string"==typeof t?t.toLowerCase():t:""}(c=this.opts.filterByColumn?d[e]:d))&&(this.opts.filterAlgorithm[e]?this.opts.filterAlgorithm[e](t,this.opts.filterByColumn?d[e]:d)&&l++:function t(e,n,r){["string","number","boolean"].indexOf(i(n))>-1&&(n=String(n).toLowerCase());if(r)return n==e;if("string"==typeof n)return n.indexOf(e)>-1;if(o(n)){var s=moment(e.start,"YYYY-MM-DD HH:mm:ss"),a=moment(e.end,"YYYY-MM-DD HH:mm:ss");return n>=s&&n<=a}if("object"===i(n)){for(var u in n)if(t(e,n[u]))return!0;return!1}return n>=s&&n<=a}(c,u,p)&&l++)}.bind(this)),l>=g}.bind(this)):t}},function(t,e,n){"use strict";function i(t){return(i="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 n in t){("object"==i(t[n])||t[n]&&(!isNaN(t[n])||t[n].trim()))&&e++}return e}},function(t,e,n){"use strict";t.exports=function(t,e,n){var i;return t.filter((function(t){return i=!0,e.forEach((function(e){var r=n[e.name];r&&!e.callback(t,r)&&(i=!1)})),i}))}},function(t,e,n){"use strict";t.exports=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,i=this.defaultSort,r=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)||"",f=s._getValue(u,t)||"",h=e?1:-1;if("string"==typeof c&&(c=c.toLowerCase()),"string"==typeof f&&(f=f.toLowerCase()),c===f&&r&&r[n+1]){var p=r[n+1];return l=void 0!==p.ascending?p.ascending:p.matchDir?o:!o,i(p.column,l,n+1)(a,u)}return c>f?h:-h}}},function(t,e,n){"use strict";t.exports=function(t){if(this.$scopedSlots&&this.$scopedSlots.__group_meta){var e=this.opts.groupMeta.find((function(e){return e.value===t}));return e?this.$scopedSlots.__group_meta(e):""}return""}},function(t,e,n){"use strict";var i=c(n(0)),r=c(n(12)),o=c(n(6)),s=c(n(7)),a=c(n(8)),u=n(4),l=c(n(13));function c(t){return t&&t.__esModule?t:{default:t}}var f=n(14),h=n(15),p=n(16);e.install=function(t,e,c){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"bootstrap3",g=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"default",m=c?(0,o.default)("server"):(0,s.default)(),y=i.default.recursive(!0,(0,a.default)(),{name:"server-table",components:{Pagination:u.Pagination},render:p.call(this,g,d),props:{columns:{type:Array,required:!0},url:{type:String},name:{type:String,required:!1},options:{type:Object,required:!1,default:function(){return{}}}},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';h(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,l.default)(this.$el.querySelector("table"),this.hasChildRow,this.opts.childRowTogglerFirst,this.opts.resizableColumns),this._setColumnsDropdownCloseListener(),this.vuex||(this.registerServerFilters(),this.options.initialPage&&this.setPage(this.options.initialPage,!0))},data:function(){return i.default.recursive(f(),{source:"server",loading:!0,lastKeyStrokeAt:!1,globalOptions:e},(0,r.default)(c,"server",this.options.initialPage))},methods:{refresh:n(145),getData:n(146),setData:n(147),serverSearch:n(9),registerServerFilters:n(148),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:n(19),filteredQuery:n(149),hasMultiSort:function(){return this.opts.serverMultiSorting}}},m);return t.component("v-server-table",y),y}},function(t,e,n){"use strict";t.exports=function(){this.serverSearch()}},function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r=n(0);t.exports=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=this.opts.requestKeys,a=(i(e={},s.query,this.filteredQuery),i(e,s.limit,this.limit),i(e,s.ascending,this.orderBy.ascending?1:0),i(e,s.page,this.page),i(e,s.byColumn,this.opts.filterByColumn?1:0),e);this.orderBy.hasOwnProperty("column")&&this.orderBy.column&&(a[s.orderBy]=this.orderBy.column),a=r(a,this.opts.params,this.customQueries,n),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,n){"use strict";function i(t){return(i="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=this.applyFilters(e.data),isNaN(e.count))throw console.error("vue-tables-2: invalid 'count' property. Expected number, got ".concat(i(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,n){"use strict";var i,r=(i=n(1))&&i.__esModule?i:{default:i};t.exports=function(){var t="vue-tables";this.name&&(t+="."+this.name),this.opts.customFilters.forEach(function(e){r.default.$off("".concat(t,".filter::").concat(e)),r.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,n){"use strict";function i(t){return(i="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"!==i(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)}},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 diff --git a/dist/vue-tables.js b/dist/vue-tables.js index 2e6cd7d6..24c2fa77 100644 --- a/dist/vue-tables.js +++ b/dist/vue-tables.js @@ -99,6 +99,558 @@ eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n /***/ }), +/***/ "./lib/components/VtChildRow.jsx": +/*!***************************************!*\ + !*** ./lib/components/VtChildRow.jsx ***! + \***************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _RLChildRow = _interopRequireDefault(__webpack_require__(/*! ./renderless/RLChildRow */ \"./lib/components/renderless/RLChildRow.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default2 = {\n name: 'VtChildRow',\n props: ['row', 'index'],\n components: {\n RLChildRow: _RLChildRow[\"default\"]\n },\n render: function render() {\n var h = arguments[0];\n return h(\"r-l-child-row\", {\n attrs: {\n row: this.row,\n index: this.index\n },\n scopedSlots: {\n \"default\": function _default(props) {\n return props.override ? h(props.override, {\n attrs: {\n props: props\n }\n }) : h(\"tr\", {\n \"class\": 'VueTables__child-row ' + props[\"class\"]\n }, [h(\"td\", {\n attrs: {\n colspan: props.colspan\n }\n }, [props.childRow])]);\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtChildRow.jsx?"); + +/***/ }), + +/***/ "./lib/components/VtChildRowToggler.jsx": +/*!**********************************************!*\ + !*** ./lib/components/VtChildRowToggler.jsx ***! + \**********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _RLChildRowToggler = _interopRequireDefault(__webpack_require__(/*! ./renderless/RLChildRowToggler */ \"./lib/components/renderless/RLChildRowToggler.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default2 = {\n name: 'VtChildRowToggler',\n props: ['rowId'],\n components: {\n RLChildRowToggler: _RLChildRowToggler[\"default\"]\n },\n render: function render(h) {\n return h(\"r-l-child-row-toggler\", {\n attrs: {\n \"row-id\": this.rowId\n },\n scopedSlots: {\n \"default\": function _default(props) {\n return props.override ? h(props.override, {\n attrs: {\n props: props\n }\n }) : h(\"td\", {\n attrs: {\n tabindex: props.tabIndex\n },\n on: {\n \"keypress\": function keypress(e) {\n if (e.key === 'Enter') {\n props.toggle();\n }\n },\n \"click\": props.toggle\n }\n }, [h(\"span\", {\n \"class\": \"VueTables__child-row-toggler \" + props[\"class\"]()\n })]);\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtChildRowToggler.jsx?"); + +/***/ }), + +/***/ "./lib/components/VtClientTable.jsx": +/*!******************************************!*\ + !*** ./lib/components/VtClientTable.jsx ***! + \******************************************/ +/*! no static exports found */ +/***/ (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?"); + +/***/ }), + +/***/ "./lib/components/VtColumnsDropdown.jsx": +/*!**********************************************!*\ + !*** ./lib/components/VtColumnsDropdown.jsx ***! + \**********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _RLColumnsDropdown = _interopRequireDefault(__webpack_require__(/*! ./renderless/RLColumnsDropdown */ \"./lib/components/renderless/RLColumnsDropdown.js\"));\n\nvar _dropdownWrapper = _interopRequireDefault(__webpack_require__(/*! ./dropdown-wrapper */ \"./lib/components/dropdown-wrapper.jsx\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default2 = {\n name: 'VtColumnsDropdown',\n components: {\n RLColumnsDropdown: _RLColumnsDropdown[\"default\"]\n },\n render: function render(h) {\n return h(\"r-l-columns-dropdown\", {\n scopedSlots: {\n \"default\": function _default(props) {\n if (props.override) {\n return h(props.override, {\n attrs: {\n props: props\n }\n });\n }\n\n var content;\n var cols = props.origColumns.map(function (column) {\n content = h(\"a\", {\n \"class\": props.theme.dropdown.item,\n attrs: {\n href: \"#\"\n },\n on: {\n \"click\": function click() {\n return props.toggleColumn(column);\n }\n }\n }, [h(\"input\", {\n attrs: {\n type: \"checkbox\",\n disabled: props.onlyColumn(column)\n },\n domProps: {\n \"value\": column,\n \"checked\": props.columns.includes(column)\n }\n }), props.getHeading(column)]);\n return props.theme.framework === 'bulma' ? content : h(\"li\", [content]);\n });\n return h(\"div\", {\n \"class\": \"VueTables__columns-dropdown\"\n }, [h(\"button\", {\n attrs: {\n type: \"button\"\n },\n \"class\": \"\".concat(props.theme.button, \" \").concat(props.theme.dropdown.trigger),\n on: {\n \"click\": props.toggleColumnsDropdown\n }\n }, [props.display('columns'), h(\"span\", {\n \"class\": \"\".concat(props.theme.icon, \" \").concat(props.theme.small)\n }, [h(\"i\", {\n \"class\": props.theme.dropdown.caret\n })])]), (0, _dropdownWrapper[\"default\"])(h, props.theme.dropdown, cols, props.displayColumnsDropdown)]);\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtColumnsDropdown.jsx?"); + +/***/ }), + +/***/ "./lib/components/VtDateFilter.jsx": +/*!*****************************************!*\ + !*** ./lib/components/VtDateFilter.jsx ***! + \*****************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _RLDateFilter = _interopRequireDefault(__webpack_require__(/*! ./renderless/RLDateFilter */ \"./lib/components/renderless/RLDateFilter.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default2 = {\n name: 'VtDateFilter',\n props: ['column'],\n components: {\n RLDateFilter: _RLDateFilter[\"default\"]\n },\n render: function render(h) {\n var _this = this;\n\n return h(\"r-l-date-filter\", {\n attrs: {\n column: this.column\n },\n scopedSlots: {\n \"default\": function _default(props) {\n return props.overide ? h(props.override, {\n attrs: {\n props: props\n }\n }) : h(\"div\", {\n \"class\": \"VueTables__date-filter\",\n attrs: {\n id: 'VueTables__' + _this.column + '-filter'\n }\n }, [h(\"span\", {\n \"class\": \"VueTables__filter-placeholder\"\n }, [props.placeholder])]);\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtDateFilter.jsx?"); + +/***/ }), + +/***/ "./lib/components/VtDropdownPagination.jsx": +/*!*************************************************!*\ + !*** ./lib/components/VtDropdownPagination.jsx ***! + \*************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _RLDropdownPagination = _interopRequireDefault(__webpack_require__(/*! ./renderless/RLDropdownPagination */ \"./lib/components/renderless/RLDropdownPagination.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default2 = {\n name: 'VTPagination',\n components: {\n RLDropdownPagination: _RLDropdownPagination[\"default\"]\n },\n render: function render() {\n var h = arguments[0];\n return h(\"r-l-dropdown-pagination\", {\n scopedSlots: {\n \"default\": function _default(props) {\n var id = \"VueTables__dropdown-pagination_\" + props.name;\n var pages = [];\n\n for (var pag = 1; pag <= props.totalPages; pag++) {\n pages.push(h(\"option\", {\n domProps: {\n \"value\": pag\n }\n }, [pag]));\n }\n\n return props.override ? h(props.override, {\n attrs: {\n props: props\n }\n }) : h(\"select\", {\n \"class\": \"\".concat(props.theme.select, \" dropdown-pagination\"),\n attrs: {\n name: \"page\",\n id: id\n },\n ref: \"page\",\n domProps: {\n \"value\": props.page\n },\n on: {\n \"change\": function change(e) {\n return props.setPage(e.target.value);\n }\n }\n }, [pages]);\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtDropdownPagination.jsx?"); + +/***/ }), + +/***/ "./lib/components/VtFiltersRow.jsx": +/*!*****************************************!*\ + !*** ./lib/components/VtFiltersRow.jsx ***! + \*****************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _RLFiltersRow = _interopRequireDefault(__webpack_require__(/*! ./renderless/RLFiltersRow */ \"./lib/components/renderless/RLFiltersRow.js\"));\n\nvar _VtTextFilter = _interopRequireDefault(__webpack_require__(/*! ./VtTextFilter */ \"./lib/components/VtTextFilter.jsx\"));\n\nvar _VtListFilter = _interopRequireDefault(__webpack_require__(/*! ./VtListFilter */ \"./lib/components/VtListFilter.jsx\"));\n\nvar _VtDateFilter = _interopRequireDefault(__webpack_require__(/*! ./VtDateFilter */ \"./lib/components/VtDateFilter.jsx\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar _default2 = {\n name: 'VtFiltersRow',\n components: {\n RLFiltersRow: _RLFiltersRow[\"default\"],\n VtTextFilter: _VtTextFilter[\"default\"],\n VtListFilter: _VtListFilter[\"default\"],\n VtDateFilter: _VtDateFilter[\"default\"]\n },\n render: function render() {\n var h = arguments[0];\n return h(\"r-l-filters-row\", {\n scopedSlots: {\n \"default\": function _default(props) {\n var filters = [];\n if (props.hasChildRow && props.opts.childRowTogglerFirst && props.opts.showChildRowToggler) filters.push(h(\"th\"));\n props.columns.map(function (column) {\n var filter = '';\n\n if (props.filterable(column)) {\n filter = h(props.filterType(column), {\n props: {\n column: column\n }\n });\n }\n\n if (typeof props.slots[\"filter__\".concat(column)] !== 'undefined') {\n filter = filter ? h(\"div\", [filter, props.slots[\"filter__\".concat(column)]]) : props.slots[\"filter__\".concat(column)];\n }\n\n filters.push(h(\"th\", {\n \"class\": props.columnClass(column)\n }, [!!filter ? h(\"div\", _defineProperty({\n \"class\": \"VueTables__column-filter\"\n }, \"class\", 'VueTables__' + column + '-filter-wrapper'), [filter]) : '']));\n });\n if (props.hasChildRow && !props.opts.childRowTogglerFirst && props.opts.showChildRowToggler) filters.push(h(\"th\"));\n return props.override ? h(props.override, {\n attrs: {\n props: props\n }\n }) : h(\"tr\", {\n \"class\": \"VueTables__filters-row\"\n }, [filters]);\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtFiltersRow.jsx?"); + +/***/ }), + +/***/ "./lib/components/VtGenericFilter.jsx": +/*!********************************************!*\ + !*** ./lib/components/VtGenericFilter.jsx ***! + \********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _RLGenericFilter = _interopRequireDefault(__webpack_require__(/*! ./renderless/RLGenericFilter */ \"./lib/components/renderless/RLGenericFilter.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default2 = {\n name: 'VtGenericFilter',\n components: {\n RLGenericFilter: _RLGenericFilter[\"default\"]\n },\n render: function render() {\n var h = arguments[0];\n return h(\"r-l-generic-filter\", {\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__search-field\"\n }, [h(\"label\", {\n attrs: {\n \"for\": \"VueTables__search_\".concat(props.id)\n },\n \"class\": props.theme.label\n }, [props.display(\"filter\")]), h(\"input\", {\n \"class\": \"VueTables__search__input \".concat(props.theme.input, \" \").concat(props.theme.small),\n attrs: {\n type: \"text\",\n placeholder: props.display('filterPlaceholder'),\n id: \"VueTables__search_\".concat(props.id),\n autocomplete: \"off\"\n },\n on: {\n \"keyup\": props.search(props.debounce)\n }\n })]);\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtGenericFilter.jsx?"); + +/***/ }), + +/***/ "./lib/components/VtGroupRow.jsx": +/*!***************************************!*\ + !*** ./lib/components/VtGroupRow.jsx ***! + \***************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _RLGroupRow = _interopRequireDefault(__webpack_require__(/*! ./renderless/RLGroupRow */ \"./lib/components/renderless/RLGroupRow.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default2 = {\n name: 'VtGroupRow',\n components: {\n RLGroupRow: _RLGroupRow[\"default\"]\n },\n props: ['row'],\n render: function render() {\n var h = arguments[0];\n return h(\"r-l-group-row\", {\n attrs: {\n row: this.row\n },\n scopedSlots: {\n \"default\": function _default(props) {\n return props.override ? h(props.override, {\n attrs: {\n props: props\n }\n }) : h(\"tr\", {\n \"class\": props.theme.groupTr,\n on: {\n \"click\": props.toggleGroupDirection\n }\n }, [h(\"td\", {\n attrs: {\n colspan: props.colspan\n }\n }, [props.canToggleGroup ? h(\"button\", {\n \"class\": props.theme.button,\n on: {\n \"click\": props.toggleGroup.bind(this, props.groupValue)\n }\n }, [props.groupValue, h(\"span\", {\n \"class\": props.groupToggleIcon(props.groupValue)\n })]) : '', !props.canToggleGroup ? h(\"span\", [props.groupValue]) : '', props.slot])]);\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtGroupRow.jsx?"); + +/***/ }), + +/***/ "./lib/components/VtHeadingsRow.jsx": +/*!******************************************!*\ + !*** ./lib/components/VtHeadingsRow.jsx ***! + \******************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _RLHeadingsRow = _interopRequireDefault(__webpack_require__(/*! ./renderless/RLHeadingsRow */ \"./lib/components/renderless/RLHeadingsRow.js\"));\n\nvar _VtTableHeading = _interopRequireDefault(__webpack_require__(/*! ./VtTableHeading */ \"./lib/components/VtTableHeading.jsx\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default2 = {\n name: 'VtHeadingsRow',\n components: {\n RLHeadingsRow: _RLHeadingsRow[\"default\"],\n VtTableHeading: _VtTableHeading[\"default\"]\n },\n render: function render() {\n var h = arguments[0];\n return h(\"r-l-headings-row\", {\n scopedSlots: {\n \"default\": function _default(props) {\n var headings = [];\n\n if (props.childRowTogglerFirst) {\n headings.push(h(\"th\"));\n }\n\n props.columns.map(function (column) {\n headings.push(h(\"vt-table-heading\", {\n attrs: {\n column: column\n }\n }));\n });\n\n if (props.childRowTogglerLast) {\n headings.push(h(\"th\"));\n }\n\n return h(\"tr\", [headings]);\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtHeadingsRow.jsx?"); + +/***/ }), + +/***/ "./lib/components/VtListFilter.jsx": +/*!*****************************************!*\ + !*** ./lib/components/VtListFilter.jsx ***! + \*****************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _RLListFilter = _interopRequireDefault(__webpack_require__(/*! ./renderless/RLListFilter */ \"./lib/components/renderless/RLListFilter.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default2 = {\n name: 'VtListFilter',\n props: ['column'],\n components: {\n RLListFilter: _RLListFilter[\"default\"]\n },\n render: function render() {\n var _this = this;\n\n var h = arguments[0];\n return h(\"r-l-list-filter\", {\n attrs: {\n column: this.column\n },\n scopedSlots: {\n \"default\": function _default(props) {\n var options = [];\n var selected;\n props.items.map(function (option) {\n selected = String(option.id) === String(props.query[_this.column]) && props.query[_this.column] !== '';\n options.push(h(\"option\", {\n domProps: {\n \"value\": option.id,\n \"selected\": selected\n }\n }, [option.text]));\n });\n return props.override ? h(props.override, {\n attrs: {\n props: props\n }\n }) : h(\"div\", {\n \"class\": \"VueTables__list-filter\",\n attrs: {\n id: 'VueTables__' + _this.column + '-filter'\n }\n }, [h(\"select\", {\n \"class\": props.theme.select,\n on: {\n \"change\": props.search(false)\n },\n attrs: {\n name: props.name\n },\n domProps: {\n \"value\": props.value\n }\n }, [h(\"option\", {\n attrs: {\n value: \"\"\n }\n }, [props.defaultOption]), options])]);\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtListFilter.jsx?"); + +/***/ }), + +/***/ "./lib/components/VtNoResultsRow.jsx": +/*!*******************************************!*\ + !*** ./lib/components/VtNoResultsRow.jsx ***! + \*******************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _RLNoResultsRow = _interopRequireDefault(__webpack_require__(/*! ./renderless/RLNoResultsRow */ \"./lib/components/renderless/RLNoResultsRow.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default2 = {\n name: 'VtNoResultsRow',\n components: {\n RLNoResultsRow: _RLNoResultsRow[\"default\"]\n },\n render: function render() {\n var h = arguments[0];\n return h(\"r-l-no-results-row\", {\n scopedSlots: {\n \"default\": function _default(props) {\n return props.override ? h(props.override, {\n attrs: {\n props: props\n }\n }) : h(\"tr\", {\n \"class\": \"VueTables__no-results\"\n }, [h(\"td\", {\n \"class\": \"text-center\",\n attrs: {\n tabindex: props.tabIndex,\n colspan: props.colspan\n }\n }, [props.display(props.loading ? 'loading' : 'noResults')])]);\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtNoResultsRow.jsx?"); + +/***/ }), + +/***/ "./lib/components/VtPagination.jsx": +/*!*****************************************!*\ + !*** ./lib/components/VtPagination.jsx ***! + \*****************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _RLPagination = _interopRequireDefault(__webpack_require__(/*! ./renderless/RLPagination */ \"./lib/components/renderless/RLPagination.js\"));\n\nvar _vuePagination = _interopRequireDefault(__webpack_require__(/*! vue-pagination-2 */ \"./node_modules/vue-pagination-2/compiled/Pagination.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default2 = {\n name: 'VtPagination',\n components: {\n RLPagination: _RLPagination[\"default\"],\n Pagination: _vuePagination[\"default\"]\n },\n render: function render(h) {\n return h(\"r-l-pagination\", {\n scopedSlots: {\n \"default\": function _default(props) {\n return props.override ? h(props.override, {\n attrs: {\n props: props\n }\n }) : h(\"pagination\", {\n attrs: {\n options: props.optionsObj,\n \"for\": props.name,\n vuex: props.vuex,\n records: props.records,\n \"per-page\": props.perPage,\n page: props.page\n },\n on: {\n \"paginate\": function paginate(page) {\n return props.setPage(page);\n }\n }\n });\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtPagination.jsx?"); + +/***/ }), + +/***/ "./lib/components/VtPerPageSelector.jsx": +/*!**********************************************!*\ + !*** ./lib/components/VtPerPageSelector.jsx ***! + \**********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _RLPerPageSelector = _interopRequireDefault(__webpack_require__(/*! ./renderless/RLPerPageSelector */ \"./lib/components/renderless/RLPerPageSelector.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default2 = {\n name: 'VtPerPageSelector',\n components: {\n RLPerPageSelector: _RLPerPageSelector[\"default\"]\n },\n render: function render() {\n var h = arguments[0];\n return h(\"r-l-per-page-selector\", {\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__limit-field\"\n }, [h(\"label\", {\n \"class\": props.labelClass,\n attrs: {\n \"for\": \"VueTables__limit_\".concat(props.id)\n }\n }, [props.display('limit')]), h(\"select\", {\n attrs: {\n id: props.selectAttrs.id\n },\n \"class\": props.selectAttrs[\"class\"],\n domProps: {\n \"value\": props.selectAttrs.value\n },\n on: {\n \"change\": props.selectEvents.change\n }\n }, [props.perPageValues.map(function (val) {\n return h(\"option\", {\n domProps: {\n \"value\": val\n }\n }, [val]);\n })])]);\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtPerPageSelector.jsx?"); + +/***/ }), + +/***/ "./lib/components/VtServerTable.jsx": +/*!******************************************!*\ + !*** ./lib/components/VtServerTable.jsx ***! + \******************************************/ +/*! no static exports found */ +/***/ (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?"); + +/***/ }), + +/***/ "./lib/components/VtSortControl.jsx": +/*!******************************************!*\ + !*** ./lib/components/VtSortControl.jsx ***! + \******************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _RLSortControl = _interopRequireDefault(__webpack_require__(/*! ./renderless/RLSortControl */ \"./lib/components/renderless/RLSortControl.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default2 = {\n name: 'VtSortControl',\n components: {\n RLSortControl: _RLSortControl[\"default\"]\n },\n render: function render() {\n var h = arguments[0];\n return h(\"r-l-sort-control\", {\n scopedSlots: {\n \"default\": function _default(props) {\n return props.sortable ? props.override ? h(props.override, {\n attrs: {\n props: props\n }\n }) : h(\"span\", {\n \"class\": props[\"class\"]\n }) : '';\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtSortControl.jsx?"); + +/***/ }), + +/***/ "./lib/components/VtTable.jsx": +/*!************************************!*\ + !*** ./lib/components/VtTable.jsx ***! + \************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _RLTable = _interopRequireDefault(__webpack_require__(/*! ./renderless/RLTable */ \"./lib/components/renderless/RLTable.js\"));\n\nvar _VtTableHead = _interopRequireDefault(__webpack_require__(/*! ./VtTableHead */ \"./lib/components/VtTableHead.jsx\"));\n\nvar _VtTableBody = _interopRequireDefault(__webpack_require__(/*! ./VtTableBody */ \"./lib/components/VtTableBody.jsx\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default2 = {\n name: 'VtTable',\n components: {\n RLTable: _RLTable[\"default\"],\n VtTableHead: _VtTableHead[\"default\"],\n VtTableBody: _VtTableBody[\"default\"]\n },\n render: function render() {\n var h = arguments[0];\n return h(\"r-l-table\", {\n scopedSlots: {\n \"default\": function _default(props) {\n var caption = props.caption ? h(\"caption\", [props.caption]) : '';\n return props.override ? h(props.override, {\n attrs: {\n props: props\n }\n }) : h(\"table\", {\n \"class\": props.tableAttrs[\"class\"],\n attrs: {\n summary: props.tableAttrs.summary\n }\n }, [caption, h(\"vt-table-head\"), props.slots.beforeBody, h(\"vt-table-body\", {\n ref: \"vt_table_body\"\n }), props.slots.afterBody]);\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtTable.jsx?"); + +/***/ }), + +/***/ "./lib/components/VtTableBody.jsx": +/*!****************************************!*\ + !*** ./lib/components/VtTableBody.jsx ***! + \****************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _RLTableBody = _interopRequireDefault(__webpack_require__(/*! ./renderless/RLTableBody */ \"./lib/components/renderless/RLTableBody.js\"));\n\nvar _VtNoResultsRow = _interopRequireDefault(__webpack_require__(/*! ./VtNoResultsRow */ \"./lib/components/VtNoResultsRow.jsx\"));\n\nvar _VtTableRow = _interopRequireDefault(__webpack_require__(/*! ./VtTableRow */ \"./lib/components/VtTableRow.jsx\"));\n\nvar _VtGroupRow = _interopRequireDefault(__webpack_require__(/*! ./VtGroupRow */ \"./lib/components/VtGroupRow.jsx\"));\n\nvar _VtChildRow = _interopRequireDefault(__webpack_require__(/*! ./VtChildRow */ \"./lib/components/VtChildRow.jsx\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default2 = {\n name: 'VtTableBody',\n components: {\n RLTableBody: _RLTableBody[\"default\"],\n VtNoResultsRow: _VtNoResultsRow[\"default\"],\n VtTableRow: _VtTableRow[\"default\"],\n VtChildRow: _VtChildRow[\"default\"],\n VtGroupRow: _VtGroupRow[\"default\"]\n },\n render: function render() {\n var h = arguments[0];\n return h(\"r-l-table-body\", {\n scopedSlots: {\n \"default\": function _default(props) {\n var rows = [];\n var currentGroup;\n props.data.forEach(function (row, index) {\n if (props.groupBy && props.source === 'client' && row[props.groupBy] !== currentGroup) {\n rows.push(h(\"vt-group-row\", {\n attrs: {\n row: row\n }\n }));\n currentGroup = row[props.groupBy];\n }\n\n if (props.canToggleGroups && props.collapsedGroups.includes(currentGroup)) {\n return;\n }\n\n rows.push(h(\"vt-table-row\", {\n attrs: {\n row: row,\n index: props.initialIndex + index + 1\n }\n }));\n\n if (props.hasChildRow && props.openChildRows.includes(row[props.uniqueRowId])) {\n rows.push(h(\"vt-child-row\", {\n attrs: {\n row: row,\n index: props.initialIndex + index + 1\n }\n }));\n }\n });\n return props.override ? h(props.override, {\n attrs: {\n props: props\n }\n }) : h(\"tbody\", [props.slots.prependBody, props.data.length === 0 ? h(\"vt-no-results-row\") : '', rows, props.slots.appendBody]);\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtTableBody.jsx?"); + +/***/ }), + +/***/ "./lib/components/VtTableCell.jsx": +/*!****************************************!*\ + !*** ./lib/components/VtTableCell.jsx ***! + \****************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _RLTableCell = _interopRequireDefault(__webpack_require__(/*! ./renderless/RLTableCell */ \"./lib/components/renderless/RLTableCell.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default2 = {\n name: 'VtTableCell',\n props: ['column'],\n components: {\n RLTableCell: _RLTableCell[\"default\"]\n },\n render: function render() {\n var h = arguments[0];\n return h(\"r-l-table-cell\", {\n attrs: {\n column: this.column\n },\n scopedSlots: {\n \"default\": function _default(props) {\n return props.override ? h(props.override, {\n attrs: {\n props: props\n }\n }) : h(\"td\", {\n attrs: {\n tabindex: props.tabIndex\n },\n \"class\": props.classes\n }, [props.content]);\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtTableCell.jsx?"); + +/***/ }), + +/***/ "./lib/components/VtTableHead.jsx": +/*!****************************************!*\ + !*** ./lib/components/VtTableHead.jsx ***! + \****************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _RLTableHead = _interopRequireDefault(__webpack_require__(/*! ./renderless/RLTableHead */ \"./lib/components/renderless/RLTableHead.js\"));\n\nvar _VtHeadingsRow = _interopRequireDefault(__webpack_require__(/*! ./VtHeadingsRow */ \"./lib/components/VtHeadingsRow.jsx\"));\n\nvar _VtFiltersRow = _interopRequireDefault(__webpack_require__(/*! ./VtFiltersRow */ \"./lib/components/VtFiltersRow.jsx\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default2 = {\n name: 'VtTableHead',\n components: {\n RLTableHead: _RLTableHead[\"default\"],\n VtHeadingsRow: _VtHeadingsRow[\"default\"],\n VtFiltersRow: _VtFiltersRow[\"default\"]\n },\n render: function render() {\n var h = arguments[0];\n return h(\"r-l-table-head\", {\n scopedSlots: {\n \"default\": function _default(props) {\n return props.override ? h(props.override, {\n attrs: {\n props: props\n }\n }) : h(\"thead\", [props.slots.prependHead, h(\"vt-headings-row\"), props.slots.beforeFilters, props.opts.filterByColumn && props.opts.filterable ? h(\"vt-filters-row\") : '', props.slots.afterFilters]);\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtTableHead.jsx?"); + +/***/ }), + +/***/ "./lib/components/VtTableHeading.jsx": +/*!*******************************************!*\ + !*** ./lib/components/VtTableHeading.jsx ***! + \*******************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _RLTableHeading = _interopRequireDefault(__webpack_require__(/*! ./renderless/RLTableHeading */ \"./lib/components/renderless/RLTableHeading.js\"));\n\nvar _VtSortControl = _interopRequireDefault(__webpack_require__(/*! ./VtSortControl */ \"./lib/components/VtSortControl.jsx\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default2 = {\n name: 'VtTableHeading',\n props: ['column'],\n components: {\n RLTableHeading: _RLTableHeading[\"default\"],\n VtSortControl: _VtSortControl[\"default\"]\n },\n render: function render() {\n var h = arguments[0];\n return h(\"r-l-table-heading\", {\n attrs: {\n column: this.column\n },\n scopedSlots: {\n \"default\": function _default(props) {\n return props.override ? h(props.override, {\n attrs: {\n props: props\n }\n }) : h(\"th\", {\n on: {\n \"keypress\": props.thEvents.keypress,\n \"click\": props.thEvents.click\n },\n \"class\": props.thAttrs[\"class\"],\n attrs: {\n tabindex: props.thAttrs.tabIndex\n }\n }, [h(\"span\", {\n \"class\": \"VueTables__heading\",\n attrs: {\n title: props.title\n }\n }, [props.heading]), h(\"vt-sort-control\")]);\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtTableHeading.jsx?"); + +/***/ }), + +/***/ "./lib/components/VtTableRow.jsx": +/*!***************************************!*\ + !*** ./lib/components/VtTableRow.jsx ***! + \***************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _babelHelperVueJsxMergeProps = _interopRequireDefault(__webpack_require__(/*! babel-helper-vue-jsx-merge-props */ \"./node_modules/babel-helper-vue-jsx-merge-props/index.js\"));\n\nvar _RLTableRow = _interopRequireDefault(__webpack_require__(/*! ./renderless/RLTableRow */ \"./lib/components/renderless/RLTableRow.js\"));\n\nvar _VtTableCell = _interopRequireDefault(__webpack_require__(/*! ./VtTableCell */ \"./lib/components/VtTableCell.jsx\"));\n\nvar _VtChildRowToggler = _interopRequireDefault(__webpack_require__(/*! ./VtChildRowToggler */ \"./lib/components/VtChildRowToggler.jsx\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default2 = {\n name: 'VtTableRow',\n props: ['row', 'index'],\n components: {\n RLTableRow: _RLTableRow[\"default\"],\n VtTableCell: _VtTableCell[\"default\"],\n VtChildRowToggler: _VtChildRowToggler[\"default\"]\n },\n render: function render() {\n var h = arguments[0];\n return h(\"r-l-table-row\", {\n attrs: {\n row: this.row,\n index: this.index\n },\n scopedSlots: {\n \"default\": function _default(props) {\n return props.override ? h(props.override, {\n attrs: {\n props: props\n }\n }) : h(\"tr\", (0, _babelHelperVueJsxMergeProps[\"default\"])([{\n \"class\": \"VueTables__row \" + props.rowAttrs[\"class\"]\n }, {\n attrs: props.rowAttrs.attrs\n }, {\n on: {\n \"click\": props.rowEvents.click\n }\n }]), [props.childRowTogglerFirst ? h(\"vt-child-row-toggler\", {\n attrs: {\n \"row-id\": props.rowId\n }\n }) : '', props.columns.map(function (column) {\n return h(\"vt-table-cell\", {\n attrs: {\n column: column\n }\n });\n }), props.childRowTogglerLast ? h(\"vt-child-row-toggler\", {\n attrs: {\n \"row-id\": props.rowId\n }\n }) : '']);\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtTableRow.jsx?"); + +/***/ }), + +/***/ "./lib/components/VtTextFilter.jsx": +/*!*****************************************!*\ + !*** ./lib/components/VtTextFilter.jsx ***! + \*****************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _RLTextFilter = _interopRequireDefault(__webpack_require__(/*! ./renderless/RLTextFilter */ \"./lib/components/renderless/RLTextFilter.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default2 = {\n name: 'VtTextFilter',\n props: ['column'],\n components: {\n RLTextFilter: _RLTextFilter[\"default\"]\n },\n render: function render() {\n var _this = this;\n\n var h = arguments[0];\n return h(\"r-l-text-filter\", {\n attrs: {\n column: this.column\n },\n scopedSlots: {\n \"default\": function _default(props) {\n return props.override ? h(props.override, {\n attrs: {\n props: props\n }\n }) : h(\"input\", {\n on: {\n \"keyup\": props.search(props.debounce)\n },\n \"class\": props.theme.input,\n attrs: {\n name: props.getColumnName(_this.column),\n type: \"text\",\n placeholder: props.display('filterBy', {\n column: props.getHeading(_this.column)\n }),\n autocomplete: \"off\"\n }\n });\n }\n }\n });\n }\n};\nexports[\"default\"] = _default2;\n\n//# sourceURL=webpack://VueTables/./lib/components/VtTextFilter.jsx?"); + +/***/ }), + +/***/ "./lib/components/dropdown-wrapper.jsx": +/*!*********************************************!*\ + !*** ./lib/components/dropdown-wrapper.jsx ***! + \*********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nmodule.exports = function (h, classes, columns, display) {\n if (classes.framework === 'bulma') {\n return h(\"div\", {\n \"class\": classes.menu,\n style: display ? 'display:block' : 'display:none'\n }, [h(\"div\", {\n \"class\": classes.content\n }, [columns])]);\n }\n\n if (classes.framework === 'bootstrap4') {\n return h(\"div\", {\n \"class\": classes.menu,\n style: display ? 'display:block' : 'display:none'\n }, [columns]);\n }\n\n return h(\"ul\", {\n \"class\": classes.menu,\n style: display ? 'display:block' : 'display:none'\n }, [columns]);\n};\n\n//# sourceURL=webpack://VueTables/./lib/components/dropdown-wrapper.jsx?"); + +/***/ }), + +/***/ "./lib/components/renderless/RLChildRow.js": +/*!*************************************************!*\ + !*** ./lib/components/renderless/RLChildRow.js ***! + \*************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _default = {\n name: 'RLChildRow',\n props: ['row', 'index'],\n inject: ['colspan', 'scopedSlots', 'getChildRowTemplate', 'opts', 'componentsOverride'],\n render: function render(h) {\n return this.$scopedSlots[\"default\"]({\n childRow: this.getChildRowTemplate(h, this.row, this.index, this.scopedSlots()['child_row']),\n colspan: this.colspan(),\n \"class\": this.opts().rowClassCallback ? this.opts().rowClassCallback(this.row) : '',\n override: this.componentsOverride.childRow\n });\n }\n};\nexports[\"default\"] = _default;\n\n//# sourceURL=webpack://VueTables/./lib/components/renderless/RLChildRow.js?"); + +/***/ }), + +/***/ "./lib/components/renderless/RLChildRowToggler.js": +/*!********************************************************!*\ + !*** ./lib/components/renderless/RLChildRowToggler.js ***! + \********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _default = {\n name: 'RLChildRowToggler',\n props: ['rowId'],\n inject: ['toggleChildRow', 'childRowTogglerClass', 'componentsOverride', 'tabIndex'],\n render: function render(h) {\n return this.$scopedSlots[\"default\"]({\n \"class\": this.childRowTogglerClass.bind(this, this.rowId),\n toggle: this.toggleChildRow.bind(this, this.rowId),\n override: this.componentsOverride.childRowToggler,\n tabIndex: this.tabIndex()\n });\n }\n};\nexports[\"default\"] = _default;\n\n//# sourceURL=webpack://VueTables/./lib/components/renderless/RLChildRowToggler.js?"); + +/***/ }), + +/***/ "./lib/components/renderless/RLColumnsDropdown.js": +/*!********************************************************!*\ + !*** ./lib/components/renderless/RLColumnsDropdown.js ***! + \********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _default = {\n name: 'RLColumnsDropdown',\n inject: ['getHeading', 'display', 'theme', 'allColumns', 'onlyColumn', 'toggleColumn', 'toggleColumnsDropdown', 'displayColumnsDropdown', 'origColumns', 'componentsOverride'],\n render: function render() {\n return this.$scopedSlots[\"default\"]({\n theme: this.theme,\n getHeading: this.getHeading,\n display: this.display,\n onlyColumn: this.onlyColumn,\n toggleColumn: this.toggleColumn,\n toggleColumnsDropdown: this.toggleColumnsDropdown,\n displayColumnsDropdown: this.displayColumnsDropdown(),\n origColumns: this.origColumns,\n columns: this.allColumns(),\n override: this.componentsOverride.columnsDropdown\n });\n }\n};\nexports[\"default\"] = _default;\n\n//# sourceURL=webpack://VueTables/./lib/components/renderless/RLColumnsDropdown.js?"); + +/***/ }), + +/***/ "./lib/components/renderless/RLDataTable.js": +/*!**************************************************!*\ + !*** ./lib/components/renderless/RLDataTable.js ***! + \**************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nmodule.exports = function () {\n return this.$scopedSlots[\"default\"]({\n source: this.source,\n theme: this.theme,\n opts: this.opts,\n perPageValues: this.perPageValues,\n totalPages: this.totalPages,\n slots: this.$parent.$slots,\n override: this.componentsOverride.dataTable\n });\n};\n\n//# sourceURL=webpack://VueTables/./lib/components/renderless/RLDataTable.js?"); + +/***/ }), + +/***/ "./lib/components/renderless/RLDateFilter.js": +/*!***************************************************!*\ + !*** ./lib/components/renderless/RLDateFilter.js ***! + \***************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _default = {\n name: 'RLDateFilter',\n inject: ['getHeading', 'display', 'componentsOverride'],\n props: ['column'],\n render: function render(h) {\n return this.$scopedSlots[\"default\"]({\n column: this.column,\n placeholder: this.display('filterBy', {\n column: this.getHeading(this.column)\n }),\n display: this.display,\n override: this.componentsOverride.dateFilter\n });\n }\n};\nexports[\"default\"] = _default;\n\n//# sourceURL=webpack://VueTables/./lib/components/renderless/RLDateFilter.js?"); + +/***/ }), + +/***/ "./lib/components/renderless/RLDropdownPagination.js": +/*!***********************************************************!*\ + !*** ./lib/components/renderless/RLDropdownPagination.js ***! + \***********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _default = {\n name: \"RLDropdownPagination\",\n inject: ['limit', 'count', 'theme', 'page', 'setPage', 'totalPages', 'componentsOverride', 'id'],\n render: function render() {\n return this.$scopedSlots[\"default\"]({\n name: this.id,\n setPage: this.setPage,\n page: this.page(),\n records: this.count(),\n perPage: parseInt(this.limit()),\n theme: this.theme,\n totalPages: this.totalPages(),\n override: this.componentsOverride.dropdownPagination\n });\n }\n};\nexports[\"default\"] = _default;\n\n//# sourceURL=webpack://VueTables/./lib/components/renderless/RLDropdownPagination.js?"); + +/***/ }), + +/***/ "./lib/components/renderless/RLFiltersRow.js": +/*!***************************************************!*\ + !*** ./lib/components/renderless/RLFiltersRow.js ***! + \***************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _default = {\n name: 'RLFiltersRow',\n inject: ['opts', 'theme', 'allColumns', 'filterable', 'filterType', 'slots', 'columnClass', 'hasChildRow', 'componentsOverride'],\n render: function render() {\n return this.$scopedSlots[\"default\"]({\n columns: this.allColumns(),\n filterable: this.filterable,\n filterType: this.filterType,\n opts: this.opts(),\n slots: this.slots(),\n columnClass: this.columnClass,\n hasChildRow: this.hasChildRow(),\n override: this.componentsOverride.filtersRow\n });\n }\n};\nexports[\"default\"] = _default;\n\n//# sourceURL=webpack://VueTables/./lib/components/renderless/RLFiltersRow.js?"); + +/***/ }), + +/***/ "./lib/components/renderless/RLGenericFilter.js": +/*!******************************************************!*\ + !*** ./lib/components/renderless/RLGenericFilter.js ***! + \******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _default = {\n name: 'RLGenericFilter',\n inject: ['opts', 'theme', 'source', 'search', 'query', 'display', 'id', 'componentsOverride'],\n render: function render() {\n return this.$scopedSlots[\"default\"]({\n theme: this.theme,\n search: this.search,\n query: this.query(),\n display: this.display,\n id: this.id,\n override: this.componentsOverride.genericFilter\n });\n }\n};\nexports[\"default\"] = _default;\n\n//# sourceURL=webpack://VueTables/./lib/components/renderless/RLGenericFilter.js?"); + +/***/ }), + +/***/ "./lib/components/renderless/RLGroupRow.js": +/*!*************************************************!*\ + !*** ./lib/components/renderless/RLGroupRow.js ***! + \*************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _default = {\n name: 'RLGroupRow',\n props: ['row'],\n inject: ['colspan', 'opts', 'theme', 'toggleGroupDirection', 'toggleGroup', 'groupToggleIcon', 'getGroupSlot', 'componentsOverride'],\n render: function render() {\n return this.$scopedSlots[\"default\"]({\n theme: this.theme,\n colspan: this.colspan(),\n toggleGroupDirection: this.toggleGroupDirection,\n canToggleGroup: this.opts().toggleGroups,\n toggleGroup: this.toggleGroup,\n groupValue: this.row[this.opts().groupBy],\n groupToggleIcon: this.groupToggleIcon,\n slot: this.getGroupSlot(this.row[this.opts().groupBy]),\n override: this.componentsOverride.groupRow\n });\n }\n};\nexports[\"default\"] = _default;\n\n//# sourceURL=webpack://VueTables/./lib/components/renderless/RLGroupRow.js?"); + +/***/ }), + +/***/ "./lib/components/renderless/RLHeadingsRow.js": +/*!****************************************************!*\ + !*** ./lib/components/renderless/RLHeadingsRow.js ***! + \****************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _default = {\n name: 'RLHeadingRow',\n inject: ['opts', 'theme', 'hasChildRow', 'allColumns'],\n render: function render() {\n return this.$scopedSlots[\"default\"]({\n columns: this.allColumns(),\n hasChildRow: this.hasChildRow,\n childRowTogglerFirst: this.hasChildRow() && this.opts().showChildRowToggler && this.opts().childRowTogglerFirst,\n childRowTogglerLast: this.hasChildRow() && this.opts().showChildRowToggler && !this.opts().childRowTogglerFirst\n });\n }\n};\nexports[\"default\"] = _default;\n\n//# sourceURL=webpack://VueTables/./lib/components/renderless/RLHeadingsRow.js?"); + +/***/ }), + +/***/ "./lib/components/renderless/RLListFilter.js": +/*!***************************************************!*\ + !*** ./lib/components/renderless/RLListFilter.js ***! + \***************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _default = {\n name: 'RLListFilter',\n inject: ['search', 'query', 'theme', 'getHeading', 'display', 'getColumnName', 'opts', 'componentsOverride'],\n props: ['column'],\n render: function render(h) {\n return this.$scopedSlots[\"default\"]({\n theme: this.theme,\n search: this.search,\n query: this.query(),\n getHeading: this.getHeading,\n display: this.display,\n items: this.opts().listColumns[this.column].filter(function (item) {\n return !item.hide;\n }),\n defaultOption: this.display('defaultOption', {\n column: this.opts().headings[this.column] ? this.opts().headings[this.column] : this.column\n }),\n name: this.getColumnName(this.column),\n value: this.query()[this.column],\n column: this.column,\n override: this.componentsOverride.listFilter\n });\n }\n};\nexports[\"default\"] = _default;\n\n//# sourceURL=webpack://VueTables/./lib/components/renderless/RLListFilter.js?"); + +/***/ }), + +/***/ "./lib/components/renderless/RLNoResultsRow.js": +/*!*****************************************************!*\ + !*** ./lib/components/renderless/RLNoResultsRow.js ***! + \*****************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _default = {\n name: 'RLNoResultsRow',\n inject: ['colspan', 'display', 'componentsOverride', 'tabIndex'],\n render: function render() {\n return this.$scopedSlots[\"default\"]({\n colspan: this.colspan(),\n display: this.display,\n tabIndex: this.tabIndex(),\n override: this.componentsOverride.noResultsRow\n });\n }\n};\nexports[\"default\"] = _default;\n\n//# sourceURL=webpack://VueTables/./lib/components/renderless/RLNoResultsRow.js?"); + +/***/ }), + +/***/ "./lib/components/renderless/RLPagination.js": +/*!***************************************************!*\ + !*** ./lib/components/renderless/RLPagination.js ***! + \***************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _merge = _interopRequireDefault(__webpack_require__(/*! merge */ \"./node_modules/merge/merge.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default = {\n name: \"RLPagination\",\n inject: ['opts', 'count', 'limit', 'vuex', 'name', 'id', 'theme', 'page', 'setPage', 'totalPages', 'componentsOverride'],\n render: function render() {\n return this.$scopedSlots[\"default\"]({\n setPage: this.setPage,\n options: this.opts().pagination,\n infiniteScroll: this.opts().infiniteScroll,\n page: this.page(),\n records: this.count(),\n perPage: parseInt(this.limit()),\n name: this.vuex ? this.name : this.id,\n vuex: this.vuex,\n theme: this.theme,\n texts: this.opts().texts,\n totalPages: this.totalPages(),\n optionsObj: {\n theme: (0, _merge[\"default\"])(this.theme.pagination, {\n wrapper: \"\".concat(this.theme.row, \" \").concat(this.theme.column, \" \").concat(this.theme.contentCenter),\n nav: this.theme.center,\n count: \"\".concat(this.theme.center, \" \").concat(this.theme.column)\n }),\n chunk: this.opts().pagination.chunk,\n chunksNavigation: this.opts().pagination.nav,\n edgeNavigation: this.opts().pagination.edge,\n texts: {\n count: this.opts().texts.count,\n first: this.opts().texts.first,\n last: this.opts().texts.last\n }\n },\n override: this.componentsOverride.pagination\n });\n }\n};\nexports[\"default\"] = _default;\n\n//# sourceURL=webpack://VueTables/./lib/components/renderless/RLPagination.js?"); + +/***/ }), + +/***/ "./lib/components/renderless/RLPerPageSelector.js": +/*!********************************************************!*\ + !*** ./lib/components/renderless/RLPerPageSelector.js ***! + \********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _default = {\n name: \"RLPerPageSelector\",\n inject: ['opts', 'limit', 'setLimit', 'perPageValues', 'id', 'theme', 'display', 'componentsOverride'],\n render: function render() {\n var _this = this;\n\n return this.$scopedSlots[\"default\"]({\n perPageValues: this.perPageValues(),\n theme: this.theme,\n limit: this.limit(),\n setLimit: this.setLimit,\n id: this.id,\n selectClass: this.theme.select,\n display: this.display,\n selectAttrs: {\n id: \"VueTables__limit_\".concat(this.id),\n \"class\": this.theme.select,\n value: this.limit()\n },\n selectEvents: {\n change: function change(e) {\n return _this.setLimit(e);\n }\n },\n override: this.componentsOverride.perPageSelector\n });\n }\n};\nexports[\"default\"] = _default;\n\n//# sourceURL=webpack://VueTables/./lib/components/renderless/RLPerPageSelector.js?"); + +/***/ }), + +/***/ "./lib/components/renderless/RLSortControl.js": +/*!****************************************************!*\ + !*** ./lib/components/renderless/RLSortControl.js ***! + \****************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _default = {\n name: 'RLSortControl',\n inject: ['column', 'theme', 'sortable', 'hasMultiSort', 'orderBy', 'userMultiSorting', 'sortableChevronClass', 'componentsOverride'],\n render: function render() {\n return this.$scopedSlots[\"default\"]({\n sortable: this.sortable(this.column),\n \"class\": \"VueTables__sort-icon \".concat(this.theme.right, \" \").concat(this.sortableChevronClass(this.column)),\n sortStatus: this.sortStatus,\n override: this.componentsOverride.sortControl\n });\n },\n computed: {\n OrderBy: function OrderBy() {\n return this.orderBy();\n },\n UserMultiSorting: function UserMultiSorting() {\n return this.userMultiSorting();\n },\n sortStatus: function sortStatus() {\n var _this = this;\n\n if (this.hasMultiSort && this.OrderBy.column && this.UserMultiSorting[this.OrderBy.column]) {\n var col = this.UserMultiSorting[this.OrderBy.column].filter(function (c) {\n return c.column === _this.column;\n })[0];\n if (col) return {\n sorted: true,\n asc: col.ascending\n };\n }\n\n if (this.column === this.OrderBy.column) {\n return {\n sorted: true,\n asc: this.OrderBy.ascending\n };\n }\n\n return {\n sorted: false,\n asc: false\n };\n }\n },\n methods: {}\n};\nexports[\"default\"] = _default;\n\n//# sourceURL=webpack://VueTables/./lib/components/renderless/RLSortControl.js?"); + +/***/ }), + +/***/ "./lib/components/renderless/RLTable.js": +/*!**********************************************!*\ + !*** ./lib/components/renderless/RLTable.js ***! + \**********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _default = {\n name: 'RLTable',\n inject: ['opts', 'theme', 'colspan', 'slots', 'componentsOverride'],\n render: function render() {\n return this.$scopedSlots[\"default\"]({\n tableAttrs: {\n summary: this.opts().summary,\n \"class\": \"VueTables__table \".concat(this.opts().skin ? this.opts().skin : this.theme.table)\n },\n slots: this.slots(),\n colspan: this.colspan(),\n caption: this.opts().caption,\n override: this.componentsOverride.table\n });\n }\n};\nexports[\"default\"] = _default;\n\n//# sourceURL=webpack://VueTables/./lib/components/renderless/RLTable.js?"); + +/***/ }), + +/***/ "./lib/components/renderless/RLTableBody.js": +/*!**************************************************!*\ + !*** ./lib/components/renderless/RLTableBody.js ***! + \**************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _default = {\n name: 'RLTableBody',\n inject: ['opts', 'theme', 'source', 'filteredData', 'tableData', 'colspan', 'openChildRows', 'collapsedGroups', 'scopedSlots', 'slots', 'componentsOverride', 'page', 'limit'],\n render: function render() {\n return this.$scopedSlots[\"default\"]({\n source: this.source,\n canToggleGroups: this.opts().toggleGroups,\n collapsedGroups: this.collapsedGroups(),\n data: this.source === 'client' ? this.filteredData() : this.tableData(),\n colspan: this.colspan(),\n loading: true,\n hasChildRow: this.opts().childRow || this.scopedSlots()['child_row'],\n openChildRows: this.openChildRows(),\n uniqueRowId: this.opts().uniqueKey,\n groupBy: this.opts().groupBy,\n slots: this.slots(),\n override: this.componentsOverride.tableBody,\n initialIndex: (this.page() - 1) * this.limit()\n });\n }\n};\nexports[\"default\"] = _default;\n\n//# sourceURL=webpack://VueTables/./lib/components/renderless/RLTableBody.js?"); + +/***/ }), + +/***/ "./lib/components/renderless/RLTableCell.js": +/*!**************************************************!*\ + !*** ./lib/components/renderless/RLTableCell.js ***! + \**************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\n\nvar _merge = _interopRequireDefault(__webpack_require__(/*! merge */ \"./node_modules/merge/merge.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nvar _default = {\n name: 'RLTableCell',\n inject: ['row', 'scopedSlots', 'opts', 'render', 'index', 'setEditingCell', 'updateValue', 'revertValue', 'editing', 'getValue', 'columnClass', 'cellClasses', 'componentsOverride', 'isListFilter', 'optionText', 'source', 'dateFormat', 'formatDate', 'tabIndex'],\n props: ['column'],\n render: function render(h) {\n return this.$scopedSlots[\"default\"]({\n row: this.Row,\n content: this.content(h),\n classes: \"\".concat(this.columnClass(this.column), \" \").concat(this.cellClasses(this.column, this.Row)).trim(),\n tabIndex: this.tabIndex(),\n override: this.componentsOverride.tableCell\n });\n },\n computed: {\n Row: function Row() {\n return this.row();\n }\n },\n methods: {\n content: function content(h) {\n if (this.opts().templates[this.column]) {\n return this.render(this.Row, this.column, this.index, h);\n }\n\n if (this.scopedSlots()[this.column]) {\n var data = {\n row: this.Row,\n column: this.column,\n index: this.index\n };\n\n if (this.opts().editableColumns.includes(this.column)) {\n data = (0, _merge[\"default\"])(data, this.getEditFunctions());\n }\n\n return this.scopedSlots()[this.column](data);\n }\n\n return this.formatCellContent(this.getValue(this.Row, this.column), this.column);\n },\n formatCellContent: function formatCellContent(value, column) {\n if (this.source === 'client' && this.opts().dateColumns.includes(column)) {\n return this.formatDate(value, this.dateFormat(column));\n }\n\n if (this.isListFilter(column)) {\n return this.optionText(value, column);\n }\n\n return value;\n },\n isEditing: function isEditing() {\n return function () {\n var _this = this;\n\n return this.editing().find(function (e) {\n return e.id === _this.Row[_this.opts().uniqueKey] && e.column === _this.column;\n });\n }.bind(this);\n },\n getEditFunctions: function getEditFunctions() {\n return {\n update: this.updateValue(this.Row, this.column),\n isEditing: this.isEditing(),\n setEditing: this.setEditingCell(this.Row, this.column),\n revertValue: this.revertValue(this.Row, this.column)\n };\n }\n }\n};\nexports[\"default\"] = _default;\n\n//# sourceURL=webpack://VueTables/./lib/components/renderless/RLTableCell.js?"); + +/***/ }), + +/***/ "./lib/components/renderless/RLTableHead.js": +/*!**************************************************!*\ + !*** ./lib/components/renderless/RLTableHead.js ***! + \**************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _default = {\n name: 'RLTableHead',\n inject: ['opts', 'slots', 'componentsOverride'],\n render: function render() {\n return this.$scopedSlots[\"default\"]({\n opts: this.opts(),\n slots: this.slots(),\n override: this.componentsOverride.tableHead\n });\n }\n};\nexports[\"default\"] = _default;\n\n//# sourceURL=webpack://VueTables/./lib/components/renderless/RLTableHead.js?"); + +/***/ }), + +/***/ "./lib/components/renderless/RLTableHeading.js": +/*!*****************************************************!*\ + !*** ./lib/components/renderless/RLTableHeading.js ***! + \*****************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _default = {\n name: 'RLTableHeading',\n props: ['column'],\n provide: function provide() {\n return {\n column: this.column\n };\n },\n inject: ['opts', 'theme', 'sortableClass', 'getHeadingTooltip', 'getHeading', 'orderByColumn', 'componentsOverride', 'tabIndex'],\n render: function render(h) {\n var _this = this;\n\n return this.$scopedSlots[\"default\"]({\n thAttrs: {\n \"class\": this.sortableClass(this.column),\n tabIndex: this.tabIndex()\n },\n thEvents: {\n keypress: function keypress(e) {\n if (e.key === \"Enter\") {\n this.orderByColumn(this.column, e);\n }\n },\n click: function click(e) {\n if (e.target.className !== \"resize-handle\") {\n _this.orderByColumn(_this.column, e);\n }\n }\n },\n spanAttrs: {\n title: this.getHeadingTooltip(this.column)\n },\n heading: this.getHeading(this.column, h),\n override: this.componentsOverride.tableHeading\n });\n }\n};\nexports[\"default\"] = _default;\n\n//# sourceURL=webpack://VueTables/./lib/components/renderless/RLTableHeading.js?"); + +/***/ }), + +/***/ "./lib/components/renderless/RLTableRow.js": +/*!*************************************************!*\ + !*** ./lib/components/renderless/RLTableRow.js ***! + \*************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _default = {\n name: 'RLTableRow',\n props: ['row', 'index'],\n inject: ['allColumns', 'opts', 'rowWasClicked', 'hasChildRow', 'componentsOverride'],\n provide: function provide() {\n var _this = this;\n\n return {\n row: function row() {\n return _this.row;\n },\n index: this.index\n };\n },\n render: function render() {\n return this.$scopedSlots[\"default\"]({\n columns: this.allColumns(),\n hasChildRow: this.hasChildRow(),\n opts: this.opts(),\n rowId: this.row[this.opts().uniqueKey],\n rowAttrs: {\n \"class\": this.opts().rowClassCallback ? this.opts().rowClassCallback(this.row) : '',\n attrs: this.opts().rowAttributesCallback ? this.opts().rowAttributesCallback(this.row) : {}\n },\n rowEvents: {\n click: this.rowWasClicked.bind(this, this.row, this.index),\n dblclick: this.rowWasClicked.bind(this, this.row, this.index)\n },\n childRowTogglerFirst: this.hasChildRow() && this.opts().showChildRowToggler && this.opts().childRowTogglerFirst,\n childRowTogglerLast: this.hasChildRow() && this.opts().showChildRowToggler && !this.opts().childRowTogglerFirst,\n override: this.componentsOverride.tableRow\n });\n }\n};\nexports[\"default\"] = _default;\n\n//# sourceURL=webpack://VueTables/./lib/components/renderless/RLTableRow.js?"); + +/***/ }), + +/***/ "./lib/components/renderless/RLTextFilter.js": +/*!***************************************************!*\ + !*** ./lib/components/renderless/RLTextFilter.js ***! + \***************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = void 0;\nvar _default = {\n name: 'RLTextFilter',\n inject: ['opts', 'search', 'query', 'theme', 'getHeading', 'display', 'getColumnName', 'componentsOverride'],\n props: ['column'],\n render: function render(h) {\n return this.$scopedSlots[\"default\"]({\n column: this.column,\n debounce: this.opts().debounce,\n theme: this.theme,\n search: this.search,\n query: this.query(),\n getHeading: this.getHeading,\n getColumnName: this.getColumnName,\n display: this.display,\n override: this.componentsOverride.textFilter\n });\n }\n};\nexports[\"default\"] = _default;\n\n//# sourceURL=webpack://VueTables/./lib/components/renderless/RLTextFilter.js?"); + +/***/ }), + /***/ "./lib/computed/all-columns.js": /*!*************************************!*\ !*** ./lib/computed/all-columns.js ***! @@ -167,7 +719,7 @@ eval("\n\nmodule.exports = function () {\n return this.opts.filterable && this. /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nvar clone = __webpack_require__(/*! clone */ \"./node_modules/clone/clone.js\");\n\nmodule.exports = {\n get: function get() {\n var data = clone(this.tableData);\n var column = this.orderBy.column;\n data = this.search(data);\n\n if (column) {\n // dummy var to force compilation\n if (this.time) this.time = this.time;\n data = this.opts.sortingAlgorithm.call(this, data, column);\n } else if (this.opts.groupBy) {\n data = this.opts.sortingAlgorithm.call(this, data, this.opts.groupBy);\n }\n\n if (this.vuex) {\n if (this.count != data.length) this.commit('SET_COUNT', data.length);\n } else {\n this.count = data.length;\n }\n\n var offset = (this.page - 1) * this.limit;\n this.allFilteredData = JSON.parse(JSON.stringify(data));\n data = data.splice(offset, this.limit);\n return this.applyFilters(data);\n },\n set: function set(val) {\n console.log(val);\n }\n};\n\n//# sourceURL=webpack://VueTables/./lib/computed/filtered-data.js?"); +eval("\n\nvar clone = __webpack_require__(/*! clone */ \"./node_modules/clone/clone.js\");\n\nmodule.exports = function () {\n var data = clone(this.tableData);\n var column = this.orderBy.column;\n data = this.search(data);\n\n if (column) {\n // dummy var to force compilation\n if (this.time) this.time = this.time;\n data = this.opts.sortingAlgorithm.call(this, data, column ? column : this.opts.groupBy);\n } else if (this.opts.groupBy) {\n data = this.opts.sortingAlgorithm.call(this, data, this.opts.groupBy);\n }\n\n if (this.vuex) {\n if (this.count != data.length) this.commit('SET_COUNT', data.length);\n } else {\n this.count = data.length;\n }\n\n var offset = (this.page - 1) * this.limit;\n this.allFilteredData = JSON.parse(JSON.stringify(data));\n return data.splice(offset, this.limit);\n};\n\n//# sourceURL=webpack://VueTables/./lib/computed/filtered-data.js?"); /***/ }), @@ -191,7 +743,7 @@ eval("\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof S /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nmodule.exports = function () {\n return this.opts.childRow || this.$scopedSlots.child_row;\n};\n\n//# sourceURL=webpack://VueTables/./lib/computed/has-child-row.js?"); +eval("\n\nmodule.exports = function () {\n return !!(this.opts.childRow || this.$parent.$scopedSlots.child_row);\n};\n\n//# sourceURL=webpack://VueTables/./lib/computed/has-child-row.js?"); /***/ }), @@ -227,7 +779,19 @@ eval("\n\nmodule.exports = function () {\n var columns = Object.keys(this.opts. /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nmodule.exports = function () {\n var defaults = __webpack_require__(/*! ../config/defaults */ \"./lib/config/defaults.js\")();\n\n return this.initOptions(defaults, this.globalOptions, this.options);\n};\n\n//# sourceURL=webpack://VueTables/./lib/computed/opts.js?"); +eval("\n\nmodule.exports = function () {\n var defaults = __webpack_require__(/*! ../config/defaults */ \"./lib/config/defaults.js\")();\n\n return this.initOptions(defaults, this.globalOptions, this.options);\n};\n\n//# sourceURL=webpack://VueTables/./lib/computed/opts.js?"); + +/***/ }), + +/***/ "./lib/computed/per-page-values.js": +/*!*****************************************!*\ + !*** ./lib/computed/per-page-values.js ***! + \*****************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nmodule.exports = function () {\n var _this = this;\n\n var perpageValues = [];\n this.opts.perPageValues.every(function (value) {\n var isLastEntry = value >= _this.count;\n perpageValues.push(value);\n return !isLastEntry;\n });\n return perpageValues;\n};\n\n//# sourceURL=webpack://VueTables/./lib/computed/per-page-values.js?"); /***/ }), @@ -299,7 +863,7 @@ eval("\n\nmodule.exports = function () {\n return Math.ceil(this.count / this.l /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nmodule.exports = function () {\n return {\n alwaysShowPerPageSelect: false,\n hidePerPageSelect: false,\n dateColumns: [],\n listColumns: {},\n datepickerOptions: {\n locale: {\n cancelLabel: \"Clear\"\n }\n },\n datepickerPerColumnOptions: {},\n initialPage: 1,\n perPage: 10,\n perPageValues: [10, 25, 50, 100],\n groupBy: false,\n collapseGroups: false,\n destroyEventBus: false,\n sendEmptyFilters: false,\n params: {},\n sortable: true,\n filterable: true,\n groupMeta: [],\n initFilters: {},\n sendInitialRequest: true,\n customFilters: [],\n templates: {},\n debounce: 250,\n dateFormat: \"DD/MM/YYYY\",\n dateFormatPerColumn: {},\n toMomentFormat: false,\n skin: false,\n columnsDisplay: {},\n columnsDropdown: false,\n texts: {\n count: \"Showing {from} to {to} of {count} records|{count} records|One record\",\n first: \"First\",\n last: \"Last\",\n filter: \"Filter:\",\n filterPlaceholder: \"Search query\",\n limit: \"Records:\",\n page: \"Page:\",\n noResults: \"No matching records\",\n filterBy: \"Filter by {column}\",\n loading: \"Loading...\",\n defaultOption: \"Select {column}\",\n columns: \"Columns\"\n },\n sortIcon: {\n is: \"glyphicon-sort\",\n base: \"glyphicon\",\n up: \"glyphicon-chevron-up\",\n down: \"glyphicon-chevron-down\"\n },\n sortingAlgorithm: function sortingAlgorithm(data, column) {\n return data.sort(this.getSortFn(column));\n },\n filterAlgorithm: {},\n customSorting: {},\n multiSorting: {},\n clientMultiSorting: true,\n serverMultiSorting: false,\n filterByColumn: false,\n highlightMatches: false,\n orderBy: false,\n descOrderColumns: [],\n footerHeadings: false,\n headings: {},\n headingsTooltips: {},\n pagination: {\n dropdown: false,\n chunk: 10,\n edge: false,\n align: \"center\",\n nav: \"fixed\"\n },\n childRow: false,\n childRowTogglerFirst: true,\n showChildRowToggler: true,\n uniqueKey: \"id\",\n requestFunction: false,\n requestAdapter: function requestAdapter(data) {\n return data;\n },\n responseAdapter: function responseAdapter(resp) {\n var data = this.getResponseData(resp);\n return {\n data: data.data,\n count: data.count\n };\n },\n requestKeys: {\n query: \"query\",\n limit: \"limit\",\n orderBy: \"orderBy\",\n ascending: \"ascending\",\n page: \"page\",\n byColumn: \"byColumn\"\n },\n rowClassCallback: false,\n preserveState: false,\n saveState: false,\n storage: \"local\",\n columnsClasses: {},\n summary: false,\n caption: false,\n cellClasses: {},\n visibleColumns: false,\n hiddenColumns: false,\n resizableColumns: true,\n editableColumns: []\n };\n};\n\n//# sourceURL=webpack://VueTables/./lib/config/defaults.js?"); +eval("\n\nmodule.exports = function () {\n return {\n alwaysShowPerPageSelect: false,\n hidePerPageSelect: false,\n dateColumns: [],\n listColumns: {},\n datepickerOptions: {\n locale: {\n cancelLabel: \"Clear\"\n }\n },\n datepickerPerColumnOptions: {},\n initialPage: 1,\n perPage: 10,\n perPageValues: [10, 25, 50, 100],\n groupBy: false,\n collapseGroups: false,\n destroyEventBus: false,\n sendEmptyFilters: false,\n params: {},\n sortable: true,\n filterable: true,\n groupMeta: [],\n initFilters: {},\n sendInitialRequest: true,\n customFilters: [],\n templates: {},\n debounce: 250,\n dateFormat: \"DD/MM/YYYY\",\n dateFormatPerColumn: {},\n toMomentFormat: false,\n skin: false,\n columnsDisplay: {},\n columnsDropdown: false,\n texts: {\n count: \"Showing {from} to {to} of {count} records|{count} records|One record\",\n first: \"First\",\n last: \"Last\",\n filter: \"Filter:\",\n filterPlaceholder: \"Search query\",\n limit: \"Records:\",\n page: \"Page:\",\n noResults: \"No matching records\",\n filterBy: \"Filter by {column}\",\n loading: \"Loading...\",\n defaultOption: \"Select {column}\",\n columns: \"Columns\"\n },\n sortIcon: {\n is: \"glyphicon-sort\",\n base: \"glyphicon\",\n up: \"glyphicon-chevron-up\",\n down: \"glyphicon-chevron-down\"\n },\n sortingAlgorithm: function sortingAlgorithm(data, column) {\n return data.sort(this.getSortFn(column));\n },\n filterAlgorithm: {},\n customSorting: {},\n multiSorting: {},\n clientMultiSorting: true,\n serverMultiSorting: false,\n filterByColumn: false,\n highlightMatches: false,\n orderBy: false,\n descOrderColumns: [],\n footerHeadings: false,\n headings: {},\n headingsTooltips: {},\n pagination: {\n dropdown: false,\n chunk: 10,\n edge: false,\n align: \"center\",\n nav: \"fixed\"\n },\n childRow: false,\n childRowTogglerFirst: true,\n showChildRowToggler: true,\n uniqueKey: \"id\",\n requestFunction: false,\n requestAdapter: function requestAdapter(data) {\n return data;\n },\n responseAdapter: function responseAdapter(resp) {\n var data = this.getResponseData(resp);\n return {\n data: data.data,\n count: data.count\n };\n },\n requestKeys: {\n query: \"query\",\n limit: \"limit\",\n orderBy: \"orderBy\",\n ascending: \"ascending\",\n page: \"page\",\n byColumn: \"byColumn\"\n },\n rowClassCallback: false,\n preserveState: false,\n saveState: false,\n storage: \"local\",\n columnsClasses: {},\n summary: false,\n caption: false,\n cellClasses: {},\n visibleColumns: false,\n hiddenColumns: false,\n resizableColumns: true,\n editableColumns: [],\n tabbable: true,\n infiniteScroll: false,\n componentsOverride: {}\n };\n};\n\n//# sourceURL=webpack://VueTables/./lib/config/defaults.js?"); /***/ }), @@ -423,18 +987,6 @@ eval("\n\nvar _bus = _interopRequireDefault(__webpack_require__(/*! ./bus */ \". /***/ }), -/***/ "./lib/methods/apply-filters.js": -/*!**************************************!*\ - !*** ./lib/methods/apply-filters.js ***! - \**************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nmodule.exports = function (data) {\n var _this = this;\n\n try {\n return data.map(function (row) {\n for (var column in row) {\n if (_this.source === 'client') row[column] = _this.formatDate(row[column], _this.dateFormat(column));\n\n if (_this.isListFilter(column) && !_this.opts.templates[column] && !_this.$scopedSlots[column]) {\n row[column] = _this.optionText(row[column], column);\n }\n }\n\n return row;\n });\n } catch (e) {\n console.error(\"vue-tables-2: non-iterable data property. Expected array, got \".concat(_typeof(data), \". Make sure that your response conforms to the expected format, or use the 'responseAdapter' option to match the currently returned format\"));\n console.error('Data equals', data);\n throw new Error();\n }\n};\n\n//# sourceURL=webpack://VueTables/./lib/methods/apply-filters.js?"); - -/***/ }), - /***/ "./lib/methods/cell-classes.js": /*!*************************************!*\ !*** ./lib/methods/cell-classes.js ***! @@ -467,7 +1019,7 @@ eval("\n\nmodule.exports = function (rowId) {\n return this.openChildRows.inclu /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar object_filled_keys_count = __webpack_require__(/*! ../helpers/object-filled-keys-count */ \"./lib/helpers/object-filled-keys-count.js\");\n\nvar is_valid_moment_object = __webpack_require__(/*! ../helpers/is-valid-moment-object */ \"./lib/helpers/is-valid-moment-object.js\");\n\nvar filterByCustomFilters = __webpack_require__(/*! ../filters/custom-filters */ \"./lib/filters/custom-filters.js\");\n\nmodule.exports = function (data, e) {\n if (e) {\n var _query = this.query;\n this.setPage(1, true);\n var name = this.getName(e.target.name);\n var value = _typeof(e.target.value) === 'object' ? e.target.value : '' + e.target.value;\n\n if (name) {\n _query[name] = value;\n } else {\n _query = value;\n }\n\n this.vuex ? this.commit('SET_FILTER', _query) : this.query = _query;\n this.updateState('query', _query);\n\n if (name) {\n this.dispatch('filter', {\n name: name,\n value: value\n });\n this.dispatch(\"filter::\".concat(name), value);\n } else {\n this.dispatch('filter', value);\n }\n }\n\n var query = this.query;\n var totalQueries = !query ? 0 : 1;\n if (!this.opts) return data;\n\n if (this.opts.filterByColumn) {\n totalQueries = object_filled_keys_count(query);\n }\n\n var value;\n var found;\n var currentQuery;\n var dateFormat;\n var filterByDate;\n var isListFilter;\n var data = filterByCustomFilters(data, this.opts.customFilters, this.customQueries);\n if (!totalQueries) return data;\n return data.filter(function (row, index) {\n found = 0;\n this.filterableColumns.forEach(function (column) {\n filterByDate = this.opts.dateColumns.indexOf(column) > -1 && this.opts.filterByColumn;\n isListFilter = this.isListFilter(column) && this.opts.filterByColumn;\n dateFormat = this.dateFormat(column);\n value = this._getValue(row, column);\n\n if (is_valid_moment_object(value) && !filterByDate) {\n value = value.format(dateFormat);\n }\n\n currentQuery = this.opts.filterByColumn ? query[column] : query;\n currentQuery = setCurrentQuery(currentQuery);\n\n if (currentQuery) {\n if (this.opts.filterAlgorithm[column]) {\n if (this.opts.filterAlgorithm[column](row, this.opts.filterByColumn ? query[column] : query)) found++;\n } else {\n if (foundMatch(currentQuery, value, isListFilter)) found++;\n }\n }\n }.bind(this));\n return found >= totalQueries;\n }.bind(this));\n};\n\nfunction setCurrentQuery(query) {\n if (!query) return '';\n if (typeof query == 'string') return query.toLowerCase(); // Date Range\n\n return query;\n}\n\nfunction foundMatch(query, value, isListFilter) {\n if (['string', 'number', 'boolean'].indexOf(_typeof(value)) > -1) {\n value = String(value).toLowerCase();\n } // List Filter\n\n\n if (isListFilter) {\n return value == query;\n } //Text Filter\n\n\n if (typeof value === 'string') {\n return value.indexOf(query) > -1;\n } // Date range\n\n\n if (is_valid_moment_object(value)) {\n var start = moment(query.start, 'YYYY-MM-DD HH:mm:ss');\n var end = moment(query.end, 'YYYY-MM-DD HH:mm:ss');\n return value >= start && value <= end;\n }\n\n if (_typeof(value) === 'object') {\n for (var key in value) {\n if (foundMatch(query, value[key])) return true;\n }\n\n return false;\n }\n\n return value >= start && value <= end;\n}\n\n//# sourceURL=webpack://VueTables/./lib/methods/client-search.js?"); +eval("\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar object_filled_keys_count = __webpack_require__(/*! ../helpers/object-filled-keys-count */ \"./lib/helpers/object-filled-keys-count.js\");\n\nvar is_valid_moment_object = __webpack_require__(/*! ../helpers/is-valid-moment-object */ \"./lib/helpers/is-valid-moment-object.js\");\n\nvar filterByCustomFilters = __webpack_require__(/*! ../filters/custom-filters */ \"./lib/filters/custom-filters.js\");\n\nmodule.exports = function (data, e) {\n if (e) {\n var _query = this.query;\n this.setPage(1, true);\n var name = this.getName(e.target.name);\n var value = _typeof(e.target.value) === 'object' ? e.target.value : '' + e.target.value;\n\n if (name) {\n _query[name] = value;\n } else {\n _query = value;\n }\n\n this.vuex ? this.commit('SET_FILTER', _query) : this.query = _query;\n this.updateState('query', _query);\n\n if (name) {\n this.dispatch('filter', {\n name: name,\n value: value\n });\n this.dispatch(\"filter::\".concat(name), value);\n } else {\n this.dispatch('filter', value);\n }\n }\n\n var query = this.query;\n var totalQueries = !query ? 0 : 1;\n if (!this.opts) return data;\n\n if (this.opts.filterByColumn) {\n totalQueries = object_filled_keys_count(query);\n }\n\n var value;\n var found;\n var currentQuery;\n var dateFormat;\n var filterByDate;\n var isListFilter;\n var data = filterByCustomFilters(data, this.opts.customFilters, this.customQueries);\n if (!totalQueries) return data;\n return data.filter(function (row, index) {\n found = 0;\n this.filterableColumns.forEach(function (column) {\n filterByDate = this.opts.dateColumns.indexOf(column) > -1 && this.opts.filterByColumn;\n isListFilter = this.isListFilter(column) && this.opts.filterByColumn;\n dateFormat = this.dateFormat(column);\n value = this._getValue(row, column);\n\n if (is_valid_moment_object(value) && !filterByDate) {\n value = value.format(dateFormat);\n }\n\n currentQuery = this.opts.filterByColumn ? query[column] : query;\n currentQuery = setCurrentQuery(currentQuery);\n\n if (currentQuery) {\n if (this.opts.filterAlgorithm[column]) {\n if (this.opts.filterAlgorithm[column].call(this.$parent.$parent, row, this.opts.filterByColumn ? query[column] : query)) found++;\n } else {\n if (foundMatch(currentQuery, value, isListFilter)) found++;\n }\n }\n }.bind(this));\n return found >= totalQueries;\n }.bind(this));\n};\n\nfunction setCurrentQuery(query) {\n if (!query) return '';\n if (typeof query == 'string') return query.toLowerCase(); // Date Range\n\n return query;\n}\n\nfunction foundMatch(query, value, isListFilter) {\n if (['string', 'number', 'boolean'].indexOf(_typeof(value)) > -1) {\n value = String(value).toLowerCase();\n } // List Filter\n\n\n if (isListFilter) {\n return value == query;\n } //Text Filter\n\n\n if (typeof value === 'string') {\n return value.indexOf(query) > -1;\n } // Date range\n\n\n if (is_valid_moment_object(value)) {\n var start = moment(query.start, 'YYYY-MM-DD HH:mm:ss');\n var end = moment(query.end, 'YYYY-MM-DD HH:mm:ss');\n return value >= start && value <= end;\n }\n\n if (_typeof(value) === 'object') {\n for (var key in value) {\n if (foundMatch(query, value[key])) return true;\n }\n\n return false;\n }\n\n return value >= start && value <= end;\n}\n\n//# sourceURL=webpack://VueTables/./lib/methods/client-search.js?"); /***/ }), @@ -527,7 +1079,7 @@ eval("\n\nmodule.exports = function (column, ascending) {\n var multiIndex = ar /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nvar _bus = _interopRequireDefault(__webpack_require__(/*! ../bus */ \"./lib/bus.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nmodule.exports = function (event, payload) {\n if (this.vuex) {\n if (event.split('::').length > 1) return;\n this.commit(event.toUpperCase().replace('-', '_'), payload);\n }\n\n this.$emit(event, payload);\n\n _bus[\"default\"].$emit(\"vue-tables.\".concat(event), payload);\n\n if (this.name) {\n _bus[\"default\"].$emit(\"vue-tables.\".concat(this.name, \".\").concat(event), payload);\n }\n};\n\n//# sourceURL=webpack://VueTables/./lib/methods/dispatch.js?"); +eval("\n\nvar _bus = _interopRequireDefault(__webpack_require__(/*! ../bus */ \"./lib/bus.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nmodule.exports = function (event, payload) {\n if (this.vuex) {\n if (event.split('::').length > 1) return;\n this.commit(event.toUpperCase().replace('-', '_'), payload);\n }\n\n this.$parent.$emit(event, payload);\n\n _bus[\"default\"].$emit(\"vue-tables.\".concat(event), payload);\n\n if (this.name) {\n _bus[\"default\"].$emit(\"vue-tables.\".concat(this.name, \".\").concat(event), payload);\n }\n};\n\n//# sourceURL=webpack://VueTables/./lib/methods/dispatch.js?"); /***/ }), @@ -543,6 +1095,18 @@ eval("\n\nmodule.exports = function (text, replacements) {\n if (!this.opts.tex /***/ }), +/***/ "./lib/methods/filter-type.js": +/*!************************************!*\ + !*** ./lib/methods/filter-type.js ***! + \************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nmodule.exports = function (column) {\n if (!this.opts.filterable) return false;\n if (this.isTextFilter(column)) return 'vt-text-filter';\n if (this.isDateFilter(column)) return 'vt-date-filter';\n if (this.isListFilter(column)) return 'vt-list-filter';\n};\n\n//# sourceURL=webpack://VueTables/./lib/methods/filter-type.js?"); + +/***/ }), + /***/ "./lib/methods/filterable.js": /*!***********************************!*\ !*** ./lib/methods/filterable.js ***! @@ -563,7 +1127,7 @@ eval("\n\nmodule.exports = function (column) {\n if (!this.opts.filterable) ret /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nmodule.exports = function (h, row, index) {\n // scoped slot\n if (this.$scopedSlots.child_row) return this.$scopedSlots.child_row({\n row: row,\n index: index\n });\n var childRow = this.opts.childRow; // function\n\n if (typeof childRow === 'function') return childRow.apply(this, [h, row]); // component\n\n return h(childRow, {\n attrs: {\n data: row\n }\n });\n};\n\n//# sourceURL=webpack://VueTables/./lib/methods/get-child-row-template.js?"); +eval("\n\nmodule.exports = function (h, row, index, scopedSlot) {\n // scoped slot\n if (scopedSlot) return scopedSlot({\n row: row,\n index: index\n });\n var childRow = this.opts.childRow; // function\n\n if (typeof childRow === 'function') return childRow.apply(this, [h, row]); // component\n\n return h(childRow, {\n attrs: {\n data: row\n }\n });\n};\n\n//# sourceURL=webpack://VueTables/./lib/methods/get-child-row-template.js?"); /***/ }), @@ -587,7 +1151,7 @@ eval("\n\nmodule.exports = function (column) {\n return 'vf__' + column.split(' /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar merge = __webpack_require__(/*! merge */ \"./node_modules/merge/merge.js\");\n\nmodule.exports = function (promiseOnly) {\n var _data;\n\n var additionalData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var emitLoading = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n var keys = this.opts.requestKeys;\n var data = (_data = {}, _defineProperty(_data, keys.query, this.filteredQuery), _defineProperty(_data, keys.limit, this.limit), _defineProperty(_data, keys.ascending, this.orderBy.ascending ? 1 : 0), _defineProperty(_data, keys.page, this.page), _defineProperty(_data, keys.byColumn, this.opts.filterByColumn ? 1 : 0), _data);\n if (this.orderBy.hasOwnProperty('column') && this.orderBy.column) data[keys.orderBy] = this.orderBy.column;\n data = merge(data, this.opts.params, this.customQueries, additionalData);\n\n if (this.hasMultiSort && this.orderBy.column && this.userMultiSorting[this.orderBy.column]) {\n data.multiSort = this.userMultiSorting[this.orderBy.column];\n }\n\n data = this.opts.requestAdapter(data);\n\n if (emitLoading) {\n this.dispatch('loading', data);\n }\n\n var promise = this.sendRequest(data);\n if (promiseOnly) return promise;\n return promise.then(function (response) {\n if (typeof response !== 'undefined') {\n this.loading = false;\n return this.setData(response);\n } else {\n return false;\n }\n }.bind(this));\n};\n\n//# sourceURL=webpack://VueTables/./lib/methods/get-data.js?"); +eval("\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nvar merge = __webpack_require__(/*! merge */ \"./node_modules/merge/merge.js\");\n\nmodule.exports = function (promiseOnly) {\n var _data;\n\n var additionalData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var emitLoading = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n var keys = this.opts.requestKeys;\n var data = (_data = {}, _defineProperty(_data, keys.query, this.filteredQuery), _defineProperty(_data, keys.limit, this.limit), _defineProperty(_data, keys.ascending, this.orderBy.ascending ? 1 : 0), _defineProperty(_data, keys.page, parseInt(this.page)), _defineProperty(_data, keys.byColumn, this.opts.filterByColumn ? 1 : 0), _data);\n if (this.orderBy.hasOwnProperty('column') && this.orderBy.column) data[keys.orderBy] = this.orderBy.column;\n data = merge(data, this.opts.params, this.customQueries, additionalData);\n\n if (this.hasMultiSort && this.orderBy.column && this.userMultiSorting[this.orderBy.column]) {\n data.multiSort = this.userMultiSorting[this.orderBy.column];\n }\n\n data = this.opts.requestAdapter(data);\n\n if (emitLoading) {\n this.dispatch('loading', data);\n }\n\n var promise = this.sendRequest(data);\n if (promiseOnly) return promise;\n return promise.then(function (response) {\n if (typeof response !== 'undefined') {\n this.loading = false;\n return this.setData(response);\n } else {\n return false;\n }\n }.bind(this));\n};\n\n//# sourceURL=webpack://VueTables/./lib/methods/get-data.js?"); /***/ }), @@ -599,7 +1163,7 @@ eval("\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.d /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nmodule.exports = function (value) {\n if (this.$scopedSlots && this.$scopedSlots['__group_meta']) {\n var data = this.opts.groupMeta.find(function (val) {\n return val.value === value;\n });\n if (!data) return '';\n return this.$scopedSlots['__group_meta'](data);\n }\n\n return '';\n};\n\n//# sourceURL=webpack://VueTables/./lib/methods/get-group-slot.js?"); +eval("\n\nmodule.exports = function (value) {\n if (this.$parent.$scopedSlots && this.$parent.$scopedSlots['__group_meta']) {\n var data = this.opts.groupMeta.find(function (val) {\n return val.value === value;\n });\n if (!data) return '';\n return this.$parent.$scopedSlots['__group_meta'](data);\n }\n\n return '';\n};\n\n//# sourceURL=webpack://VueTables/./lib/methods/get-group-slot.js?"); /***/ }), @@ -623,7 +1187,7 @@ eval("\n\nmodule.exports = function (value, h) {\n if (typeof value !== 'string /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nvar _ucfirst = _interopRequireDefault(__webpack_require__(/*! ../helpers/ucfirst */ \"./lib/helpers/ucfirst.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nmodule.exports = function (value, h) {\n if (typeof value !== 'string') return '';\n\n if (typeof this.$slots[\"h__\".concat(value)] !== 'undefined') {\n return this.$slots[\"h__\".concat(value)];\n }\n\n var derivedHeading = (0, _ucfirst[\"default\"])(value.split(\"_\").join(\" \"));\n if (!this.opts.headings.hasOwnProperty(value)) return derivedHeading;\n\n if (typeof this.opts.headings[value] === 'function') {\n if (h) return this.opts.headings[value].call(this.$parent, h);\n return derivedHeading;\n }\n\n return this.opts.headings[value];\n};\n\n//# sourceURL=webpack://VueTables/./lib/methods/get-heading.js?"); +eval("\n\nvar _ucfirst = _interopRequireDefault(__webpack_require__(/*! ../helpers/ucfirst */ \"./lib/helpers/ucfirst.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nmodule.exports = function (value, h) {\n if (typeof value !== 'string') return '';\n\n if (typeof this.$parent.$slots[\"h__\".concat(value)] !== 'undefined') {\n return this.$parent.$slots[\"h__\".concat(value)];\n }\n\n var derivedHeading = (0, _ucfirst[\"default\"])(value.split(\"_\").join(\" \"));\n if (!this.opts.headings.hasOwnProperty(value)) return derivedHeading;\n\n if (typeof this.opts.headings[value] === 'function') {\n if (h) return this.opts.headings[value].call(this.$parent, h);\n return derivedHeading;\n }\n\n return this.opts.headings[value];\n};\n\n//# sourceURL=webpack://VueTables/./lib/methods/get-heading.js?"); /***/ }), @@ -659,7 +1223,7 @@ eval("\n\nmodule.exports = function (name) {\n if (!name) return name;\n name /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nmodule.exports = function () {\n var _this = this;\n\n var rows = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n if (!this.opts.childRow || typeof this.opts.childRow === 'function') {\n throw new Error('vue-tables-2: Child row undefined or not a component');\n }\n\n var Rows = rows ? this.openChildRows.filter(function (row) {\n return rows.includes(row);\n }) : this.openChildRows;\n if (!Rows.length) return [];\n var components = this.$children.filter(function (child) {\n return child.$options.name === 'ChildRow' && Rows.includes(child.data[_this.opts.uniqueKey]);\n });\n return components;\n};\n\n//# sourceURL=webpack://VueTables/./lib/methods/get-open-child-rows.js?"); +eval("\n\nmodule.exports = function () {\n var _this = this;\n\n var rows = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n if (!this.opts.childRow || typeof this.opts.childRow === 'function') {\n throw new Error('vue-tables-2: Child row undefined or not a component');\n }\n\n var Rows = rows ? this.openChildRows.filter(function (row) {\n return rows.includes(row);\n }) : this.openChildRows;\n if (!Rows.length) return [];\n return this.$parent.$refs.vt_table.$refs.vt_table_body.$children[0].$children.filter(function (child) {\n return child.$options.name === 'VtChildRow' && Rows.includes(child.$children[0].$children[0].data[_this.opts.uniqueKey]);\n }).map(function (child) {\n return child.$children[0].$children[0];\n });\n};\n\n//# sourceURL=webpack://VueTables/./lib/methods/get-open-child-rows.js?"); /***/ }), @@ -759,18 +1323,6 @@ eval("\n\nmodule.exports = function () {\n if (!this.opts.orderBy) return;\n t /***/ }), -/***/ "./lib/methods/init-pagination.js": -/*!****************************************!*\ - !*** ./lib/methods/init-pagination.js ***! - \****************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\n\nmodule.exports = function () {\n this.page = 1;\n\n if (!this.opts.pagination.dropdown) {\n this.$refs.pagination.setPage(1);\n }\n};\n\n//# sourceURL=webpack://VueTables/./lib/methods/init-pagination.js?"); - -/***/ }), - /***/ "./lib/methods/init-query.js": /*!***********************************!*\ !*** ./lib/methods/init-query.js ***! @@ -827,7 +1379,7 @@ eval("\n\nmodule.exports = function (column) {\n return this.query.hasOwnProper /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nmodule.exports = function (column) {\n return this.query.hasOwnProperty(column) && this.opts.listColumns.hasOwnProperty(column);\n};\n\n//# sourceURL=webpack://VueTables/./lib/methods/is-list-filter.js?"); +eval("\n\nmodule.exports = function (column) {\n return this.opts.listColumns.hasOwnProperty(column);\n};\n\n//# sourceURL=webpack://VueTables/./lib/methods/is-list-filter.js?"); /***/ }), @@ -939,6 +1491,18 @@ eval("\n\nmodule.exports = function () {\n if (this.opts.filterByColumn) {\n /***/ }), +/***/ "./lib/methods/revert-value.js": +/*!*************************************!*\ + !*** ./lib/methods/revert-value.js ***! + \*************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nmodule.exports = function _revertVal(row, column) {\n return function () {\n var _this = this;\n\n row[column] = this.editing.find(function (e) {\n return e.id === row[_this.opts.uniqueKey];\n }).originalValue;\n }.bind(this);\n};\n\n//# sourceURL=webpack://VueTables/./lib/methods/revert-value.js?"); + +/***/ }), + /***/ "./lib/methods/row-was-clicked.js": /*!****************************************!*\ !*** ./lib/methods/row-was-clicked.js ***! @@ -951,6 +1515,18 @@ eval("\n\nmodule.exports = function (row, index, event) {\n var data;\n var id /***/ }), +/***/ "./lib/methods/search.js": +/*!*******************************!*\ + !*** ./lib/methods/search.js ***! + \*******************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nvar _debounce = _interopRequireDefault(__webpack_require__(/*! debounce */ \"./node_modules/debounce/index.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nmodule.exports = function (debounceVal) {\n var search = this.source === 'client' ? this.search.bind(this, this.data) : this.serverSearch.bind(this);\n\n if (!debounceVal) {\n return search;\n }\n\n var debouncedSearch = (0, _debounce[\"default\"])(search, debounceVal);\n return function (e) {\n // ignore tab\n if (e.keyCode === 9) return; // search immediately on enter\n\n if (e.keyCode === 13) {\n debouncedSearch.clear();\n search.apply(void 0, arguments);\n } else {\n debouncedSearch.apply(void 0, arguments);\n }\n };\n};\n\n//# sourceURL=webpack://VueTables/./lib/methods/search.js?"); + +/***/ }), + /***/ "./lib/methods/send-request.js": /*!*************************************!*\ !*** ./lib/methods/send-request.js ***! @@ -971,7 +1547,7 @@ eval("\n\nmodule.exports = function (data) {\n if (typeof this.opts.requestFunc /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nmodule.exports = function (e, dateEvent) {\n // we need to handle the store this.query to make sure we're not mutating outside of it\n var query = this.vuex ? JSON.parse(JSON.stringify(this.query)) : this.query; // in case we pass an object manually (mostly used for init-date-filters should refactor\n\n if (Object.prototype.toString.call(e).slice(8, -1) == 'Object') {\n query = this.vuex ? JSON.parse(JSON.stringify(e)) : e;\n if (!this.vuex) this.query = query;\n var name = dateEvent.target.name;\n var value = dateEvent.target.value;\n\n if (name) {\n this.dispatch('filter', {\n name: name,\n value: value\n });\n this.dispatch(\"filter::\".concat(name), value);\n } else {\n this.dispatch('filter', value);\n }\n\n this.updateState('query', query);\n } else if (e) {\n var _name = this.getName(e.target.name);\n\n var _value = e.target.value;\n\n if (_name) {\n query[_name] = _value;\n } else {\n query = _value;\n }\n\n if (!this.vuex) this.query = query;\n\n if (_name) {\n this.dispatch('filter', {\n name: _name,\n value: _value\n });\n this.dispatch(\"filter::\".concat(_name), _value);\n } else {\n this.dispatch('filter', _value);\n }\n\n this.updateState('query', query);\n }\n\n return search(this, query);\n};\n\nfunction search(that, query) {\n if (that.vuex) {\n that.commit('SET_FILTER', query);\n } else {\n that.initPagination();\n\n if (that.opts.pagination.dropdown) {\n that.getData();\n }\n }\n}\n\nfunction noDebounce(e, name, opts) {\n return !e || name && (opts.dateColumns.indexOf(name) > -1 || Object.keys(opts.listColumns).indexOf(name) > -1);\n}\n\n//# sourceURL=webpack://VueTables/./lib/methods/server-search.js?"); +eval("\n\nmodule.exports = function (e, dateEvent) {\n // we need to handle the store this.query to make sure we're not mutating outside of it\n var query = this.vuex ? JSON.parse(JSON.stringify(this.query)) : this.query; // in case we pass an object manually (mostly used for init-date-filters should refactor\n\n if (Object.prototype.toString.call(e).slice(8, -1) == 'Object') {\n query = this.vuex ? JSON.parse(JSON.stringify(e)) : e;\n if (!this.vuex) this.query = query;\n var name = dateEvent.target.name;\n var value = dateEvent.target.value;\n\n if (name) {\n this.dispatch('filter', {\n name: name,\n value: value\n });\n this.dispatch(\"filter::\".concat(name), value);\n } else {\n this.dispatch('filter', value);\n }\n\n this.updateState('query', query);\n } else if (e) {\n var _name = this.getName(e.target.name);\n\n var _value = e.target.value;\n\n if (_name) {\n query[_name] = _value;\n } else {\n query = _value;\n }\n\n if (!this.vuex) this.query = query;\n\n if (_name) {\n this.dispatch('filter', {\n name: _name,\n value: _value\n });\n this.dispatch(\"filter::\".concat(_name), _value);\n } else {\n this.dispatch('filter', _value);\n }\n\n this.updateState('query', query);\n }\n\n return search(this, query);\n};\n\nfunction search(that, query) {\n if (that.vuex) {\n that.commit('SET_FILTER', query);\n } else {\n that.page = 1;\n that.updateState('page', 1);\n that.getData();\n }\n}\n\n//# sourceURL=webpack://VueTables/./lib/methods/server-search.js?"); /***/ }), @@ -995,7 +1571,7 @@ eval("\n\nmodule.exports = function () {\n var _this = this;\n\n if (this.opts /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nmodule.exports = function (response) {\n var data = this.opts.responseAdapter.call(this, response);\n this.data = this.applyFilters(data.data);\n\n if (isNaN(data.count)) {\n console.error(\"vue-tables-2: invalid 'count' property. Expected number, got \".concat(_typeof(data.count)));\n console.error('count equals', data.count);\n throw new Error();\n }\n\n this.count = parseInt(data.count);\n setTimeout(function () {\n this.dispatch('loaded', response);\n }.bind(this), 0);\n};\n\n//# sourceURL=webpack://VueTables/./lib/methods/set-data.js?"); +eval("\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nmodule.exports = function (response) {\n var data = this.opts.responseAdapter.call(this, response);\n this.data = data.data;\n\n if (isNaN(data.count)) {\n console.error(\"vue-tables-2: invalid 'count' property. Expected number, got \".concat(_typeof(data.count)));\n console.error('count equals', data.count);\n throw new Error();\n }\n\n this.count = parseInt(data.count);\n setTimeout(function () {\n this.dispatch('loaded', response);\n }.bind(this), 0);\n};\n\n//# sourceURL=webpack://VueTables/./lib/methods/set-data.js?"); /***/ }), @@ -1011,6 +1587,18 @@ eval("\n\nmodule.exports = function (column, start, end) {\n var dateFormat = t /***/ }), +/***/ "./lib/methods/set-editing-cell.js": +/*!*****************************************!*\ + !*** ./lib/methods/set-editing-cell.js ***! + \*****************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nmodule.exports = function _setEditingCell(row, column) {\n return function (editing) {\n var _this = this;\n\n if (editing) {\n this.editing.push({\n id: row[this.opts.uniqueKey],\n column: column,\n originalValue: row[column]\n });\n } else {\n this.editing = this.editing.filter(function (e) {\n return e.id !== row[_this.opts.uniqueKey];\n });\n }\n }.bind(this);\n};\n\n//# sourceURL=webpack://VueTables/./lib/methods/set-editing-cell.js?"); + +/***/ }), + /***/ "./lib/methods/set-filter.js": /*!***********************************!*\ !*** ./lib/methods/set-filter.js ***! @@ -1067,7 +1655,7 @@ eval("\n\nmodule.exports = function (column, ascending) {\n this.orderBy.column /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nmodule.exports = function (page, preventRequest) {\n page = page ? page : this.$refs.page.value;\n if (!this.opts.pagination.dropdown) this.$refs.pagination.Page = page;\n this.page = page;\n this.updateState('page', page);\n if (this.source == 'server' && !preventRequest) this.getData();\n};\n\n//# sourceURL=webpack://VueTables/./lib/methods/set-page.js?"); +eval("\n\nmodule.exports = function (page, preventRequest) {\n page = parseInt(page);\n this.page = page;\n this.updateState('page', page);\n this.dispatch('pagination', page);\n if (this.source == 'server' && !preventRequest) this.getData();\n};\n\n//# sourceURL=webpack://VueTables/./lib/methods/set-page.js?"); /***/ }), @@ -1079,7 +1667,7 @@ eval("\n\nmodule.exports = function (page, preventRequest) {\n page = page ? pa /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nmodule.exports = function (secondaryCol) {\n var primaryCol = this.orderBy.column;\n var primaryAsc = this.orderBy.ascending;\n if (!this.userMultiSorting[primaryCol]) this.userMultiSorting[primaryCol] = [];\n var multi = this.userMultiSorting[primaryCol];\n\n if (primaryCol === secondaryCol) {\n if (!multi.length || primaryAsc) {\n // primary is the only sorted column or is ascending\n this.orderBy.ascending = !this.orderBy.ascending;\n } else {\n // remove primary column and make secondary primary\n this.orderBy = multi.shift();\n this.userMultiSorting = {};\n this.userMultiSorting[this.orderBy.column] = multi;\n }\n } else {\n var secondary = multi.filter(function (col) {\n return col.column == secondaryCol;\n })[0];\n\n if (secondary) {\n if (!secondary.ascending) {\n // remove sort\n this.userMultiSorting[primaryCol] = multi.filter(function (col) {\n return col.column != secondaryCol;\n });\n if (!this.userMultiSorting[primaryCol].length) this.userMultiSorting = {};\n } else {\n // change direction\n secondary.ascending = !secondary.ascending;\n }\n } else {\n // add sort\n multi.push({\n column: secondaryCol,\n ascending: true\n });\n }\n } // force re-compilation of the filteredData computed property\n\n\n this.time = Date.now();\n this.dispatch('sorted', getMultiSortData(this.orderBy, this.userMultiSorting));\n};\n\nfunction getMultiSortData(main, secondary) {\n var cols = [JSON.parse(JSON.stringify(main))];\n cols = cols.concat(secondary[main.column]);\n return cols;\n}\n\n;\n\n//# sourceURL=webpack://VueTables/./lib/methods/set-user-multi-sort.js?"); +eval("\n\nmodule.exports = function (secondaryCol) {\n var primaryCol = this.orderBy.column;\n var primaryAsc = this.orderBy.ascending;\n if (!this.userMultiSorting[primaryCol]) this.$set(this.userMultiSorting, primaryCol, []);\n var multi = this.userMultiSorting[primaryCol];\n\n if (primaryCol === secondaryCol) {\n if (!multi.length || primaryAsc) {\n // primary is the only sorted column or is ascending\n this.orderBy.ascending = !this.orderBy.ascending;\n } else {\n // remove primary column and make secondary primary\n this.orderBy = multi.shift();\n this.userMultiSorting = {};\n this.$set(this.userMultiSorting, this.orderBy.column, multi);\n }\n } else {\n var secondary = multi.filter(function (col) {\n return col.column == secondaryCol;\n })[0];\n\n if (secondary) {\n if (!secondary.ascending) {\n // remove sort\n this.$set(this.userMultiSorting, primaryCol, multi.filter(function (col) {\n return col.column != secondaryCol;\n }));\n if (!this.userMultiSorting[primaryCol].length) this.userMultiSorting = {};\n } else {\n // change direction\n secondary.ascending = !secondary.ascending;\n }\n } else {\n // add sort\n multi.push({\n column: secondaryCol,\n ascending: true\n });\n }\n } // force re-compilation of the filteredData computed property\n\n\n this.time = Date.now();\n this.dispatch('sorted', getMultiSortData(this.orderBy, this.userMultiSorting));\n};\n\nfunction getMultiSortData(main, secondary) {\n var cols = [JSON.parse(JSON.stringify(main))];\n cols = cols.concat(secondary[main.column]);\n return cols;\n}\n\n;\n\n//# sourceURL=webpack://VueTables/./lib/methods/set-user-multi-sort.js?"); /***/ }), @@ -1203,6 +1791,18 @@ eval("\n\nmodule.exports = function (key, value) {\n if (!this.opts.saveState | /***/ }), +/***/ "./lib/methods/update-value.js": +/*!*************************************!*\ + !*** ./lib/methods/update-value.js ***! + \*************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\nvar clone = __webpack_require__(/*! clone */ \"./node_modules/clone/clone.js\");\n\nmodule.exports = function _updateValue(row, column) {\n return function (e) {\n var _this = this;\n\n var oldVal = row[column];\n row[column] = getValue(e);\n var data = clone(this.data).map(function (r) {\n if (r[_this.opts.uniqueKey] === row[_this.opts.uniqueKey]) {\n return row;\n }\n\n return r;\n });\n this.dispatch('input', data);\n this.dispatch('update', {\n row: row,\n column: column,\n oldVal: oldVal,\n newVal: row[column]\n });\n }.bind(this);\n};\n\nfunction getValue(val) {\n if (val.target) {\n return val.target.type === 'checkbox' ? val.target.checked : val.target.value;\n }\n\n return val;\n}\n\n//# sourceURL=webpack://VueTables/./lib/methods/update-value.js?"); + +/***/ }), + /***/ "./lib/mixins/before-destroy.js": /*!**************************************!*\ !*** ./lib/mixins/before-destroy.js ***! @@ -1223,7 +1823,7 @@ eval("\n\nvar _bus = _interopRequireDefault(__webpack_require__(/*! ../bus */ \" /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nmodule.exports = {\n listColumnsObject: __webpack_require__(/*! ../computed/list-columns-object */ \"./lib/computed/list-columns-object.js\"),\n allColumns: __webpack_require__(/*! ../computed/all-columns */ \"./lib/computed/all-columns.js\"),\n templatesKeys: __webpack_require__(/*! ../computed/templates-keys */ \"./lib/computed/templates-keys.js\"),\n opts: __webpack_require__(/*! ../computed/opts */ \"./lib/computed/opts.js\"),\n tableData: __webpack_require__(/*! ../computed/table-data */ \"./lib/computed/table-data.js\"),\n storage: __webpack_require__(/*! ../computed/storage */ \"./lib/computed/storage.js\"),\n filterableColumns: __webpack_require__(/*! ../computed/filterable-columns */ \"./lib/computed/filterable-columns.js\"),\n datepickerColumns: __webpack_require__(/*! ../computed/datepicker-columns */ \"./lib/computed/datepicker-columns.js\"),\n hasChildRow: __webpack_require__(/*! ../computed/has-child-row */ \"./lib/computed/has-child-row.js\"),\n colspan: __webpack_require__(/*! ../computed/colspan */ \"./lib/computed/colspan.js\"),\n hasGenericFilter: __webpack_require__(/*! ../computed/has-generic-filter */ \"./lib/computed/has-generic-filter.js\"),\n stateKey: function stateKey() {\n var key = this.name ? this.name : this.id;\n return 'vuetables_' + key;\n },\n Page: function Page() {\n return this.page;\n }\n};\n\n//# sourceURL=webpack://VueTables/./lib/mixins/computed.js?"); +eval("\n\nmodule.exports = {\n listColumnsObject: __webpack_require__(/*! ../computed/list-columns-object */ \"./lib/computed/list-columns-object.js\"),\n allColumns: __webpack_require__(/*! ../computed/all-columns */ \"./lib/computed/all-columns.js\"),\n templatesKeys: __webpack_require__(/*! ../computed/templates-keys */ \"./lib/computed/templates-keys.js\"),\n opts: __webpack_require__(/*! ../computed/opts */ \"./lib/computed/opts.js\"),\n tableData: __webpack_require__(/*! ../computed/table-data */ \"./lib/computed/table-data.js\"),\n storage: __webpack_require__(/*! ../computed/storage */ \"./lib/computed/storage.js\"),\n filterableColumns: __webpack_require__(/*! ../computed/filterable-columns */ \"./lib/computed/filterable-columns.js\"),\n datepickerColumns: __webpack_require__(/*! ../computed/datepicker-columns */ \"./lib/computed/datepicker-columns.js\"),\n hasChildRow: __webpack_require__(/*! ../computed/has-child-row */ \"./lib/computed/has-child-row.js\"),\n colspan: __webpack_require__(/*! ../computed/colspan */ \"./lib/computed/colspan.js\"),\n hasGenericFilter: __webpack_require__(/*! ../computed/has-generic-filter */ \"./lib/computed/has-generic-filter.js\"),\n perPageValues: __webpack_require__(/*! ../computed/per-page-values */ \"./lib/computed/per-page-values.js\"),\n stateKey: function stateKey() {\n var key = this.name ? this.name : this.id;\n return 'vuetables_' + key;\n },\n Page: function Page() {\n return this.page;\n },\n tabIndex: function tabIndex() {\n return this.opts.tabbable ? 0 : -1;\n }\n};\n\n//# sourceURL=webpack://VueTables/./lib/mixins/computed.js?"); /***/ }), @@ -1259,211 +1859,19 @@ eval("\n\nmodule.exports = function () {\n return {\n id: makeId(),\n all /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nmodule.exports = {\n initQuery: __webpack_require__(/*! ../methods/init-query */ \"./lib/methods/init-query.js\"),\n resetQuery: __webpack_require__(/*! ../methods/reset-query */ \"./lib/methods/reset-query.js\"),\n initCustomFilters: __webpack_require__(/*! ../methods/init-custom-filters */ \"./lib/methods/init-custom-filters.js\"),\n initOptions: __webpack_require__(/*! ../methods/init-options */ \"./lib/methods/init-options.js\"),\n sortableClass: __webpack_require__(/*! ../methods/sortable-class */ \"./lib/methods/sortable-class.js\"),\n sortableChevronClass: __webpack_require__(/*! ../methods/sortable-chevron-class */ \"./lib/methods/sortable-chevron-class.js\"),\n display: __webpack_require__(/*! ../methods/display */ \"./lib/methods/display.js\"),\n orderByColumn: __webpack_require__(/*! ../methods/order-by-column */ \"./lib/methods/order-by-column.js\"),\n getHeading: __webpack_require__(/*! ../methods/get-heading */ \"./lib/methods/get-heading.js\"),\n getHeadingTooltip: __webpack_require__(/*! ../methods/get-heading-tooltip */ \"./lib/methods/get-heading-tooltip.js\"),\n sortable: __webpack_require__(/*! ../methods/sortable */ \"./lib/methods/sortable.js\"),\n serverSearch: __webpack_require__(/*! ../methods/server-search */ \"./lib/methods/server-search.js\"),\n initOrderBy: __webpack_require__(/*! ../methods/init-order-by */ \"./lib/methods/init-order-by.js\"),\n initDateFilters: __webpack_require__(/*! ../methods/init-date-filters */ \"./lib/methods/init-date-filters.js\"),\n setFilter: __webpack_require__(/*! ../methods/set-filter */ \"./lib/methods/set-filter.js\"),\n setPage: __webpack_require__(/*! ../methods/set-page */ \"./lib/methods/set-page.js\"),\n setOrder: __webpack_require__(/*! ../methods/set-order */ \"./lib/methods/set-order.js\"),\n initPagination: __webpack_require__(/*! ../methods/init-pagination */ \"./lib/methods/init-pagination.js\"),\n filterable: __webpack_require__(/*! ../methods/filterable */ \"./lib/methods/filterable.js\"),\n isTextFilter: __webpack_require__(/*! ../methods/is-text-filter */ \"./lib/methods/is-text-filter.js\"),\n isDateFilter: __webpack_require__(/*! ../methods/is-date-filter */ \"./lib/methods/is-date-filter.js\"),\n isListFilter: __webpack_require__(/*! ../methods/is-list-filter */ \"./lib/methods/is-list-filter.js\"),\n highlightMatch: __webpack_require__(/*! ../filters/highlight-matches */ \"./lib/filters/highlight-matches.js\"),\n formatDate: __webpack_require__(/*! ../filters/format-date */ \"./lib/filters/format-date.js\"),\n hasDateFilters: __webpack_require__(/*! ../methods/has-date-filters */ \"./lib/methods/has-date-filters.js\"),\n applyFilters: __webpack_require__(/*! ../methods/apply-filters */ \"./lib/methods/apply-filters.js\"),\n optionText: __webpack_require__(/*! ../filters/option-text */ \"./lib/filters/option-text.js\"),\n render: __webpack_require__(/*! ../methods/render */ \"./lib/methods/render.js\"),\n rowWasClicked: __webpack_require__(/*! ../methods/row-was-clicked */ \"./lib/methods/row-was-clicked.js\"),\n setLimit: __webpack_require__(/*! ../methods/set-limit */ \"./lib/methods/set-limit.js\"),\n getOpenChildRows: __webpack_require__(/*! ../methods/get-open-child-rows */ \"./lib/methods/get-open-child-rows.js\"),\n dispatch: __webpack_require__(/*! ../methods/dispatch */ \"./lib/methods/dispatch.js\"),\n toggleChildRow: __webpack_require__(/*! ../methods/toggle-child-row */ \"./lib/methods/toggle-child-row.js\"),\n childRowTogglerClass: __webpack_require__(/*! ../methods/child-row-toggler-class */ \"./lib/methods/child-row-toggler-class.js\"),\n sendRequest: __webpack_require__(/*! ../methods/send-request */ \"./lib/methods/send-request.js\"),\n getResponseData: __webpack_require__(/*! ../methods/get-response-data */ \"./lib/methods/get-response-data.js\"),\n getSortFn: __webpack_require__(/*! ../methods/get-sort-fn */ \"./lib/methods/get-sort-fn.js\"),\n initState: __webpack_require__(/*! ../methods/init-state */ \"./lib/methods/init-state.js\"),\n updateState: __webpack_require__(/*! ../methods/update-state */ \"./lib/methods/update-state.js\"),\n columnClass: __webpack_require__(/*! ../methods/column-class */ \"./lib/methods/column-class.js\"),\n getName: __webpack_require__(/*! ../methods/get-name */ \"./lib/methods/get-name.js\"),\n toggleColumn: __webpack_require__(/*! ../methods/toggle-column */ \"./lib/methods/toggle-column.js\"),\n setUserMultiSort: __webpack_require__(/*! ../methods/set-user-multi-sort */ \"./lib/methods/set-user-multi-sort.js\"),\n _cellClasses: __webpack_require__(/*! ../methods/cell-classes */ \"./lib/methods/cell-classes.js\"),\n _setFiltersDOM: __webpack_require__(/*! ../methods/set-filters-dom */ \"./lib/methods/set-filters-dom.js\"),\n _currentlySorted: __webpack_require__(/*! ../methods/currently-sorted */ \"./lib/methods/currently-sorted.js\"),\n _getChildRowTemplate: __webpack_require__(/*! ../methods/get-child-row-template */ \"./lib/methods/get-child-row-template.js\"),\n _toggleColumnsDropdown: __webpack_require__(/*! ../methods/toggle-columns-dropdown */ \"./lib/methods/toggle-columns-dropdown.js\"),\n _onlyColumn: __webpack_require__(/*! ../methods/only-column */ \"./lib/methods/only-column.js\"),\n _onPagination: __webpack_require__(/*! ../methods/on-pagination */ \"./lib/methods/on-pagination.js\"),\n _toggleGroupDirection: __webpack_require__(/*! ../methods/toggle-group-direction */ \"./lib/methods/toggle-group-direction.js\"),\n _getInitialDateRange: __webpack_require__(/*! ../methods/get-initial-date-range */ \"./lib/methods/get-initial-date-range.js\"),\n _setDatepickerText: __webpack_require__(/*! ../methods/set-datepicker-text */ \"./lib/methods/set-datepicker-text.js\"),\n _initialOrderAscending: __webpack_require__(/*! ../methods/initial-order-ascending */ \"./lib/methods/initial-order-ascending.js\"),\n dateFormat: __webpack_require__(/*! ../methods/date-format */ \"./lib/methods/date-format.js\"),\n _setColumnsDropdownCloseListener: __webpack_require__(/*! ../methods/set-columns-dropdown-close-listener */ \"./lib/methods/set-columns-dropdown-close-listener.js\"),\n _getValue: __webpack_require__(/*! ../methods/get-value */ \"./lib/methods/get-value.js\"),\n _getColumnName: __webpack_require__(/*! ../methods/get-column-name */ \"./lib/methods/get-column-name.js\"),\n _shouldShowColumnOnInit: __webpack_require__(/*! ../methods/should-show-column-on-init */ \"./lib/methods/should-show-column-on-init.js\")\n};\n\n//# sourceURL=webpack://VueTables/./lib/mixins/methods.js?"); - -/***/ }), - -/***/ "./lib/modules/column-filters.js": -/*!***************************************!*\ - !*** ./lib/modules/column-filters.js ***! - \***************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar _merge = _interopRequireDefault(__webpack_require__(/*! merge */ \"./node_modules/merge/merge.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nmodule.exports = function (h) {\n var _this = this;\n\n return function (classes) {\n if (!_this.opts.filterByColumn || !_this.opts.filterable) return '';\n\n var textFilter = __webpack_require__(/*! ./text-filter */ \"./lib/modules/text-filter.js\").call(_this, h, classes.input);\n\n var dateFilter = __webpack_require__(/*! ./date-filter */ \"./lib/modules/date-filter.js\").call(_this, h);\n\n var listFilter = __webpack_require__(/*! ./list-filter */ \"./lib/modules/list-filter.js\").call(_this, h, classes.select);\n\n var filters = [];\n var filter;\n if (_this.hasChildRow && _this.opts.childRowTogglerFirst && _this.opts.showChildRowToggler) filters.push(h(\"th\"));\n\n _this.allColumns.map(function (column) {\n var filter = '';\n\n if (_this.filterable(column)) {\n switch (true) {\n case _this.isTextFilter(column):\n filter = textFilter(column);\n break;\n\n case _this.isDateFilter(column):\n filter = dateFilter(column);\n break;\n\n case _this.isListFilter(column):\n filter = listFilter(column);\n break;\n }\n }\n\n if (typeof _this.$slots[\"filter__\".concat(column)] !== 'undefined') {\n filter = filter ? h(\"div\", [filter, _this.$slots[\"filter__\".concat(column)]]) : _this.$slots[\"filter__\".concat(column)];\n }\n\n filters.push(h(\"th\", {\n \"class\": _this.columnClass(column)\n }, [h(\"div\", _defineProperty({\n \"class\": \"VueTables__column-filter\"\n }, \"class\", 'VueTables__' + column + '-filter-wrapper'), [filter])]));\n });\n\n if (_this.hasChildRow && !_this.opts.childRowTogglerFirst && _this.opts.showChildRowToggler) filters.push(h(\"th\"));\n return h(\"tr\", {\n \"class\": \"VueTables__filters-row\"\n }, [filters]);\n };\n};\n\n//# sourceURL=webpack://VueTables/./lib/modules/column-filters.js?"); - -/***/ }), - -/***/ "./lib/modules/columns-dropdown.js": -/*!*****************************************!*\ - !*** ./lib/modules/columns-dropdown.js ***! - \*****************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar dropdownWrapper = __webpack_require__(/*! ./dropdown-wrapper */ \"./lib/modules/dropdown-wrapper.js\");\n\nvar dropdownItemWrapper = __webpack_require__(/*! ./dropdown-item-wrapper */ \"./lib/modules/dropdown-item-wrapper.js\");\n\nmodule.exports = function (h) {\n var _this = this;\n\n return function (classes) {\n var cols = _this.columns.map(function (column) {\n return dropdownItemWrapper(h, classes, h(\"a\", {\n \"class\": classes.dropdown.item,\n attrs: {\n href: \"#\"\n },\n on: {\n \"click\": function click() {\n return _this.toggleColumn(column);\n }\n }\n }, [h(\"input\", {\n attrs: {\n type: \"checkbox\",\n disabled: _this._onlyColumn(column)\n },\n domProps: {\n \"value\": column,\n \"checked\": _this.allColumns.includes(column)\n }\n }), _this.getHeading(column)]));\n });\n\n return h(\"div\", {\n ref: \"columnsdropdown\",\n \"class\": \"\".concat(classes.dropdown.container, \" \").concat(classes.right, \" VueTables__columns-dropdown\")\n }, [h(\"button\", {\n attrs: {\n type: \"button\"\n },\n \"class\": \"\".concat(classes.button, \" \").concat(classes.dropdown.trigger),\n on: {\n \"click\": _this._toggleColumnsDropdown.bind(_this)\n }\n }, [_this.display('columns'), h(\"span\", {\n \"class\": \"\".concat(classes.icon, \" \").concat(classes.small)\n }, [h(\"i\", {\n \"class\": classes.dropdown.caret\n })])]), dropdownWrapper.call(_this, h, classes, cols)]);\n };\n};\n\n//# sourceURL=webpack://VueTables/./lib/modules/columns-dropdown.js?"); - -/***/ }), - -/***/ "./lib/modules/date-filter.js": -/*!************************************!*\ - !*** ./lib/modules/date-filter.js ***! - \************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\n\nmodule.exports = function (h) {\n var _this = this;\n\n return function (column) {\n return h(\"div\", {\n \"class\": \"VueTables__date-filter\",\n attrs: {\n id: 'VueTables__' + column + '-filter'\n }\n }, [h(\"span\", {\n \"class\": \"VueTables__filter-placeholder\"\n }, [_this.display('filterBy', {\n column: _this.getHeading(column)\n })])]);\n };\n};\n\n//# sourceURL=webpack://VueTables/./lib/modules/date-filter.js?"); - -/***/ }), - -/***/ "./lib/modules/dropdown-item-wrapper.js": -/*!**********************************************!*\ - !*** ./lib/modules/dropdown-item-wrapper.js ***! - \**********************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\n\nmodule.exports = function (h, classes, item) {\n if (classes.framework === 'bulma') {\n return item;\n }\n\n return h(\"li\", [item]);\n};\n\n//# sourceURL=webpack://VueTables/./lib/modules/dropdown-item-wrapper.js?"); - -/***/ }), - -/***/ "./lib/modules/dropdown-pagination-count.js": -/*!**************************************************!*\ - !*** ./lib/modules/dropdown-pagination-count.js ***! - \**************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\n\nmodule.exports = function (h) {\n var _this = this;\n\n return function () {\n if (_this.count > 0 && _this.opts.pagination.dropdown) {\n var perPage = parseInt(_this.limit);\n var from = (_this.Page - 1) * perPage + 1;\n var to = _this.Page == _this.totalPages ? _this.count : from + perPage - 1;\n\n var parts = _this.opts.texts.count.split('|');\n\n var i = Math.min(_this.count == 1 ? 2 : _this.totalPages == 1 ? 1 : 0, parts.length - 1);\n var count = parts[i].replace('{count}', _this.count).replace('{from}', from).replace('{to}', to);\n return h(\"div\", {\n \"class\": \"VuePagination\"\n }, [h(\"p\", {\n \"class\": \"VuePagination__count\"\n }, [count])]);\n }\n\n return '';\n };\n};\n\n//# sourceURL=webpack://VueTables/./lib/modules/dropdown-pagination-count.js?"); - -/***/ }), - -/***/ "./lib/modules/dropdown-pagination.js": -/*!********************************************!*\ - !*** ./lib/modules/dropdown-pagination.js ***! - \********************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar debounce = __webpack_require__(/*! debounce */ \"./node_modules/debounce/index.js\");\n\nmodule.exports = function (h) {\n var _this = this;\n\n return function (selectClass, id) {\n var pages = [];\n var selected;\n\n for (var pag = 1; pag <= _this.totalPages; pag++) {\n var selected = _this.page == pag;\n pages.push(h(\"option\", {\n domProps: {\n \"value\": pag,\n \"selected\": selected\n }\n }, [pag]));\n }\n\n return h(\"select\", {\n \"class\": \"\".concat(selectClass, \" dropdown-pagination\"),\n directives: [{\n name: \"show\",\n value: _this.totalPages > 1\n }],\n attrs: {\n name: \"page\",\n id: id\n },\n ref: \"page\",\n domProps: {\n \"value\": _this.page\n },\n on: {\n \"change\": _this.setPage.bind(_this, null, false)\n }\n }, [pages]);\n };\n};\n\n//# sourceURL=webpack://VueTables/./lib/modules/dropdown-pagination.js?"); - -/***/ }), - -/***/ "./lib/modules/dropdown-wrapper.js": -/*!*****************************************!*\ - !*** ./lib/modules/dropdown-wrapper.js ***! - \*****************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\n\nmodule.exports = function (h, classes, columns) {\n if (classes.framework === 'bulma') {\n return h(\"div\", {\n \"class\": classes.dropdown.menu,\n style: this.displayColumnsDropdown ? 'display:block' : 'display:none'\n }, [h(\"div\", {\n \"class\": classes.dropdown.content\n }, [columns])]);\n }\n\n if (classes.framework === 'bootstrap4') {\n return h(\"div\", {\n \"class\": classes.dropdown.menu,\n style: this.displayColumnsDropdown ? 'display:block' : 'display:none'\n }, [columns]);\n }\n\n return h(\"ul\", {\n \"class\": classes.dropdown.menu,\n style: this.displayColumnsDropdown ? 'display:block' : 'display:none'\n }, [columns]);\n};\n\n//# sourceURL=webpack://VueTables/./lib/modules/dropdown-wrapper.js?"); - -/***/ }), - -/***/ "./lib/modules/headings.js": -/*!*********************************!*\ - !*** ./lib/modules/headings.js ***! - \*********************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\n\nmodule.exports = function (h) {\n var _this = this;\n\n return function (right) {\n var that = _this;\n\n var sortControl = __webpack_require__(/*! ./sort-control */ \"./lib/modules/sort-control.js\")(h, right);\n\n var headings = [];\n if (_this.hasChildRow && _this.opts.childRowTogglerFirst && _this.opts.showChildRowToggler) headings.push(h(\"th\"));\n\n _this.allColumns.map(function (column) {\n headings.push(h(\"th\", {\n on: {\n \"keypress\": function keypress(e) {\n if (e.key === \"Enter\") {\n that.orderByColumn.bind(that, column, e)();\n }\n },\n \"click\": function click(e) {\n if (e.target.className !== \"resize-handle\") {\n that.orderByColumn.bind(that, column, e)();\n }\n }\n },\n attrs: {\n id: \"VueTables_th--\".concat(column),\n tabindex: \"0\"\n },\n \"class\": this.sortableClass(column)\n }, [h(\"span\", {\n \"class\": \"VueTables__heading\",\n attrs: {\n title: this.getHeadingTooltip(column, h)\n }\n }, [this.getHeading(column, h)]), sortControl.call(this, column)]));\n }.bind(_this));\n\n if (_this.hasChildRow && !_this.opts.childRowTogglerFirst && _this.opts.showChildRowToggler) headings.push(h(\"th\"));\n return headings;\n };\n};\n\n//# sourceURL=webpack://VueTables/./lib/modules/headings.js?"); - -/***/ }), - -/***/ "./lib/modules/list-filter.js": -/*!************************************!*\ - !*** ./lib/modules/list-filter.js ***! - \************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\n\nmodule.exports = function (h, selectClass) {\n var _this = this;\n\n return function (column) {\n var options = [];\n var selected;\n var search = _this.source == 'client' ? _this.search.bind(_this, _this.data) : _this.serverSearch.bind(_this);\n\n var displayable = _this.opts.listColumns[column].filter(function (item) {\n return !item.hide;\n });\n\n displayable.map(function (option) {\n selected = option.id == _this.query[column] && _this.query[column] !== '';\n options.push(h(\"option\", {\n domProps: {\n \"value\": option.id,\n \"selected\": selected\n }\n }, [option.text]));\n });\n return h(\"div\", {\n \"class\": \"VueTables__list-filter\",\n attrs: {\n id: 'VueTables__' + column + '-filter'\n }\n }, [h(\"select\", {\n \"class\": selectClass,\n on: {\n \"change\": search\n },\n attrs: {\n name: _this._getColumnName(column)\n },\n domProps: {\n \"value\": _this.query[column]\n }\n }, [h(\"option\", {\n attrs: {\n value: \"\"\n }\n }, [_this.display('defaultOption', {\n column: _this.opts.headings[column] ? _this.opts.headings[column] : column\n })]), options])]);\n };\n};\n\n//# sourceURL=webpack://VueTables/./lib/modules/list-filter.js?"); - -/***/ }), - -/***/ "./lib/modules/normal-filter.js": -/*!**************************************!*\ - !*** ./lib/modules/normal-filter.js ***! - \**************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar debounce = __webpack_require__(/*! debounce */ \"./node_modules/debounce/index.js\");\n\nmodule.exports = function (h) {\n var _this = this;\n\n return function (classes, id) {\n var search = _this.source == 'client' ? _this.search.bind(_this, _this.data) : _this.serverSearch.bind(_this);\n return h(\"input\", {\n \"class\": \"VueTables__search__input \".concat(classes.input, \" \").concat(classes.small),\n attrs: {\n type: \"text\",\n placeholder: _this.display('filterPlaceholder'),\n id: id,\n autocomplete: \"off\"\n },\n on: {\n \"keyup\": _this.opts.debounce ? debounce(search, _this.opts.debounce) : search\n }\n });\n };\n};\n\n//# sourceURL=webpack://VueTables/./lib/modules/normal-filter.js?"); - -/***/ }), - -/***/ "./lib/modules/pagination.js": -/*!***********************************!*\ - !*** ./lib/modules/pagination.js ***! - \***********************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\n\nmodule.exports = function (h) {\n var _this = this;\n\n return function (theme) {\n if (_this.opts.pagination && _this.opts.pagination.dropdown) return '';\n var options = {\n theme: theme,\n chunk: _this.opts.pagination.chunk,\n chunksNavigation: _this.opts.pagination.nav,\n edgeNavigation: _this.opts.pagination.edge,\n texts: {\n count: _this.opts.texts.count,\n first: _this.opts.texts.first,\n last: _this.opts.texts.last\n }\n };\n var name = _this.vuex ? _this.name : _this.id;\n return h(\"pagination\", {\n ref: \"pagination\",\n attrs: {\n options: options,\n \"for\": name,\n vuex: _this.vuex,\n records: _this.count,\n \"per-page\": parseInt(_this.limit)\n },\n on: {\n \"paginate\": _this._onPagination.bind(_this)\n }\n });\n };\n};\n\n//# sourceURL=webpack://VueTables/./lib/modules/pagination.js?"); - -/***/ }), - -/***/ "./lib/modules/per-page-values.js": -/*!****************************************!*\ - !*** ./lib/modules/per-page-values.js ***! - \****************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\n\nmodule.exports = function (h) {\n var _this = this;\n\n var perpageValues = [];\n this.opts.perPageValues.every(function (value) {\n var isLastEntry = value >= _this.count;\n var selected = _this.limit == value || isLastEntry && _this.limit > value;\n perpageValues.push(h(\"option\", {\n domProps: {\n \"value\": value,\n \"selected\": selected\n }\n }, [value]));\n return !isLastEntry;\n });\n return perpageValues;\n};\n\n//# sourceURL=webpack://VueTables/./lib/modules/per-page-values.js?"); - -/***/ }), - -/***/ "./lib/modules/per-page.js": -/*!*********************************!*\ - !*** ./lib/modules/per-page.js ***! - \*********************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\n\nmodule.exports = function (h) {\n var _this = this;\n\n return function (perpageValues, cls, id) {\n return h(\"select\", {\n \"class\": cls,\n attrs: {\n name: \"limit\",\n id: id\n },\n domProps: {\n \"value\": _this.limit\n },\n on: {\n \"change\": _this.setLimit.bind(_this)\n }\n }, [perpageValues]);\n };\n};\n\n//# sourceURL=webpack://VueTables/./lib/modules/per-page.js?"); - -/***/ }), - -/***/ "./lib/modules/rows.js": -/*!*****************************!*\ - !*** ./lib/modules/rows.js ***! - \*****************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar _babelHelperVueJsxMergeProps = _interopRequireDefault(__webpack_require__(/*! babel-helper-vue-jsx-merge-props */ \"./node_modules/babel-helper-vue-jsx-merge-props/index.js\"));\n\nvar _clone = _interopRequireDefault(__webpack_require__(/*! clone */ \"./node_modules/clone/clone.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nmodule.exports = function (h) {\n var _this = this;\n\n return function (classes) {\n var data;\n\n if (_this.source === 'client') {\n data = _this.filteredData;\n\n if (!data.length && _this.source === 'client' && _this.page !== 1) {\n // data was dynamically removed go to last page\n _this.setPage(_this.totalPages ? _this.totalPages : 1);\n }\n } else {\n data = _this.tableData;\n }\n\n if (data.length === 0) {\n var colspan = _this.allColumns.length;\n if (_this.hasChildRow && _this.opts.showChildRowToggler) colspan++;\n return h(\"tr\", {\n \"class\": \"VueTables__no-results\"\n }, [h(\"td\", {\n \"class\": \"text-center\",\n attrs: {\n tabindex: \"0\",\n colspan: _this.colspan\n }\n }, [_this.display(_this.loading ? 'loading' : 'noResults')])]);\n }\n\n var rows = [];\n var columns;\n var rowKey = _this.opts.uniqueKey;\n var rowAttributes;\n var rowClass;\n var recordCount = (_this.Page - 1) * _this.limit;\n var currentGroup;\n var groupSlot;\n var groupValue;\n var groupByContent;\n data.map(function (row, index) {\n if (_this.opts.groupBy && _this.source === 'client' && row[_this.opts.groupBy] !== currentGroup) {\n groupSlot = _this.getGroupSlot(row[_this.opts.groupBy]);\n groupValue = row[_this.opts.groupBy];\n groupByContent = _this.opts.toggleGroups ? h(\"button\", {\n \"class\": classes.button,\n on: {\n \"click\": _this.toggleGroup.bind(_this, groupValue)\n }\n }, [groupValue, h(\"span\", {\n \"class\": _this.groupToggleIcon(groupValue)\n })]) : groupValue;\n rows.push(h(\"tr\", {\n \"class\": classes.groupTr,\n on: {\n \"click\": _this._toggleGroupDirection.bind(_this)\n }\n }, [h(\"td\", {\n attrs: {\n colspan: _this.colspan\n }\n }, [groupByContent, groupSlot])]));\n currentGroup = row[_this.opts.groupBy];\n }\n\n if (_this.opts.toggleGroups && _this.collapsedGroups.includes(currentGroup)) {\n return;\n }\n\n index = recordCount + index + 1;\n columns = [];\n var update;\n var isEditing;\n var setEditing;\n var revertValue;\n\n if (_this.hasChildRow && _this.opts.showChildRowToggler) {\n var childRowToggler = h(\"td\", {\n attrs: {\n tabindex: \"0\"\n },\n on: {\n \"keypress\": function keypress(e) {\n if (e.key === 'Enter') {\n _this.toggleChildRow.bind(_this, row[rowKey])();\n }\n },\n \"click\": _this.toggleChildRow.bind(_this, row[rowKey])\n }\n }, [h(\"span\", {\n \"class\": \"VueTables__child-row-toggler \" + _this.childRowTogglerClass(row[rowKey])\n })]);\n if (_this.opts.childRowTogglerFirst) columns.push(childRowToggler);\n }\n\n _this.allColumns.map(function (column) {\n var rowTemplate = _this.$scopedSlots && _this.$scopedSlots[column];\n\n if (rowTemplate) {\n var rowTemplateData = {\n row: row,\n column: column,\n index: index\n };\n }\n\n if (_this.opts.editableColumns.includes(column)) {\n rowTemplateData.update = updateValue(row, column).bind(_this);\n rowTemplateData.isEditing = editing(row, column).bind(_this);\n rowTemplateData.setEditing = setEdit(row, column).bind(_this);\n rowTemplateData.revertValue = revertVal(row, column).bind(_this);\n }\n\n columns.push(h(\"td\", {\n \"class\": \"\".concat(_this.columnClass(column), \" \").concat(_this._cellClasses(column, row)).trim(),\n attrs: {\n tabindex: \"0\"\n }\n }, [rowTemplate ? rowTemplate(rowTemplateData) : _this.render(row, column, index, h)]));\n });\n\n if (_this.hasChildRow && !_this.opts.childRowTogglerFirst && _this.opts.showChildRowToggler) columns.push(childRowToggler);\n rowClass = _this.opts.rowClassCallback ? _this.opts.rowClassCallback(row) : '';\n rowAttributes = _this.opts.rowAttributesCallback ? _this.opts.rowAttributesCallback(row) : {};\n rows.push(h(\"tr\", (0, _babelHelperVueJsxMergeProps[\"default\"])([{\n attrs: rowAttributes\n }, {\n \"class\": \"VueTables__row \".concat(rowClass),\n on: {\n \"click\": _this.rowWasClicked.bind(_this, row, index)\n }\n }]), [columns, \" \"]));\n rows.push(_this.hasChildRow && _this.openChildRows.includes(row[rowKey]) ? h(\"tr\", {\n \"class\": \"VueTables__child-row \".concat(rowClass)\n }, [h(\"td\", {\n attrs: {\n colspan: _this.colspan,\n tabindex: \"0\"\n }\n }, [_this._getChildRowTemplate(h, row, index)])]) : h());\n });\n return rows;\n };\n};\n\nfunction setEdit(row, column) {\n return function (editing) {\n var _this2 = this;\n\n if (editing) {\n this.editing.push({\n id: row[this.opts.uniqueKey],\n column: column,\n originalValue: row[column]\n });\n } else {\n this.editing = this.editing.filter(function (e) {\n return e.id !== row[_this2.opts.uniqueKey];\n });\n }\n };\n}\n\nfunction editing(row, column) {\n return function () {\n var _this3 = this;\n\n return this.editing.find(function (e) {\n return e.id === row[_this3.opts.uniqueKey] && e.column === column;\n });\n };\n}\n\nfunction revertVal(row, column) {\n return function () {\n var _this4 = this;\n\n var origVal = this.editing.find(function (e) {\n return e.id === row[_this4.opts.uniqueKey];\n }).originalValue;\n row[column] = origVal;\n };\n}\n\nfunction updateValue(row, column) {\n return function (e) {\n var _this5 = this;\n\n var oldVal = row[column];\n row[column] = getValue(e);\n var data = (0, _clone[\"default\"])(this.data).map(function (r) {\n if (r[_this5.opts.uniqueKey] === row[_this5.opts.uniqueKey]) {\n return row;\n }\n\n return r;\n });\n this.$emit('input', data);\n this.$emit('update', {\n row: row,\n column: column,\n oldVal: oldVal,\n newVal: row[column]\n });\n };\n}\n\nfunction getValue(val) {\n if (val.target) {\n return val.target.type === 'checkbox' ? val.target.checked : val.target.value;\n }\n\n return val;\n}\n\n//# sourceURL=webpack://VueTables/./lib/modules/rows.js?"); +eval("\n\nmodule.exports = {\n initQuery: __webpack_require__(/*! ../methods/init-query */ \"./lib/methods/init-query.js\"),\n resetQuery: __webpack_require__(/*! ../methods/reset-query */ \"./lib/methods/reset-query.js\"),\n initCustomFilters: __webpack_require__(/*! ../methods/init-custom-filters */ \"./lib/methods/init-custom-filters.js\"),\n initOptions: __webpack_require__(/*! ../methods/init-options */ \"./lib/methods/init-options.js\"),\n sortableClass: __webpack_require__(/*! ../methods/sortable-class */ \"./lib/methods/sortable-class.js\"),\n sortableChevronClass: __webpack_require__(/*! ../methods/sortable-chevron-class */ \"./lib/methods/sortable-chevron-class.js\"),\n display: __webpack_require__(/*! ../methods/display */ \"./lib/methods/display.js\"),\n orderByColumn: __webpack_require__(/*! ../methods/order-by-column */ \"./lib/methods/order-by-column.js\"),\n getHeading: __webpack_require__(/*! ../methods/get-heading */ \"./lib/methods/get-heading.js\"),\n getHeadingTooltip: __webpack_require__(/*! ../methods/get-heading-tooltip */ \"./lib/methods/get-heading-tooltip.js\"),\n sortable: __webpack_require__(/*! ../methods/sortable */ \"./lib/methods/sortable.js\"),\n serverSearch: __webpack_require__(/*! ../methods/server-search */ \"./lib/methods/server-search.js\"),\n initOrderBy: __webpack_require__(/*! ../methods/init-order-by */ \"./lib/methods/init-order-by.js\"),\n initDateFilters: __webpack_require__(/*! ../methods/init-date-filters */ \"./lib/methods/init-date-filters.js\"),\n setFilter: __webpack_require__(/*! ../methods/set-filter */ \"./lib/methods/set-filter.js\"),\n setPage: __webpack_require__(/*! ../methods/set-page */ \"./lib/methods/set-page.js\"),\n setOrder: __webpack_require__(/*! ../methods/set-order */ \"./lib/methods/set-order.js\"),\n filterable: __webpack_require__(/*! ../methods/filterable */ \"./lib/methods/filterable.js\"),\n isTextFilter: __webpack_require__(/*! ../methods/is-text-filter */ \"./lib/methods/is-text-filter.js\"),\n isDateFilter: __webpack_require__(/*! ../methods/is-date-filter */ \"./lib/methods/is-date-filter.js\"),\n isListFilter: __webpack_require__(/*! ../methods/is-list-filter */ \"./lib/methods/is-list-filter.js\"),\n highlightMatch: __webpack_require__(/*! ../filters/highlight-matches */ \"./lib/filters/highlight-matches.js\"),\n formatDate: __webpack_require__(/*! ../filters/format-date */ \"./lib/filters/format-date.js\"),\n hasDateFilters: __webpack_require__(/*! ../methods/has-date-filters */ \"./lib/methods/has-date-filters.js\"),\n optionText: __webpack_require__(/*! ../filters/option-text */ \"./lib/filters/option-text.js\"),\n render: __webpack_require__(/*! ../methods/render */ \"./lib/methods/render.js\"),\n rowWasClicked: __webpack_require__(/*! ../methods/row-was-clicked */ \"./lib/methods/row-was-clicked.js\"),\n setLimit: __webpack_require__(/*! ../methods/set-limit */ \"./lib/methods/set-limit.js\"),\n getOpenChildRows: __webpack_require__(/*! ../methods/get-open-child-rows */ \"./lib/methods/get-open-child-rows.js\"),\n dispatch: __webpack_require__(/*! ../methods/dispatch */ \"./lib/methods/dispatch.js\"),\n toggleChildRow: __webpack_require__(/*! ../methods/toggle-child-row */ \"./lib/methods/toggle-child-row.js\"),\n childRowTogglerClass: __webpack_require__(/*! ../methods/child-row-toggler-class */ \"./lib/methods/child-row-toggler-class.js\"),\n sendRequest: __webpack_require__(/*! ../methods/send-request */ \"./lib/methods/send-request.js\"),\n getResponseData: __webpack_require__(/*! ../methods/get-response-data */ \"./lib/methods/get-response-data.js\"),\n getSortFn: __webpack_require__(/*! ../methods/get-sort-fn */ \"./lib/methods/get-sort-fn.js\"),\n initState: __webpack_require__(/*! ../methods/init-state */ \"./lib/methods/init-state.js\"),\n updateState: __webpack_require__(/*! ../methods/update-state */ \"./lib/methods/update-state.js\"),\n columnClass: __webpack_require__(/*! ../methods/column-class */ \"./lib/methods/column-class.js\"),\n getName: __webpack_require__(/*! ../methods/get-name */ \"./lib/methods/get-name.js\"),\n toggleColumn: __webpack_require__(/*! ../methods/toggle-column */ \"./lib/methods/toggle-column.js\"),\n setUserMultiSort: __webpack_require__(/*! ../methods/set-user-multi-sort */ \"./lib/methods/set-user-multi-sort.js\"),\n _cellClasses: __webpack_require__(/*! ../methods/cell-classes */ \"./lib/methods/cell-classes.js\"),\n _setFiltersDOM: __webpack_require__(/*! ../methods/set-filters-dom */ \"./lib/methods/set-filters-dom.js\"),\n _currentlySorted: __webpack_require__(/*! ../methods/currently-sorted */ \"./lib/methods/currently-sorted.js\"),\n _getChildRowTemplate: __webpack_require__(/*! ../methods/get-child-row-template */ \"./lib/methods/get-child-row-template.js\"),\n _toggleColumnsDropdown: __webpack_require__(/*! ../methods/toggle-columns-dropdown */ \"./lib/methods/toggle-columns-dropdown.js\"),\n _onlyColumn: __webpack_require__(/*! ../methods/only-column */ \"./lib/methods/only-column.js\"),\n _onPagination: __webpack_require__(/*! ../methods/on-pagination */ \"./lib/methods/on-pagination.js\"),\n _toggleGroupDirection: __webpack_require__(/*! ../methods/toggle-group-direction */ \"./lib/methods/toggle-group-direction.js\"),\n _getInitialDateRange: __webpack_require__(/*! ../methods/get-initial-date-range */ \"./lib/methods/get-initial-date-range.js\"),\n _setDatepickerText: __webpack_require__(/*! ../methods/set-datepicker-text */ \"./lib/methods/set-datepicker-text.js\"),\n _initialOrderAscending: __webpack_require__(/*! ../methods/initial-order-ascending */ \"./lib/methods/initial-order-ascending.js\"),\n dateFormat: __webpack_require__(/*! ../methods/date-format */ \"./lib/methods/date-format.js\"),\n _setColumnsDropdownCloseListener: __webpack_require__(/*! ../methods/set-columns-dropdown-close-listener */ \"./lib/methods/set-columns-dropdown-close-listener.js\"),\n _getValue: __webpack_require__(/*! ../methods/get-value */ \"./lib/methods/get-value.js\"),\n _getColumnName: __webpack_require__(/*! ../methods/get-column-name */ \"./lib/methods/get-column-name.js\"),\n _shouldShowColumnOnInit: __webpack_require__(/*! ../methods/should-show-column-on-init */ \"./lib/methods/should-show-column-on-init.js\"),\n _setEditingCell: __webpack_require__(/*! ../methods/set-editing-cell */ \"./lib/methods/set-editing-cell.js\"),\n _revertValue: __webpack_require__(/*! ../methods/revert-value */ \"./lib/methods/revert-value.js\"),\n _updateValue: __webpack_require__(/*! ../methods/update-value */ \"./lib/methods/update-value.js\"),\n _filterType: __webpack_require__(/*! ../methods/filter-type */ \"./lib/methods/filter-type.js\"),\n _search: __webpack_require__(/*! ../methods/search */ \"./lib/methods/search.js\")\n};\n\n//# sourceURL=webpack://VueTables/./lib/mixins/methods.js?"); /***/ }), -/***/ "./lib/modules/sort-control.js": -/*!*************************************!*\ - !*** ./lib/modules/sort-control.js ***! - \*************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\n\nmodule.exports = function (h, right) {\n return function (column) {\n if (!this.sortable(column)) return '';\n return h(\"span\", {\n \"class\": \"VueTables__sort-icon \".concat(right, \" \").concat(this.sortableChevronClass(column))\n });\n };\n};\n\n//# sourceURL=webpack://VueTables/./lib/modules/sort-control.js?"); - -/***/ }), - -/***/ "./lib/modules/text-filter.js": -/*!************************************!*\ - !*** ./lib/modules/text-filter.js ***! - \************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar debounce = __webpack_require__(/*! debounce */ \"./node_modules/debounce/index.js\");\n\nmodule.exports = function (h, inputClass) {\n var _this = this;\n\n var search = this.source == 'client' ? this.search.bind(this, this.data) : this.serverSearch.bind(this);\n\n if (this.opts.debounce) {\n var debouncedSearch = debounce(search, this.opts.debounce);\n\n var onKeyUp = function onKeyUp(e) {\n if (e.keyCode === 9) return;\n\n if (e.keyCode === 13) {\n debouncedSearch.clear();\n search.apply(void 0, arguments);\n } else {\n debouncedSearch.apply(void 0, arguments);\n }\n };\n }\n\n return function (column) {\n return h(\"input\", {\n on: {\n \"keyup\": _this.opts.debounce ? onKeyUp : search\n },\n \"class\": inputClass,\n attrs: {\n name: _this._getColumnName(column),\n type: \"text\",\n placeholder: _this.display('filterBy', {\n column: _this.getHeading(column)\n }),\n autocomplete: \"off\"\n }\n });\n };\n};\n\n//# sourceURL=webpack://VueTables/./lib/modules/text-filter.js?"); - -/***/ }), - -/***/ "./lib/slots.js": -/*!**********************!*\ - !*** ./lib/slots.js ***! - \**********************/ +/***/ "./lib/mixins/provide.js": +/*!*******************************!*\ + !*** ./lib/mixins/provide.js ***! + \*******************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nmodule.exports = function () {\n return {\n beforeFilters: this.$slots.beforeFilters ? this.$slots.beforeFilters : '',\n afterFilters: this.$slots.afterFilters ? this.$slots.afterFilters : '',\n prependHead: this.$slots.prependHead ? this.$slots.prependHead : '',\n beforeBody: this.$slots.beforeBody ? this.$slots.beforeBody : '',\n prependBody: this.$slots.prependBody ? this.$slots.prependBody : '',\n appendBody: this.$slots.appendBody ? this.$slots.appendBody : '',\n afterBody: this.$slots.afterBody ? this.$slots.afterBody : '',\n beforeFilter: this.$slots.beforeFilter ? this.$slots.beforeFilter : '',\n afterFilter: this.$slots.afterFilter ? this.$slots.afterFilter : '',\n afterFilterWrapper: this.$slots.afterFilterWrapper ? this.$slots.afterFilterWrapper : '',\n beforeSearch: this.$slots.beforeSearch ? this.$slots.beforeSearch : '',\n beforeLimit: this.$slots.beforeLimit ? this.$slots.beforeLimit : '',\n afterLimit: this.$slots.afterLimit ? this.$slots.afterLimit : '',\n beforeTable: this.$slots.beforeTable ? this.$slots.beforeTable : '',\n afterTable: this.$slots.afterTable ? this.$slots.afterTable : ''\n };\n};\n\n//# sourceURL=webpack://VueTables/./lib/slots.js?"); +eval("\n\nmodule.exports = function () {\n var _this = this;\n\n return {\n count: function count() {\n return _this.count;\n },\n rowWasClicked: this.rowWasClicked,\n render: this.render,\n opts: function opts() {\n return _this.opts;\n },\n limit: function limit() {\n return _this.limit;\n },\n setLimit: this.setLimit,\n perPageValues: function perPageValues() {\n return _this.perPageValues;\n },\n page: function page() {\n return _this.page;\n },\n id: this.id,\n theme: this.theme,\n display: this.display,\n origColumns: this.columns,\n allColumns: function allColumns() {\n return _this.allColumns;\n },\n sortableClass: this.sortableClass,\n getHeadingTooltip: this.getHeadingTooltip,\n getHeading: this.getHeading,\n sortable: this.sortable,\n sortableChevronClass: this.sortableChevronClass,\n orderByColumn: this.orderByColumn,\n filteredData: function filteredData() {\n return _this.filteredData;\n },\n tableData: function tableData() {\n return _this.tableData;\n },\n source: this.source,\n colspan: function colspan() {\n return _this.colspan;\n },\n setEditingCell: this._setEditingCell,\n revertValue: this._revertValue,\n updateValue: this._updateValue,\n editing: function editing() {\n return _this.editing;\n },\n hasChildRow: function hasChildRow() {\n return _this.hasChildRow;\n },\n getChildRowTemplate: this._getChildRowTemplate,\n openChildRows: function openChildRows() {\n return _this.openChildRows;\n },\n vuex: this.vuex,\n name: this.name,\n setPage: this.setPage,\n totalPages: function totalPages() {\n return _this.totalPages;\n },\n query: function query() {\n return _this.query;\n },\n filterable: this.filterable,\n filterType: this._filterType,\n columnClass: this.columnClass,\n search: this._search,\n getColumnName: this._getColumnName,\n onlyColumn: this._onlyColumn,\n toggleColumn: this.toggleColumn,\n toggleColumnsDropdown: this._toggleColumnsDropdown,\n displayColumnsDropdown: function displayColumnsDropdown() {\n return _this.displayColumnsDropdown;\n },\n childRowTogglerClass: this.childRowTogglerClass,\n toggleChildRow: this.toggleChildRow,\n componentsOverride: this.componentsOverride,\n getValue: this._getValue,\n cellClasses: this._cellClasses,\n toggleGroup: this.toggleGroup,\n groupToggleIcon: this.groupToggleIcon,\n getGroupSlot: this.getGroupSlot,\n toggleGroupDirection: this._toggleGroupDirection,\n collapsedGroups: function collapsedGroups() {\n return _this.collapsedGroups;\n },\n userMultiSorting: function userMultiSorting() {\n return _this.userMultiSorting;\n },\n hasMultiSort: this.hasMultiSort,\n orderBy: function orderBy() {\n return _this.orderBy;\n },\n isListFilter: this.isListFilter,\n optionText: this.optionText,\n dateFormat: this.dateFormat,\n formatDate: this.formatDate,\n tabIndex: function tabIndex() {\n return _this.tabIndex;\n }\n };\n};\n\n//# sourceURL=webpack://VueTables/./lib/mixins/provide.js?"); /***/ }), @@ -1487,7 +1895,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\"] = _default;\n\nvar _merge = _interopRequireDefault(__webpack_require__(/*! merge */ \"./node_modules/merge/merge.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _default(self) {\n var _ref, _merge$recursive;\n\n var extra = self.source == 'server' ? (_ref = {}, _defineProperty(_ref, \"\".concat(self.name, \"/SET_DATA\"), function SET_DATA(state, response) {\n var data = self.opts.responseAdapter.call(self, response);\n state.data = data.data;\n state.count = parseInt(data.count);\n }), _defineProperty(_ref, \"\".concat(self.name, \"/LOADING\"), function LOADING(state, payload) {}), _defineProperty(_ref, \"\".concat(self.name, \"/LOADED\"), function LOADED(state, payload) {}), _defineProperty(_ref, \"\".concat(self.name, \"/ERROR\"), function ERROR(state, payload) {}), _defineProperty(_ref, \"\".concat(self.name, \"/SET_COUNT\"), function SET_COUNT(state, count) {\n state.count = count;\n }), _ref) : _defineProperty({}, \"\".concat(self.name, \"/SET_COUNT\"), function SET_COUNT(state, count) {\n state.count = count;\n });\n return _merge[\"default\"].recursive(true, (_merge$recursive = {}, _defineProperty(_merge$recursive, \"\".concat(self.name, \"/PAGINATE\"), function PAGINATE(state, page) {\n state.page = page;\n self.updateState('page', page);\n if (self.source == 'server') self.getData();\n self.commit('PAGINATION', page);\n }), _defineProperty(_merge$recursive, \"\".concat(self.name, \"/SET_FILTER\"), function SET_FILTER(state, filter) {\n state.page = 1;\n self.updateState('page', 1);\n state.query = filter;\n\n if (self.source == 'server') {\n self.getData();\n }\n }), _defineProperty(_merge$recursive, \"\".concat(self.name, \"/PAGINATION\"), function PAGINATION(state, page) {}), _defineProperty(_merge$recursive, \"\".concat(self.name, \"/SET_CUSTOM_FILTER\"), function SET_CUSTOM_FILTER(state, _ref3) {\n var filter = _ref3.filter,\n value = _ref3.value;\n state.customQueries[filter] = value;\n state.page = 1;\n self.updateState('page', 1);\n self.updateState('customQueries', state.customQueries);\n\n if (self.source == 'server') {\n self.getData();\n }\n }), _defineProperty(_merge$recursive, \"\".concat(self.name, \"/SET_STATE\"), function SET_STATE(state, _ref4) {\n var page = _ref4.page,\n query = _ref4.query,\n customQueries = _ref4.customQueries,\n limit = _ref4.limit,\n orderBy = _ref4.orderBy;\n state.customQueries = customQueries;\n state.query = query;\n state.page = page;\n state.limit = limit;\n state.ascending = orderBy.ascending;\n state.sortBy = orderBy.column;\n }), _defineProperty(_merge$recursive, \"\".concat(self.name, \"/SET_LIMIT\"), function SET_LIMIT(state, limit) {\n state.page = 1;\n self.updateState('page', 1);\n state.limit = limit;\n if (self.source == 'server') self.getData();\n }), _defineProperty(_merge$recursive, \"\".concat(self.name, \"/SORT\"), function SORT(state, _ref5) {\n var column = _ref5.column,\n ascending = _ref5.ascending;\n state.ascending = ascending;\n state.sortBy = column;\n if (self.source == 'server') self.getData();\n }), _defineProperty(_merge$recursive, \"\".concat(self.name, \"/SORTED\"), function SORTED(state, data) {}), _defineProperty(_merge$recursive, \"\".concat(self.name, \"/ROW_CLICK\"), function ROW_CLICK(state, row) {}), _defineProperty(_merge$recursive, \"\".concat(self.name, \"/FILTER\"), function FILTER(state, row) {}), _defineProperty(_merge$recursive, \"\".concat(self.name, \"/LIMIT\"), function LIMIT(state, limit) {}), _merge$recursive), extra);\n}\n\n//# sourceURL=webpack://VueTables/./lib/state/mutations.js?"); +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = _default;\n\nvar _merge = _interopRequireDefault(__webpack_require__(/*! merge */ \"./node_modules/merge/merge.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _default(self) {\n var _ref, _merge$recursive;\n\n var extra = self.source == 'server' ? (_ref = {}, _defineProperty(_ref, \"\".concat(self.name, \"/SET_DATA\"), function SET_DATA(state, response) {\n var data = self.opts.responseAdapter.call(self, response);\n state.data = data.data;\n state.count = parseInt(data.count);\n }), _defineProperty(_ref, \"\".concat(self.name, \"/LOADING\"), function LOADING(state, payload) {}), _defineProperty(_ref, \"\".concat(self.name, \"/LOADED\"), function LOADED(state, payload) {}), _defineProperty(_ref, \"\".concat(self.name, \"/ERROR\"), function ERROR(state, payload) {}), _defineProperty(_ref, \"\".concat(self.name, \"/SET_COUNT\"), function SET_COUNT(state, count) {\n state.count = count;\n }), _ref) : _defineProperty({}, \"\".concat(self.name, \"/SET_COUNT\"), function SET_COUNT(state, count) {\n state.count = count;\n });\n return _merge[\"default\"].recursive(true, (_merge$recursive = {}, _defineProperty(_merge$recursive, \"\".concat(self.name, \"/PAGINATE\"), function PAGINATE(state, page) {\n state.page = page;\n self.updateState('page', page);\n if (self.source == 'server') self.getData();\n self.commit('PAGINATION', page);\n }), _defineProperty(_merge$recursive, \"\".concat(self.name, \"/SET_FILTER\"), function SET_FILTER(state, filter) {\n state.page = 1;\n self.updateState('page', 1);\n state.query = filter;\n\n if (self.source == 'server') {\n self.getData();\n }\n }), _defineProperty(_merge$recursive, \"\".concat(self.name, \"/PAGINATION\"), function PAGINATION(state, page) {}), _defineProperty(_merge$recursive, \"\".concat(self.name, \"/SET_CUSTOM_FILTER\"), function SET_CUSTOM_FILTER(state, _ref3) {\n var filter = _ref3.filter,\n value = _ref3.value;\n state.customQueries[filter] = value;\n state.page = 1;\n self.updateState('page', 1);\n self.updateState('customQueries', state.customQueries);\n\n if (self.source == 'server') {\n self.getData();\n }\n }), _defineProperty(_merge$recursive, \"\".concat(self.name, \"/SET_STATE\"), function SET_STATE(state, _ref4) {\n var page = _ref4.page,\n query = _ref4.query,\n customQueries = _ref4.customQueries,\n limit = _ref4.limit,\n orderBy = _ref4.orderBy;\n state.customQueries = customQueries;\n state.query = query;\n state.page = page;\n state.limit = limit;\n state.ascending = orderBy.ascending;\n state.sortBy = orderBy.column;\n }), _defineProperty(_merge$recursive, \"\".concat(self.name, \"/SET_LIMIT\"), function SET_LIMIT(state, limit) {\n state.page = 1;\n self.updateState('page', 1);\n state.limit = limit;\n if (self.source == 'server') self.getData();\n }), _defineProperty(_merge$recursive, \"\".concat(self.name, \"/SORT\"), function SORT(state, _ref5) {\n var column = _ref5.column,\n ascending = _ref5.ascending;\n state.ascending = ascending;\n state.sortBy = column;\n if (self.source == 'server') self.getData();\n }), _defineProperty(_merge$recursive, \"\".concat(self.name, \"/SORTED\"), function SORTED(state, data) {}), _defineProperty(_merge$recursive, \"\".concat(self.name, \"/ROW_CLICK\"), function ROW_CLICK(state, row) {}), _defineProperty(_merge$recursive, \"\".concat(self.name, \"/FILTER\"), function FILTER(state, row) {}), _defineProperty(_merge$recursive, \"\".concat(self.name, \"/LIMIT\"), function LIMIT(state, limit) {}), _defineProperty(_merge$recursive, \"\".concat(self.name, \"/INPUT\"), function INPUT(state, payload) {}), _defineProperty(_merge$recursive, \"\".concat(self.name, \"/UPDATE\"), function UPDATE(state, payload) {}), _merge$recursive), extra);\n}\n\n//# sourceURL=webpack://VueTables/./lib/state/mutations.js?"); /***/ }), @@ -1535,7 +1943,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\"] = _default;\n\nvar _merge = _interopRequireDefault(__webpack_require__(/*! merge */ \"./node_modules/merge/merge.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _default(source) {\n var extra = source == 'server' ? serverExtra() : clientExtra();\n return _merge[\"default\"].recursive(true, {\n props: {\n name: {\n type: String,\n required: true\n }\n },\n computed: {\n state: function state() {\n return this.$store.state[this.name];\n },\n Page: function Page() {\n return this.state.page;\n },\n count: function count() {\n return this.state.count;\n },\n Columns: function Columns() {\n return this.state.columns;\n },\n tableData: function tableData() {\n return this.state.data;\n },\n page: function page() {\n return this.state.page;\n },\n limit: function limit() {\n return this.state.limit;\n },\n customQueries: function customQueries() {\n return this.state.customQueries;\n },\n query: function query() {\n return this.state.query;\n },\n orderBy: function orderBy() {\n return {\n column: this.state.sortBy,\n ascending: this.state.ascending\n };\n }\n },\n methods: {\n commit: function commit(action, payload) {\n return this.$store.commit(\"\".concat(this.name, \"/\").concat(action), payload);\n },\n orderByColumn: function orderByColumn(column, ev) {\n if (!this.sortable(column)) return;\n\n if (ev.shiftKey && this.orderBy.column && this.hasMultiSort) {\n this.setUserMultiSort(column);\n } else {\n var ascending = this.orderBy.column === column ? !this.orderBy.ascending : this._initialOrderAscending(column);\n var orderBy = {\n column: column,\n ascending: ascending\n };\n this.updateState('orderBy', orderBy);\n this.commit('SORT', orderBy);\n this.dispatch('sorted', orderBy);\n }\n },\n setLimit: function setLimit(e) {\n var limit = _typeof(e) === 'object' ? parseInt(e.target.value) : e;\n this.updateState('perPage', limit);\n this.commit(\"SET_LIMIT\", limit);\n this.dispatch(\"limit\", limit);\n },\n setOrder: function setOrder(column, ascending) {\n this.updateState('orderBy', {\n column: column,\n ascending: ascending\n });\n this.commit('SORT', {\n column: column,\n ascending: ascending\n });\n },\n setPage: function setPage(page) {\n if (!page) {\n page = this.$refs.page.value;\n }\n\n if (!this.opts.pagination.dropdown) this.$refs.pagination.Page = page;\n this.commit(\"PAGINATE\", page);\n }\n }\n }, extra);\n}\n\nfunction serverExtra() {\n return {\n methods: {\n setData: function setData(data) {\n this.commit('SET_DATA', data);\n setTimeout(function () {\n this.dispatch('loaded', data);\n }.bind(this), 0);\n }\n }\n };\n}\n\nfunction clientExtra() {\n return {};\n}\n\n//# sourceURL=webpack://VueTables/./lib/state/vuex.js?"); +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports[\"default\"] = _default;\n\nvar _merge = _interopRequireDefault(__webpack_require__(/*! merge */ \"./node_modules/merge/merge.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _default(source) {\n var extra = source == 'server' ? serverExtra() : clientExtra();\n return _merge[\"default\"].recursive(true, {\n props: {\n name: {\n type: String,\n required: true\n }\n },\n computed: {\n state: function state() {\n return this.$store.state[this.name] ? this.$store.state[this.name] : {};\n },\n Page: function Page() {\n return this.state.page;\n },\n count: function count() {\n return this.state.count;\n },\n Columns: function Columns() {\n return this.state.columns ? this.state.columns : [];\n },\n tableData: function tableData() {\n return this.state.data ? this.state.data : [];\n },\n page: function page() {\n return this.state.page;\n },\n limit: function limit() {\n return this.state.limit;\n },\n customQueries: function customQueries() {\n return this.state.customQueries;\n },\n query: function query() {\n return this.state.query;\n },\n orderBy: function orderBy() {\n return {\n column: this.state.sortBy,\n ascending: this.state.ascending\n };\n }\n },\n methods: {\n commit: function commit(action, payload) {\n return this.$store.commit(\"\".concat(this.name, \"/\").concat(action), payload);\n },\n orderByColumn: function orderByColumn(column, ev) {\n if (!this.sortable(column)) return;\n\n if (ev.shiftKey && this.orderBy.column && this.hasMultiSort) {\n this.setUserMultiSort(column);\n } else {\n var ascending = this.orderBy.column === column ? !this.orderBy.ascending : this._initialOrderAscending(column);\n var orderBy = {\n column: column,\n ascending: ascending\n };\n this.updateState('orderBy', orderBy);\n this.commit('SORT', orderBy);\n this.dispatch('sorted', orderBy);\n }\n },\n setLimit: function setLimit(e) {\n var limit = _typeof(e) === 'object' ? parseInt(e.target.value) : e;\n this.updateState('perPage', limit);\n this.commit(\"SET_LIMIT\", limit);\n this.dispatch(\"limit\", limit);\n },\n setOrder: function setOrder(column, ascending) {\n this.updateState('orderBy', {\n column: column,\n ascending: ascending\n });\n this.commit('SORT', {\n column: column,\n ascending: ascending\n });\n },\n setPage: function setPage(page) {\n this.dispatch('pagination', page);\n this.commit(\"PAGINATE\", page);\n }\n }\n }, extra);\n}\n\nfunction serverExtra() {\n return {\n methods: {\n setData: function setData(data) {\n this.commit('SET_DATA', data);\n setTimeout(function () {\n this.dispatch('loaded', data);\n }.bind(this), 0);\n }\n }\n };\n}\n\nfunction clientExtra() {\n return {};\n}\n\n//# sourceURL=webpack://VueTables/./lib/state/vuex.js?"); /***/ }), @@ -1551,42 +1959,6 @@ eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n /***/ }), -/***/ "./lib/template-compiler.js": -/*!**********************************!*\ - !*** ./lib/template-compiler.js ***! - \**********************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nmodule.exports = function (template, theme) {\n var 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 var templates = {\n \"default\": __webpack_require__(/*! ./templates/default */ \"./lib/templates/default.js\"),\n footerPagination: __webpack_require__(/*! ./templates/footer-pagination */ \"./lib/templates/footer-pagination.js\")\n };\n return function (h) {\n var modules = {\n rows: __webpack_require__(/*! ./modules/rows */ \"./lib/modules/rows.js\").call(this, h),\n normalFilter: __webpack_require__(/*! ./modules/normal-filter */ \"./lib/modules/normal-filter.js\").call(this, h),\n dropdownPagination: __webpack_require__(/*! ./modules/dropdown-pagination */ \"./lib/modules/dropdown-pagination.js\").call(this, h),\n dropdownPaginationCount: __webpack_require__(/*! ./modules/dropdown-pagination-count */ \"./lib/modules/dropdown-pagination-count.js\").call(this, h),\n columnFilters: __webpack_require__(/*! ./modules/column-filters */ \"./lib/modules/column-filters.js\").call(this, h),\n pagination: __webpack_require__(/*! ./modules/pagination */ \"./lib/modules/pagination.js\").call(this, h),\n headings: __webpack_require__(/*! ./modules/headings */ \"./lib/modules/headings.js\").call(this, h),\n perPage: __webpack_require__(/*! ./modules/per-page */ \"./lib/modules/per-page.js\").call(this, h),\n columnsDropdown: __webpack_require__(/*! ./modules/columns-dropdown */ \"./lib/modules/columns-dropdown.js\").call(this, h)\n };\n\n if (typeof template === 'string' && (!templates[template] || typeof templates[template] !== 'function')) {\n throw \"vue-tables-2: Template \\\"\".concat(template, \"\\\" does not exist\");\n }\n\n if (typeof theme === 'string' && (!themes[theme] || _typeof(themes[theme]) !== 'object')) {\n throw \"vue-tables-2: Theme \\\"\".concat(theme, \"\\\" does not exist\");\n }\n\n var tpl = typeof template === 'string' ? templates[template] : template;\n var thm = typeof theme === 'string' ? themes[theme] : theme();\n\n var slots = __webpack_require__(/*! ./slots */ \"./lib/slots.js\").call(this);\n\n return tpl.call(this, h, modules, thm, slots);\n };\n};\n\n//# sourceURL=webpack://VueTables/./lib/template-compiler.js?"); - -/***/ }), - -/***/ "./lib/templates/default.js": -/*!**********************************!*\ - !*** ./lib/templates/default.js ***! - \**********************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar _merge = _interopRequireDefault(__webpack_require__(/*! merge */ \"./node_modules/merge/merge.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nmodule.exports = function (h, modules, classes, slots) {\n var filterId = \"VueTables__search_\" + this.id;\n var ddpId = \"VueTables__dropdown-pagination_\" + this.id;\n var perpageId = \"VueTables__limit_\" + this.id;\n\n var perpageValues = __webpack_require__(/*! ../modules/per-page-values */ \"./lib/modules/per-page-values.js\").call(this, h);\n\n var caption = this.opts.caption ? h(\"caption\", [this.opts.caption]) : '';\n var genericFilter = this.hasGenericFilter ? h(\"div\", {\n \"class\": \"VueTables__search-field\"\n }, [h(\"label\", {\n attrs: {\n \"for\": filterId\n },\n \"class\": classes.label\n }, [this.display(\"filter\")]), modules.normalFilter(classes, filterId)]) : \"\";\n var perpage = !this.opts.hidePerPageSelect && (perpageValues.length > 1 || this.opts.alwaysShowPerPageSelect) ? h(\"div\", {\n \"class\": \"VueTables__limit-field\"\n }, [h(\"label\", {\n \"class\": classes.label,\n attrs: {\n \"for\": perpageId\n }\n }, [this.display(\"limit\")]), modules.perPage(perpageValues, classes.select, perpageId)]) : \"\";\n var dropdownPagination = this.opts.pagination && this.opts.pagination.dropdown ? h(\"div\", {\n \"class\": \"VueTables__pagination-wrapper\"\n }, [h(\"div\", {\n \"class\": \"\".concat(classes.field, \" \").concat(classes.inline, \" \").concat(classes.right, \" VueTables__dropdown-pagination\"),\n directives: [{\n name: \"show\",\n value: this.totalPages > 1\n }]\n }, [h(\"label\", {\n attrs: {\n \"for\": ddpId\n }\n }, [this.display(\"page\")]), modules.dropdownPagination(classes.select, ddpId)])]) : \"\";\n var columnsDropdown = this.opts.columnsDropdown ? h(\"div\", {\n \"class\": \"VueTables__columns-dropdown-wrapper\"\n }, [modules.columnsDropdown(classes)]) : \"\";\n var footerHeadings = this.opts.footerHeadings ? h(\"tfoot\", [h(\"tr\", [modules.headings(classes.right)])]) : \"\";\n var shouldShowTop = genericFilter || perpage || dropdownPagination || columnsDropdown || slots.beforeFilter || slots.afterFilter || slots.beforeLimit || slots.afterLimit;\n var tableTop = h(\"div\", {\n \"class\": classes.row,\n directives: [{\n name: \"show\",\n value: shouldShowTop\n }]\n }, [h(\"div\", {\n \"class\": classes.column\n }, [h(\"div\", {\n \"class\": \"\".concat(classes.field, \" \").concat(classes.inline, \" \").concat(classes.left, \" VueTables__search\")\n }, [slots.beforeFilter, genericFilter, slots.afterFilter]), slots.afterFilterWrapper, h(\"div\", {\n \"class\": \"\".concat(classes.field, \" \").concat(classes.inline, \" \").concat(classes.right, \" VueTables__limit\")\n }, [slots.beforeLimit, perpage, slots.afterLimit]), dropdownPagination, columnsDropdown])]);\n return h(\"div\", {\n \"class\": \"VueTables VueTables--\" + this.source\n }, [tableTop, slots.beforeTable, h(\"div\", {\n \"class\": \"table-responsive\"\n }, [h(\"table\", {\n \"class\": \"VueTables__table \".concat(this.opts.skin ? this.opts.skin : classes.table),\n attrs: {\n summary: this.opts.summary\n }\n }, [caption, h(\"thead\", [slots.prependHead, h(\"tr\", [modules.headings(classes.right)]), slots.beforeFilters, modules.columnFilters(classes), slots.afterFilters]), footerHeadings, slots.beforeBody, h(\"tbody\", [slots.prependBody, modules.rows(classes), slots.appendBody]), slots.afterBody])]), slots.afterTable, modules.pagination((0, _merge[\"default\"])(classes.pagination, {\n wrapper: \"\".concat(classes.row, \" \").concat(classes.column, \" \").concat(classes.contentCenter),\n nav: classes.center,\n count: \"\".concat(classes.center, \" \").concat(classes.column)\n })), modules.dropdownPaginationCount()]);\n};\n\n//# sourceURL=webpack://VueTables/./lib/templates/default.js?"); - -/***/ }), - -/***/ "./lib/templates/footer-pagination.js": -/*!********************************************!*\ - !*** ./lib/templates/footer-pagination.js ***! - \********************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\n\nvar _merge = _interopRequireDefault(__webpack_require__(/*! merge */ \"./node_modules/merge/merge.js\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\n\nmodule.exports = function (h, modules, classes, slots) {\n var filterId = 'VueTables__search_' + this.id;\n var perpageId = 'VueTables__limit_' + this.id;\n\n var perpageValues = __webpack_require__(/*! ../modules/per-page-values */ \"./lib/modules/per-page-values.js\").call(this, h);\n\n var caption = this.opts.caption ? h(\"caption\", [this.opts.caption]) : '';\n var genericFilter = this.hasGenericFilter ? h(\"div\", {\n \"class\": \"VueTables__search-field\"\n }, [h(\"label\", {\n attrs: {\n \"for\": filterId\n },\n \"class\": classes.label\n }, [this.display('filter')]), modules.normalFilter(classes, filterId)]) : '';\n var perpage = perpageValues.length > 1 ? h(\"div\", {\n \"class\": \"VueTables__limit-field\"\n }, [h(\"label\", {\n \"class\": classes.label,\n attrs: {\n \"for\": perpageId\n }\n }, [this.display('limit')]), modules.perPage(perpageValues, classes.select, perpageId)]) : '';\n var columnsDropdown = this.opts.columnsDropdown ? h(\"div\", {\n \"class\": \"VueTables__columns-dropdown-wrapper\"\n }, [modules.columnsDropdown(classes)]) : '';\n var shouldShowTop = genericFilter || perpage || columnsDropdown || slots.beforeFilter || slots.afterFilter || slots.beforeLimit || slots.afterLimit;\n var tableTop = h(\"div\", {\n \"class\": classes.row,\n directives: [{\n name: \"show\",\n value: shouldShowTop\n }]\n }, [h(\"div\", {\n \"class\": classes.column\n }, [h(\"div\", {\n \"class\": \"\".concat(classes.field, \" \").concat(classes.inline, \" \").concat(classes.left, \" VueTables__search\")\n }, [slots.beforeFilter, genericFilter, slots.afterFilter]), slots.afterFilterWrapper, h(\"div\", {\n \"class\": \"\".concat(classes.field, \" \").concat(classes.inline, \" \").concat(classes.right, \" VueTables__limit\")\n }, [slots.beforeLimit, perpage, slots.afterLimit]), columnsDropdown])]);\n return h(\"div\", {\n \"class\": \"VueTables VueTables--\" + this.source\n }, [tableTop, slots.beforeTable, h(\"div\", {\n \"class\": \"table-responsive\"\n }, [h(\"table\", {\n \"class\": \"VueTables__table \".concat(this.opts.skin ? this.opts.skin : classes.table),\n attrs: {\n summary: this.opts.summary\n }\n }, [caption, h(\"thead\", [slots.prependHead, h(\"tr\", [modules.headings(classes.right)]), slots.beforeFilters, modules.columnFilters(classes), slots.afterFilters]), h(\"tfoot\", [h(\"tr\", [h(\"td\", {\n attrs: {\n colspan: this.colspan\n }\n }, [modules.pagination((0, _merge[\"default\"])(classes.pagination, {\n list: \"\".concat(classes.pagination.list, \" \").concat(classes.right, \" \").concat(classes.nomargin),\n count: \"\".concat(classes.left)\n }))])])]), slots.beforeBody, h(\"tbody\", [slots.prependBody, modules.rows(classes), slots.appendBody]), slots.afterBody])]), slots.afterTable]);\n};\n\n//# sourceURL=webpack://VueTables/./lib/templates/footer-pagination.js?"); - -/***/ }), - /***/ "./lib/themes/bootstrap3.js": /*!**********************************!*\ !*** ./lib/themes/bootstrap3.js ***! @@ -1595,7 +1967,7 @@ eval("\n\nvar _merge = _interopRequireDefault(__webpack_require__(/*! merge */ \ /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nmodule.exports = function () {\n return {\n framework: 'bootstrap3',\n table: 'table table-striped table-bordered table-hover',\n row: 'row',\n column: 'col-md-12',\n label: '',\n input: 'form-control',\n select: 'form-control',\n field: 'form-group',\n inline: 'form-inline',\n right: 'pull-right',\n left: 'pull-left',\n center: 'text-center',\n contentCenter: '',\n small: '',\n nomargin: '',\n groupTr: 'info',\n button: 'btn btn-secondary',\n dropdown: {\n container: 'dropdown',\n trigger: 'dropdown-toggle',\n menu: 'dropdown-menu',\n content: '',\n item: '',\n caret: 'caret'\n },\n pagination: {\n nav: '',\n count: '',\n wrapper: '',\n list: 'pagination',\n item: 'page-item',\n link: 'page-link',\n next: '',\n prev: '',\n active: 'active',\n disabled: 'disabled'\n }\n };\n};\n\n//# sourceURL=webpack://VueTables/./lib/themes/bootstrap3.js?"); +eval("\n\nmodule.exports = function () {\n return {\n framework: 'bootstrap3',\n table: 'table table-striped table-bordered table-hover',\n row: 'row',\n column: 'col-md-12',\n label: '',\n input: 'form-control',\n select: 'form-control',\n field: 'form-group',\n inline: 'form-inline',\n right: 'pull-right',\n left: 'pull-left',\n center: 'text-center',\n contentCenter: '',\n small: '',\n nomargin: '',\n groupTr: 'info',\n button: 'btn btn-secondary',\n icon: '',\n dropdown: {\n container: 'dropdown',\n trigger: 'dropdown-toggle',\n menu: 'dropdown-menu',\n content: '',\n item: '',\n caret: 'caret'\n },\n pagination: {\n nav: '',\n count: '',\n wrapper: '',\n list: 'pagination',\n item: 'page-item',\n link: 'page-link',\n next: '',\n prev: '',\n active: 'active',\n disabled: 'disabled'\n }\n };\n};\n\n//# sourceURL=webpack://VueTables/./lib/themes/bootstrap3.js?"); /***/ }), @@ -1607,7 +1979,7 @@ eval("\n\nmodule.exports = function () {\n return {\n framework: 'bootstrap3 /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nmodule.exports = function () {\n return {\n framework: 'bootstrap4',\n table: 'table table-striped table-bordered table-hover',\n row: 'row',\n column: 'col-md-12',\n label: '',\n input: 'form-control',\n select: 'form-control',\n field: 'form-group',\n inline: 'form-inline',\n right: 'float-right',\n left: 'float-left',\n center: 'text-center',\n contentCenter: 'justify-content-center',\n nomargin: 'm-0',\n groupTr: 'table-info',\n small: '',\n button: 'btn btn-secondary',\n dropdown: {\n container: 'dropdown',\n trigger: 'dropdown-toggle',\n menu: 'dropdown-menu',\n content: '',\n item: 'dropdown-item',\n caret: 'caret'\n },\n pagination: {\n nav: '',\n count: '',\n wrapper: '',\n list: 'pagination',\n item: 'page-item',\n link: 'page-link',\n next: '',\n prev: '',\n active: 'active',\n disabled: 'disabled'\n }\n };\n};\n\n//# sourceURL=webpack://VueTables/./lib/themes/bootstrap4.js?"); +eval("\n\nmodule.exports = function () {\n return {\n framework: 'bootstrap4',\n table: 'table table-striped table-bordered table-hover',\n row: 'row',\n column: 'col-md-12',\n label: '',\n input: 'form-control',\n select: 'form-control',\n field: 'form-group',\n inline: 'form-inline',\n right: 'float-right',\n left: 'float-left',\n center: 'text-center',\n contentCenter: 'justify-content-center',\n nomargin: 'm-0',\n groupTr: 'table-info',\n small: '',\n button: 'btn btn-secondary',\n dropdown: {\n container: 'dropdown',\n trigger: 'dropdown-toggle',\n menu: 'dropdown-menu',\n content: '',\n item: 'dropdown-item',\n caret: 'caret'\n },\n pagination: {\n nav: '',\n count: '',\n wrapper: '',\n list: 'pagination',\n item: 'page-item',\n link: 'page-link',\n next: '',\n prev: '',\n active: 'active',\n disabled: 'disabled',\n icon: ''\n }\n };\n};\n\n//# sourceURL=webpack://VueTables/./lib/themes/bootstrap4.js?"); /***/ }), @@ -1631,7 +2003,7 @@ eval("\n\nmodule.exports = function () {\n return {\n framework: 'bulma',\n /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nvar _vuePagination = __webpack_require__(/*! vue-pagination-2 */ \"./node_modules/vue-pagination-2/index.js\");\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\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 templateCompiler = __webpack_require__(/*! ./template-compiler */ \"./lib/template-compiler.js\");\n\nexports.install = function (Vue, globalOptions, useVuex) {\n var theme = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : \"bootstrap3\";\n var template = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : \"default\";\n\n var client = _merge[\"default\"].recursive(true, (0, _table[\"default\"])(), {\n name: \"client-table\",\n components: {\n Pagination: _vuePagination.Pagination\n },\n render: templateCompiler.call(this, template, theme),\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 this._setFiltersDOM(this.query);\n\n if (this.opts.resizableColumns) {\n (0, _resizeableColumns[\"default\"])(this.$el.querySelector(\"table\"), this.hasChildRow, this.opts.childRowTogglerFirst, this.opts.resizableColumns);\n }\n\n this._setColumnsDropdownCloseListener();\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 }\n },\n model: {\n prop: \"data\"\n },\n data: function data() {\n return _merge[\"default\"].recursive(_data(), {\n source: \"client\",\n globalOptions: globalOptions,\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(\"v-client-table\", client);\n return client;\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.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?"); /***/ }), @@ -1643,7 +2015,7 @@ eval("\n\nvar _vuePagination = __webpack_require__(/*! vue-pagination-2 */ \"./n /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\n\nvar _merge = _interopRequireDefault(__webpack_require__(/*! merge */ \"./node_modules/merge/merge.js\"));\n\nvar _data2 = _interopRequireDefault(__webpack_require__(/*! ./state/data */ \"./lib/state/data.js\"));\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 _table = _interopRequireDefault(__webpack_require__(/*! ./table */ \"./lib/table.js\"));\n\nvar _vuePagination = __webpack_require__(/*! vue-pagination-2 */ \"./node_modules/vue-pagination-2/index.js\");\n\nvar _resizeableColumns = _interopRequireDefault(__webpack_require__(/*! ./helpers/resizeable-columns */ \"./lib/helpers/resizeable-columns.js\"));\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 templateCompiler = __webpack_require__(/*! ./template-compiler */ \"./lib/template-compiler.js\");\n\nexports.install = function (Vue, globalOptions, useVuex) {\n var theme = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : \"bootstrap3\";\n var template = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : \"default\";\n var state = useVuex ? (0, _vuex[\"default\"])(\"server\") : (0, _normal[\"default\"])();\n\n var server = _merge[\"default\"].recursive(true, (0, _table[\"default\"])(), {\n name: \"server-table\",\n components: {\n Pagination: _vuePagination.Pagination\n },\n render: templateCompiler.call(this, template, theme),\n props: {\n columns: {\n type: Array,\n required: true\n },\n url: {\n type: String\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 if (!this.opts.requestFunction && !this.url) {\n throw 'vue-tables-2: you must provide either a \"url\" prop or a custom request function. Aborting';\n }\n\n _created(this);\n\n if (!this.vuex) {\n this.query = this.initQuery();\n this.initOrderBy();\n this.customQueries = this.initCustomFilters();\n }\n\n if (this.opts.sendInitialRequest) {\n this.loadState();\n this.getData(true).then(function (response) {\n if (typeof response === 'undefined') return;\n this.setData(response);\n this.loading = false;\n\n if (this.hasDateFilters()) {\n setTimeout(function () {\n this.initDateFilters();\n }.bind(this), 0);\n }\n }.bind(this));\n }\n },\n mounted: function mounted() {\n this._setFiltersDOM(this.query);\n\n if (this.opts.resizableColumns) {\n (0, _resizeableColumns[\"default\"])(this.$el.querySelector(\"table\"), this.hasChildRow, this.opts.childRowTogglerFirst, this.opts.resizableColumns);\n }\n\n this._setColumnsDropdownCloseListener();\n\n if (this.vuex) return;\n this.registerServerFilters();\n if (this.options.initialPage) this.setPage(this.options.initialPage, true);\n },\n data: function data() {\n return _merge[\"default\"].recursive(_data(), {\n source: \"server\",\n loading: true,\n lastKeyStrokeAt: false,\n globalOptions: globalOptions\n }, (0, _data2[\"default\"])(useVuex, \"server\", this.options.initialPage));\n },\n methods: {\n refresh: __webpack_require__(/*! ./methods/refresh */ \"./lib/methods/refresh.js\"),\n getData: __webpack_require__(/*! ./methods/get-data */ \"./lib/methods/get-data.js\"),\n setData: __webpack_require__(/*! ./methods/set-data */ \"./lib/methods/set-data.js\"),\n serverSearch: __webpack_require__(/*! ./methods/server-search */ \"./lib/methods/server-search.js\"),\n registerServerFilters: __webpack_require__(/*! ./methods/register-server-filters */ \"./lib/methods/register-server-filters.js\"),\n loadState: function loadState() {\n var _this = this;\n\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\n if (this.vuex) {\n this.commit(\"SET_STATE\", {\n query: state.query,\n customQueries: state.customQueries,\n page: state.page,\n limit: state.perPage,\n orderBy: state.orderBy\n });\n } else {\n this.page = state.page;\n this.query = state.query;\n this.customQueries = state.customQueries;\n this.limit = state.perPage;\n this.orderBy = state.orderBy;\n }\n\n if (!this.opts.pagination.dropdown && this.$refs.pagination) {\n setTimeout(function () {\n _this.$refs.pagination.Page = state.page;\n }, 0);\n }\n\n if (this.opts.filterable) {\n setTimeout(function () {\n _this._setFiltersDOM(state.query);\n }, 0);\n }\n\n this.activeState = true;\n }\n },\n watch: {\n url: function url() {\n this.refresh();\n }\n },\n computed: {\n totalPages: __webpack_require__(/*! ./computed/total-pages */ \"./lib/computed/total-pages.js\"),\n filteredQuery: __webpack_require__(/*! ./computed/filtered-query */ \"./lib/computed/filtered-query.js\"),\n hasMultiSort: function hasMultiSort() {\n return this.opts.serverMultiSorting;\n }\n }\n }, state);\n\n Vue.component(\"v-server-table\", server);\n return server;\n};\n\n//# sourceURL=webpack://VueTables/./lib/v-server-table.js?"); +eval("\n\nvar _merge = _interopRequireDefault(__webpack_require__(/*! merge */ \"./node_modules/merge/merge.js\"));\n\nvar _data2 = _interopRequireDefault(__webpack_require__(/*! ./state/data */ \"./lib/state/data.js\"));\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 _table = _interopRequireDefault(__webpack_require__(/*! ./table */ \"./lib/table.js\"));\n\nvar _resizeableColumns = _interopRequireDefault(__webpack_require__(/*! ./helpers/resizeable-columns */ \"./lib/helpers/resizeable-columns.js\"));\n\nvar _VtServerTable = _interopRequireDefault(__webpack_require__(/*! ./components/VtServerTable */ \"./lib/components/VtServerTable.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 var state = useVuex ? (0, _vuex[\"default\"])(\"server\") : (0, _normal[\"default\"])();\n\n var server = _merge[\"default\"].recursive(true, (0, _table[\"default\"])(), {\n name: \"r-l-server-table\",\n render: __webpack_require__(/*! ./components/renderless/RLDataTable */ \"./lib/components/renderless/RLDataTable.js\"),\n props: {\n columns: {\n type: Array,\n required: true\n },\n url: {\n type: String\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 provide: provide,\n created: function created() {\n if (!this.opts.requestFunction && !this.url) {\n throw 'vue-tables-2: you must provide either a \"url\" prop or a custom request function. Aborting';\n }\n\n _created(this);\n\n if (!this.vuex) {\n this.query = this.initQuery();\n this.initOrderBy();\n this.customQueries = this.initCustomFilters();\n }\n\n if (this.opts.sendInitialRequest) {\n this.loadState();\n this.getData(true).then(function (response) {\n if (typeof response === 'undefined') return;\n this.setData(response);\n this.loading = false;\n\n if (this.hasDateFilters()) {\n setTimeout(function () {\n this.initDateFilters();\n }.bind(this), 0);\n }\n }.bind(this));\n }\n },\n mounted: function mounted() {\n this._setFiltersDOM(this.query);\n\n if (this.opts.resizableColumns) {\n (0, _resizeableColumns[\"default\"])(this.$el.querySelector(\"table\"), this.hasChildRow, this.opts.childRowTogglerFirst, this.opts.resizableColumns);\n } // this._setColumnsDropdownCloseListener();\n\n\n if (this.vuex) return;\n this.registerServerFilters();\n if (this.options.initialPage) this.setPage(this.options.initialPage, true);\n },\n data: function data() {\n return _merge[\"default\"].recursive(_data(), {\n source: \"server\",\n loading: true,\n lastKeyStrokeAt: false,\n globalOptions: globalOptions,\n componentsOverride: componentsOverride,\n theme: typeof theme === 'string' ? themes[theme] : theme()\n }, (0, _data2[\"default\"])(useVuex, \"server\", this.options.initialPage));\n },\n methods: {\n refresh: __webpack_require__(/*! ./methods/refresh */ \"./lib/methods/refresh.js\"),\n getData: __webpack_require__(/*! ./methods/get-data */ \"./lib/methods/get-data.js\"),\n setData: __webpack_require__(/*! ./methods/set-data */ \"./lib/methods/set-data.js\"),\n serverSearch: __webpack_require__(/*! ./methods/server-search */ \"./lib/methods/server-search.js\"),\n registerServerFilters: __webpack_require__(/*! ./methods/register-server-filters */ \"./lib/methods/register-server-filters.js\"),\n loadState: function loadState() {\n var _this = this;\n\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\n if (this.vuex) {\n this.commit(\"SET_STATE\", {\n query: state.query,\n customQueries: state.customQueries,\n page: state.page,\n limit: state.perPage,\n orderBy: state.orderBy\n });\n } else {\n this.page = state.page;\n this.query = state.query;\n this.customQueries = state.customQueries;\n this.limit = state.perPage;\n this.orderBy = state.orderBy;\n }\n\n if (!this.opts.pagination.dropdown && this.$refs.pagination) {\n setTimeout(function () {\n _this.$refs.pagination.Page = state.page;\n }, 0);\n }\n\n if (this.opts.filterable) {\n setTimeout(function () {\n _this._setFiltersDOM(state.query);\n }, 0);\n }\n\n this.activeState = true;\n }\n },\n watch: {\n url: function url() {\n this.refresh();\n }\n },\n computed: {\n totalPages: __webpack_require__(/*! ./computed/total-pages */ \"./lib/computed/total-pages.js\"),\n filteredQuery: __webpack_require__(/*! ./computed/filtered-query */ \"./lib/computed/filtered-query.js\"),\n hasMultiSort: function hasMultiSort() {\n return this.opts.serverMultiSorting;\n }\n }\n }, state);\n\n Vue.component(\"r-l-server-table\", server);\n Vue.component(\"v-server-table\", _VtServerTable[\"default\"]);\n return _VtServerTable[\"default\"];\n};\n\n//# sourceURL=webpack://VueTables/./lib/v-server-table.js?"); /***/ }), @@ -1757,19 +2129,7 @@ eval("/* WEBPACK VAR INJECTION */(function(module) {/*!\r\n * @name JavaScript/N /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\r\n\r\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\r\n\r\nvar _config = __webpack_require__(/*! ./config */ \"./node_modules/vue-pagination-2/compiled/config.js\");\r\n\r\nvar _config2 = _interopRequireDefault(_config);\r\n\r\nvar _merge = __webpack_require__(/*! merge */ \"./node_modules/merge/merge.js\");\r\n\r\nvar _merge2 = _interopRequireDefault(_merge);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\r\n\r\nvar template = __webpack_require__(/*! ./template.js */ \"./node_modules/vue-pagination-2/compiled/template.js\");\r\nvar bus = __webpack_require__(/*! ./bus */ \"./node_modules/vue-pagination-2/compiled/bus.js\");\r\n\r\n\r\nmodule.exports = {\r\n render: template.call(undefined),\r\n props: {\r\n for: {\r\n type: String,\r\n required: false\r\n },\r\n records: {\r\n type: Number,\r\n required: true\r\n },\r\n perPage: {\r\n type: Number,\r\n default: 25\r\n },\r\n vuex: {\r\n type: Boolean\r\n },\r\n options: {\r\n type: Object\r\n }\r\n },\r\n created: function created() {\r\n\r\n if (!this.vuex) return;\r\n\r\n if (!this.for) {\r\n throw new Error('vue-pagination-2: The \"for\" prop is required when using vuex');\r\n }\r\n\r\n var name = this.for;\r\n\r\n if (this.$store.state[name]) return;\r\n\r\n this.$store.registerModule(this.for, {\r\n state: {\r\n page: 1\r\n },\r\n mutations: _defineProperty({}, name + '/PAGINATE', function undefined(state, page) {\r\n state.page = page;\r\n })\r\n });\r\n },\r\n data: function data() {\r\n return {\r\n Page: 1,\r\n firstPage: 1\r\n };\r\n },\r\n computed: {\r\n opts: function opts() {\r\n return (0, _merge2.default)((0, _config2.default)(), this.options);\r\n },\r\n Theme: function Theme() {\r\n\r\n if (_typeof(this.opts.theme) === 'object') {\r\n return this.opts.theme;\r\n }\r\n\r\n var themes = {\r\n bootstrap3: __webpack_require__(/*! ./themes/bootstrap3 */ \"./node_modules/vue-pagination-2/compiled/themes/bootstrap3.js\"),\r\n bootstrap4: __webpack_require__(/*! ./themes/bootstrap4 */ \"./node_modules/vue-pagination-2/compiled/themes/bootstrap4.js\"),\r\n bulma: __webpack_require__(/*! ./themes/bulma */ \"./node_modules/vue-pagination-2/compiled/themes/bulma.js\")\r\n };\r\n\r\n if (_typeof(themes[this.opts.theme]) === undefined) {\r\n throw 'vue-pagination-2: the theme ' + this.opts.theme + ' does not exist';\r\n }\r\n\r\n return themes[this.opts.theme];\r\n },\r\n page: function page() {\r\n return this.vuex ? this.$store.state[this.for].page : this.Page;\r\n },\r\n\r\n pages: function pages() {\r\n if (!this.records) return [];\r\n\r\n return range(this.paginationStart, this.pagesInCurrentChunk);\r\n },\r\n totalPages: function totalPages() {\r\n return this.records ? Math.ceil(this.records / this.perPage) : 1;\r\n },\r\n totalChunks: function totalChunks() {\r\n return Math.ceil(this.totalPages / this.opts.chunk);\r\n },\r\n currentChunk: function currentChunk() {\r\n return Math.ceil(this.page / this.opts.chunk);\r\n },\r\n paginationStart: function paginationStart() {\r\n\r\n if (this.opts.chunksNavigation === 'scroll') {\r\n var page = this.Page - this.opts.chunk + 1;\r\n return page > 0 ? page : 1;\r\n }\r\n\r\n return (this.currentChunk - 1) * this.opts.chunk + 1;\r\n },\r\n pagesInCurrentChunk: function pagesInCurrentChunk() {\r\n return this.paginationStart + this.opts.chunk <= this.totalPages ? this.opts.chunk : this.totalPages - this.paginationStart + 1;\r\n },\r\n count: function count() {\r\n\r\n if (/{page}/.test(this.opts.texts.count)) {\r\n\r\n if (this.totalPages <= 1) return '';\r\n\r\n return this.opts.texts.count.replace('{page}', this.page).replace('{pages}', this.totalPages);\r\n }\r\n\r\n var parts = this.opts.texts.count.split('|');\r\n var from = (this.page - 1) * this.perPage + 1;\r\n var to = this.page == this.totalPages ? this.records : from + this.perPage - 1;\r\n var i = Math.min(this.records == 1 ? 2 : this.totalPages == 1 ? 1 : 0, parts.length - 1);\r\n\r\n return parts[i].replace('{count}', this.formatNumber(this.records)).replace('{from}', this.formatNumber(from)).replace('{to}', this.formatNumber(to));\r\n }\r\n },\r\n methods: {\r\n setPage: function setPage(page) {\r\n if (this.allowedPage(page)) {\r\n this.paginate(page);\r\n }\r\n },\r\n paginate: function paginate(page) {\r\n if (this.vuex) {\r\n this.$store.commit(this.for + '/PAGINATE', page);\r\n } else {\r\n this.Page = page;\r\n }\r\n\r\n this.$emit('paginate', page);\r\n\r\n if (this.for) {\r\n bus.$emit('vue-pagination::' + this.for, page);\r\n }\r\n },\r\n\r\n next: function next() {\r\n var page = this.page + 1;\r\n if (this.opts.chunksNavigation === 'scroll' && this.allowedPage(page) && !this.inDisplay(page)) {\r\n this.firstPage++;\r\n }\r\n return this.setPage(page);\r\n },\r\n prev: function prev() {\r\n var page = this.page - 1;\r\n\r\n if (this.opts.chunksNavigation === 'scroll' && this.allowedPage(page) && !this.inDisplay(page)) {\r\n this.firstPage--;\r\n }\r\n\r\n return this.setPage(page);\r\n },\r\n inDisplay: function inDisplay(page) {\r\n\r\n var start = this.firstPage;\r\n var end = start + this.opts.chunk - 1;\r\n\r\n return page >= start && page <= end;\r\n },\r\n\r\n nextChunk: function nextChunk() {\r\n return this.setChunk(1);\r\n },\r\n prevChunk: function prevChunk() {\r\n return this.setChunk(-1);\r\n },\r\n setChunk: function setChunk(direction) {\r\n this.setPage((this.currentChunk - 1 + direction) * this.opts.chunk + 1);\r\n },\r\n allowedPage: function allowedPage(page) {\r\n return page >= 1 && page <= this.totalPages;\r\n },\r\n allowedChunk: function allowedChunk(direction) {\r\n return direction == 1 && this.currentChunk < this.totalChunks || direction == -1 && this.currentChunk > 1;\r\n },\r\n allowedPageClass: function allowedPageClass(direction) {\r\n return this.allowedPage(direction) ? '' : this.Theme.disabled;\r\n },\r\n allowedChunkClass: function allowedChunkClass(direction) {\r\n return this.allowedChunk(direction) ? '' : this.Theme.disabled;\r\n },\r\n activeClass: function activeClass(page) {\r\n return this.page == page ? this.Theme.active : '';\r\n },\r\n formatNumber: function formatNumber(num) {\r\n\r\n if (!this.opts.format) return num;\r\n\r\n return num.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\");\r\n }\r\n },\r\n beforeDestroy: function beforeDestroy() {\r\n bus.$off();\r\n bus.$destroy();\r\n }\r\n};\r\n\r\nfunction range(start, count) {\r\n return Array.apply(0, Array(count)).map(function (element, index) {\r\n return index + start;\r\n });\r\n}\r\n\n\n//# sourceURL=webpack://VueTables/./node_modules/vue-pagination-2/compiled/Pagination.js?"); - -/***/ }), - -/***/ "./node_modules/vue-pagination-2/compiled/bus.js": -/*!*******************************************************!*\ - !*** ./node_modules/vue-pagination-2/compiled/bus.js ***! - \*******************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -eval("\r\n\r\nvar _vue = __webpack_require__(/*! vue */ \"vue\");\r\n\r\nvar _vue2 = _interopRequireDefault(_vue);\r\n\r\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\r\n\r\nvar bus = new _vue2.default();\r\n\r\nmodule.exports = bus;\n\n//# sourceURL=webpack://VueTables/./node_modules/vue-pagination-2/compiled/bus.js?"); +eval("\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar _config = __webpack_require__(/*! ./config */ \"./node_modules/vue-pagination-2/compiled/config.js\");\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _merge = __webpack_require__(/*! merge */ \"./node_modules/merge/merge.js\");\n\nvar _merge2 = _interopRequireDefault(_merge);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar template = __webpack_require__(/*! ./template.js */ \"./node_modules/vue-pagination-2/compiled/template.js\");\n\n\nmodule.exports = {\n render: template.call(undefined),\n model: {\n prop: 'page',\n event: 'paginate'\n },\n props: {\n page: {\n type: Number,\n required: true\n },\n for: {\n type: String,\n required: false\n },\n records: {\n type: Number,\n required: true\n },\n perPage: {\n type: Number,\n default: 25\n },\n vuex: {\n type: Boolean\n },\n options: {\n type: Object\n }\n },\n data: function data() {\n return {\n firstPage: this.page\n };\n },\n watch: {\n page: function page(_page) {\n if (this.opts.chunksNavigation === 'scroll' && this.allowedPage(_page) && !this.inDisplay(_page)) {\n this.firstPage = _page;\n }\n }\n },\n computed: {\n opts: function opts() {\n return (0, _merge2.default)((0, _config2.default)(), this.options);\n },\n Theme: function Theme() {\n\n if (_typeof(this.opts.theme) === 'object') {\n return this.opts.theme;\n }\n\n var themes = {\n bootstrap3: __webpack_require__(/*! ./themes/bootstrap3 */ \"./node_modules/vue-pagination-2/compiled/themes/bootstrap3.js\"),\n bootstrap4: __webpack_require__(/*! ./themes/bootstrap4 */ \"./node_modules/vue-pagination-2/compiled/themes/bootstrap4.js\"),\n bulma: __webpack_require__(/*! ./themes/bulma */ \"./node_modules/vue-pagination-2/compiled/themes/bulma.js\")\n };\n\n if (_typeof(themes[this.opts.theme]) === undefined) {\n throw 'vue-pagination-2: the theme ' + this.opts.theme + ' does not exist';\n }\n\n return themes[this.opts.theme];\n },\n\n pages: function pages() {\n if (!this.records) return [];\n\n return range(this.paginationStart, this.pagesInCurrentChunk);\n },\n totalPages: function totalPages() {\n return this.records ? Math.ceil(this.records / this.perPage) : 1;\n },\n totalChunks: function totalChunks() {\n return Math.ceil(this.totalPages / this.opts.chunk);\n },\n currentChunk: function currentChunk() {\n return Math.ceil(this.page / this.opts.chunk);\n },\n paginationStart: function paginationStart() {\n\n if (this.opts.chunksNavigation === 'scroll') {\n return this.firstPage;\n }\n\n return (this.currentChunk - 1) * this.opts.chunk + 1;\n },\n pagesInCurrentChunk: function pagesInCurrentChunk() {\n return this.paginationStart + this.opts.chunk <= this.totalPages ? this.opts.chunk : this.totalPages - this.paginationStart + 1;\n },\n count: function count() {\n\n if (/{page}/.test(this.opts.texts.count)) {\n\n if (this.totalPages <= 1) return '';\n\n return this.opts.texts.count.replace('{page}', this.page).replace('{pages}', this.totalPages);\n }\n\n var parts = this.opts.texts.count.split('|');\n var from = (this.page - 1) * this.perPage + 1;\n var to = this.page == this.totalPages ? this.records : from + this.perPage - 1;\n var i = Math.min(this.records == 1 ? 2 : this.totalPages == 1 ? 1 : 0, parts.length - 1);\n\n return parts[i].replace('{count}', this.formatNumber(this.records)).replace('{from}', this.formatNumber(from)).replace('{to}', this.formatNumber(to));\n }\n },\n methods: {\n setPage: function setPage(page) {\n if (this.allowedPage(page)) {\n this.paginate(page);\n }\n },\n paginate: function paginate(page) {\n this.$emit('paginate', page);\n },\n\n next: function next() {\n var page = this.page + 1;\n if (this.opts.chunksNavigation === 'scroll' && this.allowedPage(page) && !this.inDisplay(page)) {\n this.firstPage++;\n }\n return this.setPage(page);\n },\n prev: function prev() {\n var page = this.page - 1;\n\n if (this.opts.chunksNavigation === 'scroll' && this.allowedPage(page) && !this.inDisplay(page)) {\n this.firstPage--;\n }\n\n return this.setPage(page);\n },\n inDisplay: function inDisplay(page) {\n\n var start = this.firstPage;\n var end = start + this.opts.chunk - 1;\n\n return page >= start && page <= end;\n },\n\n nextChunk: function nextChunk() {\n return this.setChunk(1);\n },\n prevChunk: function prevChunk() {\n return this.setChunk(-1);\n },\n setChunk: function setChunk(direction) {\n this.setPage((this.currentChunk - 1 + direction) * this.opts.chunk + 1);\n },\n allowedPage: function allowedPage(page) {\n return page >= 1 && page <= this.totalPages;\n },\n allowedChunk: function allowedChunk(direction) {\n return direction == 1 && this.currentChunk < this.totalChunks || direction == -1 && this.currentChunk > 1;\n },\n allowedPageClass: function allowedPageClass(direction) {\n return this.allowedPage(direction) ? '' : this.Theme.disabled;\n },\n allowedChunkClass: function allowedChunkClass(direction) {\n return this.allowedChunk(direction) ? '' : this.Theme.disabled;\n },\n activeClass: function activeClass(page) {\n return this.page == page ? this.Theme.active : '';\n },\n formatNumber: function formatNumber(num) {\n\n if (!this.opts.format) return num;\n\n return num.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\");\n }\n }\n};\n\nfunction range(start, count) {\n return Array.apply(0, Array(count)).map(function (element, index) {\n return index + start;\n });\n}\n\n//# sourceURL=webpack://VueTables/./node_modules/vue-pagination-2/compiled/Pagination.js?"); /***/ }), @@ -1781,7 +2141,7 @@ eval("\r\n\r\nvar _vue = __webpack_require__(/*! vue */ \"vue\");\r\n\r\nvar _vu /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n value: true\r\n});\r\n\r\nexports.default = function () {\r\n return {\r\n format: true,\r\n chunk: 10,\r\n chunksNavigation: 'fixed',\r\n edgeNavigation: false,\r\n theme: 'bootstrap3',\r\n texts: {\r\n count: 'Showing {from} to {to} of {count} records|{count} records|One record',\r\n first: 'First',\r\n last: 'Last'\r\n }\r\n };\r\n};\n\n//# sourceURL=webpack://VueTables/./node_modules/vue-pagination-2/compiled/config.js?"); +eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports.default = function () {\n return {\n format: true,\n chunk: 10,\n chunksNavigation: 'fixed',\n edgeNavigation: false,\n theme: 'bootstrap3',\n texts: {\n count: 'Showing {from} to {to} of {count} records|{count} records|One record',\n first: 'First',\n last: 'Last'\n }\n };\n};\n\n//# sourceURL=webpack://VueTables/./node_modules/vue-pagination-2/compiled/config.js?"); /***/ }), @@ -1793,7 +2153,7 @@ eval("\r\n\r\nObject.defineProperty(exports, \"__esModule\", {\r\n value: tru /***/ (function(module, exports, __webpack_require__) { "use strict"; -eval("\r\n\r\nmodule.exports = function () {\r\n\r\n return function (h) {\r\n\r\n var theme = this.Theme;\r\n var prevChunk = '';\r\n var nextChunk = '';\r\n var firstPage = '';\r\n var lastPage = '';\r\n var items = this.pages.map(function (page) {\r\n\r\n return h(\r\n 'li',\r\n { 'class': 'VuePagination__pagination-item ' + theme.item + ' ' + this.activeClass(page),\r\n on: {\r\n 'click': this.setPage.bind(this, page)\r\n }\r\n },\r\n [h(\r\n 'a',\r\n { 'class': theme.link + ' ' + this.activeClass(page),\r\n attrs: { href: 'javascript:void(0)',\r\n role: 'button' }\r\n },\r\n [page]\r\n )]\r\n );\r\n }.bind(this));\r\n\r\n if (this.opts.edgeNavigation && this.totalChunks > 1) {\r\n firstPage = h(\r\n 'li',\r\n { 'class': 'VuePagination__pagination-item ' + theme.item + ' ' + (this.page === 1 ? theme.disabled : '') + ' VuePagination__pagination-item-prev-chunk',\r\n on: {\r\n 'click': this.setPage.bind(this, 1)\r\n }\r\n },\r\n [h(\r\n 'a',\r\n { 'class': theme.link,\r\n attrs: { href: 'javascript:void(0);',\r\n disabled: this.page === 1 }\r\n },\r\n [this.opts.texts.first]\r\n )]\r\n );\r\n\r\n lastPage = h(\r\n 'li',\r\n { 'class': 'VuePagination__pagination-item ' + theme.item + ' ' + (this.page === this.totalPages ? theme.disabled : '') + ' VuePagination__pagination-item-prev-chunk',\r\n on: {\r\n 'click': this.setPage.bind(this, this.totalPages)\r\n }\r\n },\r\n [h(\r\n 'a',\r\n { 'class': theme.link,\r\n attrs: { href: 'javascript:void(0);',\r\n disabled: this.page === this.totalPages }\r\n },\r\n [this.opts.texts.last]\r\n )]\r\n );\r\n }\r\n\r\n if (this.opts.chunksNavigation === 'fixed') {\r\n\r\n prevChunk = h(\r\n 'li',\r\n { 'class': 'VuePagination__pagination-item ' + theme.item + ' ' + theme.prev + ' VuePagination__pagination-item-prev-chunk ' + this.allowedChunkClass(-1),\r\n on: {\r\n 'click': this.setChunk.bind(this, -1)\r\n }\r\n },\r\n [h(\r\n 'a',\r\n { 'class': theme.link,\r\n attrs: { href: 'javascript:void(0);',\r\n disabled: !!this.allowedChunkClass(-1) }\r\n },\r\n ['<<']\r\n )]\r\n );\r\n\r\n nextChunk = h(\r\n 'li',\r\n { 'class': 'VuePagination__pagination-item ' + theme.item + ' ' + theme.next + ' VuePagination__pagination-item-next-chunk ' + this.allowedChunkClass(1),\r\n on: {\r\n 'click': this.setChunk.bind(this, 1)\r\n }\r\n },\r\n [h(\r\n 'a',\r\n { 'class': theme.link,\r\n attrs: { href: 'javascript:void(0);',\r\n disabled: !!this.allowedChunkClass(1) }\r\n },\r\n ['>>']\r\n )]\r\n );\r\n }\r\n\r\n return h(\r\n 'div',\r\n { 'class': 'VuePagination ' + theme.wrapper },\r\n [h(\r\n 'nav',\r\n { 'class': '' + theme.nav },\r\n [h(\r\n 'ul',\r\n {\r\n directives: [{\r\n name: 'show',\r\n value: this.totalPages > 1\r\n }],\r\n\r\n 'class': theme.list + ' VuePagination__pagination' },\r\n [firstPage, prevChunk, h(\r\n 'li',\r\n { 'class': 'VuePagination__pagination-item ' + theme.item + ' ' + theme.prev + ' VuePagination__pagination-item-prev-page ' + this.allowedPageClass(this.page - 1),\r\n on: {\r\n 'click': this.prev.bind(this)\r\n }\r\n },\r\n [h(\r\n 'a',\r\n { 'class': theme.link,\r\n attrs: { href: 'javascript:void(0);',\r\n disabled: !!this.allowedPageClass(this.page - 1)\r\n }\r\n },\r\n ['<']\r\n )]\r\n ), items, h(\r\n 'li',\r\n { 'class': 'VuePagination__pagination-item ' + theme.item + ' ' + theme.next + ' VuePagination__pagination-item-next-page ' + this.allowedPageClass(this.page + 1),\r\n on: {\r\n 'click': this.next.bind(this)\r\n }\r\n },\r\n [h(\r\n 'a',\r\n { 'class': theme.link,\r\n attrs: { href: 'javascript:void(0);',\r\n disabled: !!this.allowedPageClass(this.page + 1)\r\n }\r\n },\r\n ['>']\r\n )]\r\n ), nextChunk, lastPage]\r\n ), h(\r\n 'p',\r\n {\r\n directives: [{\r\n name: 'show',\r\n value: parseInt(this.records)\r\n }],\r\n\r\n 'class': 'VuePagination__count ' + theme.count },\r\n [this.count]\r\n )]\r\n )]\r\n );\r\n };\r\n};\n\n//# sourceURL=webpack://VueTables/./node_modules/vue-pagination-2/compiled/template.js?"); +eval("\n\nmodule.exports = function () {\n\n return function (h) {\n\n var theme = this.Theme;\n var items = [];\n var prevChunk = '';\n var nextChunk = '';\n var firstPage = '';\n var lastPage = '';\n\n if (this.opts.edgeNavigation && this.totalChunks > 1) {\n firstPage = h(\n 'li',\n { 'class': 'VuePagination__pagination-item ' + theme.item + ' ' + (this.page === 1 ? theme.disabled : '') + ' VuePagination__pagination-item-prev-chunk' },\n [h(\n 'a',\n { 'class': theme.link,\n attrs: { href: 'javascript:void(0);',\n disabled: this.page === 1\n },\n on: {\n 'click': this.setPage.bind(this, 1)\n }\n },\n [this.opts.texts.first]\n )]\n );\n\n lastPage = h(\n 'li',\n { 'class': 'VuePagination__pagination-item ' + theme.item + ' ' + (this.page === this.totalPages ? theme.disabled : '') + ' VuePagination__pagination-item-prev-chunk' },\n [h(\n 'a',\n { 'class': theme.link,\n attrs: { href: 'javascript:void(0);',\n disabled: this.page === this.totalPages\n },\n on: {\n 'click': this.setPage.bind(this, this.totalPages)\n }\n },\n [this.opts.texts.last]\n )]\n );\n }\n\n if (this.opts.chunksNavigation === 'fixed') {\n\n prevChunk = h(\n 'li',\n { 'class': 'VuePagination__pagination-item ' + theme.item + ' ' + theme.prev + ' VuePagination__pagination-item-prev-chunk ' + this.allowedChunkClass(-1) },\n [h(\n 'a',\n { 'class': theme.link,\n attrs: { href: 'javascript:void(0);',\n disabled: !!this.allowedChunkClass(-1)\n },\n on: {\n 'click': this.setChunk.bind(this, -1)\n }\n },\n ['<<']\n )]\n );\n\n nextChunk = h(\n 'li',\n { 'class': 'VuePagination__pagination-item ' + theme.item + ' ' + theme.next + ' VuePagination__pagination-item-next-chunk ' + this.allowedChunkClass(1) },\n [h(\n 'a',\n { 'class': theme.link,\n attrs: { href: 'javascript:void(0);',\n disabled: !!this.allowedChunkClass(1)\n },\n on: {\n 'click': this.setChunk.bind(this, 1)\n }\n },\n ['>>']\n )]\n );\n }\n\n this.pages.map(function (page) {\n items.push(h(\n 'li',\n { 'class': 'VuePagination__pagination-item ' + theme.item + ' ' + this.activeClass(page) },\n [h(\n 'a',\n { 'class': theme.link + ' ' + this.activeClass(page),\n attrs: { href: 'javascript:void(0)',\n role: 'button'\n },\n on: {\n 'click': this.setPage.bind(this, page)\n }\n },\n [page]\n )]\n ));\n }.bind(this));\n\n return h(\n 'div',\n { 'class': 'VuePagination ' + theme.wrapper },\n [h(\n 'nav',\n { 'class': '' + theme.nav },\n [h(\n 'ul',\n {\n directives: [{\n name: 'show',\n value: this.totalPages > 1\n }],\n\n 'class': theme.list + ' VuePagination__pagination' },\n [firstPage, prevChunk, h(\n 'li',\n { 'class': 'VuePagination__pagination-item ' + theme.item + ' ' + theme.prev + ' VuePagination__pagination-item-prev-page ' + this.allowedPageClass(this.page - 1) },\n [h(\n 'a',\n { 'class': theme.link,\n attrs: { href: 'javascript:void(0);',\n disabled: !!this.allowedPageClass(this.page - 1)\n },\n on: {\n 'click': this.prev.bind(this)\n }\n },\n ['<']\n )]\n ), items, h(\n 'li',\n { 'class': 'VuePagination__pagination-item ' + theme.item + ' ' + theme.next + ' VuePagination__pagination-item-next-page ' + this.allowedPageClass(this.page + 1) },\n [h(\n 'a',\n { 'class': theme.link,\n attrs: { href: 'javascript:void(0);',\n disabled: !!this.allowedPageClass(this.page + 1)\n },\n on: {\n 'click': this.next.bind(this)\n }\n },\n ['>']\n )]\n ), nextChunk, lastPage]\n ), h(\n 'p',\n {\n directives: [{\n name: 'show',\n value: parseInt(this.records)\n }],\n\n 'class': 'VuePagination__count ' + theme.count },\n [this.count]\n )]\n )]\n );\n };\n};\n\n//# sourceURL=webpack://VueTables/./node_modules/vue-pagination-2/compiled/template.js?"); /***/ }), @@ -1833,17 +2193,6 @@ eval("\n\nmodule.exports = {\n nav: '',\n count: '',\n wrapper: 'pagina /***/ }), -/***/ "./node_modules/vue-pagination-2/index.js": -/*!************************************************!*\ - !*** ./node_modules/vue-pagination-2/index.js ***! - \************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -eval("var Pagination = __webpack_require__(/*! ./compiled/Pagination */ \"./node_modules/vue-pagination-2/compiled/Pagination.js\");\r\nvar PaginationEvent = __webpack_require__(/*! ./compiled/bus */ \"./node_modules/vue-pagination-2/compiled/bus.js\");\r\n\r\nmodule.exports = {\r\n Pagination:Pagination,\r\n PaginationEvent:PaginationEvent\r\n}\r\n\n\n//# sourceURL=webpack://VueTables/./node_modules/vue-pagination-2/index.js?"); - -/***/ }), - /***/ "./node_modules/webpack/buildin/global.js": /*!***********************************!*\ !*** (webpack)/buildin/global.js ***! diff --git a/lib/components/renderless/RLPagination.js b/lib/components/renderless/RLPagination.js index a092e4d3..c3e5c76d 100644 --- a/lib/components/renderless/RLPagination.js +++ b/lib/components/renderless/RLPagination.js @@ -7,6 +7,7 @@ export default { 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()), diff --git a/lib/config/defaults.js b/lib/config/defaults.js index b73a6253..2f98620c 100644 --- a/lib/config/defaults.js +++ b/lib/config/defaults.js @@ -112,6 +112,7 @@ module.exports = function() { resizableColumns: true, editableColumns:[], tabbable: true, + infiniteScroll: false, componentsOverride:{ } diff --git a/lib/v-client-table.js b/lib/v-client-table.js index 8f3479ac..36324927 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"; +import VtClientTable from "./components/VtClientTable.jsx"; var data = require("./mixins/data"); var created = require("./mixins/created"); diff --git a/package-lock.json b/package-lock.json index 2cc0471e..fd4f104c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "vue-tables-2", - "version": "2.0.9", + "version": "2.0.14", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -185,7 +185,6 @@ "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" } @@ -227,8 +226,7 @@ "@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==", - "dev": true + "integrity": "sha512-CYAOUCARwExnEixLdB6sDm2dIJ/YgEAKDM1MOeMeZu9Ld/bDgVo8aiWrXwcY7OBh+1Ea2uUcVRcxKk0GJvW7QA==" }, "@babel/helper-regex": { "version": "7.5.5", @@ -426,7 +424,6 @@ "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" } @@ -885,7 +882,6 @@ "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", @@ -971,6 +967,90 @@ "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", @@ -3708,8 +3788,7 @@ "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" }, "etag": { "version": "1.8.1", @@ -5403,6 +5482,11 @@ "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", @@ -8074,8 +8158,7 @@ "lodash": { "version": "4.17.15", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", - "dev": true + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" }, "lodash.camelcase": { "version": "4.3.0", @@ -8089,6 +8172,11 @@ "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", @@ -11658,6 +11746,11 @@ "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", @@ -11915,8 +12008,7 @@ "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=", - "dev": true + "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=" }, "to-object-path": { "version": "0.3.0", diff --git a/package.json b/package.json index 8d8b1451..1ffa1e3c 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,6 @@ ], "dependencies": { "array-intersect": "^0.0.1", - "babel-helper-vue-jsx-merge-props": "^2.0.3", "clone": "^2.1.1", "debounce": "^1.1", "merge": "^1.2.0", @@ -48,6 +47,7 @@ "@babel/plugin-syntax-object-rest-spread": "^7.2.0", "@babel/plugin-transform-runtime": "^7.6.2", "@babel/preset-env": "^7.6.3", + "babel-helper-vue-jsx-merge-props": "^2.0.3", "axios": "^0.19.0", "babel-jest": "^23.0.1", "babel-loader": "^8.0.6", diff --git a/webpack.config.dist.js b/webpack.config.dist.js index f5e5b48e..52d02b71 100644 --- a/webpack.config.dist.js +++ b/webpack.config.dist.js @@ -12,6 +12,9 @@ module.exports = { libraryTarget:'var', library:'VueTables' }, + resolve:{ + extensions: [".js",".jsx"] + }, optimization: { minimize: env==='production' }, @@ -21,8 +24,9 @@ module.exports = { module: { rules: [ { - test: /\.js$/, + test: /\.jsx?$/, loader: 'babel-loader', + options: { plugins: ['transform-vue-jsx'] }, exclude: /node_modules/ } ]