Migrated repository
Go to file
James Yeung 7848635b55 Merge 0.8.2 to feature (#1651)
* test: DateHelperTests was in the wrong dir (#1529)

* fix(module: radio): add defaultChecked and defaultValue (#1494)

* fix(module: radio): add defaultChecked and defaultValue

* add tests

* add test for radio group

* feat: Added locale es-ES (#1534)

* fix(module: locale): add missing 'filterOptions' node to german locale file (#1562)

* docs(module: table): update ‘fork official sample’ demo (#1544)

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* fix(module: npuNumber): include parser in value evaluation (#1567)

* fix(module: input): fix & feat & docs & tests: Input general fixes (#1530)

* docs(module:input): api correction & comments

* fix(module:input): clear icon in sync with antD

* fix(module:input): add parameter bordered

* fix(module:textarea): add parameter ShowCounter

* fix(module:input): Focus with behaviors

* docs: add missing docs, rearrange order

* fix(module:search): update to match new standard look

doc(module:search): add API & demos

* fix(module:inputgroup): override style to remove whitespace\
docs: same as react

* fix(module:inputpassword): support custom icon
docs: same as react

* fix(module:input): add blur method
docs: add blur method

* fix(module:input): add readonly parameter

* tests

* fix

* fix(module:input): sequence correction

* Update components/core/Base/AntComponentBase.cs

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* review fixes

* fix: clean-up

* tests: fix missing mock

* fix: focus

* fix(module:input): bind clear button to _inputValue

* tests: clear button show/hide

* tests: package update

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* fix(module: drawer): OffsetX and offsetY do not work (#1435) (#1448)

* fix(module: drawer): OffsetX and offsetY do not work (#1435)

* docs: demo update

* fix: Placement is switched to the relative direction, the animation appears

* fix: the bug of closing animation missed

* fix: incorrect animation

* fix: different behaviors in WASM and Server side

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* docs: Added essential step in get started procedure (#1579)

* Added essential step in get started procedure

The article is missing the dependency registration. If these dependencies are not registered, the library couldn't be used (at least in my case).

* Update getting-started.en-US.md

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* docs: document improvement (#1578)

* fix the ordering of menu items

* add ueditor link

* fix icon document search style

* fix affix width for side menu

* add faq doc

* feat(module: datepicker): Picker clear button event (#1586)

* feat(module:datepicker): add OnClearClick eventcallback

* docs(module:datepicker): format docs has same behavior as react docs

* fix: adjust code to match net 3.1

* fix: eventcallback name fix

* Update site/AntDesign.Docs/Demos/Components/DatePicker/doc/index.zh-CN.md

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* fix(module: dropdown): align with react (#1588)

* fix(module:dropdownbutton): align with react version

* doc(module:dropdownbutton): align with react docs

* fix(module: table): fix can not close filter by confirm button (#1602)

* fix(module: table): fix filter icon wrong highlight, fix filter behavior when there is no input value (#1592)

* fix(module:table): fix filter icon wrong highlight

* Update Column.razor

* fix(module:table): fix filter for no input

* fix(module: table): fix filter not applied (#1594)

* fix(module: InputNumber): fix error when blur (#1612)

* fix(affix): remove wrong event listeners (#1616)

* fix(module: table): fix wrong compare operator, remove input components for unary filter operators (#1596)

* fix(module:table): fix wrong compare operator

* remove whitespace

* fix(module:table): remove input component for 'is null' and 'is not null' table filter

* Update Column.razor

* fix(module:table): allow remove first filter

* remove whitespace

* Update Column.razor

* Update Column.razor

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* fix(module: dropdown): dropdown button missing properties & docs fix for Dropdown & Button (#1609)

* fix:fix(module:dropdownbutton): add regular button behaviors and properties

* fix(module:button): add text type & docs

* docs(module:dropdown): version correction

* fix(module:overlay): re-add IsButton parameter

* fix: add xml comment to public methods

* fix(module:overlay): add xml documentation

* fix(module:dropdown): chrome block button force

* fix(module:button): remove Search parameter

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* fix(module: datepicker): in form behavior (#1617)

* i18n: Add missing elements to Dutch locales (#1624)

* chore(ci): fix coverage report uploading (#1614)

* chore(ci): fix coverage report uploading

* continue when fail to upload

* docs: update modal and drawer docs (#1625)

* docs: update modal docs

* docs: modify DropdownInDrawer

* docs: update demo for DrawerService and ModalService

* fix(module: modal): Modal dialogs not showing anymore (#1635)

* Fix issue #1634 - Modal dialogs not showing anymore

* Removed unnecessary Search from ButtonProps as part of #1634 fix - Modal dialogs not showing anymore

* fix(module: table): fix selection clear (#1632)

* fix(module:table): fix selection issues

* allow SetSeletion(null) when there is not a Selection column

* allow change selection by setting RowDate.Selected

* fix(module: checkbox): fix checkbox group in-form behavior (#1637)

* fix(module: image): fix the style property position (#1642)

* fix(module: tag): Issue solved & align with react antd & tests (#1631)

* fix(module:tag): close does not trigger onclick

add custom color handling
add animation handling
add status tags

* docs(module:tag): align with react antd

* tests(module:tag): add basic tests

* fix: style fixes

* fix: remove default animation; add custom animation demo

* fix: remove ExtraCls and use Class from base

* Update components/tag/Tag.razor

* clear the open animate after tag opened

* translate demo docs

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* changelog 0.8.2 (#1649)

* add Visible back to Tag.razor.cs

* Update SearchLoading.razor and idnex.en-US.md

* Update index.zh-CN.md

Co-authored-by: 笨木头 <musicvs@163.com>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
Co-authored-by: Magehernan <magehernan@gmail.com>
Co-authored-by: Andrzej Bakun <andrzej@neelyc.com.cy>
Co-authored-by: zxyao <zxyao145@gmail.com>
Co-authored-by: black-snake <black-snake@users.noreply.github.com>
Co-authored-by: Gregory Loones <40325447+gregloones@users.noreply.github.com>
Co-authored-by: Razvan Predescu <rzvdaniel@gmail.com>
2021-06-18 23:17:49 +08:00
.config chore: add format hook (#477) 2020-08-11 05:41:46 +08:00
.github chore(ci): fix coverage report uploading (#1614) 2021-06-10 16:28:54 +08:00
.vscode rename the docs project 2021-02-06 20:15:46 +08:00
components add Visible back to Tag.razor.cs 2021-06-18 16:31:31 +08:00
docs Merge 0.8.2 to feature 2021-06-18 16:09:13 +08:00
scripts docs: dynamic primary color changing (#1332) 2021-04-10 12:34:41 +08:00
site Update index.zh-CN.md 2021-06-18 18:45:19 +08:00
tests Merge 0.8.2 to feature 2021-06-18 16:09:13 +08:00
.editorconfig feat: add simple table component (#86) 2020-05-30 01:46:41 +08:00
.gitattributes Make github main language as C# (#153) 2020-05-25 22:59:11 +08:00
.gitignore feat: add built-in themes (#1286) 2021-03-31 19:23:32 +08:00
AntDesign.sln test: add TestKit for public tests (#1248) 2021-04-04 21:37:06 +08:00
CHANGELOG.en-US.md changelog 0.8.2 (#1649) 2021-06-18 00:22:40 +08:00
CHANGELOG.zh-CN.md changelog 0.8.2 (#1649) 2021-06-18 00:22:40 +08:00
CODE_OF_CONDUCT.md docs: add guides (#414) 2020-07-23 14:44:33 +08:00
commitlint.config.js chore: add commit lint & adjust build directory 2020-03-09 18:16:44 +08:00
CONTRIBUTING.md docs: add guides (#414) 2020-07-23 14:44:33 +08:00
Directory.Build.props chore: fix SolutionDir for building (#1011) 2021-01-23 01:15:23 +08:00
LICENSE docs: add the copyright of .NET Foundation (#1272) 2021-03-23 17:38:41 +08:00
LICENSE-ant-design.txt chore: prepare for 0.4.0 (#592) 2020-09-11 13:42:22 +08:00
logo.svg chore: add a logo and update readme 2019-12-26 15:50:38 +08:00
package.json feat: use ResizeObserver Api instead of window.resize (#1392) 2021-04-27 06:03:39 +00:00
README-zh_CN.md docs: fix dingtalk's broken links (#1330) 2021-04-09 17:36:19 +08:00
README.md docs: fix dingtalk's broken links (#1330) 2021-04-09 17:36:19 +08:00

Ant Design Blazor

A set of enterprise-class UI components based on Ant Design and Blazor.

AntDesign AntDesign AntDesign.Templates codecov AntDesign Slack Group Ding Talk Group Discord Server

English | 简体中文

Features

  • 🌈 Enterprise-class UI designed for web applications.
  • 📦 A set of high-quality Blazor components out of the box.
  • 💕 Supports WebAssembly-based client-side and SignalR-based server-side UI event interaction.
  • 🎨 Supports Progressive Web Applications (PWA).
  • 🛡 Build with C#, a multi-paradigm static language for an efficient development experience.
  • ⚙️ .NET Standard 2.1/.NET 5 based, with direct reference to the rich .NET ecosystem.
  • 🎁 Seamless integration with existing ASP.NET Core MVC and Razor Pages projects.

🌈 Online Examples

WebAssembly static hosting examples:

🖥 Environment Support

  • .NET Core 3.1 / .NET 5
  • Blazor WebAssembly 3.2/.NET 5 Release
  • Supports two-way binding on the server side
  • Supports WebAssembly static file deployment
  • Support 4 major browsers engines, and Internet Explorer 11+ (Blazor Server only)
  • Run directly on Electron and other Web standards-based environments
IE / Edge
Edge / IE
Firefox
Firefox
Chrome
Chrome
Safari
Safari
Opera
Opera
Electron
Electron
Edge 16 / IE 11† 522 57 11 44 Chromium 57

Due to WebAssembly restriction, Blazor WebAssembly doesn't support IE browser, but Blazor Server supports IE 11† with additional polyfills. See official documentation

💿 Current Version

🎨 Design Specification

Regularly synchronize with Official Ant Design specifications, you can check the sync logs online.

Therefore, you can use the custom theme styles of Ant Design directly.

📦 Installation Guide

Create a new project from the dotnet new template AntDesign.Templates

We have provided the dotnet new template to create a Boilerplate project out of the box

  • Install the template

    $ dotnet new --install AntDesign.Templates
    
  • Create the Boilerplate project with the template

    $ dotnet new antdesign -o MyAntDesignApp
    

Options for the template

Options Description Type Default
-f | --full If specified, generates all pages of Ant Design Pro bool false
-ho | --host Specify the hosting model 'wasm' | 'server' | 'hosted' 'wasm'
--no-restore If specified, skips the automatic restore of the project on create bool false

Import Ant Design Blazor into an existing project

  • Go to the project folder of the application and install the Nuget package reference

    $ dotnet add package AntDesign
    
  • Register the services in Program.cs (WebAssembly)

    builder.Services.AddAntDesign();
    

    or Startup.cs (Server)

    services.AddAntDesign();
    
  • Link the static files in wwwroot/index.html (WebAssembly) or Pages/_Host.cshtml (Server)

    <link href="_content/AntDesign/css/ant-design-blazor.css" rel="stylesheet" />
    <script src="_content/AntDesign/js/ant-design-blazor.js"></script>
    
  • Add namespace in _Imports.razor

    @using AntDesign
    
  • To display the pop-up component dynamically, you need to add the <AntContainer /> component in App.razor.

    <Router AppAssembly="@typeof(MainLayout).Assembly">
        <Found Context="routeData">
            <RouteView RouteData="routeData" DefaultLayout="@typeof(MainLayout)" />
        </Found>
        <NotFound>
            <LayoutView Layout="@typeof(MainLayout)">
                <Result Status="404" />
            </LayoutView>
        </NotFound>
    </Router>
    
    <AntContainer />   <-- add this component ✨
    
  • Finally, it can be referenced in the `.razor' component!

    <Button Type="primary">Hello World!</Button>
    

⌨️ Local Development

  • Install .NET Core SDK 5.0.100 or later.

  • Install Node.js (only for building style files and interoperable TypeScript files)

  • Clone to local development

    $ git clone git@github.com:ant-design-blazor/ant-design-blazor.git
    $ cd ant-design-blazor
    $ npm install
    $ npm start
    
  • Visit https://localhost:5001 in your supported browser and check local development documentation for details.

    Visual Studio 2019 is recommended for development.

🗺 Roadmap

Check out this issue to learn about our development plans for 2020.

🤝 Contributing

PRs Welcome

If you would like to contribute, feel free to create a Pull Request, or give us Bug Report.

Contributors

This project exists thanks to all the people who contribute.

💕 Donation

This project is an MIT-licensed open source project. In order to achieve better and sustainable development of the project, we expect to gain more backers. We will use the proceeds for community operations and promotion. You can support us in any of the following ways:

We will put the detailed donation records on the backer list.

Community Support

If you encounter any problems in the process, feel free to ask for help via following channels. We also encourage experienced users to help newcomers.

  • Discord Server

  • 钉钉群

    Scan QR Code with DingTalk

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.

☀️ License

AntDesign

.NET Foundation

This project is supported by the .NET Foundation.