ant-design-blazor/components/table
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
..
FilterExpression fix(module: table): ignore milliseconds when applying the datetime filter (#1864) 2021-08-24 15:43:00 +00:00
Internal merge 0.8.1 to feature 2021-05-16 19:58:03 +08:00
style chore: sync ant-design v4.16.0 (#1569) 2021-05-25 10:01:53 +08:00
TableModels feat(module: table): add CellData for CellRender (#1907) 2021-09-02 12:34:30 +08:00
ActionColumn.razor feat(module: table): add CellData for CellRender (#1907) 2021-09-02 12:34:30 +08:00
ActionColumn.razor.cs fix(module: table): not automatically load with ActionColumn (#1883) 2021-08-28 14:10:39 +08:00
Column.razor feat(module: table): add CellData for CellRender (#1907) 2021-09-02 12:34:30 +08:00
Column.razor.cs feat(module: table): add CellData for CellRender (#1907) 2021-09-02 12:34:30 +08:00
ColumnBase.cs feat(module: table): add CellData for CellRender (#1907) 2021-09-02 12:34:30 +08:00
ColumnContext.cs fix(module: table): avoid OnChange being called multiple times during initialization (#1855) 2021-08-21 01:34:25 +08:00
IColumn.cs feat(module: table): fixed header & columns (#954) 2021-01-09 23:57:31 +08:00
IFieldColumn.cs feat(module: table): add filters (#1178) 2021-02-27 23:55:48 +08:00
ISelectionColumn.cs fix(module: table): clear cached items that are not on current page (#442) 2020-08-01 23:45:48 +08:00
ITable.cs fix(module: table): fix initial load and render (#1835) 2021-08-13 17:49:16 +08:00
Selection.razor feat(module: table): add CellData for CellRender (#1907) 2021-09-02 12:34:30 +08:00
Selection.razor.cs fix(module: table): not automatically load with ActionColumn (#1883) 2021-08-28 14:10:39 +08:00
SummaryCell.razor feat(module: table): add CellData for CellRender (#1907) 2021-09-02 12:34:30 +08:00
SummaryRow.razor feat(module: table): add summary (#1218) 2021-03-31 19:02:57 +08:00
Table.razor pref(module: table): put fixed column style into js (#1897) 2021-09-01 00:13:19 +08:00
Table.razor.cs perf: avoid memory leak issue of event listener (#1857) 2021-09-09 12:56:11 +08:00
Table.razor.Pagination.cs fix(module: table): add RemoteDataSource (#1558) 2021-06-15 16:13:06 +08:00
Table.razor.RowData.cs feat(module: table): support for tree data (#771) 2020-11-09 22:17:27 +08:00
Table.razor.Selection.cs fix(module: table): fix selection clear (#1632) 2021-06-15 18:22:07 +08:00
TableFilter.cs feat(module: table): add TheSameDateWith condition operator for DateTime column (#1856) 2021-08-22 23:03:47 +08:00
TableLocale.cs feat(module: table): add TheSameDateWith condition operator for DateTime column (#1856) 2021-08-22 23:03:47 +08:00
TableSize.cs fix(module: table): add header style and fix the table size (#909) 2020-12-23 00:47:35 +08:00