From 0225bdb772d1334cc1aa7ab0fc3678df0864df6b Mon Sep 17 00:00:00 2001 From: AlisaLinUwU Date: Sun, 26 Jan 2025 10:42:28 +0500 Subject: Initialize --- .../js/dataTables.searchBuilder.js | 3797 ++++++++++++++++++++ 1 file changed, 3797 insertions(+) create mode 100644 build/resources/main/static/plugins/datatables-searchbuilder/js/dataTables.searchBuilder.js (limited to 'build/resources/main/static/plugins/datatables-searchbuilder/js/dataTables.searchBuilder.js') diff --git a/build/resources/main/static/plugins/datatables-searchbuilder/js/dataTables.searchBuilder.js b/build/resources/main/static/plugins/datatables-searchbuilder/js/dataTables.searchBuilder.js new file mode 100644 index 0000000..317013e --- /dev/null +++ b/build/resources/main/static/plugins/datatables-searchbuilder/js/dataTables.searchBuilder.js @@ -0,0 +1,3797 @@ +/*! SearchBuilder 1.3.1 + * ©SpryMedia Ltd - datatables.net/license/mit + */ +(function () { + 'use strict'; + + var $$2; + var dataTable$2; + // eslint-disable-next-line no-extra-parens + var moment = window.moment; + // eslint-disable-next-line no-extra-parens + var luxon = window.luxon; + /** + * Sets the value of jQuery for use in the file + * + * @param jq the instance of jQuery to be set + */ + function setJQuery$2(jq) { + $$2 = jq; + dataTable$2 = jq.fn.dataTable; + } + /** + * The Criteria class is used within SearchBuilder to represent a search criteria + */ + var Criteria = /** @class */ (function () { + function Criteria(table, opts, topGroup, index, depth) { + var _this = this; + if (index === void 0) { index = 0; } + if (depth === void 0) { depth = 1; } + // Check that the required version of DataTables is included + if (!dataTable$2 || !dataTable$2.versionCheck || !dataTable$2.versionCheck('1.10.0')) { + throw new Error('SearchPane requires DataTables 1.10 or newer'); + } + this.classes = $$2.extend(true, {}, Criteria.classes); + // Get options from user and any extra conditions/column types defined by plug-ins + this.c = $$2.extend(true, {}, Criteria.defaults, $$2.fn.dataTable.ext.searchBuilder, opts); + var i18n = this.c.i18n; + this.s = { + condition: undefined, + conditions: {}, + data: undefined, + dataIdx: -1, + dataPoints: [], + dateFormat: false, + depth: depth, + dt: table, + filled: false, + index: index, + origData: undefined, + topGroup: topGroup, + type: '', + value: [] + }; + this.dom = { + buttons: $$2('
') + .addClass(this.classes.buttonContainer), + condition: $$2('') + .addClass(this.classes.data) + .addClass(this.classes.dropDown) + .addClass(this.classes.italic), + dataTitle: $$2('