Commit Graph

68 Commits

Author SHA1 Message Date
Parth Prajapati
c4f14e2b69 Added row object to onClick
- attach onClick only if defined
2018-02-01 06:20:50 +05:30
Parth Prajapati
feedcb9f4b Solves #179 2018-01-31 07:43:05 +05:30
AllenFang
e83dd1bf07 v0.1.1 2018-01-22 00:30:26 +08:00
AllenFang
067a94bea7 v0.1.0 2018-01-22 00:17:24 +08:00
AllenFang
85f1eba7cb tweak stories 2018-01-21 17:12:07 +08:00
AllenFang
2263282629 tweak storybook webpack 2018-01-21 16:10:55 +08:00
AllenFang
a556bd23ef Publish
- react-bootstrap-table2-editor@0.0.3
 - react-bootstrap-table2-example@0.0.3
 - react-bootstrap-table2-filter@0.0.3
 - react-bootstrap-table2-overlay@0.0.3
 - react-bootstrap-table2-paginator@0.0.3
 - react-bootstrap-table-next@0.0.3
2018-01-21 13:59:30 +08:00
AllenFang
b2e6bf93fb tweak pagination factory name 2018-01-20 17:53:58 +08:00
AllenFang
5f7c55aad4 drop start scripts 2018-01-20 15:27:08 +08:00
AllenFang
50a5bd3694 refine file name 2018-01-20 15:27:08 +08:00
AllenFang
3a8390c49e react-bootstrap-table2-example depend other packages via webpack resolver instead of node modules 2018-01-14 18:29:27 +08:00
AllenFang
be4211b3c9 no publish to gh-pages 2018-01-14 15:53:27 +08:00
AllenFang
6c0fc4ffb4 Merge branch 'prod-setup' of https://github.com/Chun-MingChen/react-bootstrap-table2 into Chun-MingChen-prod-setup 2018-01-14 15:41:46 +08:00
AllenFang
21344ec4b3 refine cell edit stories 2018-01-07 11:20:49 +08:00
AllenFang
39be018327 move cell edit logic to react-bootstrap-table2-editor 2018-01-07 11:20:32 +08:00
Chun-MingChen
a37ef6883d compile with babel 2018-01-07 01:46:52 +08:00
Chun-MingChen
cb1041b9d7 auto release for storybook
* deploy subdirectory of storybook-static to branch gh-pages
2018-01-07 01:29:13 +08:00
AllenFang
beafef9661 patch tests for refining remote cell edit 2018-01-04 23:45:40 +08:00
AllenFang
01337f50a7 implement remote sorting 2017-12-27 23:31:16 +08:00
AllenFang
3bfeec7946 fix bug for onTableChange argument change 2017-12-25 17:32:14 +08:00
AllenFang
e14c596b8c refine remote examples 2017-12-24 16:16:40 +08:00
Allen
5cbeae704b
Fix #154
* headerFormatter should custom whole the header cell

* add story for headerFormatter with filter and sort

