Commit Graph

3303 Commits

Author SHA1 Message Date
nathan
76533722d1 SearchMixin: Change how loading spinner is done, "No results" now only shows after all searches are done. 2024-01-08 11:33:53 -07:00
nathan
518c8218d7 * Mail: Additional "Information to show on email tag" preference, "Name and domain" 2024-01-08 10:01:59 -07:00
nathan
f8f4a39648 Change email tag display from multiple boolean to a single option
onlyEmail and fullEmail properties changed to just emailDisplay with options of "full" | "email" | "name" | "domain"
2024-01-05 15:35:59 -07:00
nathan
52b48140fe Get widget extra documentation working
This allows <Class>.md beside <Class>.ts where we can add additional documentation such as examples
2024-01-05 09:52:09 -07:00
nathan
3b48d81651 Et2Email: Add max height + scrollbar to tag list
use --height CSS var to override
2024-01-03 09:06:17 -07:00
nathan
f68faa7941 Et2Email: Some automatic tests 2023-12-20 15:22:14 -07:00
nathan
a62ff90018 Et2Select: Add disabled & readonly styling, add paste handling 2023-12-20 11:57:01 -07:00
nathan
d73aa3d998 Et2Email: Better handling of blur & showing validation error 2023-12-20 10:33:09 -07:00
nathan
838bf30c1f Et2Email: Reduce minimum search input size 2023-12-20 08:23:01 -07:00
nathan
cc164807e7 Et2Email: If searchUrl is set to "", skip server search / suggestions 2023-12-19 13:55:02 -07:00
nathan
c99404e993 Fix drag & drop interfered with mouse selection when editing tag 2023-12-19 13:44:29 -07:00
nathan
cdaa16bae2 Fix email tags could not be edited inside Et2Email
They could, but the change was ignored for the first tag
2023-12-19 11:38:54 -07:00
nathan
1bd7c18403 Revert "Et2Email: Fix validation message for invalid search text did not always show on field blur"
This reverts commit 44f1317873.
2023-12-19 11:10:03 -07:00
hadi
37667df880 Fix wrongly filtered avatars in darkmode, happens for calOwner and regular account-selector widgets 2023-12-19 13:22:06 +01:00
nathan
44f1317873 Et2Email: Fix validation message for invalid search text did not always show on field blur 2023-12-18 11:50:34 -07:00
nathan
a348039716 Et2Email: When tabbing away with partial email typed, only accept current suggestion if it still matches
Previously current option was not updated fast enough, and was blindly accepted.
2023-12-18 11:11:53 -07:00
nathan
c26b13986c Et2Email: Show validation error for partially typed (not yet accepted) email addresses 2023-12-18 09:24:21 -07:00
nathan
f215a99918 Et2Email: If user had a valid email typed before blurring the widget, accept it 2023-12-15 16:31:00 -07:00
nathan
fb55cd64ca Et2Email: Fix missing distribution lists 2023-12-15 16:15:32 -07:00
nathan
73061b2931 Et2Email: More work on actions
- Add Escape closes suggestions
- Better respect preference to close suggestions after selecting
- Fix another lost focus
2023-12-14 11:16:01 -07:00
nathan
da93788c1d Et2Select: Fix additional entry selected after closing option list
Sometimes after searching and selecting an entry from the results, when the list was closed an additional option was added
2023-12-14 10:00:36 -07:00
nathan
885c3fed0a Get dark mode fix working for avatars in Et2Email & Et2SelectEmail 2023-12-13 14:23:07 -07:00
nathan
fb89581bb5 Et2Email changes & bugfixes
- Keep focus in search when suggestions arrive
- Fix focus went to body when tabbing from search with typed address
- Don't wrap at top / bottom of suggestion list
- Spacing / padding fixes
2023-12-13 13:56:23 -07:00
nathan
4856e97010 Fix vfsWidget sometimes gives "TypeError: Cannot read properties of null (reading 'get_value')"
It was trying to access template widgets before they had loaded.  Fixed to wait until load is done.
2023-12-13 11:09:22 -07:00
nathan
437ad34300 Finish Et2Email widget 2023-12-13 10:34:17 -07:00
nathan
35a9a9bda5 Et2Email WIP - Drag & Drop & sort 2023-12-12 16:37:39 -07:00
nathan
e99b398d5d Et2Email: WIP - Most interactions done 2023-12-11 15:12:59 -07:00
nathan
710287e34f Et2Email WIP 2023-12-11 08:18:38 -07:00
nathan
7052803700 Et2ButtonTimestamper: Fix error where some users could not be found
In instances with > 100 users, it's possible the current user was not on the client side.  Now checking user() first, it should always be there.
2023-12-07 10:31:59 -07:00
nathan
c5e7f7d7e7 Fix nextmatch entry filter header could not be cleared 2023-12-06 14:46:07 -07:00
nathan
62f338dbdf ImportExport: Fix export date filters lost their "All" option 2023-12-06 13:54:13 -07:00
nathan
b03dac3032 Fix drag of non-sequential rows in Firefox
When selecting multiple rows with Ctrl, drag would not work
2023-12-06 11:32:09 -07:00
nathan
a5b3c83a54 Et2SelectThumbnail: Get working with new Et2Select tagTemplate 2023-12-06 10:33:14 -07:00
nathan
5ef349f057 Fix infinite loop in missingOption in country/state due to not waiting for results
Add class method to search through select options
2023-12-05 11:51:24 -07:00
nathan
1e4435fb3a Fix unable to save cleared link value 2023-12-05 08:59:18 -07:00
nathan
4343fbca32 Fix unable to clear link value 2023-12-04 17:06:26 -07:00
hadi
fd5160e9fe Do not proceed sizing for avatar widget if it's not in an accepted format 2023-12-04 11:38:23 +01:00
hadi
9fc4c64a90 Fix favorite button icon size for both in regular and mobile view 2023-12-04 10:31:05 +01:00
nathan
a2c0234401 Et2Select: Fix missing option detection when options have optgroups
Was unable to find option in Timezones, resulting in an infinite loop
2023-12-01 09:33:25 -07:00
nathan
4dfbbc99da Select account: sort options 2023-11-30 14:57:31 -07:00
nathan
efe5b51d26 SearchMixin: Fix initial values not always displayed when options are from server or file
Fix for when remote result doesn't get there before SlSelect renders, and the SlSelect removed the value because the option wasn't there
2023-11-30 14:00:16 -07:00
nathan
4367afaf27 Fix link search did not always show label for initial value 2023-11-30 11:56:14 -07:00
nathan
021fc9f136 Fix calendar participant select did not show selected tags while the dropdown was open
Tags were only shown once dropdown was closed
2023-11-30 10:49:49 -07:00
nathan
85593dbcdb Et2Select: Fix weird UI issue after clearing single value
Search was shown as well as empty label
2023-11-29 11:00:51 -07:00
nathan
6e1c968703 Et2SelectAccount: Fix initial values not always displayed when options are from server or file 2023-11-29 10:43:33 -07:00
nathan
a6104f6727 Et2Select: Fix initial values not always displayed when options are from server or file 2023-11-29 09:30:30 -07:00
ralf
9d5af96dad fix not hidden expand-icon for readonly multiple 2023-11-28 20:30:39 +02:00
nathan
0788718d7c Cleanup unused code 2023-11-28 10:32:15 -07:00
nathan
68216c89ca Try waiting for timeout before sending focus to search input
Maybe fixes search field doesn't get focus when clicking on select
2023-11-28 10:16:43 -07:00
nathan
a73cdef27b Et2SelectEmail: Fix drag&drop used wrong size for drop targets, now with the ability to open the dropdown too
see c4d85dd319
2023-11-27 15:09:37 -07:00
nathan
973ce140d4 Try waiting for updateComplete before sending focus to search input
Maybe fixes search field doesn't get focus when clicking on select
2023-11-27 14:54:55 -07:00
nathan
c4d85dd319 Et2SelectEmail: Fix drag&drop used wrong size for drop targetrs 2023-11-27 13:32:23 -07:00
nathan
aba882b72a Fix sidemenu calendar owner cannot select a search result
broken by  7642894
2023-11-27 10:08:37 -07:00
nathan
1962cbd770 Et2Tag: Fix edit button was missing 2023-11-24 15:01:16 -07:00
nathan
cef7c12469 Fix drag & drop between email selects 2023-11-24 14:40:59 -07:00
nathan
dbb7bdfa87 Et2EmailTag: Fix plus button still triggered Et2SelectEmail's onclick 2023-11-24 10:04:04 -07:00
nathan
1a8632049d Et2Select: Fix single line overflow to count correctly for any egw content size preference 2023-11-24 09:42:21 -07:00
nathan
955941d100 Fix typo 2023-11-24 09:37:11 -07:00
nathan
41c6ec6100 Et2Select: Fix all tags popup causes siblings to move / resize 2023-11-24 08:34:28 -07:00
ralf
8236b03d45 using single link.svg from api and use it by default for all link* buttons 2023-11-24 07:26:49 +02:00
nathan
47d97d1367 Et2SelectEmail: Update for recent Et2Select changes, move draggable into its own method 2023-11-23 15:28:32 -07:00
nathan
2bd5f58836 Et2Select: Fix show all tags on hover popup needed z-index set 2023-11-23 14:29:50 -07:00
nathan
38dcda2a01 Et2Select: Fix/re-add hidden tag flag when multiple,readonly & rows=1 2023-11-23 13:45:23 -07:00
nathan
7dad9b69a7 Fix print did not work with forced hidden columns 2023-11-22 16:24:10 -07:00
nathan
51937b032e Et2Select: Not showing new freeEntry in select options immediately after adding it 2023-11-22 16:03:01 -07:00
nathan
76428946a1 Et2Select: Pressing tab on empty search moves focus to next element 2023-11-22 11:53:23 -07:00
nathan
399a0c1171 Et2Select: Fix unwanted tag scrollbars for some multiple selects 2023-11-22 09:32:42 -07:00
nathan
f68b1aae25 Et2Select: Fix email (& other values with spaces) did not show initial value 2023-11-22 09:21:38 -07:00
nathan
3fd2cacf57 Et2Select: Fix overflow / row limit 2023-11-21 14:54:14 -07:00
nathan
519306c8d5 Et2Select: Better fix for 80ad5dddb2 which caused problems with selecting options in Et2SelectEmail 2023-11-21 13:57:24 -07:00
nathan
80ad5dddb2 Et2Select: Fix selects with options from file were not showing their initial set value 2023-11-21 12:01:25 -07:00
nathan
6fcbf87a10 Fix Et2SelectEmail and pass email tags again
Still doesn't work though
2023-11-17 14:31:23 -07:00
nathan
d07af215c1 Fix nm column resize grabs mousedown, blocking filter selection 2023-11-17 11:56:24 -07:00
nathan
032035ae5f Et2Listbox: Fix options were not shown
Fixes merge placeholders not shown in Collabora
2023-11-17 11:16:35 -07:00
hadi
dfd3d6beda Fix size property does not get applied for Et2Select widget anymore 2023-11-17 12:15:11 +01:00
nathan
9f46ee5e62 Et2Select fixes
- Fix sometimes not shown emptyLabel
 - Fix LinkSearch result count
