Commit Graph

185 Commits

Author SHA1 Message Date
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
三寸月光
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
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
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
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
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
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
Alex Kryvdyk
ed0e864946
fix(module: datepicker): ArgumentOutOfRangeException in TimePicker (#3501)
* fix:(module:datepicker): ArgumentOutOfRangeException in TimePicker

* fix the issue

* add: TimePicker unit tests

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2023-11-12 16:30:07 +08:00
Key Roche
161aef5507
feat(module: mentions): Add dynamic async loading of mentions (#3503)
* Add dynamic async loading of mentions along with more tests.

* Make symbol a parameter
2023-11-09 19:58:53 +08:00
Alex Kryvdyk
46eba4291b
fix(module: datepicker): RangePicker focus not cleared (#3488)
* fix(module:datepicker): RangePicker focus not cleared

* fix:(module:datepicker): Enter/Tab keys clear the value

* fix:(module:datepicker): remove invalid unit test
2023-11-07 13:14:23 +08:00
James Yeung
ca773e02bd
test(module: layout): add test case for layout and sider (#3477) 2023-10-30 00:11:53 +08:00
James Yeung
54d821e6ec
fix(module: input): fix incorrectly validation and required message (#3474)
* fix(module: input): fix incorrectly validation and required message

* add tests
2023-10-29 16:34:02 +08:00
James Yeung
27b9084a52 merge feature to master 2023-10-22 19:35:09 +08:00
Alex Kryvdyk
6b0a8f45de
feat(module: datepicker): Add DateTimeOffset, DateOnly, TimeOnly support (#3443)
* fix:(module:datepicker): OnChange event in Docs project

add(module:datepicker): generic OnPanelChange event

add(module:datepicker): generic OnChange event

fix(module:datepicker): DateTimeKind is not preserved

add(module:datepicker): DateTimeOffset unit tests

add(module:datepicker): add DateTimeOffset to range picker unit tests

add(module:datepicker): refactor unit tests

fix(module:datepicker): DateTime.Kind is not preserved

feat(module: datepicker). Add DateTimeOffset, DateOnly, TimeOnly support

* fix(module:datepicker): unit test fails

* fix: moment helper test fails in VS Test Explorer in some cases

See https://xunit.net/faq/theory-data-stability-in-vs

* update the docs and demo

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2023-10-19 00:44:03 +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
agolub-s
766045ce64
fix (module: select): Fix showing the arrow in SelectContent when mode is multiple (#3430)
* Fix showing the arrow in SelectContent when mode is multiple

* Fix naming
2023-09-20 06:59:57 +08:00
Brian Weiss
26b4d948c0
feat(module: tabs): support keyboard navigation (#3320)
* fix(module: tabs): Add support for "Enter" pressed on tab.

* Fix formatting.

* Remove white space

* support arrow key navigating

* fix tests

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2023-08-20 00:55:44 +08:00
agolub-s
b329aa68d0
feat(module: datepicker): Add 'ChangeOnClose' to apply the entered value when the panel is closed (#3087)
* Add EnterOnBlur for DatePickerBase. Add clear value on input empty value when AllowClear.

* Fix click on suffix icon in Calendar.

* Add docs

* Add support multiple date formats for DatePickerBase

* Fix docs

* Fix docs

* Fix docs

* Fix

* Fix

* Fix test

* Extend docs

* Revert "Add support multiple date formats for DatePickerBase"

This reverts commit 179667d0

* rename ChangeOnBlur

* rename ChangeOnClose

* Fix tests

* Fix review

* Fix docs

* Fix build

* Fix tests

* fix docs

* fix docs

* revert doc

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
Co-authored-by: Aleksandr Golub <deanornys@gmail.com>
2023-08-15 23:44:33 +08:00
James Yeung
9826983a8f
fix(module: checkbox): passing disabled value to templated options from checkbox group (#3365)
* fix(module: checkbox): passing disabled value to templated options from checkbox group

* fix tests
2023-07-27 22:48:11 +08:00
Luuk Glorie
ed68adf35e
feat(module: select): add AutoFocus to select base component (#3375)
Add AutoFocus to select components to provide same functionalty as other input components
2023-07-27 22:23:58 +08:00