Commit Graph

193 Commits

Author SHA1 Message Date
Hao Sun
c9d287e5fd feat(module: table): use small size Pagination for compacted table, add PaginationSize enum type (#2246)
* feat(module:table&pagination): use small size Pagination for compacted table, add PaginationSize enum type

* change TableSize to primitive enum type
2022-05-28 13:41:01 +08:00
Hao Sun
78b10019e4 feat(module: table): add table virtualization (#2143)
* feat(module:table): virtualizing

* turn off virtualizing by default

* add document and demo

* NET_6_0 => NET6_0

* update table selection

* update Table.razor.cs

* update table files

* Update table files

* update table files

* update table files

* update table files

* update table files

* update table files

* update table files

* update Virtualizing.razor

* Update AntDesign.csproj

* Update TableRow.razor

* update files

* Update AntDesign.csproj

* update table files

* update Virtualizing.razor

* add DefaultExpandMaxLevel

* rename Virtualizing to EnableVirtualization

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2022-05-28 13:41:01 +08:00
Hao Sun
ce1261e24f feat(module: table): improve pagination template (#2220) 2022-05-28 13:41:01 +08:00
James Yeung
5af937483a
fix(module: table): too length content in responsive mode will brace up the table (#2470) 2022-05-22 23:08:21 +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
ef7608283b feat(module: table): allow access field value from CellRender context (#2257) 2022-01-18 10:06:29 +08:00
Paolo del Mundo
56a44beab8 refactor(module: table): Use ASCII C instead of Cyrillic (#2253) 2022-01-14 10:54:57 +08:00
Hao Sun
569fa4a344 fix(module: table): trigger PageSizeChanged event before PageIndexChanged event (#2239) 2022-01-11 16:44:48 +08:00
James Yeung
a4648d37c5 feat(module: table): reload data with specific page index and size (#2072) 2021-10-31 14:23:03 +08:00
James Yeung
26d880f8ed fix(module: table): ReloadData() can't invoke OnChange (#2071)
* fix(module: table): optimized query API for EF

* fix table ReloadData() can't invoke OnChange
2021-10-29 22:32:46 +08:00
Andrew Goliyad
bfa12a72f3 feat(module: table): Add Align property for column (#2045)
* feat(module: table): Add Align property

* feat(module: table): Add Align property

* feat(module: table): Add Align property
2021-10-22 15:26:08 +08:00
SmallY
00b7093bee fix(module: table): Change the implement of RemoveMilliseconds (#1895)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-10-13 22:49:12 +08:00
Hao Sun
97d1ec43d9 fix(module: table): fix nullable built-in DateTime filter (#1964)
* fix(module:table): fix nullable date-time built-in filter

* Update DateFilterExpression.cs

* Update DateFilterExpression.cs

* Update DateFilterExpression.cs
2021-10-12 23:50:03 +08:00
anranruye
45b47d49b6 fix(module: table): fix selection (#1973)
* fix(module:table): can not select all

* fix(module:table): do not remain selection after change pageIndex

* Update table.raz
2021-10-10 21:44:21 +08:00
James Yeung
bc284d025e fix(module: table): tree data sort & filter (#1966)
* fix(module: table): tree data sort & filter

* fix code block indent
2021-09-23 09:22:37 +08:00
anranruye
7e14bdfdd2 perf(module: table): improve table selection (#1960) 2021-09-22 22:07:56 +08:00
James Yeung
105d40ba25 fix(module: table): incorrectly render on first loading (#1957) 2021-09-18 07:48:11 +08:00
James Yeung
c0c9d0a265 fix(module: table): label display incorrectly in responsive mode (#1952) 2021-09-17 20:34:14 +08:00
anranruye
915d35a513 Merge 0.9.4 to feature 2021-09-14 21:57:15 +08:00
James Yeung
9a1e6a8264 fix(module: table): It would be load twice at first time if pagesize is not 10 (#1933) 2021-09-11 14:04:03 +08:00
Andrzej Bakun
3d4f7adaaf 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
2021-09-10 19:06:50 +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
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
James Yeung
3a6902a2c9 merge 0.9.3 to feature 2021-08-29 15:32:27 +08:00
anranruye
5cfbb80ddb fix(module: table): fix the format issue of datetime samedate filter (#1889) 2021-08-29 14:18:04 +08: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
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
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
James Yeung
552d7c946a fix(module: table): prevent propagation of expand button click events (#1850) 2021-08-18 00:25:33 +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
ElderJames
71c53e1c9f merge 0.9.1 to feature 2021-08-13 17:22:52 +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
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
James Yeung
bd1250b8fe fix(module: table): missing sorter model on first change (#1823) 2021-08-08 00:39:48 +08:00
James Yeung
54ef39f82b feat(model: table): support responsive (#1802) 2021-08-01 21:18:50 +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
James Yeung
077f857cc0 chore: sync ant-design v4.16.9 (#1782) 2021-07-27 23:44:51 +08:00
anranruye
b5afba7e56 refactor(module: table): use EnumSelect for table filter (#1777)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-07-27 13:43:23 +08:00
anranruye
4c674d7b3a feat(module: table): add guid built-in filter (#1756)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-07-26 19:29:32 +08:00
anranruye
a344daf6f6 refactor(module: table): remove the breaking change for pagination mode (#1754) 2021-07-20 17:27:14 +00:00
anranruye
16654f5b51 Merge 0.8.4 to feature 2021-07-18 00:04:11 +08:00
anranruye
e4e1289529 fix(module: locale-provider): add missing nodes default values (#1710) 2021-07-06 01:10:16 +08:00
Henrik Widlund
56fb02c6f9 feat(module: table): support expanding all items in table (#1695)
Add the ability to have all items in a table by setting  DefaultExpandAllRows to true.

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-07-02 13:45:24 +08:00
anranruye
82739e9417 fix(module: table): add PopupContainerSelector for filter and/or selector (#1687)
* fix(module:table): add PopupContainerSelector for filter and/or selector

* Update Column.raz
2021-06-30 15:04:11 +08:00
anranruye
1ec582bff3 fix(module: space): fix space items behavior when they are inside if block (#1684)
* fix(module:space): fix space item margin

* remove Index parameter

* remove additional using

* Update Customize.razor space demo

* Update SpaceItem.raz
2021-06-30 13:41:38 +08:00
anranruye
6cb660320a fix(module: table): allow set filters after table initialization (#1667)
* fix(module:table): allow set filters after table initialization

* Update Column.razor.cs
2021-06-28 14:19:33 +08:00