LaravelTest
63 строки · 2.1 Кб
1/*! Bootstrap integration for DataTables' SearchPanes
2* ©2016 SpryMedia Ltd - datatables.net/license
3*/
4(function (factory) {5if (typeof define === 'function' && define.amd) {6// AMD7define(['jquery', 'datatables.net-bs4', 'datatables.net-searchpanes'], function ($) {8return factory($, window, document);9});10}11else if (typeof exports === 'object') {12// CommonJS13module.exports = function (root, $) {14if (!root) {15root = window;16}17if (!$ || !$.fn.dataTable) {18// eslint-disable-next-line @typescript-eslint/no-var-requires19$ = require('datatables.net-bs4')(root, $).$;20}21if (!$.fn.dataTable.SearchPanes) {22// eslint-disable-next-line @typescript-eslint/no-var-requires23require('datatables.net-searchpanes')(root, $);24}25return factory($, root, root.document);26};27}28else {29// Browser30factory(jQuery, window, document);31}32}(function ($, window, document) {33'use strict';34var dataTable = $.fn.dataTable;35$.extend(true, dataTable.SearchPane.classes, {36buttonGroup: 'btn-group',37disabledButton: 'disabled',38narrow: 'col',39pane: {40container: 'table'41},42paneButton: 'btn btn-light',43pill: 'pill badge badge-pill badge-secondary',44search: 'form-control search',45searchCont: 'input-group',46searchLabelCont: 'input-group-append',47subRow1: 'dtsp-subRow1',48subRow2: 'dtsp-subRow2',49table: 'table table-sm table-borderless',50topRow: 'dtsp-topRow'51});52$.extend(true, dataTable.SearchPanes.classes, {53clearAll: 'dtsp-clearAll btn btn-light',54collapseAll: 'dtsp-collapseAll btn btn-light',55container: 'dtsp-searchPanes',56disabledButton: 'disabled',57panes: 'dtsp-panes dtsp-panesContainer',58showAll: 'dtsp-showAll btn btn-light',59title: 'dtsp-title',60titleRow: 'dtsp-titleRow'61});62return dataTable.searchPanes;63}));64