Commit Graph

140 Commits

Author SHA1 Message Date
nathan
da2413a07f Et2Select: Fix missing options filter to handle option groups too 2023-05-17 08:30:38 +02:00
nathan
7237a265ef Fix focussed select does not close when it loses focus
Mail reply moves focus from To: to body, and To dropdown stayed open
2023-05-12 10:45:20 +02:00
nathan
ef58242afe Some "invalid option" fixes:
- Don't notify user, just log it to the console
- Fix calendar owner filtered out not loaded options
2023-05-11 14:27:18 -06:00
nathan
471a5a60b9 Et2Select: Fix selection of first option when no value provided, broken by 134cd9d249 2023-05-10 09:41:16 -06:00
nathan
2179423b03 Fix filtered out invalid values were still left in value 2023-05-10 09:31:27 -06:00
nathan
d94c2f7c09 Fix invalid option check did not work for multiple 2023-05-10 09:30:41 -06:00
nathan
73c65cd8a7 Et2Select: Remove values that use options that aren't there to avoid the validation error 2023-05-10 09:30:30 -06:00
nathan
3738284a39 Let change event bubble so it can be caught by parents 2023-04-27 10:06:24 -06:00
nathan
889fa75f8c Fix typo in 5a824ef 2023-04-20 08:19:08 -06:00
nathan
fe962c2177 Et2Select: Fix doubled tags, long tags missing ellipsis 2023-04-19 11:13:37 -06:00
nathan
0242891289 Preferences: Add a preference for if select multiple dropdowns stay open or closes immediately after selection 2023-04-19 11:11:35 -06:00
nathan
1a5c20d8a0 Et2Select: Re-color dropdown icon in darkmode 2023-04-05 11:40:02 -06:00
nathan
c6090fc4fd Et2Select: Fix select closes immediately after opening
If you click to open then click again to close, select wouldn't stay open after that.
2023-04-05 15:45:59 +02:00
nathan
de8d8a1c36 Et2Select: It was impossible to have "," in an option value, as it would get split by set_value()
see a9d2a3972c
2023-04-04 10:25:30 -06:00
nathan
8e8ded1323 Et2Select: It was impossible to have "," as an option value, as it would get split by fix_bad_value() 2023-04-03 10:33:11 -06:00
hadi
b9d3e796fe Set a max height for select tags 2023-04-03 10:45:04 +02:00
nathan
93a9ac3091 Et2Select: Missed changes in backports 2023-03-31 11:10:33 -06:00
nathan
21e9d67916 Fix up recur days 2023-03-31 10:39:19 -06:00
nathan
824ebe514c Et2SelectDayOfWeek: Fix missing all days, weekday, weekend options 2023-03-31 10:30:43 -06:00
hadi
1bcaf3da43 Set a max height for select tags 2023-03-31 14:08:55 +02:00
nathan
c67e080c2a Keep select tag icons their original color 2023-03-28 08:45:18 +02:00
nathan
ee758d3069 Et2Select: Fix keyboard navigation in search results & sidebox category closes 2023-03-23 17:24:08 -06:00
nathan
6b3acd3af8 Et2Select: Always close the dropdown after an option is selected, even if multiple=true. Now for keypresses too.
see 62402f39ae
2023-03-23 16:15:41 -06:00
nathan
bab0a769d1 Et2Select: Always close the dropdown after an option is selected, even if multiple=true 2023-03-23 16:15:31 -06:00
ralf
43dfaa6bc2 fixes for transpiling: import instantiated StaticOptions object, not the type
has also the benefit of using a single instance
2023-03-13 19:38:36 +01:00
nathan
41cbb68de0 Et2Select: Fix extra scrollbar with rows=1, multiple, hover lots (> 8 or so) of rows 2023-02-22 16:23:56 -07:00
nathan
f7d44c63cb Enable disabled select options 2023-02-22 09:51:57 -07:00
nathan
33ca8a47a9 Et2Select: Tweak size calculations for rows setting to work better for all font size preferences 2023-02-16 11:59:34 -07:00
nathan
524a9b3c7b Change how readonly multiple selects with rows=1 show more tags are hidden
Showing total number of values is way easier than showing the number that aren't displayed
2023-02-15 13:23:05 -07:00
nathan
d02a40ee82 Et2Select: Remove any doubled values when setting value 2023-02-13 14:00:52 -07:00
nathan
efa550f251 Et2Select: Add onTagClick property for actions on tag clicks
Fixes unable to detect clicking on individual tags inside readonly et2-select-email
2023-02-08 09:11:33 -07:00
nathan
9cde6a7171 Fix some styling on select-email
- Make +N tag right aligned & look like text, not tag
- Fix popup to open below but covering field
- give popup border & dropshadow
2023-02-07 12:04:05 -07:00
nathan
2a3a8a7371 Et2Select: Fix tags can't be removed 2023-02-07 10:04:56 -07:00
nathan
cd980c78df Limit mail to & cc addresses to 1 row, show all on hover.
Use:
multiple="true" rows="1" maxTagsVisible="1"
to trigger show all on hover
2023-02-06 14:48:55 -07:00
ralf
bd8198d230 missing et2-select-lang widget 2023-02-06 15:52:58 +01:00
nathan
1d8d4f9c72 Fix some readonly issues where widgets were not looking readonly
- Editable tags were still editable if the select was readonly
- LinkTo could still select an app (readonly not passed on)
- Hide the dropdown for multi-select when readonly
2023-02-03 14:09:07 -07:00
nathan
e575c40ff3 Some missed cases where client-side lavatar was not used 2023-01-30 15:26:09 -07:00
nathan
5bab72b8be Use client-side Et2LAvatar for user accounts whenever possible, only using avatar.php when there's a real image.
TODO:
- Need to find a cheap way to determine if there's a real image in Api/src/Accounts.php & class.mail_compose.inc.php

