Commit Graph

1116 Commits

Author SHA1 Message Date
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
Hao Sun
961a5ca02b fix(module: textarea): fix style string format and auto-size issues (#2001)
* fix(module:textarea): fix style string format

* seprate inner and outer style

* fix AutoSize

* fix custom style

* Update site/AntDesign.Docs/Demos/Components/Input/demo/Area.md

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

* Move SetStyle to styleHelper

* Update TextArea.razor

* Update TextArea.cs

* fix unit test

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-10-29 13:30:52 +08:00
Andrzej Bakun
58c5f2b6cc tests: added tests for Button, Checkbox & DateHelper to increase the coverage (#2060)
* tests: added

* missed scenarios for Button and ButtonGroup
2021-10-28 11:21:10 +08:00
berkerdong
61a653579f fix(module: upload): IsPicture bug (#2049)
* fix #1987 IsPicture bug

* Optimize image judgment method

* Optimize picture type Judgment method

* Optimize imagetypes comparison method
2021-10-27 12:11:19 +08:00
Andrzej Bakun
1d8e923c17 fix(module: tabs): support tabs in a card (#2053)
* fix(module:tabs): support tabs in a card

* tests
2021-10-23 16:03:06 +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
Andrzej Bakun
d843898cb8 tests: clean-up (#2050)
* tests: clean-up

* tests: missed warnings & exceptions fix

* build: comments fix

* docs: xml comments fixed to stop warnings
2021-10-22 12:45:00 +08:00
Guyiming
8111c9a5b2 fix(module: table): handle null field for @bind-Field (#2025) 2021-10-20 23:22:59 +08:00
韦东阳
453a898a52 fix(module: description): horizontal style (#2024)
* Descriptions Component  Horizontal  Style

* delete  style={contentStyle}
2021-10-18 22:39:17 +08:00
Andrzej Bakun
d7915eaeab fix(module: overlay): premature reset of _mouseInTrigger (#2036) 2021-10-18 22:37:44 +08:00
James Yeung
d23375fb49 fix(module: menu): make router match defaualt to all. 2021-10-17 22:07:28 +08:00
Martin Pučálka
3b008fdeed i18n: czech localization update (#2030)
Typos fix
2021-10-16 11:14:07 +08:00
James Yeung
49b17b52f7 Changelog 0.10.1 (#2022)
* changelog 0.10.1

* add changelog 0.10.1

* update the en-us changelog

* update package config and site links

* Update CHANGELOG.en-US.md

* Update CHANGELOG.zh-CN.md
2021-10-15 23:25:03 +08:00
Martin Pučálka
c7e89c7e4c i18n: czech localization update (#2019)
Add missing translations and improve some existing ones.
2021-10-13 22:56:13 +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
YongQuanRAO
bb8c1c4d27 docs: fix typo (#2021) 2021-10-13 21:48:55 +08:00
Andrzej Bakun
28a159501d fix(module: list): dynamic response to changes in Grid parameter (#2014) 2021-10-13 11:27:05 +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
Maksim
0e40f1bd03 fix(module: progress): use invariant culture for style strings (#2017)
* Use invariant culture for progress

* Use string interpolation instead StringBuilde
2021-10-12 23:15:32 +08:00
Hao Sun
34899650df fix(module: locale): fix custom locale resource (#1988)
* fix(module: locale): fix custom locale resource

* update doc

* Update LocaleProvider,cs

* Update i18n.zh-CN.md

* Update LocaleProvider

* Update docs
2021-10-12 17:48:19 +08:00
Guyiming
cc836bcf10 feat(module: tabs): Add AuthorizeReuseTabsRouteView (#1910)
* 使MenItem同时支持Icon和IconFont,解决当使用iconfont.cn图标后,缩起内嵌菜单导致按钮样式不统一的问题。

* 空值判断

* add IconTemplate in MenuItem

* code format

* Add AuthorizeReuseTabsRouteView

* add readme.md

* remove comments

* Add AuthorizeResuseTabsRouteView test demo

* save

* save

* done

* refactor the test app

* fix test app

* debug

* debug

* fix tab render

* fix the copyright

* fix package infomation

* fix tab display order

* fix content focerender

Co-authored-by: BG345554 <ymgu@best-inc.com>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-10-11 23:01:27 +08:00
Andrzej Bakun
5c2f48f718 fix(module: select): arrow down click does not auto close (#1977)
* fix(module:select): arrow down click does not auto close

* test case added
2021-10-11 22:17:14 +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
anranruye
88fb3b3328 fix(module: select): fix null value option (#1996) 2021-10-09 18:36:25 +08:00
Daniel Matthews
b623c8a7e4 fix(module: menu): Wrap IconTemplate in corrected span (#2006)
* fix(module:menu): Wrap IconTemplate in corrected span
* wrap IconTemplate using span created by Icon component so InlineCollapse properly displays IconTemplate

*docs: Added missing docs for IconTemplate

* Update icontemplate.md

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-10-08 15:38:46 +00:00
James Yeung
5875929a89 refactor(module: tabs): improve rendering (#1970)
* refactor(module: tabs): improve rendering

* fix ForceRender & change constants to enums

* fix animated

* fix left extra content

* add Centered feature

* fix scroll distance

* fix scroll gap

* fix index out of range

* fix tests

* fix scroll distance

* fix dropdown button position

* fix ping left & right

* hide the dropdown button
2021-10-08 14:25:41 +08:00
anranruye
bd8ecd9773 fix(module: select): do not bring up keyboard when EnableSearch is false (#1992)
* fix(module:select): do not bring up keyboard when EnableSearch is false

* Update SelectContent.razor

* consider tags mode as searchEnabled
2021-10-08 12:46:57 +08:00
rabberbock
c9c628070d fix(module: slider): Positioning Using Min/Max (#1940)
* Use Min/Max for position

Call SetStyle OnInitialize so two way binding initializes correctly

* Fix marker position for range

* track style for non ranges
2021-09-24 23:22:32 +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
8640371e88 doc: fix code block in english pages (#1961)
* doc: fix code block in english pages

* remove react code

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-09-22 23:00:54 +08:00
James Yeung
c9448e635a fix(module: grid): issue with gutter match due to breakpoint enum name case (#1963)
* fix(module: grid):  issue with gutter match due to breakpoint enum name case

* add playground de
2021-09-22 22:08:32 +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
Tomas Bezouska
4356cf92c2 fix(module: overlay): format number InvariantCulture (#1956)
In cultures where decimal separator is ',' overlay would be ill-positioned

Resolves #1955

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-09-17 23:31:42 +00:00
Luke Parker [SSW]
79af5022aa docs: Cleanup button docs (#1953) 2021-09-17 16:52:53 +00:00
James Yeung
c0c9d0a265 fix(module: table): label display incorrectly in responsive mode (#1952) 2021-09-17 20:34:14 +08:00
zxyao
0570c83916 fix(module: modal): cannot drag when modal excessive height (#1951) 2021-09-16 15:37:05 +00:00
anranruye
cb70811029 chore: correct select DefaultValue xml comment (#1950) 2021-09-16 22:48:52 +08:00
Andrzej Bakun
c099874086 fix(module: menu): Overlay bug fix & menu renering optimization (#1949)
* fix(module:overlay): submenu causing crash

* fix(module:overlay): submenu causing crash

* fix(module:menu): show missing chevron

mark top menu as selected on init
do not render non-active overlay submenus

* tests: common js mock extracted

nullable enabled for test project

* tests: menu

* fix(module:menu): incorrect behavior in layout
2021-09-16 22:46:45 +08:00
ElderJames
a389a87cef chore: fix docs aot publish 2021-09-16 15:41:55 +08:00
James Yeung
3923896c68 changelog 0.10.0 (#1947) 2021-09-15 23:34:02 +08:00
James Yeung
898e15d6bb docs: update to .NET6 RC1 (#1946)
* docs: update to .NET6 RC1

* add aot to preview action

* fix preview site output

* print dotnet sdk list

* remove setup job

* add wasm-tools
2021-09-15 14:36:38 +08:00
James Yeung
d27be8355e Merge feature to master (#1945)
* chore: sync ant-design v4.16.9 (#1782)

* refactor(module: tree): rename Checked/Dechecked methods to Check/Uncheck (#1792)

* feat(model: table): support responsive (#1802)

* feat(module: form): add properties Help, ValidateStatus and HasFeedback (#1807)

* Add properties Help, ValidateStatus and HasFeedback to FormItem

* refactor validation messages

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

* feat(module: radio): add options for radio group (#1839)

* feat(module: radio): support enum type for `RadioGroup` (#1840)

* feat(module: image): support preview visible (#1842)

* 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

* docs: Update the style to be compatible with antd 4.16 style. (#1893)

* docs: fix style

* fix logo font

* fix the color less

* 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

* feat: add dynamic component (#1703)

* feat: weakly-typed/dynamic component

* add TypeName support

* override BuildRenderTree instead of using a RenderFragment

* rename

* fix(module: timeline): label missing (#1941)

* chore: sync ant-design v4.16.13 (#1862)

Co-authored-by: lukblazewicz <39852149+lukblazewicz@users.noreply.github.com>
Co-authored-by: YongQuanRao <79885120+JamesGit-hash@users.noreply.github.com>
Co-authored-by: anranruye <54608128+anranruye@users.noreply.github.com>
Co-authored-by: Andrzej Bakun <andrzej@neelyc.com.cy>
Co-authored-by: zxyao <zxyao145@gmail.com>
Co-authored-by: Łukasz Błażewicz <lukasz.blazewicz@homebook.pl>
Co-authored-by: heroboy <yangweiqin@gmail.com>
Co-authored-by: Simon Cropp <simon.cropp@gmail.com>
Co-authored-by: JohnHao421 <544106829@qq.com>
Co-authored-by: haojiajun <haojiajun@vanelink.net>
Co-authored-by: Noah Potash <digitalnugget@gmail.com>
Co-authored-by: Noah Potash <noah.potash@outbreaklabs.com>
Co-authored-by: SmallY <45689960+iamSmallY@users.noreply.github.com>
Co-authored-by: Stefano Driussi <stedri@gmail.com>
Co-authored-by: Stefano Drussi <stefano.driussi@hotmail.it>
Co-authored-by: Guyiming <guyiming2011@126.com>
Co-authored-by: Maksim <maksalmak@gmail.com>
Co-authored-by: Nikolay Krondev <nikolaykrondev@users.noreply.github.com>
Co-authored-by: gmij <gmij@qq.com>
Co-authored-by: anranruye <hehewewe@hotmail.com>
Co-authored-by: Alan.Liu <lxyruanjian@126.com>
Co-authored-by: rabberbock <rabberbock@gmail.com>
Co-authored-by: Andrzej Bakun <anddrzejb@poczta.fm>
Co-authored-by: Chandan Rauniyar <chandankkrr@gmail.com>
Co-authored-by: Luke Parker [SSW] <10430890+Hona@users.noreply.github.com>
Co-authored-by: Tony Yip <tonyyip1969@gmail.com>
Co-authored-by: SmRiley <45205313+SmRiley@users.noreply.github.com>
2021-09-14 23:29:16 +08:00
James Yeung
0ef438cc30 Merge 0.9.4 to feature (#1942)
* fix(module: form): remove `FormItem` from `Form` when it was disposed (#1901)

* pref(module: table): put fixed column style into js (#1897)

* pref(module: table): put fixed column style into js

* fix resize listener

* docs: Add building demo assets to the Readme (#1904)

* feat(module: table): add `CellData` for `CellRender` (#1907)

* docs: add dynamic table demo (#1908)

* feat(module: table): add dynamic data demo

* add scroll x

* 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

* docs: Fixed typo (#1915)

* fix(module: input): Add stop propagation (#1917)

* docs(module: select): update coordinate demo (#1914)

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

* fix(module: textarea): add rows parameter (#1920)

doc: adjust to match antD
tests: sizing tests

* test(module: select): Add some unit tests for Select (#1891)

* Add Select clear tests

* Add Select DataSource to null test

* Change the implement of Throw tests

* Change int to int?

* fix(module: button): loading icon styles (#1902)

* Fix loading icon styles

* Fix button render test

* feat(module: InputNumber): Add inputmode for mobile keyboard (#1923)

* 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>

* fix(module: textarea): replace wrong event (#1927)

* tests(module: textarea): include js function mock to avoid bunit exceptions (#1930)

* 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

* fix(module: table): It would be load twice at first time if pagesize is not 10 (#1933)

* fix(module: menu): collapsed menu title can't hide while use router link (#1934)

* fix(module: select): fix data source of type IEnumerable<object> (#1932)

* fix(module:select): fix data source of type IEnumerable<object>

* Update Select.razor.cs

* Update Select.OnDataSourceChangeTests.razor

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

* feat(module: InputNumber): Add OnFocus event (#1931)

* Add on textbox focus

* Adjust naming

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

* fix(module: list): resposive style doesn't work (#1937)

* docs: Update index.zh-CN.md (#1936)

Update document ConfigProvider global configuration example code

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

* change log 0.9.4 (#1938)

* chore: test cs project to include test runner adapter (#1939)

test: add general overlay disposal method mock

Co-authored-by: Alan.Liu <lxyruanjian@126.com>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
Co-authored-by: rabberbock <rabberbock@gmail.com>
Co-authored-by: Andrzej Bakun <anddrzejb@poczta.fm>
Co-authored-by: Chandan Rauniyar <chandankkrr@gmail.com>
Co-authored-by: Luke Parker [SSW] <10430890+Hona@users.noreply.github.com>
Co-authored-by: SmallY <45689960+iamSmallY@users.noreply.github.com>
Co-authored-by: Maksim <maksalmak@gmail.com>
Co-authored-by: Tony Yip <tonyyip1969@gmail.com>
Co-authored-by: SmRiley <45205313+SmRiley@users.noreply.github.com>
2021-09-14 22:00:55 +08:00
anranruye
915d35a513 Merge 0.9.4 to feature 2021-09-14 21:57:15 +08:00
James Yeung
29a5c26142 chore: sync ant-design v4.16.13 (#1862) 2021-09-14 20:21:39 +08:00
James Yeung
de794eae9b fix(module: timeline): label missing (#1941) 2021-09-13 22:04:47 +08:00
Andrzej Bakun
713eb6fd94 chore: test cs project to include test runner adapter (#1939)
test: add general overlay disposal method mock
2021-09-13 10:37:16 +08:00
James Yeung
0bc51a321b change log 0.9.4 (#1938) 2021-09-13 00:02:38 +08:00
SmRiley
062526ab6c docs: Update index.zh-CN.md (#1936)
Update document ConfigProvider global configuration example code

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-09-12 14:09:04 +00:00