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
@@ -945,6 +945,56 @@
|
|
945
945
|
}
|
946
946
|
});
|
947
947
|
|
948
|
+
var nativeAssign = Object.assign;
|
949
|
+
var defineProperty = Object.defineProperty;
|
950
|
+
|
951
|
+
// `Object.assign` method
|
952
|
+
// https://tc39.github.io/ecma262/#sec-object.assign
|
953
|
+
var objectAssign = !nativeAssign || fails(function () {
|
954
|
+
// should have correct order of operations (Edge bug)
|
955
|
+
if (descriptors && nativeAssign({ b: 1 }, nativeAssign(defineProperty({}, 'a', {
|
956
|
+
enumerable: true,
|
957
|
+
get: function () {
|
958
|
+
defineProperty(this, 'b', {
|
959
|
+
value: 3,
|
960
|
+
enumerable: false
|
961
|
+
});
|
962
|
+
}
|
963
|
+
}), { b: 2 })).b !== 1) return true;
|
964
|
+
// should work with symbols and should have deterministic property order (V8 bug)
|
965
|
+
var A = {};
|
966
|
+
var B = {};
|
967
|
+
// eslint-disable-next-line no-undef
|
968
|
+
var symbol = Symbol();
|
969
|
+
var alphabet = 'abcdefghijklmnopqrst';
|
970
|
+
A[symbol] = 7;
|
971
|
+
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
972
|
+
return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
|
973
|
+
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
|
974
|
+
var T = toObject(target);
|
975
|
+
var argumentsLength = arguments.length;
|
976
|
+
var index = 1;
|
977
|
+
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
978
|
+
var propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
979
|
+
while (argumentsLength > index) {
|
980
|
+
var S = indexedObject(arguments[index++]);
|
981
|
+
var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);
|
982
|
+
var length = keys.length;
|
983
|
+
var j = 0;
|
984
|
+
var key;
|
985
|
+
while (length > j) {
|
986
|
+
key = keys[j++];
|
987
|
+
if (!descriptors || propertyIsEnumerable.call(S, key)) T[key] = S[key];
|
988
|
+
}
|
989
|
+
} return T;
|
990
|
+
} : nativeAssign;
|
991
|
+
|
992
|
+
// `Object.assign` method
|
993
|
+
// https://tc39.github.io/ecma262/#sec-object.assign
|
994
|
+
_export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
|
995
|
+
assign: objectAssign
|
996
|
+
});
|
997
|
+
|
948
998
|
var FAILS_ON_PRIMITIVES = fails(function () { objectKeys(1); });
|
949
999
|
|
950
1000
|
// `Object.keys` method
|
@@ -2513,7 +2563,7 @@
|
|
2513
2563
|
alignmentSelectControlOptions: undefined,
|
2514
2564
|
filterTemplate: {
|
2515
2565
|
input: function input(that, field, placeholder, value) {
|
2516
|
-
return Utils$1.sprintf('<input type="
|
2566
|
+
return Utils$1.sprintf('<input type="search" class="form-control bootstrap-table-filter-control-%s search-input" style="width: 100%;" placeholder="%s" value="%s">', field, 'undefined' === typeof placeholder ? '' : placeholder, 'undefined' === typeof value ? '' : value);
|
2517
2567
|
},
|
2518
2568
|
select: function select(_ref, field) {
|
2519
2569
|
var options = _ref.options;
|
@@ -2829,17 +2879,21 @@
|
|
2829
2879
|
this.showToolbar = this.showToolbar || this.options.showFilterControlSwitch;
|
2830
2880
|
this.showSearchClearButton = this.options.filterControl && this.options.showSearchClearButton;
|
2831
2881
|
|
2832
|
-
_get(_getPrototypeOf(_class.prototype), "initToolbar", this).call(this);
|
2833
|
-
|
2834
2882
|
if (this.options.showFilterControlSwitch) {
|
2835
|
-
|
2836
|
-
|
2837
|
-
|
2838
|
-
|
2839
|
-
|
2840
|
-
|
2841
|
-
|
2883
|
+
this.buttons = Object.assign(this.buttons, {
|
2884
|
+
filterControlSwitch: {
|
2885
|
+
'text': this.options.filterControlVisible ? this.options.formatFilterControlSwitchHide() : this.options.formatFilterControlSwitchShow(),
|
2886
|
+
'icon': this.options.filterControlVisible ? this.options.icons.filterControlSwitchHide : this.options.icons.filterControlSwitchShow,
|
2887
|
+
'event': this.toggleFilterControl,
|
2888
|
+
'attributes': {
|
2889
|
+
'aria-label': this.options.formatFilterControlSwitch(),
|
2890
|
+
'title': this.options.formatFilterControlSwitch()
|
2891
|
+
}
|
2892
|
+
}
|
2893
|
+
});
|
2842
2894
|
}
|
2895
|
+
|
2896
|
+
_get(_getPrototypeOf(_class.prototype), "initToolbar", this).call(this);
|
2843
2897
|
}
|
2844
2898
|
}, {
|
2845
2899
|
key: "resetSearch",
|
@@ -2858,7 +2912,7 @@
|
|
2858
2912
|
var cookies = collectBootstrapCookies();
|
2859
2913
|
var table = this.$el.closest('table');
|
2860
2914
|
var controls = getSearchControls(that);
|
2861
|
-
var search =
|
2915
|
+
var search = Utils$1.getSearchInput(this);
|
2862
2916
|
var hasValues = false;
|
2863
2917
|
var timeoutId = 0;
|
2864
2918
|
$.each(that.options.valuesFilterControl, function (i, item) {
|
data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.css
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
-
.bootstrap-table .table > tbody > tr.groupBy
|
1
|
+
.bootstrap-table .table > tbody > tr.groupBy.expanded,
|
2
|
+
.bootstrap-table .table > tbody > tr.groupBy.collapsed {
|
2
3
|
cursor: pointer;
|
3
4
|
}
|
4
5
|
|
5
|
-
.bootstrap-table .table > tbody > tr.hidden
|
6
|
+
.bootstrap-table .table > tbody > tr.hidden {
|
6
7
|
display: none;
|
7
8
|
}
|