- Still some work for me to do in Et2SelectEmail
2023-01-27 10:34:40 -07:00
nathan
7518278948 Add edit button to freeEntry selectbox tags 2023-01-23 17:34:37 -07:00
nathan
a699117b1b Fix hiding server-side messages for selectboxes
Messages were not properly hidden & displayed, and setting handleFocus & handleBlur accidentally overwrote them in Shoelace widgets
2023-01-11 11:11:02 -07:00
nathan
1163f9e31d Hide server-side validation messages while widget has focus. If the value did not change, put messages back 2023-01-09 16:02:59 -07:00
nathan
a9fe524123 Et2Select: Fix value got wrecked by fix_bad_value() when there are option groups 2022-12-15 11:31:56 -07:00
nathan
6a5d189489 Better fix for Et2SelectState not getting country set 2022-11-14 14:41:08 -07:00
nathan
47a48b386f Et2Select: Fix change event got fired too early
Don't need to block the event if we didn't actually change the value.  This fixes changing to common preferences
2022-11-09 15:34:28 -07:00
nathan
4dffd24feb Et2Select: Fix change event got fired too early
Second attempt.  If fix_bad_value() made a change, that was triggering change event before Et2App.et2_ready() had been called.  Now making sure that event does not get fired.
2022-11-08 11:04:03 -07:00
nathan
69ce014aa6 Et2Select: Vertically center multiple tags 2022-10-13 09:33:04 -06:00
nathan
b5a2778168 Fix category did not display value on first load 2022-10-03 09:12:00 -06:00
nathan
086d92e957 Et2Select: All selectboxes now stop scroll event from bubbling to prevent parent (sidemenu) from scrolling too 2022-09-23 10:54:02 -06:00
nathan
9a036b1dfe Et2Select: Fix "required" styling did not show in a better way
Previous method (38e8df2) made widget entirely transparent
2022-09-15 15:26:06 -06:00
nathan
38e8df223d Et2Select: Fix "required" styling did not show 2022-09-15 12:36:31 -06:00