From 700e9b25c6113d7c4a781f002b0768816f9147bb Mon Sep 17 00:00:00 2001 From: noogen Date: Fri, 4 Mar 2022 19:21:01 -0600 Subject: [PATCH] use vite to compile --- .eslintrc.js | 3 +- .gitignore | 1 - dist/index.es.js | 750 + dist/index.es.js.map | 1 + dist/index.js | 3 - dist/index.js.LICENSE.txt | 8 - dist/index.js.map | 1 - dist/index.umd.js | 756 + dist/index.umd.js.map | 1 + dist/mix-manifest.json | 3 - example/Example.vue | 7 +- example/example.ts | 5 +- example/index.js | 14634 +++++----- example/index.js.map | 2 +- example/mix-manifest.json | 2 +- index.html | 4 +- package-lock.json | 52286 +++++++++++------------------------- package.json | 49 +- vite.config.ts | 52 + webpack.mix.js | 61 +- 20 files changed, 25797 insertions(+), 42832 deletions(-) create mode 100644 dist/index.es.js create mode 100644 dist/index.es.js.map delete mode 100644 dist/index.js delete mode 100644 dist/index.js.LICENSE.txt delete mode 100644 dist/index.js.map create mode 100644 dist/index.umd.js create mode 100644 dist/index.umd.js.map delete mode 100644 dist/mix-manifest.json create mode 100644 vite.config.ts diff --git a/.eslintrc.js b/.eslintrc.js index 27511fa..87227fa 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -40,5 +40,6 @@ module.exports = { "default": "v-slot", "named": "longform", }] - } + }, + ignorePatterns: ['dist/*'] }; diff --git a/.gitignore b/.gitignore index ce4e646..ded8cc3 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,6 @@ log.txt # Compiled output # ################### -/dist /tmp /build diff --git a/dist/index.es.js b/dist/index.es.js new file mode 100644 index 0000000..4e42d48 --- /dev/null +++ b/dist/index.es.js @@ -0,0 +1,750 @@ +(function(){ try {var elementStyle = document.createElement('style'); elementStyle.innerText = `.select-checkbox, .select-all-checkbox { + cursor: pointer; +} +.vdtnet-footer .dataTables_length { + padding-top: 6px; + padding-right: 10px; +} +.vdtnet-footer .dataTables_length, .vdtnet-footer .dataTables_paginate { + float: right; +} +.hide-footer .vdtnet-footer { + display: none; +} +.master .details-plus +{ + cursor: pointer; + display: none; +} +.details-minus +{ + cursor: pointer; + display: none; +} +.master .details-minus +{ + cursor: pointer; + display: inline; +} +.details-control { + cursor: pointer; + font-weight: 700; +}`; document.head.appendChild(elementStyle);} catch(e) {console.error(e, 'vite-plugin-css-injected-by-js: error when trying to add the style.');} })();import { openBlock, createElementBlock, normalizeClass, setBlockTracking, createElementVNode, Fragment, renderList, renderSlot, createCommentVNode, defineComponent, createApp, h } from 'vue'; + +var VdtnetTable_vue_vue_type_style_index_0_lang = ''; + +var _export_sfc = (sfc, props) => { + const target = sfc.__vccOpts || sfc; + for (const [key, val] of props) { + target[key] = val; + } + return target; +}; + +let myUniqueId = 1; + +const _sfc_main = { + name: 'VdtnetTable', + props: { + /** + * The table id + * + * @type String + */ + id: { + type: String, + default: null + }, + /** + * Set the container classes. + * + * @type String + */ + containerClassName: { + type: String, + default: 'table-responsive d-print-inline' + }, + /** + * Set the input column search classes. + * + * @type String + */ + columnSearchClassName: { + type: String, + default: 'form-control form-control-sm' + }, + /** + * Set the tfoot classes. + * + * @type String + */ + tfootClassName: { + type: String, + }, + /** + * Set the thead classes. + * + * @type String + */ + theadClassName: { + type: String, + }, + /** + * Set the table classes you wish to use, default with bootstrap5 + * but you can override with: themeforest, foundation, etc.. + * + * @type String + */ + className: { + type: String, + default: 'table table-striped table-bordered nowrap w-100' + }, + /** + * the options object: https://datatables.net/manual/options + * + * @type Object + */ + opts: { + type: Object + }, + /** + * List all fields to be converted to opts columns + * + * @type Object + */ + fields: { + type: Object + }, + /** + * Pass in DataTables.Net jQuery to resolve any conflict from + * multiple jQuery loaded in the browser + * + * @type Function + */ + jquery: { + type: Function + }, + /** + * The select-checkbox column index (start at 1) + * Current implementation require datatables.net-select + * + * @type Number + */ + selectCheckbox: { + type: Number, + default: -1 + }, + /** + * Provide custom local data loading. Warning: this option has not been + * thoroughly tested. Please use ajax and serverSide instead. + * + * @type Function + */ + dataLoader: { + type: Function + }, + /** + * true to hide the footer of the table + * + * @type Boolean + */ + hideFooter: { + type: Boolean + }, + /** + * true to hide the tfoot of the table + * + * @type Boolean + */ + hideTfoot: { + type: Boolean, + default: true + }, + /** + * true to hide the individual column search of the table + * + * @type Boolean + */ + columnSearch: { + type: Boolean, + default: false + }, + /** + * The details column configuration of master/details. + * + * @type {Object} + */ + details: { + type: Object + } + }, + data() { + // initialize defaults + return { + tableId: null, + options: { +/*eslint-disable */ + dom: "tr<'row vdtnet-footer'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'pl>>", +/*eslint-enable */ + columns: [], + language: { + infoFiltered: '' + }, + lengthMenu: [ [15, 100, 500, 1000, -1], [15, 100, 500, 1000, 'All'] ], + pageLength: 15, + buttons: [] // remove any button defaults + }, + dataTable: null, + vdtnet: this + } + }, + computed: { + jq() { + return this.jquery || window.jQuery + }, + classes() { + const that = this; + let classes = `${that.containerClassName} vdtnet-container`; + if (this.hideFooter) { + classes += ' hide-footer'; + } + + return classes + } + }, + created() { + const that = this; + const jq = that.jq; + + let startCol = 0; + let icol = 0; + + that.tableId = that.id || `vdtnetable${myUniqueId++}`; + + // allow user to override default options + if (that.opts) { + that.options = jq.extend({}, that.options, that.opts); + } + + that.options.order = that.options.order || [[startCol, 'asc']]; + + if (that.fields) { + const fields = that.fields; + let cols = that.options.columns; + let orders = that.options.order; + + for (let k in fields) { + const field = fields[k]; + field.name = field.name || k; + + // disable search and sort for local field + if (field.isLocal) { + field.searchable = false; + field.sortable = false; + } + + // generate + let col = { + label: field.label || field.name, + data: field.data || field.name, + width: field.width, + name: field.name, + className: field.className, + index: field.index || (icol + 1) + }; + + if (field.hasOwnProperty('defaultContent')) { + col.defaultContent = field.defaultContent; + } + + if (field.hasOwnProperty('sortable')) { + col.orderable = field.sortable; + } + + if (field.hasOwnProperty('visible')) { + col.visible = field.visible; + } + + if (field.hasOwnProperty('searchable')) { + col.searchable = field.searchable; + } + + if (field.hasOwnProperty('editField')) { + col.editField = field.editField; + } + + if (field.hasOwnProperty('classHeaderName')) { + col.classHeaderName = field.classHeaderName; + } + + if (field.hasOwnProperty('classFooterName')) { + col.classFooterName = field.classFooterName; + } + + if (field.template) { + col.template = field.template; + } + + if (field.render) { + col.render = field.render; + } + + // console.log(col) + cols.push(col); + + if (field.defaultOrder) { + orders.push([icol, field.defaultOrder]); + } + + icol++; + } + } + + if (that.selectCheckbox) { + + // create checkbox column + const col = { + orderable: false, + searchable: false, + name: '_select_checkbox', + className: 'select-checkbox d-print-none', + data: null, + defaultContent: '', + index: (that.selectCheckbox - 1) + }; + that.options.columns.splice(that.selectCheckbox - 1, 0, col); + + // console.log(that.options.columns) + that.options.select = that.options.select || { style: 'os', selector: 'td.select-checkbox' }; + + if (that.selectCheckbox === 1) { + startCol++; + } + } + + // handle master details + if (that.details) { + const detailsIndex = that.details.index || 1; + + // create details column + const col = { + orderable: false, + searchable: false, + name: '_details_control', + className: 'details-control d-print-none', + data: null, + defaultContent: that.details.icons || '+-', + index: (detailsIndex - 1) + }; + that.options.columns.splice(detailsIndex - 1, 0, col); + + if (detailsIndex === 1) { + startCol++; + } + } + + if (startCol > 0) { + if (that.options.order) { + that.options.order.forEach((v) => { + v[0] += startCol; + }); + } else { + that.options.order = [[startCol, 'asc']]; + } + } + }, + mounted() { + const that = this; + const jq = that.jq; + const $el = jq(that.$refs.table); + let cols = that.options.columns; + + for (let k in cols) { + const col = cols[k]; + + if (col.template || typeof that.$slots[col.name] === 'function') { + col.render = that.compileTemplate(col, that.$slots[col.name]); + } + + if (col.render) { + if (!col.render.templated) { + let myRender = col.render; + col.render = function() { + return myRender.apply(that, Array.prototype.slice.call(arguments)) + }; + } + } + } + + // handle local data loader + if (that.dataLoader) { + delete that.options.ajax; + that.options.serverSide = false; + } + + if (!that.hideFooter && that.columnSearch) { + that.options.initComplete = function () { + let api = this.api(); + let state = api.state.loaded(); + + api.columns().every(function () { + const that = this; + const colIdx = this.index(); + + if(state){ + let colSearch = state.columns[colIdx].search; + if (colSearch.search){ + jq('input', this.footer()).val(colSearch.search); + } + } + + jq('input', this.footer()).on('keyup change clear search', function () { + if (that.search() !== this.value) { + that.search(this.value).draw(); + } + }); + }); + }; + } + + // you can access and update the that.options and $el here before we create the DataTable + that.$emit('table-creating', that, $el); + + that.dataTable = $el.DataTable(that.options); + if (that.selectCheckbox) { + // handle select all checkbox + $el.on('click', 'th input.select-all-checkbox', (e) => { + if(jq(e.target).is(':checked')) { + that.dataTable.rows().select(); + } else { + that.dataTable.rows().deselect(); + } + }); + + // handle individual row select events + that.dataTable.on('select deselect', (e, dt, type, indexes) => { + const $input = $el.find('th input.select-all-checkbox'); + if (that.dataTable.rows({ + selected: true + }).count() !== that.dataTable.rows().count()) { + jq('th.select-checkbox').removeClass('selected'); + $input.attr('checked', false); + } else { + jq('th.select-checkbox').addClass('selected'); + $input.attr('checked', true); + } + + // type is select/deselect so event become row-select or row-deselect + that.$emit('row-' + e.type, { + dataTable: that.dataTable, + e: e, + dt: dt, + type: type, + indexes: indexes + }); + + // to get data, see const examples below + // const rows = event.dataTable.rows( event.indexes ) + // const data = rows.data() + }); + } + + $el.on('remove', () => { + if (that.dataTable) { + that.dataTable.destroy(true); + } + + that.dataTable = null; + }); + + // wire up edit, delete, and/or action buttons + $el.on('click', '[data-action]', (e) => { + e.preventDefault(); + e.stopPropagation(); + + let target = jq(e.currentTarget); + let action = target.attr('data-action'); + + // no action, simply exit + if (!action) { + return + } else { + let tr = target; + + // detect if action is inside a row + // get data from parent row/tr + if (target.prop('tagName') !== 'TR') { + tr = target.closest('tr'); + } + + if (tr) { + // if child row, get previous/parent row + if (tr.hasClass('master-details')) { + tr = tr.prev(); + } + + const row = that.dataTable.row(tr); + const data = row.data(); + that.$emit(action, data, row, tr, target); + } else { + // not a row click, must be other kind of action + // such as bulk, csv, pdf, etc... + that.$emit(action, null, null, null, target); + } + } + }); + + // handle master/details + if (that.details) { + // default to render function + let renderFunc = that.details.render; + + // must be string template + if (that.details.template || typeof that.$slots._details === 'function') { + renderFunc = that.compileTemplate(that.details, that.$slots._details); + } else if (renderFunc) { + renderFunc = function() { + return that.details.render.apply(that, Array.prototype.slice.call(arguments)) + }; + } + + // handle master/details + // Add event listener for opening and closing details + $el.on('click', 'td.details-control', (e) => { + e.preventDefault(); + e.stopPropagation(); + const target = jq(e.target); + let tr = target.closest('tr'); + + if (tr.hasClass('master-details')) { + tr = tr.prev(); + } + + const row = that.dataTable.row( tr ); + + if ( row.child.isShown() ) { + // This row is already open - close it + row.child.hide(); + tr.removeClass('master'); + } else { + // Open this row + const data = row.data(); + row.child( renderFunc(data, 'child', row, tr) ).show(); + tr.addClass('master').next().addClass('master-details'); + } + }); + } + + that.$emit('table-created', that); + + // finally, load data + if (that.dataLoader) { + that.reload(); + } + }, + methods: { + /** + * Vue.compile a template string and return the compiled function + * + * @param {Object} object with template property + * @param {Object} the slot + * @return {Function} the compiled template function + */ + compileTemplate(field, slot) { + const that = this; + that.jq; + + const renderFunc = (data, type, row, meta) => { + const myDynamicComponent = defineComponent({ + data() { + return { + data: data, + type: type, + row: row, + meta: meta, + vdtnet: that, + def: field, + comp: that.$parent + } + }, + template: `
${field.template || ''}
` + }); + + const tempApp = createApp({ + render() { + if (slot) { + return h('div', {}, [slot({ + data: data, + type: type, + row: row, + meta: meta, + vdtnet: that, + def: field, + comp: that.$parent + })]) + } + return h(myDynamicComponent, {}) + } + }); + const el = document.createElement('div'); + const mountedApp = tempApp.mount(el); + + return mountedApp.$el.outerHTML || '' + }; + + renderFunc.templated = true; + + return renderFunc + }, + /** + * Set table data array that was loaded from somewhere else + * This method allow for local setting of data; though, it + * is recommended to use ajax instead of this. + * + * @param {Array} data the array of data + * @return {Object} the component + */ + setTableData(data) { + const that = this; + if (data.constructor === Array) { + that.dataTable.clear().rows.add(data); + that.dataTable.draw(false); + that.dataTable.columns.adjust(); + } + return that + }, + /** + * pass through reload method + * + * @param {Boolean} resetPaging true to reset current page position + * @return {Object} the component + */ + reload(resetPaging = false) { + const that = this; + if (that.dataLoader) { + // manual data loading + that.dataLoader((data) => { + if (data && !data.data) { + data = { data: data }; + } + that.setTableData( data.data ); + + that.$emit('reloaded', data, that); + }); + } else { + that.dataTable.ajax.reload( (data) => { that.$emit('reloaded', data, that); } , resetPaging ); + } + + return that + }, + search(value) { + const that = this; + that.dataTable.search( value ).draw(); + + return that + }, + setPageLength(value) { + const that = this; + that.dataTable.page.len( value ); + + return that.reload() + }, + getServerParams() { + if (this.dataLoader) { + return {} + } + + return this.dataTable.ajax.params() + } + } +}; + +const _hoisted_1 = { + key: 0, + type: "checkbox", + class: "select-all-checkbox d-print-none" +}; +const _hoisted_2 = ["innerHTML"]; +const _hoisted_3 = ["placeholder"]; +const _hoisted_4 = ["innerHTML"]; + +function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { + return (openBlock(), createElementBlock("div", { + class: normalizeClass($options.classes) + }, [ + _cache[0] || ( + setBlockTracking(-1), + _cache[0] = createElementVNode("table", { + id: $data.tableId, + ref: "table", + class: normalizeClass($props.className), + cellpadding: "0" + }, [ + createElementVNode("thead", { + class: normalizeClass($props.theadClassName) + }, [ + createElementVNode("tr", null, [ + (openBlock(true), createElementBlock(Fragment, null, renderList($data.options.columns, (field, i) => { + return (openBlock(), createElementBlock("th", { + key: 'head_'+i, + class: normalizeClass(field.classHeaderName) + }, [ + renderSlot(_ctx.$slots, 'HEAD_'+field.name, { + field: field, + i: i + }, () => [ + (field.name === '_select_checkbox') + ? (openBlock(), createElementBlock("input", _hoisted_1)) + : (openBlock(), createElementBlock("div", { + key: 1, + innerHTML: field.label + }, null, 8, _hoisted_2)) + ]) + ], 2)) + }), 128)) + ]) + ], 2), + (!$props.hideTfoot) + ? (openBlock(), createElementBlock("tfoot", { + key: 0, + class: normalizeClass($props.tfootClassName) + }, [ + createElementVNode("tr", null, [ + (openBlock(true), createElementBlock(Fragment, null, renderList($data.options.columns, (field, i) => { + return (openBlock(), createElementBlock("th", { + key: 'foot_'+i, + class: normalizeClass(field.classFooterName) + }, [ + renderSlot(_ctx.$slots, 'FOOT_'+field.name, { + field: field, + i: i + }, () => [ + ($props.columnSearch && (field.searchable || typeof field.searchable === 'undefined')) + ? (openBlock(), createElementBlock("input", { + key: 0, + placeholder: field.label, + class: normalizeClass($props.columnSearchClassName), + type: "search" + }, null, 10, _hoisted_3)) + : (!$props.columnSearch) + ? (openBlock(), createElementBlock("div", { + key: 1, + innerHTML: field.label + }, null, 8, _hoisted_4)) + : createCommentVNode("", true) + ]) + ], 2)) + }), 128)) + ]) + ], 2)) + : createCommentVNode("", true) + ], 10, ["id"]), + setBlockTracking(1), + _cache[0] + ) + ], 2)) +} +var VdtnetTable = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render]]); + +export { VdtnetTable as default }; +//# sourceMappingURL=index.es.js.map diff --git a/dist/index.es.js.map b/dist/index.es.js.map new file mode 100644 index 0000000..65e2501 --- /dev/null +++ b/dist/index.es.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.es.js","sources":["../plugin-vue:export-helper","../src/VdtnetTable.vue"],"sourcesContent":null,"names":["_createElementBlock","_createElementVNode","_openBlock","_Fragment","_normalizeClass","_renderSlot"],"mappings":";;;;AACA,kBAAe,CAAC,GAAG,EAAE,KAAK,KAAK;AAC/B,EAAE,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,IAAI,GAAG,CAAC;AACtC,EAAE,KAAK,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,KAAK,EAAE;AAClC,IAAI,MAAM,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;AACtB,GAAG;AACH,EAAE,OAAO,MAAM,CAAC;AAChB;;ACmEA,IAAI,UAAS,GAAI,EAAA;;AAEjB,MAAK,SAAU,GAAA;AACb,EAAA,IAAI,EAAE,aAAa;AACnB,EAAA,KAAK,EAAE;AACL;;AAEC;;;AAGD,IAAA,EAAE,EAAE;MACF,IAAI,EAAE,MAAM;MACZ,OAAO,EAAE,IAAG;KACb;AACD;;AAEC;;;AAGD,IAAA,kBAAkB,EAAE;MACl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,IAAI,EAAA;AACxB,sBAAA,KAAK,EAAE,KAAK;AACZ,sBAAA,CAAC,EAAE,CAAC;uBAHP,MAeO;AATG,sBAAA,CAAA,MAAA,CAAA,YAAY,KAAK,KAAK,CAAC,UAAU,IAAW,OAAA,KAAK,CAAC,UAAU,KAAA,WAAA,CAAA;wCADpEL,kBAKC,CAAA,OAAA,EAAA;;4BAHE,WAAW,EAAE,KAAK,CAAC,KAAK;AACxB,4BAAA,KAAK,iBAAE,MAAqB,CAAA,qBAAA,CAAA;AAC7B,4BAAA,IAAI,EAAC,QAAQ;;4BAGD,MAAY,CAAA,YAAA;0CAD1BA,kBAGE,CAAA,KAAA,EAAA;;8BADA,SAAoB,EAAZ,KAAK,CAAC,KAAK;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js deleted file mode 100644 index 402ea65..0000000 --- a/dist/index.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see index.js.LICENSE.txt */ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("Vue")):"function"==typeof define&&define.amd?define("VdtnetTable",["Vue"],e):"object"==typeof exports?exports.VdtnetTable=e(require("Vue")):t.VdtnetTable=e(t.Vue)}(self,(function(t){return function(){var e={1484:function(t,e,n){"use strict";Object.defineProperty(e,"X",{value:!0}),e.Z=void 0,n(9653),n(8309),n(561),n(1539),n(4747),n(7042),n(4916),n(4765),n(9826);var r=n(2740),o=1,a={name:"VdtnetTable",props:{id:{type:String,default:null},containerClassName:{type:String,default:"table-responsive d-print-inline"},columnSearchClassName:{type:String,default:"form-control form-control-sm"},tfootClassName:{type:String},theadClassName:{type:String},className:{type:String,default:"table table-striped table-bordered nowrap w-100"},opts:{type:Object},fields:{type:Object},jquery:{type:Function},selectCheckbox:{type:Number,default:-1},dataLoader:{type:Function},hideFooter:{type:Boolean},hideTfoot:{type:Boolean,default:!0},columnSearch:{type:Boolean,default:!1},details:{type:Object}},data:function(){return{tableId:null,options:{dom:"tr<'row vdtnet-footer'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'pl>>",columns:[],language:{infoFiltered:""},lengthMenu:[[15,100,500,1e3,-1],[15,100,500,1e3,"All"]],pageLength:15,buttons:[]},dataTable:null,vdtnet:this}},computed:{jq:function(){return this.jquery||window.jQuery},classes:function(){var t="".concat(this.containerClassName," vdtnet-container");return this.hideFooter&&(t+=" hide-footer"),t}},created:function(){var t=this,e=t.jq,n=0,r=0;if(t.tableId=t.id||"vdtnetable".concat(o++),t.opts&&(t.options=e.extend({},t.options,t.opts)),t.options.order=t.options.order||[[n,"asc"]],t.fields){var a=t.fields,i=t.options.columns,c=t.options.order;for(var u in a){var s=a[u];s.name=s.name||u,s.isLocal&&(s.searchable=!1,s.sortable=!1);var l={label:s.label||s.name,data:s.data||s.name,width:s.width,name:s.name,className:s.className,index:s.index||r+1};s.hasOwnProperty("defaultContent")&&(l.defaultContent=s.defaultContent),s.hasOwnProperty("sortable")&&(l.orderable=s.sortable),s.hasOwnProperty("visible")&&(l.visible=s.visible),s.hasOwnProperty("searchable")&&(l.searchable=s.searchable),s.hasOwnProperty("editField")&&(l.editField=s.editField),s.hasOwnProperty("classHeaderName")&&(l.classHeaderName=s.classHeaderName),s.hasOwnProperty("classFooterName")&&(l.classFooterName=s.classFooterName),s.template&&(l.template=s.template),s.render&&(l.render=s.render),i.push(l),s.defaultOrder&&c.push([r,s.defaultOrder]),r++}}if(t.selectCheckbox){var f={orderable:!1,searchable:!1,name:"_select_checkbox",className:"select-checkbox d-print-none",data:null,defaultContent:"",index:t.selectCheckbox-1};t.options.columns.splice(t.selectCheckbox-1,0,f),t.options.select=t.options.select||{style:"os",selector:"td.select-checkbox"},1===t.selectCheckbox&&n++}if(t.details){var p=t.details.index||1,d={orderable:!1,searchable:!1,name:"_details_control",className:"details-control d-print-none",data:null,defaultContent:t.details.icons||'+-',index:p-1};t.options.columns.splice(p-1,0,d),1===p&&n++}n>0&&(t.options.order?t.options.order.forEach((function(t){t[0]+=n})):t.options.order=[[n,"asc"]])},mounted:function(){var t=this,e=t.jq,n=e(t.$refs.table),r=t.options.columns;for(var o in r){var a=r[o];(a.template||"function"==typeof t.$slots[a.name])&&(a.render=t.compileTemplate(a,t.$slots[a.name])),a.render&&(a.render.templated||function(){var e=a.render;a.render=function(){return e.apply(t,Array.prototype.slice.call(arguments))}}())}if(t.dataLoader&&(delete t.options.ajax,t.options.serverSide=!1),!t.hideFooter&&t.columnSearch&&(t.options.initComplete=function(){var t=this.api(),n=t.state.loaded();t.columns().every((function(){var t=this,r=this.index();if(n){var o=n.columns[r].search;o.search&&e("input",this.footer()).val(o.search)}e("input",this.footer()).on("keyup change clear search",(function(){t.search()!==this.value&&t.search(this.value).draw()}))}))}),t.$emit("table-creating",t,n),t.dataTable=n.DataTable(t.options),t.selectCheckbox&&(n.on("click","th input.select-all-checkbox",(function(n){e(n.target).is(":checked")?t.dataTable.rows().select():t.dataTable.rows().deselect()})),t.dataTable.on("select deselect",(function(r,o,a,i){var c=n.find("th input.select-all-checkbox");t.dataTable.rows({selected:!0}).count()!==t.dataTable.rows().count()?(e("th.select-checkbox").removeClass("selected"),c.attr("checked",!1)):(e("th.select-checkbox").addClass("selected"),c.attr("checked",!0)),t.$emit("row-"+r.type,{dataTable:t.dataTable,e:r,dt:o,type:a,indexes:i})}))),n.on("remove",(function(){t.dataTable&&t.dataTable.destroy(!0),t.dataTable=null})),n.on("click","[data-action]",(function(n){n.preventDefault(),n.stopPropagation();var r=e(n.currentTarget),o=r.attr("data-action");if(o){var a=r;if("TR"!==r.prop("tagName")&&(a=r.closest("tr")),a){a.hasClass("master-details")&&(a=a.prev());var i=t.dataTable.row(a),c=i.data();t.$emit(o,c,i,a,r)}else t.$emit(o,null,null,null,r)}})),t.details){var i=t.details.render;t.details.template||"function"==typeof t.$slots._details?i=t.compileTemplate(t.details,t.$slots._details):i&&(i=function(){return t.details.render.apply(t,Array.prototype.slice.call(arguments))}),n.on("click","td.details-control",(function(n){n.preventDefault(),n.stopPropagation();var r=e(n.target).closest("tr");r.hasClass("master-details")&&(r=r.prev());var o=t.dataTable.row(r);if(o.child.isShown())o.child.hide(),r.removeClass("master");else{var a=o.data();o.child(i(a,"child",o,r)).show(),r.addClass("master").next().addClass("master-details")}}))}t.$emit("table-created",t),t.dataLoader&&t.reload()},methods:{compileTemplate:function(t,e){var n=this,o=(n.jq,function(o,a,i,c){var u=(0,r.defineComponent)({data:function(){return{data:o,type:a,row:i,meta:c,vdtnet:n,def:t,comp:n.$parent}},template:"
".concat(t.template||"","
")}),s=(0,r.createApp)({render:function(){return e?(0,r.h)("div",{},[e({data:o,type:a,row:i,meta:c,vdtnet:n,def:t,comp:n.$parent})]):(0,r.h)(u,{})}}),l=document.createElement("div");return s.mount(l).$el.outerHTML||""});return o.templated=!0,o},setTableData:function(t){var e=this;return t.constructor===Array&&(e.dataTable.clear().rows.add(t),e.dataTable.draw(!1),e.dataTable.columns.adjust()),e},reload:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this;return e.dataLoader?e.dataLoader((function(t){t&&!t.data&&(t={data:t}),e.setTableData(t.data),e.$emit("reloaded",t,e)})):e.dataTable.ajax.reload((function(t){e.$emit("reloaded",t,e)}),t),e},search:function(t){return this.dataTable.search(t).draw(),this},setPageLength:function(t){return this.dataTable.page.len(t),this.reload()},getServerParams:function(){return this.dataLoader?{}:this.dataTable.ajax.params()}}};e.Z=a},7757:function(t,e,n){"use strict";e.s=function(t,e,n,u,s,l){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(l.classes)},[e[0]||((0,r.setBlockTracking)(-1),e[0]=(0,r.createElementVNode)("table",{id:s.tableId,ref:"table",class:(0,r.normalizeClass)(n.className),cellpadding:"0"},[(0,r.createElementVNode)("thead",{class:(0,r.normalizeClass)(n.theadClassName)},[(0,r.createElementVNode)("tr",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(s.options.columns,(function(e,n){return(0,r.openBlock)(),(0,r.createElementBlock)("th",{key:"head_"+n,class:(0,r.normalizeClass)(e.classHeaderName)},[(0,r.renderSlot)(t.$slots,"HEAD_"+e.name,{field:e,i:n},(function(){return["_select_checkbox"===e.name?((0,r.openBlock)(),(0,r.createElementBlock)("input",o)):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:1,innerHTML:e.label},null,8,a))]}))],2)})),128))])],2),n.hideTfoot?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("tfoot",{key:0,class:(0,r.normalizeClass)(n.tfootClassName)},[(0,r.createElementVNode)("tr",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(s.options.columns,(function(e,o){return(0,r.openBlock)(),(0,r.createElementBlock)("th",{key:"foot_"+o,class:(0,r.normalizeClass)(e.classFooterName)},[(0,r.renderSlot)(t.$slots,"FOOT_"+e.name,{field:e,i:o},(function(){return[n.columnSearch&&(e.searchable||void 0===e.searchable)?((0,r.openBlock)(),(0,r.createElementBlock)("input",{key:0,placeholder:e.label,class:(0,r.normalizeClass)(n.columnSearchClassName),type:"search"},null,10,i)):n.columnSearch?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:1,innerHTML:e.label},null,8,c))]}))],2)})),128))])],2))],10,["id"]),(0,r.setBlockTracking)(1),e[0])],2)},n(8309);var r=n(2740),o={key:0,type:"checkbox",class:"select-all-checkbox d-print-none"},a=["innerHTML"],i=["placeholder"],c=["innerHTML"]},9662:function(t,e,n){var r=n(7854),o=n(614),a=n(6330),i=r.TypeError;t.exports=function(t){if(o(t))return t;throw i(a(t)+" is not a function")}},6077:function(t,e,n){var r=n(7854),o=n(614),a=r.String,i=r.TypeError;t.exports=function(t){if("object"==typeof t||o(t))return t;throw i("Can't set "+a(t)+" as a prototype")}},1223:function(t,e,n){var r=n(5112),o=n(30),a=n(3070),i=r("unscopables"),c=Array.prototype;null==c[i]&&a.f(c,i,{configurable:!0,value:o(null)}),t.exports=function(t){c[i][t]=!0}},9670:function(t,e,n){var r=n(7854),o=n(111),a=r.String,i=r.TypeError;t.exports=function(t){if(o(t))return t;throw i(a(t)+" is not an object")}},8533:function(t,e,n){"use strict";var r=n(2092).forEach,o=n(9341)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},1318:function(t,e,n){var r=n(5656),o=n(1400),a=n(6244),i=function(t){return function(e,n,i){var c,u=r(e),s=a(u),l=o(i,s);if(t&&n!=n){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:i(!0),indexOf:i(!1)}},2092:function(t,e,n){var r=n(9974),o=n(1702),a=n(8361),i=n(7908),c=n(6244),u=n(5417),s=o([].push),l=function(t){var e=1==t,n=2==t,o=3==t,l=4==t,f=6==t,p=7==t,d=5==t||f;return function(v,h,m,b){for(var y,g,x=i(v),S=a(x),w=r(h,m),T=c(S),O=0,E=b||u,j=e?E(v,T):n||p?E(v,0):void 0;T>O;O++)if((d||O in S)&&(g=w(y=S[O],O,x),t))if(e)j[O]=g;else if(g)switch(t){case 3:return!0;case 5:return y;case 6:return O;case 2:s(j,y)}else switch(t){case 4:return!1;case 7:s(j,y)}return f?-1:o||l?l:j}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},1194:function(t,e,n){var r=n(7293),o=n(5112),a=n(7392),i=o("species");t.exports=function(t){return a>=51||!r((function(){var e=[];return(e.constructor={})[i]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:function(t,e,n){"use strict";var r=n(7293);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},206:function(t,e,n){var r=n(1702);t.exports=r([].slice)},7475:function(t,e,n){var r=n(7854),o=n(3157),a=n(4411),i=n(111),c=n(5112)("species"),u=r.Array;t.exports=function(t){var e;return o(t)&&(e=t.constructor,(a(e)&&(e===u||o(e.prototype))||i(e)&&null===(e=e[c]))&&(e=void 0)),void 0===e?u:e}},5417:function(t,e,n){var r=n(7475);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},4326:function(t,e,n){var r=n(1702),o=r({}.toString),a=r("".slice);t.exports=function(t){return a(o(t),8,-1)}},648:function(t,e,n){var r=n(7854),o=n(1694),a=n(614),i=n(4326),c=n(5112)("toStringTag"),u=r.Object,s="Arguments"==i(function(){return arguments}());t.exports=o?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=u(t),c))?n:s?i(e):"Object"==(r=i(e))&&a(e.callee)?"Arguments":r}},9920:function(t,e,n){var r=n(2597),o=n(3887),a=n(1236),i=n(3070);t.exports=function(t,e,n){for(var c=o(e),u=i.f,s=a.f,l=0;l0&&r[0]<4?1:+(r[0]+r[1])),!o&&i&&(!(r=i.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,n){var r=n(7854),o=n(1236).f,a=n(8880),i=n(1320),c=n(3505),u=n(9920),s=n(4705);t.exports=function(t,e){var n,l,f,p,d,v=t.target,h=t.global,m=t.stat;if(n=h?r:m?r[v]||c(v,{}):(r[v]||{}).prototype)for(l in e){if(p=e[l],f=t.noTargetGet?(d=o(n,l))&&d.value:n[l],!s(h?l:v+(m?".":"#")+l,t.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(t.sham||f&&f.sham)&&a(p,"sham",!0),i(n,l,p,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:function(t,e,n){"use strict";n(4916);var r=n(1702),o=n(1320),a=n(2261),i=n(7293),c=n(5112),u=n(8880),s=c("species"),l=RegExp.prototype;t.exports=function(t,e,n,f){var p=c(t),d=!i((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),v=d&&!i((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[s]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return e=!0,null},n[p](""),!e}));if(!d||!v||n){var h=r(/./[p]),m=e(p,""[t],(function(t,e,n,o,i){var c=r(t),u=e.exec;return u===a||u===l.exec?d&&!i?{done:!0,value:h(e,n,o)}:{done:!0,value:c(n,e,o)}:{done:!1}}));o(String.prototype,t,m[0]),o(l,p,m[1])}f&&u(l[p],"sham",!0)}},9974:function(t,e,n){var r=n(1702),o=n(9662),a=n(4374),i=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:a?i(t,e):function(){return t.apply(e,arguments)}}},4374:function(t,e,n){var r=n(7293);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,n){var r=n(4374),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},6530:function(t,e,n){var r=n(9781),o=n(2597),a=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,c=o(a,"name"),u=c&&"something"===function(){}.name,s=c&&(!r||r&&i(a,"name").configurable);t.exports={EXISTS:c,PROPER:u,CONFIGURABLE:s}},1702:function(t,e,n){var r=n(4374),o=Function.prototype,a=o.bind,i=o.call,c=r&&a.bind(i,i);t.exports=r?function(t){return t&&c(t)}:function(t){return t&&function(){return i.apply(t,arguments)}}},5005:function(t,e,n){var r=n(7854),o=n(614),a=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(r[t]):r[t]&&r[t][e]}},8173:function(t,e,n){var r=n(9662);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},7854:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(t,e,n){var r=n(1702),o=n(7908),a=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return a(o(t),e)}},3501:function(t){t.exports={}},490:function(t,e,n){var r=n(5005);t.exports=r("document","documentElement")},4664:function(t,e,n){var r=n(9781),o=n(7293),a=n(317);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){var r=n(7854),o=n(1702),a=n(7293),i=n(4326),c=r.Object,u=o("".split);t.exports=a((function(){return!c("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?u(t,""):c(t)}:c},9587:function(t,e,n){var r=n(614),o=n(111),a=n(7674);t.exports=function(t,e,n){var i,c;return a&&r(i=e.constructor)&&i!==n&&o(c=i.prototype)&&c!==n.prototype&&a(t,c),t}},2788:function(t,e,n){var r=n(1702),o=n(614),a=n(5465),i=r(Function.toString);o(a.inspectSource)||(a.inspectSource=function(t){return i(t)}),t.exports=a.inspectSource},9909:function(t,e,n){var r,o,a,i=n(8536),c=n(7854),u=n(1702),s=n(111),l=n(8880),f=n(2597),p=n(5465),d=n(6200),v=n(3501),h="Object already initialized",m=c.TypeError,b=c.WeakMap;if(i||p.state){var y=p.state||(p.state=new b),g=u(y.get),x=u(y.has),S=u(y.set);r=function(t,e){if(x(y,t))throw new m(h);return e.facade=t,S(y,t,e),e},o=function(t){return g(y,t)||{}},a=function(t){return x(y,t)}}else{var w=d("state");v[w]=!0,r=function(t,e){if(f(t,w))throw new m(h);return e.facade=t,l(t,w,e),e},o=function(t){return f(t,w)?t[w]:{}},a=function(t){return f(t,w)}}t.exports={set:r,get:o,has:a,enforce:function(t){return a(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!s(e)||(n=o(e)).type!==t)throw m("Incompatible receiver, "+t+" required");return n}}}},3157:function(t,e,n){var r=n(4326);t.exports=Array.isArray||function(t){return"Array"==r(t)}},614:function(t){t.exports=function(t){return"function"==typeof t}},4411:function(t,e,n){var r=n(1702),o=n(7293),a=n(614),i=n(648),c=n(5005),u=n(2788),s=function(){},l=[],f=c("Reflect","construct"),p=/^\s*(?:class|function)\b/,d=r(p.exec),v=!p.exec(s),h=function(t){if(!a(t))return!1;try{return f(s,l,t),!0}catch(t){return!1}},m=function(t){if(!a(t))return!1;switch(i(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return v||!!d(p,u(t))}catch(t){return!0}};m.sham=!0,t.exports=!f||o((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?m:h},4705:function(t,e,n){var r=n(7293),o=n(614),a=/#|\.prototype\./,i=function(t,e){var n=u[c(t)];return n==l||n!=s&&(o(e)?r(e):!!e)},c=i.normalize=function(t){return String(t).replace(a,".").toLowerCase()},u=i.data={},s=i.NATIVE="N",l=i.POLYFILL="P";t.exports=i},111:function(t,e,n){var r=n(614);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},1913:function(t){t.exports=!1},2190:function(t,e,n){var r=n(7854),o=n(5005),a=n(614),i=n(7976),c=n(3307),u=r.Object;t.exports=c?function(t){return"symbol"==typeof t}:function(t){var e=o("Symbol");return a(e)&&i(e.prototype,u(t))}},6244:function(t,e,n){var r=n(7466);t.exports=function(t){return r(t.length)}},133:function(t,e,n){var r=n(7392),o=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:function(t,e,n){var r=n(7854),o=n(614),a=n(2788),i=r.WeakMap;t.exports=o(i)&&/native code/.test(a(i))},30:function(t,e,n){var r,o=n(9670),a=n(6048),i=n(748),c=n(3501),u=n(490),s=n(317),l=n(6200),f=l("IE_PROTO"),p=function(){},d=function(t){return"