Commit Graph

130 Commits

Author SHA1 Message Date
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
8985e45ed7
fix(module: textarea): add missing borderless style (#3975) 2024-07-13 21:41:52 +08:00
James Yeung
81aecf68b3
feat(module: table): add support custom attributes for filter inupt (#3897)
* feat(module: table): add support custom attributes for filter inupt

* add input width

* update docs

* add setter
2024-06-20 23:22:33 +08:00
James Yeung
0faa05ca8d
fix(module: form): shouldn't validate until submit in non-validate-on-change (#3812)
* fix(module: form): shouldn't validate until submit in non-validate-on-change

* fix style

* fix test
2024-04-23 01:18:21 +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
James Yeung
e1ec721740 fix(module: form): tests failure (#3740) 2024-03-21 21:37:48 +08:00
James Yeung
9db45d18f4 feat(module: form): support for static SSR. (#3580)
* feat(module: form): form name attribute

* fix build error

* update the official files

* support ssr binding

* support formitem name

* fix name attribute value

* fix radio static checked style

* fix border

* fix less

* fix stop propagation

* fix field name
2024-03-21 21:37:48 +08:00
James Yeung
70212f6eb3
fix(module: input): hide the clear icon when the input was disabled (#3585) 2023-12-24 21:46:49 +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
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
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
bb0e043b07
fix(module: input): can't change value on blur when composition inputting (#3462) 2023-10-21 14:16:30 +08:00
Peter Ha
511d904cf7
feat(module: input): adds required attribute to input elements. (#3383)
* feat(module:input) adds required attribute to input elements.

when a form variable is decorated with the required validation, the required attribute is added to the input html

no breaking changes

* changed public to internal

* changed public to internal

* fixed null exception

---------

Co-authored-by: Peter Ha <peter.ha@roininconsulting.net>
2023-08-05 14:12:37 +08:00
Peter Ha
b5ff091f12
feat(module: input): when input fails validation, add the aria-invalid… (#3378)
* feat(module:input): when input fails validation, add the aria-invalid attribute

when an input fails validation, the aria-invalid attribute is added for accessibility

no breaking changes

* added check if attribute already added

* address unit test fail for placeholder

---------

Co-authored-by: Peter Ha <peter.ha@roininconsulting.net>
2023-08-05 14:11:16 +08:00
James Yeung
a49127c190
fix(module: input): incorrect html structure of TextArea icons (#3367)
* fix(module: input): incorrect html structure of TextArea icons

* fix tests
2023-07-27 08:14:58 +08:00
James Yeung
6f994d3b7d
docs: Optimize the performance of document navigation (#3347)
* docs: Optimize the performance of document navigation

* fix infinite loop

* add lock json files

* fix

* fix contributor list

* fix contributorlist
2023-07-11 23:38:58 +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
James Yeung
8dd3e41255
fix(module: input): avoid textarea call jsinterop before rendering (#3128) 2023-02-24 14:31:47 +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
3e9e90b980
Master merge feature 0.14
Master merge feature 0.14
2023-01-20 16:34:15 +08:00
James Yeung
c56873aac2 merge feature to master 2023-01-20 15:57:43 +08:00
James Yeung
2110791d93
feat(module: input): add ShowCount (#3033) 2023-01-20 00:45:36 +08:00
Abin Liu
95a4628c6d
feat(module: input): add EventCallback OnClear (#3020)
* feat(module: input): add EventCallback OnClear

add EventCallback OnClear to component Input<T> as a parameter
it is called when the input contents are cleared by clicking the clear icon

* remove duplicated onchange invoke

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2023-01-17 23:38:09 +08:00
James Yeung
95c4f13aa4
fix(module: form): validation status styles (#3005)
* fix(module: form): validation status styles

* fix validation change for input

* fix count

* add test
2023-01-13 23:27:35 +08:00
James Yeung
28453829a0
fix(module: input): wrong style of Search with clear button (#2991) 2023-01-07 23:03:06 +08:00
James Yeung
023a543bbd
fix(module: auto-complete): support input composition and debounce (#2988) 2023-01-06 17:01:09 +08:00
James Yeung
d1e1701c3d
fix(module: input): remove the debug content (#2972)
* fix(module: input): remove the debug content

* one more fix
2022-12-31 22:24:05 +08:00
James Yeung
da86abdaa5
fix(module: input): OnChange would trigger three times and clear icon would cover the suffix (#2970)
* fix(module: input): `OnChange` would trigger three times and clear icon would cover the suffix

* fix test
2022-12-31 15:28:03 +08:00
Dan Clarke
9f7964ecb9
fix(module: input): null reference exception (#2966)
This has been seen multiple times when using bUnit tests. For more information, see #2956.
2022-12-29 18:37:01 +08:00
James Yeung
2506b5dc2e
fix(module: input): when its value is changed in code, it would rollback on click (#2906) 2022-11-28 17:44:05 +08:00
James Yeung
ba60651b16
chore: sync ant-design v4.24.2 (#2877) 2022-11-24 23:11:02 +08:00
James Yeung
f14c3c3954
refactor(module: input): rename ChangeOnInput to BindOnInput (#2891)
* refactor(module: input): rename BindOnInput

* fix doc
2022-11-20 23:00:23 +08:00
James Yeung
1828406dec
fix(module: input): convert error status work incorrectly (#2846)
* fix(module: input): convert error status work incorrectly

* add test
2022-10-31 20:16:37 +08:00
James Yeung
2a59463f8e
feat(module: input): add ChangeOnInput, modify the default binding behavior to bind value in the onchange event (#2838)
* feat(module: input): add ChangeOnInput, modify the default binding behavior to bind in the onchange event

* fix can't change immediately when debounce milliseconds is 0

* add tests
2022-10-26 22:41:13 +08:00
James
24216bfa60
fix(module: form): neither input nor validation message was highlighted when not valid. (#2639)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2022-08-25 19:06:25 +00:00
James Yeung
3ac7701da4 merge master to feature 2022-08-21 22:53:33 +08:00
WhyILoveSpringRoll
02b0dd29b5
fix(module: input): OnChange will invoke twice when paste data to Input (#2592)
* 修复粘贴数据至input组件时,OnChange会触发两次的问题

* 修复Search组件无法触发Blur的问题
2022-08-13 12:28:10 +08:00
James Yeung
1659aef02d
chore: sync ant-design v4.20.7 (#2497)
* chore: sync ant-design v4.20.7

* fix style build

* clean the style

* fix dropdown overlay

* remove cdk styles

* fix dropdown overwrite styles

* fix doc styles
2022-06-04 00:44:34 +08:00
James Yeung
d739167f94
fix(module: table): null exception cause by event listener (#2448) 2022-05-15 12:45:43 +08:00
James Yeung
ef020b532b Revert "feat(module: form): Allow controls to be used in default EditForm (#2138)" (#2194)
This reverts commit aa200f925c.
2021-12-23 01:09:26 +08:00
Daniel Matthews
c7ee5c90c6 feat(module: form): Allow controls to be used in default EditForm (#2138)
* refactoring EditContext to be injected properly by both AndDesign.Form and EditForm.

* Allowing FormItem to be used in default EditF
2021-12-10 15:36:00 +08:00
Hao Sun
961a5ca02b fix(module: textarea): fix style string format and auto-size issues (#2001)
* fix(module:textarea): fix style string format

* seprate inner and outer style

* fix AutoSize

* fix custom style

* Update site/AntDesign.Docs/Demos/Components/Input/demo/Area.md

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* Move SetStyle to styleHelper

* Update TextArea.razor

* Update TextArea.cs

* fix unit test

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-10-29 13:30:52 +08:00
Andrzej Bakun
d843898cb8 tests: clean-up (#2050)
* tests: clean-up

* tests: missed warnings & exceptions fix

* build: comments fix

* docs: xml comments fixed to stop warnings
2021-10-22 12:45:00 +08:00
James Yeung
0ef438cc30 Merge 0.9.4 to feature (#1942)
* fix(module: form): remove `FormItem` from `Form` when it was disposed (#1901)

* pref(module: table): put fixed column style into js (#1897)

* pref(module: table): put fixed column style into js

* fix resize listener

* docs: Add building demo assets to the Readme (#1904)

* feat(module: table): add `CellData` for `CellRender` (#1907)

* docs: add dynamic table demo (#1908)

* feat(module: table): add dynamic data demo

* add scroll x

* fix(module: select): value no longer reset on datasource set (#1906)

* fix(module:select): value no longer reset on datasource set

* fix(module:select): dataSource change detection

* fix: improve datasource detection
add item & set value in SelectOption

* tests: scenario from issue #1207

* fix: DataSourceEqualityComparer default

* docs: Fixed typo (#1915)

* fix(module: input): Add stop propagation (#1917)

* docs(module: select): update coordinate demo (#1914)

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* fix(module: textarea): add rows parameter (#1920)

doc: adjust to match antD
tests: sizing tests

* test(module: select): Add some unit tests for Select (#1891)

* Add Select clear tests

* Add Select DataSource to null test

* Change the implement of Throw tests

* Change int to int?

* fix(module: button): loading icon styles (#1902)

* Fix loading icon styles

* Fix button render test

* feat(module: InputNumber): Add inputmode for mobile keyboard (#1923)

* perf: avoid memory leak issue of event listener (#1857)

* perf: avoid memory leak #1834

Avoid memory leak by remove the exclusive parameter and logic in the code block on AddEventListener method in DomEventService class.

The following are the components affected:
components/affix/Affix.razor.cs
components/anchor/Anchor.razor.cs
components/carousel/Carousel.razor.cs
components/core/Component/Overlay/Overlay.razor.cs
components/core/Component/Overlay/OverlayTrigger.razor.cs
components/core/JsInterop/DomEventService.cs
components/descriptions/Descriptions.razor.cs
components/dropdown/DropdownButton.cs
components/grid/Row.razor.cs
components/input/Input.cs
components/input/TextArea.razor.cs
components/layout/Sider.razor.cs
components/list/ListItem.razor.cs
components/select/Select.razor.cs
components/select/internal/SelectContent.razor.cs
components/slider/Slider.razor.cs
components/table/Table.razor.cs
components/tabs/Tabs.razor.cs

* fix override AddEventListener method in AntDesign.TestKit project

* add register/remove event listerner for exclusive use in DomEventService class

* move _dotNetObjects to DomEventListerner class/service, so that users not required to maintain it in each component.

* * move share/reuse dom event listerner methods to DomEventListerner class

* remove method 'AddEventListener' that no longer exists in DomEventService class in AntDesign.TestKit project

* * change the component referring to an IDomEventListerner interface instead of a concrete class,
  so that the component can be tested via a mock TestDomEventListerner.

* introduce DisposeShared and Dispose method in DomEventListerner to ease user remove callback from DomEventListerner

* register IDomEventListerner into DI container instead of create manually

* fix FormatKey

* fix FormatKey

* fix tests

* fix test

* fix test

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* fix(module: textarea): replace wrong event (#1927)

* tests(module: textarea): include js function mock to avoid bunit exceptions (#1930)

* perf(module: overlay): positioning moved to js (#1848)

* fix(module:overlay): move postion calculation to js

fixes #1836

* docs: TriggerBoundaryAdjustMode explanation

* docs: select & datepicker got BoundaryAdjustmetMode

cleanup

* test: fixes

optimization & cleanup

* fix(module:overlay): recalculate overlay position when trigger resizes

* Minor clean-up

* fix(module:overlay): wait for Show to finish in Hide

* fix: prevent vertical scrollbar on overlay adding

* fix: extract waiting function

* fix: overlay not to repostion when trigger vanishes (menu issue)

* fix: scroll adjustment for position: fixed

* fix: on menu mode change, keep

* merge conflict fix

* fix: nominal calculation reset on failed adjustment

* fix: bugs

* test: exclude log method from test coverage in overlay.ts

* fix(module: table): It would be load twice at first time if pagesize is not 10 (#1933)

* fix(module: menu): collapsed menu title can't hide while use router link (#1934)

* fix(module: select): fix data source of type IEnumerable<object> (#1932)

* fix(module:select): fix data source of type IEnumerable<object>

* Update Select.razor.cs

* Update Select.OnDataSourceChangeTests.razor

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* feat(module: InputNumber): Add OnFocus event (#1931)

* Add on textbox focus

* Adjust naming

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* fix(module: list): resposive style doesn't work (#1937)

* docs: Update index.zh-CN.md (#1936)

Update document ConfigProvider global configuration example code

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* change log 0.9.4 (#1938)

* chore: test cs project to include test runner adapter (#1939)

test: add general overlay disposal method mock

Co-authored-by: Alan.Liu <lxyruanjian@126.com>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
Co-authored-by: rabberbock <rabberbock@gmail.com>
Co-authored-by: Andrzej Bakun <anddrzejb@poczta.fm>
Co-authored-by: Chandan Rauniyar <chandankkrr@gmail.com>
Co-authored-by: Luke Parker [SSW] <10430890+Hona@users.noreply.github.com>
Co-authored-by: SmallY <45689960+iamSmallY@users.noreply.github.com>
Co-authored-by: Maksim <maksalmak@gmail.com>
Co-authored-by: Tony Yip <tonyyip1969@gmail.com>
Co-authored-by: SmRiley <45205313+SmRiley@users.noreply.github.com>
2021-09-14 22:00:55 +08:00
anranruye
915d35a513 Merge 0.9.4 to feature 2021-09-14 21:57:15 +08:00
James Yeung
29a5c26142 chore: sync ant-design v4.16.13 (#1862) 2021-09-14 20:21:39 +08:00
Andrzej Bakun
cb4a6471c5 fix(module: textarea): replace wrong event (#1927) 2021-09-09 13:44:08 +08:00
Tony Yip
4b04f09832 perf: avoid memory leak issue of event listener (#1857)
* perf: avoid memory leak #1834

Avoid memory leak by remove the exclusive parameter and logic in the code block on AddEventListener method in DomEventService class.

The following are the components affected:
components/affix/Affix.razor.cs
components/anchor/Anchor.razor.cs
components/carousel/Carousel.razor.cs
components/core/Component/Overlay/Overlay.razor.cs
components/core/Component/Overlay/OverlayTrigger.razor.cs
components/core/JsInterop/DomEventService.cs
components/descriptions/Descriptions.razor.cs
components/dropdown/DropdownButton.cs
components/grid/Row.razor.cs
components/input/Input.cs
components/input/TextArea.razor.cs
components/layout/Sider.razor.cs
components/list/ListItem.razor.cs
components/select/Select.razor.cs
components/select/internal/SelectContent.razor.cs
components/slider/Slider.razor.cs
components/table/Table.razor.cs
components/tabs/Tabs.razor.cs

* fix override AddEventListener method in AntDesign.TestKit project

* add register/remove event listerner for exclusive use in DomEventService class

* move _dotNetObjects to DomEventListerner class/service, so that users not required to maintain it in each component.

* * move share/reuse dom event listerner methods to DomEventListerner class

* remove method 'AddEventListener' that no longer exists in DomEventService class in AntDesign.TestKit project

* * change the component referring to an IDomEventListerner interface instead of a concrete class,
  so that the component can be tested via a mock TestDomEventListerner.

* introduce DisposeShared and Dispose method in DomEventListerner to ease user remove callback from DomEventListerner

* register IDomEventListerner into DI container instead of create manually

* fix FormatKey

* fix FormatKey

* fix tests

* fix test

* fix test

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-09-09 12:56:11 +08:00
Andrzej Bakun
6bc277c623 fix(module: textarea): add rows parameter (#1920)
doc: adjust to match antD
tests: sizing tests
2021-09-07 13:46:34 +08:00