Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twn/sync fork from upstream/master 23-Apr-2024 #32

Closed
wants to merge 42 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
3ae8639
Fix link hover stroke opacity
Dec 6, 2022
eb9f37c
Merge pull request #280 from pixix4/bugfix/link-hover-stroke-opacity
zHaytam Aug 25, 2023
4cfc10f
Add Radius example to Path Generators documentation
zHaytam Sep 30, 2023
1e6fb86
Merge branch 'develop' of https://github.com/Blazor-Diagrams/Blazor.D…
zHaytam Sep 30, 2023
832a030
fix type of diagram
suraj-desai-wtg Oct 16, 2023
2403206
Adding check for target being a portModel
K0369 Oct 16, 2023
93b154b
Fixing nodes not updating on change of the link target
K0369 Oct 16, 2023
ff0fd5a
fixing NRE of onLinkRemoved in landing showcase diagram
K0369 Oct 22, 2023
95a9734
refactoring link target refreshing in landing showcase diagram
K0369 Oct 22, 2023
f1032af
Demo-site: changing signature of onChange to reflect actual values
K0369 Oct 22, 2023
9836fa3
Add Route property to BaseLinkModel
zHaytam Oct 22, 2023
12ea521
Merge pull request #364 from K0369/bugfix/nre-on-demo-site
zHaytam Oct 23, 2023
c15bec5
Merge branch 'develop' of https://github.com/Blazor-Diagrams/Blazor.D…
zHaytam Oct 23, 2023
900d352
Merge branch 'develop' into pr/363
zHaytam Oct 23, 2023
4b6fe1d
Merge pull request #363 from Suraj0500/suraj/fix-null-reference-excep…
zHaytam Oct 23, 2023
6321a29
Adding check for "ShouldDelete"-constraint to remove control
K0369 Oct 23, 2023
58bcdb3
Adding unit tests
K0369 Oct 23, 2023
27422d0
Fixing #369 by adding invariant culture conversion
K0369 Oct 23, 2023
2209b52
Merge pull request #370 from K0369/#369-unit-test-failing-on-non-engl…
zHaytam Oct 26, 2023
e586245
Adding functionality for GroupModel Removal to RemoveControl
K0369 Oct 26, 2023
605028d
Merge pull request #371 from K0369/bugfix/#359-should-delete-constrai…
zHaytam Oct 27, 2023
434de93
Update Versions and CHANGELOG
zHaytam Oct 27, 2023
11798a1
Add new workflow to push to nuget
zHaytam Oct 27, 2023
9cb0e13
Merge pull request #372 from Blazor-Diagrams/develop
zHaytam Oct 27, 2023
0d35925
Update push.yml
zHaytam Oct 27, 2023
46d9800
Update push.yml
zHaytam Oct 27, 2023
3a4a953
upgrade to net8.0
sebastian-wachsmuth Dec 19, 2023
339896f
multitargetting and central package management
sebastian-wachsmuth Jan 2, 2024
dc25b01
apply consistent formatting to .csproj and .props files
sebastian-wachsmuth Jan 3, 2024
79aa9de
Update ReflectionUtils.cs
robertmclaws Jan 5, 2024
1d62ed9
Merge pull request #401 from robertmclaws/patch-1
zHaytam Feb 24, 2024
ccc79f9
Merge pull request #395 from SebastianWachsmuth/master
zHaytam Feb 24, 2024
4ab8733
Add width and height to foreignObject.diagram-link-label for Firefox
zHaytam Feb 24, 2024
b0a4a4f
Update README.md
zHaytam Feb 24, 2024
d79b01e
Update Versions and CHANGELOG
zHaytam Feb 24, 2024
88b0225
Change Java version for Sonar
zHaytam Feb 24, 2024
9ff34b4
Merge pull request #418 from Blazor-Diagrams/develop
zHaytam Feb 24, 2024
3ae367c
Update main.yml
zHaytam Feb 24, 2024
c9262ff
Update push.yml
zHaytam Feb 24, 2024
60ce15c
Update push.yml
zHaytam Feb 24, 2024
ac4eef3
Update push.yml
zHaytam Feb 24, 2024
503c676
Merged from upstream/master
tripti-wani Apr 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: PushToNuget
env:
NUGET_DIR: '${{ github.workspace }}/nuget'

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Pack Blazor.Diagrams.Core
working-directory: src/Blazor.Diagrams.Core
run: 'dotnet pack -p:GeneratePackageOnBuild=false --configuration Release --output ${{ env.NUGET_DIR }}'

- name: Pack Blazor.Diagrams
working-directory: src/Blazor.Diagrams
run: 'dotnet pack -p:GeneratePackageOnBuild=false --configuration Release --output ${{ env.NUGET_DIR }}'

