bootstrap-table-rails 1.17.1 → 1.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bootstrap-table-rails/version.rb +1 -1
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +321 -3
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +10 -2
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +517 -248
- data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +26 -5
- data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +61 -12
- data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +45 -5
- data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +78 -14
- data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +59 -448
- data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +83 -22
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +65 -11
- data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.css +3 -2
- data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +179 -501
- data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +2 -1
- data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +65 -437
- data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +74 -17
- data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +17 -4
- data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +71 -18
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +9 -3
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +6 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +9 -1
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +9 -1
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +1 -1
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +9 -1
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +1 -1
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +9 -1
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +9 -1
- metadata +1 -1
@@ -1617,6 +1617,56 @@
|
|
1617
1617
|
}
|
1618
1618
|
});
|
1619
1619
|
|
1620
|
+
var nativeAssign = Object.assign;
|
1621
|
+
var defineProperty$3 = Object.defineProperty;
|
1622
|
+
|
1623
|
+
// `Object.assign` method
|
1624
|
+
// https://tc39.github.io/ecma262/#sec-object.assign
|
1625
|
+
var objectAssign = !nativeAssign || fails(function () {
|
1626
|
+
// should have correct order of operations (Edge bug)
|
1627
|
+
if (descriptors && nativeAssign({ b: 1 }, nativeAssign(defineProperty$3({}, 'a', {
|
1628
|
+
enumerable: true,
|
1629
|
+
get: function () {
|
1630
|
+
defineProperty$3(this, 'b', {
|
1631
|
+
value: 3,
|
1632
|
+
enumerable: false
|
1633
|
+
});
|
1634
|
+
}
|
1635
|
+
}), { b: 2 })).b !== 1) return true;
|
1636
|
+
// should work with symbols and should have deterministic property order (V8 bug)
|
1637
|
+
var A = {};
|
1638
|
+
var B = {};
|
1639
|
+
// eslint-disable-next-line no-undef
|
1640
|
+
var symbol = Symbol();
|
1641
|
+
var alphabet = 'abcdefghijklmnopqrst';
|
1642
|
+
A[symbol] = 7;
|
1643
|
+
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
1644
|
+
return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
|
1645
|
+
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
|
1646
|
+
var T = toObject(target);
|
1647
|
+
var argumentsLength = arguments.length;
|
1648
|
+
var index = 1;
|
1649
|
+
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
1650
|
+
var propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
1651
|
+
while (argumentsLength > index) {
|
1652
|
+
var S = indexedObject(arguments[index++]);
|
1653
|
+
var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);
|
1654
|
+
var length = keys.length;
|
1655
|
+
var j = 0;
|
1656
|
+
var key;
|
1657
|
+
while (length > j) {
|
1658
|
+
key = keys[j++];
|
1659
|
+
if (!descriptors || propertyIsEnumerable.call(S, key)) T[key] = S[key];
|
1660
|
+
}
|
1661
|
+
} return T;
|
1662
|
+
} : nativeAssign;
|
1663
|
+
|
1664
|
+
// `Object.assign` method
|
1665
|
+
// https://tc39.github.io/ecma262/#sec-object.assign
|
1666
|
+
_export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
|
1667
|
+
assign: objectAssign
|
1668
|
+
});
|
1669
|
+
|
1620
1670
|
var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
1621
1671
|
var test$1 = {};
|
1622
1672
|
|
@@ -1886,6 +1936,12 @@
|
|
1886
1936
|
return "\n <html>\n <head>\n <style type=\"text/css\" media=\"print\">\n @page {\n size: auto;\n margin: 25px 0 25px 0;\n }\n </style>\n <style type=\"text/css\" media=\"all\">\n table {\n border-collapse: collapse;\n font-size: 12px;\n }\n table, th, td {\n border: 1px solid grey;\n }\n th, td {\n text-align: center;\n vertical-align: middle;\n }\n p {\n font-weight: bold;\n margin-left:20px;\n }\n table {\n width:94%;\n margin-left:3%;\n margin-right:3%;\n }\n div.bs-table-print {\n text-align:center;\n }\n </style>\n </head>\n <title>Print Table</title>\n <body>\n <p>Printed on: ".concat(new Date(), " </p>\n <div class=\"bs-table-print\">").concat(table, "</div>\n </body>\n </html>");
|
1887
1937
|
}
|
1888
1938
|
|
1939
|
+
$.extend($.fn.bootstrapTable.locales, {
|
1940
|
+
formatPrint: function formatPrint() {
|
1941
|
+
return 'Print';
|
1942
|
+
}
|
1943
|
+
});
|
1944
|
+
$.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales);
|
1889
1945
|
$.extend($.fn.bootstrapTable.defaults, {
|
1890
1946
|
showPrint: false,
|
1891
1947
|
printAsFilteredAndSortedOnUI: true,
|
@@ -1938,31 +1994,32 @@
|
|
1938
1994
|
}, {
|
1939
1995
|
key: "initToolbar",
|
1940
1996
|
value: function initToolbar() {
|
1941
|
-
var
|
1942
|
-
|
1997
|
+
var _this = this,
|
1998
|
+
_get3;
|
1943
1999
|
|
1944
2000
|
this.showToolbar = this.showToolbar || this.options.showPrint;
|
1945
2001
|
|
2002
|
+
if (this.options.showPrint) {
|
2003
|
+
this.buttons = Object.assign(this.buttons, {
|
2004
|
+
print: {
|
2005
|
+
'text': this.options.formatPrint(),
|
2006
|
+
'icon': this.options.icons.print,
|
2007
|
+
'event': function event() {
|
2008
|
+
_this.doPrint(_this.options.printAsFilteredAndSortedOnUI ? _this.getData() : _this.options.data.slice(0));
|
2009
|
+
},
|
2010
|
+
'attributes': {
|
2011
|
+
'aria-label': this.options.formatPrint(),
|
2012
|
+
'title': this.options.formatPrint()
|
2013
|
+
}
|
2014
|
+
}
|
2015
|
+
});
|
2016
|
+
}
|
2017
|
+
|
1946
2018
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
1947
2019
|
args[_key2] = arguments[_key2];
|
1948
2020
|
}
|
1949
2021
|
|
1950
2022
|
(_get3 = _get(_getPrototypeOf(_class.prototype), "initToolbar", this)).call.apply(_get3, [this].concat(args));
|
1951
|
-
|
1952
|
-
if (!this.options.showPrint) {
|
1953
|
-
return;
|
1954
|
-
}
|
1955
|
-
|
1956
|
-
var $btnGroup = this.$toolbar.find('>.columns');
|
1957
|
-
var $print = $btnGroup.find('button.bs-print');
|
1958
|
-
|
1959
|
-
if (!$print.length) {
|
1960
|
-
$print = $("\n <button class=\"".concat(this.constants.buttonsClass, " bs-print\" type=\"button\">\n <i class=\"").concat(this.options.iconsPrefix, " ").concat(this.options.icons.print, "\"></i>\n </button>")).appendTo($btnGroup);
|
1961
|
-
}
|
1962
|
-
|
1963
|
-
$print.off('click').on('click', function () {
|
1964
|
-
_this.doPrint(_this.options.printAsFilteredAndSortedOnUI ? _this.getData() : _this.options.data.slice(0));
|
1965
|
-
});
|
1966
2023
|
}
|
1967
2024
|
}, {
|
1968
2025
|
key: "mergeCells",
|
@@ -1037,10 +1037,12 @@
|
|
1037
1037
|
this.$stickyEnd = this.$tableBody.find('.sticky_anchor_end');
|
1038
1038
|
this.$stickyHeader = this.$header.clone(true, true); // render sticky on window scroll or resize
|
1039
1039
|
|
1040
|
-
|
1040
|
+
var resizeEvent = Utils.getEventName('resize.sticky-header-table', this.$el.attr('id'));
|
1041
|
+
var scrollEvent = Utils.getEventName('scroll.sticky-header-table', this.$el.attr('id'));
|
1042
|
+
$(window).off(resizeEvent).on(resizeEvent, function () {
|
1041
1043
|
return _this.renderStickyHeader();
|
1042
1044
|
});
|
1043
|
-
$(window).off(
|
1045
|
+
$(window).off(scrollEvent).on(scrollEvent, function () {
|
1044
1046
|
return _this.renderStickyHeader();
|
1045
1047
|
});
|
1046
1048
|
this.$tableBody.off('scroll').on('scroll', function () {
|
@@ -1076,10 +1078,21 @@
|
|
1076
1078
|
return _this2.renderStickyHeader();
|
1077
1079
|
});
|
1078
1080
|
}
|
1081
|
+
}, {
|
1082
|
+
key: "horizontalScroll",
|
1083
|
+
value: function horizontalScroll() {
|
1084
|
+
var _this3 = this;
|
1085
|
+
|
1086
|
+
_get(_getPrototypeOf(_class.prototype), "horizontalScroll", this).call(this);
|
1087
|
+
|
1088
|
+
this.$tableBody.on('scroll', function () {
|
1089
|
+
return _this3.matchPositionX();
|
1090
|
+
});
|
1091
|
+
}
|
1079
1092
|
}, {
|
1080
1093
|
key: "renderStickyHeader",
|
1081
1094
|
value: function renderStickyHeader() {
|
1082
|
-
var
|
1095
|
+
var _this4 = this;
|
1083
1096
|
|
1084
1097
|
var that = this;
|
1085
1098
|
this.$stickyHeader = this.$header.clone(true, true);
|
@@ -1112,7 +1125,7 @@
|
|
1112
1125
|
if (top > start && top <= end) {
|
1113
1126
|
// ensure clone and source column widths are the same
|
1114
1127
|
this.$stickyHeader.find('tr:eq(0)').find('th').each(function (index, el) {
|
1115
|
-
$(el).css('min-width',
|
1128
|
+
$(el).css('min-width', _this4.$header.find('tr:eq(0)').find('th').eq(index).css('width'));
|
1116
1129
|
}); // match bootstrap table style
|
1117
1130
|
|
1118
1131
|
this.$stickyContainer.show().addClass('fix-sticky fixed-table-container'); // stick it in position
|
data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js
CHANGED
@@ -1537,6 +1537,56 @@
|
|
1537
1537
|
}
|
1538
1538
|
});
|
1539
1539
|
|
1540
|
+
var nativeAssign = Object.assign;
|
1541
|
+
var defineProperty$3 = Object.defineProperty;
|
1542
|
+
|
1543
|
+
// `Object.assign` method
|
1544
|
+
// https://tc39.github.io/ecma262/#sec-object.assign
|
1545
|
+
var objectAssign = !nativeAssign || fails(function () {
|
1546
|
+
// should have correct order of operations (Edge bug)
|
1547
|
+
if (descriptors && nativeAssign({ b: 1 }, nativeAssign(defineProperty$3({}, 'a', {
|
1548
|
+
enumerable: true,
|
1549
|
+
get: function () {
|
1550
|
+
defineProperty$3(this, 'b', {
|
1551
|
+
value: 3,
|
1552
|
+
enumerable: false
|
1553
|
+
});
|
1554
|
+
}
|
1555
|
+
}), { b: 2 })).b !== 1) return true;
|
1556
|
+
// should work with symbols and should have deterministic property order (V8 bug)
|
1557
|
+
var A = {};
|
1558
|
+
var B = {};
|
1559
|
+
// eslint-disable-next-line no-undef
|
1560
|
+
var symbol = Symbol();
|
1561
|
+
var alphabet = 'abcdefghijklmnopqrst';
|
1562
|
+
A[symbol] = 7;
|
1563
|
+
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
1564
|
+
return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
|
1565
|
+
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
|
1566
|
+
var T = toObject(target);
|
1567
|
+
var argumentsLength = arguments.length;
|
1568
|
+
var index = 1;
|
1569
|
+
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
1570
|
+
var propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
1571
|
+
while (argumentsLength > index) {
|
1572
|
+
var S = indexedObject(arguments[index++]);
|
1573
|
+
var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);
|
1574
|
+
var length = keys.length;
|
1575
|
+
var j = 0;
|
1576
|
+
var key;
|
1577
|
+
while (length > j) {
|
1578
|
+
key = keys[j++];
|
1579
|
+
if (!descriptors || propertyIsEnumerable.call(S, key)) T[key] = S[key];
|
1580
|
+
}
|
1581
|
+
} return T;
|
1582
|
+
} : nativeAssign;
|
1583
|
+
|
1584
|
+
// `Object.assign` method
|
1585
|
+
// https://tc39.github.io/ecma262/#sec-object.assign
|
1586
|
+
_export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
|
1587
|
+
assign: objectAssign
|
1588
|
+
});
|
1589
|
+
|
1540
1590
|
var propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
1541
1591
|
|
1542
1592
|
// `Object.{ entries, values }` methods implementation
|
@@ -2375,26 +2425,29 @@
|
|
2375
2425
|
_createClass(_class, [{
|
2376
2426
|
key: "initToolbar",
|
2377
2427
|
value: function initToolbar() {
|
2378
|
-
var _this = this;
|
2379
|
-
|
2380
2428
|
var o = this.options;
|
2381
2429
|
this.showToolbar = this.showToolbar || o.search && o.advancedSearch && o.idTable;
|
2382
2430
|
|
2383
|
-
|
2384
|
-
|
2385
|
-
|
2386
|
-
|
2431
|
+
if (o.search && o.advancedSearch && o.idTable) {
|
2432
|
+
this.buttons = Object.assign(this.buttons, {
|
2433
|
+
advancedSearch: {
|
2434
|
+
'text': this.options.formatAdvancedSearch(),
|
2435
|
+
'icon': this.options.icons.advancedSearchIcon,
|
2436
|
+
'event': this.showAvdSearch,
|
2437
|
+
'attributes': {
|
2438
|
+
'aria-label': this.options.formatAdvancedSearch(),
|
2439
|
+
'title': this.options.formatAdvancedSearch()
|
2440
|
+
}
|
2441
|
+
}
|
2442
|
+
});
|
2387
2443
|
}
|
2388
2444
|
|
2389
|
-
|
2390
|
-
this.$toolbar.find('button[name="advancedSearch"]').off('click').on('click', function () {
|
2391
|
-
return _this.showAvdSearch();
|
2392
|
-
});
|
2445
|
+
_get(_getPrototypeOf(_class.prototype), "initToolbar", this).call(this);
|
2393
2446
|
}
|
2394
2447
|
}, {
|
2395
2448
|
key: "showAvdSearch",
|
2396
2449
|
value: function showAvdSearch() {
|
2397
|
-
var
|
2450
|
+
var _this = this;
|
2398
2451
|
|
2399
2452
|
var o = this.options;
|
2400
2453
|
var modalSelector = '#avdSearchModal_' + o.idTable;
|
@@ -2405,21 +2458,21 @@
|
|
2405
2458
|
$("#avdSearchModalContent_".concat(o.idTable)).append(this.createFormAvd().join(''));
|
2406
2459
|
$("#".concat(o.idForm)).off('keyup blur', 'input').on('keyup blur', 'input', function (e) {
|
2407
2460
|
if (o.sidePagination === 'server') {
|
2408
|
-
|
2461
|
+
_this.onColumnAdvancedSearch(e);
|
2409
2462
|
} else {
|
2410
2463
|
clearTimeout(timeoutId);
|
2411
2464
|
timeoutId = setTimeout(function () {
|
2412
|
-
|
2465
|
+
_this.onColumnAdvancedSearch(e);
|
2413
2466
|
}, o.searchTimeOut);
|
2414
2467
|
}
|
2415
2468
|
});
|
2416
2469
|
$("#btnCloseAvd_".concat(o.idTable)).click(function () {
|
2417
|
-
return
|
2470
|
+
return _this.hideModal();
|
2418
2471
|
});
|
2419
2472
|
|
2420
2473
|
if ($.fn.bootstrapTable.theme === 'bulma') {
|
2421
2474
|
$(modalSelector).find('.delete').off('click').on('click', function () {
|
2422
|
-
return
|
2475
|
+
return _this.hideModal();
|
2423
2476
|
});
|
2424
2477
|
}
|
2425
2478
|
|
@@ -2523,7 +2576,7 @@
|
|
2523
2576
|
}, {
|
2524
2577
|
key: "initSearch",
|
2525
2578
|
value: function initSearch() {
|
2526
|
-
var
|
2579
|
+
var _this2 = this;
|
2527
2580
|
|
2528
2581
|
_get(_getPrototypeOf(_class.prototype), "initSearch", this).call(this);
|
2529
2582
|
|
@@ -2541,9 +2594,9 @@
|
|
2541
2594
|
var fval = v.toLowerCase();
|
2542
2595
|
var value = item[key];
|
2543
2596
|
|
2544
|
-
var index =
|
2597
|
+
var index = _this2.header.fields.indexOf(key);
|
2545
2598
|
|
2546
|
-
value = Utils.calculateObjectValue(
|
2599
|
+
value = Utils.calculateObjectValue(_this2.header, _this2.header.formatters[index], [value, item, i], value);
|
2547
2600
|
|
2548
2601
|
if (!(index !== -1 && (typeof value === 'string' || typeof value === 'number') && "".concat(value).toLowerCase().includes(fval))) {
|
2549
2602
|
return false;
|
@@ -674,6 +674,12 @@
|
|
674
674
|
*/
|
675
675
|
|
676
676
|
$.fn.bootstrapTable.locales['af-ZA'] = {
|
677
|
+
formatCopyRows: function formatCopyRows() {
|
678
|
+
return 'Copy Rows';
|
679
|
+
},
|
680
|
+
formatPrint: function formatPrint() {
|
681
|
+
return 'Print';
|
682
|
+
},
|
677
683
|
formatLoadingMessage: function formatLoadingMessage() {
|
678
684
|
return 'Besig om te laai, wag asseblief';
|
679
685
|
},
|
@@ -674,6 +674,12 @@
|
|
674
674
|
*/
|
675
675
|
|
676
676
|
$.fn.bootstrapTable.locales['ar-SA'] = {
|
677
|
+
formatCopyRows: function formatCopyRows() {
|
678
|
+
return 'Copy Rows';
|
679
|
+
},
|
680
|
+
formatPrint: function formatPrint() {
|
681
|
+
return 'Print';
|
682
|
+
},
|
677
683
|
formatLoadingMessage: function formatLoadingMessage() {
|
678
684
|
return 'جاري التحميل, يرجى الإنتظار';
|
679
685
|
},
|
@@ -674,6 +674,12 @@
|
|
674
674
|
*/
|
675
675
|
|
676
676
|
$.fn.bootstrapTable.locales['bg-BG'] = {
|
677
|
+
formatCopyRows: function formatCopyRows() {
|
678
|
+
return 'Copy Rows';
|
679
|
+
},
|
680
|
+
formatPrint: function formatPrint() {
|
681
|
+
return 'Print';
|
682
|
+
},
|
677
683
|
formatLoadingMessage: function formatLoadingMessage() {
|
678
684
|
return 'Зареждане, моля изчакайте';
|
679
685
|
},
|
@@ -675,6 +675,12 @@
|
|
675
675
|
*/
|
676
676
|
|
677
677
|
$.fn.bootstrapTable.locales['ca-ES'] = {
|
678
|
+
formatCopyRows: function formatCopyRows() {
|
679
|
+
return 'Copy Rows';
|
680
|
+
},
|
681
|
+
formatPrint: function formatPrint() {
|
682
|
+
return 'Print';
|
683
|
+
},
|
678
684
|
formatLoadingMessage: function formatLoadingMessage() {
|
679
685
|
return 'Espereu, si us plau';
|
680
686
|
},
|
@@ -675,6 +675,12 @@
|
|
675
675
|
*/
|
676
676
|
|
677
677
|
$.fn.bootstrapTable.locales['cs-CZ'] = {
|
678
|
+
formatCopyRows: function formatCopyRows() {
|
679
|
+
return 'Copy Rows';
|
680
|
+
},
|
681
|
+
formatPrint: function formatPrint() {
|
682
|
+
return 'Print';
|
683
|
+
},
|
678
684
|
formatLoadingMessage: function formatLoadingMessage() {
|
679
685
|
return 'Čekejte, prosím';
|
680
686
|
},
|
@@ -674,6 +674,12 @@
|
|
674
674
|
*/
|
675
675
|
|
676
676
|
$.fn.bootstrapTable.locales['da-DK'] = {
|
677
|
+
formatCopyRows: function formatCopyRows() {
|
678
|
+
return 'Copy Rows';
|
679
|
+
},
|
680
|
+
formatPrint: function formatPrint() {
|
681
|
+
return 'Print';
|
682
|
+
},
|
677
683
|
formatLoadingMessage: function formatLoadingMessage() {
|
678
684
|
return 'Indlæser, vent venligst';
|
679
685
|
},
|
@@ -674,6 +674,12 @@
|
|
674
674
|
*/
|
675
675
|
|
676
676
|
$.fn.bootstrapTable.locales['de-DE'] = {
|
677
|
+
formatCopyRows: function formatCopyRows() {
|
678
|
+
return 'Zeilen kopieren';
|
679
|
+
},
|
680
|
+
formatPrint: function formatPrint() {
|
681
|
+
return 'Drucken';
|
682
|
+
},
|
677
683
|
formatLoadingMessage: function formatLoadingMessage() {
|
678
684
|
return 'Lade, bitte warten';
|
679
685
|
},
|
@@ -757,13 +763,13 @@
|
|
757
763
|
return 'Schließen';
|
758
764
|
},
|
759
765
|
formatFilterControlSwitch: function formatFilterControlSwitch() {
|
760
|
-
return 'Verstecke/Zeige
|
766
|
+
return 'Verstecke/Zeige Filter';
|
761
767
|
},
|
762
768
|
formatFilterControlSwitchHide: function formatFilterControlSwitchHide() {
|
763
|
-
return 'Verstecke
|
769
|
+
return 'Verstecke Filter';
|
764
770
|
},
|
765
771
|
formatFilterControlSwitchShow: function formatFilterControlSwitchShow() {
|
766
|
-
return 'Zeige
|
772
|
+
return 'Zeige Filter';
|
767
773
|
}
|
768
774
|
};
|
769
775
|
$.extend($.fn.bootstrapTable.defaults, $.fn.bootstrapTable.locales['de-DE']);
|
@@ -674,6 +674,12 @@
|
|
674
674
|
*/
|
675
675
|
|
676
676
|
$.fn.bootstrapTable.locales['el-GR'] = {
|
677
|
+
formatCopyRows: function formatCopyRows() {
|
678
|
+
return 'Copy Rows';
|
679
|
+
},
|
680
|
+
formatPrint: function formatPrint() {
|
681
|
+
return 'Print';
|
682
|
+
},
|
677
683
|
formatLoadingMessage: function formatLoadingMessage() {
|
678
684
|
return 'Φορτώνει, παρακαλώ περιμένετε';
|
679
685
|
},
|
@@ -674,6 +674,12 @@
|
|
674
674
|
*/
|
675
675
|
|
676
676
|
$.fn.bootstrapTable.locales['en-US'] = {
|
677
|
+
formatCopyRows: function formatCopyRows() {
|
678
|
+
return 'Copy Rows';
|
679
|
+
},
|
680
|
+
formatPrint: function formatPrint() {
|
681
|
+
return 'Print';
|
682
|
+
},
|
677
683
|
formatLoadingMessage: function formatLoadingMessage() {
|
678
684
|
return 'Loading, please wait';
|
679
685
|
},
|
@@ -675,6 +675,12 @@
|
|
675
675
|
*/
|
676
676
|
|
677
677
|
$.fn.bootstrapTable.locales['es-AR'] = {
|
678
|
+
formatCopyRows: function formatCopyRows() {
|
679
|
+
return 'Copy Rows';
|
680
|
+
},
|
681
|
+
formatPrint: function formatPrint() {
|
682
|
+
return 'Print';
|
683
|
+
},
|
678
684
|
formatLoadingMessage: function formatLoadingMessage() {
|
679
685
|
return 'Cargando, espere por favor';
|
680
686
|
},
|
@@ -675,6 +675,12 @@
|
|
675
675
|
*/
|
676
676
|
|
677
677
|
$.fn.bootstrapTable.locales['es-CL'] = {
|
678
|
+
formatCopyRows: function formatCopyRows() {
|
679
|
+
return 'Copy Rows';
|
680
|
+
},
|
681
|
+
formatPrint: function formatPrint() {
|
682
|
+
return 'Print';
|
683
|
+
},
|
678
684
|
formatLoadingMessage: function formatLoadingMessage() {
|
679
685
|
return 'Cargando, espere por favor';
|
680
686
|
},
|
@@ -674,6 +674,12 @@
|
|
674
674
|
*/
|
675
675
|
|
676
676
|
$.fn.bootstrapTable.locales['es-CR'] = {
|
677
|
+
formatCopyRows: function formatCopyRows() {
|
678
|
+
return 'Copy Rows';
|
679
|
+
},
|
680
|
+
formatPrint: function formatPrint() {
|
681
|
+
return 'Print';
|
682
|
+
},
|
677
683
|
formatLoadingMessage: function formatLoadingMessage() {
|
678
684
|
return 'Cargando, por favor espere';
|
679
685
|
},
|
@@ -674,6 +674,12 @@
|
|
674
674
|
*/
|
675
675
|
|
676
676
|
$.fn.bootstrapTable.locales['es-ES'] = {
|
677
|
+
formatCopyRows: function formatCopyRows() {
|
678
|
+
return 'Copy Rows';
|
679
|
+
},
|
680
|
+
formatPrint: function formatPrint() {
|
681
|
+
return 'Print';
|
682
|
+
},
|
677
683
|
formatLoadingMessage: function formatLoadingMessage() {
|
678
684
|
return 'Por favor espere';
|
679
685
|
},
|
@@ -676,6 +676,12 @@
|
|
676
676
|
*/
|
677
677
|
|
678
678
|
$.fn.bootstrapTable.locales['es-MX'] = {
|
679
|
+
formatCopyRows: function formatCopyRows() {
|
680
|
+
return 'Copy Rows';
|
681
|
+
},
|
682
|
+
formatPrint: function formatPrint() {
|
683
|
+
return 'Print';
|
684
|
+
},
|
679
685
|
formatLoadingMessage: function formatLoadingMessage() {
|
680
686
|
return 'Cargando, espere por favor';
|
681
687
|
},
|
@@ -674,6 +674,12 @@
|
|
674
674
|
*/
|
675
675
|
|
676
676
|
$.fn.bootstrapTable.locales['es-NI'] = {
|
677
|
+
formatCopyRows: function formatCopyRows() {
|
678
|
+
return 'Copy Rows';
|
679
|
+
},
|
680
|
+
formatPrint: function formatPrint() {
|
681
|
+
return 'Print';
|
682
|
+
},
|
677
683
|
formatLoadingMessage: function formatLoadingMessage() {
|
678
684
|
return 'Cargando, por favor espere';
|
679
685
|
},
|
@@ -674,6 +674,12 @@
|
|
674
674
|
*/
|
675
675
|
|
676
676
|
$.fn.bootstrapTable.locales['es-SP'] = {
|
677
|
+
formatCopyRows: function formatCopyRows() {
|
678
|
+
return 'Copy Rows';
|
679
|
+
},
|
680
|
+
formatPrint: function formatPrint() {
|
681
|
+
return 'Print';
|
682
|
+
},
|
677
683
|
formatLoadingMessage: function formatLoadingMessage() {
|
678
684
|
return 'Cargando, por favor espera';
|
679
685
|
},
|
@@ -674,6 +674,12 @@
|
|
674
674
|
*/
|
675
675
|
|
676
676
|
$.fn.bootstrapTable.locales['et-EE'] = {
|
677
|
+
formatCopyRows: function formatCopyRows() {
|
678
|
+
return 'Copy Rows';
|
679
|
+
},
|
680
|
+
formatPrint: function formatPrint() {
|
681
|
+
return 'Print';
|
682
|
+
},
|
677
683
|
formatLoadingMessage: function formatLoadingMessage() {
|
678
684
|
return 'Päring käib, palun oota';
|
679
685
|
},
|
@@ -674,6 +674,12 @@
|
|
674
674
|
*/
|
675
675
|
|
676
676
|
$.fn.bootstrapTable.locales['eu-EU'] = {
|
677
|
+
formatCopyRows: function formatCopyRows() {
|
678
|
+
return 'Copy Rows';
|
679
|
+
},
|
680
|
+
formatPrint: function formatPrint() {
|
681
|
+
return 'Print';
|
682
|
+
},
|
677
683
|
formatLoadingMessage: function formatLoadingMessage() {
|
678
684
|
return 'Itxaron mesedez';
|
679
685
|
},
|
@@ -674,6 +674,12 @@
|
|
674
674
|
*/
|
675
675
|
|
676
676
|
$.fn.bootstrapTable.locales['fa-IR'] = {
|
677
|
+
formatCopyRows: function formatCopyRows() {
|
678
|
+
return 'Copy Rows';
|
679
|
+
},
|
680
|
+
formatPrint: function formatPrint() {
|
681
|
+
return 'Print';
|
682
|
+
},
|
677
683
|
formatLoadingMessage: function formatLoadingMessage() {
|
678
684
|
return 'در حال بارگذاری, لطفا صبر کنید';
|
679
685
|
},
|
@@ -674,6 +674,12 @@
|
|
674
674
|
*/
|
675
675
|
|
676
676
|
$.fn.bootstrapTable.locales['fi-FI'] = {
|
677
|
+
formatCopyRows: function formatCopyRows() {
|
678
|
+
return 'Copy Rows';
|
679
|
+
},
|
680
|
+
formatPrint: function formatPrint() {
|
681
|
+
return 'Print';
|
682
|
+
},
|
677
683
|
formatLoadingMessage: function formatLoadingMessage() {
|
678
684
|
return 'Ladataan, ole hyvä ja odota';
|
679
685
|
},
|
@@ -675,6 +675,12 @@
|
|
675
675
|
*/
|
676
676
|
|
677
677
|
$.fn.bootstrapTable.locales['fr-BE'] = {
|
678
|
+
formatCopyRows: function formatCopyRows() {
|
679
|
+
return 'Copy Rows';
|
680
|
+
},
|
681
|
+
formatPrint: function formatPrint() {
|
682
|
+
return 'Print';
|
683
|
+
},
|
678
684
|
formatLoadingMessage: function formatLoadingMessage() {
|
679
685
|
return 'Chargement en cours';
|
680
686
|
},
|
@@ -674,6 +674,12 @@
|
|
674
674
|
*/
|
675
675
|
|
676
676
|
$.fn.bootstrapTable.locales['fr-CH'] = {
|
677
|
+
formatCopyRows: function formatCopyRows() {
|
678
|
+
return 'Copy Rows';
|
679
|
+
},
|
680
|
+
formatPrint: function formatPrint() {
|
681
|
+
return 'Print';
|
682
|
+
},
|
677
683
|
formatLoadingMessage: function formatLoadingMessage() {
|
678
684
|
return 'Chargement en cours';
|
679
685
|
},
|
@@ -676,6 +676,12 @@
|
|
676
676
|
*/
|
677
677
|
|
678
678
|
$.fn.bootstrapTable.locales['fr-FR'] = {
|
679
|
+
formatCopyRows: function formatCopyRows() {
|
680
|
+
return 'Copy Rows';
|
681
|
+
},
|
682
|
+
formatPrint: function formatPrint() {
|
683
|
+
return 'Print';
|
684
|
+
},
|
679
685
|
formatLoadingMessage: function formatLoadingMessage() {
|
680
686
|
return 'Chargement en cours';
|
681
687
|
},
|
@@ -674,6 +674,12 @@
|
|
674
674
|
*/
|
675
675
|
|
676
676
|
$.fn.bootstrapTable.locales['fr-LU'] = {
|
677
|
+
formatCopyRows: function formatCopyRows() {
|
678
|
+
return 'Copy Rows';
|
679
|
+
},
|
680
|
+
formatPrint: function formatPrint() {
|
681
|
+
return 'Print';
|
682
|
+
},
|
677
683
|
formatLoadingMessage: function formatLoadingMessage() {
|
678
684
|
return 'Chargement en cours';
|
679
685
|
},
|