From 1a424571ad07d169e04bb128dfd6ff5e7b0da114 Mon Sep 17 00:00:00 2001 From: stm Date: Wed, 25 Jan 2023 09:35:20 +0100 Subject: [PATCH] Progress --- .../Components/Alert/Alert.razor | 2 +- .../Components/Badge/Badge.razor | 2 +- .../Breadcrumbs/BreadcrumbLink.razor | 2 +- .../Components/Breadcrumbs/Breadcrumbs.razor | 2 +- .../Components/Button/Fab.razor | 4 +- .../{IconButton.razor => GlyphButton.razor} | 6 +- ...onButton.razor.cs => GlyphButton.razor.cs} | 6 +- ...onButton.razor => ToggleGlyphButton.razor} | 6 +- ...on.razor.cs => ToggleGlyphButton.razor.cs} | 10 +- .../Components/Carousel/Carousel.razor | 6 +- .../Components/CheckBox/CheckBox.razor | 2 +- .../Components/Chip/Chip.razor | 6 +- .../Components/ColorPicker/ColorPicker.razor | 10 +- .../Components/DataGrid/DataGrid.razor | 6 +- .../Components/DataGrid/DataGridPager.razor | 8 +- .../DataGrid/FilterHeaderCell.razor | 2 +- .../Components/DataGrid/HeaderCell.razor | 8 +- .../Components/DataGrid/HierarchyColumn.razor | 5 +- .../DatePicker/DatePickerBase.razor | 8 +- .../Components/Dialog/DialogInstance.razor | 2 +- .../DropZone/DropContainer.razor.cs | 405 +++++---- .../Components/DropZone/DropZone.razor.cs | 312 +++---- .../DropZone/DynamicDropItem.razor.cs | 266 +++--- .../ExpansionPanel/ExpansionPanel.razor | 2 +- .../ExpansionPanel/ExpansionPanel.razor.cs | 144 +-- .../ExpansionPanel/ExpansionPanels.razor.cs | 129 +-- .../Components/Field/Field.razor.cs | 307 ++++--- .../Components/FileUpload/FileUpload.razor.cs | 236 ++--- .../Components/FocusTrap/FocusTrap.razor.cs | 111 ++- .../Components/Form/Form.razor.cs | 298 ++++--- .../Components/Grid/Grid.razor.cs | 11 +- .../Components/Grid/Item.razor.cs | 22 +- .../Components/Hidden/Hidden.razor.cs | 198 ++-- .../Highlighter/Highlighter.razor.cs | 102 ++- .../Components/Icon/Icon.razor.cs | 107 +-- .../Components/Image/Image.razor.cs | 95 +- .../Components/Input/Input.razor | 91 +- .../Components/Input/Input.razor.cs | 104 ++- .../Components/Input/InputAdornment.razor | 2 +- .../Components/Input/RangeInput.razor | 2 +- .../InputControl/InputControl.razor.cs | 101 ++- .../Components/Layout/Layout.razor.cs | 7 + .../Components/Link/Link.razor.cs | 88 +- .../Components/List/List.razor.cs | 231 ++--- .../Components/List/ListItem.razor | 6 +- .../Components/List/ListItem.razor.cs | 280 +++--- .../Components/List/ListSubheader.razor.cs | 14 +- .../Components/Main/MainContent.razor.cs | 11 +- .../Components/Mask/Mask.razor | 4 +- .../Components/Mask/Mask.razor.cs | 844 +++++++++--------- .../Components/Menu/Menu.razor | 2 +- .../Components/Menu/Menu.razor.cs | 373 ++++---- .../Components/Menu/MenuItem.razor.cs | 93 +- .../Components/MessageBox/MessageBox.razor.cs | 188 ++-- .../Components/NavMenu/NavGroup.razor | 4 +- .../Components/NavMenu/NavGroup.razor.cs | 226 ++--- .../Components/NavMenu/NavLink.razor | 4 +- .../Components/NavMenu/NavLink.razor.cs | 75 +- .../Components/NavMenu/NavMenu.razor.cs | 11 +- .../Components/Overlay/Overlay.razor.cs | 354 ++++---- .../PageContentNavigation.razor.cs | 332 +++---- .../Components/Pagination/Pagination.razor | 8 +- .../Components/Paper/Paper.razor.cs | 158 ++-- .../Components/Rating/RatingItem.razor | 4 +- .../Components/Snackbar/SnackbarElement.razor | 4 +- .../Components/Switch/Switch.razor | 2 +- .../Components/Table/TableGroupRow.razor | 2 +- .../Components/Table/TablePager.razor | 8 +- .../Components/Table/TableSortLabel.razor | 4 +- .../Components/Table/Tr.razor | 12 +- .../Components/Tabs/DynamicTabs.razor | 8 +- .../Components/Tabs/Tabs.razor | 8 +- .../Components/TreeView/TreeViewItem.razor | 4 +- .../TreeView/TreeViewItemToggleButton.razor | 2 +- src/Connected.Components/Utilities/Helper.cs | 12 + 75 files changed, 3432 insertions(+), 3099 deletions(-) rename src/Connected.Components/Components/Button/{IconButton.razor => GlyphButton.razor} (84%) rename src/Connected.Components/Components/Button/{IconButton.razor.cs => GlyphButton.razor.cs} (89%) rename src/Connected.Components/Components/Button/{ToggleIconButton.razor => ToggleGlyphButton.razor} (53%) rename src/Connected.Components/Components/Button/{ToggleIconButton.razor.cs => ToggleGlyphButton.razor.cs} (87%) diff --git a/src/Connected.Components/Components/Alert/Alert.razor b/src/Connected.Components/Components/Alert/Alert.razor index 8f72876..3da8dc8 100644 --- a/src/Connected.Components/Components/Alert/Alert.razor +++ b/src/Connected.Components/Components/Alert/Alert.razor @@ -20,7 +20,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/GlyphButton.razor similarity index 84% rename from src/Connected.Components/Components/Button/IconButton.razor rename to src/Connected.Components/Components/Button/GlyphButton.razor index 93139d7..60ef2a8 100644 --- a/src/Connected.Components/Components/Button/IconButton.razor +++ b/src/Connected.Components/Components/Button/GlyphButton.razor @@ -5,17 +5,17 @@ @using Connected.Components; - @if (!String.IsNullOrEmpty(Icon)) + @if (!String.IsNullOrEmpty(Glyph)) { - + } else diff --git a/src/Connected.Components/Components/Button/IconButton.razor.cs b/src/Connected.Components/Components/Button/GlyphButton.razor.cs similarity index 89% rename from src/Connected.Components/Components/Button/IconButton.razor.cs rename to src/Connected.Components/Components/Button/GlyphButton.razor.cs index 047e8c7..bff5752 100644 --- a/src/Connected.Components/Components/Button/IconButton.razor.cs +++ b/src/Connected.Components/Components/Button/GlyphButton.razor.cs @@ -3,20 +3,20 @@ using Microsoft.AspNetCore.Components; namespace Connected.Components; -public partial class IconButton : ButtonBase +public partial class GlyphButton : ButtonBase { #region Content /// /// The Icon that will be used in the component. /// [Parameter] - public string? Icon { get; set; } + public string? Glyph { get; set; } /// /// GlyphTitle of the icon used for accessibility. /// [Parameter] - public string? IconTitle { get; set; } + public string? GlyphTitle { get; set; } /// /// Child content of component, only shows if Glyph is null or Empty. diff --git a/src/Connected.Components/Components/Button/ToggleIconButton.razor b/src/Connected.Components/Components/Button/ToggleGlyphButton.razor similarity index 53% rename from src/Connected.Components/Components/Button/ToggleIconButton.razor rename to src/Connected.Components/Components/Button/ToggleGlyphButton.razor index 004062b..545c071 100644 --- a/src/Connected.Components/Components/Button/ToggleIconButton.razor +++ b/src/Connected.Components/Components/Button/ToggleGlyphButton.razor @@ -2,12 +2,12 @@ @inherits UIComponent - diff --git a/src/Connected.Components/Components/Button/ToggleIconButton.razor.cs b/src/Connected.Components/Components/Button/ToggleGlyphButton.razor.cs similarity index 87% rename from src/Connected.Components/Components/Button/ToggleIconButton.razor.cs rename to src/Connected.Components/Components/Button/ToggleGlyphButton.razor.cs index 53371a7..d441950 100644 --- a/src/Connected.Components/Components/Button/ToggleIconButton.razor.cs +++ b/src/Connected.Components/Components/Button/ToggleGlyphButton.razor.cs @@ -2,7 +2,7 @@ namespace Connected.Components; -public partial class ToggleIconButton : UIComponent +public partial class ToggleGlyphButton : UIComponent { #region Events /// @@ -39,25 +39,25 @@ public partial class ToggleIconButton : UIComponent /// The glyph that will be used in the untoggled state. /// [Parameter] - public string? Icon { get; set; } + public string? Glyph { get; set; } /// /// GlyphTitle of the icon used for accessibility. /// [Parameter] - public string? IconTitle { get; set; } + public string? GlyphTitle { get; set; } /// /// The glyph that will be used in the toggled state. /// [Parameter] - public string? ToggledIcon { get; set; } + public string? ToggledGlyph { get; set; } /// /// GlyphTitle used in toggled state, if different. /// [Parameter] - public string? ToggledIconTitle { get; set; } + public string? ToggledGlyphTitle { get; set; } #endregion #region Styling 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) { - +