-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(CohortDateRange): cleanup, correctly export test helpers
- Loading branch information
1 parent
6cba73b
commit e6b951a
Showing
12 changed files
with
171 additions
and
129 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
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
41 changes: 20 additions & 21 deletions
41
terminus-ui/cohort-date-range/src/cohort-date-range.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
<div> | ||
<ts-date-range | ||
class="ts-cohort-date-range__date-range" | ||
[dateFormGroup]="dateRangeFg" | ||
[isDisabled]="!allowCustomDates || isDisabled || disableDateRange" | ||
(dateRangeChange)="cohortDateRangeChange($event)" | ||
></ts-date-range> | ||
<ts-select | ||
label="Select a date range" | ||
class="ts-cohort-date-range__select" | ||
[isDisabled]="isDisabled" | ||
(selectionChange)="selectionChange($event)" | ||
<ts-date-range | ||
class="ts-cohort-date-range__date-range" | ||
[dateFormGroup]="dateRangeFormGroup" | ||
[isDisabled]="!allowCustomDates || isDisabled || disableDateRange" | ||
(dateRangeChange)="cohortDateRangeChange($event)" | ||
></ts-date-range> | ||
|
||
<ts-select | ||
label="Select a date range" | ||
class="ts-cohort-date-range__select" | ||
[isDisabled]="isDisabled" | ||
(selectionChange)="selectionChange($event)" | ||
> | ||
<ts-option | ||
[value]="option.range" | ||
[option]="option" | ||
*ngFor="let option of cohorts; trackBy: trackByFn" | ||
> | ||
<ts-option | ||
[value]="option.range" | ||
[option]="option" | ||
*ngFor="let option of cohorts; trackBy: trackByFn" | ||
> | ||
{{ option.display }} | ||
</ts-option> | ||
</ts-select> | ||
</div> | ||
{{ option.display }} | ||
</ts-option> | ||
</ts-select> |
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
6 changes: 5 additions & 1 deletion
6
terminus-ui/cohort-date-range/src/cohort-date-range.component.scss
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.