-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(timepicker): Add ability to set readonly/disabled state #3602 #3611
feat(timepicker): Add ability to set readonly/disabled state #3602 #3611
Conversation
3e5fc5a
to
61f76d7
Compare
Codecov Report
@@ Coverage Diff @@
## development #3611 +/- ##
===============================================
+ Coverage 72.05% 72.21% +0.16%
===============================================
Files 252 252
Lines 8159 8225 +66
Branches 1552 1566 +14
===============================================
+ Hits 5879 5940 +61
- Misses 1858 1863 +5
Partials 422 422
Continue to review full report at Codecov.
|
61f76d7
to
1459aea
Compare
Tested, looks good |
import { TimeChangeEvent, TimepickerComponentState, TimepickerControls } from '../../timepicker/timepicker.models'; | ||
import * as timepickerControlsUtil from '../../timepicker/timepicker-controls.util'; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
||
function testTime(hours?: number, minutes?: number, seconds?: number) { | ||
import { Time, TimepickerComponentState } from '../../timepicker/timepicker.models'; | ||
import * as timepickerUtils from '../../timepicker/timepicker.utils'; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
@@ -1,5 +1,5 @@ | |||
import { Injectable } from '@angular/core'; | |||
import { Action } from '../../mini-ngrx/index'; | |||
import { Action } from '../../mini-ngrx'; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
@@ -1,4 +1,4 @@ | |||
import { Action } from '../../mini-ngrx/index'; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
import { Action } from '../../mini-ngrx/index'; | ||
import { MiniStore } from '../../mini-ngrx/store.class'; | ||
import { MiniState } from '../../mini-ngrx/state.class'; | ||
import { Action, MiniStore, MiniState } from '../../mini-ngrx'; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
<!-- increment hours button--> | ||
<td> | ||
<a class="btn btn-link" [class.disabled]="!canIncrementHours" | ||
<a class="btn btn-link" [class.disabled]="!canIncrementHours || !isActive()" |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
||
// ui variables | ||
hours: string; | ||
minutes: string; | ||
seconds: string; | ||
meridian: string; | ||
|
||
get isSpinnersVisible(): boolean { |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
this.invalidSeconds = false; | ||
} | ||
|
||
isActive() { |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
@IlyaSurmay please check my comments |
5bd0fad
to
d7ad6cd
Compare
Add validation for timepicker based on ui-bootstrap validation. Fix min-max validation issue. close valor-software#3549 valor-software#3288
d7ad6cd
to
22db077
Compare
…ftware#3602 Add ability to set readonly/disabled state Add disabled demo Fix bud related to highlight input in readonly mood Extend test for timepicker Close valor-software#3602 valor-software#3371
22db077
to
cb50a42
Compare
Add ability to set readonly/disabled state
Add disable state demo
Fix bug related to highlight input in readonly state
Close #3602 #3371