Skip to content

Commit

Permalink
chore(timepicker): removed old timepicker implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
valorkin committed Jun 26, 2017
1 parent 6e15bd0 commit eb31cae
Show file tree
Hide file tree
Showing 17 changed files with 533 additions and 784 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ export class DemoTimepickerCustomValidationComponent {
public ctrl = new FormControl('', (control: FormControl) => {
const value = control.value;
console.log('control', control);
return control;
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,3 @@

<button type="button" class="btn btn-info" (click)="toggleMode()">12H / 24H</button>

<hr>

<timepicker [(ngModel)]="mytime2" [meridians]="meridianText"></timepicker>

<pre class="alert alert-info">Time is: {{mytime2}}</pre>
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ export class DemoTimepickerMeridianComponent {

public mytime: Date = new Date();

public mytime2: Date = new Date();

public meridianText = ['12h', '24h'];

public toggleMode(): void {
this.ismeridian = !this.ismeridian;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<p>Without mousewheel</p>
<p>Mouse wheel disabled</p>

<timepicker [(ngModel)]="myTime1" [mousewheel]="false"></timepicker>

<pre class="alert alert-info">Time is: {{myTime1}}</pre>

<p>Without arrowkeys</p>
<p>Arrow keys disabled</p>

<timepicker [(ngModel)]="myTime2" [arrowkeys]="false" (change)="changed()"></timepicker>
<timepicker [(ngModel)]="myTime2" [arrowkeys]="false"></timepicker>

<pre class="alert alert-info">Time is: {{myTime2}}</pre>
65 changes: 62 additions & 3 deletions demo/src/ng-api-doc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,13 @@ export const ngdoc: any = {
}
]
},
"Action": {
"fileName": "src/mini-ngrx/index.ts",
"className": "Action",
"description": "",
"methods": [],
"properties": []
},
"ModalBackdropComponent": {
"fileName": "src/modal/modal-backdrop.component.ts",
"className": "ModalBackdropComponent",
Expand Down Expand Up @@ -1719,6 +1726,27 @@ export const ngdoc: any = {
}
]
},
"TimepickerActions": {
"fileName": "src/timepicker/reducer/timepicker.actions.ts",
"className": "TimepickerActions",
"description": "",
"methods": [],
"properties": []
},
"TimepickerState": {
"fileName": "src/timepicker/reducer/timepicker.reducer.ts",
"className": "TimepickerState",
"description": "",
"methods": [],
"properties": []
},
"TimepickerStore": {
"fileName": "src/timepicker/reducer/timepicker.store.ts",
"className": "TimepickerStore",
"description": "",
"methods": [],
"properties": []
},
"TimepickerComponent": {
"fileName": "src/timepicker/timepicker.component.ts",
"className": "TimepickerComponent",
Expand Down Expand Up @@ -1765,10 +1793,20 @@ export const ngdoc: any = {
"type": "boolean",
"description": "<p>if true hours and minutes fields will be readonly </p>\n"
},
{
"name": "secondsStep",
"type": "number",
"description": "<p>seconds change step </p>\n"
},
{
"name": "showMeridian",
"type": "boolean",
"description": "<p>if true works in 12H mode and displays AM/PM. If false works in 24H mode and hides AM/PM </p>\n"
"description": ""
},
{
"name": "showSeconds",
"type": "boolean",
"description": ""
},
{
"name": "showSpinners",
Expand Down Expand Up @@ -1800,7 +1838,7 @@ export const ngdoc: any = {
},
{
"name": "max",
"type": "number",
"type": "Date",
"description": "<p>maximum time user can select </p>\n"
},
{
Expand All @@ -1810,7 +1848,7 @@ export const ngdoc: any = {
},
{
"name": "min",
"type": "number",
"type": "Date",
"description": "<p>minimum time user can select </p>\n"
},
{
Expand Down Expand Up @@ -1845,6 +1883,27 @@ export const ngdoc: any = {
}
]
},
"TimeUnit": {
"fileName": "src/timepicker/timepicker.models.ts",
"className": "TimeUnit",
"description": "",
"methods": [],
"properties": []
},
"TimepickerControls": {
"fileName": "src/timepicker/timepicker.models.ts",
"className": "TimepickerControls",
"description": "",
"methods": [],
"properties": []
},
"TimepickerComponentState": {
"fileName": "src/timepicker/timepicker.models.ts",
"className": "TimepickerComponentState",
"description": "",
"methods": [],
"properties": []
},
"TooltipContainerComponent": {
"fileName": "src/tooltip/tooltip-container.component.ts",
"className": "TooltipContainerComponent",
Expand Down
3 changes: 0 additions & 3 deletions src/old-timepicker/index.ts

This file was deleted.

0 comments on commit eb31cae

Please sign in to comment.