Feature/dialog improvements#184
Feature/dialog improvements#184Denny09310 wants to merge 17 commits intoblazorblueprintui:developfrom
Conversation
f094a3c to
b6ee616
Compare
|
I don't know if it's better to unify all dialog results into a single class 'DialogResult' with derived classes for shorthands (similar to PromptDialogResult) or return directly the value, because I think instead of reacting "if the Value is null" (in the prompt example) we can differentiate between a null value and a cancelled state. What do you think? 😁 |
e82038d to
d3346d9
Compare
|
Sorry for the push forces but I've to disable my tailwind vs extensions, or it will reorder the classes every time making the commit unreadable |
|
Hi @Denny09310, thanks for the commit, this is a great addition. I have reviewed and have some comments on the changes. Breaking Change
Potential Issues
Missing
Let me know if you need a hand with any of these changes. Mathew |
Yes, I'm working on it, also I will ensure this methods ends with
Already fixed just need to push the commit
In the end I've implemented a better error validation handling directly in the
Sorry, I understood the problem, but I don't understand the part ''making ComponentDialog.razor inject DialogService ... and have IDialogReference methods dispatch through it." should I create a separate implementation of
Yes, sorry I didn't even saw them when moving components around 😅
Yes thanks, merge conflicts issues
Same as before
Yes, you're right. I'll move up to
I need to add this yet. If you could help me in this one, because I've no idea how to do it properly
There is a possibility to reuse existing components logic without duplicating it from Thanks for reviewing the code! |
Introduced a typed and flexible dialog infrastructure: * Added new base classes (`DialogData`, `DialogData<TResult>`) to support asynchronous and strongly-typed dialog results. * Implemented Alert, Prompt, and custom Component dialogs, including their respective option classes and dedicated Razor components. * Updated `DialogService` to manage a generic dialog collection and expose new methods for alert, prompt, and custom dialogs. * Refactored dialog resolution to a generic `Resolve<TResult>` pattern with centralized closing logic and improved backdrop handling. * Introduced `DialogOptions`, `DialogOpenOptions`, the `DialogSize` enum, and the `DialogResult` type. * Added a reusable `DialogHeader` component for standardized dialog headers. * Improved overall extensibility and reusability of the dialog system.
… 'Async' suffix on tasks
…ing to 'IDialogReference'
20348fa to
af37d8e
Compare
|
Okay, let's keep it like this for now. I don't want to make any mess. Sorry for the email spamming (probably) 😅 |
|
Hi @Denny09310, looking into this and will get back shortly. I will see if I can push back to your branch, I might not be able to. If not I will need to create a separate PR I think. |
|
Hi @Denny09310, I needed to create a new PR in the end, I was not able to push my changes back to your PR because its from a fork. You can check out everything here #207. I think you did a great job on this, thank for the contribution. Take a look, if you're happy, I will merge it into Cheers, |
|
Thanks a lot, sorry again for the mess 😅. I will close this |
Description
DialogData,DialogData<TResult>) to support asynchronous and strongly-typed dialog results.DialogServiceto manage a generic dialog collection and expose new methods for alert, prompt, and custom dialogs.Resolve<TResult>pattern with centralized closing logic and improved backdrop handling.DialogOptions,DialogOpenOptions, theDialogSizeenum, and theDialogResulttype.DialogHeadercomponent for standardized dialog headers.Type of Change
Testing Checklist
Related Issues
Closes #145