-
Notifications
You must be signed in to change notification settings - Fork 401
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
[dev-v5] Add FluentTextArea component #3341
[dev-v5] Add FluentTextArea component #3341
Conversation
Topic need to be discussed with @dvoituron :
|
We can do that :-)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a PR description?
@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.
21d21a7
to
eb990db
Compare
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.
...mo/FluentUI.Demo.Client/Documentation/Components/TextArea/Examples/TextAreaAppearances.razor
Outdated
Show resolved
Hide resolved
...mo/FluentUI.Demo.Client/Documentation/Components/TextArea/Examples/TextAreaAppearances.razor
Outdated
Show resolved
Hide resolved
...mo/FluentUI.Demo.Client/Documentation/Components/TextArea/Examples/TextAreaAppearances.razor
Outdated
Show resolved
Hide resolved
...s/Demo/FluentUI.Demo.Client/Documentation/Components/TextArea/Examples/TextAreaResizes.razor
Outdated
Show resolved
Hide resolved
...Demo/FluentUI.Demo.Client/Documentation/Components/TextArea/Examples/TextAreaImmediate.razor
Outdated
Show resolved
Hide resolved
...ples/Demo/FluentUI.Demo.Client/Documentation/GetStarted/Migration/MigrationFluentTextArea.md
Outdated
Show resolved
Hide resolved
...ples/Demo/FluentUI.Demo.Client/Documentation/GetStarted/Migration/MigrationFluentTextArea.md
Outdated
Show resolved
Hide resolved
- 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`
...mo/FluentUI.Demo.Client/Documentation/Components/TextArea/Examples/TextAreaAppearances.razor
Outdated
Show resolved
Hide resolved
Corrected attribute order in TextAreaAppearances.razor. Fixed typos in FluentTextArea.razor and FluentTextArea.razor.cs. Reordered and redefined properties in FluentTextArea.razor.cs.
- Changed FluentStack orientation from vertical to horizontal - Added HorizontalGap="12px" and VerticalAlignment="Bottom" to FluentStack - Introduced Size property to FluentTextArea
Corrected property names in FluentTextArea.razor and FluentTextArea.razor.cs. Updated spelling.dic with new terms.
...mo/FluentUI.Demo.Client/Documentation/Components/TextArea/Examples/TextAreaAppearances.razor
Outdated
Show resolved
Hide resolved
...s/Demo/FluentUI.Demo.Client/Documentation/Components/TextArea/Examples/TextAreaResizes.razor
Outdated
Show resolved
Hide resolved
examples/Demo/FluentUI.Demo.Client/Documentation/Components/TextArea/FluentTextArea.md
Outdated
Show resolved
Hide resolved
examples/Demo/FluentUI.Demo.Client/Documentation/Components/TextArea/FluentTextArea.md
Outdated
Show resolved
Hide resolved
examples/Demo/FluentUI.Demo.Client/Documentation/Components/TextArea/FluentTextArea.md
Outdated
Show resolved
Hide resolved
examples/Demo/FluentUI.Demo.Client/Documentation/Components/TextArea/FluentTextArea.md
Outdated
Show resolved
Hide resolved
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.
@vnbaaij Thank you for your review. have applied your requested changes. |
Pull Request
Add Textarea component
📖 Description
This pull request introduces a new
FluentTextArea
component and updates related documentation and tests. The changes primarily focus on adding new properties and functionalities to theFluentTextArea
component, updating the documentation to reflect these changes, and adding tests to ensure the new functionalities work as expected.New
FluentTextArea
Component:src/Core/Components/TextArea/FluentTextArea.razor
: Added the newFluentTextArea
component 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 theFluentTextArea
component, including initialization, event handlers, and parameter definitions.🎫 Issues
👩💻 Reviewer Notes
📑 Test Plan
✅ Checklist
General
Component-specific
⏭ Next Steps