Skip to content

[dev-v5] [Dialog and Drawer] Display a Panel / Drawer (Left or Right) - #3148

Merged
Denis Voituron (dvoituron) merged 20 commits into
dev-v5from
users/dvoituron/dev-v5/drawer
Jan 15, 2025
Merged

Denis Voituron (dvoituron) merged 20 commits into
dev-v5from
users/dvoituron/dev-v5/drawer

Conversation

@dvoituron

@dvoituron Denis Voituron (dvoituron) commented Jan 10, 2025 •

Copy link
Copy Markdown
Collaborator

[dev-v5] [Dialog and Drawer] Update the FluentDialog to display a Panel / Drawer (Left or Right)

  • Add a SialogService.ShowDrawerAsync() method to open a drawer / panel, left or right depending on the Alignment (Start or End).

  • Add Modal option to display a modal dialog / drawer:

    1. Dialog: When a dialog is displayed modally, no input (keyboard or mouse click) can occur except to objects on the modal dialog. The program must hide or close a modal dialog (usually in response to some user action) before input to another dialog can occur.
    2. Drawer: Unlike the dialog box, the drawer does not block interaction with the application.
      • When a drawer is defined as modal, the user can close the drawer by clicking outside it (Cancel).
      • When a drawer is defined as non-modal, the user can continue to interact with the application, without closing the drawer. To close it, the user must click on one of the drawer actions (OK / Cancel).
  • Add Size option to use pre-configured dialog/drawer width:

    • Small (320px)
    • Medium (592px)
    • Large (940px)
    • Full (100%)
    • null (undefined)
  • Add PrimaryFirst option to inverse (false) the primary and secondary button order.

  • Update the documentation generator to display "simple" classes (like DialogOptions)

Example

See https://fluentui-blazor-v5.azurewebsites.net/

Unit Tests

image

@github-actions

github-actions Bot commented Jan 10, 2025 •

Copy link
Copy Markdown

✅ All tests passed successfully

Details on your Workflow / Core Tests page.

@github-actions

github-actions Bot commented Jan 10, 2025 •

Copy link
Copy Markdown

Summary - Unit Tests Code Coverage

Summary
Generated on: 01/15/2025 - 20:12:35
Coverage date: 01/15/2025 - 20:12:30
Parser: Cobertura
Assemblies: 1
Classes: 57
Files: 67
Line coverage: 99% (1092 of 1103)
Covered lines: 1092
Uncovered lines: 11
Coverable lines: 1103
Total lines: 5153
Branch coverage: 91.4% (696 of 761)
Covered branches: 696
Total branches: 761
Method coverage: Feature is only available for sponsors
Tag: 2372_12795569788

Coverage

