Commit Graph

635 Commits

Author SHA1 Message Date
Andrzej Bakun
e24e417ae5 fix(module: calendar): critical exception for ChangePickerValue (#993) 2021-01-19 20:50:23 +08:00
Andrzej Bakun
dffe33aed4 fix(module: overlay): getFirstChildDomInfo when firstElementChild is null (#989)
getFirstChildDomInfo returns passed domInfo when dom.firstElementChild is null
fixes #837
2021-01-17 15:41:28 +08:00
Andrzej Bakun
b7cb393967 fix(module: alert): missing html structure (#990) 2021-01-17 15:20:06 +08:00
imhmao
f65943813e fix(module: cascader): re-initialize options after options is changed (#980)
Co-authored-by: ElderJames <shunjiey@hotmail.com>
2021-01-16 21:54:57 +08:00
James Yeung
2e727d9f47 fix(module: date-picker): prevent the year out of range (#973)
* fix(module: date-picker): year would out of range

* prevent out of range

* add two methods

* fix(module: datepicker): out of range error

* fix: decadePanel is still out of range

Co-authored-by: 钟迪龙 <musicvs@163.com>
2021-01-14 10:40:34 +08:00
Magehernan
3a6360524d fix(module: table): incorrect no data style with ExpandTemplate (#985) 2021-01-13 23:20:10 +08:00
James Yeung
6177804f03 fix(module: range-picker): throw exception when has default value (#972) 2021-01-12 12:48:45 +08:00
Zonciu Liang
9d9506bb5c feat(module: table): add SorterCompare parameter for sorter (#969)
* feat(module: table): add custom comparer

* docs: keep the DataSource of Table's blazor demo unchanged

* Update custom-sort.md

* refactor(module: table): change Comparer to SorterCompare

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-01-12 00:39:40 +08:00
motl2000
fe8ce412dd feat(module: button): add StopPropagation property for click event (#960) 2021-01-11 22:59:21 +08:00
James Yeung
d266f77346 fix(module: table): exception if field is null (#965) 2021-01-11 22:36:06 +08:00
James Yeung
d24c7a5325 fix(module: table): sorter works incorrectly (#962)
* fix(module: table): sorter works incorrectly

* docs: delete the jsx block
2021-01-11 13:39:02 +08:00
yanb1
2b3e037e14 feat(module: list): ListItemMeta support description template (#959)
* Added DescriptionTemplate

* Added support for DescriptionTemplate property.
2021-01-10 22:41:57 +08:00
James Yeung
1a2866cf9d feat(module: table): add ellipsis column (#957) 2021-01-10 21:44:25 +08:00
James Yeung
9a5cbb9255 fix(module: tree): add ComponentBase (#956) 2021-01-10 18:49:52 +08:00
James Yeung
3582075e22 chore: sync ant-design v4.10.1 (#955) 2021-01-10 15:39:20 +08:00
Andrzej Bakun
2a05064c25 fix(module:date-picker): OneOf to TValue, default value for picker, optimizations (#933)
* fix(module:DatePicker): input OnClick has new event handler

* fix(module:DateTime): remove misleading reliance on picker index

* fix(module: DatePicker & RangePicker): DefaultValue type change

DefaultValue type change to align with Value type

* fix(module:rangepicker): add default values helper with tests

* fix(module:datepicker): ChangePickerValue action declaration fix

Picker value is served based on input index (start/end)

* fix(module:DatePicker): optimization

ViewStartDate, MaxRow & MaxCol do not cause refresh if not changed

* fix(module:DatePicker): min date fix

ArgumentOutOfRangeException fix for dates before DateTime.MinValue

* fix(module:RangePicker): sorted values

Values get ordered on set

* fix(module:DatePicker): OneOf switch to TValue

* fix(module:DatePicker): code optimization and PickerValue fix

PickerValue fix gets first panel value and evaluates second panel value

* fix(module:DatePicker): default values evaluation

* fix(module:RangePicker): default picker value fix

* docs(module:DatePicker): switch to TValue for DefaultValue

* fix(module:RangePicker): other value picker fix

* fix(module:RangePicker): on value init include DefaultValue

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-01-10 13:19:07 +08:00
imhmao
d8ea75a81d fix(module: cascader): duplicated highlighting for the same label (#950)
Co-authored-by: ElderJames <shunjiey@hotmail.com>
2021-01-10 00:53:33 +08:00
James Yeung
43664736f7 feat(module: table): fixed header & columns (#954)
* feat(module: table): support fixed header & columns

* fix layout of the fixed columns & header

* fix scrollbar hidding

* header and body sync scroll

* fix column width calc

* fix demo pagesize

* fix docs
2021-01-09 23:57:31 +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
James Yeung
2e668e1b54 docs: fix header breakpoint (#938) 2020-12-29 23:35:03 +08:00
zxyao
1bdece0ea8 feat(module: modal): add locale for Modal and Confirm (#932)
* feat(module: modal): add Modal locale

* feat(module: confirm): locale support for zh-cn, en-us

* docs: add the demo of override locale's custom text

* feat: locale's json files add confirm configuration

* fix: custom ButtonProps override Button[1,2,3]Text or OK(Cancel)Text

* docs: using InvokeAsync to invoke StateHasChanged

* docs(module: modal): add override locale de
2020-12-29 23:34:18 +08:00
James Yeung
06d96e88a0 fix(module: timeline): add/remove item dynamically (#931) 2020-12-27 01:17:32 +08:00
zxyao
bdcc394958 fix(module: modal): remove non auto destroyed Modal DOM created by ModalService (#926) (#930) 2020-12-26 23:41:02 +08:00
James Yeung
dc208f6491 fix(module: table): tree data doesn't work in asynchrony (#929) 2020-12-26 22:06:16 +08:00
dblleaf
ab9d0be1f0 fix(module: carousel): left/right dot position and dynamically slick rendering (#918)
* Issue#915,and fix the issue that can not render correctly when change carousel DotPosition

* Resolve exception exception of server side when refresh the browser.

* Fix Fade style.
2020-12-26 22:04:00 +08:00
zxyao
ef4701b6ed refactor(module: modal): refactor the code of Modal, Confirm (#914)
* refactor(module: modal): refactor the code of Modal, Confirm and Dialog

refactor details:
- Add DialogWrapper compontent to control the logic of dialog removal from DOM
- Add the appropriate folders for Dialog, Modal, and Confirm
- Remove methods with the same logic but different names in ConfirmService
- Split Title into Title (string) and Titletemplate (renderfragment)
- Add comments to code
- Rename ConfirmDialog to Confirm
- Specification of method name in ConfirmService
- Adjust the time of throttle function for draggabe modal
- Extract the common part of ModalOptions, ConfirmOptions and DialogOptions as DialogOptionsBase

* refactor: move DefaultCloseIcon etc. static members to DialogOptionsBase

* docs(module: modal): update docs

* fix: dialog incorrect waiting

* fix: pickup missing pr/7
2020-12-26 21:39:04 +08:00
dblleaf
17989ff980 fix: overlay can be aligned to right when trigger is not button. (#925) 2020-12-25 13:32:54 +08:00
Bintel
bb700cd7cc feat(module: menu): expose SubMenu's Placement (#921)
* Expose SubMenu's Placement

The Placement of SubMenu can now be changed and it will be set to BottomLeft or RightTop as before if you don't set it.

* Try fix #922

I'm not sure if it will bring new problems, but it solved my problem. I hope someone can help me review it to make sure it doesn't break other things.

* Just optimize code style
2020-12-25 13:28:17 +08:00
TimChen
75d0d4c569 feat(module: form): add ValidateOnChange parameter (#920)
* feat: autoValidate

* refactor

* fix comments

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-12-25 12:51:55 +08:00
zxyao
51ebd03624 fix(module: modal): using ConfimRef to close Confirm dialog but not reset body's scroll bar (#883) (#884) 2020-12-24 14:00:06 +08:00
chaldea
ab214a6325 fix(module: list): the width is overwritten by flex style after setting grid column (#913) 2020-12-24 11:02:22 +08:00
Andrzej Bakun
94a06a8256 fix(module: overlay): overlay will reposition on window resize (#897)
fixes #895
2020-12-24 10:55:08 +08:00
fan0217
b8a6062f6f fix(module: table): add header style and fix the table size (#909)
* rename to header style

* fix selection and action

* delete  useless style

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-12-23 00:47:35 +08:00
Yuanxw
85256eb57c fix(module: descriptions): colspan calculates error (#911) 2020-12-22 10:24:09 +08:00
Andrzej Bakun
5afafa35c3 fix(module: slider): drag, select, focus and rapid reposition fix (#903)
* fix(module:slider): drag lag and reposition fix

remove unnecessary check from OnMouseMove
change position calculation - remove handle size

* fix(module:slider): text select issue while slider drag fix

* fix: remove the style

* clean value

* fix(module:slider): text select while slider drag fix

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-12-21 17:31:59 +08:00
Maksim
dd17701ca2 fix(module: grid): actualBreakpoint NRE in Row (#908) 2020-12-21 16:30:59 +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
张鹏
47961f6c54 fix(module: upload): change to use responseCode not a "error" string when upload failed. (#905) 2020-12-20 13:42:20 +08:00
James Yeung
a04231277a docs: make the site menu responsive (#901) 2020-12-18 16:00:51 +08:00
James Yeung
c4490d4876 fix(module: tabs): style change dynamically (#900) 2020-12-18 15:59:25 +08:00
James Yeung
ca3e80d35e fix(module: statistic): remove the redundant 0 (#896) 2020-12-16 17:42:33 +08:00
James Yeung
c81625e4bd fix(module: collapse): missing style and can not collapse (#892) 2020-12-16 13:24:27 +08:00
James Yeung
0ee2333857 fix(module: modal): the Title property is default to string.Empty in ModalOptions (#887) 2020-12-14 12:54:19 +08:00
szmalec
74e7b8a2a2 fix(module: alert): make description element visible if passed in ChildContent (#881)
* fix(module: alert): make description element visible if passed in ChildContent (#875)

* docs(module: alert): modified example - instead of Description parameter ChildContent is used (#875)
2020-12-12 22:01:27 +08:00
Katherine Yeung
7bbc07248b fix(module: input): repeated dictionary key MaxLength causes an exception (#880) 2020-12-11 16:17:22 +08:00
Luke Parker
a45077163e feat(module: sider): expose sider toggle collapse (#879) 2020-12-11 16:13:40 +08:00
Andrzej Bakun
74b32ed249 fix(module: slider): edge lock, range initial values, both range value change (#866)
* fix:(module: slider): changed to lock to clicked edge

add new OnMouseDownEdge event handler to razor and base class to detect which edge was clicked
add new helper method IsMoveInEdgeBoundary and helper variables
add IsMoveInEdgeBoundary evaluation to OnMouseMove and OnMouseUp event handlers to detec if
value update needs to run

feature: added click-able edges to support forcing of left/right scenarios

* fix:(module:slider): Range property replaced with nullable backing field.

Evaluation of Range is happening in getter (only first time).
Removed evaluation of Range from OnInitialized().

* fix:(module:slider): Reset _leftValue & _rightValue when both change.

Fixes the prolem when both lef&right values are changing significantly compared to original values.

* fix:(module:slider): single edge slider was broken after previous commits

changed IsMoveInEdgeBoundary method to handle null event arguments
added OnMouseDownEdge event to single edged slider

* fix(module:slider): change Value evaluation to handle reversed order

value property is overridden to ensure the delivered tuple is in ascending order
fixes #867

* fix(module:slider): change evaluation of left and right values

fixes #865

* fix(module:slider) reverse parameter is refreshing styles on change

fixes #
2020-12-10 22:30:31 +08:00
ElDiddi
00059fe84e refactor(module: icon): embed icons in the assembly (#810)
Co-authored-by: Lars Diederich <diederich@evodata.de>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-12-08 10:01:43 +08:00
Zonciu Liang
23fc9b0ed3 refactor(module: input-number): support all numeric types (#850) 2020-12-07 22:43:43 +08:00
Elliot
4ba4a301fb feat(module: table): add TitleTemplate for column title (#857)
* feat(module: table): add TitleTemplate for column title

* fix: action column templated title and add a demo

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-12-05 18:44:38 +08:00
笨木头
cdffbaf587 fix(module: menu): submenu couldn't auto close (#852) 2020-12-05 17:23:54 +08:00
James Yeung
4440ef061b fix(module: tabs): ink malposition and card tabs didn't active (#848)
* fix(module: tab): ink position

* fix(module: tabs): ink malposition and card tabs didn't active by default
2020-12-03 13:44:49 +08:00
Zonciu Liang
d62d23257b fix(module: select): the behavior when Overlay is disabled. Remove clear icon when Select is disabled (#847)
* fix(module: core-overlay): 'disabled' class will be removed correctly

* fix(module: select): remove the clear icon if selector is disabled
2020-12-03 12:28:02 +08:00
Zonciu Liang
d11dad8a45 feat(module: form): make the form validator customizable (#841)
* feat(module: form): make the form validator customizable

* docs: simplify form custom validators demo

* modify the demo

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-12-01 19:07:14 +08:00
James Yeung
df99bad7e5 chore: sync ant-design v4.9.0 (#842) 2020-12-01 11:02:28 +08:00
James Yeung
a7c8835087 refactor(module: tabs): separate the TabPane component (#839)
* refactor(module: tabs): separate the TabPane component

* test: fix button to div
2020-11-30 10:53:41 +08:00
Zonciu Liang
3d28e1c58c fix(module: locale-provider): change SetLocale to public method (#838)
change LocaleProvider.SetLocale from private to public
2020-11-28 17:53:06 +08:00
James Yeung
09fcbc8e3d feat(module: select): add a simple select with string type (#836) 2020-11-28 10:02:35 +08:00
TimChen
7ae4c559be feat(module: form): simplify ColLayout (#830) 2020-11-27 16:41:26 +08:00
ElDiddi
41077bc2fb refactor(module: select): completely new (#800)
* select-rewritten

select-rewritten

* modul: select - update 1

* select-update2

* select-update3

* select-update 4

* feat: append label tag & auto tokenization

* fix: conflict in drpdown demo

Co-authored-by: Lars Diederich <diederich@evodata.de>
Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-11-27 13:13:26 +08:00
Nino Padrutt
5809c80011 feat(module: date-picker): support localization (#803)
* start trying to add a different first day of the week based on localization.

* add first day of week parameter and get weekday local  from .net

* fix some issues

* extend demo

* remove no longed needed Locale parameter

* fix range for selection

* add german localization

* add entry for API section

* remove obsolet things from the react ant documentation

* add description to chart documentation

* translate general configuration to english.

* code cleanup

* use LocalProvider to get first day of week.

* use localeprovider instead of date picker localization

* remove no longer used parameter

* delete no longer used interface

* change from enum to string due to parsing issue.

* add missing formats and use culture info from localprovider

* correct locales

* us Sunday as a default

* remove no longer used culture info parameter

* adjust locales

* add parameter for Locale instead of directly accessing it.

* add inheritance to access locale

* typo

* readd culture info parameter

* fixes for locale jsons

* adjust demo and api

* small adjustments on docs, set monday in chinese as first day of the week.

* use locale in calendar as well.

* adjust docs

* use enum

* adjust demo

* adjust for different starting date.

* add defaults for DatePickerLocale

* add short week days to locale files

* use days from locale file

* code cleanup

use consts instead of magic numbers, add code comment and use dayOfWeek As param instead of the whole locale object. Remove no longed used method.

* not sure about the chinese translation so I remove them

* Revert "not sure about the chinese translation so I remove them"

This reverts commit 54017513c7b684494cf06184b4051a4dcfc43850.
2020-11-25 11:08:12 +08:00
Diego Frata
cd7ff7d9f8 fix(module: tabs): stops tabs buttons from flickering when icons are present (#822) 2020-11-24 18:47:52 +08:00
笨木头
405f4b153e fix(module: date-picker): ExtraFooter disappear in month mode (#820) 2020-11-23 23:09:04 +08:00
笨木头
b5a18f5caa fix(module: calendar): method or operation is not implemented (#821) 2020-11-23 23:00:24 +08:00
笨木头
2d28ca9cb6 feat(module: dropdown): support context menu in net5 (#815)
* feat(module: dropdown): ContextMenu support offsetX/offsetY in net5

* fix: demo

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-11-23 13:34:27 +08:00
zxyao
66a1169307 fix(module: modal): throw error when using ModalService if not set ModalOptions.AfterClose (#807) (#809)
* fix(module: modal): throw error when using ModalService (#807)

If ModalOptions.AfterClose is null, the exception will be thrown: delegate to an instance method cannot have null 'this'

* refactor: use automatic properties for  ModalOptions
2020-11-22 21:33:07 +08:00
ElDiddi
ca35485370 fix(module: avatar): code cleaning, doc update (#808)
Co-authored-by: Lars Diederich <diederich@evodata.de>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-11-19 23:05:38 +08:00
ElDiddi
221ff173c2 fix(module: alert): code cleaning, doc update (#806)
Co-authored-by: Lars Diederich <diederich@evodata.de>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-11-19 18:39:14 +08:00
ElDiddi
4a1caf6c40 fix(module: affix): code cleaning, doc update (#805)
Co-authored-by: Lars Diederich <diederich@evodata.de>
2020-11-19 16:19:50 +08:00
Alex Friedman
456c0819ba feat(module: table): add OnRowClick to Table component (#785)
* Add OnRowClick to Table component

This adds a new Parameter to the Table component called OnRowClick that will trigger whenever a user clicks on any of the rows in the table.

* Updated Table row click to pass RowData

* refactor: clean code

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-11-18 17:10:35 +08:00
zxyao
4f4b8ea767 fix(module: modal): dom cannot be destroyed when the page changed on DestroyOnClose is false (#799)
* fix(module: modal): dom cannot be destroyed when the page changed

* chore: remove console.log info of debug
2020-11-18 16:01:31 +08:00
笨木头
353876cb43 fix(module: date-picker): bind-value is useless without form (#798) 2020-11-18 10:43:47 +08:00
abdelkrim boutkhil
6b0e9cb153 fix(module: badge): preset color of ribbon (#791)
* Fix ribbon syle

Text color was same as background color.

* Ribbon documentation

Added two ribbon examples with color set (preset and custom)

* fix : badgeribbon html content

Html content must be the same as in the react version

* revert changes

We don't change less files. They are copied from react version.

* revert

* tests: fix badgeribbon unit tests

Modified expected html to match markup from react version.

* Update tests/badge/RibbonTests.cs

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-11-17 16:38:32 +08:00
James Yeung
ab1d3cc2b1 chore: sync ant-design v4.8.4 (#792) 2020-11-16 22:44:31 +08:00
ElDiddi
f710fdae11 feat(module: menu): Menu Multiple and Menu-Item Title (#787)
* fix(module: menu): multiple and accordion demo

Co-authored-by: Lars Diederich <diederich@evodata.de>
Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-11-16 12:57:42 +08:00
James Yeung
9d6c31ccf4 chore: sync ant-design v4.8.3 (#789) 2020-11-16 10:20:32 +08:00
James Yeung
93c85d54dc chore: sync ant-design v4.8.2 (#770) 2020-11-15 17:03:30 +08:00
Huei Feng
e672e4f363 chore: add .NET 5 target framework to all projects (#758)
Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-11-14 23:44:48 +08:00
笨木头
a6d38a6faf fix(module: autocomplete): overlay couldn't close (#783) 2020-11-13 00:22:41 +08:00
James Yeung
af862ae537 fix(module: menu): menulink active incorrectly (#784) 2020-11-12 22:52:27 +08:00
Micah Osborne
6b21265ae1 fix: absolute positioning before doesn't take the scroll position into account (#744) 2020-11-12 16:53:14 +08:00
Henry.zhang
d3f3d795dd fix(module: switch): loading icon has a little shift (#766)
* fix:  the issue #762 switch loading icon has a little shift

* test: comment the table tests provisionally

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-11-12 15:39:58 +08:00
James Yeung
a23e431d3c fix(module: menu): mark state has changed after menu items were deselect (#779) 2020-11-12 14:05:22 +08:00
James Yeung
7fb7d36873 fix(module: progress): single stroke color (#776)
* fix(module: progress): single stroke color

* fix: change value type
2020-11-10 22:40:00 +08:00
James Yeung
fcd8393742 feat(module: table): support for tree data (#771)
* feat(module: table): support for tree data

* feat(module: table): support for tree data

* fix: tests
2020-11-09 22:17:27 +08:00
James Yeung
fec86ed11b feat(module: table): support for expand row (#768)
* feat(module: table): support for expand row

* feat(module: table): add RowExpandable
2020-11-08 23:29:05 +08:00
James Yeung
c3484dd846 fix(module: table): pagination didn't change while pageindex was changed (#767) 2020-11-08 16:55:34 +08:00
ElDiddi
9c61068c26 fix(module: step): progress size (#760)
Co-authored-by: Lars Diederich <diederich@evodata.de>
2020-11-05 17:34:52 +08:00
James Yeung
c71501109a fix(module: table): header col mistake (#689) 2020-11-03 13:31:22 +08:00
TimChen
d95fd71eb0 refactor(module: auto-complate): add generic options (#741)
* feat: modify demo

* feat: refactor autocomplate
2020-11-02 23:05:17 +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
Kieran Coldron
504b8bceae fix(module: overlay): don't close overlay if is controlled via visible param fixes #742 (#743) 2020-11-01 16:15:48 +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
zxyao
228d979e8f fix(module: confirm): cannot remove from dom when confirm is hidden (#750) 2020-11-01 16:00:23 +08:00
James Yeung
af97be3121 chore: add source link (#748) 2020-10-31 14:21:48 +08:00
老九
2d2652317d fix(module: table): make _waitingReload alaways is true in DataSource setter (#746) 2020-10-30 22:40:19 +08:00
Kieran Coldron
57a69e7254 fix(module: date-picker): improvements (#736)
* fix: hide footer from range time picker so no duplicate footer

* fix: invoke onopenchange for datepicker when panel state changes

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-10-29 18:18:48 +08:00
笨木头
b4c8b52ba6 fix(module: date-picker): event callback args (#713)
* fix: rangepicker parameter error

* refactor: use EventCallback instead of Action

* refactor: use EventCallback instead of Action

* fix: rename the class name

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-10-29 01:20:11 +08:00
James Yeung
428255086e chore: sync ant-design v4.7.3 (#719) 2020-10-25 23:07:27 +08:00
TimChen
6200953db5 refactor(module: checkbox): optimize code (#687) 2020-10-25 23:01:54 +08:00
zxyao
86942d7e18 fix: modal box randomly closed when multiple mouse click performed within it (#696) (#715)
* fix: invalid type mapping

* fix: frequent click results in modal self-closing (#696)

* fix(module: radio): the onclick event is repeatedly triggered
2020-10-25 19:21:36 +08:00
老九
651d0d0e14 fix: array remove issue (#723)
* 当array==null时,改为返回Array.Empty<T>()
* 考虑T类型为引用类型时,集合元素可能为null,原有逻辑会触发null.Equals()的问题
2020-10-25 19:11:45 +08:00
老九
3a0a6073d6 refactor: replace HashCode.Combine in CssSizeLength.cs (#721) 2020-10-25 19:08:11 +08:00
老九
6b1875c83c refactor: use single RequiredAttribute in PropertyReflector (#722) 2020-10-25 19:03:58 +08:00
老九
b6f21b5cf7 perf: Optimize for value converting performance (#720)
* 使用UnSafe替换表达树的编译实现,提高性能

* fix: translate the comments

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-10-25 19:00:51 +08:00
老九
2d685ebe4b fix: deserialization UTF8 encoding issue in extension method of HttpClient (#717)
* 修复HttpClientExtensions反序列化时没有判断内容是否为utf8编码的问题

(cherry picked from commit f6e4903c9336d0f1a43f1da3fe148e08bb917f3f)

* fix: translation comments

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-10-25 18:54:59 +08:00
老九
b1bbe30323 perf(module: table): use hash-code comparison for all the parameters to control UI rendering (#716)
* 为组件增加GetParametersHashCode()扩展方法,以支持控制组件的渲染方式;
为Table组件增加RenderMode的渲染模式参数;

* fix: translate the comments

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-10-25 18:31:31 +08:00
ElDiddi
7b4d258656 fix(module: select): fixed multiple issues #674 #557 #695 #588 #698 (#718)
* fix-module-select-commit3

fix-module-select-commit3

* fix: demo translation

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-10-25 14:59:10 +08:00
ElDiddi
2cd069a6ac fix(module: transfer): fixed multiple issues #711 #645 (#712)
* fix(module: transfer): Fixed multiple issues

fix(module: transfer): Added localization support (LocaleProvider.CurrentLocale.Transfer).  Property name is 'Locale'. #645
fix(module: transfer): Fixed no data image.
fix(module: transfer): Header alignment
fix(module: transfer): Fixed header count suffix
fix(module: transfer): Fixed a bug in the checkbox state if there is 'no item' or no 'not deactivated' item in the selection list.
fix(module: transfer): Duplicate item filter bug fixed (#711)
feat(module: transfer): Added clear button to the filter input
feat(module: transfer): Filter option is now InvariantCultureIgnoreCase (please change it if there is a problem with chinese language)
style(module: transfer): removed unused usings, fixed some style issues
docs(module: transfer): Added Local Property description - Please take a look at the chinese version (Google translate)

* Update index.zh-CN.md

Co-authored-by: Lars Diederich <diederich@evodata.de>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-10-24 13:39:02 +08:00
老九
1b53d1a425 fix(module: table): incorrect SetSortType method (#709) 2020-10-23 21:52:15 +08:00
ElDiddi
98edad243e feat(module: input-number): add callback after value is changed (#703) 2020-10-22 12:48:57 +08:00
kefengwei
c0ec36aab9 feat(module: tree): add methods to find nodes and expand a node (#694)
* ### tree enhancement
1. change `TreeNode`'s `ChildNodes` accessbility to public
2. add `FindFirstOrDefaultNode` funcation
3. add `ExpandToNode` function

* fix `FindFirstOrDefaultNode` not correct recursive problem

* Update components/tree/TreeNode.razor.cs

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-10-21 13:51:41 +08:00
Kieran Coldron
7989288559 fix(module: date-picker): duplicate footer on rangepicker (#690) 2020-10-19 12:04:24 +08:00
TimChen
30d99c380b refactor(module: autocomplete): optimize performance (#686) 2020-10-16 13:08:43 +08:00
笨木头
3ca6a1ba96 fix(module: dropdown): context menu would show on "OnClick" event (#678)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-10-14 17:42:57 +08:00
Brian Ding
20ec26034d feat(module: back-top): display and disappear on scroll (#679)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-10-14 17:33:36 +08:00
笨木头
34fff47114 fix(overlay): bugs when overlay is nested (#681) 2020-10-14 17:24:26 +08:00
zxyao
6bf817d1ea feat(module: modal): support creating Modal dialog from ModalService (#676)
* refactor: change the name of ModalRef to ConfirmRef

in order to create a Modal dialog in service mode

BREAKING CHANGE: all using of ModalRef must rename to ConfirmRef

* refactor: chang the name of ModalTemplate to ConfirmTemplate

in order to create a Modal dialog in service mode

BREAKING CHANGE: all using of ModalTemplate must rename to ConfirmTemplate

* feat(module: modal): support creating Modal dialog from ModalService

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-10-14 15:09:11 +08:00
James Yeung
66f6183e0f feat(module: avatar): add avatar group (#677)
feat: add max count style

feat(module: avatar): add avatar group
2020-10-14 13:56:59 +08:00
James Yeung
3fb5998d19 chore: sync ant-design v4.7.0 (#675) 2020-10-14 13:31:22 +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
TimChen
a2e4bc4ef3 feat: simplify drawer calling method (#657)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-10-10 22:19:15 +08:00
Vladislav Richter
059491d749 refactor: replace IdGeneratorHelper with DI service that can be replaced by user (#664)
* Replaced IdGeneratorHelper with DI service that can be replaced by user

* removed license comments and unnecessary usings

* check Id null before assigning autogenerated id

* fix: unit test

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-10-10 15:31:32 +08:00
TimChen
35b5029117 feat(module: auto-complete): add disabled and placeholder properties (#655)
* feat: add Disabled Placeholder

* fix: api doc

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-10-09 16:32:40 +08:00
TimChen
542b66d383 refactor: tree (#672)
* feat: refactor tree

* feat: refactor tree

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-10-09 15:13:32 +08:00
Vladislav Richter
7ed9c6550f feat(module: collapse): panel toggle and SetActive propagation to Collapse, De/activate panels by keys (#666)
* When Panel is set as active, call parent Collapse in case it is in a accordion mode, Allow shortcut Toggle method and always null-check referenced Collapse.

* Alllow de/activating child Panels by their keys.

* docs: update the demo and api doc

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-10-09 14:11:23 +08:00
zxyao
0c90ef19d7 fix: await with null propagation system null referenceexception (#663)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-10-09 11:32:32 +08:00
TimChen
914dfed427 feat: complete backtop (#660)
* feat: complete backtop

* fix: backtop

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-10-09 10:59:52 +08:00
zxyao
86cd7a1184 fix(module: confirm): cannot config confirm width (#651) (#654) 2020-09-28 23:46:27 +08:00
Brian Ding
62c84aa84f fix(module: slider): cannot slide (#653)
* feat: deserialize event listner args

* fix(module: slider): update ts method

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-09-28 16:44:11 +08:00
James Yeung
5aa5f8cedf chore: sync ant-design v4.6.6 (#648) 2020-09-28 16:07:59 +08:00
bingbingtalk
0930f79da8 feat(module: table): add colspan & rowspan (#649)
* feat(module: table): add colspan & rowspan

* fix: unit test

* test: add colspan and rowspan case

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-09-28 16:06:02 +08:00
笨木头
48c9cc7143 fix(module: auto-complete): could not select value by chance (#647)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-09-27 23:05:23 +08:00
TimChen
474b768c49 fix: textarea display bug (#650) 2020-09-27 22:01:04 +08:00
James Yeung
14e695d8aa fix(module: badge): incorrect status dot & disappeared scroll number (#642) 2020-09-23 16:00:03 +08:00
James Yeung
d81f9a583f fix: the prerendering interop exception with some components (#636) 2020-09-21 17:20:19 +08:00
笨木头
feef9f7863 fix(module: menu): rendering for lv >1 submenu is invalid (#634)
* fix: subMenu of subMenu rendering is invalid

* feat: add demo for 2 level submenu

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-09-21 01:01:14 +08:00
James Yeung
a8d04b6237 chore: sync ant-design v4.6.5 (#633) 2020-09-20 14:53:20 +08:00
Kieran Coldron
0b7341bc99 fix(module: statistic): allow setting class (#632) 2020-09-20 11:45:58 +08:00
James Yeung
95c54a4461 fix(module: card): grid and tabs has wrong styles (#627) 2020-09-20 10:43:40 +08:00
笨木头
143b16335b fix(module: select): incorrect dropdown style (#629) 2020-09-20 10:42:42 +08:00
笨木头
edba6e5d4f fix(dropdown, select): work incorrectly in modal (#621)
* fix(module: select): broken removing of selected tag

* fix: [dropdown、select] work incorrectly in modal
2020-09-19 09:15:16 +08:00
Yuanxw
eb361b0d8b fix(module select): works incorrectly in modal (#620)
* feat: add text keyboard parameter,and update demo

* fix(module select): works incorrectly in modal
2020-09-18 17:28:46 +08:00
James Yeung
124df13fdb fix(module: list): list item layout in ListItem (#618) 2020-09-18 00:03:44 +08:00
James Yeung
20c1197793 docs: follow up the .net 5 docs and fix the culture issue (#615) 2020-09-17 16:42:23 +08:00
笨木头
ef7f557a7f fix(module: select): broken removing of selected tag (#613)
* fix(module: select): broken removing of selected tag

* refactor: remove comment
2020-09-17 14:14:48 +08:00
James Yeung
2d03d7fa53 fix(module: menu): the selected menu item would unselect itself (#611) 2020-09-17 11:10:44 +08:00
笨木头
6d0d8020a3 docs(select&auto-complete): add popupContainerSelector demos (#607)
* docs: add popupContainer

* docs(module: auto-complete): add popupContainer demo

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-09-17 10:37:47 +08:00
James Yeung
128464c681 refactor(module: list): allow to setup each list item (#603)
* refactor(module: list): allow to setup each list item

* fix: itemLayout type
2020-09-17 10:09:20 +08:00
wusanwa
2a8c846eb8 fix(module: select): add PopupContainerSelector parameter (#606)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-09-16 20:07:30 +08:00
TimChen
19f51c87fa fix(module: drawer): close event bug (#599)
* fix: drawer close event bug

* refactor: translate some comments

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-09-16 19:42:48 +08:00
TimChen
cbc5e823f0 refactor(module: all): separate the normal and template parameters (#552)
* fix: card title template

* fix: template:badge,collapse

* fix: comment refactor template

* fix: ribbonTests

* feat: descriptions refactor template

* feat: empty refactor template

* feat: list refactor template

* feat: menu refactor template

* feat: confirm add question icon

* feat: pageHeader and statistic refactor template

* feat: popconfirm refactor template

* feat: popver refactor template

* feat: result refactor template

* feat: step refactor template

* feat: switch refactor template

* feat: table refactor template

* feat: transfer refactor template

* feat: optimized code

* fix: pageheader

* refactor(module: empty): remove empty image constant images

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-09-16 13:58:16 +08:00
James Yeung
5af08ef933 chore: sync ant-design v4.6.4 (#596) 2020-09-13 22:16:12 +08:00
James Yeung
19bfe1bfff chore: sync ant-design v4.6.3 (#577) 2020-09-11 15:44:34 +08:00
Diego Frata
a5e203e60b feat(module: tabs): add support to ForceRender (#589)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-09-11 14:37:38 +08:00
Micah Osborne
1fb8e2f244 fix(module: menu): initial state of being collapsed not reflected in menu
When Menu is in Sider, Initial state of being collapsed not reflected in menu.

Co-authored-by: Micah Osborne <micah@blockarray.com>
Co-authored-by: Diego Frata <d@frata.io>
2020-09-10 19:39:24 +01:00
chaldea
322e491d67 fix(module: list): grid not working (#587) 2020-09-10 10:18:46 +08:00
笨木头
2cdc2654d9 fix(module: select): wrong overlay style (#586) 2020-09-10 08:27:48 +08:00
笨木头
d2c5202c51 refactor(module: select): add overlay, fix some serious bugs (#584) 2020-09-09 22:12:12 +08:00
zxyao
f509117d02 fix(module: drawer): merge oncancel and onclose (#522) (#547)
* fix(module: drawer): merge oncancel and onclose (#522)

* docs: update drawer docs

* fix: drawer service cannot catch onclose on 'x' clicked

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-09-09 11:33:41 +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
95df2c811d fix(module: table): the sorter doesn't work (#582) 2020-09-08 17:13:26 +08:00
James Yeung
5d57bab600 docs: add i18n docs (#581) 2020-09-08 16:43:44 +08:00
James Yeung
d0dee68e3c feat(module: i18n): add more languages (#580)
* feat(module:  i18n): add more languages

* feat: add a method for additional languages
2020-09-08 12:40:58 +08:00
James Yeung
bd34858efd feat: support for globalization & localization (#578)
* feat: add locale

* feat: add locale interfaces

* fix: add locale interfaces for components

* fix: use local classes instead of interfaces

* feat: implement the locale provider

* feat: make some components to support localization

* fix: default language

* fix: test

* chore: remove the useless reference
2020-09-07 22:46:50 +08:00
James Yeung
58504bba1b refactor(formatter): merge the special method of timespan into formatter (#575)
* refactor(formatter): merge the special method of timespan into formatter

* test: add test for formatte
2020-09-06 15:31:40 +08:00
Diego Frata
7119351b9f fix(module: table): fix collection modified exception (#570) 2020-09-05 20:27:52 +08:00
James Yeung
b257d17844 fix(module: cascader): crashes when options is null (#572) 2020-09-05 16:11:42 +08:00
zxyao
88a26ac583 fix(module: modal&drawer): body scroll bar does not respond correctly (#573) 2020-09-05 16:09:58 +08:00
James Yeung
5e63c10d6e fix(module: statistic): there is no title but the element is rendered (#569) 2020-09-05 00:51:50 +08:00
yxw
8438b1aaab feat: add text keyboard parameter,and update demo (#566) 2020-09-04 11:24:50 +08:00
Diego Frata
4fb04f401d fix(module: button): allows type and shape to change (#564) 2020-09-03 06:02:30 +08:00
James Yeung
716785b6b2 fix(module: upload): fileList can't be refreshed while it was changed (#561) 2020-09-02 15:15:59 +08:00
TimChen
2e9b89f3e5 fix: modal button sort (#553)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-09-02 14:56:20 +08:00
James Yeung
af781d51c6 fix(module: upload): files that aren't pictures can't be downloaded (#560) 2020-09-02 10:31:21 +08:00
James Yeung
a4e4d6f556 refactor: get PropertyInfo from expression (#559) 2020-09-01 17:23:31 +08:00
James Yeung
56ab40ba2c fix(module: carousel): make carousel responsive (#558) 2020-09-01 13:49:31 +08:00
James Yeung
e3bb43a3ff fix(module: checkbox): options.value works incorrectly (#554) 2020-08-31 23:41:33 +08:00
James Yeung
47ad157c8b refactor: make the extensions class for HttpClient internal (#549)
* refactor: make httpclient extensions internal

* fix: set property name case-Insensitive
2020-08-31 15:59:47 +08:00
TimChen
3d23cfd5c1 fix(module: pageheader): onback icon (#544)
* feat: fix pageheader onbackicon

* docs: pageheader doc

* docs: pageheader

* fix: anchor _flatLinks is null bug

* fix: custom icon

* fix: custom icon and statictic value converting

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-08-31 11:51:11 +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
James Yeung
a6219ab0bd fix(module: menu): can't open submenu while sider is collapsed (#539) 2020-08-28 13:51:01 +08:00
James Yeung
e249eaa25f fix(module: statistic): separate decimal incorrectly (#538) 2020-08-28 00:13:54 +08:00
bingbingtalk
6ce885667e fix(module: menu): submenu was closed when router active (#535)
Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-08-26 23:18:49 +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
Brian Ding
77af5a3dc7 refactor(JS Interop): reuse the global event listener (#466)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-08-26 11:13:36 +08:00
zxyao
ec6886ae24 feat(module: modal): support draggable (#523)
* feat(module: modal): allow drag Modal

* feat(module: demo): add draggable modal demo

* fix(module: modal): support reset position on show in draggable mode

* fix: width error when modal close immediately after opening

* docs: change demo order of Modal compontent

* fix: modal reset to antd style when close immediately after opening

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-08-26 07:28:44 +08:00
James Yeung
07747546ce fix(module: steps): incorrect activation and clickable (#530) 2020-08-23 21:20:29 +08:00
笨木头
933d67f474 fix: submenu could not open when switch mode (#527)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-08-23 17:33:53 +08:00
James Yeung
91b6e0efcc chore: sync ant-design v4.6.0 (#524) 2020-08-23 16:06:08 +08:00
James Yeung
b2231305f2 fix(module: checkbox): default value for options (#525) 2020-08-23 14:38:24 +08:00
zxyao
84a3b742c2 feat(module: modal): support getting the result from confirm (#476)
* feat(module: confirm): support blocking to get the result of confirm

* refactor: change modalservice Confirm return value,add ConfirmAsync FUNC

* feat: add ConfirmService

* fix: button text

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-08-22 09:24:55 +08:00
James Yeung
a91a5d6644 fix(module: sider): can't collapse in demo (#513) 2020-08-18 18:05:44 +08:00
Henry.zhang
4e0a3028bb fix: get the icon list of application icons from existed IconServices (#506)
* feat: get the icon list of application icons from existed IconServices

* fix:  iconlist always is loading issue
2020-08-16 22:51:24 +08:00
笨木头
e42aa8aeb7 feat(module: range-picker): support form (#496)
* feat(module: range-picker): support form

* fix(module: range-picker): has no default value in from

* fix: picker's close behaviour and range arrow's style is wrong

* feat(module: datepicker): change placeholder on mouse over

* style(module: datepicker): adjust range arrow

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-08-14 12:43:48 +08:00
Henry.zhang
7b31935f74 docs: add icon list (#478)
* feat: add icon list for demo page of icon

* feat: add copy function for icon list

* feat: get existed icon

* feat: remove some blanks in list.razor

* feat: remove some blanks

* fix: default value is outline for icon list

* fix: click to copy for icon list

* feat: add async to load icon list

* feat: update iconlistService

* chore: update icons

* fix: icon load async

* feat: add application icons in IconlistServices

* fix: remove the exist icon from existed catogory if duplicated

* fix: add @key for list items

* fix: revert the change

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-08-14 07:13:28 +08:00
James Yeung
81cce2a2d5 fix(module: radio): disabled in radio group doesn't work (#503) 2020-08-13 23:32:51 +08:00
James Yeung
9b0f95ef3a fix(module: alert): close motion 'Smoothly Unmount' (#502)
* fix(module: alert): close motion

* fix: add de
2020-08-13 16:04:58 +08:00