Skip to content

Commit 7fabe36

Browse files
committed
Merge branch 'develop'
2 parents f6f8ded + 13e3b72 commit 7fabe36

File tree

118 files changed

+1375
-1312
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+1375
-1312
lines changed

.github/ISSUE_TEMPLATE/1_Bug_report.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ body:
77
id: affected-versions
88
attributes:
99
label: Bootstraptable version(s) affected
10-
placeholder: 1.21.0
10+
placeholder: 1.21.1
1111
validations:
1212
required: true
1313
- type: textarea

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
ChangeLog
22
---------
33

4+
### 1.21.1
5+
6+
#### Core
7+
8+
- **Update:** Improved `updateCell` to update one HTML cell only.
9+
- **Update:** Updated `fr-FR` locale.
10+
- **Update:** Added missing locales for aria-label.
11+
12+
#### Extensions
13+
14+
- **Update(export):** Added missing locales for aria-label.
15+
416
### 1.21.0
517

618
#### Core

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ algolia:
2727
index_name: bootstrap-table
2828

2929
# Custom variables
30-
current_version: 1.21.0
30+
current_version: 1.21.1
3131
title: "Bootstrap Table"
3232
description: "An extended table to the integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)"
3333
authors: "Zhixin Wen, and Bootstrap Table contributors"

bootstrap-table.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bootstrap-table",
3-
"version": "1.21.0",
3+
"version": "1.21.1",
44
"title": "Bootstrap Table",
55
"description": "An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)",
66
"author": {

dist/bootstrap-table-locale-all.js

Lines changed: 896 additions & 896 deletions
Large diffs are not rendered by default.

dist/bootstrap-table-locale-all.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bootstrap-table-vue.esm.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bootstrap-table-vue.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bootstrap-table.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @author zhixin wen <[email protected]>
3-
* version: 1.21.0
3+
* version: 1.21.1
44
* https://github.com/wenzhixin/bootstrap-table/
55
*/
66
.bootstrap-table .fixed-table-toolbar::after {

dist/bootstrap-table.js

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4773,7 +4773,7 @@
47734773
}
47744774
};
47754775

4776-
var VERSION = '1.21.0';
4776+
var VERSION = '1.21.1';
47774777
var bootstrapVersion = Utils.getBootstrapVersion();
47784778
var CONSTANTS = {
47794779
3: {
@@ -6027,7 +6027,7 @@
60276027
render: false,
60286028
html: function html() {
60296029
var html = [];
6030-
html.push("<div class=\"keep-open ".concat(_this4.constants.classes.buttonsDropdown, "\" title=\"").concat(opts.formatColumns(), "\">\n <button class=\"").concat(_this4.constants.buttonsClass, " dropdown-toggle\" type=\"button\" ").concat(_this4.constants.dataToggle, "=\"dropdown\"\n aria-label=\"Columns\" title=\"").concat(opts.formatColumns(), "\">\n ").concat(opts.showButtonIcons ? Utils.sprintf(_this4.constants.html.icon, opts.iconsPrefix, opts.icons.columns) : '', "\n ").concat(opts.showButtonText ? opts.formatColumns() : '', "\n ").concat(_this4.constants.html.dropdownCaret, "\n </button>\n ").concat(_this4.constants.html.toolbarDropdown[0]));
6030+
html.push("<div class=\"keep-open ".concat(_this4.constants.classes.buttonsDropdown, "\" title=\"").concat(opts.formatColumns(), "\">\n <button class=\"").concat(_this4.constants.buttonsClass, " dropdown-toggle\" type=\"button\" ").concat(_this4.constants.dataToggle, "=\"dropdown\"\n aria-label=\"").concat(opts.formatColumns(), "\" title=\"").concat(opts.formatColumns(), "\">\n ").concat(opts.showButtonIcons ? Utils.sprintf(_this4.constants.html.icon, opts.iconsPrefix, opts.icons.columns) : '', "\n ").concat(opts.showButtonText ? opts.formatColumns() : '', "\n ").concat(_this4.constants.html.dropdownCaret, "\n </button>\n ").concat(_this4.constants.html.toolbarDropdown[0]));
60316031

60326032
if (opts.showColumnsSearch) {
60336033
html.push(Utils.sprintf(_this4.constants.html.toolbarDropdownItem, Utils.sprintf('<input type="text" class="%s" name="columnsSearch" placeholder="%s" autocomplete="off">', _this4.constants.classes.input, opts.formatSearch())));
@@ -8136,16 +8136,35 @@
81368136
this.initPagination();
81378137
this.initBody(true);
81388138
}
8139+
}, {
8140+
key: "_updateCellOnly",
8141+
value: function _updateCellOnly(field, index) {
8142+
var rowHtml = this.initRow(this.options.data[index], index);
8143+
var fieldIndex = this.getVisibleFields().indexOf(field);
8144+
8145+
if (fieldIndex === -1) {
8146+
return;
8147+
}
8148+
8149+
fieldIndex += Utils.getDetailViewIndexOffset(this.options);
8150+
this.$body.find(">tr[data-index=".concat(index, "]")).find(">td:eq(".concat(fieldIndex, ")")).replaceWith($__default["default"](rowHtml).find(">td:eq(".concat(fieldIndex, ")")));
8151+
this.initBodyEvent();
8152+
this.initFooter();
8153+
this.resetView();
8154+
this.updateSelected();
8155+
}
81398156
}, {
81408157
key: "updateCell",
81418158
value: function updateCell(params) {
81428159
if (!params.hasOwnProperty('index') || !params.hasOwnProperty('field') || !params.hasOwnProperty('value')) {
81438160
return;
81448161
}
81458162

8146-
this.data[params.index][params.field] = params.value;
8163+
this.options.data[params.index][params.field] = params.value;
81478164

81488165
if (params.reinit === false) {
8166+
this._updateCellOnly(params.field, params.index);
8167+
81498168
return;
81508169
}
81518170

@@ -8163,16 +8182,18 @@
81638182
field = _ref6.field,
81648183
value = _ref6.value;
81658184

8166-
var rowId = _this19.options.data.indexOf(_this19.getRowByUniqueId(id));
8185+
var index = _this19.options.data.indexOf(_this19.getRowByUniqueId(id));
81678186

8168-
if (rowId === -1) {
8187+
if (index === -1) {
81698188
return;
81708189
}
81718190

8172-
_this19.options.data[rowId][field] = value;
8191+
_this19.options.data[index][field] = value;
81738192
});
81748193

81758194
if (params.reinit === false) {
8195+
this._updateCellOnly(params.field, this.options.data.indexOf(this.getRowByUniqueId(params.id)));
8196+
81768197
return;
81778198
}
81788199

0 commit comments

Comments
 (0)