Commit Graph

1219 Commits

Author SHA1 Message Date
James Yeung
9af7821d9c changelog 0.8.2 (#1649) 2021-06-18 00:22:40 +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
James Yeung
46199b8e30 fix(module: image): fix the style property position (#1642) 2021-06-16 11:29:38 +08:00
anranruye
be1f432217 fix(module: checkbox): fix checkbox group in-form behavior (#1637) 2021-06-16 10:07:28 +08:00
anranruye
3117e72344 fix(module: table): fix selection clear (#1632)
* fix(module:table): fix selection issues

* allow SetSeletion(null) when there is not a Selection column

* allow change selection by setting RowDate.Selected
2021-06-15 18:22:07 +08:00
anranruye
6cd8482292 fix(module: table): add RemoteDataSource (#1558)
* feat(module:table): add PaginationMode parameter

* fix(module:table): fix pagination

* docs(module:table): add doc for PaginationMode attribute

* add a demo file

* docs(module:table): add demo for pagination mode

* feat(module:table): add RemoteDataSource property

* delete the demo for PaginationMode

* Update Table.razor.cs

* add `ajax` demo

* Update ajax.md

* Update Ajax.razor

* fix demo

* clear demo

* fotmat demo

* delete StateHasChanged

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2021-06-15 16:13:06 +08:00
Razvan Predescu
92d7203815 fix(module: modal): Modal dialogs not showing anymore (#1635)
* Fix issue #1634 - Modal dialogs not showing anymore

* Removed unnecessary Search from ButtonProps as part of #1634 fix - Modal dialogs not showing anymore
2021-06-14 00:33:26 +08:00
zxyao
8dda4147c4 docs: update modal and drawer docs (#1625)
* docs: update modal docs

* docs: modify DropdownInDrawer

* docs: update demo for DrawerService and ModalService
2021-06-13 23:04:19 +08:00
anranruye
6e9ddb80df feat(module: select): support simple data source (#1541)
* feat(module: select): support simple data source

* remove judgement for type of item and value

* Update Select.razor.cs
2021-06-13 00:39:31 +08:00
James Yeung
5a7152fcab chore(ci): fix coverage report uploading (#1614)
* chore(ci): fix coverage report uploading

* continue when fail to upload
2021-06-10 16:28:54 +08:00
Gregory Loones
30e5988c6b i18n: Add missing elements to Dutch locales (#1624) 2021-06-10 11:06:30 +08:00
Andrzej Bakun
5cc5018c9c fix(module: datepicker): in form behavior (#1617) 2021-06-10 10:09:19 +08:00
Andrzej Bakun
4cac27f887 fix(module: dropdown): dropdown button missing properties & docs fix for Dropdown & Button (#1609)
* fix:fix(module:dropdownbutton): add regular button behaviors and properties

* fix(module:button): add text type & docs

* docs(module:dropdown): version correction

* fix(module:overlay): re-add IsButton parameter

* fix: add xml comment to public methods

* fix(module:overlay): add xml documentation

* fix(module:dropdown): chrome block button force

* fix(module:button): remove Search parameter

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-06-09 17:51:24 +08:00
anranruye
dc02db39da fix(module: table): fix wrong compare operator, remove input components for unary filter operators (#1596)
* fix(module:table): fix wrong compare operator

* remove whitespace

* fix(module:table): remove input component for 'is null' and 'is not null' table filter

* Update Column.razor

* fix(module:table): allow remove first filter

* remove whitespace

* Update Column.razor

* Update Column.razor

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-06-09 16:14:41 +08:00
James Yeung
19d4e69a78 fix(affix): remove wrong event listeners (#1616) 2021-06-09 12:36:07 +08:00
anranruye
1b319e63fc fix(module: InputNumber): fix error when blur (#1612) 2021-06-08 23:24:25 +08:00
anranruye
8157f61e84 refactor(module: table): restore Table.Filters to IEnumerable<TableFilter<TData>> type (#1608) 2021-06-08 16:51:30 +08:00
anranruye
0577db8a5c fix(module: table): fix filter not applied (#1594) 2021-06-08 00:04:12 +08:00
anranruye
840184fd51 fix(module: table): fix filter icon wrong highlight, fix filter behavior when there is no input value (#1592)
* fix(module:table): fix filter icon wrong highlight

* Update Column.razor

* fix(module:table): fix filter for no input
2021-06-07 23:47:03 +08:00
anranruye
fca845ab00 fix(module: table): fix can not close filter by confirm button (#1602) 2021-06-05 23:51:29 +08:00
anranruye
ce55fc0f1d refactor(module: table): optimize render fragments (#1597) 2021-06-05 23:35:04 +08:00
anranruye
477c57f9db feat(module: table): filter enhancement (#1563)
* feat(module: table): allow access to filter operator and condition

* feat(module: table): allow access to filter operator and condition

* feat(module:table): allow remove the first filter

* Update Column.razor

* feat(module:table): modify closing button position

* feat(module:table): match new style

* feat(module:table): add header column divider

* fix(module:table): apply filter when close the filter panel by clicking the filter icon

* Update Column.razor

* style(module:table): trim Column.razor

* Update Column.razor

* Update Column.razor

* Update Column.razor

* Update Column.razor

* fix(module:overlaytrigger): fix overlay not close after overlay size changes

* unify muiltiple filter popup containers to one
2021-06-03 18:54:41 +08:00
Andrzej Bakun
80e0043445 fix(module: dropdown): align with react (#1588)
* fix(module:dropdownbutton): align with react version

* doc(module:dropdownbutton): align with react docs
2021-06-02 10:46:58 +08:00
Andrzej Bakun
8e98528ce1 feat(module: datepicker): Picker clear button event (#1586)
* feat(module:datepicker): add OnClearClick eventcallback

* docs(module:datepicker): format docs has same behavior as react docs

* fix: adjust code to match net 3.1

* fix: eventcallback name fix

* Update site/AntDesign.Docs/Demos/Components/DatePicker/doc/index.zh-CN.md

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-06-01 10:16:07 +00:00
James Yeung
c264b7d022 docs: document improvement (#1578)
* fix the ordering of menu items

* add ueditor link

* fix icon document search style

* fix affix width for side menu

* add faq doc
2021-05-31 19:45:23 +08:00
black-snake
6b537f113b docs: Added essential step in get started procedure (#1579)
* Added essential step in get started procedure

The article is missing the dependency registration. If these dependencies are not registered, the library couldn't be used (at least in my case).

* Update getting-started.en-US.md

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-05-30 21:47:29 +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
zxyao
895c758836 fix(module: drawer): OffsetX and offsetY do not work (#1435) (#1448)
* fix(module: drawer): OffsetX and offsetY do not work (#1435)

* docs: demo update

* fix: Placement is switched to the relative direction, the animation appears

* fix: the bug of closing animation missed

* fix: incorrect animation

* fix: different behaviors in WASM and Server side

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-05-28 06:10:44 +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
Romain J
c9d493e859 feat(i18n): Add French short week days (#1521) 2021-05-26 13:12:14 +08:00
James Yeung
c181916dea chore: sync ant-design v4.16.0 (#1569) 2021-05-25 10:01:53 +08:00
Andrzej Bakun
bc782a23f0 fix(module: npuNumber): include parser in value evaluation (#1567) 2021-05-24 23:51:44 +08:00
anranruye
8ab168bad7 docs(module: table): update ‘fork official sample’ demo (#1544)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-05-20 17:17:04 +00:00
anranruye
7e30f5873b fix(module: locale): add missing 'filterOptions' node to german locale file (#1562) 2021-05-20 23:38:22 +08:00
Magehernan
27bf4e0b8e feat: Added locale es-ES (#1534) 2021-05-17 22:43:06 +08:00
Patrick
ea43ee7555 feat(module: tag): Add custom colors and Enum of Preset Colors (#1514)
* merge

* feat(tag): add custom colors and enum presets

* Update package.json

fix: remove vscode rubbish

* feat: add global PresetColor, and new PresetColor param

* feat: add preset color to Badge

* feat: tag style calcuated on setter

* fix: user style is appended to stringbuilder

* empty commit

Co-authored-by: Patryk Grzelak <pgrzelak@mutate.app>
2021-05-17 00:40:52 +08:00
zxyao
d3434398e3 feat(module: notification): add NotificationRef support (#1498)
* feat: add NotificationRef support

* docs: update docs

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-05-16 21:55:44 +08:00
James Yeung
42097cece5 Merge 0.8.1 to feature (#1539)
* fix(module: select): enum default value protection (#1368)

* fix(module: affix): can't affix while OffsetTop is zero (#1373)

* fix(module: affix): can't affix while OffsetTop is zero

* use affixed setter for rerendering

* limit rerendering

* fix(module: input): binding data when the Enter key is pressed (#1375)

* fix(module: table): ellipsis can't work (#1376)

* feat: add element component (#1378)

* refactor: rename `HtmlElement` property case

* rename the directory name for overlay

* add element component

* fix(module: table): Unify FieldName, add DisplayAttribute for DiplayName, fix Filter for DataIndex (#1372)

* fix(module: table): Unify FieldName value

* fix(module: table): Get column name from DisplayAttribute

* fix(module: table): Filter for DataIndex

* docs(module: table): Intuitive sorterCompare for Filter demo

* fix(module: table): fix header title doesn't display when Sortable is false

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

* fix(dialog): add Dispose lifecycle function to Dialog (#1379)

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

* fix(module: input): preserve focus and caret position for input password when visibility is toggled (#1377)

* set focus when the password button is clicked

* add methods for selection

* set selectionStart after Focus

* fix typescript

* set selectionEnd as well

* fix a stupid if-condition-bug

* remove checks for element

* add selectionStart to getDomInfo

* get selectionStart from Element

* delete unneeded js method

Co-authored-by: mihails.kuzmins <mihails.kuzmins@daytongroup.lv>
Co-authored-by: James Yeung <shunjiey@hotmail.com>

* fix(module: table): can not use DataIndex nullable mode with not nullable property (#1382)

* fix(module: table): column header sorter not refresh after ClearSorter is called (#1385)

* fix(module:table): column header sorter not refresh after ClearSorter is called

* add judgment condition for calling StateHasChanged in IFieldColumn.ClearSorter()

* fix(module: form): validation message unique (#1391)

* fix(module: tag): closable typo and delete mode (#1393)

* fix(module: tag): closable typo and delete mode

* return early

* test(module: divider): divider tests (#1397)

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

* feat(module: modal): support define modal's style in ModalOptions (#1400)

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

* fix(module: select): OnDataSourceChange called when expected (#1419)

* fix(module:select): OnDataSourceChange called when expected

* test(module:select): add missing scenario

* fix(module: table): DataIndex filter pop up (#1421)

* fix(module:overlayTrigger): TrigerRefernece points to OverlayTrigger.Ref.

* fix(module:overlay): Show waits for competing code to finish

* Update OverlayTrigger.razor.cs

* clean code

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

* feat: use ResizeObserver Api instead of window.resize (#1392)

* feat: use ResizeObserver Api instead of window.resize

* fix(module:select): fall back to window.resize in IE11.

* fix(module:domEventService): switch from IsIE11 to IsResizeObserverSupported

* fix: Console.WriteLine removed

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

* fix(module: table): check null in set sorter method (#1423)

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

* fix(module: overlay): issues in boundaryAdjustMode (#1420)

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

* fix(module: cascader): incorrect size (#1432)

* fix(module: cascader): incorrect size

* add test for cascader size

* fix(module: table): fix wrong spell for TableFilterCompareOperator.EndsWith (#1434)

* fix(module: table): remove an redundant whitespace

* fix(module: table): fix wrong spell

* fix(module: table): fix wrong spell

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

* fix(module: cascader): add SelectedNodesChanged and invoke it after clear selected (#1437)

* fix(module: table): fix spell mistake for TableFilterType.FieldType (#1442)

* style(module:table): fix spell mistake for TableFilterType.FieldType

* style(module:table): fix spell mistake for TableFilterType.FieldType

* fix(module: select): fix error for nullable TItem (#1451)

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

* fix(module: select): support IEnumerable in form (#1460)

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

* fix(module: select): fix dropdown width for IE (#1469)

* fix(module:select): fix dropdown width for IE

* fix(module:select): add a comment to explain the change

* revert 'merge local branch'

* revert 'merge local branch'

* revert 'merge local branch'

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

* fix(module: dialog): modify delay time to DOM_ MIN_ TIMEOUT_ VALUE (#1445)

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

* fix(module: datepicker): Date picker panel click closing + some issues from #1431 (#1452)

* fix(module:datetime) keep open when click on panel

fix: tab key behavior
blur/show optimization

* fix(module:rangepicker): tab key behavior improvements

blur/focus optimizations

* fix(module:overlay): overlay visible before positioning

fix: flickering

* fix(module:datepicker): handle escape key

* fix(module:datepicker): mark properly current date on panel

* fix(module:datepicker): week mode calculates weeks properly

* fix(module: table): exception is thrown when the DataIndex ends with the get_Item method. (#1485)

* fix(module: table): set DisplayName to null if MemberExpression is not found in the DataIndex expression tree (#1488)

* feat(module: cascader): support showSearch (#1484)

* feat(module: cascader): support showSearch

* add empty dropdown

* fix clear icon

* fix(module: InputNumber): input number self changing (#1490)

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

* fix(module: inputNumber): allow culture info to format input (#1480)

* fix(module:inputnumber): allow culture info to format input

* docs(module:inputnumber): demo & docs

* fix translation

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

* docs: update docs for modal dragging (#1497)

* fix(module: table): fix built-in filter select option width (#1500)

* fix(module: datepicker): fix multiple CultureInfo properties (#1492)

* fix(module:datepicker): fix multiple CultureInfo properties

* fix(module:datepicker): fix multiple CultureInfo properties

* fix(module: input): fix Input component for Guid type (#1510)

* fix(module:input): fix Input component for Guid type

* docs(module:input): add Guid generic sample code

* fix(module:input): add a comment to explain the change

* fix(module: input): guid optimization (#1515)

* fix:(module: overlay): positioning should take scroll into account (#1511)

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

* fix: js function getDom return null bug (#1417)

* fix: js function getDom return null bug (#1374)

* fix: add IF precompiled instruction for observer attribute

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

* fix: missing using is causing build failure (#1518)

* change log 0.8.1 (#1522)

* change log 0.8.1

* fix order

Co-authored-by: Andrzej Bakun <andrzej@neelyc.com.cy>
Co-authored-by: Zonciu Liang <zonciu@zonciu.com>
Co-authored-by: zxyao <zxyao145@gmail.com>
Co-authored-by: MihailsKuzmins <47413092+MihailsKuzmins@users.noreply.github.com>
Co-authored-by: mihails.kuzmins <mihails.kuzmins@daytongroup.lv>
Co-authored-by: anranruye <54608128+anranruye@users.noreply.github.com>
Co-authored-by: 笨木头 <musicvs@163.com>
Co-authored-by: Maksim <maksalmak@gmail.com>
Co-authored-by: Ivan Ocoka <ocokanet@gmail.com>
Co-authored-by: Ocoka <somewhere@network>
2021-05-16 21:33:01 +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
James Yeung
21dee3b7be change log 0.8.1 (#1522)
* change log 0.8.1

* fix orde
2021-05-13 18:53:00 +08:00
Andrzej Bakun
ae58374282 fix: missing using is causing build failure (#1518) 2021-05-12 22:34:41 +08:00
zxyao
daced4479f fix: js function getDom return null bug (#1417)
* fix: js function getDom return null bug (#1374)

* fix: add IF precompiled instruction for observer attribute

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-05-12 03:31:57 +00:00
Ivan Ocoka
201172f122 fix:(module: overlay): positioning should take scroll into account (#1511)
Co-authored-by: Ocoka <somewhere@network>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-05-12 02:48:09 +00:00
Andrzej Bakun
3ae339a749 fix(module: input): guid optimization (#1515) 2021-05-12 09:41:17 +08:00
anranruye
7967828f2e fix(module: input): fix Input component for Guid type (#1510)
* fix(module:input): fix Input component for Guid type

* docs(module:input): add Guid generic sample code

* fix(module:input): add a comment to explain the change
2021-05-12 00:17:49 +08:00
anranruye
9671b8e940 fix(module: datepicker): fix multiple CultureInfo properties (#1492)
* fix(module:datepicker): fix multiple CultureInfo properties

* fix(module:datepicker): fix multiple CultureInfo properties
2021-05-11 21:58:40 +08:00
anranruye
c92b9566f1 fix(module: table): fix built-in filter select option width (#1500) 2021-05-11 14:15:35 +08:00
zxyao
29b2c764a4 docs: update docs for modal dragging (#1497) 2021-05-11 11:18:46 +08:00