Skip to content

Commit

Permalink
Merge pull request #9500 from bitfoundation/develop
Browse files Browse the repository at this point in the history
Version v-9.1.1 (#9498)
  • Loading branch information
msynk authored Dec 15, 2024
2 parents a01b738 + f68672d commit 6c529e1
Show file tree
Hide file tree
Showing 98 changed files with 1,766 additions and 1,127 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/bit.full.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,25 +140,25 @@ jobs:

- name: Test PostgreSQL, MySql, Other database options
run: |
dotnet new bit-bp --name TestPostgreSQL --database PostgreSQL --framework net8.0
dotnet new bit-bp --name TestPostgreSQL --database PostgreSQL --framework net8.0 --signalR
cd TestPostgreSQL/src/Server/TestPostgreSQL.Server.Api/
dotnet build
cd ../../../../
dotnet new bit-bp --name TestMySql --database MySql --framework net8.0
dotnet new bit-bp --name TestMySql --database MySql --framework net8.0 --sample Admin --offlineDb
cd TestMySql/src/Server/TestMySql.Server.Api/
dotnet build
cd ../../../../
dotnet new bit-bp --name TestOther --database Other --framework net9.0
dotnet new bit-bp --name TestOther --database Other --framework net9.0 --sample Todo --sentry
cd TestOther/src/Server/TestOther.Server.Api/
dotnet build
- name: Test file storage options
run: |
dotnet new bit-bp --name TestLocal --filesStorage Local --framework net8.0
dotnet new bit-bp --name TestLocal --filesStorage Local --framework net8.0 --appInsights
cd TestLocal/src/Server/TestLocal.Server.Api/
dotnet build
cd ../../../../
dotnet new bit-bp --name TestAzureBlobStorage --filesStorage AzureBlobStorage --framework net9.0
dotnet new bit-bp --name TestAzureBlobStorage --filesStorage AzureBlobStorage --framework net9.0 --captcha reCaptcha --notification
cd TestAzureBlobStorage/src/Server/TestAzureBlobStorage.Server.Api/
dotnet build
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/todo-sample.cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ jobs:

- name: Configure bswup
run: |
sed -i 's/\/\/ self.noPrerenderQuery/self.noPrerenderQuery/g' TodoSample/src/Client/TodoSample.Client.Web/wwwroot/service-worker.published.js
sed -i 's/\/\/ self.disablePassiveFirstBoot/self.disablePassiveFirstBoot/g' TodoSample/src/Client/TodoSample.Client.Web/wwwroot/service-worker.published.js
- name: Generate CSS/JS files
Expand Down
2 changes: 1 addition & 1 deletion src/Besql/Bit.Besql/wwwroot/bit-besql.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var BitBesql = window.BitBesql || {};
BitBesql.version = window['bit-besql version'] = '9.1.0';
BitBesql.version = window['bit-besql version'] = '9.1.1';

BitBesql.init = async function init(fileName) {
const sqliteFilePath = `/${fileName}`;
Expand Down
2 changes: 1 addition & 1 deletion src/Bit.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<PackageProjectUrl>https://github.com/bitfoundation/bitplatform</PackageProjectUrl>

<!-- Version -->
<ReleaseVersion>9.1.0</ReleaseVersion>
<ReleaseVersion>9.1.1</ReleaseVersion>
<PackageVersion>$(ReleaseVersion)</PackageVersion>
<PackageReleaseNotes>https://github.com/bitfoundation/bitplatform/releases/tag/v-$(ReleaseVersion)</PackageReleaseNotes>
<Version Condition=" '$(Configuration)' == 'Release' ">$([System.String]::Copy($(ReleaseVersion)).Replace('-pre-', '.'))</Version>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
@namespace Bit.BlazorUI
@inherits BitComponentBase

<BitPanel AriaLabel="@AriaLabel"
Class="@ClassBuilder.Value"
Dir="Dir"
@attributes="HtmlAttributes"
Id="@Id"
IsEnabled="IsEnabled"
Style="@StyleBuilder.Value"
Visibility="Visibility"
AutoToggleScroll="AutoToggleScroll"
Blocking="Blocking"
Classes="Classes"
IsOpen="IsOpen"
IsOpenChanged="AssignIsOpen"
Modeless="Modeless"
OnDismiss="OnDismiss"
OnSwipeStart="OnSwipeStart"
OnSwipeMove="OnSwipeMove"
OnSwipeEnd="OnSwipeEnd"
Position="Position"
Size="Size"
ScrollerSelector="@ScrollerSelector"
Styles="Styles"
SwipeTrigger="SwipeTrigger">
@if (Header is not null || HeaderText is not null || ShowCloseButton)
{
<div style="@Styles?.HeaderContainer" class="bit-ppl-hcn @Classes?.HeaderContainer">
@if (Header is not null)
{
<div style="@Styles?.Header" class="bit-ppl-hdr @Classes?.Header">
@Header
</div>
}
else if (HeaderText is not null)
{
<div style="@Styles?.Header" class="bit-ppl-hdr @Classes?.Header">
@HeaderText
</div>
}

@if (ShowCloseButton)
{
<button @onclick="ClosePanel"
style="@Styles?.CloseButton"
class="bit-ppl-cls @Classes?.CloseButton">
<i style="@Styles?.CloseIcon" class="bit-icon bit-icon--Cancel @Classes?.CloseIcon" />
</button>
}
</div>
}

<div style="@Styles?.Body" class="bit-ppl-bdy @Classes?.Body">
@(Body ?? ChildContent)
</div>

@if (Footer is not null)
{
<div style="@Styles?.Footer" class="bit-ppl-fcn @Classes?.Footer">
@Footer
</div>
}
else if (FooterText is not null)
{
<div style="@Styles?.Footer" class="bit-ppl-fcn @Classes?.Footer">
@FooterText
</div>
}
</BitPanel>
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
namespace Bit.BlazorUI;

public partial class BitProPanel : BitComponentBase
{
/// <summary>
/// Enables the auto scrollbar toggle behavior of the panel.
/// </summary>
[Parameter] public bool AutoToggleScroll { get; set; }

/// <summary>
/// The alias of the ChildContent.
/// </summary>
[Parameter] public RenderFragment? Body { get; set; }

/// <summary>
/// Whether the panel can be dismissed by clicking outside of it on the overlay.
/// </summary>
[Parameter] public bool Blocking { get; set; }

/// <summary>
/// The content of the panel.
/// </summary>
[Parameter] public RenderFragment? ChildContent { get; set; }

/// <summary>
/// Custom CSS classes for different parts of the panel.
/// </summary>
[Parameter] public BitProPanelClassStyles? Classes { get; set; }

/// <summary>
/// The template used to render the footer section of the panel.
/// </summary>
[Parameter] public RenderFragment? Footer { get; set; }

/// <summary>
/// The text of the footer section of the panel.
/// </summary>
[Parameter] public string? FooterText { get; set; }

/// <summary>
/// The template used to render the header section of the panel.
/// </summary>
[Parameter] public RenderFragment? Header { get; set; }

/// <summary>
/// The text of the header section of the panel.
/// </summary>
[Parameter] public string? HeaderText { get; set; }

/// <summary>
/// Determines the openness of the panel.
/// </summary>
[Parameter, TwoWayBound]
public bool IsOpen { get; set; }

/// <summary>
/// Renders the overlay in full mode that gives it an opaque background.
/// </summary>
[Parameter] public bool ModeFull { get; set; }

/// <summary>
/// Removes the overlay element of the panel.
/// </summary>
[Parameter] public bool Modeless { get; set; }

/// <summary>
/// A callback function for when the Panel is dismissed.
/// </summary>
[Parameter] public EventCallback<MouseEventArgs> OnDismiss { get; set; }

/// <summary>
/// The event callback for when the swipe action starts on the container of the panel.
/// </summary>
[Parameter] public EventCallback<decimal> OnSwipeStart { get; set; }

/// <summary>
/// The event callback for when the swipe action moves on the container of the panel.
/// </summary>
[Parameter] public EventCallback<decimal> OnSwipeMove { get; set; }

/// <summary>
/// The event callback for when the swipe action ends on the container of the panel.
/// </summary>
[Parameter] public EventCallback<decimal> OnSwipeEnd { get; set; }

/// <summary>
/// The position of the panel to show on the screen.
/// </summary>
[Parameter] public BitPanelPosition? Position { get; set; }

/// <summary>
/// The value of the height or width (based on the position) of the Panel.
/// </summary>
[Parameter] public double? Size { get; set; }

/// <summary>
/// Specifies the element selector for which the Panel disables its scroll if applicable.
/// </summary>
[Parameter] public string? ScrollerSelector { get; set; }

/// <summary>
/// Shows the close button of the Panel.
/// </summary>
[Parameter] public bool ShowCloseButton { get; set; }

/// <summary>
/// Custom CSS styles for different parts of the panel component.
/// </summary>
[Parameter] public BitProPanelClassStyles? Styles { get; set; }

/// <summary>
/// The swiping point (difference percentage) based on the width of the panel container to trigger the close action (default is 0.25m).
/// </summary>
[Parameter] public decimal? SwipeTrigger { get; set; }



public async Task Open()
{
if (await AssignIsOpen(true) is false) return;

StateHasChanged();
}

public async Task Close()
{
if (await AssignIsOpen(false) is false) return;

StateHasChanged();
}



protected override string RootElementClass => "bit-ppl";

protected override void RegisterCssClasses()
{
ClassBuilder.Register(() => ModeFull ? "bit-ppl-mfl" : string.Empty);
}



private async Task ClosePanel(MouseEventArgs e)
{
if (IsEnabled is false) return;

if (await AssignIsOpen(false) is false) return;

await OnDismiss.InvokeAsync(e);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
@import '../../../Bit.BlazorUI/Styles/functions.scss';

.bit-ppl {
.bit-pnl-cnt {
display: flex;
flex-direction: column;
}
}

.bit-ppl-mfl {
.bit-pnl-ovl {
background-color: $clr-bg-overlay;
}
}

.bit-ppl-hcn {
top: 0;
z-index: 1;
display: flex;
position: sticky;
font-weight: 600;
color: $clr-fg-pri;
overflow-wrap: anywhere;
background-color: $clr-bg-pri;
padding: spacing(2) spacing(2) 0;
}

.bit-ppl-hdr {
flex-grow: 1;
display: flex;
align-items: center;
font-size: spacing(2.5);
}

.bit-ppl-cls {
display: flex;
cursor: pointer;
width: spacing(5);
height: spacing(5);
align-items: center;
justify-content: center;
font-size: spacing(1.75);
border-radius: spacing(0.25);
background-color: transparent;

@media (hover: hover) {
&:hover {
color: $clr-fg-pri-hover;
background-color: $clr-bg-pri-hover;
}
}

&:active {
color: $clr-fg-pri-active;
background-color: $clr-bg-pri-active;
}
}

.bit-ppl-bdy {
flex-grow: 1;
overflow-y: auto;
padding: spacing(2);
}

.bit-ppl-fcn {
bottom: 0;
z-index: 1;
position: sticky;
background-color: $clr-bg-pri;
padding: 0 spacing(2) spacing(2) spacing(2);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
namespace Bit.BlazorUI;

public class BitProPanelClassStyles : BitPanelClassStyles
{
/// <summary>
/// Custom CSS classes/styles for the header container of the BitProPanel.
/// </summary>
public string? HeaderContainer { get; set; }

/// <summary>
/// Custom CSS classes/styles for the header of the BitProPanel.
/// </summary>
public string? Header { get; set; }

/// <summary>
/// Custom CSS classes/styles for the close button of the BitProPanel.
/// </summary>
public string? CloseButton { get; set; }

/// <summary>
/// Custom CSS classes/styles for the close button of the BitProPanel.
/// </summary>
public string? CloseIcon { get; set; }

/// <summary>
/// Custom CSS classes/styles for the body of the BitProPanel.
/// </summary>
public string? Body { get; set; }

/// <summary>
/// Custom CSS classes/styles for the footer of the BitProPanel.
/// </summary>
public string? Footer { get; set; }
}
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import "fabric.mdl2.bit.blazoui.extras.scss";
@import "components.scss";
@import "components.scss";
@import "fabric.mdl2.bit.blazoui.extras.scss";
2 changes: 1 addition & 1 deletion src/BlazorUI/Bit.BlazorUI.Extras/Styles/components.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../Components/DataGrid/BitDataGrid.scss";
@import "../Components/DataGrid/Pagination/BitDataGridPaginator.scss";

@import "../Components/PdfReader/BitPdfReader.scss";
@import "../Components/ProPanel/BitProPanel.scss";
Loading

0 comments on commit 6c529e1

Please sign in to comment.