Commit Graph

25 Commits

Author SHA1 Message Date
Weihan Li
9fa391449a
chore: Enable some code analyze rules (#4126)
* style: update editorconfig

- update editorconfig encoding to utf8
- add CA1852 and IDE0005 rules

* style: apply dotnet-format

* style: add IDE0040 rule

* style: apply dotnet-format

* refactor: sealed SimpleEmbeddedJsonLocalizerFactory

* style: add style rule for modifiers

* fix: resolve dotnet-format unmerged issue

* fix: add back translation

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2024-08-28 00:54:33 +08:00
James Yeung
63223455d1
chore: setup js interops for tests (#4066)
* setup js interops

* add more setup

* fix test
2024-08-09 18:35:47 +08:00
James Yeung
15b4a81a51
feat: add support for custom script/style import locations (#3596)
* feat: add support for custom script/style import locations

* fix test
2023-12-26 23:20:16 +08:00
zxyao
fd73cc980f
fix(module select): simulate setTimeout, ensure that the click event is processed properly (#3525)
* fix(module select): dom symmetrical difference event

* refactor: selector

* fix: test

fix: bunit cannot handle js event

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2023-12-23 11:23:16 +08:00
James Yeung
1409c277b5
chore: update Blazor to .NET 8 (#3514)
* update Blazor to .NET 8

* commont NetAnalyzers

* fix bunit bug

* fix tests
2023-11-16 12:33:01 +08:00
agolub-s
8e60219b35
feat(module: datepicker): add mask to DatePickerBase for input value constraint (#3120)
* Add support multiple date formats for DatePickerBase

* Fix test

* Extend docs

* Fix merge

* Revert "Add support multiple date formats for DatePickerBase"

This reverts commit 9021dcdd

* Refactoring. Add mask property for DatePickerBase. For input value constraint.

* Some fixes

* Refactoring

* Add value converter for MaskInput

* Some fix

* fix Chinese

* Refactoring

* Fix tests

* Fix tests

* clean up

* Fix tests

* Pass mask to RangePicker

* Fix AvatarTests

* Fix merge

* Stage

* Stabilized tests

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2023-10-05 17:24:16 +08:00
James Yeung
1b3625e1bc
fix(module: tabs): animated cause display incorrectly (#3177)
* fix(module: tabs): animated cause display incorrectly

* fix test

* fix test
2023-04-09 16:23:26 +08:00
James Yeung
ca8ad80d3d
fix: Added built-in System.Text.Json for netstandard2.1 target to avoid compatibility exceptions (#2922) 2022-12-01 18:09:54 +08:00
kooliokey
d58bcc22f7
test(module: drawer): Test, refactor and document Drawer (#2833)
* Drawer Tests

* Remove code that doesn't appear to be needed. If you set Placement to be null or empty the drawer closes with or without this code in place.

* Documentation update

* Doc update

* Docs update...including chinese
2022-10-24 07:47:40 +08:00
James Yeung
7385f6a8a5
refactor(module: icon): fix two-tone icon state update & first rendering (#2666)
* refactor(module: icon): fix two-tone icon state update & first rendering

* refactor smell code

* fix test packages

* fix smell code
2022-09-04 10:51:32 +08:00
kooliokey
27b3e8ad5e
feat(module: breadcrumb): Add OnClick parameter to BreadcrumbItem, Add Tests, Remove unusable code (#2655)
* Add OnClick parameter to BreadcrumbItem. Add tests for Breadcrumb and BreadcrumbItem. Remove unused and unreachable code until needed at a later date. Documented parameters not in use, but left to avoid breaking the existing public API.

* Fix whitespace

* Update signature of OnClick for BreadcrumbItem to pass a Tuple<MouseEventArgs, BreadcrumbItem> giving access to the click arguments and the item clicked.

* Add ExludeFromCodeCoverage to POCO

* Update HTML markup for Breadcrumbs to match React Ant.Design (use nav, ol and li elements instead of div and spans only)

* fix naming

* fix error

* fix test

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2022-09-04 02:33:10 +08:00
James Yeung
36a40efef3
fix(module: select): replacing a datasource with some of the same items was not in the right order (#2462)
* fix(module: select): replacing a datasource with some of the same elements was not in the right order

* add tests

* fix indent
2022-05-19 22:59:36 +08:00
Andrzej Bakun
d843898cb8 tests: clean-up (#2050)
* tests: clean-up

* tests: missed warnings & exceptions fix

* build: comments fix

* docs: xml comments fixed to stop warnings
2021-10-22 12:45:00 +08:00
Andrzej Bakun
5c2f48f718 fix(module: select): arrow down click does not auto close (#1977)
* fix(module:select): arrow down click does not auto close

* test case added
2021-10-11 22:17:14 +08:00
Andrzej Bakun
713eb6fd94 chore: test cs project to include test runner adapter (#1939)
test: add general overlay disposal method mock
2021-09-13 10:37:16 +08:00
Tony Yip
4b04f09832 perf: avoid memory leak issue of event listener (#1857)
* perf: avoid memory leak #1834

Avoid memory leak by remove the exclusive parameter and logic in the code block on AddEventListener method in DomEventService class.

The following are the components affected:
components/affix/Affix.razor.cs
components/anchor/Anchor.razor.cs
components/carousel/Carousel.razor.cs
components/core/Component/Overlay/Overlay.razor.cs
components/core/Component/Overlay/OverlayTrigger.razor.cs
components/core/JsInterop/DomEventService.cs
components/descriptions/Descriptions.razor.cs
components/dropdown/DropdownButton.cs
components/grid/Row.razor.cs
components/input/Input.cs
components/input/TextArea.razor.cs
components/layout/Sider.razor.cs
components/list/ListItem.razor.cs
components/select/Select.razor.cs
components/select/internal/SelectContent.razor.cs
components/slider/Slider.razor.cs
components/table/Table.razor.cs
components/tabs/Tabs.razor.cs

* fix override AddEventListener method in AntDesign.TestKit project

* add register/remove event listerner for exclusive use in DomEventService class

* move _dotNetObjects to DomEventListerner class/service, so that users not required to maintain it in each component.

* * move share/reuse dom event listerner methods to DomEventListerner class

* remove method 'AddEventListener' that no longer exists in DomEventService class in AntDesign.TestKit project

* * change the component referring to an IDomEventListerner interface instead of a concrete class,
  so that the component can be tested via a mock TestDomEventListerner.

* introduce DisposeShared and Dispose method in DomEventListerner to ease user remove callback from DomEventListerner

* register IDomEventListerner into DI container instead of create manually

* fix FormatKey

* fix FormatKey

* fix tests

* fix test

* fix test

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-09-09 12:56:11 +08:00
Andrzej Bakun
29e3ce3583 refactor(interop): reorganization into classes and typescript tests (#1791)
* fix(module:interop): reorganization into classes

* comments clean-up

* Add typescript test project

* fix: sync with pull request #1765: support drag

* github test action fix attempt

* tests: jsinterop test mock fix

* codecov added to ts tests

* add generated split js to gitignore

* fix: coverage github action

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-07-29 22:45:47 +08:00
anranruye
16654f5b51 Merge 0.8.4 to feature 2021-07-18 00:04:11 +08:00
ElderJames
8fe830dc8b fix build process for static web assets 2021-07-14 15:42:06 +08:00
James Yeung
1bc79e2539 fix(module: checkbox): fix the test following up PR #1689 (#1699)
* fix(module: checkbox): fix tests

* fix testkit package
2021-07-02 12:44:39 +08:00
Andrzej Bakun
2d693740c6 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>
2021-05-27 18:13:26 +08:00
James Yeung
bfb5e4f396 merge 0.8.1 to feature 2021-05-16 19:58:03 +08:00
Andrzej Bakun
2d36dd4081 feat:(module: form): edit context dynamic change (#1504)
* tests: project up to standards

* fix(module:form): allow EditContext change
2021-05-11 11:13:14 +08:00
Andrzej Bakun
68966ef511 test(module: divider): divider tests (#1397)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-21 10:44:40 +08:00
Patrick
ba2c5e51d8 test: add TestKit for public tests (#1248)
* test: change folder structure and add new TestKit csproj for public testing of AntDesign-based applications

* docs: added CN and EN docs about TestKit

* fix doc translate

* change the directory structure

Co-authored-by: Patryk Grzelak <pgrzelak@mutate.app>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-04 21:37:06 +08:00