first commit

This commit is contained in:
2019-08-13 23:32:13 +02:00
commit 89ae9f3a3a
141 changed files with 168907 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
$open-button-background: #337ab7 !default;
@import 'responsive.dataTables.scss';

View File

@@ -0,0 +1,241 @@
//
// Variables
//
$open-button-background: #31b131 !default;
$close-button-background: #d33333 !default;
//
// Mixins
//
@mixin control() {
display: block;
position: absolute;
color: white;
border: 2px solid white;
border-radius: 16px;
box-shadow: 0 0 3px #444;
box-sizing: content-box;
text-align: left;
// Use Courier New because it is common and consistent
font-family: 'Courier New', Courier, monospace;
text-indent: 4px;
line-height: 16px;
}
@mixin control-open() {
content: '+';
background-color: $open-button-background;
}
@mixin control-close() {
content: '-';
background-color: $close-button-background;
}
//
// Table styles
//
table.dataTable {
// Styling for the `inline` type
&.dtr-inline.collapsed > tbody {
> tr {
> td.child,
> th.child,
> td.dataTables_empty {
cursor: default !important;
&:before {
display: none !important;
}
}
}
> tr > td:first-child,
> tr > th:first-child {
position: relative;
padding-left: 30px;
cursor: pointer;
&:before {
top: 8px;
left: 4px;
height: 16px;
width: 16px;
@include control;
@include control-open;
}
}
> tr.parent {
> td:first-child:before,
> th:first-child:before {
@include control-close;
}
}
> tr.child td:before {
display: none;
}
}
// DataTables' `compact` styling
&.dtr-inline.collapsed.compact > tbody {
> tr > td:first-child,
> tr > th:first-child {
padding-left: 27px;
&:before {
top: 5px;
left: 4px;
height: 14px;
width: 14px;
border-radius: 14px;
line-height: 14px;
text-indent: 3px;
}
}
}
// Styling for the `column` type
&.dtr-column > tbody {
> tr > td.control,
> tr > th.control {
position: relative;
cursor: pointer;
&:before {
top: 50%;
left: 50%;
height: 16px;
width: 16px;
margin-top: -10px;
margin-left: -10px;
@include control;
@include control-open;
}
}
> tr.parent {
td.control:before,
th.control:before {
@include control-close;
}
}
}
// Child row styling
> tbody > tr.child {
padding: 0.5em 1em;
&:hover {
background: transparent !important;
}
ul {
display: inline-block;
list-style-type: none;
margin: 0;
padding: 0;
li {
border-bottom: 1px solid #efefef;
padding: 0.5em 0;
&:first-child {
padding-top: 0;
}
&:last-child {
border-bottom: none;
}
}
}
span.dtr-title {
display: inline-block;
min-width: 75px;
font-weight: bold;
}
span.dtr-data {}
}
}
div.dtr-modal {
position: fixed;
box-sizing: border-box;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 100;
padding: 10em 1em;
div.dtr-modal-display {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
width: 50%;
height: 50%;
overflow: auto;
margin: auto;
z-index: 102;
overflow: auto;
background-color: #f5f5f7;
border: 1px solid black;
border-radius: 0.5em;
box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}
div.dtr-modal-content {
position: relative;
padding: 1em;
}
div.dtr-modal-close {
position: absolute;
top: 6px;
right: 6px;
width: 22px;
height: 22px;
border: 1px solid #eaeaea;
background-color: #f9f9f9;
text-align: center;
border-radius: 3px;
cursor: pointer;
z-index: 12;
&:hover {
background-color: #eaeaea;
}
}
div.dtr-modal-background {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 101;
background: rgba(0,0,0,0.6);
}
}
@media screen and (max-width: 767px) {
div.dtr-modal div.dtr-modal-display {
width: 95%;
}
}

View File

@@ -0,0 +1,10 @@
$open-button-background: #008CBA !default;
@import 'responsive.dataTables.scss';
table.dataTable > tbody > tr.child {
ul {
font-size: 1em;
}
}

View File

