Commit Graph

167 Commits

Author SHA1 Message Date
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
James Yeung
61bfb037a3
fix(module: radio): infinite loop render after changing the bind value out of the optons. (#3287) 2023-06-05 12:36:13 +08:00
Jtfk
33032f7b76
fix(module: tree): fix IList DataSource cannot be modify in place (#3275)
* fix(module: tree): skip `ToList()` when type is `IList`

This allow DataSource to be modify by TreeNode draggable methods.

* test(module: tree): add test for TreeNode modify DataSource
2023-06-04 16:30:48 +08:00
trafium
9080423ee4
fix(module: drawer): Add type="button" to Drawer close button. (#3233)
* Fix: Add `type="button"` to Drawer close button.

Without this close button triggers form submit if drawer is defined within form.

* Fix tests

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
Co-authored-by: Dmitri Afanasjev <dafanasjev@microsoft.com>
2023-05-06 08:57:57 +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
Key Roche - WSS
9c69ef4061
feat(module: mentions): Add ability to customize the rendering (#3178)
* feat(module: mentions): Add ability to customize the rendering of the textarea. This allows using the TextArea component if you want its extended functionality. Add tests. Update demos.

* fix test

* fix test

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2023-04-08 14:23:20 +08:00
James Yeung
ab3e3c0844
feat(module: typography): refactor & support editable (#3173)
* feat(module: typography): support editable

* fix tests
2023-04-06 23:14:27 +08:00
Alex Kryvdyk
478420714c
fix(module: datepicker): DisabledDate does not affect keyboard input (#3134) 2023-02-26 21:57:01 +08:00
James Yeung
d3f9596201
Revert "feat(module: overlay): support avoid show/hide in OnVisibleChange (#3094)" (#3112)
This reverts commit 0289f1433b.
2023-02-18 11:12:35 +08:00
Key Roche - WSS
bcd2c57004
fix(module: Textarea): Fix Textarea not rendering maxlength on textarea (#3108) 2023-02-16 18:46:45 +08:00
James Yeung
fdd52e43a0
fix(module: radio): can't selected radio while radio list and value was changed at the same time (#3098)
* fix(module: radio): can't selected radio while radio list and value was changed at the same time

* add tests
2023-02-13 23:20:11 +08:00
James Yeung
0289f1433b
feat(module: overlay): support avoid show/hide in OnVisibleChange (#3094) 2023-02-13 23:08:16 +08:00
agolub-s
323efdea76
fix(module: calendar): wrong selected date (#3069) 2023-02-07 00:03:32 +08:00
Key Roche
b00d055045
tests(module: Link, Paragraph, Text, Title): Add tests for typography components (#3067) 2023-02-06 13:53:56 +08:00
zxyao
2ee386b30a
fix(module: drawer): mask not disappear (#3059)
* fix(module: drawer): mask not disappear

* fix: unit test

* fix: remove lut config
2023-02-03 14:51:56 +08:00
Leon
33cf431548
fix(module: select): Protected selected items' selection sequences; (#3037)
* Protected selected items' selection sequences;

* Modify;

* fix tests
2023-01-30 18:36:30 +08:00
James Yeung
ec25f008ee
fix(module: ResizeObserver): work incorrectly cause by wrong key type (#3030)
* fix(module: ResizeObserver): work incorrectly cause by wrong key type

* fix test

* fix build
2023-01-20 00:28:13 +08:00
James Yeung
b56515f2aa
fix(module: Overlay): overlay show after mouse leave trigger (#3025)
* fix(module:OverlayTrigger): overlay show after mouse leave trigger(#2107)

* fix test

Co-authored-by: JustGentle <justgentle@sina.com>
2023-01-19 12:00:16 +08:00
James Yeung
06d5169bc9
fix(module: menu): submenu montion & style (#3024)
* fix(module: menu): submenu open montion & style

* fix test
2023-01-18 18:44:57 +08:00