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
Andrzej Bakun
6bc277c623
fix(module: textarea): add rows parameter ( #1920 )
...
doc: adjust to match antD
tests: sizing tests
2021-09-07 13:46:34 +08:00
Luke Parker [SSW]
52bc8ecdb4
fix(module: input): Add stop propagation ( #1917 )
2021-09-06 06:19:09 +00:00
James Yeung
bc6395d0aa
fix(module: auto-complete): turn off the input autocomplete
attribute ( #1825 )
2021-08-08 18:58:16 +08:00
Andrzej Bakun
2d693740c6
fix(module: input): fix & feat & docs & tests: Input general fixes ( #1530 )
...
* docs(module:input): api correction & comments
* fix(module:input): clear icon in sync with antD
* fix(module:input): add parameter bordered
* fix(module:textarea): add parameter ShowCounter
* fix(module:input): Focus with behaviors
* docs: add missing docs, rearrange order
* fix(module:search): update to match new standard look
doc(module:search): add API & demos
* fix(module:inputgroup): override style to remove whitespace\
docs: same as react
* fix(module:inputpassword): support custom icon
docs: same as react
* fix(module:input): add blur method
docs: add blur method
* fix(module:input): add readonly parameter
* tests
* fix
* fix(module:input): sequence correction
* Update components/core/Base/AntComponentBase.cs
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* review fixes
* fix: clean-up
* tests: fix missing mock
* fix: focus
* fix(module:input): bind clear button to _inputValue
* tests: clear button show/hide
* tests: package update
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-05-27 18:13:26 +08:00
James Yeung
04a5b8def4
fix(module: input): binding data when the Enter key is pressed ( #1375 )
2021-04-17 17:42:28 +08:00
Andrzej Bakun
1e5464d396
fix(module: input): add WrapperStyle ( #1351 )
...
* fix(module:input): add WrapperStyle
* translate the doc
* Update index.zh-CN.md
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-15 07:43:29 +00:00
James Yeung
e8965eb369
chore: merge feature into master ( #1350 )
...
* feat(module: table): add a method to get query model (#1202 )
* feat(module: table): add OnExpand event (#1208 )
* feat(module: table): add summary (#1218 )
* feat(module: table): add summary row
* feat: add fixed summary cell
* feat(module: InputNumber): Add long-click and keyboard operation (#1235 )
* feat(module: InputNumber): Add long click and keyboard event
1. When hold mouse down button will always trigger the increase or decrease
2. Add event listener to "ArrowUp" and "ArrowDown" key
* feat(module: InputNumber): Add long click and keyboard event
1. When hold mouse down button will always trigger the increase or decrease
2. Add event listener to "ArrowUp" and "ArrowDown" key
* fix null reference exception
Co-authored-by: ElderJames <shunjiey@hotmail.com>
* refactor(module: pagination): cover the apis of react (#1220 )
* 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
* chore: sync ant-design v4.14.0 (#1249 )
* feat(module: tag): add closing event (#1268 )
* tag add onclosing
event
* clean code
* translate the comment
* translation
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* chore: sync ant-design v4.15.0 (#1281 )
* feat: add built-in themes (#1286 )
* feat: add themes
* add docs theming styles
* fix the RTL for FixedWidgets
* fix aliyun theme
* fix docs style
* feat(module: form): Form lable supports left alignment (#1292 )
* feat: Form lable supports left alignment
* Update and rename components/grid/Col.razor.cs to 组件/格网/Col.razor.cs
* Delete Col.razor.cs
* no message
* PR:1292
* typo LabelAlign
* add the property in Col instead FormItem
* clean code
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* feat(module: upload): missing and new event (#1302 )
* feat(module:upload): missing and new event
* docs(module:upload): new events (missing Chinese)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* refactor: unified use of FeedbackComponent for modal comfirm and drawer (#1263 )
* refactor: support to use the same template for confirm and modal
* refactor: support to use the same template for drawer
* refactor: separate interface IOkCancelRef
* chore: modify EventUtil class summary
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* feat(module: alert): add message template and loop banner demo (#1250 )
* feat(Alert): added alert loop component
* fix: move cmp into main
* feat: add parameters for looping text
* feat: add new messages loop
* fix: create new internal looptext cmp
* doc: add demo
* doc: add demo markdown
* doc: update alert api
* doc: update cn docs
* fix: add missing dependency
* fix: update param name
* impleement loop text with css
* fix the document
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* feat(module: table): add support for Display attribute (#1310 )
feat(module:table): add support for Display attribute
Display attribute is widely used to specify display text for entity properties.
Table component should get column names from Display attribute instances.
Closes #1278
* test: add TestKit for public tests (#1248 )
* test: change folder structure and add new TestKit csproj for public testing of AntDesign-based applications
* docs: added CN and EN docs about TestKit
* fix doc translate
* change the directory structure
Co-authored-by: Patryk Grzelak <pgrzelak@mutate.app>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* feat(module: space): add wrap, split and size array (#1314 )
* fix(module: datepicker): incorrect in RTL mode (#1300 )
* fix(module: dropdown): default PlacementType is incorrect in RTL mode
* fix(module: datepicker): not correct in RTL mode
* fix(module: datepicker): styles is incorrect when switch to LTR from RTL
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* docs: fix default css link (#1318 )
* fix(module: table): bring PR1208 to PR1303 merge master into feature (#1326 )
* feat(module: pagination): add TotalBoundaryShowSizeChanger parameter (#1325 )
* feat(module: pagination): add TotalBoundaryShowSizeChanger
* docs(module: pagination): update API
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* docs: dynamic primary color changing (#1332 )
* feat(docs): change color dynamically
* docs: dynamic primary color changing
* fix file path
* delete the script
* feat(module: table): add build-in filters (#1267 )
* tablefilter-moreoptions
* tablefilter-moreoptions
* tablefilter-moreoptions
* tablefilter-moreoptions
* tablefilter-moreoptions
* fix demo and docs
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* fix(module: tooltip): wrong popup direction (#1348 )
* fix merge conflicts
Co-authored-by: Andrzej Bakun <andrzej@neelyc.com.cy>
Co-authored-by: LingDev <lingjing0921@live.com>
Co-authored-by: Zonciu Liang <zonciu@zonciu.com>
Co-authored-by: TimChen <TimChen44@users.noreply.github.com>
Co-authored-by: unsung189 <52531536+unsung189@users.noreply.github.com>
Co-authored-by: zxyao <zxyao145@gmail.com>
Co-authored-by: Patrick <42546986+MutatePat@users.noreply.github.com>
Co-authored-by: anranruye <54608128+anranruye@users.noreply.github.com>
Co-authored-by: Patryk Grzelak <pgrzelak@mutate.app>
Co-authored-by: 笨木头 <musicvs@163.com>
Co-authored-by: Magehernan <magehernan@gmail.com>
Co-authored-by: ldsenow <ldsenow@gmail.com>
Co-authored-by: Leishi <lluo@octet.com>
Co-authored-by: YMohd <31305504+YMohd@users.noreply.github.com>
2021-04-15 14:28:14 +08:00
Andrzej Bakun
242084e774
fix: multiple bugs originating from js ( #1342 )
...
* fix: multiple bugs originating from js
* fix(module:input): remove preventScroll from Focus method
fix: keep focus on clear
* fix(module:input): debug info clean-up
* fix(module:select): wait for browser to finish render
* fix(module:select): wait for ElementReference.Id
* fix doc assets
* fix(module:select): increase wait time for ElementRefernece.Id
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-15 14:19:26 +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
Andrzej Bakun
9dc73fbd9a
fix(module: inputpassword): focus style ( #1146 )
...
* fix(module:inputpassword): focus fix
* fix(module:search): focus fix
* fix(module:input): (and descendants) focuse fix
2021-02-22 14:26:17 +08:00
Luke Parker
11fcd44993
fix(module: input): pressing enter would not update the value ( #1094 )
...
Co-authored-by: Luke Parker <10430890+TheRealHona@users.noreply.github.com>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-02-05 15:05:24 +08:00
Andrzej Bakun
536bb9a586
fix(module: input): missing disabled attribute ( #1048 )
2021-01-27 13:42:04 +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
Luke Parker
bfb92f9664
feat(module: input): implement optional key debouncing ( #899 )
...
* Implement optional key debouncing
* Fixes & refactor
* Force update value on blur
* Only change value on blur if debounce is disabled
* fix: default to enable debounce and change value on blur directly
Co-authored-by: Luke Parker <10430890+TheRealHona@users.noreply.github.com>
Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-12-21 14:12:48 +08:00
Katherine Yeung
7bbc07248b
fix(module: input): repeated dictionary key MaxLength
causes an exception ( #880 )
2020-12-11 16:17:22 +08:00
James Yeung
abb5791ddb
fix(module: input): doesn't show the loading icon on search was pressed 'enter' ( #752 )
2020-11-01 22:38:43 +08:00
James Yeung
4f250e11e9
fix(module: input): value wouldn't change while input blur in inputting compositionally ( #751 )
2020-11-01 16:06:16 +08:00
Kieran Coldron
83ab94cc92
fix(input): allow number type in input ( #630 )
...
* fix: allow number type in input
* fix: parse empty string to value
Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-10-12 00:20:33 +08:00
James Yeung
360fe0d3c0
fix(hosting): server prerendering issue ( #583 )
...
* refactor: rename JSInterop constants
* docs: fix typo
* fix: server prerendering issue
2020-09-09 00:52:14 +08:00
James Yeung
fdbb825910
fix(module: input): composition event conflict ( #542 )
...
Co-authored-by: 笨木头 <musicvs@163.com>
2020-08-28 14:04:46 +08:00
TimChen
f09e71ba06
feat: auto complete refactor ( #529 )
...
* feat: auto complete refactor
* feat: autocomplete Refactor
* feat: autocomplete property
* feat: autocomplate
* feat: autocomplete
* feat: autocomplete
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-08-26 22:37:08 +08:00
James Yeung
feae8a07f5
fix(module: input): incorrect OnPressEnter ( #435 )
...
* fix(module: input): incorrect OnPressEnter
* fix: can't fire onSearch event when search button is clicked
* fix: mack input value generic
Co-authored-by: 笨木头 <musicvs@163.com>
2020-07-30 09:06:56 +08:00
Henry.zhang
ceb95bbe69
feat: add overview ( #425 )
...
* feat: add overview page
* feat: update language changed in overview
* fix: add cover in demo
* fix: overview
* fix: width of docsearch inputbox
Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-07-28 11:15:41 +08:00
笨木头
4d6c279e80
fix: input unusual by chance ( #340 )
...
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-07-12 00:28:10 +08:00
笨木头
f11fd0e103
refactor: improve input and textarea ( #317 )
2020-07-07 12:44:10 +08:00
TimChen
88860d3702
fix: input and textarea bug ( #308 )
2020-07-06 14:33:28 +08:00
笨木头
4a4dfcbd87
refactor(module: form): optimize performance ( #284 )
...
* refactor(module: form): optimize performance
* refactor: clean code
Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-06-30 22:32:36 +08:00
TimChen
97af3e080d
fix(module: input-number): crash for decimal greater then operator ( #262 )
...
* fix: inputnumber use decimal error
* fix : #264
* fix: clean up the code
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-06-29 00:26:11 +08:00
liuhai
f914e6c4b3
feat: add auto-complete component ( #251 )
...
Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-06-27 18:24:21 +08:00
TimChen
9d76e3f4d1
feat: input and inputNumber Supports generics ( #238 )
...
* feat: input and inputNumber Supports generics
* fix: remove debug code
* fix: inputNumber performance issues
* fix: number type limit and style
* fix: inputNumber code format optimization
* fix: inputnumber bug
* fix: inputnumber bug
* fix: drawer demo input generic
* fix: inputnumber Improve input experience
* fix: fix bugs
* fix: add some improvements
Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-06-27 01:20:52 +08:00
Henry.zhang
f9b615c2ca
feat: add more demos ( #197 )
...
...for affix,back-top,breadcrumb,card,divider,typogragpy and timeline
Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-06-07 19:41:00 +08:00
笨木头
78a08fbd3d
feat(module: input components): support set size by form ( #191 )
...
* feat(module: input components): support set size by form
* fix: rebase conflict
Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-06-07 00:47:18 +08:00
笨木头
c3fc31c9b0
fix: input component bug ( #182 )
2020-06-03 20:29:28 +08:00
笨木头
a6596b15dd
fix: input error without form ( #179 )
...
* fix: input error without form
* refactor: optimize code
2020-06-03 09:58:11 +08:00
Henry.zhang
3492d546e3
refactor: add tag and card demo ( #173 )
...
* refactor: tag demo
* refactor: card demo
* fix: dynamic tag
Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-06-02 13:26:27 +08:00
笨木头
c3b0b114e6
feat: add form(basic features) ( #168 )
...
* feat: add form(not complete yet)
* feat: add form(basic)
* refactor: change namespace
* feat(module: form): add onFinish, onFinishFailed, reset
* feat(module: form): add layout demo
* feat(module: form): update doc
* refactor: basic form
Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-06-01 14:09:28 +08:00
ElderJames
97f920ab9a
refactor: change namespcae to AntDesign
2020-05-29 00:33:49 +08:00
Henry.zhang
99e7745598
feat: rename and add input demo ( #132 )
...
Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-05-20 12:57:16 +08:00