Граф коммитов

242 Коммитов

Автор SHA1 Сообщение Дата
James Yeung 451dd5ce86
chore: update the building staff to .NET 9 target (#4335)
* chore: update the building staff to .NET 9 target

* Update AntDesign.TestKit.csproj
2024-11-18 06:32:26 -08:00
James Yeung aeac4a0cff
fix(module: overlay): dropdown should follow the scrolling with trigger (#4285)
* fix(module: overlay): dropdown should follow the scrolling with trigger

* fix comment

* fix test

* fix scrolling in modal
2024-10-21 13:33:41 +08:00
rhodon-jargon 136828fdc3
feat(module: input): Allow overriding when clear button is shown (#4221)
* feat(module: input): Allow overriding when clear button is shown

* fix(module: input): Fix doc comments for ShowClear

---------

Co-authored-by: Rhodon <rhodonvantilburg@gmail.com>
2024-09-21 01:18:46 +08:00
James Yeung 65ae78f904
fix(module: tabs): draggable and contextmenu incottectly (#4199)
* fix(module: tabs): draggable and context menu

* update position after exchange

* only update scroll list position when active tab is not the last one

* refactor navigate

* update doc

* fix test
2024-09-13 22:39:40 +08:00
James Yeung 5598edf584
fix(module: drawer): closing effects (#4166)
* fix(module: drawer): closing effects

* fix build

* fix events

* fix test

* fix overflow hidden

* fix test
2024-09-07 18:29:28 +08:00
ysj265 94dfdfe447
fix(module: card): where the Tabs under the Card cannot remember the input status (#4164)
* Fix the issue where the Tabs under the Card cannot remember the input status

* optimize performance

* Simplified writing style

* Revert "Simplified writing style"

This reverts commit 44ce256b0c.

* Simplified writing style

* Fix test case(Card.Render.Tests.razor)
2024-09-05 12:46:55 +08:00
James Yeung 81ce25c34e
test: add badge tests (#4145)
* add basic test

* fix tests
2024-09-01 19:46:06 +08:00
James Yeung dc1188dfc1
fix(module: tabs): dnd and reorder (#4147)
* fix(module: tabs): dnd and reorder

* update ink position after dnd

* fix position

* fix card tabs

* fix ink render

* fix test

* fix tests

* clean

* fix tests
2024-09-01 14:33:24 +08:00
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
Key Roche 4ad8e7ceab
docs: enhance documentation automation (#3013)
* Documentation automation. Build will generate documentation based on XML comments and attributes in the library. Translation will be done where necessary to generate the Chineese site.

Did some small code clean up on the way.
Removed or removed from public APIs:

AnchorLink.LinkDom
Button.RemoveAnimationAfter
Button.Icons - never used
Calendar.PrefixCls
All date pickers - method OnOkClick
Descriptions.Items
ListItem.PrefixName
AntList.PrefixName
ListItemMeta.PrefixName
Menu.Submenus
Menu.MenuItems
Transfer.ChildContent
Table.ColumnContext
Space.SetClass
Steps.Handler
Radio.OnClick

* Add Azure translation service. Requires adding your own key to a private appsettings JSON file to translate locally with it.

* Make translation services return null when unable to translate, have cache not cache it and return text asked to translate.

* Update documentation markdown file for new translation service

* Update DOCUMENTATION.md

* fix datepickerbase

* fix tree-select

* add docs for Flex and Watermark

* add zh

* add UserSecrets

* fix keywords

* fix button doc

* fix page

* fix internals visible to

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2024-08-25 14:37:41 +08:00
pankey888 a2f1ea3587
feat(module: upload): Disable the tooltip of the input component inside UpdateButton. (#4096)
* feat(module: upload): Disable the tooltip of the input component inside UpdateButton.

* fix test

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2024-08-20 22:27:11 +08:00
James Yeung 04b4b47b94
fix(module: form): validation attributes transfer (#4084)
* fix(module: form): validation attribute transfer

* add missing required parameter to rules

* fix enum validate messages

* fix test

* fix field type

* fix test

* fix test

* fix test
2024-08-12 10:02:56 +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
三寸月光 d6d45054be
feat(module: form): Add support to set ValidationMessages. (#4014)
* fix(module: form): invoke BuildEditContext,but formitem's CurrentEditContext is not update (#4013)

* feat(module:form): Add support to update model's ValidationMessages. (#4006)

* refactor

* update demo

* update demo

* fix test

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2024-08-06 23:13:28 +08:00
James Yeung 1bb97814ca
feat(module: form): using built-in i18n for validation message (#4058)
* feat(module: form): add locale for validation message

* replace the placeholder

* replace the validation message with localization

* fix test

* allow user defind attributes
2024-08-05 16:28:39 +08:00
James Yeung b86403b384
fix(module: modal): fix navigating exception (#4039)
* Revert "fix(module: modal): stete updating (#4022)"

This reverts commit 8e119a9bf5.

Revert "fix(module: modal): throwing exceprion when navigation after open (#4015)"

This reverts commit 49cadeebca.

* fix navigating excepition

* fix some issue again

* fix confirm

* makes deleting the dom safer

* fix test

* fix test

* fix lint
2024-07-29 23:13:49 +08:00
James Yeung 0826e593db
fix(module: input): can't apply Class to input element (#4005)
* fix(module: input): can't apply Class to input element

* add tests

* fix test

* fix test
2024-07-23 12:36:29 +08:00
James Yeung 245eb1035d
Changelog 0.19.5 (#3979)
* changelog 0.19.5

* update

* update

* fix test

* fix test

* fix test
2024-07-15 19:22:16 +08:00
James Yeung 2286639039
fix(module: tabs): update the style of ink after tab title is changed (#3978)
* fix(module: tabs): update the style of ink after tab title is changed

* fix test

* fix test

* fix test

* fix test

* fix tests
2024-07-15 08:29:01 +08:00
agolub-s 22a71d319e
fix(module: form): fix null reference exception (#3967)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2024-07-11 13:48:25 +08:00
WoogaAndrew 4e76924eac
fix(module: select): Set parameters asynchronously (#3912)
This commit adds the AntInputComponentBase.OnValueChangeAsync method and updates the Select module to use OnParametersSetAsync instead of OnParametersSet with the new OnValueChangeAsync. This change ensures that exceptions thrown from user event callback handlers will be caught as they now have an ambient Task instance to report the exceptions on.
2024-06-19 23:06:12 +08:00
Jtfk 23c6160bf5
fix(module: InputNumber): Fix nullable floating types not round with "Precision" set (#3868)
* fix(module: InputNumber): Fix nullable floating types not round with "Precision" set

* test(module: InputNumber): Add test for nullable floating types with Precision
2024-05-16 19:41:55 +08:00
James Yeung 43b38b45f3
fix(module: select): EnumSelect throwing exception cause by nullable enum type (#3859) 2024-05-12 13:02:27 +08:00
James Yeung 7081c02af8
fix(module: rangepicker): value binding was confilct with enum select (#3856)
* fix(module: rangepicker): value binding was confilct with enum select

* update enum select for flags

* fix test
2024-05-09 23:14:57 +08:00
jeffersyuan1976 73168930c1
fix(module: upload): add ShowUploadList, showDownloadIcon, showRemoveIcon, showPreviewIcon (#3788)
* Fix ShowUploadList, showDownloadIcon, showRemoveIcon, showPreviewIcon

* Fix ShowUploadList, showDownloadIcon, showRemoveIcon, showPreviewIcon

* fix: split ShowUploadList Parameter type to ShowPreviewIcon, ShowDownloadIcon, ShowRemoveIcon

* fix: Modify test for Upload

* remove useless changes

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2024-05-07 12:46:34 +08:00
pankey888 f2c623d1c8
feat(module: select): Support using 'bind-Value' to get or set multiple enumeration values with the Flags attribute (#3843)
* feat(module: EnumSelect): Support using 'bind-Value' to get or set multiple enumeration values with the Flags attribute. (#3842)

* refactor

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2024-05-07 00:49:18 +08:00
James Yeung 70f6e65b21
fix(module: reuse-tabs): shouldn't auto navigate to the first pinned tab (#3825)
* fix(module: reuse-tabs): shouldn't auto navigate to the first pinned tab

* update the doc
2024-04-26 01:37:04 +08:00
James Yeung 68e7f6a29f merge feature to master 2024-04-22 22:55:57 +08:00
Miguel Marques d638c1ba57
fix(module: select): List order after datasource change (#3806)
* fix list order after datasource change

* Consider when IgnoreItemChanges is true

* test: add unit tests for this case
2024-04-19 08:23:08 +08:00
James Yeung 5b406496f6
feat(module: reuse-tabs): make the Page of ReuseTabsService public. (#3800)
* feat(module: reuse-tabs): make the Page of ReuseTabsService public.

* fix build
2024-04-15 21:32:43 +08:00
James Yeung 698ae84ab1
feat(module: checkbox): support generic value (#3715)
* feat(module: checkbox): support generic value

* fix tests

* fix test

* fix name

* fix tests

* fix tests
2024-04-02 22:15:48 +08:00
bgraham123 2da7ff240e
refactor: Update TextArea.razor.cs (#3716)
* refactor: Update TextArea.razor.cs


Updated TextAreaInfo to be a public class so that JSInterop calls can be setup for unit tests.

Closes #3714

* refactor: Update TextArea.razor.cs

Remove TextAreaInfo class from TextArea.razor.cs and define in new file with namespace AntDesign.Internal

* refactor: Create TextAreaInfo.cs

Remove TextAreaInfo class from TextArea.razor.cs and define in new file with namespace AntDesign.Internal

* refactor: Update TextArea.razor.cs

Add AntDesign.Internal using statement for TextAreaInfo class

* refactor: Update TextAreaTests.razor

Use the AntDesign.Internal namespace for TextAreaInfo
2024-03-31 22:06:25 +08:00
agolub-s 03ffbad0aa
fix(module: select): clearing input in Select when value selected via search (#3726) 2024-03-15 06:52:19 +08:00
James Yeung 09cf07439f
fix(module: form): cause exception while has no FieldIdentifier (#3717)
* fix(module: form): cause exception while has no FieldIdentifier

* clean
2024-03-09 17:28:17 +08:00
jxcproject d4270a9eae feat(module: tabs): add CreatePage method for reusetabs (#3671)
* Update ReuseTabsService.cs

pr3660

* Update ReuseTabsService.cs

* Update ReuseTabsService.cs

* refactor

* fix build error

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2024-02-29 23:50:50 +08:00
Magehernan 5d530947ff feat(module: select): Add FilterExpression on select for customize how to filter when searching (#3656)
* Add FilterExpression on select for customize how to filter when searching

* Remove CultureInfo as parameter for filter.

Update example and documentation.

* Change FilterExpression to send the SelectOptionItem instead of the label to have more options to make the search.

* Add test for filterExpression to check is working fine with the default and custom.
2024-02-29 23:50:50 +08:00
edwardbarford d6f88c2bb4
fix(module: select): run OnValueChange from OnParametersSet when form ValidateOnChange = true (#3703)
When the parent Form has ValidateOnChange = true the OnValueChange method needs to be executed
when OnParametersSet executes in order to set the newly selected
option.
2024-02-27 22:13:38 +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
James Yeung f60e9f67d0
fix(module: select): test case by SearchDebounceMilliseconds (#3591) 2023-12-26 01:14:46 +08:00
James Yeung 42c8304222
Merge pull request #3590 from ant-design-blazor/feature
Merge feature to master
2023-12-26 00:02:52 +08:00
MarvelTiter_yaoqinglin 4451315af1
feat(module: select): add LabelProperty, ValueProperty and DisabledPredicate as expression-style api (#3569)
* fix(module: select):add parameter for SelectOption component which should be used when SelectOption was created directly and TItem is different with TItemValue

* feat(module: select): add parameter that support use delegate to set option label and value

* rename XXXGetter to OptionXXXExpression

* rename OptionXXXExpression to OptionXXXProperty

* refactor

* fix tests

* fix test

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2023-12-25 23:23:04 +08:00
James Yeung a790691187
feat(module: radio): add button style support for RadioGroup with options (#3589)
* feat(module: radio): add button style support for RadioGroup with options

* fix test
2023-12-25 22:40:28 +08:00
James Yeung befc310746
fix(module: input): textarea missing rows attribute (#3561)
* fix(module: input): textarea missing rows attribute

* fix tests
2023-12-23 14:38:37 +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 4b8d70401e
feat(core): setup JS initializers (#3557)
* feat(core): setup js initializers

* remove the script importing section from docs
2023-12-21 22:09:41 +08:00
Noah Potash dade3d08e1
fix(module: upload): Use System.IO.Path.GetExtension instead of Substring to support filenames without extensions (#3553) (#3554)
Co-authored-by: Noah Potash <noah.potash@outbreaklabs.com>
2023-12-07 08:33:12 +08:00
Yury Zuev cb47c1a244
fix(module: textarea): missing disabled style affix-wrapper-disabled doesn't append" (#3538)
* fix: when TextArea in disabled state the "affix-wrapper-disabled"
   didn't append to span

Co-authored-by: Yuriy Zuev <yuriy.zuev@swtecnn.com>
2023-12-07 00:11:13 +08:00
James Yeung b25ce24c42
fix(module: select): clear selectd option when the default value isn't in the options (#3529)
* fix(module: select): clear selectd option when the default value isn't in the options

* add a test
2023-12-03 21:34:34 +08:00
James Yeung 6a0bb0b26b merge master to feature 2023-11-19 17:48:04 +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