Commit Graph

231 Commits

Author SHA1 Message Date
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
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
c9d95e31a8
feat(module: ReuseTabs): support separate the tab from the page (#3467)
* feat(module: ReuseTabs): support separate the tab from the page

* fix event invoke

* disable reuse for pages

* missing ScanReuseTabsPageAttribute

* fix ReusePages in ReuseTabs

* avoid loop ref
2023-10-29 16:52:01 +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
James Yeung
686ab39c86
chore: remove AuthorizeReuseTabsRouteView component and library (#3437) 2023-09-22 00:36:01 +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