* 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>
* feat(module: upload): Disable the tooltip of the input component inside UpdateButton.
* fix test
---------
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* 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
* feat(module: form): add locale for validation message
* replace the placeholder
* replace the validation message with localization
* fix test
* allow user defind attributes
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.
* fix(module: InputNumber): Fix nullable floating types not round with "Precision" set
* test(module: InputNumber): Add test for nullable floating types with Precision
* 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>
* 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
* 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.
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.
* 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>
* fix:(module:datepicker): ArgumentOutOfRangeException in TimePicker
* fix the issue
* add: TimePicker unit tests
---------
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* fix(module:datepicker): RangePicker focus not cleared
* fix:(module:datepicker): Enter/Tab keys clear the value
* fix:(module:datepicker): remove invalid unit test
* 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>
* 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>
* 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>