2023-11-16 15:05:38 -07:00
nathan
2b7f4ae5ee Revert "Et2Select: Even better handling of false invalid value", it was too strict leaving blanks instead of emptyLabel
This reverts commit 7db80d066f.
2023-11-16 13:46:30 -07:00
nathan
7db80d066f Et2Select: Even better handling of false invalid value 2023-11-16 13:33:05 -07:00
nathan
2e2c3fb0b6 Fix validation messages after Shoelace update
- some messages (textbox) were out of position
- Selectboxes did not show validation message
- Selectbox considered false a valid value for required, even if that wasn't an option
2023-11-16 13:13:36 -07:00
nathan
3cf4cbab9a Fix missing value in some static option selects
Shoelace select initially rejects the value due to missing option, and needs to be re-set once our options have arrived
2023-11-16 10:09:20 -07:00
ralf
8c4ca8701d more renames of Et2Dialog attribute modal to isModal 2023-11-16 13:42:44 +02:00
ralf
5ffdbf7341 fix audio files wont play (modal attribute renamed to isModal) 2023-11-16 13:36:01 +02:00
nathan
9c8ec0d872 Et2SelectEmail: Fix incorrect total result, wrongly shown "No results" 2023-11-15 15:25:53 -07:00
nathan
ff97c1b90f Api: Fix client side validation failure when widget value was null
Happens for readonlys, disabled, selects with no valid options
2023-11-15 11:57:46 -07:00
nathan
5a02959468 Et2Select: Let select option list get as big as it needs 2023-11-15 09:38:54 -07:00
nathan
a9fcf05fab Home: Fix portlet broken by Shoelace update to 1.8
They made HasSlotController internal only
2023-11-15 09:02:12 -07:00
ralf
8814f55ff3 fix error, if this.editor is not (or no longer) set 2023-11-15 17:27:50 +02:00
hadi
b0bd89591b Fix js error of Cannot read properties of null (reading '0') 2023-11-13 13:26:18 +01:00
hadi
415cbdf5b2 Fix set video src and duration not working 2023-11-13 12:50:23 +01:00
nathan
45f9801df8 Code documentation 2023-11-09 11:12:16 -07:00
nathan
da92471920 Add default keyboard shortcuts for save & cancel buttons 2023-11-08 14:37:30 -07:00
nathan
6a5697eab8 More Drag helper style adjustments
- height adjustments for mail so we can see address & subject
- Change how avatar is sized so we can override it via CSS
2023-11-08 09:54:00 -07:00
nathan
cfd628e87f Slightly better rendering for description contents
Uses the litElement lifecycle better, updated() is called after render()
2023-11-03 16:15:53 -06:00
nathan
1bc26101cd Fix default drag & drop helper did not work well with webcomponents
It doesn't let us do async, so was not waiting for widgets to be updated
2023-11-03 16:13:45 -06:00
hadi
d89646df27 Fix Editable Avatar's edit/delete icons are no longer displayed 2023-11-03 11:32:14 +01:00
nathan
454ab3fb98 Fix spacing & sizing
- Move option group titles to the left more
- Fix calendarowner dropdown would not size properly in sidebox
2023-11-02 17:29:50 -06:00
nathan
c2623dcb55 Fix some issues when search results have option groups
- Options sometimes disappeared when selected
- Count was off if one of the results was already selected
2023-11-02 16:58:38 -06:00
nathan
ba04abd1b4 Et2Dialog: Fix height attribute was not setting dialog height 2023-11-02 13:04:32 -06:00
ralf
a9aefd6a32 disable user-password popup for plaintext passwords (no need) and set disabled, if password field is readonly from server-side 2023-11-02 17:16:34 +02:00
nathan
a7396cab69 Fix Uncaught (in promise) TypeError: et2_selectbox.find_select_options is not a function from et2_widget_ajaxSelect 2023-11-02 08:15:30 -06:00
nathan
5d705c3b79 Calendar: Group calendar owner / participant search results by resource type 2023-11-01 13:26:23 -06:00
nathan
d1e7040011 Fix email tag always shows "not-allowed" cursor for read-only 2023-10-31 09:02:03 -06:00
nathan
b3899e86dd Et2Select: Stop sidemenu scrolling when scrolling through options 2023-10-30 09:10:21 -06:00
hadi
9b2d208e8e Implements load method for multi-video widget 2023-10-30 13:27:38 +01:00
nathan
d15c63198c Docs: Get the ETemplate2 webComponent widets working on doc site
Sort of.  This breaks shoelace images due to them not being imported / copied, and not using the CDN
2023-10-27 11:50:51 -06:00
nathan
4ab788acc1 Et2SelectEmail: Fix pasting in merge placeholders didn't do anything 2023-10-26 10:09:44 -06:00
nathan
4a48fc74c7 Et2Select: Fix placeholder could not be shown 2023-10-25 10:11:44 -06:00
hadi
8fa2f565b6 Set duration time for webm files based on provided duration url param 2023-10-23 09:49:01 +02:00
nathan
f7e1dedac9 Pass options on if sent from server 2023-10-19 16:11:12 -06:00
nathan
85cef367e2 Move Et2SelectAccount initial options to its own method, fix options were sometimes missing 2023-10-19 15:03:16 -06:00
nathan
a6d3a87c75 Doc: Get class doc into docs 2023-10-16 13:34:29 -06:00
nathan
173b9bdfda Api: Fix missing country returned object directly instead of Promise
Fixes JS error loading date widgets in registration
2023-10-16 09:42:28 -06:00
nathan
136c302c15 Fix cf customised setting check if there's no ID 2023-10-13 10:01:24 -06:00
nathan
5601b99c97 Et2Select: Add tabindex to options to avoid focus stealing in sidemenu, other event handling cleanup 2023-10-12 11:25:23 -06:00
nathan
f15cbd186f Docs: Better handling for deprecated properties & methods 2023-10-11 16:48:53 -06:00
nathan
65bf573f88 All etemplate widgets in component list 2023-10-11 14:48:58 -06:00
nathan
04ad3651a4 Api: Let legacy custom JS return
Legacy JS in the form app.appname.function where we _couldn't_ find the actual function now return.  Fixes some custom click handlers couldn't submit
2023-10-10 15:24:05 -06:00
nathan
235ff7a2cf Et2SelectAccount improvements
- Fix always including all accounts
- Limit included accounts to 100 to avoid breaking
- Let repeat() cache
- Improved "more results" count
- Reduce repeats & iteration needed
2023-10-06 11:37:46 -06:00
hadi
58d486e6ba Fix switch widget not setting the initial state correctly 2023-10-06 16:06:23 +02:00
nathan
a4ee20b3ee Api: Fix unneeded reloads in nm when applying favourite 2023-10-04 15:13:25 -06:00
nathan
3088d168f4 More select tests
- finds options from DOM / template
- finds static options
- combinations with other option sources
2023-10-04 10:45:41 -06:00
nathan
d5139d41fb Api: Show nm columns from favourites
Need to update preferences before submitting
2023-10-03 11:53:14 -06:00
nathan
e24b5578a3 Api: Show nm columns from favourites, automatically reloading if needed to get missing columns 2023-10-03 11:40:38 -06:00
nathan
efe0eff776 Calendar: Fix sidebox owner could not select options 2023-10-02 16:06:25 -06:00
nathan
72112023e8 Et2Select: Fix link search lost selected item, showing ?? instead 2023-10-02 13:11:48 -06:00
nathan
795160301b Et2Select: Unit test update
- Added check to see if it actually shows the options
- Fix "Selected multiple remote results in value" failed
2023-10-02 08:39:22 -06:00
nathan
6c06a5311f Et2Select: Fix select options were only visible as search results 2023-10-02 08:04:19 -06:00
nathan
4f575894a2 Et2Select: Fix selecting a second search result could remove first one 2023-09-29 13:43:12 -06:00
nathan
124b6b1f96 Fix link-to would close & clear immediately after selecting a result 2023-09-28 11:00:30 -06:00
nathan
d5f56b8bae Fix duration would not store days or hours, only minutes 2023-09-28 09:39:53 -06:00
nathan
2b66ca8ba6 Docs: Get avatar widget in list, remove Et2 prefix from widget names 2023-09-27 14:29:19 -06:00
nathan
54b38cab8c Fix favourites did not show customfield column if needed 2023-09-27 13:22:57 -06:00
nathan
bbf676597f Et2Select: Fix selected search results sometimes disappeared 2023-09-27 11:15:13 -06:00
Milan
aa228dad42 WIP sl-Tree 2023-09-27 13:05:48 +02:00
Milan
e3ca0bfacd Merge remote-tracking branch 'origin/master' 2023-09-27 12:59:53 +02:00
nathan
d7b6306d32 Fix column selection 2023-09-26 15:47:16 -06:00
nathan
70be19cdfb Et2Select: Fix change event did not fire when free entry was added 2023-09-25 10:16:32 -06:00
nathan
d33377e17d Fix date-duration did not show selected properly 2023-09-25 09:51:06 -06:00
nathan
735b52b38b Remove block_change_event
It doesn't seem to be needed now, and is actually stopping the first user change from firing (change alarm time in calendar edit)
2023-09-25 09:37:48 -06:00
nathan
5601897dbb Put additonal options to static select before the static options 2023-09-25 08:50:36 -06:00
hadi
8b5819094d Fix broken fullEmail feature 2023-09-25 14:35:18 +02:00
nathan
054d124afe Initial attempt at a nice dev reference.
Many thanks to all the other developers who made this possible, especially Shoelace
2023-09-22 13:51:38 -06:00
hadi
a00fdb9eb2 Clean up etemplate2 sessions before closing the top level window 2023-09-22 16:11:14 +02:00
ralf
e3138fe886 fix calendar.edit wont open, caused by new hidden attribute:
- parent can be undefined
- typo parent.getArr(a)yMgr()
- parseBoolExpression() does NOT support boolean values
- returning null gives errors later on, commented it out for now :(
2023-09-22 10:28:00 +02:00
nathan
92cf528fe8 Introduce widget.hidden to hide widgets, and widget.set_disabled() now also hides widgets. 2023-09-21 10:43:09 -06:00
nathan
0f66624047 Get some more automatic tests working again, remove JS files 2023-09-21 08:18:09 -06:00
nathan
e2d3c5f1e8 Get some automatic tests working again 2023-09-20 14:24:01 -06:00
nathan
5349c7a966 Fix selects with no emptyLabel but an option with value="" did not return a value 2023-09-20 08:20:22 -06:00
nathan
cdd13e5109 Fix doubled options with freeEntries 2023-09-19 16:04:19 -06:00
nathan
a4b0a2a1f0 Get country flags showing again 2023-09-19 15:20:36 -06:00