mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
上传项目代码
This commit is contained in:
@@ -0,0 +1,120 @@
|
||||
/*! DataTables Bootstrap 3 integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
|
||||
(function( factory ){
|
||||
if ( typeof define === 'function' && define.amd ) {
|
||||
// AMD
|
||||
define( ['jquery', 'datatables.net'], function ( $ ) {
|
||||
return factory( $, window, document );
|
||||
} );
|
||||
}
|
||||
else if ( typeof exports === 'object' ) {
|
||||
// CommonJS
|
||||
var jq = require('jquery');
|
||||
var cjsRequires = function (root, $) {
|
||||
if ( ! $.fn.dataTable ) {
|
||||
require('datatables.net')(root, $);
|
||||
}
|
||||
};
|
||||
|
||||
if (typeof window === 'undefined') {
|
||||
module.exports = function (root, $) {
|
||||
if ( ! root ) {
|
||||
// CommonJS environments without a window global must pass a
|
||||
// root. This will give an error otherwise
|
||||
root = window;
|
||||
}
|
||||
|
||||
if ( ! $ ) {
|
||||
$ = jq( root );
|
||||
}
|
||||
|
||||
cjsRequires( root, $ );
|
||||
return factory( $, root, root.document );
|
||||
};
|
||||
}
|
||||
else {
|
||||
cjsRequires( window, jq );
|
||||
module.exports = factory( jq, window, window.document );
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Browser
|
||||
factory( jQuery, window, document );
|
||||
}
|
||||
}(function( $, window, document ) {
|
||||
'use strict';
|
||||
var DataTable = $.fn.dataTable;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* DataTables integration for Bootstrap 3.
|
||||
*
|
||||
* This file sets the defaults and adds options to DataTables to style its
|
||||
* controls using Bootstrap. See https://datatables.net/manual/styling/bootstrap
|
||||
* for further information.
|
||||
*/
|
||||
|
||||
/* Set the defaults for DataTables initialisation */
|
||||
$.extend( true, DataTable.defaults, {
|
||||
renderer: 'bootstrap'
|
||||
} );
|
||||
|
||||
|
||||
/* Default class modification */
|
||||
$.extend( true, DataTable.ext.classes, {
|
||||
container: "dt-container form-inline dt-bootstrap",
|
||||
search: {
|
||||
input: "form-control input-sm"
|
||||
},
|
||||
length: {
|
||||
select: "form-control input-sm"
|
||||
},
|
||||
processing: {
|
||||
container: "dt-processing panel panel-default"
|
||||
},
|
||||
layout: {
|
||||
row: 'row dt-layout-row',
|
||||
cell: 'dt-layout-cell',
|
||||
tableCell: 'col-12',
|
||||
start: 'dt-layout-start col-sm-6',
|
||||
end: 'dt-layout-end col-sm-6',
|
||||
full: 'dt-layout-full col-sm-12'
|
||||
}
|
||||
} );
|
||||
|
||||
/* Bootstrap paging button renderer */
|
||||
DataTable.ext.renderer.pagingButton.bootstrap = function (settings, buttonType, content, active, disabled) {
|
||||
var btnClasses = ['dt-paging-button', 'page-item'];
|
||||
|
||||
if (active) {
|
||||
btnClasses.push('active');
|
||||
}
|
||||
|
||||
if (disabled) {
|
||||
btnClasses.push('disabled')
|
||||
}
|
||||
|
||||
var li = $('<li>').addClass(btnClasses.join(' '));
|
||||
var a = $('<a>', {
|
||||
'href': disabled ? null : '#',
|
||||
'class': 'page-link'
|
||||
})
|
||||
.html(content)
|
||||
.appendTo(li);
|
||||
|
||||
return {
|
||||
display: li,
|
||||
clicker: a
|
||||
};
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.pagingContainer.bootstrap = function (settings, buttonEls) {
|
||||
return $('<ul/>').addClass('pagination').append(buttonEls);
|
||||
};
|
||||
|
||||
|
||||
return DataTable;
|
||||
}));
|
||||
4
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.bootstrap.min.js
vendored
Normal file
4
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.bootstrap.min.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/*! DataTables Bootstrap 3 integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
!function(n){var o,a;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(t){return n(t,window,document)}):"object"==typeof exports?(o=require("jquery"),a=function(t,e){e.fn.dataTable||require("datatables.net")(t,e)},"undefined"==typeof window?module.exports=function(t,e){return t=t||window,e=e||o(t),a(t,e),n(e,0,t.document)}:(a(window,o),module.exports=n(o,window,window.document))):n(jQuery,window,document)}(function(d,t,e){"use strict";var n=d.fn.dataTable;return d.extend(!0,n.defaults,{renderer:"bootstrap"}),d.extend(!0,n.ext.classes,{container:"dt-container form-inline dt-bootstrap",search:{input:"form-control input-sm"},length:{select:"form-control input-sm"},processing:{container:"dt-processing panel panel-default"},layout:{row:"row dt-layout-row",cell:"dt-layout-cell",tableCell:"col-12",start:"dt-layout-start col-sm-6",end:"dt-layout-end col-sm-6",full:"dt-layout-full col-sm-12"}}),n.ext.renderer.pagingButton.bootstrap=function(t,e,n,o,a){var r=["dt-paging-button","page-item"],o=(o&&r.push("active"),a&&r.push("disabled"),d("<li>").addClass(r.join(" ")));return{display:o,clicker:d("<a>",{href:a?null:"#",class:"page-link"}).html(n).appendTo(o)}},n.ext.renderer.pagingContainer.bootstrap=function(t,e){return d("<ul/>").addClass("pagination").append(e)},n});
|
||||
@@ -0,0 +1,4 @@
|
||||
/*! DataTables Bootstrap 3 integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;$.extend(!0,DataTable.defaults,{renderer:"bootstrap"}),$.extend(!0,DataTable.ext.classes,{container:"dt-container form-inline dt-bootstrap",search:{input:"form-control input-sm"},length:{select:"form-control input-sm"},processing:{container:"dt-processing panel panel-default"},layout:{row:"row dt-layout-row",cell:"dt-layout-cell",tableCell:"col-12",start:"dt-layout-start col-sm-6",end:"dt-layout-end col-sm-6",full:"dt-layout-full col-sm-12"}}),DataTable.ext.renderer.pagingButton.bootstrap=function(t,a,e,l,n){var o=["dt-paging-button","page-item"],l=(l&&o.push("active"),n&&o.push("disabled"),$("<li>").addClass(o.join(" ")));return{display:l,clicker:$("<a>",{href:n?null:"#",class:"page-link"}).html(e).appendTo(l)}},DataTable.ext.renderer.pagingContainer.bootstrap=function(t,a){return $("<ul/>").addClass("pagination").append(a)};export default DataTable;
|
||||
@@ -0,0 +1,79 @@
|
||||
/*! DataTables Bootstrap 3 integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
|
||||
import jQuery from 'jquery';
|
||||
import DataTable from 'datatables.net';
|
||||
|
||||
// Allow reassignment of the $ variable
|
||||
let $ = jQuery;
|
||||
|
||||
|
||||
/**
|
||||
* DataTables integration for Bootstrap 3.
|
||||
*
|
||||
* This file sets the defaults and adds options to DataTables to style its
|
||||
* controls using Bootstrap. See https://datatables.net/manual/styling/bootstrap
|
||||
* for further information.
|
||||
*/
|
||||
|
||||
/* Set the defaults for DataTables initialisation */
|
||||
$.extend( true, DataTable.defaults, {
|
||||
renderer: 'bootstrap'
|
||||
} );
|
||||
|
||||
|
||||
/* Default class modification */
|
||||
$.extend( true, DataTable.ext.classes, {
|
||||
container: "dt-container form-inline dt-bootstrap",
|
||||
search: {
|
||||
input: "form-control input-sm"
|
||||
},
|
||||
length: {
|
||||
select: "form-control input-sm"
|
||||
},
|
||||
processing: {
|
||||
container: "dt-processing panel panel-default"
|
||||
},
|
||||
layout: {
|
||||
row: 'row dt-layout-row',
|
||||
cell: 'dt-layout-cell',
|
||||
tableCell: 'col-12',
|
||||
start: 'dt-layout-start col-sm-6',
|
||||
end: 'dt-layout-end col-sm-6',
|
||||
full: 'dt-layout-full col-sm-12'
|
||||
}
|
||||
} );
|
||||
|
||||
/* Bootstrap paging button renderer */
|
||||
DataTable.ext.renderer.pagingButton.bootstrap = function (settings, buttonType, content, active, disabled) {
|
||||
var btnClasses = ['dt-paging-button', 'page-item'];
|
||||
|
||||
if (active) {
|
||||
btnClasses.push('active');
|
||||
}
|
||||
|
||||
if (disabled) {
|
||||
btnClasses.push('disabled')
|
||||
}
|
||||
|
||||
var li = $('<li>').addClass(btnClasses.join(' '));
|
||||
var a = $('<a>', {
|
||||
'href': disabled ? null : '#',
|
||||
'class': 'page-link'
|
||||
})
|
||||
.html(content)
|
||||
.appendTo(li);
|
||||
|
||||
return {
|
||||
display: li,
|
||||
clicker: a
|
||||
};
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.pagingContainer.bootstrap = function (settings, buttonEls) {
|
||||
return $('<ul/>').addClass('pagination').append(buttonEls);
|
||||
};
|
||||
|
||||
|
||||
export default DataTable;
|
||||
@@ -0,0 +1,121 @@
|
||||
/*! DataTables Bootstrap 4 integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
|
||||
(function( factory ){
|
||||
if ( typeof define === 'function' && define.amd ) {
|
||||
// AMD
|
||||
define( ['jquery', 'datatables.net'], function ( $ ) {
|
||||
return factory( $, window, document );
|
||||
} );
|
||||
}
|
||||
else if ( typeof exports === 'object' ) {
|
||||
// CommonJS
|
||||
var jq = require('jquery');
|
||||
var cjsRequires = function (root, $) {
|
||||
if ( ! $.fn.dataTable ) {
|
||||
require('datatables.net')(root, $);
|
||||
}
|
||||
};
|
||||
|
||||
if (typeof window === 'undefined') {
|
||||
module.exports = function (root, $) {
|
||||
if ( ! root ) {
|
||||
// CommonJS environments without a window global must pass a
|
||||
// root. This will give an error otherwise
|
||||
root = window;
|
||||
}
|
||||
|
||||
if ( ! $ ) {
|
||||
$ = jq( root );
|
||||
}
|
||||
|
||||
cjsRequires( root, $ );
|
||||
return factory( $, root, root.document );
|
||||
};
|
||||
}
|
||||
else {
|
||||
cjsRequires( window, jq );
|
||||
module.exports = factory( jq, window, window.document );
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Browser
|
||||
factory( jQuery, window, document );
|
||||
}
|
||||
}(function( $, window, document ) {
|
||||
'use strict';
|
||||
var DataTable = $.fn.dataTable;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* DataTables integration for Bootstrap 4.
|
||||
*
|
||||
* This file sets the defaults and adds options to DataTables to style its
|
||||
* controls using Bootstrap. See https://datatables.net/manual/styling/bootstrap
|
||||
* for further information.
|
||||
*/
|
||||
|
||||
/* Set the defaults for DataTables initialisation */
|
||||
$.extend( true, DataTable.defaults, {
|
||||
renderer: 'bootstrap'
|
||||
} );
|
||||
|
||||
|
||||
/* Default class modification */
|
||||
$.extend( true, DataTable.ext.classes, {
|
||||
container: "dt-container dt-bootstrap4",
|
||||
search: {
|
||||
input: "form-control form-control-sm"
|
||||
},
|
||||
length: {
|
||||
select: "custom-select custom-select-sm form-control form-control-sm"
|
||||
},
|
||||
processing: {
|
||||
container: "dt-processing card"
|
||||
},
|
||||
layout: {
|
||||
row: 'row justify-content-between',
|
||||
cell: 'd-md-flex justify-content-between align-items-center',
|
||||
tableCell: 'col-12',
|
||||
start: 'dt-layout-start col-md-auto mr-auto',
|
||||
end: 'dt-layout-end col-md-auto ml-auto',
|
||||
full: 'dt-layout-full col-md'
|
||||
}
|
||||
} );
|
||||
|
||||
|
||||
/* Bootstrap paging button renderer */
|
||||
DataTable.ext.renderer.pagingButton.bootstrap = function (settings, buttonType, content, active, disabled) {
|
||||
var btnClasses = ['dt-paging-button', 'page-item'];
|
||||
|
||||
if (active) {
|
||||
btnClasses.push('active');
|
||||
}
|
||||
|
||||
if (disabled) {
|
||||
btnClasses.push('disabled')
|
||||
}
|
||||
|
||||
var li = $('<li>').addClass(btnClasses.join(' '));
|
||||
var a = $('<a>', {
|
||||
'href': disabled ? null : '#',
|
||||
'class': 'page-link'
|
||||
})
|
||||
.html(content)
|
||||
.appendTo(li);
|
||||
|
||||
return {
|
||||
display: li,
|
||||
clicker: a
|
||||
};
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.pagingContainer.bootstrap = function (settings, buttonEls) {
|
||||
return $('<ul/>').addClass('pagination').append(buttonEls);
|
||||
};
|
||||
|
||||
|
||||
return DataTable;
|
||||
}));
|
||||
4
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.bootstrap4.min.js
vendored
Normal file
4
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.bootstrap4.min.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/*! DataTables Bootstrap 4 integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
!function(n){var o,r;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(t){return n(t,window,document)}):"object"==typeof exports?(o=require("jquery"),r=function(t,e){e.fn.dataTable||require("datatables.net")(t,e)},"undefined"==typeof window?module.exports=function(t,e){return t=t||window,e=e||o(t),r(t,e),n(e,0,t.document)}:(r(window,o),module.exports=n(o,window,window.document))):n(jQuery,window,document)}(function(d,t,e){"use strict";var n=d.fn.dataTable;return d.extend(!0,n.defaults,{renderer:"bootstrap"}),d.extend(!0,n.ext.classes,{container:"dt-container dt-bootstrap4",search:{input:"form-control form-control-sm"},length:{select:"custom-select custom-select-sm form-control form-control-sm"},processing:{container:"dt-processing card"},layout:{row:"row justify-content-between",cell:"d-md-flex justify-content-between align-items-center",tableCell:"col-12",start:"dt-layout-start col-md-auto mr-auto",end:"dt-layout-end col-md-auto ml-auto",full:"dt-layout-full col-md"}}),n.ext.renderer.pagingButton.bootstrap=function(t,e,n,o,r){var a=["dt-paging-button","page-item"],o=(o&&a.push("active"),r&&a.push("disabled"),d("<li>").addClass(a.join(" ")));return{display:o,clicker:d("<a>",{href:r?null:"#",class:"page-link"}).html(n).appendTo(o)}},n.ext.renderer.pagingContainer.bootstrap=function(t,e){return d("<ul/>").addClass("pagination").append(e)},n});
|
||||
@@ -0,0 +1,4 @@
|
||||
/*! DataTables Bootstrap 4 integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;$.extend(!0,DataTable.defaults,{renderer:"bootstrap"}),$.extend(!0,DataTable.ext.classes,{container:"dt-container dt-bootstrap4",search:{input:"form-control form-control-sm"},length:{select:"custom-select custom-select-sm form-control form-control-sm"},processing:{container:"dt-processing card"},layout:{row:"row justify-content-between",cell:"d-md-flex justify-content-between align-items-center",tableCell:"col-12",start:"dt-layout-start col-md-auto mr-auto",end:"dt-layout-end col-md-auto ml-auto",full:"dt-layout-full col-md"}}),DataTable.ext.renderer.pagingButton.bootstrap=function(t,e,a,o,l){var n=["dt-paging-button","page-item"],o=(o&&n.push("active"),l&&n.push("disabled"),$("<li>").addClass(n.join(" ")));return{display:o,clicker:$("<a>",{href:l?null:"#",class:"page-link"}).html(a).appendTo(o)}},DataTable.ext.renderer.pagingContainer.bootstrap=function(t,e){return $("<ul/>").addClass("pagination").append(e)};export default DataTable;
|
||||
@@ -0,0 +1,80 @@
|
||||
/*! DataTables Bootstrap 4 integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
|
||||
import jQuery from 'jquery';
|
||||
import DataTable from 'datatables.net';
|
||||
|
||||
// Allow reassignment of the $ variable
|
||||
let $ = jQuery;
|
||||
|
||||
|
||||
/**
|
||||
* DataTables integration for Bootstrap 4.
|
||||
*
|
||||
* This file sets the defaults and adds options to DataTables to style its
|
||||
* controls using Bootstrap. See https://datatables.net/manual/styling/bootstrap
|
||||
* for further information.
|
||||
*/
|
||||
|
||||
/* Set the defaults for DataTables initialisation */
|
||||
$.extend( true, DataTable.defaults, {
|
||||
renderer: 'bootstrap'
|
||||
} );
|
||||
|
||||
|
||||
/* Default class modification */
|
||||
$.extend( true, DataTable.ext.classes, {
|
||||
container: "dt-container dt-bootstrap4",
|
||||
search: {
|
||||
input: "form-control form-control-sm"
|
||||
},
|
||||
length: {
|
||||
select: "custom-select custom-select-sm form-control form-control-sm"
|
||||
},
|
||||
processing: {
|
||||
container: "dt-processing card"
|
||||
},
|
||||
layout: {
|
||||
row: 'row justify-content-between',
|
||||
cell: 'd-md-flex justify-content-between align-items-center',
|
||||
tableCell: 'col-12',
|
||||
start: 'dt-layout-start col-md-auto mr-auto',
|
||||
end: 'dt-layout-end col-md-auto ml-auto',
|
||||
full: 'dt-layout-full col-md'
|
||||
}
|
||||
} );
|
||||
|
||||
|
||||
/* Bootstrap paging button renderer */
|
||||
DataTable.ext.renderer.pagingButton.bootstrap = function (settings, buttonType, content, active, disabled) {
|
||||
var btnClasses = ['dt-paging-button', 'page-item'];
|
||||
|
||||
if (active) {
|
||||
btnClasses.push('active');
|
||||
}
|
||||
|
||||
if (disabled) {
|
||||
btnClasses.push('disabled')
|
||||
}
|
||||
|
||||
var li = $('<li>').addClass(btnClasses.join(' '));
|
||||
var a = $('<a>', {
|
||||
'href': disabled ? null : '#',
|
||||
'class': 'page-link'
|
||||
})
|
||||
.html(content)
|
||||
.appendTo(li);
|
||||
|
||||
return {
|
||||
display: li,
|
||||
clicker: a
|
||||
};
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.pagingContainer.bootstrap = function (settings, buttonEls) {
|
||||
return $('<ul/>').addClass('pagination').append(buttonEls);
|
||||
};
|
||||
|
||||
|
||||
export default DataTable;
|
||||
@@ -0,0 +1,157 @@
|
||||
/*! DataTables Bootstrap 5 integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
|
||||
(function( factory ){
|
||||
if ( typeof define === 'function' && define.amd ) {
|
||||
// AMD
|
||||
define( ['jquery', 'datatables.net'], function ( $ ) {
|
||||
return factory( $, window, document );
|
||||
} );
|
||||
}
|
||||
else if ( typeof exports === 'object' ) {
|
||||
// CommonJS
|
||||
var jq = require('jquery');
|
||||
var cjsRequires = function (root, $) {
|
||||
if ( ! $.fn.dataTable ) {
|
||||
require('datatables.net')(root, $);
|
||||
}
|
||||
};
|
||||
|
||||
if (typeof window === 'undefined') {
|
||||
module.exports = function (root, $) {
|
||||
if ( ! root ) {
|
||||
// CommonJS environments without a window global must pass a
|
||||
// root. This will give an error otherwise
|
||||
root = window;
|
||||
}
|
||||
|
||||
if ( ! $ ) {
|
||||
$ = jq( root );
|
||||
}
|
||||
|
||||
cjsRequires( root, $ );
|
||||
return factory( $, root, root.document );
|
||||
};
|
||||
}
|
||||
else {
|
||||
cjsRequires( window, jq );
|
||||
module.exports = factory( jq, window, window.document );
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Browser
|
||||
factory( jQuery, window, document );
|
||||
}
|
||||
}(function( $, window, document ) {
|
||||
'use strict';
|
||||
var DataTable = $.fn.dataTable;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* DataTables integration for Bootstrap 5.
|
||||
*
|
||||
* This file sets the defaults and adds options to DataTables to style its
|
||||
* controls using Bootstrap. See https://datatables.net/manual/styling/bootstrap
|
||||
* for further information.
|
||||
*/
|
||||
|
||||
/* Set the defaults for DataTables initialisation */
|
||||
$.extend( true, DataTable.defaults, {
|
||||
renderer: 'bootstrap'
|
||||
} );
|
||||
|
||||
|
||||
/* Default class modification */
|
||||
$.extend( true, DataTable.ext.classes, {
|
||||
container: "dt-container dt-bootstrap5",
|
||||
search: {
|
||||
input: "form-control form-control-sm"
|
||||
},
|
||||
length: {
|
||||
select: "form-select form-select-sm"
|
||||
},
|
||||
processing: {
|
||||
container: "dt-processing card"
|
||||
},
|
||||
layout: {
|
||||
row: 'row mt-2 justify-content-between',
|
||||
cell: 'd-md-flex justify-content-between align-items-center',
|
||||
tableCell: 'col-12',
|
||||
start: 'dt-layout-start col-md-auto me-auto',
|
||||
end: 'dt-layout-end col-md-auto ms-auto',
|
||||
full: 'dt-layout-full col-md'
|
||||
}
|
||||
} );
|
||||
|
||||
|
||||
/* Bootstrap paging button renderer */
|
||||
DataTable.ext.renderer.pagingButton.bootstrap = function (settings, buttonType, content, active, disabled) {
|
||||
var btnClasses = ['dt-paging-button', 'page-item'];
|
||||
|
||||
if (active) {
|
||||
btnClasses.push('active');
|
||||
}
|
||||
|
||||
if (disabled) {
|
||||
btnClasses.push('disabled')
|
||||
}
|
||||
|
||||
var li = $('<li>').addClass(btnClasses.join(' '));
|
||||
var a = $('<button>', {
|
||||
'class': 'page-link',
|
||||
role: 'link',
|
||||
type: 'button'
|
||||
})
|
||||
.html(content)
|
||||
.appendTo(li);
|
||||
|
||||
return {
|
||||
display: li,
|
||||
clicker: a
|
||||
};
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.pagingContainer.bootstrap = function (settings, buttonEls) {
|
||||
return $('<ul/>').addClass('pagination').append(buttonEls);
|
||||
};
|
||||
|
||||
// DataTable.ext.renderer.layout.bootstrap = function ( settings, container, items ) {
|
||||
// var row = $( '<div/>', {
|
||||
// "class": items.full ?
|
||||
// 'row mt-2 justify-content-md-center' :
|
||||
// 'row mt-2 justify-content-between'
|
||||
// } )
|
||||
// .appendTo( container );
|
||||
|
||||
// $.each( items, function (key, val) {
|
||||
// var klass;
|
||||
// var cellClass = '';
|
||||
|
||||
// // Apply start / end (left / right when ltr) margins
|
||||
// if (val.table) {
|
||||
// klass = 'col-12';
|
||||
// }
|
||||
// else if (key === 'start') {
|
||||
// klass = '' + cellClass;
|
||||
// }
|
||||
// else if (key === 'end') {
|
||||
// klass = '' + cellClass;
|
||||
// }
|
||||
// else {
|
||||
// klass = ' ' + cellClass;
|
||||
// }
|
||||
|
||||
// $( '<div/>', {
|
||||
// id: val.id || null,
|
||||
// "class": klass + ' ' + (val.className || '')
|
||||
// } )
|
||||
// .append( val.contents )
|
||||
// .appendTo( row );
|
||||
// } );
|
||||
// };
|
||||
|
||||
|
||||
return DataTable;
|
||||
}));
|
||||
4
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.bootstrap5.min.js
vendored
Normal file
4
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.bootstrap5.min.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/*! DataTables Bootstrap 5 integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
!function(n){var o,r;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(t){return n(t,window,document)}):"object"==typeof exports?(o=require("jquery"),r=function(t,e){e.fn.dataTable||require("datatables.net")(t,e)},"undefined"==typeof window?module.exports=function(t,e){return t=t||window,e=e||o(t),r(t,e),n(e,0,t.document)}:(r(window,o),module.exports=n(o,window,window.document))):n(jQuery,window,document)}(function(d,t,e){"use strict";var n=d.fn.dataTable;return d.extend(!0,n.defaults,{renderer:"bootstrap"}),d.extend(!0,n.ext.classes,{container:"dt-container dt-bootstrap5",search:{input:"form-control form-control-sm"},length:{select:"form-select form-select-sm"},processing:{container:"dt-processing card"},layout:{row:"row mt-2 justify-content-between",cell:"d-md-flex justify-content-between align-items-center",tableCell:"col-12",start:"dt-layout-start col-md-auto me-auto",end:"dt-layout-end col-md-auto ms-auto",full:"dt-layout-full col-md"}}),n.ext.renderer.pagingButton.bootstrap=function(t,e,n,o,r){var a=["dt-paging-button","page-item"],o=(o&&a.push("active"),r&&a.push("disabled"),d("<li>").addClass(a.join(" ")));return{display:o,clicker:d("<button>",{class:"page-link",role:"link",type:"button"}).html(n).appendTo(o)}},n.ext.renderer.pagingContainer.bootstrap=function(t,e){return d("<ul/>").addClass("pagination").append(e)},n});
|
||||
@@ -0,0 +1,4 @@
|
||||
/*! DataTables Bootstrap 5 integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;$.extend(!0,DataTable.defaults,{renderer:"bootstrap"}),$.extend(!0,DataTable.ext.classes,{container:"dt-container dt-bootstrap5",search:{input:"form-control form-control-sm"},length:{select:"form-select form-select-sm"},processing:{container:"dt-processing card"},layout:{row:"row mt-2 justify-content-between",cell:"d-md-flex justify-content-between align-items-center",tableCell:"col-12",start:"dt-layout-start col-md-auto me-auto",end:"dt-layout-end col-md-auto ms-auto",full:"dt-layout-full col-md"}}),DataTable.ext.renderer.pagingButton.bootstrap=function(t,e,a,o,n){var l=["dt-paging-button","page-item"],o=(o&&l.push("active"),n&&l.push("disabled"),$("<li>").addClass(l.join(" ")));return{display:o,clicker:$("<button>",{class:"page-link",role:"link",type:"button"}).html(a).appendTo(o)}},DataTable.ext.renderer.pagingContainer.bootstrap=function(t,e){return $("<ul/>").addClass("pagination").append(e)};export default DataTable;
|
||||
@@ -0,0 +1,116 @@
|
||||
/*! DataTables Bootstrap 5 integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
|
||||
import jQuery from 'jquery';
|
||||
import DataTable from 'datatables.net';
|
||||
|
||||
// Allow reassignment of the $ variable
|
||||
let $ = jQuery;
|
||||
|
||||
|
||||
/**
|
||||
* DataTables integration for Bootstrap 5.
|
||||
*
|
||||
* This file sets the defaults and adds options to DataTables to style its
|
||||
* controls using Bootstrap. See https://datatables.net/manual/styling/bootstrap
|
||||
* for further information.
|
||||
*/
|
||||
|
||||
/* Set the defaults for DataTables initialisation */
|
||||
$.extend( true, DataTable.defaults, {
|
||||
renderer: 'bootstrap'
|
||||
} );
|
||||
|
||||
|
||||
/* Default class modification */
|
||||
$.extend( true, DataTable.ext.classes, {
|
||||
container: "dt-container dt-bootstrap5",
|
||||
search: {
|
||||
input: "form-control form-control-sm"
|
||||
},
|
||||
length: {
|
||||
select: "form-select form-select-sm"
|
||||
},
|
||||
processing: {
|
||||
container: "dt-processing card"
|
||||
},
|
||||
layout: {
|
||||
row: 'row mt-2 justify-content-between',
|
||||
cell: 'd-md-flex justify-content-between align-items-center',
|
||||
tableCell: 'col-12',
|
||||
start: 'dt-layout-start col-md-auto me-auto',
|
||||
end: 'dt-layout-end col-md-auto ms-auto',
|
||||
full: 'dt-layout-full col-md'
|
||||
}
|
||||
} );
|
||||
|
||||
|
||||
/* Bootstrap paging button renderer */
|
||||
DataTable.ext.renderer.pagingButton.bootstrap = function (settings, buttonType, content, active, disabled) {
|
||||
var btnClasses = ['dt-paging-button', 'page-item'];
|
||||
|
||||
if (active) {
|
||||
btnClasses.push('active');
|
||||
}
|
||||
|
||||
if (disabled) {
|
||||
btnClasses.push('disabled')
|
||||
}
|
||||
|
||||
var li = $('<li>').addClass(btnClasses.join(' '));
|
||||
var a = $('<button>', {
|
||||
'class': 'page-link',
|
||||
role: 'link',
|
||||
type: 'button'
|
||||
})
|
||||
.html(content)
|
||||
.appendTo(li);
|
||||
|
||||
return {
|
||||
display: li,
|
||||
clicker: a
|
||||
};
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.pagingContainer.bootstrap = function (settings, buttonEls) {
|
||||
return $('<ul/>').addClass('pagination').append(buttonEls);
|
||||
};
|
||||
|
||||
// DataTable.ext.renderer.layout.bootstrap = function ( settings, container, items ) {
|
||||
// var row = $( '<div/>', {
|
||||
// "class": items.full ?
|
||||
// 'row mt-2 justify-content-md-center' :
|
||||
// 'row mt-2 justify-content-between'
|
||||
// } )
|
||||
// .appendTo( container );
|
||||
|
||||
// $.each( items, function (key, val) {
|
||||
// var klass;
|
||||
// var cellClass = '';
|
||||
|
||||
// // Apply start / end (left / right when ltr) margins
|
||||
// if (val.table) {
|
||||
// klass = 'col-12';
|
||||
// }
|
||||
// else if (key === 'start') {
|
||||
// klass = '' + cellClass;
|
||||
// }
|
||||
// else if (key === 'end') {
|
||||
// klass = '' + cellClass;
|
||||
// }
|
||||
// else {
|
||||
// klass = ' ' + cellClass;
|
||||
// }
|
||||
|
||||
// $( '<div/>', {
|
||||
// id: val.id || null,
|
||||
// "class": klass + ' ' + (val.className || '')
|
||||
// } )
|
||||
// .append( val.contents )
|
||||
// .appendTo( row );
|
||||
// } );
|
||||
// };
|
||||
|
||||
|
||||
export default DataTable;
|
||||
@@ -0,0 +1,174 @@
|
||||
/*! DataTables Bulma integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
|
||||
(function( factory ){
|
||||
if ( typeof define === 'function' && define.amd ) {
|
||||
// AMD
|
||||
define( ['jquery', 'datatables.net'], function ( $ ) {
|
||||
return factory( $, window, document );
|
||||
} );
|
||||
}
|
||||
else if ( typeof exports === 'object' ) {
|
||||
// CommonJS
|
||||
var jq = require('jquery');
|
||||
var cjsRequires = function (root, $) {
|
||||
if ( ! $.fn.dataTable ) {
|
||||
require('datatables.net')(root, $);
|
||||
}
|
||||
};
|
||||
|
||||
if (typeof window === 'undefined') {
|
||||
module.exports = function (root, $) {
|
||||
if ( ! root ) {
|
||||
// CommonJS environments without a window global must pass a
|
||||
// root. This will give an error otherwise
|
||||
root = window;
|
||||
}
|
||||
|
||||
if ( ! $ ) {
|
||||
$ = jq( root );
|
||||
}
|
||||
|
||||
cjsRequires( root, $ );
|
||||
return factory( $, root, root.document );
|
||||
};
|
||||
}
|
||||
else {
|
||||
cjsRequires( window, jq );
|
||||
module.exports = factory( jq, window, window.document );
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Browser
|
||||
factory( jQuery, window, document );
|
||||
}
|
||||
}(function( $, window, document ) {
|
||||
'use strict';
|
||||
var DataTable = $.fn.dataTable;
|
||||
|
||||
|
||||
|
||||
/* Set the defaults for DataTables initialisation */
|
||||
$.extend( true, DataTable.defaults, {
|
||||
renderer: 'bulma'
|
||||
} );
|
||||
|
||||
|
||||
/* Default class modification */
|
||||
$.extend( true, DataTable.ext.classes, {
|
||||
container: "dt-container dt-bulma",
|
||||
search: {
|
||||
input: "input"
|
||||
},
|
||||
layout: {
|
||||
row: 'columns is-multiline',
|
||||
cell: 'is-flex is-justify-content-space-between is-align-items-center',
|
||||
tableRow: 'dt-layout-table',
|
||||
tableCell: 'column is-full',
|
||||
start: 'dt-layout-start column is-narrow',
|
||||
end: 'dt-layout-end column is-narrow',
|
||||
full: 'dt-layout-full column is-full'
|
||||
},
|
||||
length: {
|
||||
input: "custom-select custom-select-sm form-control form-control-sm"
|
||||
},
|
||||
processing: {
|
||||
container: "dt-processing card"
|
||||
},
|
||||
paging: {
|
||||
nav: 'pagination'
|
||||
}
|
||||
} );
|
||||
|
||||
|
||||
DataTable.ext.renderer.pagingButton.bulma = function (settings, buttonType, content, active, disabled) {
|
||||
var btnClasses = ['pagination-link'];
|
||||
|
||||
if (active) {
|
||||
btnClasses.push('is-current');
|
||||
}
|
||||
|
||||
var li = $('<li>');
|
||||
var a = $('<a>', {
|
||||
'href': disabled ? null : '#',
|
||||
'class': btnClasses.join(' '),
|
||||
'disabled': disabled
|
||||
})
|
||||
.html(content)
|
||||
.appendTo(li);
|
||||
|
||||
return {
|
||||
display: li,
|
||||
clicker: a
|
||||
};
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.pagingContainer.bulma = function (settings, buttonEls) {
|
||||
return $('<ul class="pagination-list"></ul>').append(buttonEls);
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.layout.bulma = function ( settings, container, items ) {
|
||||
var classes = settings.oClasses.layout;
|
||||
var row = $('<div/>')
|
||||
.attr('id', items.id || null)
|
||||
.addClass(items.className || classes.row)
|
||||
.appendTo( container );
|
||||
|
||||
$.each( items, function (key, val) {
|
||||
if (key === 'id' || key === 'className') {
|
||||
return;
|
||||
}
|
||||
|
||||
var klass = '';
|
||||
var style = {};
|
||||
|
||||
if (val.table) {
|
||||
row.addClass(classes.tableRow);
|
||||
klass += classes.tableCell + ' ';
|
||||
}
|
||||
|
||||
if (key === 'start') {
|
||||
klass += classes.start;
|
||||
}
|
||||
else if (key === 'end') {
|
||||
klass += classes.end;
|
||||
style.marginLeft = 'auto';
|
||||
}
|
||||
else {
|
||||
klass += classes.full;
|
||||
}
|
||||
|
||||
$('<div/>')
|
||||
.attr({
|
||||
id: val.id || null,
|
||||
"class": val.className
|
||||
? val.className
|
||||
: classes.cell + ' ' + klass
|
||||
})
|
||||
.css(style)
|
||||
.append( val.contents )
|
||||
.appendTo( row );
|
||||
} );
|
||||
};
|
||||
|
||||
|
||||
// Javascript enhancements on table initialisation
|
||||
$(document).on( 'init.dt', function (e, ctx) {
|
||||
if ( e.namespace !== 'dt' ) {
|
||||
return;
|
||||
}
|
||||
|
||||
var api = new $.fn.dataTable.Api( ctx );
|
||||
|
||||
// Length menu drop down - needs to be wrapped with a div
|
||||
$( 'div.dt-length select', api.table().container() ).wrap('<div class="select">');
|
||||
|
||||
// Filtering input
|
||||
// $( 'div.dt-search.ui.input', api.table().container() ).removeClass('input').addClass('form');
|
||||
// $( 'div.dt-search input', api.table().container() ).wrap( '<span class="ui input" />' );
|
||||
} );
|
||||
|
||||
|
||||
return DataTable;
|
||||
}));
|
||||
4
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.bulma.min.js
vendored
Normal file
4
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.bulma.min.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/*! DataTables Bulma integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
!function(t){var a,l;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(a=require("jquery"),l=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"==typeof window?module.exports=function(e,n){return e=e||window,n=n||a(e),l(e,n),t(n,0,e.document)}:(l(window,a),module.exports=t(a,window,window.document))):t(jQuery,window,document)}(function(o,e,n){"use strict";var t=o.fn.dataTable;return o.extend(!0,t.defaults,{renderer:"bulma"}),o.extend(!0,t.ext.classes,{container:"dt-container dt-bulma",search:{input:"input"},layout:{row:"columns is-multiline",cell:"is-flex is-justify-content-space-between is-align-items-center",tableRow:"dt-layout-table",tableCell:"column is-full",start:"dt-layout-start column is-narrow",end:"dt-layout-end column is-narrow",full:"dt-layout-full column is-full"},length:{input:"custom-select custom-select-sm form-control form-control-sm"},processing:{container:"dt-processing card"},paging:{nav:"pagination"}}),t.ext.renderer.pagingButton.bulma=function(e,n,t,a,l){var i=["pagination-link"],a=(a&&i.push("is-current"),o("<li>"));return{display:a,clicker:o("<a>",{href:l?null:"#",class:i.join(" "),disabled:l}).html(t).appendTo(a)}},t.ext.renderer.pagingContainer.bulma=function(e,n){return o('<ul class="pagination-list"></ul>').append(n)},t.ext.renderer.layout.bulma=function(e,n,t){var l=e.oClasses.layout,i=o("<div/>").attr("id",t.id||null).addClass(t.className||l.row).appendTo(n);o.each(t,function(e,n){var t,a;"id"!==e&&"className"!==e&&(t="",a={},n.table&&(i.addClass(l.tableRow),t+=l.tableCell+" "),"start"===e?t+=l.start:"end"===e?(t+=l.end,a.marginLeft="auto"):t+=l.full,o("<div/>").attr({id:n.id||null,class:n.className||l.cell+" "+t}).css(a).append(n.contents).appendTo(i))})},o(n).on("init.dt",function(e,n){"dt"===e.namespace&&(e=new o.fn.dataTable.Api(n),o("div.dt-length select",e.table().container()).wrap('<div class="select">'))}),t});
|
||||
@@ -0,0 +1,4 @@
|
||||
/*! DataTables Bulma integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;$.extend(!0,DataTable.defaults,{renderer:"bulma"}),$.extend(!0,DataTable.ext.classes,{container:"dt-container dt-bulma",search:{input:"input"},layout:{row:"columns is-multiline",cell:"is-flex is-justify-content-space-between is-align-items-center",tableRow:"dt-layout-table",tableCell:"column is-full",start:"dt-layout-start column is-narrow",end:"dt-layout-end column is-narrow",full:"dt-layout-full column is-full"},length:{input:"custom-select custom-select-sm form-control form-control-sm"},processing:{container:"dt-processing card"},paging:{nav:"pagination"}}),DataTable.ext.renderer.pagingButton.bulma=function(a,t,e,l,n){var s=["pagination-link"],l=(l&&s.push("is-current"),$("<li>"));return{display:l,clicker:$("<a>",{href:n?null:"#",class:s.join(" "),disabled:n}).html(e).appendTo(l)}},DataTable.ext.renderer.pagingContainer.bulma=function(a,t){return $('<ul class="pagination-list"></ul>').append(t)},DataTable.ext.renderer.layout.bulma=function(a,t,e){var n=a.oClasses.layout,s=$("<div/>").attr("id",e.id||null).addClass(e.className||n.row).appendTo(t);$.each(e,function(a,t){var e,l;"id"!==a&&"className"!==a&&(e="",l={},t.table&&(s.addClass(n.tableRow),e+=n.tableCell+" "),"start"===a?e+=n.start:"end"===a?(e+=n.end,l.marginLeft="auto"):e+=n.full,$("<div/>").attr({id:t.id||null,class:t.className||n.cell+" "+e}).css(l).append(t.contents).appendTo(s))})},$(document).on("init.dt",function(a,t){"dt"===a.namespace&&(a=new $.fn.dataTable.Api(t),$("div.dt-length select",a.table().container()).wrap('<div class="select">'))});export default DataTable;
|
||||
@@ -0,0 +1,133 @@
|
||||
/*! DataTables Bulma integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
|
||||
import jQuery from 'jquery';
|
||||
import DataTable from 'datatables.net';
|
||||
|
||||
// Allow reassignment of the $ variable
|
||||
let $ = jQuery;
|
||||
|
||||
|
||||
/* Set the defaults for DataTables initialisation */
|
||||
$.extend( true, DataTable.defaults, {
|
||||
renderer: 'bulma'
|
||||
} );
|
||||
|
||||
|
||||
/* Default class modification */
|
||||
$.extend( true, DataTable.ext.classes, {
|
||||
container: "dt-container dt-bulma",
|
||||
search: {
|
||||
input: "input"
|
||||
},
|
||||
layout: {
|
||||
row: 'columns is-multiline',
|
||||
cell: 'is-flex is-justify-content-space-between is-align-items-center',
|
||||
tableRow: 'dt-layout-table',
|
||||
tableCell: 'column is-full',
|
||||
start: 'dt-layout-start column is-narrow',
|
||||
end: 'dt-layout-end column is-narrow',
|
||||
full: 'dt-layout-full column is-full'
|
||||
},
|
||||
length: {
|
||||
input: "custom-select custom-select-sm form-control form-control-sm"
|
||||
},
|
||||
processing: {
|
||||
container: "dt-processing card"
|
||||
},
|
||||
paging: {
|
||||
nav: 'pagination'
|
||||
}
|
||||
} );
|
||||
|
||||
|
||||
DataTable.ext.renderer.pagingButton.bulma = function (settings, buttonType, content, active, disabled) {
|
||||
var btnClasses = ['pagination-link'];
|
||||
|
||||
if (active) {
|
||||
btnClasses.push('is-current');
|
||||
}
|
||||
|
||||
var li = $('<li>');
|
||||
var a = $('<a>', {
|
||||
'href': disabled ? null : '#',
|
||||
'class': btnClasses.join(' '),
|
||||
'disabled': disabled
|
||||
})
|
||||
.html(content)
|
||||
.appendTo(li);
|
||||
|
||||
return {
|
||||
display: li,
|
||||
clicker: a
|
||||
};
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.pagingContainer.bulma = function (settings, buttonEls) {
|
||||
return $('<ul class="pagination-list"></ul>').append(buttonEls);
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.layout.bulma = function ( settings, container, items ) {
|
||||
var classes = settings.oClasses.layout;
|
||||
var row = $('<div/>')
|
||||
.attr('id', items.id || null)
|
||||
.addClass(items.className || classes.row)
|
||||
.appendTo( container );
|
||||
|
||||
$.each( items, function (key, val) {
|
||||
if (key === 'id' || key === 'className') {
|
||||
return;
|
||||
}
|
||||
|
||||
var klass = '';
|
||||
var style = {};
|
||||
|
||||
if (val.table) {
|
||||
row.addClass(classes.tableRow);
|
||||
klass += classes.tableCell + ' ';
|
||||
}
|
||||
|
||||
if (key === 'start') {
|
||||
klass += classes.start;
|
||||
}
|
||||
else if (key === 'end') {
|
||||
klass += classes.end;
|
||||
style.marginLeft = 'auto';
|
||||
}
|
||||
else {
|
||||
klass += classes.full;
|
||||
}
|
||||
|
||||
$('<div/>')
|
||||
.attr({
|
||||
id: val.id || null,
|
||||
"class": val.className
|
||||
? val.className
|
||||
: classes.cell + ' ' + klass
|
||||
})
|
||||
.css(style)
|
||||
.append( val.contents )
|
||||
.appendTo( row );
|
||||
} );
|
||||
};
|
||||
|
||||
|
||||
// Javascript enhancements on table initialisation
|
||||
$(document).on( 'init.dt', function (e, ctx) {
|
||||
if ( e.namespace !== 'dt' ) {
|
||||
return;
|
||||
}
|
||||
|
||||
var api = new $.fn.dataTable.Api( ctx );
|
||||
|
||||
// Length menu drop down - needs to be wrapped with a div
|
||||
$( 'div.dt-length select', api.table().container() ).wrap('<div class="select">');
|
||||
|
||||
// Filtering input
|
||||
// $( 'div.dt-search.ui.input', api.table().container() ).removeClass('input').addClass('form');
|
||||
// $( 'div.dt-search input', api.table().container() ).wrap( '<span class="ui input" />' );
|
||||
} );
|
||||
|
||||
|
||||
export default DataTable;
|
||||
@@ -0,0 +1,55 @@
|
||||
/*! DataTables styling integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
|
||||
(function( factory ){
|
||||
if ( typeof define === 'function' && define.amd ) {
|
||||
// AMD
|
||||
define( ['jquery', 'datatables.net'], function ( $ ) {
|
||||
return factory( $, window, document );
|
||||
} );
|
||||
}
|
||||
else if ( typeof exports === 'object' ) {
|
||||
// CommonJS
|
||||
var jq = require('jquery');
|
||||
var cjsRequires = function (root, $) {
|
||||
if ( ! $.fn.dataTable ) {
|
||||
require('datatables.net')(root, $);
|
||||
}
|
||||
};
|
||||
|
||||
if (typeof window === 'undefined') {
|
||||
module.exports = function (root, $) {
|
||||
if ( ! root ) {
|
||||
// CommonJS environments without a window global must pass a
|
||||
// root. This will give an error otherwise
|
||||
root = window;
|
||||
}
|
||||
|
||||
if ( ! $ ) {
|
||||
$ = jq( root );
|
||||
}
|
||||
|
||||
cjsRequires( root, $ );
|
||||
return factory( $, root, root.document );
|
||||
};
|
||||
}
|
||||
else {
|
||||
cjsRequires( window, jq );
|
||||
module.exports = factory( jq, window, window.document );
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Browser
|
||||
factory( jQuery, window, document );
|
||||
}
|
||||
}(function( $, window, document ) {
|
||||
'use strict';
|
||||
var DataTable = $.fn.dataTable;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return DataTable;
|
||||
}));
|
||||
4
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.dataTables.min.js
vendored
Normal file
4
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.dataTables.min.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/*! DataTables styling integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
!function(t){var o,d;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(o=require("jquery"),d=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"==typeof window?module.exports=function(e,n){return e=e||window,n=n||o(e),d(e,n),t(n,0,e.document)}:(d(window,o),module.exports=t(o,window,window.document))):t(jQuery,window,document)}(function(e,n,t){"use strict";return e.fn.dataTable});
|
||||
@@ -0,0 +1,4 @@
|
||||
/*! DataTables styling integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;export default DataTable;
|
||||
@@ -0,0 +1,14 @@
|
||||
/*! DataTables styling integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
|
||||
import jQuery from 'jquery';
|
||||
import DataTable from 'datatables.net';
|
||||
|
||||
// Allow reassignment of the $ variable
|
||||
let $ = jQuery;
|
||||
|
||||
|
||||
|
||||
|
||||
export default DataTable;
|
||||
@@ -0,0 +1,174 @@
|
||||
/*! DataTables Foundation integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
|
||||
(function( factory ){
|
||||
if ( typeof define === 'function' && define.amd ) {
|
||||
// AMD
|
||||
define( ['jquery', 'datatables.net'], function ( $ ) {
|
||||
return factory( $, window, document );
|
||||
} );
|
||||
}
|
||||
else if ( typeof exports === 'object' ) {
|
||||
// CommonJS
|
||||
var jq = require('jquery');
|
||||
var cjsRequires = function (root, $) {
|
||||
if ( ! $.fn.dataTable ) {
|
||||
require('datatables.net')(root, $);
|
||||
}
|
||||
};
|
||||
|
||||
if (typeof window === 'undefined') {
|
||||
module.exports = function (root, $) {
|
||||
if ( ! root ) {
|
||||
// CommonJS environments without a window global must pass a
|
||||
// root. This will give an error otherwise
|
||||
root = window;
|
||||
}
|
||||
|
||||
if ( ! $ ) {
|
||||
$ = jq( root );
|
||||
}
|
||||
|
||||
cjsRequires( root, $ );
|
||||
return factory( $, root, root.document );
|
||||
};
|
||||
}
|
||||
else {
|
||||
cjsRequires( window, jq );
|
||||
module.exports = factory( jq, window, window.document );
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Browser
|
||||
factory( jQuery, window, document );
|
||||
}
|
||||
}(function( $, window, document ) {
|
||||
'use strict';
|
||||
var DataTable = $.fn.dataTable;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* DataTables integration for Foundation. This requires Foundation 5.
|
||||
*
|
||||
* This file sets the defaults and adds options to DataTables to style its
|
||||
* controls using Foundation. See https://datatables.net/manual/styling/foundation
|
||||
* for further information.
|
||||
*/
|
||||
|
||||
$.extend( true, DataTable.ext.classes, {
|
||||
container: "dt-container dt-foundation",
|
||||
layout: {
|
||||
row: 'grid-x',
|
||||
cell: 'flex-container align-justify align-middle',
|
||||
tableRow: 'dt-layout-table',
|
||||
tableCell: 'cell small-12',
|
||||
start: 'dt-layout-start cell shrink',
|
||||
end: 'dt-layout-end cell shrink',
|
||||
full: 'dt-layout-full cell'
|
||||
},
|
||||
processing: {
|
||||
container: "dt-processing panel callout"
|
||||
}
|
||||
} );
|
||||
|
||||
|
||||
/* Set the defaults for DataTables initialisation */
|
||||
$.extend( true, DataTable.defaults, {
|
||||
renderer: 'foundation'
|
||||
} );
|
||||
|
||||
DataTable.ext.renderer.pagingButton.foundation = function (settings, buttonType, content, active, disabled) {
|
||||
var btnClasses = [];
|
||||
var li;
|
||||
|
||||
if (buttonType === 'ellipsis') {
|
||||
// No `a` tag for ellipsis
|
||||
li = $('<li>', {
|
||||
class: 'ellipsis'
|
||||
});
|
||||
|
||||
return {
|
||||
display: li,
|
||||
clicker: li
|
||||
};
|
||||
}
|
||||
else if (active || disabled) {
|
||||
// No `a` tag for current or disabled
|
||||
li = $('<li>', {
|
||||
class: active
|
||||
? 'current'
|
||||
: 'disabled ' + btnClasses.join(' ')
|
||||
}).html(content);
|
||||
|
||||
return {
|
||||
display: li,
|
||||
clicker: li
|
||||
};
|
||||
}
|
||||
|
||||
li = $('<li>').addClass(btnClasses.join(' '));
|
||||
var a = $('<a>', {
|
||||
'href': '#'
|
||||
})
|
||||
.html(content)
|
||||
.appendTo(li);
|
||||
|
||||
return {
|
||||
display: li,
|
||||
clicker: a
|
||||
};
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.pagingContainer.foundation = function (settings, buttonEls) {
|
||||
return $('<ul/>').addClass('pagination').append(buttonEls);
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.layout.foundation = function ( settings, container, items ) {
|
||||
var classes = settings.oClasses.layout;
|
||||
var row = $('<div/>')
|
||||
.attr('id', items.id || null)
|
||||
.addClass(items.className || classes.row)
|
||||
.appendTo( container );
|
||||
|
||||
$.each( items, function (key, val) {
|
||||
if (key === 'id' || key === 'className') {
|
||||
return;
|
||||
}
|
||||
|
||||
var klass = '';
|
||||
var style = {};
|
||||
|
||||
if (val.table) {
|
||||
row.addClass(classes.tableRow);
|
||||
klass += classes.tableCell + ' ';
|
||||
}
|
||||
|
||||
if (key === 'start') {
|
||||
klass += classes.start;
|
||||
}
|
||||
else if (key === 'end') {
|
||||
klass += classes.end;
|
||||
style.marginLeft = 'auto';
|
||||
}
|
||||
else {
|
||||
klass += classes.full;
|
||||
}
|
||||
|
||||
$('<div/>')
|
||||
.attr({
|
||||
id: val.id || null,
|
||||
"class": val.className
|
||||
? val.className
|
||||
: classes.cell + ' ' + klass
|
||||
})
|
||||
.css(style)
|
||||
.append( val.contents )
|
||||
.appendTo( row );
|
||||
} );
|
||||
};
|
||||
|
||||
|
||||
return DataTable;
|
||||
}));
|
||||
4
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.foundation.min.js
vendored
Normal file
4
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.foundation.min.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/*! DataTables Foundation integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
!function(t){var a,l;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(a=require("jquery"),l=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"==typeof window?module.exports=function(e,n){return e=e||window,n=n||a(e),l(e,n),t(n,0,e.document)}:(l(window,a),module.exports=t(a,window,window.document))):t(jQuery,window,document)}(function(o,e,n){"use strict";var t=o.fn.dataTable;return o.extend(!0,t.ext.classes,{container:"dt-container dt-foundation",layout:{row:"grid-x",cell:"flex-container align-justify align-middle",tableRow:"dt-layout-table",tableCell:"cell small-12",start:"dt-layout-start cell shrink",end:"dt-layout-end cell shrink",full:"dt-layout-full cell"},processing:{container:"dt-processing panel callout"}}),o.extend(!0,t.defaults,{renderer:"foundation"}),t.ext.renderer.pagingButton.foundation=function(e,n,t,a,l){var d,i=[];return"ellipsis"===n?{display:d=o("<li>",{class:"ellipsis"}),clicker:d}:a||l?{display:d=o("<li>",{class:a?"current":"disabled "+i.join(" ")}).html(t),clicker:d}:{display:d=o("<li>").addClass(i.join(" ")),clicker:o("<a>",{href:"#"}).html(t).appendTo(d)}},t.ext.renderer.pagingContainer.foundation=function(e,n){return o("<ul/>").addClass("pagination").append(n)},t.ext.renderer.layout.foundation=function(e,n,t){var l=e.oClasses.layout,d=o("<div/>").attr("id",t.id||null).addClass(t.className||l.row).appendTo(n);o.each(t,function(e,n){var t,a;"id"!==e&&"className"!==e&&(t="",a={},n.table&&(d.addClass(l.tableRow),t+=l.tableCell+" "),"start"===e?t+=l.start:"end"===e?(t+=l.end,a.marginLeft="auto"):t+=l.full,o("<div/>").attr({id:n.id||null,class:n.className||l.cell+" "+t}).css(a).append(n.contents).appendTo(d))})},t});
|
||||
@@ -0,0 +1,4 @@
|
||||
/*! DataTables Foundation integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;$.extend(!0,DataTable.ext.classes,{container:"dt-container dt-foundation",layout:{row:"grid-x",cell:"flex-container align-justify align-middle",tableRow:"dt-layout-table",tableCell:"cell small-12",start:"dt-layout-start cell shrink",end:"dt-layout-end cell shrink",full:"dt-layout-full cell"},processing:{container:"dt-processing panel callout"}}),$.extend(!0,DataTable.defaults,{renderer:"foundation"}),DataTable.ext.renderer.pagingButton.foundation=function(a,l,e,t,n){var d,i=[];return"ellipsis"===l?{display:d=$("<li>",{class:"ellipsis"}),clicker:d}:t||n?{display:d=$("<li>",{class:t?"current":"disabled "+i.join(" ")}).html(e),clicker:d}:{display:d=$("<li>").addClass(i.join(" ")),clicker:$("<a>",{href:"#"}).html(e).appendTo(d)}},DataTable.ext.renderer.pagingContainer.foundation=function(a,l){return $("<ul/>").addClass("pagination").append(l)},DataTable.ext.renderer.layout.foundation=function(a,l,e){var n=a.oClasses.layout,d=$("<div/>").attr("id",e.id||null).addClass(e.className||n.row).appendTo(l);$.each(e,function(a,l){var e,t;"id"!==a&&"className"!==a&&(e="",t={},l.table&&(d.addClass(n.tableRow),e+=n.tableCell+" "),"start"===a?e+=n.start:"end"===a?(e+=n.end,t.marginLeft="auto"):e+=n.full,$("<div/>").attr({id:l.id||null,class:l.className||n.cell+" "+e}).css(t).append(l.contents).appendTo(d))})};export default DataTable;
|
||||
@@ -0,0 +1,133 @@
|
||||
/*! DataTables Foundation integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
|
||||
import jQuery from 'jquery';
|
||||
import DataTable from 'datatables.net';
|
||||
|
||||
// Allow reassignment of the $ variable
|
||||
let $ = jQuery;
|
||||
|
||||
|
||||
/**
|
||||
* DataTables integration for Foundation. This requires Foundation 5.
|
||||
*
|
||||
* This file sets the defaults and adds options to DataTables to style its
|
||||
* controls using Foundation. See https://datatables.net/manual/styling/foundation
|
||||
* for further information.
|
||||
*/
|
||||
|
||||
$.extend( true, DataTable.ext.classes, {
|
||||
container: "dt-container dt-foundation",
|
||||
layout: {
|
||||
row: 'grid-x',
|
||||
cell: 'flex-container align-justify align-middle',
|
||||
tableRow: 'dt-layout-table',
|
||||
tableCell: 'cell small-12',
|
||||
start: 'dt-layout-start cell shrink',
|
||||
end: 'dt-layout-end cell shrink',
|
||||
full: 'dt-layout-full cell'
|
||||
},
|
||||
processing: {
|
||||
container: "dt-processing panel callout"
|
||||
}
|
||||
} );
|
||||
|
||||
|
||||
/* Set the defaults for DataTables initialisation */
|
||||
$.extend( true, DataTable.defaults, {
|
||||
renderer: 'foundation'
|
||||
} );
|
||||
|
||||
DataTable.ext.renderer.pagingButton.foundation = function (settings, buttonType, content, active, disabled) {
|
||||
var btnClasses = [];
|
||||
var li;
|
||||
|
||||
if (buttonType === 'ellipsis') {
|
||||
// No `a` tag for ellipsis
|
||||
li = $('<li>', {
|
||||
class: 'ellipsis'
|
||||
});
|
||||
|
||||
return {
|
||||
display: li,
|
||||
clicker: li
|
||||
};
|
||||
}
|
||||
else if (active || disabled) {
|
||||
// No `a` tag for current or disabled
|
||||
li = $('<li>', {
|
||||
class: active
|
||||
? 'current'
|
||||
: 'disabled ' + btnClasses.join(' ')
|
||||
}).html(content);
|
||||
|
||||
return {
|
||||
display: li,
|
||||
clicker: li
|
||||
};
|
||||
}
|
||||
|
||||
li = $('<li>').addClass(btnClasses.join(' '));
|
||||
var a = $('<a>', {
|
||||
'href': '#'
|
||||
})
|
||||
.html(content)
|
||||
.appendTo(li);
|
||||
|
||||
return {
|
||||
display: li,
|
||||
clicker: a
|
||||
};
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.pagingContainer.foundation = function (settings, buttonEls) {
|
||||
return $('<ul/>').addClass('pagination').append(buttonEls);
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.layout.foundation = function ( settings, container, items ) {
|
||||
var classes = settings.oClasses.layout;
|
||||
var row = $('<div/>')
|
||||
.attr('id', items.id || null)
|
||||
.addClass(items.className || classes.row)
|
||||
.appendTo( container );
|
||||
|
||||
$.each( items, function (key, val) {
|
||||
if (key === 'id' || key === 'className') {
|
||||
return;
|
||||
}
|
||||
|
||||
var klass = '';
|
||||
var style = {};
|
||||
|
||||
if (val.table) {
|
||||
row.addClass(classes.tableRow);
|
||||
klass += classes.tableCell + ' ';
|
||||
}
|
||||
|
||||
if (key === 'start') {
|
||||
klass += classes.start;
|
||||
}
|
||||
else if (key === 'end') {
|
||||
klass += classes.end;
|
||||
style.marginLeft = 'auto';
|
||||
}
|
||||
else {
|
||||
klass += classes.full;
|
||||
}
|
||||
|
||||
$('<div/>')
|
||||
.attr({
|
||||
id: val.id || null,
|
||||
"class": val.className
|
||||
? val.className
|
||||
: classes.cell + ' ' + klass
|
||||
})
|
||||
.css(style)
|
||||
.append( val.contents )
|
||||
.appendTo( row );
|
||||
} );
|
||||
};
|
||||
|
||||
|
||||
export default DataTable;
|
||||
@@ -0,0 +1,87 @@
|
||||
/*! DataTables jQuery UI integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
|
||||
(function( factory ){
|
||||
if ( typeof define === 'function' && define.amd ) {
|
||||
// AMD
|
||||
define( ['jquery', 'datatables.net'], function ( $ ) {
|
||||
return factory( $, window, document );
|
||||
} );
|
||||
}
|
||||
else if ( typeof exports === 'object' ) {
|
||||
// CommonJS
|
||||
var jq = require('jquery');
|
||||
var cjsRequires = function (root, $) {
|
||||
if ( ! $.fn.dataTable ) {
|
||||
require('datatables.net')(root, $);
|
||||
}
|
||||
};
|
||||
|
||||
if (typeof window === 'undefined') {
|
||||
module.exports = function (root, $) {
|
||||
if ( ! root ) {
|
||||
// CommonJS environments without a window global must pass a
|
||||
// root. This will give an error otherwise
|
||||
root = window;
|
||||
}
|
||||
|
||||
if ( ! $ ) {
|
||||
$ = jq( root );
|
||||
}
|
||||
|
||||
cjsRequires( root, $ );
|
||||
return factory( $, root, root.document );
|
||||
};
|
||||
}
|
||||
else {
|
||||
cjsRequires( window, jq );
|
||||
module.exports = factory( jq, window, window.document );
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Browser
|
||||
factory( jQuery, window, document );
|
||||
}
|
||||
}(function( $, window, document ) {
|
||||
'use strict';
|
||||
var DataTable = $.fn.dataTable;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* DataTables integration for jQuery UI.
|
||||
*
|
||||
* This file sets the defaults and adds options to DataTables to style its
|
||||
* controls using jQuery UI. See https://datatables.net/manual/styling/jqueryui
|
||||
* for further information.
|
||||
*/
|
||||
|
||||
$.extend( true, DataTable.ext.classes, {
|
||||
container: 'dt-container dt-jqueryui',
|
||||
paging: {
|
||||
active: 'ui-state-disabled',
|
||||
button: 'fg-button ui-button ui-state-default',
|
||||
container: 'dt-paging fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi',
|
||||
disabled: 'ui-state-disabled'
|
||||
},
|
||||
thead: {
|
||||
cell: 'ui-state-default fg-toolbar ui-toolbar ui-widget-header'
|
||||
},
|
||||
tfoot: {
|
||||
cell: 'ui-state-default ui-widget-header'
|
||||
},
|
||||
layout: {
|
||||
row: 'dt-layout-row ui-helper-clearfix',
|
||||
tableCell: 'table',
|
||||
}
|
||||
} );
|
||||
|
||||
// Set the defaults for DataTables initialisation
|
||||
$.extend(true, DataTable.defaults, {
|
||||
renderer: 'jqueryui'
|
||||
});
|
||||
|
||||
|
||||
return DataTable;
|
||||
}));
|
||||
4
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.jqueryui.min.js
vendored
Normal file
4
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.jqueryui.min.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/*! DataTables jQuery UI integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
!function(n){var u,i;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(t){return n(t,window,document)}):"object"==typeof exports?(u=require("jquery"),i=function(t,e){e.fn.dataTable||require("datatables.net")(t,e)},"undefined"==typeof window?module.exports=function(t,e){return t=t||window,e=e||u(t),i(t,e),n(e,0,t.document)}:(i(window,u),module.exports=n(u,window,window.document))):n(jQuery,window,document)}(function(t,e,n){"use strict";var u=t.fn.dataTable;return t.extend(!0,u.ext.classes,{container:"dt-container dt-jqueryui",paging:{active:"ui-state-disabled",button:"fg-button ui-button ui-state-default",container:"dt-paging fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi",disabled:"ui-state-disabled"},thead:{cell:"ui-state-default fg-toolbar ui-toolbar ui-widget-header"},tfoot:{cell:"ui-state-default ui-widget-header"},layout:{row:"dt-layout-row ui-helper-clearfix",tableCell:"table"}}),t.extend(!0,u.defaults,{renderer:"jqueryui"}),u});
|
||||
@@ -0,0 +1,4 @@
|
||||
/*! DataTables jQuery UI integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;$.extend(!0,DataTable.ext.classes,{container:"dt-container dt-jqueryui",paging:{active:"ui-state-disabled",button:"fg-button ui-button ui-state-default",container:"dt-paging fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi",disabled:"ui-state-disabled"},thead:{cell:"ui-state-default fg-toolbar ui-toolbar ui-widget-header"},tfoot:{cell:"ui-state-default ui-widget-header"},layout:{row:"dt-layout-row ui-helper-clearfix",tableCell:"table"}}),$.extend(!0,DataTable.defaults,{renderer:"jqueryui"});export default DataTable;
|
||||
@@ -0,0 +1,46 @@
|
||||
/*! DataTables jQuery UI integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
|
||||
import jQuery from 'jquery';
|
||||
import DataTable from 'datatables.net';
|
||||
|
||||
// Allow reassignment of the $ variable
|
||||
let $ = jQuery;
|
||||
|
||||
|
||||
/**
|
||||
* DataTables integration for jQuery UI.
|
||||
*
|
||||
* This file sets the defaults and adds options to DataTables to style its
|
||||
* controls using jQuery UI. See https://datatables.net/manual/styling/jqueryui
|
||||
* for further information.
|
||||
*/
|
||||
|
||||
$.extend( true, DataTable.ext.classes, {
|
||||
container: 'dt-container dt-jqueryui',
|
||||
paging: {
|
||||
active: 'ui-state-disabled',
|
||||
button: 'fg-button ui-button ui-state-default',
|
||||
container: 'dt-paging fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi',
|
||||
disabled: 'ui-state-disabled'
|
||||
},
|
||||
thead: {
|
||||
cell: 'ui-state-default fg-toolbar ui-toolbar ui-widget-header'
|
||||
},
|
||||
tfoot: {
|
||||
cell: 'ui-state-default ui-widget-header'
|
||||
},
|
||||
layout: {
|
||||
row: 'dt-layout-row ui-helper-clearfix',
|
||||
tableCell: 'table',
|
||||
}
|
||||
} );
|
||||
|
||||
// Set the defaults for DataTables initialisation
|
||||
$.extend(true, DataTable.defaults, {
|
||||
renderer: 'jqueryui'
|
||||
});
|
||||
|
||||
|
||||
export default DataTable;
|
||||
13601
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.js
Normal file
13601
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.js
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,159 @@
|
||||
/*! DataTables Bootstrap 3 integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
|
||||
(function( factory ){
|
||||
if ( typeof define === 'function' && define.amd ) {
|
||||
// AMD
|
||||
define( ['jquery', 'datatables.net'], function ( $ ) {
|
||||
return factory( $, window, document );
|
||||
} );
|
||||
}
|
||||
else if ( typeof exports === 'object' ) {
|
||||
// CommonJS
|
||||
var jq = require('jquery');
|
||||
var cjsRequires = function (root, $) {
|
||||
if ( ! $.fn.dataTable ) {
|
||||
require('datatables.net')(root, $);
|
||||
}
|
||||
};
|
||||
|
||||
if (typeof window === 'undefined') {
|
||||
module.exports = function (root, $) {
|
||||
if ( ! root ) {
|
||||
// CommonJS environments without a window global must pass a
|
||||
// root. This will give an error otherwise
|
||||
root = window;
|
||||
}
|
||||
|
||||
if ( ! $ ) {
|
||||
$ = jq( root );
|
||||
}
|
||||
|
||||
cjsRequires( root, $ );
|
||||
return factory( $, root, root.document );
|
||||
};
|
||||
}
|
||||
else {
|
||||
cjsRequires( window, jq );
|
||||
module.exports = factory( jq, window, window.document );
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Browser
|
||||
factory( jQuery, window, document );
|
||||
}
|
||||
}(function( $, window, document ) {
|
||||
'use strict';
|
||||
var DataTable = $.fn.dataTable;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* DataTables integration for Material design
|
||||
*
|
||||
* This file sets the defaults and adds options to DataTables to style its
|
||||
* controls using Bootstrap. See https://datatables.net/manual/styling/bootstrap
|
||||
* for further information.
|
||||
*/
|
||||
|
||||
/* Set the defaults for DataTables initialisation */
|
||||
$.extend( true, DataTable.defaults, {
|
||||
renderer: 'material'
|
||||
} );
|
||||
|
||||
|
||||
/* Default class modification */
|
||||
$.extend( true, DataTable.ext.classes, {
|
||||
container: "dt-container dt-material",
|
||||
table: "mdc-data-table__table",
|
||||
thead: {
|
||||
cell: "mdc-data-table__header-cell",
|
||||
row: 'mdc-data-table__header-row'
|
||||
},
|
||||
tbody: {
|
||||
cell: "mdc-data-table__cell",
|
||||
row: "mdc-data-table__row"
|
||||
},
|
||||
search: {
|
||||
container: 'dt-search inline-text-field-container',
|
||||
input: "mdc-text-field__input"
|
||||
},
|
||||
length: {
|
||||
select: "mdc-select-field"
|
||||
},
|
||||
processing: {
|
||||
container: "dt-processing panel panel-default"
|
||||
}
|
||||
} );
|
||||
|
||||
DataTable.ext.renderer.pagingButton.material = function (settings, buttonType, content, active, disabled) {
|
||||
var btnClasses = ['mdc-button'];
|
||||
|
||||
if (active) {
|
||||
btnClasses.push('mdc-button--raised', 'mdc-button--colored');
|
||||
}
|
||||
|
||||
if (disabled) {
|
||||
btnClasses.push('disabled')
|
||||
}
|
||||
|
||||
var btn = $('<button>', {
|
||||
class: btnClasses.join(' '),
|
||||
disabled: disabled
|
||||
}).html(content);
|
||||
|
||||
return {
|
||||
display: btn,
|
||||
clicker: btn
|
||||
};
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.pagingContainer.material = function (settings, buttonEls) {
|
||||
return $('<div/>').addClass('pagination').append(buttonEls);
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.layout.material = function ( settings, container, items ) {
|
||||
var grid = $( '<div/>', {
|
||||
"class": 'mdc-layout-grid'
|
||||
} )
|
||||
.appendTo( container );
|
||||
|
||||
var gridInner = $( '<div/>', {
|
||||
"class": 'mdc-layout-grid__inner'
|
||||
} )
|
||||
.appendTo( grid );
|
||||
|
||||
$.each( items, function (key, val) {
|
||||
var klass = '';
|
||||
if ( key === 'start' ) {
|
||||
klass += 'mdc-layout-grid__cell mdc-layout-grid__cell--span-6';
|
||||
}
|
||||
else if ( key === 'end' ) {
|
||||
klass += 'mdc-layout-grid__cell mdc-layout-grid--align-right mdc-layout-grid__cell--span-6';
|
||||
}
|
||||
else if ( key === 'full' ) {
|
||||
klass += 'mdc-layout-grid__cell mdc-layout-grid__cell--span-12';
|
||||
if ( ! val.table ) {
|
||||
klass += '';
|
||||
}
|
||||
else {
|
||||
gridInner.addClass( 'dt-table mdc-data-table')
|
||||
}
|
||||
}
|
||||
|
||||
$( '<div/>', {
|
||||
id: val.id || null,
|
||||
"class": klass+' '+(val.className || '')
|
||||
} )
|
||||
.append( val.contents )
|
||||
.appendTo( gridInner );
|
||||
} );
|
||||
};
|
||||
|
||||
DataTable.type('num', 'className', 'mdc-data-table__cell--numeric');
|
||||
DataTable.type('num-fmt', 'className', 'mdc-data-table__cell--numeric');
|
||||
|
||||
|
||||
return DataTable;
|
||||
}));
|
||||
4
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.material.min.js
vendored
Normal file
4
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.material.min.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/*! DataTables Bootstrap 3 integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
!function(a){var d,n;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return a(e,window,document)}):"object"==typeof exports?(d=require("jquery"),n=function(e,t){t.fn.dataTable||require("datatables.net")(e,t)},"undefined"==typeof window?module.exports=function(e,t){return e=e||window,t=t||d(e),n(e,t),a(t,0,e.document)}:(n(window,d),module.exports=a(d,window,window.document))):a(jQuery,window,document)}(function(c,e,t){"use strict";var a=c.fn.dataTable;return c.extend(!0,a.defaults,{renderer:"material"}),c.extend(!0,a.ext.classes,{container:"dt-container dt-material",table:"mdc-data-table__table",thead:{cell:"mdc-data-table__header-cell",row:"mdc-data-table__header-row"},tbody:{cell:"mdc-data-table__cell",row:"mdc-data-table__row"},search:{container:"dt-search inline-text-field-container",input:"mdc-text-field__input"},length:{select:"mdc-select-field"},processing:{container:"dt-processing panel panel-default"}}),a.ext.renderer.pagingButton.material=function(e,t,a,d,n){var l=["mdc-button"],d=(d&&l.push("mdc-button--raised","mdc-button--colored"),n&&l.push("disabled"),c("<button>",{class:l.join(" "),disabled:n}).html(a));return{display:d,clicker:d}},a.ext.renderer.pagingContainer.material=function(e,t){return c("<div/>").addClass("pagination").append(t)},a.ext.renderer.layout.material=function(e,t,a){var t=c("<div/>",{class:"mdc-layout-grid"}).appendTo(t),d=c("<div/>",{class:"mdc-layout-grid__inner"}).appendTo(t);c.each(a,function(e,t){var a="";"start"===e?a+="mdc-layout-grid__cell mdc-layout-grid__cell--span-6":"end"===e?a+="mdc-layout-grid__cell mdc-layout-grid--align-right mdc-layout-grid__cell--span-6":"full"===e&&(a+="mdc-layout-grid__cell mdc-layout-grid__cell--span-12",t.table?d.addClass("dt-table mdc-data-table"):a+=""),c("<div/>",{id:t.id||null,class:a+" "+(t.className||"")}).append(t.contents).appendTo(d)})},a.type("num","className","mdc-data-table__cell--numeric"),a.type("num-fmt","className","mdc-data-table__cell--numeric"),a});
|
||||
@@ -0,0 +1,4 @@
|
||||
/*! DataTables Bootstrap 3 integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;$.extend(!0,DataTable.defaults,{renderer:"material"}),$.extend(!0,DataTable.ext.classes,{container:"dt-container dt-material",table:"mdc-data-table__table",thead:{cell:"mdc-data-table__header-cell",row:"mdc-data-table__header-row"},tbody:{cell:"mdc-data-table__cell",row:"mdc-data-table__row"},search:{container:"dt-search inline-text-field-container",input:"mdc-text-field__input"},length:{select:"mdc-select-field"},processing:{container:"dt-processing panel panel-default"}}),DataTable.ext.renderer.pagingButton.material=function(a,e,t,l,d){var n=["mdc-button"],l=(l&&n.push("mdc-button--raised","mdc-button--colored"),d&&n.push("disabled"),$("<button>",{class:n.join(" "),disabled:d}).html(t));return{display:l,clicker:l}},DataTable.ext.renderer.pagingContainer.material=function(a,e){return $("<div/>").addClass("pagination").append(e)},DataTable.ext.renderer.layout.material=function(a,e,t){var e=$("<div/>",{class:"mdc-layout-grid"}).appendTo(e),l=$("<div/>",{class:"mdc-layout-grid__inner"}).appendTo(e);$.each(t,function(a,e){var t="";"start"===a?t+="mdc-layout-grid__cell mdc-layout-grid__cell--span-6":"end"===a?t+="mdc-layout-grid__cell mdc-layout-grid--align-right mdc-layout-grid__cell--span-6":"full"===a&&(t+="mdc-layout-grid__cell mdc-layout-grid__cell--span-12",e.table?l.addClass("dt-table mdc-data-table"):t+=""),$("<div/>",{id:e.id||null,class:t+" "+(e.className||"")}).append(e.contents).appendTo(l)})},DataTable.type("num","className","mdc-data-table__cell--numeric"),DataTable.type("num-fmt","className","mdc-data-table__cell--numeric");export default DataTable;
|
||||
@@ -0,0 +1,118 @@
|
||||
/*! DataTables Bootstrap 3 integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
|
||||
import jQuery from 'jquery';
|
||||
import DataTable from 'datatables.net';
|
||||
|
||||
// Allow reassignment of the $ variable
|
||||
let $ = jQuery;
|
||||
|
||||
|
||||
/**
|
||||
* DataTables integration for Material design
|
||||
*
|
||||
* This file sets the defaults and adds options to DataTables to style its
|
||||
* controls using Bootstrap. See https://datatables.net/manual/styling/bootstrap
|
||||
* for further information.
|
||||
*/
|
||||
|
||||
/* Set the defaults for DataTables initialisation */
|
||||
$.extend( true, DataTable.defaults, {
|
||||
renderer: 'material'
|
||||
} );
|
||||
|
||||
|
||||
/* Default class modification */
|
||||
$.extend( true, DataTable.ext.classes, {
|
||||
container: "dt-container dt-material",
|
||||
table: "mdc-data-table__table",
|
||||
thead: {
|
||||
cell: "mdc-data-table__header-cell",
|
||||
row: 'mdc-data-table__header-row'
|
||||
},
|
||||
tbody: {
|
||||
cell: "mdc-data-table__cell",
|
||||
row: "mdc-data-table__row"
|
||||
},
|
||||
search: {
|
||||
container: 'dt-search inline-text-field-container',
|
||||
input: "mdc-text-field__input"
|
||||
},
|
||||
length: {
|
||||
select: "mdc-select-field"
|
||||
},
|
||||
processing: {
|
||||
container: "dt-processing panel panel-default"
|
||||
}
|
||||
} );
|
||||
|
||||
DataTable.ext.renderer.pagingButton.material = function (settings, buttonType, content, active, disabled) {
|
||||
var btnClasses = ['mdc-button'];
|
||||
|
||||
if (active) {
|
||||
btnClasses.push('mdc-button--raised', 'mdc-button--colored');
|
||||
}
|
||||
|
||||
if (disabled) {
|
||||
btnClasses.push('disabled')
|
||||
}
|
||||
|
||||
var btn = $('<button>', {
|
||||
class: btnClasses.join(' '),
|
||||
disabled: disabled
|
||||
}).html(content);
|
||||
|
||||
return {
|
||||
display: btn,
|
||||
clicker: btn
|
||||
};
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.pagingContainer.material = function (settings, buttonEls) {
|
||||
return $('<div/>').addClass('pagination').append(buttonEls);
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.layout.material = function ( settings, container, items ) {
|
||||
var grid = $( '<div/>', {
|
||||
"class": 'mdc-layout-grid'
|
||||
} )
|
||||
.appendTo( container );
|
||||
|
||||
var gridInner = $( '<div/>', {
|
||||
"class": 'mdc-layout-grid__inner'
|
||||
} )
|
||||
.appendTo( grid );
|
||||
|
||||
$.each( items, function (key, val) {
|
||||
var klass = '';
|
||||
if ( key === 'start' ) {
|
||||
klass += 'mdc-layout-grid__cell mdc-layout-grid__cell--span-6';
|
||||
}
|
||||
else if ( key === 'end' ) {
|
||||
klass += 'mdc-layout-grid__cell mdc-layout-grid--align-right mdc-layout-grid__cell--span-6';
|
||||
}
|
||||
else if ( key === 'full' ) {
|
||||
klass += 'mdc-layout-grid__cell mdc-layout-grid__cell--span-12';
|
||||
if ( ! val.table ) {
|
||||
klass += '';
|
||||
}
|
||||
else {
|
||||
gridInner.addClass( 'dt-table mdc-data-table')
|
||||
}
|
||||
}
|
||||
|
||||
$( '<div/>', {
|
||||
id: val.id || null,
|
||||
"class": klass+' '+(val.className || '')
|
||||
} )
|
||||
.append( val.contents )
|
||||
.appendTo( gridInner );
|
||||
} );
|
||||
};
|
||||
|
||||
DataTable.type('num', 'className', 'mdc-data-table__cell--numeric');
|
||||
DataTable.type('num-fmt', 'className', 'mdc-data-table__cell--numeric');
|
||||
|
||||
|
||||
export default DataTable;
|
||||
4
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.min.js
vendored
Normal file
4
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
13547
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.mjs
Normal file
13547
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.mjs
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,129 @@
|
||||
/*! DataTables Bootstrap 3 integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
|
||||
(function( factory ){
|
||||
if ( typeof define === 'function' && define.amd ) {
|
||||
// AMD
|
||||
define( ['jquery', 'datatables.net'], function ( $ ) {
|
||||
return factory( $, window, document );
|
||||
} );
|
||||
}
|
||||
else if ( typeof exports === 'object' ) {
|
||||
// CommonJS
|
||||
var jq = require('jquery');
|
||||
var cjsRequires = function (root, $) {
|
||||
if ( ! $.fn.dataTable ) {
|
||||
require('datatables.net')(root, $);
|
||||
}
|
||||
};
|
||||
|
||||
if (typeof window === 'undefined') {
|
||||
module.exports = function (root, $) {
|
||||
if ( ! root ) {
|
||||
// CommonJS environments without a window global must pass a
|
||||
// root. This will give an error otherwise
|
||||
root = window;
|
||||
}
|
||||
|
||||
if ( ! $ ) {
|
||||
$ = jq( root );
|
||||
}
|
||||
|
||||
cjsRequires( root, $ );
|
||||
return factory( $, root, root.document );
|
||||
};
|
||||
}
|
||||
else {
|
||||
cjsRequires( window, jq );
|
||||
module.exports = factory( jq, window, window.document );
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Browser
|
||||
factory( jQuery, window, document );
|
||||
}
|
||||
}(function( $, window, document ) {
|
||||
'use strict';
|
||||
var DataTable = $.fn.dataTable;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* DataTables integration for FomanticUI (formally SemanticUI)
|
||||
*
|
||||
* This file sets the defaults and adds options to DataTables to style its
|
||||
* controls using Bootstrap. See https://datatables.net/manual/styling/bootstrap
|
||||
* for further information.
|
||||
*/
|
||||
|
||||
/* Set the defaults for DataTables initialisation */
|
||||
$.extend( true, DataTable.defaults, {
|
||||
renderer: 'semanticUI'
|
||||
} );
|
||||
|
||||
|
||||
/* Default class modification */
|
||||
$.extend( true, DataTable.ext.classes, {
|
||||
container: "dt-container dt-semanticUI",
|
||||
search: {
|
||||
input: "dt-search ui input"
|
||||
},
|
||||
processing: {
|
||||
container: "dt-processing ui segment"
|
||||
},
|
||||
table: 'dataTable table unstackable'
|
||||
} );
|
||||
|
||||
|
||||
/* Fomantic paging button renderer */
|
||||
DataTable.ext.renderer.pagingButton.semanticUI = function (settings, buttonType, content, active, disabled) {
|
||||
var btnClasses = ['dt-paging-button', 'item'];
|
||||
|
||||
if (active) {
|
||||
btnClasses.push('active');
|
||||
}
|
||||
|
||||
if (disabled) {
|
||||
btnClasses.push('disabled')
|
||||
}
|
||||
|
||||
var a = $('<'+(disabled ? 'div' : 'a')+'>', {
|
||||
'href': disabled ? null : '#',
|
||||
'class': 'page-link'
|
||||
})
|
||||
.addClass(btnClasses.join(' '))
|
||||
.html(content);
|
||||
|
||||
return {
|
||||
display: a,
|
||||
clicker: a
|
||||
};
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.pagingContainer.semanticUI = function (settings, buttonEls) {
|
||||
return $('<div/>').addClass('ui unstackable pagination menu').append(buttonEls);
|
||||
};
|
||||
|
||||
|
||||
// Javascript enhancements on table initialisation
|
||||
$(document).on( 'init.dt', function (e, ctx) {
|
||||
if ( e.namespace !== 'dt' ) {
|
||||
return;
|
||||
}
|
||||
|
||||
var api = new $.fn.dataTable.Api( ctx );
|
||||
|
||||
// Length menu drop down
|
||||
if ( $.fn.dropdown ) {
|
||||
$( 'div.dt-length select', api.table().container() ).dropdown();
|
||||
}
|
||||
|
||||
// Filtering input
|
||||
$( 'div.dt-search.ui.input', api.table().container() ).removeClass('input').addClass('form');
|
||||
$( 'div.dt-search input', api.table().container() ).wrap( '<span class="ui input" />' );
|
||||
} );
|
||||
|
||||
|
||||
return DataTable;
|
||||
}));
|
||||
4
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.semanticui.min.js
vendored
Normal file
4
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.semanticui.min.js
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/*! DataTables Bootstrap 3 integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
!function(t){var a,i;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?(a=require("jquery"),i=function(e,n){n.fn.dataTable||require("datatables.net")(e,n)},"undefined"==typeof window?module.exports=function(e,n){return e=e||window,n=n||a(e),i(e,n),t(n,0,e.document)}:(i(window,a),module.exports=t(a,window,window.document))):t(jQuery,window,document)}(function(r,e,n){"use strict";var t=r.fn.dataTable;return r.extend(!0,t.defaults,{renderer:"semanticUI"}),r.extend(!0,t.ext.classes,{container:"dt-container dt-semanticUI",search:{input:"dt-search ui input"},processing:{container:"dt-processing ui segment"},table:"dataTable table unstackable"}),t.ext.renderer.pagingButton.semanticUI=function(e,n,t,a,i){var d=["dt-paging-button","item"],a=(a&&d.push("active"),i&&d.push("disabled"),r("<"+(i?"div":"a")+">",{href:i?null:"#",class:"page-link"}).addClass(d.join(" ")).html(t));return{display:a,clicker:a}},t.ext.renderer.pagingContainer.semanticUI=function(e,n){return r("<div/>").addClass("ui unstackable pagination menu").append(n)},r(n).on("init.dt",function(e,n){"dt"===e.namespace&&(e=new r.fn.dataTable.Api(n),r.fn.dropdown&&r("div.dt-length select",e.table().container()).dropdown(),r("div.dt-search.ui.input",e.table().container()).removeClass("input").addClass("form"),r("div.dt-search input",e.table().container()).wrap('<span class="ui input" />'))}),t});
|
||||
@@ -0,0 +1,4 @@
|
||||
/*! DataTables Bootstrap 3 integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;$.extend(!0,DataTable.defaults,{renderer:"semanticUI"}),$.extend(!0,DataTable.ext.classes,{container:"dt-container dt-semanticUI",search:{input:"dt-search ui input"},processing:{container:"dt-processing ui segment"},table:"dataTable table unstackable"}),DataTable.ext.renderer.pagingButton.semanticUI=function(a,e,t,n,i){var r=["dt-paging-button","item"],n=(n&&r.push("active"),i&&r.push("disabled"),$("<"+(i?"div":"a")+">",{href:i?null:"#",class:"page-link"}).addClass(r.join(" ")).html(t));return{display:n,clicker:n}},DataTable.ext.renderer.pagingContainer.semanticUI=function(a,e){return $("<div/>").addClass("ui unstackable pagination menu").append(e)},$(document).on("init.dt",function(a,e){"dt"===a.namespace&&(a=new $.fn.dataTable.Api(e),$.fn.dropdown&&$("div.dt-length select",a.table().container()).dropdown(),$("div.dt-search.ui.input",a.table().container()).removeClass("input").addClass("form"),$("div.dt-search input",a.table().container()).wrap('<span class="ui input" />'))});export default DataTable;
|
||||
@@ -0,0 +1,88 @@
|
||||
/*! DataTables Bootstrap 3 integration
|
||||
* © SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
|
||||
import jQuery from 'jquery';
|
||||
import DataTable from 'datatables.net';
|
||||
|
||||
// Allow reassignment of the $ variable
|
||||
let $ = jQuery;
|
||||
|
||||
|
||||
/**
|
||||
* DataTables integration for FomanticUI (formally SemanticUI)
|
||||
*
|
||||
* This file sets the defaults and adds options to DataTables to style its
|
||||
* controls using Bootstrap. See https://datatables.net/manual/styling/bootstrap
|
||||
* for further information.
|
||||
*/
|
||||
|
||||
/* Set the defaults for DataTables initialisation */
|
||||
$.extend( true, DataTable.defaults, {
|
||||
renderer: 'semanticUI'
|
||||
} );
|
||||
|
||||
|
||||
/* Default class modification */
|
||||
$.extend( true, DataTable.ext.classes, {
|
||||
container: "dt-container dt-semanticUI",
|
||||
search: {
|
||||
input: "dt-search ui input"
|
||||
},
|
||||
processing: {
|
||||
container: "dt-processing ui segment"
|
||||
},
|
||||
table: 'dataTable table unstackable'
|
||||
} );
|
||||
|
||||
|
||||
/* Fomantic paging button renderer */
|
||||
DataTable.ext.renderer.pagingButton.semanticUI = function (settings, buttonType, content, active, disabled) {
|
||||
var btnClasses = ['dt-paging-button', 'item'];
|
||||
|
||||
if (active) {
|
||||
btnClasses.push('active');
|
||||
}
|
||||
|
||||
if (disabled) {
|
||||
btnClasses.push('disabled')
|
||||
}
|
||||
|
||||
var a = $('<'+(disabled ? 'div' : 'a')+'>', {
|
||||
'href': disabled ? null : '#',
|
||||
'class': 'page-link'
|
||||
})
|
||||
.addClass(btnClasses.join(' '))
|
||||
.html(content);
|
||||
|
||||
return {
|
||||
display: a,
|
||||
clicker: a
|
||||
};
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.pagingContainer.semanticUI = function (settings, buttonEls) {
|
||||
return $('<div/>').addClass('ui unstackable pagination menu').append(buttonEls);
|
||||
};
|
||||
|
||||
|
||||
// Javascript enhancements on table initialisation
|
||||
$(document).on( 'init.dt', function (e, ctx) {
|
||||
if ( e.namespace !== 'dt' ) {
|
||||
return;
|
||||
}
|
||||
|
||||
var api = new $.fn.dataTable.Api( ctx );
|
||||
|
||||
// Length menu drop down
|
||||
if ( $.fn.dropdown ) {
|
||||
$( 'div.dt-length select', api.table().container() ).dropdown();
|
||||
}
|
||||
|
||||
// Filtering input
|
||||
$( 'div.dt-search.ui.input', api.table().container() ).removeClass('input').addClass('form');
|
||||
$( 'div.dt-search input', api.table().container() ).wrap( '<span class="ui input" />' );
|
||||
} );
|
||||
|
||||
|
||||
export default DataTable;
|
||||
@@ -0,0 +1,161 @@
|
||||
/*! DataTables Tailwind CSS integration
|
||||
*/
|
||||
|
||||
(function( factory ){
|
||||
if ( typeof define === 'function' && define.amd ) {
|
||||
// AMD
|
||||
define( ['jquery', 'datatables.net'], function ( $ ) {
|
||||
return factory( $, window, document );
|
||||
} );
|
||||
}
|
||||
else if ( typeof exports === 'object' ) {
|
||||
// CommonJS
|
||||
var jq = require('jquery');
|
||||
var cjsRequires = function (root, $) {
|
||||
if ( ! $.fn.dataTable ) {
|
||||
require('datatables.net')(root, $);
|
||||
}
|
||||
};
|
||||
|
||||
if (typeof window === 'undefined') {
|
||||
module.exports = function (root, $) {
|
||||
if ( ! root ) {
|
||||
// CommonJS environments without a window global must pass a
|
||||
// root. This will give an error otherwise
|
||||
root = window;
|
||||
}
|
||||
|
||||
if ( ! $ ) {
|
||||
$ = jq( root );
|
||||
}
|
||||
|
||||
cjsRequires( root, $ );
|
||||
return factory( $, root, root.document );
|
||||
};
|
||||
}
|
||||
else {
|
||||
cjsRequires( window, jq );
|
||||
module.exports = factory( jq, window, window.document );
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Browser
|
||||
factory( jQuery, window, document );
|
||||
}
|
||||
}(function( $, window, document ) {
|
||||
'use strict';
|
||||
var DataTable = $.fn.dataTable;
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* This is a tech preview of Tailwind CSS integration with DataTables.
|
||||
*/
|
||||
|
||||
// Set the defaults for DataTables initialisation
|
||||
$.extend( true, DataTable.defaults, {
|
||||
renderer: 'tailwindcss'
|
||||
} );
|
||||
|
||||
|
||||
// Default class modification
|
||||
$.extend( true, DataTable.ext.classes, {
|
||||
container: "dt-container dt-tailwindcss",
|
||||
search: {
|
||||
input: "border placeholder-gray-500 ml-2 px-3 py-2 rounded-lg border-gray-200 focus:border-blue-500 focus:ring focus:ring-blue-500 focus:ring-opacity-50 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500 dark:placeholder-gray-400"
|
||||
},
|
||||
length: {
|
||||
select: "border px-3 py-2 rounded-lg border-gray-200 focus:border-blue-500 focus:ring focus:ring-blue-500 focus:ring-opacity-50 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500"
|
||||
},
|
||||
processing: {
|
||||
container: "dt-processing"
|
||||
},
|
||||
paging: {
|
||||
active: 'font-semibold bg-gray-100 dark:bg-gray-700/75',
|
||||
notActive: 'bg-white dark:bg-gray-800',
|
||||
button: 'relative inline-flex justify-center items-center space-x-2 border px-4 py-2 -mr-px leading-6 hover:z-10 focus:z-10 active:z-10 border-gray-200 active:border-gray-200 active:shadow-none dark:border-gray-700 dark:active:border-gray-700',
|
||||
first: 'rounded-l-lg',
|
||||
last: 'rounded-r-lg',
|
||||
enabled: 'text-gray-800 hover:text-gray-900 hover:border-gray-300 hover:shadow-sm focus:ring focus:ring-gray-300 focus:ring-opacity-25 dark:text-gray-300 dark:hover:border-gray-600 dark:hover:text-gray-200 dark:focus:ring-gray-600 dark:focus:ring-opacity-40',
|
||||
notEnabled: 'text-gray-300 dark:text-gray-600'
|
||||
},
|
||||
table: 'dataTable min-w-full text-sm align-middle whitespace-nowrap',
|
||||
thead: {
|
||||
row: 'border-b border-gray-100 dark:border-gray-700/50',
|
||||
cell: 'px-3 py-4 text-gray-900 bg-gray-100/75 font-semibold text-left dark:text-gray-50 dark:bg-gray-700/25'
|
||||
},
|
||||
tbody: {
|
||||
row: 'even:bg-gray-50 dark:even:bg-gray-900/50',
|
||||
cell: 'p-3'
|
||||
},
|
||||
tfoot: {
|
||||
row: 'even:bg-gray-50 dark:even:bg-gray-900/50',
|
||||
cell: 'p-3 text-left'
|
||||
},
|
||||
} );
|
||||
|
||||
DataTable.ext.renderer.pagingButton.tailwindcss = function (settings, buttonType, content, active, disabled) {
|
||||
var classes = settings.oClasses.paging;
|
||||
var btnClasses = [classes.button];
|
||||
|
||||
btnClasses.push(active ? classes.active : classes.notActive);
|
||||
btnClasses.push(disabled ? classes.notEnabled : classes.enabled);
|
||||
|
||||
var a = $('<a>', {
|
||||
'href': disabled ? null : '#',
|
||||
'class': btnClasses.join(' ')
|
||||
})
|
||||
.html(content);
|
||||
|
||||
return {
|
||||
display: a,
|
||||
clicker: a
|
||||
};
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.pagingContainer.tailwindcss = function (settings, buttonEls) {
|
||||
var classes = settings.oClasses.paging;
|
||||
|
||||
buttonEls[0].addClass(classes.first);
|
||||
buttonEls[buttonEls.length -1].addClass(classes.last);
|
||||
|
||||
return $('<ul/>').addClass('pagination').append(buttonEls);
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.layout.tailwindcss = function ( settings, container, items ) {
|
||||
var row = $( '<div/>', {
|
||||
"class": items.full ?
|
||||
'grid grid-cols-1 gap-4 mb-4' :
|
||||
'grid grid-cols-2 gap-4 mb-4'
|
||||
} )
|
||||
.appendTo( container );
|
||||
|
||||
$.each( items, function (key, val) {
|
||||
var klass;
|
||||
|
||||
// Apply start / end (left / right when ltr) margins
|
||||
if (val.table) {
|
||||
klass = 'col-span-2';
|
||||
}
|
||||
else if (key === 'start') {
|
||||
klass = 'justify-self-start';
|
||||
}
|
||||
else if (key === 'end') {
|
||||
klass = 'col-start-2 justify-self-end';
|
||||
}
|
||||
else {
|
||||
klass = 'col-span-2 justify-self-center';
|
||||
}
|
||||
|
||||
$( '<div/>', {
|
||||
id: val.id || null,
|
||||
"class": klass + ' ' + (val.className || '')
|
||||
} )
|
||||
.append( val.contents )
|
||||
.appendTo( row );
|
||||
} );
|
||||
};
|
||||
|
||||
|
||||
return DataTable;
|
||||
}));
|
||||
3
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.tailwindcss.min.js
vendored
Normal file
3
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.tailwindcss.min.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/*! DataTables Tailwind CSS integration
|
||||
*/
|
||||
!function(a){var t,n;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return a(e,window,document)}):"object"==typeof exports?(t=require("jquery"),n=function(e,r){r.fn.dataTable||require("datatables.net")(e,r)},"undefined"==typeof window?module.exports=function(e,r){return e=e||window,r=r||t(e),n(e,r),a(r,0,e.document)}:(n(window,t),module.exports=a(t,window,window.document))):a(jQuery,window,document)}(function(o,e,r){"use strict";var a=o.fn.dataTable;return o.extend(!0,a.defaults,{renderer:"tailwindcss"}),o.extend(!0,a.ext.classes,{container:"dt-container dt-tailwindcss",search:{input:"border placeholder-gray-500 ml-2 px-3 py-2 rounded-lg border-gray-200 focus:border-blue-500 focus:ring focus:ring-blue-500 focus:ring-opacity-50 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500 dark:placeholder-gray-400"},length:{select:"border px-3 py-2 rounded-lg border-gray-200 focus:border-blue-500 focus:ring focus:ring-blue-500 focus:ring-opacity-50 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500"},processing:{container:"dt-processing"},paging:{active:"font-semibold bg-gray-100 dark:bg-gray-700/75",notActive:"bg-white dark:bg-gray-800",button:"relative inline-flex justify-center items-center space-x-2 border px-4 py-2 -mr-px leading-6 hover:z-10 focus:z-10 active:z-10 border-gray-200 active:border-gray-200 active:shadow-none dark:border-gray-700 dark:active:border-gray-700",first:"rounded-l-lg",last:"rounded-r-lg",enabled:"text-gray-800 hover:text-gray-900 hover:border-gray-300 hover:shadow-sm focus:ring focus:ring-gray-300 focus:ring-opacity-25 dark:text-gray-300 dark:hover:border-gray-600 dark:hover:text-gray-200 dark:focus:ring-gray-600 dark:focus:ring-opacity-40",notEnabled:"text-gray-300 dark:text-gray-600"},table:"dataTable min-w-full text-sm align-middle whitespace-nowrap",thead:{row:"border-b border-gray-100 dark:border-gray-700/50",cell:"px-3 py-4 text-gray-900 bg-gray-100/75 font-semibold text-left dark:text-gray-50 dark:bg-gray-700/25"},tbody:{row:"even:bg-gray-50 dark:even:bg-gray-900/50",cell:"p-3"},tfoot:{row:"even:bg-gray-50 dark:even:bg-gray-900/50",cell:"p-3 text-left"}}),a.ext.renderer.pagingButton.tailwindcss=function(e,r,a,t,n){var e=e.oClasses.paging,d=[e.button],t=(d.push(t?e.active:e.notActive),d.push(n?e.notEnabled:e.enabled),o("<a>",{href:n?null:"#",class:d.join(" ")}).html(a));return{display:t,clicker:t}},a.ext.renderer.pagingContainer.tailwindcss=function(e,r){e=e.oClasses.paging;return r[0].addClass(e.first),r[r.length-1].addClass(e.last),o("<ul/>").addClass("pagination").append(r)},a.ext.renderer.layout.tailwindcss=function(e,r,a){var t=o("<div/>",{class:a.full?"grid grid-cols-1 gap-4 mb-4":"grid grid-cols-2 gap-4 mb-4"}).appendTo(r);o.each(a,function(e,r){e=r.table?"col-span-2":"start"===e?"justify-self-start":"end"===e?"col-start-2 justify-self-end":"col-span-2 justify-self-center";o("<div/>",{id:r.id||null,class:e+" "+(r.className||"")}).append(r.contents).appendTo(t)})},a});
|
||||
@@ -0,0 +1,3 @@
|
||||
/*! DataTables Tailwind CSS integration
|
||||
*/
|
||||
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;$.extend(!0,DataTable.defaults,{renderer:"tailwindcss"}),$.extend(!0,DataTable.ext.classes,{container:"dt-container dt-tailwindcss",search:{input:"border placeholder-gray-500 ml-2 px-3 py-2 rounded-lg border-gray-200 focus:border-blue-500 focus:ring focus:ring-blue-500 focus:ring-opacity-50 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500 dark:placeholder-gray-400"},length:{select:"border px-3 py-2 rounded-lg border-gray-200 focus:border-blue-500 focus:ring focus:ring-blue-500 focus:ring-opacity-50 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500"},processing:{container:"dt-processing"},paging:{active:"font-semibold bg-gray-100 dark:bg-gray-700/75",notActive:"bg-white dark:bg-gray-800",button:"relative inline-flex justify-center items-center space-x-2 border px-4 py-2 -mr-px leading-6 hover:z-10 focus:z-10 active:z-10 border-gray-200 active:border-gray-200 active:shadow-none dark:border-gray-700 dark:active:border-gray-700",first:"rounded-l-lg",last:"rounded-r-lg",enabled:"text-gray-800 hover:text-gray-900 hover:border-gray-300 hover:shadow-sm focus:ring focus:ring-gray-300 focus:ring-opacity-25 dark:text-gray-300 dark:hover:border-gray-600 dark:hover:text-gray-200 dark:focus:ring-gray-600 dark:focus:ring-opacity-40",notEnabled:"text-gray-300 dark:text-gray-600"},table:"dataTable min-w-full text-sm align-middle whitespace-nowrap",thead:{row:"border-b border-gray-100 dark:border-gray-700/50",cell:"px-3 py-4 text-gray-900 bg-gray-100/75 font-semibold text-left dark:text-gray-50 dark:bg-gray-700/25"},tbody:{row:"even:bg-gray-50 dark:even:bg-gray-900/50",cell:"p-3"},tfoot:{row:"even:bg-gray-50 dark:even:bg-gray-900/50",cell:"p-3 text-left"}}),DataTable.ext.renderer.pagingButton.tailwindcss=function(r,e,a,t,d){var r=r.oClasses.paging,o=[r.button],t=(o.push(t?r.active:r.notActive),o.push(d?r.notEnabled:r.enabled),$("<a>",{href:d?null:"#",class:o.join(" ")}).html(a));return{display:t,clicker:t}},DataTable.ext.renderer.pagingContainer.tailwindcss=function(r,e){r=r.oClasses.paging;return e[0].addClass(r.first),e[e.length-1].addClass(r.last),$("<ul/>").addClass("pagination").append(e)},DataTable.ext.renderer.layout.tailwindcss=function(r,e,a){var t=$("<div/>",{class:a.full?"grid grid-cols-1 gap-4 mb-4":"grid grid-cols-2 gap-4 mb-4"}).appendTo(e);$.each(a,function(r,e){r=e.table?"col-span-2":"start"===r?"justify-self-start":"end"===r?"col-start-2 justify-self-end":"col-span-2 justify-self-center";$("<div/>",{id:e.id||null,class:r+" "+(e.className||"")}).append(e.contents).appendTo(t)})};export default DataTable;
|
||||
@@ -0,0 +1,120 @@
|
||||
/*! DataTables Tailwind CSS integration
|
||||
*/
|
||||
|
||||
import jQuery from 'jquery';
|
||||
import DataTable from 'datatables.net';
|
||||
|
||||
// Allow reassignment of the $ variable
|
||||
let $ = jQuery;
|
||||
|
||||
|
||||
/*
|
||||
* This is a tech preview of Tailwind CSS integration with DataTables.
|
||||
*/
|
||||
|
||||
// Set the defaults for DataTables initialisation
|
||||
$.extend( true, DataTable.defaults, {
|
||||
renderer: 'tailwindcss'
|
||||
} );
|
||||
|
||||
|
||||
// Default class modification
|
||||
$.extend( true, DataTable.ext.classes, {
|
||||
container: "dt-container dt-tailwindcss",
|
||||
search: {
|
||||
input: "border placeholder-gray-500 ml-2 px-3 py-2 rounded-lg border-gray-200 focus:border-blue-500 focus:ring focus:ring-blue-500 focus:ring-opacity-50 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500 dark:placeholder-gray-400"
|
||||
},
|
||||
length: {
|
||||
select: "border px-3 py-2 rounded-lg border-gray-200 focus:border-blue-500 focus:ring focus:ring-blue-500 focus:ring-opacity-50 dark:bg-gray-800 dark:border-gray-600 dark:focus:border-blue-500"
|
||||
},
|
||||
processing: {
|
||||
container: "dt-processing"
|
||||
},
|
||||
paging: {
|
||||
active: 'font-semibold bg-gray-100 dark:bg-gray-700/75',
|
||||
notActive: 'bg-white dark:bg-gray-800',
|
||||
button: 'relative inline-flex justify-center items-center space-x-2 border px-4 py-2 -mr-px leading-6 hover:z-10 focus:z-10 active:z-10 border-gray-200 active:border-gray-200 active:shadow-none dark:border-gray-700 dark:active:border-gray-700',
|
||||
first: 'rounded-l-lg',
|
||||
last: 'rounded-r-lg',
|
||||
enabled: 'text-gray-800 hover:text-gray-900 hover:border-gray-300 hover:shadow-sm focus:ring focus:ring-gray-300 focus:ring-opacity-25 dark:text-gray-300 dark:hover:border-gray-600 dark:hover:text-gray-200 dark:focus:ring-gray-600 dark:focus:ring-opacity-40',
|
||||
notEnabled: 'text-gray-300 dark:text-gray-600'
|
||||
},
|
||||
table: 'dataTable min-w-full text-sm align-middle whitespace-nowrap',
|
||||
thead: {
|
||||
row: 'border-b border-gray-100 dark:border-gray-700/50',
|
||||
cell: 'px-3 py-4 text-gray-900 bg-gray-100/75 font-semibold text-left dark:text-gray-50 dark:bg-gray-700/25'
|
||||
},
|
||||
tbody: {
|
||||
row: 'even:bg-gray-50 dark:even:bg-gray-900/50',
|
||||
cell: 'p-3'
|
||||
},
|
||||
tfoot: {
|
||||
row: 'even:bg-gray-50 dark:even:bg-gray-900/50',
|
||||
cell: 'p-3 text-left'
|
||||
},
|
||||
} );
|
||||
|
||||
DataTable.ext.renderer.pagingButton.tailwindcss = function (settings, buttonType, content, active, disabled) {
|
||||
var classes = settings.oClasses.paging;
|
||||
var btnClasses = [classes.button];
|
||||
|
||||
btnClasses.push(active ? classes.active : classes.notActive);
|
||||
btnClasses.push(disabled ? classes.notEnabled : classes.enabled);
|
||||
|
||||
var a = $('<a>', {
|
||||
'href': disabled ? null : '#',
|
||||
'class': btnClasses.join(' ')
|
||||
})
|
||||
.html(content);
|
||||
|
||||
return {
|
||||
display: a,
|
||||
clicker: a
|
||||
};
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.pagingContainer.tailwindcss = function (settings, buttonEls) {
|
||||
var classes = settings.oClasses.paging;
|
||||
|
||||
buttonEls[0].addClass(classes.first);
|
||||
buttonEls[buttonEls.length -1].addClass(classes.last);
|
||||
|
||||
return $('<ul/>').addClass('pagination').append(buttonEls);
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.layout.tailwindcss = function ( settings, container, items ) {
|
||||
var row = $( '<div/>', {
|
||||
"class": items.full ?
|
||||
'grid grid-cols-1 gap-4 mb-4' :
|
||||
'grid grid-cols-2 gap-4 mb-4'
|
||||
} )
|
||||
.appendTo( container );
|
||||
|
||||
$.each( items, function (key, val) {
|
||||
var klass;
|
||||
|
||||
// Apply start / end (left / right when ltr) margins
|
||||
if (val.table) {
|
||||
klass = 'col-span-2';
|
||||
}
|
||||
else if (key === 'start') {
|
||||
klass = 'justify-self-start';
|
||||
}
|
||||
else if (key === 'end') {
|
||||
klass = 'col-start-2 justify-self-end';
|
||||
}
|
||||
else {
|
||||
klass = 'col-span-2 justify-self-center';
|
||||
}
|
||||
|
||||
$( '<div/>', {
|
||||
id: val.id || null,
|
||||
"class": klass + ' ' + (val.className || '')
|
||||
} )
|
||||
.append( val.contents )
|
||||
.appendTo( row );
|
||||
} );
|
||||
};
|
||||
|
||||
|
||||
export default DataTable;
|
||||
@@ -0,0 +1,137 @@
|
||||
/*! DataTables UIkit 3 integration
|
||||
*/
|
||||
|
||||
(function( factory ){
|
||||
if ( typeof define === 'function' && define.amd ) {
|
||||
// AMD
|
||||
define( ['jquery', 'datatables.net'], function ( $ ) {
|
||||
return factory( $, window, document );
|
||||
} );
|
||||
}
|
||||
else if ( typeof exports === 'object' ) {
|
||||
// CommonJS
|
||||
var jq = require('jquery');
|
||||
var cjsRequires = function (root, $) {
|
||||
if ( ! $.fn.dataTable ) {
|
||||
require('datatables.net')(root, $);
|
||||
}
|
||||
};
|
||||
|
||||
if (typeof window === 'undefined') {
|
||||
module.exports = function (root, $) {
|
||||
if ( ! root ) {
|
||||
// CommonJS environments without a window global must pass a
|
||||
// root. This will give an error otherwise
|
||||
root = window;
|
||||
}
|
||||
|
||||
if ( ! $ ) {
|
||||
$ = jq( root );
|
||||
}
|
||||
|
||||
cjsRequires( root, $ );
|
||||
return factory( $, root, root.document );
|
||||
};
|
||||
}
|
||||
else {
|
||||
cjsRequires( window, jq );
|
||||
module.exports = factory( jq, window, window.document );
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Browser
|
||||
factory( jQuery, window, document );
|
||||
}
|
||||
}(function( $, window, document ) {
|
||||
'use strict';
|
||||
var DataTable = $.fn.dataTable;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* This is a tech preview of UIKit integration with DataTables.
|
||||
*/
|
||||
|
||||
/* Set the defaults for DataTables initialisation */
|
||||
$.extend( true, DataTable.defaults, {
|
||||
renderer: 'uikit'
|
||||
} );
|
||||
|
||||
|
||||
/* Default class modification */
|
||||
$.extend( true, DataTable.ext.classes, {
|
||||
table: "dt-container uk-form dt-uikit",
|
||||
search: {
|
||||
input: "uk-form-small uk-input"
|
||||
},
|
||||
length: {
|
||||
select: "uk-form-small uk-select"
|
||||
},
|
||||
processing: {
|
||||
container: "dt-processing uk-panel"
|
||||
}
|
||||
} );
|
||||
|
||||
DataTable.ext.renderer.pagingButton.uikit = function (settings, buttonType, content, active, disabled) {
|
||||
var btnClasses = [];
|
||||
|
||||
if (active) {
|
||||
btnClasses.push('uk-active');
|
||||
}
|
||||
|
||||
if (disabled) {
|
||||
btnClasses.push('uk-disabled')
|
||||
}
|
||||
|
||||
var li = $('<li>').addClass(btnClasses.join(' '));
|
||||
var a = $(disabled ? '<span>' : '<a>', {
|
||||
'href': disabled ? null : '#'
|
||||
})
|
||||
.html(content)
|
||||
.appendTo(li);
|
||||
|
||||
return {
|
||||
display: li,
|
||||
clicker: a
|
||||
};
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.pagingContainer.uikit = function (settings, buttonEls) {
|
||||
return $('<ul/>').addClass('uk-pagination uk-pagination-right uk-flex-right').append(buttonEls);
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.layout.uikit = function ( settings, container, items ) {
|
||||
var row = $( '<div/>', {
|
||||
"class": 'uk-flex uk-flex-between'
|
||||
} )
|
||||
.appendTo( container );
|
||||
|
||||
$.each( items, function (key, val) {
|
||||
var klass = '';
|
||||
if ( key === 'start' ) {
|
||||
klass += 'uk-text-left';
|
||||
}
|
||||
else if ( key === 'end' ) {
|
||||
klass += 'uk-text-right';
|
||||
}
|
||||
else if ( key === 'full' ) {
|
||||
if ( val.table ) {
|
||||
klass += 'uk-width-1-1';
|
||||
}
|
||||
else {
|
||||
klass += 'uk-text-center';
|
||||
}
|
||||
}
|
||||
|
||||
$( '<div/>', {
|
||||
id: val.id || null,
|
||||
"class": klass+' '+(val.className || '')
|
||||
} )
|
||||
.append( val.contents )
|
||||
.appendTo( row );
|
||||
} );
|
||||
};
|
||||
|
||||
|
||||
return DataTable;
|
||||
}));
|
||||
3
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.uikit.min.js
vendored
Normal file
3
bin/Release/assets/html/libs/DataTables-2.1.8/js/dataTables.uikit.min.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/*! DataTables UIkit 3 integration
|
||||
*/
|
||||
!function(n){var i,u;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return n(e,window,document)}):"object"==typeof exports?(i=require("jquery"),u=function(e,t){t.fn.dataTable||require("datatables.net")(e,t)},"undefined"==typeof window?module.exports=function(e,t){return e=e||window,t=t||i(e),u(e,t),n(t,0,e.document)}:(u(window,i),module.exports=n(i,window,window.document))):n(jQuery,window,document)}(function(r,e,t){"use strict";var n=r.fn.dataTable;return r.extend(!0,n.defaults,{renderer:"uikit"}),r.extend(!0,n.ext.classes,{table:"dt-container uk-form dt-uikit",search:{input:"uk-form-small uk-input"},length:{select:"uk-form-small uk-select"},processing:{container:"dt-processing uk-panel"}}),n.ext.renderer.pagingButton.uikit=function(e,t,n,i,u){var a=[],i=(i&&a.push("uk-active"),u&&a.push("uk-disabled"),r("<li>").addClass(a.join(" ")));return{display:i,clicker:r(u?"<span>":"<a>",{href:u?null:"#"}).html(n).appendTo(i)}},n.ext.renderer.pagingContainer.uikit=function(e,t){return r("<ul/>").addClass("uk-pagination uk-pagination-right uk-flex-right").append(t)},n.ext.renderer.layout.uikit=function(e,t,n){var i=r("<div/>",{class:"uk-flex uk-flex-between"}).appendTo(t);r.each(n,function(e,t){var n="";"start"===e?n+="uk-text-left":"end"===e?n+="uk-text-right":"full"===e&&(t.table?n+="uk-width-1-1":n+="uk-text-center"),r("<div/>",{id:t.id||null,class:n+" "+(t.className||"")}).append(t.contents).appendTo(i)})},n});
|
||||
@@ -0,0 +1,3 @@
|
||||
/*! DataTables UIkit 3 integration
|
||||
*/
|
||||
import jQuery from"jquery";import DataTable from"datatables.net";let $=jQuery;$.extend(!0,DataTable.defaults,{renderer:"uikit"}),$.extend(!0,DataTable.ext.classes,{table:"dt-container uk-form dt-uikit",search:{input:"uk-form-small uk-input"},length:{select:"uk-form-small uk-select"},processing:{container:"dt-processing uk-panel"}}),DataTable.ext.renderer.pagingButton.uikit=function(e,t,a,n,l){var i=[],n=(n&&i.push("uk-active"),l&&i.push("uk-disabled"),$("<li>").addClass(i.join(" ")));return{display:n,clicker:$(l?"<span>":"<a>",{href:l?null:"#"}).html(a).appendTo(n)}},DataTable.ext.renderer.pagingContainer.uikit=function(e,t){return $("<ul/>").addClass("uk-pagination uk-pagination-right uk-flex-right").append(t)},DataTable.ext.renderer.layout.uikit=function(e,t,a){var n=$("<div/>",{class:"uk-flex uk-flex-between"}).appendTo(t);$.each(a,function(e,t){var a="";"start"===e?a+="uk-text-left":"end"===e?a+="uk-text-right":"full"===e&&(t.table?a+="uk-width-1-1":a+="uk-text-center"),$("<div/>",{id:t.id||null,class:a+" "+(t.className||"")}).append(t.contents).appendTo(n)})};export default DataTable;
|
||||
@@ -0,0 +1,96 @@
|
||||
/*! DataTables UIkit 3 integration
|
||||
*/
|
||||
|
||||
import jQuery from 'jquery';
|
||||
import DataTable from 'datatables.net';
|
||||
|
||||
// Allow reassignment of the $ variable
|
||||
let $ = jQuery;
|
||||
|
||||
|
||||
/**
|
||||
* This is a tech preview of UIKit integration with DataTables.
|
||||
*/
|
||||
|
||||
/* Set the defaults for DataTables initialisation */
|
||||
$.extend( true, DataTable.defaults, {
|
||||
renderer: 'uikit'
|
||||
} );
|
||||
|
||||
|
||||
/* Default class modification */
|
||||
$.extend( true, DataTable.ext.classes, {
|
||||
table: "dt-container uk-form dt-uikit",
|
||||
search: {
|
||||
input: "uk-form-small uk-input"
|
||||
},
|
||||
length: {
|
||||
select: "uk-form-small uk-select"
|
||||
},
|
||||
processing: {
|
||||
container: "dt-processing uk-panel"
|
||||
}
|
||||
} );
|
||||
|
||||
DataTable.ext.renderer.pagingButton.uikit = function (settings, buttonType, content, active, disabled) {
|
||||
var btnClasses = [];
|
||||
|
||||
if (active) {
|
||||
btnClasses.push('uk-active');
|
||||
}
|
||||
|
||||
if (disabled) {
|
||||
btnClasses.push('uk-disabled')
|
||||
}
|
||||
|
||||
var li = $('<li>').addClass(btnClasses.join(' '));
|
||||
var a = $(disabled ? '<span>' : '<a>', {
|
||||
'href': disabled ? null : '#'
|
||||
})
|
||||
.html(content)
|
||||
.appendTo(li);
|
||||
|
||||
return {
|
||||
display: li,
|
||||
clicker: a
|
||||
};
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.pagingContainer.uikit = function (settings, buttonEls) {
|
||||
return $('<ul/>').addClass('uk-pagination uk-pagination-right uk-flex-right').append(buttonEls);
|
||||
};
|
||||
|
||||
DataTable.ext.renderer.layout.uikit = function ( settings, container, items ) {
|
||||
var row = $( '<div/>', {
|
||||
"class": 'uk-flex uk-flex-between'
|
||||
} )
|
||||
.appendTo( container );
|
||||
|
||||
$.each( items, function (key, val) {
|
||||
var klass = '';
|
||||
if ( key === 'start' ) {
|
||||
klass += 'uk-text-left';
|
||||
}
|
||||
else if ( key === 'end' ) {
|
||||
klass += 'uk-text-right';
|
||||
}
|
||||
else if ( key === 'full' ) {
|
||||
if ( val.table ) {
|
||||
klass += 'uk-width-1-1';
|
||||
}
|
||||
else {
|
||||
klass += 'uk-text-center';
|
||||
}
|
||||
}
|
||||
|
||||
$( '<div/>', {
|
||||
id: val.id || null,
|
||||
"class": klass+' '+(val.className || '')
|
||||
} )
|
||||
.append( val.contents )
|
||||
.appendTo( row );
|
||||
} );
|
||||
};
|
||||
|
||||
|
||||
export default DataTable;
|
||||
Reference in New Issue
Block a user