Commit Graph

48 Commits

Author SHA1 Message Date
pankey888
b977e4e3ca
refactor(module: tree): Refactor tree's Selected/Checked/Expanded parameters (#3896)
* refactor(module: tree): Refactor tree's Selected/Checked/Expanded parameters.(#2112,#2577,#2754,#2848,#3238,#3641,#3730,#3845,#3881,#3890,#3891,#3892)

* Update the demo & document of tree & tree-select.

* refactor(module: tree): Remove IsSelected/IsChecked/IsExpanded.
2024-06-05 00:26:31 +08:00
James Yeung
77cec3e2b6
feat(module: TreeSelect): supports generic value (#3831)
* feat(module: TreeSelect): supports generic value

* use keyexpression to conver get the key

* fix get tree key
2024-04-29 08:12:53 +08:00
thirking
28e2da5b47
fix(module: table): default scrollbar style (#3668)
* fix default scroll style

* add client dimension service

* update demo

---------

Co-authored-by: thirking <king2381955@sina.com>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2024-02-20 23:50:25 +08:00
zxyao
58d5c7956c
fix(module: modal): js exceptions (#3634) 2024-01-17 22:55:11 +08:00
zxyao
4284527638
fix(module: modal): dom instance clear when url changed (#3613) (#3630)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2024-01-14 23:59:04 +08:00
James Yeung
42c8304222
Merge pull request #3590 from ant-design-blazor/feature
Merge feature to master
2023-12-26 00:02:52 +08:00
James Yeung
8200bc9f18
fix(module: tree): two-way binding for check/select/expand (#3520)
* fix(module: tree): two-way binding

* fix expand

* fix two way binding check/expand/select
2023-11-19 18:24:10 +08:00
James Yeung
6a0bb0b26b merge master to feature 2023-11-19 17:48:04 +08:00
James Yeung
6f6b75835a
fix(module: TreeSelect): value binding on datasource was changed (#3492)
* fix(module: TreeSelect): value binding on datasource was changed

* update selection after value changed

* tree datasource change

* invoke state changed

* clean up

* clean up
2023-11-08 00:24:48 +08:00
James Yeung
c9d95e31a8
feat(module: ReuseTabs): support separate the tab from the page (#3467)
* feat(module: ReuseTabs): support separate the tab from the page

* fix event invoke

* disable reuse for pages

* missing ScanReuseTabsPageAttribute

* fix ReusePages in ReuseTabs

* avoid loop ref
2023-10-29 16:52:01 +08:00
Alex Kryvdyk
6b0a8f45de
feat(module: datepicker): Add DateTimeOffset, DateOnly, TimeOnly support (#3443)
* fix:(module:datepicker): OnChange event in Docs project

add(module:datepicker): generic OnPanelChange event

add(module:datepicker): generic OnChange event

fix(module:datepicker): DateTimeKind is not preserved

add(module:datepicker): DateTimeOffset unit tests

add(module:datepicker): add DateTimeOffset to range picker unit tests

add(module:datepicker): refactor unit tests

fix(module:datepicker): DateTime.Kind is not preserved

feat(module: datepicker). Add DateTimeOffset, DateOnly, TimeOnly support

* fix(module:datepicker): unit test fails

* fix: moment helper test fails in VS Test Explorer in some cases

See https://xunit.net/faq/theory-data-stability-in-vs

* update the docs and demo

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2023-10-19 00:44:03 +08:00
rhodon-jargon
6eb2f2e558
feat(module: table): Allow custom Field filters (#3279)
* feat(module: table): Refactor FilterExpression to FieldFilterType, allow custom Field filters

* feat(module: table): Add DefaultFilters property

* fix(module: table): Calculate _hasFilterSelected when DefaultFilters is set

* Remove Resharper settings file

* Fix generate columns example

* Add CustomFieldFilter demo, filtering by a color's brightness

* add Chinese description

* fix docs

* Change IFieldFilterType.SupportsCompareOperator to SupportedCompareOperators, returning an IEnumerable
Small fixes

* fix locale

* fix the docs

* refactor SupportedCompareOperators

* fix build error

---------

Co-authored-by: Rhodon <rhodonvantilburg@gmail.com>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
Co-authored-by: James Yeung <shunjiev5@hotmail.com>
2023-10-14 20:38:10 +08:00
wss-awachowicz
1b48d862e2
refactor(module: modal): update ConfirmService to use interface (#3083)
* ConfirmService To Interface

* backwards compatibility
2023-02-10 13:30:41 +08:00
James Yeung
c56873aac2 merge feature to master 2023-01-20 15:57:43 +08:00
James Yeung
27e61057d3
feat(module: table): supports automatic column generation based on the TItem type. (#2978) 2023-01-05 15:47:52 +08:00
wss-javeney
9067a68161
refactor(module: notification): update NotificationService to use interface (#2948)
* refactor(notification): update NotificationService to use interface

* Add example unit test
2022-12-29 17:29:00 +08:00
James Yeung
609f14b2dc
fix(module: datepicker): wrong day order and fallback to use globalization libaray when there is no day locale (#2855)
* fix(module: datepicker): wrong day order and fallback to use globalization libaray when there is no day locale

* fix date locale

* refactor the scroll method

* fix ShortestDayNames

* update the doc
2022-11-04 13:46:24 +08:00
James Yeung
d2f95b2a07
fix(module: Core): Remove the event listener when the event listener service is disposed (#2738)
* fix(module: Core): Remove the event listener when the component is disaposed

* fix DomEventKey
2022-09-26 10:11:04 +08:00
kooliokey
eba3f19cc2
refactor(module: message): add IMessageService interface (#2633) 2022-08-26 17:55:52 +08:00
HZY
5d127bf763
feat(module: tabs): ReuseTabs support pinning tabs (#2545)
* 选项卡添加永久显示选项功能

* 解决选项卡长久停留选项,目前还存在排序问题

* 完善永久停留标签,添加 ReuseTabsService 服务

* refactor

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2022-08-06 22:45:15 +08:00
Baltermia
efc0093dfd refactor: Remove 'Console.WriteLine' calls in code (#2268)
* Remove 'Console.WriteLine' calls

* Remove if block
2022-02-08 12:52:51 +08:00
James Yeung
c9448e635a fix(module: grid): issue with gutter match due to breakpoint enum name case (#1963)
* fix(module: grid):  issue with gutter match due to breakpoint enum name case

* add playground de
2021-09-22 22:08:32 +08:00
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
29e3ce3583 refactor(interop): reorganization into classes and typescript tests (#1791)
* fix(module:interop): reorganization into classes

* comments clean-up

* Add typescript test project

* fix: sync with pull request #1765: support drag

* github test action fix attempt

* tests: jsinterop test mock fix

* codecov added to ts tests

* add generated split js to gitignore

* fix: coverage github action

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-07-29 22:45:47 +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
Andrzej Bakun
b22f9495f4 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>
2021-04-27 06:03:39 +00:00
MihailsKuzmins
c0f8859914 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>
2021-04-18 08:06:06 +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
James Yeung
c9656ca227 feat(module: image): add image component (#1038)
* feat(module: image): add image

* add image preview

* add locale
2021-01-25 02:05:18 +08:00
James Yeung
187dd045ac docs: scroll to hash anchor after pages are rendered (#1006) 2021-01-20 15:53:32 +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
老九
651d0d0e14 fix: array remove issue (#723)
* 当array==null时,改为返回Array.Empty<T>()
* 考虑T类型为引用类型时,集合元素可能为null,原有逻辑会触发null.Equals()的问题
2020-10-25 19:11:45 +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
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
James Yeung
5d57bab600 docs: add i18n docs (#581) 2020-09-08 16:43:44 +08:00
Diego Frata
7119351b9f fix(module: table): fix collection modified exception (#570) 2020-09-05 20:27:52 +08:00
James Yeung
a4e4d6f556 refactor: get PropertyInfo from expression (#559) 2020-09-01 17:23:31 +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
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
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
1f76b2afc5 fix(module: checkbox): default value binding (#437)
* fix(module: checkbox): default value binding

* fix: default value for select-group
2020-07-30 23:54:31 +08:00
Brian Ding
1fa3652d26 feat(module: slider): implement two-way binding (#329)
* feat(module: slider): implement two-way binding

* feat(module: slider): remove mouseup handler

* feat(module: slider): inherits from AntInputComponentBase

* fix(module: slider): onclick will be fired with onmouseup

* feat(module: slider): move convert method to public extensions

* feat(module: slider): update to fit form component

* fix(module: slider): two-way binding does not notify value change

* feat(module: slider): update input demo with two-way binding

* feat(module: slider): remove OnProertyChanged
2020-07-15 20:02:39 +08:00
James Yeung
726cff7a72 feat(module: table): support paging selection (#341)
* refactor: selection

* feat: add table datasource cache

* feat: support paging selection

* refactor: clean code

* fix: two-way binding for selecteditems
2020-07-10 17:57:20 +08:00
James Yeung
e19d09fd96 feat(module: table): support string formatting for field columns (#311) 2020-07-05 00:09:53 +08:00