-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(stark-ui): more changes for the Stark Date Range picker
- Loading branch information
1 parent
0e78064
commit 6f7fb72
Showing
8 changed files
with
775 additions
and
417 deletions.
There are no files selected for viewing
620 changes: 421 additions & 199 deletions
620
...ges/stark-ui/src/modules/date-range-picker/components/date-range-picker.component.spec.ts
Large diffs are not rendered by default.
Oops, something went wrong.
307 changes: 198 additions & 109 deletions
307
packages/stark-ui/src/modules/date-range-picker/components/date-range-picker.component.ts
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
8 changes: 3 additions & 5 deletions
8
showcase/src/assets/examples/date-range-picker/form-group.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,15 +1,13 @@ | ||
<stark-date-range-picker [formGroup]="dateRangeFormGroup" required> | ||
<ng-container start-date-errors *ngFor="let error of getErrorMessages(dateRangeFormGroup.controls.startDate)"> | ||
<ng-container start-date-errors *ngFor="let error of getErrorMessages(dateRangeFormGroup.controls.startDate); trackBy: trackItemFn"> | ||
{{ error }} | ||
<br /> | ||
</ng-container> | ||
|
||
<ng-container end-date-errors *ngFor="let error of getErrorMessages(dateRangeFormGroup.controls.endDate)"> | ||
<ng-container end-date-errors *ngFor="let error of getErrorMessages(dateRangeFormGroup.controls.endDate); trackBy: trackItemFn"> | ||
{{ error }} | ||
<br /> | ||
</ng-container> | ||
</stark-date-range-picker> | ||
<br /><br /> | ||
<mat-checkbox [value]="dateRangeFormGroup.disabled" (change)="onDateRangeFormGroupDisableCheckboxChange($event)"> | ||
{{ dateRangeFormGroup.disabled ? "Disabled" : "Enabled" }} | ||
</mat-checkbox> | ||
<mat-checkbox [value]="dateRangeFormGroup.disabled" (change)="onDateRangeFormGroupDisableCheckboxChange($event)">Disabled</mat-checkbox> |
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.