Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
4d6ad8d
init for starting develop
AllenFang Aug 19, 2017
23cb0fd
[develop] environment setup for testing (#4)
chunming-c Aug 19, 2017
5b7a891
Bootstrap table base (#8)
AllenFang Aug 20, 2017
6b7d1f9
Allen/feature 9 (#10)
AllenFang Aug 20, 2017
7c424a2
Implement column formatter (#13)
AllenFang Aug 20, 2017
1e32ea2
Support nested data (#15)
AllenFang Aug 20, 2017
f62d4b1
CI environment setup (#16)
chunming-c Aug 20, 2017
1c07b6c
Implement custom style/class on cell (#20)
AllenFang Aug 22, 2017
20bb9c0
Implement column title (#22)
AllenFang Aug 26, 2017
95ca444
add event hooks on column (#25)
AllenFang Aug 26, 2017
b2bd0fc
implement align on header & body cell (#27)
AllenFang Aug 26, 2017
b00007c
fix #26
AllenFang Aug 26, 2017
4da199f
fix #29
AllenFang Aug 26, 2017
ee6afcb
fix #17
chunming-c Aug 27, 2017
507e554
fix #11
AllenFang Aug 27, 2017
c09bf7c
enhance storybook
chunming-c Aug 28, 2017
60d4e7e
fix #34
AllenFang Sep 2, 2017
6f45ae7
fix #31
AllenFang Sep 2, 2017
47e8076
refine the relation for props resolver and internal store
AllenFang Sep 2, 2017
9f9f78e
fix #40
AllenFang Sep 2, 2017
67c37e9
fix #18
chunming-c Sep 2, 2017
82b8275
Enhancement/code prettify (#46)
chunming-c Sep 3, 2017
ae5c677
Implement stateful layer (#48)
AllenFang Sep 3, 2017
f9ccbd0
examples enhance
chunming-c Sep 4, 2017
9199484
setup enhancement
chunming-c Sep 9, 2017
79fb252
fix #51
chunming-c Sep 12, 2017
ec1a927
fix #56
chunming-c Sep 16, 2017
2e10cb1
fix #47
AllenFang Sep 16, 2017
f6eea2f
fix #60
AllenFang Sep 20, 2017
ba7c2e9
Allow focus on the last character in Text Input (#65)
khaninD Sep 23, 2017
9f92b53
fix #63 (part1 - cell editing validation)
AllenFang Sep 23, 2017
c2e22d5
Improve development setup experience by fixing misspelled areas
thevangelist Oct 7, 2017
94d21fe
fix #66
khaninD Oct 10, 2017
7760d6a
refine #71
AllenFang Oct 10, 2017
3d6a293
fix #77
thevangelist Oct 10, 2017
105bd36
refine #78
AllenFang Oct 10, 2017
30d2645
Improve yarn install for travis
chunming-c Oct 11, 2017
8772591
fix #50
chunming-c Oct 11, 2017
7a5b88b
fix #63
AllenFang Oct 17, 2017
bc67dfc
Refine the code base for cell edit
AllenFang Oct 17, 2017
6887c12
no need BootstrapTableful anymore
AllenFang Oct 17, 2017
0ca6335
refine row selection to wrapper
AllenFang Oct 17, 2017
f52baa4
refine sort logic to wrapper
AllenFang Oct 17, 2017
4f7a3d7
refine row selection
AllenFang Oct 18, 2017
0440c63
always jsx-curly-spacing
AllenFang Oct 18, 2017
afef2ad
add missing HeaderCell.propTypes
AllenFang Oct 18, 2017
cb6410b
fix #101
AllenFang Oct 18, 2017
10f06dc
fix #104
AllenFang Oct 20, 2017
afc4187
fix #106
AllenFang Oct 20, 2017
b16da90
fix #108
AllenFang Oct 23, 2017
bbeb122
fix wrong higher order wrapping (#112)
AllenFang Oct 24, 2017
985a171
fix #111
AllenFang Oct 26, 2017
cf142d3
Improve CONTRIBUTING doc
konekoya Oct 26, 2017
974f129
fix #116
AllenFang Oct 26, 2017
ca02af3
logs messages on the story panel (#123)
chunming-c Oct 29, 2017
ab305a7
fix #119
AllenFang Oct 29, 2017
e1e8c00
fix #64
AllenFang Oct 29, 2017
19dc4d3
fix #129
AllenFang Oct 29, 2017
6110663
fix #128
AllenFang Oct 30, 2017
316b4e5
fix #133
AllenFang Oct 30, 2017
79a81e8
Bugfix/row selection (#131)
chunming-c Nov 5, 2017
3c88364
fix #135
AllenFang Nov 19, 2017
47f86df
patch docs for pagination (#139)
AllenFang Nov 19, 2017
f9abcf4
implement remote pagination
AllenFang Dec 2, 2017
28f1bdb
patch tests for remote pagination
AllenFang Dec 2, 2017
d43b3d6
add story remote pagination
AllenFang Dec 2, 2017
dfc0e15
fix #140
AllenFang Dec 2, 2017
dc096a6
implement loading overlay
AllenFang Dec 3, 2017
7030361
add stories for loading overlay
AllenFang Dec 3, 2017
fab06bf
patch docs for remote
AllenFang Dec 3, 2017
a363764
patch docs for overlay
AllenFang Dec 3, 2017
32b187f
no --pure-lockfile --ignore-scripts
AllenFang Dec 3, 2017
ff31b2f
fix #144
AllenFang Dec 3, 2017
574a314
funcaitonal store (#146)
AllenFang Dec 9, 2017
00f1105
Development/sorted classes and style (#136)
chunming-c Dec 10, 2017
4d04b75
fix wrong HOC for SortWrapper (#148)
AllenFang Dec 10, 2017
da907d4
fix liftcycle issue (#149)
AllenFang Dec 10, 2017
48004e1
patch for pagination document
chunming-c Dec 10, 2017
861809d
render filter in bootstrap table
AllenFang Dec 13, 2017
472f5d8
layout and wording beautify
chunming-c Dec 16, 2017
1879d77
Merge pull request #150 from react-bootstrap-table/document-pagination
AllenFang Dec 16, 2017
7016e55
implement filter
AllenFang Dec 13, 2017
297c5ad
fix pagination bug
AllenFang Dec 13, 2017
ba93a6c
All the downstream wrapper for filter wrapper should checking props.i…
AllenFang Dec 13, 2017
00185b8
add react-bootstrap-table2-filter
AllenFang Dec 13, 2017
c01db26
add story for text filter
AllenFang Dec 13, 2017
ad98cfe
implement column.filterValue
AllenFang Dec 16, 2017
51ef91b
add story for column.filterValue
AllenFang Dec 16, 2017
024dcf8
add some stories for text filter
AllenFang Dec 16, 2017
867465c
fix typo
AllenFang Dec 23, 2017
64b3710
docs for column filter
AllenFang Dec 23, 2017
80b1ac3
fix #147
AllenFang Dec 23, 2017
5cbeae7
Fix #154
AllenFang Dec 23, 2017
e14c596
refine remote examples
AllenFang Dec 24, 2017
c4eb2f8
refine remote mode on filter and pagination
AllenFang Dec 24, 2017
2fbc84e
pathc docs for remote mode
AllenFang Dec 24, 2017
90bea38
Merge pull request #156 refine remote filter and pagination
AllenFang Dec 24, 2017
4c89f91
implement remote resolver
AllenFang Dec 24, 2017
3bfeec7
fix bug for onTableChange argument change
AllenFang Dec 25, 2017
fb81595
refactoring wrapper mechanism
AllenFang Dec 25, 2017
bdfc4eb
Merge pull request #158 from react-bootstrap-table/enhance/refactoring
AllenFang Dec 25, 2017
01337f5
implement remote sorting
AllenFang Dec 27, 2017
fcf7800
fix #152
AllenFang Dec 28, 2017
a50a124
refine remote cell edit
AllenFang Jan 4, 2018
beafef9
patch tests for refining remote cell edit
AllenFang Jan 4, 2018
d5f7ae5
refined docs for remote cell edit
AllenFang Jan 4, 2018
6913434
fix #161
AllenFang Jan 6, 2018
19cca12
add dependency rimraf
chunming-c Dec 24, 2017
6e4ca34
add dependency git-directory-deploy
chunming-c Dec 24, 2017
cb1041b
auto release for storybook
chunming-c Dec 24, 2017
383cfba
add package babel-cli
chunming-c Dec 24, 2017
a37ef68
compile with babel
chunming-c Dec 24, 2017
3649f83
select lerna-changelog to generate change log
chunming-c Jan 1, 2018
39be018
move cell edit logic to react-bootstrap-table2-editor
AllenFang Jan 6, 2018
21344ec
refine cell edit stories
AllenFang Jan 6, 2018
9428f2d
refine cell edit tests
AllenFang Jan 7, 2018
e46d837
fix EditingCell liftcycle bug
AllenFang Jan 7, 2018
618346b
patch docs for cell edit
AllenFang Jan 7, 2018
55fe007
Merge pull request #165 from react-bootstrap-table/enhance/cell-edit-…
AllenFang Jan 7, 2018
6c0fc4f
Merge branch 'prod-setup' of https://github.com/Chun-MingChen/react-b…
AllenFang Jan 14, 2018
be4211b
no publish to gh-pages
AllenFang Jan 14, 2018
afc742c
no babel-cli build per repo
AllenFang Jan 14, 2018
3a8390c
react-bootstrap-table2-example depend other packages via webpack reso…
AllenFang Jan 14, 2018
ec705f2
umd build
AllenFang Jan 14, 2018
4bd7305
babel build
AllenFang Jan 15, 2018
5d0b0af
build sass
AllenFang Jan 16, 2018
41d76a0
gulp build for style, scripts and umd
AllenFang Jan 18, 2018
a9dd05d
fix entry point changed
AllenFang Jan 18, 2018
1cedea5
remove lerna-changelog
AllenFang Jan 18, 2018
2824039
Merge pull request #167 from react-bootstrap-table/Chun-MingChen-prod…
AllenFang Jan 18, 2018
0d3b76b
README.md
AllenFang Jan 20, 2018
42339b7
tweak package.json
AllenFang Jan 20, 2018
1ef006e
add README.md
AllenFang Jan 20, 2018
9b3abac
react-bootstrap-table2 -> react-bootstrap-table-next
AllenFang Jan 20, 2018
50a5bd3
refine file name
AllenFang Jan 20, 2018
b4f7028
no publish
AllenFang Jan 20, 2018
5f7c55a
drop start scripts
AllenFang Jan 20, 2018
b2e6bf9
tweak pagination factory name
AllenFang Jan 20, 2018
a556bd2
Publish
AllenFang Jan 21, 2018
659f2e2
upgrade lerna
AllenFang Jan 21, 2018
51e0cc9
README.md
AllenFang Jan 21, 2018
79d5a51
tweak package.json
AllenFang Jan 21, 2018
a2d082b
due to container will always set source data via store.setAllData so …
AllenFang Jan 21, 2018
2263282
tweak storybook webpack
AllenFang Jan 21, 2018
045ca4a
fix bug when remote pagination have same filter conds but change page…
AllenFang Jan 21, 2018
85f1eba
tweak stories
AllenFang Jan 21, 2018
d84b614
tweak README.md
AllenFang Jan 21, 2018
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["react", "es2015", "stage-0"]
}
27 changes: 27 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"browser": true,
"jest": true,
"node": true
},
"plugins": [
"react"
],
"rules": {
"comma-dangle": ["error", "never"],
"react/jsx-curly-spacing": [2, "always"],
"react/forbid-prop-types": 0,
"react/jsx-filename-extension": 0,
"react/jsx-space-before-closing": 0,
"react/jsx-tag-spacing": ["error", { "beforeSelfClosing": "always" }],
"import/extensions": 0, // skip import extensions
"import/no-unresolved": [0, { "ignore": ["^react-bootstrap-table"] }], // monorepo setup
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": 0
},
"globals": {
"jest": false
}
}
25 changes: 24 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,24 @@
node_modules
# node
node_modules
package-lock.json

# testing
coverage
.eslintcache

# misc
.DS_Store
.vscode

# logs
lerna-debug.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# gh-pages
storybook-static

# build
lib
dist
7 changes: 7 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
.DS_Store
*~
*.sublime-project
*.sublime-workspace
*.idea
*.iml
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: node_js

node_js:
- "7"
- "6"

cache:
yarn: true

branches:
only:
# skip master branch when it's under development phase
# - master
- develop

before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s
- export PATH="$HOME/.yarn/bin:$PATH"

install: yarn install
22 changes: 22 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Contributing

# Issues
Before opening an issue, please make sure your problem or request doesn't exist. When opening an issue, please provide the following information if possible:

* Example code or repo (please keep it simple and minimal)
* Steps to reproduce.
* `react-bootstrap-table2` version.

Additionally, asking questions and requesting new features are welcomed via [issue tracker](https://github.com/react-bootstrap-table/react-bootstrap-table2/issues).

# Pull Requests
Check [here](./docs/development.md) for getting started with development.

* We recommend filing an [issue](https://github.com/react-bootstrap-table/react-bootstrap-table2/issues) before you implement any new features.
* Please ensure that all the test suites have passed before submitting a PR. Besides, always test the actual business logic.
* If your PR is trying to fix a bug, please describe the details as much as you could and tag the bug number with hashtag.

# For the members of react-bootstrap-table2 org
* Please convert the ticket to issue when the ticket has moved from `Backlog` to `Ready`.
* Please update the docs if any API, feature or component props was changed or added. The code and docs should always be in sync.
* Please add a story example if any new feature was implemented.
65 changes: 43 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,46 @@
# react-bootstrap-table2
Rebuilt [react-bootstrap-table](https://github.com/AllenFang/react-bootstrap-table)

## The problems/features I want to solve
* Performance
* Fully compatiable with bootstrap 3 and 4(`react-bootstrap-table@4.0.0` already done)
* Clean Code and Testing
* Decrease the size of bundled file
* **Split module/functionality from core module, make core module more lightweight**
* Use [`storybook`](https://github.com/storybooks/storybook) to build examples
* Support the aggregation(summary) view
* Support the table footer
* Support column/row span on header and body
* Support sticky header
* Support table section([react-bootstrap-table#721](https://github.com/AllenFang/react-bootstrap-table/pull/721))
* Handle events well
* Fix unalign issues
* Make **stateless** table more easy to use(`react-bootstrap-table` alread have `remote` mode but have some bugs)
* Customizable table
* Support the nested data([react-bootstrap-table#50](https://github.com/AllenFang/react-bootstrap-table/issues/50◊))
* Consider to support column resize
* Consider to make animation on `react-bootstrap-table2` more easy

## The feature may lost on react-bootstrap-table
* Have a great chance that I don't support the vertical scrollbar on table
> `react-bootstrap-table2`'s npm module name is [**`react-bootstrap-table-next`**](https://www.npmjs.com/package/react-bootstrap-table-next) due to some guys already used it ;(

`react-bootstrap-table2` separate some functionalities from core modules to other modules like following:

* [`react-bootstrap-table2-next`](https://www.npmjs.com/package/react-bootstrap-table-next)
* Core table module, include sorting and row selection
* [`react-bootstrap-table2-filter`](https://www.npmjs.com/package/react-bootstrap-table2-filter)
* Column filter Addons
* [`react-bootstrap-table2-editor`](https://www.npmjs.com/package/react-bootstrap-table2-editor)
* Cell Editing Addons
* [`react-bootstrap-table2-paginator`](https://www.npmjs.com/package/react-bootstrap-table2-paginator)
* Pagination Addons
* [`react-bootstrap-z-overlay`](https://www.npmjs.com/package/react-bootstrap-table2-overlay)
* Overlay/Loading Addons

This can help your application with less bundled size and also help us have clean design to avoid handling to much logic in kernal module(SRP).

## Migration
If you are the user from legacy [`react-bootstrap-table`](https://github.com/AllenFang/react-bootstrap-table/), please have a look on [this](./docs/migration.md).

## Usage
See [getting started](https://react-bootstrap-table.github.io/react-bootstrap-table2/docs/getting-started.html).

## Online Demo
See `react-bootstrap-table2` [storybook](https://react-bootstrap-table.github.io/react-bootstrap-table2/storybook/index.html).

## Roadmap
See [release plans](https://react-bootstrap-table.github.io/react-bootstrap-table2/blog/2018/01/24/release-plan.html).

## Development
Please check [development guide](./docs/development.md).

## How should I run storybook example in my local?

```sh
$ git clone https://github.com/react-bootstrap-table/react-bootstrap-table2.git
$ cd react-bootstrap-table2
$ yarn install
$ yarn storybook
$ Go to localhost:6006
```

**Storybook examples: [`packages/react-bootstrap-table2-example/examples`](https://github.com/react-bootstrap-table/react-bootstrap-table2/tree/master/packages/react-bootstrap-table2-example/examples)**
Loading