-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(components): add XML summaries to all publicly visible members (#…
…162) * chore: .editorconfig * feat(components): add missing summaries * refactor(components): adjust LabelPlacement namespace * refactor(radio): update `Color` param summary to point the correct default value * test: update `_Imports`
- Loading branch information
1 parent
f511176
commit 234ef56
Showing
61 changed files
with
2,400 additions
and
1,814 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
29 changes: 12 additions & 17 deletions
29
src/LumexUI/Common/Attributes/CompositionComponentAttribute.cs
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,28 +1,23 @@ | ||
using System.Diagnostics.CodeAnalysis; | ||
// Copyright (c) LumexUI 2024 | ||
// LumexUI licenses this file to you under the MIT license | ||
// See the license here https://github.com/LumexUI/lumexui/blob/main/LICENSE | ||
|
||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace LumexUI.Common; | ||
|
||
/// <summary> | ||
/// Specifies that a class is a composition component and defines the type of the aggregator component. | ||
/// Specifies that a class is a composition component and associates it with an aggregator type. | ||
/// </summary> | ||
/// <remarks> | ||
/// This attribute is used to indicate that the decorated class is part of a composition and is aggregated by a specific type. | ||
/// </remarks> | ||
[AttributeUsage( AttributeTargets.Class )] | ||
[ExcludeFromCodeCoverage] | ||
public class CompositionComponentAttribute : Attribute | ||
[AttributeUsage( AttributeTargets.Class )] | ||
public class CompositionComponentAttribute( Type aggregatorType ) : Attribute | ||
{ | ||
/// <summary> | ||
/// Gets the type of the aggregator component. | ||
/// </summary> | ||
public Type AggregatorType { get; } | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="CompositionComponentAttribute"/> class with the specified aggregator type. | ||
/// </summary> | ||
/// <param name="aggregatorType">The type of the aggregator component.</param> | ||
public CompositionComponentAttribute( Type aggregatorType ) | ||
{ | ||
AggregatorType = aggregatorType; | ||
} | ||
/// <summary> | ||
/// Gets the aggregator type associated with the composition component. | ||
/// </summary> | ||
public Type AggregatorType { get; } = aggregatorType; | ||
} |
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
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,17 +1,22 @@ | ||
namespace LumexUI; | ||
// Copyright (c) LumexUI 2024 | ||
// LumexUI licenses this file to you under the MIT license | ||
// See the license here https://github.com/LumexUI/lumexui/blob/main/LICENSE | ||
|
||
namespace LumexUI.Common; | ||
|
||
/// <summary> | ||
/// Specifies the placement options for the label of an input component. | ||
/// Specifies the placement options for label in input field components, | ||
/// such as <see cref="LumexTextbox"/>, <see cref="LumexSelect{TValue}"/> and others. | ||
/// </summary> | ||
public enum LabelPlacement | ||
{ | ||
/// <summary> | ||
/// Places the label inside the input component. | ||
/// </summary> | ||
Inside, | ||
/// <summary> | ||
/// The label is placed inside the input field. | ||
/// </summary> | ||
Inside, | ||
|
||
/// <summary> | ||
/// Places the label outside the input component. | ||
/// </summary> | ||
Outside | ||
/// <summary> | ||
/// The label is placed outside the input field. | ||
/// </summary> | ||
Outside | ||
} |
Oops, something went wrong.