-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[O2B-532] Improve runs overview run number filter
- Loading branch information
1 parent
97a32c4
commit e1f2b03
Showing
6 changed files
with
90 additions
and
41 deletions.
There are no files selected for viewing
This file contains 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
58 changes: 58 additions & 0 deletions
58
lib/public/components/Filters/common/filters/RawTextFilterModel.js
This file contains 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,58 @@ | ||
import { FilterModel } from '../FilterModel.js'; | ||
|
||
const EMPTY_VALUE = ''; | ||
|
||
/** | ||
* Filtering model to handle raw text value | ||
*/ | ||
export class RawTextFilterModel extends FilterModel { | ||
/** | ||
* Constructor | ||
*/ | ||
constructor() { | ||
super(); | ||
this._value = EMPTY_VALUE; | ||
} | ||
|
||
// eslint-disable-next-line valid-jsdoc | ||
/** | ||
* @inheritDoc | ||
*/ | ||
reset() { | ||
this._value = EMPTY_VALUE; | ||
} | ||
|
||
// eslint-disable-next-line valid-jsdoc | ||
/** | ||
* @inheritDoc | ||
*/ | ||
get isEmpty() { | ||
return this._value === EMPTY_VALUE; | ||
} | ||
|
||
// eslint-disable-next-line valid-jsdoc | ||
/** | ||
* @inheritDoc | ||
*/ | ||
get normalized() { | ||
return this._value; | ||
} | ||
|
||
/** | ||
* Return the filter current value | ||
* | ||
* @return {string} the current value | ||
*/ | ||
get value() { | ||
return this._value; | ||
} | ||
|
||
/** | ||
* Sets the filter current value | ||
* | ||
* @param {string} value the current value | ||
*/ | ||
set value(value) { | ||
this._value = value; | ||
} | ||
} |
This file contains 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 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 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 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