diff --git a/.gitignore b/.gitignore index 1c2d52b..11a0a12 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .idea/* +venv/ diff --git a/css.min/datatable.bundle.min.css b/css.min/datatable.bundle.min.css index 5d2872f..5cadadd 100644 --- a/css.min/datatable.bundle.min.css +++ b/css.min/datatable.bundle.min.css @@ -1 +1 @@ -.bootstrap-table .table{margin-bottom:0!important;border-bottom:1px solid #dddddd;border-collapse:collapse!important;border-radius:1px}.bootstrap-table .table:not(.table-condensed),.bootstrap-table .table:not(.table-condensed)>tbody>tr>th,.bootstrap-table .table:not(.table-condensed)>tfoot>tr>th,.bootstrap-table .table:not(.table-condensed)>thead>tr>td,.bootstrap-table .table:not(.table-condensed)>tbody>tr>td,.bootstrap-table .table:not(.table-condensed)>tfoot>tr>td{padding:8px}.bootstrap-table .table.table-no-bordered>thead>tr>th,.bootstrap-table .table.table-no-bordered>tbody>tr>td{border-right:2px solid transparent}.bootstrap-table .table.table-no-bordered>tbody>tr>td:last-child{border-right:none}.fixed-table-container{position:relative;clear:both;border:1px solid #dddddd;border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px}.fixed-table-container.table-no-bordered{border:1px solid transparent}.fixed-table-footer,.fixed-table-header{overflow:hidden}.fixed-table-footer{border-top:1px solid #dddddd}.fixed-table-body{overflow-x:auto;overflow-y:auto;height:100%}.fixed-table-container table{width:100%}.fixed-table-container thead th{height:0;padding:0;margin:0;border-left:1px solid #dddddd}.fixed-table-container thead th:focus{outline:0 solid transparent}.fixed-table-container thead th:first-child:not([data-not-first-th]){border-left:none;border-top-left-radius:4px;-webkit-border-top-left-radius:4px;-moz-border-radius-topleft:4px}.fixed-table-container thead th .th-inner,.fixed-table-container tbody td .th-inner{padding:8px;line-height:24px;vertical-align:top;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fixed-table-container thead th .sortable{cursor:pointer;background-position:right;background-repeat:no-repeat;padding-right:30px}.fixed-table-container thead th .both{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7XQMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL+Tq/QCM1oNiJidwox0355mXnG/DrEtIQ6azioNZQxI0ykPhTQIwhCR+BmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P+GtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC')}.fixed-table-container thead th .asc{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS/gDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM+wTENuQahAvEO9DMwiGdwAxOymGJQLxTyD+jgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg==')}.fixed-table-container thead th .desc{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZUlEQVQ4y2NgGAWjYBSggaqGu5FA/BOIv2PBIPFEUgxjB+IdQPwfC94HxLykus4GiD+hGfQOiB3J8SojEE9EM2wuSJzcsFMG4ttQgx4DsRalkZENxL+AuJQaMcsGxBOAmGvopk8AVz1sLZgg0bsAAAAASUVORK5CYII=')}.fixed-table-container th.detail{width:30px}.fixed-table-container tbody td{border-left:1px solid #dddddd}.fixed-table-container tbody tr:first-child td{border-top:none}.fixed-table-container tbody td:first-child{border-left:none}.fixed-table-container tbody .selected td{background-color:#f5f5f5}.fixed-table-container .bs-checkbox{text-align:center}.fixed-table-container input[type="radio"],.fixed-table-container input[type="checkbox"]{margin:0 auto!important}.fixed-table-container .no-records-found{text-align:center}.fixed-table-pagination div.pagination,.fixed-table-pagination .pagination-detail{margin-top:10px;margin-bottom:10px}.fixed-table-pagination div.pagination .pagination{margin:0}.fixed-table-pagination .pagination a{padding:6px 12px;line-height:1.428571429}.fixed-table-pagination .pagination-info{line-height:34px;margin-right:5px}.fixed-table-pagination .btn-group{position:relative;display:inline-block;vertical-align:middle}.fixed-table-pagination .dropup .dropdown-menu{margin-bottom:0}.fixed-table-pagination .page-list{display:inline-block}.fixed-table-toolbar .columns-left{margin-right:5px}.fixed-table-toolbar .columns-right{margin-left:5px}.fixed-table-toolbar .columns label{display:block;padding:3px 20px;clear:both;font-weight:normal;line-height:1.428571429}.fixed-table-toolbar .bs-bars,.fixed-table-toolbar .search,.fixed-table-toolbar .columns{position:relative;margin-top:10px;margin-bottom:10px;line-height:34px}.fixed-table-pagination li.disabled a{pointer-events:none;cursor:default}.fixed-table-loading{display:none;position:absolute;top:42px;right:0;bottom:0;left:0;z-index:99;background-color:#fff;text-align:center}.fixed-table-body .card-view .title{font-weight:bold;display:inline-block;min-width:30%;text-align:left!important}.fixed-table-body thead th .th-inner{box-sizing:border-box}.table th,.table td{vertical-align:middle;box-sizing:border-box}.fixed-table-toolbar .dropdown-menu{text-align:left;max-height:300px;overflow:auto}.fixed-table-toolbar .btn-group>.btn-group{display:inline-block;margin-left:-1px!important}.fixed-table-toolbar .btn-group>.btn-group>.btn{border-radius:0}.fixed-table-toolbar .btn-group>.btn-group:first-child>.btn{border-top-left-radius:4px;border-bottom-left-radius:4px}.fixed-table-toolbar .btn-group>.btn-group:last-child>.btn{border-top-right-radius:4px;border-bottom-right-radius:4px}.bootstrap-table .table>thead>tr>th{vertical-align:bottom;border-bottom:1px solid #ddd}.bootstrap-table .table thead>tr>th{padding:0;margin:0}.bootstrap-table .fixed-table-footer tbody>tr>td{padding:0!important}.bootstrap-table .fixed-table-footer .table{border-bottom:none;border-radius:0;padding:0!important}.bootstrap-table .pull-right .dropdown-menu{right:0;left:auto}p.fixed-table-scroll-inner{width:100%;height:200px}div.fixed-table-scroll-outer{top:0;left:0;visibility:hidden;width:200px;height:150px;overflow:hidden}.fixed-table-toolbar:after,.fixed-table-pagination:after{content:"";display:block;clear:both}.fullscreen{position:fixed;top:0;left:0;z-index:1050;width:100%!important;background:#FFF}.sep-left-cell{border-left:solid 1px #000!important}.sep-right-cell{border-right:solid 1px #000!important}.highlight-cell{background-color:#FCF8E3!important}td.sm-cell{font-size:80%}td.xs-cell{font-size:60%}.datatable{margin-top:10px;margin-bottom:10px}.datatable-toolbar{margin-top:3px;margin-bottom:3px}.datatable a.icon,.datatable a.icon:hover,a.datatable-icon,a.datatable-icon:hover{border:none!important;text-decoration:none!important}a.datatable-link{text-decoration:none!important;border-bottom:none!important}a.datatable-link:hover{text-decoration:none!important;border-bottom:1px dotted!important}.datatable .dropdown-menu{height:auto;max-height:200px;overflow-x:hidden}table.datatable .hidden{display:none}.form-control,.no-filter-control{height:24px;padding:0px}.datatable-toolbar .selector-button,.datatable .selector-button{min-width:80px!important}.datatable-toolbar .selector-button-large,.datatable .selector-button-large{width:160px!important}.datatable-toolbar .selector-button-xlarge,.datatable .selector-button-xlarge{width:320px!important}.label-tag{font-weight:normal;color:black!important;font-size:1em;display:block;margin:3px}.label-tag-default{background-color:rgba(34,34,34,0.3)}.label-tag1{background-color:rgba(77,77,77,0.3)}.label-tag2{background-color:rgba(93,165,218,0.3)}.label-tag3{background-color:rgba(250,164,58,0.3)}.label-tag4{background-color:rgba(96,189,104,0.3)}.label-tag5{background-color:rgba(241,124,176,0.3)}.label-tag6{background-color:rgba(178,145,47,0.3)}.label-tag7{background-color:rgba(178,118,178,0.3)}.label-tag8{background-color:rgba(222,207,63,0.3)}.label-tag9{background-color:rgba(241,88,84,0.3)}.label-tag10{background-color:rgba(3,192,60,0.3)}.label-tag11{background-color:rgba(0,140,186,0.3)}.label-tag12{background-color:rgba(174,198,207,0.3)}.label-tag13{background-color:rgba(255,179,71,0.3)}.label-tag14{background-color:rgba(244,154,194,0.3)}.label-tag15{background-color:rgba(109,109,109,0.3)}.no-filter-control{height:34px}.filter-control{margin:0 2px 2px 2px}.canvas-cell{padding-top:4px!important;padding-bottom:4px!important;vertical-align:middle!important}table.datatable td.canvas-cell{text-align:left!important}table.datatable .hover{background-image:url("overlay.png")}table.datatable .row-hover{background-color:#e8e8e8!important}table.datatable tr.success>td.row-hover{background-color:#d0e9c6!important}table.datatable tr.info>td.row-hover{background-color:#c4e3f3!important}table.datatable tr.warning>td.row-hover{background-color:#faf2cc!important}table.datatable tr.danger>td.row-hover{background-color:#ebcccc!important}.spin{-webkit-transform-origin:50% 58%;transform-origin:50% 58%;-ms-transform-origin:50% 58%;-webkit-animation:spin .2s infinite linear;-moz-animation:spin .2s infinite linear;-o-animation:spin .2s infinite linear;animation:spin .2s infinite linear}.glyphicon-spin{-webkit-animation:spin 1000ms infinite linear;animation:spin 1000ms infinite linear}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes chartjs-render-animation{from{opacity:0.99}to{opacity:1}}.chartjs-render-monitor{animation:chartjs-render-animation 0.001s}.chartjs-size-monitor,.chartjs-size-monitor-expand,.chartjs-size-monitor-shrink{position:absolute;direction:ltr;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1}.chartjs-size-monitor-expand>div{position:absolute;width:1000000px;height:1000000px;left:0;top:0}.chartjs-size-monitor-shrink>div{position:absolute;width:200%;height:200%;left:0;top:0}.inline-hbar{clear:both;display:inline-flex;align-content:center;justify-content:space-between;margin:0;padding:0;margin-bottom:2px;vertical-align:top;height:20px}.inline-hbar .progress{flex-grow:1}.inline-hbar .value-label{padding-right:4px;width:20%;max-width:30px;text-align:right}.inline-hbar-slim{height:15px!important}.inline-hbar-slim .value-label,.inline-hbar-slim .value{height:15px!important;font-size:75%}.inline-hbar-thin{height:12px!important}.inline-hbar-thin .value-label,.inline-hbar-thin .value{height:12px!important;font-size:80%}.inline-vbar-container{display:flex;flex-direction:row;align-items:stretch;flex-wrap:nowrap;margin:0;padding:0}.inline-vbar{display:flex;flex-direction:column;margin:0;padding:0;margin-right:5px}.inline-vbar .value-label{padding-bottom:1px;height:18px;text-align:center}.inline-vbar .value-limits{position:relative;height:100%;font-size:60%;color:#878787;min-width:10px}.inline-vbar .value-limits .max{position:absolute;top:0px;vertical-align:top}.inline-vbar .value-limits .min{position:absolute;bottom:0px;vertical-align:bottom}.inline-hbar .value{padding:0;padding-left:2px;margin:0;vertical-align:middle;width:12%;min-width:28px;vertical-align:middle;height:18px;text-align:left}.inline-vbar .progress{flex-grow:1;margin:0;padding:0}.inline-hbar .value-limits{position:relative;font-size:60%;color:#878787;height:10px;flex-grow:1}.inline-hbar .value-limits .max{position:absolute;right:0px;text-align:left}.inline-hbar .value-limits .min{position:absolute;left:0px;text-align:right}.datatable-horizontal-bar-thin{height:10px!important;margin-bottom:5px!important}.datatable-horizontal-bar-slim{height:15px!important;margin-bottom:5px!important}.datatable-vertical-bar,.datatable-vertical-bar-thin,.datatable-vertical-bar-slim{width:20px;height:100%;min-height:30px;display:flex;flex-direction:column-reverse;align-items:flex-end;margin-right:0px;float:left}.datatable-vertical-bar-slim{width:15px}.datatable-vertical-bar-thin{width:10px}.progress-vertical-bar{width:100%!important;height:0;-webkit-transition:height 0.6s ease;-o-transition:height 0.6s ease;transition:height 0.6s ease}.progress-horizontal-bar{-webkit-transition:width 0.6s ease;-o-transition:width 0.6s ease;transition:width 0.6s ease}.fixed-table-container .table-slim thead th .th-inner,.fixed-table-container .table-slim tbody td .th-inner{padding:4px!important}.fixed-table-container .table-slim thead th .sortable{padding-right:15px!important}.no-filter-control{height:34px}.filter-control{margin:0 2px 2px 2px} \ No newline at end of file +.no-filter-control{height:34px}.filter-control{margin:0 2px 2px 2px}.bootstrap-table .table{margin-bottom:0!important;border-bottom:1px solid #dddddd;border-collapse:collapse!important;border-radius:1px}.bootstrap-table .table:not(.table-condensed),.bootstrap-table .table:not(.table-condensed)>tbody>tr>th,.bootstrap-table .table:not(.table-condensed)>tfoot>tr>th,.bootstrap-table .table:not(.table-condensed)>thead>tr>td,.bootstrap-table .table:not(.table-condensed)>tbody>tr>td,.bootstrap-table .table:not(.table-condensed)>tfoot>tr>td{padding:8px}.bootstrap-table .table.table-no-bordered>thead>tr>th,.bootstrap-table .table.table-no-bordered>tbody>tr>td{border-right:2px solid transparent}.bootstrap-table .table.table-no-bordered>tbody>tr>td:last-child{border-right:none}.fixed-table-container{position:relative;clear:both;border:1px solid #dddddd;border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px}.fixed-table-container.table-no-bordered{border:1px solid transparent}.fixed-table-footer,.fixed-table-header{overflow:hidden}.fixed-table-footer{border-top:1px solid #dddddd}.fixed-table-body{overflow-x:auto;overflow-y:auto;height:100%}.fixed-table-container table{width:100%}.fixed-table-container thead th{height:0;padding:0;margin:0;border-left:1px solid #dddddd}.fixed-table-container thead th:focus{outline:0 solid transparent}.fixed-table-container thead th:first-child:not([data-not-first-th]){border-left:none;border-top-left-radius:4px;-webkit-border-top-left-radius:4px;-moz-border-radius-topleft:4px}.fixed-table-container thead th .th-inner,.fixed-table-container tbody td .th-inner{padding:8px;line-height:24px;vertical-align:top;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fixed-table-container thead th .sortable{cursor:pointer;background-position:right;background-repeat:no-repeat;padding-right:30px}.fixed-table-container thead th .both{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7XQMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL+Tq/QCM1oNiJidwox0355mXnG/DrEtIQ6azioNZQxI0ykPhTQIwhCR+BmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P+GtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC')}.fixed-table-container thead th .asc{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS/gDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM+wTENuQahAvEO9DMwiGdwAxOymGJQLxTyD+jgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg==')}.fixed-table-container thead th .desc{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZUlEQVQ4y2NgGAWjYBSggaqGu5FA/BOIv2PBIPFEUgxjB+IdQPwfC94HxLykus4GiD+hGfQOiB3J8SojEE9EM2wuSJzcsFMG4ttQgx4DsRalkZENxL+AuJQaMcsGxBOAmGvopk8AVz1sLZgg0bsAAAAASUVORK5CYII=')}.fixed-table-container th.detail{width:30px}.fixed-table-container tbody td{border-left:1px solid #dddddd}.fixed-table-container tbody tr:first-child td{border-top:none}.fixed-table-container tbody td:first-child{border-left:none}.fixed-table-container tbody .selected td{background-color:#f5f5f5}.fixed-table-container .bs-checkbox{text-align:center}.fixed-table-container input[type="radio"],.fixed-table-container input[type="checkbox"]{margin:0 auto!important}.fixed-table-container .no-records-found{text-align:center}.fixed-table-pagination div.pagination,.fixed-table-pagination .pagination-detail{margin-top:10px;margin-bottom:10px}.fixed-table-pagination div.pagination .pagination{margin:0}.fixed-table-pagination .pagination a{padding:6px 12px;line-height:1.428571429}.fixed-table-pagination .pagination-info{line-height:34px;margin-right:5px}.fixed-table-pagination .btn-group{position:relative;display:inline-block;vertical-align:middle}.fixed-table-pagination .dropup .dropdown-menu{margin-bottom:0}.fixed-table-pagination .page-list{display:inline-block}.fixed-table-toolbar .columns-left{margin-right:5px}.fixed-table-toolbar .columns-right{margin-left:5px}.fixed-table-toolbar .columns label{display:block;padding:3px 20px;clear:both;font-weight:normal;line-height:1.428571429}.fixed-table-toolbar .bs-bars,.fixed-table-toolbar .search,.fixed-table-toolbar .columns{position:relative;margin-top:10px;margin-bottom:10px;line-height:34px}.fixed-table-pagination li.disabled a{pointer-events:none;cursor:default}.fixed-table-loading{display:none;position:absolute;top:42px;right:0;bottom:0;left:0;z-index:99;background-color:#fff;text-align:center}.fixed-table-body .card-view .title{font-weight:bold;display:inline-block;min-width:30%;text-align:left!important}.fixed-table-body thead th .th-inner{box-sizing:border-box}.table th,.table td{vertical-align:middle;box-sizing:border-box}.fixed-table-toolbar .dropdown-menu{text-align:left;max-height:300px;overflow:auto}.fixed-table-toolbar .btn-group>.btn-group{display:inline-block;margin-left:-1px!important}.fixed-table-toolbar .btn-group>.btn-group>.btn{border-radius:0}.fixed-table-toolbar .btn-group>.btn-group:first-child>.btn{border-top-left-radius:4px;border-bottom-left-radius:4px}.fixed-table-toolbar .btn-group>.btn-group:last-child>.btn{border-top-right-radius:4px;border-bottom-right-radius:4px}.bootstrap-table .table>thead>tr>th{vertical-align:bottom;border-bottom:1px solid #ddd}.bootstrap-table .table thead>tr>th{padding:0;margin:0}.bootstrap-table .fixed-table-footer tbody>tr>td{padding:0!important}.bootstrap-table .fixed-table-footer .table{border-bottom:none;border-radius:0;padding:0!important}.bootstrap-table .pull-right .dropdown-menu{right:0;left:auto}p.fixed-table-scroll-inner{width:100%;height:200px}div.fixed-table-scroll-outer{top:0;left:0;visibility:hidden;width:200px;height:150px;overflow:hidden}.fixed-table-toolbar:after,.fixed-table-pagination:after{content:"";display:block;clear:both}.fullscreen{position:fixed;top:0;left:0;z-index:1050;width:100%!important;background:#FFF}.sep-left-cell{border-left:solid 1px #000!important}.sep-right-cell{border-right:solid 1px #000!important}.highlight-cell{background-color:#FCF8E3!important}td.sm-cell{font-size:80%}td.xs-cell{font-size:60%}.datatable{margin-top:10px;margin-bottom:10px}.datatable-toolbar{margin-top:3px;margin-bottom:3px}.datatable a.icon,.datatable a.icon:hover,a.datatable-icon,a.datatable-icon:hover{border:none!important;text-decoration:none!important}a.datatable-link{text-decoration:none!important;border-bottom:none!important}a.datatable-link:hover{text-decoration:none!important;border-bottom:1px dotted!important}.datatable .dropdown-menu{height:auto;max-height:200px;overflow-x:hidden}table.datatable .hidden{display:none}.form-control,.no-filter-control{height:24px;padding:0px}.datatable-toolbar .selector-button,.datatable .selector-button{min-width:80px!important}.datatable-toolbar .selector-button-large,.datatable .selector-button-large{width:160px!important}.datatable-toolbar .selector-button-xlarge,.datatable .selector-button-xlarge{width:320px!important}.label-tag{font-weight:normal;color:black!important;font-size:1em;display:block;margin:3px}.label-tag-default{background-color:rgba(34,34,34,0.3)}.label-tag1{background-color:rgba(77,77,77,0.3)}.label-tag2{background-color:rgba(93,165,218,0.3)}.label-tag3{background-color:rgba(250,164,58,0.3)}.label-tag4{background-color:rgba(96,189,104,0.3)}.label-tag5{background-color:rgba(241,124,176,0.3)}.label-tag6{background-color:rgba(178,145,47,0.3)}.label-tag7{background-color:rgba(178,118,178,0.3)}.label-tag8{background-color:rgba(222,207,63,0.3)}.label-tag9{background-color:rgba(241,88,84,0.3)}.label-tag10{background-color:rgba(3,192,60,0.3)}.label-tag11{background-color:rgba(0,140,186,0.3)}.label-tag12{background-color:rgba(174,198,207,0.3)}.label-tag13{background-color:rgba(255,179,71,0.3)}.label-tag14{background-color:rgba(244,154,194,0.3)}.label-tag15{background-color:rgba(109,109,109,0.3)}.no-filter-control{height:34px}.filter-control{margin:0 2px 2px 2px}.canvas-cell{padding-top:4px!important;padding-bottom:4px!important;vertical-align:middle!important}table.datatable td.canvas-cell{text-align:left!important}table.datatable .hover{background-image:url("overlay.png")}table.datatable .row-hover{background-color:#e8e8e8!important}table.datatable tr.success>td.row-hover{background-color:#d0e9c6!important}table.datatable tr.info>td.row-hover{background-color:#c4e3f3!important}table.datatable tr.warning>td.row-hover{background-color:#faf2cc!important}table.datatable tr.danger>td.row-hover{background-color:#ebcccc!important}.spin{-webkit-transform-origin:50% 58%;transform-origin:50% 58%;-ms-transform-origin:50% 58%;-webkit-animation:spin .2s infinite linear;-moz-animation:spin .2s infinite linear;-o-animation:spin .2s infinite linear;animation:spin .2s infinite linear}.glyphicon-spin{-webkit-animation:spin 1000ms infinite linear;animation:spin 1000ms infinite linear}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes chartjs-render-animation{from{opacity:0.99}to{opacity:1}}.chartjs-render-monitor{animation:chartjs-render-animation 0.001s}.chartjs-size-monitor,.chartjs-size-monitor-expand,.chartjs-size-monitor-shrink{position:absolute;direction:ltr;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1}.chartjs-size-monitor-expand>div{position:absolute;width:1000000px;height:1000000px;left:0;top:0}.chartjs-size-monitor-shrink>div{position:absolute;width:200%;height:200%;left:0;top:0}.inline-hbar{clear:both;display:inline-flex;align-content:center;justify-content:space-between;margin:0;padding:0;margin-bottom:2px;vertical-align:top;height:20px}.inline-hbar .progress{flex-grow:1}.inline-hbar .value-label{padding-right:4px;width:20%;max-width:30px;text-align:right}.inline-hbar-slim{height:15px!important}.inline-hbar-slim .value-label,.inline-hbar-slim .value{height:15px!important;font-size:75%}.inline-hbar-thin{height:12px!important}.inline-hbar-thin .value-label,.inline-hbar-thin .value{height:12px!important;font-size:80%}.inline-vbar-container{display:flex;flex-direction:row;align-items:stretch;flex-wrap:nowrap;margin:0;padding:0}.inline-vbar{display:flex;flex-direction:column;margin:0;padding:0;margin-right:5px}.inline-vbar .value-label{padding-bottom:1px;height:18px;text-align:center}.inline-vbar .value-limits{position:relative;height:100%;font-size:60%;color:#878787;min-width:10px}.inline-vbar .value-limits .max{position:absolute;top:0px;vertical-align:top}.inline-vbar .value-limits .min{position:absolute;bottom:0px;vertical-align:bottom}.inline-hbar .value{padding:0;padding-left:2px;margin:0;vertical-align:middle;width:12%;min-width:28px;vertical-align:middle;height:18px;text-align:left}.inline-vbar .progress{flex-grow:1;margin:0;padding:0}.inline-hbar .value-limits{position:relative;font-size:60%;color:#878787;height:10px;flex-grow:1}.inline-hbar .value-limits .max{position:absolute;right:0px;text-align:left}.inline-hbar .value-limits .min{position:absolute;left:0px;text-align:right}.datatable-horizontal-bar-thin{height:10px!important;margin-bottom:5px!important}.datatable-horizontal-bar-slim{height:15px!important;margin-bottom:5px!important}.datatable-vertical-bar,.datatable-vertical-bar-thin,.datatable-vertical-bar-slim{width:20px;height:100%;min-height:30px;display:flex;flex-direction:column-reverse;align-items:flex-end;margin-right:0px;float:left}.datatable-vertical-bar-slim{width:15px}.datatable-vertical-bar-thin{width:10px}.progress-vertical-bar{width:100%!important;height:0;-webkit-transition:height 0.6s ease;-o-transition:height 0.6s ease;transition:height 0.6s ease}.progress-horizontal-bar{-webkit-transition:width 0.6s ease;-o-transition:width 0.6s ease;transition:width 0.6s ease}.fixed-table-container .table-slim thead th .th-inner,.fixed-table-container .table-slim tbody td .th-inner{padding:4px!important}.fixed-table-container .table-slim thead th .sortable{padding-right:15px!important} \ No newline at end of file diff --git a/js.min/datatable.bundle.min.js b/js.min/datatable.bundle.min.js index dffc593..582e3fd 100644 --- a/js.min/datatable.bundle.min.js +++ b/js.min/datatable.bundle.min.js @@ -2512,7 +2512,7 @@ date=new Date(Date.UTC(year,month,day,hour,minute,second,fraction));if(delta)dat function representYamlTimestamp(object ){return object.toISOString();} module.exports=new Type('tag:yaml.org,2002:timestamp',{kind:'scalar',resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp});},{"../type":13}],"/":[function(require,module,exports){'use strict';var yaml=require('./lib/js-yaml.js');module.exports=yaml;},{"./lib/js-yaml.js":1}]},{},[])("/")});jQuery(document).ready(function(){jQuery('table.datatable').each(function(){jQuery(this).datatable();});});(function($,window,document,undefined){"use strict";var pluginName='datatable';var pluginVersion='1.2.0';window.datatable_unique_id=0;var defaults={debug:false};var commands={getRank:getRank,updateChart:updateChart};var Plugin=function(element,options,name){this.init(element,options,name);};Plugin.prototype={defaults:{debug:false,rank_mode:'normal',tag_mode:'column',show_chart:false,show_toolbar:true,show_table_selector:false,chart_modes:'bar',chart_default_mode:'bar',table_default_mode:'show',list_separator:',',css:{active:'active'},animation:{duration:100,show_speed:100,hide_speed:100},time:{valid_formats:['YYYY-MM-DD HH:mm','YYYY-MM-DD HH:mm:ss','YYYY-MM-DD HH:mm:ss.SSS','YYYY-MM-DD','YYYY-MM','YYYY/MM/DD','MM-DD-YYYY','MM.DD.YYYY','DD-MM','HH:mm','HH:mm:ss','HH:mm:ss.SSS'],display_formats:{'second':'hh:mm:ss','minute':'hh:mm','hour':'hh','day':'YYYY-MM-DD','week':'ll','month':'MMM YYYY','quarter':'[Q]Q - YYYY','year':'YYYY'}},table:{id_field:'id',row_highlighting:false,page_list:'[5,10,20,50,all]',pagination:true,show_header:true,show_columns:true,show_pagination_switch:true,striped:true,column_hover:false},chart:{position:'top'},colors:{valid:['active','success','info','warning','danger'],default:{border:{normal:'rgba(233, 144, 2, 0.5)',hover:'rgba(233, 144, 2, 1)'},bg:{normal:'rgba(233, 144, 2, 0.2)',hover:'rgba(233, 144, 2, 0.4)'}},active: {border:{normal:'rgba(160, 160, 160, 0.5)',hover:'rgba(160, 160, 160, 1)'},bg:{normal:'rgba(160, 160, 160, 0.4)',hover:'rgba(160, 160, 160, 0.6)'}},success:{border:{normal:'rgba(92, 184, 92, 0.5)',hover:'rgba(92, 184, 92, 1)'},bg:{normal:'rgba(92, 184, 92, 0.4)',hover:'rgba(92, 184, 92, 0.6)'}},info:{border:{normal:'rgba(112, 187, 225, 0.5)',hover:'rgba(112, 187, 225, 1)'},bg:{normal:'rgba(112, 187, 225, 0.4)',hover:'rgba(112, 187, 225, 0.6)'}},warning:{border:{normal:'rgba(240, 173, 78, 0.5)',hover:'rgba(240, 173, 78, 1)'},bg:{normal:'rgba(240, 173, 78, 0.4)',hover:'rgba(240, 173, 78, 0.6)'}},danger:{border:{normal:'rgba(217, 83, 79, 0.5)',hover:'rgba(217, 83, 79, 1)'},bg:{normal:'rgba(217, 83, 79, 0.4)',hover:'rgba(217, 83, 79, 0.6)'}},background:'rgba(251, 85, 85, 0.8)',schemes:{default:['#1f77b4','#17becf','#ff7f0e','#ffbb78','#2ca02c','#98df8a','#d62728','#ff9896','#9467bd','#c5b0d5','#8c564b','#c49c94','#e377c2','#f7b6d2','#7f7f7f','#c7c7c7','#bcbd22','#dbdb8d','#9edae5','#aec7e8'],Antique:['#855C75','#D9AF6B','#AF6458','#736F4C','#526A83','#625377','#68855C','#9C9C5E','#A06177','#8C785D','#467378','#7C7C7C'],Bold:['#7F3C8D','#11A579','#3969AC','#F2B701','#E73F74','#80BA5A','#E68310','#008695','#CF1C90','#f97b72','#4b4b8f','#A5AA99'],Pastel:['#66C5CC','#F6CF71','#F89C74','#DCB0F2','#87C55F','#9EB9F3','#FE88B1','#C9DB74','#8BE0A4','#B497E7','#D3B484','#B3B3B3'],Prism:['#5F4690','#1D6996','#38A6A5','#0F8554','#73AF48','#EDAD08','#E17C05','#CC503E','#94346E','#6F4070','#994E95','#666666'],Safe:['#88CCEE','#CC6677','#DDCC77','#117733','#332288','#AA4499','#44AA99','#999933','#882255','#661100','#6699CC','#888888'],Vivid:['#E58606','#5D69B1','#52BCA3','#99C945','#CC61B0','#24796C','#DAA51B','#2F8AC4','#764E9F','#ED645A','#CC3A8E','#A5AA99'],ArmyRose:['#798234','#a3ad62','#d0d3a2','#fdfbe4','#f0c6c3','#df91a3','#d46780'],Fall:['#3d5941','#778868','#b5b991','#f6edbd','#edbb8a','#de8a5a','#ca562c'],Geyser:['#008080','#70a494','#b4c8a8','#f6edbd','#edbb8a','#de8a5a','#ca562c'],Temps:['#009392','#39b185','#9ccb86','#e9e29c','#eeb479','#e88471','#cf597e'],TealRose:['#009392','#72aaa1','#b1c7b3','#f1eac8','#e5b9ad','#d98994','#d0587e'],Tropic:['#009B9E','#42B7B9','#A7D3D4','#F1F1F1','#E4C1D9','#D691C1','#C75DAB'],Earth:['#A16928','#bd925a','#d6bd8d','#edeac2','#b5c8b8','#79a7ac','#2887a1'],Burg:['#ffc6c4','#f4a3a8','#e38191','#cc607d','#ad466c','#8b3058','#672044'],BurgYI:['#fbe6c5','#f5ba98','#ee8a82','#dc7176','#c8586c','#9c3f5d','#70284a'],RedOR:['#f6d2a9','#f5b78e','#f19c7c','#ea8171','#dd686c','#ca5268','#b13f64'],OrYel:['#ecda9a','#efc47e','#f3ad6a','#f7945d','#f97b57','#f66356','#ee4d5a'],Peach:['#fde0c5','#facba6','#f8b58b','#f59e72','#f2855d','#ef6a4c','#eb4a40'],PinkYI:['#fef6b5','#ffdd9a','#ffc285','#ffa679','#fa8a76','#f16d7a','#e15383'],Mint:['#e4f1e1','#b4d9cc','#89c0b6','#63a6a0','#448c8a','#287274','#0d585f'],BluGrn:['#c4e6c3','#96d2a4','#6dbc90','#4da284','#36877a','#266b6e','#1d4f60'],DarkMint:['#d2fbd4','#a5dbc2','#7bbcb0','#559c9e','#3a7c89','#235d72','#123f5a'],Emrld:['#d3f2a3','#97e196','#6cc08b','#4c9b82','#217a79','#105965','#074050'],BluYI:['#f7feae','#b7e6a5','#7ccba2','#46aea0','#089099','#00718b','#045275'],Teal:['#d1eeea','#a8dbd9','#85c4c9','#68abb8','#4f90a6','#3b738f','#2a5674'],TealGrn:['#b0f2bc','#89e8ac','#67dba5','#4cc8a3','#38b2a3','#2c98a0','#257d98'],Purp:['#f3e0f7','#e4c7f1','#d1afe8','#b998dd','#9f82ce','#826dba','#63589f'],PurpOr:['#f9ddda','#f2b9c4','#e597b9','#ce78b3','#ad5fad','#834ba0','#573b88'],Sunset:['#f3e79b','#fac484','#f8a07e','#eb7f86','#ce6693','#a059a0','#5c53a5'],Magenta:['#f3cbd3','#eaa9bd','#dd88ac','#ca699d','#b14d8e','#91357d','#6c2167'],SunsetDark:['#fcde9c','#faa476','#f0746e','#e34f6f','#dc3977','#b9257a','#7c1d6f'],BrwnYI:['#ede5cf','#e0c2a2','#d39c83','#c1766f','#a65461','#813753','#541f3f'],},datasets:['#66C5CC','#F6CF71','#F89C74','#DCB0F2','#87C55F','#9EB9F3','#FE88B1','#C9DB74','#8BE0A4','#B497E7','#D3B484','#B3B3B3']},bar:{height:240,item_width:null,fields:null,xaxis:{display:true,field:null,sorted:false,timeunit:null,timestepsize:null,gridlines:true,showlabels:false},yaxis:{display:true,beginatzero:false,label:null,scale:null,gridlines:true},horizontal_highlights:{enabled:true,data:null,opacity:0.1,strokeStyle:'rgba(112, 187, 225 ,1.0)',lineWidth:2,label: {fillStyle:'#000',fontSize:'12px',font:'Arial',opacity:0.2,position:'bottom-right'}},horizontal_line:{enabled:false,strokeStyle:'rgba(112, 187, 225 ,0.5)',lineWidth:2},horizontal_indicator_line:{enabled:true,strokeStyle:'rgba(160,160,160,0.5)',fillStyle:'rgba(160,160,160,0.2)',lineWidth:4},vertical_indicator_line:{enabled:false,strokeStyle:'rgba(160,160,160,0.5)',lineWidth:4},error_bar:{enabled:true,lineWidth:2.0,tipWidth:null,strokeStyle:null},colors:{valid:['active','success','info','warning','danger'],default:{border:{normal:'rgba(233, 144, 2, 0.5)',hover:'rgba(233, 144, 2, 1)'},bg:{normal:'rgba(233, 144, 2, 0.2)',hover:'rgba(233, 144, 2, 0.4)'}},active: {border:{normal:'rgba(160, 160, 160, 0.5)',hover:'rgba(160, 160, 160, 1)'},bg:{normal:'rgba(160, 160, 160, 0.4)',hover:'rgba(160, 160, 160, 0.6)'}},success:{border:{normal:'rgba(92, 184, 92, 0.5)',hover:'rgba(92, 184, 92, 1)'},bg:{normal:'rgba(92, 184, 92, 0.4)',hover:'rgba(92, 184, 92, 0.6)'}},info:{border:{normal:'rgba(112, 187, 225, 0.5)',hover:'rgba(112, 187, 225, 1)'},bg:{normal:'rgba(112, 187, 225, 0.4)',hover:'rgba(112, 187, 225, 0.6)'}},warning:{border:{normal:'rgba(240, 173, 78, 0.5)',hover:'rgba(240, 173, 78, 1)'},bg:{normal:'rgba(240, 173, 78, 0.4)',hover:'rgba(240, 173, 78, 0.6)'}},danger:{border:{normal:'rgba(217, 83, 79, 0.5)',hover:'rgba(217, 83, 79, 1)'},bg:{normal:'rgba(217, 83, 79, 0.4)',hover:'rgba(217, 83, 79, 0.6)'}},background:'rgba(251, 85, 85, 0.8)',datasets:['#66C5CC','#F6CF71','#F89C74','#DCB0F2','#87C55F','#9EB9F3','#FE88B1','#C9DB74','#8BE0A4','#B497E7','#D3B484','#B3B3B3']},tooltips:{titleFontSize:16,bodyFontSize:12,bodyFontFamily:'monospace',position:'average'},legend:{enabled:false,position:'top'}},line:{height:240,xaxis:{display:true,field:null,sorted:false,timeunit:null,timestepsize:null,gridlines:true},yaxis:{beginatzero:false,label:null,scale:null,gridlines:true},fill:false,fields:null,point:{enabled:true,borderWidth:1,radius:{normal:4,hover:4}},line:{enabled:true,tension:0},vertical_segments:{enabled:true,data:null,opacity:0.1,label: {fillStyle:'#000',fontSize:'12px',font:'Arial',opacity:0.2,position:'top'}},horizontal_highlights:{enabled:true,data:null,opacity:0.1,strokeStyle:'rgba(112, 187, 225 ,1.0)',lineWidth:2,label: {fillStyle:'#000',fontSize:'12px',font:'Arial',opacity:0.2,position:'bottom-right'}},horizontal_line:{enabled:false,strokeStyle:'rgba(112, 187, 225 ,1.0)',lineWidth:2},vertical_indicator_line:{enabled:true,strokeStyle:'rgba(160,160,160,0.5)',lineWidth:2},horizontal_indicator_line:{enabled:true,strokeStyle:'rgba(160,160,160,0.5)',fillStyle:'rgba(160,160,160,0.2)',lineWidth:2},error_bar:{enabled:false,lineWidth:1,tipWidth:0.2,strokeStyle:'rgba(0,0,0,0.8)'},interval:{enabled:true,lineWidth:0.4},colors:{valid:['active','success','info','warning','danger'],default:{border:{normal:'rgba(233, 144, 2, 0.5)',hover:'rgba(233, 144, 2, 1.0)'},bg:{normal:'rgba(233, 144, 2, 0.5)',hover:'rgba(233, 144, 2, 1.0)'}},active: {border:{normal:'rgba(160, 160, 160, 0.6)',hover:'rgba(160, 160, 160 1.0)'},bg:{normal:'rgba(160, 160, 160, 0.5)',hover:'rgba(160, 160, 160 1.0)'}},success:{border:{normal:'rgba(92, 184, 92, 0.6)',hover:'rgba(92, 184, 92, 1.0)'},bg:{normal:'rgba(92, 184, 92, 0.5)',hover:'rgba(92, 184, 92, 1.0)'}},info:{border:{normal:'rgba(112, 187, 225, 0.6)',hover:'rgba(112, 187, 225, 1)'},bg:{normal:'rgba(112, 187, 225, 0.5)',hover:'rgba(112, 187, 225, 1.0)'}},warning:{border:{normal:'rgba(240, 173, 78, 0.6)',hover:'rgba(240, 173, 78, 1.0)'},bg:{normal:'rgba(240, 173, 78, 0.5)',hover:'rgba(240, 173, 78, 1.0)'}},danger:{border:{normal:'rgba(217, 83, 79, 0.6)',hover:'rgba(217, 83, 79, 1)'},bg:{normal:'rgba(217, 83, 79, 0.5)',hover:'rgba(217, 83, 79, 1.0)'}},background:'rgba(251, 85, 85, 0.8)',datasets:['#1f77b4','#aec7e8','#ff7f0e','#ffbb78','#2ca02c','#98df8a','#d62728','#ff9896','#9467bd','#c5b0d5','#8c564b','#c49c94','#e377c2','#f7b6d2','#7f7f7f','#c7c7c7','#bcbd22','#dbdb8d','#17becf','#9edae5']},tooltips:{titleFontSize:16,bodyFontSize:12,bodyFontFamily:'monospace',position:'top'},legend:{enabled:true,position:'bottom'}},scatter:{height:200,point:{borderWidth:2,radius:{normal:5,hover:10}},vertical_indicator_line:{enabled:false,strokeStyle:'rgba(0,0,0,0.2)',lineWidth:4},horizontal_indicator_line:{enabled:false,strokeStyle:'rgba(0,0,0,0.2)',fillStyle:'rgba(0,0,0,0.1)',lineWidth:4},error_bar:{enabled:true,lineWidth:1,tipWidth:8,strokeStyle:'rgba(0,0,0,0.05)',fillStyle:'rgba(0,0,0,0.02)',bounding_box:true},colors:{valid:['active','success','info','warning','danger'],default:{border:{normal:'rgba(233,144,2, 0.5)',hover:'rgba(233,144,2, 1)'},bg:{normal:'rgba(233,144,2,0.5)',hover:'rgba(233,144,2,0.8)'}},active: {border:{normal:'rgba(160, 160, 160, 0.5)',hover:'rgba(160, 160, 160 1)'},bg:{normal:'rgba(160, 160, 160, 0.5)',hover:'rgba(160, 160, 160 0.8)'}},success:{border:{normal:'rgba(92, 184, 92, 0.5)',hover:'rgba(92, 184, 92, 1)'},bg:{normal:'rgba(92, 184, 92, 0.5)',hover:'rgba(92, 184, 92, 0.8)'}},info:{border:{normal:'rgba(112, 187, 225, 0.5)',hover:'rgba(112, 187, 225, 1)'},bg:{normal:'rgba(112, 187, 225, 0.5)',hover:'rgba(112, 187, 225, 0.8)'}},warning:{border:{normal:'rgba(240, 173, 78, 0.5)',hover:'rgba(240, 173, 78, 1)'},bg:{normal:'rgba(240, 173, 78, 0.5)',hover:'rgba(240, 173, 78, 0.8)'}},danger:{border:{normal:'rgba(217, 83, 79, 0.5)',hover:'rgba(217, 83, 79, 1)'},bg:{normal:'rgba(217, 83, 79, 0.5)',hover:'rgba(217, 83, 79, 0.8)'}},background:'rgba(251, 85, 85, 0.8)'},tooltips:{titleFontSize:18,bodyFontSize:14},x:null,y:null},comparison:{height:200,sets:null,active_set:null,a_row:null,b_row:null,row_id_field:'name',a_color:'#43ac6a',b_color:'#f04124',error_bar:{enabled:true,lineWidth:2.0,tipWidth:8,strokeStyle:'rgba(0,0,0,0.2)'},colors:{background:'rgba(251, 85, 85, 0.8)'},tooltips:{titleFontSize:18,bodyFontSize:14}},element:{chart_mode_selector:'chart_mode_selector',table_mode_selector:'table_mode_selector',loader:'#loader',bar:{div:'#bar_div',canvas:'#bar_canvas'},line:{div:'#line_div',canvas:'#line_canvas'},scatter:{div:'#scatter_div',canvas:'scatter_canvas',selector_x_menu:'#scatter_selector_x_menu',selector_y_menu:'#scatter_selector_y_menu'},comparison:{div:'#comparison_div',canvas:'#comparison_canvas',selector_set_button:'#comparison_selector_set_button',selector_set_menu:'#comparison_selector_set_menu',selector_a_button:'#comparison_selector_a_button',selector_a_menu:'#comparison_selector_a_menu',selector_b_button:'#comparison_selector_b_button',selector_b_menu:'#comparison_selector_b_menu'},},icon:{table:'',bar:'',line:'',scatter:'',comparison:'',off:'',caret:'',chartable:'',url:'',ref:'',anchor:''},label:{table:'',bar:'Bar',line:'Line',scatter:'Scatter',comparison:'Comparison',off:'Off',select_x_axis:'Select data field for X-axis',select_y_axis:'Select data field for Y-axis',select_set:'Select set',select_a_row:'Select row A',select_b_row:'Select row B',toggle_table:'Toggle table',hide_visualization:'Hide visualization'},button_css:{table:'btn btn-default',bar:'btn btn-info selector-button',line:'btn btn-info selector-button',scatter:'btn btn-info selector-button',comparison:'btn btn-info selector-button',off:'btn btn-default selector-button',custom:'btn btn-default selector-button',},tags: {css:['label label-tag label-tag1','label label-tag label-tag2','label label-tag label-tag3','label label-tag label-tag4','label label-tag label-tag5','label label-tag label-tag6','label label-tag label-tag7','label label-tag label-tag8','label label-tag label-tag9','label label-tag label-tag10','label label-tag label-tag11','label label-tag label-tag12','label label-tag label-tag13','label label-tag label-tag14','label label-tag label-tag15','label label-tag label-primary','label label-tag label-success','label label-tag label-info','label label-tag label-warning','label label-tag label-danger','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-default','label label-tag label-default','label label-tag label-default','label label-tag label-default','label label-tag label-tag-default']},custom_chart:{},inline_chart:{height:35,max_width:200,colors:{default:'#cdcdcd',on:'#008000',off:'#ff514f',positive:'#008000',negative:'#ff514f',equal:'#cdcdcd'},value_indicator:{html:{css:'small glyphicon glyphicon-stop'},svg:{type:'rect',size:10},data:{binarizationThreshold:0.0},color:{default:'#cdcdcd',on:'#008000',off:'#ff514f',positive:'rgba(0, 128, 0, 0.5)',negative:'rgba(255, 0, 0, 0.5)',equal:'rgba(0, 0, 0, 0.5)'}},bar_horizontal:{colors:["#5cb85c","#5bc0de","#f0ad4e","#d9534f"]},bar_horizontal_average:{colors:{background:'transparent',center:'#000000',positive:'#5cb85c',negative:'#d9534f'}},bar_vertical:{item_width:null,hline:{enabled:false,values:null,colors:['rgba(0, 0, 0, 0.6)'],width:0.5},colors:{default:'rgba(220, 220, 220, 1.0)',background:'transparent',center:'#000000',positive:'#5cb85c',negative:'#d9534f'},data:{borderWidth:1,borderColor:'rgba(160, 160, 160, 1.0)'},options:{responsive:false,maintainAspectRatio:false,legend:{display:false},tooltips:{enabled:true,mode:'nearest',position:'line_centered_top',displayColors:false,cornerRadius:0,caretSize:0,caretPadding:0,yPadding:1,xPadding:1,titleFontSize:0,titleSpacing:0,titleMarginBottom:0,bodyFontSize:11,bodySpacing:0,footerSpacing:0,footerMarginTop:0,intersect:false},animation:{duration:0,animateScale:true},scales:{y_axes_maximize:true,y_axes_begin_at_zero:true,yAxes:[{display:false,type:'linear',ticks:{}}],xAxes:[{display:false,barPercentage:1.00}]}}},bar_vertical_tristate:{item_width:8,colors:{positive:'rgba(0, 128, 0, 0.5)',negative:'rgba(255, 0, 0, 0.5)',equal:'rgba(0, 0, 0, 0.5)'},data:{borderWidth:0,binarizeValues:true,binarizationThreshold:0.0},options:{responsive:false,maintainAspectRatio:false,legend:{display:false},tooltips:{enabled:false,mode:'nearest',position:'line_centered_top',displayColors:false,cornerRadius:0,caretSize:0,caretPadding:0,yPadding:1,xPadding:1,titleFontSize:0,titleSpacing:0,titleMarginBottom:0,bodyFontSize:11,bodySpacing:0,footerSpacing:0,footerMarginTop:0,intersect:false},animation:{duration:0,animateScale:true},scales:{y_axes_maximize:true,y_axes_begin_at_zero:true,yAxes:[{display:false,type:'linear',ticks:{}}],xAxes:[{display:false,barPercentage:1.00}]}}},line:{item_width:6,hline:{enabled:false,values:null,colors:['rgba(0, 0, 0, 0.6)'],width:0.5},data:{borderWidth:1,borderColor:'rgba(160, 160, 160, 1.0)',pointRadius:1,pointBorderWidth:0,pointBackgroundColor:'#000',backgroundColor:'rgba(220, 220, 220, 1.0)',lineTension:0,showLine:true},options:{responsive:false,maintainAspectRatio:false,legend:{display:false},tooltips:{enabled:true,mode:'nearest',intersect:false,position:'line_centered_top',cornerRadius:0,caretSize:0,caretPadding:0,yPadding:1,xPadding:1,titleFontSize:0,titleSpacing:0,titleMarginBottom:0,titleFontColor:'#FFF',bodyFontColor:'#FFF',footerFontColor:'#FFF',backgroundColor:'rgba(0,0,0,0.3)',bodyFontSize:11,bodySpacing:0,footerSpacing:0,footerMarginTop:0,displayColors:false},animation:{duration:0,animateScale:false},responsiveAnimationDuration:0,scales:{y_axes_maximize:true,y_axes_begin_at_zero:true,yAxes:[{display:false,type:'linear',ticks:{}}],xAxes:[{display:false,ticks:{}}]}}},line_steps:{item_width:6,hline:{enabled:false,values:null,colors:['rgba(0, 0, 0, 0.6)'],width:0.5},data:{borderWidth:1,borderColor:'rgba(160, 160, 160, 1.0)',pointRadius:0,pointBorderWidth:0,pointBackgroundColor:'#000',backgroundColor:'rgba(220, 220, 220, 1.0)',steppedLine:true,lineTension:0,showLine:true},options:{responsive:false,maintainAspectRatio:false,legend:{display:false},tooltips:{enabled:true,mode:'nearest',position:'line_centered_top',displayColors:false,cornerRadius:0,caretSize:0,caretPadding:0,yPadding:1,xPadding:1,titleFontSize:0,titleSpacing:0,titleMarginBottom:0,bodyFontSize:11,bodySpacing:0,footerSpacing:0,footerMarginTop:0,intersect:false},animation:{duration:0,animateScale:true},scales:{y_axes_maximize:true,y_axes_begin_at_zero:true,x_axes_show_last:true,x_axes_offset_last:1.0,yAxes:[{display:false,type:'linear',ticks:{}}],xAxes:[{display:false,ticks:{}}]}}}},value_type:{boolean:{color:{on:'#000000',off:'#e2e2e2',},circle:{svg:{type:'circle',size:12},html:{on:{css:'glyphicon glyphicon-ok-sign'},off:{css:'glyphicon glyphicon-remove-circle'},},},rect:{svg:{type:'rect',size:12},html:{on:{css:'glyphicon glyphicon-check'},off:{css:'glyphicon glyphicon-unchecked'},},}},},custom_chart_json:null},init:function(element,options,name){var self=this;this.name=name;this.element=element;this.$element=$(element);$(element).addClass(this.name);this.uniqueId=window.datatable_unique_id;window.datatable_unique_id+=1;this.defaults.colors.datasets=this.defaults.colors.schemes['default'];this.initOptions(options);this.rank_init=true;this.comparison_init=true;this.table_rank=[];this.chart_update=false;this.chart_init=true;this.bar_chart=null;this.scatter_chart=null;this.comparison_chart=null;this.line_chart=null;this.line_chart_data=null;this.chart_mode=this.options.chart_default_mode;this.table_mode=this.options.table_default_mode;this.hline_value=[];this.hline_index=[];this.hline_color=[];this.field_meta=[];this.log(this.name+'::init');this.createHelperFunctions();if(typeof $(this.element).data('id-field')!=='undefined'){$(this.element).data('unique-id',$(this.element).data('id-field'));} var th_rank_element=$(this.element).find('thead tr th[data-rank="true"]');if(th_rank_element){if(this.options.rank_mode.startsWith('grouped')){$(th_rank_element).attr('data-formatter','runningFormatterGrouped'+this.uniqueId);window['runningFormatterGrouped'+this.uniqueId]=function(value,row,index){return $(self.element).datatable('getRank',index);}}else if(this.options.rank_mode=='normal'){$(th_rank_element).attr('data-formatter','runningFormatter');}} -$(this.element).find('thead tr th[data-sortable="true"]').each(function(){window['valueSorter'+self.uniqueId]=function(a,b){return self.valueSorter(a,b,'asc');};$(this).attr('data-sorter','valueSorter'+self.uniqueId);});$(this.element).find('thead tr th[data-reversed="true"]').each(function(){window['valueSorterReverse'+self.uniqueId]=function(a,b){return self.valueSorter(a,b,'desc');};$(this).attr('data-sorter','valueSorterReverse'+self.uniqueId);});$(this.element).find('thead tr th[data-chartable="true"]').each(function(){$(this).append(' '+self.options.icon.chartable);});this.initValueFormatters();this.extendChartjsLibrary();if(this.options.show_chart){this.addToolbar();} +$(this.element).find('thead tr th[data-sortable="true"]:not([data-sorter])').each(function(){window['valueSorter'+self.uniqueId]=function(a,b){return self.valueSorter(a,b,'asc');};$(this).attr('data-sorter','valueSorter'+self.uniqueId);});$(this.element).find('thead tr th[data-reversed="true"]:not([data-sorter])').each(function(){window['valueSorterReverse'+self.uniqueId]=function(a,b){return self.valueSorter(a,b,'desc');};$(this).attr('data-sorter','valueSorterReverse'+self.uniqueId);});$(this.element).find('thead tr th[data-chartable="true"]').each(function(){$(this).append(' '+self.options.icon.chartable);});this.initValueFormatters();this.extendChartjsLibrary();if(this.options.show_chart){this.addToolbar();} $(element).on('post-init.datatable',function(e,data){self.initBootstrapTable();});$(element).on('post-body.bs.table',function(e,data){self.chart_mode=$('#'+self.options.element.chart_mode_selector+' .active').first().data('mode');self.updateVisualizationVisibility(self.chart_mode);$('#'+self.options.element.table_mode_selector).each(function(){if($(this).hasClass('active')){self.table_mode='show';}else{self.table_mode='hide';} self.updateTableVisibility(self.table_mode);return false;});if(self.options.rank_mode.startsWith('grouped')){if(self.rank_init){setTimeout(function(){self.updateRank();self.rank_init=false;},100);}} if(self.options.chart_modes.indexOf('comparison')>-1){if(self.comparison_init){setTimeout(function(){self.initComparison();},100);}} @@ -2789,9 +2789,9 @@ html+=self.svgElement(self.options.value_type.boolean.rect.svg.type,self.options return'';};break;case'inline-boolean-rect-html':window[formatter_function_name]=function(value,row,index){var fill_color;var css_class;if(value==1||value=='true'){fill_color=self.options.value_type.boolean.color.on;css_class=self.options.value_type.boolean.rect.html.on.css;}else{fill_color=self.options.value_type.boolean.color.off;css_class=self.options.value_type.boolean.rect.html.off.css;} return'';};break;default:break;} return formatter_function_name;},initValueFormatters:function(){var self=this;$(this.element).find('thead tr th[data-value-type]').each(function(index){var that=this;var value_type=$(this).data('value-type');if(value_type.includes('percentage')){$(this).attr('data-postfix','%');} -if(value_type.startsWith('int')||value_type.startsWith('float')){$(this).attr('data-formatter',self.createNumericValueFormatter(value_type,index));}else if(value_type.startsWith('inline')){$(this).attr('data-formatter',self.createInlineValueFormatter(value_type,index,$(that)));}else{switch(value_type){case'numeric-unit':window['valueFormatter_numeric_unit'+self.uniqueId]=function(value,row,index){if(jQuery.isNumeric(value)){value=parseFloat(value);return self.addNumberPrefix(value);}else{return value;}};$(this).attr('data-formatter','valueFormatter_numeric_unit'+self.uniqueId);break;case'html':$(this).attr('data-formatter','valueFormatter_html');break;case'date':$(this).attr('data-formatter','valueFormatter_date');break;case'list':$(this).attr('data-formatter','valueFormatter_list');break;case'url':window['valueFormatter_url'+self.uniqueId]=function(value,row,index){var links=[];if(value.trim()){var items=value.split(',');if(items.length>0){for(var i=0;i'+link_title+'');}else{links.push(''+self.options.icon.url+'');}}}} +if(value_type.startsWith('int')||value_type.startsWith('float')){$(this).attr('data-formatter',self.createNumericValueFormatter(value_type,index));}else if(value_type.startsWith('inline')){$(this).attr('data-formatter',self.createInlineValueFormatter(value_type,index,$(that)));}else{if(!$(this).attr('data-formatter')){switch(value_type){case'numeric-unit':window['valueFormatter_numeric_unit'+self.uniqueId]=function(value,row,index){if(jQuery.isNumeric(value)){value=parseFloat(value);return self.addNumberPrefix(value);}else{return value;}};$(this).attr('data-formatter','valueFormatter_numeric_unit'+self.uniqueId);break;case'html':$(this).attr('data-formatter','valueFormatter_html');break;case'date':$(this).attr('data-formatter','valueFormatter_date');break;case'list':$(this).attr('data-formatter','valueFormatter_list');break;case'url':window['valueFormatter_url'+self.uniqueId]=function(value,row,index){var links=[];if(value.trim()){var items=value.split(',');if(items.length>0){for(var i=0;i'+link_title+'');}else{links.push(''+self.options.icon.url+'');}}}} return links.join('
');};$(this).attr('data-formatter','valueFormatter_url'+self.uniqueId);break;case'ref':window['valueFormatter_ref'+self.uniqueId]=function(value,row,index){var links=[];if(value.trim()){var items=value.split(',');if(items.length>0){for(var i=0;i['+link_title+']');}else{links.push(''+self.options.icon.ref+'');}}}} -return links.join('
');};$(this).attr('data-formatter','valueFormatter_ref'+self.uniqueId);break;case'anchor':window['valueFormatter_anchor'+self.uniqueId]=function valueFormatter_anchor(value,row,index){if(value.trim()){return''+self.options.icon.anchor+''}else{return value;}};$(this).attr('data-formatter','valueFormatter_anchor'+self.uniqueId);break;default:window['valueFormatter_hide'+self.uniqueId]=function(value,row,index){return'
Invalid data-value-type
';};$(this).attr('data-formatter','valueFormatter_hide'+self.uniqueId);break;}}});},initBootstrapTable:function(){$(this.element).bootstrapTable();$(this.element).trigger('post-body.bs.table');$(this.options.element.loader).hide();},extendChartjsLibrary:function(){var self=this;var originalBarDraw=Chart.controllers.bar.prototype.draw;Chart.helpers.extend(Chart.controllers.bar.prototype,{draw:function(){originalBarDraw.apply(this,arguments);var chart=this.chart;var scale=this.scale;var ctx=chart.chart.ctx;var xaxis=chart.scales['x-axis-0'];var yaxis=chart.scales['y-axis-0'];if(chart.config.options.hasOwnProperty('horizontal_line')&&chart.config.options.horizontal_line.enabled){var horizontal_line_value=this.getDataset().horizontal_line_value;var horizontal_line_color=this.getDataset().horizontal_line_color;jQuery.each(horizontal_line_value,function(index,value){var y=yaxis.getPixelForValue(value);ctx.save();ctx.beginPath();ctx.strokeStyle=horizontal_line_color[index];var lineWidth=2;if(chart.config.options.horizontal_line.hasOwnProperty('lineWidth')){lineWidth=chart.config.options.horizontal_line.lineWidth;} +return links.join('
');};$(this).attr('data-formatter','valueFormatter_ref'+self.uniqueId);break;case'anchor':window['valueFormatter_anchor'+self.uniqueId]=function valueFormatter_anchor(value,row,index){if(value.trim()){return''+self.options.icon.anchor+''}else{return value;}};$(this).attr('data-formatter','valueFormatter_anchor'+self.uniqueId);break;case'str':break;default:window['valueFormatter_hide'+self.uniqueId]=function(value,row,index){return'
Invalid data-value-type
';};$(this).attr('data-formatter','valueFormatter_hide'+self.uniqueId);break;}}}});},initBootstrapTable:function(){$(this.element).bootstrapTable();$(this.element).trigger('post-body.bs.table');$(this.options.element.loader).hide();},extendChartjsLibrary:function(){var self=this;var originalBarDraw=Chart.controllers.bar.prototype.draw;Chart.helpers.extend(Chart.controllers.bar.prototype,{draw:function(){originalBarDraw.apply(this,arguments);var chart=this.chart;var scale=this.scale;var ctx=chart.chart.ctx;var xaxis=chart.scales['x-axis-0'];var yaxis=chart.scales['y-axis-0'];if(chart.config.options.hasOwnProperty('horizontal_line')&&chart.config.options.horizontal_line.enabled){var horizontal_line_value=this.getDataset().horizontal_line_value;var horizontal_line_color=this.getDataset().horizontal_line_color;jQuery.each(horizontal_line_value,function(index,value){var y=yaxis.getPixelForValue(value);ctx.save();ctx.beginPath();ctx.strokeStyle=horizontal_line_color[index];var lineWidth=2;if(chart.config.options.horizontal_line.hasOwnProperty('lineWidth')){lineWidth=chart.config.options.horizontal_line.lineWidth;} ctx.lineWidth=lineWidth;ctx.moveTo(xaxis.left,y);ctx.lineTo(xaxis.right,y);ctx.stroke();ctx.restore();});}}});Chart.defaults.lineWithLine=Chart.helpers.clone(Chart.defaults.line);Chart.controllers.lineWithLine=Chart.controllers.line.extend({draw:function(ease){Chart.controllers.line.prototype.draw.call(this,ease);var chart=this.chart;var scale=this.scale;var ctx=chart.chart.ctx;if(chart.config.data.hasOwnProperty('hline')&&chart.config.data.hline.enabled&&chart.config.data.hline.value!==null){var xaxis=chart.scales['x-axis-0'];var yaxis=chart.scales['y-axis-0'];var values=chart.config.data.hline.values;var colors=chart.config.data.hline.colors;if(values.constructor!==Array){values=[values];} if(colors.constructor!==Array){colors=[colors];} jQuery.each(values,function(index,value){var y=yaxis.getPixelForValue(value);ctx.save();ctx.beginPath();if(colors.length>index){ctx.strokeStyle=colors[index];}else{ctx.strokeStyle=colors[0];} diff --git a/js.min/datatable.min.js b/js.min/datatable.min.js index f37f77a..2e2e5ff 100644 --- a/js.min/datatable.min.js +++ b/js.min/datatable.min.js @@ -1,6 +1,6 @@ jQuery(document).ready(function(){jQuery('table.datatable').each(function(){jQuery(this).datatable();});});(function($,window,document,undefined){"use strict";var pluginName='datatable';var pluginVersion='1.2.0';window.datatable_unique_id=0;var defaults={debug:false};var commands={getRank:getRank,updateChart:updateChart};var Plugin=function(element,options,name){this.init(element,options,name);};Plugin.prototype={defaults:{debug:false,rank_mode:'normal',tag_mode:'column',show_chart:false,show_toolbar:true,show_table_selector:false,chart_modes:'bar',chart_default_mode:'bar',table_default_mode:'show',list_separator:',',css:{active:'active'},animation:{duration:100,show_speed:100,hide_speed:100},time:{valid_formats:['YYYY-MM-DD HH:mm','YYYY-MM-DD HH:mm:ss','YYYY-MM-DD HH:mm:ss.SSS','YYYY-MM-DD','YYYY-MM','YYYY/MM/DD','MM-DD-YYYY','MM.DD.YYYY','DD-MM','HH:mm','HH:mm:ss','HH:mm:ss.SSS'],display_formats:{'second':'hh:mm:ss','minute':'hh:mm','hour':'hh','day':'YYYY-MM-DD','week':'ll','month':'MMM YYYY','quarter':'[Q]Q - YYYY','year':'YYYY'}},table:{id_field:'id',row_highlighting:false,page_list:'[5,10,20,50,all]',pagination:true,show_header:true,show_columns:true,show_pagination_switch:true,striped:true,column_hover:false},chart:{position:'top'},colors:{valid:['active','success','info','warning','danger'],default:{border:{normal:'rgba(233, 144, 2, 0.5)',hover:'rgba(233, 144, 2, 1)'},bg:{normal:'rgba(233, 144, 2, 0.2)',hover:'rgba(233, 144, 2, 0.4)'}},active: {border:{normal:'rgba(160, 160, 160, 0.5)',hover:'rgba(160, 160, 160, 1)'},bg:{normal:'rgba(160, 160, 160, 0.4)',hover:'rgba(160, 160, 160, 0.6)'}},success:{border:{normal:'rgba(92, 184, 92, 0.5)',hover:'rgba(92, 184, 92, 1)'},bg:{normal:'rgba(92, 184, 92, 0.4)',hover:'rgba(92, 184, 92, 0.6)'}},info:{border:{normal:'rgba(112, 187, 225, 0.5)',hover:'rgba(112, 187, 225, 1)'},bg:{normal:'rgba(112, 187, 225, 0.4)',hover:'rgba(112, 187, 225, 0.6)'}},warning:{border:{normal:'rgba(240, 173, 78, 0.5)',hover:'rgba(240, 173, 78, 1)'},bg:{normal:'rgba(240, 173, 78, 0.4)',hover:'rgba(240, 173, 78, 0.6)'}},danger:{border:{normal:'rgba(217, 83, 79, 0.5)',hover:'rgba(217, 83, 79, 1)'},bg:{normal:'rgba(217, 83, 79, 0.4)',hover:'rgba(217, 83, 79, 0.6)'}},background:'rgba(251, 85, 85, 0.8)',schemes:{default:['#1f77b4','#17becf','#ff7f0e','#ffbb78','#2ca02c','#98df8a','#d62728','#ff9896','#9467bd','#c5b0d5','#8c564b','#c49c94','#e377c2','#f7b6d2','#7f7f7f','#c7c7c7','#bcbd22','#dbdb8d','#9edae5','#aec7e8'],Antique:['#855C75','#D9AF6B','#AF6458','#736F4C','#526A83','#625377','#68855C','#9C9C5E','#A06177','#8C785D','#467378','#7C7C7C'],Bold:['#7F3C8D','#11A579','#3969AC','#F2B701','#E73F74','#80BA5A','#E68310','#008695','#CF1C90','#f97b72','#4b4b8f','#A5AA99'],Pastel:['#66C5CC','#F6CF71','#F89C74','#DCB0F2','#87C55F','#9EB9F3','#FE88B1','#C9DB74','#8BE0A4','#B497E7','#D3B484','#B3B3B3'],Prism:['#5F4690','#1D6996','#38A6A5','#0F8554','#73AF48','#EDAD08','#E17C05','#CC503E','#94346E','#6F4070','#994E95','#666666'],Safe:['#88CCEE','#CC6677','#DDCC77','#117733','#332288','#AA4499','#44AA99','#999933','#882255','#661100','#6699CC','#888888'],Vivid:['#E58606','#5D69B1','#52BCA3','#99C945','#CC61B0','#24796C','#DAA51B','#2F8AC4','#764E9F','#ED645A','#CC3A8E','#A5AA99'],ArmyRose:['#798234','#a3ad62','#d0d3a2','#fdfbe4','#f0c6c3','#df91a3','#d46780'],Fall:['#3d5941','#778868','#b5b991','#f6edbd','#edbb8a','#de8a5a','#ca562c'],Geyser:['#008080','#70a494','#b4c8a8','#f6edbd','#edbb8a','#de8a5a','#ca562c'],Temps:['#009392','#39b185','#9ccb86','#e9e29c','#eeb479','#e88471','#cf597e'],TealRose:['#009392','#72aaa1','#b1c7b3','#f1eac8','#e5b9ad','#d98994','#d0587e'],Tropic:['#009B9E','#42B7B9','#A7D3D4','#F1F1F1','#E4C1D9','#D691C1','#C75DAB'],Earth:['#A16928','#bd925a','#d6bd8d','#edeac2','#b5c8b8','#79a7ac','#2887a1'],Burg:['#ffc6c4','#f4a3a8','#e38191','#cc607d','#ad466c','#8b3058','#672044'],BurgYI:['#fbe6c5','#f5ba98','#ee8a82','#dc7176','#c8586c','#9c3f5d','#70284a'],RedOR:['#f6d2a9','#f5b78e','#f19c7c','#ea8171','#dd686c','#ca5268','#b13f64'],OrYel:['#ecda9a','#efc47e','#f3ad6a','#f7945d','#f97b57','#f66356','#ee4d5a'],Peach:['#fde0c5','#facba6','#f8b58b','#f59e72','#f2855d','#ef6a4c','#eb4a40'],PinkYI:['#fef6b5','#ffdd9a','#ffc285','#ffa679','#fa8a76','#f16d7a','#e15383'],Mint:['#e4f1e1','#b4d9cc','#89c0b6','#63a6a0','#448c8a','#287274','#0d585f'],BluGrn:['#c4e6c3','#96d2a4','#6dbc90','#4da284','#36877a','#266b6e','#1d4f60'],DarkMint:['#d2fbd4','#a5dbc2','#7bbcb0','#559c9e','#3a7c89','#235d72','#123f5a'],Emrld:['#d3f2a3','#97e196','#6cc08b','#4c9b82','#217a79','#105965','#074050'],BluYI:['#f7feae','#b7e6a5','#7ccba2','#46aea0','#089099','#00718b','#045275'],Teal:['#d1eeea','#a8dbd9','#85c4c9','#68abb8','#4f90a6','#3b738f','#2a5674'],TealGrn:['#b0f2bc','#89e8ac','#67dba5','#4cc8a3','#38b2a3','#2c98a0','#257d98'],Purp:['#f3e0f7','#e4c7f1','#d1afe8','#b998dd','#9f82ce','#826dba','#63589f'],PurpOr:['#f9ddda','#f2b9c4','#e597b9','#ce78b3','#ad5fad','#834ba0','#573b88'],Sunset:['#f3e79b','#fac484','#f8a07e','#eb7f86','#ce6693','#a059a0','#5c53a5'],Magenta:['#f3cbd3','#eaa9bd','#dd88ac','#ca699d','#b14d8e','#91357d','#6c2167'],SunsetDark:['#fcde9c','#faa476','#f0746e','#e34f6f','#dc3977','#b9257a','#7c1d6f'],BrwnYI:['#ede5cf','#e0c2a2','#d39c83','#c1766f','#a65461','#813753','#541f3f'],},datasets:['#66C5CC','#F6CF71','#F89C74','#DCB0F2','#87C55F','#9EB9F3','#FE88B1','#C9DB74','#8BE0A4','#B497E7','#D3B484','#B3B3B3']},bar:{height:240,item_width:null,fields:null,xaxis:{display:true,field:null,sorted:false,timeunit:null,timestepsize:null,gridlines:true,showlabels:false},yaxis:{display:true,beginatzero:false,label:null,scale:null,gridlines:true},horizontal_highlights:{enabled:true,data:null,opacity:0.1,strokeStyle:'rgba(112, 187, 225 ,1.0)',lineWidth:2,label: {fillStyle:'#000',fontSize:'12px',font:'Arial',opacity:0.2,position:'bottom-right'}},horizontal_line:{enabled:false,strokeStyle:'rgba(112, 187, 225 ,0.5)',lineWidth:2},horizontal_indicator_line:{enabled:true,strokeStyle:'rgba(160,160,160,0.5)',fillStyle:'rgba(160,160,160,0.2)',lineWidth:4},vertical_indicator_line:{enabled:false,strokeStyle:'rgba(160,160,160,0.5)',lineWidth:4},error_bar:{enabled:true,lineWidth:2.0,tipWidth:null,strokeStyle:null},colors:{valid:['active','success','info','warning','danger'],default:{border:{normal:'rgba(233, 144, 2, 0.5)',hover:'rgba(233, 144, 2, 1)'},bg:{normal:'rgba(233, 144, 2, 0.2)',hover:'rgba(233, 144, 2, 0.4)'}},active: {border:{normal:'rgba(160, 160, 160, 0.5)',hover:'rgba(160, 160, 160, 1)'},bg:{normal:'rgba(160, 160, 160, 0.4)',hover:'rgba(160, 160, 160, 0.6)'}},success:{border:{normal:'rgba(92, 184, 92, 0.5)',hover:'rgba(92, 184, 92, 1)'},bg:{normal:'rgba(92, 184, 92, 0.4)',hover:'rgba(92, 184, 92, 0.6)'}},info:{border:{normal:'rgba(112, 187, 225, 0.5)',hover:'rgba(112, 187, 225, 1)'},bg:{normal:'rgba(112, 187, 225, 0.4)',hover:'rgba(112, 187, 225, 0.6)'}},warning:{border:{normal:'rgba(240, 173, 78, 0.5)',hover:'rgba(240, 173, 78, 1)'},bg:{normal:'rgba(240, 173, 78, 0.4)',hover:'rgba(240, 173, 78, 0.6)'}},danger:{border:{normal:'rgba(217, 83, 79, 0.5)',hover:'rgba(217, 83, 79, 1)'},bg:{normal:'rgba(217, 83, 79, 0.4)',hover:'rgba(217, 83, 79, 0.6)'}},background:'rgba(251, 85, 85, 0.8)',datasets:['#66C5CC','#F6CF71','#F89C74','#DCB0F2','#87C55F','#9EB9F3','#FE88B1','#C9DB74','#8BE0A4','#B497E7','#D3B484','#B3B3B3']},tooltips:{titleFontSize:16,bodyFontSize:12,bodyFontFamily:'monospace',position:'average'},legend:{enabled:false,position:'top'}},line:{height:240,xaxis:{display:true,field:null,sorted:false,timeunit:null,timestepsize:null,gridlines:true},yaxis:{beginatzero:false,label:null,scale:null,gridlines:true},fill:false,fields:null,point:{enabled:true,borderWidth:1,radius:{normal:4,hover:4}},line:{enabled:true,tension:0},vertical_segments:{enabled:true,data:null,opacity:0.1,label: {fillStyle:'#000',fontSize:'12px',font:'Arial',opacity:0.2,position:'top'}},horizontal_highlights:{enabled:true,data:null,opacity:0.1,strokeStyle:'rgba(112, 187, 225 ,1.0)',lineWidth:2,label: {fillStyle:'#000',fontSize:'12px',font:'Arial',opacity:0.2,position:'bottom-right'}},horizontal_line:{enabled:false,strokeStyle:'rgba(112, 187, 225 ,1.0)',lineWidth:2},vertical_indicator_line:{enabled:true,strokeStyle:'rgba(160,160,160,0.5)',lineWidth:2},horizontal_indicator_line:{enabled:true,strokeStyle:'rgba(160,160,160,0.5)',fillStyle:'rgba(160,160,160,0.2)',lineWidth:2},error_bar:{enabled:false,lineWidth:1,tipWidth:0.2,strokeStyle:'rgba(0,0,0,0.8)'},interval:{enabled:true,lineWidth:0.4},colors:{valid:['active','success','info','warning','danger'],default:{border:{normal:'rgba(233, 144, 2, 0.5)',hover:'rgba(233, 144, 2, 1.0)'},bg:{normal:'rgba(233, 144, 2, 0.5)',hover:'rgba(233, 144, 2, 1.0)'}},active: {border:{normal:'rgba(160, 160, 160, 0.6)',hover:'rgba(160, 160, 160 1.0)'},bg:{normal:'rgba(160, 160, 160, 0.5)',hover:'rgba(160, 160, 160 1.0)'}},success:{border:{normal:'rgba(92, 184, 92, 0.6)',hover:'rgba(92, 184, 92, 1.0)'},bg:{normal:'rgba(92, 184, 92, 0.5)',hover:'rgba(92, 184, 92, 1.0)'}},info:{border:{normal:'rgba(112, 187, 225, 0.6)',hover:'rgba(112, 187, 225, 1)'},bg:{normal:'rgba(112, 187, 225, 0.5)',hover:'rgba(112, 187, 225, 1.0)'}},warning:{border:{normal:'rgba(240, 173, 78, 0.6)',hover:'rgba(240, 173, 78, 1.0)'},bg:{normal:'rgba(240, 173, 78, 0.5)',hover:'rgba(240, 173, 78, 1.0)'}},danger:{border:{normal:'rgba(217, 83, 79, 0.6)',hover:'rgba(217, 83, 79, 1)'},bg:{normal:'rgba(217, 83, 79, 0.5)',hover:'rgba(217, 83, 79, 1.0)'}},background:'rgba(251, 85, 85, 0.8)',datasets:['#1f77b4','#aec7e8','#ff7f0e','#ffbb78','#2ca02c','#98df8a','#d62728','#ff9896','#9467bd','#c5b0d5','#8c564b','#c49c94','#e377c2','#f7b6d2','#7f7f7f','#c7c7c7','#bcbd22','#dbdb8d','#17becf','#9edae5']},tooltips:{titleFontSize:16,bodyFontSize:12,bodyFontFamily:'monospace',position:'top'},legend:{enabled:true,position:'bottom'}},scatter:{height:200,point:{borderWidth:2,radius:{normal:5,hover:10}},vertical_indicator_line:{enabled:false,strokeStyle:'rgba(0,0,0,0.2)',lineWidth:4},horizontal_indicator_line:{enabled:false,strokeStyle:'rgba(0,0,0,0.2)',fillStyle:'rgba(0,0,0,0.1)',lineWidth:4},error_bar:{enabled:true,lineWidth:1,tipWidth:8,strokeStyle:'rgba(0,0,0,0.05)',fillStyle:'rgba(0,0,0,0.02)',bounding_box:true},colors:{valid:['active','success','info','warning','danger'],default:{border:{normal:'rgba(233,144,2, 0.5)',hover:'rgba(233,144,2, 1)'},bg:{normal:'rgba(233,144,2,0.5)',hover:'rgba(233,144,2,0.8)'}},active: {border:{normal:'rgba(160, 160, 160, 0.5)',hover:'rgba(160, 160, 160 1)'},bg:{normal:'rgba(160, 160, 160, 0.5)',hover:'rgba(160, 160, 160 0.8)'}},success:{border:{normal:'rgba(92, 184, 92, 0.5)',hover:'rgba(92, 184, 92, 1)'},bg:{normal:'rgba(92, 184, 92, 0.5)',hover:'rgba(92, 184, 92, 0.8)'}},info:{border:{normal:'rgba(112, 187, 225, 0.5)',hover:'rgba(112, 187, 225, 1)'},bg:{normal:'rgba(112, 187, 225, 0.5)',hover:'rgba(112, 187, 225, 0.8)'}},warning:{border:{normal:'rgba(240, 173, 78, 0.5)',hover:'rgba(240, 173, 78, 1)'},bg:{normal:'rgba(240, 173, 78, 0.5)',hover:'rgba(240, 173, 78, 0.8)'}},danger:{border:{normal:'rgba(217, 83, 79, 0.5)',hover:'rgba(217, 83, 79, 1)'},bg:{normal:'rgba(217, 83, 79, 0.5)',hover:'rgba(217, 83, 79, 0.8)'}},background:'rgba(251, 85, 85, 0.8)'},tooltips:{titleFontSize:18,bodyFontSize:14},x:null,y:null},comparison:{height:200,sets:null,active_set:null,a_row:null,b_row:null,row_id_field:'name',a_color:'#43ac6a',b_color:'#f04124',error_bar:{enabled:true,lineWidth:2.0,tipWidth:8,strokeStyle:'rgba(0,0,0,0.2)'},colors:{background:'rgba(251, 85, 85, 0.8)'},tooltips:{titleFontSize:18,bodyFontSize:14}},element:{chart_mode_selector:'chart_mode_selector',table_mode_selector:'table_mode_selector',loader:'#loader',bar:{div:'#bar_div',canvas:'#bar_canvas'},line:{div:'#line_div',canvas:'#line_canvas'},scatter:{div:'#scatter_div',canvas:'scatter_canvas',selector_x_menu:'#scatter_selector_x_menu',selector_y_menu:'#scatter_selector_y_menu'},comparison:{div:'#comparison_div',canvas:'#comparison_canvas',selector_set_button:'#comparison_selector_set_button',selector_set_menu:'#comparison_selector_set_menu',selector_a_button:'#comparison_selector_a_button',selector_a_menu:'#comparison_selector_a_menu',selector_b_button:'#comparison_selector_b_button',selector_b_menu:'#comparison_selector_b_menu'},},icon:{table:'',bar:'',line:'',scatter:'',comparison:'',off:'',caret:'',chartable:'',url:'',ref:'',anchor:''},label:{table:'',bar:'Bar',line:'Line',scatter:'Scatter',comparison:'Comparison',off:'Off',select_x_axis:'Select data field for X-axis',select_y_axis:'Select data field for Y-axis',select_set:'Select set',select_a_row:'Select row A',select_b_row:'Select row B',toggle_table:'Toggle table',hide_visualization:'Hide visualization'},button_css:{table:'btn btn-default',bar:'btn btn-info selector-button',line:'btn btn-info selector-button',scatter:'btn btn-info selector-button',comparison:'btn btn-info selector-button',off:'btn btn-default selector-button',custom:'btn btn-default selector-button',},tags: {css:['label label-tag label-tag1','label label-tag label-tag2','label label-tag label-tag3','label label-tag label-tag4','label label-tag label-tag5','label label-tag label-tag6','label label-tag label-tag7','label label-tag label-tag8','label label-tag label-tag9','label label-tag label-tag10','label label-tag label-tag11','label label-tag label-tag12','label label-tag label-tag13','label label-tag label-tag14','label label-tag label-tag15','label label-tag label-primary','label label-tag label-success','label label-tag label-info','label label-tag label-warning','label label-tag label-danger','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-tag-default','label label-tag label-default','label label-tag label-default','label label-tag label-default','label label-tag label-default','label label-tag label-tag-default']},custom_chart:{},inline_chart:{height:35,max_width:200,colors:{default:'#cdcdcd',on:'#008000',off:'#ff514f',positive:'#008000',negative:'#ff514f',equal:'#cdcdcd'},value_indicator:{html:{css:'small glyphicon glyphicon-stop'},svg:{type:'rect',size:10},data:{binarizationThreshold:0.0},color:{default:'#cdcdcd',on:'#008000',off:'#ff514f',positive:'rgba(0, 128, 0, 0.5)',negative:'rgba(255, 0, 0, 0.5)',equal:'rgba(0, 0, 0, 0.5)'}},bar_horizontal:{colors:["#5cb85c","#5bc0de","#f0ad4e","#d9534f"]},bar_horizontal_average:{colors:{background:'transparent',center:'#000000',positive:'#5cb85c',negative:'#d9534f'}},bar_vertical:{item_width:null,hline:{enabled:false,values:null,colors:['rgba(0, 0, 0, 0.6)'],width:0.5},colors:{default:'rgba(220, 220, 220, 1.0)',background:'transparent',center:'#000000',positive:'#5cb85c',negative:'#d9534f'},data:{borderWidth:1,borderColor:'rgba(160, 160, 160, 1.0)'},options:{responsive:false,maintainAspectRatio:false,legend:{display:false},tooltips:{enabled:true,mode:'nearest',position:'line_centered_top',displayColors:false,cornerRadius:0,caretSize:0,caretPadding:0,yPadding:1,xPadding:1,titleFontSize:0,titleSpacing:0,titleMarginBottom:0,bodyFontSize:11,bodySpacing:0,footerSpacing:0,footerMarginTop:0,intersect:false},animation:{duration:0,animateScale:true},scales:{y_axes_maximize:true,y_axes_begin_at_zero:true,yAxes:[{display:false,type:'linear',ticks:{}}],xAxes:[{display:false,barPercentage:1.00}]}}},bar_vertical_tristate:{item_width:8,colors:{positive:'rgba(0, 128, 0, 0.5)',negative:'rgba(255, 0, 0, 0.5)',equal:'rgba(0, 0, 0, 0.5)'},data:{borderWidth:0,binarizeValues:true,binarizationThreshold:0.0},options:{responsive:false,maintainAspectRatio:false,legend:{display:false},tooltips:{enabled:false,mode:'nearest',position:'line_centered_top',displayColors:false,cornerRadius:0,caretSize:0,caretPadding:0,yPadding:1,xPadding:1,titleFontSize:0,titleSpacing:0,titleMarginBottom:0,bodyFontSize:11,bodySpacing:0,footerSpacing:0,footerMarginTop:0,intersect:false},animation:{duration:0,animateScale:true},scales:{y_axes_maximize:true,y_axes_begin_at_zero:true,yAxes:[{display:false,type:'linear',ticks:{}}],xAxes:[{display:false,barPercentage:1.00}]}}},line:{item_width:6,hline:{enabled:false,values:null,colors:['rgba(0, 0, 0, 0.6)'],width:0.5},data:{borderWidth:1,borderColor:'rgba(160, 160, 160, 1.0)',pointRadius:1,pointBorderWidth:0,pointBackgroundColor:'#000',backgroundColor:'rgba(220, 220, 220, 1.0)',lineTension:0,showLine:true},options:{responsive:false,maintainAspectRatio:false,legend:{display:false},tooltips:{enabled:true,mode:'nearest',intersect:false,position:'line_centered_top',cornerRadius:0,caretSize:0,caretPadding:0,yPadding:1,xPadding:1,titleFontSize:0,titleSpacing:0,titleMarginBottom:0,titleFontColor:'#FFF',bodyFontColor:'#FFF',footerFontColor:'#FFF',backgroundColor:'rgba(0,0,0,0.3)',bodyFontSize:11,bodySpacing:0,footerSpacing:0,footerMarginTop:0,displayColors:false},animation:{duration:0,animateScale:false},responsiveAnimationDuration:0,scales:{y_axes_maximize:true,y_axes_begin_at_zero:true,yAxes:[{display:false,type:'linear',ticks:{}}],xAxes:[{display:false,ticks:{}}]}}},line_steps:{item_width:6,hline:{enabled:false,values:null,colors:['rgba(0, 0, 0, 0.6)'],width:0.5},data:{borderWidth:1,borderColor:'rgba(160, 160, 160, 1.0)',pointRadius:0,pointBorderWidth:0,pointBackgroundColor:'#000',backgroundColor:'rgba(220, 220, 220, 1.0)',steppedLine:true,lineTension:0,showLine:true},options:{responsive:false,maintainAspectRatio:false,legend:{display:false},tooltips:{enabled:true,mode:'nearest',position:'line_centered_top',displayColors:false,cornerRadius:0,caretSize:0,caretPadding:0,yPadding:1,xPadding:1,titleFontSize:0,titleSpacing:0,titleMarginBottom:0,bodyFontSize:11,bodySpacing:0,footerSpacing:0,footerMarginTop:0,intersect:false},animation:{duration:0,animateScale:true},scales:{y_axes_maximize:true,y_axes_begin_at_zero:true,x_axes_show_last:true,x_axes_offset_last:1.0,yAxes:[{display:false,type:'linear',ticks:{}}],xAxes:[{display:false,ticks:{}}]}}}},value_type:{boolean:{color:{on:'#000000',off:'#e2e2e2',},circle:{svg:{type:'circle',size:12},html:{on:{css:'glyphicon glyphicon-ok-sign'},off:{css:'glyphicon glyphicon-remove-circle'},},},rect:{svg:{type:'rect',size:12},html:{on:{css:'glyphicon glyphicon-check'},off:{css:'glyphicon glyphicon-unchecked'},},}},},custom_chart_json:null},init:function(element,options,name){var self=this;this.name=name;this.element=element;this.$element=$(element);$(element).addClass(this.name);this.uniqueId=window.datatable_unique_id;window.datatable_unique_id+=1;this.defaults.colors.datasets=this.defaults.colors.schemes['default'];this.initOptions(options);this.rank_init=true;this.comparison_init=true;this.table_rank=[];this.chart_update=false;this.chart_init=true;this.bar_chart=null;this.scatter_chart=null;this.comparison_chart=null;this.line_chart=null;this.line_chart_data=null;this.chart_mode=this.options.chart_default_mode;this.table_mode=this.options.table_default_mode;this.hline_value=[];this.hline_index=[];this.hline_color=[];this.field_meta=[];this.log(this.name+'::init');this.createHelperFunctions();if(typeof $(this.element).data('id-field')!=='undefined'){$(this.element).data('unique-id',$(this.element).data('id-field'));} var th_rank_element=$(this.element).find('thead tr th[data-rank="true"]');if(th_rank_element){if(this.options.rank_mode.startsWith('grouped')){$(th_rank_element).attr('data-formatter','runningFormatterGrouped'+this.uniqueId);window['runningFormatterGrouped'+this.uniqueId]=function(value,row,index){return $(self.element).datatable('getRank',index);}}else if(this.options.rank_mode=='normal'){$(th_rank_element).attr('data-formatter','runningFormatter');}} -$(this.element).find('thead tr th[data-sortable="true"]').each(function(){window['valueSorter'+self.uniqueId]=function(a,b){return self.valueSorter(a,b,'asc');};$(this).attr('data-sorter','valueSorter'+self.uniqueId);});$(this.element).find('thead tr th[data-reversed="true"]').each(function(){window['valueSorterReverse'+self.uniqueId]=function(a,b){return self.valueSorter(a,b,'desc');};$(this).attr('data-sorter','valueSorterReverse'+self.uniqueId);});$(this.element).find('thead tr th[data-chartable="true"]').each(function(){$(this).append(' '+self.options.icon.chartable);});this.initValueFormatters();this.extendChartjsLibrary();if(this.options.show_chart){this.addToolbar();} +$(this.element).find('thead tr th[data-sortable="true"]:not([data-sorter])').each(function(){window['valueSorter'+self.uniqueId]=function(a,b){return self.valueSorter(a,b,'asc');};$(this).attr('data-sorter','valueSorter'+self.uniqueId);});$(this.element).find('thead tr th[data-reversed="true"]:not([data-sorter])').each(function(){window['valueSorterReverse'+self.uniqueId]=function(a,b){return self.valueSorter(a,b,'desc');};$(this).attr('data-sorter','valueSorterReverse'+self.uniqueId);});$(this.element).find('thead tr th[data-chartable="true"]').each(function(){$(this).append(' '+self.options.icon.chartable);});this.initValueFormatters();this.extendChartjsLibrary();if(this.options.show_chart){this.addToolbar();} $(element).on('post-init.datatable',function(e,data){self.initBootstrapTable();});$(element).on('post-body.bs.table',function(e,data){self.chart_mode=$('#'+self.options.element.chart_mode_selector+' .active').first().data('mode');self.updateVisualizationVisibility(self.chart_mode);$('#'+self.options.element.table_mode_selector).each(function(){if($(this).hasClass('active')){self.table_mode='show';}else{self.table_mode='hide';} self.updateTableVisibility(self.table_mode);return false;});if(self.options.rank_mode.startsWith('grouped')){if(self.rank_init){setTimeout(function(){self.updateRank();self.rank_init=false;},100);}} if(self.options.chart_modes.indexOf('comparison')>-1){if(self.comparison_init){setTimeout(function(){self.initComparison();},100);}} @@ -277,9 +277,9 @@ html+=self.svgElement(self.options.value_type.boolean.rect.svg.type,self.options return'';};break;case'inline-boolean-rect-html':window[formatter_function_name]=function(value,row,index){var fill_color;var css_class;if(value==1||value=='true'){fill_color=self.options.value_type.boolean.color.on;css_class=self.options.value_type.boolean.rect.html.on.css;}else{fill_color=self.options.value_type.boolean.color.off;css_class=self.options.value_type.boolean.rect.html.off.css;} return'';};break;default:break;} return formatter_function_name;},initValueFormatters:function(){var self=this;$(this.element).find('thead tr th[data-value-type]').each(function(index){var that=this;var value_type=$(this).data('value-type');if(value_type.includes('percentage')){$(this).attr('data-postfix','%');} -if(value_type.startsWith('int')||value_type.startsWith('float')){$(this).attr('data-formatter',self.createNumericValueFormatter(value_type,index));}else if(value_type.startsWith('inline')){$(this).attr('data-formatter',self.createInlineValueFormatter(value_type,index,$(that)));}else{switch(value_type){case'numeric-unit':window['valueFormatter_numeric_unit'+self.uniqueId]=function(value,row,index){if(jQuery.isNumeric(value)){value=parseFloat(value);return self.addNumberPrefix(value);}else{return value;}};$(this).attr('data-formatter','valueFormatter_numeric_unit'+self.uniqueId);break;case'html':$(this).attr('data-formatter','valueFormatter_html');break;case'date':$(this).attr('data-formatter','valueFormatter_date');break;case'list':$(this).attr('data-formatter','valueFormatter_list');break;case'url':window['valueFormatter_url'+self.uniqueId]=function(value,row,index){var links=[];if(value.trim()){var items=value.split(',');if(items.length>0){for(var i=0;i'+link_title+'');}else{links.push(''+self.options.icon.url+'');}}}} +if(value_type.startsWith('int')||value_type.startsWith('float')){$(this).attr('data-formatter',self.createNumericValueFormatter(value_type,index));}else if(value_type.startsWith('inline')){$(this).attr('data-formatter',self.createInlineValueFormatter(value_type,index,$(that)));}else{if(!$(this).attr('data-formatter')){switch(value_type){case'numeric-unit':window['valueFormatter_numeric_unit'+self.uniqueId]=function(value,row,index){if(jQuery.isNumeric(value)){value=parseFloat(value);return self.addNumberPrefix(value);}else{return value;}};$(this).attr('data-formatter','valueFormatter_numeric_unit'+self.uniqueId);break;case'html':$(this).attr('data-formatter','valueFormatter_html');break;case'date':$(this).attr('data-formatter','valueFormatter_date');break;case'list':$(this).attr('data-formatter','valueFormatter_list');break;case'url':window['valueFormatter_url'+self.uniqueId]=function(value,row,index){var links=[];if(value.trim()){var items=value.split(',');if(items.length>0){for(var i=0;i'+link_title+'');}else{links.push(''+self.options.icon.url+'');}}}} return links.join('
');};$(this).attr('data-formatter','valueFormatter_url'+self.uniqueId);break;case'ref':window['valueFormatter_ref'+self.uniqueId]=function(value,row,index){var links=[];if(value.trim()){var items=value.split(',');if(items.length>0){for(var i=0;i['+link_title+']');}else{links.push(''+self.options.icon.ref+'');}}}} -return links.join('
');};$(this).attr('data-formatter','valueFormatter_ref'+self.uniqueId);break;case'anchor':window['valueFormatter_anchor'+self.uniqueId]=function valueFormatter_anchor(value,row,index){if(value.trim()){return''+self.options.icon.anchor+''}else{return value;}};$(this).attr('data-formatter','valueFormatter_anchor'+self.uniqueId);break;default:window['valueFormatter_hide'+self.uniqueId]=function(value,row,index){return'
Invalid data-value-type
';};$(this).attr('data-formatter','valueFormatter_hide'+self.uniqueId);break;}}});},initBootstrapTable:function(){$(this.element).bootstrapTable();$(this.element).trigger('post-body.bs.table');$(this.options.element.loader).hide();},extendChartjsLibrary:function(){var self=this;var originalBarDraw=Chart.controllers.bar.prototype.draw;Chart.helpers.extend(Chart.controllers.bar.prototype,{draw:function(){originalBarDraw.apply(this,arguments);var chart=this.chart;var scale=this.scale;var ctx=chart.chart.ctx;var xaxis=chart.scales['x-axis-0'];var yaxis=chart.scales['y-axis-0'];if(chart.config.options.hasOwnProperty('horizontal_line')&&chart.config.options.horizontal_line.enabled){var horizontal_line_value=this.getDataset().horizontal_line_value;var horizontal_line_color=this.getDataset().horizontal_line_color;jQuery.each(horizontal_line_value,function(index,value){var y=yaxis.getPixelForValue(value);ctx.save();ctx.beginPath();ctx.strokeStyle=horizontal_line_color[index];var lineWidth=2;if(chart.config.options.horizontal_line.hasOwnProperty('lineWidth')){lineWidth=chart.config.options.horizontal_line.lineWidth;} +return links.join('
');};$(this).attr('data-formatter','valueFormatter_ref'+self.uniqueId);break;case'anchor':window['valueFormatter_anchor'+self.uniqueId]=function valueFormatter_anchor(value,row,index){if(value.trim()){return''+self.options.icon.anchor+''}else{return value;}};$(this).attr('data-formatter','valueFormatter_anchor'+self.uniqueId);break;case'str':break;default:window['valueFormatter_hide'+self.uniqueId]=function(value,row,index){return'
Invalid data-value-type
';};$(this).attr('data-formatter','valueFormatter_hide'+self.uniqueId);break;}}}});},initBootstrapTable:function(){$(this.element).bootstrapTable();$(this.element).trigger('post-body.bs.table');$(this.options.element.loader).hide();},extendChartjsLibrary:function(){var self=this;var originalBarDraw=Chart.controllers.bar.prototype.draw;Chart.helpers.extend(Chart.controllers.bar.prototype,{draw:function(){originalBarDraw.apply(this,arguments);var chart=this.chart;var scale=this.scale;var ctx=chart.chart.ctx;var xaxis=chart.scales['x-axis-0'];var yaxis=chart.scales['y-axis-0'];if(chart.config.options.hasOwnProperty('horizontal_line')&&chart.config.options.horizontal_line.enabled){var horizontal_line_value=this.getDataset().horizontal_line_value;var horizontal_line_color=this.getDataset().horizontal_line_color;jQuery.each(horizontal_line_value,function(index,value){var y=yaxis.getPixelForValue(value);ctx.save();ctx.beginPath();ctx.strokeStyle=horizontal_line_color[index];var lineWidth=2;if(chart.config.options.horizontal_line.hasOwnProperty('lineWidth')){lineWidth=chart.config.options.horizontal_line.lineWidth;} ctx.lineWidth=lineWidth;ctx.moveTo(xaxis.left,y);ctx.lineTo(xaxis.right,y);ctx.stroke();ctx.restore();});}}});Chart.defaults.lineWithLine=Chart.helpers.clone(Chart.defaults.line);Chart.controllers.lineWithLine=Chart.controllers.line.extend({draw:function(ease){Chart.controllers.line.prototype.draw.call(this,ease);var chart=this.chart;var scale=this.scale;var ctx=chart.chart.ctx;if(chart.config.data.hasOwnProperty('hline')&&chart.config.data.hline.enabled&&chart.config.data.hline.value!==null){var xaxis=chart.scales['x-axis-0'];var yaxis=chart.scales['y-axis-0'];var values=chart.config.data.hline.values;var colors=chart.config.data.hline.colors;if(values.constructor!==Array){values=[values];} if(colors.constructor!==Array){colors=[colors];} jQuery.each(values,function(index,value){var y=yaxis.getPixelForValue(value);ctx.save();ctx.beginPath();if(colors.length>index){ctx.strokeStyle=colors[index];}else{ctx.strokeStyle=colors[0];} diff --git a/js/datatable.js b/js/datatable.js index 713dbc3..bd542af 100644 --- a/js/datatable.js +++ b/js/datatable.js @@ -1219,15 +1219,17 @@ jQuery( document ).ready(function() { } // Add default sorter for columns marked sortable - $(this.element).find('thead tr th[data-sortable="true"]').each(function(){ + // Do not add a default sorter if one is already specified ! + $(this.element).find('thead tr th[data-sortable="true"]:not([data-sorter])').each(function(){ window['valueSorter'+self.uniqueId] = function (a, b){ return self.valueSorter(a, b, 'asc'); }; $(this).attr('data-sorter', 'valueSorter'+self.uniqueId); }); - // Add default sorter for columns marked sortable - $(this.element).find('thead tr th[data-reversed="true"]').each(function(){ + // Add default reverse sorter for columns marked sortable + // Do not add a default reverse sorter if one is already specified ! + $(this.element).find('thead tr th[data-reversed="true"]:not([data-sorter])').each(function(){ window['valueSorterReverse'+self.uniqueId] = function (a, b){ return self.valueSorter(a, b, 'desc'); }; @@ -3960,98 +3962,104 @@ jQuery( document ).ready(function() { $(this).attr('data-formatter', self.createInlineValueFormatter(value_type, index, $(that))); }else{ - switch(value_type){ - case 'numeric-unit': - window['valueFormatter_numeric_unit'+self.uniqueId] = function (value, row, index){ - if(jQuery.isNumeric(value)){ - value = parseFloat(value); - return self.addNumberPrefix(value); - - }else{ - return value; - } - }; - - $(this).attr('data-formatter', 'valueFormatter_numeric_unit'+self.uniqueId); - break; - - case 'html': - $(this).attr('data-formatter','valueFormatter_html'); - break; + // If a data formatter is already specified, do not override it + if(! $(this).attr('data-formatter')){ + switch(value_type){ + case 'numeric-unit': + window['valueFormatter_numeric_unit'+self.uniqueId] = function (value, row, index){ + if(jQuery.isNumeric(value)){ + value = parseFloat(value); + return self.addNumberPrefix(value); - case 'date': - $(this).attr('data-formatter','valueFormatter_date'); - break; - - case 'list': - $(this).attr('data-formatter','valueFormatter_list'); - break; - - case 'url': - window['valueFormatter_url'+self.uniqueId] = function (value, row, index){ - var links = []; - if(value.trim()){ - var items = value.split(','); - if(items.length > 0){ - for(var i=0;i'+link_title+''); - }else{ - links.push(''+self.options.icon.url+''); + }else{ + return value; + } + }; + + $(this).attr('data-formatter', 'valueFormatter_numeric_unit'+self.uniqueId); + break; + + case 'html': + $(this).attr('data-formatter','valueFormatter_html'); + break; + + case 'date': + $(this).attr('data-formatter','valueFormatter_date'); + break; + + case 'list': + $(this).attr('data-formatter','valueFormatter_list'); + break; + + case 'url': + window['valueFormatter_url'+self.uniqueId] = function (value, row, index){ + var links = []; + if(value.trim()){ + var items = value.split(','); + if(items.length > 0){ + for(var i=0;i'+link_title+''); + }else{ + links.push(''+self.options.icon.url+''); + } } } } - } - return links.join('
'); - }; - $(this).attr('data-formatter','valueFormatter_url'+self.uniqueId); - break; - - case 'ref': - window['valueFormatter_ref'+self.uniqueId] = function (value, row, index){ - var links = []; - if(value.trim()){ - var items = value.split(','); - if(items.length > 0){ - for(var i=0;i['+link_title+']'); - }else{ - links.push(''+self.options.icon.ref+''); + return links.join('
'); + }; + $(this).attr('data-formatter','valueFormatter_url'+self.uniqueId); + break; + + case 'ref': + window['valueFormatter_ref'+self.uniqueId] = function (value, row, index){ + var links = []; + if(value.trim()){ + var items = value.split(','); + if(items.length > 0){ + for(var i=0;i['+link_title+']'); + }else{ + links.push(''+self.options.icon.ref+''); + } } } } - } - return links.join('
'); - }; - $(this).attr('data-formatter','valueFormatter_ref'+self.uniqueId); - break; - - case 'anchor': - window['valueFormatter_anchor'+self.uniqueId] = function valueFormatter_anchor(value, row, index){ - if(value.trim()){ - return ''+self.options.icon.anchor+'' - }else{ - return value; - } - }; - $(this).attr('data-formatter', 'valueFormatter_anchor'+self.uniqueId); - break; - - default: - window['valueFormatter_hide'+self.uniqueId] = function (value, row, index){ - return '
Invalid data-value-type
'; - }; - $(this).attr('data-formatter', 'valueFormatter_hide'+self.uniqueId); - break; + return links.join('
'); + }; + $(this).attr('data-formatter','valueFormatter_ref'+self.uniqueId); + break; + + case 'anchor': + window['valueFormatter_anchor'+self.uniqueId] = function valueFormatter_anchor(value, row, index){ + if(value.trim()){ + return ''+self.options.icon.anchor+'' + }else{ + return value; + } + }; + $(this).attr('data-formatter', 'valueFormatter_anchor'+self.uniqueId); + break; + case 'str': + // Allow the str data format to specify its own data formatter function + break; + + default: + window['valueFormatter_hide'+self.uniqueId] = function (value, row, index){ + return '
Invalid data-value-type
'; + }; + $(this).attr('data-formatter', 'valueFormatter_hide'+self.uniqueId); + break; + } } } }); diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..0388c95 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +rcssmin +jsmin