Skip to content

Commit 2b0d001

Browse files
committed
Merge branch 'doc-deps' into doc-project
2 parents aba0a9f + f7c5d95 commit 2b0d001

File tree

17 files changed

+225
-60
lines changed

17 files changed

+225
-60
lines changed

src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<PackageReference Include="BootstrapBlazor.AzureOpenAI" Version="8.0.1" />
2727
<PackageReference Include="BootstrapBlazor.AzureTranslator" Version="8.1.0" />
2828
<PackageReference Include="BootstrapBlazor.BaiduSpeech" Version="8.1.0" />
29-
<PackageReference Include="BootstrapBlazor.BaiduOcr" Version="8.1.0" />
29+
<PackageReference Include="BootstrapBlazor.BaiduOcr" Version="8.1.1" />
3030
<PackageReference Include="BootstrapBlazor.BarCode" Version="8.0.2" />
3131
<PackageReference Include="BootstrapBlazor.BarcodeGenerator" Version="0.1.1" />
3232
<PackageReference Include="BootstrapBlazor.Bluetooth" Version="8.0.2" />
@@ -39,7 +39,7 @@
3939
<PackageReference Include="BootstrapBlazor.DockView" Version="8.1.6" />
4040
<PackageReference Include="BootstrapBlazor.DriverJs" Version="8.0.1" />
4141
<PackageReference Include="BootstrapBlazor.ElementIcon" Version="8.0.0" />
42-
<PackageReference Include="BootstrapBlazor.FileViewer" Version="8.1.0" />
42+
<PackageReference Include="BootstrapBlazor.FileViewer" Version="8.1.1" />
4343
<PackageReference Include="BootstrapBlazor.FontAwesome" Version="8.0.6" />
4444
<PackageReference Include="BootstrapBlazor.Gantt" Version="8.0.1" />
4545
<PackageReference Include="BootstrapBlazor.Holiday" Version="8.0.1" />
@@ -70,8 +70,6 @@
7070
<PackageReference Include="BootstrapBlazor.WinBox" Version="8.0.3" />
7171
<PackageReference Include="Longbow.Logging" Version="8.0.0" />
7272
<PackageReference Include="Longbow.Tasks" Version="8.0.3" />
73-
<PackageReference Include="System.Drawing.Common" Version="8.0.8" />
74-
<PackageReference Include="System.Text.Json" Version="8.0.4" />
7573
</ItemGroup>
7674

7775
<ItemGroup>

src/BootstrapBlazor.Server/Components/Samples/DropdownWidgets.razor

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<DemoBlock Title="@Localizer["BasicUsageTitle"]" Introduction="@Localizer["BasicUsageIntro"]" Name="Normal">
99
<div class="widget-demo">
10-
<DropdownWidget>
10+
<DropdownWidget OnItemCloseAsync="OnItemCloseAsync">
1111
<DropdownWidgetItem Icon="fa-regular fa-envelope" BadgeNumber="4">
1212
<HeaderTemplate>
1313
<span>@Localizer["BasicUsageMessage"]</span>
@@ -81,7 +81,9 @@
8181
</DropdownWidgetItem>
8282
</DropdownWidget>
8383
</div>
84-
84+
<section ignore>
85+
<ConsoleLogger @ref="_logger"></ConsoleLogger>
86+
</section>
8587
</DemoBlock>
8688

8789
<AttributeTable Items="@GetAttributes()" Title="@Localizer["AttributeTitle"]" />

