-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(input): added number stepper (#49)
* feat(navbar): collapse optimisation * feat(navbar): collapse optimisation * feat(input): Added stepper * feat(input): Added stepper * feat(input): Added stepper * feat(input): Added stepper * feat(input): Added stepper * feat(input): Added stepper * conflicts fixed select test fixed * conflicts fixes * move back select test due to it fails on CI but no localy * mozornin fixes * a bit refactored * just to update ci * ci fix try
- Loading branch information
1 parent
3242689
commit 8ad947f
Showing
24 changed files
with
1,139 additions
and
160 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Observable } from 'rxjs'; | ||
|
||
|
||
/** An interface which allows a control to work inside of a `MсFormField`. */ | ||
export abstract class McFormFieldNumberControl<T> { | ||
/** The value of the control. */ | ||
value: T | null; | ||
|
||
/** | ||
* Stream that emits whenever the state of the control changes such that the parent `MсFormField` | ||
* needs to run change detection. | ||
*/ | ||
readonly stateChanges: Observable<void>; | ||
|
||
/** the number step */ | ||
step: number; | ||
|
||
/** the number big step */ | ||
bigStep: number; | ||
|
||
/** Whether the control is focused. */ | ||
readonly focused: boolean; | ||
|
||
/** Handles step up and down */ | ||
abstract stepUp(step: number): void; | ||
|
||
abstract stepDown(step: number): void; | ||
} |
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
Oops, something went wrong.