├── main.scss ├── docs ├── .nojekyll ├── .gitattributes ├── _framework │ ├── _bin │ │ ├── System.dll │ │ ├── MatBlazor.dll │ │ ├── System.dll.br │ │ ├── System.dll.gz │ │ ├── mscorlib.dll │ │ ├── System.Core.dll │ │ ├── mscorlib.dll.br │ │ ├── mscorlib.dll.gz │ │ ├── MatBlazor.Demo.dll │ │ ├── MatBlazor.dll.br │ │ ├── MatBlazor.dll.gz │ │ ├── System.Core.dll.br │ │ ├── System.Core.dll.gz │ │ ├── System.Net.Http.dll │ │ ├── System.Text.Json.dll │ │ ├── MatBlazor.Demo.dll.br │ │ ├── MatBlazor.Demo.dll.gz │ │ ├── Microsoft.JSInterop.dll │ │ ├── System.Net.Http.dll.br │ │ ├── System.Net.Http.dll.gz │ │ ├── System.Text.Json.dll.br │ │ ├── System.Text.Json.dll.gz │ │ ├── WebAssembly.Bindings.dll │ │ ├── MatBlazor.Demo.ClientApp.dll │ │ ├── Microsoft.JSInterop.dll.br │ │ ├── Microsoft.JSInterop.dll.gz │ │ ├── WebAssembly.Bindings.dll.br │ │ ├── WebAssembly.Bindings.dll.gz │ │ ├── System.Text.Encodings.Web.dll │ │ ├── MatBlazor.Demo.ClientApp.dll.br │ │ ├── MatBlazor.Demo.ClientApp.dll.gz │ │ ├── Microsoft.Bcl.AsyncInterfaces.dll │ │ ├── Microsoft.Extensions.Logging.dll │ │ ├── Microsoft.Extensions.Options.dll │ │ ├── System.Text.Encodings.Web.dll.br │ │ ├── System.Text.Encodings.Web.dll.gz │ │ ├── Microsoft.AspNetCore.Components.dll │ │ ├── Microsoft.Extensions.Logging.dll.br │ │ ├── Microsoft.Extensions.Logging.dll.gz │ │ ├── Microsoft.Extensions.Options.dll.br │ │ ├── Microsoft.Extensions.Options.dll.gz │ │ ├── Microsoft.Extensions.Primitives.dll │ │ ├── Microsoft.JSInterop.WebAssembly.dll │ │ ├── Microsoft.AspNetCore.Components.dll.br │ │ ├── Microsoft.AspNetCore.Components.dll.gz │ │ ├── Microsoft.Bcl.AsyncInterfaces.dll.br │ │ ├── Microsoft.Bcl.AsyncInterfaces.dll.gz │ │ ├── Microsoft.Extensions.Configuration.dll │ │ ├── Microsoft.Extensions.Primitives.dll.br │ │ ├── Microsoft.Extensions.Primitives.dll.gz │ │ ├── Microsoft.JSInterop.WebAssembly.dll.br │ │ ├── Microsoft.JSInterop.WebAssembly.dll.gz │ │ ├── Microsoft.AspNetCore.Components.Web.dll │ │ ├── Microsoft.AspNetCore.Components.Forms.dll │ │ ├── Microsoft.AspNetCore.Components.Web.dll.br │ │ ├── Microsoft.AspNetCore.Components.Web.dll.gz │ │ ├── Microsoft.Extensions.Configuration.Json.dll │ │ ├── Microsoft.Extensions.Configuration.dll.br │ │ ├── Microsoft.Extensions.Configuration.dll.gz │ │ ├── System.ComponentModel.DataAnnotations.dll │ │ ├── System.Net.Http.WebAssemblyHttpHandler.dll │ │ ├── System.Runtime.CompilerServices.Unsafe.dll │ │ ├── Microsoft.AspNetCore.Components.Forms.dll.br │ │ ├── Microsoft.AspNetCore.Components.Forms.dll.gz │ │ ├── Microsoft.Extensions.DependencyInjection.dll │ │ ├── Microsoft.Extensions.Logging.Abstractions.dll │ │ ├── System.ComponentModel.DataAnnotations.dll.br │ │ ├── System.ComponentModel.DataAnnotations.dll.gz │ │ ├── System.Net.Http.WebAssemblyHttpHandler.dll.br │ │ ├── System.Net.Http.WebAssemblyHttpHandler.dll.gz │ │ ├── System.Runtime.CompilerServices.Unsafe.dll.br │ │ ├── System.Runtime.CompilerServices.Unsafe.dll.gz │ │ ├── Microsoft.AspNetCore.Components.WebAssembly.dll │ │ ├── Microsoft.Extensions.Configuration.Json.dll.br │ │ ├── Microsoft.Extensions.Configuration.Json.dll.gz │ │ ├── Microsoft.Extensions.DependencyInjection.dll.br │ │ ├── Microsoft.Extensions.DependencyInjection.dll.gz │ │ ├── Microsoft.Extensions.Logging.Abstractions.dll.br │ │ ├── Microsoft.Extensions.Logging.Abstractions.dll.gz │ │ ├── Microsoft.AspNetCore.Components.WebAssembly.dll.br │ │ ├── Microsoft.AspNetCore.Components.WebAssembly.dll.gz │ │ ├── Microsoft.Extensions.Configuration.Abstractions.dll │ │ ├── Microsoft.Extensions.Configuration.Abstractions.dll.br │ │ ├── Microsoft.Extensions.Configuration.Abstractions.dll.gz │ │ ├── Microsoft.Extensions.DependencyInjection.Abstractions.dll │ │ ├── Microsoft.Extensions.DependencyInjection.Abstractions.dll.br │ │ └── Microsoft.Extensions.DependencyInjection.Abstractions.dll.gz │ ├── wasm │ │ ├── dotnet.wasm │ │ ├── dotnet.wasm.br │ │ ├── dotnet.wasm.gz │ │ ├── dotnet.3.2.0.js.br │ │ ├── dotnet.3.2.0.js.gz │ │ ├── dotnet.timezones.dat │ │ ├── dotnet.timezones.dat.br │ │ └── dotnet.timezones.dat.gz │ ├── blazor.boot.json.br │ ├── blazor.boot.json.gz │ ├── blazor.webassembly.js.br │ └── blazor.webassembly.js.gz └── _content │ └── MatBlazor.Demo │ ├── blazorFiddleLoader.js │ └── matBlazorDemo.js ├── src ├── MatBlazor.Web │ ├── static │ │ ├── favicon.ico │ │ ├── assets │ │ │ └── README.md │ │ └── index.html │ ├── src │ │ ├── matLayoutGrid │ │ │ └── matLayoutGrid.js │ │ ├── matSplitter │ │ │ ├── matSplitter.scss │ │ │ └── matSplitter.js │ │ ├── matTypography │ │ │ └── matTypography.js │ │ ├── matCard │ │ │ ├── matCard.scss │ │ │ └── matCard.js │ │ ├── matChipSet │ │ │ ├── matChipSet.scss │ │ │ └── matChipSet.js │ │ ├── matElevation │ │ │ └── matElevation.js │ │ ├── matSlider │ │ │ ├── matSlider.scss │ │ │ └── matSlider.js │ │ ├── matDialog │ │ │ └── matDialog.scss │ │ ├── matRipple │ │ │ ├── matRipple.scss │ │ │ └── matRipple.js │ │ ├── matAppBar │ │ │ ├── matAppBar.scss │ │ │ └── matAppBar.js │ │ ├── matSlideToggle │ │ │ ├── matSlideToggle.scss │ │ │ └── matSlideToggle.js │ │ ├── matSnackbar │ │ │ ├── matSnackbar.scss │ │ │ └── matSnackbar.js │ │ ├── matIconButton │ │ │ ├── matIconButton.scss │ │ │ └── matIconButton.js │ │ ├── matProgressBar │ │ │ ├── matProgressBar.scss │ │ │ └── matProgressBar.js │ │ ├── matCheckbox │ │ │ └── matCheckbox.scss │ │ ├── matRadioButton │ │ │ ├── matRadioButton.scss │ │ │ └── matRadioButton.js │ │ ├── matList │ │ │ └── matList.scss │ │ ├── matButton │ │ │ ├── matButton.scss │ │ │ └── matButton.js │ │ ├── matFAB │ │ │ ├── matFAB.js │ │ │ └── matFAB.scss │ │ ├── matMenu │ │ │ └── matMenu.scss │ │ ├── utils │ │ │ ├── utils.js │ │ │ └── base.ts │ │ ├── matAutocompleteList │ │ │ └── matAutocompleteList.js │ │ ├── matTabBar │ │ │ ├── matTabBar.scss │ │ │ └── matTabBar.js │ │ ├── matDrawer │ │ │ ├── matDrawer.scss │ │ │ └── matDrawer.js │ │ ├── matAccordion │ │ │ └── matAccordion.js │ │ ├── theme │ │ │ └── theme.scss │ │ ├── matTextField │ │ │ └── matTextField.js │ │ ├── matAnchor │ │ │ └── matAnchor.js │ │ ├── matTable │ │ │ └── matDataTable.ts │ │ ├── matDatePicker │ │ │ └── matDatePicker.scss │ │ ├── matVirtualScroll │ │ │ └── matVirtualScroll.scss │ │ ├── matHidden │ │ │ └── matHidden.js │ │ └── matSelect │ │ │ └── matSelect.scss │ ├── .gitignore │ ├── .babelrc │ └── tsconfig.json ├── MatBlazor.Demo │ ├── Frames │ │ ├── _Imports.razor │ │ ├── MatDrawerModalPageFrame.razor │ │ └── MatAppBarPageFrame.razor │ ├── Pages │ │ ├── _Imports.razor │ │ ├── DemoTabPage.razor │ │ ├── DemoMatTable.razor │ │ ├── DemoMatToast.razor │ │ ├── DemoDialogPage.razor │ │ ├── DemoFABPage.razor │ │ ├── DemoMatChipPage.razor │ │ ├── DemoMatIconPage.razor │ │ ├── DemoMatMenuPage.razor │ │ ├── DemoRipplePage.razor │ │ ├── DemoThemesPage.razor │ │ ├── DemoCheckboxPage.razor │ │ ├── DemoMatListPage.razor │ │ ├── DemoSnackbarPage.razor │ │ ├── DemoDataTablePage.razor │ │ ├── DemoMatAppBarPage.razor │ │ ├── DemoMatDrawerPage.razor │ │ ├── DemoMatHiddenPage.razor │ │ ├── DemoMatNavMenuPage.razor │ │ ├── DemoMatSelectPage.razor │ │ ├── DemoMatSliderPage.razor │ │ ├── DemoPaginatorPage.razor │ │ ├── DemoTooltipPage.razor │ │ ├── DemoTreeViewPage.razor │ │ ├── DemoDatePickerPage.razor │ │ ├── DemoElevationPage.razor │ │ ├── DemoFileUploadPage.razor │ │ ├── DemoMatButtonPage.razor │ │ ├── DemoMatDividerPage.razor │ │ ├── DemoSortHeaderPage.razor │ │ ├── DemoEditContextPage.razor │ │ ├── DemoLayoutGridPage.razor │ │ ├── DemoMatTextFieldPage.razor │ │ ├── DemoProgressBarPage.razor │ │ ├── DemoTypographyPage.razor │ │ ├── DemoAutocompletePage.razor │ │ ├── DemoMatIconButtonPage.razor │ │ ├── DemoMatSelectItemPage.razor │ │ ├── DemoVirtualScrollPage.razor │ │ ├── DemoMatRadioButtonPage.razor │ │ ├── DemoMatSelectValuePage.razor │ │ ├── DemoMatSlideTogglePage.razor │ │ ├── DemoBaseMatComponentPage.razor │ │ ├── DemoMatExpansionPanelPage.razor │ │ ├── DemoAutocompleteListPage.razor │ │ ├── DemoMatNumericUpDownFieldPage.razor │ │ └── DemoMatCardPage.razor │ ├── BlazorFiddle │ │ └── BlazorFiddle.razor │ ├── Shared │ │ ├── FrameMainLayout.razor │ │ └── SurveyPrompt.razor │ ├── wwwroot │ │ ├── blazorFiddleLoader.js │ │ └── matBlazorDemo.js │ ├── Services │ │ └── DemoUserService.cs │ ├── Components │ │ └── BaseDocComponent.cs │ ├── Doc │ │ ├── Doc_Imports.razor │ │ ├── DocMatCombine.razor │ │ ├── DocMatSwitchT.razor │ │ ├── DocClassMapper.razor │ │ ├── DocMatIconNames.razor │ │ ├── DocMatToastType.razor │ │ ├── DocStyleMapper.razor │ │ ├── DocBindValueEvent.razor │ │ ├── DocLinqExtensions.razor │ │ ├── DocMatBreakpoint.razor │ │ ├── DocMatDrawerMode.razor │ │ ├── DocMatHiddenUtils.razor │ │ ├── DocMatRippleColor.razor │ │ ├── DocMatThemeColors.razor │ │ ├── DocMatToastState.razor │ │ ├── DocPageDirection.razor │ │ ├── DocMatToastClasses.razor │ │ ├── DocIBaseMatComponent.razor │ │ ├── DocIMatVirtualScroll.razor │ │ ├── DocIdGeneratorHelper.razor │ │ ├── DocMatIconCategories.razor │ │ ├── DocMatSelectJsHelper.razor │ │ ├── DocMatSliderJsHelper.razor │ │ ├── DocMatSortDirection.razor │ │ ├── DocMatToastExtension.razor │ │ ├── DocMatToastPosition.razor │ │ ├── DocMatTypeConverter.razor │ │ ├── DocMatBlazorSwitchTInt.razor │ │ ├── DocMatHiddenDirection.razor │ │ ├── DocMatPaginatorAction.razor │ │ ├── DocMatTooltipPosition.razor │ │ ├── DocMatBlazorSwitchTBool.razor │ │ ├── DocMatBlazorSwitchTByte.razor │ │ ├── DocMatBlazorSwitchTChar.razor │ │ ├── DocMatBlazorSwitchTLong.razor │ │ ├── DocMatBlazorSwitchTUInt.razor │ │ ├── DocMatAppBarSectionAlign.razor │ │ ├── DocMatBlazorSwitchTDouble.razor │ │ ├── DocMatBlazorSwitchTFloat.razor │ │ ├── DocMatBlazorSwitchTSByte.razor │ │ ├── DocMatBlazorSwitchTShort.razor │ │ ├── DocMatBlazorSwitchTString.razor │ │ ├── DocMatBlazorSwitchTULong.razor │ │ ├── DocMatBlazorSwitchTUShort.razor │ │ ├── DocMatDatePickerJsHelper.razor │ │ ├── DocMatDatePickerPosition.razor │ │ ├── DocMatHttpClientExtension.razor │ │ ├── DocComponentBaseExtensions.razor │ │ ├── DocMatBlazorSwitchTBoolNull.razor │ │ ├── DocMatBlazorSwitchTByteNull.razor │ │ ├── DocMatBlazorSwitchTCharNull.razor │ │ ├── DocMatBlazorSwitchTDateTime.razor │ │ ├── DocMatBlazorSwitchTDecimal.razor │ │ ├── DocMatBlazorSwitchTIntNull.razor │ │ ├── DocMatBlazorSwitchTLongNull.razor │ │ ├── DocMatBlazorSwitchTUIntNull.razor │ │ ├── DocMatVirtualScrollJsHelper.razor │ │ ├── DocMatBlazorSwitchTFloatNull.razor │ │ ├── DocMatBlazorSwitchTSByteNull.razor │ │ ├── DocMatBlazorSwitchTShortNull.razor │ │ ├── DocMatBlazorSwitchTULongNull.razor │ │ ├── DocMatNumericUpDownFieldType.razor │ │ ├── DocMatToatsPositionConvertor.razor │ │ ├── DocMatBlazorSwitchTDecimalNull.razor │ │ ├── DocMatBlazorSwitchTDoubleNull.razor │ │ ├── DocMatBlazorSwitchTUShortNull.razor │ │ ├── DocIMatVirtualScrollHelperTarget.razor │ │ ├── DocMatBlazorSwitchTDateTimeNull.razor │ │ ├── DocForwardRef.razor │ │ ├── DocMatListJsOptions.razor │ │ ├── DocMatTooltipJSOptions.razor │ │ ├── DocClassBuilder.razor │ │ ├── DocMatVirtualScrollHelper.razor │ │ ├── DocClassBuilderRule.razor │ │ ├── DocMatBlazorSwitchT.razor │ │ ├── DocMatAnchorUtils.razor │ │ ├── DocIMatNavSubMenuToggler.razor │ │ ├── DocMatBlazorSwitchTCommon.razor │ │ ├── DocMatContentWrapper.razor │ │ ├── DocMatPageSizeOption.razor │ │ ├── DocPageSizeStructure.razor │ │ ├── DocMatSortChangedEvent.razor │ │ ├── DocMatToaster.razor │ │ ├── DocMatVirtualScrollView.razor │ │ ├── DocLoadChildNodesDelegate.razor │ │ ├── DocIBaseMatPaginator.razor │ │ ├── DocMatEventCallback.razor │ │ ├── DocClassBuilderRuleClass.razor │ │ ├── DocGetChildNodesDelegate.razor │ │ ├── DocClassBuilderRuleGet.razor │ │ ├── DocMatAnchorLink.razor │ │ ├── DocIsNodeExpandedDelegate.razor │ │ └── DocIBaseCoreMatSelect.razor │ └── _Imports.razor ├── MatBlazor │ ├── Components │ │ ├── Base │ │ │ ├── MatCombine.razor │ │ │ ├── IBaseMatComponent.cs │ │ │ ├── MatContentWrapper.razor │ │ │ └── BaseMatInputElementComponent.cs │ │ ├── MatSelect │ │ │ ├── MatOption.cs │ │ │ ├── MatSelect.razor │ │ │ ├── MatSelectItem.razor │ │ │ ├── BaseMatOption.cs │ │ │ ├── MatSelectValue.razor │ │ │ ├── IBaseCoreMatSelect.cs │ │ │ ├── MatOptionString.cs │ │ │ ├── CoreMatOption.razor │ │ │ ├── MatSelectJsHelper.cs │ │ │ ├── BaseMatSelectItem.cs │ │ │ └── BaseMatSelect.cs │ │ ├── MatTextField │ │ │ ├── MatStringField.cs │ │ │ ├── BindValueEvent.cs │ │ │ └── MatTextField.cs │ │ ├── MatDrawer │ │ │ ├── MatDrawerMode.cs │ │ │ └── MatDrawer.razor │ │ ├── MatHidden │ │ │ ├── MatHiddenDirection.cs │ │ │ ├── MatBreakpoint.cs │ │ │ └── MatHidden.razor │ │ ├── MatAppBar │ │ │ ├── MatAppBarSectionAlign.cs │ │ │ ├── MatAppBarAdjust.razor │ │ │ ├── MatAppBar.razor │ │ │ ├── MatAppBarContainer.razor │ │ │ ├── MatAppBarTitle.razor │ │ │ ├── MatAppBarRow.razor │ │ │ ├── MatAppBarContent.razor │ │ │ └── MatAppBarNavigationIcon.razor │ │ ├── MatSort │ │ │ ├── MatSortDirection.cs │ │ │ ├── MatSortChangedEvent.cs │ │ │ ├── MatSortHeaderRow.razor │ │ │ └── MatSortHeader.razor │ │ ├── MatRipple │ │ │ ├── MatRippleColor.cs │ │ │ └── MatRipple.razor │ │ ├── MatDatePicker │ │ │ ├── MatDatePicker.cs │ │ │ ├── MatDatePickerPosition.cs │ │ │ └── MatDatePickerJsHelper.cs │ │ ├── MatVirtualScroll │ │ │ ├── IMatVirtualScrollHelperTarget.cs │ │ │ ├── MatVirtualScrollView.cs │ │ │ ├── MatVirtualScrollViewResult.cs │ │ │ ├── MatVirtualScrollJsHelper.cs │ │ │ └── MatVirtualScroll.razor │ │ ├── MatDivider │ │ │ └── MatDivider.razor │ │ ├── MatPaginator │ │ │ ├── MatPaginatorAction.cs │ │ │ ├── MatPaginatorPageEvent.cs │ │ │ ├── IBaseMatPaginator.cs │ │ │ └── MatPageSizeOption.cs │ │ ├── MatAutocomplete │ │ │ └── MatAutocompleteItem.cs │ │ ├── MatCard │ │ │ ├── MatCard.razor │ │ │ ├── MatCardActionIcons.cs │ │ │ ├── MatCardActionButtons.cs │ │ │ ├── MatCardActions.razor │ │ │ └── MatCardContent.razor │ │ ├── MatListGroup │ │ │ ├── MatListGroup.razor │ │ │ ├── MatListGroupSubHeader.razor │ │ │ └── BaseMatListGroup.cs │ │ ├── MatChipSet │ │ │ ├── MatChipSet.razor │ │ │ └── BaseMatChipSet.cs │ │ ├── MatMenu │ │ │ └── MatMenu.razor │ │ ├── MatAutocompleteList │ │ │ ├── MatAutocompleteListItem.cs │ │ │ └── AutocompleteListSearchResult.cs │ │ ├── MatDrawerContent │ │ │ ├── MatDrawerContent.razor │ │ │ └── BaseMatDrawerContent.cs │ │ ├── MatList │ │ │ ├── MatList.razor │ │ │ ├── MatListDivider.razor │ │ │ ├── MatListItemText.razor │ │ │ ├── MatListItemPrimaryText.razor │ │ │ ├── MatListItemSecondaryText.razor │ │ │ └── MatListItem.razor │ │ ├── MatIcon │ │ │ ├── MatIcon.razor │ │ │ └── BaseMatIcon.cs │ │ ├── MatDrawerContainer │ │ │ ├── MatDrawerContainer.razor │ │ │ └── BaseMatDrawerContainer.cs │ │ ├── MatCheckbox │ │ │ └── MatCheckbox.cs │ │ ├── MatRadioButton │ │ │ ├── MatRadioGroup.cs │ │ │ ├── MatRadioButton.cs │ │ │ └── MatRadioGroupInternal.razor │ │ ├── MatThemeProvider │ │ │ └── MatThemeProvider.razor │ │ ├── MatSnackbar │ │ │ ├── MatSnackbar.razor │ │ │ ├── MatSnackbarActions.razor │ │ │ └── MatSnackbarContent.razor │ │ ├── MatTab │ │ │ ├── MatTab.razor │ │ │ ├── MatTabGroup.razor │ │ │ └── BaseMatTab.cs │ │ ├── MatAccordion │ │ │ ├── MatAccordion.razor │ │ │ ├── MatExpansionPanel.razor │ │ │ ├── MatExpansionPanelDetails.razor │ │ │ ├── MatExpansionPanelHeader.razor │ │ │ └── MatExpansionPanelSubHeader.razor │ │ ├── MatNumericUpDownField │ │ │ ├── MatNumericUpDownFieldType.cs │ │ │ └── MatNumericUpDownField.cs │ │ ├── MatNavMenu │ │ │ ├── MatNavSubMenu.razor │ │ │ ├── MatNavMenu.razor │ │ │ ├── MatNavSubMenuList.razor │ │ │ └── IMatNavSubMenuToggler.cs │ │ ├── MatToastContainer │ │ │ └── MatToastContainer.razor │ │ ├── MatTable │ │ │ └── TableRow.razor │ │ ├── MatFileUpload │ │ │ ├── IMatFileUploadEntry.cs │ │ │ └── MatFileUpload.razor │ │ ├── MatFAB │ │ │ └── MatFAB.razor │ │ ├── MatSlider │ │ │ └── MatSliderJsHelper.cs │ │ ├── MatTreeView │ │ │ └── MatTreeView.razor │ │ ├── MatDataTable │ │ │ ├── MatDataTableRow.razor │ │ │ ├── MatDataTableContent.razor │ │ │ ├── MatDataTableHeader.razor │ │ │ ├── MatDataTableColumn.razor │ │ │ └── MatDataTableCell.razor │ │ ├── MatChip │ │ │ └── MatChip.razor │ │ ├── MatTabBar │ │ │ └── MatTabBar.razor │ │ ├── MatDialog │ │ │ ├── MatDialogTitle.razor │ │ │ ├── MatDialog.razor │ │ │ ├── MatDialogActions.razor │ │ │ └── MatDialogContent.razor │ │ ├── MatAnchor │ │ │ └── MatAnchorContainer.razor │ │ ├── MatIconButton │ │ │ └── MatIconButton.razor │ │ └── MatSlideToggle │ │ │ └── MatSlideToggle.razor │ ├── _Imports.razor │ ├── Helpers │ │ ├── ClassBuilderRule.cs │ │ ├── IdGeneratorHelper.cs │ │ ├── ClassBuilderRuleClass.cs │ │ ├── ClassBuilderRuleGet.cs │ │ ├── ClassMapper.cs │ │ ├── StyleMapper.cs │ │ ├── MatHttpClientExtension.cs │ │ ├── ClassBuilderRuleIf.cs │ │ └── ComponentBaseExtensions.cs │ ├── Services │ │ └── Toast │ │ │ ├── Helpers.cs │ │ │ ├── MatToastState.cs │ │ │ └── MatToastType.cs │ ├── Models │ │ ├── MatIconDataIcon.cs │ │ └── MatIconDataCategory.cs │ ├── GlobalSuppressions.cs │ └── Core │ │ └── ForwardRef.cs ├── Externals │ └── BlazorFiddle.Blazor.dll ├── .editorconfig ├── MatBlazor.TestApp.ServerApp │ ├── wwwroot │ │ ├── favicon.ico │ │ └── css │ │ │ └── open-iconic │ │ │ └── font │ │ │ └── fonts │ │ │ ├── open-iconic.eot │ │ │ ├── open-iconic.otf │ │ │ ├── open-iconic.ttf │ │ │ └── open-iconic.woff │ ├── appsettings.json │ ├── appsettings.Development.json │ ├── MatBlazor.TestApp.ServerApp.csproj │ ├── Pages │ │ └── Counter.razor │ ├── Shared │ │ └── MainLayout.razor │ ├── App.razor │ ├── Data │ │ └── WeatherForecast.cs │ ├── TestMetaComponents │ │ ├── MatMetaHelper.razor │ │ └── MyColumn.razor │ └── _Imports.razor ├── MatBlazor.Demo.ServerApp │ ├── appsettings.Development.json │ ├── Pages │ │ └── _Host.cshtml │ ├── .config │ │ └── dotnet-tools.json │ ├── _Imports.razor │ ├── appsettings.json │ └── MatBlazor.Demo.ServerApp.csproj ├── MatBlazor.Demo.App │ ├── _Imports.razor │ ├── App.razor │ ├── Program.cs │ └── Startup.cs ├── MatBlazor.Demo.ClientApp │ ├── _Imports.razor │ └── App.razor └── MatBlazor.DevUtils │ ├── Program.cs │ └── OverflowExp.cs └── content ├── icon.ico ├── logo.png ├── blazor.png ├── matblazor.png ├── logo-medium.png ├── favicon-32x32.png ├── mat-breakpoints.png ├── matblazor-buttons.png ├── matblazor-middle.png ├── mat-hidden-breakpoints.png └── demo-blazor-news-client.png /main.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/.nojekyll: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/.gitattributes: -------------------------------------------------------------------------------- 1 | * binary -------------------------------------------------------------------------------- /src/MatBlazor.Web/static/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matLayoutGrid/matLayoutGrid.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matSplitter/matSplitter.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matTypography/matTypography.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Frames/_Imports.razor: -------------------------------------------------------------------------------- 1 | @layout FrameMainLayout -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using MatBlazor.Demo.Shared -------------------------------------------------------------------------------- /src/MatBlazor/Components/Base/MatCombine.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor -------------------------------------------------------------------------------- /src/MatBlazor/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using Microsoft.AspNetCore.Components.Web -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matCard/matCard.scss: -------------------------------------------------------------------------------- 1 | @import "@material/card/mdc-card"; -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoTabPage.razor: -------------------------------------------------------------------------------- 1 | @page "/Tab" 2 | 3 | -------------------------------------------------------------------------------- /content/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/content/icon.ico -------------------------------------------------------------------------------- /content/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/content/logo.png -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matChipSet/matChipSet.scss: -------------------------------------------------------------------------------- 1 | @import "@material/chips/mdc-chips"; -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matElevation/matElevation.js: -------------------------------------------------------------------------------- 1 | export function init() { 2 | }; 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matSlider/matSlider.scss: -------------------------------------------------------------------------------- 1 | @import "@material/slider/mdc-slider"; -------------------------------------------------------------------------------- /content/blazor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/content/blazor.png -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoMatTable.razor: -------------------------------------------------------------------------------- 1 | @page "/Table" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoMatToast.razor: -------------------------------------------------------------------------------- 1 | @page "/Toast" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matDialog/matDialog.scss: -------------------------------------------------------------------------------- 1 | @import "@material/dialog/mdc-dialog"; 2 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matRipple/matRipple.scss: -------------------------------------------------------------------------------- 1 | @import "@material/ripple/mdc-ripple"; 2 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matSplitter/matSplitter.js: -------------------------------------------------------------------------------- 1 | export function init(ref) { 2 | 3 | } 4 | -------------------------------------------------------------------------------- /content/matblazor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/content/matblazor.png -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoDialogPage.razor: -------------------------------------------------------------------------------- 1 | @page "/Dialog" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoFABPage.razor: -------------------------------------------------------------------------------- 1 | @page "/FAB" 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoMatChipPage.razor: -------------------------------------------------------------------------------- 1 | @page "/Chip" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoMatIconPage.razor: -------------------------------------------------------------------------------- 1 | @page "/Icon" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoMatMenuPage.razor: -------------------------------------------------------------------------------- 1 | @page "/Menu" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoRipplePage.razor: -------------------------------------------------------------------------------- 1 | @page "/Ripple"; 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoThemesPage.razor: -------------------------------------------------------------------------------- 1 | @page "/Themes"; 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matAppBar/matAppBar.scss: -------------------------------------------------------------------------------- 1 | @import "@material/top-app-bar/mdc-top-app-bar"; -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matSlideToggle/matSlideToggle.scss: -------------------------------------------------------------------------------- 1 | @import "@material/switch/mdc-switch"; -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matSnackbar/matSnackbar.scss: -------------------------------------------------------------------------------- 1 | @import "@material/snackbar/mdc-snackbar"; 2 | -------------------------------------------------------------------------------- /content/logo-medium.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/content/logo-medium.png -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoCheckboxPage.razor: -------------------------------------------------------------------------------- 1 | @page "/Checkbox" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoMatListPage.razor: -------------------------------------------------------------------------------- 1 | @page "/List" 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoSnackbarPage.razor: -------------------------------------------------------------------------------- 1 | @page "/Snackbar" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matCard/matCard.js: -------------------------------------------------------------------------------- 1 | // alert(111); 2 | export function init(ref) { 3 | 4 | } 5 | -------------------------------------------------------------------------------- /content/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/content/favicon-32x32.png -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoDataTablePage.razor: -------------------------------------------------------------------------------- 1 | @page "/DataTable" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoMatAppBarPage.razor: -------------------------------------------------------------------------------- 1 | @page "/AppBar" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoMatDrawerPage.razor: -------------------------------------------------------------------------------- 1 | @page "/Drawer" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoMatHiddenPage.razor: -------------------------------------------------------------------------------- 1 | @page "/Hidden" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoMatNavMenuPage.razor: -------------------------------------------------------------------------------- 1 | @page "/NavMenu" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoMatSelectPage.razor: -------------------------------------------------------------------------------- 1 | @page "/Select" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoMatSliderPage.razor: -------------------------------------------------------------------------------- 1 | @page "/Slider" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoPaginatorPage.razor: -------------------------------------------------------------------------------- 1 | @page "/Paginator" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoTooltipPage.razor: -------------------------------------------------------------------------------- 1 | @page "/Tooltip" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoTreeViewPage.razor: -------------------------------------------------------------------------------- 1 | @page "/TreeView"; 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matIconButton/matIconButton.scss: -------------------------------------------------------------------------------- 1 | @import "@material/icon-button/mdc-icon-button"; 2 | -------------------------------------------------------------------------------- /content/mat-breakpoints.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/content/mat-breakpoints.png -------------------------------------------------------------------------------- /content/matblazor-buttons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/content/matblazor-buttons.png -------------------------------------------------------------------------------- /content/matblazor-middle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/content/matblazor-middle.png -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoDatePickerPage.razor: -------------------------------------------------------------------------------- 1 | @page "/DatePicker"; 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoElevationPage.razor: -------------------------------------------------------------------------------- 1 | @page "/Elevation" 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoFileUploadPage.razor: -------------------------------------------------------------------------------- 1 | @page "/FileUpload"; 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoMatButtonPage.razor: -------------------------------------------------------------------------------- 1 | @page "/Button" 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoMatDividerPage.razor: -------------------------------------------------------------------------------- 1 | @page "/Divider" 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoSortHeaderPage.razor: -------------------------------------------------------------------------------- 1 | @page "/SortHeader"; 2 | 3 | -------------------------------------------------------------------------------- /docs/_framework/_bin/System.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/System.dll -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoEditContextPage.razor: -------------------------------------------------------------------------------- 1 | @page "/editcontext" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoLayoutGridPage.razor: -------------------------------------------------------------------------------- 1 | @page "/LayoutGrid" 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoMatTextFieldPage.razor: -------------------------------------------------------------------------------- 1 | @page "/TextField" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoProgressBarPage.razor: -------------------------------------------------------------------------------- 1 | @page "/ProgressBar" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoTypographyPage.razor: -------------------------------------------------------------------------------- 1 | @page "/Typography" 2 | 3 | 4 | -------------------------------------------------------------------------------- /content/mat-hidden-breakpoints.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/content/mat-hidden-breakpoints.png -------------------------------------------------------------------------------- /docs/_framework/_bin/MatBlazor.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/MatBlazor.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/System.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/System.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/System.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/System.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/mscorlib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/mscorlib.dll -------------------------------------------------------------------------------- /docs/_framework/wasm/dotnet.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/wasm/dotnet.wasm -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoAutocompletePage.razor: -------------------------------------------------------------------------------- 1 | @page "/Autocomplete"; 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoMatIconButtonPage.razor: -------------------------------------------------------------------------------- 1 | @page "/IconButton" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoMatSelectItemPage.razor: -------------------------------------------------------------------------------- 1 | @page "/SelectItem" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoVirtualScrollPage.razor: -------------------------------------------------------------------------------- 1 | @page "/VirtualScroll" 2 | 3 | -------------------------------------------------------------------------------- /content/demo-blazor-news-client.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/content/demo-blazor-news-client.png -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/System.Core.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/mscorlib.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/mscorlib.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/mscorlib.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/mscorlib.dll.gz -------------------------------------------------------------------------------- /docs/_framework/blazor.boot.json.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/blazor.boot.json.br -------------------------------------------------------------------------------- /docs/_framework/blazor.boot.json.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/blazor.boot.json.gz -------------------------------------------------------------------------------- /docs/_framework/wasm/dotnet.wasm.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/wasm/dotnet.wasm.br -------------------------------------------------------------------------------- /docs/_framework/wasm/dotnet.wasm.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/wasm/dotnet.wasm.gz -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoMatRadioButtonPage.razor: -------------------------------------------------------------------------------- 1 | @page "/RadioButton" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoMatSelectValuePage.razor: -------------------------------------------------------------------------------- 1 | @page "/SelectValue" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoMatSlideTogglePage.razor: -------------------------------------------------------------------------------- 1 | @page "/SlideToggle" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matProgressBar/matProgressBar.scss: -------------------------------------------------------------------------------- 1 | @import "@material/linear-progress/mdc-linear-progress"; 2 | 3 | 4 | -------------------------------------------------------------------------------- /docs/_framework/_bin/MatBlazor.Demo.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/MatBlazor.Demo.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/MatBlazor.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/MatBlazor.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/MatBlazor.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/MatBlazor.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Core.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/System.Core.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Core.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/System.Core.dll.gz -------------------------------------------------------------------------------- /docs/_framework/wasm/dotnet.3.2.0.js.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/wasm/dotnet.3.2.0.js.br -------------------------------------------------------------------------------- /docs/_framework/wasm/dotnet.3.2.0.js.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/wasm/dotnet.3.2.0.js.gz -------------------------------------------------------------------------------- /src/Externals/BlazorFiddle.Blazor.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/src/Externals/BlazorFiddle.Blazor.dll -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoBaseMatComponentPage.razor: -------------------------------------------------------------------------------- 1 | @page "/BaseComponent" 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoMatExpansionPanelPage.razor: -------------------------------------------------------------------------------- 1 | @page "/ExpansionPanel" 2 | 3 | -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Net.Http.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/System.Net.Http.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Text.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/System.Text.Json.dll -------------------------------------------------------------------------------- /docs/_framework/blazor.webassembly.js.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/blazor.webassembly.js.br -------------------------------------------------------------------------------- /docs/_framework/blazor.webassembly.js.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/blazor.webassembly.js.gz -------------------------------------------------------------------------------- /docs/_framework/wasm/dotnet.timezones.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/wasm/dotnet.timezones.dat -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoAutocompleteListPage.razor: -------------------------------------------------------------------------------- 1 | @page "/AutocompleteList"; 2 | 3 | -------------------------------------------------------------------------------- /docs/_framework/_bin/MatBlazor.Demo.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/MatBlazor.Demo.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/MatBlazor.Demo.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/MatBlazor.Demo.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.JSInterop.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.JSInterop.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Net.Http.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/System.Net.Http.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Net.Http.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/System.Net.Http.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Text.Json.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/System.Text.Json.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Text.Json.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/System.Text.Json.dll.gz -------------------------------------------------------------------------------- /docs/_framework/wasm/dotnet.timezones.dat.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/wasm/dotnet.timezones.dat.br -------------------------------------------------------------------------------- /docs/_framework/wasm/dotnet.timezones.dat.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/wasm/dotnet.timezones.dat.gz -------------------------------------------------------------------------------- /src/MatBlazor.Demo/BlazorFiddle/BlazorFiddle.razor: -------------------------------------------------------------------------------- 1 | @inherits BaseBlazorFiddle 2 | 3 |
4 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matCheckbox/matCheckbox.scss: -------------------------------------------------------------------------------- 1 | @import "@material/form-field/mdc-form-field"; 2 | @import "@material/checkbox/mdc-checkbox"; -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matRadioButton/matRadioButton.scss: -------------------------------------------------------------------------------- 1 | @import "@material/form-field/mdc-form-field"; 2 | @import "@material/radio/mdc-radio"; -------------------------------------------------------------------------------- /src/MatBlazor.Web/static/assets/README.md: -------------------------------------------------------------------------------- 1 | ### put your assets here 2 | 3 | 1. images 4 | 2. other standalone libraries(no npm support) 5 | -------------------------------------------------------------------------------- /docs/_framework/_bin/WebAssembly.Bindings.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/WebAssembly.Bindings.dll -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoMatNumericUpDownFieldPage.razor: -------------------------------------------------------------------------------- 1 | @page "/NumericUpDownField"; 2 | 3 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/Base/IBaseMatComponent.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public interface IBaseMatComponent 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /docs/_framework/_bin/MatBlazor.Demo.ClientApp.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/MatBlazor.Demo.ClientApp.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.JSInterop.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.JSInterop.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.JSInterop.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.JSInterop.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/WebAssembly.Bindings.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/WebAssembly.Bindings.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/WebAssembly.Bindings.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/WebAssembly.Bindings.dll.gz -------------------------------------------------------------------------------- /src/.editorconfig: -------------------------------------------------------------------------------- 1 | [*.cs] 2 | 3 | # CS1591: Missing XML comment for publicly visible type or member 4 | dotnet_diagnostic.CS1591.severity = silent 5 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matList/matList.scss: -------------------------------------------------------------------------------- 1 | @import "@material/list/mdc-list"; 2 | 3 | .mdc-list-item--disabled { 4 | cursor: not-allowed; 5 | } 6 | -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Text.Encodings.Web.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/System.Text.Encodings.Web.dll -------------------------------------------------------------------------------- /src/MatBlazor.TestApp.ServerApp/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/src/MatBlazor.TestApp.ServerApp/wwwroot/favicon.ico -------------------------------------------------------------------------------- /docs/_framework/_bin/MatBlazor.Demo.ClientApp.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/MatBlazor.Demo.ClientApp.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/MatBlazor.Demo.ClientApp.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/MatBlazor.Demo.ClientApp.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Bcl.AsyncInterfaces.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Bcl.AsyncInterfaces.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Logging.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.Logging.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Options.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.Options.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Text.Encodings.Web.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/System.Text.Encodings.Web.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Text.Encodings.Web.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/System.Text.Encodings.Web.dll.gz -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatSelect/MatOption.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public class MatOption : BaseMatOption 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatSelect/MatSelect.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @typeparam TValue 3 | @inherits BaseMatSelect 4 | 5 | @base.BuildRenderTree -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.AspNetCore.Components.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.AspNetCore.Components.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Logging.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.Logging.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Logging.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.Logging.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Options.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.Options.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Options.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.Options.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Primitives.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.Primitives.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.JSInterop.WebAssembly.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.JSInterop.WebAssembly.dll -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatSelect/MatSelectItem.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @typeparam TValue 3 | @inherits BaseMatSelectItem 4 | 5 | @base.BuildRenderTree -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatTextField/MatStringField.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public class MatStringField : MatTextField 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.AspNetCore.Components.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.AspNetCore.Components.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.AspNetCore.Components.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.AspNetCore.Components.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Bcl.AsyncInterfaces.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Bcl.AsyncInterfaces.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Bcl.AsyncInterfaces.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Bcl.AsyncInterfaces.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Configuration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.Configuration.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Primitives.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.Primitives.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Primitives.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.Primitives.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.JSInterop.WebAssembly.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.JSInterop.WebAssembly.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.JSInterop.WebAssembly.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.JSInterop.WebAssembly.dll.gz -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matButton/matButton.scss: -------------------------------------------------------------------------------- 1 | @import "@material/button/mdc-button"; 2 | 3 | .mat-button__icon--trailing { 4 | margin: 0 -4px 0 4px !important; 5 | } 6 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matFAB/matFAB.js: -------------------------------------------------------------------------------- 1 | import {MDCRipple} from '@material/ripple/component'; 2 | 3 | 4 | export function init(ref) { 5 | new MDCRipple(ref); 6 | } 7 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatSelect/BaseMatOption.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public class BaseMatOption : CoreMatOption 4 | { 5 | } 6 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatTextField/BindValueEvent.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public enum BindValueEvent 4 | { 5 | Input, 6 | 7 | } 8 | } -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.AspNetCore.Components.Web.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.AspNetCore.Components.Web.dll -------------------------------------------------------------------------------- /src/MatBlazor.Web/.gitignore: -------------------------------------------------------------------------------- 1 | # IDE 2 | .idea/ 3 | 4 | # nodejs 5 | node_modules/ 6 | npm-debug.log 7 | yarn-error.log 8 | 9 | # project 10 | dist/ 11 | env.js 12 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matFAB/matFAB.scss: -------------------------------------------------------------------------------- 1 | @import "@material/fab/mdc-fab"; 2 | 3 | 4 | .mat-fab { 5 | > .material-icons { 6 | @extend .mdc-fab__icon; 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matMenu/matMenu.scss: -------------------------------------------------------------------------------- 1 | @import "@material/list/mdc-list"; 2 | @import "@material/menu-surface/mdc-menu-surface"; 3 | @import "@material/menu/mdc-menu"; 4 | -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.AspNetCore.Components.Forms.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.AspNetCore.Components.Forms.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.AspNetCore.Components.Web.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.AspNetCore.Components.Web.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.AspNetCore.Components.Web.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.AspNetCore.Components.Web.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Configuration.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.Configuration.Json.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Configuration.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.Configuration.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Configuration.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.Configuration.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/System.ComponentModel.DataAnnotations.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/System.ComponentModel.DataAnnotations.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Net.Http.WebAssemblyHttpHandler.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/System.Net.Http.WebAssemblyHttpHandler.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Runtime.CompilerServices.Unsafe.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/System.Runtime.CompilerServices.Unsafe.dll -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatDrawer/MatDrawerMode.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public enum MatDrawerMode 4 | { 5 | Dismissible, 6 | Modal, 7 | } 8 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatHidden/MatHiddenDirection.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public enum MatHiddenDirection 4 | { 5 | Down, 6 | Up, 7 | } 8 | } -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.AspNetCore.Components.Forms.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.AspNetCore.Components.Forms.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.AspNetCore.Components.Forms.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.AspNetCore.Components.Forms.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.DependencyInjection.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.DependencyInjection.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Logging.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.Logging.Abstractions.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/System.ComponentModel.DataAnnotations.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/System.ComponentModel.DataAnnotations.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/System.ComponentModel.DataAnnotations.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/System.ComponentModel.DataAnnotations.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Net.Http.WebAssemblyHttpHandler.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/System.Net.Http.WebAssemblyHttpHandler.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Net.Http.WebAssemblyHttpHandler.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/System.Net.Http.WebAssemblyHttpHandler.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Runtime.CompilerServices.Unsafe.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/System.Runtime.CompilerServices.Unsafe.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/System.Runtime.CompilerServices.Unsafe.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/System.Runtime.CompilerServices.Unsafe.dll.gz -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatAppBar/MatAppBarSectionAlign.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public enum MatAppBarSectionAlign 4 | { 5 | Start, 6 | End 7 | } 8 | } -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.AspNetCore.Components.WebAssembly.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.AspNetCore.Components.WebAssembly.dll -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Configuration.Json.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.Configuration.Json.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Configuration.Json.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.Configuration.Json.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.DependencyInjection.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.DependencyInjection.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.DependencyInjection.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.DependencyInjection.dll.gz -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Logging.Abstractions.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.Logging.Abstractions.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Logging.Abstractions.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.Logging.Abstractions.dll.gz -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatSort/MatSortDirection.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public enum MatSortDirection 4 | { 5 | None, 6 | Asc, 7 | Desc 8 | } 9 | } -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.AspNetCore.Components.WebAssembly.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.AspNetCore.Components.WebAssembly.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.AspNetCore.Components.WebAssembly.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.AspNetCore.Components.WebAssembly.dll.gz -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matRipple/matRipple.js: -------------------------------------------------------------------------------- 1 | import {MDCRipple} from '@material/ripple/component'; 2 | 3 | 4 | export function init(ref) { 5 | ref.matBlazorRef = new MDCRipple(ref); 6 | } 7 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/Base/MatContentWrapper.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @ChildContent 3 | 4 | @code 5 | { 6 | [Parameter] 7 | public RenderFragment ChildContent { get; set; } 8 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatSelect/MatSelectValue.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @typeparam TValue 3 | @typeparam TItem 4 | @inherits BaseMatSelectValue 5 | 6 | @base.BuildRenderTree -------------------------------------------------------------------------------- /src/MatBlazor/Helpers/ClassBuilderRule.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public abstract class ClassBuilderRule 4 | { 5 | public abstract string GetClass(T data); 6 | } 7 | } -------------------------------------------------------------------------------- /src/MatBlazor/Services/Toast/Helpers.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public class MatToastClasses 4 | { 5 | 6 | public const string CloseIcon = "cancel"; 7 | } 8 | } -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Configuration.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.Configuration.Abstractions.dll -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/utils/utils.js: -------------------------------------------------------------------------------- 1 | export function isMobile() { 2 | return window.innerWidth < 1000; 3 | } 4 | 5 | 6 | export function windowInnerWidth() { 7 | return window.innerWidth; 8 | } 9 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatRipple/MatRippleColor.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public enum MatRippleColor 4 | { 5 | Default, 6 | Primary, 7 | Secondary, 8 | } 9 | } -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Configuration.Abstractions.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.Configuration.Abstractions.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.Configuration.Abstractions.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.Configuration.Abstractions.dll.gz -------------------------------------------------------------------------------- /src/MatBlazor.Web/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | "env" 4 | ], 5 | "plugins": [ 6 | "babel-plugin-transform-class-properties", 7 | "babel-plugin-transform-object-rest-spread" 8 | ] 9 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatDatePicker/MatDatePicker.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MatBlazor 4 | { 5 | public class MatDatePicker : MatDatePickerInternal 6 | { 7 | } 8 | } -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.DependencyInjection.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.DependencyInjection.Abstractions.dll -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matAutocompleteList/matAutocompleteList.js: -------------------------------------------------------------------------------- 1 | // export class MatAutocompleteList { 2 | // 3 | // } 4 | // 5 | // export function init(ref) { 6 | // new MatAutocompleteList(ref); 7 | // } 8 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatDatePicker/MatDatePickerPosition.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public enum MatDatePickerPosition 4 | { 5 | Auto, 6 | Above, 7 | Below 8 | } 9 | } -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.DependencyInjection.Abstractions.dll.br: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.DependencyInjection.Abstractions.dll.br -------------------------------------------------------------------------------- /docs/_framework/_bin/Microsoft.Extensions.DependencyInjection.Abstractions.dll.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/docs/_framework/_bin/Microsoft.Extensions.DependencyInjection.Abstractions.dll.gz -------------------------------------------------------------------------------- /src/MatBlazor.TestApp.ServerApp/wwwroot/css/open-iconic/font/fonts/open-iconic.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/src/MatBlazor.TestApp.ServerApp/wwwroot/css/open-iconic/font/fonts/open-iconic.eot -------------------------------------------------------------------------------- /src/MatBlazor.TestApp.ServerApp/wwwroot/css/open-iconic/font/fonts/open-iconic.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/src/MatBlazor.TestApp.ServerApp/wwwroot/css/open-iconic/font/fonts/open-iconic.otf -------------------------------------------------------------------------------- /src/MatBlazor.TestApp.ServerApp/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/src/MatBlazor.TestApp.ServerApp/wwwroot/css/open-iconic/font/fonts/open-iconic.ttf -------------------------------------------------------------------------------- /src/MatBlazor.TestApp.ServerApp/wwwroot/css/open-iconic/font/fonts/open-iconic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tossnet/MatBlazor/master/src/MatBlazor.TestApp.ServerApp/wwwroot/css/open-iconic/font/fonts/open-iconic.woff -------------------------------------------------------------------------------- /src/MatBlazor.Web/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es5", 5 | "sourceMap": true 6 | }, 7 | "exclude": [ 8 | "node_modules" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatSelect/IBaseCoreMatSelect.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public interface IBaseCoreMatSelect 4 | { 5 | MatBlazorSwitchT SwitchTypeKey { get; } 6 | } 7 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo.ServerApp/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo.ServerApp/Pages/_Host.cshtml: -------------------------------------------------------------------------------- 1 | @page "/" 2 | @namespace MatBlazor.Demo.ServerApp.Pages 3 | 4 | @{ 5 | Layout = "_Layout"; 6 | } 7 | 8 | 9 | @(await Html.RenderComponentAsync(RenderMode.ServerPrerendered)) -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matTabBar/matTabBar.scss: -------------------------------------------------------------------------------- 1 | @import "@material/tab-bar/mdc-tab-bar"; 2 | @import "@material/tab-scroller/mdc-tab-scroller"; 3 | @import "@material/tab-indicator/mdc-tab-indicator"; 4 | @import "@material/tab/mdc-tab"; 5 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatVirtualScroll/IMatVirtualScrollHelperTarget.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public interface IMatVirtualScrollHelperTarget 4 | { 5 | void StateHasChangedFromVirtualScrollHelper(); 6 | } 7 | } -------------------------------------------------------------------------------- /src/MatBlazor/Services/Toast/MatToastState.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public enum MatToastState 4 | { 5 | Init, 6 | Showing, 7 | Hiding, 8 | Visible, 9 | MouseOver 10 | } 11 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Shared/FrameMainLayout.razor: -------------------------------------------------------------------------------- 1 | @inherits LayoutComponentBase 2 | @using System.Reflection 3 | @using Microsoft.AspNetCore.Components 4 | @inject NavigationManager Url 5 | 6 | 7 | 8 | @Body 9 | 10 | @code 11 | { 12 | } -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matAppBar/matAppBar.js: -------------------------------------------------------------------------------- 1 | import {MDCTopAppBar} from '@material/top-app-bar'; 2 | 3 | 4 | export class MatAppBar extends MDCTopAppBar { 5 | } 6 | 7 | 8 | export function init(ref) { 9 | new MatAppBar(ref); 10 | } -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matChipSet/matChipSet.js: -------------------------------------------------------------------------------- 1 | import {MDCChipSet} from '@material/chips'; 2 | 3 | 4 | export class MatChipSet extends MDCChipSet { 5 | 6 | } 7 | 8 | 9 | export function init(ref) { 10 | new MatChipSet(ref); 11 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo.App/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using System.Net.Http 2 | @using Microsoft.AspNetCore.Components.Forms 3 | @using Microsoft.AspNetCore.Components.Layouts 4 | @using Microsoft.AspNetCore.Components.Routing 5 | @using Microsoft.JSInterop 6 | 7 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatDivider/MatDivider.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatDivider 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatRipple/MatRipple.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatRipple 3 |
4 | @ChildContent 5 |
-------------------------------------------------------------------------------- /src/MatBlazor/Components/MatHidden/MatBreakpoint.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public enum MatBreakpoint 4 | { 5 | XS = 0, 6 | SM = 600, 7 | MD = 960, 8 | LG = 1280, 9 | XL = 1920, 10 | } 11 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatPaginator/MatPaginatorAction.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public enum MatPaginatorAction 4 | { 5 | Default, 6 | First, 7 | Previous, 8 | Next, 9 | Last 10 | } 11 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo.ServerApp/.config/dotnet-tools.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 1, 3 | "isRoot": true, 4 | "tools": { 5 | "dotnet-ef": { 6 | "version": "3.0.0", 7 | "commands": [ 8 | "dotnet-ef" 9 | ] 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatAutocomplete/MatAutocompleteItem.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public class MatAutocompleteItem 4 | { 5 | public TItem Item { get; set; } 6 | public TValue Value { get; set; } 7 | } 8 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatCard/MatCard.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatCard 3 | 4 |
5 | @ChildContent 6 |
-------------------------------------------------------------------------------- /src/MatBlazor/Components/MatVirtualScroll/MatVirtualScrollView.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public class MatVirtualScrollView 4 | { 5 | public int ClientHeight { get; set; } 6 | 7 | public int ScrollTop { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo.ServerApp/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using System.Net.Http 2 | @using Microsoft.AspNetCore.Components.Forms 3 | @using Microsoft.AspNetCore.Components.Routing 4 | @using Microsoft.JSInterop 5 | @using Microsoft.AspNetCore.Components.Web 6 | @using MatBlazor -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matSlideToggle/matSlideToggle.js: -------------------------------------------------------------------------------- 1 | import {MDCSwitch} from '@material/switch'; 2 | 3 | 4 | export class MatSlideToggle extends MDCSwitch { 5 | 6 | } 7 | 8 | 9 | export function init(ref) { 10 | new MatSlideToggle(ref); 11 | } 12 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatListGroup/MatListGroup.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatListGroup 3 | 4 |
5 | @ChildContent 6 |
-------------------------------------------------------------------------------- /src/MatBlazor/Models/MatIconDataIcon.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public class MatIconDataIcon 4 | { 5 | public string Id { get; set; } 6 | public string Name { get; set; } 7 | public string PropName { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo.App/App.razor: -------------------------------------------------------------------------------- 1 | 5 | 6 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo.ServerApp/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | }, 9 | "AllowedHosts": "*" 10 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatChipSet/MatChipSet.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatChipSet 3 | 4 |
5 | @ChildContent 6 |
-------------------------------------------------------------------------------- /src/MatBlazor/Components/MatMenu/MatMenu.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatMenu 3 | 4 | 5 |
6 | @ChildContent 7 |
-------------------------------------------------------------------------------- /src/MatBlazor/Components/MatAutocompleteList/MatAutocompleteListItem.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public class MatAutocompleteListItem 4 | { 5 | public TItem Item { get; set; } 6 | 7 | public string StringValue { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatDrawerContent/MatDrawerContent.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatDrawerContent 3 | 4 |
5 | @ChildContent 6 |
-------------------------------------------------------------------------------- /src/MatBlazor/Components/MatList/MatList.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatList 3 | 4 |
    5 | @ChildContent 6 |
-------------------------------------------------------------------------------- /src/MatBlazor/Components/MatList/MatListDivider.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatDomComponent 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/MatBlazor.TestApp.ServerApp/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft": "Warning", 6 | "Microsoft.Hosting.Lifetime": "Information" 7 | } 8 | }, 9 | "AllowedHosts": "*" 10 | } 11 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatIcon/MatIcon.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatIcon 3 | @using Microsoft.AspNetCore.Components 4 | @Icon@ChildContent 5 | -------------------------------------------------------------------------------- /src/MatBlazor/Models/MatIconDataCategory.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public class MatIconDataCategory 4 | { 5 | public string Id { get; set; } 6 | public string Name { get; set; } 7 | public MatIconDataIcon[] Icons { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatDrawerContainer/MatDrawerContainer.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatDrawerContainer 3 | 4 | 5 |
6 | @ChildContent 7 |
-------------------------------------------------------------------------------- /src/MatBlazor/Components/MatSelect/MatOptionString.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace MatBlazor 7 | { 8 | public class MatOptionString : MatOption 9 | { 10 | } 11 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatSort/MatSortChangedEvent.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | 3 | namespace MatBlazor 4 | { 5 | public class MatSortChangedEvent 6 | { 7 | public string SortId { get; set; } 8 | public MatSortDirection Direction { get; set; } 9 | } 10 | } -------------------------------------------------------------------------------- /src/MatBlazor.TestApp.ServerApp/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "DetailedErrors": true, 3 | "Logging": { 4 | "LogLevel": { 5 | "Default": "Information", 6 | "Microsoft": "Warning", 7 | "Microsoft.Hosting.Lifetime": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo.ClientApp/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using System.Net.Http 2 | @using Microsoft.AspNetCore.Components.Forms 3 | @using Microsoft.AspNetCore.Components.Routing 4 | @using Microsoft.JSInterop 5 | @using Microsoft.AspNetCore.Components.Web 6 | @using MatBlazor.Demo.ClientApp 7 | @using MatBlazor -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatCheckbox/MatCheckbox.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace MatBlazor 7 | { 8 | public class MatCheckbox : MatCheckboxInternal 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatPaginator/MatPaginatorPageEvent.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public class MatPaginatorPageEvent 4 | { 5 | public int PageIndex { get; set; } 6 | public int PageSize { get; set; } 7 | 8 | public int Length { get; set; } 9 | } 10 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatRadioButton/MatRadioGroup.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | namespace MatBlazor 6 | { 7 | public class MatRadioGroup : MatRadioGroupInternal 8 | { 9 | } 10 | } -------------------------------------------------------------------------------- /src/MatBlazor/Helpers/IdGeneratorHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MatBlazor 4 | { 5 | public static class IdGeneratorHelper 6 | { 7 | public static string Generate(string prefix) 8 | { 9 | return prefix + Guid.NewGuid(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo/wwwroot/blazorFiddleLoader.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | var script = document.createElement("script"); // create a script DOM node 3 | script.src = "https://blazorfiddle.com/scripts/blazorFiddle.js"; // set its src to the provided URL 4 | 5 | document.head.appendChild(script); 6 | })(); -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatCard/MatCardActionIcons.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public class MatCardActionIcons : BaseMatContainerComponent 4 | { 5 | public MatCardActionIcons() 6 | { 7 | ClassMapper.Add("mdc-card__action-icons"); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatThemeProvider/MatThemeProvider.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @using Microsoft.AspNetCore.Components 3 | @inherits BaseMatThemeProvider; 4 | 5 | 6 | @((MarkupString)Theme?.GetStyleTag()) 7 | 8 | 9 | @ChildContent 10 | -------------------------------------------------------------------------------- /docs/_content/MatBlazor.Demo/blazorFiddleLoader.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | var script = document.createElement("script"); // create a script DOM node 3 | script.src = "https://blazorfiddle.com/scripts/blazorFiddle.js"; // set its src to the provided URL 4 | 5 | document.head.appendChild(script); 6 | })(); -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matButton/matButton.js: -------------------------------------------------------------------------------- 1 | import {MDCRipple} from '@material/ripple'; 2 | 3 | 4 | export class MatButton extends MDCRipple { 5 | 6 | constructor(ref) { 7 | super(ref); 8 | } 9 | } 10 | 11 | 12 | export function init(ref) { 13 | var button = new MatButton(ref); 14 | } 15 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatCard/MatCardActionButtons.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public class MatCardActionButtons : BaseMatContainerComponent 4 | { 5 | public MatCardActionButtons() 6 | { 7 | ClassMapper.Add("mdc-card__action-buttons"); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matDrawer/matDrawer.scss: -------------------------------------------------------------------------------- 1 | @import "@material/drawer/mdc-drawer"; 2 | @import "@material/list/mdc-list"; 3 | 4 | 5 | .mat-drawer-app-content { 6 | height: 100%; 7 | //width: 100%; 8 | overflow: auto; 9 | } 10 | 11 | 12 | .mat-drawer 13 | { 14 | border-right-width: 0px; 15 | } 16 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatRadioButton/MatRadioButton.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace MatBlazor 7 | { 8 | public class MatRadioButton : MatRadioButtonInternal 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/MatBlazor/Services/Toast/MatToastType.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public enum MatToastType 4 | { 5 | Danger, 6 | Dark, 7 | Info, 8 | Light, 9 | Link, 10 | Primary, 11 | Secondary, 12 | Success, 13 | Warning 14 | } 15 | } -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matAccordion/matAccordion.js: -------------------------------------------------------------------------------- 1 | import {MDCRipple} from '@material/ripple/component'; 2 | 3 | export function init(ref) { 4 | 5 | } 6 | 7 | export function initSummary(ref) { 8 | // console.log(ref); 9 | var ripple = new MDCRipple(ref); 10 | // ripple.unbounded = true; 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/theme/theme.scss: -------------------------------------------------------------------------------- 1 | @import url("https://fonts.googleapis.com/css?family=Roboto:300,400,500"); 2 | @import url("https://fonts.googleapis.com/icon?family=Material+Icons"); 3 | 4 | .mat-view-port { 5 | position: fixed; 6 | width: 100%; 7 | height: 100%; 8 | left: 0; 9 | top: 0; 10 | } 11 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatAppBar/MatAppBarAdjust.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatDomComponent 3 |
4 | 5 | 6 | @code 7 | { 8 | 9 | 10 | 11 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatPaginator/IBaseMatPaginator.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace MatBlazor 4 | { 5 | public interface IBaseMatPaginator 6 | { 7 | int PageSize { get; set; } 8 | 9 | IReadOnlyList PageSizeOptions { get; set; } 10 | } 11 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatSnackbar/MatSnackbar.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatSnackbar 3 | 4 |
5 |
6 | @ChildContent 7 |
8 |
-------------------------------------------------------------------------------- /src/MatBlazor/Components/MatTab/MatTab.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @using Microsoft.AspNetCore.Components 3 | @inherits BaseMatTab 4 | 5 | 6 | @LabelContent 7 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matTextField/matTextField.js: -------------------------------------------------------------------------------- 1 | import {MDCTextField} from '@material/textfield'; 2 | 3 | export class MatTextField { 4 | 5 | 6 | constructor(ref) { 7 | const textField = new MDCTextField(ref); 8 | 9 | } 10 | } 11 | 12 | export function init(ref) { 13 | new MatTextField(ref); 14 | } 15 | 16 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatAccordion/MatAccordion.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatAccordion 3 | 4 | 5 |
6 | @ChildContent 7 |
8 |
-------------------------------------------------------------------------------- /src/MatBlazor/Components/MatNumericUpDownField/MatNumericUpDownFieldType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace MatBlazor 6 | { 7 | public enum MatNumericUpDownFieldType 8 | { 9 | Numeric, 10 | Currency, 11 | Percent 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatNavMenu/MatNavSubMenu.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatNavSubMenu 3 | 4 | 5 |
  • 6 | @ChildContent 7 |
  • 8 |
    -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatAccordion/MatExpansionPanel.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatExpansionPanel 3 | 4 | 5 |
    6 | @ChildContent 7 |
    8 |
    -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatNumericUpDownField/MatNumericUpDownField.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | 6 | namespace MatBlazor 7 | { 8 | public class MatNumericUpDownField : MatNumericUpDownFieldInternal 9 | { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/MatBlazor.DevUtils/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace MatBlazor.DevUtils 6 | { 7 | public class Program 8 | { 9 | public static void Main(string[] args) 10 | { 11 | new DemoContentGenerator().Run(); 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/MatBlazor.TestApp.ServerApp/MatBlazor.TestApp.ServerApp.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp3.1 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Services/DemoUserService.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor.Demo.Services 2 | { 3 | public class DemoUserService 4 | { 5 | public int activeTabIndex = 0; 6 | 7 | public int ActiveTabIndex 8 | { 9 | get { return activeTabIndex; } 10 | set { activeTabIndex = value; } 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matAnchor/matAnchor.js: -------------------------------------------------------------------------------- 1 | export function scrollToAnchor(anchor) { 2 | 3 | var selector = anchor || document.location.hash; 4 | 5 | if (selector && selector.length > 1) { 6 | var element = document.querySelector(selector); 7 | if (element) { 8 | element.scrollIntoView(true); 9 | } 10 | } else { 11 | 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatVirtualScroll/MatVirtualScrollViewResult.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public class MatVirtualScrollViewResult 4 | { 5 | public int Height { get; set; } 6 | public string ScrollContainerStyle { get; set; } 7 | public int SkipItems { get; set; } 8 | public int TakeItems { get; set; } 9 | } 10 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatSort/MatSortHeaderRow.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatSortHeaderRow 3 | 4 | @using Microsoft.AspNetCore.Components 5 | 6 | 7 | 8 | @ChildContent 9 | 10 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatToastContainer/MatToastContainer.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatToastContainer 3 | 4 |
    5 | @foreach (var item in ToastsToShow) 6 | { 7 | 8 | } 9 |
    -------------------------------------------------------------------------------- /src/MatBlazor.TestApp.ServerApp/Pages/Counter.razor: -------------------------------------------------------------------------------- 1 | @page "/counter" 2 | 3 |

    Counter

    4 | 5 |

    Current count: @currentCount

    6 | 7 | 8 | 9 | @code { 10 | private int currentCount = 0; 11 | 12 | private void IncrementCount() 13 | { 14 | currentCount++; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatNavMenu/MatNavMenu.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatNavMenu 3 | 4 | 5 | 10 | -------------------------------------------------------------------------------- /src/MatBlazor.TestApp.ServerApp/Shared/MainLayout.razor: -------------------------------------------------------------------------------- 1 | @inherits LayoutComponentBase 2 | 3 | 6 | 7 |
    8 |
    9 | About 10 |
    11 | 12 |
    13 | @Body 14 |
    15 |
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matIconButton/matIconButton.js: -------------------------------------------------------------------------------- 1 | import {MDCRipple} from '@material/ripple'; 2 | import {MatButton} from '../matButton/matButton'; 3 | 4 | 5 | export class MatIconButton extends MDCRipple { 6 | constructor(ref) { 7 | super(ref); 8 | this.unbounded = true; 9 | } 10 | } 11 | 12 | 13 | export function init(ref) { 14 | var button = new MatIconButton(ref); 15 | } 16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Components/BaseDocComponent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Components; 6 | 7 | namespace MatBlazor.Demo.Components 8 | { 9 | public class BaseDocComponent : ComponentBase 10 | { 11 | [Parameter] 12 | public bool Secondary { get; set; } 13 | } 14 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatAutocompleteList/AutocompleteListSearchResult.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace MatBlazor.Components.MatAutocompleteList 4 | { 5 | internal class AutocompleteListSearchResult 6 | { 7 | public List> ListResult { get; set; } 8 | 9 | public string SearchText { get; set; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/wwwroot/matBlazorDemo.js: -------------------------------------------------------------------------------- 1 | var matBlazorDemo = { 2 | innerWidth: function() { 3 | return window.innerWidth; 4 | }, 5 | 6 | initAd: function(){ 7 | (window.adsbygoogle = window.adsbygoogle || []).push({}) 8 | }, 9 | 10 | 11 | 12 | 13 | test: function (a,b,c) { 14 | console.log(arguments); 15 | debugger; 16 | } 17 | }; -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatTable/TableRow.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseTableRow 3 | 4 | @using Microsoft.AspNetCore.Components 5 | 6 | 7 | 8 | @ChildContent 9 | 10 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matDrawer/matDrawer.js: -------------------------------------------------------------------------------- 1 | import {MDCDrawer} from '@material/drawer/index'; 2 | 3 | 4 | export function init(ref, component) { 5 | ref.matBlazorRef = new MDCDrawer(ref); 6 | ref.addEventListener('MDCDrawer:closed', () => { 7 | component.invokeMethodAsync('ClosedHandler'); 8 | }); 9 | } 10 | 11 | 12 | export function setOpened(ref, opened) { 13 | ref.matBlazorRef.open = opened; 14 | } 15 | -------------------------------------------------------------------------------- /src/MatBlazor/GlobalSuppressions.cs: -------------------------------------------------------------------------------- 1 | // This file is used by Code Analysis to maintain SuppressMessage 2 | // attributes that are applied to this project. 3 | // Project-level suppressions either have no target or are given 4 | // a specific target and scoped to a namespace, type, member, etc. 5 | 6 | [assembly: 7 | System.Diagnostics.CodeAnalysis.SuppressMessage("Encapsulation", "BL9993:Component parameter is marked public")] -------------------------------------------------------------------------------- /docs/_content/MatBlazor.Demo/matBlazorDemo.js: -------------------------------------------------------------------------------- 1 | var matBlazorDemo = { 2 | innerWidth: function() { 3 | return window.innerWidth; 4 | }, 5 | 6 | initAd: function(){ 7 | (window.adsbygoogle = window.adsbygoogle || []).push({}) 8 | }, 9 | 10 | 11 | 12 | 13 | test: function (a,b,c) { 14 | console.log(arguments); 15 | debugger; 16 | } 17 | }; -------------------------------------------------------------------------------- /src/MatBlazor.TestApp.ServerApp/App.razor: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

    Sorry, there's nothing at this address.

    8 |
    9 |
    10 |
    11 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatAppBar/MatAppBar.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @using Microsoft.AspNetCore.Components 3 | @inherits BaseMatAppBar 4 | 5 | 6 |
    7 | @ChildContent 8 |
    9 | 10 | @code 11 | { 12 | 13 | [Parameter] 14 | public RenderFragment ChildContent { get; set; } 15 | 16 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatAppBar/MatAppBarContainer.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @using Microsoft.AspNetCore.Components 3 | @inherits BaseMatDomComponent 4 | 5 |
    6 | @ChildContent 7 |
    8 | 9 | @code 10 | { 11 | 12 | [Parameter] 13 | public RenderFragment ChildContent { get; set; } 14 | 15 | } -------------------------------------------------------------------------------- /src/MatBlazor.TestApp.ServerApp/Data/WeatherForecast.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MatBlazor.TestApp.ServerApp.Data 4 | { 5 | public class WeatherForecast 6 | { 7 | public DateTime Date { get; set; } 8 | 9 | public int TemperatureC { get; set; } 10 | 11 | public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); 12 | 13 | public string Summary { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/static/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |

    Hello ECMAScript2015!

    11 |
    12 |
    13 |
    For more output, see your console :)
    14 | 15 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatList/MatListItemText.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @using Microsoft.AspNetCore.Components 3 | @inherits BaseMatDomComponent 4 | 5 | @ChildContent 6 | 7 | 8 | @code 9 | { 10 | 11 | [Parameter] 12 | public RenderFragment ChildContent { get; set; } 13 | 14 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatListGroup/MatListGroupSubHeader.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @using Microsoft.AspNetCore.Components 3 | @inherits BaseMatDomComponent 4 | 5 |

    @ChildContent

    6 | 7 | @code 8 | { 9 | 10 | [Parameter] 11 | public RenderFragment ChildContent { get; set; } 12 | 13 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatNavMenu/MatNavSubMenuList.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @using Microsoft.AspNetCore.Components 3 | @inherits BaseMatDomComponent 4 | 5 |
      6 | @ChildContent 7 |
    8 | 9 | @code 10 | { 11 | [Parameter] 12 | public RenderFragment ChildContent { get; set; } 13 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatSelect/CoreMatOption.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @typeparam TValue 3 | @inherits BaseCoreMatOption 4 | 5 | 6 |
  • 7 | 8 | @ChildContent 9 | 10 |
  • -------------------------------------------------------------------------------- /src/MatBlazor.TestApp.ServerApp/TestMetaComponents/MatMetaHelper.razor: -------------------------------------------------------------------------------- 1 | @if (FirstRender) 2 | { 3 | 4 | @ChildContent 5 | 6 | } 7 | 8 | @code 9 | { 10 | [Parameter] 11 | public RenderFragment ChildContent { get; set; } 12 | 13 | [Parameter] 14 | public Action Notify { get; set; } 15 | 16 | 17 | protected bool FirstRender { get; set; } = true; 18 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatDrawer/MatDrawer.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatDrawer 3 | 4 | 9 | 10 | @if (Mode == MatDrawerMode.Modal) 11 | { 12 |
    13 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatFileUpload/IMatFileUploadEntry.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Threading.Tasks; 4 | 5 | namespace MatBlazor 6 | { 7 | public interface IMatFileUploadEntry 8 | { 9 | DateTime LastModified { get; } 10 | 11 | string Name { get; } 12 | 13 | long Size { get; } 14 | 15 | string Type { get; } 16 | Task WriteToStreamAsync(Stream stream); 17 | } 18 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatListGroup/BaseMatListGroup.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Components; 2 | 3 | namespace MatBlazor 4 | { 5 | public class BaseMatListGroup : BaseMatDomComponent 6 | { 7 | [Parameter] 8 | public RenderFragment ChildContent { get; set; } 9 | 10 | public BaseMatListGroup() 11 | { 12 | ClassMapper 13 | .Add("mdc-list-group"); 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatAppBar/MatAppBarTitle.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @using Microsoft.AspNetCore.Components 3 | @inherits BaseMatDomComponent 4 | 5 | @ChildContent 6 | 7 | 8 | 9 | @code 10 | { 11 | 12 | [Parameter] 13 | public RenderFragment ChildContent { get; set; } 14 | 15 | } -------------------------------------------------------------------------------- /src/MatBlazor.TestApp.ServerApp/TestMetaComponents/MyColumn.razor: -------------------------------------------------------------------------------- 1 | @code 2 | { 3 | [Parameter] 4 | public RenderFragment ChildContent { get; set; } 5 | 6 | [Parameter] 7 | public Func Data { get; set; } 8 | 9 | [CascadingParameter] 10 | public MatMetaHelper MetaHelper { get; set; } 11 | 12 | 13 | protected override void OnInitialized() 14 | { 15 | MetaHelper.Notify(this); 16 | } 17 | } -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matTable/matDataTable.ts: -------------------------------------------------------------------------------- 1 | import {MatBlazorComponent} from "../utils/base"; 2 | import {MDCDataTable} from '@material/data-table'; 3 | 4 | class MatDataTable extends MatBlazorComponent { 5 | 6 | table: MDCDataTable; 7 | 8 | constructor(ref: HTMLElement) { 9 | super(ref); 10 | this.table = new MDCDataTable(ref); 11 | } 12 | } 13 | 14 | export function init(ref) { 15 | new MatDataTable(ref); 16 | } 17 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatAppBar/MatAppBarRow.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatDomComponent 3 | @using Microsoft.AspNetCore.Components 4 |
    5 | @ChildContent 6 |
    7 | 8 | @code 9 | { 10 | 11 | [Parameter] 12 | public RenderFragment ChildContent { get; set; } 13 | 14 | 15 | 16 | 17 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatList/MatListItemPrimaryText.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @using Microsoft.AspNetCore.Components 3 | @inherits BaseMatDomComponent 4 | 5 | 6 | @ChildContent 7 | 8 | 9 | @code 10 | { 11 | 12 | [Parameter] 13 | public RenderFragment ChildContent { get; set; } 14 | 15 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatAccordion/MatExpansionPanelDetails.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @using Microsoft.AspNetCore.Components 3 | @inherits BaseMatDomComponent 4 | 5 |
    6 | @ChildContent 7 |
    8 | 9 | @code 10 | { 11 | 12 | [Parameter] 13 | public RenderFragment ChildContent { get; set; } 14 | 15 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatList/MatListItemSecondaryText.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @using Microsoft.AspNetCore.Components 3 | @inherits BaseMatDomComponent 4 | 5 | 6 | @ChildContent 7 | 8 | 9 | @code 10 | { 11 | 12 | [Parameter] 13 | public RenderFragment ChildContent { get; set; } 14 | 15 | } -------------------------------------------------------------------------------- /src/MatBlazor/Helpers/ClassBuilderRuleClass.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public class ClassBuilderRuleClass : ClassBuilderRule 4 | { 5 | public string ClassName { get; set; } 6 | 7 | 8 | public ClassBuilderRuleClass(string className) 9 | { 10 | ClassName = className; 11 | } 12 | 13 | public override string GetClass(T data) 14 | { 15 | return ClassName; 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatDrawerContainer/BaseMatDrawerContainer.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Components; 2 | 3 | namespace MatBlazor 4 | { 5 | public class BaseMatDrawerContainer : BaseMatDomComponent 6 | { 7 | [Parameter] 8 | public RenderFragment ChildContent { get; set; } 9 | 10 | public BaseMatDrawerContainer() 11 | { 12 | ClassMapper 13 | .Add("mdc-drawer-app-content"); 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matDatePicker/matDatePicker.scss: -------------------------------------------------------------------------------- 1 | @import "flatpickr/dist/flatpickr.min"; 2 | 3 | 4 | .mat-date-picker { 5 | .mat-text-field-input { 6 | padding-right: 48px; 7 | } 8 | 9 | 10 | .mat-date-picker-icon-container { 11 | position: absolute; 12 | right: 3px; 13 | display: flex; 14 | flex-direction: row; 15 | align-items: center; 16 | justify-content: center; 17 | height: 100%; 18 | z-index: 1; 19 | 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatAccordion/MatExpansionPanelHeader.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @using Microsoft.AspNetCore.Components 3 | @inherits BaseMatDomComponent 4 | 5 |
    6 | @ChildContent 7 |
    8 | 9 | @code 10 | { 11 | 12 | [Parameter] 13 | public RenderFragment ChildContent { get; set; } 14 | 15 | 16 | 17 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/Doc_Imports.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    _Imports

    } else {
    _Imports
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatAccordion/MatExpansionPanelSubHeader.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @using Microsoft.AspNetCore.Components 3 | @inherits BaseMatDomComponent 4 | 5 |
    6 | @ChildContent 7 |
    8 | 9 | @code 10 | { 11 | 12 | [Parameter] 13 | public RenderFragment ChildContent { get; set; } 14 | 15 | 16 | 17 | } -------------------------------------------------------------------------------- /src/MatBlazor/Core/ForwardRef.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Components; 2 | 3 | namespace MatBlazor 4 | { 5 | public class ForwardRef 6 | { 7 | private ElementReference _current; 8 | 9 | public ElementReference Current 10 | { 11 | get => _current; 12 | set => Set(value); 13 | } 14 | 15 | 16 | public void Set(ElementReference value) 17 | { 18 | _current = value; 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /src/MatBlazor/Helpers/ClassBuilderRuleGet.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MatBlazor 4 | { 5 | public class ClassBuilderRuleGet : ClassBuilderRule 6 | { 7 | public Func Func { get; set; } 8 | 9 | public ClassBuilderRuleGet(Func func) 10 | { 11 | Func = func; 12 | } 13 | 14 | public override string GetClass(T data) 15 | { 16 | return Func(data); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatCombine.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatCombine

    } else {
    MatCombine
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatSwitchT.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatSwitchT

    } else {
    MatSwitchT
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor/Helpers/ClassMapper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | namespace MatBlazor 6 | { 7 | public class ClassMapper : BaseMapper 8 | { 9 | public string AsString() 10 | { 11 | return string.Join(" ", Items.Select(i => i()).Where(i => i != null)); 12 | } 13 | 14 | 15 | public override string ToString() 16 | { 17 | return AsString(); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocClassMapper.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    ClassMapper

    } else {
    ClassMapper
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatIconNames.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatIconNames

    } else {
    MatIconNames
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatToastType.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatToastType

    } else {
    MatToastType
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocStyleMapper.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    StyleMapper

    } else {
    StyleMapper
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatFAB/MatFAB.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatFAB 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocBindValueEvent.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    BindValueEvent

    } else {
    BindValueEvent
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocLinqExtensions.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    LinqExtensions

    } else {
    LinqExtensions
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBreakpoint.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBreakpoint

    } else {
    MatBreakpoint
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatDrawerMode.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatDrawerMode

    } else {
    MatDrawerMode
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatHiddenUtils.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatHiddenUtils

    } else {
    MatHiddenUtils
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatRippleColor.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatRippleColor

    } else {
    MatRippleColor
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatThemeColors.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatThemeColors

    } else {
    MatThemeColors
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatToastState.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatToastState

    } else {
    MatToastState
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocPageDirection.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    PageDirection

    } else {
    PageDirection
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matRadioButton/matRadioButton.js: -------------------------------------------------------------------------------- 1 | import {MDCFormField} from '@material/form-field'; 2 | import {MDCRadio} from '@material/radio'; 3 | 4 | 5 | export class MatRadioButton { 6 | 7 | constructor(ref, formFieldRef) { 8 | const radio = new MDCRadio(ref); 9 | const formField = new MDCFormField(formFieldRef); 10 | formField.input = radio; 11 | } 12 | } 13 | 14 | 15 | export function init(ref, formFieldRef) { 16 | new MatRadioButton(ref, formFieldRef); 17 | } 18 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatToastClasses.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatToastClasses

    } else {
    MatToastClasses
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Pages/DemoMatCardPage.razor: -------------------------------------------------------------------------------- 1 | @implements IDisposable 2 | @using MatBlazor.Demo.Models 3 | @inject UserAppModel UserAppModel 4 | @page "/Card" 5 | 6 | 7 | 8 | 9 | @code 10 | { 11 | 12 | protected override void OnInitialized() 13 | { 14 | base.OnInitialized(); 15 | this.UserAppModel.Title = "MatCard"; 16 | } 17 | 18 | 19 | public void Dispose() 20 | { 21 | this.UserAppModel.Title = null; 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatDatePicker/MatDatePickerJsHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Linq; 3 | using System.Threading.Tasks; 4 | using Microsoft.JSInterop; 5 | 6 | namespace MatBlazor 7 | { 8 | public class MatDatePickerJsHelper 9 | { 10 | [JSInvokable] 11 | public void MatDatePickerOnChangeHandler(DateTime?[] value) 12 | { 13 | OnChangeAction?.Invoke(value); 14 | } 15 | 16 | public Action OnChangeAction; 17 | } 18 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatSlider/MatSliderJsHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Microsoft.JSInterop; 3 | 4 | namespace MatBlazor 5 | { 6 | public class MatSliderJsHelper 7 | { 8 | public MatSliderJsHelper() 9 | { 10 | } 11 | 12 | public event EventHandler OnChangeEvent; 13 | 14 | [JSInvokable] 15 | public void OnChangeHandler(decimal value) 16 | { 17 | OnChangeEvent?.Invoke(this, value); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatTextField/MatTextField.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | /// 4 | /// Material Design Text Field for Blazor. Text fields allow users to input, edit, and select text. 5 | /// 6 | /// string, sbyte, byte, short, ushort, int, uint, long, ulong, char, float, double, decimal, decimal?, DateTime, DateTime?, bool, bool? 7 | public class MatTextField : MatInputTextComponent 8 | { 9 | } 10 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocIBaseMatComponent.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    IBaseMatComponent

    } else {
    IBaseMatComponent
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocIMatVirtualScroll.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    IMatVirtualScroll

    } else {
    IMatVirtualScroll
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocIdGeneratorHelper.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    IdGeneratorHelper

    } else {
    IdGeneratorHelper
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatIconCategories.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatIconCategories

    } else {
    MatIconCategories
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatSelectJsHelper.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatSelectJsHelper

    } else {
    MatSelectJsHelper
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatSliderJsHelper.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatSliderJsHelper

    } else {
    MatSliderJsHelper
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatSortDirection.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatSortDirection

    } else {
    MatSortDirection
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatToastExtension.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatToastExtension

    } else {
    MatToastExtension
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatToastPosition.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatToastPosition

    } else {
    MatToastPosition
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatTypeConverter.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatTypeConverter

    } else {
    MatTypeConverter
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.TestApp.ServerApp/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using System.Net.Http 2 | @using Microsoft.AspNetCore.Authorization 3 | @using Microsoft.AspNetCore.Components.Authorization 4 | @using Microsoft.AspNetCore.Components.Forms 5 | @using Microsoft.AspNetCore.Components.Routing 6 | @using Microsoft.AspNetCore.Components.Web 7 | @using Microsoft.JSInterop 8 | @using MatBlazor.TestApp.ServerApp 9 | @using MatBlazor.TestApp.ServerApp.Shared 10 | @using MatBlazor 11 | @using MatBlazor.TestApp.ServerApp.TestMetaComponents -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matProgressBar/matProgressBar.js: -------------------------------------------------------------------------------- 1 | import {MDCLinearProgress} from '@material/linear-progress/component'; 2 | 3 | 4 | export function init(ref) { 5 | ref.matBlazorRef = new MDCLinearProgress(ref); 6 | } 7 | 8 | export function setProgress(ref, value) { 9 | // console.log("setProgress", value); 10 | ref.matBlazorRef.progress = value; 11 | } 12 | 13 | export function setBuffer(ref, value) { 14 | // console.log("setBuffer", value); 15 | ref.matBlazorRef.buffer = value; 16 | } 17 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo.App/Program.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Blazor.Hosting; 2 | 3 | namespace MatBlazor.Demo.App 4 | { 5 | public class Program 6 | { 7 | public static void Main(string[] args) 8 | { 9 | CreateHostBuilder(args).Build().Run(); 10 | } 11 | 12 | public static IWebAssemblyHostBuilder CreateHostBuilder(string[] args) => 13 | BlazorWebAssemblyHost.CreateDefaultBuilder() 14 | .UseBlazorStartup(); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTInt.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTInt

    } else {
    MatBlazorSwitchTInt
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatHiddenDirection.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatHiddenDirection

    } else {
    MatHiddenDirection
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatPaginatorAction.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatPaginatorAction

    } else {
    MatPaginatorAction
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatTooltipPosition.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatTooltipPosition

    } else {
    MatTooltipPosition
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatAppBar/MatAppBarContent.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @using Microsoft.AspNetCore.Components 3 | @inherits BaseMatDomComponent 4 | 5 |
    6 | @ChildContent 7 |
    8 | 9 | @code 10 | { 11 | 12 | [Parameter] 13 | public RenderFragment ChildContent { get; set; } 14 | 15 | 16 | 17 | 18 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatSelect/MatSelectJsHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.JSInterop; 6 | 7 | namespace MatBlazor 8 | { 9 | public class MatSelectJsHelper 10 | { 11 | public event EventHandler SetValueEvent; 12 | 13 | [JSInvokable] 14 | public void SetValue(string value) 15 | { 16 | SetValueEvent?.Invoke(this, value); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTBool.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTBool

    } else {
    MatBlazorSwitchTBool
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTByte.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTByte

    } else {
    MatBlazorSwitchTByte
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTChar.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTChar

    } else {
    MatBlazorSwitchTChar
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTLong.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTLong

    } else {
    MatBlazorSwitchTLong
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTUInt.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTUInt

    } else {
    MatBlazorSwitchTUInt
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatDrawerContent/BaseMatDrawerContent.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Components; 2 | 3 | namespace MatBlazor 4 | { 5 | public class BaseMatDrawerContent : BaseMatDomComponent 6 | { 7 | [Parameter] 8 | public RenderFragment ChildContent { get; set; } 9 | 10 | public BaseMatDrawerContent() 11 | { 12 | ClassMapper 13 | .Add("mdc-drawer-app-content") 14 | .Add("mat-drawer-app-content"); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatHidden/MatHidden.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatHidden 3 | 4 | @if (Hidden.HasValue) 5 | { 6 | if (Hidden.Value) 7 | { 8 | if (ElseContent != null) 9 | { 10 | @ElseContent 11 | } 12 | } 13 | else 14 | { 15 | if (ChildContent != null) 16 | { 17 | @ChildContent 18 | } 19 | } 20 | } 21 | else 22 | { 23 | if (InitContent != null) 24 | { 25 | @InitContent 26 | } 27 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatAppBarSectionAlign.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatAppBarSectionAlign

    } else {
    MatAppBarSectionAlign
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTDouble.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTDouble

    } else {
    MatBlazorSwitchTDouble
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTFloat.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTFloat

    } else {
    MatBlazorSwitchTFloat
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTSByte.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTSByte

    } else {
    MatBlazorSwitchTSByte
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTShort.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTShort

    } else {
    MatBlazorSwitchTShort
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTString.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTString

    } else {
    MatBlazorSwitchTString
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTULong.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTULong

    } else {
    MatBlazorSwitchTULong
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTUShort.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTUShort

    } else {
    MatBlazorSwitchTUShort
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatDatePickerJsHelper.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatDatePickerJsHelper

    } else {
    MatDatePickerJsHelper
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatDatePickerPosition.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatDatePickerPosition

    } else {
    MatDatePickerPosition
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatHttpClientExtension.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatHttpClientExtension

    } else {
    MatHttpClientExtension
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/_Imports.razor: -------------------------------------------------------------------------------- 1 | @using System.Net.Http 2 | @using Microsoft.AspNetCore.Components.Forms 3 | @using Microsoft.AspNetCore.Components.Routing 4 | @using Microsoft.JSInterop 5 | @using Microsoft.AspNetCore.Components.Web 6 | @using MatBlazor.Demo.BlazorFiddle 7 | @using MatBlazor.Demo.Components 8 | @using MatBlazor.Demo.Demo 9 | @using MatBlazor.Demo.DemoContainer 10 | @using MatBlazor.Demo.Doc 11 | @using MatBlazor 12 | @using MatBlazor.Demo.Shared 13 | @using MatBlazor.Demo.Frames 14 | @using MatBlazor.Demo.Pages -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatTreeView/MatTreeView.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @using Microsoft.AspNetCore.Components.Web 3 | @*@implements IDisposable*@ 4 | @typeparam TNode 5 | 6 | 7 | 8 |
      9 | @foreach (TNode rootNode in this.RootNodes) 10 | { 11 | 13 | } 14 |
    15 |
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocComponentBaseExtensions.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    ComponentBaseExtensions

    } else {
    ComponentBaseExtensions
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTBoolNull.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTBoolNull

    } else {
    MatBlazorSwitchTBoolNull
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTByteNull.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTByteNull

    } else {
    MatBlazorSwitchTByteNull
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTCharNull.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTCharNull

    } else {
    MatBlazorSwitchTCharNull
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTDateTime.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTDateTime

    } else {
    MatBlazorSwitchTDateTime
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTDecimal.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTDecimal

    } else {
    MatBlazorSwitchTDecimal
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTIntNull.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTIntNull

    } else {
    MatBlazorSwitchTIntNull
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTLongNull.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTLongNull

    } else {
    MatBlazorSwitchTLongNull
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTUIntNull.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTUIntNull

    } else {
    MatBlazorSwitchTUIntNull
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatVirtualScrollJsHelper.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatVirtualScrollJsHelper

    } else {
    MatVirtualScrollJsHelper
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTFloatNull.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTFloatNull

    } else {
    MatBlazorSwitchTFloatNull
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTSByteNull.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTSByteNull

    } else {
    MatBlazorSwitchTSByteNull
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTShortNull.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTShortNull

    } else {
    MatBlazorSwitchTShortNull
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTULongNull.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTULongNull

    } else {
    MatBlazorSwitchTULongNull
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatNumericUpDownFieldType.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatNumericUpDownFieldType

    } else {
    MatNumericUpDownFieldType
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatToatsPositionConvertor.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatToatsPositionConvertor

    } else {
    MatToatsPositionConvertor
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTDecimalNull.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTDecimalNull

    } else {
    MatBlazorSwitchTDecimalNull
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTDoubleNull.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTDoubleNull

    } else {
    MatBlazorSwitchTDoubleNull
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTUShortNull.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTUShortNull

    } else {
    MatBlazorSwitchTUShortNull
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatDataTable/MatDataTableRow.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatDomComponent 3 | 4 | 5 | @ChildContent 6 | 7 | 8 | 9 | @code 10 | { 11 | [Parameter] 12 | public RenderFragment ChildContent { get; set; } 13 | 14 | protected override void OnInitialized() 15 | { 16 | base.OnInitialized(); 17 | ClassMapper.Add("mdc-data-table__row"); 18 | } 19 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocIMatVirtualScrollHelperTarget.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    IMatVirtualScrollHelperTarget

    } else {
    IMatVirtualScrollHelperTarget
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTDateTimeNull.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTDateTimeNull

    } else {
    MatBlazorSwitchTDateTimeNull
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 |
    NameTypeDescription
    16 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatSelect/BaseMatSelectItem.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using Microsoft.AspNetCore.Components; 3 | 4 | namespace MatBlazor 5 | { 6 | public class BaseMatSelectItem : CoreMatSelectValue 7 | { 8 | protected override int GetKeyFromValue(TValue value) 9 | { 10 | return Items.IndexOf(value); 11 | } 12 | 13 | protected override TValue GetValueFromKey(int key) 14 | { 15 | return Items[key]; 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatDataTable/MatDataTableContent.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatDomComponent 3 | 4 | 5 | @ChildContent 6 | 7 | 8 | 9 | @code 10 | { 11 | [Parameter] 12 | public RenderFragment ChildContent { get; set; } 13 | 14 | protected override void OnInitialized() 15 | { 16 | base.OnInitialized(); 17 | ClassMapper.Add("mdc-data-table__content"); 18 | } 19 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatTab/MatTabGroup.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatTabGroup 3 | 4 |
    5 | 6 | 7 | @ChildContent 8 | 9 | 10 |
    11 | @Active?.Tab.ChildContent 12 |
    13 |
    -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matSnackbar/matSnackbar.js: -------------------------------------------------------------------------------- 1 | import {MDCSnackbar} from '@material/snackbar/component'; 2 | 3 | 4 | export function init(ref, component) { 5 | ref.matBlazorRef = new MDCSnackbar(ref); 6 | ref.matBlazorRef.timeoutMs = 10000 ; 7 | 8 | ref.addEventListener('MDCSnackbar:closed', () => { 9 | component.invokeMethodAsync('MatSnackbarClosedHandler'); 10 | }); 11 | } 12 | 13 | export function setIsOpen(ref, v) { 14 | if (v) { 15 | ref.matBlazorRef.open(); 16 | } else { 17 | ref.matBlazorRef.close(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatChipSet/BaseMatChipSet.cs: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | using Microsoft.AspNetCore.Components; 3 | 4 | namespace MatBlazor 5 | { 6 | public class BaseMatChipSet : BaseMatDomComponent 7 | { 8 | [Parameter] 9 | public RenderFragment ChildContent { get; set; } 10 | 11 | protected async override Task OnFirstAfterRenderAsync() 12 | { 13 | await base.OnFirstAfterRenderAsync(); 14 | await JsInvokeAsync("matBlazor.matChipSet.init", Ref); 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatNavMenu/IMatNavSubMenuToggler.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Threading.Tasks; 3 | 4 | namespace MatBlazor 5 | { 6 | /// 7 | /// Defines interface for a container component that 8 | /// can toggle the expansion state of its sub menus. 9 | /// 10 | public interface IMatNavSubMenuToggler 11 | { 12 | event EventHandler AllSubMenusToggled; 13 | 14 | Task ToggleSubMenuAsync(BaseMatNavSubMenu subMenu); 15 | 16 | void ToggleAllSubMenus(bool expanded); 17 | } 18 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatSort/MatSortHeader.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatSortHeader 3 | 4 | @using Microsoft.AspNetCore.Components 5 | 6 | 7 | 8 |
    9 |
    10 | @ChildContent 11 |
    12 | 13 | 14 |
    15 | -------------------------------------------------------------------------------- /src/MatBlazor/Helpers/StyleMapper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Security.Cryptography; 5 | using System.Threading.Tasks; 6 | 7 | namespace MatBlazor 8 | { 9 | public class StyleMapper : BaseMapper 10 | { 11 | public string AsString() 12 | { 13 | return string.Join("; ", Items.Select(i => i()).Where(i => i != null)); 14 | } 15 | 16 | 17 | public override string ToString() 18 | { 19 | return AsString(); 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatChip/MatChip.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatChip 3 | 4 |
    5 | @if (LeadingIcon != null) 6 | { 7 | @LeadingIcon 8 | } 9 |
    @Label
    10 | @if (TrailingIcon != null) 11 | { 12 | @TrailingIcon 13 | } 14 |
    -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatDataTable/MatDataTableHeader.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatDomComponent 3 | 4 | 5 | 6 | 7 | @ChildContent 8 | 9 | 10 | 11 | @code 12 | { 13 | [Parameter] 14 | public RenderFragment ChildContent { get; set; } 15 | 16 | protected override void OnInitialized() 17 | { 18 | base.OnInitialized(); 19 | ClassMapper.Add("mdc-data-table__header-row"); 20 | } 21 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocForwardRef.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    ForwardRef

    } else {
    ForwardRef
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
    NameTypeDescription
    CurrentElementReference
    21 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matVirtualScroll/matVirtualScroll.scss: -------------------------------------------------------------------------------- 1 | .mat-virtual-scroll-helper 2 | { 3 | position: relative; 4 | } 5 | 6 | 7 | .mat-virtual-scroll, .mat-virtual-scroll-helper { 8 | overflow-y: auto; 9 | } 10 | 11 | .mat-virtual-scroll-content { 12 | position: relative; 13 | } 14 | 15 | .mat-virtual-scroll-item { 16 | //position: absolute; 17 | overflow: hidden; 18 | } 19 | 20 | 21 | .mat-virtual-scroll-spacer 22 | { 23 | position: absolute; 24 | top: 0px; 25 | left: 0px; 26 | height: 1px; 27 | width: 1px; 28 | transform-origin: 0 0; 29 | } 30 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatTabBar/MatTabBar.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatTabBar 3 | 4 |
    5 |
    6 |
    7 |
    8 | 9 | @ChildContent 10 | 11 |
    12 |
    13 |
    14 |
    -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatDialog/MatDialogTitle.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @using Microsoft.AspNetCore.Components 3 | @inherits BaseMatDomComponent 4 |

    5 | @ChildContent 6 |

    7 | 8 | @code 9 | { 10 | 11 | [Parameter] 12 | public RenderFragment ChildContent { get; set; } 13 | 14 | protected async override Task OnInitializedAsync() 15 | { 16 | await base.OnInitializedAsync(); 17 | ClassMapper.Add("mdc-dialog__title"); 18 | } 19 | 20 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatIcon/BaseMatIcon.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Components; 2 | 3 | namespace MatBlazor 4 | { 5 | /// 6 | /// Makes it easier to use vector-based icons in your app. 7 | /// 8 | public class BaseMatIcon : BaseMatDomComponent 9 | { 10 | [Parameter] 11 | public string Icon { get; set; } 12 | 13 | 14 | [Parameter] 15 | public RenderFragment ChildContent { get; set; } 16 | 17 | public BaseMatIcon() 18 | { 19 | ClassMapper.Add("material-icons"); 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatTab/BaseMatTab.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Components; 2 | 3 | namespace MatBlazor 4 | { 5 | public class BaseMatTab : BaseMatDomComponent 6 | { 7 | [Parameter] 8 | public RenderFragment ChildContent { get; set; } 9 | 10 | [Parameter] 11 | public RenderFragment LabelContent { get; set; } 12 | 13 | [Parameter] 14 | public string Label { get; set; } 15 | 16 | 17 | public BaseMatTab() 18 | { 19 | LabelContent = builder => { builder.AddContent(0, Label); }; 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatListJsOptions.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatListJsOptions

    } else {
    MatListJsOptions
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
    NameTypeDescription
    SingleSelectionBoolean
    21 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatTooltipJSOptions.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatTooltipJSOptions

    } else {
    MatTooltipJSOptions
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
    NameTypeDescription
    PositionString
    21 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatList/MatListItem.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatListItem 3 | 4 | @if (Href == null || Disabled) 5 | { 6 |
  • 7 | @ChildContent 8 |
  • 9 | } 10 | else 11 | { 12 | 13 | @ChildContent 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/Base/BaseMatInputElementComponent.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using Microsoft.AspNetCore.Components; 3 | 4 | namespace MatBlazor 5 | { 6 | public abstract class BaseMatInputElementComponent : BaseMatInputComponent 7 | { 8 | public ElementReference InputRef { get; protected set; } 9 | 10 | [Parameter] 11 | public IDictionary InputAttributes { get; set; } 12 | 13 | protected IDictionary GetInputAttributes() 14 | { 15 | return InputAttributes; 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocClassBuilder.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    ClassBuilder

    } else {
    ClassBuilder
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
    NameTypeDescription
    TGeneric argument
    21 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatVirtualScrollHelper.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatVirtualScrollHelper

    } else {
    MatVirtualScrollHelper
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
    NameTypeDescription
    EnabledBoolean
    21 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matHidden/matHidden.js: -------------------------------------------------------------------------------- 1 | import {windowInnerWidth} from '../utils/utils'; 2 | 3 | 4 | export var subscriptions = {}; 5 | 6 | 7 | window.addEventListener('resize', () => { 8 | for (var s in subscriptions) { 9 | if (!subscriptions.hasOwnProperty(s)) { 10 | continue; 11 | } 12 | var cmp = subscriptions[s]; 13 | cmp.invokeMethodAsync('MatHiddenUpdateHandler', windowInnerWidth()); 14 | } 15 | }); 16 | 17 | 18 | export function init(id, cmp) { 19 | subscriptions[id] = cmp; 20 | } 21 | 22 | 23 | export function destroy(id) { 24 | delete subscriptions[id]; 25 | } 26 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatCard/MatCardActions.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatDomComponent 3 | 4 |
    5 | @ChildContent 6 |
    7 | 8 | @code 9 | { 10 | 11 | [Parameter] 12 | public RenderFragment ChildContent { get; set; } 13 | 14 | protected override async Task OnInitializedAsync() 15 | { 16 | await base.OnInitializedAsync(); 17 | ClassMapper.Add("mdc-card__actions"); 18 | } 19 | 20 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatPaginator/MatPageSizeOption.cs: -------------------------------------------------------------------------------- 1 | namespace MatBlazor 2 | { 3 | public class MatPageSizeOption 4 | { 5 | public int Value { get; set; } 6 | public string Text { get; set; } 7 | 8 | public override string ToString() 9 | { 10 | return Text; 11 | } 12 | 13 | public MatPageSizeOption(int value, string text) 14 | { 15 | Value = value; 16 | Text = text; 17 | } 18 | 19 | public MatPageSizeOption(int value) : this(value, value.ToString()) 20 | { 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo.App/Startup.cs: -------------------------------------------------------------------------------- 1 | using MatBlazor.Demo.Models; 2 | using Microsoft.AspNetCore.Components.Builder; 3 | using Microsoft.Extensions.DependencyInjection; 4 | 5 | namespace MatBlazor.Demo.App 6 | { 7 | public class Startup 8 | { 9 | public void ConfigureServices(IServiceCollection services) 10 | { 11 | services.AddSingleton(); 12 | services.AddScoped(); 13 | } 14 | 15 | public void Configure(IComponentsApplicationBuilder app) 16 | { 17 | app.AddComponent("app"); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocClassBuilderRule.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    ClassBuilderRule

    } else {
    ClassBuilderRule
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
    NameTypeDescription
    TGeneric argument
    21 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchT.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchT

    } else {
    MatBlazorSwitchT
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
    NameTypeDescription
    TGeneric argument
    21 | -------------------------------------------------------------------------------- /src/MatBlazor.DevUtils/OverflowExp.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using NUnit.Framework; 3 | 4 | namespace MatBlazor.DevUtils 5 | { 6 | [TestFixture] 7 | public class OverflowExp 8 | { 9 | 10 | [Test] 11 | public void Test1() 12 | { 13 | checked 14 | { 15 | float v = float.MaxValue; 16 | Console.WriteLine(v); 17 | Console.WriteLine((float)(v + 10000000000000)); 18 | Console.WriteLine(((float)(v + 10000000000000000000)) == v); 19 | 20 | } 21 | } 22 | 23 | } 24 | } -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matSelect/matSelect.scss: -------------------------------------------------------------------------------- 1 | @import "@material/list/mdc-list"; 2 | @import "@material/menu-surface/mdc-menu-surface"; 3 | @import "@material/menu/mdc-menu"; 4 | @import "@material/select/mdc-select"; 5 | 6 | .mat-select { 7 | select { 8 | /* for Firefox */ 9 | -moz-appearance: none; 10 | /* for Chrome */ 11 | -webkit-appearance: none; 12 | } 13 | 14 | /* For IE10 */ 15 | select::-ms-expand { 16 | display: none; 17 | } 18 | 19 | } 20 | 21 | .mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-floating-label { 22 | color: var(--mdc-theme-primary); 23 | } 24 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatDialog/MatDialog.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatDialog 3 | 4 |
    14 |
    15 |
    16 | @ChildContent 17 |
    18 |
    19 |
    20 |
    -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatDialog/MatDialogActions.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @using Microsoft.AspNetCore.Components 3 | @inherits BaseMatDomComponent 4 | 5 |
    6 | @ChildContent 7 |
    8 | 9 | 10 | @code 11 | { 12 | 13 | [Parameter] 14 | public RenderFragment ChildContent { get; set; } 15 | 16 | protected async override Task OnInitializedAsync() 17 | { 18 | await base.OnInitializedAsync(); 19 | ClassMapper.Add("mdc-dialog__actions"); 20 | } 21 | 22 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatDialog/MatDialogContent.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @using Microsoft.AspNetCore.Components 3 | @inherits BaseMatDomComponent 4 | 5 | 6 |
    7 | @ChildContent 8 |
    9 | 10 | 11 | @code 12 | { 13 | 14 | [Parameter] 15 | public RenderFragment ChildContent { get; set; } 16 | 17 | protected async override Task OnInitializedAsync() 18 | { 19 | await base.OnInitializedAsync(); 20 | ClassMapper.Add("mdc-dialog__content"); 21 | } 22 | 23 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatSnackbar/MatSnackbarActions.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @using Microsoft.AspNetCore.Components 3 | @inherits BaseMatDomComponent 4 | 5 |
    6 | @ChildContent 7 |
    8 | 9 | 10 | @code 11 | { 12 | 13 | [Parameter] 14 | public RenderFragment ChildContent { get; set; } 15 | 16 | protected async override Task OnInitializedAsync() 17 | { 18 | await base.OnInitializedAsync(); 19 | ClassMapper.Add("mdc-snackbar__actions"); 20 | } 21 | 22 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatRadioButton/MatRadioGroupInternal.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @typeparam TValue 3 | @inherits BaseMatRadioGroupInternal 4 | 5 | 6 | 7 | @if (Items != null) 8 | { 9 | foreach (var item in Items) 10 | { 11 | if (ItemTemplate != null) 12 | { 13 | @ItemTemplate(item) 14 | } 15 | else 16 | { 17 | @item 18 | } 19 | } 20 | } 21 | 22 | @ChildContent 23 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatAnchorUtils.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatAnchorUtils

    } else {
    MatAnchorUtils
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
    NameTypeDescription
    ChildContentRenderFragmentChild content of MatAnchorUtils
    21 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatDataTable/MatDataTableColumn.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @typeparam TItem 3 | @inherits BaseMatDataTableColumn 4 | 5 | @* 6 | 7 | @if (Mode == MatDataTableRenderMode.Header) 8 | { 9 | 10 | @if (HeaderTemplate != null) 11 | { 12 | @HeaderTemplate 13 | } 14 | else 15 | { 16 | @Header 17 | } 18 | 19 | } 20 | else if (Mode == MatDataTableRenderMode.Row) 21 | { 22 | @ChildContent 23 | } 24 | *@ 25 | 26 | @code 27 | { 28 | 29 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo.ClientApp/App.razor: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |

    Page not found

    10 |

    Sorry, but there's nothing here!

    11 |
    12 |
    13 |
    14 | 15 | 16 | @code 17 | { 18 | 19 | MatTheme theme = new MatTheme() 20 | { 21 | }; 22 | 23 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo.ServerApp/MatBlazor.Demo.ServerApp.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netcoreapp3.1 5 | 8.0 6 | true 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocIMatNavSubMenuToggler.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    IMatNavSubMenuToggler

    } else {
    IMatNavSubMenuToggler
    } 8 | 9 |

    Defines interface for a container component that
    can toggle the expansion state of its sub menus.

    10 | 11 |
    12 | 13 | 14 | 15 | 16 | 17 |
    NameTypeDescription
    18 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatBlazorSwitchTCommon.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatBlazorSwitchTCommon

    } else {
    MatBlazorSwitchTCommon
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
    NameTypeDescription
    TGeneric argument
    21 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatContentWrapper.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatContentWrapper

    } else {
    MatContentWrapper
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
    NameTypeDescription
    ChildContentRenderFragmentChild content of MatContentWrapper
    21 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatFileUpload/MatFileUpload.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatFileUpload 3 | 4 |
    5 | 6 |
    7 | @Label 8 | @MatIconNames.Attach_file 9 |
    10 | @if (ProgressTotal != 0) 11 | { 12 | 13 | } 14 |
    -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/utils/base.ts: -------------------------------------------------------------------------------- 1 | export var matBlazorInstance = '$matBlazorInstance'; 2 | 3 | export function getMatBlazorInstance(element : HTMLElement): T { 4 | if (element) { 5 | return element[matBlazorInstance]; 6 | } 7 | } 8 | 9 | 10 | export function setMatBlazorInstance(element : HTMLElement, instance: T): T { 11 | if (element) { 12 | element[matBlazorInstance] = instance; 13 | return instance; 14 | } 15 | } 16 | 17 | 18 | export class MatBlazorComponent { 19 | constructor(public ref : HTMLElement) { 20 | setMatBlazorInstance(ref, this); 21 | } 22 | } 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Shared/SurveyPrompt.razor: -------------------------------------------------------------------------------- 1 | @using Microsoft.AspNetCore.Components 2 | 12 | 13 | @code { 14 | 15 | [Parameter] 16 | public string Title { get; set; } // Demonstrates how a parent component can supply parameters 17 | 18 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Frames/MatDrawerModalPageFrame.razor: -------------------------------------------------------------------------------- 1 | @page "/MatDrawerModalFrame" 2 | 3 | 4 | 5 | Drawer Content 6 | 7 | 8 |
    9 | Open Menu 10 |
    11 |

    Page Content

    12 |
    13 |
    14 | 15 | 16 | @code 17 | { 18 | bool Opened = true; 19 | 20 | void ButtonClicked() 21 | { 22 | Opened = !Opened; 23 | } 24 | 25 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatAppBar/MatAppBarNavigationIcon.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @using Microsoft.AspNetCore.Components 3 | @inherits BaseMatDomComponent 4 | @* mdc-top-app-bar__navigation-icon *@ 5 | menu 6 | 7 | @code 8 | { 9 | 10 | [Parameter] 11 | public EventCallback OnClick { get; set; } 12 | 13 | 14 | 15 | 16 | void OnClickHandler(MouseEventArgs e) 17 | { 18 | OnClick.InvokeAsync(e); 19 | } 20 | 21 | } -------------------------------------------------------------------------------- /src/MatBlazor/Helpers/MatHttpClientExtension.cs: -------------------------------------------------------------------------------- 1 | using System.Net.Http; 2 | using System.Text.Json; 3 | using System.Threading.Tasks; 4 | 5 | namespace MatBlazor 6 | { 7 | public static class MatHttpClientExtension 8 | { 9 | public static async Task GetJsonAsync(this HttpClient httpClient, string requestUri) 10 | { 11 | var stringContent = await httpClient.GetStringAsync(requestUri); 12 | 13 | return JsonSerializer.Deserialize(stringContent, new JsonSerializerOptions() 14 | { 15 | PropertyNamingPolicy = JsonNamingPolicy.CamelCase 16 | }); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatPageSizeOption.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatPageSizeOption

    } else {
    MatPageSizeOption
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
    NameTypeDescription
    TextString
    ValueInt32
    26 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocPageSizeStructure.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    PageSizeStructure

    } else {
    PageSizeStructure
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
    NameTypeDescription
    TextString
    ValueInt32
    26 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matSlider/matSlider.js: -------------------------------------------------------------------------------- 1 | import {MDCSlider} from '@material/slider'; 2 | 3 | export class MatSlider { 4 | 5 | constructor(ref, jsHelper) { 6 | this.slider = new MDCSlider(ref); 7 | 8 | this.slider.listen('MDCSlider:change', () => { 9 | // debugger; 10 | try { 11 | jsHelper.invokeMethodAsync('OnChangeHandler', this.slider.value) 12 | .then(r => { 13 | // console.log(r); 14 | }); 15 | } catch (e) { 16 | debugger; 17 | throw e; 18 | } 19 | }); 20 | } 21 | } 22 | 23 | 24 | export function init(ref, jsHelper) { 25 | new MatSlider(ref, jsHelper); 26 | } 27 | -------------------------------------------------------------------------------- /src/MatBlazor/Helpers/ClassBuilderRuleIf.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MatBlazor 4 | { 5 | public class ClassBuilderRuleIf : ClassBuilderRule 6 | { 7 | public string ClassName { get; set; } 8 | public Func Func { get; set; } 9 | 10 | public ClassBuilderRuleIf(string className, Func func) 11 | { 12 | ClassName = className; 13 | Func = func; 14 | } 15 | 16 | public override string GetClass(T data) 17 | { 18 | if (Func(data)) 19 | { 20 | return ClassName; 21 | } 22 | 23 | return null; 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatSortChangedEvent.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatSortChangedEvent

    } else {
    MatSortChangedEvent
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
    NameTypeDescription
    DirectionMatSortDirection
    SortIdString
    26 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatToaster.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatToaster

    } else {
    MatToaster
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
    NameTypeDescription
    ConfigurationMatToastConfiguration
    ToastsIList<MatToast>
    26 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatVirtualScrollView.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatVirtualScrollView

    } else {
    MatVirtualScrollView
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
    NameTypeDescription
    ClientHeightInt32
    ScrollTopInt32
    26 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatAnchor/MatAnchorContainer.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | 3 | @inject NavigationManager NavigationManager 4 | 5 | 6 | @ChildContent 7 | 8 | @code { 9 | 10 | [Parameter(CaptureUnmatchedValues = true)] 11 | public Dictionary Attributes { get; set; } 12 | 13 | [Parameter] 14 | public RenderFragment ChildContent { get; set; } 15 | 16 | [Parameter] 17 | public string Anchor { get; set; } 18 | 19 | string GetHref() 20 | { 21 | return NavigationManager.ToAbsoluteUri(NavigationManager.Uri).GetLeftPart(UriPartial.Path) + "#"+ Anchor; 22 | } 23 | 24 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatIconButton/MatIconButton.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatIconButton 3 | 4 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatSelect/BaseMatSelect.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.AspNetCore.Components; 2 | 3 | namespace MatBlazor 4 | { 5 | public class BaseMatSelect : CoreMatSelect 6 | { 7 | [Parameter] 8 | public RenderFragment ChildContent { get; set; } 9 | 10 | protected override RenderFragment GetChildContent() 11 | { 12 | return ChildContent; 13 | } 14 | 15 | protected override TValue GetKeyFromValue(TValue value) 16 | { 17 | return value; 18 | } 19 | 20 | protected override TValue GetValueFromKey(TValue key) 21 | { 22 | return key; 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatCard/MatCardContent.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatDomComponent 3 | 4 |
    5 | @ChildContent 6 |
    7 | 8 | @code 9 | { 10 | 11 | [Parameter] 12 | public RenderFragment ChildContent { get; set; } 13 | 14 | [Parameter] 15 | public bool Unbounded { get; set; } 16 | 17 | 18 | protected override async Task OnInitializedAsync() 19 | { 20 | await base.OnInitializedAsync(); 21 | ClassMapper.Add("mdc-card__primary-action"); 22 | } 23 | 24 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatSlideToggle/MatSlideToggle.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @typeparam TValue 3 | @inherits BaseMatSlideToggle 4 | 5 |
    6 |
    7 |
    8 |
    9 | 10 |
    11 |
    12 |
    13 | @if (Label != null) 14 | { 15 | 16 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocLoadChildNodesDelegate.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    LoadChildNodesDelegate

    } else {
    LoadChildNodesDelegate
    } 8 | 9 |

    Callback used to Lazy Load child nodes

    10 | 11 |
    12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
    NameTypeDescription
    TNodeGeneric argumentThe node type
    23 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatSnackbar/MatSnackbarContent.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @using Microsoft.AspNetCore.Components 3 | @inherits BaseMatDomComponent 4 | 5 | 6 |
    13 | @ChildContent 14 |
    15 | 16 | 17 | @code 18 | { 19 | 20 | [Parameter] 21 | public RenderFragment ChildContent { get; set; } 22 | 23 | protected async override Task OnInitializedAsync() 24 | { 25 | await base.OnInitializedAsync(); 26 | ClassMapper.Add("mdc-snackbar__label"); 27 | } 28 | 29 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatVirtualScroll/MatVirtualScrollJsHelper.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.JSInterop; 2 | 3 | namespace MatBlazor 4 | { 5 | public class MatVirtualScrollJsHelper 6 | { 7 | private readonly IMatVirtualScroll _host; 8 | 9 | public MatVirtualScrollJsHelper(IMatVirtualScroll host) 10 | { 11 | _host = host; 12 | } 13 | 14 | [JSInvokable] 15 | public void VirtualScrollingSetView(MatVirtualScrollView view) 16 | { 17 | _host.VirtualScrollingSetView(view); 18 | } 19 | } 20 | 21 | public interface IMatVirtualScroll 22 | { 23 | void VirtualScrollingSetView(MatVirtualScrollView view); 24 | } 25 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocIBaseMatPaginator.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    IBaseMatPaginator

    } else {
    IBaseMatPaginator
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
    NameTypeDescription
    PageSizeInt32
    PageSizeOptionsIReadOnlyList<MatPageSizeOption>
    26 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatEventCallback.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatEventCallback

    } else {
    MatEventCallback
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
    NameTypeDescription
    TGeneric argument
    ValueEventCallback<T>
    26 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocClassBuilderRuleClass.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    ClassBuilderRuleClass

    } else {
    ClassBuilderRuleClass
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
    NameTypeDescription
    TGeneric argument
    ClassNameString
    26 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocGetChildNodesDelegate.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    GetChildNodesDelegate

    } else {
    GetChildNodesDelegate
    } 8 | 9 |

    A Callback used to get the child nodes for a given node

    10 | 11 |
    12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
    NameTypeDescription
    TNodeGeneric argumentThe node type
    23 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocClassBuilderRuleGet.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    ClassBuilderRuleGet

    } else {
    ClassBuilderRuleGet
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
    NameTypeDescription
    TGeneric argument
    FuncFunc<T,String>
    26 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Frames/MatAppBarPageFrame.razor: -------------------------------------------------------------------------------- 1 | @page "/MatAppBarFrame" 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | MatBlazor - Material Design components for Blazor 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | Content 19 | 20 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocMatAnchorLink.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    MatAnchorLink

    } else {
    MatAnchorLink
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
    NameTypeDescription
    AttributesDictionary<String,Object>
    ChildContentRenderFragmentChild content of MatAnchorLink
    26 | -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatDataTable/MatDataTableCell.razor: -------------------------------------------------------------------------------- 1 | @namespace MatBlazor 2 | @inherits BaseMatDomComponent 3 | 4 | 5 | 6 | @ChildContent 7 | 8 | 9 | 10 | @code 11 | { 12 | [Parameter] 13 | public RenderFragment ChildContent { get; set; } 14 | 15 | [Parameter] 16 | public bool Numeric { get; set; } 17 | 18 | 19 | protected override void OnInitialized() 20 | { 21 | base.OnInitialized(); 22 | ClassMapper 23 | .Add("mdc-data-table__cell") 24 | .If("mdc-data-table__cell--numeric", () => Numeric); 25 | } 26 | } -------------------------------------------------------------------------------- /src/MatBlazor/Components/MatVirtualScroll/MatVirtualScroll.razor: -------------------------------------------------------------------------------- 1 | @typeparam ItemType 2 | @namespace MatBlazor 3 | @using System.Linq 4 | @inherits BaseMatVirtualScroll 5 | 6 |
    7 | @if (ScrollViewResult != null || Disabled) 8 | { 9 |
    10 | 11 | @foreach (var item in GetContentItems()) 12 | { 13 |
    14 | @ItemTemplate(item) 15 |
    16 | } 17 |
    18 | } 19 |
    20 | 21 | @code 22 | { 23 | } -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocIsNodeExpandedDelegate.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    IsNodeExpandedDelegate

    } else {
    IsNodeExpandedDelegate
    } 8 | 9 |

    A Callback used to determine if a node should be expanded or collapsed

    10 | 11 |
    12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
    NameTypeDescription
    TNodeGeneric argumentThe node type
    23 | -------------------------------------------------------------------------------- /src/MatBlazor.Demo/Doc/DocIBaseCoreMatSelect.razor: -------------------------------------------------------------------------------- 1 | @inherits MatBlazor.Demo.Components.BaseDocComponent 2 | 3 | @* THIS FILE IS AUTOGENERATED FROM C# XML Comments! *@ 4 | @* ALL MANUAL CHANGES WILL BE REMOVED! *@ 5 | 6 | 7 | @if (!Secondary) {

    IBaseCoreMatSelect

    } else {
    IBaseCoreMatSelect
    } 8 | 9 |
    10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
    NameTypeDescription
    TValueGeneric argument
    SwitchTypeKeyMatBlazorSwitchT<TValue>
    26 | -------------------------------------------------------------------------------- /src/MatBlazor.Web/src/matTabBar/matTabBar.js: -------------------------------------------------------------------------------- 1 | import {MDCTabBar} from '@material/tab-bar/component'; 2 | import {MDCTabScroller} from '@material/tab-scroller/component'; 3 | 4 | // alert('WAW'); 5 | 6 | export function init(ref, component) { 7 | // console.log('matTabBar init'); 8 | // ref.matBlazorRef = new MDCTabBar(ref); 9 | var scrollers = ref.getElementsByClassName('mdc-tab-scroller'); 10 | // console.log('scrollers', scrollers); 11 | if (scrollers && scrollers.length) { 12 | // console.log('scroller activated', scrollers[0]); 13 | new MDCTabScroller(scrollers[0]); 14 | } 15 | 16 | // ref.addEventListener('MDCDialog:closed', () => { 17 | // component.invokeMethodAsync('MatDialogClosedHandler'); 18 | // }); 19 | } 20 | -------------------------------------------------------------------------------- /src/MatBlazor/Helpers/ComponentBaseExtensions.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using Microsoft.AspNetCore.Components; 3 | 4 | namespace MatBlazor 5 | { 6 | public static class ComponentBaseExtensions 7 | { 8 | public static bool ParameterIsChanged(this ComponentBase cmp, ParameterView parameters, 9 | string parameterName, T value) 10 | { 11 | T newValue; 12 | if (parameters.TryGetValue(parameterName, out newValue)) 13 | { 14 | if (!EqualityComparer.Default.Equals(value, newValue)) 15 | { 16 | return true; 17 | } 18 | } 19 | 20 | return false; 21 | } 22 | } 23 | } --------------------------------------------------------------------------------