datatables.net-bs4 1.12.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/dataTables.bootstrap4.css +6 -14
- package/css/dataTables.bootstrap4.min.css +1 -1
- package/js/dataTables.bootstrap4.js +24 -17
- package/js/dataTables.bootstrap4.min.js +4 -14
- package/js/dataTables.bootstrap4.min.mjs +4 -0
- package/js/dataTables.bootstrap4.mjs +155 -0
- package/package.json +5 -3
- package/types/types.d.ts +2589 -0
|
@@ -51,7 +51,7 @@ table.dataTable thead > tr > td.sorting_desc_disabled:after {
|
|
|
51
51
|
opacity: 0.125;
|
|
52
52
|
right: 10px;
|
|
53
53
|
line-height: 9px;
|
|
54
|
-
font-size: 0.
|
|
54
|
+
font-size: 0.8em;
|
|
55
55
|
}
|
|
56
56
|
table.dataTable thead > tr > th.sorting:before, table.dataTable thead > tr > th.sorting_asc:before, table.dataTable thead > tr > th.sorting_desc:before, table.dataTable thead > tr > th.sorting_asc_disabled:before, table.dataTable thead > tr > th.sorting_desc_disabled:before,
|
|
57
57
|
table.dataTable thead > tr > td.sorting:before,
|
|
@@ -60,7 +60,7 @@ table.dataTable thead > tr > td.sorting_desc:before,
|
|
|
60
60
|
table.dataTable thead > tr > td.sorting_asc_disabled:before,
|
|
61
61
|
table.dataTable thead > tr > td.sorting_desc_disabled:before {
|
|
62
62
|
bottom: 50%;
|
|
63
|
-
content: "
|
|
63
|
+
content: "▲";
|
|
64
64
|
}
|
|
65
65
|
table.dataTable thead > tr > th.sorting:after, table.dataTable thead > tr > th.sorting_asc:after, table.dataTable thead > tr > th.sorting_desc:after, table.dataTable thead > tr > th.sorting_asc_disabled:after, table.dataTable thead > tr > th.sorting_desc_disabled:after,
|
|
66
66
|
table.dataTable thead > tr > td.sorting:after,
|
|
@@ -69,7 +69,7 @@ table.dataTable thead > tr > td.sorting_desc:after,
|
|
|
69
69
|
table.dataTable thead > tr > td.sorting_asc_disabled:after,
|
|
70
70
|
table.dataTable thead > tr > td.sorting_desc_disabled:after {
|
|
71
71
|
top: 50%;
|
|
72
|
-
content: "
|
|
72
|
+
content: "▼";
|
|
73
73
|
}
|
|
74
74
|
table.dataTable thead > tr > th.sorting_asc:before, table.dataTable thead > tr > th.sorting_desc:after,
|
|
75
75
|
table.dataTable thead > tr > td.sorting_asc:before,
|
|
@@ -270,6 +270,9 @@ table.dataTable > tbody > tr.selected > * {
|
|
|
270
270
|
box-shadow: inset 0 0 0 9999px rgba(2, 117, 216, 0.9);
|
|
271
271
|
color: white;
|
|
272
272
|
}
|
|
273
|
+
table.dataTable > tbody > tr.selected a {
|
|
274
|
+
color: #090a0b;
|
|
275
|
+
}
|
|
273
276
|
table.dataTable.table-striped > tbody > tr.odd > * {
|
|
274
277
|
box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.05);
|
|
275
278
|
}
|
|
@@ -373,17 +376,6 @@ div.dataTables_wrapper div.dataTables_paginate {
|
|
|
373
376
|
table.dataTable.table-sm > thead > tr > th:not(.sorting_disabled) {
|
|
374
377
|
padding-right: 20px;
|
|
375
378
|
}
|
|
376
|
-
table.dataTable.table-sm .sorting:before,
|
|
377
|
-
table.dataTable.table-sm .sorting_asc:before,
|
|
378
|
-
table.dataTable.table-sm .sorting_desc:before {
|
|
379
|
-
top: 5px;
|
|
380
|
-
right: 0.85em;
|
|
381
|
-
}
|
|
382
|
-
table.dataTable.table-sm .sorting:after,
|
|
383
|
-
table.dataTable.table-sm .sorting_asc:after,
|
|
384
|
-
table.dataTable.table-sm .sorting_desc:after {
|
|
385
|
-
top: 5px;
|
|
386
|
-
}
|
|
387
379
|
|
|
388
380
|
table.table-bordered.dataTable {
|
|
389
381
|
border-right-width: 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
table.dataTable td.dt-control{text-align:center;cursor:pointer}table.dataTable td.dt-control:before{height:1em;width:1em;margin-top:-9px;display:inline-block;color:white;border:.15em solid white;border-radius:1em;box-shadow:0 0 .2em #444;box-sizing:content-box;text-align:center;text-indent:0 !important;font-family:"Courier New",Courier,monospace;line-height:1em;content:"+";background-color:#31b131}table.dataTable tr.dt-hasChild td.dt-control:before{content:"-";background-color:#d33333}table.dataTable thead>tr>th.sorting,table.dataTable thead>tr>th.sorting_asc,table.dataTable thead>tr>th.sorting_desc,table.dataTable thead>tr>th.sorting_asc_disabled,table.dataTable thead>tr>th.sorting_desc_disabled,table.dataTable thead>tr>td.sorting,table.dataTable thead>tr>td.sorting_asc,table.dataTable thead>tr>td.sorting_desc,table.dataTable thead>tr>td.sorting_asc_disabled,table.dataTable thead>tr>td.sorting_desc_disabled{cursor:pointer;position:relative;padding-right:26px}table.dataTable thead>tr>th.sorting:before,table.dataTable thead>tr>th.sorting:after,table.dataTable thead>tr>th.sorting_asc:before,table.dataTable thead>tr>th.sorting_asc:after,table.dataTable thead>tr>th.sorting_desc:before,table.dataTable thead>tr>th.sorting_desc:after,table.dataTable thead>tr>th.sorting_asc_disabled:before,table.dataTable thead>tr>th.sorting_asc_disabled:after,table.dataTable thead>tr>th.sorting_desc_disabled:before,table.dataTable thead>tr>th.sorting_desc_disabled:after,table.dataTable thead>tr>td.sorting:before,table.dataTable thead>tr>td.sorting:after,table.dataTable thead>tr>td.sorting_asc:before,table.dataTable thead>tr>td.sorting_asc:after,table.dataTable thead>tr>td.sorting_desc:before,table.dataTable thead>tr>td.sorting_desc:after,table.dataTable thead>tr>td.sorting_asc_disabled:before,table.dataTable thead>tr>td.sorting_asc_disabled:after,table.dataTable thead>tr>td.sorting_desc_disabled:before,table.dataTable thead>tr>td.sorting_desc_disabled:after{position:absolute;display:block;opacity:.125;right:10px;line-height:9px;font-size:.9em}table.dataTable thead>tr>th.sorting:before,table.dataTable thead>tr>th.sorting_asc:before,table.dataTable thead>tr>th.sorting_desc:before,table.dataTable thead>tr>th.sorting_asc_disabled:before,table.dataTable thead>tr>th.sorting_desc_disabled:before,table.dataTable thead>tr>td.sorting:before,table.dataTable thead>tr>td.sorting_asc:before,table.dataTable thead>tr>td.sorting_desc:before,table.dataTable thead>tr>td.sorting_asc_disabled:before,table.dataTable thead>tr>td.sorting_desc_disabled:before{bottom:50%;content:"▴"}table.dataTable thead>tr>th.sorting:after,table.dataTable thead>tr>th.sorting_asc:after,table.dataTable thead>tr>th.sorting_desc:after,table.dataTable thead>tr>th.sorting_asc_disabled:after,table.dataTable thead>tr>th.sorting_desc_disabled:after,table.dataTable thead>tr>td.sorting:after,table.dataTable thead>tr>td.sorting_asc:after,table.dataTable thead>tr>td.sorting_desc:after,table.dataTable thead>tr>td.sorting_asc_disabled:after,table.dataTable thead>tr>td.sorting_desc_disabled:after{top:50%;content:"▾"}table.dataTable thead>tr>th.sorting_asc:before,table.dataTable thead>tr>th.sorting_desc:after,table.dataTable thead>tr>td.sorting_asc:before,table.dataTable thead>tr>td.sorting_desc:after{opacity:.6}table.dataTable thead>tr>th.sorting_desc_disabled:after,table.dataTable thead>tr>th.sorting_asc_disabled:before,table.dataTable thead>tr>td.sorting_desc_disabled:after,table.dataTable thead>tr>td.sorting_asc_disabled:before{display:none}table.dataTable thead>tr>th:active,table.dataTable thead>tr>td:active{outline:none}div.dataTables_scrollBody table.dataTable thead>tr>th:before,div.dataTables_scrollBody table.dataTable thead>tr>th:after,div.dataTables_scrollBody table.dataTable thead>tr>td:before,div.dataTables_scrollBody table.dataTable thead>tr>td:after{display:none}div.dataTables_processing{position:absolute;top:50%;left:50%;width:200px;margin-left:-100px;margin-top:-26px;text-align:center;padding:2px}div.dataTables_processing>div:last-child{position:relative;width:80px;height:15px;margin:1em auto}div.dataTables_processing>div:last-child>div{position:absolute;top:0;width:13px;height:13px;border-radius:50%;background:rgba(2, 117, 216, 0.9);animation-timing-function:cubic-bezier(0, 1, 1, 0)}div.dataTables_processing>div:last-child>div:nth-child(1){left:8px;animation:datatables-loader-1 .6s infinite}div.dataTables_processing>div:last-child>div:nth-child(2){left:8px;animation:datatables-loader-2 .6s infinite}div.dataTables_processing>div:last-child>div:nth-child(3){left:32px;animation:datatables-loader-2 .6s infinite}div.dataTables_processing>div:last-child>div:nth-child(4){left:56px;animation:datatables-loader-3 .6s infinite}@keyframes datatables-loader-1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes datatables-loader-3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes datatables-loader-2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}table.dataTable th.dt-left,table.dataTable td.dt-left{text-align:left}table.dataTable th.dt-center,table.dataTable td.dt-center,table.dataTable td.dataTables_empty{text-align:center}table.dataTable th.dt-right,table.dataTable td.dt-right{text-align:right}table.dataTable th.dt-justify,table.dataTable td.dt-justify{text-align:justify}table.dataTable th.dt-nowrap,table.dataTable td.dt-nowrap{white-space:nowrap}table.dataTable thead th,table.dataTable thead td,table.dataTable tfoot th,table.dataTable tfoot td{text-align:left}table.dataTable thead th.dt-head-left,table.dataTable thead td.dt-head-left,table.dataTable tfoot th.dt-head-left,table.dataTable tfoot td.dt-head-left{text-align:left}table.dataTable thead th.dt-head-center,table.dataTable thead td.dt-head-center,table.dataTable tfoot th.dt-head-center,table.dataTable tfoot td.dt-head-center{text-align:center}table.dataTable thead th.dt-head-right,table.dataTable thead td.dt-head-right,table.dataTable tfoot th.dt-head-right,table.dataTable tfoot td.dt-head-right{text-align:right}table.dataTable thead th.dt-head-justify,table.dataTable thead td.dt-head-justify,table.dataTable tfoot th.dt-head-justify,table.dataTable tfoot td.dt-head-justify{text-align:justify}table.dataTable thead th.dt-head-nowrap,table.dataTable thead td.dt-head-nowrap,table.dataTable tfoot th.dt-head-nowrap,table.dataTable tfoot td.dt-head-nowrap{white-space:nowrap}table.dataTable tbody th.dt-body-left,table.dataTable tbody td.dt-body-left{text-align:left}table.dataTable tbody th.dt-body-center,table.dataTable tbody td.dt-body-center{text-align:center}table.dataTable tbody th.dt-body-right,table.dataTable tbody td.dt-body-right{text-align:right}table.dataTable tbody th.dt-body-justify,table.dataTable tbody td.dt-body-justify{text-align:justify}table.dataTable tbody th.dt-body-nowrap,table.dataTable tbody td.dt-body-nowrap{white-space:nowrap}table.dataTable{clear:both;margin-top:6px !important;margin-bottom:6px !important;max-width:none !important;border-collapse:separate !important;border-spacing:0}table.dataTable td,table.dataTable th{-webkit-box-sizing:content-box;box-sizing:content-box}table.dataTable td.dataTables_empty,table.dataTable th.dataTables_empty{text-align:center}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}table.dataTable.table-striped>tbody>tr:nth-of-type(2n+1){background-color:transparent}table.dataTable>tbody>tr{background-color:transparent}table.dataTable>tbody>tr.selected>*{box-shadow:inset 0 0 0 9999px rgba(2, 117, 216, 0.9);color:white}table.dataTable.table-striped>tbody>tr.odd>*{box-shadow:inset 0 0 0 9999px rgba(0, 0, 0, 0.05)}table.dataTable.table-striped>tbody>tr.odd.selected>*{box-shadow:inset 0 0 0 9999px rgba(2, 117, 216, 0.95)}table.dataTable.table-hover>tbody>tr:hover>*{box-shadow:inset 0 0 0 9999px rgba(0, 0, 0, 0.075)}table.dataTable.table-hover>tbody>tr.selected:hover>*{box-shadow:inset 0 0 0 9999px rgba(2, 117, 216, 0.975)}div.dataTables_wrapper div.dataTables_length label{font-weight:normal;text-align:left;white-space:nowrap}div.dataTables_wrapper div.dataTables_length select{width:auto;display:inline-block}div.dataTables_wrapper div.dataTables_filter{text-align:right}div.dataTables_wrapper div.dataTables_filter label{font-weight:normal;white-space:nowrap;text-align:left}div.dataTables_wrapper div.dataTables_filter input{margin-left:.5em;display:inline-block;width:auto}div.dataTables_wrapper div.dataTables_info{padding-top:.85em}div.dataTables_wrapper div.dataTables_paginate{margin:0;white-space:nowrap;text-align:right}div.dataTables_wrapper div.dataTables_paginate ul.pagination{margin:2px 0;white-space:nowrap;justify-content:flex-end}div.dataTables_wrapper div.dataTables_processing{position:absolute;top:50%;left:50%;width:200px;margin-left:-100px;margin-top:-26px;text-align:center;padding:1em 0}div.dataTables_scrollHead table.dataTable{margin-bottom:0 !important}div.dataTables_scrollBody>table{border-top:none;margin-top:0 !important;margin-bottom:0 !important}div.dataTables_scrollBody>table>thead .sorting:before,div.dataTables_scrollBody>table>thead .sorting_asc:before,div.dataTables_scrollBody>table>thead .sorting_desc:before,div.dataTables_scrollBody>table>thead .sorting:after,div.dataTables_scrollBody>table>thead .sorting_asc:after,div.dataTables_scrollBody>table>thead .sorting_desc:after{display:none}div.dataTables_scrollBody>table>tbody tr:first-child th,div.dataTables_scrollBody>table>tbody tr:first-child td{border-top:none}div.dataTables_scrollFoot>.dataTables_scrollFootInner{box-sizing:content-box}div.dataTables_scrollFoot>.dataTables_scrollFootInner>table{margin-top:0 !important;border-top:none}@media screen and (max-width: 767px){div.dataTables_wrapper div.dataTables_length,div.dataTables_wrapper div.dataTables_filter,div.dataTables_wrapper div.dataTables_info,div.dataTables_wrapper div.dataTables_paginate{text-align:center}div.dataTables_wrapper div.dataTables_paginate ul.pagination{justify-content:center !important}}table.dataTable.table-sm>thead>tr>th:not(.sorting_disabled){padding-right:20px}table.dataTable.table-sm .sorting:before,table.dataTable.table-sm .sorting_asc:before,table.dataTable.table-sm .sorting_desc:before{top:5px;right:.85em}table.dataTable.table-sm .sorting:after,table.dataTable.table-sm .sorting_asc:after,table.dataTable.table-sm .sorting_desc:after{top:5px}table.table-bordered.dataTable{border-right-width:0}table.table-bordered.dataTable th,table.table-bordered.dataTable td{border-left-width:0}table.table-bordered.dataTable th:last-child,table.table-bordered.dataTable th:last-child,table.table-bordered.dataTable td:last-child,table.table-bordered.dataTable td:last-child{border-right-width:1px}table.table-bordered.dataTable tbody th,table.table-bordered.dataTable tbody td{border-bottom-width:0}div.dataTables_scrollHead table.table-bordered{border-bottom-width:0}div.table-responsive>div.dataTables_wrapper>div.row{margin:0}div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:first-child{padding-left:0}div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:last-child{padding-right:0}
|
|
1
|
+
table.dataTable td.dt-control{text-align:center;cursor:pointer}table.dataTable td.dt-control:before{height:1em;width:1em;margin-top:-9px;display:inline-block;color:white;border:.15em solid white;border-radius:1em;box-shadow:0 0 .2em #444;box-sizing:content-box;text-align:center;text-indent:0 !important;font-family:"Courier New",Courier,monospace;line-height:1em;content:"+";background-color:#31b131}table.dataTable tr.dt-hasChild td.dt-control:before{content:"-";background-color:#d33333}table.dataTable thead>tr>th.sorting,table.dataTable thead>tr>th.sorting_asc,table.dataTable thead>tr>th.sorting_desc,table.dataTable thead>tr>th.sorting_asc_disabled,table.dataTable thead>tr>th.sorting_desc_disabled,table.dataTable thead>tr>td.sorting,table.dataTable thead>tr>td.sorting_asc,table.dataTable thead>tr>td.sorting_desc,table.dataTable thead>tr>td.sorting_asc_disabled,table.dataTable thead>tr>td.sorting_desc_disabled{cursor:pointer;position:relative;padding-right:26px}table.dataTable thead>tr>th.sorting:before,table.dataTable thead>tr>th.sorting:after,table.dataTable thead>tr>th.sorting_asc:before,table.dataTable thead>tr>th.sorting_asc:after,table.dataTable thead>tr>th.sorting_desc:before,table.dataTable thead>tr>th.sorting_desc:after,table.dataTable thead>tr>th.sorting_asc_disabled:before,table.dataTable thead>tr>th.sorting_asc_disabled:after,table.dataTable thead>tr>th.sorting_desc_disabled:before,table.dataTable thead>tr>th.sorting_desc_disabled:after,table.dataTable thead>tr>td.sorting:before,table.dataTable thead>tr>td.sorting:after,table.dataTable thead>tr>td.sorting_asc:before,table.dataTable thead>tr>td.sorting_asc:after,table.dataTable thead>tr>td.sorting_desc:before,table.dataTable thead>tr>td.sorting_desc:after,table.dataTable thead>tr>td.sorting_asc_disabled:before,table.dataTable thead>tr>td.sorting_asc_disabled:after,table.dataTable thead>tr>td.sorting_desc_disabled:before,table.dataTable thead>tr>td.sorting_desc_disabled:after{position:absolute;display:block;opacity:.125;right:10px;line-height:9px;font-size:.8em}table.dataTable thead>tr>th.sorting:before,table.dataTable thead>tr>th.sorting_asc:before,table.dataTable thead>tr>th.sorting_desc:before,table.dataTable thead>tr>th.sorting_asc_disabled:before,table.dataTable thead>tr>th.sorting_desc_disabled:before,table.dataTable thead>tr>td.sorting:before,table.dataTable thead>tr>td.sorting_asc:before,table.dataTable thead>tr>td.sorting_desc:before,table.dataTable thead>tr>td.sorting_asc_disabled:before,table.dataTable thead>tr>td.sorting_desc_disabled:before{bottom:50%;content:"▲"}table.dataTable thead>tr>th.sorting:after,table.dataTable thead>tr>th.sorting_asc:after,table.dataTable thead>tr>th.sorting_desc:after,table.dataTable thead>tr>th.sorting_asc_disabled:after,table.dataTable thead>tr>th.sorting_desc_disabled:after,table.dataTable thead>tr>td.sorting:after,table.dataTable thead>tr>td.sorting_asc:after,table.dataTable thead>tr>td.sorting_desc:after,table.dataTable thead>tr>td.sorting_asc_disabled:after,table.dataTable thead>tr>td.sorting_desc_disabled:after{top:50%;content:"▼"}table.dataTable thead>tr>th.sorting_asc:before,table.dataTable thead>tr>th.sorting_desc:after,table.dataTable thead>tr>td.sorting_asc:before,table.dataTable thead>tr>td.sorting_desc:after{opacity:.6}table.dataTable thead>tr>th.sorting_desc_disabled:after,table.dataTable thead>tr>th.sorting_asc_disabled:before,table.dataTable thead>tr>td.sorting_desc_disabled:after,table.dataTable thead>tr>td.sorting_asc_disabled:before{display:none}table.dataTable thead>tr>th:active,table.dataTable thead>tr>td:active{outline:none}div.dataTables_scrollBody table.dataTable thead>tr>th:before,div.dataTables_scrollBody table.dataTable thead>tr>th:after,div.dataTables_scrollBody table.dataTable thead>tr>td:before,div.dataTables_scrollBody table.dataTable thead>tr>td:after{display:none}div.dataTables_processing{position:absolute;top:50%;left:50%;width:200px;margin-left:-100px;margin-top:-26px;text-align:center;padding:2px}div.dataTables_processing>div:last-child{position:relative;width:80px;height:15px;margin:1em auto}div.dataTables_processing>div:last-child>div{position:absolute;top:0;width:13px;height:13px;border-radius:50%;background:rgba(2, 117, 216, 0.9);animation-timing-function:cubic-bezier(0, 1, 1, 0)}div.dataTables_processing>div:last-child>div:nth-child(1){left:8px;animation:datatables-loader-1 .6s infinite}div.dataTables_processing>div:last-child>div:nth-child(2){left:8px;animation:datatables-loader-2 .6s infinite}div.dataTables_processing>div:last-child>div:nth-child(3){left:32px;animation:datatables-loader-2 .6s infinite}div.dataTables_processing>div:last-child>div:nth-child(4){left:56px;animation:datatables-loader-3 .6s infinite}@keyframes datatables-loader-1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes datatables-loader-3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes datatables-loader-2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}table.dataTable th.dt-left,table.dataTable td.dt-left{text-align:left}table.dataTable th.dt-center,table.dataTable td.dt-center,table.dataTable td.dataTables_empty{text-align:center}table.dataTable th.dt-right,table.dataTable td.dt-right{text-align:right}table.dataTable th.dt-justify,table.dataTable td.dt-justify{text-align:justify}table.dataTable th.dt-nowrap,table.dataTable td.dt-nowrap{white-space:nowrap}table.dataTable thead th,table.dataTable thead td,table.dataTable tfoot th,table.dataTable tfoot td{text-align:left}table.dataTable thead th.dt-head-left,table.dataTable thead td.dt-head-left,table.dataTable tfoot th.dt-head-left,table.dataTable tfoot td.dt-head-left{text-align:left}table.dataTable thead th.dt-head-center,table.dataTable thead td.dt-head-center,table.dataTable tfoot th.dt-head-center,table.dataTable tfoot td.dt-head-center{text-align:center}table.dataTable thead th.dt-head-right,table.dataTable thead td.dt-head-right,table.dataTable tfoot th.dt-head-right,table.dataTable tfoot td.dt-head-right{text-align:right}table.dataTable thead th.dt-head-justify,table.dataTable thead td.dt-head-justify,table.dataTable tfoot th.dt-head-justify,table.dataTable tfoot td.dt-head-justify{text-align:justify}table.dataTable thead th.dt-head-nowrap,table.dataTable thead td.dt-head-nowrap,table.dataTable tfoot th.dt-head-nowrap,table.dataTable tfoot td.dt-head-nowrap{white-space:nowrap}table.dataTable tbody th.dt-body-left,table.dataTable tbody td.dt-body-left{text-align:left}table.dataTable tbody th.dt-body-center,table.dataTable tbody td.dt-body-center{text-align:center}table.dataTable tbody th.dt-body-right,table.dataTable tbody td.dt-body-right{text-align:right}table.dataTable tbody th.dt-body-justify,table.dataTable tbody td.dt-body-justify{text-align:justify}table.dataTable tbody th.dt-body-nowrap,table.dataTable tbody td.dt-body-nowrap{white-space:nowrap}table.dataTable{clear:both;margin-top:6px !important;margin-bottom:6px !important;max-width:none !important;border-collapse:separate !important;border-spacing:0}table.dataTable td,table.dataTable th{-webkit-box-sizing:content-box;box-sizing:content-box}table.dataTable td.dataTables_empty,table.dataTable th.dataTables_empty{text-align:center}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}table.dataTable.table-striped>tbody>tr:nth-of-type(2n+1){background-color:transparent}table.dataTable>tbody>tr{background-color:transparent}table.dataTable>tbody>tr.selected>*{box-shadow:inset 0 0 0 9999px rgba(2, 117, 216, 0.9);color:white}table.dataTable>tbody>tr.selected a{color:#090a0b}table.dataTable.table-striped>tbody>tr.odd>*{box-shadow:inset 0 0 0 9999px rgba(0, 0, 0, 0.05)}table.dataTable.table-striped>tbody>tr.odd.selected>*{box-shadow:inset 0 0 0 9999px rgba(2, 117, 216, 0.95)}table.dataTable.table-hover>tbody>tr:hover>*{box-shadow:inset 0 0 0 9999px rgba(0, 0, 0, 0.075)}table.dataTable.table-hover>tbody>tr.selected:hover>*{box-shadow:inset 0 0 0 9999px rgba(2, 117, 216, 0.975)}div.dataTables_wrapper div.dataTables_length label{font-weight:normal;text-align:left;white-space:nowrap}div.dataTables_wrapper div.dataTables_length select{width:auto;display:inline-block}div.dataTables_wrapper div.dataTables_filter{text-align:right}div.dataTables_wrapper div.dataTables_filter label{font-weight:normal;white-space:nowrap;text-align:left}div.dataTables_wrapper div.dataTables_filter input{margin-left:.5em;display:inline-block;width:auto}div.dataTables_wrapper div.dataTables_info{padding-top:.85em}div.dataTables_wrapper div.dataTables_paginate{margin:0;white-space:nowrap;text-align:right}div.dataTables_wrapper div.dataTables_paginate ul.pagination{margin:2px 0;white-space:nowrap;justify-content:flex-end}div.dataTables_wrapper div.dataTables_processing{position:absolute;top:50%;left:50%;width:200px;margin-left:-100px;margin-top:-26px;text-align:center;padding:1em 0}div.dataTables_scrollHead table.dataTable{margin-bottom:0 !important}div.dataTables_scrollBody>table{border-top:none;margin-top:0 !important;margin-bottom:0 !important}div.dataTables_scrollBody>table>thead .sorting:before,div.dataTables_scrollBody>table>thead .sorting_asc:before,div.dataTables_scrollBody>table>thead .sorting_desc:before,div.dataTables_scrollBody>table>thead .sorting:after,div.dataTables_scrollBody>table>thead .sorting_asc:after,div.dataTables_scrollBody>table>thead .sorting_desc:after{display:none}div.dataTables_scrollBody>table>tbody tr:first-child th,div.dataTables_scrollBody>table>tbody tr:first-child td{border-top:none}div.dataTables_scrollFoot>.dataTables_scrollFootInner{box-sizing:content-box}div.dataTables_scrollFoot>.dataTables_scrollFootInner>table{margin-top:0 !important;border-top:none}@media screen and (max-width: 767px){div.dataTables_wrapper div.dataTables_length,div.dataTables_wrapper div.dataTables_filter,div.dataTables_wrapper div.dataTables_info,div.dataTables_wrapper div.dataTables_paginate{text-align:center}div.dataTables_wrapper div.dataTables_paginate ul.pagination{justify-content:center !important}}table.dataTable.table-sm>thead>tr>th:not(.sorting_disabled){padding-right:20px}table.table-bordered.dataTable{border-right-width:0}table.table-bordered.dataTable th,table.table-bordered.dataTable td{border-left-width:0}table.table-bordered.dataTable th:last-child,table.table-bordered.dataTable th:last-child,table.table-bordered.dataTable td:last-child,table.table-bordered.dataTable td:last-child{border-right-width:1px}table.table-bordered.dataTable tbody th,table.table-bordered.dataTable tbody td{border-bottom-width:0}div.dataTables_scrollHead table.table-bordered{border-bottom-width:0}div.table-responsive>div.dataTables_wrapper>div.row{margin:0}div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:first-child{padding-left:0}div.table-responsive>div.dataTables_wrapper>div.row>div[class^=col-]:last-child{padding-right:0}
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
+
|
|
1
2
|
/*! DataTables Bootstrap 4 integration
|
|
2
3
|
* ©2011-2017 SpryMedia Ltd - datatables.net/license
|
|
3
4
|
*/
|
|
4
5
|
|
|
5
|
-
/**
|
|
6
|
-
* DataTables integration for Bootstrap 4. This requires Bootstrap 4 and
|
|
7
|
-
* DataTables 1.10 or newer.
|
|
8
|
-
*
|
|
9
|
-
* This file sets the defaults and adds options to DataTables to style its
|
|
10
|
-
* controls using Bootstrap. See http://datatables.net/manual/styling/bootstrap
|
|
11
|
-
* for further information.
|
|
12
|
-
*/
|
|
13
6
|
(function( factory ){
|
|
14
7
|
if ( typeof define === 'function' && define.amd ) {
|
|
15
8
|
// AMD
|
|
@@ -21,16 +14,22 @@
|
|
|
21
14
|
// CommonJS
|
|
22
15
|
module.exports = function (root, $) {
|
|
23
16
|
if ( ! root ) {
|
|
17
|
+
// CommonJS environments without a window global must pass a
|
|
18
|
+
// root. This will give an error otherwise
|
|
24
19
|
root = window;
|
|
25
20
|
}
|
|
26
21
|
|
|
27
|
-
if ( ! $
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
$ = require('datatables.net')(root, $).$;
|
|
22
|
+
if ( ! $ ) {
|
|
23
|
+
$ = typeof window !== 'undefined' ? // jQuery's factory checks for a global window
|
|
24
|
+
require('jquery') :
|
|
25
|
+
require('jquery')( root );
|
|
32
26
|
}
|
|
33
27
|
|
|
28
|
+
if ( ! $.fn.dataTable ) {
|
|
29
|
+
require('datatables.net')(root, $);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
34
33
|
return factory( $, root, root.document );
|
|
35
34
|
};
|
|
36
35
|
}
|
|
@@ -43,6 +42,16 @@
|
|
|
43
42
|
var DataTable = $.fn.dataTable;
|
|
44
43
|
|
|
45
44
|
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* DataTables integration for Bootstrap 4. This requires Bootstrap 4 and
|
|
48
|
+
* DataTables 1.10 or newer.
|
|
49
|
+
*
|
|
50
|
+
* This file sets the defaults and adds options to DataTables to style its
|
|
51
|
+
* controls using Bootstrap. See http://datatables.net/manual/styling/bootstrap
|
|
52
|
+
* for further information.
|
|
53
|
+
*/
|
|
54
|
+
|
|
46
55
|
/* Set the defaults for DataTables initialisation */
|
|
47
56
|
$.extend( true, DataTable.defaults, {
|
|
48
57
|
dom:
|
|
@@ -69,7 +78,7 @@ DataTable.ext.renderer.pageButton.bootstrap = function ( settings, host, idx, bu
|
|
|
69
78
|
var classes = settings.oClasses;
|
|
70
79
|
var lang = settings.oLanguage.oPaginate;
|
|
71
80
|
var aria = settings.oLanguage.oAria.paginate || {};
|
|
72
|
-
var btnDisplay, btnClass
|
|
81
|
+
var btnDisplay, btnClass;
|
|
73
82
|
|
|
74
83
|
var attach = function( container, buttons ) {
|
|
75
84
|
var i, ien, node, button;
|
|
@@ -138,7 +147,7 @@ DataTable.ext.renderer.pageButton.bootstrap = function ( settings, host, idx, bu
|
|
|
138
147
|
'href': '#',
|
|
139
148
|
'aria-controls': settings.sTableId,
|
|
140
149
|
'aria-label': aria[ button ],
|
|
141
|
-
'data-dt-idx':
|
|
150
|
+
'data-dt-idx': button,
|
|
142
151
|
'tabindex': settings.iTabIndex,
|
|
143
152
|
'class': 'page-link'
|
|
144
153
|
} )
|
|
@@ -149,8 +158,6 @@ DataTable.ext.renderer.pageButton.bootstrap = function ( settings, host, idx, bu
|
|
|
149
158
|
settings.oApi._fnBindAction(
|
|
150
159
|
node, {action: button}, clickHandler
|
|
151
160
|
);
|
|
152
|
-
|
|
153
|
-
counter++;
|
|
154
161
|
}
|
|
155
162
|
}
|
|
156
163
|
}
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,b,c){a instanceof String&&(a=String(a));for(var e=a.length,d=0;d<e;d++){var f=a[d];if(b.call(c,f,d,a))return{i:d,v:f}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;
|
|
6
|
-
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
|
|
7
|
-
$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,b){var c=$jscomp.propertyToPolyfillSymbol[b];if(null==c)return a[b];c=a[c];return void 0!==c?c:a[b]};
|
|
8
|
-
$jscomp.polyfill=function(a,b,c,e){b&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,b,c,e):$jscomp.polyfillUnisolated(a,b,c,e))};$jscomp.polyfillUnisolated=function(a,b,c,e){c=$jscomp.global;a=a.split(".");for(e=0;e<a.length-1;e++){var d=a[e];if(!(d in c))return;c=c[d]}a=a[a.length-1];e=c[a];b=b(e);b!=e&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})};
|
|
9
|
-
$jscomp.polyfillIsolated=function(a,b,c,e){var d=a.split(".");a=1===d.length;e=d[0];e=!a&&e in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var f=0;f<d.length-1;f++){var l=d[f];if(!(l in e))return;e=e[l]}d=d[d.length-1];c=$jscomp.IS_SYMBOL_NATIVE&&"es6"===c?e[d]:null;b=b(c);null!=b&&(a?$jscomp.defineProperty($jscomp.polyfills,d,{configurable:!0,writable:!0,value:b}):b!==c&&($jscomp.propertyToPolyfillSymbol[d]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(d):$jscomp.POLYFILL_PREFIX+d,d=
|
|
10
|
-
$jscomp.propertyToPolyfillSymbol[d],$jscomp.defineProperty(e,d,{configurable:!0,writable:!0,value:b})))};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(b,c){return $jscomp.findInternal(this,b,c).v}},"es6","es3");
|
|
11
|
-
(function(a){"function"===typeof define&&define.amd?define(["jquery","datatables.net"],function(b){return a(b,window,document)}):"object"===typeof exports?module.exports=function(b,c){b||(b=window);c&&c.fn.dataTable||(c=require("datatables.net")(b,c).$);return a(c,b,b.document)}:a(jQuery,window,document)})(function(a,b,c,e){var d=a.fn.dataTable;a.extend(!0,d.defaults,{dom:"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",
|
|
12
|
-
renderer:"bootstrap"});a.extend(d.ext.classes,{sWrapper:"dataTables_wrapper dt-bootstrap4",sFilterInput:"form-control form-control-sm",sLengthSelect:"custom-select custom-select-sm form-control form-control-sm",sProcessing:"dataTables_processing card",sPageButton:"paginate_button page-item"});d.ext.renderer.pageButton.bootstrap=function(f,l,A,B,m,t){var u=new d.Api(f),C=f.oClasses,n=f.oLanguage.oPaginate,D=f.oLanguage.oAria.paginate||{},h,k,v=0,y=function(q,w){var x,E=function(p){p.preventDefault();
|
|
13
|
-
a(p.currentTarget).hasClass("disabled")||u.page()==p.data.action||u.page(p.data.action).draw("page")};var r=0;for(x=w.length;r<x;r++){var g=w[r];if(Array.isArray(g))y(q,g);else{k=h="";switch(g){case "ellipsis":h="…";k="disabled";break;case "first":h=n.sFirst;k=g+(0<m?"":" disabled");break;case "previous":h=n.sPrevious;k=g+(0<m?"":" disabled");break;case "next":h=n.sNext;k=g+(m<t-1?"":" disabled");break;case "last":h=n.sLast;k=g+(m<t-1?"":" disabled");break;default:h=g+1,k=m===g?"active":""}if(h){var F=
|
|
14
|
-
a("<li>",{"class":C.sPageButton+" "+k,id:0===A&&"string"===typeof g?f.sTableId+"_"+g:null}).append(a("<a>",{href:"#","aria-controls":f.sTableId,"aria-label":D[g],"data-dt-idx":v,tabindex:f.iTabIndex,"class":"page-link"}).html(h)).appendTo(q);f.oApi._fnBindAction(F,{action:g},E);v++}}}};try{var z=a(l).find(c.activeElement).data("dt-idx")}catch(q){}y(a(l).empty().html('<ul class="pagination"/>').children("ul"),B);z!==e&&a(l).find("[data-dt-idx="+z+"]").trigger("focus")};return d});
|
|
1
|
+
/*! DataTables Bootstrap 4 integration
|
|
2
|
+
* ©2011-2017 SpryMedia Ltd - datatables.net/license
|
|
3
|
+
*/
|
|
4
|
+
!function(t){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?module.exports=function(e,a){return e=e||window,(a=a||("undefined"!=typeof window?require("jquery"):require("jquery")(e))).fn.dataTable||require("datatables.net")(e,a),t(a,0,e.document)}:t(jQuery,window,document)}(function(x,e,n,o){"use strict";var r=x.fn.dataTable;return x.extend(!0,r.defaults,{dom:"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",renderer:"bootstrap"}),x.extend(r.ext.classes,{sWrapper:"dataTables_wrapper dt-bootstrap4",sFilterInput:"form-control form-control-sm",sLengthSelect:"custom-select custom-select-sm form-control form-control-sm",sProcessing:"dataTables_processing card",sPageButton:"paginate_button page-item"}),r.ext.renderer.pageButton.bootstrap=function(i,e,d,a,l,c){function u(e,a){for(var t,n,o=function(e){e.preventDefault(),x(e.currentTarget).hasClass("disabled")||m.page()==e.data.action||m.page(e.data.action).draw("page")},r=0,s=a.length;r<s;r++)if(n=a[r],Array.isArray(n))u(e,n);else{switch(f=p="",n){case"ellipsis":p="…",f="disabled";break;case"first":p=g.sFirst,f=n+(0<l?"":" disabled");break;case"previous":p=g.sPrevious,f=n+(0<l?"":" disabled");break;case"next":p=g.sNext,f=n+(l<c-1?"":" disabled");break;case"last":p=g.sLast,f=n+(l<c-1?"":" disabled");break;default:p=n+1,f=l===n?"active":""}p&&(t=x("<li>",{class:b.sPageButton+" "+f,id:0===d&&"string"==typeof n?i.sTableId+"_"+n:null}).append(x("<a>",{href:"#","aria-controls":i.sTableId,"aria-label":w[n],"data-dt-idx":n,tabindex:i.iTabIndex,class:"page-link"}).html(p)).appendTo(e),i.oApi._fnBindAction(t,{action:n},o))}}var p,f,t,m=new r.Api(i),b=i.oClasses,g=i.oLanguage.oPaginate,w=i.oLanguage.oAria.paginate||{};try{t=x(e).find(n.activeElement).data("dt-idx")}catch(e){}u(x(e).empty().html('<ul class="pagination"/>').children("ul"),a),t!==o&&x(e).find("[data-dt-idx="+t+"]").trigger("focus")},r});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! DataTables Bootstrap 4 integration
|
|
2
|
+
* ©2011-2017 SpryMedia Ltd - datatables.net/license
|
|
3
|
+
*/
|
|
4
|
+
import $ from"jquery";import DataTable from"datatables.net";$.extend(!0,DataTable.defaults,{dom:"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",renderer:"bootstrap"}),$.extend(DataTable.ext.classes,{sWrapper:"dataTables_wrapper dt-bootstrap4",sFilterInput:"form-control form-control-sm",sLengthSelect:"custom-select custom-select-sm form-control form-control-sm",sProcessing:"dataTables_processing card",sPageButton:"paginate_button page-item"}),DataTable.ext.renderer.pageButton.bootstrap=function(i,a,d,e,n,c){function p(a,e){function t(a){a.preventDefault(),$(a.currentTarget).hasClass("disabled")||u.page()==a.data.action||u.page(a.data.action).draw("page")}for(var s,o,r=0,l=e.length;r<l;r++)if(o=e[r],Array.isArray(o))p(a,o);else{switch(m=b="",o){case"ellipsis":b="…",m="disabled";break;case"first":b=f.sFirst,m=o+(0<n?"":" disabled");break;case"previous":b=f.sPrevious,m=o+(0<n?"":" disabled");break;case"next":b=f.sNext,m=o+(n<c-1?"":" disabled");break;case"last":b=f.sLast,m=o+(n<c-1?"":" disabled");break;default:b=o+1,m=n===o?"active":""}b&&(s=$("<li>",{class:g.sPageButton+" "+m,id:0===d&&"string"==typeof o?i.sTableId+"_"+o:null}).append($("<a>",{href:"#","aria-controls":i.sTableId,"aria-label":x[o],"data-dt-idx":o,tabindex:i.iTabIndex,class:"page-link"}).html(b)).appendTo(a),i.oApi._fnBindAction(s,{action:o},t))}}var b,m,t,u=new DataTable.Api(i),g=i.oClasses,f=i.oLanguage.oPaginate,x=i.oLanguage.oAria.paginate||{};try{t=$(a).find(document.activeElement).data("dt-idx")}catch(a){}p($(a).empty().html('<ul class="pagination"/>').children("ul"),e),void 0!==t&&$(a).find("[data-dt-idx="+t+"]").trigger("focus")};export default DataTable;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
|
|
2
|
+
/*! DataTables Bootstrap 4 integration
|
|
3
|
+
* ©2011-2017 SpryMedia Ltd - datatables.net/license
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import $ from 'jquery';
|
|
7
|
+
import DataTable from 'datatables.net';
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* DataTables integration for Bootstrap 4. This requires Bootstrap 4 and
|
|
13
|
+
* DataTables 1.10 or newer.
|
|
14
|
+
*
|
|
15
|
+
* This file sets the defaults and adds options to DataTables to style its
|
|
16
|
+
* controls using Bootstrap. See http://datatables.net/manual/styling/bootstrap
|
|
17
|
+
* for further information.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/* Set the defaults for DataTables initialisation */
|
|
21
|
+
$.extend( true, DataTable.defaults, {
|
|
22
|
+
dom:
|
|
23
|
+
"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>>" +
|
|
24
|
+
"<'row'<'col-sm-12'tr>>" +
|
|
25
|
+
"<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",
|
|
26
|
+
renderer: 'bootstrap'
|
|
27
|
+
} );
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
/* Default class modification */
|
|
31
|
+
$.extend( DataTable.ext.classes, {
|
|
32
|
+
sWrapper: "dataTables_wrapper dt-bootstrap4",
|
|
33
|
+
sFilterInput: "form-control form-control-sm",
|
|
34
|
+
sLengthSelect: "custom-select custom-select-sm form-control form-control-sm",
|
|
35
|
+
sProcessing: "dataTables_processing card",
|
|
36
|
+
sPageButton: "paginate_button page-item"
|
|
37
|
+
} );
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
/* Bootstrap paging button renderer */
|
|
41
|
+
DataTable.ext.renderer.pageButton.bootstrap = function ( settings, host, idx, buttons, page, pages ) {
|
|
42
|
+
var api = new DataTable.Api( settings );
|
|
43
|
+
var classes = settings.oClasses;
|
|
44
|
+
var lang = settings.oLanguage.oPaginate;
|
|
45
|
+
var aria = settings.oLanguage.oAria.paginate || {};
|
|
46
|
+
var btnDisplay, btnClass;
|
|
47
|
+
|
|
48
|
+
var attach = function( container, buttons ) {
|
|
49
|
+
var i, ien, node, button;
|
|
50
|
+
var clickHandler = function ( e ) {
|
|
51
|
+
e.preventDefault();
|
|
52
|
+
if ( !$(e.currentTarget).hasClass('disabled') && api.page() != e.data.action ) {
|
|
53
|
+
api.page( e.data.action ).draw( 'page' );
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
for ( i=0, ien=buttons.length ; i<ien ; i++ ) {
|
|
58
|
+
button = buttons[i];
|
|
59
|
+
|
|
60
|
+
if ( Array.isArray( button ) ) {
|
|
61
|
+
attach( container, button );
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
btnDisplay = '';
|
|
65
|
+
btnClass = '';
|
|
66
|
+
|
|
67
|
+
switch ( button ) {
|
|
68
|
+
case 'ellipsis':
|
|
69
|
+
btnDisplay = '…';
|
|
70
|
+
btnClass = 'disabled';
|
|
71
|
+
break;
|
|
72
|
+
|
|
73
|
+
case 'first':
|
|
74
|
+
btnDisplay = lang.sFirst;
|
|
75
|
+
btnClass = button + (page > 0 ?
|
|
76
|
+
'' : ' disabled');
|
|
77
|
+
break;
|
|
78
|
+
|
|
79
|
+
case 'previous':
|
|
80
|
+
btnDisplay = lang.sPrevious;
|
|
81
|
+
btnClass = button + (page > 0 ?
|
|
82
|
+
'' : ' disabled');
|
|
83
|
+
break;
|
|
84
|
+
|
|
85
|
+
case 'next':
|
|
86
|
+
btnDisplay = lang.sNext;
|
|
87
|
+
btnClass = button + (page < pages-1 ?
|
|
88
|
+
'' : ' disabled');
|
|
89
|
+
break;
|
|
90
|
+
|
|
91
|
+
case 'last':
|
|
92
|
+
btnDisplay = lang.sLast;
|
|
93
|
+
btnClass = button + (page < pages-1 ?
|
|
94
|
+
'' : ' disabled');
|
|
95
|
+
break;
|
|
96
|
+
|
|
97
|
+
default:
|
|
98
|
+
btnDisplay = button + 1;
|
|
99
|
+
btnClass = page === button ?
|
|
100
|
+
'active' : '';
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if ( btnDisplay ) {
|
|
105
|
+
node = $('<li>', {
|
|
106
|
+
'class': classes.sPageButton+' '+btnClass,
|
|
107
|
+
'id': idx === 0 && typeof button === 'string' ?
|
|
108
|
+
settings.sTableId +'_'+ button :
|
|
109
|
+
null
|
|
110
|
+
} )
|
|
111
|
+
.append( $('<a>', {
|
|
112
|
+
'href': '#',
|
|
113
|
+
'aria-controls': settings.sTableId,
|
|
114
|
+
'aria-label': aria[ button ],
|
|
115
|
+
'data-dt-idx': button,
|
|
116
|
+
'tabindex': settings.iTabIndex,
|
|
117
|
+
'class': 'page-link'
|
|
118
|
+
} )
|
|
119
|
+
.html( btnDisplay )
|
|
120
|
+
)
|
|
121
|
+
.appendTo( container );
|
|
122
|
+
|
|
123
|
+
settings.oApi._fnBindAction(
|
|
124
|
+
node, {action: button}, clickHandler
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
// IE9 throws an 'unknown error' if document.activeElement is used
|
|
132
|
+
// inside an iframe or frame.
|
|
133
|
+
var activeEl;
|
|
134
|
+
|
|
135
|
+
try {
|
|
136
|
+
// Because this approach is destroying and recreating the paging
|
|
137
|
+
// elements, focus is lost on the select button which is bad for
|
|
138
|
+
// accessibility. So we want to restore focus once the draw has
|
|
139
|
+
// completed
|
|
140
|
+
activeEl = $(host).find(document.activeElement).data('dt-idx');
|
|
141
|
+
}
|
|
142
|
+
catch (e) {}
|
|
143
|
+
|
|
144
|
+
attach(
|
|
145
|
+
$(host).empty().html('<ul class="pagination"/>').children('ul'),
|
|
146
|
+
buttons
|
|
147
|
+
);
|
|
148
|
+
|
|
149
|
+
if ( activeEl !== undefined ) {
|
|
150
|
+
$(host).find( '[data-dt-idx='+activeEl+']' ).trigger('focus');
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
export default DataTable;
|
package/package.json
CHANGED
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
"name": "datatables.net-bs4",
|
|
3
3
|
"description": "DataTables for jQuery with styling for [Bootstrap4](https://getbootstrap.com/docs/4.6/getting-started/introduction/)",
|
|
4
4
|
"main": "js/dataTables.bootstrap4.js",
|
|
5
|
+
"module": "js/dataTables.bootstrap4.mjs",
|
|
5
6
|
"style": "css/dataTables.bootstrap4.css",
|
|
6
|
-
"types": "./types/
|
|
7
|
-
"version": "1.
|
|
7
|
+
"types": "./types/types.d.ts",
|
|
8
|
+
"version": "1.13.0",
|
|
8
9
|
"files": [
|
|
9
10
|
"css/**/*.css",
|
|
10
11
|
"js/**/*.js",
|
|
12
|
+
"js/**/*.mjs",
|
|
11
13
|
"types/**/*.d.ts",
|
|
12
14
|
"images/*"
|
|
13
15
|
],
|
|
@@ -21,7 +23,7 @@
|
|
|
21
23
|
"sort"
|
|
22
24
|
],
|
|
23
25
|
"dependencies": {
|
|
24
|
-
"datatables.net": ">=1.
|
|
26
|
+
"datatables.net": ">=1.12.1",
|
|
25
27
|
"jquery": ">=1.7"
|
|
26
28
|
},
|
|
27
29
|
"moduleType": [
|