Compare commits
No commits in common. "ed15c8f24dfa4fdc99aecdb06f8eaa842973f119" and "38d5bd01499f182bf5612a032d61c6de16619eb6" have entirely different histories.
ed15c8f24d
...
38d5bd0149
@ -42,5 +42,13 @@
|
|||||||
<ProjectReference Include="..\connected.components\Connected.Components.csproj" />
|
<ProjectReference Include="..\connected.components\Connected.Components.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<Target Name="CopyPackages" AfterTargets="Pack">
|
||||||
|
<Copy SourceFiles="$(OutputPath)..\$(PackageId).$(PackageVersion).nupkg" DestinationFolder="$([System.Environment]::GetEnvironmentVariable('LOCAL_NUGET'))" />
|
||||||
|
<Copy SourceFiles="$(OutputPath)..\$(PackageId).$(PackageVersion).snupkg" DestinationFolder="$([System.Environment]::GetEnvironmentVariable('LOCAL_NUGET'))" />
|
||||||
|
</Target>
|
||||||
|
|
||||||
|
<Target Name="UploadLocalPackages" AfterTargets="CopyPackages">
|
||||||
|
<Exec Command="dotnet nuget push -s LocalNugetServer $(OutputPath)..\$(PackageId).$(PackageVersion).nupkg --api-key $([System.Environment]::GetEnvironmentVariable('LOCAL_NUGET_SERVER_TOKEN'))" IgnoreExitCode="true"></Exec>
|
||||||
|
<Exec Command="dotnet nuget push -s LocalNugetServer $(OutputPath)..\$(PackageId).$(PackageVersion).snupkg --api-key $([System.Environment]::GetEnvironmentVariable('LOCAL_NUGET_SERVER_TOKEN'))" IgnoreExitCode="true"></Exec>
|
||||||
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -96,10 +96,6 @@ public partial class Button
|
|||||||
[Parameter]
|
[Parameter]
|
||||||
public string Style { get; set; } = string.Empty;
|
public string Style { get; set; } = string.Empty;
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Events
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Button click event.
|
/// Button click event.
|
||||||
/// Options: any MouseEventCallback event
|
/// Options: any MouseEventCallback event
|
||||||
@ -107,9 +103,13 @@ public partial class Button
|
|||||||
[Parameter]
|
[Parameter]
|
||||||
public EventCallback<MouseEventArgs> OnClick { get; set; }
|
public EventCallback<MouseEventArgs> OnClick { get; set; }
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Events
|
||||||
protected async Task Click(MouseEventArgs e)
|
protected async Task Click(MouseEventArgs e)
|
||||||
{
|
{
|
||||||
await OnClick.InvokeAsync(e);
|
await OnClick.InvokeAsync(e);
|
||||||
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@ -146,4 +146,5 @@ public partial class Button
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
<br/>
|
||||||
<div style="width:@WidthString; height:@HeightString; overflow:hidden">
|
<svg height="@Height" width="@Width" style="fill:@Color;" class="@GlyphClassList" @onclick="@OnClick">
|
||||||
<svg viewBox="0 0 24 24" style="fill:@Color;" class="@GlyphClassList" @onclick="@OnClick">
|
|
||||||
@((MarkupString)SVG)
|
@((MarkupString)SVG)
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
|
@ -13,25 +13,9 @@ namespace Connected.Components
|
|||||||
public string Color { get; set; } = "#000000";
|
public string Color { get; set; } = "#000000";
|
||||||
|
|
||||||
[Parameter]
|
[Parameter]
|
||||||
public int Width { get; set; } = 24;
|
public int Width { get; set; } = 25;
|
||||||
[Parameter]
|
[Parameter]
|
||||||
public int Height { get; set; } = 24;
|
public int Height { get; set; } = 25;
|
||||||
|
|
||||||
private string WidthString
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return Width.ToString() + "px";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private string HeightString
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return Width.ToString() + "px";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[Parameter]
|
[Parameter]
|
||||||
public string Class { get; set; } = string.Empty;
|
public string Class { get; set; } = string.Empty;
|
||||||
@ -48,7 +32,7 @@ namespace Connected.Components
|
|||||||
|
|
||||||
[Parameter]
|
[Parameter]
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Glyph click event.
|
/// Button click event.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public EventCallback<MouseEventArgs> Click { get; set; }
|
public EventCallback<MouseEventArgs> Click { get; set; }
|
||||||
protected async Task OnClick(MouseEventArgs e)
|
protected async Task OnClick(MouseEventArgs e)
|
||||||
|
@ -11,13 +11,11 @@
|
|||||||
disabled="@Disabled"
|
disabled="@Disabled"
|
||||||
readonly="@Readonly"
|
readonly="@Readonly"
|
||||||
@onmousewheel="@OnMouseWheel"
|
@onmousewheel="@OnMouseWheel"
|
||||||
@onwheel="@OnMouseWheel"
|
|
||||||
@oninput=@ChangeValueAsync
|
@oninput=@ChangeValueAsync
|
||||||
@bind-value="@Value"
|
@bind-value="@_value"
|
||||||
@attributes="@InputAttributes">
|
@attributes="@InputAttributes">
|
||||||
</input>
|
</input>
|
||||||
|
|
||||||
|
|
||||||
<span class="highlight"></span>
|
<span class="highlight"></span>
|
||||||
<span class="bar"></span>
|
<span class="bar"></span>
|
||||||
@if (IsLabel)
|
@if (IsLabel)
|
@ -3,10 +3,9 @@ using Connected.Utilities;
|
|||||||
using Microsoft.AspNetCore.Components;
|
using Microsoft.AspNetCore.Components;
|
||||||
using Microsoft.AspNetCore.Components.Web;
|
using Microsoft.AspNetCore.Components.Web;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using static Connected.Colors;
|
|
||||||
|
|
||||||
namespace Connected.Components;
|
namespace Connected.Components;
|
||||||
public partial class NumberInput<NumberType>:InputBase where NumberType : INumber<NumberType>
|
public partial class InputNumber<NumberType>:InputBase where NumberType : INumber<NumberType>
|
||||||
{
|
{
|
||||||
private double _step =1;
|
private double _step =1;
|
||||||
[Parameter]
|
[Parameter]
|
||||||
@ -41,7 +40,7 @@ public partial class NumberInput<NumberType>:InputBase where NumberType : INumbe
|
|||||||
}
|
}
|
||||||
protected async Task OnMouseWheel(WheelEventArgs obj)
|
protected async Task OnMouseWheel(WheelEventArgs obj)
|
||||||
{
|
{
|
||||||
if (DisableMouseWheel==false)
|
if (!DisableMouseWheel)
|
||||||
{
|
{
|
||||||
if (!obj.ShiftKey || Disabled || Readonly)
|
if (!obj.ShiftKey || Disabled || Readonly)
|
||||||
return;
|
return;
|
||||||
@ -56,12 +55,19 @@ public partial class NumberInput<NumberType>:InputBase where NumberType : INumbe
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private NumberType _value;
|
||||||
|
|
||||||
[Parameter]
|
[Parameter]
|
||||||
public NumberType Value
|
public NumberType Value
|
||||||
{
|
{
|
||||||
get;
|
get
|
||||||
set;
|
{
|
||||||
|
return _value;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
_value = AdjustDecimalPlaces(value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Parameter]
|
[Parameter]
|
@ -41,7 +41,7 @@
|
|||||||
}
|
}
|
||||||
<span class="input-glyph-wraper">
|
<span class="input-glyph-wraper">
|
||||||
<span class="input-glyph">
|
<span class="input-glyph">
|
||||||
@if (Clearable && !string.IsNullOrEmpty(Value))
|
@if (Clearable && Value.ToString().Length>0)
|
||||||
{
|
{
|
||||||
<span class="input-glyph button" @onclick="Clear">
|
<span class="input-glyph button" @onclick="Clear">
|
||||||
<Glyph SVG="@Icons.Material.Rounded.Dangerous" />
|
<Glyph SVG="@Icons.Material.Rounded.Dangerous" />
|
@ -2,7 +2,7 @@
|
|||||||
using Microsoft.AspNetCore.Components;
|
using Microsoft.AspNetCore.Components;
|
||||||
|
|
||||||
namespace Connected.Components;
|
namespace Connected.Components;
|
||||||
public partial class TextInput: InputBase
|
public partial class InputText: InputBase
|
||||||
{
|
{
|
||||||
|
|
||||||
[Parameter]
|
[Parameter]
|
||||||
@ -31,7 +31,7 @@ public partial class TextInput: InputBase
|
|||||||
|
|
||||||
|
|
||||||
[Parameter]
|
[Parameter]
|
||||||
public string Value { get; set; } = string.Empty;
|
public string Value { get; set; }
|
||||||
|
|
||||||
private string inputType
|
private string inputType
|
||||||
{
|
{
|
||||||
@ -42,6 +42,7 @@ public partial class TextInput: InputBase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[Parameter]
|
[Parameter]
|
||||||
public EventCallback<string> ValueChanged { get; set; }
|
public EventCallback<string> ValueChanged { get; set; }
|
||||||
|
|
@ -20,6 +20,13 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="compilerconfig.json" />
|
<None Include="compilerconfig.json" />
|
||||||
|
<None Include="ComponentsN\ToggleButton.razor" />
|
||||||
|
<None Include="ComponentsN\Button.razor" />
|
||||||
|
<None Include="ComponentsN\Glyph.razor" />
|
||||||
|
<None Include="ComponentsN\Link.razor" />
|
||||||
|
<None Include="ComponentsN\InputDate.razor" />
|
||||||
|
<None Include="ComponentsN\InputNumber.razor" />
|
||||||
|
<None Include="ComponentsN\InputText.razor" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@ -32,6 +39,9 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Folder Include="Interfaces\" />
|
||||||
|
<Folder Include="Services\" />
|
||||||
|
<Folder Include="wwwroot\" />
|
||||||
<None Include="..\..\LICENSE">
|
<None Include="..\..\LICENSE">
|
||||||
<Pack>True</Pack>
|
<Pack>True</Pack>
|
||||||
<PackagePath>\</PackagePath>
|
<PackagePath>\</PackagePath>
|
||||||
@ -76,11 +86,19 @@
|
|||||||
<Delete Files="./Styles/Connected.Components.min.css" />
|
<Delete Files="./Styles/Connected.Components.min.css" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
|
<!--Dont Include in build output-->
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Remove="compilerconfig.json" />
|
||||||
|
<Content Remove="excubowebcompiler.json" />
|
||||||
|
<Content Remove="wwwroot/DoNotRemove.txt" />
|
||||||
|
<!--macOS hidden file (causes problems with dotnet pack)-->
|
||||||
|
<Content Remove="**/*/.DS_Store" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Watch Include="**/*.scss" />
|
<Watch Include="**/*.scss" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Watch Remove="Styles\Connected.Components.scss" />
|
<Watch Remove="Styles\Connected.Components.scss" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user