Commit Graph

70 Commits

Author SHA1 Message Date
pankey888
600c8595dc
feat(module: tree): Add 'Checkable' to TreeNode. (#3899)
* feat(module: tree): Add 'Checkable' to TreeNode.

* feat(module: tree): Remove the dependency of 'Uncheckable' on 'CheckStrictly'.
2024-06-09 09:03:17 +08:00
pankey888
b977e4e3ca
refactor(module: tree): Refactor tree's Selected/Checked/Expanded parameters (#3896)
* refactor(module: tree): Refactor tree's Selected/Checked/Expanded parameters.(#2112,#2577,#2754,#2848,#3238,#3641,#3730,#3845,#3881,#3890,#3891,#3892)

* Update the demo & document of tree & tree-select.

* refactor(module: tree): Remove IsSelected/IsChecked/IsExpanded.
2024-06-05 00:26:31 +08:00
James Yeung
a53a8e24fc
feat(module: tree-select): add CascadingTypeParameter (#3864)
* feat(module: tree-select): add CascadingTypeParameter

* also for tree
2024-05-15 00:39:30 +08:00
James Yeung
77cec3e2b6
feat(module: TreeSelect): supports generic value (#3831)
* feat(module: TreeSelect): supports generic value

* use keyexpression to conver get the key

* fix get tree key
2024-04-29 08:12:53 +08:00
James Yeung
33a32d7398
fix(module: tree): need to show all nodes while search value is empty (#3587) 2023-12-25 22:46:37 +08:00
James Yeung
8200bc9f18
fix(module: tree): two-way binding for check/select/expand (#3520)
* fix(module: tree): two-way binding

* fix expand

* fix two way binding check/expand/select
2023-11-19 18:24:10 +08:00
James Yeung
6f6b75835a
fix(module: TreeSelect): value binding on datasource was changed (#3492)
* fix(module: TreeSelect): value binding on datasource was changed

* update selection after value changed

* tree datasource change

* invoke state changed

* clean up

* clean up
2023-11-08 00:24:48 +08:00
James Yeung
4fafd9c499
feat(module: tree): add ExpandAll/CollapseAll TreeNode (#3336)
* feat(module: tree): add ExpandAll/CollapseAll TreeNode

expand/collapse node and expand/collapse all child nodes

https://github.com/ant-design-blazor/ant-design-blazor/issues/2370

* refactoring

* refactor rename Switch to SwitchAllNodes

* add expand for load data asynchronously

* fix demo

* refactor(module: tree): remove Switch

* Update components/tree/TreeNode.razor.cs

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

* Update components/tree/TreeNode.razor.cs

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

* refactor(module: tree) ExpandAll/CollapseAll in only tree

* fix(module: tree) fix demo ExpandAllChild/CollapseAllChild

---------

Co-authored-by: ardia <gilyazov.aidar@gmail.com>
2023-08-08 23:17:29 +08:00
James Yeung
c541b46c01
fix(module: tree): would not invoke CheckedKeys changed while CheckStrictly was set (#3379) 2023-07-30 18:01:51 +08:00
YongQuan
595a70fec5
fix(module: tree): Multiple should not take effect when Ctrl is not pressed. (#3350)
* fix(module: tree): Multiple should not take effect when Ctrl is not pressed.

* Skip listening CtrlKey for TreeSelect

* change the generic type to KeyboardEventArgs

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2023-07-13 21:43:00 +08:00
如易君
7af4adc145
fix(module: tree): Fix search crash issue after Tree custom SearchExpression (#3274)
* 修复Tree自定义SearchExpression后Title中不包括过滤内容导致的bug

* 删除空行,修复格式

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2023-06-11 23:34:14 +08:00
Jtfk
33032f7b76
fix(module: tree): fix IList DataSource cannot be modify in place (#3275)
* fix(module: tree): skip `ToList()` when type is `IList`

This allow DataSource to be modify by TreeNode draggable methods.

* test(module: tree): add test for TreeNode modify DataSource
2023-06-04 16:30:48 +08:00
rhodon-jargon
00fdaf188f
feat(module: tree): Hide unmatched nodes in tree (#3242)
* feat(module: tree): Hide tree nodes that are not matched to search

* doc(module: tree): Add demo and API doc for HideUnmatched

* Unhide parent path

* Fix not showing nodes when SearchValue is empty
Expand all if DefaultExpandAll and SearchValue is empty

* update demo

* fix demo

---------

Co-authored-by: Rhodon <rhodonvantilburg@gmail.com>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2023-05-07 22:31:49 +08:00
André Coelho
7095a3c2ea
feat(module: tree): Added public method GetNode(string key) (#3243) 2023-04-27 22:45:16 +08:00
André Coelho
38d15c1d31
fix(module: tree): preventdefault for oncontextmenu (#3076)
* feat(module: tree) Added parameters OnContextMenuPreventDefault and OnContextMenuPreventDefaultRoot

* not use another parameter

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2023-02-27 00:04:17 +08:00
André Coelho
6adfffada0
fix(module: tree): OnContextMenu event not firing (#3042)
* fixes #1174

* fixes #1174
2023-01-31 16:23:58 +08:00
James Yeung
ba60651b16
chore: sync ant-design v4.24.2 (#2877) 2022-11-24 23:11:02 +08:00
André Coelho
e635ec8b93
fix(module: tree): darg & drop event should expose relationship to the target node (#2864)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2022-11-08 12:50:17 +08:00
Magehernan
7f9365d71f
fix(module TreeSelect): search not working on TreeSelect (#2686)
* Added the implementation like select to use tree search funcionality. Trying to change minimum posible to make it work.

Add ignoreCase for search on tree and fix display of match to respect the original value.

* Add a example of search.
2022-09-13 08:57:23 +08:00
James Yeung
3ac7701da4 merge master to feature 2022-08-21 22:53:33 +08:00
WhyILoveSpringRoll
a62ff53787
fix(module: tree): Fixed an issue where the TreeNode Disable and Checked properties do not take effect (#2583) 2022-07-26 13:37:02 +08:00
James Yeung
1baaa5be3d
refactor(module: TreeSelect): Expression and selection (#2507)
* refactor(module: tree-select): expression and LabelTemplate

* delete simple tree select
2022-06-11 02:31:35 +08:00
James Yeung
98636c6c48
fix(module: tree): incorrect checking during initialization (#2506)
* fix(module: tree): Fixed an issue with incorrect checking during initialization

* fix search and selection
2022-06-08 14:48:44 +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
5bb90f568e
fix(module: tree): the display of the problem when nodetitle and searchvalue contains '|' at the same time (#2437)
* fix missing prism

* fix(module: tree): the display of the problem when nodetitle and searchvalue '|' at the same time
2022-05-11 21:51:58 +08:00
Alex chow
d215cdf07a refactor(module: tree): optimize the speed of expanding lots of nodes (#2385)
Co-authored-by: luckcheer <1050400225@qq.com>
2022-04-30 18:35:56 +08:00
gmij
ea55028218 fix(module: tree): dead-loop rendering and checkbox check incorrectly (#2319)
* fixed. issues #2260

* fixed. when parentNode not check, childNode check invalid.
2022-03-03 23:09:29 +08:00
James Yeung
9194c736fd fix(module: tree): nodes would collapses when SearchValue was set (#2177) 2021-12-17 16:57:54 +08:00
jp-rl
389858ce19 fix(module: tree): missed MatchedClass and error if TreeComponent.SearchValue is null (#2171) 2021-12-17 13:14:54 +08:00
Guyiming
e975e204ae fix(module: tree): Update check status when set CheckedKeys property (#2133)
* update check status when set CheckedKeys property

* format

Co-authored-by: Guyiming <ymgu@best-inc.com>
2021-11-30 14:53:50 +08:00
gmij
0abc1db548 feat(module: TreeSelect): add tree-select component 🚀 (#1773)
* fixed. Fix network error when requesting contributor list in local development environment

* fixed. Fix Chinese garbled code

* Update Dynamic.razor

* update. Adjust the base class of the select control to selectbase, and extract the common methods to prepare for tree select.

* fixed. Adjust the type of the parent control to selectbase

* tree-select完成基础编码工作。

* fix. 重新修订冲突解决时误删的变量

* fix. 修复在多选模式下无法显示初始值的bug

* fix some styles

* add. tree add Node UnSelect Event

* fix . Node Multiple Select Bug.

* fix Tree UnSelect invalid.

* fix. tree multiple select support.

* fix. select option sync tree node selected.

* fix. multiple select, old selected values has clear

* fix loop update exception

* 修复合并带来的冲突

* add. allow clear feat. but not finish.

* fix merge bug

* fix merge bug

* fix. supplementary notes

* update demo data with react demo

* add. 添加静态下拉树的能力,以及单选和多选的demo

* fix. 优化下拉显示树时,树选项的选中逻辑。

* fix demo

* fix. 静态下拉树时,出现错选的bug

* fix merge bugs.

* fix merge bugs.

* add. static dataObject Bind Support

* 将下拉树中,对偏平数据源的处理,移到simpleTreeSelect中

* fix ChildrenExpression
2021-09-08 19:00:05 +08:00
James Yeung
3a6902a2c9 merge 0.9.3 to feature 2021-08-29 15:32:27 +08:00
James Yeung
063e404af3 feat(module: tree): add ChildContent for Tree and TreeNode (#1887)
* feat(module: tree): add ChildContent for Tree and TreeNode

Allow user set tree nodes directly.

* fix indent
2021-08-29 14:18:36 +08:00
James Yeung
482e4a7f45 fix(module: tree): SelectedNodeChanged would be fired twice twice (#1849) 2021-08-17 23:36:10 +08:00
ElderJames
71c53e1c9f merge 0.9.1 to feature 2021-08-13 17:22:52 +08:00
James Yeung
1c0a34ff0f feat(module: tree): bring SearchExpression back (#1796) 2021-07-31 00:32:45 +08:00
lukblazewicz
76ae40f727 refactor(module: tree): rename Checked/Dechecked methods to Check/Uncheck (#1792) 2021-07-31 00:32:19 +08:00
lukblazewicz
c9350d55fd fix(module: tree): one more fix to parent checkbox state calculation (#1781) (#1794) 2021-07-30 21:54:33 +08:00
lukblazewicz
f207a6d192 fix(module: tree): fix parent checkbox state calculation (#1781) 2021-07-27 17:46:12 +08:00
琢磨先生
300123045f refactor(module: tree): add draggable, fix default value binding (#1517)
* delete demo docs

* fix tree default value and dnd

* fix tree line and keys

* fix switcher icon and line

* fix line demo

* fix switcher

* add DirectoryTree demo

* fix draggable demo

* clean code

* clean code

* clean up the classmapper call

* update docs

* fix the docs

* fix comment

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-07-11 18:43:25 +08:00
lukblazewicz
e98a68625a feat(module: tree): support check all from code (#1722)
Co-authored-by: Łukasz Błażewicz <lukasz.blazewicz@homebook.pl>
2021-07-09 17:16:35 +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
TimChen
0966029022 fix(module: tree): expand incorrectly (#1275) 2021-03-24 13:41:27 +00:00
zmayor
387234e0b9 fix(module: tree): selected highlight confusion (#1161)
* 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

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-02-23 07:15:50 +00:00
James Yeung
d65ffabdc7 chore: sync ant-design v4.11.1 (#1039) 2021-01-25 08:31:53 +08:00
Andrzej Bakun
152a574577 feat(module: overlay): OverlayTrigger not bound to a div (#937)
* feat(module:overlay): OverlayTrigger not bound to a div

* feat(module:overlay): OverlayTrigger not bound to a div

* feat(module:overlay): Logic transfer to single Overlay

* feat(module:overlay): remove obsolete duplication

* feat(module:Tooltip): Add for unbounded oncontextmenu event handler

* feat(module:tooltip): unbound js event listeners remove

* docs(module:tooltip): unbound explanation

* fix(module:button): attach Ref to top level html element @ref

* feat(module:dropdown&tooltip&popconfirm&popover): Overlay not bound to a div

* docs(module:dropdown&tooltip&popconfirm&popover): unbound explanation

* feat(module:OverlayTrigger): common logic relocation

* feat(module:overlaytrigger): Overlay not bound to a div

* feat(module:DatePicker): Overlay not bound to a div

* feat(module:select): Overlay not boud to div

* fix(module:select): onclickarrow event relocation

* fix(module:select): rename Show to OnArrowClick

* feat(module:avatar): Overlay not bound to a div

* docs(module:avatar): demo switch to unbound version

* feat(module:autocomplete): partial OverlayTrigger not bound to a div

* feat(module:slider): tooltip

* docs(module:slider): tooltip

* fix(module:overlay): add SetVisible method

* feat: set Ref where missing, performance

components register Ref when missing
IsFixed flag for CascadeValue changed
hard-code sequence numbers when using RenderTreeBuilder
Rate component use Tooltip Unbound version
Tabs test fix

* fix: revert changes (accidental)

* feat(module:upload): tooltip with unbound usage

* feat(module:table): column use of unbound tooltip

* feat(module:autocomplete):overlay unbound from div

* fix(module:upload): missing div restore

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-01-21 17:20:10 +08:00
James Yeung
9a5cbb9255 fix(module: tree): add ComponentBase (#956) 2021-01-10 18:49:52 +08:00
James Yeung
56dfae7f62 chore: sync ant-design v4.10.0 (#943) 2021-01-09 09:07:02 +08:00
imhmao
f904676578 feat(module: tree): add expandAll and collapseAll method (#941)
* Tree:
1.add new node action
2.fixed data sort selection issue
3.add Expand() Collapse() Toggle()

* fixed Tree.OnRendered summary

* remove the `Is` prefix

* refactor(tree): renaming

Co-authored-by: 王的强 <wdq@sinotex.cn>
Co-authored-by: ElderJames <shunjiey@hotmail.com>
2021-01-07 00:41:26 +08:00
TimChen
f388ca4fc0 feat(module: tree): support generic type (#777)
* feat: tree update

* feat: support generics

* feat: normal operation

* fix: review question
2020-12-30 18:38:35 +08:00