Commit Graph

142 Commits

Author SHA1 Message Date
nathan
6f4fdb4707 Fix infinite loop in missingOption in country/state due to not waiting for results
Add class method to search through select options
2023-12-06 09:17:40 -07:00
nathan
8f5099a85d Select account: sort options 2023-12-04 13:41:45 -07:00
nathan
5b9ee2db39 Et2Select: Fix missing option detection when options have optgroups
Was unable to find option in Timezones, resulting in an infinite loop
2023-12-02 19:37:17 +02:00
ralf
751942728d Revert "Revert "SearchMixin: Fix initial values not always displayed when options are from server or file""
This reverts commit cc4813ea90.
2023-12-02 19:36:28 +02:00
ralf
cc4813ea90 Revert "SearchMixin: Fix initial values not always displayed when options are from server or file"
Causes a complete browser freeze when opening Preferences > Common preferences > Default preferences

This reverts commit 562a391579.
2023-12-01 16:58:25 +02:00
nathan
562a391579 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:02:18 -07:00
nathan
e66c9512f1 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:55:35 -07:00
nathan
f58c10a7e9 Et2Select: Fix weird UI issue after clearing single value
Search was shown as well as empty label
2023-11-29 11:03:52 -07:00
nathan
4a067f8515 Et2Select: Fix initial values not always displayed when options are from server or file 2023-11-29 09:36:50 -07:00
nathan
9e7de91ab6 Cleanup unused code 2023-11-28 21:44:29 +02:00
nathan
acd52cf749 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 21:43:51 +02:00
nathan
8f4c9cbb0a Et2Select: Not showing new freeEntry in select options immediately after adding it 2023-11-24 15:09:58 -07:00
nathan
7195ea09b2 Et2Select: Pressing tab on empty search moves focus to next element 2023-11-24 15:09:49 -07:00
nathan
064b0088b9 Et2Select fixes
- Fix sometimes not shown emptyLabel
 - Fix LinkSearch result count
2023-11-16 15:09:48 -07: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
5d705c3b79 Calendar: Group calendar owner / participant search results by resource type 2023-11-01 13:26:23 -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
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
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
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
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
bbf676597f Et2Select: Fix selected search results sometimes disappeared 2023-09-27 11:15:13 -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
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
a4b0a2a1f0 Get country flags showing again 2023-09-19 15:20:36 -06:00
nathan
368c9fae63 Fix link to did not link 2023-09-19 08:46:41 -06:00
nathan
f75567a863 Select improvements
- Add _styleTemplate for easier extension
- re-organize file
- Fix weird tag style
- some cleanup
2023-09-18 16:09:43 -06:00
nathan
19552059b3 Fix no results sometimes showed even if there were results 2023-09-15 08:09:55 -06:00
nathan
472ee73dda Improve styling & behaviour of Et2SelectEmail 2023-09-14 14:30:20 -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
0b036f49b8 Et2Select: Fix some static option selects did not show their values when readonly 2023-08-28 13:50:09 -06:00
nathan
b2e1cef233 SearchMixin: If the value is changed while the search / options are open, recalculate positioning
Fixes bug where it looks like the value hasn't changed, until the dropdown closes.
2023-08-03 14:05:10 -06:00
nathan
6b183db6e0 SearchMixin: Limit number of JSON search results 2023-07-31 10:11:04 -06:00
nathan
8335281787 Fix email tags marked as invalid 2023-07-27 13:19:43 -06:00
nathan
46795ec108 SearchMixin: Fix select option not having class causes JS error
Fixes addressbook edit popup does not resize
2023-07-27 10:04:58 -06:00
ralf
0f692fbb74 fix lavatar shows same letters for every contact not having a photo
caused by wrongly falling back to the contact with contact_id equal to account_id of current user
also fix TypeError if remote search does not return an array
2023-07-27 12:45:40 +02:00
nathan
575c8fa976 SearchMixin: Move missing value check after update so select_options gets a chance to populate first
This should speed up the initialization a little, avoiding some unneeded checks
2023-07-26 08:32:00 -06:00
nathan
2a5d0062dd Api: SearchMixin improvements to work with Et2LinkSearch more efficiently
Moving handling of missing options to overridable method so Et2LinkSearch can use its more efficient method
2023-07-25 09:38:11 -06:00
nathan
f04b25089a WIP on caching static option file and searching it client-side
Avoid type error in CalendarOwner
2023-07-24 08:51:27 -06:00
nathan
f0be2fcdca WIP on caching static option file and searching it client-side
Still needs file caching & passing correct URL
2023-07-21 16:40:29 -06:00
nathan
91b94a5126 Et2Select: Use same z-index for search box as dropdown 2023-05-10 13:43:46 -06:00
nathan
2fc44da034 Api: Fix clicking Select dropdown button while open did not close dropdown 2023-05-01 08:55:25 -06:00
nathan
8e9071acc8 Calendar: More sidebox owner fixes
- another instance of remote class causing problems
- remove duplicates to avoid warning message
2023-04-28 11:27:26 -06:00
nathan
86dac02826 Calendar: Fix second selected owner in sidemenu went missing 2023-04-27 14:02:41 -06:00
nathan
5a824ef25b Et2Select: Fix doubled tags, long tags missing ellipsis 2023-04-18 10:36:34 -06:00
nathan
8de9ffc240 Et2Select: Fix keyboard navigation in search results & sidebox category closes 2023-03-23 17:21:32 -06:00
nathan
f7d44c63cb Enable disabled select options 2023-02-22 09:51:57 -07:00