From 7be1b80b7d4d9f4f048aaf7aeb3f510c9e9f4ed0 Mon Sep 17 00:00:00 2001 From: Samuel Meenzen Date: Tue, 26 Mar 2024 13:33:38 +0100 Subject: [PATCH 01/50] MudRipple: Follow theme colors and improve visibility (#8072) (#8460) --- .../Components/ThemeProviderTests.cs | 3 +++ src/MudBlazor/Components/NavMenu/MudNavLink.razor.cs | 2 +- .../ThemeProvider/MudThemingProvider.razor.cs | 6 ++++++ src/MudBlazor/Styles/abstracts/_colors.scss | 1 + src/MudBlazor/Styles/components/_button.scss | 6 ++++++ src/MudBlazor/Styles/components/_buttongroup.scss | 5 +++++ src/MudBlazor/Styles/components/_chip.scss | 4 ++++ src/MudBlazor/Styles/components/_fab.scss | 3 +++ src/MudBlazor/Styles/components/_navmenu.scss | 1 + src/MudBlazor/Styles/core/_ripple.scss | 4 ++-- src/MudBlazor/Themes/Models/Palette.cs | 10 ++++++++++ 11 files changed, 42 insertions(+), 3 deletions(-) diff --git a/src/MudBlazor.UnitTests/Components/ThemeProviderTests.cs b/src/MudBlazor.UnitTests/Components/ThemeProviderTests.cs index d50b2d39565a..268514a54bcf 100644 --- a/src/MudBlazor.UnitTests/Components/ThemeProviderTests.cs +++ b/src/MudBlazor.UnitTests/Components/ThemeProviderTests.cs @@ -118,6 +118,9 @@ public void DifferentCultures(string cultureString) "--mud-palette-grey-darker: #616161;", "--mud-palette-overlay-dark: rgba(33,33,33,0.4980392156862745);", "--mud-palette-overlay-light: rgba(255,255,255,0.4980392156862745);", + "--mud-ripple-color: var(--mud-palette-text-primary);", + "--mud-ripple-opacity: 0.1;", + "--mud-ripple-opacity-secondary: 0.2;", "--mud-elevation-0: none;", "--mud-elevation-1: 0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12);", "--mud-elevation-2: 0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12);", diff --git a/src/MudBlazor/Components/NavMenu/MudNavLink.razor.cs b/src/MudBlazor/Components/NavMenu/MudNavLink.razor.cs index b082f9d5bb51..d5905da84214 100644 --- a/src/MudBlazor/Components/NavMenu/MudNavLink.razor.cs +++ b/src/MudBlazor/Components/NavMenu/MudNavLink.razor.cs @@ -12,13 +12,13 @@ public partial class MudNavLink : MudBaseSelectItem { protected string Classname => new CssBuilder("mud-nav-item") - .AddClass($"mud-ripple", !DisableRipple && !Disabled) .AddClass(Class) .Build(); protected string LinkClassname => new CssBuilder("mud-nav-link") .AddClass($"mud-nav-link-disabled", Disabled) + .AddClass($"mud-ripple", !DisableRipple && !Disabled) .Build(); protected string IconClassname => diff --git a/src/MudBlazor/Components/ThemeProvider/MudThemingProvider.razor.cs b/src/MudBlazor/Components/ThemeProvider/MudThemingProvider.razor.cs index 4d5c5124a32a..d2c366b5cd9e 100644 --- a/src/MudBlazor/Components/ThemeProvider/MudThemingProvider.razor.cs +++ b/src/MudBlazor/Components/ThemeProvider/MudThemingProvider.razor.cs @@ -15,6 +15,7 @@ partial class MudThemingProvider : ComponentBase, IDisposable { // private const string Breakpoint = "mud-breakpoint"; private const string Palette = "mud-palette"; + private const string Ripple = "mud-ripple"; private const string Elevation = "mud-elevation"; private const string Typography = "mud-typography"; private const string LayoutProperties = "mud"; @@ -250,6 +251,11 @@ protected virtual void GenerateTheme(StringBuilder theme) theme.AppendLine($"--{Palette}-overlay-dark: {palette.OverlayDark};"); theme.AppendLine($"--{Palette}-overlay-light: {palette.OverlayLight};"); + + //Ripple + theme.AppendLine($"--{Ripple}-color: var(--{Palette}-text-primary);"); + theme.AppendLine($"--{Ripple}-opacity: {Theme.Palette.RippleOpacity.ToString(CultureInfo.InvariantCulture)};"); + theme.AppendLine($"--{Ripple}-opacity-secondary: {Theme.Palette.RippleOpacitySecondary.ToString(CultureInfo.InvariantCulture)};"); //Elevations theme.AppendLine($"--{Elevation}-0: {Theme.Shadows.Elevation.GetValue(0)};"); diff --git a/src/MudBlazor/Styles/abstracts/_colors.scss b/src/MudBlazor/Styles/abstracts/_colors.scss index 74e08efac596..217711efaa0a 100644 --- a/src/MudBlazor/Styles/abstracts/_colors.scss +++ b/src/MudBlazor/Styles/abstracts/_colors.scss @@ -7,6 +7,7 @@ .mud-#{$color}-text { color: var(--mud-palette-#{$color}) !important; + --mud-ripple-color: var(--mud-palette-#{$color}) !important; } .mud-#{$color}-hover { diff --git a/src/MudBlazor/Styles/components/_button.scss b/src/MudBlazor/Styles/components/_button.scss index 9e8d3b14d227..3f0d81ec0849 100644 --- a/src/MudBlazor/Styles/components/_button.scss +++ b/src/MudBlazor/Styles/components/_button.scss @@ -44,6 +44,7 @@ transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; border-radius: var(--mud-default-borderradius); color: var(--mud-palette-text-primary); + --mud-ripple-color: var(--mud-palette-text-primary); @media(hover: hover) and (pointer: fine) { &:hover { @@ -73,6 +74,7 @@ @each $color in $mud-palette-colors { &.mud-button-text-#{$color} { color: var(--mud-palette-#{$color}); + --mud-ripple-color: var(--mud-palette-#{$color}); @media(hover: hover) and (pointer: fine) { &:hover { @@ -114,6 +116,7 @@ @each $color in $mud-palette-colors { &.mud-button-outlined-#{$color} { color: var(--mud-palette-#{$color}); + --mud-ripple-color: var(--mud-palette-#{$color}); border: 1px solid var(--mud-palette-#{$color}); @media(hover: hover) and (pointer: fine) { @@ -137,6 +140,8 @@ .mud-button-filled { color: var(--mud-palette-text-primary); + --mud-ripple-color: var(--mud-palette-text-primary); + --mud-ripple-opacity: var(--mud-ripple-opacity-secondary) !important; box-shadow: 0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12); background-color: var(--mud-palette-action-default-hover); @@ -171,6 +176,7 @@ @each $color in $mud-palette-colors { &.mud-button-filled-#{$color} { color: var(--mud-palette-#{$color}-text); + --mud-ripple-color: var(--mud-palette-#{$color}-text); background-color: var(--mud-palette-#{$color}); @media(hover: hover) and (pointer: fine) { diff --git a/src/MudBlazor/Styles/components/_buttongroup.scss b/src/MudBlazor/Styles/components/_buttongroup.scss index b035ac8864e5..cd3048b4d55e 100644 --- a/src/MudBlazor/Styles/components/_buttongroup.scss +++ b/src/MudBlazor/Styles/components/_buttongroup.scss @@ -11,6 +11,7 @@ &.mud-button-group-override-styles { .mud-button { color: var(--mud-palette-text-primary); + --mud-ripple-color: var(--mud-palette-text-primary); } .mud-button-root { @@ -108,6 +109,7 @@ &.mud-button-group-text-#{$color} { .mud-button-root { color: var(--mud-palette-#{$color}); + --mud-ripple-color: var(--mud-palette-#{$color}); @media(hover: hover) and (pointer: fine) { &:hover { @@ -155,6 +157,7 @@ &.mud-button-group-outlined-#{$color} .mud-button-root { color: var(--mud-palette-#{$color}); border: 1px solid var(--mud-palette-#{$color}); + --mud-ripple-color: var(--mud-palette-#{$color}); @media(hover: hover) and (pointer: fine) { &:hover { @@ -218,6 +221,8 @@ .mud-button-root { background-color: var(--mud-palette-#{$color}); color: var(--mud-palette-#{$color}-text); + --mud-ripple-color: var(--mud-palette-#{$color}-text); + --mud-ripple-opacity: var(--mud-ripple-opacity-secondary); @media(hover: hover) and (pointer: fine) { &:hover { diff --git a/src/MudBlazor/Styles/components/_chip.scss b/src/MudBlazor/Styles/components/_chip.scss index 2145d7a7091f..0d252085c3d9 100644 --- a/src/MudBlazor/Styles/components/_chip.scss +++ b/src/MudBlazor/Styles/components/_chip.scss @@ -142,6 +142,7 @@ .mud-chip-filled { color: var(--mud-palette-text-primary); background-color: var(--mud-palette-chip-default); + --mud-ripple-opacity: var(--mud-ripple-opacity-secondary); @media(hover: hover) and (pointer: fine) { &:hover:not(.mud-disabled) { @@ -156,6 +157,7 @@ @each $color in $mud-palette-colors { &.mud-chip-color-#{$color} { color: var(--mud-palette-#{$color}-text); + --mud-ripple-color: var(--mud-palette-#{$color}-text) !important; background-color: var(--mud-palette-#{$color}); @media(hover: hover) and (pointer: fine) { @@ -188,6 +190,7 @@ @each $color in $mud-palette-colors { &.mud-chip-color-#{$color} { color: var(--mud-palette-#{$color}); + --mud-ripple-color: var(--mud-palette-#{$color}) !important; border: 1px solid var(--mud-palette-#{$color}); @media(hover: hover) and (pointer: fine) { @@ -234,6 +237,7 @@ @each $color in $mud-palette-colors { &.mud-chip-color-#{$color} { color: var(--mud-palette-#{$color}); + --mud-ripple-color: var(--mud-palette-#{$color}) !important; background-color: var(--mud-palette-#{$color}-hover); @media(hover: hover) and (pointer: fine) { diff --git a/src/MudBlazor/Styles/components/_fab.scss b/src/MudBlazor/Styles/components/_fab.scss index 7d2e79372ae1..7be747137cbe 100644 --- a/src/MudBlazor/Styles/components/_fab.scss +++ b/src/MudBlazor/Styles/components/_fab.scss @@ -15,6 +15,7 @@ transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms; border-radius: 50%; color: var(--mud-palette-text-primary); + --mud-ripple-color: var(--mud-palette-text-primary); background-color: var(--mud-palette-action-default-hover); @media(hover: hover) and (pointer: fine) { @@ -85,6 +86,8 @@ @each $color in $mud-palette-colors { .mud-fab-#{$color} { color: var(--mud-palette-#{$color}-text); + --mud-ripple-color: var(--mud-palette-#{$color}-text) !important; + --mud-ripple-opacity: var(--mud-ripple-opacity-secondary) !important; background-color: var(--mud-palette-#{$color}); @media(hover: hover) and (pointer: fine) { diff --git a/src/MudBlazor/Styles/components/_navmenu.scss b/src/MudBlazor/Styles/components/_navmenu.scss index ec1752a91e56..b92fefcee592 100644 --- a/src/MudBlazor/Styles/components/_navmenu.scss +++ b/src/MudBlazor/Styles/components/_navmenu.scss @@ -177,6 +177,7 @@ &.mud-navmenu-#{$color} { .mud-nav-link.active:not(.mud-nav-link-disabled) { color: var(--mud-palette-#{$color}); + --mud-ripple-color: var(--mud-palette-#{$color}); background-color: var(--mud-palette-#{$color}-hover); @media(hover: hover) and (pointer: fine) { diff --git a/src/MudBlazor/Styles/core/_ripple.scss b/src/MudBlazor/Styles/core/_ripple.scss index 12e304d0f7b8..12e1b855549c 100644 --- a/src/MudBlazor/Styles/core/_ripple.scss +++ b/src/MudBlazor/Styles/core/_ripple.scss @@ -13,7 +13,7 @@ top: var(--mud-ripple-offset-y); left: var(--mud-ripple-offset-x); pointer-events: none; - background-image: radial-gradient(circle, #000 10%, transparent 10.01%); + background-image: radial-gradient(circle, var(--mud-ripple-color) 10%, transparent 10.01%); background-repeat: no-repeat; background-position: 50%; transform: scale(20,20); @@ -23,7 +23,7 @@ &:active:after { transform: scale(0,0); - opacity: 0.1; + opacity: var(--mud-ripple-opacity); transition: 0s; } } diff --git a/src/MudBlazor/Themes/Models/Palette.cs b/src/MudBlazor/Themes/Models/Palette.cs index 7551f1382afc..02cc114b8881 100644 --- a/src/MudBlazor/Themes/Models/Palette.cs +++ b/src/MudBlazor/Themes/Models/Palette.cs @@ -381,7 +381,17 @@ public string DarkLighten /// Gets or sets the opacity value for hover effect. /// public double HoverOpacity { get; set; } = 0.06; + + /// + /// Gets or sets the opacity for the ripple effect. + /// + public double RippleOpacity { get; set; } = 0.1; + /// + /// Gets or sets the opacity for the ripple effect on specific elements like filled buttons. + /// + public double RippleOpacitySecondary { get; set; } = 0.2; + /// /// Gets or sets the default gray color. /// From 91d5edf3d8f655b658c80af45ed9f90e142fffba Mon Sep 17 00:00:00 2001 From: Artyom M Date: Tue, 26 Mar 2024 14:34:51 +0200 Subject: [PATCH 02/50] EnumExtensions: Remove ToDescriptionString (#8474) --- .../Extensions/EnumExtensionsTests.cs | 13 ------------- src/MudBlazor/Extensions/EnumExtensions.cs | 17 ----------------- 2 files changed, 30 deletions(-) diff --git a/src/MudBlazor.UnitTests/Extensions/EnumExtensionsTests.cs b/src/MudBlazor.UnitTests/Extensions/EnumExtensionsTests.cs index 8ad51d3c8910..7f683b64478e 100644 --- a/src/MudBlazor.UnitTests/Extensions/EnumExtensionsTests.cs +++ b/src/MudBlazor.UnitTests/Extensions/EnumExtensionsTests.cs @@ -27,18 +27,5 @@ public void ToDescriptionStringNew() Align.Inherit.ToDescriptionString().Should().Be("inherit"); Breakpoint.Sm.ToDescriptionString().Should().Be("sm"); } - -#pragma warning disable CS0618 - /// Remove this test(including DummyEnumEmpty) during The Big Break: Breaking Changes in v7> - [Test] - public void ToDescriptionStringOld() - { - DummyEnumEmpty? dummyNullEnum = 0; - MudBlazor.Extensions.EnumExtensions.ToDescriptionString(Adornment.Start).Should().Be("start"); - MudBlazor.Extensions.EnumExtensions.ToDescriptionString(Align.Inherit).Should().Be("inherit"); - MudBlazor.Extensions.EnumExtensions.ToDescriptionString(Breakpoint.Sm).Should().Be("sm"); - MudBlazor.Extensions.EnumExtensions.ToDescriptionString(dummyNullEnum).Should().Be("0"); - } -#pragma warning restore CS0618 } } diff --git a/src/MudBlazor/Extensions/EnumExtensions.cs b/src/MudBlazor/Extensions/EnumExtensions.cs index bad382a0ac6a..be1afafd7f6d 100644 --- a/src/MudBlazor/Extensions/EnumExtensions.cs +++ b/src/MudBlazor/Extensions/EnumExtensions.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.ComponentModel; using System.Linq; namespace MudBlazor.Extensions @@ -8,22 +7,6 @@ namespace MudBlazor.Extensions #nullable enable public static class EnumExtensions { - [Obsolete("Please use the auto-generated ToDescriptionString method instead or implement your own extension method.")] - public static string ToDescriptionString(this Enum value) - { - var field = value.GetType().GetField(value.ToString()); - if (field is null) - { - return value.ToString().ToLower(); - } - - var attributes = Attribute.GetCustomAttributes(field, typeof(DescriptionAttribute), false) as DescriptionAttribute[]; - - return attributes is { Length: > 0 } - ? attributes[0].Description - : value.ToString().ToLower(); - } - /// /// Universal method that retrieves an array of the values of the constant in specified enumeration, works with nullable and non-nullable enums. /// Original works only with non-nullable enums and will throw exception. From 5dd3601fa52df281297d48ed1ea84e909b8781ec Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Tue, 26 Mar 2024 07:47:14 -0500 Subject: [PATCH 03/50] Various components: Remove obsolete Link in favor of Href (#8471) --- src/MudBlazor/Base/MudBaseButton.cs | 18 +++--------------- src/MudBlazor/Components/Chip/MudChip.razor.cs | 12 ------------ src/MudBlazor/Components/Link/MudLink.razor.cs | 2 +- .../Components/Menu/MudMenuItem.razor.cs | 8 -------- 4 files changed, 4 insertions(+), 36 deletions(-) diff --git a/src/MudBlazor/Base/MudBaseButton.cs b/src/MudBlazor/Base/MudBaseButton.cs index fc6f8191ab1d..5d2e95e1d6fa 100644 --- a/src/MudBlazor/Base/MudBaseButton.cs +++ b/src/MudBlazor/Base/MudBaseButton.cs @@ -42,21 +42,9 @@ public abstract class MudBaseButton : MudComponentBase [Parameter] [Category(CategoryTypes.Button.ClickAction)] public string? Href { get; set; } - /// - /// If set to a URL, clicking the button will open the referenced document. Use Target to specify where (Obsolete replaced by Href) - /// - - [Obsolete("Use Href Instead.", false)] - [Parameter] - [Category(CategoryTypes.Button.ClickAction)] - public string? Link - { - get => Href; - set => Href = value; - } /// - /// The target attribute specifies where to open the link, if Link is specified. Possible values: _blank | _self | _parent | _top | framename + /// The target attribute specifies where to open the link, if Href is specified. Possible values: _blank | _self | _parent | _top | framename /// [Parameter] [Category(CategoryTypes.Button.ClickAction)] @@ -124,7 +112,7 @@ protected override void OnParametersSet() SetDefaultValues(); } - //Set the default value for HtmlTag, Link and Target + //Set the default value for HtmlTag, Href and Target private void SetDefaultValues() { if (GetDisabledState()) @@ -135,7 +123,7 @@ private void SetDefaultValues() return; } - // Render an anchor element if Link property is set and is not disabled + // Render an anchor element if Href property is set and is not disabled if (!IsNullOrWhiteSpace(Href)) { HtmlTag = "a"; diff --git a/src/MudBlazor/Components/Chip/MudChip.razor.cs b/src/MudBlazor/Components/Chip/MudChip.razor.cs index 7c4ac928f181..ce182ff232c3 100644 --- a/src/MudBlazor/Components/Chip/MudChip.razor.cs +++ b/src/MudBlazor/Components/Chip/MudChip.razor.cs @@ -169,18 +169,6 @@ private Color GetColor() [Category(CategoryTypes.Chip.Behavior)] public RenderFragment ChildContent { get; set; } - /// - /// If set to a URL, clicking the button will open the referenced document. Use Target to specify where (Obsolete replaced by Href) - /// - [Obsolete("Use Href Instead.", false)] - [Parameter] - [Category(CategoryTypes.Chip.ClickAction)] - public string Link - { - get => Href; - set => Href = value; - } - /// /// If set to a URL, clicking the button will open the referenced document. Use Target to specify where /// diff --git a/src/MudBlazor/Components/Link/MudLink.razor.cs b/src/MudBlazor/Components/Link/MudLink.razor.cs index d7402c133d18..90e731ef697d 100644 --- a/src/MudBlazor/Components/Link/MudLink.razor.cs +++ b/src/MudBlazor/Components/Link/MudLink.razor.cs @@ -59,7 +59,7 @@ public partial class MudLink : MudComponentBase, IHandleEvent public string? Href { get; set; } /// - /// The target attribute specifies where to open the link, if Link is specified. Possible values: _blank | _self | _parent | _top | framename + /// The target attribute specifies where to open the link, if Href is specified. Possible values: _blank | _self | _parent | _top | framename /// [Parameter] [Category(CategoryTypes.Link.Behavior)] diff --git a/src/MudBlazor/Components/Menu/MudMenuItem.razor.cs b/src/MudBlazor/Components/Menu/MudMenuItem.razor.cs index 920be123e513..eba9f2213e95 100644 --- a/src/MudBlazor/Components/Menu/MudMenuItem.razor.cs +++ b/src/MudBlazor/Components/Menu/MudMenuItem.razor.cs @@ -17,14 +17,6 @@ public partial class MudMenuItem : MudComponentBase [Inject] public NavigationManager UriHelper { get; set; } [Inject] public IJsApiService JsApiService { get; set; } - /// - /// If set to a URL, clicking the button will open the referenced document. Use Target to specify where (Obsolete replaced by Href) - /// - [Obsolete("Use Href Instead.", false)] - [Parameter] - [Category(CategoryTypes.Menu.ClickAction)] - public string Link { get => Href; set => Href = value; } - /// /// If set to a URL, clicking the button will open the referenced document. Use Target to specify where /// From ceff505d8900e0ee3dd00f44a4fd490bc2ccb318 Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Tue, 26 Mar 2024 08:29:51 -0500 Subject: [PATCH 04/50] Components: Remove some obsolete Parameters and Tests (#8475) --- .../Components/DialogTests.cs | 18 --------------- .../Components/AppBar/MudAppBarSpacer.razor | 5 ----- .../Components/Badge/MudBadge.razor.cs | 21 ------------------ .../Components/Dialog/IDialogReference.cs | 3 --- .../Components/Menu/MudMenu.razor.cs | 20 ----------------- .../Components/Popover/MudPopover.razor.cs | 22 ------------------- .../Components/Snackbar/SnackbarService.cs | 7 ------ .../TextField/MudTextField.razor.cs | 3 --- .../Components/ToolBar/MudToolBarSpacer.razor | 5 ----- .../Components/Tooltip/MudTooltip.razor.cs | 12 ---------- .../Components/TreeView/MudTreeView.razor.cs | 16 -------------- src/MudBlazor/Enums/OverflowBehavior.cs | 3 --- src/MudBlazor/Interfaces/ISnackbar.cs | 3 --- src/MudBlazor/Services/DialogResult.cs | 2 -- 14 files changed, 140 deletions(-) delete mode 100644 src/MudBlazor/Components/AppBar/MudAppBarSpacer.razor delete mode 100644 src/MudBlazor/Components/ToolBar/MudToolBarSpacer.razor diff --git a/src/MudBlazor.UnitTests/Components/DialogTests.cs b/src/MudBlazor.UnitTests/Components/DialogTests.cs index a4f202e241d3..64d62a72052e 100644 --- a/src/MudBlazor.UnitTests/Components/DialogTests.cs +++ b/src/MudBlazor.UnitTests/Components/DialogTests.cs @@ -87,24 +87,6 @@ public async Task SimpleTest() cont.Count.Should().Be(0); } - /// - /// Cancelled property is obsolete, but it should still be equivalent to Canceled property - /// We'll just confirm the equivalence in both states - /// - [Test] - [Obsolete] - public async Task ObsoleteEquivalenceTest() - { - var value = "Test"; - var result = new DialogResult(value, value.GetType(), false); - result.Canceled.Should().BeFalse(); - result.Cancelled.Should().Be(result.Canceled); - - result = new DialogResult(value, value.GetType(), true); - result.Canceled.Should().BeTrue(); - result.Cancelled.Should().Be(result.Canceled); - } - /// /// Opening and closing an inline dialog. Click on open will open the inlined dialog. /// diff --git a/src/MudBlazor/Components/AppBar/MudAppBarSpacer.razor b/src/MudBlazor/Components/AppBar/MudAppBarSpacer.razor deleted file mode 100644 index 39814477b811..000000000000 --- a/src/MudBlazor/Components/AppBar/MudAppBarSpacer.razor +++ /dev/null @@ -1,5 +0,0 @@ -@namespace MudBlazor - -@attribute [Obsolete("Use MudSpacer instead.", true)] - -
\ No newline at end of file diff --git a/src/MudBlazor/Components/Badge/MudBadge.razor.cs b/src/MudBlazor/Components/Badge/MudBadge.razor.cs index f4056f15c5a6..424f7d2c335c 100644 --- a/src/MudBlazor/Components/Badge/MudBadge.razor.cs +++ b/src/MudBlazor/Components/Badge/MudBadge.razor.cs @@ -60,27 +60,6 @@ public partial class MudBadge : MudComponentBase [Category(CategoryTypes.Badge.Appearance)] public Color Color { get; set; } = Color.Default; - /// - /// Aligns the badge to bottom. - /// - [ExcludeFromCodeCoverage] - [Obsolete("Use Origin instead.", true)] - [Parameter] public bool Bottom { get; set; } - - /// - /// Aligns the badge to left. - /// - [ExcludeFromCodeCoverage] - [Obsolete("Use Origin instead.", true)] - [Parameter] public bool Left { get => Start; set { Start = value; } } - - /// - /// Aligns the badge to the start (Left in LTR and right in RTL). - /// - [ExcludeFromCodeCoverage] - [Obsolete("Use Origin instead.", true)] - [Parameter] public bool Start { get; set; } - /// /// Reduces the size of the badge and hide any of its content. /// diff --git a/src/MudBlazor/Components/Dialog/IDialogReference.cs b/src/MudBlazor/Components/Dialog/IDialogReference.cs index 4725a2dc30c8..bf1c0f3d2807 100644 --- a/src/MudBlazor/Components/Dialog/IDialogReference.cs +++ b/src/MudBlazor/Components/Dialog/IDialogReference.cs @@ -17,9 +17,6 @@ public interface IDialogReference RenderFragment RenderFragment { get; set; } - [Obsolete("This will always return true"), ExcludeFromCodeCoverage] - bool AreParametersRendered { get => true; set { } } - Task Result { get; } TaskCompletionSource RenderCompleteTaskCompletionSource { get; } diff --git a/src/MudBlazor/Components/Menu/MudMenu.razor.cs b/src/MudBlazor/Components/Menu/MudMenu.razor.cs index fecc783a8f97..b96be9038187 100644 --- a/src/MudBlazor/Components/Menu/MudMenu.razor.cs +++ b/src/MudBlazor/Components/Menu/MudMenu.razor.cs @@ -211,26 +211,6 @@ public bool PositionAtCurser [Category(CategoryTypes.Menu.Appearance)] public bool DisableElevation { get; set; } - #region Obsolete members from previous MudButtonBase inherited structure - - [ExcludeFromCodeCoverage] - [Obsolete("Linking is not supported. MudMenu is not a MudBaseButton anymore.", true)] - [Parameter] public string Link { get; set; } - - [ExcludeFromCodeCoverage] - [Obsolete("Linking is not supported. MudMenu is not a MudBaseButton anymore.", true)] - [Parameter] public string Target { get; set; } - - [ExcludeFromCodeCoverage] - [Obsolete("MudMenu is not a MudBaseButton anymore.", true)] - [Parameter] public string HtmlTag { get; set; } = "button"; - - [ExcludeFromCodeCoverage] - [Obsolete("MudMenu is not a MudBaseButton anymore.", true)] - [Parameter] public ButtonType ButtonType { get; set; } - - #endregion - /// /// Add menu items here /// diff --git a/src/MudBlazor/Components/Popover/MudPopover.razor.cs b/src/MudBlazor/Components/Popover/MudPopover.razor.cs index b6e2c1789865..bbf38dead3e1 100644 --- a/src/MudBlazor/Components/Popover/MudPopover.razor.cs +++ b/src/MudBlazor/Components/Popover/MudPopover.razor.cs @@ -93,14 +93,6 @@ internal Direction ConvertDirection(Direction direction) [Category(CategoryTypes.Popover.Appearance)] public double Delay { get; set; } = 0; - /// - /// Sets the direction the popover will start from relative to its parent. - /// - /// - [Obsolete("Use AnchorOrigin and TransformOrigin instead.", true)] - [Parameter] - public Direction Direction { get; set; } = Direction.Bottom; - /// /// Set the anchor point on the element of the popover. /// The anchor point will determinate where the popover will be placed. @@ -125,20 +117,6 @@ internal Direction ConvertDirection(Direction direction) [Category(CategoryTypes.Popover.Appearance)] public OverflowBehavior OverflowBehavior { get; set; } = OverflowBehavior.FlipOnOpen; - /// - /// If true, the select menu will open either above or bellow the input depending on the direction. - /// - [ExcludeFromCodeCoverage] - [Obsolete("Use AnchorOrigin and TransformOrigin instead.", true)] - [Parameter] public bool OffsetX { get; set; } - - /// - /// If true, the select menu will open either before or after the input depending on the direction. - /// - [ExcludeFromCodeCoverage] - [Obsolete("Use AnchorOrigin and TransformOrigin instead.", true)] - [Parameter] public bool OffsetY { get; set; } - /// /// If true, the popover will have the same width at its parent element, default to false /// diff --git a/src/MudBlazor/Components/Snackbar/SnackbarService.cs b/src/MudBlazor/Components/Snackbar/SnackbarService.cs index fa644227acd1..861bc65b238f 100644 --- a/src/MudBlazor/Components/Snackbar/SnackbarService.cs +++ b/src/MudBlazor/Components/Snackbar/SnackbarService.cs @@ -140,13 +140,6 @@ public Snackbar Add(string message, Severity severity = Severity.Normal, Action< ); } - [Obsolete("Use Add instead.", true)] - [ExcludeFromCodeCoverage] - public Snackbar AddNew(Severity severity, string message, Action configure) - { - return Add(message, severity, configure); - } - public void Clear() { SnackBarLock.EnterWriteLock(); diff --git a/src/MudBlazor/Components/TextField/MudTextField.razor.cs b/src/MudBlazor/Components/TextField/MudTextField.razor.cs index 3e906c3d58f2..73b14980ecd1 100644 --- a/src/MudBlazor/Components/TextField/MudTextField.razor.cs +++ b/src/MudBlazor/Components/TextField/MudTextField.razor.cs @@ -181,7 +181,4 @@ private async Task OnMaskedValueChanged(string s) [Category(CategoryTypes.General.Behavior)] public int MaxLines { get; set; } } - - [Obsolete("MudTextFieldString is no longer available.", true)] - public class MudTextFieldString : MudTextField { } } diff --git a/src/MudBlazor/Components/ToolBar/MudToolBarSpacer.razor b/src/MudBlazor/Components/ToolBar/MudToolBarSpacer.razor deleted file mode 100644 index 39814477b811..000000000000 --- a/src/MudBlazor/Components/ToolBar/MudToolBarSpacer.razor +++ /dev/null @@ -1,5 +0,0 @@ -@namespace MudBlazor - -@attribute [Obsolete("Use MudSpacer instead.", true)] - -
\ No newline at end of file diff --git a/src/MudBlazor/Components/Tooltip/MudTooltip.razor.cs b/src/MudBlazor/Components/Tooltip/MudTooltip.razor.cs index 6e8597f95cab..1cb35a729b66 100644 --- a/src/MudBlazor/Components/Tooltip/MudTooltip.razor.cs +++ b/src/MudBlazor/Components/Tooltip/MudTooltip.razor.cs @@ -65,18 +65,6 @@ public partial class MudTooltip : MudComponentBase [Category(CategoryTypes.Tooltip.Appearance)] public double Delay { get; set; } = 0; - /// - /// Changes the default transition delay in seconds. - /// - [Obsolete("Use Delay instead.", true)] - [ExcludeFromCodeCoverage] - [Parameter] - public double Delayed - { - get { return Delay / 1000; } - set { Delay = value * 1000; } - } - /// /// Tooltip placement. /// diff --git a/src/MudBlazor/Components/TreeView/MudTreeView.razor.cs b/src/MudBlazor/Components/TreeView/MudTreeView.razor.cs index 956b287c21f7..554bae6e0858 100644 --- a/src/MudBlazor/Components/TreeView/MudTreeView.razor.cs +++ b/src/MudBlazor/Components/TreeView/MudTreeView.razor.cs @@ -67,10 +67,6 @@ public bool CanSelect set => MultiSelection = value; } - [ExcludeFromCodeCoverage] - [Obsolete("MudTreeView now automaticly activates when using SelectedValue.", true)] - [Parameter] public bool CanActivate { get; set; } - /// /// If true, clicking anywhere on the item will expand it, if it has children. /// @@ -92,18 +88,6 @@ public bool CanSelect [Category(CategoryTypes.TreeView.Appearance)] public bool Hover { get; set; } - /// - /// Hover effect for item's on mouse-over. - /// - [ExcludeFromCodeCoverage] - [Obsolete("Use Hover instead.", true)] - [Parameter] - public bool CanHover - { - get => Hover; - set => Hover = value; - } - /// /// If true, compact vertical padding will be applied to all treeview items. /// diff --git a/src/MudBlazor/Enums/OverflowBehavior.cs b/src/MudBlazor/Enums/OverflowBehavior.cs index 9e556e4e9225..d794b874dffc 100644 --- a/src/MudBlazor/Enums/OverflowBehavior.cs +++ b/src/MudBlazor/Enums/OverflowBehavior.cs @@ -7,9 +7,6 @@ public enum OverflowBehavior { [Description("flip-never")] FlipNever, - [Obsolete("This value has a typo and will be removed. Please use FlipOnOpen")] - [Description("flip-onopen")] - FilpOnOpen, [Description("flip-onopen")] FlipOnOpen, [Description("flip-always")] diff --git a/src/MudBlazor/Interfaces/ISnackbar.cs b/src/MudBlazor/Interfaces/ISnackbar.cs index fd0bc31a03e0..34aa6a71e9ed 100644 --- a/src/MudBlazor/Interfaces/ISnackbar.cs +++ b/src/MudBlazor/Interfaces/ISnackbar.cs @@ -20,9 +20,6 @@ public interface ISnackbar : IDisposable Snackbar Add(RenderFragment message, Severity severity = Severity.Normal, Action configure = null, string key = ""); Snackbar Add<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(Dictionary componentParameters = null, Severity severity = Severity.Normal, Action configure = null, string key = "") where T : IComponent; - [Obsolete("Use Add instead.", true)] - Snackbar AddNew(Severity severity, string message, Action configure); - void Clear(); void Remove(Snackbar snackbar); diff --git a/src/MudBlazor/Services/DialogResult.cs b/src/MudBlazor/Services/DialogResult.cs index 0ee3b2c9efe5..077282b421c0 100644 --- a/src/MudBlazor/Services/DialogResult.cs +++ b/src/MudBlazor/Services/DialogResult.cs @@ -15,8 +15,6 @@ public class DialogResult public object Data { get; } public Type DataType { get; } public bool Canceled { get; } - [Obsolete("Use Canceled instead", false)] - public bool Cancelled => Canceled; protected internal DialogResult(object data, Type resultType, bool canceled) { From 27e54b366ee54eca8b703b5a9e3468669b7a7c59 Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Tue, 26 Mar 2024 09:23:07 -0500 Subject: [PATCH 05/50] Docs: Add Overline to Customization/Typography (#8432) --- .../Pages/Customization/Theming/Typography.razor | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MudBlazor.Docs/Pages/Customization/Theming/Typography.razor b/src/MudBlazor.Docs/Pages/Customization/Theming/Typography.razor index 93af7684020b..8013efd30aa3 100644 --- a/src/MudBlazor.Docs/Pages/Customization/Theming/Typography.razor +++ b/src/MudBlazor.Docs/Pages/Customization/Theming/Typography.razor @@ -35,6 +35,7 @@
  • Caption
  • +
  • Overline
  • Subtitle1
  • Subtitle2
@@ -58,4 +59,4 @@ - \ No newline at end of file + From 59299720318cecde1d59d30d3bb4509530f82f02 Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Wed, 27 Mar 2024 06:19:23 -0500 Subject: [PATCH 06/50] Docs: Fix binding regressions in examples (#8494) --- .../Pages/Components/Charts/Examples/StackedBarExample1.razor | 2 +- .../DataGrid/Examples/DataGridFilteringExample.razor | 4 ++-- .../Components/DataGrid/Examples/DataGridSortingExample.razor | 2 +- .../Components/Menu/Examples/MenuAdvancedPopoverExample.razor | 4 ++-- .../Components/Menu/Examples/MenuAnchorOriginExample.razor | 4 ++-- .../Components/Menu/Examples/MenuTransformOriginExample.razor | 4 ++-- .../Components/Popover/Examples/PopoverLocationExample.razor | 4 ++-- .../Components/Stack/Examples/StackCombinedExample.razor | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/MudBlazor.Docs/Pages/Components/Charts/Examples/StackedBarExample1.razor b/src/MudBlazor.Docs/Pages/Components/Charts/Examples/StackedBarExample1.razor index 8083f0bd8129..e958f380864d 100644 --- a/src/MudBlazor.Docs/Pages/Components/Charts/Examples/StackedBarExample1.razor +++ b/src/MudBlazor.Docs/Pages/Components/Charts/Examples/StackedBarExample1.razor @@ -6,7 +6,7 @@ Selected portion of the chart: @Index
- + Bottom Top Left diff --git a/src/MudBlazor.Docs/Pages/Components/DataGrid/Examples/DataGridFilteringExample.razor b/src/MudBlazor.Docs/Pages/Components/DataGrid/Examples/DataGridFilteringExample.razor index b6a1bfcbbd8d..f6db6c698558 100644 --- a/src/MudBlazor.Docs/Pages/Components/DataGrid/Examples/DataGridFilteringExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/DataGrid/Examples/DataGridFilteringExample.razor @@ -18,7 +18,7 @@
- + Simple Column Menu Column Row @@ -26,7 +26,7 @@
- + Default Case Sensitivity Case Insensitive diff --git a/src/MudBlazor.Docs/Pages/Components/DataGrid/Examples/DataGridSortingExample.razor b/src/MudBlazor.Docs/Pages/Components/DataGrid/Examples/DataGridSortingExample.razor index 1c563eada45d..23c1492747a3 100644 --- a/src/MudBlazor.Docs/Pages/Components/DataGrid/Examples/DataGridSortingExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/DataGrid/Examples/DataGridSortingExample.razor @@ -24,7 +24,7 @@
Sort Name Column By Length - + Multiple Single None diff --git a/src/MudBlazor.Docs/Pages/Components/Menu/Examples/MenuAdvancedPopoverExample.razor b/src/MudBlazor.Docs/Pages/Components/Menu/Examples/MenuAdvancedPopoverExample.razor index 51b337811f82..d4da3bc32893 100644 --- a/src/MudBlazor.Docs/Pages/Components/Menu/Examples/MenuAdvancedPopoverExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Menu/Examples/MenuAdvancedPopoverExample.razor @@ -3,7 +3,7 @@ Anchor Origin - + Top-Left Top-Center Top-Right @@ -26,7 +26,7 @@ Transform Origin - + Top-Left Top-Center Top-Right diff --git a/src/MudBlazor.Docs/Pages/Components/Menu/Examples/MenuAnchorOriginExample.razor b/src/MudBlazor.Docs/Pages/Components/Menu/Examples/MenuAnchorOriginExample.razor index 25afdc9d6262..0bce07e5159e 100644 --- a/src/MudBlazor.Docs/Pages/Components/Menu/Examples/MenuAnchorOriginExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Menu/Examples/MenuAnchorOriginExample.razor @@ -3,14 +3,14 @@ Anchor Origin - + Top-Left Top-Right Bottom-Left Bottom-Right Transform Origin - + Top-Center diff --git a/src/MudBlazor.Docs/Pages/Components/Menu/Examples/MenuTransformOriginExample.razor b/src/MudBlazor.Docs/Pages/Components/Menu/Examples/MenuTransformOriginExample.razor index 9342dc8e254d..2e51ef454444 100644 --- a/src/MudBlazor.Docs/Pages/Components/Menu/Examples/MenuTransformOriginExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Menu/Examples/MenuTransformOriginExample.razor @@ -3,11 +3,11 @@ Anchor Origin - + Top-Left Transform Origin - + Top-Left Top-Right diff --git a/src/MudBlazor.Docs/Pages/Components/Popover/Examples/PopoverLocationExample.razor b/src/MudBlazor.Docs/Pages/Components/Popover/Examples/PopoverLocationExample.razor index f5dfa9ec05b1..bd1ecf0ae738 100644 --- a/src/MudBlazor.Docs/Pages/Components/Popover/Examples/PopoverLocationExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Popover/Examples/PopoverLocationExample.razor @@ -3,7 +3,7 @@ Anchor Origin - + Top-Left Top-Center Top-Right @@ -29,7 +29,7 @@ Transform Origin - + Top-Left Top-Center Top-Right diff --git a/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackCombinedExample.razor b/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackCombinedExample.razor index 2f307d70fd3b..1b1fb8088f37 100644 --- a/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackCombinedExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackCombinedExample.razor @@ -9,7 +9,7 @@ - + Column Row From 89ecbc8a5bf9e4b645a8ff5c254e18ffaa7166a2 Mon Sep 17 00:00:00 2001 From: Arjan Vermunt Date: Wed, 27 Mar 2024 14:43:54 +0100 Subject: [PATCH 07/50] Dialog: Rename ClassContent and ClassActions parameters (#8481) Co-authored-by: Artyom M --- .../Pages/Components/Dialog/DialogPage.razor | 2 +- .../Dialog/Examples/DialogBlurryExample.razor | 7 +- .../Examples/DialogBlurryExample_Dialog.razor | 8 +- .../Examples/DialogConfigurationExample.razor | 3 +- .../Dialog/Examples/DialogFocusExample.razor | 8 +- .../Examples/DialogFocusExample_Dialog.razor | 9 +- .../Dialog/Examples/DialogInlineExample.razor | 17 ++-- .../DialogKeyboardNavigationExample.razor | 9 +- ...alogKeyboardNavigationExample_Dialog.razor | 9 +- .../Dialog/Examples/DialogNestedExample.razor | 7 +- .../Examples/DialogNestedExample_Dialog.razor | 11 ++- .../DialogNestedExample_Dialog2.razor | 11 +-- .../Examples/DialogNestedInlineExample.razor | 23 +++-- .../DialogNestedInlineExample_Dialog.razor | 14 +-- .../Examples/DialogOptionsExample.razor | 28 +++--- .../DialogOptionsExample_Dialog.razor | 9 +- .../Examples/DialogPassingDataExample.razor | 9 +- .../DialogPassingDataExample_Dialog.razor | 22 ++--- .../Examples/DialogScrollableExample.razor | 11 ++- .../DialogScrollableExample_Dialog.razor | 31 +++---- .../Examples/DialogSetOptionsExample.razor | 6 +- .../DialogSetOptionsExample_Dialog.razor | 15 +-- .../Examples/DialogStylingExample.razor | 3 +- .../DialogStylingExample_Dialog.razor | 2 +- .../Examples/DialogTemplateExample.razor | 52 ++++++----- .../DialogTemplateExample_Dialog.razor | 18 ++-- .../Dialog/Examples/DialogUsageExample.razor | 9 +- .../Examples/DialogUsageExample_Dialog.razor | 9 +- src/MudBlazor.Docs/Shared/Appbar.razor | 2 +- .../Dialog/DialogOkCancel.razor | 9 +- .../TestComponents/Dialog/DialogRender.razor | 15 ++- .../Dialog/DialogThatUpdatesItsTitle.razor | 21 +++-- .../Dialog/DialogToggleFullscreen.razor | 7 +- ...ons.razor => DialogWithActionsClass.razor} | 4 +- ...ent.razor => DialogWithContentClass.razor} | 4 +- .../Dialog/DialogWithEventCallback.razor | 21 +++-- .../Dialog/DialogWithEventCallbackTest.razor | 30 +++--- .../DialogWithOnBackdropClickEvent.razor | 11 +-- .../Dialog/DialogWithParameters.razor | 16 +++- .../Dialog/DialogWithReturnValue.razor | 4 +- .../InlineDialogIsVisibleStateTest.razor | 7 +- .../Dialog/TestInlineDialog.razor | 21 +++-- .../Dialog/TestNestedInlineDialog.razor | 16 ++-- .../Components/DialogTests.cs | 91 +++++++------------ .../Components/Dialog/MudDialog.razor | 2 +- .../Components/Dialog/MudDialog.razor.cs | 20 ++-- 46 files changed, 336 insertions(+), 327 deletions(-) rename src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/{DialogWithClassActions.razor => DialogWithActionsClass.razor} (71%) rename src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/{DialogWithClassContent.razor => DialogWithContentClass.razor} (70%) diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/DialogPage.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/DialogPage.razor index e5a016af743a..ca8045377f52 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/DialogPage.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/DialogPage.razor @@ -102,7 +102,7 @@ - Dialog background can be changed via ClassBackground dialog option. + Dialog background can be changed via BackgroundClass dialog option. diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogBlurryExample.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogBlurryExample.razor index 5d34313af0b8..c656b76b2b1f 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogBlurryExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogBlurryExample.razor @@ -3,7 +3,7 @@ @inject IDialogService DialogService - + Open Simple Dialog @@ -15,9 +15,10 @@ @code { - private void OpenDialog() + private Task OpenDialogAsync() { var options = new DialogOptions { BackgroundClass = "my-custom-class" }; - DialogService.Show("Simple Dialog", options); + + return DialogService.ShowAsync("Simple Dialog", options); } } diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogBlurryExample_Dialog.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogBlurryExample_Dialog.razor index e37c4940a978..6a087a6c1ff7 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogBlurryExample_Dialog.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogBlurryExample_Dialog.razor @@ -11,8 +11,10 @@ @code { - [CascadingParameter] MudDialogInstance MudDialog { get; set; } + [CascadingParameter] + private MudDialogInstance MudDialog { get; set; } - void Submit() => MudDialog.Close(DialogResult.Ok(true)); - void Cancel() => MudDialog.Cancel(); + private void Submit() => MudDialog.Close(DialogResult.Ok(true)); + + private void Cancel() => MudDialog.Cancel(); } \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogConfigurationExample.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogConfigurationExample.razor index 333b6a8ed5b0..9e8ecbeb880f 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogConfigurationExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogConfigurationExample.razor @@ -8,5 +8,4 @@ NoHeader="true" Position="DialogPosition.Center" CloseOnEscapeKey="true" - BackgroundClass="my-custom-class" -/> \ No newline at end of file + BackgroundClass="my-custom-class"/> \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogFocusExample.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogFocusExample.razor index c84eb0c9f0cd..405345a14e08 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogFocusExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogFocusExample.razor @@ -3,16 +3,16 @@ @inject IDialogService DialogService - + Open Dialog - @code { - private void OpenDialog() + private Task OpenDialogAsync() { var options = new DialogOptions { CloseOnEscapeKey = true }; - DialogService.Show("Last element focused", options); + + return DialogService.ShowAsync("Last element focused", options); } } diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogFocusExample_Dialog.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogFocusExample_Dialog.razor index 55d23083d52e..1bea28239c1d 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogFocusExample_Dialog.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogFocusExample_Dialog.razor @@ -11,10 +11,11 @@ - @code { - [CascadingParameter] MudDialogInstance MudDialog { get; set; } + [CascadingParameter] + private MudDialogInstance MudDialog { get; set; } + + private void Submit() => MudDialog.Close(DialogResult.Ok(true)); - void Submit() => MudDialog.Close(DialogResult.Ok(true)); - void Cancel() => MudDialog.Cancel(); + private void Cancel() => MudDialog.Cancel(); } \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogInlineExample.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogInlineExample.razor index 2f3f54f42cd7..ca94f5e648f3 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogInlineExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogInlineExample.razor @@ -4,10 +4,10 @@ Edit rating - +
- + Edit rating @@ -15,7 +15,7 @@

How awesome are inline dialogs?

- +
Close @@ -23,10 +23,11 @@
@code { - private bool visible; - private int rating; - private void OpenDialog() => visible = true; - void Submit() => visible = false; + private bool _visible; + private int _rating; + private readonly DialogOptions _dialogOptions = new() { FullWidth = true }; - private DialogOptions dialogOptions = new() { FullWidth = true }; + private void OpenDialog() => _visible = true; + + private void Submit() => _visible = false; } \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogKeyboardNavigationExample.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogKeyboardNavigationExample.razor index 92363a09aa7c..bb8e9e27a3ed 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogKeyboardNavigationExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogKeyboardNavigationExample.razor @@ -3,17 +3,16 @@ @inject IDialogService DialogService - + Open Dialog - @code { - private void OpenDialog() + private Task OpenDialogAsync() { - DialogOptions closeOnEscapeKey = new DialogOptions() { CloseOnEscapeKey = true }; + var options = new DialogOptions { CloseOnEscapeKey = true }; - DialogService.Show("Simple Dialog", closeOnEscapeKey); + return DialogService.ShowAsync("Simple Dialog", options); } } diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogKeyboardNavigationExample_Dialog.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogKeyboardNavigationExample_Dialog.razor index ab2b1ccd795c..c8dcfb159691 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogKeyboardNavigationExample_Dialog.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogKeyboardNavigationExample_Dialog.razor @@ -16,10 +16,11 @@
- @code { - [CascadingParameter] MudDialogInstance MudDialog { get; set; } + [CascadingParameter] + private MudDialogInstance MudDialog { get; set; } + + private void Submit() => MudDialog.Close(DialogResult.Ok(true)); - void Submit() => MudDialog.Close(DialogResult.Ok(true)); - void Cancel() => MudDialog.Cancel(); + private void Cancel() => MudDialog.Cancel(); } diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogNestedExample.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogNestedExample.razor index 8f9e570f4a8d..5be0a3ffb57a 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogNestedExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogNestedExample.razor @@ -2,14 +2,15 @@ @inject IDialogService DialogService - + Open Simple Dialog @code { - private void OpenDialog() + private Task OpenDialogAsync() { var options = new DialogOptions { CloseOnEscapeKey = true }; - var dialog = DialogService.Show("First Level Dialog", options); + + return DialogService.ShowAsync("First Level Dialog", options); } } diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogNestedExample_Dialog.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogNestedExample_Dialog.razor index f900f9a92904..a30662695a7a 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogNestedExample_Dialog.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogNestedExample_Dialog.razor @@ -8,18 +8,19 @@ Cancel - Open Second Dialog + Open Second Dialog @code { - [CascadingParameter] MudDialogInstance MudDialog { get; set; } + [CascadingParameter] + private MudDialogInstance MudDialog { get; set; } - void Cancel() => MudDialog.Cancel(); + private void Cancel() => MudDialog.Cancel(); - private void OpenSecondDialog() + private Task OpenSecondDialogAsync() { - DialogService.Show("Second Level Dialog"); + return DialogService.ShowAsync("Second Level Dialog"); } } \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogNestedExample_Dialog2.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogNestedExample_Dialog2.razor index 9b718810c82b..61649ee7afa9 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogNestedExample_Dialog2.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogNestedExample_Dialog2.razor @@ -12,13 +12,10 @@ @code { - [CascadingParameter] MudDialogInstance MudDialog { get; set; } + [CascadingParameter] + private MudDialogInstance MudDialog { get; set; } - void Submit() => MudDialog.Close(DialogResult.Ok(true)); - void Cancel() => MudDialog.Cancel(); + private void Cancel() => MudDialog.Cancel(); - private void CancelAll() - { - MudDialog.CancelAll(); - } + private void CancelAll() => MudDialog.CancelAll(); } \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogNestedInlineExample.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogNestedInlineExample.razor index 0e39f9436e23..7791e3f53086 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogNestedInlineExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogNestedInlineExample.razor @@ -3,15 +3,15 @@ @inject IDialogService DialogService Open Inline -Open With Show +Open With Show @*Outer inline dialog*@ - + Hi There, I'm an inline dialog! Open Nested @*Nested inline dialog*@ - + Nested inline dialog! @@ -26,14 +26,17 @@ @code { - private bool visible; - private bool nestedVisible; + private bool _visible; + private bool _nestedVisible; - private void Open() => visible = true; - private void Close() => visible = false; - private void OpenNested() => nestedVisible = true; - private void CloseNested() => nestedVisible = false; + private void Open() => _visible = true; + + private void Close() => _visible = false; + + private void OpenNested() => _nestedVisible = true; + + private void CloseNested() => _nestedVisible = false; @*Open a non-inline dialog component that nests an inline dialog*@ - private void Open2() => DialogService.Show(); + private Task Open2Async() => DialogService.ShowAsync(); } diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogNestedInlineExample_Dialog.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogNestedInlineExample_Dialog.razor index 80e8c575b927..e0bf7a5fd5c8 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogNestedInlineExample_Dialog.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogNestedInlineExample_Dialog.razor @@ -6,7 +6,7 @@ Hi There, I'm a regular dialog! Open Nested @*Nested dialog*@ - + Nested inline dialog! @@ -20,11 +20,13 @@ - @code { - [CascadingParameter] MudDialogInstance MudDialog { get; set; } + private bool _nestedVisible; + + [CascadingParameter] + private MudDialogInstance MudDialog { get; set; } + + private void OpenNested() => _nestedVisible = true; - private bool nestedVisible; - private void OpenNested() => nestedVisible = true; - private void CloseNested() => nestedVisible = false; + private void CloseNested() => _nestedVisible = false; } \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogOptionsExample.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogOptionsExample.razor index f830de51fa41..833e5881a5b3 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogOptionsExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogOptionsExample.razor @@ -2,24 +2,24 @@ @inject IDialogService Dialog -Open MaxWidth Dialog -Close Button Dialog -No header Dialog -Disable backdrop dialog -Full Screen Dialog -Top Center Dialog +Open MaxWidth Dialog +Close Button Dialog +No header Dialog +Disable backdrop dialog +Full Screen Dialog +Top Center Dialog @code { - DialogOptions maxWidth = new DialogOptions() { MaxWidth = MaxWidth.Medium, FullWidth = true }; - DialogOptions closeButton = new DialogOptions() { CloseButton = true }; - DialogOptions noHeader = new DialogOptions() { NoHeader = true }; - DialogOptions disableBackdropClick = new DialogOptions() { DisableBackdropClick = true }; - DialogOptions fullScreen = new DialogOptions() { FullScreen = true, CloseButton = true }; - DialogOptions topCenter = new DialogOptions() { Position = DialogPosition.TopCenter }; + private readonly DialogOptions _maxWidth = new() { MaxWidth = MaxWidth.Medium, FullWidth = true }; + private readonly DialogOptions _closeButton = new() { CloseButton = true }; + private readonly DialogOptions _noHeader = new() { NoHeader = true }; + private readonly DialogOptions _disableBackdropClick = new() { DisableBackdropClick = true }; + private readonly DialogOptions _fullScreen = new() { FullScreen = true, CloseButton = true }; + private readonly DialogOptions _topCenter = new() { Position = DialogPosition.TopCenter }; - private void OpenDialog(DialogOptions options) + private Task OpenDialogAsync(DialogOptions options) { - Dialog.Show("Custom Options Dialog", options); + return Dialog.ShowAsync("Custom Options Dialog", options); } } \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogOptionsExample_Dialog.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogOptionsExample_Dialog.razor index 9d421488365a..6a087a6c1ff7 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogOptionsExample_Dialog.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogOptionsExample_Dialog.razor @@ -10,10 +10,11 @@ - @code { - [CascadingParameter] MudDialogInstance MudDialog { get; set; } + [CascadingParameter] + private MudDialogInstance MudDialog { get; set; } + + private void Submit() => MudDialog.Close(DialogResult.Ok(true)); - void Submit() => MudDialog.Close(DialogResult.Ok(true)); - void Cancel() => MudDialog.Cancel(); + private void Cancel() => MudDialog.Cancel(); } \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogPassingDataExample.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogPassingDataExample.razor index 311fa8e14bc0..c7a9c3820521 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogPassingDataExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogPassingDataExample.razor @@ -8,16 +8,16 @@ { @item.Name - Delete + Delete }
@code { - async Task DeleteServer(Server server) + private async Task DeleteServerAsync(Server server) { - var parameters = new DialogParameters { { x => x.server, server } }; + var parameters = new DialogParameters { { x => x.Server, server } }; var dialog = await DialogService.ShowAsync("Delete Server", parameters); var result = await dialog.Result; @@ -39,6 +39,3 @@ new Server{ Id = Guid.NewGuid(), Name = "Server4", Location = "Germany", IpAddress = "193.168.1.1" }, }; } - - - diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogPassingDataExample_Dialog.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogPassingDataExample_Dialog.razor index b9a804bedf15..1828a5c6e2c6 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogPassingDataExample_Dialog.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogPassingDataExample_Dialog.razor @@ -11,10 +11,10 @@ - - - - + + + + Cancel @@ -22,21 +22,19 @@ - @code { - [CascadingParameter] MudDialogInstance MudDialog { get; set; } + [CascadingParameter] + private MudDialogInstance MudDialog { get; set; } - [Parameter] public Server server { get; set; } = new Server(); + [Parameter] + public Server Server { get; set; } = new Server(); - private void Cancel() - { - MudDialog.Cancel(); - } + private void Cancel() => MudDialog.Cancel(); private void DeleteServer() { //In a real world scenario this bool would probably be a service to delete the item from api/database Snackbar.Add("Server Deleted", Severity.Success); - MudDialog.Close(DialogResult.Ok(server.Id)); + MudDialog.Close(DialogResult.Ok(Server.Id)); } } diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogScrollableExample.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogScrollableExample.razor index d1dde8d68484..4d3a216124d4 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogScrollableExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogScrollableExample.razor @@ -2,20 +2,21 @@ @inject IDialogService DialogService - + Scrollable Dialog @code { - bool license_accepted = false; + private bool _licenseAccepted = false; - async Task OpenDialog() + private async Task OpenDialogAsync() { - var result = await DialogService.Show("MudBlazor License").Result; + var dialog = await DialogService.ShowAsync("MudBlazor License"); + var result = await dialog.Result; if (!result.Canceled) { - license_accepted = (bool)(result.Data ?? false); + _licenseAccepted = (bool)(result.Data ?? false); } } } diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogScrollableExample_Dialog.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogScrollableExample_Dialog.razor index 3c50db6cdf00..12ce67d9916c 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogScrollableExample_Dialog.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogScrollableExample_Dialog.razor @@ -1,17 +1,15 @@ -@using System.Net -@using System.Text -@namespace MudBlazor.Docs.Examples +@namespace MudBlazor.Docs.Examples - @if (Loading) + @if (_loading) { } else { - @LicenseText + @_licenseText } @@ -22,24 +20,23 @@ @code { - [CascadingParameter] MudDialogInstance MudDialog { get; set; } + private string _licenseText; + private bool _loading; - [Inject] HttpClient HttpClient { get; set; } + [CascadingParameter] + private MudDialogInstance MudDialog { get; set; } + + [Inject] + private HttpClient HttpClient { get; set; } protected override async Task OnInitializedAsync() { await base.OnInitializedAsync(); - Loading = true; + _loading = true; var response = await HttpClient.GetAsync("https://raw.githubusercontent.com/MudBlazor/MudBlazor/master/LICENSE"); - LicenseText = await response.Content.ReadAsStringAsync(); - Loading = false; + _licenseText = await response.Content.ReadAsStringAsync(); + _loading = false; } - private string LicenseText; - private bool Loading = false; - - private void Ok() - { - MudDialog.Close(DialogResult.Ok(true)); - } + private void Ok() => MudDialog.Close(DialogResult.Ok(true)); } diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogSetOptionsExample.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogSetOptionsExample.razor index fc1089325a86..a3551aec7a37 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogSetOptionsExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogSetOptionsExample.razor @@ -2,14 +2,14 @@ @inject IDialogService DialogService - + Options Dialog @code { - private void OpenDialog() + private Task OpenDialogAsync() { - DialogService.Show("Options Dialog"); + return DialogService.ShowAsync("Options Dialog"); } } diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogSetOptionsExample_Dialog.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogSetOptionsExample_Dialog.razor index 85594c1ff535..0a97c8d48299 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogSetOptionsExample_Dialog.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogSetOptionsExample_Dialog.razor @@ -15,28 +15,29 @@ @code { - [CascadingParameter] MudDialogInstance MudDialog { get; set; } + [CascadingParameter] + private MudDialogInstance MudDialog { get; set; } - void Close() => MudDialog.Close(DialogResult.Ok(true)); + private void Close() => MudDialog.Close(DialogResult.Ok(true)); - void ChangeTitle() + private void ChangeTitle() { - MudDialog.SetTitle("Current time is: " + DateTime.Now); + MudDialog.SetTitle($"Current time is: {DateTime.Now}"); } - void ToggleCloseButton() + private void ToggleCloseButton() { MudDialog.Options.CloseButton = !(MudDialog.Options.CloseButton ?? false); MudDialog.SetOptions(MudDialog.Options); } - void ToggleFullWidth() + private void ToggleFullWidth() { MudDialog.Options.FullWidth = !(MudDialog.Options.FullWidth ?? true); MudDialog.SetOptions(MudDialog.Options); } - void ToggleHeader() + private void ToggleHeader() { MudDialog.Options.NoHeader = !(MudDialog.Options.NoHeader ?? false); MudDialog.SetOptions(MudDialog.Options); diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogStylingExample.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogStylingExample.razor index 308c007ecb6d..d34f2e465f03 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogStylingExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogStylingExample.razor @@ -2,16 +2,15 @@ @inject IDialogService DialogService - Open Custom Styled Dialog - @code { private Task OpenDialogAsync() { var options = new DialogOptions { CloseOnEscapeKey = true, CloseButton = true }; + return DialogService.ShowAsync("Styling Example Dialog", options); } } diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogStylingExample_Dialog.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogStylingExample_Dialog.razor index de245176163c..abb204e5a3f8 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogStylingExample_Dialog.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogStylingExample_Dialog.razor @@ -1,6 +1,6 @@ @namespace MudBlazor.Docs.Examples - + Dialog Content diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogTemplateExample.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogTemplateExample.razor index 1383f2a16450..ce69182b56d7 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogTemplateExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogTemplateExample.razor @@ -3,41 +3,47 @@ @inject IDialogService DialogService -Delete Records -Remove Email -Slow Computer +Delete Records +Remove Email +Slow Computer @code { - private void DeleteUser() + private Task DeleteUserAsync() { - var parameters = new DialogParameters(); - parameters.Add(x => x.ContentText, "Do you really want to delete these records? This process cannot be undone."); - parameters.Add(x => x.ButtonText, "Delete"); - parameters.Add(x => x.Color, Color.Error); + var parameters = new DialogParameters + { + { x => x.ContentText, "Do you really want to delete these records? This process cannot be undone." }, + { x => x.ButtonText, "Delete" }, + { x => x.Color, Color.Error } + }; var options = new DialogOptions() { CloseButton = true, MaxWidth = MaxWidth.ExtraSmall }; - DialogService.Show("Delete", parameters, options); + return DialogService.ShowAsync("Delete", parameters, options); } - private void Confirm() + private Task ConfirmAsync() { - var parameters = new DialogParameters(); - parameters.Add(x => x.ContentText, "Are you sure you want to remove thisguy@emailz.com from this account?"); - parameters.Add(x => x.ButtonText, "Yes"); - parameters.Add(x => x.Color, Color.Success); - - DialogService.Show("Confirm", parameters); + var parameters = new DialogParameters + { + { x => x.ContentText, "Are you sure you want to remove thisguy@emailz.com from this account?" }, + { x => x.ButtonText, "Yes" }, + { x => x.Color, Color.Success } + }; + + return DialogService.ShowAsync("Confirm", parameters); } - private void Download() + private Task DownloadAsync() { - var parameters = new DialogParameters(); - parameters.Add(x => x.ContentText, "Your computer seems very slow, click the download button to download free RAM."); - parameters.Add(x => x.ButtonText, "Download"); - parameters.Add(x => x.Color, Color.Info); - - DialogService.Show("Slow Computer Detected", parameters); + var parameters = new DialogParameters + { + { x => x.ContentText, "Your computer seems very slow, click the download button to download free RAM." }, + { x => x.ButtonText, "Download" }, + { x => x.Color, Color.Info } + }; + + return DialogService.ShowAsync("Slow Computer Detected", parameters); } } diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogTemplateExample_Dialog.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogTemplateExample_Dialog.razor index 93d41d46d0af..e7912436d259 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogTemplateExample_Dialog.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogTemplateExample_Dialog.razor @@ -10,16 +10,20 @@ - @code { - [CascadingParameter] MudDialogInstance MudDialog { get; set; } + [CascadingParameter] + private MudDialogInstance MudDialog { get; set; } + + [Parameter] + public string ContentText { get; set; } - [Parameter] public string ContentText { get; set; } + [Parameter] + public string ButtonText { get; set; } - [Parameter] public string ButtonText { get; set; } + [Parameter] + public Color Color { get; set; } - [Parameter] public Color Color { get; set; } + private void Submit() => MudDialog.Close(DialogResult.Ok(true)); - void Submit() => MudDialog.Close(DialogResult.Ok(true)); - void Cancel() => MudDialog.Cancel(); + private void Cancel() => MudDialog.Cancel(); } diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogUsageExample.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogUsageExample.razor index d3d77095f4ac..c47fc0eeaf6a 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogUsageExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogUsageExample.razor @@ -2,17 +2,16 @@ @inject IDialogService DialogService - - + Open Simple Dialog - @code { - private void OpenDialog() + private Task OpenDialogAsync() { var options = new DialogOptions { CloseOnEscapeKey = true }; - DialogService.Show("Simple Dialog", options); + + return DialogService.ShowAsync("Simple Dialog", options); } } diff --git a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogUsageExample_Dialog.razor b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogUsageExample_Dialog.razor index 9d421488365a..6a087a6c1ff7 100644 --- a/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogUsageExample_Dialog.razor +++ b/src/MudBlazor.Docs/Pages/Components/Dialog/Examples/DialogUsageExample_Dialog.razor @@ -10,10 +10,11 @@ - @code { - [CascadingParameter] MudDialogInstance MudDialog { get; set; } + [CascadingParameter] + private MudDialogInstance MudDialog { get; set; } + + private void Submit() => MudDialog.Close(DialogResult.Ok(true)); - void Submit() => MudDialog.Close(DialogResult.Ok(true)); - void Cancel() => MudDialog.Cancel(); + private void Cancel() => MudDialog.Cancel(); } \ No newline at end of file diff --git a/src/MudBlazor.Docs/Shared/Appbar.razor b/src/MudBlazor.Docs/Shared/Appbar.razor index 09cfbbe27b63..dffc3516df6b 100644 --- a/src/MudBlazor.Docs/Shared/Appbar.razor +++ b/src/MudBlazor.Docs/Shared/Appbar.razor @@ -88,7 +88,7 @@
- + + Wabalabadubdub! @@ -11,8 +11,9 @@ @code { - [CascadingParameter] public MudDialogInstance MudDialog { get; set; } + [CascadingParameter] + public MudDialogInstance MudDialog { get; set; } - void Submit() => MudDialog.Close(DialogResult.Ok(true)); - void Cancel() => MudDialog.Cancel(); + private void Submit() => MudDialog.Close(DialogResult.Ok(true)); + private void Cancel() => MudDialog.Cancel(); } \ No newline at end of file diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogRender.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogRender.razor index af005320fd03..5a0bb5ec9f1a 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogRender.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogRender.razor @@ -14,13 +14,16 @@ public static int OnInitializedCount = 0; public static int OnParametersSetCount = 0; - [CascadingParameter] public MudDialogInstance MudDialog { get; set; } + [CascadingParameter] + public MudDialogInstance MudDialog { get; set; } - void Submit() => MudDialog.Close(DialogResult.Ok(true)); - void Cancel() => MudDialog.Cancel(); + private void Submit() => MudDialog.Close(DialogResult.Ok(true)); + private void Cancel() => MudDialog.Cancel(); protected override async Task OnInitializedAsync() { + await base.OnInitializedAsync(); + await Task.Delay(10); OnInitializedCount++; @@ -28,6 +31,8 @@ protected override async Task OnParametersSetAsync() { + await base.OnParametersSetAsync(); + await Task.Delay(10); OnParametersSetCount++; @@ -35,8 +40,12 @@ protected override async Task OnAfterRenderAsync(bool firstRender) { + await base.OnAfterRenderAsync(firstRender); + if (firstRender) + { return; + } await Task.Delay(10); diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogThatUpdatesItsTitle.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogThatUpdatesItsTitle.razor index 34062ae836f8..129591afa7ab 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogThatUpdatesItsTitle.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogThatUpdatesItsTitle.razor @@ -1,10 +1,10 @@ @using MudBlazor.Interfaces - Title: @textTest + Title: @_textTest - Body: @textTest + Body: @_textTest Cancel @@ -14,13 +14,18 @@ @code { - [CascadingParameter] MudDialogInstance MudDialog { get; set; } - string textTest; - void Submit(){ - textTest = "Test123"; + private string _textTest; + + [CascadingParameter] + private MudDialogInstance MudDialog { get; set; } + + private void Submit() + { + _textTest = "Test123"; ((IMudStateHasChanged)MudDialog).StateHasChanged(); } - void Cancel(){ - + + private void Cancel() + { } } diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogToggleFullscreen.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogToggleFullscreen.razor index 14c43a376a48..c60b5300b56e 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogToggleFullscreen.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogToggleFullscreen.razor @@ -9,11 +9,12 @@ @code { - [CascadingParameter] MudDialogInstance MudDialog { get; set; } + [CascadingParameter] + private MudDialogInstance MudDialog { get; set; } - void Close() => MudDialog.Close(DialogResult.Ok(true)); + private void Close() => MudDialog.Close(DialogResult.Ok(true)); - void ToggleFullscreen() + private void ToggleFullscreen() { MudDialog.Options.FullScreen = !(MudDialog.Options.FullScreen ?? false); MudDialog.SetOptions(MudDialog.Options); diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithClassActions.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithActionsClass.razor similarity index 71% rename from src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithClassActions.razor rename to src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithActionsClass.razor index 471729edeef8..092a9e76305f 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithClassActions.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithActionsClass.razor @@ -1,6 +1,6 @@ @namespace MudBlazor.UnitTests.TestComponents - + @@ -12,5 +12,5 @@ private MudDialogInstance MudDialog { get; set; } [Parameter] - public string ClassActions { get; set; } = string.Empty; + public string ActionsClass { get; set; } = string.Empty; } \ No newline at end of file diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithClassContent.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithContentClass.razor similarity index 70% rename from src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithClassContent.razor rename to src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithContentClass.razor index 7bd906636fa5..0520aa7191ce 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithClassContent.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithContentClass.razor @@ -1,6 +1,6 @@ @namespace MudBlazor.UnitTests.TestComponents - + @@ -10,7 +10,7 @@ private MudDialogInstance MudDialog { get; set; } [Parameter] - public string ClassContent { get; set; } = string.Empty; + public string ContentClass { get; set; } = string.Empty; [Parameter] public bool DisableSidePadding { get; set; } diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithEventCallback.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithEventCallback.razor index d056910650b6..532d5dc686f3 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithEventCallback.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithEventCallback.razor @@ -1,7 +1,7 @@  Dialog Content - +
Click here!
@@ -14,15 +14,18 @@ @code { - [CascadingParameter] MudDialogInstance MudDialog { get; set; } + [CascadingParameter] + private MudDialogInstance MudDialog { get; set; } - [Parameter] public EventCallback OnSearch { get; set; } - [Parameter] public EventCallback OnClick { get; set; } + [Parameter] + public EventCallback OnSearch { get; set; } - void Submit() => MudDialog.Close(DialogResult.Ok(true)); - void Cancel() => MudDialog.Cancel(); + [Parameter] + public EventCallback OnClick { get; set; } - async void OnTextChanged(string text) { - await OnSearch.InvokeAsync(text); - } + private void Submit() => MudDialog.Close(DialogResult.Ok(true)); + + private void Cancel() => MudDialog.Cancel(); + + private Task OnTextChangedAsync(string text) => OnSearch.InvokeAsync(text); } diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithEventCallbackTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithEventCallbackTest.razor index 11dd82b30eab..f3109085f6dd 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithEventCallbackTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithEventCallbackTest.razor @@ -5,33 +5,37 @@ Open Simple Dialog

-Search Text: @searchText +Search Text: @_searchText

-Clicked: @(clicked ? "Yes" : "No") +Clicked: @(_clicked ? "Yes" : "No") @code { - string searchText; - bool clicked = false; + private string _searchText; + private bool _clicked; - private void OpenDialog() + private Task OpenDialog() { - DialogService.Show("Simple Dialog", - new DialogParameters(){ - {"OnSearch", new EventCallbackFactory().Create(this, new Action(OnSearch)) }, - {"OnClick", new EventCallbackFactory().Create(this, OnClick) }, + return DialogService.ShowAsync("Simple Dialog", + new DialogParameters + { + {"OnSearch", new EventCallbackFactory().Create(this, new Action(OnSearch)) }, + {"OnClick", new EventCallbackFactory().Create(this, OnClickAsync) }, }); } - private void OnSearch(string text){ - searchText=text; + private void OnSearch(string text) + { + _searchText = text; StateHasChanged(); } - private Task OnClick() { - clicked = true; + private Task OnClickAsync() + { + _clicked = true; StateHasChanged(); + return Task.CompletedTask; } } diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithOnBackdropClickEvent.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithOnBackdropClickEvent.razor index f35f6977fe82..48eadedab713 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithOnBackdropClickEvent.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithOnBackdropClickEvent.razor @@ -1,21 +1,20 @@ @using MudBlazor.Interfaces - Title: @textTest + Title: @_textTest @code { + private string _textTest; [CascadingParameter] - MudDialogInstance MudDialog { get; set; } + private MudDialogInstance MudDialog { get; set; } - string textTest; - - void OnBackdropClick() + private void OnBackdropClick() { - textTest = "Backdrop clicked"; + _textTest = "Backdrop clicked"; ((IMudStateHasChanged)MudDialog).StateHasChanged(); } } \ No newline at end of file diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithParameters.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithParameters.razor index 09e101e14615..8f33c018fc00 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithParameters.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithParameters.razor @@ -12,15 +12,21 @@
@code { - [CascadingParameter] MudDialogInstance MudDialog { get; set; } - [Parameter] public string TestValue { get; set; } - [Parameter] public Color Color_Test { get; set; } + [CascadingParameter] + private MudDialogInstance MudDialog { get; set; } + + [Parameter] + public string TestValue { get; set; } + + [Parameter] + public Color ColorTest { get; set; } + + public int ParametersSetCounter { get; private set; } - public int ParamtersSetCounter { get; private set; } protected override void OnParametersSet() { base.OnParametersSet(); - ParamtersSetCounter++; + ParametersSetCounter++; } private void OnTest() diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithReturnValue.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithReturnValue.razor index b5e31d383bc2..f0be5ee7ed7d 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithReturnValue.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/DialogWithReturnValue.razor @@ -11,6 +11,6 @@
@code { - [CascadingParameter] MudDialogInstance MudDialog { get; set; } - + [CascadingParameter] + private MudDialogInstance MudDialog { get; set; } } \ No newline at end of file diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/InlineDialogIsVisibleStateTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/InlineDialogIsVisibleStateTest.razor index ef403bffac2b..f9daf2f83308 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/InlineDialogIsVisibleStateTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/InlineDialogIsVisibleStateTest.razor @@ -6,7 +6,7 @@
- + Edit rating @@ -20,6 +20,7 @@ @code { - private bool visible; - private void OpenDialog() => visible = true; + private bool _visible; + + private void OpenDialog() => _visible = true; } diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/TestInlineDialog.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/TestInlineDialog.razor index ce949b67206e..8f1e66d1b0a1 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/TestInlineDialog.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/TestInlineDialog.razor @@ -1,15 +1,15 @@ @namespace MudBlazor.UnitTests.TestComponents @inject IDialogService DialogService -Open +Open - + Wabalabadubdub! - + - Close + Close Close and open @@ -17,13 +17,14 @@ @code { public static string __description__ = "Click on open will open the inlined dialog"; - bool visible; - private int rating; + private bool _visible; + private int _rating; + private readonly DialogOptions _inlineOptions = new() { FullWidth = true }; + + Task CloseAndOpen() + { + _visible = false; - Task CloseAndOpen() { - visible=false; return DialogService.ShowMessageBox(title: "hello from inline", message: "BUG4871", yesText: "BUG4871"); } - - private DialogOptions inlineOptions = new() { FullWidth = true }; } \ No newline at end of file diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/TestNestedInlineDialog.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/TestNestedInlineDialog.razor index 0308c2caeb7e..41dbefc285c0 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/TestNestedInlineDialog.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Dialog/TestNestedInlineDialog.razor @@ -1,28 +1,28 @@ @namespace MudBlazor.UnitTests.TestComponents -Open +Open - + Scorpiany! - Open Nested - + Open Nested + Nested dialog! - Close + Close - Close + Close @code { public static string __description__ = "Click on open will open the inlined dialog, and the nested dialog can be opened with a second click"; - bool visible; - bool nestedVisible; + private bool _visible; + private bool _nestedVisible; } diff --git a/src/MudBlazor.UnitTests/Components/DialogTests.cs b/src/MudBlazor.UnitTests/Components/DialogTests.cs index 64d62a72052e..83ba38406121 100644 --- a/src/MudBlazor.UnitTests/Components/DialogTests.cs +++ b/src/MudBlazor.UnitTests/Components/DialogTests.cs @@ -1,10 +1,5 @@ - -#pragma warning disable CS1998 // async without await - -using System; +using System; using System.Linq; -using System.Runtime.CompilerServices; -using System.Threading; using System.Threading.Tasks; using Bunit; using FluentAssertions; @@ -31,11 +26,11 @@ public async Task LifecycleTest() IDialogReference dialogReference = null; await comp.InvokeAsync(async () => { - dialogReference = service?.Show(); + dialogReference = await service?.ShowAsync(); var result1 = await dialogReference.Result; //The second Dialog is added here, but the first dialog is still in the _dialogs collection of the dialogprovider, as only the result task was set to completion. //So DialogProvider will render again with 2 dialogs, but 1 is completed. This one needs to be excluded from rendering to prevent double initialize with no params. - dialogReference = service?.Show(); + dialogReference = await service?.ShowAsync(); var result2 = await dialogReference.Result; }); DialogRender.OnInitializedCount.Should().Be(2); @@ -94,7 +89,7 @@ public async Task SimpleTest() /// one containing the open button and the inline dialog ///
[Test] - public async Task InlineDialogTest() + public void InlineDialogTest() { var comp = Context.RenderComponent(); comp.Markup.Trim().Should().BeEmpty(); @@ -119,7 +114,7 @@ public async Task InlineDialogTest() /// Nested dialogs should not appear unless manually shown ///
[Test] - public async Task NestedInlineDialogTest() + public void NestedInlineDialogTest() { var provider = Context.RenderComponent(); provider.Markup.Trim().Should().BeEmpty(); @@ -152,7 +147,7 @@ public async Task NestedInlineDialogTest() [Test] public async Task InlineDialog_Should_UpdateIsVisibleOnClose() { - await ImproveChanceOfSuccess(async () => + await ImproveChanceOfSuccess(() => { var comp = Context.RenderComponent(); comp.Markup.Trim().Should().BeEmpty(); @@ -174,6 +169,8 @@ await ImproveChanceOfSuccess(async () => comp.WaitForAssertion(() => comp.Find("div.mud-overlay").Should().NotBeNull()); comp.Find("div.mud-overlay").Click(); comp.WaitForAssertion(() => comp.Markup.Trim().Should().BeEmpty(), TimeSpan.FromSeconds(5)); + + return Task.CompletedTask; }); } @@ -208,7 +205,7 @@ public async Task InlineDialogShouldHonorClassAndStyle() /// Dialog inline should not be closed after any event inside ///
[Test] - public async Task InlineDialogShouldNotCloseAfterStateHasChanged() + public void InlineDialogShouldNotCloseAfterStateHasChanged() { var comp = Context.RenderComponent(); comp.Markup.Trim().Should().BeEmpty(); @@ -262,9 +259,11 @@ public async Task DialogShouldNotOverwriteParameters() service.Should().NotBe(null); IDialogReference dialogReference = null; - var parameters = new DialogParameters(); - parameters.Add("TestValue", "test"); - parameters.Add("Color_Test", Color.Error); // !! comment me !! + var parameters = new DialogParameters + { + { x => x.TestValue, "test" }, + { x => x.ColorTest, Color.Error } // !! comment me !! + }; await comp.InvokeAsync(() => dialogReference = service?.Show(string.Empty, parameters)); dialogReference.Should().NotBe(null); @@ -279,7 +278,7 @@ public async Task DialogShouldNotOverwriteParameters() comp.FindAll("button")[0].Click(); ((DialogWithParameters)dialogReference.Dialog).TestValue.Should().Be("new_test"); - ((DialogWithParameters)dialogReference.Dialog).ParamtersSetCounter.Should().Be(1); + ((DialogWithParameters)dialogReference.Dialog).ParametersSetCounter.Should().Be(1); textField.Text.Should().Be("new_test"); } @@ -306,7 +305,7 @@ public async Task DialogShouldHonorClassAndStyle() } [Test] - public async Task PassingEventCallbackToDialogViaParameters() + public void PassingEventCallbackToDialogViaParameters() { var comp = Context.RenderComponent(); comp.Markup.Trim().Should().BeEmpty(); @@ -443,7 +442,7 @@ public async Task DialogHandlesOnBackdropClickEvent() /// https://github.com/MudBlazor/MudBlazor/issues/4871 /// [Test] - public async Task InlineDialogBug4871Test() + public void InlineDialogBug4871Test() { var comp = Context.RenderComponent(); comp.Markup.Trim().Should().BeEmpty(); @@ -627,9 +626,11 @@ public async Task AsyncDialogShouldNotOverwriteParameters() var service = Context.Services.GetService() as DialogService; service.Should().NotBe(null); - var parameters = new DialogParameters(); - parameters.Add("TestValue", "test"); - parameters.Add("Color_Test", Color.Error); // !! comment me !! + var parameters = new DialogParameters + { + { x => x.TestValue, "test" }, + { x => x.ColorTest, Color.Error } // !! comment me !! + }; var dialogReferenceLazy = new Lazy>(() => service?.ShowAsync(string.Empty, parameters)); await comp.InvokeAsync(() => dialogReferenceLazy.Value); @@ -646,7 +647,7 @@ public async Task AsyncDialogShouldNotOverwriteParameters() comp.FindAll("button")[0].Click(); ((DialogWithParameters)dialogReference.Dialog).TestValue.Should().Be("new_test"); - ((DialogWithParameters)dialogReference.Dialog).ParamtersSetCounter.Should().Be(1); + ((DialogWithParameters)dialogReference.Dialog).ParametersSetCounter.Should().Be(1); textField.Text.Should().Be("new_test"); } @@ -851,7 +852,7 @@ public async Task AsyncDialogParametersGenericShouldPassParameters() var parameters = new DialogParameters { { x => x.TestValue, "test" }, - { x => x.Color_Test, Color.Error } + { x => x.ColorTest, Color.Error } }; await comp.InvokeAsync(() => dialogReference = service?.Show(string.Empty, parameters)); @@ -865,7 +866,7 @@ public async Task AsyncDialogParametersGenericShouldPassParameters() [TestCase("", true, "mud-dialog-content mud-dialog-no-side-padding")] [TestCase("my-class", false, "mud-dialog-content my-class")] [TestCase("my-class", true, "mud-dialog-content mud-dialog-no-side-padding my-class")] - public async Task DialogWithClassContentValueShouldRenderExpectedClassname(string classContent, bool disablePadding, string expectedClassname) + public async Task DialogWithContentClassValueShouldRenderExpectedClassname(string contentClass, bool disablePadding, string expectedClassname) { var comp = Context.RenderComponent(); comp.Markup.Trim().Should().BeEmpty(); @@ -873,13 +874,13 @@ public async Task DialogWithClassContentValueShouldRenderExpectedClassname(strin service.Should().NotBeNull(); IDialogReference dialogReference = null; - var parameters = new DialogParameters + var parameters = new DialogParameters { - { x => x.ClassContent, classContent }, + { x => x.ContentClass, contentClass }, { x => x.DisableSidePadding, disablePadding } }; - await comp.InvokeAsync(async () => dialogReference = await service!.ShowAsync(string.Empty, parameters)); + await comp.InvokeAsync(async () => dialogReference = await service!.ShowAsync(string.Empty, parameters)); dialogReference.Should().NotBeNull(); comp.Find("div.mud-dialog-content").GetAttribute("class").Should().Be(expectedClassname); @@ -887,7 +888,7 @@ public async Task DialogWithClassContentValueShouldRenderExpectedClassname(strin [TestCase("", "mud-dialog-actions")] [TestCase("my-class", "mud-dialog-actions my-class")] - public async Task DialogWithClassActionsValueShouldRenderExpectedClassname(string classActions, string expectedClassname) + public async Task DialogWithActionsClassValueShouldRenderExpectedClassname(string actionsClass, string expectedClassname) { var comp = Context.RenderComponent(); comp.Markup.Trim().Should().BeEmpty(); @@ -895,12 +896,12 @@ public async Task DialogWithClassActionsValueShouldRenderExpectedClassname(strin service.Should().NotBeNull(); IDialogReference dialogReference = null; - var parameters = new DialogParameters + var parameters = new DialogParameters { - { x => x.ClassActions, classActions } + { x => x.ActionsClass, actionsClass } }; - await comp.InvokeAsync(async () => dialogReference = await service!.ShowAsync(string.Empty, parameters)); + await comp.InvokeAsync(async () => dialogReference = await service!.ShowAsync(string.Empty, parameters)); dialogReference.Should().NotBeNull(); comp.Find("div.mud-dialog-actions").GetAttribute("class").Should().Be(expectedClassname); @@ -926,17 +927,6 @@ public async Task DialogWithTitleClassValueShouldRenderExpectedClassname(string comp.Find("div.mud-dialog-title").GetAttribute("class").Should().Be(expectedClassname); } - - [Test] - public void DialogObsoletePropertiesShouldReturnCorrectPropertyValue() - { - // This test will start failing after ClassContent and ClassActions - // are renamed to ContentClass and ActionsClass in v7 or higher - var dialog = new ObsoletePropertiesDialog(); - - dialog.MyCustomContentClass.Should().Be(dialog.MyCustomContentClassname); - dialog.MyCustomActionsClass.Should().Be(dialog.MyCustomActionsClassname); - } } internal class CustomDialogService : DialogService @@ -955,21 +945,4 @@ public override bool Dismiss(DialogResult result) return AllowDismiss; } } - - internal class ObsoletePropertiesDialog : MudDialog - { -#pragma warning disable CS0618 // Type or member is obsolete - public string MyCustomContentClass => ContentClass; - public string MyCustomActionsClass => ActionClass; -#pragma warning restore CS0618 // Type or member is obsolete - - public string MyCustomContentClassname => ContentClassname; - public string MyCustomActionsClassname => ActionClassname; - - public ObsoletePropertiesDialog() - { - ClassContent = "class-content"; - ClassActions = "class-actions"; - } - } } diff --git a/src/MudBlazor/Components/Dialog/MudDialog.razor b/src/MudBlazor/Components/Dialog/MudDialog.razor index 8765c078c16a..0f9cfd49c757 100644 --- a/src/MudBlazor/Components/Dialog/MudDialog.razor +++ b/src/MudBlazor/Components/Dialog/MudDialog.razor @@ -15,7 +15,7 @@ @if (DialogActions != null) { -
+
@DialogActions
} diff --git a/src/MudBlazor/Components/Dialog/MudDialog.razor.cs b/src/MudBlazor/Components/Dialog/MudDialog.razor.cs index ec64479cf093..e4987fdbc6ab 100644 --- a/src/MudBlazor/Components/Dialog/MudDialog.razor.cs +++ b/src/MudBlazor/Components/Dialog/MudDialog.razor.cs @@ -12,19 +12,13 @@ namespace MudBlazor { public partial class MudDialog : MudComponentBase { - [Obsolete($"Use {nameof(ContentClassname)} instead.")] - protected string ContentClass => ContentClassname; - protected string ContentClassname => new CssBuilder("mud-dialog-content") .AddClass("mud-dialog-no-side-padding", DisableSidePadding) - .AddClass(ClassContent) + .AddClass(ContentClass) .Build(); - [Obsolete($"Use {nameof(ActionClassname)} instead.")] - protected string ActionClass => ActionClassname; - - protected string ActionClassname => new CssBuilder("mud-dialog-actions") - .AddClass(ClassActions) + protected string ActionsClassname => new CssBuilder("mud-dialog-actions") + .AddClass(ActionsClass) .Build(); [CascadingParameter] private MudDialogInstance DialogInstance { get; set; } @@ -90,14 +84,14 @@ public partial class MudDialog : MudComponentBase /// [Parameter] [Category(CategoryTypes.Dialog.Appearance)] - public string ClassContent { get; set; } + public string ContentClass { get; set; } /// /// CSS class that will be applied to the action buttons container /// [Parameter] [Category(CategoryTypes.Dialog.Appearance)] - public string ClassActions { get; set; } + public string ActionsClass { get; set; } /// /// CSS styles to be applied to the dialog content @@ -164,8 +158,8 @@ public IDialogReference Show(string title = null, DialogOptions options = null) [nameof(OnBackdropClick)] = OnBackdropClick, [nameof(DisableSidePadding)] = DisableSidePadding, [nameof(TitleClass)] = TitleClass, - [nameof(ClassContent)] = ClassContent, - [nameof(ClassActions)] = ClassActions, + [nameof(ContentClass)] = ContentClass, + [nameof(ActionsClass)] = ActionsClass, [nameof(ContentStyle)] = ContentStyle, [nameof(DefaultFocus)] = DefaultFocus, }; From ef34068496261faf27f4557f5808e10ba6e0a4fd Mon Sep 17 00:00:00 2001 From: Jon Person Date: Wed, 27 Mar 2024 09:35:12 -0600 Subject: [PATCH 08/50] MudAutocomplete: Remove SearchFuncWithCancel, Add CancellationToken to SearchFunc (#8490) Co-authored-by: Jon Person --- .../AutocompleteCancellationTokenExample.razor | 8 +++----- .../Examples/AutocompleteClrObjectsExample.razor | 5 +++-- .../Examples/AutocompleteMarginDenseExample.razor | 5 +++-- .../AutocompletePresentationExtrasExample.razor | 9 +++++---- .../Examples/AutocompleteProgressExample.razor | 5 +++-- .../Examples/AutocompleteStrictFalseExample.razor | 5 +++-- .../Examples/AutocompleteUsageExample.razor | 9 +++++---- .../Examples/AutocompleteValidationExample.razor | 5 +++-- src/MudBlazor.Docs/Shared/Appbar.razor | 4 ++-- src/MudBlazor.Docs/Shared/Appbar.razor.cs | 3 ++- src/MudBlazor.UnitTests.Viewer/Pages/Index.razor | 3 ++- .../Autocomplete/AutocompleteAdornmentChange.razor | 5 +++-- .../AutocompleteChangeBoundObjectTest.razor | 5 +++-- .../AutocompleteDisabledItemsTest.razor | 3 ++- ...leteListBeforeAndAfterRendersWithItemsTest.razor | 3 ++- .../AutocompleteListEndRendersTest.razor | 7 ++++--- .../AutocompleteListStartRendersTest.razor | 5 +++-- .../Autocomplete/AutocompleteRequiredTest.razor | 3 ++- .../Autocomplete/AutocompleteResetTest.razor | 2 +- .../AutocompleteSetParametersInitialization.razor | 5 +++-- .../AutocompleteStrictFalseSelectedHighlight.razor | 7 ++++--- .../Autocomplete/AutocompleteStrictFalseTest.razor | 9 +++++---- .../Autocomplete/AutocompleteSyncTest.razor | 3 ++- .../Autocomplete/AutocompleteTest1.razor | 5 +++-- .../Autocomplete/AutocompleteTest2.razor | 5 +++-- .../Autocomplete/AutocompleteTest3.razor | 5 +++-- .../Autocomplete/AutocompleteTest4.razor | 5 +++-- .../Autocomplete/AutocompleteTest5.razor | 5 +++-- .../Autocomplete/AutocompleteTest6.razor | 5 +++-- .../Autocomplete/AutocompleteTest7.razor | 5 +++-- .../Autocomplete/AutocompleteTestClearable.razor | 5 +++-- .../AutocompleteValidationDataAttrTest.razor | 3 ++- .../Autocomplete/AutocompleteValidationTest.razor | 3 ++- .../Components/AutocompleteTests.cs | 10 +++++----- .../Autocomplete/MudAutocomplete.razor.cs | 13 ++----------- 35 files changed, 103 insertions(+), 84 deletions(-) diff --git a/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteCancellationTokenExample.razor b/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteCancellationTokenExample.razor index a9f5f771d7bb..920fe3a6e828 100644 --- a/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteCancellationTokenExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteCancellationTokenExample.razor @@ -4,7 +4,7 @@ - + @@ -14,9 +14,7 @@ private async Task> Search(string value, CancellationToken token) { - //the http endpoint does not return immediately. There is an artifical delay built-in - var result = await HttpClient.GetFromJsonAsync>($"webapi/AmericanStates/searchWithDelay/{value ?? string.Empty}", token); - return result; + // Forward the CancellationToken to methods which supported, such as HttpClient and DbContext + return await HttpClient.GetFromJsonAsync>($"webapi/AmericanStates/searchWithDelay/{value ?? string.Empty}", token); } - } diff --git a/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteClrObjectsExample.razor b/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteClrObjectsExample.razor index 79cbffc74908..8d35ac90d7b0 100644 --- a/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteClrObjectsExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteClrObjectsExample.razor @@ -1,5 +1,6 @@ @using System.Net.Http.Json @using MudBlazor.Examples.Data.Models +@using System.Threading @namespace MudBlazor.Docs.Examples @inject HttpClient httpClient @@ -33,8 +34,8 @@ @code { private Element value1, value2; - private async Task> Search(string value) + private async Task> Search(string value, CancellationToken token) { - return await httpClient.GetFromJsonAsync>($"webapi/periodictable/{value}"); + return await httpClient.GetFromJsonAsync>($"webapi/periodictable/{value}", token); } } diff --git a/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteMarginDenseExample.razor b/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteMarginDenseExample.razor index 99d9233476b9..97e428fff11b 100644 --- a/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteMarginDenseExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteMarginDenseExample.razor @@ -1,4 +1,5 @@ @namespace MudBlazor.Docs.Examples +@using System.Threading @@ -49,10 +50,10 @@ "Washington", "West Virginia", "Wisconsin", "Wyoming", }; - private async Task> Search1(string value) + private async Task> Search1(string value, CancellationToken token) { // In real life use an asynchronous function for fetching data from an api. - await Task.Delay(5); + await Task.Delay(5, token); // if text is null or empty, show complete list if (string.IsNullOrEmpty(value)) diff --git a/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompletePresentationExtrasExample.razor b/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompletePresentationExtrasExample.razor index 55f6f6952a91..bf758fde6fce 100644 --- a/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompletePresentationExtrasExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompletePresentationExtrasExample.razor @@ -1,5 +1,6 @@ @using System.Net.Http.Json @using MudBlazor.Examples.Data.Models +@using System.Threading @namespace MudBlazor.Docs.Examples @inject HttpClient httpClient @@ -47,14 +48,14 @@ @code { private Element value1, value2, value3, value4; - private async Task> Search(string value) + private async Task> Search(string value, CancellationToken token) { - return await httpClient.GetFromJsonAsync>($"webapi/periodictable/{value}"); + return await httpClient.GetFromJsonAsync>($"webapi/periodictable/{value}", token); } - private async Task> SearchEmpty(string value) + private async Task> SearchEmpty(string value, CancellationToken token) { - await Task.Delay(5); + await Task.Delay(5, token); return Array.Empty(); } } diff --git a/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteProgressExample.razor b/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteProgressExample.razor index cfcae437d1d9..6d7b75d0e8be 100644 --- a/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteProgressExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteProgressExample.razor @@ -1,4 +1,5 @@ @namespace MudBlazor.Docs.Examples +@using System.Threading @@ -60,10 +61,10 @@ "Washington", "West Virginia", "Wisconsin", "Wyoming", }; - private async Task> Search1(string value) + private async Task> Search1(string value, CancellationToken token) { // In real life use an asynchronous function for fetching data from an api. - await Task.Delay(1000); + await Task.Delay(1000, token); // if text is null or empty, show complete list if (string.IsNullOrEmpty(value)) diff --git a/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteStrictFalseExample.razor b/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteStrictFalseExample.razor index 567adbe6bd0d..448a37ffdbee 100644 --- a/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteStrictFalseExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteStrictFalseExample.razor @@ -1,5 +1,6 @@ @using System.Net.Http.Json @using MudBlazor.Examples.Data.Models +@using System.Threading @namespace MudBlazor.Docs.Examples @inject HttpClient httpClient @@ -19,8 +20,8 @@ @code { private Element value1, value2; - private async Task> Search(string value) + private async Task> Search(string value, CancellationToken token) { - return await httpClient.GetFromJsonAsync>($"webapi/periodictable/{value}"); + return await httpClient.GetFromJsonAsync>($"webapi/periodictable/{value}", token); } } diff --git a/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteUsageExample.razor b/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteUsageExample.razor index d944f1da846f..a068b8b88e70 100644 --- a/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteUsageExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteUsageExample.razor @@ -1,4 +1,5 @@ @namespace MudBlazor.Docs.Examples +@using System.Threading @@ -47,10 +48,10 @@ "Washington", "West Virginia", "Wisconsin", "Wyoming", }; - private async Task> Search1(string value) + private async Task> Search1(string value, CancellationToken token) { // In real life use an asynchronous function for fetching data from an api. - await Task.Delay(5); + await Task.Delay(5, token); // if text is null or empty, show complete list if (string.IsNullOrEmpty(value)) @@ -58,10 +59,10 @@ return states.Where(x => x.Contains(value, StringComparison.InvariantCultureIgnoreCase)); } - private async Task> Search2(string value) + private async Task> Search2(string value, CancellationToken token) { // In real life use an asynchronous function for fetching data from an api. - await Task.Delay(5); + await Task.Delay(5, token); // if text is null or empty, don't return values (drop-down will not open) if (string.IsNullOrEmpty(value)) diff --git a/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteValidationExample.razor b/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteValidationExample.razor index a369c1a79563..48e60c917b51 100644 --- a/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteValidationExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteValidationExample.razor @@ -1,5 +1,6 @@ @namespace MudBlazor.Docs.Examples @using System.ComponentModel.DataAnnotations +@using System.Threading @@ -95,10 +96,10 @@ "Washington", "West Virginia", "Wisconsin", "Wyoming", }; - private async Task> SearchAsync(string value) + private async Task> SearchAsync(string value, CancellationToken token) { // In real life use an asynchronous function for fetching data from an api. - await Task.Delay(5); + await Task.Delay(5, token); // if text is null or empty, show complete list if (string.IsNullOrEmpty(value)) diff --git a/src/MudBlazor.Docs/Shared/Appbar.razor b/src/MudBlazor.Docs/Shared/Appbar.razor index dffc3516df6b..b380feb4e1fc 100644 --- a/src/MudBlazor.Docs/Shared/Appbar.razor +++ b/src/MudBlazor.Docs/Shared/Appbar.razor @@ -71,7 +71,7 @@ { + SearchFunc="async (text, token) => await Search(text, token)" ValueChanged="OnSearchResult" Adornment="Adornment.Start" AdornmentIcon="@Icons.Material.Filled.Search"> @result.Title @result.SubTitle @@ -92,7 +92,7 @@ + SearchFunc="async (text, token) => await Search(text, token)" ValueChanged="OnSearchResult" IsOpenChanged="o => _searchDialogAutocompleteOpen = o" ReturnedItemsCountChanged="c => _searchDialogReturnedItemsCount = c"> @result.Title @result.SubTitle diff --git a/src/MudBlazor.Docs/Shared/Appbar.razor.cs b/src/MudBlazor.Docs/Shared/Appbar.razor.cs index 47fb73156dfb..6fc97375c149 100644 --- a/src/MudBlazor.Docs/Shared/Appbar.razor.cs +++ b/src/MudBlazor.Docs/Shared/Appbar.razor.cs @@ -3,6 +3,7 @@ // See the LICENSE file in the project root for more information. using System.Collections.Generic; +using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; @@ -131,7 +132,7 @@ private string GetActiveClass(DocsBasePage page) return page == LayoutService.GetDocsBasePage(NavigationManager.Uri) ? "mud-chip-text mud-chip-color-primary mx-1 px-3" : "mx-1 px-3"; } - private Task> Search(string text) + private Task> Search(string text, CancellationToken token) { if (string.IsNullOrWhiteSpace(text)) { diff --git a/src/MudBlazor.UnitTests.Viewer/Pages/Index.razor b/src/MudBlazor.UnitTests.Viewer/Pages/Index.razor index 19e4d5378e4a..854fd0836d6b 100644 --- a/src/MudBlazor.UnitTests.Viewer/Pages/Index.razor +++ b/src/MudBlazor.UnitTests.Viewer/Pages/Index.razor @@ -1,5 +1,6 @@ @page "/" @using System.Reflection +@using System.Threading @@ -107,7 +108,7 @@ return (string)field.GetValue(null); } - private Task> Search(string text) + private Task> Search(string text, CancellationToken token) { if (string.IsNullOrWhiteSpace(text)) return Task.FromResult>(new Type[0]); diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteAdornmentChange.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteAdornmentChange.razor index 74e71f0d2fcc..2f5c52fef89e 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteAdornmentChange.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteAdornmentChange.razor @@ -1,4 +1,5 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading @@ -31,10 +32,10 @@ [Parameter] public string Icon { get; set; } = Icons.Material.Filled.Abc; - private async Task> Search1(string value) + private async Task> Search1(string value, CancellationToken token) { // In real life use an asynchronous function for fetching data from an api. - await Task.Delay(5); + await Task.Delay(5, token); // if text is null or empty, show complete list if (string.IsNullOrEmpty(value)) diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteChangeBoundObjectTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteChangeBoundObjectTest.razor index c3174a5b8092..281d05e238db 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteChangeBoundObjectTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteChangeBoundObjectTest.razor @@ -1,4 +1,5 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading @@ -50,10 +51,10 @@ StateHasChanged(); } - private async Task> Search1(string value) + private async Task> Search1(string value, CancellationToken token) { // In real life use an asynchronous function for fetching data from an api. - await Task.Delay(5); + await Task.Delay(5, token); // if text is null or empty, show complete list if (string.IsNullOrEmpty(value)) diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteDisabledItemsTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteDisabledItemsTest.razor index db64131cf422..7503e9c26d3e 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteDisabledItemsTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteDisabledItemsTest.razor @@ -1,4 +1,5 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading @@ -36,7 +37,7 @@ "Washington", "West Virginia", "Wisconsin", "Wyoming", }; - private Task> Search(string value) + private Task> Search(string value, CancellationToken token) { var result = string.IsNullOrEmpty(value) ? states : states.Where(x => x.Contains(value, StringComparison.InvariantCultureIgnoreCase)); return Task.FromResult(result); diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteListBeforeAndAfterRendersWithItemsTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteListBeforeAndAfterRendersWithItemsTest.razor index c2b556ef5b17..ce11c1b7a29f 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteListBeforeAndAfterRendersWithItemsTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteListBeforeAndAfterRendersWithItemsTest.razor @@ -1,4 +1,5 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading @@ -33,7 +34,7 @@ "Washington", "West Virginia", "Wisconsin", "Wyoming", }; - private Task> Search(string value) + private Task> Search(string value, CancellationToken token) { var result = string.IsNullOrEmpty(value) ? states : states.Where(x => x.Contains(value, StringComparison.InvariantCultureIgnoreCase)); return Task.FromResult(result); diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteListEndRendersTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteListEndRendersTest.razor index 35cd88c51e31..a83787de716f 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteListEndRendersTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteListEndRendersTest.razor @@ -1,4 +1,5 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading @@ -30,10 +31,10 @@ "Washington", "West Virginia", "Wisconsin", "Wyoming", }; - private async Task> Search1(string value) + private async Task> Search1(string value, CancellationToken token) { - // In real life use an asynchronous function for fetching data from an api. - await Task.Delay(5); + // In real life use an asynchronous function for fetching data from an api. + await Task.Delay(5, token); return states.Where(x => x.Contains("some string", StringComparison.InvariantCultureIgnoreCase)); } diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteListStartRendersTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteListStartRendersTest.razor index 65f8229f24a6..a338d44a716d 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteListStartRendersTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteListStartRendersTest.razor @@ -1,4 +1,5 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading @@ -30,10 +31,10 @@ "Washington", "West Virginia", "Wisconsin", "Wyoming", }; - private async Task> Search1(string value) + private async Task> Search1(string value, CancellationToken token) { // In real life use an asynchronous function for fetching data from an api. - await Task.Delay(5); + await Task.Delay(5, token); return states.Where(x => x.Contains("some string", StringComparison.InvariantCultureIgnoreCase)); } } \ No newline at end of file diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteRequiredTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteRequiredTest.razor index 5fbaa964169f..fd34a4c4efb3 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteRequiredTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteRequiredTest.razor @@ -1,4 +1,5 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading @@ -29,7 +30,7 @@ "Washington", "West Virginia", "Wisconsin", "Wyoming", }; - private Task> Search(string value) + private Task> Search(string value, CancellationToken token) { var result = string.IsNullOrEmpty(value) ? states : states.Where(x => x.Contains(value, StringComparison.InvariantCultureIgnoreCase)); return Task.FromResult(result); diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteResetTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteResetTest.razor index 8be3bcf2d36c..b7cce846340e 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteResetTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteResetTest.razor @@ -33,7 +33,7 @@ return Task.CompletedTask; } - private Task> Search(string value) + private Task> Search(string value, CancellationToken token) { if (string.IsNullOrEmpty(value)) { diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteSetParametersInitialization.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteSetParametersInitialization.razor index 1598ab934a59..5e856ad278a5 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteSetParametersInitialization.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteSetParametersInitialization.razor @@ -1,4 +1,5 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading @* Based on this try https://try.mudblazor.com/snippet/GacPunvDUyjdUJAh and this issue https://github.com/MudBlazor/MudBlazor/issues/1235*@ @@ -50,9 +51,9 @@ }; } - private async Task> Search2(string value) + private async Task> Search2(string value, CancellationToken token) { - await Task.Delay(0); + await Task.Delay(0, token); if (string.IsNullOrEmpty(value)) return _externalList; diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteStrictFalseSelectedHighlight.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteStrictFalseSelectedHighlight.razor index 7a334bfe7219..7bbfbdc90340 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteStrictFalseSelectedHighlight.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteStrictFalseSelectedHighlight.razor @@ -1,4 +1,5 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading @@ -23,9 +24,9 @@ return text.Equals("carrot", StringComparison.InvariantCulture); }; - public async Task> Search(string text) - { - await Task.Delay(100); + public async Task> Search(string text, CancellationToken token) + { + await Task.Delay(100, token); if (string.IsNullOrWhiteSpace(text)) { diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteStrictFalseTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteStrictFalseTest.razor index 4ab3ab6f0808..9ef84465fdd7 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteStrictFalseTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteStrictFalseTest.razor @@ -1,4 +1,5 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading > SearchStateAsync(string value) + public async Task> SearchStateAsync(string value, CancellationToken token) { - await Task.Delay(5); + await Task.Delay(5, token); if (string.IsNullOrEmpty(value)) return states.Select(x => new State(x)); return states.Where(x => x.Contains(value, StringComparison.InvariantCultureIgnoreCase)).Select(x => new State(x)); } - public async Task> SearchStateToStringAsync(string value) + public async Task> SearchStateToStringAsync(string value, CancellationToken token) { - await Task.Delay(5); + await Task.Delay(5, token); if (string.IsNullOrEmpty(value)) return states.Select(x => new StateToString(x)); return states.Where(x => x.Contains(value, StringComparison.InvariantCultureIgnoreCase)).Select(x => new StateToString(x)); diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteSyncTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteSyncTest.razor index a568a563bd08..63e647753a8b 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteSyncTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteSyncTest.razor @@ -1,4 +1,5 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading @@ -11,7 +12,7 @@ public static readonly string[] Items = { "One", "Two", "Three" }; - private Task> Search(string text) + private Task> Search(string text, CancellationToken token) { var result = string.IsNullOrWhiteSpace(text) ? Items diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest1.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest1.razor index 921ab2c0cfd1..a5a086b4c367 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest1.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest1.razor @@ -1,4 +1,5 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading @@ -26,10 +27,10 @@ "Washington", "West Virginia", "Wisconsin", "Wyoming", }; - private async Task> Search1(string value) + private async Task> Search1(string value, CancellationToken token) { // In real life use an asynchronous function for fetching data from an api. - await Task.Delay(50); + await Task.Delay(50, token); // if text is null or empty, show complete list if (string.IsNullOrEmpty(value)) diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest2.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest2.razor index 3caec5e26f3c..281ca322a0d6 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest2.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest2.razor @@ -1,4 +1,5 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading @@ -26,10 +27,10 @@ "Washington", "West Virginia", "Wisconsin", "Wyoming", }; - private async Task> Search1(string value) + private async Task> Search1(string value, CancellationToken token) { // In real life use an asynchronous function for fetching data from an api. - await Task.Delay(5); + await Task.Delay(5, token); // if text is null or empty, show complete list if (string.IsNullOrEmpty(value)) diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest3.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest3.razor index 9e46842b9c35..72d6b1a9e096 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest3.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest3.razor @@ -1,4 +1,5 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading { s1, s2, s3, s4, s5, s6, s7 }; } - public async Task> SearchStateAsync(string value) + public async Task> SearchStateAsync(string value, CancellationToken token) { // In real life use an asynchronous function for fetching data from an api. - await Task.Delay(5); + await Task.Delay(5, token); IEnumerable list; if (string.IsNullOrEmpty(value)) list = StateList; diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest4.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest4.razor index 977aba892d97..199cf12b2f2e 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest4.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest4.razor @@ -1,4 +1,5 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading StateList { get; set; } public State StateDetails { get; set; } = new State() { StateName = "Assam"}; - public async Task> SearchStateAsync(string value) + public async Task> SearchStateAsync(string value, CancellationToken token) { // In real life use an asynchronous function for fetching data from an api. - await Task.Delay(5); + await Task.Delay(5, token); return new State[0]; } diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest5.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest5.razor index 130f2f4b35be..b03edcc8c425 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest5.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest5.razor @@ -1,4 +1,5 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading @@ -26,10 +27,10 @@ "Washington", "West Virginia", "Wisconsin", "Wyoming", }; - private async Task> Search1(string value) + private async Task> Search1(string value, CancellationToken token) { // In real life use an asynchronous function for fetching data from an api. - await Task.Delay(5); + await Task.Delay(5, token); // if text is null or empty, show complete list if (string.IsNullOrEmpty(value)) diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest6.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest6.razor index b9dd33498e38..2eefab0aa9d8 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest6.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest6.razor @@ -1,4 +1,5 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading @@ -30,10 +31,10 @@ "Washington", "West Virginia", "Wisconsin", "Wyoming", }; - private async Task> Search1(string value) + private async Task> Search1(string value, CancellationToken token) { // In real life use an asynchronous function for fetching data from an api. - await Task.Delay(5); + await Task.Delay(5, token); // if text is null or empty, show complete list if (string.IsNullOrEmpty(value)) diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest7.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest7.razor index a47d426202f2..1cb099db5cd4 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest7.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTest7.razor @@ -1,4 +1,5 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading @@ -30,10 +31,10 @@ "Washington", "West Virginia", "Wisconsin", "Wyoming", }; - private async Task> Search1(string value) + private async Task> Search1(string value, CancellationToken token) { // In real life use an asynchronous function for fetching data from an api. - await Task.Delay(5); + await Task.Delay(5, token); return states.Where(x => x.Contains("some string", StringComparison.InvariantCultureIgnoreCase)); } diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTestClearable.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTestClearable.razor index fc528a31d170..7a0eae710cd3 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTestClearable.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteTestClearable.razor @@ -1,4 +1,5 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading @@ -26,10 +27,10 @@ "Washington", "West Virginia", "Wisconsin", "Wyoming", }; - private async Task> Search1(string value) + private async Task> Search1(string value, CancellationToken token) { // In real life use an asynchronous function for fetching data from an api. - await Task.Delay(5); + await Task.Delay(5, token); // if text is null or empty, show complete list if (string.IsNullOrEmpty(value)) diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteValidationDataAttrTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteValidationDataAttrTest.razor index 774e82a26118..53fc98eccb84 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteValidationDataAttrTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteValidationDataAttrTest.razor @@ -1,5 +1,6 @@ @using System.ComponentModel.DataAnnotations @using Microsoft.AspNetCore.Components.Forms +@using System.Threading @namespace MudBlazor.UnitTests.TestComponents @@ -29,7 +30,7 @@ "Foo", "Bar", "Qux", "Quux" }; - private async Task> Search(string value) + private async Task> Search(string value, CancellationToken token) { // if text is null or empty, show complete list if (string.IsNullOrEmpty(value)) diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteValidationTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteValidationTest.razor index c5f98a4e30ba..5a54a5d4f3e1 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteValidationTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Autocomplete/AutocompleteValidationTest.razor @@ -1,4 +1,5 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading @@ -21,7 +22,7 @@ "Alabama", "Alaska", "American Samoa", "Arizona" }; - private async Task> Search(string value) + private async Task> Search(string value, CancellationToken token) { // if text is null or empty, show complete list if (string.IsNullOrEmpty(value)) diff --git a/src/MudBlazor.UnitTests/Components/AutocompleteTests.cs b/src/MudBlazor.UnitTests/Components/AutocompleteTests.cs index abac476c16b3..2f14a966e00b 100644 --- a/src/MudBlazor.UnitTests/Components/AutocompleteTests.cs +++ b/src/MudBlazor.UnitTests/Components/AutocompleteTests.cs @@ -220,11 +220,11 @@ public async Task Autocomplete_Should_TolerateNullFromSearchFunc() var comp = Context.RenderComponent>((a) => { a.Add(x => x.DebounceInterval, 0); - a.Add(x => x.SearchFunc, new Func>>(async s => null)); // <--- searchfunc returns null instead of sequence + a.Add(x => x.SearchFunc, new Func>>(async (s, token) => null)); // <--- searchfunc returns null instead of sequence }); // enter a text so the search func will return null, and it shouldn't throw an exception comp.SetParam(a => a.Text, "Do not throw"); - comp.SetParam(x => x.SearchFunc, new Func>>(s => null)); // <-- search func returns null instead of task! + comp.SetParam(x => x.SearchFunc, new Func>>((s, token) => null)); // <-- search func returns null instead of task! comp.SetParam(a => a.Text, "Don't throw here neither"); } @@ -1000,7 +1000,7 @@ public async Task Autocomplete_Should_Cancel_Search() var first = new TaskCompletionSource>(); - autocompletecomp.SetParam(p => p.SearchFuncWithCancel, new Func>>((s, cancellationToken) => + autocompletecomp.SetParam(p => p.SearchFunc, new Func>>((s, cancellationToken) => { cancelToken = cancellationToken; // Return task that never completes. @@ -1019,7 +1019,7 @@ public async Task Autocomplete_Should_Cancel_Search() var second = new TaskCompletionSource>(); - autocompletecomp.SetParam(p => p.SearchFuncWithCancel, new Func>>((s, cancellationToken) => + autocompletecomp.SetParam(p => p.SearchFunc, new Func>>((s, cancellationToken) => { return second.Task; })); @@ -1311,7 +1311,7 @@ public async Task Autocomplete_Should_ApplyListItemClass() [Test] public async Task Autocomplete_ReturnedItemsCount_Should_Be_Accurate() { - Task> search(string value) + Task> search(string value, CancellationToken token) { var values = new string[] { "Lorem", "ipsum", "dolor", "sit", "amet", "consectetur", "adipiscing", "elit" }; return Task.FromResult(values.Where(x => x.Contains(value, StringComparison.InvariantCultureIgnoreCase))); diff --git a/src/MudBlazor/Components/Autocomplete/MudAutocomplete.razor.cs b/src/MudBlazor/Components/Autocomplete/MudAutocomplete.razor.cs index 9cdd26d3da3a..3fba218abde0 100644 --- a/src/MudBlazor/Components/Autocomplete/MudAutocomplete.razor.cs +++ b/src/MudBlazor/Components/Autocomplete/MudAutocomplete.razor.cs @@ -188,14 +188,7 @@ public Func ToStringFunc /// [Parameter] [Category(CategoryTypes.FormComponent.ListBehavior)] - public Func>> SearchFuncWithCancel { get; set; } - - /// - /// The SearchFunc returns a list of items matching the typed text - /// - [Parameter] - [Category(CategoryTypes.FormComponent.ListBehavior)] - public Func>> SearchFunc { get; set; } + public Func>> SearchFunc { get; set; } /// /// Maximum items to display, defaults to 10. @@ -537,9 +530,7 @@ private async Task OnSearchAsync() searchingWhileSelected = !Strict && Value != null && (Value.ToString() == Text || (ToStringFunc != null && ToStringFunc(Value) == Text)); //search while selected if enabled and the Text is equivalent to the Value var searchText = searchingWhileSelected ? string.Empty : Text; - var searchTask = SearchFuncWithCancel != null ? - SearchFuncWithCancel(searchText, _cancellationTokenSrc.Token) : - SearchFunc(searchText); + var searchTask = SearchFunc(searchText, _cancellationTokenSrc.Token); _currentSearchTask = searchTask; From f979c2c84e3ddd5f01a20ebc1102838d32a4b01b Mon Sep 17 00:00:00 2001 From: Jon Person Date: Wed, 27 Mar 2024 09:59:24 -0600 Subject: [PATCH 09/50] MudTable: Add CancellationToken into ServerData Function for Cancelable Requests (#8407) Co-authored-by: Jon Person --- ...leServerSideCancellationTokenExample.razor | 53 +++++++++++++++++++ .../TableServerSidePaginateExample.razor | 10 ++-- .../Pages/Components/Table/TablePage.razor | 15 ++++++ .../Table/TableMultiSelectionTest9.razor.cs | 3 +- .../Table/TableServerDataLoadingTest.razor | 5 +- ...TableServerDataLoadingTestWithCancel.razor | 30 +++++++++++ .../Table/TableServerSideDataTest1.razor | 5 +- .../Table/TableServerSideDataTest2.razor | 5 +- .../Table/TableServerSideDataTest3.razor | 5 +- .../Table/TableServerSideDataTest4.razor | 5 +- .../Table/TableServerSideDataTest4b.razor | 5 +- .../Table/TableServerSideDataTest5.razor | 5 +- .../Table/TableServerSideDataTest6.razor | 5 +- .../Components/TableTests.cs | 51 ++++++++++++++++++ .../Components/Table/MudTable.razor.cs | 46 ++++++++++++++-- 15 files changed, 221 insertions(+), 27 deletions(-) create mode 100644 src/MudBlazor.Docs/Pages/Components/Table/Examples/TableServerSideCancellationTokenExample.razor create mode 100644 src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerDataLoadingTestWithCancel.razor diff --git a/src/MudBlazor.Docs/Pages/Components/Table/Examples/TableServerSideCancellationTokenExample.razor b/src/MudBlazor.Docs/Pages/Components/Table/Examples/TableServerSideCancellationTokenExample.razor new file mode 100644 index 000000000000..9f056dc8e980 --- /dev/null +++ b/src/MudBlazor.Docs/Pages/Components/Table/Examples/TableServerSideCancellationTokenExample.razor @@ -0,0 +1,53 @@ +@using MudBlazor.Examples.Data.Models +@using System.Net.Http.Json +@using System.Threading +@namespace MudBlazor.Docs.Examples +@inject HttpClient httpClient + + + + Periodic Elements + + + Nr + Sign + Name + Position + Molar mass + + + @context.Number + @context.Sign + @context.Name + @context.Position + @context.Molar + + + No matching records found + + + Loading... + + + + + + +@code { + /// + /// Here we simulate getting the paged, filtered and ordered data from the server, with a token for canceling this request + /// + private async Task> ServerReload(TableState state, CancellationToken token) + { + // Forward the provided token to methods which support it + var data = await httpClient.GetFromJsonAsync>("webapi/periodictable", token); + // Simulate a long-running operation + await Task.Delay(300, token); + // Get the total count + var totalItems = data.Count(); + // Get the paged data + var pagedData = data.Skip(state.Page * state.PageSize).Take(state.PageSize).ToList(); + // Return the data + return new TableData() { TotalItems = totalItems, Items = pagedData }; + } +} diff --git a/src/MudBlazor.Docs/Pages/Components/Table/Examples/TableServerSidePaginateExample.razor b/src/MudBlazor.Docs/Pages/Components/Table/Examples/TableServerSidePaginateExample.razor index 18a1b207517d..d562f8c21e4e 100644 --- a/src/MudBlazor.Docs/Pages/Components/Table/Examples/TableServerSidePaginateExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Table/Examples/TableServerSidePaginateExample.razor @@ -1,10 +1,10 @@ @using System.Net.Http.Json @using MudBlazor.Examples.Data.Models +@using System.Threading @namespace MudBlazor.Docs.Examples @inject HttpClient httpClient - + Periodic Elements @@ -46,10 +46,10 @@ /// /// Here we simulate getting the paged, filtered and ordered data from the server /// - private async Task> ServerReload(TableState state) + private async Task> ServerReload(TableState state, CancellationToken token) { - IEnumerable data = await httpClient.GetFromJsonAsync>("webapi/periodictable"); - await Task.Delay(300); + IEnumerable data = await httpClient.GetFromJsonAsync>("webapi/periodictable", token); + await Task.Delay(300, token); data = data.Where(element => { if (string.IsNullOrWhiteSpace(searchString)) diff --git a/src/MudBlazor.Docs/Pages/Components/Table/TablePage.razor b/src/MudBlazor.Docs/Pages/Components/Table/TablePage.razor index 6e5474444717..1b636e30047a 100644 --- a/src/MudBlazor.Docs/Pages/Components/Table/TablePage.razor +++ b/src/MudBlazor.Docs/Pages/Components/Table/TablePage.razor @@ -159,6 +159,21 @@ + + + + Use the CancellationToken to detect when a request for data has been superceded by a new request. By forwarding the token to methods which support it, + such as common HttpClient or DbContent methods, the table can perform well even with frequent updates. + + Note: When using ServerData, you don't need Items or Filter. + + + + + + + + diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionTest9.razor.cs b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionTest9.razor.cs index 5b2e20bdf585..8a97cfe22b16 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionTest9.razor.cs +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionTest9.razor.cs @@ -6,6 +6,7 @@ using System.Collections.Generic; using System.Linq; using System.Text.Json; +using System.Threading; using System.Threading.Tasks; namespace MudBlazor.UnitTests.TestComponents @@ -32,7 +33,7 @@ public partial class TableMultiSelectionTest9 private HashSet _selectedItems = new(); private ElementComparer Comparer = new(); - protected async Task> ServerData(TableState state) + protected async Task> ServerData(TableState state, CancellationToken token) { try { diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerDataLoadingTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerDataLoadingTest.razor index 60b75f11dcc1..7ec2a04c7b93 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerDataLoadingTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerDataLoadingTest.razor @@ -1,6 +1,7 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading - + Nr @@ -27,7 +28,7 @@ /// /// Here we simulate getting the paged, filtered and ordered data from the server /// - private async Task> ServerReload(TableState state) + private async Task> ServerReload(TableState state, CancellationToken token) { IEnumerable data = new List() { 1, 2, 3 }; totalItems = data.Count(); diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerDataLoadingTestWithCancel.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerDataLoadingTestWithCancel.razor new file mode 100644 index 000000000000..21037a56a829 --- /dev/null +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerDataLoadingTestWithCancel.razor @@ -0,0 +1,30 @@ +@using System.Threading +@namespace MudBlazor.UnitTests.TestComponents + + + + Nr + + + @context + + + +@code { + public static string __description__ = "The table should cancel prior requests for server data when using ServerDataWithCancel."; + + /// + /// Reloads the data from the server, with support for cancellation. + /// + private async Task> ServerReload(TableState state, CancellationToken token) + { + // Simulate "loading data" for two seconds + await Task.Delay(2000, token); + + // Make some test data to return + IEnumerable data = new List() { 1, 2, 3 }; + + // Return the data + return new TableData() { TotalItems = data.Count(), Items = data.ToArray() }; + } +} diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest1.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest1.razor index 713a90fc6720..0b1f57a18b5a 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest1.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest1.razor @@ -1,6 +1,7 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading - + Nr @@ -20,7 +21,7 @@ /// /// Here we simulate getting the paged, filtered and ordered data from the server /// - private async Task> ServerReload(TableState state) + private async Task> ServerReload(TableState state, CancellationToken token) { IEnumerable data = new List() { 1,2,3 }; totalItems = data.Count(); diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest2.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest2.razor index 841005350e08..50f6e4a72a8a 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest2.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest2.razor @@ -1,6 +1,7 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading - + Nr @@ -23,7 +24,7 @@ /// /// Here we simulate getting the paged, filtered and ordered data from the server /// - private async Task> ServerReload(TableState state) + private async Task> ServerReload(TableState state, CancellationToken token) { var p = state.Page*3; IEnumerable data = new List() { 1 + p, 2 + p, 3 + p }; diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest3.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest3.razor index 49122e2042b7..7c61e825ba9f 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest3.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest3.razor @@ -1,6 +1,7 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading - + Nr @@ -21,7 +22,7 @@ /// /// Here we simulate getting the paged, filtered and ordered data from the server /// - private async Task> ServerReload(TableState state) + private async Task> ServerReload(TableState state, CancellationToken token) { //if (state.SortDirection != SortDirection.None && string.IsNullOrWhiteSpace(state.SortLabel)) // throw new ArgumentException("SortDirection is set but SortLabel is not"); diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest4.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest4.razor index 189a5a060669..5f95f73cb2b9 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest4.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest4.razor @@ -1,8 +1,9 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading - + a b @@ -30,7 +31,7 @@ /// /// Here we simulate getting the paged, filtered and ordered data from the server /// - private async Task> ServerReload(TableState state) + private async Task> ServerReload(TableState state, CancellationToken token) { IEnumerable data = new List() { new TestModel() { a=1, b=3 }, new TestModel() { a=2, b=2 }, diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest4b.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest4b.razor index fadd4c4047e0..b873fe1ac368 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest4b.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest4b.razor @@ -1,8 +1,9 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading - + a b @@ -30,7 +31,7 @@ /// /// Here we simulate getting the paged, filtered and ordered data from the server /// - private async Task> ServerReload(TableState state) + private async Task> ServerReload(TableState state, CancellationToken token) { // This creates an in-memory IQueryable variation of our IEnumerable test IQueryable data = new List() { new TestModel() { a=1, b=3 }, diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest5.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest5.razor index 6e305e143d49..a0a876b74f7b 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest5.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest5.razor @@ -1,9 +1,10 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading @reloadCounter - + Nr @@ -25,7 +26,7 @@ /// /// Here we simulate getting the paged, filtered and ordered data from the server /// - private async Task> ServerReload(TableState state) + private async Task> ServerReload(TableState state, CancellationToken token) { ++reloadCounter; diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest6.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest6.razor index 334659ab1650..04c947dadd32 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest6.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableServerSideDataTest6.razor @@ -1,6 +1,7 @@ @namespace MudBlazor.UnitTests.TestComponents +@using System.Threading - + Nr @@ -16,7 +17,7 @@ /// /// Here we simulate getting the paged, filtered and ordered data from the server /// - private async Task> ServerReload(TableState state) + private async Task> ServerReload(TableState state, CancellationToken token) { return new TableData(); } diff --git a/src/MudBlazor.UnitTests/Components/TableTests.cs b/src/MudBlazor.UnitTests/Components/TableTests.cs index 9855d77c7262..f73399c9d39e 100644 --- a/src/MudBlazor.UnitTests/Components/TableTests.cs +++ b/src/MudBlazor.UnitTests/Components/TableTests.cs @@ -2,7 +2,9 @@ #pragma warning disable BL0005 // Set parameter outside component using System; +using System.Collections.Generic; using System.Linq; +using System.Threading; using System.Threading.Tasks; using AngleSharp.Dom; using Bunit; @@ -1224,6 +1226,55 @@ public async Task TableServerDataLoadingTest() comp.Instance.NoRecordsHasRendered.Should().BeFalse(); } + /// + /// Ensures that multiple calls to reload the table properly flag the CancellationToken. + /// + /// A object. + [Test] + public async Task TableServerDataLoadingTestWithCancel() + { + // Render the server-side data (with cancellation) test + var comp = Context.RenderComponent(); + // Get the MudTable component + var table = comp.FindComponent>(); + + // Make a cancellation token we can monitor + CancellationToken? cancelToken = null; + // Make a task completion source + var first = new TaskCompletionSource>(); + // Set the ServerData function + table.SetParam(p => p.ServerData, new Func>>((s, cancellationToken) => + { + // Remember the cancellation token + cancelToken = cancellationToken; + // Return a task that never completes + return first.Task; + })); + + await Task.Delay(20); + + // Test + + // Make sure this first request was not canceled + comp.WaitForAssertion(() => cancelToken?.IsCancellationRequested.Should().BeFalse()); + + // Arrange a table refresh + var second = new TaskCompletionSource>(); + // Set the ServerData function to a new method... + table.SetParam(p => p.ServerData, new Func>>((s, cancellationToken) => + { + // ... which returns the second task. + return second.Task; + })); + + await Task.Delay(20); + + // Test + + // Make sure this second request DID cancel the first request's token + comp.WaitForAssertion(() => cancelToken?.IsCancellationRequested.Should().BeTrue()); + } + /// /// The table should render the classes and style to the tr using the RowStyleFunc and RowClassFunc parameters /// diff --git a/src/MudBlazor/Components/Table/MudTable.razor.cs b/src/MudBlazor/Components/Table/MudTable.razor.cs index fcda2e34fe23..10c10682c55b 100644 --- a/src/MudBlazor/Components/Table/MudTable.razor.cs +++ b/src/MudBlazor/Components/Table/MudTable.razor.cs @@ -8,13 +8,14 @@ using Microsoft.AspNetCore.Components.Rendering; using Microsoft.AspNetCore.Components.Web; using MudBlazor.Extensions; +using System.Threading; namespace MudBlazor { // note: the MudTable code is split. Everything depending on the type parameter T of MudTable is here in MudTable - public partial class MudTable<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] T> : MudTableBase + public partial class MudTable<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] T> : MudTableBase, IDisposable { /// /// Defines how a table row looks like. Use MudTd to define the table cells and their content. @@ -550,14 +551,30 @@ internal override void OnHeaderCheckboxClicked(bool checkedState) /// /// /// MudTable will automatically control loading animation visibility if ServerData is set. - /// See . + /// See . Forward the provided cancellation token to + /// methods which support it. /// [Parameter] [Category(CategoryTypes.Table.Data)] - public Func>> ServerData { get; set; } + public Func>> ServerData { get; set; } + + private CancellationTokenSource _cancellationTokenSrc; + + private void CancelToken() + { + try + { + _cancellationTokenSrc?.Cancel(); + } + catch { /*ignored*/ } + finally + { + _cancellationTokenSrc = new CancellationTokenSource(); + } + } - internal override bool HasServerData => ServerData != null; + internal override bool HasServerData => ServerData != null; TableData _server_data = new() { TotalItems = 0, Items = Array.Empty() }; private IEnumerable _items; @@ -579,7 +596,11 @@ internal override async Task InvokeServerLoadFunc() SortLabel = label?.SortLabel }; - _server_data = await ServerData(state); + // Cancel any prior request + CancelToken(); + + // Get data via the ServerData function + _server_data = await ServerData(state, _cancellationTokenSrc.Token); if (CurrentPage * RowsPerPage > _server_data.TotalItems) CurrentPage = 0; @@ -674,5 +695,20 @@ private string ClearFilterCache() _currentRenderFilteredItemsCached = false; return ""; } + + /// + /// Releases resources used by this table. + /// + public void Dispose() + { + Dispose(disposing: true); + GC.SuppressFinalize(this); + } + + /// + protected virtual void Dispose(bool disposing) + { + _cancellationTokenSrc?.Dispose(); + } } } From a2e68f96b60086bcbd5d98ad5f48b2580d773f17 Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Wed, 27 Mar 2024 14:39:42 -0500 Subject: [PATCH 10/50] MudBaseInput: Remove obsoleted KeyPress related APIs (#8476) --- src/MudBlazor/Base/MudBaseInput.cs | 66 ------------------- src/MudBlazor/Components/Input/MudInput.razor | 64 +++++++++--------- .../Components/Input/MudRangeInput.razor | 4 +- .../Components/TextField/MudTextField.razor | 1 - 4 files changed, 32 insertions(+), 103 deletions(-) diff --git a/src/MudBlazor/Base/MudBaseInput.cs b/src/MudBlazor/Base/MudBaseInput.cs index a06328e9e1f2..80a4338709e9 100644 --- a/src/MudBlazor/Base/MudBaseInput.cs +++ b/src/MudBlazor/Base/MudBaseInput.cs @@ -302,13 +302,6 @@ protected internal virtual async Task OnBlurredAsync(FocusEventArgs obj) /// [Parameter] public EventCallback OnKeyDown { get; set; } - [Obsolete($"Use {nameof(InvokeKeyDownAsync)} instead, this will be removed in v7.")] - protected virtual void InvokeKeyDown(KeyboardEventArgs obj) - { - _isFocused = true; - OnKeyDown.InvokeAsync(obj).AndForget(); - } - protected virtual Task InvokeKeyDownAsync(KeyboardEventArgs obj) { _isFocused = true; @@ -322,60 +315,11 @@ protected virtual Task InvokeKeyDownAsync(KeyboardEventArgs obj) [Category(CategoryTypes.FormComponent.Behavior)] public bool KeyDownPreventDefault { get; set; } - - /// - /// Fired on the KeyPress event. - /// - [Obsolete("This will be removed in v7")] - [Parameter] public EventCallback OnKeyPress { get; set; } - - [Obsolete("This will be removed in v7")] - protected virtual void InvokeKeyPress(KeyboardEventArgs obj) - { - OnKeyPress.InvokeAsync(obj).AndForget(); - } - - protected internal virtual void InvokeKeyPressObsolete(KeyboardEventArgs obj) - { -#pragma warning disable CS0618 - InvokeKeyPress(obj); -#pragma warning restore CS0618 - } - - /// - /// Prevent the default action for the KeyPress event. - /// - [Parameter] - [Category(CategoryTypes.FormComponent.Behavior)] - [Obsolete("This will be removed in v7")] - public bool KeyPressPreventDefault { get; set; } - - internal bool KeyPressPreventDefaultObsolete - { -#pragma warning disable CS0618 - get - { - return KeyPressPreventDefault; - } - set - { - KeyPressPreventDefault = value; - } -#pragma warning restore CS0618 - } - /// /// Fired on the KeyUp event. /// [Parameter] public EventCallback OnKeyUp { get; set; } - [Obsolete($"Use {nameof(InvokeKeyUpAsync)} instead. This will be removed in v7")] - protected virtual void InvokeKeyUp(KeyboardEventArgs obj) - { - _isFocused = true; - OnKeyUp.InvokeAsync(obj).AndForget(); - } - protected virtual Task InvokeKeyUpAsync(KeyboardEventArgs obj) { _isFocused = true; @@ -554,16 +498,6 @@ protected override void OnParametersSet() base.OnParametersSet(); } - [Obsolete($"Use {nameof(ResetValueAsync)} instead. This will be removed in v7")] - [ExcludeFromCodeCoverage] - protected override void ResetValue() - { - SetTextAsync(null, updateValue: true).AndForget(); - this._isDirty = false; - this._validated = false; - base.ResetValue(); - } - protected override async Task ResetValueAsync() { await SetTextAsync(null, updateValue: true); diff --git a/src/MudBlazor/Components/Input/MudInput.razor b/src/MudBlazor/Components/Input/MudInput.razor index 54542d7cef75..4b2f7567eb4e 100644 --- a/src/MudBlazor/Components/Input/MudInput.razor +++ b/src/MudBlazor/Components/Input/MudInput.razor @@ -4,9 +4,9 @@ @using MudBlazor.Internal
- @if (Adornment == Adornment.Start) - { - - } + } - @if (AutoGrow || Lines > 1) - { - @*Note: double mouse wheel handlers needed for Firefox because it doesn't know onmousewheel*@ @*note: the value="@_internalText" is absolutely essential here. the inner html @Text is needed by tests checking it*@ - } - else - { - - @*Note: double mouse wheel handlers needed for Firefox because it doesn't know onmousewheel*@ + @*Note: double mouse wheel handlers needed for Firefox because it doesn't know onmousewheel*@ @if (GetDisabledState()) { @*Note: this div must always be there to avoid crashes in WASM, but it is hidden most of the time except if ChildContent should be shown. In Disabled state the tabindex attribute must NOT be set at all or else it will get focus on click *@ -
@@ -103,7 +99,7 @@ } } - @if (GetClearable() && !GetDisabledState()) + @if (GetClearable() && !GetDisabledState()) { - } + } - @if (Adornment == Adornment.End) - { - - } + } - @if (Variant == Variant.Outlined) - { -
- } + @if (Variant == Variant.Outlined) + { +
+ } - @if (!HideSpinButtons) - { -
+ @if (!HideSpinButtons) + { +
-
- } +
+ }
\ No newline at end of file diff --git a/src/MudBlazor/Components/Input/MudRangeInput.razor b/src/MudBlazor/Components/Input/MudRangeInput.razor index 7b0a1da2febe..ec84650cb99c 100644 --- a/src/MudBlazor/Components/Input/MudRangeInput.razor +++ b/src/MudBlazor/Components/Input/MudRangeInput.razor @@ -17,10 +17,10 @@ } + placeholder="@PlaceholderStart" disabled=@GetDisabledState() readonly="@GetReadOnlyState()" @onblur="@OnBlurredAsync" @onkeydown="@InvokeKeyDownAsync" @onkeyup="@InvokeKeyUpAsync" inputmode="@InputMode.ToString()" pattern="@Pattern" /> + placeholder="@PlaceholderEnd" disabled=@GetDisabledState() readonly="@GetReadOnlyState()" @onblur="@OnBlurredAsync" @onkeydown="@InvokeKeyDownAsync" @onkeyup="@InvokeKeyUpAsync" /> @if (IsClearable() && !GetDisabledState()) { diff --git a/src/MudBlazor/Components/TextField/MudTextField.razor b/src/MudBlazor/Components/TextField/MudTextField.razor index b69024a0238b..8f04f21f6b14 100644 --- a/src/MudBlazor/Components/TextField/MudTextField.razor +++ b/src/MudBlazor/Components/TextField/MudTextField.razor @@ -53,7 +53,6 @@ OnBlur="@OnBlurredAsync" OnKeyDown="@InvokeKeyDownAsync" OnInternalInputChanged="OnChange" - OnKeyPress="@InvokeKeyPressObsolete" OnKeyUp="@InvokeKeyUpAsync" KeyDownPreventDefault="KeyDownPreventDefault" KeyPressPreventDefault="KeyPressPreventDefaultObsolete" From 644eeca260cfbb4ae958f8ab99c624aa0b7c45e0 Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Wed, 27 Mar 2024 14:54:04 -0500 Subject: [PATCH 11/50] Components: Remove some obsoleted methods (#8477) --- .../Autocomplete/MudAutocomplete.razor.cs | 14 --------- .../Components/List/MudListItem.razor.cs | 29 ------------------- .../Components/Radio/MudRadio.razor.cs | 25 ---------------- .../Components/Radio/MudRadioGroup.razor.cs | 13 --------- .../Components/Render/MudRender.razor | 9 ------ .../Components/Select/MudSelect.razor.cs | 4 --- src/MudBlazor/Components/Table/MudTr.razor.cs | 6 ---- 7 files changed, 100 deletions(-) diff --git a/src/MudBlazor/Components/Autocomplete/MudAutocomplete.razor.cs b/src/MudBlazor/Components/Autocomplete/MudAutocomplete.razor.cs index 3fba218abde0..b03053a2d1cd 100644 --- a/src/MudBlazor/Components/Autocomplete/MudAutocomplete.razor.cs +++ b/src/MudBlazor/Components/Autocomplete/MudAutocomplete.razor.cs @@ -607,10 +607,6 @@ public async Task Clear() } } - [Obsolete($"Use {nameof(ResetValueAsync)} instead. This will be removed in v7")] - [ExcludeFromCodeCoverage] - protected override async void ResetValue() => await Clear(); - protected override Task ResetValueAsync() => Clear(); private string GetItemString(T item) @@ -715,16 +711,6 @@ private ValueTask SelectNextItem(int increment) return ScrollToListItem(_selectedListItemIndex); } - /// - /// Scroll to a specific item index in the Autocomplete list of items. - /// - /// the index to scroll to - /// not used - /// ValueTask - [Obsolete("Use ScrollToListItem without increment parameter instead")] - public Task ScrollToListItem(int index, int increment) - => ScrollToListItem(index).AsTask(); - /// /// Scroll to a specific item index in the Autocomplete list of items. /// diff --git a/src/MudBlazor/Components/List/MudListItem.razor.cs b/src/MudBlazor/Components/List/MudListItem.razor.cs index 2567be35ec6e..43cb7750aded 100644 --- a/src/MudBlazor/Components/List/MudListItem.razor.cs +++ b/src/MudBlazor/Components/List/MudListItem.razor.cs @@ -241,35 +241,6 @@ protected async Task OnClickHandlerAsync(MouseEventArgs eventArgs) } } - [Obsolete($"Use {nameof(OnClickHandlerAsync)} instead. This will be removed in v7")] - protected void OnClickHandler(MouseEventArgs ev) - { - if (Disabled) - return; - if (!_onClickHandlerPreventDefault) - { - if (NestedList != null) - { - Expanded = !Expanded; - } - else if (Href != null) - { - MudList?.SetSelectedValueAsync(this.Value); - OnClick.InvokeAsync(ev); - UriHelper.NavigateTo(Href, ForceLoad); - } - else - { - MudList?.SetSelectedValueAsync(this.Value); - OnClick.InvokeAsync(ev); - } - } - else - { - OnClick.InvokeAsync(ev); - } - } - protected override async Task OnInitializedAsync() { _expanded = InitiallyExpanded; diff --git a/src/MudBlazor/Components/Radio/MudRadio.razor.cs b/src/MudBlazor/Components/Radio/MudRadio.razor.cs index cce5701b1f01..f547f7711ee1 100644 --- a/src/MudBlazor/Components/Radio/MudRadio.razor.cs +++ b/src/MudBlazor/Components/Radio/MudRadio.razor.cs @@ -180,12 +180,6 @@ internal void SetChecked(bool value) } } - [Obsolete($"Use {nameof(SelectAsync)} instead. This method will be removed in v7")] - public void Select() - { - MudRadioGroup?.SetSelectedRadioAsync(this).AndForget(); - } - public Task SelectAsync() { if (MudRadioGroup is not null) @@ -211,25 +205,6 @@ internal Task OnClickAsync() return Task.CompletedTask; } - [Obsolete($"Use {nameof(HandleKeyDownAsync)} instead. This method will be removed in v7")] - protected internal void HandleKeyDown(KeyboardEventArgs obj) - { - if (IsDisabled || (MudRadioGroup?.GetReadOnlyState() ?? false)) - { - return; - } - - switch (obj.Key) - { - case "Enter" or "NumpadEnter" or " ": - Select(); - break; - case "Backspace": - MudRadioGroup?.Reset(); - break; - } - } - protected internal async Task HandleKeyDownAsync(KeyboardEventArgs keyboardEventArgs) { if (IsDisabled || (MudRadioGroup?.GetReadOnlyState() ?? false)) diff --git a/src/MudBlazor/Components/Radio/MudRadioGroup.razor.cs b/src/MudBlazor/Components/Radio/MudRadioGroup.razor.cs index 6e92d5540d8d..5d945ddb1938 100644 --- a/src/MudBlazor/Components/Radio/MudRadioGroup.razor.cs +++ b/src/MudBlazor/Components/Radio/MudRadioGroup.razor.cs @@ -176,19 +176,6 @@ internal void UnregisterRadio(MudRadio radio) } } - [Obsolete($"Use {nameof(ResetValueAsync)} instead. This will be removed in v7")] - [ExcludeFromCodeCoverage] - protected override void ResetValue() - { - if (_selectedRadio is not null) - { - _selectedRadio.SetChecked(false); - _selectedRadio = null; - } - - base.ResetValue(); - } - protected override Task ResetValueAsync() { if (_selectedRadio is not null) diff --git a/src/MudBlazor/Components/Render/MudRender.razor b/src/MudBlazor/Components/Render/MudRender.razor index 7d5a76a18b47..11d59dc1989f 100644 --- a/src/MudBlazor/Components/Render/MudRender.razor +++ b/src/MudBlazor/Components/Render/MudRender.razor @@ -17,15 +17,6 @@ [Parameter] public RenderFragment? ChildContent { get; set; } - /// - /// Re-render the content - /// - [Obsolete($"Use {nameof(StateHasChanged)} instead. This method will be removed in v7.")] - public void ForceRender() - { - StateHasChanged(); - } - /// public new void StateHasChanged() { diff --git a/src/MudBlazor/Components/Select/MudSelect.razor.cs b/src/MudBlazor/Components/Select/MudSelect.razor.cs index 0bd7580e1d55..f920eac42a9b 100644 --- a/src/MudBlazor/Components/Select/MudSelect.razor.cs +++ b/src/MudBlazor/Components/Select/MudSelect.razor.cs @@ -995,10 +995,6 @@ internal void HandleKeyUp(KeyboardEventArgs obj) OnKeyUp.InvokeAsync(obj).AndForget(); } - [ExcludeFromCodeCoverage] - [Obsolete("Use Clear instead.", true)] - public Task ClearAsync() => Clear(); - /// /// Clear the selection /// diff --git a/src/MudBlazor/Components/Table/MudTr.razor.cs b/src/MudBlazor/Components/Table/MudTr.razor.cs index d8687f8b2ea9..053fe5802e26 100644 --- a/src/MudBlazor/Components/Table/MudTr.razor.cs +++ b/src/MudBlazor/Components/Table/MudTr.razor.cs @@ -56,12 +56,6 @@ public bool IsChecked } } - [Obsolete($"Use {nameof(OnRowClickedAsync)} instead.")] - public async void OnRowClicked(MouseEventArgs args) - { - await OnRowClickedAsync(args); - } - public async Task OnRowClickedAsync(MouseEventArgs args) { var table = Context?.Table; From 87afa77dfd311ac2086b086369106d1f52a61340 Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Wed, 27 Mar 2024 15:01:24 -0500 Subject: [PATCH 12/50] Theming: Replace all "Grey" spellings with "Gray" (#8452) --- .../Examples/ChipSetBasicExample.razor | 2 +- .../Examples/ChipSetVariantsExample.razor | 6 ++-- .../Examples/TableBasicGroupingExample.razor | 2 +- ...sicGroupingInitiallyCollapsedExample.razor | 2 +- .../Examples/TableMultiGroupingExample.razor | 2 +- .../Pages/Features/Colors/ColorsPage.razor | 6 ++-- .../Examples/ColorsMaterialCodeExample.razor | 4 +-- .../Styles/components/_docspage.scss | 2 +- .../Styles/components/_docssection.scss | 8 +++--- .../Styles/components/_icons.scss | 2 +- .../Styles/components/_mudblazorapp.scss | 2 +- src/MudBlazor.Docs/Styles/core/_base.scss | 4 +-- src/MudBlazor.Docs/Styles/core/_carbon.scss | 2 +- src/MudBlazor.Docs/Styles/core/_markdown.scss | 10 +++---- .../Styles/layout/_mainlayout.scss | 4 +-- .../Styles/pages/_landingpage.scss | 18 ++++++------ src/MudBlazor.Docs/Theme/Theme.cs | 6 ++-- .../Table/TableGroupingTest.razor | 4 +-- .../Table/TableGroupingTest2.razor | 4 +-- ...tiGrouping_DefaultCheckboxStatesTest.razor | 4 +-- .../Components/DatePickerTests.cs | 2 +- .../Components/ThemeProviderTests.cs | 12 ++++---- src/MudBlazor/Colors/Colors.cs | 4 +-- .../Components/Chart/Models/ChartOptions.cs | 2 +- .../Components/DataGrid/MudDataGrid.razor | 2 +- .../ThemeProvider/MudThemingProvider.razor.cs | 12 ++++---- src/MudBlazor/Styles/abstracts/_colors.scss | 2 +- src/MudBlazor/Styles/components/_avatar.scss | 2 +- src/MudBlazor/Styles/components/_badge.scss | 2 +- .../Styles/components/_datagrid.scss | 4 +-- src/MudBlazor/Styles/components/_select.scss | 2 +- src/MudBlazor/Styles/components/_switch.scss | 2 +- .../Styles/components/_timeline.scss | 2 +- .../Styles/components/_togglegroup.scss | 4 +-- src/MudBlazor/Styles/components/_tooltip.scss | 4 +-- src/MudBlazor/Styles/core/_colors.scss | 8 +++--- src/MudBlazor/Themes/Models/Palette.cs | 28 +++++++++---------- src/MudBlazor/Themes/Models/PaletteDark.cs | 2 +- 38 files changed, 95 insertions(+), 95 deletions(-) diff --git a/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetBasicExample.razor b/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetBasicExample.razor index 150c36681f5d..8cf492a805ab 100644 --- a/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetBasicExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetBasicExample.razor @@ -1,7 +1,7 @@ @namespace MudBlazor.Docs.Examples - Default + Default Primary Secondary Info diff --git a/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetVariantsExample.razor b/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetVariantsExample.razor index 876df91f3081..19af144be0f0 100644 --- a/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetVariantsExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetVariantsExample.razor @@ -1,7 +1,7 @@ @namespace MudBlazor.Docs.Examples - Default + Default Primary Secondary Info @@ -11,7 +11,7 @@ Dark - Default + Default Primary Secondary Info @@ -21,7 +21,7 @@ Dark - Default + Default Primary Secondary Info diff --git a/src/MudBlazor.Docs/Pages/Components/Table/Examples/TableBasicGroupingExample.razor b/src/MudBlazor.Docs/Pages/Components/Table/Examples/TableBasicGroupingExample.razor index 1c737f560b82..f0d6a9e26852 100644 --- a/src/MudBlazor.Docs/Pages/Components/Table/Examples/TableBasicGroupingExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Table/Examples/TableBasicGroupingExample.razor @@ -18,7 +18,7 @@ Items="@Elements" Virtualize="@_virtualize" GroupBy="@_groupDefinition" - GroupHeaderStyle="background-color:var(--mud-palette-background-grey)" + GroupHeaderStyle="background-color:var(--mud-palette-background-gray)" GroupFooterClass="mb-4" Dense="_dense" MultiSelection="_multiSelect"> diff --git a/src/MudBlazor.Docs/Pages/Components/Table/Examples/TableBasicGroupingInitiallyCollapsedExample.razor b/src/MudBlazor.Docs/Pages/Components/Table/Examples/TableBasicGroupingInitiallyCollapsedExample.razor index 5952e3bb3d70..1f0824f5ad7b 100644 --- a/src/MudBlazor.Docs/Pages/Components/Table/Examples/TableBasicGroupingInitiallyCollapsedExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Table/Examples/TableBasicGroupingInitiallyCollapsedExample.razor @@ -17,7 +17,7 @@ diff --git a/src/MudBlazor.Docs/Pages/Components/Table/Examples/TableMultiGroupingExample.razor b/src/MudBlazor.Docs/Pages/Components/Table/Examples/TableMultiGroupingExample.razor index 3b4028481aaf..e9970505a917 100644 --- a/src/MudBlazor.Docs/Pages/Components/Table/Examples/TableMultiGroupingExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Table/Examples/TableMultiGroupingExample.razor @@ -19,7 +19,7 @@ + @shade.Name @shade.Value @@ -118,9 +118,9 @@ { return value.Replace("light", "light-"); } - else if(value.StartsWith("bluegrey")) + else if(value.StartsWith("bluegray")) { - return value.Replace("bluegrey", "blue-grey"); + return value.Replace("bluegray", "blue-gray"); } else if(value.StartsWith("shades")) { diff --git a/src/MudBlazor.Docs/Pages/Features/Colors/Examples/ColorsMaterialCodeExample.razor b/src/MudBlazor.Docs/Pages/Features/Colors/Examples/ColorsMaterialCodeExample.razor index 9acb5fee1ce3..46258ec4c230 100644 --- a/src/MudBlazor.Docs/Pages/Features/Colors/Examples/ColorsMaterialCodeExample.razor +++ b/src/MudBlazor.Docs/Pages/Features/Colors/Examples/ColorsMaterialCodeExample.razor @@ -3,6 +3,6 @@ Colors.Purple.Accent3 - - Colors.BlueGrey.Darken4 Colors.LightGreen.Accent3 + + Colors.BlueGray.Darken4 Colors.LightGreen.Accent3 diff --git a/src/MudBlazor.Docs/Styles/components/_docspage.scss b/src/MudBlazor.Docs/Styles/components/_docspage.scss index b5c6cc5e5319..10c8500dc059 100644 --- a/src/MudBlazor.Docs/Styles/components/_docspage.scss +++ b/src/MudBlazor.Docs/Styles/components/_docspage.scss @@ -40,7 +40,7 @@ font-weight: 500; width: 100%; color: var(--mud-palette-text-secondary); - background-color: var(--mud-palette-background-grey); + background-color: var(--mud-palette-background-gray); &.active { color: var(--mud-palette-primary); diff --git a/src/MudBlazor.Docs/Styles/components/_docssection.scss b/src/MudBlazor.Docs/Styles/components/_docssection.scss index 55497fbe826e..c156fad1fbc9 100644 --- a/src/MudBlazor.Docs/Styles/components/_docssection.scss +++ b/src/MudBlazor.Docs/Styles/components/_docssection.scss @@ -69,11 +69,11 @@ } &.darken { - background-color: var(--mud-palette-grey-light); + background-color: var(--mud-palette-gray-light); .file-button { &.active { - background-color: var(--mud-palette-background-grey); + background-color: var(--mud-palette-background-gray); } } } @@ -86,7 +86,7 @@ } &.darken { - background: linear-gradient(0deg, var(--mud-palette-grey-lighter) 0%, var(--mud-palette-background-grey) 50%); + background: linear-gradient(0deg, var(--mud-palette-gray-lighter) 0%, var(--mud-palette-background-gray) 50%); } &.outlined { @@ -116,7 +116,7 @@ position: relative; overflow: hidden; border-radius: 8px; - background-color: var(--mud-palette-background-grey); + background-color: var(--mud-palette-background-gray); transition: border-radius 250ms cubic-bezier(.4, 0, .2, 1); .copy-code-button { diff --git a/src/MudBlazor.Docs/Styles/components/_icons.scss b/src/MudBlazor.Docs/Styles/components/_icons.scss index 0387a632c6af..e2d0838026a6 100644 --- a/src/MudBlazor.Docs/Styles/components/_icons.scss +++ b/src/MudBlazor.Docs/Styles/components/_icons.scss @@ -11,7 +11,7 @@ } .mud-paper { - background-color: var(--mud-palette-background-grey); + background-color: var(--mud-palette-background-gray); } .mud-input-adornment { diff --git a/src/MudBlazor.Docs/Styles/components/_mudblazorapp.scss b/src/MudBlazor.Docs/Styles/components/_mudblazorapp.scss index ba27034275fb..fc3f54ae83b1 100644 --- a/src/MudBlazor.Docs/Styles/components/_mudblazorapp.scss +++ b/src/MudBlazor.Docs/Styles/components/_mudblazorapp.scss @@ -1,5 +1,5 @@ .lp-calc-buttons { - background-color: var(--mud-palette-background-grey); + background-color: var(--mud-palette-background-gray); border-radius: 0 0 60px 60px; button { diff --git a/src/MudBlazor.Docs/Styles/core/_base.scss b/src/MudBlazor.Docs/Styles/core/_base.scss index 0907d7f3b80c..3b028f9dfea9 100644 --- a/src/MudBlazor.Docs/Styles/core/_base.scss +++ b/src/MudBlazor.Docs/Styles/core/_base.scss @@ -8,7 +8,7 @@ } .docs-gray-bg { - background-color: var(--mud-palette-background-grey); + background-color: var(--mud-palette-background-gray); } .mud-button-gradient-primary { @@ -61,7 +61,7 @@ } &.mud-input-control { - background-color: var(--mud-palette-grey-light); + background-color: var(--mud-palette-gray-light); margin-bottom: 5px; height: 42px; border-radius: var(--mud-default-borderradius); diff --git a/src/MudBlazor.Docs/Styles/core/_carbon.scss b/src/MudBlazor.Docs/Styles/core/_carbon.scss index b0de01c18227..33b868fa9855 100644 --- a/src/MudBlazor.Docs/Styles/core/_carbon.scss +++ b/src/MudBlazor.Docs/Styles/core/_carbon.scss @@ -11,7 +11,7 @@ margin-right: auto; animation: mud-animation-fadein ease .15s; border-radius: var(--mud-default-borderradius); - background-color: var(--mud-palette-background-grey); + background-color: var(--mud-palette-background-gray); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Helvetica, Arial, sans-serif; } diff --git a/src/MudBlazor.Docs/Styles/core/_markdown.scss b/src/MudBlazor.Docs/Styles/core/_markdown.scss index 617380682fd7..de5c4a64a066 100644 --- a/src/MudBlazor.Docs/Styles/core/_markdown.scss +++ b/src/MudBlazor.Docs/Styles/core/_markdown.scss @@ -60,22 +60,22 @@ & .enum { color: #00c853; - background-color: var(--mud-palette-grey-light); + background-color: var(--mud-palette-gray-light); } & .enumValue, .sharpVariable { color: var(--mud-palette-text-primary); - background-color: var(--mud-palette-grey-light); + background-color: var(--mud-palette-gray-light); } & .keyword { color: #2196f3; - background-color: var(--mud-palette-grey-light); + background-color: var(--mud-palette-gray-light); } & .atSign { color: var(--mud-palette-text-primary); - background-color: var(--mud-palette-grey-light); + background-color: var(--mud-palette-gray-light); } & .comment { @@ -86,7 +86,7 @@ & .csharp { & .atSign { color: var(--mud-palette-text-primary); - background-color: var(--mud-palette-grey-light); + background-color: var(--mud-palette-gray-light); } & .keyword { diff --git a/src/MudBlazor.Docs/Styles/layout/_mainlayout.scss b/src/MudBlazor.Docs/Styles/layout/_mainlayout.scss index 21c1e6de7032..6975a5d2944a 100644 --- a/src/MudBlazor.Docs/Styles/layout/_mainlayout.scss +++ b/src/MudBlazor.Docs/Styles/layout/_mainlayout.scss @@ -100,10 +100,10 @@ .docs-mobile-dialog-search-popover { box-shadow: none !important; margin-top: 8px; - background-color: var(--mud-palette-background-grey); + background-color: var(--mud-palette-background-gray); .mud-list { - background-color: var(--mud-palette-background-grey); + background-color: var(--mud-palette-background-gray); .mud-list-item { background-color: var(--mud-palette-surface); diff --git a/src/MudBlazor.Docs/Styles/pages/_landingpage.scss b/src/MudBlazor.Docs/Styles/pages/_landingpage.scss index 9a16daf7d25e..cbb7e904335c 100644 --- a/src/MudBlazor.Docs/Styles/pages/_landingpage.scss +++ b/src/MudBlazor.Docs/Styles/pages/_landingpage.scss @@ -38,7 +38,7 @@ width: 100%; height: calc(100vw / 5); min-height: 200px; - background-color: var(--mud-palette-background-grey); + background-color: var(--mud-palette-background-gray); top: 0; left: 0; position: absolute; @@ -51,7 +51,7 @@ height: 100%; min-height: 200px; max-height: 384px; - background-color: var(--mud-palette-background-grey); + background-color: var(--mud-palette-background-gray); bottom: 0; left: 0; position: absolute; @@ -295,18 +295,18 @@ .mud-link { margin: 8px 0px; - color: var(--mud-palette-grey-default); + color: var(--mud-palette-gray-default); cursor: pointer; transition: color 200ms cubic-bezier(.4,0,.2,1) 0ms; @media(hover: hover) and (pointer: fine) { &:hover { - color: var(--mud-palette-grey-light); + color: var(--mud-palette-gray-light); } } &:active { - color: var(--mud-palette-grey-light); + color: var(--mud-palette-gray-light); } } @@ -390,7 +390,7 @@ } &.sweet { - background-color: var(--mud-palette-background-grey); + background-color: var(--mud-palette-background-gray); } } @@ -423,7 +423,7 @@ } &.sweet { - background-color: var(--mud-palette-background-grey); + background-color: var(--mud-palette-background-gray); } &.background { @@ -564,7 +564,7 @@ } .dark-section-text { - color: var(--mud-palette-grey-lighter); + color: var(--mud-palette-gray-lighter); } .world-map { @@ -658,7 +658,7 @@ bottom: -100%; width: 100%; height: 150%; - background: linear-gradient(0deg, var(--mud-palette-background-grey) 0%, rgba(249,250,252,0) 100%); + background: linear-gradient(0deg, var(--mud-palette-background-gray) 0%, rgba(249,250,252,0) 100%); } } diff --git a/src/MudBlazor.Docs/Theme/Theme.cs b/src/MudBlazor.Docs/Theme/Theme.cs index 96a40fe3b116..cbd4de44620b 100644 --- a/src/MudBlazor.Docs/Theme/Theme.cs +++ b/src/MudBlazor.Docs/Theme/Theme.cs @@ -56,7 +56,7 @@ public static MudTheme DocsTheme() Primary = "#7e6fff", Surface = "#1e1e2d", Background = "#1a1a27", - BackgroundGrey = "#151521", + BackgroundGray = "#151521", AppbarText = "#92929f", AppbarBackground = "rgba(26,26,39,0.8)", DrawerBackground = "#1a1a27", @@ -146,7 +146,7 @@ public static MudTheme DocsTheme() { AppbarText = "#424242", AppbarBackground = "rgba(0,0,0,0)", - BackgroundGrey = "#F9FAFC", + BackgroundGray = "#F9FAFC", TextSecondary = "#425466", Dark = "#110E2D", DarkLighten = "#1A1643", @@ -158,7 +158,7 @@ public static MudTheme DocsTheme() { AppbarText = "#92929f", AppbarBackground = "rgba(0,0,0,0)", - BackgroundGrey = "#1a1a27", + BackgroundGray = "#1a1a27", Surface = "#1e1e2d", Background = "#151521", Dark = "#111019", diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableGroupingTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableGroupingTest.razor index abb33a4916c4..a4e5f9f3b29e 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableGroupingTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableGroupingTest.razor @@ -2,8 +2,8 @@ Model: diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableGroupingTest2.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableGroupingTest2.razor index 3056652b6345..29a920f407f0 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableGroupingTest2.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableGroupingTest2.razor @@ -2,8 +2,8 @@ Model: diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelection_MultiGrouping_DefaultCheckboxStatesTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelection_MultiGrouping_DefaultCheckboxStatesTest.razor index 6d0529eb0e91..7c84f55f535e 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelection_MultiGrouping_DefaultCheckboxStatesTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelection_MultiGrouping_DefaultCheckboxStatesTest.razor @@ -10,8 +10,8 @@ + GroupHeaderStyle="background-color:var(--mud-palette-background-gray)" + GroupFooterStyle="background-color:var(--mud-palette-background-gray)"> Model: diff --git a/src/MudBlazor.UnitTests/Components/DatePickerTests.cs b/src/MudBlazor.UnitTests/Components/DatePickerTests.cs index 93d3ddc1232e..47e6ef63786e 100644 --- a/src/MudBlazor.UnitTests/Components/DatePickerTests.cs +++ b/src/MudBlazor.UnitTests/Components/DatePickerTests.cs @@ -839,7 +839,7 @@ public void IsDateDisabledFunc_NoDisabledDatesByDefault() [Test] - //mud-button-root added for greying out and making buttons not clickable if month is disabled + //mud-button-root added for graying out and making buttons not clickable if month is disabled public void MonthButtons_ButtonRootClassPresent() { var comp = OpenPicker(Parameter(nameof(MudDatePicker.FixDay), 1)); diff --git a/src/MudBlazor.UnitTests/Components/ThemeProviderTests.cs b/src/MudBlazor.UnitTests/Components/ThemeProviderTests.cs index 268514a54bcf..b60eb800f0d5 100644 --- a/src/MudBlazor.UnitTests/Components/ThemeProviderTests.cs +++ b/src/MudBlazor.UnitTests/Components/ThemeProviderTests.cs @@ -96,7 +96,7 @@ public void DifferentCultures(string cultureString) "--mud-palette-action-disabled-background: rgba(0,0,0,0.11764705882352941);", "--mud-palette-surface: rgba(255,255,255,1);", "--mud-palette-background: rgba(255,255,255,1);", - "--mud-palette-background-grey: rgba(245,245,245,1);", + "--mud-palette-background-gray: rgba(245,245,245,1);", "--mud-palette-drawer-background: rgba(255,255,255,1);", "--mud-palette-drawer-text: rgba(66,66,66,1);", "--mud-palette-drawer-icon: rgba(97,97,97,1);", @@ -111,11 +111,11 @@ public void DifferentCultures(string cultureString) "--mud-palette-divider-light: rgba(0,0,0,0.8);", "--mud-palette-chip-default: rgba(0,0,0,0.0784313725490196);", "--mud-palette-chip-default-hover: rgba(0,0,0,0.11764705882352941);", - "--mud-palette-grey-default: #9E9E9E;", - "--mud-palette-grey-light: #BDBDBD;", - "--mud-palette-grey-lighter: #E0E0E0;", - "--mud-palette-grey-dark: #757575;", - "--mud-palette-grey-darker: #616161;", + "--mud-palette-gray-default: #9E9E9E;", + "--mud-palette-gray-light: #BDBDBD;", + "--mud-palette-gray-lighter: #E0E0E0;", + "--mud-palette-gray-dark: #757575;", + "--mud-palette-gray-darker: #616161;", "--mud-palette-overlay-dark: rgba(33,33,33,0.4980392156862745);", "--mud-palette-overlay-light: rgba(255,255,255,0.4980392156862745);", "--mud-ripple-color: var(--mud-palette-text-primary);", diff --git a/src/MudBlazor/Colors/Colors.cs b/src/MudBlazor/Colors/Colors.cs index 139e33197e01..58ea66688ff9 100644 --- a/src/MudBlazor/Colors/Colors.cs +++ b/src/MudBlazor/Colors/Colors.cs @@ -307,7 +307,7 @@ public static class Brown public static string Darken4 { get; } = "#3E2723"; } - public static class BlueGrey + public static class BlueGray { public static string Default { get; } = "#607D8B"; public static string Lighten5 { get; } = "#ECEFF1"; @@ -320,7 +320,7 @@ public static class BlueGrey public static string Darken3 { get; } = "#37474F"; public static string Darken4 { get; } = "#263238"; } - public static class Grey + public static class Gray { public static string Default { get; } = "#9E9E9E"; public static string Lighten5 { get; } = "#FAFAFA"; diff --git a/src/MudBlazor/Components/Chart/Models/ChartOptions.cs b/src/MudBlazor/Components/Chart/Models/ChartOptions.cs index 830069c9da86..62f6a33e783b 100644 --- a/src/MudBlazor/Components/Chart/Models/ChartOptions.cs +++ b/src/MudBlazor/Components/Chart/Models/ChartOptions.cs @@ -20,7 +20,7 @@ public class ChartOptions /// If true, legend will not be displayed. /// public bool DisableLegend { get; set; } - public string[] ChartPalette { get; set; } = { Colors.Blue.Accent3, Colors.Teal.Accent3, Colors.Amber.Accent3, Colors.Orange.Accent3, Colors.Red.Accent3, Colors.DeepPurple.Accent3, Colors.Green.Accent3, Colors.LightBlue.Accent3, Colors.Teal.Lighten1, Colors.Amber.Lighten1, Colors.Orange.Lighten1, Colors.Red.Lighten1, Colors.DeepPurple.Lighten1, Colors.Green.Lighten1, Colors.LightBlue.Lighten1, Colors.Amber.Darken2, Colors.Orange.Darken2, Colors.Red.Darken2, Colors.DeepPurple.Darken2, Colors.Grey.Darken2 }; + public string[] ChartPalette { get; set; } = { Colors.Blue.Accent3, Colors.Teal.Accent3, Colors.Amber.Accent3, Colors.Orange.Accent3, Colors.Red.Accent3, Colors.DeepPurple.Accent3, Colors.Green.Accent3, Colors.LightBlue.Accent3, Colors.Teal.Lighten1, Colors.Amber.Lighten1, Colors.Orange.Lighten1, Colors.Red.Lighten1, Colors.DeepPurple.Lighten1, Colors.Green.Lighten1, Colors.LightBlue.Lighten1, Colors.Amber.Darken2, Colors.Orange.Darken2, Colors.Red.Darken2, Colors.DeepPurple.Darken2, Colors.Gray.Darken2 }; public InterpolationOption InterpolationOption { get; set; } = InterpolationOption.Straight; /// diff --git a/src/MudBlazor/Components/DataGrid/MudDataGrid.razor b/src/MudBlazor/Components/DataGrid/MudDataGrid.razor index 2cec01e11911..a083dfc865bb 100644 --- a/src/MudBlazor/Components/DataGrid/MudDataGrid.razor +++ b/src/MudBlazor/Components/DataGrid/MudDataGrid.razor @@ -211,7 +211,7 @@ @{ var groupClass = new CssBuilder(GroupClass).AddClass(GroupClassFunc?.Invoke(g)).Build(); } @{ var groupStyle = new StyleBuilder().AddStyle(GroupStyle).AddStyle(GroupStyleFunc?.Invoke(g)).Build(); } - + diff --git a/src/MudBlazor/Components/ThemeProvider/MudThemingProvider.razor.cs b/src/MudBlazor/Components/ThemeProvider/MudThemingProvider.razor.cs index d2c366b5cd9e..95d98860aa34 100644 --- a/src/MudBlazor/Components/ThemeProvider/MudThemingProvider.razor.cs +++ b/src/MudBlazor/Components/ThemeProvider/MudThemingProvider.razor.cs @@ -223,7 +223,7 @@ protected virtual void GenerateTheme(StringBuilder theme) theme.AppendLine($"--{Palette}-surface: {palette.Surface};"); theme.AppendLine($"--{Palette}-background: {palette.Background};"); - theme.AppendLine($"--{Palette}-background-grey: {palette.BackgroundGrey};"); + theme.AppendLine($"--{Palette}-background-gray: {palette.BackgroundGray};"); theme.AppendLine($"--{Palette}-drawer-background: {palette.DrawerBackground};"); theme.AppendLine($"--{Palette}-drawer-text: {palette.DrawerText};"); theme.AppendLine($"--{Palette}-drawer-icon: {palette.DrawerIcon};"); @@ -243,11 +243,11 @@ protected virtual void GenerateTheme(StringBuilder theme) theme.AppendLine($"--{Palette}-chip-default: {palette.ChipDefault};"); theme.AppendLine($"--{Palette}-chip-default-hover: {palette.ChipDefaultHover};"); - theme.AppendLine($"--{Palette}-grey-default: {palette.GrayDefault};"); - theme.AppendLine($"--{Palette}-grey-light: {palette.GrayLight};"); - theme.AppendLine($"--{Palette}-grey-lighter: {palette.GrayLighter};"); - theme.AppendLine($"--{Palette}-grey-dark: {palette.GrayDark};"); - theme.AppendLine($"--{Palette}-grey-darker: {palette.GrayDarker};"); + theme.AppendLine($"--{Palette}-gray-default: {palette.GrayDefault};"); + theme.AppendLine($"--{Palette}-gray-light: {palette.GrayLight};"); + theme.AppendLine($"--{Palette}-gray-lighter: {palette.GrayLighter};"); + theme.AppendLine($"--{Palette}-gray-dark: {palette.GrayDark};"); + theme.AppendLine($"--{Palette}-gray-darker: {palette.GrayDarker};"); theme.AppendLine($"--{Palette}-overlay-dark: {palette.OverlayDark};"); theme.AppendLine($"--{Palette}-overlay-light: {palette.OverlayLight};"); diff --git a/src/MudBlazor/Styles/abstracts/_colors.scss b/src/MudBlazor/Styles/abstracts/_colors.scss index 217711efaa0a..4c8a7748b837 100644 --- a/src/MudBlazor/Styles/abstracts/_colors.scss +++ b/src/MudBlazor/Styles/abstracts/_colors.scss @@ -49,7 +49,7 @@ } .mud-background-gray { - background-color: var(--mud-palette-background-grey) !important; + background-color: var(--mud-palette-background-gray) !important; } .mud-theme-transparent { diff --git a/src/MudBlazor/Styles/components/_avatar.scss b/src/MudBlazor/Styles/components/_avatar.scss index 252c262fb619..e6452c7a8db2 100644 --- a/src/MudBlazor/Styles/components/_avatar.scss +++ b/src/MudBlazor/Styles/components/_avatar.scss @@ -11,7 +11,7 @@ border-radius: 50%; justify-content: center; color: var(--mud-palette-white); - background-color: var(--mud-palette-grey-light); + background-color: var(--mud-palette-gray-light); &.mud-avatar-small { width: 24px; diff --git a/src/MudBlazor/Styles/components/_badge.scss b/src/MudBlazor/Styles/components/_badge.scss index 9fbf4a7d880b..5d5dab1a4576 100644 --- a/src/MudBlazor/Styles/components/_badge.scss +++ b/src/MudBlazor/Styles/components/_badge.scss @@ -84,7 +84,7 @@ &.mud-badge-default { color: var(--mud-palette-text-primary); - background-color: var(--mud-palette-grey-light); + background-color: var(--mud-palette-gray-light); } &.mud-badge-bordered { diff --git a/src/MudBlazor/Styles/components/_datagrid.scss b/src/MudBlazor/Styles/components/_datagrid.scss index 87155e5952e4..225745d8e056 100644 --- a/src/MudBlazor/Styles/components/_datagrid.scss +++ b/src/MudBlazor/Styles/components/_datagrid.scss @@ -53,14 +53,14 @@ &.sticky-left { left: 0px; position: sticky; - background-color: var(--mud-palette-background-grey); + background-color: var(--mud-palette-background-gray); z-index: 1; } &.sticky-right { right: 0px; position: sticky; - background-color: var(--mud-palette-background-grey); + background-color: var(--mud-palette-background-gray); z-index: 1; } diff --git a/src/MudBlazor/Styles/components/_select.scss b/src/MudBlazor/Styles/components/_select.scss index 5b5b634cd1d6..cfb488f94b06 100644 --- a/src/MudBlazor/Styles/components/_select.scss +++ b/src/MudBlazor/Styles/components/_select.scss @@ -84,6 +84,6 @@ .mud-select-all { margin-top: 10px; - border-bottom: 1px solid lightgrey; + border-bottom: 1px solid lightgray; padding-bottom: 18px; } diff --git a/src/MudBlazor/Styles/components/_switch.scss b/src/MudBlazor/Styles/components/_switch.scss index cfe4c88b049d..f88508b1319f 100644 --- a/src/MudBlazor/Styles/components/_switch.scss +++ b/src/MudBlazor/Styles/components/_switch.scss @@ -74,7 +74,7 @@ } &.mud-switch-disabled { - color: var(--mud-palette-grey-default) !important; + color: var(--mud-palette-gray-default) !important; & + .mud-switch-track { opacity: 0.12 !important; diff --git a/src/MudBlazor/Styles/components/_timeline.scss b/src/MudBlazor/Styles/components/_timeline.scss index 3f8eab18fb9c..620e15c5eb29 100644 --- a/src/MudBlazor/Styles/components/_timeline.scss +++ b/src/MudBlazor/Styles/components/_timeline.scss @@ -356,7 +356,7 @@ } &.mud-timeline-dot-default { - background-color: var(--mud-palette-grey-light); + background-color: var(--mud-palette-gray-light); } @each $color in $mud-palette-colors { diff --git a/src/MudBlazor/Styles/components/_togglegroup.scss b/src/MudBlazor/Styles/components/_togglegroup.scss index 2a2d76a46f3b..7641a77942ea 100644 --- a/src/MudBlazor/Styles/components/_togglegroup.scss +++ b/src/MudBlazor/Styles/components/_togglegroup.scss @@ -21,7 +21,7 @@ } &.mud-toggle-delimiter-alternative { - border-left-color: var(--mud-palette-background-grey) !important; + border-left-color: var(--mud-palette-background-gray) !important; } } } @@ -59,7 +59,7 @@ } &.mud-toggle-delimiter-alternative { - border-top-color: var(--mud-palette-background-grey) !important; + border-top-color: var(--mud-palette-background-gray) !important; } } } diff --git a/src/MudBlazor/Styles/components/_tooltip.scss b/src/MudBlazor/Styles/components/_tooltip.scss index c79a2b759728..893a571d2836 100644 --- a/src/MudBlazor/Styles/components/_tooltip.scss +++ b/src/MudBlazor/Styles/components/_tooltip.scss @@ -20,10 +20,10 @@ &.mud-tooltip-default { color: var(--mud-palette-dark-text); - background-color: var(--mud-palette-grey-darker); + background-color: var(--mud-palette-gray-darker); &.mud-tooltip-arrow::after { - border-color: var(--mud-palette-grey-darker) transparent transparent transparent; + border-color: var(--mud-palette-gray-darker) transparent transparent transparent; } } diff --git a/src/MudBlazor/Styles/core/_colors.scss b/src/MudBlazor/Styles/core/_colors.scss index fe8a1ecd0905..945c8a20ffd6 100644 --- a/src/MudBlazor/Styles/core/_colors.scss +++ b/src/MudBlazor/Styles/core/_colors.scss @@ -283,7 +283,7 @@ $brown: ( 'darken-4': #3e2723 ); -$blue-grey: ( +$blue-gray: ( 'base': #607d8b, 'lighten-5': #eceff1, 'lighten-4': #cfd8dc, @@ -296,7 +296,7 @@ $blue-grey: ( 'darken-4': #263238 ); -$grey: ( +$gray: ( 'base': #9e9e9e, 'lighten-5': #fafafa, 'lighten-4': #f5f5f5, @@ -333,8 +333,8 @@ $colors: ( 'orange': $orange, 'deep-orange': $deep-orange, 'brown': $brown, - 'blue-grey': $blue-grey, - 'grey': $grey, + 'blue-gray': $blue-gray, + 'gray': $gray, 'shades': $shades ); diff --git a/src/MudBlazor/Themes/Models/Palette.cs b/src/MudBlazor/Themes/Models/Palette.cs index 02cc114b8881..3df1def9be7f 100644 --- a/src/MudBlazor/Themes/Models/Palette.cs +++ b/src/MudBlazor/Themes/Models/Palette.cs @@ -110,7 +110,7 @@ public class Palette /// /// Gets or sets the dark color. /// - public virtual MudColor Dark { get; set; } = Colors.Grey.Darken3; + public virtual MudColor Dark { get; set; } = Colors.Gray.Darken3; /// /// Gets or sets the contrast text color for the dark color. @@ -120,7 +120,7 @@ public class Palette /// /// Gets or sets the primary text color. /// - public virtual MudColor TextPrimary { get; set; } = Colors.Grey.Darken3; + public virtual MudColor TextPrimary { get; set; } = Colors.Gray.Darken3; /// /// Gets or sets the secondary text color. @@ -154,9 +154,9 @@ public class Palette public virtual MudColor Background { get; set; } = Colors.Shades.White; /// - /// Gets or sets the grey background color. + /// Gets or sets the gray background color. /// - public virtual MudColor BackgroundGrey { get; set; } = Colors.Grey.Lighten4; + public virtual MudColor BackgroundGray { get; set; } = Colors.Gray.Lighten4; /// /// Gets or sets the surface color. @@ -171,12 +171,12 @@ public class Palette /// /// Gets or sets the drawer text color. /// - public virtual MudColor DrawerText { get; set; } = Colors.Grey.Darken3; + public virtual MudColor DrawerText { get; set; } = Colors.Gray.Darken3; /// /// Gets or sets the drawer icon color. /// - public virtual MudColor DrawerIcon { get; set; } = Colors.Grey.Darken2; + public virtual MudColor DrawerIcon { get; set; } = Colors.Gray.Darken2; /// /// Gets or sets the appbar background color. @@ -196,12 +196,12 @@ public class Palette /// /// Gets or sets the color for input lines. /// - public virtual MudColor LinesInputs { get; set; } = Colors.Grey.Lighten1; + public virtual MudColor LinesInputs { get; set; } = Colors.Gray.Lighten1; /// /// Gets or sets the color for table lines. /// - public virtual MudColor TableLines { get; set; } = new MudColor(Colors.Grey.Lighten2).SetAlpha(1.0).ToString(MudColorOutputFormats.RGBA); + public virtual MudColor TableLines { get; set; } = new MudColor(Colors.Gray.Lighten2).SetAlpha(1.0).ToString(MudColorOutputFormats.RGBA); /// /// Gets or sets the color for striped rows in a table. @@ -216,7 +216,7 @@ public class Palette /// /// Gets or sets the color for dividers. /// - public virtual MudColor Divider { get; set; } = Colors.Grey.Lighten2; + public virtual MudColor Divider { get; set; } = Colors.Gray.Lighten2; /// /// Gets or sets the light color for dividers. @@ -395,27 +395,27 @@ public string DarkLighten /// /// Gets or sets the default gray color. /// - public string GrayDefault { get; set; } = Colors.Grey.Default; + public string GrayDefault { get; set; } = Colors.Gray.Default; /// /// Gets or sets the lightened gray color. /// - public string GrayLight { get; set; } = Colors.Grey.Lighten1; + public string GrayLight { get; set; } = Colors.Gray.Lighten1; /// /// Gets or sets the further lightened gray color. /// - public string GrayLighter { get; set; } = Colors.Grey.Lighten2; + public string GrayLighter { get; set; } = Colors.Gray.Lighten2; /// /// Gets or sets the darkened gray color. /// - public string GrayDark { get; set; } = Colors.Grey.Darken1; + public string GrayDark { get; set; } = Colors.Gray.Darken1; /// /// Gets or sets the further darkened gray color. /// - public string GrayDarker { get; set; } = Colors.Grey.Darken2; + public string GrayDarker { get; set; } = Colors.Gray.Darken2; /// /// Gets or sets the dark overlay color. diff --git a/src/MudBlazor/Themes/Models/PaletteDark.cs b/src/MudBlazor/Themes/Models/PaletteDark.cs index a73b775f6f61..df6f908d44fa 100644 --- a/src/MudBlazor/Themes/Models/PaletteDark.cs +++ b/src/MudBlazor/Themes/Models/PaletteDark.cs @@ -53,7 +53,7 @@ public class PaletteDark : Palette public override MudColor Background { get; set; } = "#32333d"; /// - public override MudColor BackgroundGrey { get; set; } = "#27272f"; + public override MudColor BackgroundGray { get; set; } = "#27272f"; /// public override MudColor Surface { get; set; } = "#373740"; From 30e90ecd7c92955ae2067083bcc4568df719c6af Mon Sep 17 00:00:00 2001 From: Meinrad Recheis Date: Wed, 27 Mar 2024 21:22:07 +0100 Subject: [PATCH 13/50] Update CONTRIBUTING.md --- CONTRIBUTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2a48b775c7c3..a2866d1d6e3d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -56,7 +56,7 @@ Please make sure that you follow our [code of conduct](/CODE_OF_CONDUCT.md) - If there are new changes in the main repo, you should either merge the main repo's (upstream) dev or rebase your branch onto it. - Before working on a large change, it is recommended to first open an issue to discuss it with others - If your Pull Request is still in progress, convert it to a draft Pull Request -- Your commit messages should follow the following format: +- The PR Title should follow the following format: ``` : () ``` @@ -64,7 +64,7 @@ For example: ``` DateRangePicker: Fix initializing DateRange with null values (#1997) ``` - +- To keep your branch up to date with the `dev` branch simply merge `dev`, don't rebase because if you rebase the wrong direction your PR will include unrelated commits from dev. - Your Pull Request should not include any unnecessary refactoring - If there are visual changes, you should include a screenshot, gif or video - If there are any coresponding issues, link them to the Pull Request. Include `Fixes #` for bug fixes and `Closes #` for other issues in the description ([Link issues guide](https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword)) From 8c651a8e8dc89b81fddb9f994e7576df5e930807 Mon Sep 17 00:00:00 2001 From: Meinrad Recheis Date: Wed, 27 Mar 2024 21:23:25 +0100 Subject: [PATCH 14/50] Update CONTRIBUTING.md --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a2866d1d6e3d..739fbad3df03 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -64,7 +64,7 @@ For example: ``` DateRangePicker: Fix initializing DateRange with null values (#1997) ``` -- To keep your branch up to date with the `dev` branch simply merge `dev`, don't rebase because if you rebase the wrong direction your PR will include unrelated commits from dev. +- To keep your branch up to date with the `dev` branch simply merge `dev`. **Don't rebase** because if you rebase the wrong direction your PR will include tons of unrelated commits from dev. - Your Pull Request should not include any unnecessary refactoring - If there are visual changes, you should include a screenshot, gif or video - If there are any coresponding issues, link them to the Pull Request. Include `Fixes #` for bug fixes and `Closes #` for other issues in the description ([Link issues guide](https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword)) From b13a71ec64bc1396ba7fe6d33afe056f14237a42 Mon Sep 17 00:00:00 2001 From: tpmccrary <42851426+tpmccrary@users.noreply.github.com> Date: Wed, 27 Mar 2024 14:43:39 -0600 Subject: [PATCH 15/50] MudText: Replace h6 with span for subtitle typos (#6059) (#6061) --- src/MudBlazor/Components/Typography/MudText.razor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MudBlazor/Components/Typography/MudText.razor b/src/MudBlazor/Components/Typography/MudText.razor index 4c2f8986a6da..6453bd4b2edc 100644 --- a/src/MudBlazor/Components/Typography/MudText.razor +++ b/src/MudBlazor/Components/Typography/MudText.razor @@ -23,10 +23,10 @@
@ChildContent
break; case Typo.subtitle1: -
@ChildContent
+ @ChildContent break; case Typo.subtitle2: -
@ChildContent
+ @ChildContent break; case Typo.body1:

@ChildContent

From 9700485be2cbf8f54ea4e32d363f218b679b7611 Mon Sep 17 00:00:00 2001 From: Artyom M Date: Thu, 28 Mar 2024 03:52:08 +0200 Subject: [PATCH 16/50] Tests: Fix ScrollToTopTests (#8507) --- src/MudBlazor.UnitTests/Components/ScrollToTopTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MudBlazor.UnitTests/Components/ScrollToTopTests.cs b/src/MudBlazor.UnitTests/Components/ScrollToTopTests.cs index e919fbe6d547..a0e3c805af82 100644 --- a/src/MudBlazor.UnitTests/Components/ScrollToTopTests.cs +++ b/src/MudBlazor.UnitTests/Components/ScrollToTopTests.cs @@ -25,7 +25,7 @@ public void ScrollToTopTest() scrollIntoViewInvocation.Arguments.Count.Should().Be(2); // checks invocation of js scroll function to ensure main functionality - comp.Find("span").Click(); + comp.Find("span.mud-scroll-to-top").Click(); var scrollToInvocation = Context.JSInterop.VerifyInvoke("mudScrollManager.scrollTo"); scrollToInvocation.Arguments.Count.Should().Be(4); From 916697af268628f820e98ea8951217052e342373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Prajer?= <50521366+gaplin@users.noreply.github.com> Date: Thu, 28 Mar 2024 08:37:36 +0100 Subject: [PATCH 17/50] MudDateRangePicker: Add missing properties: PlaceholderStart/End and SeparatorIcon (#6431) --- .../Components/DateRangePickerTests.cs | 39 +++++++++++++++++++ .../DatePicker/MudDateRangePicker.razor | 2 +- .../DatePicker/MudDateRangePicker.razor.cs | 21 ++++++++++ 3 files changed, 61 insertions(+), 1 deletion(-) diff --git a/src/MudBlazor.UnitTests/Components/DateRangePickerTests.cs b/src/MudBlazor.UnitTests/Components/DateRangePickerTests.cs index 04c922648e7b..4a013b56f756 100644 --- a/src/MudBlazor.UnitTests/Components/DateRangePickerTests.cs +++ b/src/MudBlazor.UnitTests/Components/DateRangePickerTests.cs @@ -38,6 +38,45 @@ public void Default() picker.FixYear.Should().Be(null); picker.FixMonth.Should().Be(null); picker.FixDay.Should().Be(null); + picker.PlaceholderStart.Should().Be(null); + picker.PlaceholderEnd.Should().Be(null); + picker.SeparatorIcon.Should().Be(Icons.Material.Filled.ArrowRightAlt); + } + + [Test] + public void DateRangePickerPlaceHolders() + { + var comp = Context.RenderComponent(); + comp.SetParametersAndRender( + parameters => + parameters + .Add(picker => picker.PlaceholderStart, "Start") + .Add(picker => picker.PlaceholderEnd, "End") + ); + + var startInput = comp.Find("input").Attributes["placeholder"].Value.Should().Be("Start"); + var endInput = comp.FindAll("input").Skip(1).First().Attributes["placeholder"].Value.Should().Be("End"); + } + + [Test] + public void DateRangePickerSeparatorIcon() + { + var newIcon = Icons.Material.Filled.Star; + var comp = Context.RenderComponent(); + comp.SetParametersAndRender( + parameters => + parameters + .Add(picker => picker.SeparatorIcon, newIcon) + ); + var markup = comp.Markup; + + // Only check first svg section + string startText = " + PlaceholderStart="@PlaceholderStart" PlaceholderEnd="@PlaceholderEnd" SeparatorIcon="@SeparatorIcon" Clearable="Clearable"/> ; diff --git a/src/MudBlazor/Components/DatePicker/MudDateRangePicker.razor.cs b/src/MudBlazor/Components/DatePicker/MudDateRangePicker.razor.cs index 5bbbd960707d..840b0da1643f 100644 --- a/src/MudBlazor/Components/DatePicker/MudDateRangePicker.razor.cs +++ b/src/MudBlazor/Components/DatePicker/MudDateRangePicker.razor.cs @@ -21,6 +21,27 @@ public MudDateRangePicker() AdornmentAriaLabel = "Open Date Range Picker"; } + /// + /// The short hint displayed in the start input before the user enters a value. + /// + [Parameter] + [Category(CategoryTypes.FormComponent.Behavior)] + public string PlaceholderStart { get; set; } + + /// + /// The short hint displayed in the end input before the user enters a value. + /// + [Parameter] + [Category(CategoryTypes.FormComponent.Behavior)] + public string PlaceholderEnd { get; set; } + + /// + /// Custom separator icon, leave null for default. + /// + [Parameter] + [Category(CategoryTypes.FormComponent.Appearance)] + public string SeparatorIcon { get; set; } = Icons.Material.Filled.ArrowRightAlt; + /// /// Fired when the DateFormat changes. /// From 9725d489a5ba354d5bb4abb7fa639bae958ff8a7 Mon Sep 17 00:00:00 2001 From: Tymur Lunov <37523703lts@gmail.com> Date: Thu, 28 Mar 2024 12:48:21 +0200 Subject: [PATCH 18/50] DataGrid : Fix sorting when there is Header row (#7645) (#8504) Co-authored-by: Tymur Lunov --- .../DataGridSortableHeaderRowTest.razor | 39 +++++++++++++++++++ .../Components/DataGridTests.cs | 26 +++++++++++++ .../Components/DataGrid/HeaderCell.razor.cs | 2 +- 3 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 src/MudBlazor.UnitTests.Viewer/TestComponents/DataGrid/DataGridSortableHeaderRowTest.razor diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/DataGrid/DataGridSortableHeaderRowTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/DataGrid/DataGridSortableHeaderRowTest.razor new file mode 100644 index 000000000000..ade7703f2ae8 --- /dev/null +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/DataGrid/DataGridSortableHeaderRowTest.razor @@ -0,0 +1,39 @@ +@namespace MudBlazor.UnitTests.TestComponents + + +
+ Data +
+ + + + + +
+ +@code { + public static string __description__ = @"Test in-browser-sorting of DataGrid. Hold key when clicking header to extend to multi sort. Hold key to unsort a sorted column. +Note that the 'Misc' column is being sorted by length and not by the content itself."; + + + private IEnumerable _items = new List() + { + new Item("B", 42, "555"), + new Item("A", 73, "7"), + new Item("A", 11, "4444"), + }; + + public class Item + { + public string Name { get; set; } + public int Value { get; set; } + public string Misc { get; set; } + + public Item(string name, int value, string misc) + { + Name = name; + Value = value; + Misc = misc; + } + } +} \ No newline at end of file diff --git a/src/MudBlazor.UnitTests/Components/DataGridTests.cs b/src/MudBlazor.UnitTests/Components/DataGridTests.cs index 33594e32f286..01ef42653ebc 100644 --- a/src/MudBlazor.UnitTests/Components/DataGridTests.cs +++ b/src/MudBlazor.UnitTests/Components/DataGridTests.cs @@ -124,6 +124,32 @@ public async Task DataGridSortableTest() dataGrid.FindAll(".column-header .sortable-column-header").Should().BeEmpty(); } + [Test] + public async Task DataGridSortableHeaderRowTest() + { + var comp = Context.RenderComponent(); + var dataGrid = comp.FindComponent>(); + + // Count the number of rows including header. + var rows = dataGrid.FindAll("tr"); + rows.Count.Should().Be(6, because: "2 header rows + 3 data rows + 1 footer row"); + + var cells = dataGrid.FindAll("td"); + cells.Count.Should().Be(9, because: "We have 3 data rows with three columns"); + + // Check the values of rows without sorting + cells[0].TextContent.Should().Be("B"); cells[1].TextContent.Should().Be("42"); cells[2].TextContent.Should().Be("555"); + cells[3].TextContent.Should().Be("A"); cells[4].TextContent.Should().Be("73"); cells[5].TextContent.Should().Be("7"); + cells[6].TextContent.Should().Be("A"); cells[7].TextContent.Should().Be("11"); cells[8].TextContent.Should().Be("4444"); + + await comp.InvokeAsync(() => dataGrid.Instance.SetSortAsync("Name", SortDirection.Ascending, x => { return x.Name; })); + cells = dataGrid.FindAll("td"); + + cells[0].TextContent.Should().Be("A"); cells[1].TextContent.Should().Be("73"); cells[2].TextContent.Should().Be("7"); + cells[3].TextContent.Should().Be("A"); cells[4].TextContent.Should().Be("11"); cells[5].TextContent.Should().Be("4444"); + cells[6].TextContent.Should().Be("B"); cells[7].TextContent.Should().Be("42"); cells[8].TextContent.Should().Be("555"); + } + [Test] public async Task DataGridSortableTemplateColumnTest() { diff --git a/src/MudBlazor/Components/DataGrid/HeaderCell.razor.cs b/src/MudBlazor/Components/DataGrid/HeaderCell.razor.cs index 7ed0c2dd6a4c..b58c41b1e62d 100644 --- a/src/MudBlazor/Components/DataGrid/HeaderCell.razor.cs +++ b/src/MudBlazor/Components/DataGrid/HeaderCell.razor.cs @@ -224,7 +224,7 @@ protected override async Task OnInitializedAsync() /// The removed sorts. private void OnGridSortChanged(Dictionary> activeSorts, HashSet removedSorts) { - if ((Column.Sortable.HasValue && !Column.Sortable.Value) || string.IsNullOrWhiteSpace(Column.PropertyName)) + if (Column == null || (Column.Sortable.HasValue && !Column.Sortable.Value) || string.IsNullOrWhiteSpace(Column.PropertyName)) return; if (null != removedSorts && removedSorts.Contains(Column.PropertyName)) From 9af96cb150d9e7a052633751523884beea25801a Mon Sep 17 00:00:00 2001 From: Artyom M Date: Thu, 28 Mar 2024 12:50:54 +0200 Subject: [PATCH 19/50] MudHidden: Use ParameterState framework. (#8508) --- .../Components/Hidden/MudHidden.razor | 2 +- .../Components/Hidden/MudHidden.razor.cs | 23 ++++++++----------- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/src/MudBlazor/Components/Hidden/MudHidden.razor b/src/MudBlazor/Components/Hidden/MudHidden.razor index 729a8c9a1f9f..d3027b0c1532 100644 --- a/src/MudBlazor/Components/Hidden/MudHidden.razor +++ b/src/MudBlazor/Components/Hidden/MudHidden.razor @@ -1,7 +1,7 @@ @namespace MudBlazor @inherits MudComponentBase -@if (!_isHidden) +@if (!_isHiddenState.Value) { @ChildContent } \ No newline at end of file diff --git a/src/MudBlazor/Components/Hidden/MudHidden.razor.cs b/src/MudBlazor/Components/Hidden/MudHidden.razor.cs index cf7ea551e2e0..e466911241bb 100644 --- a/src/MudBlazor/Components/Hidden/MudHidden.razor.cs +++ b/src/MudBlazor/Components/Hidden/MudHidden.razor.cs @@ -1,13 +1,14 @@ using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; +using MudBlazor.State; namespace MudBlazor { #nullable enable public partial class MudHidden : MudComponentBase, IBrowserViewportObserver, IAsyncDisposable { - private bool _isHidden = true; + private IParameterState _isHiddenState; private bool _serviceIsReady = false; private Breakpoint _currentBreakpoint = Breakpoint.None; @@ -36,18 +37,7 @@ public partial class MudHidden : MudComponentBase, IBrowserViewportObserver, IAs ///
[Parameter] [Category(CategoryTypes.Hidden.Behavior)] - public bool IsHidden - { - get => _isHidden; - set - { - if (_isHidden != value) - { - _isHidden = value; - IsHiddenChanged.InvokeAsync(_isHidden); - } - } - } + public bool IsHidden { get; set; } = true; /// /// Fires when the breakpoint changes visibility of the component @@ -62,6 +52,11 @@ public bool IsHidden [Category(CategoryTypes.Hidden.Behavior)] public RenderFragment? ChildContent { get; set; } + public MudHidden() + { + _isHiddenState = RegisterParameter(nameof(IsHidden), () => IsHidden, () => IsHiddenChanged); + } + protected override async Task OnParametersSetAsync() { await base.OnParametersSetAsync(); @@ -129,7 +124,7 @@ protected async Task UpdateAsync(Breakpoint currentBreakpoint) hidden = !hidden; } - IsHidden = hidden; + await _isHiddenState.SetValueAsync(hidden); } } } From 70034b9829a1752d8e1c137c723b6ada7cd15462 Mon Sep 17 00:00:00 2001 From: Artyom M Date: Thu, 28 Mar 2024 15:31:19 +0200 Subject: [PATCH 20/50] Pickers: change API to async to avoid async void and fire-and-forget (#8506) --- .../DatePickerActionButtonsExample.razor | 6 +- .../DateRangePickerUsageExample.razor | 6 +- .../DateRangePickerActionButtonsExample.razor | 6 +- .../TimePickerActionButtonsExample.razor | 16 +- .../TimePickerKeyboardNavigationExample.razor | 12 +- .../ColorPicker/SimpleColorPickerTest.razor | 7 +- .../AutoCloseDateRangePickerTest.razor | 6 +- .../AutoCompleteDatePickerTest.razor | 6 +- .../DatePicker/DatePickerStaticTest.razor | 6 +- .../DateRangePickerValidationTest.razor | 6 +- .../DatePicker/SimpleMudDatePickerTest.razor | 4 +- .../SimpleMudMudDateRangePickerTest.razor | 4 +- .../AutoCompleteTimePickerTest.razor | 6 +- .../TimePicker/SimpleTimePickerTest.razor | 4 +- .../Components/DataGridTests.cs | 4 +- .../Components/DatePickerTests.cs | 36 ++-- .../Components/DateRangePickerTests.cs | 6 +- .../Components/TimePickerTests.cs | 22 +- .../ColorPicker/MudColorPicker.razor | 2 +- .../ColorPicker/MudColorPicker.razor.cs | 42 ++-- .../DatePicker/MudBaseDatePicker.razor | 6 +- .../DatePicker/MudBaseDatePicker.razor.cs | 22 +- .../Components/DatePicker/MudDatePicker.cs | 46 ++--- .../DatePicker/MudDateRangePicker.razor | 4 +- .../DatePicker/MudDateRangePicker.razor.cs | 28 ++- .../Components/Picker/MudPicker.razor | 8 +- .../Components/Picker/MudPicker.razor.cs | 85 ++++---- .../Components/TimePicker/MudTimePicker.razor | 16 +- .../TimePicker/MudTimePicker.razor.cs | 188 +++++++++--------- 29 files changed, 305 insertions(+), 305 deletions(-) diff --git a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerActionButtonsExample.razor b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerActionButtonsExample.razor index a00cd8ea8bc0..0c6bdd72ca26 100644 --- a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerActionButtonsExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerActionButtonsExample.razor @@ -2,9 +2,9 @@ - Clear - Cancel - Ok + Clear + Cancel + Ok AutoClose diff --git a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DateRangePickerUsageExample.razor b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DateRangePickerUsageExample.razor index 2338f6a2dbeb..2525b1a06bf1 100644 --- a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DateRangePickerUsageExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DateRangePickerUsageExample.razor @@ -9,9 +9,9 @@ - Clear - Cancel - Ok + Clear + Cancel + Ok AutoClose diff --git a/src/MudBlazor.Docs/Pages/Components/DateRangePicker/Examples/DateRangePickerActionButtonsExample.razor b/src/MudBlazor.Docs/Pages/Components/DateRangePicker/Examples/DateRangePickerActionButtonsExample.razor index ecffb485346a..97ecf557ea8d 100644 --- a/src/MudBlazor.Docs/Pages/Components/DateRangePicker/Examples/DateRangePickerActionButtonsExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/DateRangePicker/Examples/DateRangePickerActionButtonsExample.razor @@ -4,9 +4,9 @@ - Clear - Cancel - Ok + Clear + Cancel + Ok AutoClose diff --git a/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerActionButtonsExample.razor b/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerActionButtonsExample.razor index 17b1cd34389f..ccc3c50220a6 100644 --- a/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerActionButtonsExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerActionButtonsExample.razor @@ -1,16 +1,16 @@ @namespace MudBlazor.Docs.Examples - + - Clear - Cancel - Ok + Clear + Cancel + Ok -AutoClose +AutoClose @code{ - MudTimePicker _picker; - TimeSpan? time = new TimeSpan(00, 45, 00); - private bool autoClose; + private MudTimePicker _picker; + private readonly TimeSpan? _time = new TimeSpan(00, 45, 00); + private bool _autoClose; } \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerKeyboardNavigationExample.razor b/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerKeyboardNavigationExample.razor index ac272ea281b5..0070b6641043 100644 --- a/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerKeyboardNavigationExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerKeyboardNavigationExample.razor @@ -1,15 +1,15 @@ @namespace MudBlazor.Docs.Examples - - + + - Clear - Cancel - Ok + Clear + Cancel + Ok @code{ - TimeSpan? time = new TimeSpan(00, 45, 00); + private TimeSpan? _time = new TimeSpan(00, 45, 00); } \ No newline at end of file diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/ColorPicker/SimpleColorPickerTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/ColorPicker/SimpleColorPickerTest.razor index 72d321a247b3..daf9e61ec2b6 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/ColorPicker/SimpleColorPickerTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/ColorPicker/SimpleColorPickerTest.razor @@ -44,17 +44,16 @@ { await InvokeAsync(() => { - _picker.Open(); + _picker.OpenAsync(); }); } public async Task ClosePicker() { - await InvokeAsync(() => + await InvokeAsync(async () => { - _picker.Close(); + await _picker.CloseAsync(); }); } - } diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/AutoCloseDateRangePickerTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/AutoCloseDateRangePickerTest.razor index bb1ae4b6f620..51080261499c 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/AutoCloseDateRangePickerTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/AutoCloseDateRangePickerTest.razor @@ -3,9 +3,9 @@ - Clear - Cancel - Ok + Clear + Cancel + Ok diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/AutoCompleteDatePickerTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/AutoCompleteDatePickerTest.razor index 170dd627d99b..7c69d91ec19f 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/AutoCompleteDatePickerTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/AutoCompleteDatePickerTest.razor @@ -2,9 +2,9 @@ - Clear - Cancel - Ok + Clear + Cancel + Ok diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/DatePickerStaticTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/DatePickerStaticTest.razor index 164d11e83637..d917188d359c 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/DatePickerStaticTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/DatePickerStaticTest.razor @@ -2,9 +2,9 @@ - Clear - Cancel - Ok + Clear + Cancel + Ok diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/DateRangePickerValidationTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/DateRangePickerValidationTest.razor index c7afa487c406..8d457578ae25 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/DateRangePickerValidationTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/DateRangePickerValidationTest.razor @@ -8,9 +8,9 @@ - Clear - Cancel - Ok + Clear + Cancel + Ok diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/SimpleMudDatePickerTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/SimpleMudDatePickerTest.razor index b6a99483e6f2..a35239590e17 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/SimpleMudDatePickerTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/SimpleMudDatePickerTest.razor @@ -58,6 +58,6 @@ else [Parameter] public DateTime? MaxDate { get; set; } [Parameter] public Func AdditionalDateClassesFunc { get; set; } - public async Task Open() => await InvokeAsync(() => _picker.Open()); - public async Task Close() => await InvokeAsync(() => _picker.Close()); + public async Task Open() => await InvokeAsync(() => _picker.OpenAsync()); + public async Task Close() => await InvokeAsync(() => _picker.CloseAsync()); } \ No newline at end of file diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/SimpleMudMudDateRangePickerTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/SimpleMudMudDateRangePickerTest.razor index 7f69f6013a87..92ecb39ce825 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/SimpleMudMudDateRangePickerTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/SimpleMudMudDateRangePickerTest.razor @@ -32,7 +32,7 @@ else [Parameter] public DateTime? StartMonth { get; set; } [Parameter] public Func AdditionalDateClassesFunc { get; set; } - public async Task Open() => await InvokeAsync(() => _picker.Open()); - public async Task Close() => await InvokeAsync(() => _picker.Close()); + public async Task Open() => await InvokeAsync(() => _picker.OpenAsync()); + public async Task Close() => await InvokeAsync(() => _picker.CloseAsync()); } diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/TimePicker/AutoCompleteTimePickerTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/TimePicker/AutoCompleteTimePickerTest.razor index a5f12748b037..7db3da14cff7 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/TimePicker/AutoCompleteTimePickerTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/TimePicker/AutoCompleteTimePickerTest.razor @@ -2,9 +2,9 @@ - Clear - Cancel - Ok + Clear + Cancel + Ok diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/TimePicker/SimpleTimePickerTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/TimePicker/SimpleTimePickerTest.razor index cffd6631094a..bd551a8536ed 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/TimePicker/SimpleTimePickerTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/TimePicker/SimpleTimePickerTest.razor @@ -18,6 +18,6 @@ [Parameter] public int MinuteSelectionStep { get; set; } = 1; - public async Task Open() => await InvokeAsync(() => _picker.Open()); - public async Task Close() => await InvokeAsync(() => _picker.Close()); + public async Task Open() => await InvokeAsync(() => _picker.OpenAsync()); + public async Task Close() => await InvokeAsync(() => _picker.CloseAsync()); } \ No newline at end of file diff --git a/src/MudBlazor.UnitTests/Components/DataGridTests.cs b/src/MudBlazor.UnitTests/Components/DataGridTests.cs index 01ef42653ebc..607db5fa3e63 100644 --- a/src/MudBlazor.UnitTests/Components/DataGridTests.cs +++ b/src/MudBlazor.UnitTests/Components/DataGridTests.cs @@ -2470,9 +2470,9 @@ public async Task DataGridCustomFilteringTest() dataGrid.FindAll("tbody tr").Count.Should().Be(4); - await comp.InvokeAsync(() => + await comp.InvokeAsync(async () => { - comp.Instance.FilterHiredToggled(true, dataGrid.Instance); + await comp.Instance.FilterHiredToggled(true, dataGrid.Instance); }); dataGrid.Render(); diff --git a/src/MudBlazor.UnitTests/Components/DatePickerTests.cs b/src/MudBlazor.UnitTests/Components/DatePickerTests.cs index 47e6ef63786e..a761c994e8de 100644 --- a/src/MudBlazor.UnitTests/Components/DatePickerTests.cs +++ b/src/MudBlazor.UnitTests/Components/DatePickerTests.cs @@ -85,8 +85,8 @@ public async Task DatePicker_OpenClose_Performance() var watch = Stopwatch.StartNew(); for (var i = 0; i < 1000; i++) { - await comp.InvokeAsync(() => datepicker.Open()); - await comp.InvokeAsync(() => datepicker.Close()); + await comp.InvokeAsync(() => datepicker.OpenAsync()); + await comp.InvokeAsync(() => datepicker.CloseAsync()); } watch.Stop(); watch.Elapsed.Should().BeLessThan(TimeSpan.FromSeconds(10)); @@ -586,7 +586,7 @@ public async Task PersianCalendar() // --------------------------------------------------------------- var comp = Context.RenderComponent(); var datePicker = comp.FindComponent(); - await comp.InvokeAsync(() => datePicker.Instance.Open()); + await comp.InvokeAsync(() => datePicker.Instance.OpenAsync()); datePicker.Instance.Text.Should().Be("1399/11/26"); } @@ -876,7 +876,7 @@ public async Task CheckAutoCloseDatePickerTest() var datePicker = comp.FindComponent(); // Open the datepicker - await comp.InvokeAsync(() => datePicker.Instance.Open()); + await comp.InvokeAsync(() => datePicker.Instance.OpenAsync()); // Clicking a day button to select a date // It must be a different day than the day of now! @@ -898,20 +898,20 @@ public async Task CheckAutoCloseDatePickerTest() // Close the datepicker without submitting the date // The date of the datepicker remains equal to now - await comp.InvokeAsync(() => datePicker.Instance.Close(false)); + await comp.InvokeAsync(() => datePicker.Instance.CloseAsync(false)); - await comp.InvokeAsync(() => datePicker.Instance.Open()); + await comp.InvokeAsync(() => datePicker.Instance.OpenAsync()); comp.WaitForAssertion(() => comp.FindAll("div.mud-popover").Count.Should().Be(1)); - await comp.InvokeAsync(() => datePicker.Instance.Clear()); + await comp.InvokeAsync(() => datePicker.Instance.ClearAsync()); comp.WaitForAssertion(() => comp.FindAll("div.mud-popover").Count.Should().Be(1)); - await comp.InvokeAsync(() => datePicker.Instance.Close(false)); + await comp.InvokeAsync(() => datePicker.Instance.CloseAsync(false)); // Change the value of autoclose datePicker.Instance.AutoClose = true; // Open the datepicker - await comp.InvokeAsync(() => datePicker.Instance.Open()); + await comp.InvokeAsync(() => datePicker.Instance.OpenAsync()); // Clicking a day button to select a date if (now.Day != 20) @@ -935,10 +935,10 @@ public async Task CheckAutoCloseDatePickerTest() datePicker.Instance.Date.Should().Be(new DateTime(now.Year, now.Month, 19)); } - await comp.InvokeAsync(() => datePicker.Instance.Open()); + await comp.InvokeAsync(() => datePicker.Instance.OpenAsync()); comp.WaitForAssertion(() => comp.FindAll("div.mud-popover").Count.Should().Be(1)); - await comp.InvokeAsync(() => datePicker.Instance.Clear()); + await comp.InvokeAsync(() => datePicker.Instance.ClearAsync()); comp.WaitForAssertion(() => comp.FindAll("div.mud-popover").Count.Should().Be(0)); } @@ -1024,7 +1024,7 @@ public async Task CheckDateTimeMinValueTest() var picker = comp.Instance; // Open the datepicker - await comp.InvokeAsync(() => datePicker.Instance.Open()); + await comp.InvokeAsync(() => datePicker.Instance.OpenAsync()); // An error should be raised if the datepicker could not be not opened and the days could not generated // It means that there would be an exception! @@ -1075,7 +1075,7 @@ public async Task DatePickerTest_Editable() comp.WaitForAssertion(() => datePicker.Date.Should().Be(new DateTime(2020, 10, 10))); comp.WaitForAssertion(() => datePicker.PickerMonth.Should().Be(null)); - await comp.InvokeAsync(() => datePicker.Open()); + await comp.InvokeAsync(() => datePicker.OpenAsync()); comp.WaitForAssertion(() => datePicker.PickerMonth.Should().Be(new DateTime(2020, 10, 01))); } @@ -1114,13 +1114,13 @@ public async Task DatePickerTest_KeyboardNavigation() await comp.InvokeAsync(() => datePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "Enter", Type = "keydown", })); comp.WaitForAssertion(() => comp.FindAll("div.mud-picker-open").Count.Should().Be(0)); - await comp.InvokeAsync(() => datePicker.ToggleOpen()); + await comp.InvokeAsync(() => datePicker.ToggleOpenAsync()); comp.WaitForAssertion(() => comp.FindAll("div.mud-picker-open").Count.Should().Be(1)); - await comp.InvokeAsync(() => datePicker.ToggleOpen()); + await comp.InvokeAsync(() => datePicker.ToggleOpenAsync()); comp.WaitForAssertion(() => comp.FindAll("div.mud-picker-open").Count.Should().Be(0)); - await comp.InvokeAsync(() => datePicker.ToggleState()); + await comp.InvokeAsync(() => datePicker.ToggleStateAsync()); comp.WaitForAssertion(() => comp.FindAll("div.mud-picker-open").Count.Should().Be(0)); datePicker.Disabled = false; @@ -1128,7 +1128,7 @@ public async Task DatePickerTest_KeyboardNavigation() await comp.InvokeAsync(() => datePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "NumpadEnter", Type = "keydown", })); comp.WaitForAssertion(() => comp.FindAll("div.mud-picker-open").Count.Should().Be(1)); - await comp.InvokeAsync(() => datePicker.ToggleState()); + await comp.InvokeAsync(() => datePicker.ToggleStateAsync()); comp.WaitForAssertion(() => comp.FindAll("div.mud-picker-open").Count.Should().Be(1)); } @@ -1163,7 +1163,7 @@ public async Task DatePickerTest_CheckIfMonthsAreDisabled() // Open the datepicker - await comp.InvokeAsync(datePicker.Open); + await comp.InvokeAsync(datePicker.OpenAsync); comp.Find("button.mud-button-month").Click(); comp.WaitForAssertion(() => comp.FindAll("button.mud-picker-month").Any(x => x.IsDisabled()).Should().Be(true)); diff --git a/src/MudBlazor.UnitTests/Components/DateRangePickerTests.cs b/src/MudBlazor.UnitTests/Components/DateRangePickerTests.cs index 4a013b56f756..ddb704d7e5ea 100644 --- a/src/MudBlazor.UnitTests/Components/DateRangePickerTests.cs +++ b/src/MudBlazor.UnitTests/Components/DateRangePickerTests.cs @@ -138,8 +138,8 @@ public async Task Open_Close_DateRangePicker_10000_Times_CheckPerformance() var watch = Stopwatch.StartNew(); for (var i = 0; i < 10000; i++) { - await comp.InvokeAsync(() => datepicker.Open()); - await comp.InvokeAsync(() => datepicker.Close()); + await comp.InvokeAsync(() => datepicker.OpenAsync()); + await comp.InvokeAsync(() => datepicker.CloseAsync()); } watch.Stop(); watch.Elapsed.Should().BeLessThan(TimeSpan.FromSeconds(10)); @@ -630,7 +630,7 @@ public async Task DateRangePicker_RequiredValidation() dateRangePickerInstance.ErrorText.Should().BeNullOrWhiteSpace(); // reset value - await dateRangePickerComponent.InvokeAsync(() => dateRangePickerInstance.Clear()); + await dateRangePickerComponent.InvokeAsync(() => dateRangePickerInstance.ClearAsync()); // assert values have benn nulled dateRangePickerInstance.Text.Should().BeNullOrEmpty(); diff --git a/src/MudBlazor.UnitTests/Components/TimePickerTests.cs b/src/MudBlazor.UnitTests/Components/TimePickerTests.cs index b5685a145574..02cbb8a91ef2 100644 --- a/src/MudBlazor.UnitTests/Components/TimePickerTests.cs +++ b/src/MudBlazor.UnitTests/Components/TimePickerTests.cs @@ -728,7 +728,7 @@ public async Task CheckAutoCloseTimePickerTest() var timePicker = comp.FindComponent(); // Open the timepicker - await comp.InvokeAsync(() => timePicker.Instance.Open()); + await comp.InvokeAsync(() => timePicker.Instance.OpenAsync()); var picker = timePicker.Instance; // Select 16 hours @@ -746,17 +746,17 @@ public async Task CheckAutoCloseTimePickerTest() // and there are actions which are defined picker.Time.Should().Be(new TimeSpan(00, 45, 00)); - await comp.InvokeAsync(() => timePicker.Instance.Open()); + await comp.InvokeAsync(() => timePicker.Instance.OpenAsync()); comp.WaitForAssertion(() => comp.FindAll("div.mud-popover-open").Count.Should().Be(1)); - await comp.InvokeAsync(() => timePicker.Instance.Clear()); + await comp.InvokeAsync(() => timePicker.Instance.ClearAsync()); comp.WaitForAssertion(() => comp.FindAll("div.mud-popover-open").Count.Should().Be(1)); - await comp.InvokeAsync(() => timePicker.Instance.Close(false)); + await comp.InvokeAsync(() => timePicker.Instance.CloseAsync(false)); // Change the value of autoclose timePicker.Instance.AutoClose = true; // Open the timepicker - await comp.InvokeAsync(() => timePicker.Instance.Open()); + await comp.InvokeAsync(() => timePicker.Instance.OpenAsync()); picker = timePicker.Instance; // Select 16 hours @@ -773,10 +773,10 @@ public async Task CheckAutoCloseTimePickerTest() // Check that the time should be equal to the selection this time! picker.Time.Should().Be(new TimeSpan(16, 30, 00)); - await comp.InvokeAsync(() => timePicker.Instance.Open()); + await comp.InvokeAsync(() => timePicker.Instance.OpenAsync()); comp.WaitForAssertion(() => comp.FindAll("div.mud-popover-open").Count.Should().Be(1)); - await comp.InvokeAsync(() => timePicker.Instance.Clear()); + await comp.InvokeAsync(() => timePicker.Instance.ClearAsync()); comp.WaitForAssertion(() => comp.FindAll("div.mud-popover-open").Count.Should().Be(0)); comp.WaitForAssertion(() => comp.FindAll("div.mud-popover").Count.Should().Be(1)); } @@ -789,7 +789,7 @@ public async Task CheckReadOnlyTest() var picker = comp.FindComponent().Instance; comp.WaitForAssertion(() => picker.Time.Should().Be(null)); // Open the timepicker - await comp.InvokeAsync(() => picker.Open()); + await comp.InvokeAsync(() => picker.OpenAsync()); comp.WaitForAssertion(() => comp.FindAll("div.mud-popover").Count.Should().Be(1)); // Select 16 hours @@ -810,7 +810,7 @@ public async Task CheckReadOnlyTest() await comp.InvokeAsync(() => picker.ReadOnly = true); // Open the timepicker - await comp.InvokeAsync(() => picker.Open()); + await comp.InvokeAsync(() => picker.OpenAsync()); comp.WaitForAssertion(() => comp.FindAll("div.mud-popover").Count.Should().Be(1)); // Select 17 hours @@ -929,7 +929,7 @@ public async Task TimePickerTest_KeyboardNavigation() await comp.InvokeAsync(() => timePicker.TimeFormat = "hhmm"); timePicker.ReadOnly = true; - await comp.InvokeAsync(() => timePicker.Submit()); + await comp.InvokeAsync(() => timePicker.SubmitAsync()); } @@ -941,7 +941,7 @@ public async Task CheckCallOneTimeChanged() var picker = comp.FindComponent().Instance; comp.WaitForAssertion(() => picker.Time.Should().Be(null)); // Open the timepicker - await comp.InvokeAsync(() => picker.Open()); + await comp.InvokeAsync(() => picker.OpenAsync()); comp.WaitForAssertion(() => comp.FindAll("div.mud-popover").Count.Should().Be(1)); var count = 0; diff --git a/src/MudBlazor/Components/ColorPicker/MudColorPicker.razor b/src/MudBlazor/Components/ColorPicker/MudColorPicker.razor index 459f1645cc6b..7c3e1799c2ef 100644 --- a/src/MudBlazor/Components/ColorPicker/MudColorPicker.razor +++ b/src/MudBlazor/Components/ColorPicker/MudColorPicker.razor @@ -29,7 +29,7 @@
- + diff --git a/src/MudBlazor/Components/ColorPicker/MudColorPicker.razor.cs b/src/MudBlazor/Components/ColorPicker/MudColorPicker.razor.cs index 30fa67c5b2d4..b1b3c6a8fab1 100644 --- a/src/MudBlazor/Components/ColorPicker/MudColorPicker.razor.cs +++ b/src/MudBlazor/Components/ColorPicker/MudColorPicker.razor.cs @@ -249,7 +249,7 @@ private void ToggleCollection() _collectionOpen = !_collectionOpen; } - private void SelectPaletteColor(MudColor color) + private async Task SelectPaletteColorAsync(MudColor color) { Value = color; _collectionOpen = false; @@ -257,7 +257,7 @@ private void SelectPaletteColor(MudColor color) if ( IsAnyControlVisible() == false || _activeColorPickerView is ColorPickerView.GridCompact or ColorPickerView.Palette) { - Close(); + await CloseAsync(); } } @@ -272,7 +272,6 @@ public void ChangeMode() => public async Task ChangeView(ColorPickerView value) { - var oldValue = _activeColorPickerView; _activeColorPickerView = value; @@ -280,7 +279,7 @@ public async Task ChangeView(ColorPickerView value) if (oldValue == ColorPickerView.Spectrum) { - await RemoveMouseOverEvent(); + await RemoveMouseOverEventAsync(); } if (value == ColorPickerView.Spectrum) @@ -393,26 +392,28 @@ private void UpdateColorSelectorBasedOnRgb() #region mouse interactions - private void HandleColorOverlayClicked() + private async Task HandleColorOverlayClickedAsync() { UpdateColorBaseOnSelection(); if (IsAnyControlVisible() == false) { - Close(); + await CloseAsync(); } } - private void OnSelectorClicked(MouseEventArgs e) + private Task OnSelectorClickedAsync(MouseEventArgs e) { SetSelectorBasedOnMouseEvents(e, false); - HandleColorOverlayClicked(); + + return HandleColorOverlayClickedAsync(); } - private void OnColorOverlayClick(MouseEventArgs e) + private Task OnColorOverlayClick(MouseEventArgs e) { SetSelectorBasedOnMouseEvents(e, true); - HandleColorOverlayClicked(); + + return HandleColorOverlayClickedAsync(); } private void OnMouseOver(MouseEventArgs e) @@ -509,17 +510,17 @@ protected override Task StringValueChanged(string value) private bool _attachedMouseEvent = false; - protected override void OnPickerOpened() + protected override async Task OnPickerOpenedAsync() { - base.OnPickerOpened(); + await base.OnPickerOpenedAsync(); _attachedMouseEvent = true; StateHasChanged(); } - protected override void OnPickerClosed() + protected override async Task OnPickerClosedAsync() { - base.OnPickerClosed(); - RemoveMouseOverEvent().AndForget(); + await base.OnPickerClosedAsync(); + await RemoveMouseOverEventAsync(); } #endregion @@ -530,9 +531,9 @@ protected override void OnPickerClosed() private string GetColorTextValue() => (DisableAlpha == true || _activeColorPickerView is ColorPickerView.Palette or ColorPickerView.GridCompact) ? _value.ToString(MudColorOutputFormats.Hex) : _value.ToString(MudColorOutputFormats.HexA); private int GetHexColorInputMaxLength() => DisableAlpha ? 7 : 9; - private EventCallback GetEventCallback() => EventCallback.Factory.Create(this, () => Close()); + private EventCallback GetEventCallback() => EventCallback.Factory.Create(this, () => CloseAsync()); private bool IsAnyControlVisible() => !(DisablePreview && DisableSliders && DisableInputs); - private EventCallback GetSelectPaletteColorCallback(MudColor color) => new EventCallbackFactory().Create(this, (MouseEventArgs e) => SelectPaletteColor(color)); + private EventCallback GetSelectPaletteColorCallback(MudColor color) => new EventCallbackFactory().Create(this, (MouseEventArgs _) => SelectPaletteColorAsync(color)); private Color GetButtonColor(ColorPickerView view) => _activeColorPickerView == view ? Color.Primary : Color.Inherit; private string GetColorDotClass(MudColor color) => new CssBuilder("mud-picker-color-dot").AddClass("selected", color == Value).ToString(); @@ -579,9 +580,12 @@ private async Task AddMouseOverEvent() }); } - private Task RemoveMouseOverEvent() + private Task RemoveMouseOverEventAsync() { - if (_throttledMouseOverEventId == default) { return Task.CompletedTask; } + if (_throttledMouseOverEventId == default) + { + return Task.CompletedTask; + } return _throttledEventManager.Unsubscribe(_throttledMouseOverEventId); } diff --git a/src/MudBlazor/Components/DatePicker/MudBaseDatePicker.razor b/src/MudBlazor/Components/DatePicker/MudBaseDatePicker.razor index 210878d1e1e7..832b24054752 100644 --- a/src/MudBlazor/Components/DatePicker/MudBaseDatePicker.razor +++ b/src/MudBlazor/Components/DatePicker/MudBaseDatePicker.razor @@ -33,7 +33,7 @@ @for (int i = GetMinYear(); i <= GetMaxYear(); i++) { var year = i; -
+
@year
} @@ -65,7 +65,7 @@ @foreach (var month in GetAllMonths()) { } @@ -126,7 +126,7 @@ var selectedDay = !firstMonthFirstYear ? day : day.AddDays(-1);
/// - protected override void OnYearClicked(int year) + protected override async Task OnYearClickedAsync(int year) { var current = GetMonthStart(0); PickerMonth = new DateTime(year, Culture.Calendar.GetMonth(current), 1, Culture.Calendar); @@ -156,7 +155,7 @@ protected override void OnYearClicked(int year) new DateTime(_selectedDate.Value.Year, _selectedDate.Value.Month, _selectedDate.Value.Day, _selectedDate.Value.Hour, _selectedDate.Value.Minute, _selectedDate.Value.Second, _selectedDate.Value.Millisecond, _selectedDate.Value.Kind) //We can assume month and day here, as they were not set yet : new DateTime(year, 1, 1, Culture.Calendar); - SubmitAndClose(); + await SubmitAndCloseAsync(); } else { @@ -164,14 +163,14 @@ protected override void OnYearClicked(int year) } } - protected override void OnOpened() + protected override Task OnOpenedAsync() { _selectedDate = null; - base.OnOpened(); + return base.OnOpenedAsync(); } - protected internal override async void Submit() + protected internal override async Task SubmitAsync() { if (GetReadOnlyState()) return; @@ -191,14 +190,14 @@ protected internal override async void Submit() _selectedDate = null; } - public override async void Clear(bool close = true) + public override async Task ClearAsync(bool close = true) { _selectedDate = null; await SetDateAsync(null, true); if (AutoClose == true) { - Close(false); + await CloseAsync(false); } } @@ -223,7 +222,7 @@ protected override int GetCalendarYear(DateTime yearDate) } //To be completed on next PR - protected internal override void HandleKeyDown(KeyboardEventArgs obj) + protected internal override async void HandleKeyDown(KeyboardEventArgs obj) { if (GetDisabledState() || GetReadOnlyState()) return; @@ -275,18 +274,18 @@ protected internal override void HandleKeyDown(KeyboardEventArgs obj) } break; case "Escape": - ReturnDateBackUp(); + await ReturnDateBackUpAsync(); break; case "Enter": case "NumpadEnter": if (!IsOpen) { - Open(); + await OpenAsync(); } else { - Submit(); - Close(); + await SubmitAsync(); + await CloseAsync(); _inputReference?.SetText(Text); } break; @@ -295,12 +294,12 @@ protected internal override void HandleKeyDown(KeyboardEventArgs obj) { if (!IsOpen) { - Open(); + await OpenAsync(); } else { - Submit(); - Close(); + await SubmitAsync(); + await CloseAsync(); _inputReference?.SetText(Text); } } @@ -310,10 +309,7 @@ protected internal override void HandleKeyDown(KeyboardEventArgs obj) StateHasChanged(); } - private void ReturnDateBackUp() - { - Close(); - } + private Task ReturnDateBackUpAsync() => CloseAsync(); /// /// Scrolls to the date. diff --git a/src/MudBlazor/Components/DatePicker/MudDateRangePicker.razor b/src/MudBlazor/Components/DatePicker/MudDateRangePicker.razor index 6f82a4c3d4e9..513fcfec4236 100644 --- a/src/MudBlazor/Components/DatePicker/MudDateRangePicker.razor +++ b/src/MudBlazor/Components/DatePicker/MudDateRangePicker.razor @@ -8,10 +8,10 @@ protected override RenderFragment InputContent=> @ + @onclick="async () => { if (!Editable) await ToggleStateAsync(); }" ForId="@FieldId"> diff --git a/src/MudBlazor/Components/DatePicker/MudDateRangePicker.razor.cs b/src/MudBlazor/Components/DatePicker/MudDateRangePicker.razor.cs index 840b0da1643f..c92fcf57a6dd 100644 --- a/src/MudBlazor/Components/DatePicker/MudDateRangePicker.razor.cs +++ b/src/MudBlazor/Components/DatePicker/MudDateRangePicker.razor.cs @@ -172,10 +172,7 @@ protected override Task StringValueChanged(string value) return SetDateRangeAsync(ParseDateRangeValue(value), false); } - protected override bool HasValue(DateTime? value) - { - return null != value && value.HasValue; - } + protected override bool HasValue(DateTime? value) => value is not null; private DateRange ParseDateRangeValue(string value) { @@ -187,10 +184,11 @@ private DateRange ParseDateRangeValue(string start, string end) return DateRange.TryParse(start, end, Converter, out var dateRange) ? dateRange : null; } - protected override void OnPickerClosed() + protected override Task OnPickerClosedAsync() { _firstDate = null; - base.OnPickerClosed(); + + return base.OnPickerClosedAsync(); } private bool CheckDateRange(DateTime day, Func compareStart, Func compareEnd) @@ -268,7 +266,7 @@ protected override string GetDayClasses(int month, DateTime day) return b.Build(); } - protected override async void OnDayClicked(DateTime dateTime) + protected override async Task OnDayClickedAsync(DateTime dateTime) { if (_firstDate == null || _firstDate > dateTime || _secondDate != null) { @@ -280,23 +278,23 @@ protected override async void OnDayClicked(DateTime dateTime) _secondDate = dateTime; if (PickerActions == null || AutoClose) { - Submit(); + await SubmitAsync(); if (PickerVariant != PickerVariant.Static) { await Task.Delay(ClosingDelay); - Close(false); + await CloseAsync(false); } } } - protected override void OnOpened() + protected override Task OnOpenedAsync() { _secondDate = null; - base.OnOpened(); + return base.OnOpenedAsync(); } - protected internal override async void Submit() + protected internal override async Task SubmitAsync() { if (GetReadOnlyState()) return; @@ -309,11 +307,11 @@ protected internal override async void Submit() _secondDate = null; } - public override void Clear(bool close = true) + public override Task ClearAsync(bool close = true) { DateRange = null; _firstDate = _secondDate = null; - base.Clear(); + return base.ClearAsync(close); } protected override string GetTitleDateString() @@ -338,8 +336,6 @@ protected override int GetCalendarYear(DateTime yearDate) var diff = Culture.Calendar.GetYear(date) - Culture.Calendar.GetYear(yearDate); var calenderYear = Culture.Calendar.GetYear(date); return calenderYear - diff; - } - } } diff --git a/src/MudBlazor/Components/Picker/MudPicker.razor b/src/MudBlazor/Components/Picker/MudPicker.razor index 9460fe4fc0cf..67e797a45692 100644 --- a/src/MudBlazor/Components/Picker/MudPicker.razor +++ b/src/MudBlazor/Components/Picker/MudPicker.razor @@ -25,7 +25,7 @@ ReadOnly="@(!Editable || GetReadOnlyState())" Disabled="@GetDisabledState()" DisableUnderLine="@DisableUnderLine" - OnAdornmentClick="ToggleState" + OnAdornmentClick="ToggleStateAsync" Adornment="@Adornment" AdornmentIcon="@AdornmentIcon" AdornmentColor="@AdornmentColor" @@ -37,7 +37,7 @@ Error="@Error" ErrorText="@ErrorText" Clearable="@(GetReadOnlyState() ? false : Clearable)" - OnClearButtonClick="@(() => Clear())" + OnClearButtonClick="@(async () => await ClearAsync())" @onclick="OnClickAsync" />; protected virtual RenderFragment PickerContent => null; @@ -91,7 +91,7 @@ } else if(IsOpen && PickerVariant == PickerVariant.Dialog) { - +
@if(PickerContent != null){ @@ -110,7 +110,7 @@
@if (PickerVariant == PickerVariant.Inline) { - + } ; } diff --git a/src/MudBlazor/Components/Picker/MudPicker.razor.cs b/src/MudBlazor/Components/Picker/MudPicker.razor.cs index c6c071dbca9d..730c23ef1952 100644 --- a/src/MudBlazor/Components/Picker/MudPicker.razor.cs +++ b/src/MudBlazor/Components/Picker/MudPicker.razor.cs @@ -369,54 +369,51 @@ protected virtual Task StringValueChanged(string value) protected bool IsOpen { get; set; } - public void ToggleOpen() + public async Task ToggleOpenAsync() { if (IsOpen) - Close(); + { + await CloseAsync(); + } else - Open(); + { + await OpenAsync(); + } } - public void Close(bool submit = true) + public async Task CloseAsync(bool submit = true) { IsOpen = false; if (submit) { - Submit(); + await SubmitAsync(); } - OnClosed(); + await OnClosedAsync(); StateHasChanged(); } - public void Open() + public Task OpenAsync() { IsOpen = true; StateHasChanged(); - OnOpened(); + + return OnOpenedAsync(); } - private void CloseOverlay() => Close(PickerActions == null); + private Task CloseOverlayAsync() => CloseAsync(PickerActions == null); - protected internal virtual void Submit() { } + protected internal virtual Task SubmitAsync() => Task.CompletedTask; - public virtual void Clear(bool close = true) + public virtual async Task ClearAsync(bool close = true) { if (close && PickerVariant != PickerVariant.Static) { - Close(false); + await CloseAsync(false); } } - [Obsolete($"Use {nameof(ResetValueAsync)} instead. This will be removed in v7")] - [ExcludeFromCodeCoverage] - protected override void ResetValue() - { - _inputReference?.Reset(); - base.ResetValue(); - } - protected override async Task ResetValueAsync() { if (_inputReference is not null) @@ -443,6 +440,7 @@ public virtual ValueTask SelectRangeAsync(int pos1, int pos2) => protected override void OnInitialized() { + base.OnInitialized(); if (PickerVariant == PickerVariant.Static) { IsOpen = true; @@ -497,15 +495,19 @@ private async Task EnsureKeyInterceptor() private async Task OnClickAsync(MouseEventArgs args) { if (!Editable) - ToggleState(); + { + await ToggleStateAsync(); + } if (OnClick.HasDelegate) + { await OnClick.InvokeAsync(args); + } } protected override async Task OnAfterRenderAsync(bool firstRender) { - if (firstRender == true) + if (firstRender) { await EnsureKeyInterceptor(); } @@ -513,26 +515,26 @@ protected override async Task OnAfterRenderAsync(bool firstRender) await base.OnAfterRenderAsync(firstRender); } - protected internal void ToggleState() + protected internal async Task ToggleStateAsync() { if (GetDisabledState() || GetReadOnlyState()) return; if (IsOpen) { IsOpen = false; - OnClosed(); + await OnClosedAsync(); } else { IsOpen = true; - OnOpened(); - FocusAsync(); + await OnOpenedAsync(); + await FocusAsync(); } } - protected virtual async void OnOpened() + protected virtual async Task OnOpenedAsync() { - OnPickerOpened(); + await OnPickerOpenedAsync(); if (PickerVariant == PickerVariant.Inline) { @@ -543,25 +545,19 @@ protected virtual async void OnOpened() await _keyInterceptor.UpdateKey(new() { Key = "Escape", StopDown = "key+none" }); } - protected virtual async void OnClosed() + protected virtual async Task OnClosedAsync() { - OnPickerClosed(); + await OnPickerClosedAsync(); await EnsureKeyInterceptor(); await _keyInterceptor.UpdateKey(new() { Key = "Escape", StopDown = "none" }); } - protected virtual void OnPickerOpened() - { - PickerOpened.InvokeAsync(this); - } + protected virtual Task OnPickerOpenedAsync() => PickerOpened.InvokeAsync(this); - protected virtual void OnPickerClosed() - { - PickerClosed.InvokeAsync(this); - } + protected virtual Task OnPickerClosedAsync() => PickerClosed.InvokeAsync(this); - protected internal virtual void HandleKeyDown(KeyboardEventArgs obj) + protected internal virtual async void HandleKeyDown(KeyboardEventArgs obj) { if (GetDisabledState() || GetReadOnlyState()) return; @@ -570,20 +566,18 @@ protected internal virtual void HandleKeyDown(KeyboardEventArgs obj) case "Backspace": if (obj.CtrlKey == true && obj.ShiftKey == true) { - Clear(); + await ClearAsync(); _value = default(T); // TODO: Probably need to create a HandleKeyDownAsync that awaits ResetValueAsync() // Simply replacing Reset() with ResetValueAsync().AndForget() may cause issues in BSS -#pragma warning disable CS0618 - Reset(); -#pragma warning disable CS0618 + await ResetAsync(); } break; case "Escape": case "Tab": - Close(false); + await CloseAsync(false); break; } } @@ -592,7 +586,7 @@ protected override void Dispose(bool disposing) { base.Dispose(disposing); - if (disposing == true) + if (disposing) { if (_keyInterceptor != null) { @@ -602,7 +596,6 @@ protected override void Dispose(bool disposing) _keyInterceptor.Dispose(); } } - } } } diff --git a/src/MudBlazor/Components/TimePicker/MudTimePicker.razor b/src/MudBlazor/Components/TimePicker/MudTimePicker.razor index d2cdb8dafa42..44e045e42fe3 100644 --- a/src/MudBlazor/Components/TimePicker/MudTimePicker.razor +++ b/src/MudBlazor/Components/TimePicker/MudTimePicker.razor @@ -12,7 +12,7 @@
@if (TimeEditMode == TimeEditMode.Normal) { - @GetHourString() + @GetHourString() : @GetMinuteString() } @@ -24,15 +24,15 @@ @if (AmPm) {
- AM - PM + AM + PM
}
-
public class MudTheme { -#pragma warning disable CS0618 /// /// Gets or sets the palette for the light theme. /// - public Palette Palette { get; set; } + public PaletteLight PaletteLight { get; set; } /// /// Gets or sets the palette for the dark theme. /// - public Palette PaletteDark { get; set; } -#pragma warning restore CS0618 + public PaletteDark PaletteDark { get; set; } /// /// Gets or sets the shadow settings. @@ -48,7 +46,7 @@ public class MudTheme /// public MudTheme() { - Palette = new PaletteLight(); + PaletteLight = new PaletteLight(); PaletteDark = new PaletteDark(); Shadows = new Shadow(); Typography = new Typography(); From fccce9451f8ac0789ff93e5cfa9df00dd3dc5f76 Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Thu, 28 Mar 2024 09:40:06 -0500 Subject: [PATCH 22/50] Snackbar: Fix type class not taking into account per-snackbar options (#8423) --- .../Examples/SnackbarVariantsExample.razor | 19 ++++++++-------- .../Components/SnackbarTests.cs | 22 +++++++++++++++++++ .../Snackbar/SnackBarMessageState.cs | 9 +++++++- .../Components/Snackbar/SnackbarOptions.cs | 10 --------- 4 files changed, 39 insertions(+), 21 deletions(-) diff --git a/src/MudBlazor.Docs/Pages/Components/Snackbar/Examples/SnackbarVariantsExample.razor b/src/MudBlazor.Docs/Pages/Components/Snackbar/Examples/SnackbarVariantsExample.razor index 2804c5a94260..8c61071cc5aa 100644 --- a/src/MudBlazor.Docs/Pages/Components/Snackbar/Examples/SnackbarVariantsExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Snackbar/Examples/SnackbarVariantsExample.razor @@ -2,19 +2,18 @@ @inject ISnackbar Snackbar -Open Text Snackbar Variants -Open Filled Snackbar Variants -Open Outlined Snackbar Variants +Open Text Snackbar Variants +Open Filled Snackbar Variants +Open Outlined Snackbar Variants @code { - void ChangeVariant(string message, Variant variant) + void ShowVariant(string message, Variant variant) { - Snackbar.Configuration.SnackbarVariant = variant; Snackbar.Configuration.MaxDisplayedSnackbars = 10; - Snackbar.Add($"Normal {message}", Severity.Normal); - Snackbar.Add($"Info {message}", Severity.Info); - Snackbar.Add($"Success {message}", Severity.Success); - Snackbar.Add($"Warning {message}", Severity.Warning); - Snackbar.Add($"Error {message}", Severity.Error); + Snackbar.Add($"Normal {message}", Severity.Normal, c => c.SnackbarVariant = variant); + Snackbar.Add($"Info {message}", Severity.Info, c => c.SnackbarVariant = variant); + Snackbar.Add($"Success {message}", Severity.Success, c => c.SnackbarVariant = variant); + Snackbar.Add($"Warning {message}", Severity.Warning, c => c.SnackbarVariant = variant); + Snackbar.Add($"Error {message}", Severity.Error, c => c.SnackbarVariant = variant); } } \ No newline at end of file diff --git a/src/MudBlazor.UnitTests/Components/SnackbarTests.cs b/src/MudBlazor.UnitTests/Components/SnackbarTests.cs index e7fb31117f4b..d8bf3bb55ade 100644 --- a/src/MudBlazor.UnitTests/Components/SnackbarTests.cs +++ b/src/MudBlazor.UnitTests/Components/SnackbarTests.cs @@ -250,6 +250,28 @@ public async Task CustomIconDefaultValuesTest() Regex.IsMatch(className, "^mud-[a-z]+-text$", RegexOptions.IgnoreCase).Should().BeFalse(); } + [Test] + public async Task PerSnackbarClassTypes() + { + // https://github.com/MudBlazor/MudBlazor/issues/5027. + + await _provider.InvokeAsync(() => + _service.Add("Boom, big reveal. Im a pickle!", + Severity.Success, + c => + { + // Non-default settings. + c.SnackbarVariant = Variant.Outlined; + c.BackgroundBlurred = true; + } + ) + ); + + var snackbarClassList = _provider.Find(".mud-snackbar").ClassList; + snackbarClassList.Should().Contain("mud-snackbar-blurred"); + snackbarClassList.Should().Contain("mud-alert-outlined-success"); + } + [Test] public async Task DisposeTest() { diff --git a/src/MudBlazor/Components/Snackbar/SnackBarMessageState.cs b/src/MudBlazor/Components/Snackbar/SnackBarMessageState.cs index de6d328ca3e0..cbe58e7aa70b 100644 --- a/src/MudBlazor/Components/Snackbar/SnackBarMessageState.cs +++ b/src/MudBlazor/Components/Snackbar/SnackBarMessageState.cs @@ -69,7 +69,14 @@ public string SnackbarClass { get { - var result = $"mud-snackbar {Options.SnackbarTypeClass}"; + var baseTypeClass = $"mud-alert-{Options.SnackbarVariant.ToDescriptionString()}-{Options.Severity.ToDescriptionString()}"; + + if (Options.SnackbarVariant != Variant.Filled) + { + baseTypeClass += Options.BackgroundBlurred ? " mud-snackbar-blurred" : " mud-snackbar-surface"; + } + + var result = $"mud-snackbar {baseTypeClass} {Options.SnackbarTypeClass}"; if (Options.Onclick != null && !ShowActionButton) result += " force-cursor"; diff --git a/src/MudBlazor/Components/Snackbar/SnackbarOptions.cs b/src/MudBlazor/Components/Snackbar/SnackbarOptions.cs index 5d6543c6df28..fa9a090a4215 100644 --- a/src/MudBlazor/Components/Snackbar/SnackbarOptions.cs +++ b/src/MudBlazor/Components/Snackbar/SnackbarOptions.cs @@ -3,9 +3,6 @@ using System; using System.Threading.Tasks; -using Microsoft.AspNetCore.Components; -using MudBlazor.Components.Snackbar; -using MudBlazor.Extensions; namespace MudBlazor { @@ -62,13 +59,6 @@ public SnackbarOptions(Severity severity, CommonSnackbarOptions options) : base( { Severity = severity; - SnackbarTypeClass = $"mud-alert-{SnackbarVariant.ToDescriptionString()}-{severity.ToDescriptionString()}"; - - if (SnackbarVariant != Variant.Filled) - { - SnackbarTypeClass += BackgroundBlurred ? " mud-snackbar-blurred" : " mud-snackbar-surface"; - } - if (string.IsNullOrEmpty(Icon)) { Icon = Severity switch From ce2aa03f11f4199d43b1bc1db6d57d8b6327fd4e Mon Sep 17 00:00:00 2001 From: Artyom M Date: Thu, 28 Mar 2024 18:30:08 +0200 Subject: [PATCH 23/50] Theme: Replace Palette to PaletteLight (#8514) --- .../Components/ThemeProvider/MudThemingProvider.razor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MudBlazor/Components/ThemeProvider/MudThemingProvider.razor.cs b/src/MudBlazor/Components/ThemeProvider/MudThemingProvider.razor.cs index 77af53c3fdc1..339582f384e7 100644 --- a/src/MudBlazor/Components/ThemeProvider/MudThemingProvider.razor.cs +++ b/src/MudBlazor/Components/ThemeProvider/MudThemingProvider.razor.cs @@ -254,8 +254,8 @@ protected virtual void GenerateTheme(StringBuilder theme) //Ripple theme.AppendLine($"--{Ripple}-color: var(--{Palette}-text-primary);"); - theme.AppendLine($"--{Ripple}-opacity: {Theme.Palette.RippleOpacity.ToString(CultureInfo.InvariantCulture)};"); - theme.AppendLine($"--{Ripple}-opacity-secondary: {Theme.Palette.RippleOpacitySecondary.ToString(CultureInfo.InvariantCulture)};"); + theme.AppendLine($"--{Ripple}-opacity: {Theme.PaletteLight.RippleOpacity.ToString(CultureInfo.InvariantCulture)};"); + theme.AppendLine($"--{Ripple}-opacity-secondary: {Theme.PaletteLight.RippleOpacitySecondary.ToString(CultureInfo.InvariantCulture)};"); //Elevations theme.AppendLine($"--{Elevation}-0: {Theme.Shadows.Elevation.GetValue(0)};"); From 6c6f6109649fa0d4c923a1c42cca15133e622861 Mon Sep 17 00:00:00 2001 From: Artyom M Date: Thu, 28 Mar 2024 19:08:08 +0200 Subject: [PATCH 24/50] MudOverlay: Fix two way binding with AutoClose=true (#8513) --- ...erlayVisibleBindingWithAutoCloseTest.razor | 14 +++++++++++ .../Components/OverlayTests.cs | 23 +++++++++++++++---- .../Components/Overlay/MudOverlay.razor | 2 +- .../Components/Overlay/MudOverlay.razor.cs | 12 ++++++++-- 4 files changed, 44 insertions(+), 7 deletions(-) create mode 100644 src/MudBlazor.UnitTests.Viewer/TestComponents/Overlay/OverlayVisibleBindingWithAutoCloseTest.razor diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Overlay/OverlayVisibleBindingWithAutoCloseTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Overlay/OverlayVisibleBindingWithAutoCloseTest.razor new file mode 100644 index 000000000000..65d7ddf2d845 --- /dev/null +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Overlay/OverlayVisibleBindingWithAutoCloseTest.razor @@ -0,0 +1,14 @@ +@namespace MudBlazor.UnitTests.TestComponents + +Show Overlay + + + +@code { + public bool IsVisible { get; private set; } + + public void OpenOverlay() + { + IsVisible = true; + } +} \ No newline at end of file diff --git a/src/MudBlazor.UnitTests/Components/OverlayTests.cs b/src/MudBlazor.UnitTests/Components/OverlayTests.cs index c5bb57dbe66f..3288528863ce 100644 --- a/src/MudBlazor.UnitTests/Components/OverlayTests.cs +++ b/src/MudBlazor.UnitTests/Components/OverlayTests.cs @@ -1,7 +1,9 @@ using System.Threading.Tasks; +using AngleSharp.Dom; using Bunit; using FluentAssertions; using Microsoft.AspNetCore.Components.Web; +using MudBlazor.UnitTests.TestComponents; using NUnit.Framework; namespace MudBlazor.UnitTests.Components @@ -43,7 +45,7 @@ public async Task OverlayShouldCloseOnClickTest() .Add(p => p.AutoClose, true) ); - await comp.Find("div.mud-overlay").ClickAsync(null); + await comp.Find("div.mud-overlay").ClickAsync(new MouseEventArgs()); comp.Markup.Should().BeEmpty(); } @@ -57,11 +59,11 @@ public async Task OverlayShouldNotCloseOnClickTest() .Add(p => p.Visible, true) ); - await comp.Find("div.mud-overlay").ClickAsync(null); + await comp.Find("div.mud-overlay").ClickAsync(new MouseEventArgs()); comp.Markup.Should().NotBeEmpty(); comp.SetParam(nameof(MudOverlay.AutoClose), false); - await comp.Find("div.mud-overlay").ClickAsync(null); + await comp.Find("div.mud-overlay").ClickAsync(new MouseEventArgs()); comp.Markup.Should().NotBeEmpty(); } @@ -79,9 +81,22 @@ public async Task LifetimeTest() .Add(p => p.OnClick, OnClickHandler) ); - await comp.Find("div.mud-overlay").ClickAsync(null); + await comp.Find("div.mud-overlay").ClickAsync(new MouseEventArgs()); comp.Markup.Trim().Should().NotBeEmpty(); counter.Should().Be(1); } + + [Test] + public async Task VisibleBindingWithAutoCloseTest() + { + var comp = Context.RenderComponent(); + IElement Button() => comp.Find("#showBtn"); + + comp.Instance.IsVisible.Should().BeFalse(); + await Button().ClickAsync(new MouseEventArgs()); + comp.Instance.IsVisible.Should().BeTrue(); + await comp.Find("div.mud-overlay").ClickAsync(new MouseEventArgs()); + comp.Instance.IsVisible.Should().BeFalse(); + } } } diff --git a/src/MudBlazor/Components/Overlay/MudOverlay.razor b/src/MudBlazor/Components/Overlay/MudOverlay.razor index 04ccf3b1dd67..228025d51e29 100644 --- a/src/MudBlazor/Components/Overlay/MudOverlay.razor +++ b/src/MudBlazor/Components/Overlay/MudOverlay.razor @@ -1,7 +1,7 @@ @namespace MudBlazor @inherits MudComponentBase -@if (Visible) +@if (_visibleState.Value) {
@if(LightBackground || DarkBackground) diff --git a/src/MudBlazor/Components/Overlay/MudOverlay.razor.cs b/src/MudBlazor/Components/Overlay/MudOverlay.razor.cs index d212b1b0c9a2..b230721696c8 100644 --- a/src/MudBlazor/Components/Overlay/MudOverlay.razor.cs +++ b/src/MudBlazor/Components/Overlay/MudOverlay.razor.cs @@ -1,6 +1,5 @@ using System; using System.Threading.Tasks; -using System.Windows.Input; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; using MudBlazor.State; @@ -117,7 +116,10 @@ public MudOverlay() protected internal async Task OnClickHandlerAsync(MouseEventArgs ev) { if (AutoClose) - Visible = false; + { + await _visibleState.SetValueAsync(false); + } + await OnClick.InvokeAsync(ev); } @@ -125,12 +127,18 @@ protected internal async Task OnClickHandlerAsync(MouseEventArgs ev) protected override async Task OnAfterRenderAsync(bool firstTime) { if (!LockScroll || Absolute) + { return; + } if (Visible) + { await BlockScrollAsync(); + } else + { await UnblockScrollAsync(); + } } private Task VisibleParameterChangedHandlerAsync() From 0f87e25c79f1d562701f714453108733f28313ec Mon Sep 17 00:00:00 2001 From: Mike Surcouf Date: Thu, 28 Mar 2024 22:59:58 +0000 Subject: [PATCH 25/50] Code Quality: Remove Console message and unnecessary assignment. (#8519) --- src/MudBlazor.UnitTests/Components/ThemeProviderTests.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/MudBlazor.UnitTests/Components/ThemeProviderTests.cs b/src/MudBlazor.UnitTests/Components/ThemeProviderTests.cs index 35233b8a4efe..1b25cd29776a 100644 --- a/src/MudBlazor.UnitTests/Components/ThemeProviderTests.cs +++ b/src/MudBlazor.UnitTests/Components/ThemeProviderTests.cs @@ -290,8 +290,6 @@ public void CustomThemeDarkModePrimaryDerivateColorTest() } }; var expectedDarkerColor = new MudColor(Colors.Green.Darken1).ColorRgbDarken(); - var expectedColorHex = expectedDarkerColor.ToString(MudColorOutputFormats.Hex); - Console.WriteLine($@"expecting: {expectedColorHex}"); myCustomTheme.PaletteDark.Primary.Should().Be(new MudColor(Colors.Green.Darken1));// Set by user myCustomTheme.PaletteDark.PrimaryDarken.Should().Be(expectedDarkerColor.ToString(MudColorOutputFormats.RGB));// Set by user From c1a2853894e0938d588f9bbb71db5179748976e5 Mon Sep 17 00:00:00 2001 From: Mike Surcouf Date: Thu, 28 Mar 2024 23:41:39 +0000 Subject: [PATCH 26/50] Build: Fix trim warnings when using dotnet format (#8518) --- .../Components/Snackbar/SnackbarService.cs | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/MudBlazor/Components/Snackbar/SnackbarService.cs b/src/MudBlazor/Components/Snackbar/SnackbarService.cs index 861bc65b238f..9f04021f15d9 100644 --- a/src/MudBlazor/Components/Snackbar/SnackbarService.cs +++ b/src/MudBlazor/Components/Snackbar/SnackbarService.cs @@ -109,11 +109,12 @@ public Snackbar Add(RenderFragment message, Severity severity = Severity.Normal, { "Message", message as object } }; - return Add + return Add ( - new SnackbarMessage(typeof(SnackbarMessageRenderFragment), componentParams, key), + componentParams, severity, - configure + configure, + key ); } @@ -132,12 +133,7 @@ public Snackbar Add(string message, Severity severity = Severity.Normal, Action< var componentParams = new Dictionary() { { "Message", new MarkupString(message) } }; - return Add - ( - new SnackbarMessage(typeof(SnackbarMessageText), componentParams, string.IsNullOrEmpty(key) ? message : key) { Text = message }, - severity, - configure - ); + return AddCore(message, componentParams, severity, configure, string.IsNullOrEmpty(key) ? message : key); } public void Clear() @@ -196,6 +192,14 @@ public void RemoveByKey(string key) OnSnackbarsUpdated?.Invoke(); } + private Snackbar AddCore<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(string text, Dictionary componentParameters = null, Severity severity = Severity.Normal, Action configure = null, string key = "") where T : IComponent + { + var type = typeof(T); + var message = new SnackbarMessage(type, componentParameters, key) { Text = text }; + + return Add(message, severity, configure); + } + private bool ResolvePreventDuplicates(SnackbarOptions options) { return options.DuplicatesBehavior == SnackbarDuplicatesBehavior.Prevent From 704d3e707b9ae79601baac1ca731951036cd7add Mon Sep 17 00:00:00 2001 From: Mike Surcouf Date: Fri, 29 Mar 2024 19:52:21 +0000 Subject: [PATCH 27/50] Code Quality: dotnet format (#8523) --- src/MudBlazor.Docs.Wasm/Program.cs | 9 ++++----- .../Controllers/OperationCancelledExceptionFilter.cs | 4 ++-- src/MudBlazor.Docs.WasmHost/Program.cs | 2 +- src/MudBlazor.Docs/Components/DocsPage.razor.cs | 2 +- .../Components/SectionContent.razor.cs | 2 +- .../Extensions/ResourceSetExtensions.cs | 4 ++-- .../Pages/Features/Icons/IconsPage.razor.cs | 6 +++--- src/MudBlazor.Docs/Shared/MainLayout.razor.cs | 2 +- src/MudBlazor.SourceCodeGenerator/Usings.cs | 2 +- ...dateValidationMessagesOnEditContextChangedTest.cs | 2 +- .../ParameterStateComparerTestComp.razor.cs | 4 ++-- .../Components/AutocompleteTests.cs | 6 +++--- .../Components/Charts/BarChartTests.cs | 8 ++++---- .../Components/Charts/DonutChartTests.cs | 6 +++--- .../Components/Charts/LineChartTests.cs | 4 ++-- .../Components/Charts/PieChartTests.cs | 2 +- .../Components/Charts/StackedBarChartTests.cs | 6 +++--- .../Components/DataGrid/AggregateDefinitionTests.cs | 2 +- .../Components/DatePickerTests.cs | 10 +++++----- .../Components/DateRangePickerTests.cs | 10 +++++----- .../Components/ScrollToTopTests.cs | 6 +++--- .../Extensions/EnumExtensionsTests.cs | 4 ++-- .../Extensions/ExpressionExtensionsTests.cs | 8 ++++---- .../Extensions/ParameterViewExtensionsTests.cs | 6 +++--- .../Extensions/TaskExtensionsTests.cs | 10 +++++----- .../DefaultLocalizationInterceptorTests.cs | 10 +++++----- .../Localization/InternalMudLocalizerTests.cs | 6 +++--- .../Utilities/Expressions/ExpressionHasherTests.cs | 2 +- .../Utilities/Expressions/PropertyPathTests.cs | 2 +- src/MudBlazor/Base/MudBaseColumn.cs | 4 ++-- src/MudBlazor/Components/Button/MudButton.razor.cs | 4 ++-- .../Components/Button/MudIconButton.razor.cs | 4 ++-- src/MudBlazor/Components/Dialog/IDialogReference.cs | 2 +- src/MudBlazor/Components/Popover/MudPopover.razor.cs | 2 +- src/MudBlazor/Components/Table/MudTable.razor.cs | 4 ++-- .../Components/Table/MudTablePager.razor.cs | 2 +- .../ThemeProvider/MudThemingProvider.razor.cs | 2 +- .../Components/TimePicker/MudTimePicker.razor.cs | 12 ++++++------ .../Components/TreeView/MudTreeViewItem.razor.cs | 2 +- src/MudBlazor/Enums/OverflowBehavior.cs | 4 ++-- .../Services/Localization/InternalMudLocalizer.cs | 4 ++-- .../State/Builder/ParameterAttachBuilderOfT.cs | 6 +++--- .../State/ParameterChangedLambdaArgsHandler.cs | 4 ++-- src/MudBlazor/Themes/Models/Palette.cs | 4 ++-- src/MudBlazor/Utilities/ColorManager.cs | 2 +- 45 files changed, 104 insertions(+), 105 deletions(-) diff --git a/src/MudBlazor.Docs.Wasm/Program.cs b/src/MudBlazor.Docs.Wasm/Program.cs index 4c50ce70f15e..0b9c5d96c17c 100644 --- a/src/MudBlazor.Docs.Wasm/Program.cs +++ b/src/MudBlazor.Docs.Wasm/Program.cs @@ -1,13 +1,12 @@ -using Microsoft.AspNetCore.Components.Web; +using System; +using System.Net.Http; +using Microsoft.AspNetCore.Components.Web; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; using Microsoft.Extensions.DependencyInjection; using Microsoft.JSInterop; - -using System; -using System.Net.Http; -using MudBlazor.Docs.Wasm; using MudBlazor.Docs.Extensions; using MudBlazor.Docs.Services.Notifications; +using MudBlazor.Docs.Wasm; var builder = WebAssemblyHostBuilder.CreateDefault(args); diff --git a/src/MudBlazor.Docs.WasmHost/Controllers/OperationCancelledExceptionFilter.cs b/src/MudBlazor.Docs.WasmHost/Controllers/OperationCancelledExceptionFilter.cs index 35681e64f498..930b8416bcaf 100644 --- a/src/MudBlazor.Docs.WasmHost/Controllers/OperationCancelledExceptionFilter.cs +++ b/src/MudBlazor.Docs.WasmHost/Controllers/OperationCancelledExceptionFilter.cs @@ -2,9 +2,9 @@ // MudBlazor licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using Microsoft.AspNetCore.Mvc.Filters; -using Microsoft.AspNetCore.Mvc; using System; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Filters; namespace MudBlazor.Docs.WasmHost.Controllers { diff --git a/src/MudBlazor.Docs.WasmHost/Program.cs b/src/MudBlazor.Docs.WasmHost/Program.cs index 0a7deb7e8de9..8662241697aa 100644 --- a/src/MudBlazor.Docs.WasmHost/Program.cs +++ b/src/MudBlazor.Docs.WasmHost/Program.cs @@ -7,9 +7,9 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using MudBlazor.Docs.Extensions; -using MudBlazor.Docs.WasmHost.Prerender; using MudBlazor.Docs.Services; using MudBlazor.Docs.Services.Notifications; +using MudBlazor.Docs.WasmHost.Prerender; using MudBlazor.Examples.Data; var builder = WebApplication.CreateBuilder(args); diff --git a/src/MudBlazor.Docs/Components/DocsPage.razor.cs b/src/MudBlazor.Docs/Components/DocsPage.razor.cs index c80a4dc2d436..3916c075d8ae 100644 --- a/src/MudBlazor.Docs/Components/DocsPage.razor.cs +++ b/src/MudBlazor.Docs/Components/DocsPage.razor.cs @@ -4,8 +4,8 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Diagnostics; +using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using MudBlazor.Docs.Models; diff --git a/src/MudBlazor.Docs/Components/SectionContent.razor.cs b/src/MudBlazor.Docs/Components/SectionContent.razor.cs index c1a85c9931c9..fa1e812fe344 100644 --- a/src/MudBlazor.Docs/Components/SectionContent.razor.cs +++ b/src/MudBlazor.Docs/Components/SectionContent.razor.cs @@ -2,7 +2,6 @@ // MudBlazor licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MudBlazor.Utilities; using System; using System.Collections.Generic; using System.IO; @@ -13,6 +12,7 @@ using MudBlazor.Docs.Extensions; using MudBlazor.Docs.Models; using MudBlazor.Docs.Services; +using MudBlazor.Utilities; namespace MudBlazor.Docs.Components; diff --git a/src/MudBlazor.Docs/Extensions/ResourceSetExtensions.cs b/src/MudBlazor.Docs/Extensions/ResourceSetExtensions.cs index 83a8dcfcedc9..2be843f16322 100644 --- a/src/MudBlazor.Docs/Extensions/ResourceSetExtensions.cs +++ b/src/MudBlazor.Docs/Extensions/ResourceSetExtensions.cs @@ -1,5 +1,5 @@ -using System.Collections.Generic; -using System.Collections; +using System.Collections; +using System.Collections.Generic; using System.Linq; using System.Resources; diff --git a/src/MudBlazor.Docs/Pages/Features/Icons/IconsPage.razor.cs b/src/MudBlazor.Docs/Pages/Features/Icons/IconsPage.razor.cs index 85510aa0424f..9a8067570c57 100644 --- a/src/MudBlazor.Docs/Pages/Features/Icons/IconsPage.razor.cs +++ b/src/MudBlazor.Docs/Pages/Features/Icons/IconsPage.razor.cs @@ -5,12 +5,12 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Threading.Tasks; using System.Reflection; -using MudBlazor.Docs.Models; +using System.Threading.Tasks; using Microsoft.AspNetCore.Components; -using MudBlazor.Services; +using MudBlazor.Docs.Models; using MudBlazor.Interop; +using MudBlazor.Services; namespace MudBlazor.Docs.Pages.Features.Icons { diff --git a/src/MudBlazor.Docs/Shared/MainLayout.razor.cs b/src/MudBlazor.Docs/Shared/MainLayout.razor.cs index 514ed46afc99..49141782cc18 100644 --- a/src/MudBlazor.Docs/Shared/MainLayout.razor.cs +++ b/src/MudBlazor.Docs/Shared/MainLayout.razor.cs @@ -1,9 +1,9 @@ using System; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; -using MudBlazor.Docs.Services.UserPreferences; using MudBlazor.Docs.Models; using MudBlazor.Docs.Services; +using MudBlazor.Docs.Services.UserPreferences; namespace MudBlazor.Docs.Shared { diff --git a/src/MudBlazor.SourceCodeGenerator/Usings.cs b/src/MudBlazor.SourceCodeGenerator/Usings.cs index 1bcc46c7e5c1..68c4fa9f7442 100644 --- a/src/MudBlazor.SourceCodeGenerator/Usings.cs +++ b/src/MudBlazor.SourceCodeGenerator/Usings.cs @@ -6,5 +6,5 @@ global using Microsoft.CodeAnalysis; global using Microsoft.CodeAnalysis.CSharp.Syntax; global using Microsoft.CodeAnalysis.Text; -global using MudBlazor.SourceCodeGenerator.Models; global using MudBlazor.SourceCodeGenerator.Extensions; +global using MudBlazor.SourceCodeGenerator.Models; diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/FormComponentUpdateValidationMessagesOnEditContextChangedTest.cs b/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/FormComponentUpdateValidationMessagesOnEditContextChangedTest.cs index dac0c123d4ec..662dbc1afc70 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/FormComponentUpdateValidationMessagesOnEditContextChangedTest.cs +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/FormComponentUpdateValidationMessagesOnEditContextChangedTest.cs @@ -2,8 +2,8 @@ // MudBlazor licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using Microsoft.AspNetCore.Components.Forms; using Microsoft.AspNetCore.Components; +using Microsoft.AspNetCore.Components.Forms; namespace MudBlazor.UnitTests.TestComponents.Form { diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Utilities/ParameterStateComparerTestComp.razor.cs b/src/MudBlazor.UnitTests.Viewer/TestComponents/Utilities/ParameterStateComparerTestComp.razor.cs index 48dcfaa68a55..42d549cef8d1 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Utilities/ParameterStateComparerTestComp.razor.cs +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Utilities/ParameterStateComparerTestComp.razor.cs @@ -1,6 +1,6 @@ -using Microsoft.AspNetCore.Components; +using System.Collections.Generic; +using Microsoft.AspNetCore.Components; using MudBlazor.State; -using System.Collections.Generic; namespace MudBlazor.UnitTests; diff --git a/src/MudBlazor.UnitTests/Components/AutocompleteTests.cs b/src/MudBlazor.UnitTests/Components/AutocompleteTests.cs index 2f14a966e00b..ec6d50dce45e 100644 --- a/src/MudBlazor.UnitTests/Components/AutocompleteTests.cs +++ b/src/MudBlazor.UnitTests/Components/AutocompleteTests.cs @@ -8,18 +8,18 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; +using System.Threading; using System.Threading.Tasks; using AngleSharp.Dom; using AngleSharp.Html.Dom; using Bunit; using FluentAssertions; +using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; using MudBlazor.UnitTests.TestComponents; using NUnit.Framework; -using static MudBlazor.UnitTests.TestComponents.AutocompleteSetParametersInitialization; using static Bunit.ComponentParameterFactory; -using Microsoft.AspNetCore.Components; -using System.Threading; +using static MudBlazor.UnitTests.TestComponents.AutocompleteSetParametersInitialization; namespace MudBlazor.UnitTests.Components { diff --git a/src/MudBlazor.UnitTests/Components/Charts/BarChartTests.cs b/src/MudBlazor.UnitTests/Components/Charts/BarChartTests.cs index 2c5837278da5..e6db038bac87 100644 --- a/src/MudBlazor.UnitTests/Components/Charts/BarChartTests.cs +++ b/src/MudBlazor.UnitTests/Components/Charts/BarChartTests.cs @@ -2,15 +2,15 @@ // MudBlazor licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; using System.Collections.Generic; -using MudBlazor.UnitTests.Components; using System.Linq; +using Bunit; using FluentAssertions; using MudBlazor.Charts; -using NUnit.Framework; -using Bunit; +using MudBlazor.UnitTests.Components; using MudBlazor.UnitTests.Utilities; -using System; +using NUnit.Framework; namespace MudBlazor.UnitTests.Charts { diff --git a/src/MudBlazor.UnitTests/Components/Charts/DonutChartTests.cs b/src/MudBlazor.UnitTests/Components/Charts/DonutChartTests.cs index 3f201c099a7b..e34aed88f915 100644 --- a/src/MudBlazor.UnitTests/Components/Charts/DonutChartTests.cs +++ b/src/MudBlazor.UnitTests/Components/Charts/DonutChartTests.cs @@ -2,14 +2,14 @@ // MudBlazor licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using MudBlazor.UnitTests.Components; using System; +using System.Collections.Generic; using System.Linq; +using Bunit; using FluentAssertions; using MudBlazor.Charts; +using MudBlazor.UnitTests.Components; using NUnit.Framework; -using Bunit; -using System.Collections.Generic; namespace MudBlazor.UnitTests.Charts { diff --git a/src/MudBlazor.UnitTests/Components/Charts/LineChartTests.cs b/src/MudBlazor.UnitTests/Components/Charts/LineChartTests.cs index 216dd4964d1e..3cbc36bae2ef 100644 --- a/src/MudBlazor.UnitTests/Components/Charts/LineChartTests.cs +++ b/src/MudBlazor.UnitTests/Components/Charts/LineChartTests.cs @@ -5,12 +5,12 @@ using System; using System.Collections.Generic; using System.Linq; +using AngleSharp.Dom; +using Bunit; using FluentAssertions; using MudBlazor.Charts; using MudBlazor.UnitTests.Components; using NUnit.Framework; -using Bunit; -using AngleSharp.Dom; namespace MudBlazor.UnitTests.Charts { diff --git a/src/MudBlazor.UnitTests/Components/Charts/PieChartTests.cs b/src/MudBlazor.UnitTests/Components/Charts/PieChartTests.cs index d35b994a35e0..6737ab58a1b8 100644 --- a/src/MudBlazor.UnitTests/Components/Charts/PieChartTests.cs +++ b/src/MudBlazor.UnitTests/Components/Charts/PieChartTests.cs @@ -6,10 +6,10 @@ using System.Reflection.Metadata; using Bunit; using FluentAssertions; +using Moq; using MudBlazor.Charts; using MudBlazor.UnitTests.Components; using NUnit.Framework; -using Moq; namespace MudBlazor.UnitTests.Charts { diff --git a/src/MudBlazor.UnitTests/Components/Charts/StackedBarChartTests.cs b/src/MudBlazor.UnitTests/Components/Charts/StackedBarChartTests.cs index a8580e8d8916..af88e22d30e6 100644 --- a/src/MudBlazor.UnitTests/Components/Charts/StackedBarChartTests.cs +++ b/src/MudBlazor.UnitTests/Components/Charts/StackedBarChartTests.cs @@ -3,13 +3,13 @@ // See the LICENSE file in the project root for more information. using System.Collections.Generic; -using MudBlazor.UnitTests.Components; using System.Linq; +using Bunit; using FluentAssertions; using MudBlazor.Charts; -using NUnit.Framework; -using Bunit; +using MudBlazor.UnitTests.Components; using MudBlazor.UnitTests.Utilities; +using NUnit.Framework; namespace MudBlazor.UnitTests.Charts { diff --git a/src/MudBlazor.UnitTests/Components/DataGrid/AggregateDefinitionTests.cs b/src/MudBlazor.UnitTests/Components/DataGrid/AggregateDefinitionTests.cs index 773ec72db3bc..7302bfb2be5b 100644 --- a/src/MudBlazor.UnitTests/Components/DataGrid/AggregateDefinitionTests.cs +++ b/src/MudBlazor.UnitTests/Components/DataGrid/AggregateDefinitionTests.cs @@ -2,11 +2,11 @@ // MudBlazor licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Linq.Expressions; using System; using System.Collections.Generic; using System.Globalization; using System.Linq; +using System.Linq.Expressions; using FluentAssertions; using NUnit.Framework; diff --git a/src/MudBlazor.UnitTests/Components/DatePickerTests.cs b/src/MudBlazor.UnitTests/Components/DatePickerTests.cs index a761c994e8de..d49792cd12f5 100644 --- a/src/MudBlazor.UnitTests/Components/DatePickerTests.cs +++ b/src/MudBlazor.UnitTests/Components/DatePickerTests.cs @@ -1,6 +1,11 @@ #pragma warning disable CS1998 // async without await #pragma warning disable BL0005 // Set parameter outside component +using System; +using System.Diagnostics; +using System.Globalization; +using System.Linq; +using System.Threading.Tasks; using AngleSharp.Dom; using AngleSharp.Html.Dom; using Bunit; @@ -9,11 +14,6 @@ using MudBlazor.UnitTests.TestComponents; using MudBlazor.UnitTests.TestComponents.DatePicker; using NUnit.Framework; -using System; -using System.Diagnostics; -using System.Globalization; -using System.Linq; -using System.Threading.Tasks; using static Bunit.ComponentParameterFactory; namespace MudBlazor.UnitTests.Components diff --git a/src/MudBlazor.UnitTests/Components/DateRangePickerTests.cs b/src/MudBlazor.UnitTests/Components/DateRangePickerTests.cs index ddb704d7e5ea..2228539c09d6 100644 --- a/src/MudBlazor.UnitTests/Components/DateRangePickerTests.cs +++ b/src/MudBlazor.UnitTests/Components/DateRangePickerTests.cs @@ -1,15 +1,15 @@ #pragma warning disable BL0005 // Set parameter outside component -using AngleSharp.Html.Dom; -using Bunit; -using FluentAssertions; -using MudBlazor.UnitTests.TestComponents; -using NUnit.Framework; using System; using System.Diagnostics; using System.Globalization; using System.Linq; using System.Threading.Tasks; +using AngleSharp.Html.Dom; +using Bunit; +using FluentAssertions; +using MudBlazor.UnitTests.TestComponents; +using NUnit.Framework; using static Bunit.ComponentParameterFactory; namespace MudBlazor.UnitTests.Components diff --git a/src/MudBlazor.UnitTests/Components/ScrollToTopTests.cs b/src/MudBlazor.UnitTests/Components/ScrollToTopTests.cs index a0e3c805af82..5b236485d1eb 100644 --- a/src/MudBlazor.UnitTests/Components/ScrollToTopTests.cs +++ b/src/MudBlazor.UnitTests/Components/ScrollToTopTests.cs @@ -1,8 +1,8 @@ -using MudBlazor.UnitTests.TestComponents; +using System; using Bunit; -using NUnit.Framework; using FluentAssertions; -using System; +using MudBlazor.UnitTests.TestComponents; +using NUnit.Framework; namespace MudBlazor.UnitTests.Components { diff --git a/src/MudBlazor.UnitTests/Extensions/EnumExtensionsTests.cs b/src/MudBlazor.UnitTests/Extensions/EnumExtensionsTests.cs index 7f683b64478e..fa38ae1013d5 100644 --- a/src/MudBlazor.UnitTests/Extensions/EnumExtensionsTests.cs +++ b/src/MudBlazor.UnitTests/Extensions/EnumExtensionsTests.cs @@ -1,5 +1,5 @@ -using System.Linq; -using System; +using System; +using System.Linq; using FluentAssertions; using MudBlazor.UnitTests.Dummy; using NUnit.Framework; diff --git a/src/MudBlazor.UnitTests/Extensions/ExpressionExtensionsTests.cs b/src/MudBlazor.UnitTests/Extensions/ExpressionExtensionsTests.cs index da602369c260..dab558065a7c 100644 --- a/src/MudBlazor.UnitTests/Extensions/ExpressionExtensionsTests.cs +++ b/src/MudBlazor.UnitTests/Extensions/ExpressionExtensionsTests.cs @@ -1,9 +1,9 @@ -using FluentAssertions; +using System; +using System.ComponentModel.DataAnnotations; +using System.Linq.Expressions; +using FluentAssertions; using MudBlazor; using NUnit.Framework; -using System.Linq.Expressions; -using System; -using System.ComponentModel.DataAnnotations; namespace MudBlazor.UnitTests.Extensions { diff --git a/src/MudBlazor.UnitTests/Extensions/ParameterViewExtensionsTests.cs b/src/MudBlazor.UnitTests/Extensions/ParameterViewExtensionsTests.cs index d23f9990e8cb..6e2008364b6d 100644 --- a/src/MudBlazor.UnitTests/Extensions/ParameterViewExtensionsTests.cs +++ b/src/MudBlazor.UnitTests/Extensions/ParameterViewExtensionsTests.cs @@ -1,8 +1,8 @@ -using Microsoft.AspNetCore.Components; -using NUnit.Framework; -using System.Collections.Generic; +using System.Collections.Generic; using FluentAssertions; +using Microsoft.AspNetCore.Components; using MudBlazor.UnitTests.Mocks; +using NUnit.Framework; namespace MudBlazor.UnitTests.Extensions; diff --git a/src/MudBlazor.UnitTests/Extensions/TaskExtensionsTests.cs b/src/MudBlazor.UnitTests/Extensions/TaskExtensionsTests.cs index 523ee91e07ea..34376a78aca6 100644 --- a/src/MudBlazor.UnitTests/Extensions/TaskExtensionsTests.cs +++ b/src/MudBlazor.UnitTests/Extensions/TaskExtensionsTests.cs @@ -1,12 +1,12 @@ -using FluentAssertions; -using MudBlazor; -using NUnit.Framework; -using System.Linq.Expressions; -using System; +using System; using System.ComponentModel.DataAnnotations; using System.Diagnostics; +using System.Linq.Expressions; using System.Threading.Tasks; +using FluentAssertions; +using MudBlazor; using MudBlazor.Docs.Models; +using NUnit.Framework; namespace MudBlazor.UnitTests.Extensions { diff --git a/src/MudBlazor.UnitTests/Services/Localization/DefaultLocalizationInterceptorTests.cs b/src/MudBlazor.UnitTests/Services/Localization/DefaultLocalizationInterceptorTests.cs index 17e644ecb7c2..ca99a4ea3953 100644 --- a/src/MudBlazor.UnitTests/Services/Localization/DefaultLocalizationInterceptorTests.cs +++ b/src/MudBlazor.UnitTests/Services/Localization/DefaultLocalizationInterceptorTests.cs @@ -1,13 +1,13 @@ -using Microsoft.Extensions.Logging.Abstractions; -using NUnit.Framework; +using System; using System.Globalization; using System.Linq; using FluentAssertions; -using MudBlazor.Docs.Extensions; -using MudBlazor.Resources; -using System; using Microsoft.Extensions.Localization; +using Microsoft.Extensions.Logging.Abstractions; using Moq; +using MudBlazor.Docs.Extensions; +using MudBlazor.Resources; +using NUnit.Framework; namespace MudBlazor.UnitTests.Services.Localization; diff --git a/src/MudBlazor.UnitTests/Services/Localization/InternalMudLocalizerTests.cs b/src/MudBlazor.UnitTests/Services/Localization/InternalMudLocalizerTests.cs index 3b44be3ca713..98696a87932d 100644 --- a/src/MudBlazor.UnitTests/Services/Localization/InternalMudLocalizerTests.cs +++ b/src/MudBlazor.UnitTests/Services/Localization/InternalMudLocalizerTests.cs @@ -1,10 +1,10 @@ -using Moq; -using NUnit.Framework; -using System; +using System; using FluentAssertions; using Microsoft.Extensions.Localization; using Microsoft.Extensions.Logging.Abstractions; +using Moq; using MudBlazor.Resources; +using NUnit.Framework; namespace MudBlazor.UnitTests.Services.Localization; diff --git a/src/MudBlazor.UnitTests/Utilities/Expressions/ExpressionHasherTests.cs b/src/MudBlazor.UnitTests/Utilities/Expressions/ExpressionHasherTests.cs index 29f186f03d05..a7a794253635 100644 --- a/src/MudBlazor.UnitTests/Utilities/Expressions/ExpressionHasherTests.cs +++ b/src/MudBlazor.UnitTests/Utilities/Expressions/ExpressionHasherTests.cs @@ -2,9 +2,9 @@ // MudBlazor licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Linq.Expressions; using System; using System.Collections.Generic; +using System.Linq.Expressions; using FluentAssertions; using MudBlazor.Utilities.Expressions; using NUnit.Framework; diff --git a/src/MudBlazor.UnitTests/Utilities/Expressions/PropertyPathTests.cs b/src/MudBlazor.UnitTests/Utilities/Expressions/PropertyPathTests.cs index 894e94637f70..2fc8e1e48985 100644 --- a/src/MudBlazor.UnitTests/Utilities/Expressions/PropertyPathTests.cs +++ b/src/MudBlazor.UnitTests/Utilities/Expressions/PropertyPathTests.cs @@ -2,8 +2,8 @@ // MudBlazor licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.Linq.Expressions; using System; +using System.Linq.Expressions; using FluentAssertions; using MudBlazor.Utilities.Expressions; using NUnit.Framework; diff --git a/src/MudBlazor/Base/MudBaseColumn.cs b/src/MudBlazor/Base/MudBaseColumn.cs index 5b66e3903e16..917852dcff9c 100644 --- a/src/MudBlazor/Base/MudBaseColumn.cs +++ b/src/MudBlazor/Base/MudBaseColumn.cs @@ -1,5 +1,5 @@ -using Microsoft.AspNetCore.Components; -using System.Collections.Generic; +using System.Collections.Generic; +using Microsoft.AspNetCore.Components; namespace MudBlazor { diff --git a/src/MudBlazor/Components/Button/MudButton.razor.cs b/src/MudBlazor/Components/Button/MudButton.razor.cs index 29abcc97705f..87fd47d2035e 100644 --- a/src/MudBlazor/Components/Button/MudButton.razor.cs +++ b/src/MudBlazor/Components/Button/MudButton.razor.cs @@ -1,6 +1,6 @@ -using Microsoft.AspNetCore.Components; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Components; using MudBlazor.Utilities; -using System.Threading.Tasks; namespace MudBlazor { diff --git a/src/MudBlazor/Components/Button/MudIconButton.razor.cs b/src/MudBlazor/Components/Button/MudIconButton.razor.cs index 52a61fc3511d..4ddd14bde63b 100644 --- a/src/MudBlazor/Components/Button/MudIconButton.razor.cs +++ b/src/MudBlazor/Components/Button/MudIconButton.razor.cs @@ -1,6 +1,6 @@ -using Microsoft.AspNetCore.Components; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Components; using MudBlazor.Utilities; -using System.Threading.Tasks; namespace MudBlazor { diff --git a/src/MudBlazor/Components/Dialog/IDialogReference.cs b/src/MudBlazor/Components/Dialog/IDialogReference.cs index bf1c0f3d2807..4943aabe24c5 100644 --- a/src/MudBlazor/Components/Dialog/IDialogReference.cs +++ b/src/MudBlazor/Components/Dialog/IDialogReference.cs @@ -5,9 +5,9 @@ // License: MIT using System; +using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; -using System.Diagnostics.CodeAnalysis; namespace MudBlazor { diff --git a/src/MudBlazor/Components/Popover/MudPopover.razor.cs b/src/MudBlazor/Components/Popover/MudPopover.razor.cs index bbf38dead3e1..28adedb738d6 100644 --- a/src/MudBlazor/Components/Popover/MudPopover.razor.cs +++ b/src/MudBlazor/Components/Popover/MudPopover.razor.cs @@ -1,6 +1,6 @@ using System; -using Microsoft.AspNetCore.Components; using System.Diagnostics.CodeAnalysis; +using Microsoft.AspNetCore.Components; using MudBlazor.Utilities; namespace MudBlazor diff --git a/src/MudBlazor/Components/Table/MudTable.razor.cs b/src/MudBlazor/Components/Table/MudTable.razor.cs index 10c10682c55b..bafbcbf9914b 100644 --- a/src/MudBlazor/Components/Table/MudTable.razor.cs +++ b/src/MudBlazor/Components/Table/MudTable.razor.cs @@ -1,14 +1,14 @@ using System; -using System.Diagnostics.CodeAnalysis; using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Reflection; +using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Rendering; using Microsoft.AspNetCore.Components.Web; using MudBlazor.Extensions; -using System.Threading; namespace MudBlazor diff --git a/src/MudBlazor/Components/Table/MudTablePager.razor.cs b/src/MudBlazor/Components/Table/MudTablePager.razor.cs index 3f1906c95f36..42df05cbebd1 100644 --- a/src/MudBlazor/Components/Table/MudTablePager.razor.cs +++ b/src/MudBlazor/Components/Table/MudTablePager.razor.cs @@ -1,6 +1,6 @@ using System; -using System.Linq; using System.Diagnostics.CodeAnalysis; +using System.Linq; using Microsoft.AspNetCore.Components; using MudBlazor.Utilities; diff --git a/src/MudBlazor/Components/ThemeProvider/MudThemingProvider.razor.cs b/src/MudBlazor/Components/ThemeProvider/MudThemingProvider.razor.cs index 339582f384e7..6826aaa549b8 100644 --- a/src/MudBlazor/Components/ThemeProvider/MudThemingProvider.razor.cs +++ b/src/MudBlazor/Components/ThemeProvider/MudThemingProvider.razor.cs @@ -251,7 +251,7 @@ protected virtual void GenerateTheme(StringBuilder theme) theme.AppendLine($"--{Palette}-overlay-dark: {palette.OverlayDark};"); theme.AppendLine($"--{Palette}-overlay-light: {palette.OverlayLight};"); - + //Ripple theme.AppendLine($"--{Ripple}-color: var(--{Palette}-text-primary);"); theme.AppendLine($"--{Ripple}-opacity: {Theme.PaletteLight.RippleOpacity.ToString(CultureInfo.InvariantCulture)};"); diff --git a/src/MudBlazor/Components/TimePicker/MudTimePicker.razor.cs b/src/MudBlazor/Components/TimePicker/MudTimePicker.razor.cs index b945147f971e..8e1595b1b1be 100644 --- a/src/MudBlazor/Components/TimePicker/MudTimePicker.razor.cs +++ b/src/MudBlazor/Components/TimePicker/MudTimePicker.razor.cs @@ -258,7 +258,7 @@ private async Task UpdateTimeAsync() TimeIntermediate = new TimeSpan(_timeSet.Hour, _timeSet.Minute, 0); if ((PickerVariant == PickerVariant.Static && PickerActions == null) || (PickerActions != null && AutoClose)) { - await SubmitAsync(); + await SubmitAsync(); } } @@ -519,7 +519,7 @@ private async Task OnMouseClickHourAsync(int value) } else if (TimeEditMode == TimeEditMode.OnlyHours) { - await SubmitAndCloseAsync(); + await SubmitAndCloseAsync(); } } @@ -601,7 +601,7 @@ protected internal override async void HandleKeyDown(KeyboardEventArgs obj) { if (_timeSet.Minute == 59) { - await ChangeHourAsync(1); + await ChangeHourAsync(1); } await ChangeMinuteAsync(1); } @@ -647,7 +647,7 @@ protected internal override async void HandleKeyDown(KeyboardEventArgs obj) } else { - await ChangeHourAsync(1); + await ChangeHourAsync(1); } break; case "ArrowDown": @@ -657,11 +657,11 @@ protected internal override async void HandleKeyDown(KeyboardEventArgs obj) } else if (obj.ShiftKey == true) { - await ChangeHourAsync(-5); + await ChangeHourAsync(-5); } else { - await ChangeHourAsync(-1); + await ChangeHourAsync(-1); } break; case "Escape": diff --git a/src/MudBlazor/Components/TreeView/MudTreeViewItem.razor.cs b/src/MudBlazor/Components/TreeView/MudTreeViewItem.razor.cs index 53725be73736..8d57f61c50c4 100644 --- a/src/MudBlazor/Components/TreeView/MudTreeViewItem.razor.cs +++ b/src/MudBlazor/Components/TreeView/MudTreeViewItem.razor.cs @@ -6,8 +6,8 @@ using System.Windows.Input; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; -using MudBlazor.Utilities; using MudBlazor.Interfaces; +using MudBlazor.Utilities; namespace MudBlazor { diff --git a/src/MudBlazor/Enums/OverflowBehavior.cs b/src/MudBlazor/Enums/OverflowBehavior.cs index d794b874dffc..682f11afd0a8 100644 --- a/src/MudBlazor/Enums/OverflowBehavior.cs +++ b/src/MudBlazor/Enums/OverflowBehavior.cs @@ -1,5 +1,5 @@ -using System.ComponentModel; -using System; +using System; +using System.ComponentModel; namespace MudBlazor { diff --git a/src/MudBlazor/Services/Localization/InternalMudLocalizer.cs b/src/MudBlazor/Services/Localization/InternalMudLocalizer.cs index 828c50db086c..06806135eb16 100644 --- a/src/MudBlazor/Services/Localization/InternalMudLocalizer.cs +++ b/src/MudBlazor/Services/Localization/InternalMudLocalizer.cs @@ -1,5 +1,5 @@ -using Microsoft.Extensions.Localization; -using System; +using System; +using Microsoft.Extensions.Localization; namespace MudBlazor; diff --git a/src/MudBlazor/State/Builder/ParameterAttachBuilderOfT.cs b/src/MudBlazor/State/Builder/ParameterAttachBuilderOfT.cs index 4cfc9e8967de..e3ad27582fa1 100644 --- a/src/MudBlazor/State/Builder/ParameterAttachBuilderOfT.cs +++ b/src/MudBlazor/State/Builder/ParameterAttachBuilderOfT.cs @@ -1,8 +1,8 @@ -using Microsoft.AspNetCore.Components; +using System; using System.Collections.Generic; -using System; -using System.Threading.Tasks; using System.Diagnostics.CodeAnalysis; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Components; namespace MudBlazor.State.Builder; diff --git a/src/MudBlazor/State/ParameterChangedLambdaArgsHandler.cs b/src/MudBlazor/State/ParameterChangedLambdaArgsHandler.cs index 70198acb4921..fe6be43c183c 100644 --- a/src/MudBlazor/State/ParameterChangedLambdaArgsHandler.cs +++ b/src/MudBlazor/State/ParameterChangedLambdaArgsHandler.cs @@ -1,5 +1,5 @@ -using System.Threading.Tasks; -using System; +using System; +using System.Threading.Tasks; namespace MudBlazor.State; diff --git a/src/MudBlazor/Themes/Models/Palette.cs b/src/MudBlazor/Themes/Models/Palette.cs index 52e2a23df225..3fa56c87fbec 100644 --- a/src/MudBlazor/Themes/Models/Palette.cs +++ b/src/MudBlazor/Themes/Models/Palette.cs @@ -380,7 +380,7 @@ public string DarkLighten /// Gets or sets the opacity value for hover effect. ///
public double HoverOpacity { get; set; } = 0.06; - + /// /// Gets or sets the opacity for the ripple effect. /// @@ -390,7 +390,7 @@ public string DarkLighten /// Gets or sets the opacity for the ripple effect on specific elements like filled buttons. ///
public double RippleOpacitySecondary { get; set; } = 0.2; - + /// /// Gets or sets the default gray color. /// diff --git a/src/MudBlazor/Utilities/ColorManager.cs b/src/MudBlazor/Utilities/ColorManager.cs index d44de8d6a5d5..95aeec681205 100644 --- a/src/MudBlazor/Utilities/ColorManager.cs +++ b/src/MudBlazor/Utilities/ColorManager.cs @@ -1,6 +1,6 @@ using System; -using System.Globalization; using System.Diagnostics.CodeAnalysis; +using System.Globalization; namespace MudBlazor.Utilities { From 6327de47aa8122b139f2bf458fb28aa684efd166 Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Sat, 30 Mar 2024 06:38:18 -0500 Subject: [PATCH 28/50] MudTextField: Remove last remaining reference to KeyPress (#8516) --- src/MudBlazor/Components/TextField/MudTextField.razor | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/MudBlazor/Components/TextField/MudTextField.razor b/src/MudBlazor/Components/TextField/MudTextField.razor index 8f04f21f6b14..e0ecf84b8c68 100644 --- a/src/MudBlazor/Components/TextField/MudTextField.razor +++ b/src/MudBlazor/Components/TextField/MudTextField.razor @@ -55,7 +55,6 @@ OnInternalInputChanged="OnChange" OnKeyUp="@InvokeKeyUpAsync" KeyDownPreventDefault="KeyDownPreventDefault" - KeyPressPreventDefault="KeyPressPreventDefaultObsolete" KeyUpPreventDefault="KeyUpPreventDefault" HideSpinButtons="true" Clearable="@Clearable" @@ -96,4 +95,4 @@ - \ No newline at end of file + From 3e0fc8f339a46109884a226d3adcb9b9da729ff5 Mon Sep 17 00:00:00 2001 From: Chris Andritzky Date: Sat, 30 Mar 2024 12:50:13 +0100 Subject: [PATCH 29/50] MudToggleGroup and MudToggleItem: Add Disabled parameter (#8367) (#8377) --- .../Examples/ToggleBasicsExample.razor | 23 +++++++------ .../Toggle/ToggleDisabledTest.razor | 18 +++++++++++ .../Components/ToggleGroupTests.cs | 32 +++++++++++++++++++ .../Components/Toggle/MudToggleGroup.razor.cs | 10 ++++++ .../Components/Toggle/MudToggleItem.razor.cs | 10 ++++++ .../Styles/components/_togglegroup.scss | 14 ++++++++ 6 files changed, 97 insertions(+), 10 deletions(-) create mode 100644 src/MudBlazor.UnitTests.Viewer/TestComponents/Toggle/ToggleDisabledTest.razor diff --git a/src/MudBlazor.Docs/Pages/Components/ToggleGroup/Examples/ToggleBasicsExample.razor b/src/MudBlazor.Docs/Pages/Components/ToggleGroup/Examples/ToggleBasicsExample.razor index 3c85158ade66..71c7fb3e2894 100644 --- a/src/MudBlazor.Docs/Pages/Components/ToggleGroup/Examples/ToggleBasicsExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/ToggleGroup/Examples/ToggleBasicsExample.razor @@ -3,40 +3,41 @@ - + + - - + + - + - + - + - + - + - + - + @@ -48,6 +49,7 @@ + @@ -58,4 +60,5 @@ bool _outline = true; bool _delimiters = true; bool _fixedContent = false; + bool _disabled = false; } \ No newline at end of file diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Toggle/ToggleDisabledTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Toggle/ToggleDisabledTest.razor new file mode 100644 index 000000000000..d8c85b93978a --- /dev/null +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Toggle/ToggleDisabledTest.razor @@ -0,0 +1,18 @@ +@namespace MudBlazor.UnitTests.TestComponents + + + + + + + + + + + + + +@code { + public static string __description__ = "It should be possible to disable whole toggle groups and/or toggle items"; + private string _value; +} \ No newline at end of file diff --git a/src/MudBlazor.UnitTests/Components/ToggleGroupTests.cs b/src/MudBlazor.UnitTests/Components/ToggleGroupTests.cs index ced8da2d197e..c7bd9e0e3d3f 100644 --- a/src/MudBlazor.UnitTests/Components/ToggleGroupTests.cs +++ b/src/MudBlazor.UnitTests/Components/ToggleGroupTests.cs @@ -293,5 +293,37 @@ public void ToggleGroup_SelectionModeWarning_Test() }); logger.GetEntries().Count.Should().Be(3); } + + [Test] + public void ToggleGroup_Disabled_Test() + { + var comp = Context.RenderComponent(); + var toggleGroups = comp.FindComponents>(); + var disabledToggleGroup = toggleGroups[0]; + var enabledToggleGroup = toggleGroups[1]; + + disabledToggleGroup.Instance.Disabled.Should().BeTrue(); + disabledToggleGroup.Find("div.mud-toggle-group").ClassList.Should().Contain("mud-disabled"); + foreach (var item in disabledToggleGroup.FindComponents>()) + { + // If the group is disabled, the group's disabled state overrules the item's disabled state + item.Find("div.mud-toggle-item").ClassList.Should().Contain("mud-disabled"); + } + + enabledToggleGroup.Instance.Disabled.Should().BeFalse(); + enabledToggleGroup.Find("div.mud-toggle-group").ClassList.Should().NotContain("mud-disabled"); + foreach (var item in enabledToggleGroup.FindComponents>()) + { + // If the group is enabled, the item's disabled state dominates + if (item.Instance.Disabled) + { + item.Find("div.mud-toggle-item").ClassList.Should().Contain("mud-disabled"); + } + else + { + item.Find("div.mud-toggle-item").ClassList.Should().NotContain("mud-disabled"); + } + } + } } } diff --git a/src/MudBlazor/Components/Toggle/MudToggleGroup.razor.cs b/src/MudBlazor/Components/Toggle/MudToggleGroup.razor.cs index 20dc33fd6693..5771c532744a 100644 --- a/src/MudBlazor/Components/Toggle/MudToggleGroup.razor.cs +++ b/src/MudBlazor/Components/Toggle/MudToggleGroup.razor.cs @@ -30,6 +30,7 @@ public MudToggleGroup() _rounded = RegisterParameter(nameof(Rounded), () => Rounded, OnParameterChanged); _checkMark = RegisterParameter(nameof(CheckMark), () => CheckMark, OnParameterChanged); _fixedContent = RegisterParameter(nameof(FixedContent), () => FixedContent, OnParameterChanged); + _disabled = RegisterParameter(nameof(Disabled), () => Disabled, OnParameterChanged); } private IParameterState _value; @@ -43,6 +44,7 @@ public MudToggleGroup() private IParameterState _rounded; private IParameterState _checkMark; private IParameterState _fixedContent; + private IParameterState _disabled; private List> _items = new(); protected string Classes => new CssBuilder("mud-toggle-group") @@ -52,6 +54,7 @@ public MudToggleGroup() .AddClass("rounded-xl", Rounded) .AddClass("mud-toggle-group-rtl", RightToLeft) .AddClass($"border mud-border-{Color.ToDescriptionString()} border-solid", Outline) + .AddClass("mud-disabled", Disabled) .AddClass(Class) .Build(); @@ -61,6 +64,13 @@ public MudToggleGroup() .AddStyle(Style) .Build(); + /// + /// If true, the group will be disabled. + /// + [Parameter] + [Category(CategoryTypes.List.Behavior)] + public bool Disabled { get; set; } + /// /// The selected value in single- and toggle-selection mode. /// diff --git a/src/MudBlazor/Components/Toggle/MudToggleItem.razor.cs b/src/MudBlazor/Components/Toggle/MudToggleItem.razor.cs index 2a8e56f6609d..994988179e78 100644 --- a/src/MudBlazor/Components/Toggle/MudToggleItem.razor.cs +++ b/src/MudBlazor/Components/Toggle/MudToggleItem.razor.cs @@ -29,6 +29,7 @@ public partial class MudToggleItem : MudComponentBase .AddClass(ItemPadding) .AddClass("mud-toggle-item-vertical", Parent?.Vertical == true) .AddClass("mud-toggle-item-delimiter", Parent?.Delimiters == true) + .AddClass("mud-disabled", GetDisabledState()) .AddClass(Class) .Build(); @@ -75,6 +76,13 @@ protected string ItemPadding [CascadingParameter] public MudToggleGroup? Parent { get; set; } + /// + /// If true, the item will be disabled. + /// + [Parameter] + [Category(CategoryTypes.List.Behavior)] + public bool Disabled { get; set; } + [Parameter] [Category(CategoryTypes.List.Behavior)] public T? Value { get; set; } @@ -136,5 +144,7 @@ protected async Task HandleOnClickAsync() } protected internal bool IsEmpty => string.IsNullOrEmpty(Text) && Value is null; + + protected bool GetDisabledState() => Disabled || (Parent?.Disabled ?? false); } } diff --git a/src/MudBlazor/Styles/components/_togglegroup.scss b/src/MudBlazor/Styles/components/_togglegroup.scss index 7641a77942ea..7fb202f86179 100644 --- a/src/MudBlazor/Styles/components/_togglegroup.scss +++ b/src/MudBlazor/Styles/components/_togglegroup.scss @@ -2,6 +2,13 @@ .mud-toggle-group { display: grid; + + &.mud-disabled { + cursor: default; + pointer-events: none; + color: var(--mud-palette-action-disabled) !important; + border-color: var(--mud-palette-action-disabled) !important; + } } .mud-toggle-group-horizontal { @@ -88,4 +95,11 @@ &.mud-toggle-item-selected-border { border-radius: unset; } + + &.mud-disabled { + cursor: default; + pointer-events: none; + color: var(--mud-palette-action-disabled) !important; + border-color: inherit !important; + } } From f1391d84ef1341d6a05451a534e7b01814e08882 Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Sat, 30 Mar 2024 11:31:42 -0500 Subject: [PATCH 30/50] Update icons and remove obsolete API (#8421) --- src/MudBlazor/Icons/Material/Filled.cs | 28 +- src/MudBlazor/Icons/Material/Outlined.cs | 32 +- src/MudBlazor/Icons/Material/Rounded.cs | 36 +- src/MudBlazor/Icons/Material/Sharp.cs | 30 +- src/MudBlazor/Icons/Material/TwoTone.cs | 32 +- src/MudBlazor/Icons/Obsolete/Filled.cs | 2139 --------------------- src/MudBlazor/Icons/Obsolete/Outlined.cs | 2139 --------------------- src/MudBlazor/Icons/Obsolete/Rounded.cs | 2139 --------------------- src/MudBlazor/Icons/Obsolete/Sharp.cs | 2139 --------------------- src/MudBlazor/Icons/Obsolete/TwoTone.cs | 2139 --------------------- src/MudBlazor/Icons/Obsolete/_Obsolete.cs | 200 -- tools/Icons/Update-MudIcons.ps1 | 41 +- 12 files changed, 81 insertions(+), 11013 deletions(-) delete mode 100644 src/MudBlazor/Icons/Obsolete/Filled.cs delete mode 100644 src/MudBlazor/Icons/Obsolete/Outlined.cs delete mode 100644 src/MudBlazor/Icons/Obsolete/Rounded.cs delete mode 100644 src/MudBlazor/Icons/Obsolete/Sharp.cs delete mode 100644 src/MudBlazor/Icons/Obsolete/TwoTone.cs delete mode 100644 src/MudBlazor/Icons/Obsolete/_Obsolete.cs diff --git a/src/MudBlazor/Icons/Material/Filled.cs b/src/MudBlazor/Icons/Material/Filled.cs index 989e70b47e78..04a8ebe24df6 100644 --- a/src/MudBlazor/Icons/Material/Filled.cs +++ b/src/MudBlazor/Icons/Material/Filled.cs @@ -1,6 +1,6 @@ /* * This file was auto-generated by Update-MudIcons.ps1 - * 2022/12/28_09:54:19 + * 2024/03/29_05:25:37 */ using System.Diagnostics.CodeAnalysis; @@ -164,7 +164,7 @@ public partial class Filled public const string AppBlocking = ""; public const string AppRegistration = ""; public const string AppSettingsAlt = ""; - public const string AppShortcut = ""; + public const string AppShortcut = ""; public const string Approval = ""; public const string Apps = ""; public const string AppsOutage = ""; @@ -201,7 +201,7 @@ public partial class Filled public const string AssignmentTurnedIn = ""; public const string AssistWalker = ""; public const string Assistant = ""; - public const string AssistantDirection = ""; + public const string AssistantDirection = ""; public const string AssistantPhoto = ""; public const string AssuredWorkload = ""; public const string Atm = ""; @@ -335,7 +335,7 @@ public partial class Filled public const string BusinessCenter = ""; public const string Cabin = ""; public const string Cable = ""; - public const string Cached = ""; + public const string Cached = ""; public const string Cake = ""; public const string Calculate = ""; public const string CalendarMonth = ""; @@ -412,7 +412,7 @@ public partial class Filled public const string Circle = ""; public const string CircleNotifications = ""; public const string Class = ""; - public const string CleanHands = ""; + public const string CleanHands = ""; public const string CleaningServices = ""; public const string Clear = ""; public const string ClearAll = ""; @@ -648,7 +648,7 @@ public partial class Filled public const string EditLocationAlt = ""; public const string EditNote = ""; public const string EditNotifications = ""; - public const string EditOff = ""; + public const string EditOff = ""; public const string EditRoad = ""; public const string Egg = ""; public const string EggAlt = ""; @@ -1020,10 +1020,10 @@ public partial class Filled public const string KeyOff = ""; public const string Keyboard = ""; public const string KeyboardAlt = ""; - public const string KeyboardArrowDown = ""; + public const string KeyboardArrowDown = ""; public const string KeyboardArrowLeft = ""; public const string KeyboardArrowRight = ""; - public const string KeyboardArrowUp = ""; + public const string KeyboardArrowUp = ""; public const string KeyboardBackspace = ""; public const string KeyboardCapslock = ""; public const string KeyboardCommandKey = ""; @@ -1405,7 +1405,7 @@ public partial class Filled public const string PhoneBluetoothSpeaker = ""; public const string PhoneCallback = ""; public const string PhoneDisabled = ""; - public const string PhoneEnabled = ""; + public const string PhoneEnabled = ""; public const string PhoneForwarded = ""; public const string PhoneIphone = ""; public const string PhoneLocked = ""; @@ -1524,7 +1524,7 @@ public partial class Filled public const string Receipt = ""; public const string ReceiptLong = ""; public const string RecentActors = ""; - public const string Recommend = ""; + public const string Recommend = ""; public const string RecordVoiceOver = ""; public const string Rectangle = ""; public const string Recycling = ""; @@ -1592,7 +1592,7 @@ public partial class Filled public const string Rowing = ""; public const string RssFeed = ""; public const string Rsvp = ""; - public const string Rtt = ""; + public const string Rtt = ""; public const string Rule = ""; public const string RuleFolder = ""; public const string RunCircle = ""; @@ -1861,8 +1861,8 @@ public partial class Filled public const string SwipeUp = ""; public const string SwipeUpAlt = ""; public const string SwipeVertical = ""; - public const string SwitchAccessShortcut = ""; - public const string SwitchAccessShortcutAdd = ""; + public const string SwitchAccessShortcut = ""; + public const string SwitchAccessShortcutAdd = ""; public const string SwitchAccount = ""; public const string SwitchCamera = ""; public const string SwitchLeft = ""; @@ -2139,4 +2139,4 @@ public partial class Filled } } } -} +} \ No newline at end of file diff --git a/src/MudBlazor/Icons/Material/Outlined.cs b/src/MudBlazor/Icons/Material/Outlined.cs index c0c5c209a9a7..3118bd64f9c5 100644 --- a/src/MudBlazor/Icons/Material/Outlined.cs +++ b/src/MudBlazor/Icons/Material/Outlined.cs @@ -1,6 +1,6 @@ /* * This file was auto-generated by Update-MudIcons.ps1 - * 2022/12/28_09:54:19 + * 2024/03/29_05:25:37 */ using System.Diagnostics.CodeAnalysis; @@ -95,7 +95,7 @@ public partial class Outlined public const string AddBox = ""; public const string AddBusiness = ""; public const string AddCard = ""; - public const string AddChart = ""; + public const string AddChart = ""; public const string AddCircle = ""; public const string AddCircleOutline = ""; public const string AddComment = ""; @@ -164,7 +164,7 @@ public partial class Outlined public const string AppBlocking = ""; public const string AppRegistration = ""; public const string AppSettingsAlt = ""; - public const string AppShortcut = ""; + public const string AppShortcut = ""; public const string Approval = ""; public const string Apps = ""; public const string AppsOutage = ""; @@ -201,7 +201,7 @@ public partial class Outlined public const string AssignmentTurnedIn = ""; public const string AssistWalker = ""; public const string Assistant = ""; - public const string AssistantDirection = ""; + public const string AssistantDirection = ""; public const string AssistantPhoto = ""; public const string AssuredWorkload = ""; public const string Atm = ""; @@ -335,7 +335,7 @@ public partial class Outlined public const string BusinessCenter = ""; public const string Cabin = ""; public const string Cable = ""; - public const string Cached = ""; + public const string Cached = ""; public const string Cake = ""; public const string Calculate = ""; public const string CalendarMonth = ""; @@ -412,7 +412,7 @@ public partial class Outlined public const string Circle = ""; public const string CircleNotifications = ""; public const string Class = ""; - public const string CleanHands = ""; + public const string CleanHands = ""; public const string CleaningServices = ""; public const string Clear = ""; public const string ClearAll = ""; @@ -648,7 +648,7 @@ public partial class Outlined public const string EditLocationAlt = ""; public const string EditNote = ""; public const string EditNotifications = ""; - public const string EditOff = ""; + public const string EditOff = ""; public const string EditRoad = ""; public const string Egg = ""; public const string EggAlt = ""; @@ -1020,10 +1020,10 @@ public partial class Outlined public const string KeyOff = ""; public const string Keyboard = ""; public const string KeyboardAlt = ""; - public const string KeyboardArrowDown = ""; + public const string KeyboardArrowDown = ""; public const string KeyboardArrowLeft = ""; public const string KeyboardArrowRight = ""; - public const string KeyboardArrowUp = ""; + public const string KeyboardArrowUp = ""; public const string KeyboardBackspace = ""; public const string KeyboardCapslock = ""; public const string KeyboardCommandKey = ""; @@ -1405,7 +1405,7 @@ public partial class Outlined public const string PhoneBluetoothSpeaker = ""; public const string PhoneCallback = ""; public const string PhoneDisabled = ""; - public const string PhoneEnabled = ""; + public const string PhoneEnabled = ""; public const string PhoneForwarded = ""; public const string PhoneIphone = ""; public const string PhoneLocked = ""; @@ -1524,7 +1524,7 @@ public partial class Outlined public const string Receipt = ""; public const string ReceiptLong = ""; public const string RecentActors = ""; - public const string Recommend = ""; + public const string Recommend = ""; public const string RecordVoiceOver = ""; public const string Rectangle = ""; public const string Recycling = ""; @@ -1592,7 +1592,7 @@ public partial class Outlined public const string Rowing = ""; public const string RssFeed = ""; public const string Rsvp = ""; - public const string Rtt = ""; + public const string Rtt = ""; public const string Rule = ""; public const string RuleFolder = ""; public const string RunCircle = ""; @@ -1861,8 +1861,8 @@ public partial class Outlined public const string SwipeUp = ""; public const string SwipeUpAlt = ""; public const string SwipeVertical = ""; - public const string SwitchAccessShortcut = ""; - public const string SwitchAccessShortcutAdd = ""; + public const string SwitchAccessShortcut = ""; + public const string SwitchAccessShortcutAdd = ""; public const string SwitchAccount = ""; public const string SwitchCamera = ""; public const string SwitchLeft = ""; @@ -1918,7 +1918,7 @@ public partial class Outlined public const string Theaters = ""; public const string Thermostat = ""; public const string ThermostatAuto = ""; - public const string ThumbDown = ""; + public const string ThumbDown = ""; public const string ThumbDownAlt = ""; public const string ThumbDownOffAlt = ""; public const string ThumbUp = ""; @@ -2139,4 +2139,4 @@ public partial class Outlined } } } -} +} \ No newline at end of file diff --git a/src/MudBlazor/Icons/Material/Rounded.cs b/src/MudBlazor/Icons/Material/Rounded.cs index d486d80f9a97..eee614bc7e0e 100644 --- a/src/MudBlazor/Icons/Material/Rounded.cs +++ b/src/MudBlazor/Icons/Material/Rounded.cs @@ -1,6 +1,6 @@ /* * This file was auto-generated by Update-MudIcons.ps1 - * 2022/12/28_09:54:19 + * 2024/03/29_05:25:37 */ using System.Diagnostics.CodeAnalysis; @@ -41,7 +41,7 @@ public partial class Rounded public const string _30fps = ""; public const string _30fpsSelect = ""; public const string _360 = ""; - public const string _3dRotation = ""; + public const string _3dRotation = ""; public const string _3gMobiledata = ""; public const string _3k = ""; public const string _3kPlus = ""; @@ -95,7 +95,7 @@ public partial class Rounded public const string AddBox = ""; public const string AddBusiness = ""; public const string AddCard = ""; - public const string AddChart = ""; + public const string AddChart = ""; public const string AddCircle = ""; public const string AddCircleOutline = ""; public const string AddComment = ""; @@ -164,7 +164,7 @@ public partial class Rounded public const string AppBlocking = ""; public const string AppRegistration = ""; public const string AppSettingsAlt = ""; - public const string AppShortcut = ""; + public const string AppShortcut = ""; public const string Approval = ""; public const string Apps = ""; public const string AppsOutage = ""; @@ -201,7 +201,7 @@ public partial class Rounded public const string AssignmentTurnedIn = ""; public const string AssistWalker = ""; public const string Assistant = ""; - public const string AssistantDirection = ""; + public const string AssistantDirection = ""; public const string AssistantPhoto = ""; public const string AssuredWorkload = ""; public const string Atm = ""; @@ -335,7 +335,7 @@ public partial class Rounded public const string BusinessCenter = ""; public const string Cabin = ""; public const string Cable = ""; - public const string Cached = ""; + public const string Cached = ""; public const string Cake = ""; public const string Calculate = ""; public const string CalendarMonth = ""; @@ -412,7 +412,7 @@ public partial class Rounded public const string Circle = ""; public const string CircleNotifications = ""; public const string Class = ""; - public const string CleanHands = ""; + public const string CleanHands = ""; public const string CleaningServices = ""; public const string Clear = ""; public const string ClearAll = ""; @@ -648,7 +648,7 @@ public partial class Rounded public const string EditLocationAlt = ""; public const string EditNote = ""; public const string EditNotifications = ""; - public const string EditOff = ""; + public const string EditOff = ""; public const string EditRoad = ""; public const string Egg = ""; public const string EggAlt = ""; @@ -1020,10 +1020,10 @@ public partial class Rounded public const string KeyOff = ""; public const string Keyboard = ""; public const string KeyboardAlt = ""; - public const string KeyboardArrowDown = ""; + public const string KeyboardArrowDown = ""; public const string KeyboardArrowLeft = ""; public const string KeyboardArrowRight = ""; - public const string KeyboardArrowUp = ""; + public const string KeyboardArrowUp = ""; public const string KeyboardBackspace = ""; public const string KeyboardCapslock = ""; public const string KeyboardCommandKey = ""; @@ -1405,7 +1405,7 @@ public partial class Rounded public const string PhoneBluetoothSpeaker = ""; public const string PhoneCallback = ""; public const string PhoneDisabled = ""; - public const string PhoneEnabled = ""; + public const string PhoneEnabled = ""; public const string PhoneForwarded = ""; public const string PhoneIphone = ""; public const string PhoneLocked = ""; @@ -1524,7 +1524,7 @@ public partial class Rounded public const string Receipt = ""; public const string ReceiptLong = ""; public const string RecentActors = ""; - public const string Recommend = ""; + public const string Recommend = ""; public const string RecordVoiceOver = ""; public const string Rectangle = ""; public const string Recycling = ""; @@ -1592,7 +1592,7 @@ public partial class Rounded public const string Rowing = ""; public const string RssFeed = ""; public const string Rsvp = ""; - public const string Rtt = ""; + public const string Rtt = ""; public const string Rule = ""; public const string RuleFolder = ""; public const string RunCircle = ""; @@ -1861,8 +1861,8 @@ public partial class Rounded public const string SwipeUp = ""; public const string SwipeUpAlt = ""; public const string SwipeVertical = ""; - public const string SwitchAccessShortcut = ""; - public const string SwitchAccessShortcutAdd = ""; + public const string SwitchAccessShortcut = ""; + public const string SwitchAccessShortcutAdd = ""; public const string SwitchAccount = ""; public const string SwitchCamera = ""; public const string SwitchLeft = ""; @@ -1918,10 +1918,10 @@ public partial class Rounded public const string Theaters = ""; public const string Thermostat = ""; public const string ThermostatAuto = ""; - public const string ThumbDown = ""; + public const string ThumbDown = ""; public const string ThumbDownAlt = ""; public const string ThumbDownOffAlt = ""; - public const string ThumbUp = ""; + public const string ThumbUp = ""; public const string ThumbUpAlt = ""; public const string ThumbUpOffAlt = ""; public const string ThumbsUpDown = ""; @@ -2139,4 +2139,4 @@ public partial class Rounded } } } -} +} \ No newline at end of file diff --git a/src/MudBlazor/Icons/Material/Sharp.cs b/src/MudBlazor/Icons/Material/Sharp.cs index 7a3932b136ad..ddbb9811e067 100644 --- a/src/MudBlazor/Icons/Material/Sharp.cs +++ b/src/MudBlazor/Icons/Material/Sharp.cs @@ -1,6 +1,6 @@ /* * This file was auto-generated by Update-MudIcons.ps1 - * 2022/12/28_09:54:19 + * 2024/03/29_05:25:37 */ using System.Diagnostics.CodeAnalysis; @@ -201,7 +201,7 @@ public partial class Sharp public const string AssignmentTurnedIn = ""; public const string AssistWalker = ""; public const string Assistant = ""; - public const string AssistantDirection = ""; + public const string AssistantDirection = ""; public const string AssistantPhoto = ""; public const string AssuredWorkload = ""; public const string Atm = ""; @@ -335,7 +335,7 @@ public partial class Sharp public const string BusinessCenter = ""; public const string Cabin = ""; public const string Cable = ""; - public const string Cached = ""; + public const string Cached = ""; public const string Cake = ""; public const string Calculate = ""; public const string CalendarMonth = ""; @@ -412,7 +412,7 @@ public partial class Sharp public const string Circle = ""; public const string CircleNotifications = ""; public const string Class = ""; - public const string CleanHands = ""; + public const string CleanHands = ""; public const string CleaningServices = ""; public const string Clear = ""; public const string ClearAll = ""; @@ -648,7 +648,7 @@ public partial class Sharp public const string EditLocationAlt = ""; public const string EditNote = ""; public const string EditNotifications = ""; - public const string EditOff = ""; + public const string EditOff = ""; public const string EditRoad = ""; public const string Egg = ""; public const string EggAlt = ""; @@ -1020,10 +1020,10 @@ public partial class Sharp public const string KeyOff = ""; public const string Keyboard = ""; public const string KeyboardAlt = ""; - public const string KeyboardArrowDown = ""; + public const string KeyboardArrowDown = ""; public const string KeyboardArrowLeft = ""; public const string KeyboardArrowRight = ""; - public const string KeyboardArrowUp = ""; + public const string KeyboardArrowUp = ""; public const string KeyboardBackspace = ""; public const string KeyboardCapslock = ""; public const string KeyboardCommandKey = ""; @@ -1405,7 +1405,7 @@ public partial class Sharp public const string PhoneBluetoothSpeaker = ""; public const string PhoneCallback = ""; public const string PhoneDisabled = ""; - public const string PhoneEnabled = ""; + public const string PhoneEnabled = ""; public const string PhoneForwarded = ""; public const string PhoneIphone = ""; public const string PhoneLocked = ""; @@ -1524,7 +1524,7 @@ public partial class Sharp public const string Receipt = ""; public const string ReceiptLong = ""; public const string RecentActors = ""; - public const string Recommend = ""; + public const string Recommend = ""; public const string RecordVoiceOver = ""; public const string Rectangle = ""; public const string Recycling = ""; @@ -1592,7 +1592,7 @@ public partial class Sharp public const string Rowing = ""; public const string RssFeed = ""; public const string Rsvp = ""; - public const string Rtt = ""; + public const string Rtt = ""; public const string Rule = ""; public const string RuleFolder = ""; public const string RunCircle = ""; @@ -1861,8 +1861,8 @@ public partial class Sharp public const string SwipeUp = ""; public const string SwipeUpAlt = ""; public const string SwipeVertical = ""; - public const string SwitchAccessShortcut = ""; - public const string SwitchAccessShortcutAdd = ""; + public const string SwitchAccessShortcut = ""; + public const string SwitchAccessShortcutAdd = ""; public const string SwitchAccount = ""; public const string SwitchCamera = ""; public const string SwitchLeft = ""; @@ -1918,10 +1918,10 @@ public partial class Sharp public const string Theaters = ""; public const string Thermostat = ""; public const string ThermostatAuto = ""; - public const string ThumbDown = ""; + public const string ThumbDown = ""; public const string ThumbDownAlt = ""; public const string ThumbDownOffAlt = ""; - public const string ThumbUp = ""; + public const string ThumbUp = ""; public const string ThumbUpAlt = ""; public const string ThumbUpOffAlt = ""; public const string ThumbsUpDown = ""; @@ -2139,4 +2139,4 @@ public partial class Sharp } } } -} +} \ No newline at end of file diff --git a/src/MudBlazor/Icons/Material/TwoTone.cs b/src/MudBlazor/Icons/Material/TwoTone.cs index 08ac3fa4d7ec..c6e51db3484a 100644 --- a/src/MudBlazor/Icons/Material/TwoTone.cs +++ b/src/MudBlazor/Icons/Material/TwoTone.cs @@ -1,6 +1,6 @@ /* * This file was auto-generated by Update-MudIcons.ps1 - * 2022/12/28_09:54:19 + * 2024/03/29_05:25:37 */ using System.Diagnostics.CodeAnalysis; @@ -95,7 +95,7 @@ public partial class TwoTone public const string AddBox = ""; public const string AddBusiness = ""; public const string AddCard = ""; - public const string AddChart = ""; + public const string AddChart = ""; public const string AddCircle = ""; public const string AddCircleOutline = ""; public const string AddComment = ""; @@ -164,7 +164,7 @@ public partial class TwoTone public const string AppBlocking = ""; public const string AppRegistration = ""; public const string AppSettingsAlt = ""; - public const string AppShortcut = ""; + public const string AppShortcut = ""; public const string Approval = ""; public const string Apps = ""; public const string AppsOutage = ""; @@ -201,7 +201,7 @@ public partial class TwoTone public const string AssignmentTurnedIn = ""; public const string AssistWalker = ""; public const string Assistant = ""; - public const string AssistantDirection = ""; + public const string AssistantDirection = ""; public const string AssistantPhoto = ""; public const string AssuredWorkload = ""; public const string Atm = ""; @@ -335,7 +335,7 @@ public partial class TwoTone public const string BusinessCenter = ""; public const string Cabin = ""; public const string Cable = ""; - public const string Cached = ""; + public const string Cached = ""; public const string Cake = ""; public const string Calculate = ""; public const string CalendarMonth = ""; @@ -412,7 +412,7 @@ public partial class TwoTone public const string Circle = ""; public const string CircleNotifications = ""; public const string Class = ""; - public const string CleanHands = ""; + public const string CleanHands = ""; public const string CleaningServices = ""; public const string Clear = ""; public const string ClearAll = ""; @@ -648,7 +648,7 @@ public partial class TwoTone public const string EditLocationAlt = ""; public const string EditNote = ""; public const string EditNotifications = ""; - public const string EditOff = ""; + public const string EditOff = ""; public const string EditRoad = ""; public const string Egg = ""; public const string EggAlt = ""; @@ -1020,10 +1020,10 @@ public partial class TwoTone public const string KeyOff = ""; public const string Keyboard = ""; public const string KeyboardAlt = ""; - public const string KeyboardArrowDown = ""; + public const string KeyboardArrowDown = ""; public const string KeyboardArrowLeft = ""; public const string KeyboardArrowRight = ""; - public const string KeyboardArrowUp = ""; + public const string KeyboardArrowUp = ""; public const string KeyboardBackspace = ""; public const string KeyboardCapslock = ""; public const string KeyboardCommandKey = ""; @@ -1405,7 +1405,7 @@ public partial class TwoTone public const string PhoneBluetoothSpeaker = ""; public const string PhoneCallback = ""; public const string PhoneDisabled = ""; - public const string PhoneEnabled = ""; + public const string PhoneEnabled = ""; public const string PhoneForwarded = ""; public const string PhoneIphone = ""; public const string PhoneLocked = ""; @@ -1524,7 +1524,7 @@ public partial class TwoTone public const string Receipt = ""; public const string ReceiptLong = ""; public const string RecentActors = ""; - public const string Recommend = ""; + public const string Recommend = ""; public const string RecordVoiceOver = ""; public const string Rectangle = ""; public const string Recycling = ""; @@ -1592,7 +1592,7 @@ public partial class TwoTone public const string Rowing = ""; public const string RssFeed = ""; public const string Rsvp = ""; - public const string Rtt = ""; + public const string Rtt = ""; public const string Rule = ""; public const string RuleFolder = ""; public const string RunCircle = ""; @@ -1861,8 +1861,8 @@ public partial class TwoTone public const string SwipeUp = ""; public const string SwipeUpAlt = ""; public const string SwipeVertical = ""; - public const string SwitchAccessShortcut = ""; - public const string SwitchAccessShortcutAdd = ""; + public const string SwitchAccessShortcut = ""; + public const string SwitchAccessShortcutAdd = ""; public const string SwitchAccount = ""; public const string SwitchCamera = ""; public const string SwitchLeft = ""; @@ -1918,7 +1918,7 @@ public partial class TwoTone public const string Theaters = ""; public const string Thermostat = ""; public const string ThermostatAuto = ""; - public const string ThumbDown = ""; + public const string ThumbDown = ""; public const string ThumbDownAlt = ""; public const string ThumbDownOffAlt = ""; public const string ThumbUp = ""; @@ -2139,4 +2139,4 @@ public partial class TwoTone } } } -} +} \ No newline at end of file diff --git a/src/MudBlazor/Icons/Obsolete/Filled.cs b/src/MudBlazor/Icons/Obsolete/Filled.cs deleted file mode 100644 index 134cba3ea6a9..000000000000 --- a/src/MudBlazor/Icons/Obsolete/Filled.cs +++ /dev/null @@ -1,2139 +0,0 @@ -/* - * This file was auto-generated by Update-MudIcons.ps1 - * 2022/12/28_09:54:19 - */ - -using System.Diagnostics.CodeAnalysis; - -namespace MudBlazor -{ - public partial class Icons - { - [ExcludeFromCodeCoverage] - public partial class Filled - { - public const string _10k = Material.Filled._10k; - public const string _10mp = Material.Filled._10mp; - public const string _11mp = Material.Filled._11mp; - public const string _123 = Material.Filled._123; - public const string _12mp = Material.Filled._12mp; - public const string _13mp = Material.Filled._13mp; - public const string _14mp = Material.Filled._14mp; - public const string _15mp = Material.Filled._15mp; - public const string _16mp = Material.Filled._16mp; - public const string _17mp = Material.Filled._17mp; - public const string _18UpRating = Material.Filled._18UpRating; - public const string _18mp = Material.Filled._18mp; - public const string _19mp = Material.Filled._19mp; - public const string _1k = Material.Filled._1k; - public const string _1kPlus = Material.Filled._1kPlus; - public const string _1xMobiledata = Material.Filled._1xMobiledata; - public const string _20mp = Material.Filled._20mp; - public const string _21mp = Material.Filled._21mp; - public const string _22mp = Material.Filled._22mp; - public const string _23mp = Material.Filled._23mp; - public const string _24mp = Material.Filled._24mp; - public const string _2k = Material.Filled._2k; - public const string _2kPlus = Material.Filled._2kPlus; - public const string _2mp = Material.Filled._2mp; - public const string _30fps = Material.Filled._30fps; - public const string _30fpsSelect = Material.Filled._30fpsSelect; - public const string _360 = Material.Filled._360; - public const string _3dRotation = Material.Filled._3dRotation; - public const string _3gMobiledata = Material.Filled._3gMobiledata; - public const string _3k = Material.Filled._3k; - public const string _3kPlus = Material.Filled._3kPlus; - public const string _3mp = Material.Filled._3mp; - public const string _3p = Material.Filled._3p; - public const string _4gMobiledata = Material.Filled._4gMobiledata; - public const string _4gPlusMobiledata = Material.Filled._4gPlusMobiledata; - public const string _4k = Material.Filled._4k; - public const string _4kPlus = Material.Filled._4kPlus; - public const string _4mp = Material.Filled._4mp; - public const string _5g = Material.Filled._5g; - public const string _5k = Material.Filled._5k; - public const string _5kPlus = Material.Filled._5kPlus; - public const string _5mp = Material.Filled._5mp; - public const string _60fps = Material.Filled._60fps; - public const string _60fpsSelect = Material.Filled._60fpsSelect; - public const string _6FtApart = Material.Filled._6FtApart; - public const string _6k = Material.Filled._6k; - public const string _6kPlus = Material.Filled._6kPlus; - public const string _6mp = Material.Filled._6mp; - public const string _7k = Material.Filled._7k; - public const string _7kPlus = Material.Filled._7kPlus; - public const string _7mp = Material.Filled._7mp; - public const string _8k = Material.Filled._8k; - public const string _8kPlus = Material.Filled._8kPlus; - public const string _8mp = Material.Filled._8mp; - public const string _9k = Material.Filled._9k; - public const string _9kPlus = Material.Filled._9kPlus; - public const string _9mp = Material.Filled._9mp; - public const string Abc = Material.Filled.Abc; - public const string AcUnit = Material.Filled.AcUnit; - public const string AccessAlarm = Material.Filled.AccessAlarm; - public const string AccessAlarms = Material.Filled.AccessAlarms; - public const string AccessTime = Material.Filled.AccessTime; - public const string AccessTimeFilled = Material.Filled.AccessTimeFilled; - public const string Accessibility = Material.Filled.Accessibility; - public const string AccessibilityNew = Material.Filled.AccessibilityNew; - public const string Accessible = Material.Filled.Accessible; - public const string AccessibleForward = Material.Filled.AccessibleForward; - public const string AccountBalance = Material.Filled.AccountBalance; - public const string AccountBalanceWallet = Material.Filled.AccountBalanceWallet; - public const string AccountBox = Material.Filled.AccountBox; - public const string AccountCircle = Material.Filled.AccountCircle; - public const string AccountTree = Material.Filled.AccountTree; - public const string AdUnits = Material.Filled.AdUnits; - public const string Adb = Material.Filled.Adb; - public const string Add = Material.Filled.Add; - public const string AddAPhoto = Material.Filled.AddAPhoto; - public const string AddAlarm = Material.Filled.AddAlarm; - public const string AddAlert = Material.Filled.AddAlert; - public const string AddBox = Material.Filled.AddBox; - public const string AddBusiness = Material.Filled.AddBusiness; - public const string AddCard = Material.Filled.AddCard; - public const string AddChart = Material.Filled.AddChart; - public const string AddCircle = Material.Filled.AddCircle; - public const string AddCircleOutline = Material.Filled.AddCircleOutline; - public const string AddComment = Material.Filled.AddComment; - public const string AddHome = Material.Filled.AddHome; - public const string AddHomeWork = Material.Filled.AddHomeWork; - public const string AddIcCall = Material.Filled.AddIcCall; - public const string AddLink = Material.Filled.AddLink; - public const string AddLocation = Material.Filled.AddLocation; - public const string AddLocationAlt = Material.Filled.AddLocationAlt; - public const string AddModerator = Material.Filled.AddModerator; - public const string AddPhotoAlternate = Material.Filled.AddPhotoAlternate; - public const string AddReaction = Material.Filled.AddReaction; - public const string AddRoad = Material.Filled.AddRoad; - public const string AddShoppingCart = Material.Filled.AddShoppingCart; - public const string AddTask = Material.Filled.AddTask; - public const string AddToDrive = Material.Filled.AddToDrive; - public const string AddToHomeScreen = Material.Filled.AddToHomeScreen; - public const string AddToPhotos = Material.Filled.AddToPhotos; - public const string AddToQueue = Material.Filled.AddToQueue; - public const string Addchart = Material.Filled.Addchart; - public const string AdfScanner = Material.Filled.AdfScanner; - public const string Adjust = Material.Filled.Adjust; - public const string AdminPanelSettings = Material.Filled.AdminPanelSettings; - public const string AdsClick = Material.Filled.AdsClick; - public const string Agriculture = Material.Filled.Agriculture; - public const string Air = Material.Filled.Air; - public const string AirlineSeatFlat = Material.Filled.AirlineSeatFlat; - public const string AirlineSeatFlatAngled = Material.Filled.AirlineSeatFlatAngled; - public const string AirlineSeatIndividualSuite = Material.Filled.AirlineSeatIndividualSuite; - public const string AirlineSeatLegroomExtra = Material.Filled.AirlineSeatLegroomExtra; - public const string AirlineSeatLegroomNormal = Material.Filled.AirlineSeatLegroomNormal; - public const string AirlineSeatLegroomReduced = Material.Filled.AirlineSeatLegroomReduced; - public const string AirlineSeatReclineExtra = Material.Filled.AirlineSeatReclineExtra; - public const string AirlineSeatReclineNormal = Material.Filled.AirlineSeatReclineNormal; - public const string AirlineStops = Material.Filled.AirlineStops; - public const string Airlines = Material.Filled.Airlines; - public const string AirplaneTicket = Material.Filled.AirplaneTicket; - public const string AirplanemodeActive = Material.Filled.AirplanemodeActive; - public const string AirplanemodeInactive = Material.Filled.AirplanemodeInactive; - public const string Airplay = Material.Filled.Airplay; - public const string AirportShuttle = Material.Filled.AirportShuttle; - public const string Alarm = Material.Filled.Alarm; - public const string AlarmAdd = Material.Filled.AlarmAdd; - public const string AlarmOff = Material.Filled.AlarmOff; - public const string AlarmOn = Material.Filled.AlarmOn; - public const string Album = Material.Filled.Album; - public const string AlignHorizontalCenter = Material.Filled.AlignHorizontalCenter; - public const string AlignHorizontalLeft = Material.Filled.AlignHorizontalLeft; - public const string AlignHorizontalRight = Material.Filled.AlignHorizontalRight; - public const string AlignVerticalBottom = Material.Filled.AlignVerticalBottom; - public const string AlignVerticalCenter = Material.Filled.AlignVerticalCenter; - public const string AlignVerticalTop = Material.Filled.AlignVerticalTop; - public const string AllInbox = Material.Filled.AllInbox; - public const string AllInclusive = Material.Filled.AllInclusive; - public const string AllOut = Material.Filled.AllOut; - public const string AltRoute = Material.Filled.AltRoute; - public const string AlternateEmail = Material.Filled.AlternateEmail; - public const string Analytics = Material.Filled.Analytics; - public const string Anchor = Material.Filled.Anchor; - public const string Android = Material.Filled.Android; - public const string Animation = Material.Filled.Animation; - public const string Announcement = Material.Filled.Announcement; - public const string Aod = Material.Filled.Aod; - public const string Apartment = Material.Filled.Apartment; - public const string Api = Material.Filled.Api; - public const string AppBlocking = Material.Filled.AppBlocking; - public const string AppRegistration = Material.Filled.AppRegistration; - public const string AppSettingsAlt = Material.Filled.AppSettingsAlt; - public const string AppShortcut = Material.Filled.AppShortcut; - public const string Approval = Material.Filled.Approval; - public const string Apps = Material.Filled.Apps; - public const string AppsOutage = Material.Filled.AppsOutage; - public const string Architecture = Material.Filled.Architecture; - public const string Archive = Material.Filled.Archive; - public const string AreaChart = Material.Filled.AreaChart; - public const string ArrowBack = Material.Filled.ArrowBack; - public const string ArrowBackIos = Material.Filled.ArrowBackIos; - public const string ArrowBackIosNew = Material.Filled.ArrowBackIosNew; - public const string ArrowCircleDown = Material.Filled.ArrowCircleDown; - public const string ArrowCircleLeft = Material.Filled.ArrowCircleLeft; - public const string ArrowCircleRight = Material.Filled.ArrowCircleRight; - public const string ArrowCircleUp = Material.Filled.ArrowCircleUp; - public const string ArrowDownward = Material.Filled.ArrowDownward; - public const string ArrowDropDown = Material.Filled.ArrowDropDown; - public const string ArrowDropDownCircle = Material.Filled.ArrowDropDownCircle; - public const string ArrowDropUp = Material.Filled.ArrowDropUp; - public const string ArrowForward = Material.Filled.ArrowForward; - public const string ArrowForwardIos = Material.Filled.ArrowForwardIos; - public const string ArrowLeft = Material.Filled.ArrowLeft; - public const string ArrowOutward = Material.Filled.ArrowOutward; - public const string ArrowRight = Material.Filled.ArrowRight; - public const string ArrowRightAlt = Material.Filled.ArrowRightAlt; - public const string ArrowUpward = Material.Filled.ArrowUpward; - public const string ArtTrack = Material.Filled.ArtTrack; - public const string Article = Material.Filled.Article; - public const string AspectRatio = Material.Filled.AspectRatio; - public const string Assessment = Material.Filled.Assessment; - public const string Assignment = Material.Filled.Assignment; - public const string AssignmentInd = Material.Filled.AssignmentInd; - public const string AssignmentLate = Material.Filled.AssignmentLate; - public const string AssignmentReturn = Material.Filled.AssignmentReturn; - public const string AssignmentReturned = Material.Filled.AssignmentReturned; - public const string AssignmentTurnedIn = Material.Filled.AssignmentTurnedIn; - public const string AssistWalker = Material.Filled.AssistWalker; - public const string Assistant = Material.Filled.Assistant; - public const string AssistantDirection = Material.Filled.AssistantDirection; - public const string AssistantPhoto = Material.Filled.AssistantPhoto; - public const string AssuredWorkload = Material.Filled.AssuredWorkload; - public const string Atm = Material.Filled.Atm; - public const string AttachEmail = Material.Filled.AttachEmail; - public const string AttachFile = Material.Filled.AttachFile; - public const string AttachMoney = Material.Filled.AttachMoney; - public const string Attachment = Material.Filled.Attachment; - public const string Attractions = Material.Filled.Attractions; - public const string Attribution = Material.Filled.Attribution; - public const string AudioFile = Material.Filled.AudioFile; - public const string Audiotrack = Material.Filled.Audiotrack; - public const string AutoAwesome = Material.Filled.AutoAwesome; - public const string AutoAwesomeMosaic = Material.Filled.AutoAwesomeMosaic; - public const string AutoAwesomeMotion = Material.Filled.AutoAwesomeMotion; - public const string AutoDelete = Material.Filled.AutoDelete; - public const string AutoFixHigh = Material.Filled.AutoFixHigh; - public const string AutoFixNormal = Material.Filled.AutoFixNormal; - public const string AutoFixOff = Material.Filled.AutoFixOff; - public const string AutoGraph = Material.Filled.AutoGraph; - public const string AutoMode = Material.Filled.AutoMode; - public const string AutoStories = Material.Filled.AutoStories; - public const string AutofpsSelect = Material.Filled.AutofpsSelect; - public const string Autorenew = Material.Filled.Autorenew; - public const string AvTimer = Material.Filled.AvTimer; - public const string BabyChangingStation = Material.Filled.BabyChangingStation; - public const string BackHand = Material.Filled.BackHand; - public const string Backpack = Material.Filled.Backpack; - public const string Backspace = Material.Filled.Backspace; - public const string Backup = Material.Filled.Backup; - public const string BackupTable = Material.Filled.BackupTable; - public const string Badge = Material.Filled.Badge; - public const string BakeryDining = Material.Filled.BakeryDining; - public const string Balance = Material.Filled.Balance; - public const string Balcony = Material.Filled.Balcony; - public const string Ballot = Material.Filled.Ballot; - public const string BarChart = Material.Filled.BarChart; - public const string BatchPrediction = Material.Filled.BatchPrediction; - public const string Bathroom = Material.Filled.Bathroom; - public const string Bathtub = Material.Filled.Bathtub; - public const string Battery0Bar = Material.Filled.Battery0Bar; - public const string Battery1Bar = Material.Filled.Battery1Bar; - public const string Battery2Bar = Material.Filled.Battery2Bar; - public const string Battery3Bar = Material.Filled.Battery3Bar; - public const string Battery4Bar = Material.Filled.Battery4Bar; - public const string Battery5Bar = Material.Filled.Battery5Bar; - public const string Battery6Bar = Material.Filled.Battery6Bar; - public const string BatteryAlert = Material.Filled.BatteryAlert; - public const string BatteryChargingFull = Material.Filled.BatteryChargingFull; - public const string BatteryFull = Material.Filled.BatteryFull; - public const string BatterySaver = Material.Filled.BatterySaver; - public const string BatteryStd = Material.Filled.BatteryStd; - public const string BatteryUnknown = Material.Filled.BatteryUnknown; - public const string BeachAccess = Material.Filled.BeachAccess; - public const string Bed = Material.Filled.Bed; - public const string BedroomBaby = Material.Filled.BedroomBaby; - public const string BedroomChild = Material.Filled.BedroomChild; - public const string BedroomParent = Material.Filled.BedroomParent; - public const string Bedtime = Material.Filled.Bedtime; - public const string BedtimeOff = Material.Filled.BedtimeOff; - public const string Beenhere = Material.Filled.Beenhere; - public const string Bento = Material.Filled.Bento; - public const string BikeScooter = Material.Filled.BikeScooter; - public const string Biotech = Material.Filled.Biotech; - public const string Blender = Material.Filled.Blender; - public const string Blind = Material.Filled.Blind; - public const string Blinds = Material.Filled.Blinds; - public const string BlindsClosed = Material.Filled.BlindsClosed; - public const string Block = Material.Filled.Block; - public const string Bloodtype = Material.Filled.Bloodtype; - public const string Bluetooth = Material.Filled.Bluetooth; - public const string BluetoothAudio = Material.Filled.BluetoothAudio; - public const string BluetoothConnected = Material.Filled.BluetoothConnected; - public const string BluetoothDisabled = Material.Filled.BluetoothDisabled; - public const string BluetoothDrive = Material.Filled.BluetoothDrive; - public const string BluetoothSearching = Material.Filled.BluetoothSearching; - public const string BlurCircular = Material.Filled.BlurCircular; - public const string BlurLinear = Material.Filled.BlurLinear; - public const string BlurOff = Material.Filled.BlurOff; - public const string BlurOn = Material.Filled.BlurOn; - public const string Bolt = Material.Filled.Bolt; - public const string Book = Material.Filled.Book; - public const string BookOnline = Material.Filled.BookOnline; - public const string Bookmark = Material.Filled.Bookmark; - public const string BookmarkAdd = Material.Filled.BookmarkAdd; - public const string BookmarkAdded = Material.Filled.BookmarkAdded; - public const string BookmarkBorder = Material.Filled.BookmarkBorder; - public const string BookmarkRemove = Material.Filled.BookmarkRemove; - public const string Bookmarks = Material.Filled.Bookmarks; - public const string BorderAll = Material.Filled.BorderAll; - public const string BorderBottom = Material.Filled.BorderBottom; - public const string BorderClear = Material.Filled.BorderClear; - public const string BorderColor = Material.Filled.BorderColor; - public const string BorderHorizontal = Material.Filled.BorderHorizontal; - public const string BorderInner = Material.Filled.BorderInner; - public const string BorderLeft = Material.Filled.BorderLeft; - public const string BorderOuter = Material.Filled.BorderOuter; - public const string BorderRight = Material.Filled.BorderRight; - public const string BorderStyle = Material.Filled.BorderStyle; - public const string BorderTop = Material.Filled.BorderTop; - public const string BorderVertical = Material.Filled.BorderVertical; - public const string Boy = Material.Filled.Boy; - public const string BrandingWatermark = Material.Filled.BrandingWatermark; - public const string BreakfastDining = Material.Filled.BreakfastDining; - public const string Brightness1 = Material.Filled.Brightness1; - public const string Brightness2 = Material.Filled.Brightness2; - public const string Brightness3 = Material.Filled.Brightness3; - public const string Brightness4 = Material.Filled.Brightness4; - public const string Brightness5 = Material.Filled.Brightness5; - public const string Brightness6 = Material.Filled.Brightness6; - public const string Brightness7 = Material.Filled.Brightness7; - public const string BrightnessAuto = Material.Filled.BrightnessAuto; - public const string BrightnessHigh = Material.Filled.BrightnessHigh; - public const string BrightnessLow = Material.Filled.BrightnessLow; - public const string BrightnessMedium = Material.Filled.BrightnessMedium; - public const string BroadcastOnHome = Material.Filled.BroadcastOnHome; - public const string BroadcastOnPersonal = Material.Filled.BroadcastOnPersonal; - public const string BrokenImage = Material.Filled.BrokenImage; - public const string BrowseGallery = Material.Filled.BrowseGallery; - public const string BrowserNotSupported = Material.Filled.BrowserNotSupported; - public const string BrowserUpdated = Material.Filled.BrowserUpdated; - public const string BrunchDining = Material.Filled.BrunchDining; - public const string Brush = Material.Filled.Brush; - public const string BubbleChart = Material.Filled.BubbleChart; - public const string BugReport = Material.Filled.BugReport; - public const string Build = Material.Filled.Build; - public const string BuildCircle = Material.Filled.BuildCircle; - public const string Bungalow = Material.Filled.Bungalow; - public const string BurstMode = Material.Filled.BurstMode; - public const string BusAlert = Material.Filled.BusAlert; - public const string Business = Material.Filled.Business; - public const string BusinessCenter = Material.Filled.BusinessCenter; - public const string Cabin = Material.Filled.Cabin; - public const string Cable = Material.Filled.Cable; - public const string Cached = Material.Filled.Cached; - public const string Cake = Material.Filled.Cake; - public const string Calculate = Material.Filled.Calculate; - public const string CalendarMonth = Material.Filled.CalendarMonth; - public const string CalendarToday = Material.Filled.CalendarToday; - public const string CalendarViewDay = Material.Filled.CalendarViewDay; - public const string CalendarViewMonth = Material.Filled.CalendarViewMonth; - public const string CalendarViewWeek = Material.Filled.CalendarViewWeek; - public const string Call = Material.Filled.Call; - public const string CallEnd = Material.Filled.CallEnd; - public const string CallMade = Material.Filled.CallMade; - public const string CallMerge = Material.Filled.CallMerge; - public const string CallMissed = Material.Filled.CallMissed; - public const string CallMissedOutgoing = Material.Filled.CallMissedOutgoing; - public const string CallReceived = Material.Filled.CallReceived; - public const string CallSplit = Material.Filled.CallSplit; - public const string CallToAction = Material.Filled.CallToAction; - public const string Camera = Material.Filled.Camera; - public const string CameraAlt = Material.Filled.CameraAlt; - public const string CameraEnhance = Material.Filled.CameraEnhance; - public const string CameraFront = Material.Filled.CameraFront; - public const string CameraIndoor = Material.Filled.CameraIndoor; - public const string CameraOutdoor = Material.Filled.CameraOutdoor; - public const string CameraRear = Material.Filled.CameraRear; - public const string CameraRoll = Material.Filled.CameraRoll; - public const string Cameraswitch = Material.Filled.Cameraswitch; - public const string Campaign = Material.Filled.Campaign; - public const string Cancel = Material.Filled.Cancel; - public const string CancelPresentation = Material.Filled.CancelPresentation; - public const string CancelScheduleSend = Material.Filled.CancelScheduleSend; - public const string CandlestickChart = Material.Filled.CandlestickChart; - public const string CarCrash = Material.Filled.CarCrash; - public const string CarRental = Material.Filled.CarRental; - public const string CarRepair = Material.Filled.CarRepair; - public const string CardGiftcard = Material.Filled.CardGiftcard; - public const string CardMembership = Material.Filled.CardMembership; - public const string CardTravel = Material.Filled.CardTravel; - public const string Carpenter = Material.Filled.Carpenter; - public const string Cases = Material.Filled.Cases; - public const string Casino = Material.Filled.Casino; - public const string Cast = Material.Filled.Cast; - public const string CastConnected = Material.Filled.CastConnected; - public const string CastForEducation = Material.Filled.CastForEducation; - public const string Castle = Material.Filled.Castle; - public const string CatchingPokemon = Material.Filled.CatchingPokemon; - public const string Category = Material.Filled.Category; - public const string Celebration = Material.Filled.Celebration; - public const string CellTower = Material.Filled.CellTower; - public const string CellWifi = Material.Filled.CellWifi; - public const string CenterFocusStrong = Material.Filled.CenterFocusStrong; - public const string CenterFocusWeak = Material.Filled.CenterFocusWeak; - public const string Chair = Material.Filled.Chair; - public const string ChairAlt = Material.Filled.ChairAlt; - public const string Chalet = Material.Filled.Chalet; - public const string ChangeCircle = Material.Filled.ChangeCircle; - public const string ChangeHistory = Material.Filled.ChangeHistory; - public const string ChargingStation = Material.Filled.ChargingStation; - public const string Chat = Material.Filled.Chat; - public const string ChatBubble = Material.Filled.ChatBubble; - public const string ChatBubbleOutline = Material.Filled.ChatBubbleOutline; - public const string Check = Material.Filled.Check; - public const string CheckBox = Material.Filled.CheckBox; - public const string CheckBoxOutlineBlank = Material.Filled.CheckBoxOutlineBlank; - public const string CheckCircle = Material.Filled.CheckCircle; - public const string CheckCircleOutline = Material.Filled.CheckCircleOutline; - public const string Checklist = Material.Filled.Checklist; - public const string ChecklistRtl = Material.Filled.ChecklistRtl; - public const string Checkroom = Material.Filled.Checkroom; - public const string ChevronLeft = Material.Filled.ChevronLeft; - public const string ChevronRight = Material.Filled.ChevronRight; - public const string ChildCare = Material.Filled.ChildCare; - public const string ChildFriendly = Material.Filled.ChildFriendly; - public const string ChromeReaderMode = Material.Filled.ChromeReaderMode; - public const string Church = Material.Filled.Church; - public const string Circle = Material.Filled.Circle; - public const string CircleNotifications = Material.Filled.CircleNotifications; - public const string Class = Material.Filled.Class; - public const string CleanHands = Material.Filled.CleanHands; - public const string CleaningServices = Material.Filled.CleaningServices; - public const string Clear = Material.Filled.Clear; - public const string ClearAll = Material.Filled.ClearAll; - public const string Close = Material.Filled.Close; - public const string CloseFullscreen = Material.Filled.CloseFullscreen; - public const string ClosedCaption = Material.Filled.ClosedCaption; - public const string ClosedCaptionDisabled = Material.Filled.ClosedCaptionDisabled; - public const string ClosedCaptionOff = Material.Filled.ClosedCaptionOff; - public const string Cloud = Material.Filled.Cloud; - public const string CloudCircle = Material.Filled.CloudCircle; - public const string CloudDone = Material.Filled.CloudDone; - public const string CloudDownload = Material.Filled.CloudDownload; - public const string CloudOff = Material.Filled.CloudOff; - public const string CloudQueue = Material.Filled.CloudQueue; - public const string CloudSync = Material.Filled.CloudSync; - public const string CloudUpload = Material.Filled.CloudUpload; - public const string Co2 = Material.Filled.Co2; - public const string CoPresent = Material.Filled.CoPresent; - public const string Code = Material.Filled.Code; - public const string CodeOff = Material.Filled.CodeOff; - public const string Coffee = Material.Filled.Coffee; - public const string CoffeeMaker = Material.Filled.CoffeeMaker; - public const string Collections = Material.Filled.Collections; - public const string CollectionsBookmark = Material.Filled.CollectionsBookmark; - public const string ColorLens = Material.Filled.ColorLens; - public const string Colorize = Material.Filled.Colorize; - public const string Comment = Material.Filled.Comment; - public const string CommentBank = Material.Filled.CommentBank; - public const string CommentsDisabled = Material.Filled.CommentsDisabled; - public const string Commit = Material.Filled.Commit; - public const string Commute = Material.Filled.Commute; - public const string Compare = Material.Filled.Compare; - public const string CompareArrows = Material.Filled.CompareArrows; - public const string CompassCalibration = Material.Filled.CompassCalibration; - public const string Compost = Material.Filled.Compost; - public const string Compress = Material.Filled.Compress; - public const string Computer = Material.Filled.Computer; - public const string ConfirmationNumber = Material.Filled.ConfirmationNumber; - public const string ConnectWithoutContact = Material.Filled.ConnectWithoutContact; - public const string ConnectedTv = Material.Filled.ConnectedTv; - public const string ConnectingAirports = Material.Filled.ConnectingAirports; - public const string Construction = Material.Filled.Construction; - public const string ContactEmergency = Material.Filled.ContactEmergency; - public const string ContactMail = Material.Filled.ContactMail; - public const string ContactPage = Material.Filled.ContactPage; - public const string ContactPhone = Material.Filled.ContactPhone; - public const string ContactSupport = Material.Filled.ContactSupport; - public const string Contactless = Material.Filled.Contactless; - public const string Contacts = Material.Filled.Contacts; - public const string ContentCopy = Material.Filled.ContentCopy; - public const string ContentCut = Material.Filled.ContentCut; - public const string ContentPaste = Material.Filled.ContentPaste; - public const string ContentPasteGo = Material.Filled.ContentPasteGo; - public const string ContentPasteOff = Material.Filled.ContentPasteOff; - public const string ContentPasteSearch = Material.Filled.ContentPasteSearch; - public const string Contrast = Material.Filled.Contrast; - public const string ControlCamera = Material.Filled.ControlCamera; - public const string ControlPoint = Material.Filled.ControlPoint; - public const string ControlPointDuplicate = Material.Filled.ControlPointDuplicate; - public const string Cookie = Material.Filled.Cookie; - public const string CopyAll = Material.Filled.CopyAll; - public const string Copyright = Material.Filled.Copyright; - public const string Coronavirus = Material.Filled.Coronavirus; - public const string CorporateFare = Material.Filled.CorporateFare; - public const string Cottage = Material.Filled.Cottage; - public const string Countertops = Material.Filled.Countertops; - public const string Create = Material.Filled.Create; - public const string CreateNewFolder = Material.Filled.CreateNewFolder; - public const string CreditCard = Material.Filled.CreditCard; - public const string CreditCardOff = Material.Filled.CreditCardOff; - public const string CreditScore = Material.Filled.CreditScore; - public const string Crib = Material.Filled.Crib; - public const string CrisisAlert = Material.Filled.CrisisAlert; - public const string Crop = Material.Filled.Crop; - public const string Crop169 = Material.Filled.Crop169; - public const string Crop32 = Material.Filled.Crop32; - public const string Crop54 = Material.Filled.Crop54; - public const string Crop75 = Material.Filled.Crop75; - public const string CropDin = Material.Filled.CropDin; - public const string CropFree = Material.Filled.CropFree; - public const string CropLandscape = Material.Filled.CropLandscape; - public const string CropOriginal = Material.Filled.CropOriginal; - public const string CropPortrait = Material.Filled.CropPortrait; - public const string CropRotate = Material.Filled.CropRotate; - public const string CropSquare = Material.Filled.CropSquare; - public const string CrueltyFree = Material.Filled.CrueltyFree; - public const string Css = Material.Filled.Css; - public const string CurrencyBitcoin = Material.Filled.CurrencyBitcoin; - public const string CurrencyExchange = Material.Filled.CurrencyExchange; - public const string CurrencyFranc = Material.Filled.CurrencyFranc; - public const string CurrencyLira = Material.Filled.CurrencyLira; - public const string CurrencyPound = Material.Filled.CurrencyPound; - public const string CurrencyRuble = Material.Filled.CurrencyRuble; - public const string CurrencyRupee = Material.Filled.CurrencyRupee; - public const string CurrencyYen = Material.Filled.CurrencyYen; - public const string CurrencyYuan = Material.Filled.CurrencyYuan; - public const string Curtains = Material.Filled.Curtains; - public const string CurtainsClosed = Material.Filled.CurtainsClosed; - public const string Cyclone = Material.Filled.Cyclone; - public const string Dangerous = Material.Filled.Dangerous; - public const string DarkMode = Material.Filled.DarkMode; - public const string Dashboard = Material.Filled.Dashboard; - public const string DashboardCustomize = Material.Filled.DashboardCustomize; - public const string DataArray = Material.Filled.DataArray; - public const string DataExploration = Material.Filled.DataExploration; - public const string DataObject = Material.Filled.DataObject; - public const string DataSaverOff = Material.Filled.DataSaverOff; - public const string DataSaverOn = Material.Filled.DataSaverOn; - public const string DataThresholding = Material.Filled.DataThresholding; - public const string DataUsage = Material.Filled.DataUsage; - public const string Dataset = Material.Filled.Dataset; - public const string DatasetLinked = Material.Filled.DatasetLinked; - public const string DateRange = Material.Filled.DateRange; - public const string Deblur = Material.Filled.Deblur; - public const string Deck = Material.Filled.Deck; - public const string Dehaze = Material.Filled.Dehaze; - public const string Delete = Material.Filled.Delete; - public const string DeleteForever = Material.Filled.DeleteForever; - public const string DeleteOutline = Material.Filled.DeleteOutline; - public const string DeleteSweep = Material.Filled.DeleteSweep; - public const string DeliveryDining = Material.Filled.DeliveryDining; - public const string DensityLarge = Material.Filled.DensityLarge; - public const string DensityMedium = Material.Filled.DensityMedium; - public const string DensitySmall = Material.Filled.DensitySmall; - public const string DepartureBoard = Material.Filled.DepartureBoard; - public const string Description = Material.Filled.Description; - public const string Deselect = Material.Filled.Deselect; - public const string DesignServices = Material.Filled.DesignServices; - public const string Desk = Material.Filled.Desk; - public const string DesktopAccessDisabled = Material.Filled.DesktopAccessDisabled; - public const string DesktopMac = Material.Filled.DesktopMac; - public const string DesktopWindows = Material.Filled.DesktopWindows; - public const string Details = Material.Filled.Details; - public const string DeveloperBoard = Material.Filled.DeveloperBoard; - public const string DeveloperBoardOff = Material.Filled.DeveloperBoardOff; - public const string DeveloperMode = Material.Filled.DeveloperMode; - public const string DeviceHub = Material.Filled.DeviceHub; - public const string DeviceThermostat = Material.Filled.DeviceThermostat; - public const string DeviceUnknown = Material.Filled.DeviceUnknown; - public const string Devices = Material.Filled.Devices; - public const string DevicesFold = Material.Filled.DevicesFold; - public const string DevicesOther = Material.Filled.DevicesOther; - public const string DialerSip = Material.Filled.DialerSip; - public const string Dialpad = Material.Filled.Dialpad; - public const string Diamond = Material.Filled.Diamond; - public const string Difference = Material.Filled.Difference; - public const string Dining = Material.Filled.Dining; - public const string DinnerDining = Material.Filled.DinnerDining; - public const string Directions = Material.Filled.Directions; - public const string DirectionsBike = Material.Filled.DirectionsBike; - public const string DirectionsBoat = Material.Filled.DirectionsBoat; - public const string DirectionsBoatFilled = Material.Filled.DirectionsBoatFilled; - public const string DirectionsBus = Material.Filled.DirectionsBus; - public const string DirectionsBusFilled = Material.Filled.DirectionsBusFilled; - public const string DirectionsCar = Material.Filled.DirectionsCar; - public const string DirectionsCarFilled = Material.Filled.DirectionsCarFilled; - public const string DirectionsOff = Material.Filled.DirectionsOff; - public const string DirectionsRailway = Material.Filled.DirectionsRailway; - public const string DirectionsRailwayFilled = Material.Filled.DirectionsRailwayFilled; - public const string DirectionsRun = Material.Filled.DirectionsRun; - public const string DirectionsSubway = Material.Filled.DirectionsSubway; - public const string DirectionsSubwayFilled = Material.Filled.DirectionsSubwayFilled; - public const string DirectionsTransit = Material.Filled.DirectionsTransit; - public const string DirectionsTransitFilled = Material.Filled.DirectionsTransitFilled; - public const string DirectionsWalk = Material.Filled.DirectionsWalk; - public const string DirtyLens = Material.Filled.DirtyLens; - public const string DisabledByDefault = Material.Filled.DisabledByDefault; - public const string DisabledVisible = Material.Filled.DisabledVisible; - public const string DiscFull = Material.Filled.DiscFull; - public const string Discount = Material.Filled.Discount; - public const string DisplaySettings = Material.Filled.DisplaySettings; - public const string Diversity1 = Material.Filled.Diversity1; - public const string Diversity2 = Material.Filled.Diversity2; - public const string Diversity3 = Material.Filled.Diversity3; - public const string Dns = Material.Filled.Dns; - public const string DoDisturb = Material.Filled.DoDisturb; - public const string DoDisturbAlt = Material.Filled.DoDisturbAlt; - public const string DoDisturbOff = Material.Filled.DoDisturbOff; - public const string DoDisturbOn = Material.Filled.DoDisturbOn; - public const string DoNotDisturb = Material.Filled.DoNotDisturb; - public const string DoNotDisturbAlt = Material.Filled.DoNotDisturbAlt; - public const string DoNotDisturbOff = Material.Filled.DoNotDisturbOff; - public const string DoNotDisturbOn = Material.Filled.DoNotDisturbOn; - public const string DoNotDisturbOnTotalSilence = Material.Filled.DoNotDisturbOnTotalSilence; - public const string DoNotStep = Material.Filled.DoNotStep; - public const string DoNotTouch = Material.Filled.DoNotTouch; - public const string Dock = Material.Filled.Dock; - public const string DocumentScanner = Material.Filled.DocumentScanner; - public const string Domain = Material.Filled.Domain; - public const string DomainAdd = Material.Filled.DomainAdd; - public const string DomainDisabled = Material.Filled.DomainDisabled; - public const string DomainVerification = Material.Filled.DomainVerification; - public const string Done = Material.Filled.Done; - public const string DoneAll = Material.Filled.DoneAll; - public const string DoneOutline = Material.Filled.DoneOutline; - public const string DonutLarge = Material.Filled.DonutLarge; - public const string DonutSmall = Material.Filled.DonutSmall; - public const string DoorBack = Material.Filled.DoorBack; - public const string DoorFront = Material.Filled.DoorFront; - public const string DoorSliding = Material.Filled.DoorSliding; - public const string Doorbell = Material.Filled.Doorbell; - public const string DoubleArrow = Material.Filled.DoubleArrow; - public const string DownhillSkiing = Material.Filled.DownhillSkiing; - public const string Download = Material.Filled.Download; - public const string DownloadDone = Material.Filled.DownloadDone; - public const string DownloadForOffline = Material.Filled.DownloadForOffline; - public const string Downloading = Material.Filled.Downloading; - public const string Drafts = Material.Filled.Drafts; - public const string DragHandle = Material.Filled.DragHandle; - public const string DragIndicator = Material.Filled.DragIndicator; - public const string Draw = Material.Filled.Draw; - public const string DriveEta = Material.Filled.DriveEta; - public const string DriveFileMove = Material.Filled.DriveFileMove; - public const string DriveFileMoveRtl = Material.Filled.DriveFileMoveRtl; - public const string DriveFileRenameOutline = Material.Filled.DriveFileRenameOutline; - public const string DriveFolderUpload = Material.Filled.DriveFolderUpload; - public const string Dry = Material.Filled.Dry; - public const string DryCleaning = Material.Filled.DryCleaning; - public const string Duo = Material.Filled.Duo; - public const string Dvr = Material.Filled.Dvr; - public const string DynamicFeed = Material.Filled.DynamicFeed; - public const string DynamicForm = Material.Filled.DynamicForm; - public const string EMobiledata = Material.Filled.EMobiledata; - public const string Earbuds = Material.Filled.Earbuds; - public const string EarbudsBattery = Material.Filled.EarbudsBattery; - public const string East = Material.Filled.East; - public const string EdgesensorHigh = Material.Filled.EdgesensorHigh; - public const string EdgesensorLow = Material.Filled.EdgesensorLow; - public const string Edit = Material.Filled.Edit; - public const string EditAttributes = Material.Filled.EditAttributes; - public const string EditCalendar = Material.Filled.EditCalendar; - public const string EditLocation = Material.Filled.EditLocation; - public const string EditLocationAlt = Material.Filled.EditLocationAlt; - public const string EditNote = Material.Filled.EditNote; - public const string EditNotifications = Material.Filled.EditNotifications; - public const string EditOff = Material.Filled.EditOff; - public const string EditRoad = Material.Filled.EditRoad; - public const string Egg = Material.Filled.Egg; - public const string EggAlt = Material.Filled.EggAlt; - public const string Eject = Material.Filled.Eject; - public const string Elderly = Material.Filled.Elderly; - public const string ElderlyWoman = Material.Filled.ElderlyWoman; - public const string ElectricBike = Material.Filled.ElectricBike; - public const string ElectricBolt = Material.Filled.ElectricBolt; - public const string ElectricCar = Material.Filled.ElectricCar; - public const string ElectricMeter = Material.Filled.ElectricMeter; - public const string ElectricMoped = Material.Filled.ElectricMoped; - public const string ElectricRickshaw = Material.Filled.ElectricRickshaw; - public const string ElectricScooter = Material.Filled.ElectricScooter; - public const string ElectricalServices = Material.Filled.ElectricalServices; - public const string Elevator = Material.Filled.Elevator; - public const string Email = Material.Filled.Email; - public const string Emergency = Material.Filled.Emergency; - public const string EmergencyRecording = Material.Filled.EmergencyRecording; - public const string EmergencyShare = Material.Filled.EmergencyShare; - public const string EmojiEmotions = Material.Filled.EmojiEmotions; - public const string EmojiEvents = Material.Filled.EmojiEvents; - public const string EmojiFoodBeverage = Material.Filled.EmojiFoodBeverage; - public const string EmojiNature = Material.Filled.EmojiNature; - public const string EmojiObjects = Material.Filled.EmojiObjects; - public const string EmojiPeople = Material.Filled.EmojiPeople; - public const string EmojiSymbols = Material.Filled.EmojiSymbols; - public const string EmojiTransportation = Material.Filled.EmojiTransportation; - public const string EnergySavingsLeaf = Material.Filled.EnergySavingsLeaf; - public const string Engineering = Material.Filled.Engineering; - public const string EnhancedEncryption = Material.Filled.EnhancedEncryption; - public const string Equalizer = Material.Filled.Equalizer; - public const string Error = Material.Filled.Error; - public const string ErrorOutline = Material.Filled.ErrorOutline; - public const string Escalator = Material.Filled.Escalator; - public const string EscalatorWarning = Material.Filled.EscalatorWarning; - public const string Euro = Material.Filled.Euro; - public const string EuroSymbol = Material.Filled.EuroSymbol; - public const string EvStation = Material.Filled.EvStation; - public const string Event = Material.Filled.Event; - public const string EventAvailable = Material.Filled.EventAvailable; - public const string EventBusy = Material.Filled.EventBusy; - public const string EventNote = Material.Filled.EventNote; - public const string EventRepeat = Material.Filled.EventRepeat; - public const string EventSeat = Material.Filled.EventSeat; - public const string ExitToApp = Material.Filled.ExitToApp; - public const string Expand = Material.Filled.Expand; - public const string ExpandCircleDown = Material.Filled.ExpandCircleDown; - public const string ExpandLess = Material.Filled.ExpandLess; - public const string ExpandMore = Material.Filled.ExpandMore; - public const string Explicit = Material.Filled.Explicit; - public const string Explore = Material.Filled.Explore; - public const string ExploreOff = Material.Filled.ExploreOff; - public const string Exposure = Material.Filled.Exposure; - public const string ExposureNeg1 = Material.Filled.ExposureNeg1; - public const string ExposureNeg2 = Material.Filled.ExposureNeg2; - public const string ExposurePlus1 = Material.Filled.ExposurePlus1; - public const string ExposurePlus2 = Material.Filled.ExposurePlus2; - public const string ExposureZero = Material.Filled.ExposureZero; - public const string Extension = Material.Filled.Extension; - public const string ExtensionOff = Material.Filled.ExtensionOff; - public const string Face = Material.Filled.Face; - public const string Face2 = Material.Filled.Face2; - public const string Face3 = Material.Filled.Face3; - public const string Face4 = Material.Filled.Face4; - public const string Face5 = Material.Filled.Face5; - public const string Face6 = Material.Filled.Face6; - public const string FaceRetouchingNatural = Material.Filled.FaceRetouchingNatural; - public const string FaceRetouchingOff = Material.Filled.FaceRetouchingOff; - public const string FactCheck = Material.Filled.FactCheck; - public const string Factory = Material.Filled.Factory; - public const string FamilyRestroom = Material.Filled.FamilyRestroom; - public const string FastForward = Material.Filled.FastForward; - public const string FastRewind = Material.Filled.FastRewind; - public const string Fastfood = Material.Filled.Fastfood; - public const string Favorite = Material.Filled.Favorite; - public const string FavoriteBorder = Material.Filled.FavoriteBorder; - public const string Fax = Material.Filled.Fax; - public const string FeaturedPlayList = Material.Filled.FeaturedPlayList; - public const string FeaturedVideo = Material.Filled.FeaturedVideo; - public const string Feed = Material.Filled.Feed; - public const string Feedback = Material.Filled.Feedback; - public const string Female = Material.Filled.Female; - public const string Fence = Material.Filled.Fence; - public const string Festival = Material.Filled.Festival; - public const string FiberDvr = Material.Filled.FiberDvr; - public const string FiberManualRecord = Material.Filled.FiberManualRecord; - public const string FiberNew = Material.Filled.FiberNew; - public const string FiberPin = Material.Filled.FiberPin; - public const string FiberSmartRecord = Material.Filled.FiberSmartRecord; - public const string FileCopy = Material.Filled.FileCopy; - public const string FileDownload = Material.Filled.FileDownload; - public const string FileDownloadDone = Material.Filled.FileDownloadDone; - public const string FileDownloadOff = Material.Filled.FileDownloadOff; - public const string FileOpen = Material.Filled.FileOpen; - public const string FilePresent = Material.Filled.FilePresent; - public const string FileUpload = Material.Filled.FileUpload; - public const string Filter = Material.Filled.Filter; - public const string Filter1 = Material.Filled.Filter1; - public const string Filter2 = Material.Filled.Filter2; - public const string Filter3 = Material.Filled.Filter3; - public const string Filter4 = Material.Filled.Filter4; - public const string Filter5 = Material.Filled.Filter5; - public const string Filter6 = Material.Filled.Filter6; - public const string Filter7 = Material.Filled.Filter7; - public const string Filter8 = Material.Filled.Filter8; - public const string Filter9 = Material.Filled.Filter9; - public const string Filter9Plus = Material.Filled.Filter9Plus; - public const string FilterAlt = Material.Filled.FilterAlt; - public const string FilterAltOff = Material.Filled.FilterAltOff; - public const string FilterBAndW = Material.Filled.FilterBAndW; - public const string FilterCenterFocus = Material.Filled.FilterCenterFocus; - public const string FilterDrama = Material.Filled.FilterDrama; - public const string FilterFrames = Material.Filled.FilterFrames; - public const string FilterHdr = Material.Filled.FilterHdr; - public const string FilterList = Material.Filled.FilterList; - public const string FilterListOff = Material.Filled.FilterListOff; - public const string FilterNone = Material.Filled.FilterNone; - public const string FilterTiltShift = Material.Filled.FilterTiltShift; - public const string FilterVintage = Material.Filled.FilterVintage; - public const string FindInPage = Material.Filled.FindInPage; - public const string FindReplace = Material.Filled.FindReplace; - public const string Fingerprint = Material.Filled.Fingerprint; - public const string FireExtinguisher = Material.Filled.FireExtinguisher; - public const string FireHydrantAlt = Material.Filled.FireHydrantAlt; - public const string FireTruck = Material.Filled.FireTruck; - public const string Fireplace = Material.Filled.Fireplace; - public const string FirstPage = Material.Filled.FirstPage; - public const string FitScreen = Material.Filled.FitScreen; - public const string Fitbit = Material.Filled.Fitbit; - public const string FitnessCenter = Material.Filled.FitnessCenter; - public const string Flag = Material.Filled.Flag; - public const string FlagCircle = Material.Filled.FlagCircle; - public const string Flaky = Material.Filled.Flaky; - public const string Flare = Material.Filled.Flare; - public const string FlashAuto = Material.Filled.FlashAuto; - public const string FlashOff = Material.Filled.FlashOff; - public const string FlashOn = Material.Filled.FlashOn; - public const string FlashlightOff = Material.Filled.FlashlightOff; - public const string FlashlightOn = Material.Filled.FlashlightOn; - public const string Flatware = Material.Filled.Flatware; - public const string Flight = Material.Filled.Flight; - public const string FlightClass = Material.Filled.FlightClass; - public const string FlightLand = Material.Filled.FlightLand; - public const string FlightTakeoff = Material.Filled.FlightTakeoff; - public const string Flip = Material.Filled.Flip; - public const string FlipCameraAndroid = Material.Filled.FlipCameraAndroid; - public const string FlipCameraIos = Material.Filled.FlipCameraIos; - public const string FlipToBack = Material.Filled.FlipToBack; - public const string FlipToFront = Material.Filled.FlipToFront; - public const string Flood = Material.Filled.Flood; - public const string Fluorescent = Material.Filled.Fluorescent; - public const string FlutterDash = Material.Filled.FlutterDash; - public const string FmdBad = Material.Filled.FmdBad; - public const string FmdGood = Material.Filled.FmdGood; - public const string Folder = Material.Filled.Folder; - public const string FolderCopy = Material.Filled.FolderCopy; - public const string FolderDelete = Material.Filled.FolderDelete; - public const string FolderOff = Material.Filled.FolderOff; - public const string FolderOpen = Material.Filled.FolderOpen; - public const string FolderShared = Material.Filled.FolderShared; - public const string FolderSpecial = Material.Filled.FolderSpecial; - public const string FolderZip = Material.Filled.FolderZip; - public const string FollowTheSigns = Material.Filled.FollowTheSigns; - public const string FontDownload = Material.Filled.FontDownload; - public const string FontDownloadOff = Material.Filled.FontDownloadOff; - public const string FoodBank = Material.Filled.FoodBank; - public const string Forest = Material.Filled.Forest; - public const string ForkLeft = Material.Filled.ForkLeft; - public const string ForkRight = Material.Filled.ForkRight; - public const string FormatAlignCenter = Material.Filled.FormatAlignCenter; - public const string FormatAlignJustify = Material.Filled.FormatAlignJustify; - public const string FormatAlignLeft = Material.Filled.FormatAlignLeft; - public const string FormatAlignRight = Material.Filled.FormatAlignRight; - public const string FormatBold = Material.Filled.FormatBold; - public const string FormatClear = Material.Filled.FormatClear; - public const string FormatColorFill = Material.Filled.FormatColorFill; - public const string FormatColorReset = Material.Filled.FormatColorReset; - public const string FormatColorText = Material.Filled.FormatColorText; - public const string FormatIndentDecrease = Material.Filled.FormatIndentDecrease; - public const string FormatIndentIncrease = Material.Filled.FormatIndentIncrease; - public const string FormatItalic = Material.Filled.FormatItalic; - public const string FormatLineSpacing = Material.Filled.FormatLineSpacing; - public const string FormatListBulleted = Material.Filled.FormatListBulleted; - public const string FormatListNumbered = Material.Filled.FormatListNumbered; - public const string FormatListNumberedRtl = Material.Filled.FormatListNumberedRtl; - public const string FormatOverline = Material.Filled.FormatOverline; - public const string FormatPaint = Material.Filled.FormatPaint; - public const string FormatQuote = Material.Filled.FormatQuote; - public const string FormatShapes = Material.Filled.FormatShapes; - public const string FormatSize = Material.Filled.FormatSize; - public const string FormatStrikethrough = Material.Filled.FormatStrikethrough; - public const string FormatTextdirectionLToR = Material.Filled.FormatTextdirectionLToR; - public const string FormatTextdirectionRToL = Material.Filled.FormatTextdirectionRToL; - public const string FormatUnderlined = Material.Filled.FormatUnderlined; - public const string Fort = Material.Filled.Fort; - public const string Forum = Material.Filled.Forum; - public const string Forward = Material.Filled.Forward; - public const string Forward10 = Material.Filled.Forward10; - public const string Forward30 = Material.Filled.Forward30; - public const string Forward5 = Material.Filled.Forward5; - public const string ForwardToInbox = Material.Filled.ForwardToInbox; - public const string Foundation = Material.Filled.Foundation; - public const string FreeBreakfast = Material.Filled.FreeBreakfast; - public const string FreeCancellation = Material.Filled.FreeCancellation; - public const string FrontHand = Material.Filled.FrontHand; - public const string Fullscreen = Material.Filled.Fullscreen; - public const string FullscreenExit = Material.Filled.FullscreenExit; - public const string Functions = Material.Filled.Functions; - public const string GMobiledata = Material.Filled.GMobiledata; - public const string GTranslate = Material.Filled.GTranslate; - public const string Gamepad = Material.Filled.Gamepad; - public const string Games = Material.Filled.Games; - public const string Garage = Material.Filled.Garage; - public const string GasMeter = Material.Filled.GasMeter; - public const string Gavel = Material.Filled.Gavel; - public const string GeneratingTokens = Material.Filled.GeneratingTokens; - public const string Gesture = Material.Filled.Gesture; - public const string GetApp = Material.Filled.GetApp; - public const string Gif = Material.Filled.Gif; - public const string GifBox = Material.Filled.GifBox; - public const string Girl = Material.Filled.Girl; - public const string Gite = Material.Filled.Gite; - public const string GolfCourse = Material.Filled.GolfCourse; - public const string GppBad = Material.Filled.GppBad; - public const string GppGood = Material.Filled.GppGood; - public const string GppMaybe = Material.Filled.GppMaybe; - public const string GpsFixed = Material.Filled.GpsFixed; - public const string GpsNotFixed = Material.Filled.GpsNotFixed; - public const string GpsOff = Material.Filled.GpsOff; - public const string Grade = Material.Filled.Grade; - public const string Gradient = Material.Filled.Gradient; - public const string Grading = Material.Filled.Grading; - public const string Grain = Material.Filled.Grain; - public const string GraphicEq = Material.Filled.GraphicEq; - public const string Grass = Material.Filled.Grass; - public const string Grid3x3 = Material.Filled.Grid3x3; - public const string Grid4x4 = Material.Filled.Grid4x4; - public const string GridGoldenratio = Material.Filled.GridGoldenratio; - public const string GridOff = Material.Filled.GridOff; - public const string GridOn = Material.Filled.GridOn; - public const string GridView = Material.Filled.GridView; - public const string Group = Material.Filled.Group; - public const string GroupAdd = Material.Filled.GroupAdd; - public const string GroupOff = Material.Filled.GroupOff; - public const string GroupRemove = Material.Filled.GroupRemove; - public const string GroupWork = Material.Filled.GroupWork; - public const string Groups = Material.Filled.Groups; - public const string Groups2 = Material.Filled.Groups2; - public const string Groups3 = Material.Filled.Groups3; - public const string HMobiledata = Material.Filled.HMobiledata; - public const string HPlusMobiledata = Material.Filled.HPlusMobiledata; - public const string Hail = Material.Filled.Hail; - public const string Handshake = Material.Filled.Handshake; - public const string Handyman = Material.Filled.Handyman; - public const string Hardware = Material.Filled.Hardware; - public const string Hd = Material.Filled.Hd; - public const string HdrAuto = Material.Filled.HdrAuto; - public const string HdrAutoSelect = Material.Filled.HdrAutoSelect; - public const string HdrEnhancedSelect = Material.Filled.HdrEnhancedSelect; - public const string HdrOff = Material.Filled.HdrOff; - public const string HdrOffSelect = Material.Filled.HdrOffSelect; - public const string HdrOn = Material.Filled.HdrOn; - public const string HdrOnSelect = Material.Filled.HdrOnSelect; - public const string HdrPlus = Material.Filled.HdrPlus; - public const string HdrStrong = Material.Filled.HdrStrong; - public const string HdrWeak = Material.Filled.HdrWeak; - public const string Headphones = Material.Filled.Headphones; - public const string HeadphonesBattery = Material.Filled.HeadphonesBattery; - public const string Headset = Material.Filled.Headset; - public const string HeadsetMic = Material.Filled.HeadsetMic; - public const string HeadsetOff = Material.Filled.HeadsetOff; - public const string Healing = Material.Filled.Healing; - public const string HealthAndSafety = Material.Filled.HealthAndSafety; - public const string Hearing = Material.Filled.Hearing; - public const string HearingDisabled = Material.Filled.HearingDisabled; - public const string HeartBroken = Material.Filled.HeartBroken; - public const string HeatPump = Material.Filled.HeatPump; - public const string Height = Material.Filled.Height; - public const string Help = Material.Filled.Help; - public const string HelpCenter = Material.Filled.HelpCenter; - public const string HelpOutline = Material.Filled.HelpOutline; - public const string Hevc = Material.Filled.Hevc; - public const string Hexagon = Material.Filled.Hexagon; - public const string HideImage = Material.Filled.HideImage; - public const string HideSource = Material.Filled.HideSource; - public const string HighQuality = Material.Filled.HighQuality; - public const string Highlight = Material.Filled.Highlight; - public const string HighlightAlt = Material.Filled.HighlightAlt; - public const string HighlightOff = Material.Filled.HighlightOff; - public const string Hiking = Material.Filled.Hiking; - public const string History = Material.Filled.History; - public const string HistoryEdu = Material.Filled.HistoryEdu; - public const string HistoryToggleOff = Material.Filled.HistoryToggleOff; - public const string Hive = Material.Filled.Hive; - public const string Hls = Material.Filled.Hls; - public const string HlsOff = Material.Filled.HlsOff; - public const string HolidayVillage = Material.Filled.HolidayVillage; - public const string Home = Material.Filled.Home; - public const string HomeMax = Material.Filled.HomeMax; - public const string HomeMini = Material.Filled.HomeMini; - public const string HomeRepairService = Material.Filled.HomeRepairService; - public const string HomeWork = Material.Filled.HomeWork; - public const string HorizontalDistribute = Material.Filled.HorizontalDistribute; - public const string HorizontalRule = Material.Filled.HorizontalRule; - public const string HorizontalSplit = Material.Filled.HorizontalSplit; - public const string HotTub = Material.Filled.HotTub; - public const string Hotel = Material.Filled.Hotel; - public const string HotelClass = Material.Filled.HotelClass; - public const string HourglassBottom = Material.Filled.HourglassBottom; - public const string HourglassDisabled = Material.Filled.HourglassDisabled; - public const string HourglassEmpty = Material.Filled.HourglassEmpty; - public const string HourglassFull = Material.Filled.HourglassFull; - public const string HourglassTop = Material.Filled.HourglassTop; - public const string House = Material.Filled.House; - public const string HouseSiding = Material.Filled.HouseSiding; - public const string Houseboat = Material.Filled.Houseboat; - public const string HowToReg = Material.Filled.HowToReg; - public const string HowToVote = Material.Filled.HowToVote; - public const string Html = Material.Filled.Html; - public const string Http = Material.Filled.Http; - public const string Https = Material.Filled.Https; - public const string Hub = Material.Filled.Hub; - public const string Hvac = Material.Filled.Hvac; - public const string IceSkating = Material.Filled.IceSkating; - public const string Icecream = Material.Filled.Icecream; - public const string Image = Material.Filled.Image; - public const string ImageAspectRatio = Material.Filled.ImageAspectRatio; - public const string ImageNotSupported = Material.Filled.ImageNotSupported; - public const string ImageSearch = Material.Filled.ImageSearch; - public const string ImagesearchRoller = Material.Filled.ImagesearchRoller; - public const string ImportContacts = Material.Filled.ImportContacts; - public const string ImportExport = Material.Filled.ImportExport; - public const string ImportantDevices = Material.Filled.ImportantDevices; - public const string Inbox = Material.Filled.Inbox; - public const string IncompleteCircle = Material.Filled.IncompleteCircle; - public const string IndeterminateCheckBox = Material.Filled.IndeterminateCheckBox; - public const string Info = Material.Filled.Info; - public const string Input = Material.Filled.Input; - public const string InsertChart = Material.Filled.InsertChart; - public const string InsertChartOutlined = Material.Filled.InsertChartOutlined; - public const string InsertComment = Material.Filled.InsertComment; - public const string InsertDriveFile = Material.Filled.InsertDriveFile; - public const string InsertEmoticon = Material.Filled.InsertEmoticon; - public const string InsertInvitation = Material.Filled.InsertInvitation; - public const string InsertLink = Material.Filled.InsertLink; - public const string InsertPageBreak = Material.Filled.InsertPageBreak; - public const string InsertPhoto = Material.Filled.InsertPhoto; - public const string Insights = Material.Filled.Insights; - public const string InstallDesktop = Material.Filled.InstallDesktop; - public const string InstallMobile = Material.Filled.InstallMobile; - public const string IntegrationInstructions = Material.Filled.IntegrationInstructions; - public const string Interests = Material.Filled.Interests; - public const string InterpreterMode = Material.Filled.InterpreterMode; - public const string Inventory = Material.Filled.Inventory; - public const string Inventory2 = Material.Filled.Inventory2; - public const string InvertColors = Material.Filled.InvertColors; - public const string InvertColorsOff = Material.Filled.InvertColorsOff; - public const string IosShare = Material.Filled.IosShare; - public const string Iron = Material.Filled.Iron; - public const string Iso = Material.Filled.Iso; - public const string Javascript = Material.Filled.Javascript; - public const string JoinFull = Material.Filled.JoinFull; - public const string JoinInner = Material.Filled.JoinInner; - public const string JoinLeft = Material.Filled.JoinLeft; - public const string JoinRight = Material.Filled.JoinRight; - public const string Kayaking = Material.Filled.Kayaking; - public const string KebabDining = Material.Filled.KebabDining; - public const string Key = Material.Filled.Key; - public const string KeyOff = Material.Filled.KeyOff; - public const string Keyboard = Material.Filled.Keyboard; - public const string KeyboardAlt = Material.Filled.KeyboardAlt; - public const string KeyboardArrowDown = Material.Filled.KeyboardArrowDown; - public const string KeyboardArrowLeft = Material.Filled.KeyboardArrowLeft; - public const string KeyboardArrowRight = Material.Filled.KeyboardArrowRight; - public const string KeyboardArrowUp = Material.Filled.KeyboardArrowUp; - public const string KeyboardBackspace = Material.Filled.KeyboardBackspace; - public const string KeyboardCapslock = Material.Filled.KeyboardCapslock; - public const string KeyboardCommandKey = Material.Filled.KeyboardCommandKey; - public const string KeyboardControlKey = Material.Filled.KeyboardControlKey; - public const string KeyboardDoubleArrowDown = Material.Filled.KeyboardDoubleArrowDown; - public const string KeyboardDoubleArrowLeft = Material.Filled.KeyboardDoubleArrowLeft; - public const string KeyboardDoubleArrowRight = Material.Filled.KeyboardDoubleArrowRight; - public const string KeyboardDoubleArrowUp = Material.Filled.KeyboardDoubleArrowUp; - public const string KeyboardHide = Material.Filled.KeyboardHide; - public const string KeyboardOptionKey = Material.Filled.KeyboardOptionKey; - public const string KeyboardReturn = Material.Filled.KeyboardReturn; - public const string KeyboardTab = Material.Filled.KeyboardTab; - public const string KeyboardVoice = Material.Filled.KeyboardVoice; - public const string KingBed = Material.Filled.KingBed; - public const string Kitchen = Material.Filled.Kitchen; - public const string Kitesurfing = Material.Filled.Kitesurfing; - public const string Label = Material.Filled.Label; - public const string LabelImportant = Material.Filled.LabelImportant; - public const string LabelOff = Material.Filled.LabelOff; - public const string Lan = Material.Filled.Lan; - public const string Landscape = Material.Filled.Landscape; - public const string Landslide = Material.Filled.Landslide; - public const string Language = Material.Filled.Language; - public const string Laptop = Material.Filled.Laptop; - public const string LaptopChromebook = Material.Filled.LaptopChromebook; - public const string LaptopMac = Material.Filled.LaptopMac; - public const string LaptopWindows = Material.Filled.LaptopWindows; - public const string LastPage = Material.Filled.LastPage; - public const string Launch = Material.Filled.Launch; - public const string Layers = Material.Filled.Layers; - public const string LayersClear = Material.Filled.LayersClear; - public const string Leaderboard = Material.Filled.Leaderboard; - public const string LeakAdd = Material.Filled.LeakAdd; - public const string LeakRemove = Material.Filled.LeakRemove; - public const string LegendToggle = Material.Filled.LegendToggle; - public const string Lens = Material.Filled.Lens; - public const string LensBlur = Material.Filled.LensBlur; - public const string LibraryAdd = Material.Filled.LibraryAdd; - public const string LibraryAddCheck = Material.Filled.LibraryAddCheck; - public const string LibraryBooks = Material.Filled.LibraryBooks; - public const string LibraryMusic = Material.Filled.LibraryMusic; - public const string Light = Material.Filled.Light; - public const string LightMode = Material.Filled.LightMode; - public const string Lightbulb = Material.Filled.Lightbulb; - public const string LightbulbCircle = Material.Filled.LightbulbCircle; - public const string LineAxis = Material.Filled.LineAxis; - public const string LineStyle = Material.Filled.LineStyle; - public const string LineWeight = Material.Filled.LineWeight; - public const string LinearScale = Material.Filled.LinearScale; - public const string Link = Material.Filled.Link; - public const string LinkOff = Material.Filled.LinkOff; - public const string LinkedCamera = Material.Filled.LinkedCamera; - public const string Liquor = Material.Filled.Liquor; - public const string List = Material.Filled.List; - public const string ListAlt = Material.Filled.ListAlt; - public const string LiveHelp = Material.Filled.LiveHelp; - public const string LiveTv = Material.Filled.LiveTv; - public const string Living = Material.Filled.Living; - public const string LocalActivity = Material.Filled.LocalActivity; - public const string LocalAirport = Material.Filled.LocalAirport; - public const string LocalAtm = Material.Filled.LocalAtm; - public const string LocalBar = Material.Filled.LocalBar; - public const string LocalCafe = Material.Filled.LocalCafe; - public const string LocalCarWash = Material.Filled.LocalCarWash; - public const string LocalConvenienceStore = Material.Filled.LocalConvenienceStore; - public const string LocalDining = Material.Filled.LocalDining; - public const string LocalDrink = Material.Filled.LocalDrink; - public const string LocalFireDepartment = Material.Filled.LocalFireDepartment; - public const string LocalFlorist = Material.Filled.LocalFlorist; - public const string LocalGasStation = Material.Filled.LocalGasStation; - public const string LocalGroceryStore = Material.Filled.LocalGroceryStore; - public const string LocalHospital = Material.Filled.LocalHospital; - public const string LocalHotel = Material.Filled.LocalHotel; - public const string LocalLaundryService = Material.Filled.LocalLaundryService; - public const string LocalLibrary = Material.Filled.LocalLibrary; - public const string LocalMall = Material.Filled.LocalMall; - public const string LocalMovies = Material.Filled.LocalMovies; - public const string LocalOffer = Material.Filled.LocalOffer; - public const string LocalParking = Material.Filled.LocalParking; - public const string LocalPharmacy = Material.Filled.LocalPharmacy; - public const string LocalPhone = Material.Filled.LocalPhone; - public const string LocalPizza = Material.Filled.LocalPizza; - public const string LocalPlay = Material.Filled.LocalPlay; - public const string LocalPolice = Material.Filled.LocalPolice; - public const string LocalPostOffice = Material.Filled.LocalPostOffice; - public const string LocalPrintshop = Material.Filled.LocalPrintshop; - public const string LocalSee = Material.Filled.LocalSee; - public const string LocalShipping = Material.Filled.LocalShipping; - public const string LocalTaxi = Material.Filled.LocalTaxi; - public const string LocationCity = Material.Filled.LocationCity; - public const string LocationDisabled = Material.Filled.LocationDisabled; - public const string LocationOff = Material.Filled.LocationOff; - public const string LocationOn = Material.Filled.LocationOn; - public const string LocationSearching = Material.Filled.LocationSearching; - public const string Lock = Material.Filled.Lock; - public const string LockClock = Material.Filled.LockClock; - public const string LockOpen = Material.Filled.LockOpen; - public const string LockPerson = Material.Filled.LockPerson; - public const string LockReset = Material.Filled.LockReset; - public const string Login = Material.Filled.Login; - public const string LogoDev = Material.Filled.LogoDev; - public const string Logout = Material.Filled.Logout; - public const string Looks = Material.Filled.Looks; - public const string Looks3 = Material.Filled.Looks3; - public const string Looks4 = Material.Filled.Looks4; - public const string Looks5 = Material.Filled.Looks5; - public const string Looks6 = Material.Filled.Looks6; - public const string LooksOne = Material.Filled.LooksOne; - public const string LooksTwo = Material.Filled.LooksTwo; - public const string Loop = Material.Filled.Loop; - public const string Loupe = Material.Filled.Loupe; - public const string LowPriority = Material.Filled.LowPriority; - public const string Loyalty = Material.Filled.Loyalty; - public const string LteMobiledata = Material.Filled.LteMobiledata; - public const string LtePlusMobiledata = Material.Filled.LtePlusMobiledata; - public const string Luggage = Material.Filled.Luggage; - public const string LunchDining = Material.Filled.LunchDining; - public const string Lyrics = Material.Filled.Lyrics; - public const string MacroOff = Material.Filled.MacroOff; - public const string Mail = Material.Filled.Mail; - public const string MailLock = Material.Filled.MailLock; - public const string MailOutline = Material.Filled.MailOutline; - public const string Male = Material.Filled.Male; - public const string Man = Material.Filled.Man; - public const string Man2 = Material.Filled.Man2; - public const string Man3 = Material.Filled.Man3; - public const string Man4 = Material.Filled.Man4; - public const string ManageAccounts = Material.Filled.ManageAccounts; - public const string ManageHistory = Material.Filled.ManageHistory; - public const string ManageSearch = Material.Filled.ManageSearch; - public const string Map = Material.Filled.Map; - public const string MapsHomeWork = Material.Filled.MapsHomeWork; - public const string MapsUgc = Material.Filled.MapsUgc; - public const string Margin = Material.Filled.Margin; - public const string MarkAsUnread = Material.Filled.MarkAsUnread; - public const string MarkChatRead = Material.Filled.MarkChatRead; - public const string MarkChatUnread = Material.Filled.MarkChatUnread; - public const string MarkEmailRead = Material.Filled.MarkEmailRead; - public const string MarkEmailUnread = Material.Filled.MarkEmailUnread; - public const string MarkUnreadChatAlt = Material.Filled.MarkUnreadChatAlt; - public const string Markunread = Material.Filled.Markunread; - public const string MarkunreadMailbox = Material.Filled.MarkunreadMailbox; - public const string Masks = Material.Filled.Masks; - public const string Maximize = Material.Filled.Maximize; - public const string MediaBluetoothOff = Material.Filled.MediaBluetoothOff; - public const string MediaBluetoothOn = Material.Filled.MediaBluetoothOn; - public const string Mediation = Material.Filled.Mediation; - public const string MedicalInformation = Material.Filled.MedicalInformation; - public const string MedicalServices = Material.Filled.MedicalServices; - public const string Medication = Material.Filled.Medication; - public const string MedicationLiquid = Material.Filled.MedicationLiquid; - public const string MeetingRoom = Material.Filled.MeetingRoom; - public const string Memory = Material.Filled.Memory; - public const string Menu = Material.Filled.Menu; - public const string MenuBook = Material.Filled.MenuBook; - public const string MenuOpen = Material.Filled.MenuOpen; - public const string Merge = Material.Filled.Merge; - public const string MergeType = Material.Filled.MergeType; - public const string Message = Material.Filled.Message; - public const string Mic = Material.Filled.Mic; - public const string MicExternalOff = Material.Filled.MicExternalOff; - public const string MicExternalOn = Material.Filled.MicExternalOn; - public const string MicNone = Material.Filled.MicNone; - public const string MicOff = Material.Filled.MicOff; - public const string Microwave = Material.Filled.Microwave; - public const string MilitaryTech = Material.Filled.MilitaryTech; - public const string Minimize = Material.Filled.Minimize; - public const string MinorCrash = Material.Filled.MinorCrash; - public const string MiscellaneousServices = Material.Filled.MiscellaneousServices; - public const string MissedVideoCall = Material.Filled.MissedVideoCall; - public const string Mms = Material.Filled.Mms; - public const string MobileFriendly = Material.Filled.MobileFriendly; - public const string MobileOff = Material.Filled.MobileOff; - public const string MobileScreenShare = Material.Filled.MobileScreenShare; - public const string MobiledataOff = Material.Filled.MobiledataOff; - public const string Mode = Material.Filled.Mode; - public const string ModeComment = Material.Filled.ModeComment; - public const string ModeEdit = Material.Filled.ModeEdit; - public const string ModeEditOutline = Material.Filled.ModeEditOutline; - public const string ModeFanOff = Material.Filled.ModeFanOff; - public const string ModeNight = Material.Filled.ModeNight; - public const string ModeOfTravel = Material.Filled.ModeOfTravel; - public const string ModeStandby = Material.Filled.ModeStandby; - public const string ModelTraining = Material.Filled.ModelTraining; - public const string MonetizationOn = Material.Filled.MonetizationOn; - public const string Money = Material.Filled.Money; - public const string MoneyOff = Material.Filled.MoneyOff; - public const string MoneyOffCsred = Material.Filled.MoneyOffCsred; - public const string Monitor = Material.Filled.Monitor; - public const string MonitorHeart = Material.Filled.MonitorHeart; - public const string MonitorWeight = Material.Filled.MonitorWeight; - public const string MonochromePhotos = Material.Filled.MonochromePhotos; - public const string Mood = Material.Filled.Mood; - public const string MoodBad = Material.Filled.MoodBad; - public const string Moped = Material.Filled.Moped; - public const string More = Material.Filled.More; - public const string MoreHoriz = Material.Filled.MoreHoriz; - public const string MoreTime = Material.Filled.MoreTime; - public const string MoreVert = Material.Filled.MoreVert; - public const string Mosque = Material.Filled.Mosque; - public const string MotionPhotosAuto = Material.Filled.MotionPhotosAuto; - public const string MotionPhotosOff = Material.Filled.MotionPhotosOff; - public const string MotionPhotosOn = Material.Filled.MotionPhotosOn; - public const string MotionPhotosPause = Material.Filled.MotionPhotosPause; - public const string MotionPhotosPaused = Material.Filled.MotionPhotosPaused; - public const string Mouse = Material.Filled.Mouse; - public const string MoveDown = Material.Filled.MoveDown; - public const string MoveToInbox = Material.Filled.MoveToInbox; - public const string MoveUp = Material.Filled.MoveUp; - public const string Movie = Material.Filled.Movie; - public const string MovieCreation = Material.Filled.MovieCreation; - public const string MovieFilter = Material.Filled.MovieFilter; - public const string Moving = Material.Filled.Moving; - public const string Mp = Material.Filled.Mp; - public const string MultilineChart = Material.Filled.MultilineChart; - public const string MultipleStop = Material.Filled.MultipleStop; - public const string Museum = Material.Filled.Museum; - public const string MusicNote = Material.Filled.MusicNote; - public const string MusicOff = Material.Filled.MusicOff; - public const string MusicVideo = Material.Filled.MusicVideo; - public const string MyLocation = Material.Filled.MyLocation; - public const string Nat = Material.Filled.Nat; - public const string Nature = Material.Filled.Nature; - public const string NaturePeople = Material.Filled.NaturePeople; - public const string NavigateBefore = Material.Filled.NavigateBefore; - public const string NavigateNext = Material.Filled.NavigateNext; - public const string Navigation = Material.Filled.Navigation; - public const string NearMe = Material.Filled.NearMe; - public const string NearMeDisabled = Material.Filled.NearMeDisabled; - public const string NearbyError = Material.Filled.NearbyError; - public const string NearbyOff = Material.Filled.NearbyOff; - public const string NestCamWiredStand = Material.Filled.NestCamWiredStand; - public const string NetworkCell = Material.Filled.NetworkCell; - public const string NetworkCheck = Material.Filled.NetworkCheck; - public const string NetworkLocked = Material.Filled.NetworkLocked; - public const string NetworkPing = Material.Filled.NetworkPing; - public const string NetworkWifi = Material.Filled.NetworkWifi; - public const string NetworkWifi1Bar = Material.Filled.NetworkWifi1Bar; - public const string NetworkWifi2Bar = Material.Filled.NetworkWifi2Bar; - public const string NetworkWifi3Bar = Material.Filled.NetworkWifi3Bar; - public const string NewLabel = Material.Filled.NewLabel; - public const string NewReleases = Material.Filled.NewReleases; - public const string Newspaper = Material.Filled.Newspaper; - public const string NextPlan = Material.Filled.NextPlan; - public const string NextWeek = Material.Filled.NextWeek; - public const string Nfc = Material.Filled.Nfc; - public const string NightShelter = Material.Filled.NightShelter; - public const string Nightlife = Material.Filled.Nightlife; - public const string Nightlight = Material.Filled.Nightlight; - public const string NightlightRound = Material.Filled.NightlightRound; - public const string NightsStay = Material.Filled.NightsStay; - public const string NoAccounts = Material.Filled.NoAccounts; - public const string NoAdultContent = Material.Filled.NoAdultContent; - public const string NoBackpack = Material.Filled.NoBackpack; - public const string NoCell = Material.Filled.NoCell; - public const string NoCrash = Material.Filled.NoCrash; - public const string NoDrinks = Material.Filled.NoDrinks; - public const string NoEncryption = Material.Filled.NoEncryption; - public const string NoEncryptionGmailerrorred = Material.Filled.NoEncryptionGmailerrorred; - public const string NoFlash = Material.Filled.NoFlash; - public const string NoFood = Material.Filled.NoFood; - public const string NoLuggage = Material.Filled.NoLuggage; - public const string NoMeals = Material.Filled.NoMeals; - public const string NoMeetingRoom = Material.Filled.NoMeetingRoom; - public const string NoPhotography = Material.Filled.NoPhotography; - public const string NoSim = Material.Filled.NoSim; - public const string NoStroller = Material.Filled.NoStroller; - public const string NoTransfer = Material.Filled.NoTransfer; - public const string NoiseAware = Material.Filled.NoiseAware; - public const string NoiseControlOff = Material.Filled.NoiseControlOff; - public const string NordicWalking = Material.Filled.NordicWalking; - public const string North = Material.Filled.North; - public const string NorthEast = Material.Filled.NorthEast; - public const string NorthWest = Material.Filled.NorthWest; - public const string NotAccessible = Material.Filled.NotAccessible; - public const string NotInterested = Material.Filled.NotInterested; - public const string NotListedLocation = Material.Filled.NotListedLocation; - public const string NotStarted = Material.Filled.NotStarted; - public const string Note = Material.Filled.Note; - public const string NoteAdd = Material.Filled.NoteAdd; - public const string NoteAlt = Material.Filled.NoteAlt; - public const string Notes = Material.Filled.Notes; - public const string NotificationAdd = Material.Filled.NotificationAdd; - public const string NotificationImportant = Material.Filled.NotificationImportant; - public const string Notifications = Material.Filled.Notifications; - public const string NotificationsActive = Material.Filled.NotificationsActive; - public const string NotificationsNone = Material.Filled.NotificationsNone; - public const string NotificationsOff = Material.Filled.NotificationsOff; - public const string NotificationsPaused = Material.Filled.NotificationsPaused; - public const string Numbers = Material.Filled.Numbers; - public const string OfflineBolt = Material.Filled.OfflineBolt; - public const string OfflinePin = Material.Filled.OfflinePin; - public const string OfflineShare = Material.Filled.OfflineShare; - public const string OilBarrel = Material.Filled.OilBarrel; - public const string OnDeviceTraining = Material.Filled.OnDeviceTraining; - public const string OndemandVideo = Material.Filled.OndemandVideo; - public const string OnlinePrediction = Material.Filled.OnlinePrediction; - public const string Opacity = Material.Filled.Opacity; - public const string OpenInBrowser = Material.Filled.OpenInBrowser; - public const string OpenInFull = Material.Filled.OpenInFull; - public const string OpenInNew = Material.Filled.OpenInNew; - public const string OpenInNewOff = Material.Filled.OpenInNewOff; - public const string OpenWith = Material.Filled.OpenWith; - public const string OtherHouses = Material.Filled.OtherHouses; - public const string Outbound = Material.Filled.Outbound; - public const string Outbox = Material.Filled.Outbox; - public const string OutdoorGrill = Material.Filled.OutdoorGrill; - public const string Outlet = Material.Filled.Outlet; - public const string OutlinedFlag = Material.Filled.OutlinedFlag; - public const string Output = Material.Filled.Output; - public const string Padding = Material.Filled.Padding; - public const string Pages = Material.Filled.Pages; - public const string Pageview = Material.Filled.Pageview; - public const string Paid = Material.Filled.Paid; - public const string Palette = Material.Filled.Palette; - public const string PanTool = Material.Filled.PanTool; - public const string PanToolAlt = Material.Filled.PanToolAlt; - public const string Panorama = Material.Filled.Panorama; - public const string PanoramaFishEye = Material.Filled.PanoramaFishEye; - public const string PanoramaHorizontal = Material.Filled.PanoramaHorizontal; - public const string PanoramaHorizontalSelect = Material.Filled.PanoramaHorizontalSelect; - public const string PanoramaPhotosphere = Material.Filled.PanoramaPhotosphere; - public const string PanoramaPhotosphereSelect = Material.Filled.PanoramaPhotosphereSelect; - public const string PanoramaVertical = Material.Filled.PanoramaVertical; - public const string PanoramaVerticalSelect = Material.Filled.PanoramaVerticalSelect; - public const string PanoramaWideAngle = Material.Filled.PanoramaWideAngle; - public const string PanoramaWideAngleSelect = Material.Filled.PanoramaWideAngleSelect; - public const string Paragliding = Material.Filled.Paragliding; - public const string Park = Material.Filled.Park; - public const string PartyMode = Material.Filled.PartyMode; - public const string Password = Material.Filled.Password; - public const string Pattern = Material.Filled.Pattern; - public const string Pause = Material.Filled.Pause; - public const string PauseCircle = Material.Filled.PauseCircle; - public const string PauseCircleFilled = Material.Filled.PauseCircleFilled; - public const string PauseCircleOutline = Material.Filled.PauseCircleOutline; - public const string PausePresentation = Material.Filled.PausePresentation; - public const string Payment = Material.Filled.Payment; - public const string Payments = Material.Filled.Payments; - public const string PedalBike = Material.Filled.PedalBike; - public const string Pending = Material.Filled.Pending; - public const string PendingActions = Material.Filled.PendingActions; - public const string Pentagon = Material.Filled.Pentagon; - public const string People = Material.Filled.People; - public const string PeopleAlt = Material.Filled.PeopleAlt; - public const string PeopleOutline = Material.Filled.PeopleOutline; - public const string Percent = Material.Filled.Percent; - public const string PermCameraMic = Material.Filled.PermCameraMic; - public const string PermContactCalendar = Material.Filled.PermContactCalendar; - public const string PermDataSetting = Material.Filled.PermDataSetting; - public const string PermDeviceInformation = Material.Filled.PermDeviceInformation; - public const string PermIdentity = Material.Filled.PermIdentity; - public const string PermMedia = Material.Filled.PermMedia; - public const string PermPhoneMsg = Material.Filled.PermPhoneMsg; - public const string PermScanWifi = Material.Filled.PermScanWifi; - public const string Person = Material.Filled.Person; - public const string Person2 = Material.Filled.Person2; - public const string Person3 = Material.Filled.Person3; - public const string Person4 = Material.Filled.Person4; - public const string PersonAdd = Material.Filled.PersonAdd; - public const string PersonAddAlt = Material.Filled.PersonAddAlt; - public const string PersonAddAlt1 = Material.Filled.PersonAddAlt1; - public const string PersonAddDisabled = Material.Filled.PersonAddDisabled; - public const string PersonOff = Material.Filled.PersonOff; - public const string PersonOutline = Material.Filled.PersonOutline; - public const string PersonPin = Material.Filled.PersonPin; - public const string PersonPinCircle = Material.Filled.PersonPinCircle; - public const string PersonRemove = Material.Filled.PersonRemove; - public const string PersonRemoveAlt1 = Material.Filled.PersonRemoveAlt1; - public const string PersonSearch = Material.Filled.PersonSearch; - public const string PersonalInjury = Material.Filled.PersonalInjury; - public const string PersonalVideo = Material.Filled.PersonalVideo; - public const string PestControl = Material.Filled.PestControl; - public const string PestControlRodent = Material.Filled.PestControlRodent; - public const string Pets = Material.Filled.Pets; - public const string Phishing = Material.Filled.Phishing; - public const string Phone = Material.Filled.Phone; - public const string PhoneAndroid = Material.Filled.PhoneAndroid; - public const string PhoneBluetoothSpeaker = Material.Filled.PhoneBluetoothSpeaker; - public const string PhoneCallback = Material.Filled.PhoneCallback; - public const string PhoneDisabled = Material.Filled.PhoneDisabled; - public const string PhoneEnabled = Material.Filled.PhoneEnabled; - public const string PhoneForwarded = Material.Filled.PhoneForwarded; - public const string PhoneIphone = Material.Filled.PhoneIphone; - public const string PhoneLocked = Material.Filled.PhoneLocked; - public const string PhoneMissed = Material.Filled.PhoneMissed; - public const string PhonePaused = Material.Filled.PhonePaused; - public const string Phonelink = Material.Filled.Phonelink; - public const string PhonelinkErase = Material.Filled.PhonelinkErase; - public const string PhonelinkLock = Material.Filled.PhonelinkLock; - public const string PhonelinkOff = Material.Filled.PhonelinkOff; - public const string PhonelinkRing = Material.Filled.PhonelinkRing; - public const string PhonelinkSetup = Material.Filled.PhonelinkSetup; - public const string Photo = Material.Filled.Photo; - public const string PhotoAlbum = Material.Filled.PhotoAlbum; - public const string PhotoCamera = Material.Filled.PhotoCamera; - public const string PhotoCameraBack = Material.Filled.PhotoCameraBack; - public const string PhotoCameraFront = Material.Filled.PhotoCameraFront; - public const string PhotoFilter = Material.Filled.PhotoFilter; - public const string PhotoLibrary = Material.Filled.PhotoLibrary; - public const string PhotoSizeSelectActual = Material.Filled.PhotoSizeSelectActual; - public const string PhotoSizeSelectLarge = Material.Filled.PhotoSizeSelectLarge; - public const string PhotoSizeSelectSmall = Material.Filled.PhotoSizeSelectSmall; - public const string Php = Material.Filled.Php; - public const string Piano = Material.Filled.Piano; - public const string PianoOff = Material.Filled.PianoOff; - public const string PictureAsPdf = Material.Filled.PictureAsPdf; - public const string PictureInPicture = Material.Filled.PictureInPicture; - public const string PictureInPictureAlt = Material.Filled.PictureInPictureAlt; - public const string PieChart = Material.Filled.PieChart; - public const string PieChartOutline = Material.Filled.PieChartOutline; - public const string Pin = Material.Filled.Pin; - public const string PinDrop = Material.Filled.PinDrop; - public const string PinEnd = Material.Filled.PinEnd; - public const string PinInvoke = Material.Filled.PinInvoke; - public const string Pinch = Material.Filled.Pinch; - public const string PivotTableChart = Material.Filled.PivotTableChart; - public const string Pix = Material.Filled.Pix; - public const string Place = Material.Filled.Place; - public const string Plagiarism = Material.Filled.Plagiarism; - public const string PlayArrow = Material.Filled.PlayArrow; - public const string PlayCircle = Material.Filled.PlayCircle; - public const string PlayCircleFilled = Material.Filled.PlayCircleFilled; - public const string PlayCircleOutline = Material.Filled.PlayCircleOutline; - public const string PlayDisabled = Material.Filled.PlayDisabled; - public const string PlayForWork = Material.Filled.PlayForWork; - public const string PlayLesson = Material.Filled.PlayLesson; - public const string PlaylistAdd = Material.Filled.PlaylistAdd; - public const string PlaylistAddCheck = Material.Filled.PlaylistAddCheck; - public const string PlaylistAddCheckCircle = Material.Filled.PlaylistAddCheckCircle; - public const string PlaylistAddCircle = Material.Filled.PlaylistAddCircle; - public const string PlaylistPlay = Material.Filled.PlaylistPlay; - public const string PlaylistRemove = Material.Filled.PlaylistRemove; - public const string Plumbing = Material.Filled.Plumbing; - public const string PlusOne = Material.Filled.PlusOne; - public const string Podcasts = Material.Filled.Podcasts; - public const string PointOfSale = Material.Filled.PointOfSale; - public const string Policy = Material.Filled.Policy; - public const string Poll = Material.Filled.Poll; - public const string Polyline = Material.Filled.Polyline; - public const string Polymer = Material.Filled.Polymer; - public const string Pool = Material.Filled.Pool; - public const string PortableWifiOff = Material.Filled.PortableWifiOff; - public const string Portrait = Material.Filled.Portrait; - public const string PostAdd = Material.Filled.PostAdd; - public const string Power = Material.Filled.Power; - public const string PowerInput = Material.Filled.PowerInput; - public const string PowerOff = Material.Filled.PowerOff; - public const string PowerSettingsNew = Material.Filled.PowerSettingsNew; - public const string PrecisionManufacturing = Material.Filled.PrecisionManufacturing; - public const string PregnantWoman = Material.Filled.PregnantWoman; - public const string PresentToAll = Material.Filled.PresentToAll; - public const string Preview = Material.Filled.Preview; - public const string PriceChange = Material.Filled.PriceChange; - public const string PriceCheck = Material.Filled.PriceCheck; - public const string Print = Material.Filled.Print; - public const string PrintDisabled = Material.Filled.PrintDisabled; - public const string PriorityHigh = Material.Filled.PriorityHigh; - public const string PrivacyTip = Material.Filled.PrivacyTip; - public const string PrivateConnectivity = Material.Filled.PrivateConnectivity; - public const string ProductionQuantityLimits = Material.Filled.ProductionQuantityLimits; - public const string Propane = Material.Filled.Propane; - public const string PropaneTank = Material.Filled.PropaneTank; - public const string Psychology = Material.Filled.Psychology; - public const string PsychologyAlt = Material.Filled.PsychologyAlt; - public const string Public = Material.Filled.Public; - public const string PublicOff = Material.Filled.PublicOff; - public const string Publish = Material.Filled.Publish; - public const string PublishedWithChanges = Material.Filled.PublishedWithChanges; - public const string PunchClock = Material.Filled.PunchClock; - public const string PushPin = Material.Filled.PushPin; - public const string QrCode = Material.Filled.QrCode; - public const string QrCode2 = Material.Filled.QrCode2; - public const string QrCodeScanner = Material.Filled.QrCodeScanner; - public const string QueryBuilder = Material.Filled.QueryBuilder; - public const string QueryStats = Material.Filled.QueryStats; - public const string QuestionAnswer = Material.Filled.QuestionAnswer; - public const string QuestionMark = Material.Filled.QuestionMark; - public const string Queue = Material.Filled.Queue; - public const string QueueMusic = Material.Filled.QueueMusic; - public const string QueuePlayNext = Material.Filled.QueuePlayNext; - public const string Quickreply = Material.Filled.Quickreply; - public const string Quiz = Material.Filled.Quiz; - public const string RMobiledata = Material.Filled.RMobiledata; - public const string Radar = Material.Filled.Radar; - public const string Radio = Material.Filled.Radio; - public const string RadioButtonChecked = Material.Filled.RadioButtonChecked; - public const string RadioButtonUnchecked = Material.Filled.RadioButtonUnchecked; - public const string RailwayAlert = Material.Filled.RailwayAlert; - public const string RamenDining = Material.Filled.RamenDining; - public const string RampLeft = Material.Filled.RampLeft; - public const string RampRight = Material.Filled.RampRight; - public const string RateReview = Material.Filled.RateReview; - public const string RawOff = Material.Filled.RawOff; - public const string RawOn = Material.Filled.RawOn; - public const string ReadMore = Material.Filled.ReadMore; - public const string RealEstateAgent = Material.Filled.RealEstateAgent; - public const string Receipt = Material.Filled.Receipt; - public const string ReceiptLong = Material.Filled.ReceiptLong; - public const string RecentActors = Material.Filled.RecentActors; - public const string Recommend = Material.Filled.Recommend; - public const string RecordVoiceOver = Material.Filled.RecordVoiceOver; - public const string Rectangle = Material.Filled.Rectangle; - public const string Recycling = Material.Filled.Recycling; - public const string Redeem = Material.Filled.Redeem; - public const string Redo = Material.Filled.Redo; - public const string ReduceCapacity = Material.Filled.ReduceCapacity; - public const string Refresh = Material.Filled.Refresh; - public const string RememberMe = Material.Filled.RememberMe; - public const string Remove = Material.Filled.Remove; - public const string RemoveCircle = Material.Filled.RemoveCircle; - public const string RemoveCircleOutline = Material.Filled.RemoveCircleOutline; - public const string RemoveDone = Material.Filled.RemoveDone; - public const string RemoveFromQueue = Material.Filled.RemoveFromQueue; - public const string RemoveModerator = Material.Filled.RemoveModerator; - public const string RemoveRedEye = Material.Filled.RemoveRedEye; - public const string RemoveRoad = Material.Filled.RemoveRoad; - public const string RemoveShoppingCart = Material.Filled.RemoveShoppingCart; - public const string Reorder = Material.Filled.Reorder; - public const string Repartition = Material.Filled.Repartition; - public const string Repeat = Material.Filled.Repeat; - public const string RepeatOn = Material.Filled.RepeatOn; - public const string RepeatOne = Material.Filled.RepeatOne; - public const string RepeatOneOn = Material.Filled.RepeatOneOn; - public const string Replay = Material.Filled.Replay; - public const string Replay10 = Material.Filled.Replay10; - public const string Replay30 = Material.Filled.Replay30; - public const string Replay5 = Material.Filled.Replay5; - public const string ReplayCircleFilled = Material.Filled.ReplayCircleFilled; - public const string Reply = Material.Filled.Reply; - public const string ReplyAll = Material.Filled.ReplyAll; - public const string Report = Material.Filled.Report; - public const string ReportGmailerrorred = Material.Filled.ReportGmailerrorred; - public const string ReportOff = Material.Filled.ReportOff; - public const string ReportProblem = Material.Filled.ReportProblem; - public const string RequestPage = Material.Filled.RequestPage; - public const string RequestQuote = Material.Filled.RequestQuote; - public const string ResetTv = Material.Filled.ResetTv; - public const string RestartAlt = Material.Filled.RestartAlt; - public const string Restaurant = Material.Filled.Restaurant; - public const string RestaurantMenu = Material.Filled.RestaurantMenu; - public const string Restore = Material.Filled.Restore; - public const string RestoreFromTrash = Material.Filled.RestoreFromTrash; - public const string RestorePage = Material.Filled.RestorePage; - public const string Reviews = Material.Filled.Reviews; - public const string RiceBowl = Material.Filled.RiceBowl; - public const string RingVolume = Material.Filled.RingVolume; - public const string Rocket = Material.Filled.Rocket; - public const string RocketLaunch = Material.Filled.RocketLaunch; - public const string RollerShades = Material.Filled.RollerShades; - public const string RollerShadesClosed = Material.Filled.RollerShadesClosed; - public const string RollerSkating = Material.Filled.RollerSkating; - public const string Roofing = Material.Filled.Roofing; - public const string Room = Material.Filled.Room; - public const string RoomPreferences = Material.Filled.RoomPreferences; - public const string RoomService = Material.Filled.RoomService; - public const string Rotate90DegreesCcw = Material.Filled.Rotate90DegreesCcw; - public const string Rotate90DegreesCw = Material.Filled.Rotate90DegreesCw; - public const string RotateLeft = Material.Filled.RotateLeft; - public const string RotateRight = Material.Filled.RotateRight; - public const string RoundaboutLeft = Material.Filled.RoundaboutLeft; - public const string RoundaboutRight = Material.Filled.RoundaboutRight; - public const string RoundedCorner = Material.Filled.RoundedCorner; - public const string Route = Material.Filled.Route; - public const string Router = Material.Filled.Router; - public const string Rowing = Material.Filled.Rowing; - public const string RssFeed = Material.Filled.RssFeed; - public const string Rsvp = Material.Filled.Rsvp; - public const string Rtt = Material.Filled.Rtt; - public const string Rule = Material.Filled.Rule; - public const string RuleFolder = Material.Filled.RuleFolder; - public const string RunCircle = Material.Filled.RunCircle; - public const string RunningWithErrors = Material.Filled.RunningWithErrors; - public const string RvHookup = Material.Filled.RvHookup; - public const string SafetyCheck = Material.Filled.SafetyCheck; - public const string SafetyDivider = Material.Filled.SafetyDivider; - public const string Sailing = Material.Filled.Sailing; - public const string Sanitizer = Material.Filled.Sanitizer; - public const string Satellite = Material.Filled.Satellite; - public const string SatelliteAlt = Material.Filled.SatelliteAlt; - public const string Save = Material.Filled.Save; - public const string SaveAlt = Material.Filled.SaveAlt; - public const string SaveAs = Material.Filled.SaveAs; - public const string SavedSearch = Material.Filled.SavedSearch; - public const string Savings = Material.Filled.Savings; - public const string Scale = Material.Filled.Scale; - public const string Scanner = Material.Filled.Scanner; - public const string ScatterPlot = Material.Filled.ScatterPlot; - public const string Schedule = Material.Filled.Schedule; - public const string ScheduleSend = Material.Filled.ScheduleSend; - public const string Schema = Material.Filled.Schema; - public const string School = Material.Filled.School; - public const string Science = Material.Filled.Science; - public const string Score = Material.Filled.Score; - public const string Scoreboard = Material.Filled.Scoreboard; - public const string ScreenLockLandscape = Material.Filled.ScreenLockLandscape; - public const string ScreenLockPortrait = Material.Filled.ScreenLockPortrait; - public const string ScreenLockRotation = Material.Filled.ScreenLockRotation; - public const string ScreenRotation = Material.Filled.ScreenRotation; - public const string ScreenRotationAlt = Material.Filled.ScreenRotationAlt; - public const string ScreenSearchDesktop = Material.Filled.ScreenSearchDesktop; - public const string ScreenShare = Material.Filled.ScreenShare; - public const string Screenshot = Material.Filled.Screenshot; - public const string ScreenshotMonitor = Material.Filled.ScreenshotMonitor; - public const string ScubaDiving = Material.Filled.ScubaDiving; - public const string Sd = Material.Filled.Sd; - public const string SdCard = Material.Filled.SdCard; - public const string SdCardAlert = Material.Filled.SdCardAlert; - public const string SdStorage = Material.Filled.SdStorage; - public const string Search = Material.Filled.Search; - public const string SearchOff = Material.Filled.SearchOff; - public const string Security = Material.Filled.Security; - public const string SecurityUpdate = Material.Filled.SecurityUpdate; - public const string SecurityUpdateGood = Material.Filled.SecurityUpdateGood; - public const string SecurityUpdateWarning = Material.Filled.SecurityUpdateWarning; - public const string Segment = Material.Filled.Segment; - public const string SelectAll = Material.Filled.SelectAll; - public const string SelfImprovement = Material.Filled.SelfImprovement; - public const string Sell = Material.Filled.Sell; - public const string Send = Material.Filled.Send; - public const string SendAndArchive = Material.Filled.SendAndArchive; - public const string SendTimeExtension = Material.Filled.SendTimeExtension; - public const string SendToMobile = Material.Filled.SendToMobile; - public const string SensorDoor = Material.Filled.SensorDoor; - public const string SensorOccupied = Material.Filled.SensorOccupied; - public const string SensorWindow = Material.Filled.SensorWindow; - public const string Sensors = Material.Filled.Sensors; - public const string SensorsOff = Material.Filled.SensorsOff; - public const string SentimentDissatisfied = Material.Filled.SentimentDissatisfied; - public const string SentimentNeutral = Material.Filled.SentimentNeutral; - public const string SentimentSatisfied = Material.Filled.SentimentSatisfied; - public const string SentimentSatisfiedAlt = Material.Filled.SentimentSatisfiedAlt; - public const string SentimentVeryDissatisfied = Material.Filled.SentimentVeryDissatisfied; - public const string SentimentVerySatisfied = Material.Filled.SentimentVerySatisfied; - public const string SetMeal = Material.Filled.SetMeal; - public const string Settings = Material.Filled.Settings; - public const string SettingsAccessibility = Material.Filled.SettingsAccessibility; - public const string SettingsApplications = Material.Filled.SettingsApplications; - public const string SettingsBackupRestore = Material.Filled.SettingsBackupRestore; - public const string SettingsBluetooth = Material.Filled.SettingsBluetooth; - public const string SettingsBrightness = Material.Filled.SettingsBrightness; - public const string SettingsCell = Material.Filled.SettingsCell; - public const string SettingsEthernet = Material.Filled.SettingsEthernet; - public const string SettingsInputAntenna = Material.Filled.SettingsInputAntenna; - public const string SettingsInputComponent = Material.Filled.SettingsInputComponent; - public const string SettingsInputComposite = Material.Filled.SettingsInputComposite; - public const string SettingsInputHdmi = Material.Filled.SettingsInputHdmi; - public const string SettingsInputSvideo = Material.Filled.SettingsInputSvideo; - public const string SettingsOverscan = Material.Filled.SettingsOverscan; - public const string SettingsPhone = Material.Filled.SettingsPhone; - public const string SettingsPower = Material.Filled.SettingsPower; - public const string SettingsRemote = Material.Filled.SettingsRemote; - public const string SettingsSuggest = Material.Filled.SettingsSuggest; - public const string SettingsSystemDaydream = Material.Filled.SettingsSystemDaydream; - public const string SettingsVoice = Material.Filled.SettingsVoice; - public const string SevereCold = Material.Filled.SevereCold; - public const string ShapeLine = Material.Filled.ShapeLine; - public const string Share = Material.Filled.Share; - public const string ShareLocation = Material.Filled.ShareLocation; - public const string Shield = Material.Filled.Shield; - public const string ShieldMoon = Material.Filled.ShieldMoon; - public const string Shop = Material.Filled.Shop; - public const string Shop2 = Material.Filled.Shop2; - public const string ShopTwo = Material.Filled.ShopTwo; - public const string ShoppingBag = Material.Filled.ShoppingBag; - public const string ShoppingBasket = Material.Filled.ShoppingBasket; - public const string ShoppingCart = Material.Filled.ShoppingCart; - public const string ShoppingCartCheckout = Material.Filled.ShoppingCartCheckout; - public const string ShortText = Material.Filled.ShortText; - public const string Shortcut = Material.Filled.Shortcut; - public const string ShowChart = Material.Filled.ShowChart; - public const string Shower = Material.Filled.Shower; - public const string Shuffle = Material.Filled.Shuffle; - public const string ShuffleOn = Material.Filled.ShuffleOn; - public const string ShutterSpeed = Material.Filled.ShutterSpeed; - public const string Sick = Material.Filled.Sick; - public const string SignLanguage = Material.Filled.SignLanguage; - public const string SignalCellular0Bar = Material.Filled.SignalCellular0Bar; - public const string SignalCellular4Bar = Material.Filled.SignalCellular4Bar; - public const string SignalCellularAlt = Material.Filled.SignalCellularAlt; - public const string SignalCellularAlt1Bar = Material.Filled.SignalCellularAlt1Bar; - public const string SignalCellularAlt2Bar = Material.Filled.SignalCellularAlt2Bar; - public const string SignalCellularConnectedNoInternet0Bar = Material.Filled.SignalCellularConnectedNoInternet0Bar; - public const string SignalCellularConnectedNoInternet4Bar = Material.Filled.SignalCellularConnectedNoInternet4Bar; - public const string SignalCellularNoSim = Material.Filled.SignalCellularNoSim; - public const string SignalCellularNodata = Material.Filled.SignalCellularNodata; - public const string SignalCellularNull = Material.Filled.SignalCellularNull; - public const string SignalCellularOff = Material.Filled.SignalCellularOff; - public const string SignalWifi0Bar = Material.Filled.SignalWifi0Bar; - public const string SignalWifi4Bar = Material.Filled.SignalWifi4Bar; - public const string SignalWifi4BarLock = Material.Filled.SignalWifi4BarLock; - public const string SignalWifiBad = Material.Filled.SignalWifiBad; - public const string SignalWifiConnectedNoInternet4 = Material.Filled.SignalWifiConnectedNoInternet4; - public const string SignalWifiOff = Material.Filled.SignalWifiOff; - public const string SignalWifiStatusbar4Bar = Material.Filled.SignalWifiStatusbar4Bar; - public const string SignalWifiStatusbarConnectedNoInternet4 = Material.Filled.SignalWifiStatusbarConnectedNoInternet4; - public const string SignalWifiStatusbarNull = Material.Filled.SignalWifiStatusbarNull; - public const string Signpost = Material.Filled.Signpost; - public const string SimCard = Material.Filled.SimCard; - public const string SimCardAlert = Material.Filled.SimCardAlert; - public const string SimCardDownload = Material.Filled.SimCardDownload; - public const string SingleBed = Material.Filled.SingleBed; - public const string Sip = Material.Filled.Sip; - public const string Skateboarding = Material.Filled.Skateboarding; - public const string SkipNext = Material.Filled.SkipNext; - public const string SkipPrevious = Material.Filled.SkipPrevious; - public const string Sledding = Material.Filled.Sledding; - public const string Slideshow = Material.Filled.Slideshow; - public const string SlowMotionVideo = Material.Filled.SlowMotionVideo; - public const string SmartButton = Material.Filled.SmartButton; - public const string SmartDisplay = Material.Filled.SmartDisplay; - public const string SmartScreen = Material.Filled.SmartScreen; - public const string SmartToy = Material.Filled.SmartToy; - public const string Smartphone = Material.Filled.Smartphone; - public const string SmokeFree = Material.Filled.SmokeFree; - public const string SmokingRooms = Material.Filled.SmokingRooms; - public const string Sms = Material.Filled.Sms; - public const string SmsFailed = Material.Filled.SmsFailed; - public const string SnippetFolder = Material.Filled.SnippetFolder; - public const string Snooze = Material.Filled.Snooze; - public const string Snowboarding = Material.Filled.Snowboarding; - public const string Snowmobile = Material.Filled.Snowmobile; - public const string Snowshoeing = Material.Filled.Snowshoeing; - public const string Soap = Material.Filled.Soap; - public const string SocialDistance = Material.Filled.SocialDistance; - public const string SolarPower = Material.Filled.SolarPower; - public const string Sort = Material.Filled.Sort; - public const string SortByAlpha = Material.Filled.SortByAlpha; - public const string Sos = Material.Filled.Sos; - public const string SoupKitchen = Material.Filled.SoupKitchen; - public const string Source = Material.Filled.Source; - public const string South = Material.Filled.South; - public const string SouthAmerica = Material.Filled.SouthAmerica; - public const string SouthEast = Material.Filled.SouthEast; - public const string SouthWest = Material.Filled.SouthWest; - public const string Spa = Material.Filled.Spa; - public const string SpaceBar = Material.Filled.SpaceBar; - public const string SpaceDashboard = Material.Filled.SpaceDashboard; - public const string SpatialAudio = Material.Filled.SpatialAudio; - public const string SpatialAudioOff = Material.Filled.SpatialAudioOff; - public const string SpatialTracking = Material.Filled.SpatialTracking; - public const string Speaker = Material.Filled.Speaker; - public const string SpeakerGroup = Material.Filled.SpeakerGroup; - public const string SpeakerNotes = Material.Filled.SpeakerNotes; - public const string SpeakerNotesOff = Material.Filled.SpeakerNotesOff; - public const string SpeakerPhone = Material.Filled.SpeakerPhone; - public const string Speed = Material.Filled.Speed; - public const string Spellcheck = Material.Filled.Spellcheck; - public const string Splitscreen = Material.Filled.Splitscreen; - public const string Spoke = Material.Filled.Spoke; - public const string Sports = Material.Filled.Sports; - public const string SportsBar = Material.Filled.SportsBar; - public const string SportsBaseball = Material.Filled.SportsBaseball; - public const string SportsBasketball = Material.Filled.SportsBasketball; - public const string SportsCricket = Material.Filled.SportsCricket; - public const string SportsEsports = Material.Filled.SportsEsports; - public const string SportsFootball = Material.Filled.SportsFootball; - public const string SportsGolf = Material.Filled.SportsGolf; - public const string SportsGymnastics = Material.Filled.SportsGymnastics; - public const string SportsHandball = Material.Filled.SportsHandball; - public const string SportsHockey = Material.Filled.SportsHockey; - public const string SportsKabaddi = Material.Filled.SportsKabaddi; - public const string SportsMartialArts = Material.Filled.SportsMartialArts; - public const string SportsMma = Material.Filled.SportsMma; - public const string SportsMotorsports = Material.Filled.SportsMotorsports; - public const string SportsRugby = Material.Filled.SportsRugby; - public const string SportsScore = Material.Filled.SportsScore; - public const string SportsSoccer = Material.Filled.SportsSoccer; - public const string SportsTennis = Material.Filled.SportsTennis; - public const string SportsVolleyball = Material.Filled.SportsVolleyball; - public const string Square = Material.Filled.Square; - public const string SquareFoot = Material.Filled.SquareFoot; - public const string SsidChart = Material.Filled.SsidChart; - public const string StackedBarChart = Material.Filled.StackedBarChart; - public const string StackedLineChart = Material.Filled.StackedLineChart; - public const string Stadium = Material.Filled.Stadium; - public const string Stairs = Material.Filled.Stairs; - public const string Star = Material.Filled.Star; - public const string StarBorder = Material.Filled.StarBorder; - public const string StarBorderPurple500 = Material.Filled.StarBorderPurple500; - public const string StarHalf = Material.Filled.StarHalf; - public const string StarOutline = Material.Filled.StarOutline; - public const string StarPurple500 = Material.Filled.StarPurple500; - public const string StarRate = Material.Filled.StarRate; - public const string Stars = Material.Filled.Stars; - public const string Start = Material.Filled.Start; - public const string StayCurrentLandscape = Material.Filled.StayCurrentLandscape; - public const string StayCurrentPortrait = Material.Filled.StayCurrentPortrait; - public const string StayPrimaryLandscape = Material.Filled.StayPrimaryLandscape; - public const string StayPrimaryPortrait = Material.Filled.StayPrimaryPortrait; - public const string StickyNote2 = Material.Filled.StickyNote2; - public const string Stop = Material.Filled.Stop; - public const string StopCircle = Material.Filled.StopCircle; - public const string StopScreenShare = Material.Filled.StopScreenShare; - public const string Storage = Material.Filled.Storage; - public const string Store = Material.Filled.Store; - public const string StoreMallDirectory = Material.Filled.StoreMallDirectory; - public const string Storefront = Material.Filled.Storefront; - public const string Storm = Material.Filled.Storm; - public const string Straight = Material.Filled.Straight; - public const string Straighten = Material.Filled.Straighten; - public const string Stream = Material.Filled.Stream; - public const string Streetview = Material.Filled.Streetview; - public const string StrikethroughS = Material.Filled.StrikethroughS; - public const string Stroller = Material.Filled.Stroller; - public const string Style = Material.Filled.Style; - public const string SubdirectoryArrowLeft = Material.Filled.SubdirectoryArrowLeft; - public const string SubdirectoryArrowRight = Material.Filled.SubdirectoryArrowRight; - public const string Subject = Material.Filled.Subject; - public const string Subscript = Material.Filled.Subscript; - public const string Subscriptions = Material.Filled.Subscriptions; - public const string Subtitles = Material.Filled.Subtitles; - public const string SubtitlesOff = Material.Filled.SubtitlesOff; - public const string Subway = Material.Filled.Subway; - public const string Summarize = Material.Filled.Summarize; - public const string Superscript = Material.Filled.Superscript; - public const string SupervisedUserCircle = Material.Filled.SupervisedUserCircle; - public const string SupervisorAccount = Material.Filled.SupervisorAccount; - public const string Support = Material.Filled.Support; - public const string SupportAgent = Material.Filled.SupportAgent; - public const string Surfing = Material.Filled.Surfing; - public const string SurroundSound = Material.Filled.SurroundSound; - public const string SwapCalls = Material.Filled.SwapCalls; - public const string SwapHoriz = Material.Filled.SwapHoriz; - public const string SwapHorizontalCircle = Material.Filled.SwapHorizontalCircle; - public const string SwapVert = Material.Filled.SwapVert; - public const string SwapVerticalCircle = Material.Filled.SwapVerticalCircle; - public const string Swipe = Material.Filled.Swipe; - public const string SwipeDown = Material.Filled.SwipeDown; - public const string SwipeDownAlt = Material.Filled.SwipeDownAlt; - public const string SwipeLeft = Material.Filled.SwipeLeft; - public const string SwipeLeftAlt = Material.Filled.SwipeLeftAlt; - public const string SwipeRight = Material.Filled.SwipeRight; - public const string SwipeRightAlt = Material.Filled.SwipeRightAlt; - public const string SwipeUp = Material.Filled.SwipeUp; - public const string SwipeUpAlt = Material.Filled.SwipeUpAlt; - public const string SwipeVertical = Material.Filled.SwipeVertical; - public const string SwitchAccessShortcut = Material.Filled.SwitchAccessShortcut; - public const string SwitchAccessShortcutAdd = Material.Filled.SwitchAccessShortcutAdd; - public const string SwitchAccount = Material.Filled.SwitchAccount; - public const string SwitchCamera = Material.Filled.SwitchCamera; - public const string SwitchLeft = Material.Filled.SwitchLeft; - public const string SwitchRight = Material.Filled.SwitchRight; - public const string SwitchVideo = Material.Filled.SwitchVideo; - public const string Synagogue = Material.Filled.Synagogue; - public const string Sync = Material.Filled.Sync; - public const string SyncAlt = Material.Filled.SyncAlt; - public const string SyncDisabled = Material.Filled.SyncDisabled; - public const string SyncLock = Material.Filled.SyncLock; - public const string SyncProblem = Material.Filled.SyncProblem; - public const string SystemSecurityUpdate = Material.Filled.SystemSecurityUpdate; - public const string SystemSecurityUpdateGood = Material.Filled.SystemSecurityUpdateGood; - public const string SystemSecurityUpdateWarning = Material.Filled.SystemSecurityUpdateWarning; - public const string SystemUpdate = Material.Filled.SystemUpdate; - public const string SystemUpdateAlt = Material.Filled.SystemUpdateAlt; - public const string Tab = Material.Filled.Tab; - public const string TabUnselected = Material.Filled.TabUnselected; - public const string TableBar = Material.Filled.TableBar; - public const string TableChart = Material.Filled.TableChart; - public const string TableRestaurant = Material.Filled.TableRestaurant; - public const string TableRows = Material.Filled.TableRows; - public const string TableView = Material.Filled.TableView; - public const string Tablet = Material.Filled.Tablet; - public const string TabletAndroid = Material.Filled.TabletAndroid; - public const string TabletMac = Material.Filled.TabletMac; - public const string Tag = Material.Filled.Tag; - public const string TagFaces = Material.Filled.TagFaces; - public const string TakeoutDining = Material.Filled.TakeoutDining; - public const string TapAndPlay = Material.Filled.TapAndPlay; - public const string Tapas = Material.Filled.Tapas; - public const string Task = Material.Filled.Task; - public const string TaskAlt = Material.Filled.TaskAlt; - public const string TaxiAlert = Material.Filled.TaxiAlert; - public const string TempleBuddhist = Material.Filled.TempleBuddhist; - public const string TempleHindu = Material.Filled.TempleHindu; - public const string Terminal = Material.Filled.Terminal; - public const string Terrain = Material.Filled.Terrain; - public const string TextDecrease = Material.Filled.TextDecrease; - public const string TextFields = Material.Filled.TextFields; - public const string TextFormat = Material.Filled.TextFormat; - public const string TextIncrease = Material.Filled.TextIncrease; - public const string TextRotateUp = Material.Filled.TextRotateUp; - public const string TextRotateVertical = Material.Filled.TextRotateVertical; - public const string TextRotationAngledown = Material.Filled.TextRotationAngledown; - public const string TextRotationAngleup = Material.Filled.TextRotationAngleup; - public const string TextRotationDown = Material.Filled.TextRotationDown; - public const string TextRotationNone = Material.Filled.TextRotationNone; - public const string TextSnippet = Material.Filled.TextSnippet; - public const string Textsms = Material.Filled.Textsms; - public const string Texture = Material.Filled.Texture; - public const string TheaterComedy = Material.Filled.TheaterComedy; - public const string Theaters = Material.Filled.Theaters; - public const string Thermostat = Material.Filled.Thermostat; - public const string ThermostatAuto = Material.Filled.ThermostatAuto; - public const string ThumbDown = Material.Filled.ThumbDown; - public const string ThumbDownAlt = Material.Filled.ThumbDownAlt; - public const string ThumbDownOffAlt = Material.Filled.ThumbDownOffAlt; - public const string ThumbUp = Material.Filled.ThumbUp; - public const string ThumbUpAlt = Material.Filled.ThumbUpAlt; - public const string ThumbUpOffAlt = Material.Filled.ThumbUpOffAlt; - public const string ThumbsUpDown = Material.Filled.ThumbsUpDown; - public const string Thunderstorm = Material.Filled.Thunderstorm; - public const string TimeToLeave = Material.Filled.TimeToLeave; - public const string Timelapse = Material.Filled.Timelapse; - public const string Timeline = Material.Filled.Timeline; - public const string Timer = Material.Filled.Timer; - public const string Timer10 = Material.Filled.Timer10; - public const string Timer10Select = Material.Filled.Timer10Select; - public const string Timer3 = Material.Filled.Timer3; - public const string Timer3Select = Material.Filled.Timer3Select; - public const string TimerOff = Material.Filled.TimerOff; - public const string TipsAndUpdates = Material.Filled.TipsAndUpdates; - public const string TireRepair = Material.Filled.TireRepair; - public const string Title = Material.Filled.Title; - public const string Toc = Material.Filled.Toc; - public const string Today = Material.Filled.Today; - public const string ToggleOff = Material.Filled.ToggleOff; - public const string ToggleOn = Material.Filled.ToggleOn; - public const string Token = Material.Filled.Token; - public const string Toll = Material.Filled.Toll; - public const string Tonality = Material.Filled.Tonality; - public const string Topic = Material.Filled.Topic; - public const string Tornado = Material.Filled.Tornado; - public const string TouchApp = Material.Filled.TouchApp; - public const string Tour = Material.Filled.Tour; - public const string Toys = Material.Filled.Toys; - public const string TrackChanges = Material.Filled.TrackChanges; - public const string Traffic = Material.Filled.Traffic; - public const string Train = Material.Filled.Train; - public const string Tram = Material.Filled.Tram; - public const string Transcribe = Material.Filled.Transcribe; - public const string TransferWithinAStation = Material.Filled.TransferWithinAStation; - public const string Transform = Material.Filled.Transform; - public const string Transgender = Material.Filled.Transgender; - public const string TransitEnterexit = Material.Filled.TransitEnterexit; - public const string Translate = Material.Filled.Translate; - public const string TravelExplore = Material.Filled.TravelExplore; - public const string TrendingDown = Material.Filled.TrendingDown; - public const string TrendingFlat = Material.Filled.TrendingFlat; - public const string TrendingUp = Material.Filled.TrendingUp; - public const string TripOrigin = Material.Filled.TripOrigin; - public const string Troubleshoot = Material.Filled.Troubleshoot; - public const string Try = Material.Filled.Try; - public const string Tsunami = Material.Filled.Tsunami; - public const string Tty = Material.Filled.Tty; - public const string Tune = Material.Filled.Tune; - public const string Tungsten = Material.Filled.Tungsten; - public const string TurnLeft = Material.Filled.TurnLeft; - public const string TurnRight = Material.Filled.TurnRight; - public const string TurnSharpLeft = Material.Filled.TurnSharpLeft; - public const string TurnSharpRight = Material.Filled.TurnSharpRight; - public const string TurnSlightLeft = Material.Filled.TurnSlightLeft; - public const string TurnSlightRight = Material.Filled.TurnSlightRight; - public const string TurnedIn = Material.Filled.TurnedIn; - public const string TurnedInNot = Material.Filled.TurnedInNot; - public const string Tv = Material.Filled.Tv; - public const string TvOff = Material.Filled.TvOff; - public const string TwoWheeler = Material.Filled.TwoWheeler; - public const string TypeSpecimen = Material.Filled.TypeSpecimen; - public const string UTurnLeft = Material.Filled.UTurnLeft; - public const string UTurnRight = Material.Filled.UTurnRight; - public const string Umbrella = Material.Filled.Umbrella; - public const string Unarchive = Material.Filled.Unarchive; - public const string Undo = Material.Filled.Undo; - public const string UnfoldLess = Material.Filled.UnfoldLess; - public const string UnfoldLessDouble = Material.Filled.UnfoldLessDouble; - public const string UnfoldMore = Material.Filled.UnfoldMore; - public const string UnfoldMoreDouble = Material.Filled.UnfoldMoreDouble; - public const string Unpublished = Material.Filled.Unpublished; - public const string Unsubscribe = Material.Filled.Unsubscribe; - public const string Upcoming = Material.Filled.Upcoming; - public const string Update = Material.Filled.Update; - public const string UpdateDisabled = Material.Filled.UpdateDisabled; - public const string Upgrade = Material.Filled.Upgrade; - public const string Upload = Material.Filled.Upload; - public const string UploadFile = Material.Filled.UploadFile; - public const string Usb = Material.Filled.Usb; - public const string UsbOff = Material.Filled.UsbOff; - public const string Vaccines = Material.Filled.Vaccines; - public const string VapeFree = Material.Filled.VapeFree; - public const string VapingRooms = Material.Filled.VapingRooms; - public const string Verified = Material.Filled.Verified; - public const string VerifiedUser = Material.Filled.VerifiedUser; - public const string VerticalAlignBottom = Material.Filled.VerticalAlignBottom; - public const string VerticalAlignCenter = Material.Filled.VerticalAlignCenter; - public const string VerticalAlignTop = Material.Filled.VerticalAlignTop; - public const string VerticalDistribute = Material.Filled.VerticalDistribute; - public const string VerticalShades = Material.Filled.VerticalShades; - public const string VerticalShadesClosed = Material.Filled.VerticalShadesClosed; - public const string VerticalSplit = Material.Filled.VerticalSplit; - public const string Vibration = Material.Filled.Vibration; - public const string VideoCall = Material.Filled.VideoCall; - public const string VideoCameraBack = Material.Filled.VideoCameraBack; - public const string VideoCameraFront = Material.Filled.VideoCameraFront; - public const string VideoChat = Material.Filled.VideoChat; - public const string VideoFile = Material.Filled.VideoFile; - public const string VideoLabel = Material.Filled.VideoLabel; - public const string VideoLibrary = Material.Filled.VideoLibrary; - public const string VideoSettings = Material.Filled.VideoSettings; - public const string VideoStable = Material.Filled.VideoStable; - public const string Videocam = Material.Filled.Videocam; - public const string VideocamOff = Material.Filled.VideocamOff; - public const string VideogameAsset = Material.Filled.VideogameAsset; - public const string VideogameAssetOff = Material.Filled.VideogameAssetOff; - public const string ViewAgenda = Material.Filled.ViewAgenda; - public const string ViewArray = Material.Filled.ViewArray; - public const string ViewCarousel = Material.Filled.ViewCarousel; - public const string ViewColumn = Material.Filled.ViewColumn; - public const string ViewComfy = Material.Filled.ViewComfy; - public const string ViewComfyAlt = Material.Filled.ViewComfyAlt; - public const string ViewCompact = Material.Filled.ViewCompact; - public const string ViewCompactAlt = Material.Filled.ViewCompactAlt; - public const string ViewCozy = Material.Filled.ViewCozy; - public const string ViewDay = Material.Filled.ViewDay; - public const string ViewHeadline = Material.Filled.ViewHeadline; - public const string ViewInAr = Material.Filled.ViewInAr; - public const string ViewKanban = Material.Filled.ViewKanban; - public const string ViewList = Material.Filled.ViewList; - public const string ViewModule = Material.Filled.ViewModule; - public const string ViewQuilt = Material.Filled.ViewQuilt; - public const string ViewSidebar = Material.Filled.ViewSidebar; - public const string ViewStream = Material.Filled.ViewStream; - public const string ViewTimeline = Material.Filled.ViewTimeline; - public const string ViewWeek = Material.Filled.ViewWeek; - public const string Vignette = Material.Filled.Vignette; - public const string Villa = Material.Filled.Villa; - public const string Visibility = Material.Filled.Visibility; - public const string VisibilityOff = Material.Filled.VisibilityOff; - public const string VoiceChat = Material.Filled.VoiceChat; - public const string VoiceOverOff = Material.Filled.VoiceOverOff; - public const string Voicemail = Material.Filled.Voicemail; - public const string Volcano = Material.Filled.Volcano; - public const string VolumeDown = Material.Filled.VolumeDown; - public const string VolumeMute = Material.Filled.VolumeMute; - public const string VolumeOff = Material.Filled.VolumeOff; - public const string VolumeUp = Material.Filled.VolumeUp; - public const string VolunteerActivism = Material.Filled.VolunteerActivism; - public const string VpnKey = Material.Filled.VpnKey; - public const string VpnKeyOff = Material.Filled.VpnKeyOff; - public const string VpnLock = Material.Filled.VpnLock; - public const string Vrpano = Material.Filled.Vrpano; - public const string Wallet = Material.Filled.Wallet; - public const string Wallpaper = Material.Filled.Wallpaper; - public const string Warehouse = Material.Filled.Warehouse; - public const string Warning = Material.Filled.Warning; - public const string WarningAmber = Material.Filled.WarningAmber; - public const string Wash = Material.Filled.Wash; - public const string Watch = Material.Filled.Watch; - public const string WatchLater = Material.Filled.WatchLater; - public const string WatchOff = Material.Filled.WatchOff; - public const string Water = Material.Filled.Water; - public const string WaterDamage = Material.Filled.WaterDamage; - public const string WaterDrop = Material.Filled.WaterDrop; - public const string WaterfallChart = Material.Filled.WaterfallChart; - public const string Waves = Material.Filled.Waves; - public const string WavingHand = Material.Filled.WavingHand; - public const string WbAuto = Material.Filled.WbAuto; - public const string WbCloudy = Material.Filled.WbCloudy; - public const string WbIncandescent = Material.Filled.WbIncandescent; - public const string WbIridescent = Material.Filled.WbIridescent; - public const string WbShade = Material.Filled.WbShade; - public const string WbSunny = Material.Filled.WbSunny; - public const string WbTwilight = Material.Filled.WbTwilight; - public const string Wc = Material.Filled.Wc; - public const string Web = Material.Filled.Web; - public const string WebAsset = Material.Filled.WebAsset; - public const string WebAssetOff = Material.Filled.WebAssetOff; - public const string WebStories = Material.Filled.WebStories; - public const string Webhook = Material.Filled.Webhook; - public const string Weekend = Material.Filled.Weekend; - public const string West = Material.Filled.West; - public const string Whatshot = Material.Filled.Whatshot; - public const string WheelchairPickup = Material.Filled.WheelchairPickup; - public const string WhereToVote = Material.Filled.WhereToVote; - public const string Widgets = Material.Filled.Widgets; - public const string WidthFull = Material.Filled.WidthFull; - public const string WidthNormal = Material.Filled.WidthNormal; - public const string WidthWide = Material.Filled.WidthWide; - public const string Wifi = Material.Filled.Wifi; - public const string Wifi1Bar = Material.Filled.Wifi1Bar; - public const string Wifi2Bar = Material.Filled.Wifi2Bar; - public const string WifiCalling = Material.Filled.WifiCalling; - public const string WifiCalling3 = Material.Filled.WifiCalling3; - public const string WifiChannel = Material.Filled.WifiChannel; - public const string WifiFind = Material.Filled.WifiFind; - public const string WifiLock = Material.Filled.WifiLock; - public const string WifiOff = Material.Filled.WifiOff; - public const string WifiPassword = Material.Filled.WifiPassword; - public const string WifiProtectedSetup = Material.Filled.WifiProtectedSetup; - public const string WifiTethering = Material.Filled.WifiTethering; - public const string WifiTetheringError = Material.Filled.WifiTetheringError; - public const string WifiTetheringOff = Material.Filled.WifiTetheringOff; - public const string WindPower = Material.Filled.WindPower; - public const string Window = Material.Filled.Window; - public const string WineBar = Material.Filled.WineBar; - public const string Woman = Material.Filled.Woman; - public const string Woman2 = Material.Filled.Woman2; - public const string Work = Material.Filled.Work; - public const string WorkHistory = Material.Filled.WorkHistory; - public const string WorkOff = Material.Filled.WorkOff; - public const string WorkOutline = Material.Filled.WorkOutline; - public const string WorkspacePremium = Material.Filled.WorkspacePremium; - public const string Workspaces = Material.Filled.Workspaces; - public const string WrapText = Material.Filled.WrapText; - public const string WrongLocation = Material.Filled.WrongLocation; - public const string Wysiwyg = Material.Filled.Wysiwyg; - public const string Yard = Material.Filled.Yard; - public const string YoutubeSearchedFor = Material.Filled.YoutubeSearchedFor; - public const string ZoomIn = Material.Filled.ZoomIn; - public const string ZoomInMap = Material.Filled.ZoomInMap; - public const string ZoomOut = Material.Filled.ZoomOut; - public const string ZoomOutMap = Material.Filled.ZoomOutMap; - } - } -} diff --git a/src/MudBlazor/Icons/Obsolete/Outlined.cs b/src/MudBlazor/Icons/Obsolete/Outlined.cs deleted file mode 100644 index 19e5d40c1354..000000000000 --- a/src/MudBlazor/Icons/Obsolete/Outlined.cs +++ /dev/null @@ -1,2139 +0,0 @@ -/* - * This file was auto-generated by Update-MudIcons.ps1 - * 2022/12/28_09:54:19 - */ - -using System.Diagnostics.CodeAnalysis; - -namespace MudBlazor -{ - public partial class Icons - { - [ExcludeFromCodeCoverage] - public partial class Outlined - { - public const string _10k = Material.Outlined._10k; - public const string _10mp = Material.Outlined._10mp; - public const string _11mp = Material.Outlined._11mp; - public const string _123 = Material.Outlined._123; - public const string _12mp = Material.Outlined._12mp; - public const string _13mp = Material.Outlined._13mp; - public const string _14mp = Material.Outlined._14mp; - public const string _15mp = Material.Outlined._15mp; - public const string _16mp = Material.Outlined._16mp; - public const string _17mp = Material.Outlined._17mp; - public const string _18UpRating = Material.Outlined._18UpRating; - public const string _18mp = Material.Outlined._18mp; - public const string _19mp = Material.Outlined._19mp; - public const string _1k = Material.Outlined._1k; - public const string _1kPlus = Material.Outlined._1kPlus; - public const string _1xMobiledata = Material.Outlined._1xMobiledata; - public const string _20mp = Material.Outlined._20mp; - public const string _21mp = Material.Outlined._21mp; - public const string _22mp = Material.Outlined._22mp; - public const string _23mp = Material.Outlined._23mp; - public const string _24mp = Material.Outlined._24mp; - public const string _2k = Material.Outlined._2k; - public const string _2kPlus = Material.Outlined._2kPlus; - public const string _2mp = Material.Outlined._2mp; - public const string _30fps = Material.Outlined._30fps; - public const string _30fpsSelect = Material.Outlined._30fpsSelect; - public const string _360 = Material.Outlined._360; - public const string _3dRotation = Material.Outlined._3dRotation; - public const string _3gMobiledata = Material.Outlined._3gMobiledata; - public const string _3k = Material.Outlined._3k; - public const string _3kPlus = Material.Outlined._3kPlus; - public const string _3mp = Material.Outlined._3mp; - public const string _3p = Material.Outlined._3p; - public const string _4gMobiledata = Material.Outlined._4gMobiledata; - public const string _4gPlusMobiledata = Material.Outlined._4gPlusMobiledata; - public const string _4k = Material.Outlined._4k; - public const string _4kPlus = Material.Outlined._4kPlus; - public const string _4mp = Material.Outlined._4mp; - public const string _5g = Material.Outlined._5g; - public const string _5k = Material.Outlined._5k; - public const string _5kPlus = Material.Outlined._5kPlus; - public const string _5mp = Material.Outlined._5mp; - public const string _60fps = Material.Outlined._60fps; - public const string _60fpsSelect = Material.Outlined._60fpsSelect; - public const string _6FtApart = Material.Outlined._6FtApart; - public const string _6k = Material.Outlined._6k; - public const string _6kPlus = Material.Outlined._6kPlus; - public const string _6mp = Material.Outlined._6mp; - public const string _7k = Material.Outlined._7k; - public const string _7kPlus = Material.Outlined._7kPlus; - public const string _7mp = Material.Outlined._7mp; - public const string _8k = Material.Outlined._8k; - public const string _8kPlus = Material.Outlined._8kPlus; - public const string _8mp = Material.Outlined._8mp; - public const string _9k = Material.Outlined._9k; - public const string _9kPlus = Material.Outlined._9kPlus; - public const string _9mp = Material.Outlined._9mp; - public const string Abc = Material.Outlined.Abc; - public const string AcUnit = Material.Outlined.AcUnit; - public const string AccessAlarm = Material.Outlined.AccessAlarm; - public const string AccessAlarms = Material.Outlined.AccessAlarms; - public const string AccessTime = Material.Outlined.AccessTime; - public const string AccessTimeFilled = Material.Outlined.AccessTimeFilled; - public const string Accessibility = Material.Outlined.Accessibility; - public const string AccessibilityNew = Material.Outlined.AccessibilityNew; - public const string Accessible = Material.Outlined.Accessible; - public const string AccessibleForward = Material.Outlined.AccessibleForward; - public const string AccountBalance = Material.Outlined.AccountBalance; - public const string AccountBalanceWallet = Material.Outlined.AccountBalanceWallet; - public const string AccountBox = Material.Outlined.AccountBox; - public const string AccountCircle = Material.Outlined.AccountCircle; - public const string AccountTree = Material.Outlined.AccountTree; - public const string AdUnits = Material.Outlined.AdUnits; - public const string Adb = Material.Outlined.Adb; - public const string Add = Material.Outlined.Add; - public const string AddAPhoto = Material.Outlined.AddAPhoto; - public const string AddAlarm = Material.Outlined.AddAlarm; - public const string AddAlert = Material.Outlined.AddAlert; - public const string AddBox = Material.Outlined.AddBox; - public const string AddBusiness = Material.Outlined.AddBusiness; - public const string AddCard = Material.Outlined.AddCard; - public const string AddChart = Material.Outlined.AddChart; - public const string AddCircle = Material.Outlined.AddCircle; - public const string AddCircleOutline = Material.Outlined.AddCircleOutline; - public const string AddComment = Material.Outlined.AddComment; - public const string AddHome = Material.Outlined.AddHome; - public const string AddHomeWork = Material.Outlined.AddHomeWork; - public const string AddIcCall = Material.Outlined.AddIcCall; - public const string AddLink = Material.Outlined.AddLink; - public const string AddLocation = Material.Outlined.AddLocation; - public const string AddLocationAlt = Material.Outlined.AddLocationAlt; - public const string AddModerator = Material.Outlined.AddModerator; - public const string AddPhotoAlternate = Material.Outlined.AddPhotoAlternate; - public const string AddReaction = Material.Outlined.AddReaction; - public const string AddRoad = Material.Outlined.AddRoad; - public const string AddShoppingCart = Material.Outlined.AddShoppingCart; - public const string AddTask = Material.Outlined.AddTask; - public const string AddToDrive = Material.Outlined.AddToDrive; - public const string AddToHomeScreen = Material.Outlined.AddToHomeScreen; - public const string AddToPhotos = Material.Outlined.AddToPhotos; - public const string AddToQueue = Material.Outlined.AddToQueue; - public const string Addchart = Material.Outlined.Addchart; - public const string AdfScanner = Material.Outlined.AdfScanner; - public const string Adjust = Material.Outlined.Adjust; - public const string AdminPanelSettings = Material.Outlined.AdminPanelSettings; - public const string AdsClick = Material.Outlined.AdsClick; - public const string Agriculture = Material.Outlined.Agriculture; - public const string Air = Material.Outlined.Air; - public const string AirlineSeatFlat = Material.Outlined.AirlineSeatFlat; - public const string AirlineSeatFlatAngled = Material.Outlined.AirlineSeatFlatAngled; - public const string AirlineSeatIndividualSuite = Material.Outlined.AirlineSeatIndividualSuite; - public const string AirlineSeatLegroomExtra = Material.Outlined.AirlineSeatLegroomExtra; - public const string AirlineSeatLegroomNormal = Material.Outlined.AirlineSeatLegroomNormal; - public const string AirlineSeatLegroomReduced = Material.Outlined.AirlineSeatLegroomReduced; - public const string AirlineSeatReclineExtra = Material.Outlined.AirlineSeatReclineExtra; - public const string AirlineSeatReclineNormal = Material.Outlined.AirlineSeatReclineNormal; - public const string AirlineStops = Material.Outlined.AirlineStops; - public const string Airlines = Material.Outlined.Airlines; - public const string AirplaneTicket = Material.Outlined.AirplaneTicket; - public const string AirplanemodeActive = Material.Outlined.AirplanemodeActive; - public const string AirplanemodeInactive = Material.Outlined.AirplanemodeInactive; - public const string Airplay = Material.Outlined.Airplay; - public const string AirportShuttle = Material.Outlined.AirportShuttle; - public const string Alarm = Material.Outlined.Alarm; - public const string AlarmAdd = Material.Outlined.AlarmAdd; - public const string AlarmOff = Material.Outlined.AlarmOff; - public const string AlarmOn = Material.Outlined.AlarmOn; - public const string Album = Material.Outlined.Album; - public const string AlignHorizontalCenter = Material.Outlined.AlignHorizontalCenter; - public const string AlignHorizontalLeft = Material.Outlined.AlignHorizontalLeft; - public const string AlignHorizontalRight = Material.Outlined.AlignHorizontalRight; - public const string AlignVerticalBottom = Material.Outlined.AlignVerticalBottom; - public const string AlignVerticalCenter = Material.Outlined.AlignVerticalCenter; - public const string AlignVerticalTop = Material.Outlined.AlignVerticalTop; - public const string AllInbox = Material.Outlined.AllInbox; - public const string AllInclusive = Material.Outlined.AllInclusive; - public const string AllOut = Material.Outlined.AllOut; - public const string AltRoute = Material.Outlined.AltRoute; - public const string AlternateEmail = Material.Outlined.AlternateEmail; - public const string Analytics = Material.Outlined.Analytics; - public const string Anchor = Material.Outlined.Anchor; - public const string Android = Material.Outlined.Android; - public const string Animation = Material.Outlined.Animation; - public const string Announcement = Material.Outlined.Announcement; - public const string Aod = Material.Outlined.Aod; - public const string Apartment = Material.Outlined.Apartment; - public const string Api = Material.Outlined.Api; - public const string AppBlocking = Material.Outlined.AppBlocking; - public const string AppRegistration = Material.Outlined.AppRegistration; - public const string AppSettingsAlt = Material.Outlined.AppSettingsAlt; - public const string AppShortcut = Material.Outlined.AppShortcut; - public const string Approval = Material.Outlined.Approval; - public const string Apps = Material.Outlined.Apps; - public const string AppsOutage = Material.Outlined.AppsOutage; - public const string Architecture = Material.Outlined.Architecture; - public const string Archive = Material.Outlined.Archive; - public const string AreaChart = Material.Outlined.AreaChart; - public const string ArrowBack = Material.Outlined.ArrowBack; - public const string ArrowBackIos = Material.Outlined.ArrowBackIos; - public const string ArrowBackIosNew = Material.Outlined.ArrowBackIosNew; - public const string ArrowCircleDown = Material.Outlined.ArrowCircleDown; - public const string ArrowCircleLeft = Material.Outlined.ArrowCircleLeft; - public const string ArrowCircleRight = Material.Outlined.ArrowCircleRight; - public const string ArrowCircleUp = Material.Outlined.ArrowCircleUp; - public const string ArrowDownward = Material.Outlined.ArrowDownward; - public const string ArrowDropDown = Material.Outlined.ArrowDropDown; - public const string ArrowDropDownCircle = Material.Outlined.ArrowDropDownCircle; - public const string ArrowDropUp = Material.Outlined.ArrowDropUp; - public const string ArrowForward = Material.Outlined.ArrowForward; - public const string ArrowForwardIos = Material.Outlined.ArrowForwardIos; - public const string ArrowLeft = Material.Outlined.ArrowLeft; - public const string ArrowOutward = Material.Outlined.ArrowOutward; - public const string ArrowRight = Material.Outlined.ArrowRight; - public const string ArrowRightAlt = Material.Outlined.ArrowRightAlt; - public const string ArrowUpward = Material.Outlined.ArrowUpward; - public const string ArtTrack = Material.Outlined.ArtTrack; - public const string Article = Material.Outlined.Article; - public const string AspectRatio = Material.Outlined.AspectRatio; - public const string Assessment = Material.Outlined.Assessment; - public const string Assignment = Material.Outlined.Assignment; - public const string AssignmentInd = Material.Outlined.AssignmentInd; - public const string AssignmentLate = Material.Outlined.AssignmentLate; - public const string AssignmentReturn = Material.Outlined.AssignmentReturn; - public const string AssignmentReturned = Material.Outlined.AssignmentReturned; - public const string AssignmentTurnedIn = Material.Outlined.AssignmentTurnedIn; - public const string AssistWalker = Material.Outlined.AssistWalker; - public const string Assistant = Material.Outlined.Assistant; - public const string AssistantDirection = Material.Outlined.AssistantDirection; - public const string AssistantPhoto = Material.Outlined.AssistantPhoto; - public const string AssuredWorkload = Material.Outlined.AssuredWorkload; - public const string Atm = Material.Outlined.Atm; - public const string AttachEmail = Material.Outlined.AttachEmail; - public const string AttachFile = Material.Outlined.AttachFile; - public const string AttachMoney = Material.Outlined.AttachMoney; - public const string Attachment = Material.Outlined.Attachment; - public const string Attractions = Material.Outlined.Attractions; - public const string Attribution = Material.Outlined.Attribution; - public const string AudioFile = Material.Outlined.AudioFile; - public const string Audiotrack = Material.Outlined.Audiotrack; - public const string AutoAwesome = Material.Outlined.AutoAwesome; - public const string AutoAwesomeMosaic = Material.Outlined.AutoAwesomeMosaic; - public const string AutoAwesomeMotion = Material.Outlined.AutoAwesomeMotion; - public const string AutoDelete = Material.Outlined.AutoDelete; - public const string AutoFixHigh = Material.Outlined.AutoFixHigh; - public const string AutoFixNormal = Material.Outlined.AutoFixNormal; - public const string AutoFixOff = Material.Outlined.AutoFixOff; - public const string AutoGraph = Material.Outlined.AutoGraph; - public const string AutoMode = Material.Outlined.AutoMode; - public const string AutoStories = Material.Outlined.AutoStories; - public const string AutofpsSelect = Material.Outlined.AutofpsSelect; - public const string Autorenew = Material.Outlined.Autorenew; - public const string AvTimer = Material.Outlined.AvTimer; - public const string BabyChangingStation = Material.Outlined.BabyChangingStation; - public const string BackHand = Material.Outlined.BackHand; - public const string Backpack = Material.Outlined.Backpack; - public const string Backspace = Material.Outlined.Backspace; - public const string Backup = Material.Outlined.Backup; - public const string BackupTable = Material.Outlined.BackupTable; - public const string Badge = Material.Outlined.Badge; - public const string BakeryDining = Material.Outlined.BakeryDining; - public const string Balance = Material.Outlined.Balance; - public const string Balcony = Material.Outlined.Balcony; - public const string Ballot = Material.Outlined.Ballot; - public const string BarChart = Material.Outlined.BarChart; - public const string BatchPrediction = Material.Outlined.BatchPrediction; - public const string Bathroom = Material.Outlined.Bathroom; - public const string Bathtub = Material.Outlined.Bathtub; - public const string Battery0Bar = Material.Outlined.Battery0Bar; - public const string Battery1Bar = Material.Outlined.Battery1Bar; - public const string Battery2Bar = Material.Outlined.Battery2Bar; - public const string Battery3Bar = Material.Outlined.Battery3Bar; - public const string Battery4Bar = Material.Outlined.Battery4Bar; - public const string Battery5Bar = Material.Outlined.Battery5Bar; - public const string Battery6Bar = Material.Outlined.Battery6Bar; - public const string BatteryAlert = Material.Outlined.BatteryAlert; - public const string BatteryChargingFull = Material.Outlined.BatteryChargingFull; - public const string BatteryFull = Material.Outlined.BatteryFull; - public const string BatterySaver = Material.Outlined.BatterySaver; - public const string BatteryStd = Material.Outlined.BatteryStd; - public const string BatteryUnknown = Material.Outlined.BatteryUnknown; - public const string BeachAccess = Material.Outlined.BeachAccess; - public const string Bed = Material.Outlined.Bed; - public const string BedroomBaby = Material.Outlined.BedroomBaby; - public const string BedroomChild = Material.Outlined.BedroomChild; - public const string BedroomParent = Material.Outlined.BedroomParent; - public const string Bedtime = Material.Outlined.Bedtime; - public const string BedtimeOff = Material.Outlined.BedtimeOff; - public const string Beenhere = Material.Outlined.Beenhere; - public const string Bento = Material.Outlined.Bento; - public const string BikeScooter = Material.Outlined.BikeScooter; - public const string Biotech = Material.Outlined.Biotech; - public const string Blender = Material.Outlined.Blender; - public const string Blind = Material.Outlined.Blind; - public const string Blinds = Material.Outlined.Blinds; - public const string BlindsClosed = Material.Outlined.BlindsClosed; - public const string Block = Material.Outlined.Block; - public const string Bloodtype = Material.Outlined.Bloodtype; - public const string Bluetooth = Material.Outlined.Bluetooth; - public const string BluetoothAudio = Material.Outlined.BluetoothAudio; - public const string BluetoothConnected = Material.Outlined.BluetoothConnected; - public const string BluetoothDisabled = Material.Outlined.BluetoothDisabled; - public const string BluetoothDrive = Material.Outlined.BluetoothDrive; - public const string BluetoothSearching = Material.Outlined.BluetoothSearching; - public const string BlurCircular = Material.Outlined.BlurCircular; - public const string BlurLinear = Material.Outlined.BlurLinear; - public const string BlurOff = Material.Outlined.BlurOff; - public const string BlurOn = Material.Outlined.BlurOn; - public const string Bolt = Material.Outlined.Bolt; - public const string Book = Material.Outlined.Book; - public const string BookOnline = Material.Outlined.BookOnline; - public const string Bookmark = Material.Outlined.Bookmark; - public const string BookmarkAdd = Material.Outlined.BookmarkAdd; - public const string BookmarkAdded = Material.Outlined.BookmarkAdded; - public const string BookmarkBorder = Material.Outlined.BookmarkBorder; - public const string BookmarkRemove = Material.Outlined.BookmarkRemove; - public const string Bookmarks = Material.Outlined.Bookmarks; - public const string BorderAll = Material.Outlined.BorderAll; - public const string BorderBottom = Material.Outlined.BorderBottom; - public const string BorderClear = Material.Outlined.BorderClear; - public const string BorderColor = Material.Outlined.BorderColor; - public const string BorderHorizontal = Material.Outlined.BorderHorizontal; - public const string BorderInner = Material.Outlined.BorderInner; - public const string BorderLeft = Material.Outlined.BorderLeft; - public const string BorderOuter = Material.Outlined.BorderOuter; - public const string BorderRight = Material.Outlined.BorderRight; - public const string BorderStyle = Material.Outlined.BorderStyle; - public const string BorderTop = Material.Outlined.BorderTop; - public const string BorderVertical = Material.Outlined.BorderVertical; - public const string Boy = Material.Outlined.Boy; - public const string BrandingWatermark = Material.Outlined.BrandingWatermark; - public const string BreakfastDining = Material.Outlined.BreakfastDining; - public const string Brightness1 = Material.Outlined.Brightness1; - public const string Brightness2 = Material.Outlined.Brightness2; - public const string Brightness3 = Material.Outlined.Brightness3; - public const string Brightness4 = Material.Outlined.Brightness4; - public const string Brightness5 = Material.Outlined.Brightness5; - public const string Brightness6 = Material.Outlined.Brightness6; - public const string Brightness7 = Material.Outlined.Brightness7; - public const string BrightnessAuto = Material.Outlined.BrightnessAuto; - public const string BrightnessHigh = Material.Outlined.BrightnessHigh; - public const string BrightnessLow = Material.Outlined.BrightnessLow; - public const string BrightnessMedium = Material.Outlined.BrightnessMedium; - public const string BroadcastOnHome = Material.Outlined.BroadcastOnHome; - public const string BroadcastOnPersonal = Material.Outlined.BroadcastOnPersonal; - public const string BrokenImage = Material.Outlined.BrokenImage; - public const string BrowseGallery = Material.Outlined.BrowseGallery; - public const string BrowserNotSupported = Material.Outlined.BrowserNotSupported; - public const string BrowserUpdated = Material.Outlined.BrowserUpdated; - public const string BrunchDining = Material.Outlined.BrunchDining; - public const string Brush = Material.Outlined.Brush; - public const string BubbleChart = Material.Outlined.BubbleChart; - public const string BugReport = Material.Outlined.BugReport; - public const string Build = Material.Outlined.Build; - public const string BuildCircle = Material.Outlined.BuildCircle; - public const string Bungalow = Material.Outlined.Bungalow; - public const string BurstMode = Material.Outlined.BurstMode; - public const string BusAlert = Material.Outlined.BusAlert; - public const string Business = Material.Outlined.Business; - public const string BusinessCenter = Material.Outlined.BusinessCenter; - public const string Cabin = Material.Outlined.Cabin; - public const string Cable = Material.Outlined.Cable; - public const string Cached = Material.Outlined.Cached; - public const string Cake = Material.Outlined.Cake; - public const string Calculate = Material.Outlined.Calculate; - public const string CalendarMonth = Material.Outlined.CalendarMonth; - public const string CalendarToday = Material.Outlined.CalendarToday; - public const string CalendarViewDay = Material.Outlined.CalendarViewDay; - public const string CalendarViewMonth = Material.Outlined.CalendarViewMonth; - public const string CalendarViewWeek = Material.Outlined.CalendarViewWeek; - public const string Call = Material.Outlined.Call; - public const string CallEnd = Material.Outlined.CallEnd; - public const string CallMade = Material.Outlined.CallMade; - public const string CallMerge = Material.Outlined.CallMerge; - public const string CallMissed = Material.Outlined.CallMissed; - public const string CallMissedOutgoing = Material.Outlined.CallMissedOutgoing; - public const string CallReceived = Material.Outlined.CallReceived; - public const string CallSplit = Material.Outlined.CallSplit; - public const string CallToAction = Material.Outlined.CallToAction; - public const string Camera = Material.Outlined.Camera; - public const string CameraAlt = Material.Outlined.CameraAlt; - public const string CameraEnhance = Material.Outlined.CameraEnhance; - public const string CameraFront = Material.Outlined.CameraFront; - public const string CameraIndoor = Material.Outlined.CameraIndoor; - public const string CameraOutdoor = Material.Outlined.CameraOutdoor; - public const string CameraRear = Material.Outlined.CameraRear; - public const string CameraRoll = Material.Outlined.CameraRoll; - public const string Cameraswitch = Material.Outlined.Cameraswitch; - public const string Campaign = Material.Outlined.Campaign; - public const string Cancel = Material.Outlined.Cancel; - public const string CancelPresentation = Material.Outlined.CancelPresentation; - public const string CancelScheduleSend = Material.Outlined.CancelScheduleSend; - public const string CandlestickChart = Material.Outlined.CandlestickChart; - public const string CarCrash = Material.Outlined.CarCrash; - public const string CarRental = Material.Outlined.CarRental; - public const string CarRepair = Material.Outlined.CarRepair; - public const string CardGiftcard = Material.Outlined.CardGiftcard; - public const string CardMembership = Material.Outlined.CardMembership; - public const string CardTravel = Material.Outlined.CardTravel; - public const string Carpenter = Material.Outlined.Carpenter; - public const string Cases = Material.Outlined.Cases; - public const string Casino = Material.Outlined.Casino; - public const string Cast = Material.Outlined.Cast; - public const string CastConnected = Material.Outlined.CastConnected; - public const string CastForEducation = Material.Outlined.CastForEducation; - public const string Castle = Material.Outlined.Castle; - public const string CatchingPokemon = Material.Outlined.CatchingPokemon; - public const string Category = Material.Outlined.Category; - public const string Celebration = Material.Outlined.Celebration; - public const string CellTower = Material.Outlined.CellTower; - public const string CellWifi = Material.Outlined.CellWifi; - public const string CenterFocusStrong = Material.Outlined.CenterFocusStrong; - public const string CenterFocusWeak = Material.Outlined.CenterFocusWeak; - public const string Chair = Material.Outlined.Chair; - public const string ChairAlt = Material.Outlined.ChairAlt; - public const string Chalet = Material.Outlined.Chalet; - public const string ChangeCircle = Material.Outlined.ChangeCircle; - public const string ChangeHistory = Material.Outlined.ChangeHistory; - public const string ChargingStation = Material.Outlined.ChargingStation; - public const string Chat = Material.Outlined.Chat; - public const string ChatBubble = Material.Outlined.ChatBubble; - public const string ChatBubbleOutline = Material.Outlined.ChatBubbleOutline; - public const string Check = Material.Outlined.Check; - public const string CheckBox = Material.Outlined.CheckBox; - public const string CheckBoxOutlineBlank = Material.Outlined.CheckBoxOutlineBlank; - public const string CheckCircle = Material.Outlined.CheckCircle; - public const string CheckCircleOutline = Material.Outlined.CheckCircleOutline; - public const string Checklist = Material.Outlined.Checklist; - public const string ChecklistRtl = Material.Outlined.ChecklistRtl; - public const string Checkroom = Material.Outlined.Checkroom; - public const string ChevronLeft = Material.Outlined.ChevronLeft; - public const string ChevronRight = Material.Outlined.ChevronRight; - public const string ChildCare = Material.Outlined.ChildCare; - public const string ChildFriendly = Material.Outlined.ChildFriendly; - public const string ChromeReaderMode = Material.Outlined.ChromeReaderMode; - public const string Church = Material.Outlined.Church; - public const string Circle = Material.Outlined.Circle; - public const string CircleNotifications = Material.Outlined.CircleNotifications; - public const string Class = Material.Outlined.Class; - public const string CleanHands = Material.Outlined.CleanHands; - public const string CleaningServices = Material.Outlined.CleaningServices; - public const string Clear = Material.Outlined.Clear; - public const string ClearAll = Material.Outlined.ClearAll; - public const string Close = Material.Outlined.Close; - public const string CloseFullscreen = Material.Outlined.CloseFullscreen; - public const string ClosedCaption = Material.Outlined.ClosedCaption; - public const string ClosedCaptionDisabled = Material.Outlined.ClosedCaptionDisabled; - public const string ClosedCaptionOff = Material.Outlined.ClosedCaptionOff; - public const string Cloud = Material.Outlined.Cloud; - public const string CloudCircle = Material.Outlined.CloudCircle; - public const string CloudDone = Material.Outlined.CloudDone; - public const string CloudDownload = Material.Outlined.CloudDownload; - public const string CloudOff = Material.Outlined.CloudOff; - public const string CloudQueue = Material.Outlined.CloudQueue; - public const string CloudSync = Material.Outlined.CloudSync; - public const string CloudUpload = Material.Outlined.CloudUpload; - public const string Co2 = Material.Outlined.Co2; - public const string CoPresent = Material.Outlined.CoPresent; - public const string Code = Material.Outlined.Code; - public const string CodeOff = Material.Outlined.CodeOff; - public const string Coffee = Material.Outlined.Coffee; - public const string CoffeeMaker = Material.Outlined.CoffeeMaker; - public const string Collections = Material.Outlined.Collections; - public const string CollectionsBookmark = Material.Outlined.CollectionsBookmark; - public const string ColorLens = Material.Outlined.ColorLens; - public const string Colorize = Material.Outlined.Colorize; - public const string Comment = Material.Outlined.Comment; - public const string CommentBank = Material.Outlined.CommentBank; - public const string CommentsDisabled = Material.Outlined.CommentsDisabled; - public const string Commit = Material.Outlined.Commit; - public const string Commute = Material.Outlined.Commute; - public const string Compare = Material.Outlined.Compare; - public const string CompareArrows = Material.Outlined.CompareArrows; - public const string CompassCalibration = Material.Outlined.CompassCalibration; - public const string Compost = Material.Outlined.Compost; - public const string Compress = Material.Outlined.Compress; - public const string Computer = Material.Outlined.Computer; - public const string ConfirmationNumber = Material.Outlined.ConfirmationNumber; - public const string ConnectWithoutContact = Material.Outlined.ConnectWithoutContact; - public const string ConnectedTv = Material.Outlined.ConnectedTv; - public const string ConnectingAirports = Material.Outlined.ConnectingAirports; - public const string Construction = Material.Outlined.Construction; - public const string ContactEmergency = Material.Outlined.ContactEmergency; - public const string ContactMail = Material.Outlined.ContactMail; - public const string ContactPage = Material.Outlined.ContactPage; - public const string ContactPhone = Material.Outlined.ContactPhone; - public const string ContactSupport = Material.Outlined.ContactSupport; - public const string Contactless = Material.Outlined.Contactless; - public const string Contacts = Material.Outlined.Contacts; - public const string ContentCopy = Material.Outlined.ContentCopy; - public const string ContentCut = Material.Outlined.ContentCut; - public const string ContentPaste = Material.Outlined.ContentPaste; - public const string ContentPasteGo = Material.Outlined.ContentPasteGo; - public const string ContentPasteOff = Material.Outlined.ContentPasteOff; - public const string ContentPasteSearch = Material.Outlined.ContentPasteSearch; - public const string Contrast = Material.Outlined.Contrast; - public const string ControlCamera = Material.Outlined.ControlCamera; - public const string ControlPoint = Material.Outlined.ControlPoint; - public const string ControlPointDuplicate = Material.Outlined.ControlPointDuplicate; - public const string Cookie = Material.Outlined.Cookie; - public const string CopyAll = Material.Outlined.CopyAll; - public const string Copyright = Material.Outlined.Copyright; - public const string Coronavirus = Material.Outlined.Coronavirus; - public const string CorporateFare = Material.Outlined.CorporateFare; - public const string Cottage = Material.Outlined.Cottage; - public const string Countertops = Material.Outlined.Countertops; - public const string Create = Material.Outlined.Create; - public const string CreateNewFolder = Material.Outlined.CreateNewFolder; - public const string CreditCard = Material.Outlined.CreditCard; - public const string CreditCardOff = Material.Outlined.CreditCardOff; - public const string CreditScore = Material.Outlined.CreditScore; - public const string Crib = Material.Outlined.Crib; - public const string CrisisAlert = Material.Outlined.CrisisAlert; - public const string Crop = Material.Outlined.Crop; - public const string Crop169 = Material.Outlined.Crop169; - public const string Crop32 = Material.Outlined.Crop32; - public const string Crop54 = Material.Outlined.Crop54; - public const string Crop75 = Material.Outlined.Crop75; - public const string CropDin = Material.Outlined.CropDin; - public const string CropFree = Material.Outlined.CropFree; - public const string CropLandscape = Material.Outlined.CropLandscape; - public const string CropOriginal = Material.Outlined.CropOriginal; - public const string CropPortrait = Material.Outlined.CropPortrait; - public const string CropRotate = Material.Outlined.CropRotate; - public const string CropSquare = Material.Outlined.CropSquare; - public const string CrueltyFree = Material.Outlined.CrueltyFree; - public const string Css = Material.Outlined.Css; - public const string CurrencyBitcoin = Material.Outlined.CurrencyBitcoin; - public const string CurrencyExchange = Material.Outlined.CurrencyExchange; - public const string CurrencyFranc = Material.Outlined.CurrencyFranc; - public const string CurrencyLira = Material.Outlined.CurrencyLira; - public const string CurrencyPound = Material.Outlined.CurrencyPound; - public const string CurrencyRuble = Material.Outlined.CurrencyRuble; - public const string CurrencyRupee = Material.Outlined.CurrencyRupee; - public const string CurrencyYen = Material.Outlined.CurrencyYen; - public const string CurrencyYuan = Material.Outlined.CurrencyYuan; - public const string Curtains = Material.Outlined.Curtains; - public const string CurtainsClosed = Material.Outlined.CurtainsClosed; - public const string Cyclone = Material.Outlined.Cyclone; - public const string Dangerous = Material.Outlined.Dangerous; - public const string DarkMode = Material.Outlined.DarkMode; - public const string Dashboard = Material.Outlined.Dashboard; - public const string DashboardCustomize = Material.Outlined.DashboardCustomize; - public const string DataArray = Material.Outlined.DataArray; - public const string DataExploration = Material.Outlined.DataExploration; - public const string DataObject = Material.Outlined.DataObject; - public const string DataSaverOff = Material.Outlined.DataSaverOff; - public const string DataSaverOn = Material.Outlined.DataSaverOn; - public const string DataThresholding = Material.Outlined.DataThresholding; - public const string DataUsage = Material.Outlined.DataUsage; - public const string Dataset = Material.Outlined.Dataset; - public const string DatasetLinked = Material.Outlined.DatasetLinked; - public const string DateRange = Material.Outlined.DateRange; - public const string Deblur = Material.Outlined.Deblur; - public const string Deck = Material.Outlined.Deck; - public const string Dehaze = Material.Outlined.Dehaze; - public const string Delete = Material.Outlined.Delete; - public const string DeleteForever = Material.Outlined.DeleteForever; - public const string DeleteOutline = Material.Outlined.DeleteOutline; - public const string DeleteSweep = Material.Outlined.DeleteSweep; - public const string DeliveryDining = Material.Outlined.DeliveryDining; - public const string DensityLarge = Material.Outlined.DensityLarge; - public const string DensityMedium = Material.Outlined.DensityMedium; - public const string DensitySmall = Material.Outlined.DensitySmall; - public const string DepartureBoard = Material.Outlined.DepartureBoard; - public const string Description = Material.Outlined.Description; - public const string Deselect = Material.Outlined.Deselect; - public const string DesignServices = Material.Outlined.DesignServices; - public const string Desk = Material.Outlined.Desk; - public const string DesktopAccessDisabled = Material.Outlined.DesktopAccessDisabled; - public const string DesktopMac = Material.Outlined.DesktopMac; - public const string DesktopWindows = Material.Outlined.DesktopWindows; - public const string Details = Material.Outlined.Details; - public const string DeveloperBoard = Material.Outlined.DeveloperBoard; - public const string DeveloperBoardOff = Material.Outlined.DeveloperBoardOff; - public const string DeveloperMode = Material.Outlined.DeveloperMode; - public const string DeviceHub = Material.Outlined.DeviceHub; - public const string DeviceThermostat = Material.Outlined.DeviceThermostat; - public const string DeviceUnknown = Material.Outlined.DeviceUnknown; - public const string Devices = Material.Outlined.Devices; - public const string DevicesFold = Material.Outlined.DevicesFold; - public const string DevicesOther = Material.Outlined.DevicesOther; - public const string DialerSip = Material.Outlined.DialerSip; - public const string Dialpad = Material.Outlined.Dialpad; - public const string Diamond = Material.Outlined.Diamond; - public const string Difference = Material.Outlined.Difference; - public const string Dining = Material.Outlined.Dining; - public const string DinnerDining = Material.Outlined.DinnerDining; - public const string Directions = Material.Outlined.Directions; - public const string DirectionsBike = Material.Outlined.DirectionsBike; - public const string DirectionsBoat = Material.Outlined.DirectionsBoat; - public const string DirectionsBoatFilled = Material.Outlined.DirectionsBoatFilled; - public const string DirectionsBus = Material.Outlined.DirectionsBus; - public const string DirectionsBusFilled = Material.Outlined.DirectionsBusFilled; - public const string DirectionsCar = Material.Outlined.DirectionsCar; - public const string DirectionsCarFilled = Material.Outlined.DirectionsCarFilled; - public const string DirectionsOff = Material.Outlined.DirectionsOff; - public const string DirectionsRailway = Material.Outlined.DirectionsRailway; - public const string DirectionsRailwayFilled = Material.Outlined.DirectionsRailwayFilled; - public const string DirectionsRun = Material.Outlined.DirectionsRun; - public const string DirectionsSubway = Material.Outlined.DirectionsSubway; - public const string DirectionsSubwayFilled = Material.Outlined.DirectionsSubwayFilled; - public const string DirectionsTransit = Material.Outlined.DirectionsTransit; - public const string DirectionsTransitFilled = Material.Outlined.DirectionsTransitFilled; - public const string DirectionsWalk = Material.Outlined.DirectionsWalk; - public const string DirtyLens = Material.Outlined.DirtyLens; - public const string DisabledByDefault = Material.Outlined.DisabledByDefault; - public const string DisabledVisible = Material.Outlined.DisabledVisible; - public const string DiscFull = Material.Outlined.DiscFull; - public const string Discount = Material.Outlined.Discount; - public const string DisplaySettings = Material.Outlined.DisplaySettings; - public const string Diversity1 = Material.Outlined.Diversity1; - public const string Diversity2 = Material.Outlined.Diversity2; - public const string Diversity3 = Material.Outlined.Diversity3; - public const string Dns = Material.Outlined.Dns; - public const string DoDisturb = Material.Outlined.DoDisturb; - public const string DoDisturbAlt = Material.Outlined.DoDisturbAlt; - public const string DoDisturbOff = Material.Outlined.DoDisturbOff; - public const string DoDisturbOn = Material.Outlined.DoDisturbOn; - public const string DoNotDisturb = Material.Outlined.DoNotDisturb; - public const string DoNotDisturbAlt = Material.Outlined.DoNotDisturbAlt; - public const string DoNotDisturbOff = Material.Outlined.DoNotDisturbOff; - public const string DoNotDisturbOn = Material.Outlined.DoNotDisturbOn; - public const string DoNotDisturbOnTotalSilence = Material.Outlined.DoNotDisturbOnTotalSilence; - public const string DoNotStep = Material.Outlined.DoNotStep; - public const string DoNotTouch = Material.Outlined.DoNotTouch; - public const string Dock = Material.Outlined.Dock; - public const string DocumentScanner = Material.Outlined.DocumentScanner; - public const string Domain = Material.Outlined.Domain; - public const string DomainAdd = Material.Outlined.DomainAdd; - public const string DomainDisabled = Material.Outlined.DomainDisabled; - public const string DomainVerification = Material.Outlined.DomainVerification; - public const string Done = Material.Outlined.Done; - public const string DoneAll = Material.Outlined.DoneAll; - public const string DoneOutline = Material.Outlined.DoneOutline; - public const string DonutLarge = Material.Outlined.DonutLarge; - public const string DonutSmall = Material.Outlined.DonutSmall; - public const string DoorBack = Material.Outlined.DoorBack; - public const string DoorFront = Material.Outlined.DoorFront; - public const string DoorSliding = Material.Outlined.DoorSliding; - public const string Doorbell = Material.Outlined.Doorbell; - public const string DoubleArrow = Material.Outlined.DoubleArrow; - public const string DownhillSkiing = Material.Outlined.DownhillSkiing; - public const string Download = Material.Outlined.Download; - public const string DownloadDone = Material.Outlined.DownloadDone; - public const string DownloadForOffline = Material.Outlined.DownloadForOffline; - public const string Downloading = Material.Outlined.Downloading; - public const string Drafts = Material.Outlined.Drafts; - public const string DragHandle = Material.Outlined.DragHandle; - public const string DragIndicator = Material.Outlined.DragIndicator; - public const string Draw = Material.Outlined.Draw; - public const string DriveEta = Material.Outlined.DriveEta; - public const string DriveFileMove = Material.Outlined.DriveFileMove; - public const string DriveFileMoveRtl = Material.Outlined.DriveFileMoveRtl; - public const string DriveFileRenameOutline = Material.Outlined.DriveFileRenameOutline; - public const string DriveFolderUpload = Material.Outlined.DriveFolderUpload; - public const string Dry = Material.Outlined.Dry; - public const string DryCleaning = Material.Outlined.DryCleaning; - public const string Duo = Material.Outlined.Duo; - public const string Dvr = Material.Outlined.Dvr; - public const string DynamicFeed = Material.Outlined.DynamicFeed; - public const string DynamicForm = Material.Outlined.DynamicForm; - public const string EMobiledata = Material.Outlined.EMobiledata; - public const string Earbuds = Material.Outlined.Earbuds; - public const string EarbudsBattery = Material.Outlined.EarbudsBattery; - public const string East = Material.Outlined.East; - public const string EdgesensorHigh = Material.Outlined.EdgesensorHigh; - public const string EdgesensorLow = Material.Outlined.EdgesensorLow; - public const string Edit = Material.Outlined.Edit; - public const string EditAttributes = Material.Outlined.EditAttributes; - public const string EditCalendar = Material.Outlined.EditCalendar; - public const string EditLocation = Material.Outlined.EditLocation; - public const string EditLocationAlt = Material.Outlined.EditLocationAlt; - public const string EditNote = Material.Outlined.EditNote; - public const string EditNotifications = Material.Outlined.EditNotifications; - public const string EditOff = Material.Outlined.EditOff; - public const string EditRoad = Material.Outlined.EditRoad; - public const string Egg = Material.Outlined.Egg; - public const string EggAlt = Material.Outlined.EggAlt; - public const string Eject = Material.Outlined.Eject; - public const string Elderly = Material.Outlined.Elderly; - public const string ElderlyWoman = Material.Outlined.ElderlyWoman; - public const string ElectricBike = Material.Outlined.ElectricBike; - public const string ElectricBolt = Material.Outlined.ElectricBolt; - public const string ElectricCar = Material.Outlined.ElectricCar; - public const string ElectricMeter = Material.Outlined.ElectricMeter; - public const string ElectricMoped = Material.Outlined.ElectricMoped; - public const string ElectricRickshaw = Material.Outlined.ElectricRickshaw; - public const string ElectricScooter = Material.Outlined.ElectricScooter; - public const string ElectricalServices = Material.Outlined.ElectricalServices; - public const string Elevator = Material.Outlined.Elevator; - public const string Email = Material.Outlined.Email; - public const string Emergency = Material.Outlined.Emergency; - public const string EmergencyRecording = Material.Outlined.EmergencyRecording; - public const string EmergencyShare = Material.Outlined.EmergencyShare; - public const string EmojiEmotions = Material.Outlined.EmojiEmotions; - public const string EmojiEvents = Material.Outlined.EmojiEvents; - public const string EmojiFoodBeverage = Material.Outlined.EmojiFoodBeverage; - public const string EmojiNature = Material.Outlined.EmojiNature; - public const string EmojiObjects = Material.Outlined.EmojiObjects; - public const string EmojiPeople = Material.Outlined.EmojiPeople; - public const string EmojiSymbols = Material.Outlined.EmojiSymbols; - public const string EmojiTransportation = Material.Outlined.EmojiTransportation; - public const string EnergySavingsLeaf = Material.Outlined.EnergySavingsLeaf; - public const string Engineering = Material.Outlined.Engineering; - public const string EnhancedEncryption = Material.Outlined.EnhancedEncryption; - public const string Equalizer = Material.Outlined.Equalizer; - public const string Error = Material.Outlined.Error; - public const string ErrorOutline = Material.Outlined.ErrorOutline; - public const string Escalator = Material.Outlined.Escalator; - public const string EscalatorWarning = Material.Outlined.EscalatorWarning; - public const string Euro = Material.Outlined.Euro; - public const string EuroSymbol = Material.Outlined.EuroSymbol; - public const string EvStation = Material.Outlined.EvStation; - public const string Event = Material.Outlined.Event; - public const string EventAvailable = Material.Outlined.EventAvailable; - public const string EventBusy = Material.Outlined.EventBusy; - public const string EventNote = Material.Outlined.EventNote; - public const string EventRepeat = Material.Outlined.EventRepeat; - public const string EventSeat = Material.Outlined.EventSeat; - public const string ExitToApp = Material.Outlined.ExitToApp; - public const string Expand = Material.Outlined.Expand; - public const string ExpandCircleDown = Material.Outlined.ExpandCircleDown; - public const string ExpandLess = Material.Outlined.ExpandLess; - public const string ExpandMore = Material.Outlined.ExpandMore; - public const string Explicit = Material.Outlined.Explicit; - public const string Explore = Material.Outlined.Explore; - public const string ExploreOff = Material.Outlined.ExploreOff; - public const string Exposure = Material.Outlined.Exposure; - public const string ExposureNeg1 = Material.Outlined.ExposureNeg1; - public const string ExposureNeg2 = Material.Outlined.ExposureNeg2; - public const string ExposurePlus1 = Material.Outlined.ExposurePlus1; - public const string ExposurePlus2 = Material.Outlined.ExposurePlus2; - public const string ExposureZero = Material.Outlined.ExposureZero; - public const string Extension = Material.Outlined.Extension; - public const string ExtensionOff = Material.Outlined.ExtensionOff; - public const string Face = Material.Outlined.Face; - public const string Face2 = Material.Outlined.Face2; - public const string Face3 = Material.Outlined.Face3; - public const string Face4 = Material.Outlined.Face4; - public const string Face5 = Material.Outlined.Face5; - public const string Face6 = Material.Outlined.Face6; - public const string FaceRetouchingNatural = Material.Outlined.FaceRetouchingNatural; - public const string FaceRetouchingOff = Material.Outlined.FaceRetouchingOff; - public const string FactCheck = Material.Outlined.FactCheck; - public const string Factory = Material.Outlined.Factory; - public const string FamilyRestroom = Material.Outlined.FamilyRestroom; - public const string FastForward = Material.Outlined.FastForward; - public const string FastRewind = Material.Outlined.FastRewind; - public const string Fastfood = Material.Outlined.Fastfood; - public const string Favorite = Material.Outlined.Favorite; - public const string FavoriteBorder = Material.Outlined.FavoriteBorder; - public const string Fax = Material.Outlined.Fax; - public const string FeaturedPlayList = Material.Outlined.FeaturedPlayList; - public const string FeaturedVideo = Material.Outlined.FeaturedVideo; - public const string Feed = Material.Outlined.Feed; - public const string Feedback = Material.Outlined.Feedback; - public const string Female = Material.Outlined.Female; - public const string Fence = Material.Outlined.Fence; - public const string Festival = Material.Outlined.Festival; - public const string FiberDvr = Material.Outlined.FiberDvr; - public const string FiberManualRecord = Material.Outlined.FiberManualRecord; - public const string FiberNew = Material.Outlined.FiberNew; - public const string FiberPin = Material.Outlined.FiberPin; - public const string FiberSmartRecord = Material.Outlined.FiberSmartRecord; - public const string FileCopy = Material.Outlined.FileCopy; - public const string FileDownload = Material.Outlined.FileDownload; - public const string FileDownloadDone = Material.Outlined.FileDownloadDone; - public const string FileDownloadOff = Material.Outlined.FileDownloadOff; - public const string FileOpen = Material.Outlined.FileOpen; - public const string FilePresent = Material.Outlined.FilePresent; - public const string FileUpload = Material.Outlined.FileUpload; - public const string Filter = Material.Outlined.Filter; - public const string Filter1 = Material.Outlined.Filter1; - public const string Filter2 = Material.Outlined.Filter2; - public const string Filter3 = Material.Outlined.Filter3; - public const string Filter4 = Material.Outlined.Filter4; - public const string Filter5 = Material.Outlined.Filter5; - public const string Filter6 = Material.Outlined.Filter6; - public const string Filter7 = Material.Outlined.Filter7; - public const string Filter8 = Material.Outlined.Filter8; - public const string Filter9 = Material.Outlined.Filter9; - public const string Filter9Plus = Material.Outlined.Filter9Plus; - public const string FilterAlt = Material.Outlined.FilterAlt; - public const string FilterAltOff = Material.Outlined.FilterAltOff; - public const string FilterBAndW = Material.Outlined.FilterBAndW; - public const string FilterCenterFocus = Material.Outlined.FilterCenterFocus; - public const string FilterDrama = Material.Outlined.FilterDrama; - public const string FilterFrames = Material.Outlined.FilterFrames; - public const string FilterHdr = Material.Outlined.FilterHdr; - public const string FilterList = Material.Outlined.FilterList; - public const string FilterListOff = Material.Outlined.FilterListOff; - public const string FilterNone = Material.Outlined.FilterNone; - public const string FilterTiltShift = Material.Outlined.FilterTiltShift; - public const string FilterVintage = Material.Outlined.FilterVintage; - public const string FindInPage = Material.Outlined.FindInPage; - public const string FindReplace = Material.Outlined.FindReplace; - public const string Fingerprint = Material.Outlined.Fingerprint; - public const string FireExtinguisher = Material.Outlined.FireExtinguisher; - public const string FireHydrantAlt = Material.Outlined.FireHydrantAlt; - public const string FireTruck = Material.Outlined.FireTruck; - public const string Fireplace = Material.Outlined.Fireplace; - public const string FirstPage = Material.Outlined.FirstPage; - public const string FitScreen = Material.Outlined.FitScreen; - public const string Fitbit = Material.Outlined.Fitbit; - public const string FitnessCenter = Material.Outlined.FitnessCenter; - public const string Flag = Material.Outlined.Flag; - public const string FlagCircle = Material.Outlined.FlagCircle; - public const string Flaky = Material.Outlined.Flaky; - public const string Flare = Material.Outlined.Flare; - public const string FlashAuto = Material.Outlined.FlashAuto; - public const string FlashOff = Material.Outlined.FlashOff; - public const string FlashOn = Material.Outlined.FlashOn; - public const string FlashlightOff = Material.Outlined.FlashlightOff; - public const string FlashlightOn = Material.Outlined.FlashlightOn; - public const string Flatware = Material.Outlined.Flatware; - public const string Flight = Material.Outlined.Flight; - public const string FlightClass = Material.Outlined.FlightClass; - public const string FlightLand = Material.Outlined.FlightLand; - public const string FlightTakeoff = Material.Outlined.FlightTakeoff; - public const string Flip = Material.Outlined.Flip; - public const string FlipCameraAndroid = Material.Outlined.FlipCameraAndroid; - public const string FlipCameraIos = Material.Outlined.FlipCameraIos; - public const string FlipToBack = Material.Outlined.FlipToBack; - public const string FlipToFront = Material.Outlined.FlipToFront; - public const string Flood = Material.Outlined.Flood; - public const string Fluorescent = Material.Outlined.Fluorescent; - public const string FlutterDash = Material.Outlined.FlutterDash; - public const string FmdBad = Material.Outlined.FmdBad; - public const string FmdGood = Material.Outlined.FmdGood; - public const string Folder = Material.Outlined.Folder; - public const string FolderCopy = Material.Outlined.FolderCopy; - public const string FolderDelete = Material.Outlined.FolderDelete; - public const string FolderOff = Material.Outlined.FolderOff; - public const string FolderOpen = Material.Outlined.FolderOpen; - public const string FolderShared = Material.Outlined.FolderShared; - public const string FolderSpecial = Material.Outlined.FolderSpecial; - public const string FolderZip = Material.Outlined.FolderZip; - public const string FollowTheSigns = Material.Outlined.FollowTheSigns; - public const string FontDownload = Material.Outlined.FontDownload; - public const string FontDownloadOff = Material.Outlined.FontDownloadOff; - public const string FoodBank = Material.Outlined.FoodBank; - public const string Forest = Material.Outlined.Forest; - public const string ForkLeft = Material.Outlined.ForkLeft; - public const string ForkRight = Material.Outlined.ForkRight; - public const string FormatAlignCenter = Material.Outlined.FormatAlignCenter; - public const string FormatAlignJustify = Material.Outlined.FormatAlignJustify; - public const string FormatAlignLeft = Material.Outlined.FormatAlignLeft; - public const string FormatAlignRight = Material.Outlined.FormatAlignRight; - public const string FormatBold = Material.Outlined.FormatBold; - public const string FormatClear = Material.Outlined.FormatClear; - public const string FormatColorFill = Material.Outlined.FormatColorFill; - public const string FormatColorReset = Material.Outlined.FormatColorReset; - public const string FormatColorText = Material.Outlined.FormatColorText; - public const string FormatIndentDecrease = Material.Outlined.FormatIndentDecrease; - public const string FormatIndentIncrease = Material.Outlined.FormatIndentIncrease; - public const string FormatItalic = Material.Outlined.FormatItalic; - public const string FormatLineSpacing = Material.Outlined.FormatLineSpacing; - public const string FormatListBulleted = Material.Outlined.FormatListBulleted; - public const string FormatListNumbered = Material.Outlined.FormatListNumbered; - public const string FormatListNumberedRtl = Material.Outlined.FormatListNumberedRtl; - public const string FormatOverline = Material.Outlined.FormatOverline; - public const string FormatPaint = Material.Outlined.FormatPaint; - public const string FormatQuote = Material.Outlined.FormatQuote; - public const string FormatShapes = Material.Outlined.FormatShapes; - public const string FormatSize = Material.Outlined.FormatSize; - public const string FormatStrikethrough = Material.Outlined.FormatStrikethrough; - public const string FormatTextdirectionLToR = Material.Outlined.FormatTextdirectionLToR; - public const string FormatTextdirectionRToL = Material.Outlined.FormatTextdirectionRToL; - public const string FormatUnderlined = Material.Outlined.FormatUnderlined; - public const string Fort = Material.Outlined.Fort; - public const string Forum = Material.Outlined.Forum; - public const string Forward = Material.Outlined.Forward; - public const string Forward10 = Material.Outlined.Forward10; - public const string Forward30 = Material.Outlined.Forward30; - public const string Forward5 = Material.Outlined.Forward5; - public const string ForwardToInbox = Material.Outlined.ForwardToInbox; - public const string Foundation = Material.Outlined.Foundation; - public const string FreeBreakfast = Material.Outlined.FreeBreakfast; - public const string FreeCancellation = Material.Outlined.FreeCancellation; - public const string FrontHand = Material.Outlined.FrontHand; - public const string Fullscreen = Material.Outlined.Fullscreen; - public const string FullscreenExit = Material.Outlined.FullscreenExit; - public const string Functions = Material.Outlined.Functions; - public const string GMobiledata = Material.Outlined.GMobiledata; - public const string GTranslate = Material.Outlined.GTranslate; - public const string Gamepad = Material.Outlined.Gamepad; - public const string Games = Material.Outlined.Games; - public const string Garage = Material.Outlined.Garage; - public const string GasMeter = Material.Outlined.GasMeter; - public const string Gavel = Material.Outlined.Gavel; - public const string GeneratingTokens = Material.Outlined.GeneratingTokens; - public const string Gesture = Material.Outlined.Gesture; - public const string GetApp = Material.Outlined.GetApp; - public const string Gif = Material.Outlined.Gif; - public const string GifBox = Material.Outlined.GifBox; - public const string Girl = Material.Outlined.Girl; - public const string Gite = Material.Outlined.Gite; - public const string GolfCourse = Material.Outlined.GolfCourse; - public const string GppBad = Material.Outlined.GppBad; - public const string GppGood = Material.Outlined.GppGood; - public const string GppMaybe = Material.Outlined.GppMaybe; - public const string GpsFixed = Material.Outlined.GpsFixed; - public const string GpsNotFixed = Material.Outlined.GpsNotFixed; - public const string GpsOff = Material.Outlined.GpsOff; - public const string Grade = Material.Outlined.Grade; - public const string Gradient = Material.Outlined.Gradient; - public const string Grading = Material.Outlined.Grading; - public const string Grain = Material.Outlined.Grain; - public const string GraphicEq = Material.Outlined.GraphicEq; - public const string Grass = Material.Outlined.Grass; - public const string Grid3x3 = Material.Outlined.Grid3x3; - public const string Grid4x4 = Material.Outlined.Grid4x4; - public const string GridGoldenratio = Material.Outlined.GridGoldenratio; - public const string GridOff = Material.Outlined.GridOff; - public const string GridOn = Material.Outlined.GridOn; - public const string GridView = Material.Outlined.GridView; - public const string Group = Material.Outlined.Group; - public const string GroupAdd = Material.Outlined.GroupAdd; - public const string GroupOff = Material.Outlined.GroupOff; - public const string GroupRemove = Material.Outlined.GroupRemove; - public const string GroupWork = Material.Outlined.GroupWork; - public const string Groups = Material.Outlined.Groups; - public const string Groups2 = Material.Outlined.Groups2; - public const string Groups3 = Material.Outlined.Groups3; - public const string HMobiledata = Material.Outlined.HMobiledata; - public const string HPlusMobiledata = Material.Outlined.HPlusMobiledata; - public const string Hail = Material.Outlined.Hail; - public const string Handshake = Material.Outlined.Handshake; - public const string Handyman = Material.Outlined.Handyman; - public const string Hardware = Material.Outlined.Hardware; - public const string Hd = Material.Outlined.Hd; - public const string HdrAuto = Material.Outlined.HdrAuto; - public const string HdrAutoSelect = Material.Outlined.HdrAutoSelect; - public const string HdrEnhancedSelect = Material.Outlined.HdrEnhancedSelect; - public const string HdrOff = Material.Outlined.HdrOff; - public const string HdrOffSelect = Material.Outlined.HdrOffSelect; - public const string HdrOn = Material.Outlined.HdrOn; - public const string HdrOnSelect = Material.Outlined.HdrOnSelect; - public const string HdrPlus = Material.Outlined.HdrPlus; - public const string HdrStrong = Material.Outlined.HdrStrong; - public const string HdrWeak = Material.Outlined.HdrWeak; - public const string Headphones = Material.Outlined.Headphones; - public const string HeadphonesBattery = Material.Outlined.HeadphonesBattery; - public const string Headset = Material.Outlined.Headset; - public const string HeadsetMic = Material.Outlined.HeadsetMic; - public const string HeadsetOff = Material.Outlined.HeadsetOff; - public const string Healing = Material.Outlined.Healing; - public const string HealthAndSafety = Material.Outlined.HealthAndSafety; - public const string Hearing = Material.Outlined.Hearing; - public const string HearingDisabled = Material.Outlined.HearingDisabled; - public const string HeartBroken = Material.Outlined.HeartBroken; - public const string HeatPump = Material.Outlined.HeatPump; - public const string Height = Material.Outlined.Height; - public const string Help = Material.Outlined.Help; - public const string HelpCenter = Material.Outlined.HelpCenter; - public const string HelpOutline = Material.Outlined.HelpOutline; - public const string Hevc = Material.Outlined.Hevc; - public const string Hexagon = Material.Outlined.Hexagon; - public const string HideImage = Material.Outlined.HideImage; - public const string HideSource = Material.Outlined.HideSource; - public const string HighQuality = Material.Outlined.HighQuality; - public const string Highlight = Material.Outlined.Highlight; - public const string HighlightAlt = Material.Outlined.HighlightAlt; - public const string HighlightOff = Material.Outlined.HighlightOff; - public const string Hiking = Material.Outlined.Hiking; - public const string History = Material.Outlined.History; - public const string HistoryEdu = Material.Outlined.HistoryEdu; - public const string HistoryToggleOff = Material.Outlined.HistoryToggleOff; - public const string Hive = Material.Outlined.Hive; - public const string Hls = Material.Outlined.Hls; - public const string HlsOff = Material.Outlined.HlsOff; - public const string HolidayVillage = Material.Outlined.HolidayVillage; - public const string Home = Material.Outlined.Home; - public const string HomeMax = Material.Outlined.HomeMax; - public const string HomeMini = Material.Outlined.HomeMini; - public const string HomeRepairService = Material.Outlined.HomeRepairService; - public const string HomeWork = Material.Outlined.HomeWork; - public const string HorizontalDistribute = Material.Outlined.HorizontalDistribute; - public const string HorizontalRule = Material.Outlined.HorizontalRule; - public const string HorizontalSplit = Material.Outlined.HorizontalSplit; - public const string HotTub = Material.Outlined.HotTub; - public const string Hotel = Material.Outlined.Hotel; - public const string HotelClass = Material.Outlined.HotelClass; - public const string HourglassBottom = Material.Outlined.HourglassBottom; - public const string HourglassDisabled = Material.Outlined.HourglassDisabled; - public const string HourglassEmpty = Material.Outlined.HourglassEmpty; - public const string HourglassFull = Material.Outlined.HourglassFull; - public const string HourglassTop = Material.Outlined.HourglassTop; - public const string House = Material.Outlined.House; - public const string HouseSiding = Material.Outlined.HouseSiding; - public const string Houseboat = Material.Outlined.Houseboat; - public const string HowToReg = Material.Outlined.HowToReg; - public const string HowToVote = Material.Outlined.HowToVote; - public const string Html = Material.Outlined.Html; - public const string Http = Material.Outlined.Http; - public const string Https = Material.Outlined.Https; - public const string Hub = Material.Outlined.Hub; - public const string Hvac = Material.Outlined.Hvac; - public const string IceSkating = Material.Outlined.IceSkating; - public const string Icecream = Material.Outlined.Icecream; - public const string Image = Material.Outlined.Image; - public const string ImageAspectRatio = Material.Outlined.ImageAspectRatio; - public const string ImageNotSupported = Material.Outlined.ImageNotSupported; - public const string ImageSearch = Material.Outlined.ImageSearch; - public const string ImagesearchRoller = Material.Outlined.ImagesearchRoller; - public const string ImportContacts = Material.Outlined.ImportContacts; - public const string ImportExport = Material.Outlined.ImportExport; - public const string ImportantDevices = Material.Outlined.ImportantDevices; - public const string Inbox = Material.Outlined.Inbox; - public const string IncompleteCircle = Material.Outlined.IncompleteCircle; - public const string IndeterminateCheckBox = Material.Outlined.IndeterminateCheckBox; - public const string Info = Material.Outlined.Info; - public const string Input = Material.Outlined.Input; - public const string InsertChart = Material.Outlined.InsertChart; - public const string InsertChartOutlined = Material.Outlined.InsertChartOutlined; - public const string InsertComment = Material.Outlined.InsertComment; - public const string InsertDriveFile = Material.Outlined.InsertDriveFile; - public const string InsertEmoticon = Material.Outlined.InsertEmoticon; - public const string InsertInvitation = Material.Outlined.InsertInvitation; - public const string InsertLink = Material.Outlined.InsertLink; - public const string InsertPageBreak = Material.Outlined.InsertPageBreak; - public const string InsertPhoto = Material.Outlined.InsertPhoto; - public const string Insights = Material.Outlined.Insights; - public const string InstallDesktop = Material.Outlined.InstallDesktop; - public const string InstallMobile = Material.Outlined.InstallMobile; - public const string IntegrationInstructions = Material.Outlined.IntegrationInstructions; - public const string Interests = Material.Outlined.Interests; - public const string InterpreterMode = Material.Outlined.InterpreterMode; - public const string Inventory = Material.Outlined.Inventory; - public const string Inventory2 = Material.Outlined.Inventory2; - public const string InvertColors = Material.Outlined.InvertColors; - public const string InvertColorsOff = Material.Outlined.InvertColorsOff; - public const string IosShare = Material.Outlined.IosShare; - public const string Iron = Material.Outlined.Iron; - public const string Iso = Material.Outlined.Iso; - public const string Javascript = Material.Outlined.Javascript; - public const string JoinFull = Material.Outlined.JoinFull; - public const string JoinInner = Material.Outlined.JoinInner; - public const string JoinLeft = Material.Outlined.JoinLeft; - public const string JoinRight = Material.Outlined.JoinRight; - public const string Kayaking = Material.Outlined.Kayaking; - public const string KebabDining = Material.Outlined.KebabDining; - public const string Key = Material.Outlined.Key; - public const string KeyOff = Material.Outlined.KeyOff; - public const string Keyboard = Material.Outlined.Keyboard; - public const string KeyboardAlt = Material.Outlined.KeyboardAlt; - public const string KeyboardArrowDown = Material.Outlined.KeyboardArrowDown; - public const string KeyboardArrowLeft = Material.Outlined.KeyboardArrowLeft; - public const string KeyboardArrowRight = Material.Outlined.KeyboardArrowRight; - public const string KeyboardArrowUp = Material.Outlined.KeyboardArrowUp; - public const string KeyboardBackspace = Material.Outlined.KeyboardBackspace; - public const string KeyboardCapslock = Material.Outlined.KeyboardCapslock; - public const string KeyboardCommandKey = Material.Outlined.KeyboardCommandKey; - public const string KeyboardControlKey = Material.Outlined.KeyboardControlKey; - public const string KeyboardDoubleArrowDown = Material.Outlined.KeyboardDoubleArrowDown; - public const string KeyboardDoubleArrowLeft = Material.Outlined.KeyboardDoubleArrowLeft; - public const string KeyboardDoubleArrowRight = Material.Outlined.KeyboardDoubleArrowRight; - public const string KeyboardDoubleArrowUp = Material.Outlined.KeyboardDoubleArrowUp; - public const string KeyboardHide = Material.Outlined.KeyboardHide; - public const string KeyboardOptionKey = Material.Outlined.KeyboardOptionKey; - public const string KeyboardReturn = Material.Outlined.KeyboardReturn; - public const string KeyboardTab = Material.Outlined.KeyboardTab; - public const string KeyboardVoice = Material.Outlined.KeyboardVoice; - public const string KingBed = Material.Outlined.KingBed; - public const string Kitchen = Material.Outlined.Kitchen; - public const string Kitesurfing = Material.Outlined.Kitesurfing; - public const string Label = Material.Outlined.Label; - public const string LabelImportant = Material.Outlined.LabelImportant; - public const string LabelOff = Material.Outlined.LabelOff; - public const string Lan = Material.Outlined.Lan; - public const string Landscape = Material.Outlined.Landscape; - public const string Landslide = Material.Outlined.Landslide; - public const string Language = Material.Outlined.Language; - public const string Laptop = Material.Outlined.Laptop; - public const string LaptopChromebook = Material.Outlined.LaptopChromebook; - public const string LaptopMac = Material.Outlined.LaptopMac; - public const string LaptopWindows = Material.Outlined.LaptopWindows; - public const string LastPage = Material.Outlined.LastPage; - public const string Launch = Material.Outlined.Launch; - public const string Layers = Material.Outlined.Layers; - public const string LayersClear = Material.Outlined.LayersClear; - public const string Leaderboard = Material.Outlined.Leaderboard; - public const string LeakAdd = Material.Outlined.LeakAdd; - public const string LeakRemove = Material.Outlined.LeakRemove; - public const string LegendToggle = Material.Outlined.LegendToggle; - public const string Lens = Material.Outlined.Lens; - public const string LensBlur = Material.Outlined.LensBlur; - public const string LibraryAdd = Material.Outlined.LibraryAdd; - public const string LibraryAddCheck = Material.Outlined.LibraryAddCheck; - public const string LibraryBooks = Material.Outlined.LibraryBooks; - public const string LibraryMusic = Material.Outlined.LibraryMusic; - public const string Light = Material.Outlined.Light; - public const string LightMode = Material.Outlined.LightMode; - public const string Lightbulb = Material.Outlined.Lightbulb; - public const string LightbulbCircle = Material.Outlined.LightbulbCircle; - public const string LineAxis = Material.Outlined.LineAxis; - public const string LineStyle = Material.Outlined.LineStyle; - public const string LineWeight = Material.Outlined.LineWeight; - public const string LinearScale = Material.Outlined.LinearScale; - public const string Link = Material.Outlined.Link; - public const string LinkOff = Material.Outlined.LinkOff; - public const string LinkedCamera = Material.Outlined.LinkedCamera; - public const string Liquor = Material.Outlined.Liquor; - public const string List = Material.Outlined.List; - public const string ListAlt = Material.Outlined.ListAlt; - public const string LiveHelp = Material.Outlined.LiveHelp; - public const string LiveTv = Material.Outlined.LiveTv; - public const string Living = Material.Outlined.Living; - public const string LocalActivity = Material.Outlined.LocalActivity; - public const string LocalAirport = Material.Outlined.LocalAirport; - public const string LocalAtm = Material.Outlined.LocalAtm; - public const string LocalBar = Material.Outlined.LocalBar; - public const string LocalCafe = Material.Outlined.LocalCafe; - public const string LocalCarWash = Material.Outlined.LocalCarWash; - public const string LocalConvenienceStore = Material.Outlined.LocalConvenienceStore; - public const string LocalDining = Material.Outlined.LocalDining; - public const string LocalDrink = Material.Outlined.LocalDrink; - public const string LocalFireDepartment = Material.Outlined.LocalFireDepartment; - public const string LocalFlorist = Material.Outlined.LocalFlorist; - public const string LocalGasStation = Material.Outlined.LocalGasStation; - public const string LocalGroceryStore = Material.Outlined.LocalGroceryStore; - public const string LocalHospital = Material.Outlined.LocalHospital; - public const string LocalHotel = Material.Outlined.LocalHotel; - public const string LocalLaundryService = Material.Outlined.LocalLaundryService; - public const string LocalLibrary = Material.Outlined.LocalLibrary; - public const string LocalMall = Material.Outlined.LocalMall; - public const string LocalMovies = Material.Outlined.LocalMovies; - public const string LocalOffer = Material.Outlined.LocalOffer; - public const string LocalParking = Material.Outlined.LocalParking; - public const string LocalPharmacy = Material.Outlined.LocalPharmacy; - public const string LocalPhone = Material.Outlined.LocalPhone; - public const string LocalPizza = Material.Outlined.LocalPizza; - public const string LocalPlay = Material.Outlined.LocalPlay; - public const string LocalPolice = Material.Outlined.LocalPolice; - public const string LocalPostOffice = Material.Outlined.LocalPostOffice; - public const string LocalPrintshop = Material.Outlined.LocalPrintshop; - public const string LocalSee = Material.Outlined.LocalSee; - public const string LocalShipping = Material.Outlined.LocalShipping; - public const string LocalTaxi = Material.Outlined.LocalTaxi; - public const string LocationCity = Material.Outlined.LocationCity; - public const string LocationDisabled = Material.Outlined.LocationDisabled; - public const string LocationOff = Material.Outlined.LocationOff; - public const string LocationOn = Material.Outlined.LocationOn; - public const string LocationSearching = Material.Outlined.LocationSearching; - public const string Lock = Material.Outlined.Lock; - public const string LockClock = Material.Outlined.LockClock; - public const string LockOpen = Material.Outlined.LockOpen; - public const string LockPerson = Material.Outlined.LockPerson; - public const string LockReset = Material.Outlined.LockReset; - public const string Login = Material.Outlined.Login; - public const string LogoDev = Material.Outlined.LogoDev; - public const string Logout = Material.Outlined.Logout; - public const string Looks = Material.Outlined.Looks; - public const string Looks3 = Material.Outlined.Looks3; - public const string Looks4 = Material.Outlined.Looks4; - public const string Looks5 = Material.Outlined.Looks5; - public const string Looks6 = Material.Outlined.Looks6; - public const string LooksOne = Material.Outlined.LooksOne; - public const string LooksTwo = Material.Outlined.LooksTwo; - public const string Loop = Material.Outlined.Loop; - public const string Loupe = Material.Outlined.Loupe; - public const string LowPriority = Material.Outlined.LowPriority; - public const string Loyalty = Material.Outlined.Loyalty; - public const string LteMobiledata = Material.Outlined.LteMobiledata; - public const string LtePlusMobiledata = Material.Outlined.LtePlusMobiledata; - public const string Luggage = Material.Outlined.Luggage; - public const string LunchDining = Material.Outlined.LunchDining; - public const string Lyrics = Material.Outlined.Lyrics; - public const string MacroOff = Material.Outlined.MacroOff; - public const string Mail = Material.Outlined.Mail; - public const string MailLock = Material.Outlined.MailLock; - public const string MailOutline = Material.Outlined.MailOutline; - public const string Male = Material.Outlined.Male; - public const string Man = Material.Outlined.Man; - public const string Man2 = Material.Outlined.Man2; - public const string Man3 = Material.Outlined.Man3; - public const string Man4 = Material.Outlined.Man4; - public const string ManageAccounts = Material.Outlined.ManageAccounts; - public const string ManageHistory = Material.Outlined.ManageHistory; - public const string ManageSearch = Material.Outlined.ManageSearch; - public const string Map = Material.Outlined.Map; - public const string MapsHomeWork = Material.Outlined.MapsHomeWork; - public const string MapsUgc = Material.Outlined.MapsUgc; - public const string Margin = Material.Outlined.Margin; - public const string MarkAsUnread = Material.Outlined.MarkAsUnread; - public const string MarkChatRead = Material.Outlined.MarkChatRead; - public const string MarkChatUnread = Material.Outlined.MarkChatUnread; - public const string MarkEmailRead = Material.Outlined.MarkEmailRead; - public const string MarkEmailUnread = Material.Outlined.MarkEmailUnread; - public const string MarkUnreadChatAlt = Material.Outlined.MarkUnreadChatAlt; - public const string Markunread = Material.Outlined.Markunread; - public const string MarkunreadMailbox = Material.Outlined.MarkunreadMailbox; - public const string Masks = Material.Outlined.Masks; - public const string Maximize = Material.Outlined.Maximize; - public const string MediaBluetoothOff = Material.Outlined.MediaBluetoothOff; - public const string MediaBluetoothOn = Material.Outlined.MediaBluetoothOn; - public const string Mediation = Material.Outlined.Mediation; - public const string MedicalInformation = Material.Outlined.MedicalInformation; - public const string MedicalServices = Material.Outlined.MedicalServices; - public const string Medication = Material.Outlined.Medication; - public const string MedicationLiquid = Material.Outlined.MedicationLiquid; - public const string MeetingRoom = Material.Outlined.MeetingRoom; - public const string Memory = Material.Outlined.Memory; - public const string Menu = Material.Outlined.Menu; - public const string MenuBook = Material.Outlined.MenuBook; - public const string MenuOpen = Material.Outlined.MenuOpen; - public const string Merge = Material.Outlined.Merge; - public const string MergeType = Material.Outlined.MergeType; - public const string Message = Material.Outlined.Message; - public const string Mic = Material.Outlined.Mic; - public const string MicExternalOff = Material.Outlined.MicExternalOff; - public const string MicExternalOn = Material.Outlined.MicExternalOn; - public const string MicNone = Material.Outlined.MicNone; - public const string MicOff = Material.Outlined.MicOff; - public const string Microwave = Material.Outlined.Microwave; - public const string MilitaryTech = Material.Outlined.MilitaryTech; - public const string Minimize = Material.Outlined.Minimize; - public const string MinorCrash = Material.Outlined.MinorCrash; - public const string MiscellaneousServices = Material.Outlined.MiscellaneousServices; - public const string MissedVideoCall = Material.Outlined.MissedVideoCall; - public const string Mms = Material.Outlined.Mms; - public const string MobileFriendly = Material.Outlined.MobileFriendly; - public const string MobileOff = Material.Outlined.MobileOff; - public const string MobileScreenShare = Material.Outlined.MobileScreenShare; - public const string MobiledataOff = Material.Outlined.MobiledataOff; - public const string Mode = Material.Outlined.Mode; - public const string ModeComment = Material.Outlined.ModeComment; - public const string ModeEdit = Material.Outlined.ModeEdit; - public const string ModeEditOutline = Material.Outlined.ModeEditOutline; - public const string ModeFanOff = Material.Outlined.ModeFanOff; - public const string ModeNight = Material.Outlined.ModeNight; - public const string ModeOfTravel = Material.Outlined.ModeOfTravel; - public const string ModeStandby = Material.Outlined.ModeStandby; - public const string ModelTraining = Material.Outlined.ModelTraining; - public const string MonetizationOn = Material.Outlined.MonetizationOn; - public const string Money = Material.Outlined.Money; - public const string MoneyOff = Material.Outlined.MoneyOff; - public const string MoneyOffCsred = Material.Outlined.MoneyOffCsred; - public const string Monitor = Material.Outlined.Monitor; - public const string MonitorHeart = Material.Outlined.MonitorHeart; - public const string MonitorWeight = Material.Outlined.MonitorWeight; - public const string MonochromePhotos = Material.Outlined.MonochromePhotos; - public const string Mood = Material.Outlined.Mood; - public const string MoodBad = Material.Outlined.MoodBad; - public const string Moped = Material.Outlined.Moped; - public const string More = Material.Outlined.More; - public const string MoreHoriz = Material.Outlined.MoreHoriz; - public const string MoreTime = Material.Outlined.MoreTime; - public const string MoreVert = Material.Outlined.MoreVert; - public const string Mosque = Material.Outlined.Mosque; - public const string MotionPhotosAuto = Material.Outlined.MotionPhotosAuto; - public const string MotionPhotosOff = Material.Outlined.MotionPhotosOff; - public const string MotionPhotosOn = Material.Outlined.MotionPhotosOn; - public const string MotionPhotosPause = Material.Outlined.MotionPhotosPause; - public const string MotionPhotosPaused = Material.Outlined.MotionPhotosPaused; - public const string Mouse = Material.Outlined.Mouse; - public const string MoveDown = Material.Outlined.MoveDown; - public const string MoveToInbox = Material.Outlined.MoveToInbox; - public const string MoveUp = Material.Outlined.MoveUp; - public const string Movie = Material.Outlined.Movie; - public const string MovieCreation = Material.Outlined.MovieCreation; - public const string MovieFilter = Material.Outlined.MovieFilter; - public const string Moving = Material.Outlined.Moving; - public const string Mp = Material.Outlined.Mp; - public const string MultilineChart = Material.Outlined.MultilineChart; - public const string MultipleStop = Material.Outlined.MultipleStop; - public const string Museum = Material.Outlined.Museum; - public const string MusicNote = Material.Outlined.MusicNote; - public const string MusicOff = Material.Outlined.MusicOff; - public const string MusicVideo = Material.Outlined.MusicVideo; - public const string MyLocation = Material.Outlined.MyLocation; - public const string Nat = Material.Outlined.Nat; - public const string Nature = Material.Outlined.Nature; - public const string NaturePeople = Material.Outlined.NaturePeople; - public const string NavigateBefore = Material.Outlined.NavigateBefore; - public const string NavigateNext = Material.Outlined.NavigateNext; - public const string Navigation = Material.Outlined.Navigation; - public const string NearMe = Material.Outlined.NearMe; - public const string NearMeDisabled = Material.Outlined.NearMeDisabled; - public const string NearbyError = Material.Outlined.NearbyError; - public const string NearbyOff = Material.Outlined.NearbyOff; - public const string NestCamWiredStand = Material.Outlined.NestCamWiredStand; - public const string NetworkCell = Material.Outlined.NetworkCell; - public const string NetworkCheck = Material.Outlined.NetworkCheck; - public const string NetworkLocked = Material.Outlined.NetworkLocked; - public const string NetworkPing = Material.Outlined.NetworkPing; - public const string NetworkWifi = Material.Outlined.NetworkWifi; - public const string NetworkWifi1Bar = Material.Outlined.NetworkWifi1Bar; - public const string NetworkWifi2Bar = Material.Outlined.NetworkWifi2Bar; - public const string NetworkWifi3Bar = Material.Outlined.NetworkWifi3Bar; - public const string NewLabel = Material.Outlined.NewLabel; - public const string NewReleases = Material.Outlined.NewReleases; - public const string Newspaper = Material.Outlined.Newspaper; - public const string NextPlan = Material.Outlined.NextPlan; - public const string NextWeek = Material.Outlined.NextWeek; - public const string Nfc = Material.Outlined.Nfc; - public const string NightShelter = Material.Outlined.NightShelter; - public const string Nightlife = Material.Outlined.Nightlife; - public const string Nightlight = Material.Outlined.Nightlight; - public const string NightlightRound = Material.Outlined.NightlightRound; - public const string NightsStay = Material.Outlined.NightsStay; - public const string NoAccounts = Material.Outlined.NoAccounts; - public const string NoAdultContent = Material.Outlined.NoAdultContent; - public const string NoBackpack = Material.Outlined.NoBackpack; - public const string NoCell = Material.Outlined.NoCell; - public const string NoCrash = Material.Outlined.NoCrash; - public const string NoDrinks = Material.Outlined.NoDrinks; - public const string NoEncryption = Material.Outlined.NoEncryption; - public const string NoEncryptionGmailerrorred = Material.Outlined.NoEncryptionGmailerrorred; - public const string NoFlash = Material.Outlined.NoFlash; - public const string NoFood = Material.Outlined.NoFood; - public const string NoLuggage = Material.Outlined.NoLuggage; - public const string NoMeals = Material.Outlined.NoMeals; - public const string NoMeetingRoom = Material.Outlined.NoMeetingRoom; - public const string NoPhotography = Material.Outlined.NoPhotography; - public const string NoSim = Material.Outlined.NoSim; - public const string NoStroller = Material.Outlined.NoStroller; - public const string NoTransfer = Material.Outlined.NoTransfer; - public const string NoiseAware = Material.Outlined.NoiseAware; - public const string NoiseControlOff = Material.Outlined.NoiseControlOff; - public const string NordicWalking = Material.Outlined.NordicWalking; - public const string North = Material.Outlined.North; - public const string NorthEast = Material.Outlined.NorthEast; - public const string NorthWest = Material.Outlined.NorthWest; - public const string NotAccessible = Material.Outlined.NotAccessible; - public const string NotInterested = Material.Outlined.NotInterested; - public const string NotListedLocation = Material.Outlined.NotListedLocation; - public const string NotStarted = Material.Outlined.NotStarted; - public const string Note = Material.Outlined.Note; - public const string NoteAdd = Material.Outlined.NoteAdd; - public const string NoteAlt = Material.Outlined.NoteAlt; - public const string Notes = Material.Outlined.Notes; - public const string NotificationAdd = Material.Outlined.NotificationAdd; - public const string NotificationImportant = Material.Outlined.NotificationImportant; - public const string Notifications = Material.Outlined.Notifications; - public const string NotificationsActive = Material.Outlined.NotificationsActive; - public const string NotificationsNone = Material.Outlined.NotificationsNone; - public const string NotificationsOff = Material.Outlined.NotificationsOff; - public const string NotificationsPaused = Material.Outlined.NotificationsPaused; - public const string Numbers = Material.Outlined.Numbers; - public const string OfflineBolt = Material.Outlined.OfflineBolt; - public const string OfflinePin = Material.Outlined.OfflinePin; - public const string OfflineShare = Material.Outlined.OfflineShare; - public const string OilBarrel = Material.Outlined.OilBarrel; - public const string OnDeviceTraining = Material.Outlined.OnDeviceTraining; - public const string OndemandVideo = Material.Outlined.OndemandVideo; - public const string OnlinePrediction = Material.Outlined.OnlinePrediction; - public const string Opacity = Material.Outlined.Opacity; - public const string OpenInBrowser = Material.Outlined.OpenInBrowser; - public const string OpenInFull = Material.Outlined.OpenInFull; - public const string OpenInNew = Material.Outlined.OpenInNew; - public const string OpenInNewOff = Material.Outlined.OpenInNewOff; - public const string OpenWith = Material.Outlined.OpenWith; - public const string OtherHouses = Material.Outlined.OtherHouses; - public const string Outbound = Material.Outlined.Outbound; - public const string Outbox = Material.Outlined.Outbox; - public const string OutdoorGrill = Material.Outlined.OutdoorGrill; - public const string Outlet = Material.Outlined.Outlet; - public const string OutlinedFlag = Material.Outlined.OutlinedFlag; - public const string Output = Material.Outlined.Output; - public const string Padding = Material.Outlined.Padding; - public const string Pages = Material.Outlined.Pages; - public const string Pageview = Material.Outlined.Pageview; - public const string Paid = Material.Outlined.Paid; - public const string Palette = Material.Outlined.Palette; - public const string PanTool = Material.Outlined.PanTool; - public const string PanToolAlt = Material.Outlined.PanToolAlt; - public const string Panorama = Material.Outlined.Panorama; - public const string PanoramaFishEye = Material.Outlined.PanoramaFishEye; - public const string PanoramaHorizontal = Material.Outlined.PanoramaHorizontal; - public const string PanoramaHorizontalSelect = Material.Outlined.PanoramaHorizontalSelect; - public const string PanoramaPhotosphere = Material.Outlined.PanoramaPhotosphere; - public const string PanoramaPhotosphereSelect = Material.Outlined.PanoramaPhotosphereSelect; - public const string PanoramaVertical = Material.Outlined.PanoramaVertical; - public const string PanoramaVerticalSelect = Material.Outlined.PanoramaVerticalSelect; - public const string PanoramaWideAngle = Material.Outlined.PanoramaWideAngle; - public const string PanoramaWideAngleSelect = Material.Outlined.PanoramaWideAngleSelect; - public const string Paragliding = Material.Outlined.Paragliding; - public const string Park = Material.Outlined.Park; - public const string PartyMode = Material.Outlined.PartyMode; - public const string Password = Material.Outlined.Password; - public const string Pattern = Material.Outlined.Pattern; - public const string Pause = Material.Outlined.Pause; - public const string PauseCircle = Material.Outlined.PauseCircle; - public const string PauseCircleFilled = Material.Outlined.PauseCircleFilled; - public const string PauseCircleOutline = Material.Outlined.PauseCircleOutline; - public const string PausePresentation = Material.Outlined.PausePresentation; - public const string Payment = Material.Outlined.Payment; - public const string Payments = Material.Outlined.Payments; - public const string PedalBike = Material.Outlined.PedalBike; - public const string Pending = Material.Outlined.Pending; - public const string PendingActions = Material.Outlined.PendingActions; - public const string Pentagon = Material.Outlined.Pentagon; - public const string People = Material.Outlined.People; - public const string PeopleAlt = Material.Outlined.PeopleAlt; - public const string PeopleOutline = Material.Outlined.PeopleOutline; - public const string Percent = Material.Outlined.Percent; - public const string PermCameraMic = Material.Outlined.PermCameraMic; - public const string PermContactCalendar = Material.Outlined.PermContactCalendar; - public const string PermDataSetting = Material.Outlined.PermDataSetting; - public const string PermDeviceInformation = Material.Outlined.PermDeviceInformation; - public const string PermIdentity = Material.Outlined.PermIdentity; - public const string PermMedia = Material.Outlined.PermMedia; - public const string PermPhoneMsg = Material.Outlined.PermPhoneMsg; - public const string PermScanWifi = Material.Outlined.PermScanWifi; - public const string Person = Material.Outlined.Person; - public const string Person2 = Material.Outlined.Person2; - public const string Person3 = Material.Outlined.Person3; - public const string Person4 = Material.Outlined.Person4; - public const string PersonAdd = Material.Outlined.PersonAdd; - public const string PersonAddAlt = Material.Outlined.PersonAddAlt; - public const string PersonAddAlt1 = Material.Outlined.PersonAddAlt1; - public const string PersonAddDisabled = Material.Outlined.PersonAddDisabled; - public const string PersonOff = Material.Outlined.PersonOff; - public const string PersonOutline = Material.Outlined.PersonOutline; - public const string PersonPin = Material.Outlined.PersonPin; - public const string PersonPinCircle = Material.Outlined.PersonPinCircle; - public const string PersonRemove = Material.Outlined.PersonRemove; - public const string PersonRemoveAlt1 = Material.Outlined.PersonRemoveAlt1; - public const string PersonSearch = Material.Outlined.PersonSearch; - public const string PersonalInjury = Material.Outlined.PersonalInjury; - public const string PersonalVideo = Material.Outlined.PersonalVideo; - public const string PestControl = Material.Outlined.PestControl; - public const string PestControlRodent = Material.Outlined.PestControlRodent; - public const string Pets = Material.Outlined.Pets; - public const string Phishing = Material.Outlined.Phishing; - public const string Phone = Material.Outlined.Phone; - public const string PhoneAndroid = Material.Outlined.PhoneAndroid; - public const string PhoneBluetoothSpeaker = Material.Outlined.PhoneBluetoothSpeaker; - public const string PhoneCallback = Material.Outlined.PhoneCallback; - public const string PhoneDisabled = Material.Outlined.PhoneDisabled; - public const string PhoneEnabled = Material.Outlined.PhoneEnabled; - public const string PhoneForwarded = Material.Outlined.PhoneForwarded; - public const string PhoneIphone = Material.Outlined.PhoneIphone; - public const string PhoneLocked = Material.Outlined.PhoneLocked; - public const string PhoneMissed = Material.Outlined.PhoneMissed; - public const string PhonePaused = Material.Outlined.PhonePaused; - public const string Phonelink = Material.Outlined.Phonelink; - public const string PhonelinkErase = Material.Outlined.PhonelinkErase; - public const string PhonelinkLock = Material.Outlined.PhonelinkLock; - public const string PhonelinkOff = Material.Outlined.PhonelinkOff; - public const string PhonelinkRing = Material.Outlined.PhonelinkRing; - public const string PhonelinkSetup = Material.Outlined.PhonelinkSetup; - public const string Photo = Material.Outlined.Photo; - public const string PhotoAlbum = Material.Outlined.PhotoAlbum; - public const string PhotoCamera = Material.Outlined.PhotoCamera; - public const string PhotoCameraBack = Material.Outlined.PhotoCameraBack; - public const string PhotoCameraFront = Material.Outlined.PhotoCameraFront; - public const string PhotoFilter = Material.Outlined.PhotoFilter; - public const string PhotoLibrary = Material.Outlined.PhotoLibrary; - public const string PhotoSizeSelectActual = Material.Outlined.PhotoSizeSelectActual; - public const string PhotoSizeSelectLarge = Material.Outlined.PhotoSizeSelectLarge; - public const string PhotoSizeSelectSmall = Material.Outlined.PhotoSizeSelectSmall; - public const string Php = Material.Outlined.Php; - public const string Piano = Material.Outlined.Piano; - public const string PianoOff = Material.Outlined.PianoOff; - public const string PictureAsPdf = Material.Outlined.PictureAsPdf; - public const string PictureInPicture = Material.Outlined.PictureInPicture; - public const string PictureInPictureAlt = Material.Outlined.PictureInPictureAlt; - public const string PieChart = Material.Outlined.PieChart; - public const string PieChartOutline = Material.Outlined.PieChartOutline; - public const string Pin = Material.Outlined.Pin; - public const string PinDrop = Material.Outlined.PinDrop; - public const string PinEnd = Material.Outlined.PinEnd; - public const string PinInvoke = Material.Outlined.PinInvoke; - public const string Pinch = Material.Outlined.Pinch; - public const string PivotTableChart = Material.Outlined.PivotTableChart; - public const string Pix = Material.Outlined.Pix; - public const string Place = Material.Outlined.Place; - public const string Plagiarism = Material.Outlined.Plagiarism; - public const string PlayArrow = Material.Outlined.PlayArrow; - public const string PlayCircle = Material.Outlined.PlayCircle; - public const string PlayCircleFilled = Material.Outlined.PlayCircleFilled; - public const string PlayCircleOutline = Material.Outlined.PlayCircleOutline; - public const string PlayDisabled = Material.Outlined.PlayDisabled; - public const string PlayForWork = Material.Outlined.PlayForWork; - public const string PlayLesson = Material.Outlined.PlayLesson; - public const string PlaylistAdd = Material.Outlined.PlaylistAdd; - public const string PlaylistAddCheck = Material.Outlined.PlaylistAddCheck; - public const string PlaylistAddCheckCircle = Material.Outlined.PlaylistAddCheckCircle; - public const string PlaylistAddCircle = Material.Outlined.PlaylistAddCircle; - public const string PlaylistPlay = Material.Outlined.PlaylistPlay; - public const string PlaylistRemove = Material.Outlined.PlaylistRemove; - public const string Plumbing = Material.Outlined.Plumbing; - public const string PlusOne = Material.Outlined.PlusOne; - public const string Podcasts = Material.Outlined.Podcasts; - public const string PointOfSale = Material.Outlined.PointOfSale; - public const string Policy = Material.Outlined.Policy; - public const string Poll = Material.Outlined.Poll; - public const string Polyline = Material.Outlined.Polyline; - public const string Polymer = Material.Outlined.Polymer; - public const string Pool = Material.Outlined.Pool; - public const string PortableWifiOff = Material.Outlined.PortableWifiOff; - public const string Portrait = Material.Outlined.Portrait; - public const string PostAdd = Material.Outlined.PostAdd; - public const string Power = Material.Outlined.Power; - public const string PowerInput = Material.Outlined.PowerInput; - public const string PowerOff = Material.Outlined.PowerOff; - public const string PowerSettingsNew = Material.Outlined.PowerSettingsNew; - public const string PrecisionManufacturing = Material.Outlined.PrecisionManufacturing; - public const string PregnantWoman = Material.Outlined.PregnantWoman; - public const string PresentToAll = Material.Outlined.PresentToAll; - public const string Preview = Material.Outlined.Preview; - public const string PriceChange = Material.Outlined.PriceChange; - public const string PriceCheck = Material.Outlined.PriceCheck; - public const string Print = Material.Outlined.Print; - public const string PrintDisabled = Material.Outlined.PrintDisabled; - public const string PriorityHigh = Material.Outlined.PriorityHigh; - public const string PrivacyTip = Material.Outlined.PrivacyTip; - public const string PrivateConnectivity = Material.Outlined.PrivateConnectivity; - public const string ProductionQuantityLimits = Material.Outlined.ProductionQuantityLimits; - public const string Propane = Material.Outlined.Propane; - public const string PropaneTank = Material.Outlined.PropaneTank; - public const string Psychology = Material.Outlined.Psychology; - public const string PsychologyAlt = Material.Outlined.PsychologyAlt; - public const string Public = Material.Outlined.Public; - public const string PublicOff = Material.Outlined.PublicOff; - public const string Publish = Material.Outlined.Publish; - public const string PublishedWithChanges = Material.Outlined.PublishedWithChanges; - public const string PunchClock = Material.Outlined.PunchClock; - public const string PushPin = Material.Outlined.PushPin; - public const string QrCode = Material.Outlined.QrCode; - public const string QrCode2 = Material.Outlined.QrCode2; - public const string QrCodeScanner = Material.Outlined.QrCodeScanner; - public const string QueryBuilder = Material.Outlined.QueryBuilder; - public const string QueryStats = Material.Outlined.QueryStats; - public const string QuestionAnswer = Material.Outlined.QuestionAnswer; - public const string QuestionMark = Material.Outlined.QuestionMark; - public const string Queue = Material.Outlined.Queue; - public const string QueueMusic = Material.Outlined.QueueMusic; - public const string QueuePlayNext = Material.Outlined.QueuePlayNext; - public const string Quickreply = Material.Outlined.Quickreply; - public const string Quiz = Material.Outlined.Quiz; - public const string RMobiledata = Material.Outlined.RMobiledata; - public const string Radar = Material.Outlined.Radar; - public const string Radio = Material.Outlined.Radio; - public const string RadioButtonChecked = Material.Outlined.RadioButtonChecked; - public const string RadioButtonUnchecked = Material.Outlined.RadioButtonUnchecked; - public const string RailwayAlert = Material.Outlined.RailwayAlert; - public const string RamenDining = Material.Outlined.RamenDining; - public const string RampLeft = Material.Outlined.RampLeft; - public const string RampRight = Material.Outlined.RampRight; - public const string RateReview = Material.Outlined.RateReview; - public const string RawOff = Material.Outlined.RawOff; - public const string RawOn = Material.Outlined.RawOn; - public const string ReadMore = Material.Outlined.ReadMore; - public const string RealEstateAgent = Material.Outlined.RealEstateAgent; - public const string Receipt = Material.Outlined.Receipt; - public const string ReceiptLong = Material.Outlined.ReceiptLong; - public const string RecentActors = Material.Outlined.RecentActors; - public const string Recommend = Material.Outlined.Recommend; - public const string RecordVoiceOver = Material.Outlined.RecordVoiceOver; - public const string Rectangle = Material.Outlined.Rectangle; - public const string Recycling = Material.Outlined.Recycling; - public const string Redeem = Material.Outlined.Redeem; - public const string Redo = Material.Outlined.Redo; - public const string ReduceCapacity = Material.Outlined.ReduceCapacity; - public const string Refresh = Material.Outlined.Refresh; - public const string RememberMe = Material.Outlined.RememberMe; - public const string Remove = Material.Outlined.Remove; - public const string RemoveCircle = Material.Outlined.RemoveCircle; - public const string RemoveCircleOutline = Material.Outlined.RemoveCircleOutline; - public const string RemoveDone = Material.Outlined.RemoveDone; - public const string RemoveFromQueue = Material.Outlined.RemoveFromQueue; - public const string RemoveModerator = Material.Outlined.RemoveModerator; - public const string RemoveRedEye = Material.Outlined.RemoveRedEye; - public const string RemoveRoad = Material.Outlined.RemoveRoad; - public const string RemoveShoppingCart = Material.Outlined.RemoveShoppingCart; - public const string Reorder = Material.Outlined.Reorder; - public const string Repartition = Material.Outlined.Repartition; - public const string Repeat = Material.Outlined.Repeat; - public const string RepeatOn = Material.Outlined.RepeatOn; - public const string RepeatOne = Material.Outlined.RepeatOne; - public const string RepeatOneOn = Material.Outlined.RepeatOneOn; - public const string Replay = Material.Outlined.Replay; - public const string Replay10 = Material.Outlined.Replay10; - public const string Replay30 = Material.Outlined.Replay30; - public const string Replay5 = Material.Outlined.Replay5; - public const string ReplayCircleFilled = Material.Outlined.ReplayCircleFilled; - public const string Reply = Material.Outlined.Reply; - public const string ReplyAll = Material.Outlined.ReplyAll; - public const string Report = Material.Outlined.Report; - public const string ReportGmailerrorred = Material.Outlined.ReportGmailerrorred; - public const string ReportOff = Material.Outlined.ReportOff; - public const string ReportProblem = Material.Outlined.ReportProblem; - public const string RequestPage = Material.Outlined.RequestPage; - public const string RequestQuote = Material.Outlined.RequestQuote; - public const string ResetTv = Material.Outlined.ResetTv; - public const string RestartAlt = Material.Outlined.RestartAlt; - public const string Restaurant = Material.Outlined.Restaurant; - public const string RestaurantMenu = Material.Outlined.RestaurantMenu; - public const string Restore = Material.Outlined.Restore; - public const string RestoreFromTrash = Material.Outlined.RestoreFromTrash; - public const string RestorePage = Material.Outlined.RestorePage; - public const string Reviews = Material.Outlined.Reviews; - public const string RiceBowl = Material.Outlined.RiceBowl; - public const string RingVolume = Material.Outlined.RingVolume; - public const string Rocket = Material.Outlined.Rocket; - public const string RocketLaunch = Material.Outlined.RocketLaunch; - public const string RollerShades = Material.Outlined.RollerShades; - public const string RollerShadesClosed = Material.Outlined.RollerShadesClosed; - public const string RollerSkating = Material.Outlined.RollerSkating; - public const string Roofing = Material.Outlined.Roofing; - public const string Room = Material.Outlined.Room; - public const string RoomPreferences = Material.Outlined.RoomPreferences; - public const string RoomService = Material.Outlined.RoomService; - public const string Rotate90DegreesCcw = Material.Outlined.Rotate90DegreesCcw; - public const string Rotate90DegreesCw = Material.Outlined.Rotate90DegreesCw; - public const string RotateLeft = Material.Outlined.RotateLeft; - public const string RotateRight = Material.Outlined.RotateRight; - public const string RoundaboutLeft = Material.Outlined.RoundaboutLeft; - public const string RoundaboutRight = Material.Outlined.RoundaboutRight; - public const string RoundedCorner = Material.Outlined.RoundedCorner; - public const string Route = Material.Outlined.Route; - public const string Router = Material.Outlined.Router; - public const string Rowing = Material.Outlined.Rowing; - public const string RssFeed = Material.Outlined.RssFeed; - public const string Rsvp = Material.Outlined.Rsvp; - public const string Rtt = Material.Outlined.Rtt; - public const string Rule = Material.Outlined.Rule; - public const string RuleFolder = Material.Outlined.RuleFolder; - public const string RunCircle = Material.Outlined.RunCircle; - public const string RunningWithErrors = Material.Outlined.RunningWithErrors; - public const string RvHookup = Material.Outlined.RvHookup; - public const string SafetyCheck = Material.Outlined.SafetyCheck; - public const string SafetyDivider = Material.Outlined.SafetyDivider; - public const string Sailing = Material.Outlined.Sailing; - public const string Sanitizer = Material.Outlined.Sanitizer; - public const string Satellite = Material.Outlined.Satellite; - public const string SatelliteAlt = Material.Outlined.SatelliteAlt; - public const string Save = Material.Outlined.Save; - public const string SaveAlt = Material.Outlined.SaveAlt; - public const string SaveAs = Material.Outlined.SaveAs; - public const string SavedSearch = Material.Outlined.SavedSearch; - public const string Savings = Material.Outlined.Savings; - public const string Scale = Material.Outlined.Scale; - public const string Scanner = Material.Outlined.Scanner; - public const string ScatterPlot = Material.Outlined.ScatterPlot; - public const string Schedule = Material.Outlined.Schedule; - public const string ScheduleSend = Material.Outlined.ScheduleSend; - public const string Schema = Material.Outlined.Schema; - public const string School = Material.Outlined.School; - public const string Science = Material.Outlined.Science; - public const string Score = Material.Outlined.Score; - public const string Scoreboard = Material.Outlined.Scoreboard; - public const string ScreenLockLandscape = Material.Outlined.ScreenLockLandscape; - public const string ScreenLockPortrait = Material.Outlined.ScreenLockPortrait; - public const string ScreenLockRotation = Material.Outlined.ScreenLockRotation; - public const string ScreenRotation = Material.Outlined.ScreenRotation; - public const string ScreenRotationAlt = Material.Outlined.ScreenRotationAlt; - public const string ScreenSearchDesktop = Material.Outlined.ScreenSearchDesktop; - public const string ScreenShare = Material.Outlined.ScreenShare; - public const string Screenshot = Material.Outlined.Screenshot; - public const string ScreenshotMonitor = Material.Outlined.ScreenshotMonitor; - public const string ScubaDiving = Material.Outlined.ScubaDiving; - public const string Sd = Material.Outlined.Sd; - public const string SdCard = Material.Outlined.SdCard; - public const string SdCardAlert = Material.Outlined.SdCardAlert; - public const string SdStorage = Material.Outlined.SdStorage; - public const string Search = Material.Outlined.Search; - public const string SearchOff = Material.Outlined.SearchOff; - public const string Security = Material.Outlined.Security; - public const string SecurityUpdate = Material.Outlined.SecurityUpdate; - public const string SecurityUpdateGood = Material.Outlined.SecurityUpdateGood; - public const string SecurityUpdateWarning = Material.Outlined.SecurityUpdateWarning; - public const string Segment = Material.Outlined.Segment; - public const string SelectAll = Material.Outlined.SelectAll; - public const string SelfImprovement = Material.Outlined.SelfImprovement; - public const string Sell = Material.Outlined.Sell; - public const string Send = Material.Outlined.Send; - public const string SendAndArchive = Material.Outlined.SendAndArchive; - public const string SendTimeExtension = Material.Outlined.SendTimeExtension; - public const string SendToMobile = Material.Outlined.SendToMobile; - public const string SensorDoor = Material.Outlined.SensorDoor; - public const string SensorOccupied = Material.Outlined.SensorOccupied; - public const string SensorWindow = Material.Outlined.SensorWindow; - public const string Sensors = Material.Outlined.Sensors; - public const string SensorsOff = Material.Outlined.SensorsOff; - public const string SentimentDissatisfied = Material.Outlined.SentimentDissatisfied; - public const string SentimentNeutral = Material.Outlined.SentimentNeutral; - public const string SentimentSatisfied = Material.Outlined.SentimentSatisfied; - public const string SentimentSatisfiedAlt = Material.Outlined.SentimentSatisfiedAlt; - public const string SentimentVeryDissatisfied = Material.Outlined.SentimentVeryDissatisfied; - public const string SentimentVerySatisfied = Material.Outlined.SentimentVerySatisfied; - public const string SetMeal = Material.Outlined.SetMeal; - public const string Settings = Material.Outlined.Settings; - public const string SettingsAccessibility = Material.Outlined.SettingsAccessibility; - public const string SettingsApplications = Material.Outlined.SettingsApplications; - public const string SettingsBackupRestore = Material.Outlined.SettingsBackupRestore; - public const string SettingsBluetooth = Material.Outlined.SettingsBluetooth; - public const string SettingsBrightness = Material.Outlined.SettingsBrightness; - public const string SettingsCell = Material.Outlined.SettingsCell; - public const string SettingsEthernet = Material.Outlined.SettingsEthernet; - public const string SettingsInputAntenna = Material.Outlined.SettingsInputAntenna; - public const string SettingsInputComponent = Material.Outlined.SettingsInputComponent; - public const string SettingsInputComposite = Material.Outlined.SettingsInputComposite; - public const string SettingsInputHdmi = Material.Outlined.SettingsInputHdmi; - public const string SettingsInputSvideo = Material.Outlined.SettingsInputSvideo; - public const string SettingsOverscan = Material.Outlined.SettingsOverscan; - public const string SettingsPhone = Material.Outlined.SettingsPhone; - public const string SettingsPower = Material.Outlined.SettingsPower; - public const string SettingsRemote = Material.Outlined.SettingsRemote; - public const string SettingsSuggest = Material.Outlined.SettingsSuggest; - public const string SettingsSystemDaydream = Material.Outlined.SettingsSystemDaydream; - public const string SettingsVoice = Material.Outlined.SettingsVoice; - public const string SevereCold = Material.Outlined.SevereCold; - public const string ShapeLine = Material.Outlined.ShapeLine; - public const string Share = Material.Outlined.Share; - public const string ShareLocation = Material.Outlined.ShareLocation; - public const string Shield = Material.Outlined.Shield; - public const string ShieldMoon = Material.Outlined.ShieldMoon; - public const string Shop = Material.Outlined.Shop; - public const string Shop2 = Material.Outlined.Shop2; - public const string ShopTwo = Material.Outlined.ShopTwo; - public const string ShoppingBag = Material.Outlined.ShoppingBag; - public const string ShoppingBasket = Material.Outlined.ShoppingBasket; - public const string ShoppingCart = Material.Outlined.ShoppingCart; - public const string ShoppingCartCheckout = Material.Outlined.ShoppingCartCheckout; - public const string ShortText = Material.Outlined.ShortText; - public const string Shortcut = Material.Outlined.Shortcut; - public const string ShowChart = Material.Outlined.ShowChart; - public const string Shower = Material.Outlined.Shower; - public const string Shuffle = Material.Outlined.Shuffle; - public const string ShuffleOn = Material.Outlined.ShuffleOn; - public const string ShutterSpeed = Material.Outlined.ShutterSpeed; - public const string Sick = Material.Outlined.Sick; - public const string SignLanguage = Material.Outlined.SignLanguage; - public const string SignalCellular0Bar = Material.Outlined.SignalCellular0Bar; - public const string SignalCellular4Bar = Material.Outlined.SignalCellular4Bar; - public const string SignalCellularAlt = Material.Outlined.SignalCellularAlt; - public const string SignalCellularAlt1Bar = Material.Outlined.SignalCellularAlt1Bar; - public const string SignalCellularAlt2Bar = Material.Outlined.SignalCellularAlt2Bar; - public const string SignalCellularConnectedNoInternet0Bar = Material.Outlined.SignalCellularConnectedNoInternet0Bar; - public const string SignalCellularConnectedNoInternet4Bar = Material.Outlined.SignalCellularConnectedNoInternet4Bar; - public const string SignalCellularNoSim = Material.Outlined.SignalCellularNoSim; - public const string SignalCellularNodata = Material.Outlined.SignalCellularNodata; - public const string SignalCellularNull = Material.Outlined.SignalCellularNull; - public const string SignalCellularOff = Material.Outlined.SignalCellularOff; - public const string SignalWifi0Bar = Material.Outlined.SignalWifi0Bar; - public const string SignalWifi4Bar = Material.Outlined.SignalWifi4Bar; - public const string SignalWifi4BarLock = Material.Outlined.SignalWifi4BarLock; - public const string SignalWifiBad = Material.Outlined.SignalWifiBad; - public const string SignalWifiConnectedNoInternet4 = Material.Outlined.SignalWifiConnectedNoInternet4; - public const string SignalWifiOff = Material.Outlined.SignalWifiOff; - public const string SignalWifiStatusbar4Bar = Material.Outlined.SignalWifiStatusbar4Bar; - public const string SignalWifiStatusbarConnectedNoInternet4 = Material.Outlined.SignalWifiStatusbarConnectedNoInternet4; - public const string SignalWifiStatusbarNull = Material.Outlined.SignalWifiStatusbarNull; - public const string Signpost = Material.Outlined.Signpost; - public const string SimCard = Material.Outlined.SimCard; - public const string SimCardAlert = Material.Outlined.SimCardAlert; - public const string SimCardDownload = Material.Outlined.SimCardDownload; - public const string SingleBed = Material.Outlined.SingleBed; - public const string Sip = Material.Outlined.Sip; - public const string Skateboarding = Material.Outlined.Skateboarding; - public const string SkipNext = Material.Outlined.SkipNext; - public const string SkipPrevious = Material.Outlined.SkipPrevious; - public const string Sledding = Material.Outlined.Sledding; - public const string Slideshow = Material.Outlined.Slideshow; - public const string SlowMotionVideo = Material.Outlined.SlowMotionVideo; - public const string SmartButton = Material.Outlined.SmartButton; - public const string SmartDisplay = Material.Outlined.SmartDisplay; - public const string SmartScreen = Material.Outlined.SmartScreen; - public const string SmartToy = Material.Outlined.SmartToy; - public const string Smartphone = Material.Outlined.Smartphone; - public const string SmokeFree = Material.Outlined.SmokeFree; - public const string SmokingRooms = Material.Outlined.SmokingRooms; - public const string Sms = Material.Outlined.Sms; - public const string SmsFailed = Material.Outlined.SmsFailed; - public const string SnippetFolder = Material.Outlined.SnippetFolder; - public const string Snooze = Material.Outlined.Snooze; - public const string Snowboarding = Material.Outlined.Snowboarding; - public const string Snowmobile = Material.Outlined.Snowmobile; - public const string Snowshoeing = Material.Outlined.Snowshoeing; - public const string Soap = Material.Outlined.Soap; - public const string SocialDistance = Material.Outlined.SocialDistance; - public const string SolarPower = Material.Outlined.SolarPower; - public const string Sort = Material.Outlined.Sort; - public const string SortByAlpha = Material.Outlined.SortByAlpha; - public const string Sos = Material.Outlined.Sos; - public const string SoupKitchen = Material.Outlined.SoupKitchen; - public const string Source = Material.Outlined.Source; - public const string South = Material.Outlined.South; - public const string SouthAmerica = Material.Outlined.SouthAmerica; - public const string SouthEast = Material.Outlined.SouthEast; - public const string SouthWest = Material.Outlined.SouthWest; - public const string Spa = Material.Outlined.Spa; - public const string SpaceBar = Material.Outlined.SpaceBar; - public const string SpaceDashboard = Material.Outlined.SpaceDashboard; - public const string SpatialAudio = Material.Outlined.SpatialAudio; - public const string SpatialAudioOff = Material.Outlined.SpatialAudioOff; - public const string SpatialTracking = Material.Outlined.SpatialTracking; - public const string Speaker = Material.Outlined.Speaker; - public const string SpeakerGroup = Material.Outlined.SpeakerGroup; - public const string SpeakerNotes = Material.Outlined.SpeakerNotes; - public const string SpeakerNotesOff = Material.Outlined.SpeakerNotesOff; - public const string SpeakerPhone = Material.Outlined.SpeakerPhone; - public const string Speed = Material.Outlined.Speed; - public const string Spellcheck = Material.Outlined.Spellcheck; - public const string Splitscreen = Material.Outlined.Splitscreen; - public const string Spoke = Material.Outlined.Spoke; - public const string Sports = Material.Outlined.Sports; - public const string SportsBar = Material.Outlined.SportsBar; - public const string SportsBaseball = Material.Outlined.SportsBaseball; - public const string SportsBasketball = Material.Outlined.SportsBasketball; - public const string SportsCricket = Material.Outlined.SportsCricket; - public const string SportsEsports = Material.Outlined.SportsEsports; - public const string SportsFootball = Material.Outlined.SportsFootball; - public const string SportsGolf = Material.Outlined.SportsGolf; - public const string SportsGymnastics = Material.Outlined.SportsGymnastics; - public const string SportsHandball = Material.Outlined.SportsHandball; - public const string SportsHockey = Material.Outlined.SportsHockey; - public const string SportsKabaddi = Material.Outlined.SportsKabaddi; - public const string SportsMartialArts = Material.Outlined.SportsMartialArts; - public const string SportsMma = Material.Outlined.SportsMma; - public const string SportsMotorsports = Material.Outlined.SportsMotorsports; - public const string SportsRugby = Material.Outlined.SportsRugby; - public const string SportsScore = Material.Outlined.SportsScore; - public const string SportsSoccer = Material.Outlined.SportsSoccer; - public const string SportsTennis = Material.Outlined.SportsTennis; - public const string SportsVolleyball = Material.Outlined.SportsVolleyball; - public const string Square = Material.Outlined.Square; - public const string SquareFoot = Material.Outlined.SquareFoot; - public const string SsidChart = Material.Outlined.SsidChart; - public const string StackedBarChart = Material.Outlined.StackedBarChart; - public const string StackedLineChart = Material.Outlined.StackedLineChart; - public const string Stadium = Material.Outlined.Stadium; - public const string Stairs = Material.Outlined.Stairs; - public const string Star = Material.Outlined.Star; - public const string StarBorder = Material.Outlined.StarBorder; - public const string StarBorderPurple500 = Material.Outlined.StarBorderPurple500; - public const string StarHalf = Material.Outlined.StarHalf; - public const string StarOutline = Material.Outlined.StarOutline; - public const string StarPurple500 = Material.Outlined.StarPurple500; - public const string StarRate = Material.Outlined.StarRate; - public const string Stars = Material.Outlined.Stars; - public const string Start = Material.Outlined.Start; - public const string StayCurrentLandscape = Material.Outlined.StayCurrentLandscape; - public const string StayCurrentPortrait = Material.Outlined.StayCurrentPortrait; - public const string StayPrimaryLandscape = Material.Outlined.StayPrimaryLandscape; - public const string StayPrimaryPortrait = Material.Outlined.StayPrimaryPortrait; - public const string StickyNote2 = Material.Outlined.StickyNote2; - public const string Stop = Material.Outlined.Stop; - public const string StopCircle = Material.Outlined.StopCircle; - public const string StopScreenShare = Material.Outlined.StopScreenShare; - public const string Storage = Material.Outlined.Storage; - public const string Store = Material.Outlined.Store; - public const string StoreMallDirectory = Material.Outlined.StoreMallDirectory; - public const string Storefront = Material.Outlined.Storefront; - public const string Storm = Material.Outlined.Storm; - public const string Straight = Material.Outlined.Straight; - public const string Straighten = Material.Outlined.Straighten; - public const string Stream = Material.Outlined.Stream; - public const string Streetview = Material.Outlined.Streetview; - public const string StrikethroughS = Material.Outlined.StrikethroughS; - public const string Stroller = Material.Outlined.Stroller; - public const string Style = Material.Outlined.Style; - public const string SubdirectoryArrowLeft = Material.Outlined.SubdirectoryArrowLeft; - public const string SubdirectoryArrowRight = Material.Outlined.SubdirectoryArrowRight; - public const string Subject = Material.Outlined.Subject; - public const string Subscript = Material.Outlined.Subscript; - public const string Subscriptions = Material.Outlined.Subscriptions; - public const string Subtitles = Material.Outlined.Subtitles; - public const string SubtitlesOff = Material.Outlined.SubtitlesOff; - public const string Subway = Material.Outlined.Subway; - public const string Summarize = Material.Outlined.Summarize; - public const string Superscript = Material.Outlined.Superscript; - public const string SupervisedUserCircle = Material.Outlined.SupervisedUserCircle; - public const string SupervisorAccount = Material.Outlined.SupervisorAccount; - public const string Support = Material.Outlined.Support; - public const string SupportAgent = Material.Outlined.SupportAgent; - public const string Surfing = Material.Outlined.Surfing; - public const string SurroundSound = Material.Outlined.SurroundSound; - public const string SwapCalls = Material.Outlined.SwapCalls; - public const string SwapHoriz = Material.Outlined.SwapHoriz; - public const string SwapHorizontalCircle = Material.Outlined.SwapHorizontalCircle; - public const string SwapVert = Material.Outlined.SwapVert; - public const string SwapVerticalCircle = Material.Outlined.SwapVerticalCircle; - public const string Swipe = Material.Outlined.Swipe; - public const string SwipeDown = Material.Outlined.SwipeDown; - public const string SwipeDownAlt = Material.Outlined.SwipeDownAlt; - public const string SwipeLeft = Material.Outlined.SwipeLeft; - public const string SwipeLeftAlt = Material.Outlined.SwipeLeftAlt; - public const string SwipeRight = Material.Outlined.SwipeRight; - public const string SwipeRightAlt = Material.Outlined.SwipeRightAlt; - public const string SwipeUp = Material.Outlined.SwipeUp; - public const string SwipeUpAlt = Material.Outlined.SwipeUpAlt; - public const string SwipeVertical = Material.Outlined.SwipeVertical; - public const string SwitchAccessShortcut = Material.Outlined.SwitchAccessShortcut; - public const string SwitchAccessShortcutAdd = Material.Outlined.SwitchAccessShortcutAdd; - public const string SwitchAccount = Material.Outlined.SwitchAccount; - public const string SwitchCamera = Material.Outlined.SwitchCamera; - public const string SwitchLeft = Material.Outlined.SwitchLeft; - public const string SwitchRight = Material.Outlined.SwitchRight; - public const string SwitchVideo = Material.Outlined.SwitchVideo; - public const string Synagogue = Material.Outlined.Synagogue; - public const string Sync = Material.Outlined.Sync; - public const string SyncAlt = Material.Outlined.SyncAlt; - public const string SyncDisabled = Material.Outlined.SyncDisabled; - public const string SyncLock = Material.Outlined.SyncLock; - public const string SyncProblem = Material.Outlined.SyncProblem; - public const string SystemSecurityUpdate = Material.Outlined.SystemSecurityUpdate; - public const string SystemSecurityUpdateGood = Material.Outlined.SystemSecurityUpdateGood; - public const string SystemSecurityUpdateWarning = Material.Outlined.SystemSecurityUpdateWarning; - public const string SystemUpdate = Material.Outlined.SystemUpdate; - public const string SystemUpdateAlt = Material.Outlined.SystemUpdateAlt; - public const string Tab = Material.Outlined.Tab; - public const string TabUnselected = Material.Outlined.TabUnselected; - public const string TableBar = Material.Outlined.TableBar; - public const string TableChart = Material.Outlined.TableChart; - public const string TableRestaurant = Material.Outlined.TableRestaurant; - public const string TableRows = Material.Outlined.TableRows; - public const string TableView = Material.Outlined.TableView; - public const string Tablet = Material.Outlined.Tablet; - public const string TabletAndroid = Material.Outlined.TabletAndroid; - public const string TabletMac = Material.Outlined.TabletMac; - public const string Tag = Material.Outlined.Tag; - public const string TagFaces = Material.Outlined.TagFaces; - public const string TakeoutDining = Material.Outlined.TakeoutDining; - public const string TapAndPlay = Material.Outlined.TapAndPlay; - public const string Tapas = Material.Outlined.Tapas; - public const string Task = Material.Outlined.Task; - public const string TaskAlt = Material.Outlined.TaskAlt; - public const string TaxiAlert = Material.Outlined.TaxiAlert; - public const string TempleBuddhist = Material.Outlined.TempleBuddhist; - public const string TempleHindu = Material.Outlined.TempleHindu; - public const string Terminal = Material.Outlined.Terminal; - public const string Terrain = Material.Outlined.Terrain; - public const string TextDecrease = Material.Outlined.TextDecrease; - public const string TextFields = Material.Outlined.TextFields; - public const string TextFormat = Material.Outlined.TextFormat; - public const string TextIncrease = Material.Outlined.TextIncrease; - public const string TextRotateUp = Material.Outlined.TextRotateUp; - public const string TextRotateVertical = Material.Outlined.TextRotateVertical; - public const string TextRotationAngledown = Material.Outlined.TextRotationAngledown; - public const string TextRotationAngleup = Material.Outlined.TextRotationAngleup; - public const string TextRotationDown = Material.Outlined.TextRotationDown; - public const string TextRotationNone = Material.Outlined.TextRotationNone; - public const string TextSnippet = Material.Outlined.TextSnippet; - public const string Textsms = Material.Outlined.Textsms; - public const string Texture = Material.Outlined.Texture; - public const string TheaterComedy = Material.Outlined.TheaterComedy; - public const string Theaters = Material.Outlined.Theaters; - public const string Thermostat = Material.Outlined.Thermostat; - public const string ThermostatAuto = Material.Outlined.ThermostatAuto; - public const string ThumbDown = Material.Outlined.ThumbDown; - public const string ThumbDownAlt = Material.Outlined.ThumbDownAlt; - public const string ThumbDownOffAlt = Material.Outlined.ThumbDownOffAlt; - public const string ThumbUp = Material.Outlined.ThumbUp; - public const string ThumbUpAlt = Material.Outlined.ThumbUpAlt; - public const string ThumbUpOffAlt = Material.Outlined.ThumbUpOffAlt; - public const string ThumbsUpDown = Material.Outlined.ThumbsUpDown; - public const string Thunderstorm = Material.Outlined.Thunderstorm; - public const string TimeToLeave = Material.Outlined.TimeToLeave; - public const string Timelapse = Material.Outlined.Timelapse; - public const string Timeline = Material.Outlined.Timeline; - public const string Timer = Material.Outlined.Timer; - public const string Timer10 = Material.Outlined.Timer10; - public const string Timer10Select = Material.Outlined.Timer10Select; - public const string Timer3 = Material.Outlined.Timer3; - public const string Timer3Select = Material.Outlined.Timer3Select; - public const string TimerOff = Material.Outlined.TimerOff; - public const string TipsAndUpdates = Material.Outlined.TipsAndUpdates; - public const string TireRepair = Material.Outlined.TireRepair; - public const string Title = Material.Outlined.Title; - public const string Toc = Material.Outlined.Toc; - public const string Today = Material.Outlined.Today; - public const string ToggleOff = Material.Outlined.ToggleOff; - public const string ToggleOn = Material.Outlined.ToggleOn; - public const string Token = Material.Outlined.Token; - public const string Toll = Material.Outlined.Toll; - public const string Tonality = Material.Outlined.Tonality; - public const string Topic = Material.Outlined.Topic; - public const string Tornado = Material.Outlined.Tornado; - public const string TouchApp = Material.Outlined.TouchApp; - public const string Tour = Material.Outlined.Tour; - public const string Toys = Material.Outlined.Toys; - public const string TrackChanges = Material.Outlined.TrackChanges; - public const string Traffic = Material.Outlined.Traffic; - public const string Train = Material.Outlined.Train; - public const string Tram = Material.Outlined.Tram; - public const string Transcribe = Material.Outlined.Transcribe; - public const string TransferWithinAStation = Material.Outlined.TransferWithinAStation; - public const string Transform = Material.Outlined.Transform; - public const string Transgender = Material.Outlined.Transgender; - public const string TransitEnterexit = Material.Outlined.TransitEnterexit; - public const string Translate = Material.Outlined.Translate; - public const string TravelExplore = Material.Outlined.TravelExplore; - public const string TrendingDown = Material.Outlined.TrendingDown; - public const string TrendingFlat = Material.Outlined.TrendingFlat; - public const string TrendingUp = Material.Outlined.TrendingUp; - public const string TripOrigin = Material.Outlined.TripOrigin; - public const string Troubleshoot = Material.Outlined.Troubleshoot; - public const string Try = Material.Outlined.Try; - public const string Tsunami = Material.Outlined.Tsunami; - public const string Tty = Material.Outlined.Tty; - public const string Tune = Material.Outlined.Tune; - public const string Tungsten = Material.Outlined.Tungsten; - public const string TurnLeft = Material.Outlined.TurnLeft; - public const string TurnRight = Material.Outlined.TurnRight; - public const string TurnSharpLeft = Material.Outlined.TurnSharpLeft; - public const string TurnSharpRight = Material.Outlined.TurnSharpRight; - public const string TurnSlightLeft = Material.Outlined.TurnSlightLeft; - public const string TurnSlightRight = Material.Outlined.TurnSlightRight; - public const string TurnedIn = Material.Outlined.TurnedIn; - public const string TurnedInNot = Material.Outlined.TurnedInNot; - public const string Tv = Material.Outlined.Tv; - public const string TvOff = Material.Outlined.TvOff; - public const string TwoWheeler = Material.Outlined.TwoWheeler; - public const string TypeSpecimen = Material.Outlined.TypeSpecimen; - public const string UTurnLeft = Material.Outlined.UTurnLeft; - public const string UTurnRight = Material.Outlined.UTurnRight; - public const string Umbrella = Material.Outlined.Umbrella; - public const string Unarchive = Material.Outlined.Unarchive; - public const string Undo = Material.Outlined.Undo; - public const string UnfoldLess = Material.Outlined.UnfoldLess; - public const string UnfoldLessDouble = Material.Outlined.UnfoldLessDouble; - public const string UnfoldMore = Material.Outlined.UnfoldMore; - public const string UnfoldMoreDouble = Material.Outlined.UnfoldMoreDouble; - public const string Unpublished = Material.Outlined.Unpublished; - public const string Unsubscribe = Material.Outlined.Unsubscribe; - public const string Upcoming = Material.Outlined.Upcoming; - public const string Update = Material.Outlined.Update; - public const string UpdateDisabled = Material.Outlined.UpdateDisabled; - public const string Upgrade = Material.Outlined.Upgrade; - public const string Upload = Material.Outlined.Upload; - public const string UploadFile = Material.Outlined.UploadFile; - public const string Usb = Material.Outlined.Usb; - public const string UsbOff = Material.Outlined.UsbOff; - public const string Vaccines = Material.Outlined.Vaccines; - public const string VapeFree = Material.Outlined.VapeFree; - public const string VapingRooms = Material.Outlined.VapingRooms; - public const string Verified = Material.Outlined.Verified; - public const string VerifiedUser = Material.Outlined.VerifiedUser; - public const string VerticalAlignBottom = Material.Outlined.VerticalAlignBottom; - public const string VerticalAlignCenter = Material.Outlined.VerticalAlignCenter; - public const string VerticalAlignTop = Material.Outlined.VerticalAlignTop; - public const string VerticalDistribute = Material.Outlined.VerticalDistribute; - public const string VerticalShades = Material.Outlined.VerticalShades; - public const string VerticalShadesClosed = Material.Outlined.VerticalShadesClosed; - public const string VerticalSplit = Material.Outlined.VerticalSplit; - public const string Vibration = Material.Outlined.Vibration; - public const string VideoCall = Material.Outlined.VideoCall; - public const string VideoCameraBack = Material.Outlined.VideoCameraBack; - public const string VideoCameraFront = Material.Outlined.VideoCameraFront; - public const string VideoChat = Material.Outlined.VideoChat; - public const string VideoFile = Material.Outlined.VideoFile; - public const string VideoLabel = Material.Outlined.VideoLabel; - public const string VideoLibrary = Material.Outlined.VideoLibrary; - public const string VideoSettings = Material.Outlined.VideoSettings; - public const string VideoStable = Material.Outlined.VideoStable; - public const string Videocam = Material.Outlined.Videocam; - public const string VideocamOff = Material.Outlined.VideocamOff; - public const string VideogameAsset = Material.Outlined.VideogameAsset; - public const string VideogameAssetOff = Material.Outlined.VideogameAssetOff; - public const string ViewAgenda = Material.Outlined.ViewAgenda; - public const string ViewArray = Material.Outlined.ViewArray; - public const string ViewCarousel = Material.Outlined.ViewCarousel; - public const string ViewColumn = Material.Outlined.ViewColumn; - public const string ViewComfy = Material.Outlined.ViewComfy; - public const string ViewComfyAlt = Material.Outlined.ViewComfyAlt; - public const string ViewCompact = Material.Outlined.ViewCompact; - public const string ViewCompactAlt = Material.Outlined.ViewCompactAlt; - public const string ViewCozy = Material.Outlined.ViewCozy; - public const string ViewDay = Material.Outlined.ViewDay; - public const string ViewHeadline = Material.Outlined.ViewHeadline; - public const string ViewInAr = Material.Outlined.ViewInAr; - public const string ViewKanban = Material.Outlined.ViewKanban; - public const string ViewList = Material.Outlined.ViewList; - public const string ViewModule = Material.Outlined.ViewModule; - public const string ViewQuilt = Material.Outlined.ViewQuilt; - public const string ViewSidebar = Material.Outlined.ViewSidebar; - public const string ViewStream = Material.Outlined.ViewStream; - public const string ViewTimeline = Material.Outlined.ViewTimeline; - public const string ViewWeek = Material.Outlined.ViewWeek; - public const string Vignette = Material.Outlined.Vignette; - public const string Villa = Material.Outlined.Villa; - public const string Visibility = Material.Outlined.Visibility; - public const string VisibilityOff = Material.Outlined.VisibilityOff; - public const string VoiceChat = Material.Outlined.VoiceChat; - public const string VoiceOverOff = Material.Outlined.VoiceOverOff; - public const string Voicemail = Material.Outlined.Voicemail; - public const string Volcano = Material.Outlined.Volcano; - public const string VolumeDown = Material.Outlined.VolumeDown; - public const string VolumeMute = Material.Outlined.VolumeMute; - public const string VolumeOff = Material.Outlined.VolumeOff; - public const string VolumeUp = Material.Outlined.VolumeUp; - public const string VolunteerActivism = Material.Outlined.VolunteerActivism; - public const string VpnKey = Material.Outlined.VpnKey; - public const string VpnKeyOff = Material.Outlined.VpnKeyOff; - public const string VpnLock = Material.Outlined.VpnLock; - public const string Vrpano = Material.Outlined.Vrpano; - public const string Wallet = Material.Outlined.Wallet; - public const string Wallpaper = Material.Outlined.Wallpaper; - public const string Warehouse = Material.Outlined.Warehouse; - public const string Warning = Material.Outlined.Warning; - public const string WarningAmber = Material.Outlined.WarningAmber; - public const string Wash = Material.Outlined.Wash; - public const string Watch = Material.Outlined.Watch; - public const string WatchLater = Material.Outlined.WatchLater; - public const string WatchOff = Material.Outlined.WatchOff; - public const string Water = Material.Outlined.Water; - public const string WaterDamage = Material.Outlined.WaterDamage; - public const string WaterDrop = Material.Outlined.WaterDrop; - public const string WaterfallChart = Material.Outlined.WaterfallChart; - public const string Waves = Material.Outlined.Waves; - public const string WavingHand = Material.Outlined.WavingHand; - public const string WbAuto = Material.Outlined.WbAuto; - public const string WbCloudy = Material.Outlined.WbCloudy; - public const string WbIncandescent = Material.Outlined.WbIncandescent; - public const string WbIridescent = Material.Outlined.WbIridescent; - public const string WbShade = Material.Outlined.WbShade; - public const string WbSunny = Material.Outlined.WbSunny; - public const string WbTwilight = Material.Outlined.WbTwilight; - public const string Wc = Material.Outlined.Wc; - public const string Web = Material.Outlined.Web; - public const string WebAsset = Material.Outlined.WebAsset; - public const string WebAssetOff = Material.Outlined.WebAssetOff; - public const string WebStories = Material.Outlined.WebStories; - public const string Webhook = Material.Outlined.Webhook; - public const string Weekend = Material.Outlined.Weekend; - public const string West = Material.Outlined.West; - public const string Whatshot = Material.Outlined.Whatshot; - public const string WheelchairPickup = Material.Outlined.WheelchairPickup; - public const string WhereToVote = Material.Outlined.WhereToVote; - public const string Widgets = Material.Outlined.Widgets; - public const string WidthFull = Material.Outlined.WidthFull; - public const string WidthNormal = Material.Outlined.WidthNormal; - public const string WidthWide = Material.Outlined.WidthWide; - public const string Wifi = Material.Outlined.Wifi; - public const string Wifi1Bar = Material.Outlined.Wifi1Bar; - public const string Wifi2Bar = Material.Outlined.Wifi2Bar; - public const string WifiCalling = Material.Outlined.WifiCalling; - public const string WifiCalling3 = Material.Outlined.WifiCalling3; - public const string WifiChannel = Material.Outlined.WifiChannel; - public const string WifiFind = Material.Outlined.WifiFind; - public const string WifiLock = Material.Outlined.WifiLock; - public const string WifiOff = Material.Outlined.WifiOff; - public const string WifiPassword = Material.Outlined.WifiPassword; - public const string WifiProtectedSetup = Material.Outlined.WifiProtectedSetup; - public const string WifiTethering = Material.Outlined.WifiTethering; - public const string WifiTetheringError = Material.Outlined.WifiTetheringError; - public const string WifiTetheringOff = Material.Outlined.WifiTetheringOff; - public const string WindPower = Material.Outlined.WindPower; - public const string Window = Material.Outlined.Window; - public const string WineBar = Material.Outlined.WineBar; - public const string Woman = Material.Outlined.Woman; - public const string Woman2 = Material.Outlined.Woman2; - public const string Work = Material.Outlined.Work; - public const string WorkHistory = Material.Outlined.WorkHistory; - public const string WorkOff = Material.Outlined.WorkOff; - public const string WorkOutline = Material.Outlined.WorkOutline; - public const string WorkspacePremium = Material.Outlined.WorkspacePremium; - public const string Workspaces = Material.Outlined.Workspaces; - public const string WrapText = Material.Outlined.WrapText; - public const string WrongLocation = Material.Outlined.WrongLocation; - public const string Wysiwyg = Material.Outlined.Wysiwyg; - public const string Yard = Material.Outlined.Yard; - public const string YoutubeSearchedFor = Material.Outlined.YoutubeSearchedFor; - public const string ZoomIn = Material.Outlined.ZoomIn; - public const string ZoomInMap = Material.Outlined.ZoomInMap; - public const string ZoomOut = Material.Outlined.ZoomOut; - public const string ZoomOutMap = Material.Outlined.ZoomOutMap; - } - } -} diff --git a/src/MudBlazor/Icons/Obsolete/Rounded.cs b/src/MudBlazor/Icons/Obsolete/Rounded.cs deleted file mode 100644 index 14db43ffeef5..000000000000 --- a/src/MudBlazor/Icons/Obsolete/Rounded.cs +++ /dev/null @@ -1,2139 +0,0 @@ -/* - * This file was auto-generated by Update-MudIcons.ps1 - * 2022/12/28_09:54:19 - */ - -using System.Diagnostics.CodeAnalysis; - -namespace MudBlazor -{ - public partial class Icons - { - [ExcludeFromCodeCoverage] - public partial class Rounded - { - public const string _10k = Material.Rounded._10k; - public const string _10mp = Material.Rounded._10mp; - public const string _11mp = Material.Rounded._11mp; - public const string _123 = Material.Rounded._123; - public const string _12mp = Material.Rounded._12mp; - public const string _13mp = Material.Rounded._13mp; - public const string _14mp = Material.Rounded._14mp; - public const string _15mp = Material.Rounded._15mp; - public const string _16mp = Material.Rounded._16mp; - public const string _17mp = Material.Rounded._17mp; - public const string _18UpRating = Material.Rounded._18UpRating; - public const string _18mp = Material.Rounded._18mp; - public const string _19mp = Material.Rounded._19mp; - public const string _1k = Material.Rounded._1k; - public const string _1kPlus = Material.Rounded._1kPlus; - public const string _1xMobiledata = Material.Rounded._1xMobiledata; - public const string _20mp = Material.Rounded._20mp; - public const string _21mp = Material.Rounded._21mp; - public const string _22mp = Material.Rounded._22mp; - public const string _23mp = Material.Rounded._23mp; - public const string _24mp = Material.Rounded._24mp; - public const string _2k = Material.Rounded._2k; - public const string _2kPlus = Material.Rounded._2kPlus; - public const string _2mp = Material.Rounded._2mp; - public const string _30fps = Material.Rounded._30fps; - public const string _30fpsSelect = Material.Rounded._30fpsSelect; - public const string _360 = Material.Rounded._360; - public const string _3dRotation = Material.Rounded._3dRotation; - public const string _3gMobiledata = Material.Rounded._3gMobiledata; - public const string _3k = Material.Rounded._3k; - public const string _3kPlus = Material.Rounded._3kPlus; - public const string _3mp = Material.Rounded._3mp; - public const string _3p = Material.Rounded._3p; - public const string _4gMobiledata = Material.Rounded._4gMobiledata; - public const string _4gPlusMobiledata = Material.Rounded._4gPlusMobiledata; - public const string _4k = Material.Rounded._4k; - public const string _4kPlus = Material.Rounded._4kPlus; - public const string _4mp = Material.Rounded._4mp; - public const string _5g = Material.Rounded._5g; - public const string _5k = Material.Rounded._5k; - public const string _5kPlus = Material.Rounded._5kPlus; - public const string _5mp = Material.Rounded._5mp; - public const string _60fps = Material.Rounded._60fps; - public const string _60fpsSelect = Material.Rounded._60fpsSelect; - public const string _6FtApart = Material.Rounded._6FtApart; - public const string _6k = Material.Rounded._6k; - public const string _6kPlus = Material.Rounded._6kPlus; - public const string _6mp = Material.Rounded._6mp; - public const string _7k = Material.Rounded._7k; - public const string _7kPlus = Material.Rounded._7kPlus; - public const string _7mp = Material.Rounded._7mp; - public const string _8k = Material.Rounded._8k; - public const string _8kPlus = Material.Rounded._8kPlus; - public const string _8mp = Material.Rounded._8mp; - public const string _9k = Material.Rounded._9k; - public const string _9kPlus = Material.Rounded._9kPlus; - public const string _9mp = Material.Rounded._9mp; - public const string Abc = Material.Rounded.Abc; - public const string AcUnit = Material.Rounded.AcUnit; - public const string AccessAlarm = Material.Rounded.AccessAlarm; - public const string AccessAlarms = Material.Rounded.AccessAlarms; - public const string AccessTime = Material.Rounded.AccessTime; - public const string AccessTimeFilled = Material.Rounded.AccessTimeFilled; - public const string Accessibility = Material.Rounded.Accessibility; - public const string AccessibilityNew = Material.Rounded.AccessibilityNew; - public const string Accessible = Material.Rounded.Accessible; - public const string AccessibleForward = Material.Rounded.AccessibleForward; - public const string AccountBalance = Material.Rounded.AccountBalance; - public const string AccountBalanceWallet = Material.Rounded.AccountBalanceWallet; - public const string AccountBox = Material.Rounded.AccountBox; - public const string AccountCircle = Material.Rounded.AccountCircle; - public const string AccountTree = Material.Rounded.AccountTree; - public const string AdUnits = Material.Rounded.AdUnits; - public const string Adb = Material.Rounded.Adb; - public const string Add = Material.Rounded.Add; - public const string AddAPhoto = Material.Rounded.AddAPhoto; - public const string AddAlarm = Material.Rounded.AddAlarm; - public const string AddAlert = Material.Rounded.AddAlert; - public const string AddBox = Material.Rounded.AddBox; - public const string AddBusiness = Material.Rounded.AddBusiness; - public const string AddCard = Material.Rounded.AddCard; - public const string AddChart = Material.Rounded.AddChart; - public const string AddCircle = Material.Rounded.AddCircle; - public const string AddCircleOutline = Material.Rounded.AddCircleOutline; - public const string AddComment = Material.Rounded.AddComment; - public const string AddHome = Material.Rounded.AddHome; - public const string AddHomeWork = Material.Rounded.AddHomeWork; - public const string AddIcCall = Material.Rounded.AddIcCall; - public const string AddLink = Material.Rounded.AddLink; - public const string AddLocation = Material.Rounded.AddLocation; - public const string AddLocationAlt = Material.Rounded.AddLocationAlt; - public const string AddModerator = Material.Rounded.AddModerator; - public const string AddPhotoAlternate = Material.Rounded.AddPhotoAlternate; - public const string AddReaction = Material.Rounded.AddReaction; - public const string AddRoad = Material.Rounded.AddRoad; - public const string AddShoppingCart = Material.Rounded.AddShoppingCart; - public const string AddTask = Material.Rounded.AddTask; - public const string AddToDrive = Material.Rounded.AddToDrive; - public const string AddToHomeScreen = Material.Rounded.AddToHomeScreen; - public const string AddToPhotos = Material.Rounded.AddToPhotos; - public const string AddToQueue = Material.Rounded.AddToQueue; - public const string Addchart = Material.Rounded.Addchart; - public const string AdfScanner = Material.Rounded.AdfScanner; - public const string Adjust = Material.Rounded.Adjust; - public const string AdminPanelSettings = Material.Rounded.AdminPanelSettings; - public const string AdsClick = Material.Rounded.AdsClick; - public const string Agriculture = Material.Rounded.Agriculture; - public const string Air = Material.Rounded.Air; - public const string AirlineSeatFlat = Material.Rounded.AirlineSeatFlat; - public const string AirlineSeatFlatAngled = Material.Rounded.AirlineSeatFlatAngled; - public const string AirlineSeatIndividualSuite = Material.Rounded.AirlineSeatIndividualSuite; - public const string AirlineSeatLegroomExtra = Material.Rounded.AirlineSeatLegroomExtra; - public const string AirlineSeatLegroomNormal = Material.Rounded.AirlineSeatLegroomNormal; - public const string AirlineSeatLegroomReduced = Material.Rounded.AirlineSeatLegroomReduced; - public const string AirlineSeatReclineExtra = Material.Rounded.AirlineSeatReclineExtra; - public const string AirlineSeatReclineNormal = Material.Rounded.AirlineSeatReclineNormal; - public const string AirlineStops = Material.Rounded.AirlineStops; - public const string Airlines = Material.Rounded.Airlines; - public const string AirplaneTicket = Material.Rounded.AirplaneTicket; - public const string AirplanemodeActive = Material.Rounded.AirplanemodeActive; - public const string AirplanemodeInactive = Material.Rounded.AirplanemodeInactive; - public const string Airplay = Material.Rounded.Airplay; - public const string AirportShuttle = Material.Rounded.AirportShuttle; - public const string Alarm = Material.Rounded.Alarm; - public const string AlarmAdd = Material.Rounded.AlarmAdd; - public const string AlarmOff = Material.Rounded.AlarmOff; - public const string AlarmOn = Material.Rounded.AlarmOn; - public const string Album = Material.Rounded.Album; - public const string AlignHorizontalCenter = Material.Rounded.AlignHorizontalCenter; - public const string AlignHorizontalLeft = Material.Rounded.AlignHorizontalLeft; - public const string AlignHorizontalRight = Material.Rounded.AlignHorizontalRight; - public const string AlignVerticalBottom = Material.Rounded.AlignVerticalBottom; - public const string AlignVerticalCenter = Material.Rounded.AlignVerticalCenter; - public const string AlignVerticalTop = Material.Rounded.AlignVerticalTop; - public const string AllInbox = Material.Rounded.AllInbox; - public const string AllInclusive = Material.Rounded.AllInclusive; - public const string AllOut = Material.Rounded.AllOut; - public const string AltRoute = Material.Rounded.AltRoute; - public const string AlternateEmail = Material.Rounded.AlternateEmail; - public const string Analytics = Material.Rounded.Analytics; - public const string Anchor = Material.Rounded.Anchor; - public const string Android = Material.Rounded.Android; - public const string Animation = Material.Rounded.Animation; - public const string Announcement = Material.Rounded.Announcement; - public const string Aod = Material.Rounded.Aod; - public const string Apartment = Material.Rounded.Apartment; - public const string Api = Material.Rounded.Api; - public const string AppBlocking = Material.Rounded.AppBlocking; - public const string AppRegistration = Material.Rounded.AppRegistration; - public const string AppSettingsAlt = Material.Rounded.AppSettingsAlt; - public const string AppShortcut = Material.Rounded.AppShortcut; - public const string Approval = Material.Rounded.Approval; - public const string Apps = Material.Rounded.Apps; - public const string AppsOutage = Material.Rounded.AppsOutage; - public const string Architecture = Material.Rounded.Architecture; - public const string Archive = Material.Rounded.Archive; - public const string AreaChart = Material.Rounded.AreaChart; - public const string ArrowBack = Material.Rounded.ArrowBack; - public const string ArrowBackIos = Material.Rounded.ArrowBackIos; - public const string ArrowBackIosNew = Material.Rounded.ArrowBackIosNew; - public const string ArrowCircleDown = Material.Rounded.ArrowCircleDown; - public const string ArrowCircleLeft = Material.Rounded.ArrowCircleLeft; - public const string ArrowCircleRight = Material.Rounded.ArrowCircleRight; - public const string ArrowCircleUp = Material.Rounded.ArrowCircleUp; - public const string ArrowDownward = Material.Rounded.ArrowDownward; - public const string ArrowDropDown = Material.Rounded.ArrowDropDown; - public const string ArrowDropDownCircle = Material.Rounded.ArrowDropDownCircle; - public const string ArrowDropUp = Material.Rounded.ArrowDropUp; - public const string ArrowForward = Material.Rounded.ArrowForward; - public const string ArrowForwardIos = Material.Rounded.ArrowForwardIos; - public const string ArrowLeft = Material.Rounded.ArrowLeft; - public const string ArrowOutward = Material.Rounded.ArrowOutward; - public const string ArrowRight = Material.Rounded.ArrowRight; - public const string ArrowRightAlt = Material.Rounded.ArrowRightAlt; - public const string ArrowUpward = Material.Rounded.ArrowUpward; - public const string ArtTrack = Material.Rounded.ArtTrack; - public const string Article = Material.Rounded.Article; - public const string AspectRatio = Material.Rounded.AspectRatio; - public const string Assessment = Material.Rounded.Assessment; - public const string Assignment = Material.Rounded.Assignment; - public const string AssignmentInd = Material.Rounded.AssignmentInd; - public const string AssignmentLate = Material.Rounded.AssignmentLate; - public const string AssignmentReturn = Material.Rounded.AssignmentReturn; - public const string AssignmentReturned = Material.Rounded.AssignmentReturned; - public const string AssignmentTurnedIn = Material.Rounded.AssignmentTurnedIn; - public const string AssistWalker = Material.Rounded.AssistWalker; - public const string Assistant = Material.Rounded.Assistant; - public const string AssistantDirection = Material.Rounded.AssistantDirection; - public const string AssistantPhoto = Material.Rounded.AssistantPhoto; - public const string AssuredWorkload = Material.Rounded.AssuredWorkload; - public const string Atm = Material.Rounded.Atm; - public const string AttachEmail = Material.Rounded.AttachEmail; - public const string AttachFile = Material.Rounded.AttachFile; - public const string AttachMoney = Material.Rounded.AttachMoney; - public const string Attachment = Material.Rounded.Attachment; - public const string Attractions = Material.Rounded.Attractions; - public const string Attribution = Material.Rounded.Attribution; - public const string AudioFile = Material.Rounded.AudioFile; - public const string Audiotrack = Material.Rounded.Audiotrack; - public const string AutoAwesome = Material.Rounded.AutoAwesome; - public const string AutoAwesomeMosaic = Material.Rounded.AutoAwesomeMosaic; - public const string AutoAwesomeMotion = Material.Rounded.AutoAwesomeMotion; - public const string AutoDelete = Material.Rounded.AutoDelete; - public const string AutoFixHigh = Material.Rounded.AutoFixHigh; - public const string AutoFixNormal = Material.Rounded.AutoFixNormal; - public const string AutoFixOff = Material.Rounded.AutoFixOff; - public const string AutoGraph = Material.Rounded.AutoGraph; - public const string AutoMode = Material.Rounded.AutoMode; - public const string AutoStories = Material.Rounded.AutoStories; - public const string AutofpsSelect = Material.Rounded.AutofpsSelect; - public const string Autorenew = Material.Rounded.Autorenew; - public const string AvTimer = Material.Rounded.AvTimer; - public const string BabyChangingStation = Material.Rounded.BabyChangingStation; - public const string BackHand = Material.Rounded.BackHand; - public const string Backpack = Material.Rounded.Backpack; - public const string Backspace = Material.Rounded.Backspace; - public const string Backup = Material.Rounded.Backup; - public const string BackupTable = Material.Rounded.BackupTable; - public const string Badge = Material.Rounded.Badge; - public const string BakeryDining = Material.Rounded.BakeryDining; - public const string Balance = Material.Rounded.Balance; - public const string Balcony = Material.Rounded.Balcony; - public const string Ballot = Material.Rounded.Ballot; - public const string BarChart = Material.Rounded.BarChart; - public const string BatchPrediction = Material.Rounded.BatchPrediction; - public const string Bathroom = Material.Rounded.Bathroom; - public const string Bathtub = Material.Rounded.Bathtub; - public const string Battery0Bar = Material.Rounded.Battery0Bar; - public const string Battery1Bar = Material.Rounded.Battery1Bar; - public const string Battery2Bar = Material.Rounded.Battery2Bar; - public const string Battery3Bar = Material.Rounded.Battery3Bar; - public const string Battery4Bar = Material.Rounded.Battery4Bar; - public const string Battery5Bar = Material.Rounded.Battery5Bar; - public const string Battery6Bar = Material.Rounded.Battery6Bar; - public const string BatteryAlert = Material.Rounded.BatteryAlert; - public const string BatteryChargingFull = Material.Rounded.BatteryChargingFull; - public const string BatteryFull = Material.Rounded.BatteryFull; - public const string BatterySaver = Material.Rounded.BatterySaver; - public const string BatteryStd = Material.Rounded.BatteryStd; - public const string BatteryUnknown = Material.Rounded.BatteryUnknown; - public const string BeachAccess = Material.Rounded.BeachAccess; - public const string Bed = Material.Rounded.Bed; - public const string BedroomBaby = Material.Rounded.BedroomBaby; - public const string BedroomChild = Material.Rounded.BedroomChild; - public const string BedroomParent = Material.Rounded.BedroomParent; - public const string Bedtime = Material.Rounded.Bedtime; - public const string BedtimeOff = Material.Rounded.BedtimeOff; - public const string Beenhere = Material.Rounded.Beenhere; - public const string Bento = Material.Rounded.Bento; - public const string BikeScooter = Material.Rounded.BikeScooter; - public const string Biotech = Material.Rounded.Biotech; - public const string Blender = Material.Rounded.Blender; - public const string Blind = Material.Rounded.Blind; - public const string Blinds = Material.Rounded.Blinds; - public const string BlindsClosed = Material.Rounded.BlindsClosed; - public const string Block = Material.Rounded.Block; - public const string Bloodtype = Material.Rounded.Bloodtype; - public const string Bluetooth = Material.Rounded.Bluetooth; - public const string BluetoothAudio = Material.Rounded.BluetoothAudio; - public const string BluetoothConnected = Material.Rounded.BluetoothConnected; - public const string BluetoothDisabled = Material.Rounded.BluetoothDisabled; - public const string BluetoothDrive = Material.Rounded.BluetoothDrive; - public const string BluetoothSearching = Material.Rounded.BluetoothSearching; - public const string BlurCircular = Material.Rounded.BlurCircular; - public const string BlurLinear = Material.Rounded.BlurLinear; - public const string BlurOff = Material.Rounded.BlurOff; - public const string BlurOn = Material.Rounded.BlurOn; - public const string Bolt = Material.Rounded.Bolt; - public const string Book = Material.Rounded.Book; - public const string BookOnline = Material.Rounded.BookOnline; - public const string Bookmark = Material.Rounded.Bookmark; - public const string BookmarkAdd = Material.Rounded.BookmarkAdd; - public const string BookmarkAdded = Material.Rounded.BookmarkAdded; - public const string BookmarkBorder = Material.Rounded.BookmarkBorder; - public const string BookmarkRemove = Material.Rounded.BookmarkRemove; - public const string Bookmarks = Material.Rounded.Bookmarks; - public const string BorderAll = Material.Rounded.BorderAll; - public const string BorderBottom = Material.Rounded.BorderBottom; - public const string BorderClear = Material.Rounded.BorderClear; - public const string BorderColor = Material.Rounded.BorderColor; - public const string BorderHorizontal = Material.Rounded.BorderHorizontal; - public const string BorderInner = Material.Rounded.BorderInner; - public const string BorderLeft = Material.Rounded.BorderLeft; - public const string BorderOuter = Material.Rounded.BorderOuter; - public const string BorderRight = Material.Rounded.BorderRight; - public const string BorderStyle = Material.Rounded.BorderStyle; - public const string BorderTop = Material.Rounded.BorderTop; - public const string BorderVertical = Material.Rounded.BorderVertical; - public const string Boy = Material.Rounded.Boy; - public const string BrandingWatermark = Material.Rounded.BrandingWatermark; - public const string BreakfastDining = Material.Rounded.BreakfastDining; - public const string Brightness1 = Material.Rounded.Brightness1; - public const string Brightness2 = Material.Rounded.Brightness2; - public const string Brightness3 = Material.Rounded.Brightness3; - public const string Brightness4 = Material.Rounded.Brightness4; - public const string Brightness5 = Material.Rounded.Brightness5; - public const string Brightness6 = Material.Rounded.Brightness6; - public const string Brightness7 = Material.Rounded.Brightness7; - public const string BrightnessAuto = Material.Rounded.BrightnessAuto; - public const string BrightnessHigh = Material.Rounded.BrightnessHigh; - public const string BrightnessLow = Material.Rounded.BrightnessLow; - public const string BrightnessMedium = Material.Rounded.BrightnessMedium; - public const string BroadcastOnHome = Material.Rounded.BroadcastOnHome; - public const string BroadcastOnPersonal = Material.Rounded.BroadcastOnPersonal; - public const string BrokenImage = Material.Rounded.BrokenImage; - public const string BrowseGallery = Material.Rounded.BrowseGallery; - public const string BrowserNotSupported = Material.Rounded.BrowserNotSupported; - public const string BrowserUpdated = Material.Rounded.BrowserUpdated; - public const string BrunchDining = Material.Rounded.BrunchDining; - public const string Brush = Material.Rounded.Brush; - public const string BubbleChart = Material.Rounded.BubbleChart; - public const string BugReport = Material.Rounded.BugReport; - public const string Build = Material.Rounded.Build; - public const string BuildCircle = Material.Rounded.BuildCircle; - public const string Bungalow = Material.Rounded.Bungalow; - public const string BurstMode = Material.Rounded.BurstMode; - public const string BusAlert = Material.Rounded.BusAlert; - public const string Business = Material.Rounded.Business; - public const string BusinessCenter = Material.Rounded.BusinessCenter; - public const string Cabin = Material.Rounded.Cabin; - public const string Cable = Material.Rounded.Cable; - public const string Cached = Material.Rounded.Cached; - public const string Cake = Material.Rounded.Cake; - public const string Calculate = Material.Rounded.Calculate; - public const string CalendarMonth = Material.Rounded.CalendarMonth; - public const string CalendarToday = Material.Rounded.CalendarToday; - public const string CalendarViewDay = Material.Rounded.CalendarViewDay; - public const string CalendarViewMonth = Material.Rounded.CalendarViewMonth; - public const string CalendarViewWeek = Material.Rounded.CalendarViewWeek; - public const string Call = Material.Rounded.Call; - public const string CallEnd = Material.Rounded.CallEnd; - public const string CallMade = Material.Rounded.CallMade; - public const string CallMerge = Material.Rounded.CallMerge; - public const string CallMissed = Material.Rounded.CallMissed; - public const string CallMissedOutgoing = Material.Rounded.CallMissedOutgoing; - public const string CallReceived = Material.Rounded.CallReceived; - public const string CallSplit = Material.Rounded.CallSplit; - public const string CallToAction = Material.Rounded.CallToAction; - public const string Camera = Material.Rounded.Camera; - public const string CameraAlt = Material.Rounded.CameraAlt; - public const string CameraEnhance = Material.Rounded.CameraEnhance; - public const string CameraFront = Material.Rounded.CameraFront; - public const string CameraIndoor = Material.Rounded.CameraIndoor; - public const string CameraOutdoor = Material.Rounded.CameraOutdoor; - public const string CameraRear = Material.Rounded.CameraRear; - public const string CameraRoll = Material.Rounded.CameraRoll; - public const string Cameraswitch = Material.Rounded.Cameraswitch; - public const string Campaign = Material.Rounded.Campaign; - public const string Cancel = Material.Rounded.Cancel; - public const string CancelPresentation = Material.Rounded.CancelPresentation; - public const string CancelScheduleSend = Material.Rounded.CancelScheduleSend; - public const string CandlestickChart = Material.Rounded.CandlestickChart; - public const string CarCrash = Material.Rounded.CarCrash; - public const string CarRental = Material.Rounded.CarRental; - public const string CarRepair = Material.Rounded.CarRepair; - public const string CardGiftcard = Material.Rounded.CardGiftcard; - public const string CardMembership = Material.Rounded.CardMembership; - public const string CardTravel = Material.Rounded.CardTravel; - public const string Carpenter = Material.Rounded.Carpenter; - public const string Cases = Material.Rounded.Cases; - public const string Casino = Material.Rounded.Casino; - public const string Cast = Material.Rounded.Cast; - public const string CastConnected = Material.Rounded.CastConnected; - public const string CastForEducation = Material.Rounded.CastForEducation; - public const string Castle = Material.Rounded.Castle; - public const string CatchingPokemon = Material.Rounded.CatchingPokemon; - public const string Category = Material.Rounded.Category; - public const string Celebration = Material.Rounded.Celebration; - public const string CellTower = Material.Rounded.CellTower; - public const string CellWifi = Material.Rounded.CellWifi; - public const string CenterFocusStrong = Material.Rounded.CenterFocusStrong; - public const string CenterFocusWeak = Material.Rounded.CenterFocusWeak; - public const string Chair = Material.Rounded.Chair; - public const string ChairAlt = Material.Rounded.ChairAlt; - public const string Chalet = Material.Rounded.Chalet; - public const string ChangeCircle = Material.Rounded.ChangeCircle; - public const string ChangeHistory = Material.Rounded.ChangeHistory; - public const string ChargingStation = Material.Rounded.ChargingStation; - public const string Chat = Material.Rounded.Chat; - public const string ChatBubble = Material.Rounded.ChatBubble; - public const string ChatBubbleOutline = Material.Rounded.ChatBubbleOutline; - public const string Check = Material.Rounded.Check; - public const string CheckBox = Material.Rounded.CheckBox; - public const string CheckBoxOutlineBlank = Material.Rounded.CheckBoxOutlineBlank; - public const string CheckCircle = Material.Rounded.CheckCircle; - public const string CheckCircleOutline = Material.Rounded.CheckCircleOutline; - public const string Checklist = Material.Rounded.Checklist; - public const string ChecklistRtl = Material.Rounded.ChecklistRtl; - public const string Checkroom = Material.Rounded.Checkroom; - public const string ChevronLeft = Material.Rounded.ChevronLeft; - public const string ChevronRight = Material.Rounded.ChevronRight; - public const string ChildCare = Material.Rounded.ChildCare; - public const string ChildFriendly = Material.Rounded.ChildFriendly; - public const string ChromeReaderMode = Material.Rounded.ChromeReaderMode; - public const string Church = Material.Rounded.Church; - public const string Circle = Material.Rounded.Circle; - public const string CircleNotifications = Material.Rounded.CircleNotifications; - public const string Class = Material.Rounded.Class; - public const string CleanHands = Material.Rounded.CleanHands; - public const string CleaningServices = Material.Rounded.CleaningServices; - public const string Clear = Material.Rounded.Clear; - public const string ClearAll = Material.Rounded.ClearAll; - public const string Close = Material.Rounded.Close; - public const string CloseFullscreen = Material.Rounded.CloseFullscreen; - public const string ClosedCaption = Material.Rounded.ClosedCaption; - public const string ClosedCaptionDisabled = Material.Rounded.ClosedCaptionDisabled; - public const string ClosedCaptionOff = Material.Rounded.ClosedCaptionOff; - public const string Cloud = Material.Rounded.Cloud; - public const string CloudCircle = Material.Rounded.CloudCircle; - public const string CloudDone = Material.Rounded.CloudDone; - public const string CloudDownload = Material.Rounded.CloudDownload; - public const string CloudOff = Material.Rounded.CloudOff; - public const string CloudQueue = Material.Rounded.CloudQueue; - public const string CloudSync = Material.Rounded.CloudSync; - public const string CloudUpload = Material.Rounded.CloudUpload; - public const string Co2 = Material.Rounded.Co2; - public const string CoPresent = Material.Rounded.CoPresent; - public const string Code = Material.Rounded.Code; - public const string CodeOff = Material.Rounded.CodeOff; - public const string Coffee = Material.Rounded.Coffee; - public const string CoffeeMaker = Material.Rounded.CoffeeMaker; - public const string Collections = Material.Rounded.Collections; - public const string CollectionsBookmark = Material.Rounded.CollectionsBookmark; - public const string ColorLens = Material.Rounded.ColorLens; - public const string Colorize = Material.Rounded.Colorize; - public const string Comment = Material.Rounded.Comment; - public const string CommentBank = Material.Rounded.CommentBank; - public const string CommentsDisabled = Material.Rounded.CommentsDisabled; - public const string Commit = Material.Rounded.Commit; - public const string Commute = Material.Rounded.Commute; - public const string Compare = Material.Rounded.Compare; - public const string CompareArrows = Material.Rounded.CompareArrows; - public const string CompassCalibration = Material.Rounded.CompassCalibration; - public const string Compost = Material.Rounded.Compost; - public const string Compress = Material.Rounded.Compress; - public const string Computer = Material.Rounded.Computer; - public const string ConfirmationNumber = Material.Rounded.ConfirmationNumber; - public const string ConnectWithoutContact = Material.Rounded.ConnectWithoutContact; - public const string ConnectedTv = Material.Rounded.ConnectedTv; - public const string ConnectingAirports = Material.Rounded.ConnectingAirports; - public const string Construction = Material.Rounded.Construction; - public const string ContactEmergency = Material.Rounded.ContactEmergency; - public const string ContactMail = Material.Rounded.ContactMail; - public const string ContactPage = Material.Rounded.ContactPage; - public const string ContactPhone = Material.Rounded.ContactPhone; - public const string ContactSupport = Material.Rounded.ContactSupport; - public const string Contactless = Material.Rounded.Contactless; - public const string Contacts = Material.Rounded.Contacts; - public const string ContentCopy = Material.Rounded.ContentCopy; - public const string ContentCut = Material.Rounded.ContentCut; - public const string ContentPaste = Material.Rounded.ContentPaste; - public const string ContentPasteGo = Material.Rounded.ContentPasteGo; - public const string ContentPasteOff = Material.Rounded.ContentPasteOff; - public const string ContentPasteSearch = Material.Rounded.ContentPasteSearch; - public const string Contrast = Material.Rounded.Contrast; - public const string ControlCamera = Material.Rounded.ControlCamera; - public const string ControlPoint = Material.Rounded.ControlPoint; - public const string ControlPointDuplicate = Material.Rounded.ControlPointDuplicate; - public const string Cookie = Material.Rounded.Cookie; - public const string CopyAll = Material.Rounded.CopyAll; - public const string Copyright = Material.Rounded.Copyright; - public const string Coronavirus = Material.Rounded.Coronavirus; - public const string CorporateFare = Material.Rounded.CorporateFare; - public const string Cottage = Material.Rounded.Cottage; - public const string Countertops = Material.Rounded.Countertops; - public const string Create = Material.Rounded.Create; - public const string CreateNewFolder = Material.Rounded.CreateNewFolder; - public const string CreditCard = Material.Rounded.CreditCard; - public const string CreditCardOff = Material.Rounded.CreditCardOff; - public const string CreditScore = Material.Rounded.CreditScore; - public const string Crib = Material.Rounded.Crib; - public const string CrisisAlert = Material.Rounded.CrisisAlert; - public const string Crop = Material.Rounded.Crop; - public const string Crop169 = Material.Rounded.Crop169; - public const string Crop32 = Material.Rounded.Crop32; - public const string Crop54 = Material.Rounded.Crop54; - public const string Crop75 = Material.Rounded.Crop75; - public const string CropDin = Material.Rounded.CropDin; - public const string CropFree = Material.Rounded.CropFree; - public const string CropLandscape = Material.Rounded.CropLandscape; - public const string CropOriginal = Material.Rounded.CropOriginal; - public const string CropPortrait = Material.Rounded.CropPortrait; - public const string CropRotate = Material.Rounded.CropRotate; - public const string CropSquare = Material.Rounded.CropSquare; - public const string CrueltyFree = Material.Rounded.CrueltyFree; - public const string Css = Material.Rounded.Css; - public const string CurrencyBitcoin = Material.Rounded.CurrencyBitcoin; - public const string CurrencyExchange = Material.Rounded.CurrencyExchange; - public const string CurrencyFranc = Material.Rounded.CurrencyFranc; - public const string CurrencyLira = Material.Rounded.CurrencyLira; - public const string CurrencyPound = Material.Rounded.CurrencyPound; - public const string CurrencyRuble = Material.Rounded.CurrencyRuble; - public const string CurrencyRupee = Material.Rounded.CurrencyRupee; - public const string CurrencyYen = Material.Rounded.CurrencyYen; - public const string CurrencyYuan = Material.Rounded.CurrencyYuan; - public const string Curtains = Material.Rounded.Curtains; - public const string CurtainsClosed = Material.Rounded.CurtainsClosed; - public const string Cyclone = Material.Rounded.Cyclone; - public const string Dangerous = Material.Rounded.Dangerous; - public const string DarkMode = Material.Rounded.DarkMode; - public const string Dashboard = Material.Rounded.Dashboard; - public const string DashboardCustomize = Material.Rounded.DashboardCustomize; - public const string DataArray = Material.Rounded.DataArray; - public const string DataExploration = Material.Rounded.DataExploration; - public const string DataObject = Material.Rounded.DataObject; - public const string DataSaverOff = Material.Rounded.DataSaverOff; - public const string DataSaverOn = Material.Rounded.DataSaverOn; - public const string DataThresholding = Material.Rounded.DataThresholding; - public const string DataUsage = Material.Rounded.DataUsage; - public const string Dataset = Material.Rounded.Dataset; - public const string DatasetLinked = Material.Rounded.DatasetLinked; - public const string DateRange = Material.Rounded.DateRange; - public const string Deblur = Material.Rounded.Deblur; - public const string Deck = Material.Rounded.Deck; - public const string Dehaze = Material.Rounded.Dehaze; - public const string Delete = Material.Rounded.Delete; - public const string DeleteForever = Material.Rounded.DeleteForever; - public const string DeleteOutline = Material.Rounded.DeleteOutline; - public const string DeleteSweep = Material.Rounded.DeleteSweep; - public const string DeliveryDining = Material.Rounded.DeliveryDining; - public const string DensityLarge = Material.Rounded.DensityLarge; - public const string DensityMedium = Material.Rounded.DensityMedium; - public const string DensitySmall = Material.Rounded.DensitySmall; - public const string DepartureBoard = Material.Rounded.DepartureBoard; - public const string Description = Material.Rounded.Description; - public const string Deselect = Material.Rounded.Deselect; - public const string DesignServices = Material.Rounded.DesignServices; - public const string Desk = Material.Rounded.Desk; - public const string DesktopAccessDisabled = Material.Rounded.DesktopAccessDisabled; - public const string DesktopMac = Material.Rounded.DesktopMac; - public const string DesktopWindows = Material.Rounded.DesktopWindows; - public const string Details = Material.Rounded.Details; - public const string DeveloperBoard = Material.Rounded.DeveloperBoard; - public const string DeveloperBoardOff = Material.Rounded.DeveloperBoardOff; - public const string DeveloperMode = Material.Rounded.DeveloperMode; - public const string DeviceHub = Material.Rounded.DeviceHub; - public const string DeviceThermostat = Material.Rounded.DeviceThermostat; - public const string DeviceUnknown = Material.Rounded.DeviceUnknown; - public const string Devices = Material.Rounded.Devices; - public const string DevicesFold = Material.Rounded.DevicesFold; - public const string DevicesOther = Material.Rounded.DevicesOther; - public const string DialerSip = Material.Rounded.DialerSip; - public const string Dialpad = Material.Rounded.Dialpad; - public const string Diamond = Material.Rounded.Diamond; - public const string Difference = Material.Rounded.Difference; - public const string Dining = Material.Rounded.Dining; - public const string DinnerDining = Material.Rounded.DinnerDining; - public const string Directions = Material.Rounded.Directions; - public const string DirectionsBike = Material.Rounded.DirectionsBike; - public const string DirectionsBoat = Material.Rounded.DirectionsBoat; - public const string DirectionsBoatFilled = Material.Rounded.DirectionsBoatFilled; - public const string DirectionsBus = Material.Rounded.DirectionsBus; - public const string DirectionsBusFilled = Material.Rounded.DirectionsBusFilled; - public const string DirectionsCar = Material.Rounded.DirectionsCar; - public const string DirectionsCarFilled = Material.Rounded.DirectionsCarFilled; - public const string DirectionsOff = Material.Rounded.DirectionsOff; - public const string DirectionsRailway = Material.Rounded.DirectionsRailway; - public const string DirectionsRailwayFilled = Material.Rounded.DirectionsRailwayFilled; - public const string DirectionsRun = Material.Rounded.DirectionsRun; - public const string DirectionsSubway = Material.Rounded.DirectionsSubway; - public const string DirectionsSubwayFilled = Material.Rounded.DirectionsSubwayFilled; - public const string DirectionsTransit = Material.Rounded.DirectionsTransit; - public const string DirectionsTransitFilled = Material.Rounded.DirectionsTransitFilled; - public const string DirectionsWalk = Material.Rounded.DirectionsWalk; - public const string DirtyLens = Material.Rounded.DirtyLens; - public const string DisabledByDefault = Material.Rounded.DisabledByDefault; - public const string DisabledVisible = Material.Rounded.DisabledVisible; - public const string DiscFull = Material.Rounded.DiscFull; - public const string Discount = Material.Rounded.Discount; - public const string DisplaySettings = Material.Rounded.DisplaySettings; - public const string Diversity1 = Material.Rounded.Diversity1; - public const string Diversity2 = Material.Rounded.Diversity2; - public const string Diversity3 = Material.Rounded.Diversity3; - public const string Dns = Material.Rounded.Dns; - public const string DoDisturb = Material.Rounded.DoDisturb; - public const string DoDisturbAlt = Material.Rounded.DoDisturbAlt; - public const string DoDisturbOff = Material.Rounded.DoDisturbOff; - public const string DoDisturbOn = Material.Rounded.DoDisturbOn; - public const string DoNotDisturb = Material.Rounded.DoNotDisturb; - public const string DoNotDisturbAlt = Material.Rounded.DoNotDisturbAlt; - public const string DoNotDisturbOff = Material.Rounded.DoNotDisturbOff; - public const string DoNotDisturbOn = Material.Rounded.DoNotDisturbOn; - public const string DoNotDisturbOnTotalSilence = Material.Rounded.DoNotDisturbOnTotalSilence; - public const string DoNotStep = Material.Rounded.DoNotStep; - public const string DoNotTouch = Material.Rounded.DoNotTouch; - public const string Dock = Material.Rounded.Dock; - public const string DocumentScanner = Material.Rounded.DocumentScanner; - public const string Domain = Material.Rounded.Domain; - public const string DomainAdd = Material.Rounded.DomainAdd; - public const string DomainDisabled = Material.Rounded.DomainDisabled; - public const string DomainVerification = Material.Rounded.DomainVerification; - public const string Done = Material.Rounded.Done; - public const string DoneAll = Material.Rounded.DoneAll; - public const string DoneOutline = Material.Rounded.DoneOutline; - public const string DonutLarge = Material.Rounded.DonutLarge; - public const string DonutSmall = Material.Rounded.DonutSmall; - public const string DoorBack = Material.Rounded.DoorBack; - public const string DoorFront = Material.Rounded.DoorFront; - public const string DoorSliding = Material.Rounded.DoorSliding; - public const string Doorbell = Material.Rounded.Doorbell; - public const string DoubleArrow = Material.Rounded.DoubleArrow; - public const string DownhillSkiing = Material.Rounded.DownhillSkiing; - public const string Download = Material.Rounded.Download; - public const string DownloadDone = Material.Rounded.DownloadDone; - public const string DownloadForOffline = Material.Rounded.DownloadForOffline; - public const string Downloading = Material.Rounded.Downloading; - public const string Drafts = Material.Rounded.Drafts; - public const string DragHandle = Material.Rounded.DragHandle; - public const string DragIndicator = Material.Rounded.DragIndicator; - public const string Draw = Material.Rounded.Draw; - public const string DriveEta = Material.Rounded.DriveEta; - public const string DriveFileMove = Material.Rounded.DriveFileMove; - public const string DriveFileMoveRtl = Material.Rounded.DriveFileMoveRtl; - public const string DriveFileRenameOutline = Material.Rounded.DriveFileRenameOutline; - public const string DriveFolderUpload = Material.Rounded.DriveFolderUpload; - public const string Dry = Material.Rounded.Dry; - public const string DryCleaning = Material.Rounded.DryCleaning; - public const string Duo = Material.Rounded.Duo; - public const string Dvr = Material.Rounded.Dvr; - public const string DynamicFeed = Material.Rounded.DynamicFeed; - public const string DynamicForm = Material.Rounded.DynamicForm; - public const string EMobiledata = Material.Rounded.EMobiledata; - public const string Earbuds = Material.Rounded.Earbuds; - public const string EarbudsBattery = Material.Rounded.EarbudsBattery; - public const string East = Material.Rounded.East; - public const string EdgesensorHigh = Material.Rounded.EdgesensorHigh; - public const string EdgesensorLow = Material.Rounded.EdgesensorLow; - public const string Edit = Material.Rounded.Edit; - public const string EditAttributes = Material.Rounded.EditAttributes; - public const string EditCalendar = Material.Rounded.EditCalendar; - public const string EditLocation = Material.Rounded.EditLocation; - public const string EditLocationAlt = Material.Rounded.EditLocationAlt; - public const string EditNote = Material.Rounded.EditNote; - public const string EditNotifications = Material.Rounded.EditNotifications; - public const string EditOff = Material.Rounded.EditOff; - public const string EditRoad = Material.Rounded.EditRoad; - public const string Egg = Material.Rounded.Egg; - public const string EggAlt = Material.Rounded.EggAlt; - public const string Eject = Material.Rounded.Eject; - public const string Elderly = Material.Rounded.Elderly; - public const string ElderlyWoman = Material.Rounded.ElderlyWoman; - public const string ElectricBike = Material.Rounded.ElectricBike; - public const string ElectricBolt = Material.Rounded.ElectricBolt; - public const string ElectricCar = Material.Rounded.ElectricCar; - public const string ElectricMeter = Material.Rounded.ElectricMeter; - public const string ElectricMoped = Material.Rounded.ElectricMoped; - public const string ElectricRickshaw = Material.Rounded.ElectricRickshaw; - public const string ElectricScooter = Material.Rounded.ElectricScooter; - public const string ElectricalServices = Material.Rounded.ElectricalServices; - public const string Elevator = Material.Rounded.Elevator; - public const string Email = Material.Rounded.Email; - public const string Emergency = Material.Rounded.Emergency; - public const string EmergencyRecording = Material.Rounded.EmergencyRecording; - public const string EmergencyShare = Material.Rounded.EmergencyShare; - public const string EmojiEmotions = Material.Rounded.EmojiEmotions; - public const string EmojiEvents = Material.Rounded.EmojiEvents; - public const string EmojiFoodBeverage = Material.Rounded.EmojiFoodBeverage; - public const string EmojiNature = Material.Rounded.EmojiNature; - public const string EmojiObjects = Material.Rounded.EmojiObjects; - public const string EmojiPeople = Material.Rounded.EmojiPeople; - public const string EmojiSymbols = Material.Rounded.EmojiSymbols; - public const string EmojiTransportation = Material.Rounded.EmojiTransportation; - public const string EnergySavingsLeaf = Material.Rounded.EnergySavingsLeaf; - public const string Engineering = Material.Rounded.Engineering; - public const string EnhancedEncryption = Material.Rounded.EnhancedEncryption; - public const string Equalizer = Material.Rounded.Equalizer; - public const string Error = Material.Rounded.Error; - public const string ErrorOutline = Material.Rounded.ErrorOutline; - public const string Escalator = Material.Rounded.Escalator; - public const string EscalatorWarning = Material.Rounded.EscalatorWarning; - public const string Euro = Material.Rounded.Euro; - public const string EuroSymbol = Material.Rounded.EuroSymbol; - public const string EvStation = Material.Rounded.EvStation; - public const string Event = Material.Rounded.Event; - public const string EventAvailable = Material.Rounded.EventAvailable; - public const string EventBusy = Material.Rounded.EventBusy; - public const string EventNote = Material.Rounded.EventNote; - public const string EventRepeat = Material.Rounded.EventRepeat; - public const string EventSeat = Material.Rounded.EventSeat; - public const string ExitToApp = Material.Rounded.ExitToApp; - public const string Expand = Material.Rounded.Expand; - public const string ExpandCircleDown = Material.Rounded.ExpandCircleDown; - public const string ExpandLess = Material.Rounded.ExpandLess; - public const string ExpandMore = Material.Rounded.ExpandMore; - public const string Explicit = Material.Rounded.Explicit; - public const string Explore = Material.Rounded.Explore; - public const string ExploreOff = Material.Rounded.ExploreOff; - public const string Exposure = Material.Rounded.Exposure; - public const string ExposureNeg1 = Material.Rounded.ExposureNeg1; - public const string ExposureNeg2 = Material.Rounded.ExposureNeg2; - public const string ExposurePlus1 = Material.Rounded.ExposurePlus1; - public const string ExposurePlus2 = Material.Rounded.ExposurePlus2; - public const string ExposureZero = Material.Rounded.ExposureZero; - public const string Extension = Material.Rounded.Extension; - public const string ExtensionOff = Material.Rounded.ExtensionOff; - public const string Face = Material.Rounded.Face; - public const string Face2 = Material.Rounded.Face2; - public const string Face3 = Material.Rounded.Face3; - public const string Face4 = Material.Rounded.Face4; - public const string Face5 = Material.Rounded.Face5; - public const string Face6 = Material.Rounded.Face6; - public const string FaceRetouchingNatural = Material.Rounded.FaceRetouchingNatural; - public const string FaceRetouchingOff = Material.Rounded.FaceRetouchingOff; - public const string FactCheck = Material.Rounded.FactCheck; - public const string Factory = Material.Rounded.Factory; - public const string FamilyRestroom = Material.Rounded.FamilyRestroom; - public const string FastForward = Material.Rounded.FastForward; - public const string FastRewind = Material.Rounded.FastRewind; - public const string Fastfood = Material.Rounded.Fastfood; - public const string Favorite = Material.Rounded.Favorite; - public const string FavoriteBorder = Material.Rounded.FavoriteBorder; - public const string Fax = Material.Rounded.Fax; - public const string FeaturedPlayList = Material.Rounded.FeaturedPlayList; - public const string FeaturedVideo = Material.Rounded.FeaturedVideo; - public const string Feed = Material.Rounded.Feed; - public const string Feedback = Material.Rounded.Feedback; - public const string Female = Material.Rounded.Female; - public const string Fence = Material.Rounded.Fence; - public const string Festival = Material.Rounded.Festival; - public const string FiberDvr = Material.Rounded.FiberDvr; - public const string FiberManualRecord = Material.Rounded.FiberManualRecord; - public const string FiberNew = Material.Rounded.FiberNew; - public const string FiberPin = Material.Rounded.FiberPin; - public const string FiberSmartRecord = Material.Rounded.FiberSmartRecord; - public const string FileCopy = Material.Rounded.FileCopy; - public const string FileDownload = Material.Rounded.FileDownload; - public const string FileDownloadDone = Material.Rounded.FileDownloadDone; - public const string FileDownloadOff = Material.Rounded.FileDownloadOff; - public const string FileOpen = Material.Rounded.FileOpen; - public const string FilePresent = Material.Rounded.FilePresent; - public const string FileUpload = Material.Rounded.FileUpload; - public const string Filter = Material.Rounded.Filter; - public const string Filter1 = Material.Rounded.Filter1; - public const string Filter2 = Material.Rounded.Filter2; - public const string Filter3 = Material.Rounded.Filter3; - public const string Filter4 = Material.Rounded.Filter4; - public const string Filter5 = Material.Rounded.Filter5; - public const string Filter6 = Material.Rounded.Filter6; - public const string Filter7 = Material.Rounded.Filter7; - public const string Filter8 = Material.Rounded.Filter8; - public const string Filter9 = Material.Rounded.Filter9; - public const string Filter9Plus = Material.Rounded.Filter9Plus; - public const string FilterAlt = Material.Rounded.FilterAlt; - public const string FilterAltOff = Material.Rounded.FilterAltOff; - public const string FilterBAndW = Material.Rounded.FilterBAndW; - public const string FilterCenterFocus = Material.Rounded.FilterCenterFocus; - public const string FilterDrama = Material.Rounded.FilterDrama; - public const string FilterFrames = Material.Rounded.FilterFrames; - public const string FilterHdr = Material.Rounded.FilterHdr; - public const string FilterList = Material.Rounded.FilterList; - public const string FilterListOff = Material.Rounded.FilterListOff; - public const string FilterNone = Material.Rounded.FilterNone; - public const string FilterTiltShift = Material.Rounded.FilterTiltShift; - public const string FilterVintage = Material.Rounded.FilterVintage; - public const string FindInPage = Material.Rounded.FindInPage; - public const string FindReplace = Material.Rounded.FindReplace; - public const string Fingerprint = Material.Rounded.Fingerprint; - public const string FireExtinguisher = Material.Rounded.FireExtinguisher; - public const string FireHydrantAlt = Material.Rounded.FireHydrantAlt; - public const string FireTruck = Material.Rounded.FireTruck; - public const string Fireplace = Material.Rounded.Fireplace; - public const string FirstPage = Material.Rounded.FirstPage; - public const string FitScreen = Material.Rounded.FitScreen; - public const string Fitbit = Material.Rounded.Fitbit; - public const string FitnessCenter = Material.Rounded.FitnessCenter; - public const string Flag = Material.Rounded.Flag; - public const string FlagCircle = Material.Rounded.FlagCircle; - public const string Flaky = Material.Rounded.Flaky; - public const string Flare = Material.Rounded.Flare; - public const string FlashAuto = Material.Rounded.FlashAuto; - public const string FlashOff = Material.Rounded.FlashOff; - public const string FlashOn = Material.Rounded.FlashOn; - public const string FlashlightOff = Material.Rounded.FlashlightOff; - public const string FlashlightOn = Material.Rounded.FlashlightOn; - public const string Flatware = Material.Rounded.Flatware; - public const string Flight = Material.Rounded.Flight; - public const string FlightClass = Material.Rounded.FlightClass; - public const string FlightLand = Material.Rounded.FlightLand; - public const string FlightTakeoff = Material.Rounded.FlightTakeoff; - public const string Flip = Material.Rounded.Flip; - public const string FlipCameraAndroid = Material.Rounded.FlipCameraAndroid; - public const string FlipCameraIos = Material.Rounded.FlipCameraIos; - public const string FlipToBack = Material.Rounded.FlipToBack; - public const string FlipToFront = Material.Rounded.FlipToFront; - public const string Flood = Material.Rounded.Flood; - public const string Fluorescent = Material.Rounded.Fluorescent; - public const string FlutterDash = Material.Rounded.FlutterDash; - public const string FmdBad = Material.Rounded.FmdBad; - public const string FmdGood = Material.Rounded.FmdGood; - public const string Folder = Material.Rounded.Folder; - public const string FolderCopy = Material.Rounded.FolderCopy; - public const string FolderDelete = Material.Rounded.FolderDelete; - public const string FolderOff = Material.Rounded.FolderOff; - public const string FolderOpen = Material.Rounded.FolderOpen; - public const string FolderShared = Material.Rounded.FolderShared; - public const string FolderSpecial = Material.Rounded.FolderSpecial; - public const string FolderZip = Material.Rounded.FolderZip; - public const string FollowTheSigns = Material.Rounded.FollowTheSigns; - public const string FontDownload = Material.Rounded.FontDownload; - public const string FontDownloadOff = Material.Rounded.FontDownloadOff; - public const string FoodBank = Material.Rounded.FoodBank; - public const string Forest = Material.Rounded.Forest; - public const string ForkLeft = Material.Rounded.ForkLeft; - public const string ForkRight = Material.Rounded.ForkRight; - public const string FormatAlignCenter = Material.Rounded.FormatAlignCenter; - public const string FormatAlignJustify = Material.Rounded.FormatAlignJustify; - public const string FormatAlignLeft = Material.Rounded.FormatAlignLeft; - public const string FormatAlignRight = Material.Rounded.FormatAlignRight; - public const string FormatBold = Material.Rounded.FormatBold; - public const string FormatClear = Material.Rounded.FormatClear; - public const string FormatColorFill = Material.Rounded.FormatColorFill; - public const string FormatColorReset = Material.Rounded.FormatColorReset; - public const string FormatColorText = Material.Rounded.FormatColorText; - public const string FormatIndentDecrease = Material.Rounded.FormatIndentDecrease; - public const string FormatIndentIncrease = Material.Rounded.FormatIndentIncrease; - public const string FormatItalic = Material.Rounded.FormatItalic; - public const string FormatLineSpacing = Material.Rounded.FormatLineSpacing; - public const string FormatListBulleted = Material.Rounded.FormatListBulleted; - public const string FormatListNumbered = Material.Rounded.FormatListNumbered; - public const string FormatListNumberedRtl = Material.Rounded.FormatListNumberedRtl; - public const string FormatOverline = Material.Rounded.FormatOverline; - public const string FormatPaint = Material.Rounded.FormatPaint; - public const string FormatQuote = Material.Rounded.FormatQuote; - public const string FormatShapes = Material.Rounded.FormatShapes; - public const string FormatSize = Material.Rounded.FormatSize; - public const string FormatStrikethrough = Material.Rounded.FormatStrikethrough; - public const string FormatTextdirectionLToR = Material.Rounded.FormatTextdirectionLToR; - public const string FormatTextdirectionRToL = Material.Rounded.FormatTextdirectionRToL; - public const string FormatUnderlined = Material.Rounded.FormatUnderlined; - public const string Fort = Material.Rounded.Fort; - public const string Forum = Material.Rounded.Forum; - public const string Forward = Material.Rounded.Forward; - public const string Forward10 = Material.Rounded.Forward10; - public const string Forward30 = Material.Rounded.Forward30; - public const string Forward5 = Material.Rounded.Forward5; - public const string ForwardToInbox = Material.Rounded.ForwardToInbox; - public const string Foundation = Material.Rounded.Foundation; - public const string FreeBreakfast = Material.Rounded.FreeBreakfast; - public const string FreeCancellation = Material.Rounded.FreeCancellation; - public const string FrontHand = Material.Rounded.FrontHand; - public const string Fullscreen = Material.Rounded.Fullscreen; - public const string FullscreenExit = Material.Rounded.FullscreenExit; - public const string Functions = Material.Rounded.Functions; - public const string GMobiledata = Material.Rounded.GMobiledata; - public const string GTranslate = Material.Rounded.GTranslate; - public const string Gamepad = Material.Rounded.Gamepad; - public const string Games = Material.Rounded.Games; - public const string Garage = Material.Rounded.Garage; - public const string GasMeter = Material.Rounded.GasMeter; - public const string Gavel = Material.Rounded.Gavel; - public const string GeneratingTokens = Material.Rounded.GeneratingTokens; - public const string Gesture = Material.Rounded.Gesture; - public const string GetApp = Material.Rounded.GetApp; - public const string Gif = Material.Rounded.Gif; - public const string GifBox = Material.Rounded.GifBox; - public const string Girl = Material.Rounded.Girl; - public const string Gite = Material.Rounded.Gite; - public const string GolfCourse = Material.Rounded.GolfCourse; - public const string GppBad = Material.Rounded.GppBad; - public const string GppGood = Material.Rounded.GppGood; - public const string GppMaybe = Material.Rounded.GppMaybe; - public const string GpsFixed = Material.Rounded.GpsFixed; - public const string GpsNotFixed = Material.Rounded.GpsNotFixed; - public const string GpsOff = Material.Rounded.GpsOff; - public const string Grade = Material.Rounded.Grade; - public const string Gradient = Material.Rounded.Gradient; - public const string Grading = Material.Rounded.Grading; - public const string Grain = Material.Rounded.Grain; - public const string GraphicEq = Material.Rounded.GraphicEq; - public const string Grass = Material.Rounded.Grass; - public const string Grid3x3 = Material.Rounded.Grid3x3; - public const string Grid4x4 = Material.Rounded.Grid4x4; - public const string GridGoldenratio = Material.Rounded.GridGoldenratio; - public const string GridOff = Material.Rounded.GridOff; - public const string GridOn = Material.Rounded.GridOn; - public const string GridView = Material.Rounded.GridView; - public const string Group = Material.Rounded.Group; - public const string GroupAdd = Material.Rounded.GroupAdd; - public const string GroupOff = Material.Rounded.GroupOff; - public const string GroupRemove = Material.Rounded.GroupRemove; - public const string GroupWork = Material.Rounded.GroupWork; - public const string Groups = Material.Rounded.Groups; - public const string Groups2 = Material.Rounded.Groups2; - public const string Groups3 = Material.Rounded.Groups3; - public const string HMobiledata = Material.Rounded.HMobiledata; - public const string HPlusMobiledata = Material.Rounded.HPlusMobiledata; - public const string Hail = Material.Rounded.Hail; - public const string Handshake = Material.Rounded.Handshake; - public const string Handyman = Material.Rounded.Handyman; - public const string Hardware = Material.Rounded.Hardware; - public const string Hd = Material.Rounded.Hd; - public const string HdrAuto = Material.Rounded.HdrAuto; - public const string HdrAutoSelect = Material.Rounded.HdrAutoSelect; - public const string HdrEnhancedSelect = Material.Rounded.HdrEnhancedSelect; - public const string HdrOff = Material.Rounded.HdrOff; - public const string HdrOffSelect = Material.Rounded.HdrOffSelect; - public const string HdrOn = Material.Rounded.HdrOn; - public const string HdrOnSelect = Material.Rounded.HdrOnSelect; - public const string HdrPlus = Material.Rounded.HdrPlus; - public const string HdrStrong = Material.Rounded.HdrStrong; - public const string HdrWeak = Material.Rounded.HdrWeak; - public const string Headphones = Material.Rounded.Headphones; - public const string HeadphonesBattery = Material.Rounded.HeadphonesBattery; - public const string Headset = Material.Rounded.Headset; - public const string HeadsetMic = Material.Rounded.HeadsetMic; - public const string HeadsetOff = Material.Rounded.HeadsetOff; - public const string Healing = Material.Rounded.Healing; - public const string HealthAndSafety = Material.Rounded.HealthAndSafety; - public const string Hearing = Material.Rounded.Hearing; - public const string HearingDisabled = Material.Rounded.HearingDisabled; - public const string HeartBroken = Material.Rounded.HeartBroken; - public const string HeatPump = Material.Rounded.HeatPump; - public const string Height = Material.Rounded.Height; - public const string Help = Material.Rounded.Help; - public const string HelpCenter = Material.Rounded.HelpCenter; - public const string HelpOutline = Material.Rounded.HelpOutline; - public const string Hevc = Material.Rounded.Hevc; - public const string Hexagon = Material.Rounded.Hexagon; - public const string HideImage = Material.Rounded.HideImage; - public const string HideSource = Material.Rounded.HideSource; - public const string HighQuality = Material.Rounded.HighQuality; - public const string Highlight = Material.Rounded.Highlight; - public const string HighlightAlt = Material.Rounded.HighlightAlt; - public const string HighlightOff = Material.Rounded.HighlightOff; - public const string Hiking = Material.Rounded.Hiking; - public const string History = Material.Rounded.History; - public const string HistoryEdu = Material.Rounded.HistoryEdu; - public const string HistoryToggleOff = Material.Rounded.HistoryToggleOff; - public const string Hive = Material.Rounded.Hive; - public const string Hls = Material.Rounded.Hls; - public const string HlsOff = Material.Rounded.HlsOff; - public const string HolidayVillage = Material.Rounded.HolidayVillage; - public const string Home = Material.Rounded.Home; - public const string HomeMax = Material.Rounded.HomeMax; - public const string HomeMini = Material.Rounded.HomeMini; - public const string HomeRepairService = Material.Rounded.HomeRepairService; - public const string HomeWork = Material.Rounded.HomeWork; - public const string HorizontalDistribute = Material.Rounded.HorizontalDistribute; - public const string HorizontalRule = Material.Rounded.HorizontalRule; - public const string HorizontalSplit = Material.Rounded.HorizontalSplit; - public const string HotTub = Material.Rounded.HotTub; - public const string Hotel = Material.Rounded.Hotel; - public const string HotelClass = Material.Rounded.HotelClass; - public const string HourglassBottom = Material.Rounded.HourglassBottom; - public const string HourglassDisabled = Material.Rounded.HourglassDisabled; - public const string HourglassEmpty = Material.Rounded.HourglassEmpty; - public const string HourglassFull = Material.Rounded.HourglassFull; - public const string HourglassTop = Material.Rounded.HourglassTop; - public const string House = Material.Rounded.House; - public const string HouseSiding = Material.Rounded.HouseSiding; - public const string Houseboat = Material.Rounded.Houseboat; - public const string HowToReg = Material.Rounded.HowToReg; - public const string HowToVote = Material.Rounded.HowToVote; - public const string Html = Material.Rounded.Html; - public const string Http = Material.Rounded.Http; - public const string Https = Material.Rounded.Https; - public const string Hub = Material.Rounded.Hub; - public const string Hvac = Material.Rounded.Hvac; - public const string IceSkating = Material.Rounded.IceSkating; - public const string Icecream = Material.Rounded.Icecream; - public const string Image = Material.Rounded.Image; - public const string ImageAspectRatio = Material.Rounded.ImageAspectRatio; - public const string ImageNotSupported = Material.Rounded.ImageNotSupported; - public const string ImageSearch = Material.Rounded.ImageSearch; - public const string ImagesearchRoller = Material.Rounded.ImagesearchRoller; - public const string ImportContacts = Material.Rounded.ImportContacts; - public const string ImportExport = Material.Rounded.ImportExport; - public const string ImportantDevices = Material.Rounded.ImportantDevices; - public const string Inbox = Material.Rounded.Inbox; - public const string IncompleteCircle = Material.Rounded.IncompleteCircle; - public const string IndeterminateCheckBox = Material.Rounded.IndeterminateCheckBox; - public const string Info = Material.Rounded.Info; - public const string Input = Material.Rounded.Input; - public const string InsertChart = Material.Rounded.InsertChart; - public const string InsertChartOutlined = Material.Rounded.InsertChartOutlined; - public const string InsertComment = Material.Rounded.InsertComment; - public const string InsertDriveFile = Material.Rounded.InsertDriveFile; - public const string InsertEmoticon = Material.Rounded.InsertEmoticon; - public const string InsertInvitation = Material.Rounded.InsertInvitation; - public const string InsertLink = Material.Rounded.InsertLink; - public const string InsertPageBreak = Material.Rounded.InsertPageBreak; - public const string InsertPhoto = Material.Rounded.InsertPhoto; - public const string Insights = Material.Rounded.Insights; - public const string InstallDesktop = Material.Rounded.InstallDesktop; - public const string InstallMobile = Material.Rounded.InstallMobile; - public const string IntegrationInstructions = Material.Rounded.IntegrationInstructions; - public const string Interests = Material.Rounded.Interests; - public const string InterpreterMode = Material.Rounded.InterpreterMode; - public const string Inventory = Material.Rounded.Inventory; - public const string Inventory2 = Material.Rounded.Inventory2; - public const string InvertColors = Material.Rounded.InvertColors; - public const string InvertColorsOff = Material.Rounded.InvertColorsOff; - public const string IosShare = Material.Rounded.IosShare; - public const string Iron = Material.Rounded.Iron; - public const string Iso = Material.Rounded.Iso; - public const string Javascript = Material.Rounded.Javascript; - public const string JoinFull = Material.Rounded.JoinFull; - public const string JoinInner = Material.Rounded.JoinInner; - public const string JoinLeft = Material.Rounded.JoinLeft; - public const string JoinRight = Material.Rounded.JoinRight; - public const string Kayaking = Material.Rounded.Kayaking; - public const string KebabDining = Material.Rounded.KebabDining; - public const string Key = Material.Rounded.Key; - public const string KeyOff = Material.Rounded.KeyOff; - public const string Keyboard = Material.Rounded.Keyboard; - public const string KeyboardAlt = Material.Rounded.KeyboardAlt; - public const string KeyboardArrowDown = Material.Rounded.KeyboardArrowDown; - public const string KeyboardArrowLeft = Material.Rounded.KeyboardArrowLeft; - public const string KeyboardArrowRight = Material.Rounded.KeyboardArrowRight; - public const string KeyboardArrowUp = Material.Rounded.KeyboardArrowUp; - public const string KeyboardBackspace = Material.Rounded.KeyboardBackspace; - public const string KeyboardCapslock = Material.Rounded.KeyboardCapslock; - public const string KeyboardCommandKey = Material.Rounded.KeyboardCommandKey; - public const string KeyboardControlKey = Material.Rounded.KeyboardControlKey; - public const string KeyboardDoubleArrowDown = Material.Rounded.KeyboardDoubleArrowDown; - public const string KeyboardDoubleArrowLeft = Material.Rounded.KeyboardDoubleArrowLeft; - public const string KeyboardDoubleArrowRight = Material.Rounded.KeyboardDoubleArrowRight; - public const string KeyboardDoubleArrowUp = Material.Rounded.KeyboardDoubleArrowUp; - public const string KeyboardHide = Material.Rounded.KeyboardHide; - public const string KeyboardOptionKey = Material.Rounded.KeyboardOptionKey; - public const string KeyboardReturn = Material.Rounded.KeyboardReturn; - public const string KeyboardTab = Material.Rounded.KeyboardTab; - public const string KeyboardVoice = Material.Rounded.KeyboardVoice; - public const string KingBed = Material.Rounded.KingBed; - public const string Kitchen = Material.Rounded.Kitchen; - public const string Kitesurfing = Material.Rounded.Kitesurfing; - public const string Label = Material.Rounded.Label; - public const string LabelImportant = Material.Rounded.LabelImportant; - public const string LabelOff = Material.Rounded.LabelOff; - public const string Lan = Material.Rounded.Lan; - public const string Landscape = Material.Rounded.Landscape; - public const string Landslide = Material.Rounded.Landslide; - public const string Language = Material.Rounded.Language; - public const string Laptop = Material.Rounded.Laptop; - public const string LaptopChromebook = Material.Rounded.LaptopChromebook; - public const string LaptopMac = Material.Rounded.LaptopMac; - public const string LaptopWindows = Material.Rounded.LaptopWindows; - public const string LastPage = Material.Rounded.LastPage; - public const string Launch = Material.Rounded.Launch; - public const string Layers = Material.Rounded.Layers; - public const string LayersClear = Material.Rounded.LayersClear; - public const string Leaderboard = Material.Rounded.Leaderboard; - public const string LeakAdd = Material.Rounded.LeakAdd; - public const string LeakRemove = Material.Rounded.LeakRemove; - public const string LegendToggle = Material.Rounded.LegendToggle; - public const string Lens = Material.Rounded.Lens; - public const string LensBlur = Material.Rounded.LensBlur; - public const string LibraryAdd = Material.Rounded.LibraryAdd; - public const string LibraryAddCheck = Material.Rounded.LibraryAddCheck; - public const string LibraryBooks = Material.Rounded.LibraryBooks; - public const string LibraryMusic = Material.Rounded.LibraryMusic; - public const string Light = Material.Rounded.Light; - public const string LightMode = Material.Rounded.LightMode; - public const string Lightbulb = Material.Rounded.Lightbulb; - public const string LightbulbCircle = Material.Rounded.LightbulbCircle; - public const string LineAxis = Material.Rounded.LineAxis; - public const string LineStyle = Material.Rounded.LineStyle; - public const string LineWeight = Material.Rounded.LineWeight; - public const string LinearScale = Material.Rounded.LinearScale; - public const string Link = Material.Rounded.Link; - public const string LinkOff = Material.Rounded.LinkOff; - public const string LinkedCamera = Material.Rounded.LinkedCamera; - public const string Liquor = Material.Rounded.Liquor; - public const string List = Material.Rounded.List; - public const string ListAlt = Material.Rounded.ListAlt; - public const string LiveHelp = Material.Rounded.LiveHelp; - public const string LiveTv = Material.Rounded.LiveTv; - public const string Living = Material.Rounded.Living; - public const string LocalActivity = Material.Rounded.LocalActivity; - public const string LocalAirport = Material.Rounded.LocalAirport; - public const string LocalAtm = Material.Rounded.LocalAtm; - public const string LocalBar = Material.Rounded.LocalBar; - public const string LocalCafe = Material.Rounded.LocalCafe; - public const string LocalCarWash = Material.Rounded.LocalCarWash; - public const string LocalConvenienceStore = Material.Rounded.LocalConvenienceStore; - public const string LocalDining = Material.Rounded.LocalDining; - public const string LocalDrink = Material.Rounded.LocalDrink; - public const string LocalFireDepartment = Material.Rounded.LocalFireDepartment; - public const string LocalFlorist = Material.Rounded.LocalFlorist; - public const string LocalGasStation = Material.Rounded.LocalGasStation; - public const string LocalGroceryStore = Material.Rounded.LocalGroceryStore; - public const string LocalHospital = Material.Rounded.LocalHospital; - public const string LocalHotel = Material.Rounded.LocalHotel; - public const string LocalLaundryService = Material.Rounded.LocalLaundryService; - public const string LocalLibrary = Material.Rounded.LocalLibrary; - public const string LocalMall = Material.Rounded.LocalMall; - public const string LocalMovies = Material.Rounded.LocalMovies; - public const string LocalOffer = Material.Rounded.LocalOffer; - public const string LocalParking = Material.Rounded.LocalParking; - public const string LocalPharmacy = Material.Rounded.LocalPharmacy; - public const string LocalPhone = Material.Rounded.LocalPhone; - public const string LocalPizza = Material.Rounded.LocalPizza; - public const string LocalPlay = Material.Rounded.LocalPlay; - public const string LocalPolice = Material.Rounded.LocalPolice; - public const string LocalPostOffice = Material.Rounded.LocalPostOffice; - public const string LocalPrintshop = Material.Rounded.LocalPrintshop; - public const string LocalSee = Material.Rounded.LocalSee; - public const string LocalShipping = Material.Rounded.LocalShipping; - public const string LocalTaxi = Material.Rounded.LocalTaxi; - public const string LocationCity = Material.Rounded.LocationCity; - public const string LocationDisabled = Material.Rounded.LocationDisabled; - public const string LocationOff = Material.Rounded.LocationOff; - public const string LocationOn = Material.Rounded.LocationOn; - public const string LocationSearching = Material.Rounded.LocationSearching; - public const string Lock = Material.Rounded.Lock; - public const string LockClock = Material.Rounded.LockClock; - public const string LockOpen = Material.Rounded.LockOpen; - public const string LockPerson = Material.Rounded.LockPerson; - public const string LockReset = Material.Rounded.LockReset; - public const string Login = Material.Rounded.Login; - public const string LogoDev = Material.Rounded.LogoDev; - public const string Logout = Material.Rounded.Logout; - public const string Looks = Material.Rounded.Looks; - public const string Looks3 = Material.Rounded.Looks3; - public const string Looks4 = Material.Rounded.Looks4; - public const string Looks5 = Material.Rounded.Looks5; - public const string Looks6 = Material.Rounded.Looks6; - public const string LooksOne = Material.Rounded.LooksOne; - public const string LooksTwo = Material.Rounded.LooksTwo; - public const string Loop = Material.Rounded.Loop; - public const string Loupe = Material.Rounded.Loupe; - public const string LowPriority = Material.Rounded.LowPriority; - public const string Loyalty = Material.Rounded.Loyalty; - public const string LteMobiledata = Material.Rounded.LteMobiledata; - public const string LtePlusMobiledata = Material.Rounded.LtePlusMobiledata; - public const string Luggage = Material.Rounded.Luggage; - public const string LunchDining = Material.Rounded.LunchDining; - public const string Lyrics = Material.Rounded.Lyrics; - public const string MacroOff = Material.Rounded.MacroOff; - public const string Mail = Material.Rounded.Mail; - public const string MailLock = Material.Rounded.MailLock; - public const string MailOutline = Material.Rounded.MailOutline; - public const string Male = Material.Rounded.Male; - public const string Man = Material.Rounded.Man; - public const string Man2 = Material.Rounded.Man2; - public const string Man3 = Material.Rounded.Man3; - public const string Man4 = Material.Rounded.Man4; - public const string ManageAccounts = Material.Rounded.ManageAccounts; - public const string ManageHistory = Material.Rounded.ManageHistory; - public const string ManageSearch = Material.Rounded.ManageSearch; - public const string Map = Material.Rounded.Map; - public const string MapsHomeWork = Material.Rounded.MapsHomeWork; - public const string MapsUgc = Material.Rounded.MapsUgc; - public const string Margin = Material.Rounded.Margin; - public const string MarkAsUnread = Material.Rounded.MarkAsUnread; - public const string MarkChatRead = Material.Rounded.MarkChatRead; - public const string MarkChatUnread = Material.Rounded.MarkChatUnread; - public const string MarkEmailRead = Material.Rounded.MarkEmailRead; - public const string MarkEmailUnread = Material.Rounded.MarkEmailUnread; - public const string MarkUnreadChatAlt = Material.Rounded.MarkUnreadChatAlt; - public const string Markunread = Material.Rounded.Markunread; - public const string MarkunreadMailbox = Material.Rounded.MarkunreadMailbox; - public const string Masks = Material.Rounded.Masks; - public const string Maximize = Material.Rounded.Maximize; - public const string MediaBluetoothOff = Material.Rounded.MediaBluetoothOff; - public const string MediaBluetoothOn = Material.Rounded.MediaBluetoothOn; - public const string Mediation = Material.Rounded.Mediation; - public const string MedicalInformation = Material.Rounded.MedicalInformation; - public const string MedicalServices = Material.Rounded.MedicalServices; - public const string Medication = Material.Rounded.Medication; - public const string MedicationLiquid = Material.Rounded.MedicationLiquid; - public const string MeetingRoom = Material.Rounded.MeetingRoom; - public const string Memory = Material.Rounded.Memory; - public const string Menu = Material.Rounded.Menu; - public const string MenuBook = Material.Rounded.MenuBook; - public const string MenuOpen = Material.Rounded.MenuOpen; - public const string Merge = Material.Rounded.Merge; - public const string MergeType = Material.Rounded.MergeType; - public const string Message = Material.Rounded.Message; - public const string Mic = Material.Rounded.Mic; - public const string MicExternalOff = Material.Rounded.MicExternalOff; - public const string MicExternalOn = Material.Rounded.MicExternalOn; - public const string MicNone = Material.Rounded.MicNone; - public const string MicOff = Material.Rounded.MicOff; - public const string Microwave = Material.Rounded.Microwave; - public const string MilitaryTech = Material.Rounded.MilitaryTech; - public const string Minimize = Material.Rounded.Minimize; - public const string MinorCrash = Material.Rounded.MinorCrash; - public const string MiscellaneousServices = Material.Rounded.MiscellaneousServices; - public const string MissedVideoCall = Material.Rounded.MissedVideoCall; - public const string Mms = Material.Rounded.Mms; - public const string MobileFriendly = Material.Rounded.MobileFriendly; - public const string MobileOff = Material.Rounded.MobileOff; - public const string MobileScreenShare = Material.Rounded.MobileScreenShare; - public const string MobiledataOff = Material.Rounded.MobiledataOff; - public const string Mode = Material.Rounded.Mode; - public const string ModeComment = Material.Rounded.ModeComment; - public const string ModeEdit = Material.Rounded.ModeEdit; - public const string ModeEditOutline = Material.Rounded.ModeEditOutline; - public const string ModeFanOff = Material.Rounded.ModeFanOff; - public const string ModeNight = Material.Rounded.ModeNight; - public const string ModeOfTravel = Material.Rounded.ModeOfTravel; - public const string ModeStandby = Material.Rounded.ModeStandby; - public const string ModelTraining = Material.Rounded.ModelTraining; - public const string MonetizationOn = Material.Rounded.MonetizationOn; - public const string Money = Material.Rounded.Money; - public const string MoneyOff = Material.Rounded.MoneyOff; - public const string MoneyOffCsred = Material.Rounded.MoneyOffCsred; - public const string Monitor = Material.Rounded.Monitor; - public const string MonitorHeart = Material.Rounded.MonitorHeart; - public const string MonitorWeight = Material.Rounded.MonitorWeight; - public const string MonochromePhotos = Material.Rounded.MonochromePhotos; - public const string Mood = Material.Rounded.Mood; - public const string MoodBad = Material.Rounded.MoodBad; - public const string Moped = Material.Rounded.Moped; - public const string More = Material.Rounded.More; - public const string MoreHoriz = Material.Rounded.MoreHoriz; - public const string MoreTime = Material.Rounded.MoreTime; - public const string MoreVert = Material.Rounded.MoreVert; - public const string Mosque = Material.Rounded.Mosque; - public const string MotionPhotosAuto = Material.Rounded.MotionPhotosAuto; - public const string MotionPhotosOff = Material.Rounded.MotionPhotosOff; - public const string MotionPhotosOn = Material.Rounded.MotionPhotosOn; - public const string MotionPhotosPause = Material.Rounded.MotionPhotosPause; - public const string MotionPhotosPaused = Material.Rounded.MotionPhotosPaused; - public const string Mouse = Material.Rounded.Mouse; - public const string MoveDown = Material.Rounded.MoveDown; - public const string MoveToInbox = Material.Rounded.MoveToInbox; - public const string MoveUp = Material.Rounded.MoveUp; - public const string Movie = Material.Rounded.Movie; - public const string MovieCreation = Material.Rounded.MovieCreation; - public const string MovieFilter = Material.Rounded.MovieFilter; - public const string Moving = Material.Rounded.Moving; - public const string Mp = Material.Rounded.Mp; - public const string MultilineChart = Material.Rounded.MultilineChart; - public const string MultipleStop = Material.Rounded.MultipleStop; - public const string Museum = Material.Rounded.Museum; - public const string MusicNote = Material.Rounded.MusicNote; - public const string MusicOff = Material.Rounded.MusicOff; - public const string MusicVideo = Material.Rounded.MusicVideo; - public const string MyLocation = Material.Rounded.MyLocation; - public const string Nat = Material.Rounded.Nat; - public const string Nature = Material.Rounded.Nature; - public const string NaturePeople = Material.Rounded.NaturePeople; - public const string NavigateBefore = Material.Rounded.NavigateBefore; - public const string NavigateNext = Material.Rounded.NavigateNext; - public const string Navigation = Material.Rounded.Navigation; - public const string NearMe = Material.Rounded.NearMe; - public const string NearMeDisabled = Material.Rounded.NearMeDisabled; - public const string NearbyError = Material.Rounded.NearbyError; - public const string NearbyOff = Material.Rounded.NearbyOff; - public const string NestCamWiredStand = Material.Rounded.NestCamWiredStand; - public const string NetworkCell = Material.Rounded.NetworkCell; - public const string NetworkCheck = Material.Rounded.NetworkCheck; - public const string NetworkLocked = Material.Rounded.NetworkLocked; - public const string NetworkPing = Material.Rounded.NetworkPing; - public const string NetworkWifi = Material.Rounded.NetworkWifi; - public const string NetworkWifi1Bar = Material.Rounded.NetworkWifi1Bar; - public const string NetworkWifi2Bar = Material.Rounded.NetworkWifi2Bar; - public const string NetworkWifi3Bar = Material.Rounded.NetworkWifi3Bar; - public const string NewLabel = Material.Rounded.NewLabel; - public const string NewReleases = Material.Rounded.NewReleases; - public const string Newspaper = Material.Rounded.Newspaper; - public const string NextPlan = Material.Rounded.NextPlan; - public const string NextWeek = Material.Rounded.NextWeek; - public const string Nfc = Material.Rounded.Nfc; - public const string NightShelter = Material.Rounded.NightShelter; - public const string Nightlife = Material.Rounded.Nightlife; - public const string Nightlight = Material.Rounded.Nightlight; - public const string NightlightRound = Material.Rounded.NightlightRound; - public const string NightsStay = Material.Rounded.NightsStay; - public const string NoAccounts = Material.Rounded.NoAccounts; - public const string NoAdultContent = Material.Rounded.NoAdultContent; - public const string NoBackpack = Material.Rounded.NoBackpack; - public const string NoCell = Material.Rounded.NoCell; - public const string NoCrash = Material.Rounded.NoCrash; - public const string NoDrinks = Material.Rounded.NoDrinks; - public const string NoEncryption = Material.Rounded.NoEncryption; - public const string NoEncryptionGmailerrorred = Material.Rounded.NoEncryptionGmailerrorred; - public const string NoFlash = Material.Rounded.NoFlash; - public const string NoFood = Material.Rounded.NoFood; - public const string NoLuggage = Material.Rounded.NoLuggage; - public const string NoMeals = Material.Rounded.NoMeals; - public const string NoMeetingRoom = Material.Rounded.NoMeetingRoom; - public const string NoPhotography = Material.Rounded.NoPhotography; - public const string NoSim = Material.Rounded.NoSim; - public const string NoStroller = Material.Rounded.NoStroller; - public const string NoTransfer = Material.Rounded.NoTransfer; - public const string NoiseAware = Material.Rounded.NoiseAware; - public const string NoiseControlOff = Material.Rounded.NoiseControlOff; - public const string NordicWalking = Material.Rounded.NordicWalking; - public const string North = Material.Rounded.North; - public const string NorthEast = Material.Rounded.NorthEast; - public const string NorthWest = Material.Rounded.NorthWest; - public const string NotAccessible = Material.Rounded.NotAccessible; - public const string NotInterested = Material.Rounded.NotInterested; - public const string NotListedLocation = Material.Rounded.NotListedLocation; - public const string NotStarted = Material.Rounded.NotStarted; - public const string Note = Material.Rounded.Note; - public const string NoteAdd = Material.Rounded.NoteAdd; - public const string NoteAlt = Material.Rounded.NoteAlt; - public const string Notes = Material.Rounded.Notes; - public const string NotificationAdd = Material.Rounded.NotificationAdd; - public const string NotificationImportant = Material.Rounded.NotificationImportant; - public const string Notifications = Material.Rounded.Notifications; - public const string NotificationsActive = Material.Rounded.NotificationsActive; - public const string NotificationsNone = Material.Rounded.NotificationsNone; - public const string NotificationsOff = Material.Rounded.NotificationsOff; - public const string NotificationsPaused = Material.Rounded.NotificationsPaused; - public const string Numbers = Material.Rounded.Numbers; - public const string OfflineBolt = Material.Rounded.OfflineBolt; - public const string OfflinePin = Material.Rounded.OfflinePin; - public const string OfflineShare = Material.Rounded.OfflineShare; - public const string OilBarrel = Material.Rounded.OilBarrel; - public const string OnDeviceTraining = Material.Rounded.OnDeviceTraining; - public const string OndemandVideo = Material.Rounded.OndemandVideo; - public const string OnlinePrediction = Material.Rounded.OnlinePrediction; - public const string Opacity = Material.Rounded.Opacity; - public const string OpenInBrowser = Material.Rounded.OpenInBrowser; - public const string OpenInFull = Material.Rounded.OpenInFull; - public const string OpenInNew = Material.Rounded.OpenInNew; - public const string OpenInNewOff = Material.Rounded.OpenInNewOff; - public const string OpenWith = Material.Rounded.OpenWith; - public const string OtherHouses = Material.Rounded.OtherHouses; - public const string Outbound = Material.Rounded.Outbound; - public const string Outbox = Material.Rounded.Outbox; - public const string OutdoorGrill = Material.Rounded.OutdoorGrill; - public const string Outlet = Material.Rounded.Outlet; - public const string OutlinedFlag = Material.Rounded.OutlinedFlag; - public const string Output = Material.Rounded.Output; - public const string Padding = Material.Rounded.Padding; - public const string Pages = Material.Rounded.Pages; - public const string Pageview = Material.Rounded.Pageview; - public const string Paid = Material.Rounded.Paid; - public const string Palette = Material.Rounded.Palette; - public const string PanTool = Material.Rounded.PanTool; - public const string PanToolAlt = Material.Rounded.PanToolAlt; - public const string Panorama = Material.Rounded.Panorama; - public const string PanoramaFishEye = Material.Rounded.PanoramaFishEye; - public const string PanoramaHorizontal = Material.Rounded.PanoramaHorizontal; - public const string PanoramaHorizontalSelect = Material.Rounded.PanoramaHorizontalSelect; - public const string PanoramaPhotosphere = Material.Rounded.PanoramaPhotosphere; - public const string PanoramaPhotosphereSelect = Material.Rounded.PanoramaPhotosphereSelect; - public const string PanoramaVertical = Material.Rounded.PanoramaVertical; - public const string PanoramaVerticalSelect = Material.Rounded.PanoramaVerticalSelect; - public const string PanoramaWideAngle = Material.Rounded.PanoramaWideAngle; - public const string PanoramaWideAngleSelect = Material.Rounded.PanoramaWideAngleSelect; - public const string Paragliding = Material.Rounded.Paragliding; - public const string Park = Material.Rounded.Park; - public const string PartyMode = Material.Rounded.PartyMode; - public const string Password = Material.Rounded.Password; - public const string Pattern = Material.Rounded.Pattern; - public const string Pause = Material.Rounded.Pause; - public const string PauseCircle = Material.Rounded.PauseCircle; - public const string PauseCircleFilled = Material.Rounded.PauseCircleFilled; - public const string PauseCircleOutline = Material.Rounded.PauseCircleOutline; - public const string PausePresentation = Material.Rounded.PausePresentation; - public const string Payment = Material.Rounded.Payment; - public const string Payments = Material.Rounded.Payments; - public const string PedalBike = Material.Rounded.PedalBike; - public const string Pending = Material.Rounded.Pending; - public const string PendingActions = Material.Rounded.PendingActions; - public const string Pentagon = Material.Rounded.Pentagon; - public const string People = Material.Rounded.People; - public const string PeopleAlt = Material.Rounded.PeopleAlt; - public const string PeopleOutline = Material.Rounded.PeopleOutline; - public const string Percent = Material.Rounded.Percent; - public const string PermCameraMic = Material.Rounded.PermCameraMic; - public const string PermContactCalendar = Material.Rounded.PermContactCalendar; - public const string PermDataSetting = Material.Rounded.PermDataSetting; - public const string PermDeviceInformation = Material.Rounded.PermDeviceInformation; - public const string PermIdentity = Material.Rounded.PermIdentity; - public const string PermMedia = Material.Rounded.PermMedia; - public const string PermPhoneMsg = Material.Rounded.PermPhoneMsg; - public const string PermScanWifi = Material.Rounded.PermScanWifi; - public const string Person = Material.Rounded.Person; - public const string Person2 = Material.Rounded.Person2; - public const string Person3 = Material.Rounded.Person3; - public const string Person4 = Material.Rounded.Person4; - public const string PersonAdd = Material.Rounded.PersonAdd; - public const string PersonAddAlt = Material.Rounded.PersonAddAlt; - public const string PersonAddAlt1 = Material.Rounded.PersonAddAlt1; - public const string PersonAddDisabled = Material.Rounded.PersonAddDisabled; - public const string PersonOff = Material.Rounded.PersonOff; - public const string PersonOutline = Material.Rounded.PersonOutline; - public const string PersonPin = Material.Rounded.PersonPin; - public const string PersonPinCircle = Material.Rounded.PersonPinCircle; - public const string PersonRemove = Material.Rounded.PersonRemove; - public const string PersonRemoveAlt1 = Material.Rounded.PersonRemoveAlt1; - public const string PersonSearch = Material.Rounded.PersonSearch; - public const string PersonalInjury = Material.Rounded.PersonalInjury; - public const string PersonalVideo = Material.Rounded.PersonalVideo; - public const string PestControl = Material.Rounded.PestControl; - public const string PestControlRodent = Material.Rounded.PestControlRodent; - public const string Pets = Material.Rounded.Pets; - public const string Phishing = Material.Rounded.Phishing; - public const string Phone = Material.Rounded.Phone; - public const string PhoneAndroid = Material.Rounded.PhoneAndroid; - public const string PhoneBluetoothSpeaker = Material.Rounded.PhoneBluetoothSpeaker; - public const string PhoneCallback = Material.Rounded.PhoneCallback; - public const string PhoneDisabled = Material.Rounded.PhoneDisabled; - public const string PhoneEnabled = Material.Rounded.PhoneEnabled; - public const string PhoneForwarded = Material.Rounded.PhoneForwarded; - public const string PhoneIphone = Material.Rounded.PhoneIphone; - public const string PhoneLocked = Material.Rounded.PhoneLocked; - public const string PhoneMissed = Material.Rounded.PhoneMissed; - public const string PhonePaused = Material.Rounded.PhonePaused; - public const string Phonelink = Material.Rounded.Phonelink; - public const string PhonelinkErase = Material.Rounded.PhonelinkErase; - public const string PhonelinkLock = Material.Rounded.PhonelinkLock; - public const string PhonelinkOff = Material.Rounded.PhonelinkOff; - public const string PhonelinkRing = Material.Rounded.PhonelinkRing; - public const string PhonelinkSetup = Material.Rounded.PhonelinkSetup; - public const string Photo = Material.Rounded.Photo; - public const string PhotoAlbum = Material.Rounded.PhotoAlbum; - public const string PhotoCamera = Material.Rounded.PhotoCamera; - public const string PhotoCameraBack = Material.Rounded.PhotoCameraBack; - public const string PhotoCameraFront = Material.Rounded.PhotoCameraFront; - public const string PhotoFilter = Material.Rounded.PhotoFilter; - public const string PhotoLibrary = Material.Rounded.PhotoLibrary; - public const string PhotoSizeSelectActual = Material.Rounded.PhotoSizeSelectActual; - public const string PhotoSizeSelectLarge = Material.Rounded.PhotoSizeSelectLarge; - public const string PhotoSizeSelectSmall = Material.Rounded.PhotoSizeSelectSmall; - public const string Php = Material.Rounded.Php; - public const string Piano = Material.Rounded.Piano; - public const string PianoOff = Material.Rounded.PianoOff; - public const string PictureAsPdf = Material.Rounded.PictureAsPdf; - public const string PictureInPicture = Material.Rounded.PictureInPicture; - public const string PictureInPictureAlt = Material.Rounded.PictureInPictureAlt; - public const string PieChart = Material.Rounded.PieChart; - public const string PieChartOutline = Material.Rounded.PieChartOutline; - public const string Pin = Material.Rounded.Pin; - public const string PinDrop = Material.Rounded.PinDrop; - public const string PinEnd = Material.Rounded.PinEnd; - public const string PinInvoke = Material.Rounded.PinInvoke; - public const string Pinch = Material.Rounded.Pinch; - public const string PivotTableChart = Material.Rounded.PivotTableChart; - public const string Pix = Material.Rounded.Pix; - public const string Place = Material.Rounded.Place; - public const string Plagiarism = Material.Rounded.Plagiarism; - public const string PlayArrow = Material.Rounded.PlayArrow; - public const string PlayCircle = Material.Rounded.PlayCircle; - public const string PlayCircleFilled = Material.Rounded.PlayCircleFilled; - public const string PlayCircleOutline = Material.Rounded.PlayCircleOutline; - public const string PlayDisabled = Material.Rounded.PlayDisabled; - public const string PlayForWork = Material.Rounded.PlayForWork; - public const string PlayLesson = Material.Rounded.PlayLesson; - public const string PlaylistAdd = Material.Rounded.PlaylistAdd; - public const string PlaylistAddCheck = Material.Rounded.PlaylistAddCheck; - public const string PlaylistAddCheckCircle = Material.Rounded.PlaylistAddCheckCircle; - public const string PlaylistAddCircle = Material.Rounded.PlaylistAddCircle; - public const string PlaylistPlay = Material.Rounded.PlaylistPlay; - public const string PlaylistRemove = Material.Rounded.PlaylistRemove; - public const string Plumbing = Material.Rounded.Plumbing; - public const string PlusOne = Material.Rounded.PlusOne; - public const string Podcasts = Material.Rounded.Podcasts; - public const string PointOfSale = Material.Rounded.PointOfSale; - public const string Policy = Material.Rounded.Policy; - public const string Poll = Material.Rounded.Poll; - public const string Polyline = Material.Rounded.Polyline; - public const string Polymer = Material.Rounded.Polymer; - public const string Pool = Material.Rounded.Pool; - public const string PortableWifiOff = Material.Rounded.PortableWifiOff; - public const string Portrait = Material.Rounded.Portrait; - public const string PostAdd = Material.Rounded.PostAdd; - public const string Power = Material.Rounded.Power; - public const string PowerInput = Material.Rounded.PowerInput; - public const string PowerOff = Material.Rounded.PowerOff; - public const string PowerSettingsNew = Material.Rounded.PowerSettingsNew; - public const string PrecisionManufacturing = Material.Rounded.PrecisionManufacturing; - public const string PregnantWoman = Material.Rounded.PregnantWoman; - public const string PresentToAll = Material.Rounded.PresentToAll; - public const string Preview = Material.Rounded.Preview; - public const string PriceChange = Material.Rounded.PriceChange; - public const string PriceCheck = Material.Rounded.PriceCheck; - public const string Print = Material.Rounded.Print; - public const string PrintDisabled = Material.Rounded.PrintDisabled; - public const string PriorityHigh = Material.Rounded.PriorityHigh; - public const string PrivacyTip = Material.Rounded.PrivacyTip; - public const string PrivateConnectivity = Material.Rounded.PrivateConnectivity; - public const string ProductionQuantityLimits = Material.Rounded.ProductionQuantityLimits; - public const string Propane = Material.Rounded.Propane; - public const string PropaneTank = Material.Rounded.PropaneTank; - public const string Psychology = Material.Rounded.Psychology; - public const string PsychologyAlt = Material.Rounded.PsychologyAlt; - public const string Public = Material.Rounded.Public; - public const string PublicOff = Material.Rounded.PublicOff; - public const string Publish = Material.Rounded.Publish; - public const string PublishedWithChanges = Material.Rounded.PublishedWithChanges; - public const string PunchClock = Material.Rounded.PunchClock; - public const string PushPin = Material.Rounded.PushPin; - public const string QrCode = Material.Rounded.QrCode; - public const string QrCode2 = Material.Rounded.QrCode2; - public const string QrCodeScanner = Material.Rounded.QrCodeScanner; - public const string QueryBuilder = Material.Rounded.QueryBuilder; - public const string QueryStats = Material.Rounded.QueryStats; - public const string QuestionAnswer = Material.Rounded.QuestionAnswer; - public const string QuestionMark = Material.Rounded.QuestionMark; - public const string Queue = Material.Rounded.Queue; - public const string QueueMusic = Material.Rounded.QueueMusic; - public const string QueuePlayNext = Material.Rounded.QueuePlayNext; - public const string Quickreply = Material.Rounded.Quickreply; - public const string Quiz = Material.Rounded.Quiz; - public const string RMobiledata = Material.Rounded.RMobiledata; - public const string Radar = Material.Rounded.Radar; - public const string Radio = Material.Rounded.Radio; - public const string RadioButtonChecked = Material.Rounded.RadioButtonChecked; - public const string RadioButtonUnchecked = Material.Rounded.RadioButtonUnchecked; - public const string RailwayAlert = Material.Rounded.RailwayAlert; - public const string RamenDining = Material.Rounded.RamenDining; - public const string RampLeft = Material.Rounded.RampLeft; - public const string RampRight = Material.Rounded.RampRight; - public const string RateReview = Material.Rounded.RateReview; - public const string RawOff = Material.Rounded.RawOff; - public const string RawOn = Material.Rounded.RawOn; - public const string ReadMore = Material.Rounded.ReadMore; - public const string RealEstateAgent = Material.Rounded.RealEstateAgent; - public const string Receipt = Material.Rounded.Receipt; - public const string ReceiptLong = Material.Rounded.ReceiptLong; - public const string RecentActors = Material.Rounded.RecentActors; - public const string Recommend = Material.Rounded.Recommend; - public const string RecordVoiceOver = Material.Rounded.RecordVoiceOver; - public const string Rectangle = Material.Rounded.Rectangle; - public const string Recycling = Material.Rounded.Recycling; - public const string Redeem = Material.Rounded.Redeem; - public const string Redo = Material.Rounded.Redo; - public const string ReduceCapacity = Material.Rounded.ReduceCapacity; - public const string Refresh = Material.Rounded.Refresh; - public const string RememberMe = Material.Rounded.RememberMe; - public const string Remove = Material.Rounded.Remove; - public const string RemoveCircle = Material.Rounded.RemoveCircle; - public const string RemoveCircleOutline = Material.Rounded.RemoveCircleOutline; - public const string RemoveDone = Material.Rounded.RemoveDone; - public const string RemoveFromQueue = Material.Rounded.RemoveFromQueue; - public const string RemoveModerator = Material.Rounded.RemoveModerator; - public const string RemoveRedEye = Material.Rounded.RemoveRedEye; - public const string RemoveRoad = Material.Rounded.RemoveRoad; - public const string RemoveShoppingCart = Material.Rounded.RemoveShoppingCart; - public const string Reorder = Material.Rounded.Reorder; - public const string Repartition = Material.Rounded.Repartition; - public const string Repeat = Material.Rounded.Repeat; - public const string RepeatOn = Material.Rounded.RepeatOn; - public const string RepeatOne = Material.Rounded.RepeatOne; - public const string RepeatOneOn = Material.Rounded.RepeatOneOn; - public const string Replay = Material.Rounded.Replay; - public const string Replay10 = Material.Rounded.Replay10; - public const string Replay30 = Material.Rounded.Replay30; - public const string Replay5 = Material.Rounded.Replay5; - public const string ReplayCircleFilled = Material.Rounded.ReplayCircleFilled; - public const string Reply = Material.Rounded.Reply; - public const string ReplyAll = Material.Rounded.ReplyAll; - public const string Report = Material.Rounded.Report; - public const string ReportGmailerrorred = Material.Rounded.ReportGmailerrorred; - public const string ReportOff = Material.Rounded.ReportOff; - public const string ReportProblem = Material.Rounded.ReportProblem; - public const string RequestPage = Material.Rounded.RequestPage; - public const string RequestQuote = Material.Rounded.RequestQuote; - public const string ResetTv = Material.Rounded.ResetTv; - public const string RestartAlt = Material.Rounded.RestartAlt; - public const string Restaurant = Material.Rounded.Restaurant; - public const string RestaurantMenu = Material.Rounded.RestaurantMenu; - public const string Restore = Material.Rounded.Restore; - public const string RestoreFromTrash = Material.Rounded.RestoreFromTrash; - public const string RestorePage = Material.Rounded.RestorePage; - public const string Reviews = Material.Rounded.Reviews; - public const string RiceBowl = Material.Rounded.RiceBowl; - public const string RingVolume = Material.Rounded.RingVolume; - public const string Rocket = Material.Rounded.Rocket; - public const string RocketLaunch = Material.Rounded.RocketLaunch; - public const string RollerShades = Material.Rounded.RollerShades; - public const string RollerShadesClosed = Material.Rounded.RollerShadesClosed; - public const string RollerSkating = Material.Rounded.RollerSkating; - public const string Roofing = Material.Rounded.Roofing; - public const string Room = Material.Rounded.Room; - public const string RoomPreferences = Material.Rounded.RoomPreferences; - public const string RoomService = Material.Rounded.RoomService; - public const string Rotate90DegreesCcw = Material.Rounded.Rotate90DegreesCcw; - public const string Rotate90DegreesCw = Material.Rounded.Rotate90DegreesCw; - public const string RotateLeft = Material.Rounded.RotateLeft; - public const string RotateRight = Material.Rounded.RotateRight; - public const string RoundaboutLeft = Material.Rounded.RoundaboutLeft; - public const string RoundaboutRight = Material.Rounded.RoundaboutRight; - public const string RoundedCorner = Material.Rounded.RoundedCorner; - public const string Route = Material.Rounded.Route; - public const string Router = Material.Rounded.Router; - public const string Rowing = Material.Rounded.Rowing; - public const string RssFeed = Material.Rounded.RssFeed; - public const string Rsvp = Material.Rounded.Rsvp; - public const string Rtt = Material.Rounded.Rtt; - public const string Rule = Material.Rounded.Rule; - public const string RuleFolder = Material.Rounded.RuleFolder; - public const string RunCircle = Material.Rounded.RunCircle; - public const string RunningWithErrors = Material.Rounded.RunningWithErrors; - public const string RvHookup = Material.Rounded.RvHookup; - public const string SafetyCheck = Material.Rounded.SafetyCheck; - public const string SafetyDivider = Material.Rounded.SafetyDivider; - public const string Sailing = Material.Rounded.Sailing; - public const string Sanitizer = Material.Rounded.Sanitizer; - public const string Satellite = Material.Rounded.Satellite; - public const string SatelliteAlt = Material.Rounded.SatelliteAlt; - public const string Save = Material.Rounded.Save; - public const string SaveAlt = Material.Rounded.SaveAlt; - public const string SaveAs = Material.Rounded.SaveAs; - public const string SavedSearch = Material.Rounded.SavedSearch; - public const string Savings = Material.Rounded.Savings; - public const string Scale = Material.Rounded.Scale; - public const string Scanner = Material.Rounded.Scanner; - public const string ScatterPlot = Material.Rounded.ScatterPlot; - public const string Schedule = Material.Rounded.Schedule; - public const string ScheduleSend = Material.Rounded.ScheduleSend; - public const string Schema = Material.Rounded.Schema; - public const string School = Material.Rounded.School; - public const string Science = Material.Rounded.Science; - public const string Score = Material.Rounded.Score; - public const string Scoreboard = Material.Rounded.Scoreboard; - public const string ScreenLockLandscape = Material.Rounded.ScreenLockLandscape; - public const string ScreenLockPortrait = Material.Rounded.ScreenLockPortrait; - public const string ScreenLockRotation = Material.Rounded.ScreenLockRotation; - public const string ScreenRotation = Material.Rounded.ScreenRotation; - public const string ScreenRotationAlt = Material.Rounded.ScreenRotationAlt; - public const string ScreenSearchDesktop = Material.Rounded.ScreenSearchDesktop; - public const string ScreenShare = Material.Rounded.ScreenShare; - public const string Screenshot = Material.Rounded.Screenshot; - public const string ScreenshotMonitor = Material.Rounded.ScreenshotMonitor; - public const string ScubaDiving = Material.Rounded.ScubaDiving; - public const string Sd = Material.Rounded.Sd; - public const string SdCard = Material.Rounded.SdCard; - public const string SdCardAlert = Material.Rounded.SdCardAlert; - public const string SdStorage = Material.Rounded.SdStorage; - public const string Search = Material.Rounded.Search; - public const string SearchOff = Material.Rounded.SearchOff; - public const string Security = Material.Rounded.Security; - public const string SecurityUpdate = Material.Rounded.SecurityUpdate; - public const string SecurityUpdateGood = Material.Rounded.SecurityUpdateGood; - public const string SecurityUpdateWarning = Material.Rounded.SecurityUpdateWarning; - public const string Segment = Material.Rounded.Segment; - public const string SelectAll = Material.Rounded.SelectAll; - public const string SelfImprovement = Material.Rounded.SelfImprovement; - public const string Sell = Material.Rounded.Sell; - public const string Send = Material.Rounded.Send; - public const string SendAndArchive = Material.Rounded.SendAndArchive; - public const string SendTimeExtension = Material.Rounded.SendTimeExtension; - public const string SendToMobile = Material.Rounded.SendToMobile; - public const string SensorDoor = Material.Rounded.SensorDoor; - public const string SensorOccupied = Material.Rounded.SensorOccupied; - public const string SensorWindow = Material.Rounded.SensorWindow; - public const string Sensors = Material.Rounded.Sensors; - public const string SensorsOff = Material.Rounded.SensorsOff; - public const string SentimentDissatisfied = Material.Rounded.SentimentDissatisfied; - public const string SentimentNeutral = Material.Rounded.SentimentNeutral; - public const string SentimentSatisfied = Material.Rounded.SentimentSatisfied; - public const string SentimentSatisfiedAlt = Material.Rounded.SentimentSatisfiedAlt; - public const string SentimentVeryDissatisfied = Material.Rounded.SentimentVeryDissatisfied; - public const string SentimentVerySatisfied = Material.Rounded.SentimentVerySatisfied; - public const string SetMeal = Material.Rounded.SetMeal; - public const string Settings = Material.Rounded.Settings; - public const string SettingsAccessibility = Material.Rounded.SettingsAccessibility; - public const string SettingsApplications = Material.Rounded.SettingsApplications; - public const string SettingsBackupRestore = Material.Rounded.SettingsBackupRestore; - public const string SettingsBluetooth = Material.Rounded.SettingsBluetooth; - public const string SettingsBrightness = Material.Rounded.SettingsBrightness; - public const string SettingsCell = Material.Rounded.SettingsCell; - public const string SettingsEthernet = Material.Rounded.SettingsEthernet; - public const string SettingsInputAntenna = Material.Rounded.SettingsInputAntenna; - public const string SettingsInputComponent = Material.Rounded.SettingsInputComponent; - public const string SettingsInputComposite = Material.Rounded.SettingsInputComposite; - public const string SettingsInputHdmi = Material.Rounded.SettingsInputHdmi; - public const string SettingsInputSvideo = Material.Rounded.SettingsInputSvideo; - public const string SettingsOverscan = Material.Rounded.SettingsOverscan; - public const string SettingsPhone = Material.Rounded.SettingsPhone; - public const string SettingsPower = Material.Rounded.SettingsPower; - public const string SettingsRemote = Material.Rounded.SettingsRemote; - public const string SettingsSuggest = Material.Rounded.SettingsSuggest; - public const string SettingsSystemDaydream = Material.Rounded.SettingsSystemDaydream; - public const string SettingsVoice = Material.Rounded.SettingsVoice; - public const string SevereCold = Material.Rounded.SevereCold; - public const string ShapeLine = Material.Rounded.ShapeLine; - public const string Share = Material.Rounded.Share; - public const string ShareLocation = Material.Rounded.ShareLocation; - public const string Shield = Material.Rounded.Shield; - public const string ShieldMoon = Material.Rounded.ShieldMoon; - public const string Shop = Material.Rounded.Shop; - public const string Shop2 = Material.Rounded.Shop2; - public const string ShopTwo = Material.Rounded.ShopTwo; - public const string ShoppingBag = Material.Rounded.ShoppingBag; - public const string ShoppingBasket = Material.Rounded.ShoppingBasket; - public const string ShoppingCart = Material.Rounded.ShoppingCart; - public const string ShoppingCartCheckout = Material.Rounded.ShoppingCartCheckout; - public const string ShortText = Material.Rounded.ShortText; - public const string Shortcut = Material.Rounded.Shortcut; - public const string ShowChart = Material.Rounded.ShowChart; - public const string Shower = Material.Rounded.Shower; - public const string Shuffle = Material.Rounded.Shuffle; - public const string ShuffleOn = Material.Rounded.ShuffleOn; - public const string ShutterSpeed = Material.Rounded.ShutterSpeed; - public const string Sick = Material.Rounded.Sick; - public const string SignLanguage = Material.Rounded.SignLanguage; - public const string SignalCellular0Bar = Material.Rounded.SignalCellular0Bar; - public const string SignalCellular4Bar = Material.Rounded.SignalCellular4Bar; - public const string SignalCellularAlt = Material.Rounded.SignalCellularAlt; - public const string SignalCellularAlt1Bar = Material.Rounded.SignalCellularAlt1Bar; - public const string SignalCellularAlt2Bar = Material.Rounded.SignalCellularAlt2Bar; - public const string SignalCellularConnectedNoInternet0Bar = Material.Rounded.SignalCellularConnectedNoInternet0Bar; - public const string SignalCellularConnectedNoInternet4Bar = Material.Rounded.SignalCellularConnectedNoInternet4Bar; - public const string SignalCellularNoSim = Material.Rounded.SignalCellularNoSim; - public const string SignalCellularNodata = Material.Rounded.SignalCellularNodata; - public const string SignalCellularNull = Material.Rounded.SignalCellularNull; - public const string SignalCellularOff = Material.Rounded.SignalCellularOff; - public const string SignalWifi0Bar = Material.Rounded.SignalWifi0Bar; - public const string SignalWifi4Bar = Material.Rounded.SignalWifi4Bar; - public const string SignalWifi4BarLock = Material.Rounded.SignalWifi4BarLock; - public const string SignalWifiBad = Material.Rounded.SignalWifiBad; - public const string SignalWifiConnectedNoInternet4 = Material.Rounded.SignalWifiConnectedNoInternet4; - public const string SignalWifiOff = Material.Rounded.SignalWifiOff; - public const string SignalWifiStatusbar4Bar = Material.Rounded.SignalWifiStatusbar4Bar; - public const string SignalWifiStatusbarConnectedNoInternet4 = Material.Rounded.SignalWifiStatusbarConnectedNoInternet4; - public const string SignalWifiStatusbarNull = Material.Rounded.SignalWifiStatusbarNull; - public const string Signpost = Material.Rounded.Signpost; - public const string SimCard = Material.Rounded.SimCard; - public const string SimCardAlert = Material.Rounded.SimCardAlert; - public const string SimCardDownload = Material.Rounded.SimCardDownload; - public const string SingleBed = Material.Rounded.SingleBed; - public const string Sip = Material.Rounded.Sip; - public const string Skateboarding = Material.Rounded.Skateboarding; - public const string SkipNext = Material.Rounded.SkipNext; - public const string SkipPrevious = Material.Rounded.SkipPrevious; - public const string Sledding = Material.Rounded.Sledding; - public const string Slideshow = Material.Rounded.Slideshow; - public const string SlowMotionVideo = Material.Rounded.SlowMotionVideo; - public const string SmartButton = Material.Rounded.SmartButton; - public const string SmartDisplay = Material.Rounded.SmartDisplay; - public const string SmartScreen = Material.Rounded.SmartScreen; - public const string SmartToy = Material.Rounded.SmartToy; - public const string Smartphone = Material.Rounded.Smartphone; - public const string SmokeFree = Material.Rounded.SmokeFree; - public const string SmokingRooms = Material.Rounded.SmokingRooms; - public const string Sms = Material.Rounded.Sms; - public const string SmsFailed = Material.Rounded.SmsFailed; - public const string SnippetFolder = Material.Rounded.SnippetFolder; - public const string Snooze = Material.Rounded.Snooze; - public const string Snowboarding = Material.Rounded.Snowboarding; - public const string Snowmobile = Material.Rounded.Snowmobile; - public const string Snowshoeing = Material.Rounded.Snowshoeing; - public const string Soap = Material.Rounded.Soap; - public const string SocialDistance = Material.Rounded.SocialDistance; - public const string SolarPower = Material.Rounded.SolarPower; - public const string Sort = Material.Rounded.Sort; - public const string SortByAlpha = Material.Rounded.SortByAlpha; - public const string Sos = Material.Rounded.Sos; - public const string SoupKitchen = Material.Rounded.SoupKitchen; - public const string Source = Material.Rounded.Source; - public const string South = Material.Rounded.South; - public const string SouthAmerica = Material.Rounded.SouthAmerica; - public const string SouthEast = Material.Rounded.SouthEast; - public const string SouthWest = Material.Rounded.SouthWest; - public const string Spa = Material.Rounded.Spa; - public const string SpaceBar = Material.Rounded.SpaceBar; - public const string SpaceDashboard = Material.Rounded.SpaceDashboard; - public const string SpatialAudio = Material.Rounded.SpatialAudio; - public const string SpatialAudioOff = Material.Rounded.SpatialAudioOff; - public const string SpatialTracking = Material.Rounded.SpatialTracking; - public const string Speaker = Material.Rounded.Speaker; - public const string SpeakerGroup = Material.Rounded.SpeakerGroup; - public const string SpeakerNotes = Material.Rounded.SpeakerNotes; - public const string SpeakerNotesOff = Material.Rounded.SpeakerNotesOff; - public const string SpeakerPhone = Material.Rounded.SpeakerPhone; - public const string Speed = Material.Rounded.Speed; - public const string Spellcheck = Material.Rounded.Spellcheck; - public const string Splitscreen = Material.Rounded.Splitscreen; - public const string Spoke = Material.Rounded.Spoke; - public const string Sports = Material.Rounded.Sports; - public const string SportsBar = Material.Rounded.SportsBar; - public const string SportsBaseball = Material.Rounded.SportsBaseball; - public const string SportsBasketball = Material.Rounded.SportsBasketball; - public const string SportsCricket = Material.Rounded.SportsCricket; - public const string SportsEsports = Material.Rounded.SportsEsports; - public const string SportsFootball = Material.Rounded.SportsFootball; - public const string SportsGolf = Material.Rounded.SportsGolf; - public const string SportsGymnastics = Material.Rounded.SportsGymnastics; - public const string SportsHandball = Material.Rounded.SportsHandball; - public const string SportsHockey = Material.Rounded.SportsHockey; - public const string SportsKabaddi = Material.Rounded.SportsKabaddi; - public const string SportsMartialArts = Material.Rounded.SportsMartialArts; - public const string SportsMma = Material.Rounded.SportsMma; - public const string SportsMotorsports = Material.Rounded.SportsMotorsports; - public const string SportsRugby = Material.Rounded.SportsRugby; - public const string SportsScore = Material.Rounded.SportsScore; - public const string SportsSoccer = Material.Rounded.SportsSoccer; - public const string SportsTennis = Material.Rounded.SportsTennis; - public const string SportsVolleyball = Material.Rounded.SportsVolleyball; - public const string Square = Material.Rounded.Square; - public const string SquareFoot = Material.Rounded.SquareFoot; - public const string SsidChart = Material.Rounded.SsidChart; - public const string StackedBarChart = Material.Rounded.StackedBarChart; - public const string StackedLineChart = Material.Rounded.StackedLineChart; - public const string Stadium = Material.Rounded.Stadium; - public const string Stairs = Material.Rounded.Stairs; - public const string Star = Material.Rounded.Star; - public const string StarBorder = Material.Rounded.StarBorder; - public const string StarBorderPurple500 = Material.Rounded.StarBorderPurple500; - public const string StarHalf = Material.Rounded.StarHalf; - public const string StarOutline = Material.Rounded.StarOutline; - public const string StarPurple500 = Material.Rounded.StarPurple500; - public const string StarRate = Material.Rounded.StarRate; - public const string Stars = Material.Rounded.Stars; - public const string Start = Material.Rounded.Start; - public const string StayCurrentLandscape = Material.Rounded.StayCurrentLandscape; - public const string StayCurrentPortrait = Material.Rounded.StayCurrentPortrait; - public const string StayPrimaryLandscape = Material.Rounded.StayPrimaryLandscape; - public const string StayPrimaryPortrait = Material.Rounded.StayPrimaryPortrait; - public const string StickyNote2 = Material.Rounded.StickyNote2; - public const string Stop = Material.Rounded.Stop; - public const string StopCircle = Material.Rounded.StopCircle; - public const string StopScreenShare = Material.Rounded.StopScreenShare; - public const string Storage = Material.Rounded.Storage; - public const string Store = Material.Rounded.Store; - public const string StoreMallDirectory = Material.Rounded.StoreMallDirectory; - public const string Storefront = Material.Rounded.Storefront; - public const string Storm = Material.Rounded.Storm; - public const string Straight = Material.Rounded.Straight; - public const string Straighten = Material.Rounded.Straighten; - public const string Stream = Material.Rounded.Stream; - public const string Streetview = Material.Rounded.Streetview; - public const string StrikethroughS = Material.Rounded.StrikethroughS; - public const string Stroller = Material.Rounded.Stroller; - public const string Style = Material.Rounded.Style; - public const string SubdirectoryArrowLeft = Material.Rounded.SubdirectoryArrowLeft; - public const string SubdirectoryArrowRight = Material.Rounded.SubdirectoryArrowRight; - public const string Subject = Material.Rounded.Subject; - public const string Subscript = Material.Rounded.Subscript; - public const string Subscriptions = Material.Rounded.Subscriptions; - public const string Subtitles = Material.Rounded.Subtitles; - public const string SubtitlesOff = Material.Rounded.SubtitlesOff; - public const string Subway = Material.Rounded.Subway; - public const string Summarize = Material.Rounded.Summarize; - public const string Superscript = Material.Rounded.Superscript; - public const string SupervisedUserCircle = Material.Rounded.SupervisedUserCircle; - public const string SupervisorAccount = Material.Rounded.SupervisorAccount; - public const string Support = Material.Rounded.Support; - public const string SupportAgent = Material.Rounded.SupportAgent; - public const string Surfing = Material.Rounded.Surfing; - public const string SurroundSound = Material.Rounded.SurroundSound; - public const string SwapCalls = Material.Rounded.SwapCalls; - public const string SwapHoriz = Material.Rounded.SwapHoriz; - public const string SwapHorizontalCircle = Material.Rounded.SwapHorizontalCircle; - public const string SwapVert = Material.Rounded.SwapVert; - public const string SwapVerticalCircle = Material.Rounded.SwapVerticalCircle; - public const string Swipe = Material.Rounded.Swipe; - public const string SwipeDown = Material.Rounded.SwipeDown; - public const string SwipeDownAlt = Material.Rounded.SwipeDownAlt; - public const string SwipeLeft = Material.Rounded.SwipeLeft; - public const string SwipeLeftAlt = Material.Rounded.SwipeLeftAlt; - public const string SwipeRight = Material.Rounded.SwipeRight; - public const string SwipeRightAlt = Material.Rounded.SwipeRightAlt; - public const string SwipeUp = Material.Rounded.SwipeUp; - public const string SwipeUpAlt = Material.Rounded.SwipeUpAlt; - public const string SwipeVertical = Material.Rounded.SwipeVertical; - public const string SwitchAccessShortcut = Material.Rounded.SwitchAccessShortcut; - public const string SwitchAccessShortcutAdd = Material.Rounded.SwitchAccessShortcutAdd; - public const string SwitchAccount = Material.Rounded.SwitchAccount; - public const string SwitchCamera = Material.Rounded.SwitchCamera; - public const string SwitchLeft = Material.Rounded.SwitchLeft; - public const string SwitchRight = Material.Rounded.SwitchRight; - public const string SwitchVideo = Material.Rounded.SwitchVideo; - public const string Synagogue = Material.Rounded.Synagogue; - public const string Sync = Material.Rounded.Sync; - public const string SyncAlt = Material.Rounded.SyncAlt; - public const string SyncDisabled = Material.Rounded.SyncDisabled; - public const string SyncLock = Material.Rounded.SyncLock; - public const string SyncProblem = Material.Rounded.SyncProblem; - public const string SystemSecurityUpdate = Material.Rounded.SystemSecurityUpdate; - public const string SystemSecurityUpdateGood = Material.Rounded.SystemSecurityUpdateGood; - public const string SystemSecurityUpdateWarning = Material.Rounded.SystemSecurityUpdateWarning; - public const string SystemUpdate = Material.Rounded.SystemUpdate; - public const string SystemUpdateAlt = Material.Rounded.SystemUpdateAlt; - public const string Tab = Material.Rounded.Tab; - public const string TabUnselected = Material.Rounded.TabUnselected; - public const string TableBar = Material.Rounded.TableBar; - public const string TableChart = Material.Rounded.TableChart; - public const string TableRestaurant = Material.Rounded.TableRestaurant; - public const string TableRows = Material.Rounded.TableRows; - public const string TableView = Material.Rounded.TableView; - public const string Tablet = Material.Rounded.Tablet; - public const string TabletAndroid = Material.Rounded.TabletAndroid; - public const string TabletMac = Material.Rounded.TabletMac; - public const string Tag = Material.Rounded.Tag; - public const string TagFaces = Material.Rounded.TagFaces; - public const string TakeoutDining = Material.Rounded.TakeoutDining; - public const string TapAndPlay = Material.Rounded.TapAndPlay; - public const string Tapas = Material.Rounded.Tapas; - public const string Task = Material.Rounded.Task; - public const string TaskAlt = Material.Rounded.TaskAlt; - public const string TaxiAlert = Material.Rounded.TaxiAlert; - public const string TempleBuddhist = Material.Rounded.TempleBuddhist; - public const string TempleHindu = Material.Rounded.TempleHindu; - public const string Terminal = Material.Rounded.Terminal; - public const string Terrain = Material.Rounded.Terrain; - public const string TextDecrease = Material.Rounded.TextDecrease; - public const string TextFields = Material.Rounded.TextFields; - public const string TextFormat = Material.Rounded.TextFormat; - public const string TextIncrease = Material.Rounded.TextIncrease; - public const string TextRotateUp = Material.Rounded.TextRotateUp; - public const string TextRotateVertical = Material.Rounded.TextRotateVertical; - public const string TextRotationAngledown = Material.Rounded.TextRotationAngledown; - public const string TextRotationAngleup = Material.Rounded.TextRotationAngleup; - public const string TextRotationDown = Material.Rounded.TextRotationDown; - public const string TextRotationNone = Material.Rounded.TextRotationNone; - public const string TextSnippet = Material.Rounded.TextSnippet; - public const string Textsms = Material.Rounded.Textsms; - public const string Texture = Material.Rounded.Texture; - public const string TheaterComedy = Material.Rounded.TheaterComedy; - public const string Theaters = Material.Rounded.Theaters; - public const string Thermostat = Material.Rounded.Thermostat; - public const string ThermostatAuto = Material.Rounded.ThermostatAuto; - public const string ThumbDown = Material.Rounded.ThumbDown; - public const string ThumbDownAlt = Material.Rounded.ThumbDownAlt; - public const string ThumbDownOffAlt = Material.Rounded.ThumbDownOffAlt; - public const string ThumbUp = Material.Rounded.ThumbUp; - public const string ThumbUpAlt = Material.Rounded.ThumbUpAlt; - public const string ThumbUpOffAlt = Material.Rounded.ThumbUpOffAlt; - public const string ThumbsUpDown = Material.Rounded.ThumbsUpDown; - public const string Thunderstorm = Material.Rounded.Thunderstorm; - public const string TimeToLeave = Material.Rounded.TimeToLeave; - public const string Timelapse = Material.Rounded.Timelapse; - public const string Timeline = Material.Rounded.Timeline; - public const string Timer = Material.Rounded.Timer; - public const string Timer10 = Material.Rounded.Timer10; - public const string Timer10Select = Material.Rounded.Timer10Select; - public const string Timer3 = Material.Rounded.Timer3; - public const string Timer3Select = Material.Rounded.Timer3Select; - public const string TimerOff = Material.Rounded.TimerOff; - public const string TipsAndUpdates = Material.Rounded.TipsAndUpdates; - public const string TireRepair = Material.Rounded.TireRepair; - public const string Title = Material.Rounded.Title; - public const string Toc = Material.Rounded.Toc; - public const string Today = Material.Rounded.Today; - public const string ToggleOff = Material.Rounded.ToggleOff; - public const string ToggleOn = Material.Rounded.ToggleOn; - public const string Token = Material.Rounded.Token; - public const string Toll = Material.Rounded.Toll; - public const string Tonality = Material.Rounded.Tonality; - public const string Topic = Material.Rounded.Topic; - public const string Tornado = Material.Rounded.Tornado; - public const string TouchApp = Material.Rounded.TouchApp; - public const string Tour = Material.Rounded.Tour; - public const string Toys = Material.Rounded.Toys; - public const string TrackChanges = Material.Rounded.TrackChanges; - public const string Traffic = Material.Rounded.Traffic; - public const string Train = Material.Rounded.Train; - public const string Tram = Material.Rounded.Tram; - public const string Transcribe = Material.Rounded.Transcribe; - public const string TransferWithinAStation = Material.Rounded.TransferWithinAStation; - public const string Transform = Material.Rounded.Transform; - public const string Transgender = Material.Rounded.Transgender; - public const string TransitEnterexit = Material.Rounded.TransitEnterexit; - public const string Translate = Material.Rounded.Translate; - public const string TravelExplore = Material.Rounded.TravelExplore; - public const string TrendingDown = Material.Rounded.TrendingDown; - public const string TrendingFlat = Material.Rounded.TrendingFlat; - public const string TrendingUp = Material.Rounded.TrendingUp; - public const string TripOrigin = Material.Rounded.TripOrigin; - public const string Troubleshoot = Material.Rounded.Troubleshoot; - public const string Try = Material.Rounded.Try; - public const string Tsunami = Material.Rounded.Tsunami; - public const string Tty = Material.Rounded.Tty; - public const string Tune = Material.Rounded.Tune; - public const string Tungsten = Material.Rounded.Tungsten; - public const string TurnLeft = Material.Rounded.TurnLeft; - public const string TurnRight = Material.Rounded.TurnRight; - public const string TurnSharpLeft = Material.Rounded.TurnSharpLeft; - public const string TurnSharpRight = Material.Rounded.TurnSharpRight; - public const string TurnSlightLeft = Material.Rounded.TurnSlightLeft; - public const string TurnSlightRight = Material.Rounded.TurnSlightRight; - public const string TurnedIn = Material.Rounded.TurnedIn; - public const string TurnedInNot = Material.Rounded.TurnedInNot; - public const string Tv = Material.Rounded.Tv; - public const string TvOff = Material.Rounded.TvOff; - public const string TwoWheeler = Material.Rounded.TwoWheeler; - public const string TypeSpecimen = Material.Rounded.TypeSpecimen; - public const string UTurnLeft = Material.Rounded.UTurnLeft; - public const string UTurnRight = Material.Rounded.UTurnRight; - public const string Umbrella = Material.Rounded.Umbrella; - public const string Unarchive = Material.Rounded.Unarchive; - public const string Undo = Material.Rounded.Undo; - public const string UnfoldLess = Material.Rounded.UnfoldLess; - public const string UnfoldLessDouble = Material.Rounded.UnfoldLessDouble; - public const string UnfoldMore = Material.Rounded.UnfoldMore; - public const string UnfoldMoreDouble = Material.Rounded.UnfoldMoreDouble; - public const string Unpublished = Material.Rounded.Unpublished; - public const string Unsubscribe = Material.Rounded.Unsubscribe; - public const string Upcoming = Material.Rounded.Upcoming; - public const string Update = Material.Rounded.Update; - public const string UpdateDisabled = Material.Rounded.UpdateDisabled; - public const string Upgrade = Material.Rounded.Upgrade; - public const string Upload = Material.Rounded.Upload; - public const string UploadFile = Material.Rounded.UploadFile; - public const string Usb = Material.Rounded.Usb; - public const string UsbOff = Material.Rounded.UsbOff; - public const string Vaccines = Material.Rounded.Vaccines; - public const string VapeFree = Material.Rounded.VapeFree; - public const string VapingRooms = Material.Rounded.VapingRooms; - public const string Verified = Material.Rounded.Verified; - public const string VerifiedUser = Material.Rounded.VerifiedUser; - public const string VerticalAlignBottom = Material.Rounded.VerticalAlignBottom; - public const string VerticalAlignCenter = Material.Rounded.VerticalAlignCenter; - public const string VerticalAlignTop = Material.Rounded.VerticalAlignTop; - public const string VerticalDistribute = Material.Rounded.VerticalDistribute; - public const string VerticalShades = Material.Rounded.VerticalShades; - public const string VerticalShadesClosed = Material.Rounded.VerticalShadesClosed; - public const string VerticalSplit = Material.Rounded.VerticalSplit; - public const string Vibration = Material.Rounded.Vibration; - public const string VideoCall = Material.Rounded.VideoCall; - public const string VideoCameraBack = Material.Rounded.VideoCameraBack; - public const string VideoCameraFront = Material.Rounded.VideoCameraFront; - public const string VideoChat = Material.Rounded.VideoChat; - public const string VideoFile = Material.Rounded.VideoFile; - public const string VideoLabel = Material.Rounded.VideoLabel; - public const string VideoLibrary = Material.Rounded.VideoLibrary; - public const string VideoSettings = Material.Rounded.VideoSettings; - public const string VideoStable = Material.Rounded.VideoStable; - public const string Videocam = Material.Rounded.Videocam; - public const string VideocamOff = Material.Rounded.VideocamOff; - public const string VideogameAsset = Material.Rounded.VideogameAsset; - public const string VideogameAssetOff = Material.Rounded.VideogameAssetOff; - public const string ViewAgenda = Material.Rounded.ViewAgenda; - public const string ViewArray = Material.Rounded.ViewArray; - public const string ViewCarousel = Material.Rounded.ViewCarousel; - public const string ViewColumn = Material.Rounded.ViewColumn; - public const string ViewComfy = Material.Rounded.ViewComfy; - public const string ViewComfyAlt = Material.Rounded.ViewComfyAlt; - public const string ViewCompact = Material.Rounded.ViewCompact; - public const string ViewCompactAlt = Material.Rounded.ViewCompactAlt; - public const string ViewCozy = Material.Rounded.ViewCozy; - public const string ViewDay = Material.Rounded.ViewDay; - public const string ViewHeadline = Material.Rounded.ViewHeadline; - public const string ViewInAr = Material.Rounded.ViewInAr; - public const string ViewKanban = Material.Rounded.ViewKanban; - public const string ViewList = Material.Rounded.ViewList; - public const string ViewModule = Material.Rounded.ViewModule; - public const string ViewQuilt = Material.Rounded.ViewQuilt; - public const string ViewSidebar = Material.Rounded.ViewSidebar; - public const string ViewStream = Material.Rounded.ViewStream; - public const string ViewTimeline = Material.Rounded.ViewTimeline; - public const string ViewWeek = Material.Rounded.ViewWeek; - public const string Vignette = Material.Rounded.Vignette; - public const string Villa = Material.Rounded.Villa; - public const string Visibility = Material.Rounded.Visibility; - public const string VisibilityOff = Material.Rounded.VisibilityOff; - public const string VoiceChat = Material.Rounded.VoiceChat; - public const string VoiceOverOff = Material.Rounded.VoiceOverOff; - public const string Voicemail = Material.Rounded.Voicemail; - public const string Volcano = Material.Rounded.Volcano; - public const string VolumeDown = Material.Rounded.VolumeDown; - public const string VolumeMute = Material.Rounded.VolumeMute; - public const string VolumeOff = Material.Rounded.VolumeOff; - public const string VolumeUp = Material.Rounded.VolumeUp; - public const string VolunteerActivism = Material.Rounded.VolunteerActivism; - public const string VpnKey = Material.Rounded.VpnKey; - public const string VpnKeyOff = Material.Rounded.VpnKeyOff; - public const string VpnLock = Material.Rounded.VpnLock; - public const string Vrpano = Material.Rounded.Vrpano; - public const string Wallet = Material.Rounded.Wallet; - public const string Wallpaper = Material.Rounded.Wallpaper; - public const string Warehouse = Material.Rounded.Warehouse; - public const string Warning = Material.Rounded.Warning; - public const string WarningAmber = Material.Rounded.WarningAmber; - public const string Wash = Material.Rounded.Wash; - public const string Watch = Material.Rounded.Watch; - public const string WatchLater = Material.Rounded.WatchLater; - public const string WatchOff = Material.Rounded.WatchOff; - public const string Water = Material.Rounded.Water; - public const string WaterDamage = Material.Rounded.WaterDamage; - public const string WaterDrop = Material.Rounded.WaterDrop; - public const string WaterfallChart = Material.Rounded.WaterfallChart; - public const string Waves = Material.Rounded.Waves; - public const string WavingHand = Material.Rounded.WavingHand; - public const string WbAuto = Material.Rounded.WbAuto; - public const string WbCloudy = Material.Rounded.WbCloudy; - public const string WbIncandescent = Material.Rounded.WbIncandescent; - public const string WbIridescent = Material.Rounded.WbIridescent; - public const string WbShade = Material.Rounded.WbShade; - public const string WbSunny = Material.Rounded.WbSunny; - public const string WbTwilight = Material.Rounded.WbTwilight; - public const string Wc = Material.Rounded.Wc; - public const string Web = Material.Rounded.Web; - public const string WebAsset = Material.Rounded.WebAsset; - public const string WebAssetOff = Material.Rounded.WebAssetOff; - public const string WebStories = Material.Rounded.WebStories; - public const string Webhook = Material.Rounded.Webhook; - public const string Weekend = Material.Rounded.Weekend; - public const string West = Material.Rounded.West; - public const string Whatshot = Material.Rounded.Whatshot; - public const string WheelchairPickup = Material.Rounded.WheelchairPickup; - public const string WhereToVote = Material.Rounded.WhereToVote; - public const string Widgets = Material.Rounded.Widgets; - public const string WidthFull = Material.Rounded.WidthFull; - public const string WidthNormal = Material.Rounded.WidthNormal; - public const string WidthWide = Material.Rounded.WidthWide; - public const string Wifi = Material.Rounded.Wifi; - public const string Wifi1Bar = Material.Rounded.Wifi1Bar; - public const string Wifi2Bar = Material.Rounded.Wifi2Bar; - public const string WifiCalling = Material.Rounded.WifiCalling; - public const string WifiCalling3 = Material.Rounded.WifiCalling3; - public const string WifiChannel = Material.Rounded.WifiChannel; - public const string WifiFind = Material.Rounded.WifiFind; - public const string WifiLock = Material.Rounded.WifiLock; - public const string WifiOff = Material.Rounded.WifiOff; - public const string WifiPassword = Material.Rounded.WifiPassword; - public const string WifiProtectedSetup = Material.Rounded.WifiProtectedSetup; - public const string WifiTethering = Material.Rounded.WifiTethering; - public const string WifiTetheringError = Material.Rounded.WifiTetheringError; - public const string WifiTetheringOff = Material.Rounded.WifiTetheringOff; - public const string WindPower = Material.Rounded.WindPower; - public const string Window = Material.Rounded.Window; - public const string WineBar = Material.Rounded.WineBar; - public const string Woman = Material.Rounded.Woman; - public const string Woman2 = Material.Rounded.Woman2; - public const string Work = Material.Rounded.Work; - public const string WorkHistory = Material.Rounded.WorkHistory; - public const string WorkOff = Material.Rounded.WorkOff; - public const string WorkOutline = Material.Rounded.WorkOutline; - public const string WorkspacePremium = Material.Rounded.WorkspacePremium; - public const string Workspaces = Material.Rounded.Workspaces; - public const string WrapText = Material.Rounded.WrapText; - public const string WrongLocation = Material.Rounded.WrongLocation; - public const string Wysiwyg = Material.Rounded.Wysiwyg; - public const string Yard = Material.Rounded.Yard; - public const string YoutubeSearchedFor = Material.Rounded.YoutubeSearchedFor; - public const string ZoomIn = Material.Rounded.ZoomIn; - public const string ZoomInMap = Material.Rounded.ZoomInMap; - public const string ZoomOut = Material.Rounded.ZoomOut; - public const string ZoomOutMap = Material.Rounded.ZoomOutMap; - } - } -} diff --git a/src/MudBlazor/Icons/Obsolete/Sharp.cs b/src/MudBlazor/Icons/Obsolete/Sharp.cs deleted file mode 100644 index 50922b32faf2..000000000000 --- a/src/MudBlazor/Icons/Obsolete/Sharp.cs +++ /dev/null @@ -1,2139 +0,0 @@ -/* - * This file was auto-generated by Update-MudIcons.ps1 - * 2022/12/28_09:54:19 - */ - -using System.Diagnostics.CodeAnalysis; - -namespace MudBlazor -{ - public partial class Icons - { - [ExcludeFromCodeCoverage] - public partial class Sharp - { - public const string _10k = Material.Sharp._10k; - public const string _10mp = Material.Sharp._10mp; - public const string _11mp = Material.Sharp._11mp; - public const string _123 = Material.Sharp._123; - public const string _12mp = Material.Sharp._12mp; - public const string _13mp = Material.Sharp._13mp; - public const string _14mp = Material.Sharp._14mp; - public const string _15mp = Material.Sharp._15mp; - public const string _16mp = Material.Sharp._16mp; - public const string _17mp = Material.Sharp._17mp; - public const string _18UpRating = Material.Sharp._18UpRating; - public const string _18mp = Material.Sharp._18mp; - public const string _19mp = Material.Sharp._19mp; - public const string _1k = Material.Sharp._1k; - public const string _1kPlus = Material.Sharp._1kPlus; - public const string _1xMobiledata = Material.Sharp._1xMobiledata; - public const string _20mp = Material.Sharp._20mp; - public const string _21mp = Material.Sharp._21mp; - public const string _22mp = Material.Sharp._22mp; - public const string _23mp = Material.Sharp._23mp; - public const string _24mp = Material.Sharp._24mp; - public const string _2k = Material.Sharp._2k; - public const string _2kPlus = Material.Sharp._2kPlus; - public const string _2mp = Material.Sharp._2mp; - public const string _30fps = Material.Sharp._30fps; - public const string _30fpsSelect = Material.Sharp._30fpsSelect; - public const string _360 = Material.Sharp._360; - public const string _3dRotation = Material.Sharp._3dRotation; - public const string _3gMobiledata = Material.Sharp._3gMobiledata; - public const string _3k = Material.Sharp._3k; - public const string _3kPlus = Material.Sharp._3kPlus; - public const string _3mp = Material.Sharp._3mp; - public const string _3p = Material.Sharp._3p; - public const string _4gMobiledata = Material.Sharp._4gMobiledata; - public const string _4gPlusMobiledata = Material.Sharp._4gPlusMobiledata; - public const string _4k = Material.Sharp._4k; - public const string _4kPlus = Material.Sharp._4kPlus; - public const string _4mp = Material.Sharp._4mp; - public const string _5g = Material.Sharp._5g; - public const string _5k = Material.Sharp._5k; - public const string _5kPlus = Material.Sharp._5kPlus; - public const string _5mp = Material.Sharp._5mp; - public const string _60fps = Material.Sharp._60fps; - public const string _60fpsSelect = Material.Sharp._60fpsSelect; - public const string _6FtApart = Material.Sharp._6FtApart; - public const string _6k = Material.Sharp._6k; - public const string _6kPlus = Material.Sharp._6kPlus; - public const string _6mp = Material.Sharp._6mp; - public const string _7k = Material.Sharp._7k; - public const string _7kPlus = Material.Sharp._7kPlus; - public const string _7mp = Material.Sharp._7mp; - public const string _8k = Material.Sharp._8k; - public const string _8kPlus = Material.Sharp._8kPlus; - public const string _8mp = Material.Sharp._8mp; - public const string _9k = Material.Sharp._9k; - public const string _9kPlus = Material.Sharp._9kPlus; - public const string _9mp = Material.Sharp._9mp; - public const string Abc = Material.Sharp.Abc; - public const string AcUnit = Material.Sharp.AcUnit; - public const string AccessAlarm = Material.Sharp.AccessAlarm; - public const string AccessAlarms = Material.Sharp.AccessAlarms; - public const string AccessTime = Material.Sharp.AccessTime; - public const string AccessTimeFilled = Material.Sharp.AccessTimeFilled; - public const string Accessibility = Material.Sharp.Accessibility; - public const string AccessibilityNew = Material.Sharp.AccessibilityNew; - public const string Accessible = Material.Sharp.Accessible; - public const string AccessibleForward = Material.Sharp.AccessibleForward; - public const string AccountBalance = Material.Sharp.AccountBalance; - public const string AccountBalanceWallet = Material.Sharp.AccountBalanceWallet; - public const string AccountBox = Material.Sharp.AccountBox; - public const string AccountCircle = Material.Sharp.AccountCircle; - public const string AccountTree = Material.Sharp.AccountTree; - public const string AdUnits = Material.Sharp.AdUnits; - public const string Adb = Material.Sharp.Adb; - public const string Add = Material.Sharp.Add; - public const string AddAPhoto = Material.Sharp.AddAPhoto; - public const string AddAlarm = Material.Sharp.AddAlarm; - public const string AddAlert = Material.Sharp.AddAlert; - public const string AddBox = Material.Sharp.AddBox; - public const string AddBusiness = Material.Sharp.AddBusiness; - public const string AddCard = Material.Sharp.AddCard; - public const string AddChart = Material.Sharp.AddChart; - public const string AddCircle = Material.Sharp.AddCircle; - public const string AddCircleOutline = Material.Sharp.AddCircleOutline; - public const string AddComment = Material.Sharp.AddComment; - public const string AddHome = Material.Sharp.AddHome; - public const string AddHomeWork = Material.Sharp.AddHomeWork; - public const string AddIcCall = Material.Sharp.AddIcCall; - public const string AddLink = Material.Sharp.AddLink; - public const string AddLocation = Material.Sharp.AddLocation; - public const string AddLocationAlt = Material.Sharp.AddLocationAlt; - public const string AddModerator = Material.Sharp.AddModerator; - public const string AddPhotoAlternate = Material.Sharp.AddPhotoAlternate; - public const string AddReaction = Material.Sharp.AddReaction; - public const string AddRoad = Material.Sharp.AddRoad; - public const string AddShoppingCart = Material.Sharp.AddShoppingCart; - public const string AddTask = Material.Sharp.AddTask; - public const string AddToDrive = Material.Sharp.AddToDrive; - public const string AddToHomeScreen = Material.Sharp.AddToHomeScreen; - public const string AddToPhotos = Material.Sharp.AddToPhotos; - public const string AddToQueue = Material.Sharp.AddToQueue; - public const string Addchart = Material.Sharp.Addchart; - public const string AdfScanner = Material.Sharp.AdfScanner; - public const string Adjust = Material.Sharp.Adjust; - public const string AdminPanelSettings = Material.Sharp.AdminPanelSettings; - public const string AdsClick = Material.Sharp.AdsClick; - public const string Agriculture = Material.Sharp.Agriculture; - public const string Air = Material.Sharp.Air; - public const string AirlineSeatFlat = Material.Sharp.AirlineSeatFlat; - public const string AirlineSeatFlatAngled = Material.Sharp.AirlineSeatFlatAngled; - public const string AirlineSeatIndividualSuite = Material.Sharp.AirlineSeatIndividualSuite; - public const string AirlineSeatLegroomExtra = Material.Sharp.AirlineSeatLegroomExtra; - public const string AirlineSeatLegroomNormal = Material.Sharp.AirlineSeatLegroomNormal; - public const string AirlineSeatLegroomReduced = Material.Sharp.AirlineSeatLegroomReduced; - public const string AirlineSeatReclineExtra = Material.Sharp.AirlineSeatReclineExtra; - public const string AirlineSeatReclineNormal = Material.Sharp.AirlineSeatReclineNormal; - public const string AirlineStops = Material.Sharp.AirlineStops; - public const string Airlines = Material.Sharp.Airlines; - public const string AirplaneTicket = Material.Sharp.AirplaneTicket; - public const string AirplanemodeActive = Material.Sharp.AirplanemodeActive; - public const string AirplanemodeInactive = Material.Sharp.AirplanemodeInactive; - public const string Airplay = Material.Sharp.Airplay; - public const string AirportShuttle = Material.Sharp.AirportShuttle; - public const string Alarm = Material.Sharp.Alarm; - public const string AlarmAdd = Material.Sharp.AlarmAdd; - public const string AlarmOff = Material.Sharp.AlarmOff; - public const string AlarmOn = Material.Sharp.AlarmOn; - public const string Album = Material.Sharp.Album; - public const string AlignHorizontalCenter = Material.Sharp.AlignHorizontalCenter; - public const string AlignHorizontalLeft = Material.Sharp.AlignHorizontalLeft; - public const string AlignHorizontalRight = Material.Sharp.AlignHorizontalRight; - public const string AlignVerticalBottom = Material.Sharp.AlignVerticalBottom; - public const string AlignVerticalCenter = Material.Sharp.AlignVerticalCenter; - public const string AlignVerticalTop = Material.Sharp.AlignVerticalTop; - public const string AllInbox = Material.Sharp.AllInbox; - public const string AllInclusive = Material.Sharp.AllInclusive; - public const string AllOut = Material.Sharp.AllOut; - public const string AltRoute = Material.Sharp.AltRoute; - public const string AlternateEmail = Material.Sharp.AlternateEmail; - public const string Analytics = Material.Sharp.Analytics; - public const string Anchor = Material.Sharp.Anchor; - public const string Android = Material.Sharp.Android; - public const string Animation = Material.Sharp.Animation; - public const string Announcement = Material.Sharp.Announcement; - public const string Aod = Material.Sharp.Aod; - public const string Apartment = Material.Sharp.Apartment; - public const string Api = Material.Sharp.Api; - public const string AppBlocking = Material.Sharp.AppBlocking; - public const string AppRegistration = Material.Sharp.AppRegistration; - public const string AppSettingsAlt = Material.Sharp.AppSettingsAlt; - public const string AppShortcut = Material.Sharp.AppShortcut; - public const string Approval = Material.Sharp.Approval; - public const string Apps = Material.Sharp.Apps; - public const string AppsOutage = Material.Sharp.AppsOutage; - public const string Architecture = Material.Sharp.Architecture; - public const string Archive = Material.Sharp.Archive; - public const string AreaChart = Material.Sharp.AreaChart; - public const string ArrowBack = Material.Sharp.ArrowBack; - public const string ArrowBackIos = Material.Sharp.ArrowBackIos; - public const string ArrowBackIosNew = Material.Sharp.ArrowBackIosNew; - public const string ArrowCircleDown = Material.Sharp.ArrowCircleDown; - public const string ArrowCircleLeft = Material.Sharp.ArrowCircleLeft; - public const string ArrowCircleRight = Material.Sharp.ArrowCircleRight; - public const string ArrowCircleUp = Material.Sharp.ArrowCircleUp; - public const string ArrowDownward = Material.Sharp.ArrowDownward; - public const string ArrowDropDown = Material.Sharp.ArrowDropDown; - public const string ArrowDropDownCircle = Material.Sharp.ArrowDropDownCircle; - public const string ArrowDropUp = Material.Sharp.ArrowDropUp; - public const string ArrowForward = Material.Sharp.ArrowForward; - public const string ArrowForwardIos = Material.Sharp.ArrowForwardIos; - public const string ArrowLeft = Material.Sharp.ArrowLeft; - public const string ArrowOutward = Material.Sharp.ArrowOutward; - public const string ArrowRight = Material.Sharp.ArrowRight; - public const string ArrowRightAlt = Material.Sharp.ArrowRightAlt; - public const string ArrowUpward = Material.Sharp.ArrowUpward; - public const string ArtTrack = Material.Sharp.ArtTrack; - public const string Article = Material.Sharp.Article; - public const string AspectRatio = Material.Sharp.AspectRatio; - public const string Assessment = Material.Sharp.Assessment; - public const string Assignment = Material.Sharp.Assignment; - public const string AssignmentInd = Material.Sharp.AssignmentInd; - public const string AssignmentLate = Material.Sharp.AssignmentLate; - public const string AssignmentReturn = Material.Sharp.AssignmentReturn; - public const string AssignmentReturned = Material.Sharp.AssignmentReturned; - public const string AssignmentTurnedIn = Material.Sharp.AssignmentTurnedIn; - public const string AssistWalker = Material.Sharp.AssistWalker; - public const string Assistant = Material.Sharp.Assistant; - public const string AssistantDirection = Material.Sharp.AssistantDirection; - public const string AssistantPhoto = Material.Sharp.AssistantPhoto; - public const string AssuredWorkload = Material.Sharp.AssuredWorkload; - public const string Atm = Material.Sharp.Atm; - public const string AttachEmail = Material.Sharp.AttachEmail; - public const string AttachFile = Material.Sharp.AttachFile; - public const string AttachMoney = Material.Sharp.AttachMoney; - public const string Attachment = Material.Sharp.Attachment; - public const string Attractions = Material.Sharp.Attractions; - public const string Attribution = Material.Sharp.Attribution; - public const string AudioFile = Material.Sharp.AudioFile; - public const string Audiotrack = Material.Sharp.Audiotrack; - public const string AutoAwesome = Material.Sharp.AutoAwesome; - public const string AutoAwesomeMosaic = Material.Sharp.AutoAwesomeMosaic; - public const string AutoAwesomeMotion = Material.Sharp.AutoAwesomeMotion; - public const string AutoDelete = Material.Sharp.AutoDelete; - public const string AutoFixHigh = Material.Sharp.AutoFixHigh; - public const string AutoFixNormal = Material.Sharp.AutoFixNormal; - public const string AutoFixOff = Material.Sharp.AutoFixOff; - public const string AutoGraph = Material.Sharp.AutoGraph; - public const string AutoMode = Material.Sharp.AutoMode; - public const string AutoStories = Material.Sharp.AutoStories; - public const string AutofpsSelect = Material.Sharp.AutofpsSelect; - public const string Autorenew = Material.Sharp.Autorenew; - public const string AvTimer = Material.Sharp.AvTimer; - public const string BabyChangingStation = Material.Sharp.BabyChangingStation; - public const string BackHand = Material.Sharp.BackHand; - public const string Backpack = Material.Sharp.Backpack; - public const string Backspace = Material.Sharp.Backspace; - public const string Backup = Material.Sharp.Backup; - public const string BackupTable = Material.Sharp.BackupTable; - public const string Badge = Material.Sharp.Badge; - public const string BakeryDining = Material.Sharp.BakeryDining; - public const string Balance = Material.Sharp.Balance; - public const string Balcony = Material.Sharp.Balcony; - public const string Ballot = Material.Sharp.Ballot; - public const string BarChart = Material.Sharp.BarChart; - public const string BatchPrediction = Material.Sharp.BatchPrediction; - public const string Bathroom = Material.Sharp.Bathroom; - public const string Bathtub = Material.Sharp.Bathtub; - public const string Battery0Bar = Material.Sharp.Battery0Bar; - public const string Battery1Bar = Material.Sharp.Battery1Bar; - public const string Battery2Bar = Material.Sharp.Battery2Bar; - public const string Battery3Bar = Material.Sharp.Battery3Bar; - public const string Battery4Bar = Material.Sharp.Battery4Bar; - public const string Battery5Bar = Material.Sharp.Battery5Bar; - public const string Battery6Bar = Material.Sharp.Battery6Bar; - public const string BatteryAlert = Material.Sharp.BatteryAlert; - public const string BatteryChargingFull = Material.Sharp.BatteryChargingFull; - public const string BatteryFull = Material.Sharp.BatteryFull; - public const string BatterySaver = Material.Sharp.BatterySaver; - public const string BatteryStd = Material.Sharp.BatteryStd; - public const string BatteryUnknown = Material.Sharp.BatteryUnknown; - public const string BeachAccess = Material.Sharp.BeachAccess; - public const string Bed = Material.Sharp.Bed; - public const string BedroomBaby = Material.Sharp.BedroomBaby; - public const string BedroomChild = Material.Sharp.BedroomChild; - public const string BedroomParent = Material.Sharp.BedroomParent; - public const string Bedtime = Material.Sharp.Bedtime; - public const string BedtimeOff = Material.Sharp.BedtimeOff; - public const string Beenhere = Material.Sharp.Beenhere; - public const string Bento = Material.Sharp.Bento; - public const string BikeScooter = Material.Sharp.BikeScooter; - public const string Biotech = Material.Sharp.Biotech; - public const string Blender = Material.Sharp.Blender; - public const string Blind = Material.Sharp.Blind; - public const string Blinds = Material.Sharp.Blinds; - public const string BlindsClosed = Material.Sharp.BlindsClosed; - public const string Block = Material.Sharp.Block; - public const string Bloodtype = Material.Sharp.Bloodtype; - public const string Bluetooth = Material.Sharp.Bluetooth; - public const string BluetoothAudio = Material.Sharp.BluetoothAudio; - public const string BluetoothConnected = Material.Sharp.BluetoothConnected; - public const string BluetoothDisabled = Material.Sharp.BluetoothDisabled; - public const string BluetoothDrive = Material.Sharp.BluetoothDrive; - public const string BluetoothSearching = Material.Sharp.BluetoothSearching; - public const string BlurCircular = Material.Sharp.BlurCircular; - public const string BlurLinear = Material.Sharp.BlurLinear; - public const string BlurOff = Material.Sharp.BlurOff; - public const string BlurOn = Material.Sharp.BlurOn; - public const string Bolt = Material.Sharp.Bolt; - public const string Book = Material.Sharp.Book; - public const string BookOnline = Material.Sharp.BookOnline; - public const string Bookmark = Material.Sharp.Bookmark; - public const string BookmarkAdd = Material.Sharp.BookmarkAdd; - public const string BookmarkAdded = Material.Sharp.BookmarkAdded; - public const string BookmarkBorder = Material.Sharp.BookmarkBorder; - public const string BookmarkRemove = Material.Sharp.BookmarkRemove; - public const string Bookmarks = Material.Sharp.Bookmarks; - public const string BorderAll = Material.Sharp.BorderAll; - public const string BorderBottom = Material.Sharp.BorderBottom; - public const string BorderClear = Material.Sharp.BorderClear; - public const string BorderColor = Material.Sharp.BorderColor; - public const string BorderHorizontal = Material.Sharp.BorderHorizontal; - public const string BorderInner = Material.Sharp.BorderInner; - public const string BorderLeft = Material.Sharp.BorderLeft; - public const string BorderOuter = Material.Sharp.BorderOuter; - public const string BorderRight = Material.Sharp.BorderRight; - public const string BorderStyle = Material.Sharp.BorderStyle; - public const string BorderTop = Material.Sharp.BorderTop; - public const string BorderVertical = Material.Sharp.BorderVertical; - public const string Boy = Material.Sharp.Boy; - public const string BrandingWatermark = Material.Sharp.BrandingWatermark; - public const string BreakfastDining = Material.Sharp.BreakfastDining; - public const string Brightness1 = Material.Sharp.Brightness1; - public const string Brightness2 = Material.Sharp.Brightness2; - public const string Brightness3 = Material.Sharp.Brightness3; - public const string Brightness4 = Material.Sharp.Brightness4; - public const string Brightness5 = Material.Sharp.Brightness5; - public const string Brightness6 = Material.Sharp.Brightness6; - public const string Brightness7 = Material.Sharp.Brightness7; - public const string BrightnessAuto = Material.Sharp.BrightnessAuto; - public const string BrightnessHigh = Material.Sharp.BrightnessHigh; - public const string BrightnessLow = Material.Sharp.BrightnessLow; - public const string BrightnessMedium = Material.Sharp.BrightnessMedium; - public const string BroadcastOnHome = Material.Sharp.BroadcastOnHome; - public const string BroadcastOnPersonal = Material.Sharp.BroadcastOnPersonal; - public const string BrokenImage = Material.Sharp.BrokenImage; - public const string BrowseGallery = Material.Sharp.BrowseGallery; - public const string BrowserNotSupported = Material.Sharp.BrowserNotSupported; - public const string BrowserUpdated = Material.Sharp.BrowserUpdated; - public const string BrunchDining = Material.Sharp.BrunchDining; - public const string Brush = Material.Sharp.Brush; - public const string BubbleChart = Material.Sharp.BubbleChart; - public const string BugReport = Material.Sharp.BugReport; - public const string Build = Material.Sharp.Build; - public const string BuildCircle = Material.Sharp.BuildCircle; - public const string Bungalow = Material.Sharp.Bungalow; - public const string BurstMode = Material.Sharp.BurstMode; - public const string BusAlert = Material.Sharp.BusAlert; - public const string Business = Material.Sharp.Business; - public const string BusinessCenter = Material.Sharp.BusinessCenter; - public const string Cabin = Material.Sharp.Cabin; - public const string Cable = Material.Sharp.Cable; - public const string Cached = Material.Sharp.Cached; - public const string Cake = Material.Sharp.Cake; - public const string Calculate = Material.Sharp.Calculate; - public const string CalendarMonth = Material.Sharp.CalendarMonth; - public const string CalendarToday = Material.Sharp.CalendarToday; - public const string CalendarViewDay = Material.Sharp.CalendarViewDay; - public const string CalendarViewMonth = Material.Sharp.CalendarViewMonth; - public const string CalendarViewWeek = Material.Sharp.CalendarViewWeek; - public const string Call = Material.Sharp.Call; - public const string CallEnd = Material.Sharp.CallEnd; - public const string CallMade = Material.Sharp.CallMade; - public const string CallMerge = Material.Sharp.CallMerge; - public const string CallMissed = Material.Sharp.CallMissed; - public const string CallMissedOutgoing = Material.Sharp.CallMissedOutgoing; - public const string CallReceived = Material.Sharp.CallReceived; - public const string CallSplit = Material.Sharp.CallSplit; - public const string CallToAction = Material.Sharp.CallToAction; - public const string Camera = Material.Sharp.Camera; - public const string CameraAlt = Material.Sharp.CameraAlt; - public const string CameraEnhance = Material.Sharp.CameraEnhance; - public const string CameraFront = Material.Sharp.CameraFront; - public const string CameraIndoor = Material.Sharp.CameraIndoor; - public const string CameraOutdoor = Material.Sharp.CameraOutdoor; - public const string CameraRear = Material.Sharp.CameraRear; - public const string CameraRoll = Material.Sharp.CameraRoll; - public const string Cameraswitch = Material.Sharp.Cameraswitch; - public const string Campaign = Material.Sharp.Campaign; - public const string Cancel = Material.Sharp.Cancel; - public const string CancelPresentation = Material.Sharp.CancelPresentation; - public const string CancelScheduleSend = Material.Sharp.CancelScheduleSend; - public const string CandlestickChart = Material.Sharp.CandlestickChart; - public const string CarCrash = Material.Sharp.CarCrash; - public const string CarRental = Material.Sharp.CarRental; - public const string CarRepair = Material.Sharp.CarRepair; - public const string CardGiftcard = Material.Sharp.CardGiftcard; - public const string CardMembership = Material.Sharp.CardMembership; - public const string CardTravel = Material.Sharp.CardTravel; - public const string Carpenter = Material.Sharp.Carpenter; - public const string Cases = Material.Sharp.Cases; - public const string Casino = Material.Sharp.Casino; - public const string Cast = Material.Sharp.Cast; - public const string CastConnected = Material.Sharp.CastConnected; - public const string CastForEducation = Material.Sharp.CastForEducation; - public const string Castle = Material.Sharp.Castle; - public const string CatchingPokemon = Material.Sharp.CatchingPokemon; - public const string Category = Material.Sharp.Category; - public const string Celebration = Material.Sharp.Celebration; - public const string CellTower = Material.Sharp.CellTower; - public const string CellWifi = Material.Sharp.CellWifi; - public const string CenterFocusStrong = Material.Sharp.CenterFocusStrong; - public const string CenterFocusWeak = Material.Sharp.CenterFocusWeak; - public const string Chair = Material.Sharp.Chair; - public const string ChairAlt = Material.Sharp.ChairAlt; - public const string Chalet = Material.Sharp.Chalet; - public const string ChangeCircle = Material.Sharp.ChangeCircle; - public const string ChangeHistory = Material.Sharp.ChangeHistory; - public const string ChargingStation = Material.Sharp.ChargingStation; - public const string Chat = Material.Sharp.Chat; - public const string ChatBubble = Material.Sharp.ChatBubble; - public const string ChatBubbleOutline = Material.Sharp.ChatBubbleOutline; - public const string Check = Material.Sharp.Check; - public const string CheckBox = Material.Sharp.CheckBox; - public const string CheckBoxOutlineBlank = Material.Sharp.CheckBoxOutlineBlank; - public const string CheckCircle = Material.Sharp.CheckCircle; - public const string CheckCircleOutline = Material.Sharp.CheckCircleOutline; - public const string Checklist = Material.Sharp.Checklist; - public const string ChecklistRtl = Material.Sharp.ChecklistRtl; - public const string Checkroom = Material.Sharp.Checkroom; - public const string ChevronLeft = Material.Sharp.ChevronLeft; - public const string ChevronRight = Material.Sharp.ChevronRight; - public const string ChildCare = Material.Sharp.ChildCare; - public const string ChildFriendly = Material.Sharp.ChildFriendly; - public const string ChromeReaderMode = Material.Sharp.ChromeReaderMode; - public const string Church = Material.Sharp.Church; - public const string Circle = Material.Sharp.Circle; - public const string CircleNotifications = Material.Sharp.CircleNotifications; - public const string Class = Material.Sharp.Class; - public const string CleanHands = Material.Sharp.CleanHands; - public const string CleaningServices = Material.Sharp.CleaningServices; - public const string Clear = Material.Sharp.Clear; - public const string ClearAll = Material.Sharp.ClearAll; - public const string Close = Material.Sharp.Close; - public const string CloseFullscreen = Material.Sharp.CloseFullscreen; - public const string ClosedCaption = Material.Sharp.ClosedCaption; - public const string ClosedCaptionDisabled = Material.Sharp.ClosedCaptionDisabled; - public const string ClosedCaptionOff = Material.Sharp.ClosedCaptionOff; - public const string Cloud = Material.Sharp.Cloud; - public const string CloudCircle = Material.Sharp.CloudCircle; - public const string CloudDone = Material.Sharp.CloudDone; - public const string CloudDownload = Material.Sharp.CloudDownload; - public const string CloudOff = Material.Sharp.CloudOff; - public const string CloudQueue = Material.Sharp.CloudQueue; - public const string CloudSync = Material.Sharp.CloudSync; - public const string CloudUpload = Material.Sharp.CloudUpload; - public const string Co2 = Material.Sharp.Co2; - public const string CoPresent = Material.Sharp.CoPresent; - public const string Code = Material.Sharp.Code; - public const string CodeOff = Material.Sharp.CodeOff; - public const string Coffee = Material.Sharp.Coffee; - public const string CoffeeMaker = Material.Sharp.CoffeeMaker; - public const string Collections = Material.Sharp.Collections; - public const string CollectionsBookmark = Material.Sharp.CollectionsBookmark; - public const string ColorLens = Material.Sharp.ColorLens; - public const string Colorize = Material.Sharp.Colorize; - public const string Comment = Material.Sharp.Comment; - public const string CommentBank = Material.Sharp.CommentBank; - public const string CommentsDisabled = Material.Sharp.CommentsDisabled; - public const string Commit = Material.Sharp.Commit; - public const string Commute = Material.Sharp.Commute; - public const string Compare = Material.Sharp.Compare; - public const string CompareArrows = Material.Sharp.CompareArrows; - public const string CompassCalibration = Material.Sharp.CompassCalibration; - public const string Compost = Material.Sharp.Compost; - public const string Compress = Material.Sharp.Compress; - public const string Computer = Material.Sharp.Computer; - public const string ConfirmationNumber = Material.Sharp.ConfirmationNumber; - public const string ConnectWithoutContact = Material.Sharp.ConnectWithoutContact; - public const string ConnectedTv = Material.Sharp.ConnectedTv; - public const string ConnectingAirports = Material.Sharp.ConnectingAirports; - public const string Construction = Material.Sharp.Construction; - public const string ContactEmergency = Material.Sharp.ContactEmergency; - public const string ContactMail = Material.Sharp.ContactMail; - public const string ContactPage = Material.Sharp.ContactPage; - public const string ContactPhone = Material.Sharp.ContactPhone; - public const string ContactSupport = Material.Sharp.ContactSupport; - public const string Contactless = Material.Sharp.Contactless; - public const string Contacts = Material.Sharp.Contacts; - public const string ContentCopy = Material.Sharp.ContentCopy; - public const string ContentCut = Material.Sharp.ContentCut; - public const string ContentPaste = Material.Sharp.ContentPaste; - public const string ContentPasteGo = Material.Sharp.ContentPasteGo; - public const string ContentPasteOff = Material.Sharp.ContentPasteOff; - public const string ContentPasteSearch = Material.Sharp.ContentPasteSearch; - public const string Contrast = Material.Sharp.Contrast; - public const string ControlCamera = Material.Sharp.ControlCamera; - public const string ControlPoint = Material.Sharp.ControlPoint; - public const string ControlPointDuplicate = Material.Sharp.ControlPointDuplicate; - public const string Cookie = Material.Sharp.Cookie; - public const string CopyAll = Material.Sharp.CopyAll; - public const string Copyright = Material.Sharp.Copyright; - public const string Coronavirus = Material.Sharp.Coronavirus; - public const string CorporateFare = Material.Sharp.CorporateFare; - public const string Cottage = Material.Sharp.Cottage; - public const string Countertops = Material.Sharp.Countertops; - public const string Create = Material.Sharp.Create; - public const string CreateNewFolder = Material.Sharp.CreateNewFolder; - public const string CreditCard = Material.Sharp.CreditCard; - public const string CreditCardOff = Material.Sharp.CreditCardOff; - public const string CreditScore = Material.Sharp.CreditScore; - public const string Crib = Material.Sharp.Crib; - public const string CrisisAlert = Material.Sharp.CrisisAlert; - public const string Crop = Material.Sharp.Crop; - public const string Crop169 = Material.Sharp.Crop169; - public const string Crop32 = Material.Sharp.Crop32; - public const string Crop54 = Material.Sharp.Crop54; - public const string Crop75 = Material.Sharp.Crop75; - public const string CropDin = Material.Sharp.CropDin; - public const string CropFree = Material.Sharp.CropFree; - public const string CropLandscape = Material.Sharp.CropLandscape; - public const string CropOriginal = Material.Sharp.CropOriginal; - public const string CropPortrait = Material.Sharp.CropPortrait; - public const string CropRotate = Material.Sharp.CropRotate; - public const string CropSquare = Material.Sharp.CropSquare; - public const string CrueltyFree = Material.Sharp.CrueltyFree; - public const string Css = Material.Sharp.Css; - public const string CurrencyBitcoin = Material.Sharp.CurrencyBitcoin; - public const string CurrencyExchange = Material.Sharp.CurrencyExchange; - public const string CurrencyFranc = Material.Sharp.CurrencyFranc; - public const string CurrencyLira = Material.Sharp.CurrencyLira; - public const string CurrencyPound = Material.Sharp.CurrencyPound; - public const string CurrencyRuble = Material.Sharp.CurrencyRuble; - public const string CurrencyRupee = Material.Sharp.CurrencyRupee; - public const string CurrencyYen = Material.Sharp.CurrencyYen; - public const string CurrencyYuan = Material.Sharp.CurrencyYuan; - public const string Curtains = Material.Sharp.Curtains; - public const string CurtainsClosed = Material.Sharp.CurtainsClosed; - public const string Cyclone = Material.Sharp.Cyclone; - public const string Dangerous = Material.Sharp.Dangerous; - public const string DarkMode = Material.Sharp.DarkMode; - public const string Dashboard = Material.Sharp.Dashboard; - public const string DashboardCustomize = Material.Sharp.DashboardCustomize; - public const string DataArray = Material.Sharp.DataArray; - public const string DataExploration = Material.Sharp.DataExploration; - public const string DataObject = Material.Sharp.DataObject; - public const string DataSaverOff = Material.Sharp.DataSaverOff; - public const string DataSaverOn = Material.Sharp.DataSaverOn; - public const string DataThresholding = Material.Sharp.DataThresholding; - public const string DataUsage = Material.Sharp.DataUsage; - public const string Dataset = Material.Sharp.Dataset; - public const string DatasetLinked = Material.Sharp.DatasetLinked; - public const string DateRange = Material.Sharp.DateRange; - public const string Deblur = Material.Sharp.Deblur; - public const string Deck = Material.Sharp.Deck; - public const string Dehaze = Material.Sharp.Dehaze; - public const string Delete = Material.Sharp.Delete; - public const string DeleteForever = Material.Sharp.DeleteForever; - public const string DeleteOutline = Material.Sharp.DeleteOutline; - public const string DeleteSweep = Material.Sharp.DeleteSweep; - public const string DeliveryDining = Material.Sharp.DeliveryDining; - public const string DensityLarge = Material.Sharp.DensityLarge; - public const string DensityMedium = Material.Sharp.DensityMedium; - public const string DensitySmall = Material.Sharp.DensitySmall; - public const string DepartureBoard = Material.Sharp.DepartureBoard; - public const string Description = Material.Sharp.Description; - public const string Deselect = Material.Sharp.Deselect; - public const string DesignServices = Material.Sharp.DesignServices; - public const string Desk = Material.Sharp.Desk; - public const string DesktopAccessDisabled = Material.Sharp.DesktopAccessDisabled; - public const string DesktopMac = Material.Sharp.DesktopMac; - public const string DesktopWindows = Material.Sharp.DesktopWindows; - public const string Details = Material.Sharp.Details; - public const string DeveloperBoard = Material.Sharp.DeveloperBoard; - public const string DeveloperBoardOff = Material.Sharp.DeveloperBoardOff; - public const string DeveloperMode = Material.Sharp.DeveloperMode; - public const string DeviceHub = Material.Sharp.DeviceHub; - public const string DeviceThermostat = Material.Sharp.DeviceThermostat; - public const string DeviceUnknown = Material.Sharp.DeviceUnknown; - public const string Devices = Material.Sharp.Devices; - public const string DevicesFold = Material.Sharp.DevicesFold; - public const string DevicesOther = Material.Sharp.DevicesOther; - public const string DialerSip = Material.Sharp.DialerSip; - public const string Dialpad = Material.Sharp.Dialpad; - public const string Diamond = Material.Sharp.Diamond; - public const string Difference = Material.Sharp.Difference; - public const string Dining = Material.Sharp.Dining; - public const string DinnerDining = Material.Sharp.DinnerDining; - public const string Directions = Material.Sharp.Directions; - public const string DirectionsBike = Material.Sharp.DirectionsBike; - public const string DirectionsBoat = Material.Sharp.DirectionsBoat; - public const string DirectionsBoatFilled = Material.Sharp.DirectionsBoatFilled; - public const string DirectionsBus = Material.Sharp.DirectionsBus; - public const string DirectionsBusFilled = Material.Sharp.DirectionsBusFilled; - public const string DirectionsCar = Material.Sharp.DirectionsCar; - public const string DirectionsCarFilled = Material.Sharp.DirectionsCarFilled; - public const string DirectionsOff = Material.Sharp.DirectionsOff; - public const string DirectionsRailway = Material.Sharp.DirectionsRailway; - public const string DirectionsRailwayFilled = Material.Sharp.DirectionsRailwayFilled; - public const string DirectionsRun = Material.Sharp.DirectionsRun; - public const string DirectionsSubway = Material.Sharp.DirectionsSubway; - public const string DirectionsSubwayFilled = Material.Sharp.DirectionsSubwayFilled; - public const string DirectionsTransit = Material.Sharp.DirectionsTransit; - public const string DirectionsTransitFilled = Material.Sharp.DirectionsTransitFilled; - public const string DirectionsWalk = Material.Sharp.DirectionsWalk; - public const string DirtyLens = Material.Sharp.DirtyLens; - public const string DisabledByDefault = Material.Sharp.DisabledByDefault; - public const string DisabledVisible = Material.Sharp.DisabledVisible; - public const string DiscFull = Material.Sharp.DiscFull; - public const string Discount = Material.Sharp.Discount; - public const string DisplaySettings = Material.Sharp.DisplaySettings; - public const string Diversity1 = Material.Sharp.Diversity1; - public const string Diversity2 = Material.Sharp.Diversity2; - public const string Diversity3 = Material.Sharp.Diversity3; - public const string Dns = Material.Sharp.Dns; - public const string DoDisturb = Material.Sharp.DoDisturb; - public const string DoDisturbAlt = Material.Sharp.DoDisturbAlt; - public const string DoDisturbOff = Material.Sharp.DoDisturbOff; - public const string DoDisturbOn = Material.Sharp.DoDisturbOn; - public const string DoNotDisturb = Material.Sharp.DoNotDisturb; - public const string DoNotDisturbAlt = Material.Sharp.DoNotDisturbAlt; - public const string DoNotDisturbOff = Material.Sharp.DoNotDisturbOff; - public const string DoNotDisturbOn = Material.Sharp.DoNotDisturbOn; - public const string DoNotDisturbOnTotalSilence = Material.Sharp.DoNotDisturbOnTotalSilence; - public const string DoNotStep = Material.Sharp.DoNotStep; - public const string DoNotTouch = Material.Sharp.DoNotTouch; - public const string Dock = Material.Sharp.Dock; - public const string DocumentScanner = Material.Sharp.DocumentScanner; - public const string Domain = Material.Sharp.Domain; - public const string DomainAdd = Material.Sharp.DomainAdd; - public const string DomainDisabled = Material.Sharp.DomainDisabled; - public const string DomainVerification = Material.Sharp.DomainVerification; - public const string Done = Material.Sharp.Done; - public const string DoneAll = Material.Sharp.DoneAll; - public const string DoneOutline = Material.Sharp.DoneOutline; - public const string DonutLarge = Material.Sharp.DonutLarge; - public const string DonutSmall = Material.Sharp.DonutSmall; - public const string DoorBack = Material.Sharp.DoorBack; - public const string DoorFront = Material.Sharp.DoorFront; - public const string DoorSliding = Material.Sharp.DoorSliding; - public const string Doorbell = Material.Sharp.Doorbell; - public const string DoubleArrow = Material.Sharp.DoubleArrow; - public const string DownhillSkiing = Material.Sharp.DownhillSkiing; - public const string Download = Material.Sharp.Download; - public const string DownloadDone = Material.Sharp.DownloadDone; - public const string DownloadForOffline = Material.Sharp.DownloadForOffline; - public const string Downloading = Material.Sharp.Downloading; - public const string Drafts = Material.Sharp.Drafts; - public const string DragHandle = Material.Sharp.DragHandle; - public const string DragIndicator = Material.Sharp.DragIndicator; - public const string Draw = Material.Sharp.Draw; - public const string DriveEta = Material.Sharp.DriveEta; - public const string DriveFileMove = Material.Sharp.DriveFileMove; - public const string DriveFileMoveRtl = Material.Sharp.DriveFileMoveRtl; - public const string DriveFileRenameOutline = Material.Sharp.DriveFileRenameOutline; - public const string DriveFolderUpload = Material.Sharp.DriveFolderUpload; - public const string Dry = Material.Sharp.Dry; - public const string DryCleaning = Material.Sharp.DryCleaning; - public const string Duo = Material.Sharp.Duo; - public const string Dvr = Material.Sharp.Dvr; - public const string DynamicFeed = Material.Sharp.DynamicFeed; - public const string DynamicForm = Material.Sharp.DynamicForm; - public const string EMobiledata = Material.Sharp.EMobiledata; - public const string Earbuds = Material.Sharp.Earbuds; - public const string EarbudsBattery = Material.Sharp.EarbudsBattery; - public const string East = Material.Sharp.East; - public const string EdgesensorHigh = Material.Sharp.EdgesensorHigh; - public const string EdgesensorLow = Material.Sharp.EdgesensorLow; - public const string Edit = Material.Sharp.Edit; - public const string EditAttributes = Material.Sharp.EditAttributes; - public const string EditCalendar = Material.Sharp.EditCalendar; - public const string EditLocation = Material.Sharp.EditLocation; - public const string EditLocationAlt = Material.Sharp.EditLocationAlt; - public const string EditNote = Material.Sharp.EditNote; - public const string EditNotifications = Material.Sharp.EditNotifications; - public const string EditOff = Material.Sharp.EditOff; - public const string EditRoad = Material.Sharp.EditRoad; - public const string Egg = Material.Sharp.Egg; - public const string EggAlt = Material.Sharp.EggAlt; - public const string Eject = Material.Sharp.Eject; - public const string Elderly = Material.Sharp.Elderly; - public const string ElderlyWoman = Material.Sharp.ElderlyWoman; - public const string ElectricBike = Material.Sharp.ElectricBike; - public const string ElectricBolt = Material.Sharp.ElectricBolt; - public const string ElectricCar = Material.Sharp.ElectricCar; - public const string ElectricMeter = Material.Sharp.ElectricMeter; - public const string ElectricMoped = Material.Sharp.ElectricMoped; - public const string ElectricRickshaw = Material.Sharp.ElectricRickshaw; - public const string ElectricScooter = Material.Sharp.ElectricScooter; - public const string ElectricalServices = Material.Sharp.ElectricalServices; - public const string Elevator = Material.Sharp.Elevator; - public const string Email = Material.Sharp.Email; - public const string Emergency = Material.Sharp.Emergency; - public const string EmergencyRecording = Material.Sharp.EmergencyRecording; - public const string EmergencyShare = Material.Sharp.EmergencyShare; - public const string EmojiEmotions = Material.Sharp.EmojiEmotions; - public const string EmojiEvents = Material.Sharp.EmojiEvents; - public const string EmojiFoodBeverage = Material.Sharp.EmojiFoodBeverage; - public const string EmojiNature = Material.Sharp.EmojiNature; - public const string EmojiObjects = Material.Sharp.EmojiObjects; - public const string EmojiPeople = Material.Sharp.EmojiPeople; - public const string EmojiSymbols = Material.Sharp.EmojiSymbols; - public const string EmojiTransportation = Material.Sharp.EmojiTransportation; - public const string EnergySavingsLeaf = Material.Sharp.EnergySavingsLeaf; - public const string Engineering = Material.Sharp.Engineering; - public const string EnhancedEncryption = Material.Sharp.EnhancedEncryption; - public const string Equalizer = Material.Sharp.Equalizer; - public const string Error = Material.Sharp.Error; - public const string ErrorOutline = Material.Sharp.ErrorOutline; - public const string Escalator = Material.Sharp.Escalator; - public const string EscalatorWarning = Material.Sharp.EscalatorWarning; - public const string Euro = Material.Sharp.Euro; - public const string EuroSymbol = Material.Sharp.EuroSymbol; - public const string EvStation = Material.Sharp.EvStation; - public const string Event = Material.Sharp.Event; - public const string EventAvailable = Material.Sharp.EventAvailable; - public const string EventBusy = Material.Sharp.EventBusy; - public const string EventNote = Material.Sharp.EventNote; - public const string EventRepeat = Material.Sharp.EventRepeat; - public const string EventSeat = Material.Sharp.EventSeat; - public const string ExitToApp = Material.Sharp.ExitToApp; - public const string Expand = Material.Sharp.Expand; - public const string ExpandCircleDown = Material.Sharp.ExpandCircleDown; - public const string ExpandLess = Material.Sharp.ExpandLess; - public const string ExpandMore = Material.Sharp.ExpandMore; - public const string Explicit = Material.Sharp.Explicit; - public const string Explore = Material.Sharp.Explore; - public const string ExploreOff = Material.Sharp.ExploreOff; - public const string Exposure = Material.Sharp.Exposure; - public const string ExposureNeg1 = Material.Sharp.ExposureNeg1; - public const string ExposureNeg2 = Material.Sharp.ExposureNeg2; - public const string ExposurePlus1 = Material.Sharp.ExposurePlus1; - public const string ExposurePlus2 = Material.Sharp.ExposurePlus2; - public const string ExposureZero = Material.Sharp.ExposureZero; - public const string Extension = Material.Sharp.Extension; - public const string ExtensionOff = Material.Sharp.ExtensionOff; - public const string Face = Material.Sharp.Face; - public const string Face2 = Material.Sharp.Face2; - public const string Face3 = Material.Sharp.Face3; - public const string Face4 = Material.Sharp.Face4; - public const string Face5 = Material.Sharp.Face5; - public const string Face6 = Material.Sharp.Face6; - public const string FaceRetouchingNatural = Material.Sharp.FaceRetouchingNatural; - public const string FaceRetouchingOff = Material.Sharp.FaceRetouchingOff; - public const string FactCheck = Material.Sharp.FactCheck; - public const string Factory = Material.Sharp.Factory; - public const string FamilyRestroom = Material.Sharp.FamilyRestroom; - public const string FastForward = Material.Sharp.FastForward; - public const string FastRewind = Material.Sharp.FastRewind; - public const string Fastfood = Material.Sharp.Fastfood; - public const string Favorite = Material.Sharp.Favorite; - public const string FavoriteBorder = Material.Sharp.FavoriteBorder; - public const string Fax = Material.Sharp.Fax; - public const string FeaturedPlayList = Material.Sharp.FeaturedPlayList; - public const string FeaturedVideo = Material.Sharp.FeaturedVideo; - public const string Feed = Material.Sharp.Feed; - public const string Feedback = Material.Sharp.Feedback; - public const string Female = Material.Sharp.Female; - public const string Fence = Material.Sharp.Fence; - public const string Festival = Material.Sharp.Festival; - public const string FiberDvr = Material.Sharp.FiberDvr; - public const string FiberManualRecord = Material.Sharp.FiberManualRecord; - public const string FiberNew = Material.Sharp.FiberNew; - public const string FiberPin = Material.Sharp.FiberPin; - public const string FiberSmartRecord = Material.Sharp.FiberSmartRecord; - public const string FileCopy = Material.Sharp.FileCopy; - public const string FileDownload = Material.Sharp.FileDownload; - public const string FileDownloadDone = Material.Sharp.FileDownloadDone; - public const string FileDownloadOff = Material.Sharp.FileDownloadOff; - public const string FileOpen = Material.Sharp.FileOpen; - public const string FilePresent = Material.Sharp.FilePresent; - public const string FileUpload = Material.Sharp.FileUpload; - public const string Filter = Material.Sharp.Filter; - public const string Filter1 = Material.Sharp.Filter1; - public const string Filter2 = Material.Sharp.Filter2; - public const string Filter3 = Material.Sharp.Filter3; - public const string Filter4 = Material.Sharp.Filter4; - public const string Filter5 = Material.Sharp.Filter5; - public const string Filter6 = Material.Sharp.Filter6; - public const string Filter7 = Material.Sharp.Filter7; - public const string Filter8 = Material.Sharp.Filter8; - public const string Filter9 = Material.Sharp.Filter9; - public const string Filter9Plus = Material.Sharp.Filter9Plus; - public const string FilterAlt = Material.Sharp.FilterAlt; - public const string FilterAltOff = Material.Sharp.FilterAltOff; - public const string FilterBAndW = Material.Sharp.FilterBAndW; - public const string FilterCenterFocus = Material.Sharp.FilterCenterFocus; - public const string FilterDrama = Material.Sharp.FilterDrama; - public const string FilterFrames = Material.Sharp.FilterFrames; - public const string FilterHdr = Material.Sharp.FilterHdr; - public const string FilterList = Material.Sharp.FilterList; - public const string FilterListOff = Material.Sharp.FilterListOff; - public const string FilterNone = Material.Sharp.FilterNone; - public const string FilterTiltShift = Material.Sharp.FilterTiltShift; - public const string FilterVintage = Material.Sharp.FilterVintage; - public const string FindInPage = Material.Sharp.FindInPage; - public const string FindReplace = Material.Sharp.FindReplace; - public const string Fingerprint = Material.Sharp.Fingerprint; - public const string FireExtinguisher = Material.Sharp.FireExtinguisher; - public const string FireHydrantAlt = Material.Sharp.FireHydrantAlt; - public const string FireTruck = Material.Sharp.FireTruck; - public const string Fireplace = Material.Sharp.Fireplace; - public const string FirstPage = Material.Sharp.FirstPage; - public const string FitScreen = Material.Sharp.FitScreen; - public const string Fitbit = Material.Sharp.Fitbit; - public const string FitnessCenter = Material.Sharp.FitnessCenter; - public const string Flag = Material.Sharp.Flag; - public const string FlagCircle = Material.Sharp.FlagCircle; - public const string Flaky = Material.Sharp.Flaky; - public const string Flare = Material.Sharp.Flare; - public const string FlashAuto = Material.Sharp.FlashAuto; - public const string FlashOff = Material.Sharp.FlashOff; - public const string FlashOn = Material.Sharp.FlashOn; - public const string FlashlightOff = Material.Sharp.FlashlightOff; - public const string FlashlightOn = Material.Sharp.FlashlightOn; - public const string Flatware = Material.Sharp.Flatware; - public const string Flight = Material.Sharp.Flight; - public const string FlightClass = Material.Sharp.FlightClass; - public const string FlightLand = Material.Sharp.FlightLand; - public const string FlightTakeoff = Material.Sharp.FlightTakeoff; - public const string Flip = Material.Sharp.Flip; - public const string FlipCameraAndroid = Material.Sharp.FlipCameraAndroid; - public const string FlipCameraIos = Material.Sharp.FlipCameraIos; - public const string FlipToBack = Material.Sharp.FlipToBack; - public const string FlipToFront = Material.Sharp.FlipToFront; - public const string Flood = Material.Sharp.Flood; - public const string Fluorescent = Material.Sharp.Fluorescent; - public const string FlutterDash = Material.Sharp.FlutterDash; - public const string FmdBad = Material.Sharp.FmdBad; - public const string FmdGood = Material.Sharp.FmdGood; - public const string Folder = Material.Sharp.Folder; - public const string FolderCopy = Material.Sharp.FolderCopy; - public const string FolderDelete = Material.Sharp.FolderDelete; - public const string FolderOff = Material.Sharp.FolderOff; - public const string FolderOpen = Material.Sharp.FolderOpen; - public const string FolderShared = Material.Sharp.FolderShared; - public const string FolderSpecial = Material.Sharp.FolderSpecial; - public const string FolderZip = Material.Sharp.FolderZip; - public const string FollowTheSigns = Material.Sharp.FollowTheSigns; - public const string FontDownload = Material.Sharp.FontDownload; - public const string FontDownloadOff = Material.Sharp.FontDownloadOff; - public const string FoodBank = Material.Sharp.FoodBank; - public const string Forest = Material.Sharp.Forest; - public const string ForkLeft = Material.Sharp.ForkLeft; - public const string ForkRight = Material.Sharp.ForkRight; - public const string FormatAlignCenter = Material.Sharp.FormatAlignCenter; - public const string FormatAlignJustify = Material.Sharp.FormatAlignJustify; - public const string FormatAlignLeft = Material.Sharp.FormatAlignLeft; - public const string FormatAlignRight = Material.Sharp.FormatAlignRight; - public const string FormatBold = Material.Sharp.FormatBold; - public const string FormatClear = Material.Sharp.FormatClear; - public const string FormatColorFill = Material.Sharp.FormatColorFill; - public const string FormatColorReset = Material.Sharp.FormatColorReset; - public const string FormatColorText = Material.Sharp.FormatColorText; - public const string FormatIndentDecrease = Material.Sharp.FormatIndentDecrease; - public const string FormatIndentIncrease = Material.Sharp.FormatIndentIncrease; - public const string FormatItalic = Material.Sharp.FormatItalic; - public const string FormatLineSpacing = Material.Sharp.FormatLineSpacing; - public const string FormatListBulleted = Material.Sharp.FormatListBulleted; - public const string FormatListNumbered = Material.Sharp.FormatListNumbered; - public const string FormatListNumberedRtl = Material.Sharp.FormatListNumberedRtl; - public const string FormatOverline = Material.Sharp.FormatOverline; - public const string FormatPaint = Material.Sharp.FormatPaint; - public const string FormatQuote = Material.Sharp.FormatQuote; - public const string FormatShapes = Material.Sharp.FormatShapes; - public const string FormatSize = Material.Sharp.FormatSize; - public const string FormatStrikethrough = Material.Sharp.FormatStrikethrough; - public const string FormatTextdirectionLToR = Material.Sharp.FormatTextdirectionLToR; - public const string FormatTextdirectionRToL = Material.Sharp.FormatTextdirectionRToL; - public const string FormatUnderlined = Material.Sharp.FormatUnderlined; - public const string Fort = Material.Sharp.Fort; - public const string Forum = Material.Sharp.Forum; - public const string Forward = Material.Sharp.Forward; - public const string Forward10 = Material.Sharp.Forward10; - public const string Forward30 = Material.Sharp.Forward30; - public const string Forward5 = Material.Sharp.Forward5; - public const string ForwardToInbox = Material.Sharp.ForwardToInbox; - public const string Foundation = Material.Sharp.Foundation; - public const string FreeBreakfast = Material.Sharp.FreeBreakfast; - public const string FreeCancellation = Material.Sharp.FreeCancellation; - public const string FrontHand = Material.Sharp.FrontHand; - public const string Fullscreen = Material.Sharp.Fullscreen; - public const string FullscreenExit = Material.Sharp.FullscreenExit; - public const string Functions = Material.Sharp.Functions; - public const string GMobiledata = Material.Sharp.GMobiledata; - public const string GTranslate = Material.Sharp.GTranslate; - public const string Gamepad = Material.Sharp.Gamepad; - public const string Games = Material.Sharp.Games; - public const string Garage = Material.Sharp.Garage; - public const string GasMeter = Material.Sharp.GasMeter; - public const string Gavel = Material.Sharp.Gavel; - public const string GeneratingTokens = Material.Sharp.GeneratingTokens; - public const string Gesture = Material.Sharp.Gesture; - public const string GetApp = Material.Sharp.GetApp; - public const string Gif = Material.Sharp.Gif; - public const string GifBox = Material.Sharp.GifBox; - public const string Girl = Material.Sharp.Girl; - public const string Gite = Material.Sharp.Gite; - public const string GolfCourse = Material.Sharp.GolfCourse; - public const string GppBad = Material.Sharp.GppBad; - public const string GppGood = Material.Sharp.GppGood; - public const string GppMaybe = Material.Sharp.GppMaybe; - public const string GpsFixed = Material.Sharp.GpsFixed; - public const string GpsNotFixed = Material.Sharp.GpsNotFixed; - public const string GpsOff = Material.Sharp.GpsOff; - public const string Grade = Material.Sharp.Grade; - public const string Gradient = Material.Sharp.Gradient; - public const string Grading = Material.Sharp.Grading; - public const string Grain = Material.Sharp.Grain; - public const string GraphicEq = Material.Sharp.GraphicEq; - public const string Grass = Material.Sharp.Grass; - public const string Grid3x3 = Material.Sharp.Grid3x3; - public const string Grid4x4 = Material.Sharp.Grid4x4; - public const string GridGoldenratio = Material.Sharp.GridGoldenratio; - public const string GridOff = Material.Sharp.GridOff; - public const string GridOn = Material.Sharp.GridOn; - public const string GridView = Material.Sharp.GridView; - public const string Group = Material.Sharp.Group; - public const string GroupAdd = Material.Sharp.GroupAdd; - public const string GroupOff = Material.Sharp.GroupOff; - public const string GroupRemove = Material.Sharp.GroupRemove; - public const string GroupWork = Material.Sharp.GroupWork; - public const string Groups = Material.Sharp.Groups; - public const string Groups2 = Material.Sharp.Groups2; - public const string Groups3 = Material.Sharp.Groups3; - public const string HMobiledata = Material.Sharp.HMobiledata; - public const string HPlusMobiledata = Material.Sharp.HPlusMobiledata; - public const string Hail = Material.Sharp.Hail; - public const string Handshake = Material.Sharp.Handshake; - public const string Handyman = Material.Sharp.Handyman; - public const string Hardware = Material.Sharp.Hardware; - public const string Hd = Material.Sharp.Hd; - public const string HdrAuto = Material.Sharp.HdrAuto; - public const string HdrAutoSelect = Material.Sharp.HdrAutoSelect; - public const string HdrEnhancedSelect = Material.Sharp.HdrEnhancedSelect; - public const string HdrOff = Material.Sharp.HdrOff; - public const string HdrOffSelect = Material.Sharp.HdrOffSelect; - public const string HdrOn = Material.Sharp.HdrOn; - public const string HdrOnSelect = Material.Sharp.HdrOnSelect; - public const string HdrPlus = Material.Sharp.HdrPlus; - public const string HdrStrong = Material.Sharp.HdrStrong; - public const string HdrWeak = Material.Sharp.HdrWeak; - public const string Headphones = Material.Sharp.Headphones; - public const string HeadphonesBattery = Material.Sharp.HeadphonesBattery; - public const string Headset = Material.Sharp.Headset; - public const string HeadsetMic = Material.Sharp.HeadsetMic; - public const string HeadsetOff = Material.Sharp.HeadsetOff; - public const string Healing = Material.Sharp.Healing; - public const string HealthAndSafety = Material.Sharp.HealthAndSafety; - public const string Hearing = Material.Sharp.Hearing; - public const string HearingDisabled = Material.Sharp.HearingDisabled; - public const string HeartBroken = Material.Sharp.HeartBroken; - public const string HeatPump = Material.Sharp.HeatPump; - public const string Height = Material.Sharp.Height; - public const string Help = Material.Sharp.Help; - public const string HelpCenter = Material.Sharp.HelpCenter; - public const string HelpOutline = Material.Sharp.HelpOutline; - public const string Hevc = Material.Sharp.Hevc; - public const string Hexagon = Material.Sharp.Hexagon; - public const string HideImage = Material.Sharp.HideImage; - public const string HideSource = Material.Sharp.HideSource; - public const string HighQuality = Material.Sharp.HighQuality; - public const string Highlight = Material.Sharp.Highlight; - public const string HighlightAlt = Material.Sharp.HighlightAlt; - public const string HighlightOff = Material.Sharp.HighlightOff; - public const string Hiking = Material.Sharp.Hiking; - public const string History = Material.Sharp.History; - public const string HistoryEdu = Material.Sharp.HistoryEdu; - public const string HistoryToggleOff = Material.Sharp.HistoryToggleOff; - public const string Hive = Material.Sharp.Hive; - public const string Hls = Material.Sharp.Hls; - public const string HlsOff = Material.Sharp.HlsOff; - public const string HolidayVillage = Material.Sharp.HolidayVillage; - public const string Home = Material.Sharp.Home; - public const string HomeMax = Material.Sharp.HomeMax; - public const string HomeMini = Material.Sharp.HomeMini; - public const string HomeRepairService = Material.Sharp.HomeRepairService; - public const string HomeWork = Material.Sharp.HomeWork; - public const string HorizontalDistribute = Material.Sharp.HorizontalDistribute; - public const string HorizontalRule = Material.Sharp.HorizontalRule; - public const string HorizontalSplit = Material.Sharp.HorizontalSplit; - public const string HotTub = Material.Sharp.HotTub; - public const string Hotel = Material.Sharp.Hotel; - public const string HotelClass = Material.Sharp.HotelClass; - public const string HourglassBottom = Material.Sharp.HourglassBottom; - public const string HourglassDisabled = Material.Sharp.HourglassDisabled; - public const string HourglassEmpty = Material.Sharp.HourglassEmpty; - public const string HourglassFull = Material.Sharp.HourglassFull; - public const string HourglassTop = Material.Sharp.HourglassTop; - public const string House = Material.Sharp.House; - public const string HouseSiding = Material.Sharp.HouseSiding; - public const string Houseboat = Material.Sharp.Houseboat; - public const string HowToReg = Material.Sharp.HowToReg; - public const string HowToVote = Material.Sharp.HowToVote; - public const string Html = Material.Sharp.Html; - public const string Http = Material.Sharp.Http; - public const string Https = Material.Sharp.Https; - public const string Hub = Material.Sharp.Hub; - public const string Hvac = Material.Sharp.Hvac; - public const string IceSkating = Material.Sharp.IceSkating; - public const string Icecream = Material.Sharp.Icecream; - public const string Image = Material.Sharp.Image; - public const string ImageAspectRatio = Material.Sharp.ImageAspectRatio; - public const string ImageNotSupported = Material.Sharp.ImageNotSupported; - public const string ImageSearch = Material.Sharp.ImageSearch; - public const string ImagesearchRoller = Material.Sharp.ImagesearchRoller; - public const string ImportContacts = Material.Sharp.ImportContacts; - public const string ImportExport = Material.Sharp.ImportExport; - public const string ImportantDevices = Material.Sharp.ImportantDevices; - public const string Inbox = Material.Sharp.Inbox; - public const string IncompleteCircle = Material.Sharp.IncompleteCircle; - public const string IndeterminateCheckBox = Material.Sharp.IndeterminateCheckBox; - public const string Info = Material.Sharp.Info; - public const string Input = Material.Sharp.Input; - public const string InsertChart = Material.Sharp.InsertChart; - public const string InsertChartOutlined = Material.Sharp.InsertChartOutlined; - public const string InsertComment = Material.Sharp.InsertComment; - public const string InsertDriveFile = Material.Sharp.InsertDriveFile; - public const string InsertEmoticon = Material.Sharp.InsertEmoticon; - public const string InsertInvitation = Material.Sharp.InsertInvitation; - public const string InsertLink = Material.Sharp.InsertLink; - public const string InsertPageBreak = Material.Sharp.InsertPageBreak; - public const string InsertPhoto = Material.Sharp.InsertPhoto; - public const string Insights = Material.Sharp.Insights; - public const string InstallDesktop = Material.Sharp.InstallDesktop; - public const string InstallMobile = Material.Sharp.InstallMobile; - public const string IntegrationInstructions = Material.Sharp.IntegrationInstructions; - public const string Interests = Material.Sharp.Interests; - public const string InterpreterMode = Material.Sharp.InterpreterMode; - public const string Inventory = Material.Sharp.Inventory; - public const string Inventory2 = Material.Sharp.Inventory2; - public const string InvertColors = Material.Sharp.InvertColors; - public const string InvertColorsOff = Material.Sharp.InvertColorsOff; - public const string IosShare = Material.Sharp.IosShare; - public const string Iron = Material.Sharp.Iron; - public const string Iso = Material.Sharp.Iso; - public const string Javascript = Material.Sharp.Javascript; - public const string JoinFull = Material.Sharp.JoinFull; - public const string JoinInner = Material.Sharp.JoinInner; - public const string JoinLeft = Material.Sharp.JoinLeft; - public const string JoinRight = Material.Sharp.JoinRight; - public const string Kayaking = Material.Sharp.Kayaking; - public const string KebabDining = Material.Sharp.KebabDining; - public const string Key = Material.Sharp.Key; - public const string KeyOff = Material.Sharp.KeyOff; - public const string Keyboard = Material.Sharp.Keyboard; - public const string KeyboardAlt = Material.Sharp.KeyboardAlt; - public const string KeyboardArrowDown = Material.Sharp.KeyboardArrowDown; - public const string KeyboardArrowLeft = Material.Sharp.KeyboardArrowLeft; - public const string KeyboardArrowRight = Material.Sharp.KeyboardArrowRight; - public const string KeyboardArrowUp = Material.Sharp.KeyboardArrowUp; - public const string KeyboardBackspace = Material.Sharp.KeyboardBackspace; - public const string KeyboardCapslock = Material.Sharp.KeyboardCapslock; - public const string KeyboardCommandKey = Material.Sharp.KeyboardCommandKey; - public const string KeyboardControlKey = Material.Sharp.KeyboardControlKey; - public const string KeyboardDoubleArrowDown = Material.Sharp.KeyboardDoubleArrowDown; - public const string KeyboardDoubleArrowLeft = Material.Sharp.KeyboardDoubleArrowLeft; - public const string KeyboardDoubleArrowRight = Material.Sharp.KeyboardDoubleArrowRight; - public const string KeyboardDoubleArrowUp = Material.Sharp.KeyboardDoubleArrowUp; - public const string KeyboardHide = Material.Sharp.KeyboardHide; - public const string KeyboardOptionKey = Material.Sharp.KeyboardOptionKey; - public const string KeyboardReturn = Material.Sharp.KeyboardReturn; - public const string KeyboardTab = Material.Sharp.KeyboardTab; - public const string KeyboardVoice = Material.Sharp.KeyboardVoice; - public const string KingBed = Material.Sharp.KingBed; - public const string Kitchen = Material.Sharp.Kitchen; - public const string Kitesurfing = Material.Sharp.Kitesurfing; - public const string Label = Material.Sharp.Label; - public const string LabelImportant = Material.Sharp.LabelImportant; - public const string LabelOff = Material.Sharp.LabelOff; - public const string Lan = Material.Sharp.Lan; - public const string Landscape = Material.Sharp.Landscape; - public const string Landslide = Material.Sharp.Landslide; - public const string Language = Material.Sharp.Language; - public const string Laptop = Material.Sharp.Laptop; - public const string LaptopChromebook = Material.Sharp.LaptopChromebook; - public const string LaptopMac = Material.Sharp.LaptopMac; - public const string LaptopWindows = Material.Sharp.LaptopWindows; - public const string LastPage = Material.Sharp.LastPage; - public const string Launch = Material.Sharp.Launch; - public const string Layers = Material.Sharp.Layers; - public const string LayersClear = Material.Sharp.LayersClear; - public const string Leaderboard = Material.Sharp.Leaderboard; - public const string LeakAdd = Material.Sharp.LeakAdd; - public const string LeakRemove = Material.Sharp.LeakRemove; - public const string LegendToggle = Material.Sharp.LegendToggle; - public const string Lens = Material.Sharp.Lens; - public const string LensBlur = Material.Sharp.LensBlur; - public const string LibraryAdd = Material.Sharp.LibraryAdd; - public const string LibraryAddCheck = Material.Sharp.LibraryAddCheck; - public const string LibraryBooks = Material.Sharp.LibraryBooks; - public const string LibraryMusic = Material.Sharp.LibraryMusic; - public const string Light = Material.Sharp.Light; - public const string LightMode = Material.Sharp.LightMode; - public const string Lightbulb = Material.Sharp.Lightbulb; - public const string LightbulbCircle = Material.Sharp.LightbulbCircle; - public const string LineAxis = Material.Sharp.LineAxis; - public const string LineStyle = Material.Sharp.LineStyle; - public const string LineWeight = Material.Sharp.LineWeight; - public const string LinearScale = Material.Sharp.LinearScale; - public const string Link = Material.Sharp.Link; - public const string LinkOff = Material.Sharp.LinkOff; - public const string LinkedCamera = Material.Sharp.LinkedCamera; - public const string Liquor = Material.Sharp.Liquor; - public const string List = Material.Sharp.List; - public const string ListAlt = Material.Sharp.ListAlt; - public const string LiveHelp = Material.Sharp.LiveHelp; - public const string LiveTv = Material.Sharp.LiveTv; - public const string Living = Material.Sharp.Living; - public const string LocalActivity = Material.Sharp.LocalActivity; - public const string LocalAirport = Material.Sharp.LocalAirport; - public const string LocalAtm = Material.Sharp.LocalAtm; - public const string LocalBar = Material.Sharp.LocalBar; - public const string LocalCafe = Material.Sharp.LocalCafe; - public const string LocalCarWash = Material.Sharp.LocalCarWash; - public const string LocalConvenienceStore = Material.Sharp.LocalConvenienceStore; - public const string LocalDining = Material.Sharp.LocalDining; - public const string LocalDrink = Material.Sharp.LocalDrink; - public const string LocalFireDepartment = Material.Sharp.LocalFireDepartment; - public const string LocalFlorist = Material.Sharp.LocalFlorist; - public const string LocalGasStation = Material.Sharp.LocalGasStation; - public const string LocalGroceryStore = Material.Sharp.LocalGroceryStore; - public const string LocalHospital = Material.Sharp.LocalHospital; - public const string LocalHotel = Material.Sharp.LocalHotel; - public const string LocalLaundryService = Material.Sharp.LocalLaundryService; - public const string LocalLibrary = Material.Sharp.LocalLibrary; - public const string LocalMall = Material.Sharp.LocalMall; - public const string LocalMovies = Material.Sharp.LocalMovies; - public const string LocalOffer = Material.Sharp.LocalOffer; - public const string LocalParking = Material.Sharp.LocalParking; - public const string LocalPharmacy = Material.Sharp.LocalPharmacy; - public const string LocalPhone = Material.Sharp.LocalPhone; - public const string LocalPizza = Material.Sharp.LocalPizza; - public const string LocalPlay = Material.Sharp.LocalPlay; - public const string LocalPolice = Material.Sharp.LocalPolice; - public const string LocalPostOffice = Material.Sharp.LocalPostOffice; - public const string LocalPrintshop = Material.Sharp.LocalPrintshop; - public const string LocalSee = Material.Sharp.LocalSee; - public const string LocalShipping = Material.Sharp.LocalShipping; - public const string LocalTaxi = Material.Sharp.LocalTaxi; - public const string LocationCity = Material.Sharp.LocationCity; - public const string LocationDisabled = Material.Sharp.LocationDisabled; - public const string LocationOff = Material.Sharp.LocationOff; - public const string LocationOn = Material.Sharp.LocationOn; - public const string LocationSearching = Material.Sharp.LocationSearching; - public const string Lock = Material.Sharp.Lock; - public const string LockClock = Material.Sharp.LockClock; - public const string LockOpen = Material.Sharp.LockOpen; - public const string LockPerson = Material.Sharp.LockPerson; - public const string LockReset = Material.Sharp.LockReset; - public const string Login = Material.Sharp.Login; - public const string LogoDev = Material.Sharp.LogoDev; - public const string Logout = Material.Sharp.Logout; - public const string Looks = Material.Sharp.Looks; - public const string Looks3 = Material.Sharp.Looks3; - public const string Looks4 = Material.Sharp.Looks4; - public const string Looks5 = Material.Sharp.Looks5; - public const string Looks6 = Material.Sharp.Looks6; - public const string LooksOne = Material.Sharp.LooksOne; - public const string LooksTwo = Material.Sharp.LooksTwo; - public const string Loop = Material.Sharp.Loop; - public const string Loupe = Material.Sharp.Loupe; - public const string LowPriority = Material.Sharp.LowPriority; - public const string Loyalty = Material.Sharp.Loyalty; - public const string LteMobiledata = Material.Sharp.LteMobiledata; - public const string LtePlusMobiledata = Material.Sharp.LtePlusMobiledata; - public const string Luggage = Material.Sharp.Luggage; - public const string LunchDining = Material.Sharp.LunchDining; - public const string Lyrics = Material.Sharp.Lyrics; - public const string MacroOff = Material.Sharp.MacroOff; - public const string Mail = Material.Sharp.Mail; - public const string MailLock = Material.Sharp.MailLock; - public const string MailOutline = Material.Sharp.MailOutline; - public const string Male = Material.Sharp.Male; - public const string Man = Material.Sharp.Man; - public const string Man2 = Material.Sharp.Man2; - public const string Man3 = Material.Sharp.Man3; - public const string Man4 = Material.Sharp.Man4; - public const string ManageAccounts = Material.Sharp.ManageAccounts; - public const string ManageHistory = Material.Sharp.ManageHistory; - public const string ManageSearch = Material.Sharp.ManageSearch; - public const string Map = Material.Sharp.Map; - public const string MapsHomeWork = Material.Sharp.MapsHomeWork; - public const string MapsUgc = Material.Sharp.MapsUgc; - public const string Margin = Material.Sharp.Margin; - public const string MarkAsUnread = Material.Sharp.MarkAsUnread; - public const string MarkChatRead = Material.Sharp.MarkChatRead; - public const string MarkChatUnread = Material.Sharp.MarkChatUnread; - public const string MarkEmailRead = Material.Sharp.MarkEmailRead; - public const string MarkEmailUnread = Material.Sharp.MarkEmailUnread; - public const string MarkUnreadChatAlt = Material.Sharp.MarkUnreadChatAlt; - public const string Markunread = Material.Sharp.Markunread; - public const string MarkunreadMailbox = Material.Sharp.MarkunreadMailbox; - public const string Masks = Material.Sharp.Masks; - public const string Maximize = Material.Sharp.Maximize; - public const string MediaBluetoothOff = Material.Sharp.MediaBluetoothOff; - public const string MediaBluetoothOn = Material.Sharp.MediaBluetoothOn; - public const string Mediation = Material.Sharp.Mediation; - public const string MedicalInformation = Material.Sharp.MedicalInformation; - public const string MedicalServices = Material.Sharp.MedicalServices; - public const string Medication = Material.Sharp.Medication; - public const string MedicationLiquid = Material.Sharp.MedicationLiquid; - public const string MeetingRoom = Material.Sharp.MeetingRoom; - public const string Memory = Material.Sharp.Memory; - public const string Menu = Material.Sharp.Menu; - public const string MenuBook = Material.Sharp.MenuBook; - public const string MenuOpen = Material.Sharp.MenuOpen; - public const string Merge = Material.Sharp.Merge; - public const string MergeType = Material.Sharp.MergeType; - public const string Message = Material.Sharp.Message; - public const string Mic = Material.Sharp.Mic; - public const string MicExternalOff = Material.Sharp.MicExternalOff; - public const string MicExternalOn = Material.Sharp.MicExternalOn; - public const string MicNone = Material.Sharp.MicNone; - public const string MicOff = Material.Sharp.MicOff; - public const string Microwave = Material.Sharp.Microwave; - public const string MilitaryTech = Material.Sharp.MilitaryTech; - public const string Minimize = Material.Sharp.Minimize; - public const string MinorCrash = Material.Sharp.MinorCrash; - public const string MiscellaneousServices = Material.Sharp.MiscellaneousServices; - public const string MissedVideoCall = Material.Sharp.MissedVideoCall; - public const string Mms = Material.Sharp.Mms; - public const string MobileFriendly = Material.Sharp.MobileFriendly; - public const string MobileOff = Material.Sharp.MobileOff; - public const string MobileScreenShare = Material.Sharp.MobileScreenShare; - public const string MobiledataOff = Material.Sharp.MobiledataOff; - public const string Mode = Material.Sharp.Mode; - public const string ModeComment = Material.Sharp.ModeComment; - public const string ModeEdit = Material.Sharp.ModeEdit; - public const string ModeEditOutline = Material.Sharp.ModeEditOutline; - public const string ModeFanOff = Material.Sharp.ModeFanOff; - public const string ModeNight = Material.Sharp.ModeNight; - public const string ModeOfTravel = Material.Sharp.ModeOfTravel; - public const string ModeStandby = Material.Sharp.ModeStandby; - public const string ModelTraining = Material.Sharp.ModelTraining; - public const string MonetizationOn = Material.Sharp.MonetizationOn; - public const string Money = Material.Sharp.Money; - public const string MoneyOff = Material.Sharp.MoneyOff; - public const string MoneyOffCsred = Material.Sharp.MoneyOffCsred; - public const string Monitor = Material.Sharp.Monitor; - public const string MonitorHeart = Material.Sharp.MonitorHeart; - public const string MonitorWeight = Material.Sharp.MonitorWeight; - public const string MonochromePhotos = Material.Sharp.MonochromePhotos; - public const string Mood = Material.Sharp.Mood; - public const string MoodBad = Material.Sharp.MoodBad; - public const string Moped = Material.Sharp.Moped; - public const string More = Material.Sharp.More; - public const string MoreHoriz = Material.Sharp.MoreHoriz; - public const string MoreTime = Material.Sharp.MoreTime; - public const string MoreVert = Material.Sharp.MoreVert; - public const string Mosque = Material.Sharp.Mosque; - public const string MotionPhotosAuto = Material.Sharp.MotionPhotosAuto; - public const string MotionPhotosOff = Material.Sharp.MotionPhotosOff; - public const string MotionPhotosOn = Material.Sharp.MotionPhotosOn; - public const string MotionPhotosPause = Material.Sharp.MotionPhotosPause; - public const string MotionPhotosPaused = Material.Sharp.MotionPhotosPaused; - public const string Mouse = Material.Sharp.Mouse; - public const string MoveDown = Material.Sharp.MoveDown; - public const string MoveToInbox = Material.Sharp.MoveToInbox; - public const string MoveUp = Material.Sharp.MoveUp; - public const string Movie = Material.Sharp.Movie; - public const string MovieCreation = Material.Sharp.MovieCreation; - public const string MovieFilter = Material.Sharp.MovieFilter; - public const string Moving = Material.Sharp.Moving; - public const string Mp = Material.Sharp.Mp; - public const string MultilineChart = Material.Sharp.MultilineChart; - public const string MultipleStop = Material.Sharp.MultipleStop; - public const string Museum = Material.Sharp.Museum; - public const string MusicNote = Material.Sharp.MusicNote; - public const string MusicOff = Material.Sharp.MusicOff; - public const string MusicVideo = Material.Sharp.MusicVideo; - public const string MyLocation = Material.Sharp.MyLocation; - public const string Nat = Material.Sharp.Nat; - public const string Nature = Material.Sharp.Nature; - public const string NaturePeople = Material.Sharp.NaturePeople; - public const string NavigateBefore = Material.Sharp.NavigateBefore; - public const string NavigateNext = Material.Sharp.NavigateNext; - public const string Navigation = Material.Sharp.Navigation; - public const string NearMe = Material.Sharp.NearMe; - public const string NearMeDisabled = Material.Sharp.NearMeDisabled; - public const string NearbyError = Material.Sharp.NearbyError; - public const string NearbyOff = Material.Sharp.NearbyOff; - public const string NestCamWiredStand = Material.Sharp.NestCamWiredStand; - public const string NetworkCell = Material.Sharp.NetworkCell; - public const string NetworkCheck = Material.Sharp.NetworkCheck; - public const string NetworkLocked = Material.Sharp.NetworkLocked; - public const string NetworkPing = Material.Sharp.NetworkPing; - public const string NetworkWifi = Material.Sharp.NetworkWifi; - public const string NetworkWifi1Bar = Material.Sharp.NetworkWifi1Bar; - public const string NetworkWifi2Bar = Material.Sharp.NetworkWifi2Bar; - public const string NetworkWifi3Bar = Material.Sharp.NetworkWifi3Bar; - public const string NewLabel = Material.Sharp.NewLabel; - public const string NewReleases = Material.Sharp.NewReleases; - public const string Newspaper = Material.Sharp.Newspaper; - public const string NextPlan = Material.Sharp.NextPlan; - public const string NextWeek = Material.Sharp.NextWeek; - public const string Nfc = Material.Sharp.Nfc; - public const string NightShelter = Material.Sharp.NightShelter; - public const string Nightlife = Material.Sharp.Nightlife; - public const string Nightlight = Material.Sharp.Nightlight; - public const string NightlightRound = Material.Sharp.NightlightRound; - public const string NightsStay = Material.Sharp.NightsStay; - public const string NoAccounts = Material.Sharp.NoAccounts; - public const string NoAdultContent = Material.Sharp.NoAdultContent; - public const string NoBackpack = Material.Sharp.NoBackpack; - public const string NoCell = Material.Sharp.NoCell; - public const string NoCrash = Material.Sharp.NoCrash; - public const string NoDrinks = Material.Sharp.NoDrinks; - public const string NoEncryption = Material.Sharp.NoEncryption; - public const string NoEncryptionGmailerrorred = Material.Sharp.NoEncryptionGmailerrorred; - public const string NoFlash = Material.Sharp.NoFlash; - public const string NoFood = Material.Sharp.NoFood; - public const string NoLuggage = Material.Sharp.NoLuggage; - public const string NoMeals = Material.Sharp.NoMeals; - public const string NoMeetingRoom = Material.Sharp.NoMeetingRoom; - public const string NoPhotography = Material.Sharp.NoPhotography; - public const string NoSim = Material.Sharp.NoSim; - public const string NoStroller = Material.Sharp.NoStroller; - public const string NoTransfer = Material.Sharp.NoTransfer; - public const string NoiseAware = Material.Sharp.NoiseAware; - public const string NoiseControlOff = Material.Sharp.NoiseControlOff; - public const string NordicWalking = Material.Sharp.NordicWalking; - public const string North = Material.Sharp.North; - public const string NorthEast = Material.Sharp.NorthEast; - public const string NorthWest = Material.Sharp.NorthWest; - public const string NotAccessible = Material.Sharp.NotAccessible; - public const string NotInterested = Material.Sharp.NotInterested; - public const string NotListedLocation = Material.Sharp.NotListedLocation; - public const string NotStarted = Material.Sharp.NotStarted; - public const string Note = Material.Sharp.Note; - public const string NoteAdd = Material.Sharp.NoteAdd; - public const string NoteAlt = Material.Sharp.NoteAlt; - public const string Notes = Material.Sharp.Notes; - public const string NotificationAdd = Material.Sharp.NotificationAdd; - public const string NotificationImportant = Material.Sharp.NotificationImportant; - public const string Notifications = Material.Sharp.Notifications; - public const string NotificationsActive = Material.Sharp.NotificationsActive; - public const string NotificationsNone = Material.Sharp.NotificationsNone; - public const string NotificationsOff = Material.Sharp.NotificationsOff; - public const string NotificationsPaused = Material.Sharp.NotificationsPaused; - public const string Numbers = Material.Sharp.Numbers; - public const string OfflineBolt = Material.Sharp.OfflineBolt; - public const string OfflinePin = Material.Sharp.OfflinePin; - public const string OfflineShare = Material.Sharp.OfflineShare; - public const string OilBarrel = Material.Sharp.OilBarrel; - public const string OnDeviceTraining = Material.Sharp.OnDeviceTraining; - public const string OndemandVideo = Material.Sharp.OndemandVideo; - public const string OnlinePrediction = Material.Sharp.OnlinePrediction; - public const string Opacity = Material.Sharp.Opacity; - public const string OpenInBrowser = Material.Sharp.OpenInBrowser; - public const string OpenInFull = Material.Sharp.OpenInFull; - public const string OpenInNew = Material.Sharp.OpenInNew; - public const string OpenInNewOff = Material.Sharp.OpenInNewOff; - public const string OpenWith = Material.Sharp.OpenWith; - public const string OtherHouses = Material.Sharp.OtherHouses; - public const string Outbound = Material.Sharp.Outbound; - public const string Outbox = Material.Sharp.Outbox; - public const string OutdoorGrill = Material.Sharp.OutdoorGrill; - public const string Outlet = Material.Sharp.Outlet; - public const string OutlinedFlag = Material.Sharp.OutlinedFlag; - public const string Output = Material.Sharp.Output; - public const string Padding = Material.Sharp.Padding; - public const string Pages = Material.Sharp.Pages; - public const string Pageview = Material.Sharp.Pageview; - public const string Paid = Material.Sharp.Paid; - public const string Palette = Material.Sharp.Palette; - public const string PanTool = Material.Sharp.PanTool; - public const string PanToolAlt = Material.Sharp.PanToolAlt; - public const string Panorama = Material.Sharp.Panorama; - public const string PanoramaFishEye = Material.Sharp.PanoramaFishEye; - public const string PanoramaHorizontal = Material.Sharp.PanoramaHorizontal; - public const string PanoramaHorizontalSelect = Material.Sharp.PanoramaHorizontalSelect; - public const string PanoramaPhotosphere = Material.Sharp.PanoramaPhotosphere; - public const string PanoramaPhotosphereSelect = Material.Sharp.PanoramaPhotosphereSelect; - public const string PanoramaVertical = Material.Sharp.PanoramaVertical; - public const string PanoramaVerticalSelect = Material.Sharp.PanoramaVerticalSelect; - public const string PanoramaWideAngle = Material.Sharp.PanoramaWideAngle; - public const string PanoramaWideAngleSelect = Material.Sharp.PanoramaWideAngleSelect; - public const string Paragliding = Material.Sharp.Paragliding; - public const string Park = Material.Sharp.Park; - public const string PartyMode = Material.Sharp.PartyMode; - public const string Password = Material.Sharp.Password; - public const string Pattern = Material.Sharp.Pattern; - public const string Pause = Material.Sharp.Pause; - public const string PauseCircle = Material.Sharp.PauseCircle; - public const string PauseCircleFilled = Material.Sharp.PauseCircleFilled; - public const string PauseCircleOutline = Material.Sharp.PauseCircleOutline; - public const string PausePresentation = Material.Sharp.PausePresentation; - public const string Payment = Material.Sharp.Payment; - public const string Payments = Material.Sharp.Payments; - public const string PedalBike = Material.Sharp.PedalBike; - public const string Pending = Material.Sharp.Pending; - public const string PendingActions = Material.Sharp.PendingActions; - public const string Pentagon = Material.Sharp.Pentagon; - public const string People = Material.Sharp.People; - public const string PeopleAlt = Material.Sharp.PeopleAlt; - public const string PeopleOutline = Material.Sharp.PeopleOutline; - public const string Percent = Material.Sharp.Percent; - public const string PermCameraMic = Material.Sharp.PermCameraMic; - public const string PermContactCalendar = Material.Sharp.PermContactCalendar; - public const string PermDataSetting = Material.Sharp.PermDataSetting; - public const string PermDeviceInformation = Material.Sharp.PermDeviceInformation; - public const string PermIdentity = Material.Sharp.PermIdentity; - public const string PermMedia = Material.Sharp.PermMedia; - public const string PermPhoneMsg = Material.Sharp.PermPhoneMsg; - public const string PermScanWifi = Material.Sharp.PermScanWifi; - public const string Person = Material.Sharp.Person; - public const string Person2 = Material.Sharp.Person2; - public const string Person3 = Material.Sharp.Person3; - public const string Person4 = Material.Sharp.Person4; - public const string PersonAdd = Material.Sharp.PersonAdd; - public const string PersonAddAlt = Material.Sharp.PersonAddAlt; - public const string PersonAddAlt1 = Material.Sharp.PersonAddAlt1; - public const string PersonAddDisabled = Material.Sharp.PersonAddDisabled; - public const string PersonOff = Material.Sharp.PersonOff; - public const string PersonOutline = Material.Sharp.PersonOutline; - public const string PersonPin = Material.Sharp.PersonPin; - public const string PersonPinCircle = Material.Sharp.PersonPinCircle; - public const string PersonRemove = Material.Sharp.PersonRemove; - public const string PersonRemoveAlt1 = Material.Sharp.PersonRemoveAlt1; - public const string PersonSearch = Material.Sharp.PersonSearch; - public const string PersonalInjury = Material.Sharp.PersonalInjury; - public const string PersonalVideo = Material.Sharp.PersonalVideo; - public const string PestControl = Material.Sharp.PestControl; - public const string PestControlRodent = Material.Sharp.PestControlRodent; - public const string Pets = Material.Sharp.Pets; - public const string Phishing = Material.Sharp.Phishing; - public const string Phone = Material.Sharp.Phone; - public const string PhoneAndroid = Material.Sharp.PhoneAndroid; - public const string PhoneBluetoothSpeaker = Material.Sharp.PhoneBluetoothSpeaker; - public const string PhoneCallback = Material.Sharp.PhoneCallback; - public const string PhoneDisabled = Material.Sharp.PhoneDisabled; - public const string PhoneEnabled = Material.Sharp.PhoneEnabled; - public const string PhoneForwarded = Material.Sharp.PhoneForwarded; - public const string PhoneIphone = Material.Sharp.PhoneIphone; - public const string PhoneLocked = Material.Sharp.PhoneLocked; - public const string PhoneMissed = Material.Sharp.PhoneMissed; - public const string PhonePaused = Material.Sharp.PhonePaused; - public const string Phonelink = Material.Sharp.Phonelink; - public const string PhonelinkErase = Material.Sharp.PhonelinkErase; - public const string PhonelinkLock = Material.Sharp.PhonelinkLock; - public const string PhonelinkOff = Material.Sharp.PhonelinkOff; - public const string PhonelinkRing = Material.Sharp.PhonelinkRing; - public const string PhonelinkSetup = Material.Sharp.PhonelinkSetup; - public const string Photo = Material.Sharp.Photo; - public const string PhotoAlbum = Material.Sharp.PhotoAlbum; - public const string PhotoCamera = Material.Sharp.PhotoCamera; - public const string PhotoCameraBack = Material.Sharp.PhotoCameraBack; - public const string PhotoCameraFront = Material.Sharp.PhotoCameraFront; - public const string PhotoFilter = Material.Sharp.PhotoFilter; - public const string PhotoLibrary = Material.Sharp.PhotoLibrary; - public const string PhotoSizeSelectActual = Material.Sharp.PhotoSizeSelectActual; - public const string PhotoSizeSelectLarge = Material.Sharp.PhotoSizeSelectLarge; - public const string PhotoSizeSelectSmall = Material.Sharp.PhotoSizeSelectSmall; - public const string Php = Material.Sharp.Php; - public const string Piano = Material.Sharp.Piano; - public const string PianoOff = Material.Sharp.PianoOff; - public const string PictureAsPdf = Material.Sharp.PictureAsPdf; - public const string PictureInPicture = Material.Sharp.PictureInPicture; - public const string PictureInPictureAlt = Material.Sharp.PictureInPictureAlt; - public const string PieChart = Material.Sharp.PieChart; - public const string PieChartOutline = Material.Sharp.PieChartOutline; - public const string Pin = Material.Sharp.Pin; - public const string PinDrop = Material.Sharp.PinDrop; - public const string PinEnd = Material.Sharp.PinEnd; - public const string PinInvoke = Material.Sharp.PinInvoke; - public const string Pinch = Material.Sharp.Pinch; - public const string PivotTableChart = Material.Sharp.PivotTableChart; - public const string Pix = Material.Sharp.Pix; - public const string Place = Material.Sharp.Place; - public const string Plagiarism = Material.Sharp.Plagiarism; - public const string PlayArrow = Material.Sharp.PlayArrow; - public const string PlayCircle = Material.Sharp.PlayCircle; - public const string PlayCircleFilled = Material.Sharp.PlayCircleFilled; - public const string PlayCircleOutline = Material.Sharp.PlayCircleOutline; - public const string PlayDisabled = Material.Sharp.PlayDisabled; - public const string PlayForWork = Material.Sharp.PlayForWork; - public const string PlayLesson = Material.Sharp.PlayLesson; - public const string PlaylistAdd = Material.Sharp.PlaylistAdd; - public const string PlaylistAddCheck = Material.Sharp.PlaylistAddCheck; - public const string PlaylistAddCheckCircle = Material.Sharp.PlaylistAddCheckCircle; - public const string PlaylistAddCircle = Material.Sharp.PlaylistAddCircle; - public const string PlaylistPlay = Material.Sharp.PlaylistPlay; - public const string PlaylistRemove = Material.Sharp.PlaylistRemove; - public const string Plumbing = Material.Sharp.Plumbing; - public const string PlusOne = Material.Sharp.PlusOne; - public const string Podcasts = Material.Sharp.Podcasts; - public const string PointOfSale = Material.Sharp.PointOfSale; - public const string Policy = Material.Sharp.Policy; - public const string Poll = Material.Sharp.Poll; - public const string Polyline = Material.Sharp.Polyline; - public const string Polymer = Material.Sharp.Polymer; - public const string Pool = Material.Sharp.Pool; - public const string PortableWifiOff = Material.Sharp.PortableWifiOff; - public const string Portrait = Material.Sharp.Portrait; - public const string PostAdd = Material.Sharp.PostAdd; - public const string Power = Material.Sharp.Power; - public const string PowerInput = Material.Sharp.PowerInput; - public const string PowerOff = Material.Sharp.PowerOff; - public const string PowerSettingsNew = Material.Sharp.PowerSettingsNew; - public const string PrecisionManufacturing = Material.Sharp.PrecisionManufacturing; - public const string PregnantWoman = Material.Sharp.PregnantWoman; - public const string PresentToAll = Material.Sharp.PresentToAll; - public const string Preview = Material.Sharp.Preview; - public const string PriceChange = Material.Sharp.PriceChange; - public const string PriceCheck = Material.Sharp.PriceCheck; - public const string Print = Material.Sharp.Print; - public const string PrintDisabled = Material.Sharp.PrintDisabled; - public const string PriorityHigh = Material.Sharp.PriorityHigh; - public const string PrivacyTip = Material.Sharp.PrivacyTip; - public const string PrivateConnectivity = Material.Sharp.PrivateConnectivity; - public const string ProductionQuantityLimits = Material.Sharp.ProductionQuantityLimits; - public const string Propane = Material.Sharp.Propane; - public const string PropaneTank = Material.Sharp.PropaneTank; - public const string Psychology = Material.Sharp.Psychology; - public const string PsychologyAlt = Material.Sharp.PsychologyAlt; - public const string Public = Material.Sharp.Public; - public const string PublicOff = Material.Sharp.PublicOff; - public const string Publish = Material.Sharp.Publish; - public const string PublishedWithChanges = Material.Sharp.PublishedWithChanges; - public const string PunchClock = Material.Sharp.PunchClock; - public const string PushPin = Material.Sharp.PushPin; - public const string QrCode = Material.Sharp.QrCode; - public const string QrCode2 = Material.Sharp.QrCode2; - public const string QrCodeScanner = Material.Sharp.QrCodeScanner; - public const string QueryBuilder = Material.Sharp.QueryBuilder; - public const string QueryStats = Material.Sharp.QueryStats; - public const string QuestionAnswer = Material.Sharp.QuestionAnswer; - public const string QuestionMark = Material.Sharp.QuestionMark; - public const string Queue = Material.Sharp.Queue; - public const string QueueMusic = Material.Sharp.QueueMusic; - public const string QueuePlayNext = Material.Sharp.QueuePlayNext; - public const string Quickreply = Material.Sharp.Quickreply; - public const string Quiz = Material.Sharp.Quiz; - public const string RMobiledata = Material.Sharp.RMobiledata; - public const string Radar = Material.Sharp.Radar; - public const string Radio = Material.Sharp.Radio; - public const string RadioButtonChecked = Material.Sharp.RadioButtonChecked; - public const string RadioButtonUnchecked = Material.Sharp.RadioButtonUnchecked; - public const string RailwayAlert = Material.Sharp.RailwayAlert; - public const string RamenDining = Material.Sharp.RamenDining; - public const string RampLeft = Material.Sharp.RampLeft; - public const string RampRight = Material.Sharp.RampRight; - public const string RateReview = Material.Sharp.RateReview; - public const string RawOff = Material.Sharp.RawOff; - public const string RawOn = Material.Sharp.RawOn; - public const string ReadMore = Material.Sharp.ReadMore; - public const string RealEstateAgent = Material.Sharp.RealEstateAgent; - public const string Receipt = Material.Sharp.Receipt; - public const string ReceiptLong = Material.Sharp.ReceiptLong; - public const string RecentActors = Material.Sharp.RecentActors; - public const string Recommend = Material.Sharp.Recommend; - public const string RecordVoiceOver = Material.Sharp.RecordVoiceOver; - public const string Rectangle = Material.Sharp.Rectangle; - public const string Recycling = Material.Sharp.Recycling; - public const string Redeem = Material.Sharp.Redeem; - public const string Redo = Material.Sharp.Redo; - public const string ReduceCapacity = Material.Sharp.ReduceCapacity; - public const string Refresh = Material.Sharp.Refresh; - public const string RememberMe = Material.Sharp.RememberMe; - public const string Remove = Material.Sharp.Remove; - public const string RemoveCircle = Material.Sharp.RemoveCircle; - public const string RemoveCircleOutline = Material.Sharp.RemoveCircleOutline; - public const string RemoveDone = Material.Sharp.RemoveDone; - public const string RemoveFromQueue = Material.Sharp.RemoveFromQueue; - public const string RemoveModerator = Material.Sharp.RemoveModerator; - public const string RemoveRedEye = Material.Sharp.RemoveRedEye; - public const string RemoveRoad = Material.Sharp.RemoveRoad; - public const string RemoveShoppingCart = Material.Sharp.RemoveShoppingCart; - public const string Reorder = Material.Sharp.Reorder; - public const string Repartition = Material.Sharp.Repartition; - public const string Repeat = Material.Sharp.Repeat; - public const string RepeatOn = Material.Sharp.RepeatOn; - public const string RepeatOne = Material.Sharp.RepeatOne; - public const string RepeatOneOn = Material.Sharp.RepeatOneOn; - public const string Replay = Material.Sharp.Replay; - public const string Replay10 = Material.Sharp.Replay10; - public const string Replay30 = Material.Sharp.Replay30; - public const string Replay5 = Material.Sharp.Replay5; - public const string ReplayCircleFilled = Material.Sharp.ReplayCircleFilled; - public const string Reply = Material.Sharp.Reply; - public const string ReplyAll = Material.Sharp.ReplyAll; - public const string Report = Material.Sharp.Report; - public const string ReportGmailerrorred = Material.Sharp.ReportGmailerrorred; - public const string ReportOff = Material.Sharp.ReportOff; - public const string ReportProblem = Material.Sharp.ReportProblem; - public const string RequestPage = Material.Sharp.RequestPage; - public const string RequestQuote = Material.Sharp.RequestQuote; - public const string ResetTv = Material.Sharp.ResetTv; - public const string RestartAlt = Material.Sharp.RestartAlt; - public const string Restaurant = Material.Sharp.Restaurant; - public const string RestaurantMenu = Material.Sharp.RestaurantMenu; - public const string Restore = Material.Sharp.Restore; - public const string RestoreFromTrash = Material.Sharp.RestoreFromTrash; - public const string RestorePage = Material.Sharp.RestorePage; - public const string Reviews = Material.Sharp.Reviews; - public const string RiceBowl = Material.Sharp.RiceBowl; - public const string RingVolume = Material.Sharp.RingVolume; - public const string Rocket = Material.Sharp.Rocket; - public const string RocketLaunch = Material.Sharp.RocketLaunch; - public const string RollerShades = Material.Sharp.RollerShades; - public const string RollerShadesClosed = Material.Sharp.RollerShadesClosed; - public const string RollerSkating = Material.Sharp.RollerSkating; - public const string Roofing = Material.Sharp.Roofing; - public const string Room = Material.Sharp.Room; - public const string RoomPreferences = Material.Sharp.RoomPreferences; - public const string RoomService = Material.Sharp.RoomService; - public const string Rotate90DegreesCcw = Material.Sharp.Rotate90DegreesCcw; - public const string Rotate90DegreesCw = Material.Sharp.Rotate90DegreesCw; - public const string RotateLeft = Material.Sharp.RotateLeft; - public const string RotateRight = Material.Sharp.RotateRight; - public const string RoundaboutLeft = Material.Sharp.RoundaboutLeft; - public const string RoundaboutRight = Material.Sharp.RoundaboutRight; - public const string RoundedCorner = Material.Sharp.RoundedCorner; - public const string Route = Material.Sharp.Route; - public const string Router = Material.Sharp.Router; - public const string Rowing = Material.Sharp.Rowing; - public const string RssFeed = Material.Sharp.RssFeed; - public const string Rsvp = Material.Sharp.Rsvp; - public const string Rtt = Material.Sharp.Rtt; - public const string Rule = Material.Sharp.Rule; - public const string RuleFolder = Material.Sharp.RuleFolder; - public const string RunCircle = Material.Sharp.RunCircle; - public const string RunningWithErrors = Material.Sharp.RunningWithErrors; - public const string RvHookup = Material.Sharp.RvHookup; - public const string SafetyCheck = Material.Sharp.SafetyCheck; - public const string SafetyDivider = Material.Sharp.SafetyDivider; - public const string Sailing = Material.Sharp.Sailing; - public const string Sanitizer = Material.Sharp.Sanitizer; - public const string Satellite = Material.Sharp.Satellite; - public const string SatelliteAlt = Material.Sharp.SatelliteAlt; - public const string Save = Material.Sharp.Save; - public const string SaveAlt = Material.Sharp.SaveAlt; - public const string SaveAs = Material.Sharp.SaveAs; - public const string SavedSearch = Material.Sharp.SavedSearch; - public const string Savings = Material.Sharp.Savings; - public const string Scale = Material.Sharp.Scale; - public const string Scanner = Material.Sharp.Scanner; - public const string ScatterPlot = Material.Sharp.ScatterPlot; - public const string Schedule = Material.Sharp.Schedule; - public const string ScheduleSend = Material.Sharp.ScheduleSend; - public const string Schema = Material.Sharp.Schema; - public const string School = Material.Sharp.School; - public const string Science = Material.Sharp.Science; - public const string Score = Material.Sharp.Score; - public const string Scoreboard = Material.Sharp.Scoreboard; - public const string ScreenLockLandscape = Material.Sharp.ScreenLockLandscape; - public const string ScreenLockPortrait = Material.Sharp.ScreenLockPortrait; - public const string ScreenLockRotation = Material.Sharp.ScreenLockRotation; - public const string ScreenRotation = Material.Sharp.ScreenRotation; - public const string ScreenRotationAlt = Material.Sharp.ScreenRotationAlt; - public const string ScreenSearchDesktop = Material.Sharp.ScreenSearchDesktop; - public const string ScreenShare = Material.Sharp.ScreenShare; - public const string Screenshot = Material.Sharp.Screenshot; - public const string ScreenshotMonitor = Material.Sharp.ScreenshotMonitor; - public const string ScubaDiving = Material.Sharp.ScubaDiving; - public const string Sd = Material.Sharp.Sd; - public const string SdCard = Material.Sharp.SdCard; - public const string SdCardAlert = Material.Sharp.SdCardAlert; - public const string SdStorage = Material.Sharp.SdStorage; - public const string Search = Material.Sharp.Search; - public const string SearchOff = Material.Sharp.SearchOff; - public const string Security = Material.Sharp.Security; - public const string SecurityUpdate = Material.Sharp.SecurityUpdate; - public const string SecurityUpdateGood = Material.Sharp.SecurityUpdateGood; - public const string SecurityUpdateWarning = Material.Sharp.SecurityUpdateWarning; - public const string Segment = Material.Sharp.Segment; - public const string SelectAll = Material.Sharp.SelectAll; - public const string SelfImprovement = Material.Sharp.SelfImprovement; - public const string Sell = Material.Sharp.Sell; - public const string Send = Material.Sharp.Send; - public const string SendAndArchive = Material.Sharp.SendAndArchive; - public const string SendTimeExtension = Material.Sharp.SendTimeExtension; - public const string SendToMobile = Material.Sharp.SendToMobile; - public const string SensorDoor = Material.Sharp.SensorDoor; - public const string SensorOccupied = Material.Sharp.SensorOccupied; - public const string SensorWindow = Material.Sharp.SensorWindow; - public const string Sensors = Material.Sharp.Sensors; - public const string SensorsOff = Material.Sharp.SensorsOff; - public const string SentimentDissatisfied = Material.Sharp.SentimentDissatisfied; - public const string SentimentNeutral = Material.Sharp.SentimentNeutral; - public const string SentimentSatisfied = Material.Sharp.SentimentSatisfied; - public const string SentimentSatisfiedAlt = Material.Sharp.SentimentSatisfiedAlt; - public const string SentimentVeryDissatisfied = Material.Sharp.SentimentVeryDissatisfied; - public const string SentimentVerySatisfied = Material.Sharp.SentimentVerySatisfied; - public const string SetMeal = Material.Sharp.SetMeal; - public const string Settings = Material.Sharp.Settings; - public const string SettingsAccessibility = Material.Sharp.SettingsAccessibility; - public const string SettingsApplications = Material.Sharp.SettingsApplications; - public const string SettingsBackupRestore = Material.Sharp.SettingsBackupRestore; - public const string SettingsBluetooth = Material.Sharp.SettingsBluetooth; - public const string SettingsBrightness = Material.Sharp.SettingsBrightness; - public const string SettingsCell = Material.Sharp.SettingsCell; - public const string SettingsEthernet = Material.Sharp.SettingsEthernet; - public const string SettingsInputAntenna = Material.Sharp.SettingsInputAntenna; - public const string SettingsInputComponent = Material.Sharp.SettingsInputComponent; - public const string SettingsInputComposite = Material.Sharp.SettingsInputComposite; - public const string SettingsInputHdmi = Material.Sharp.SettingsInputHdmi; - public const string SettingsInputSvideo = Material.Sharp.SettingsInputSvideo; - public const string SettingsOverscan = Material.Sharp.SettingsOverscan; - public const string SettingsPhone = Material.Sharp.SettingsPhone; - public const string SettingsPower = Material.Sharp.SettingsPower; - public const string SettingsRemote = Material.Sharp.SettingsRemote; - public const string SettingsSuggest = Material.Sharp.SettingsSuggest; - public const string SettingsSystemDaydream = Material.Sharp.SettingsSystemDaydream; - public const string SettingsVoice = Material.Sharp.SettingsVoice; - public const string SevereCold = Material.Sharp.SevereCold; - public const string ShapeLine = Material.Sharp.ShapeLine; - public const string Share = Material.Sharp.Share; - public const string ShareLocation = Material.Sharp.ShareLocation; - public const string Shield = Material.Sharp.Shield; - public const string ShieldMoon = Material.Sharp.ShieldMoon; - public const string Shop = Material.Sharp.Shop; - public const string Shop2 = Material.Sharp.Shop2; - public const string ShopTwo = Material.Sharp.ShopTwo; - public const string ShoppingBag = Material.Sharp.ShoppingBag; - public const string ShoppingBasket = Material.Sharp.ShoppingBasket; - public const string ShoppingCart = Material.Sharp.ShoppingCart; - public const string ShoppingCartCheckout = Material.Sharp.ShoppingCartCheckout; - public const string ShortText = Material.Sharp.ShortText; - public const string Shortcut = Material.Sharp.Shortcut; - public const string ShowChart = Material.Sharp.ShowChart; - public const string Shower = Material.Sharp.Shower; - public const string Shuffle = Material.Sharp.Shuffle; - public const string ShuffleOn = Material.Sharp.ShuffleOn; - public const string ShutterSpeed = Material.Sharp.ShutterSpeed; - public const string Sick = Material.Sharp.Sick; - public const string SignLanguage = Material.Sharp.SignLanguage; - public const string SignalCellular0Bar = Material.Sharp.SignalCellular0Bar; - public const string SignalCellular4Bar = Material.Sharp.SignalCellular4Bar; - public const string SignalCellularAlt = Material.Sharp.SignalCellularAlt; - public const string SignalCellularAlt1Bar = Material.Sharp.SignalCellularAlt1Bar; - public const string SignalCellularAlt2Bar = Material.Sharp.SignalCellularAlt2Bar; - public const string SignalCellularConnectedNoInternet0Bar = Material.Sharp.SignalCellularConnectedNoInternet0Bar; - public const string SignalCellularConnectedNoInternet4Bar = Material.Sharp.SignalCellularConnectedNoInternet4Bar; - public const string SignalCellularNoSim = Material.Sharp.SignalCellularNoSim; - public const string SignalCellularNodata = Material.Sharp.SignalCellularNodata; - public const string SignalCellularNull = Material.Sharp.SignalCellularNull; - public const string SignalCellularOff = Material.Sharp.SignalCellularOff; - public const string SignalWifi0Bar = Material.Sharp.SignalWifi0Bar; - public const string SignalWifi4Bar = Material.Sharp.SignalWifi4Bar; - public const string SignalWifi4BarLock = Material.Sharp.SignalWifi4BarLock; - public const string SignalWifiBad = Material.Sharp.SignalWifiBad; - public const string SignalWifiConnectedNoInternet4 = Material.Sharp.SignalWifiConnectedNoInternet4; - public const string SignalWifiOff = Material.Sharp.SignalWifiOff; - public const string SignalWifiStatusbar4Bar = Material.Sharp.SignalWifiStatusbar4Bar; - public const string SignalWifiStatusbarConnectedNoInternet4 = Material.Sharp.SignalWifiStatusbarConnectedNoInternet4; - public const string SignalWifiStatusbarNull = Material.Sharp.SignalWifiStatusbarNull; - public const string Signpost = Material.Sharp.Signpost; - public const string SimCard = Material.Sharp.SimCard; - public const string SimCardAlert = Material.Sharp.SimCardAlert; - public const string SimCardDownload = Material.Sharp.SimCardDownload; - public const string SingleBed = Material.Sharp.SingleBed; - public const string Sip = Material.Sharp.Sip; - public const string Skateboarding = Material.Sharp.Skateboarding; - public const string SkipNext = Material.Sharp.SkipNext; - public const string SkipPrevious = Material.Sharp.SkipPrevious; - public const string Sledding = Material.Sharp.Sledding; - public const string Slideshow = Material.Sharp.Slideshow; - public const string SlowMotionVideo = Material.Sharp.SlowMotionVideo; - public const string SmartButton = Material.Sharp.SmartButton; - public const string SmartDisplay = Material.Sharp.SmartDisplay; - public const string SmartScreen = Material.Sharp.SmartScreen; - public const string SmartToy = Material.Sharp.SmartToy; - public const string Smartphone = Material.Sharp.Smartphone; - public const string SmokeFree = Material.Sharp.SmokeFree; - public const string SmokingRooms = Material.Sharp.SmokingRooms; - public const string Sms = Material.Sharp.Sms; - public const string SmsFailed = Material.Sharp.SmsFailed; - public const string SnippetFolder = Material.Sharp.SnippetFolder; - public const string Snooze = Material.Sharp.Snooze; - public const string Snowboarding = Material.Sharp.Snowboarding; - public const string Snowmobile = Material.Sharp.Snowmobile; - public const string Snowshoeing = Material.Sharp.Snowshoeing; - public const string Soap = Material.Sharp.Soap; - public const string SocialDistance = Material.Sharp.SocialDistance; - public const string SolarPower = Material.Sharp.SolarPower; - public const string Sort = Material.Sharp.Sort; - public const string SortByAlpha = Material.Sharp.SortByAlpha; - public const string Sos = Material.Sharp.Sos; - public const string SoupKitchen = Material.Sharp.SoupKitchen; - public const string Source = Material.Sharp.Source; - public const string South = Material.Sharp.South; - public const string SouthAmerica = Material.Sharp.SouthAmerica; - public const string SouthEast = Material.Sharp.SouthEast; - public const string SouthWest = Material.Sharp.SouthWest; - public const string Spa = Material.Sharp.Spa; - public const string SpaceBar = Material.Sharp.SpaceBar; - public const string SpaceDashboard = Material.Sharp.SpaceDashboard; - public const string SpatialAudio = Material.Sharp.SpatialAudio; - public const string SpatialAudioOff = Material.Sharp.SpatialAudioOff; - public const string SpatialTracking = Material.Sharp.SpatialTracking; - public const string Speaker = Material.Sharp.Speaker; - public const string SpeakerGroup = Material.Sharp.SpeakerGroup; - public const string SpeakerNotes = Material.Sharp.SpeakerNotes; - public const string SpeakerNotesOff = Material.Sharp.SpeakerNotesOff; - public const string SpeakerPhone = Material.Sharp.SpeakerPhone; - public const string Speed = Material.Sharp.Speed; - public const string Spellcheck = Material.Sharp.Spellcheck; - public const string Splitscreen = Material.Sharp.Splitscreen; - public const string Spoke = Material.Sharp.Spoke; - public const string Sports = Material.Sharp.Sports; - public const string SportsBar = Material.Sharp.SportsBar; - public const string SportsBaseball = Material.Sharp.SportsBaseball; - public const string SportsBasketball = Material.Sharp.SportsBasketball; - public const string SportsCricket = Material.Sharp.SportsCricket; - public const string SportsEsports = Material.Sharp.SportsEsports; - public const string SportsFootball = Material.Sharp.SportsFootball; - public const string SportsGolf = Material.Sharp.SportsGolf; - public const string SportsGymnastics = Material.Sharp.SportsGymnastics; - public const string SportsHandball = Material.Sharp.SportsHandball; - public const string SportsHockey = Material.Sharp.SportsHockey; - public const string SportsKabaddi = Material.Sharp.SportsKabaddi; - public const string SportsMartialArts = Material.Sharp.SportsMartialArts; - public const string SportsMma = Material.Sharp.SportsMma; - public const string SportsMotorsports = Material.Sharp.SportsMotorsports; - public const string SportsRugby = Material.Sharp.SportsRugby; - public const string SportsScore = Material.Sharp.SportsScore; - public const string SportsSoccer = Material.Sharp.SportsSoccer; - public const string SportsTennis = Material.Sharp.SportsTennis; - public const string SportsVolleyball = Material.Sharp.SportsVolleyball; - public const string Square = Material.Sharp.Square; - public const string SquareFoot = Material.Sharp.SquareFoot; - public const string SsidChart = Material.Sharp.SsidChart; - public const string StackedBarChart = Material.Sharp.StackedBarChart; - public const string StackedLineChart = Material.Sharp.StackedLineChart; - public const string Stadium = Material.Sharp.Stadium; - public const string Stairs = Material.Sharp.Stairs; - public const string Star = Material.Sharp.Star; - public const string StarBorder = Material.Sharp.StarBorder; - public const string StarBorderPurple500 = Material.Sharp.StarBorderPurple500; - public const string StarHalf = Material.Sharp.StarHalf; - public const string StarOutline = Material.Sharp.StarOutline; - public const string StarPurple500 = Material.Sharp.StarPurple500; - public const string StarRate = Material.Sharp.StarRate; - public const string Stars = Material.Sharp.Stars; - public const string Start = Material.Sharp.Start; - public const string StayCurrentLandscape = Material.Sharp.StayCurrentLandscape; - public const string StayCurrentPortrait = Material.Sharp.StayCurrentPortrait; - public const string StayPrimaryLandscape = Material.Sharp.StayPrimaryLandscape; - public const string StayPrimaryPortrait = Material.Sharp.StayPrimaryPortrait; - public const string StickyNote2 = Material.Sharp.StickyNote2; - public const string Stop = Material.Sharp.Stop; - public const string StopCircle = Material.Sharp.StopCircle; - public const string StopScreenShare = Material.Sharp.StopScreenShare; - public const string Storage = Material.Sharp.Storage; - public const string Store = Material.Sharp.Store; - public const string StoreMallDirectory = Material.Sharp.StoreMallDirectory; - public const string Storefront = Material.Sharp.Storefront; - public const string Storm = Material.Sharp.Storm; - public const string Straight = Material.Sharp.Straight; - public const string Straighten = Material.Sharp.Straighten; - public const string Stream = Material.Sharp.Stream; - public const string Streetview = Material.Sharp.Streetview; - public const string StrikethroughS = Material.Sharp.StrikethroughS; - public const string Stroller = Material.Sharp.Stroller; - public const string Style = Material.Sharp.Style; - public const string SubdirectoryArrowLeft = Material.Sharp.SubdirectoryArrowLeft; - public const string SubdirectoryArrowRight = Material.Sharp.SubdirectoryArrowRight; - public const string Subject = Material.Sharp.Subject; - public const string Subscript = Material.Sharp.Subscript; - public const string Subscriptions = Material.Sharp.Subscriptions; - public const string Subtitles = Material.Sharp.Subtitles; - public const string SubtitlesOff = Material.Sharp.SubtitlesOff; - public const string Subway = Material.Sharp.Subway; - public const string Summarize = Material.Sharp.Summarize; - public const string Superscript = Material.Sharp.Superscript; - public const string SupervisedUserCircle = Material.Sharp.SupervisedUserCircle; - public const string SupervisorAccount = Material.Sharp.SupervisorAccount; - public const string Support = Material.Sharp.Support; - public const string SupportAgent = Material.Sharp.SupportAgent; - public const string Surfing = Material.Sharp.Surfing; - public const string SurroundSound = Material.Sharp.SurroundSound; - public const string SwapCalls = Material.Sharp.SwapCalls; - public const string SwapHoriz = Material.Sharp.SwapHoriz; - public const string SwapHorizontalCircle = Material.Sharp.SwapHorizontalCircle; - public const string SwapVert = Material.Sharp.SwapVert; - public const string SwapVerticalCircle = Material.Sharp.SwapVerticalCircle; - public const string Swipe = Material.Sharp.Swipe; - public const string SwipeDown = Material.Sharp.SwipeDown; - public const string SwipeDownAlt = Material.Sharp.SwipeDownAlt; - public const string SwipeLeft = Material.Sharp.SwipeLeft; - public const string SwipeLeftAlt = Material.Sharp.SwipeLeftAlt; - public const string SwipeRight = Material.Sharp.SwipeRight; - public const string SwipeRightAlt = Material.Sharp.SwipeRightAlt; - public const string SwipeUp = Material.Sharp.SwipeUp; - public const string SwipeUpAlt = Material.Sharp.SwipeUpAlt; - public const string SwipeVertical = Material.Sharp.SwipeVertical; - public const string SwitchAccessShortcut = Material.Sharp.SwitchAccessShortcut; - public const string SwitchAccessShortcutAdd = Material.Sharp.SwitchAccessShortcutAdd; - public const string SwitchAccount = Material.Sharp.SwitchAccount; - public const string SwitchCamera = Material.Sharp.SwitchCamera; - public const string SwitchLeft = Material.Sharp.SwitchLeft; - public const string SwitchRight = Material.Sharp.SwitchRight; - public const string SwitchVideo = Material.Sharp.SwitchVideo; - public const string Synagogue = Material.Sharp.Synagogue; - public const string Sync = Material.Sharp.Sync; - public const string SyncAlt = Material.Sharp.SyncAlt; - public const string SyncDisabled = Material.Sharp.SyncDisabled; - public const string SyncLock = Material.Sharp.SyncLock; - public const string SyncProblem = Material.Sharp.SyncProblem; - public const string SystemSecurityUpdate = Material.Sharp.SystemSecurityUpdate; - public const string SystemSecurityUpdateGood = Material.Sharp.SystemSecurityUpdateGood; - public const string SystemSecurityUpdateWarning = Material.Sharp.SystemSecurityUpdateWarning; - public const string SystemUpdate = Material.Sharp.SystemUpdate; - public const string SystemUpdateAlt = Material.Sharp.SystemUpdateAlt; - public const string Tab = Material.Sharp.Tab; - public const string TabUnselected = Material.Sharp.TabUnselected; - public const string TableBar = Material.Sharp.TableBar; - public const string TableChart = Material.Sharp.TableChart; - public const string TableRestaurant = Material.Sharp.TableRestaurant; - public const string TableRows = Material.Sharp.TableRows; - public const string TableView = Material.Sharp.TableView; - public const string Tablet = Material.Sharp.Tablet; - public const string TabletAndroid = Material.Sharp.TabletAndroid; - public const string TabletMac = Material.Sharp.TabletMac; - public const string Tag = Material.Sharp.Tag; - public const string TagFaces = Material.Sharp.TagFaces; - public const string TakeoutDining = Material.Sharp.TakeoutDining; - public const string TapAndPlay = Material.Sharp.TapAndPlay; - public const string Tapas = Material.Sharp.Tapas; - public const string Task = Material.Sharp.Task; - public const string TaskAlt = Material.Sharp.TaskAlt; - public const string TaxiAlert = Material.Sharp.TaxiAlert; - public const string TempleBuddhist = Material.Sharp.TempleBuddhist; - public const string TempleHindu = Material.Sharp.TempleHindu; - public const string Terminal = Material.Sharp.Terminal; - public const string Terrain = Material.Sharp.Terrain; - public const string TextDecrease = Material.Sharp.TextDecrease; - public const string TextFields = Material.Sharp.TextFields; - public const string TextFormat = Material.Sharp.TextFormat; - public const string TextIncrease = Material.Sharp.TextIncrease; - public const string TextRotateUp = Material.Sharp.TextRotateUp; - public const string TextRotateVertical = Material.Sharp.TextRotateVertical; - public const string TextRotationAngledown = Material.Sharp.TextRotationAngledown; - public const string TextRotationAngleup = Material.Sharp.TextRotationAngleup; - public const string TextRotationDown = Material.Sharp.TextRotationDown; - public const string TextRotationNone = Material.Sharp.TextRotationNone; - public const string TextSnippet = Material.Sharp.TextSnippet; - public const string Textsms = Material.Sharp.Textsms; - public const string Texture = Material.Sharp.Texture; - public const string TheaterComedy = Material.Sharp.TheaterComedy; - public const string Theaters = Material.Sharp.Theaters; - public const string Thermostat = Material.Sharp.Thermostat; - public const string ThermostatAuto = Material.Sharp.ThermostatAuto; - public const string ThumbDown = Material.Sharp.ThumbDown; - public const string ThumbDownAlt = Material.Sharp.ThumbDownAlt; - public const string ThumbDownOffAlt = Material.Sharp.ThumbDownOffAlt; - public const string ThumbUp = Material.Sharp.ThumbUp; - public const string ThumbUpAlt = Material.Sharp.ThumbUpAlt; - public const string ThumbUpOffAlt = Material.Sharp.ThumbUpOffAlt; - public const string ThumbsUpDown = Material.Sharp.ThumbsUpDown; - public const string Thunderstorm = Material.Sharp.Thunderstorm; - public const string TimeToLeave = Material.Sharp.TimeToLeave; - public const string Timelapse = Material.Sharp.Timelapse; - public const string Timeline = Material.Sharp.Timeline; - public const string Timer = Material.Sharp.Timer; - public const string Timer10 = Material.Sharp.Timer10; - public const string Timer10Select = Material.Sharp.Timer10Select; - public const string Timer3 = Material.Sharp.Timer3; - public const string Timer3Select = Material.Sharp.Timer3Select; - public const string TimerOff = Material.Sharp.TimerOff; - public const string TipsAndUpdates = Material.Sharp.TipsAndUpdates; - public const string TireRepair = Material.Sharp.TireRepair; - public const string Title = Material.Sharp.Title; - public const string Toc = Material.Sharp.Toc; - public const string Today = Material.Sharp.Today; - public const string ToggleOff = Material.Sharp.ToggleOff; - public const string ToggleOn = Material.Sharp.ToggleOn; - public const string Token = Material.Sharp.Token; - public const string Toll = Material.Sharp.Toll; - public const string Tonality = Material.Sharp.Tonality; - public const string Topic = Material.Sharp.Topic; - public const string Tornado = Material.Sharp.Tornado; - public const string TouchApp = Material.Sharp.TouchApp; - public const string Tour = Material.Sharp.Tour; - public const string Toys = Material.Sharp.Toys; - public const string TrackChanges = Material.Sharp.TrackChanges; - public const string Traffic = Material.Sharp.Traffic; - public const string Train = Material.Sharp.Train; - public const string Tram = Material.Sharp.Tram; - public const string Transcribe = Material.Sharp.Transcribe; - public const string TransferWithinAStation = Material.Sharp.TransferWithinAStation; - public const string Transform = Material.Sharp.Transform; - public const string Transgender = Material.Sharp.Transgender; - public const string TransitEnterexit = Material.Sharp.TransitEnterexit; - public const string Translate = Material.Sharp.Translate; - public const string TravelExplore = Material.Sharp.TravelExplore; - public const string TrendingDown = Material.Sharp.TrendingDown; - public const string TrendingFlat = Material.Sharp.TrendingFlat; - public const string TrendingUp = Material.Sharp.TrendingUp; - public const string TripOrigin = Material.Sharp.TripOrigin; - public const string Troubleshoot = Material.Sharp.Troubleshoot; - public const string Try = Material.Sharp.Try; - public const string Tsunami = Material.Sharp.Tsunami; - public const string Tty = Material.Sharp.Tty; - public const string Tune = Material.Sharp.Tune; - public const string Tungsten = Material.Sharp.Tungsten; - public const string TurnLeft = Material.Sharp.TurnLeft; - public const string TurnRight = Material.Sharp.TurnRight; - public const string TurnSharpLeft = Material.Sharp.TurnSharpLeft; - public const string TurnSharpRight = Material.Sharp.TurnSharpRight; - public const string TurnSlightLeft = Material.Sharp.TurnSlightLeft; - public const string TurnSlightRight = Material.Sharp.TurnSlightRight; - public const string TurnedIn = Material.Sharp.TurnedIn; - public const string TurnedInNot = Material.Sharp.TurnedInNot; - public const string Tv = Material.Sharp.Tv; - public const string TvOff = Material.Sharp.TvOff; - public const string TwoWheeler = Material.Sharp.TwoWheeler; - public const string TypeSpecimen = Material.Sharp.TypeSpecimen; - public const string UTurnLeft = Material.Sharp.UTurnLeft; - public const string UTurnRight = Material.Sharp.UTurnRight; - public const string Umbrella = Material.Sharp.Umbrella; - public const string Unarchive = Material.Sharp.Unarchive; - public const string Undo = Material.Sharp.Undo; - public const string UnfoldLess = Material.Sharp.UnfoldLess; - public const string UnfoldLessDouble = Material.Sharp.UnfoldLessDouble; - public const string UnfoldMore = Material.Sharp.UnfoldMore; - public const string UnfoldMoreDouble = Material.Sharp.UnfoldMoreDouble; - public const string Unpublished = Material.Sharp.Unpublished; - public const string Unsubscribe = Material.Sharp.Unsubscribe; - public const string Upcoming = Material.Sharp.Upcoming; - public const string Update = Material.Sharp.Update; - public const string UpdateDisabled = Material.Sharp.UpdateDisabled; - public const string Upgrade = Material.Sharp.Upgrade; - public const string Upload = Material.Sharp.Upload; - public const string UploadFile = Material.Sharp.UploadFile; - public const string Usb = Material.Sharp.Usb; - public const string UsbOff = Material.Sharp.UsbOff; - public const string Vaccines = Material.Sharp.Vaccines; - public const string VapeFree = Material.Sharp.VapeFree; - public const string VapingRooms = Material.Sharp.VapingRooms; - public const string Verified = Material.Sharp.Verified; - public const string VerifiedUser = Material.Sharp.VerifiedUser; - public const string VerticalAlignBottom = Material.Sharp.VerticalAlignBottom; - public const string VerticalAlignCenter = Material.Sharp.VerticalAlignCenter; - public const string VerticalAlignTop = Material.Sharp.VerticalAlignTop; - public const string VerticalDistribute = Material.Sharp.VerticalDistribute; - public const string VerticalShades = Material.Sharp.VerticalShades; - public const string VerticalShadesClosed = Material.Sharp.VerticalShadesClosed; - public const string VerticalSplit = Material.Sharp.VerticalSplit; - public const string Vibration = Material.Sharp.Vibration; - public const string VideoCall = Material.Sharp.VideoCall; - public const string VideoCameraBack = Material.Sharp.VideoCameraBack; - public const string VideoCameraFront = Material.Sharp.VideoCameraFront; - public const string VideoChat = Material.Sharp.VideoChat; - public const string VideoFile = Material.Sharp.VideoFile; - public const string VideoLabel = Material.Sharp.VideoLabel; - public const string VideoLibrary = Material.Sharp.VideoLibrary; - public const string VideoSettings = Material.Sharp.VideoSettings; - public const string VideoStable = Material.Sharp.VideoStable; - public const string Videocam = Material.Sharp.Videocam; - public const string VideocamOff = Material.Sharp.VideocamOff; - public const string VideogameAsset = Material.Sharp.VideogameAsset; - public const string VideogameAssetOff = Material.Sharp.VideogameAssetOff; - public const string ViewAgenda = Material.Sharp.ViewAgenda; - public const string ViewArray = Material.Sharp.ViewArray; - public const string ViewCarousel = Material.Sharp.ViewCarousel; - public const string ViewColumn = Material.Sharp.ViewColumn; - public const string ViewComfy = Material.Sharp.ViewComfy; - public const string ViewComfyAlt = Material.Sharp.ViewComfyAlt; - public const string ViewCompact = Material.Sharp.ViewCompact; - public const string ViewCompactAlt = Material.Sharp.ViewCompactAlt; - public const string ViewCozy = Material.Sharp.ViewCozy; - public const string ViewDay = Material.Sharp.ViewDay; - public const string ViewHeadline = Material.Sharp.ViewHeadline; - public const string ViewInAr = Material.Sharp.ViewInAr; - public const string ViewKanban = Material.Sharp.ViewKanban; - public const string ViewList = Material.Sharp.ViewList; - public const string ViewModule = Material.Sharp.ViewModule; - public const string ViewQuilt = Material.Sharp.ViewQuilt; - public const string ViewSidebar = Material.Sharp.ViewSidebar; - public const string ViewStream = Material.Sharp.ViewStream; - public const string ViewTimeline = Material.Sharp.ViewTimeline; - public const string ViewWeek = Material.Sharp.ViewWeek; - public const string Vignette = Material.Sharp.Vignette; - public const string Villa = Material.Sharp.Villa; - public const string Visibility = Material.Sharp.Visibility; - public const string VisibilityOff = Material.Sharp.VisibilityOff; - public const string VoiceChat = Material.Sharp.VoiceChat; - public const string VoiceOverOff = Material.Sharp.VoiceOverOff; - public const string Voicemail = Material.Sharp.Voicemail; - public const string Volcano = Material.Sharp.Volcano; - public const string VolumeDown = Material.Sharp.VolumeDown; - public const string VolumeMute = Material.Sharp.VolumeMute; - public const string VolumeOff = Material.Sharp.VolumeOff; - public const string VolumeUp = Material.Sharp.VolumeUp; - public const string VolunteerActivism = Material.Sharp.VolunteerActivism; - public const string VpnKey = Material.Sharp.VpnKey; - public const string VpnKeyOff = Material.Sharp.VpnKeyOff; - public const string VpnLock = Material.Sharp.VpnLock; - public const string Vrpano = Material.Sharp.Vrpano; - public const string Wallet = Material.Sharp.Wallet; - public const string Wallpaper = Material.Sharp.Wallpaper; - public const string Warehouse = Material.Sharp.Warehouse; - public const string Warning = Material.Sharp.Warning; - public const string WarningAmber = Material.Sharp.WarningAmber; - public const string Wash = Material.Sharp.Wash; - public const string Watch = Material.Sharp.Watch; - public const string WatchLater = Material.Sharp.WatchLater; - public const string WatchOff = Material.Sharp.WatchOff; - public const string Water = Material.Sharp.Water; - public const string WaterDamage = Material.Sharp.WaterDamage; - public const string WaterDrop = Material.Sharp.WaterDrop; - public const string WaterfallChart = Material.Sharp.WaterfallChart; - public const string Waves = Material.Sharp.Waves; - public const string WavingHand = Material.Sharp.WavingHand; - public const string WbAuto = Material.Sharp.WbAuto; - public const string WbCloudy = Material.Sharp.WbCloudy; - public const string WbIncandescent = Material.Sharp.WbIncandescent; - public const string WbIridescent = Material.Sharp.WbIridescent; - public const string WbShade = Material.Sharp.WbShade; - public const string WbSunny = Material.Sharp.WbSunny; - public const string WbTwilight = Material.Sharp.WbTwilight; - public const string Wc = Material.Sharp.Wc; - public const string Web = Material.Sharp.Web; - public const string WebAsset = Material.Sharp.WebAsset; - public const string WebAssetOff = Material.Sharp.WebAssetOff; - public const string WebStories = Material.Sharp.WebStories; - public const string Webhook = Material.Sharp.Webhook; - public const string Weekend = Material.Sharp.Weekend; - public const string West = Material.Sharp.West; - public const string Whatshot = Material.Sharp.Whatshot; - public const string WheelchairPickup = Material.Sharp.WheelchairPickup; - public const string WhereToVote = Material.Sharp.WhereToVote; - public const string Widgets = Material.Sharp.Widgets; - public const string WidthFull = Material.Sharp.WidthFull; - public const string WidthNormal = Material.Sharp.WidthNormal; - public const string WidthWide = Material.Sharp.WidthWide; - public const string Wifi = Material.Sharp.Wifi; - public const string Wifi1Bar = Material.Sharp.Wifi1Bar; - public const string Wifi2Bar = Material.Sharp.Wifi2Bar; - public const string WifiCalling = Material.Sharp.WifiCalling; - public const string WifiCalling3 = Material.Sharp.WifiCalling3; - public const string WifiChannel = Material.Sharp.WifiChannel; - public const string WifiFind = Material.Sharp.WifiFind; - public const string WifiLock = Material.Sharp.WifiLock; - public const string WifiOff = Material.Sharp.WifiOff; - public const string WifiPassword = Material.Sharp.WifiPassword; - public const string WifiProtectedSetup = Material.Sharp.WifiProtectedSetup; - public const string WifiTethering = Material.Sharp.WifiTethering; - public const string WifiTetheringError = Material.Sharp.WifiTetheringError; - public const string WifiTetheringOff = Material.Sharp.WifiTetheringOff; - public const string WindPower = Material.Sharp.WindPower; - public const string Window = Material.Sharp.Window; - public const string WineBar = Material.Sharp.WineBar; - public const string Woman = Material.Sharp.Woman; - public const string Woman2 = Material.Sharp.Woman2; - public const string Work = Material.Sharp.Work; - public const string WorkHistory = Material.Sharp.WorkHistory; - public const string WorkOff = Material.Sharp.WorkOff; - public const string WorkOutline = Material.Sharp.WorkOutline; - public const string WorkspacePremium = Material.Sharp.WorkspacePremium; - public const string Workspaces = Material.Sharp.Workspaces; - public const string WrapText = Material.Sharp.WrapText; - public const string WrongLocation = Material.Sharp.WrongLocation; - public const string Wysiwyg = Material.Sharp.Wysiwyg; - public const string Yard = Material.Sharp.Yard; - public const string YoutubeSearchedFor = Material.Sharp.YoutubeSearchedFor; - public const string ZoomIn = Material.Sharp.ZoomIn; - public const string ZoomInMap = Material.Sharp.ZoomInMap; - public const string ZoomOut = Material.Sharp.ZoomOut; - public const string ZoomOutMap = Material.Sharp.ZoomOutMap; - } - } -} diff --git a/src/MudBlazor/Icons/Obsolete/TwoTone.cs b/src/MudBlazor/Icons/Obsolete/TwoTone.cs deleted file mode 100644 index d5739576e9e6..000000000000 --- a/src/MudBlazor/Icons/Obsolete/TwoTone.cs +++ /dev/null @@ -1,2139 +0,0 @@ -/* - * This file was auto-generated by Update-MudIcons.ps1 - * 2022/12/28_09:54:19 - */ - -using System.Diagnostics.CodeAnalysis; - -namespace MudBlazor -{ - public partial class Icons - { - [ExcludeFromCodeCoverage] - public partial class TwoTone - { - public const string _10k = Material.TwoTone._10k; - public const string _10mp = Material.TwoTone._10mp; - public const string _11mp = Material.TwoTone._11mp; - public const string _123 = Material.TwoTone._123; - public const string _12mp = Material.TwoTone._12mp; - public const string _13mp = Material.TwoTone._13mp; - public const string _14mp = Material.TwoTone._14mp; - public const string _15mp = Material.TwoTone._15mp; - public const string _16mp = Material.TwoTone._16mp; - public const string _17mp = Material.TwoTone._17mp; - public const string _18UpRating = Material.TwoTone._18UpRating; - public const string _18mp = Material.TwoTone._18mp; - public const string _19mp = Material.TwoTone._19mp; - public const string _1k = Material.TwoTone._1k; - public const string _1kPlus = Material.TwoTone._1kPlus; - public const string _1xMobiledata = Material.TwoTone._1xMobiledata; - public const string _20mp = Material.TwoTone._20mp; - public const string _21mp = Material.TwoTone._21mp; - public const string _22mp = Material.TwoTone._22mp; - public const string _23mp = Material.TwoTone._23mp; - public const string _24mp = Material.TwoTone._24mp; - public const string _2k = Material.TwoTone._2k; - public const string _2kPlus = Material.TwoTone._2kPlus; - public const string _2mp = Material.TwoTone._2mp; - public const string _30fps = Material.TwoTone._30fps; - public const string _30fpsSelect = Material.TwoTone._30fpsSelect; - public const string _360 = Material.TwoTone._360; - public const string _3dRotation = Material.TwoTone._3dRotation; - public const string _3gMobiledata = Material.TwoTone._3gMobiledata; - public const string _3k = Material.TwoTone._3k; - public const string _3kPlus = Material.TwoTone._3kPlus; - public const string _3mp = Material.TwoTone._3mp; - public const string _3p = Material.TwoTone._3p; - public const string _4gMobiledata = Material.TwoTone._4gMobiledata; - public const string _4gPlusMobiledata = Material.TwoTone._4gPlusMobiledata; - public const string _4k = Material.TwoTone._4k; - public const string _4kPlus = Material.TwoTone._4kPlus; - public const string _4mp = Material.TwoTone._4mp; - public const string _5g = Material.TwoTone._5g; - public const string _5k = Material.TwoTone._5k; - public const string _5kPlus = Material.TwoTone._5kPlus; - public const string _5mp = Material.TwoTone._5mp; - public const string _60fps = Material.TwoTone._60fps; - public const string _60fpsSelect = Material.TwoTone._60fpsSelect; - public const string _6FtApart = Material.TwoTone._6FtApart; - public const string _6k = Material.TwoTone._6k; - public const string _6kPlus = Material.TwoTone._6kPlus; - public const string _6mp = Material.TwoTone._6mp; - public const string _7k = Material.TwoTone._7k; - public const string _7kPlus = Material.TwoTone._7kPlus; - public const string _7mp = Material.TwoTone._7mp; - public const string _8k = Material.TwoTone._8k; - public const string _8kPlus = Material.TwoTone._8kPlus; - public const string _8mp = Material.TwoTone._8mp; - public const string _9k = Material.TwoTone._9k; - public const string _9kPlus = Material.TwoTone._9kPlus; - public const string _9mp = Material.TwoTone._9mp; - public const string Abc = Material.TwoTone.Abc; - public const string AcUnit = Material.TwoTone.AcUnit; - public const string AccessAlarm = Material.TwoTone.AccessAlarm; - public const string AccessAlarms = Material.TwoTone.AccessAlarms; - public const string AccessTime = Material.TwoTone.AccessTime; - public const string AccessTimeFilled = Material.TwoTone.AccessTimeFilled; - public const string Accessibility = Material.TwoTone.Accessibility; - public const string AccessibilityNew = Material.TwoTone.AccessibilityNew; - public const string Accessible = Material.TwoTone.Accessible; - public const string AccessibleForward = Material.TwoTone.AccessibleForward; - public const string AccountBalance = Material.TwoTone.AccountBalance; - public const string AccountBalanceWallet = Material.TwoTone.AccountBalanceWallet; - public const string AccountBox = Material.TwoTone.AccountBox; - public const string AccountCircle = Material.TwoTone.AccountCircle; - public const string AccountTree = Material.TwoTone.AccountTree; - public const string AdUnits = Material.TwoTone.AdUnits; - public const string Adb = Material.TwoTone.Adb; - public const string Add = Material.TwoTone.Add; - public const string AddAPhoto = Material.TwoTone.AddAPhoto; - public const string AddAlarm = Material.TwoTone.AddAlarm; - public const string AddAlert = Material.TwoTone.AddAlert; - public const string AddBox = Material.TwoTone.AddBox; - public const string AddBusiness = Material.TwoTone.AddBusiness; - public const string AddCard = Material.TwoTone.AddCard; - public const string AddChart = Material.TwoTone.AddChart; - public const string AddCircle = Material.TwoTone.AddCircle; - public const string AddCircleOutline = Material.TwoTone.AddCircleOutline; - public const string AddComment = Material.TwoTone.AddComment; - public const string AddHome = Material.TwoTone.AddHome; - public const string AddHomeWork = Material.TwoTone.AddHomeWork; - public const string AddIcCall = Material.TwoTone.AddIcCall; - public const string AddLink = Material.TwoTone.AddLink; - public const string AddLocation = Material.TwoTone.AddLocation; - public const string AddLocationAlt = Material.TwoTone.AddLocationAlt; - public const string AddModerator = Material.TwoTone.AddModerator; - public const string AddPhotoAlternate = Material.TwoTone.AddPhotoAlternate; - public const string AddReaction = Material.TwoTone.AddReaction; - public const string AddRoad = Material.TwoTone.AddRoad; - public const string AddShoppingCart = Material.TwoTone.AddShoppingCart; - public const string AddTask = Material.TwoTone.AddTask; - public const string AddToDrive = Material.TwoTone.AddToDrive; - public const string AddToHomeScreen = Material.TwoTone.AddToHomeScreen; - public const string AddToPhotos = Material.TwoTone.AddToPhotos; - public const string AddToQueue = Material.TwoTone.AddToQueue; - public const string Addchart = Material.TwoTone.Addchart; - public const string AdfScanner = Material.TwoTone.AdfScanner; - public const string Adjust = Material.TwoTone.Adjust; - public const string AdminPanelSettings = Material.TwoTone.AdminPanelSettings; - public const string AdsClick = Material.TwoTone.AdsClick; - public const string Agriculture = Material.TwoTone.Agriculture; - public const string Air = Material.TwoTone.Air; - public const string AirlineSeatFlat = Material.TwoTone.AirlineSeatFlat; - public const string AirlineSeatFlatAngled = Material.TwoTone.AirlineSeatFlatAngled; - public const string AirlineSeatIndividualSuite = Material.TwoTone.AirlineSeatIndividualSuite; - public const string AirlineSeatLegroomExtra = Material.TwoTone.AirlineSeatLegroomExtra; - public const string AirlineSeatLegroomNormal = Material.TwoTone.AirlineSeatLegroomNormal; - public const string AirlineSeatLegroomReduced = Material.TwoTone.AirlineSeatLegroomReduced; - public const string AirlineSeatReclineExtra = Material.TwoTone.AirlineSeatReclineExtra; - public const string AirlineSeatReclineNormal = Material.TwoTone.AirlineSeatReclineNormal; - public const string AirlineStops = Material.TwoTone.AirlineStops; - public const string Airlines = Material.TwoTone.Airlines; - public const string AirplaneTicket = Material.TwoTone.AirplaneTicket; - public const string AirplanemodeActive = Material.TwoTone.AirplanemodeActive; - public const string AirplanemodeInactive = Material.TwoTone.AirplanemodeInactive; - public const string Airplay = Material.TwoTone.Airplay; - public const string AirportShuttle = Material.TwoTone.AirportShuttle; - public const string Alarm = Material.TwoTone.Alarm; - public const string AlarmAdd = Material.TwoTone.AlarmAdd; - public const string AlarmOff = Material.TwoTone.AlarmOff; - public const string AlarmOn = Material.TwoTone.AlarmOn; - public const string Album = Material.TwoTone.Album; - public const string AlignHorizontalCenter = Material.TwoTone.AlignHorizontalCenter; - public const string AlignHorizontalLeft = Material.TwoTone.AlignHorizontalLeft; - public const string AlignHorizontalRight = Material.TwoTone.AlignHorizontalRight; - public const string AlignVerticalBottom = Material.TwoTone.AlignVerticalBottom; - public const string AlignVerticalCenter = Material.TwoTone.AlignVerticalCenter; - public const string AlignVerticalTop = Material.TwoTone.AlignVerticalTop; - public const string AllInbox = Material.TwoTone.AllInbox; - public const string AllInclusive = Material.TwoTone.AllInclusive; - public const string AllOut = Material.TwoTone.AllOut; - public const string AltRoute = Material.TwoTone.AltRoute; - public const string AlternateEmail = Material.TwoTone.AlternateEmail; - public const string Analytics = Material.TwoTone.Analytics; - public const string Anchor = Material.TwoTone.Anchor; - public const string Android = Material.TwoTone.Android; - public const string Animation = Material.TwoTone.Animation; - public const string Announcement = Material.TwoTone.Announcement; - public const string Aod = Material.TwoTone.Aod; - public const string Apartment = Material.TwoTone.Apartment; - public const string Api = Material.TwoTone.Api; - public const string AppBlocking = Material.TwoTone.AppBlocking; - public const string AppRegistration = Material.TwoTone.AppRegistration; - public const string AppSettingsAlt = Material.TwoTone.AppSettingsAlt; - public const string AppShortcut = Material.TwoTone.AppShortcut; - public const string Approval = Material.TwoTone.Approval; - public const string Apps = Material.TwoTone.Apps; - public const string AppsOutage = Material.TwoTone.AppsOutage; - public const string Architecture = Material.TwoTone.Architecture; - public const string Archive = Material.TwoTone.Archive; - public const string AreaChart = Material.TwoTone.AreaChart; - public const string ArrowBack = Material.TwoTone.ArrowBack; - public const string ArrowBackIos = Material.TwoTone.ArrowBackIos; - public const string ArrowBackIosNew = Material.TwoTone.ArrowBackIosNew; - public const string ArrowCircleDown = Material.TwoTone.ArrowCircleDown; - public const string ArrowCircleLeft = Material.TwoTone.ArrowCircleLeft; - public const string ArrowCircleRight = Material.TwoTone.ArrowCircleRight; - public const string ArrowCircleUp = Material.TwoTone.ArrowCircleUp; - public const string ArrowDownward = Material.TwoTone.ArrowDownward; - public const string ArrowDropDown = Material.TwoTone.ArrowDropDown; - public const string ArrowDropDownCircle = Material.TwoTone.ArrowDropDownCircle; - public const string ArrowDropUp = Material.TwoTone.ArrowDropUp; - public const string ArrowForward = Material.TwoTone.ArrowForward; - public const string ArrowForwardIos = Material.TwoTone.ArrowForwardIos; - public const string ArrowLeft = Material.TwoTone.ArrowLeft; - public const string ArrowOutward = Material.TwoTone.ArrowOutward; - public const string ArrowRight = Material.TwoTone.ArrowRight; - public const string ArrowRightAlt = Material.TwoTone.ArrowRightAlt; - public const string ArrowUpward = Material.TwoTone.ArrowUpward; - public const string ArtTrack = Material.TwoTone.ArtTrack; - public const string Article = Material.TwoTone.Article; - public const string AspectRatio = Material.TwoTone.AspectRatio; - public const string Assessment = Material.TwoTone.Assessment; - public const string Assignment = Material.TwoTone.Assignment; - public const string AssignmentInd = Material.TwoTone.AssignmentInd; - public const string AssignmentLate = Material.TwoTone.AssignmentLate; - public const string AssignmentReturn = Material.TwoTone.AssignmentReturn; - public const string AssignmentReturned = Material.TwoTone.AssignmentReturned; - public const string AssignmentTurnedIn = Material.TwoTone.AssignmentTurnedIn; - public const string AssistWalker = Material.TwoTone.AssistWalker; - public const string Assistant = Material.TwoTone.Assistant; - public const string AssistantDirection = Material.TwoTone.AssistantDirection; - public const string AssistantPhoto = Material.TwoTone.AssistantPhoto; - public const string AssuredWorkload = Material.TwoTone.AssuredWorkload; - public const string Atm = Material.TwoTone.Atm; - public const string AttachEmail = Material.TwoTone.AttachEmail; - public const string AttachFile = Material.TwoTone.AttachFile; - public const string AttachMoney = Material.TwoTone.AttachMoney; - public const string Attachment = Material.TwoTone.Attachment; - public const string Attractions = Material.TwoTone.Attractions; - public const string Attribution = Material.TwoTone.Attribution; - public const string AudioFile = Material.TwoTone.AudioFile; - public const string Audiotrack = Material.TwoTone.Audiotrack; - public const string AutoAwesome = Material.TwoTone.AutoAwesome; - public const string AutoAwesomeMosaic = Material.TwoTone.AutoAwesomeMosaic; - public const string AutoAwesomeMotion = Material.TwoTone.AutoAwesomeMotion; - public const string AutoDelete = Material.TwoTone.AutoDelete; - public const string AutoFixHigh = Material.TwoTone.AutoFixHigh; - public const string AutoFixNormal = Material.TwoTone.AutoFixNormal; - public const string AutoFixOff = Material.TwoTone.AutoFixOff; - public const string AutoGraph = Material.TwoTone.AutoGraph; - public const string AutoMode = Material.TwoTone.AutoMode; - public const string AutoStories = Material.TwoTone.AutoStories; - public const string AutofpsSelect = Material.TwoTone.AutofpsSelect; - public const string Autorenew = Material.TwoTone.Autorenew; - public const string AvTimer = Material.TwoTone.AvTimer; - public const string BabyChangingStation = Material.TwoTone.BabyChangingStation; - public const string BackHand = Material.TwoTone.BackHand; - public const string Backpack = Material.TwoTone.Backpack; - public const string Backspace = Material.TwoTone.Backspace; - public const string Backup = Material.TwoTone.Backup; - public const string BackupTable = Material.TwoTone.BackupTable; - public const string Badge = Material.TwoTone.Badge; - public const string BakeryDining = Material.TwoTone.BakeryDining; - public const string Balance = Material.TwoTone.Balance; - public const string Balcony = Material.TwoTone.Balcony; - public const string Ballot = Material.TwoTone.Ballot; - public const string BarChart = Material.TwoTone.BarChart; - public const string BatchPrediction = Material.TwoTone.BatchPrediction; - public const string Bathroom = Material.TwoTone.Bathroom; - public const string Bathtub = Material.TwoTone.Bathtub; - public const string Battery0Bar = Material.TwoTone.Battery0Bar; - public const string Battery1Bar = Material.TwoTone.Battery1Bar; - public const string Battery2Bar = Material.TwoTone.Battery2Bar; - public const string Battery3Bar = Material.TwoTone.Battery3Bar; - public const string Battery4Bar = Material.TwoTone.Battery4Bar; - public const string Battery5Bar = Material.TwoTone.Battery5Bar; - public const string Battery6Bar = Material.TwoTone.Battery6Bar; - public const string BatteryAlert = Material.TwoTone.BatteryAlert; - public const string BatteryChargingFull = Material.TwoTone.BatteryChargingFull; - public const string BatteryFull = Material.TwoTone.BatteryFull; - public const string BatterySaver = Material.TwoTone.BatterySaver; - public const string BatteryStd = Material.TwoTone.BatteryStd; - public const string BatteryUnknown = Material.TwoTone.BatteryUnknown; - public const string BeachAccess = Material.TwoTone.BeachAccess; - public const string Bed = Material.TwoTone.Bed; - public const string BedroomBaby = Material.TwoTone.BedroomBaby; - public const string BedroomChild = Material.TwoTone.BedroomChild; - public const string BedroomParent = Material.TwoTone.BedroomParent; - public const string Bedtime = Material.TwoTone.Bedtime; - public const string BedtimeOff = Material.TwoTone.BedtimeOff; - public const string Beenhere = Material.TwoTone.Beenhere; - public const string Bento = Material.TwoTone.Bento; - public const string BikeScooter = Material.TwoTone.BikeScooter; - public const string Biotech = Material.TwoTone.Biotech; - public const string Blender = Material.TwoTone.Blender; - public const string Blind = Material.TwoTone.Blind; - public const string Blinds = Material.TwoTone.Blinds; - public const string BlindsClosed = Material.TwoTone.BlindsClosed; - public const string Block = Material.TwoTone.Block; - public const string Bloodtype = Material.TwoTone.Bloodtype; - public const string Bluetooth = Material.TwoTone.Bluetooth; - public const string BluetoothAudio = Material.TwoTone.BluetoothAudio; - public const string BluetoothConnected = Material.TwoTone.BluetoothConnected; - public const string BluetoothDisabled = Material.TwoTone.BluetoothDisabled; - public const string BluetoothDrive = Material.TwoTone.BluetoothDrive; - public const string BluetoothSearching = Material.TwoTone.BluetoothSearching; - public const string BlurCircular = Material.TwoTone.BlurCircular; - public const string BlurLinear = Material.TwoTone.BlurLinear; - public const string BlurOff = Material.TwoTone.BlurOff; - public const string BlurOn = Material.TwoTone.BlurOn; - public const string Bolt = Material.TwoTone.Bolt; - public const string Book = Material.TwoTone.Book; - public const string BookOnline = Material.TwoTone.BookOnline; - public const string Bookmark = Material.TwoTone.Bookmark; - public const string BookmarkAdd = Material.TwoTone.BookmarkAdd; - public const string BookmarkAdded = Material.TwoTone.BookmarkAdded; - public const string BookmarkBorder = Material.TwoTone.BookmarkBorder; - public const string BookmarkRemove = Material.TwoTone.BookmarkRemove; - public const string Bookmarks = Material.TwoTone.Bookmarks; - public const string BorderAll = Material.TwoTone.BorderAll; - public const string BorderBottom = Material.TwoTone.BorderBottom; - public const string BorderClear = Material.TwoTone.BorderClear; - public const string BorderColor = Material.TwoTone.BorderColor; - public const string BorderHorizontal = Material.TwoTone.BorderHorizontal; - public const string BorderInner = Material.TwoTone.BorderInner; - public const string BorderLeft = Material.TwoTone.BorderLeft; - public const string BorderOuter = Material.TwoTone.BorderOuter; - public const string BorderRight = Material.TwoTone.BorderRight; - public const string BorderStyle = Material.TwoTone.BorderStyle; - public const string BorderTop = Material.TwoTone.BorderTop; - public const string BorderVertical = Material.TwoTone.BorderVertical; - public const string Boy = Material.TwoTone.Boy; - public const string BrandingWatermark = Material.TwoTone.BrandingWatermark; - public const string BreakfastDining = Material.TwoTone.BreakfastDining; - public const string Brightness1 = Material.TwoTone.Brightness1; - public const string Brightness2 = Material.TwoTone.Brightness2; - public const string Brightness3 = Material.TwoTone.Brightness3; - public const string Brightness4 = Material.TwoTone.Brightness4; - public const string Brightness5 = Material.TwoTone.Brightness5; - public const string Brightness6 = Material.TwoTone.Brightness6; - public const string Brightness7 = Material.TwoTone.Brightness7; - public const string BrightnessAuto = Material.TwoTone.BrightnessAuto; - public const string BrightnessHigh = Material.TwoTone.BrightnessHigh; - public const string BrightnessLow = Material.TwoTone.BrightnessLow; - public const string BrightnessMedium = Material.TwoTone.BrightnessMedium; - public const string BroadcastOnHome = Material.TwoTone.BroadcastOnHome; - public const string BroadcastOnPersonal = Material.TwoTone.BroadcastOnPersonal; - public const string BrokenImage = Material.TwoTone.BrokenImage; - public const string BrowseGallery = Material.TwoTone.BrowseGallery; - public const string BrowserNotSupported = Material.TwoTone.BrowserNotSupported; - public const string BrowserUpdated = Material.TwoTone.BrowserUpdated; - public const string BrunchDining = Material.TwoTone.BrunchDining; - public const string Brush = Material.TwoTone.Brush; - public const string BubbleChart = Material.TwoTone.BubbleChart; - public const string BugReport = Material.TwoTone.BugReport; - public const string Build = Material.TwoTone.Build; - public const string BuildCircle = Material.TwoTone.BuildCircle; - public const string Bungalow = Material.TwoTone.Bungalow; - public const string BurstMode = Material.TwoTone.BurstMode; - public const string BusAlert = Material.TwoTone.BusAlert; - public const string Business = Material.TwoTone.Business; - public const string BusinessCenter = Material.TwoTone.BusinessCenter; - public const string Cabin = Material.TwoTone.Cabin; - public const string Cable = Material.TwoTone.Cable; - public const string Cached = Material.TwoTone.Cached; - public const string Cake = Material.TwoTone.Cake; - public const string Calculate = Material.TwoTone.Calculate; - public const string CalendarMonth = Material.TwoTone.CalendarMonth; - public const string CalendarToday = Material.TwoTone.CalendarToday; - public const string CalendarViewDay = Material.TwoTone.CalendarViewDay; - public const string CalendarViewMonth = Material.TwoTone.CalendarViewMonth; - public const string CalendarViewWeek = Material.TwoTone.CalendarViewWeek; - public const string Call = Material.TwoTone.Call; - public const string CallEnd = Material.TwoTone.CallEnd; - public const string CallMade = Material.TwoTone.CallMade; - public const string CallMerge = Material.TwoTone.CallMerge; - public const string CallMissed = Material.TwoTone.CallMissed; - public const string CallMissedOutgoing = Material.TwoTone.CallMissedOutgoing; - public const string CallReceived = Material.TwoTone.CallReceived; - public const string CallSplit = Material.TwoTone.CallSplit; - public const string CallToAction = Material.TwoTone.CallToAction; - public const string Camera = Material.TwoTone.Camera; - public const string CameraAlt = Material.TwoTone.CameraAlt; - public const string CameraEnhance = Material.TwoTone.CameraEnhance; - public const string CameraFront = Material.TwoTone.CameraFront; - public const string CameraIndoor = Material.TwoTone.CameraIndoor; - public const string CameraOutdoor = Material.TwoTone.CameraOutdoor; - public const string CameraRear = Material.TwoTone.CameraRear; - public const string CameraRoll = Material.TwoTone.CameraRoll; - public const string Cameraswitch = Material.TwoTone.Cameraswitch; - public const string Campaign = Material.TwoTone.Campaign; - public const string Cancel = Material.TwoTone.Cancel; - public const string CancelPresentation = Material.TwoTone.CancelPresentation; - public const string CancelScheduleSend = Material.TwoTone.CancelScheduleSend; - public const string CandlestickChart = Material.TwoTone.CandlestickChart; - public const string CarCrash = Material.TwoTone.CarCrash; - public const string CarRental = Material.TwoTone.CarRental; - public const string CarRepair = Material.TwoTone.CarRepair; - public const string CardGiftcard = Material.TwoTone.CardGiftcard; - public const string CardMembership = Material.TwoTone.CardMembership; - public const string CardTravel = Material.TwoTone.CardTravel; - public const string Carpenter = Material.TwoTone.Carpenter; - public const string Cases = Material.TwoTone.Cases; - public const string Casino = Material.TwoTone.Casino; - public const string Cast = Material.TwoTone.Cast; - public const string CastConnected = Material.TwoTone.CastConnected; - public const string CastForEducation = Material.TwoTone.CastForEducation; - public const string Castle = Material.TwoTone.Castle; - public const string CatchingPokemon = Material.TwoTone.CatchingPokemon; - public const string Category = Material.TwoTone.Category; - public const string Celebration = Material.TwoTone.Celebration; - public const string CellTower = Material.TwoTone.CellTower; - public const string CellWifi = Material.TwoTone.CellWifi; - public const string CenterFocusStrong = Material.TwoTone.CenterFocusStrong; - public const string CenterFocusWeak = Material.TwoTone.CenterFocusWeak; - public const string Chair = Material.TwoTone.Chair; - public const string ChairAlt = Material.TwoTone.ChairAlt; - public const string Chalet = Material.TwoTone.Chalet; - public const string ChangeCircle = Material.TwoTone.ChangeCircle; - public const string ChangeHistory = Material.TwoTone.ChangeHistory; - public const string ChargingStation = Material.TwoTone.ChargingStation; - public const string Chat = Material.TwoTone.Chat; - public const string ChatBubble = Material.TwoTone.ChatBubble; - public const string ChatBubbleOutline = Material.TwoTone.ChatBubbleOutline; - public const string Check = Material.TwoTone.Check; - public const string CheckBox = Material.TwoTone.CheckBox; - public const string CheckBoxOutlineBlank = Material.TwoTone.CheckBoxOutlineBlank; - public const string CheckCircle = Material.TwoTone.CheckCircle; - public const string CheckCircleOutline = Material.TwoTone.CheckCircleOutline; - public const string Checklist = Material.TwoTone.Checklist; - public const string ChecklistRtl = Material.TwoTone.ChecklistRtl; - public const string Checkroom = Material.TwoTone.Checkroom; - public const string ChevronLeft = Material.TwoTone.ChevronLeft; - public const string ChevronRight = Material.TwoTone.ChevronRight; - public const string ChildCare = Material.TwoTone.ChildCare; - public const string ChildFriendly = Material.TwoTone.ChildFriendly; - public const string ChromeReaderMode = Material.TwoTone.ChromeReaderMode; - public const string Church = Material.TwoTone.Church; - public const string Circle = Material.TwoTone.Circle; - public const string CircleNotifications = Material.TwoTone.CircleNotifications; - public const string Class = Material.TwoTone.Class; - public const string CleanHands = Material.TwoTone.CleanHands; - public const string CleaningServices = Material.TwoTone.CleaningServices; - public const string Clear = Material.TwoTone.Clear; - public const string ClearAll = Material.TwoTone.ClearAll; - public const string Close = Material.TwoTone.Close; - public const string CloseFullscreen = Material.TwoTone.CloseFullscreen; - public const string ClosedCaption = Material.TwoTone.ClosedCaption; - public const string ClosedCaptionDisabled = Material.TwoTone.ClosedCaptionDisabled; - public const string ClosedCaptionOff = Material.TwoTone.ClosedCaptionOff; - public const string Cloud = Material.TwoTone.Cloud; - public const string CloudCircle = Material.TwoTone.CloudCircle; - public const string CloudDone = Material.TwoTone.CloudDone; - public const string CloudDownload = Material.TwoTone.CloudDownload; - public const string CloudOff = Material.TwoTone.CloudOff; - public const string CloudQueue = Material.TwoTone.CloudQueue; - public const string CloudSync = Material.TwoTone.CloudSync; - public const string CloudUpload = Material.TwoTone.CloudUpload; - public const string Co2 = Material.TwoTone.Co2; - public const string CoPresent = Material.TwoTone.CoPresent; - public const string Code = Material.TwoTone.Code; - public const string CodeOff = Material.TwoTone.CodeOff; - public const string Coffee = Material.TwoTone.Coffee; - public const string CoffeeMaker = Material.TwoTone.CoffeeMaker; - public const string Collections = Material.TwoTone.Collections; - public const string CollectionsBookmark = Material.TwoTone.CollectionsBookmark; - public const string ColorLens = Material.TwoTone.ColorLens; - public const string Colorize = Material.TwoTone.Colorize; - public const string Comment = Material.TwoTone.Comment; - public const string CommentBank = Material.TwoTone.CommentBank; - public const string CommentsDisabled = Material.TwoTone.CommentsDisabled; - public const string Commit = Material.TwoTone.Commit; - public const string Commute = Material.TwoTone.Commute; - public const string Compare = Material.TwoTone.Compare; - public const string CompareArrows = Material.TwoTone.CompareArrows; - public const string CompassCalibration = Material.TwoTone.CompassCalibration; - public const string Compost = Material.TwoTone.Compost; - public const string Compress = Material.TwoTone.Compress; - public const string Computer = Material.TwoTone.Computer; - public const string ConfirmationNumber = Material.TwoTone.ConfirmationNumber; - public const string ConnectWithoutContact = Material.TwoTone.ConnectWithoutContact; - public const string ConnectedTv = Material.TwoTone.ConnectedTv; - public const string ConnectingAirports = Material.TwoTone.ConnectingAirports; - public const string Construction = Material.TwoTone.Construction; - public const string ContactEmergency = Material.TwoTone.ContactEmergency; - public const string ContactMail = Material.TwoTone.ContactMail; - public const string ContactPage = Material.TwoTone.ContactPage; - public const string ContactPhone = Material.TwoTone.ContactPhone; - public const string ContactSupport = Material.TwoTone.ContactSupport; - public const string Contactless = Material.TwoTone.Contactless; - public const string Contacts = Material.TwoTone.Contacts; - public const string ContentCopy = Material.TwoTone.ContentCopy; - public const string ContentCut = Material.TwoTone.ContentCut; - public const string ContentPaste = Material.TwoTone.ContentPaste; - public const string ContentPasteGo = Material.TwoTone.ContentPasteGo; - public const string ContentPasteOff = Material.TwoTone.ContentPasteOff; - public const string ContentPasteSearch = Material.TwoTone.ContentPasteSearch; - public const string Contrast = Material.TwoTone.Contrast; - public const string ControlCamera = Material.TwoTone.ControlCamera; - public const string ControlPoint = Material.TwoTone.ControlPoint; - public const string ControlPointDuplicate = Material.TwoTone.ControlPointDuplicate; - public const string Cookie = Material.TwoTone.Cookie; - public const string CopyAll = Material.TwoTone.CopyAll; - public const string Copyright = Material.TwoTone.Copyright; - public const string Coronavirus = Material.TwoTone.Coronavirus; - public const string CorporateFare = Material.TwoTone.CorporateFare; - public const string Cottage = Material.TwoTone.Cottage; - public const string Countertops = Material.TwoTone.Countertops; - public const string Create = Material.TwoTone.Create; - public const string CreateNewFolder = Material.TwoTone.CreateNewFolder; - public const string CreditCard = Material.TwoTone.CreditCard; - public const string CreditCardOff = Material.TwoTone.CreditCardOff; - public const string CreditScore = Material.TwoTone.CreditScore; - public const string Crib = Material.TwoTone.Crib; - public const string CrisisAlert = Material.TwoTone.CrisisAlert; - public const string Crop = Material.TwoTone.Crop; - public const string Crop169 = Material.TwoTone.Crop169; - public const string Crop32 = Material.TwoTone.Crop32; - public const string Crop54 = Material.TwoTone.Crop54; - public const string Crop75 = Material.TwoTone.Crop75; - public const string CropDin = Material.TwoTone.CropDin; - public const string CropFree = Material.TwoTone.CropFree; - public const string CropLandscape = Material.TwoTone.CropLandscape; - public const string CropOriginal = Material.TwoTone.CropOriginal; - public const string CropPortrait = Material.TwoTone.CropPortrait; - public const string CropRotate = Material.TwoTone.CropRotate; - public const string CropSquare = Material.TwoTone.CropSquare; - public const string CrueltyFree = Material.TwoTone.CrueltyFree; - public const string Css = Material.TwoTone.Css; - public const string CurrencyBitcoin = Material.TwoTone.CurrencyBitcoin; - public const string CurrencyExchange = Material.TwoTone.CurrencyExchange; - public const string CurrencyFranc = Material.TwoTone.CurrencyFranc; - public const string CurrencyLira = Material.TwoTone.CurrencyLira; - public const string CurrencyPound = Material.TwoTone.CurrencyPound; - public const string CurrencyRuble = Material.TwoTone.CurrencyRuble; - public const string CurrencyRupee = Material.TwoTone.CurrencyRupee; - public const string CurrencyYen = Material.TwoTone.CurrencyYen; - public const string CurrencyYuan = Material.TwoTone.CurrencyYuan; - public const string Curtains = Material.TwoTone.Curtains; - public const string CurtainsClosed = Material.TwoTone.CurtainsClosed; - public const string Cyclone = Material.TwoTone.Cyclone; - public const string Dangerous = Material.TwoTone.Dangerous; - public const string DarkMode = Material.TwoTone.DarkMode; - public const string Dashboard = Material.TwoTone.Dashboard; - public const string DashboardCustomize = Material.TwoTone.DashboardCustomize; - public const string DataArray = Material.TwoTone.DataArray; - public const string DataExploration = Material.TwoTone.DataExploration; - public const string DataObject = Material.TwoTone.DataObject; - public const string DataSaverOff = Material.TwoTone.DataSaverOff; - public const string DataSaverOn = Material.TwoTone.DataSaverOn; - public const string DataThresholding = Material.TwoTone.DataThresholding; - public const string DataUsage = Material.TwoTone.DataUsage; - public const string Dataset = Material.TwoTone.Dataset; - public const string DatasetLinked = Material.TwoTone.DatasetLinked; - public const string DateRange = Material.TwoTone.DateRange; - public const string Deblur = Material.TwoTone.Deblur; - public const string Deck = Material.TwoTone.Deck; - public const string Dehaze = Material.TwoTone.Dehaze; - public const string Delete = Material.TwoTone.Delete; - public const string DeleteForever = Material.TwoTone.DeleteForever; - public const string DeleteOutline = Material.TwoTone.DeleteOutline; - public const string DeleteSweep = Material.TwoTone.DeleteSweep; - public const string DeliveryDining = Material.TwoTone.DeliveryDining; - public const string DensityLarge = Material.TwoTone.DensityLarge; - public const string DensityMedium = Material.TwoTone.DensityMedium; - public const string DensitySmall = Material.TwoTone.DensitySmall; - public const string DepartureBoard = Material.TwoTone.DepartureBoard; - public const string Description = Material.TwoTone.Description; - public const string Deselect = Material.TwoTone.Deselect; - public const string DesignServices = Material.TwoTone.DesignServices; - public const string Desk = Material.TwoTone.Desk; - public const string DesktopAccessDisabled = Material.TwoTone.DesktopAccessDisabled; - public const string DesktopMac = Material.TwoTone.DesktopMac; - public const string DesktopWindows = Material.TwoTone.DesktopWindows; - public const string Details = Material.TwoTone.Details; - public const string DeveloperBoard = Material.TwoTone.DeveloperBoard; - public const string DeveloperBoardOff = Material.TwoTone.DeveloperBoardOff; - public const string DeveloperMode = Material.TwoTone.DeveloperMode; - public const string DeviceHub = Material.TwoTone.DeviceHub; - public const string DeviceThermostat = Material.TwoTone.DeviceThermostat; - public const string DeviceUnknown = Material.TwoTone.DeviceUnknown; - public const string Devices = Material.TwoTone.Devices; - public const string DevicesFold = Material.TwoTone.DevicesFold; - public const string DevicesOther = Material.TwoTone.DevicesOther; - public const string DialerSip = Material.TwoTone.DialerSip; - public const string Dialpad = Material.TwoTone.Dialpad; - public const string Diamond = Material.TwoTone.Diamond; - public const string Difference = Material.TwoTone.Difference; - public const string Dining = Material.TwoTone.Dining; - public const string DinnerDining = Material.TwoTone.DinnerDining; - public const string Directions = Material.TwoTone.Directions; - public const string DirectionsBike = Material.TwoTone.DirectionsBike; - public const string DirectionsBoat = Material.TwoTone.DirectionsBoat; - public const string DirectionsBoatFilled = Material.TwoTone.DirectionsBoatFilled; - public const string DirectionsBus = Material.TwoTone.DirectionsBus; - public const string DirectionsBusFilled = Material.TwoTone.DirectionsBusFilled; - public const string DirectionsCar = Material.TwoTone.DirectionsCar; - public const string DirectionsCarFilled = Material.TwoTone.DirectionsCarFilled; - public const string DirectionsOff = Material.TwoTone.DirectionsOff; - public const string DirectionsRailway = Material.TwoTone.DirectionsRailway; - public const string DirectionsRailwayFilled = Material.TwoTone.DirectionsRailwayFilled; - public const string DirectionsRun = Material.TwoTone.DirectionsRun; - public const string DirectionsSubway = Material.TwoTone.DirectionsSubway; - public const string DirectionsSubwayFilled = Material.TwoTone.DirectionsSubwayFilled; - public const string DirectionsTransit = Material.TwoTone.DirectionsTransit; - public const string DirectionsTransitFilled = Material.TwoTone.DirectionsTransitFilled; - public const string DirectionsWalk = Material.TwoTone.DirectionsWalk; - public const string DirtyLens = Material.TwoTone.DirtyLens; - public const string DisabledByDefault = Material.TwoTone.DisabledByDefault; - public const string DisabledVisible = Material.TwoTone.DisabledVisible; - public const string DiscFull = Material.TwoTone.DiscFull; - public const string Discount = Material.TwoTone.Discount; - public const string DisplaySettings = Material.TwoTone.DisplaySettings; - public const string Diversity1 = Material.TwoTone.Diversity1; - public const string Diversity2 = Material.TwoTone.Diversity2; - public const string Diversity3 = Material.TwoTone.Diversity3; - public const string Dns = Material.TwoTone.Dns; - public const string DoDisturb = Material.TwoTone.DoDisturb; - public const string DoDisturbAlt = Material.TwoTone.DoDisturbAlt; - public const string DoDisturbOff = Material.TwoTone.DoDisturbOff; - public const string DoDisturbOn = Material.TwoTone.DoDisturbOn; - public const string DoNotDisturb = Material.TwoTone.DoNotDisturb; - public const string DoNotDisturbAlt = Material.TwoTone.DoNotDisturbAlt; - public const string DoNotDisturbOff = Material.TwoTone.DoNotDisturbOff; - public const string DoNotDisturbOn = Material.TwoTone.DoNotDisturbOn; - public const string DoNotDisturbOnTotalSilence = Material.TwoTone.DoNotDisturbOnTotalSilence; - public const string DoNotStep = Material.TwoTone.DoNotStep; - public const string DoNotTouch = Material.TwoTone.DoNotTouch; - public const string Dock = Material.TwoTone.Dock; - public const string DocumentScanner = Material.TwoTone.DocumentScanner; - public const string Domain = Material.TwoTone.Domain; - public const string DomainAdd = Material.TwoTone.DomainAdd; - public const string DomainDisabled = Material.TwoTone.DomainDisabled; - public const string DomainVerification = Material.TwoTone.DomainVerification; - public const string Done = Material.TwoTone.Done; - public const string DoneAll = Material.TwoTone.DoneAll; - public const string DoneOutline = Material.TwoTone.DoneOutline; - public const string DonutLarge = Material.TwoTone.DonutLarge; - public const string DonutSmall = Material.TwoTone.DonutSmall; - public const string DoorBack = Material.TwoTone.DoorBack; - public const string DoorFront = Material.TwoTone.DoorFront; - public const string DoorSliding = Material.TwoTone.DoorSliding; - public const string Doorbell = Material.TwoTone.Doorbell; - public const string DoubleArrow = Material.TwoTone.DoubleArrow; - public const string DownhillSkiing = Material.TwoTone.DownhillSkiing; - public const string Download = Material.TwoTone.Download; - public const string DownloadDone = Material.TwoTone.DownloadDone; - public const string DownloadForOffline = Material.TwoTone.DownloadForOffline; - public const string Downloading = Material.TwoTone.Downloading; - public const string Drafts = Material.TwoTone.Drafts; - public const string DragHandle = Material.TwoTone.DragHandle; - public const string DragIndicator = Material.TwoTone.DragIndicator; - public const string Draw = Material.TwoTone.Draw; - public const string DriveEta = Material.TwoTone.DriveEta; - public const string DriveFileMove = Material.TwoTone.DriveFileMove; - public const string DriveFileMoveRtl = Material.TwoTone.DriveFileMoveRtl; - public const string DriveFileRenameOutline = Material.TwoTone.DriveFileRenameOutline; - public const string DriveFolderUpload = Material.TwoTone.DriveFolderUpload; - public const string Dry = Material.TwoTone.Dry; - public const string DryCleaning = Material.TwoTone.DryCleaning; - public const string Duo = Material.TwoTone.Duo; - public const string Dvr = Material.TwoTone.Dvr; - public const string DynamicFeed = Material.TwoTone.DynamicFeed; - public const string DynamicForm = Material.TwoTone.DynamicForm; - public const string EMobiledata = Material.TwoTone.EMobiledata; - public const string Earbuds = Material.TwoTone.Earbuds; - public const string EarbudsBattery = Material.TwoTone.EarbudsBattery; - public const string East = Material.TwoTone.East; - public const string EdgesensorHigh = Material.TwoTone.EdgesensorHigh; - public const string EdgesensorLow = Material.TwoTone.EdgesensorLow; - public const string Edit = Material.TwoTone.Edit; - public const string EditAttributes = Material.TwoTone.EditAttributes; - public const string EditCalendar = Material.TwoTone.EditCalendar; - public const string EditLocation = Material.TwoTone.EditLocation; - public const string EditLocationAlt = Material.TwoTone.EditLocationAlt; - public const string EditNote = Material.TwoTone.EditNote; - public const string EditNotifications = Material.TwoTone.EditNotifications; - public const string EditOff = Material.TwoTone.EditOff; - public const string EditRoad = Material.TwoTone.EditRoad; - public const string Egg = Material.TwoTone.Egg; - public const string EggAlt = Material.TwoTone.EggAlt; - public const string Eject = Material.TwoTone.Eject; - public const string Elderly = Material.TwoTone.Elderly; - public const string ElderlyWoman = Material.TwoTone.ElderlyWoman; - public const string ElectricBike = Material.TwoTone.ElectricBike; - public const string ElectricBolt = Material.TwoTone.ElectricBolt; - public const string ElectricCar = Material.TwoTone.ElectricCar; - public const string ElectricMeter = Material.TwoTone.ElectricMeter; - public const string ElectricMoped = Material.TwoTone.ElectricMoped; - public const string ElectricRickshaw = Material.TwoTone.ElectricRickshaw; - public const string ElectricScooter = Material.TwoTone.ElectricScooter; - public const string ElectricalServices = Material.TwoTone.ElectricalServices; - public const string Elevator = Material.TwoTone.Elevator; - public const string Email = Material.TwoTone.Email; - public const string Emergency = Material.TwoTone.Emergency; - public const string EmergencyRecording = Material.TwoTone.EmergencyRecording; - public const string EmergencyShare = Material.TwoTone.EmergencyShare; - public const string EmojiEmotions = Material.TwoTone.EmojiEmotions; - public const string EmojiEvents = Material.TwoTone.EmojiEvents; - public const string EmojiFoodBeverage = Material.TwoTone.EmojiFoodBeverage; - public const string EmojiNature = Material.TwoTone.EmojiNature; - public const string EmojiObjects = Material.TwoTone.EmojiObjects; - public const string EmojiPeople = Material.TwoTone.EmojiPeople; - public const string EmojiSymbols = Material.TwoTone.EmojiSymbols; - public const string EmojiTransportation = Material.TwoTone.EmojiTransportation; - public const string EnergySavingsLeaf = Material.TwoTone.EnergySavingsLeaf; - public const string Engineering = Material.TwoTone.Engineering; - public const string EnhancedEncryption = Material.TwoTone.EnhancedEncryption; - public const string Equalizer = Material.TwoTone.Equalizer; - public const string Error = Material.TwoTone.Error; - public const string ErrorOutline = Material.TwoTone.ErrorOutline; - public const string Escalator = Material.TwoTone.Escalator; - public const string EscalatorWarning = Material.TwoTone.EscalatorWarning; - public const string Euro = Material.TwoTone.Euro; - public const string EuroSymbol = Material.TwoTone.EuroSymbol; - public const string EvStation = Material.TwoTone.EvStation; - public const string Event = Material.TwoTone.Event; - public const string EventAvailable = Material.TwoTone.EventAvailable; - public const string EventBusy = Material.TwoTone.EventBusy; - public const string EventNote = Material.TwoTone.EventNote; - public const string EventRepeat = Material.TwoTone.EventRepeat; - public const string EventSeat = Material.TwoTone.EventSeat; - public const string ExitToApp = Material.TwoTone.ExitToApp; - public const string Expand = Material.TwoTone.Expand; - public const string ExpandCircleDown = Material.TwoTone.ExpandCircleDown; - public const string ExpandLess = Material.TwoTone.ExpandLess; - public const string ExpandMore = Material.TwoTone.ExpandMore; - public const string Explicit = Material.TwoTone.Explicit; - public const string Explore = Material.TwoTone.Explore; - public const string ExploreOff = Material.TwoTone.ExploreOff; - public const string Exposure = Material.TwoTone.Exposure; - public const string ExposureNeg1 = Material.TwoTone.ExposureNeg1; - public const string ExposureNeg2 = Material.TwoTone.ExposureNeg2; - public const string ExposurePlus1 = Material.TwoTone.ExposurePlus1; - public const string ExposurePlus2 = Material.TwoTone.ExposurePlus2; - public const string ExposureZero = Material.TwoTone.ExposureZero; - public const string Extension = Material.TwoTone.Extension; - public const string ExtensionOff = Material.TwoTone.ExtensionOff; - public const string Face = Material.TwoTone.Face; - public const string Face2 = Material.TwoTone.Face2; - public const string Face3 = Material.TwoTone.Face3; - public const string Face4 = Material.TwoTone.Face4; - public const string Face5 = Material.TwoTone.Face5; - public const string Face6 = Material.TwoTone.Face6; - public const string FaceRetouchingNatural = Material.TwoTone.FaceRetouchingNatural; - public const string FaceRetouchingOff = Material.TwoTone.FaceRetouchingOff; - public const string FactCheck = Material.TwoTone.FactCheck; - public const string Factory = Material.TwoTone.Factory; - public const string FamilyRestroom = Material.TwoTone.FamilyRestroom; - public const string FastForward = Material.TwoTone.FastForward; - public const string FastRewind = Material.TwoTone.FastRewind; - public const string Fastfood = Material.TwoTone.Fastfood; - public const string Favorite = Material.TwoTone.Favorite; - public const string FavoriteBorder = Material.TwoTone.FavoriteBorder; - public const string Fax = Material.TwoTone.Fax; - public const string FeaturedPlayList = Material.TwoTone.FeaturedPlayList; - public const string FeaturedVideo = Material.TwoTone.FeaturedVideo; - public const string Feed = Material.TwoTone.Feed; - public const string Feedback = Material.TwoTone.Feedback; - public const string Female = Material.TwoTone.Female; - public const string Fence = Material.TwoTone.Fence; - public const string Festival = Material.TwoTone.Festival; - public const string FiberDvr = Material.TwoTone.FiberDvr; - public const string FiberManualRecord = Material.TwoTone.FiberManualRecord; - public const string FiberNew = Material.TwoTone.FiberNew; - public const string FiberPin = Material.TwoTone.FiberPin; - public const string FiberSmartRecord = Material.TwoTone.FiberSmartRecord; - public const string FileCopy = Material.TwoTone.FileCopy; - public const string FileDownload = Material.TwoTone.FileDownload; - public const string FileDownloadDone = Material.TwoTone.FileDownloadDone; - public const string FileDownloadOff = Material.TwoTone.FileDownloadOff; - public const string FileOpen = Material.TwoTone.FileOpen; - public const string FilePresent = Material.TwoTone.FilePresent; - public const string FileUpload = Material.TwoTone.FileUpload; - public const string Filter = Material.TwoTone.Filter; - public const string Filter1 = Material.TwoTone.Filter1; - public const string Filter2 = Material.TwoTone.Filter2; - public const string Filter3 = Material.TwoTone.Filter3; - public const string Filter4 = Material.TwoTone.Filter4; - public const string Filter5 = Material.TwoTone.Filter5; - public const string Filter6 = Material.TwoTone.Filter6; - public const string Filter7 = Material.TwoTone.Filter7; - public const string Filter8 = Material.TwoTone.Filter8; - public const string Filter9 = Material.TwoTone.Filter9; - public const string Filter9Plus = Material.TwoTone.Filter9Plus; - public const string FilterAlt = Material.TwoTone.FilterAlt; - public const string FilterAltOff = Material.TwoTone.FilterAltOff; - public const string FilterBAndW = Material.TwoTone.FilterBAndW; - public const string FilterCenterFocus = Material.TwoTone.FilterCenterFocus; - public const string FilterDrama = Material.TwoTone.FilterDrama; - public const string FilterFrames = Material.TwoTone.FilterFrames; - public const string FilterHdr = Material.TwoTone.FilterHdr; - public const string FilterList = Material.TwoTone.FilterList; - public const string FilterListOff = Material.TwoTone.FilterListOff; - public const string FilterNone = Material.TwoTone.FilterNone; - public const string FilterTiltShift = Material.TwoTone.FilterTiltShift; - public const string FilterVintage = Material.TwoTone.FilterVintage; - public const string FindInPage = Material.TwoTone.FindInPage; - public const string FindReplace = Material.TwoTone.FindReplace; - public const string Fingerprint = Material.TwoTone.Fingerprint; - public const string FireExtinguisher = Material.TwoTone.FireExtinguisher; - public const string FireHydrantAlt = Material.TwoTone.FireHydrantAlt; - public const string FireTruck = Material.TwoTone.FireTruck; - public const string Fireplace = Material.TwoTone.Fireplace; - public const string FirstPage = Material.TwoTone.FirstPage; - public const string FitScreen = Material.TwoTone.FitScreen; - public const string Fitbit = Material.TwoTone.Fitbit; - public const string FitnessCenter = Material.TwoTone.FitnessCenter; - public const string Flag = Material.TwoTone.Flag; - public const string FlagCircle = Material.TwoTone.FlagCircle; - public const string Flaky = Material.TwoTone.Flaky; - public const string Flare = Material.TwoTone.Flare; - public const string FlashAuto = Material.TwoTone.FlashAuto; - public const string FlashOff = Material.TwoTone.FlashOff; - public const string FlashOn = Material.TwoTone.FlashOn; - public const string FlashlightOff = Material.TwoTone.FlashlightOff; - public const string FlashlightOn = Material.TwoTone.FlashlightOn; - public const string Flatware = Material.TwoTone.Flatware; - public const string Flight = Material.TwoTone.Flight; - public const string FlightClass = Material.TwoTone.FlightClass; - public const string FlightLand = Material.TwoTone.FlightLand; - public const string FlightTakeoff = Material.TwoTone.FlightTakeoff; - public const string Flip = Material.TwoTone.Flip; - public const string FlipCameraAndroid = Material.TwoTone.FlipCameraAndroid; - public const string FlipCameraIos = Material.TwoTone.FlipCameraIos; - public const string FlipToBack = Material.TwoTone.FlipToBack; - public const string FlipToFront = Material.TwoTone.FlipToFront; - public const string Flood = Material.TwoTone.Flood; - public const string Fluorescent = Material.TwoTone.Fluorescent; - public const string FlutterDash = Material.TwoTone.FlutterDash; - public const string FmdBad = Material.TwoTone.FmdBad; - public const string FmdGood = Material.TwoTone.FmdGood; - public const string Folder = Material.TwoTone.Folder; - public const string FolderCopy = Material.TwoTone.FolderCopy; - public const string FolderDelete = Material.TwoTone.FolderDelete; - public const string FolderOff = Material.TwoTone.FolderOff; - public const string FolderOpen = Material.TwoTone.FolderOpen; - public const string FolderShared = Material.TwoTone.FolderShared; - public const string FolderSpecial = Material.TwoTone.FolderSpecial; - public const string FolderZip = Material.TwoTone.FolderZip; - public const string FollowTheSigns = Material.TwoTone.FollowTheSigns; - public const string FontDownload = Material.TwoTone.FontDownload; - public const string FontDownloadOff = Material.TwoTone.FontDownloadOff; - public const string FoodBank = Material.TwoTone.FoodBank; - public const string Forest = Material.TwoTone.Forest; - public const string ForkLeft = Material.TwoTone.ForkLeft; - public const string ForkRight = Material.TwoTone.ForkRight; - public const string FormatAlignCenter = Material.TwoTone.FormatAlignCenter; - public const string FormatAlignJustify = Material.TwoTone.FormatAlignJustify; - public const string FormatAlignLeft = Material.TwoTone.FormatAlignLeft; - public const string FormatAlignRight = Material.TwoTone.FormatAlignRight; - public const string FormatBold = Material.TwoTone.FormatBold; - public const string FormatClear = Material.TwoTone.FormatClear; - public const string FormatColorFill = Material.TwoTone.FormatColorFill; - public const string FormatColorReset = Material.TwoTone.FormatColorReset; - public const string FormatColorText = Material.TwoTone.FormatColorText; - public const string FormatIndentDecrease = Material.TwoTone.FormatIndentDecrease; - public const string FormatIndentIncrease = Material.TwoTone.FormatIndentIncrease; - public const string FormatItalic = Material.TwoTone.FormatItalic; - public const string FormatLineSpacing = Material.TwoTone.FormatLineSpacing; - public const string FormatListBulleted = Material.TwoTone.FormatListBulleted; - public const string FormatListNumbered = Material.TwoTone.FormatListNumbered; - public const string FormatListNumberedRtl = Material.TwoTone.FormatListNumberedRtl; - public const string FormatOverline = Material.TwoTone.FormatOverline; - public const string FormatPaint = Material.TwoTone.FormatPaint; - public const string FormatQuote = Material.TwoTone.FormatQuote; - public const string FormatShapes = Material.TwoTone.FormatShapes; - public const string FormatSize = Material.TwoTone.FormatSize; - public const string FormatStrikethrough = Material.TwoTone.FormatStrikethrough; - public const string FormatTextdirectionLToR = Material.TwoTone.FormatTextdirectionLToR; - public const string FormatTextdirectionRToL = Material.TwoTone.FormatTextdirectionRToL; - public const string FormatUnderlined = Material.TwoTone.FormatUnderlined; - public const string Fort = Material.TwoTone.Fort; - public const string Forum = Material.TwoTone.Forum; - public const string Forward = Material.TwoTone.Forward; - public const string Forward10 = Material.TwoTone.Forward10; - public const string Forward30 = Material.TwoTone.Forward30; - public const string Forward5 = Material.TwoTone.Forward5; - public const string ForwardToInbox = Material.TwoTone.ForwardToInbox; - public const string Foundation = Material.TwoTone.Foundation; - public const string FreeBreakfast = Material.TwoTone.FreeBreakfast; - public const string FreeCancellation = Material.TwoTone.FreeCancellation; - public const string FrontHand = Material.TwoTone.FrontHand; - public const string Fullscreen = Material.TwoTone.Fullscreen; - public const string FullscreenExit = Material.TwoTone.FullscreenExit; - public const string Functions = Material.TwoTone.Functions; - public const string GMobiledata = Material.TwoTone.GMobiledata; - public const string GTranslate = Material.TwoTone.GTranslate; - public const string Gamepad = Material.TwoTone.Gamepad; - public const string Games = Material.TwoTone.Games; - public const string Garage = Material.TwoTone.Garage; - public const string GasMeter = Material.TwoTone.GasMeter; - public const string Gavel = Material.TwoTone.Gavel; - public const string GeneratingTokens = Material.TwoTone.GeneratingTokens; - public const string Gesture = Material.TwoTone.Gesture; - public const string GetApp = Material.TwoTone.GetApp; - public const string Gif = Material.TwoTone.Gif; - public const string GifBox = Material.TwoTone.GifBox; - public const string Girl = Material.TwoTone.Girl; - public const string Gite = Material.TwoTone.Gite; - public const string GolfCourse = Material.TwoTone.GolfCourse; - public const string GppBad = Material.TwoTone.GppBad; - public const string GppGood = Material.TwoTone.GppGood; - public const string GppMaybe = Material.TwoTone.GppMaybe; - public const string GpsFixed = Material.TwoTone.GpsFixed; - public const string GpsNotFixed = Material.TwoTone.GpsNotFixed; - public const string GpsOff = Material.TwoTone.GpsOff; - public const string Grade = Material.TwoTone.Grade; - public const string Gradient = Material.TwoTone.Gradient; - public const string Grading = Material.TwoTone.Grading; - public const string Grain = Material.TwoTone.Grain; - public const string GraphicEq = Material.TwoTone.GraphicEq; - public const string Grass = Material.TwoTone.Grass; - public const string Grid3x3 = Material.TwoTone.Grid3x3; - public const string Grid4x4 = Material.TwoTone.Grid4x4; - public const string GridGoldenratio = Material.TwoTone.GridGoldenratio; - public const string GridOff = Material.TwoTone.GridOff; - public const string GridOn = Material.TwoTone.GridOn; - public const string GridView = Material.TwoTone.GridView; - public const string Group = Material.TwoTone.Group; - public const string GroupAdd = Material.TwoTone.GroupAdd; - public const string GroupOff = Material.TwoTone.GroupOff; - public const string GroupRemove = Material.TwoTone.GroupRemove; - public const string GroupWork = Material.TwoTone.GroupWork; - public const string Groups = Material.TwoTone.Groups; - public const string Groups2 = Material.TwoTone.Groups2; - public const string Groups3 = Material.TwoTone.Groups3; - public const string HMobiledata = Material.TwoTone.HMobiledata; - public const string HPlusMobiledata = Material.TwoTone.HPlusMobiledata; - public const string Hail = Material.TwoTone.Hail; - public const string Handshake = Material.TwoTone.Handshake; - public const string Handyman = Material.TwoTone.Handyman; - public const string Hardware = Material.TwoTone.Hardware; - public const string Hd = Material.TwoTone.Hd; - public const string HdrAuto = Material.TwoTone.HdrAuto; - public const string HdrAutoSelect = Material.TwoTone.HdrAutoSelect; - public const string HdrEnhancedSelect = Material.TwoTone.HdrEnhancedSelect; - public const string HdrOff = Material.TwoTone.HdrOff; - public const string HdrOffSelect = Material.TwoTone.HdrOffSelect; - public const string HdrOn = Material.TwoTone.HdrOn; - public const string HdrOnSelect = Material.TwoTone.HdrOnSelect; - public const string HdrPlus = Material.TwoTone.HdrPlus; - public const string HdrStrong = Material.TwoTone.HdrStrong; - public const string HdrWeak = Material.TwoTone.HdrWeak; - public const string Headphones = Material.TwoTone.Headphones; - public const string HeadphonesBattery = Material.TwoTone.HeadphonesBattery; - public const string Headset = Material.TwoTone.Headset; - public const string HeadsetMic = Material.TwoTone.HeadsetMic; - public const string HeadsetOff = Material.TwoTone.HeadsetOff; - public const string Healing = Material.TwoTone.Healing; - public const string HealthAndSafety = Material.TwoTone.HealthAndSafety; - public const string Hearing = Material.TwoTone.Hearing; - public const string HearingDisabled = Material.TwoTone.HearingDisabled; - public const string HeartBroken = Material.TwoTone.HeartBroken; - public const string HeatPump = Material.TwoTone.HeatPump; - public const string Height = Material.TwoTone.Height; - public const string Help = Material.TwoTone.Help; - public const string HelpCenter = Material.TwoTone.HelpCenter; - public const string HelpOutline = Material.TwoTone.HelpOutline; - public const string Hevc = Material.TwoTone.Hevc; - public const string Hexagon = Material.TwoTone.Hexagon; - public const string HideImage = Material.TwoTone.HideImage; - public const string HideSource = Material.TwoTone.HideSource; - public const string HighQuality = Material.TwoTone.HighQuality; - public const string Highlight = Material.TwoTone.Highlight; - public const string HighlightAlt = Material.TwoTone.HighlightAlt; - public const string HighlightOff = Material.TwoTone.HighlightOff; - public const string Hiking = Material.TwoTone.Hiking; - public const string History = Material.TwoTone.History; - public const string HistoryEdu = Material.TwoTone.HistoryEdu; - public const string HistoryToggleOff = Material.TwoTone.HistoryToggleOff; - public const string Hive = Material.TwoTone.Hive; - public const string Hls = Material.TwoTone.Hls; - public const string HlsOff = Material.TwoTone.HlsOff; - public const string HolidayVillage = Material.TwoTone.HolidayVillage; - public const string Home = Material.TwoTone.Home; - public const string HomeMax = Material.TwoTone.HomeMax; - public const string HomeMini = Material.TwoTone.HomeMini; - public const string HomeRepairService = Material.TwoTone.HomeRepairService; - public const string HomeWork = Material.TwoTone.HomeWork; - public const string HorizontalDistribute = Material.TwoTone.HorizontalDistribute; - public const string HorizontalRule = Material.TwoTone.HorizontalRule; - public const string HorizontalSplit = Material.TwoTone.HorizontalSplit; - public const string HotTub = Material.TwoTone.HotTub; - public const string Hotel = Material.TwoTone.Hotel; - public const string HotelClass = Material.TwoTone.HotelClass; - public const string HourglassBottom = Material.TwoTone.HourglassBottom; - public const string HourglassDisabled = Material.TwoTone.HourglassDisabled; - public const string HourglassEmpty = Material.TwoTone.HourglassEmpty; - public const string HourglassFull = Material.TwoTone.HourglassFull; - public const string HourglassTop = Material.TwoTone.HourglassTop; - public const string House = Material.TwoTone.House; - public const string HouseSiding = Material.TwoTone.HouseSiding; - public const string Houseboat = Material.TwoTone.Houseboat; - public const string HowToReg = Material.TwoTone.HowToReg; - public const string HowToVote = Material.TwoTone.HowToVote; - public const string Html = Material.TwoTone.Html; - public const string Http = Material.TwoTone.Http; - public const string Https = Material.TwoTone.Https; - public const string Hub = Material.TwoTone.Hub; - public const string Hvac = Material.TwoTone.Hvac; - public const string IceSkating = Material.TwoTone.IceSkating; - public const string Icecream = Material.TwoTone.Icecream; - public const string Image = Material.TwoTone.Image; - public const string ImageAspectRatio = Material.TwoTone.ImageAspectRatio; - public const string ImageNotSupported = Material.TwoTone.ImageNotSupported; - public const string ImageSearch = Material.TwoTone.ImageSearch; - public const string ImagesearchRoller = Material.TwoTone.ImagesearchRoller; - public const string ImportContacts = Material.TwoTone.ImportContacts; - public const string ImportExport = Material.TwoTone.ImportExport; - public const string ImportantDevices = Material.TwoTone.ImportantDevices; - public const string Inbox = Material.TwoTone.Inbox; - public const string IncompleteCircle = Material.TwoTone.IncompleteCircle; - public const string IndeterminateCheckBox = Material.TwoTone.IndeterminateCheckBox; - public const string Info = Material.TwoTone.Info; - public const string Input = Material.TwoTone.Input; - public const string InsertChart = Material.TwoTone.InsertChart; - public const string InsertChartOutlined = Material.TwoTone.InsertChartOutlined; - public const string InsertComment = Material.TwoTone.InsertComment; - public const string InsertDriveFile = Material.TwoTone.InsertDriveFile; - public const string InsertEmoticon = Material.TwoTone.InsertEmoticon; - public const string InsertInvitation = Material.TwoTone.InsertInvitation; - public const string InsertLink = Material.TwoTone.InsertLink; - public const string InsertPageBreak = Material.TwoTone.InsertPageBreak; - public const string InsertPhoto = Material.TwoTone.InsertPhoto; - public const string Insights = Material.TwoTone.Insights; - public const string InstallDesktop = Material.TwoTone.InstallDesktop; - public const string InstallMobile = Material.TwoTone.InstallMobile; - public const string IntegrationInstructions = Material.TwoTone.IntegrationInstructions; - public const string Interests = Material.TwoTone.Interests; - public const string InterpreterMode = Material.TwoTone.InterpreterMode; - public const string Inventory = Material.TwoTone.Inventory; - public const string Inventory2 = Material.TwoTone.Inventory2; - public const string InvertColors = Material.TwoTone.InvertColors; - public const string InvertColorsOff = Material.TwoTone.InvertColorsOff; - public const string IosShare = Material.TwoTone.IosShare; - public const string Iron = Material.TwoTone.Iron; - public const string Iso = Material.TwoTone.Iso; - public const string Javascript = Material.TwoTone.Javascript; - public const string JoinFull = Material.TwoTone.JoinFull; - public const string JoinInner = Material.TwoTone.JoinInner; - public const string JoinLeft = Material.TwoTone.JoinLeft; - public const string JoinRight = Material.TwoTone.JoinRight; - public const string Kayaking = Material.TwoTone.Kayaking; - public const string KebabDining = Material.TwoTone.KebabDining; - public const string Key = Material.TwoTone.Key; - public const string KeyOff = Material.TwoTone.KeyOff; - public const string Keyboard = Material.TwoTone.Keyboard; - public const string KeyboardAlt = Material.TwoTone.KeyboardAlt; - public const string KeyboardArrowDown = Material.TwoTone.KeyboardArrowDown; - public const string KeyboardArrowLeft = Material.TwoTone.KeyboardArrowLeft; - public const string KeyboardArrowRight = Material.TwoTone.KeyboardArrowRight; - public const string KeyboardArrowUp = Material.TwoTone.KeyboardArrowUp; - public const string KeyboardBackspace = Material.TwoTone.KeyboardBackspace; - public const string KeyboardCapslock = Material.TwoTone.KeyboardCapslock; - public const string KeyboardCommandKey = Material.TwoTone.KeyboardCommandKey; - public const string KeyboardControlKey = Material.TwoTone.KeyboardControlKey; - public const string KeyboardDoubleArrowDown = Material.TwoTone.KeyboardDoubleArrowDown; - public const string KeyboardDoubleArrowLeft = Material.TwoTone.KeyboardDoubleArrowLeft; - public const string KeyboardDoubleArrowRight = Material.TwoTone.KeyboardDoubleArrowRight; - public const string KeyboardDoubleArrowUp = Material.TwoTone.KeyboardDoubleArrowUp; - public const string KeyboardHide = Material.TwoTone.KeyboardHide; - public const string KeyboardOptionKey = Material.TwoTone.KeyboardOptionKey; - public const string KeyboardReturn = Material.TwoTone.KeyboardReturn; - public const string KeyboardTab = Material.TwoTone.KeyboardTab; - public const string KeyboardVoice = Material.TwoTone.KeyboardVoice; - public const string KingBed = Material.TwoTone.KingBed; - public const string Kitchen = Material.TwoTone.Kitchen; - public const string Kitesurfing = Material.TwoTone.Kitesurfing; - public const string Label = Material.TwoTone.Label; - public const string LabelImportant = Material.TwoTone.LabelImportant; - public const string LabelOff = Material.TwoTone.LabelOff; - public const string Lan = Material.TwoTone.Lan; - public const string Landscape = Material.TwoTone.Landscape; - public const string Landslide = Material.TwoTone.Landslide; - public const string Language = Material.TwoTone.Language; - public const string Laptop = Material.TwoTone.Laptop; - public const string LaptopChromebook = Material.TwoTone.LaptopChromebook; - public const string LaptopMac = Material.TwoTone.LaptopMac; - public const string LaptopWindows = Material.TwoTone.LaptopWindows; - public const string LastPage = Material.TwoTone.LastPage; - public const string Launch = Material.TwoTone.Launch; - public const string Layers = Material.TwoTone.Layers; - public const string LayersClear = Material.TwoTone.LayersClear; - public const string Leaderboard = Material.TwoTone.Leaderboard; - public const string LeakAdd = Material.TwoTone.LeakAdd; - public const string LeakRemove = Material.TwoTone.LeakRemove; - public const string LegendToggle = Material.TwoTone.LegendToggle; - public const string Lens = Material.TwoTone.Lens; - public const string LensBlur = Material.TwoTone.LensBlur; - public const string LibraryAdd = Material.TwoTone.LibraryAdd; - public const string LibraryAddCheck = Material.TwoTone.LibraryAddCheck; - public const string LibraryBooks = Material.TwoTone.LibraryBooks; - public const string LibraryMusic = Material.TwoTone.LibraryMusic; - public const string Light = Material.TwoTone.Light; - public const string LightMode = Material.TwoTone.LightMode; - public const string Lightbulb = Material.TwoTone.Lightbulb; - public const string LightbulbCircle = Material.TwoTone.LightbulbCircle; - public const string LineAxis = Material.TwoTone.LineAxis; - public const string LineStyle = Material.TwoTone.LineStyle; - public const string LineWeight = Material.TwoTone.LineWeight; - public const string LinearScale = Material.TwoTone.LinearScale; - public const string Link = Material.TwoTone.Link; - public const string LinkOff = Material.TwoTone.LinkOff; - public const string LinkedCamera = Material.TwoTone.LinkedCamera; - public const string Liquor = Material.TwoTone.Liquor; - public const string List = Material.TwoTone.List; - public const string ListAlt = Material.TwoTone.ListAlt; - public const string LiveHelp = Material.TwoTone.LiveHelp; - public const string LiveTv = Material.TwoTone.LiveTv; - public const string Living = Material.TwoTone.Living; - public const string LocalActivity = Material.TwoTone.LocalActivity; - public const string LocalAirport = Material.TwoTone.LocalAirport; - public const string LocalAtm = Material.TwoTone.LocalAtm; - public const string LocalBar = Material.TwoTone.LocalBar; - public const string LocalCafe = Material.TwoTone.LocalCafe; - public const string LocalCarWash = Material.TwoTone.LocalCarWash; - public const string LocalConvenienceStore = Material.TwoTone.LocalConvenienceStore; - public const string LocalDining = Material.TwoTone.LocalDining; - public const string LocalDrink = Material.TwoTone.LocalDrink; - public const string LocalFireDepartment = Material.TwoTone.LocalFireDepartment; - public const string LocalFlorist = Material.TwoTone.LocalFlorist; - public const string LocalGasStation = Material.TwoTone.LocalGasStation; - public const string LocalGroceryStore = Material.TwoTone.LocalGroceryStore; - public const string LocalHospital = Material.TwoTone.LocalHospital; - public const string LocalHotel = Material.TwoTone.LocalHotel; - public const string LocalLaundryService = Material.TwoTone.LocalLaundryService; - public const string LocalLibrary = Material.TwoTone.LocalLibrary; - public const string LocalMall = Material.TwoTone.LocalMall; - public const string LocalMovies = Material.TwoTone.LocalMovies; - public const string LocalOffer = Material.TwoTone.LocalOffer; - public const string LocalParking = Material.TwoTone.LocalParking; - public const string LocalPharmacy = Material.TwoTone.LocalPharmacy; - public const string LocalPhone = Material.TwoTone.LocalPhone; - public const string LocalPizza = Material.TwoTone.LocalPizza; - public const string LocalPlay = Material.TwoTone.LocalPlay; - public const string LocalPolice = Material.TwoTone.LocalPolice; - public const string LocalPostOffice = Material.TwoTone.LocalPostOffice; - public const string LocalPrintshop = Material.TwoTone.LocalPrintshop; - public const string LocalSee = Material.TwoTone.LocalSee; - public const string LocalShipping = Material.TwoTone.LocalShipping; - public const string LocalTaxi = Material.TwoTone.LocalTaxi; - public const string LocationCity = Material.TwoTone.LocationCity; - public const string LocationDisabled = Material.TwoTone.LocationDisabled; - public const string LocationOff = Material.TwoTone.LocationOff; - public const string LocationOn = Material.TwoTone.LocationOn; - public const string LocationSearching = Material.TwoTone.LocationSearching; - public const string Lock = Material.TwoTone.Lock; - public const string LockClock = Material.TwoTone.LockClock; - public const string LockOpen = Material.TwoTone.LockOpen; - public const string LockPerson = Material.TwoTone.LockPerson; - public const string LockReset = Material.TwoTone.LockReset; - public const string Login = Material.TwoTone.Login; - public const string LogoDev = Material.TwoTone.LogoDev; - public const string Logout = Material.TwoTone.Logout; - public const string Looks = Material.TwoTone.Looks; - public const string Looks3 = Material.TwoTone.Looks3; - public const string Looks4 = Material.TwoTone.Looks4; - public const string Looks5 = Material.TwoTone.Looks5; - public const string Looks6 = Material.TwoTone.Looks6; - public const string LooksOne = Material.TwoTone.LooksOne; - public const string LooksTwo = Material.TwoTone.LooksTwo; - public const string Loop = Material.TwoTone.Loop; - public const string Loupe = Material.TwoTone.Loupe; - public const string LowPriority = Material.TwoTone.LowPriority; - public const string Loyalty = Material.TwoTone.Loyalty; - public const string LteMobiledata = Material.TwoTone.LteMobiledata; - public const string LtePlusMobiledata = Material.TwoTone.LtePlusMobiledata; - public const string Luggage = Material.TwoTone.Luggage; - public const string LunchDining = Material.TwoTone.LunchDining; - public const string Lyrics = Material.TwoTone.Lyrics; - public const string MacroOff = Material.TwoTone.MacroOff; - public const string Mail = Material.TwoTone.Mail; - public const string MailLock = Material.TwoTone.MailLock; - public const string MailOutline = Material.TwoTone.MailOutline; - public const string Male = Material.TwoTone.Male; - public const string Man = Material.TwoTone.Man; - public const string Man2 = Material.TwoTone.Man2; - public const string Man3 = Material.TwoTone.Man3; - public const string Man4 = Material.TwoTone.Man4; - public const string ManageAccounts = Material.TwoTone.ManageAccounts; - public const string ManageHistory = Material.TwoTone.ManageHistory; - public const string ManageSearch = Material.TwoTone.ManageSearch; - public const string Map = Material.TwoTone.Map; - public const string MapsHomeWork = Material.TwoTone.MapsHomeWork; - public const string MapsUgc = Material.TwoTone.MapsUgc; - public const string Margin = Material.TwoTone.Margin; - public const string MarkAsUnread = Material.TwoTone.MarkAsUnread; - public const string MarkChatRead = Material.TwoTone.MarkChatRead; - public const string MarkChatUnread = Material.TwoTone.MarkChatUnread; - public const string MarkEmailRead = Material.TwoTone.MarkEmailRead; - public const string MarkEmailUnread = Material.TwoTone.MarkEmailUnread; - public const string MarkUnreadChatAlt = Material.TwoTone.MarkUnreadChatAlt; - public const string Markunread = Material.TwoTone.Markunread; - public const string MarkunreadMailbox = Material.TwoTone.MarkunreadMailbox; - public const string Masks = Material.TwoTone.Masks; - public const string Maximize = Material.TwoTone.Maximize; - public const string MediaBluetoothOff = Material.TwoTone.MediaBluetoothOff; - public const string MediaBluetoothOn = Material.TwoTone.MediaBluetoothOn; - public const string Mediation = Material.TwoTone.Mediation; - public const string MedicalInformation = Material.TwoTone.MedicalInformation; - public const string MedicalServices = Material.TwoTone.MedicalServices; - public const string Medication = Material.TwoTone.Medication; - public const string MedicationLiquid = Material.TwoTone.MedicationLiquid; - public const string MeetingRoom = Material.TwoTone.MeetingRoom; - public const string Memory = Material.TwoTone.Memory; - public const string Menu = Material.TwoTone.Menu; - public const string MenuBook = Material.TwoTone.MenuBook; - public const string MenuOpen = Material.TwoTone.MenuOpen; - public const string Merge = Material.TwoTone.Merge; - public const string MergeType = Material.TwoTone.MergeType; - public const string Message = Material.TwoTone.Message; - public const string Mic = Material.TwoTone.Mic; - public const string MicExternalOff = Material.TwoTone.MicExternalOff; - public const string MicExternalOn = Material.TwoTone.MicExternalOn; - public const string MicNone = Material.TwoTone.MicNone; - public const string MicOff = Material.TwoTone.MicOff; - public const string Microwave = Material.TwoTone.Microwave; - public const string MilitaryTech = Material.TwoTone.MilitaryTech; - public const string Minimize = Material.TwoTone.Minimize; - public const string MinorCrash = Material.TwoTone.MinorCrash; - public const string MiscellaneousServices = Material.TwoTone.MiscellaneousServices; - public const string MissedVideoCall = Material.TwoTone.MissedVideoCall; - public const string Mms = Material.TwoTone.Mms; - public const string MobileFriendly = Material.TwoTone.MobileFriendly; - public const string MobileOff = Material.TwoTone.MobileOff; - public const string MobileScreenShare = Material.TwoTone.MobileScreenShare; - public const string MobiledataOff = Material.TwoTone.MobiledataOff; - public const string Mode = Material.TwoTone.Mode; - public const string ModeComment = Material.TwoTone.ModeComment; - public const string ModeEdit = Material.TwoTone.ModeEdit; - public const string ModeEditOutline = Material.TwoTone.ModeEditOutline; - public const string ModeFanOff = Material.TwoTone.ModeFanOff; - public const string ModeNight = Material.TwoTone.ModeNight; - public const string ModeOfTravel = Material.TwoTone.ModeOfTravel; - public const string ModeStandby = Material.TwoTone.ModeStandby; - public const string ModelTraining = Material.TwoTone.ModelTraining; - public const string MonetizationOn = Material.TwoTone.MonetizationOn; - public const string Money = Material.TwoTone.Money; - public const string MoneyOff = Material.TwoTone.MoneyOff; - public const string MoneyOffCsred = Material.TwoTone.MoneyOffCsred; - public const string Monitor = Material.TwoTone.Monitor; - public const string MonitorHeart = Material.TwoTone.MonitorHeart; - public const string MonitorWeight = Material.TwoTone.MonitorWeight; - public const string MonochromePhotos = Material.TwoTone.MonochromePhotos; - public const string Mood = Material.TwoTone.Mood; - public const string MoodBad = Material.TwoTone.MoodBad; - public const string Moped = Material.TwoTone.Moped; - public const string More = Material.TwoTone.More; - public const string MoreHoriz = Material.TwoTone.MoreHoriz; - public const string MoreTime = Material.TwoTone.MoreTime; - public const string MoreVert = Material.TwoTone.MoreVert; - public const string Mosque = Material.TwoTone.Mosque; - public const string MotionPhotosAuto = Material.TwoTone.MotionPhotosAuto; - public const string MotionPhotosOff = Material.TwoTone.MotionPhotosOff; - public const string MotionPhotosOn = Material.TwoTone.MotionPhotosOn; - public const string MotionPhotosPause = Material.TwoTone.MotionPhotosPause; - public const string MotionPhotosPaused = Material.TwoTone.MotionPhotosPaused; - public const string Mouse = Material.TwoTone.Mouse; - public const string MoveDown = Material.TwoTone.MoveDown; - public const string MoveToInbox = Material.TwoTone.MoveToInbox; - public const string MoveUp = Material.TwoTone.MoveUp; - public const string Movie = Material.TwoTone.Movie; - public const string MovieCreation = Material.TwoTone.MovieCreation; - public const string MovieFilter = Material.TwoTone.MovieFilter; - public const string Moving = Material.TwoTone.Moving; - public const string Mp = Material.TwoTone.Mp; - public const string MultilineChart = Material.TwoTone.MultilineChart; - public const string MultipleStop = Material.TwoTone.MultipleStop; - public const string Museum = Material.TwoTone.Museum; - public const string MusicNote = Material.TwoTone.MusicNote; - public const string MusicOff = Material.TwoTone.MusicOff; - public const string MusicVideo = Material.TwoTone.MusicVideo; - public const string MyLocation = Material.TwoTone.MyLocation; - public const string Nat = Material.TwoTone.Nat; - public const string Nature = Material.TwoTone.Nature; - public const string NaturePeople = Material.TwoTone.NaturePeople; - public const string NavigateBefore = Material.TwoTone.NavigateBefore; - public const string NavigateNext = Material.TwoTone.NavigateNext; - public const string Navigation = Material.TwoTone.Navigation; - public const string NearMe = Material.TwoTone.NearMe; - public const string NearMeDisabled = Material.TwoTone.NearMeDisabled; - public const string NearbyError = Material.TwoTone.NearbyError; - public const string NearbyOff = Material.TwoTone.NearbyOff; - public const string NestCamWiredStand = Material.TwoTone.NestCamWiredStand; - public const string NetworkCell = Material.TwoTone.NetworkCell; - public const string NetworkCheck = Material.TwoTone.NetworkCheck; - public const string NetworkLocked = Material.TwoTone.NetworkLocked; - public const string NetworkPing = Material.TwoTone.NetworkPing; - public const string NetworkWifi = Material.TwoTone.NetworkWifi; - public const string NetworkWifi1Bar = Material.TwoTone.NetworkWifi1Bar; - public const string NetworkWifi2Bar = Material.TwoTone.NetworkWifi2Bar; - public const string NetworkWifi3Bar = Material.TwoTone.NetworkWifi3Bar; - public const string NewLabel = Material.TwoTone.NewLabel; - public const string NewReleases = Material.TwoTone.NewReleases; - public const string Newspaper = Material.TwoTone.Newspaper; - public const string NextPlan = Material.TwoTone.NextPlan; - public const string NextWeek = Material.TwoTone.NextWeek; - public const string Nfc = Material.TwoTone.Nfc; - public const string NightShelter = Material.TwoTone.NightShelter; - public const string Nightlife = Material.TwoTone.Nightlife; - public const string Nightlight = Material.TwoTone.Nightlight; - public const string NightlightRound = Material.TwoTone.NightlightRound; - public const string NightsStay = Material.TwoTone.NightsStay; - public const string NoAccounts = Material.TwoTone.NoAccounts; - public const string NoAdultContent = Material.TwoTone.NoAdultContent; - public const string NoBackpack = Material.TwoTone.NoBackpack; - public const string NoCell = Material.TwoTone.NoCell; - public const string NoCrash = Material.TwoTone.NoCrash; - public const string NoDrinks = Material.TwoTone.NoDrinks; - public const string NoEncryption = Material.TwoTone.NoEncryption; - public const string NoEncryptionGmailerrorred = Material.TwoTone.NoEncryptionGmailerrorred; - public const string NoFlash = Material.TwoTone.NoFlash; - public const string NoFood = Material.TwoTone.NoFood; - public const string NoLuggage = Material.TwoTone.NoLuggage; - public const string NoMeals = Material.TwoTone.NoMeals; - public const string NoMeetingRoom = Material.TwoTone.NoMeetingRoom; - public const string NoPhotography = Material.TwoTone.NoPhotography; - public const string NoSim = Material.TwoTone.NoSim; - public const string NoStroller = Material.TwoTone.NoStroller; - public const string NoTransfer = Material.TwoTone.NoTransfer; - public const string NoiseAware = Material.TwoTone.NoiseAware; - public const string NoiseControlOff = Material.TwoTone.NoiseControlOff; - public const string NordicWalking = Material.TwoTone.NordicWalking; - public const string North = Material.TwoTone.North; - public const string NorthEast = Material.TwoTone.NorthEast; - public const string NorthWest = Material.TwoTone.NorthWest; - public const string NotAccessible = Material.TwoTone.NotAccessible; - public const string NotInterested = Material.TwoTone.NotInterested; - public const string NotListedLocation = Material.TwoTone.NotListedLocation; - public const string NotStarted = Material.TwoTone.NotStarted; - public const string Note = Material.TwoTone.Note; - public const string NoteAdd = Material.TwoTone.NoteAdd; - public const string NoteAlt = Material.TwoTone.NoteAlt; - public const string Notes = Material.TwoTone.Notes; - public const string NotificationAdd = Material.TwoTone.NotificationAdd; - public const string NotificationImportant = Material.TwoTone.NotificationImportant; - public const string Notifications = Material.TwoTone.Notifications; - public const string NotificationsActive = Material.TwoTone.NotificationsActive; - public const string NotificationsNone = Material.TwoTone.NotificationsNone; - public const string NotificationsOff = Material.TwoTone.NotificationsOff; - public const string NotificationsPaused = Material.TwoTone.NotificationsPaused; - public const string Numbers = Material.TwoTone.Numbers; - public const string OfflineBolt = Material.TwoTone.OfflineBolt; - public const string OfflinePin = Material.TwoTone.OfflinePin; - public const string OfflineShare = Material.TwoTone.OfflineShare; - public const string OilBarrel = Material.TwoTone.OilBarrel; - public const string OnDeviceTraining = Material.TwoTone.OnDeviceTraining; - public const string OndemandVideo = Material.TwoTone.OndemandVideo; - public const string OnlinePrediction = Material.TwoTone.OnlinePrediction; - public const string Opacity = Material.TwoTone.Opacity; - public const string OpenInBrowser = Material.TwoTone.OpenInBrowser; - public const string OpenInFull = Material.TwoTone.OpenInFull; - public const string OpenInNew = Material.TwoTone.OpenInNew; - public const string OpenInNewOff = Material.TwoTone.OpenInNewOff; - public const string OpenWith = Material.TwoTone.OpenWith; - public const string OtherHouses = Material.TwoTone.OtherHouses; - public const string Outbound = Material.TwoTone.Outbound; - public const string Outbox = Material.TwoTone.Outbox; - public const string OutdoorGrill = Material.TwoTone.OutdoorGrill; - public const string Outlet = Material.TwoTone.Outlet; - public const string OutlinedFlag = Material.TwoTone.OutlinedFlag; - public const string Output = Material.TwoTone.Output; - public const string Padding = Material.TwoTone.Padding; - public const string Pages = Material.TwoTone.Pages; - public const string Pageview = Material.TwoTone.Pageview; - public const string Paid = Material.TwoTone.Paid; - public const string Palette = Material.TwoTone.Palette; - public const string PanTool = Material.TwoTone.PanTool; - public const string PanToolAlt = Material.TwoTone.PanToolAlt; - public const string Panorama = Material.TwoTone.Panorama; - public const string PanoramaFishEye = Material.TwoTone.PanoramaFishEye; - public const string PanoramaHorizontal = Material.TwoTone.PanoramaHorizontal; - public const string PanoramaHorizontalSelect = Material.TwoTone.PanoramaHorizontalSelect; - public const string PanoramaPhotosphere = Material.TwoTone.PanoramaPhotosphere; - public const string PanoramaPhotosphereSelect = Material.TwoTone.PanoramaPhotosphereSelect; - public const string PanoramaVertical = Material.TwoTone.PanoramaVertical; - public const string PanoramaVerticalSelect = Material.TwoTone.PanoramaVerticalSelect; - public const string PanoramaWideAngle = Material.TwoTone.PanoramaWideAngle; - public const string PanoramaWideAngleSelect = Material.TwoTone.PanoramaWideAngleSelect; - public const string Paragliding = Material.TwoTone.Paragliding; - public const string Park = Material.TwoTone.Park; - public const string PartyMode = Material.TwoTone.PartyMode; - public const string Password = Material.TwoTone.Password; - public const string Pattern = Material.TwoTone.Pattern; - public const string Pause = Material.TwoTone.Pause; - public const string PauseCircle = Material.TwoTone.PauseCircle; - public const string PauseCircleFilled = Material.TwoTone.PauseCircleFilled; - public const string PauseCircleOutline = Material.TwoTone.PauseCircleOutline; - public const string PausePresentation = Material.TwoTone.PausePresentation; - public const string Payment = Material.TwoTone.Payment; - public const string Payments = Material.TwoTone.Payments; - public const string PedalBike = Material.TwoTone.PedalBike; - public const string Pending = Material.TwoTone.Pending; - public const string PendingActions = Material.TwoTone.PendingActions; - public const string Pentagon = Material.TwoTone.Pentagon; - public const string People = Material.TwoTone.People; - public const string PeopleAlt = Material.TwoTone.PeopleAlt; - public const string PeopleOutline = Material.TwoTone.PeopleOutline; - public const string Percent = Material.TwoTone.Percent; - public const string PermCameraMic = Material.TwoTone.PermCameraMic; - public const string PermContactCalendar = Material.TwoTone.PermContactCalendar; - public const string PermDataSetting = Material.TwoTone.PermDataSetting; - public const string PermDeviceInformation = Material.TwoTone.PermDeviceInformation; - public const string PermIdentity = Material.TwoTone.PermIdentity; - public const string PermMedia = Material.TwoTone.PermMedia; - public const string PermPhoneMsg = Material.TwoTone.PermPhoneMsg; - public const string PermScanWifi = Material.TwoTone.PermScanWifi; - public const string Person = Material.TwoTone.Person; - public const string Person2 = Material.TwoTone.Person2; - public const string Person3 = Material.TwoTone.Person3; - public const string Person4 = Material.TwoTone.Person4; - public const string PersonAdd = Material.TwoTone.PersonAdd; - public const string PersonAddAlt = Material.TwoTone.PersonAddAlt; - public const string PersonAddAlt1 = Material.TwoTone.PersonAddAlt1; - public const string PersonAddDisabled = Material.TwoTone.PersonAddDisabled; - public const string PersonOff = Material.TwoTone.PersonOff; - public const string PersonOutline = Material.TwoTone.PersonOutline; - public const string PersonPin = Material.TwoTone.PersonPin; - public const string PersonPinCircle = Material.TwoTone.PersonPinCircle; - public const string PersonRemove = Material.TwoTone.PersonRemove; - public const string PersonRemoveAlt1 = Material.TwoTone.PersonRemoveAlt1; - public const string PersonSearch = Material.TwoTone.PersonSearch; - public const string PersonalInjury = Material.TwoTone.PersonalInjury; - public const string PersonalVideo = Material.TwoTone.PersonalVideo; - public const string PestControl = Material.TwoTone.PestControl; - public const string PestControlRodent = Material.TwoTone.PestControlRodent; - public const string Pets = Material.TwoTone.Pets; - public const string Phishing = Material.TwoTone.Phishing; - public const string Phone = Material.TwoTone.Phone; - public const string PhoneAndroid = Material.TwoTone.PhoneAndroid; - public const string PhoneBluetoothSpeaker = Material.TwoTone.PhoneBluetoothSpeaker; - public const string PhoneCallback = Material.TwoTone.PhoneCallback; - public const string PhoneDisabled = Material.TwoTone.PhoneDisabled; - public const string PhoneEnabled = Material.TwoTone.PhoneEnabled; - public const string PhoneForwarded = Material.TwoTone.PhoneForwarded; - public const string PhoneIphone = Material.TwoTone.PhoneIphone; - public const string PhoneLocked = Material.TwoTone.PhoneLocked; - public const string PhoneMissed = Material.TwoTone.PhoneMissed; - public const string PhonePaused = Material.TwoTone.PhonePaused; - public const string Phonelink = Material.TwoTone.Phonelink; - public const string PhonelinkErase = Material.TwoTone.PhonelinkErase; - public const string PhonelinkLock = Material.TwoTone.PhonelinkLock; - public const string PhonelinkOff = Material.TwoTone.PhonelinkOff; - public const string PhonelinkRing = Material.TwoTone.PhonelinkRing; - public const string PhonelinkSetup = Material.TwoTone.PhonelinkSetup; - public const string Photo = Material.TwoTone.Photo; - public const string PhotoAlbum = Material.TwoTone.PhotoAlbum; - public const string PhotoCamera = Material.TwoTone.PhotoCamera; - public const string PhotoCameraBack = Material.TwoTone.PhotoCameraBack; - public const string PhotoCameraFront = Material.TwoTone.PhotoCameraFront; - public const string PhotoFilter = Material.TwoTone.PhotoFilter; - public const string PhotoLibrary = Material.TwoTone.PhotoLibrary; - public const string PhotoSizeSelectActual = Material.TwoTone.PhotoSizeSelectActual; - public const string PhotoSizeSelectLarge = Material.TwoTone.PhotoSizeSelectLarge; - public const string PhotoSizeSelectSmall = Material.TwoTone.PhotoSizeSelectSmall; - public const string Php = Material.TwoTone.Php; - public const string Piano = Material.TwoTone.Piano; - public const string PianoOff = Material.TwoTone.PianoOff; - public const string PictureAsPdf = Material.TwoTone.PictureAsPdf; - public const string PictureInPicture = Material.TwoTone.PictureInPicture; - public const string PictureInPictureAlt = Material.TwoTone.PictureInPictureAlt; - public const string PieChart = Material.TwoTone.PieChart; - public const string PieChartOutline = Material.TwoTone.PieChartOutline; - public const string Pin = Material.TwoTone.Pin; - public const string PinDrop = Material.TwoTone.PinDrop; - public const string PinEnd = Material.TwoTone.PinEnd; - public const string PinInvoke = Material.TwoTone.PinInvoke; - public const string Pinch = Material.TwoTone.Pinch; - public const string PivotTableChart = Material.TwoTone.PivotTableChart; - public const string Pix = Material.TwoTone.Pix; - public const string Place = Material.TwoTone.Place; - public const string Plagiarism = Material.TwoTone.Plagiarism; - public const string PlayArrow = Material.TwoTone.PlayArrow; - public const string PlayCircle = Material.TwoTone.PlayCircle; - public const string PlayCircleFilled = Material.TwoTone.PlayCircleFilled; - public const string PlayCircleOutline = Material.TwoTone.PlayCircleOutline; - public const string PlayDisabled = Material.TwoTone.PlayDisabled; - public const string PlayForWork = Material.TwoTone.PlayForWork; - public const string PlayLesson = Material.TwoTone.PlayLesson; - public const string PlaylistAdd = Material.TwoTone.PlaylistAdd; - public const string PlaylistAddCheck = Material.TwoTone.PlaylistAddCheck; - public const string PlaylistAddCheckCircle = Material.TwoTone.PlaylistAddCheckCircle; - public const string PlaylistAddCircle = Material.TwoTone.PlaylistAddCircle; - public const string PlaylistPlay = Material.TwoTone.PlaylistPlay; - public const string PlaylistRemove = Material.TwoTone.PlaylistRemove; - public const string Plumbing = Material.TwoTone.Plumbing; - public const string PlusOne = Material.TwoTone.PlusOne; - public const string Podcasts = Material.TwoTone.Podcasts; - public const string PointOfSale = Material.TwoTone.PointOfSale; - public const string Policy = Material.TwoTone.Policy; - public const string Poll = Material.TwoTone.Poll; - public const string Polyline = Material.TwoTone.Polyline; - public const string Polymer = Material.TwoTone.Polymer; - public const string Pool = Material.TwoTone.Pool; - public const string PortableWifiOff = Material.TwoTone.PortableWifiOff; - public const string Portrait = Material.TwoTone.Portrait; - public const string PostAdd = Material.TwoTone.PostAdd; - public const string Power = Material.TwoTone.Power; - public const string PowerInput = Material.TwoTone.PowerInput; - public const string PowerOff = Material.TwoTone.PowerOff; - public const string PowerSettingsNew = Material.TwoTone.PowerSettingsNew; - public const string PrecisionManufacturing = Material.TwoTone.PrecisionManufacturing; - public const string PregnantWoman = Material.TwoTone.PregnantWoman; - public const string PresentToAll = Material.TwoTone.PresentToAll; - public const string Preview = Material.TwoTone.Preview; - public const string PriceChange = Material.TwoTone.PriceChange; - public const string PriceCheck = Material.TwoTone.PriceCheck; - public const string Print = Material.TwoTone.Print; - public const string PrintDisabled = Material.TwoTone.PrintDisabled; - public const string PriorityHigh = Material.TwoTone.PriorityHigh; - public const string PrivacyTip = Material.TwoTone.PrivacyTip; - public const string PrivateConnectivity = Material.TwoTone.PrivateConnectivity; - public const string ProductionQuantityLimits = Material.TwoTone.ProductionQuantityLimits; - public const string Propane = Material.TwoTone.Propane; - public const string PropaneTank = Material.TwoTone.PropaneTank; - public const string Psychology = Material.TwoTone.Psychology; - public const string PsychologyAlt = Material.TwoTone.PsychologyAlt; - public const string Public = Material.TwoTone.Public; - public const string PublicOff = Material.TwoTone.PublicOff; - public const string Publish = Material.TwoTone.Publish; - public const string PublishedWithChanges = Material.TwoTone.PublishedWithChanges; - public const string PunchClock = Material.TwoTone.PunchClock; - public const string PushPin = Material.TwoTone.PushPin; - public const string QrCode = Material.TwoTone.QrCode; - public const string QrCode2 = Material.TwoTone.QrCode2; - public const string QrCodeScanner = Material.TwoTone.QrCodeScanner; - public const string QueryBuilder = Material.TwoTone.QueryBuilder; - public const string QueryStats = Material.TwoTone.QueryStats; - public const string QuestionAnswer = Material.TwoTone.QuestionAnswer; - public const string QuestionMark = Material.TwoTone.QuestionMark; - public const string Queue = Material.TwoTone.Queue; - public const string QueueMusic = Material.TwoTone.QueueMusic; - public const string QueuePlayNext = Material.TwoTone.QueuePlayNext; - public const string Quickreply = Material.TwoTone.Quickreply; - public const string Quiz = Material.TwoTone.Quiz; - public const string RMobiledata = Material.TwoTone.RMobiledata; - public const string Radar = Material.TwoTone.Radar; - public const string Radio = Material.TwoTone.Radio; - public const string RadioButtonChecked = Material.TwoTone.RadioButtonChecked; - public const string RadioButtonUnchecked = Material.TwoTone.RadioButtonUnchecked; - public const string RailwayAlert = Material.TwoTone.RailwayAlert; - public const string RamenDining = Material.TwoTone.RamenDining; - public const string RampLeft = Material.TwoTone.RampLeft; - public const string RampRight = Material.TwoTone.RampRight; - public const string RateReview = Material.TwoTone.RateReview; - public const string RawOff = Material.TwoTone.RawOff; - public const string RawOn = Material.TwoTone.RawOn; - public const string ReadMore = Material.TwoTone.ReadMore; - public const string RealEstateAgent = Material.TwoTone.RealEstateAgent; - public const string Receipt = Material.TwoTone.Receipt; - public const string ReceiptLong = Material.TwoTone.ReceiptLong; - public const string RecentActors = Material.TwoTone.RecentActors; - public const string Recommend = Material.TwoTone.Recommend; - public const string RecordVoiceOver = Material.TwoTone.RecordVoiceOver; - public const string Rectangle = Material.TwoTone.Rectangle; - public const string Recycling = Material.TwoTone.Recycling; - public const string Redeem = Material.TwoTone.Redeem; - public const string Redo = Material.TwoTone.Redo; - public const string ReduceCapacity = Material.TwoTone.ReduceCapacity; - public const string Refresh = Material.TwoTone.Refresh; - public const string RememberMe = Material.TwoTone.RememberMe; - public const string Remove = Material.TwoTone.Remove; - public const string RemoveCircle = Material.TwoTone.RemoveCircle; - public const string RemoveCircleOutline = Material.TwoTone.RemoveCircleOutline; - public const string RemoveDone = Material.TwoTone.RemoveDone; - public const string RemoveFromQueue = Material.TwoTone.RemoveFromQueue; - public const string RemoveModerator = Material.TwoTone.RemoveModerator; - public const string RemoveRedEye = Material.TwoTone.RemoveRedEye; - public const string RemoveRoad = Material.TwoTone.RemoveRoad; - public const string RemoveShoppingCart = Material.TwoTone.RemoveShoppingCart; - public const string Reorder = Material.TwoTone.Reorder; - public const string Repartition = Material.TwoTone.Repartition; - public const string Repeat = Material.TwoTone.Repeat; - public const string RepeatOn = Material.TwoTone.RepeatOn; - public const string RepeatOne = Material.TwoTone.RepeatOne; - public const string RepeatOneOn = Material.TwoTone.RepeatOneOn; - public const string Replay = Material.TwoTone.Replay; - public const string Replay10 = Material.TwoTone.Replay10; - public const string Replay30 = Material.TwoTone.Replay30; - public const string Replay5 = Material.TwoTone.Replay5; - public const string ReplayCircleFilled = Material.TwoTone.ReplayCircleFilled; - public const string Reply = Material.TwoTone.Reply; - public const string ReplyAll = Material.TwoTone.ReplyAll; - public const string Report = Material.TwoTone.Report; - public const string ReportGmailerrorred = Material.TwoTone.ReportGmailerrorred; - public const string ReportOff = Material.TwoTone.ReportOff; - public const string ReportProblem = Material.TwoTone.ReportProblem; - public const string RequestPage = Material.TwoTone.RequestPage; - public const string RequestQuote = Material.TwoTone.RequestQuote; - public const string ResetTv = Material.TwoTone.ResetTv; - public const string RestartAlt = Material.TwoTone.RestartAlt; - public const string Restaurant = Material.TwoTone.Restaurant; - public const string RestaurantMenu = Material.TwoTone.RestaurantMenu; - public const string Restore = Material.TwoTone.Restore; - public const string RestoreFromTrash = Material.TwoTone.RestoreFromTrash; - public const string RestorePage = Material.TwoTone.RestorePage; - public const string Reviews = Material.TwoTone.Reviews; - public const string RiceBowl = Material.TwoTone.RiceBowl; - public const string RingVolume = Material.TwoTone.RingVolume; - public const string Rocket = Material.TwoTone.Rocket; - public const string RocketLaunch = Material.TwoTone.RocketLaunch; - public const string RollerShades = Material.TwoTone.RollerShades; - public const string RollerShadesClosed = Material.TwoTone.RollerShadesClosed; - public const string RollerSkating = Material.TwoTone.RollerSkating; - public const string Roofing = Material.TwoTone.Roofing; - public const string Room = Material.TwoTone.Room; - public const string RoomPreferences = Material.TwoTone.RoomPreferences; - public const string RoomService = Material.TwoTone.RoomService; - public const string Rotate90DegreesCcw = Material.TwoTone.Rotate90DegreesCcw; - public const string Rotate90DegreesCw = Material.TwoTone.Rotate90DegreesCw; - public const string RotateLeft = Material.TwoTone.RotateLeft; - public const string RotateRight = Material.TwoTone.RotateRight; - public const string RoundaboutLeft = Material.TwoTone.RoundaboutLeft; - public const string RoundaboutRight = Material.TwoTone.RoundaboutRight; - public const string RoundedCorner = Material.TwoTone.RoundedCorner; - public const string Route = Material.TwoTone.Route; - public const string Router = Material.TwoTone.Router; - public const string Rowing = Material.TwoTone.Rowing; - public const string RssFeed = Material.TwoTone.RssFeed; - public const string Rsvp = Material.TwoTone.Rsvp; - public const string Rtt = Material.TwoTone.Rtt; - public const string Rule = Material.TwoTone.Rule; - public const string RuleFolder = Material.TwoTone.RuleFolder; - public const string RunCircle = Material.TwoTone.RunCircle; - public const string RunningWithErrors = Material.TwoTone.RunningWithErrors; - public const string RvHookup = Material.TwoTone.RvHookup; - public const string SafetyCheck = Material.TwoTone.SafetyCheck; - public const string SafetyDivider = Material.TwoTone.SafetyDivider; - public const string Sailing = Material.TwoTone.Sailing; - public const string Sanitizer = Material.TwoTone.Sanitizer; - public const string Satellite = Material.TwoTone.Satellite; - public const string SatelliteAlt = Material.TwoTone.SatelliteAlt; - public const string Save = Material.TwoTone.Save; - public const string SaveAlt = Material.TwoTone.SaveAlt; - public const string SaveAs = Material.TwoTone.SaveAs; - public const string SavedSearch = Material.TwoTone.SavedSearch; - public const string Savings = Material.TwoTone.Savings; - public const string Scale = Material.TwoTone.Scale; - public const string Scanner = Material.TwoTone.Scanner; - public const string ScatterPlot = Material.TwoTone.ScatterPlot; - public const string Schedule = Material.TwoTone.Schedule; - public const string ScheduleSend = Material.TwoTone.ScheduleSend; - public const string Schema = Material.TwoTone.Schema; - public const string School = Material.TwoTone.School; - public const string Science = Material.TwoTone.Science; - public const string Score = Material.TwoTone.Score; - public const string Scoreboard = Material.TwoTone.Scoreboard; - public const string ScreenLockLandscape = Material.TwoTone.ScreenLockLandscape; - public const string ScreenLockPortrait = Material.TwoTone.ScreenLockPortrait; - public const string ScreenLockRotation = Material.TwoTone.ScreenLockRotation; - public const string ScreenRotation = Material.TwoTone.ScreenRotation; - public const string ScreenRotationAlt = Material.TwoTone.ScreenRotationAlt; - public const string ScreenSearchDesktop = Material.TwoTone.ScreenSearchDesktop; - public const string ScreenShare = Material.TwoTone.ScreenShare; - public const string Screenshot = Material.TwoTone.Screenshot; - public const string ScreenshotMonitor = Material.TwoTone.ScreenshotMonitor; - public const string ScubaDiving = Material.TwoTone.ScubaDiving; - public const string Sd = Material.TwoTone.Sd; - public const string SdCard = Material.TwoTone.SdCard; - public const string SdCardAlert = Material.TwoTone.SdCardAlert; - public const string SdStorage = Material.TwoTone.SdStorage; - public const string Search = Material.TwoTone.Search; - public const string SearchOff = Material.TwoTone.SearchOff; - public const string Security = Material.TwoTone.Security; - public const string SecurityUpdate = Material.TwoTone.SecurityUpdate; - public const string SecurityUpdateGood = Material.TwoTone.SecurityUpdateGood; - public const string SecurityUpdateWarning = Material.TwoTone.SecurityUpdateWarning; - public const string Segment = Material.TwoTone.Segment; - public const string SelectAll = Material.TwoTone.SelectAll; - public const string SelfImprovement = Material.TwoTone.SelfImprovement; - public const string Sell = Material.TwoTone.Sell; - public const string Send = Material.TwoTone.Send; - public const string SendAndArchive = Material.TwoTone.SendAndArchive; - public const string SendTimeExtension = Material.TwoTone.SendTimeExtension; - public const string SendToMobile = Material.TwoTone.SendToMobile; - public const string SensorDoor = Material.TwoTone.SensorDoor; - public const string SensorOccupied = Material.TwoTone.SensorOccupied; - public const string SensorWindow = Material.TwoTone.SensorWindow; - public const string Sensors = Material.TwoTone.Sensors; - public const string SensorsOff = Material.TwoTone.SensorsOff; - public const string SentimentDissatisfied = Material.TwoTone.SentimentDissatisfied; - public const string SentimentNeutral = Material.TwoTone.SentimentNeutral; - public const string SentimentSatisfied = Material.TwoTone.SentimentSatisfied; - public const string SentimentSatisfiedAlt = Material.TwoTone.SentimentSatisfiedAlt; - public const string SentimentVeryDissatisfied = Material.TwoTone.SentimentVeryDissatisfied; - public const string SentimentVerySatisfied = Material.TwoTone.SentimentVerySatisfied; - public const string SetMeal = Material.TwoTone.SetMeal; - public const string Settings = Material.TwoTone.Settings; - public const string SettingsAccessibility = Material.TwoTone.SettingsAccessibility; - public const string SettingsApplications = Material.TwoTone.SettingsApplications; - public const string SettingsBackupRestore = Material.TwoTone.SettingsBackupRestore; - public const string SettingsBluetooth = Material.TwoTone.SettingsBluetooth; - public const string SettingsBrightness = Material.TwoTone.SettingsBrightness; - public const string SettingsCell = Material.TwoTone.SettingsCell; - public const string SettingsEthernet = Material.TwoTone.SettingsEthernet; - public const string SettingsInputAntenna = Material.TwoTone.SettingsInputAntenna; - public const string SettingsInputComponent = Material.TwoTone.SettingsInputComponent; - public const string SettingsInputComposite = Material.TwoTone.SettingsInputComposite; - public const string SettingsInputHdmi = Material.TwoTone.SettingsInputHdmi; - public const string SettingsInputSvideo = Material.TwoTone.SettingsInputSvideo; - public const string SettingsOverscan = Material.TwoTone.SettingsOverscan; - public const string SettingsPhone = Material.TwoTone.SettingsPhone; - public const string SettingsPower = Material.TwoTone.SettingsPower; - public const string SettingsRemote = Material.TwoTone.SettingsRemote; - public const string SettingsSuggest = Material.TwoTone.SettingsSuggest; - public const string SettingsSystemDaydream = Material.TwoTone.SettingsSystemDaydream; - public const string SettingsVoice = Material.TwoTone.SettingsVoice; - public const string SevereCold = Material.TwoTone.SevereCold; - public const string ShapeLine = Material.TwoTone.ShapeLine; - public const string Share = Material.TwoTone.Share; - public const string ShareLocation = Material.TwoTone.ShareLocation; - public const string Shield = Material.TwoTone.Shield; - public const string ShieldMoon = Material.TwoTone.ShieldMoon; - public const string Shop = Material.TwoTone.Shop; - public const string Shop2 = Material.TwoTone.Shop2; - public const string ShopTwo = Material.TwoTone.ShopTwo; - public const string ShoppingBag = Material.TwoTone.ShoppingBag; - public const string ShoppingBasket = Material.TwoTone.ShoppingBasket; - public const string ShoppingCart = Material.TwoTone.ShoppingCart; - public const string ShoppingCartCheckout = Material.TwoTone.ShoppingCartCheckout; - public const string ShortText = Material.TwoTone.ShortText; - public const string Shortcut = Material.TwoTone.Shortcut; - public const string ShowChart = Material.TwoTone.ShowChart; - public const string Shower = Material.TwoTone.Shower; - public const string Shuffle = Material.TwoTone.Shuffle; - public const string ShuffleOn = Material.TwoTone.ShuffleOn; - public const string ShutterSpeed = Material.TwoTone.ShutterSpeed; - public const string Sick = Material.TwoTone.Sick; - public const string SignLanguage = Material.TwoTone.SignLanguage; - public const string SignalCellular0Bar = Material.TwoTone.SignalCellular0Bar; - public const string SignalCellular4Bar = Material.TwoTone.SignalCellular4Bar; - public const string SignalCellularAlt = Material.TwoTone.SignalCellularAlt; - public const string SignalCellularAlt1Bar = Material.TwoTone.SignalCellularAlt1Bar; - public const string SignalCellularAlt2Bar = Material.TwoTone.SignalCellularAlt2Bar; - public const string SignalCellularConnectedNoInternet0Bar = Material.TwoTone.SignalCellularConnectedNoInternet0Bar; - public const string SignalCellularConnectedNoInternet4Bar = Material.TwoTone.SignalCellularConnectedNoInternet4Bar; - public const string SignalCellularNoSim = Material.TwoTone.SignalCellularNoSim; - public const string SignalCellularNodata = Material.TwoTone.SignalCellularNodata; - public const string SignalCellularNull = Material.TwoTone.SignalCellularNull; - public const string SignalCellularOff = Material.TwoTone.SignalCellularOff; - public const string SignalWifi0Bar = Material.TwoTone.SignalWifi0Bar; - public const string SignalWifi4Bar = Material.TwoTone.SignalWifi4Bar; - public const string SignalWifi4BarLock = Material.TwoTone.SignalWifi4BarLock; - public const string SignalWifiBad = Material.TwoTone.SignalWifiBad; - public const string SignalWifiConnectedNoInternet4 = Material.TwoTone.SignalWifiConnectedNoInternet4; - public const string SignalWifiOff = Material.TwoTone.SignalWifiOff; - public const string SignalWifiStatusbar4Bar = Material.TwoTone.SignalWifiStatusbar4Bar; - public const string SignalWifiStatusbarConnectedNoInternet4 = Material.TwoTone.SignalWifiStatusbarConnectedNoInternet4; - public const string SignalWifiStatusbarNull = Material.TwoTone.SignalWifiStatusbarNull; - public const string Signpost = Material.TwoTone.Signpost; - public const string SimCard = Material.TwoTone.SimCard; - public const string SimCardAlert = Material.TwoTone.SimCardAlert; - public const string SimCardDownload = Material.TwoTone.SimCardDownload; - public const string SingleBed = Material.TwoTone.SingleBed; - public const string Sip = Material.TwoTone.Sip; - public const string Skateboarding = Material.TwoTone.Skateboarding; - public const string SkipNext = Material.TwoTone.SkipNext; - public const string SkipPrevious = Material.TwoTone.SkipPrevious; - public const string Sledding = Material.TwoTone.Sledding; - public const string Slideshow = Material.TwoTone.Slideshow; - public const string SlowMotionVideo = Material.TwoTone.SlowMotionVideo; - public const string SmartButton = Material.TwoTone.SmartButton; - public const string SmartDisplay = Material.TwoTone.SmartDisplay; - public const string SmartScreen = Material.TwoTone.SmartScreen; - public const string SmartToy = Material.TwoTone.SmartToy; - public const string Smartphone = Material.TwoTone.Smartphone; - public const string SmokeFree = Material.TwoTone.SmokeFree; - public const string SmokingRooms = Material.TwoTone.SmokingRooms; - public const string Sms = Material.TwoTone.Sms; - public const string SmsFailed = Material.TwoTone.SmsFailed; - public const string SnippetFolder = Material.TwoTone.SnippetFolder; - public const string Snooze = Material.TwoTone.Snooze; - public const string Snowboarding = Material.TwoTone.Snowboarding; - public const string Snowmobile = Material.TwoTone.Snowmobile; - public const string Snowshoeing = Material.TwoTone.Snowshoeing; - public const string Soap = Material.TwoTone.Soap; - public const string SocialDistance = Material.TwoTone.SocialDistance; - public const string SolarPower = Material.TwoTone.SolarPower; - public const string Sort = Material.TwoTone.Sort; - public const string SortByAlpha = Material.TwoTone.SortByAlpha; - public const string Sos = Material.TwoTone.Sos; - public const string SoupKitchen = Material.TwoTone.SoupKitchen; - public const string Source = Material.TwoTone.Source; - public const string South = Material.TwoTone.South; - public const string SouthAmerica = Material.TwoTone.SouthAmerica; - public const string SouthEast = Material.TwoTone.SouthEast; - public const string SouthWest = Material.TwoTone.SouthWest; - public const string Spa = Material.TwoTone.Spa; - public const string SpaceBar = Material.TwoTone.SpaceBar; - public const string SpaceDashboard = Material.TwoTone.SpaceDashboard; - public const string SpatialAudio = Material.TwoTone.SpatialAudio; - public const string SpatialAudioOff = Material.TwoTone.SpatialAudioOff; - public const string SpatialTracking = Material.TwoTone.SpatialTracking; - public const string Speaker = Material.TwoTone.Speaker; - public const string SpeakerGroup = Material.TwoTone.SpeakerGroup; - public const string SpeakerNotes = Material.TwoTone.SpeakerNotes; - public const string SpeakerNotesOff = Material.TwoTone.SpeakerNotesOff; - public const string SpeakerPhone = Material.TwoTone.SpeakerPhone; - public const string Speed = Material.TwoTone.Speed; - public const string Spellcheck = Material.TwoTone.Spellcheck; - public const string Splitscreen = Material.TwoTone.Splitscreen; - public const string Spoke = Material.TwoTone.Spoke; - public const string Sports = Material.TwoTone.Sports; - public const string SportsBar = Material.TwoTone.SportsBar; - public const string SportsBaseball = Material.TwoTone.SportsBaseball; - public const string SportsBasketball = Material.TwoTone.SportsBasketball; - public const string SportsCricket = Material.TwoTone.SportsCricket; - public const string SportsEsports = Material.TwoTone.SportsEsports; - public const string SportsFootball = Material.TwoTone.SportsFootball; - public const string SportsGolf = Material.TwoTone.SportsGolf; - public const string SportsGymnastics = Material.TwoTone.SportsGymnastics; - public const string SportsHandball = Material.TwoTone.SportsHandball; - public const string SportsHockey = Material.TwoTone.SportsHockey; - public const string SportsKabaddi = Material.TwoTone.SportsKabaddi; - public const string SportsMartialArts = Material.TwoTone.SportsMartialArts; - public const string SportsMma = Material.TwoTone.SportsMma; - public const string SportsMotorsports = Material.TwoTone.SportsMotorsports; - public const string SportsRugby = Material.TwoTone.SportsRugby; - public const string SportsScore = Material.TwoTone.SportsScore; - public const string SportsSoccer = Material.TwoTone.SportsSoccer; - public const string SportsTennis = Material.TwoTone.SportsTennis; - public const string SportsVolleyball = Material.TwoTone.SportsVolleyball; - public const string Square = Material.TwoTone.Square; - public const string SquareFoot = Material.TwoTone.SquareFoot; - public const string SsidChart = Material.TwoTone.SsidChart; - public const string StackedBarChart = Material.TwoTone.StackedBarChart; - public const string StackedLineChart = Material.TwoTone.StackedLineChart; - public const string Stadium = Material.TwoTone.Stadium; - public const string Stairs = Material.TwoTone.Stairs; - public const string Star = Material.TwoTone.Star; - public const string StarBorder = Material.TwoTone.StarBorder; - public const string StarBorderPurple500 = Material.TwoTone.StarBorderPurple500; - public const string StarHalf = Material.TwoTone.StarHalf; - public const string StarOutline = Material.TwoTone.StarOutline; - public const string StarPurple500 = Material.TwoTone.StarPurple500; - public const string StarRate = Material.TwoTone.StarRate; - public const string Stars = Material.TwoTone.Stars; - public const string Start = Material.TwoTone.Start; - public const string StayCurrentLandscape = Material.TwoTone.StayCurrentLandscape; - public const string StayCurrentPortrait = Material.TwoTone.StayCurrentPortrait; - public const string StayPrimaryLandscape = Material.TwoTone.StayPrimaryLandscape; - public const string StayPrimaryPortrait = Material.TwoTone.StayPrimaryPortrait; - public const string StickyNote2 = Material.TwoTone.StickyNote2; - public const string Stop = Material.TwoTone.Stop; - public const string StopCircle = Material.TwoTone.StopCircle; - public const string StopScreenShare = Material.TwoTone.StopScreenShare; - public const string Storage = Material.TwoTone.Storage; - public const string Store = Material.TwoTone.Store; - public const string StoreMallDirectory = Material.TwoTone.StoreMallDirectory; - public const string Storefront = Material.TwoTone.Storefront; - public const string Storm = Material.TwoTone.Storm; - public const string Straight = Material.TwoTone.Straight; - public const string Straighten = Material.TwoTone.Straighten; - public const string Stream = Material.TwoTone.Stream; - public const string Streetview = Material.TwoTone.Streetview; - public const string StrikethroughS = Material.TwoTone.StrikethroughS; - public const string Stroller = Material.TwoTone.Stroller; - public const string Style = Material.TwoTone.Style; - public const string SubdirectoryArrowLeft = Material.TwoTone.SubdirectoryArrowLeft; - public const string SubdirectoryArrowRight = Material.TwoTone.SubdirectoryArrowRight; - public const string Subject = Material.TwoTone.Subject; - public const string Subscript = Material.TwoTone.Subscript; - public const string Subscriptions = Material.TwoTone.Subscriptions; - public const string Subtitles = Material.TwoTone.Subtitles; - public const string SubtitlesOff = Material.TwoTone.SubtitlesOff; - public const string Subway = Material.TwoTone.Subway; - public const string Summarize = Material.TwoTone.Summarize; - public const string Superscript = Material.TwoTone.Superscript; - public const string SupervisedUserCircle = Material.TwoTone.SupervisedUserCircle; - public const string SupervisorAccount = Material.TwoTone.SupervisorAccount; - public const string Support = Material.TwoTone.Support; - public const string SupportAgent = Material.TwoTone.SupportAgent; - public const string Surfing = Material.TwoTone.Surfing; - public const string SurroundSound = Material.TwoTone.SurroundSound; - public const string SwapCalls = Material.TwoTone.SwapCalls; - public const string SwapHoriz = Material.TwoTone.SwapHoriz; - public const string SwapHorizontalCircle = Material.TwoTone.SwapHorizontalCircle; - public const string SwapVert = Material.TwoTone.SwapVert; - public const string SwapVerticalCircle = Material.TwoTone.SwapVerticalCircle; - public const string Swipe = Material.TwoTone.Swipe; - public const string SwipeDown = Material.TwoTone.SwipeDown; - public const string SwipeDownAlt = Material.TwoTone.SwipeDownAlt; - public const string SwipeLeft = Material.TwoTone.SwipeLeft; - public const string SwipeLeftAlt = Material.TwoTone.SwipeLeftAlt; - public const string SwipeRight = Material.TwoTone.SwipeRight; - public const string SwipeRightAlt = Material.TwoTone.SwipeRightAlt; - public const string SwipeUp = Material.TwoTone.SwipeUp; - public const string SwipeUpAlt = Material.TwoTone.SwipeUpAlt; - public const string SwipeVertical = Material.TwoTone.SwipeVertical; - public const string SwitchAccessShortcut = Material.TwoTone.SwitchAccessShortcut; - public const string SwitchAccessShortcutAdd = Material.TwoTone.SwitchAccessShortcutAdd; - public const string SwitchAccount = Material.TwoTone.SwitchAccount; - public const string SwitchCamera = Material.TwoTone.SwitchCamera; - public const string SwitchLeft = Material.TwoTone.SwitchLeft; - public const string SwitchRight = Material.TwoTone.SwitchRight; - public const string SwitchVideo = Material.TwoTone.SwitchVideo; - public const string Synagogue = Material.TwoTone.Synagogue; - public const string Sync = Material.TwoTone.Sync; - public const string SyncAlt = Material.TwoTone.SyncAlt; - public const string SyncDisabled = Material.TwoTone.SyncDisabled; - public const string SyncLock = Material.TwoTone.SyncLock; - public const string SyncProblem = Material.TwoTone.SyncProblem; - public const string SystemSecurityUpdate = Material.TwoTone.SystemSecurityUpdate; - public const string SystemSecurityUpdateGood = Material.TwoTone.SystemSecurityUpdateGood; - public const string SystemSecurityUpdateWarning = Material.TwoTone.SystemSecurityUpdateWarning; - public const string SystemUpdate = Material.TwoTone.SystemUpdate; - public const string SystemUpdateAlt = Material.TwoTone.SystemUpdateAlt; - public const string Tab = Material.TwoTone.Tab; - public const string TabUnselected = Material.TwoTone.TabUnselected; - public const string TableBar = Material.TwoTone.TableBar; - public const string TableChart = Material.TwoTone.TableChart; - public const string TableRestaurant = Material.TwoTone.TableRestaurant; - public const string TableRows = Material.TwoTone.TableRows; - public const string TableView = Material.TwoTone.TableView; - public const string Tablet = Material.TwoTone.Tablet; - public const string TabletAndroid = Material.TwoTone.TabletAndroid; - public const string TabletMac = Material.TwoTone.TabletMac; - public const string Tag = Material.TwoTone.Tag; - public const string TagFaces = Material.TwoTone.TagFaces; - public const string TakeoutDining = Material.TwoTone.TakeoutDining; - public const string TapAndPlay = Material.TwoTone.TapAndPlay; - public const string Tapas = Material.TwoTone.Tapas; - public const string Task = Material.TwoTone.Task; - public const string TaskAlt = Material.TwoTone.TaskAlt; - public const string TaxiAlert = Material.TwoTone.TaxiAlert; - public const string TempleBuddhist = Material.TwoTone.TempleBuddhist; - public const string TempleHindu = Material.TwoTone.TempleHindu; - public const string Terminal = Material.TwoTone.Terminal; - public const string Terrain = Material.TwoTone.Terrain; - public const string TextDecrease = Material.TwoTone.TextDecrease; - public const string TextFields = Material.TwoTone.TextFields; - public const string TextFormat = Material.TwoTone.TextFormat; - public const string TextIncrease = Material.TwoTone.TextIncrease; - public const string TextRotateUp = Material.TwoTone.TextRotateUp; - public const string TextRotateVertical = Material.TwoTone.TextRotateVertical; - public const string TextRotationAngledown = Material.TwoTone.TextRotationAngledown; - public const string TextRotationAngleup = Material.TwoTone.TextRotationAngleup; - public const string TextRotationDown = Material.TwoTone.TextRotationDown; - public const string TextRotationNone = Material.TwoTone.TextRotationNone; - public const string TextSnippet = Material.TwoTone.TextSnippet; - public const string Textsms = Material.TwoTone.Textsms; - public const string Texture = Material.TwoTone.Texture; - public const string TheaterComedy = Material.TwoTone.TheaterComedy; - public const string Theaters = Material.TwoTone.Theaters; - public const string Thermostat = Material.TwoTone.Thermostat; - public const string ThermostatAuto = Material.TwoTone.ThermostatAuto; - public const string ThumbDown = Material.TwoTone.ThumbDown; - public const string ThumbDownAlt = Material.TwoTone.ThumbDownAlt; - public const string ThumbDownOffAlt = Material.TwoTone.ThumbDownOffAlt; - public const string ThumbUp = Material.TwoTone.ThumbUp; - public const string ThumbUpAlt = Material.TwoTone.ThumbUpAlt; - public const string ThumbUpOffAlt = Material.TwoTone.ThumbUpOffAlt; - public const string ThumbsUpDown = Material.TwoTone.ThumbsUpDown; - public const string Thunderstorm = Material.TwoTone.Thunderstorm; - public const string TimeToLeave = Material.TwoTone.TimeToLeave; - public const string Timelapse = Material.TwoTone.Timelapse; - public const string Timeline = Material.TwoTone.Timeline; - public const string Timer = Material.TwoTone.Timer; - public const string Timer10 = Material.TwoTone.Timer10; - public const string Timer10Select = Material.TwoTone.Timer10Select; - public const string Timer3 = Material.TwoTone.Timer3; - public const string Timer3Select = Material.TwoTone.Timer3Select; - public const string TimerOff = Material.TwoTone.TimerOff; - public const string TipsAndUpdates = Material.TwoTone.TipsAndUpdates; - public const string TireRepair = Material.TwoTone.TireRepair; - public const string Title = Material.TwoTone.Title; - public const string Toc = Material.TwoTone.Toc; - public const string Today = Material.TwoTone.Today; - public const string ToggleOff = Material.TwoTone.ToggleOff; - public const string ToggleOn = Material.TwoTone.ToggleOn; - public const string Token = Material.TwoTone.Token; - public const string Toll = Material.TwoTone.Toll; - public const string Tonality = Material.TwoTone.Tonality; - public const string Topic = Material.TwoTone.Topic; - public const string Tornado = Material.TwoTone.Tornado; - public const string TouchApp = Material.TwoTone.TouchApp; - public const string Tour = Material.TwoTone.Tour; - public const string Toys = Material.TwoTone.Toys; - public const string TrackChanges = Material.TwoTone.TrackChanges; - public const string Traffic = Material.TwoTone.Traffic; - public const string Train = Material.TwoTone.Train; - public const string Tram = Material.TwoTone.Tram; - public const string Transcribe = Material.TwoTone.Transcribe; - public const string TransferWithinAStation = Material.TwoTone.TransferWithinAStation; - public const string Transform = Material.TwoTone.Transform; - public const string Transgender = Material.TwoTone.Transgender; - public const string TransitEnterexit = Material.TwoTone.TransitEnterexit; - public const string Translate = Material.TwoTone.Translate; - public const string TravelExplore = Material.TwoTone.TravelExplore; - public const string TrendingDown = Material.TwoTone.TrendingDown; - public const string TrendingFlat = Material.TwoTone.TrendingFlat; - public const string TrendingUp = Material.TwoTone.TrendingUp; - public const string TripOrigin = Material.TwoTone.TripOrigin; - public const string Troubleshoot = Material.TwoTone.Troubleshoot; - public const string Try = Material.TwoTone.Try; - public const string Tsunami = Material.TwoTone.Tsunami; - public const string Tty = Material.TwoTone.Tty; - public const string Tune = Material.TwoTone.Tune; - public const string Tungsten = Material.TwoTone.Tungsten; - public const string TurnLeft = Material.TwoTone.TurnLeft; - public const string TurnRight = Material.TwoTone.TurnRight; - public const string TurnSharpLeft = Material.TwoTone.TurnSharpLeft; - public const string TurnSharpRight = Material.TwoTone.TurnSharpRight; - public const string TurnSlightLeft = Material.TwoTone.TurnSlightLeft; - public const string TurnSlightRight = Material.TwoTone.TurnSlightRight; - public const string TurnedIn = Material.TwoTone.TurnedIn; - public const string TurnedInNot = Material.TwoTone.TurnedInNot; - public const string Tv = Material.TwoTone.Tv; - public const string TvOff = Material.TwoTone.TvOff; - public const string TwoWheeler = Material.TwoTone.TwoWheeler; - public const string TypeSpecimen = Material.TwoTone.TypeSpecimen; - public const string UTurnLeft = Material.TwoTone.UTurnLeft; - public const string UTurnRight = Material.TwoTone.UTurnRight; - public const string Umbrella = Material.TwoTone.Umbrella; - public const string Unarchive = Material.TwoTone.Unarchive; - public const string Undo = Material.TwoTone.Undo; - public const string UnfoldLess = Material.TwoTone.UnfoldLess; - public const string UnfoldLessDouble = Material.TwoTone.UnfoldLessDouble; - public const string UnfoldMore = Material.TwoTone.UnfoldMore; - public const string UnfoldMoreDouble = Material.TwoTone.UnfoldMoreDouble; - public const string Unpublished = Material.TwoTone.Unpublished; - public const string Unsubscribe = Material.TwoTone.Unsubscribe; - public const string Upcoming = Material.TwoTone.Upcoming; - public const string Update = Material.TwoTone.Update; - public const string UpdateDisabled = Material.TwoTone.UpdateDisabled; - public const string Upgrade = Material.TwoTone.Upgrade; - public const string Upload = Material.TwoTone.Upload; - public const string UploadFile = Material.TwoTone.UploadFile; - public const string Usb = Material.TwoTone.Usb; - public const string UsbOff = Material.TwoTone.UsbOff; - public const string Vaccines = Material.TwoTone.Vaccines; - public const string VapeFree = Material.TwoTone.VapeFree; - public const string VapingRooms = Material.TwoTone.VapingRooms; - public const string Verified = Material.TwoTone.Verified; - public const string VerifiedUser = Material.TwoTone.VerifiedUser; - public const string VerticalAlignBottom = Material.TwoTone.VerticalAlignBottom; - public const string VerticalAlignCenter = Material.TwoTone.VerticalAlignCenter; - public const string VerticalAlignTop = Material.TwoTone.VerticalAlignTop; - public const string VerticalDistribute = Material.TwoTone.VerticalDistribute; - public const string VerticalShades = Material.TwoTone.VerticalShades; - public const string VerticalShadesClosed = Material.TwoTone.VerticalShadesClosed; - public const string VerticalSplit = Material.TwoTone.VerticalSplit; - public const string Vibration = Material.TwoTone.Vibration; - public const string VideoCall = Material.TwoTone.VideoCall; - public const string VideoCameraBack = Material.TwoTone.VideoCameraBack; - public const string VideoCameraFront = Material.TwoTone.VideoCameraFront; - public const string VideoChat = Material.TwoTone.VideoChat; - public const string VideoFile = Material.TwoTone.VideoFile; - public const string VideoLabel = Material.TwoTone.VideoLabel; - public const string VideoLibrary = Material.TwoTone.VideoLibrary; - public const string VideoSettings = Material.TwoTone.VideoSettings; - public const string VideoStable = Material.TwoTone.VideoStable; - public const string Videocam = Material.TwoTone.Videocam; - public const string VideocamOff = Material.TwoTone.VideocamOff; - public const string VideogameAsset = Material.TwoTone.VideogameAsset; - public const string VideogameAssetOff = Material.TwoTone.VideogameAssetOff; - public const string ViewAgenda = Material.TwoTone.ViewAgenda; - public const string ViewArray = Material.TwoTone.ViewArray; - public const string ViewCarousel = Material.TwoTone.ViewCarousel; - public const string ViewColumn = Material.TwoTone.ViewColumn; - public const string ViewComfy = Material.TwoTone.ViewComfy; - public const string ViewComfyAlt = Material.TwoTone.ViewComfyAlt; - public const string ViewCompact = Material.TwoTone.ViewCompact; - public const string ViewCompactAlt = Material.TwoTone.ViewCompactAlt; - public const string ViewCozy = Material.TwoTone.ViewCozy; - public const string ViewDay = Material.TwoTone.ViewDay; - public const string ViewHeadline = Material.TwoTone.ViewHeadline; - public const string ViewInAr = Material.TwoTone.ViewInAr; - public const string ViewKanban = Material.TwoTone.ViewKanban; - public const string ViewList = Material.TwoTone.ViewList; - public const string ViewModule = Material.TwoTone.ViewModule; - public const string ViewQuilt = Material.TwoTone.ViewQuilt; - public const string ViewSidebar = Material.TwoTone.ViewSidebar; - public const string ViewStream = Material.TwoTone.ViewStream; - public const string ViewTimeline = Material.TwoTone.ViewTimeline; - public const string ViewWeek = Material.TwoTone.ViewWeek; - public const string Vignette = Material.TwoTone.Vignette; - public const string Villa = Material.TwoTone.Villa; - public const string Visibility = Material.TwoTone.Visibility; - public const string VisibilityOff = Material.TwoTone.VisibilityOff; - public const string VoiceChat = Material.TwoTone.VoiceChat; - public const string VoiceOverOff = Material.TwoTone.VoiceOverOff; - public const string Voicemail = Material.TwoTone.Voicemail; - public const string Volcano = Material.TwoTone.Volcano; - public const string VolumeDown = Material.TwoTone.VolumeDown; - public const string VolumeMute = Material.TwoTone.VolumeMute; - public const string VolumeOff = Material.TwoTone.VolumeOff; - public const string VolumeUp = Material.TwoTone.VolumeUp; - public const string VolunteerActivism = Material.TwoTone.VolunteerActivism; - public const string VpnKey = Material.TwoTone.VpnKey; - public const string VpnKeyOff = Material.TwoTone.VpnKeyOff; - public const string VpnLock = Material.TwoTone.VpnLock; - public const string Vrpano = Material.TwoTone.Vrpano; - public const string Wallet = Material.TwoTone.Wallet; - public const string Wallpaper = Material.TwoTone.Wallpaper; - public const string Warehouse = Material.TwoTone.Warehouse; - public const string Warning = Material.TwoTone.Warning; - public const string WarningAmber = Material.TwoTone.WarningAmber; - public const string Wash = Material.TwoTone.Wash; - public const string Watch = Material.TwoTone.Watch; - public const string WatchLater = Material.TwoTone.WatchLater; - public const string WatchOff = Material.TwoTone.WatchOff; - public const string Water = Material.TwoTone.Water; - public const string WaterDamage = Material.TwoTone.WaterDamage; - public const string WaterDrop = Material.TwoTone.WaterDrop; - public const string WaterfallChart = Material.TwoTone.WaterfallChart; - public const string Waves = Material.TwoTone.Waves; - public const string WavingHand = Material.TwoTone.WavingHand; - public const string WbAuto = Material.TwoTone.WbAuto; - public const string WbCloudy = Material.TwoTone.WbCloudy; - public const string WbIncandescent = Material.TwoTone.WbIncandescent; - public const string WbIridescent = Material.TwoTone.WbIridescent; - public const string WbShade = Material.TwoTone.WbShade; - public const string WbSunny = Material.TwoTone.WbSunny; - public const string WbTwilight = Material.TwoTone.WbTwilight; - public const string Wc = Material.TwoTone.Wc; - public const string Web = Material.TwoTone.Web; - public const string WebAsset = Material.TwoTone.WebAsset; - public const string WebAssetOff = Material.TwoTone.WebAssetOff; - public const string WebStories = Material.TwoTone.WebStories; - public const string Webhook = Material.TwoTone.Webhook; - public const string Weekend = Material.TwoTone.Weekend; - public const string West = Material.TwoTone.West; - public const string Whatshot = Material.TwoTone.Whatshot; - public const string WheelchairPickup = Material.TwoTone.WheelchairPickup; - public const string WhereToVote = Material.TwoTone.WhereToVote; - public const string Widgets = Material.TwoTone.Widgets; - public const string WidthFull = Material.TwoTone.WidthFull; - public const string WidthNormal = Material.TwoTone.WidthNormal; - public const string WidthWide = Material.TwoTone.WidthWide; - public const string Wifi = Material.TwoTone.Wifi; - public const string Wifi1Bar = Material.TwoTone.Wifi1Bar; - public const string Wifi2Bar = Material.TwoTone.Wifi2Bar; - public const string WifiCalling = Material.TwoTone.WifiCalling; - public const string WifiCalling3 = Material.TwoTone.WifiCalling3; - public const string WifiChannel = Material.TwoTone.WifiChannel; - public const string WifiFind = Material.TwoTone.WifiFind; - public const string WifiLock = Material.TwoTone.WifiLock; - public const string WifiOff = Material.TwoTone.WifiOff; - public const string WifiPassword = Material.TwoTone.WifiPassword; - public const string WifiProtectedSetup = Material.TwoTone.WifiProtectedSetup; - public const string WifiTethering = Material.TwoTone.WifiTethering; - public const string WifiTetheringError = Material.TwoTone.WifiTetheringError; - public const string WifiTetheringOff = Material.TwoTone.WifiTetheringOff; - public const string WindPower = Material.TwoTone.WindPower; - public const string Window = Material.TwoTone.Window; - public const string WineBar = Material.TwoTone.WineBar; - public const string Woman = Material.TwoTone.Woman; - public const string Woman2 = Material.TwoTone.Woman2; - public const string Work = Material.TwoTone.Work; - public const string WorkHistory = Material.TwoTone.WorkHistory; - public const string WorkOff = Material.TwoTone.WorkOff; - public const string WorkOutline = Material.TwoTone.WorkOutline; - public const string WorkspacePremium = Material.TwoTone.WorkspacePremium; - public const string Workspaces = Material.TwoTone.Workspaces; - public const string WrapText = Material.TwoTone.WrapText; - public const string WrongLocation = Material.TwoTone.WrongLocation; - public const string Wysiwyg = Material.TwoTone.Wysiwyg; - public const string Yard = Material.TwoTone.Yard; - public const string YoutubeSearchedFor = Material.TwoTone.YoutubeSearchedFor; - public const string ZoomIn = Material.TwoTone.ZoomIn; - public const string ZoomInMap = Material.TwoTone.ZoomInMap; - public const string ZoomOut = Material.TwoTone.ZoomOut; - public const string ZoomOutMap = Material.TwoTone.ZoomOutMap; - } - } -} diff --git a/src/MudBlazor/Icons/Obsolete/_Obsolete.cs b/src/MudBlazor/Icons/Obsolete/_Obsolete.cs deleted file mode 100644 index 13daabade140..000000000000 --- a/src/MudBlazor/Icons/Obsolete/_Obsolete.cs +++ /dev/null @@ -1,200 +0,0 @@ -using System; - -namespace MudBlazor -{ - // These icons have been removed from the Google Material Design Icons set either - // due to typo corrections, improved consistency in naming or simply because they - // have been retired. They may be removed in a future version of MudBlazor so - // it is strongly recommended to remove or update any references to them. - public partial class Icons - { - [Obsolete("Use Icons.Material.Filled instead.")] - public partial class Filled - { - [Obsolete("Removed from Material Design Icons.", true)] - public const string AmpStories = ""; - - [Obsolete("Removed from Material Design Icons.", true)] - public const string Eco = ""; - - [Obsolete("Removed from Material Design Icons.", true)] - public const string BlockFlipped = ""; - - [Obsolete("Removed from Material Design Icons.", true)] - public const string OutgoingMail = ""; - - [Obsolete("Removed from Material Design Icons.", true)] - public const string HomeFilled = ""; - - [Obsolete("Removed from Material Design Icons.", true)] - public const string AssistantNavigation = ""; - - [Obsolete("Removed from Material Design Icons.", true)] - public const string LocationPin = ""; - - [Obsolete("Removed from Material Design Icons. Replace with `Outbound` icon.", true)] - public string Outbond => Outbound; - - [Obsolete("Removed from Material Design Icons. Replace with `Workspaces` icon.", true)] - public string WorkspacesFilled => Workspaces; - - [Obsolete("Removed from Material Design Icons. Replace with `FilterAlt` icon.", true)] - public string FilterListAlt => FilterAlt; - - [Obsolete("Removed from Material Design Icons. Replace with `AddIcCall` icon.", true)] - public string AddCall => AddIcCall; - - [Obsolete("Removed from Material Design Icons. Replace with `WbTwilight` icon.", true)] - public string WbTwighlight => WbTwilight; - - [Obsolete("Removed from Material Design Icons. Replace with `PieChartOutline` icon.", true)] - public string PieChartOutlined => PieChartOutline; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Lock` icon.", true)] - public string LockOutlined => Outlined.Lock; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Info` icon.", true)] - public string InfoOutlined => Outlined.Info; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Label` icon.", true)] - public string LabelOutline => Outlined.Label; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.LabelImportant` icon.", true)] - public string LabelImportantOutline => Outlined.LabelImportant; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Lightbulb` icon.", true)] - public string LightbulbOutline => Outlined.Lightbulb; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Workspaces` icon.", true)] - public string WorkspacesOutline => Outlined.Workspaces; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.DriveFileMove` icon.", true)] - public string DriveFileMoveOutline => Outlined.DriveFileMove; - - [Obsolete("Removed from Material Design Icons. Replace with `NoMeals` icon.", true)] - public string NoMealsOuline => NoMeals; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Filled.Flag` icon.", false)] - public string EmojiFlags => Filled.Flag; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Custom.Brands.Facebook` icon.", false)] - public string Facebook => Custom.Brands.Facebook; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Filled.Lock` icon.", false)] - public string LockOutline => Filled.Lock; - } - - [Obsolete("Use Icons.Material.Outlined instead.")] - public partial class Outlined - { - [Obsolete("Removed from Material Design Icons.", true)] - public const string AmpStories = ""; - - [Obsolete("Removed from Material Design Icons.", true)] - public const string Eco = ""; - - [Obsolete("Removed from Material Design Icons. Replace with `Face` icon.", true)] - public string FaceUnlock => Face; - - [Obsolete("Removed from Material Design Icons. Replace with `Outbound` icon.", true)] - public string Outbond => Outbound; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Lock` icon.", true)] - public string LockOutlined => Outlined.Lock; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Info` icon.", true)] - public string InfoOutlined => Outlined.Info; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Label` icon.", true)] - public string LabelOutline => Outlined.Label; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.LabelImportant` icon.", true)] - public string LabelImportantOutline => Outlined.LabelImportant; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Lightbulb` icon.", true)] - public string LightbulbOutline => Outlined.Lightbulb; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Flag` icon.", false)] - public string EmojiFlags => Outlined.Flag; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Custom.Brands.Facebook` icon.", false)] - public string Facebook => Custom.Brands.Facebook; - } - - [Obsolete("Use Icons.Material.Rounded instead.")] - public partial class Rounded - { - [Obsolete("Removed from Material Design Icons.", true)] - public const string AmpStories = ""; - - [Obsolete("Removed from Material Design Icons.", true)] - public const string Eco = ""; - - [Obsolete("Removed from Material Design Icons. Replace with `Face` icon.", true)] - public string FaceUnlock => Face; - - [Obsolete("Removed from Material Design Icons. Replace with `Outbound` icon.", true)] - public string Outbond => Outbound; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Lock` icon.", true)] - public string LockOutlined => Outlined.Lock; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Info` icon.", true)] - public string InfoOutlined => Outlined.Info; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Label` icon.", true)] - public string LabelOutline => Outlined.Label; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.LabelImportant` icon.", true)] - public string LabelImportantOutline => Outlined.LabelImportant; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Lightbulb` icon.", true)] - public string LightbulbOutline => Outlined.Lightbulb; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Rounded.Flag` icon.", false)] - public string EmojiFlags => Rounded.Flag; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Custom.Brands.Facebook` icon.", false)] - public string Facebook => Custom.Brands.Facebook; - } - - [Obsolete("Use Icons.Material.Sharp instead.")] - public partial class Sharp - { - [Obsolete("Removed from Material Design Icons.", true)] - public const string AmpStories = - ""; - - [Obsolete("Removed from Material Design Icons.", true)] - public const string Eco = - ""; - - [Obsolete("Removed from Material Design Icons. Replace with `Face` icon.", true)] - public string FaceUnlock => Face; - - [Obsolete("Removed from Material Design Icons. Replace with `Outbound` icon.", true)] - public string Outbond => Outbound; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Lock` icon.", true)] - public string LockOutlined => Outlined.Lock; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Info` icon.", true)] - public string InfoOutlined => Outlined.Info; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Label` icon.", true)] - public string LabelOutline => Outlined.Label; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.LabelImportant` icon.", true)] - public string LabelImportantOutline => Outlined.LabelImportant; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Lightbulb` icon.", true)] - public string LightbulbOutline => Outlined.Lightbulb; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Sharp.Flag` icon.", false)] - public string EmojiFlags => Sharp.Flag; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Custom.Brands.Facebook` icon.", false)] - public string Facebook => Custom.Brands.Facebook; - } - } -} diff --git a/tools/Icons/Update-MudIcons.ps1 b/tools/Icons/Update-MudIcons.ps1 index f95bd2b74d1a..22e251050995 100644 --- a/tools/Icons/Update-MudIcons.ps1 +++ b/tools/Icons/Update-MudIcons.ps1 @@ -1,9 +1,9 @@ +#Requires -Version 7.0 [CmdletBinding()] param ( $DefaultOut="$PWD/_IGNORE", - $IconsOut="$PWD/../../src/MudBlazor/Icons/Material", - $ObsoleteOut="$PWD/../../src/MudBlazor/Icons/Obsolete" + $IconsOut="$PWD/../../src/MudBlazor/Icons/Material" ) $ErrorActionPreference = "Stop" @@ -24,9 +24,6 @@ if (!(Test-Path -PathType Container $DefaultOut)) { if (!(Test-Path -PathType Container $IconsOut)) { mkdir $IconsOut } -if (!(Test-Path -PathType Container $ObsoleteOut)) { - mkdir $ObsoleteOut -} ## Record for posterity $iconsMetaCache = Join-Path -Path $DefaultOut -ChildPath icons-metadata.json @@ -86,13 +83,11 @@ $allStartTime = [datetime]::Now $familyMap.GetEnumerator() | ForEach-Object -ThrottleLimit 5 -Parallel { $DefaultOut = $using:DefaultOut $IconsOut = $using:IconsOut - $ObsoleteOut = $using:ObsoleteOut $fam = $_ $famName = $fam.Key $famPath = $fam.Value $csFile = Join-Path -Path $IconsOut -ChildPath "$famName.cs" -Resolve - $csObsoleteFile = Join-Path -Path $ObsoleteOut -ChildPath "$famName.cs" -Resolve $iconCount = 0 $startTime = [datetime]::Now @@ -133,38 +128,11 @@ namespace MudBlazor } "@.Replace("`r`n", "`n") } - ## The START includes USINGs, NAMESPACE decl and CLASS decl - $csObsoleteFilePrologue = { @" -/* - * This file was auto-generated by Update-MudIcons.ps1 - * $([datetime]::Now.ToString('yyyy/MM/dd_hh:mm:ss')) - */ - -using System.Diagnostics.CodeAnalysis; - -namespace MudBlazor -{ - public partial class Icons - { - [ExcludeFromCodeCoverage] - public partial class $($famName) - { - -"@.Replace("`r`n", "`n") } - - ## The END just closes up braces for now - $csObsoleteFileEpilogue = { @" - } - } -} -"@.Replace("`r`n", "`n") } - ## Pull into scope $nextIcons = $using:nextIcons Write-Host "Generating icon family [$famName] to [$csFile]" Set-Content -Encoding utf8BOM -NoNewline -Path $csFile -Value $csFilePrologue.Invoke() - Set-Content -Encoding utf8BOM -NoNewline -Path $csObsoleteFile -Value $csObsoleteFilePrologue.Invoke() ## Unfortunately, parallelizing this loop doesn't speed things up because ## there is more coordination and synchronization that has to take place @@ -207,10 +175,6 @@ namespace MudBlazor "@.Replace("`r`n", "`n") - Add-Content -Encoding utf8BOM -NoNewline -Path $csObsoleteFile -Value @" - public const string $iconVar = Material.$famName.$iconVar; - -"@.Replace("`r`n", "`n") $iconCount++ @@ -221,7 +185,6 @@ namespace MudBlazor } Add-Content -Encoding utf8BOM -NoNewline -Path $csFile -Value $csFileEpilogue.Invoke() - Add-Content -Encoding utf8BOM -NoNewline -Path $csObsoleteFile -Value $csObsoleteFileEpilogue.Invoke() $totalTime = [datetime]::Now - $startTime Write-Host " ...generated [$global:iconCount] icons for [$famName] in [$($totalTime.TotalSeconds)] seconds." } From 8518947d8a4880ea42d5a2aef86d951739f31bae Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Sat, 30 Mar 2024 19:48:26 -0500 Subject: [PATCH 31/50] Icons: Remove Material.Obsolete, Update formatting (#8536) --- src/MudBlazor/Icons/Material/Filled.cs | 4 +- src/MudBlazor/Icons/Material/Outlined.cs | 4 +- src/MudBlazor/Icons/Material/Rounded.cs | 4 +- src/MudBlazor/Icons/Material/Sharp.cs | 4 +- src/MudBlazor/Icons/Material/TwoTone.cs | 4 +- src/MudBlazor/Icons/Material/_Obsolete.cs | 247 ---------------------- tools/Icons/Update-MudIcons.ps1 | 5 +- 7 files changed, 13 insertions(+), 259 deletions(-) delete mode 100644 src/MudBlazor/Icons/Material/_Obsolete.cs diff --git a/src/MudBlazor/Icons/Material/Filled.cs b/src/MudBlazor/Icons/Material/Filled.cs index 04a8ebe24df6..10660e5c596b 100644 --- a/src/MudBlazor/Icons/Material/Filled.cs +++ b/src/MudBlazor/Icons/Material/Filled.cs @@ -1,6 +1,6 @@ /* * This file was auto-generated by Update-MudIcons.ps1 - * 2024/03/29_05:25:37 + * 2024/03/30_13:34:13 */ using System.Diagnostics.CodeAnalysis; @@ -2139,4 +2139,4 @@ public partial class Filled } } } -} \ No newline at end of file +} diff --git a/src/MudBlazor/Icons/Material/Outlined.cs b/src/MudBlazor/Icons/Material/Outlined.cs index 3118bd64f9c5..a49653beb61e 100644 --- a/src/MudBlazor/Icons/Material/Outlined.cs +++ b/src/MudBlazor/Icons/Material/Outlined.cs @@ -1,6 +1,6 @@ /* * This file was auto-generated by Update-MudIcons.ps1 - * 2024/03/29_05:25:37 + * 2024/03/30_13:34:13 */ using System.Diagnostics.CodeAnalysis; @@ -2139,4 +2139,4 @@ public partial class Outlined } } } -} \ No newline at end of file +} diff --git a/src/MudBlazor/Icons/Material/Rounded.cs b/src/MudBlazor/Icons/Material/Rounded.cs index eee614bc7e0e..eb84f49dcc5c 100644 --- a/src/MudBlazor/Icons/Material/Rounded.cs +++ b/src/MudBlazor/Icons/Material/Rounded.cs @@ -1,6 +1,6 @@ /* * This file was auto-generated by Update-MudIcons.ps1 - * 2024/03/29_05:25:37 + * 2024/03/30_13:34:13 */ using System.Diagnostics.CodeAnalysis; @@ -2139,4 +2139,4 @@ public partial class Rounded } } } -} \ No newline at end of file +} diff --git a/src/MudBlazor/Icons/Material/Sharp.cs b/src/MudBlazor/Icons/Material/Sharp.cs index ddbb9811e067..5b65d1ec9c89 100644 --- a/src/MudBlazor/Icons/Material/Sharp.cs +++ b/src/MudBlazor/Icons/Material/Sharp.cs @@ -1,6 +1,6 @@ /* * This file was auto-generated by Update-MudIcons.ps1 - * 2024/03/29_05:25:37 + * 2024/03/30_13:34:13 */ using System.Diagnostics.CodeAnalysis; @@ -2139,4 +2139,4 @@ public partial class Sharp } } } -} \ No newline at end of file +} diff --git a/src/MudBlazor/Icons/Material/TwoTone.cs b/src/MudBlazor/Icons/Material/TwoTone.cs index c6e51db3484a..926c8b13d1a5 100644 --- a/src/MudBlazor/Icons/Material/TwoTone.cs +++ b/src/MudBlazor/Icons/Material/TwoTone.cs @@ -1,6 +1,6 @@ /* * This file was auto-generated by Update-MudIcons.ps1 - * 2024/03/29_05:25:37 + * 2024/03/30_13:34:13 */ using System.Diagnostics.CodeAnalysis; @@ -2139,4 +2139,4 @@ public partial class TwoTone } } } -} \ No newline at end of file +} diff --git a/src/MudBlazor/Icons/Material/_Obsolete.cs b/src/MudBlazor/Icons/Material/_Obsolete.cs deleted file mode 100644 index c5be25745996..000000000000 --- a/src/MudBlazor/Icons/Material/_Obsolete.cs +++ /dev/null @@ -1,247 +0,0 @@ -using System; - -namespace MudBlazor -{ - // These icons have been removed from the Google Material Design Icons set either - // due to typo corrections, improved consistency in naming or simply because they - // have been retired. They may be removed in a future version of MudBlazor so - // it is strongly recommended to remove or update any references to them. - public partial class Icons - { - public partial class Material - { - public partial class Filled - { - [Obsolete("Removed from Material Design Icons.", true)] - public const string AmpStories = ""; - - [Obsolete("Removed from Material Design Icons.", true)] - public const string Eco = ""; - - [Obsolete("Removed from Material Design Icons.", true)] - public const string BlockFlipped = ""; - - [Obsolete("Removed from Material Design Icons.", true)] - public const string OutgoingMail = ""; - - [Obsolete("Removed from Material Design Icons.", true)] - public const string HomeFilled = ""; - - [Obsolete("Removed from Material Design Icons.", true)] - public const string AssistantNavigation = ""; - - [Obsolete("Removed from Material Design Icons.", true)] - public const string LocationPin = ""; - - [Obsolete("Removed from Material Design Icons. Replace with `Outbound` icon.", true)] - public string Outbond => Outbound; - - [Obsolete("Removed from Material Design Icons. Replace with `Workspaces` icon.", true)] - public string WorkspacesFilled => Workspaces; - - [Obsolete("Removed from Material Design Icons. Replace with `FilterAlt` icon.", true)] - public string FilterListAlt => FilterAlt; - - [Obsolete("Removed from Material Design Icons. Replace with `AddIcCall` icon.", true)] - public string AddCall => AddIcCall; - - [Obsolete("Removed from Material Design Icons. Replace with `WbTwilight` icon.", true)] - public string WbTwighlight => WbTwilight; - - [Obsolete("Removed from Material Design Icons. Replace with `PieChartOutline` icon.", true)] - public string PieChartOutlined => PieChartOutline; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Lock` icon.", true)] - public string LockOutlined => Outlined.Lock; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Info` icon.", true)] - public string InfoOutlined => Outlined.Info; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Label` icon.", true)] - public string LabelOutline => Outlined.Label; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.LabelImportant` icon.", true)] - public string LabelImportantOutline => Outlined.LabelImportant; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Lightbulb` icon.", true)] - public string LightbulbOutline => Outlined.Lightbulb; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Workspaces` icon.", true)] - public string WorkspacesOutline => Outlined.Workspaces; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.DriveFileMove` icon.", true)] - public string DriveFileMoveOutline => Outlined.DriveFileMove; - - [Obsolete("Removed from Material Design Icons. Replace with `NoMeals` icon.", true)] - public string NoMealsOuline => NoMeals; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Filled.Flag` icon.", false)] - public string EmojiFlags => Filled.Flag; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Custom.Brands.Facebook` icon.", false)] - public string Facebook => Custom.Brands.Facebook; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Filled.Lock` icon.", false)] - public string LockOutline => Filled.Lock; - - [Obsolete("Removed from Material Design Icons.", false)] - public const string Whatsapp = ""; - - [Obsolete("Removed from Material Design Icons.", false)] - public const string PhoneInTalk = ""; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Material.Filled.Fluorescent` icon.", false)] - public const string Flourescent = Material.Filled.Fluorescent; - } - - public partial class Outlined - { - [Obsolete("Removed from Material Design Icons.", true)] - public const string AmpStories = ""; - - [Obsolete("Removed from Material Design Icons.", true)] - public const string Eco = ""; - - [Obsolete("Removed from Material Design Icons. Replace with `Face` icon.", true)] - public string FaceUnlock => Face; - - [Obsolete("Removed from Material Design Icons. Replace with `Outbound` icon.", true)] - public string Outbond => Outbound; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Lock` icon.", true)] - public string LockOutlined => Outlined.Lock; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Info` icon.", true)] - public string InfoOutlined => Outlined.Info; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Label` icon.", true)] - public string LabelOutline => Outlined.Label; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.LabelImportant` icon.", true)] - public string LabelImportantOutline => Outlined.LabelImportant; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Lightbulb` icon.", true)] - public string LightbulbOutline => Outlined.Lightbulb; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Flag` icon.", false)] - public string EmojiFlags => Outlined.Flag; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Custom.Brands.Facebook` icon.", false)] - public string Facebook => Custom.Brands.Facebook; - - [Obsolete("Removed from Material Design Icons.", false)] - public const string Whatsapp = ""; - - [Obsolete("Removed from Material Design Icons.", false)] - public const string PhoneInTalk = ""; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Material.Outlined.Fluorescent` icon.", false)] - public const string Flourescent = Material.Outlined.Fluorescent; - } - - public partial class Rounded - { - [Obsolete("Removed from Material Design Icons.", true)] - public const string AmpStories = ""; - - [Obsolete("Removed from Material Design Icons.", true)] - public const string Eco = ""; - - [Obsolete("Removed from Material Design Icons. Replace with `Face` icon.", true)] - public string FaceUnlock => Face; - - [Obsolete("Removed from Material Design Icons. Replace with `Outbound` icon.", true)] - public string Outbond => Outbound; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Lock` icon.", true)] - public string LockOutlined => Outlined.Lock; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Info` icon.", true)] - public string InfoOutlined => Outlined.Info; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Label` icon.", true)] - public string LabelOutline => Outlined.Label; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.LabelImportant` icon.", true)] - public string LabelImportantOutline => Outlined.LabelImportant; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Lightbulb` icon.", true)] - public string LightbulbOutline => Outlined.Lightbulb; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Rounded.Flag` icon.", false)] - public string EmojiFlags => Rounded.Flag; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Custom.Brands.Facebook` icon.", false)] - public string Facebook => Custom.Brands.Facebook; - - [Obsolete("Removed from Material Design Icons.", false)] - public const string Whatsapp = ""; - - [Obsolete("Removed from Material Design Icons.", false)] - public const string PhoneInTalk = ""; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Material.Rounded.Fluorescent` icon.", false)] - public const string Flourescent = Material.Rounded.Fluorescent; - } - - public partial class Sharp - { - [Obsolete("Removed from Material Design Icons.", true)] - public const string AmpStories = ""; - - [Obsolete("Removed from Material Design Icons.", true)] - public const string Eco = ""; - - [Obsolete("Removed from Material Design Icons. Replace with `Face` icon.", true)] - public string FaceUnlock => Face; - - [Obsolete("Removed from Material Design Icons. Replace with `Outbound` icon.", true)] - public string Outbond => Outbound; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Lock` icon.", true)] - public string LockOutlined => Outlined.Lock; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Info` icon.", true)] - public string InfoOutlined => Outlined.Info; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Label` icon.", true)] - public string LabelOutline => Outlined.Label; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.LabelImportant` icon.", true)] - public string LabelImportantOutline => Outlined.LabelImportant; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Outlined.Lightbulb` icon.", true)] - public string LightbulbOutline => Outlined.Lightbulb; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Sharp.Flag` icon.", false)] - public string EmojiFlags => Sharp.Flag; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Custom.Brands.Facebook` icon.", false)] - public string Facebook => Custom.Brands.Facebook; - - [Obsolete("Removed from Material Design Icons.", false)] - public const string Whatsapp = - ""; - - [Obsolete("Removed from Material Design Icons.", false)] - public const string PhoneInTalk = - ""; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Material.Sharp.Fluorescent` icon.", false)] - public const string Flourescent = Material.Sharp.Fluorescent; - } - - public partial class TwoTone - { - [Obsolete("Removed from Material Design Icons.", false)] - public const string Whatsapp = ""; - - [Obsolete("Removed from Material Design Icons.", false)] - public const string PhoneInTalk = ""; - - [Obsolete("Removed from Material Design Icons. Replace with `Icons.Material.TwoTone.Fluorescent` icon.", false)] - public const string Flourescent = Material.TwoTone.Fluorescent; - } - } - } -} diff --git a/tools/Icons/Update-MudIcons.ps1 b/tools/Icons/Update-MudIcons.ps1 index 22e251050995..090a64fc94ae 100644 --- a/tools/Icons/Update-MudIcons.ps1 +++ b/tools/Icons/Update-MudIcons.ps1 @@ -103,7 +103,7 @@ $familyMap.GetEnumerator() | ForEach-Object -ThrottleLimit 5 -Parallel { $csFilePrologue = { @" /* * This file was auto-generated by Update-MudIcons.ps1 - * $([datetime]::Now.ToString('yyyy/MM/dd_hh:mm:ss')) + * $([datetime]::Now.ToString('yyyy/MM/dd_HH:mm:ss')) */ using System.Diagnostics.CodeAnalysis; @@ -120,12 +120,13 @@ namespace MudBlazor "@.Replace("`r`n", "`n") } - ## The END just closes up braces for now + ## The END just closes up braces and adds a newline for now $csFileEpilogue = { @" } } } } + "@.Replace("`r`n", "`n") } ## Pull into scope From b09514f3db2517f31839a8f6683ad10937da2ace Mon Sep 17 00:00:00 2001 From: Arjan Vermunt Date: Sun, 31 Mar 2024 16:41:11 +0200 Subject: [PATCH 32/50] MudPicker: Fix code style and naming issues (#8517) --- .../Examples/ColorPickerBasicExample.razor | 5 +- .../ColorPickerExampleUsageExample.razor | 12 +- .../DatePickerActionButtonsExample.razor | 10 +- .../DatePickerBasicUsageExample.razor | 16 +-- .../Examples/DatePickerColorExample.razor | 3 - ...atePickerDisableCustomizeDaysExample.razor | 6 +- .../Examples/DatePickerElevationExample.razor | 2 - .../DatePickerFixedValuesExample.razor | 14 +- .../Examples/DatePickerGoToDateExample.razor | 26 ++-- ...atePickerInternationalizationExample.razor | 10 +- .../Examples/DatePickerMaskExample.razor | 12 +- .../Examples/DatePickerReadOnlyExample.razor | 4 +- .../Examples/DatePickerTextParseExample.razor | 20 +-- .../TimePickerBasicUsageExample.razor | 8 +- .../Examples/TimePickerDialogExample.razor | 6 +- .../Examples/TimePickerReadOnlyExample.razor | 8 +- .../Examples/TimePickerStaticExample.razor | 6 +- .../TimePickerTimeEditModeExample.razor | 8 +- .../Components/DatePickerTests.cs | 20 +-- .../Components/PickerTests.cs | 2 +- .../Components/TimePickerTests.cs | 62 ++++----- src/MudBlazor/Attributes/CategoryAttribute.cs | 6 + .../ColorPicker/MudColorPicker.razor.cs | 8 +- .../DatePicker/MudBaseDatePicker.razor.cs | 4 +- .../Components/DatePicker/MudDatePicker.cs | 17 ++- .../DatePicker/MudDateRangePicker.razor | 2 +- .../DatePicker/MudDateRangePicker.razor.cs | 6 +- .../Components/Picker/MudPicker.razor | 25 ++-- .../Components/Picker/MudPicker.razor.cs | 126 ++++++++---------- .../Components/Picker/MudPickerContent.razor | 14 +- .../Picker/MudPickerContent.razor.cs | 20 +++ .../Components/Picker/MudPickerToolbar.razor | 22 +-- .../Picker/MudPickerToolbar.razor.cs | 50 +++++++ .../TimePicker/MudTimePicker.razor.cs | 6 +- 34 files changed, 296 insertions(+), 270 deletions(-) create mode 100644 src/MudBlazor/Components/Picker/MudPickerContent.razor.cs create mode 100644 src/MudBlazor/Components/Picker/MudPickerToolbar.razor.cs diff --git a/src/MudBlazor.Docs/Pages/Components/ColorPicker/Examples/ColorPickerBasicExample.razor b/src/MudBlazor.Docs/Pages/Components/ColorPicker/Examples/ColorPickerBasicExample.razor index 8d56a1fe5c3b..a645f3c57ca7 100644 --- a/src/MudBlazor.Docs/Pages/Components/ColorPicker/Examples/ColorPickerBasicExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/ColorPicker/Examples/ColorPickerBasicExample.razor @@ -1,7 +1,8 @@ -@namespace MudBlazor.Docs.Examples +@using MudBlazor.Utilities +@namespace MudBlazor.Docs.Examples @code { - private string _colorValue; + private string _colorValue = "#000000"; } \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/ColorPicker/Examples/ColorPickerExampleUsageExample.razor b/src/MudBlazor.Docs/Pages/Components/ColorPicker/Examples/ColorPickerExampleUsageExample.razor index b83e8cf73531..53dba790d609 100644 --- a/src/MudBlazor.Docs/Pages/Components/ColorPicker/Examples/ColorPickerExampleUsageExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/ColorPicker/Examples/ColorPickerExampleUsageExample.razor @@ -2,7 +2,7 @@ @using MudBlazor.Utilities - +
@@ -16,18 +16,18 @@
- Degrees + Degrees
@code { - public MudColor _gradientPrimary = "#594AE2"; - public MudColor _gradientSecondary = "#FF4081"; - public MudColor _pickerColor = "#594AE2"; + private MudColor _gradientPrimary = "#594AE2"; + private MudColor _gradientSecondary = "#FF4081"; + private MudColor _pickerColor = "#594AE2"; - int degrees = 90; + private int _degrees = 90; bool _isFirstColor = true; diff --git a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerActionButtonsExample.razor b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerActionButtonsExample.razor index 0c6bdd72ca26..c3573f6aadda 100644 --- a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerActionButtonsExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerActionButtonsExample.razor @@ -1,16 +1,16 @@ @namespace MudBlazor.Docs.Examples - + Clear Cancel Ok -AutoClose +AutoClose @code { - MudDatePicker _picker; - DateTime? date = DateTime.Today; - private bool autoClose; + private MudDatePicker _picker; + private DateTime? _date = DateTime.Today; + private bool _autoClose; } diff --git a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerBasicUsageExample.razor b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerBasicUsageExample.razor index 08394a329c37..a7221aceda19 100644 --- a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerBasicUsageExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerBasicUsageExample.razor @@ -1,12 +1,12 @@ @namespace MudBlazor.Docs.Examples - - - - - - + + + + + + @code { - DateTime? date = DateTime.Today; -} \ No newline at end of file + private DateTime? _date = DateTime.Today; +} diff --git a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerColorExample.razor b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerColorExample.razor index 5714248f8c5f..fbec7a8c7b16 100644 --- a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerColorExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerColorExample.razor @@ -2,6 +2,3 @@ - - - diff --git a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerDisableCustomizeDaysExample.razor b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerDisableCustomizeDaysExample.razor index 503f15c1b42b..f4f98db0958d 100644 --- a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerDisableCustomizeDaysExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerDisableCustomizeDaysExample.razor @@ -1,6 +1,6 @@ @namespace MudBlazor.Docs.Examples \ No newline at end of file + Label="Not working days, Sunday in red" + IsDateDisabledFunc="@((DateTime dt)=>((int)dt.DayOfWeek > 0 && (int)dt.DayOfWeek < 6))" + AdditionalDateClassesFunc="@((DateTime dt)=>((int)dt.DayOfWeek == 0 ? "red-text text-accent-4" : ""))"/> diff --git a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerElevationExample.razor b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerElevationExample.razor index be0b0ef00d70..ab7f7cf0894b 100644 --- a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerElevationExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerElevationExample.razor @@ -2,5 +2,3 @@ - - diff --git a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerFixedValuesExample.razor b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerFixedValuesExample.razor index 2a80884a631a..215ae1991ec2 100644 --- a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerFixedValuesExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerFixedValuesExample.razor @@ -8,10 +8,10 @@ @code { - DateTime? _yearMonth; - DateTime? _monthDay; - DateTime? _yearDay; - DateTime? _year; - DateTime? _month; - DateTime? _day; -} \ No newline at end of file + private DateTime? _yearMonth; + private DateTime? _monthDay; + private DateTime? _yearDay; + private DateTime? _year; + private DateTime? _month; + private DateTime? _day; +} diff --git a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerGoToDateExample.razor b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerGoToDateExample.razor index 8ff6713ed015..23aaeb635c3e 100644 --- a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerGoToDateExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerGoToDateExample.razor @@ -1,21 +1,21 @@ @namespace MudBlazor.Docs.Examples - + - Today + Today
Move To Current Date - When First Mud Released? - Go To Max Date Without Submit + When First Mud Released? + Go To Max Date Without Submit
@code { - MudDatePicker _picker; - DateTime? date = DateTime.Today.AddDays(210); - DateTime? maxDate = new DateTime(2050, 12, 31); + private MudDatePicker _picker; + private DateTime? _date = DateTime.Today.AddDays(210); + private DateTime _maxDate = new DateTime(2050, 12, 31); protected override void OnAfterRender(bool firstRender) { @@ -25,9 +25,9 @@ } } - private async Task Today() + private Task TodayAsync() { - await _picker.GoToDate(DateTime.Today); + return _picker.GoToDate(DateTime.Today); } private void CurrentDate() @@ -35,13 +35,13 @@ _picker.GoToDate(); } - private async Task MudRelease() + private Task MudReleaseAsync() { - await _picker.GoToDate(new DateTime(2020, 10, 18)); + return _picker.GoToDate(new DateTime(2020, 10, 18)); } - private async Task GoMaxDateWithoutSubmit() + private Task GoMaxDateWithoutSubmitAsync() { - await _picker.GoToDate(maxDate.Value, false); + return _picker.GoToDate(_maxDate, false); } } diff --git a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerInternationalizationExample.razor b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerInternationalizationExample.razor index 6c4d378640c6..f93f922d83ad 100644 --- a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerInternationalizationExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerInternationalizationExample.razor @@ -2,12 +2,12 @@ @using System.Reflection @namespace MudBlazor.Docs.Examples - - - + + + @code { - DateTime? date = new DateTime(2021, 02, 14); // 1399-11-26 in Persian calendar + private DateTime? _date = new DateTime(2021, 02, 14); // 1399-11-26 in Persian calendar public CultureInfo GetPersianCulture() { @@ -29,7 +29,7 @@ formatInfo.ShortDatePattern = "yyyy/MM/dd"; formatInfo.LongDatePattern = "dddd, dd MMMM,yyyy"; formatInfo.FirstDayOfWeek = DayOfWeek.Saturday; - System.Globalization.Calendar cal = new PersianCalendar(); + Calendar cal = new PersianCalendar(); FieldInfo fieldInfo = culture.GetType().GetField("calendar", BindingFlags.NonPublic | BindingFlags.Instance); if (fieldInfo != null) fieldInfo.SetValue(culture, cal); diff --git a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerMaskExample.razor b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerMaskExample.razor index c18dfb4ccc95..7f0b8a1ff2b8 100644 --- a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerMaskExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerMaskExample.razor @@ -1,11 +1,11 @@ @namespace MudBlazor.Docs.Examples - - - + + + @code { - DateTime? date1 = null; - DateTime? date2 = DateTime.Today; - DateTime? date3 = null; + private DateTime? _date1 = null; + private DateTime? _date2 = DateTime.Today; + private DateTime? _date3 = null; } \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerReadOnlyExample.razor b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerReadOnlyExample.razor index dd1d57849bc4..0c5d1d828d0c 100644 --- a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerReadOnlyExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerReadOnlyExample.razor @@ -1,7 +1,7 @@ @namespace MudBlazor.Docs.Examples - + @code { - DateTime? date = DateTime.Today; + private DateTime? _date = DateTime.Today; } diff --git a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerTextParseExample.razor b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerTextParseExample.razor index 10cd9183d60d..7c295ddfad96 100644 --- a/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerTextParseExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/DatePicker/Examples/DatePickerTextParseExample.razor @@ -1,39 +1,39 @@ @using System.Globalization @namespace MudBlazor.Docs.Examples - + @code { - DateTime? date = null; - string dateFormat = "dd.MM.yyyy"; - string bound = "not set"; + private DateTime? _date = null; + private string _dateFormat = "dd.MM.yyyy"; + private string _bound = "not set"; private void DatePickerTextChanged(string value) { if (value == null || value.Length < 6) { - date = null; + _date = null; } else { string[] formats = { "ddMMyy", "dd.MM.yyyy", "dd.M.yyyy", "d.MM.yyyy", "d.M.yyyy", "dd.MM.yy", "dd.M.yy", "d.MM.yy", "d.M.yy" }; if (DateTime.TryParseExact(value, formats, CultureInfo.InvariantCulture, DateTimeStyles.None, out DateTime validDate)) { - date = validDate; + _date = validDate; } else { - date = null; + _date = null; } } - if (date.HasValue) + if (_date.HasValue) { - bound = date.Value.ToString(dateFormat); + _bound = _date.Value.ToString(_dateFormat); } else { - bound = "not set"; + _bound = "not set"; } } } \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerBasicUsageExample.razor b/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerBasicUsageExample.razor index 9153b655ee20..2b396a70d824 100644 --- a/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerBasicUsageExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerBasicUsageExample.razor @@ -1,10 +1,10 @@ @namespace MudBlazor.Docs.Examples - - - + + + @code{ - TimeSpan? time = new TimeSpan(00, 45, 00); + private TimeSpan? _time = new TimeSpan(00, 45, 00); } \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerDialogExample.razor b/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerDialogExample.razor index c1e548662d92..3f1a024f48d5 100644 --- a/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerDialogExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerDialogExample.razor @@ -1,8 +1,8 @@ @namespace MudBlazor.Docs.Examples - - + + @code{ - TimeSpan? time = new TimeSpan(00, 45, 00); + private TimeSpan? _time = new TimeSpan(00, 45, 00); } \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerReadOnlyExample.razor b/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerReadOnlyExample.razor index 8380aa1287a0..a2ebf3c2a5fa 100644 --- a/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerReadOnlyExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerReadOnlyExample.razor @@ -1,10 +1,10 @@ @namespace MudBlazor.Docs.Examples - -ReadOnly + +ReadOnly @code{ - TimeSpan? time = new TimeSpan(00, 45, 00); - private bool readOnly; + private TimeSpan? _time = new TimeSpan(00, 45, 00); + private bool _readOnly; } \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerStaticExample.razor b/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerStaticExample.razor index 4b75fbb83e1f..8340f1171684 100644 --- a/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerStaticExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerStaticExample.razor @@ -1,11 +1,11 @@ @namespace MudBlazor.Docs.Examples - + - + @code{ - TimeSpan? time = new TimeSpan(13, 37, 00); + private TimeSpan? _time = new TimeSpan(13, 37, 00); } \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerTimeEditModeExample.razor b/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerTimeEditModeExample.razor index 0f72956bca9a..6850fe86090c 100644 --- a/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerTimeEditModeExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/TimePicker/Examples/TimePickerTimeEditModeExample.razor @@ -1,10 +1,10 @@ @namespace MudBlazor.Docs.Examples - - - + + + @code{ - TimeSpan? time = new TimeSpan(13, 37, 00); + private TimeSpan? _time = new TimeSpan(13, 37, 00); } \ No newline at end of file diff --git a/src/MudBlazor.UnitTests/Components/DatePickerTests.cs b/src/MudBlazor.UnitTests/Components/DatePickerTests.cs index d49792cd12f5..296536f1873c 100644 --- a/src/MudBlazor.UnitTests/Components/DatePickerTests.cs +++ b/src/MudBlazor.UnitTests/Components/DatePickerTests.cs @@ -1085,33 +1085,33 @@ public async Task DatePickerTest_KeyboardNavigation() var comp = Context.RenderComponent(); var datePicker = comp.FindComponent().Instance; - await comp.InvokeAsync(() => datePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "Enter", Type = "keydown", })); + await comp.InvokeAsync(() => datePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "Enter", Type = "keydown", })); comp.WaitForAssertion(() => comp.FindAll("div.mud-picker-open").Count.Should().Be(1)); - await comp.InvokeAsync(() => datePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "Escape", Type = "keydown", })); + await comp.InvokeAsync(() => datePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "Escape", Type = "keydown", })); comp.WaitForAssertion(() => comp.FindAll("div.mud-picker-open").Count.Should().Be(0)); - await comp.InvokeAsync(() => datePicker.HandleKeyDown(new KeyboardEventArgs() { Key = " ", Type = "keydown", })); + await comp.InvokeAsync(() => datePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = " ", Type = "keydown", })); comp.WaitForAssertion(() => comp.FindAll("div.mud-picker-open").Count.Should().Be(1)); - await comp.InvokeAsync(() => datePicker.HandleKeyDown(new KeyboardEventArgs() { Key = " ", Type = "keydown", })); + await comp.InvokeAsync(() => datePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = " ", Type = "keydown", })); comp.WaitForAssertion(() => comp.FindAll("div.mud-picker-open").Count.Should().Be(0)); - await comp.InvokeAsync(() => datePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "ArrowDown", AltKey = true, Type = "keydown", })); + await comp.InvokeAsync(() => datePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "ArrowDown", AltKey = true, Type = "keydown", })); comp.WaitForAssertion(() => comp.FindAll("div.mud-picker-open").Count.Should().Be(1)); - await comp.InvokeAsync(() => datePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "ArrowUp", AltKey = true, Type = "keydown", })); + await comp.InvokeAsync(() => datePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "ArrowUp", AltKey = true, Type = "keydown", })); comp.WaitForAssertion(() => comp.FindAll("div.mud-picker-open").Count.Should().Be(0)); - await comp.InvokeAsync(() => datePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "NumpadEnter", Type = "keydown", })); + await comp.InvokeAsync(() => datePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "NumpadEnter", Type = "keydown", })); comp.WaitForAssertion(() => comp.FindAll("div.mud-picker-open").Count.Should().Be(1)); - await comp.InvokeAsync(() => datePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "Tab", Type = "keydown", })); + await comp.InvokeAsync(() => datePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "Tab", Type = "keydown", })); comp.WaitForAssertion(() => comp.FindAll("div.mud-picker-open").Count.Should().Be(0)); datePicker.Disabled = true; - await comp.InvokeAsync(() => datePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "Enter", Type = "keydown", })); + await comp.InvokeAsync(() => datePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "Enter", Type = "keydown", })); comp.WaitForAssertion(() => comp.FindAll("div.mud-picker-open").Count.Should().Be(0)); await comp.InvokeAsync(() => datePicker.ToggleOpenAsync()); @@ -1125,7 +1125,7 @@ public async Task DatePickerTest_KeyboardNavigation() datePicker.Disabled = false; - await comp.InvokeAsync(() => datePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "NumpadEnter", Type = "keydown", })); + await comp.InvokeAsync(() => datePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "NumpadEnter", Type = "keydown", })); comp.WaitForAssertion(() => comp.FindAll("div.mud-picker-open").Count.Should().Be(1)); await comp.InvokeAsync(() => datePicker.ToggleStateAsync()); diff --git a/src/MudBlazor.UnitTests/Components/PickerTests.cs b/src/MudBlazor.UnitTests/Components/PickerTests.cs index 1e9896f9ee04..4728f54a61c1 100644 --- a/src/MudBlazor.UnitTests/Components/PickerTests.cs +++ b/src/MudBlazor.UnitTests/Components/PickerTests.cs @@ -30,7 +30,7 @@ public async Task PickerTest_Fundamentals() await comp.InvokeAsync(async () => await picker.Instance.SelectRangeAsync(0, 0)); #pragma warning disable BL0005 await comp.InvokeAsync(() => picker.Instance.Disabled = true); - await comp.InvokeAsync(() => picker.Instance.HandleKeyDown(new KeyboardEventArgs())); + await comp.InvokeAsync(() => picker.Instance.OnHandleKeyDownAsync(new KeyboardEventArgs())); } [Test] diff --git a/src/MudBlazor.UnitTests/Components/TimePickerTests.cs b/src/MudBlazor.UnitTests/Components/TimePickerTests.cs index 02cbb8a91ef2..f69e5117f0c1 100644 --- a/src/MudBlazor.UnitTests/Components/TimePickerTests.cs +++ b/src/MudBlazor.UnitTests/Components/TimePickerTests.cs @@ -835,94 +835,94 @@ public async Task TimePickerTest_KeyboardNavigation() var timePicker = comp.FindComponent().Instance; var overlay = comp.FindComponent(); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "Enter", Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "Enter", Type = "keydown", })); comp.WaitForAssertion(() => comp.FindAll("div.mud-picker-open").Count.Should().Be(1)); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "Escape", Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "Escape", Type = "keydown", })); comp.WaitForAssertion(() => comp.FindAll("div.mud-picker-open").Count.Should().Be(0)); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = " ", Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = " ", Type = "keydown", })); comp.WaitForAssertion(() => comp.FindAll("div.mud-picker-open").Count.Should().Be(1)); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "ArrowUp", AltKey = true, Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "ArrowUp", AltKey = true, Type = "keydown", })); comp.WaitForAssertion(() => comp.FindAll("div.mud-picker-open").Count.Should().Be(0)); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "ArrowDown", Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "ArrowDown", Type = "keydown", })); comp.WaitForAssertion(() => comp.FindAll("div.mud-picker-open").Count.Should().Be(1)); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "ArrowUp", AltKey = true, Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "ArrowUp", AltKey = true, Type = "keydown", })); comp.WaitForAssertion(() => comp.FindAll("div.mud-picker-open").Count.Should().Be(0)); comp.SetParam("Time", new TimeSpan(02, 00, 00)); comp.WaitForAssertion(() => comp.Instance.Time.Should().Be(new TimeSpan(02, 00, 00))); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "ArrowUp", Type = "keydown", })); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "ArrowDown", Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "ArrowUp", Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "ArrowDown", Type = "keydown", })); comp.WaitForAssertion(() => timePicker.TimeIntermediate.Should().Be(new TimeSpan(01, 00, 00))); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "ArrowUp", Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "ArrowUp", Type = "keydown", })); comp.WaitForAssertion(() => timePicker.TimeIntermediate.Should().Be(new TimeSpan(02, 00, 00))); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "ArrowLeft", Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "ArrowLeft", Type = "keydown", })); comp.WaitForAssertion(() => timePicker.TimeIntermediate.Should().Be(new TimeSpan(01, 59, 00))); //Enter keys submit, so time should only change with enter comp.WaitForAssertion(() => timePicker.Time.Should().Be(new TimeSpan(02, 00, 00))); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "Enter", Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "Enter", Type = "keydown", })); comp.WaitForAssertion(() => timePicker.Time.Should().Be(new TimeSpan(01, 59, 00))); //If IsOpen is false, arrowkeys should now change TimeIntermediate - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "ArrowRight", Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "ArrowRight", Type = "keydown", })); comp.WaitForAssertion(() => timePicker.TimeIntermediate.Should().Be(new TimeSpan(01, 59, 00))); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = " ", Type = "keydown", })); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "ArrowRight", Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = " ", Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "ArrowRight", Type = "keydown", })); comp.WaitForAssertion(() => timePicker.TimeIntermediate.Should().Be(new TimeSpan(02, 00, 00))); //Escape key should turn last submitted time - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "Escape", Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "Escape", Type = "keydown", })); comp.WaitForAssertion(() => timePicker.TimeIntermediate.Should().Be(new TimeSpan(01, 59, 00))); comp.WaitForAssertion(() => timePicker.Time.Should().Be(new TimeSpan(01, 59, 00))); //Space key should also submit - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = " ", Type = "keydown", })); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "ArrowRight", Type = "keydown", })); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = " ", Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = " ", Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "ArrowRight", Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = " ", Type = "keydown", })); comp.WaitForAssertion(() => timePicker.TimeIntermediate.Should().Be(new TimeSpan(02, 00, 00))); comp.WaitForAssertion(() => timePicker.Time.Should().Be(new TimeSpan(02, 00, 00))); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = " ", CtrlKey = true, Type = "keydown", })); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "ArrowRight", CtrlKey = true, Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = " ", CtrlKey = true, Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "ArrowRight", CtrlKey = true, Type = "keydown", })); comp.WaitForAssertion(() => timePicker.TimeIntermediate.Should().Be(new TimeSpan(03, 00, 00))); comp.SetParam("Time", new TimeSpan(03, 56, 00)); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "ArrowRight", ShiftKey = true, Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "ArrowRight", ShiftKey = true, Type = "keydown", })); comp.WaitForAssertion(() => timePicker.TimeIntermediate.Should().Be(new TimeSpan(04, 01, 00))); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "ArrowLeft", ShiftKey = true, Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "ArrowLeft", ShiftKey = true, Type = "keydown", })); comp.WaitForAssertion(() => timePicker.TimeIntermediate.Should().Be(new TimeSpan(03, 56, 00))); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "ArrowLeft", CtrlKey = true, Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "ArrowLeft", CtrlKey = true, Type = "keydown", })); comp.WaitForAssertion(() => timePicker.TimeIntermediate.Should().Be(new TimeSpan(02, 56, 00))); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "ArrowLeft", ShiftKey = true, Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "ArrowLeft", ShiftKey = true, Type = "keydown", })); comp.WaitForAssertion(() => timePicker.TimeIntermediate.Should().Be(new TimeSpan(02, 51, 00))); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "ArrowRight", ShiftKey = true, Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "ArrowRight", ShiftKey = true, Type = "keydown", })); comp.WaitForAssertion(() => timePicker.TimeIntermediate.Should().Be(new TimeSpan(02, 56, 00))); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "ArrowUp", ShiftKey = true, Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "ArrowUp", ShiftKey = true, Type = "keydown", })); comp.WaitForAssertion(() => timePicker.TimeIntermediate.Should().Be(new TimeSpan(07, 56, 00))); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "ArrowDown", ShiftKey = true, Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "ArrowDown", ShiftKey = true, Type = "keydown", })); comp.WaitForAssertion(() => timePicker.TimeIntermediate.Should().Be(new TimeSpan(02, 56, 00))); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "Backspace", CtrlKey = true, ShiftKey = true, Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "Backspace", CtrlKey = true, ShiftKey = true, Type = "keydown", })); comp.WaitForAssertion(() => timePicker.TimeIntermediate.Should().Be(null)); comp.WaitForAssertion(() => timePicker.Time.Should().Be(null)); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "Escape", Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "Escape", Type = "keydown", })); //When its disabled, keys should not work timePicker.Disabled = true; timePicker.FocusAsync().AndForget(); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "Escape", Type = "keydown", })); - await comp.InvokeAsync(() => timePicker.HandleKeyDown(new KeyboardEventArgs() { Key = "Enter", Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "Escape", Type = "keydown", })); + await comp.InvokeAsync(() => timePicker.OnHandleKeyDownAsync(new KeyboardEventArgs() { Key = "Enter", Type = "keydown", })); comp.WaitForAssertion(() => comp.FindAll("div.mud-picker-open").Count.Should().Be(0)); await comp.InvokeAsync(() => timePicker.TimeFormat = "hhmm"); diff --git a/src/MudBlazor/Attributes/CategoryAttribute.cs b/src/MudBlazor/Attributes/CategoryAttribute.cs index 959cedf4983b..d222ffd1c127 100644 --- a/src/MudBlazor/Attributes/CategoryAttribute.cs +++ b/src/MudBlazor/Attributes/CategoryAttribute.cs @@ -408,6 +408,12 @@ public static class Paper public const string Appearance = "Appearance"; } + public static class Picker + { + public const string Behavior = "Behavior"; + public const string Appearance = "Appearance"; + } + public static class Popover { public const string Behavior = "Behavior"; diff --git a/src/MudBlazor/Components/ColorPicker/MudColorPicker.razor.cs b/src/MudBlazor/Components/ColorPicker/MudColorPicker.razor.cs index b1b3c6a8fab1..935cd7881b2e 100644 --- a/src/MudBlazor/Components/ColorPicker/MudColorPicker.razor.cs +++ b/src/MudBlazor/Components/ColorPicker/MudColorPicker.razor.cs @@ -502,7 +502,7 @@ public void SetInputString(string input) Value = color; } - protected override Task StringValueChanged(string value) + protected override Task StringValueChangedAsync(string value) { SetInputString(value); return Task.CompletedTask; @@ -551,18 +551,18 @@ protected override async Task OnAfterRenderAsync(bool firstRender) { if (PickerVariant == PickerVariant.Static) { - await AddMouseOverEvent(); + await AddMouseOverEventAsync(); } } if (_attachedMouseEvent == true) { _attachedMouseEvent = false; - await AddMouseOverEvent(); + await AddMouseOverEventAsync(); } } - private async Task AddMouseOverEvent() + private async Task AddMouseOverEventAsync() { if (DisableDragEffect == true) { return; } diff --git a/src/MudBlazor/Components/DatePicker/MudBaseDatePicker.razor.cs b/src/MudBlazor/Components/DatePicker/MudBaseDatePicker.razor.cs index b2dddcce9176..c10df7646339 100644 --- a/src/MudBlazor/Components/DatePicker/MudBaseDatePicker.razor.cs +++ b/src/MudBlazor/Components/DatePicker/MudBaseDatePicker.razor.cs @@ -66,14 +66,14 @@ public string DateFormat defaultConverter.Format = value; _dateFormatTouched = true; } - DateFormatChanged(value); + DateFormatChangedAsync(value); } } /// /// Date format value change hook for descendants. /// - protected virtual Task DateFormatChanged(string newFormat) + protected virtual Task DateFormatChangedAsync(string newFormat) { return Task.CompletedTask; } diff --git a/src/MudBlazor/Components/DatePicker/MudDatePicker.cs b/src/MudBlazor/Components/DatePicker/MudDatePicker.cs index 576ba7865dc2..3342385bc9ea 100644 --- a/src/MudBlazor/Components/DatePicker/MudDatePicker.cs +++ b/src/MudBlazor/Components/DatePicker/MudDatePicker.cs @@ -75,13 +75,13 @@ protected async Task SetDateAsync(DateTime? date, bool updateValue) } } - protected override Task DateFormatChanged(string newFormat) + protected override Task DateFormatChangedAsync(string newFormat) { Touched = true; return SetTextAsync(Converter.Set(_value), false); } - protected override Task StringValueChanged(string value) + protected override Task StringValueChangedAsync(string value) { Touched = true; // Update the date property (without updating back the Value property) @@ -218,16 +218,15 @@ protected override int GetCalendarYear(DateTime yearDate) var diff = Culture.Calendar.GetYear(date) - Culture.Calendar.GetYear(yearDate); var calenderYear = Culture.Calendar.GetYear(date); return calenderYear - diff; - } //To be completed on next PR - protected internal override async void HandleKeyDown(KeyboardEventArgs obj) + protected internal override async Task OnHandleKeyDownAsync(KeyboardEventArgs args) { if (GetDisabledState() || GetReadOnlyState()) return; - base.HandleKeyDown(obj); - switch (obj.Key) + await base.OnHandleKeyDownAsync(args); + switch (args.Key) { case "ArrowRight": if (IsOpen) @@ -246,11 +245,11 @@ protected internal override async void HandleKeyDown(KeyboardEventArgs obj) { IsOpen = true; } - else if (obj.AltKey == true) + else if (args.AltKey == true) { IsOpen = false; } - else if (obj.ShiftKey == true) + else if (args.ShiftKey == true) { } @@ -264,7 +263,7 @@ protected internal override async void HandleKeyDown(KeyboardEventArgs obj) { IsOpen = true; } - else if (obj.ShiftKey == true) + else if (args.ShiftKey == true) { } diff --git a/src/MudBlazor/Components/DatePicker/MudDateRangePicker.razor b/src/MudBlazor/Components/DatePicker/MudDateRangePicker.razor index 513fcfec4236..6b3c42325269 100644 --- a/src/MudBlazor/Components/DatePicker/MudDateRangePicker.razor +++ b/src/MudBlazor/Components/DatePicker/MudDateRangePicker.razor @@ -10,7 +10,7 @@ ErrorText="@ErrorText" Disabled="@GetDisabledState()" Margin="@Margin" Required="@Required" @onclick="async () => { if (!Editable) await ToggleStateAsync(); }" ForId="@FieldId"> - diff --git a/src/MudBlazor/Components/DatePicker/MudDateRangePicker.razor.cs b/src/MudBlazor/Components/DatePicker/MudDateRangePicker.razor.cs index c92fcf57a6dd..773ac0133702 100644 --- a/src/MudBlazor/Components/DatePicker/MudDateRangePicker.razor.cs +++ b/src/MudBlazor/Components/DatePicker/MudDateRangePicker.razor.cs @@ -159,16 +159,16 @@ private Range RangeText /// public ValueTask SelectRangeEndAsync(int pos1, int pos2) => _rangeInput.SelectRangeEndAsync(pos1, pos2); - protected override Task DateFormatChanged(string newFormat) + protected override Task DateFormatChangedAsync(string newFormat) { Touched = true; return SetTextAsync(_dateRange?.ToString(Converter), false); } - protected override Task StringValueChanged(string value) + protected override Task StringValueChangedAsync(string value) { Touched = true; - // Update the daterange property (without updating back the Value property) + // Update the date range property (without updating back the Value property) return SetDateRangeAsync(ParseDateRangeValue(value), false); } diff --git a/src/MudBlazor/Components/Picker/MudPicker.razor b/src/MudBlazor/Components/Picker/MudPicker.razor index 67e797a45692..f98620c8224b 100644 --- a/src/MudBlazor/Components/Picker/MudPicker.razor +++ b/src/MudBlazor/Components/Picker/MudPicker.razor @@ -1,4 +1,3 @@ -@using MudBlazor.Internal @namespace MudBlazor @inherits MudFormComponent @typeparam T @@ -44,7 +43,7 @@ protected virtual RenderFragment Render => @ -
+
@if (PickerVariant != PickerVariant.Static) { @@ -56,16 +55,16 @@ @if (PickerVariant == PickerVariant.Inline) { -
- -
+
+ +
@if(PickerContent != null){ @PickerContent }
@if (PickerActions != null) { -
+
@PickerActions(this)
} @@ -75,15 +74,15 @@ } else if (PickerVariant == PickerVariant.Static) { - -
+ +
@if(PickerContent != null){ @PickerContent }
@if (PickerActions != null) { -
+
@PickerActions(this)
} @@ -92,15 +91,15 @@ else if(IsOpen && PickerVariant == PickerVariant.Dialog) { - -
+ +
@if(PickerContent != null){ @PickerContent }
@if (PickerActions != null) { -
+
@PickerActions(this)
} @@ -114,5 +113,3 @@ } ; } - - diff --git a/src/MudBlazor/Components/Picker/MudPicker.razor.cs b/src/MudBlazor/Components/Picker/MudPicker.razor.cs index 730c23ef1952..f663458707bc 100644 --- a/src/MudBlazor/Components/Picker/MudPicker.razor.cs +++ b/src/MudBlazor/Components/Picker/MudPicker.razor.cs @@ -1,5 +1,4 @@ using System; -using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; @@ -15,23 +14,24 @@ public partial class MudPicker : MudFormComponent public MudPicker() : base(new Converter()) { } protected MudPicker(Converter converter) : base(converter) { } - [Inject] private IKeyInterceptorFactory _keyInterceptorFactory { get; set; } + [Inject] + private IKeyInterceptorFactory KeyInterceptorFactory { get; set; } private string _elementId = "picker" + Guid.NewGuid().ToString().Substring(0, 8); - protected string PickerClass => + protected string PickerClassname => new CssBuilder("mud-picker") - .AddClass($"mud-picker-inline", PickerVariant != PickerVariant.Static) - .AddClass($"mud-picker-static", PickerVariant == PickerVariant.Static) - .AddClass($"mud-rounded", PickerVariant == PickerVariant.Static && !_pickerSquare) + .AddClass("mud-picker-inline", PickerVariant != PickerVariant.Static) + .AddClass("mud-picker-static", PickerVariant == PickerVariant.Static) + .AddClass("mud-rounded", PickerVariant == PickerVariant.Static && !_pickerSquare) .AddClass($"mud-elevation-{_pickerElevation}", PickerVariant == PickerVariant.Static) - .AddClass($"mud-picker-input-button", !Editable && PickerVariant != PickerVariant.Static) - .AddClass($"mud-picker-input-text", Editable && PickerVariant != PickerVariant.Static) - .AddClass($"mud-disabled", GetDisabledState() && PickerVariant != PickerVariant.Static) + .AddClass("mud-picker-input-button", !Editable && PickerVariant != PickerVariant.Static) + .AddClass("mud-picker-input-text", Editable && PickerVariant != PickerVariant.Static) + .AddClass("mud-disabled", GetDisabledState() && PickerVariant != PickerVariant.Static) .AddClass(Class) .Build(); - protected string PickerPaperClass => + protected string PickerPaperClassname => new CssBuilder("mud-picker") .AddClass("mud-picker-paper") .AddClass("mud-picker-view", PickerVariant == PickerVariant.Inline) @@ -40,36 +40,26 @@ protected MudPicker(Converter converter) : base(converter) { } .AddClass("mud-dialog", PickerVariant == PickerVariant.Dialog) .Build(); - protected string PickerInlineClass => + protected string PickerInlineClassname => new CssBuilder("mud-picker-inline-paper") .Build(); - protected string PickerContainerClass => + protected string PickerContainerClassname => new CssBuilder("mud-picker-container") .AddClass("mud-paper-square", _pickerSquare) .AddClass("mud-picker-container-landscape", Orientation == Orientation.Landscape && PickerVariant == PickerVariant.Static) .Build(); - protected string PickerInputClass => - new CssBuilder("mud-input-input-control").AddClass(Class) + protected string PickerInputClassname => + new CssBuilder("mud-input-input-control") + .AddClass(Class) .Build(); - protected string ActionClass => new CssBuilder("mud-picker-actions") - .AddClass(ClassActions) - .Build(); - - /// - /// Sets the icon of the input text field - /// - [ExcludeFromCodeCoverage] - [Parameter] - [Obsolete("Use AdornmentIcon instead.", true)] - public string InputIcon - { - get { return AdornmentIcon; } - set { AdornmentIcon = value; } - } + protected string ActionsClassname => + new CssBuilder("mud-picker-actions") + .AddClass(ActionsClass) + .Build(); /// /// The color of the adornment if used. It supports the theme colors. @@ -166,7 +156,9 @@ public string InputIcon [Parameter] [Category(CategoryTypes.FormComponent.Behavior)] public bool Disabled { get; set; } - [CascadingParameter(Name = "ParentDisabled")] private bool ParentDisabled { get; set; } + + [CascadingParameter(Name = "ParentDisabled")] + private bool ParentDisabled { get; set; } protected bool GetDisabledState() => Disabled || ParentDisabled; /// @@ -182,7 +174,9 @@ public string InputIcon [Parameter] [Category(CategoryTypes.FormComponent.Behavior)] public bool ReadOnly { get; set; } - [CascadingParameter(Name = "ParentReadOnly")] private bool ParentReadOnly { get; set; } + + [CascadingParameter(Name = "ParentReadOnly")] + private bool ParentReadOnly { get; set; } protected bool GetReadOnlyState() => ReadOnly || ParentReadOnly; /// @@ -213,18 +207,6 @@ public string InputIcon [Category(CategoryTypes.FormComponent.Behavior)] public PickerVariant PickerVariant { get; set; } = PickerVariant.Inline; - /// - /// Variant of the text input - /// - [ExcludeFromCodeCoverage] - [Parameter] - [Obsolete("Use Variant instead.", true)] - public Variant InputVariant - { - get { return Variant; } - set { Variant = value; } - } - /// /// Variant of the text input /// @@ -233,7 +215,7 @@ public Variant InputVariant public Variant Variant { get; set; } = Variant.Text; /// - /// Sets if the icon will be att start or end, set to false to disable. + /// Sets if the icon will be att start or end, set to None to disable. /// [Parameter] [Category(CategoryTypes.FormComponent.Behavior)] @@ -260,13 +242,6 @@ public Variant InputVariant [Category(CategoryTypes.FormComponent.PickerAppearance)] public Color Color { get; set; } = Color.Primary; - /// - /// Changes the cursor appearance. - /// - [Obsolete("This is enabled now by default when you use Editable=true. You can remove the parameter.", false)] - [Parameter] - public bool AllowKeyboardInput { get; set; } - /// /// Fired when the text changes. /// @@ -305,7 +280,7 @@ public string Text /// [Parameter] [Category(CategoryTypes.FormComponent.PickerAppearance)] - public string ClassActions { get; set; } + public string ActionsClass { get; set; } /// /// Define the action buttons here @@ -354,7 +329,7 @@ protected async Task SetTextAsync(string value, bool callback) { _text = value; if (callback) - await StringValueChanged(_text); + await StringValueChangedAsync(_text); await TextChanged.InvokeAsync(_text); } } @@ -362,22 +337,22 @@ protected async Task SetTextAsync(string value, bool callback) /// /// Value change hook for descendants. /// - protected virtual Task StringValueChanged(string value) + protected virtual Task StringValueChangedAsync(string value) { return Task.CompletedTask; } protected bool IsOpen { get; set; } - public async Task ToggleOpenAsync() + public Task ToggleOpenAsync() { if (IsOpen) { - await CloseAsync(); + return CloseAsync(); } else { - await OpenAsync(); + return OpenAsync(); } } @@ -468,11 +443,11 @@ protected override void OnInitialized() Label = For.GetLabelString(); } - private async Task EnsureKeyInterceptor() + private async Task EnsureKeyInterceptorAsync() { if (_keyInterceptor == null) { - _keyInterceptor = _keyInterceptorFactory.Create(); + _keyInterceptor = KeyInterceptorFactory.Create(); await _keyInterceptor.Connect(_elementId, new KeyInterceptorOptions() { @@ -505,11 +480,25 @@ private async Task OnClickAsync(MouseEventArgs args) } } + /// + /// 'HandleKeyDown' needed to be async in order to call other async methods. Because + /// the HandleKeyDown is virtual and the base needs to be called from overriden methods + /// we can't use 'async void'. This would break the synchronous behavior of those + /// overriden methods. The KeyInterceptor does not support async behavior, so we have to + /// add this hook method for handling the KeyDown event. + /// This method can be removed when the KeyInterceptor supports async behavior. + /// + /// + private async void HandleKeyDown(KeyboardEventArgs args) + { + await OnHandleKeyDownAsync(args); + } + protected override async Task OnAfterRenderAsync(bool firstRender) { if (firstRender) { - await EnsureKeyInterceptor(); + await EnsureKeyInterceptorAsync(); } await base.OnAfterRenderAsync(firstRender); @@ -538,10 +527,10 @@ protected virtual async Task OnOpenedAsync() if (PickerVariant == PickerVariant.Inline) { - await _pickerInlineRef.MudChangeCssAsync(PickerInlineClass); + await _pickerInlineRef.MudChangeCssAsync(PickerInlineClassname); } - await EnsureKeyInterceptor(); + await EnsureKeyInterceptorAsync(); await _keyInterceptor.UpdateKey(new() { Key = "Escape", StopDown = "key+none" }); } @@ -549,7 +538,7 @@ protected virtual async Task OnClosedAsync() { await OnPickerClosedAsync(); - await EnsureKeyInterceptor(); + await EnsureKeyInterceptorAsync(); await _keyInterceptor.UpdateKey(new() { Key = "Escape", StopDown = "none" }); } @@ -557,20 +546,17 @@ protected virtual async Task OnClosedAsync() protected virtual Task OnPickerClosedAsync() => PickerClosed.InvokeAsync(this); - protected internal virtual async void HandleKeyDown(KeyboardEventArgs obj) + protected internal virtual async Task OnHandleKeyDownAsync(KeyboardEventArgs args) { if (GetDisabledState() || GetReadOnlyState()) return; - switch (obj.Key) + switch (args.Key) { case "Backspace": - if (obj.CtrlKey == true && obj.ShiftKey == true) + if (args.CtrlKey == true && args.ShiftKey == true) { await ClearAsync(); - _value = default(T); - - // TODO: Probably need to create a HandleKeyDownAsync that awaits ResetValueAsync() - // Simply replacing Reset() with ResetValueAsync().AndForget() may cause issues in BSS + _value = default; await ResetAsync(); } diff --git a/src/MudBlazor/Components/Picker/MudPickerContent.razor b/src/MudBlazor/Components/Picker/MudPickerContent.razor index 642c76f41c1f..90399d757acd 100644 --- a/src/MudBlazor/Components/Picker/MudPickerContent.razor +++ b/src/MudBlazor/Components/Picker/MudPickerContent.razor @@ -1,16 +1,6 @@ @namespace MudBlazor -@using MudBlazor.Utilities +@inherits MudComponentBase -
+
@ChildContent
- -@code { - protected string Classnames => - new CssBuilder("mud-picker-content") - .AddClass(Class) - .Build(); - - [Parameter] public string Class { get; set; } - [Parameter] public RenderFragment ChildContent { get; set; } -} diff --git a/src/MudBlazor/Components/Picker/MudPickerContent.razor.cs b/src/MudBlazor/Components/Picker/MudPickerContent.razor.cs new file mode 100644 index 000000000000..8bf1503c0109 --- /dev/null +++ b/src/MudBlazor/Components/Picker/MudPickerContent.razor.cs @@ -0,0 +1,20 @@ +using Microsoft.AspNetCore.Components; +using MudBlazor.Utilities; + +namespace MudBlazor +{ + public partial class MudPickerContent : MudComponentBase + { + protected string Classname => + new CssBuilder("mud-picker-content") + .AddClass(Class) + .Build(); + + /// + /// Child content of component. + /// + [Parameter] + [Category(CategoryTypes.Picker.Behavior)] + public RenderFragment ChildContent { get; set; } + } +} diff --git a/src/MudBlazor/Components/Picker/MudPickerToolbar.razor b/src/MudBlazor/Components/Picker/MudPickerToolbar.razor index 26990ad9f76b..dc6b2e6446e0 100644 --- a/src/MudBlazor/Components/Picker/MudPickerToolbar.razor +++ b/src/MudBlazor/Components/Picker/MudPickerToolbar.razor @@ -1,27 +1,9 @@ @namespace MudBlazor -@using MudBlazor.Utilities +@inherits MudComponentBase @if (!DisableToolbar) { - + @ChildContent } - - -@code { - protected string Classnames => - new CssBuilder("mud-picker-toolbar") - .AddClass($"mud-theme-{Color.ToDescriptionString()}") - .AddClass("mud-picker-toolbar-landscape", Orientation == Orientation.Landscape && PickerVariant == PickerVariant.Static) - .AddClass(Class) - .Build(); - - [Parameter] public string Class { get; set; } - [Parameter] public string Style { get; set; } - [Parameter] public bool DisableToolbar { get; set; } - [Parameter] public Orientation Orientation { get; set; } - [Parameter] public PickerVariant PickerVariant { get; set; } - [Parameter] public Color Color { get; set; } - [Parameter] public RenderFragment ChildContent { get; set; } -} diff --git a/src/MudBlazor/Components/Picker/MudPickerToolbar.razor.cs b/src/MudBlazor/Components/Picker/MudPickerToolbar.razor.cs new file mode 100644 index 000000000000..86bcdac4b963 --- /dev/null +++ b/src/MudBlazor/Components/Picker/MudPickerToolbar.razor.cs @@ -0,0 +1,50 @@ +using Microsoft.AspNetCore.Components; +using MudBlazor.Utilities; + +namespace MudBlazor; + +public partial class MudPickerToolbar : MudComponentBase +{ + protected string Classname => + new CssBuilder("mud-picker-toolbar") + .AddClass($"mud-theme-{Color.ToDescriptionString()}") + .AddClass("mud-picker-toolbar-landscape", + Orientation == Orientation.Landscape && PickerVariant == PickerVariant.Static) + .AddClass(Class) + .Build(); + + /// + /// Hide toolbar + /// + [Parameter] + [Category(CategoryTypes.Picker.Behavior)] + public bool DisableToolbar { get; set; } + + /// + /// Sets the orientation of the toolbar + /// + [Parameter] + [Category(CategoryTypes.Picker.Appearance)] + public Orientation Orientation { get; set; } + + /// + /// Picker container option + /// + [Parameter] + [Category(CategoryTypes.Picker.Appearance)] + public PickerVariant PickerVariant { get; set; } + + /// + /// The color of the toolbar, selected and active. It supports the theme colors + /// + [Parameter] + [Category(CategoryTypes.Picker.Appearance)] + public Color Color { get; set; } + + /// + /// Child content of toolbar + /// + [Parameter] + [Category(CategoryTypes.Picker.Behavior)] + public RenderFragment ChildContent { get; set; } +} diff --git a/src/MudBlazor/Components/TimePicker/MudTimePicker.razor.cs b/src/MudBlazor/Components/TimePicker/MudTimePicker.razor.cs index 8e1595b1b1be..27ddd9b53e34 100644 --- a/src/MudBlazor/Components/TimePicker/MudTimePicker.razor.cs +++ b/src/MudBlazor/Components/TimePicker/MudTimePicker.razor.cs @@ -193,7 +193,7 @@ protected async Task SetTimeAsync(TimeSpan? time, bool updateValue) ///
[Parameter] public EventCallback TimeChanged { get; set; } - protected override Task StringValueChanged(string value) + protected override Task StringValueChangedAsync(string value) { Touched = true; // Update the time property (without updating back the Value property) @@ -575,11 +575,11 @@ protected async Task SubmitAndCloseAsync() } } - protected internal override async void HandleKeyDown(KeyboardEventArgs obj) + protected internal override async Task OnHandleKeyDownAsync(KeyboardEventArgs obj) { if (GetDisabledState() || GetReadOnlyState()) return; - base.HandleKeyDown(obj); + await base.OnHandleKeyDownAsync(obj); switch (obj.Key) { case "ArrowRight": From e4ec689f28d13136c1cce75be35dfd64e17da082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20Can=20Karag=C3=B6z?= <78308169+mckaragoz@users.noreply.github.com> Date: Sun, 31 Mar 2024 22:04:20 +0300 Subject: [PATCH 33/50] MudChip and MudChipset: Support Generic (#4342) Co-authored-by: Meinrad Recheis --- src/MudBlazor.Docs/Components/DocsApi.razor | 2 +- .../LandingPage/MiniApp/MiniApp.razor | 2 +- src/MudBlazor.Docs/Models/ApiLink.cs | 2 +- .../AutocompleteClrObjectsExample.razor | 2 +- .../Examples/AutocompleteUsageExample.razor | 2 +- .../AutocompleteValidationExample.razor | 2 +- .../Examples/BadgeInteractiveExample.razor | 2 +- .../Chip/Examples/ChipAvatarExample.razor | 4 +- .../Chip/Examples/ChipBasicExample.razor | 32 +- .../Chip/Examples/ChipClickableExample.razor | 2 +- .../Chip/Examples/ChipClosableExample.razor | 10 +- .../Chip/Examples/ChipIconExample.razor | 10 +- .../Chip/Examples/ChipLabelExample.razor | 8 +- .../Chip/Examples/ChipOutlinedExample.razor | 32 +- .../Chip/Examples/ChipSizeExample.razor | 6 +- .../Chip/Examples/ChipTextExample.razor | 32 +- .../Components/ChipSet/ChipSetPage.razor | 25 +- .../Examples/ChipSetAddRemoveExample.razor | 21 +- .../Examples/ChipSetBasicExample.razor | 30 +- .../Examples/ChipSetChipBindingExample.razor | 36 ++ .../Examples/ChipSetDefaultChipsExample.razor | 22 +- .../ChipSetMultiselectionExample.razor | 31 +- .../ChipSetSelectedColorExample.razor | 41 +- .../Examples/ChipSetVariantsExample.razor | 58 +- .../Examples/DataGridGroupingExample.razor | 2 +- .../Examples/DividerMiddleExample.razor | 2 +- .../DragAndDropFileUploadExample.razor | 59 ++ ...loadDragAndDropCustomScenarioExample.razor | 2 +- ...DragAndDropWithFormValidationExample.razor | 2 +- .../Image/Examples/ImageFitExample.razor | 12 +- .../Image/Examples/ImagePositionExample.razor | 20 +- .../List/Examples/ListSelectionExample.razor | 2 +- .../Menu/Examples/MenuActivatorExample1.razor | 4 +- .../Menu/Examples/MenuActivatorExample2.razor | 6 +- .../Examples/MessageBoxInlineExample.razor | 2 +- .../MessageBoxMarkupContentExample.razor | 2 +- .../Examples/MessageBoxSimpleExample.razor | 2 +- .../Select/Examples/SelectUsageExample.razor | 6 +- .../SnackbarFromCustomComponentExample.razor | 2 +- .../SnackbarPreventDuplicatesExample.razor | 2 +- .../Stack/Examples/StackAlignExample.razor | 12 +- .../Stack/Examples/StackCombinedExample.razor | 12 +- .../Examples/StackInteractiveExample.razor | 26 +- .../Stack/Examples/StackJustifyExample.razor | 14 +- .../Stack/Examples/StackWrappingExample.razor | 8 +- .../Pages/Features/Icons/IconsPage.razor | 22 +- .../Services/Menu/MenuService.cs | 4 +- .../Chip/ChipAvatarContentTest.razor | 2 +- .../Chip/ChipHrefCursorTest.razor | 2 +- .../TestComponents/Chip/ChipLinkTest.razor | 2 +- .../TestComponents/Chip/ChipOnClickTest.razor | 2 +- .../ChipSet/ChipSetChipBindingTest.razor | 38 ++ .../ChipSet/ChipSetClearSelectionTest.razor | 36 +- .../ChipSet/ChipSetComparerTest.razor | 32 +- .../ChipSet/ChipSetDefaultChipsTest.razor | 44 +- .../ChipSet/ChipSetLateDefaultTest.razor | 16 +- .../ChipSet/ChipSetMultiSelectionTest.razor | 38 ++ .../ChipSet/ChipSetReadOnlyTest.razor | 16 +- .../ChipSetSelectionInitialValuesTest.razor | 20 - .../ChipSetSelectionTwoWayBindingTest.razor | 24 +- .../ChipSet/ChipSetSingleSelectionTest.razor | 41 ++ .../TestComponents/ChipSet/ChipSetTest.razor | 35 +- .../FileUploadButtonTemplateContextTest.razor | 2 +- .../Form/EditFormOnFieldChangedTest.razor | 6 +- ...leUploadAndButtonTemplateContextTest.razor | 2 +- .../List/ListSelectionInitialValueTest.razor | 2 +- .../List/ListSelectionTest.razor | 2 +- .../Snackbar/SnackbarCustomComponent.razor | 2 +- .../Components/ChipSetTests.cs | 410 ++++++++---- .../Components/ChipTests.cs | 6 +- src/MudBlazor/Components/Chip/MudChip.razor | 30 +- .../Components/Chip/MudChip.razor.cs | 586 +++++++++-------- .../Components/ChipSet/MudChipSet.razor | 1 + .../Components/ChipSet/MudChipSet.razor.cs | 610 +++++++++--------- src/MudBlazor/MudBlazor.csproj.DotSettings | 1 + 75 files changed, 1491 insertions(+), 1156 deletions(-) create mode 100644 src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetChipBindingExample.razor create mode 100644 src/MudBlazor.Docs/Pages/Components/FileUpload/Examples/DragAndDropFileUploadExample.razor create mode 100644 src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetChipBindingTest.razor create mode 100644 src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetMultiSelectionTest.razor delete mode 100644 src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetSelectionInitialValuesTest.razor create mode 100644 src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetSingleSelectionTest.razor diff --git a/src/MudBlazor.Docs/Components/DocsApi.razor b/src/MudBlazor.Docs/Components/DocsApi.razor index 7abe8b3f0a14..490cbdc9ba22 100644 --- a/src/MudBlazor.Docs/Components/DocsApi.razor +++ b/src/MudBlazor.Docs/Components/DocsApi.razor @@ -52,7 +52,7 @@ @context.Name @if (_propertiesGrouping == Grouping.Inheritance && IsOverridden(context.PropertyInfo)) { - overridden + overridden } diff --git a/src/MudBlazor.Docs/Components/LandingPage/MiniApp/MiniApp.razor b/src/MudBlazor.Docs/Components/LandingPage/MiniApp/MiniApp.razor index 6cd470097a7e..f9904c9acd66 100644 --- a/src/MudBlazor.Docs/Components/LandingPage/MiniApp/MiniApp.razor +++ b/src/MudBlazor.Docs/Components/LandingPage/MiniApp/MiniApp.razor @@ -147,7 +147,7 @@ Reactor Type
- RBMK-1000RBMK-1500RBMKP-2400 + RBMK-1000RBMK-1500RBMKP-2400
Read More diff --git a/src/MudBlazor.Docs/Models/ApiLink.cs b/src/MudBlazor.Docs/Models/ApiLink.cs index 0c786dd8c61f..85ee672e0496 100644 --- a/src/MudBlazor.Docs/Models/ApiLink.cs +++ b/src/MudBlazor.Docs/Models/ApiLink.cs @@ -91,7 +91,7 @@ private static string GetComponentName(Type type) [typeof(Donut)] = "donutchart", [typeof(Line)] = "linechart", [typeof(Pie)] = "piechart", - [typeof(MudChip)] = "chips", + [typeof(MudChip)] = "chips", [typeof(ChartOptions)] = "options" }; diff --git a/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteClrObjectsExample.razor b/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteClrObjectsExample.razor index 8d35ac90d7b0..dcc7aa54608b 100644 --- a/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteClrObjectsExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteClrObjectsExample.razor @@ -26,7 +26,7 @@ - Selected values: @(value1?.ToString() ?? "Not selected")@(value2?.ToString() ?? "Not selected") + Selected values: @(value1?.ToString() ?? "Not selected")@(value2?.ToString() ?? "Not selected") diff --git a/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteUsageExample.razor b/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteUsageExample.razor index a068b8b88e70..6362d5034112 100644 --- a/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteUsageExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteUsageExample.razor @@ -15,7 +15,7 @@ - @(value1 ?? "Not selected")@(value2 ?? "Not selected") + @(value1 ?? "Not selected")@(value2 ?? "Not selected") diff --git a/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteValidationExample.razor b/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteValidationExample.razor index 48e60c917b51..49ea2774d6fe 100644 --- a/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteValidationExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Autocomplete/Examples/AutocompleteValidationExample.razor @@ -53,7 +53,7 @@ - @(choice1.State ?? "Not selected")@(choice2.State ?? "Not selected")@(choice3.State ?? "Not selected") + @(choice1.State ?? "Not selected")@(choice2.State ?? "Not selected")@(choice3.State ?? "Not selected") diff --git a/src/MudBlazor.Docs/Pages/Components/Badge/Examples/BadgeInteractiveExample.razor b/src/MudBlazor.Docs/Pages/Components/Badge/Examples/BadgeInteractiveExample.razor index 082bd84ffd97..e81197785f8a 100644 --- a/src/MudBlazor.Docs/Pages/Components/Badge/Examples/BadgeInteractiveExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Badge/Examples/BadgeInteractiveExample.razor @@ -40,7 +40,7 @@ } else if(SelectedTestComponent == "MudChip") { - Radioactive Areas + Radioactive Areas } diff --git a/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipAvatarExample.razor b/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipAvatarExample.razor index 157c8823f172..79d8fcfce65e 100644 --- a/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipAvatarExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipAvatarExample.razor @@ -1,6 +1,6 @@ @namespace MudBlazor.Docs.Examples - + @@ -9,7 +9,7 @@ Avatar - + MK diff --git a/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipBasicExample.razor b/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipBasicExample.razor index 9752c350508a..a35d6ecb2acf 100644 --- a/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipBasicExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipBasicExample.razor @@ -1,19 +1,19 @@ @namespace MudBlazor.Docs.Examples -Default -Primary -Secondary -Info -Success -Warning -Error -Dark +Default +Primary +Secondary +Info +Success +Warning +Error +Dark -Default -Primary -Secondary -Info -Success -Warning -Error -Dark +Default +Primary +Secondary +Info +Success +Warning +Error +Dark diff --git a/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipClickableExample.razor b/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipClickableExample.razor index 1e4c8c73dca1..32d7c415da7d 100644 --- a/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipClickableExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipClickableExample.razor @@ -1,6 +1,6 @@ @namespace MudBlazor.Docs.Examples -Clicked @ClickCount times +Clicked @ClickCount times @code { private int ClickCount { get; set; } diff --git a/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipClosableExample.razor b/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipClosableExample.razor index e772b1992531..9c3037cae61d 100644 --- a/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipClosableExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipClosableExample.razor @@ -1,12 +1,12 @@ @namespace MudBlazor.Docs.Examples -Closable -Closable -Closable -Closable +Closable +Closable +Closable +Closable @code { - void Closed(MudChip chip) { + void Closed(MudChip chip) { // react to chip closed } } \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipIconExample.razor b/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipIconExample.razor index 7f2790e6ebf7..2c8e27a10789 100644 --- a/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipIconExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipIconExample.razor @@ -1,7 +1,7 @@ @namespace MudBlazor.Docs.Examples -Extensions -Extensions -Account -Your flight times -Verified User \ No newline at end of file +Extensions +Extensions +Account +Your flight times +Verified User \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipLabelExample.razor b/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipLabelExample.razor index c734f5b2527c..a69915408956 100644 --- a/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipLabelExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipLabelExample.razor @@ -1,9 +1,9 @@ @namespace MudBlazor.Docs.Examples -Default -MudBlazor -New Tweets -Radioactive Areas +Default +MudBlazor +New Tweets +Radioactive Areas @code { void CloseChip() diff --git a/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipOutlinedExample.razor b/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipOutlinedExample.razor index 1e4bd8438b66..c55a5d26f0d4 100644 --- a/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipOutlinedExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipOutlinedExample.razor @@ -1,19 +1,19 @@ @namespace MudBlazor.Docs.Examples -Default -Primary -Secondary -Info -Success -Warning -Error -Dark +Default +Primary +Secondary +Info +Success +Warning +Error +Dark -Default -Primary -Secondary -Info -Success -Warning -Error -Dark \ No newline at end of file +Default +Primary +Secondary +Info +Success +Warning +Error +Dark \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipSizeExample.razor b/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipSizeExample.razor index 7a390f1720ff..c955844f75cc 100644 --- a/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipSizeExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipSizeExample.razor @@ -1,5 +1,5 @@ @namespace MudBlazor.Docs.Examples -Small -Medium -Large \ No newline at end of file +Small +Medium +Large \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipTextExample.razor b/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipTextExample.razor index c54f1c6e11ca..1952027fec82 100644 --- a/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipTextExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Chip/Examples/ChipTextExample.razor @@ -1,19 +1,19 @@ @namespace MudBlazor.Docs.Examples -Default -Primary -Secondary -Info -Success -Warning -Error -Dark +Default +Primary +Secondary +Info +Success +Warning +Error +Dark -Default -Primary -Secondary -Info -Success -Warning -Error -Dark \ No newline at end of file +Default +Primary +Secondary +Info +Success +Warning +Error +Dark \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/ChipSet/ChipSetPage.razor b/src/MudBlazor.Docs/Pages/Components/ChipSet/ChipSetPage.razor index 331c5e644698..7d15eb6fe07a 100644 --- a/src/MudBlazor.Docs/Pages/Components/ChipSet/ChipSetPage.razor +++ b/src/MudBlazor.Docs/Pages/Components/ChipSet/ChipSetPage.razor @@ -12,7 +12,7 @@ Chipset will maintain a selection of chips for you. By default, you get a single selection. Setting Mandatory="true" will not allow to unselect the selected chip. - + @@ -20,10 +20,10 @@ - When MultiSelection="true" ChipSet will maintain a selection of multiple chips. Setting Filter="true" the selected chips will also display a check mark. + When MultiSelection="true" ChipSet will maintain a selection of multiple chips. Setting CheckMark="true" the selected chips will also display a check mark. - + @@ -33,7 +33,7 @@ - + @@ -44,18 +44,29 @@ Chips which haveDefault="true" will be initially selected. - + + + + + You can bind a Chip's IsSelected parameter to manipulate the selection. + + + + + + + The chip's look different when selected depending on its initial Variant. - + @@ -66,7 +77,7 @@ The chip's selected color can be changed with the SelectedColor property, by default it has the same color as the chip. - + diff --git a/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetAddRemoveExample.razor b/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetAddRemoveExample.razor index 7f70991beec5..c15fb321d616 100644 --- a/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetAddRemoveExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetAddRemoveExample.razor @@ -1,22 +1,21 @@ @namespace MudBlazor.Docs.Examples - - @foreach (var value in values) + + @foreach (var value in _values) { - + } -Add chips - - - +
+ Add chip +
@code { - int i = 1; - List values = new List(); - public void Add() => values.Add("Value " + (i++)); - public void Closed(MudChip chip) => values.Remove(chip.Text); + private int _i = 1; + private List _values = new(); + public void Add() => _values.Add("Value " + (_i++)); + public void Closed(MudChip chip) => _values.Remove(chip.Text); } diff --git a/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetBasicExample.razor b/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetBasicExample.razor index 8cf492a805ab..d8dd81438477 100644 --- a/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetBasicExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetBasicExample.razor @@ -1,27 +1,29 @@ @namespace MudBlazor.Docs.Examples - - Default - Primary - Secondary - Info - Success - Warning - Error - Dark + + Primary + Secondary + Info + Success + Warning + Error + Dark
- @if (selected != null) + @if (_selected != default) { - You selected the @selected.Text chip. + You selected the @_selected.ToDescriptionString() chip. } - Mandatory + else { + Nothing selected. + } + Mandatory
@code { - bool mandatory = true; - MudChip selected; + private bool _mandatory = true; + private Color _selected; } diff --git a/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetChipBindingExample.razor b/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetChipBindingExample.razor new file mode 100644 index 000000000000..84525af190e1 --- /dev/null +++ b/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetChipBindingExample.razor @@ -0,0 +1,36 @@ +@namespace MudBlazor.Docs.Examples + + + @for (int i = 0; i < _included.Length; i++) + { + var index = i; + + } + + +
+ @if (_selected is { Count: > 0 }) + { + Your special coctail recipe: @string.Join(", ", _selected.OrderBy(x => x)) + } + else + { + Add ingredients to your coctail. + } +
+ @for (int i = 0; i < _included.Length; i++) + { + var index = i; + @_ingredients[index] + } +
+
+ +@code +{ + private string[] _ingredients = ["Vodka", "Tomato Juice", "Olive", "Peppermint", "Vermouth", "Coconut Milk", "Port Wine"]; + private bool[] _included = new bool[7]; + private IReadOnlyCollection _selected; + +} + diff --git a/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetDefaultChipsExample.razor b/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetDefaultChipsExample.razor index 17025ab0f5ed..ecdee165994b 100644 --- a/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetDefaultChipsExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetDefaultChipsExample.razor @@ -1,18 +1,18 @@ @namespace MudBlazor.Docs.Examples - - - - - - - - + + + + + + + +
- @if (selected != null && selected.Length>0) + @if (_selected is { Count: > 0 }) { - You selected @string.Join(", ", selected.Select(chip=>chip.Text)). + You selected @string.Join(", ", _selected). } else { @@ -22,6 +22,6 @@ @code { - MudChip[] selected; + private IReadOnlyCollection _selected = ["Milk", "Cornflakes"]; } diff --git a/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetMultiselectionExample.razor b/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetMultiselectionExample.razor index 95190035ad15..87290038521d 100644 --- a/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetMultiselectionExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetMultiselectionExample.razor @@ -1,29 +1,28 @@ @namespace MudBlazor.Docs.Examples - - - - - - - - + + + + + + + + +
- @if (selected != null && selected.Length>0) - { - You selected @string.Join(", ", selected.Select(chip=>chip.Text)). + @if (_selected is { Count: > 0 }) { + You selected @string.Join(", ", _selected.OrderBy(x => x)) } - else - { + else { Nothing selected. } - Filter + Check marks
@code { - bool filter = true; - MudChip[] selected; + private bool _checkMark = true; + private IReadOnlyCollection _selected; } diff --git a/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetSelectedColorExample.razor b/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetSelectedColorExample.razor index 08b560a405bc..ba37e184864e 100644 --- a/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetSelectedColorExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetSelectedColorExample.razor @@ -1,30 +1,29 @@ @namespace MudBlazor.Docs.Examples - - - - - - + + + + + + - - - - - - + + + + + + - - - - - - + + + + + + -Filter - +Check marks @code { - bool filter = true; + private bool _checkMark = true; } diff --git a/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetVariantsExample.razor b/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetVariantsExample.razor index 19af144be0f0..36b2ec54bfc7 100644 --- a/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetVariantsExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/ChipSet/Examples/ChipSetVariantsExample.razor @@ -1,40 +1,40 @@ @namespace MudBlazor.Docs.Examples - - Default - Primary - Secondary - Info - Success - Warning - Error - Dark + + Default + Primary + Secondary + Info + Success + Warning + Error + Dark - - Default - Primary - Secondary - Info - Success - Warning - Error - Dark + + Default + Primary + Secondary + Info + Success + Warning + Error + Dark - - Default - Primary - Secondary - Info - Success - Warning - Error - Dark + + Default + Primary + Secondary + Info + Success + Warning + Error + Dark -Filter +Check marks @code { - bool filter = true; + private bool _checkMark = true; } diff --git a/src/MudBlazor.Docs/Pages/Components/DataGrid/Examples/DataGridGroupingExample.razor b/src/MudBlazor.Docs/Pages/Components/DataGrid/Examples/DataGridGroupingExample.razor index d2198635b4ad..ae58265493a7 100644 --- a/src/MudBlazor.Docs/Pages/Components/DataGrid/Examples/DataGridGroupingExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/DataGrid/Examples/DataGridGroupingExample.razor @@ -19,7 +19,7 @@ @if (_customizeGroupTemplate) { - Group: @context.Grouping.Key total @context.Grouping.Count() + Group: @context.Grouping.Key total @context.Grouping.Count() } else { diff --git a/src/MudBlazor.Docs/Pages/Components/Divider/Examples/DividerMiddleExample.razor b/src/MudBlazor.Docs/Pages/Components/Divider/Examples/DividerMiddleExample.razor index 1d39b50b2e8b..7090ba009ab9 100644 --- a/src/MudBlazor.Docs/Pages/Components/Divider/Examples/DividerMiddleExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Divider/Examples/DividerMiddleExample.razor @@ -10,7 +10,7 @@ This is the type of uranium used in the RBMK reactors. Select Reactor Type - RBMK-1000RBMK-1500RBMKP-2400 + RBMK-1000RBMK-1500RBMKP-2400 Read More diff --git a/src/MudBlazor.Docs/Pages/Components/FileUpload/Examples/DragAndDropFileUploadExample.razor b/src/MudBlazor.Docs/Pages/Components/FileUpload/Examples/DragAndDropFileUploadExample.razor new file mode 100644 index 000000000000..10a9a6766947 --- /dev/null +++ b/src/MudBlazor.Docs/Pages/Components/FileUpload/Examples/DragAndDropFileUploadExample.razor @@ -0,0 +1,59 @@ +@namespace MudBlazor.Docs.Examples +@inject ISnackbar Snackbar + + + @if (!_clearing) + { + + } + Drag and drop files here or click + @foreach (var file in _fileNames) + { + + } + + + Upload + Clear + + +@code { + private bool _clearing = false; + private static string _defaultDragClass = "relative rounded-lg border-2 border-dashed pa-4 mt-4 mud-width-full mud-height-full"; + private string _dragClass = _defaultDragClass; + private List _fileNames = new List(); + + private void OnInputFileChanged(InputFileChangeEventArgs e) + { + ClearDragClass(); + var files = e.GetMultipleFiles(); + foreach (var file in files) { + _fileNames.Add(file.Name); + } + } + + private async Task ClearAsync() + { + _clearing = true; + _fileNames.Clear(); + ClearDragClass(); + await Task.Delay(100); + _clearing = false; + } + private void Upload() + { + //Upload the files here + Snackbar.Configuration.PositionClass = Defaults.Classes.Position.TopCenter; + Snackbar.Add("TODO: Upload your files!", Severity.Normal); + } + + private void SetDragClass() + { + _dragClass = $"{_defaultDragClass} mud-border-primary"; + } + + private void ClearDragClass() + { + _dragClass = _defaultDragClass; + } +} \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/FileUpload/Examples/FileUploadDragAndDropCustomScenarioExample.razor b/src/MudBlazor.Docs/Pages/Components/FileUpload/Examples/FileUploadDragAndDropCustomScenarioExample.razor index f2568ad9b1cc..131a961ab428 100644 --- a/src/MudBlazor.Docs/Pages/Components/FileUpload/Examples/FileUploadDragAndDropCustomScenarioExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/FileUpload/Examples/FileUploadDragAndDropCustomScenarioExample.razor @@ -21,7 +21,7 @@ @foreach (var file in _fileNames) { - + } @foreach (var file in _model.Files?.Select(file => file.Name) ?? Enumerable.Empty()) { - } diff --git a/src/MudBlazor.Docs/Pages/Components/Image/Examples/ImageFitExample.razor b/src/MudBlazor.Docs/Pages/Components/Image/Examples/ImageFitExample.razor index 97caa7554f1f..74bb688f3874 100644 --- a/src/MudBlazor.Docs/Pages/Components/Image/Examples/ImageFitExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Image/Examples/ImageFitExample.razor @@ -4,12 +4,12 @@
- - - - - - + + + + + + @code { diff --git a/src/MudBlazor.Docs/Pages/Components/Image/Examples/ImagePositionExample.razor b/src/MudBlazor.Docs/Pages/Components/Image/Examples/ImagePositionExample.razor index d6ed6e884141..60769538de88 100644 --- a/src/MudBlazor.Docs/Pages/Components/Image/Examples/ImagePositionExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Image/Examples/ImagePositionExample.razor @@ -4,16 +4,16 @@
- - - - - - - - - - + + + + + + + + + + @code { diff --git a/src/MudBlazor.Docs/Pages/Components/List/Examples/ListSelectionExample.razor b/src/MudBlazor.Docs/Pages/Components/List/Examples/ListSelectionExample.razor index 4a0ae58361ad..c53042fada94 100644 --- a/src/MudBlazor.Docs/Pages/Components/List/Examples/ListSelectionExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/List/Examples/ListSelectionExample.razor @@ -4,7 +4,7 @@ Your drink: - + @(selectedItem?.Text ?? "You are dry") (@(selectedValue?.ToString() ?? "0")) diff --git a/src/MudBlazor.Docs/Pages/Components/Menu/Examples/MenuActivatorExample1.razor b/src/MudBlazor.Docs/Pages/Components/Menu/Examples/MenuActivatorExample1.razor index 93d72dd5d4b4..d97d82ce4745 100644 --- a/src/MudBlazor.Docs/Pages/Components/Menu/Examples/MenuActivatorExample1.razor +++ b/src/MudBlazor.Docs/Pages/Components/Menu/Examples/MenuActivatorExample1.razor @@ -14,7 +14,7 @@ - Account + Account Profile @@ -26,7 +26,7 @@ - Disabled + Disabled Profile diff --git a/src/MudBlazor.Docs/Pages/Components/Menu/Examples/MenuActivatorExample2.razor b/src/MudBlazor.Docs/Pages/Components/Menu/Examples/MenuActivatorExample2.razor index 0ae5c9b45269..04d964b5f092 100644 --- a/src/MudBlazor.Docs/Pages/Components/Menu/Examples/MenuActivatorExample2.razor +++ b/src/MudBlazor.Docs/Pages/Components/Menu/Examples/MenuActivatorExample2.razor @@ -3,7 +3,7 @@ - Left click + Left click Profile @@ -15,7 +15,7 @@ - Right click + Right click Profile @@ -27,7 +27,7 @@ - Mouse over + Mouse over Profile diff --git a/src/MudBlazor.Docs/Pages/Components/MessageBox/Examples/MessageBoxInlineExample.razor b/src/MudBlazor.Docs/Pages/Components/MessageBox/Examples/MessageBoxInlineExample.razor index 27c3702dcb87..0305baacf2d6 100644 --- a/src/MudBlazor.Docs/Pages/Components/MessageBox/Examples/MessageBoxInlineExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/MessageBox/Examples/MessageBoxInlineExample.razor @@ -1,7 +1,7 @@ @namespace MudBlazor.Docs.Examples Delete -@state +@state diff --git a/src/MudBlazor.Docs/Pages/Components/MessageBox/Examples/MessageBoxMarkupContentExample.razor b/src/MudBlazor.Docs/Pages/Components/MessageBox/Examples/MessageBoxMarkupContentExample.razor index c19d766fc6dc..3ab34b452696 100644 --- a/src/MudBlazor.Docs/Pages/Components/MessageBox/Examples/MessageBoxMarkupContentExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/MessageBox/Examples/MessageBoxMarkupContentExample.razor @@ -2,7 +2,7 @@ I am Balrog -@state +@state @code { diff --git a/src/MudBlazor.Docs/Pages/Components/MessageBox/Examples/MessageBoxSimpleExample.razor b/src/MudBlazor.Docs/Pages/Components/MessageBox/Examples/MessageBoxSimpleExample.razor index 682436c03787..fab7cdf079b6 100644 --- a/src/MudBlazor.Docs/Pages/Components/MessageBox/Examples/MessageBoxSimpleExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/MessageBox/Examples/MessageBoxSimpleExample.razor @@ -2,7 +2,7 @@ Delete -@state +@state @code { diff --git a/src/MudBlazor.Docs/Pages/Components/Select/Examples/SelectUsageExample.razor b/src/MudBlazor.Docs/Pages/Components/Select/Examples/SelectUsageExample.razor index 5ea675d31f3c..1b00175ed3e4 100644 --- a/src/MudBlazor.Docs/Pages/Components/Select/Examples/SelectUsageExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Select/Examples/SelectUsageExample.razor @@ -24,9 +24,9 @@
Selected values: - @(stringValue ?? "Select fast-food") - @enumValue - @(cultureValue?.DisplayName ?? "Select culture") + @(stringValue ?? "Select fast-food") + @enumValue + @(cultureValue?.DisplayName ?? "Select culture")
@code { diff --git a/src/MudBlazor.Docs/Pages/Components/Snackbar/Examples/SnackbarFromCustomComponentExample.razor b/src/MudBlazor.Docs/Pages/Components/Snackbar/Examples/SnackbarFromCustomComponentExample.razor index bcad38bcb050..c2f4eeb23fbd 100644 --- a/src/MudBlazor.Docs/Pages/Components/Snackbar/Examples/SnackbarFromCustomComponentExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Snackbar/Examples/SnackbarFromCustomComponentExample.razor @@ -7,7 +7,7 @@ @code { private void OnClick() { - SnackbarService.Add(new Dictionary() { + SnackbarService.Add>(new Dictionary() { { "Text", "This is a snackbar with a chip!" }, { "Color", Color.Primary } }); diff --git a/src/MudBlazor.Docs/Pages/Components/Snackbar/Examples/SnackbarPreventDuplicatesExample.razor b/src/MudBlazor.Docs/Pages/Components/Snackbar/Examples/SnackbarPreventDuplicatesExample.razor index fcf4aa33b4de..da81686d65d3 100644 --- a/src/MudBlazor.Docs/Pages/Components/Snackbar/Examples/SnackbarPreventDuplicatesExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Snackbar/Examples/SnackbarPreventDuplicatesExample.razor @@ -16,7 +16,7 @@ // Then we try to show all three in quick succession, but only the first pops! SnackbarService.Add("This is the only snackbar that will be shown", configure: config, key: "mudblazor"); SnackbarService.Add(@This one has the same key, configure: config, key: "mudblazor"); - SnackbarService.Add(new Dictionary() { + SnackbarService.Add>(new Dictionary() { { "Text", "This one also has the same key" } }, configure: config, key: "mudblazor"); } diff --git a/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackAlignExample.razor b/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackAlignExample.razor index 19b01787cb2d..1655c529fe2f 100644 --- a/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackAlignExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackAlignExample.razor @@ -8,12 +8,12 @@ - - - - - - + + + + + + diff --git a/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackCombinedExample.razor b/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackCombinedExample.razor index 1b1fb8088f37..16104a3d2f4a 100644 --- a/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackCombinedExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackCombinedExample.razor @@ -16,13 +16,13 @@ - - - + + + - - - + + + diff --git a/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackInteractiveExample.razor b/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackInteractiveExample.razor index de9606e435cd..0944a394858d 100644 --- a/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackInteractiveExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackInteractiveExample.razor @@ -16,23 +16,23 @@ - - - - - - - + + + + + + + - - - - - - + + + + + + diff --git a/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackJustifyExample.razor b/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackJustifyExample.razor index bee85670050f..ab35beba9823 100644 --- a/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackJustifyExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackJustifyExample.razor @@ -8,13 +8,13 @@ - - - - - - - + + + + + + + diff --git a/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackWrappingExample.razor b/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackWrappingExample.razor index fac3dee2eba3..357da0db934d 100644 --- a/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackWrappingExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackWrappingExample.razor @@ -15,10 +15,10 @@ Row - - - - + + + + diff --git a/src/MudBlazor.Docs/Pages/Features/Icons/IconsPage.razor b/src/MudBlazor.Docs/Pages/Features/Icons/IconsPage.razor index 0dc2877cf0a9..36af2a844a0e 100644 --- a/src/MudBlazor.Docs/Pages/Features/Icons/IconsPage.razor +++ b/src/MudBlazor.Docs/Pages/Features/Icons/IconsPage.razor @@ -21,21 +21,21 @@ @if(SelectedIconOrigin == IconOrigin.Material) { - - - - - - + + + + + + } else if(SelectedIconOrigin == IconOrigin.Custom) { - - - - - + + + + + } diff --git a/src/MudBlazor.Docs/Services/Menu/MenuService.cs b/src/MudBlazor.Docs/Services/Menu/MenuService.cs index 7de36259a09f..79c28474c264 100644 --- a/src/MudBlazor.Docs/Services/Menu/MenuService.cs +++ b/src/MudBlazor.Docs/Services/Menu/MenuService.cs @@ -30,8 +30,8 @@ public class MenuService : IMenuService .AddItem("Grid", typeof(MudGrid), typeof(MudItem)) .AddItem("Hidden", typeof(MudHidden)) .AddItem("Breakpoint Provider", typeof(MudBreakpointProvider)) - .AddItem("Chips", typeof(MudChip)) - .AddItem("Chip Set", typeof(MudChipSet)) + .AddItem("Chips", typeof(MudChip)) + .AddItem("Chip Set", typeof(MudChipSet)) .AddItem("Badge", typeof(MudBadge)) .AddItem("App Bar", typeof(MudAppBar)) .AddItem("Drawer", typeof(MudDrawer), typeof(MudDrawerHeader), typeof(MudDrawerContainer)) diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Chip/ChipAvatarContentTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Chip/ChipAvatarContentTest.razor index f88c2f7d4631..2f01e1c1befd 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Chip/ChipAvatarContentTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Chip/ChipAvatarContentTest.razor @@ -1,6 +1,6 @@ @namespace MudBlazor.UnitTests.TestComponents - + JD diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Chip/ChipHrefCursorTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Chip/ChipHrefCursorTest.razor index b20623790413..cf13c9039b85 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Chip/ChipHrefCursorTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Chip/ChipHrefCursorTest.razor @@ -1,6 +1,6 @@ @namespace MudBlazor.UnitTests.TestComponents - + @code { diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Chip/ChipLinkTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Chip/ChipLinkTest.razor index ebb124ff53ee..d7344ca9d422 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Chip/ChipLinkTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Chip/ChipLinkTest.razor @@ -1,6 +1,6 @@ @namespace MudBlazor.UnitTests.TestComponents - +
@_event
@code { diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Chip/ChipOnClickTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Chip/ChipOnClickTest.razor index 4e33df81e499..c2042dbfc1e8 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Chip/ChipOnClickTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Chip/ChipOnClickTest.razor @@ -1,6 +1,6 @@ @namespace MudBlazor.UnitTests.TestComponents - +
@_event
@code { diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetChipBindingTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetChipBindingTest.razor new file mode 100644 index 000000000000..4f30a47d19c2 --- /dev/null +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetChipBindingTest.razor @@ -0,0 +1,38 @@ +@namespace MudBlazor.Docs.Examples + + + @for (int i = 0; i < _included.Length; i++) + { + var index = i; + + } + + +
+
+ @if (_selected is { Count: > 0 }) + { + @string.Join(", ", _selected.OrderBy(x => x)) + } + else + { + Add ingredients to your coctail. + } +
+
+ @for (int i = 0; i < _included.Length; i++) + { + var index = i; + @_ingredients[index] + } +
+
+ +@code +{ + private string[] _ingredients = ["Vodka", "Tomato Juice", "Olive", "Peppermint", "Vermouth", "Coconut Milk", "Port Wine"]; + private bool[] _included = new bool[7]; + private IReadOnlyCollection _selected; + +} + diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetClearSelectionTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetClearSelectionTest.razor index 5ad874288c49..e2d998556805 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetClearSelectionTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetClearSelectionTest.razor @@ -1,37 +1,35 @@ @namespace MudBlazor.UnitTests.TestComponents - - - - - - - - + + + + + + + + -@if (selected != null && selected.Length>0) -{ - @string.Join(", ", selected.Select(chip=>chip.Text).OrderBy(x => x)) +@if (_selected != null && _selected.Count > 0) { + @string.Join(", ", _selected.OrderBy(x => x)) } -else -{ +else { Nothing selected. } Set Null Set Empty @code { - MudChip[] selected; + private IReadOnlyCollection _selected; - void SetNull() + private void SetNull() { - selected = null; + _selected = null; } - - void SetEmpty() + + private void SetEmpty() { - selected = new MudChip[]{}; + _selected = Array.Empty(); } } \ No newline at end of file diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetComparerTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetComparerTest.razor index 48da3294b6de..1335df8a6651 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetComparerTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetComparerTest.razor @@ -2,11 +2,11 @@ - - - - - + + + + + @@ -14,28 +14,24 @@

- Selection: @(string.Join(", ", (selectedChips??new MudChip[0]).OrderBy(chip=> chip.Text).Select(chip=> chip.Text))) + Selection: @(string.Join(", ", Selected.Select(x => x.Name).OrderBy(x => x)))

@code { public static string __description__ = "The comparer should be used to compare coffee objects in chipset"; - MudChip[] selectedChips; - static CoffeeComparer Comparer { get; } = new(); + private CoffeeComparer Comparer { get; } = new(); - HashSet Selected { get; } = new(Comparer); + IReadOnlyCollection Selected { get; set; } = Array.Empty(); - void SelectedChanged(IEnumerable newSelected) + void SelectedChanged(IEnumerable newSelected) { - Selected.Clear(); - Selected.UnionWith(newSelected); + Selected = newSelected.ToHashSet(); } void SetSelection() { - Selected.Clear(); - Selected.Add(new Coffee("lat", "Selected Cafe Latte")); - Selected.Add(new Coffee("esp", "Selected Espresso")); + Selected = new[] { new Coffee("lat", "Cafe Latte!"), new Coffee("esp", "Espresso!") }; } class Coffee @@ -45,10 +41,10 @@ public Coffee(string key, string name) { Key = key; Name = name; } } - class CoffeeComparer : IEqualityComparer + class CoffeeComparer : IEqualityComparer { - public new bool Equals(object a, object b) => ((Coffee)a).Key == ((Coffee)b).Key; - public int GetHashCode(object x) => HashCode.Combine( ((Coffee)x).Key); + public bool Equals(Coffee a, Coffee b) => a?.Key == b?.Key; + public int GetHashCode(Coffee x) => HashCode.Combine(x.Key); } } diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetDefaultChipsTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetDefaultChipsTest.razor index 46428cd62860..b76249689efd 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetDefaultChipsTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetDefaultChipsTest.razor @@ -1,28 +1,40 @@ @namespace MudBlazor.UnitTests.TestComponents - - - - - - - - + + + + + + + + - -@if (selected != null && selected.Length>0) +@if (_selected is { Count: > 0 }) { - @string.Join(", ", selected.Select(chip=>chip.Text).OrderBy(x => x)) + @string.Join(", ", _selected.OrderBy(x=>x)) } else { - Nothing selected. + Nothing selected } -Filter + +CheckMark + @code { - [Parameter] public bool MultiSelection { get; set; } - bool filter = false; - MudChip[] selected; + [Parameter] + public bool MultiSelection { get; set; } + + [Parameter] + public string[] InitialValues { get; set; } + + private bool _checkMark = false; + private IReadOnlyCollection _selected; + + protected override void OnInitialized() + { + base.OnInitialized(); + _selected = InitialValues; + } } \ No newline at end of file diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetLateDefaultTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetLateDefaultTest.razor index 29d1c57db978..5a569b879e55 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetLateDefaultTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetLateDefaultTest.razor @@ -1,19 +1,25 @@ @namespace MudBlazor.UnitTests.TestComponents - + @if (_extraItem) { - - + } - + Add chips Enable +
+@if (_selectedValues is { Count: > 0 }) { + @string.Join(", ", _selectedValues.OrderBy(x => x)) +} +else { + Nothing selected +} @code { bool _extraItem = false; public void Enable() => _extraItem = !_extraItem; - MudChip[] SelectedChipArray; + IReadOnlyCollection _selectedValues; } \ No newline at end of file diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetMultiSelectionTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetMultiSelectionTest.razor new file mode 100644 index 000000000000..0bf1d7d2feb6 --- /dev/null +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetMultiSelectionTest.razor @@ -0,0 +1,38 @@ +@namespace MudBlazor.UnitTests.TestComponents + + + + + + + + + + + +
+ @_selectedValue +
+
+ @if (_selectedValues is { Count: > 0 }) { + @string.Join(", ", _selectedValues) + } + else { + Nothing selected + } +
+ +@code +{ + [Parameter] + public string[] InitialValues { get; set; } + + private string _selectedValue; + private IReadOnlyCollection _selectedValues; + + protected override void OnInitialized() + { + base.OnInitialized(); + _selectedValues = InitialValues; + } +} \ No newline at end of file diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetReadOnlyTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetReadOnlyTest.razor index 034dec79704d..c32131097795 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetReadOnlyTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetReadOnlyTest.razor @@ -1,13 +1,13 @@ @namespace MudBlazor.UnitTests.TestComponents - - - - - - - - + + + + + + + + @code diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetSelectionInitialValuesTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetSelectionInitialValuesTest.razor deleted file mode 100644 index b5d14be32684..000000000000 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetSelectionInitialValuesTest.razor +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - -
-

- Selection: @(string.Join(", ", (selectedChips??new MudChip[0]).OrderBy(chip=> chip.Text).Select(chip=> chip.Text))) -

- - -@code { - public static string __description__ = "The initial selectedValues collection should be applied but will be overridden by Chip.Default"; - MudChip[] selectedChips; - ICollection selectedValues = new List() { 3, 4 }; - -} diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetSelectionTwoWayBindingTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetSelectionTwoWayBindingTest.razor index df25f31e3c87..34db1e3a5bce 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetSelectionTwoWayBindingTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetSelectionTwoWayBindingTest.razor @@ -1,26 +1,20 @@ - - - + + + - - - + + +
-

- Set1 Selection: @(string.Join(", ", (selectedChips1??new MudChip[0]).OrderBy(chip=> chip.Text).Select(chip=> chip.Text))) -

-
-

- Set2 Selection: @(string.Join(", ", (selectedChips2??new MudChip[0]).OrderBy(chip=> chip.Text).Select(chip=> chip.Text))) +

+ Selection: @(string.Join(", ", _selectedValues.OrderBy(x => x)))

@code { public static string __description__ = "The chipsets should mirror their respective selections"; - MudChip[] selectedChips1; - MudChip[] selectedChips2; - ICollection selectedValues; + IReadOnlyCollection _selectedValues = [ 1 ]; } diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetSingleSelectionTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetSingleSelectionTest.razor new file mode 100644 index 000000000000..9ed9056fd9fe --- /dev/null +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetSingleSelectionTest.razor @@ -0,0 +1,41 @@ +@namespace MudBlazor.UnitTests.TestComponents + + + + + + + + + + + +
+ @_selectedValue +
+
+ @if (_selectedValues is { Count: > 0 }) { + @string.Join(", ", _selectedValues) + } + else { + Nothing selected + } +
+ +@code +{ + [Parameter] + public bool Mandatory { get; set; } + + [Parameter] + public string InitialValue { get; set; } + + private string _selectedValue; + private IReadOnlyCollection _selectedValues; + + protected override void OnInitialized() + { + base.OnInitialized(); + _selectedValue = InitialValue; + } +} \ No newline at end of file diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetTest.razor index 1fce29834238..159169a03051 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/ChipSet/ChipSetTest.razor @@ -1,27 +1,28 @@ @namespace MudBlazor.UnitTests.TestComponents - - - - - - - - + + + + + + + + - -@if (selected != null && selected.Length>0) -{ - @string.Join(", ", selected.Select(chip=>chip.Text).OrderBy(x => x)) +@if (_selected is { Count: > 0 }) { + You selected @string.Join(", ", _selected). } -else -{ +else { Nothing selected. } -Filter +CheckMark + @code { - bool filter = false; - MudChip[] selected; + [Parameter] + public bool MultiSelection { get; set; } + + private bool _checkMark = false; + private IReadOnlyCollection _selected = ["Milk", "Cornflakes"]; } \ No newline at end of file diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/FileUpload/FileUploadButtonTemplateContextTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/FileUpload/FileUploadButtonTemplateContextTest.razor index 4e639d28ae5c..db2c3c0a70e3 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/FileUpload/FileUploadButtonTemplateContextTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/FileUpload/FileUploadButtonTemplateContextTest.razor @@ -11,7 +11,7 @@ Drag and drop files here or click - + diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/EditFormOnFieldChangedTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/EditFormOnFieldChangedTest.razor index 8f862ba38300..304afea6663e 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/EditFormOnFieldChangedTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/EditFormOnFieldChangedTest.razor @@ -16,9 +16,9 @@ - @Message1 - @Message2 - @Message3 + @Message1 + @Message2 + @Message3 diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/FormWithFileUploadAndButtonTemplateContextTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/FormWithFileUploadAndButtonTemplateContextTest.razor index 896fd0214b31..6c506fc29b1e 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/FormWithFileUploadAndButtonTemplateContextTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/FormWithFileUploadAndButtonTemplateContextTest.razor @@ -23,7 +23,7 @@ Drag and drop files here or click - + diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/List/ListSelectionInitialValueTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/List/ListSelectionInitialValueTest.razor index a2a9f8fb6601..ff4a5debf44f 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/List/ListSelectionInitialValueTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/List/ListSelectionInitialValueTest.razor @@ -3,7 +3,7 @@ Your drink: - + @(selectedItem?.Text ?? "You are dry") diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/List/ListSelectionTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/List/ListSelectionTest.razor index 1dbeeae34466..e0e2ecaca16e 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/List/ListSelectionTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/List/ListSelectionTest.razor @@ -3,7 +3,7 @@ Your drink: - + @(selectedItem?.Text ?? "You are dry") diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Snackbar/SnackbarCustomComponent.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Snackbar/SnackbarCustomComponent.razor index 298468ee8fc9..6ba7e87cb38a 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Snackbar/SnackbarCustomComponent.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Snackbar/SnackbarCustomComponent.razor @@ -1,4 +1,4 @@ @namespace MudBlazor.UnitTests.TestComponents

Hello, Snackbar!

-This is a message with a chip! \ No newline at end of file +This is a message with a chip! \ No newline at end of file diff --git a/src/MudBlazor.UnitTests/Components/ChipSetTests.cs b/src/MudBlazor.UnitTests/Components/ChipSetTests.cs index 0b620f944241..188762dbbe8f 100644 --- a/src/MudBlazor.UnitTests/Components/ChipSetTests.cs +++ b/src/MudBlazor.UnitTests/Components/ChipSetTests.cs @@ -2,10 +2,12 @@ #pragma warning disable BL0005 // Set parameter outside component using System; +using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Bunit; using FluentAssertions; +using MudBlazor.Docs.Examples; using MudBlazor.UnitTests.TestComponents; using MudBlazor.UnitTests.TestComponents.ChipSet; using NUnit.Framework; @@ -21,29 +23,36 @@ public class ChipSetTests : BunitTest [Test] public async Task ChipSet_SingleSelection() { - var comp = Context.RenderComponent(); - // print the generated html - // select elements needed for the test - var chipset = comp.FindComponent(); + var comp = Context.RenderComponent(); + // initially nothing is selected comp.FindAll("div.mud-chip").Count.Should().Be(7); - chipset.Instance.SelectedChip.Should().Be(null); - comp.FindAll("p")[0].TrimmedText().Should().Be("Nothing selected."); + comp.Find("div.selected-value").TrimmedText().Should().Be(""); + comp.Find("div.selected-values").TrimmedText().Should().Be("Nothing selected"); // select cornflakes comp.FindAll("div.mud-chip")[3].Click(); - comp.FindAll("p")[0].TrimmedText().Should().Be("Corn flakes"); - chipset.Instance.SelectedChip.Text.Should().Be("Corn flakes"); + comp.Find("div.selected-value").TrimmedText().Should().Be("Corn flakes"); + comp.Find("div.selected-values").TrimmedText().Should().Be("Corn flakes"); // de-select cornflakes by clicking again comp.FindAll("div.mud-chip")[3].Click(); - comp.FindAll("p")[0].TrimmedText().Should().Be("Nothing selected."); - chipset.Instance.SelectedChip.Should().Be(null); + comp.Find("div.selected-value").TrimmedText().Should().Be(""); + comp.Find("div.selected-values").TrimmedText().Should().Be("Nothing selected"); // select cornflakes comp.FindAll("div.mud-chip")[3].Click(); - comp.FindAll("p")[0].TrimmedText().Should().Be("Corn flakes"); - chipset.Instance.SelectedChip.Text.Should().Be("Corn flakes"); + comp.Find("div.selected-value").TrimmedText().Should().Be("Corn flakes"); + comp.Find("div.selected-values").TrimmedText().Should().Be("Corn flakes"); // select milk comp.FindAll("div.mud-chip")[0].Click(); - comp.FindAll("p")[0].TrimmedText().Should().Be("Milk"); - chipset.Instance.SelectedChip.Text.Should().Be("Milk"); + comp.Find("div.selected-value").TrimmedText().Should().Be("Milk"); + comp.Find("div.selected-values").TrimmedText().Should().Be("Milk"); + } + + [Test] + public async Task ChipSet_SingleSelection_WithInitialValue() + { + var comp = Context.RenderComponent(p => p.Add(x => x.InitialValue, "Milk")); + // initial value is selected + comp.Find("div.selected-value").TrimmedText().Should().Be("Milk"); + comp.Find("div.selected-values").TrimmedText().Should().Be("Milk"); } /// @@ -52,63 +61,76 @@ public async Task ChipSet_SingleSelection() [Test] public async Task ChipSet_SingleSelection_Mandatory() { - var comp = Context.RenderComponent(); - // print the generated html - // select elements needed for the test - var chipset = comp.FindComponent(); - await chipset.InvokeAsync(() => chipset.Instance.Mandatory = true); + var comp = Context.RenderComponent(parameters => parameters + .Add(p => p.Mandatory, true) + ); + // initially nothing is selected comp.FindAll("div.mud-chip").Count.Should().Be(7); - chipset.Instance.SelectedChip.Should().Be(null); - comp.FindAll("p")[0].TrimmedText().Should().Be("Nothing selected."); + comp.Find("div.selected-value").TrimmedText().Should().Be(""); + comp.Find("div.selected-values").TrimmedText().Should().Be("Nothing selected"); // select cornflakes comp.FindAll("div.mud-chip")[3].Click(); - comp.FindAll("p")[0].TrimmedText().Should().Be("Corn flakes"); - chipset.Instance.SelectedChip.Text.Should().Be("Corn flakes"); - // select cornflakes again (no deselection) + comp.Find("div.selected-value").TrimmedText().Should().Be("Corn flakes"); + comp.Find("div.selected-values").TrimmedText().Should().Be("Corn flakes"); + // de-select cornflakes by clicking again comp.FindAll("div.mud-chip")[3].Click(); - comp.FindAll("p")[0].TrimmedText().Should().Be("Corn flakes"); - chipset.Instance.SelectedChip.Text.Should().Be("Corn flakes"); + comp.Find("div.selected-value").TrimmedText().Should().Be("Corn flakes"); + comp.Find("div.selected-values").TrimmedText().Should().Be("Corn flakes"); // select cornflakes comp.FindAll("div.mud-chip")[3].Click(); - comp.FindAll("p")[0].TrimmedText().Should().Be("Corn flakes"); - chipset.Instance.SelectedChip.Text.Should().Be("Corn flakes"); + comp.Find("div.selected-value").TrimmedText().Should().Be("Corn flakes"); + comp.Find("div.selected-values").TrimmedText().Should().Be("Corn flakes"); // select milk comp.FindAll("div.mud-chip")[0].Click(); - comp.FindAll("p")[0].TrimmedText().Should().Be("Milk"); - chipset.Instance.SelectedChip.Text.Should().Be("Milk"); + comp.Find("div.selected-value").TrimmedText().Should().Be("Milk"); + comp.Find("div.selected-values").TrimmedText().Should().Be("Milk"); } [Test] public async Task ChipSet_MultiSelection() { - var comp = Context.RenderComponent(); - // print the generated html + var comp = Context.RenderComponent(); // select elements needed for the test - var chipset = comp.FindComponent(); - await chipset.InvokeAsync(() => chipset.Instance.MultiSelection = true); comp.FindAll("div.mud-chip").Count.Should().Be(7); - chipset.Instance.SelectedChip.Should().Be(null); - comp.FindAll("p")[0].TrimmedText().Should().Be("Nothing selected."); + comp.Find("div.selected-value").TrimmedText().Should().Be(""); + comp.Find("div.selected-values").TrimmedText().Should().Be("Nothing selected"); // select cornflakes comp.FindAll("div.mud-chip")[3].Click(); - comp.FindAll("p")[0].TrimmedText().Should().Be("Corn flakes"); - chipset.Instance.SelectedChip.Text.Should().Be("Corn flakes"); + comp.Find("div.selected-value").TrimmedText().Should().Be("Corn flakes"); + comp.Find("div.selected-values").TrimmedText().Should().Be("Corn flakes"); // de-select cornflakes by clicking again comp.FindAll("div.mud-chip")[3].Click(); - comp.FindAll("p")[0].TrimmedText().Should().Be("Nothing selected."); - chipset.Instance.SelectedChip.Should().Be(null); + comp.Find("div.selected-value").TrimmedText().Should().Be(""); + comp.Find("div.selected-values").TrimmedText().Should().Be("Nothing selected"); // select cornflakes comp.FindAll("div.mud-chip")[3].Click(); - comp.FindAll("p")[0].TrimmedText().Should().Be("Corn flakes"); - chipset.Instance.SelectedChip.Text.Should().Be("Corn flakes"); + comp.Find("div.selected-value").TrimmedText().Should().Be("Corn flakes"); + comp.Find("div.selected-values").TrimmedText().Should().Be("Corn flakes"); // select milk comp.FindAll("div.mud-chip")[0].Click(); - comp.FindAll("p")[0].TrimmedText().Should().Be("Corn flakes, Milk"); - string.Join(", ", chipset.Instance.SelectedChips.Select(x => x.Text).OrderBy(x => x)).Should().Be("Corn flakes, Milk"); + comp.Find("div.selected-value").TrimmedText().Should().Be("Corn flakes"); + comp.Find("div.selected-values").TrimmedText().Should().Be("Corn flakes, Milk"); // select red wine comp.FindAll("div.mud-chip")[6].Click(); - comp.FindAll("p")[0].TrimmedText().Should().Be("Corn flakes, Milk, Red wine"); - string.Join(", ", chipset.Instance.SelectedChips.Select(x => x.Text).OrderBy(x => x)).Should().Be("Corn flakes, Milk, Red wine"); + comp.Find("div.selected-value").TrimmedText().Should().Be("Corn flakes"); + comp.Find("div.selected-values").TrimmedText().Should().Be("Corn flakes, Milk, Red wine"); + // de-select milk + comp.FindAll("div.mud-chip")[0].Click(); + comp.Find("div.selected-value").TrimmedText().Should().Be("Corn flakes"); + comp.Find("div.selected-values").TrimmedText().Should().Be("Corn flakes, Red wine"); + } + + [Test] + public async Task ChipSet_MultiSelection_WithInitialValues() + { + var comp = Context.RenderComponent(parameters => parameters.Add(x => x.InitialValues, ["Corn flakes", "Milk", "Red wine"])); + // initial values should be selected + comp.Find("div.selected-value").TrimmedText().Should().Be("Corn flakes"); + comp.Find("div.selected-values").TrimmedText().Should().Be("Corn flakes, Milk, Red wine"); + // de-select milk + comp.FindAll("div.mud-chip")[0].Click(); + comp.Find("div.selected-value").TrimmedText().Should().Be("Corn flakes"); + comp.Find("div.selected-values").TrimmedText().Should().Be("Corn flakes, Red wine"); } /// @@ -118,66 +140,55 @@ public async Task ChipSet_MultiSelection() public async Task ChipSet_SingleSelection_WithMultipleDefaultChips() { var comp = Context.RenderComponent(); - // print the generated html // select elements needed for the test - var chipset = comp.FindComponent(); comp.FindAll("div.mud-chip").Count.Should().Be(7); - comp.WaitForAssertion(() => chipset.Instance.SelectedChip.Text.Should().Be("Salad"), TimeSpan.FromSeconds(1)); - comp.FindAll("p")[0].TrimmedText().Should().Be("Salad"); - // select cornflakes - comp.FindAll("div.mud-chip")[3].Click(); comp.FindAll("p")[0].TrimmedText().Should().Be("Corn flakes"); - chipset.Instance.SelectedChip.Text.Should().Be("Corn flakes"); - // de-select cornflakes by clicking again - comp.FindAll("div.mud-chip")[3].Click(); - comp.FindAll("p")[0].TrimmedText().Should().Be("Nothing selected."); - chipset.Instance.SelectedChip.Should().Be(null); - // select cornflakes - comp.FindAll("div.mud-chip")[3].Click(); - comp.FindAll("p")[0].TrimmedText().Should().Be("Corn flakes"); - chipset.Instance.SelectedChip.Text.Should().Be("Corn flakes"); - // select milk - comp.FindAll("div.mud-chip")[0].Click(); - comp.FindAll("p")[0].TrimmedText().Should().Be("Milk"); - chipset.Instance.SelectedChip.Text.Should().Be("Milk"); } [Test] public async Task ChipSet_MultiSelection_DefaultChipsShouldBeInitiallySelected() { - var comp = Context.RenderComponent(ComponentParameter.CreateParameter("MultiSelection", true)); - // print the generated html - // select elements needed for the test - var chipset = comp.FindComponent(); + var comp = Context.RenderComponent(p => p.Add(x => x.MultiSelection, true)); comp.FindAll("div.mud-chip").Count.Should().Be(7); - chipset.Instance.SelectedChips.Length.Should().Be(2); - comp.FindAll("p")[0].TrimmedText().Should().Be("Eggs, Salad"); - // select cornflakes + comp.FindAll("p")[0].TrimmedText().Should().Be("Corn flakes, Milk"); + // de-select cornflakes comp.FindAll("div.mud-chip")[3].Click(); - comp.FindAll("p")[0].TrimmedText().Should().Be("Corn flakes, Eggs, Salad"); - string.Join(", ", chipset.Instance.SelectedChips.Select(x => x.Text).OrderBy(x => x)).Should().Be("Corn flakes, Eggs, Salad"); - // de-select eggs + comp.FindAll("p")[0].TrimmedText().Should().Be("Milk"); + // select eggs comp.FindAll("div.mud-chip")[1].Click(); - comp.FindAll("p")[0].TrimmedText().Should().Be("Corn flakes, Salad"); - string.Join(", ", chipset.Instance.SelectedChips.Select(x => x.Text).OrderBy(x => x)).Should().Be("Corn flakes, Salad"); + comp.FindAll("p")[0].TrimmedText().Should().Be("Eggs, Milk"); } + [Test] + public async Task ChipSet_MultiSelection_DefaultChipsShouldOverrideInitiallySelected() + { + var comp = Context.RenderComponent(p => p + .Add(x => x.MultiSelection, true) + .Add(x => x.InitialValues, ["Eggs", "Soap"]) + ); + comp.FindAll("div.mud-chip").Count.Should().Be(7); + comp.FindAll("p")[0].TrimmedText().Should().Be("Corn flakes, Eggs, Milk"); + // de-select cornflakes + comp.FindAll("div.mud-chip")[3].Click(); + comp.FindAll("p")[0].TrimmedText().Should().Be("Eggs, Milk"); + // select soap + comp.FindAll("div.mud-chip")[2].Click(); + comp.FindAll("p")[0].TrimmedText().Should().Be("Eggs, Milk, Soap"); + } [Test] public async Task ChipSet_MultiSelection_LateDefaultChipsShouldBeInitiallySelected() { var comp = Context.RenderComponent(); - // print the generated html + Console.WriteLine(comp.Markup); // check that only one item is present - var chipset = comp.FindComponent(); comp.FindAll("div.mud-chip").Count.Should().Be(1); - chipset.Instance.SelectedChips.Length.Should().Be(1); - string.Join(", ", chipset.Instance.SelectedChips.Select(x => x.Text).OrderBy(x => x)).Should().Be("Primary"); + comp.FindAll("p")[0].TrimmedText().Should().Be("Primary"); // select extra item comp.FindAll("button")[0].Click(); // check that extra item is selected comp.FindAll("div.mud-chip").Count.Should().Be(2); - string.Join(", ", chipset.Instance.SelectedChips.Select(x => x.Text).OrderBy(x => x)).Should().Be("Extra Chip, Primary"); + comp.FindAll("p")[0].TrimmedText().Should().Be("Extra Chip, Primary"); } /// @@ -190,7 +201,7 @@ public async Task ChipSet_ReadOnly() var comp = Context.RenderComponent(); // print the generated html // no chip should have mud-clickable or mud-ripple classes - var chipset = comp.FindComponent(); + var chipset = comp.FindComponent>(); comp.FindAll("div.mud-clickable").Count.Should().Be(0); comp.FindAll("div.mud-ripple").Count.Should().Be(0); @@ -200,7 +211,7 @@ public async Task ChipSet_ReadOnly() //Should not throw an error comp.FindAll("button.mud-chip-close-button")[0].Click(); - chipset.Instance.SelectedChip.Should().Be(null); + chipset.Instance.SelectedValue.Should().Be(null); } /// @@ -211,98 +222,86 @@ public async Task ChipSet_ReadOnly() public async Task ChipSet_SelectedValues_TwoWayBinding() { var comp = Context.RenderComponent(); - // print the generated html // initial values check - comp.Find("p.set1").TrimmedText().Should().Be("Set1 Selection: Set1 Chip1"); - comp.Find("p.set2").TrimmedText().Should().Be("Set2 Selection: Set2 Chip1"); + comp.Find("p.set").TrimmedText().Should().Be("Selection: 1"); + comp.FindComponents>()[0].Find("div").ClassList.Should().Contain("mud-chip-selected"); + comp.FindComponents>()[1].Find("div").ClassList.Should().NotContain("mud-chip-selected"); + comp.FindComponents>()[2].Find("div").ClassList.Should().Contain("mud-chip-selected"); + comp.FindComponents>()[3].Find("div").ClassList.Should().NotContain("mud-chip-selected"); // change selection and check state of both sets comp.FindAll("div.mud-chip")[0].Click(); - comp.WaitForAssertion(() => comp.Find("p.set1").TrimmedText().Should().Be("Set1 Selection:")); - comp.WaitForAssertion(() => comp.Find("p.set2").TrimmedText().Should().Be("Set2 Selection:")); + comp.Find("p.set").TrimmedText().Should().Be("Selection:"); + comp.FindComponents>()[0].Find("div").ClassList.Should().NotContain("mud-chip-selected"); + comp.FindComponents>()[1].Find("div").ClassList.Should().NotContain("mud-chip-selected"); + comp.FindComponents>()[2].Find("div").ClassList.Should().NotContain("mud-chip-selected"); + comp.FindComponents>()[3].Find("div").ClassList.Should().NotContain("mud-chip-selected"); comp.FindAll("div.mud-chip")[1].Click(); - comp.WaitForAssertion(() => comp.Find("p.set1").TrimmedText().Should().Be("Set1 Selection: Set1 Chip2")); - comp.WaitForAssertion(() => comp.Find("p.set2").TrimmedText().Should().Be("Set2 Selection: Set2 Chip2")); + comp.Find("p.set").TrimmedText().Should().Be("Selection: 2"); + comp.FindComponents>()[0].Find("div").ClassList.Should().NotContain("mud-chip-selected"); + comp.FindComponents>()[1].Find("div").ClassList.Should().Contain("mud-chip-selected"); + comp.FindComponents>()[2].Find("div").ClassList.Should().NotContain("mud-chip-selected"); + comp.FindComponents>()[3].Find("div").ClassList.Should().Contain("mud-chip-selected"); comp.FindAll("div.mud-chip")[2].Click(); - comp.WaitForAssertion(() => comp.Find("p.set1").TrimmedText().Should().Be("Set1 Selection: Set1 Chip1, Set1 Chip2")); - comp.WaitForAssertion(() => comp.Find("p.set2").TrimmedText().Should().Be("Set2 Selection: Set2 Chip1, Set2 Chip2")); + comp.Find("p.set").TrimmedText().Should().Be("Selection: 1, 2"); + comp.FindComponents>()[0].Find("div").ClassList.Should().Contain("mud-chip-selected"); + comp.FindComponents>()[1].Find("div").ClassList.Should().Contain("mud-chip-selected"); + comp.FindComponents>()[2].Find("div").ClassList.Should().Contain("mud-chip-selected"); + comp.FindComponents>()[3].Find("div").ClassList.Should().Contain("mud-chip-selected"); comp.FindAll("div.mud-chip")[3].Click(); - comp.WaitForAssertion(() => comp.Find("p.set1").TrimmedText().Should().Be("Set1 Selection: Set1 Chip1")); - comp.WaitForAssertion(() => comp.Find("p.set2").TrimmedText().Should().Be("Set2 Selection: Set2 Chip1")); - } - - [Test] - public async Task ChipSet_InitialSelectedValuesShouldBeApplied_ButOverriddenByChipDefault() - { - var comp = Context.RenderComponent(); - // print the generated html - // initial values check - comp.WaitForAssertion(() => comp.Find("p.sel").TrimmedText().Should().Be("Selection: Chip1, Chip3")); - - // change selection and check state - comp.FindAll("div.mud-chip")[0].Click(); - comp.WaitForAssertion(() => comp.Find("p.sel").TrimmedText().Should().Be("Selection: Chip3")); + comp.Find("p.set").TrimmedText().Should().Be("Selection: 1"); + comp.FindComponents>()[0].Find("div").ClassList.Should().Contain("mud-chip-selected"); + comp.FindComponents>()[1].Find("div").ClassList.Should().NotContain("mud-chip-selected"); + comp.FindComponents>()[2].Find("div").ClassList.Should().Contain("mud-chip-selected"); + comp.FindComponents>()[3].Find("div").ClassList.Should().NotContain("mud-chip-selected"); } [Test] public async Task ChipSetComparerTest() { var comp = Context.RenderComponent(); - // print the generated html // initial values check - comp.WaitForAssertion(() => comp.Find("p.sel").TrimmedText().Should().Be("Selection:")); + comp.Find("p.sel").TrimmedText().Should().Be("Selection:"); // change selection and check state comp.FindAll("div.mud-chip")[0].Click(); - comp.WaitForAssertion(() => comp.Find("p.sel").TrimmedText().Should().Be("Selection: Cappuccino")); + comp.Find("p.sel").TrimmedText().Should().Be("Selection: Cappuccino"); // set new selection and see if the comparer works correctly comp.FindComponent().Find("button").Click(); - comp.WaitForAssertion(() => comp.Find("p.sel").TrimmedText().Should().Be("Selection: Cafe Latte, Espresso")); - } - - [Test] - public async Task ChipSet_OtherTest() - { - var comp = Context.RenderComponent(); - var chipSet = comp.FindComponent(); - var chip = comp.FindComponents().FirstOrDefault(); - - comp.WaitForAssertion(() => chipSet.Instance.SelectedChips.Length.Should().Be(0)); - await comp.InvokeAsync(() => chipSet.Instance.SelectedChip = (MudChip)chip.Instance.Value); - comp.WaitForAssertion(() => chipSet.Instance.SelectedChips.Length.Should().Be(1)); - + comp.Find("p.sel").TrimmedText().Should().Be("Selection: Cafe Latte!, Espresso!"); - await comp.InvokeAsync(() => chipSet.Instance.OnChipDeletedAsync((MudChip)chip.Instance.Value)); - comp.WaitForAssertion(() => chipSet.Instance.SelectedChips.Length.Should().Be(0)); + // change selection and check state + comp.FindAll("div.mud-chip")[0].Click(); + comp.Find("p.sel").TrimmedText().Should().Be("Selection: Cafe Latte!, Cappuccino, Espresso!"); - await comp.InvokeAsync(() => chipSet.Instance.SelectedChip = null); - await comp.InvokeAsync(() => chipSet.Instance.SetSelectedValuesAsync(null)); - comp.WaitForAssertion(() => chipSet.Instance.SelectedChips.Length.Should().Be(0)); + // change selection and check state + comp.FindAll("div.mud-chip")[1].Click(); + comp.Find("p.sel").TrimmedText().Should().Be("Selection: Cappuccino, Espresso!"); } [Test] public async Task ChipSet_MultiSelection_AfterChipArraySetNull_ShouldBeAbleToSelectSameChip() { var comp = Context.RenderComponent(); - var chipSet = comp.FindComponent(); + var chipSet = comp.FindComponent>(); // Select one chip comp.FindAll("div.mud-chip")[0].Click(); - comp.WaitForAssertion(() => chipSet.Instance.SelectedChips.Length.Should().Be(1)); + comp.WaitForAssertion(() => chipSet.Instance.SelectedValues.Count.Should().Be(1)); comp.FindAll("p")[0].TrimmedText().Should().Be("Milk"); // Set chip array to null comp.FindAll("button")[0].Click(); - comp.WaitForAssertion(() => chipSet.Instance.SelectedChips.Length.Should().Be(0)); + comp.WaitForAssertion(() => chipSet.Instance.SelectedValues.Count.Should().Be(0)); comp.FindAll("p")[0].TrimmedText().Should().Be("Nothing selected."); // Select same chip again comp.FindAll("div.mud-chip")[0].Click(); - comp.WaitForAssertion(() => chipSet.Instance.SelectedChips.Length.Should().Be(1)); + comp.WaitForAssertion(() => chipSet.Instance.SelectedValues.Count.Should().Be(1)); comp.FindAll("p")[0].TrimmedText().Should().Be("Milk"); } @@ -310,26 +309,161 @@ public async Task ChipSet_MultiSelection_AfterChipArraySetNull_ShouldBeAbleToSel public async Task ChipSet_MultiSelection_AfterChipArraySetEmpty_ShouldBeAbleToSelectSameChip() { var comp = Context.RenderComponent(); - var chipSet = comp.FindComponent(); + var chipSet = comp.FindComponent>(); // Select one chip comp.FindAll("div.mud-chip")[0].Click(); - comp.WaitForAssertion(() => chipSet.Instance.SelectedChips.Length.Should().Be(1)); + comp.WaitForAssertion(() => chipSet.Instance.SelectedValues.Count.Should().Be(1)); comp.FindAll("p")[0].TrimmedText().Should().Be("Milk"); // Set chip array to empty comp.FindAll("button")[1].Click(); - comp.WaitForAssertion(() => chipSet.Instance.SelectedChips.Length.Should().Be(0)); + comp.WaitForAssertion(() => chipSet.Instance.SelectedValues.Count.Should().Be(0)); comp.FindAll("p")[0].TrimmedText().Should().Be("Nothing selected."); // Select same chip again comp.FindAll("div.mud-chip")[0].Click(); - comp.WaitForAssertion(() => chipSet.Instance.SelectedChips.Length.Should().Be(1)); + comp.WaitForAssertion(() => chipSet.Instance.SelectedValues.Count.Should().Be(1)); comp.FindAll("p")[0].TrimmedText().Should().Be("Milk"); } + + [Test] + public async Task Chip_GetValue_ShouldReturnTextIfValueIsNullAndT_IsString() + { + // Backwards compatibility with non-generic chips where setting the Text without a Value treated the Text as Value + Context.RenderComponent>(p => p + .Add(x => x.Text, "はい") + ).Instance.GetValue().Should().Be("はい"); + Context.RenderComponent>(p => p + .Add(x => x.Text, "はい") + .Add(x => x.Value, "Yes") + ).Instance.GetValue().Should().Be("Yes"); + // Not for types != string though! + Context.RenderComponent>(p => p + .Add(x => x.Text, "Zero") + ).Instance.GetValue().Should().Be(null); + Context.RenderComponent>(p => p + .Add(x => x.Text, "Zero") + .Add(x => x.Value, 0) + ).Instance.GetValue().Should().Be(0); + } + + [Test] + public async Task ChipSet_CheckMark_Parameter() + { + var comp = Context.RenderComponent>(self => self + .Add(x => x.CheckMark, true) + .Add(x => x.SelectedValue, "x") + .AddChildContent>(chip => chip.Add(x => x.Value, "x")) + .Add(x => x.CheckedIcon, Icons.Material.Filled.Cake) + .Add(x => x.CloseIcon, Icons.Material.Filled.Plagiarism) + .Add(x => x.Ripple, false) + .Add(x => x.IconColor, Color.Error) + ); + comp.FindAll("svg").Count.Should().Be(1); + comp.Instance.CheckMark.Should().Be(true); + comp.Instance.CheckMark.Should().Be(true); + comp.SetParametersAndRender(self => self.Add(x => x.CheckMark, false)); + comp.FindAll("svg").Count.Should().Be(0); + comp.Instance.CheckMark.Should().Be(false); + comp.Instance.CheckMark.Should().Be(false); + // for coverage + new MudChip().ShowCheckMark.Should().Be(false); + var chip = Context.RenderComponent>(chip => chip + .Add(x => x.CheckedIcon, Icons.Material.Filled.Cake) + .Add(x => x.CloseIcon, Icons.Material.Filled.Plagiarism) + .Add(x => x.Ripple, false) + .Add(x => x.IconColor, Color.Error) + .Add(x => x.IsSelected, true) + ).Instance; + await comp.InvokeAsync(() => chip.UpdateSelectionStateAsync(true)); + chip.ShowCheckMark.Should().Be(false); // because not in a chipset + new MudChip() { Variant = (Variant)69 }.GetVariant().Should().Be(Variant.Outlined); // falls back to outlined + } + + [Test] + public async Task ChipSet_RemoveChip_Logic() + { + IReadOnlyCollection selectedValues = ["x", "y", "z"]; + var comp = Context.RenderComponent>(self => self + .Add(x => x.MultiSelection, true) + .Bind(x => x.SelectedValues, selectedValues, x => selectedValues = x) + .AddChildContent>(chip => chip.Add(x => x.Value, "x")) + .AddChildContent>(chip => chip.Add(x => x.Value, "y")) + .AddChildContent>(chip => chip.Add(x => x.Value, "z")) + ); + await comp.InvokeAsync(() => comp.Instance.RemoveAsync(comp.FindComponent>().Instance)); + string.Join(", ", selectedValues).Should().Be("y, z"); + // removing a foreign chip doesn't do anything + await comp.Instance.RemoveAsync(Context.RenderComponent>(chip => chip.Add(x => x.Value, "y")).Instance); + string.Join(", ", selectedValues).Should().Be("y, z"); + // removing from a disposed chipset doesn't raise events, so in this case the selection stays the same + var chipY = comp.FindComponent>().Instance; + comp.Instance.Dispose(); + await comp.Instance.RemoveAsync(chipY); + string.Join(", ", selectedValues).Should().Be("y, z"); + } + + [Test] + public async Task ChipSet_With_NonValueTypes_DoesntCrash() + { + var a = new object(); + var b = new object(); + var c = new object(); + IReadOnlyCollection selectedValues = [a]; + var comp = Context.RenderComponent>(self => self + .Add(x => x.MultiSelection, true) + .Bind(x => x.SelectedValues, selectedValues, x => selectedValues = x) + .AddChildContent>(chip => chip.Add(x => x.Value, a)) + .AddChildContent>(chip => chip.Add(x => x.Value, b)) + .AddChildContent>(chip => chip.Add(x => x.Value, c)) + ); + comp.FindAll("div.mud-chip")[1].Click(); + selectedValues.Should().Contain(a).And.Contain(b); + comp.FindAll("div.mud-chip")[0].Click(); + selectedValues.Should().NotContain(a).And.Contain(b); + } + + [Test] + public async Task Chip_TwoWayBinding_ShouldUpdateSelection() + { + var checkedIcon = "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"; + var uncheckedIcon = "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"; + var comp = Context.RenderComponent(); + comp.Find("div.selection").TrimmedText().Should().Be("Add ingredients to your coctail."); + // initial state + comp.FindAll("div.mud-chip")[0].ClassList.Should().NotContain("mud-chip-selected"); + comp.FindAll("div.mud-chip")[2].ClassList.Should().NotContain("mud-chip-selected"); + comp.FindAll("label.mud-checkbox")[0].InnerHtml.Should().Contain(uncheckedIcon); + comp.FindAll("label.mud-checkbox")[2].InnerHtml.Should().Contain(uncheckedIcon); + + // click Vodka chip + comp.FindAll("div.mud-chip")[0].Click(); + comp.Find("div.selection").TrimmedText().Should().Be("Vodka"); + comp.FindAll("div.mud-chip")[0].ClassList.Should().Contain("mud-chip-selected"); + comp.FindAll("div.mud-chip")[2].ClassList.Should().NotContain("mud-chip-selected"); + comp.FindAll("label.mud-checkbox")[0].InnerHtml.Should().Contain(checkedIcon); + comp.FindAll("label.mud-checkbox")[2].InnerHtml.Should().Contain(uncheckedIcon); + + // click Olive checkbox + comp.FindAll("input.mud-checkbox-input")[2].Change(true); + comp.Find("div.selection").TrimmedText().Should().Be("Olive, Vodka"); + comp.FindAll("div.mud-chip")[0].ClassList.Should().Contain("mud-chip-selected"); + comp.FindAll("div.mud-chip")[2].ClassList.Should().Contain("mud-chip-selected"); + comp.FindAll("label.mud-checkbox")[0].InnerHtml.Should().Contain(checkedIcon); + comp.FindAll("label.mud-checkbox")[2].InnerHtml.Should().Contain(checkedIcon); + + // click Vodka checkbox + comp.FindAll("input.mud-checkbox-input")[0].Change(false); + comp.Find("div.selection").TrimmedText().Should().Be("Olive"); + comp.FindAll("div.mud-chip")[0].ClassList.Should().NotContain("mud-chip-selected"); + comp.FindAll("div.mud-chip")[2].ClassList.Should().Contain("mud-chip-selected"); + comp.FindAll("label.mud-checkbox")[0].InnerHtml.Should().Contain(uncheckedIcon); + comp.FindAll("label.mud-checkbox")[2].InnerHtml.Should().Contain(checkedIcon); + } } } diff --git a/src/MudBlazor.UnitTests/Components/ChipTests.cs b/src/MudBlazor.UnitTests/Components/ChipTests.cs index 52b25ac247d3..ba9c626eb857 100644 --- a/src/MudBlazor.UnitTests/Components/ChipTests.cs +++ b/src/MudBlazor.UnitTests/Components/ChipTests.cs @@ -62,15 +62,15 @@ public void Chip_OnClose_Test() public async Task Chip_Link_Test() { var comp = Context.RenderComponent(); - var chip = comp.FindComponent(); + var chip = comp.FindComponent>(); await comp.InvokeAsync(() => ((IMudStateHasChanged)chip.Instance).StateHasChanged()); - await comp.InvokeAsync(() => chip.Instance.OnClickHandler(new MouseEventArgs())); + await comp.InvokeAsync(() => chip.Instance.OnClickAsync(new MouseEventArgs())); comp.WaitForAssertion(() => comp.Find("#chip-click-test-expected-value").InnerHtml.Should().Be("")); #pragma warning disable BL0005 await comp.InvokeAsync(() => chip.Instance.Target = "_blank"); - await comp.InvokeAsync(() => chip.Instance.OnClickHandler(new MouseEventArgs())); + await comp.InvokeAsync(() => chip.Instance.OnClickAsync(new MouseEventArgs())); comp.WaitForAssertion(() => comp.Find("#chip-click-test-expected-value").InnerHtml.Should().Be("")); } diff --git a/src/MudBlazor/Components/Chip/MudChip.razor b/src/MudBlazor/Components/Chip/MudChip.razor index 5be3c6c04948..477e658402ef 100644 --- a/src/MudBlazor/Components/Chip/MudChip.razor +++ b/src/MudBlazor/Components/Chip/MudChip.razor @@ -1,33 +1,31 @@ @namespace MudBlazor +@typeparam T @inherits MudComponentBase -
+
@{ if (AvatarContent is not null) { @AvatarContent } -#pragma warning disable CS0618 - else if (!String.IsNullOrEmpty(Avatar)) + else if (!string.IsNullOrEmpty(Icon) && !ShowCheckMark) { - - - + } -#pragma warning restore CS0618 - else if (!String.IsNullOrEmpty(Icon) && !IsChecked) + else if (ShowCheckMark) { - - } - else if (IsChecked) - { - + } } - @if (ChildContent == null) + @if (ChildContent is null) { - @Text + @if(Text is null) { + @($"{Value}") + } + else { + @Text + } } else { @@ -35,7 +33,7 @@ } @if (OnClose.HasDelegate || ChipSet?.AllClosable == true) { - + }
diff --git a/src/MudBlazor/Components/Chip/MudChip.razor.cs b/src/MudBlazor/Components/Chip/MudChip.razor.cs index ce182ff232c3..a430a89e063a 100644 --- a/src/MudBlazor/Components/Chip/MudChip.razor.cs +++ b/src/MudBlazor/Components/Chip/MudChip.razor.cs @@ -1,327 +1,323 @@ using System; -using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; -using System.Windows.Input; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; +using MudBlazor.State; using MudBlazor.Utilities; -namespace MudBlazor +namespace MudBlazor; +#nullable enable + +public partial class MudChip : MudComponentBase, IAsyncDisposable { - public partial class MudChip : MudComponentBase, IAsyncDisposable + public MudChip() { - private bool _isSelected; - - [Inject] - public NavigationManager UriHelper { get; set; } - - [Inject] - public IJsApiService JsApiService { get; set; } - - protected string Classname => - new CssBuilder("mud-chip") - .AddClass($"mud-chip-{GetVariant().ToDescriptionString()}") - .AddClass($"mud-chip-size-{Size.ToDescriptionString()}") - .AddClass($"mud-chip-color-{GetColor().ToDescriptionString()}") - .AddClass("mud-clickable", IsClickable) - .AddClass("mud-ripple", IsClickable && !DisableRipple) - .AddClass("mud-chip-label", Label) - .AddClass("mud-disabled", Disabled) - .AddClass("mud-chip-selected", IsSelected) - .AddClass(Class) - .Build(); - - private bool IsClickable => - !ChipSet?.ReadOnly ?? (OnClick.HasDelegate || !string.IsNullOrEmpty(Href)); - - //Cannot test the get variant (last line) - [ExcludeFromCodeCoverage] - private Variant GetVariant() - { - return Variant switch - { - Variant.Text => IsSelected ? Variant.Filled : Variant.Text, - Variant.Filled => IsSelected ? Variant.Text : Variant.Filled, - Variant.Outlined => Variant.Outlined, - _ => Variant - }; - } + IsSelectedState = RegisterParameter(nameof(IsSelected), () => IsSelected, () => IsSelectedChanged, OnIsSelectedChangedAsync); + } - private Color GetColor() - { - if (IsSelected && SelectedColor != Color.Inherit) - { - return SelectedColor; - } + private Task OnIsSelectedChangedAsync(ParameterChangedEventArgs args) + { + if (ChipSet == null) + return Task.CompletedTask; + return ChipSet.OnChipIsSelectedChangedAsync(this, args.Value); + } - if (IsSelected && SelectedColor == Color.Inherit) - { - return Color; - } + internal async Task UpdateSelectionStateAsync(bool isSelected) + { + await IsSelectedState.SetValueAsync(isSelected); + StateHasChanged(); + } - return Color; - } + internal IParameterState IsSelectedState; + + [Inject] + public NavigationManager? UriHelper { get; set; } - [CascadingParameter] - private MudChipSet ChipSet { get; set; } - - /// - /// The color of the component. - /// - [Parameter] - [Category(CategoryTypes.Chip.Appearance)] - public Color Color { get; set; } = Color.Default; - - /// - /// The size of the button. small is equivalent to the dense button styling. - /// - [Parameter] - [Category(CategoryTypes.Chip.Appearance)] - public Size Size { get; set; } = Size.Medium; - - /// - /// The variant to use. - /// - [Parameter] - [Category(CategoryTypes.Chip.Appearance)] - public Variant Variant { get; set; } = Variant.Filled; - - /// - /// The selected color to use when selected, only works together with ChipSet, Color.Inherit for default value. - /// - [Parameter] - [Category(CategoryTypes.Chip.Appearance)] - public Color SelectedColor { get; set; } = Color.Inherit; - - [Parameter] - [Category(CategoryTypes.Chip.Appearance)] - public RenderFragment AvatarContent { get; set; } - - /// - /// Avatar Icon, Overrides the regular Icon if set. - /// - [Parameter] - [Obsolete($"Use {nameof(AvatarContent)} to render avatar as a fragment.")] - [Category(CategoryTypes.Chip.Behavior)] - public string Avatar { get; set; } - - /// - /// Avatar CSS Class, appends to Chips default avatar classes. - /// - [Parameter] - [Obsolete($"Use {nameof(AvatarContent)} to render avatar as a fragment.")] - [Category(CategoryTypes.Chip.Appearance)] - public string AvatarClass { get; set; } - - /// - /// Removes circle edges and applies theme default. - /// - [Parameter] - [Category(CategoryTypes.Chip.Appearance)] - public bool Label { get; set; } - - /// - /// If true, the chip will be displayed in disabled state and no events possible. - /// - [Parameter] - [Category(CategoryTypes.Chip.Behavior)] - public bool Disabled { get; set; } - - /// - /// Sets the Icon to use. - /// - [Parameter] - [Category(CategoryTypes.Chip.Behavior)] - public string Icon { get; set; } - - /// - /// Custom checked icon. - /// - [Parameter] - [Category(CategoryTypes.Chip.Appearance)] - public string CheckedIcon { get; set; } = Icons.Material.Filled.Check; - - /// - /// The color of the icon. - /// - [Parameter] - [Category(CategoryTypes.Chip.Appearance)] - public Color IconColor { get; set; } = Color.Inherit; - - /// - /// Overrides the default close icon, only shown if OnClose is set. - /// - [Parameter] - [Category(CategoryTypes.Chip.Appearance)] - public string CloseIcon { get; set; } - - /// - /// If true, disables ripple effect, ripple effect is only applied to clickable chips. - /// - [Parameter] - [Category(CategoryTypes.Chip.Appearance)] - public bool DisableRipple { get; set; } - - /// - /// Child content of component. - /// - [Parameter] - [Category(CategoryTypes.Chip.Behavior)] - public RenderFragment ChildContent { get; set; } - - /// - /// If set to a URL, clicking the button will open the referenced document. Use Target to specify where - /// - [Parameter] - [Category(CategoryTypes.Chip.ClickAction)] - public string Href { get; set; } - - /// - /// The target attribute specifies where to open the link, if Href is specified. Possible values: _blank | _self | _parent | _top | framename - /// - [Parameter] - [Category(CategoryTypes.Chip.ClickAction)] - public string Target { get; set; } - - /// - /// A string you want to associate with the chip. If the ChildContent is not set this will be shown as chip text. - /// - [Parameter] - [Category(CategoryTypes.Chip.Behavior)] - public string Text { get; set; } - - /// - /// A value that should be managed in the SelectedValues collection. - /// Note: do not change the value during the chip's lifetime - /// - [Parameter] - [Category(CategoryTypes.Chip.Behavior)] - public object Value { get; set; } - - /// - /// If true, force browser to redirect outside component router-space. - /// - [Parameter] - [Category(CategoryTypes.Chip.ClickAction)] - public bool ForceLoad { get; set; } - - /// - /// If true, this chip is selected by default if used in a ChipSet. - /// - [Parameter] - [Category(CategoryTypes.Chip.Behavior)] - public bool? Default { get; set; } - - /// - /// Chip click event, if set the chip focus, hover and click effects are applied. - /// - [Parameter] - public EventCallback OnClick { get; set; } - - /// - /// Chip delete event, if set the delete icon will be visible. - /// - [Parameter] - public EventCallback OnClose { get; set; } - - /// - /// Set by MudChipSet - /// - public bool IsChecked + [Inject] + public IJsApiService? JsApiService { get; set; } + + protected string Classname => + new CssBuilder("mud-chip") + .AddClass($"mud-chip-{GetVariant().ToDescriptionString()}") + .AddClass($"mud-chip-size-{GetSize().ToDescriptionString()}") + .AddClass($"mud-chip-color-{GetColor().ToDescriptionString()}") + .AddClass("mud-clickable", IsClickable) + .AddClass("mud-ripple", IsClickable && GetRipple()) + .AddClass("mud-chip-label", GetLabel()) + .AddClass("mud-disabled", GetDisabled()) + .AddClass("mud-chip-selected", IsSelectedState.Value) + .AddClass(Class) + .Build(); + + private bool IsClickable => !ChipSet?.ReadOnly ?? (OnClick.HasDelegate || !string.IsNullOrEmpty(Href)); + + internal Variant GetVariant() + { + var chipSetVariant = ChipSet?.Variant ?? MudBlazor.Variant.Filled; + var variant = Variant ?? chipSetVariant; + return variant switch + { + MudBlazor.Variant.Text => IsSelectedState.Value ? MudBlazor.Variant.Filled : MudBlazor.Variant.Text, + MudBlazor.Variant.Filled => IsSelectedState.Value ? MudBlazor.Variant.Text : MudBlazor.Variant.Filled, + MudBlazor.Variant.Outlined => MudBlazor.Variant.Outlined, + _ => MudBlazor.Variant.Outlined + }; + } + + private Color GetColor() + { + var selectedColor = GetSelectedColor(); + if (IsSelectedState.Value && selectedColor != MudBlazor.Color.Inherit) { - get => _isSelected && ChipSet?.Filter == true; + return selectedColor; } + return Color ?? ChipSet?.Color ?? MudBlazor.Color.Default; + } - /// - /// If false, this chip has not been seen before - /// - public bool DefaultProcessed { get; set; } + private Color GetSelectedColor() => SelectedColor ?? ChipSet?.SelectedColor ?? MudBlazor.Color.Inherit; + + private Color GetIconColor() => IconColor ?? ChipSet?.IconColor ?? MudBlazor.Color.Inherit; + + private Size GetSize() => Size ?? ChipSet?.Size ?? MudBlazor.Size.Medium; + + private bool GetDisabled() => Disabled || (ChipSet?.Disabled ?? false); + + private bool GetRipple() => Ripple ?? ChipSet?.Ripple ?? true; + + private bool GetLabel() => Label ?? ChipSet?.Label ?? false; + + private string GetCheckedIcon() => CheckedIcon ?? ChipSet?.CheckedIcon ?? Icons.Material.Filled.Check; + + private string GetCloseIcon() => CloseIcon ?? ChipSet?.CloseIcon ?? Icons.Material.Filled.Cancel; + + [CascadingParameter] + private MudChipSet? ChipSet { get; set; } + + /// + /// The chip color when not selected. + /// + [Parameter] + [Category(CategoryTypes.Chip.Appearance)] + public Color? Color { get; set; } + + /// + /// The chip color to use when selected, only works together with ChipSet, Color.Inherit for default value. + /// + [Parameter] + [Category(CategoryTypes.Chip.Appearance)] + public Color? SelectedColor { get; set; } + + /// + /// The chip size. + /// + [Parameter] + [Category(CategoryTypes.Chip.Appearance)] + public Size? Size { get; set; } + + /// + /// The chip variant. + /// + [Parameter] + [Category(CategoryTypes.Chip.Appearance)] + public Variant? Variant { get; set; } + + [Parameter] + [Category(CategoryTypes.Chip.Appearance)] + public RenderFragment? AvatarContent { get; set; } + + /// + /// Removes circle edges and applies theme default. + /// + [Parameter] + [Category(CategoryTypes.Chip.Appearance)] + public bool? Label { get; set; } + + /// + /// If true, the chip will be visibly disabled and interaction is disabled as well. + /// Note, if the ChipSet is disabled this setting is overruled. + /// + [Parameter] + [Category(CategoryTypes.Chip.Behavior)] + public bool Disabled { get; set; } + + /// + /// Sets the Icon to use. + /// + [Parameter] + [Category(CategoryTypes.Chip.Behavior)] + public string? Icon { get; set; } + + /// + /// Custom checked icon. + /// + [Parameter] + [Category(CategoryTypes.Chip.Appearance)] + public string? CheckedIcon { get; set; } + + /// + /// The color of the icon. + /// + [Parameter] + [Category(CategoryTypes.Chip.Appearance)] + public Color? IconColor { get; set; } + + /// + /// Overrides the default close icon, only shown if OnClose is set. + /// + [Parameter] + [Category(CategoryTypes.Chip.Appearance)] + public string? CloseIcon { get; set; } + + /// + /// If true, a ripple effect is applied to clickable chips. + /// + [Parameter] + [Category(CategoryTypes.Chip.Appearance)] + public bool? Ripple { get; set; } + + /// + /// Child content of component. + /// + [Parameter] + [Category(CategoryTypes.Chip.Behavior)] + public RenderFragment? ChildContent { get; set; } + + /// + /// If set to a URL, clicking the button will open the referenced document. Use Target to specify where + /// + [Parameter] + [Category(CategoryTypes.Chip.ClickAction)] + public string? Href { get; set; } + + /// + /// The target attribute specifies where to open the link, if Href is specified. Possible values: _blank | _self | _parent | _top | framename + /// + [Parameter] + [Category(CategoryTypes.Chip.ClickAction)] + public string? Target { get; set; } + + /// + /// A string you want to associate with the chip. If the ChildContent is not set this will be shown as chip text. + /// + [Parameter] + [Category(CategoryTypes.Chip.Behavior)] + public string? Text { get; set; } + + /// + /// A value that should be managed in the SelectedValues collection. + /// Note: do not change the value during the chip's lifetime + /// + [Parameter] + [Category(CategoryTypes.Chip.Behavior)] + public T? Value { get; set; } + + /// + /// This concerns only chips with Href set to a hyperlink. If ForceLoad is true, the browser will follow the link outside of Blazor routing. + /// + [Parameter] + [Category(CategoryTypes.Chip.ClickAction)] + public bool ForceLoad { get; set; } + + /// + /// If true, this chip is selected by default if used in a ChipSet. + /// + [Parameter] + [Category(CategoryTypes.Chip.Behavior)] + public bool? Default { get; set; } + + /// + /// Chip click event, if set the chip focus, hover and click effects are applied. + /// + [Parameter] + public EventCallback OnClick { get; set; } + + /// + /// Chip delete event, if set the delete icon will be visible. + /// + [Parameter] + public EventCallback> OnClose { get; set; } + + internal bool ShowCheckMark => IsSelectedState.Value && ChipSet?.CheckMark == true; + + /// + /// True if the chip is selected. Bind this to manipulate the chip's selection state. + /// + [Parameter] + [Category(CategoryTypes.Chip.Behavior)] + public bool IsSelected { get; set; } + + /// + /// Raised when IsSelected changes + /// + [Parameter] + public EventCallback IsSelectedChanged { get; set; } + + internal T? GetValue() + { + if (typeof(T) == typeof(string) && Value is null && Text is not null) + return (T)(object)Text; + return Value; + } - /// - /// Set by MudChipSet - /// - public bool IsSelected + protected override async Task OnInitializedAsync() + { + await base.OnInitializedAsync(); + if (ChipSet is null) + return; + await ChipSet.AddAsync(this); + } + + protected internal async Task OnClickAsync(MouseEventArgs ev) + { + if (ChipSet?.ReadOnly == true) { - get => _isSelected; - set - { - if (_isSelected == value) - return; - _isSelected = value; - StateHasChanged(); - } + return; } - - protected override void OnInitialized() + if (ChipSet != null) { - base.OnInitialized(); - if (Value == null) - Value = this; + await IsSelectedState.SetValueAsync(!IsSelectedState.Value); + await ChipSet.OnChipIsSelectedChangedAsync(this, IsSelectedState.Value); } - - protected internal async Task OnClickHandler(MouseEventArgs ev) + if (Href != null) { - if (ChipSet?.ReadOnly == true) - { - return; - } - if (ChipSet != null) - { - await ChipSet.OnChipClickedAsync(this); - } - if (Href != null) - { - // TODO: use MudElement to render and this code can be removed. we know that it has potential problems on iOS - if (string.IsNullOrWhiteSpace(Target)) - UriHelper.NavigateTo(Href, ForceLoad); - else - await JsApiService.Open(Href, Target); - } - else - { - await OnClick.InvokeAsync(ev); - } + // TODO: use MudElement to render and this code can be removed. we know that it has potential problems on iOS + if (string.IsNullOrWhiteSpace(Target)) + UriHelper?.NavigateTo(Href, ForceLoad); + else if (JsApiService != null) + await JsApiService.Open(Href, Target); } - - protected async Task OnCloseHandler(MouseEventArgs ev) + else { - if (ChipSet?.ReadOnly == true) - { - return; - } - await OnClose.InvokeAsync(this); - if (ChipSet is not null) - { - await ChipSet.OnChipDeletedAsync(this); - } - - StateHasChanged(); + await OnClick.InvokeAsync(ev); } + } - protected override async Task OnInitializedAsync() + protected async Task OnCloseAsync(MouseEventArgs ev) + { + if (ChipSet?.ReadOnly == true) { - if (ChipSet is not null) - { - await ChipSet.AddAsync(this); - } - await base.OnInitializedAsync(); + return; } + await OnClose.InvokeAsync(this); + if (ChipSet is not null) + { + await ChipSet.OnChipDeletedAsync(this); + } + + StateHasChanged(); + } - //Exclude because we don't test to catching exception yet - [ExcludeFromCodeCoverage] - public async ValueTask DisposeAsync() + public async ValueTask DisposeAsync() + { + try + { + if (ChipSet is null) + return; + await ChipSet.RemoveAsync(this); + } + catch (Exception) { - try - { - if (ChipSet is not null) - { - await ChipSet.RemoveAsync(this); - } - } - catch (Exception) - { - /* ignore! */ - } + /* ignore! */ } } } diff --git a/src/MudBlazor/Components/ChipSet/MudChipSet.razor b/src/MudBlazor/Components/ChipSet/MudChipSet.razor index cb629e58be14..d193c145693a 100644 --- a/src/MudBlazor/Components/ChipSet/MudChipSet.razor +++ b/src/MudBlazor/Components/ChipSet/MudChipSet.razor @@ -1,4 +1,5 @@ @namespace MudBlazor +@typeparam T @inherits MudComponentBase
diff --git a/src/MudBlazor/Components/ChipSet/MudChipSet.razor.cs b/src/MudBlazor/Components/ChipSet/MudChipSet.razor.cs index 7f9dc507b9f3..0eeef91c7df4 100644 --- a/src/MudBlazor/Components/ChipSet/MudChipSet.razor.cs +++ b/src/MudBlazor/Components/ChipSet/MudChipSet.razor.cs @@ -4,353 +4,349 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using MudBlazor.Interfaces; +using MudBlazor.State; using MudBlazor.Utilities; -namespace MudBlazor +namespace MudBlazor; +#nullable enable + +public partial class MudChipSet : MudComponentBase, IDisposable { - public partial class MudChipSet : MudComponentBase, IDisposable + public MudChipSet() { - protected string Classname => - new CssBuilder("mud-chipset") - .AddClass(Class) - .Build(); - - /// - /// Child content of component. - /// - [Parameter] - [Category(CategoryTypes.ChipSet.Behavior)] - public RenderFragment ChildContent { get; set; } - - /// - /// Allows to select more than one chip. - /// - [Parameter] - [Category(CategoryTypes.ChipSet.Behavior)] - public bool MultiSelection { get; set; } = false; - - /// - /// Will not allow to deselect the selected chip in single selection mode. - /// - [Parameter] - [Category(CategoryTypes.ChipSet.Behavior)] - public bool Mandatory { get; set; } = false; - - /// - /// Will make all chips closable. - /// - [Parameter] - [Category(CategoryTypes.ChipSet.Behavior)] - public bool AllClosable { get; set; } = false; - - /// - /// Will show a check-mark for the selected components. - /// - [Parameter] - [Category(CategoryTypes.ChipSet.Appearance)] - public bool Filter - { - get => _filter; - set - { - if (_filter == value) - return; - _filter = value; - StateHasChanged(); - foreach (IMudStateHasChanged chip in _chips) - chip.StateHasChanged(); - } - } + _selectedValue = RegisterParameter(nameof(SelectedValue), () => SelectedValue, () => SelectedValueChanged, OnSelectedValueChangedAsync); + _selectedValues = RegisterParameter(nameof(SelectedValues), () => SelectedValues, () => SelectedValuesChanged, OnSelectedValuesChangedAsync); + _comparer = RegisterParameter(nameof(Comparer), () => Comparer, OnComparerChangedAsync); + RegisterParameter(nameof(CheckMark), () => CheckMark, OnCheckMarkChanged); + } - /// - /// Will make all chips read only. - /// - [Parameter] - [Category(CategoryTypes.ChipSet.Behavior)] - public bool ReadOnly { get; set; } = false; - - /// - /// The currently selected chip in Choice mode - /// - [Parameter] - [Category(CategoryTypes.ChipSet.Behavior)] - public MudChip SelectedChip - { - get { return _chips.FirstOrDefault(x => x.IsSelected); } - set - { - if (value == null) - { - foreach (var chip in _chips) - { - chip.IsSelected = false; - } - } - else - { - foreach (var chip in _chips) - { - chip.IsSelected = (chip == value); - } - } - this.InvokeAsync(StateHasChanged); - } - } + private IParameterState _selectedValue; + private IParameterState?> _selectedValues; + private IParameterState?> _comparer; + + private HashSet _selection = new(); + private HashSet> _chips = new(); + + protected string Classname => + new CssBuilder("mud-chipset") + .AddClass(Class) + .Build(); + + /// + /// Child content of component. + /// + [Parameter] + [Category(CategoryTypes.ChipSet.Behavior)] + public RenderFragment? ChildContent { get; set; } + + /// + /// Allows selecting more than one chip. + /// + [Parameter] + [Category(CategoryTypes.ChipSet.Behavior)] + public bool MultiSelection { get; set; } = false; + + /// + /// Will not allow to deselect the selected chip in single selection mode. + /// + [Parameter] + [Category(CategoryTypes.ChipSet.Behavior)] + public bool Mandatory { get; set; } = false; + + /// + /// Will make all chips closable. + /// + [Parameter] + [Category(CategoryTypes.ChipSet.Behavior)] + public bool AllClosable { get; set; } = false; + + /// + /// The default chip variant if they don't set their own. + /// Chips may override this. + /// + [Parameter] + [Category(CategoryTypes.Chip.Appearance)] + public Variant Variant { get; set; } = Variant.Filled; + + /// + /// The default chip color if they don't set their own. + /// Chips may override this. + /// + [Parameter] + [Category(CategoryTypes.Chip.Appearance)] + public Color Color { get; set; } = Color.Default; + + /// + /// The default selected chip color. Color.Inherit for default value. + /// Chips may override this. + /// + [Parameter] + [Category(CategoryTypes.Chip.Appearance)] + public Color SelectedColor { get; set; } = MudBlazor.Color.Inherit; + + /// + /// The default icon color for all chips. + /// Chips may override this. + /// + [Parameter] + [Category(CategoryTypes.Chip.Appearance)] + public Color IconColor { get; set; } = MudBlazor.Color.Inherit; + + /// + /// The default chip size. + /// Chips may override this. + /// + [Parameter] + [Category(CategoryTypes.Chip.Appearance)] + public Size Size { get; set; } = Size.Medium; + + /// + /// Will show a check-mark for the selected components. + /// + [Parameter] + [Category(CategoryTypes.ChipSet.Appearance)] + public bool CheckMark { get; set; } + + /// + /// The default checked icon for all chips. + /// Chips may override this. + /// + [Parameter] + [Category(CategoryTypes.Chip.Appearance)] + public string CheckedIcon { get; set; } = Icons.Material.Filled.Check; + + /// + /// Rhe default close icon for all chips, only shown if OnClose is set. + /// Chips may override this. + /// + [Parameter] + [Category(CategoryTypes.Chip.Appearance)] + public string CloseIcon { get; set; } = Icons.Material.Filled.Cancel; + + /// + /// Ripple default setting for all chips. If true, a ripple effect is applied to clickable chips. + /// Chips may override this. + /// + [Parameter] + [Category(CategoryTypes.Chip.Appearance)] + public bool Ripple { get; set; } = true; + + /// + /// Removes circle edges and applies theme default. This setting is for all chips, + /// unless they override it. + /// + [Parameter] + [Category(CategoryTypes.Chip.Appearance)] + public bool Label { get; set; } + + /// + /// If true, all chips will be disabled. + /// Although chips have their own setting they can NOT override this. + /// + [Parameter] + [Category(CategoryTypes.Chip.Behavior)] + public bool Disabled { get; set; } + + /// + /// Will make all chips read only. + /// + [Parameter] + [Category(CategoryTypes.ChipSet.Behavior)] + public bool ReadOnly { get; set; } = false; + + /// + /// The Comparer to use for comparing selected values internally. + /// + [Parameter] + [Category(CategoryTypes.ChipSet.Behavior)] + public IEqualityComparer? Comparer { get; set; } + + /// + /// The currently selected value. + /// + [Parameter] + [Category(CategoryTypes.ChipSet.Behavior)] + public T? SelectedValue { get; set; } + + /// + /// Called whenever SelectedValue changes + /// + [Parameter] + public EventCallback SelectedValueChanged { get; set; } + + /// + /// The currently selected values if MultiSelection="true". + /// + [Parameter] + [Category(CategoryTypes.ChipSet.Behavior)] + public IReadOnlyCollection? SelectedValues { get; set; } + + /// + /// Called whenever SelectedValues changes + /// + [Parameter] + public EventCallback?> SelectedValuesChanged { get; set; } + + /// + /// Called when a Chip was deleted (by click on the close icon) + /// + [Parameter] + public EventCallback> OnClose { get; set; } + + private Task OnSelectedValueChangedAsync(ParameterChangedEventArgs args) + { + return UpdateSelectionAsync(new[] { args.Value }); + } - /// - /// Called when the selected chip changes, in Choice mode - /// - [Parameter] - public EventCallback SelectedChipChanged { get; set; } - - /// - /// The currently selected chips in Filter mode - /// - [Parameter] - [Category(CategoryTypes.ChipSet.Behavior)] - public MudChip[] SelectedChips - { - get { return _chips.Where(x => x.IsSelected).ToArray(); } - set - { - if (value == null || value.Length == 0) - { - foreach (var chip in _chips) - { - chip.IsSelected = false; - } - _lastSelectedValues = null; - } - else - { - var selected = new HashSet(value); - foreach (var chip in _chips) - { - chip.IsSelected = selected.Contains(chip); - } - } - StateHasChanged(); - } - } + private Task OnSelectedValuesChangedAsync(ParameterChangedEventArgs?> args) + { + return UpdateSelectionAsync(args.Value); + } - protected override void OnInitialized() - { - base.OnInitialized(); - if (_selectedValues == null) - _selectedValues = new HashSet(_comparer); - _initialSelectedValues = new HashSet(_selectedValues, _comparer); - } + private Task OnComparerChangedAsync(ParameterChangedEventArgs?> args) + { + return UpdateSelectionAsync(_selectedValues.Value); + } - private IEqualityComparer _comparer; - private HashSet _selectedValues; - private HashSet _initialSelectedValues; + private void OnCheckMarkChanged(ParameterChangedEventArgs args) + { + foreach (IMudStateHasChanged chip in _chips) + chip.StateHasChanged(); + } - /// - /// The Comparer to use for comparing selected values internally. - /// - [Parameter] - [Category(CategoryTypes.ChipSet.Behavior)] - public IEqualityComparer Comparer + private async Task UpdateSelectionAsync(IReadOnlyCollection? newValues, bool updateChips = true) + { + var comparer = _comparer.Value; + var selectedValues = newValues ?? Array.Empty(); + HashSet newSelection; + if (MultiSelection) { - get => _comparer; - set - { - _comparer = value; - // Apply comparer and refresh selected values - _selectedValues = new HashSet(_selectedValues, _comparer); - SelectedValues = _selectedValues; - } + newSelection = comparer is null ? new HashSet(selectedValues.OfType()) : new HashSet(selectedValues.OfType(), comparer); } - - /// - /// Called when the selection changed, in Filter mode - /// - [Parameter] - public EventCallback SelectedChipsChanged { get; set; } - - /// - /// The current selected value. - /// Note: make the list Clickable for item selection to work. - /// - [Parameter] - [Category(CategoryTypes.ChipSet.Behavior)] - public ICollection SelectedValues + else { - get => _selectedValues; - set + newSelection = new HashSet(_comparer.Value); + var first = selectedValues.FirstOrDefault(); + if (first is not null) + newSelection.Add(first); + } + if (_selection.IsEqualTo(newSelection)) + return; + _selection = newSelection; + if (updateChips) + { + foreach (var chip in _chips.ToArray()) { - if (value == null) - SetSelectedValuesAsync(Array.Empty()); - else - SetSelectedValuesAsync(value.ToArray()).AndForget(); + var value = chip.GetValue(); + var isSelected = value is not null && newSelection.Contains(value); + await chip.UpdateSelectionStateAsync(isSelected); } } + await _selectedValue.SetValueAsync(newSelection.OrderBy(SafeOrder).FirstOrDefault()); + await _selectedValues.SetValueAsync(newSelection.ToArray()); + } - /// - /// Called whenever the selection changed - /// - [Parameter] - public EventCallback> SelectedValuesChanged { get; set; } + /// + /// This guarantees that any type can be ordered. Of course the order is meaningless if the type doesn't + /// implement IComparable but at least we don't crash while sorting. + /// We need to sort for predictable test results but if the user doesn't care about the SelectedValue in a + /// MultiSelection scenario then we won't impose that his T implement IComparable + /// + private IComparable SafeOrder(T? arg) + { + if (arg is IComparable comparable) + return comparable; + return arg?.GetHashCode() ?? 0; + } - internal Task SetSelectedValuesAsync(object[] values) + internal async Task AddAsync(MudChip chip) + { + if (!_chips.Add(chip)) + return; + var value = chip.GetValue(); + if (value is not null && (chip.Default == true && !_selection.Contains(value) || (chip.Default == false && _selection.Contains(value)))) { - HashSet newValues = null; - if (values == null) - values = Array.Empty(); - if (MultiSelection) - newValues = new HashSet(values, _comparer); - else + var newSelection = MultiSelection ? new HashSet(_selection, _comparer.Value) : new HashSet(_comparer.Value); + if (chip.Default == true) { - newValues = new HashSet(_comparer); - if (values.Length > 0) - newValues.Add(values.First()); + newSelection.Add(value); } - // avoid update with same values - if (_selectedValues.IsEqualTo(newValues)) - return Task.CompletedTask; - _selectedValues = newValues; - foreach (var chip in _chips.ToArray()) + else { - var isSelected = _selectedValues.Contains(chip.Value); - chip.IsSelected = isSelected; + newSelection.Remove(value); } - return NotifySelectionAsync(); + await UpdateSelectionAsync(newSelection, updateChips: !MultiSelection); } + if (value is not null && _selection.Contains(value)) + await chip.UpdateSelectionStateAsync(true); + } - /// - /// Called when a Chip was deleted (by click on the close icon) - /// - [Parameter] - public EventCallback OnClose { get; set; } - - internal Task AddAsync(MudChip chip) - { - _chips.Add(chip); - if (_selectedValues.Contains(chip.Value)) - chip.IsSelected = true; - return CheckDefaultAsync(chip); - } + internal async Task RemoveAsync(MudChip chip) + { + if (!_chips.Remove(chip)) + return; + if (_disposed) + return; // don't raise any events if we are already disposed + var value = chip.GetValue(); + //if (chip.IsSelectedState.Value && value is not null) + //{ + await UpdateSelectionAsync(_selection.Where(x => !AreValuesEqual(x, value)).ToArray()); + //} + // return Task.CompletedTask; + StateHasChanged(); + } - internal Task RemoveAsync(MudChip chip) + internal async Task OnChipIsSelectedChangedAsync(MudChip chip, bool isSelected) + { + var value = chip.GetValue(); + HashSet newSelection; + // Single Selection + if (!MultiSelection) { - _chips.Remove(chip); - if (chip.IsSelected) + if (value is null && isSelected) { - _selectedValues.Remove(chip.Value); - return NotifySelectionAsync(); - } - return Task.CompletedTask; - } - - private async Task CheckDefaultAsync(MudChip chip) - { - if (!MultiSelection) + await UpdateSelectionAsync(Array.Empty()); return; - if (chip.DefaultProcessed) - return; - chip.DefaultProcessed = true; - if (chip.Default == null) - return; - var oldSelected = chip.IsSelected; - chip.IsSelected = chip.Default == true; - if (chip.IsSelected != oldSelected) - { - if (chip.IsSelected) - _selectedValues.Add(chip.Value); - else - _selectedValues.Remove(chip.Value); - await NotifySelectionAsync(); } + newSelection = new HashSet(_comparer.Value); + if (value is not null && (Mandatory || isSelected)) + newSelection.Add(value); } - - private HashSet _chips = new(); - private bool _filter; - - internal Task OnChipClickedAsync(MudChip chip) + // Multi Selection + else { - var wasSelected = chip.IsSelected; - if (MultiSelection) + if (value is null) + return; + newSelection = new HashSet(_selection, _comparer.Value); + if (isSelected) { - chip.IsSelected = !chip.IsSelected; + newSelection.Add(value); } else { - foreach (var ch in _chips) - { - ch.IsSelected = (ch == chip); // <-- exclusively select the one chip only, thus all others must be deselected - } - if (!Mandatory) - chip.IsSelected = !wasSelected; + newSelection.Remove(value); } - UpdateSelectedValues(); - return NotifySelectionAsync(); - } - - private void UpdateSelectedValues() - { - _selectedValues = new HashSet(_chips.Where(x => x.IsSelected).Select(x => x.Value), _comparer); - } - - private object[] _lastSelectedValues = null; - - private async Task NotifySelectionAsync() - { - if (_disposed) - return; - // to avoid endless notification loops we check if selection has really changed - if (_selectedValues.IsEqualTo(_lastSelectedValues)) - return; - _lastSelectedValues = _selectedValues.ToArray(); - await SelectedChipChanged.InvokeAsync(SelectedChip); - await SelectedChipsChanged.InvokeAsync(SelectedChips); - await SelectedValuesChanged.InvokeAsync(SelectedValues); - StateHasChanged(); - } - - [Obsolete($"Use {nameof(OnChipDeletedAsync)} instead. This will be removed in v7.")] - public void OnChipDeleted(MudChip chip) - { - RemoveAsync(chip).AndForget(); - OnClose.InvokeAsync(chip); - } - - public async Task OnChipDeletedAsync(MudChip chip) - { - await RemoveAsync(chip); - await OnClose.InvokeAsync(chip); } + await UpdateSelectionAsync(newSelection); + } - protected override async Task OnAfterRenderAsync(bool firstRender) - { - if (firstRender) - await SelectDefaultChipsAsync(); - await base.OnAfterRenderAsync(firstRender); - } + internal async Task OnChipDeletedAsync(MudChip chip) + { + await RemoveAsync(chip); + await OnClose.InvokeAsync(chip); + } - private async Task SelectDefaultChipsAsync() - { - if (!MultiSelection) - { - var anySelected = false; - var defaultChip = _chips.LastOrDefault(chip => chip.Default == true); - if (defaultChip != null) - { - defaultChip.IsSelected = true; - anySelected = true; - } - if (anySelected) - { - UpdateSelectedValues(); - await NotifySelectionAsync(); - } - } - } + private bool AreValuesEqual(T? a, T? b) + { + var comparer = _comparer.Value; + return comparer?.Equals(a, b) ?? object.Equals(a, b); + } - private bool _disposed; + private bool _disposed; - public void Dispose() - { - _disposed = true; - } + public void Dispose() + { + _disposed = true; } + } diff --git a/src/MudBlazor/MudBlazor.csproj.DotSettings b/src/MudBlazor/MudBlazor.csproj.DotSettings index 9ea1ab5db458..a98594d11e70 100644 --- a/src/MudBlazor/MudBlazor.csproj.DotSettings +++ b/src/MudBlazor/MudBlazor.csproj.DotSettings @@ -6,6 +6,7 @@ True True True + True True True True From 8f056180e4751c75c4edfae6e03c2041b2461976 Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Sun, 31 Mar 2024 14:48:14 -0500 Subject: [PATCH 34/50] Docs: Replace notification with one for v7 & Don't hide read ones (#8505) --- .../Announcement_MudBlazorIsHereToStay.razor | 52 --------------- .../Announcement_v7_Started_Development.razor | 64 +++++++++++++++++++ .../InMemoryNotificationService.cs | 19 +++--- src/MudBlazor.Docs/Shared/AppbarButtons.razor | 2 +- 4 files changed, 74 insertions(+), 63 deletions(-) delete mode 100644 src/MudBlazor.Docs/NotificationContent/Announcement_MudBlazorIsHereToStay.razor create mode 100644 src/MudBlazor.Docs/NotificationContent/Announcement_v7_Started_Development.razor diff --git a/src/MudBlazor.Docs/NotificationContent/Announcement_MudBlazorIsHereToStay.razor b/src/MudBlazor.Docs/NotificationContent/Announcement_MudBlazorIsHereToStay.razor deleted file mode 100644 index 8a7cd965d2b7..000000000000 --- a/src/MudBlazor.Docs/NotificationContent/Announcement_MudBlazorIsHereToStay.razor +++ /dev/null @@ -1,52 +0,0 @@ - - - I am very excited to finally share this with everyone after several months of work, a few delays and more new things added to the pile of news. - - - - - - Over the past year, a lot of companies have contacted me and asked about MudBlazor. All of them have one thing in common, they want to be reassured that if they pick MudBlazor for their product, it won't be gone or abandoned one rainy morning when they wake up.
-
- And I am extremely happy and proud of what we have managed to do with MudBlazor so far. I want to keep making it better and making sure it's one of the best libraries out there.
-
- To do this I have started a company that is going to be behind the mud. Nothing will change from how things are done today, it will still be open source and our MIT license will stay the same.
-
- We might launch some extra services in the future depending on how big interest there is for such a thing. But for now nothing is set in stone.
-
-
-
- - - - In the coming months we will release several new “products” or sites if you will because we love Blazor and we want to help everyone who is using it. - - - - - MudExtensions - MudBlazor extensions platform where users can add their own projects, write documentation and find extensions made by others. - - - - - - - - You probably noticed this by now, but our landing page and docs have gotten a complete overhaul. There has been a lot of research and prototyping, but I am really happy about the final result. - - - - - - - - With this news we also launched our first developer survey, it takes about 3min to complete and will only be open during january. So make sure to check it out if you want to be part of the future and influence the roadmap for MudBlazor! - - - - - - - That's all for now but keep your eyes open for more news in the future and as always, stay muddy! - diff --git a/src/MudBlazor.Docs/NotificationContent/Announcement_v7_Started_Development.razor b/src/MudBlazor.Docs/NotificationContent/Announcement_v7_Started_Development.razor new file mode 100644 index 000000000000..b5acd45b2c57 --- /dev/null +++ b/src/MudBlazor.Docs/NotificationContent/Announcement_v7_Started_Development.razor @@ -0,0 +1,64 @@ + + + + MudBlazor version 7.0.0 is on its way and will bring many new features along with several breaking changes that were holding us back, and which we don't want to postpone any longer as we strive for more consistency and innovation. +
+
+ We're working hard to get the release ready; Keep an eye on our GitHub to stay up-to-date! + Pre-releases will be available there and on NuGet for testing. +
+
+
+ + + + + .NET 6 is no longer supported and .NET 7 is the new minimum version. + We recommend switching to .NET 8 LTS for the best experience. +
+
+ If you still need .NET 6 you can stay on the latest v6.x.x version which is still supported. + We will fix critical bugs or security issues, but new features will only come to version 7. +
+ Found a bug that you want backported to v6.x.x? Submit a pull request and we'll include it in an update. +
+
+
+ + + + + We've prepared a list of all the changes you need to be aware of when upgrading from v6.x.x. +
+
+ View the migration guide at this link. +
+
+
+ + + + + We always welcome contributions! +
+ We will try to merge all bugfix PRs and will deliberate the value of feature PRs for the community. +
+
+ Right now is a great time to get your change included as we are active in development and more flexible with what kind of changes are accepted. +
+
+ Check out our GitHub and the contribution guidelines to get started! +
+
+
+ + + + + We plan to release new major versions more frequently in the future with less breaking changes. +
+
+ Find more details on our plans in the roadmap. +
+
+
diff --git a/src/MudBlazor.Docs/Services/Notifications/InMemoryNotificationService.cs b/src/MudBlazor.Docs/Services/Notifications/InMemoryNotificationService.cs index 8572c570b9b6..b6cdb141f662 100644 --- a/src/MudBlazor.Docs/Services/Notifications/InMemoryNotificationService.cs +++ b/src/MudBlazor.Docs/Services/Notifications/InMemoryNotificationService.cs @@ -88,16 +88,15 @@ public Task AddNotification(NotificationMessage message) public void Preload() { _messages.Add(new NotificationMessage( - "mudblazor-here-to-stay", - "MudBlazor is here to stay", - "We are paving the way for the future of Blazor", + typeof(Announcement_v7_Started_Development).Name, + "v7 is Coming!", + "Learn about the upcoming major version", "Announcement", - new DateTime(2022, 01, 13), - "_content/MudBlazor.Docs/images/announcements/mudblazor_heretostay.png", - new[] - { - new NotificationAuthor("Jonny Larsson", - "https://avatars.githubusercontent.com/u/10367109?v=4") - }, typeof(Announcement_MudBlazorIsHereToStay))); + new DateTime(2024, 03, 28), + "https://github.com/MudBlazor/MudBlazor/blob/f979c2c84e3ddd5f01a20ebc1102838d32a4b01b/content/Nuget.png", + [ + new NotificationAuthor("The MudBlazor Team", + "https://mudblazor.com/_content/MudBlazor.Docs/images/logo.png") + ], typeof(Announcement_v7_Started_Development))); } } diff --git a/src/MudBlazor.Docs/Shared/AppbarButtons.razor b/src/MudBlazor.Docs/Shared/AppbarButtons.razor index eb5ae6367b37..7781061d0ae7 100644 --- a/src/MudBlazor.Docs/Shared/AppbarButtons.razor +++ b/src/MudBlazor.Docs/Shared/AppbarButtons.razor @@ -5,7 +5,7 @@ Notifications Mark as read - @if (_messages != null && _newNotificationsAvailable) + @if (_messages != null) { @foreach (var (message, isRead) in _messages.Take(5)) { From 8acb6c5af5f166c9fd3733ced315ed9e2f381364 Mon Sep 17 00:00:00 2001 From: Jon Person Date: Sun, 31 Mar 2024 17:42:01 -0600 Subject: [PATCH 35/50] Refactor: Use regular expression source generator (#8533) --- src/MudBlazor.Docs.Compiler/CodeSnippets.cs | 7 +++-- src/MudBlazor.Docs.Compiler/DocStrings.cs | 27 +++++++++++++---- src/MudBlazor.Docs.Compiler/ExamplesMarkup.cs | 30 +++++++++++++------ .../StringExtensions.cs | 7 +++-- .../XmlDocumentation.cs | 17 ++++++++--- .../Components/SectionContent.razor.cs | 15 ++++++++-- .../Extensions/StringExtensions.cs | 7 +++-- src/MudBlazor.Docs/Models/DocStrings.cs | 10 +++++-- src/MudBlazor.Docs/Models/XmlDocumentation.cs | 17 ++++++++--- .../Components/Mask/MudMask.razor.cs | 5 +++- .../TimePicker/MudTimePicker.razor.cs | 5 +++- .../Utilities/MaskAlgorithms/DateMask.cs | 7 +++-- 12 files changed, 116 insertions(+), 38 deletions(-) diff --git a/src/MudBlazor.Docs.Compiler/CodeSnippets.cs b/src/MudBlazor.Docs.Compiler/CodeSnippets.cs index cfad24d0d3db..7789f861cc23 100644 --- a/src/MudBlazor.Docs.Compiler/CodeSnippets.cs +++ b/src/MudBlazor.Docs.Compiler/CodeSnippets.cs @@ -6,7 +6,7 @@ namespace MudBlazor.Docs.Compiler { - public class CodeSnippets + public partial class CodeSnippets { public bool Execute() { @@ -61,8 +61,11 @@ public bool Execute() private static string EscapeComponentSource(string path) { var source = File.ReadAllText(path, Encoding.UTF8); - source = Regex.Replace(source, "@(namespace|layout|page) .+?\n", string.Empty); + source = NamespaceLayoutOrPageRegularExpression().Replace(source, string.Empty); return source.Replace("\"", "\"\"").Trim(); } + + [GeneratedRegex("@(namespace|layout|page) .+?\n")] + private static partial Regex NamespaceLayoutOrPageRegularExpression(); } } diff --git a/src/MudBlazor.Docs.Compiler/DocStrings.cs b/src/MudBlazor.Docs.Compiler/DocStrings.cs index 29c85da5a0a6..d7514a6f987d 100644 --- a/src/MudBlazor.Docs.Compiler/DocStrings.cs +++ b/src/MudBlazor.Docs.Compiler/DocStrings.cs @@ -6,7 +6,7 @@ using Microsoft.AspNetCore.Components; namespace MudBlazor.Docs.Compiler { - public class DocStrings + public partial class DocStrings { private static string[] hiddenMethods = { "ToString", "GetType", "GetHashCode", "Equals", "SetParametersAsync", "ReferenceEquals" }; @@ -38,7 +38,7 @@ public bool Execute() { var doc = property.GetDocumentation() ?? ""; doc = convertSeeTags(doc); - doc = Regex.Replace(doc, @"", ""); // remove all other XML tags + doc = XmlTagRegularExpression().Replace(doc, ""); // remove all other XML tags cb.AddLine($"public const string {GetSaveTypename(type)}_{property.Name} = @\"{EscapeDescription(doc).Trim()}\";\n"); } @@ -83,7 +83,7 @@ public bool Execute() return success; } - private static string GetSaveTypename(Type t) => Regex.Replace(t.ConvertToCSharpSource(), @"[\.,<>]", "_").TrimEnd('_'); + private static string GetSaveTypename(Type t) => SaveTypenameRegularExpression().Replace(t.ConvertToCSharpSource(), "_").TrimEnd('_'); /* Methods can be overloaded so the method name doesn't identify it uniquely. Instead of method name we need the method signature. * Currently the return type of a method is also used, but probably it can be removed. @@ -91,7 +91,7 @@ public bool Execute() * Alternatively we could use the format similar to this used in XML documentation - it will be even better because I think it is * less likely to be changed in the future. See XmlDocumentation.cs for a method computing identifiers. */ - private static string GetSaveMethodIdentifier(MethodInfo method) => Regex.Replace(method.ToString(), "[^A-Za-z0-9_]", "_"); + private static string GetSaveMethodIdentifier(MethodInfo method) => AlphanumericUnderscoreRegularExpression().Replace(method.ToString(), "_"); private static Type GetBaseDefinitionClass(MethodInfo m) => m.GetBaseDefinition().DeclaringType; @@ -100,10 +100,10 @@ public bool Execute() */ private static string convertSeeTags(string doc) { - return Regex.Replace(doc, "]+)\" */>", match => + return SeeCrefRegularExpression().Replace(doc, match => { string result = match.Groups[2].Value; // get the name of Type or type member (Field, Property, Method, or Event) - result = Regex.Replace(result, "`1", ""); // remove `1 from generic type name + result = BacktickRegularExpression().Replace(result, ""); // remove `1 from generic type name return result; }); } @@ -112,5 +112,20 @@ private static string EscapeDescription(string doc) { return doc.Replace("\"", "\"\""); } + + [GeneratedRegex(@"")] + private static partial Regex XmlTagRegularExpression(); + + [GeneratedRegex(@"[\.,<>]")] + private static partial Regex SaveTypenameRegularExpression(); + + [GeneratedRegex("[^A-Za-z0-9_]")] + private static partial Regex AlphanumericUnderscoreRegularExpression(); + + [GeneratedRegex("]+)\" */>")] + private static partial Regex SeeCrefRegularExpression(); + + [GeneratedRegex("`1")] + private static partial Regex BacktickRegularExpression(); } } diff --git a/src/MudBlazor.Docs.Compiler/ExamplesMarkup.cs b/src/MudBlazor.Docs.Compiler/ExamplesMarkup.cs index f744d97755e7..41a85136b534 100644 --- a/src/MudBlazor.Docs.Compiler/ExamplesMarkup.cs +++ b/src/MudBlazor.Docs.Compiler/ExamplesMarkup.cs @@ -6,7 +6,7 @@ namespace MudBlazor.Docs.Compiler { - public class ExamplesMarkup + public partial class ExamplesMarkup { public bool Execute() { @@ -50,7 +50,7 @@ public bool Execute() var src = StripComponentSource(entry.FullName); var blocks = src.Split("@code"); - var blocks0 = Regex.Replace(blocks[0], @"", string.Empty) + var blocks0 = DocsFrameEndTagRegularExpression().Replace(blocks[0], string.Empty) .Replace("@", "PlaceholdeR") .Trim(); @@ -110,16 +110,13 @@ public bool Execute() private static string StripComponentSource(string path) { var source = File.ReadAllText(path, Encoding.UTF8); - source = Regex.Replace(source, "@(namespace|layout|page) .+?\n", string.Empty); + source = NamespaceLayoutOrPageRegularExpression().Replace(source, string.Empty); return source.Trim(); } public static string AttributePostprocessing(string html) { - return Regex.Replace( - html, - @""(?'value'.*?)"", - new MatchEvaluator(m => + return HtmlAttributeValueSpanRegularExpression().Replace(html, new MatchEvaluator(m => { var value = m.Groups["value"].Value; return @@ -133,18 +130,33 @@ private static string AttributeValuePostprocessing(string value) return value; if (value is "true" or "false") return $"{value}"; - if (Regex.IsMatch(value, "^[A-Z][A-Za-z0-9]+[.][A-Za-z][A-Za-z0-9]+$")) + if (AlphanumericDotAlphanumericRegularExpression().IsMatch(value)) { var tokens = value.Split('.'); return $"{tokens[0]}.{tokens[1]}"; } - if (Regex.IsMatch(value, "^@[A-Za-z0-9]+$")) + if (AlphanumericRegularExpression().IsMatch(value)) { return $"{value}"; } return $"{value}"; } + + [GeneratedRegex(@"")] + private static partial Regex DocsFrameEndTagRegularExpression(); + + [GeneratedRegex("@(namespace|layout|page) .+?\n")] + private static partial Regex NamespaceLayoutOrPageRegularExpression(); + + [GeneratedRegex(@""(?'value'.*?)"")] + private static partial Regex HtmlAttributeValueSpanRegularExpression(); + + [GeneratedRegex("^[A-Z][A-Za-z0-9]+[.][A-Za-z][A-Za-z0-9]+$")] + private static partial Regex AlphanumericDotAlphanumericRegularExpression(); + + [GeneratedRegex("^@[A-Za-z0-9]+$")] + private static partial Regex AlphanumericRegularExpression(); } } diff --git a/src/MudBlazor.Docs.Compiler/StringExtensions.cs b/src/MudBlazor.Docs.Compiler/StringExtensions.cs index 7aea9f5cedd4..56907747c42d 100644 --- a/src/MudBlazor.Docs.Compiler/StringExtensions.cs +++ b/src/MudBlazor.Docs.Compiler/StringExtensions.cs @@ -2,14 +2,17 @@ namespace MudBlazor.Docs.Compiler { - public static class StringExtensions + public static partial class StringExtensions { public static string ToLfLineEndings(this string self) { if (self == null) return null; - return Regex.Replace(self, @"\r?\n", "\n"); + return NewLineRegularExpression().Replace(self, "\n"); } + + [GeneratedRegex(@"\r?\n")] + private static partial Regex NewLineRegularExpression(); } } diff --git a/src/MudBlazor.Docs.Compiler/XmlDocumentation.cs b/src/MudBlazor.Docs.Compiler/XmlDocumentation.cs index c3d2f85457fd..0b4063faee31 100644 --- a/src/MudBlazor.Docs.Compiler/XmlDocumentation.cs +++ b/src/MudBlazor.Docs.Compiler/XmlDocumentation.cs @@ -13,7 +13,7 @@ namespace MudBlazor.Docs.Compiler { - public static class XmlDocumentation + public static partial class XmlDocumentation { #region System.Reflection.Assembly @@ -208,7 +208,7 @@ string ConvertToCsharpSource(Type type) var result = type.IsNested ? ConvertToCsharpSource(type.DeclaringType) + "." : ""; //: type.Namespace + "."; - result += Regex.Replace(type.Name, "`.*", string.Empty); + result += BacktickRegularExpression().Replace(type.Name, string.Empty); if (type.IsGenericType) { result += "<"; @@ -440,7 +440,7 @@ public static string GetXmlDocumentationFormattedString( : type.Namespace + "."; string typeNameString = isMethodParameter - ? typeNameString = Regex.Replace(type.Name, @"`\d+", string.Empty) + ? typeNameString = TypeNameRegularExpression().Replace(type.Name, string.Empty) : typeNameString = type.Name; var genericArgumentsString = type.IsGenericType && isMethodParameter @@ -498,7 +498,7 @@ public static string GetDocumentation(this EventInfo eventInfo) public static string XmlDocumentationKeyHelper(string typeFullNameString, string memberNameString) { - var key = Regex.Replace(typeFullNameString, @"\[.*\]", string.Empty).Replace('+', '.'); + var key = DocumentationKeyRegularExpression().Replace(typeFullNameString, string.Empty).Replace('+', '.'); if (!(memberNameString is null)) { key += "." + memberNameString; @@ -578,6 +578,15 @@ public static string GetDocumentation(this ParameterInfo parameterInfo) return null; } + [GeneratedRegex("`.*")] + private static partial Regex BacktickRegularExpression(); + + [GeneratedRegex(@"`\d+")] + private static partial Regex TypeNameRegularExpression(); + + [GeneratedRegex(@"\[.*\]")] + private static partial Regex DocumentationKeyRegularExpression(); + #endregion } diff --git a/src/MudBlazor.Docs/Components/SectionContent.razor.cs b/src/MudBlazor.Docs/Components/SectionContent.razor.cs index fa1e812fe344..b075fbbb3247 100644 --- a/src/MudBlazor.Docs/Components/SectionContent.razor.cs +++ b/src/MudBlazor.Docs/Components/SectionContent.razor.cs @@ -164,7 +164,7 @@ protected virtual async void RunOnTryMudBlazor() // Add dialogs for dialog examples if (firstFile.StartsWith("Dialog")) { - var regex = new Regex(@"\Show<(Dialog.*?_Dialog)\>"); + var regex = ShowDialogRegularExpression(); var dialogCodeName = regex.Match(codeFiles).Groups[1].Value; if (dialogCodeName != string.Empty) { @@ -176,13 +176,13 @@ protected virtual async void RunOnTryMudBlazor() // Data models if (codeFiles.Contains("MudBlazor.Examples.Data.Models")) { - if (Regex.Match(codeFiles, @"\bElement\b").Success) + if (ElementRegularExpression().Match(codeFiles).Success) { var elementCodeFile = "Element.cs" + (char)31 + Snippets.GetCode("Element"); codeFiles = codeFiles + (char)31 + elementCodeFile; } - if (Regex.Match(codeFiles, @"\bServer\b").Success) + if (ServerRegularExpression().Match(codeFiles).Success) { var serverCodeFile = "Server.cs" + (char)31 + Snippets.GetCode("Server"); codeFiles = codeFiles + (char)31 + serverCodeFile; @@ -195,4 +195,13 @@ protected virtual async void RunOnTryMudBlazor() var url = $"{tryMudBlazorLocation}snippet/{codeFileEncoded}"; await JsApiService.OpenInNewTabAsync(url); } + + [GeneratedRegex(@"\Show<(Dialog.*?_Dialog)\>")] + private static partial Regex ShowDialogRegularExpression(); + + [GeneratedRegex(@"\bElement\b")] + private static partial Regex ElementRegularExpression(); + + [GeneratedRegex(@"\bServer\b")] + private static partial Regex ServerRegularExpression(); } diff --git a/src/MudBlazor.Docs/Extensions/StringExtensions.cs b/src/MudBlazor.Docs/Extensions/StringExtensions.cs index 8ffc59795f13..353eb7cb03d4 100644 --- a/src/MudBlazor.Docs/Extensions/StringExtensions.cs +++ b/src/MudBlazor.Docs/Extensions/StringExtensions.cs @@ -7,7 +7,7 @@ namespace MudBlazor.Docs.Extensions { - public static class StringExtensions + public static partial class StringExtensions { public static string ToKebabCase(this string source) { @@ -54,7 +54,7 @@ public static string ToPascalCase(this string source) return null; if (source.Length == 0) return string.Empty; - var tokens = Regex.Split(source, @"[-_ ]"); + var tokens = TokenRegularExpression().Split(source); return string.Join("", tokens.Select(x => x.Capitalize())); } @@ -86,5 +86,8 @@ public static string ToCompressedEncodedUrl(this string code) return urlEncodedBase64compressedCode; } } + + [GeneratedRegex(@"[-_ ]")] + private static partial Regex TokenRegularExpression(); } } diff --git a/src/MudBlazor.Docs/Models/DocStrings.cs b/src/MudBlazor.Docs/Models/DocStrings.cs index 026f6582e0d4..6169c13fa862 100644 --- a/src/MudBlazor.Docs/Models/DocStrings.cs +++ b/src/MudBlazor.Docs/Models/DocStrings.cs @@ -28,8 +28,14 @@ public static string GetMemberDescription(string saveTypename, MemberInfo member return (string)field.GetValue(null); } - public static string GetSaveTypename(Type t) => Regex.Replace(t.ConvertToCSharpSource(), @"[\.]", "_").Replace("", "").TrimEnd('_'); + public static string GetSaveTypename(Type t) => LetterDigitOrUnderscoreRegularExpression().Replace(t.ConvertToCSharpSource(), "_").Replace("", "").TrimEnd('_'); - private static string GetSaveMethodIdentifier(MethodInfo method) => Regex.Replace(method.ToString().Replace("MudBlazor.Docs.Models.T", "T"), "[^A-Za-z0-9_]", "_"); // method signature + private static string GetSaveMethodIdentifier(MethodInfo method) => LetterDigitOrUnderscoreRegularExpression().Replace(method.ToString().Replace("MudBlazor.Docs.Models.T", "T"), "_"); // method signature + + [GeneratedRegex("[^A-Za-z0-9_]")] + private static partial Regex LetterDigitOrUnderscoreRegularExpression(); + + [GeneratedRegex(@"[\.]")] + private static partial Regex PeriodRegularExpression(); } } diff --git a/src/MudBlazor.Docs/Models/XmlDocumentation.cs b/src/MudBlazor.Docs/Models/XmlDocumentation.cs index 3a031a65a21a..19aa77eec71f 100644 --- a/src/MudBlazor.Docs/Models/XmlDocumentation.cs +++ b/src/MudBlazor.Docs/Models/XmlDocumentation.cs @@ -13,7 +13,7 @@ namespace MudBlazor.Docs.Models { - public static class XmlDocumentation + public static partial class XmlDocumentation { #region System.Reflection.Assembly @@ -208,7 +208,7 @@ string ConvertToCsharpSource(Type type) var result = type.IsNested ? ConvertToCsharpSource(type.DeclaringType) + "." : ""; //: type.Namespace + "."; - result += Regex.Replace(type.Name, "`.*", string.Empty); + result += BacktickRegularExpression().Replace(type.Name, string.Empty); if (type.IsGenericType) { result += "<"; @@ -451,7 +451,7 @@ public static string GetXmlDocumentationFormattedString( : type.Namespace + "."; string typeNameString = isMethodParameter - ? typeNameString = Regex.Replace(type.Name, @"`\d+", string.Empty) + ? typeNameString = TypeNameRegularExpression().Replace(type.Name, string.Empty) : typeNameString = type.Name; var genericArgumentsString = type.IsGenericType && isMethodParameter @@ -507,7 +507,7 @@ public static string GetDocumentation(this EventInfo eventInfo) public static string XmlDocumentationKeyHelper(string typeFullNameString, string memberNameString) { - var key = Regex.Replace(typeFullNameString, @"\[.*\]", string.Empty).Replace('+', '.'); + var key = DocumentationKeyRegularExpression().Replace(typeFullNameString, string.Empty).Replace('+', '.'); if (!(memberNameString is null)) { key += "." + memberNameString; @@ -587,6 +587,15 @@ public static string GetDocumentation(this ParameterInfo parameterInfo) return null; } + [GeneratedRegex("`.*")] + private static partial Regex BacktickRegularExpression(); + + [GeneratedRegex(@"`\d+")] + private static partial Regex TypeNameRegularExpression(); + + [GeneratedRegex(@"\[.*\]")] + private static partial Regex DocumentationKeyRegularExpression(); + #endregion } diff --git a/src/MudBlazor/Components/Mask/MudMask.razor.cs b/src/MudBlazor/Components/Mask/MudMask.razor.cs index 0d09b1afc840..9cd2cd1e7111 100644 --- a/src/MudBlazor/Components/Mask/MudMask.razor.cs +++ b/src/MudBlazor/Components/Mask/MudMask.razor.cs @@ -214,7 +214,7 @@ protected internal async Task HandleKeyDown(KeyboardEventArgs e) return; } - if (Regex.IsMatch(e.Key, @"^.$")) + if (ValidCharacterRegularExpression().IsMatch(e.Key)) { Mask.Insert(e.Key); await Update(); @@ -447,5 +447,8 @@ protected override void Dispose(bool disposing) } } } + + [GeneratedRegex(@"^.$")] + private static partial Regex ValidCharacterRegularExpression(); } } diff --git a/src/MudBlazor/Components/TimePicker/MudTimePicker.razor.cs b/src/MudBlazor/Components/TimePicker/MudTimePicker.razor.cs index 27ddd9b53e34..5d5b30c5943f 100644 --- a/src/MudBlazor/Components/TimePicker/MudTimePicker.razor.cs +++ b/src/MudBlazor/Components/TimePicker/MudTimePicker.razor.cs @@ -43,7 +43,7 @@ private string OnSet(TimeSpan? timespan) return time.TimeOfDay; } - var m = Regex.Match(value, "AM|PM", RegexOptions.IgnoreCase); + var m = AmPmRegularExpression().Match(value); if (m.Success) { if (DateTime.TryParseExact(value, format12Hours, CultureInfo.InvariantCulture, DateTimeStyles.None, @@ -738,5 +738,8 @@ private class SetTime public int Minute { get; set; } } + + [GeneratedRegex("AM|PM", RegexOptions.IgnoreCase | RegexOptions.CultureInvariant)] + private static partial Regex AmPmRegularExpression(); } } diff --git a/src/MudBlazor/Utilities/MaskAlgorithms/DateMask.cs b/src/MudBlazor/Utilities/MaskAlgorithms/DateMask.cs index b0a8c042cfd4..8c052166f1f3 100644 --- a/src/MudBlazor/Utilities/MaskAlgorithms/DateMask.cs +++ b/src/MudBlazor/Utilities/MaskAlgorithms/DateMask.cs @@ -13,7 +13,7 @@ namespace MudBlazor; -public class DateMask : PatternMask +public partial class DateMask : PatternMask { public DateMask(string mask, char year = 'y', char month = 'M', char day = 'd') : base(mask) @@ -213,7 +213,7 @@ private int GetDaysInMonth(int year, int month) if (index < 0 || index >= alignedText.Length) return (null, -1); var subString = alignedText.Substring(index, Math.Min(maskPart.Length, alignedText.Length - index)); - if (!Regex.IsMatch(subString, @"^\d+$")) + if (!ValidDigitRegularExpression().IsMatch(subString)) return (null, -1); return (subString, index); } @@ -228,5 +228,8 @@ public override void UpdateFrom(IMask other) _M = o._M; _d = o._d; } + + [GeneratedRegex(@"^\d+$")] + private static partial Regex ValidDigitRegularExpression(); } From 0fe4f810cdd07473901d170d1265b45467b0afe3 Mon Sep 17 00:00:00 2001 From: Anu6is Date: Mon, 1 Apr 2024 08:15:39 -0400 Subject: [PATCH 36/50] DateRangePicker: Fix tests - update selected range to use future dates (#8543) --- .../DateRangePickerPresetRangeWithTimestampTest.razor | 2 +- .../DatePicker/DateRangePickerPresetWithoutTimestampTest.razor | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/DateRangePickerPresetRangeWithTimestampTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/DateRangePickerPresetRangeWithTimestampTest.razor index 8d0b62985c2b..1d6b057dc044 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/DateRangePickerPresetRangeWithTimestampTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/DateRangePickerPresetRangeWithTimestampTest.razor @@ -9,7 +9,7 @@ protected override Task OnInitializedAsync() { - DateTimeRange = new DateRange(DateTime.Now.AddDays(-7), DateTime.Now); + DateTimeRange = new DateRange(DateTime.Now.AddDays(1), DateTime.Now.AddDays(5)); return base.OnInitializedAsync(); } diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/DateRangePickerPresetWithoutTimestampTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/DateRangePickerPresetWithoutTimestampTest.razor index 44ab3a2406fb..ee52a228581b 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/DateRangePickerPresetWithoutTimestampTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/DatePicker/DateRangePickerPresetWithoutTimestampTest.razor @@ -9,7 +9,7 @@ protected override Task OnInitializedAsync() { - DateRange = new DateRange(DateTime.Now.AddDays(-7).Date, DateTime.Now.Date); + DateRange = new DateRange(DateTime.Now.AddDays(1).Date, DateTime.Now.AddDays(5).Date); return base.OnInitializedAsync(); } From 605bf922cfdc3da3b24586c57a9d6ff6b9180abd Mon Sep 17 00:00:00 2001 From: peterthorpe81 Date: Mon, 1 Apr 2024 13:22:42 +0100 Subject: [PATCH 37/50] MudDataGrid: Fix grouping for bound and unbound scenarios using ParameterState (#8463) Co-authored-by: Peter Thorpe --- .../DataGridColumnsPanelExample.razor | 37 +++++++---- .../DataGrid/DataGridColumnGroupingTest.razor | 24 +++++-- .../Components/DataGridTests.cs | 62 +++++++++++++++++++ .../Components/DataGrid/Column.razor.cs | 26 ++++---- .../Components/DataGrid/HeaderCell.razor | 2 +- .../Components/DataGrid/MudDataGrid.razor | 2 +- .../Components/DataGrid/MudDataGrid.razor.cs | 2 +- 7 files changed, 121 insertions(+), 34 deletions(-) diff --git a/src/MudBlazor.Docs/Pages/Components/DataGrid/Examples/DataGridColumnsPanelExample.razor b/src/MudBlazor.Docs/Pages/Components/DataGrid/Examples/DataGridColumnsPanelExample.razor index 4edbb06aad18..4363b75ea13f 100644 --- a/src/MudBlazor.Docs/Pages/Components/DataGrid/Examples/DataGridColumnsPanelExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/DataGrid/Examples/DataGridColumnsPanelExample.razor @@ -3,16 +3,16 @@ @namespace MudBlazor.Docs.Examples @inject HttpClient httpClient - + @@ -23,11 +23,24 @@
Drag Drop Column Reordering Columns Panel Column Reordering - Hideable Filterable - Groupable +
+ +
+ Hideable Molar Mass Visible - Category Visible + Category Visible +
+ +
+ Show All Columns + Hide All Columns +
+ +
+ Groupable + Group By Molar + Group By Category
@@ -38,10 +51,6 @@
-
- Show All Columns - Hide All Columns -
@code { private IEnumerable _elements = new List(); @@ -53,7 +62,9 @@ private bool _filterable = true; private bool _groupable = true; private bool _hideMolar = false; - private bool _hideGroup = false; + private bool _hideCategory = false; + private bool _groupMolar = false; + private bool _groupCategory = false; public MudDataGrid grid = null; private MudBlazor.Converter _oppositeBoolConverter = new() diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/DataGrid/DataGridColumnGroupingTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/DataGrid/DataGridColumnGroupingTest.razor index ef8420beb8ce..d088175fbf2e 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/DataGrid/DataGridColumnGroupingTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/DataGrid/DataGridColumnGroupingTest.razor @@ -4,22 +4,36 @@ - - + + +Group By Gender +Group By Age @code { - public bool IsGenderGrouped { get; set; } = false; + public bool IsGenderGrouped { get; set; } + public bool IsAgeGrouped { get; set; } - private List _items = new List() + public List _items = new List() { new Model("John", 45, "Male"), new Model("Johanna", 23, "Female"), - new Model("Steve", 32, "Male") + new Model("Steve", 32, "Male"), + new Model("Alice", 32, "Female") }; public record Model(string Name, int Age, string Gender); + + void GroupByGender(MouseEventArgs args) + { + IsGenderGrouped = true; + } + + void GroupByAge(MouseEventArgs args) + { + IsAgeGrouped = true; + } } diff --git a/src/MudBlazor.UnitTests/Components/DataGridTests.cs b/src/MudBlazor.UnitTests/Components/DataGridTests.cs index 607db5fa3e63..1ac8fe9064d5 100644 --- a/src/MudBlazor.UnitTests/Components/DataGridTests.cs +++ b/src/MudBlazor.UnitTests/Components/DataGridTests.cs @@ -3408,5 +3408,67 @@ public async Task DataGridDynamicColumnsTest() comp.Instance.GridRenderedColumnsCount.Should().Be(0); } + + [Test] + public async Task DataGridGroupingTestBoundAndUnboundScenarios() + { + var comp = Context.RenderComponent(); + var dataGrid = comp.FindComponent>(); + var popoverProvider = comp.FindComponent(); + + // Assert that initially, before any user interaction, IsGenderGrouped and IsAgeGrouped should be false + comp.Instance.IsGenderGrouped.Should().Be(false); + comp.Instance.IsAgeGrouped.Should().Be(false); + + var ageGrouping = comp.Find(".GroupByAge"); + ageGrouping.Click(); + comp.Instance.IsAgeGrouped.Should().Be(true); + comp.Instance.IsGenderGrouped.Should().Be(false); + var rows = dataGrid.FindAll("tr"); + rows.Count.Should().Be(5, because: "1 header row + 3 data rows + 1 footer row"); + + var genderGrouping = comp.Find(".GroupByGender"); + genderGrouping.Click(); + comp.Instance.IsGenderGrouped.Should().Be(true); + comp.Instance.IsAgeGrouped.Should().Be(true, because: "Age is not bound"); + rows = dataGrid.FindAll("tr"); + rows.Count.Should().Be(4, because: "1 header row + 2 data rows + 1 footer row"); + + //click age grouping in grid + var headerOption = comp.Find("th.age .mud-menu button"); + headerOption.Click(); + var listItems = popoverProvider.FindComponents(); + listItems.Count.Should().Be(2); + var clickablePopover = listItems[1].Find(".mud-list-item"); + clickablePopover.Click(); + comp.Instance.IsAgeGrouped.Should().Be(true); + comp.Instance.IsGenderGrouped.Should().Be(false); + rows = dataGrid.FindAll("tr"); + rows.Count.Should().Be(5, because: "1 header row + 3 data rows + 1 footer row"); + + //click gender grouping in grid + headerOption = comp.Find("th.gender .mud-menu button"); + headerOption.Click(); + listItems = popoverProvider.FindComponents(); + listItems.Count.Should().Be(2); + clickablePopover = listItems[1].Find(".mud-list-item"); + clickablePopover.Click(); + comp.Instance.IsGenderGrouped.Should().Be(true); + comp.Instance.IsAgeGrouped.Should().Be(true, because: "Age is not bound"); + rows = dataGrid.FindAll("tr"); + rows.Count.Should().Be(4, because: "1 header row + 2 data rows + 1 footer row"); + + //click Name grouping in grid + headerOption = comp.Find("th.name .mud-menu button"); + headerOption.Click(); + listItems = popoverProvider.FindComponents(); + listItems.Count.Should().Be(2); + clickablePopover = listItems[1].Find(".mud-list-item"); + clickablePopover.Click(); + comp.Instance.IsGenderGrouped.Should().Be(false); + comp.Instance.IsAgeGrouped.Should().Be(true, because: "Age is not bound"); + rows = dataGrid.FindAll("tr"); + rows.Count.Should().Be(6, because: "1 header row + 4 data rows + 1 footer row"); + } } } diff --git a/src/MudBlazor/Components/DataGrid/Column.razor.cs b/src/MudBlazor/Components/DataGrid/Column.razor.cs index 1d62038fcd37..a21dcbd60906 100644 --- a/src/MudBlazor/Components/DataGrid/Column.razor.cs +++ b/src/MudBlazor/Components/DataGrid/Column.razor.cs @@ -19,6 +19,7 @@ public abstract partial class Column : MudComponentBase, IDisposable { private static readonly RenderFragment> EmptyChildContent = _ => builder => { }; internal IParameterState HiddenState { get; } + internal IParameterState GroupingState { get; } internal readonly Guid uid = Guid.NewGuid(); @@ -186,8 +187,6 @@ public CultureInfo Culture .AddClass(Class) .Build(); - internal bool grouping; - #region Computed Properties internal Type dataType @@ -272,6 +271,13 @@ public FilterContext FilterContext protected Column() { HiddenState = RegisterParameter(nameof(Hidden), () => Hidden, () => HiddenChanged); + GroupingState = RegisterParameter(nameof(Grouping), () => Grouping, () => GroupingChanged, GroupingParameterChangedAsync); + } + + private async Task GroupingParameterChangedAsync() + { + if (GroupingState.Value) + await DataGrid?.ChangedGrouping(this); } protected override void OnInitialized() @@ -279,9 +285,6 @@ protected override void OnInitialized() base.OnInitialized(); groupBy = GroupBy; - if (groupable && Grouping) - grouping = Grouping; - if (DataGrid != null) DataGrid.AddColumn(this); @@ -345,12 +348,10 @@ internal void CompileGroupBy() // Allows child components to change column grouping. internal async Task SetGrouping(bool g) { - if (groupable) - { - grouping = g; + await GroupingState.SetValueAsync(g); + + if (GroupingState.Value) await DataGrid?.ChangedGrouping(this); - await GroupingChanged.InvokeAsync(grouping); - } } /// @@ -358,10 +359,9 @@ internal async Task SetGrouping(bool g) /// internal async Task RemoveGrouping() { - if (grouping) + if (GroupingState.Value) { - grouping = false; - await GroupingChanged.InvokeAsync(grouping); + await GroupingState.SetValueAsync(false); } } diff --git a/src/MudBlazor/Components/DataGrid/HeaderCell.razor b/src/MudBlazor/Components/DataGrid/HeaderCell.razor index 3d6d59612397..0e80977c8ae3 100644 --- a/src/MudBlazor/Components/DataGrid/HeaderCell.razor +++ b/src/MudBlazor/Components/DataGrid/HeaderCell.razor @@ -113,7 +113,7 @@ else if (Column != null && !Column.HiddenState.Value) } @if (groupable) { - if (Column?.grouping ?? false) + if (Column?.GroupingState.Value ?? false) { @Localizer["MudDataGrid.Ungroup"] } diff --git a/src/MudBlazor/Components/DataGrid/MudDataGrid.razor b/src/MudBlazor/Components/DataGrid/MudDataGrid.razor index a083dfc865bb..914377f8b28e 100644 --- a/src/MudBlazor/Components/DataGrid/MudDataGrid.razor +++ b/src/MudBlazor/Components/DataGrid/MudDataGrid.razor @@ -109,7 +109,7 @@ } - @if (context?.grouping ?? false) + @if (context?.GroupingState.Value ?? false) { } diff --git a/src/MudBlazor/Components/DataGrid/MudDataGrid.razor.cs b/src/MudBlazor/Components/DataGrid/MudDataGrid.razor.cs index d14f0231b490..6f47aa81e575 100644 --- a/src/MudBlazor/Components/DataGrid/MudDataGrid.razor.cs +++ b/src/MudBlazor/Components/DataGrid/MudDataGrid.razor.cs @@ -827,7 +827,7 @@ internal Column GroupedColumn { get { - return RenderedColumns.FirstOrDefault(x => x.grouping); + return RenderedColumns.FirstOrDefault(x => x.GroupingState.Value); } } From f38699a072bfe7dd7b77df99f3af8975d8172665 Mon Sep 17 00:00:00 2001 From: Artyom M Date: Mon, 1 Apr 2024 18:21:53 +0300 Subject: [PATCH 38/50] Docs: Fix Regex (#8544) --- src/MudBlazor.Docs/Models/DocStrings.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MudBlazor.Docs/Models/DocStrings.cs b/src/MudBlazor.Docs/Models/DocStrings.cs index 6169c13fa862..77625b560d31 100644 --- a/src/MudBlazor.Docs/Models/DocStrings.cs +++ b/src/MudBlazor.Docs/Models/DocStrings.cs @@ -28,14 +28,14 @@ public static string GetMemberDescription(string saveTypename, MemberInfo member return (string)field.GetValue(null); } - public static string GetSaveTypename(Type t) => LetterDigitOrUnderscoreRegularExpression().Replace(t.ConvertToCSharpSource(), "_").Replace("", "").TrimEnd('_'); + public static string GetSaveTypename(Type t) => PeriodRegularExpression().Replace(t.ConvertToCSharpSource(), "_").Replace("", "").TrimEnd('_'); private static string GetSaveMethodIdentifier(MethodInfo method) => LetterDigitOrUnderscoreRegularExpression().Replace(method.ToString().Replace("MudBlazor.Docs.Models.T", "T"), "_"); // method signature - [GeneratedRegex("[^A-Za-z0-9_]")] - private static partial Regex LetterDigitOrUnderscoreRegularExpression(); - [GeneratedRegex(@"[\.]")] private static partial Regex PeriodRegularExpression(); + + [GeneratedRegex("[^A-Za-z0-9_]")] + private static partial Regex LetterDigitOrUnderscoreRegularExpression(); } } From 2d427e16776aeb947995b780d6e46b2dff343e60 Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Mon, 1 Apr 2024 10:25:05 -0500 Subject: [PATCH 39/50] Remove obsolete Extensions, Services, Utilities (#8531) Co-authored-by: Mike Surcouf --- .../Mocks/MockBrowserWindowSizeProvider.cs | 15 -- .../Extensions/ServiceCollectionExtensions.cs | 140 +---------------- src/MudBlazor/Extensions/TaskExtensions.cs | 28 ++-- .../Services/BrowserWindowSizeProvider.cs | 38 ----- .../BindingConverters/NumericConverter.cs | 19 --- src/MudBlazor/Utilities/ColorManager.cs | 113 -------------- .../Utilities/ColorTransformation.cs | 144 ------------------ 7 files changed, 16 insertions(+), 481 deletions(-) delete mode 100644 src/MudBlazor.UnitTests/Mocks/MockBrowserWindowSizeProvider.cs delete mode 100644 src/MudBlazor/Services/BrowserWindowSizeProvider.cs delete mode 100644 src/MudBlazor/Utilities/ColorManager.cs delete mode 100644 src/MudBlazor/Utilities/ColorTransformation.cs diff --git a/src/MudBlazor.UnitTests/Mocks/MockBrowserWindowSizeProvider.cs b/src/MudBlazor.UnitTests/Mocks/MockBrowserWindowSizeProvider.cs deleted file mode 100644 index c692efd694bc..000000000000 --- a/src/MudBlazor.UnitTests/Mocks/MockBrowserWindowSizeProvider.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Threading.Tasks; -using MudBlazor.Services; - -namespace MudBlazor.UnitTests.Mocks -{ - [Obsolete("Replaced by IBrowserViewportService. Remove in v7.")] - public class MockBrowserWindowSizeProvider : IBrowserWindowSizeProvider - { - public ValueTask GetBrowserWindowSize() - { - return new ValueTask(new BrowserWindowSize()); - } - } -} diff --git a/src/MudBlazor/Extensions/ServiceCollectionExtensions.cs b/src/MudBlazor/Extensions/ServiceCollectionExtensions.cs index 4b2aebedc07b..384653cfcf6f 100644 --- a/src/MudBlazor/Extensions/ServiceCollectionExtensions.cs +++ b/src/MudBlazor/Extensions/ServiceCollectionExtensions.cs @@ -1,4 +1,8 @@ -using System; +// Copyright (c) MudBlazor 2021 +// MudBlazor licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Diagnostics.CodeAnalysis; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; @@ -21,35 +25,6 @@ public static IServiceCollection AddMudBlazorDialog(this IServiceCollection serv return services; } - /// - /// Adds a Snackbar Service as a Scoped instance. - /// - /// IServiceCollection - /// Defines SnackbarConfiguration for this instance. - /// Continues the IServiceCollection chain. - [Obsolete("Use overload with Action. This will be removed in v7.")] - public static IServiceCollection AddMudBlazorSnackbar(this IServiceCollection services, SnackbarConfiguration options) - { - services.AddMudBlazorSnackbar(snackBarConfiguration => - { - snackBarConfiguration.ClearAfterNavigation = options.ClearAfterNavigation; - snackBarConfiguration.MaxDisplayedSnackbars = options.MaxDisplayedSnackbars; - snackBarConfiguration.NewestOnTop = options.NewestOnTop; - snackBarConfiguration.PositionClass = options.PositionClass; - snackBarConfiguration.PreventDuplicates = options.PreventDuplicates; - snackBarConfiguration.MaximumOpacity = options.MaximumOpacity; - snackBarConfiguration.ShowTransitionDuration = options.ShowTransitionDuration; - snackBarConfiguration.VisibleStateDuration = options.VisibleStateDuration; - snackBarConfiguration.HideTransitionDuration = options.HideTransitionDuration; - snackBarConfiguration.ShowCloseIcon = options.ShowCloseIcon; - snackBarConfiguration.RequireInteraction = options.RequireInteraction; - snackBarConfiguration.BackgroundBlurred = options.BackgroundBlurred; - snackBarConfiguration.SnackbarVariant = options.SnackbarVariant; - }); - - return services; - } - /// /// Adds a Snackbar Service as a Scoped instance. /// @@ -76,27 +51,6 @@ public static IServiceCollection AddMudBlazorSnackbar(this IServiceCollection se return services; } - /// - /// Adds a ResizeListener as a Scoped instance. - /// - /// IServiceCollection - /// Defines ResizeOptions for this instance - /// Continues the IServiceCollection chain. - [Obsolete("Use overload with Action. This will be removed in v7.")] - public static IServiceCollection AddMudBlazorResizeListener(this IServiceCollection services, ResizeOptions options) - { - services.AddMudBlazorResizeListener(resizeOptions => - { - resizeOptions.BreakpointDefinitions = options.BreakpointDefinitions; - resizeOptions.EnableLogging = options.EnableLogging; - resizeOptions.NotifyOnBreakpointOnly = options.NotifyOnBreakpointOnly; - resizeOptions.ReportRate = options.ReportRate; - resizeOptions.SuppressInitEvent = options.SuppressInitEvent; - }); - - return services; - } - /// /// Adds a ResizeListener as a Scoped instance. /// @@ -149,24 +103,6 @@ public static IServiceCollection AddMudBlazorResizeObserver(this IServiceCollect return services; } - /// - /// Adds a IResizeObserver as a Transient instance. - /// - /// IServiceCollection - /// Defines ResizeObserverOptions for this instance - /// Continues the IServiceCollection chain. - [Obsolete("Use overload with Action. This will be removed in v7.")] - public static IServiceCollection AddMudBlazorResizeObserver(this IServiceCollection services, ResizeObserverOptions options) - { - services.AddMudBlazorResizeObserver(observerOptions => - { - observerOptions.EnableLogging = options.EnableLogging; - observerOptions.ReportRate = options.ReportRate; - }); - - return services; - } - /// /// Adds a IResizeObserverFactory as a scoped dependency. /// @@ -193,24 +129,6 @@ public static IServiceCollection AddMudBlazorResizeObserverFactory(this IService return services; } - /// - /// Adds a IResizeObserverFactory as a scoped dependency. - /// - /// IServiceCollection - /// Defines ResizeObserverOptions for this instance - /// Continues the IServiceCollection chain. - [Obsolete("Use overload with Action. This will be removed in v7.")] - public static IServiceCollection AddMudBlazorResizeObserverFactory(this IServiceCollection services, ResizeObserverOptions options) - { - services.AddMudBlazorResizeObserverFactory(observerOptions => - { - observerOptions.EnableLogging = options.EnableLogging; - observerOptions.ReportRate = options.ReportRate; - }); - - return services; - } - /// /// Adds IKeyInterceptor as a Transient instance. /// @@ -276,28 +194,6 @@ public static IServiceCollection AddMudPopoverService(this IServiceCollection se return services; } - /// - /// Adds ScrollManager as a transient instance. - /// - /// IServiceCollection - /// Defines PopoverOptions for the application/user - [Obsolete("Use overload with Action. This will be removed in v7.")] - public static IServiceCollection AddMudPopoverService(this IServiceCollection services, PopoverOptions options) - { - services.AddMudPopoverService(popoverOptions => - { - popoverOptions.ContainerClass = options.ContainerClass; - popoverOptions.FlipMargin = options.FlipMargin; - popoverOptions.QueueDelay = options.QueueDelay; - popoverOptions.ThrowOnDuplicateProvider = options.ThrowOnDuplicateProvider; - popoverOptions.Mode = options.Mode; - popoverOptions.PoolSize = options.PoolSize; - popoverOptions.PoolInitialFill = options.PoolInitialFill; - }); - - return services; - } - /// /// Adds ScrollListener as a transient instance. /// @@ -384,32 +280,6 @@ public static IServiceCollection AddMudLocalization(this IServiceCollection serv return services; } - /// - /// Adds common services required by MudBlazor components - /// - /// IServiceCollection - /// Defines options for all MudBlazor services. - /// Continues the IServiceCollection chain. - [Obsolete("Use overload with Action. This will be removed in v7.")] - public static IServiceCollection AddMudServices(this IServiceCollection services, MudServicesConfiguration configuration) - { - return services - .AddMudBlazorDialog() - .AddMudBlazorSnackbar(configuration.SnackbarConfiguration) - .AddMudBlazorResizeListener(configuration.ResizeOptions) - .AddMudBlazorResizeObserver(configuration.ResizeObserverOptions) - .AddMudBlazorResizeObserverFactory() - .AddMudBlazorKeyInterceptor() - .AddMudBlazorJsEvent() - .AddMudBlazorScrollManager() - .AddMudBlazorScrollListener() - .AddMudBlazorJsApi() - .AddMudBlazorScrollSpy() - .AddMudPopoverService(configuration.PopoverOptions) - .AddMudEventManager() - .AddMudLocalization(); - } - /// /// Adds common services required by MudBlazor components /// diff --git a/src/MudBlazor/Extensions/TaskExtensions.cs b/src/MudBlazor/Extensions/TaskExtensions.cs index 2c67ebaebce1..c694b40b7c4d 100644 --- a/src/MudBlazor/Extensions/TaskExtensions.cs +++ b/src/MudBlazor/Extensions/TaskExtensions.cs @@ -1,22 +1,16 @@ -using System; +// Copyright (c) MudBlazor 2021 +// MudBlazor licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using System.Threading.Tasks; namespace MudBlazor { #nullable enable #pragma warning disable CS1998 - [Obsolete("This will be removed in v7.")] - public enum TaskOption - { - None, - Safe - } - public static class TaskExtensions { - [Obsolete("Use the bool parameter version. This will be removed in v7.")] - public static void AndForget(this Task task, TaskOption option) => AndForget(task); - /// /// Task will be awaited and exceptions will be forwarded to MudBlazorGlobal.UnhandledExceptionHandler. /// @@ -29,13 +23,12 @@ public static async void AndForget(this Task task, bool ignoreExceptions = false catch (Exception ex) { if (!ignoreExceptions) + { MudGlobal.UnhandledExceptionHandler?.Invoke(ex); + } } } - [Obsolete("Use the bool parameter version. This will be removed in v7.")] - public static async void AndForget(this ValueTask task, TaskOption option) => AndForget(task); - /// /// ValueTask will be awaited and exceptions will be forwarded to MudBlazorGlobal.UnhandledExceptionHandler. /// @@ -48,13 +41,12 @@ public static async void AndForget(this ValueTask task, bool ignoreExceptions = catch (Exception ex) { if (!ignoreExceptions) + { MudGlobal.UnhandledExceptionHandler?.Invoke(ex); + } } } - [Obsolete("Use the bool parameter version. This will be removed in v7.")] - public static async void AndForget(this ValueTask task, TaskOption option) => AndForget(task, option); - /// /// ValueTask(bool) will be awaited and exceptions will be forwarded to MudBlazorGlobal.UnhandledExceptionHandler. /// @@ -67,7 +59,9 @@ public static async void AndForget(this ValueTask task, bool ignoreExcepti catch (Exception ex) { if (!ignoreExceptions) + { MudGlobal.UnhandledExceptionHandler?.Invoke(ex); + } } } } diff --git a/src/MudBlazor/Services/BrowserWindowSizeProvider.cs b/src/MudBlazor/Services/BrowserWindowSizeProvider.cs deleted file mode 100644 index c6e98d88b223..000000000000 --- a/src/MudBlazor/Services/BrowserWindowSizeProvider.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System; -using System.Threading.Tasks; -using Microsoft.JSInterop; -using MudBlazor.Services; - -namespace MudBlazor -{ - [Obsolete("This will be removed in v7.")] - public interface IBrowserWindowSizeProvider - { - ValueTask GetBrowserWindowSize(); - } - - /// - /// This provider calls the JS method resizeListener.getBrowserWindowSize to get the browser window size - /// - [Obsolete("This will be removed in v7.")] - public class BrowserWindowSizeProvider : IBrowserWindowSizeProvider - { - private readonly IJSRuntime _jsRuntime; - - /// - /// - /// - /// - public BrowserWindowSizeProvider(IJSRuntime jsRuntime) - { - this._jsRuntime = jsRuntime; - } - - /// - /// Get the current BrowserWindowSize, this includes the Height and Width of the document. - /// - /// - public ValueTask GetBrowserWindowSize() => -_jsRuntime.InvokeAsync($"mudResizeListener.getBrowserWindowSize"); - } -} diff --git a/src/MudBlazor/Utilities/BindingConverters/NumericConverter.cs b/src/MudBlazor/Utilities/BindingConverters/NumericConverter.cs index b04f04a13724..8b3eb469d899 100644 --- a/src/MudBlazor/Utilities/BindingConverters/NumericConverter.cs +++ b/src/MudBlazor/Utilities/BindingConverters/NumericConverter.cs @@ -150,25 +150,6 @@ private double OnSet(T arg) return double.NaN; } } - - - #region --> Floating Point comparison - - [ExcludeFromCodeCoverage] - [Obsolete($"Use {nameof(DoubleEpsilonEqualityComparer)} instead.")] - public static bool AreEqual(double a, double b) - { - return DoubleEpsilonEqualityComparer.Default.Equals(a, b); - } - - [ExcludeFromCodeCoverage] - [Obsolete($"Use {nameof(DoubleEpsilonEqualityComparer)} instead.")] - public static bool AreEqual(double a, double b, double epsilon) - { - return new DoubleEpsilonEqualityComparer(epsilon).Equals(a, b); - } - - #endregion } [ExcludeFromCodeCoverage] diff --git a/src/MudBlazor/Utilities/ColorManager.cs b/src/MudBlazor/Utilities/ColorManager.cs deleted file mode 100644 index 95aeec681205..000000000000 --- a/src/MudBlazor/Utilities/ColorManager.cs +++ /dev/null @@ -1,113 +0,0 @@ -using System; -using System.Diagnostics.CodeAnalysis; -using System.Globalization; - -namespace MudBlazor.Utilities -{ - [ExcludeFromCodeCoverage] - [Obsolete("Use MudColor instead.", true)] - public class ColorManager - { - public static System.Drawing.Color FromHex(string hex) - { - FromHex(hex, out var a, out var r, out var g, out var b); - - return System.Drawing.Color.FromArgb(a, r, g, b); - } - - // amount is between 0.0 and 1.0 - public static System.Drawing.Color ColorLighten(System.Drawing.Color rgbColor, double amount) - { - var hsl = ColorTransformation.RgBtoHsl(rgbColor); - hsl.L = Math.Max(0, Math.Min(1, hsl.L + amount)); - return ColorTransformation.HsLtoRgb(hsl, rgbColor.A); - } - - // amount is between 0.0 and 1.0 - public static System.Drawing.Color ColorDarken(System.Drawing.Color rgbColor, double amount) - { - var hsl = ColorTransformation.RgBtoHsl(rgbColor); - hsl.L = Math.Max(0, Math.Min(1, hsl.L - amount)); - return ColorTransformation.HsLtoRgb(hsl, rgbColor.A); - } - - public static void FromHex(string hex, out byte a, out byte r, out byte g, out byte b) - { - hex = ToRgbaHex(hex); - if (hex == null || !uint.TryParse(hex, NumberStyles.HexNumber, CultureInfo.InvariantCulture, out var packedValue)) - { - throw new ArgumentException("Hexadecimal string is not in the correct format.", nameof(hex)); - } - - a = (byte)(packedValue >> 0); - r = (byte)(packedValue >> 24); - g = (byte)(packedValue >> 16); - b = (byte)(packedValue >> 8); - } - - public static string ToRgbaFromHex(string hex, double alpha) - { - var color = FromHex(hex); - return $"rgba({color.R},{color.G},{color.B}, {alpha.ToString(CultureInfo.InvariantCulture)})"; - } - - - private static string ToRgbaHex(string hex) - { - hex = hex.StartsWith("#") ? hex.Substring(1) : hex; - - if (hex.Length == 8) - { - return hex; - } - - if (hex.Length == 6) - { - return hex + "FF"; - } - - if (hex.Length is < 3 or > 4) - { - return null; - } - - var red = char.ToString(hex[0]); - var green = char.ToString(hex[1]); - var blue = char.ToString(hex[2]); - var alpha = hex.Length == 3 ? "F" : char.ToString(hex[3]); - - return string.Concat(red, red, green, green, blue, blue, alpha, alpha); - } - - public static string ColorRgbDarken(string hex) - { - var color = FromHex(hex); - color = ColorDarken(color, 0.075); - return $"rgb({color.R},{color.G},{color.B})"; - } - public static string ColorRgbLighten(string hex) - { - var color = FromHex(hex); - color = ColorLighten(color, 0.075); - return $"rgb({color.R},{color.G},{color.B})"; - } - - public static string ColorRgb(string hex) - { - var color = FromHex(hex); - return $"rgb({color.R},{color.G},{color.B})"; - } - - public static string ColorRgbElements(string hex) - { - var color = FromHex(hex); - return $"{color.R},{color.G},{color.B}"; - } - - public static string ColorRgba(string hex, double alpha) - { - var color = FromHex(hex); - return $"rgba({color.R},{color.G},{color.B}, {alpha.ToString(CultureInfo.InvariantCulture)})"; - } - } -} diff --git a/src/MudBlazor/Utilities/ColorTransformation.cs b/src/MudBlazor/Utilities/ColorTransformation.cs deleted file mode 100644 index 7971279b95e9..000000000000 --- a/src/MudBlazor/Utilities/ColorTransformation.cs +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright (c) Steven Coco -// https://stackoverflow.com/questions/4087581/creating-a-c-sharp-color-from-hsl-values/4087601#4087601 -// Stripped and adapted by Meinrad Recheis for MudBlazor - -using System; -using System.Diagnostics.CodeAnalysis; -using SystemMath = System.Math; - -namespace MudBlazor.Utilities -{ - /// - /// Static methods for transforming argb spaces and argb values. - /// - [ExcludeFromCodeCoverage] - [Obsolete("Use MudColor instead.", true)] - public static class ColorTransformation - { - private static double EPSILON => 0.000000000000001; - - public class HSLColor - { - public double H { get; set; } - public double S { get; set; } - public double L { get; set; } - } - - /// - /// Converts RGB to HSL. Alpha is ignored. - /// Output is: { H: [0, 360], S: [0, 1], L: [0, 1] }. - /// - /// The color to convert. - public static HSLColor RgBtoHsl(System.Drawing.Color color) - { - var h = 0D; - var s = 0D; - double l; - - // normalize red, green, blue values - var r = color.R / 255D; - var g = color.G / 255D; - var b = color.B / 255D; - - var max = SystemMath.Max(r, SystemMath.Max(g, b)); - var min = SystemMath.Min(r, SystemMath.Min(g, b)); - - // hue - if (SystemMath.Abs(max - min) < EPSILON) - h = 0D; // undefined - else if ((SystemMath.Abs(max - r) < EPSILON) - && (g >= b)) - h = (60D * (g - b)) / (max - min); - else if ((SystemMath.Abs(max - r) < EPSILON) - && (g < b)) - h = ((60D * (g - b)) / (max - min)) + 360D; - else if (SystemMath.Abs(max - g) < EPSILON) - h = ((60D * (b - r)) / (max - min)) + 120D; - else if (SystemMath.Abs(max - b) < EPSILON) - h = ((60D * (r - g)) / (max - min)) + 240D; - - // luminance - l = (max + min) / 2D; - - // saturation - if ((SystemMath.Abs(l) < EPSILON) - || (SystemMath.Abs(max - min) < EPSILON)) - s = 0D; - else if ((0D < l) - && (l <= .5D)) - s = (max - min) / (max + min); - else if (l > .5D) - s = (max - min) / (2D - (max + min)); //(max-min > 0)? - - return new HSLColor - { - H = SystemMath.Max(0D, SystemMath.Min(360D, h)), - S = SystemMath.Max(0D, SystemMath.Min(1D, s)), - L = SystemMath.Max(0D, SystemMath.Min(1D, l)) - }; - } - - /// - /// Converts HSL to RGB, with a specified output Alpha. - /// Arguments are limited to the defined range: - /// does not raise exceptions. - /// - /// HSL comprising of - - /// hsl.H (Hue), must be in [0, 360] - - /// hsl.S (Saturation), must be in [0, 1] - - /// hsl.L (Luminance), must be in [0, 1]. - /// Output Alpha, must be in [0, 255]. - public static System.Drawing.Color HsLtoRgb(HSLColor hsl, int a = 255) - { - var h = SystemMath.Max(0D, SystemMath.Min(360D, hsl.H)); - var s = SystemMath.Max(0D, SystemMath.Min(1D, hsl.S)); - var l = SystemMath.Max(0D, SystemMath.Min(1D, hsl.L)); - a = SystemMath.Max(0, SystemMath.Min(255, a)); - - // achromatic argb (gray scale) - if (SystemMath.Abs(s) < EPSILON) - { - return System.Drawing.Color.FromArgb( - a, - SystemMath.Max(0, SystemMath.Min(255, Convert.ToInt32(double.Parse($"{l * 255D:0.00}")))), - SystemMath.Max(0, SystemMath.Min(255, Convert.ToInt32(double.Parse($"{l * 255D:0.00}")))), - SystemMath.Max(0, SystemMath.Min(255, Convert.ToInt32(double.Parse($"{l * 255D:0.00}"))))); - } - - var q = l < .5D - ? l * (1D + s) - : (l + s) - (l * s); - var p = (2D * l) - q; - - var hk = h / 360D; - var T = new double[3]; - T[0] = hk + (1D / 3D); // Tr - T[1] = hk; // Tb - T[2] = hk - (1D / 3D); // Tg - - for (var i = 0; i < 3; i++) - { - if (T[i] < 0D) - T[i] += 1D; - if (T[i] > 1D) - T[i] -= 1D; - - if ((T[i] * 6D) < 1D) - T[i] = p + ((q - p) * 6D * T[i]); - else if ((T[i] * 2D) < 1) - T[i] = q; - else if ((T[i] * 3D) < 2) - T[i] = p + ((q - p) * ((2D / 3D) - T[i]) * 6D); - else - T[i] = p; - } - - return System.Drawing.Color.FromArgb( - a, - SystemMath.Max(0, SystemMath.Min(255, (int)Math.Round(T[0] * 255D))), - SystemMath.Max(0, SystemMath.Min(255, (int)Math.Round(T[1] * 255D))), - SystemMath.Max(0, SystemMath.Min(255, (int)Math.Round(T[2] * 255D)))); - } - - } -} From 6ae6b9864cbbe312f308e72d35ff571ffcc58f31 Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Mon, 1 Apr 2024 15:35:32 -0500 Subject: [PATCH 40/50] Components: Remove more obsolete members (#8532) Co-authored-by: Artyom M --- .../Examples/SwipeDatePickerExample.razor | 10 ++--- .../Examples/SwipeDirectionsExample.razor | 6 ++- .../Examples/SwipeDrawerExample.razor | 10 ++--- .../Form/FormFieldChangedTest.razor | 6 +-- .../Form/FormReadOnlyDisabledTest.razor | 12 +++--- ...ubscribeToParentFormFormControlsTest.razor | 12 +++--- .../Form/FormWithRadioGroupTest.razor | 4 +- .../SwipeArea/SwipeAreaTest.razor | 4 +- .../Components/RadioTests.cs | 4 +- .../Components/Alert/MudAlert.razor.cs | 12 ------ .../Autocomplete/MudAutocomplete.razor.cs | 22 ---------- .../Components/Button/MudFab.razor.cs | 7 ---- .../Components/Carousel/MudCarousel.razor.cs | 41 ------------------- .../Chart/Interpolation/ILineInterpolator.cs | 2 - .../Chart/Interpolation/NoInterpolation.cs | 14 ------- .../Components/Collapse/MudCollapse.razor.cs | 17 -------- .../Dialog/MudDialogInstance.razor.cs | 3 -- .../Components/Drawer/MudDrawer.razor.cs | 27 ++---------- .../Components/Form/MudForm.razor.cs | 19 --------- .../Components/NavMenu/MudNavGroup.razor.cs | 7 ---- .../Progress/MudProgressCircular.razor.cs | 10 ----- .../Progress/MudProgressLinear.razor.cs | 10 ----- .../Components/Radio/MudRadio.razor.cs | 18 -------- .../Components/Select/MudSelect.razor.cs | 21 ---------- .../SwipeArea/MudSwipeArea.razor.cs | 8 ---- .../Components/Table/MudTableBase.cs | 9 ---- .../Components/Table/MudTablePager.razor.cs | 7 ---- .../TextField/MudTextField.razor.cs | 11 ----- .../Components/TreeView/MudTreeView.razor.cs | 21 ---------- 29 files changed, 37 insertions(+), 317 deletions(-) delete mode 100644 src/MudBlazor/Components/Chart/Interpolation/NoInterpolation.cs diff --git a/src/MudBlazor.Docs/Pages/Components/SwipeArea/Examples/SwipeDatePickerExample.razor b/src/MudBlazor.Docs/Pages/Components/SwipeArea/Examples/SwipeDatePickerExample.razor index 4dd458a87638..0ecd72fcce7d 100644 --- a/src/MudBlazor.Docs/Pages/Components/SwipeArea/Examples/SwipeDatePickerExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/SwipeArea/Examples/SwipeDatePickerExample.razor @@ -1,21 +1,21 @@ @using System.Globalization @namespace MudBlazor.Docs.Examples - + -@code{ +@code { DateTime? _pickerMonth = DateTime.Now.StartOfMonth(CultureInfo.CurrentCulture); - public void OnSwipe(SwipeDirection direction) + public void OnSwipeEnd(SwipeEventArgs e) { - if (direction == SwipeDirection.LeftToRight) + if (e.SwipeDirection == SwipeDirection.LeftToRight) { _pickerMonth = _pickerMonth.Value.AddMonths(-1); StateHasChanged(); } - else if (direction == SwipeDirection.RightToLeft) + else if (e.SwipeDirection == SwipeDirection.RightToLeft) { _pickerMonth = _pickerMonth.Value.AddMonths(1); StateHasChanged(); diff --git a/src/MudBlazor.Docs/Pages/Components/SwipeArea/Examples/SwipeDirectionsExample.razor b/src/MudBlazor.Docs/Pages/Components/SwipeArea/Examples/SwipeDirectionsExample.razor index 37f24c128479..731181cd2f46 100644 --- a/src/MudBlazor.Docs/Pages/Components/SwipeArea/Examples/SwipeDirectionsExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/SwipeArea/Examples/SwipeDirectionsExample.razor @@ -1,7 +1,9 @@ @namespace MudBlazor.Docs.Examples - + @_swipeDirection -@code{ SwipeDirection _swipeDirection; } \ No newline at end of file +@code { + SwipeDirection _swipeDirection; +} \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/SwipeArea/Examples/SwipeDrawerExample.razor b/src/MudBlazor.Docs/Pages/Components/SwipeArea/Examples/SwipeDrawerExample.razor index 0029646d5437..85c95c7f8509 100644 --- a/src/MudBlazor.Docs/Pages/Components/SwipeArea/Examples/SwipeDrawerExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/SwipeArea/Examples/SwipeDrawerExample.razor @@ -1,6 +1,6 @@ @namespace MudBlazor.Docs.Examples - + @@ -15,17 +15,17 @@ -@code{ +@code { bool _drawerOpen; - public void OnSwipe(SwipeDirection direction) + public void OnSwipeEnd(SwipeEventArgs e) { - if (direction == SwipeDirection.LeftToRight && !_drawerOpen) + if (e.SwipeDirection == SwipeDirection.LeftToRight && !_drawerOpen) { _drawerOpen = true; StateHasChanged(); } - else if (direction == SwipeDirection.RightToLeft && _drawerOpen) + else if (e.SwipeDirection == SwipeDirection.RightToLeft && _drawerOpen) { _drawerOpen = false; StateHasChanged(); diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/FormFieldChangedTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/FormFieldChangedTest.razor index df8849e7fef3..7ec8b155046c 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/FormFieldChangedTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/FormFieldChangedTest.razor @@ -4,12 +4,12 @@ @using System.ComponentModel.DataAnnotations - +
- Personal - Professional + Personal + Professional
diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/FormReadOnlyDisabledTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/FormReadOnlyDisabledTest.razor index 5007b5d4268c..c1d0f8ebc9b3 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/FormReadOnlyDisabledTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/FormReadOnlyDisabledTest.razor @@ -8,8 +8,8 @@ - - + + @@ -32,10 +32,10 @@
- Form ReadOnly - Comp ReadOnly - Form Disabled - Comp Disabled + Form ReadOnly + Comp ReadOnly + Form Disabled + Comp Disabled diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/FormShouldRegisterOnlyTopSubscribeToParentFormFormControlsTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/FormShouldRegisterOnlyTopSubscribeToParentFormFormControlsTest.razor index 40cc2a9cfe35..47d6489995f7 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/FormShouldRegisterOnlyTopSubscribeToParentFormFormControlsTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/FormShouldRegisterOnlyTopSubscribeToParentFormFormControlsTest.razor @@ -3,7 +3,7 @@ - + @@ -11,19 +11,19 @@ - Option A - Option B + Option A + Option B - + - + - + diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/FormWithRadioGroupTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/FormWithRadioGroupTest.razor index 265df25bcbfa..b2e17dd4d959 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/FormWithRadioGroupTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Form/FormWithRadioGroupTest.razor @@ -2,8 +2,8 @@ - Option A - Option B + Option A + Option B diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/SwipeArea/SwipeAreaTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/SwipeArea/SwipeAreaTest.razor index b5d07d79cdaf..513dbc1d55fc 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/SwipeArea/SwipeAreaTest.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/SwipeArea/SwipeAreaTest.razor @@ -1,9 +1,9 @@ @namespace MudBlazor.UnitTests.TestComponents - + @_swipeDirection -@code{ +@code { SwipeDirection _swipeDirection; } \ No newline at end of file diff --git a/src/MudBlazor.UnitTests/Components/RadioTests.cs b/src/MudBlazor.UnitTests/Components/RadioTests.cs index 22a54c94d73a..c4c7e44fc634 100644 --- a/src/MudBlazor.UnitTests/Components/RadioTests.cs +++ b/src/MudBlazor.UnitTests/Components/RadioTests.cs @@ -240,9 +240,7 @@ public async Task RadioTest_Other() await comp.InvokeAsync(() => radio.Instance.IMudRadioGroup = null); await comp.InvokeAsync(() => radio.Instance.OnClickAsync()); -#pragma warning disable CS0618 // Type or member is obsolete - comp.WaitForAssertion(() => radio.Instance.Option.Should().Be("1")); -#pragma warning restore CS0618 // Type or member is obsolete + comp.WaitForAssertion(() => radio.Instance.Value.Should().Be("1")); #pragma warning disable BL0005 await comp.InvokeAsync(() => radio.Instance.Disabled = true); comp.WaitForAssertion(() => group.Instance.Value.Should().Be(null)); diff --git a/src/MudBlazor/Components/Alert/MudAlert.razor.cs b/src/MudBlazor/Components/Alert/MudAlert.razor.cs index af86266a6c54..7d8ad5eeecd8 100644 --- a/src/MudBlazor/Components/Alert/MudAlert.razor.cs +++ b/src/MudBlazor/Components/Alert/MudAlert.razor.cs @@ -43,18 +43,6 @@ private HorizontalAlignment ConvertHorizontalAlignment(HorizontalAlignment conte [Category(CategoryTypes.Alert.Appearance)] public HorizontalAlignment ContentAlignment { get; set; } = HorizontalAlignment.Left; - /// - /// Sets the position of the text to the start (Left in LTR and right in RTL). - /// - [ExcludeFromCodeCoverage] - [Obsolete("Use ContentAlignment instead.", true)] - [Parameter] - public AlertTextPosition AlertTextPosition - { - get => (AlertTextPosition)ContentAlignment; - set => ContentAlignment = (HorizontalAlignment)value; - } - /// /// The callback, when the close button has been clicked. /// diff --git a/src/MudBlazor/Components/Autocomplete/MudAutocomplete.razor.cs b/src/MudBlazor/Components/Autocomplete/MudAutocomplete.razor.cs index b03053a2d1cd..23c25cb5c01e 100644 --- a/src/MudBlazor/Components/Autocomplete/MudAutocomplete.razor.cs +++ b/src/MudBlazor/Components/Autocomplete/MudAutocomplete.razor.cs @@ -97,28 +97,6 @@ protected string GetListItemClassname(bool isSelected) => [Category(CategoryTypes.FormComponent.ListAppearance)] public Origin TransformOrigin { get; set; } = Origin.TopCenter; - /// - /// Set the anchor origin point to determen where the popover will open from. - /// - [ExcludeFromCodeCoverage] - [Obsolete("Use AnchorOrigin or TransformOrigin instead.", true)] - [Parameter] - public Direction Direction { get; set; } = Direction.Bottom; - - /// - /// If true, the Autocomplete menu will open either before or after the input (left/right). - /// - [ExcludeFromCodeCoverage] - [Obsolete("Use AnchorOrigin or TransformOrigin instead.", true)] - [Parameter] public bool OffsetX { get; set; } - - /// - /// If true, the Autocomplete menu will open either before or after the input (top/bottom). - /// - [ExcludeFromCodeCoverage] - [Obsolete("Use AnchorOrigin or TransformOrigin instead.", true)] - [Parameter] public bool OffsetY { get; set; } - /// /// If true, compact vertical padding will be applied to all Autocomplete items. /// diff --git a/src/MudBlazor/Components/Button/MudFab.razor.cs b/src/MudBlazor/Components/Button/MudFab.razor.cs index cc6935a9161d..60446c1d683f 100644 --- a/src/MudBlazor/Components/Button/MudFab.razor.cs +++ b/src/MudBlazor/Components/Button/MudFab.razor.cs @@ -32,13 +32,6 @@ public partial class MudFab : MudBaseButton, IHandleEvent [Category(CategoryTypes.Button.Appearance)] public Size Size { get; set; } = Size.Large; - /// - /// If applied Icon will be added at the start of the component. - /// - [Obsolete("This property is obsolete. Use StartIcon instead.")] - [Parameter] - public string? Icon { get => StartIcon; set => StartIcon = value; } - /// /// If applied Icon will be added at the start of the component. /// diff --git a/src/MudBlazor/Components/Carousel/MudCarousel.razor.cs b/src/MudBlazor/Components/Carousel/MudCarousel.razor.cs index d01798892bd9..754b70daba77 100644 --- a/src/MudBlazor/Components/Carousel/MudCarousel.razor.cs +++ b/src/MudBlazor/Components/Carousel/MudCarousel.razor.cs @@ -72,27 +72,6 @@ public partial class MudCarousel : MudBaseBindableItemsControl - /// Gets or Sets if bottom bar with Delimiters must be visible. - /// Deprecated, use ShowBullets instead. - /// - [Category(CategoryTypes.Carousel.Behavior)] - [Obsolete($"Use {nameof(ShowBullets)} instead", false)] - [ExcludeFromCodeCoverage] - [Parameter] - public bool ShowDelimiters { get => ShowBullets; set => ShowBullets = value; } - - /// - /// Gets or Sets the Delimiters color. - /// If not set, the color is determined based on the property of the active child. - /// Deprecated, use BulletsColor instead. - /// - [Obsolete($"Use {nameof(BulletsColor)} instead", false)] - [Category(CategoryTypes.Carousel.Appearance)] - [ExcludeFromCodeCoverage] - [Parameter] - public Color? DelimitersColor { get => BulletsColor; set => BulletsColor = value; } - /// /// Gets or Sets automatic cycle on item collection. /// @@ -155,16 +134,6 @@ public TimeSpan AutoCycleTime [Parameter] public string? BulletsClass { get; set; } - /// - /// Gets or Sets custom class(es) for Delimiters buttons. - /// Deprecated, use BulletsClass instead. - /// - [Category(CategoryTypes.Carousel.Appearance)] - [Obsolete($"Use {nameof(BulletsClass)} instead", false)] - [ExcludeFromCodeCoverage] - [Parameter] - public string? DelimitersClass { get => BulletsClass; set => BulletsClass = value; } - /// /// Custom previous navigation icon. /// @@ -221,16 +190,6 @@ public TimeSpan AutoCycleTime [Parameter] public bool EnableSwipeGesture { get; set; } = true; - /// - /// Gets or Sets the Template for Delimiters. - /// Deprecated, use BulletsTemplate instead. - /// - [Category(CategoryTypes.Carousel.Appearance)] - [Obsolete($"Use {nameof(BulletTemplate)} instead", false)] - [ExcludeFromCodeCoverage] - [Parameter] - public RenderFragment? DelimiterTemplate { get => BulletTemplate; set => BulletTemplate = value; } - /// /// Called when selected Index changed on base class /// diff --git a/src/MudBlazor/Components/Chart/Interpolation/ILineInterpolator.cs b/src/MudBlazor/Components/Chart/Interpolation/ILineInterpolator.cs index de20842d05bf..583011b27d6f 100644 --- a/src/MudBlazor/Components/Chart/Interpolation/ILineInterpolator.cs +++ b/src/MudBlazor/Components/Chart/Interpolation/ILineInterpolator.cs @@ -8,7 +8,5 @@ public interface ILineInterpolator public double[] GivenXs { get; set; } public double[] InterpolatedXs { get; set; } public double[] InterpolatedYs { get; set; } - [Obsolete("This will be removed in v7")] - public bool InterpolationRequired { get; set; } } } diff --git a/src/MudBlazor/Components/Chart/Interpolation/NoInterpolation.cs b/src/MudBlazor/Components/Chart/Interpolation/NoInterpolation.cs deleted file mode 100644 index 482257986fd4..000000000000 --- a/src/MudBlazor/Components/Chart/Interpolation/NoInterpolation.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; - -namespace MudBlazor.Components.Chart.Interpolation -{ - [Obsolete("This will be removed in v7")] - public class NoInterpolation : ILineInterpolator - { - public double[] GivenYs { get; set; } - public double[] GivenXs { get; set; } - public double[] InterpolatedXs { get; set; } - public double[] InterpolatedYs { get; set; } - public bool InterpolationRequired { get; set; } = false; - } -} diff --git a/src/MudBlazor/Components/Collapse/MudCollapse.razor.cs b/src/MudBlazor/Components/Collapse/MudCollapse.razor.cs index 580d7fb308d6..feca581a12f7 100644 --- a/src/MudBlazor/Components/Collapse/MudCollapse.razor.cs +++ b/src/MudBlazor/Components/Collapse/MudCollapse.razor.cs @@ -139,23 +139,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) await base.OnAfterRenderAsync(firstRender); } - [ExcludeFromCodeCoverage] - [Obsolete($"Use {nameof(AnimationEndAsync)} instead. This will be removed in v7")] - public void AnimationEnd() - { - if (_state == CollapseState.Entering) - { - _state = CollapseState.Entered; - StateHasChanged(); - } - else if (_state == CollapseState.Exiting) - { - _state = CollapseState.Exited; - StateHasChanged(); - } - OnAnimationEnd.InvokeAsync(_expandedState.Value); - } - public Task AnimationEndAsync() { if (_state == CollapseState.Entering) diff --git a/src/MudBlazor/Components/Dialog/MudDialogInstance.razor.cs b/src/MudBlazor/Components/Dialog/MudDialogInstance.razor.cs index 2ecff404bcda..1e0dec3aa79e 100644 --- a/src/MudBlazor/Components/Dialog/MudDialogInstance.razor.cs +++ b/src/MudBlazor/Components/Dialog/MudDialogInstance.razor.cs @@ -325,9 +325,6 @@ public void Register(MudDialog dialog) StateHasChanged(); } - [Obsolete($"Use {nameof(StateHasChanged)}. This method will be removed in v7.")] - public void ForceRender() => StateHasChanged(); - public new void StateHasChanged() => base.StateHasChanged(); /// diff --git a/src/MudBlazor/Components/Drawer/MudDrawer.razor.cs b/src/MudBlazor/Components/Drawer/MudDrawer.razor.cs index 71324b8b1a90..ae262f94432d 100644 --- a/src/MudBlazor/Components/Drawer/MudDrawer.razor.cs +++ b/src/MudBlazor/Components/Drawer/MudDrawer.razor.cs @@ -304,7 +304,7 @@ public virtual void Dispose(bool disposing) private Task CloseDrawerAsync() => Open ? OpenChanged.InvokeAsync(false) : Task.CompletedTask; - public async Task OnNavigation() + async Task INavigationEventReceiver.OnNavigation() { if (Variant == DrawerVariant.Temporary || (Variant == DrawerVariant.Responsive && await BrowserViewportService.GetCurrentBreakpointAsync() < Breakpoint)) @@ -365,18 +365,7 @@ internal string GetPosition() }; } - - [Obsolete($"Use {nameof(OnMouseEnterAsync)} instead. This will be removed in v7.")] - public async void OnMouseEnter() - { - if (Variant == DrawerVariant.Mini && !Open && OpenMiniOnHover) - { - _closeOnMouseLeave = true; - await OpenChanged.InvokeAsync(true); - } - } - - public async Task OnMouseEnterAsync() + private async Task OnMouseEnterAsync() { if (Variant == DrawerVariant.Mini && !Open && OpenMiniOnHover) { @@ -385,17 +374,7 @@ public async Task OnMouseEnterAsync() } } - [Obsolete($"Use {nameof(OnMouseLeaveAsync)} instead. This will be removed in v7.")] - public async void OnMouseLeave() - { - if (Variant == DrawerVariant.Mini && Open && _closeOnMouseLeave) - { - _closeOnMouseLeave = false; - await OpenChanged.InvokeAsync(false); - } - } - - public async Task OnMouseLeaveAsync() + private async Task OnMouseLeaveAsync() { if (Variant == DrawerVariant.Mini && Open && _closeOnMouseLeave) { diff --git a/src/MudBlazor/Components/Form/MudForm.razor.cs b/src/MudBlazor/Components/Form/MudForm.razor.cs index 1fc5fba66d3d..19c512ed76a5 100644 --- a/src/MudBlazor/Components/Form/MudForm.razor.cs +++ b/src/MudBlazor/Components/Form/MudForm.razor.cs @@ -274,25 +274,6 @@ public async Task Validate() EvaluateForm(debounce: false); } - /// - /// Reset all form controls and reset their validation state. - /// - [Obsolete($"Use {nameof(ResetAsync)} instead. This will ve removed in v7")] - public void Reset() - { - foreach (var control in _formControls.ToArray()) - { - control.Reset(); - } - - foreach (var form in ChildForms) - { - form.Reset(); - } - - EvaluateForm(debounce: false); - } - /// /// Reset all form controls and reset their validation state. /// diff --git a/src/MudBlazor/Components/NavMenu/MudNavGroup.razor.cs b/src/MudBlazor/Components/NavMenu/MudNavGroup.razor.cs index 261417391598..8d7596d3049e 100644 --- a/src/MudBlazor/Components/NavMenu/MudNavGroup.razor.cs +++ b/src/MudBlazor/Components/NavMenu/MudNavGroup.razor.cs @@ -112,13 +112,6 @@ public bool Expanded [Parameter] public EventCallback ExpandedChanged { get; set; } - [Obsolete($"Use {nameof(ExpandedToggleAsync)} instead. This will be removed in v7.")] - protected void ExpandedToggle() - { - _expanded = !Expanded; - ExpandedChanged.InvokeAsync(_expanded); - } - protected Task ExpandedToggleAsync() { _expanded = !Expanded; diff --git a/src/MudBlazor/Components/Progress/MudProgressCircular.razor.cs b/src/MudBlazor/Components/Progress/MudProgressCircular.razor.cs index aea1dc764dc1..12d2750a16b5 100644 --- a/src/MudBlazor/Components/Progress/MudProgressCircular.razor.cs +++ b/src/MudBlazor/Components/Progress/MudProgressCircular.razor.cs @@ -65,16 +65,6 @@ public partial class MudProgressCircular : MudComponentBase [Category(CategoryTypes.ProgressCircular.Appearance)] public int StrokeWidth { get; set; } = 3; - [ExcludeFromCodeCoverage] - [Obsolete("Use Min instead.", true)] - [Parameter] - public double Minimum { get => Min; set => Min = value; } - - [ExcludeFromCodeCoverage] - [Obsolete("Use Max instead.", true)] - [Parameter] - public double Maximum { get => Max; set => Max = value; } - public MudProgressCircular() { _valueState = RegisterParameter(nameof(Value), () => Value, OnValueParameterChanged, DoubleEpsilonEqualityComparer.Default); diff --git a/src/MudBlazor/Components/Progress/MudProgressLinear.razor.cs b/src/MudBlazor/Components/Progress/MudProgressLinear.razor.cs index 3538530e5ee3..47a4ba9e048b 100644 --- a/src/MudBlazor/Components/Progress/MudProgressLinear.razor.cs +++ b/src/MudBlazor/Components/Progress/MudProgressLinear.razor.cs @@ -109,16 +109,6 @@ public partial class MudProgressLinear : MudComponentBase [Category(CategoryTypes.ProgressLinear.Behavior)] public double BufferValue { get; set; } - [Obsolete("Use Min instead.", true)] - [ExcludeFromCodeCoverage] - [Parameter] - public double Minimum { get => Min; set => Min = value; } - - [Obsolete("Use Max instead.", true)] - [ExcludeFromCodeCoverage] - [Parameter] - public double Maximum { get => Max; set => Max = value; } - public MudProgressLinear() { _valueState = RegisterParameter(nameof(Value), () => Value, OnParameterChangedShared, DoubleEpsilonEqualityComparer.Default); diff --git a/src/MudBlazor/Components/Radio/MudRadio.razor.cs b/src/MudBlazor/Components/Radio/MudRadio.razor.cs index f547f7711ee1..64053cabf411 100644 --- a/src/MudBlazor/Components/Radio/MudRadio.razor.cs +++ b/src/MudBlazor/Components/Radio/MudRadio.razor.cs @@ -102,24 +102,6 @@ internal IMudRadioGroup? IMudRadioGroup [Category(CategoryTypes.Radio.Behavior)] public T? Value { get; set; } - /// - /// The value to associate to the button. - /// - [Obsolete("Use Value instead.")] - [Parameter] - [Category(CategoryTypes.Radio.Behavior)] - public T? Option - { - get - { - return Value; - } - set - { - Value = value; - } - } - /// /// If true, compact padding will be applied. /// diff --git a/src/MudBlazor/Components/Select/MudSelect.razor.cs b/src/MudBlazor/Components/Select/MudSelect.razor.cs index f920eac42a9b..ddc2781f7773 100644 --- a/src/MudBlazor/Components/Select/MudSelect.razor.cs +++ b/src/MudBlazor/Components/Select/MudSelect.razor.cs @@ -523,27 +523,6 @@ internal void Remove(MudSelectItem item) [Category(CategoryTypes.FormComponent.ListAppearance)] public Origin TransformOrigin { get; set; } = Origin.TopCenter; - /// - /// Sets the direction the Select menu should open. - /// - [ExcludeFromCodeCoverage] - [Obsolete("Use AnchorOrigin or TransformOrigin instead.", true)] - [Parameter] public Direction Direction { get; set; } = Direction.Bottom; - - /// - /// If true, the Select menu will open either before or after the input (left/right). - /// - [ExcludeFromCodeCoverage] - [Obsolete("Use AnchorOrigin or TransformOrigin instead.", true)] - [Parameter] public bool OffsetX { get; set; } - - /// - /// If true, the Select menu will open either before or after the input (top/bottom). - /// - /// [ExcludeFromCodeCoverage] - [Obsolete("Use AnchorOrigin or TransformOrigin instead.", true)] - [Parameter] public bool OffsetY { get; set; } - /// /// If true, the Select's input will not show any values that are not defined in the dropdown. /// This can be useful if Value is bound to a variable which is initialized to a value which is not in the list diff --git a/src/MudBlazor/Components/SwipeArea/MudSwipeArea.razor.cs b/src/MudBlazor/Components/SwipeArea/MudSwipeArea.razor.cs index d9e884694a09..1d0288ee4d72 100644 --- a/src/MudBlazor/Components/SwipeArea/MudSwipeArea.razor.cs +++ b/src/MudBlazor/Components/SwipeArea/MudSwipeArea.razor.cs @@ -1,5 +1,4 @@ using System; -using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; @@ -128,13 +127,6 @@ internal async Task OnTouchEnd(TouchEventArgs arg) _xDown = _yDown = null; } - /// - /// The last successful swipe difference in pixels since the last OnSwipe invocation - /// - [ExcludeFromCodeCoverage] - [Obsolete("Use OnSwipeEnd to get SwipeDelta")] - public double? GetSwipeDelta() => _swipeDelta; - internal void OnTouchCancel(TouchEventArgs arg) { _xDown = _yDown = null; diff --git a/src/MudBlazor/Components/Table/MudTableBase.cs b/src/MudBlazor/Components/Table/MudTableBase.cs index 616bfda9f061..a22948b35785 100644 --- a/src/MudBlazor/Components/Table/MudTableBase.cs +++ b/src/MudBlazor/Components/Table/MudTableBase.cs @@ -439,15 +439,6 @@ public int CurrentPage [Category(CategoryTypes.Table.Behavior)] public float ItemSize { get; set; } = 50f; - #region --> Obsolete Forwarders for Backwards-Compatiblilty - /// - /// Alignment of the table cell text when breakpoint is smaller than - /// - [ExcludeFromCodeCoverage] - [Obsolete("This property is not needed anymore, the cells width/alignment is done automatically.", true)] - [Parameter] public bool RightAlignSmall { get; set; } = true; - #endregion - public abstract TableContext TableContext { get; } protected override Task OnAfterRenderAsync(bool firstRender) diff --git a/src/MudBlazor/Components/Table/MudTablePager.razor.cs b/src/MudBlazor/Components/Table/MudTablePager.razor.cs index 42df05cbebd1..26e43fc73f62 100644 --- a/src/MudBlazor/Components/Table/MudTablePager.razor.cs +++ b/src/MudBlazor/Components/Table/MudTablePager.razor.cs @@ -31,13 +31,6 @@ public partial class MudTablePager : MudComponentBase /// [Parameter] public bool HideRowsPerPage { get; set; } - /// - /// Set true to hide the part of the pager which allows to change the page size. - /// - [ExcludeFromCodeCoverage] - [Obsolete("Use HideRowsPerPage instead.", true)] - [Parameter] public bool DisableRowsPerPage { get => HideRowsPerPage; set => HideRowsPerPage = value; } - /// /// Set true to hide the number of pages. /// diff --git a/src/MudBlazor/Components/TextField/MudTextField.razor.cs b/src/MudBlazor/Components/TextField/MudTextField.razor.cs index 73b14980ecd1..99bca5e0cdd3 100644 --- a/src/MudBlazor/Components/TextField/MudTextField.razor.cs +++ b/src/MudBlazor/Components/TextField/MudTextField.razor.cs @@ -72,17 +72,6 @@ public override ValueTask SelectRangeAsync(int pos1, int pos2) return _maskReference.SelectRangeAsync(pos1, pos2); } - [Obsolete($"Use {nameof(ResetValueAsync)} instead. This will be removed in v7")] - [ExcludeFromCodeCoverage] - protected override void ResetValue() - { - if (_mask == null) - InputReference.Reset(); - else - _maskReference.Reset(); - base.ResetValue(); - } - protected override async Task ResetValueAsync() { if (_mask == null) diff --git a/src/MudBlazor/Components/TreeView/MudTreeView.razor.cs b/src/MudBlazor/Components/TreeView/MudTreeView.razor.cs index 554bae6e0858..f5cf17c1f360 100644 --- a/src/MudBlazor/Components/TreeView/MudTreeView.razor.cs +++ b/src/MudBlazor/Components/TreeView/MudTreeView.razor.cs @@ -55,18 +55,6 @@ public partial class MudTreeView : MudComponentBase [Category(CategoryTypes.TreeView.Selecting)] public bool MultiSelection { get; set; } - /// - /// if true, multiple values can be selected via checkboxes which are automatically shown in the tree view. - /// - [ExcludeFromCodeCoverage] - [Obsolete("Use MultiSelection instead.", true)] - [Parameter] - public bool CanSelect - { - get => MultiSelection; - set => MultiSelection = value; - } - /// /// If true, clicking anywhere on the item will expand it, if it has children. /// @@ -129,15 +117,6 @@ public bool CanSelect [Category(CategoryTypes.TreeView.Data)] public HashSet Items { get; set; } = new(); - [ExcludeFromCodeCoverage] - [Obsolete("Use SelectedValueChanged instead.", true)] - [Parameter] - public EventCallback ActivatedValueChanged - { - get => SelectedValueChanged; - set => SelectedValueChanged = value; - } - [Parameter] [Category(CategoryTypes.TreeView.Selecting)] public T? SelectedValue { get; set; } From f06efcb0ae8c8a5af4db87cb80369adade653617 Mon Sep 17 00:00:00 2001 From: Artyom M Date: Mon, 1 Apr 2024 23:49:32 +0300 Subject: [PATCH 41/50] MudFileUpload: Make FileUploadButtonTemplateContext.ClearAsync required (#8547) --- .../Components/FileUpload/FileUploadButtonTemplateContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MudBlazor/Components/FileUpload/FileUploadButtonTemplateContext.cs b/src/MudBlazor/Components/FileUpload/FileUploadButtonTemplateContext.cs index 98087c92e535..5397665e1fe3 100644 --- a/src/MudBlazor/Components/FileUpload/FileUploadButtonTemplateContext.cs +++ b/src/MudBlazor/Components/FileUpload/FileUploadButtonTemplateContext.cs @@ -26,6 +26,6 @@ public FileUploadButtonTemplateContext(MudFileUpload fileUpload, string id) public class FileUploadButtonTemplateActions { - public Func ClearAsync { get; init; } = null!; + public required Func ClearAsync { get; init; } } } From 851eba0907faf79ae37fe7ef6dd80514480e2784 Mon Sep 17 00:00:00 2001 From: Artyom M Date: Tue, 2 Apr 2024 00:40:19 +0300 Subject: [PATCH 42/50] MudDataGrid: Remove obsolete API (#8548) --- .../Components/DataGridTests.cs | 425 ++++++++++++------ .../DataGrid/Definition/FilterDefinition.cs | 43 +- .../DataGrid/Definition/IFilterDefinition.cs | 25 +- .../Components/DataGrid/FilterContext.cs | 11 +- .../Components/DataGrid/FooterContext.cs | 2 +- 5 files changed, 320 insertions(+), 186 deletions(-) diff --git a/src/MudBlazor.UnitTests/Components/DataGridTests.cs b/src/MudBlazor.UnitTests/Components/DataGridTests.cs index 1ac8fe9064d5..dfe1183c82bd 100644 --- a/src/MudBlazor.UnitTests/Components/DataGridTests.cs +++ b/src/MudBlazor.UnitTests/Components/DataGridTests.cs @@ -908,10 +908,12 @@ public async Task FilterDefinitionStringTest() { Column = nameColumn, Operator = FilterOperator.String.Contains, - Value = "Joe", - DataGrid = dataGrid.Instance + Value = "Joe" }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Does not contain", 45, null, null, null, null)).Should().BeFalse(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new("joe", 45, null, null, null, null)).Should().BeFalse(); @@ -922,11 +924,13 @@ public async Task FilterDefinitionStringTest() { Column = nameColumn, Operator = FilterOperator.String.Contains, - Value = "Joe", - DataGrid = dataGrid.Instance + Value = "Joe" }; - filterDefinition.DataGrid.FilterCaseSensitivity = DataGridFilterCaseSensitivity.CaseInsensitive; - func = filterDefinition.GenerateFilterFunction(); + dataGrid.SetParametersAndRender(parameters => parameters.Add(parameter => parameter.FilterCaseSensitivity, DataGridFilterCaseSensitivity.CaseInsensitive)); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Does not contain", 45, null, null, null, null)).Should().BeFalse(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new("joe", 45, null, null, null, null)).Should().BeTrue(); @@ -938,10 +942,12 @@ public async Task FilterDefinitionStringTest() Column = nameColumn, Operator = FilterOperator.String.Contains, Value = null, - DataGrid = dataGrid.Instance }; - filterDefinition.DataGrid.FilterCaseSensitivity = DataGridFilterCaseSensitivity.Default; - func = filterDefinition.GenerateFilterFunction(); + dataGrid.SetParametersAndRender(parameters => parameters.Add(parameter => parameter.FilterCaseSensitivity, DataGridFilterCaseSensitivity.Default)); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Does not contain", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new(null, 45, null, null, null, null)).Should().BeTrue(); @@ -951,11 +957,13 @@ public async Task FilterDefinitionStringTest() { Column = nameColumn, Operator = FilterOperator.String.Contains, - Value = null, - DataGrid = dataGrid.Instance + Value = null }; - filterDefinition.DataGrid.FilterCaseSensitivity = DataGridFilterCaseSensitivity.CaseInsensitive; - func = filterDefinition.GenerateFilterFunction(); + dataGrid.SetParametersAndRender(parameters => parameters.Add(parameter => parameter.FilterCaseSensitivity, DataGridFilterCaseSensitivity.CaseInsensitive)); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Does not contain", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new(null, 45, null, null, null, null)).Should().BeTrue(); @@ -969,11 +977,13 @@ public async Task FilterDefinitionStringTest() { Column = nameColumn, Operator = FilterOperator.String.NotContains, - Value = "Joe", - DataGrid = dataGrid.Instance + Value = "Joe" }; - filterDefinition.DataGrid.FilterCaseSensitivity = DataGridFilterCaseSensitivity.Default; - func = filterDefinition.GenerateFilterFunction(); + dataGrid.SetParametersAndRender(parameters => parameters.Add(parameter => parameter.FilterCaseSensitivity, DataGridFilterCaseSensitivity.Default)); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Does not contain", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeFalse(); func.Invoke(new("joe", 45, null, null, null, null)).Should().BeTrue(); @@ -984,11 +994,13 @@ public async Task FilterDefinitionStringTest() { Column = nameColumn, Operator = FilterOperator.String.NotContains, - Value = "Joe", - DataGrid = dataGrid.Instance + Value = "Joe" }; - filterDefinition.DataGrid.FilterCaseSensitivity = DataGridFilterCaseSensitivity.CaseInsensitive; - func = filterDefinition.GenerateFilterFunction(); + dataGrid.SetParametersAndRender(parameters => parameters.Add(parameter => parameter.FilterCaseSensitivity, DataGridFilterCaseSensitivity.CaseInsensitive)); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Does not contain", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new("joe", 45, null, null, null, null)).Should().BeFalse(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeFalse(); @@ -999,11 +1011,13 @@ public async Task FilterDefinitionStringTest() { Column = nameColumn, Operator = FilterOperator.String.NotContains, - Value = null, - DataGrid = dataGrid.Instance + Value = null }; - filterDefinition.DataGrid.FilterCaseSensitivity = DataGridFilterCaseSensitivity.Default; - func = filterDefinition.GenerateFilterFunction(); + dataGrid.SetParametersAndRender(parameters => parameters.Add(parameter => parameter.FilterCaseSensitivity, DataGridFilterCaseSensitivity.Default)); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Does not contain", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new(null, 45, null, null, null, null)).Should().BeTrue(); @@ -1017,10 +1031,12 @@ public async Task FilterDefinitionStringTest() { Column = nameColumn, Operator = FilterOperator.String.Equal, - Value = "Joe", - DataGrid = dataGrid.Instance + Value = "Joe" }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Not Joe", 45, null, null, null, null)).Should().BeFalse(); func.Invoke(new(null, 45, null, null, null, null)).Should().BeFalse(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1031,11 +1047,13 @@ public async Task FilterDefinitionStringTest() { Column = nameColumn, Operator = FilterOperator.String.Equal, - Value = "Joe", - DataGrid = dataGrid.Instance + Value = "Joe" }; - filterDefinition.DataGrid.FilterCaseSensitivity = DataGridFilterCaseSensitivity.CaseInsensitive; - func = filterDefinition.GenerateFilterFunction(); + dataGrid.SetParametersAndRender(parameters => parameters.Add(parameter => parameter.FilterCaseSensitivity, DataGridFilterCaseSensitivity.CaseInsensitive)); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Not Joe", 45, null, null, null, null)).Should().BeFalse(); func.Invoke(new(null, 45, null, null, null, null)).Should().BeFalse(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1047,10 +1065,12 @@ public async Task FilterDefinitionStringTest() Column = nameColumn, Operator = FilterOperator.String.Equal, Value = null, - DataGrid = dataGrid.Instance }; - filterDefinition.DataGrid.FilterCaseSensitivity = DataGridFilterCaseSensitivity.Default; - func = filterDefinition.GenerateFilterFunction(); + dataGrid.SetParametersAndRender(parameters => parameters.Add(parameter => parameter.FilterCaseSensitivity, DataGridFilterCaseSensitivity.Default)); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Joe Not", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new(null, 45, null, null, null, null)).Should().BeTrue(); @@ -1060,12 +1080,13 @@ public async Task FilterDefinitionStringTest() { Column = nameColumn, Operator = FilterOperator.String.Equal, - Value = null, - DataGrid = dataGrid.Instance + Value = null }; - filterDefinition.DataGrid.FilterCaseSensitivity = DataGridFilterCaseSensitivity.CaseInsensitive; - - func = filterDefinition.GenerateFilterFunction(); + dataGrid.SetParametersAndRender(parameters => parameters.Add(parameter => parameter.FilterCaseSensitivity, DataGridFilterCaseSensitivity.CaseInsensitive)); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Joe Not", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new("joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1080,11 +1101,13 @@ public async Task FilterDefinitionStringTest() { Column = nameColumn, Operator = FilterOperator.String.NotEqual, - Value = "Joe", - DataGrid = dataGrid.Instance + Value = "Joe" }; - filterDefinition.DataGrid.FilterCaseSensitivity = DataGridFilterCaseSensitivity.Default; - func = filterDefinition.GenerateFilterFunction(); + dataGrid.SetParametersAndRender(parameters => parameters.Add(parameter => parameter.FilterCaseSensitivity, DataGridFilterCaseSensitivity.Default)); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Not Joe", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new(null, 45, null, null, null, null)).Should().BeFalse(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeFalse(); @@ -1095,11 +1118,13 @@ public async Task FilterDefinitionStringTest() { Column = nameColumn, Operator = FilterOperator.String.NotEqual, - Value = "Joe", - DataGrid = dataGrid.Instance + Value = "Joe" }; - filterDefinition.DataGrid.FilterCaseSensitivity = DataGridFilterCaseSensitivity.CaseInsensitive; - func = filterDefinition.GenerateFilterFunction(); + dataGrid.SetParametersAndRender(parameters => parameters.Add(parameter => parameter.FilterCaseSensitivity, DataGridFilterCaseSensitivity.CaseInsensitive)); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Not Joe", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new(null, 45, null, null, null, null)).Should().BeFalse(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeFalse(); @@ -1110,11 +1135,13 @@ public async Task FilterDefinitionStringTest() { Column = nameColumn, Operator = FilterOperator.String.NotEqual, - Value = null, - DataGrid = dataGrid.Instance + Value = null }; - filterDefinition.DataGrid.FilterCaseSensitivity = DataGridFilterCaseSensitivity.Default; - func = filterDefinition.GenerateFilterFunction(); + dataGrid.SetParametersAndRender(parameters => parameters.Add(parameter => parameter.FilterCaseSensitivity, DataGridFilterCaseSensitivity.Default)); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Joe Not", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new(null, 45, null, null, null, null)).Should().BeTrue(); @@ -1128,10 +1155,12 @@ public async Task FilterDefinitionStringTest() { Column = nameColumn, Operator = FilterOperator.String.StartsWith, - Value = "Joe", - DataGrid = dataGrid.Instance + Value = "Joe" }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Not Joe", 45, null, null, null, null)).Should().BeFalse(); func.Invoke(new(null, 45, null, null, null, null)).Should().BeFalse(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1142,11 +1171,13 @@ public async Task FilterDefinitionStringTest() { Column = nameColumn, Operator = FilterOperator.String.StartsWith, - Value = "Joe", - DataGrid = dataGrid.Instance + Value = "Joe" }; - filterDefinition.DataGrid.FilterCaseSensitivity = DataGridFilterCaseSensitivity.CaseInsensitive; - func = filterDefinition.GenerateFilterFunction(); + dataGrid.SetParametersAndRender(parameters => parameters.Add(parameter => parameter.FilterCaseSensitivity, DataGridFilterCaseSensitivity.CaseInsensitive)); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Not Joe", 45, null, null, null, null)).Should().BeFalse(); func.Invoke(new(null, 45, null, null, null, null)).Should().BeFalse(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1157,11 +1188,13 @@ public async Task FilterDefinitionStringTest() { Column = nameColumn, Operator = FilterOperator.String.StartsWith, - Value = null, - DataGrid = dataGrid.Instance + Value = null }; - filterDefinition.DataGrid.FilterCaseSensitivity = DataGridFilterCaseSensitivity.Default; - func = filterDefinition.GenerateFilterFunction(); + dataGrid.SetParametersAndRender(parameters => parameters.Add(parameter => parameter.FilterCaseSensitivity, DataGridFilterCaseSensitivity.Default)); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Not Joe", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new(null, 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1175,10 +1208,12 @@ public async Task FilterDefinitionStringTest() { Column = nameColumn, Operator = FilterOperator.String.EndsWith, - Value = "Joe", - DataGrid = dataGrid.Instance + Value = "Joe" }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Joe Not", 45, null, null, null, null)).Should().BeFalse(); func.Invoke(new(null, 45, null, null, null, null)).Should().BeFalse(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1189,11 +1224,13 @@ public async Task FilterDefinitionStringTest() { Column = nameColumn, Operator = FilterOperator.String.EndsWith, - Value = "Joe", - DataGrid = dataGrid.Instance + Value = "Joe" }; - filterDefinition.DataGrid.FilterCaseSensitivity = DataGridFilterCaseSensitivity.CaseInsensitive; - func = filterDefinition.GenerateFilterFunction(); + dataGrid.SetParametersAndRender(parameters => parameters.Add(parameter => parameter.FilterCaseSensitivity, DataGridFilterCaseSensitivity.CaseInsensitive)); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Joe Not", 45, null, null, null, null)).Should().BeFalse(); func.Invoke(new(null, 45, null, null, null, null)).Should().BeFalse(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1204,11 +1241,13 @@ public async Task FilterDefinitionStringTest() { Column = nameColumn, Operator = FilterOperator.String.EndsWith, - Value = null, - DataGrid = dataGrid.Instance + Value = null }; - filterDefinition.DataGrid.FilterCaseSensitivity = DataGridFilterCaseSensitivity.Default; - func = filterDefinition.GenerateFilterFunction(); + dataGrid.SetParametersAndRender(parameters => parameters.Add(parameter => parameter.FilterCaseSensitivity, DataGridFilterCaseSensitivity.Default)); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Joe Not", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new(null, 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1221,14 +1260,16 @@ public async Task FilterDefinitionStringTest() { Column = nameColumn, Operator = FilterOperator.String.Empty, - Value = null, - DataGrid = dataGrid.Instance + Value = null }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Joe Not", 45, null, null, null, null)).Should().BeFalse(); func.Invoke(new("", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new(null, 45, null, null, null, null)).Should().BeTrue(); - func.Invoke(new(String.Empty, 45, null, null, null, null)).Should().BeTrue(); + func.Invoke(new(string.Empty, 45, null, null, null, null)).Should().BeTrue(); // null value filterDefinition = new FilterDefinition @@ -1236,13 +1277,15 @@ public async Task FilterDefinitionStringTest() Column = nameColumn, Operator = FilterOperator.String.NotEmpty, Value = null, - DataGrid = dataGrid.Instance }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Joe Not", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new("", 45, null, null, null, null)).Should().BeFalse(); func.Invoke(new(null, 45, null, null, null, null)).Should().BeFalse(); - func.Invoke(new(String.Empty, 45, null, null, null, null)).Should().BeFalse(); + func.Invoke(new(string.Empty, 45, null, null, null, null)).Should().BeFalse(); #endregion @@ -1252,28 +1295,32 @@ public async Task FilterDefinitionStringTest() { Column = nameColumn, Operator = FilterOperator.String.NotEmpty, - Value = null, - DataGrid = dataGrid.Instance + Value = null }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Joe Not", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new("", 45, null, null, null, null)).Should().BeFalse(); func.Invoke(new(null, 45, null, null, null, null)).Should().BeFalse(); - func.Invoke(new(String.Empty, 45, null, null, null, null)).Should().BeFalse(); + func.Invoke(new(string.Empty, 45, null, null, null, null)).Should().BeFalse(); // null value filterDefinition = new FilterDefinition { Column = nameColumn, Operator = FilterOperator.String.NotEmpty, - Value = null, - DataGrid = dataGrid.Instance + Value = null }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Joe Not", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new("", 45, null, null, null, null)).Should().BeFalse(); func.Invoke(new(null, 45, null, null, null, null)).Should().BeFalse(); - func.Invoke(new(String.Empty, 45, null, null, null, null)).Should().BeFalse(); + func.Invoke(new(string.Empty, 45, null, null, null, null)).Should().BeFalse(); #endregion @@ -1282,10 +1329,12 @@ public async Task FilterDefinitionStringTest() { Column = nameColumn, Operator = null, - Value = "Joe", - DataGrid = dataGrid.Instance + Value = "Joe" }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Joe Not", 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new(null, 45, null, null, null, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1306,7 +1355,10 @@ public async Task FilterDefinitionBoolTest() Operator = FilterOperator.Boolean.Is, Value = true }; - var func = filterDefinition.GenerateFilterFunction(); + var func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 45, null, false, null, null)).Should().BeFalse(); func.Invoke(new("Joe", 45, null, true, null, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeFalse(); @@ -1318,7 +1370,10 @@ public async Task FilterDefinitionBoolTest() Operator = FilterOperator.Boolean.Is, Value = null }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 45, null, false, null, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, true, null, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1332,7 +1387,10 @@ public async Task FilterDefinitionBoolTest() Operator = null, Value = true }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 45, null, false, null, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, true, null, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1353,7 +1411,10 @@ public async Task FilterDefinitionEnumTest() Operator = FilterOperator.Enum.Is, Value = Severity.Normal }; - var func = filterDefinition.GenerateFilterFunction(); + var func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 456, Severity.Info, null, null, null)).Should().BeFalse(); func.Invoke(new("Joe", 45, Severity.Normal, null, null, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeFalse(); @@ -1365,7 +1426,10 @@ public async Task FilterDefinitionEnumTest() Operator = FilterOperator.Enum.Is, Value = null }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 456, Severity.Info, null, null, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, Severity.Normal, null, null, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1380,7 +1444,10 @@ public async Task FilterDefinitionEnumTest() Operator = FilterOperator.Enum.IsNot, Value = Severity.Normal }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 456, Severity.Normal, null, null, null)).Should().BeFalse(); func.Invoke(new("Joe", 45, Severity.Info, null, null, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1392,7 +1459,10 @@ public async Task FilterDefinitionEnumTest() Operator = FilterOperator.Enum.IsNot, Value = null }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 456, Severity.Normal, null, null, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, Severity.Info, null, null, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1406,7 +1476,10 @@ public async Task FilterDefinitionEnumTest() Operator = null, Value = Severity.Normal }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 456, Severity.Normal, null, null, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, Severity.Info, null, null, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1428,7 +1501,10 @@ public async Task FilterDefinitionDateTimeTest() Operator = FilterOperator.DateTime.Is, Value = utcnow }; - var func = filterDefinition.GenerateFilterFunction(); + var func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 45, null, null, utcnow, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeFalse(); @@ -1439,7 +1515,10 @@ public async Task FilterDefinitionDateTimeTest() Operator = FilterOperator.DateTime.Is, Value = null }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 45, null, null, utcnow, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1453,7 +1532,10 @@ public async Task FilterDefinitionDateTimeTest() Operator = FilterOperator.DateTime.IsNot, Value = utcnow }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 45, null, null, utcnow, null)).Should().BeFalse(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1464,7 +1546,10 @@ public async Task FilterDefinitionDateTimeTest() Operator = FilterOperator.DateTime.IsNot, Value = null }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 45, null, null, utcnow, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1478,7 +1563,10 @@ public async Task FilterDefinitionDateTimeTest() Operator = FilterOperator.DateTime.After, Value = utcnow }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 45, null, null, utcnow, null)).Should().BeFalse(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeFalse(); @@ -1489,7 +1577,10 @@ public async Task FilterDefinitionDateTimeTest() Operator = FilterOperator.DateTime.After, Value = null }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 45, null, null, utcnow, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1503,7 +1594,10 @@ public async Task FilterDefinitionDateTimeTest() Operator = FilterOperator.DateTime.OnOrAfter, Value = utcnow }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 45, null, null, utcnow, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeFalse(); @@ -1514,7 +1608,10 @@ public async Task FilterDefinitionDateTimeTest() Operator = FilterOperator.DateTime.OnOrAfter, Value = null }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 45, null, null, utcnow, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1528,7 +1625,10 @@ public async Task FilterDefinitionDateTimeTest() Operator = FilterOperator.DateTime.Before, Value = utcnow }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 45, null, null, utcnow, null)).Should().BeFalse(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeFalse(); @@ -1539,7 +1639,10 @@ public async Task FilterDefinitionDateTimeTest() Operator = FilterOperator.DateTime.Before, Value = null }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 45, null, null, utcnow, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1553,7 +1656,10 @@ public async Task FilterDefinitionDateTimeTest() Operator = FilterOperator.DateTime.OnOrBefore, Value = utcnow }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 45, null, null, utcnow, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeFalse(); @@ -1564,7 +1670,10 @@ public async Task FilterDefinitionDateTimeTest() Operator = FilterOperator.DateTime.OnOrBefore, Value = null }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 45, null, null, utcnow, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1578,7 +1687,10 @@ public async Task FilterDefinitionDateTimeTest() Operator = FilterOperator.DateTime.Empty, Value = utcnow }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 45, null, null, utcnow, null)).Should().BeFalse(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1589,7 +1701,10 @@ public async Task FilterDefinitionDateTimeTest() Operator = FilterOperator.DateTime.Empty, Value = null }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 45, null, null, utcnow, null)).Should().BeFalse(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1603,7 +1718,10 @@ public async Task FilterDefinitionDateTimeTest() Operator = FilterOperator.DateTime.NotEmpty, Value = utcnow }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 45, null, null, utcnow, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeFalse(); @@ -1614,7 +1732,10 @@ public async Task FilterDefinitionDateTimeTest() Operator = FilterOperator.DateTime.NotEmpty, Value = null }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 45, null, null, utcnow, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeFalse(); @@ -1627,7 +1748,10 @@ public async Task FilterDefinitionDateTimeTest() Operator = null, Value = utcnow }; - func = filterDefinition.GenerateFilterFunction(); + func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 45, null, null, utcnow, null)).Should().BeTrue(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); } @@ -1647,7 +1771,10 @@ public async Task FilterDefinitionNumberTest() Operator = FilterOperator.Number.Equal, Value = 45 }; - var func = filterDefinition.GenerateFilterFunction(); + var func = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func.Invoke(new("Sam", 456, null, null, null, null)).Should().BeFalse(); func.Invoke(new("Sam", null, null, null, null, null)).Should().BeFalse(); func.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1659,7 +1786,10 @@ public async Task FilterDefinitionNumberTest() Operator = FilterOperator.Number.Equal, Value = null }; - var func2 = filterDefinition.GenerateFilterFunction(); + var func2 = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); // data type is an int func2.Invoke(new("Sam", 456, null, null, null, null)).Should().BeTrue(); func2.Invoke(new("Sam", null, null, null, null, null)).Should().BeTrue(); @@ -1675,7 +1805,10 @@ public async Task FilterDefinitionNumberTest() Operator = FilterOperator.Number.NotEqual, Value = 45 }; - var func3 = filterDefinition.GenerateFilterFunction(); + var func3 = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func3.Invoke(new("Sam", 456, null, null, null, null)).Should().BeTrue(); func3.Invoke(new("Sam", null, null, null, null, null)).Should().BeTrue(); func3.Invoke(new("Joe", 45, null, null, null, null)).Should().BeFalse(); @@ -1687,7 +1820,10 @@ public async Task FilterDefinitionNumberTest() Operator = FilterOperator.Number.NotEqual, Value = null }; - var func4 = filterDefinition.GenerateFilterFunction(); + var func4 = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func4.Invoke(new("Sam", 456, null, null, null, null)).Should().BeTrue(); func4.Invoke(new("Sam", null, null, null, null, null)).Should().BeTrue(); func4.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1702,7 +1838,10 @@ public async Task FilterDefinitionNumberTest() Operator = FilterOperator.Number.GreaterThan, Value = 45 }; - var func5 = filterDefinition.GenerateFilterFunction(); + var func5 = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func5.Invoke(new("Sam", 456, null, null, null, null)).Should().BeTrue(); func5.Invoke(new("Joe", 45, null, null, null, null)).Should().BeFalse(); func5.Invoke(new("Joe", null, null, null, null, null)).Should().BeFalse(); @@ -1714,7 +1853,10 @@ public async Task FilterDefinitionNumberTest() Operator = FilterOperator.Number.GreaterThan, Value = null }; - var func6 = filterDefinition.GenerateFilterFunction(); + var func6 = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func6.Invoke(new("Sam", 456, null, null, null, null)).Should().BeTrue(); func6.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); func6.Invoke(new("Joe", null, null, null, null, null)).Should().BeTrue(); @@ -1729,7 +1871,10 @@ public async Task FilterDefinitionNumberTest() Operator = FilterOperator.Number.LessThan, Value = 45 }; - var func7 = filterDefinition.GenerateFilterFunction(); + var func7 = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func7.Invoke(new("Sam", 4, null, null, null, null)).Should().BeTrue(); func7.Invoke(new("Joe", 45, null, null, null, null)).Should().BeFalse(); func7.Invoke(new("Joe", null, null, null, null, null)).Should().BeFalse(); @@ -1741,7 +1886,10 @@ public async Task FilterDefinitionNumberTest() Operator = FilterOperator.Number.LessThan, Value = null }; - var func8 = filterDefinition.GenerateFilterFunction(); + var func8 = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func8.Invoke(new("Sam", 4, null, null, null, null)).Should().BeTrue(); func8.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); func8.Invoke(new("Joe", null, null, null, null, null)).Should().BeTrue(); @@ -1756,7 +1904,10 @@ public async Task FilterDefinitionNumberTest() Operator = FilterOperator.Number.GreaterThanOrEqual, Value = 45 }; - var func9 = filterDefinition.GenerateFilterFunction(); + var func9 = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func9.Invoke(new("Sam", 4, null, null, null, null)).Should().BeFalse(); func9.Invoke(new("Sam", null, null, null, null, null)).Should().BeFalse(); func9.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1768,7 +1919,10 @@ public async Task FilterDefinitionNumberTest() Operator = FilterOperator.Number.GreaterThanOrEqual, Value = null }; - var func10 = filterDefinition.GenerateFilterFunction(); + var func10 = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func10.Invoke(new("Sam", 4, null, null, null, null)).Should().BeTrue(); func10.Invoke(new("Sam", null, null, null, null, null)).Should().BeTrue(); func10.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1783,7 +1937,10 @@ public async Task FilterDefinitionNumberTest() Operator = FilterOperator.Number.LessThanOrEqual, Value = 45 }; - var func11 = filterDefinition.GenerateFilterFunction(); + var func11 = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func11.Invoke(new("Sam", 46, null, null, null, null)).Should().BeFalse(); func11.Invoke(new("Sam", null, null, null, null, null)).Should().BeFalse(); func11.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1795,7 +1952,10 @@ public async Task FilterDefinitionNumberTest() Operator = FilterOperator.Number.LessThanOrEqual, Value = null }; - var func12 = filterDefinition.GenerateFilterFunction(); + var func12 = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func12.Invoke(new("Sam", 46, null, null, null, null)).Should().BeTrue(); func12.Invoke(new("Sam", null, null, null, null, null)).Should().BeTrue(); func12.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); @@ -1809,7 +1969,10 @@ public async Task FilterDefinitionNumberTest() Operator = null, Value = 45 }; - var func13 = filterDefinition.GenerateFilterFunction(); + var func13 = filterDefinition.GenerateFilterFunction(new FilterOptions + { + FilterCaseSensitivity = dataGrid.Instance.FilterCaseSensitivity + }); func13.Invoke(new("Sam", 456, null, null, null, null)).Should().BeTrue(); func13.Invoke(new("Sam", null, null, null, null, null)).Should().BeTrue(); func13.Invoke(new("Joe", 45, null, null, null, null)).Should().BeTrue(); diff --git a/src/MudBlazor/Components/DataGrid/Definition/FilterDefinition.cs b/src/MudBlazor/Components/DataGrid/Definition/FilterDefinition.cs index caec70dbf1bf..cef4243312f1 100644 --- a/src/MudBlazor/Components/DataGrid/Definition/FilterDefinition.cs +++ b/src/MudBlazor/Components/DataGrid/Definition/FilterDefinition.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. using System; -using System.Linq.Expressions; namespace MudBlazor { @@ -13,9 +12,6 @@ public class FilterDefinition : IFilterDefinition private int _cachedExpressionHashCode; private Func? _cachedFilterFunction; - //Backward compatibility, in v7 should be removed - internal MudDataGrid? DataGrid { get; set; } - public Guid Id { get; set; } = Guid.NewGuid(); public Column? Column { get; set; } @@ -30,23 +26,17 @@ public class FilterDefinition : IFilterDefinition public FieldType FieldType => FieldType.Identify(Column?.PropertyType); - //Backward compatibility, in v7 should be removed - public Func GenerateFilterFunction() - { - IFilterDefinition filterDefinition = this; - return filterDefinition.GenerateFilterFunction(new FilterOptions - { - FilterCaseSensitivity = DataGrid?.FilterCaseSensitivity ?? DataGridFilterCaseSensitivity.Default - }); - } - - Func IFilterDefinition.GenerateFilterFunction(FilterOptions? filterOptions) + public Func GenerateFilterFunction(FilterOptions? filterOptions = null) { if (FilterFunction is not null) + { return FilterFunction; + } if (Column is null) + { return x => true; + } // We need a PropertyExpression to filter. This allows us to pass in an arbitrary PropertyExpression. // Although, it would be better in that case to simple use the FilterFunction so that we do not @@ -68,37 +58,16 @@ Func IFilterDefinition.GenerateFilterFunction(FilterOptions? filterO return function; } - //Backward compatibility, in v7 should be removed and only public visible method should be GenerateFilterFunction - [Obsolete($"Will be removed in v7. Use {nameof(FilterExpressionGenerator.GenerateExpression)} instead.")] - public Expression> GenerateFilterExpression() - { - //There should be no dependency of DataGrid, because it makes testing hard and it's not worth to have such a heavy dependency just to extract case sensitivity - var filterOptions = new FilterOptions - { - FilterCaseSensitivity = DataGrid?.FilterCaseSensitivity ?? DataGridFilterCaseSensitivity.Default, - }; - var expression = FilterExpressionGenerator.GenerateExpression(this, filterOptions); - - return expression; - } - - //Backward compatibility, in v7 should be removed - public FilterDefinition Clone() + public IFilterDefinition Clone() { return new FilterDefinition { Column = Column, - DataGrid = DataGrid, FilterFunction = FilterFunction, Operator = Operator, Title = Title, Value = Value, }; } - - IFilterDefinition IFilterDefinition.Clone() - { - return Clone(); - } } } diff --git a/src/MudBlazor/Components/DataGrid/Definition/IFilterDefinition.cs b/src/MudBlazor/Components/DataGrid/Definition/IFilterDefinition.cs index 99cb8137b471..2c0d071898f4 100644 --- a/src/MudBlazor/Components/DataGrid/Definition/IFilterDefinition.cs +++ b/src/MudBlazor/Components/DataGrid/Definition/IFilterDefinition.cs @@ -4,25 +4,24 @@ using System; -namespace MudBlazor -{ +namespace MudBlazor; + #nullable enable - public interface IFilterDefinition - { - Guid Id { get; set; } +public interface IFilterDefinition +{ + Guid Id { get; set; } - Column? Column { get; set; } + Column? Column { get; set; } - string? Title { get; set; } + string? Title { get; set; } - string? Operator { get; set; } + string? Operator { get; set; } - object? Value { get; set; } + object? Value { get; set; } - FieldType FieldType => FieldType.Identify(Column?.PropertyType); + FieldType FieldType => FieldType.Identify(Column?.PropertyType); - Func GenerateFilterFunction(FilterOptions? filterOptions = null); + Func GenerateFilterFunction(FilterOptions? filterOptions = null); - IFilterDefinition Clone(); - } + IFilterDefinition Clone(); } diff --git a/src/MudBlazor/Components/DataGrid/FilterContext.cs b/src/MudBlazor/Components/DataGrid/FilterContext.cs index a99ebbb2115b..1228b5061efb 100644 --- a/src/MudBlazor/Components/DataGrid/FilterContext.cs +++ b/src/MudBlazor/Components/DataGrid/FilterContext.cs @@ -37,10 +37,13 @@ public FilterContext(MudDataGrid dataGrid) public class FilterActions { - public Func, Task> ApplyFilterAsync { get; init; } = null!; - public Func>, Task> ApplyFiltersAsync { get; init; } = null!; - public Func, Task> ClearFilterAsync { get; init; } = null!; - public Func>, Task> ClearFiltersAsync { get; init; } = null!; + public required Func, Task> ApplyFilterAsync { get; init; } + + public required Func>, Task> ApplyFiltersAsync { get; init; } + + public required Func, Task> ClearFilterAsync { get; init; } + + public required Func>, Task> ClearFiltersAsync { get; init; } } } } diff --git a/src/MudBlazor/Components/DataGrid/FooterContext.cs b/src/MudBlazor/Components/DataGrid/FooterContext.cs index 95309a54fda4..25062744fb4a 100644 --- a/src/MudBlazor/Components/DataGrid/FooterContext.cs +++ b/src/MudBlazor/Components/DataGrid/FooterContext.cs @@ -49,7 +49,7 @@ public FooterContext(MudDataGrid dataGrid) public class FooterActions { - public Func SetSelectAllAsync { get; init; } = null!; + public required Func SetSelectAllAsync { get; init; } } } } From d39524e70db3adad959ced51c0ec86d0689e2c34 Mon Sep 17 00:00:00 2001 From: Roman Alvarez <40799354+ralvarezing@users.noreply.github.com> Date: Tue, 2 Apr 2024 06:00:01 -0300 Subject: [PATCH 43/50] Table: Fix selection loss when applying filters and using Items property (#8538) --- .../Table/TableMultiSelectionItemsTest1.razor | 25 ++++ .../TableMultiSelectionItemsTest1.razor.cs | 62 ++++++++++ ...> TableMultiSelectionServerDataTest.razor} | 2 +- ...ableMultiSelectionServerDataTest.razor.cs} | 2 +- .../Components/TableTests.cs | 110 ++++++++++++++++-- .../Components/Table/MudTable.razor.cs | 4 +- 6 files changed, 194 insertions(+), 11 deletions(-) create mode 100644 src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionItemsTest1.razor create mode 100644 src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionItemsTest1.razor.cs rename src/MudBlazor.UnitTests.Viewer/TestComponents/Table/{TableMultiSelectionTest9.razor => TableMultiSelectionServerDataTest.razor} (96%) rename src/MudBlazor.UnitTests.Viewer/TestComponents/Table/{TableMultiSelectionTest9.razor.cs => TableMultiSelectionServerDataTest.razor.cs} (97%) diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionItemsTest1.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionItemsTest1.razor new file mode 100644 index 000000000000..7c408262a454 --- /dev/null +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionItemsTest1.razor @@ -0,0 +1,25 @@ +@namespace MudBlazor.UnitTests.TestComponents + + + + + + Id + Name + DateTime + X + Y + + + @context.Id + @context.Name + @context.DateTime + @context.NestedObject.X + @context.NestedObject.Y + + + + + + +SelectedItems { @string.Join(", ", _selectedItems.Select(x => x.Id)) } \ No newline at end of file diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionItemsTest1.razor.cs b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionItemsTest1.razor.cs new file mode 100644 index 000000000000..c993eff45f4d --- /dev/null +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionItemsTest1.razor.cs @@ -0,0 +1,62 @@ +// Copyright (c) MudBlazor 2021 +// MudBlazor licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; +using System.Collections.Generic; +using System.Linq; +using Microsoft.AspNetCore.Components; + +namespace MudBlazor.UnitTests.TestComponents +{ +#pragma warning disable CS1998 // async without await + public partial class TableMultiSelectionItemsTest1 + { + [Parameter] + public DateTime? StartDate { get => _dateRange.Start; set => _dateRange.Start = value; } + [Parameter] + public DateTime? EndDate { get => _dateRange.End; set => _dateRange.End = value; } + + public static string __description__ = "The selected items should not be cleared when the page changes or filters are applied."; + private List _simulatedServerData = Enumerable + .Range(1, 25) + .Select(x => new ComplexObject + { + Id = x, + DateTime = DateTime.Parse("2024-03-30 00:00:00").AddDays(x), + Name = $"Test {x}", + NestedObject = new NestedObject + { + X = x, + Y = -x + } + }) + .ToList(); + private HashSet _selectedItems = new(); + private ElementComparer Comparer = new(); + private DateRange _dateRange { get; set; } = new(); + + protected bool Filter(ComplexObject item) + => (StartDate is null || item.DateTime > StartDate) && (EndDate is null || item.DateTime < EndDate); + + class ElementComparer : IEqualityComparer + { + public bool Equals(ComplexObject a, ComplexObject b) => a?.Id == b?.Id; + public int GetHashCode(ComplexObject x) => HashCode.Combine(x?.Id); + } + + public class ComplexObject + { + public int Id { get; set; } + public string Name { get; set; } + public DateTime DateTime { get; set; } + public NestedObject NestedObject { get; set; } + } + + public class NestedObject + { + public float X { get; set; } + public float Y { get; set; } + } + } +} diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionTest9.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionServerDataTest.razor similarity index 96% rename from src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionTest9.razor rename to src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionServerDataTest.razor index e469d9a0e9a9..ea6de8c08de1 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionTest9.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionServerDataTest.razor @@ -20,4 +20,4 @@ -SelectedItems { @string.Join(", ", _selectedItems.Select(x => x.Id)) } \ No newline at end of file +SelectedItems { @string.Join(", ", _selectedItems.Select(x => x.Id)) } diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionTest9.razor.cs b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionServerDataTest.razor.cs similarity index 97% rename from src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionTest9.razor.cs rename to src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionServerDataTest.razor.cs index 8a97cfe22b16..70b77b6e1b07 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionTest9.razor.cs +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionServerDataTest.razor.cs @@ -13,7 +13,7 @@ namespace MudBlazor.UnitTests.TestComponents { #pragma warning disable CS1998 // async without await - public partial class TableMultiSelectionTest9 + public partial class TableMultiSelectionServerDataTest { public static string __description__ = "The selected items should not be cleared when the page changes or filters are applied."; private List _simulatedServerData = Enumerable diff --git a/src/MudBlazor.UnitTests/Components/TableTests.cs b/src/MudBlazor.UnitTests/Components/TableTests.cs index f73399c9d39e..2552cdb31cf2 100644 --- a/src/MudBlazor.UnitTests/Components/TableTests.cs +++ b/src/MudBlazor.UnitTests/Components/TableTests.cs @@ -2,7 +2,6 @@ #pragma warning disable BL0005 // Set parameter outside component using System; -using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; @@ -11,8 +10,6 @@ using FluentAssertions; using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components.Web; -using Moq; -using MudBlazor.Docs.Examples; using MudBlazor.UnitTests.TestComponents; using NUnit.Framework; @@ -957,14 +954,14 @@ public void TableMultiSelectionTest8() } /// - /// Changing page should retain the selected items + /// Changing page should retain the selected items using ServerData /// [Test] - public void TableMultiSelectionTest9() + public void TableMultiSelectionServerDataTest() { - var comp = Context.RenderComponent(); + var comp = Context.RenderComponent(); // select elements needed for the test - var table = comp.FindComponent>().Instance; + var table = comp.FindComponent>().Instance; var checkboxes = comp.FindComponents>().Select(x => x.Instance).ToArray(); // click header checkbox and verify selection text @@ -1001,6 +998,105 @@ public void TableMultiSelectionTest9() checkboxes.Sum(x => x.Value ? 1 : 0).Should().Be(1); } + /// + /// Changing page should retain the selected items using Items (not ServerData) + /// + [Test] + public void TableMultiSelectionItemsTest1_PageChange() + { + var comp = Context.RenderComponent(); + // select elements needed for the test + var table = comp.FindComponent>().Instance; + var checkboxes = comp.FindComponents>().Select(x => x.Instance).ToArray(); + + // Skip first two inputs (date filters) + var inputs = comp.FindAll("input").Skip(3); + foreach (var input in inputs) + { + input.Change(true); + } + table.SelectedItems.Count.Should().Be(10); + comp.Find("p").TextContent.Should().Be("SelectedItems { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }"); + checkboxes.Sum(x => x.Value ? 1 : 0).Should().Be(10); + + // click next page button + var buttons = comp.FindAll("button[aria-label=\"Next page\"]"); + buttons[0].Click(); + + checkboxes = comp.FindComponents>().Select(x => x.Instance).ToArray(); + + // verify table markup + var tr = comp.FindAll("tr").ToArray(); + tr.Length.Should().Be(11); // <-- one header, ten rows + var td = comp.FindAll("td").ToArray(); + td.Length.Should().Be(10 * 6); // six td per row for multi selection + // Find checkboxes, and skip date filter and table header checkbox + var inputs2 = comp.FindAll("input").Skip(3); + inputs2.Count().Should().Be(10); // one checkbox per row + one for the header + two date filters + + // verify selection - All items should remain selected + table.SelectedItems.Count.Should().Be(10); + comp.Find("p").TextContent.Should().Be("SelectedItems { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }"); + // No item from current page should be checked + checkboxes.Sum(x => x.Value ? 1 : 0).Should().Be(0); + + // Click the checkbox of the row with id 12 + inputs2.ElementAt(1).Change(true); + comp.Find("p").TextContent.Should().Be("SelectedItems { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12 }"); + // One checkbox of the current page should be checked + checkboxes.Sum(x => x.Value ? 1 : 0).Should().Be(1); + } + + /// + /// Changing filters should retain the selected items using Items (not ServerData) + /// + [Test] + public void TableMultiSelectionItemsTest1_FilterChange() + { + var comp = Context.RenderComponent(); + // select elements needed for the test + var table = comp.FindComponent>().Instance; + var checkboxes = comp.FindComponents>().Select(x => x.Instance).ToArray(); + + // Skip first two inputs (date filters) + var inputs = comp.FindAll("input").Skip(3); + foreach (var input in inputs) + { + input.Change(true); + } + table.SelectedItems.Count.Should().Be(10); + comp.Find("p").TextContent.Should().Be("SelectedItems { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }"); + checkboxes.Sum(x => x.Value ? 1 : 0).Should().Be(10); + + // Change filter + comp.Instance.StartDate = DateTime.Parse("2024-04-07 00:00:00"); + comp.Instance.EndDate = DateTime.Parse("2024-04-13 00:00:00"); + comp.Render(); + + checkboxes = comp.FindComponents>().Select(x => x.Instance).ToArray(); + + // Find checkboxes, and skip date filter and table header checkbox + inputs = comp.FindAll("input").Skip(3); + inputs.Count().Should().Be(5); // one checkbox per row + one for the header + two date filters + checkboxes.Sum(x => x.Value ? 1 : 0).Should().Be(2); + // Selection should remain intact + comp.Find("p").TextContent.Should().Be("SelectedItems { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }"); + + // Clear filters + comp.Instance.StartDate = null; + comp.Instance.EndDate = null; + comp.Render(); + + checkboxes = comp.FindComponents>().Select(x => x.Instance).ToArray(); + + // Find checkboxes, and skip date filter and table header checkbox + inputs = comp.FindAll("input").Skip(3); + inputs.Count().Should().Be(10); // one checkbox per row + one for the header + two date filters + checkboxes.Sum(x => x.Value ? 1 : 0).Should().Be(10); + // Selection should remain intact + comp.Find("p").TextContent.Should().Be("SelectedItems { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }"); + } + /// /// Checkbox click must not bubble up. /// diff --git a/src/MudBlazor/Components/Table/MudTable.razor.cs b/src/MudBlazor/Components/Table/MudTable.razor.cs index bafbcbf9914b..59f272b179da 100644 --- a/src/MudBlazor/Components/Table/MudTable.razor.cs +++ b/src/MudBlazor/Components/Table/MudTable.razor.cs @@ -319,7 +319,7 @@ public HashSet SelectedItems /// If there is set a Comparer, uses the comparer, otherwise uses a direct contains /// protected bool IsCheckedRow(T item) - => _comparer != null ? Context.Selection.Any(x => _comparer.Equals(x, item)) : Context.Selection.Contains(item); + => _comparer is not null ? Context.Selection.Any(x => _comparer.Equals(x, item)) : Context.Selection.Contains(item); /// /// The Comparer to use for comparing selected items internally. @@ -499,7 +499,7 @@ public override bool ContainsItem(object item) var t = item.As(); if (t is null) return false; - return FilteredItems?.Contains(t) ?? false; + return Items?.Contains(t) ?? false; } public override void UpdateSelection() => SelectedItemsChanged.InvokeAsync(SelectedItems); From e83012a94d8158a7a728159161c0bec66502f80f Mon Sep 17 00:00:00 2001 From: andrew2984 <120063682+andrew2984@users.noreply.github.com> Date: Tue, 2 Apr 2024 10:07:13 +0100 Subject: [PATCH 44/50] DataGrid: Fix row filter not working when columns are reordered. (#8400) Co-authored-by: andrewMa --- .../DataGridColReorderRowFiltersTest.razor | 43 ++++++++++ .../Components/DataGridTests.cs | 68 +++++++++++++++ .../DataGrid/FilterHeaderCell.razor | 25 +++--- .../DataGrid/FilterHeaderCell.razor.cs | 85 ++++--------------- 4 files changed, 140 insertions(+), 81 deletions(-) create mode 100644 src/MudBlazor.UnitTests.Viewer/TestComponents/DataGrid/DataGridColReorderRowFiltersTest.razor diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/DataGrid/DataGridColReorderRowFiltersTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/DataGrid/DataGridColReorderRowFiltersTest.razor new file mode 100644 index 000000000000..7f5a044638d4 --- /dev/null +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/DataGrid/DataGridColReorderRowFiltersTest.razor @@ -0,0 +1,43 @@ +@namespace MudBlazor.UnitTests.TestComponents + + + + + Switch Name and Age + + + + + + + + + + + +@code { + MudDataGrid _dataGrid; + + private IEnumerable _items = new List() + { + new Model("Sam", 56, Severity.Normal, false, null, null), + new Model("Alicia", 54, Severity.Info, null, null, new Guid("b7accfd5-928d-48ad-8a0c-9448ae37bf96")), + new Model("Ira", 27, Severity.Success, true, new DateTime(2011, 1, 2), null), + new Model("John", 32, Severity.Warning, false, null, null) + }; + + public record Model (string Name, int? Age, Severity? Status, bool? Hired, DateTime? HiredOn, Guid? ApplicationId); + + public void SwitchNameAgeCols() + { + var nameCol = _dataGrid.RenderedColumns.FirstOrDefault(x => x.PropertyName == "Name"); + var nameIndex = _dataGrid.RenderedColumns.IndexOf(nameCol); + var ageCol = _dataGrid.RenderedColumns.FirstOrDefault(x => x.PropertyName == "Age"); + var ageIndex = _dataGrid.RenderedColumns.IndexOf(ageCol); + + _dataGrid.RenderedColumns.Remove(ageCol); + _dataGrid.RenderedColumns.Insert(ageIndex, nameCol); + _dataGrid.RenderedColumns.RemoveAt(nameIndex); + _dataGrid.RenderedColumns.Insert(nameIndex, ageCol); + } +} diff --git a/src/MudBlazor.UnitTests/Components/DataGridTests.cs b/src/MudBlazor.UnitTests/Components/DataGridTests.cs index dfe1183c82bd..baa3b6a2d1ec 100644 --- a/src/MudBlazor.UnitTests/Components/DataGridTests.cs +++ b/src/MudBlazor.UnitTests/Components/DataGridTests.cs @@ -2211,6 +2211,74 @@ public async Task DataGridColGroupTest() dataGrid.FindAll("col").Count.Should().Be(3); } + [Test] + public async Task DataGridColReorderRowFiltersTest() + { + var comp = Context.RenderComponent(); + var dataGrid = comp.FindComponent>(); + + await comp.InvokeAsync(() => + { + // Should have 4 entries, 2 headers and an extra + dataGrid.FindAll("tr").Count.Should().Be(7); + + var switchButton = dataGrid.Find("button.switch-button"); + switchButton.Click(); + + var filterHeaders = dataGrid.FindAll("input"); + var ageFilter = filterHeaders[0]; + var nameFilter = filterHeaders[1]; + + ageFilter.Input(27); + // Should have 1 entry + 3 + dataGrid.FindAll("tr").Count.Should().Be(4); + + dataGrid.Instance.ClearFiltersAsync(); + nameFilter.Input("a"); + // Should have 3 entries + 3 + dataGrid.FindAll("tr").Count.Should().Be(6); + }); + } + + [Test] + public async Task DataGridColReorderRowModifiedFiltersTest() + { + var comp = Context.RenderComponent(); + var dataGrid = comp.FindComponent>(); + + await comp.InvokeAsync(async () => + { + // Should have 4 entries, 2 headers and an extra + dataGrid.FindAll("tr").Count.Should().Be(7); + + var ageCol = dataGrid.Instance.RenderedColumns.First(c => c.PropertyName == "Age"); + var modifiedAgeFilter = ageCol.FilterContext.FilterDefinition; + modifiedAgeFilter.Operator = ">"; + + var nameCol = dataGrid.Instance.RenderedColumns.First(c => c.PropertyName == "Name"); + var modifiedNameFilter = nameCol.FilterContext.FilterDefinition; + modifiedNameFilter.Operator = "not contains"; + + await dataGrid.Instance.AddFilterAsync(modifiedAgeFilter); + await dataGrid.Instance.AddFilterAsync(modifiedNameFilter); + + var switchButton = dataGrid.Find("button.switch-button"); + switchButton.Click(); + + var filterHeaders = dataGrid.FindAll("input"); + var ageFilter = filterHeaders[0]; + var nameFilter = filterHeaders[1]; + + ageFilter.Input(27); + // Should have 3 entries + 3 + dataGrid.FindAll("tr").Count.Should().Be(6); + + nameFilter.Input("a"); + // Should have 1 entry + 3 + dataGrid.FindAll("tr").Count.Should().Be(4); + }); + } + [Test] public async Task DataGridHeaderTemplateTest() { diff --git a/src/MudBlazor/Components/DataGrid/FilterHeaderCell.razor b/src/MudBlazor/Components/DataGrid/FilterHeaderCell.razor index 4a0deeb6b944..d8dbc7dfc49a 100644 --- a/src/MudBlazor/Components/DataGrid/FilterHeaderCell.razor +++ b/src/MudBlazor/Components/DataGrid/FilterHeaderCell.razor @@ -10,25 +10,22 @@ @if (Column.filterable && Column.FilterTemplate != null) { - @Column.FilterTemplate(Column.FilterContext) + @Column.FilterTemplate(Column.FilterContext) } else if (Column.filterable) { - @{ - var fieldType = FieldType.Identify(dataType); - } - @if (fieldType.IsString && !(_operator ?? "").EndsWith("empty")) + @if (fieldType.IsString && !(@operator ?? "").EndsWith("empty")) { - + } - else if (fieldType.IsNumber && !(_operator ?? "").EndsWith("empty")) + else if (fieldType.IsNumber && !(@operator ?? "").EndsWith("empty")) { - + } else if (fieldType.IsEnum) { - + @foreach (var item in EnumExtensions.GetSafeEnumValues(fieldType.InnerType)) { @@ -38,20 +35,20 @@ } else if (fieldType.IsBoolean) { - + @Localizer["MudDataGrid.True"] @Localizer["MudDataGrid.False"] } - else if (fieldType.IsDateTime && !(_operator ?? "").EndsWith("empty")) + else if (fieldType.IsDateTime && !(@operator ?? "").EndsWith("empty")) { - + - + } @@ -65,7 +62,7 @@ } - + } } diff --git a/src/MudBlazor/Components/DataGrid/FilterHeaderCell.razor.cs b/src/MudBlazor/Components/DataGrid/FilterHeaderCell.razor.cs index d4c0d0b99e49..1a64d377c1dd 100644 --- a/src/MudBlazor/Components/DataGrid/FilterHeaderCell.razor.cs +++ b/src/MudBlazor/Components/DataGrid/FilterHeaderCell.razor.cs @@ -7,6 +7,7 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using MudBlazor.Interfaces; +using MudBlazor.State; using MudBlazor.Utilities; namespace MudBlazor @@ -31,13 +32,6 @@ public partial class FilterHeaderCell : MudComponentBase .AddStyle(Style) .Build(); - private string _valueString; - private double? _valueNumber; - private Enum _valueEnum = null; - private bool? _valueBool; - private DateTime? _valueDate; - private TimeSpan? _valueTime; - #region Computed Properties and Functions private Type dataType @@ -48,6 +42,8 @@ private Type dataType } } + private FieldType fieldType => FieldType.Identify(dataType); + private string[] operators { get @@ -56,98 +52,70 @@ private string[] operators } } - private string _operator; + private string valueString => fieldType.IsString && Column.FilterContext.FilterDefinition.Value is not null ? (string)Column.FilterContext.FilterDefinition.Value : default; + private double? valueNumber => fieldType.IsNumber ? (double?)Column.FilterContext.FilterDefinition.Value : default; + private bool? valueBool => fieldType.IsBoolean && Column.FilterContext.FilterDefinition.Value is not null ? (bool?)Column.FilterContext.FilterDefinition.Value : default; + private Enum valueEnum => fieldType.IsEnum && Column.FilterContext.FilterDefinition.Value is not null ? (Enum)Column.FilterContext.FilterDefinition.Value : default; + private DateTime? valueDate => fieldType.IsDateTime ? (DateTime?)Column.FilterContext.FilterDefinition.Value : default; + private TimeSpan? valueTime => fieldType.IsDateTime && Column.FilterContext.FilterDefinition.Value is not null ? ((DateTime?)Column.FilterContext.FilterDefinition.Value).Value.TimeOfDay : null; + private string @operator => Column.FilterContext.FilterDefinition.Operator ?? operators.FirstOrDefault(); private string chosenOperatorStyle(string o) { - return o == _operator ? "color:var(--mud-palette-primary-text);background-color:var(--mud-palette-primary)" : ""; - } - - private bool isNumber - { - get - { - return TypeIdentifier.IsNumber(dataType); - } - } - - private bool isEnum - { - get - { - return TypeIdentifier.IsEnum(dataType); - } + return o == @operator ? "color:var(--mud-palette-primary-text);background-color:var(--mud-palette-primary)" : ""; } #endregion - protected override void OnInitialized() - { - _operator = operators.FirstOrDefault(); - } - #region Events private async Task ChangeOperatorAsync(string o) { - _operator = o; - Column.FilterContext.FilterDefinition.Operator = _operator; + Column.FilterContext.FilterDefinition.Operator = o; await ApplyFilterAsync(Column.FilterContext.FilterDefinition); } internal async Task StringValueChangedAsync(string value) { - _valueString = value; - Column.FilterContext.FilterDefinition.Operator = _operator; Column.FilterContext.FilterDefinition.Value = value; await ApplyFilterAsync(Column.FilterContext.FilterDefinition); } internal async Task NumberValueChangedAsync(double? value) { - _valueNumber = value; - Column.FilterContext.FilterDefinition.Operator = _operator; Column.FilterContext.FilterDefinition.Value = value; await ApplyFilterAsync(Column.FilterContext.FilterDefinition); } internal async Task EnumValueChangedAsync(Enum value) { - _valueEnum = value; - Column.FilterContext.FilterDefinition.Operator = _operator; Column.FilterContext.FilterDefinition.Value = value; await ApplyFilterAsync(Column.FilterContext.FilterDefinition); } internal async Task BoolValueChangedAsync(bool? value) { - _valueBool = value; - Column.FilterContext.FilterDefinition.Operator = _operator; Column.FilterContext.FilterDefinition.Value = value; await ApplyFilterAsync(Column.FilterContext.FilterDefinition); } internal async Task DateValueChangedAsync(DateTime? value) { - _valueDate = value; - if (value != null) { var date = value.Value.Date; // get the time component and add it to the date. - if (_valueTime != null) + if (valueTime != null) { - date.Add(_valueTime.Value); + date.Add(valueTime.Value); } - Column.FilterContext.FilterDefinition.Operator = _operator; Column.FilterContext.FilterDefinition.Value = date; await ApplyFilterAsync(Column.FilterContext.FilterDefinition); } else { - Column.FilterContext.FilterDefinition.Operator = _operator; Column.FilterContext.FilterDefinition.Value = value; await ApplyFilterAsync(Column.FilterContext.FilterDefinition); } @@ -155,19 +123,16 @@ internal async Task DateValueChangedAsync(DateTime? value) internal async Task TimeValueChangedAsync(TimeSpan? value) { - _valueTime = value; - - if (_valueDate != null) + if (valueDate != null) { - var date = _valueDate.Value.Date; + var date = valueDate.Value.Date; // get the time component and add it to the date. - if (_valueTime != null) + if (valueTime != null) { - date = date.Add(_valueTime.Value); + date = date.Add(valueTime.Value); } - Column.FilterContext.FilterDefinition.Operator = _operator; Column.FilterContext.FilterDefinition.Value = date; await ApplyFilterAsync(Column.FilterContext.FilterDefinition); } @@ -186,20 +151,6 @@ internal async Task ApplyFilterAsync(IFilterDefinition filterDefinition) private async Task ClearFilterAsync() { await ClearFilterAsync(Column.FilterContext.FilterDefinition); - - if (dataType == typeof(string)) - _valueString = null; - else if (isNumber) - _valueNumber = null; - else if (isEnum) - _valueEnum = null; - else if (dataType == typeof(bool)) - _valueBool = null; - else if (dataType == typeof(DateTime) || dataType == typeof(DateTime?)) - { - _valueDate = null; - _valueTime = null; - } } internal async Task ClearFilterAsync(IFilterDefinition filterDefinition) From 4d97cb8e0c56120ddb32823293bd6dc23de9dfde Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Tue, 2 Apr 2024 04:10:15 -0500 Subject: [PATCH 45/50] Menu: Improve touch support & Merge OnTouch,OnAction into OnClick (#8492) --- .../MenuClickAndTouchEventsExample.razor | 13 -- .../Pages/Components/Menu/MenuPage.razor | 12 -- .../Menu/MenuItemActionTest.razor | 43 ------ .../TestComponents/Menu/MenuTest1.razor | 14 +- .../Components/MenuTests.cs | 131 +++++++++--------- src/MudBlazor/Components/Menu/MudMenu.razor | 13 +- .../Components/Menu/MudMenu.razor.cs | 72 +++------- .../Components/Menu/MudMenuItem.razor | 3 +- .../Components/Menu/MudMenuItem.razor.cs | 63 +++------ 9 files changed, 119 insertions(+), 245 deletions(-) delete mode 100644 src/MudBlazor.Docs/Pages/Components/Menu/Examples/MenuClickAndTouchEventsExample.razor delete mode 100644 src/MudBlazor.UnitTests.Viewer/TestComponents/Menu/MenuItemActionTest.razor diff --git a/src/MudBlazor.Docs/Pages/Components/Menu/Examples/MenuClickAndTouchEventsExample.razor b/src/MudBlazor.Docs/Pages/Components/Menu/Examples/MenuClickAndTouchEventsExample.razor deleted file mode 100644 index af3240470f0e..000000000000 --- a/src/MudBlazor.Docs/Pages/Components/Menu/Examples/MenuClickAndTouchEventsExample.razor +++ /dev/null @@ -1,13 +0,0 @@ -@namespace MudBlazor.Docs.Examples -@inject ISnackbar Snackbar - - - OnClick Only - OnTouch Only - Both OnClick and OnTouch - - -@code { - private void OnClick(MouseEventArgs args) => Snackbar.Add("OnClick Invoked"); - private void OnTouch(TouchEventArgs args) => Snackbar.Add("OnTouch Invoked"); -} diff --git a/src/MudBlazor.Docs/Pages/Components/Menu/MenuPage.razor b/src/MudBlazor.Docs/Pages/Components/Menu/MenuPage.razor index c06c84b3f402..d75d1a171822 100644 --- a/src/MudBlazor.Docs/Pages/Components/Menu/MenuPage.razor +++ b/src/MudBlazor.Docs/Pages/Components/Menu/MenuPage.razor @@ -97,18 +97,6 @@ - - - - On mobile devices the default OnClick handler will not be invoked. You must add a OnTouch handler as well if mobile support is desired. - Tip: Use your browser's dev tools to emulate a mobile device. - - - - - - - diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Menu/MenuItemActionTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Menu/MenuItemActionTest.razor deleted file mode 100644 index 344cb3f56340..000000000000 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Menu/MenuItemActionTest.razor +++ /dev/null @@ -1,43 +0,0 @@ -@namespace MudBlazor.UnitTests.TestComponents - - - -Priority: Href > (OnClick and OnTouch) > OnAction -OnAction is a fallback for OnClick and for OnTouch. -@Count Invokes -Callers: @Callers - - - OnAction - OnClick - OnTouch - OnClick + OnTouch - OnAction + OnTouch - OnAction + OnClick - - -@code -{ - public static string __description__ = "Test OnAction behavior on MudMenuItem."; - - public int Count { get; set; } = 0; - public string Callers { get; set; } = ""; - - private void IncrementByAction() - { - Callers += "A"; - Count++; - } - - private void IncrementByTouch() - { - Callers += "T"; - Count++; - } - - private void IncrementByClick() - { - Callers += "C"; - Count++; - } -} \ No newline at end of file diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Menu/MenuTest1.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/Menu/MenuTest1.razor index bca519ce5a31..940c7a774c08 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Menu/MenuTest1.razor +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Menu/MenuTest1.razor @@ -1,11 +1,15 @@ - @namespace MudBlazor.UnitTests.TestComponents - + 1 - 2 - 3 + 2 + 3 4 (AutoClose is false) - \ No newline at end of file + + +@code { + [Parameter] + public bool DisableMenu { get; set; } = false; +} \ No newline at end of file diff --git a/src/MudBlazor.UnitTests/Components/MenuTests.cs b/src/MudBlazor.UnitTests/Components/MenuTests.cs index c19130a9085e..97b17e7463f9 100644 --- a/src/MudBlazor.UnitTests/Components/MenuTests.cs +++ b/src/MudBlazor.UnitTests/Components/MenuTests.cs @@ -15,8 +15,11 @@ public class MenuTests : BunitTest [Test] public async Task OpenMenu_ClickFirstItem_CheckClosed() { + // https://github.com/MudBlazor/MudBlazor/issues/4063 + var comp = Context.RenderComponent(); var menu = comp.FindComponent(); + comp.FindAll("button.mud-button-root")[0].Click(); comp.FindAll("div.mud-list-item").Count.Should().Be(4); comp.FindAll("div.mud-list-item")[0].Click(); @@ -24,26 +27,28 @@ public async Task OpenMenu_ClickFirstItem_CheckClosed() comp.FindAll("button.mud-button-root")[0].Click(); comp.FindAll("div.mud-list-item").Count.Should().Be(4); - var menuItems = comp.FindComponents(); - await comp.InvokeAsync(() => menuItems[0].Instance.OnTouchHandler(new TouchEventArgs())); + comp.FindAll("div.mud-list-item")[1].Click(); comp.WaitForAssertion(() => comp.FindAll("div.mud-popover-open").Count.Should().Be(0)); comp.FindAll("button.mud-button-root")[0].Click(); - menuItems = comp.FindComponents(); - await comp.InvokeAsync(() => menuItems[1].Instance.OnTouchHandler(new TouchEventArgs())); + comp.FindAll("div.mud-list-item").Count.Should().Be(4); + comp.FindAll("div.mud-list-item")[2].Click(); comp.WaitForAssertion(() => comp.FindAll("div.mud-popover-open").Count.Should().Be(0)); //Disabled item's click ot touch should not close popover comp.FindAll("button.mud-button-root")[0].Click(); - menuItems = comp.FindComponents(); -#pragma warning disable BL0005 - await comp.InvokeAsync(() => menuItems[2].Instance.Disabled = true); - await comp.InvokeAsync(() => menuItems[2].Instance.OnTouchHandler(new TouchEventArgs())); + + var menuItems = comp.FindComponents(); +#pragma warning disable BL0005 // Component parameter should not be set outside of its component. + menuItems[2].Instance.Disabled = true; +#pragma warning restore BL0005 // Component parameter should not be set outside of its component. + + comp.FindAll("div.mud-list-item")[2].Click(); comp.WaitForAssertion(() => comp.FindAll("div.mud-popover-open").Count.Should().Be(1)); - await comp.InvokeAsync(() => menu.Instance.ToggleMenuTouch(new TouchEventArgs())); + await comp.InvokeAsync(() => menu.Instance.ToggleMenu(new TouchEventArgs())); comp.WaitForAssertion(() => comp.FindAll("div.mud-popover-open").Count.Should().Be(0)); - await comp.InvokeAsync(() => menu.Instance.ToggleMenuTouch(new TouchEventArgs())); + await comp.InvokeAsync(() => menu.Instance.ToggleMenu(new TouchEventArgs())); comp.WaitForAssertion(() => comp.FindAll("div.mud-popover-open").Count.Should().Be(1)); } @@ -143,6 +148,55 @@ public void ActivatorContent_Disabled_CheckDisabled() activator.GetAttribute("disabled").Should().NotBeNull(); } + [Test] + public void Default_Disabled_CheckDisabled() + { + var comp = Context.RenderComponent(x => + x.Add(p => p.DisableMenu, true) + ); + + var button = comp.Find("button.mud-button-root"); + button.Click(); + comp.FindAll("div.mud-popover-open").Count.Should().Be(0); + } + + [Test] + public async Task ToggleEventArgs() + { + var comp = Context.RenderComponent(); + var menu = comp.FindComponent(); + + comp.FindAll("div.mud-popover-open").Count.Should().Be(0); + + await comp.InvokeAsync(() => menu.Instance.ToggleMenu(new MouseEventArgs())); + comp.FindAll("div.mud-popover-open").Count.Should().Be(1); + await comp.InvokeAsync(() => menu.Instance.ToggleMenu(new MouseEventArgs())); + comp.FindAll("div.mud-popover-open").Count.Should().Be(0); + + await comp.InvokeAsync(() => menu.Instance.ToggleMenu(new TouchEventArgs())); + comp.FindAll("div.mud-popover-open").Count.Should().Be(1); + await comp.InvokeAsync(() => menu.Instance.ToggleMenu(new TouchEventArgs())); + comp.FindAll("div.mud-popover-open").Count.Should().Be(0); + } + + [Test] + public void ToggleMenuDoesNotWorkIfDisabled() + { + var comp = Context.RenderComponent(x => + x.Add(p => p.DisableMenu, true) + ); + + comp.FindAll("div.mud-popover-open").Count.Should().Be(0); + + var menu = comp.FindComponent(); + + menu.Instance.ToggleMenu(new MouseEventArgs()); + comp.FindAll("div.mud-popover-open").Count.Should().Be(0); + + menu.Instance.ToggleMenu(new TouchEventArgs()); + comp.FindAll("div.mud-popover-open").Count.Should().Be(0); + } + [Test] public void MenuTest_LeftAndRightClick_CheckClosed() { @@ -278,62 +332,5 @@ public async Task IsOpenChanged_InvokedWhenClosed_CheckTrueInvocationCountIsOneC comp.Instance.TrueInvocationCount.Should().Be(1); comp.Instance.FalseInvocationCount.Should().Be(1); } - - [Test] - public void OnAction_WhenClick_OnActionInvoked() - { - var comp = Context.RenderComponent(); - comp.Find("button.mud-button-root").Click(); - comp.Find("#id_on_action").Click(); - comp.Instance.Count.Should().Be(1); - comp.Instance.Callers.Should().Be("A"); - } - - [Test] - public void OnActionAndOnClick_WhenClick_JustOnClickInvoked() - { - var comp = Context.RenderComponent(); - comp.Find("button.mud-button-root").Click(); - comp.Find("#id_on_action_on_click").Click(); - comp.Instance.Count.Should().Be(1); - comp.Instance.Callers.Should().Be("C"); - } - - [Test] - public void OnActionAndOnTouch_WhenTouch_JustOnTouchInvoked() - { - var comp = Context.RenderComponent(); - comp.Find("button.mud-button-root").Click(); - var item = comp.Find("#id_on_action_on_touch"); - item.TouchEnd(); - comp.Instance.Count.Should().Be(1); - comp.Instance.Callers.Should().Be("T"); - } - - [Test] - public void OnActionAndOnTouch_WhenTouchMove_NoneInvoked() - { - var comp = Context.RenderComponent(); - comp.Find("button.mud-button-root").Click(); - var item = comp.Find("#id_on_action_on_touch"); - item.TouchStart(); - item.TouchMove(); - item.TouchEnd(); - comp.Instance.Count.Should().Be(0); - comp.Instance.Callers.Should().Be(string.Empty); - } - - [Test] - public void OnActionAndOnClick_WhenTouchMove_NoneInvoked() - { - var comp = Context.RenderComponent(); - comp.Find("button.mud-button-root").Click(); - var item = comp.Find("#id_on_action_on_click"); - item.TouchStart(); - item.TouchMove(); - item.TouchEnd(); - comp.Instance.Count.Should().Be(0); - comp.Instance.Callers.Should().Be(string.Empty); - } } } diff --git a/src/MudBlazor/Components/Menu/MudMenu.razor b/src/MudBlazor/Components/Menu/MudMenu.razor index c3a45b18af99..741450a74227 100644 --- a/src/MudBlazor/Components/Menu/MudMenu.razor +++ b/src/MudBlazor/Components/Menu/MudMenu.razor @@ -6,11 +6,12 @@
@if (ActivatorContent != null) { -
+
@ActivatorContent
@@ -26,18 +27,16 @@ Disabled="@Disabled" DisableRipple="@DisableRipple" DisableElevation="@DisableElevation" - OnClick="@ToggleMenu" - @ontouchend="@(ActivationEvent == MouseEvent.RightClick ? ToggleMenuTouch : null)" - @oncontextmenu="@(ActivationEvent==MouseEvent.RightClick ? ToggleMenu : null)"> + OnClick="@ToggleMenu"> @Label } else { - + } @* The portal has to include the cascading values inside, because it's not able to teletransport the cascade *@ - + - +
diff --git a/src/MudBlazor/Components/Menu/MudMenu.razor.cs b/src/MudBlazor/Components/Menu/MudMenu.razor.cs index b96be9038187..cf8edd9ef49b 100644 --- a/src/MudBlazor/Components/Menu/MudMenu.razor.cs +++ b/src/MudBlazor/Components/Menu/MudMenu.razor.cs @@ -121,18 +121,6 @@ public partial class MudMenu : MudComponentBase, IActivatable [Category(CategoryTypes.Menu.PopupBehavior)] public bool PositionAtCursor { get; set; } - /// - /// If true, instead of positioning the menu at the left upper corner, position at the exact cursor location. - /// This makes sense for larger activators - /// - [Obsolete("Use PositionAtCursor instead.", true)] - [Parameter] - public bool PositionAtCurser - { - get => PositionAtCursor; - set => PositionAtCursor = value; - } - /// /// Place a MudButton, a MudIconButton or any other component capable of acting as an activator. This will /// override the standard button and all parameters which concern it. @@ -162,27 +150,6 @@ public bool PositionAtCurser [Category(CategoryTypes.Menu.PopupAppearance)] public Origin TransformOrigin { get; set; } = Origin.TopLeft; - /// - /// Sets the direction the select menu will start from relative to its parent. - /// - [ExcludeFromCodeCoverage] - [Obsolete("Use AnchorOrigin or TransformOrigin instead.", true)] - [Parameter] public Direction Direction { get; set; } = Direction.Bottom; - - /// - /// If true, the select menu will open either before or after the input depending on the direction. - /// - [ExcludeFromCodeCoverage] - [Obsolete("Use AnchorOrigin or TransformOrigin instead.", true)] - [Parameter] public bool OffsetY { get; set; } - - /// - /// If true, the select menu will open either above or bellow the input depending on the direction. - /// - [ExcludeFromCodeCoverage] - [Obsolete("Use AnchorOrigin or TransformOrigin instead.", true)] - [Parameter] public bool OffsetX { get; set; } - /// /// Set to true if you want to prevent page from scrolling when the menu is open /// @@ -273,32 +240,31 @@ public void OpenMenu(EventArgs args) IsOpenChanged.InvokeAsync(_isOpen); } - // Sets the popover style ONLY when there is an activator + /// + /// Sets the popover style ONLY when there is an activator. + /// private void SetPopoverStyle(MouseEventArgs args) { AnchorOrigin = Origin.TopLeft; PopoverStyle = $"margin-top: {args?.OffsetY.ToPx()}; margin-left: {args?.OffsetX.ToPx()};"; } - public void ToggleMenu(MouseEventArgs args) + /// + /// Toggle the visibility of the menu. + /// + /// Either or + public void ToggleMenu(EventArgs args) { if (Disabled) return; - if (ActivationEvent == MouseEvent.LeftClick && args.Button != 0 && !_isOpen) - return; - if (ActivationEvent == MouseEvent.RightClick && args.Button != 2 && !_isOpen) - return; - if (_isOpen) - CloseMenu(); - else - OpenMenu(args); - } - public void ToggleMenuTouch(TouchEventArgs args) - { - if (Disabled) + // oncontextmenu turns a touch event into MouseEventArgs but with a button of -1. + if (args is MouseEventArgs mouseEventArgs && mouseEventArgs.Button != -1) { - return; + if (ActivationEvent == MouseEvent.LeftClick && mouseEventArgs.Button != 0 && !_isOpen) + return; + if (ActivationEvent == MouseEvent.RightClick && mouseEventArgs.Button != 2 && !_isOpen) + return; } if (_isOpen) @@ -314,13 +280,19 @@ public void ToggleMenuTouch(TouchEventArgs args) /// /// Implementation of IActivatable.Activate, toggles the menu. /// - /// - /// public void Activate(object activator, MouseEventArgs args) { ToggleMenu(args); } + /// + /// Implementation of IActivatable.Activate, toggles the menu. + /// + public void Activate(object activator, TouchEventArgs args) + { + ToggleMenu(args); + } + public void MouseEnter(MouseEventArgs args) { _isMouseOver = true; diff --git a/src/MudBlazor/Components/Menu/MudMenuItem.razor b/src/MudBlazor/Components/Menu/MudMenuItem.razor index 0e289ebaad54..66ee4a466306 100644 --- a/src/MudBlazor/Components/Menu/MudMenuItem.razor +++ b/src/MudBlazor/Components/Menu/MudMenuItem.razor @@ -1,6 +1,7 @@ @namespace MudBlazor @inherits MudComponentBase - + @ChildContent \ No newline at end of file diff --git a/src/MudBlazor/Components/Menu/MudMenuItem.razor.cs b/src/MudBlazor/Components/Menu/MudMenuItem.razor.cs index eba9f2213e95..72230b8a6c1a 100644 --- a/src/MudBlazor/Components/Menu/MudMenuItem.razor.cs +++ b/src/MudBlazor/Components/Menu/MudMenuItem.razor.cs @@ -30,12 +30,14 @@ public partial class MudMenuItem : MudComponentBase [Parameter] [Category(CategoryTypes.List.Behavior)] public string Icon { get; set; } + /// /// The color of the icon. It supports the theme colors. /// [Parameter] [Category(CategoryTypes.List.Appearance)] public Color IconColor { get; set; } = Color.Inherit; + /// /// The Icon Size. /// @@ -53,73 +55,40 @@ public partial class MudMenuItem : MudComponentBase [Parameter][Category(CategoryTypes.Menu.ClickAction)] public string Target { get; set; } [Parameter][Category(CategoryTypes.Menu.ClickAction)] public bool ForceLoad { get; set; } - [Parameter] public EventCallback OnAction { get; set; } + /// + /// Raised when the menu item is activated by either the mouse or touch. + /// Won't be raised if Href is also set. + /// [Parameter] public EventCallback OnClick { get; set; } - [Parameter] public EventCallback OnTouch { get; set; } protected async Task OnClickHandler(MouseEventArgs ev) { if (Disabled) return; - if (AutoClose) MudMenu.CloseMenu(); - if (Href != null) + if (AutoClose) { - if (string.IsNullOrWhiteSpace(Target)) - UriHelper.NavigateTo(Href, ForceLoad); - else - await JsApiService.Open(Href, Target); - } - else - { - if (OnClick.HasDelegate) - await OnClick.InvokeAsync(ev); - else - await OnActionHandlerAsync(ev); + MudMenu.CloseMenu(); } - } - - private bool _isTouchMoved; - private void OnTouchStartHandler() => _isTouchMoved = false; - private void OnTouchMoveHandler() => _isTouchMoved = true; - protected internal async Task OnTouchHandler(TouchEventArgs ev) - { - if (Disabled || _isTouchMoved) - return; - if (AutoClose) MudMenu.CloseMenu(); if (Href != null) { if (string.IsNullOrWhiteSpace(Target)) + { UriHelper.NavigateTo(Href, ForceLoad); + } else + { await JsApiService.Open(Href, Target); + } } else { - if (OnTouch.HasDelegate) - await OnTouch.InvokeAsync(ev); - else - await OnActionHandlerAsync(ev); + if (OnClick.HasDelegate) + { + await OnClick.InvokeAsync(ev); + } } } - - private DateTime _lastCall = DateTime.MinValue; - private SemaphoreSlim _semaphoreLastCall = new(1); - protected internal async Task OnActionHandlerAsync(EventArgs ev) - { - var now = DateTime.UtcNow; - - if (!OnAction.HasDelegate) return; - - await _semaphoreLastCall.WaitAsync(); - var needCall = now - _lastCall > MudGlobal.MenuItemDebounceInterval; - if (needCall) _lastCall = now; - _semaphoreLastCall.Release(); - - if (needCall) - await OnAction.InvokeAsync(ev); - - } } } From 9cd082755650afbce8356d6034de5a395e6e794e Mon Sep 17 00:00:00 2001 From: Roman Alvarez <40799354+ralvarezing@users.noreply.github.com> Date: Tue, 2 Apr 2024 06:59:08 -0300 Subject: [PATCH 46/50] Input: Don't add margin-top when input has no Label (#8540) --- .../General/AllInputsTest.razor | 67 +++++++++++++++++++ .../Components/Field/MudField.razor.cs | 1 + .../Components/Input/MudInputCssHelper.cs | 2 +- .../Components/Mask/MudMask.razor.cs | 1 + .../NumericField/MudNumericField.razor | 1 + src/MudBlazor/Components/Radio/MudRadio.razor | 2 +- .../Components/Radio/MudRadio.razor.cs | 1 + .../Components/Select/MudSelect.razor | 1 + .../Components/TextField/MudTextField.razor | 2 + .../Styles/components/_inputcontrol.scss | 8 ++- src/MudBlazor/Styles/components/_radio.scss | 28 +++++--- src/MudBlazor/Styles/components/_switch.scss | 4 +- 12 files changed, 105 insertions(+), 13 deletions(-) create mode 100644 src/MudBlazor.UnitTests.Viewer/TestComponents/General/AllInputsTest.razor diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/General/AllInputsTest.razor b/src/MudBlazor.UnitTests.Viewer/TestComponents/General/AllInputsTest.razor new file mode 100644 index 000000000000..cbdb329a4c5e --- /dev/null +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/General/AllInputsTest.razor @@ -0,0 +1,67 @@ + +MudTextField + + + + +MudDatePicker + + + + +MudTimePicker + + + + +MudNumericField + + + + +MudSelect + + + + +MudColorPicker + + + + +MudCheckBox + + + +MudRadio + + + + + + + With Content + With Content + With Content + + +MudSwitch + + + +Using a MudStack to align items that have no label + + + + + + + + + + Text + + +@code { + public static string __description__ = "Test used to validate any inputs leyout in a single place."; +} \ No newline at end of file diff --git a/src/MudBlazor/Components/Field/MudField.razor.cs b/src/MudBlazor/Components/Field/MudField.razor.cs index e4df8f318b0b..9fd8ddbd7ef3 100644 --- a/src/MudBlazor/Components/Field/MudField.razor.cs +++ b/src/MudBlazor/Components/Field/MudField.razor.cs @@ -11,6 +11,7 @@ public partial class MudField : MudComponentBase protected string Classname => new CssBuilder("mud-input") .AddClass($"mud-input-{Variant.ToDescriptionString()}") + .AddClass($"mud-input-{Variant.ToDescriptionString()}-with-label", !string.IsNullOrEmpty(Label)) .AddClass($"mud-input-adorned-{Adornment.ToDescriptionString()}", Adornment != Adornment.None) .AddClass($"mud-input-margin-{Margin.ToDescriptionString()}", when: () => Margin != Margin.None) .AddClass("mud-input-underline", when: () => DisableUnderLine == false && Variant != Variant.Outlined) diff --git a/src/MudBlazor/Components/Input/MudInputCssHelper.cs b/src/MudBlazor/Components/Input/MudInputCssHelper.cs index 45a3d0831884..e73795d45a2e 100644 --- a/src/MudBlazor/Components/Input/MudInputCssHelper.cs +++ b/src/MudBlazor/Components/Input/MudInputCssHelper.cs @@ -1,5 +1,4 @@ using System; -using MudBlazor.Extensions; using MudBlazor.Utilities; namespace MudBlazor @@ -9,6 +8,7 @@ internal static class MudInputCssHelper public static string GetClassname(MudBaseInput baseInput, Func shrinkWhen) => new CssBuilder("mud-input") .AddClass($"mud-input-{baseInput.Variant.ToDescriptionString()}") + .AddClass($"mud-input-{baseInput.Variant.ToDescriptionString()}-with-label", !string.IsNullOrEmpty(baseInput.Label)) .AddClass($"mud-input-adorned-{baseInput.Adornment.ToDescriptionString()}", baseInput.Adornment != Adornment.None) .AddClass($"mud-input-margin-{baseInput.Margin.ToDescriptionString()}", when: () => baseInput.Margin != Margin.None) .AddClass("mud-input-underline", when: () => baseInput.DisableUnderLine == false && baseInput.Variant != Variant.Outlined) diff --git a/src/MudBlazor/Components/Mask/MudMask.razor.cs b/src/MudBlazor/Components/Mask/MudMask.razor.cs index 9cd2cd1e7111..08261d6b7345 100644 --- a/src/MudBlazor/Components/Mask/MudMask.razor.cs +++ b/src/MudBlazor/Components/Mask/MudMask.razor.cs @@ -25,6 +25,7 @@ public MudMask() protected string Classname => new CssBuilder("mud-input") .AddClass($"mud-input-{Variant.ToDescriptionString()}") + .AddClass($"mud-input-{Variant.ToDescriptionString()}-with-label", !string.IsNullOrEmpty(Label)) .AddClass($"mud-input-adorned-{Adornment.ToDescriptionString()}", Adornment != Adornment.None) .AddClass($"mud-input-margin-{Margin.ToDescriptionString()}", when: () => Margin != Margin.None) .AddClass("mud-input-underline", when: () => DisableUnderLine == false && Variant != Variant.Outlined) diff --git a/src/MudBlazor/Components/NumericField/MudNumericField.razor b/src/MudBlazor/Components/NumericField/MudNumericField.razor index 02b76e43fc4a..1bae827ab73a 100644 --- a/src/MudBlazor/Components/NumericField/MudNumericField.razor +++ b/src/MudBlazor/Components/NumericField/MudNumericField.razor @@ -27,6 +27,7 @@ InputType="@InputType.Text" Style="@Style" Variant="@Variant" + Label="@Label" TextUpdateSuppression="@TextUpdateSuppression" Value="@Text" ValueChanged="@OnInputValueChanged" diff --git a/src/MudBlazor/Components/Radio/MudRadio.razor b/src/MudBlazor/Components/Radio/MudRadio.razor index 8af5e0f8b9cf..24bf057a9fa4 100644 --- a/src/MudBlazor/Components/Radio/MudRadio.razor +++ b/src/MudBlazor/Components/Radio/MudRadio.razor @@ -16,7 +16,7 @@ - @if (ChildContent != null) + @if (ChildContent is not null) { @ChildContent } diff --git a/src/MudBlazor/Components/Radio/MudRadio.razor.cs b/src/MudBlazor/Components/Radio/MudRadio.razor.cs index 64053cabf411..e31aa8f635e8 100644 --- a/src/MudBlazor/Components/Radio/MudRadio.razor.cs +++ b/src/MudBlazor/Components/Radio/MudRadio.razor.cs @@ -19,6 +19,7 @@ public partial class MudRadio : MudComponentBase, IDisposable .AddClass($"mud-disabled", IsDisabled) .AddClass($"mud-readonly", MudRadioGroup?.GetReadOnlyState()) .AddClass($"mud-radio-content-placement-{ConvertPlacement(Placement).ToDescriptionString()}") + .AddClass("mud-radio-with-content", ChildContent is not null) .AddClass(Class) .Build(); diff --git a/src/MudBlazor/Components/Select/MudSelect.razor b/src/MudBlazor/Components/Select/MudSelect.razor index 1beb63691d44..d2a3acf7eb09 100644 --- a/src/MudBlazor/Components/Select/MudSelect.razor +++ b/src/MudBlazor/Components/Select/MudSelect.razor @@ -9,6 +9,7 @@ div { &.mud-input.mud-input-text { - margin-top: 16px; + &.mud-input-text-with-label { + margin-top: 16px; + } } &.mud-input.mud-input-filled { + &.mud-input-text-with-label { + } } &.mud-input.mud-input-outlined { + &.mud-input-text-with-label { + } } } } diff --git a/src/MudBlazor/Styles/components/_radio.scss b/src/MudBlazor/Styles/components/_radio.scss index eca0b906b9ab..58409cab1678 100644 --- a/src/MudBlazor/Styles/components/_radio.scss +++ b/src/MudBlazor/Styles/components/_radio.scss @@ -101,32 +101,44 @@ .mud-radio-content-placement- { &start { - margin-left: 16px; margin-right: -11px; - margin-inline-start: 16px; margin-inline-end: -11px; flex-direction: row-reverse; + + &.mud-radio-with-content { + margin-left: 16px; + margin-inline-start: 16px; + } } &end { margin-left: -11px; - margin-right: 16px; margin-inline-start: -11px; - margin-inline-end: 16px; flex-direction: row; + + &.mud-radio-with-content { + margin-right: 16px; + margin-inline-end: 16px; + } } &top { - margin-left: 16px; - margin-inline-start: 16px; margin-inline-end: unset; flex-direction: column-reverse; + + &.mud-radio-with-content { + margin-left: 16px; + margin-inline-start: 16px; + } } &bottom { - margin-left: 16px; - margin-inline-start: 16px; margin-inline-end: unset; flex-direction: column; + + &.mud-radio-with-content { + margin-left: 16px; + margin-inline-start: 16px; + } } } diff --git a/src/MudBlazor/Styles/components/_switch.scss b/src/MudBlazor/Styles/components/_switch.scss index f88508b1319f..f66fe20eb994 100644 --- a/src/MudBlazor/Styles/components/_switch.scss +++ b/src/MudBlazor/Styles/components/_switch.scss @@ -3,9 +3,9 @@ display: inline-flex; align-items: center; margin-left: -11px; - margin-right: 16px; + margin-right: 0px; margin-inline-start: -11px; - margin-inline-end: 16px; + margin-inline-end: 0px; vertical-align: middle; -webkit-tap-highlight-color: transparent; From 7d80115d20e497d0b9b09c80c59c67f68be32e8f Mon Sep 17 00:00:00 2001 From: Pawel <57046415+BieleckiLtd@users.noreply.github.com> Date: Tue, 2 Apr 2024 16:53:59 +0100 Subject: [PATCH 47/50] MudStack: Add parameter StretchItems to have certain children fill space (#8545) Co-authored-by: Pawel Bielecki --- .../Examples/StackInteractiveExample.razor | 58 +++++----- .../Stack/Examples/StackLayoutExample.razor | 100 ++++++++++++++++++ .../Examples/StackStretchItemsExample.razor | 22 ++++ .../Pages/Components/Stack/StackPage.razor | 56 ++++++---- .../Components/StackTests.cs | 25 +++++ .../Components/Stack/MudStack.razor.cs | 25 ++++- src/MudBlazor/Enums/AlignItems.cs | 30 +++--- src/MudBlazor/Enums/Justify.cs | 34 +++--- src/MudBlazor/Enums/StretchItems.cs | 49 +++++++++ .../Styles/utilities/flexbox/_flex-grow.scss | 23 +++- 10 files changed, 342 insertions(+), 80 deletions(-) create mode 100644 src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackLayoutExample.razor create mode 100644 src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackStretchItemsExample.razor create mode 100644 src/MudBlazor/Enums/StretchItems.cs diff --git a/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackInteractiveExample.razor b/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackInteractiveExample.razor index 0944a394858d..ce39e1d8e409 100644 --- a/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackInteractiveExample.razor +++ b/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackInteractiveExample.razor @@ -1,7 +1,7 @@ @namespace MudBlazor.Docs.Examples - + Item 1 Item 2 Item 3 @@ -9,37 +9,45 @@ - - + + Spacing: - + - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + @code { - Justify _justify = Justify.Center; - AlignItems _align = AlignItems.Center; - bool _row = false; - bool _reverse = false; - private int _spacing { get; set; } = 3; + Justify justify = Justify.Center; + AlignItems align = AlignItems.Center; + StretchItems stretch = StretchItems.None; + bool row = false; + bool reverse = false; + int spacing = 3; } \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackLayoutExample.razor b/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackLayoutExample.razor new file mode 100644 index 000000000000..d22b211121f2 --- /dev/null +++ b/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackLayoutExample.razor @@ -0,0 +1,100 @@ +@namespace MudBlazor.Docs.Examples + + + + + + @* Title Bar *@ + + + MudBlazor + + + + @* Middle Section *@ + + @* Side Menu *@ + + + + + + + + + + + + @* Main *@ + + + The MudStack provides flexibility in layout management, enabling the creation of elegant and responsive designs with minimal effort. Despite its simple design, it is powerful, making it perfect for both - simple and complex layouts. MudStack can perfectly complement and enhance your application's UI. + + + + + @* Status Bar *@ + + Ready + + MudBlazor + + + + + + + + + + Inspect MudStacks + Hide content + + + + + +@if (showAdorners) +{ + +} +@if (hideContent) +{ + +} +@code { + bool showAdorners; + bool hideContent; + int counter = 2; + void Count() + { + counter++; + } +} diff --git a/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackStretchItemsExample.razor b/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackStretchItemsExample.razor new file mode 100644 index 000000000000..40ccbedcb5da --- /dev/null +++ b/src/MudBlazor.Docs/Pages/Components/Stack/Examples/StackStretchItemsExample.razor @@ -0,0 +1,22 @@ +@namespace MudBlazor.Docs.Examples + + + + Item 1 + Item 2 + Item 3 + + + + + + + + + + + + +@code { + StretchItems stretch = StretchItems.Start; +} \ No newline at end of file diff --git a/src/MudBlazor.Docs/Pages/Components/Stack/StackPage.razor b/src/MudBlazor.Docs/Pages/Components/Stack/StackPage.razor index 2c9b74d82772..599fd90aff6b 100644 --- a/src/MudBlazor.Docs/Pages/Components/Stack/StackPage.razor +++ b/src/MudBlazor.Docs/Pages/Components/Stack/StackPage.razor @@ -1,34 +1,34 @@ @page "/components/stack" - + - The default MudStack displays its items vertically in a column. + The default @nameof(MudStack) displays its items vertically in a column. - + - With the Row property set to true the items will be displayed horizontally in a row. + With the @nameof(MudStack.Row) property set to true the items will be displayed horizontally in a row. - + - The default spacing can be changed by setting any number between 0 and 16 with the Spacing property. + The default spacing can be changed by setting any number between 0 and 16 with the @nameof(MudStack.Spacing) property. - + @@ -36,40 +36,46 @@ - The default wrap behavior can be changed by setting the Wrap property. + The default wrap behavior can be changed by setting the @nameof(MudStack.Wrap) property. - + - Here is two simple examples to demonstrate what MudStack can be used for. + Here are two simple examples to demonstrate what @nameof(MudStack) can be used for. - + + + + + + + - With the Justify property you can define how the space between and around items along the main-axis of the MudStack + With the @nameof(MudStack.Justify) property you can define how the space between and around items along the main axis of the @nameof(MudStack) - + - With the AlignItems property you can control the alignment of items on the cross axis of the MudStack + With the @nameof(MudStack.AlignItems) property you can control the alignment of items on the cross axis of the @nameof(MudStack) - + @@ -77,11 +83,11 @@ - If MudStack is in Row mode or not, the behavior of Justify and AlignItems can almost be described as they switched as the axis they control are changed.
- In the example bellow swap between column and row and see how Justify and AlignItems behaves differently. + If @nameof(MudStack) is in @nameof(MudStack.Row) mode or not, the behavior of @nameof(MudStack.Justify) and @nameof(MudStack.AlignItems) can almost be described as they switched as the axis they control are changed.
+ In the example bellow swap between column and row and see how @nameof(MudStack.Justify) and @nameof(MudStack.AlignItems) behaves differently.
- +
@@ -89,11 +95,23 @@
+ + + + The @nameof(MudStack.StretchItems) property allows for control over how child components are sized along the main axis within a @nameof(MudStack). + This feature provides the flexibility to specify which children should expand to fill additional space. + + + + + + + - + diff --git a/src/MudBlazor.UnitTests/Components/StackTests.cs b/src/MudBlazor.UnitTests/Components/StackTests.cs index 3000437aed15..b39a422f3a18 100644 --- a/src/MudBlazor.UnitTests/Components/StackTests.cs +++ b/src/MudBlazor.UnitTests/Components/StackTests.cs @@ -26,6 +26,7 @@ public void DefaultValues() stack.Spacing.Should().Be(3); stack.Justify.Should().BeNull(); stack.AlignItems.Should().BeNull(); + stack.StretchItems.Should().BeNull(); } [Test] @@ -110,6 +111,30 @@ public void CheckAlignItemsClass(AlignItems align, string expectedClass) stackClass.ClassList.Should().ContainInOrder(new[] { "d-flex", "flex-column", $"align-{expectedClass}", "gap-3" }); } + + [Test] + [TestCase(StretchItems.Start, "start")] + [TestCase(StretchItems.End, "end")] + [TestCase(StretchItems.StartAndEnd, "start-and-end")] + [TestCase(StretchItems.Middle, "middle")] + [TestCase(StretchItems.All, "all")] + public void CheckStretchItemsClass(StretchItems stretch, string expectedClass) + { + var stack = Context.RenderComponent(x => x.Add(c => c.StretchItems, stretch)); + + var stackClass = stack.Find(".d-flex"); + stackClass.ClassList.Should().Contain(["d-flex", $"flex-grow-{expectedClass}"]); + } + + [Test] + public void CheckStretchItemsNoneClass() + { + var stack = Context.RenderComponent(x => x.Add(c => c.StretchItems, StretchItems.None)); + + var stackClass = stack.Find(".d-flex"); + stackClass.ClassList.Should().NotContain(["flex-grow-start", "flex-grow-end", "flex-grow-start-and-end", "flex-grow-all"]); + } + [Test] [TestCase(Wrap.NoWrap, "nowrap")] [TestCase(Wrap.Wrap, "wrap")] diff --git a/src/MudBlazor/Components/Stack/MudStack.razor.cs b/src/MudBlazor/Components/Stack/MudStack.razor.cs index 4dc4966d68d9..7436c0261d7e 100644 --- a/src/MudBlazor/Components/Stack/MudStack.razor.cs +++ b/src/MudBlazor/Components/Stack/MudStack.razor.cs @@ -13,10 +13,11 @@ public partial class MudStack : MudComponentBase protected string Classname => new CssBuilder("d-flex") .AddClass($"flex-{(Row ? "row" : "column")}{(Reverse ? "-reverse" : string.Empty)}") - .AddClass($"justify-{Justify?.ToDescriptionString()}", Justify != null) - .AddClass($"align-{AlignItems?.ToDescriptionString()}", AlignItems != null) - .AddClass($"flex-{Wrap?.ToDescriptionString()}", Wrap != null) + .AddClass($"justify-{Justify?.ToDescriptionString()}", Justify is not null) + .AddClass($"align-{AlignItems?.ToDescriptionString()}", AlignItems is not null) + .AddClass($"flex-{Wrap?.ToDescriptionString()}", Wrap is not null) .AddClass($"gap-{Spacing}") + .AddClass($"flex-grow-{StretchItems?.ToDescriptionString()}", StretchItems is not null and not MudBlazor.StretchItems.None) .AddClass(Class) .Build(); @@ -42,19 +43,33 @@ public partial class MudStack : MudComponentBase public int Spacing { get; set; } = 3; /// - /// Defines the spacing between its items. + /// Defines the distribution of children along the main axis within a component. /// [Parameter] [Category(CategoryTypes.Stack.Behavior)] public Justify? Justify { get; set; } /// - /// Defines the spacing between its items. + /// Defines the alignment of children along the cross axis within a component. /// [Parameter] [Category(CategoryTypes.Stack.Behavior)] public AlignItems? AlignItems { get; set; } + /// + /// Defines the stretching behaviour of children along the main axis within a component. + /// + /// + /// Note: This property affects children of the component. + /// If there is only one child, and + /// will have the same effect, and the child will be stretched. + /// stretches all children except the first and last child. + /// If there are two or fewer elements, will have no effect. + /// + [Parameter] + [Category(CategoryTypes.Stack.Behavior)] + public StretchItems? StretchItems { get; set; } + /// /// Defines the flexbox wrapping behavior of its items. /// diff --git a/src/MudBlazor/Enums/AlignItems.cs b/src/MudBlazor/Enums/AlignItems.cs index c37b1224c274..3f88dcadc153 100644 --- a/src/MudBlazor/Enums/AlignItems.cs +++ b/src/MudBlazor/Enums/AlignItems.cs @@ -1,18 +1,20 @@ using System.ComponentModel; -namespace MudBlazor +namespace MudBlazor; + +/// +/// Specifies how children of a flex container are aligned along the cross axis. +/// +public enum AlignItems { - public enum AlignItems - { - [Description("baseline")] - Baseline, - [Description("center")] - Center, - [Description("start")] - Start, - [Description("end")] - End, - [Description("stretch")] - Stretch - } + [Description("baseline")] + Baseline, + [Description("center")] + Center, + [Description("start")] + Start, + [Description("end")] + End, + [Description("stretch")] + Stretch } diff --git a/src/MudBlazor/Enums/Justify.cs b/src/MudBlazor/Enums/Justify.cs index f3cdac34cbb6..4b12285776ce 100644 --- a/src/MudBlazor/Enums/Justify.cs +++ b/src/MudBlazor/Enums/Justify.cs @@ -1,20 +1,22 @@ using System.ComponentModel; -namespace MudBlazor +namespace MudBlazor; + +/// +/// Specifies the distribution of children within a flex container along the main axis. +/// +public enum Justify { - public enum Justify - { - [Description("start")] - FlexStart, - [Description("center")] - Center, - [Description("end")] - FlexEnd, - [Description("space-between")] - SpaceBetween, - [Description("space-around")] - SpaceAround, - [Description("space-evenly")] - SpaceEvenly - } + [Description("start")] + FlexStart, + [Description("center")] + Center, + [Description("end")] + FlexEnd, + [Description("space-between")] + SpaceBetween, + [Description("space-around")] + SpaceAround, + [Description("space-evenly")] + SpaceEvenly } diff --git a/src/MudBlazor/Enums/StretchItems.cs b/src/MudBlazor/Enums/StretchItems.cs new file mode 100644 index 000000000000..8d6a3fb49a91 --- /dev/null +++ b/src/MudBlazor/Enums/StretchItems.cs @@ -0,0 +1,49 @@ +// Copyright (c) MudBlazor 2021 +// MudBlazor licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.ComponentModel; + +namespace MudBlazor; + +/// +/// Specifies how children of a flex container are stretched along the main axis. +/// +public enum StretchItems +{ + /// + /// No stretching is applied to children. + /// + [Description("none")] + None, + + /// + /// The first child is stretched. + /// + [Description("start")] + Start, + + /// + /// The last child is stretched. + /// + [Description("end")] + End, + + /// + /// The first and last children are stretched. + /// + [Description("start-and-end")] + StartAndEnd, + + /// + /// All children except for the first and last are stretched. + /// + [Description("middle")] + Middle, + + /// + /// All children are stretched. + /// + [Description("all")] + All, +} diff --git a/src/MudBlazor/Styles/utilities/flexbox/_flex-grow.scss b/src/MudBlazor/Styles/utilities/flexbox/_flex-grow.scss index 511dc5d18dc2..12cf46f8ba8e 100644 --- a/src/MudBlazor/Styles/utilities/flexbox/_flex-grow.scss +++ b/src/MudBlazor/Styles/utilities/flexbox/_flex-grow.scss @@ -1,4 +1,4 @@ -@import '../../abstracts/variables'; +@import '../../abstracts/variables'; @mixin flex-grow ($breakpoint) { .flex-#{$breakpoint}grow-0 { @@ -8,6 +8,27 @@ .flex-#{$breakpoint}grow-1 { flex-grow: 1 !important; } + + .flex-#{$breakpoint}grow-start > *:first-child { + flex-grow: 1 !important; + } + + .flex-#{$breakpoint}grow-end > *:last-child { + flex-grow: 1 !important; + } + + .flex-#{$breakpoint}grow-start-and-end > :first-child, + .flex-#{$breakpoint}grow-start-and-end > :last-child { + flex-grow: 1 !important; + } + + .flex-#{$breakpoint}grow-middle > *:not(:first-child):not(:last-child) { + flex-grow: 1 !important; + } + + .flex-#{$breakpoint}grow-all > * { + flex-grow: 1 !important; + } } @include flex-grow(""); From 1da4a27bbdf8e8d7ec3c5bd6ee3534ce591b7683 Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Tue, 2 Apr 2024 14:31:02 -0500 Subject: [PATCH 48/50] Docs: Style refinements & Always show search bar (#8515) --- .../LandingPage/MiniApp/MiniApp.razor | 14 +++-- src/MudBlazor.Docs/Shared/Appbar.razor | 51 ++++++---------- src/MudBlazor.Docs/Shared/Appbar.razor.cs | 3 - src/MudBlazor.Docs/Shared/AppbarButtons.razor | 59 ++++++++++--------- src/MudBlazor.Docs/Shared/DocsLayout.razor | 2 +- src/MudBlazor.Docs/Shared/Footer.razor | 2 +- src/MudBlazor.Docs/Shared/LandingLayout.razor | 2 +- src/MudBlazor.Docs/Theme/Theme.cs | 12 ++-- 8 files changed, 70 insertions(+), 75 deletions(-) diff --git a/src/MudBlazor.Docs/Components/LandingPage/MiniApp/MiniApp.razor b/src/MudBlazor.Docs/Components/LandingPage/MiniApp/MiniApp.razor index f9904c9acd66..aae31bb7bac6 100644 --- a/src/MudBlazor.Docs/Components/LandingPage/MiniApp/MiniApp.razor +++ b/src/MudBlazor.Docs/Components/LandingPage/MiniApp/MiniApp.razor @@ -42,10 +42,16 @@
- - - - + + + + + + + + + + diff --git a/src/MudBlazor.Docs/Shared/Appbar.razor b/src/MudBlazor.Docs/Shared/Appbar.razor index b380feb4e1fc..86bd52e04479 100644 --- a/src/MudBlazor.Docs/Shared/Appbar.razor +++ b/src/MudBlazor.Docs/Shared/Appbar.razor @@ -1,23 +1,18 @@ 
- - + + - - - @if (DisplaySearchBar) - { - - } - else - { - - } + + + +
- Docs @@ -66,26 +61,16 @@ - - @if (DisplaySearchBar) - { - - - @result.Title @result.SubTitle - - - - } - else - { - - } - - - - + + + + @result.Title @result.SubTitle + + + +
diff --git a/src/MudBlazor.Docs/Shared/Appbar.razor.cs b/src/MudBlazor.Docs/Shared/Appbar.razor.cs index 6fc97375c149..a2dc9e5983e2 100644 --- a/src/MudBlazor.Docs/Shared/Appbar.razor.cs +++ b/src/MudBlazor.Docs/Shared/Appbar.razor.cs @@ -114,9 +114,6 @@ public bool IsSearchDialogOpen [Inject] private LayoutService LayoutService { get; set; } = null!; - [Parameter] - public bool DisplaySearchBar { get; set; } - [Parameter] public EventCallback DrawerToggleCallback { get; set; } diff --git a/src/MudBlazor.Docs/Shared/AppbarButtons.razor b/src/MudBlazor.Docs/Shared/AppbarButtons.razor index 7781061d0ae7..9f42ce208b09 100644 --- a/src/MudBlazor.Docs/Shared/AppbarButtons.razor +++ b/src/MudBlazor.Docs/Shared/AppbarButtons.razor @@ -1,33 +1,38 @@ @using MudBlazor.Docs.Enums - - -
- Notifications - Mark as read -
- @if (_messages != null) - { - @foreach (var (message, isRead) in _messages.Take(5)) + + + +
+ Notifications + Mark as read +
+ @if (_messages != null) { - - @message.Title - @($"{message.Authors.FirstOrDefault()?.DisplayName} • {message.PublishDate.ToString("MM/dd/yyyy")}") - - + @foreach (var (message, isRead) in _messages.Take(5)) + { + + @message.Title + @($"{message.Authors.FirstOrDefault()?.DisplayName} • {message.PublishDate.ToString("MM/dd/yyyy")}") + + + } } - } - else - { -
- Nothing new :( - -
- } -
-
+ else + { +
+ Nothing new :( + +
+ } +
+
+ - + + + + - - + + \ No newline at end of file diff --git a/src/MudBlazor.Docs/Shared/DocsLayout.razor b/src/MudBlazor.Docs/Shared/DocsLayout.razor index 6126c9998361..007c98077d9b 100644 --- a/src/MudBlazor.Docs/Shared/DocsLayout.razor +++ b/src/MudBlazor.Docs/Shared/DocsLayout.razor @@ -4,7 +4,7 @@ - +
diff --git a/src/MudBlazor.Docs/Shared/Footer.razor b/src/MudBlazor.Docs/Shared/Footer.razor index d558f5b4b875..1c8d97bc917c 100644 --- a/src/MudBlazor.Docs/Shared/Footer.razor +++ b/src/MudBlazor.Docs/Shared/Footer.razor @@ -46,7 +46,7 @@ - @($"Copyright © 2020-{DateTime.Now.Year} MudBlazor.") + @($"Copyright © 2020-{DateTime.Now.Year} MudBlazor") diff --git a/src/MudBlazor.Docs/Shared/LandingLayout.razor b/src/MudBlazor.Docs/Shared/LandingLayout.razor index 2a525a57ef0a..74eebfd1673b 100644 --- a/src/MudBlazor.Docs/Shared/LandingLayout.razor +++ b/src/MudBlazor.Docs/Shared/LandingLayout.razor @@ -7,7 +7,7 @@ - + diff --git a/src/MudBlazor.Docs/Theme/Theme.cs b/src/MudBlazor.Docs/Theme/Theme.cs index 5213aa7ea25f..afa000428991 100644 --- a/src/MudBlazor.Docs/Theme/Theme.cs +++ b/src/MudBlazor.Docs/Theme/Theme.cs @@ -48,7 +48,7 @@ public static MudTheme DocsTheme() AppbarBackground = "rgba(255,255,255,0.8)", DrawerBackground = "#ffffff", GrayLight = "#e8e8e8", - GrayLighter = "#f9f9f9" + GrayLighter = "#f9f9f9", }; private static readonly PaletteDark DocsDarkPalette = new() @@ -77,7 +77,7 @@ public static MudTheme DocsTheme() LinesDefault = "#33323e", TableLines = "#33323e", Divider = "#292838", - OverlayLight = "#1e1e2d80" + OverlayLight = "#1e1e2d80", }; #endregion #region LandingPage @@ -151,8 +151,8 @@ public static MudTheme DocsTheme() Dark = "#110E2D", DarkLighten = "#1A1643", GrayDefault = "#4B5563", - GrayLight = "#9CA3AF", - GrayLighter = "#adbdccff" + GrayLight = "#e8e8e8", + GrayLighter = "#f9f9f9", }; private static readonly PaletteDark LandingPageDarkPalette = new() { @@ -163,6 +163,8 @@ public static MudTheme DocsTheme() Background = "#151521", Dark = "#111019", DarkLighten = "#1A1643", + GrayLight = "#2a2833", + GrayLighter = "#1e1e2d", TextPrimary = "#ffffff", TextSecondary = "#92929f", TextDisabled = "#ffffff33", @@ -171,7 +173,7 @@ public static MudTheme DocsTheme() DrawerText = "#92929f", DrawerBackground = "#151521", OverlayLight = "#1e1e2d80", - Divider = "#5c5c6a" + Divider = "#5c5c6a", }; private static readonly Shadow LandingPageShadows = new() From 11e3202588b7cc0769f635df262c6ded98376787 Mon Sep 17 00:00:00 2001 From: Artyom M Date: Wed, 3 Apr 2024 18:56:29 +0300 Subject: [PATCH 49/50] ParameterState: Add GetState extension (#8450) --- .../Utilities/ParameterStateTestComp.razor.cs | 3 + .../State/ParameterSetTests.cs | 10 +++ .../State/ParameterStateUsageTests.cs | 47 +++++++++++++ .../MudComponentBase.RegisterParameter.cs | 18 ++--- src/MudBlazor/Base/MudComponentBase.cs | 8 +-- .../Extensions/MudComponentExtensions.cs | 70 +++++++++++++++++++ src/MudBlazor/State/ParameterSet.cs | 31 +++++--- src/MudBlazor/State/ParameterStateOfT.cs | 1 + 8 files changed, 165 insertions(+), 23 deletions(-) create mode 100644 src/MudBlazor/Extensions/MudComponentExtensions.cs diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Utilities/ParameterStateTestComp.razor.cs b/src/MudBlazor.UnitTests.Viewer/TestComponents/Utilities/ParameterStateTestComp.razor.cs index 58facc634d84..ba5c51ff7d10 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Utilities/ParameterStateTestComp.razor.cs +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Utilities/ParameterStateTestComp.razor.cs @@ -23,4 +23,7 @@ private void OnIntParamChanged(ParameterChangedEventArgs args) [Parameter] public int IntParam { get; set; } + + [Parameter] + public int NonStateDummyIntParam { get; set; } } diff --git a/src/MudBlazor.UnitTests/State/ParameterSetTests.cs b/src/MudBlazor.UnitTests/State/ParameterSetTests.cs index 1582c59b9550..b307194e70c5 100644 --- a/src/MudBlazor.UnitTests/State/ParameterSetTests.cs +++ b/src/MudBlazor.UnitTests/State/ParameterSetTests.cs @@ -36,6 +36,7 @@ public void Add_AddsParameterSuccessfully() parameterSet.Add(parameterState); // Assert + parameterSet.Count.Should().Be(1); parameterSet.Contains(parameterState).Should().BeTrue(); } @@ -56,6 +57,7 @@ public void Add_ThrowsExceptionIfParameterAlreadyRegistered() // Assert addSameParameter.Should().Throw(); + parameterSet.Count.Should().Be(1); } [Test] @@ -104,6 +106,7 @@ void OnParameter2Change(ParameterChangedEventArgs parameterChangedEventArgs await parameterSet.SetParametersAsync(_ => Task.CompletedTask, parameterView); // Assert + parameterSet.Count.Should().Be(2); handler1FireCount.Should().Be(1); handler2FireCount.Should().Be(1); parameter2ChangedEventArgs.Should().NotBeNull(); @@ -156,6 +159,7 @@ void OnParameter2Change(ParameterChangedEventArgs parameterChangedEventArgs await parameterSet.SetParametersAsync(_ => Task.CompletedTask, parameterView); // Assert + parameterSet.Count.Should().Be(2); handler1FireCount.Should().Be(0); handler2FireCount.Should().Be(0); parameter2ChangedEventArgs.Should().BeNull(); @@ -211,6 +215,7 @@ Task OnParameter2ChangeAsync(ParameterChangedEventArgs parameterChangedEven await parameterSet.SetParametersAsync(_ => Task.CompletedTask, parameterView); // Assert + parameterSet.Count.Should().Be(2); handler1FireCount.Should().Be(1); handler2FireCount.Should().Be(1); parameter2ChangedEventArgs.Should().NotBeNull(); @@ -267,6 +272,7 @@ Task OnParameter2ChangeAsync(ParameterChangedEventArgs parameterChangedEven await parameterSet.SetParametersAsync(_ => Task.CompletedTask, parameterView); // Assert + parameterSet.Count.Should().Be(2); handler1FireCount.Should().Be(0); handler2FireCount.Should().Be(0); parameter2ChangedEventArgs.Should().BeNull(); @@ -318,6 +324,7 @@ void OnParameterChange() await parameterSet.SetParametersAsync(_ => Task.CompletedTask, parameterView); // Assert + parameterSet.Count.Should().Be(3); handlerFireCount.Should().Be(1); } @@ -364,6 +371,7 @@ public async Task SetParametersAsync_LambdaHandlerNamesShouldFileAll() await parameterSet.SetParametersAsync(_ => Task.CompletedTask, parameterView); // Assert + parameterSet.Count.Should().Be(3); handlerFireCount.Should().Be(3); } @@ -578,6 +586,7 @@ public void GetEnumeratorNonGeneric_ReturnsAllParameters() } // Assert + parameters.Count.Should().Be(3); actualParameters.Should().BeEquivalentTo(expectedParameters); } @@ -615,6 +624,7 @@ public void IEnumerable_GetEnumerator_ReturnsAllParameters() var actualParameters = expectedParameters.ToList(); // Assert + parameters.Count.Should().Be(3); actualParameters.Should().BeEquivalentTo(expectedParameters); } } diff --git a/src/MudBlazor.UnitTests/State/ParameterStateUsageTests.cs b/src/MudBlazor.UnitTests/State/ParameterStateUsageTests.cs index d79477b51b8f..eb1426adb4c3 100644 --- a/src/MudBlazor.UnitTests/State/ParameterStateUsageTests.cs +++ b/src/MudBlazor.UnitTests/State/ParameterStateUsageTests.cs @@ -6,6 +6,7 @@ using Bunit.Rendering; using FluentAssertions; using Microsoft.AspNetCore.Components.Web; +using MudBlazor.Extensions; using MudBlazor.UnitTests.Components; using NUnit.Framework; @@ -71,6 +72,52 @@ public void ComparerIntegrationTest() comp.Find(".parameter-changes").Children.Length.Should().Be(3, "Within the epsilon tolerance. Therefore, change handler shouldn't fire."); } + [Test] + public void GetStateTestIntegrationTest() + { + var comp = Context.RenderComponent(); + IElement IncrementButton() => comp.Find("button.increment-int-param"); + IRenderedComponent StateComponent() => comp.FindComponent(); + + StateComponent().Instance.GetState(x => x.IntParam).Should().Be(0); + StateComponent().Instance.GetState(nameof(ParameterStateTestComp.IntParam)).Should().Be(0); + + IncrementButton().Click(); + + StateComponent().Instance.GetState(x => x.IntParam).Should().Be(1); + StateComponent().Instance.GetState(nameof(ParameterStateTestComp.IntParam)).Should().Be(1); + + IncrementButton().Click(); + + StateComponent().Instance.GetState(x => x.IntParam).Should().Be(2); + StateComponent().Instance.GetState(nameof(ParameterStateTestComp.IntParam)).Should().Be(2); + } + + [Test] + public void GetStateTestFailureIntegrationTest() + { + var comp = Context.RenderComponent(); + IRenderedComponent StateComponent() => comp.FindComponent(); + + Action keyNotFoundAct1 = () => StateComponent().Instance.GetState(x => x.NonStateDummyIntParam); + Action keyNotFoundAct2 = () => StateComponent().Instance.GetState(nameof(ParameterStateTestComp.NonStateDummyIntParam)); + + keyNotFoundAct1.Should().Throw(); + keyNotFoundAct2.Should().Throw(); + + Action argumentNullException1 = () => StateComponent().Instance.GetState((Func)null!); + Action argumentNullException2 = () => StateComponent().Instance.GetState(x => x.NonStateDummyIntParam, null); + Action argumentNullException3 = () => StateComponent().Instance.GetState(null!); + + argumentNullException1.Should().Throw(); + argumentNullException2.Should().Throw(); + argumentNullException3.Should().Throw(); + + Action argumentException = () => StateComponent().Instance.GetState(x => x.NonStateDummyIntParam, "overrideName"); + + argumentException.Should().Throw(); + } + [Test] public async Task Child_TwoWayBinding_Test() { diff --git a/src/MudBlazor/Base/MudComponentBase.RegisterParameter.cs b/src/MudBlazor/Base/MudComponentBase.RegisterParameter.cs index 5f52896a4d77..f540d39f173d 100644 --- a/src/MudBlazor/Base/MudComponentBase.RegisterParameter.cs +++ b/src/MudBlazor/Base/MudComponentBase.RegisterParameter.cs @@ -42,7 +42,7 @@ internal IParameterState RegisterParameter(string parameterName, Func g .WithParameterChangedHandler(parameterChangedHandler) .WithComparer(comparer) .Attach(); - _parameters.Add(parameterState); + Parameters.Add(parameterState); return parameterState; } @@ -75,7 +75,7 @@ internal IParameterState RegisterParameter(string parameterName, Func g .WithParameterChangedHandler(parameterChangedHandler) .WithComparer(comparer) .Attach(); - _parameters.Add(parameterState); + Parameters.Add(parameterState); return parameterState; } @@ -113,7 +113,7 @@ internal IParameterState RegisterParameter(string parameterName, Func g .WithParameterChangedHandler(parameterChangedHandler) .WithComparer(comparer) .Attach(); - _parameters.Add(parameterState); + Parameters.Add(parameterState); return parameterState; } @@ -147,7 +147,7 @@ internal IParameterState RegisterParameter(string parameterName, Func g .WithParameterChangedHandler(parameterChangedHandler) .WithComparer(comparer) .Attach(); - _parameters.Add(parameterState); + Parameters.Add(parameterState); return parameterState; } @@ -182,7 +182,7 @@ internal IParameterState RegisterParameter(string parameterName, Func g .WithEventCallbackFunc(eventCallbackFunc) .WithComparer(comparer) .Attach(); - _parameters.Add(parameterState); + Parameters.Add(parameterState); return parameterState; } @@ -218,7 +218,7 @@ internal IParameterState RegisterParameter(string parameterName, Func g .WithParameterChangedHandler(parameterChangedHandler) .WithComparer(comparer) .Attach(); - _parameters.Add(parameterState); + Parameters.Add(parameterState); return parameterState; } @@ -250,7 +250,7 @@ internal IParameterState RegisterParameter(string parameterName, Func g .WithParameterChangedHandler(parameterChangedHandler) .WithComparer(comparer) .Attach(); - _parameters.Add(parameterState); + Parameters.Add(parameterState); return parameterState; } @@ -286,7 +286,7 @@ internal IParameterState RegisterParameter(string parameterName, Func g .WithParameterChangedHandler(parameterChangedHandler) .WithComparer(comparer) .Attach(); - _parameters.Add(parameterState); + Parameters.Add(parameterState); return parameterState; } @@ -318,7 +318,7 @@ internal IParameterState RegisterParameter(string parameterName, Func g .WithParameterChangedHandler(parameterChangedHandler) .WithComparer(comparer) .Attach(); - _parameters.Add(parameterState); + Parameters.Add(parameterState); return parameterState; } diff --git a/src/MudBlazor/Base/MudComponentBase.cs b/src/MudBlazor/Base/MudComponentBase.cs index 790028b62d86..7c734ad31d88 100644 --- a/src/MudBlazor/Base/MudComponentBase.cs +++ b/src/MudBlazor/Base/MudComponentBase.cs @@ -12,7 +12,7 @@ namespace MudBlazor #nullable enable public abstract partial class MudComponentBase : ComponentBase, IMudStateHasChanged { - private readonly ParameterSet _parameters = new(); + internal readonly ParameterSet Parameters = new(); [Inject] private ILoggerFactory LoggerFactory { get; set; } = null!; @@ -69,20 +69,20 @@ protected override void OnAfterRender(bool firstRender) protected override void OnInitialized() { base.OnInitialized(); - _parameters.OnInitialized(); + Parameters.OnInitialized(); } /// public override Task SetParametersAsync(ParameterView parameters) { - return _parameters.SetParametersAsync(base.SetParametersAsync, parameters); + return Parameters.SetParametersAsync(base.SetParametersAsync, parameters); } /// protected override void OnParametersSet() { base.OnParametersSet(); - _parameters.OnParametersSet(); + Parameters.OnParametersSet(); } /// diff --git a/src/MudBlazor/Extensions/MudComponentExtensions.cs b/src/MudBlazor/Extensions/MudComponentExtensions.cs new file mode 100644 index 000000000000..ebb4828e6095 --- /dev/null +++ b/src/MudBlazor/Extensions/MudComponentExtensions.cs @@ -0,0 +1,70 @@ +using System; +using System.Collections.Generic; +using System.Runtime.CompilerServices; +using MudBlazor.State; + +namespace MudBlazor.Extensions; + +#nullable enable +/// +/// Provides extension methods for MudBlazor components to facilitate accessing parameter states. +/// +internal static class MudComponentExtensions +{ + /// + /// Gets the read-only parameter state of a specified property in the component. + /// + /// The type of the MudBlazor component. + /// The type of the parameter. + /// The MudBlazor component instance. + /// An expression representing the property whose parameter state needs to be accessed. + /// The property name. Do not set this value as it's set at compile-time through . + /// The of the specified property. + /// Thrown when is null. + /// Thrown when is invalid. + /// Thrown when the parameter state with is not found. + public static T? GetState(this TComponent component, Func propertyExpression, [CallerArgumentExpression(nameof(propertyExpression))] string? propertyNameCallerArgumentExpression = null) where TComponent : MudComponentBase + { + ArgumentNullException.ThrowIfNull(propertyExpression); + var propertyName = GetPropertyFromFuncLambda(propertyNameCallerArgumentExpression); + + return GetState(component, propertyName); + } + + /// + /// Gets the read-only parameter state of a specified property in the component. + /// + /// The type of the parameter. + /// The MudBlazor component instance. + /// The name of the property whose parameter state needs to be accessed. Use nameof(...) to get the property name. + /// The of the specified property. + /// Thrown when the parameter state with is not found. + public static T? GetState(this MudComponentBase component, string propertyName) + { + if (component.Parameters.TryGetValue(propertyName, out var lifeCycle)) + { + if (lifeCycle is ParameterState parameterState) + { + return parameterState.Value; + } + } + + throw new KeyNotFoundException($"ParameterState<{typeof(T).Name}> with {propertyName} was not found!"); + } + + private static string GetPropertyFromFuncLambda(string? propertyNameExpression) + { + ArgumentNullException.ThrowIfNull(propertyNameExpression); + + var lastDotIndex = propertyNameExpression.LastIndexOf('.'); + + if (lastDotIndex != -1) + { + var propertyName = propertyNameExpression[(lastDotIndex + 1)..]; + + return propertyName; + } + + throw new ArgumentException($"Invalid property expression ({propertyNameExpression})!"); + } +} diff --git a/src/MudBlazor/State/ParameterSet.cs b/src/MudBlazor/State/ParameterSet.cs index b12407d88e61..ace38875e7ce 100644 --- a/src/MudBlazor/State/ParameterSet.cs +++ b/src/MudBlazor/State/ParameterSet.cs @@ -8,6 +8,7 @@ using System.Collections.Frozen; #endif using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; @@ -22,9 +23,12 @@ namespace MudBlazor.State; /// /// For details and usage please read CONTRIBUTING.md /// -internal class ParameterSet : IEnumerable +internal class ParameterSet : IReadOnlyCollection { - private readonly List _parameters = new(); + private readonly Dictionary _parameters = new(); + + /// + public int Count => _parameters.Count; /// /// Adds a parameter to the parameter set. @@ -33,12 +37,10 @@ internal class ParameterSet : IEnumerable /// Thrown when the parameter is already registered. public void Add(IParameterComponentLifeCycle parameter) { - if (_parameters.Contains(parameter)) + if (!_parameters.TryAdd(parameter.Metadata.ParameterName, parameter)) { throw new InvalidOperationException($"{parameter.Metadata.ParameterName} is already registered."); } - - _parameters.Add(parameter); } /// @@ -46,7 +48,7 @@ public void Add(IParameterComponentLifeCycle parameter) /// public void OnInitialized() { - foreach (var parameter in _parameters) + foreach (var parameter in _parameters.Values) { parameter.OnInitialized(); } @@ -57,7 +59,7 @@ public void OnInitialized() /// public void OnParametersSet() { - foreach (var parameter in _parameters) + foreach (var parameter in _parameters.Values) { parameter.OnParametersSet(); } @@ -71,11 +73,11 @@ public void OnParametersSet() public async Task SetParametersAsync(Func baseSetParametersAsync, ParameterView parameters) { #if NET8_0_OR_GREATER - var parametersHandlerShouldFire = _parameters + var parametersHandlerShouldFire = _parameters.Values .Where(parameter => parameter.HasHandler && parameter.HasParameterChanged(parameters)) .ToFrozenSet(ParameterHandlerUniquenessComparer.Default); #else - var parametersHandlerShouldFire = _parameters + var parametersHandlerShouldFire = _parameters.Values .Where(parameter => parameter.HasHandler && parameter.HasParameterChanged(parameters)) .ToHashSet(ParameterHandlerUniquenessComparer.Default); #endif @@ -88,8 +90,17 @@ public async Task SetParametersAsync(Func baseSetParameters } } + /// Searches the set for a given value and returns the equal value it finds, if any. + /// The value to search for. + /// The value from the set that the search found, or the default value when the search yielded no match. + /// A value indicating whether the search was successful. + public bool TryGetValue(string parameterName, [MaybeNullWhen(false)] out IParameterComponentLifeCycle parameterComponentLifeCycle) + { + return _parameters.TryGetValue(parameterName, out parameterComponentLifeCycle); + } + /// - public IEnumerator GetEnumerator() => _parameters.GetEnumerator(); + public IEnumerator GetEnumerator() => _parameters.Values.GetEnumerator(); /// IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); diff --git a/src/MudBlazor/State/ParameterStateOfT.cs b/src/MudBlazor/State/ParameterStateOfT.cs index c09f4cfa7d16..02f5659dac6c 100644 --- a/src/MudBlazor/State/ParameterStateOfT.cs +++ b/src/MudBlazor/State/ParameterStateOfT.cs @@ -5,6 +5,7 @@ using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; +using System.Runtime.CompilerServices; using System.Threading.Tasks; using Microsoft.AspNetCore.Components; using MudBlazor.State.Rule; From 0dcc84c5690f19a671deb3587ff422993eebe968 Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Wed, 3 Apr 2024 12:13:22 -0500 Subject: [PATCH 50/50] Code Quality: Various refactorings (#8550) --- src/MudBlazor.Docs.Compiler/DocStrings.cs | 2 +- .../TestsForApiPages.cs | 2 +- .../XmlDocumentation.cs | 4 +- .../Controllers/AmericanStatesController.cs | 2 +- .../Prerender/ICrawlerIdentifier.cs | 6 +-- .../Prerender/LimitedConcurrentDictionary.cs | 4 +- .../Prerender/PrerenderMiddleware.cs | 4 +- .../LandingPage/CalculatorApp/Expression.cs | 2 +- .../Components/SectionContent.razor.cs | 2 +- .../Extensions/MethodInfoExtensions.cs | 2 +- src/MudBlazor.Docs/Models/XmlDocumentation.cs | 4 +- .../Announcements/AnnoucementPage.razor.cs | 2 +- .../AnnouncementOverviewPage.razor.cs | 2 +- .../InMemoryNotificationService.cs | 2 +- .../Shared/AppbarButtons.razor.cs | 2 +- .../FastEnumDescriptionGenerator.cs | 4 +- ...TableMultiSelectionServerDataTest.razor.cs | 2 +- ...TableRowsPerPageTwoWayBindingTest.razor.cs | 2 +- .../Components/AutocompleteTests.cs | 5 ++- .../Components/BunitTest.cs | 10 +++-- .../Components/Charts/BarChartTests.cs | 6 +-- .../Components/Charts/DonutChartTests.cs | 6 +-- .../Components/Charts/LineChartTests.cs | 6 +-- .../Components/Charts/StackedBarChartTests.cs | 4 +- .../Components/ColorPickerTests.cs | 16 +++---- .../Components/DataGridTests.cs | 2 +- .../Components/DatePickerTests.cs | 10 ++--- .../Components/DateRangePickerTests.cs | 2 +- .../Components/DialogTests.cs | 5 ++- .../Components/ListTests.cs | 10 ++--- .../Components/PageContentNavigationTests.cs | 4 +- .../Components/PaginationTests.cs | 2 +- .../Components/PopoverTests.cs | 20 ++++----- .../Components/ProgressLinearTests.cs | 16 +++---- .../Components/SelectTests.cs | 2 +- .../Components/SliderTests.cs | 2 +- .../Components/SwipeTests.cs | 2 +- .../Components/TableTests.cs | 10 ++--- .../Components/TextFieldTests.cs | 5 +-- .../Components/ThemeProviderTests.cs | 2 +- .../Components/TimePickerTests.cs | 2 +- .../Components/TimelineTests.cs | 2 +- .../Components/TreeViewTest.cs | 2 +- .../Mocks/MockDocsMessageHandler.cs | 2 +- .../Mocks/MockEventListener.cs | 2 +- .../Mocks/MockNavigationManager.cs | 10 ++--- .../Mocks/MockResizeObserver.cs | 6 +-- .../Other/CategoryAttributeTests.cs | 12 +++--- .../Services/EventListenerTests.cs | 26 ++++++------ .../Services/ResizeObserverTests.cs | 32 +++++++------- .../AsyncKeyedLock/AsyncKeyedLockTests.cs | 2 +- .../Utilities/Mask/MultiMaskTests.cs | 2 +- .../Utilities/NaturalComparerTest.cs | 10 ++--- .../Utilities/SortingAssistentTests.cs | 2 +- src/MudBlazor/Base/MudBaseInput.cs | 6 +-- src/MudBlazor/Base/MudBooleanInput.cs | 2 +- src/MudBlazor/Base/MudComponentBase.cs | 2 +- src/MudBlazor/Base/MudFormComponent.cs | 5 ++- .../Components/AppBar/MudAppBar.razor.cs | 2 +- .../Autocomplete/MudAutocomplete.razor.cs | 8 ++-- .../Components/Chart/Charts/Bar.razor.cs | 18 ++++---- .../Components/Chart/Charts/Donut.razor.cs | 2 +- .../Components/Chart/Charts/Line.razor.cs | 26 ++++++------ .../Chart/Charts/StackedBar.razor.cs | 20 ++++----- .../Chart/Interpolation/EndSlopeSpline.cs | 18 ++++---- .../Chart/Interpolation/MatrixSolver.cs | 6 +-- .../Chart/Interpolation/NaturalSpline.cs | 18 ++++---- .../Chart/Interpolation/PeriodicSpline.cs | 18 ++++---- .../Chart/Interpolation/SplineInterpolator.cs | 34 +++++++-------- .../ColorPicker/MudColorPicker.razor.cs | 24 +++++------ .../Components/DataGrid/MudDataGrid.razor.cs | 4 +- .../DataGrid/MudDataGridPager.razor.cs | 2 +- .../DatePicker/MudBaseDatePicker.razor.cs | 6 +-- .../Components/DatePicker/MudDatePicker.cs | 8 ++-- .../Dialog/MudDialogInstance.razor.cs | 15 +++---- .../Components/Form/MudForm.razor.cs | 2 +- .../Components/Highlighter/Splitter.cs | 2 +- .../Components/Input/MudInput.razor.cs | 4 +- .../Components/Mask/MudMask.razor.cs | 4 +- .../MessageBox/MudMessageBox.razor.cs | 2 +- .../NumericField/MudNumericField.razor.cs | 17 ++++---- .../MudPageContentNavigation.razor.cs | 4 +- .../MudPageContentSection.cs | 4 +- .../Pagination/MudPagination.razor.cs | 14 +++---- .../Components/Picker/MudPicker.razor.cs | 2 +- .../Progress/MudProgressCircular.razor.cs | 2 +- .../Components/Radio/MudRadio.razor.cs | 2 +- .../ScrollToTop/MudScrollToTop.razor.cs | 2 +- .../Components/Select/MudSelect.razor.cs | 16 +++---- .../Components/Select/MudSelectItem.razor.cs | 4 +- .../Components/Snackbar/SnackbarService.cs | 2 +- .../Components/Table/MudTFootRow.razor.cs | 4 +- .../Components/Table/MudTHeadRow.razor.cs | 4 +- .../Components/Table/MudTable.razor.cs | 2 +- .../Components/Table/MudTablePager.razor.cs | 2 +- .../Components/Tabs/MudTabs.razor.cs | 6 +-- .../Components/Tabs/TabHeaderPosition.cs | 2 +- .../TimePicker/MudTimePicker.razor.cs | 20 ++++----- src/MudBlazor/Extensions/MathExtensions.cs | 2 +- .../Interop/ResizeListenerInterop.cs | 8 ++-- src/MudBlazor/Services/DialogService.cs | 6 +-- .../Services/EventManager/EventManager.cs | 12 +++--- .../Services/IIJSRuntimeExtentions.cs | 2 +- .../Services/JsEvent/JsEventOptions.cs | 5 +-- .../Services/KeyInterceptor/KeyInterceptor.cs | 2 +- .../KeyInterceptor/KeyInterceptorOptions.cs | 21 ++++++---- .../Services/Localization/MudLocalizer.cs | 4 +- .../Services/ResizeObserver/ResizeObserver.cs | 4 +- .../Services/Scroll/ScrollListener.cs | 2 +- .../Services/Scroll/ScrollManagerException.cs | 2 +- .../Utilities/BindingConverters/Converter.cs | 5 ++- .../BindingConverters/NumericConverter.cs | 5 ++- src/MudBlazor/Utilities/CssBuilder.cs | 14 +++---- .../Utilities/MaskAlgorithms/BaseMask.cs | 3 +- .../Utilities/MaskAlgorithms/DateMask.cs | 3 +- .../Utilities/MaskAlgorithms/MultiMask.cs | 3 +- .../Utilities/MaskAlgorithms/PatternMask.cs | 5 +-- .../Utilities/MaskAlgorithms/RegexMask.cs | 3 +- src/MudBlazor/Utilities/MudColor.cs | 14 +++---- src/MudBlazor/Utilities/NaturalComparer.cs | 42 +++++++++---------- src/MudBlazor/Utilities/SortingAssistent.cs | 7 ++-- src/MudBlazor/Utilities/StyleBuilder.cs | 14 +++---- 122 files changed, 434 insertions(+), 430 deletions(-) diff --git a/src/MudBlazor.Docs.Compiler/DocStrings.cs b/src/MudBlazor.Docs.Compiler/DocStrings.cs index d7514a6f987d..e772872777cf 100644 --- a/src/MudBlazor.Docs.Compiler/DocStrings.cs +++ b/src/MudBlazor.Docs.Compiler/DocStrings.cs @@ -102,7 +102,7 @@ private static string convertSeeTags(string doc) { return SeeCrefRegularExpression().Replace(doc, match => { - string result = match.Groups[2].Value; // get the name of Type or type member (Field, Property, Method, or Event) + var result = match.Groups[2].Value; // get the name of Type or type member (Field, Property, Method, or Event) result = BacktickRegularExpression().Replace(result, ""); // remove `1 from generic type name return result; }); diff --git a/src/MudBlazor.Docs.Compiler/TestsForApiPages.cs b/src/MudBlazor.Docs.Compiler/TestsForApiPages.cs index 48c585b9e65d..ec6fc07dafac 100644 --- a/src/MudBlazor.Docs.Compiler/TestsForApiPages.cs +++ b/src/MudBlazor.Docs.Compiler/TestsForApiPages.cs @@ -85,7 +85,7 @@ public static bool IsObsolete(Type type) { var attributes = (ObsoleteAttribute[]) type.GetCustomAttributes(typeof(ObsoleteAttribute), false); - return (attributes != null && attributes.Length > 0); + return attributes != null && attributes.Length > 0; } private static string SafeTypeName(Type type, bool removeT = false) diff --git a/src/MudBlazor.Docs.Compiler/XmlDocumentation.cs b/src/MudBlazor.Docs.Compiler/XmlDocumentation.cs index 0b4063faee31..2e5b31de4a7b 100644 --- a/src/MudBlazor.Docs.Compiler/XmlDocumentation.cs +++ b/src/MudBlazor.Docs.Compiler/XmlDocumentation.cs @@ -499,7 +499,7 @@ public static string GetDocumentation(this EventInfo eventInfo) public static string XmlDocumentationKeyHelper(string typeFullNameString, string memberNameString) { var key = DocumentationKeyRegularExpression().Replace(typeFullNameString, string.Empty).Replace('+', '.'); - if (!(memberNameString is null)) + if (memberNameString is not null) { key += "." + memberNameString; } @@ -562,7 +562,7 @@ public static string GetDocumentation(this MemberInfo memberInfo) public static string GetDocumentation(this ParameterInfo parameterInfo) { var memberDocumentation = parameterInfo.Member.GetDocumentation(); - if (!(memberDocumentation is null)) + if (memberDocumentation is not null) { var regexPattern = Regex.Escape(@"") + diff --git a/src/MudBlazor.Docs.WasmHost/Controllers/AmericanStatesController.cs b/src/MudBlazor.Docs.WasmHost/Controllers/AmericanStatesController.cs index e0a64ad94e4b..e5bfea461f3e 100644 --- a/src/MudBlazor.Docs.WasmHost/Controllers/AmericanStatesController.cs +++ b/src/MudBlazor.Docs.WasmHost/Controllers/AmericanStatesController.cs @@ -35,7 +35,7 @@ public async Task SearchWithDelay(CancellationToken cancellationT List result = new(); foreach (var item in states) { - if (string.IsNullOrEmpty(input) == true || item.Contains(input, StringComparison.InvariantCultureIgnoreCase)) + if (string.IsNullOrEmpty(input) || item.Contains(input, StringComparison.InvariantCultureIgnoreCase)) { result.Add(item); } diff --git a/src/MudBlazor.Docs.WasmHost/Prerender/ICrawlerIdentifier.cs b/src/MudBlazor.Docs.WasmHost/Prerender/ICrawlerIdentifier.cs index d3a97b66bd5c..06040795b084 100644 --- a/src/MudBlazor.Docs.WasmHost/Prerender/ICrawlerIdentifier.cs +++ b/src/MudBlazor.Docs.WasmHost/Prerender/ICrawlerIdentifier.cs @@ -22,7 +22,7 @@ public interface ICrawlerIdentifier public class FileBasedCrawlerIdentifier : ICrawlerIdentifier { - private record CrawlerEntry(string Pattern, string Url, IEnumerable Instances); + private record CrawlerEntry(string Pattern, string Url, IEnumerable Instances); private readonly string _filename; private LimitedConcurrentDictionary _cache = new(1_000); @@ -49,11 +49,11 @@ public Task IsRequestByCrawler(HttpContext context) if (userAgentHeader.Any() == false) { return Task.FromResult(false); } var value = userAgentHeader.First(); - if (_cache.ContainsKey(value) == true) { return Task.FromResult(_cache[value]); } + if (_cache.ContainsKey(value)) { return Task.FromResult(_cache[value]); } foreach (var item in _patterns) { - if (item.IsMatch(value) == true) + if (item.IsMatch(value)) { _cache.TryAdd(value, true); return Task.FromResult(true); diff --git a/src/MudBlazor.Docs.WasmHost/Prerender/LimitedConcurrentDictionary.cs b/src/MudBlazor.Docs.WasmHost/Prerender/LimitedConcurrentDictionary.cs index 1e60c0534908..41b4628e8290 100644 --- a/src/MudBlazor.Docs.WasmHost/Prerender/LimitedConcurrentDictionary.cs +++ b/src/MudBlazor.Docs.WasmHost/Prerender/LimitedConcurrentDictionary.cs @@ -11,9 +11,9 @@ namespace MudBlazor.Docs.WasmHost.Prerender public class LimitedConcurrentDictionary { private ConcurrentDictionary _dict = new(); - private Int32 MaxCapacity { get; init; } + private int MaxCapacity { get; init; } - public LimitedConcurrentDictionary(Int32 maxCapacity) + public LimitedConcurrentDictionary(int maxCapacity) { MaxCapacity = maxCapacity; } diff --git a/src/MudBlazor.Docs.WasmHost/Prerender/PrerenderMiddleware.cs b/src/MudBlazor.Docs.WasmHost/Prerender/PrerenderMiddleware.cs index 2f3bf45fa177..fcb263723c4d 100644 --- a/src/MudBlazor.Docs.WasmHost/Prerender/PrerenderMiddleware.cs +++ b/src/MudBlazor.Docs.WasmHost/Prerender/PrerenderMiddleware.cs @@ -25,7 +25,7 @@ public PrerenderMiddleware(RequestDelegate next, ICrawlerIdentifier crawlerIdent public async Task Invoke(HttpContext context) { var path = context.Request.Path.ToString().ToLower(); - if (path.Contains("webapi") == true) + if (path.Contains("webapi")) { await _next(context); return; @@ -38,7 +38,7 @@ public async Task Invoke(HttpContext context) } else { - if (_responseCache.ContainsKey(path) == true) + if (_responseCache.ContainsKey(path)) { context.Response.StatusCode = 200; context.Response.ContentType = "text/html; charset=utf-8"; diff --git a/src/MudBlazor.Docs/Components/LandingPage/CalculatorApp/Expression.cs b/src/MudBlazor.Docs/Components/LandingPage/CalculatorApp/Expression.cs index a081e1067fc3..579e405aac08 100644 --- a/src/MudBlazor.Docs/Components/LandingPage/CalculatorApp/Expression.cs +++ b/src/MudBlazor.Docs/Components/LandingPage/CalculatorApp/Expression.cs @@ -42,7 +42,7 @@ public Expression(string expression) public Expression(SimpleParser parser) { - this._parser = parser; + _parser = parser; } public Expression(double nr) diff --git a/src/MudBlazor.Docs/Components/SectionContent.razor.cs b/src/MudBlazor.Docs/Components/SectionContent.razor.cs index b075fbbb3247..fdf8d5070ccb 100644 --- a/src/MudBlazor.Docs/Components/SectionContent.razor.cs +++ b/src/MudBlazor.Docs/Components/SectionContent.razor.cs @@ -147,7 +147,7 @@ RenderFragment CodeComponent(string code) => builder => protected virtual async void RunOnTryMudBlazor() { - string firstFile = ""; + var firstFile = ""; if (Codes != null) { diff --git a/src/MudBlazor.Docs/Extensions/MethodInfoExtensions.cs b/src/MudBlazor.Docs/Extensions/MethodInfoExtensions.cs index c232c65bbeb4..46946131572e 100644 --- a/src/MudBlazor.Docs/Extensions/MethodInfoExtensions.cs +++ b/src/MudBlazor.Docs/Extensions/MethodInfoExtensions.cs @@ -72,7 +72,7 @@ public static string GetSignature(this MethodInfo method, bool callable = false) stringBuilder.Append("this "); } } - else if (secondParameter == true) + else if (secondParameter) { secondParameter = false; } diff --git a/src/MudBlazor.Docs/Models/XmlDocumentation.cs b/src/MudBlazor.Docs/Models/XmlDocumentation.cs index 19aa77eec71f..4a1f60d80ac8 100644 --- a/src/MudBlazor.Docs/Models/XmlDocumentation.cs +++ b/src/MudBlazor.Docs/Models/XmlDocumentation.cs @@ -508,7 +508,7 @@ public static string GetDocumentation(this EventInfo eventInfo) public static string XmlDocumentationKeyHelper(string typeFullNameString, string memberNameString) { var key = DocumentationKeyRegularExpression().Replace(typeFullNameString, string.Empty).Replace('+', '.'); - if (!(memberNameString is null)) + if (memberNameString is not null) { key += "." + memberNameString; } @@ -571,7 +571,7 @@ public static string GetDocumentation(this MemberInfo memberInfo) public static string GetDocumentation(this ParameterInfo parameterInfo) { var memberDocumentation = parameterInfo.Member.GetDocumentation(); - if (!(memberDocumentation is null)) + if (memberDocumentation is not null) { var regexPattern = Regex.Escape(@"") + diff --git a/src/MudBlazor.Docs/Pages/Mud/Announcements/AnnoucementPage.razor.cs b/src/MudBlazor.Docs/Pages/Mud/Announcements/AnnoucementPage.razor.cs index 7403a006ea02..07c6c7ce1def 100644 --- a/src/MudBlazor.Docs/Pages/Mud/Announcements/AnnoucementPage.razor.cs +++ b/src/MudBlazor.Docs/Pages/Mud/Announcements/AnnoucementPage.razor.cs @@ -29,7 +29,7 @@ protected override async Task OnParametersSetAsync() protected override async Task OnAfterRenderAsync(bool firstRender) { - if (firstRender == true) + if (firstRender) { await NotificationService.MarkNotificationsAsRead(Id); } diff --git a/src/MudBlazor.Docs/Pages/Mud/Announcements/AnnouncementOverviewPage.razor.cs b/src/MudBlazor.Docs/Pages/Mud/Announcements/AnnouncementOverviewPage.razor.cs index 418954972023..184391314359 100644 --- a/src/MudBlazor.Docs/Pages/Mud/Announcements/AnnouncementOverviewPage.razor.cs +++ b/src/MudBlazor.Docs/Pages/Mud/Announcements/AnnouncementOverviewPage.razor.cs @@ -23,7 +23,7 @@ protected override async Task OnInitializedAsync() protected override async Task OnAfterRenderAsync(bool firstRender) { - if (firstRender == true) + if (firstRender) { await NotificationService.MarkNotificationsAsRead(); } diff --git a/src/MudBlazor.Docs/Services/Notifications/InMemoryNotificationService.cs b/src/MudBlazor.Docs/Services/Notifications/InMemoryNotificationService.cs index b6cdb141f662..3b2ae8bbff37 100644 --- a/src/MudBlazor.Docs/Services/Notifications/InMemoryNotificationService.cs +++ b/src/MudBlazor.Docs/Services/Notifications/InMemoryNotificationService.cs @@ -69,7 +69,7 @@ public async Task MarkNotificationsAsRead(string id) } public Task GetMessageById(string id) => - Task.FromResult(_messages.FirstOrDefault((x => x.Id == id))); + Task.FromResult(_messages.FirstOrDefault(x => x.Id == id)); public async Task> GetNotifications() { diff --git a/src/MudBlazor.Docs/Shared/AppbarButtons.razor.cs b/src/MudBlazor.Docs/Shared/AppbarButtons.razor.cs index 50747287fef4..bf605f444c64 100644 --- a/src/MudBlazor.Docs/Shared/AppbarButtons.razor.cs +++ b/src/MudBlazor.Docs/Shared/AppbarButtons.razor.cs @@ -29,7 +29,7 @@ private async Task MarkNotificationAsRead() protected override async Task OnAfterRenderAsync(bool firstRender) { - if (firstRender == true) + if (firstRender) { _newNotificationsAvailable = await NotificationService.AreNewNotificationsAvailable(); _messages = await NotificationService.GetNotifications(); diff --git a/src/MudBlazor.SourceCodeGenerator/FastEnumDescriptionGenerator.cs b/src/MudBlazor.SourceCodeGenerator/FastEnumDescriptionGenerator.cs index 9a3518a06a6e..23923ff11f51 100644 --- a/src/MudBlazor.SourceCodeGenerator/FastEnumDescriptionGenerator.cs +++ b/src/MudBlazor.SourceCodeGenerator/FastEnumDescriptionGenerator.cs @@ -15,8 +15,8 @@ public void Initialize(IncrementalGeneratorInitializationContext context) { var enums = context.SyntaxProvider.CreateSyntaxProvider( - transform: GetEnumData, - predicate: (syntaxNode, _) => syntaxNode is EnumDeclarationSyntax) + predicate: (syntaxNode, _) => syntaxNode is EnumDeclarationSyntax, + transform: GetEnumData) .Where(static enumData => enumData is not null); context.RegisterSourceOutput(enums, Build); } diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionServerDataTest.razor.cs b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionServerDataTest.razor.cs index 70b77b6e1b07..bb46d752a462 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionServerDataTest.razor.cs +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableMultiSelectionServerDataTest.razor.cs @@ -40,7 +40,7 @@ protected async Task> ServerData(TableState state, Canc TableData data = new(); data.TotalItems = _simulatedServerData.Count; // Serialize & deserialize to test a more real scenario where the references to the objects changes - string jsonData = JsonSerializer.Serialize(_simulatedServerData); + var jsonData = JsonSerializer.Serialize(_simulatedServerData); data.Items = JsonSerializer.Deserialize>(jsonData).Skip(state.PageSize * state.Page).Take(state.PageSize); return data; } diff --git a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableRowsPerPageTwoWayBindingTest.razor.cs b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableRowsPerPageTwoWayBindingTest.razor.cs index 6fff96f13ec1..2582241579f3 100644 --- a/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableRowsPerPageTwoWayBindingTest.razor.cs +++ b/src/MudBlazor.UnitTests.Viewer/TestComponents/Table/TableRowsPerPageTwoWayBindingTest.razor.cs @@ -69,7 +69,7 @@ public async Task LoadItemsAsync() var list = new List(); //delay to simulate web service call await Task.Delay(50).ConfigureAwait(false); - for (int i = 0; i < 20; i++) + for (var i = 0; i < 20; i++) { list.Add(new Item { Text = i.ToString() }); } diff --git a/src/MudBlazor.UnitTests/Components/AutocompleteTests.cs b/src/MudBlazor.UnitTests/Components/AutocompleteTests.cs index ec6d50dce45e..f3fd0e4f6f8d 100644 --- a/src/MudBlazor.UnitTests/Components/AutocompleteTests.cs +++ b/src/MudBlazor.UnitTests/Components/AutocompleteTests.cs @@ -475,11 +475,14 @@ public async Task Autocomplete_Should_SelectValue_On_Tab_With_SelectValueOnTab() } /// + /// /// When selecting a value by clicking on it in the list the input will blur. However, this /// must not cause the dropdown to close or else the click on the item will not be possible! - /// + /// + /// /// If this test fails it means the dropdown has closed before we can even click any value in the list. /// Such a regression happened and caused PR #1807 to be reverted + /// /// [Test] public async Task Autocomplete_Should_NotCloseDropdownOnInputBlur() diff --git a/src/MudBlazor.UnitTests/Components/BunitTest.cs b/src/MudBlazor.UnitTests/Components/BunitTest.cs index f03d1c72b445..cd7762d20981 100644 --- a/src/MudBlazor.UnitTests/Components/BunitTest.cs +++ b/src/MudBlazor.UnitTests/Components/BunitTest.cs @@ -33,20 +33,24 @@ public void TearDown() } /// + /// /// Note: This is a last resort measure to wrap around the logic of flaky tests which fail often (and /// especially on the integration server). - /// + /// + /// /// It reduces the chance of a perfectly working test to fail due to a race condition in bUnit by running it /// multiple times. If it succeeds at least once, the test passes. In the best-case scenario the test will run /// only once and pass. If it is particularly flaky it might run a few times until it passes. - /// + /// + /// /// If the test is really broken due to a bug /// it will fail for all runs. To get the original test output we run it one last time outside of the catch block /// so the test result gets reported. + /// /// protected async Task ImproveChanceOfSuccess(Func testAction) { - for (int i = 0; i < 10; i++) + for (var i = 0; i < 10; i++) { try { diff --git a/src/MudBlazor.UnitTests/Components/Charts/BarChartTests.cs b/src/MudBlazor.UnitTests/Components/Charts/BarChartTests.cs index e6db038bac87..08aafd063d48 100644 --- a/src/MudBlazor.UnitTests/Components/Charts/BarChartTests.cs +++ b/src/MudBlazor.UnitTests/Components/Charts/BarChartTests.cs @@ -51,7 +51,7 @@ public void BarChartEmptyData() [Test] public void BarChartExampleData() { - List chartSeries = new List() + var chartSeries = new List() { new () { Name = "United States", Data = new double[] { 40, 20, 25, 27, 46, 60, 48, 80, 15 } }, new () { Name = "Germany", Data = new double[] { 19, 24, 35, 13, 28, 15, -4, 16, 31 } }, @@ -112,7 +112,7 @@ public void BarChartExampleData() [Test] public void BarChartExampleSingleXAxis() { - List chartSeries = new List() + var chartSeries = new List() { new () { Name = "United States", Data = new double[] { 40, 20, 25, 27, 46, 60, 48, 80, 15 } }, new () { Name = "Germany", Data = new double[] { 19, 24, 35, 13, 28, 15, -4, 16, 31 } }, @@ -166,7 +166,7 @@ public void BarChartExampleSingleXAxis() [Test] public void BarChartColoring() { - List chartSeries = new List() + var chartSeries = new List() { new ChartSeries() { Name = "Deep Sea Blue", Data = new double[] { 40, 20, 25, 27, 46 } }, new ChartSeries() { Name = "Venetian Red", Data = new double[] { 19, 24, 35, 13, 28 } }, diff --git a/src/MudBlazor.UnitTests/Components/Charts/DonutChartTests.cs b/src/MudBlazor.UnitTests/Components/Charts/DonutChartTests.cs index e34aed88f915..0c8c3d83780c 100644 --- a/src/MudBlazor.UnitTests/Components/Charts/DonutChartTests.cs +++ b/src/MudBlazor.UnitTests/Components/Charts/DonutChartTests.cs @@ -116,15 +116,15 @@ public void DonutCirclePosition(double[] data) .Add(p => p.ChartOptions, new ChartOptions { ChartPalette = _baseChartPalette }) .Add(p => p.InputLabels, labels)); - var svgViewBox = comp.Find("svg").GetAttribute("viewBox")?.Split(" ")?.Select(s => Int32.Parse(s))?.ToArray(); + var svgViewBox = comp.Find("svg").GetAttribute("viewBox")?.Split(" ")?.Select(s => int.Parse(s))?.ToArray(); var circles = comp.FindAll("circle"); svgViewBox.Should().NotBeNullOrEmpty("must have a valid viewbox", svgViewBox); foreach (var c in circles) { - var cx = Int32.Parse(c.GetAttribute("cx") ?? "0"); - var cy = Int32.Parse(c.GetAttribute("cy") ?? "0"); + var cx = int.Parse(c.GetAttribute("cx") ?? "0"); + var cy = int.Parse(c.GetAttribute("cy") ?? "0"); cx.Should().Be(svgViewBox[2] / 2); diff --git a/src/MudBlazor.UnitTests/Components/Charts/LineChartTests.cs b/src/MudBlazor.UnitTests/Components/Charts/LineChartTests.cs index 3cbc36bae2ef..73fa9e494f10 100644 --- a/src/MudBlazor.UnitTests/Components/Charts/LineChartTests.cs +++ b/src/MudBlazor.UnitTests/Components/Charts/LineChartTests.cs @@ -57,7 +57,7 @@ public void LineChartEmptyData() [TestCaseSource("GetInterpolationOptions")] public void LineChartExampleData(InterpolationOption opt) { - List chartSeries = new List() + var chartSeries = new List() { new ChartSeries() { Name = "Series 1", Data = new double[] { 90, 79, -72, 69, 62, 62, -55, 65, 70 } }, new ChartSeries() { Name = "Series 2", Data = new double[] { 10, 41, 35, 51, 49, 62, -69, 91, -148 } }, @@ -152,7 +152,7 @@ public void LineChartExampleData(InterpolationOption opt) [TestCaseSource("GetInterpolationOptions")] public void LineChartExampleZeroValues(InterpolationOption opt) { - List chartSeries = new List() + var chartSeries = new List() { new ChartSeries() { Name = "Series 1", Data = new double[] { 0, 0, 0, 0, 0, 0, 0, 0, 0 } } }; @@ -201,7 +201,7 @@ public void LineChartExampleZeroValues(InterpolationOption opt) [Test] public void LineChartColoring() { - List chartSeries = new List() + var chartSeries = new List() { new ChartSeries() { Name = "Deep Sea Blue", Data = new double[] { 40, 20, 25, 27, 46 } }, new ChartSeries() { Name = "Venetian Red", Data = new double[] { 19, 24, 35, 13, 28 } }, diff --git a/src/MudBlazor.UnitTests/Components/Charts/StackedBarChartTests.cs b/src/MudBlazor.UnitTests/Components/Charts/StackedBarChartTests.cs index af88e22d30e6..4086c1ec750b 100644 --- a/src/MudBlazor.UnitTests/Components/Charts/StackedBarChartTests.cs +++ b/src/MudBlazor.UnitTests/Components/Charts/StackedBarChartTests.cs @@ -50,7 +50,7 @@ public void BarChartEmptyData() [Test] public void BarChartExampleData() { - List chartSeries = new List() + var chartSeries = new List() { new () { Name = "United States", Data = new double[] { 40, 20, 25, 27, 46, 60, 48, 80, 15 } }, new () { Name = "Germany", Data = new double[] { 19, 24, 35, 13, 28, 15, 13, 16, 31 } }, @@ -112,7 +112,7 @@ public void BarChartExampleData() [Test] public void StackedBarChartColoring() { - List chartSeries = new List() + var chartSeries = new List() { new ChartSeries() { Name = "Deep Sea Blue", Data = new double[] { 40, 20, 25, 27, 46 } }, new ChartSeries() { Name = "Venetian Red", Data = new double[] { 19, 24, 35, 13, 28 } }, diff --git a/src/MudBlazor.UnitTests/Components/ColorPickerTests.cs b/src/MudBlazor.UnitTests/Components/ColorPickerTests.cs index 92c0c207af12..32f7d396826e 100644 --- a/src/MudBlazor.UnitTests/Components/ColorPickerTests.cs +++ b/src/MudBlazor.UnitTests/Components/ColorPickerTests.cs @@ -76,7 +76,7 @@ public override void Setup() private void CheckColorRelatedValues(IRenderedComponent comp, double expectedX, double expectedY, MudColor expectedColor, ColorPickerMode mode, bool checkInstanceValue = true, bool isRtl = false) { - if (checkInstanceValue == true) + if (checkInstanceValue) { comp.WaitForAssertion(() => comp.Instance.ColorValue.Should().Be(expectedColor)); } @@ -97,7 +97,7 @@ private void CheckColorRelatedValues(IRenderedComponent c castedInputs[0].Value.Should().Be(expectedColor.H.ToString(CultureInfo.CurrentUICulture)); castedInputs[1].Value.Should().Be(expectedColor.S.ToString(CultureInfo.CurrentUICulture)); castedInputs[2].Value.Should().Be(expectedColor.L.ToString(CultureInfo.CurrentUICulture)); - castedInputs[3].Value.Should().Match(x => double.Parse(x, CultureInfo.CurrentUICulture) == Math.Round((expectedColor.A / 255.0), 2)); + castedInputs[3].Value.Should().Match(x => double.Parse(x, CultureInfo.CurrentUICulture) == Math.Round(expectedColor.A / 255.0, 2)); } } else if (mode == ColorPickerMode.HEX) @@ -447,7 +447,7 @@ public void Click_ColorPanel() overlay.Click(new MouseEventArgs { OffsetX = x, OffsetY = y }); MudColor color = "#232232ff"; - MudColor expectedColor = new MudColor(color.R, color.G, color.B, _defaultColor); + var expectedColor = new MudColor(color.R, color.G, color.B, _defaultColor); CheckColorRelatedValues(comp, x, y, expectedColor, ColorPickerMode.RGB); } @@ -1178,11 +1178,11 @@ public void StableHue_WhenColorSpectrumClicked() var overlay = comp.Find(CssSelector); - double expectedHue = _defaultColor.H; + var expectedHue = _defaultColor.H; - for (int x = 0; x < 312; x += 5) + for (var x = 0; x < 312; x += 5) { - for (int y = 0; y < 250; y += 5) + for (var y = 0; y < 250; y += 5) { overlay.Click(new MouseEventArgs { OffsetX = x, OffsetY = y }); @@ -1204,7 +1204,7 @@ public void Click_Selector_ColorPanel() overlay.Click(new MouseEventArgs { OffsetX = x, OffsetY = y }); MudColor color = "#232232ff"; - MudColor expectedColor = new MudColor(color.R, color.G, color.B, _defaultColor); + var expectedColor = new MudColor(color.R, color.G, color.B, _defaultColor); CheckColorRelatedValues(comp, x, y, expectedColor, ColorPickerMode.RGB); @@ -1217,7 +1217,7 @@ public void Click_Selector_ColorPanel() selector.Click(new MouseEventArgs { OffsetX = 5, OffsetY = 20 }); - MudColor secondExpectedColor = new MudColor(31, 30, 42, _defaultColor); + var secondExpectedColor = new MudColor(31, 30, 42, _defaultColor); CheckColorRelatedValues(comp, x - 8, y + 7, secondExpectedColor, ColorPickerMode.RGB); } diff --git a/src/MudBlazor.UnitTests/Components/DataGridTests.cs b/src/MudBlazor.UnitTests/Components/DataGridTests.cs index baa3b6a2d1ec..be3ffd88942a 100644 --- a/src/MudBlazor.UnitTests/Components/DataGridTests.cs +++ b/src/MudBlazor.UnitTests/Components/DataGridTests.cs @@ -469,7 +469,7 @@ public async Task DataGridEditableSelectionTest() dataGrid.FindAll("input.mud-checkbox-input")[^1].Change(false); dataGrid.Instance.SelectedItems.Count.Should().Be(0); //test that changing value in each row selects an item in grid - for (int i = 1; i < dataGrid.Instance.Items.Count(); i++) + for (var i = 1; i < dataGrid.Instance.Items.Count(); i++) { dataGrid.FindAll("input.mud-checkbox-input")[i].Change(true); dataGrid.Instance.SelectedItems.Count.Should().Be(i); diff --git a/src/MudBlazor.UnitTests/Components/DatePickerTests.cs b/src/MudBlazor.UnitTests/Components/DatePickerTests.cs index 296536f1873c..d9099bd23d6c 100644 --- a/src/MudBlazor.UnitTests/Components/DatePickerTests.cs +++ b/src/MudBlazor.UnitTests/Components/DatePickerTests.cs @@ -206,7 +206,7 @@ public async Task DataPicker_ShouldClearText_WhenDateSetNull() picker.Text.Should().Be(null); picker.Date.Should().Be(null); - string invalid = "INVALID_DATE"; + var invalid = "INVALID_DATE"; comp.SetParam(p => p.Text, "INVALID_DATE"); picker.Date.Should().Be(null); @@ -230,7 +230,7 @@ public async Task DataPicker_ShouldDeBounceSetDate_WhenDateSetToTheSameValueQuic picker.Text.Should().Be(null); picker.Date.Should().Be(null); - string invalid = "INVALID_DATE"; + var invalid = "INVALID_DATE"; comp.SetParam(p => p.Text, "INVALID_DATE"); picker.Date.Should().Be(null); @@ -614,7 +614,7 @@ public void IsDateDisabledFunc_DisablesCalendarDateButtons() comp.Instance.IsDateDisabledFunc.Should().Be(isDisabledFunc); comp.FindAll("button.mud-picker-calendar-day").Select(button => ((IHtmlButtonElement)button).IsDisabled) - .Should().OnlyContain(disabled => disabled == true); + .Should().OnlyContain(disabled => disabled); } [Test] @@ -630,7 +630,7 @@ public void IsDateDisabledFunc_DisablesCalendarMonthButtons() comp.Instance.IsDateDisabledFunc.Should().Be(isDisabledFunc); comp.FindAll("button.mud-picker-month").Select(button => ((IHtmlButtonElement)button).IsDisabled) - .Should().OnlyContain(disabled => disabled == true); + .Should().OnlyContain(disabled => disabled); // None should be selected comp.FindAll("button.mud-picker-month > .mud-typography").Select( @@ -1065,7 +1065,7 @@ public async Task DatePickerTest_Editable() { var comp = Context.RenderComponent(); - CultureInfo cultureInfo = new CultureInfo("en-US"); + var cultureInfo = new CultureInfo("en-US"); var datePicker = comp.FindComponent().Instance; datePicker.Editable = true; diff --git a/src/MudBlazor.UnitTests/Components/DateRangePickerTests.cs b/src/MudBlazor.UnitTests/Components/DateRangePickerTests.cs index 2228539c09d6..d90e8dec618b 100644 --- a/src/MudBlazor.UnitTests/Components/DateRangePickerTests.cs +++ b/src/MudBlazor.UnitTests/Components/DateRangePickerTests.cs @@ -458,7 +458,7 @@ public void IsDateDisabledFunc_DisablesCalendarDateButtons() comp.Instance.IsDateDisabledFunc.Should().Be(isDisabledFunc); comp.FindAll("button.mud-picker-calendar-day").Select(button => ((IHtmlButtonElement)button).IsDisabled) - .Should().OnlyContain(disabled => disabled == true); + .Should().OnlyContain(disabled => disabled); } [Test] diff --git a/src/MudBlazor.UnitTests/Components/DialogTests.cs b/src/MudBlazor.UnitTests/Components/DialogTests.cs index 83ba38406121..d7a0d1332d51 100644 --- a/src/MudBlazor.UnitTests/Components/DialogTests.cs +++ b/src/MudBlazor.UnitTests/Components/DialogTests.cs @@ -83,10 +83,11 @@ public async Task SimpleTest() } /// - /// Opening and closing an inline dialog. Click on open will open the inlined dialog. - /// + /// Opening and closing an inline dialog. Click on open will open the inlined dialog. + /// /// Note: this test uses two different components, one containing the dialog provider and /// one containing the open button and the inline dialog + /// /// [Test] public void InlineDialogTest() diff --git a/src/MudBlazor.UnitTests/Components/ListTests.cs b/src/MudBlazor.UnitTests/Components/ListTests.cs index a0af2dfc0dae..1da5ae7fb980 100644 --- a/src/MudBlazor.UnitTests/Components/ListTests.cs +++ b/src/MudBlazor.UnitTests/Components/ListTests.cs @@ -15,9 +15,8 @@ namespace MudBlazor.UnitTests.Components public class ListTests : BunitTest { /// - /// Clicking the drinks selects them. The child lists are updated accordingly, meaning, only ever 1 list item can have the active class. - /// - /// In this test no item is selected to begin with + /// Clicking the drinks selects them. The child lists are updated accordingly, meaning, only ever 1 list item can have the active class. + /// In this test no item is selected to begin with /// [Test] public async Task ListSelectionTest() @@ -46,9 +45,8 @@ public async Task ListSelectionTest() } /// - /// Clicking the drinks selects them. The child lists are updated accordingly, meaning, only ever 1 list item can have the active class. - /// - /// This test starts with a pre-selected item (by value) + /// Clicking the drinks selects them. The child lists are updated accordingly, meaning, only ever 1 list item can have the active class. + /// This test starts with a pre-selected item (by value) /// [Test] public async Task ListWithPreSelectedValueTest() diff --git a/src/MudBlazor.UnitTests/Components/PageContentNavigationTests.cs b/src/MudBlazor.UnitTests/Components/PageContentNavigationTests.cs index f4d78aabd6be..db81f3f31c86 100644 --- a/src/MudBlazor.UnitTests/Components/PageContentNavigationTests.cs +++ b/src/MudBlazor.UnitTests/Components/PageContentNavigationTests.cs @@ -44,7 +44,7 @@ public async Task AddSection(bool withUpdate) var section1 = new MudPageContentSection("my section", "my-id"); var section2 = new MudPageContentSection("my section 2", "my-id-2"); - if (withUpdate == true) + if (withUpdate) { await comp.InvokeAsync(() => comp.Instance.AddSection(section1, true)); await comp.InvokeAsync(() => comp.Instance.AddSection(section2, true)); @@ -56,7 +56,7 @@ public async Task AddSection(bool withUpdate) await comp.InvokeAsync(() => ((IMudStateHasChanged)comp.Instance).StateHasChanged()); } - comp.RenderCount.Should().Be(withUpdate == true ? 3 : 2); + comp.RenderCount.Should().Be(withUpdate ? 3 : 2); comp.Instance.ActiveSection.Should().BeNull(); comp.Instance.Sections.Should().BeEquivalentTo(new[] { section1, section2 }); diff --git a/src/MudBlazor.UnitTests/Components/PaginationTests.cs b/src/MudBlazor.UnitTests/Components/PaginationTests.cs index 6e6714e2089c..bb1015f2b26d 100644 --- a/src/MudBlazor.UnitTests/Components/PaginationTests.cs +++ b/src/MudBlazor.UnitTests/Components/PaginationTests.cs @@ -283,7 +283,7 @@ public async Task PaginationCountWithEllipsisTest(int selectedPage, int count, i //Expected values var items = comp.FindAll(".mud-pagination-item"); - items.Count.Should().Be(middleCount + 2 * boundaryCount + 2); + items.Count.Should().Be(middleCount + (2 * boundaryCount) + 2); for (var j = 0; j < items.Count; j++) { items[j].TextContent.Should().Be(expectedValues[j]); diff --git a/src/MudBlazor.UnitTests/Components/PopoverTests.cs b/src/MudBlazor.UnitTests/Components/PopoverTests.cs index 9fdb89bbdeac..a8d27ac4b867 100644 --- a/src/MudBlazor.UnitTests/Components/PopoverTests.cs +++ b/src/MudBlazor.UnitTests/Components/PopoverTests.cs @@ -293,7 +293,7 @@ public void MudPopoverHandler_UpdaterInvokationTest() RenderFragment newRenderFragement = (tree) => { }; - for (int i = 0; i < 4; i++) + for (var i = 0; i < 4; i++) { handler.UpdateFragment(newRenderFragement, comp.Instance, "my-extra-class", "my-extra-style:2px", i % 2 == 0); } @@ -330,7 +330,7 @@ public async Task MudPopoverHandler_UpdaterInvocationAsync() }); - for (int i = 0; i < 4; i++) + for (var i = 0; i < 4; i++) { await handler.UpdateFragmentAsync(newRenderFragment, comp.Instance, "my-extra-class", "my-extra-style:2px", i % 2 == 0); } @@ -616,10 +616,10 @@ public async Task MudPopoverService_CallInitializeOnlyOnce() It.IsAny(), It.Is(x => x.Length == 2 && (string)x[0] == "mudblazor-main-content" && (int)x[1] == 0))).ReturnsAsync(Mock.Of(), TimeSpan.FromMilliseconds(300)).Verifiable(); - Task[] tasks = new Task[5]; + var tasks = new Task[5]; var service = new MudPopoverService(mock.Object); - for (int i = 0; i < 5; i++) + for (var i = 0; i < 5; i++) { tasks[i] = Task.Run(async () => await service.InitializeIfNeeded()); } @@ -700,7 +700,7 @@ public void MudPopoverService_RegisterAndUseHandler() { var service = new MudPopoverService(Mock.Of(MockBehavior.Strict)); - int fragmentChangedCounter = 0; + var fragmentChangedCounter = 0; service.FragmentsChanged += (e, args) => { @@ -733,7 +733,7 @@ public async Task MudPopoverService_RegisterAndUseHandlerAsync() { var service = new MudPopoverService(Mock.Of(MockBehavior.Strict)); - int fragmentChangedCounter = 0; + var fragmentChangedCounter = 0; service.FragmentsChanged += (_, _) => { @@ -830,7 +830,7 @@ public async Task MudPopoverService_Unregister() await handler.Initialize(); - int fragmentChangedCounter = 0; + var fragmentChangedCounter = 0; service.FragmentsChanged += (_, _) => { @@ -1070,7 +1070,7 @@ public void MudPopoverProvider_RenderElementsBasedOnEnableState() var comp = Context.RenderComponent(p => p.Add(x => x.ProviderIsEnabled, true)); comp.Find("#my-content").TextContent.Should().Be("Popover content"); - for (int i = 0; i < 3; i++) + for (var i = 0; i < 3; i++) { comp.SetParametersAndRender(p => p.Add(x => x.ProviderIsEnabled, false)); Assert.Throws(() => comp.Find("#my-content")); @@ -1097,9 +1097,9 @@ public async Task MudPopoverProvider_ThrowOnDuplicate(bool ThrowOnDuplicateProvi }; Context.Services.Configure(x => x.ThrowOnDuplicateProvider = ThrowOnDuplicateProvider); - Context.JSInterop.Setup("mudpopoverHelper.countProviders").SetResult(ThrowOnDuplicateProvider == true ? 2 : 1); + Context.JSInterop.Setup("mudpopoverHelper.countProviders").SetResult(ThrowOnDuplicateProvider ? 2 : 1); - if (ThrowOnDuplicateProvider == true) + if (ThrowOnDuplicateProvider) { var ex = Assert.Throws(() => Context.RenderComponent()); ex.Message.Should().StartWith("Duplicate MudPopoverProvider detected"); diff --git a/src/MudBlazor.UnitTests/Components/ProgressLinearTests.cs b/src/MudBlazor.UnitTests/Components/ProgressLinearTests.cs index 441414d94436..943e98ffb3ea 100644 --- a/src/MudBlazor.UnitTests/Components/ProgressLinearTests.cs +++ b/src/MudBlazor.UnitTests/Components/ProgressLinearTests.cs @@ -110,7 +110,7 @@ public void DefaultStructure(bool isVertical) barElement.ClassList.Should().Contain("mud-progress-linear-bar"); barElement.GetAttribute("style").Should().Be( - isVertical == true ? + isVertical ? $"transform: translateY(90%);" : $"transform: translateX(-90%);"); } @@ -175,14 +175,14 @@ public void BufferStructure(bool isVertical) secondBarElement.ClassList.Should().Contain("mud-progress-linear-bar"); secondBarElement.GetAttribute("style").Should().Be( - isVertical == true ? + isVertical ? $"transform: translateY(90%);" : $"transform: translateX(-90%);"); var thirdBarElement = barContainer.Children[2]; thirdBarElement.ClassList.Should().Contain("mud-progress-linear-bar", "last"); thirdBarElement.GetAttribute("style").Should().Be( - isVertical == true ? + isVertical ? $"transform: translateY(60%);" : $"transform: translateX(-60%);"); } @@ -230,7 +230,7 @@ public void TestClassesForRounded(bool rounded) var container = comp.Find(".mud-progress-linear"); - if (rounded == true) + if (rounded) { container.ClassList.Should().Contain("mud-progress-linear-rounded"); } @@ -249,7 +249,7 @@ public void TestClassesForStriped(bool striped) var container = comp.Find(".mud-progress-linear"); - if (striped == true) + if (striped) { container.ClassList.Should().Contain("mud-progress-linear-striped"); } @@ -268,7 +268,7 @@ public void TestClassesForIntermediate(bool indeterminate) var container = comp.Find(".mud-progress-linear"); - if (indeterminate == true) + if (indeterminate) { container.ClassList.Should().Contain("mud-progress-indeterminate"); } @@ -294,7 +294,7 @@ public void TestClassesForBuffer(bool buffer, bool indeterminate) var container = comp.Find(".mud-progress-linear"); - if (buffer == true && indeterminate == false) + if (buffer && indeterminate == false) { container.ClassList.Should().Contain("mud-progress-linear-buffer"); } @@ -339,7 +339,7 @@ public void TestClassesForVertical(bool vertical) var container = comp.Find(".mud-progress-linear"); - if (vertical == true) + if (vertical) { container.ClassList.Should().Contain("vertical"); container.ClassList.Should().NotContain("horizontal"); diff --git a/src/MudBlazor.UnitTests/Components/SelectTests.cs b/src/MudBlazor.UnitTests/Components/SelectTests.cs index 8bc95de8fd51..1b07eabd9bc5 100644 --- a/src/MudBlazor.UnitTests/Components/SelectTests.cs +++ b/src/MudBlazor.UnitTests/Components/SelectTests.cs @@ -524,7 +524,7 @@ public void MultiSelect_SelectAll2() } // Check shadow items - var shadowItems = comp.FindComponents>().Where(x => x.Instance.HideContent == true).ToArray(); + var shadowItems = comp.FindComponents>().Where(x => x.Instance.HideContent).ToArray(); foreach (var item in shadowItems) { // shadow items don't render, their state is irrelevant, all they do is provide render fragments to the select diff --git a/src/MudBlazor.UnitTests/Components/SliderTests.cs b/src/MudBlazor.UnitTests/Components/SliderTests.cs index 96deac2daab5..fbc1aaef459a 100644 --- a/src/MudBlazor.UnitTests/Components/SliderTests.cs +++ b/src/MudBlazor.UnitTests/Components/SliderTests.cs @@ -276,7 +276,7 @@ public void TickMarksEnabled_ButLabels() tickMarks.ClassList.Should().Contain("mud-slider-tickmarks"); tickMarks.Children.Should().HaveCount(5); - Int32 itemCounter = 0; + var itemCounter = 0; foreach (var item in tickMarks.Children) { item.ClassList.Should().Contain(new[] { "d-flex", "flex-column", "relative" }); diff --git a/src/MudBlazor.UnitTests/Components/SwipeTests.cs b/src/MudBlazor.UnitTests/Components/SwipeTests.cs index 5b3709e2382d..6b1bd67a0685 100644 --- a/src/MudBlazor.UnitTests/Components/SwipeTests.cs +++ b/src/MudBlazor.UnitTests/Components/SwipeTests.cs @@ -76,7 +76,7 @@ public void SwipeTest_PreventDefault_SetTrue() var comp = Context.RenderComponent(ComponentParameter.CreateParameter("PreventDefault", true)); - comp.WaitForState(() => comp.Instance.PreventDefault == true); + comp.WaitForState(() => comp.Instance.PreventDefault); comp.Instance._listenerIds.Should().BeEquivalentTo(listenerIds); var invocation = handler.VerifyInvoke("mudElementRef.addDefaultPreventingHandlers"); diff --git a/src/MudBlazor.UnitTests/Components/TableTests.cs b/src/MudBlazor.UnitTests/Components/TableTests.cs index 2552cdb31cf2..9a07f91e7204 100644 --- a/src/MudBlazor.UnitTests/Components/TableTests.cs +++ b/src/MudBlazor.UnitTests/Components/TableTests.cs @@ -1434,7 +1434,7 @@ public async Task TableInlineEdit_TableRowValidator() validator.ControlCount.Should().Be(1); for (var i = 0; i < 10; ++i) { - trs[i % 3 + 1].Click(); + trs[(i % 3) + 1].Click(); } validator.ControlCount.Should().Be(1); } @@ -1566,7 +1566,7 @@ public async Task TableInlineEditSortTest() trs[2].Click(); // Change row two data - var input = comp.Find(("#Id1")); + var input = comp.Find("#Id1"); input.Change("D"); // Check row two is still in position 2 of the data rows @@ -2208,8 +2208,8 @@ public void TablePagerControlButtonAriaLabelTest(Page controlButton, string expe [Test] public async Task RowsPerPageParameterTwoWayBinding() { - int rowsPerPage = 5; - int newRowsPerPage = 25; + var rowsPerPage = 5; + var newRowsPerPage = 25; var comp = Context.RenderComponent(parameters => parameters .Add(p => p.RowsPerPage, rowsPerPage) .Add(p => p.RowsPerPageChanged, (s) => @@ -2302,7 +2302,7 @@ public async Task TableRecordEditingMultiSelectTest() trs[2].Click(); // Change row two data - var input = comp.Find(("#Id2")); + var input = comp.Find("#Id2"); input.Change("Change"); table.SelectedItems.Count.Should().Be(3); diff --git a/src/MudBlazor.UnitTests/Components/TextFieldTests.cs b/src/MudBlazor.UnitTests/Components/TextFieldTests.cs index d917eba2224f..4ff9015cdb47 100644 --- a/src/MudBlazor.UnitTests/Components/TextFieldTests.cs +++ b/src/MudBlazor.UnitTests/Components/TextFieldTests.cs @@ -364,9 +364,8 @@ public async Task MultilineTextField_Should_UpdateTextOnInput() } /// - /// This is based on a bug reported by a user - /// - /// After editing the second (multi-line) tf it would not accept any updates from the first tf. + /// This is based on a bug reported by a user + /// After editing the second (multi-line) tf it would not accept any updates from the first tf. /// [Test] public async Task MultiLineTextField_ShouldBe_TwoWayBindable() diff --git a/src/MudBlazor.UnitTests/Components/ThemeProviderTests.cs b/src/MudBlazor.UnitTests/Components/ThemeProviderTests.cs index 1b25cd29776a..80e51f82815a 100644 --- a/src/MudBlazor.UnitTests/Components/ThemeProviderTests.cs +++ b/src/MudBlazor.UnitTests/Components/ThemeProviderTests.cs @@ -363,7 +363,7 @@ public void PseudoCssScope_Test(string scope) [Test] public void PseudoCssRootColor_Test() { - string scope = ":root"; + var scope = ":root"; var isDarkMode = true; var mudTheme = new MudTheme { diff --git a/src/MudBlazor.UnitTests/Components/TimePickerTests.cs b/src/MudBlazor.UnitTests/Components/TimePickerTests.cs index f69e5117f0c1..13290ad9afe8 100644 --- a/src/MudBlazor.UnitTests/Components/TimePickerTests.cs +++ b/src/MudBlazor.UnitTests/Components/TimePickerTests.cs @@ -346,7 +346,7 @@ public void TimeEditModeNormal_CheckMinutesHidden() [Test] public void TimeEditModeHours_CheckSelection() { - var comp = Context.RenderComponent((Parameter("TimeEditMode", TimeEditMode.OnlyHours))); + var comp = Context.RenderComponent(Parameter("TimeEditMode", TimeEditMode.OnlyHours)); var underlyingPicker = comp.FindComponent().Instance; // click to to open picker diff --git a/src/MudBlazor.UnitTests/Components/TimelineTests.cs b/src/MudBlazor.UnitTests/Components/TimelineTests.cs index c53d6d0fe948..e9adae5bf871 100644 --- a/src/MudBlazor.UnitTests/Components/TimelineTests.cs +++ b/src/MudBlazor.UnitTests/Components/TimelineTests.cs @@ -128,7 +128,7 @@ public void TimelineTest_SelectItem() itemsDiv.Should().HaveCount(5); - for (int i = 0; i < 5; i++) + for (var i = 0; i < 5; i++) { itemsDiv[i].Click(); diff --git a/src/MudBlazor.UnitTests/Components/TreeViewTest.cs b/src/MudBlazor.UnitTests/Components/TreeViewTest.cs index 4ae890c8f670..73b68b30e908 100644 --- a/src/MudBlazor.UnitTests/Components/TreeViewTest.cs +++ b/src/MudBlazor.UnitTests/Components/TreeViewTest.cs @@ -179,7 +179,7 @@ public async Task TreeView_OtherTest() public async Task TreeViewItem_DoubleClick_CheckExpanded() { var comp = Context.RenderComponent(); - bool itemIsExpanded = false; + var itemIsExpanded = false; var item = comp.FindComponent>(); await item.InvokeAsync(() => diff --git a/src/MudBlazor.UnitTests/Mocks/MockDocsMessageHandler.cs b/src/MudBlazor.UnitTests/Mocks/MockDocsMessageHandler.cs index 6b9cc02e5272..0e735063e326 100644 --- a/src/MudBlazor.UnitTests/Mocks/MockDocsMessageHandler.cs +++ b/src/MudBlazor.UnitTests/Mocks/MockDocsMessageHandler.cs @@ -5,7 +5,7 @@ namespace MudBlazor.UnitTests.Mocks { public class MockDocsMessageHandler : MockHttpMessageHandler { - public MockDocsMessageHandler() : base() + public MockDocsMessageHandler() { // Periodic table api this.When("https://localhost/webapi/periodictable") diff --git a/src/MudBlazor.UnitTests/Mocks/MockEventListener.cs b/src/MudBlazor.UnitTests/Mocks/MockEventListener.cs index 2945a7b2aae0..c830a9ec47e6 100644 --- a/src/MudBlazor.UnitTests/Mocks/MockEventListener.cs +++ b/src/MudBlazor.UnitTests/Mocks/MockEventListener.cs @@ -58,7 +58,7 @@ public Task SubscribeGlobal(string eventName, int throotleInterval, Fun public Task Unsubscribe(Guid key) { var result = Callbacks.ContainsKey(key); - if (result == true) + if (result) { Callbacks.Remove(key); ElementIdMapper.Remove(key); diff --git a/src/MudBlazor.UnitTests/Mocks/MockNavigationManager.cs b/src/MudBlazor.UnitTests/Mocks/MockNavigationManager.cs index fab59c943725..834179df9888 100644 --- a/src/MudBlazor.UnitTests/Mocks/MockNavigationManager.cs +++ b/src/MudBlazor.UnitTests/Mocks/MockNavigationManager.cs @@ -5,14 +5,14 @@ namespace MudBlazor.UnitTests.Mocks public class MockNavigationManager : NavigationManager { - public MockNavigationManager() : base() => - this.Initialize("http://localhost:2112/", "http://localhost:2112/test"); + public MockNavigationManager() => + Initialize("http://localhost:2112/", "http://localhost:2112/test"); - public MockNavigationManager(string baseUri, string uri) : base() => - this.Initialize(baseUri, uri); + public MockNavigationManager(string baseUri, string uri) => + Initialize(baseUri, uri); protected override void NavigateToCore(string uri, bool forceLoad) => - this.WasNavigateInvoked = true; + WasNavigateInvoked = true; public bool WasNavigateInvoked { get; private set; } } diff --git a/src/MudBlazor.UnitTests/Mocks/MockResizeObserver.cs b/src/MudBlazor.UnitTests/Mocks/MockResizeObserver.cs index 459d7e6ce11d..5795d246d91a 100644 --- a/src/MudBlazor.UnitTests/Mocks/MockResizeObserver.cs +++ b/src/MudBlazor.UnitTests/Mocks/MockResizeObserver.cs @@ -27,7 +27,7 @@ public MockResizeObserverFactory(MockResizeObserver observer) public IResizeObserver Create() => Create(new ResizeObserverOptions()); } - public class MockResizeObserver : IResizeObserver, IDisposable + public class MockResizeObserver : IResizeObserver { private Dictionary _cachedValues = new(); @@ -76,7 +76,7 @@ public void UpdatePanelSize(int index, double newSize) public async Task Observe(ElementReference element) => (await Observe(new[] { element })).FirstOrDefault(); - private Boolean _firstBatchProcessed = false; + private bool _firstBatchProcessed = false; public Task> Observe(IEnumerable elements) { @@ -90,7 +90,7 @@ public Task> Observe(IEnumerable components = typeof(MudElement).Assembly.GetTypes() + var components = typeof(MudElement).Assembly.GetTypes() .Where(type => type.IsSubclassOf(typeof(MudComponentBase))) .Except(exceptions); - foreach (Type component in components) + foreach (var component in components) { - foreach (PropertyInfo property in component.GetProperties()) + foreach (var property in component.GetProperties()) { if (GetBaseDefinitionClass(property) == component && // property isn't inherited !property.PropertyType.Name.Contains("EventCallback") && // property isn't an event callback diff --git a/src/MudBlazor.UnitTests/Services/EventListenerTests.cs b/src/MudBlazor.UnitTests/Services/EventListenerTests.cs index 56ce4d4b7623..12e88c8bc02b 100644 --- a/src/MudBlazor.UnitTests/Services/EventListenerTests.cs +++ b/src/MudBlazor.UnitTests/Services/EventListenerTests.cs @@ -39,7 +39,7 @@ public void SetUp() #endif } - private bool ContainsEqual(IEnumerable firstColl, IEnumerable secondColl) + private bool ContainsEqual(IEnumerable firstColl, IEnumerable secondColl) { try { @@ -60,7 +60,7 @@ public async Task Subscribe() var throttleInterval = 20; var projectionName = "mynamespace.myfunction"; - Func callback = (x) => Task.Delay(10); + Func callback = (x) => Task.Delay(10); _runtimeMock.Setup(x => x.InvokeAsync("mudThrottledEventManager.subscribe", It.Is(z => (string)z[0] == eventName && @@ -68,7 +68,7 @@ public async Task Subscribe() (string)z[2] == projectionName && (int)z[3] == throttleInterval && (Guid)z[4] != Guid.Empty && - ContainsEqual((IEnumerable)z[5], _expectedProperties) == true && + ContainsEqual((IEnumerable)z[5], _expectedProperties) && z[6] is DotNetObjectReference ))).ReturnsAsync(Mock.Of); @@ -95,7 +95,7 @@ public async Task Subscribe_AndCallback() var offsetX = 200.24; var offsetY = 12425.2; - Func callback = (x) => + Func callback = (x) => { try { @@ -120,7 +120,7 @@ public async Task Subscribe_AndCallback() (string)z[2] == projectionName && (int)z[3] == throttleInterval && (Guid)z[4] != Guid.Empty && - ContainsEqual((IEnumerable)z[5], _expectedProperties) == true && + ContainsEqual((IEnumerable)z[5], _expectedProperties) && z[6] is DotNetObjectReference ))).ReturnsAsync(Mock.Of); @@ -152,7 +152,7 @@ public async Task Subscribe_AndUnsubscribe() var throttleInterval = 20; string projectionName = null; - Func callback = (x) => Task.Delay(10); + Func callback = (x) => Task.Delay(10); _runtimeMock.Setup(x => x.InvokeAsync("mudThrottledEventManager.subscribe", It.Is(z => z.Length == 7 && @@ -161,7 +161,7 @@ public async Task Subscribe_AndUnsubscribe() (string)z[2] == projectionName && (int)z[3] == throttleInterval && (Guid)z[4] != Guid.Empty && - ContainsEqual((IEnumerable)z[5], _expectedProperties) == true && + ContainsEqual((IEnumerable)z[5], _expectedProperties) && z[6] is DotNetObjectReference ))).ReturnsAsync(Mock.Of); @@ -187,7 +187,7 @@ public async Task Subscribe_AndUnsubscribe_WithError() var throttleInterval = 20; var projectionName = "mynamspace.something.somethingelse"; - Func callback = (x) => Task.Delay(10); + Func callback = (x) => Task.Delay(10); _runtimeMock.Setup(x => x.InvokeAsync("mudThrottledEventManager.subscribe", It.Is(z => z.Length == 7 && @@ -196,7 +196,7 @@ public async Task Subscribe_AndUnsubscribe_WithError() (string)z[2] == projectionName && (int)z[3] == throttleInterval && (Guid)z[4] != Guid.Empty && - ContainsEqual((IEnumerable)z[5], _expectedProperties) == true && + ContainsEqual((IEnumerable)z[5], _expectedProperties) && z[6] is DotNetObjectReference ))).ReturnsAsync(Mock.Of); @@ -222,7 +222,7 @@ public async Task DisposeAsync() var throttleInterval = 20; var projectionName = "mynamspace.something.somethingelse"; - Func callback = (x) => Task.Delay(10); + Func callback = (x) => Task.Delay(10); for (var i = 0; i < 10; i++) { @@ -235,7 +235,7 @@ public async Task DisposeAsync() (string)z[2] == projectionName && (int)z[3] == throttleInterval && (Guid)z[4] != Guid.Empty && - ContainsEqual((IEnumerable)z[5], _expectedProperties) == true && + ContainsEqual((IEnumerable)z[5], _expectedProperties) && z[6] is DotNetObjectReference ))).ReturnsAsync(Mock.Of); @@ -277,7 +277,7 @@ public async Task Dispose() var throttleInterval = 20; var projectionName = "mynamspace.something.somethingelse"; - Func callback = (x) => Task.Delay(10); + Func callback = (x) => Task.Delay(10); for (var i = 0; i < 10; i++) { @@ -290,7 +290,7 @@ public async Task Dispose() (string)z[2] == projectionName && (int)z[3] == throttleInterval && (Guid)z[4] != Guid.Empty && - ContainsEqual((IEnumerable)z[5], _expectedProperties) == true && + ContainsEqual((IEnumerable)z[5], _expectedProperties) && z[6] is DotNetObjectReference ))).ReturnsAsync(Mock.Of); diff --git a/src/MudBlazor.UnitTests/Services/ResizeObserverTests.cs b/src/MudBlazor.UnitTests/Services/ResizeObserverTests.cs index 9ebe53ba4c4a..ebba57f39fb8 100644 --- a/src/MudBlazor.UnitTests/Services/ResizeObserverTests.cs +++ b/src/MudBlazor.UnitTests/Services/ResizeObserverTests.cs @@ -69,10 +69,10 @@ public async Task ObserveAndCache() "mudResizeObserver.connect", It.Is(z => (Guid)z[0] != default && - (z[1] is DotNetObjectReference) == true && - (z[2] is IEnumerable) == true && - (z[3] is IEnumerable) == true && - (z[4] is ResizeObserverOptions) == true && ((ResizeObserverOptions)z[4]).EnableLogging == false && ((ResizeObserverOptions)z[4]).ReportRate == 200 + (z[1] is DotNetObjectReference) && + (z[2] is IEnumerable) && + (z[3] is IEnumerable) && + (z[4] is ResizeObserverOptions) && ((ResizeObserverOptions)z[4]).EnableLogging == false && ((ResizeObserverOptions)z[4]).ReportRate == 200 ) )).ReturnsAsync(resolvedElements.Values).Verifiable(); @@ -162,12 +162,12 @@ public async Task Unobserve() "mudResizeObserver.connect", It.Is(z => (Guid)z[0] != default && - (z[1] is DotNetObjectReference) == true && - (z[2] is IEnumerable) == true && - (z[3] is IEnumerable) == true && - (z[4] is ResizeObserverOptions) == true && ((ResizeObserverOptions)z[4]).EnableLogging == false && ((ResizeObserverOptions)z[4]).ReportRate == 200 + (z[1] is DotNetObjectReference) && + (z[2] is IEnumerable) && + (z[3] is IEnumerable) && + (z[4] is ResizeObserverOptions) && ((ResizeObserverOptions)z[4]).EnableLogging == false && ((ResizeObserverOptions)z[4]).ReportRate == 200 ) - )).ReturnsAsync(resolvedElements.Values).Callback((x, y) => { observerId = (Guid)y[0]; ids = new List((IEnumerable)y[3]); }).Verifiable(); + )).ReturnsAsync(resolvedElements.Values).Callback((x, y) => { observerId = (Guid)y[0]; ids = new List((IEnumerable)y[3]); }).Verifiable(); foreach (var item in resolvedElements) @@ -176,9 +176,9 @@ public async Task Unobserve() "mudResizeObserver.disconnect", It.Is(z => (Guid)z[0] == observerId && - ids.Contains((Guid)z[1]) == true + ids.Contains((Guid)z[1]) ) - )).ReturnsAsync(Mock.Of).Callback((x, y) => { ids.Remove((Guid)y[1]); }).Verifiable(); + )).ReturnsAsync(Mock.Of).Callback((x, y) => { ids.Remove((Guid)y[1]); }).Verifiable(); } await _service.Observe(resolvedElements.Keys); @@ -220,12 +220,12 @@ public async Task OnSizeChanged() "mudResizeObserver.connect", It.Is(z => (Guid)z[0] != default && - (z[1] is DotNetObjectReference) == true && - (z[2] is IEnumerable) == true && - (z[3] is IEnumerable) == true && - (z[4] is ResizeObserverOptions) == true && ((ResizeObserverOptions)z[4]).EnableLogging == false && ((ResizeObserverOptions)z[4]).ReportRate == 200 + (z[1] is DotNetObjectReference) && + (z[2] is IEnumerable) && + (z[3] is IEnumerable) && + (z[4] is ResizeObserverOptions) && ((ResizeObserverOptions)z[4]).EnableLogging == false && ((ResizeObserverOptions)z[4]).ReportRate == 200 ) - )).ReturnsAsync(resolvedElements.Values).Callback((x, y) => { ids = new List((IEnumerable)y[3]); }).Verifiable(); + )).ReturnsAsync(resolvedElements.Values).Callback((x, y) => { ids = new List((IEnumerable)y[3]); }).Verifiable(); await _service.Observe(resolvedElements.Keys); diff --git a/src/MudBlazor.UnitTests/Utilities/AsyncKeyedLock/AsyncKeyedLockTests.cs b/src/MudBlazor.UnitTests/Utilities/AsyncKeyedLock/AsyncKeyedLockTests.cs index f40a05262904..597ee22cfedd 100644 --- a/src/MudBlazor.UnitTests/Utilities/AsyncKeyedLock/AsyncKeyedLockTests.cs +++ b/src/MudBlazor.UnitTests/Utilities/AsyncKeyedLock/AsyncKeyedLockTests.cs @@ -384,7 +384,7 @@ public async Task TestTimeoutWithTimeSpan() public void TestTimeoutWithInfiniteTimeoutAndCancellationToken() { var asyncKeyedLocker = new AsyncKeyedLocker(); - using (asyncKeyedLocker.Lock("test", Timeout.Infinite, new CancellationToken(false), out bool entered)) + using (asyncKeyedLocker.Lock("test", Timeout.Infinite, new CancellationToken(false), out var entered)) { entered.Should().BeTrue(); asyncKeyedLocker.IsInUse("test").Should().BeTrue(); diff --git a/src/MudBlazor.UnitTests/Utilities/Mask/MultiMaskTests.cs b/src/MudBlazor.UnitTests/Utilities/Mask/MultiMaskTests.cs index 232af97c094a..b250fb075caf 100644 --- a/src/MudBlazor.UnitTests/Utilities/Mask/MultiMaskTests.cs +++ b/src/MudBlazor.UnitTests/Utilities/Mask/MultiMaskTests.cs @@ -28,7 +28,7 @@ public void MultiMask_Test() new MaskOption("Discover", "0000 0000 0000 0000", @"^(6011|65|64[4-9])") ); MaskOption? option = null; - int eventCount = 0; + var eventCount = 0; mask.OptionDetected = (o, text) => { eventCount++; diff --git a/src/MudBlazor.UnitTests/Utilities/NaturalComparerTest.cs b/src/MudBlazor.UnitTests/Utilities/NaturalComparerTest.cs index 73869d4c7b36..bb46796ccbd4 100644 --- a/src/MudBlazor.UnitTests/Utilities/NaturalComparerTest.cs +++ b/src/MudBlazor.UnitTests/Utilities/NaturalComparerTest.cs @@ -19,9 +19,9 @@ public class NaturalComparerTest { int o; while ((o = s.IndexOf('\\')) != -1) { - int p = o + 1; - int z = 1; while (s[p] == '0') { z++; p++; } - int c = Int32.Parse(s.Substring(p, z)); + var p = o + 1; + var z = 1; while (s[p] == '0') { z++; p++; } + var c = int.Parse(s.Substring(p, z)); s = s.Substring(0, o) + new string(s[o - 1], c) + s.Substring(p + z); } return s; @@ -339,11 +339,11 @@ public class NaturalComparerTest [Test] public void SortFiles() { - string[] fileNames = Encoding.UTF8.GetString(Convert.FromBase64String(s_encodedFileNames)) + var fileNames = Encoding.UTF8.GetString(Convert.FromBase64String(s_encodedFileNames)) .Replace("*", ".txt?").Split(new[] { "?" }, StringSplitOptions.RemoveEmptyEntries) .Select(n => _expand(n)).ToArray(); - string[] orderedFiles = fileNames.OrderBy(x => x, new NaturalComparer()).ToArray(); + var orderedFiles = fileNames.OrderBy(x => x, new NaturalComparer()).ToArray(); orderedFiles.Should().NotBeEmpty(); orderedFiles.Should().ContainInOrder(s_orderedFileNames); diff --git a/src/MudBlazor.UnitTests/Utilities/SortingAssistentTests.cs b/src/MudBlazor.UnitTests/Utilities/SortingAssistentTests.cs index b595cdc89b0c..caba3a562df6 100644 --- a/src/MudBlazor.UnitTests/Utilities/SortingAssistentTests.cs +++ b/src/MudBlazor.UnitTests/Utilities/SortingAssistentTests.cs @@ -21,7 +21,7 @@ public class ItemsWithOrder public string Name { get; } public int Prio { get; set; } - public ItemsWithOrder(String name, int priority) + public ItemsWithOrder(string name, int priority) { Name = name; Prio = priority; diff --git a/src/MudBlazor/Base/MudBaseInput.cs b/src/MudBlazor/Base/MudBaseInput.cs index 80a4338709e9..926ff48b7fd5 100644 --- a/src/MudBlazor/Base/MudBaseInput.cs +++ b/src/MudBlazor/Base/MudBaseInput.cs @@ -352,7 +352,7 @@ public T Value protected virtual async Task SetValueAsync(T value, bool updateText = true, bool force = false) { - if (!EqualityComparer.Default.Equals(Value, value) || force == true) + if (!EqualityComparer.Default.Equals(Value, value) || force) { _isDirty = true; _validated = false; @@ -501,8 +501,8 @@ protected override void OnParametersSet() protected override async Task ResetValueAsync() { await SetTextAsync(null, updateValue: true); - this._isDirty = false; - this._validated = false; + _isDirty = false; + _validated = false; await base.ResetValueAsync(); } } diff --git a/src/MudBlazor/Base/MudBooleanInput.cs b/src/MudBlazor/Base/MudBooleanInput.cs index d6ea703b20c7..48a362fadb80 100644 --- a/src/MudBlazor/Base/MudBooleanInput.cs +++ b/src/MudBlazor/Base/MudBooleanInput.cs @@ -125,7 +125,7 @@ protected override bool SetConverter(Converter value) ///
protected override bool HasValue(T? value) { - return (BoolValue == true); + return BoolValue == true; } } } diff --git a/src/MudBlazor/Base/MudComponentBase.cs b/src/MudBlazor/Base/MudComponentBase.cs index 7c734ad31d88..8da8e723fa04 100644 --- a/src/MudBlazor/Base/MudComponentBase.cs +++ b/src/MudBlazor/Base/MudComponentBase.cs @@ -56,7 +56,7 @@ public abstract partial class MudComponentBase : ComponentBase, IMudStateHasChan /// /// If the UserAttributes contain an ID make it accessible for WCAG labelling of input fields /// - public string FieldId => (UserAttributes?.ContainsKey("id") == true ? UserAttributes["id"]?.ToString() ?? $"mudinput-{Guid.NewGuid()}" : $"mudinput-{Guid.NewGuid()}"); + public string FieldId => UserAttributes?.ContainsKey("id") == true ? UserAttributes["id"]?.ToString() ?? $"mudinput-{Guid.NewGuid()}" : $"mudinput-{Guid.NewGuid()}"; /// protected override void OnAfterRender(bool firstRender) diff --git a/src/MudBlazor/Base/MudFormComponent.cs b/src/MudBlazor/Base/MudFormComponent.cs index 89e80654035d..14c266212b7d 100644 --- a/src/MudBlazor/Base/MudFormComponent.cs +++ b/src/MudBlazor/Base/MudFormComponent.cs @@ -160,11 +160,14 @@ protected virtual void OnConversionErrorOccurred(string error) } /// + /// /// This manages the state of having been "touched" by the user. A form control always starts out untouched /// but becomes touched when the user performed input or the blur event was raised. - /// + /// + /// /// The touched state is only relevant for inputs that have no value (i.e. empty text fields). Being untouched will /// suppress RequiredError + /// /// public bool Touched { get; protected set; } diff --git a/src/MudBlazor/Components/AppBar/MudAppBar.razor.cs b/src/MudBlazor/Components/AppBar/MudAppBar.razor.cs index d3c656750b03..22b87edb3602 100644 --- a/src/MudBlazor/Components/AppBar/MudAppBar.razor.cs +++ b/src/MudBlazor/Components/AppBar/MudAppBar.razor.cs @@ -43,7 +43,7 @@ public partial class MudAppBar : MudComponentBase public bool Dense { get; set; } /// - /// If true, the left and right padding is removed from from the appbar. + /// If true, the left and right padding is removed from the appbar. /// [Parameter] [Category(CategoryTypes.AppBar.Appearance)] diff --git a/src/MudBlazor/Components/Autocomplete/MudAutocomplete.razor.cs b/src/MudBlazor/Components/Autocomplete/MudAutocomplete.razor.cs index 23c25cb5c01e..552a49090f1f 100644 --- a/src/MudBlazor/Components/Autocomplete/MudAutocomplete.razor.cs +++ b/src/MudBlazor/Components/Autocomplete/MudAutocomplete.razor.cs @@ -11,7 +11,7 @@ namespace MudBlazor { - public partial class MudAutocomplete : MudBaseInput, IDisposable + public partial class MudAutocomplete : MudBaseInput { /// /// We need a random id for the year items in the year list so we can scroll to the item safely in every DatePicker. @@ -644,7 +644,7 @@ internal virtual async Task OnInputKeyUp(KeyboardEventArgs args) } break; case "ArrowUp": - if (args.AltKey == true) + if (args.AltKey) { await ChangeMenu(open: false); } @@ -671,7 +671,7 @@ internal virtual async Task OnInputKeyUp(KeyboardEventArgs args) await ToggleMenu(); break; case "Backspace": - if (args.CtrlKey == true && args.ShiftKey == true) + if (args.CtrlKey && args.ShiftKey) { await ResetAsync(); } @@ -685,7 +685,7 @@ private ValueTask SelectNextItem(int increment) if (increment == 0 || _items == null || _items.Length == 0 || !_enabledItemIndices.Any()) return ValueTask.CompletedTask; // if we are at the end, or the beginning we just do an rollover - _selectedListItemIndex = Math.Clamp(value: (10 * _items.Length + _selectedListItemIndex + increment) % _items.Length, min: 0, max: _items.Length - 1); + _selectedListItemIndex = Math.Clamp(value: ((10 * _items.Length) + _selectedListItemIndex + increment) % _items.Length, min: 0, max: _items.Length - 1); return ScrollToListItem(_selectedListItemIndex); } diff --git a/src/MudBlazor/Components/Chart/Charts/Bar.razor.cs b/src/MudBlazor/Components/Chart/Charts/Bar.razor.cs index 46cd456fa8c2..0cf9c28235c4 100644 --- a/src/MudBlazor/Components/Chart/Charts/Bar.razor.cs +++ b/src/MudBlazor/Components/Chart/Charts/Bar.razor.cs @@ -35,7 +35,7 @@ protected override void OnParametersSet() if (MudChartParent != null) _series = MudChartParent.ChartSeries; - ComputeUnitsAndNumberOfLines(out double gridXUnits, out double gridYUnits, out int numHorizontalLines, out int lowestHorizontalLine, out int numVerticalLines); + ComputeUnitsAndNumberOfLines(out var gridXUnits, out var gridYUnits, out var numHorizontalLines, out var lowestHorizontalLine, out var numVerticalLines); var horizontalSpace = (BoundWidth - HorizontalStartSpace - HorizontalEndSpace) / Math.Max(1, numVerticalLines - 1); var verticalSpace = (BoundHeight - VerticalStartSpace - VerticalEndSpace) / Math.Max(1, numHorizontalLines - 1); @@ -62,7 +62,7 @@ private void ComputeUnitsAndNumberOfLines(out double gridXUnits, out double grid numHorizontalLines = highestHorizontalLine - lowestHorizontalLine + 1; // this is a safeguard against millions of gridlines which might arise with very high values - int maxYTicks = MudChartParent?.ChartOptions.MaxNumYAxisTicks ?? 100; + var maxYTicks = MudChartParent?.ChartOptions.MaxNumYAxisTicks ?? 100; while (numHorizontalLines > maxYTicks) { gridYUnits *= 2; @@ -88,11 +88,11 @@ private void GenerateHorizontalGridLines(int numHorizontalLines, int lowestHoriz for (var i = 0; i < numHorizontalLines; i++) { - var y = VerticalStartSpace + i * verticalSpace; + var y = VerticalStartSpace + (i * verticalSpace); var line = new SvgPath() { Index = i, - Data = $"M {ToS(HorizontalStartSpace)} {ToS((BoundHeight - y))} L {ToS((BoundWidth - HorizontalEndSpace))} {ToS((BoundHeight - y))}" + Data = $"M {ToS(HorizontalStartSpace)} {ToS(BoundHeight - y)} L {ToS(BoundWidth - HorizontalEndSpace)} {ToS(BoundHeight - y)}" }; _horizontalLines.Add(line); @@ -114,11 +114,11 @@ private void GenerateVerticalGridLines(int numVerticalLines, double gridXUnits, for (var i = 0; i < numVerticalLines; i++) { - var x = HorizontalStartSpace + i * horizontalSpace; + var x = HorizontalStartSpace + (i * horizontalSpace); var line = new SvgPath() { Index = i, - Data = $"M {ToS(x)} {ToS((BoundHeight - VerticalStartSpace))} L {ToS(x)} {ToS(VerticalEndSpace)}" + Data = $"M {ToS(x)} {ToS(BoundHeight - VerticalStartSpace)} L {ToS(x)} {ToS(VerticalEndSpace)}" }; _verticalLines.Add(line); @@ -144,9 +144,9 @@ private void GenerateBars(int lowestHorizontalLine, double gridYUnits, double ho for (var j = 0; j < data.Length; j++) { - var gridValueX = HorizontalStartSpace + i * 10 + j * horizontalSpace; - var gridValueY = BoundHeight - VerticalStartSpace + lowestHorizontalLine * verticalSpace; - var dataValue = (data[j] / gridYUnits - lowestHorizontalLine) * verticalSpace; + var gridValueX = HorizontalStartSpace + (i * 10) + (j * horizontalSpace); + var gridValueY = BoundHeight - VerticalStartSpace + (lowestHorizontalLine * verticalSpace); + var dataValue = ((data[j] / gridYUnits) - lowestHorizontalLine) * verticalSpace; var gridValue = BoundHeight - VerticalStartSpace - dataValue; var bar = new SvgPath() diff --git a/src/MudBlazor/Components/Chart/Charts/Donut.razor.cs b/src/MudBlazor/Components/Chart/Charts/Donut.razor.cs index 2fe67da139c7..3efedd8eff11 100644 --- a/src/MudBlazor/Components/Chart/Charts/Donut.razor.cs +++ b/src/MudBlazor/Components/Chart/Charts/Donut.razor.cs @@ -27,7 +27,7 @@ protected override void OnParametersSet() { var percent = data * 100; var reversePercent = 100 - percent; - double offset = 100 - totalPercent + counterClockwiseOffset; + var offset = 100 - totalPercent + counterClockwiseOffset; totalPercent += percent; var circle = new SvgCircle() diff --git a/src/MudBlazor/Components/Chart/Charts/Line.razor.cs b/src/MudBlazor/Components/Chart/Charts/Line.razor.cs index 94220da886b6..77557cfff7c4 100644 --- a/src/MudBlazor/Components/Chart/Charts/Line.razor.cs +++ b/src/MudBlazor/Components/Chart/Charts/Line.razor.cs @@ -38,7 +38,7 @@ protected override void OnParametersSet() if (MudChartParent != null) _series = MudChartParent.ChartSeries; - ComputeUnitsAndNumberOfLines(out double gridXUnits, out double gridYUnits, out int numHorizontalLines, out int lowestHorizontalLine, out int numVerticalLines); + ComputeUnitsAndNumberOfLines(out var gridXUnits, out var gridYUnits, out var numHorizontalLines, out var lowestHorizontalLine, out var numVerticalLines); var horizontalSpace = (BoundWidth - HorizontalStartSpace - HorizontalEndSpace) / Math.Max(1, numVerticalLines - 1); var verticalSpace = (BoundHeight - VerticalStartSpace - VerticalEndSpace) / Math.Max(1, numHorizontalLines - 1); @@ -65,7 +65,7 @@ private void ComputeUnitsAndNumberOfLines(out double gridXUnits, out double grid numHorizontalLines = highestHorizontalLine - lowestHorizontalLine + 1; // this is a safeguard against millions of gridlines which might arise with very high values - int maxYTicks = MudChartParent?.ChartOptions.MaxNumYAxisTicks ?? 100; + var maxYTicks = MudChartParent?.ChartOptions.MaxNumYAxisTicks ?? 100; while (numHorizontalLines > maxYTicks) { gridYUnits *= 2; @@ -91,11 +91,11 @@ private void GenerateHorizontalGridLines(int numHorizontalLines, int lowestHoriz for (var i = 0; i < numHorizontalLines; i++) { - var y = VerticalStartSpace + i * verticalSpace; + var y = VerticalStartSpace + (i * verticalSpace); var line = new SvgPath() { Index = i, - Data = $"M {ToS(HorizontalStartSpace)} {ToS((BoundHeight - y))} L {ToS((BoundWidth - HorizontalEndSpace))} {ToS((BoundHeight - y))}" + Data = $"M {ToS(HorizontalStartSpace)} {ToS(BoundHeight - y)} L {ToS(BoundWidth - HorizontalEndSpace)} {ToS(BoundHeight - y)}" }; _horizontalLines.Add(line); @@ -117,11 +117,11 @@ private void GenerateVerticalGridLines(int numVerticalLines, double gridXUnits, for (var i = 0; i < numVerticalLines; i++) { - var x = HorizontalStartSpace + i * horizontalSpace; + var x = HorizontalStartSpace + (i * horizontalSpace); var line = new SvgPath() { Index = i, - Data = $"M {ToS(x)} {ToS((BoundHeight - VerticalStartSpace))} L {ToS(x)} {ToS(VerticalEndSpace)}" + Data = $"M {ToS(x)} {ToS(BoundHeight - VerticalStartSpace)} L {ToS(x)} {ToS(VerticalEndSpace)}" }; _verticalLines.Add(line); @@ -143,23 +143,23 @@ private void GenerateChartLines(int lowestHorizontalLine, double gridYUnits, dou for (var i = 0; i < _series.Count; i++) { - StringBuilder chartLine = new StringBuilder(); + var chartLine = new StringBuilder(); var data = _series[i].Data; (double x, double y) GetXYForDataPoint(int index) { - var x = HorizontalStartSpace + index * horizontalSpace; - var gridValue = (data[index] / gridYUnits - lowestHorizontalLine) * verticalSpace; + var x = HorizontalStartSpace + (index * horizontalSpace); + var gridValue = ((data[index] / gridYUnits) - lowestHorizontalLine) * verticalSpace; var y = BoundHeight - VerticalStartSpace - gridValue; return (x, y); } - bool interpolationEnabled = MudChartParent != null && MudChartParent.ChartOptions.InterpolationOption != InterpolationOption.Straight; + var interpolationEnabled = MudChartParent != null && MudChartParent.ChartOptions.InterpolationOption != InterpolationOption.Straight; if (interpolationEnabled) { - double[] XValues = new double[data.Length]; - double[] YValues = new double[data.Length]; + var XValues = new double[data.Length]; + var YValues = new double[data.Length]; for (var j = 0; j < data.Length; j++) (XValues[j], YValues[j]) = GetXYForDataPoint(j); @@ -180,7 +180,7 @@ private void GenerateChartLines(int lowestHorizontalLine, double gridYUnits, dou else chartLine.Append(" L "); - var x = HorizontalStartSpace + j * horizontalSpace; + var x = HorizontalStartSpace + (j * horizontalSpace); var y = interpolator.InterpolatedYs[j]; chartLine.Append(ToS(x)); chartLine.Append(' '); diff --git a/src/MudBlazor/Components/Chart/Charts/StackedBar.razor.cs b/src/MudBlazor/Components/Chart/Charts/StackedBar.razor.cs index d7959e30551a..08ac84429f5c 100644 --- a/src/MudBlazor/Components/Chart/Charts/StackedBar.razor.cs +++ b/src/MudBlazor/Components/Chart/Charts/StackedBar.razor.cs @@ -36,10 +36,10 @@ protected override void OnParametersSet() var maxY = 0.0; var numXLabels = XAxisLabels.Length; var numValues = _series.Any() ? _series.Max(x => x.Data.Length) : 0; - double[] barTopValues = new double[numValues]; + var barTopValues = new double[numValues]; foreach (var item in _series) { - int dataNumber = 0; + var dataNumber = 0; foreach (int i in item.Data) { barTopValues[dataNumber] += i; @@ -63,8 +63,8 @@ protected override void OnParametersSet() var verticalEndSpace = 25.0; var horizontalEndSpace = 30.0; - var verticalSpace = (boundHeight - verticalStartSpace - verticalEndSpace) / (numHorizontalLines); - var horizontalSpace = (boundWidth - horizontalStartSpace - horizontalEndSpace) / (numVerticalLines); + var verticalSpace = (boundHeight - verticalStartSpace - verticalEndSpace) / numHorizontalLines; + var horizontalSpace = (boundWidth - horizontalStartSpace - horizontalEndSpace) / numVerticalLines; //Horizontal Grid Lines var y = verticalStartSpace; @@ -74,11 +74,11 @@ protected override void OnParametersSet() var line = new SvgPath() { Index = counter, - Data = $"M {ToS(horizontalStartSpace)} {ToS((boundHeight - y))} L {ToS((boundWidth - horizontalEndSpace))} {ToS((boundHeight - y))}" + Data = $"M {ToS(horizontalStartSpace)} {ToS(boundHeight - y)} L {ToS(boundWidth - horizontalEndSpace)} {ToS(boundHeight - y)}" }; _horizontalLines.Add(line); - var lineValue = new SvgText() { X = (horizontalStartSpace), Y = (boundHeight - y + 5), Value = ToS(startGridY, MudChartParent?.ChartOptions.YAxisFormat) }; + var lineValue = new SvgText() { X = horizontalStartSpace, Y = (boundHeight - y + 5), Value = ToS(startGridY, MudChartParent?.ChartOptions.YAxisFormat) }; _horizontalValues.Add(lineValue); startGridY += gridYUnits; @@ -94,7 +94,7 @@ protected override void OnParametersSet() var line = new SvgPath() { Index = counter, - Data = $"M {ToS(x)} {ToS((boundHeight - verticalStartSpace))} L {ToS(x)} {ToS(verticalEndSpace)}" + Data = $"M {ToS(x)} {ToS(boundHeight - verticalStartSpace)} L {ToS(x)} {ToS(verticalEndSpace)}" }; _verticalLines.Add(line); @@ -118,18 +118,18 @@ protected override void OnParametersSet() double[] barValuesOffset = null; foreach (var item in _series) { - double gridValueX = horizontalStartSpace + 24; + var gridValueX = horizontalStartSpace + 24; if (barValuesOffset == null) { barValuesOffset = new double[item.Data.Length]; - for (int i = 0; i < item.Data.Length; i++) + for (var i = 0; i < item.Data.Length; i++) { barValuesOffset[i] = boundHeight - verticalStartSpace; } } - int dataNumber = 0; + var dataNumber = 0; foreach (var dataLine in item.Data) { var dataValue = dataLine * verticalSpace / gridYUnits; diff --git a/src/MudBlazor/Components/Chart/Interpolation/EndSlopeSpline.cs b/src/MudBlazor/Components/Chart/Interpolation/EndSlopeSpline.cs index f9908870ca2f..1e52debdbb5b 100644 --- a/src/MudBlazor/Components/Chart/Interpolation/EndSlopeSpline.cs +++ b/src/MudBlazor/Components/Chart/Interpolation/EndSlopeSpline.cs @@ -28,17 +28,17 @@ public EndSlopeSpline(double[] xs, double[] ys, public void CalcParameters(double alpha, double beta) { - for (int i = 0; i < n; i++) + for (var i = 0; i < n; i++) a[i] = GivenYs[i]; - for (int i = 0; i < n - 1; i++) + for (var i = 0; i < n - 1; i++) h[i] = GivenXs[i + 1] - GivenXs[i]; m.a[0, 0] = 2.0 * h[0]; m.a[0, 1] = h[0]; - m.y[0] = 3 * ((a[1] - a[0]) / h[0] - Math.Tan(alpha * Math.PI / 180)); + m.y[0] = 3 * (((a[1] - a[0]) / h[0]) - Math.Tan(alpha * Math.PI / 180)); - for (int i = 0; i < n - 2; i++) + for (var i = 0; i < n - 2; i++) { m.a[i + 1, i] = h[i]; m.a[i + 1, i + 1] = 2.0 * (h[i] + h[i + 1]); @@ -46,30 +46,30 @@ public void CalcParameters(double alpha, double beta) m.a[i + 1, i + 2] = h[i + 1]; if ((h[i] != 0.0) && (h[i + 1] != 0.0)) - m.y[i + 1] = ((a[i + 2] - a[i + 1]) / h[i + 1] - (a[i + 1] - a[i]) / h[i]) * 3.0; + m.y[i + 1] = (((a[i + 2] - a[i + 1]) / h[i + 1]) - ((a[i + 1] - a[i]) / h[i])) * 3.0; else m.y[i + 1] = 0.0; } m.a[n - 1, n - 2] = h[n - 2]; m.a[n - 1, n - 1] = 2.0 * h[n - 2]; - m.y[n - 1] = 3.0 * (Math.Tan(beta * Math.PI / 180) - (a[n - 1] - a[n - 2]) / h[n - 2]); + m.y[n - 1] = 3.0 * (Math.Tan(beta * Math.PI / 180) - ((a[n - 1] - a[n - 2]) / h[n - 2])); if (gauss.Eliminate() == false) throw new InvalidOperationException(); gauss.Solve(); - for (int i = 0; i < n; i++) + for (var i = 0; i < n; i++) { c[i] = m.x[i]; } - for (int i = 0; i < n; i++) + for (var i = 0; i < n; i++) { if (h[i] != 0.0) { d[i] = 1.0 / 3.0 / h[i] * (c[i + 1] - c[i]); - b[i] = 1.0 / h[i] * (a[i + 1] - a[i]) - h[i] / 3.0 * (c[i + 1] + 2 * c[i]); + b[i] = (1.0 / h[i] * (a[i + 1] - a[i])) - (h[i] / 3.0 * (c[i + 1] + (2 * c[i]))); } } } diff --git a/src/MudBlazor/Components/Chart/Interpolation/MatrixSolver.cs b/src/MudBlazor/Components/Chart/Interpolation/MatrixSolver.cs index 30cfd7731fe2..93ae716662ab 100644 --- a/src/MudBlazor/Components/Chart/Interpolation/MatrixSolver.cs +++ b/src/MudBlazor/Components/Chart/Interpolation/MatrixSolver.cs @@ -57,7 +57,7 @@ public bool Eliminate() { if (!calcError) { - m.a[i + 1, l] = m.a[i + 1, l] * m.a[k, k] - m.a[k, l] * m.a[i + 1, k]; + m.a[i + 1, l] = (m.a[i + 1, l] * m.a[k, k]) - (m.a[k, l] * m.a[i + 1, k]); if (m.a[i + 1, l] > 10E260) { m.a[i + 1, k] = 0; @@ -65,7 +65,7 @@ public bool Eliminate() } } } - m.y[i + 1] = m.y[i + 1] * m.a[k, k] - m.y[k] * m.a[i + 1, k]; + m.y[i + 1] = (m.y[i + 1] * m.a[k, k]) - (m.y[k] * m.a[i + 1, k]); m.a[i + 1, k] = 0; } } @@ -80,7 +80,7 @@ public void Solve() { for (l = maxOrder - 1; l >= k; l--) { - m.y[k] = m.y[k] - m.x[l] * m.a[k, l]; + m.y[k] = m.y[k] - (m.x[l] * m.a[k, l]); } if (m.a[k, k] != 0) m.x[k] = m.y[k] / m.a[k, k]; diff --git a/src/MudBlazor/Components/Chart/Interpolation/NaturalSpline.cs b/src/MudBlazor/Components/Chart/Interpolation/NaturalSpline.cs index 853f042c4e8a..b27b2e7be4ed 100644 --- a/src/MudBlazor/Components/Chart/Interpolation/NaturalSpline.cs +++ b/src/MudBlazor/Components/Chart/Interpolation/NaturalSpline.cs @@ -28,15 +28,15 @@ public NaturalSpline(double[] xs, double[] ys, int resolution = 10) : base(xs, y } public void CalcParameters() { - for (int i = 0; i < n; i++) + for (var i = 0; i < n; i++) a[i] = GivenYs[i]; - for (int i = 0; i < n - 1; i++) + for (var i = 0; i < n - 1; i++) h[i] = GivenXs[i + 1] - GivenXs[i]; - for (int i = 0; i < n - 2; i++) + for (var i = 0; i < n - 2; i++) { - for (int k = 0; k < n - 2; k++) + for (var k = 0; k < n - 2; k++) { m.a[i, k] = 0.0; m.y[i] = 0.0; @@ -44,7 +44,7 @@ public void CalcParameters() } } - for (int i = 0; i < n - 2; i++) + for (var i = 0; i < n - 2; i++) { if (i == 0) { @@ -60,7 +60,7 @@ public void CalcParameters() } if ((h[i] != 0.0) && (h[i + 1] != 0.0)) - m.y[i] = ((a[i + 2] - a[i + 1]) / h[i + 1] - (a[i + 1] - a[i]) / h[i]) * 3.0; + m.y[i] = (((a[i + 2] - a[i + 1]) / h[i + 1]) - ((a[i + 1] - a[i]) / h[i])) * 3.0; else m.y[i] = 0.0; } @@ -73,15 +73,15 @@ public void CalcParameters() c[0] = 0.0; c[n - 1] = 0.0; - for (int i = 1; i < n - 1; i++) + for (var i = 1; i < n - 1; i++) c[i] = m.x[i - 1]; - for (int i = 0; i < n - 1; i++) + for (var i = 0; i < n - 1; i++) { if (h[i] != 0.0) { d[i] = 1.0 / 3.0 / h[i] * (c[i + 1] - c[i]); - b[i] = 1.0 / h[i] * (a[i + 1] - a[i]) - h[i] / 3.0 * (c[i + 1] + 2 * c[i]); + b[i] = (1.0 / h[i] * (a[i + 1] - a[i])) - (h[i] / 3.0 * (c[i + 1] + (2 * c[i]))); } } } diff --git a/src/MudBlazor/Components/Chart/Interpolation/PeriodicSpline.cs b/src/MudBlazor/Components/Chart/Interpolation/PeriodicSpline.cs index 50358bc424e7..82c06d15e446 100644 --- a/src/MudBlazor/Components/Chart/Interpolation/PeriodicSpline.cs +++ b/src/MudBlazor/Components/Chart/Interpolation/PeriodicSpline.cs @@ -26,24 +26,24 @@ public PeriodicSpline(double[] xs, double[] ys, int resolution = 10) : base(xs, public void CalcParameters() { - for (int i = 0; i < n; i++) + for (var i = 0; i < n; i++) a[i] = GivenYs[i]; - for (int i = 0; i < n - 1; i++) + for (var i = 0; i < n - 1; i++) h[i] = GivenXs[i + 1] - GivenXs[i]; a[n] = GivenYs[1]; h[n - 1] = h[0]; - for (int i = 0; i < n - 1; i++) - for (int k = 0; k < n - 1; k++) + for (var i = 0; i < n - 1; i++) + for (var k = 0; k < n - 1; k++) { m.a[i, k] = 0.0; m.y[i] = 0.0; m.x[i] = 0.0; } - for (int i = 0; i < n - 1; i++) + for (var i = 0; i < n - 1; i++) { if (i == 0) { @@ -58,7 +58,7 @@ public void CalcParameters() m.a[i, i + 1] = h[i + 1]; } if ((h[i] != 0.0) && (h[i + 1] != 0.0)) - m.y[i] = ((a[i + 2] - a[i + 1]) / h[i + 1] - (a[i + 1] - a[i]) / h[i]) * 3.0; + m.y[i] = (((a[i + 2] - a[i + 1]) / h[i + 1]) - ((a[i + 1] - a[i]) / h[i])) * 3.0; else m.y[i] = 0.0; } @@ -71,16 +71,16 @@ public void CalcParameters() gauss.Solve(); - for (int i = 1; i < n; i++) + for (var i = 1; i < n; i++) c[i] = m.x[i - 1]; c[0] = c[n - 1]; - for (int i = 0; i < n; i++) + for (var i = 0; i < n; i++) { if (h[i] != 0.0) { d[i] = 1.0 / 3.0 / h[i] * (c[i + 1] - c[i]); - b[i] = 1.0 / h[i] * (a[i + 1] - a[i]) - h[i] / 3.0 * (c[i + 1] + 2 * c[i]); + b[i] = (1.0 / h[i] * (a[i + 1] - a[i])) - (h[i] / 3.0 * (c[i + 1] + (2 * c[i]))); } } } diff --git a/src/MudBlazor/Components/Chart/Interpolation/SplineInterpolator.cs b/src/MudBlazor/Components/Chart/Interpolation/SplineInterpolator.cs index a50eadaf8005..560d9d787a0e 100644 --- a/src/MudBlazor/Components/Chart/Interpolation/SplineInterpolator.cs +++ b/src/MudBlazor/Components/Chart/Interpolation/SplineInterpolator.cs @@ -40,17 +40,17 @@ public SplineInterpolator(double[] xs, double[] ys, int resolution = 10) } public void Interpolate() { - int resolution = InterpolatedXs.Length / n; - for (int i = 0; i < h.Length; i++) + var resolution = InterpolatedXs.Length / n; + for (var i = 0; i < h.Length; i++) { - for (int k = 0; k < resolution; k++) + for (var k = 0; k < resolution; k++) { - double deltaX = (double)k / resolution * h[i]; - double termA = a[i]; - double termB = b[i] * deltaX; - double termC = c[i] * deltaX * deltaX; - double termD = d[i] * deltaX * deltaX * deltaX; - int interpolatedIndex = i * resolution + k; + var deltaX = (double)k / resolution * h[i]; + var termA = a[i]; + var termB = b[i] * deltaX; + var termC = c[i] * deltaX * deltaX; + var termD = d[i] * deltaX * deltaX * deltaX; + var interpolatedIndex = (i * resolution) + k; InterpolatedXs[interpolatedIndex] = deltaX + GivenXs[i]; InterpolatedYs[interpolatedIndex] = termA + termB + termC + termD; } @@ -59,9 +59,9 @@ public void Interpolate() // After interpolation the last several values of the interpolated arrays // contain uninitialized data. This section identifies the values which are // populated with values and copies just the useful data into new arrays. - int pointsToKeep = resolution * (n - 1) + 1; - double[] interpolatedXsCopy = new double[pointsToKeep]; - double[] interpolatedYsCopy = new double[pointsToKeep]; + var pointsToKeep = (resolution * (n - 1)) + 1; + var interpolatedXsCopy = new double[pointsToKeep]; + var interpolatedYsCopy = new double[pointsToKeep]; Array.Copy(InterpolatedXs, 0, interpolatedXsCopy, 0, pointsToKeep - 1); Array.Copy(InterpolatedYs, 0, interpolatedYsCopy, 0, pointsToKeep - 1); InterpolatedXs = interpolatedXsCopy; @@ -73,12 +73,12 @@ public void Interpolate() public double Integrate() { double integral = 0; - for (int i = 0; i < h.Length; i++) + for (var i = 0; i < h.Length; i++) { - double termA = a[i] * h[i]; - double termB = b[i] * Math.Pow(h[i], 2) / 2.0; - double termC = c[i] * Math.Pow(h[i], 3) / 3.0; - double termD = d[i] * Math.Pow(h[i], 4) / 4.0; + var termA = a[i] * h[i]; + var termB = b[i] * Math.Pow(h[i], 2) / 2.0; + var termC = c[i] * Math.Pow(h[i], 3) / 3.0; + var termD = d[i] * Math.Pow(h[i], 4) / 4.0; integral += termA + termB + termC + termD; } return integral; diff --git a/src/MudBlazor/Components/ColorPicker/MudColorPicker.razor.cs b/src/MudBlazor/Components/ColorPicker/MudColorPicker.razor.cs index 935cd7881b2e..3ec821c7bb3e 100644 --- a/src/MudBlazor/Components/ColorPicker/MudColorPicker.razor.cs +++ b/src/MudBlazor/Components/ColorPicker/MudColorPicker.razor.cs @@ -76,7 +76,7 @@ public bool DisableAlpha { _disableAlpha = value; - if (value == true) + if (value) { Value = Value.SetAlpha(1.0); } @@ -332,9 +332,9 @@ private void UpdateBaseColor() var valueInDeg = (int)_value.H - (index * 60); var value = (int)(MathExtensions.Map(0, 60, 0, 255, valueInDeg)); - var section = _rgbToHueMapper[index]; + var (r, g, b, dominantColorPart) = _rgbToHueMapper[index]; - _baseColor = new(section.r(value), section.g(value), section.b(value), 255); + _baseColor = new(r(value), g(value), b(value), 255); } private void UpdateColorBaseOnSelection() @@ -345,7 +345,7 @@ private void UpdateColorBaseOnSelection() var g_x = 255 - (int)((255 - _baseColor.G) * x); var b_x = 255 - (int)((255 - _baseColor.B) * x); - var y = 1.0 - _selectorY / _maxY; + var y = 1.0 - (_selectorY / _maxY); var r = r_x * y; var g = g_x * y; @@ -366,9 +366,9 @@ private void UpdateColorSelectorBasedOnRgb() index = 5; } - var section = _rgbToHueMapper[index]; + var (r, g, b, dominantColorPart) = _rgbToHueMapper[index]; - var colorValues = section.dominantColorPart switch + var colorValues = dominantColorPart switch { "rb" => (_value.R, _value.B), "rg" => (_value.R, _value.G), @@ -427,8 +427,8 @@ private void OnMouseOver(MouseEventArgs e) private void SetSelectorBasedOnMouseEvents(MouseEventArgs e, bool offsetIsAbsolute) { - _selectorX = (offsetIsAbsolute == true ? e.OffsetX : (e.OffsetX - _selctorSize / 2.0) + _selectorX).EnsureRange(_maxX); - _selectorY = (offsetIsAbsolute == true ? e.OffsetY : (e.OffsetY - _selctorSize / 2.0) + _selectorY).EnsureRange(_maxY); + _selectorX = (offsetIsAbsolute ? e.OffsetX : (e.OffsetX - (_selctorSize / 2.0)) + _selectorX).EnsureRange(_maxX); + _selectorY = (offsetIsAbsolute ? e.OffsetY : (e.OffsetY - (_selctorSize / 2.0)) + _selectorY).EnsureRange(_maxY); } #endregion @@ -528,7 +528,7 @@ protected override async Task OnPickerClosedAsync() #region helper private string GetSelectorLocation() => $"translate({Math.Round(_selectorX, 2).ToString(CultureInfo.InvariantCulture)}px, {Math.Round(_selectorY, 2).ToString(CultureInfo.InvariantCulture)}px);"; - private string GetColorTextValue() => (DisableAlpha == true || _activeColorPickerView is ColorPickerView.Palette or ColorPickerView.GridCompact) ? _value.ToString(MudColorOutputFormats.Hex) : _value.ToString(MudColorOutputFormats.HexA); + private string GetColorTextValue() => (DisableAlpha || _activeColorPickerView is ColorPickerView.Palette or ColorPickerView.GridCompact) ? _value.ToString(MudColorOutputFormats.Hex) : _value.ToString(MudColorOutputFormats.HexA); private int GetHexColorInputMaxLength() => DisableAlpha ? 7 : 9; private EventCallback GetEventCallback() => EventCallback.Factory.Create(this, () => CloseAsync()); @@ -547,7 +547,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); - if (firstRender == true) + if (firstRender) { if (PickerVariant == PickerVariant.Static) { @@ -555,7 +555,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender) } } - if (_attachedMouseEvent == true) + if (_attachedMouseEvent) { _attachedMouseEvent = false; await AddMouseOverEventAsync(); @@ -564,7 +564,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender) private async Task AddMouseOverEventAsync() { - if (DisableDragEffect == true) { return; } + if (DisableDragEffect) { return; } if (_throttledEventManager == null) { diff --git a/src/MudBlazor/Components/DataGrid/MudDataGrid.razor.cs b/src/MudBlazor/Components/DataGrid/MudDataGrid.razor.cs index 6f47aa81e575..87e6390d2bc8 100644 --- a/src/MudBlazor/Components/DataGrid/MudDataGrid.razor.cs +++ b/src/MudBlazor/Components/DataGrid/MudDataGrid.razor.cs @@ -67,7 +67,7 @@ public partial class MudDataGrid : MudComponentBase protected string _tableStyle => new StyleBuilder() .AddStyle("height", Height, !string.IsNullOrWhiteSpace(Height)) - .AddStyle("width", "max-content", when: (HorizontalScrollbar || ColumnResizeMode == ResizeMode.Container)) + .AddStyle("width", "max-content", when: HorizontalScrollbar || ColumnResizeMode == ResizeMode.Container) .AddStyle("overflow", "clip", when: (HorizontalScrollbar || ColumnResizeMode == ResizeMode.Container) && hasStickyColumns) .AddStyle("display", "block", when: HorizontalScrollbar) .Build(); @@ -145,7 +145,7 @@ protected int numPages private static void Swap(List list, int indexA, int indexB) { - TItem tmp = list[indexA]; + var tmp = list[indexA]; list[indexA] = list[indexB]; list[indexB] = tmp; } diff --git a/src/MudBlazor/Components/DataGrid/MudDataGridPager.razor.cs b/src/MudBlazor/Components/DataGrid/MudDataGridPager.razor.cs index b62d4fe4cc8f..30375ccf4627 100644 --- a/src/MudBlazor/Components/DataGrid/MudDataGridPager.razor.cs +++ b/src/MudBlazor/Components/DataGrid/MudDataGridPager.razor.cs @@ -43,7 +43,7 @@ public partial class MudDataGridPager : MudComponentBase, IDisposable [Parameter] public string RowsPerPageString { get; set; } = "Rows per page:"; private string Info => DataGrid == null ? "DataGrid==null" : InfoFormat - .Replace("{first_item}", $"{DataGrid?.CurrentPage * DataGrid.RowsPerPage + 1}") + .Replace("{first_item}", $"{(DataGrid?.CurrentPage * DataGrid.RowsPerPage) + 1}") .Replace("{last_item}", $"{Math.Min((DataGrid.CurrentPage + 1) * DataGrid.RowsPerPage, DataGrid.GetFilteredItemsCount())}") .Replace("{all_items}", $"{DataGrid.GetFilteredItemsCount()}"); diff --git a/src/MudBlazor/Components/DatePicker/MudBaseDatePicker.razor.cs b/src/MudBlazor/Components/DatePicker/MudBaseDatePicker.razor.cs index c10df7646339..286bd9ba21ec 100644 --- a/src/MudBlazor/Components/DatePicker/MudBaseDatePicker.razor.cs +++ b/src/MudBlazor/Components/DatePicker/MudBaseDatePicker.razor.cs @@ -234,9 +234,9 @@ public Func IsDateDisabledFunc protected override async Task OnPickerOpenedAsync() { await base.OnPickerOpenedAsync(); - if (Editable == true && Text != null) + if (Editable && Text != null) { - DateTime? a = Converter.Get(Text); + var a = Converter.Get(Text); if (a.HasValue) { a = new DateTime(a.Value.Year, a.Value.Month, 1); @@ -626,7 +626,7 @@ private int GetCalendarDayOfMonth(DateTime date) private ValueTask HandleMouseoverOnPickerCalendarDayButton(int tempId) { - return this.JsApiService.UpdateStyleProperty(_mudPickerCalendarContentElementId, "--selected-day", tempId); + return JsApiService.UpdateStyleProperty(_mudPickerCalendarContentElementId, "--selected-day", tempId); } } } diff --git a/src/MudBlazor/Components/DatePicker/MudDatePicker.cs b/src/MudBlazor/Components/DatePicker/MudDatePicker.cs index 3342385bc9ea..0ec3153a675c 100644 --- a/src/MudBlazor/Components/DatePicker/MudDatePicker.cs +++ b/src/MudBlazor/Components/DatePicker/MudDatePicker.cs @@ -195,7 +195,7 @@ public override async Task ClearAsync(bool close = true) _selectedDate = null; await SetDateAsync(null, true); - if (AutoClose == true) + if (AutoClose) { await CloseAsync(false); } @@ -245,11 +245,11 @@ protected internal override async Task OnHandleKeyDownAsync(KeyboardEventArgs ar { IsOpen = true; } - else if (args.AltKey == true) + else if (args.AltKey) { IsOpen = false; } - else if (args.ShiftKey == true) + else if (args.ShiftKey) { } @@ -263,7 +263,7 @@ protected internal override async Task OnHandleKeyDownAsync(KeyboardEventArgs ar { IsOpen = true; } - else if (args.ShiftKey == true) + else if (args.ShiftKey) { } diff --git a/src/MudBlazor/Components/Dialog/MudDialogInstance.razor.cs b/src/MudBlazor/Components/Dialog/MudDialogInstance.razor.cs index 1e0dec3aa79e..b184712ce012 100644 --- a/src/MudBlazor/Components/Dialog/MudDialogInstance.razor.cs +++ b/src/MudBlazor/Components/Dialog/MudDialogInstance.razor.cs @@ -123,9 +123,8 @@ public void SetTitle(string title) } /// - /// Close and return null. - /// - /// This is a shorthand of Close(DialogResult.Ok((object)null)); + /// Close and return null. + /// This is a shorthand of Close(DialogResult.Ok((object)null)); /// public void Close() { @@ -133,9 +132,8 @@ public void Close() } /// - /// Close with dialog result. - /// - /// Usage: Close(DialogResult.Ok(returnValue)) + /// Close with dialog result. + /// Usage: Close(DialogResult.Ok(returnValue)) /// public void Close(DialogResult dialogResult) { @@ -143,9 +141,8 @@ public void Close(DialogResult dialogResult) } /// - /// Close and directly pass a return value. - /// - /// This is a shorthand for Close(DialogResult.Ok(returnValue)) + /// Close and directly pass a return value. + /// This is a shorthand for Close(DialogResult.Ok(returnValue)) /// /// /// diff --git a/src/MudBlazor/Components/Form/MudForm.razor.cs b/src/MudBlazor/Components/Form/MudForm.razor.cs index 19c512ed76a5..97d3c41b7aeb 100644 --- a/src/MudBlazor/Components/Form/MudForm.razor.cs +++ b/src/MudBlazor/Components/Form/MudForm.razor.cs @@ -315,7 +315,7 @@ public void ResetValidation() /// public void ResetTouched() { - this._touched = false; + _touched = false; } protected override Task OnAfterRenderAsync(bool firstRender) diff --git a/src/MudBlazor/Components/Highlighter/Splitter.cs b/src/MudBlazor/Components/Highlighter/Splitter.cs index aced369c1383..a7796a33ed27 100644 --- a/src/MudBlazor/Components/Highlighter/Splitter.cs +++ b/src/MudBlazor/Components/Highlighter/Splitter.cs @@ -43,7 +43,7 @@ public static Memory GetFragments(string? text, builder.Append("((?:"); //this becomes true if `AppendPattern` was called at least once. - bool hasAtLeastOnePattern = false; + var hasAtLeastOnePattern = false; if (!string.IsNullOrEmpty(highlightedText)) { AppendPattern(highlightedText); diff --git a/src/MudBlazor/Components/Input/MudInput.razor.cs b/src/MudBlazor/Components/Input/MudInput.razor.cs index 9010edbefd50..3f38ba8e4bcd 100644 --- a/src/MudBlazor/Components/Input/MudInput.razor.cs +++ b/src/MudBlazor/Components/Input/MudInput.razor.cs @@ -24,9 +24,9 @@ public partial class MudInput : MudBaseInput, IAsyncDisposable protected string ClearButtonClassname => new CssBuilder() .AddClass("me-n1", Adornment == Adornment.End && HideSpinButtons == false) - .AddClass("mud-icon-button-edge-end", Adornment == Adornment.End && HideSpinButtons == true) + .AddClass("mud-icon-button-edge-end", Adornment == Adornment.End && HideSpinButtons) .AddClass("me-6", Adornment != Adornment.End && HideSpinButtons == false) - .AddClass("mud-icon-button-edge-margin-end", Adornment != Adornment.End && HideSpinButtons == true) + .AddClass("mud-icon-button-edge-margin-end", Adornment != Adornment.End && HideSpinButtons) .Build(); /// diff --git a/src/MudBlazor/Components/Mask/MudMask.razor.cs b/src/MudBlazor/Components/Mask/MudMask.razor.cs index 08261d6b7345..ebc33a9b0eb0 100644 --- a/src/MudBlazor/Components/Mask/MudMask.razor.cs +++ b/src/MudBlazor/Components/Mask/MudMask.razor.cs @@ -15,7 +15,7 @@ namespace MudBlazor { - public partial class MudMask : MudBaseInput, IDisposable + public partial class MudMask : MudBaseInput { public MudMask() { @@ -434,7 +434,7 @@ protected override void Dispose(bool disposing) { base.Dispose(disposing); - if (disposing == true) + if (disposing) { if (_keyInterceptor != null) { diff --git a/src/MudBlazor/Components/MessageBox/MudMessageBox.razor.cs b/src/MudBlazor/Components/MessageBox/MudMessageBox.razor.cs index d47600215dc1..c8ccf579661a 100644 --- a/src/MudBlazor/Components/MessageBox/MudMessageBox.razor.cs +++ b/src/MudBlazor/Components/MessageBox/MudMessageBox.razor.cs @@ -176,7 +176,7 @@ public bool IsVisible [nameof(YesText)] = YesText, [nameof(YesButton)] = YesButton, }; - _reference = await DialogService.ShowAsync(parameters: parameters, options: options, title: Title); + _reference = await DialogService.ShowAsync(title: Title, parameters: parameters, options: options); var result = await _reference.Result; if (result.Canceled || result.Data is not bool data) { diff --git a/src/MudBlazor/Components/NumericField/MudNumericField.razor.cs b/src/MudBlazor/Components/NumericField/MudNumericField.razor.cs index 3401163b996b..4fb9b2ee146c 100644 --- a/src/MudBlazor/Components/NumericField/MudNumericField.razor.cs +++ b/src/MudBlazor/Components/NumericField/MudNumericField.razor.cs @@ -20,7 +20,7 @@ public partial class MudNumericField : MudDebouncedInput private IKeyInterceptor _keyInterceptor; private Comparer _comparer = new(CultureInfo.InvariantCulture); - public MudNumericField() : base() + public MudNumericField() { Validation = new Func>(ValidateInput); #region parameters default depending on T @@ -205,12 +205,12 @@ private async Task Change(double factor = 1) private T GetNextValue(double factor) { if (typeof(T) == typeof(decimal) || typeof(T) == typeof(decimal?)) - return (T)(object)Convert.ToDecimal(FromDecimal(Value) + FromDecimal(Step) * (decimal)factor); + return (T)(object)Convert.ToDecimal(FromDecimal(Value) + (FromDecimal(Step) * (decimal)factor)); if (typeof(T) == typeof(long) || typeof(T) == typeof(long?)) - return (T)(object)Convert.ToInt64(FromInt64(Value) + FromInt64(Step) * factor); + return (T)(object)Convert.ToInt64(FromInt64(Value) + (FromInt64(Step) * factor)); if (typeof(T) == typeof(ulong) || typeof(T) == typeof(ulong?)) - return (T)(object)Convert.ToUInt64(FromUInt64(Value) + FromUInt64(Step) * factor); - return Num.To(Num.From(Value) + Num.From(Step) * factor); + return (T)(object)Convert.ToUInt64(FromUInt64(Value) + (FromUInt64(Step) * factor)); + return Num.To(Num.From(Value) + (Num.From(Step) * factor)); } /// @@ -393,11 +393,12 @@ public T Step public override InputMode InputMode { get; set; } = InputMode.numeric; /// + /// /// The pattern attribute, when specified, is a regular expression which the input's value must match in order for the value to pass constraint validation. It must be a valid JavaScript regular expression /// Defaults to [0-9,.\-] /// To get a numerical keyboard on safari, use the pattern. The default pattern should achieve numerical keyboard. - /// - /// Note: this pattern is also used to prevent all input except numbers and allowed characters. So for instance to allow only numbers, no signs and no commas you might change it to to [0-9.] + /// + /// Note: this pattern is also used to prevent all input except numbers and allowed characters. So for instance to allow only numbers, no signs and no commas you might change it to [0-9.] /// [Parameter] public override string Pattern { get; set; } = @"[0-9,.\-]"; @@ -432,7 +433,7 @@ protected override void Dispose(bool disposing) { base.Dispose(disposing); - if (disposing == true) + if (disposing) { _keyInterceptor?.Dispose(); } diff --git a/src/MudBlazor/Components/PageContentNavigation/MudPageContentNavigation.razor.cs b/src/MudBlazor/Components/PageContentNavigation/MudPageContentNavigation.razor.cs index e9d1e35f2638..8f7762db0457 100644 --- a/src/MudBlazor/Components/PageContentNavigation/MudPageContentNavigation.razor.cs +++ b/src/MudBlazor/Components/PageContentNavigation/MudPageContentNavigation.razor.cs @@ -130,8 +130,8 @@ public void AddSection(MudPageContentSection section, bool forceUpdate) { _sections.Add(section); - int diffRootLevel = 1_000_000; - int counter = 0; + var diffRootLevel = 1_000_000; + var counter = 0; foreach (var item in _sections.Where(x => x.Parent is null)) { item.SetLevelStructure(counter, diffRootLevel); diff --git a/src/MudBlazor/Components/PageContentNavigation/MudPageContentSection.cs b/src/MudBlazor/Components/PageContentNavigation/MudPageContentSection.cs index 4f227fad3758..9792ff8dc5b8 100644 --- a/src/MudBlazor/Components/PageContentNavigation/MudPageContentSection.cs +++ b/src/MudBlazor/Components/PageContentNavigation/MudPageContentSection.cs @@ -68,8 +68,8 @@ public MudPageContentSection(string title, string id, int level, MudPageContentS internal void SetLevelStructure(int counter, int diff) { LevelSortingValue = counter; - int levelDiff = diff / 10; - int value = counter + levelDiff; + var levelDiff = diff / 10; + var value = counter + levelDiff; foreach (var item in _children) { item.SetLevelStructure(value, levelDiff); diff --git a/src/MudBlazor/Components/Pagination/MudPagination.razor.cs b/src/MudBlazor/Components/Pagination/MudPagination.razor.cs index 480660dcd9b0..993dbf077af7 100644 --- a/src/MudBlazor/Components/Pagination/MudPagination.razor.cs +++ b/src/MudBlazor/Components/Pagination/MudPagination.razor.cs @@ -227,10 +227,10 @@ public int Selected private IEnumerable GeneratePagination() { //return array {1, ..., Count} if Count is small - if (Count <= 4 || Count <= 2 * BoundaryCount + MiddleCount + 2) + if (Count <= 4 || Count <= (2 * BoundaryCount) + MiddleCount + 2) return Enumerable.Range(1, Count).ToArray(); - var length = 2 * BoundaryCount + MiddleCount + 2; + var length = (2 * BoundaryCount) + MiddleCount + 2; var pages = new int[length]; //set start boundary items, e.g. if BoundaryCount == 3 => [1, 2, 3, ...] @@ -247,12 +247,12 @@ private IEnumerable GeneratePagination() //calculate start value for middle items int startValue; - if (Selected <= BoundaryCount + MiddleCount / 2 + 1) + if (Selected <= BoundaryCount + (MiddleCount / 2) + 1) startValue = BoundaryCount + 2; - else if (Selected >= Count - BoundaryCount - MiddleCount / 2) + else if (Selected >= Count - BoundaryCount - (MiddleCount / 2)) startValue = Count - BoundaryCount - MiddleCount; else - startValue = Selected - MiddleCount / 2; + startValue = Selected - (MiddleCount / 2); //set middle items, e.g. if MiddleCount == 3 and Selected == 5 and Count == 11 => [..., 4, 5, 6, ...] for (var i = 0; i < MiddleCount; i++) @@ -261,10 +261,10 @@ private IEnumerable GeneratePagination() } //set start delimiter "..." when selected page is far enough to the end, dots are represented as -1 - pages[BoundaryCount] = (BoundaryCount + MiddleCount / 2 + 1 < Selected) ? -1 : BoundaryCount + 1; + pages[BoundaryCount] = (BoundaryCount + (MiddleCount / 2) + 1 < Selected) ? -1 : BoundaryCount + 1; //set end delimiter "..." when selected page is far enough to the start, dots are represented as -1 - pages[length - BoundaryCount - 1] = (Count - BoundaryCount - MiddleCount / 2 > Selected) ? -1 : Count - BoundaryCount; + pages[length - BoundaryCount - 1] = (Count - BoundaryCount - (MiddleCount / 2) > Selected) ? -1 : Count - BoundaryCount; //remove ellipsis if difference is small enough, e.g convert [..., 5 , -1 , 7, ...] to [..., 5, 6, 7, ...] for (var i = 0; i < length - 2; i++) diff --git a/src/MudBlazor/Components/Picker/MudPicker.razor.cs b/src/MudBlazor/Components/Picker/MudPicker.razor.cs index f663458707bc..3d5a96d4f503 100644 --- a/src/MudBlazor/Components/Picker/MudPicker.razor.cs +++ b/src/MudBlazor/Components/Picker/MudPicker.razor.cs @@ -553,7 +553,7 @@ protected internal virtual async Task OnHandleKeyDownAsync(KeyboardEventArgs arg switch (args.Key) { case "Backspace": - if (args.CtrlKey == true && args.ShiftKey == true) + if (args.CtrlKey && args.ShiftKey) { await ClearAsync(); _value = default; diff --git a/src/MudBlazor/Components/Progress/MudProgressCircular.razor.cs b/src/MudBlazor/Components/Progress/MudProgressCircular.razor.cs index 12d2750a16b5..94ba9e671386 100644 --- a/src/MudBlazor/Components/Progress/MudProgressCircular.razor.cs +++ b/src/MudBlazor/Components/Progress/MudProgressCircular.razor.cs @@ -88,7 +88,7 @@ private int ToSvgValue(double value) // calculate fraction, which is a value between 0 and 1 var fraction = (minValue - Min) / (Max - Min); // now project into the range of the SVG value (126 .. 0) - return (int)Math.Round(_magicNumber - _magicNumber * fraction); + return (int)Math.Round(_magicNumber - (_magicNumber * fraction)); } } } diff --git a/src/MudBlazor/Components/Radio/MudRadio.razor.cs b/src/MudBlazor/Components/Radio/MudRadio.razor.cs index e31aa8f635e8..497c889a86c0 100644 --- a/src/MudBlazor/Components/Radio/MudRadio.razor.cs +++ b/src/MudBlazor/Components/Radio/MudRadio.razor.cs @@ -26,7 +26,7 @@ public partial class MudRadio : MudComponentBase, IDisposable protected string ButtonClassname => new CssBuilder("mud-button-root mud-icon-button") .AddClass($"mud-ripple mud-ripple-radio", !DisableRipple && !Disabled && !(MudRadioGroup?.GetDisabledState() ?? false) && !(MudRadioGroup?.GetReadOnlyState() ?? false)) - .AddClass($"mud-{Color.ToDescriptionString()}-text hover:mud-{Color.ToDescriptionString()}-hover", UnCheckedColor == null || (UnCheckedColor != null && Checked == true)) + .AddClass($"mud-{Color.ToDescriptionString()}-text hover:mud-{Color.ToDescriptionString()}-hover", UnCheckedColor == null || (UnCheckedColor != null && Checked)) .AddClass($"mud-{UnCheckedColor?.ToDescriptionString()}-text hover:mud-{UnCheckedColor?.ToDescriptionString()}-hover", UnCheckedColor != null && Checked == false) .AddClass($"mud-radio-dense", Dense) .AddClass($"mud-disabled", IsDisabled) diff --git a/src/MudBlazor/Components/ScrollToTop/MudScrollToTop.razor.cs b/src/MudBlazor/Components/ScrollToTop/MudScrollToTop.razor.cs index 367dcb4ece8e..ee92b10f00b7 100644 --- a/src/MudBlazor/Components/ScrollToTop/MudScrollToTop.razor.cs +++ b/src/MudBlazor/Components/ScrollToTop/MudScrollToTop.razor.cs @@ -117,7 +117,7 @@ private async void ScrollListener_OnScroll(object? sender, ScrollEventArgs e) await InvokeAsync(StateHasChanged); } - if (topOffset < TopOffset && Visible == true) + if (topOffset < TopOffset && Visible) { Visible = false; await InvokeAsync(StateHasChanged); diff --git a/src/MudBlazor/Components/Select/MudSelect.razor.cs b/src/MudBlazor/Components/Select/MudSelect.razor.cs index ddc2781f7773..33407b422076 100644 --- a/src/MudBlazor/Components/Select/MudSelect.razor.cs +++ b/src/MudBlazor/Components/Select/MudSelect.razor.cs @@ -57,7 +57,7 @@ private async Task SelectAdjacentItem(int direction) index = 0; MudSelectItem item = null; // the loop allows us to jump over disabled items until we reach the next non-disabled one - for (int i = 0; i < _items.Count; i++) + for (var i = 0; i < _items.Count; i++) { index += direction; if (index < 0) @@ -387,7 +387,7 @@ protected bool CanRenderValue return false; if (!_shadowLookup.TryGetValue(Value, out var item)) return false; - return (item.ChildContent != null); + return item.ChildContent != null; } } @@ -707,7 +707,7 @@ public async Task CloseMenu(bool focusAgain = true) { _isOpen = false; UpdateIcon(); - if (focusAgain == true) + if (focusAgain) { StateHasChanged(); await OnBlur.InvokeAsync(new FocusEventArgs()); @@ -877,7 +877,7 @@ internal async void HandleKeyDown(KeyboardEventArgs obj) await CloseMenu(false); break; case "ArrowUp": - if (obj.AltKey == true) + if (obj.AltKey) { await CloseMenu(); break; @@ -893,7 +893,7 @@ internal async void HandleKeyDown(KeyboardEventArgs obj) break; } case "ArrowDown": - if (obj.AltKey == true) + if (obj.AltKey) { await OpenMenu(); break; @@ -950,7 +950,7 @@ internal async void HandleKeyDown(KeyboardEventArgs obj) } case "a": case "A": - if (obj.CtrlKey == true) + if (obj.CtrlKey) { if (MultiSelection) { @@ -997,7 +997,7 @@ private async Task SelectAllClickAsync() else _selectAllChecked = true; // Define the items selection - if (_selectAllChecked.Value == true) + if (_selectAllChecked.Value) await SelectAllItems(); else await Clear(); @@ -1060,7 +1060,7 @@ protected override void Dispose(bool disposing) { base.Dispose(disposing); - if (disposing == true) + if (disposing) { if (_keyInterceptor != null) { diff --git a/src/MudBlazor/Components/Select/MudSelectItem.razor.cs b/src/MudBlazor/Components/Select/MudSelectItem.razor.cs index 1b313f613e99..4e7e6994b859 100644 --- a/src/MudBlazor/Components/Select/MudSelectItem.razor.cs +++ b/src/MudBlazor/Components/Select/MudSelectItem.razor.cs @@ -11,7 +11,7 @@ namespace MudBlazor /// public partial class MudSelectItem : MudBaseSelectItem, IDisposable { - private String GetCssClasses() => new CssBuilder() + private string GetCssClasses() => new CssBuilder() .AddClass(Class) .Build(); @@ -33,7 +33,7 @@ internal IMudSelect IMudSelect _parent.CheckGenericTypeMatch(this); if (MudSelect == null) return; - bool isSelected = MudSelect.Add(this); + var isSelected = MudSelect.Add(this); if (_parent.MultiSelection) { MudSelect.SelectionChangedFromOutside += OnUpdateSelectionStateFromOutside; diff --git a/src/MudBlazor/Components/Snackbar/SnackbarService.cs b/src/MudBlazor/Components/Snackbar/SnackbarService.cs index 9f04021f15d9..9c010070ae7d 100644 --- a/src/MudBlazor/Components/Snackbar/SnackbarService.cs +++ b/src/MudBlazor/Components/Snackbar/SnackbarService.cs @@ -15,7 +15,7 @@ namespace MudBlazor { /// - public class SnackbarService : ISnackbar, IDisposable + public class SnackbarService : ISnackbar { public SnackbarConfiguration Configuration { get; } public event Action OnSnackbarsUpdated; diff --git a/src/MudBlazor/Components/Table/MudTFootRow.razor.cs b/src/MudBlazor/Components/Table/MudTFootRow.razor.cs index b4bd061a3f98..b22f59f156fe 100644 --- a/src/MudBlazor/Components/Table/MudTFootRow.razor.cs +++ b/src/MudBlazor/Components/Table/MudTFootRow.razor.cs @@ -20,12 +20,12 @@ public partial class MudTFootRow : MudComponentBase [Parameter] public bool IsCheckable { get; set; } /// - /// Specify behavior in case the table is multi-select mode. If set to true, it won't render an additional empty column. + /// Specify behavior in case the table is multi-select mode. If set to true, it won't render an additional empty column. /// [Parameter] public bool IgnoreCheckbox { get; set; } /// - /// Specify behavior in case the table is editable. If set to true, it won't render an additional empty column. + /// Specify behavior in case the table is editable. If set to true, it won't render an additional empty column. /// [Parameter] public bool IgnoreEditable { get; set; } diff --git a/src/MudBlazor/Components/Table/MudTHeadRow.razor.cs b/src/MudBlazor/Components/Table/MudTHeadRow.razor.cs index 1ecfee9d6778..23e858f9f4c9 100644 --- a/src/MudBlazor/Components/Table/MudTHeadRow.razor.cs +++ b/src/MudBlazor/Components/Table/MudTHeadRow.razor.cs @@ -20,12 +20,12 @@ public partial class MudTHeadRow : MudComponentBase [Parameter] public bool IsCheckable { get; set; } /// - /// Specify behavior in case the table is multi-select mode. If set to true, it won't render an additional empty column. + /// Specify behavior in case the table is multi-select mode. If set to true, it won't render an additional empty column. /// [Parameter] public bool IgnoreCheckbox { get; set; } /// - /// Specify behavior in case the table is editable. If set to true, it won't render an additional empty column. + /// Specify behavior in case the table is editable. If set to true, it won't render an additional empty column. /// [Parameter] public bool IgnoreEditable { get; set; } diff --git a/src/MudBlazor/Components/Table/MudTable.razor.cs b/src/MudBlazor/Components/Table/MudTable.razor.cs index 59f272b179da..74f9f7995c9d 100644 --- a/src/MudBlazor/Components/Table/MudTable.razor.cs +++ b/src/MudBlazor/Components/Table/MudTable.razor.cs @@ -509,7 +509,7 @@ public override TableContext TableContext get { Context.Table = this; - Context.TableStateHasChanged = this.StateHasChanged; + Context.TableStateHasChanged = StateHasChanged; return Context; } } diff --git a/src/MudBlazor/Components/Table/MudTablePager.razor.cs b/src/MudBlazor/Components/Table/MudTablePager.razor.cs index 26e43fc73f62..36897751267f 100644 --- a/src/MudBlazor/Components/Table/MudTablePager.razor.cs +++ b/src/MudBlazor/Components/Table/MudTablePager.razor.cs @@ -73,7 +73,7 @@ private string Info return Table == null ? "Table==null" : InfoFormat - .Replace("{first_item}", $"{(filteredItemsCount == 0 ? 0 : Table?.CurrentPage * Table.RowsPerPage + 1)}") + .Replace("{first_item}", $"{(filteredItemsCount == 0 ? 0 : (Table?.CurrentPage * Table.RowsPerPage) + 1)}") .Replace("{last_item}", $"{Math.Min((Table.CurrentPage + 1) * Table.RowsPerPage, filteredItemsCount)}") .Replace("{all_items}", $"{filteredItemsCount}"); } diff --git a/src/MudBlazor/Components/Tabs/MudTabs.razor.cs b/src/MudBlazor/Components/Tabs/MudTabs.razor.cs index 71061f4ab0dd..5c590028fef3 100644 --- a/src/MudBlazor/Components/Tabs/MudTabs.razor.cs +++ b/src/MudBlazor/Components/Tabs/MudTabs.razor.cs @@ -346,7 +346,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender) public async ValueTask DisposeAsync() { - if (_isDisposed == true) + if (_isDisposed) return; _isDisposed = true; _resizeObserver.OnResized -= OnResized; @@ -370,7 +370,7 @@ internal void AddPanel(MudTabPanel tabPanel) internal async Task SetPanelRef(ElementReference reference) { - if (_isRendered == true && _resizeObserver.IsElementObserved(reference) == false) + if (_isRendered && _resizeObserver.IsElementObserved(reference) == false) { await _resizeObserver.Observe(reference); Rerender(); @@ -742,7 +742,7 @@ private void CenterScrollPositionAroundSelectedItem() } } - MudTabPanel panelToStart = ActivePanel; + var panelToStart = ActivePanel; var length = GetPanelLength(panelToStart); if (length >= _toolbarContentSize) { diff --git a/src/MudBlazor/Components/Tabs/TabHeaderPosition.cs b/src/MudBlazor/Components/Tabs/TabHeaderPosition.cs index d1feb43bdb48..1b136ede652f 100644 --- a/src/MudBlazor/Components/Tabs/TabHeaderPosition.cs +++ b/src/MudBlazor/Components/Tabs/TabHeaderPosition.cs @@ -7,7 +7,7 @@ namespace MudBlazor public enum TabHeaderPosition { /// - /// Additional content is placed after the the first tab + /// Additional content is placed after the first tab /// [Description("after")] After, diff --git a/src/MudBlazor/Components/TimePicker/MudTimePicker.razor.cs b/src/MudBlazor/Components/TimePicker/MudTimePicker.razor.cs index 5d5b30c5943f..31f39353c6d8 100644 --- a/src/MudBlazor/Components/TimePicker/MudTimePicker.razor.cs +++ b/src/MudBlazor/Components/TimePicker/MudTimePicker.razor.cs @@ -389,8 +389,8 @@ private double GetDeg() private string GetTransform(double angle, double radius, double offsetX, double offsetY) { angle = angle / 180 * Math.PI; - var x = (Math.Sin(angle) * radius + offsetX).ToString("F3", CultureInfo.InvariantCulture); - var y = ((Math.Cos(angle) + 1) * radius + offsetY).ToString("F3", CultureInfo.InvariantCulture); + var x = ((Math.Sin(angle) * radius) + offsetX).ToString("F3", CultureInfo.InvariantCulture); + var y = (((Math.Cos(angle) + 1) * radius) + offsetY).ToString("F3", CultureInfo.InvariantCulture); return $"transform: translate({x}px, {y}px);"; } @@ -552,7 +552,7 @@ private int RoundToStepInterval(int value) if (MinuteSelectionStep > 1) // Ignore if step is less than or equal to 1 { var interval = MinuteSelectionStep % 60; - value = (value + interval / 2) / interval * interval; + value = (value + (interval / 2)) / interval * interval; if (value == 60) // For when it rounds up to 60 { value = 0; @@ -585,11 +585,11 @@ protected internal override async Task OnHandleKeyDownAsync(KeyboardEventArgs ob case "ArrowRight": if (IsOpen) { - if (obj.CtrlKey == true) + if (obj.CtrlKey) { await ChangeHourAsync(1); } - else if (obj.ShiftKey == true) + else if (obj.ShiftKey) { if (_timeSet.Minute > 55) { @@ -610,11 +610,11 @@ protected internal override async Task OnHandleKeyDownAsync(KeyboardEventArgs ob case "ArrowLeft": if (IsOpen) { - if (obj.CtrlKey == true) + if (obj.CtrlKey) { await ChangeHourAsync(-1); } - else if (obj.ShiftKey == true) + else if (obj.ShiftKey) { if (_timeSet.Minute < 5) { @@ -637,11 +637,11 @@ protected internal override async Task OnHandleKeyDownAsync(KeyboardEventArgs ob { IsOpen = true; } - else if (obj.AltKey == true) + else if (obj.AltKey) { IsOpen = false; } - else if (obj.ShiftKey == true) + else if (obj.ShiftKey) { await ChangeHourAsync(5); } @@ -655,7 +655,7 @@ protected internal override async Task OnHandleKeyDownAsync(KeyboardEventArgs ob { IsOpen = true; } - else if (obj.ShiftKey == true) + else if (obj.ShiftKey) { await ChangeHourAsync(-5); } diff --git a/src/MudBlazor/Extensions/MathExtensions.cs b/src/MudBlazor/Extensions/MathExtensions.cs index 95bd9ad2f42d..58dae2c3e72c 100644 --- a/src/MudBlazor/Extensions/MathExtensions.cs +++ b/src/MudBlazor/Extensions/MathExtensions.cs @@ -4,6 +4,6 @@ public static class MathExtensions { public static double Map(double sourceMin, double sourceMax, double targetMin, double targetMax, double value) => - ((value) / (sourceMax - sourceMin)) * (targetMax - targetMin); + (value / (sourceMax - sourceMin)) * (targetMax - targetMin); } } diff --git a/src/MudBlazor/Interop/ResizeListenerInterop.cs b/src/MudBlazor/Interop/ResizeListenerInterop.cs index a4e9b18f729f..335063cdb96a 100644 --- a/src/MudBlazor/Interop/ResizeListenerInterop.cs +++ b/src/MudBlazor/Interop/ResizeListenerInterop.cs @@ -22,9 +22,9 @@ public ResizeListenerInterop(IJSRuntime jsRuntime) public async ValueTask MatchMedia(string mediaQuery) { - var matchMedia = await _jsRuntime.InvokeAsyncWithErrorHandling(false, "mudResizeListener.matchMedia", mediaQuery); + var (success, value) = await _jsRuntime.InvokeAsyncWithErrorHandling(false, "mudResizeListener.matchMedia", mediaQuery); - return matchMedia.value; + return value; } public ValueTask ListenForResize<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods)] T>(DotNetObjectReference dotNetObjectReference, ResizeOptions options, Guid javaScriptListerId) where T : class @@ -49,8 +49,8 @@ public ValueTask Dispose() public async ValueTask GetBrowserWindowSize() { - var size = await _jsRuntime.InvokeAsyncWithErrorHandling(new BrowserWindowSize(), "mudResizeListener.getBrowserWindowSize"); + var (success, value) = await _jsRuntime.InvokeAsyncWithErrorHandling(new BrowserWindowSize(), "mudResizeListener.getBrowserWindowSize"); - return size.value; + return value; } } diff --git a/src/MudBlazor/Services/DialogService.cs b/src/MudBlazor/Services/DialogService.cs index 042c82a7dd69..3c8cabb31dde 100644 --- a/src/MudBlazor/Services/DialogService.cs +++ b/src/MudBlazor/Services/DialogService.cs @@ -190,7 +190,7 @@ public async Task ShowAsync([DynamicallyAccessedMembers(Dynami public Task ShowMessageBox(string title, string message, string yesText = "OK", string noText = null, string cancelText = null, DialogOptions options = null) { - return this.ShowMessageBox(new MessageBoxOptions + return ShowMessageBox(new MessageBoxOptions { Title = title, Message = message, @@ -203,7 +203,7 @@ public async Task ShowAsync([DynamicallyAccessedMembers(Dynami public Task ShowMessageBox(string title, MarkupString markupMessage, string yesText = "OK", string noText = null, string cancelText = null, DialogOptions options = null) { - return this.ShowMessageBox(new MessageBoxOptions + return ShowMessageBox(new MessageBoxOptions { Title = title, MarkupMessage = markupMessage, @@ -224,7 +224,7 @@ public async Task ShowAsync([DynamicallyAccessedMembers(Dynami [nameof(MessageBoxOptions.NoText)] = messageBoxOptions.NoText, [nameof(MessageBoxOptions.YesText)] = messageBoxOptions.YesText, }; - var reference = await ShowAsync(parameters: parameters, options: options, title: messageBoxOptions.Title); + var reference = await ShowAsync(title: messageBoxOptions.Title, parameters: parameters, options: options); var result = await reference.Result; if (result.Canceled || result.Data is not bool data) return null; diff --git a/src/MudBlazor/Services/EventManager/EventManager.cs b/src/MudBlazor/Services/EventManager/EventManager.cs index f9b1ce09339d..8b8ff32337a1 100644 --- a/src/MudBlazor/Services/EventManager/EventManager.cs +++ b/src/MudBlazor/Services/EventManager/EventManager.cs @@ -63,7 +63,7 @@ public interface IEventListener : IAsyncDisposable Task Unsubscribe(Guid key); } - public class EventListener : IEventListener, IAsyncDisposable, IDisposable + public class EventListener : IEventListener, IDisposable { private readonly IJSRuntime _jsRuntime; private readonly DotNetObjectReference _dotNetRef; @@ -83,17 +83,17 @@ public async Task OnEventOccur(Guid key, string @eventData) { if (_callbackResolver.ContainsKey(key) == false) { return; } - var element = _callbackResolver[key]; + var (eventType, callback) = _callbackResolver[key]; - var @event = JsonSerializer.Deserialize(eventData, element.eventType, new WebEventJsonContext(new JsonSerializerOptions + var @event = JsonSerializer.Deserialize(eventData, eventType, new WebEventJsonContext(new JsonSerializerOptions { PropertyNamingPolicy = JsonNamingPolicy.CamelCase, PropertyNameCaseInsensitive = true, })); - if (element.callback != null) + if (callback != null) { - await element.callback.Invoke(@event); + await callback.Invoke(@event); } } @@ -152,7 +152,7 @@ private Guid RegisterCallBack(Type type, Func callback) public async ValueTask DisposeAsync() { - if (_disposed == true) { return; } + if (_disposed) { return; } foreach (var item in _callbackResolver) { diff --git a/src/MudBlazor/Services/IIJSRuntimeExtentions.cs b/src/MudBlazor/Services/IIJSRuntimeExtentions.cs index bd6dd5cbb14c..8b07131bc80a 100644 --- a/src/MudBlazor/Services/IIJSRuntimeExtentions.cs +++ b/src/MudBlazor/Services/IIJSRuntimeExtentions.cs @@ -224,11 +224,11 @@ public static async ValueTask InvokeVoidAsyncWithErrorHandling(this IJSRun /// The JSON-serializable return type. /// The . /// The value that should be returned in case an exception occured + /// An identifier for the function to invoke. For example, the value "someScope.someFunction" will invoke the function window.someScope.someFunction. /// /// A cancellation token to signal the cancellation of the operation. Specifying this parameter will override any default cancellations such as due to timeouts /// () from being applied. /// - /// An identifier for the function to invoke. For example, the value "someScope.someFunction" will invoke the function window.someScope.someFunction. /// JSON-serializable arguments. /// An instance of obtained by JSON-deserializing the return value into a tuple. The first item (sucess) is true in case where there was no exception, otherwise fall. public static async ValueTask<(bool success, TValue value)> InvokeAsyncWithErrorHandling<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.PublicFields | DynamicallyAccessedMemberTypes.PublicProperties)] TValue>(this IJSRuntime jsRuntime, TValue fallbackValue, string identifier, CancellationToken cancellationToken, params object[] args) diff --git a/src/MudBlazor/Services/JsEvent/JsEventOptions.cs b/src/MudBlazor/Services/JsEvent/JsEventOptions.cs index 160977984d20..8f96fbf12cb7 100644 --- a/src/MudBlazor/Services/JsEvent/JsEventOptions.cs +++ b/src/MudBlazor/Services/JsEvent/JsEventOptions.cs @@ -9,9 +9,8 @@ namespace MudBlazor.Services public class JsEventOptions { /// - /// Class of the target node which should be observed for keyboard events - /// - /// Note: this must be a single class + /// Class of the target node which should be observed for keyboard events + /// Note: this must be a single class /// public string TargetClass { get; set; } diff --git a/src/MudBlazor/Services/KeyInterceptor/KeyInterceptor.cs b/src/MudBlazor/Services/KeyInterceptor/KeyInterceptor.cs index 4f4e023e0ab2..43d0935c2506 100644 --- a/src/MudBlazor/Services/KeyInterceptor/KeyInterceptor.cs +++ b/src/MudBlazor/Services/KeyInterceptor/KeyInterceptor.cs @@ -20,7 +20,7 @@ namespace MudBlazor.Services /// It can call preventDefault or stopPropagation directly on the JavaScript side for single key strokes / key combinations as per configuration. /// Furthermore, you can precisely subscribe single keystrokes or combinations and only the subscribed ones will be forwarded into .NET /// - public class KeyInterceptor : IKeyInterceptor, IDisposable + public class KeyInterceptor : IKeyInterceptor { private bool _isDisposed = false; diff --git a/src/MudBlazor/Services/KeyInterceptor/KeyInterceptorOptions.cs b/src/MudBlazor/Services/KeyInterceptor/KeyInterceptorOptions.cs index f706a4a7fd19..22b5af040b1c 100644 --- a/src/MudBlazor/Services/KeyInterceptor/KeyInterceptorOptions.cs +++ b/src/MudBlazor/Services/KeyInterceptor/KeyInterceptorOptions.cs @@ -9,9 +9,8 @@ namespace MudBlazor.Services public class KeyInterceptorOptions { /// - /// Class of the target node which should be observed for keyboard events - /// - /// Note: this must be a single class + /// Class of the target node which should be observed for keyboard events + /// Note: this must be a single class /// public string TargetClass { get; set; } @@ -27,15 +26,17 @@ public class KeyInterceptorOptions } /// - /// Configuration for preventDefault() and stopPropagation() control - /// + /// Configuration for preventDefault() and stopPropagation() control + /// /// For PreventDown, PreventUp, StopDown and StopUp the configuration which key combinations should match /// is a Javascript boolean expression. - /// + /// + /// /// Examples: /// For the examples, let's assume the Tab key was pressed. /// Note: for combinations of more than one modifier the following order of modifiers must be followed strictly: shift+ctrl+alt+meta - /// + /// + /// /// * Don't prevent key down: /// PreventDown=null or PreventDown="none" /// * Prevent key down of unmodified keystrokes such as "Tab": @@ -52,15 +53,17 @@ public class KeyInterceptorOptions /// PreventDown="key+any" /// * Prevent any combination of key and modifiers, even the unmodified key: /// PreventDown="any" + /// /// public class KeyOptions { /// - /// Javascript keyboard event.key - /// + /// Javascript keyboard event.key + /// /// Examples: " " for space, "Tab" for tab, "a" for lowercase A-key. /// Also allowed: JS regex such as "/[a-z]/" or "/a|b/" but NOT "/[a-z]/g" or "/[a-z]/i" /// regex must be enclosed in two forward slashes! + /// /// public string Key { get; set; } diff --git a/src/MudBlazor/Services/Localization/MudLocalizer.cs b/src/MudBlazor/Services/Localization/MudLocalizer.cs index b5e7e8ce9e3f..be970e50e9a9 100644 --- a/src/MudBlazor/Services/Localization/MudLocalizer.cs +++ b/src/MudBlazor/Services/Localization/MudLocalizer.cs @@ -6,9 +6,9 @@ namespace MudBlazor; /// /// This customizable localizer service allows users to supply custom translations for MudBlazor components. /// Users can register custom implementations using the following syntax, where the scope depends on the implementation: -/// services.Add{scope}Transient<MudLocalizer, CustomMudLocalizerImpl>() +/// services.Add{scope}Transient<MudLocalizer, CustomMudLocalizerImpl>() /// or -/// services.TryAdd{scope}Transient<MudLocalizer, CustomMudLocalizerImpl>() +/// services.TryAdd{scope}Transient<MudLocalizer, CustomMudLocalizerImpl>() /// public class MudLocalizer { diff --git a/src/MudBlazor/Services/ResizeObserver/ResizeObserver.cs b/src/MudBlazor/Services/ResizeObserver/ResizeObserver.cs index aa7521bf3778..f5afb0bdd453 100644 --- a/src/MudBlazor/Services/ResizeObserver/ResizeObserver.cs +++ b/src/MudBlazor/Services/ResizeObserver/ResizeObserver.cs @@ -10,7 +10,7 @@ namespace MudBlazor.Services { - public class ResizeObserver : IResizeObserver, IDisposable, IAsyncDisposable + public class ResizeObserver : IResizeObserver, IAsyncDisposable { private bool _isDisposed = false; @@ -131,7 +131,7 @@ public void Dispose() public async ValueTask DisposeAsync() { - if (_isDisposed == true) { return; } + if (_isDisposed) { return; } _isDisposed = true; diff --git a/src/MudBlazor/Services/Scroll/ScrollListener.cs b/src/MudBlazor/Services/Scroll/ScrollListener.cs index ad2bb3bc9f93..e2c162c33c82 100644 --- a/src/MudBlazor/Services/Scroll/ScrollListener.cs +++ b/src/MudBlazor/Services/Scroll/ScrollListener.cs @@ -18,7 +18,7 @@ public interface IScrollListener : IDisposable event EventHandler OnScroll; } - internal class ScrollListener : IScrollListener, IDisposable + internal class ScrollListener : IScrollListener { private readonly IJSRuntime _js; private DotNetObjectReference _dotNetRef; diff --git a/src/MudBlazor/Services/Scroll/ScrollManagerException.cs b/src/MudBlazor/Services/Scroll/ScrollManagerException.cs index 56b947d28c05..0392bbcaf732 100644 --- a/src/MudBlazor/Services/Scroll/ScrollManagerException.cs +++ b/src/MudBlazor/Services/Scroll/ScrollManagerException.cs @@ -7,7 +7,7 @@ namespace MudBlazor [ExcludeFromCodeCoverage] public class ScrollManagerException : Exception { - public ScrollManagerException() : base() { } + public ScrollManagerException() { } public ScrollManagerException(string message) : base(message) { } public ScrollManagerException(string message, Exception inner) : base(message, inner) { } } diff --git a/src/MudBlazor/Utilities/BindingConverters/Converter.cs b/src/MudBlazor/Utilities/BindingConverters/Converter.cs index 1b1d81ba81a5..d4c8cdffd60a 100644 --- a/src/MudBlazor/Utilities/BindingConverters/Converter.cs +++ b/src/MudBlazor/Utilities/BindingConverters/Converter.cs @@ -80,10 +80,11 @@ protected void UpdateGetError(string msg) } /// - /// Converter from T to string - /// + /// Converter from T to string + /// /// Set converts to string /// Get converts from string + /// /// public class Converter : Converter { diff --git a/src/MudBlazor/Utilities/BindingConverters/NumericConverter.cs b/src/MudBlazor/Utilities/BindingConverters/NumericConverter.cs index 8b3eb469d899..4b5dea6cdca6 100644 --- a/src/MudBlazor/Utilities/BindingConverters/NumericConverter.cs +++ b/src/MudBlazor/Utilities/BindingConverters/NumericConverter.cs @@ -6,10 +6,11 @@ namespace MudBlazor { /// - /// A universal T to double binding converter - /// + /// A universal T to double binding converter + /// /// Note: currently not in use. Should we ever use it, remove /// the [ExcludeFromCodeCoverage] attribute + /// /// [ExcludeFromCodeCoverage] public class NumericConverter : Converter diff --git a/src/MudBlazor/Utilities/CssBuilder.cs b/src/MudBlazor/Utilities/CssBuilder.cs index 78f57702ac1c..109bcd9786b2 100644 --- a/src/MudBlazor/Utilities/CssBuilder.cs +++ b/src/MudBlazor/Utilities/CssBuilder.cs @@ -55,7 +55,7 @@ public CssBuilder AddValue(string value) /// CSS Class to conditionally add. /// Condition in which the CSS Class is added. /// CssBuilder - public CssBuilder AddClass(string value, bool when = true) => when ? this.AddClass(value) : this; + public CssBuilder AddClass(string value, bool when = true) => when ? AddClass(value) : this; /// /// Adds a conditional CSS Class to the builder with space separator. @@ -63,7 +63,7 @@ public CssBuilder AddValue(string value) /// CSS Class to conditionally add. /// Nullable condition in which the CSS Class is added. /// CssBuilder - public CssBuilder AddClass(string value, bool? when = true) => when == true ? this.AddClass(value) : this; + public CssBuilder AddClass(string value, bool? when = true) => when == true ? AddClass(value) : this; /// /// Adds a conditional CSS Class to the builder with space separator. @@ -71,7 +71,7 @@ public CssBuilder AddValue(string value) /// CSS Class to conditionally add. /// Condition in which the CSS Class is added. /// CssBuilder - public CssBuilder AddClass(string value, Func when = null) => this.AddClass(value, when != null && when()); + public CssBuilder AddClass(string value, Func when = null) => AddClass(value, when != null && when()); /// /// Adds a conditional CSS Class to the builder with space separator. @@ -79,7 +79,7 @@ public CssBuilder AddValue(string value) /// Function that returns a CSS Class to conditionally add. /// Condition in which the CSS Class is added. /// CssBuilder - public CssBuilder AddClass(Func value, bool when = true) => when ? this.AddClass(value()) : this; + public CssBuilder AddClass(Func value, bool when = true) => when ? AddClass(value()) : this; /// /// Adds a conditional CSS Class to the builder with space separator. @@ -87,7 +87,7 @@ public CssBuilder AddValue(string value) /// Function that returns a CSS Class to conditionally add. /// Condition in which the CSS Class is added. /// CssBuilder - public CssBuilder AddClass(Func value, Func when = null) => this.AddClass(value, when != null && when()); + public CssBuilder AddClass(Func value, Func when = null) => AddClass(value, when != null && when()); /// /// Adds a conditional nested CssBuilder to the builder with space separator. @@ -95,7 +95,7 @@ public CssBuilder AddValue(string value) /// CSS Class to conditionally add. /// Condition in which the CSS Class is added. /// CssBuilder - public CssBuilder AddClass(CssBuilder builder, bool when = true) => when ? this.AddClass(builder.Build()) : this; + public CssBuilder AddClass(CssBuilder builder, bool when = true) => when ? AddClass(builder.Build()) : this; /// /// Adds a conditional CSS Class to the builder with space separator. @@ -103,7 +103,7 @@ public CssBuilder AddValue(string value) /// CSS Class to conditionally add. /// Condition in which the CSS Class is added. /// CssBuilder - public CssBuilder AddClass(CssBuilder builder, Func when = null) => this.AddClass(builder, when != null && when()); + public CssBuilder AddClass(CssBuilder builder, Func when = null) => AddClass(builder, when != null && when()); /// /// Adds a conditional CSS Class when it exists in a dictionary to the builder with space separator. diff --git a/src/MudBlazor/Utilities/MaskAlgorithms/BaseMask.cs b/src/MudBlazor/Utilities/MaskAlgorithms/BaseMask.cs index 266ee93dc33f..561334981329 100644 --- a/src/MudBlazor/Utilities/MaskAlgorithms/BaseMask.cs +++ b/src/MudBlazor/Utilities/MaskAlgorithms/BaseMask.cs @@ -152,8 +152,7 @@ protected virtual bool IsDelimiter(char maskChar) public virtual void UpdateFrom(IMask o) { - var other = o as BaseMask; - if (other == null) + if (o is not BaseMask other) return; if (other.Mask != Mask) { diff --git a/src/MudBlazor/Utilities/MaskAlgorithms/DateMask.cs b/src/MudBlazor/Utilities/MaskAlgorithms/DateMask.cs index 8c052166f1f3..42fc37fa69b9 100644 --- a/src/MudBlazor/Utilities/MaskAlgorithms/DateMask.cs +++ b/src/MudBlazor/Utilities/MaskAlgorithms/DateMask.cs @@ -221,8 +221,7 @@ private int GetDaysInMonth(int year, int month) public override void UpdateFrom(IMask other) { base.UpdateFrom(other); - var o = other as DateMask; - if (o == null) + if (other is not DateMask o) return; _y = o._y; _M = o._M; diff --git a/src/MudBlazor/Utilities/MaskAlgorithms/MultiMask.cs b/src/MudBlazor/Utilities/MaskAlgorithms/MultiMask.cs index f455a6d0ca73..24b064ceb3a2 100644 --- a/src/MudBlazor/Utilities/MaskAlgorithms/MultiMask.cs +++ b/src/MudBlazor/Utilities/MaskAlgorithms/MultiMask.cs @@ -87,8 +87,7 @@ protected void DoCheckAndRedo(Action action) public override void UpdateFrom(IMask other) { base.UpdateFrom(other); - var o = other as MultiMask; - if (o == null) + if (other is not MultiMask o) return; // no need to re-initialize, just update the options _defaultMask = o._defaultMask; diff --git a/src/MudBlazor/Utilities/MaskAlgorithms/PatternMask.cs b/src/MudBlazor/Utilities/MaskAlgorithms/PatternMask.cs index 35386bb7c71b..b5f2e4dd7cd8 100644 --- a/src/MudBlazor/Utilities/MaskAlgorithms/PatternMask.cs +++ b/src/MudBlazor/Utilities/MaskAlgorithms/PatternMask.cs @@ -183,7 +183,7 @@ protected virtual string AlignAgainstMask(string text, int maskOffset = 0) ModifyPartiallyAlignedMask(mask, text, maskOffset, ref textIndex, ref maskIndex, ref alignedText); } // fill any delimiters if possible - for (int i = maskIndex; i < mask.Length; i++) + for (var i = maskIndex; i < mask.Length; i++) { var maskChar = mask[i]; if (!IsDelimiter(maskChar)) @@ -257,8 +257,7 @@ protected virtual string ModifyFinalText(string text) public override void UpdateFrom(IMask other) { base.UpdateFrom(other); - var o = other as PatternMask; - if (o == null) + if (other is not PatternMask o) return; Placeholder = o.Placeholder; CleanDelimiters = o.CleanDelimiters; diff --git a/src/MudBlazor/Utilities/MaskAlgorithms/RegexMask.cs b/src/MudBlazor/Utilities/MaskAlgorithms/RegexMask.cs index f6d4c3a449d4..e06aa5a872ed 100644 --- a/src/MudBlazor/Utilities/MaskAlgorithms/RegexMask.cs +++ b/src/MudBlazor/Utilities/MaskAlgorithms/RegexMask.cs @@ -179,8 +179,7 @@ protected virtual string AlignAgainstMask(string text) public override void UpdateFrom(IMask other) { base.UpdateFrom(other); - var o = other as RegexMask; - if (o == null) + if (other is not RegexMask o) return; if (Delimiters != o.Delimiters) { diff --git a/src/MudBlazor/Utilities/MudColor.cs b/src/MudBlazor/Utilities/MudColor.cs index 46018f4074ca..5c9a341c0230 100644 --- a/src/MudBlazor/Utilities/MudColor.cs +++ b/src/MudBlazor/Utilities/MudColor.cs @@ -46,7 +46,7 @@ public class MudColor : IEquatable public byte G => _valuesAsByte[1]; public byte B => _valuesAsByte[2]; public byte A => _valuesAsByte[3]; - public double APercentage => Math.Round((A / 255.0), 2); + public double APercentage => Math.Round(A / 255.0, 2); public double H { get; private set; } public double L { get; private set; } @@ -161,7 +161,7 @@ public MudColor(string value) { value = value.Trim().ToLower(); - if (value.StartsWith("rgba") == true) + if (value.StartsWith("rgba")) { var parts = SplitInputIntoParts(value); if (parts.Length != 4) @@ -177,7 +177,7 @@ public MudColor(string value) (byte)Math.Max(0, Math.Min(255, 255 * double.Parse(parts[3],CultureInfo.InvariantCulture))), }; } - else if (value.StartsWith("rgb") == true) + else if (value.StartsWith("rgb")) { var parts = SplitInputIntoParts(value); if (parts.Length != 3) @@ -316,7 +316,7 @@ private static string[] SplitInputIntoParts(string value) private byte GetByteFromValuePart(string input, int index) => byte.Parse(new string(new char[] { input[index], input[index + 1] }), NumberStyles.HexNumber); - public bool HslChanged(MudColor value) => this.H != value.H || this.S != value.S || this.L != value.L; + public bool HslChanged(MudColor value) => H != value.H || S != value.S || L != value.L; #endregion @@ -343,7 +343,7 @@ private static string[] SplitInputIntoParts(string value) public bool Equals(MudColor other) { - if (ReferenceEquals(other, null) == true) { return false; } + if (ReferenceEquals(other, null)) { return false; } return _valuesAsByte[0] == other._valuesAsByte[0] && @@ -358,13 +358,13 @@ public bool Equals(MudColor other) { var lhsIsNull = ReferenceEquals(null, lhs); var rhsIsNull = ReferenceEquals(null, rhs); - if (lhsIsNull == true && rhsIsNull == true) + if (lhsIsNull && rhsIsNull) { return true; } else { - if ((lhsIsNull || rhsIsNull) == true) + if ((lhsIsNull || rhsIsNull)) { return false; } diff --git a/src/MudBlazor/Utilities/NaturalComparer.cs b/src/MudBlazor/Utilities/NaturalComparer.cs index c3a9bb5acb17..3725040f61c1 100644 --- a/src/MudBlazor/Utilities/NaturalComparer.cs +++ b/src/MudBlazor/Utilities/NaturalComparer.cs @@ -55,33 +55,33 @@ public static int CompareNatural(string strA, string strB) public static int CompareNatural(string strA, string strB, CultureInfo culture, CompareOptions options) { - CompareInfo cmp = culture.CompareInfo; - int iA = 0; - int iB = 0; - int softResult = 0; - int softResultWeight = 0; + var cmp = culture.CompareInfo; + var iA = 0; + var iB = 0; + var softResult = 0; + var softResultWeight = 0; while (iA < strA.Length && iB < strB.Length) { - bool isDigitA = char.IsDigit(strA[iA]); - bool isDigitB = char.IsDigit(strB[iB]); + var isDigitA = char.IsDigit(strA[iA]); + var isDigitB = char.IsDigit(strB[iB]); if (isDigitA != isDigitB) { return cmp.Compare(strA, iA, strB, iB, options); } else if (!isDigitA && !isDigitB) { - int jA = iA + 1; - int jB = iB + 1; + var jA = iA + 1; + var jB = iB + 1; while (jA < strA.Length && !char.IsDigit(strA[jA])) jA++; while (jB < strB.Length && !char.IsDigit(strB[jB])) jB++; - int cmpResult = cmp.Compare(strA, iA, jA - iA, strB, iB, jB - iB, options); + var cmpResult = cmp.Compare(strA, iA, jA - iA, strB, iB, jB - iB, options); if (cmpResult != 0) { // Certain strings may be considered different due to "soft" differences that are // ignored if more significant differences follow, e.g. a hyphen only affects the // comparison if no other differences follow - string sectionA = strA.Substring(iA, jA - iA); - string sectionB = strB.Substring(iB, jB - iB); + var sectionA = strA.Substring(iA, jA - iA); + var sectionB = strB.Substring(iB, jB - iB); if (cmp.Compare(sectionA + "1", sectionB + "2", options) == cmp.Compare(sectionA + "2", sectionB + "1", options)) { @@ -98,19 +98,19 @@ public static int CompareNatural(string strA, string strB, CultureInfo culture, } else { - char zeroA = (char)(strA[iA] - (int)char.GetNumericValue(strA[iA])); - char zeroB = (char)(strB[iB] - (int)char.GetNumericValue(strB[iB])); - int jA = iA; - int jB = iB; + var zeroA = (char)(strA[iA] - (int)char.GetNumericValue(strA[iA])); + var zeroB = (char)(strB[iB] - (int)char.GetNumericValue(strB[iB])); + var jA = iA; + var jB = iB; while (jA < strA.Length && strA[jA] == zeroA) jA++; while (jB < strB.Length && strB[jB] == zeroB) jB++; - int resultIfSameLength = 0; + var resultIfSameLength = 0; do { isDigitA = jA < strA.Length && char.IsDigit(strA[jA]); isDigitB = jB < strB.Length && char.IsDigit(strB[jB]); - int numA = isDigitA ? (int)char.GetNumericValue(strA[jA]) : 0; - int numB = isDigitB ? (int)char.GetNumericValue(strB[jB]) : 0; + var numA = isDigitA ? (int)char.GetNumericValue(strA[jA]) : 0; + var numB = isDigitB ? (int)char.GetNumericValue(strB[jB]) : 0; if (isDigitA && (char)(strA[jA] - numA) != zeroA) isDigitA = false; if (isDigitB && (char)(strB[jB] - numB) != zeroB) isDigitB = false; if (isDigitA && isDigitB) @@ -136,8 +136,8 @@ public static int CompareNatural(string strA, string strB, CultureInfo culture, // the digits differed - the first difference determines the result return resultIfSameLength; } - int lA = jA - iA; - int lB = jB - iB; + var lA = jA - iA; + var lB = jB - iB; if (lA != lB) { // Both numbers are equivalent but one has more leading zeros diff --git a/src/MudBlazor/Utilities/SortingAssistent.cs b/src/MudBlazor/Utilities/SortingAssistent.cs index 8163ac844b46..f67919f38988 100644 --- a/src/MudBlazor/Utilities/SortingAssistent.cs +++ b/src/MudBlazor/Utilities/SortingAssistent.cs @@ -16,8 +16,7 @@ public static class SortingAssistent { public static void UpdateOrder(this IEnumerable items, MudItemDropInfo dropInfo, Expression> valueUpdater, int zoneOffset = 0) { - var memberSelectorExpression = valueUpdater.Body as MemberExpression; - if (memberSelectorExpression == null) { throw new InvalidOperationException(); } + if (valueUpdater.Body is not MemberExpression memberSelectorExpression) { throw new InvalidOperationException(); } var property = memberSelectorExpression.Member as PropertyInfo; @@ -27,10 +26,10 @@ public static void UpdateOrder(this IEnumerable items, MudItemDropInfo var item = dropInfo.Item; - int index = 0; + var index = 0; foreach (var _item in items.OrderBy(x => (int)property.GetValue(x))) { - if (_item.Equals(item) == true) + if (_item.Equals(item)) { property.SetValue(item, newIndex); } diff --git a/src/MudBlazor/Utilities/StyleBuilder.cs b/src/MudBlazor/Utilities/StyleBuilder.cs index 50d76a7fd8a8..6c35919313d4 100644 --- a/src/MudBlazor/Utilities/StyleBuilder.cs +++ b/src/MudBlazor/Utilities/StyleBuilder.cs @@ -68,7 +68,7 @@ private StyleBuilder AddRaw(string style) /// Style to conditionally add. /// Condition in which the style is added. /// StyleBuilder - public StyleBuilder AddStyle(string prop, string value, bool when = true) => when ? this.AddStyle(prop, value) : this; + public StyleBuilder AddStyle(string prop, string value, bool when = true) => when ? AddStyle(prop, value) : this; /// @@ -78,7 +78,7 @@ private StyleBuilder AddRaw(string style) /// Style to conditionally add. /// Condition in which the style is added. /// - public StyleBuilder AddStyle(string prop, Func value, bool when = true) => when ? this.AddStyle(prop, value()) : this; + public StyleBuilder AddStyle(string prop, Func value, bool when = true) => when ? AddStyle(prop, value()) : this; /// /// Adds a conditional in-line style to the builder with space separator and closing semicolon.. @@ -87,7 +87,7 @@ private StyleBuilder AddRaw(string style) /// Style to conditionally add. /// Condition in which the style is added. /// StyleBuilder - public StyleBuilder AddStyle(string prop, string value, Func when = null) => this.AddStyle(prop, value, when != null && when()); + public StyleBuilder AddStyle(string prop, string value, Func when = null) => AddStyle(prop, value, when != null && when()); /// /// Adds a conditional in-line style to the builder with space separator and closing semicolon.. @@ -96,14 +96,14 @@ private StyleBuilder AddRaw(string style) /// Style to conditionally add. /// Condition in which the style is added. /// StyleBuilder - public StyleBuilder AddStyle(string prop, Func value, Func when = null) => this.AddStyle(prop, value(), when != null && when()); + public StyleBuilder AddStyle(string prop, Func value, Func when = null) => AddStyle(prop, value(), when != null && when()); /// /// Adds a conditional nested StyleBuilder to the builder with separator and closing semicolon. /// /// Style Builder to conditionally add. /// StyleBuilder - public StyleBuilder AddStyle(StyleBuilder builder) => this.AddRaw(builder.Build()); + public StyleBuilder AddStyle(StyleBuilder builder) => AddRaw(builder.Build()); /// /// Adds a conditional nested StyleBuilder to the builder with separator and closing semicolon. @@ -111,7 +111,7 @@ private StyleBuilder AddRaw(string style) /// Style Builder to conditionally add. /// Condition in which the style is added. /// StyleBuilder - public StyleBuilder AddStyle(StyleBuilder builder, bool when = true) => when ? this.AddRaw(builder.Build()) : this; + public StyleBuilder AddStyle(StyleBuilder builder, bool when = true) => when ? AddRaw(builder.Build()) : this; /// /// Adds a conditional in-line style to the builder with space separator and closing semicolon.. @@ -119,7 +119,7 @@ private StyleBuilder AddRaw(string style) /// Style Builder to conditionally add. /// Condition in which the styles are added. /// StyleBuilder - public StyleBuilder AddStyle(StyleBuilder builder, Func when = null) => this.AddStyle(builder, when != null && when()); + public StyleBuilder AddStyle(StyleBuilder builder, Func when = null) => AddStyle(builder, when != null && when()); /// /// Adds a conditional in-line style to the builder with space separator and closing semicolon..