[dev-v5] Add FluentTextArea component - #3341
Merged
Denis Voituron (dvoituron) merged 8 commits intoFeb 14, 2025
Merged
Conversation
Collaborator
Author
|
Topic need to be discussed with Denis Voituron (@dvoituron) :
|
Collaborator
We can do that :-)
|
Denis Voituron (dvoituron)
requested changes
Feb 11, 2025
Denis Voituron (dvoituron)
left a comment
Collaborator
There was a problem hiding this comment.
Could you add a PR description?
Collaborator
Author
|
Denis Voituron (@dvoituron) your comments have been resolved |
Introduced a new `FluentTextArea` component for multi-line text input with various appearances, sizes, and resize options. Added features include immediate binding and different states (Required, Disabled, ReadOnly). Comprehensive documentation and unit tests are provided. - Added `ToTextAreaAppearance` method in `FluentInputAppearanceExtensions.cs`. - Updated `Components.Tests.csproj` to include new test files. - Created `FluentTextArea.md` for component documentation. - Added Razor components to demonstrate appearances, sizes, resize options, immediate binding, and states. - Created `FluentTextArea.razor` and `FluentTextArea.razor.cs` for component definition and logic. - Added enums `TextAreaAppearance`, `TextAreaResize`, and `TextAreaSize`. - Added test files for verifying default and label template rendering. - Updated `FluentTextAreaTests.razor` with various unit tests.
Updated FluentTextArea.Appearance to be nullable, removing the default value. Adjusted related test files to reflect this change by removing the `appearance="outline"` attribute. Cleaned up `Components.Tests.csproj` by removing unnecessary `<None>` items. Updated multiple test verification files to align with the new nullable property.
Adrien Clerbois (AClerbois)
requested a review
from Denis Voituron (dvoituron)
February 12, 2025 08:02
Refactored `TextAreaAppearances.razor` to use `FluentSelect` and `FluentCheckbox` components, and renamed `Value` to `value`. Introduced new state variables: `appearance`, `size`, and `displayShadow`. Updated `TextAreaImmediate.razor` and `TextAreaResizes.razor` for consistency and new state variables. Updated `FluentTextArea.md` to include known restrictions. Removed `Block` parameter from `FluentTextArea.razor` and related files.
Denis Voituron (dvoituron)
requested changes
Feb 12, 2025
- Replace `Display shadow` checkbox with `Spell check` in `TextAreaAppearances.razor` - Replace `FluentTextInput` with `FluentTextArea` in `TextAreaImmediate.razor` - Adjust indentation in `TextAreaResizes.razor` for readability - Correct spelling in `MigrationFluentTextArea.md` and add new enum values - Correct attribute spelling and conditional setting in `FluentTextArea.razor` - Update `FluentTextArea.razor.cs` to remove `DisplayShadow` and add `SpeelCheckValue` - Add new enum values in `TextAreaAppearance.cs` - Add and remove test cases in `FluentTextAreaTests.razor`
Adrien Clerbois (AClerbois)
requested a review
from Denis Voituron (dvoituron)
February 12, 2025 15:27
Denis Voituron (dvoituron)
requested changes
Feb 12, 2025
Corrected attribute order in TextAreaAppearances.razor. Fixed typos in FluentTextArea.razor and FluentTextArea.razor.cs. Reordered and redefined properties in FluentTextArea.razor.cs.
Adrien Clerbois (AClerbois)
requested a review
from Denis Voituron (dvoituron)
February 12, 2025 15:37
- Changed FluentStack orientation from vertical to horizontal - Added HorizontalGap="12px" and VerticalAlignment="Bottom" to FluentStack - Introduced Size property to FluentTextArea
Adrien Clerbois (AClerbois)
marked this pull request as ready for review
February 12, 2025 17:40
Adrien Clerbois (AClerbois)
requested a review
from Vincent Baaij (vnbaaij)
as a code owner
February 12, 2025 17:40
Corrected property names in FluentTextArea.razor and FluentTextArea.razor.cs. Updated spelling.dic with new terms.
Vincent Baaij (vnbaaij)
requested changes
Feb 14, 2025
Simplified enumeration binding in TextAreaAppearances.razor and TextAreaResizes.razor by removing unnecessary type casting. Updated FluentTextArea.md to clarify the component's purpose, fixed typos, and improved explanations of properties.
Collaborator
Author
|
Vincent Baaij (@vnbaaij) Thank you for your review. have applied your requested changes. |
Vincent Baaij (vnbaaij)
approved these changes
Feb 14, 2025
Denis Voituron (MSFT) (dvoituron-msft)
approved these changes
Feb 14, 2025
Denis Voituron (dvoituron)
approved these changes
Feb 14, 2025
Adrien Clerbois (AClerbois)
deleted the
users/aclerbois/dev-v5/fluent-textarea
branch
February 18, 2025 15:38
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Pull Request
Add Textarea component
📖 Description
This pull request introduces a new
FluentTextAreacomponent and updates related documentation and tests. The changes primarily focus on adding new properties and functionalities to theFluentTextAreacomponent, updating the documentation to reflect these changes, and adding tests to ensure the new functionalities work as expected.New
FluentTextAreaComponent:src/Core/Components/TextArea/FluentTextArea.razor: Added the newFluentTextAreacomponent with various parameters likeAppearance,Placeholder,MaxLength,MinLength,AutoComplete,AutoResize,Block,DisplayShadow,Size,Resize, andSpellcheck.src/Core/Components/TextArea/FluentTextArea.razor.cs: Implemented the backend logic for theFluentTextAreacomponent, including initialization, event handlers, and parameter definitions.🎫 Issues
👩💻 Reviewer Notes
📑 Test Plan
✅ Checklist
General
Component-specific
⏭ Next Steps