Commit Graph

22 Commits

Author SHA1 Message Date
zxyao
894e7a4f8f feat(module: modal): max content body height support (#2264)
* docs: add form in moda demo

* feat:  max content body height

* reset sln

* fix: debug code

* refactor: change MaxBodyHeight type
2022-01-25 10:28:27 +08:00
zxyao
8301230bda fix(module: modal): auto focus the ok button and remove the focus of the trigger button (#1838)
* fix: second opening of focus in modal fails if DestroyOnClose is false

* fix: confirm cannot get focus element

* fix: set ConfirmAutoFocusButton is OK

* fix: module ImagePreview cannot close on second click

* fix: blur active element when comfirm focus element is disabled
2021-08-28 15:28:50 +00:00
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
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
8a4bebc313 feat(module: modal): support define modal's style in ModalOptions (#1400) 2021-04-21 22:31:47 +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
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
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
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
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
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
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
86cd7a1184 fix(module: confirm): cannot config confirm width (#651) (#654) 2020-09-28 23:46:27 +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
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
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
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
6c5b1f8b8d fix(module: modal): close icon (#218) 2020-06-11 23:17:26 +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
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