- name: Pack Blazor.Diagrams.Algorithms
working-directory: src/Blazor.Diagrams.Algorithms
run: 'dotnet pack -p:GeneratePackageOnBuild=false --configuration Release --output ${{ env.NUGET_DIR }}'

- name: Push
run: >-
for i in $(find ${{ env.NUGET_DIR }} -type f -name "*.nupkg");
do
echo "File: ${i} \n";
dotnet nuget push $i --api-key "${{ secrets.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
done
13 changes: 13 additions & 0 deletions Blazor.Diagrams.sln
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@ Microsoft Visual Studio Solution File, Format Version 12.00
VisualStudioVersion = 17.0.32014.148
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{EE32E278-A887-454E-987D-FFE9E37169FE}"
ProjectSection(SolutionItems) = preProject
src\Directory.Build.props = src\Directory.Build.props
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Blazor.Diagrams.Core", "src\Blazor.Diagrams.Core\Blazor.Diagrams.Core.csproj", "{1A70B637-9EF8-4C25-970E-A681DEC9061C}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{DA819127-3EF6-4EB9-A2DA-BC056B284A50}"
ProjectSection(SolutionItems) = preProject
samples\Directory.Build.props = samples\Directory.Build.props
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wasm", "samples\Wasm\Wasm.csproj", "{A43942BD-FDA0-4E3D-8115-BBE9D0D75DE3}"
EndProject
Expand All @@ -23,16 +29,23 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
.github\workflows\build.yml = .github\workflows\build.yml
CHANGELOG.md = CHANGELOG.md
Directory.Packages.props = Directory.Packages.props
.github\workflows\main.yml = .github\workflows\main.yml
.github\workflows\push.yml = .github\workflows\push.yml
README.md = README.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{CEEAE4C2-CE68-4FC3-9E0F-D4781B91F7F4}"
ProjectSection(SolutionItems) = preProject
tests\Directory.Build.props = tests\Directory.Build.props
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Blazor.Diagrams.Core.Tests", "tests\Blazor.Diagrams.Core.Tests\Blazor.Diagrams.Core.Tests.csproj", "{36B4DCCD-45AB-4338-9224-DDAF386A23A3}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{A9FC9B20-A9F1-4066-8B59-83BD26D3B1C8}"
ProjectSection(SolutionItems) = preProject
docs\Directory.Build.props = docs\Directory.Build.props
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Diagram-Demo", "docs\Diagram-Demo\Diagram-Demo.csproj", "{5F423724-5319-4DCE-B9F2-8B2D7E1FDC17}"
EndProject
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Diagram (3.0.0) - 2024-02-24

### Added

