diff --git a/src/Connected.Components/Components/Alert/Alert.razor b/src/Connected.Components/Components/Alert/Alert.razor index cda4f67..3bed37f 100644 --- a/src/Connected.Components/Components/Alert/Alert.razor +++ b/src/Connected.Components/Components/Alert/Alert.razor @@ -21,7 +21,7 @@ @if (CloseGlyphVisible) {
- +
} \ No newline at end of file diff --git a/src/Connected.Components/Components/Badge/Badge.razor b/src/Connected.Components/Components/Badge/Badge.razor index a43da56..ad8c371 100644 --- a/src/Connected.Components/Components/Badge/Badge.razor +++ b/src/Connected.Components/Components/Badge/Badge.razor @@ -11,7 +11,7 @@ { @if (!String.IsNullOrEmpty(Icon)) { - + } else { diff --git a/src/Connected.Components/Components/Breadcrumbs/BreadcrumbLink.razor b/src/Connected.Components/Components/Breadcrumbs/BreadcrumbLink.razor index 6784f68..966d6a7 100644 --- a/src/Connected.Components/Components/Breadcrumbs/BreadcrumbLink.razor +++ b/src/Connected.Components/Components/Breadcrumbs/BreadcrumbLink.razor @@ -7,7 +7,7 @@ @if (Item?.Icon != null) { - + } @Item?.Text diff --git a/src/Connected.Components/Components/Breadcrumbs/Breadcrumbs.razor b/src/Connected.Components/Components/Breadcrumbs/Breadcrumbs.razor index 6d5e759..4e34f6f 100644 --- a/src/Connected.Components/Components/Breadcrumbs/Breadcrumbs.razor +++ b/src/Connected.Components/Components/Breadcrumbs/Breadcrumbs.razor @@ -13,7 +13,7 @@ diff --git a/src/Connected.Components/Components/Button/Fab.razor b/src/Connected.Components/Components/Button/Fab.razor index fb8acc6..f5f50d8 100644 --- a/src/Connected.Components/Components/Button/Fab.razor +++ b/src/Connected.Components/Components/Button/Fab.razor @@ -14,12 +14,12 @@ @if (!string.IsNullOrWhiteSpace(StartIcon)) { - + } @Label @if (!string.IsNullOrWhiteSpace(EndIcon)) { - + } diff --git a/src/Connected.Components/Components/Button/IconButton.razor b/src/Connected.Components/Components/Button/IconButton.razor deleted file mode 100644 index 93139d7..0000000 --- a/src/Connected.Components/Components/Button/IconButton.razor +++ /dev/null @@ -1,27 +0,0 @@ -@namespace Connected.Components - -@inherits ButtonBase - -@using Connected.Components; - - - @if (!String.IsNullOrEmpty(Icon)) - { - - - - } - else - { - - @ChildContent - - } - diff --git a/src/Connected.Components/Components/Button/IconButton.razor.cs b/src/Connected.Components/Components/Button/IconButton.razor.cs deleted file mode 100644 index 047e8c7..0000000 --- a/src/Connected.Components/Components/Button/IconButton.razor.cs +++ /dev/null @@ -1,54 +0,0 @@ -using Connected.Utilities; -using Microsoft.AspNetCore.Components; - -namespace Connected.Components; - -public partial class IconButton : ButtonBase -{ - #region Content - /// - /// The Icon that will be used in the component. - /// - [Parameter] - public string? Icon { get; set; } - - /// - /// GlyphTitle of the icon used for accessibility. - /// - [Parameter] - public string? IconTitle { get; set; } - - /// - /// Child content of component, only shows if Glyph is null or Empty. - /// - [Parameter] - public RenderFragment? ChildContent { get; set; } - - #endregion - - #region Styling - /// - /// A space separated list of class names, added on top of the default class list. - /// - [Parameter] - public string? ClassList { get; set; } - - /// - /// The variant to use. - /// - [Parameter] - public Variant Variant { get; set; } = Variant.Text; - - /// - /// Contains the default container classlist and the user defined classes. - /// - private CssBuilder CompiledClassList - { - get - { - return new CssBuilder("button-root glyph-button") - .AddClass(ClassList); - } - } - #endregion -} diff --git a/src/Connected.Components/Components/Button/ToggleIconButton.razor b/src/Connected.Components/Components/Button/ToggleIconButton.razor deleted file mode 100644 index 004062b..0000000 --- a/src/Connected.Components/Components/Button/ToggleIconButton.razor +++ /dev/null @@ -1,13 +0,0 @@ -@namespace Connected.Components - -@inherits UIComponent - - diff --git a/src/Connected.Components/Components/Button/ToggleIconButton.razor.cs b/src/Connected.Components/Components/Button/ToggleIconButton.razor.cs deleted file mode 100644 index 53371a7..0000000 --- a/src/Connected.Components/Components/Button/ToggleIconButton.razor.cs +++ /dev/null @@ -1,89 +0,0 @@ -using Microsoft.AspNetCore.Components; - -namespace Connected.Components; - -public partial class ToggleIconButton : UIComponent -{ - #region Events - /// - /// Fires whenever toggled is changed. - /// - [Parameter] - public EventCallback ToggledChanged { get; set; } - - public async Task Toggle() - { - await SetToggledAsync(!Toggled); - } - - protected internal async Task SetToggledAsync(bool toggled) - { - if (Disabled) - return; - - if (Toggled != toggled) - { - Toggled = toggled; - - if (!ToggledChanged.HasDelegate) - return; - - await ToggledChanged.InvokeAsync(Toggled); - } - } - - #endregion - - #region Content - /// - /// The glyph that will be used in the untoggled state. - /// - [Parameter] - public string? Icon { get; set; } - - /// - /// GlyphTitle of the icon used for accessibility. - /// - [Parameter] - public string? IconTitle { get; set; } - - /// - /// The glyph that will be used in the toggled state. - /// - [Parameter] - public string? ToggledIcon { get; set; } - - /// - /// GlyphTitle used in toggled state, if different. - /// - [Parameter] - public string? ToggledIconTitle { get; set; } - #endregion - - #region Styling - /// - /// A space separated list of class names, added on top of the default class list. - /// - [Parameter] - public string? ClassList { get; set; } - - /// - /// The variant to use. - /// - [Parameter] - public Variant Variant { get; set; } = Variant.Text; - - /// - /// If true, the button will be disabled. - /// - [Parameter] - public bool Disabled { get; set; } - - /// - /// The button toggled state. - /// - [Parameter] - public bool Toggled { get; set; } - - #endregion -} diff --git a/src/Connected.Components/Components/Carousel/Carousel.razor b/src/Connected.Components/Components/Carousel/Carousel.razor index aec618f..b8cb1b6 100644 --- a/src/Connected.Components/Components/Carousel/Carousel.razor +++ b/src/Connected.Components/Components/Carousel/Carousel.razor @@ -31,7 +31,7 @@ { @if (PreviousButtonTemplate == null) { - + } else { @@ -51,7 +51,7 @@ int current = i; if (BulletTemplate == null) { - + } else { @@ -69,7 +69,7 @@ { @if (NextButtonTemplate == null) { - + } else { diff --git a/src/Connected.Components/Components/CheckBox/CheckBox.razor b/src/Connected.Components/Components/CheckBox/CheckBox.razor index eb643ee..c2301b9 100644 --- a/src/Connected.Components/Components/CheckBox/CheckBox.razor +++ b/src/Connected.Components/Components/CheckBox/CheckBox.razor @@ -8,7 +8,7 @@ @*note: stopping the click propagation is important here. otherwise checking the checkbox results in click events on its parent (i.e. table row), which is generally not what you would want*@ - + @if (!String.IsNullOrEmpty(Label)) { diff --git a/src/Connected.Components/Components/Chip/Chip.razor b/src/Connected.Components/Components/Chip/Chip.razor index ae8bb21..a007d80 100644 --- a/src/Connected.Components/Components/Chip/Chip.razor +++ b/src/Connected.Components/Components/Chip/Chip.razor @@ -10,11 +10,11 @@ } else if (!String.IsNullOrEmpty(Icon) && !IsChecked) { - + } else if (IsChecked) { - + } @if (ChildContent == null) @@ -27,7 +27,7 @@ } @if (OnClose.HasDelegate || ChipSet?.AllClosable==true) { - + } diff --git a/src/Connected.Components/Components/ColorPicker/ColorPicker.razor b/src/Connected.Components/Components/ColorPicker/ColorPicker.razor index a0b334b..4184b09 100644 --- a/src/Connected.Components/Components/ColorPicker/ColorPicker.razor +++ b/src/Connected.Components/Components/ColorPicker/ColorPicker.razor @@ -12,12 +12,12 @@ @if (PickerVariant != PickerVariant.Static) { - + } - - - + + + @if (!DisableColorField) @@ -126,7 +126,7 @@ @if (!DisableModeSwitch) {
- +
} diff --git a/src/Connected.Components/Components/DataGrid/DataGrid.razor b/src/Connected.Components/Components/DataGrid/DataGrid.razor index 1ba89cf..d641904 100644 --- a/src/Connected.Components/Components/DataGrid/DataGrid.razor +++ b/src/Connected.Components/Components/DataGrid/DataGrid.razor @@ -126,9 +126,9 @@ @{ var groupStyle = new StyleBuilder().AddStyle(GroupStyle).AddStyle(GroupStyleFunc?.Invoke(g)).Build(); } - @if (GroupedColumn.GroupTemplate == null) @@ -377,7 +377,7 @@ @if (column == null) { - +