This repository was archived by the owner on Jun 4, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 73
Issue 545 - Case-insensitive option for filters #609
Closed
Closed
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
3a30825
Case-insensitive option for filters
dmt0 166f6a6
toStructure operator case
dmt0 57b4742
Changelog
dmt0 fd86215
Tests
dmt0 e61d6cf
Deprecated Ramda function
dmt0 b9acb33
Filter case gui
dmt0 29272f4
Refactor column.filter_case props into one
dmt0 a5f9c49
Fix bug comparing numeric to string case insensitive
dmt0 ed8d450
Factor out filter case button component
dmt0 97a1867
Demo app global table filter case
dmt0 9a6ab6b
Cleanup unused state
dmt0 a24028b
Refactors and clarifications
dmt0 ebd6a04
Filter GUI test
dmt0 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
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
html { | ||
font-size: 13px; | ||
} | ||
|
||
.demo-app-root { | ||
input.dash-filter--case { | ||
outline: none; | ||
height: 18px; | ||
} | ||
|
||
input.dash-filter--case--sensitive { | ||
border-color: hotpink; | ||
border-radius: 4px; | ||
border-width: 2px; | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React, { PureComponent } from 'react'; | ||
|
||
import { Case } from 'dash-table/components/Table/props'; | ||
|
||
interface IFilterCaseButtonProps { | ||
filterCase: Case; | ||
setColumnCase: () => void; | ||
} | ||
|
||
export default class FilterCaseButton extends PureComponent<IFilterCaseButtonProps> { | ||
render() { | ||
const filterCaseClass: string = (this.props.filterCase !== Case.Insensitive) ? | ||
'dash-filter--case--sensitive' : 'dash-filter--case--insensitive'; | ||
|
||
return (<input | ||
type='button' | ||
className={'dash-filter--case ' + filterCaseClass} | ||
onClick={this.props.setColumnCase} | ||
value='Aa' | ||
/>); | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to make this an
input
type button, because there was no other way to make this thing havecursor: pointer
, it would still betext
frominput
below it. Settingz-index
did nothing.