src/BootstrapBlazor.Server/Components/Samples/DropdownWidgets.razor.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ namespace BootstrapBlazor.Server.Components.Samples;
99
/// </summary>
1010
public partial class DropdownWidgets
1111
{
12+
private ConsoleLogger _logger = default!;
13+
14+
private Task OnItemCloseAsync(DropdownWidgetItem item)
15+
{
16+
_logger.Log($"Item {item.BadgeNumber} closed");
17+
return Task.CompletedTask;
18+
}
19+
1220
private AttributeItem[] GetAttributes() =>
1321
[
1422
new()
@@ -82,6 +90,14 @@ private AttributeItem[] GetAttributes() =>
8290
Type = "RenderFragment",
8391
ValueList = " — ",
8492
DefaultValue = " — "
93+
},
94+
new()
95+
{
96+
Name = "OnItemCloseAsync",
97+
Description = Localizer["OnItemCloseAsync"],
98+
Type = "Func<DropdownWidgetItem, Task>",
99+
ValueList = " — ",
100+
DefaultValue = " — "
85101
}
86102
];
87103
}

src/BootstrapBlazor.Server/Components/Samples/Table/Tables.razor.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,22 @@ private AttributeItem[] GetAttributes() =>
646646
DefaultValue = "false"
647647
},
648648
new()
649+
{
650+
Name = nameof(Table<Foo>.IsKeepSelectedRows),
651+
Description = Localizer["IsKeepSelectedRowsAttr"],
652+
Type = "boolean",
653+
ValueList = "true / false",
654+
DefaultValue = "false"
655+
},
656+
new()
657+
{
658+
Name = nameof(Table<Foo>.IsKeepSelectedRowAfterAdd),
659+
Description = Localizer["IsKeepSelectedRowAfterAddAttr"],
660+
Type = "boolean",
661+
ValueList = "true / false",
662+
DefaultValue = "false"
663+
},
664+
new()
649665
{
650666
Name = "ClickToSelect",
651667
Description = Localizer["ClickToSelectAttr"],

src/BootstrapBlazor.Server/Components/Samples/Table/TablesEdit.razor

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@
150150
<RadioList @bind-Value="InsertMode" />
151151
</section>
152152
<Table TItem="Foo"
153-
IsPagination="true" PageItemsSource="@PageItemsSource"
154153
IsStriped="true" IsBordered="true" IsMultipleSelect="true"
155154
ShowToolbar="true" ShowExtendButtons="true" ShowSkeleton="true"
156155
AddModalTitle="@Localizer["TablesEditModeAddModalTitle"]" EditModalTitle="@Localizer["TablesEditModeEditModalTitle"]"
@@ -169,7 +168,6 @@
169168
<p>@((MarkupString)Localizer["TablesEditModeDrawer"].Value)</p>
170169
</section>
171170
<Table TItem="Foo"
172-
IsPagination="true" PageItemsSource="@PageItemsSource"
173171
IsStriped="true" IsBordered="true" IsMultipleSelect="true"
174172
ShowToolbar="true" ShowExtendButtons="true" ShowSkeleton="true"
175173
AddModalTitle="@Localizer["TablesEditModeAddModalTitle"]" EditModalTitle="@Localizer["TablesEditModeEditModalTitle"]"

src/BootstrapBlazor.Server/Locales/en-US.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3980,7 +3980,8 @@
39803980
"BasicUsageNotify": "You have 10 unread notifications",
39813981
"BasicUsageViewNotify": "View all notifications",
39823982
"BasicUsageTasks": "You have 3 tasks",
3983-
"BasicUsageViewTasks": "View all tasks"
3983+
"BasicUsageViewTasks": "View all tasks",
3984+
"OnItemCloseAsync": "Close dropdown widget item callback method"
39843985
},
39853986
"BootstrapBlazor.Server.Components.Samples.Empties": {
39863987
"Title": "Empty",
@@ -4894,6 +4895,8 @@
48944895
"IsTreeAttr": "Is it tree data",
48954896
"IsDetailsAttr": "Whether it is a detail row table, use DetailRowTemplate for logical judgment when not set",
48964897
"IsHideFooterWhenNoDataAttr": "Whether to show Footer when no data is available",
4898+
"IsKeepSelectedRowsAttr": "Whether to keep the selected row after switch page index",
4899+
"IsKeepSelectedRowAfterAddAttr": "Whether to keep the selected row after call add method",
48974900
"ClickToSelectAttr": "Click on the line to select the line",
48984901
"ShowCheckboxTextAttr": "Selection column that displays text",
48994902
"ShowFooterAttr": "Show feet",

src/BootstrapBlazor.Server/Locales/zh-CN.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3980,7 +3980,8 @@
39803980
"BasicUsageNotify": "您有 10 个未读通知",
39813981
"BasicUsageViewNotify": "查看所有通知",
39823982
"BasicUsageTasks": "您有 3 个任务",
3983-
"BasicUsageViewTasks": "查看所有任务"
3983+
"BasicUsageViewTasks": "查看所有任务",
3984+
"OnItemCloseAsync": "关闭菜单项回调方法"
39843985
},
39853986
"BootstrapBlazor.Server.Components.Samples.Empties": {
39863987
"Title": "Empty 空状态",
@@ -4894,6 +4895,8 @@
48944895
"IsTreeAttr": "是否为树形数据",
48954896
"IsDetailsAttr": "是否为明细行表格,未设置时使用 DetailRowTemplate 进行逻辑判断",
48964897
"IsHideFooterWhenNoDataAttr": "无数据时是否显示 Footer",
4898+
"IsKeepSelectedRowsAttr": "翻页后是否保持选中行数据",
4899+
"IsKeepSelectedRowAfterAddAttr": "新建数据后是否保持选中行",
48974900
"ClickToSelectAttr": "点击行即选中本行",
48984901
"ShowCheckboxTextAttr": "显示文字的选择列",
48994902
"ShowFooterAttr": "是否显示表脚",

src/BootstrapBlazor.Server/Properties/launchSettings.json

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
}
99
},
1010
"profiles": {
11-
"WebConsole": {
11+
"console": {
1212
"commandName": "Project",
1313
"dotnetRunMessages": true,
1414
"launchBrowser": true,
@@ -17,15 +17,6 @@
1717
"ASPNETCORE_ENVIRONMENT": "Development"
1818
}
1919
},
20-
"Watch": {
21-
"commandName": "Executable",
22-
"executablePath": "dotnet.exe",
23-
"workingDirectory": "$(ProjectDir)",
24-
"commandLineArgs": "watch run",
25-
"environmentVariables": {
26-
"ASPNETCORE_ENVIRONMENT": "Development"
27-
}
28-
},
2920
"https": {
3021
"commandName": "Project",
3122
"dotnetRunMessages": true,
@@ -35,26 +26,12 @@
3526
"ASPNETCORE_ENVIRONMENT": "Development"
3627
}
3728
},
38-
"LanConsole": {
39-
"commandName": "Project",
40-
"dotnetRunMessages": true,
41-
"launchBrowser": true,
42-
"applicationUrl": "http://0.0.0.0/",
43-
"environmentVariables": {
44-
"ASPNETCORE_ENVIRONMENT": "Development"
45-
}
46-
},
4729
"IIS Express": {
4830
"commandName": "IISExpress",
4931
"launchBrowser": true,
5032
"environmentVariables": {
5133
"ASPNETCORE_ENVIRONMENT": "Development"
5234
}
53-
},
54-
"Docker": {
55-
"commandName": "Docker",
56-
"launchBrowser": true,
57-
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}"
5835
}
5936
}
6037
}

src/BootstrapBlazor/BootstrapBlazor.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>8.10.2-beta03</Version>
4+
<Version>8.10.2-beta05</Version>
55
</PropertyGroup>
66

77
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">

src/BootstrapBlazor/Components/DropdownWidget/DropdownWidget.razor

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
@namespace BootstrapBlazor.Components
2-
@inherits BootstrapComponentBase
2+
@inherits BootstrapModuleComponentBase
3+
@attribute [BootstrapModuleAutoLoader(JSObjectReference = true)]
34

4-
<div @attributes="@AdditionalAttributes" class="@ClassString">
5+
<div @attributes="@AdditionalAttributes" class="@ClassString" id="@Id">
56
<CascadingValue Value="this" IsFixed="true">
67
@ChildContent
78
</CascadingValue>

0 commit comments

Comments
 (0)