Commit Graph

44 Commits

Author SHA1 Message Date
James Yeung
56dfae7f62 chore: sync ant-design v4.10.0 (#943) 2021-01-09 09:07:02 +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
zxyao
bdcc394958 fix(module: modal): remove non auto destroyed Modal DOM created by ModalService (#926) (#930) 2020-12-26 23:41:02 +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
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
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
James Yeung
df99bad7e5 chore: sync ant-design v4.9.0 (#842) 2020-12-01 11:02:28 +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
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
zxyao
228d979e8f fix(module: confirm): cannot remove from dom when confirm is hidden (#750) 2020-11-01 16:00:23 +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
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
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
zxyao
86cd7a1184 fix(module: confirm): cannot config confirm width (#651) (#654) 2020-09-28 23:46:27 +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
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
19bfe1bfff chore: sync ant-design v4.6.3 (#577) 2020-09-11 15:44:34 +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
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
zxyao
88a26ac583 fix(module: modal&drawer): body scroll bar does not respond correctly (#573) 2020-09-05 16:09:58 +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
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
91b6e0efcc chore: sync ant-design v4.6.0 (#524) 2020-08-23 16:06:08 +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
Mei
f9051fcf09 fix(module: modal): button text for confirm dialog (#389)
Co-authored-by: meijinyi <meijinyi@gloudtek.com>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2020-07-20 22:49:53 +08:00
zxyao
a30dc39314 fix(module: modal): crashes when DestroyOnClose is set to true (#373)
fixed #373
2020-07-16 16:57:13 +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
30dc4db99b chore: sync ant-design v4.4.0 (#277) 2020-07-01 21:38:23 +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
James Yeung
f73fcaf1b7 refactor: improve document performance (#220) 2020-06-13 00:23:03 +08:00
James Yeung
6c5b1f8b8d fix(module: modal): close icon (#218) 2020-06-11 23:17:26 +08:00
zxyao
015ee9f928 fix(module: modal): fix event not responding #203 (#204) 2020-06-08 22:37:54 +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
James Yeung
45ad7ef7ea chore: sync ant-design v4.3.2 (#194) 2020-06-07 01:10:11 +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
zxyao
6db07ad916 feat: add component modal (#167)
* feat: add component modal

* fix: adjust namespace and fix TAB keyboard bug

* fix: reset package.json to cuueernt head

* fix: remove antblazor.sln

* refactor: using c# to control the display and hiding of modal
2020-06-02 14:25:44 +08:00
James Yeung
a4fe7f8ea7 chore: sync ant-design v4.2.2 (#109) 2020-05-12 10:03:34 +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
84ca70e8b7 chore: sync ant-design v4.0.1 (#2)
fixed #1
2020-03-08 15:12:21 +08:00
ElderJames
47b2b86265 add gulp to complie less 2020-03-07 16:40:38 +08:00
ElderJames
7d15f20674 refactor: refactor the directory structure to match ant-design 2020-03-05 12:17:50 +08:00