Commit Graph

67 Commits

Author SHA1 Message Date
ralf
92041df5bd fix TypeError in _instanceof Et2Widget: _senders?.egw() returns also undefined, if _senders has no egw property 2024-04-17 11:41:47 +02:00
nathan
4d31227b43 Et2Dialog: Fix "Uncaught DOMException: Failed to set the 'adoptedStyleSheets' property on 'ShadowRoot': Sharing constructed stylesheets in multiple documents is not allowed" in long_task
No idea what was happening there or why
2024-04-16 08:49:49 -06:00
nathan
3d27a7abb4 Remove references to deprecated widgets et2_widget & et2_button 2024-04-16 08:18:36 -06:00
nathan
94b1e3f80d Fix Et2Dialog getComplete() promise did not work more than once when destroyOnClose = false 2024-01-24 16:42:22 -07:00
nathan
ba04abd1b4 Et2Dialog: Fix height attribute was not setting dialog height 2023-11-02 13:04:32 -06:00
nathan
a6d3a87c75 Doc: Get class doc into docs 2023-10-16 13:34:29 -06:00
Nathan Gray
e323cd1d79
Feature/shoelace 2.4 upgrade (#135)
Update shoelace to 2.9.0
2023-09-13 11:55:33 -06:00
nathan
1393fb6921 Et2Dialog: Fix dialog open event was fired if a selectbox opened
Fixes flickering field in Collabora insert address dialog
2023-08-03 14:39:47 -06:00
nathan
b92d45c44a Api: make longTask (merge to email) more robust
Should continue in the face of network error
2023-08-02 14:08:59 -06:00
nathan
583072ce9d Fix insert multiple entries into email document failed at "Please wait ... loading" 2023-08-01 09:11:09 -06:00
nathan
9d61a2ef17 Changes for opening etemplate in a dialog
- openDialog() now returns Promise<Et2Dialog>
- fixed etemplate reload
2023-07-13 16:18:11 -06:00
ralf
efaa3ae386 WIP Mail REST API: fix reported problems with calendar quick add 2023-07-13 18:44:00 +02:00
nathan
8dee34407e Et2Dialog: Fix buttons could not be adopted if dialog contains only arbitrary slotted content 2023-07-13 08:27:56 -06:00
ralf
865d2b3d8d WIP Mail REST API: fix closing dialog closes popup to because dialog was already removed when response was received 2023-07-13 15:36:55 +02:00
nathan
50e3a1b204 Get calendar quick-add working with Ralf's changes to open an etemplate in a dialog (c63784d7e8), fix buttons from those etemplates weren't adopted 2023-07-11 17:07:51 -06:00
ralf
96bb3a6884 WIP new app.ts method dialogExec(_menuaction) opening a popup into a dialog
ToDo: overwrite Framework actions in etemplate2.handle_load() to eg. close dialog, but not window, or refresh window instead of opener
2023-07-11 13:38:09 +02:00
nathan
f4699543c3 Et2Dialog fixes
- Fix noCloseButton attribute was not implemented
- Fix hideOnExcape=false still allowed closing on escape
- Fix using Et2Dialog.BUTTONS_OK showed no buttons
2023-06-30 11:02:04 -06:00
nathan
3bd2ee5aad Fix confirm dialog sometimes mis-placed initiating button in value 2023-05-12 10:06:55 -06:00
nathan
713c0ce21b Et2Dialog: Move enter handler to keyUp so input event handlers can fire first 2023-04-06 16:13:42 -06:00
hadi
09560a325a Fix some dialog's buttons are not getting fit into the dialog initiated size 2023-03-29 17:21:41 +02:00
nathan
4311eebdc9 Et2Dialog: Fix missing button alignment 2023-02-22 14:51:21 -07:00
ralf
5fe8f2642a fix problem with Safari 16.2 of NOT displaying dialog contents eg. of timer dialog 2023-01-19 15:23:16 -06:00
nathan
54498a005c Et2Dialog: Second try waiting on template load
Now creating the template promise immediately on setting template name and using a resolver function to resolve after template is loaded
2022-12-14 10:39:15 -07:00
nathan
27573f6d83 Et2Dialog: Try waiting until after update is complete to avoid an error loading the template in Safari 2022-12-12 14:43:47 -07:00
nathan
12151139ff Et2Dialog: Better non-modal handling, now with less internal conflicts with SlDialog 2022-12-07 13:45:38 -07:00
nathan
32248e67ee Et2Dialog: Better non-modal styling 2022-12-07 11:30:14 -07:00
nathan
4b6357dd90 Et2Dialog nonmodal WIP
Non-modal dialogs don't cover header with app tabs.
TODO: The dialog needs to be added to the app content div instead of the body
2022-12-07 09:13:46 -07:00
nathan
57993741cb Et2Dialog: Don't close dialog for buttons that are not in the footer 2022-12-06 09:44:56 -07:00
nathan
3a1c415ce4 Styling for buttons on dialog 2022-12-02 11:23:09 -07:00
nathan
72626b0dc2 Et2Dialog: Fix width property 2022-12-02 09:37:22 -07:00
nathan
dc5e0b528e Dialog work
Style changes
2022-12-01 13:02:40 -07:00
nathan
e2fc779207 Dialog work
Get tracker "Multiple changes" working
2022-12-01 11:38:02 -07:00
nathan
634e00f948 Dialog work
Get calendar quick add working again
2022-12-01 11:20:58 -07:00
nathan
83ab58329e Dialog work
- Add destroy() to remove dialog

Fixes admin ACL dialog
2022-12-01 10:24:17 -07:00
nathan
390fbf3608 Dialog work
- Switch from LionDialog to SlDialog as base
- First input should get focus
- First button gets set as primary (if no default set), Enter key will act as a click on it
- Escape key closes dialog
2022-11-30 15:59:25 -07:00
nathan
127ccdedbb Et2Dialog: Fix incorrect button adoption search 2022-11-02 08:36:44 -06:00
ralf
0ec8636a7b do NOT submit dialog, if it has no etemplate_exec_id, it only gives and error on server-side 2022-11-02 13:51:17 +01:00
nathan
2659a8ab63 Filemanager: Add copy to clipboard button to share link dialog 2022-10-28 10:05:03 -06:00
Hadi Nategh
cedaf4027c Fix navigational buttons no longer work in VfsSelect dialog 2022-10-07 14:48:20 +02:00
ralf
196024a454 stopping buttons in dialog from submitting it to server-side 2022-10-06 13:55:24 +02:00
ralf
ed05a8b6ee always need to stop button click events as otherwise the result would be submitted to server-side eT2 handler 2022-10-05 09:53:45 +02:00
nathan
b88ce18639 Fix invalid template names caused by appending cache_buster incorrectly
38721229b0
2022-08-04 16:15:04 -06:00
ralf
38721229b0 inject preprocessor and (daily) cache-buster for templates in dialog widget
also allow for a xml comment inside the deprecated menulist tag
fixes Admin ACL popup
2022-07-27 17:54:09 +02:00
nathan
aace76b97a Fix camelCased attributes didn't work for more than 1 underscore
Also fixes vfsSelect destroyed session
2022-07-25 16:12:09 -06:00
Hadi Nategh
9f363ad51c Fix importing interactjs library 2022-05-23 11:35:14 +02:00
nathan
5ed00cc435 Make dialogs resizable again 2022-05-20 11:41:09 -06:00
Hadi Nategh
c707af32b6 Add hideOnEscape and noCloseButton options into ET2Dialog 2022-04-29 14:28:43 +02:00
Hadi Nategh
36f41a9470 Handle appendTo attribute used in legacy dialog properly 2022-04-28 18:00:37 +02:00
nathan
911a2970b0 Et2Dialog: Turn on modal now that style issue is fixed 2022-04-06 15:13:51 -06:00
nathan
6120d820aa Change to Et2Dialog
- History diff
- Fix some bugs in placeholder widget
- Change load listener target, the dialog content node might have been moved out before the event gets triggered
2022-03-30 15:11:15 -06:00