From 8cda796d3352b89aed965e9a7949ea8d737611e6 Mon Sep 17 00:00:00 2001 From: Saleh Yusefnejad Date: Mon, 6 Jan 2025 13:47:01 +0330 Subject: [PATCH 01/14] feat(blazorui): add BitErrorBoundary component #9622 (#9627) --- .../ErrorBoundary/BitErrorBoundary.razor | 48 ++++++++++ .../ErrorBoundary/BitErrorBoundary.razor.cs | 77 +++++++++++++++ .../ErrorBoundary/BitErrorBoundary.scss | 30 ++++++ .../Styles/components.scss | 1 + .../Extras/AppShell/BitAppShellDemo.razor | 2 - .../Extras/Chart/BitChartDemo.razor | 1 - .../Extras/Chart/BitChartDemo.razor.cs | 4 +- .../Extras/DataGrid/BitDataGridDemo.razor | 3 +- .../Extras/DataGrid/BitDataGridDemo.razor.cs | 5 +- .../ErrorBoundary/BitErrorBoundaryDemo.razor | 18 ++++ .../BitErrorBoundaryDemo.razor.cs | 96 +++++++++++++++++++ .../BitErrorBoundaryDemo.razor.scss | 0 .../ModalService/BitModalServiceDemo.razor | 2 - .../Extras/NavPanel/BitNavPanelDemo.razor | 2 - .../Extras/PdfReader/BitPdfReaderDemo.razor | 2 - .../Pages/Home/ComponentsSection.razor | 11 ++- .../Routes.razor | 4 +- .../Routes.razor.cs | 16 +++- .../Shared/AppErrorBoundary.razor | 35 ------- .../Shared/AppErrorBoundary.razor.cs | 33 ------- .../Shared/AppErrorBoundary.razor.scss | 15 --- .../Shared/MainLayout.razor.NavItems.cs | 5 +- .../compilerconfig.json | 12 +-- .../wwwroot/images/icon/error-triangle.svg | 4 - 24 files changed, 308 insertions(+), 118 deletions(-) create mode 100644 src/BlazorUI/Bit.BlazorUI.Extras/Components/ErrorBoundary/BitErrorBoundary.razor create mode 100644 src/BlazorUI/Bit.BlazorUI.Extras/Components/ErrorBoundary/BitErrorBoundary.razor.cs create mode 100644 src/BlazorUI/Bit.BlazorUI.Extras/Components/ErrorBoundary/BitErrorBoundary.scss create mode 100644 src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/ErrorBoundary/BitErrorBoundaryDemo.razor create mode 100644 src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/ErrorBoundary/BitErrorBoundaryDemo.razor.cs create mode 100644 src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/ErrorBoundary/BitErrorBoundaryDemo.razor.scss delete mode 100644 src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Shared/AppErrorBoundary.razor delete mode 100644 src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Shared/AppErrorBoundary.razor.cs delete mode 100644 src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Shared/AppErrorBoundary.razor.scss delete mode 100644 src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/wwwroot/images/icon/error-triangle.svg diff --git a/src/BlazorUI/Bit.BlazorUI.Extras/Components/ErrorBoundary/BitErrorBoundary.razor b/src/BlazorUI/Bit.BlazorUI.Extras/Components/ErrorBoundary/BitErrorBoundary.razor new file mode 100644 index 0000000000..f639b86d93 --- /dev/null +++ b/src/BlazorUI/Bit.BlazorUI.Extras/Components/ErrorBoundary/BitErrorBoundary.razor @@ -0,0 +1,48 @@ +@namespace Bit.BlazorUI +@inherits ErrorBoundaryBase + +@if (CurrentException is null) +{ + @(Body ?? ChildContent) +} +else if (ErrorContent is not null) +{ + @ErrorContent(CurrentException) +} +else +{ +
+ + + + + + + @(Title ?? "Oops, Something went wrong...") + + + @if (ShowException) + { +
+ @CurrentException?.ToString() +
+ } + + @if (Footer is not null) + { + @Footer + } + else + { +
+ @(RefreshText ?? "Refresh") + @(HomeText ?? "Home") + @(RecoverText ?? "Recover") + @if (AdditionalButtons is not null) + { + @AdditionalButtons + } +
+ } +
+} \ No newline at end of file diff --git a/src/BlazorUI/Bit.BlazorUI.Extras/Components/ErrorBoundary/BitErrorBoundary.razor.cs b/src/BlazorUI/Bit.BlazorUI.Extras/Components/ErrorBoundary/BitErrorBoundary.razor.cs new file mode 100644 index 0000000000..d7b92025f8 --- /dev/null +++ b/src/BlazorUI/Bit.BlazorUI.Extras/Components/ErrorBoundary/BitErrorBoundary.razor.cs @@ -0,0 +1,77 @@ +namespace Bit.BlazorUI; + +public partial class BitErrorBoundary : ErrorBoundaryBase +{ + [Inject] private NavigationManager _navigationManager { get; set; } = default!; + + + + /// + /// The footer content of the boundary. + /// + [Parameter] public RenderFragment? AdditionalButtons { get; set; } + + /// + /// Alias of the ChildContent. + /// + [Parameter] public RenderFragment? Body { get; set; } + + /// + /// The footer content of the boundary. + /// + [Parameter] public RenderFragment? Footer { get; set; } + + /// + /// The text of the Home button. + /// + [Parameter] public string? HomeText { get; set; } + + /// + /// The url of the home page for the Home button. + /// + [Parameter] public string? HomeUrl { get; set; } + + /// + /// The callback for when an error get caught by the boundary. + /// + [Parameter] public EventCallback OnError { get; set; } + + /// + /// The text of the Recover button. + /// + [Parameter] public string? RecoverText { get; set; } + + /// + /// The text of the Refresh button. + /// + [Parameter] public string? RefreshText { get; set; } + + /// + /// Whether the actual exception information should be shown or not. + /// + [Parameter] public bool ShowException { get; set; } + + /// + /// The header title of the boundary. + /// + [Parameter] public string? Title { get; set; } + + + + protected override async Task OnErrorAsync(Exception exception) + { + await OnError.InvokeAsync(exception); + } + + + + private void Refresh() + { + _navigationManager.Refresh(forceReload: true); + } + + private void GoHome() + { + _navigationManager.NavigateTo(HomeUrl ?? "/", forceLoad: true); + } +} diff --git a/src/BlazorUI/Bit.BlazorUI.Extras/Components/ErrorBoundary/BitErrorBoundary.scss b/src/BlazorUI/Bit.BlazorUI.Extras/Components/ErrorBoundary/BitErrorBoundary.scss new file mode 100644 index 0000000000..a1cd67f816 --- /dev/null +++ b/src/BlazorUI/Bit.BlazorUI.Extras/Components/ErrorBoundary/BitErrorBoundary.scss @@ -0,0 +1,30 @@ +@import '../../../Bit.BlazorUI/Styles/functions.scss'; + +.bit-erb { + width: 100%; + height: 100%; + display: flex; + gap: spacing(2); + align-items: center; + box-sizing: border-box; + flex-direction: column; + justify-content: center; + background-color: $clr-bg-pri; +} + +.bit-erb-exp { + width: 90%; + overflow: auto; + white-space: pre; + text-align: start; + margin: spacing(3); +} + +.bit-erb-ftr { + width: 100%; + display: flex; + gap: spacing(2); + align-items: center; + box-sizing: border-box; + justify-content: center; +} diff --git a/src/BlazorUI/Bit.BlazorUI.Extras/Styles/components.scss b/src/BlazorUI/Bit.BlazorUI.Extras/Styles/components.scss index 026cf642cb..ac79853b49 100644 --- a/src/BlazorUI/Bit.BlazorUI.Extras/Styles/components.scss +++ b/src/BlazorUI/Bit.BlazorUI.Extras/Styles/components.scss @@ -1,6 +1,7 @@ @import "../Components/AppShell/BitAppShell.scss"; @import "../Components/DataGrid/BitDataGrid.scss"; @import "../Components/DataGrid/Pagination/BitDataGridPaginator.scss"; +@import "../Components/ErrorBoundary/BitErrorBoundary.scss"; @import "../Components/NavPanel/BitNavPanel.scss"; @import "../Components/PdfReader/BitPdfReader.scss"; @import "../Components/ProPanel/BitProPanel.scss"; diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/AppShell/BitAppShellDemo.razor b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/AppShell/BitAppShellDemo.razor index 13f7921925..ec74d0f893 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/AppShell/BitAppShellDemo.razor +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/AppShell/BitAppShellDemo.razor @@ -1,7 +1,5 @@ @page "/components/appshell" -@inherits AppComponentBase - diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/Chart/BitChartDemo.razor b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/Chart/BitChartDemo.razor index b659f07f11..0845c53064 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/Chart/BitChartDemo.razor +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/Chart/BitChartDemo.razor @@ -1,6 +1,5 @@ @page "/components/chart" -@inherits AppComponentBase diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/Chart/BitChartDemo.razor.cs b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/Chart/BitChartDemo.razor.cs index 0a84e9b628..e158f419f9 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/Chart/BitChartDemo.razor.cs +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/Chart/BitChartDemo.razor.cs @@ -75,7 +75,7 @@ public partial class BitChartDemo private bool isLoadingAssemblies = true; - protected async override Task OnInitAsync() + protected async override Task OnInitializedAsync() { try { @@ -89,6 +89,6 @@ protected async override Task OnInitAsync() isLoadingAssemblies = false; } - await base.OnInitAsync(); + await base.OnInitializedAsync(); } } diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/DataGrid/BitDataGridDemo.razor b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/DataGrid/BitDataGridDemo.razor index 1b5f0e72a2..aea53dc9dc 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/DataGrid/BitDataGridDemo.razor +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/DataGrid/BitDataGridDemo.razor @@ -1,8 +1,7 @@ @page "/components/datagrid" @page "/components/data-grid" - -@using Demo.Shared.Dtos.DataGridDemo @inherits AppComponentBase +@using Demo.Shared.Dtos.DataGridDemo componentParameters = [ diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/ErrorBoundary/BitErrorBoundaryDemo.razor b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/ErrorBoundary/BitErrorBoundaryDemo.razor new file mode 100644 index 0000000000..1f4026a88a --- /dev/null +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/ErrorBoundary/BitErrorBoundaryDemo.razor @@ -0,0 +1,18 @@ +@page "/components/errorboundary" + + + + + + + + Throw an exception + + + + \ No newline at end of file diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/ErrorBoundary/BitErrorBoundaryDemo.razor.cs b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/ErrorBoundary/BitErrorBoundaryDemo.razor.cs new file mode 100644 index 0000000000..77db2989ae --- /dev/null +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/ErrorBoundary/BitErrorBoundaryDemo.razor.cs @@ -0,0 +1,96 @@ +namespace Bit.BlazorUI.Demo.Client.Core.Pages.Components.Extras.ErrorBoundary; + +public partial class BitErrorBoundaryDemo +{ + private readonly List componentParameters = + [ + new() + { + Name = "AdditionalButtons", + Type = "RenderFragment?", + DefaultValue = "null", + Description = "The footer content of the boundary.", + }, + new() + { + Name = "Body", + Type = "RenderFragment?", + DefaultValue = "null", + Description = "Alias of the ChildContent.", + }, + new() + { + Name = "Footer", + Type = "RenderFragment?", + DefaultValue = "null", + Description = "The footer content of the boundary.", + }, + new() + { + Name = "HomeText", + Type = "string?", + DefaultValue = "null", + Description = "The text of the Home button.", + }, + new() + { + Name = "HomeUrl", + Type = "string?", + DefaultValue = "null", + Description = "The url of the home page for the Home button.", + }, + new() + { + Name = "OnError", + Type = "EventCallback", + DefaultValue = "", + Description = "The callback for when an error get caught by the boundary.", + }, + new() + { + Name = "RecoverText", + Type = "string?", + DefaultValue = "null", + Description = "The text of the Recover button.", + }, + new() + { + Name = "RefreshText", + Type = "string?", + DefaultValue = "null", + Description = "The text of the Refresh button.", + }, + new() + { + Name = "ShowException", + Type = "bool", + DefaultValue = "false", + Description = "Whether the actual exception information should be shown or not.", + }, + new() + { + Name = "Title", + Type = "string?", + DefaultValue = "null", + Description = "The header title of the boundary.", + }, + ]; + + + private void ThrowException() + { + throw new Exception("This is an exception!"); + } + + + + private readonly string example1RazorCode = @" + + Throw an exception +"; + private readonly string example1CsharpCode = @" +private void ThrowException() +{ + throw new Exception(""This is an exception!""); +}"; +} diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/ErrorBoundary/BitErrorBoundaryDemo.razor.scss b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/ErrorBoundary/BitErrorBoundaryDemo.razor.scss new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/ModalService/BitModalServiceDemo.razor b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/ModalService/BitModalServiceDemo.razor index dd4b124125..a2dd663a56 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/ModalService/BitModalServiceDemo.razor +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/ModalService/BitModalServiceDemo.razor @@ -1,7 +1,5 @@ @page "/components/modalservice" -@inherits AppComponentBase - diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/NavPanel/BitNavPanelDemo.razor b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/NavPanel/BitNavPanelDemo.razor index 2a002c5dc2..d9aa2f9856 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/NavPanel/BitNavPanelDemo.razor +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/NavPanel/BitNavPanelDemo.razor @@ -1,7 +1,5 @@ @page "/components/navpanel" -@inherits AppComponentBase - diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/PdfReader/BitPdfReaderDemo.razor b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/PdfReader/BitPdfReaderDemo.razor index cf249bdaef..a94ad63719 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/PdfReader/BitPdfReaderDemo.razor +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/PdfReader/BitPdfReaderDemo.razor @@ -1,7 +1,5 @@ @page "/components/pdfreader" -@inherits AppComponentBase - diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Home/ComponentsSection.razor b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Home/ComponentsSection.razor index 17b3fc992a..e819d9ba7e 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Home/ComponentsSection.razor +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Home/ComponentsSection.razor @@ -84,8 +84,6 @@ TimePicker - -
Layouts @@ -107,6 +105,8 @@ Stack
+
+
Lists @@ -162,8 +162,6 @@ Tag
-
-
Progress @@ -206,6 +204,8 @@ Tooltip
+
+
Utilities @@ -250,6 +250,9 @@ DataGrid + + ErrorBoundary + Chart diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Routes.razor b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Routes.razor index b8f9acca0e..4b75acc69d 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Routes.razor +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Routes.razor @@ -1,4 +1,4 @@ - + bit BlazorUI - \ No newline at end of file + \ No newline at end of file diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Routes.razor.cs b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Routes.razor.cs index 7b756f8d10..821a1ebfef 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Routes.razor.cs +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Routes.razor.cs @@ -2,12 +2,24 @@ public partial class Routes { - [AutoInject] BitExtraServices bitExtraServices = default!; + private bool _showException; + + [AutoInject] private BitExtraServices _bitExtraServices = default!; + [AutoInject] private IExceptionHandler _exceptionHandler = default!; protected override async Task OnInitializedAsync() { - await bitExtraServices.AddRootCssClasses(); +#if DEBUG + _showException = true; +#endif + + await _bitExtraServices.AddRootCssClasses(); await base.OnInitializedAsync(); } + + private void HandleOnError(Exception ex) + { + _exceptionHandler.Handle(ex); + } } diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Shared/AppErrorBoundary.razor b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Shared/AppErrorBoundary.razor deleted file mode 100644 index 24f36c3620..0000000000 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Shared/AppErrorBoundary.razor +++ /dev/null @@ -1,35 +0,0 @@ -@inherits ErrorBoundaryBase - -@if (CurrentException is null) -{ - @ChildContent -} -else if (ErrorContent is not null) -{ - @ErrorContent(CurrentException) -} -else -{ -
- - - - - Oops, something went wrong... - - - @if (_showException) - { -
- @CurrentException?.ToString() -
- } - - - Refresh - Home - Recover - -
-
-} diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Shared/AppErrorBoundary.razor.cs b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Shared/AppErrorBoundary.razor.cs deleted file mode 100644 index 9bcd2e2b66..0000000000 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Shared/AppErrorBoundary.razor.cs +++ /dev/null @@ -1,33 +0,0 @@ -namespace Bit.BlazorUI.Demo.Client.Core.Shared; - -public partial class AppErrorBoundary -{ - private bool _showException; - - [AutoInject] private IExceptionHandler _exceptionHandler = default!; - [AutoInject] private NavigationManager _navigationManager = default!; - -#if DEBUG - protected override void OnInitialized() - { - _showException = true; - } -#endif - - protected override Task OnErrorAsync(Exception exception) - { - _exceptionHandler.Handle(exception); - - return Task.CompletedTask; - } - - private void Refresh() - { - _navigationManager.Refresh(forceReload: true); - } - - private void GoHome() - { - _navigationManager.NavigateTo("/", true); - } -} diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Shared/AppErrorBoundary.razor.scss b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Shared/AppErrorBoundary.razor.scss deleted file mode 100644 index c772ea8b88..0000000000 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Shared/AppErrorBoundary.razor.scss +++ /dev/null @@ -1,15 +0,0 @@ -@import '../Styles/abstracts/_bit-css-variables.scss'; - -main { - width: 100%; - height: 100%; - background-color: $bit-color-background-primary -} - -.exception { - width: 90%; - margin: 1.5rem; - overflow: auto; - white-space: pre; - text-align: start; -} diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Shared/MainLayout.razor.NavItems.cs b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Shared/MainLayout.razor.NavItems.cs index 4d4f9dc40b..a2a13237af 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Shared/MainLayout.razor.NavItems.cs +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Shared/MainLayout.razor.NavItems.cs @@ -149,11 +149,12 @@ public partial class MainLayout Text = "Extras", ChildItems = [ - new() { Text = "DataGrid", Url = "/components/datagrid", AdditionalUrls = ["/components/data-grid"] }, + new() { Text = "AppShell", Url = "/components/appshell" }, new() { Text = "Chart", Url = "/components/chart" }, + new() { Text = "DataGrid", Url = "/components/datagrid", AdditionalUrls = ["/components/data-grid"] }, + new() { Text = "ErrorBoundary", Url = "/components/errorboundary" }, new() { Text = "NavPanel", Url = "/components/navpanel" }, new() { Text = "PdfReader", Url = "/components/pdfreader" }, - new() { Text = "AppShell", Url = "/components/appshell" }, new() { Text = "ProPanel", Url = "/components/propanel" }, new() { diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/compilerconfig.json b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/compilerconfig.json index fd12fc508f..ba4f06672e 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/compilerconfig.json +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/compilerconfig.json @@ -65,6 +65,12 @@ "minify": { "enabled": false }, "options": { "sourceMap": false } }, + { + "outputFile": "Pages/Components/Extras/ErrorBoundary/BitErrorBoundaryDemo.razor.css", + "inputFile": "Pages/Components/Extras/ErrorBoundary/BitErrorBoundaryDemo.razor.scss", + "minify": { "enabled": false }, + "options": { "sourceMap": false } + }, { "outputFile": "Pages/Components/Extras/ModalService/BitModalServiceDemo.razor.css", "inputFile": "Pages/Components/Extras/ModalService/BitModalServiceDemo.razor.scss", @@ -503,12 +509,6 @@ "minify": { "enabled": false }, "options": { "sourceMap": false } }, - { - "outputFile": "Shared/AppErrorBoundary.razor.css", - "inputFile": "Shared/AppErrorBoundary.razor.scss", - "minify": { "enabled": false }, - "options": { "sourceMap": false } - }, { "outputFile": "Shared/AppFooter.razor.css", "inputFile": "Shared/AppFooter.razor.scss", diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/wwwroot/images/icon/error-triangle.svg b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/wwwroot/images/icon/error-triangle.svg deleted file mode 100644 index ca7f27fc98..0000000000 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/wwwroot/images/icon/error-triangle.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - From 0d7b7c4a94be948cef9668c1fbb01bcd42ca7481 Mon Sep 17 00:00:00 2001 From: Saleh Yusefnejad Date: Mon, 6 Jan 2025 16:24:26 +0330 Subject: [PATCH 02/14] fix(blazorui): resolve responsive issues of BitSnackBar #9623 (#9628) --- .../Components/Notifications/SnackBar/BitSnackBar.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Notifications/SnackBar/BitSnackBar.scss b/src/BlazorUI/Bit.BlazorUI/Components/Notifications/SnackBar/BitSnackBar.scss index 1c795a4695..70d2c9a275 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Notifications/SnackBar/BitSnackBar.scss +++ b/src/BlazorUI/Bit.BlazorUI/Components/Notifications/SnackBar/BitSnackBar.scss @@ -1,6 +1,7 @@ @import "../../../Styles/functions.scss"; .bit-snb { + width: 100%; display: flex; position: fixed; gap: spacing(1.25); @@ -171,6 +172,7 @@ .bit-snb-tcn { left: 50%; top: spacing(1); + align-items: center; transform: translateX(-50%); } @@ -188,6 +190,7 @@ .bit-snb-bcn { left: 50%; bottom: spacing(1); + align-items: center; transform: translateX(-50%); } From 54350f639bb8df89f5a4adfb1d38530babccbd6a Mon Sep 17 00:00:00 2001 From: Saleh Yusefnejad Date: Tue, 7 Jan 2025 18:48:37 +0330 Subject: [PATCH 03/14] feat(templates): remove responsive settings of dropdown in Boilerplate #9631 (#9632) --- .../Components/Layout/IdentityHeader.razor | 3 +-- .../Components/Layout/IdentityHeader.razor.scss | 12 ------------ .../Components/Pages/Authorized/Todo/TodoPage.razor | 3 +-- .../Pages/Authorized/Todo/TodoPage.razor.scss | 9 --------- 4 files changed, 2 insertions(+), 25 deletions(-) diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Layout/IdentityHeader.razor b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Layout/IdentityHeader.razor index ed9a7dfb0f..776b46d15f 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Layout/IdentityHeader.razor +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Layout/IdentityHeader.razor @@ -41,9 +41,8 @@ @if (CultureInfoManager.MultilingualEnabled) { - diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Layout/IdentityHeader.razor.scss b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Layout/IdentityHeader.razor.scss index 3fb393b9a1..ce2fabc23b 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Layout/IdentityHeader.razor.scss +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Layout/IdentityHeader.razor.scss @@ -8,15 +8,3 @@ header { position: absolute; z-index: $bit-zindex-base; } - -::deep { - .language-callout { - @include lt-sm { - height: unset; - max-width: 225px; - box-shadow: none; - bottom: $bit-env-inset-bottom; - top: $bit-env-inset-top !important; - } - } -} diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Authorized/Todo/TodoPage.razor b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Authorized/Todo/TodoPage.razor index 53bc60d571..3262d1b0a4 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Authorized/Todo/TodoPage.razor +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Authorized/Todo/TodoPage.razor @@ -39,10 +39,9 @@ Placeholder="@Localizer[nameof(AppStrings.TodoSearchPlaceholder)]" Styles="@(new() { InputContainer="border:none;background-color:var(--bit-clr-bg-sec)" })" /> - diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Authorized/Todo/TodoPage.razor.scss b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Authorized/Todo/TodoPage.razor.scss index bdf0421e21..7eda6605ce 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Authorized/Todo/TodoPage.razor.scss +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Authorized/Todo/TodoPage.razor.scss @@ -38,15 +38,6 @@ section { } } - .todo-sort-callout { - @include lt-sm { - height: unset; - box-shadow: none; - bottom: $bit-env-inset-bottom; - top: $bit-env-inset-top !important; - } - } - .todo-list { width: 100%; background-color: var(--bit-clr-bg-sec); From 801393a3e857ae909d65ef0c229b4bd5c1fca669 Mon Sep 17 00:00:00 2001 From: Saleh Yusefnejad Date: Wed, 8 Jan 2025 11:36:47 +0330 Subject: [PATCH 04/14] feat(blazorui): BitSearchBox component improvements #9630 (#9634) --- .../Inputs/SearchBox/BitSearchBox.razor.cs | 21 +++++ .../Inputs/SearchBox/BitSearchBox.scss | 70 ++++++++++++++++- .../Inputs/SearchBox/BitSearchBoxDemo.razor | 50 +++++++++--- .../SearchBox/BitSearchBoxDemo.razor.cs | 76 ++++++++++++++++--- 4 files changed, 192 insertions(+), 25 deletions(-) diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/SearchBox/BitSearchBox.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/SearchBox/BitSearchBox.razor.cs index 55adccf395..339dcc8001 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/SearchBox/BitSearchBox.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/SearchBox/BitSearchBox.razor.cs @@ -22,6 +22,11 @@ public partial class BitSearchBox : BitTextInputBase, IAsyncDisposable + /// + /// The accent color kind of the search box. + /// + [Parameter] public BitColorKind? Accent { get; set; } + /// /// Custom CSS classes for different parts of the BitSearchBox. /// @@ -77,6 +82,11 @@ public partial class BitSearchBox : BitTextInputBase, IAsyncDisposable /// [Parameter] public int MinSuggestTriggerChars { get; set; } = 3; + /// + /// Removes the default border of the search box. + /// + [Parameter] public bool NoBorder { get; set; } + /// /// Callback executed when the user clears the search box by either clicking 'X' or hitting escape. /// @@ -180,6 +190,17 @@ protected override void RegisterCssClasses() ClassBuilder.Register(() => ShowSearchButton ? "bit-srb-ssb" : string.Empty); ClassBuilder.Register(() => HideIcon ? "bit-srb-hic" : string.Empty); + + ClassBuilder.Register(() => NoBorder ? "bit-srb-nbr" : string.Empty); + + ClassBuilder.Register(() => Accent switch + { + BitColorKind.Primary => "bit-srb-apri", + BitColorKind.Secondary => "bit-srb-asec", + BitColorKind.Tertiary => "bit-srb-ater", + BitColorKind.Transparent => "bit-srb-atra", + _ => string.Empty + }); } protected override void RegisterCssStyles() diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/SearchBox/BitSearchBox.scss b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/SearchBox/BitSearchBox.scss index 6171cc2cde..94551cccfb 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/SearchBox/BitSearchBox.scss +++ b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/SearchBox/BitSearchBox.scss @@ -105,19 +105,19 @@ } .bit-srb-cnt { - margin: 0; flex: 1; + margin: 0; display: flex; box-shadow: none; + color: $clr-fg-pri; height: spacing(4); align-items: stretch; flex-flow: row nowrap; box-sizing: border-box; font-size: spacing(1.75); - color: $clr-fg-pri; - border-radius: $shp-border-radius; - background-color: $clr-bg-pri; padding: spacing(0.125) 0; + background-color: $clr-bg-pri; + border-radius: $shp-border-radius; border: $shp-border-width $shp-border-style $clr-brd-pri; @media (hover: hover) { @@ -133,6 +133,30 @@ } } +.bit-srb-apri { + .bit-srb-cnt { + background-color: $clr-bg-pri; + } +} + +.bit-srb-asec { + .bit-srb-cnt { + background-color: $clr-bg-sec; + } +} + +.bit-srb-ater { + .bit-srb-cnt { + background-color: $clr-bg-ter; + } +} + +.bit-srb-atra { + .bit-srb-cnt { + background-color: transparent; + } +} + .bit-srb-hic { .bit-srb-cnt { padding: 0 spacing(1); @@ -349,6 +373,44 @@ } } +.bit-srb-nbr { + .bit-srb-cnt { + border: none; + } + + &.bit-srb-foc { + .bit-srb-cnt, + .bit-srb-sbn { + border: none; + } + + @media (hover: hover) { + &:hover { + border: none; + } + } + } + + .bit-srb-sbn { + border: none; + background-color: transparent; + + i { + color: $clr-sec-text; + } + + @media (hover: hover) { + &:hover { + background-color: $clr-bg-pri-hover; + + i { + color: $clr-fg-pri-hover; + } + } + } + } +} + .bit-srb-hvl { @media (hover: hover) { &:hover { diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/SearchBox/BitSearchBoxDemo.razor b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/SearchBox/BitSearchBoxDemo.razor index 4a07b5a7c0..a39a02df2f 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/SearchBox/BitSearchBoxDemo.razor +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/SearchBox/BitSearchBoxDemo.razor @@ -36,7 +36,35 @@ - + + +
Demonstrating the no-border style of BitSearchBox in both enabled and disabled states.
+

+
+ +

+ +
+
+
+ + + +
Demonstrating the accent colors of BitSearchBox.
+

+
+ +

+ +

+ +

+ +
+
+
+ +
Examples of BitSearchBox with various icon configurations such as fixed icon, no animation, custom icon, and no icon.


@@ -52,7 +80,7 @@
- +
Showcasing BitSearchBox with a search button in various configurations, including custom button icon and disabled state.


@@ -61,16 +89,20 @@



- -



+ +

+

+ +

+
- +
Explore styling and class customization for BitSearchBox, including component styles, custom classes, and detailed styles.


@@ -99,7 +131,7 @@
- +
Binding examples for BitSearchBox including two-way binding, OnChange, and OnSearch events.



@@ -131,7 +163,7 @@
- +
Demonstrating validation of BitSearchBox using data annotations.

@@ -147,7 +179,7 @@
- +
Examples of BitSearchBox with suggestion list, including custom filtering, minimum trigger characters, and more.



@@ -207,7 +239,7 @@
- +
Use the BitSearchBox component in right-to-left (RTL).


diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/SearchBox/BitSearchBoxDemo.razor.cs b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/SearchBox/BitSearchBoxDemo.razor.cs index 51913864c2..31b7226206 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/SearchBox/BitSearchBoxDemo.razor.cs +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/SearchBox/BitSearchBoxDemo.razor.cs @@ -8,10 +8,12 @@ public partial class BitSearchBoxDemo [ new() { - Name = "Autocomplete", - Type = "string?", + Name = "Accent", + Type = "BitColorKind?", DefaultValue = "null", - Description = "Specifies the value of the autocomplete attribute of the input component.", + Description = "The accent color kind of the search box.", + LinkType = LinkType.Link, + Href = "#color-kind-enum", }, new() { @@ -88,6 +90,13 @@ public partial class BitSearchBoxDemo Description = "The minimum character requirement for doing a search in suggested items.", }, new() + { + Name = "NoBorder", + Type = "bool", + DefaultValue = "false", + Description = "Removes the default border of the search box.", + }, + new() { Name = "OnClear", Type = "EventCallback", @@ -257,6 +266,39 @@ public partial class BitSearchBoxDemo private readonly List componentSubEnums = [ + new() + { + Id = "color-kind-enum", + Name = "BitColorKind", + Description = "Defines the color kinds available in the bit BlazorUI.", + Items = + [ + new() + { + Name = "Primary", + Description = "The primary color kind.", + Value = "0", + }, + new() + { + Name = "Secondary", + Description = "The secondary color kind.", + Value = "1", + }, + new() + { + Name = "Tertiary", + Description = "The tertiary color kind.", + Value = "2", + }, + new() + { + Name = "Transparent", + Description = "The transparent color kind.", + Value = "3", + }, + ] + }, new() { Id = "input-mode", @@ -411,19 +453,29 @@ private async Task> LoadItems(string? search, int count) "; private readonly string example3RazorCode = @" + +"; + + private readonly string example4RazorCode = @" + + + +"; + + private readonly string example5RazorCode = @" "; - private readonly string example4RazorCode = @" + private readonly string example6RazorCode = @" "; - private readonly string example5RazorCode = @" + private readonly string example7RazorCode = @" + + + + + + + +"; +} diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/MessageBox/BitMessageBoxDemo.razor.scss b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/MessageBox/BitMessageBoxDemo.razor.scss index e69de29bb2..aafd8697ea 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/MessageBox/BitMessageBoxDemo.razor.scss +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Extras/MessageBox/BitMessageBoxDemo.razor.scss @@ -0,0 +1,21 @@ +::deep { + .custom-msg { + background: linear-gradient(180deg, #3e0f0f, transparent) #000; + } + + .custom-msg-btn { + color: #fff; + font-weight: bold; + border-radius: 1rem; + border-color: #8f0101; + transition: background-color 1s; + background: linear-gradient(90deg, #d10000, transparent) #8f0101; + } + + .custom-msg-btn:hover { + color: #fff; + font-weight: bold; + border-color: #8f0101; + background-color: #8f0101; + } +} From 4602f7f00919dad0db9727cf6d22f69b2730f598 Mon Sep 17 00:00:00 2001 From: Saleh Yusefnejad Date: Thu, 9 Jan 2025 22:58:15 +0330 Subject: [PATCH 08/14] feat(blazorui): add missing xml docs to all components #9575 (#9641) --- .../Components/AppShell/BitAppShell.razor.cs | 3 +++ .../Bit.BlazorUI.Extras/Components/Chart/BitChart.razor.cs | 2 +- .../Components/DataGrid/BitDataGrid.razor.cs | 2 +- .../Components/ErrorBoundary/BitErrorBoundary.razor.cs | 3 +++ .../Components/MessageBox/BitMessageBox.razor.cs | 3 +++ .../Components/NavPanel/BitNavPanel.razor.cs | 3 +++ .../Components/PdfReader/BitPdfReader.razor.cs | 7 +++++-- .../Components/ProPanel/BitProPanel.razor.cs | 3 +++ .../Buttons/BitActionButton/BitActionButton.razor.cs | 3 +++ .../Components/Buttons/BitButton/BitButton.razor.cs | 3 +++ .../Buttons/BitButtonGroup/BitButtonGroup.razor.cs | 3 +++ .../Buttons/BitMenuButton/BitMenuButton.razor.cs | 3 +++ .../Buttons/BitToggleButton/BitToggleButton.razor.cs | 3 +++ .../Components/Inputs/Calendar/BitCalendar.razor.cs | 3 +++ .../Components/Inputs/Checkbox/BitCheckbox.razor.cs | 3 +++ .../Components/Inputs/ChoiceGroup/BitChoiceGroup.razor.cs | 3 +++ .../Components/Inputs/Dropdown/BitDropdown.razor.cs | 3 +++ .../Components/Inputs/FileUpload/BitFileUpload.razor.cs | 2 +- .../Components/Inputs/NumberField/BitNumberField.razor.cs | 3 +++ .../Components/Inputs/OtpInput/BitOtpInput.razor.cs | 3 +++ .../Components/Inputs/Rating/BitRating.razor.cs | 3 +++ .../Components/Inputs/SearchBox/BitSearchBox.razor.cs | 3 +++ .../Components/Inputs/Slider/BitSlider.razor.cs | 3 +++ .../Components/Inputs/SpinButton/BitSpinButton.razor.cs | 3 +++ .../Components/Inputs/TextField/BitTextField.razor.cs | 3 +++ .../Components/Inputs/Toggle/BitToggle.razor.cs | 3 +++ .../CircularTimePicker/BitCircularTimePicker.razor.cs | 3 +++ .../Inputs/_Pickers/ColorPicker/BitColorPicker.razor.cs | 3 +++ .../Inputs/_Pickers/DatePicker/BitDatePicker.razor.cs | 3 +++ .../_Pickers/DateRangePicker/BitDateRangePicker.razor.cs | 3 +++ .../Inputs/_Pickers/TimePicker/BitTimePicker.razor.cs | 3 +++ .../Components/Layouts/Footer/BitFooter.razor.cs | 3 +++ .../Bit.BlazorUI/Components/Layouts/Grid/BitGrid.razor.cs | 3 +++ .../Components/Layouts/Header/BitHeader.razor.cs | 3 +++ .../Components/Layouts/Layout/BitLayout.razor.cs | 3 +++ .../Components/Layouts/Spacer/BitSpacer.razor.cs | 3 +++ .../Bit.BlazorUI/Components/Layouts/Stack/BitStack.cs | 3 +++ .../Components/Lists/BasicList/BitBasicList.razor.cs | 3 +++ .../Components/Lists/Carousel/BitCarousel.razor.cs | 3 +++ .../Components/Lists/Swiper/BitSwiper.razor.cs | 3 +++ .../Components/Lists/Timeline/BitTimeline.razor.cs | 3 +++ .../Components/Navs/Breadcrumb/BitBreadcrumb.razor.cs | 3 +++ .../Components/Navs/DropMenu/BitDropMenu.razor.cs | 3 +++ .../Bit.BlazorUI/Components/Navs/Nav/BitNav.razor.cs | 3 +++ .../Bit.BlazorUI/Components/Navs/NavBar/BitNavBar.razor.cs | 3 +++ .../Components/Navs/Pagination/BitPagination.razor.cs | 3 +++ .../Bit.BlazorUI/Components/Navs/Pivot/BitPivot.razor.cs | 3 +++ .../Components/Notifications/Badge/BitBadge.razor.cs | 3 +++ .../Components/Notifications/Message/BitMessage.razor.cs | 3 +++ .../Components/Notifications/Persona/BitPersona.razor.cs | 3 +++ .../Components/Notifications/SnackBar/BitSnackBar.razor.cs | 3 +++ .../Components/Notifications/Tag/BitTag.razor.cs | 3 +++ .../Components/Progress/Progress/BitProgress.razor.cs | 3 +++ .../Components/Progress/Shimmer/BitShimmer.razor.cs | 3 +++ .../Components/Surfaces/Accordion/BitAccordion.razor.cs | 3 +++ .../Components/Surfaces/Callout/BitCallout.razor.cs | 3 +++ .../Bit.BlazorUI/Components/Surfaces/Card/BitCard.razor.cs | 3 +++ .../Components/Surfaces/Dialog/BitDialog.razor.cs | 3 +++ .../Components/Surfaces/Modal/BitModal.razor.cs | 3 +++ .../Components/Surfaces/Panel/BitPanel.razor.cs | 3 +++ .../Surfaces/ScrollablePane/BitScrollablePane.razor.cs | 3 +++ .../Components/Surfaces/Splitter/BitSplitter.razor.cs | 3 +++ .../Components/Surfaces/Tooltip/BitTooltip.razor.cs | 3 +++ .../Components/Utilities/Element/BitElement.cs | 3 +++ .../Components/Utilities/Icon/BitIcon.razor.cs | 3 +++ .../Components/Utilities/Image/BitImage.razor.cs | 3 +++ .../Components/Utilities/Label/BitLabel.razor.cs | 3 +++ .../Components/Utilities/Link/BitLink.razor.cs | 3 +++ .../Components/Utilities/Overlay/BitOverlay.razor.cs | 3 +++ .../Utilities/PullToRefresh/BitPullToRefresh.razor.cs | 3 +++ .../Components/Utilities/Separator/BitSeparator.razor.cs | 3 +++ .../Components/Utilities/Sticky/BitSticky.razor.cs | 3 +++ .../Components/Utilities/SwipeTrap/BitSwipeTrap.razor.cs | 3 +++ .../Bit.BlazorUI/Components/Utilities/Text/BitText.cs | 3 +++ .../CircularTimePicker/BitCircularTimePickerDemo.razor | 2 +- .../Components/Inputs/DatePicker/BitDatePickerDemo.razor | 2 +- .../Inputs/DateRangePicker/BitDateRangePickerDemo.razor | 2 +- .../Components/Inputs/TimePicker/BitTimePickerDemo.razor | 2 +- .../Components/Notifications/Persona/BitPersonaDemo.razor | 2 +- .../Components/Progress/Progress/BitProgressDemo.razor | 4 ++-- .../Pages/Components/Surfaces/Dialog/BitDialogDemo.razor | 2 +- .../Pages/Components/Surfaces/Panel/BitPanelDemo.razor | 2 +- .../Pages/Components/Utilities/Icon/BitIconDemo.razor | 2 +- 83 files changed, 228 insertions(+), 15 deletions(-) diff --git a/src/BlazorUI/Bit.BlazorUI.Extras/Components/AppShell/BitAppShell.razor.cs b/src/BlazorUI/Bit.BlazorUI.Extras/Components/AppShell/BitAppShell.razor.cs index 2b65b7e6cb..6484c8f21e 100644 --- a/src/BlazorUI/Bit.BlazorUI.Extras/Components/AppShell/BitAppShell.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI.Extras/Components/AppShell/BitAppShell.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// BitAppShell is an advanced container to handle the nuances of a cross-platform layout. +/// public partial class BitAppShell : BitComponentBase { private ElementReference _containerRef = default!; diff --git a/src/BlazorUI/Bit.BlazorUI.Extras/Components/Chart/BitChart.razor.cs b/src/BlazorUI/Bit.BlazorUI.Extras/Components/Chart/BitChart.razor.cs index 064eadb1fa..06ab84604b 100644 --- a/src/BlazorUI/Bit.BlazorUI.Extras/Components/Chart/BitChart.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI.Extras/Components/Chart/BitChart.razor.cs @@ -5,7 +5,7 @@ namespace Bit.BlazorUI; /// -/// Represents a Chart.js chart. +/// Simple and flexible charting component for data visualization, which supports eight chart types: bar, line, area, pie, bubble, radar, polar, and scatter. /// public partial class BitChart : IAsyncDisposable { diff --git a/src/BlazorUI/Bit.BlazorUI.Extras/Components/DataGrid/BitDataGrid.razor.cs b/src/BlazorUI/Bit.BlazorUI.Extras/Components/DataGrid/BitDataGrid.razor.cs index d8a181b483..4e27ec7b85 100644 --- a/src/BlazorUI/Bit.BlazorUI.Extras/Components/DataGrid/BitDataGrid.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI.Extras/Components/DataGrid/BitDataGrid.razor.cs @@ -1,7 +1,7 @@ namespace Bit.BlazorUI; /// -/// A component that displays a grid. +/// BitDataGrid is a robust way to display an information-rich collection of items, and allow people to sort, and filter the content. /// /// The type of data represented by each row in the grid. [CascadingTypeParameter(nameof(TGridItem))] diff --git a/src/BlazorUI/Bit.BlazorUI.Extras/Components/ErrorBoundary/BitErrorBoundary.razor.cs b/src/BlazorUI/Bit.BlazorUI.Extras/Components/ErrorBoundary/BitErrorBoundary.razor.cs index d7b92025f8..16919ee691 100644 --- a/src/BlazorUI/Bit.BlazorUI.Extras/Components/ErrorBoundary/BitErrorBoundary.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI.Extras/Components/ErrorBoundary/BitErrorBoundary.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// BitErrorBoundary is a simple error boundary to handle exceptions happening in its children. +/// public partial class BitErrorBoundary : ErrorBoundaryBase { [Inject] private NavigationManager _navigationManager { get; set; } = default!; diff --git a/src/BlazorUI/Bit.BlazorUI.Extras/Components/MessageBox/BitMessageBox.razor.cs b/src/BlazorUI/Bit.BlazorUI.Extras/Components/MessageBox/BitMessageBox.razor.cs index 018cff5288..cb531a1098 100644 --- a/src/BlazorUI/Bit.BlazorUI.Extras/Components/MessageBox/BitMessageBox.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI.Extras/Components/MessageBox/BitMessageBox.razor.cs @@ -2,6 +2,9 @@ namespace Bit.BlazorUI; +/// +/// BitMessageBox is a pre-implemented box for showing messages with title and body. +/// public partial class BitMessageBox { /// diff --git a/src/BlazorUI/Bit.BlazorUI.Extras/Components/NavPanel/BitNavPanel.razor.cs b/src/BlazorUI/Bit.BlazorUI.Extras/Components/NavPanel/BitNavPanel.razor.cs index 435c226fdb..3deb5513b3 100644 --- a/src/BlazorUI/Bit.BlazorUI.Extras/Components/NavPanel/BitNavPanel.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI.Extras/Components/NavPanel/BitNavPanel.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// BitNavPanel is a navigation component specialized to be rendered in a vertical panel. +/// public partial class BitNavPanel : BitComponentBase, IDisposable where TItem : class { private bool _disposed; diff --git a/src/BlazorUI/Bit.BlazorUI.Extras/Components/PdfReader/BitPdfReader.razor.cs b/src/BlazorUI/Bit.BlazorUI.Extras/Components/PdfReader/BitPdfReader.razor.cs index 2b55f44bf8..736a1ac3d7 100644 --- a/src/BlazorUI/Bit.BlazorUI.Extras/Components/PdfReader/BitPdfReader.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI.Extras/Components/PdfReader/BitPdfReader.razor.cs @@ -2,16 +2,19 @@ namespace Bit.BlazorUI; +/// +/// BitPdfReader is a simple pdf renderer utilizing the pdfjs library to bring pdf reading feature into Blazor world. +/// public partial class BitPdfReader { - private int _currentPageNumber = 1; private bool _allPageRendered; private int _numberOfPages = 1; + private int _currentPageNumber = 1; private bool _parametersInitialized; - [Inject] private IJSRuntime _js { get; set; } + [Inject] private IJSRuntime _js { get; set; } = default!; diff --git a/src/BlazorUI/Bit.BlazorUI.Extras/Components/ProPanel/BitProPanel.razor.cs b/src/BlazorUI/Bit.BlazorUI.Extras/Components/ProPanel/BitProPanel.razor.cs index cc7b077732..b580bee36e 100644 --- a/src/BlazorUI/Bit.BlazorUI.Extras/Components/ProPanel/BitProPanel.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI.Extras/Components/ProPanel/BitProPanel.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// ProPanel is an advanced version of normal Panel with additional features that tailored to more usual use-cases. +/// public partial class BitProPanel : BitComponentBase { /// diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Buttons/BitActionButton/BitActionButton.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Buttons/BitActionButton/BitActionButton.razor.cs index 783c6859cc..06fa449851 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Buttons/BitActionButton/BitActionButton.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Buttons/BitActionButton/BitActionButton.razor.cs @@ -2,6 +2,9 @@ namespace Bit.BlazorUI; +/// +/// ActionButton is a special type of button with a specific set of visual styles and properties. +/// public partial class BitActionButton : BitComponentBase { private string? _rel; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Buttons/BitButton/BitButton.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Buttons/BitButton/BitButton.razor.cs index b0fe05e744..5468d7bc9a 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Buttons/BitButton/BitButton.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Buttons/BitButton/BitButton.razor.cs @@ -2,6 +2,9 @@ namespace Bit.BlazorUI; +/// +/// Buttons enable users to take actions with a single tap. They're commonly used in forms, dialog panels, and specialized for tasks like navigation or repeated actions. +/// public partial class BitButton : BitComponentBase { private string? _rel; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Buttons/BitButtonGroup/BitButtonGroup.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Buttons/BitButtonGroup/BitButtonGroup.razor.cs index ad846198c6..ea0e1a2186 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Buttons/BitButtonGroup/BitButtonGroup.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Buttons/BitButtonGroup/BitButtonGroup.razor.cs @@ -2,6 +2,9 @@ namespace Bit.BlazorUI; +/// +/// The ButtonGroup component can be used to group related buttons. +/// public partial class BitButtonGroup : BitComponentBase where TItem : class { private TItem? _toggleItem; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Buttons/BitMenuButton/BitMenuButton.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Buttons/BitMenuButton/BitMenuButton.razor.cs index fafd8262f2..d7ed206098 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Buttons/BitMenuButton/BitMenuButton.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Buttons/BitMenuButton/BitMenuButton.razor.cs @@ -2,6 +2,9 @@ namespace Bit.BlazorUI; +/// +/// A menu button is a menu item that displays a word or phrase that the user can click to initiate an operation. +/// public partial class BitMenuButton : BitComponentBase, IAsyncDisposable where TItem : class { private bool _disposed; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Buttons/BitToggleButton/BitToggleButton.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Buttons/BitToggleButton/BitToggleButton.razor.cs index 515da0a9f9..be2e0f7362 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Buttons/BitToggleButton/BitToggleButton.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Buttons/BitToggleButton/BitToggleButton.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// ToggleButton is a type of button that stores and shows a status representing the toggle state of the component. +/// public partial class BitToggleButton : BitComponentBase { private int? _tabIndex; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/Calendar/BitCalendar.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/Calendar/BitCalendar.razor.cs index 5246874192..1bd3255917 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/Calendar/BitCalendar.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/Calendar/BitCalendar.razor.cs @@ -4,6 +4,9 @@ namespace Bit.BlazorUI; +/// +/// The calendar control lets people select and view a single date or a range of dates in their calendar. It’s made up of 3 separate views: the month view, year view, and decade view. +/// public partial class BitCalendar : BitInputBase { private const int DEFAULT_WEEK_COUNT = 6; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/Checkbox/BitCheckbox.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/Checkbox/BitCheckbox.razor.cs index e9e5e00612..ff40382b66 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/Checkbox/BitCheckbox.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/Checkbox/BitCheckbox.razor.cs @@ -2,6 +2,9 @@ namespace Bit.BlazorUI; +/// +/// BitCheckbox is a component that permits the user to make a binary choice, a choice between one of two possible mutually exclusive options. +/// public partial class BitCheckbox : BitInputBase, IDisposable { private string _inputId = string.Empty; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/ChoiceGroup/BitChoiceGroup.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/ChoiceGroup/BitChoiceGroup.razor.cs index 44691b0e09..949febf0ec 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/ChoiceGroup/BitChoiceGroup.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/ChoiceGroup/BitChoiceGroup.razor.cs @@ -3,6 +3,9 @@ namespace Bit.BlazorUI; +/// +/// ChoiceGroup let people select a single option from two or more choices. +/// public partial class BitChoiceGroup : BitInputBase where TItem : class { private List _items = []; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/Dropdown/BitDropdown.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/Dropdown/BitDropdown.razor.cs index e18a8ad2b3..a290b7f571 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/Dropdown/BitDropdown.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/Dropdown/BitDropdown.razor.cs @@ -4,6 +4,9 @@ namespace Bit.BlazorUI; +/// +/// A dropdown is a list in which the selected item is always visible while other items are visible on demand by clicking a dropdown button. Dropdowns are typically used for forms. +/// public partial class BitDropdown : BitInputBase, IAsyncDisposable where TItem : class, new() { private bool _disposed; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/FileUpload/BitFileUpload.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/FileUpload/BitFileUpload.razor.cs index 4a02682826..93a158179b 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/FileUpload/BitFileUpload.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/FileUpload/BitFileUpload.razor.cs @@ -4,7 +4,7 @@ namespace Bit.BlazorUI; /// -/// A component that wraps the HTML file input element and uploads them. +/// BitFileUpload component wraps the HTML file input element(s) and uploads them to a given URL. The files can be removed by specifying the URL they have been uploaded. /// public partial class BitFileUpload : BitComponentBase, IAsyncDisposable { diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/NumberField/BitNumberField.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/NumberField/BitNumberField.razor.cs index 7eaaa3ed12..99ae5f321c 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/NumberField/BitNumberField.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/NumberField/BitNumberField.razor.cs @@ -4,6 +4,9 @@ namespace Bit.BlazorUI; +/// +/// A NumberField allows you to enter any number type and format you want. It could be a decimal number or integer number with a suffix and so on. +/// public partial class BitNumberField<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TValue> : BitTextInputBase { private bool _hasFocus; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/OtpInput/BitOtpInput.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/OtpInput/BitOtpInput.razor.cs index bc15b8fae4..8c35c3d564 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/OtpInput/BitOtpInput.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/OtpInput/BitOtpInput.razor.cs @@ -3,6 +3,9 @@ namespace Bit.BlazorUI; +/// +/// The OTP input is used for MFA procedure of authenticating users by a one-time password. +/// public partial class BitOtpInput : BitInputBase { private string _labelId = default!; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/Rating/BitRating.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/Rating/BitRating.razor.cs index 0286129cc5..c800be7910 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/Rating/BitRating.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/Rating/BitRating.razor.cs @@ -2,6 +2,9 @@ namespace Bit.BlazorUI; +/// +/// Ratings show people’s opinions of a product, helping others make more informed purchasing decisions. +/// public partial class BitRating : BitInputBase { /// diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/SearchBox/BitSearchBox.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/SearchBox/BitSearchBox.razor.cs index 339dcc8001..94464c82ac 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/SearchBox/BitSearchBox.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/SearchBox/BitSearchBox.razor.cs @@ -2,6 +2,9 @@ namespace Bit.BlazorUI; +/// +/// A search box (SearchBox) provides an input field for searching content within a site or app to find specific items. +/// public partial class BitSearchBox : BitTextInputBase, IAsyncDisposable { private bool _isOpen; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/Slider/BitSlider.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/Slider/BitSlider.razor.cs index 05e80f4ff0..477d03c123 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/Slider/BitSlider.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/Slider/BitSlider.razor.cs @@ -2,6 +2,9 @@ namespace Bit.BlazorUI; +/// +/// A slider provides a visual indication of adjustable content, as well as the current setting in the total range of content. +/// public partial class BitSlider : BitComponentBase { private int _inputHeight; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/SpinButton/BitSpinButton.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/SpinButton/BitSpinButton.razor.cs index 8483f7a7b0..aac13b7b34 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/SpinButton/BitSpinButton.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/SpinButton/BitSpinButton.razor.cs @@ -4,6 +4,9 @@ namespace Bit.BlazorUI; +/// +/// A spin button (SpinButton) allows someone to incrementally adjust a value in small steps. It’s mainly used for numeric values, but other values are supported too. +/// public partial class BitSpinButton : BitInputBase { private double _min; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/TextField/BitTextField.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/TextField/BitTextField.razor.cs index 6360913b41..d5c5a0448c 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/TextField/BitTextField.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/TextField/BitTextField.razor.cs @@ -2,6 +2,9 @@ namespace Bit.BlazorUI; +/// +/// Text fields give people a way to enter and edit text. They’re used in forms, modal dialogs, tables, and other surfaces where text input is required. +/// public partial class BitTextField : BitTextInputBase { private bool _hasFocus; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/Toggle/BitToggle.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/Toggle/BitToggle.razor.cs index 4fff4dd852..fecfab5f22 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/Toggle/BitToggle.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/Toggle/BitToggle.razor.cs @@ -3,6 +3,9 @@ namespace Bit.BlazorUI; +/// +/// A toggle represents a physical switch that allows someone to choose between two mutually exclusive options. For example, “On/Off”, “Show/Hide”. +/// public partial class BitToggle : BitInputBase { private string? _labelId; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/_Pickers/CircularTimePicker/BitCircularTimePicker.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/_Pickers/CircularTimePicker/BitCircularTimePicker.razor.cs index dbe2bb9769..3388f573cc 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/_Pickers/CircularTimePicker/BitCircularTimePicker.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/_Pickers/CircularTimePicker/BitCircularTimePicker.razor.cs @@ -4,6 +4,9 @@ namespace Bit.BlazorUI; +/// +/// A BitCircularTimePicker offers a drop-down control that’s optimized for picking a single time from a clock view where contextual information like the day of the week or fullness of the calendar is important. +/// public partial class BitCircularTimePicker : BitInputBase, IAsyncDisposable { private int? _hour; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/_Pickers/ColorPicker/BitColorPicker.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/_Pickers/ColorPicker/BitColorPicker.razor.cs index 5ff76edc51..87d24b2baf 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/_Pickers/ColorPicker/BitColorPicker.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/_Pickers/ColorPicker/BitColorPicker.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// The color picker (ColorPicker) is used to browse through and select colors. By default, it lets people navigate through colors on a color spectrum, or specify a color in either Red-Green-Blue (RGB), or alpha color code; or Hexadecimal textboxes. +/// public partial class BitColorPicker : BitComponentBase, IAsyncDisposable { private bool _disposed; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/_Pickers/DatePicker/BitDatePicker.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/_Pickers/DatePicker/BitDatePicker.razor.cs index 1a1fc3bb62..ae99841baa 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/_Pickers/DatePicker/BitDatePicker.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/_Pickers/DatePicker/BitDatePicker.razor.cs @@ -4,6 +4,9 @@ namespace Bit.BlazorUI; +/// +/// A BitDatePicker offers a drop-down control that’s optimized for picking a single date from a calendar view where contextual information like the day of the week or fullness of the calendar is important. +/// public partial class BitDatePicker : BitInputBase, IAsyncDisposable { private const int MAX_WIDTH = 470; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/_Pickers/DateRangePicker/BitDateRangePicker.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/_Pickers/DateRangePicker/BitDateRangePicker.razor.cs index 09b6d848bc..fe19446b68 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/_Pickers/DateRangePicker/BitDateRangePicker.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/_Pickers/DateRangePicker/BitDateRangePicker.razor.cs @@ -4,6 +4,9 @@ namespace Bit.BlazorUI; +/// +/// A BitDateRangePicker offers a drop-down control that’s optimized for picking two dates from a calendar view where contextual information like the day of the week or fullness of the calendar is important. +/// public partial class BitDateRangePicker : BitInputBase, IAsyncDisposable { private const int MAX_WIDTH = 470; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/_Pickers/TimePicker/BitTimePicker.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/_Pickers/TimePicker/BitTimePicker.razor.cs index bea8abb564..d2af1b1676 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Inputs/_Pickers/TimePicker/BitTimePicker.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Inputs/_Pickers/TimePicker/BitTimePicker.razor.cs @@ -3,6 +3,9 @@ namespace Bit.BlazorUI; +/// +/// A BitTimePicker offers a drop-down control that’s optimized for picking a single time from a clock view where contextual information like the day of the week or fullness of the calendar is important. +/// public partial class BitTimePicker : BitInputBase, IAsyncDisposable { private bool _hasFocus; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Layouts/Footer/BitFooter.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Layouts/Footer/BitFooter.razor.cs index 33a6bb0119..ff72fcd649 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Layouts/Footer/BitFooter.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Layouts/Footer/BitFooter.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// The BitFooter component is used to display a colored bar (with text and possibly other components) at the bottom of a site or application. +/// public partial class BitFooter : BitComponentBase { /// diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Layouts/Grid/BitGrid.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Layouts/Grid/BitGrid.razor.cs index 7c81db3267..e1b518d51c 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Layouts/Grid/BitGrid.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Layouts/Grid/BitGrid.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// The BitGrid component is a flexible and customizable grid layout, offering responsive columns and alignment flexibility for structured content presentation. +/// public partial class BitGrid : BitComponentBase { /// diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Layouts/Header/BitHeader.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Layouts/Header/BitHeader.razor.cs index 1878e984ae..53197a3a37 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Layouts/Header/BitHeader.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Layouts/Header/BitHeader.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// The BitHeader component is used to display a title (and possibly other components) in a colored bar at the top of a site or application. +/// public partial class BitHeader : BitComponentBase { /// diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Layouts/Layout/BitLayout.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Layouts/Layout/BitLayout.razor.cs index d732083604..e2e6840bc2 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Layouts/Layout/BitLayout.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Layouts/Layout/BitLayout.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// Layout can be used to create a base UI structure for an application. +/// public partial class BitLayout : BitComponentBase { /// diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Layouts/Spacer/BitSpacer.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Layouts/Spacer/BitSpacer.razor.cs index c44c9557a0..058abfd8ea 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Layouts/Spacer/BitSpacer.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Layouts/Spacer/BitSpacer.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// The purpose of the BitSpacer is to generate space between other components. You can either create a space with a set width (in number of pixels) or create a space with a flexible width. +/// public partial class BitSpacer : BitComponentBase { /// diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Layouts/Stack/BitStack.cs b/src/BlazorUI/Bit.BlazorUI/Components/Layouts/Stack/BitStack.cs index 12be9f1149..fc089046c5 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Layouts/Stack/BitStack.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Layouts/Stack/BitStack.cs @@ -2,6 +2,9 @@ namespace Bit.BlazorUI; +/// +/// A Stack is a container-type component that abstracts the implementation of a flexbox in order to define the layout of its children components. +/// public partial class BitStack : BitComponentBase { /// diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Lists/BasicList/BitBasicList.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Lists/BasicList/BitBasicList.razor.cs index 96f010a03d..eb0500e178 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Lists/BasicList/BitBasicList.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Lists/BasicList/BitBasicList.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// BitBasicList provides a base component for rendering large sets of items. It’s agnostic of layout, the tile component used, and selection management. +/// public partial class BitBasicList : BitComponentBase { private _BitBasicListVirtualize? _bitBasicListVirtualizeRef; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Lists/Carousel/BitCarousel.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Lists/Carousel/BitCarousel.razor.cs index cb08373268..5ebd0686f1 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Lists/Carousel/BitCarousel.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Lists/Carousel/BitCarousel.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// Carousel (Carousel slide-show) let people show their items in seperate slides from two or more items. +/// public partial class BitCarousel : BitComponentBase, IAsyncDisposable { private bool _disposed; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Lists/Swiper/BitSwiper.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Lists/Swiper/BitSwiper.razor.cs index 4afd8825bc..446bc034b5 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Lists/Swiper/BitSwiper.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Lists/Swiper/BitSwiper.razor.cs @@ -2,6 +2,9 @@ namespace Bit.BlazorUI; +/// +/// Swipers (touch slider) let people show their slides in a swiping row. +/// public partial class BitSwiper : BitComponentBase, IAsyncDisposable { private double _lastX; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Lists/Timeline/BitTimeline.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Lists/Timeline/BitTimeline.razor.cs index 8cca6556b7..f099106d8d 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Lists/Timeline/BitTimeline.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Lists/Timeline/BitTimeline.razor.cs @@ -3,6 +3,9 @@ namespace Bit.BlazorUI; +/// +/// The Timeline component organizes and displays events or data chronologically in a linear fashion, often featuring points or segments representing individual items with associated details or actions. +/// public partial class BitTimeline : BitComponentBase where TItem : class { private List _items = []; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Navs/Breadcrumb/BitBreadcrumb.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Navs/Breadcrumb/BitBreadcrumb.razor.cs index d5011048b5..06b22ad255 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Navs/Breadcrumb/BitBreadcrumb.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Navs/Breadcrumb/BitBreadcrumb.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// Breadcrumbs should be used as a navigational aid in your app or site. They indicate the current page’s location within a hierarchy and help the user understand where they are in relation to the rest of that hierarchy. +/// public partial class BitBreadcrumb : BitComponentBase, IAsyncDisposable where TItem : class { private bool _disposed; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Navs/DropMenu/BitDropMenu.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Navs/DropMenu/BitDropMenu.razor.cs index b998c9359d..8ebc5813a8 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Navs/DropMenu/BitDropMenu.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Navs/DropMenu/BitDropMenu.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// DropMenu component is a versatile dropdown menu used in Blazor applications. It allows you to create a button that, when clicked, opens a callout or dropdown menu. +/// public partial class BitDropMenu : BitComponentBase, IAsyncDisposable { private bool _disposed; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Navs/Nav/BitNav.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Navs/Nav/BitNav.razor.cs index acd1178615..e15c0932a0 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Navs/Nav/BitNav.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Navs/Nav/BitNav.razor.cs @@ -2,6 +2,9 @@ namespace Bit.BlazorUI; +/// +/// A navigation pane (Nav) provides links to the main areas of an app or site. +/// public partial class BitNav : BitComponentBase, IDisposable where TItem : class { private bool _disposed; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Navs/NavBar/BitNavBar.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Navs/NavBar/BitNavBar.razor.cs index 3fd80c28b4..86852c0576 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Navs/NavBar/BitNavBar.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Navs/NavBar/BitNavBar.razor.cs @@ -2,6 +2,9 @@ namespace Bit.BlazorUI; +/// +/// A tab panel that provides navigation links to the main areas of an app. +/// public partial class BitNavBar : BitComponentBase, IDisposable where TItem : class { private bool _disposed; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Navs/Pagination/BitPagination.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Navs/Pagination/BitPagination.razor.cs index 2be858bb4d..c0dab66469 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Navs/Pagination/BitPagination.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Navs/Pagination/BitPagination.razor.cs @@ -2,6 +2,9 @@ namespace Bit.BlazorUI; +/// +/// Pagination component helps users easily navigate through content, allowing swift browsing across multiple pages or sections, commonly used in lists, tables, and content-rich interfaces. +/// public partial class BitPagination : BitComponentBase { private int _count = 1; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Navs/Pivot/BitPivot.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Navs/Pivot/BitPivot.razor.cs index 4f2b78e2d4..6efbbbe57b 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Navs/Pivot/BitPivot.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Navs/Pivot/BitPivot.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// The Pivot control and related tabs pattern are used for navigating frequently accessed, distinct content categories. Pivots allow for navigation between two or more contentviews and relies on text headers to articulate the different sections of content. +/// public partial class BitPivot : BitComponentBase { private BitPivotItem? _selectedItem; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Notifications/Badge/BitBadge.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Notifications/Badge/BitBadge.razor.cs index 1f2cd6be14..618caae2e5 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Notifications/Badge/BitBadge.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Notifications/Badge/BitBadge.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// Badge component is a small visual element used to highlight or indicate specific information within a user interface. +/// public partial class BitBadge : BitComponentBase { private string? _content; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Notifications/Message/BitMessage.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Notifications/Message/BitMessage.razor.cs index f7c63a9a4d..a7787bd553 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Notifications/Message/BitMessage.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Notifications/Message/BitMessage.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// A Message displays errors, warnings, or important information. For example, if a file failed to upload an error message should appear. +/// public partial class BitMessage : BitComponentBase { private bool _isExpanded; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Notifications/Persona/BitPersona.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Notifications/Persona/BitPersona.razor.cs index a9690a3143..e98ef25d01 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Notifications/Persona/BitPersona.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Notifications/Persona/BitPersona.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// A BitPersona is a visual representation of a person across products, typically showcasing the image that person has chosen to upload themselves. The control can also be used to show that person's online status. +/// public partial class BitPersona : BitComponentBase { private bool _isLoaded; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Notifications/SnackBar/BitSnackBar.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Notifications/SnackBar/BitSnackBar.razor.cs index fbfbfb5a90..ac9bc31d91 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Notifications/SnackBar/BitSnackBar.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Notifications/SnackBar/BitSnackBar.razor.cs @@ -2,6 +2,9 @@ namespace Bit.BlazorUI; +/// +/// SnackBars provide brief notifications. The component is also known as a toast. +/// public partial class BitSnackBar : BitComponentBase { private List _items = []; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Notifications/Tag/BitTag.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Notifications/Tag/BitTag.razor.cs index d6ae224223..46da97cba9 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Notifications/Tag/BitTag.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Notifications/Tag/BitTag.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// Tag component provides a visual representation of an attribute, person, or asset. +/// public partial class BitTag : BitComponentBase { /// diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Progress/Progress/BitProgress.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Progress/Progress/BitProgress.razor.cs index d7238bcaa1..7c99c4a99d 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Progress/Progress/BitProgress.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Progress/Progress/BitProgress.razor.cs @@ -2,6 +2,9 @@ namespace Bit.BlazorUI; +/// +/// BitProgress is used to show the completion status of an operation lasting more than 2 seconds. +/// public partial class BitProgress : BitComponentBase { private string _labelId = string.Empty; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Progress/Shimmer/BitShimmer.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Progress/Shimmer/BitShimmer.razor.cs index 9c6118ff54..fbbc770058 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Progress/Shimmer/BitShimmer.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Progress/Shimmer/BitShimmer.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// Shimmer is a temporary animation placeholder for when a service call takes time to return data and you don't want to block rendering the rest of the UI. +/// public partial class BitShimmer : BitComponentBase { /// diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Accordion/BitAccordion.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Accordion/BitAccordion.razor.cs index 81015ac827..aa2792c05d 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Accordion/BitAccordion.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Accordion/BitAccordion.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// The Accordion component allows the user to show and hide sections of related content on a page. +/// public partial class BitAccordion : BitComponentBase { /// diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Callout/BitCallout.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Callout/BitCallout.razor.cs index 5ebd497af5..2d877baa01 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Callout/BitCallout.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Callout/BitCallout.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// A callout is an anchored tip that can be used to teach people or guide them through the app without blocking them. +/// public partial class BitCallout : BitComponentBase, IAsyncDisposable { private bool _disposed; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Card/BitCard.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Card/BitCard.razor.cs index d235190af9..fa2e7703e6 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Card/BitCard.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Card/BitCard.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// A Card provides a container to wrap around a specific content. Keeping a card to a single subject keeps the design clean. +/// public partial class BitCard : BitComponentBase { /// diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Dialog/BitDialog.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Dialog/BitDialog.razor.cs index 0db768becd..2d3d636de1 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Dialog/BitDialog.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Dialog/BitDialog.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// Dialogs are temporary pop-ups that take focus from the page or app and require people to interact with them. +/// public partial class BitDialog : BitComponentBase, IAsyncDisposable { private int _offsetTop; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Modal/BitModal.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Modal/BitModal.razor.cs index 5726c19c14..452c36545f 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Modal/BitModal.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Modal/BitModal.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// Modals are temporary pop-ups that take focus from the page or app and require people to interact with them. +/// public partial class BitModal : BitComponentBase, IAsyncDisposable { private int _offsetTop; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Panel/BitPanel.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Panel/BitPanel.razor.cs index 20607a18ae..3f847e0606 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Panel/BitPanel.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Panel/BitPanel.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// Panels are overlays that contain supplementary content and are used for complex creation, edit, or management experiences. +/// public partial class BitPanel : BitComponentBase, IAsyncDisposable { private int _offsetTop; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/ScrollablePane/BitScrollablePane.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/ScrollablePane/BitScrollablePane.razor.cs index c4b3f6efea..410efb4842 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/ScrollablePane/BitScrollablePane.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/ScrollablePane/BitScrollablePane.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// A ScrollablePane is a component for scrolling through content that doesn't fit entirely on the screen. +/// public partial class BitScrollablePane : BitComponentBase { /// diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Splitter/BitSplitter.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Splitter/BitSplitter.razor.cs index 4ee326e81c..3643c99df5 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Splitter/BitSplitter.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Splitter/BitSplitter.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// The BitSplitter component divides a container into two adjustable sections, either horizontally or vertically. Users can resize these sections by dragging the divider. +/// public partial class BitSplitter : BitComponentBase { private bool _isDragging; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Tooltip/BitTooltip.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Tooltip/BitTooltip.razor.cs index 129c433e65..da42f6f2ee 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Tooltip/BitTooltip.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Surfaces/Tooltip/BitTooltip.razor.cs @@ -2,6 +2,9 @@ namespace Bit.BlazorUI; +/// +/// Tooltip component briefly describes unlabeled controls or provides a bit of additional information about labeled controls. +/// public partial class BitTooltip : BitComponentBase { private CancellationTokenSource? _showDelayTokenSource = new(); diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Element/BitElement.cs b/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Element/BitElement.cs index 58b5f4ee5e..b6008aaaae 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Element/BitElement.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Element/BitElement.cs @@ -2,6 +2,9 @@ namespace Bit.BlazorUI; +/// +/// A simple component with a customizable HTML tag, offering full control over styling, attributes, and directional flow, designed to integrate seamlessly into the bit BlazorUI. +/// public partial class BitElement : BitComponentBase { /// diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Icon/BitIcon.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Icon/BitIcon.razor.cs index 44140cd07a..9d9d7846d5 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Icon/BitIcon.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Icon/BitIcon.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// An icon represents concept or meaning for the user. It's used to make better user experience (UX) and user-friendly applications. +/// public partial class BitIcon : BitComponentBase { /// diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Image/BitImage.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Image/BitImage.razor.cs index cb37b492e0..2a2d562172 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Image/BitImage.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Image/BitImage.razor.cs @@ -2,6 +2,9 @@ namespace Bit.BlazorUI; +/// +/// An image is a graphic representation of something (e.g photo or illustration). The backgrounds have been added to some of examples in order to help visualize empty space in the image frame. +/// public partial class BitImage : BitComponentBase { private BitImageLoadingState _loadingState; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Label/BitLabel.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Label/BitLabel.razor.cs index f371c16621..d9af75ef2e 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Label/BitLabel.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Label/BitLabel.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// Labels give a name or title to a control or group of controls, including text fields, check boxes, combo boxes, radio buttons, and drop-down menus. +/// public partial class BitLabel : BitComponentBase { /// diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Link/BitLink.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Link/BitLink.razor.cs index 4c5c02d762..fa1dedcf10 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Link/BitLink.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Link/BitLink.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// Links lead to another part of an app, other pages, or help articles. They can also be used to initiate commands. +/// public partial class BitLink : BitComponentBase { private string? _rel; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Overlay/BitOverlay.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Overlay/BitOverlay.razor.cs index b8f1fe0b7a..b60962886e 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Overlay/BitOverlay.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Overlay/BitOverlay.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// The Overlay component is used to provide emphasis on a particular element or parts of it. It signals to the user of a state change within the application and can be used for creating loaders, dialogs and more. +/// public partial class BitOverlay : BitComponentBase { private int _offsetTop; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Utilities/PullToRefresh/BitPullToRefresh.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Utilities/PullToRefresh/BitPullToRefresh.razor.cs index 8504d615a2..4a0a66530e 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Utilities/PullToRefresh/BitPullToRefresh.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Utilities/PullToRefresh/BitPullToRefresh.razor.cs @@ -2,6 +2,9 @@ namespace Bit.BlazorUI; +/// +/// The PullToRefresh component is used to add the pull down to refresh feature to a page or a specific element. +/// public partial class BitPullToRefresh : BitComponentBase, IAsyncDisposable { private decimal _diff; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Separator/BitSeparator.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Separator/BitSeparator.razor.cs index 1e0c39f227..7f26bfccec 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Separator/BitSeparator.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Separator/BitSeparator.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// A Separator is a component that visually separates content into groups. +/// public partial class BitSeparator : BitComponentBase { /// diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Sticky/BitSticky.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Sticky/BitSticky.razor.cs index a43cd2133e..7032a1a138 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Sticky/BitSticky.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Sticky/BitSticky.razor.cs @@ -1,5 +1,8 @@ namespace Bit.BlazorUI; +/// +/// A Sticky is a component that enables elements to stick during scrolling. +/// public partial class BitSticky : BitComponentBase { /// diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Utilities/SwipeTrap/BitSwipeTrap.razor.cs b/src/BlazorUI/Bit.BlazorUI/Components/Utilities/SwipeTrap/BitSwipeTrap.razor.cs index 0d5ab57b97..07acee846f 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Utilities/SwipeTrap/BitSwipeTrap.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Utilities/SwipeTrap/BitSwipeTrap.razor.cs @@ -2,6 +2,9 @@ namespace Bit.BlazorUI; +/// +/// A SwipeTrap is a component that traps swipe actions and triggers corresponding events. +/// public partial class BitSwipeTrap : BitComponentBase, IAsyncDisposable { private bool _disposed; diff --git a/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Text/BitText.cs b/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Text/BitText.cs index dbabd1c3c0..a941fe0a6d 100644 --- a/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Text/BitText.cs +++ b/src/BlazorUI/Bit.BlazorUI/Components/Utilities/Text/BitText.cs @@ -3,6 +3,9 @@ namespace Bit.BlazorUI; +/// +/// Use text to present your design and content as clearly and efficiently as possible. +/// public partial class BitText : BitComponentBase { /// diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/CircularTimePicker/BitCircularTimePickerDemo.razor b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/CircularTimePicker/BitCircularTimePickerDemo.razor index f47eb7f2f0..550d7e4a1a 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/CircularTimePicker/BitCircularTimePickerDemo.razor +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/CircularTimePicker/BitCircularTimePickerDemo.razor @@ -7,7 +7,7 @@ Description="circulartimepicker component of the bit BlazorUI components" /> diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/DatePicker/BitDatePickerDemo.razor b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/DatePicker/BitDatePickerDemo.razor index 15fa1a4fe9..528e0015d1 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/DatePicker/BitDatePickerDemo.razor +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/DatePicker/BitDatePickerDemo.razor @@ -7,7 +7,7 @@ Description="datepicker component of the bit BlazorUI components" /> diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/DateRangePicker/BitDateRangePickerDemo.razor b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/DateRangePicker/BitDateRangePickerDemo.razor index 7360a31023..6062fc50c4 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/DateRangePicker/BitDateRangePickerDemo.razor +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/DateRangePicker/BitDateRangePickerDemo.razor @@ -7,7 +7,7 @@ Description="daterangepicker component of the bit BlazorUI components" /> diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/TimePicker/BitTimePickerDemo.razor b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/TimePicker/BitTimePickerDemo.razor index 820580ed61..98a5d738f4 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/TimePicker/BitTimePickerDemo.razor +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Inputs/TimePicker/BitTimePickerDemo.razor @@ -6,7 +6,7 @@ Description="TimePicker component of the bit BlazorUI components" /> diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Notifications/Persona/BitPersonaDemo.razor b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Notifications/Persona/BitPersonaDemo.razor index cb50a176f2..2cb30be7fb 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Notifications/Persona/BitPersonaDemo.razor +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Notifications/Persona/BitPersonaDemo.razor @@ -5,7 +5,7 @@ Description="persona component of the bit BlazorUI components" /> diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Progress/Progress/BitProgressDemo.razor b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Progress/Progress/BitProgressDemo.razor index a964b0879c..0e8b1048cf 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Progress/Progress/BitProgressDemo.razor +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Progress/Progress/BitProgressDemo.razor @@ -8,8 +8,7 @@ Description="progress component of the bit BlazorUI components" /> diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Surfaces/Dialog/BitDialogDemo.razor b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Surfaces/Dialog/BitDialogDemo.razor index a6dee547f5..d808d0cfb7 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Surfaces/Dialog/BitDialogDemo.razor +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Surfaces/Dialog/BitDialogDemo.razor @@ -5,7 +5,7 @@ Description="dialog component of the bit BlazorUI components" /> diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Surfaces/Panel/BitPanelDemo.razor b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Surfaces/Panel/BitPanelDemo.razor index adda9f235c..b15fef25cf 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Surfaces/Panel/BitPanelDemo.razor +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Surfaces/Panel/BitPanelDemo.razor @@ -6,7 +6,7 @@
diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Utilities/Icon/BitIconDemo.razor b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Utilities/Icon/BitIconDemo.razor index 00fe7d7602..a50f8d07f0 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Utilities/Icon/BitIconDemo.razor +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Utilities/Icon/BitIconDemo.razor @@ -5,7 +5,7 @@ Description="icon component of the bit BlazorUI components" /> From 546056dd63e6a24bbeb28ada1a75111706644847 Mon Sep 17 00:00:00 2001 From: Saleh Yusefnejad Date: Fri, 10 Jan 2025 17:36:50 +0330 Subject: [PATCH 09/14] feat(blazorui): improve vertical scrolling behavior of BitNavPanel items #9644 (#9645) --- .../Components/NavPanel/BitNavPanel.razor.cs | 2 +- ...sRuntimeExtensions.cs => ExtrasJsRuntimeExtensions.cs} | 8 ++++---- .../Scripts/{BitExtras.ts => Extras.ts} | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) rename src/BlazorUI/Bit.BlazorUI.Extras/Extensions/JsInterop/{BitExtrasJsRuntimeExtensions.cs => ExtrasJsRuntimeExtensions.cs} (57%) rename src/BlazorUI/Bit.BlazorUI.Extras/Scripts/{BitExtras.ts => Extras.ts} (95%) diff --git a/src/BlazorUI/Bit.BlazorUI.Extras/Components/NavPanel/BitNavPanel.razor.cs b/src/BlazorUI/Bit.BlazorUI.Extras/Components/NavPanel/BitNavPanel.razor.cs index 3deb5513b3..f5557f64d2 100644 --- a/src/BlazorUI/Bit.BlazorUI.Extras/Components/NavPanel/BitNavPanel.razor.cs +++ b/src/BlazorUI/Bit.BlazorUI.Extras/Components/NavPanel/BitNavPanel.razor.cs @@ -207,7 +207,7 @@ private void HandleOnSwipeMove(BitSwipeTrapEventArgs args) else { var diff = args.DiffY - _oldDiffY; - _js.BitExtrasScrollBy(RootElement, 0, diff > 0 ? -10 : 10); + _js.BitExtrasScrollBy(RootElement, 0, diff > 0 ? -20 : 20); _oldDiffY = args.DiffY; } diff --git a/src/BlazorUI/Bit.BlazorUI.Extras/Extensions/JsInterop/BitExtrasJsRuntimeExtensions.cs b/src/BlazorUI/Bit.BlazorUI.Extras/Extensions/JsInterop/ExtrasJsRuntimeExtensions.cs similarity index 57% rename from src/BlazorUI/Bit.BlazorUI.Extras/Extensions/JsInterop/BitExtrasJsRuntimeExtensions.cs rename to src/BlazorUI/Bit.BlazorUI.Extras/Extensions/JsInterop/ExtrasJsRuntimeExtensions.cs index 7a55e2fc1a..3edd15458c 100644 --- a/src/BlazorUI/Bit.BlazorUI.Extras/Extensions/JsInterop/BitExtrasJsRuntimeExtensions.cs +++ b/src/BlazorUI/Bit.BlazorUI.Extras/Extensions/JsInterop/ExtrasJsRuntimeExtensions.cs @@ -1,19 +1,19 @@ namespace Bit.BlazorUI; -internal static class BitExtrasJsRuntimeExtensions +internal static class ExtrasJsRuntimeExtensions { internal static ValueTask BitExtrasApplyRootClasses(this IJSRuntime jsRuntime, List cssClasses, Dictionary cssVariables) { - return jsRuntime.InvokeVoid("BitBlazorUI.BitExtras.applyRootClasses", cssClasses, cssVariables); + return jsRuntime.InvokeVoid("BitBlazorUI.Extras.applyRootClasses", cssClasses, cssVariables); } internal static ValueTask BitExtrasGoToTop(this IJSRuntime jsRuntime, ElementReference element) { - return jsRuntime.InvokeVoid("BitBlazorUI.BitExtras.goToTop", element); + return jsRuntime.InvokeVoid("BitBlazorUI.Extras.goToTop", element); } internal static ValueTask BitExtrasScrollBy(this IJSRuntime jsRuntime, ElementReference element, decimal x, decimal y) { - return jsRuntime.InvokeVoid("BitBlazorUI.BitExtras.scrollBy", element, x, y); + return jsRuntime.InvokeVoid("BitBlazorUI.Extras.scrollBy", element, x, y); } } diff --git a/src/BlazorUI/Bit.BlazorUI.Extras/Scripts/BitExtras.ts b/src/BlazorUI/Bit.BlazorUI.Extras/Scripts/Extras.ts similarity index 95% rename from src/BlazorUI/Bit.BlazorUI.Extras/Scripts/BitExtras.ts rename to src/BlazorUI/Bit.BlazorUI.Extras/Scripts/Extras.ts index b2463e681f..546b828fb0 100644 --- a/src/BlazorUI/Bit.BlazorUI.Extras/Scripts/BitExtras.ts +++ b/src/BlazorUI/Bit.BlazorUI.Extras/Scripts/Extras.ts @@ -1,5 +1,5 @@ namespace BitBlazorUI { - export class BitExtras { + export class Extras { public static applyRootClasses(cssClasses: string[], cssVariables: any) { cssClasses?.forEach(c => document.documentElement.classList.add(c)); Object.keys(cssVariables).forEach(key => document.documentElement.style.setProperty(key, cssVariables[key])); From be78773c15bf1a875e2fb96c8bf166cd53204748 Mon Sep 17 00:00:00 2001 From: Yaser Moradi Date: Fri, 10 Jan 2025 16:36:10 +0100 Subject: [PATCH 10/14] feat(dependencies): update project dependencies #9648 (#9649) --- .../Bit.BlazorUI.Demo.Server.csproj | 2 +- .../Bit.BlazorUI.Demo.Client.Maui.csproj | 4 ++-- .../Bit.Butil.Demo.Maui.csproj | 4 ++-- .../Bit.Boilerplate/src/Directory.Packages.props | 16 ++++++++-------- .../src/Directory.Packages8.props | 10 +++++----- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/Bit.BlazorUI.Demo.Server.csproj b/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/Bit.BlazorUI.Demo.Server.csproj index 51022de413..918f66bfea 100644 --- a/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/Bit.BlazorUI.Demo.Server.csproj +++ b/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/Bit.BlazorUI.Demo.Server.csproj @@ -13,7 +13,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Maui/Bit.BlazorUI.Demo.Client.Maui.csproj b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Maui/Bit.BlazorUI.Demo.Client.Maui.csproj index e588bbba3e..baf081a510 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Maui/Bit.BlazorUI.Demo.Client.Maui.csproj +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Maui/Bit.BlazorUI.Demo.Client.Maui.csproj @@ -103,8 +103,8 @@ - - + + - + - + @@ -83,7 +83,7 @@ - + diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages8.props b/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages8.props index e40a1819f1..ca1e05fadc 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages8.props +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages8.props @@ -29,9 +29,9 @@ - - - + + + @@ -64,7 +64,7 @@ - + @@ -80,7 +80,7 @@ - + From c0ad1d044a74017b5815e5b875183e6609ea1a86 Mon Sep 17 00:00:00 2001 From: Yaser Moradi Date: Fri, 10 Jan 2025 17:34:15 +0100 Subject: [PATCH 11/14] fix(websites): correct OData version in Bit BlazorUI demo website #9639 (#9652) --- .../Bit.BlazorUI.Demo.Server/Bit.BlazorUI.Demo.Server.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/Bit.BlazorUI.Demo.Server.csproj b/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/Bit.BlazorUI.Demo.Server.csproj index 918f66bfea..51022de413 100644 --- a/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/Bit.BlazorUI.Demo.Server.csproj +++ b/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/Bit.BlazorUI.Demo.Server.csproj @@ -13,7 +13,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + From 00ff306f5bb490949e69ed0b1d8ad6b901d8f6a5 Mon Sep 17 00:00:00 2001 From: Yaser Moradi Date: Fri, 10 Jan 2025 17:41:21 +0100 Subject: [PATCH 12/14] feat(templates): improve Boilerplate data validation #9639 (#9640) --- .../Components/AppDataAnnotationsValidator.cs | 25 +++++++++++++++ .../Categories/AddOrEditCategoryPage.razor | 6 ++-- .../Categories/AddOrEditCategoryPage.razor.cs | 8 ++--- .../Products/AddOrEditProductModal.razor | 2 +- .../Products/AddOrEditProductModal.razor.cs | 9 ++++-- .../Pages/Identity/SignIn/SignInPage.razor | 4 +-- .../Pages/Identity/SignIn/SignInPage.razor.cs | 5 +++ .../ExceptionDelegatingHandler.cs | 11 +++---- .../src/Directory.Packages.props | 2 +- .../Controllers/AppControllerBase.cs | 2 -- .../Categories/CategoryController.cs | 19 ++++++++++-- .../Controllers/Products/ProductController.cs | 20 ++++++++++-- .../Data/AppDbContext.cs | 31 +++++++++++++++++++ .../Category/CategoryConfiguration.cs | 2 ++ .../Product/ProductConfiguration.cs | 2 ++ ...250109120517_InitialMigration.Designer.cs} | 8 ++++- ....cs => 20250109120517_InitialMigration.cs} | 12 +++++++ .../Migrations/AppDbContextModelSnapshot.cs | 6 ++++ .../Mappers/CategoriesMapper.cs | 1 + .../Mappers/ProductsMapper.cs | 1 + .../Exceptions/ResourceValidationException.cs | 6 ++-- .../Shared/Extensions/ByteArrayExtensions.cs | 4 +-- .../src/Shared/Resources/AppStrings.fa.resx | 6 ++++ .../src/Shared/Resources/AppStrings.nl.resx | 6 ++++ .../src/Shared/Resources/AppStrings.resx | 6 ++++ 25 files changed, 166 insertions(+), 38 deletions(-) rename src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/{20241201163409_InitialMigration.Designer.cs => 20250109120517_InitialMigration.Designer.cs} (99%) rename src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/{20241201163409_InitialMigration.cs => 20250109120517_InitialMigration.cs} (98%) diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/AppDataAnnotationsValidator.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/AppDataAnnotationsValidator.cs index 1a795f0981..f1d1d008cb 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/AppDataAnnotationsValidator.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/AppDataAnnotationsValidator.cs @@ -20,6 +20,7 @@ public partial class AppDataAnnotationsValidator : AppComponentBase private bool disposed; private ValidationMessageStore validationMessageStore = default!; + [AutoInject] private SnackBarService snackbarService = default!; [AutoInject] private IServiceProvider serviceProvider = default!; [AutoInject] private IStringLocalizerFactory stringLocalizerFactory = default!; @@ -208,6 +209,30 @@ private void OnValidationRequested(object? sender, ValidationRequestedEventArgs EditContext.NotifyValidationStateChanged(); } + public void DisplayErrors(ResourceValidationException exception) + { + foreach (var detail in exception.Payload.Details) + { + if (detail.Name is "*") + { + snackbarService.Error(string.Join(Environment.NewLine, detail.Errors.Select(e => e.Message))); + continue; + } + foreach (var err in detail.Errors) + { + validationMessageStore.Add(EditContext.Field(detail.Name!), err.Message!); + } + } + + EditContext.NotifyValidationStateChanged(); + } + + public void ClearErrors() + { + validationMessageStore.Clear(); + EditContext.NotifyValidationStateChanged(); + } + protected override async ValueTask DisposeAsync(bool disposing) { await base.DisposeAsync(disposing); diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Authorized/Categories/AddOrEditCategoryPage.razor b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Authorized/Categories/AddOrEditCategoryPage.razor index 505cfd180b..39f31605ab 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Authorized/Categories/AddOrEditCategoryPage.razor +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Authorized/Categories/AddOrEditCategoryPage.razor @@ -34,7 +34,7 @@ - + @if (isLoading) @@ -61,9 +61,7 @@
- + @Localizer[(nameof(AppStrings.CustomColor))]
diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Authorized/Categories/AddOrEditCategoryPage.razor.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Authorized/Categories/AddOrEditCategoryPage.razor.cs index a6d2d5a09e..abe3381dfc 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Authorized/Categories/AddOrEditCategoryPage.razor.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Authorized/Categories/AddOrEditCategoryPage.razor.cs @@ -16,6 +16,7 @@ public partial class AddOrEditCategoryPage private bool isSaving; private bool isColorPickerOpen; private CategoryDto category = new(); + private AppDataAnnotationsValidator validatorRef = default!; protected override async Task OnInitAsync() { @@ -43,11 +44,6 @@ private void SetCategoryColor(string color) category.Color = color; } - private void ToggleColorPicker() - { - isColorPickerOpen = !isColorPickerOpen; - } - private async Task Save() { if (isSaving) return; @@ -69,7 +65,7 @@ private async Task Save() } catch (ResourceValidationException e) { - SnackBarService.Error(string.Join(Environment.NewLine, e.Payload.Details.SelectMany(d => d.Errors).Select(e => e.Message))); + validatorRef.DisplayErrors(e); } catch (KnownException e) { diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Authorized/Products/AddOrEditProductModal.razor b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Authorized/Products/AddOrEditProductModal.razor index d6ed249687..8dacbdb1e9 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Authorized/Products/AddOrEditProductModal.razor +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Authorized/Products/AddOrEditProductModal.razor @@ -26,7 +26,7 @@
- + > allCategoryList = []; + private AppDataAnnotationsValidator validatorRef = default!; [Parameter] public EventCallback OnSave { get; set; } @@ -75,6 +76,10 @@ private async Task Save() isOpen = false; } + catch (ResourceValidationException exp) + { + validatorRef.DisplayErrors(exp); + } finally { isSaving = false; diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignIn/SignInPage.razor b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignIn/SignInPage.razor index b2175f43a1..8ef87bf65d 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignIn/SignInPage.razor +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignIn/SignInPage.razor @@ -7,8 +7,8 @@
- - + + @if (requiresTwoFactor is false) diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignIn/SignInPage.razor.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignIn/SignInPage.razor.cs index 2226374482..414e9075e2 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignIn/SignInPage.razor.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Components/Pages/Identity/SignIn/SignInPage.razor.cs @@ -36,6 +36,7 @@ public partial class SignInPage : IDisposable private bool requiresTwoFactor; private SignInPanelTab currentSignInPanelTab; private readonly SignInRequestDto model = new(); + private AppDataAnnotationsValidator validatorRef = default!; private Action unsubscribeIdentityHeaderBackLinkClicked = default!; @@ -121,6 +122,8 @@ private async Task DoSignIn() CleanModel(); + if (validatorRef.EditContext.Validate() is false) return; + model.DeviceInfo = telemetryContext.Platform; requiresTwoFactor = await AuthManager.SignIn(model, CurrentCancellationToken); @@ -209,11 +212,13 @@ private void CleanModel() if (currentSignInPanelTab is SignInPanelTab.Email) { model.PhoneNumber = null; + validatorRef.EditContext.NotifyFieldChanged(validatorRef.EditContext.Field(nameof(SignInRequestDto.PhoneNumber))); } if (currentSignInPanelTab is SignInPanelTab.Phone) { model.Email = null; + validatorRef.EditContext.NotifyFieldChanged(validatorRef.EditContext.Field(nameof(SignInRequestDto.Email))); } } diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Services/HttpMessageHandlers/ExceptionDelegatingHandler.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Services/HttpMessageHandlers/ExceptionDelegatingHandler.cs index 260984cb0c..357de7a53b 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Services/HttpMessageHandlers/ExceptionDelegatingHandler.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Services/HttpMessageHandlers/ExceptionDelegatingHandler.cs @@ -31,18 +31,15 @@ protected override async Task SendAsync(HttpRequestMessage response.IsSuccessStatusCode is false && response.Content.Headers.ContentType?.MediaType?.Contains("application/json", StringComparison.InvariantCultureIgnoreCase) is true) { - RestErrorInfo restError = (await response!.Content.ReadFromJsonAsync(jsonSerializerOptions.GetTypeInfo(), cancellationToken))!; + RestErrorInfo restError = (await response.Content.ReadFromJsonAsync(jsonSerializerOptions.GetTypeInfo(), cancellationToken))!; Type exceptionType = typeof(RestErrorInfo).Assembly.GetType(restError.ExceptionType!) ?? typeof(UnknownException); var args = new List { typeof(KnownException).IsAssignableFrom(exceptionType) ? new LocalizedString(restError.Key!, restError.Message!) : (object?)restError.Message! }; - if (exceptionType == typeof(ResourceValidationException)) - { - args.Add(restError.Payload); - } - - Exception exp = (Exception)Activator.CreateInstance(exceptionType, args.ToArray())!; + Exception exp = exceptionType == typeof(ResourceValidationException) + ? new ResourceValidationException(restError.Message!, restError.Payload!) + : (Exception)Activator.CreateInstance(exceptionType, args.ToArray())!; throw exp; } diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages.props b/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages.props index 140a810122..8bfbd7c220 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages.props +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages.props @@ -73,7 +73,7 @@ - + diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Controllers/AppControllerBase.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Controllers/AppControllerBase.cs index 0f1711e787..26cc7b3931 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Controllers/AppControllerBase.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Controllers/AppControllerBase.cs @@ -4,8 +4,6 @@ public partial class AppControllerBase : ControllerBase { [AutoInject] protected ServerApiSettings AppSettings = default!; - [AutoInject] protected ServerApiSettings Settings = default!; - [AutoInject] protected AppDbContext DbContext = default!; [AutoInject] protected IStringLocalizer Localizer = default!; diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Controllers/Categories/CategoryController.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Controllers/Categories/CategoryController.cs index abaf6e9a4f..a04ec51257 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Controllers/Categories/CategoryController.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Controllers/Categories/CategoryController.cs @@ -4,6 +4,7 @@ using Boilerplate.Server.Api.SignalR; //#endif using Boilerplate.Shared.Dtos.Categories; +using Boilerplate.Server.Api.Models.Categories; using Boilerplate.Shared.Controllers.Categories; namespace Boilerplate.Server.Api.Controllers.Categories; @@ -53,6 +54,8 @@ public async Task Create(CategoryDto dto, CancellationToken cancell await DbContext.Categories.AddAsync(entityToAdd, cancellationToken); + await Validate(entityToAdd, cancellationToken); + await DbContext.SaveChangesAsync(cancellationToken); //#if (signalR == true) @@ -65,9 +68,12 @@ public async Task Create(CategoryDto dto, CancellationToken cancell [HttpPut] public async Task Update(CategoryDto dto, CancellationToken cancellationToken) { - var entityToUpdate = dto.Map(); + var entityToUpdate = await DbContext.Categories.FindAsync([dto.Id], cancellationToken) + ?? throw new ResourceNotFoundException(Localizer[nameof(AppStrings.CategoryCouldNotBeFound)]); + + dto.Patch(entityToUpdate); - DbContext.Update(entityToUpdate); + await Validate(entityToUpdate, cancellationToken); await DbContext.SaveChangesAsync(cancellationToken); @@ -86,7 +92,7 @@ public async Task Delete(Guid id, string concurrencyStamp, CancellationToken can throw new BadRequestException(Localizer[nameof(AppStrings.CategoryNotEmpty)]); } - DbContext.Categories.Remove(new() { Id = id, ConcurrencyStamp = Convert.FromBase64String(Uri.UnescapeDataString(concurrencyStamp)) }); + DbContext.Categories.Remove(new() { Id = id, ConcurrencyStamp = Convert.FromHexString(concurrencyStamp) }); await DbContext.SaveChangesAsync(cancellationToken); @@ -103,5 +109,12 @@ private async Task PublishDashboardDataChanged(CancellationToken cancellationTok await appHubContext.Clients.Group("AuthenticatedClients").SendAsync(SignalREvents.PUBLISH_MESSAGE, SharedPubSubMessages.DASHBOARD_DATA_CHANGED, null, cancellationToken); } //#endif + + private async Task Validate(Category category, CancellationToken cancellationToken) + { + // Remote validation example: Any errors thrown here will be displayed in the client's edit form component. + if (DbContext.Entry(category).Property(c => c.Name).IsModified && await DbContext.Categories.AnyAsync(p => p.Name == category.Name, cancellationToken: cancellationToken)) + throw new ResourceValidationException((nameof(CategoryDto.Name), [Localizer[nameof(AppStrings.DuplicateCategoryName)]])); + } } diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Controllers/Products/ProductController.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Controllers/Products/ProductController.cs index d2186b2863..6fa9f78358 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Controllers/Products/ProductController.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Controllers/Products/ProductController.cs @@ -4,6 +4,7 @@ using Boilerplate.Server.Api.SignalR; //#endif using Boilerplate.Shared.Dtos.Products; +using Boilerplate.Server.Api.Models.Products; using Boilerplate.Shared.Controllers.Products; namespace Boilerplate.Server.Api.Controllers.Products; @@ -51,6 +52,8 @@ public async Task Create(ProductDto dto, CancellationToken cancellat await DbContext.Products.AddAsync(entityToAdd, cancellationToken); + await Validate(entityToAdd, cancellationToken); + await DbContext.SaveChangesAsync(cancellationToken); //#if (signalR == true) @@ -63,9 +66,12 @@ public async Task Create(ProductDto dto, CancellationToken cancellat [HttpPut] public async Task Update(ProductDto dto, CancellationToken cancellationToken) { - var entityToUpdate = dto.Map(); + var entityToUpdate = await DbContext.Products.FindAsync([dto.Id], cancellationToken) + ?? throw new ResourceNotFoundException(Localizer[nameof(AppStrings.ProductCouldNotBeFound)]); + + dto.Patch(entityToUpdate); - DbContext.Update(entityToUpdate); + await Validate(entityToUpdate, cancellationToken); await DbContext.SaveChangesAsync(cancellationToken); @@ -79,7 +85,7 @@ public async Task Update(ProductDto dto, CancellationToken cancellat [HttpDelete("{id}/{concurrencyStamp}")] public async Task Delete(Guid id, string concurrencyStamp, CancellationToken cancellationToken) { - DbContext.Products.Remove(new() { Id = id, ConcurrencyStamp = Convert.FromBase64String(Uri.UnescapeDataString(concurrencyStamp)) }); + DbContext.Products.Remove(new() { Id = id, ConcurrencyStamp = Convert.FromHexString(concurrencyStamp) }); await DbContext.SaveChangesAsync(cancellationToken); @@ -96,5 +102,13 @@ private async Task PublishDashboardDataChanged(CancellationToken cancellationTok await appHubContext.Clients.Group("AuthenticatedClients").SendAsync(SignalREvents.PUBLISH_MESSAGE, SharedPubSubMessages.DASHBOARD_DATA_CHANGED, null, cancellationToken); } //#endif + + private async Task Validate(Product product, CancellationToken cancellationToken) + { + // Remote validation example: Any errors thrown here will be displayed in the client's edit form component. + if (DbContext.Entry(product).Property(c => c.Name).IsModified + && await DbContext.Products.AnyAsync(p => p.Name == product.Name, cancellationToken: cancellationToken)) + throw new ResourceValidationException((nameof(ProductDto.Name), [Localizer[nameof(AppStrings.DuplicateProductName)]])); + } } diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/AppDbContext.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/AppDbContext.cs index e25c6574be..f9f47a6c31 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/AppDbContext.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/AppDbContext.cs @@ -49,6 +49,10 @@ public override int SaveChanges(bool acceptAllChangesOnSuccess) { try { + //#if (database != "Sqlite") + ReplaceOriginalConcurrencyStamp(); + //#endif + return base.SaveChanges(acceptAllChangesOnSuccess); } catch (DbUpdateConcurrencyException exception) @@ -61,6 +65,10 @@ public override int SaveChanges(bool acceptAllChangesOnSuccess) { try { + //#if (database != "Sqlite") + ReplaceOriginalConcurrencyStamp(); + //#endif + return await base.SaveChangesAsync(acceptAllChangesOnSuccess, cancellationToken); } catch (DbUpdateConcurrencyException exception) @@ -69,6 +77,29 @@ public override int SaveChanges(bool acceptAllChangesOnSuccess) } } + //#if (database != "Sqlite") + /// + /// https://github.com/dotnet/efcore/issues/35443 + /// + private void ReplaceOriginalConcurrencyStamp() + { + //#if (IsInsideProjectTemplate == true) + if (Database.ProviderName!.EndsWith("Sqlite", StringComparison.InvariantCulture)) + return; + //#endif + ChangeTracker.DetectChanges(); + + foreach (var entityEntry in ChangeTracker.Entries().Where(e => e.State is EntityState.Modified)) + { + if (entityEntry.CurrentValues.TryGetValue("ConcurrencyStamp", out var currentConcurrencyStamp) is false + || currentConcurrencyStamp is not byte[]) + continue; + + entityEntry.OriginalValues.SetValues(new Dictionary { { "ConcurrencyStamp", currentConcurrencyStamp } }); + } + } + //#endif + protected override void ConfigureConventions(ModelConfigurationBuilder configurationBuilder) { //#if (IsInsideProjectTemplate == true) diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Configurations/Category/CategoryConfiguration.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Configurations/Category/CategoryConfiguration.cs index aff3bd6c55..0262fda3e7 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Configurations/Category/CategoryConfiguration.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Configurations/Category/CategoryConfiguration.cs @@ -6,6 +6,8 @@ public partial class CategoryConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { + builder.HasIndex(p => p.Name).IsUnique(); + var defaultConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }; builder.HasData( new() { Id = Guid.Parse("31d78bd0-0b4f-4e87-b02f-8f66d4ab2845"), Name = "Ford", Color = "#FFCD56", ConcurrencyStamp = defaultConcurrencyStamp }, diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Configurations/Product/ProductConfiguration.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Configurations/Product/ProductConfiguration.cs index 2f134d2d9c..655dfab434 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Configurations/Product/ProductConfiguration.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Configurations/Product/ProductConfiguration.cs @@ -6,6 +6,8 @@ public partial class ProductConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { + builder.HasIndex(p => p.Name).IsUnique(); + var defaultConcurrencyStamp = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }; DateTimeOffset baseDate = DateTimeOffset.Parse("2022-07-12", styles: DateTimeStyles.AssumeUniversal); diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/20241201163409_InitialMigration.Designer.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/20250109120517_InitialMigration.Designer.cs similarity index 99% rename from src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/20241201163409_InitialMigration.Designer.cs rename to src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/20250109120517_InitialMigration.Designer.cs index 83dd14b4fc..d9208cecd7 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/20241201163409_InitialMigration.Designer.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/20250109120517_InitialMigration.Designer.cs @@ -6,7 +6,7 @@ namespace Boilerplate.Server.Api.Data.Migrations; [DbContext(typeof(AppDbContext))] -[Migration("20241201163409_InitialMigration")] +[Migration("20250109120517_InitialMigration")] partial class InitialMigration { /// @@ -35,6 +35,9 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasKey("Id"); + b.HasIndex("Name") + .IsUnique(); + b.ToTable("Categories"); b.HasData( @@ -297,6 +300,9 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.HasIndex("CategoryId"); + b.HasIndex("Name") + .IsUnique(); + b.ToTable("Products"); b.HasData( diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/20241201163409_InitialMigration.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/20250109120517_InitialMigration.cs similarity index 98% rename from src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/20241201163409_InitialMigration.cs rename to src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/20250109120517_InitialMigration.cs index 99d357eb01..547649be63 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/20241201163409_InitialMigration.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/20250109120517_InitialMigration.cs @@ -335,11 +335,23 @@ protected override void Up(MigrationBuilder migrationBuilder) { new Guid("fb41cc51-9abd-4b45-b0d9-ea8f565ec502"), new Guid("ecf0496f-f1e3-4d92-8fe4-0d7fa2b4ffa4"), new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, 1306440105984000000L, "", "530i", 55195m } }); + migrationBuilder.CreateIndex( + name: "IX_Categories_Name", + table: "Categories", + column: "Name", + unique: true); + migrationBuilder.CreateIndex( name: "IX_Products_CategoryId", table: "Products", column: "CategoryId"); + migrationBuilder.CreateIndex( + name: "IX_Products_Name", + table: "Products", + column: "Name", + unique: true); + migrationBuilder.CreateIndex( name: "IX_PushNotificationSubscriptions_UserSessionId", table: "PushNotificationSubscriptions", diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/AppDbContextModelSnapshot.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/AppDbContextModelSnapshot.cs index b73ad591d7..cb642d087f 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/AppDbContextModelSnapshot.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Migrations/AppDbContextModelSnapshot.cs @@ -33,6 +33,9 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasKey("Id"); + b.HasIndex("Name") + .IsUnique(); + b.ToTable("Categories"); b.HasData( @@ -295,6 +298,9 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasIndex("CategoryId"); + b.HasIndex("Name") + .IsUnique(); + b.ToTable("Products"); b.HasData( diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Mappers/CategoriesMapper.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Mappers/CategoriesMapper.cs index 22451a258c..4cd64a0b0f 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Mappers/CategoriesMapper.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Mappers/CategoriesMapper.cs @@ -20,4 +20,5 @@ public static partial class CategoriesMapper [MapProperty(nameof(@Category.Products.Count), nameof(@CategoryDto.ProductsCount))] public static partial CategoryDto Map(this Category source); public static partial Category Map(this CategoryDto source); + public static partial void Patch(this CategoryDto source, Category dest); } diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Mappers/ProductsMapper.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Mappers/ProductsMapper.cs index a12cd69244..7964da4ff3 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Mappers/ProductsMapper.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Mappers/ProductsMapper.cs @@ -20,4 +20,5 @@ public static partial class ProductsMapper [MapProperty(nameof(@Product.Category.Name), nameof(@ProductDto.CategoryName))] public static partial ProductDto Map(this Product source); public static partial Product Map(this ProductDto source); + public static partial void Patch(this ProductDto source, Product dest); } diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Exceptions/ResourceValidationException.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Exceptions/ResourceValidationException.cs index 93cd8ed66b..1fb1b50a18 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Exceptions/ResourceValidationException.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Exceptions/ResourceValidationException.cs @@ -10,19 +10,19 @@ public ResourceValidationException(params LocalizedString[] errorMessages) } - public ResourceValidationException((string propName, LocalizedString[] errorMessages)[] details) + public ResourceValidationException(params (string propName, LocalizedString[] errorMessages)[] details) : this("*", details) { } - public ResourceValidationException(Type resourceType, (string propName, LocalizedString[] errorMessages)[] details) + public ResourceValidationException(Type resourceType, params (string propName, LocalizedString[] errorMessages)[] details) : this(resourceType.FullName!, details) { } - public ResourceValidationException(string resourceTypeName, (string propName, LocalizedString[] errorMessages)[] details) + public ResourceValidationException(string resourceTypeName, params (string propName, LocalizedString[] errorMessages)[] details) : this(new ErrorResourcePayload() { ResourceTypeName = resourceTypeName, diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Extensions/ByteArrayExtensions.cs b/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Extensions/ByteArrayExtensions.cs index e06ba87cd9..7846f298f6 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Extensions/ByteArrayExtensions.cs +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Extensions/ByteArrayExtensions.cs @@ -9,8 +9,6 @@ public static string ToStampString(this byte[]? source) source = [0, 0, 0, 0, 0, 0, 0, 0]; } - var base64String = Convert.ToBase64String(source); - - return Uri.EscapeDataString(base64String); + return Convert.ToHexString(source); } } diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Resources/AppStrings.fa.resx b/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Resources/AppStrings.fa.resx index 8540c0b04c..ad40459bad 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Resources/AppStrings.fa.resx +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Resources/AppStrings.fa.resx @@ -1168,6 +1168,12 @@ ویرایش محصول + + + نام محصول تکراری است + + + نام دسته تکراری است داشبورد diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Resources/AppStrings.nl.resx b/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Resources/AppStrings.nl.resx index 1ccb6a40e1..19e5adb788 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Resources/AppStrings.nl.resx +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Resources/AppStrings.nl.resx @@ -1168,6 +1168,12 @@ Product bewerken + + + Dubbele productnaam + + + Dubbele categorienaam Dashboard diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Resources/AppStrings.resx b/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Resources/AppStrings.resx index ba56c544c3..2a86520e58 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Resources/AppStrings.resx +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Shared/Resources/AppStrings.resx @@ -1168,6 +1168,12 @@ Edit product + + + Duplicate product name + + + Duplicate category name Dashboard From c60fa69c7b71075ecaae61a8cc339b82fb6fdf5b Mon Sep 17 00:00:00 2001 From: Saleh Yusefnejad Date: Sat, 11 Jan 2025 17:24:08 +0330 Subject: [PATCH 13/14] feat(prerelease): v-9.3.0-pre-01 #9653 (#9656) --- src/Besql/Bit.Besql/wwwroot/bit-besql.js | 2 +- src/Bit.Build.props | 2 +- src/BlazorUI/Bit.BlazorUI/Scripts/general.ts | 2 +- .../Bit.BlazorUI.Demo.Server.csproj | 4 ++-- .../Bit.BlazorUI.Demo.Shared.csproj | 4 ++-- .../Bit.BlazorUI.Demo.Client.Core.csproj | 4 ++-- .../Bit.BlazorUI.Demo.Client.Maui.csproj | 4 ++-- .../Bit.BlazorUI.Demo.Client.Web.csproj | 6 +++--- .../wwwroot/service-worker.published.js | 2 +- .../Bit.BlazorUI.Demo.Client.Windows.csproj | 4 ++-- src/BlazorUI/Demo/Directory.Build.props | 2 +- .../Bit.Bswup.Demo/wwwroot/service-worker.js | 2 +- .../wwwroot/service-worker.published.js | 2 +- .../wwwroot/service-worker.js | 2 +- .../wwwroot/service-worker.published.js | 2 +- .../Bit.Bswup/Scripts/bit-bswup.progress.ts | 2 +- src/Bswup/Bit.Bswup/Scripts/bit-bswup.sw.ts | 2 +- src/Bswup/Bit.Bswup/Scripts/bit-bswup.ts | 2 +- .../FullDemo/Client/wwwroot/service-worker.js | 2 +- .../Client/wwwroot/service-worker.published.js | 2 +- src/Bup/Bit.Bup/Scripts/bit-bup.progress.ts | 2 +- src/Bup/Bit.Bup/Scripts/bit-bup.ts | 2 +- src/Butil/Bit.Butil/Scripts/butil.ts | 2 +- .../BlazorEmpty.Client.csproj | 8 ++++---- .../BlazorEmpty/BlazorEmpty.csproj | 8 ++++---- .../wwwroot/service-worker.published.js | 2 +- .../Bit.Boilerplate/src/Directory.Build.props | 2 +- .../src/Directory.Packages.props | 18 +++++++++--------- .../src/Directory.Packages8.props | 18 +++++++++--------- .../Bit.Websites.Careers.Client.csproj | 10 +++++----- .../Bit.Websites.Careers.Server.csproj | 4 ++-- .../Bit.Websites.Careers.Shared.csproj | 4 ++-- src/Websites/Careers/src/Directory.Build.props | 2 +- .../Bit.Websites.Platform.Client.csproj | 12 ++++++------ .../Templates03GettingStartedPage.razor | 4 ++-- .../Templates03GettingStartedPage.razor.cs | 2 +- .../Bit.Websites.Platform.Server.csproj | 4 ++-- .../Bit.Websites.Platform.Shared.csproj | 4 ++-- .../Platform/src/Directory.Build.props | 2 +- .../Bit.Websites.Sales.Client.csproj | 10 +++++----- .../Bit.Websites.Sales.Server.csproj | 4 ++-- .../Bit.Websites.Sales.Shared.csproj | 4 ++-- src/Websites/Sales/src/Directory.Build.props | 2 +- 43 files changed, 92 insertions(+), 92 deletions(-) diff --git a/src/Besql/Bit.Besql/wwwroot/bit-besql.js b/src/Besql/Bit.Besql/wwwroot/bit-besql.js index 648c73cafa..996f4a7568 100644 --- a/src/Besql/Bit.Besql/wwwroot/bit-besql.js +++ b/src/Besql/Bit.Besql/wwwroot/bit-besql.js @@ -1,5 +1,5 @@ var BitBesql = window.BitBesql || {}; -BitBesql.version = window['bit-besql version'] = '9.2.1'; +BitBesql.version = window['bit-besql version'] = '9.3.0-pre-01'; BitBesql.init = async function init(fileName) { const sqliteFilePath = `/${fileName}`; diff --git a/src/Bit.Build.props b/src/Bit.Build.props index a03e83e228..23059590fb 100644 --- a/src/Bit.Build.props +++ b/src/Bit.Build.props @@ -27,7 +27,7 @@ https://github.com/bitfoundation/bitplatform - 9.2.1 + 9.3.0-pre-01 $(ReleaseVersion) https://github.com/bitfoundation/bitplatform/releases/tag/v-$(ReleaseVersion) $([System.String]::Copy($(ReleaseVersion)).Replace('-pre-', '.')) diff --git a/src/BlazorUI/Bit.BlazorUI/Scripts/general.ts b/src/BlazorUI/Bit.BlazorUI/Scripts/general.ts index 91bb860cf6..1ce257c903 100644 --- a/src/BlazorUI/Bit.BlazorUI/Scripts/general.ts +++ b/src/BlazorUI/Bit.BlazorUI/Scripts/general.ts @@ -1,4 +1,4 @@ -(BitBlazorUI as any).version = (window as any)['bit-blazorui version'] = '9.2.1'; +(BitBlazorUI as any).version = (window as any)['bit-blazorui version'] = '9.3.0-pre-01'; interface DotNetObject { invokeMethod(methodIdentifier: string, ...args: any[]): T; diff --git a/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/Bit.BlazorUI.Demo.Server.csproj b/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/Bit.BlazorUI.Demo.Server.csproj index 51022de413..7927e2fb67 100644 --- a/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/Bit.BlazorUI.Demo.Server.csproj +++ b/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/Bit.BlazorUI.Demo.Server.csproj @@ -5,11 +5,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Shared/Bit.BlazorUI.Demo.Shared.csproj b/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Shared/Bit.BlazorUI.Demo.Shared.csproj index a3f0ec3e3b..861c880379 100644 --- a/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Shared/Bit.BlazorUI.Demo.Shared.csproj +++ b/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Shared/Bit.BlazorUI.Demo.Shared.csproj @@ -5,11 +5,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Bit.BlazorUI.Demo.Client.Core.csproj b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Bit.BlazorUI.Demo.Client.Core.csproj index b27f07bb20..6f8bd1cf67 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Bit.BlazorUI.Demo.Client.Core.csproj +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Bit.BlazorUI.Demo.Client.Core.csproj @@ -16,11 +16,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Maui/Bit.BlazorUI.Demo.Client.Maui.csproj b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Maui/Bit.BlazorUI.Demo.Client.Maui.csproj index baf081a510..a3879e8b0c 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Maui/Bit.BlazorUI.Demo.Client.Maui.csproj +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Maui/Bit.BlazorUI.Demo.Client.Maui.csproj @@ -85,12 +85,12 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Web/Bit.BlazorUI.Demo.Client.Web.csproj b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Web/Bit.BlazorUI.Demo.Client.Web.csproj index 3431bf36a6..34570a32d7 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Web/Bit.BlazorUI.Demo.Client.Web.csproj +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Web/Bit.BlazorUI.Demo.Client.Web.csproj @@ -24,13 +24,13 @@ - + - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Web/wwwroot/service-worker.published.js b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Web/wwwroot/service-worker.published.js index 63fe330a04..01798595fd 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Web/wwwroot/service-worker.published.js +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Web/wwwroot/service-worker.published.js @@ -1,4 +1,4 @@ -// bit version: 9.2.1 +// bit version: 9.3.0-pre-01 // https://github.com/bitfoundation/bitplatform/tree/develop/src/Bswup self.assetsInclude = []; diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Windows/Bit.BlazorUI.Demo.Client.Windows.csproj b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Windows/Bit.BlazorUI.Demo.Client.Windows.csproj index 3d98c0d8be..5e1f9f6aef 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Windows/Bit.BlazorUI.Demo.Client.Windows.csproj +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Windows/Bit.BlazorUI.Demo.Client.Windows.csproj @@ -29,11 +29,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/BlazorUI/Demo/Directory.Build.props b/src/BlazorUI/Demo/Directory.Build.props index 52dab44bc7..4aabb9f7ce 100644 --- a/src/BlazorUI/Demo/Directory.Build.props +++ b/src/BlazorUI/Demo/Directory.Build.props @@ -1,4 +1,4 @@ - + 13.0 diff --git a/src/Bswup/Bit.Bswup.Demo/wwwroot/service-worker.js b/src/Bswup/Bit.Bswup.Demo/wwwroot/service-worker.js index ade0abcf81..9cffa6d531 100644 --- a/src/Bswup/Bit.Bswup.Demo/wwwroot/service-worker.js +++ b/src/Bswup/Bit.Bswup.Demo/wwwroot/service-worker.js @@ -1,4 +1,4 @@ -// bit version: 9.2.1 +// bit version: 9.3.0-pre-01 self.assetsExclude = [/\.scp\.css$/, /weather\.json$/]; self.caseInsensitiveUrl = true; diff --git a/src/Bswup/Bit.Bswup.Demo/wwwroot/service-worker.published.js b/src/Bswup/Bit.Bswup.Demo/wwwroot/service-worker.published.js index 2a3b911009..246f2f91c0 100644 --- a/src/Bswup/Bit.Bswup.Demo/wwwroot/service-worker.published.js +++ b/src/Bswup/Bit.Bswup.Demo/wwwroot/service-worker.published.js @@ -1,4 +1,4 @@ -// bit version: 9.2.1 +// bit version: 9.3.0-pre-01 self.assetsExclude = [/\.scp\.css$/, /weather\.json$/]; self.caseInsensitiveUrl = true; diff --git a/src/Bswup/Bit.Bswup.NewDemo/Bit.Bswup.NewDemo.Client/wwwroot/service-worker.js b/src/Bswup/Bit.Bswup.NewDemo/Bit.Bswup.NewDemo.Client/wwwroot/service-worker.js index c89580de6b..1c2b7b3e1f 100644 --- a/src/Bswup/Bit.Bswup.NewDemo/Bit.Bswup.NewDemo.Client/wwwroot/service-worker.js +++ b/src/Bswup/Bit.Bswup.NewDemo/Bit.Bswup.NewDemo.Client/wwwroot/service-worker.js @@ -1,4 +1,4 @@ -// bit version: 9.2.1 +// bit version: 9.3.0-pre-01 // In development, always fetch from the network and do not enable offline support. // This is because caching would make development more difficult (changes would not diff --git a/src/Bswup/Bit.Bswup.NewDemo/Bit.Bswup.NewDemo.Client/wwwroot/service-worker.published.js b/src/Bswup/Bit.Bswup.NewDemo/Bit.Bswup.NewDemo.Client/wwwroot/service-worker.published.js index c2e33884ae..3016daad71 100644 --- a/src/Bswup/Bit.Bswup.NewDemo/Bit.Bswup.NewDemo.Client/wwwroot/service-worker.published.js +++ b/src/Bswup/Bit.Bswup.NewDemo/Bit.Bswup.NewDemo.Client/wwwroot/service-worker.published.js @@ -1,4 +1,4 @@ -// bit version: 9.2.1 +// bit version: 9.3.0-pre-01 self.assetsInclude = []; self.assetsExclude = [ diff --git a/src/Bswup/Bit.Bswup/Scripts/bit-bswup.progress.ts b/src/Bswup/Bit.Bswup/Scripts/bit-bswup.progress.ts index 5f95ca03e3..a062e69299 100644 --- a/src/Bswup/Bit.Bswup/Scripts/bit-bswup.progress.ts +++ b/src/Bswup/Bit.Bswup/Scripts/bit-bswup.progress.ts @@ -1,4 +1,4 @@ -window['bit-bswup.progress version'] = '9.2.1'; +window['bit-bswup.progress version'] = '9.3.0-pre-01'; ; (function () { (window as any).startBswupProgress = (autoReload: boolean, diff --git a/src/Bswup/Bit.Bswup/Scripts/bit-bswup.sw.ts b/src/Bswup/Bit.Bswup/Scripts/bit-bswup.sw.ts index e45d61beca..2e7185a490 100644 --- a/src/Bswup/Bit.Bswup/Scripts/bit-bswup.sw.ts +++ b/src/Bswup/Bit.Bswup/Scripts/bit-bswup.sw.ts @@ -1,4 +1,4 @@ -self['bit-bswup.sw version'] = '9.2.1'; +self['bit-bswup.sw version'] = '9.3.0-pre-01'; interface Window { clients: any diff --git a/src/Bswup/Bit.Bswup/Scripts/bit-bswup.ts b/src/Bswup/Bit.Bswup/Scripts/bit-bswup.ts index 27593681ff..24dec94aa8 100644 --- a/src/Bswup/Bit.Bswup/Scripts/bit-bswup.ts +++ b/src/Bswup/Bit.Bswup/Scripts/bit-bswup.ts @@ -1,5 +1,5 @@ const BitBswup = {} as any; -BitBswup.version = window['bit-bswup version'] = '9.2.1'; +BitBswup.version = window['bit-bswup version'] = '9.3.0-pre-01'; declare const Blazor: any; diff --git a/src/Bswup/FullDemo/Client/wwwroot/service-worker.js b/src/Bswup/FullDemo/Client/wwwroot/service-worker.js index 6acf05acf6..a4da83913b 100644 --- a/src/Bswup/FullDemo/Client/wwwroot/service-worker.js +++ b/src/Bswup/FullDemo/Client/wwwroot/service-worker.js @@ -1,4 +1,4 @@ -// bit version: 9.2.1 +// bit version: 9.3.0-pre-01 // In development, always fetch from the network and do not enable offline support. // This is because caching would make development more difficult (changes would not diff --git a/src/Bswup/FullDemo/Client/wwwroot/service-worker.published.js b/src/Bswup/FullDemo/Client/wwwroot/service-worker.published.js index 6d64366f96..25b5c041d9 100644 --- a/src/Bswup/FullDemo/Client/wwwroot/service-worker.published.js +++ b/src/Bswup/FullDemo/Client/wwwroot/service-worker.published.js @@ -1,4 +1,4 @@ -// bit version: 9.2.1 +// bit version: 9.3.0-pre-01 self.assetsInclude = []; self.assetsExclude = [/\.scp\.css$/, /weather\.json$/]; diff --git a/src/Bup/Bit.Bup/Scripts/bit-bup.progress.ts b/src/Bup/Bit.Bup/Scripts/bit-bup.progress.ts index 8fb50f44a2..eb0e3edcf1 100644 --- a/src/Bup/Bit.Bup/Scripts/bit-bup.progress.ts +++ b/src/Bup/Bit.Bup/Scripts/bit-bup.progress.ts @@ -1,4 +1,4 @@ -window['bit-bup.progress version'] = '9.2.1'; +window['bit-bup.progress version'] = '9.3.0-pre-01'; ; (function () { (window as any).startBupProgress = (showLogs: boolean, showAssets: boolean, appContainerSelector: string, hideApp: boolean, autoHide: boolean) => { diff --git a/src/Bup/Bit.Bup/Scripts/bit-bup.ts b/src/Bup/Bit.Bup/Scripts/bit-bup.ts index 4eb481ea8f..8a7f440c24 100644 --- a/src/Bup/Bit.Bup/Scripts/bit-bup.ts +++ b/src/Bup/Bit.Bup/Scripts/bit-bup.ts @@ -1,5 +1,5 @@ var BitBup = BitBup || {}; -BitBup.version = window['bit-bup version'] = '9.2.1'; +BitBup.version = window['bit-bup version'] = '9.3.0-pre-01'; declare const Blazor: any; diff --git a/src/Butil/Bit.Butil/Scripts/butil.ts b/src/Butil/Bit.Butil/Scripts/butil.ts index 9da10d20dd..8fe8e9cd1d 100644 --- a/src/Butil/Bit.Butil/Scripts/butil.ts +++ b/src/Butil/Bit.Butil/Scripts/butil.ts @@ -1,2 +1,2 @@ var BitButil = BitButil || {}; -BitButil.version = window['bit-butil version'] = '9.2.1'; \ No newline at end of file +BitButil.version = window['bit-butil version'] = '9.3.0-pre-01'; \ No newline at end of file diff --git a/src/Templates/BlazorEmpty/Bit.BlazorEmpty/BlazorEmpty.Client/BlazorEmpty.Client.csproj b/src/Templates/BlazorEmpty/Bit.BlazorEmpty/BlazorEmpty.Client/BlazorEmpty.Client.csproj index 63fae6a659..b597b73e40 100644 --- a/src/Templates/BlazorEmpty/Bit.BlazorEmpty/BlazorEmpty.Client/BlazorEmpty.Client.csproj +++ b/src/Templates/BlazorEmpty/Bit.BlazorEmpty/BlazorEmpty.Client/BlazorEmpty.Client.csproj @@ -1,4 +1,4 @@ - + @@ -17,14 +17,14 @@ - + - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Templates/BlazorEmpty/Bit.BlazorEmpty/BlazorEmpty/BlazorEmpty.csproj b/src/Templates/BlazorEmpty/Bit.BlazorEmpty/BlazorEmpty/BlazorEmpty.csproj index 4583998bb3..568a990f99 100644 --- a/src/Templates/BlazorEmpty/Bit.BlazorEmpty/BlazorEmpty/BlazorEmpty.csproj +++ b/src/Templates/BlazorEmpty/Bit.BlazorEmpty/BlazorEmpty/BlazorEmpty.csproj @@ -1,4 +1,4 @@ - + @@ -19,14 +19,14 @@ - + - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Web/wwwroot/service-worker.published.js b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Web/wwwroot/service-worker.published.js index 87949e8fb4..669119f101 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Web/wwwroot/service-worker.published.js +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Web/wwwroot/service-worker.published.js @@ -1,5 +1,5 @@ //+:cnd:noEmit -// bit version: 9.2.1 +// bit version: 9.3.0-pre-01 // https://github.com/bitfoundation/bitplatform/tree/develop/src/Bswup //#if (notification == true) diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Build.props b/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Build.props index 8e2f14f742..f6f5cb588b 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Build.props +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Build.props @@ -1,4 +1,4 @@ - + diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages.props b/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages.props index 8bfbd7c220..0b6dfd1205 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages.props +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages.props @@ -1,14 +1,14 @@  - - - - - - - - + + + + + + + + @@ -49,7 +49,7 @@ - + diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages8.props b/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages8.props index ca1e05fadc..d484920b61 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages8.props +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages8.props @@ -1,14 +1,14 @@  - - - - - - - - + + + + + + + + @@ -46,7 +46,7 @@ - + diff --git a/src/Websites/Careers/src/Bit.Websites.Careers.Client/Bit.Websites.Careers.Client.csproj b/src/Websites/Careers/src/Bit.Websites.Careers.Client/Bit.Websites.Careers.Client.csproj index b27ca5d801..1313f61bea 100644 --- a/src/Websites/Careers/src/Bit.Websites.Careers.Client/Bit.Websites.Careers.Client.csproj +++ b/src/Websites/Careers/src/Bit.Websites.Careers.Client/Bit.Websites.Careers.Client.csproj @@ -22,15 +22,15 @@ - - + + - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Websites/Careers/src/Bit.Websites.Careers.Server/Bit.Websites.Careers.Server.csproj b/src/Websites/Careers/src/Bit.Websites.Careers.Server/Bit.Websites.Careers.Server.csproj index 672d7fd979..d33aa68e16 100644 --- a/src/Websites/Careers/src/Bit.Websites.Careers.Server/Bit.Websites.Careers.Server.csproj +++ b/src/Websites/Careers/src/Bit.Websites.Careers.Server/Bit.Websites.Careers.Server.csproj @@ -10,11 +10,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Websites/Careers/src/Bit.Websites.Careers.Shared/Bit.Websites.Careers.Shared.csproj b/src/Websites/Careers/src/Bit.Websites.Careers.Shared/Bit.Websites.Careers.Shared.csproj index 408cb4413e..acd11ed123 100644 --- a/src/Websites/Careers/src/Bit.Websites.Careers.Shared/Bit.Websites.Careers.Shared.csproj +++ b/src/Websites/Careers/src/Bit.Websites.Careers.Shared/Bit.Websites.Careers.Shared.csproj @@ -6,11 +6,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Websites/Careers/src/Directory.Build.props b/src/Websites/Careers/src/Directory.Build.props index 9e1130b941..b09ba1e0aa 100644 --- a/src/Websites/Careers/src/Directory.Build.props +++ b/src/Websites/Careers/src/Directory.Build.props @@ -1,4 +1,4 @@ - + 13.0 diff --git a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Bit.Websites.Platform.Client.csproj b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Bit.Websites.Platform.Client.csproj index ce019045a3..6c3559fc55 100644 --- a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Bit.Websites.Platform.Client.csproj +++ b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Bit.Websites.Platform.Client.csproj @@ -22,16 +22,16 @@ - - - + + + - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates03GettingStartedPage.razor b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates03GettingStartedPage.razor index fa602a5631..43c1d2fde1 100644 --- a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates03GettingStartedPage.razor +++ b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates03GettingStartedPage.razor @@ -174,8 +174,8 @@ rm $HOME/dotnet.tar.gz }
  • -
    Install Bit Boilerplate project template
    - dotnet new install Bit.Boilerplate::9.2.1 +
    Install Bit Boilerplate project template
    + dotnet new install Bit.Boilerplate::9.3.0-pre-01
  • @if (showCrossPlatform && devOS is "Windows") { diff --git a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates03GettingStartedPage.razor.cs b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates03GettingStartedPage.razor.cs index 3946c5db6b..cb6133dfcd 100644 --- a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates03GettingStartedPage.razor.cs +++ b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates03GettingStartedPage.razor.cs @@ -38,7 +38,7 @@ public partial class Templates03GettingStartedPage command:"dotnet nuget add source \"https://api.nuget.org/v3/index.json\" --name \"nuget.org\"; dotnet workload install wasm-tools;"), (text:@"echo 'Install the Bit.Boilerplate project template https://www.nuget.org/packages/Boilerplate.Templates';", - command:"dotnet new install Bit.Boilerplate::9.2.1;") + command:"dotnet new install Bit.Boilerplate::9.3.0-pre-01;") ]; if (enableVirtualization) diff --git a/src/Websites/Platform/src/Bit.Websites.Platform.Server/Bit.Websites.Platform.Server.csproj b/src/Websites/Platform/src/Bit.Websites.Platform.Server/Bit.Websites.Platform.Server.csproj index 08fa5c0c5e..cd3ff500dd 100644 --- a/src/Websites/Platform/src/Bit.Websites.Platform.Server/Bit.Websites.Platform.Server.csproj +++ b/src/Websites/Platform/src/Bit.Websites.Platform.Server/Bit.Websites.Platform.Server.csproj @@ -10,11 +10,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Websites/Platform/src/Bit.Websites.Platform.Shared/Bit.Websites.Platform.Shared.csproj b/src/Websites/Platform/src/Bit.Websites.Platform.Shared/Bit.Websites.Platform.Shared.csproj index 408cb4413e..acd11ed123 100644 --- a/src/Websites/Platform/src/Bit.Websites.Platform.Shared/Bit.Websites.Platform.Shared.csproj +++ b/src/Websites/Platform/src/Bit.Websites.Platform.Shared/Bit.Websites.Platform.Shared.csproj @@ -6,11 +6,11 @@
    - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Websites/Platform/src/Directory.Build.props b/src/Websites/Platform/src/Directory.Build.props index 6fb10075bb..d4552d617a 100644 --- a/src/Websites/Platform/src/Directory.Build.props +++ b/src/Websites/Platform/src/Directory.Build.props @@ -1,4 +1,4 @@ - + preview diff --git a/src/Websites/Sales/src/Bit.Websites.Sales.Client/Bit.Websites.Sales.Client.csproj b/src/Websites/Sales/src/Bit.Websites.Sales.Client/Bit.Websites.Sales.Client.csproj index a9366298a7..3c7992f263 100644 --- a/src/Websites/Sales/src/Bit.Websites.Sales.Client/Bit.Websites.Sales.Client.csproj +++ b/src/Websites/Sales/src/Bit.Websites.Sales.Client/Bit.Websites.Sales.Client.csproj @@ -22,15 +22,15 @@ - - + + - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Websites/Sales/src/Bit.Websites.Sales.Server/Bit.Websites.Sales.Server.csproj b/src/Websites/Sales/src/Bit.Websites.Sales.Server/Bit.Websites.Sales.Server.csproj index cf8c7f55d5..6f3d20d3c7 100644 --- a/src/Websites/Sales/src/Bit.Websites.Sales.Server/Bit.Websites.Sales.Server.csproj +++ b/src/Websites/Sales/src/Bit.Websites.Sales.Server/Bit.Websites.Sales.Server.csproj @@ -10,11 +10,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Websites/Sales/src/Bit.Websites.Sales.Shared/Bit.Websites.Sales.Shared.csproj b/src/Websites/Sales/src/Bit.Websites.Sales.Shared/Bit.Websites.Sales.Shared.csproj index 408cb4413e..acd11ed123 100644 --- a/src/Websites/Sales/src/Bit.Websites.Sales.Shared/Bit.Websites.Sales.Shared.csproj +++ b/src/Websites/Sales/src/Bit.Websites.Sales.Shared/Bit.Websites.Sales.Shared.csproj @@ -6,11 +6,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Websites/Sales/src/Directory.Build.props b/src/Websites/Sales/src/Directory.Build.props index 91dd757221..f49e457414 100644 --- a/src/Websites/Sales/src/Directory.Build.props +++ b/src/Websites/Sales/src/Directory.Build.props @@ -1,4 +1,4 @@ - + 13.0 From 70910852fdbc643ba34092fd0e7817406feef5c6 Mon Sep 17 00:00:00 2001 From: Saleh Yusefnejad Date: Sat, 11 Jan 2025 18:13:34 +0330 Subject: [PATCH 14/14] feat(release): v-9.3.0 #9654 (#9657) --- src/Besql/Bit.Besql/wwwroot/bit-besql.js | 2 +- src/Bit.Build.props | 2 +- src/BlazorUI/Bit.BlazorUI/Scripts/general.ts | 2 +- .../Bit.BlazorUI.Demo.Server.csproj | 4 ++-- .../Bit.BlazorUI.Demo.Shared.csproj | 4 ++-- .../Bit.BlazorUI.Demo.Client.Core.csproj | 4 ++-- .../Bit.BlazorUI.Demo.Client.Maui.csproj | 4 ++-- .../Bit.BlazorUI.Demo.Client.Web.csproj | 6 +++--- .../wwwroot/service-worker.published.js | 2 +- .../Bit.BlazorUI.Demo.Client.Windows.csproj | 4 ++-- src/BlazorUI/Demo/Directory.Build.props | 2 +- .../Bit.Bswup.Demo/wwwroot/service-worker.js | 2 +- .../wwwroot/service-worker.published.js | 2 +- .../wwwroot/service-worker.js | 2 +- .../wwwroot/service-worker.published.js | 2 +- .../Bit.Bswup/Scripts/bit-bswup.progress.ts | 2 +- src/Bswup/Bit.Bswup/Scripts/bit-bswup.sw.ts | 2 +- src/Bswup/Bit.Bswup/Scripts/bit-bswup.ts | 2 +- .../FullDemo/Client/wwwroot/service-worker.js | 2 +- .../Client/wwwroot/service-worker.published.js | 2 +- src/Bup/Bit.Bup/Scripts/bit-bup.progress.ts | 2 +- src/Bup/Bit.Bup/Scripts/bit-bup.ts | 2 +- src/Butil/Bit.Butil/Scripts/butil.ts | 2 +- .../BlazorEmpty.Client.csproj | 8 ++++---- .../BlazorEmpty/BlazorEmpty.csproj | 8 ++++---- .../wwwroot/service-worker.published.js | 2 +- .../Bit.Boilerplate/src/Directory.Build.props | 2 +- .../src/Directory.Packages.props | 18 +++++++++--------- .../src/Directory.Packages8.props | 18 +++++++++--------- .../Bit.Websites.Careers.Client.csproj | 10 +++++----- .../Bit.Websites.Careers.Server.csproj | 4 ++-- .../Bit.Websites.Careers.Shared.csproj | 4 ++-- src/Websites/Careers/src/Directory.Build.props | 2 +- .../Bit.Websites.Platform.Client.csproj | 12 ++++++------ .../Templates03GettingStartedPage.razor | 4 ++-- .../Templates03GettingStartedPage.razor.cs | 2 +- .../Bit.Websites.Platform.Server.csproj | 4 ++-- .../Bit.Websites.Platform.Shared.csproj | 4 ++-- .../Platform/src/Directory.Build.props | 2 +- .../Bit.Websites.Sales.Client.csproj | 10 +++++----- .../Bit.Websites.Sales.Server.csproj | 4 ++-- .../Bit.Websites.Sales.Shared.csproj | 4 ++-- src/Websites/Sales/src/Directory.Build.props | 2 +- 43 files changed, 92 insertions(+), 92 deletions(-) diff --git a/src/Besql/Bit.Besql/wwwroot/bit-besql.js b/src/Besql/Bit.Besql/wwwroot/bit-besql.js index 996f4a7568..650b4e487b 100644 --- a/src/Besql/Bit.Besql/wwwroot/bit-besql.js +++ b/src/Besql/Bit.Besql/wwwroot/bit-besql.js @@ -1,5 +1,5 @@ var BitBesql = window.BitBesql || {}; -BitBesql.version = window['bit-besql version'] = '9.3.0-pre-01'; +BitBesql.version = window['bit-besql version'] = '9.3.0'; BitBesql.init = async function init(fileName) { const sqliteFilePath = `/${fileName}`; diff --git a/src/Bit.Build.props b/src/Bit.Build.props index 23059590fb..628ca0e02d 100644 --- a/src/Bit.Build.props +++ b/src/Bit.Build.props @@ -27,7 +27,7 @@ https://github.com/bitfoundation/bitplatform - 9.3.0-pre-01 + 9.3.0 $(ReleaseVersion) https://github.com/bitfoundation/bitplatform/releases/tag/v-$(ReleaseVersion) $([System.String]::Copy($(ReleaseVersion)).Replace('-pre-', '.')) diff --git a/src/BlazorUI/Bit.BlazorUI/Scripts/general.ts b/src/BlazorUI/Bit.BlazorUI/Scripts/general.ts index 1ce257c903..948428df0d 100644 --- a/src/BlazorUI/Bit.BlazorUI/Scripts/general.ts +++ b/src/BlazorUI/Bit.BlazorUI/Scripts/general.ts @@ -1,4 +1,4 @@ -(BitBlazorUI as any).version = (window as any)['bit-blazorui version'] = '9.3.0-pre-01'; +(BitBlazorUI as any).version = (window as any)['bit-blazorui version'] = '9.3.0'; interface DotNetObject { invokeMethod(methodIdentifier: string, ...args: any[]): T; diff --git a/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/Bit.BlazorUI.Demo.Server.csproj b/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/Bit.BlazorUI.Demo.Server.csproj index 7927e2fb67..7fe8baccfc 100644 --- a/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/Bit.BlazorUI.Demo.Server.csproj +++ b/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/Bit.BlazorUI.Demo.Server.csproj @@ -5,11 +5,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Shared/Bit.BlazorUI.Demo.Shared.csproj b/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Shared/Bit.BlazorUI.Demo.Shared.csproj index 861c880379..f1be4b6996 100644 --- a/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Shared/Bit.BlazorUI.Demo.Shared.csproj +++ b/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Shared/Bit.BlazorUI.Demo.Shared.csproj @@ -5,11 +5,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Bit.BlazorUI.Demo.Client.Core.csproj b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Bit.BlazorUI.Demo.Client.Core.csproj index 6f8bd1cf67..d57c1e821f 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Bit.BlazorUI.Demo.Client.Core.csproj +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Bit.BlazorUI.Demo.Client.Core.csproj @@ -16,11 +16,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Maui/Bit.BlazorUI.Demo.Client.Maui.csproj b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Maui/Bit.BlazorUI.Demo.Client.Maui.csproj index a3879e8b0c..4a40e60feb 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Maui/Bit.BlazorUI.Demo.Client.Maui.csproj +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Maui/Bit.BlazorUI.Demo.Client.Maui.csproj @@ -85,12 +85,12 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Web/Bit.BlazorUI.Demo.Client.Web.csproj b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Web/Bit.BlazorUI.Demo.Client.Web.csproj index 34570a32d7..143a0eb9f3 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Web/Bit.BlazorUI.Demo.Client.Web.csproj +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Web/Bit.BlazorUI.Demo.Client.Web.csproj @@ -24,13 +24,13 @@ - + - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Web/wwwroot/service-worker.published.js b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Web/wwwroot/service-worker.published.js index 01798595fd..643a741e6c 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Web/wwwroot/service-worker.published.js +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Web/wwwroot/service-worker.published.js @@ -1,4 +1,4 @@ -// bit version: 9.3.0-pre-01 +// bit version: 9.3.0 // https://github.com/bitfoundation/bitplatform/tree/develop/src/Bswup self.assetsInclude = []; diff --git a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Windows/Bit.BlazorUI.Demo.Client.Windows.csproj b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Windows/Bit.BlazorUI.Demo.Client.Windows.csproj index 5e1f9f6aef..b7ba5432f8 100644 --- a/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Windows/Bit.BlazorUI.Demo.Client.Windows.csproj +++ b/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Windows/Bit.BlazorUI.Demo.Client.Windows.csproj @@ -29,11 +29,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/BlazorUI/Demo/Directory.Build.props b/src/BlazorUI/Demo/Directory.Build.props index 4aabb9f7ce..0e4429cc52 100644 --- a/src/BlazorUI/Demo/Directory.Build.props +++ b/src/BlazorUI/Demo/Directory.Build.props @@ -1,4 +1,4 @@ - + 13.0 diff --git a/src/Bswup/Bit.Bswup.Demo/wwwroot/service-worker.js b/src/Bswup/Bit.Bswup.Demo/wwwroot/service-worker.js index 9cffa6d531..73e39a3969 100644 --- a/src/Bswup/Bit.Bswup.Demo/wwwroot/service-worker.js +++ b/src/Bswup/Bit.Bswup.Demo/wwwroot/service-worker.js @@ -1,4 +1,4 @@ -// bit version: 9.3.0-pre-01 +// bit version: 9.3.0 self.assetsExclude = [/\.scp\.css$/, /weather\.json$/]; self.caseInsensitiveUrl = true; diff --git a/src/Bswup/Bit.Bswup.Demo/wwwroot/service-worker.published.js b/src/Bswup/Bit.Bswup.Demo/wwwroot/service-worker.published.js index 246f2f91c0..b034cbb58c 100644 --- a/src/Bswup/Bit.Bswup.Demo/wwwroot/service-worker.published.js +++ b/src/Bswup/Bit.Bswup.Demo/wwwroot/service-worker.published.js @@ -1,4 +1,4 @@ -// bit version: 9.3.0-pre-01 +// bit version: 9.3.0 self.assetsExclude = [/\.scp\.css$/, /weather\.json$/]; self.caseInsensitiveUrl = true; diff --git a/src/Bswup/Bit.Bswup.NewDemo/Bit.Bswup.NewDemo.Client/wwwroot/service-worker.js b/src/Bswup/Bit.Bswup.NewDemo/Bit.Bswup.NewDemo.Client/wwwroot/service-worker.js index 1c2b7b3e1f..6d95e62557 100644 --- a/src/Bswup/Bit.Bswup.NewDemo/Bit.Bswup.NewDemo.Client/wwwroot/service-worker.js +++ b/src/Bswup/Bit.Bswup.NewDemo/Bit.Bswup.NewDemo.Client/wwwroot/service-worker.js @@ -1,4 +1,4 @@ -// bit version: 9.3.0-pre-01 +// bit version: 9.3.0 // In development, always fetch from the network and do not enable offline support. // This is because caching would make development more difficult (changes would not diff --git a/src/Bswup/Bit.Bswup.NewDemo/Bit.Bswup.NewDemo.Client/wwwroot/service-worker.published.js b/src/Bswup/Bit.Bswup.NewDemo/Bit.Bswup.NewDemo.Client/wwwroot/service-worker.published.js index 3016daad71..b4c22a317d 100644 --- a/src/Bswup/Bit.Bswup.NewDemo/Bit.Bswup.NewDemo.Client/wwwroot/service-worker.published.js +++ b/src/Bswup/Bit.Bswup.NewDemo/Bit.Bswup.NewDemo.Client/wwwroot/service-worker.published.js @@ -1,4 +1,4 @@ -// bit version: 9.3.0-pre-01 +// bit version: 9.3.0 self.assetsInclude = []; self.assetsExclude = [ diff --git a/src/Bswup/Bit.Bswup/Scripts/bit-bswup.progress.ts b/src/Bswup/Bit.Bswup/Scripts/bit-bswup.progress.ts index a062e69299..dbc219693a 100644 --- a/src/Bswup/Bit.Bswup/Scripts/bit-bswup.progress.ts +++ b/src/Bswup/Bit.Bswup/Scripts/bit-bswup.progress.ts @@ -1,4 +1,4 @@ -window['bit-bswup.progress version'] = '9.3.0-pre-01'; +window['bit-bswup.progress version'] = '9.3.0'; ; (function () { (window as any).startBswupProgress = (autoReload: boolean, diff --git a/src/Bswup/Bit.Bswup/Scripts/bit-bswup.sw.ts b/src/Bswup/Bit.Bswup/Scripts/bit-bswup.sw.ts index 2e7185a490..15b0cb755d 100644 --- a/src/Bswup/Bit.Bswup/Scripts/bit-bswup.sw.ts +++ b/src/Bswup/Bit.Bswup/Scripts/bit-bswup.sw.ts @@ -1,4 +1,4 @@ -self['bit-bswup.sw version'] = '9.3.0-pre-01'; +self['bit-bswup.sw version'] = '9.3.0'; interface Window { clients: any diff --git a/src/Bswup/Bit.Bswup/Scripts/bit-bswup.ts b/src/Bswup/Bit.Bswup/Scripts/bit-bswup.ts index 24dec94aa8..e7f76c4f26 100644 --- a/src/Bswup/Bit.Bswup/Scripts/bit-bswup.ts +++ b/src/Bswup/Bit.Bswup/Scripts/bit-bswup.ts @@ -1,5 +1,5 @@ const BitBswup = {} as any; -BitBswup.version = window['bit-bswup version'] = '9.3.0-pre-01'; +BitBswup.version = window['bit-bswup version'] = '9.3.0'; declare const Blazor: any; diff --git a/src/Bswup/FullDemo/Client/wwwroot/service-worker.js b/src/Bswup/FullDemo/Client/wwwroot/service-worker.js index a4da83913b..923a321e1c 100644 --- a/src/Bswup/FullDemo/Client/wwwroot/service-worker.js +++ b/src/Bswup/FullDemo/Client/wwwroot/service-worker.js @@ -1,4 +1,4 @@ -// bit version: 9.3.0-pre-01 +// bit version: 9.3.0 // In development, always fetch from the network and do not enable offline support. // This is because caching would make development more difficult (changes would not diff --git a/src/Bswup/FullDemo/Client/wwwroot/service-worker.published.js b/src/Bswup/FullDemo/Client/wwwroot/service-worker.published.js index 25b5c041d9..2300e5cfac 100644 --- a/src/Bswup/FullDemo/Client/wwwroot/service-worker.published.js +++ b/src/Bswup/FullDemo/Client/wwwroot/service-worker.published.js @@ -1,4 +1,4 @@ -// bit version: 9.3.0-pre-01 +// bit version: 9.3.0 self.assetsInclude = []; self.assetsExclude = [/\.scp\.css$/, /weather\.json$/]; diff --git a/src/Bup/Bit.Bup/Scripts/bit-bup.progress.ts b/src/Bup/Bit.Bup/Scripts/bit-bup.progress.ts index eb0e3edcf1..8dee3d4a24 100644 --- a/src/Bup/Bit.Bup/Scripts/bit-bup.progress.ts +++ b/src/Bup/Bit.Bup/Scripts/bit-bup.progress.ts @@ -1,4 +1,4 @@ -window['bit-bup.progress version'] = '9.3.0-pre-01'; +window['bit-bup.progress version'] = '9.3.0'; ; (function () { (window as any).startBupProgress = (showLogs: boolean, showAssets: boolean, appContainerSelector: string, hideApp: boolean, autoHide: boolean) => { diff --git a/src/Bup/Bit.Bup/Scripts/bit-bup.ts b/src/Bup/Bit.Bup/Scripts/bit-bup.ts index 8a7f440c24..30204c2d03 100644 --- a/src/Bup/Bit.Bup/Scripts/bit-bup.ts +++ b/src/Bup/Bit.Bup/Scripts/bit-bup.ts @@ -1,5 +1,5 @@ var BitBup = BitBup || {}; -BitBup.version = window['bit-bup version'] = '9.3.0-pre-01'; +BitBup.version = window['bit-bup version'] = '9.3.0'; declare const Blazor: any; diff --git a/src/Butil/Bit.Butil/Scripts/butil.ts b/src/Butil/Bit.Butil/Scripts/butil.ts index 8fe8e9cd1d..0e40dedf14 100644 --- a/src/Butil/Bit.Butil/Scripts/butil.ts +++ b/src/Butil/Bit.Butil/Scripts/butil.ts @@ -1,2 +1,2 @@ var BitButil = BitButil || {}; -BitButil.version = window['bit-butil version'] = '9.3.0-pre-01'; \ No newline at end of file +BitButil.version = window['bit-butil version'] = '9.3.0'; \ No newline at end of file diff --git a/src/Templates/BlazorEmpty/Bit.BlazorEmpty/BlazorEmpty.Client/BlazorEmpty.Client.csproj b/src/Templates/BlazorEmpty/Bit.BlazorEmpty/BlazorEmpty.Client/BlazorEmpty.Client.csproj index b597b73e40..c8ad1c8678 100644 --- a/src/Templates/BlazorEmpty/Bit.BlazorEmpty/BlazorEmpty.Client/BlazorEmpty.Client.csproj +++ b/src/Templates/BlazorEmpty/Bit.BlazorEmpty/BlazorEmpty.Client/BlazorEmpty.Client.csproj @@ -1,4 +1,4 @@ - + @@ -17,14 +17,14 @@ - + - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Templates/BlazorEmpty/Bit.BlazorEmpty/BlazorEmpty/BlazorEmpty.csproj b/src/Templates/BlazorEmpty/Bit.BlazorEmpty/BlazorEmpty/BlazorEmpty.csproj index 568a990f99..b0f47959d5 100644 --- a/src/Templates/BlazorEmpty/Bit.BlazorEmpty/BlazorEmpty/BlazorEmpty.csproj +++ b/src/Templates/BlazorEmpty/Bit.BlazorEmpty/BlazorEmpty/BlazorEmpty.csproj @@ -1,4 +1,4 @@ - + @@ -19,14 +19,14 @@ - + - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Web/wwwroot/service-worker.published.js b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Web/wwwroot/service-worker.published.js index 669119f101..cab3c7bab7 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Web/wwwroot/service-worker.published.js +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Web/wwwroot/service-worker.published.js @@ -1,5 +1,5 @@ //+:cnd:noEmit -// bit version: 9.3.0-pre-01 +// bit version: 9.3.0 // https://github.com/bitfoundation/bitplatform/tree/develop/src/Bswup //#if (notification == true) diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Build.props b/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Build.props index f6f5cb588b..82b18be8d8 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Build.props +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Build.props @@ -1,4 +1,4 @@ - + diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages.props b/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages.props index 0b6dfd1205..e1041f51df 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages.props +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages.props @@ -1,14 +1,14 @@  - - - - - - - - + + + + + + + + @@ -49,7 +49,7 @@ - + diff --git a/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages8.props b/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages8.props index d484920b61..a652a313ba 100644 --- a/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages8.props +++ b/src/Templates/Boilerplate/Bit.Boilerplate/src/Directory.Packages8.props @@ -1,14 +1,14 @@  - - - - - - - - + + + + + + + + @@ -46,7 +46,7 @@ - + diff --git a/src/Websites/Careers/src/Bit.Websites.Careers.Client/Bit.Websites.Careers.Client.csproj b/src/Websites/Careers/src/Bit.Websites.Careers.Client/Bit.Websites.Careers.Client.csproj index 1313f61bea..1b3913025f 100644 --- a/src/Websites/Careers/src/Bit.Websites.Careers.Client/Bit.Websites.Careers.Client.csproj +++ b/src/Websites/Careers/src/Bit.Websites.Careers.Client/Bit.Websites.Careers.Client.csproj @@ -22,15 +22,15 @@ - - + + - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Websites/Careers/src/Bit.Websites.Careers.Server/Bit.Websites.Careers.Server.csproj b/src/Websites/Careers/src/Bit.Websites.Careers.Server/Bit.Websites.Careers.Server.csproj index d33aa68e16..12beb9d904 100644 --- a/src/Websites/Careers/src/Bit.Websites.Careers.Server/Bit.Websites.Careers.Server.csproj +++ b/src/Websites/Careers/src/Bit.Websites.Careers.Server/Bit.Websites.Careers.Server.csproj @@ -10,11 +10,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Websites/Careers/src/Bit.Websites.Careers.Shared/Bit.Websites.Careers.Shared.csproj b/src/Websites/Careers/src/Bit.Websites.Careers.Shared/Bit.Websites.Careers.Shared.csproj index acd11ed123..1859e3036a 100644 --- a/src/Websites/Careers/src/Bit.Websites.Careers.Shared/Bit.Websites.Careers.Shared.csproj +++ b/src/Websites/Careers/src/Bit.Websites.Careers.Shared/Bit.Websites.Careers.Shared.csproj @@ -6,11 +6,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Websites/Careers/src/Directory.Build.props b/src/Websites/Careers/src/Directory.Build.props index b09ba1e0aa..f1c146cbb9 100644 --- a/src/Websites/Careers/src/Directory.Build.props +++ b/src/Websites/Careers/src/Directory.Build.props @@ -1,4 +1,4 @@ - + 13.0 diff --git a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Bit.Websites.Platform.Client.csproj b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Bit.Websites.Platform.Client.csproj index 6c3559fc55..36f2172a7b 100644 --- a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Bit.Websites.Platform.Client.csproj +++ b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Bit.Websites.Platform.Client.csproj @@ -22,16 +22,16 @@ - - - + + + - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates03GettingStartedPage.razor b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates03GettingStartedPage.razor index 43c1d2fde1..3f130cd7bd 100644 --- a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates03GettingStartedPage.razor +++ b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates03GettingStartedPage.razor @@ -174,8 +174,8 @@ rm $HOME/dotnet.tar.gz }
  • -
    Install Bit Boilerplate project template
    - dotnet new install Bit.Boilerplate::9.3.0-pre-01 +
    Install Bit Boilerplate project template
    + dotnet new install Bit.Boilerplate::9.3.0
  • @if (showCrossPlatform && devOS is "Windows") { diff --git a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates03GettingStartedPage.razor.cs b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates03GettingStartedPage.razor.cs index cb6133dfcd..36cdf241eb 100644 --- a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates03GettingStartedPage.razor.cs +++ b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates03GettingStartedPage.razor.cs @@ -38,7 +38,7 @@ public partial class Templates03GettingStartedPage command:"dotnet nuget add source \"https://api.nuget.org/v3/index.json\" --name \"nuget.org\"; dotnet workload install wasm-tools;"), (text:@"echo 'Install the Bit.Boilerplate project template https://www.nuget.org/packages/Boilerplate.Templates';", - command:"dotnet new install Bit.Boilerplate::9.3.0-pre-01;") + command:"dotnet new install Bit.Boilerplate::9.3.0;") ]; if (enableVirtualization) diff --git a/src/Websites/Platform/src/Bit.Websites.Platform.Server/Bit.Websites.Platform.Server.csproj b/src/Websites/Platform/src/Bit.Websites.Platform.Server/Bit.Websites.Platform.Server.csproj index cd3ff500dd..2e2e873818 100644 --- a/src/Websites/Platform/src/Bit.Websites.Platform.Server/Bit.Websites.Platform.Server.csproj +++ b/src/Websites/Platform/src/Bit.Websites.Platform.Server/Bit.Websites.Platform.Server.csproj @@ -10,11 +10,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Websites/Platform/src/Bit.Websites.Platform.Shared/Bit.Websites.Platform.Shared.csproj b/src/Websites/Platform/src/Bit.Websites.Platform.Shared/Bit.Websites.Platform.Shared.csproj index acd11ed123..1859e3036a 100644 --- a/src/Websites/Platform/src/Bit.Websites.Platform.Shared/Bit.Websites.Platform.Shared.csproj +++ b/src/Websites/Platform/src/Bit.Websites.Platform.Shared/Bit.Websites.Platform.Shared.csproj @@ -6,11 +6,11 @@
    - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Websites/Platform/src/Directory.Build.props b/src/Websites/Platform/src/Directory.Build.props index d4552d617a..91166ff0f8 100644 --- a/src/Websites/Platform/src/Directory.Build.props +++ b/src/Websites/Platform/src/Directory.Build.props @@ -1,4 +1,4 @@ - + preview diff --git a/src/Websites/Sales/src/Bit.Websites.Sales.Client/Bit.Websites.Sales.Client.csproj b/src/Websites/Sales/src/Bit.Websites.Sales.Client/Bit.Websites.Sales.Client.csproj index 3c7992f263..a8df1db90b 100644 --- a/src/Websites/Sales/src/Bit.Websites.Sales.Client/Bit.Websites.Sales.Client.csproj +++ b/src/Websites/Sales/src/Bit.Websites.Sales.Client/Bit.Websites.Sales.Client.csproj @@ -22,15 +22,15 @@ - - + + - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Websites/Sales/src/Bit.Websites.Sales.Server/Bit.Websites.Sales.Server.csproj b/src/Websites/Sales/src/Bit.Websites.Sales.Server/Bit.Websites.Sales.Server.csproj index 6f3d20d3c7..9e942910b9 100644 --- a/src/Websites/Sales/src/Bit.Websites.Sales.Server/Bit.Websites.Sales.Server.csproj +++ b/src/Websites/Sales/src/Bit.Websites.Sales.Server/Bit.Websites.Sales.Server.csproj @@ -10,11 +10,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Websites/Sales/src/Bit.Websites.Sales.Shared/Bit.Websites.Sales.Shared.csproj b/src/Websites/Sales/src/Bit.Websites.Sales.Shared/Bit.Websites.Sales.Shared.csproj index acd11ed123..1859e3036a 100644 --- a/src/Websites/Sales/src/Bit.Websites.Sales.Shared/Bit.Websites.Sales.Shared.csproj +++ b/src/Websites/Sales/src/Bit.Websites.Sales.Shared/Bit.Websites.Sales.Shared.csproj @@ -6,11 +6,11 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Websites/Sales/src/Directory.Build.props b/src/Websites/Sales/src/Directory.Build.props index f49e457414..c7964761d7 100644 --- a/src/Websites/Sales/src/Directory.Build.props +++ b/src/Websites/Sales/src/Directory.Build.props @@ -1,4 +1,4 @@ - + 13.0