Commit Graph

78 Commits

Author SHA1 Message Date
James Yeung
e4834ed1da
add target to .NET 7 (#2810)
* docs: update .NET7 RC2

* fix target framework

* update to .net 7 GA

* update yaml

* fix wasmhost

* update document
2022-11-10 16:00:11 +08:00
CareyYang
97fcd5bfb7
fix(module: table): when HidePagination is true, PageSize is implicitly the total number of rows for the data source (#2476)
* Change set HidePagination‘s Location

Change set PageSize Method when HidePagination is true.

if HidePagination is true,set PagSize value is DataSource Count

if HidePagination is true,set PagSize value is DataSource Count

if HidePagination is true,set PagSize value is DataSource Count

* refactor

* update demo

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2022-11-08 12:56:05 +08:00
Kyojuro27
1d3cc9cd25
fix(module: table): exception was thrown in DisposeAsync after blazor server disconnect (#2797)
* Update Table.razor.cs

In DisposeAsync() Method of Tab.razor.cs, I add a try - catch around the JSInterop call method "await JsInvokeAsync(JSInteropConstants.UnbindTableScroll, _tableBodyRef);" in order to prevent some error and warning entry in the Windows Event Viewer.

* fix exception catch

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2022-10-20 13:54:28 +08:00
James Yeung
08f1ba4cb9
fix(module: table): exception cause by reload data with state and the table has an ActionColumn (#2683) 2022-09-06 20:50:10 +08:00
James Yeung
1461f50d9c
feat(module: table): add property column (#2624)
* add property column

* fix property

* remove exception

* update demos
2022-08-20 13:54:47 +08:00
James Yeung
212bdef3ef feat(module: table): support setting table scrollbar width using ScrollBarWidth parameter (#2451) 2022-05-29 19:34:52 +08:00
James Yeung
1396932d50 refactor(module: table): make Responsive default to false (with a breaking change) (#2419)
* feat(module: table): make `Responsive` default to false (a breaking change)

* fix demo
2022-05-29 19:34:49 +08:00
AnaNikolasevic
21a076dff5 feat(module: table): enable to reload with an outside query model (#2129)
* feat/ApplyPredefinedQueryModel: add opportunity to serialize/deserialize QueryModel and apply to Table with ITable.ReloadData(QueryModel queryModel) method; fix current selected value in 'PageSize / page' selection (value was not updated in case using ReloadData(PageIndex, PageSize) method)

* feat/applyPredefinedQueryModel: implement System.Text.Json instead Newtonsoft.Json for serializing/deserializing QueryModel

* feat/applyPredefinedQueryModel: add minor change

* feat/applyPredefinedQueryModel: add method for converting from JsonElement to object type

* feat/applyPredefinedQueryModel: add demo file for save and load table configuration

* feature/applyPredefinedQueryModel: add minor change

* feat/applyPredefinedQueryModel: prevent applying before not saved configuration

* fix sorter restore

* reest data before reload data

* fix test

Co-authored-by: Ana Nikolasevic <23nikolasevic@gmail.com>
Co-authored-by: ElderJames <shunjiey@hotmail.com>
2022-05-29 19:34:46 +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
James Yeung
d739167f94
fix(module: table): null exception cause by event listener (#2448) 2022-05-15 12:45:43 +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
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
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
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
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
Nikolay Krondev
656d31237e fix(module: table): call StateHasChanged in InternalReload (#1874) (#1875) 2021-08-28 03:59:11 +00: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
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
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
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
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
6cd8482292 fix(module: table): add RemoteDataSource (#1558)
* feat(module:table): add PaginationMode parameter

* fix(module:table): fix pagination

* docs(module:table): add doc for PaginationMode attribute

* add a demo file

* docs(module:table): add demo for pagination mode

* feat(module:table): add RemoteDataSource property

* delete the demo for PaginationMode

* Update Table.razor.cs

* add `ajax` demo

* Update ajax.md

* Update Ajax.razor

* fix demo

* clear demo

* fotmat demo

* delete StateHasChanged

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2021-06-15 16:13:06 +08:00
James Yeung
d4cbc6d4e0 feat: add element component (#1378)
* refactor: rename `HtmlElement` property case

* rename the directory name for overlay

* add element component
2021-04-17 22:14:01 +08:00
James Yeung
fe0be94b55 fix(module: table): ellipsis can't work (#1376) 2021-04-17 18:52:15 +08:00
ElderJames
aaff88adf7 merge master into feature 2021-04-08 22:32:48 +08:00
Zonciu Liang
8476eccd30 fix(module: table): fix table re-render when ScrollX is set (#1311) 2021-04-04 21:02:47 +08:00
Andrzej Bakun
a9a0f2e937 fix(module: table): perf optimization & data source change issue (#1304)
* chore: add GitHub Actions for auto preview (#1205)

* chore: add github actions for auto preview

* fix setup job

* chore: add GitHub Actions for auto preview (#1205)

* fix(module:table): guard against false entries in _dataSourceCache

* fix(module:table): perf - double to single render on datasource change

* fix(module:table): perf optimization to avoid multiple renders

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-03 18:40:23 +00:00
Magehernan
71f49c5c15 fix(module: table): ExpandableRow not working with ActionColumn #1284 (#1285)
* (fix) Table ExpandableRow not working with ActionColumn #1284

* Add Tree Button Expand on Action Columm.

Check the position of Selection Column when calculate the position for expand button on tree mode and expand mode.
2021-04-01 12:50:30 +08:00
James Yeung
d2e9c4b247 feat(module: config-provider): support RTL (#1238)
* feat(module: config-provider): support RTL

* add rtl for each component

* fix rtl for pagination

* add rtl for overlay
2021-03-31 19:23:26 +08:00
James Yeung
1181673273 feat(module: table): add summary (#1218)
* feat(module: table): add summary row

* feat: add fixed summary cell
2021-03-31 19:02:57 +08:00
Andrzej Bakun
d1f1227a4f feat(module: table): add OnExpand event (#1208) 2021-03-31 19:02:55 +08:00
James Yeung
16f56f7e9d feat(module: table): add a method to get query model (#1202) 2021-03-31 19:02:52 +08:00
James Yeung
ad99e38fce fix(module: table): bring OnRowClick back (#1200) 2021-03-04 17:31:48 +08:00
James Yeung
b65c11ae61 fix(module: table): tree data error (#1188) 2021-03-02 00:46:03 +08:00
qinhuaihe
cc4a7bbf13 feat(module: table): add on row and cell (#1175)
* fix(module:table): set selectedRows exception

* fix(module:table): set selectedRows exception

* fix(module: tree) selected highlight confusion

* Revert "fix(module: tree) selected highlight confusion"

This reverts commit 91300ac664f8dcebc20f1a96e21f8afc1fac079d.

* fix(module: tree): remove the IsFixed attribute

* feat(module: table): add table onrow method

* feat(module: table) add onrow method to table column

* feat(module: table) add onrow method to table column

* feat(module: table) add onheaderrow and onheadercell methods to table

* feat(module: table) fix doc encoding

* fix demo

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-03-01 23:47:16 +08:00
James Yeung
28ffc2d184 fix(module: table): show empty status when there are no data (#1180) 2021-02-28 12:51:36 +08:00
James Yeung
4065869806 feat(module: table): add filters (#1178)
* feat: add table filter

* add filter buttons

* fix filter menu

* make filter work

* support multiple filters

* delete the old files

* support single select
2021-02-27 23:55:48 +08:00
James Yeung
0c13eb7198 docs(module: table): add editable cell/row demo (#1152)
* feat(module: table): add editable cell demo

* add editable row de
2021-02-22 11:29:56 +08:00
James Yeung
82031e0a66 fix(module: table): fix the scroll position calc method (#1063) 2021-02-01 23:42:54 +08:00
Kane
a84382f64b fix(module: table): sorter was blocked (#1061) 2021-02-01 23:17:54 +08:00
Andrzej Bakun
e7b01d509c fix(module: table): table exception on refresh (#1040)
* fix(module:overlay): remove obsolete js call

check for Ref.Id before any js operation on it

* fix(module:table): js interop exceptions on dispose

* docs(module:slider): typo fix

* docs(module:spider): typ
2021-01-25 12:53:19 +08:00
matt
e40f93127d feat(module: table): add RowClassName (#1031)
* feat(module: table): add row styling

* docs: add RowClassName to docs

* docs: add custom row style subtext

* feat(module: table): add ExpandedRowClassName

* remove RowClassName for expand row

* add chinese doc

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2021-01-24 13:56:27 +08:00