Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ namespace Microsoft.Fast.Components.FluentUI;

public partial class FluentAccordion : FluentComponentBase
{

/// <summary>
/// Controls the expand mode of the Accordion, either allowing single or multiple item expansion <seealso cref="ExpandMode" />.
/// </summary>
[Parameter]
public ExpandMode? ExpandMode { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ namespace Microsoft.Fast.Components.FluentUI;

public partial class FluentAccordionItem : FluentComponentBase
{
/// <summary>
/// Expands or collapses the item.
/// </summary>
[Parameter]
public bool? Expanded { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@

namespace Microsoft.Fast.Components.FluentUI;

public partial class FluentAnchor : FluentComponentBase
public partial class FluentAnchor : FluentComponentBase
{
/// <summary>
/// The URL this item references.
/// </summary>
[Parameter]
public string? Href { get; set; }

/// <summary>
/// Gets or sets the visual appearance. See <seealso cref="Appearance"/>
/// </summary>
[Parameter]
public Appearance? Appearance { get; set; }


}
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ public partial class FluentAnchoredRegion : FluentComponentBase
public string? Viewport { get; set; }

/// <summary>
/// Default is 'uncontrolled'.
/// Default is 'uncontrolled'. See <seealso cref="Positioning"/>
/// </summary>
[Parameter]
public Positioning? HorizontalPositioningMode { get; set; } = Positioning.Uncontrolled;

/// <summary>
/// Default is 'unset'
/// Default is 'unset'. See <seealso cref="HorizontalPosition"/>
/// </summary>
[Parameter]
public HorizontalPosition? HorizontalDefaultPosition { get; set; } = HorizontalPosition.Unset;
Expand All @@ -40,19 +40,19 @@ public partial class FluentAnchoredRegion : FluentComponentBase
public int HorizontalThreshold { get; set; }

/// <summary>
/// Default is "Content"
/// Default is "Content". See <seealso cref="Scaling"/>
/// </summary>
[Parameter]
public Scaling? HorizontalScaling { get; set; } = Scaling.Content;

/// <summary>
/// Default is "Uncontrolled"
/// Default is "Uncontrolled". See <seealso cref="Positioning"/>
/// </summary>
[Parameter]
public Positioning? VerticalPositioningMode { get; set; } = Positioning.Uncontrolled;

/// <summary>
/// Default is "Unset"
/// Default is "Unset".See <seealso cref="VerticalPosition"/>
/// </summary>
[Parameter]
public VerticalPosition? VerticalDefaultPosition { get; set; } = VerticalPosition.Unset;
Expand All @@ -70,13 +70,13 @@ public partial class FluentAnchoredRegion : FluentComponentBase
public int VerticalThreshold { get; set; }

/// <summary>
/// Default is "Content"
/// Default is "Content". See <seealso cref="Scaling"/>
/// </summary>
[Parameter]
public Scaling? VerticalScaling { get; set; } = Scaling.Content;

/// <summary>
/// Default is "Anchor". In 'anchor' mode only anchor resizes and attribute changes will provoke an update. In 'auto' mode the component also updates because of - any scroll event on the document, window resizes and viewport resizes
/// Default is "Anchor". In 'anchor' mode only anchor resizes and attribute changes will provoke an update. In 'auto' mode the component also updates because of - any scroll event on the document, window resizes and viewport resizes. See <seealso cref="UpdateMode"/>
/// </summary>
[Parameter]
public UpdateMode? AutoUpdateMode { get; set; } = UpdateMode.Anchor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,21 @@
namespace Microsoft.Fast.Components.FluentUI;
public partial class FluentBadge : FluentComponentBase
{
/// <summary>
/// Gets or sets the color
/// </summary>
[Parameter]
public Color? Color { get; set; }

/// <summary>
/// Gets or sets the background color
/// </summary>
[Parameter]
public Fill? Fill { get; set; }

/// <summary>
/// Gets or sets the visual appearance. See <seealso cref="FluentUI.Appearance"/>
/// </summary>
[Parameter]
public Appearance? Appearance { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
namespace Microsoft.Fast.Components.FluentUI;
public partial class FluentBreadcrumbItem : FluentComponentBase
{
/// <summary>
/// The URL this item references.
/// </summary>
[Parameter]
public string? Href { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,21 @@
namespace Microsoft.Fast.Components.FluentUI;
public partial class FluentButton : FluentComponentBase
{
/// <summary>
/// Gets or sets the visual appearance. See <seealso cref="FluentUI.Appearance"/>
/// </summary>
[Parameter]
public Appearance? Appearance { get; set; }

/// <summary>
/// Gets or sets if the button is disabled
/// </summary>
[Parameter]
public bool? Disabled { get; set; }

/// <summary>
/// Determines if the element should receive document focus on page load.
/// </summary>
[Parameter]
public bool? Autofocus { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,21 @@
namespace Microsoft.Fast.Components.FluentUI;
public partial class FluentCheckbox : FluentInputBase<bool>
{
/// <summary>
/// Gets or sets if the element is disabled
/// </summary>
[Parameter]
public bool? Disabled { get; set; }

/// <summary>
/// Gets or sets if the element is required
/// </summary>
[Parameter]
public bool? Required { get; set; }

/// <summary>
/// Gets or sets if the element is readonly
/// </summary>
[Parameter]
public bool? Readonly { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,39 @@ public partial class FluentCombobox<TValue> : FluentInputBase<TValue>
[Parameter]
public string? Name { get; set; }

/// <summary>
/// Gets or sets the visual appearance. See <seealso cref="FluentUI.Appearance"/>
/// </summary>
[Parameter]
public Appearance? Appearance { get; set; }

/// <summary>
/// Gets or sets if the element is disabled
/// </summary>
[Parameter]
public bool? Disabled { get; set; }

/// <summary>
/// Gets or sets if the element is required
/// </summary>
[Parameter]
public bool? Required { get; set; }

/// <summary>
/// Gets or sets if the element is auto completes
/// </summary>
[Parameter]
public Autocomplete? Autocomplete { get; set; }

/// <summary>
/// Gets or sets if the position of the element. See <seealso cref="FluentUI.Position"/>
/// </summary>
[Parameter]
public Position? Position { get; set; }

/// <summary>
/// Gets or set the list of <see cref="Option{TValue}"/> items
/// </summary>
[Parameter]
public IEnumerable<Option<TValue>>? Items { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,39 @@
namespace Microsoft.Fast.Components.FluentUI;
public partial class FluentDataGrid<TItem> : FluentComponentBase
{
// FAST Attributes
/// <summary>
/// Gets or sets the <see cref="GenerateHeaderOptions"/>
/// </summary>
[Parameter]
public GenerateHeaderOptions? GenerateHeader { get; set; } = GenerateHeaderOptions.Default;

/// <summary>
/// Gets or sets the value that gets applied to the css gridTemplateColumns attribute of child rows
/// </summary>
[Parameter]
public string? GridTemplateColumns { get; set; } = "";
//FAST Properties

/// <summary>
/// Gets or sets the rows data
/// </summary>
[Parameter]
public List<TItem>? RowsData { get; set; }

/// <summary>
/// Gets or sets the column definitions. See <see cref="ColumnDefinition{TItem}"/>
/// </summary>
[Parameter]
public IEnumerable<ColumnDefinition<TItem>>? ColumnDefinitions { get; set; }

/// <summary>
/// Gets or sets the header cell template. See <see cref="ColumnDefinition{TItem}"/>
/// </summary>
[Parameter]
public RenderFragment<ColumnDefinition<TItem>>? HeaderCellTemplate { get; set; } = null;

/// <summary>
/// Gets or sets the row item template
/// </summary>
[Parameter]
public RenderFragment<TItem>? RowItemTemplate { get; set; } = null;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@
namespace Microsoft.Fast.Components.FluentUI;
public partial class FluentDataGridCell : FluentComponentBase
{
// FAST Attributes
/// <summary>
/// Gets or sets the cell type. See <see cref="DataGridCellType"/>
/// </summary>
[Parameter]
public DataGridCellType? CellType { get; set; } = DataGridCellType.Default;

/// <summary>
/// Gets or sets the column where the cell should be displayed in
/// </summary>
[Parameter]
public int GridColumn { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,33 @@ namespace Microsoft.Fast.Components.FluentUI;

public partial class FluentDataGridRow<TItem> : FluentComponentBase
{
// FAST Attributes
/// <summary>
/// Gets or sets the index of this row
/// </summary>
[Parameter]
public int? RowIndex { get; set; }

/// <summary>
/// Gets or sets the value that gets applied to the css gridTemplateColumns attribute of child rows
/// </summary>
[Parameter]
public string? GridTemplateColumns { get; set; } = null;

/// <summary>
/// Gets or sets the type of row. Se <see cref="DataGridRowType"/>
/// </summary>
[Parameter]
public DataGridRowType? RowType { get; set; } = DataGridRowType.Default;
// FAST Properties

/// <summary>
/// Gets or sets the row data
/// </summary>
[Parameter]
public TItem? RowData { get; set; }

/// <summary>
/// Gets or sets the column definitions for the row. See <see cref="ColumnDefinition{TItem}"/>
/// </summary>
[Parameter]
public IEnumerable<ColumnDefinition<TItem>>? ColumnDefinitions { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ namespace Microsoft.Fast.Components.FluentUI;

public partial class FluentDialog : FluentComponentBase
{
/// <summary>
/// Gets or sets if the dialog is shown modal
/// </summary>
[Parameter]
public bool? Modal { get; set; }

/// <summary>
/// Gets or sets if the dialog is hidden
/// </summary>
[Parameter]
public bool Hidden { get; set; } = false;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@ namespace Microsoft.Fast.Components.FluentUI;

public partial class FluentFlipper : FluentComponentBase
{
/// <summary>
/// Gets or set if the element is disabled
/// </summary>
[Parameter]
public bool? Disabled { get; set; }

/// <summary>
/// Gets or sets the direction. See <see cref="FluentUI.Direction"/>
/// </summary>

[Parameter]
public Direction? Direction { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ public partial class FluentListbox<TValue> : FluentInputBase<TValue>
[Parameter]
public string? Name { get; set; }

/// <summary>
/// Gets or sets the list of items. See <see cref="Option{TValue}"/>
/// </summary>
[Parameter]
public IEnumerable<Option<TValue>>? Items { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ namespace Microsoft.Fast.Components.FluentUI;

public partial class FluentMenuItem : FluentComponentBase
{
/// <summary>
/// Gets or sets if the element is disabled
/// </summary>
[Parameter]
public bool? Disabled { get; set; }

/// <summary>
/// Gets or sets if the element is checked
/// </summary>
[Parameter]
public bool? Checked { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ public partial class FluentOption<TValue> : FluentComponentBase
{
internal FluentOptionContext? Context { get; private set; }

/// <summary>
/// Gets or sets if the element is disabled
/// </summary>
[Parameter]
public bool? Disabled { get; set; }

Expand All @@ -21,6 +24,9 @@ public partial class FluentOption<TValue> : FluentComponentBase
/// </summary>
[Parameter] public string? Name { get; set; }

/// <summary>
/// Gets or sets if the element is selected
/// </summary>
[Parameter]
public bool? Selected { get; set; }

Expand Down
Loading