-
-
Notifications
You must be signed in to change notification settings - Fork 264
Apply BitDateRangePicker improvements (#12867) #12868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
msynk
wants to merge
16
commits into
bitfoundation:develop
Choose a base branch
from
msynk:12867-blazorui-datarangepicker-improvements
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
242fb1a
apply BitDateRangePicker improvements #12867
msynk cc40e96
resolve review comments
msynk 14989c1
resolve review comments 2
msynk 6ac6ca8
local review improvements
msynk ba29adf
resolve review comments 3
msynk 8031e54
resolve review comments 4
msynk 6b9b6ad
local review improvements
msynk b05e7c9
Merge branch 'develop' of https://github.com/bitfoundation/bitplatfor…
msynk f5e2b98
resolve review comments 5
msynk cdc7b9e
local review improvements
msynk 22440b7
resolve review comments 6
msynk 86cc1a2
fix tests
msynk 29eab3e
fix demo issues
msynk 64d74a1
Merge branch 'develop' of https://github.com/bitfoundation/bitplatfor…
msynk 63ef634
Merge branch 'develop' of https://github.com/bitfoundation/bitplatfor…
msynk e885eb8
fix rename
msynk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
434 changes: 266 additions & 168 deletions
434
src/BlazorUI/Bit.BlazorUI/Components/Inputs/DateRangePicker/BitDateRangePicker.razor
Large diffs are not rendered by default.
Oops, something went wrong.
2,030 changes: 1,622 additions & 408 deletions
2,030
src/BlazorUI/Bit.BlazorUI/Components/Inputs/DateRangePicker/BitDateRangePicker.razor.cs
Large diffs are not rendered by default.
Oops, something went wrong.
368 changes: 328 additions & 40 deletions
368
src/BlazorUI/Bit.BlazorUI/Components/Inputs/DateRangePicker/BitDateRangePicker.scss
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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
45 changes: 45 additions & 0 deletions
45
src/BlazorUI/Bit.BlazorUI/Components/Inputs/DateRangePicker/BitDateRangePickerPreset.cs
This file contains hidden or 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,45 @@ | ||
| namespace Bit.BlazorUI; | ||
|
|
||
| /// <summary> | ||
| /// Represents a shortcut that fills the BitDateRangePicker with a predefined range (e.g. "Last 7 days"). | ||
| /// </summary> | ||
| public class BitDateRangePickerPreset | ||
| { | ||
| /// <summary> | ||
| /// The text of the preset's button. | ||
| /// </summary> | ||
| public required string Text { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// The range applied when the preset is selected. | ||
| /// <see cref="ValueProvider"/> takes precedence over this when both are set. | ||
| /// </summary> | ||
| public BitDateRangePickerValue? Value { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// Custom function providing the range applied when the preset is selected. | ||
| /// Unlike <see cref="Value"/> it is evaluated on each selection, which keeps relative | ||
| /// ranges (e.g. "Last 7 days") correct no matter how long the page has been open. | ||
| /// </summary> | ||
| public Func<BitDateRangePickerValue?>? ValueProvider { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// Whether the preset's button is enabled. | ||
| /// </summary> | ||
| public bool IsEnabled { get; set; } = true; | ||
|
|
||
| /// <summary> | ||
| /// The title of the preset's button (tooltip). | ||
| /// </summary> | ||
| public string? Title { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// Custom CSS class for the preset's button. | ||
| /// </summary> | ||
| public string? Class { get; set; } | ||
|
|
||
| /// <summary> | ||
| /// Custom CSS style for the preset's button. | ||
| /// </summary> | ||
| public string? Style { get; set; } | ||
| } |
This file contains hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.