Commit Graph

57 Commits

Author SHA1 Message Date
zxyao
977633ae93 fix(module: modal): wrong setter in ModalOptions.ConfirmLoading (#1742) 2021-07-16 23:45:15 +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
anranruye
e4e1289529 fix(module: locale-provider): add missing nodes default values (#1710) 2021-07-06 01:10:16 +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
5b6d72d741 fix(module: dialog): modify delay time to DOM_ MIN_ TIMEOUT_ VALUE (#1445)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-05-06 16:56:26 +08:00
zxyao
8a4bebc313 feat(module: modal): support define modal's style in ModalOptions (#1400) 2021-04-21 22:31:47 +08:00
zxyao
1a10f34029 fix(dialog): add Dispose lifecycle function to Dialog (#1379)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2021-04-18 15:14:54 +08: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
469bbc511b chore: sync ant-design v4.14.0 (#1249) 2021-03-31 19:23:29 +08:00
zxyao
5fe1e94f4d fix: animation classs name change of Modal, Message and Notification componments (#1186)
* fix(module: modal): sync animation class name with official

* fix(module: message): sync animation class name with official

* fix(module: notification): sync animation class name with official
2021-03-01 23:45:30 +08:00
Andrzej Bakun
b0c9509264 fix(module: select): property rename to follow docs (#1115)
* fix(module:select): property rename to follow docs

comma in decimal causing wrong css value for select box width

comment translation

* fix(module:select): delayed DefaultActiveFirstOption fix

change of values fix
2021-02-09 00:31:44 +08:00
zxyao
234dcc93e7 feat(module: image): add animation for image preview (#1042)
* feat(module image): add animation for image preview

* feat(module image): add mask closeable

* fix(module dialog): cannot close dialog by clicking mask

if content is clicked, mask click cannot close dialog
2021-01-27 13:23:15 +08:00
笨木头
e59a2b2540 fix(module: overlay): select issue with multiple modals (#1012) 2021-01-21 19:07:21 +08:00
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