Commit Graph

57 Commits

Author SHA1 Message Date
James Yeung
095fd1bae2 docs: update recommend (#1755)
* docs: update recommend

* fix test
2021-07-21 00:47:23 +08:00
anranruye
16654f5b51 Merge 0.8.4 to feature 2021-07-18 00:04:11 +08:00
ElderJames
8fe830dc8b fix build process for static web assets 2021-07-14 15:42:06 +08:00
James Yeung
1bc79e2539 fix(module: checkbox): fix the test following up PR #1689 (#1699)
* fix(module: checkbox): fix tests

* fix testkit package
2021-07-02 12:44:39 +08:00
James Yeung
3a295f5c54 feat(module: tabs): add OnClose event and TabTemplate (#1698)
* feat(module: tab): add onclose event and tabtemplate

* add tests
2021-07-02 01:16:53 +08:00
Andrzej Bakun
24d081ea8c fix(module: date-picker): Date picker blur/focus & regression tests (#1681)
* fix(module:datepicker): locale & blur issue fix

* tests(module:datepicker): add regression tests

* fix: focus is kept on picker false click & blur is applied when needed

* fix: tests
2021-06-28 11:28:18 +08:00
Andrzej Bakun
1d3a13e57e feat(module: dropdown): each button customization (#1659)
* feat(module:dropdownbutton): each button customization

* fix: Tag tests
2021-06-22 23:55:14 +08:00
anranruye
b8658549e6 Merge 0.8.2 to feature 2021-06-18 16:09:13 +08:00
Andrzej Bakun
cee5d6914c fix(module: tag): Issue solved & align with react antd & tests (#1631)
* fix(module:tag): close does not trigger onclick

add custom color handling
add animation handling
add status tags

* docs(module:tag): align with react antd

* tests(module:tag): add basic tests

* fix: style fixes

* fix: remove default animation; add custom animation demo

* fix: remove ExtraCls and use Class from base

* Update components/tag/Tag.razor

* clear the open animate after tag opened

* translate demo docs

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-06-16 13:49:46 +08:00
笨木头
ec45abc4d7 feat(module: form): support set validation rules on FormItem (#1516)
* feat(module: form): support set validation rules on FormItem(not complete yet)

* refactor(module: form): optimized code

* feat(module: form): support Whitespace rule

* feat(module: form): support [message、pattern、transform、validator、whitespace] rules

* feat(module: form): support type rule

* feat(module: form): support [defaultField、oneOf、fields、type] rules

* feat(module: form): support custome validate messages(without test)

* test(module: form): complete RuleValidate_ValidateMessages test

* feat(module: form): complete DynamicRule demo, refactor code, fix bugs

* feat(module: form): support ValidateMessages param

* doc(module: form): add "Rules" and "ValidateMessages" docs

* fix: Rule.Max's errorMessage is wrong

* refactor: rename Rule to FormValidationRule

* test: rename Rule to FormValidationRule

* chore: refactor code and rename classes

* Update ValidateMode.razor

* Update FormValidateErrorMessages.cs

* Update FormValidateHelper.cs

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-05-28 09:08:42 +00: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
Andrzej Bakun
bc782a23f0 fix(module: npuNumber): include parser in value evaluation (#1567) 2021-05-24 23:51:44 +08:00
James Yeung
bfb5e4f396 merge 0.8.1 to feature 2021-05-16 19:58:03 +08:00
James Yeung
7e5e83ee19 fix(module: radio): add defaultChecked and defaultValue (#1494)
* fix(module: radio): add defaultChecked and defaultValue

* add tests

* add test for radio group
2021-05-15 22:59:18 +08:00
笨木头
1808260a3e test: DateHelperTests was in the wrong dir (#1529) 2021-05-14 14:40:31 +08:00
Andrzej Bakun
2d36dd4081 feat:(module: form): edit context dynamic change (#1504)
* tests: project up to standards

* fix(module:form): allow EditContext change
2021-05-11 11:13:14 +08:00
Zonciu Liang
d77da6c003 fix(module: table): set DisplayName to null if MemberExpression is not found in the DataIndex expression tree (#1488) 2021-05-08 13:03:07 +08:00
Zonciu Liang
d98b402b10 fix(module: table): exception is thrown when the DataIndex ends with the get_Item method. (#1485) 2021-05-08 01:47:41 +08:00
Andrzej Bakun
9509603489 fix(module: select): support IEnumerable in form (#1460)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-05-06 05:42:19 +00:00
Andrzej Bakun
f23f5088dc fix(module: checkbox): remove Value initialization blocking (#1459)
* fix(module:checkbox): remove Value initialization blocking

* Update CheckboxTests.razor

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-05-06 05:23:19 +00:00
James Yeung
e648cdd53a fix(module: cascader): incorrect size (#1432)
* fix(module: cascader): incorrect size

* add test for cascader size
2021-04-28 22:42:29 +08:00
Andrzej Bakun
b27e4d47a6 fix(module: datepicker): validate manually entered date against format (#1389)
* fix(module:datepicker): validate manually entered date against format

* fix(module:datepicker): keep frozen the panel until valid date entered

* fix(module:datepicker): switch to current culture format

* fix(module:datepicker): build fix

* fix(module:datepicker): use InvariantCulture when calling ToString on date

* fix(module:datepicker): FormatAnalyzer handles also year, week, month & quarter picker

* fix(module:datepicker): FormatAnalyzer broken tests

* fix: FormatAnalyzer handles prefixes in format.

Suffix is handled for picker type = "year"
Tests include validation of not changing state

* fix: all modes go through format analyzing (inluding week&quarter)

* fix(module:datepickerbase): InternalFormat initalized properly for all modes

* fix(module:rangepicker): reset opposing date when in conflict with current

* fix(module:rangePicker): handle null in second part of range

* fix(module:datepicker): switch from BindConverter to partials

* tests(module:datepicker): FormatAnalyzer new tests to cover switch from BindConverter

* tests(module:datepicker): missed change in tests

* fix: focus, key events, reset value to original if not confirmed

* fix: bug fix on range & clean-up

* Update DatePicker.razor

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-28 03:54:19 +00:00
Andrzej Bakun
883b7c6e11 fix(module: select): OnDataSourceChange called when expected (#1419)
* fix(module:select): OnDataSourceChange called when expected

* test(module:select): add missing scenari
2021-04-27 10:45:02 +08:00
Andrzej Bakun
555fdb9a43 fix(module: checkbox & switch): Checked parameter binding (#1394)
* fix(module:checkbox): allow binding to Checked parameter

* fix(module:switch): allow binding to Checked parameter

* fix(modules): checkbox & switch get AntInputBoolComponentBase class

* test(module:switch): add tests

* test(module:checkbox): add tests

* test(module:divider): simplify by using id:ignore

* docs(module:checkbox): bind example

* docs(module:switch): bind example

* fix(module:switch): add Control + docs + tests

* feat(module:checkboxgroup): add layout and mixed mode

* fix: review comments + tests

* fix(module:checkboxgroup): parameter name should be MixedMode

added more tests

* fix demo

* fix(module:checkboxgroup): allow toggling between modes

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-25 01:04:21 +08:00
Zonciu Liang
d0e40fbdfd refactor: replace PropertyAccessHelper to PathHelper (#1386)
* feat(module: core): add member path helper

* refactor(module: table): replace PropertyAccessHelper to PathHelper

* docs: replace path-based-property-access to member-path-helper

* refactor(module: select): replace SelectItemPropertyHelper to PathHelpe
2021-04-24 13:07:27 +08:00
Andrzej Bakun
68966ef511 test(module: divider): divider tests (#1397)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-21 10:44:40 +08:00
James Yeung
d4cbc6d4e0 feat: add element component (#1378)
* refactor: rename `HtmlElement` property case

* rename the directory name for overlay

* add element component
2021-04-17 22:14:01 +08:00
Andrzej Bakun
fc5086a3f7 fix(module: avatar): size calculation & CssSizeLength functionality expansion (#1364)
* core: expand CssSizeLength to handle double & decimal (with tests)

* fix(module:avatar): move to CssSizeLength

fix: explicit size calculation

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-16 02:50:31 +00:00
ElderJames
aaff88adf7 merge master into feature 2021-04-08 22:32:48 +08:00
Patrick
ba2c5e51d8 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>
2021-04-04 21:37:06 +08:00
James Yeung
194caa37fb docs: add changelog in document (#1306) 2021-04-04 00:54:18 +08:00
笨木头
32d1f27708 fix(module: datepicker): DatePicker DisabledDate works incorect (#1298)
* fix(module: datepicker): DatePicker DisabledDate works incorect

* test(module: dateHelperTests): modify test case

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-02 16:08:36 +00:00
Patrick
f20d863bc3 test: Add ability to use OverlayTrigger in tests (#1227)
* Add TestDomEventService to TestBase

* chore(tests): update to net5

* feat(testdomeventservice): override eventdomservice to null

* fix(AddEventListener): make AddEventListener virtual

* feat(test): add basic overlay test

* fix(name): make name .cs
2021-03-09 13:54:30 +00:00
Zonciu Liang
ea412b24ec feat(core): access object's property by path-based string (#1056)
* fix: DataIndex access maybe null object

* feat: access object's property by path-based string

* doc: update Table DataIndex demo

* doc: correct Table/demo/custom-row-style.md file encoding

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-01-31 01:25:25 +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
Andrzej Bakun
c03e4c4c1b chore: bUnit update to 1.0.0-preview-01 (#1009) 2021-01-20 20:02:35 +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
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
Diego Frata
cd7ff7d9f8 fix(module: tabs): stops tabs buttons from flickering when icons are present (#822) 2020-11-24 18:47:52 +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
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
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
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
c71501109a fix(module: table): header col mistake (#689) 2020-11-03 13:31:22 +08:00
Dylan R. E. Moonfire
d5b1d53241 test(module: grid): added rendering tests for properties of columns (#747)
- This is to complete #343.

Co-authored-by: Moonfire <Dylan.Moonfire@ryan.com>
2020-10-31 10:43:20 +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
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
James Yeung
e95ee75f80 chore: update the docs project to .net 5 rc1 (#612)
* chore: update the docs project to .net 5 rc1

* chore: update dotnet sdk for pr check actions

* chore: update cli to .net5

* fix: cli output path

* fix: also should install 3.1

* fix: switch installation sequence

* chore: update test to .net 5
2020-09-17 15:03:25 +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
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