Skip to content

Commit 463cb7c

Browse files
Add files via upload
1 parent f2c41d1 commit 463cb7c

8 files changed

+3772
-0
lines changed
Loading
Loading

resources/js/Bootstrap-DataTables.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
var mSortingString = [];
2+
var disableSortingColumn = 4;
3+
mSortingString.push({ "bSortable": false, "aTargets": [disableSortingColumn] });
4+
5+
$(function() {
6+
var table = $('#example').dataTable({
7+
"paging": true,
8+
"ordering": true,
9+
"info": true,
10+
"aaSorting": [],
11+
"orderMulti": true,
12+
"aoColumnDefs": mSortingString
13+
14+
});
15+
});

resources/js/bootstrap.bundle.min.js

Lines changed: 625 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
/*!
2+
DataTables Bootstrap 4 integration
3+
©2011-2017 SpryMedia Ltd - datatables.net/license
4+
*/
5+
var $jscomp = $jscomp || {};
6+
$jscomp.scope = {};
7+
$jscomp.findInternal = function(a, b, c) { a instanceof String && (a = String(a)); for (var e = a.length, d = 0; d < e; d++) { var k = a[d]; if (b.call(c, k, d, a)) return { i: d, v: k } } return { i: -1, v: void 0 } };
8+
$jscomp.ASSUME_ES5 = !1;
9+
$jscomp.ASSUME_NO_NATIVE_MAP = !1;
10+
$jscomp.ASSUME_NO_NATIVE_SET = !1;
11+
$jscomp.SIMPLE_FROUND_POLYFILL = !1;
12+
$jscomp.defineProperty = $jscomp.ASSUME_ES5 || "function" == typeof Object.defineProperties ? Object.defineProperty : function(a, b, c) { a != Array.prototype && a != Object.prototype && (a[b] = c.value) };
13+
$jscomp.getGlobal = function(a) { return "undefined" != typeof window && window === a ? a : "undefined" != typeof global && null != global ? global : a };
14+
$jscomp.global = $jscomp.getGlobal(this);
15+
$jscomp.polyfill = function(a, b, c, e) { if (b) { c = $jscomp.global;
16+
a = a.split("."); for (e = 0; e < a.length - 1; e++) { var d = a[e];
17+
d in c || (c[d] = {});
18+
c = c[d] }
19+
a = a[a.length - 1];
20+
e = c[a];
21+
b = b(e);
22+
b != e && null != b && $jscomp.defineProperty(c, a, { configurable: !0, writable: !0, value: b }) } };
23+
$jscomp.polyfill("Array.prototype.find", function(a) { return a ? a : function(a, c) { return $jscomp.findInternal(this, a, c).v } }, "es6", "es3");
24+
(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);
25+
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) {
26+
var d = a.fn.dataTable;
27+
a.extend(!0, d.defaults, {
28+
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>>",
29+
renderer: "bootstrap"
30+
});
31+
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" });
32+
d.ext.renderer.pageButton.bootstrap = function(b, l, v, w, m, r) {
33+
var k = new d.Api(b),
34+
x = b.oClasses,
35+
n = b.oLanguage.oPaginate,
36+
y = b.oLanguage.oAria.paginate || {},
37+
g, h, t = 0,
38+
u = function(c, d) {
39+
var e, l = function(b) {
40+
b.preventDefault();
41+
a(b.currentTarget).hasClass("disabled") || k.page() == b.data.action || k.page(b.data.action).draw("page")
42+
};
43+
var q = 0;
44+
for (e = d.length; q < e; q++) {
45+
var f = d[q];
46+
if (a.isArray(f)) u(c, f);
47+
else {
48+
h = g = "";
49+
switch (f) {
50+
case "ellipsis":
51+
g = "&#x2026;";
52+
h = "disabled"; break;
53+
case "first":
54+
g = n.sFirst;
55+
h = f + (0 < m ? "" : " disabled"); break;
56+
case "previous":
57+
g = n.sPrevious;
58+
h = f + (0 < m ? "" : " disabled"); break;
59+
case "next":
60+
g = n.sNext;
61+
h = f + (m < r - 1 ? "" : " disabled"); break;
62+
case "last":
63+
g = n.sLast;
64+
h = f + (m < r - 1 ? "" : " disabled"); break;
65+
default:
66+
g = f + 1, h = m === f ? "active" : "" }
67+
if (g) {
68+
var p =
69+
a("<li>", { "class": x.sPageButton + " " + h, id: 0 === v && "string" === typeof f ? b.sTableId + "_" + f : null }).append(a("<a>", { href: "#", "aria-controls": b.sTableId, "aria-label": y[f], "data-dt-idx": t, tabindex: b.iTabIndex, "class": "page-link" }).html(g)).appendTo(c);
70+
b.oApi._fnBindAction(p, { action: f }, l);
71+
t++
72+
}
73+
}
74+
}
75+
};
76+
try { var p = a(l).find(c.activeElement).data("dt-idx") } catch (z) {}
77+
u(a(l).empty().html('<ul class="pagination"/>').children("ul"), w);
78+
p !== e && a(l).find("[data-dt-idx=" + p + "]").focus()
79+
};
80+
return d
81+
});

resources/js/dropdown-search-bs4.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
$(".dropdown-search-input").on("keyup", function() {
2+
var value = $(this).val().toLowerCase();
3+
$(".dropdown-menu a").filter(function() {
4+
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
5+
});
6+
});

0 commit comments

Comments
 (0)