Commit Graph

52 Commits

Author SHA1 Message Date
zxyao
5ecffb3102
fix(module: drawer): scroll not enable when page url changed (#3316)
* fix(module: drawer): scroll not enable when page url change

* remove NavigationManager dependence

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2023-07-02 16:43:23 +08:00
trafium
9080423ee4
fix(module: drawer): Add type="button" to Drawer close button. (#3233)
* Fix: Add `type="button"` to Drawer close button.

Without this close button triggers form submit if drawer is defined within form.

* Fix tests

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
Co-authored-by: Dmitri Afanasjev <dafanasjev@microsoft.com>
2023-05-06 08:57:57 +08:00
zxyao
d97ea27725
fix(module: drawer): popup cannot be clicked (#3106) 2023-02-18 12:41:24 +08:00
zxyao
2ee386b30a
fix(module: drawer): mask not disappear (#3059)
* fix(module: drawer): mask not disappear

* fix: unit test

* fix: remove lut config
2023-02-03 14:51:56 +08:00
zxyao
be02d96c28
fix(module: drawer): drawer mask close immediately (#3047) 2023-01-29 17:37:50 +08:00
James Yeung
ba60651b16
chore: sync ant-design v4.24.2 (#2877) 2022-11-24 23:11:02 +08:00
James Yeung
ff7031ffec merge master into feature 2022-11-14 17:43:54 +08:00
kooliokey
d58bcc22f7
test(module: drawer): Test, refactor and document Drawer (#2833)
* Drawer Tests

* Remove code that doesn't appear to be needed. If you set Placement to be null or empty the drawer closes with or without this code in place.

* Documentation update

* Doc update

* Docs update...including chinese
2022-10-24 07:47:40 +08:00
Daniel Freyr Sigurdsson
99ff161de7
feat(module: drawer): add property HeaderStyle to Drawer component (#2809)
* feat(module:drawer): add property HeaderStyle to Drawer component

a property for modifying the style of the header in the drawer component

* feat(docs): add property HeaderStyle to Drawer api

Add HeaderStyle to DrawerOptions and update docs

* fix missing HeaderStyle for drawer servcie

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2022-10-20 13:55:35 +08:00
James Yeung
3ac7701da4 merge master to feature 2022-08-21 22:53:33 +08:00
zxyao
bf62fac006
feat(module: drawer): add OnOpen Event (#2533) (#2553)
* feat(module: drawer): add OnOpen Event (#2533)

* chore: add comment

* chore: docs update

* change drawer onopen event
2022-07-12 10:24:00 +08:00
James Yeung
1659aef02d
chore: sync ant-design v4.20.7 (#2497)
* chore: sync ant-design v4.20.7

* fix style build

* clean the style

* fix dropdown overlay

* remove cdk styles

* fix dropdown overwrite styles

* fix doc styles
2022-06-04 00:44:34 +08:00
Andrzej Bakun
3d4f7adaaf perf(module: overlay): positioning moved to js (#1848)
* fix(module:overlay): move postion calculation to js

fixes #1836

* docs: TriggerBoundaryAdjustMode explanation

* docs: select & datepicker got BoundaryAdjustmetMode

cleanup

* test: fixes

optimization & cleanup

* fix(module:overlay): recalculate overlay position when trigger resizes

* Minor clean-up

* fix(module:overlay): wait for Show to finish in Hide

* fix: prevent vertical scrollbar on overlay adding

* fix: extract waiting function

* fix: overlay not to repostion when trigger vanishes (menu issue)

* fix: scroll adjustment for position: fixed

* fix: on menu mode change, keep

* merge conflict fix

* fix: nominal calculation reset on failed adjustment

* fix: bugs

* test: exclude log method from test coverage in overlay.ts
2021-09-10 19:06:50 +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
Simon Cropp
b067385d79 chore: remove redundant semi-colons (#1812)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-08-13 23:26:58 +08:00
zxyao
9739cd4161 fix(drawer): unexpected behavior of Drawer(#1749) (#1771)
* fix: unexpected behavior of Drawer(#1749)

1. The scroll bar of the body is enabled after closing one of the
   multiple drawers
2. Bad parameter NoAnimation.

* chore: remove debug output

* chore: add comments for ComponentStatus

* fix:  different behaviors in WASM and Server modes

* chore: remove debug output
2021-07-25 22:41:06 +08:00
zxyao
6aff9d370c fix(module: dialog): Modal and Drawer render reducing and update document and demo (#1701)
* fix(module: Modal&Drawer): render reducing and demo update

* docs(module: modal): add FAQ section

* docs: add English comments

* fix: wrong format in Modal_service_for_confirm.razor

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-07-11 20:48:16 +08: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
ae74972643 fix(module: drawer): z-index has no effect (#1362)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-16 03:16:16 +00:00
zxyao
31aac9f914 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>
2021-04-04 15:40:54 +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
d65ffabdc7 chore: sync ant-design v4.11.1 (#1039) 2021-01-25 08:31:53 +08:00
James Yeung
56dfae7f62 chore: sync ant-design v4.10.0 (#943) 2021-01-09 09:07:02 +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
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
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
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
zxyao
88a26ac583 fix(module: modal&drawer): body scroll bar does not respond correctly (#573) 2020-09-05 16:09:58 +08:00
chaldea
e6edefebc0 feat(module: drawer): add parameter handler (#455) 2020-08-04 18:49:04 +08:00
TimChen
1877592211 feat(module: modal): support template component (#345)
* feat: modal support template

* feat: modal update

* feat: modal update

* feat: modal update

* feat: modal update

* docs: fix ci

* fix: demo title

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-07-12 23:19:55 +08:00
James Yeung
60ac146ba8 chore: sync ant-design v4.4.1 (#314) 2020-07-06 14:12:11 +08:00
TimChen
7cc424c0f0 fix(module: drawer): OnOpen null check (#295)
* fix: drawer OnOpen bull

* Update DrawerTemplate.razor.cs
2020-07-02 17:36:54 +08:00
TimChen
8f00e1d393 feat: drawer support return value (#279)
* feat: drawer support return value

* feat: drawer supports return value

* feat: drawer support return value

* feat: drawer support return value

* docs: avoid duplicate names

* fix: demo

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-06-30 13:40:51 +08:00
James Yeung
7b021638d9 fix: icon issues (#260)
* fix: icon issues

* fix: search suffix icon
2020-06-28 10:54:27 +08:00
zxyao
db64810a20 feat: add DrawerService (#241)
* refactor: change confirm return

* feat(module: drawer): add DrawerService

* fix: change type EventCallback in configs to Func

* fix: typo

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-06-23 15:19:44 +08:00
zxyao
b4789caa26 fix: drawer unresponsive In the WASM (#201) 2020-06-08 09:54:39 +08:00
Henry.zhang
f9b615c2ca feat: add more demos (#197)
...for affix,back-top,breadcrumb,card,divider,typogragpy and timeline

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-06-07 19:41:00 +08:00
zxyao
bda4388b96 fix: drawer and modal bug (#177)
* fix: drawer animation transition

* fix: when modal is opening, body scroll bar dispaly

* fix: scroll bar is not hidden when drawer is displayed

* fix: rebase conflict

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-06-04 17:03:13 +08:00
ElderJames
97f920ab9a refactor: change namespcae to AntDesign 2020-05-29 00:33:49 +08:00
Henry.zhang
42cd8da17d feat: add drawer demo (#123)
* fix:  AntDrawer title 无法显示问题。
fix:  AntDrawer closeable 无法关闭的问题

* docs: more Drawer demos

* fix: a wrong filename in drawer demo

* docs: drawer demo finish

* docs: drawer demos, basic,placement , form , profile,multiple-level

* fix: render a drawer in a container

* fix: onclick event name

* fix: demo directory name

* refactor: rename drawer

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-05-18 18:42:22 +08:00
James Yeung
063f2759bd chore: sync ant-design v4.2.3 (#120) 2020-05-16 23:21:59 +08:00
James Yeung
a4fe7f8ea7 chore: sync ant-design v4.2.2 (#109) 2020-05-12 10:03:34 +08:00
James Yeung
6789f28400 chore: sync ant-design v4.2.1 (#104) 2020-05-11 21:47:35 +08:00
ElderJames
8257c759bb fix: clean many warnings 2020-04-24 18:32:50 +08:00
James Yeung
cc9e2df41c refactor: standardized code specification (#82)
* refactor: standardized code specification

* fix: rebase conflict
2020-04-23 17:13:56 +08:00
James Yeung
e4253622bd chore: sync ant-design v4.1.0 (#58) 2020-03-30 09:53:10 +08:00
James Yeung
d347e2028e chore: sync ant-design v4.0.4 (#35) 2020-03-23 13:51:37 +08:00
James Yeung
7ab67d1bea feat: add drawer (#28)
* feat: add drawer

* feat(module:drawer): add setup for placementchange
2020-03-22 21:24:41 +08:00
James Yeung
84ca70e8b7 chore: sync ant-design v4.0.1 (#2)
fixed #1
2020-03-08 15:12:21 +08:00