* patch docs for column.headerFormatter
2017-12-23 14:52:04 +08:00
AllenFang
867465c123 fix typo 2017-12-23 13:53:36 +08:00
AllenFang
024dcf8c12 add some stories for text filter 2017-12-16 17:55:25 +08:00
AllenFang
51ef91b066 add story for column.filterValue 2017-12-16 17:55:25 +08:00
AllenFang
c01db26428 add story for text filter 2017-12-16 17:55:25 +08:00
AllenFang
00185b80ca add react-bootstrap-table2-filter 2017-12-16 17:55:25 +08:00
chunming
00f1105c8d Development/sorted classes and style (#136)
* fix missing defaultSorted props for default sort sample

* implement customized classes for sorted header

* [test] test for sorted header classes

* implement customized style for sorted header

* [test] test for sorted header style

* update document

* add missing props check and fix typo

* seperate sorting style and header into two props

* [test] add test case if column.headerStyle and column.headerClasses were defined

* implement customized header style and classes in column level

* [test] test for customized header style and classes in column level

* [DOC] document for customized classes and styles

* sample for customized classes and styles

* typo fix for document

* tuning the wording for test and documents
2017-12-10 13:53:03 +08:00
AllenFang
70303617fb add stories for loading overlay 2017-12-03 17:13:05 +08:00
AllenFang
d43b3d61ed add story remote pagination 2017-12-02 16:01:33 +08:00
Allen
3c88364efe
fix #135
* init react-bootstrap-table2-paginator

* add react-bootstrap-table2-paginator as dependency

* no container

* handle for wrapping pagination component

* add style for paginator addon

* add story for pagination

* implement pagination list

* constants maintain in core package

* implement sizePerPage dropdown

* fix unalign for sizePerPage dropdown and pagination list

* allow to return array from render(react@16 new feature)

* implement pagination hooks

* add story for pagination hooks

* fixed dependencies version and upgrade enzyme

* Shallow renderer no longer calls componentDidMount because DOM refs are not available

* classNames -> className for TextEditor

* add tests for pagination

* fix react-bootstrap-table can't be resolved in other modules

* implement custom page button title

* add test for page button title

* fix bug when sizePerPageList is an object array

* add story for custom pagination

* remove necessary component extends

* move pagination options to react-bootstrap-table2-paginator

* refine pagination stories

* implement hideSizePerPage

* implement hidePageListOnlyOnePage

* fix multiple same key warning

* remove help

* support start from react@^16
2017-11-19 17:42:20 +08:00
Allen
316b4e5302
fix #133
* implement row events

* add story for row event

* add tests for row events

* patch docs for rowEvents
2017-10-30 16:07:59 +08:00
Allen
6110663075
fix #128
* implement custom row classes

* add story for customizing row classes

* add test for rowClasses

* patch docs for rowClasses
2017-10-30 14:24:39 +08:00
Allen
19dc4d3984
fix #129
* implement custom row style

* add story for custom row style

* add tests for rowStyle

* patch docs for rowStyle
2017-10-29 18:17:20 +08:00
Allen
e1e8c00271
fix #64
* implement default sort

* add story for default sort

* add test for default sort

* patch docs for default sort

* a workaround to avoid render twice by story.add
2017-10-29 16:58:37 +08:00
Allen
ab305a7db2
fix #119
* implement selectRow.hideSelectColumn

* add story for selectRow.hideSelectColumn

* add tests for selectRow.hideSelectColumn

* patch docs for selectRow.hideSelectColumn
2017-10-29 14:58:33 +08:00
chunming
ca02af3d6a logs messages on the story panel (#123)
* ref: https://github.com/storybooks/storybook-addon-console
2017-10-29 14:01:03 +08:00
Allen
974f129aad fix #116
* implement selection hook

* add story for selection hooks

* add tests for selection hooks

* add missing test for store.setSelectedRowKeys(array)

* patch docs for selection hooks
2017-10-26 03:49:35 -05:00
Allen
985a1713ae fix #111
* implement selectRow.clickToSelect and selectRow.clickToEdit

* add selectRow.clickToSelect and selectRow.clickToEdit stories

* add clickToSelect to row selection examples for easier to select row

* refine selectRow.nonSelectable

* patch tests for selectRow.clickToSelect and selectRow.clickToEdit

* patch docs for selectRow.clickToSelect and selectRow.clickToEdit
2017-10-26 01:35:09 -05:00
Allen
b16da90ae9 fix #108
* implement selectRow.bgColor

* add story for selectRow.bgColor

* add testing for selectRow.bgColor

* patch docs for selectRow.bgColor
2017-10-23 03:08:30 -05:00
Allen
afc41879ee fix #106
* implement selectRow.nonSelectable

* add story for selectRow.nonSelectable

* add testing for selectRow.nonSelectable

* refine tests about row selection

* patch docs for selectRow.nonSelectable
2017-10-20 03:25:48 -05:00
Allen
10f06dca10 fix #104
* implement row seleciton style and class

* add testing for row selection style and class

* refine select row test

* add stories for row selection style and class

* add docs for row selection style and class

* patch for wrong docs
2017-10-20 00:44:25 -05:00
Allen
cb6410bbe4 fix #101
* implement cell editor style/class

* add stories for custom cell editor style and class

* patch testing for cell editor style and class

* patch docs for cell editor style and class
2017-10-18 09:15:41 -05:00
Allen
0440c63c66 always jsx-curly-spacing 2017-10-18 01:31:12 -05:00
Allen
6887c12d11 no need BootstrapTableful anymore
* refine BootstrapTableful -> BootstrapTable

* refine stateful-layer as container
2017-10-17 04:30:23 -05:00
Allen
7a5b88bcf6 fix #63
* support async cell editing

* refine cellEdit.onUpdate and cellEdit.editing

* refine cell edit

* add redux

* add stories for async cell edit

* fix test case and patch tests for async cell editing

* patch docs for cellEdit prop

* fix bug produced by rebasing lol
2017-10-17 02:27:48 -05:00
chunming
877259158e fix #50
* implement row single and multiple selection

* radio button for single, checkbox for multiple
* update component if status was changing

* implement header cell for row selection

* render checkbox for multiple, nothing for single
* default css for th[data-th-row-selection]
* update component if status was changing

* transform cursor to pointer when hover button radio and checkbox

* story for single and multiple rows selection

* remove props required field and turn off eslint

* [test] adapt with other component

* props resolver for cell selection

* if row selection was disabled, return mode 'ROW_SELECT_DISABLED'

* refactor row selection cell

* rename to selection-cell
* remove unnecessary props
* better coding style

* props resolver for header cell selection

* refactor row selection for header cell

* rename to selection-header-cell
* remove unnecessary props
* better coding style
* new logic for handleSelectAllRows

* tunning for multi selection logic

* allow user to customize select all result
* remove cursor point
* remove uncessary utils

* tunning for function naming

* mock data for resolved props including both body and header

* judge cell-editable and row-selectable with mode

* [test] unit test for props-resolver

* move position of test case of cellEdit
* add test for resolveCellSelectionProps
* add test for resolveHeaderCellSelectionProps
* accept row keys for mock-component

* [test] add test for body

* [test] add test for header

* [test] add test for row

* [test] add test for selection-cell

* fix typo

* [test] add test for selection-header-cell

* add test for checkbox in selection-header-cell

* [test] add test for bootstrap-table

* test for handleRowSelect

* test for handleAllRowsSelect

* remove uncessary prop

* remove unnecessary dafault mode for selectRow

* add description for props shape
* remove uncessary declaration of inputType
* add isRequred for selectRow.mode

* [test] verify the correctness of params when clicking on selection cell

* [test] modification for test wording and unmatched data type

* handle logic of row selection inside the store

* ignore the situation of pagination
* correct the tests

* [test] add test for store/base.js

* Document for row selection

* modication for defects

* simplify proptypes to basic data type
* row selection document in README
* refactor all function test with sinon

* refactor all mock function to sinon.stub() instead jest.fn()

* fix conflict
2017-10-11 10:28:53 -05:00
Allen
105bd36a5e refine #78
* refine #78

* patch docs for caption prop
2017-10-10 02:28:25 -05:00
Esa Juhana
3d6a293e5e fix #77
* Implement basic usage of table <caption> element

Add tableCaption prop, which can be a component / string

Add simple test and an example to Storybook

* Fix Caption example & Code syle fix for return statement

* Rename tableCaption > caption
2017-10-10 02:10:54 -05:00
Allen
7760d6a7f8 refine #71
* refine #71

* patch docs for column.editable
2017-10-10 02:03:00 -05:00