"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "app/src/ui/lib/filter-list.tsx" between
desktop-release-2.7.2-linux1.tar.gz and desktop-release-2.8.0-linux1.tar.gz

About: GitHub Desktop (Linux) is an open source Electron-based GitHub app. It is written in TypeScript and uses React. A fork of GitHub Desktop to support various Linux distributions. Release candidate.

filter-list.tsx  (desktop-release-2.7.2-linux1):filter-list.tsx  (desktop-release-2.8.0-linux1)
skipping to change at line 151 skipping to change at line 151
*/ */
readonly filterTextBox?: TextBox readonly filterTextBox?: TextBox
/** /**
* Callback to fire when the items in the filter list are updated * Callback to fire when the items in the filter list are updated
*/ */
readonly onFilterListResultsChanged?: (resultCount: number) => void readonly onFilterListResultsChanged?: (resultCount: number) => void
/** Placeholder text for text box. Default is "Filter". */ /** Placeholder text for text box. Default is "Filter". */
readonly placeholderText?: string readonly placeholderText?: string
/** If true, we do not render the filter. */
readonly hideFilterRow?: boolean
} }
interface IFilterListState<T extends IFilterListItem> { interface IFilterListState<T extends IFilterListItem> {
readonly rows: ReadonlyArray<IFilterListRow<T>> readonly rows: ReadonlyArray<IFilterListRow<T>>
readonly selectedRow: number readonly selectedRow: number
} }
/** /**
* Interface describing a user initiated selection change event * Interface describing a user initiated selection change event
* originating from changing the filter text. * originating from changing the filter text.
skipping to change at line 257 skipping to change at line 260
placeholder={this.props.placeholderText || 'Filter'} placeholder={this.props.placeholderText || 'Filter'}
className="filter-list-filter-field" className="filter-list-filter-field"
onValueChanged={this.onFilterValueChanged} onValueChanged={this.onFilterValueChanged}
onKeyDown={this.onKeyDown} onKeyDown={this.onKeyDown}
value={this.props.filterText} value={this.props.filterText}
disabled={this.props.disabled} disabled={this.props.disabled}
/> />
) )
} }
public renderFilterRow() {
if (this.props.hideFilterRow === true) {
return null
}
return (
<Row className="filter-field-row">
{this.props.filterTextBox === undefined ? this.renderTextBox() : null}
{this.props.renderPostFilter ? this.props.renderPostFilter() : null}
</Row>
)
}
public render() { public render() {
return ( return (
<div className={classnames('filter-list', this.props.className)}> <div className={classnames('filter-list', this.props.className)}>
{this.props.renderPreList ? this.props.renderPreList() : null} {this.props.renderPreList ? this.props.renderPreList() : null}
<Row className="filter-field-row"> {this.renderFilterRow()}
{this.props.filterTextBox === undefined ? this.renderTextBox() : null}
{this.props.renderPostFilter ? this.props.renderPostFilter() : null}
</Row>
<div className="filter-list-container">{this.renderContent()}</div> <div className="filter-list-container">{this.renderContent()}</div>
</div> </div>
) )
} }
public selectNextItem( public selectNextItem(
focus: boolean = false, focus: boolean = false,
inDirection: SelectionDirection = 'down' inDirection: SelectionDirection = 'down'
) { ) {
 End of changes. 3 change blocks. 
4 lines changed or deleted 17 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)