Skip to content

Commit 89da4f1

Browse files
committed
Add project files.
1 parent cd54f4e commit 89da4f1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+3157
-0
lines changed

CodeBeam.MudExtensions.sln

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.3.32922.545
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeBeam.MudExtensions", "CodeBeam.MudExtensions\CodeBeam.MudExtensions.csproj", "{542668A8-79D0-4697-9861-87EC5266EA65}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ComponentViewer", "ComponentViewer\ComponentViewer.csproj", "{F1B30028-B255-4668-81E8-C7D25ECD33A1}"
9+
EndProject
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ComponentViewer.Wasm", "ComponentViewer.Wasm\ComponentViewer.Wasm.csproj", "{924E72FF-1B0D-4465-9805-AB7B9D114113}"
11+
EndProject
12+
Global
13+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
14+
Debug|Any CPU = Debug|Any CPU
15+
Release|Any CPU = Release|Any CPU
16+
EndGlobalSection
17+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18+
{542668A8-79D0-4697-9861-87EC5266EA65}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19+
{542668A8-79D0-4697-9861-87EC5266EA65}.Debug|Any CPU.Build.0 = Debug|Any CPU
20+
{542668A8-79D0-4697-9861-87EC5266EA65}.Release|Any CPU.ActiveCfg = Release|Any CPU
21+
{542668A8-79D0-4697-9861-87EC5266EA65}.Release|Any CPU.Build.0 = Release|Any CPU
22+
{F1B30028-B255-4668-81E8-C7D25ECD33A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23+
{F1B30028-B255-4668-81E8-C7D25ECD33A1}.Debug|Any CPU.Build.0 = Debug|Any CPU
24+
{F1B30028-B255-4668-81E8-C7D25ECD33A1}.Release|Any CPU.ActiveCfg = Release|Any CPU
25+
{F1B30028-B255-4668-81E8-C7D25ECD33A1}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{924E72FF-1B0D-4465-9805-AB7B9D114113}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{924E72FF-1B0D-4465-9805-AB7B9D114113}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{924E72FF-1B0D-4465-9805-AB7B9D114113}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{924E72FF-1B0D-4465-9805-AB7B9D114113}.Release|Any CPU.Build.0 = Release|Any CPU
30+
EndGlobalSection
31+
GlobalSection(SolutionProperties) = preSolution
32+
HideSolutionNode = FALSE
33+
EndGlobalSection
34+
GlobalSection(ExtensibilityGlobals) = postSolution
35+
SolutionGuid = {F4ABECB5-60B3-4248-83F3-5BAB1881D9B6}
36+
EndGlobalSection
37+
EndGlobal
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<Project Sdk="Microsoft.NET.Sdk.Razor">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net6.0</TargetFramework>
5+
<Nullable>disable</Nullable>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Version>6.0.0</Version>
8+
<Title>CodeBeam.MudBlazor.Extensions</Title>
9+
<Authors>CodeBeam</Authors>
10+
<Company>CodeBeam</Company>
11+
<Description>MudBlazor extensions from contributors.</Description>
12+
<Copyright>CodeBeam OpenSource MIT</Copyright>
13+
<PackageIcon>CodeBeam Purple.jpg</PackageIcon>
14+
</PropertyGroup>
15+
16+
<ItemGroup>
17+
<SupportedPlatform Include="browser" />
18+
</ItemGroup>
19+
20+
<ItemGroup>
21+
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.9" />
22+
<PackageReference Include="MudBlazor" Version="6.0.16" />
23+
</ItemGroup>
24+
25+
<ItemGroup>
26+
<None Include="..\..\..\..\Desktop\Yazılım - Tasarım\CodeBeam\CodeBeam Purple.jpg">
27+
<Pack>True</Pack>
28+
<PackagePath>\</PackagePath>
29+
</None>
30+
</ItemGroup>
31+
32+
</Project>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@namespace MudExtensions
2+
@inherits MudComponentBase
3+
4+
<div @attributes="UserAttributes" class="@Classname" style="@Stylename"
5+
@onclick="OnClickHandler"
6+
@onclick:stopPropagation="OnClickStopPropagation"
7+
@oncontextmenu="OnContextMenu"
8+
@oncontextmenu:preventDefault="OnContextMenuPreventDefault"
9+
@oncontextmenu:stopPropagation="OnContextMenuStopPropagation">
10+
11+
@ChildContent
12+
</div>
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
// Copyright (c) CodeBeam 2021
2+
// CodeBeam.MudExtensions licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System;
6+
using System.Threading.Tasks;
7+
using Microsoft.AspNetCore.Components;
8+
using Microsoft.AspNetCore.Components.Web;
9+
using MudBlazor;
10+
using MudBlazor.Extensions;
11+
using MudBlazor.Utilities;
12+
13+
namespace MudExtensions
14+
{
15+
public partial class MudPage : MudComponentBase
16+
{
17+
protected string Classname =>
18+
new CssBuilder("mud-page")
19+
.AddClass($"mud-page-column-{Column.ToString()}")
20+
.AddClass($"mud-page-row-{Row.ToString()}")
21+
.AddClass($"mud-page-height-{FullScreen.ToDescriptionString()}")
22+
.AddClass(Class)
23+
.Build();
24+
25+
protected string Stylename =>
26+
new StyleBuilder()
27+
.AddStyle("height", $"{Height}", !String.IsNullOrEmpty(Height))
28+
.AddStyle(Style)
29+
.Build();
30+
31+
[Parameter]
32+
[Category(CategoryTypes.Item.Appearance)]
33+
public RenderFragment ChildContent { get; set; }
34+
35+
[Parameter]
36+
[Category(CategoryTypes.Item.Appearance)]
37+
public int Column { get; set; } = 4;
38+
39+
[Parameter]
40+
[Category(CategoryTypes.Item.Appearance)]
41+
public int Row { get; set; } = 4;
42+
43+
[Parameter]
44+
[Category(CategoryTypes.Item.Appearance)]
45+
public FullScreen FullScreen { get; set; } = FullScreen.None;
46+
47+
[Parameter]
48+
[Category(CategoryTypes.Item.Appearance)]
49+
public string Height { get; set; }
50+
51+
[Parameter]
52+
[Category(CategoryTypes.Item.Behavior)]
53+
public EventCallback<MouseEventArgs> OnClick { get; set; }
54+
55+
[Parameter]
56+
[Category(CategoryTypes.Item.Behavior)]
57+
public bool OnClickStopPropagation { get; set; }
58+
59+
[Parameter]
60+
[Category(CategoryTypes.Item.Behavior)]
61+
public EventCallback OnContextMenu { get; set; }
62+
63+
[Parameter]
64+
[Category(CategoryTypes.Item.Behavior)]
65+
public bool OnContextMenuPreventDefault { get; set; }
66+
67+
[Parameter]
68+
[Category(CategoryTypes.Item.Behavior)]
69+
public bool OnContextMenuStopPropagation { get; set; }
70+
71+
protected async Task OnClickHandler(MouseEventArgs ev)
72+
{
73+
await OnClick.InvokeAsync(ev);
74+
}
75+
}
76+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@namespace MudExtensions
2+
@inherits MudComponentBase
3+
4+
<div @attributes="UserAttributes" class="@Classname" style="@Style"
5+
@onclick="OnClickHandler"
6+
@onclick:stopPropagation="OnClickStopPropagation"
7+
@oncontextmenu="OnContextMenu"
8+
@oncontextmenu:preventDefault="OnContextMenuPreventDefault"
9+
@oncontextmenu:stopPropagation="OnContextMenuStopPropagation">
10+
11+
@ChildContent
12+
</div>
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
// Copyright (c) CodeBeam 2021
2+
// CodeBeam.MudExtensions licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System;
6+
using System.Threading.Tasks;
7+
using Microsoft.AspNetCore.Components;
8+
using Microsoft.AspNetCore.Components.Web;
9+
using MudBlazor;
10+
using MudBlazor.Utilities;
11+
12+
namespace MudExtensions
13+
{
14+
public partial class MudSection : MudComponentBase
15+
{
16+
protected string Classname =>
17+
new CssBuilder("mud-section")
18+
.AddClass($"mud-section-col-start-{Column.ToString()}")
19+
.AddClass($"mud-section-col-end-{(Column + ColSpan).ToString()}")
20+
.AddClass($"mud-section-row-start-{Row.ToString()}")
21+
.AddClass($"mud-section-row-end-{(Row + RowSpan).ToString()}")
22+
.AddClass(Class)
23+
.Build();
24+
25+
[Parameter]
26+
[Category(CategoryTypes.Item.Appearance)]
27+
public RenderFragment ChildContent { get; set; }
28+
29+
[Parameter]
30+
[Category(CategoryTypes.Item.Appearance)]
31+
public int Column { get; set; } = 1;
32+
33+
[Parameter]
34+
[Category(CategoryTypes.Item.Appearance)]
35+
public int ColSpan { get; set; } = 1;
36+
37+
[Parameter]
38+
[Category(CategoryTypes.Item.Appearance)]
39+
public int Row { get; set; } = 1;
40+
41+
[Parameter]
42+
[Category(CategoryTypes.Item.Appearance)]
43+
public int RowSpan { get; set; } = 1;
44+
45+
[Parameter]
46+
[Category(CategoryTypes.Item.Behavior)]
47+
public EventCallback<MouseEventArgs> OnClick { get; set; }
48+
49+
[Parameter]
50+
[Category(CategoryTypes.Item.Behavior)]
51+
public bool OnClickStopPropagation { get; set; }
52+
53+
[Parameter]
54+
[Category(CategoryTypes.Item.Behavior)]
55+
public EventCallback OnContextMenu { get; set; }
56+
57+
[Parameter]
58+
[Category(CategoryTypes.Item.Behavior)]
59+
public bool OnContextMenuPreventDefault { get; set; }
60+
61+
[Parameter]
62+
[Category(CategoryTypes.Item.Behavior)]
63+
public bool OnContextMenuStopPropagation { get; set; }
64+
65+
protected async Task OnClickHandler(MouseEventArgs ev)
66+
{
67+
await OnClick.InvokeAsync(ev);
68+
}
69+
}
70+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
@namespace MudExtensions
2+
@typeparam T
3+
@inherits MudDebouncedInput<T>
4+
5+
<CascadingValue Name="Standalone" Value="@StandaloneEx" IsFixed="true">
6+
<MudInputControl Label="@Label"
7+
Variant="@Variant"
8+
HelperText="@HelperText"
9+
HelperTextOnFocus="@HelperTextOnFocus"
10+
CounterText="@GetCounterText()"
11+
FullWidth="@FullWidth"
12+
Class="@Classname"
13+
Error="@HasErrors"
14+
ErrorText="@GetErrorText()"
15+
ErrorId="@ErrorId"
16+
Disabled="@Disabled"
17+
Margin="@Margin"
18+
Required="@Required"
19+
ForId="@FieldId">
20+
<InputContent>
21+
<CascadingValue Name="Standalone" Value="false" IsFixed="true">
22+
<MudInput T="string"
23+
@ref="InputReference"
24+
@attributes="UserAttributes"
25+
InputType="@_passwordInput"
26+
Lines="@Lines"
27+
Style="@Style"
28+
Variant="@Variant"
29+
TextUpdateSuppression="@TextUpdateSuppression"
30+
Value="@Text"
31+
ValueChanged="(s) => SetTextAsync(s)"
32+
Placeholder="@Placeholder"
33+
Disabled=@Disabled
34+
DisableUnderLine="@DisableUnderLine"
35+
ReadOnly="@ReadOnly"
36+
MaxLength="@MaxLength"
37+
Adornment="MudBlazor.Adornment.End"
38+
AdornmentIcon="@_passwordIcon"
39+
AdornmentColor="@AdornmentColor"
40+
AdornmentAriaLabel="@AdornmentAriaLabel"
41+
IconSize="@IconSize"
42+
OnAdornmentClick="AdornmentClick"
43+
Error="@Error"
44+
ErrorId="@ErrorId"
45+
Immediate="@Immediate"
46+
Margin="@Margin"
47+
OnBlur="@OnBlurred"
48+
OnKeyDown="@InvokeKeyDown"
49+
OnInternalInputChanged="OnChange"
50+
OnKeyPress="@InvokeKeyPress"
51+
OnKeyUp="@InvokeKeyUp"
52+
KeyDownPreventDefault="KeyDownPreventDefault"
53+
KeyPressPreventDefault="KeyPressPreventDefault"
54+
KeyUpPreventDefault="KeyUpPreventDefault"
55+
HideSpinButtons="true"
56+
Clearable="@Clearable"
57+
OnClearButtonClick="@OnClearButtonClick"
58+
Pattern="@Pattern"/>
59+
</CascadingValue>
60+
</InputContent>
61+
</MudInputControl>
62+
</CascadingValue>

0 commit comments

Comments
 (0)