Commit Graph

15 Commits

Author SHA1 Message Date
zxyao
3b5070a053
feat(module: modal): add only OK footer and only Cancel footer template (#2812)
* feat(modal): add only one OK footer and onlt one Cancel footer

* docs: update demo
2022-11-14 16:38:45 +08:00
zxyao
0ed2da0f29
feat(module: modal): support the maximization of Modal initialization (#2834)
* feat: support the maximization of Modal initialization (#2823)

* fix: the lifecycle of MaximizationOnInit

* rename to DefaultMaximized

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2022-11-14 15:28:20 +08:00
James Yeung
3ac7701da4 merge master to feature 2022-08-21 22:53:33 +08:00
zxyao
4818d8b27b
feat(module: modal): support Maximizable (#2573)
* add maximizable button for Modal

* fix: patch.less

* export MaximizeBtnIcon and RestoreBtnIcon paramter

* refactor: fixed footer
2022-07-23 14:58:04 +08:00
zxyao
a93586367d
fix(module: modal): unreset enter animation className (#2561) 2022-07-10 01:50:11 +08:00
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
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
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
d07e3cb8fc fix(module: dialog): click dialog cause the mask click event triggered (#1727) 2021-07-12 23:27:09 +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
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
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
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