Skip to content

Commit

Permalink
DN8RC2 (#1091)
Browse files Browse the repository at this point in the history
* release notes

* 2023-09-17 Various Badge experiments

* Move badges to first element inside an outer div

* MD3 website menu enhancements

* Move div surrounding MBBadge

* 2023-09-19 EoD -- Beginning MBIcon implementation

* 2023-09-20 EoD -- MBIcon completion

* MBIcon touchup

* DB updates

* More DB updates

* Added Material Symbols (new font/factory/cascading defaults) to MD2

* 2023-09-27 EoD

* 2023-09-28 EoD

* 2023-09-29 EoD

* 2023-10-02 EoD

* 2023-10-04 EoD

* 2023-10-05 WiP

* 2023-10-06 Intermediate

* 2023-10-06 MoD

* 2023-10-07 BoD

* 2023-10-08 Completion of MDIcon with support for using md-icon within another component

* 2023-10-08 Expunge MD2 MBBadge component

* 2023-10-09 EoD

* 2023-10-10 Completed MBButton sans Density support

* 2023-10-10 DN8RC2
  • Loading branch information
MarkStega authored Oct 10, 2023
1 parent e82d83d commit 4ed48b2
Show file tree
Hide file tree
Showing 334 changed files with 20,939 additions and 8,960 deletions.
9 changes: 5 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ insert_final_newline = true
#### .NET Coding Conventions ####

# Organize usings
dotnet_separate_import_directive_groups = false
dotnet_separate_import_directive_groups = true
dotnet_sort_system_directives_first = false
file_header_template = unset

Expand Down Expand Up @@ -207,8 +207,7 @@ dotnet_naming_style.begins_with_i.capitalization = pascal_case

# IDE0005: Using directive is unnecessary.
dotnet_diagnostic.IDE0005.severity = suggestion
dotnet_separate_import_directive_groups = false
dotnet_sort_system_directives_first = false

csharp_style_namespace_declarations = block_scoped:silent
csharp_style_prefer_method_group_conversion = true:silent
csharp_style_prefer_top_level_statements = true:silent
Expand All @@ -225,6 +224,7 @@ csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimenta
csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = true:silent
csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = true:silent
csharp_style_prefer_extended_property_pattern = true:suggestion
csharp_style_prefer_primary_constructors = true:suggestion

[*.{cs,vb}]
dotnet_style_operator_placement_when_wrapping = beginning_of_line
Expand Down Expand Up @@ -260,4 +260,5 @@ dotnet_style_parentheses_in_other_operators = never_if_unnecessary:suggestion
dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_property = false:suggestion
dotnet_style_qualification_for_method = false:suggestion
dotnet_style_qualification_for_event = false:suggestion
dotnet_style_qualification_for_event = false:suggestion
dotnet_style_prefer_collection_expression = true:suggestion
4 changes: 2 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
<Configurations>Server;WebAssembly</Configurations>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Server|AnyCPU'">
<PropertyGroup Condition="'$(Configuration)'=='Server'">
<DefineConstants>BLAZOR_SERVER</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='WebAssembly|AnyCPU'">
<PropertyGroup Condition="'$(Configuration)'=='WebAssembly'">
<DefineConstants>BLAZOR_WEBASSEMBLY</DefineConstants>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
@namespace Material.Blazor.MD2

@inherits SingleSelectComponentMD2<TItem, MBSelectElement<TItem>>
@typeparam TItem


<div class="mb-autocomplete @ActiveConditionalClasses @(@class)"
style="@style"
id="@id">
<MBTextField @attributes="@AttributesToSplat()"
@bind-Value="@SearchText"
Density="@Density"
Disabled="@AppliedDisabled"
HelperText="@HelperText"
HelperTextPersistent="@HelperTextPersistent"
IconFoundry="@IconFoundry"
Label="@Label"
LeadingIcon="@LeadingIcon"
@onchange="@OnTextChangeAsync"
@onfocusin="@OnTextFocusInAsync"
@onfocusout="@OnTextFocusOutAsync"
@oninput="@OnInput"
@ref="@TextField"
TextAlignStyle="@TextAlignStyle"
TextInputStyle="@TextInputStyle"
TrailingIcon="@TrailingIcon"
ValidationMessageFor="@ValidationMessageFor" />

<div class="mdc-menu-surface--anchor">
<div @ref="@MenuReference"
class="mdc-menu mdc-menu-surface mdc-menu-surface--fixed"
@onfocusin="OnMenuFocusIn"
@onfocusout="OnMenuFocusOut"
tabindex="-1">

<MBLinearProgress LinearProgressType="@MenuSurfaceLinearProgressType" />
<div class="mdc-layout-grid mb-autocomplete-paged-field-list">
<div class="mdc-layout-grid__inner">
@for (int col = 0; col < 2; col++)
{
var localCol = col;
var columnItems = SelectItems.Skip(col * SelectItemsPerColumn).Take(SelectItemsPerColumn);

<div class="mdc-layout-grid__cell--span-6">
@if (columnItems.Any())
{
<MBList Items="@columnItems"
Context="item"
KeyboardInteractions="true"
ListStyle="@MBListStyle.Outlined"
OnClick="@(listIndex => OnListItemClickAsync(localCol, listIndex))"
Ripple="true"
SingleLineDensity="@MBDensity.Minus2">

<Title>@item.Label</Title>
</MBList>
}
</div>
}

<div class="mdc-layout-grid__cell--span-12 mb-autocomplete-paged-field-paginator">
<MBPaginator @bind-PageNumber="@PageNumber"
@bind-PageNumber:after="@OnPageTurn"
ItemsPerPageSelection="@PaginatorItemsPerPage"
ItemsPerPage="@PaginatorItemsPerPage[0]"
ItemCount="@MatchingItemCount" />
</div>
</div>
</div>
</div>
</div>
</div>
Loading

0 comments on commit 4ed48b2

Please sign in to comment.