Skip to content

Commit e88cb15

Browse files
authored
Merge pull request #6108 from wenzhixin/develop
v1.20.0
2 parents d73547c + 60fe338 commit e88cb15

File tree

259 files changed

+55386
-24331
lines changed

Some content is hidden

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

259 files changed

+55386
-24331
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
- stage: test
88
language: node_js
99
node_js:
10-
- 12
10+
- 14
1111
name: "Lint src and check docs"
1212
cache:
1313
npm: true
@@ -22,7 +22,7 @@ jobs:
2222
- stage: test
2323
language: node_js
2424
node_js:
25-
- 12
25+
- 14
2626
name: "Cypress Test"
2727
cache:
2828
npm: true
@@ -40,7 +40,7 @@ jobs:
4040
rvm:
4141
- 2.4.1
4242
before_install:
43-
- nvm install 12
43+
- nvm install 14
4444
script: ./deploy.sh
4545
if: branch = master AND type = push
4646
cache: bundler

CHANGELOG.md

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

4+
### 1.20.0
5+
6+
#### Core
7+
8+
- **New:** Used `bootstrap5` as the default theme.
9+
- **New:** Added column-switch-all event of toggle all columns.
10+
- **New:** Added hi-IN and lb-LU locales.
11+
- **Update:** Fixed the toolbar cannot refresh search bug.
12+
- **Update:** Fixed the card view align style bug.
13+
- **Update:** Fixed custom search filter bug if the value is Object.
14+
- **Update:** Fixed table border displays bug when setting height.
15+
- **Update:** Fixed error when the column events are undefined.
16+
- **Update:** Fixed escape column option doesn't override table option bug.
17+
- **Update:** Fixed toggle all columns error when column switchable is false.
18+
- **Update:** Fixed check if the column is visible on card view.
19+
- **Update:** Fixed hide loading bug when canceling the request.
20+
- **Update:** Fixed default value of `clickToSelect` column option.
21+
- **Update:** Fixed `onVirtualScroll` not define default method.
22+
- **Update:** Updated cs-CZ, ko-KR, nl-NL, nl-BE, bg-BG, fr-LU locales.
23+
24+
##### Extensions
25+
26+
- **New(filter-control):** New version of filter-control with new features.
27+
- **New(reorder-rows):**: Added `onAllowDrop` and `onDragStop` options.
28+
- **Update(cookie):** Fixed `sortName` and `sortOrder` bug with cookie.
29+
- **Update(cookie):** Fixed the toggle column bug with the cookie.
30+
- **Update(export):** Fixed selector error if only one export type is defined.
31+
- **Update(filter-control):** Fixed new input class `form-select` of bootstrap 5.
32+
- **Update(multiple-sort):** Fixed the modal cannot close after sorting.
33+
- **Update(print):** Fixed missing print button for bootstrap 5.
34+
- **Update(print):** Fixed `printPageBuilder` option cannot define in html attribute.
35+
- **Update(toolbar):** Fixed toolbar extension modal bug with bootstrap 5.
36+
437
### 1.19.1
538

639
#### 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.19.1
30+
current_version: 1.20.0
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.19.1",
3+
"version": "1.20.0",
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": {
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
module.exports = (theme = '') => {
2+
const baseUrl = require('../../common/utils')(theme, 'for-tests/extensions/filter-control')
3+
4+
describe('Test basic filter control', () => {
5+
it('Test basic filter control', () => {
6+
cy.visit(`${baseUrl}filter-control.html`)
7+
.get('.table > thead > tr > th > .fht-cell > .filter-control')
8+
.its('length')
9+
.should('be.gte', 1)
10+
})
11+
12+
it('Test if filter control visible is set to false, controls shouldnt be visible.', () => {
13+
cy.visit(`${baseUrl}filter-control-filterControlVisible.html`)
14+
.get('.table > thead > tr > th > .fht-cell > .filter-control')
15+
.invoke('attr', 'style')
16+
.should('eq', 'display: none;')
17+
})
18+
19+
it('Test if filter control searchOnEnteyKey is set to true. Type "cypress" and validate table should not perform any action.', () => {
20+
cy.visit(`${baseUrl}filter-control-searchOnEnterKey.html`)
21+
.wait(1000)
22+
.get('.table > thead > tr > th > .fht-cell > .filter-control')
23+
.find('input')
24+
.type('cypress')
25+
.get('.table > tbody > tr')
26+
.its('length')
27+
.should('eq', 21)
28+
})
29+
30+
it('Test if filter control searchOnEnteyKey is set to true. Type "Item 0", hit enter and validate table should perform search action.', () => {
31+
cy.visit(`${baseUrl}filter-control-searchOnEnterKey.html`)
32+
.wait(1000)
33+
.get('.table > thead > tr > th > .fht-cell > .filter-control')
34+
.find('input')
35+
.type('Item 0')
36+
.type('{enter}')
37+
.wait(1000)
38+
.get('.table > tbody > tr')
39+
.its('length')
40+
.should('eq', 1)
41+
})
42+
})
43+
}
44+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require('../../../../extensions/filter-control/options')('bootstrap3')
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require('../../../../extensions/filter-control/options')('bootstrap5')
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require('../../../../extensions/filter-control/options')('bulma')
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require('../../../../extensions/filter-control/options')('foundation')
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require('../../../../extensions/filter-control/options')()

0 commit comments

Comments
 (0)