table when the date or date comparator were cleared
Modified applyFilter in date.js so that it doesn't try to parse an
Invalid Date. It was parsing an empty string, which caused it to pass
through an invalid date to onFilter, and this wasn't being checked for
properly by the onFilter function. It now checks for the empty string
and passes in null, which is what the onFilter function was actually
checking for
* Fix textFilter() for Internet Explorer 11
- replace includes() with indexOf() !== -1
- replace find() with for loop
* Requested changes; more readability with for loop
- use .length of the columns instead of the Object.keys()
* noDataIndication
* use the correct amount of cells when the first row is select
* storybook added for development, not necessary in docs
fixesreact-bootstrap-table/react-bootstrap-table2#264
* eslint complaints
4:11 error 'columnLen' is never reassigned. Use 'const' instead prefer-const
7:9 error Expected an assignment or function call and instead saw an expression no-unused-expressions
* tests updated
* 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
* 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
* 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
* implement selectRow.hideSelectColumn
* add story for selectRow.hideSelectColumn
* add tests for selectRow.hideSelectColumn
* patch docs for selectRow.hideSelectColumn
* 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
* 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
* implement selectRow.nonSelectable
* add story for selectRow.nonSelectable
* add testing for selectRow.nonSelectable
* refine tests about row selection
* patch docs for selectRow.nonSelectable
* 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
* 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
* 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
* 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
* 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
* implement cell editing validation
* add test cases for cell editing validation
* add story for validator for cell editor
* add docs for cell editor validation
* implement cell editor
* keyField shouldn't be editable
* add additional check to avoid some bugs
* add jsdom for enzyme mount
* add some helpers class for enzyme mounting
* add testing for cellEdit
* use npm instead
* add test for TableResolver
* table-layout: fixed; to fix the columns width when content of td changed
* add stories for cell edit
* add document for cellEdit
* implement table sort
* path for component test for table sort
* add store/base test
* add store/sort test
* add story for sort
* add column.sort and column.sortFunc
* redefine cell callback function
* it takes 4 argus `content`, `row`, `rowIndex` and `columnIndex` in
* sequence.
* [test] fix unit test for new callback
* correct the version of story for new cell callback
* [DOC] re-define structure of Contents of Table
* [DOC] update document for attrs
* re-write description for each column props
* [DOC] update document for headerCell
* re-write and add extra description for each header column props
* allow user to customize attrs for column cell
* [test] add test for customized cell attrs
* allow user to customize attrs for header column cell
* [test] add test for customized header cell attrs
* update document
* add new utils isObject and isEmptyObject
* make cell attrs lowest priority
* if style, event, classes, hidden, style was not given, display the
* HTML attributes if it's legal. However, if the attributes mentioned
* above was defined at the same time, column.attrs has lowest priority
* and it will be overwrited.
* [test] unit test for column.attrs
* [test] unit test for column.headerAttrs
* update Document
* rename story name
* fix lint error
* lerna bootstrap after install
* set npmClient to default instead of yarn to prevent from causing error with older yarn version
* ref: https://github.com/lerna/lerna/pull/897
* update yarn.lock
* utils for products generator
* load test for each *.test.js file in packages folder
* [test] unit test for utils/common
* refactor all products with productGenerator for all examples
* refactor folder structure
* move component <Code /> to src/components/common
* rename component file name
* beautify code block with google-code-prettify
* prettyPrint when componentDidMount
* css style for code block
* skip rule 'no-unresolved' for eslint
* conflict with webpack resolve path
* refactor all code block in example folder with component <Code />
* refactor scss folder structure
* specify the responsibility for each stylesheet with file name
* load local color themes, tomorrow, for google code prettify
* re-select demo color and save into variable
* unify the color system for storybook
* allow user to customize class for header cell
* add corresponding story
* allow user to customize inline-style for header cell
* add corresponding story
* [test] unit test for headerStyle
* [test] unit test for headerClasses
* update Document
* wrapper components with Decorators to set component margin
* add sticker github-corners at welcome page
* refactor welcome page for storybook
* refactor scss code structure
* add type.js to animate sub title
* storybook environment setup
* customized loader
* add basic example of BasicTable
* add script to bootstrap storybook
* import bootstrap css for storybook
* update webpack.config for adding loader for font and css
* add sass loader and allow to customize css for storybook
* uncheck lint for react-bootstrap-table-example
* package example has its own lint check
* run yarn in each package when boostrapping lerna
* add peerDependencies for package example
* add yarn.lock
* test environment setup with jest
* allow eslint to suit for jest
* run lint before starting testing
* disable deprecated rule of 'react/jsx-space-before-closing'
* add CONTRIBUTING document
* specify how to start testing
* add Enzyme for React testing
* add testing template for bootstrap-table