diff --git a/src/Connected.Components.Showcase.Runner/Connected.Components.Showcase.Runner.csproj b/src/Connected.Components.Showcase.Runner/Connected.Components.Showcase.Runner.csproj index aeb38e0..1c7cf1d 100644 --- a/src/Connected.Components.Showcase.Runner/Connected.Components.Showcase.Runner.csproj +++ b/src/Connected.Components.Showcase.Runner/Connected.Components.Showcase.Runner.csproj @@ -1,4 +1,4 @@ - + net7.0 @@ -7,8 +7,8 @@ - - + + diff --git a/src/Connected.Components.Showcase.Runner/Pages/Index.razor b/src/Connected.Components.Showcase.Runner/Pages/Index.razor index 4de7880..4f09ccd 100644 --- a/src/Connected.Components.Showcase.Runner/Pages/Index.razor +++ b/src/Connected.Components.Showcase.Runner/Pages/Index.razor @@ -6,6 +6,12 @@

ValueInt: @inputValueInt.ToString()

ValueText: @inputValueText

+ + Alert!! + + -
- - @if (ShowGlyph) - { -
- -
- } - -
- @ChildContent - @Text -
-
- - @if (ShowCloseButton) - { -
- -
- } - -} diff --git a/src/Connected.Components/Components/Alert.razor.cs b/src/Connected.Components/Components/Alert.razor.cs deleted file mode 100644 index e29579b..0000000 --- a/src/Connected.Components/Components/Alert.razor.cs +++ /dev/null @@ -1,90 +0,0 @@ -using Connected.Utilities; -using Microsoft.AspNetCore.Components; - -namespace Connected.Components; -public partial class Alert -{ - [Parameter] - public bool ShowGlyph { get; set; } = true; - private string Glyph { get; set; } = string.Empty; - - [Parameter] - public bool ShowCloseButton { get; set; } = false; - - private string CloseButton { get; set; } = Icons.Material.Outlined.Close; - - [Parameter] - public bool Closed { get; set; } = false; - - [Parameter, EditorRequired] - public string Text { get; set; } = string.Empty; - - [Parameter] - public Severity Severity { get; set;} = Severity.Normal; - - protected override async Task OnParametersSetAsync() - { - switch (Severity) - { - case Severity.Normal: - { - Glyph = Icons.Material.Outlined.EventNote; - break; - } - case Severity.Info: - { - Glyph = Icons.Material.Outlined.Info; - break; - } - case Severity.Success: - { - Glyph = Icons.Material.Outlined.Check; - break; - } - case Severity.Warning: - { - Glyph = Icons.Material.Outlined.ReportProblem; - break; - } - case Severity.Error: - { - Glyph = Icons.Material.Filled.ErrorOutline; - break; - } - default: - { - Glyph = Icons.Material.Outlined.EventNote; - break; - } - } - await base.OnParametersSetAsync(); - } - - /// - /// Child content of the component. - /// - [Parameter] - public RenderFragment? ChildContent { get; set; } - - private void OnCloseClick() - { - Closed = true; - StateHasChanged(); - } - - [Parameter] - public string ClassList { get; set; } = string.Empty; - /// - /// Contains the default container classlist and the user defined classes. - /// - private string CompiledClassList - { - get - { - return new CssBuilder("alert") - .AddClass($"alert-text-{Severity}") - .AddClass(ClassList) - .Build(); - } - } -} diff --git a/src/Connected.Components/Components/InputNumber.razor b/src/Connected.Components/Components/InputNumber.razor index 4fada3f..1a25c33 100644 --- a/src/Connected.Components/Components/InputNumber.razor +++ b/src/Connected.Components/Components/InputNumber.razor @@ -6,13 +6,13 @@
diff --git a/src/Connected.Components/Components/InputNumber.razor.cs b/src/Connected.Components/Components/InputNumber.razor.cs index 5cf64ef..911d9bb 100644 --- a/src/Connected.Components/Components/InputNumber.razor.cs +++ b/src/Connected.Components/Components/InputNumber.razor.cs @@ -46,11 +46,11 @@ public partial class InputNumber:InputBase where NumberType : INumbe return; if (obj.DeltaY < 0) { - StepDown(); + await StepDown(); } else { - StepUp(); + await StepUp(); } } } diff --git a/src/Connected.Components/Styles/Connected.Components.scss b/src/Connected.Components/Styles/Connected.Components.scss deleted file mode 100644 index 7829ff0..0000000 --- a/src/Connected.Components/Styles/Connected.Components.scss +++ /dev/null @@ -1,4 +0,0 @@ -@import 'globals/_index'; -@import 'layout/_index'; -@import 'components/_index'; -@import 'util/_index'; \ No newline at end of file