LaravelTest
49 строк · 1.6 Кб
1(function (factory) {2if (typeof define === 'function' && define.amd) {3// AMD4define(['jquery', 'datatables.net-bs4', 'datatables.net-searchbuilder'], function ($) {5return factory($);6});7}8else if (typeof exports === 'object') {9// CommonJS10module.exports = function (root, $) {11if (!root) {12root = window;13}14if (!$ || !$.fn.dataTable) {15// eslint-disable-next-line @typescript-eslint/no-var-requires16$ = require('datatables.net-bs4')(root, $).$;17}18if (!$.fn.dataTable.searchBuilder) {19// eslint-disable-next-line @typescript-eslint/no-var-requires20require('datatables.net-searchbuilder')(root, $);21}22return factory($);23};24}25else {26// Browser27factory(jQuery);28}29}(function ($) {30'use strict';31var dataTable = $.fn.dataTable;32$.extend(true, dataTable.SearchBuilder.classes, {33clearAll: 'btn btn-light dtsb-clearAll'34});35$.extend(true, dataTable.Group.classes, {36add: 'btn btn-light dtsb-add',37clearGroup: 'btn btn-light dtsb-clearGroup',38logic: 'btn btn-light dtsb-logic'39});40$.extend(true, dataTable.Criteria.classes, {41condition: 'form-control dtsb-condition',42data: 'form-control dtsb-data',43"delete": 'btn btn-light dtsb-delete',44left: 'btn btn-light dtsb-left',45right: 'btn btn-light dtsb-right',46value: 'form-control dtsb-value'47});48return dataTable.searchPanes;49}));50