-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
35179e8
commit 94eae1d
Showing
13 changed files
with
639 additions
and
600 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
2 changes: 1 addition & 1 deletion
2
projects/ngx-datetime-range-picker/src/lib/ngx-datetime-range-picker.component.html
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 |
---|---|---|
@@ -1,53 +1,68 @@ | ||
<ul class="list-inline filter-container list-group"> | ||
<li class="filter"> | ||
<mat-form-field> | ||
<mat-select [(value)]="selectedOption" (selectionChange)="onFilterChange($event, 'level')"> | ||
<mat-option *ngFor="let option of options" [value]="option.value"> {{ option.name }} </mat-option> | ||
</mat-select> | ||
</mat-form-field> | ||
</li> | ||
<li class="filter"> | ||
<ngx-datetime-range-picker | ||
name="date" | ||
[options]="datePickerOptions" | ||
[settings]="datePickerSettings" | ||
[(dateRangeModel)]="selectedOptions.date" | ||
(dateRangeChanged)="onFilterChange($event, 'date')" | ||
required | ||
> | ||
</ngx-datetime-range-picker> | ||
</li> | ||
<li class="filter date-range"> | ||
<ngx-datetime-range-picker | ||
name="dateRange" | ||
[options]="dateRangePickerOptions" | ||
[settings]="dateRangePickerSettings" | ||
[(dateRangeModel)]="selectedOptions.dateRange" | ||
(dateRangeChanged)="onFilterChange($event, 'date-range')" | ||
required | ||
> | ||
</ngx-datetime-range-picker> | ||
</li> | ||
<li class="filter date-array-range"> | ||
<ngx-datetime-range-picker | ||
name="dateArrayRange" | ||
[options]="dateArrayRangePickerOptions" | ||
[settings]="dateArrayRangePickerSettings" | ||
[(dateRangeModel)]="selectedOptions.dateArrayRange" | ||
(dateRangeChanged)="onFilterChange($event, 'date-array-range')" | ||
required | ||
> | ||
</ngx-datetime-range-picker> | ||
</li> | ||
<li class="filter date-time-range"> | ||
<ngx-datetime-range-picker | ||
name="dateTimeRange" | ||
[options]="dateRangePickerOptions" | ||
[settings]="dateTimeRangePickerSettings" | ||
[(dateRangeModel)]="selectedOptions.dateTimeRange" | ||
(dateRangeChanged)="onFilterChange($event, 'date-range')" | ||
required | ||
> | ||
</ngx-datetime-range-picker> | ||
</li> | ||
</ul> | ||
<div class="date-container"> | ||
<mat-form-field> | ||
<mat-select [(value)]="selectedOption" (selectionChange)="onFilterChange($event, 'level')"> | ||
<mat-option *ngFor="let option of options" [value]="option.value"> {{ option.name }} </mat-option> | ||
</mat-select> | ||
</mat-form-field> | ||
|
||
<ul class="list-inline filter-container"> | ||
<li class="filter"> | ||
<ngx-datetime-range-picker | ||
class="date" | ||
name="date" | ||
[options]="datePickerOptions" | ||
[settings]="datePickerSettings" | ||
[(dateRangeModel)]="selectedOptions.date" | ||
(dateRangeChanged)="onFilterChange($event, 'date')" | ||
required | ||
> | ||
</ngx-datetime-range-picker> | ||
<div *ngTemplateOutlet="printSelectedDate; context: { date: selectedOptions.date }"></div> | ||
</li> | ||
<li class="filter"> | ||
<ngx-datetime-range-picker | ||
name="dateRange" | ||
class="date-range" | ||
[options]="dateRangePickerOptions" | ||
[settings]="dateRangePickerSettings" | ||
[(dateRangeModel)]="selectedOptions.dateRange" | ||
(dateRangeChanged)="onFilterChange($event, 'date-range')" | ||
required | ||
> | ||
</ngx-datetime-range-picker> | ||
<div *ngTemplateOutlet="printSelectedDate; context: { date: selectedOptions.dateRange }"></div> | ||
</li> | ||
<li class="filter"> | ||
<ngx-datetime-range-picker | ||
name="dateArrayRange" | ||
class="date-array-range" | ||
[options]="dateArrayRangePickerOptions" | ||
[settings]="dateArrayRangePickerSettings" | ||
[(dateRangeModel)]="selectedOptions.dateArrayRange" | ||
(dateRangeChanged)="onFilterChange($event, 'date-array-range')" | ||
required | ||
> | ||
</ngx-datetime-range-picker> | ||
<div *ngTemplateOutlet="printSelectedDate; context: { date: selectedOptions.dateArrayRange }"></div> | ||
</li> | ||
<li class="filter"> | ||
<ngx-datetime-range-picker | ||
name="dateTimeRange" | ||
class="date-time-range" | ||
[options]="dateRangePickerOptions" | ||
[settings]="dateTimeRangePickerSettings" | ||
[(dateRangeModel)]="selectedOptions.dateTimeRange" | ||
(dateRangeChanged)="onFilterChange($event, 'date-range')" | ||
required | ||
> | ||
</ngx-datetime-range-picker> | ||
<div *ngTemplateOutlet="printSelectedDate; context: { date: selectedOptions.dateTimeRange }"></div> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<ng-template #printSelectedDate let-date="date"> | ||
<code class="selectedDate"> | ||
<pre>{{ printDate(date) }}</pre> | ||
</code> | ||
</ng-template> |
Oops, something went wrong.