Skip to content

Commit

Permalink
Fix cherry pick errors, update docs, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
vnbaaij committed Nov 9, 2023
1 parent 99617a7 commit ee27ac6
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 22 deletions.
2 changes: 1 addition & 1 deletion examples/Demo/Shared/Infrastructure/DemoIcons.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Microsoft.FluentUI.AspNetCore.Components;
using Microsoft.Fast.Components.FluentUI;

namespace FluentUI.Demo.Shared
{
Expand Down
19 changes: 19 additions & 0 deletions examples/Demo/Shared/Microsoft.Fast.Components.FluentUI.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5606,6 +5606,9 @@
Gets or sets the width of the spacer (in pixels)
</summary>
</member>
<member name="P:Microsoft.Fast.Components.FluentUI.FluentSplitter.InlineStyleValue">
<summary />
</member>
<member name="P:Microsoft.Fast.Components.FluentUI.FluentSplitter.ClassValue">
<summary />
</member>
Expand Down Expand Up @@ -5641,6 +5644,12 @@
See <see href="https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns">mdn web docs</see> for more information
</summary>
</member>
<member name="P:Microsoft.Fast.Components.FluentUI.FluentSplitter.Collapsed">
<summary>
Gets or sets a value indicating whether the splitter is collapsed.
If set to true, Panel1 will take up all the space and Panel2 as well as the splitter bar will be hidden.
</summary>
</member>
<member name="P:Microsoft.Fast.Components.FluentUI.FluentStack.HorizontalAlignment">
<summary>
The horizontal alignment of the components in the stack.
Expand Down Expand Up @@ -10883,6 +10892,16 @@
whenever a user attempts to execute the default action on a <see cref="T:Microsoft.Fast.Components.FluentUI.FluentNavMenuItemBase"/>.
</summary>
</member>
<member name="P:Microsoft.Fast.Components.FluentUI.SplitterResizedEventArgs.Panel1Size">
<summary>
Gets the size of panel 1 (top/left) after a resize operation
</summary>
</member>
<member name="P:Microsoft.Fast.Components.FluentUI.SplitterResizedEventArgs.Panel2Size">
<summary>
Gets the size of the panel 2 (bottom/right) after a resize operation
</summary>
</member>
<member name="M:Microsoft.Fast.Components.FluentUI.AdditionalAttributesExtensions.RenderedAttributesEqual(System.Collections.Generic.IReadOnlyDictionary{System.String,System.Object},System.Collections.Generic.IReadOnlyDictionary{System.String,System.Object})">
<summary> Determines whether two sets of attributes are equal when rendered. </summary>
<param name="x">The compared set</param>
Expand Down
2 changes: 1 addition & 1 deletion examples/Demo/Shared/Pages/Index/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<h1>Welcome to the Fluent UI Blazor components library</h1>
<div class="demopanel" style="margin: 1rem 0; padding: 2.5rem; text-align: center">
<p>This is the demo and documentation site for version <strong>3.3.0</strong> of the library. This is the version that supports .NET 6 and 7.</p>
<p>This is the demo and documentation site for version <strong>3.4.0</strong> of the library. This version <strong>only</strong> supports .NET 6 and 7.</p>
<br />
<p>
The <a href="https://www.fluentui-blazor.net/"> version 4 demo and documentation</a> site (supporting .NET 8) is available as well.
Expand Down
9 changes: 9 additions & 0 deletions examples/Demo/Shared/Pages/Splitter/SplitterPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@

<DemoSection Component="typeof(SplitterCustomSizes)" Title="Custom sizes for panels" />

<DemoSection Component="typeof(SplitterCollapse)" Title="Collapse Splitter">
<Description>
<p>
The <code>FluentSplitter</code> component has a <code>Collapsed</code> parameter that can be set to hide the splitter bar
and the contents of Panel2. This can be useful for things like a Summary/Detail view where you don't always want the splitter
to be visible.
</p>
</Description>
</DemoSection>
<h2 id="documentation">Documentation</h2>

<ApiDocumentation Component="typeof(FluentSplitter)" />
Expand Down
2 changes: 1 addition & 1 deletion examples/Demo/Shared/Shared/DemoMainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<FluentSpacer />
<div class="links">
<FluentAnchor Appearance="Appearance.Hypertext"
Href="http://github.com/microsoft/fluentui-blazor" Target="_blank" Rel="noreferrer noopener"
Href="https://github.com/microsoft/fluentui-blazor/tree/archives/v3" Target="_blank" Rel="noreferrer noopener"
title="FluentUI Blazor source on GitHub" aria-label="FluentUI Blazor Repo">
<FluentIcon Value="@(new DemoIcons.Size20.GitHub())" Color="Color.FillInverse" />
</FluentAnchor>
Expand Down
10 changes: 0 additions & 10 deletions examples/Demo/Shared/libman.json

This file was deleted.

1 change: 1 addition & 0 deletions examples/Demo/Shared/wwwroot/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ article {

aside {
padding: 1.5rem 1rem;
top: 0px;
height: 100vh;
position: sticky;
width: 18rem;
Expand Down
6 changes: 5 additions & 1 deletion examples/Demo/Shared/wwwroot/docs/WhatsNew.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
## V3.3.0
## V3.4.0
- FluentSplitter: Add support for collapsing panel 2 (right/bottom), add `OnCollapsed`, `OnExpanded` and `OnResized` event callbacks
- Move CacheStorageAccessor and StaticAssetService to Demo.Shared project as these are specific to the demo site and not the library

## V3.3.0
- This version no longer supports .NET 8.0 (use `Microsoft.FluentUI.AspNetCore.Components` in that case)
- Update all input component to use `ReadOnly` instead of a mix of possible spellings
- Update demo site styling (nav menu and body now scroll independently)
Expand Down
10 changes: 6 additions & 4 deletions src/Core/Components/Splitter/FluentSplitter.razor
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
<div slot="1">
@Panel1
</div>

<div slot="2">
@Panel2
</div>
@if (!Collapsed)
{
<div slot="2">
@Panel2
</div>
}
</split-panels>
2 changes: 1 addition & 1 deletion src/Core/Events/SplitterCollapsedEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Microsoft.FluentUI.AspNetCore.Components;
namespace Microsoft.Fast.Components.FluentUI;

public class SplitterCollapsedEventArgs : EventArgs
{
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Events/SplitterResizedEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Microsoft.FluentUI.AspNetCore.Components;
namespace Microsoft.Fast.Components.FluentUI;

public class SplitterResizedEventArgs : EventArgs
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@ export function afterStarted(blazor) {
}
}
});

afterStartedCalled = true;
}

export function beforeStart(options, extensions) {
Expand Down

0 comments on commit ee27ac6

Please sign in to comment.