@@ -0,0 +1,2 @@
@import 'responsive.dataTables.scss';

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,78 @@
/*! Bootstrap integration for DataTables' Responsive
* ©2015 SpryMedia Ltd - datatables.net/license
*/
(function( factory ){
if ( typeof define === 'function' && define.amd ) {
// AMD
define( ['jquery', 'datatables.net-bs', 'datatables.net-responsive'], function ( $ ) {
return factory( $, window, document );
} );
}
else if ( typeof exports === 'object' ) {
// CommonJS
module.exports = function (root, $) {
if ( ! root ) {
root = window;
}
if ( ! $ || ! $.fn.dataTable ) {
$ = require('datatables.net-bs')(root, $).$;
}
if ( ! $.fn.dataTable.Responsive ) {
require('datatables.net-responsive')(root, $);
}
return factory( $, root, root.document );
};
}
else {
// Browser
factory( jQuery, window, document );
}
}(function( $, window, document, undefined ) {
'use strict';
var DataTable = $.fn.dataTable;
var _display = DataTable.Responsive.display;
var _original = _display.modal;
_display.modal = function ( options ) {
return function ( row, update, render ) {
if ( ! $.fn.modal ) {
_original( row, update, render );
}
else {
if ( ! update ) {
var modal = $(
'<div class="modal fade" role="dialog">'+
'<div class="modal-dialog" role="document">'+
'<div class="modal-content">'+
'<div class="modal-header">'+
'<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>'+
'</div>'+
'<div class="modal-body"/>'+
'</div>'+
'</div>'+
'</div>'
);
if ( options && options.header ) {
modal.find('div.modal-header')
.append( '<h4 class="modal-title">'+options.header( row )+'</h4>' );
}
modal.find( 'div.modal-body' ).append( render() );
modal
.appendTo( 'body' )
.modal();
}
}
};
};
return DataTable.Responsive;
}));

View File

@@ -0,0 +1,62 @@
/*! Foundation integration for DataTables' Responsive
* ©2015 SpryMedia Ltd - datatables.net/license
*/
(function( factory ){
if ( typeof define === 'function' && define.amd ) {
// AMD
define( ['jquery', 'datatables.net-zf', 'datatables.net-responsive'], function ( $ ) {
return factory( $, window, document );
} );
}
else if ( typeof exports === 'object' ) {
// CommonJS
module.exports = function (root, $) {
if ( ! root ) {
root = window;
}
if ( ! $ || ! $.fn.dataTable ) {
$ = require('datatables.net-zf')(root, $).$;
}
if ( ! $.fn.dataTable.Responsive ) {
require('datatables.net-responsive')(root, $);
}
return factory( $, root, root.document );
};
}
else {
// Browser
factory( jQuery, window, document );
}
}(function( $, window, document, undefined ) {
'use strict';
var DataTable = $.fn.dataTable;
var _display = DataTable.Responsive.display;
var _original = _display.modal;
_display.modal = function ( options ) {
return function ( row, update, render ) {
if ( ! $.fn.foundation ) {
_original( row, update, render );
}
else {
if ( ! update ) {
$( '<div class="reveal-modal" data-reveal/>' )
.append( '<a class="close-reveal-modal" aria-label="Close">&#215;</a>' )
.append( options && options.header ? '<h4>'+options.header( row )+'</h4>' : null )
.append( render() )
.appendTo( 'body' )
.foundation( 'reveal', 'open' );
}
}
};
};
return DataTable.Responsive;
}));

View File

@@ -0,0 +1,63 @@
/*! jQuery UI integration for DataTables' Responsive
* ©2015 SpryMedia Ltd - datatables.net/license
*/
(function( factory ){
if ( typeof define === 'function' && define.amd ) {
// AMD
define( ['jquery', 'datatables.net-jqui', 'datatables.net-responsive'], function ( $ ) {
return factory( $, window, document );
} );
}
else if ( typeof exports === 'object' ) {
// CommonJS
module.exports = function (root, $) {
if ( ! root ) {
root = window;
}
if ( ! $ || ! $.fn.dataTable ) {
$ = require('datatables.net-jqui')(root, $).$;
}
if ( ! $.fn.dataTable.Responsive ) {
require('datatables.net-responsive')(root, $);
}
return factory( $, root, root.document );
};
}
else {
// Browser
factory( jQuery, window, document );
}
}(function( $, window, document, undefined ) {
'use strict';
var DataTable = $.fn.dataTable;
var _display = DataTable.Responsive.display;
var _original = _display.modal;
_display.modal = function ( options ) {
return function ( row, update, render ) {
if ( ! $.fn.dialog ) {
_original( row, update, render );
}
else {
if ( ! update ) {
$( '<div/>' )
.append( render() )
.appendTo( 'body' )
.dialog( $.extend( true, {
title: options && options.header ? options.header( row ) : '',
width: 500
}, options.dialog ) );
}
}
};
};
return DataTable.Responsive;
}));