Commit Graph

809 Commits

Author SHA1 Message Date
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
Maksim
5b9d701114 feat(module: InputNumber): Add inputmode for mobile keyboard (#1923) 2021-09-08 12:51:50 +08:00
Maksim
fae8cf5178 fix(module: button): loading icon styles (#1902)
* Fix loading icon styles

* Fix button render test
2021-09-07 13:36:24 +00: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
Luke Parker [SSW]
52bc8ecdb4 fix(module: input): Add stop propagation (#1917) 2021-09-06 06:19:09 +00:00
Andrzej Bakun
de69cc5dd5 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
2021-09-05 18:13:38 +08:00
James Yeung
ee845b906a feat(module: table): add CellData for CellRender (#1907) 2021-09-02 12:34:30 +08:00
James Yeung
7556db9de8 pref(module: table): put fixed column style into js (#1897)
* pref(module: table): put fixed column style into js

* fix resize listene
2021-09-01 00:13:19 +08:00
Alan.Liu
f8e3fe159d fix(module: form): remove FormItem from Form when it was disposed (#1901) 2021-08-31 22:46:15 +08:00
anranruye
5cfbb80ddb fix(module: table): fix the format issue of datetime samedate filter (#1889) 2021-08-29 14:18:04 +08:00
zxyao
8301230bda fix(module: modal): auto focus the ok button and remove the focus of the trigger button (#1838)
* fix: second opening of focus in modal fails if DestroyOnClose is false

* fix: confirm cannot get focus element

* fix: set ConfirmAutoFocusButton is OK

* fix: module ImagePreview cannot close on second click

* fix: blur active element when comfirm focus element is disabled
2021-08-28 15:28:50 +00:00
James Yeung
fb1c1fc1a6 fix(module: table): not automatically load with ActionColumn (#1883)
Fixed an issue where a table would not automatically load after initialization when an ActionColumn was used.
2021-08-28 14:10:39 +08:00
Nikolay Krondev
656d31237e fix(module: table): call StateHasChanged in InternalReload (#1874) (#1875) 2021-08-28 03:59:11 +00:00
Maksim
cddfca399d feat(module: breadcrumb): add Href parameter and overlay dropdown (#1859)
* Setup breadcrumb dropdown

* Setup breadcrumb href

* fix dropdown style

* fix dropdown trigger class

* fix tests

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-08-28 03:07:46 +00:00
Guyiming
a9e0feb3b6 feat(module: menu): Add IconTemplate for menu item (#1879) 2021-08-27 22:13:43 +08:00
Stefano Driussi
ce7b60b3eb fix(module: tag): rename CheckedChange to CheckedChanged (#1876)
* Update Tag compliance with Blazor conventions

Add the missing 'd' to CheckedChanged callback in order to properly support two ways binding on the Checked property

* Fix references to renamed method in Tag component

* Update tests for Tag

Co-authored-by: Stefano Drussi <stefano.driussi@hotmail.it>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-08-27 06:51:18 +00:00
Andrzej Bakun
ef0b690331 fix(module: autocomplete): overlay is showing for AutoCompleteSearch (#1860)
* fix(module:autocomplete): overlay is showing for AutoCompleteSearch

* translate comments

* code cleanup

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2021-08-26 16:44:47 +00:00
James Yeung
5dfcb8c03f fix(module: input-number): default value binding (#1871)
* fix(module: input-number): default value binding

* fix default value
2021-08-26 12:51:10 +08:00
SmallY
f17797d14d fix(module: table): ignore milliseconds when applying the datetime filter (#1864)
* remove milliseconds when filtering

* remove the milliseconds when set the datetime filter value

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-08-24 15:43:00 +00:00
Andrzej Bakun
d858b7e23d fix(module: checkbox): option change does not lock checkboxes (#1863) 2021-08-23 21:20:39 +08:00
SmallY
7a1ae1a285 feat(module: table): add TheSameDateWith condition operator for DateTime column (#1856)
* use date in datetime filter

* fix spelling errors

* Restore changes and add Date and Month FilterCompareOperator

* hide time when filter date or month

* Remove the month FilterCompareOperator

* add locale data

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-08-22 23:03:47 +08:00
James Yeung
f89dfa23c0 fix(module: table): didn't refresh when using client side data source (#1858) 2021-08-22 22:35:42 +08:00
James Yeung
fa99d6e8fa fix(module: table): avoid OnChange being called multiple times during initialization (#1855)
* fix(module: table): avoid OnChange being called multiple times during initialisation

* fix indent
2021-08-21 01:34:25 +08:00
Noah Potash
9925cf288b feat(module: upload): add method parameter (#1853)
* add method parameter to upload component
* update documentation
* add test

Co-authored-by: Noah Potash <noah.potash@outbreaklabs.com>
2021-08-21 01:25:38 +08:00
James Yeung
552d7c946a fix(module: table): prevent propagation of expand button click events (#1850) 2021-08-18 00:25:33 +08:00
James Yeung
482e4a7f45 fix(module: tree): SelectedNodeChanged would be fired twice twice (#1849) 2021-08-17 23:36:10 +08:00
JohnHao421
53027c0221 fix(module: tag): Tag component style parameters are not rendered (#1847)
* fix(module: tag): Tag component style parameters are not rendered (#1846)

* fix(module: tag): change call GetStyle  in OnParameterSet

Co-authored-by: haojiajun <haojiajun@vanelink.net>
2021-08-17 22:15:17 +08:00
James Yeung
992e911b50 fix(module: menu): menu item click event should be triggered when menu selectable is false (#1843) 2021-08-15 23:03:29 +08:00
James Yeung
5b4b49a7bc fix(module: checkbox): checked state didn't follow the value change (#1841) 2021-08-15 01:18:47 +08:00
Simon Cropp
b067385d79 chore: remove redundant semi-colons (#1812)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-08-13 23:26:58 +08:00
James Yeung
dc3ae6d1dc fix(module: table): fix initial load and render (#1835)
* fix(module: table): fix initial load and render

* delete the useless method
2021-08-13 17:49:16 +08:00
anranruye
95fe33e681 fix(module: table): missing showTime of built-in datetime filter (#1827)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-08-09 15:51:13 +00:00
James Yeung
da077558f9 fix(module: input-number): OnChange cannot be triggered during keyboard input (#1830) 2021-08-09 22:50:55 +08:00
anranruye
7d34189ab9 fix(module: date-picker): remain millisecond value when change the picker value (#1829) 2021-08-09 21:13:22 +08:00
James Yeung
bc6395d0aa fix(module: auto-complete): turn off the input autocomplete attribute (#1825) 2021-08-08 18:58:16 +08:00
anranruye
6fe013eb32 fix(module: table): use "or" filter condition for List type built-in filter (#1804)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-08-08 17:59:45 +08:00
Andrzej Bakun
dc7bd3d821 fix(module: upload): basic functionality restored (#1824) 2021-08-08 17:13:39 +08:00
James Yeung
bd1250b8fe fix(module: table): missing sorter model on first change (#1823) 2021-08-08 00:39:48 +08:00
lukblazewicz
6bcf774718 fix(module: date-picker): fix ShowToday when ShowTime is true (#1819)
Co-authored-by: Łukasz Błażewicz <lukasz.blazewicz@homebook.pl>
2021-08-06 20:26:30 +08:00
James Yeung
900be7da88 fix(module: layout): fix OnBreakpoint and OnCollapse only when they was changed (#1815) 2021-08-05 21:40:37 +08:00
anranruye
26848ce9b4 fix(module: calendar): fix header select width (#1801)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-08-01 13:09:53 +00:00
anranruye
7e7d679dbb fix(module: date-picker): update resource files (#1800)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-08-01 11:26:12 +00:00
anranruye
50f9ee4295 fix(module: overlay): use right positioning for bottom-right placement (#1799) 2021-08-01 18:52:43 +08:00
anranruye
bb6d32e940 fix(module: overlay): fix overlay position when container element has border (#1797) 2021-07-31 23:12:48 +08:00
Andrzej Bakun
6a6a12175f fix(module: RangePicker): ShowTime issues addressed (#1788)
* fix(module:rangePicker): year & month skip

* fix(module:rangePicker): extra space removed on 2nd picker

* fix(module:rangePicker): when ShowTime, click on OK moves to other picker

* fix(module:rangePicker): adjust year skip button

* fix(module:rangePicker): focus issue resolution

* fix(module:rangePicker): remove incorrect value from input

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-07-31 10:53:53 +00:00
James Yeung
1c0a34ff0f feat(module: tree): bring SearchExpression back (#1796) 2021-07-31 00:32:45 +08:00
anranruye
f47d986f2a fix(module: table): fix cascading table in column (#1732)
* fix(module: table): fix cascading tables

* Update Column.razor

* Update Column,razor

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-07-30 16:12:22 +00:00
zxyao
0703169f4a fix(module: modal): error when confirm TaskCompletionSource SetResult repeat (#1795)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-07-30 15:53:49 +00:00
lukblazewicz
c9350d55fd fix(module: tree): one more fix to parent checkbox state calculation (#1781) (#1794) 2021-07-30 21:54:33 +08:00