Microsoft.FluentUI.AspNetCore.Components - 99%
Name Line Branch
Microsoft.FluentUI.AspNetCore.Components 99% 91.4%
Microsoft.FluentUI.AspNetCore.Components.Dialog.MessageBox.FluentMessageBox 100% 100%
Microsoft.FluentUI.AspNetCore.Components.DialogEventArgs 100% 92.8%
Microsoft.FluentUI.AspNetCore.Components.DialogInstance 100% 100%
Microsoft.FluentUI.AspNetCore.Components.DialogOptions 100%
Microsoft.FluentUI.AspNetCore.Components.DialogOptionsFooter 100% 100%
Microsoft.FluentUI.AspNetCore.Components.DialogOptionsFooterAction 100% 100%
Microsoft.FluentUI.AspNetCore.Components.DialogOptionsHeader 100%
Microsoft.FluentUI.AspNetCore.Components.DialogResult 100% 100%
Microsoft.FluentUI.AspNetCore.Components.DialogResult`1 100%
Microsoft.FluentUI.AspNetCore.Components.DialogService 98.9% 81.4%
Microsoft.FluentUI.AspNetCore.Components.DialogToggleEventArgs 100%
Microsoft.FluentUI.AspNetCore.Components.Extensions.EnumExtensions 100% 100%
Microsoft.FluentUI.AspNetCore.Components.Extensions.FluentInputExtensions 100% 100%
Microsoft.FluentUI.AspNetCore.Components.FluentButton 100% 89.5%
Microsoft.FluentUI.AspNetCore.Components.FluentComponentBase 100% 100%
Microsoft.FluentUI.AspNetCore.Components.FluentDialog 97.4% 89.7%
Microsoft.FluentUI.AspNetCore.Components.FluentDialogBody 100% 91.6%
Microsoft.FluentUI.AspNetCore.Components.FluentDialogInstance 100% 100%
Microsoft.FluentUI.AspNetCore.Components.FluentDialogProvider 100% 79.1%
Microsoft.FluentUI.AspNetCore.Components.FluentGrid 100% 90%
Microsoft.FluentUI.AspNetCore.Components.FluentGridItem 100% 100%
Microsoft.FluentUI.AspNetCore.Components.FluentIcon`1 100% 95.8%
Microsoft.FluentUI.AspNetCore.Components.FluentInputBase`1 100% 83.3%
Microsoft.FluentUI.AspNetCore.Components.FluentInputImmediateBase`1 100% 100%
Microsoft.FluentUI.AspNetCore.Components.FluentJSModule 100% 100%
Microsoft.FluentUI.AspNetCore.Components.FluentLabel 100%
Microsoft.FluentUI.AspNetCore.Components.FluentLayout 100% 71.4%
Microsoft.FluentUI.AspNetCore.Components.FluentLayoutHamburger 100% 100%
Microsoft.FluentUI.AspNetCore.Components.FluentLayoutItem 100% 89.2%
Microsoft.FluentUI.AspNetCore.Components.FluentListBase`1 93.3% 94.7%
Microsoft.FluentUI.AspNetCore.Components.FluentLocalizerExtensions 100%
Microsoft.FluentUI.AspNetCore.Components.FluentLocalizerInternal 100%
Microsoft.FluentUI.AspNetCore.Components.FluentOption 91.6% 100%
Microsoft.FluentUI.AspNetCore.Components.FluentSelect`1 100% 100%
Microsoft.FluentUI.AspNetCore.Components.FluentServiceBase`1 100%
Microsoft.FluentUI.AspNetCore.Components.FluentServiceProviderException`1 100%
Microsoft.FluentUI.AspNetCore.Components.FluentText 100% 100%
Microsoft.FluentUI.AspNetCore.Components.FluentTextInput 100% 100%
Microsoft.FluentUI.AspNetCore.Components.Icon 100% 91.1%
Microsoft.FluentUI.AspNetCore.Components.IconFromImage 100%
Microsoft.FluentUI.AspNetCore.Components.IconInfo 100%
Microsoft.FluentUI.AspNetCore.Components.IFluentLocalizer 100% 100%
Microsoft.FluentUI.AspNetCore.Components.InternalListContext`1 60%
Microsoft.FluentUI.AspNetCore.Components.Localization.LanguageResource 100% 100%
Microsoft.FluentUI.AspNetCore.Components.MessageBoxOptions 100%
Microsoft.FluentUI.AspNetCore.Components.Migration.AppearanceExtensions 100% 100%
Microsoft.FluentUI.AspNetCore.Components.Migration.FluentInputAppearanceExt
ensions
83.3% 75%
Microsoft.FluentUI.AspNetCore.Components.ServiceProviderExtensions 100%
Microsoft.FluentUI.AspNetCore.Components.Utilities.AddTag 100% 100%
Microsoft.FluentUI.AspNetCore.Components.Utilities.CssBuilder 100% 92.8%
Microsoft.FluentUI.AspNetCore.Components.Utilities.Debounce 100% 83.3%
Microsoft.FluentUI.AspNetCore.Components.Utilities.Identifier 100% 100%
Microsoft.FluentUI.AspNetCore.Components.Utilities.IdentifierContext 100% 75%
Microsoft.FluentUI.AspNetCore.Components.Utilities.InlineStyleBuilder 100% 92.8%
Microsoft.FluentUI.AspNetCore.Components.Utilities.InternalDebounce.Dispatc
herTimerExtensions
95.7% 75%
Microsoft.FluentUI.AspNetCore.Components.Utilities.StyleBuilder 100% 100%
Microsoft.FluentUI.AspNetCore.Components.ZIndex 100%

@dvoituron Denis Voituron (dvoituron) changed the title [dev-v5] [Drawer] Update the FluentDialog to display a Drawer (Left or Right) [dev-v5] [Dialog and Panel] Display a Panel / Drawer (Left or Right) Jan 11, 2025
@dvoituron
Denis Voituron (dvoituron) marked this pull request as ready for review January 11, 2025 20:20
@dvoituron Denis Voituron (dvoituron) changed the title [dev-v5] [Dialog and Panel] Display a Panel / Drawer (Left or Right) [dev-v5] [Dialog and Drawer] Display a Panel / Drawer (Left or Right) Jan 15, 2025
@dvoituron
Denis Voituron (dvoituron) merged commit 20cb077 into dev-v5 Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants