Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
bf82d2c
Refactor FluentCalendar components to support generic TValue type for…
dvoituron Sep 15, 2025
54276fc
Refactoring CalendarTValue convert methods
dvoituron Sep 19, 2025
afb9ad9
Refacroring to extension methods
dvoituron Sep 19, 2025
7a3257a
Refactored `FluentCalendar.razor.cs` to use generic type `TValue` for…
dvoituron Sep 19, 2025
cd81cfc
Converted `PickerDay`, `PickerMonth`, and `PickerYear` to nullable ty…
dvoituron Sep 19, 2025
a122b4e
Refactor calendar components for nullable date handling
dvoituron Sep 19, 2025
14670be
Fix Unit Tests
dvoituron Sep 19, 2025
74a44e6
Refactoring
dvoituron Sep 22, 2025
482d831
Refactoring
dvoituron Sep 22, 2025
948165c
Remove "where TValue : struct, IComparable"
dvoituron Sep 22, 2025
d8a5045
Update example
dvoituron Sep 22, 2025
b0b7480
Refactoring
dvoituron Sep 22, 2025
e3da2c8
Refactoring
dvoituron Sep 22, 2025
3a555f7
Refactoring
dvoituron Sep 22, 2025
1ffebf6
Refactoring
dvoituron Sep 23, 2025
7145c26
Refactoring
dvoituron Sep 23, 2025
127ec79
Refactoring
dvoituron Sep 23, 2025
687f81b
Refactoring
dvoituron Sep 23, 2025
2b906d5
refactoring and add CalendarTypes example
dvoituron Sep 23, 2025
1b48006
Refactoring
dvoituron Sep 23, 2025
4db5db8
Refactoring
dvoituron Sep 23, 2025
c7bbdac
Refactoring
dvoituron Sep 23, 2025
6e8aca3
Fix Unit Tests
dvoituron Sep 23, 2025
0a91bd6
add comments
dvoituron Sep 23, 2025
73caccd
Rename IsNull to IsNullOrDefault and update usage
dvoituron Sep 27, 2025
7d7ceaf
Add Unit Tests
dvoituron Sep 27, 2025
622b2fa
Refactoring
dvoituron Sep 27, 2025
61929f9
Fix some Unit Tests
dvoituron Sep 27, 2025
f85a0f2
Fix Unit Tests
dvoituron Sep 27, 2025
78cf26d
Update Unit Tests
dvoituron Sep 27, 2025
559d4f0
Update parsing logic to handle invalid date inputs and adjust validat…
dvoituron Sep 28, 2025
698b7fd
Update Demo
dvoituron Sep 28, 2025
1abe8e8
Merge from dev-v5
dvoituron Sep 30, 2025
130490d
Update doc
dvoituron Sep 30, 2025
4fcfdca
Add TValue Unit Tests
dvoituron Sep 30, 2025
3d43b04
Add Unit Tests
dvoituron Sep 30, 2025
80e3529
Merge branch 'dev-v5' into users/dvoituron/dev-v5/poc-calendar-generic
vnbaaij Oct 1, 2025
6599d03
Merge branch 'dev-v5' into users/dvoituron/dev-v5/poc-calendar-generic
dvoituron Oct 1, 2025
8835627
Merge branch 'dev-v5' into users/dvoituron/dev-v5/poc-calendar-generic
dvoituron Oct 2, 2025
967280f
Update PR comments
dvoituron Oct 2, 2025
f25dc87
Fix PR comments
dvoituron Oct 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix Unit Tests
  • Loading branch information
dvoituron committed Sep 27, 2025
commit f85a0f27322d126b473be2dda2f14d7ed65c5a4e
10 changes: 5 additions & 5 deletions tests/Core/Components/DateTimes/FluentDatePickerTests.razor
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@
text.Click();

// Assert
var calendar = picker.FindComponent<FluentCalendar<DateTime>>();
var calendar = picker.FindComponent<FluentCalendar<DateTime?>>();

Assert.True(picker.FindComponent<FluentDatePicker<DateTime?>>().Instance.Opened);
// The calendar's Value can be null even if TValue is DateTime - that's the key difference
// FluentDatePicker can be nullable but the internal calendar might not be

Assert.Equal(System.DateTime.Today.Year, calendar.Instance.PickerMonth.Year);
Assert.Equal(System.DateTime.Today.Month, calendar.Instance.PickerMonth.Month);
Assert.Equal(1, calendar.Instance.PickerMonth.Day);
Assert.Equal(System.DateTime.Today.Year, calendar.Instance.PickerMonth?.Year);
Assert.Equal(System.DateTime.Today.Month, calendar.Instance.PickerMonth?.Month);
Assert.Equal(1, calendar.Instance.PickerMonth?.Day);
}

[Fact]
Expand Down Expand Up @@ -106,7 +106,7 @@
day.Click();

// Assert
var calendar = picker.FindComponent<FluentCalendar<DateTime>>();
var calendar = picker.FindComponent<FluentCalendar<DateTime?>>();
Assert.Equal(DateTime.Parse(expectedDate, InvariantCulture), calendar.Instance.Value);
}

Expand Down