original push
This commit is contained in:
+450
@@ -0,0 +1,450 @@
|
||||
!(function (t) {
|
||||
var e = {};
|
||||
function s(i) {
|
||||
if (e[i]) return e[i].exports;
|
||||
var o = (e[i] = { i: i, l: !1, exports: {} });
|
||||
return t[i].call(o.exports, o, o.exports, s), (o.l = !0), o.exports;
|
||||
}
|
||||
(s.m = t),
|
||||
(s.c = e),
|
||||
(s.d = function (t, e, i) {
|
||||
s.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: i });
|
||||
}),
|
||||
(s.r = function (t) {
|
||||
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t, "__esModule", { value: !0 });
|
||||
}),
|
||||
(s.t = function (t, e) {
|
||||
if ((1 & e && (t = s(t)), 8 & e)) return t;
|
||||
if (4 & e && "object" == typeof t && t && t.__esModule) return t;
|
||||
var i = Object.create(null);
|
||||
if ((s.r(i), Object.defineProperty(i, "default", { enumerable: !0, value: t }), 2 & e && "string" != typeof t))
|
||||
for (var o in t)
|
||||
s.d(i,
|
||||
o,
|
||||
function (e) {
|
||||
return t[e];
|
||||
}.bind(null, o)
|
||||
);
|
||||
return i;
|
||||
}),
|
||||
(s.n = function (t) {
|
||||
var e = t && t.__esModule
|
||||
? function () {
|
||||
return t.default;
|
||||
}
|
||||
: function () {
|
||||
return t;
|
||||
};
|
||||
return s.d(e, "a", e), e;
|
||||
}),
|
||||
(s.o = function (t, e) {
|
||||
return Object.prototype.hasOwnProperty.call(t, e);
|
||||
}),
|
||||
(s.p = ""), s((s.s = 0));
|
||||
})([
|
||||
function (t, e, s) {
|
||||
"use strict";
|
||||
s.r(e),
|
||||
s.d(e, "AutoComplete", function () {
|
||||
return a;
|
||||
});
|
||||
var i,
|
||||
o = ((i = function (t, e) {
|
||||
return (i =
|
||||
Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array &&
|
||||
function (t, e) {
|
||||
t.__proto__ = e;
|
||||
}) ||
|
||||
function (t, e) {
|
||||
for (var s in e) e.hasOwnProperty(s) && (t[s] = e[s]);
|
||||
})(t, e);
|
||||
}),
|
||||
function (t, e) {
|
||||
function s() {
|
||||
this.constructor = t;
|
||||
}
|
||||
i(t, e), (t.prototype = null === e ? Object.create(e) : ((s.prototype = e.prototype), new s()));
|
||||
}),
|
||||
n = (function (t) {
|
||||
function e(e) {
|
||||
return t.call(this, e) || this;
|
||||
}
|
||||
return (
|
||||
o(e, t),
|
||||
(e.prototype.getDefaults = function () {
|
||||
return { url: "", method: "post", queryKey: "Auto_Query", extraData: {}, timeout: void 0, requestThrottling: 500 };
|
||||
}),
|
||||
(e.prototype.search = function (t, e) {
|
||||
var s = this;
|
||||
null != this.jqXHR && this.jqXHR.abort();
|
||||
var i = {};
|
||||
(i[this._settings.queryKey] = t),
|
||||
$.extend(i, this._settings.extraData),
|
||||
this.requestTID && window.clearTimeout(this.requestTID),
|
||||
(this.requestTID = window.setTimeout(function () {
|
||||
(s.jqXHR = $.ajax(s._settings.url, { method: s._settings.method, data: i, timeout: s._settings.timeout })),
|
||||
s.jqXHR.done(function (t) {
|
||||
var v;
|
||||
(v = void 0 !== t.autodata ? t.autodata : t), e(v);
|
||||
}),
|
||||
s.jqXHR.fail(function (t) {
|
||||
var e;
|
||||
null === (e = s._settings) || void 0 === e || e.fail(t);
|
||||
}),
|
||||
s.jqXHR.always(function () {
|
||||
s.jqXHR = null;
|
||||
});
|
||||
}, this._settings.requestThrottling));
|
||||
}),
|
||||
e
|
||||
);
|
||||
})(
|
||||
(function () {
|
||||
function t(t) {
|
||||
this._settings = $.extend(!0, {}, this.getDefaults(), t);
|
||||
}
|
||||
return (
|
||||
(t.prototype.getDefaults = function () {
|
||||
return {};
|
||||
}),
|
||||
(t.prototype.getResults = function (t, e, s) {
|
||||
return this.results;
|
||||
}),
|
||||
(t.prototype.search = function (t, e) {
|
||||
e(this.getResults());
|
||||
}),
|
||||
t
|
||||
);
|
||||
})()
|
||||
),
|
||||
l = (function () {
|
||||
function t(t, e, s, i) {
|
||||
(this.initialized = !1), (this.shown = !1), (this.items = []), (this.ddMouseover = !1), (this._$el = t), (this.formatItem = e), (this.autoSelect = s), (this.noResultsText = i);
|
||||
}
|
||||
return (
|
||||
(t.prototype.getElPos = function () {
|
||||
return $.extend({}, this._$el.position(), { height: this._$el[0].offsetHeight });
|
||||
}),
|
||||
(t.prototype.init = function () {
|
||||
var t = this, e = this.getElPos();
|
||||
(this._dd = $("<div />")),
|
||||
this._dd.addClass("bs-fonac dropdown-menu"),
|
||||
this._dd.insertAfter(this._$el),
|
||||
this._dd.css({ cssText: 'width: '+this._$el.outerWidth()+'px !important', top: e.top + this._$el.outerHeight(), left: e.left }),
|
||||
this._dd.on("click", ".dropdown-item", function (e) {
|
||||
var s = $(e.currentTarget).data("item");
|
||||
t.itemSelectedLaunchEvent(s), e.preventDefault();
|
||||
}),
|
||||
this._dd.on("keyup", function (e) {
|
||||
if (t.shown) {
|
||||
switch (e.which) {
|
||||
case 27:
|
||||
t.hide(), t._$el.focus();
|
||||
}
|
||||
return !1;
|
||||
}
|
||||
}),
|
||||
this._dd.on("mouseenter", function (e) {
|
||||
t.ddMouseover = !0;
|
||||
}),
|
||||
this._dd.on("mouseleave", function (e) {
|
||||
t.ddMouseover = !1;
|
||||
}),
|
||||
this._dd.on("mouseenter", ".dropdown-item", function (e) {
|
||||
t.haveResults && ($(e.currentTarget).closest("div").find(".dropdown-item.active").removeClass("active"), $(e.currentTarget).addClass("active"), (t.mouseover = !0));
|
||||
}),
|
||||
this._dd.on("mouseleave", ".dropdown-item", function (e) {
|
||||
t.mouseover = !1;
|
||||
}),
|
||||
(this.initialized = !0);
|
||||
}),
|
||||
(t.prototype.checkInitialized = function () {
|
||||
this.initialized || this.init();
|
||||
}),
|
||||
Object.defineProperty(t.prototype, "isMouseOver", {
|
||||
get: function () {
|
||||
return this.mouseover;
|
||||
},
|
||||
enumerable: !1,
|
||||
configurable: !0,
|
||||
}),
|
||||
Object.defineProperty(t.prototype, "isDdMouseOver", {
|
||||
get: function () {
|
||||
return this.ddMouseover;
|
||||
},
|
||||
enumerable: !1,
|
||||
configurable: !0,
|
||||
}),
|
||||
Object.defineProperty(t.prototype, "haveResults", {
|
||||
get: function () {
|
||||
return this.items.length > 0;
|
||||
},
|
||||
enumerable: !1,
|
||||
configurable: !0,
|
||||
}),
|
||||
(t.prototype.focusNextItem = function (t) {
|
||||
if (this.haveResults) {
|
||||
var e = this._dd.find(".dropdown-item.active"),
|
||||
s = t ? e.prev() : e.next();
|
||||
0 === s.length && (s = t ? this._dd.find(".dropdown-item").last() : this._dd.find(".dropdown-item").first()), e.removeClass("active"), s.addClass("active");
|
||||
}
|
||||
}),
|
||||
(t.prototype.focusPreviousItem = function () {
|
||||
this.focusNextItem(!0);
|
||||
}),
|
||||
(t.prototype.selectFocusItem = function () {
|
||||
this._dd.find(".dropdown-item.active").trigger("click");
|
||||
}),
|
||||
Object.defineProperty(t.prototype, "isItemFocused", {
|
||||
get: function () {
|
||||
return !!(this._dd && this.isShown() && this._dd.find(".dropdown-item.active").length > 0);
|
||||
},
|
||||
enumerable: !1,
|
||||
configurable: !0,
|
||||
}),
|
||||
(t.prototype.show = function () {
|
||||
if (!this.shown) {
|
||||
this.getElPos();
|
||||
this._dd.addClass("show"), (this.shown = !0), this._$el.trigger("autocomplete.dd.shown");
|
||||
}
|
||||
}),
|
||||
(t.prototype.isShown = function () {
|
||||
return this.shown;
|
||||
}),
|
||||
(t.prototype.hide = function () {
|
||||
this.shown && (this._dd.removeClass("show"), (this.shown = !1), this._$el.trigger("autocomplete.dd.hidden"));
|
||||
}),
|
||||
(t.prototype.updateItems = function (t, e) {
|
||||
(this.items = t), (this.searchText = e), this.refreshItemList();
|
||||
}),
|
||||
(t.prototype.showMatchedText = function (t, e) {
|
||||
var s = t.toLowerCase().indexOf(e.toLowerCase());
|
||||
if (s > -1) {
|
||||
var i = s + e.length;
|
||||
return t.slice(0, s) + "<b>" + t.slice(s, i) + "</b>" + t.slice(i);
|
||||
}
|
||||
return t;
|
||||
}),
|
||||
(t.prototype.refreshItemList = function () {
|
||||
var t = this;
|
||||
this.checkInitialized(), this._dd.empty();
|
||||
var e = [];
|
||||
if (this.items.length > 0)
|
||||
this.items.forEach(function (s) {
|
||||
var i, o, n = t.formatItem(s);
|
||||
"string" == typeof n && (n = { text: n }),
|
||||
(i = void 0 !== n.html ? n.html : n.text),
|
||||
(o = t.showMatchedText(i, t.searchText));
|
||||
var r = n.disabled, l = $("<a >");
|
||||
l.addClass("dropdown-item").css({ overflow: "hidden", "text-overflow": "ellipsis" }).html(o).data("item", s), r && l.addClass("disabled"), e.push(l);
|
||||
}),
|
||||
this._dd.append(e),
|
||||
this.show();
|
||||
else if ("" === this.noResultsText) this.hide();
|
||||
else {
|
||||
var s = $("<a >");
|
||||
s.addClass("dropdown-item disabled").html(this.noResultsText), e.push(s), this._dd.append(e), this.show();
|
||||
}
|
||||
}),
|
||||
(t.prototype.itemSelectedLaunchEvent = function (t) {
|
||||
this._$el.trigger("autocomplete.select", t);
|
||||
}),
|
||||
t
|
||||
);
|
||||
})(),
|
||||
a = (function () {
|
||||
function t(t, e) {
|
||||
(this._selectedItem = null),
|
||||
(this._defaultValue = null),
|
||||
(this._defaultText = null),
|
||||
(this._isSelectElement = !1),
|
||||
(this._settings = {
|
||||
resolver: "ajax",
|
||||
resolverSettings: {},
|
||||
minLength: 3,
|
||||
valueKey: "value",
|
||||
formatResult: this.defaultFormatResult,
|
||||
autoSelect: !0,
|
||||
noResultsText: "Tidak ditemukan data",
|
||||
bootstrapVersion: "4",
|
||||
preventEnter: !1,
|
||||
events: { typed: null, searchPre: null, search: null, searchPost: null, select: null, focus: null },
|
||||
keydownFunc: function(){},//gnips
|
||||
}),
|
||||
(this._el = t),
|
||||
(this._$el = $(this._el)),
|
||||
this._$el.is("select") && (this._isSelectElement = !0),
|
||||
this.manageInlineDataAttributes(),
|
||||
"object" == typeof e && (this._settings = $.extend(!0, {}, this.getSettings(), e)),
|
||||
this._isSelectElement && this.convertSelectToText(),
|
||||
this.init();
|
||||
}
|
||||
return (
|
||||
(t.prototype.manageInlineDataAttributes = function () {
|
||||
var t = this.getSettings();
|
||||
this._$el.data("url") && (t.resolverSettings.url = this._$el.data("url")),
|
||||
this._$el.data("default-value") && (this._defaultValue = this._$el.data("default-value")),
|
||||
this._$el.data("default-text") && (this._defaultText = this._$el.data("default-text")),
|
||||
void 0 !== this._$el.data("noresults-text") && (t.noResultsText = this._$el.data("noresults-text"));
|
||||
}),
|
||||
(t.prototype.getSettings = function () {
|
||||
return this._settings;
|
||||
}),
|
||||
(t.prototype.getBootstrapVersion = function () {
|
||||
var t;
|
||||
"4" === this._settings.bootstrapVersion ? (t = [4])
|
||||
: (console.error("INVALID value for 'bootstrapVersion' settings property: " + this._settings.bootstrapVersion + " defaulting to 4"), (t = [4]));
|
||||
return t;
|
||||
}),
|
||||
(t.prototype.convertSelectToText = function () {
|
||||
var e = $("<input>");
|
||||
e.attr("type", "hidden"), e.attr("id", this._$el.attr("id")+'_AutoVal'), this._defaultValue && e.val(this._defaultValue), (this._selectHiddenField = e), e.insertAfter(this._$el);
|
||||
var s = $("<input>");
|
||||
s.attr("type", "search"),
|
||||
s.attr("id", this._$el.attr("id")),
|
||||
s.attr("disabled", this._$el.attr("disabled")),
|
||||
s.attr("placeholder", this._$el.attr("placeholder")),
|
||||
s.attr("autocomplete", "off"),
|
||||
s.addClass(this._$el.attr("class")),
|
||||
this._defaultText && s.val(this._defaultText);
|
||||
var i = this._$el.attr("required");
|
||||
i && s.attr("required", i), s.data(t.NAME, this), this._$el.replaceWith(s), (this._$el = s), (this._el = s.get(0));
|
||||
}),
|
||||
(t.prototype.init = function () {
|
||||
this.bindDefaultEventListeners(),
|
||||
"ajax" === this._settings.resolver && (this.resolver = new n(this._settings.resolverSettings)),
|
||||
(this._dd = new l(this._$el, this._settings.formatResult, this._settings.autoSelect, this._settings.noResultsText));
|
||||
}),
|
||||
(t.prototype.bindDefaultEventListeners = function () {
|
||||
var t = this;
|
||||
this._$el.on("keydown", function (e) {
|
||||
("" == t._$el.val() && t._settings.keydownFunc(e.which));//gnips
|
||||
switch (e.which) {
|
||||
case 9:
|
||||
t._dd.isItemFocused ? t._dd.selectFocusItem() : t._selectedItem || ("" !== t._$el.val() && t._$el.trigger("autocomplete.freevalue", t._$el.val())), t._dd.hide();
|
||||
break;
|
||||
case 13:
|
||||
t._dd.isItemFocused ? t._dd.selectFocusItem() : t._selectedItem || ("" !== t._$el.val() && t._$el.trigger("autocomplete.freevalue", t._$el.val())),
|
||||
t._dd.hide(),
|
||||
t._settings.preventEnter && e.preventDefault();
|
||||
break;
|
||||
case 40:
|
||||
t._dd.focusNextItem();
|
||||
break;
|
||||
case 38:
|
||||
t._dd.focusPreviousItem();
|
||||
}
|
||||
}),
|
||||
this._$el.on("keyup", function (e) {
|
||||
switch (e.which) {
|
||||
case 16:
|
||||
case 17:
|
||||
case 18:
|
||||
case 39:
|
||||
case 37:
|
||||
case 36:
|
||||
case 35:
|
||||
break;
|
||||
case 13:
|
||||
case 27:
|
||||
t._dd.hide();
|
||||
break;
|
||||
case 40:
|
||||
case 38:
|
||||
break;
|
||||
default:
|
||||
t._selectedItem = null;
|
||||
var s = t._$el.val();
|
||||
t.handlerTyped(s);
|
||||
}
|
||||
}),
|
||||
this._$el.on("blur", function (e) {
|
||||
!t._dd.isMouseOver && t._dd.isDdMouseOver && t._dd.isShown()
|
||||
? (setTimeout(function () {
|
||||
t._$el.focus();
|
||||
}),
|
||||
t._$el.focus())
|
||||
: t._dd.isMouseOver ||
|
||||
/*(t._isSelectElement
|
||||
? t._dd.isItemFocused
|
||||
? t._dd.selectFocusItem()
|
||||
: null !== t._selectedItem && "" !== t._$el.val()
|
||||
? t._$el.trigger("autocomplete.select", t._selectedItem)
|
||||
: "" !== t._$el.val() && null !== t._defaultValue
|
||||
? (t._$el.val(t._defaultText), t._selectHiddenField.val(t._defaultValue), (t._selectedItem = null), t._$el.trigger("autocomplete.select", t._selectedItem))
|
||||
: (t._$el.val(""), t._selectHiddenField.val(""), (t._selectedItem = null), t._$el.trigger("autocomplete.select", t._selectedItem))
|
||||
: null === t._selectedItem && t._$el.trigger("autocomplete.freevalue", t._$el.val()),
|
||||
t._dd.hide());*/ t._dd.hide();
|
||||
}),
|
||||
this._$el.on("autocomplete.select", function (e, s) {
|
||||
(t._selectedItem = s), t.itemSelectedDefaultHandler(s);
|
||||
}),
|
||||
this._$el.on("paste", function (e) {
|
||||
setTimeout(function () {
|
||||
t._$el.trigger("keyup", e);
|
||||
}, 0);
|
||||
});
|
||||
}),
|
||||
(t.prototype.handlerTyped = function (t) {
|
||||
(null === this._settings.events.typed || (t = this._settings.events.typed(t, this._$el))) && (t.length >= this._settings.minLength ? ((this._searchText = t), this.handlerPreSearch()) : this._dd.hide());
|
||||
}),
|
||||
(t.prototype.handlerPreSearch = function () {
|
||||
if (null !== this._settings.events.searchPre) {
|
||||
var t = this._settings.events.searchPre(this._searchText, this._$el);
|
||||
if (!t) return;
|
||||
this._searchText = t;
|
||||
}
|
||||
this.handlerDoSearch();
|
||||
}),
|
||||
(t.prototype.handlerDoSearch = function () {
|
||||
var t = this;
|
||||
null !== this._settings.events.search
|
||||
? this._settings.events.search(
|
||||
this._searchText,
|
||||
function (e) {
|
||||
t.postSearchCallback(e);
|
||||
},
|
||||
this._$el
|
||||
)
|
||||
: this.resolver &&
|
||||
this.resolver.search(this._searchText, function (e) {
|
||||
t.postSearchCallback(e);
|
||||
});
|
||||
}),
|
||||
(t.prototype.postSearchCallback = function (t) {
|
||||
(this._settings.events.searchPost && "boolean" == typeof (t = this._settings.events.searchPost(t, this._$el)) && !t) || this.handlerStartShow(t);
|
||||
}),
|
||||
(t.prototype.handlerStartShow = function (t) {
|
||||
if (1 == t.length && 1 == (void 0 !== t[0].bc ? t[0].bc : 0)) {
|
||||
this._$el.trigger("autocomplete.select", t[0]),
|
||||
this._dd.hide();
|
||||
} else this._dd.updateItems(t, this._searchText);
|
||||
}),
|
||||
(t.prototype.itemSelectedDefaultHandler = function (t) {
|
||||
if (null != t) {
|
||||
var e = this._settings.formatResult(t);
|
||||
"string" == typeof e && (e = { text: e }), this._$el.val(e.text), this._isSelectElement && this._selectHiddenField.val(e.value);
|
||||
} else this._$el.val(""), this._isSelectElement && this._selectHiddenField.val("");
|
||||
(this._selectedItem = t), this._dd.hide();
|
||||
}),
|
||||
(t.prototype.defaultFormatResult = function (t) {
|
||||
return "string" == typeof t ? { text: t } : t.text ? t : { text: t.toString() };
|
||||
}),
|
||||
(t.prototype.manageAPI = function (t, e) {
|
||||
"set" === t ? this.itemSelectedDefaultHandler(e) : "clear" === t ? this.itemSelectedDefaultHandler(null) : "show" === t ? this._$el.trigger("keyup") : "updateResolver" === t && (this.resolver = new n(e));
|
||||
}),
|
||||
(t.NAME = "autoComplete"),
|
||||
t
|
||||
);
|
||||
})();
|
||||
!(function (t, e, s) {
|
||||
t.fn[a.NAME] = function (e, s) {
|
||||
return this.each(function () {
|
||||
var i;
|
||||
(i = t(this).data(a.NAME)) || ((i = new a(this, e)), t(this).data(a.NAME, i)), i.manageAPI(e, s);
|
||||
});
|
||||
};
|
||||
})(jQuery, window, document);
|
||||
},
|
||||
]);
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
/*!
|
||||
DataTables Bootstrap 4 integration
|
||||
©2011-2017 SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
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 k=a[d];if(b.call(c,k,d,a))return{i:d,v:k}}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.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};$jscomp.getGlobal=function(a){a=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,a];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);
|
||||
$jscomp.polyfill=function(a,b,c,e){if(b){c=$jscomp.global;a=a.split(".");for(e=0;e<a.length-1;e++){var d=a[e];d in c||(c[d]={});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})}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,c){return $jscomp.findInternal(this,a,c).v}},"es6","es3");
|
||||
(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>>",
|
||||
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(b,l,v,w,m,r){var k=new d.Api(b),x=b.oClasses,n=b.oLanguage.oPaginate,y=b.oLanguage.oAria.paginate||{},g,h,t=0,u=function(c,d){var e,l=function(b){b.preventDefault();
|
||||
a(b.currentTarget).hasClass("disabled")||k.page()==b.data.action||k.page(b.data.action).draw("page")};var q=0;for(e=d.length;q<e;q++){var f=d[q];if(a.isArray(f))u(c,f);else{h=g="";switch(f){case "ellipsis":g="…";h="disabled";break;case "first":g=n.sFirst;h=f+(0<m?"":" disabled");break;case "previous":g=n.sPrevious;h=f+(0<m?"":" disabled");break;case "next":g=n.sNext;h=f+(m<r-1?"":" disabled");break;case "last":g=n.sLast;h=f+(m<r-1?"":" disabled");break;default:g=f+1,h=m===f?"active":""}if(g){var p=
|
||||
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);b.oApi._fnBindAction(p,{action:f},l);t++}}}};try{var p=a(l).find(c.activeElement).data("dt-idx")}catch(z){}u(a(l).empty().html('<ul class="pagination"/>').children("ul"),w);p!==e&&a(l).find("[data-dt-idx="+p+"]").trigger("focus")};return d});
|
||||
@@ -0,0 +1,9 @@
|
||||
/*!
|
||||
Bootstrap 4 integration for DataTables' Responsive
|
||||
©2016 SpryMedia Ltd - datatables.net/license
|
||||
*/
|
||||
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,c,b){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(c.call(b,f,e,a))return{i:e,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.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,c,b){a!=Array.prototype&&a!=Object.prototype&&(a[c]=b.value)};$jscomp.getGlobal=function(a){a=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,a];for(var c=0;c<a.length;++c){var b=a[c];if(b&&b.Math==Math)return b}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
|
||||
$jscomp.polyfill=function(a,c,b,d){if(c){b=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var e=a[d];e in b||(b[e]={});b=b[e]}a=a[a.length-1];d=b[a];c=c(d);c!=d&&null!=c&&$jscomp.defineProperty(b,a,{configurable:!0,writable:!0,value:c})}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,b){return $jscomp.findInternal(this,a,b).v}},"es6","es3");
|
||||
(function(a){"function"===typeof define&&define.amd?define(["jquery","datatables.net-bs4","datatables.net-responsive"],function(c){return a(c,window,document)}):"object"===typeof exports?module.exports=function(c,b){c||(c=window);b&&b.fn.dataTable||(b=require("datatables.net-bs4")(c,b).$);b.fn.dataTable.Responsive||require("datatables.net-responsive")(c,b);return a(b,c,c.document)}:a(jQuery,window,document)})(function(a,c,b,d){c=a.fn.dataTable;b=c.Responsive.display;var e=b.modal,f=a('<div class="modal fade dtr-bs-modal" role="dialog"><div class="modal-dialog" role="document"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button></div><div class="modal-body"/></div></div></div>');
|
||||
b.modal=function(b){return function(c,d,g){if(!a.fn.modal)e(c,d,g);else if(!d){if(b&&b.header){d=f.find("div.modal-header");var h=d.find("button").detach();d.empty().append('<h4 class="modal-title">'+b.header(c)+"</h4>").append(h)}f.find("div.modal-body").empty().append(g());f.appendTo("body").modal()}}};return c.Responsive});
|
||||
+8
File diff suppressed because one or more lines are too long
Vendored
+6
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user