-
Notifications
You must be signed in to change notification settings - Fork 476
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(kit):
CalendarRange
should not require extra click to start new…
… range after same day range
- Loading branch information
1 parent
2c14206
commit 7ce58d3
Showing
21 changed files
with
443 additions
and
101 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
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
24 changes: 24 additions & 0 deletions
24
projects/core/components/calendar/calendar-sheet.options.ts
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import type {Provider} from '@angular/core'; | ||
import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous'; | ||
|
||
export interface TuiCalendarSheetOptions { | ||
readonly rangeMode: boolean; | ||
} | ||
|
||
export const TUI_CALENDAR_SHEET_DEFAULT_OPTIONS: TuiCalendarSheetOptions = { | ||
rangeMode: false, | ||
}; | ||
|
||
export const TUI_CALENDAR_SHEET_OPTIONS = tuiCreateToken( | ||
TUI_CALENDAR_SHEET_DEFAULT_OPTIONS, | ||
); | ||
|
||
export function tuiCalendarSheetOptionsProvider( | ||
options: Partial<TuiCalendarSheetOptions>, | ||
): Provider { | ||
return tuiProvideOptions( | ||
TUI_CALENDAR_SHEET_OPTIONS, | ||
options, | ||
TUI_CALENDAR_SHEET_DEFAULT_OPTIONS, | ||
); | ||
} |
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,4 +1,5 @@ | ||
export * from './calendar.component'; | ||
export * from './calendar-sheet.component'; | ||
export * from './calendar-sheet.options'; | ||
export * from './calendar-spin.component'; | ||
export * from './calendar-year.component'; |
Oops, something went wrong.