-
-}
+}
\ No newline at end of file
diff --git a/src/Connected.Components/Components/DatePicker.razor.cs b/src/Connected.Components/Components/DatePicker.razor.cs
index 66f7905..6be2192 100644
--- a/src/Connected.Components/Components/DatePicker.razor.cs
+++ b/src/Connected.Components/Components/DatePicker.razor.cs
@@ -1,5 +1,4 @@
-using Connected.Utilities;
-using Microsoft.AspNetCore.Components;
+using Microsoft.AspNetCore.Components;
namespace Connected.Components;
public partial class DatePicker
@@ -18,6 +17,8 @@ public partial class DatePicker
[Parameter]
public DateTime SelectedDate { get; set; } = DateTime.Today;
+ private DateTime _InitialDate { get; set; }
+
[Parameter]
public DateTime? SelectedEndDate { get; set; } = null;
@@ -32,6 +33,9 @@ public partial class DatePicker
[Parameter]
public bool UseDateRange { get; set; } = false;
+ [Parameter]
+ public bool ShowBottomBar { get; set; } = false;
+
[Parameter]
public string Format { get; set; } = "dd.MM.yyyy";
@@ -78,48 +82,6 @@ public partial class DatePicker
StateHasChanged();
}
- private string DayNamesRowClass
- {
- get
- {
- return new CssBuilder()
- .AddClass("chip-leading-icon")
- .AddClass("d-inline-block")
- .AddClass("m-1")
- .AddClass("bg-danger")
- .AddClass("text-small")
- .AddClass("text-white")
- .Build();
- }
- }
- private string ChipFirstRowStyle
- {
- get
- {
- return new StyleBuilder()
- .AddStyle("width", "30px")
- .AddStyle("height", "30px")
- .AddStyle("text-align", "center")
- .Build();
- }
- }
- /*
- @for (int i=0;i<7; i++)
- {
-
@calendarStart.AddDays(i).ToString("ddd").Substring(0,1)
- }
- @while (calendarStart.CompareTo(calendarEnd) < 0)
- {
-
SetDate(calendarStart))">@calendarStart.Day.ToString()
- @if (calendarStart.DayOfWeek.Equals(DayOfWeek.Sunday))
- {
-
- }
- calendarStart = calendarStart.AddDays(1);
- }
-
- */
-
public void SetStartStop()
{
CalendarStart = SelectedDate;
@@ -150,7 +112,7 @@ public partial class DatePicker
}
}
- public string DateChipStyle(DateTime date)
+ public string DateChipClass(DateTime date)
{
string result = "";
if (date.Month.CompareTo(SelectedDate.Month) < 0 || date.Month.CompareTo(SelectedDate.Month) > 0) return "d-none";
@@ -168,38 +130,66 @@ public partial class DatePicker
public string MonthChipClass(int month)
{
if (month.CompareTo(SelectedDate.Month) == 0)
- return "bg-info text-light";
+ return "active";
else
- return "bg-core text-dark";
+ return "";
}
public string YearChipClass(int year)
{
if (year.CompareTo(SelectedDate.Year) == 0)
- return "bg-info text-light";
+ return "active";
else
- return "bg-core text-dark";
+ return "";
}
protected override async Task OnInitializedAsync()
{
SelectedDate = DateTime.Today;
+ _InitialDate=SelectedDate;
SetStartStop();
loaded = true;
await base.OnInitializedAsync();
}
- private string NavBarClass
+ private async Task ClosePicker(bool resetDate=true)
{
- get
+ if (resetDate)
+ SelectedDate=_InitialDate;
+ Shown = false;
+ await SelectedDateChanged.InvokeAsync(SelectedDate);
+ }
+
+ private void TogglePicker()
+ {
+ _InitialDate=SelectedDate;
+ Shown = !Shown;
+ }
+
+ private async Task NavBarClick(bool forward = true)
+ {
+ int multiplier = 1;
+ if (!forward) multiplier = -1;
+ switch (Selecting)
{
- return new CssBuilder("text-justify")
- .AddClass("text-md-justify")
- //.AddClass("bg-warning")
- .AddClass("text-small")
- .AddClass("text-dark")
- .Build();
+ case Selecting.Years:
+ {
+ SelectedDate=SelectedDate.AddYears(8 * multiplier);
+ break;
+ }
+ case Selecting.Months:
+ {
+ SelectedDate = SelectedDate.AddYears(1 * multiplier);
+ break;
+ }
+ case Selecting.Days:
+ {
+ SelectedDate = SelectedDate.AddMonths(1*multiplier);
+ break;
+ }
}
+ SetStartStop();
+ await InvokeAsync(StateHasChanged);
}
}
diff --git a/src/Connected.Components/Components/FormWizard.razor b/src/Connected.Components/Components/FormWizard.razor
index b0ef625..661bed1 100644
--- a/src/Connected.Components/Components/FormWizard.razor
+++ b/src/Connected.Components/Components/FormWizard.razor
@@ -6,7 +6,7 @@
-
+
diff --git a/src/Connected.Components/Components/FormWizard.razor.cs b/src/Connected.Components/Components/FormWizard.razor.cs
index 84e95fc..ba28428 100644
--- a/src/Connected.Components/Components/FormWizard.razor.cs
+++ b/src/Connected.Components/Components/FormWizard.razor.cs
@@ -1,8 +1,7 @@
using Connected.Enums;
using Connected.Utilities;
using Microsoft.AspNetCore.Components;
-using System.ComponentModel.DataAnnotations;
-using System.Text;
+using System.Reflection.Metadata;
namespace Connected.Components;
public partial class FormWizard
@@ -16,11 +15,26 @@ public partial class FormWizard
[Parameter]
public RenderFragment? ChildContent { get; set; }
+ ///
+ /// Steps of type FormWizardStep
+ ///
[Parameter]
public List
Steps { get; set; } = new();
- [Parameter, EditorRequired]
- public string Id { get; set; }
+ ///
+ /// EventCallback for 'Finish' button click
+ ///
+ [Parameter]
+ public EventCallback OnFinishedClick { get; set; }
+
+ ///
+ /// EventCallback for 'Cancel' button click
+ ///
+ [Parameter]
+ public EventCallback OnCancelClick { get; set; }
+
+ [Parameter]
+ public string Id { get; set; } = Guid.NewGuid().ToString();
private string NextBtnText = "Next";
private string PreviousBtnText = "Previous";
@@ -30,10 +44,10 @@ public partial class FormWizard
private FinishedState FinishedState { get; set; } = FinishedState.Unfinished;
[Parameter]
- public int ActiveIndex
+ public int ActiveIndex
{
- get
- {
+ get
+ {
return _activeStepIndex;
}
set
@@ -42,7 +56,7 @@ public partial class FormWizard
{
_activeStepIndex = value;
}
- }
+ }
}
private int _activeStepIndex = 0;
@@ -50,7 +64,7 @@ public partial class FormWizard
{
get
{
- if (ActiveIndex>0)
+ if (ActiveIndex > 0)
return ActiveIndex - 1;
return ActiveIndex;
}
@@ -62,10 +76,11 @@ public partial class FormWizard
{
try
{
- if (ActiveIndex < StepCount-1)
+ if (ActiveIndex < StepCount - 1)
return ActiveIndex + 1;
return ActiveIndex;
- } catch
+ }
+ catch
{
return ActiveIndex;
}
@@ -80,38 +95,17 @@ public partial class FormWizard
}
}
- private void NextSlide()
+ private async Task NextSlide()
{
if (NextBtnText.ToLower().Equals("finish"))
{
FinishedState = FinishedState.Finished;
Steps[ActiveIndex].Completed = true;
WizardFinished = true;
+ await OnFinishedClick.InvokeAsync();
}
if (FinishedState.Equals(FinishedState.Unfinished))
{
- /*if (ActiveIndex < StepCount)
- {
- Steps[ActiveIndex].Completed = true;
- ResetValuesForChild(ActiveIndex);
- if (ActiveIndex < StepCount)
- ResetValuesForChild(NextIndex);
- if (ActiveIndex > 0)
- ResetValuesForChild(PreviousIndex);
-
- ActiveIndex = NextIndex;
- Steps[ActiveIndex].Active = true;
- Steps[PreviousIndex].IsPrevious = true;
- if (ActiveIndex != NextIndex)
- Steps[NextIndex].IsNext = true;
- else Steps[NextIndex].IsNext = false;
-
- if (ActiveIndex == NextIndex)
- NextBtnText = "Finish";
- else
- NextBtnText = "Next";
- StateHasChanged();
- }*/
Steps[ActiveIndex].Completed = true;
Steps[ActiveIndex].Active = false;
Steps[PreviousIndex].IsPrevious = false;
@@ -132,7 +126,6 @@ public partial class FormWizard
{
if (ActiveIndex > 0)
{
- //Steps[ActiveIndex].Completed = true;
Steps[ActiveIndex].Active = false;
Steps[PreviousIndex].IsPrevious = false;
Steps[ActiveIndex].IsNext = false;
@@ -146,13 +139,18 @@ public partial class FormWizard
else
NextBtnText = "Next";
}
- if (ActiveIndex==0)
+ if (ActiveIndex == 0)
{
ResetAllChildren();
Steps[ActiveIndex].Active = true;
}
}
+ private async Task CancelClick()
+ {
+ await OnCancelClick.InvokeAsync();
+ }
+
[Parameter]
public string Class { get; set; } = string.Empty;
@@ -201,21 +199,22 @@ public partial class FormWizard
ResetAllChildren();
Steps[ActiveIndex].Active = true;
- if (ActiveIndex!=0)
+ if (ActiveIndex != 0)
{
Steps[ActiveIndex].IsNext = true;
- Steps[PreviousIndex].IsPrevious= true;
+ Steps[PreviousIndex].IsPrevious = true;
}
StateHasChanged();
}
- protected override async Task OnParametersSetAsync()
+ /*protected override async Task OnParametersSetAsync()
{
- if (Steps is not null)
- Steps.Clear();
+ if (Steps is null) Steps = new();
+ Steps.Clear();
+ InitializeSteps();
await base.OnParametersSetAsync();
- }
+ }*/
protected override async Task OnAfterRenderAsync(bool firstRender)
{
diff --git a/src/Connected.Components/Components/FormWizardStep.razor.cs b/src/Connected.Components/Components/FormWizardStep.razor.cs
index 2c64912..f3defdd 100644
--- a/src/Connected.Components/Components/FormWizardStep.razor.cs
+++ b/src/Connected.Components/Components/FormWizardStep.razor.cs
@@ -9,8 +9,11 @@ public partial class FormWizardStep
[CascadingParameter]
public FormWizard Parent { get; set; }
- [Parameter, EditorRequired]
- public string Name { get; set; }
+ ///
+ /// Unique name of the step (used for properly identifying steps)
+ ///
+ [Parameter]
+ public string? Id { get; set; } = Guid.NewGuid().ToString();
///
/// Text shown inside the button
@@ -46,7 +49,7 @@ public partial class FormWizardStep
get
{
return new CssBuilder("dot")
- .AddClass("completed",Completed)
+ .AddClass("completed", Completed)
.AddClass("next", Active)
.Build();
}
@@ -62,7 +65,7 @@ public partial class FormWizardStep
get
{
return new StyleBuilder()
- .AddStyle("display","none", (!Active && !IsNext && !IsPrevious)) //Workarround for more than 2 steps where steps didnt hide after
+ .AddStyle("display", "none", (!Active && !IsNext && !IsPrevious)) //Workarround for more than 2 steps where steps didnt hide after
.AddStyle(Style)
.Build();
}
@@ -88,10 +91,17 @@ public partial class FormWizardStep
#region Lifecycle
+ private bool ItemExists()
+ {
+ if (Parent.Steps.Where(step => step.Id.Equals(this.Id)).Count() > 0) return true;
+ return false;
+ }
+
- protected override async Task OnInitializedAsync()
+ protected override async Task OnParametersSetAsync()
{
- Parent.Steps.Add(this);
+ if (!ItemExists())
+ Parent.Steps.Add(this);
await base.OnInitializedAsync();
}
diff --git a/src/Connected.Components/Components/Grid.razor b/src/Connected.Components/Components/Grid.razor
new file mode 100644
index 0000000..42bb7aa
--- /dev/null
+++ b/src/Connected.Components/Components/Grid.razor
@@ -0,0 +1,5 @@
+
+
+ @ChildContent
+
+
diff --git a/src/Connected.Components/Components/Grid.razor.cs b/src/Connected.Components/Components/Grid.razor.cs
new file mode 100644
index 0000000..563db2a
--- /dev/null
+++ b/src/Connected.Components/Components/Grid.razor.cs
@@ -0,0 +1,41 @@
+using Connected.Utilities;
+using Microsoft.AspNetCore.Components;
+
+namespace Connected.Components;
+public partial class Grid: ComponentBase
+{
+ public List Rows { get; set; } = new();
+
+ [Parameter]
+ public RenderFragment? ChildContent { get; set; }
+
+ [Parameter]
+ public bool Dense { get; set; } = true;
+
+ [Parameter]
+ public bool ContainsImage { get; set; } = true;
+
+ [Parameter]
+ public bool ShowSelect { get; set; } = true;
+
+ [Parameter]
+ public bool Collapsable { get; set; } = true;
+
+ [Parameter]
+ public string Class { get; set; } = string.Empty;
+
+ private string GridClass
+ {
+ get
+ {
+ return new CssBuilder("data-grid")
+ .AddClass("dense", Dense)
+ .AddClass("image", ContainsImage)
+ .AddClass("select", ShowSelect)
+ .AddClass("collapse", Collapsable)
+ .AddClass(Class)
+ .Build();
+ }
+ }
+
+}
diff --git a/src/Connected.Components/Components/GridRow.razor b/src/Connected.Components/Components/GridRow.razor
new file mode 100644
index 0000000..292cee0
--- /dev/null
+++ b/src/Connected.Components/Components/GridRow.razor
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ @ChildContent
+
+
+
+
+
+
+
diff --git a/src/Connected.Components/Components/GridRow.razor.cs b/src/Connected.Components/Components/GridRow.razor.cs
new file mode 100644
index 0000000..edcb6d5
--- /dev/null
+++ b/src/Connected.Components/Components/GridRow.razor.cs
@@ -0,0 +1,58 @@
+using Connected.Utilities;
+using Microsoft.AspNetCore.Components;
+
+namespace Connected.Components;
+public partial class GridRow : ComponentBase
+{
+
+ [CascadingParameter]
+ public Grid Parent { get; set; }
+
+ public List Children { get; set; }
+
+ [Parameter]
+ public RenderFragment? ChildContent { get; set; }
+
+ [Parameter]
+ public bool CollapsedItemShown { get; set; } = false;
+
+ private void ToggleNav()
+ {
+ CollapsedItemShown = !CollapsedItemShown;
+ }
+
+ [Parameter]
+ public string Class { get; set; } = string.Empty;
+
+ [Parameter]
+ public GridRowTemplate? Template { get; set; } = null;
+
+ private string GridRowClass
+ {
+ get
+ {
+ return new CssBuilder("data-grid-row-content")
+ .AddClass("show",CollapsedItemShown)
+ .AddClass(Class)
+ .Build();
+ }
+ }
+
+ [Parameter]
+ public EventCallback SwitchButtonChangeEvent { get; set; }
+
+ private async Task SwitchButtonChange(ChangeEventArgs args)
+ {
+ await SwitchButtonChangeEvent.InvokeAsync(args);
+ }
+
+ private string SwitchButtonId = Guid.NewGuid().ToString();
+
+ protected override async Task OnInitializedAsync()
+ {
+ if (Parent.Rows is null) Parent.Rows = new();
+ Parent.Rows.Add(this);
+ await base.OnInitializedAsync();
+ }
+
+}
\ No newline at end of file
diff --git a/src/Connected.Components/Components/GridRowContent.razor b/src/Connected.Components/Components/GridRowContent.razor
new file mode 100644
index 0000000..db07431
--- /dev/null
+++ b/src/Connected.Components/Components/GridRowContent.razor
@@ -0,0 +1,3 @@
+
+ @ChildContent
+
diff --git a/src/Connected.Components/Components/GridRowContent.razor.cs b/src/Connected.Components/Components/GridRowContent.razor.cs
new file mode 100644
index 0000000..4c76533
--- /dev/null
+++ b/src/Connected.Components/Components/GridRowContent.razor.cs
@@ -0,0 +1,53 @@
+using Connected.Utilities;
+using Microsoft.AspNetCore.Components;
+
+namespace Connected.Components;
+public partial class GridRowContent : ComponentBase
+{
+ [CascadingParameter]
+ public GridRow? Parent { get; set; }
+
+ ///
+ /// Text shown inside the button
+ /// Options: any string variable
+ /// Default: string.Empty
+ ///
+ [Parameter]
+ public RenderFragment? ChildContent { get; set; }
+
+ ///
+ /// Disabled or enabled.
+ /// Default: false
+ ///
+ [Parameter]
+ public bool Collapsable { get; set; } = false;
+
+ private string GeneratedRowContentClass
+ {
+ get
+ {
+ CssBuilder cssBuilder = new CssBuilder("row");
+
+ cssBuilder.AddClass("collapsed", Collapsable);
+
+ if (Parent is not null)
+ {
+ cssBuilder.AddClass("show", (Collapsable ? Parent.CollapsedItemShown : false));
+ }
+
+ return cssBuilder.Build();
+ }
+ }
+
+ protected override async Task OnInitializedAsync()
+ {
+
+ if (Parent is not null)
+ {
+ if (Parent.Children is null) Parent.Children = new();
+ Parent.Children.Add(this);
+ }
+ await base.OnInitializedAsync();
+ }
+}
+
diff --git a/src/Connected.Components/Connected.Components.csproj b/src/Connected.Components/Connected.Components.csproj
index 1192de9..68de09a 100644
--- a/src/Connected.Components/Connected.Components.csproj
+++ b/src/Connected.Components/Connected.Components.csproj
@@ -68,7 +68,7 @@
- <_OpenSansFont Include="wwwroot\Fonts\OpenSans-*.ttf" Exclude="@(Content)" />
+ <_OpenSansFont Include="wwwroot\Fonts\OpenSans-*.woff2" Exclude="@(Content)" />
diff --git a/src/Connected.Components/Enums/Color.cs b/src/Connected.Components/Enums/Color.cs
index eadc7e8..96cce10 100644
--- a/src/Connected.Components/Enums/Color.cs
+++ b/src/Connected.Components/Enums/Color.cs
@@ -5,7 +5,7 @@ namespace Connected;
public enum Color
{
[Description("core")]
- Core,
+ Core,
[Description("primary")]
Primary,
diff --git a/src/Connected.Components/Enums/ThemeProvider.cs b/src/Connected.Components/Enums/ThemeProvider.cs
new file mode 100644
index 0000000..00b01ff
--- /dev/null
+++ b/src/Connected.Components/Enums/ThemeProvider.cs
@@ -0,0 +1,23 @@
+using System.ComponentModel;
+
+namespace Connected;
+
+public enum Theme
+{
+ [Description("")]
+ Default,
+
+ [Description("dark")]
+ Dark,
+
+ [Description("light")]
+ Light,
+
+ [Description("pink")]
+ Pink
+}
+
+public static class ThemeProvider
+{
+ public static Theme theme { get; set; } = Theme.Default;
+}
\ No newline at end of file
diff --git a/src/Connected.Components/Utilities/GridRowTemplate.cs b/src/Connected.Components/Utilities/GridRowTemplate.cs
new file mode 100644
index 0000000..2cd05cc
--- /dev/null
+++ b/src/Connected.Components/Utilities/GridRowTemplate.cs
@@ -0,0 +1,5 @@
+namespace Connected.Utilities;
+public class GridRowTemplate
+{
+ public Position ImagePosition { get; set; } = Position.Left;
+}
diff --git a/src/Connected.Components/wwwroot/Fonts/OpenSans-Bold.ttf b/src/Connected.Components/wwwroot/Fonts/OpenSans-Bold.ttf
deleted file mode 100644
index a1398b3..0000000
Binary files a/src/Connected.Components/wwwroot/Fonts/OpenSans-Bold.ttf and /dev/null differ
diff --git a/src/Connected.Components/wwwroot/Fonts/OpenSans-Bold.woff2 b/src/Connected.Components/wwwroot/Fonts/OpenSans-Bold.woff2
new file mode 100644
index 0000000..7b0884b
Binary files /dev/null and b/src/Connected.Components/wwwroot/Fonts/OpenSans-Bold.woff2 differ
diff --git a/src/Connected.Components/wwwroot/Fonts/OpenSans-BoldItalic.ttf b/src/Connected.Components/wwwroot/Fonts/OpenSans-BoldItalic.ttf
deleted file mode 100644
index 307122c..0000000
Binary files a/src/Connected.Components/wwwroot/Fonts/OpenSans-BoldItalic.ttf and /dev/null differ
diff --git a/src/Connected.Components/wwwroot/Fonts/OpenSans-BoldItalic.woff2 b/src/Connected.Components/wwwroot/Fonts/OpenSans-BoldItalic.woff2
new file mode 100644
index 0000000..a2e1a8b
Binary files /dev/null and b/src/Connected.Components/wwwroot/Fonts/OpenSans-BoldItalic.woff2 differ
diff --git a/src/Connected.Components/wwwroot/Fonts/OpenSans-ExtraBold.ttf b/src/Connected.Components/wwwroot/Fonts/OpenSans-ExtraBold.ttf
deleted file mode 100644
index 08d7185..0000000
Binary files a/src/Connected.Components/wwwroot/Fonts/OpenSans-ExtraBold.ttf and /dev/null differ
diff --git a/src/Connected.Components/wwwroot/Fonts/OpenSans-ExtraBold.woff2 b/src/Connected.Components/wwwroot/Fonts/OpenSans-ExtraBold.woff2
new file mode 100644
index 0000000..477f837
Binary files /dev/null and b/src/Connected.Components/wwwroot/Fonts/OpenSans-ExtraBold.woff2 differ
diff --git a/src/Connected.Components/wwwroot/Fonts/OpenSans-ExtraBoldItalic.ttf b/src/Connected.Components/wwwroot/Fonts/OpenSans-ExtraBoldItalic.ttf
deleted file mode 100644
index c35f57f..0000000
Binary files a/src/Connected.Components/wwwroot/Fonts/OpenSans-ExtraBoldItalic.ttf and /dev/null differ
diff --git a/src/Connected.Components/wwwroot/Fonts/OpenSans-ExtraBoldItalic.woff2 b/src/Connected.Components/wwwroot/Fonts/OpenSans-ExtraBoldItalic.woff2
new file mode 100644
index 0000000..e83eed6
Binary files /dev/null and b/src/Connected.Components/wwwroot/Fonts/OpenSans-ExtraBoldItalic.woff2 differ
diff --git a/src/Connected.Components/wwwroot/Fonts/OpenSans-Italic.ttf b/src/Connected.Components/wwwroot/Fonts/OpenSans-Italic.ttf
deleted file mode 100644
index 790286f..0000000
Binary files a/src/Connected.Components/wwwroot/Fonts/OpenSans-Italic.ttf and /dev/null differ
diff --git a/src/Connected.Components/wwwroot/Fonts/OpenSans-Italic.woff2 b/src/Connected.Components/wwwroot/Fonts/OpenSans-Italic.woff2
new file mode 100644
index 0000000..3917b0f
Binary files /dev/null and b/src/Connected.Components/wwwroot/Fonts/OpenSans-Italic.woff2 differ
diff --git a/src/Connected.Components/wwwroot/Fonts/OpenSans-Light.ttf b/src/Connected.Components/wwwroot/Fonts/OpenSans-Light.ttf
deleted file mode 100644
index d9a9e27..0000000
Binary files a/src/Connected.Components/wwwroot/Fonts/OpenSans-Light.ttf and /dev/null differ
diff --git a/src/Connected.Components/wwwroot/Fonts/OpenSans-Light.woff2 b/src/Connected.Components/wwwroot/Fonts/OpenSans-Light.woff2
new file mode 100644
index 0000000..4146b91
Binary files /dev/null and b/src/Connected.Components/wwwroot/Fonts/OpenSans-Light.woff2 differ
diff --git a/src/Connected.Components/wwwroot/Fonts/OpenSans-LightItalic.ttf b/src/Connected.Components/wwwroot/Fonts/OpenSans-LightItalic.ttf
deleted file mode 100644
index 77f2e6c..0000000
Binary files a/src/Connected.Components/wwwroot/Fonts/OpenSans-LightItalic.ttf and /dev/null differ
diff --git a/src/Connected.Components/wwwroot/Fonts/OpenSans-LightItalic.woff2 b/src/Connected.Components/wwwroot/Fonts/OpenSans-LightItalic.woff2
new file mode 100644
index 0000000..6f4f7d4
Binary files /dev/null and b/src/Connected.Components/wwwroot/Fonts/OpenSans-LightItalic.woff2 differ
diff --git a/src/Connected.Components/wwwroot/Fonts/OpenSans-Medium.ttf b/src/Connected.Components/wwwroot/Fonts/OpenSans-Medium.ttf
deleted file mode 100644
index ba6db9b..0000000
Binary files a/src/Connected.Components/wwwroot/Fonts/OpenSans-Medium.ttf and /dev/null differ
diff --git a/src/Connected.Components/wwwroot/Fonts/OpenSans-MediumItalic.ttf b/src/Connected.Components/wwwroot/Fonts/OpenSans-MediumItalic.ttf
deleted file mode 100644
index 980ac25..0000000
Binary files a/src/Connected.Components/wwwroot/Fonts/OpenSans-MediumItalic.ttf and /dev/null differ
diff --git a/src/Connected.Components/wwwroot/Fonts/OpenSans-Regular.ttf b/src/Connected.Components/wwwroot/Fonts/OpenSans-Regular.ttf
deleted file mode 100644
index 1dc226d..0000000
Binary files a/src/Connected.Components/wwwroot/Fonts/OpenSans-Regular.ttf and /dev/null differ
diff --git a/src/Connected.Components/wwwroot/Fonts/OpenSans-Regular.woff2 b/src/Connected.Components/wwwroot/Fonts/OpenSans-Regular.woff2
new file mode 100644
index 0000000..2a13fed
Binary files /dev/null and b/src/Connected.Components/wwwroot/Fonts/OpenSans-Regular.woff2 differ
diff --git a/src/Connected.Components/wwwroot/Fonts/OpenSans-SemiBold.ttf b/src/Connected.Components/wwwroot/Fonts/OpenSans-SemiBold.ttf
deleted file mode 100644
index 66acb20..0000000
Binary files a/src/Connected.Components/wwwroot/Fonts/OpenSans-SemiBold.ttf and /dev/null differ
diff --git a/src/Connected.Components/wwwroot/Fonts/OpenSans-SemiBold.woff2 b/src/Connected.Components/wwwroot/Fonts/OpenSans-SemiBold.woff2
new file mode 100644
index 0000000..8e3dbfd
Binary files /dev/null and b/src/Connected.Components/wwwroot/Fonts/OpenSans-SemiBold.woff2 differ
diff --git a/src/Connected.Components/wwwroot/Fonts/OpenSans-SemiBoldItalic.ttf b/src/Connected.Components/wwwroot/Fonts/OpenSans-SemiBoldItalic.ttf
deleted file mode 100644
index f8c39f9..0000000
Binary files a/src/Connected.Components/wwwroot/Fonts/OpenSans-SemiBoldItalic.ttf and /dev/null differ
diff --git a/src/Connected.Components/wwwroot/Fonts/OpenSans-SemiBoldItalic.woff2 b/src/Connected.Components/wwwroot/Fonts/OpenSans-SemiBoldItalic.woff2
new file mode 100644
index 0000000..7bb28a3
Binary files /dev/null and b/src/Connected.Components/wwwroot/Fonts/OpenSans-SemiBoldItalic.woff2 differ
diff --git a/src/connected.components/Models/Alert/AlertOptions.cs b/src/connected.components/Models/Alert/AlertOptions.cs
new file mode 100644
index 0000000..0251f65
--- /dev/null
+++ b/src/connected.components/Models/Alert/AlertOptions.cs
@@ -0,0 +1,21 @@
+namespace Connected.Models.Alert;
+public class AlertOptions
+{
+ Severity Severity { get; set; } = Severity.Info;
+ public bool ShowHeader { get; set; } = true;
+ public bool Cancelable { get; set; } = true;
+
+ public AlertOptions()
+ {
+ Severity = Severity.Info;
+ ShowHeader = true;
+ Cancelable = true;
+ }
+
+ public AlertOptions(Severity severity, bool showHeader, bool cancelable)
+ {
+ Severity = severity;
+ ShowHeader = showHeader;
+ Cancelable = cancelable;
+ }
+}