{"id":15647752,"url":"https://github.com/stavroskasidis/blazordialog","last_synced_at":"2025-04-05T07:03:29.901Z","repository":{"id":46224792,"uuid":"162425143","full_name":"stavroskasidis/BlazorDialog","owner":"stavroskasidis","description":"Easy dialog management for Blazor !","archived":false,"fork":false,"pushed_at":"2024-10-24T19:50:04.000Z","size":1839,"stargazers_count":44,"open_issues_count":5,"forks_count":7,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-03-29T06:03:58.332Z","etag":null,"topics":["blazor","blazor-component","blazor-dialog","blazor-wasm","blazordialog","dialog"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stavroskasidis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-19T11:02:44.000Z","updated_at":"2025-01-16T09:35:43.000Z","dependencies_parsed_at":"2024-06-25T19:46:15.853Z","dependency_job_id":"b2974028-8a9a-4a22-9aef-714dceaffdcb","html_url":"https://github.com/stavroskasidis/BlazorDialog","commit_stats":{"total_commits":80,"total_committers":4,"mean_commits":20.0,"dds":"0.38749999999999996","last_synced_commit":"4e45a718870119084dd6c7b96d8e7921023c0838"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stavroskasidis%2FBlazorDialog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stavroskasidis%2FBlazorDialog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stavroskasidis%2FBlazorDialog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stavroskasidis%2FBlazorDialog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stavroskasidis","download_url":"https://codeload.github.com/stavroskasidis/BlazorDialog/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299831,"owners_count":20916190,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blazor","blazor-component","blazor-dialog","blazor-wasm","blazordialog","dialog"],"created_at":"2024-10-03T12:20:53.285Z","updated_at":"2025-04-05T07:03:29.880Z","avatar_url":"https://github.com/stavroskasidis.png","language":"HTML","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=7CRGWPYB5AKJQ\u0026currency_code=EUR\u0026source=url"],"categories":[],"sub_categories":[],"readme":"﻿# Blazor Dialog\n\n[![Build status](https://dev.azure.com/stavros-kasidis/Blazor%20Dialog/_apis/build/status/Blazor%20Dialog-CI)](https://dev.azure.com/stavros-kasidis/Blazor%20Dialog/_build/latest?definitionId=16) [![Nuget (with prereleases)](https://img.shields.io/nuget/vpre/BlazorDialog.svg?logo=nuget)](https://www.nuget.org/packages/BlazorDialog) [![Nuget](https://img.shields.io/nuget/dt/BlazorDialog.svg?logo=nuget)](https://www.nuget.org/packages/BlazorDialog) [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=7CRGWPYB5AKJQ\u0026currency_code=EUR\u0026source=url)\n\nDialog component as a service for [Blazor](https://blazor.net)!\n\n![demo-img](ReadmeResources/dialog-demo.gif)\n\n## Features\n* Call a dialog procedurally as a service and `await` for the result !\n* Open any component as a dialog.\n* Can use dialogs as normal components (if you don't want to use as a service).\n* Build-in modal dialog with optional helper components (`Header`, `Body`, `Footer`).\n* Option to use completely custom markup/css (without using the build-in opinionated css and html).\n\n## Samples / Demo\nYou can find code samples and demos [here](https://blazor-dialog-demo.azurewebsites.net/).\n\n## Installation\n**1. Add the nuget package in your Blazor project**\n```\n\u003e dotnet add package BlazorDialog\n\nOR\n\nPM\u003e Install-Package BlazorDialog\n```\n*Nuget package page can be found [here](https://www.nuget.org/packages/BlazorDialog).*\n\n**2. Add the following line in your Blazor project in either `Startup.cs` (blazor server-side) or `Program.cs` (blazor wasm)**\n\n**- Blazor server-side: `Startup.cs`**\n```csharp\npublic class Startup\n{\n    public void ConfigureServices(IServiceCollection services)\n    {\n        // other code\n        services.AddBlazorDialog();\n        // other code\n    }\n}\n```\n\n**- Blazor wasm: `Program.cs`**\n```csharp\npublic class Program\n{\n    public static async Task Main(string[] args)\n    {\n       // other code\n        builder.Services.AddBlazorDialog();\n        // other code\n    }\n}\n```\n**3. Add the following line in your `_Imports.razor`**\n```csharp\n@using BlazorDialog\n```\n\n**4. Add the following line in your `MainLayout.razor` or `App.razor` (must be rendered once in a central spot)**\n```csharp\n\u003cDialogOutput/\u003e\n```\n\n**5. Reference the css file**\n\nAdd the following static file references in your `_Host.cshtml` (server-side blazor) or in your `index.html` (client-side blazor). \nMake sure that there is a call to `app.UseStaticFiles();` in your server project's `Startup.cs`.\n\n```html\n\u003clink href=\"_content/BlazorDialog/styles.min.css\" rel=\"stylesheet\" /\u003e\n```\n```html\n\u003cscript src=\"_content/BlazorDialog/blazorDialog.min.js\"\u003e\u003c/script\u003e\n```\n\n## ⚠️ Breaking changes ⚠️\n\n\u003cdetails open=\"open\"\u003e\u003csummary\u003eUpgrading from 3.2 to 4.0\u003c/summary\u003e\n\n\u003e- It is required to add a static file reference to the new javascript file.\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eUpgrading from 0.3 to 1.0\u003c/summary\u003e\n\n\u003e- Removed `PreventShow` and `PreventHide` from `OnBeforeShow` and `OnBeforeHide` respectively. Too many cases where infinite loops could happen.\n\u003c/details\u003e\n\n## Release Notes\n\n\u003cdetails open=\"open\"\u003e\u003csummary\u003e4.0\u003c/summary\u003e\n    \n\u003e- A new javascript file is required to be loaded (see breaking changes).\n\u003e- New feature: Allow closing the dialog with a key press (escape by default).\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e3.2\u003c/summary\u003e\n    \n\u003e- Fix for a bug when the same dialog is presented consecutively, never returning result. Contributed by [thanoskapsalis](https://github.com/thanoskapsalis).\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\u003csummary\u003e3.1\u003c/summary\u003e\n    \n\u003e- Added `ForceAllowNavigation` and `ForcePreventNavigation` methods to the `Dialog` component to allow/prevent navigation regardless of the `PreventNavigation` parameter.\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\u003csummary\u003e3.0\u003c/summary\u003e\n    \n\u003e- Migrate to .NET 8.0\n\u003e- Add PreventNavigation option to prevent navigation when dialog is open.\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e2.3\u003c/summary\u003e\n    \n\u003e- Expose dialog options as cascading parameter when using ComponentAsDialog.\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\u003csummary\u003e2.2\u003c/summary\u003e\n    \n\u003e- Fix for showing the same dialog with the dialog service more than once in the same async function.\n\u003e- Upgrade MS packages dependecy to 6.0.26\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\u003csummary\u003e2.1\u003c/summary\u003e\n    \n\u003e- Minor fix for when returning null dialog results to non nullable result types.\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e2.0\u003c/summary\u003e\n    \n\u003e- New feature: ShowComponentAsDialog. Check demo app for examples.\n\u003e- Upgraded target framework to 6.0\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e1.6\u003c/summary\u003e\n    \n\u003e- Added a new size option: ExtraExtraLarge.\n\u003c/details\u003e\n\n\u003cdetails \u003e\u003csummary\u003e1.5\u003c/summary\u003e\n    \n\u003e- Added css class parameter to all helper components (header/body/footer).\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e1.4\u003c/summary\u003e\n    \n\u003e- Added css class parameter to dialog component.\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e1.3\u003c/summary\u003e\n    \n\u003e- Added base z-index parameter to dialog component.\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e1.2\u003c/summary\u003e\n    \n\u003e- Added fullscreen mode.\n\u003c/details\u003e\n\n\u003cdetails \u003e\u003csummary\u003e1.1\u003c/summary\u003e\n    \n\u003e- Added support for dialog-in-dialog.\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e1.0\u003c/summary\u003e\n    \n\u003e- Fixed an infinite loop bug with `OnBeforeShow` event.\n\u003e- Fixed css bugs.\n\u003e- Removed `PreventShow` and `PreventHide` from `OnBeforeShow` and `OnBeforeHide` respectively. Too many cases where infinite loops could happen.\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e0.3\u003c/summary\u003e\n    \n\u003e- Upgrated to 3.1.\n\u003e- Added new helper components: `DialogHeader`, `DialogBody`, `DialogFooter`\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e0.1\u003c/summary\u003e\n    \n\u003e- Initial release.\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstavroskasidis%2Fblazordialog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstavroskasidis%2Fblazordialog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstavroskasidis%2Fblazordialog/lists"}