diff options
Diffstat (limited to 'public/assets/js/_pythia/dataTables/Responsive-2.1.1')
16 files changed, 0 insertions, 2231 deletions
diff --git a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/css/responsive.bootstrap.css b/public/assets/js/_pythia/dataTables/Responsive-2.1.1/css/responsive.bootstrap.css deleted file mode 100644 index aa2fb3e..0000000 --- a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/css/responsive.bootstrap.css +++ /dev/null @@ -1,181 +0,0 @@ -table.dataTable.dtr-inline.collapsed > tbody > tr > td.child, -table.dataTable.dtr-inline.collapsed > tbody > tr > th.child, -table.dataTable.dtr-inline.collapsed > tbody > tr > td.dataTables_empty { - cursor: default !important; -} -table.dataTable.dtr-inline.collapsed > tbody > tr > td.child:before, -table.dataTable.dtr-inline.collapsed > tbody > tr > th.child:before, -table.dataTable.dtr-inline.collapsed > tbody > tr > td.dataTables_empty:before { - display: none !important; -} -table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child, -table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child { - position: relative; - padding-left: 30px; - cursor: pointer; -} -table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child:before, -table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child:before { - top: 9px; - left: 4px; - height: 14px; - width: 14px; - display: block; - position: absolute; - color: white; - border: 2px solid white; - border-radius: 14px; - box-shadow: 0 0 3px #444; - box-sizing: content-box; - text-align: center; - font-family: 'Courier New', Courier, monospace; - line-height: 14px; - content: '+'; - background-color: #337ab7; -} -table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td:first-child:before, -table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th:first-child:before { - content: '-'; - background-color: #d33333; -} -table.dataTable.dtr-inline.collapsed > tbody > tr.child td:before { - display: none; -} -table.dataTable.dtr-inline.collapsed.compact > tbody > tr > td:first-child, -table.dataTable.dtr-inline.collapsed.compact > tbody > tr > th:first-child { - padding-left: 27px; -} -table.dataTable.dtr-inline.collapsed.compact > tbody > tr > td:first-child:before, -table.dataTable.dtr-inline.collapsed.compact > tbody > tr > th:first-child:before { - top: 5px; - left: 4px; - height: 14px; - width: 14px; - border-radius: 14px; - line-height: 14px; - text-indent: 3px; -} -table.dataTable.dtr-column > tbody > tr > td.control, -table.dataTable.dtr-column > tbody > tr > th.control { - position: relative; - cursor: pointer; -} -table.dataTable.dtr-column > tbody > tr > td.control:before, -table.dataTable.dtr-column > tbody > tr > th.control:before { - top: 50%; - left: 50%; - height: 16px; - width: 16px; - margin-top: -10px; - margin-left: -10px; - display: block; - position: absolute; - color: white; - border: 2px solid white; - border-radius: 14px; - box-shadow: 0 0 3px #444; - box-sizing: content-box; - text-align: center; - font-family: 'Courier New', Courier, monospace; - line-height: 14px; - content: '+'; - background-color: #337ab7; -} -table.dataTable.dtr-column > tbody > tr.parent td.control:before, -table.dataTable.dtr-column > tbody > tr.parent th.control:before { - content: '-'; - background-color: #d33333; -} -table.dataTable > tbody > tr.child { - padding: 0.5em 1em; -} -table.dataTable > tbody > tr.child:hover { - background: transparent !important; -} -table.dataTable > tbody > tr.child ul.dtr-details { - display: inline-block; - list-style-type: none; - margin: 0; - padding: 0; -} -table.dataTable > tbody > tr.child ul.dtr-details li { - border-bottom: 1px solid #efefef; - padding: 0.5em 0; -} -table.dataTable > tbody > tr.child ul.dtr-details li:first-child { - padding-top: 0; -} -table.dataTable > tbody > tr.child ul.dtr-details li:last-child { - border-bottom: none; -} -table.dataTable > tbody > tr.child span.dtr-title { - display: inline-block; - min-width: 75px; - font-weight: bold; -} - -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 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 div.dtr-modal-content { - position: relative; - padding: 1em; -} -div.dtr-modal 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; -} -div.dtr-modal div.dtr-modal-close:hover { - background-color: #eaeaea; -} -div.dtr-modal 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%; - } -} -div.dtr-bs-modal table.table tr:first-child td { - border-top: none; -} diff --git a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/css/responsive.bootstrap.min.css b/public/assets/js/_pythia/dataTables/Responsive-2.1.1/css/responsive.bootstrap.min.css deleted file mode 100644 index b53db0e..0000000 --- a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/css/responsive.bootstrap.min.css +++ /dev/null @@ -1 +0,0 @@ -table.dataTable.dtr-inline.collapsed>tbody>tr>td.child,table.dataTable.dtr-inline.collapsed>tbody>tr>th.child,table.dataTable.dtr-inline.collapsed>tbody>tr>td.dataTables_empty{cursor:default !important}table.dataTable.dtr-inline.collapsed>tbody>tr>td.child:before,table.dataTable.dtr-inline.collapsed>tbody>tr>th.child:before,table.dataTable.dtr-inline.collapsed>tbody>tr>td.dataTables_empty:before{display:none !important}table.dataTable.dtr-inline.collapsed>tbody>tr>td:first-child,table.dataTable.dtr-inline.collapsed>tbody>tr>th:first-child{position:relative;padding-left:30px;cursor:pointer}table.dataTable.dtr-inline.collapsed>tbody>tr>td:first-child:before,table.dataTable.dtr-inline.collapsed>tbody>tr>th:first-child:before{top:9px;left:4px;height:14px;width:14px;display:block;position:absolute;color:white;border:2px solid white;border-radius:14px;box-shadow:0 0 3px #444;box-sizing:content-box;text-align:center;font-family:'Courier New', Courier, monospace;line-height:14px;content:'+';background-color:#337ab7}table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before,table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th:first-child:before{content:'-';background-color:#d33333}table.dataTable.dtr-inline.collapsed>tbody>tr.child td:before{display:none}table.dataTable.dtr-inline.collapsed.compact>tbody>tr>td:first-child,table.dataTable.dtr-inline.collapsed.compact>tbody>tr>th:first-child{padding-left:27px}table.dataTable.dtr-inline.collapsed.compact>tbody>tr>td:first-child:before,table.dataTable.dtr-inline.collapsed.compact>tbody>tr>th:first-child:before{top:5px;left:4px;height:14px;width:14px;border-radius:14px;line-height:14px;text-indent:3px}table.dataTable.dtr-column>tbody>tr>td.control,table.dataTable.dtr-column>tbody>tr>th.control{position:relative;cursor:pointer}table.dataTable.dtr-column>tbody>tr>td.control:before,table.dataTable.dtr-column>tbody>tr>th.control:before{top:50%;left:50%;height:16px;width:16px;margin-top:-10px;margin-left:-10px;display:block;position:absolute;color:white;border:2px solid white;border-radius:14px;box-shadow:0 0 3px #444;box-sizing:content-box;text-align:center;font-family:'Courier New', Courier, monospace;line-height:14px;content:'+';background-color:#337ab7}table.dataTable.dtr-column>tbody>tr.parent td.control:before,table.dataTable.dtr-column>tbody>tr.parent th.control:before{content:'-';background-color:#d33333}table.dataTable>tbody>tr.child{padding:0.5em 1em}table.dataTable>tbody>tr.child:hover{background:transparent !important}table.dataTable>tbody>tr.child ul.dtr-details{display:inline-block;list-style-type:none;margin:0;padding:0}table.dataTable>tbody>tr.child ul.dtr-details li{border-bottom:1px solid #efefef;padding:0.5em 0}table.dataTable>tbody>tr.child ul.dtr-details li:first-child{padding-top:0}table.dataTable>tbody>tr.child ul.dtr-details li:last-child{border-bottom:none}table.dataTable>tbody>tr.child span.dtr-title{display:inline-block;min-width:75px;font-weight:bold}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 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 div.dtr-modal-content{position:relative;padding:1em}div.dtr-modal 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}div.dtr-modal div.dtr-modal-close:hover{background-color:#eaeaea}div.dtr-modal 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%}}div.dtr-bs-modal table.table tr:first-child td{border-top:none} diff --git a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/css/responsive.dataTables.css b/public/assets/js/_pythia/dataTables/Responsive-2.1.1/css/responsive.dataTables.css deleted file mode 100644 index 72353d2..0000000 --- a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/css/responsive.dataTables.css +++ /dev/null @@ -1,178 +0,0 @@ -table.dataTable.dtr-inline.collapsed > tbody > tr > td.child, -table.dataTable.dtr-inline.collapsed > tbody > tr > th.child, -table.dataTable.dtr-inline.collapsed > tbody > tr > td.dataTables_empty { - cursor: default !important; -} -table.dataTable.dtr-inline.collapsed > tbody > tr > td.child:before, -table.dataTable.dtr-inline.collapsed > tbody > tr > th.child:before, -table.dataTable.dtr-inline.collapsed > tbody > tr > td.dataTables_empty:before { - display: none !important; -} -table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child, -table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child { - position: relative; - padding-left: 30px; - cursor: pointer; -} -table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child:before, -table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child:before { - top: 9px; - left: 4px; - height: 14px; - width: 14px; - display: block; - position: absolute; - color: white; - border: 2px solid white; - border-radius: 14px; - box-shadow: 0 0 3px #444; - box-sizing: content-box; - text-align: center; - font-family: 'Courier New', Courier, monospace; - line-height: 14px; - content: '+'; - background-color: #31b131; -} -table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td:first-child:before, -table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th:first-child:before { - content: '-'; - background-color: #d33333; -} -table.dataTable.dtr-inline.collapsed > tbody > tr.child td:before { - display: none; -} -table.dataTable.dtr-inline.collapsed.compact > tbody > tr > td:first-child, -table.dataTable.dtr-inline.collapsed.compact > tbody > tr > th:first-child { - padding-left: 27px; -} -table.dataTable.dtr-inline.collapsed.compact > tbody > tr > td:first-child:before, -table.dataTable.dtr-inline.collapsed.compact > tbody > tr > th:first-child:before { - top: 5px; - left: 4px; - height: 14px; - width: 14px; - border-radius: 14px; - line-height: 14px; - text-indent: 3px; -} -table.dataTable.dtr-column > tbody > tr > td.control, -table.dataTable.dtr-column > tbody > tr > th.control { - position: relative; - cursor: pointer; -} -table.dataTable.dtr-column > tbody > tr > td.control:before, -table.dataTable.dtr-column > tbody > tr > th.control:before { - top: 50%; - left: 50%; - height: 16px; - width: 16px; - margin-top: -10px; - margin-left: -10px; - display: block; - position: absolute; - color: white; - border: 2px solid white; - border-radius: 14px; - box-shadow: 0 0 3px #444; - box-sizing: content-box; - text-align: center; - font-family: 'Courier New', Courier, monospace; - line-height: 14px; - content: '+'; - background-color: #31b131; -} -table.dataTable.dtr-column > tbody > tr.parent td.control:before, -table.dataTable.dtr-column > tbody > tr.parent th.control:before { - content: '-'; - background-color: #d33333; -} -table.dataTable > tbody > tr.child { - padding: 0.5em 1em; -} -table.dataTable > tbody > tr.child:hover { - background: transparent !important; -} -table.dataTable > tbody > tr.child ul.dtr-details { - display: inline-block; - list-style-type: none; - margin: 0; - padding: 0; -} -table.dataTable > tbody > tr.child ul.dtr-details li { - border-bottom: 1px solid #efefef; - padding: 0.5em 0; -} -table.dataTable > tbody > tr.child ul.dtr-details li:first-child { - padding-top: 0; -} -table.dataTable > tbody > tr.child ul.dtr-details li:last-child { - border-bottom: none; -} -table.dataTable > tbody > tr.child span.dtr-title { - display: inline-block; - min-width: 75px; - font-weight: bold; -} - -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 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 div.dtr-modal-content { - position: relative; - padding: 1em; -} -div.dtr-modal 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; -} -div.dtr-modal div.dtr-modal-close:hover { - background-color: #eaeaea; -} -div.dtr-modal 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%; - } -} diff --git a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/css/responsive.dataTables.min.css b/public/assets/js/_pythia/dataTables/Responsive-2.1.1/css/responsive.dataTables.min.css deleted file mode 100644 index db2f7d9..0000000 --- a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/css/responsive.dataTables.min.css +++ /dev/null @@ -1 +0,0 @@ -table.dataTable.dtr-inline.collapsed>tbody>tr>td.child,table.dataTable.dtr-inline.collapsed>tbody>tr>th.child,table.dataTable.dtr-inline.collapsed>tbody>tr>td.dataTables_empty{cursor:default !important}table.dataTable.dtr-inline.collapsed>tbody>tr>td.child:before,table.dataTable.dtr-inline.collapsed>tbody>tr>th.child:before,table.dataTable.dtr-inline.collapsed>tbody>tr>td.dataTables_empty:before{display:none !important}table.dataTable.dtr-inline.collapsed>tbody>tr>td:first-child,table.dataTable.dtr-inline.collapsed>tbody>tr>th:first-child{position:relative;padding-left:30px;cursor:pointer}table.dataTable.dtr-inline.collapsed>tbody>tr>td:first-child:before,table.dataTable.dtr-inline.collapsed>tbody>tr>th:first-child:before{top:9px;left:4px;height:14px;width:14px;display:block;position:absolute;color:white;border:2px solid white;border-radius:14px;box-shadow:0 0 3px #444;box-sizing:content-box;text-align:center;font-family:'Courier New', Courier, monospace;line-height:14px;content:'+';background-color:#31b131}table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before,table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th:first-child:before{content:'-';background-color:#d33333}table.dataTable.dtr-inline.collapsed>tbody>tr.child td:before{display:none}table.dataTable.dtr-inline.collapsed.compact>tbody>tr>td:first-child,table.dataTable.dtr-inline.collapsed.compact>tbody>tr>th:first-child{padding-left:27px}table.dataTable.dtr-inline.collapsed.compact>tbody>tr>td:first-child:before,table.dataTable.dtr-inline.collapsed.compact>tbody>tr>th:first-child:before{top:5px;left:4px;height:14px;width:14px;border-radius:14px;line-height:14px;text-indent:3px}table.dataTable.dtr-column>tbody>tr>td.control,table.dataTable.dtr-column>tbody>tr>th.control{position:relative;cursor:pointer}table.dataTable.dtr-column>tbody>tr>td.control:before,table.dataTable.dtr-column>tbody>tr>th.control:before{top:50%;left:50%;height:16px;width:16px;margin-top:-10px;margin-left:-10px;display:block;position:absolute;color:white;border:2px solid white;border-radius:14px;box-shadow:0 0 3px #444;box-sizing:content-box;text-align:center;font-family:'Courier New', Courier, monospace;line-height:14px;content:'+';background-color:#31b131}table.dataTable.dtr-column>tbody>tr.parent td.control:before,table.dataTable.dtr-column>tbody>tr.parent th.control:before{content:'-';background-color:#d33333}table.dataTable>tbody>tr.child{padding:0.5em 1em}table.dataTable>tbody>tr.child:hover{background:transparent !important}table.dataTable>tbody>tr.child ul.dtr-details{display:inline-block;list-style-type:none;margin:0;padding:0}table.dataTable>tbody>tr.child ul.dtr-details li{border-bottom:1px solid #efefef;padding:0.5em 0}table.dataTable>tbody>tr.child ul.dtr-details li:first-child{padding-top:0}table.dataTable>tbody>tr.child ul.dtr-details li:last-child{border-bottom:none}table.dataTable>tbody>tr.child span.dtr-title{display:inline-block;min-width:75px;font-weight:bold}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 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 div.dtr-modal-content{position:relative;padding:1em}div.dtr-modal 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}div.dtr-modal div.dtr-modal-close:hover{background-color:#eaeaea}div.dtr-modal 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%}} diff --git a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/css/responsive.foundation.css b/public/assets/js/_pythia/dataTables/Responsive-2.1.1/css/responsive.foundation.css deleted file mode 100644 index 9d70328..0000000 --- a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/css/responsive.foundation.css +++ /dev/null @@ -1,181 +0,0 @@ -table.dataTable.dtr-inline.collapsed > tbody > tr > td.child, -table.dataTable.dtr-inline.collapsed > tbody > tr > th.child, -table.dataTable.dtr-inline.collapsed > tbody > tr > td.dataTables_empty { - cursor: default !important; -} -table.dataTable.dtr-inline.collapsed > tbody > tr > td.child:before, -table.dataTable.dtr-inline.collapsed > tbody > tr > th.child:before, -table.dataTable.dtr-inline.collapsed > tbody > tr > td.dataTables_empty:before { - display: none !important; -} -table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child, -table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child { - position: relative; - padding-left: 30px; - cursor: pointer; -} -table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child:before, -table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child:before { - top: 9px; - left: 4px; - height: 14px; - width: 14px; - display: block; - position: absolute; - color: white; - border: 2px solid white; - border-radius: 14px; - box-shadow: 0 0 3px #444; - box-sizing: content-box; - text-align: center; - font-family: 'Courier New', Courier, monospace; - line-height: 14px; - content: '+'; - background-color: #008CBA; -} -table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td:first-child:before, -table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th:first-child:before { - content: '-'; - background-color: #d33333; -} -table.dataTable.dtr-inline.collapsed > tbody > tr.child td:before { - display: none; -} -table.dataTable.dtr-inline.collapsed.compact > tbody > tr > td:first-child, -table.dataTable.dtr-inline.collapsed.compact > tbody > tr > th:first-child { - padding-left: 27px; -} -table.dataTable.dtr-inline.collapsed.compact > tbody > tr > td:first-child:before, -table.dataTable.dtr-inline.collapsed.compact > tbody > tr > th:first-child:before { - top: 5px; - left: 4px; - height: 14px; - width: 14px; - border-radius: 14px; - line-height: 14px; - text-indent: 3px; -} -table.dataTable.dtr-column > tbody > tr > td.control, -table.dataTable.dtr-column > tbody > tr > th.control { - position: relative; - cursor: pointer; -} -table.dataTable.dtr-column > tbody > tr > td.control:before, -table.dataTable.dtr-column > tbody > tr > th.control:before { - top: 50%; - left: 50%; - height: 16px; - width: 16px; - margin-top: -10px; - margin-left: -10px; - display: block; - position: absolute; - color: white; - border: 2px solid white; - border-radius: 14px; - box-shadow: 0 0 3px #444; - box-sizing: content-box; - text-align: center; - font-family: 'Courier New', Courier, monospace; - line-height: 14px; - content: '+'; - background-color: #008CBA; -} -table.dataTable.dtr-column > tbody > tr.parent td.control:before, -table.dataTable.dtr-column > tbody > tr.parent th.control:before { - content: '-'; - background-color: #d33333; -} -table.dataTable > tbody > tr.child { - padding: 0.5em 1em; -} -table.dataTable > tbody > tr.child:hover { - background: transparent !important; -} -table.dataTable > tbody > tr.child ul.dtr-details { - display: inline-block; - list-style-type: none; - margin: 0; - padding: 0; -} -table.dataTable > tbody > tr.child ul.dtr-details li { - border-bottom: 1px solid #efefef; - padding: 0.5em 0; -} -table.dataTable > tbody > tr.child ul.dtr-details li:first-child { - padding-top: 0; -} -table.dataTable > tbody > tr.child ul.dtr-details li:last-child { - border-bottom: none; -} -table.dataTable > tbody > tr.child span.dtr-title { - display: inline-block; - min-width: 75px; - font-weight: bold; -} - -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 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 div.dtr-modal-content { - position: relative; - padding: 1em; -} -div.dtr-modal 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; -} -div.dtr-modal div.dtr-modal-close:hover { - background-color: #eaeaea; -} -div.dtr-modal 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%; - } -} -table.dataTable > tbody > tr.child ul { - font-size: 1em; -} diff --git a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/css/responsive.foundation.min.css b/public/assets/js/_pythia/dataTables/Responsive-2.1.1/css/responsive.foundation.min.css deleted file mode 100644 index e8842be..0000000 --- a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/css/responsive.foundation.min.css +++ /dev/null @@ -1 +0,0 @@ -table.dataTable.dtr-inline.collapsed>tbody>tr>td.child,table.dataTable.dtr-inline.collapsed>tbody>tr>th.child,table.dataTable.dtr-inline.collapsed>tbody>tr>td.dataTables_empty{cursor:default !important}table.dataTable.dtr-inline.collapsed>tbody>tr>td.child:before,table.dataTable.dtr-inline.collapsed>tbody>tr>th.child:before,table.dataTable.dtr-inline.collapsed>tbody>tr>td.dataTables_empty:before{display:none !important}table.dataTable.dtr-inline.collapsed>tbody>tr>td:first-child,table.dataTable.dtr-inline.collapsed>tbody>tr>th:first-child{position:relative;padding-left:30px;cursor:pointer}table.dataTable.dtr-inline.collapsed>tbody>tr>td:first-child:before,table.dataTable.dtr-inline.collapsed>tbody>tr>th:first-child:before{top:9px;left:4px;height:14px;width:14px;display:block;position:absolute;color:white;border:2px solid white;border-radius:14px;box-shadow:0 0 3px #444;box-sizing:content-box;text-align:center;font-family:'Courier New', Courier, monospace;line-height:14px;content:'+';background-color:#008CBA}table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before,table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th:first-child:before{content:'-';background-color:#d33333}table.dataTable.dtr-inline.collapsed>tbody>tr.child td:before{display:none}table.dataTable.dtr-inline.collapsed.compact>tbody>tr>td:first-child,table.dataTable.dtr-inline.collapsed.compact>tbody>tr>th:first-child{padding-left:27px}table.dataTable.dtr-inline.collapsed.compact>tbody>tr>td:first-child:before,table.dataTable.dtr-inline.collapsed.compact>tbody>tr>th:first-child:before{top:5px;left:4px;height:14px;width:14px;border-radius:14px;line-height:14px;text-indent:3px}table.dataTable.dtr-column>tbody>tr>td.control,table.dataTable.dtr-column>tbody>tr>th.control{position:relative;cursor:pointer}table.dataTable.dtr-column>tbody>tr>td.control:before,table.dataTable.dtr-column>tbody>tr>th.control:before{top:50%;left:50%;height:16px;width:16px;margin-top:-10px;margin-left:-10px;display:block;position:absolute;color:white;border:2px solid white;border-radius:14px;box-shadow:0 0 3px #444;box-sizing:content-box;text-align:center;font-family:'Courier New', Courier, monospace;line-height:14px;content:'+';background-color:#008CBA}table.dataTable.dtr-column>tbody>tr.parent td.control:before,table.dataTable.dtr-column>tbody>tr.parent th.control:before{content:'-';background-color:#d33333}table.dataTable>tbody>tr.child{padding:0.5em 1em}table.dataTable>tbody>tr.child:hover{background:transparent !important}table.dataTable>tbody>tr.child ul.dtr-details{display:inline-block;list-style-type:none;margin:0;padding:0}table.dataTable>tbody>tr.child ul.dtr-details li{border-bottom:1px solid #efefef;padding:0.5em 0}table.dataTable>tbody>tr.child ul.dtr-details li:first-child{padding-top:0}table.dataTable>tbody>tr.child ul.dtr-details li:last-child{border-bottom:none}table.dataTable>tbody>tr.child span.dtr-title{display:inline-block;min-width:75px;font-weight:bold}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 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 div.dtr-modal-content{position:relative;padding:1em}div.dtr-modal 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}div.dtr-modal div.dtr-modal-close:hover{background-color:#eaeaea}div.dtr-modal 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%}}table.dataTable>tbody>tr.child ul{font-size:1em} diff --git a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/css/responsive.jqueryui.css b/public/assets/js/_pythia/dataTables/Responsive-2.1.1/css/responsive.jqueryui.css deleted file mode 100644 index 72353d2..0000000 --- a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/css/responsive.jqueryui.css +++ /dev/null @@ -1,178 +0,0 @@ -table.dataTable.dtr-inline.collapsed > tbody > tr > td.child, -table.dataTable.dtr-inline.collapsed > tbody > tr > th.child, -table.dataTable.dtr-inline.collapsed > tbody > tr > td.dataTables_empty { - cursor: default !important; -} -table.dataTable.dtr-inline.collapsed > tbody > tr > td.child:before, -table.dataTable.dtr-inline.collapsed > tbody > tr > th.child:before, -table.dataTable.dtr-inline.collapsed > tbody > tr > td.dataTables_empty:before { - display: none !important; -} -table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child, -table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child { - position: relative; - padding-left: 30px; - cursor: pointer; -} -table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child:before, -table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child:before { - top: 9px; - left: 4px; - height: 14px; - width: 14px; - display: block; - position: absolute; - color: white; - border: 2px solid white; - border-radius: 14px; - box-shadow: 0 0 3px #444; - box-sizing: content-box; - text-align: center; - font-family: 'Courier New', Courier, monospace; - line-height: 14px; - content: '+'; - background-color: #31b131; -} -table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td:first-child:before, -table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th:first-child:before { - content: '-'; - background-color: #d33333; -} -table.dataTable.dtr-inline.collapsed > tbody > tr.child td:before { - display: none; -} -table.dataTable.dtr-inline.collapsed.compact > tbody > tr > td:first-child, -table.dataTable.dtr-inline.collapsed.compact > tbody > tr > th:first-child { - padding-left: 27px; -} -table.dataTable.dtr-inline.collapsed.compact > tbody > tr > td:first-child:before, -table.dataTable.dtr-inline.collapsed.compact > tbody > tr > th:first-child:before { - top: 5px; - left: 4px; - height: 14px; - width: 14px; - border-radius: 14px; - line-height: 14px; - text-indent: 3px; -} -table.dataTable.dtr-column > tbody > tr > td.control, -table.dataTable.dtr-column > tbody > tr > th.control { - position: relative; - cursor: pointer; -} -table.dataTable.dtr-column > tbody > tr > td.control:before, -table.dataTable.dtr-column > tbody > tr > th.control:before { - top: 50%; - left: 50%; - height: 16px; - width: 16px; - margin-top: -10px; - margin-left: -10px; - display: block; - position: absolute; - color: white; - border: 2px solid white; - border-radius: 14px; - box-shadow: 0 0 3px #444; - box-sizing: content-box; - text-align: center; - font-family: 'Courier New', Courier, monospace; - line-height: 14px; - content: '+'; - background-color: #31b131; -} -table.dataTable.dtr-column > tbody > tr.parent td.control:before, -table.dataTable.dtr-column > tbody > tr.parent th.control:before { - content: '-'; - background-color: #d33333; -} -table.dataTable > tbody > tr.child { - padding: 0.5em 1em; -} -table.dataTable > tbody > tr.child:hover { - background: transparent !important; -} -table.dataTable > tbody > tr.child ul.dtr-details { - display: inline-block; - list-style-type: none; - margin: 0; - padding: 0; -} -table.dataTable > tbody > tr.child ul.dtr-details li { - border-bottom: 1px solid #efefef; - padding: 0.5em 0; -} -table.dataTable > tbody > tr.child ul.dtr-details li:first-child { - padding-top: 0; -} -table.dataTable > tbody > tr.child ul.dtr-details li:last-child { - border-bottom: none; -} -table.dataTable > tbody > tr.child span.dtr-title { - display: inline-block; - min-width: 75px; - font-weight: bold; -} - -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 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 div.dtr-modal-content { - position: relative; - padding: 1em; -} -div.dtr-modal 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; -} -div.dtr-modal div.dtr-modal-close:hover { - background-color: #eaeaea; -} -div.dtr-modal 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%; - } -} diff --git a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/css/responsive.jqueryui.min.css b/public/assets/js/_pythia/dataTables/Responsive-2.1.1/css/responsive.jqueryui.min.css deleted file mode 100644 index db2f7d9..0000000 --- a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/css/responsive.jqueryui.min.css +++ /dev/null @@ -1 +0,0 @@ -table.dataTable.dtr-inline.collapsed>tbody>tr>td.child,table.dataTable.dtr-inline.collapsed>tbody>tr>th.child,table.dataTable.dtr-inline.collapsed>tbody>tr>td.dataTables_empty{cursor:default !important}table.dataTable.dtr-inline.collapsed>tbody>tr>td.child:before,table.dataTable.dtr-inline.collapsed>tbody>tr>th.child:before,table.dataTable.dtr-inline.collapsed>tbody>tr>td.dataTables_empty:before{display:none !important}table.dataTable.dtr-inline.collapsed>tbody>tr>td:first-child,table.dataTable.dtr-inline.collapsed>tbody>tr>th:first-child{position:relative;padding-left:30px;cursor:pointer}table.dataTable.dtr-inline.collapsed>tbody>tr>td:first-child:before,table.dataTable.dtr-inline.collapsed>tbody>tr>th:first-child:before{top:9px;left:4px;height:14px;width:14px;display:block;position:absolute;color:white;border:2px solid white;border-radius:14px;box-shadow:0 0 3px #444;box-sizing:content-box;text-align:center;font-family:'Courier New', Courier, monospace;line-height:14px;content:'+';background-color:#31b131}table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before,table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th:first-child:before{content:'-';background-color:#d33333}table.dataTable.dtr-inline.collapsed>tbody>tr.child td:before{display:none}table.dataTable.dtr-inline.collapsed.compact>tbody>tr>td:first-child,table.dataTable.dtr-inline.collapsed.compact>tbody>tr>th:first-child{padding-left:27px}table.dataTable.dtr-inline.collapsed.compact>tbody>tr>td:first-child:before,table.dataTable.dtr-inline.collapsed.compact>tbody>tr>th:first-child:before{top:5px;left:4px;height:14px;width:14px;border-radius:14px;line-height:14px;text-indent:3px}table.dataTable.dtr-column>tbody>tr>td.control,table.dataTable.dtr-column>tbody>tr>th.control{position:relative;cursor:pointer}table.dataTable.dtr-column>tbody>tr>td.control:before,table.dataTable.dtr-column>tbody>tr>th.control:before{top:50%;left:50%;height:16px;width:16px;margin-top:-10px;margin-left:-10px;display:block;position:absolute;color:white;border:2px solid white;border-radius:14px;box-shadow:0 0 3px #444;box-sizing:content-box;text-align:center;font-family:'Courier New', Courier, monospace;line-height:14px;content:'+';background-color:#31b131}table.dataTable.dtr-column>tbody>tr.parent td.control:before,table.dataTable.dtr-column>tbody>tr.parent th.control:before{content:'-';background-color:#d33333}table.dataTable>tbody>tr.child{padding:0.5em 1em}table.dataTable>tbody>tr.child:hover{background:transparent !important}table.dataTable>tbody>tr.child ul.dtr-details{display:inline-block;list-style-type:none;margin:0;padding:0}table.dataTable>tbody>tr.child ul.dtr-details li{border-bottom:1px solid #efefef;padding:0.5em 0}table.dataTable>tbody>tr.child ul.dtr-details li:first-child{padding-top:0}table.dataTable>tbody>tr.child ul.dtr-details li:last-child{border-bottom:none}table.dataTable>tbody>tr.child span.dtr-title{display:inline-block;min-width:75px;font-weight:bold}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 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 div.dtr-modal-content{position:relative;padding:1em}div.dtr-modal 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}div.dtr-modal div.dtr-modal-close:hover{background-color:#eaeaea}div.dtr-modal 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%}} diff --git a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/js/dataTables.responsive.js b/public/assets/js/_pythia/dataTables/Responsive-2.1.1/js/dataTables.responsive.js deleted file mode 100644 index a1bd5b6..0000000 --- a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/js/dataTables.responsive.js +++ /dev/null @@ -1,1255 +0,0 @@ -/*! Responsive 2.1.1 - * 2014-2016 SpryMedia Ltd - datatables.net/license - */ - -/** - * @summary Responsive - * @description Responsive tables plug-in for DataTables - * @version 2.1.1 - * @file dataTables.responsive.js - * @author SpryMedia Ltd (www.sprymedia.co.uk) - * @contact www.sprymedia.co.uk/contact - * @copyright Copyright 2014-2016 SpryMedia Ltd. - * - * This source file is free software, available under the following license: - * MIT license - http://datatables.net/license/mit - * - * This source file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details. - * - * For details please refer to: http://www.datatables.net - */ -(function( factory ){ - if ( typeof define === 'function' && define.amd ) { - // AMD - define( ['jquery', 'datatables.net'], 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')(root, $).$; - } - - return factory( $, root, root.document ); - }; - } - else { - // Browser - factory( jQuery, window, document ); - } -}(function( $, window, document, undefined ) { -'use strict'; -var DataTable = $.fn.dataTable; - - -/** - * Responsive is a plug-in for the DataTables library that makes use of - * DataTables' ability to change the visibility of columns, changing the - * visibility of columns so the displayed columns fit into the table container. - * The end result is that complex tables will be dynamically adjusted to fit - * into the viewport, be it on a desktop, tablet or mobile browser. - * - * Responsive for DataTables has two modes of operation, which can used - * individually or combined: - * - * * Class name based control - columns assigned class names that match the - * breakpoint logic can be shown / hidden as required for each breakpoint. - * * Automatic control - columns are automatically hidden when there is no - * room left to display them. Columns removed from the right. - * - * In additional to column visibility control, Responsive also has built into - * options to use DataTables' child row display to show / hide the information - * from the table that has been hidden. There are also two modes of operation - * for this child row display: - * - * * Inline - when the control element that the user can use to show / hide - * child rows is displayed inside the first column of the table. - * * Column - where a whole column is dedicated to be the show / hide control. - * - * Initialisation of Responsive is performed by: - * - * * Adding the class `responsive` or `dt-responsive` to the table. In this case - * Responsive will automatically be initialised with the default configuration - * options when the DataTable is created. - * * Using the `responsive` option in the DataTables configuration options. This - * can also be used to specify the configuration options, or simply set to - * `true` to use the defaults. - * - * @class - * @param {object} settings DataTables settings object for the host table - * @param {object} [opts] Configuration options - * @requires jQuery 1.7+ - * @requires DataTables 1.10.3+ - * - * @example - * $('#example').DataTable( { - * responsive: true - * } ); - * } ); - */ -var Responsive = function ( settings, opts ) { - // Sanity check that we are using DataTables 1.10 or newer - if ( ! DataTable.versionCheck || ! DataTable.versionCheck( '1.10.3' ) ) { - throw 'DataTables Responsive requires DataTables 1.10.3 or newer'; - } - - this.s = { - dt: new DataTable.Api( settings ), - columns: [], - current: [] - }; - - // Check if responsive has already been initialised on this table - if ( this.s.dt.settings()[0].responsive ) { - return; - } - - // details is an object, but for simplicity the user can give it as a string - // or a boolean - if ( opts && typeof opts.details === 'string' ) { - opts.details = { type: opts.details }; - } - else if ( opts && opts.details === false ) { - opts.details = { type: false }; - } - else if ( opts && opts.details === true ) { - opts.details = { type: 'inline' }; - } - - this.c = $.extend( true, {}, Responsive.defaults, DataTable.defaults.responsive, opts ); - settings.responsive = this; - this._constructor(); -}; - -$.extend( Responsive.prototype, { - /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * Constructor - */ - - /** - * Initialise the Responsive instance - * - * @private - */ - _constructor: function () - { - var that = this; - var dt = this.s.dt; - var dtPrivateSettings = dt.settings()[0]; - var oldWindowWidth = $(window).width(); - - dt.settings()[0]._responsive = this; - - // Use DataTables' throttle function to avoid processor thrashing on - // resize - $(window).on( 'resize.dtr orientationchange.dtr', DataTable.util.throttle( function () { - // iOS has a bug whereby resize can fire when only scrolling - // See: http://stackoverflow.com/questions/8898412 - var width = $(window).width(); - - if ( width !== oldWindowWidth ) { - that._resize(); - oldWindowWidth = width; - } - } ) ); - - // DataTables doesn't currently trigger an event when a row is added, so - // we need to hook into its private API to enforce the hidden rows when - // new data is added - dtPrivateSettings.oApi._fnCallbackReg( dtPrivateSettings, 'aoRowCreatedCallback', function (tr, data, idx) { - if ( $.inArray( false, that.s.current ) !== -1 ) { - $('>td, >th', tr).each( function ( i ) { - var idx = dt.column.index( 'toData', i ); - - if ( that.s.current[idx] === false ) { - $(this).css('display', 'none'); - } - } ); - } - } ); - - // Destroy event handler - dt.on( 'destroy.dtr', function () { - dt.off( '.dtr' ); - $( dt.table().body() ).off( '.dtr' ); - $(window).off( 'resize.dtr orientationchange.dtr' ); - - // Restore the columns that we've hidden - $.each( that.s.current, function ( i, val ) { - if ( val === false ) { - that._setColumnVis( i, true ); - } - } ); - } ); - - // Reorder the breakpoints array here in case they have been added out - // of order - this.c.breakpoints.sort( function (a, b) { - return a.width < b.width ? 1 : - a.width > b.width ? -1 : 0; - } ); - - this._classLogic(); - this._resizeAuto(); - - // Details handler - var details = this.c.details; - - if ( details.type !== false ) { - that._detailsInit(); - - // DataTables will trigger this event on every column it shows and - // hides individually - dt.on( 'column-visibility.dtr', function (e, ctx, col, vis) { - that._classLogic(); - that._resizeAuto(); - that._resize(); - } ); - - // Redraw the details box on each draw which will happen if the data - // has changed. This is used until DataTables implements a native - // `updated` event for rows - dt.on( 'draw.dtr', function () { - that._redrawChildren(); - } ); - - $(dt.table().node()).addClass( 'dtr-'+details.type ); - } - - dt.on( 'column-reorder.dtr', function (e, settings, details) { - that._classLogic(); - that._resizeAuto(); - that._resize(); - } ); - - // Change in column sizes means we need to calc - dt.on( 'column-sizing.dtr', function () { - that._resizeAuto(); - that._resize(); - }); - - // On Ajax reload we want to reopen any child rows which are displayed - // by responsive - dt.on( 'preXhr.dtr', function () { - var rowIds = []; - dt.rows().every( function () { - if ( this.child.isShown() ) { - rowIds.push( this.id(true) ); - } - } ); - - dt.one( 'draw.dtr', function () { - dt.rows( rowIds ).every( function () { - that._detailsDisplay( this, false ); - } ); - } ); - }); - - dt.on( 'init.dtr', function (e, settings, details) { - that._resizeAuto(); - that._resize(); - - // If columns were hidden, then DataTables needs to adjust the - // column sizing - if ( $.inArray( false, that.s.current ) ) { - dt.columns.adjust(); - } - } ); - - // First pass - draw the table for the current viewport size - this._resize(); - }, - - - /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * Private methods - */ - - /** - * Calculate the visibility for the columns in a table for a given - * breakpoint. The result is pre-determined based on the class logic if - * class names are used to control all columns, but the width of the table - * is also used if there are columns which are to be automatically shown - * and hidden. - * - * @param {string} breakpoint Breakpoint name to use for the calculation - * @return {array} Array of boolean values initiating the visibility of each - * column. - * @private - */ - _columnsVisiblity: function ( breakpoint ) - { - var dt = this.s.dt; - var columns = this.s.columns; - var i, ien; - - // Create an array that defines the column ordering based first on the - // column's priority, and secondly the column index. This allows the - // columns to be removed from the right if the priority matches - var order = columns - .map( function ( col, idx ) { - return { - columnIdx: idx, - priority: col.priority - }; - } ) - .sort( function ( a, b ) { - if ( a.priority !== b.priority ) { - return a.priority - b.priority; - } - return a.columnIdx - b.columnIdx; - } ); - - // Class logic - determine which columns are in this breakpoint based - // on the classes. If no class control (i.e. `auto`) then `-` is used - // to indicate this to the rest of the function - var display = $.map( columns, function ( col ) { - return col.auto && col.minWidth === null ? - false : - col.auto === true ? - '-' : - $.inArray( breakpoint, col.includeIn ) !== -1; - } ); - - // Auto column control - first pass: how much width is taken by the - // ones that must be included from the non-auto columns - var requiredWidth = 0; - for ( i=0, ien=display.length ; i<ien ; i++ ) { - if ( display[i] === true ) { - requiredWidth += columns[i].minWidth; - } - } - - // Second pass, use up any remaining width for other columns. For - // scrolling tables we need to subtract the width of the scrollbar. It - // may not be requires which makes this sub-optimal, but it would - // require another full redraw to make complete use of those extra few - // pixels - var scrolling = dt.settings()[0].oScroll; - var bar = scrolling.sY || scrolling.sX ? scrolling.iBarWidth : 0; - var widthAvailable = dt.table().container().offsetWidth - bar; - var usedWidth = widthAvailable - requiredWidth; - - // Control column needs to always be included. This makes it sub- - // optimal in terms of using the available with, but to stop layout - // thrashing or overflow. Also we need to account for the control column - // width first so we know how much width is available for the other - // columns, since the control column might not be the first one shown - for ( i=0, ien=display.length ; i<ien ; i++ ) { - if ( columns[i].control ) { - usedWidth -= columns[i].minWidth; - } - } - - // Allow columns to be shown (counting by priority and then right to - // left) until we run out of room - var empty = false; - for ( i=0, ien=order.length ; i<ien ; i++ ) { - var colIdx = order[i].columnIdx; - - if ( display[colIdx] === '-' && ! columns[colIdx].control && columns[colIdx].minWidth ) { - // Once we've found a column that won't fit we don't let any - // others display either, or columns might disappear in the - // middle of the table - if ( empty || usedWidth - columns[colIdx].minWidth < 0 ) { - empty = true; - display[colIdx] = false; - } - else { - display[colIdx] = true; - } - - usedWidth -= columns[colIdx].minWidth; - } - } - - // Determine if the 'control' column should be shown (if there is one). - // This is the case when there is a hidden column (that is not the - // control column). The two loops look inefficient here, but they are - // trivial and will fly through. We need to know the outcome from the - // first , before the action in the second can be taken - var showControl = false; - - for ( i=0, ien=columns.length ; i<ien ; i++ ) { - if ( ! columns[i].control && ! columns[i].never && ! display[i] ) { - showControl = true; - break; - } - } - - for ( i=0, ien=columns.length ; i<ien ; i++ ) { - if ( columns[i].control ) { - display[i] = showControl; - } - } - - // Finally we need to make sure that there is at least one column that - // is visible - if ( $.inArray( true, display ) === -1 ) { - display[0] = true; - } - - return display; - }, - - - /** - * Create the internal `columns` array with information about the columns - * for the table. This includes determining which breakpoints the column - * will appear in, based upon class names in the column, which makes up the - * vast majority of this method. - * - * @private - */ - _classLogic: function () - { - var that = this; - var calc = {}; - var breakpoints = this.c.breakpoints; - var dt = this.s.dt; - var columns = dt.columns().eq(0).map( function (i) { - var column = this.column(i); - var className = column.header().className; - var priority = dt.settings()[0].aoColumns[i].responsivePriority; - - if ( priority === undefined ) { - var dataPriority = $(column.header()).data('priority'); - - priority = dataPriority !== undefined ? - dataPriority * 1 : - 10000; - } - - return { - className: className, - includeIn: [], - auto: false, - control: false, - never: className.match(/\bnever\b/) ? true : false, - priority: priority - }; - } ); - - // Simply add a breakpoint to `includeIn` array, ensuring that there are - // no duplicates - var add = function ( colIdx, name ) { - var includeIn = columns[ colIdx ].includeIn; - - if ( $.inArray( name, includeIn ) === -1 ) { - includeIn.push( name ); - } - }; - - var column = function ( colIdx, name, operator, matched ) { - var size, i, ien; - - if ( ! operator ) { - columns[ colIdx ].includeIn.push( name ); - } - else if ( operator === 'max-' ) { - // Add this breakpoint and all smaller - size = that._find( name ).width; - - for ( i=0, ien=breakpoints.length ; i<ien ; i++ ) { - if ( breakpoints[i].width <= size ) { - add( colIdx, breakpoints[i].name ); - } - } - } - else if ( operator === 'min-' ) { - // Add this breakpoint and all larger - size = that._find( name ).width; - - for ( i=0, ien=breakpoints.length ; i<ien ; i++ ) { - if ( breakpoints[i].width >= size ) { - add( colIdx, breakpoints[i].name ); - } - } - } - else if ( operator === 'not-' ) { - // Add all but this breakpoint - for ( i=0, ien=breakpoints.length ; i<ien ; i++ ) { - if ( breakpoints[i].name.indexOf( matched ) === -1 ) { - add( colIdx, breakpoints[i].name ); - } - } - } - }; - - // Loop over each column and determine if it has a responsive control - // class - columns.each( function ( col, i ) { - var classNames = col.className.split(' '); - var hasClass = false; - - // Split the class name up so multiple rules can be applied if needed - for ( var k=0, ken=classNames.length ; k<ken ; k++ ) { - var className = $.trim( classNames[k] ); - - if ( className === 'all' ) { - // Include in all - hasClass = true; - col.includeIn = $.map( breakpoints, function (a) { - return a.name; - } ); - return; - } - else if ( className === 'none' || col.never ) { - // Include in none (default) and no auto - hasClass = true; - return; - } - else if ( className === 'control' ) { - // Special column that is only visible, when one of the other - // columns is hidden. This is used for the details control - hasClass = true; - col.control = true; - return; - } - - $.each( breakpoints, function ( j, breakpoint ) { - // Does this column have a class that matches this breakpoint? - var brokenPoint = breakpoint.name.split('-'); - var re = new RegExp( '(min\\-|max\\-|not\\-)?('+brokenPoint[0]+')(\\-[_a-zA-Z0-9])?' ); - var match = className.match( re ); - - if ( match ) { - hasClass = true; - - if ( match[2] === brokenPoint[0] && match[3] === '-'+brokenPoint[1] ) { - // Class name matches breakpoint name fully - column( i, breakpoint.name, match[1], match[2]+match[3] ); - } - else if ( match[2] === brokenPoint[0] && ! match[3] ) { - // Class name matched primary breakpoint name with no qualifier - column( i, breakpoint.name, match[1], match[2] ); - } - } - } ); - } - - // If there was no control class, then automatic sizing is used - if ( ! hasClass ) { - col.auto = true; - } - } ); - - this.s.columns = columns; - }, - - - /** - * Show the details for the child row - * - * @param {DataTables.Api} row API instance for the row - * @param {boolean} update Update flag - * @private - */ - _detailsDisplay: function ( row, update ) - { - var that = this; - var dt = this.s.dt; - var details = this.c.details; - - if ( details && details.type !== false ) { - var res = details.display( row, update, function () { - return details.renderer( - dt, row[0], that._detailsObj(row[0]) - ); - } ); - - if ( res === true || res === false ) { - $(dt.table().node()).triggerHandler( 'responsive-display.dt', [dt, row, res, update] ); - } - } - }, - - - /** - * Initialisation for the details handler - * - * @private - */ - _detailsInit: function () - { - var that = this; - var dt = this.s.dt; - var details = this.c.details; - - // The inline type always uses the first child as the target - if ( details.type === 'inline' ) { - details.target = 'td:first-child, th:first-child'; - } - - // Keyboard accessibility - dt.on( 'draw.dtr', function () { - that._tabIndexes(); - } ); - that._tabIndexes(); // Initial draw has already happened - - $( dt.table().body() ).on( 'keyup.dtr', 'td, th', function (e) { - if ( e.keyCode === 13 && $(this).data('dtr-keyboard') ) { - $(this).click(); - } - } ); - - // type.target can be a string jQuery selector or a column index - var target = details.target; - var selector = typeof target === 'string' ? target : 'td, th'; - - // Click handler to show / hide the details rows when they are available - $( dt.table().body() ) - .on( 'click.dtr mousedown.dtr mouseup.dtr', selector, function (e) { - // If the table is not collapsed (i.e. there is no hidden columns) - // then take no action - if ( ! $(dt.table().node()).hasClass('collapsed' ) ) { - return; - } - - // Check that the row is actually a DataTable's controlled node - if ( $.inArray( $(this).closest('tr').get(0), dt.rows().nodes().toArray() ) === -1 ) { - return; - } - - // For column index, we determine if we should act or not in the - // handler - otherwise it is already okay - if ( typeof target === 'number' ) { - var targetIdx = target < 0 ? - dt.columns().eq(0).length + target : - target; - - if ( dt.cell( this ).index().column !== targetIdx ) { - return; - } - } - - // $().closest() includes itself in its check - var row = dt.row( $(this).closest('tr') ); - - // Check event type to do an action - if ( e.type === 'click' ) { - // The renderer is given as a function so the caller can execute it - // only when they need (i.e. if hiding there is no point is running - // the renderer) - that._detailsDisplay( row, false ); - } - else if ( e.type === 'mousedown' ) { - // For mouse users, prevent the focus ring from showing - $(this).css('outline', 'none'); - } - else if ( e.type === 'mouseup' ) { - // And then re-allow at the end of the click - $(this).blur().css('outline', ''); - } - } ); - }, - - - /** - * Get the details to pass to a renderer for a row - * @param {int} rowIdx Row index - * @private - */ - _detailsObj: function ( rowIdx ) - { - var that = this; - var dt = this.s.dt; - - return $.map( this.s.columns, function( col, i ) { - // Never and control columns should not be passed to the renderer - if ( col.never || col.control ) { - return; - } - - return { - title: dt.settings()[0].aoColumns[ i ].sTitle, - data: dt.cell( rowIdx, i ).render( that.c.orthogonal ), - hidden: dt.column( i ).visible() && !that.s.current[ i ], - columnIndex: i, - rowIndex: rowIdx - }; - } ); - }, - - - /** - * Find a breakpoint object from a name - * - * @param {string} name Breakpoint name to find - * @return {object} Breakpoint description object - * @private - */ - _find: function ( name ) - { - var breakpoints = this.c.breakpoints; - - for ( var i=0, ien=breakpoints.length ; i<ien ; i++ ) { - if ( breakpoints[i].name === name ) { - return breakpoints[i]; - } - } - }, - - - /** - * Re-create the contents of the child rows as the display has changed in - * some way. - * - * @private - */ - _redrawChildren: function () - { - var that = this; - var dt = this.s.dt; - - dt.rows( {page: 'current'} ).iterator( 'row', function ( settings, idx ) { - var row = dt.row( idx ); - - that._detailsDisplay( dt.row( idx ), true ); - } ); - }, - - - /** - * Alter the table display for a resized viewport. This involves first - * determining what breakpoint the window currently is in, getting the - * column visibilities to apply and then setting them. - * - * @private - */ - _resize: function () - { - var that = this; - var dt = this.s.dt; - var width = $(window).width(); - var breakpoints = this.c.breakpoints; - var breakpoint = breakpoints[0].name; - var columns = this.s.columns; - var i, ien; - var oldVis = this.s.current.slice(); - - // Determine what breakpoint we are currently at - for ( i=breakpoints.length-1 ; i>=0 ; i-- ) { - if ( width <= breakpoints[i].width ) { - breakpoint = breakpoints[i].name; - break; - } - } - - // Show the columns for that break point - var columnsVis = this._columnsVisiblity( breakpoint ); - this.s.current = columnsVis; - - // Set the class before the column visibility is changed so event - // listeners know what the state is. Need to determine if there are - // any columns that are not visible but can be shown - var collapsedClass = false; - for ( i=0, ien=columns.length ; i<ien ; i++ ) { - if ( columnsVis[i] === false && ! columns[i].never && ! columns[i].control ) { - collapsedClass = true; - break; - } - } - - $( dt.table().node() ).toggleClass( 'collapsed', collapsedClass ); - - var changed = false; - - dt.columns().eq(0).each( function ( colIdx, i ) { - if ( columnsVis[i] !== oldVis[i] ) { - changed = true; - that._setColumnVis( colIdx, columnsVis[i] ); - } - } ); - - if ( changed ) { - this._redrawChildren(); - - // Inform listeners of the change - $(dt.table().node()).trigger( 'responsive-resize.dt', [dt, this.s.current] ); - } - }, - - - /** - * Determine the width of each column in the table so the auto column hiding - * has that information to work with. This method is never going to be 100% - * perfect since column widths can change slightly per page, but without - * seriously compromising performance this is quite effective. - * - * @private - */ - _resizeAuto: function () - { - var dt = this.s.dt; - var columns = this.s.columns; - - // Are we allowed to do auto sizing? - if ( ! this.c.auto ) { - return; - } - - // Are there any columns that actually need auto-sizing, or do they all - // have classes defined - if ( $.inArray( true, $.map( columns, function (c) { return c.auto; } ) ) === -1 ) { - return; - } - - // Clone the table with the current data in it - var tableWidth = dt.table().node().offsetWidth; - var columnWidths = dt.columns; - var clonedTable = dt.table().node().cloneNode( false ); - var clonedHeader = $( dt.table().header().cloneNode( false ) ).appendTo( clonedTable ); - var clonedBody = $( dt.table().body() ).clone( false, false ).empty().appendTo( clonedTable ); // use jQuery because of IE8 - - // Header - var headerCells = dt.columns() - .header() - .filter( function (idx) { - return dt.column(idx).visible(); - } ) - .to$() - .clone( false ) - .css( 'display', 'table-cell' ); - - // Body rows - we don't need to take account of DataTables' column - // visibility since we implement our own here (hence the `display` set) - $(clonedBody) - .append( $(dt.rows( { page: 'current' } ).nodes()).clone( false ) ) - .find( 'th, td' ).css( 'display', '' ); - - // Footer - var footer = dt.table().footer(); - if ( footer ) { - var clonedFooter = $( footer.cloneNode( false ) ).appendTo( clonedTable ); - var footerCells = dt.columns() - .footer() - .filter( function (idx) { - return dt.column(idx).visible(); - } ) - .to$() - .clone( false ) - .css( 'display', 'table-cell' ); - - $('<tr/>') - .append( footerCells ) - .appendTo( clonedFooter ); - } - - $('<tr/>') - .append( headerCells ) - .appendTo( clonedHeader ); - - // In the inline case extra padding is applied to the first column to - // give space for the show / hide icon. We need to use this in the - // calculation - if ( this.c.details.type === 'inline' ) { - $(clonedTable).addClass( 'dtr-inline collapsed' ); - } - - // It is unsafe to insert elements with the same name into the DOM - // multiple times. For example, cloning and inserting a checked radio - // clears the chcecked state of the original radio. - $( clonedTable ).find( '[name]' ).removeAttr( 'name' ); - - var inserted = $('<div/>') - .css( { - width: 1, - height: 1, - overflow: 'hidden' - } ) - .append( clonedTable ); - - inserted.insertBefore( dt.table().node() ); - - // The cloned header now contains the smallest that each column can be - headerCells.each( function (i) { - var idx = dt.column.index( 'fromVisible', i ); - columns[ idx ].minWidth = this.offsetWidth || 0; - } ); - - inserted.remove(); - }, - - /** - * Set a column's visibility. - * - * We don't use DataTables' column visibility controls in order to ensure - * that column visibility can Responsive can no-exist. Since only IE8+ is - * supported (and all evergreen browsers of course) the control of the - * display attribute works well. - * - * @param {integer} col Column index - * @param {boolean} showHide Show or hide (true or false) - * @private - */ - _setColumnVis: function ( col, showHide ) - { - var dt = this.s.dt; - var display = showHide ? '' : 'none'; // empty string will remove the attr - - $( dt.column( col ).header() ).css( 'display', display ); - $( dt.column( col ).footer() ).css( 'display', display ); - dt.column( col ).nodes().to$().css( 'display', display ); - }, - - - /** - * Update the cell tab indexes for keyboard accessibility. This is called on - * every table draw - that is potentially inefficient, but also the least - * complex option given that column visibility can change on the fly. Its a - * shame user-focus was removed from CSS 3 UI, as it would have solved this - * issue with a single CSS statement. - * - * @private - */ - _tabIndexes: function () - { - var dt = this.s.dt; - var cells = dt.cells( { page: 'current' } ).nodes().to$(); - var ctx = dt.settings()[0]; - var target = this.c.details.target; - - cells.filter( '[data-dtr-keyboard]' ).removeData( '[data-dtr-keyboard]' ); - - var selector = typeof target === 'number' ? - ':eq('+target+')' : - target; - - // This is a bit of a hack - we need to limit the selected nodes to just - // those of this table - if ( selector === 'td:first-child, th:first-child' ) { - selector = '>td:first-child, >th:first-child'; - } - - $( selector, dt.rows( { page: 'current' } ).nodes() ) - .attr( 'tabIndex', ctx.iTabIndex ) - .data( 'dtr-keyboard', 1 ); - } -} ); - - -/** - * List of default breakpoints. Each item in the array is an object with two - * properties: - * - * * `name` - the breakpoint name. - * * `width` - the breakpoint width - * - * @name Responsive.breakpoints - * @static - */ -Responsive.breakpoints = [ - { name: 'desktop', width: Infinity }, - { name: 'tablet-l', width: 1024 }, - { name: 'tablet-p', width: 768 }, - { name: 'mobile-l', width: 480 }, - { name: 'mobile-p', width: 320 } -]; - - -/** - * Display methods - functions which define how the hidden data should be shown - * in the table. - * - * @namespace - * @name Responsive.defaults - * @static - */ -Responsive.display = { - childRow: function ( row, update, render ) { - if ( update ) { - if ( $(row.node()).hasClass('parent') ) { - row.child( render(), 'child' ).show(); - - return true; - } - } - else { - if ( ! row.child.isShown() ) { - row.child( render(), 'child' ).show(); - $( row.node() ).addClass( 'parent' ); - - return true; - } - else { - row.child( false ); - $( row.node() ).removeClass( 'parent' ); - - return false; - } - } - }, - - childRowImmediate: function ( row, update, render ) { - if ( (! update && row.child.isShown()) || ! row.responsive.hasHidden() ) { - // User interaction and the row is show, or nothing to show - row.child( false ); - $( row.node() ).removeClass( 'parent' ); - - return false; - } - else { - // Display - row.child( render(), 'child' ).show(); - $( row.node() ).addClass( 'parent' ); - - return true; - } - }, - - // This is a wrapper so the modal options for Bootstrap and jQuery UI can - // have options passed into them. This specific one doesn't need to be a - // function but it is for consistency in the `modal` name - modal: function ( options ) { - return function ( row, update, render ) { - if ( ! update ) { - // Show a modal - var close = function () { - modal.remove(); // will tidy events for us - $(document).off( 'keypress.dtr' ); - }; - - var modal = $('<div class="dtr-modal"/>') - .append( $('<div class="dtr-modal-display"/>') - .append( $('<div class="dtr-modal-content"/>') - .append( render() ) - ) - .append( $('<div class="dtr-modal-close">×</div>' ) - .click( function () { - close(); - } ) - ) - ) - .append( $('<div class="dtr-modal-background"/>') - .click( function () { - close(); - } ) - ) - .appendTo( 'body' ); - - $(document).on( 'keyup.dtr', function (e) { - if ( e.keyCode === 27 ) { - e.stopPropagation(); - - close(); - } - } ); - } - else { - $('div.dtr-modal-content') - .empty() - .append( render() ); - } - - if ( options && options.header ) { - $('div.dtr-modal-content').prepend( - '<h2>'+options.header( row )+'</h2>' - ); - } - }; - } -}; - - -/** - * Display methods - functions which define how the hidden data should be shown - * in the table. - * - * @namespace - * @name Responsive.defaults - * @static - */ -Responsive.renderer = { - listHidden: function () { - return function ( api, rowIdx, columns ) { - var data = $.map( columns, function ( col ) { - return col.hidden ? - '<li data-dtr-index="'+col.columnIndex+'" data-dt-row="'+col.rowIndex+'" data-dt-column="'+col.columnIndex+'">'+ - '<span class="dtr-title">'+ - col.title+ - '</span> '+ - '<span class="dtr-data">'+ - col.data+ - '</span>'+ - '</li>' : - ''; - } ).join(''); - - return data ? - $('<ul data-dtr-index="'+rowIdx+'" class="dtr-details"/>').append( data ) : - false; - } - }, - - tableAll: function ( options ) { - options = $.extend( { - tableClass: '' - }, options ); - - return function ( api, rowIdx, columns ) { - var data = $.map( columns, function ( col ) { - return '<tr data-dt-row="'+col.rowIndex+'" data-dt-column="'+col.columnIndex+'">'+ - '<td>'+col.title+':'+'</td> '+ - '<td>'+col.data+'</td>'+ - '</tr>'; - } ).join(''); - - return $('<table class="'+options.tableClass+' dtr-details" width="100%"/>').append( data ); - } - } -}; - -/** - * Responsive default settings for initialisation - * - * @namespace - * @name Responsive.defaults - * @static - */ -Responsive.defaults = { - /** - * List of breakpoints for the instance. Note that this means that each - * instance can have its own breakpoints. Additionally, the breakpoints - * cannot be changed once an instance has been creased. - * - * @type {Array} - * @default Takes the value of `Responsive.breakpoints` - */ - breakpoints: Responsive.breakpoints, - - /** - * Enable / disable auto hiding calculations. It can help to increase - * performance slightly if you disable this option, but all columns would - * need to have breakpoint classes assigned to them - * - * @type {Boolean} - * @default `true` - */ - auto: true, - - /** - * Details control. If given as a string value, the `type` property of the - * default object is set to that value, and the defaults used for the rest - * of the object - this is for ease of implementation. - * - * The object consists of the following properties: - * - * * `display` - A function that is used to show and hide the hidden details - * * `renderer` - function that is called for display of the child row data. - * The default function will show the data from the hidden columns - * * `target` - Used as the selector for what objects to attach the child - * open / close to - * * `type` - `false` to disable the details display, `inline` or `column` - * for the two control types - * - * @type {Object|string} - */ - details: { - display: Responsive.display.childRow, - - renderer: Responsive.renderer.listHidden(), - - target: 0, - - type: 'inline' - }, - - /** - * Orthogonal data request option. This is used to define the data type - * requested when Responsive gets the data to show in the child row. - * - * @type {String} - */ - orthogonal: 'display' -}; - - -/* - * API - */ -var Api = $.fn.dataTable.Api; - -// Doesn't do anything - work around for a bug in DT... Not documented -Api.register( 'responsive()', function () { - return this; -} ); - -Api.register( 'responsive.index()', function ( li ) { - li = $(li); - - return { - column: li.data('dtr-index'), - row: li.parent().data('dtr-index') - }; -} ); - -Api.register( 'responsive.rebuild()', function () { - return this.iterator( 'table', function ( ctx ) { - if ( ctx._responsive ) { - ctx._responsive._classLogic(); - } - } ); -} ); - -Api.register( 'responsive.recalc()', function () { - return this.iterator( 'table', function ( ctx ) { - if ( ctx._responsive ) { - ctx._responsive._resizeAuto(); - ctx._responsive._resize(); - } - } ); -} ); - -Api.register( 'responsive.hasHidden()', function () { - var ctx = this.context[0]; - - return ctx._responsive ? - $.inArray( false, ctx._responsive.s.current ) !== -1 : - false; -} ); - - -/** - * Version information - * - * @name Responsive.version - * @static - */ -Responsive.version = '2.1.1'; - - -$.fn.dataTable.Responsive = Responsive; -$.fn.DataTable.Responsive = Responsive; - -// Attach a listener to the document which listens for DataTables initialisation -// events so we can automatically initialise -$(document).on( 'preInit.dt.dtr', function (e, settings, json) { - if ( e.namespace !== 'dt' ) { - return; - } - - if ( $(settings.nTable).hasClass( 'responsive' ) || - $(settings.nTable).hasClass( 'dt-responsive' ) || - settings.oInit.responsive || - DataTable.defaults.responsive - ) { - var init = settings.oInit.responsive; - - if ( init !== false ) { - new Responsive( settings, $.isPlainObject( init ) ? init : {} ); - } - } -} ); - - -return Responsive; -})); diff --git a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/js/dataTables.responsive.min.js b/public/assets/js/_pythia/dataTables/Responsive-2.1.1/js/dataTables.responsive.min.js deleted file mode 100644 index 2bbfabb..0000000 --- a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/js/dataTables.responsive.min.js +++ /dev/null @@ -1,26 +0,0 @@ -/*! - Responsive 2.1.1 - 2014-2016 SpryMedia Ltd - datatables.net/license -*/ -(function(c){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(l){return c(l,window,document)}):"object"===typeof exports?module.exports=function(l,k){l||(l=window);if(!k||!k.fn.dataTable)k=require("datatables.net")(l,k).$;return c(k,l,l.document)}:c(jQuery,window,document)})(function(c,l,k,p){var m=c.fn.dataTable,j=function(b,a){if(!m.versionCheck||!m.versionCheck("1.10.3"))throw"DataTables Responsive requires DataTables 1.10.3 or newer";this.s={dt:new m.Api(b),columns:[], -current:[]};this.s.dt.settings()[0].responsive||(a&&"string"===typeof a.details?a.details={type:a.details}:a&&!1===a.details?a.details={type:!1}:a&&!0===a.details&&(a.details={type:"inline"}),this.c=c.extend(!0,{},j.defaults,m.defaults.responsive,a),b.responsive=this,this._constructor())};c.extend(j.prototype,{_constructor:function(){var b=this,a=this.s.dt,d=a.settings()[0],e=c(l).width();a.settings()[0]._responsive=this;c(l).on("resize.dtr orientationchange.dtr",m.util.throttle(function(){var a= -c(l).width();a!==e&&(b._resize(),e=a)}));d.oApi._fnCallbackReg(d,"aoRowCreatedCallback",function(e){-1!==c.inArray(!1,b.s.current)&&c(">td, >th",e).each(function(e){e=a.column.index("toData",e);!1===b.s.current[e]&&c(this).css("display","none")})});a.on("destroy.dtr",function(){a.off(".dtr");c(a.table().body()).off(".dtr");c(l).off("resize.dtr orientationchange.dtr");c.each(b.s.current,function(a,e){!1===e&&b._setColumnVis(a,!0)})});this.c.breakpoints.sort(function(a,b){return a.width<b.width?1:a.width> -b.width?-1:0});this._classLogic();this._resizeAuto();d=this.c.details;!1!==d.type&&(b._detailsInit(),a.on("column-visibility.dtr",function(){b._classLogic();b._resizeAuto();b._resize()}),a.on("draw.dtr",function(){b._redrawChildren()}),c(a.table().node()).addClass("dtr-"+d.type));a.on("column-reorder.dtr",function(){b._classLogic();b._resizeAuto();b._resize()});a.on("column-sizing.dtr",function(){b._resizeAuto();b._resize()});a.on("preXhr.dtr",function(){var e=[];a.rows().every(function(){this.child.isShown()&& -e.push(this.id(true))});a.one("draw.dtr",function(){a.rows(e).every(function(){b._detailsDisplay(this,false)})})});a.on("init.dtr",function(){b._resizeAuto();b._resize();c.inArray(false,b.s.current)&&a.columns.adjust()});this._resize()},_columnsVisiblity:function(b){var a=this.s.dt,d=this.s.columns,e,f,g=d.map(function(a,b){return{columnIdx:b,priority:a.priority}}).sort(function(a,b){return a.priority!==b.priority?a.priority-b.priority:a.columnIdx-b.columnIdx}),h=c.map(d,function(a){return a.auto&& -null===a.minWidth?!1:!0===a.auto?"-":-1!==c.inArray(b,a.includeIn)}),n=0;e=0;for(f=h.length;e<f;e++)!0===h[e]&&(n+=d[e].minWidth);e=a.settings()[0].oScroll;e=e.sY||e.sX?e.iBarWidth:0;a=a.table().container().offsetWidth-e-n;e=0;for(f=h.length;e<f;e++)d[e].control&&(a-=d[e].minWidth);n=!1;e=0;for(f=g.length;e<f;e++){var i=g[e].columnIdx;"-"===h[i]&&(!d[i].control&&d[i].minWidth)&&(n||0>a-d[i].minWidth?(n=!0,h[i]=!1):h[i]=!0,a-=d[i].minWidth)}g=!1;e=0;for(f=d.length;e<f;e++)if(!d[e].control&&!d[e].never&& -!h[e]){g=!0;break}e=0;for(f=d.length;e<f;e++)d[e].control&&(h[e]=g);-1===c.inArray(!0,h)&&(h[0]=!0);return h},_classLogic:function(){var b=this,a=this.c.breakpoints,d=this.s.dt,e=d.columns().eq(0).map(function(a){var b=this.column(a),e=b.header().className,a=d.settings()[0].aoColumns[a].responsivePriority;a===p&&(b=c(b.header()).data("priority"),a=b!==p?1*b:1E4);return{className:e,includeIn:[],auto:!1,control:!1,never:e.match(/\bnever\b/)?!0:!1,priority:a}}),f=function(a,b){var d=e[a].includeIn;-1=== -c.inArray(b,d)&&d.push(b)},g=function(c,d,i,g){if(i)if("max-"===i){g=b._find(d).width;d=0;for(i=a.length;d<i;d++)a[d].width<=g&&f(c,a[d].name)}else if("min-"===i){g=b._find(d).width;d=0;for(i=a.length;d<i;d++)a[d].width>=g&&f(c,a[d].name)}else{if("not-"===i){d=0;for(i=a.length;d<i;d++)-1===a[d].name.indexOf(g)&&f(c,a[d].name)}}else e[c].includeIn.push(d)};e.each(function(b,e){for(var d=b.className.split(" "),f=!1,j=0,l=d.length;j<l;j++){var k=c.trim(d[j]);if("all"===k){f=!0;b.includeIn=c.map(a,function(a){return a.name}); -return}if("none"===k||b.never){f=!0;return}if("control"===k){f=!0;b.control=!0;return}c.each(a,function(a,b){var d=b.name.split("-"),c=k.match(RegExp("(min\\-|max\\-|not\\-)?("+d[0]+")(\\-[_a-zA-Z0-9])?"));c&&(f=!0,c[2]===d[0]&&c[3]==="-"+d[1]?g(e,b.name,c[1],c[2]+c[3]):c[2]===d[0]&&!c[3]&&g(e,b.name,c[1],c[2]))})}f||(b.auto=!0)});this.s.columns=e},_detailsDisplay:function(b,a){var d=this,e=this.s.dt,f=this.c.details;if(f&&!1!==f.type){var g=f.display(b,a,function(){return f.renderer(e,b[0],d._detailsObj(b[0]))}); -(!0===g||!1===g)&&c(e.table().node()).triggerHandler("responsive-display.dt",[e,b,g,a])}},_detailsInit:function(){var b=this,a=this.s.dt,d=this.c.details;"inline"===d.type&&(d.target="td:first-child, th:first-child");a.on("draw.dtr",function(){b._tabIndexes()});b._tabIndexes();c(a.table().body()).on("keyup.dtr","td, th",function(b){b.keyCode===13&&c(this).data("dtr-keyboard")&&c(this).click()});var e=d.target;c(a.table().body()).on("click.dtr mousedown.dtr mouseup.dtr","string"===typeof e?e:"td, th", -function(d){if(c(a.table().node()).hasClass("collapsed")&&c.inArray(c(this).closest("tr").get(0),a.rows().nodes().toArray())!==-1){if(typeof e==="number"){var g=e<0?a.columns().eq(0).length+e:e;if(a.cell(this).index().column!==g)return}g=a.row(c(this).closest("tr"));d.type==="click"?b._detailsDisplay(g,false):d.type==="mousedown"?c(this).css("outline","none"):d.type==="mouseup"&&c(this).blur().css("outline","")}})},_detailsObj:function(b){var a=this,d=this.s.dt;return c.map(this.s.columns,function(e, -c){if(!e.never&&!e.control)return{title:d.settings()[0].aoColumns[c].sTitle,data:d.cell(b,c).render(a.c.orthogonal),hidden:d.column(c).visible()&&!a.s.current[c],columnIndex:c,rowIndex:b}})},_find:function(b){for(var a=this.c.breakpoints,d=0,c=a.length;d<c;d++)if(a[d].name===b)return a[d]},_redrawChildren:function(){var b=this,a=this.s.dt;a.rows({page:"current"}).iterator("row",function(c,e){a.row(e);b._detailsDisplay(a.row(e),!0)})},_resize:function(){var b=this,a=this.s.dt,d=c(l).width(),e=this.c.breakpoints, -f=e[0].name,g=this.s.columns,h,j=this.s.current.slice();for(h=e.length-1;0<=h;h--)if(d<=e[h].width){f=e[h].name;break}var i=this._columnsVisiblity(f);this.s.current=i;e=!1;h=0;for(d=g.length;h<d;h++)if(!1===i[h]&&!g[h].never&&!g[h].control){e=!0;break}c(a.table().node()).toggleClass("collapsed",e);var k=!1;a.columns().eq(0).each(function(a,c){i[c]!==j[c]&&(k=!0,b._setColumnVis(a,i[c]))});k&&(this._redrawChildren(),c(a.table().node()).trigger("responsive-resize.dt",[a,this.s.current]))},_resizeAuto:function(){var b= -this.s.dt,a=this.s.columns;if(this.c.auto&&-1!==c.inArray(!0,c.map(a,function(b){return b.auto}))){b.table().node();var d=b.table().node().cloneNode(!1),e=c(b.table().header().cloneNode(!1)).appendTo(d),f=c(b.table().body()).clone(!1,!1).empty().appendTo(d),g=b.columns().header().filter(function(a){return b.column(a).visible()}).to$().clone(!1).css("display","table-cell");c(f).append(c(b.rows({page:"current"}).nodes()).clone(!1)).find("th, td").css("display","");if(f=b.table().footer()){var f=c(f.cloneNode(!1)).appendTo(d), -h=b.columns().footer().filter(function(a){return b.column(a).visible()}).to$().clone(!1).css("display","table-cell");c("<tr/>").append(h).appendTo(f)}c("<tr/>").append(g).appendTo(e);"inline"===this.c.details.type&&c(d).addClass("dtr-inline collapsed");c(d).find("[name]").removeAttr("name");d=c("<div/>").css({width:1,height:1,overflow:"hidden"}).append(d);d.insertBefore(b.table().node());g.each(function(c){c=b.column.index("fromVisible",c);a[c].minWidth=this.offsetWidth||0});d.remove()}},_setColumnVis:function(b, -a){var d=this.s.dt,e=a?"":"none";c(d.column(b).header()).css("display",e);c(d.column(b).footer()).css("display",e);d.column(b).nodes().to$().css("display",e)},_tabIndexes:function(){var b=this.s.dt,a=b.cells({page:"current"}).nodes().to$(),d=b.settings()[0],e=this.c.details.target;a.filter("[data-dtr-keyboard]").removeData("[data-dtr-keyboard]");a="number"===typeof e?":eq("+e+")":e;"td:first-child, th:first-child"===a&&(a=">td:first-child, >th:first-child");c(a,b.rows({page:"current"}).nodes()).attr("tabIndex", -d.iTabIndex).data("dtr-keyboard",1)}});j.breakpoints=[{name:"desktop",width:Infinity},{name:"tablet-l",width:1024},{name:"tablet-p",width:768},{name:"mobile-l",width:480},{name:"mobile-p",width:320}];j.display={childRow:function(b,a,d){if(a){if(c(b.node()).hasClass("parent"))return b.child(d(),"child").show(),!0}else{if(b.child.isShown())return b.child(!1),c(b.node()).removeClass("parent"),!1;b.child(d(),"child").show();c(b.node()).addClass("parent");return!0}},childRowImmediate:function(b,a,d){if(!a&& -b.child.isShown()||!b.responsive.hasHidden())return b.child(!1),c(b.node()).removeClass("parent"),!1;b.child(d(),"child").show();c(b.node()).addClass("parent");return!0},modal:function(b){return function(a,d,e){if(d)c("div.dtr-modal-content").empty().append(e());else{var f=function(){g.remove();c(k).off("keypress.dtr")},g=c('<div class="dtr-modal"/>').append(c('<div class="dtr-modal-display"/>').append(c('<div class="dtr-modal-content"/>').append(e())).append(c('<div class="dtr-modal-close">×</div>').click(function(){f()}))).append(c('<div class="dtr-modal-background"/>').click(function(){f()})).appendTo("body"); -c(k).on("keyup.dtr",function(a){27===a.keyCode&&(a.stopPropagation(),f())})}b&&b.header&&c("div.dtr-modal-content").prepend("<h2>"+b.header(a)+"</h2>")}}};j.renderer={listHidden:function(){return function(b,a,d){return(b=c.map(d,function(a){return a.hidden?'<li data-dtr-index="'+a.columnIndex+'" data-dt-row="'+a.rowIndex+'" data-dt-column="'+a.columnIndex+'"><span class="dtr-title">'+a.title+'</span> <span class="dtr-data">'+a.data+"</span></li>":""}).join(""))?c('<ul data-dtr-index="'+a+'" class="dtr-details"/>').append(b): -!1}},tableAll:function(b){b=c.extend({tableClass:""},b);return function(a,d,e){a=c.map(e,function(a){return'<tr data-dt-row="'+a.rowIndex+'" data-dt-column="'+a.columnIndex+'"><td>'+a.title+":</td> <td>"+a.data+"</td></tr>"}).join("");return c('<table class="'+b.tableClass+' dtr-details" width="100%"/>').append(a)}}};j.defaults={breakpoints:j.breakpoints,auto:!0,details:{display:j.display.childRow,renderer:j.renderer.listHidden(),target:0,type:"inline"},orthogonal:"display"};var o=c.fn.dataTable.Api; -o.register("responsive()",function(){return this});o.register("responsive.index()",function(b){b=c(b);return{column:b.data("dtr-index"),row:b.parent().data("dtr-index")}});o.register("responsive.rebuild()",function(){return this.iterator("table",function(b){b._responsive&&b._responsive._classLogic()})});o.register("responsive.recalc()",function(){return this.iterator("table",function(b){b._responsive&&(b._responsive._resizeAuto(),b._responsive._resize())})});o.register("responsive.hasHidden()",function(){var b= -this.context[0];return b._responsive?-1!==c.inArray(!1,b._responsive.s.current):!1});j.version="2.1.1";c.fn.dataTable.Responsive=j;c.fn.DataTable.Responsive=j;c(k).on("preInit.dt.dtr",function(b,a){if("dt"===b.namespace&&(c(a.nTable).hasClass("responsive")||c(a.nTable).hasClass("dt-responsive")||a.oInit.responsive||m.defaults.responsive)){var d=a.oInit.responsive;!1!==d&&new j(a,c.isPlainObject(d)?d:{})}});return j}); diff --git a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/js/responsive.bootstrap.js b/public/assets/js/_pythia/dataTables/Responsive-2.1.1/js/responsive.bootstrap.js deleted file mode 100644 index c275a0e..0000000 --- a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/js/responsive.bootstrap.js +++ /dev/null @@ -1,85 +0,0 @@ -/*! Bootstrap integration for DataTables' Responsive - * ©2015-2016 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; -var _modal = $( - '<div class="modal fade dtr-bs-modal" 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">×</span></button>'+ - '</div>'+ - '<div class="modal-body"/>'+ - '</div>'+ - '</div>'+ - '</div>' -); - -_display.modal = function ( options ) { - return function ( row, update, render ) { - if ( ! $.fn.modal ) { - _original( row, update, render ); - } - else { - if ( ! update ) { - if ( options && options.header ) { - var header = _modal.find('div.modal-header'); - var button = header.find('button').detach(); - - header - .empty() - .append( '<h4 class="modal-title">'+options.header( row )+'</h4>' ) - .prepend( button ); - } - - _modal.find( 'div.modal-body' ) - .empty() - .append( render() ); - - _modal - .appendTo( 'body' ) - .modal(); - } - } - }; -}; - - -return DataTable.Responsive; -})); diff --git a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/js/responsive.bootstrap.min.js b/public/assets/js/_pythia/dataTables/Responsive-2.1.1/js/responsive.bootstrap.min.js deleted file mode 100644 index e77a6da..0000000 --- a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/js/responsive.bootstrap.min.js +++ /dev/null @@ -1,6 +0,0 @@ -/*! - Bootstrap integration for DataTables' Responsive - ©2015-2016 SpryMedia Ltd - datatables.net/license -*/ -(function(c){"function"===typeof define&&define.amd?define(["jquery","datatables.net-bs","datatables.net-responsive"],function(a){return c(a,window,document)}):"object"===typeof exports?module.exports=function(a,b){a||(a=window);if(!b||!b.fn.dataTable)b=require("datatables.net-bs")(a,b).$;b.fn.dataTable.Responsive||require("datatables.net-responsive")(a,b);return c(b,a,a.document)}:c(jQuery,window,document)})(function(c){var a=c.fn.dataTable,b=a.Responsive.display,g=b.modal,e=c('<div class="modal fade dtr-bs-modal" 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">×</span></button></div><div class="modal-body"/></div></div></div>'); -b.modal=function(a){return function(b,d,f){if(c.fn.modal){if(!d){if(a&&a.header){var d=e.find("div.modal-header"),h=d.find("button").detach();d.empty().append('<h4 class="modal-title">'+a.header(b)+"</h4>").prepend(h)}e.find("div.modal-body").empty().append(f());e.appendTo("body").modal()}}else g(b,d,f)}};return a.Responsive}); diff --git a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/js/responsive.foundation.js b/public/assets/js/_pythia/dataTables/Responsive-2.1.1/js/responsive.foundation.js deleted file mode 100644 index 99e8689..0000000 --- a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/js/responsive.foundation.js +++ /dev/null @@ -1,62 +0,0 @@ -/*! 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">×</a>' ) - .append( options && options.header ? '<h4>'+options.header( row )+'</h4>' : null ) - .append( render() ) - .appendTo( 'body' ) - .foundation( 'reveal', 'open' ); - } - } - }; -}; - - -return DataTable.Responsive; -})); diff --git a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/js/responsive.foundation.min.js b/public/assets/js/_pythia/dataTables/Responsive-2.1.1/js/responsive.foundation.min.js deleted file mode 100644 index e48fea2..0000000 --- a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/js/responsive.foundation.min.js +++ /dev/null @@ -1,6 +0,0 @@ -/*! - Foundation integration for DataTables' Responsive - ©2015 SpryMedia Ltd - datatables.net/license -*/ -(function(c){"function"===typeof define&&define.amd?define(["jquery","datatables.net-zf","datatables.net-responsive"],function(a){return c(a,window,document)}):"object"===typeof exports?module.exports=function(a,b){a||(a=window);if(!b||!b.fn.dataTable)b=require("datatables.net-zf")(a,b).$;b.fn.dataTable.Responsive||require("datatables.net-responsive")(a,b);return c(b,a,a.document)}:c(jQuery,window,document)})(function(c){var a=c.fn.dataTable,b=a.Responsive.display,f=b.modal;b.modal=function(a){return function(b, -d,e){c.fn.foundation?d||c('<div class="reveal-modal" data-reveal/>').append('<a class="close-reveal-modal" aria-label="Close">×</a>').append(a&&a.header?"<h4>"+a.header(b)+"</h4>":null).append(e()).appendTo("body").foundation("reveal","open"):f(b,d,e)}};return a.Responsive}); diff --git a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/js/responsive.jqueryui.js b/public/assets/js/_pythia/dataTables/Responsive-2.1.1/js/responsive.jqueryui.js deleted file mode 100644 index 2c1d23d..0000000 --- a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/js/responsive.jqueryui.js +++ /dev/null @@ -1,63 +0,0 @@ -/*! 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; -})); diff --git a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/js/responsive.jqueryui.min.js b/public/assets/js/_pythia/dataTables/Responsive-2.1.1/js/responsive.jqueryui.min.js deleted file mode 100644 index e8f98dd..0000000 --- a/public/assets/js/_pythia/dataTables/Responsive-2.1.1/js/responsive.jqueryui.min.js +++ /dev/null @@ -1,6 +0,0 @@ -/*! - jQuery UI integration for DataTables' Responsive - ©2015 SpryMedia Ltd - datatables.net/license -*/ -(function(c){"function"===typeof define&&define.amd?define(["jquery","datatables.net-jqui","datatables.net-responsive"],function(a){return c(a,window,document)}):"object"===typeof exports?module.exports=function(a,b){a||(a=window);if(!b||!b.fn.dataTable)b=require("datatables.net-jqui")(a,b).$;b.fn.dataTable.Responsive||require("datatables.net-responsive")(a,b);return c(b,a,a.document)}:c(jQuery,window,document)})(function(c){var a=c.fn.dataTable,b=a.Responsive.display,f=b.modal;b.modal=function(a){return function(b, -d,e){c.fn.dialog?d||c("<div/>").append(e()).appendTo("body").dialog(c.extend(!0,{title:a&&a.header?a.header(b):"",width:500},a.dialog)):f(b,d,e)}};return a.Responsive}); |