- Support for .NET 8 (thanks to @[SebastianWachsmuth](https://github.com/SebastianWachsmuth))

### Fixed

- Link labels not showing in Firefox
- NRE in the DemoSite's Options page (thanks to @[robertmclaws](https://github.com/robertmclaws))

## Diagrams (3.0.1) - 2023-10-27

### Added
Expand Down
37 changes: 37 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<Project>

<ItemGroup>
<PackageVersion Include="SvgPathProperties" Version="1.1.2" />
<PackageVersion Include="System.Net.Http.Json" Version="8.0.0" />
<PackageVersion Include="GraphShape" Version="1.2.1" />
<PackageVersion Include="MatBlazor" Version="2.10.0" />
<PackageVersion Include="bunit" Version="1.25.3" />
<PackageVersion Include="FluentAssertions" Version="6.12.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageVersion Include="xunit" Version="2.6.3" />
<PackageVersion Include="Moq" Version="[4.18.4]" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.5"/>
<PackageVersion Include="coverlet.collector" Version="6.0.0"/>
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
<PackageVersion Include="Microsoft.AspNetCore.Components" Version="6.0.25" />
<PackageVersion Include="Microsoft.AspNetCore.Components.Web" Version="6.0.25" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.25" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.25" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
<PackageVersion Include="Microsoft.AspNetCore.Components" Version="7.0.14" />
<PackageVersion Include="Microsoft.AspNetCore.Components.Web" Version="7.0.14" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.14" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.14" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageVersion Include="Microsoft.AspNetCore.Components" Version="[8, 9.0.0)" />
<PackageVersion Include="Microsoft.AspNetCore.Components.Web" Version="[8, 9.0.0)" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly" Version="[8,9.0.0)" />
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="[8,9.0.0)" />
</ItemGroup>
</Project>
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Z.Blazor.Diagrams is a fully customizable and extensible all-purpose diagrams li
- Multi purpose
- Touch support
- SVG layer for links/nodes and HTML layer for nodes for maximum customizability
- Links between nodes directly or node ports
- Links between nodes, ports and even other links
- Link routers, path generators, markers and labels
- Panning, Zooming and Zooming to fit a set of nodes
- Multi selection, deletion and region selection
Expand All @@ -48,9 +48,7 @@ Z.Blazor.Diagrams is a fully customizable and extensible all-purpose diagrams li
You can get started very easily & quickly using:

- [Documentation](https://blazor-diagrams.zhaytam.com/)
- [Quick Start](https://blazor-diagrams.zhaytam.com/quickstart)
- [Samples](https://blazor-diagrams.zhaytam.com/demos/simple)
- [Docs/Demos](https://github.com/Blazor-Diagrams/Blazor.Diagrams/tree/master/docs)
- [Installation](https://blazor-diagrams.zhaytam.com/documentation/installation)

### Sample project

Expand Down
4 changes: 0 additions & 4 deletions docs/CustomNodesLinks/CustomNodesLinks.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Blazor.Diagrams.Core\Blazor.Diagrams.Core.csproj" />
<ProjectReference Include="..\..\src\Blazor.Diagrams\Blazor.Diagrams.csproj" />
Expand Down
5 changes: 0 additions & 5 deletions docs/Diagram-Demo/Diagram-Demo.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<RootNamespace>Diagram_Demo</RootNamespace>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Blazor.Diagrams.Core\Blazor.Diagrams.Core.csproj" />
<ProjectReference Include="..\..\src\Blazor.Diagrams\Blazor.Diagrams.csproj" />
Expand Down
8 changes: 8 additions & 0 deletions docs/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
</Project>
8 changes: 2 additions & 6 deletions docs/Layouts/Layouts.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="GraphShape" Version="1.2.0" />
<PackageReference Include="MatBlazor" Version="2.9.0-develop-042" />
<PackageReference Include="GraphShape" />
<PackageReference Include="MatBlazor" />
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 8 additions & 0 deletions samples/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
</Project>
4 changes: 0 additions & 4 deletions samples/ServerSide/ServerSide.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\SharedDemo\SharedDemo.csproj" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion samples/SharedDemo/ReflectionUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ private static IEnumerable<PossibleOption> ExtractPossibleOptions(Type type, str

var typeName = FormatPropertyType(property.PropertyType);
var @default = propertyValue?.ToString();
var description = property.GetCustomAttribute<DescriptionAttribute>().Description;
var description = property.GetCustomAttribute<DescriptionAttribute>()?.Description;
yield return new PossibleOption(name, typeName, @default, description);
}
}
Expand Down
4 changes: 0 additions & 4 deletions samples/SharedDemo/SharedDemo.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components" Version="6.0.25" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.25" />
Expand Down
11 changes: 3 additions & 8 deletions samples/Wasm/Wasm.csproj
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.0" PrivateAssets="all" />
<PackageReference Include="System.Net.Http.Json" Version="6.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" PrivateAssets="all" />
<PackageReference Include="System.Net.Http.Json" />
</ItemGroup>

<ItemGroup>
Expand Down
39 changes: 20 additions & 19 deletions site/Site/Site.csproj
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.8" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.8" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
<_ContentIncludedByDefault Remove="wwwroot\css\bootstrap\bootstrap.min.css" />
<_ContentIncludedByDefault Remove="wwwroot\css\bootstrap\bootstrap.min.css.map" />
<_ContentIncludedByDefault Remove="wwwroot\sample-data\weather.json" />
</ItemGroup>
<ItemGroup>
<_ContentIncludedByDefault Remove="wwwroot\css\bootstrap\bootstrap.min.css" />
<_ContentIncludedByDefault Remove="wwwroot\css\bootstrap\bootstrap.min.css.map" />
<_ContentIncludedByDefault Remove="wwwroot\sample-data\weather.json" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Blazor.Diagrams.Algorithms\Blazor.Diagrams.Algorithms.csproj" />
<ProjectReference Include="..\..\src\Blazor.Diagrams.Core\Blazor.Diagrams.Core.csproj" />
<ProjectReference Include="..\..\src\Blazor.Diagrams\Blazor.Diagrams.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Blazor.Diagrams.Algorithms\Blazor.Diagrams.Algorithms.csproj" />
<ProjectReference Include="..\..\src\Blazor.Diagrams.Core\Blazor.Diagrams.Core.csproj" />
<ProjectReference Include="..\..\src\Blazor.Diagrams\Blazor.Diagrams.csproj" />
</ItemGroup>

</Project>
Loading
Loading