hadi
3ecb093d35
Implement onlyEmail option for UrlEmailReadonly
2023-06-22 14:37:15 +02:00
hadi
0d60d3baf4
Make sure to show only email when using current value as email (avoids getting duplicate name in fullEmail mode)
2023-06-22 12:34:56 +02:00
ralf
8b22a258c6
fixing the fix, item is a regular (not DOM-)object and not undefined
2023-05-19 09:26:21 +02:00
ralf
71278c8041
fix TypeError: item.querySelector is not a function
2023-05-19 09:20:47 +02:00
nathan
be25869a1d
Et2Select: If the value contains something that does not pass validation, show it as an invalid tag so it can be removed.
2023-05-18 10:48:33 -06:00
nathan
ab3a75a7b3
Focus test WIP
2023-05-18 08:08:18 -06:00
nathan
6ecb2d8cf9
Et2Select: Fix missing options filter to handle option groups too
2023-05-16 11:02:20 -06:00
nathan
d5d217c589
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 10:56:42 -06:00
nathan
91b94a5126
Et2Select: Use same z-index for search box as dropdown
2023-05-10 13:43:46 -06:00
nathan
01ab3ab85a
Et2Select: Fix selection of first option when no value provided, broken by 134cd9d249
2023-05-10 09:19:43 -06:00
nathan
820bd35689
Fix filtered out invalid values were still left in value
2023-05-09 14:28:02 -06:00
nathan
3e1b1e56dc
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-09 14:04:02 -06:00
nathan
134cd9d249
Fix invalid option check did not work for multiple
2023-05-09 08:57:55 -06:00
nathan
4ce6bb3f3d
Et2Select: Remove values that use options that aren't there to avoid the validation error
2023-05-05 11:08:47 -06:00
nathan
05e262d5ee
Some tests for Et2EmailTag
2023-05-01 15:27:17 -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
7d86d69b49
Add statustext to list of detached attributes
2023-04-25 13:53:16 -06:00
hadi
998039b464
Do not translate category names
2023-04-25 12:02:35 +02:00
nathan
5c1c31e2a5
Fix typo in 5a824ef
2023-04-19 10:25:49 -06:00
nathan
9e8bc6e1ee
Let change event bubble so it can be caught by parents
2023-04-19 10:03:54 -06:00
nathan
5a824ef25b
Et2Select: Fix doubled tags, long tags missing ellipsis
2023-04-18 10:36:34 -06:00
nathan
6db4bdbac0
Preferences: Add a preference option for if select multiple dropdowns stay open, excluding email selection
...
Also, German translations from Birgit
2023-04-18 08:52:06 -06:00
nathan
358cc70d66
Preferences: Add a preference for if select multiple dropdowns stay open or closes immediately after selection
2023-04-17 09:28:27 -06:00
ralf
b3ea3c89cf
implement onlyEmail attribute for et2-select-mail to only display email address, even if we have a full rfc822 address and use it for aliases and forwards in admin mail
2023-04-11 18:19:17 +02:00
ralf
649645ab0f
* Mail: allow placeholders in compose instead of email-addresses to be able to create mail templates
2023-04-11 15:01:40 +02:00
nathan
aa89bf82af
Et2Select: Re-color dropdown icon in darkmode
2023-04-05 11:30:36 -06:00
nathan
55116c7b49
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-04 10:12:48 -06:00
nathan
98ae5aac1c
Et2Select: It was impossible to have "," in an option value, as it would get split by set_value()
...
see a9d2a3972c
2023-04-03 14:55:04 -06:00
nathan
1702269b65
Api: Fix readonly category select did not load application categories
...
Categories were loaded before attributes & application was not used
2023-04-03 10:21:46 -06:00
nathan
a9d2a3972c
Et2Select: It was impossible to have "," as an option value, as it would get split by fix_bad_value()
2023-04-03 08:52:31 -06:00
hadi
c4809386e1
Set a max height for select tags
2023-03-31 14:07:30 +02:00
nathan
deefd1e0ea
Et2SelectDayOfWeek: Fix missing all days, weekday, weekend options
2023-03-30 08:33:07 -06:00
nathan
b67abdafd1
Fix up recur days
2023-03-28 13:48:26 -06:00
nathan
e0e074a4b1
Et2SelectEmail: Fix keyboard navigation in search results
2023-03-27 08:51:20 -06:00
nathan
af66c63714
Keep select tag icons their original color
2023-03-24 11:45:55 -06:00
nathan
8de9ffc240
Et2Select: Fix keyboard navigation in search results & sidebox category closes
2023-03-23 17:21:32 -06:00
nathan
5614870a29
Et2Select: Always close the dropdown after an option is selected, even if multiple=true. Now for keypresses too.
...
see 62402f39ae
2023-03-23 16:02:09 -06:00
nathan
62402f39ae
Et2Select: Always close the dropdown after an option is selected, even if multiple=true
2023-03-23 15:23:32 -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
Hadi Nategh
2dc78de2c1
Support deprecated get values method for ET2Select_ro
2023-02-27 09:56:39 +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
03a237fd7e
Et2Select: Turn off browser autocomplete in search
2023-02-13 14:57:55 -07:00
nathan
d02a40ee82
Et2Select: Remove any doubled values when setting value
2023-02-13 14:00:52 -07:00
nathan
c4f3ec9840
Et2Select: Fix free entries can get doubled if more free entries added
2023-02-10 14:13:13 -07:00
nathan
96558b9da8
Fix missing translation in Select group & dropdown options
2023-02-09 14:47:43 -07:00
nathan
00a857b2d7
Projectmanager: Fix gantt column selection opens with wrong position
...
Now using a proper dialog, similar to nextmatch column selection
2023-02-08 11:48:56 -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
ralf
ed09a0b079
add missing readonly et2-select-lang to fix language column in news-admin index
2023-02-08 08:24:59 +01:00
nathan
193dbfc339
Et2Select: Fix some search weirdness
...
- Search didn't start until 1 character more than expected
- Search didn't happen on enter because the et2-searchbox inside stopped the key event from bubbling
2023-02-07 16:24:06 -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
Hadi Nategh
cb6f2ee808
Add missing column on email tag tooltip
2023-02-07 10:01:46 +01:00
nathan
1b7f9d3ebc
Et2SelectEmail: Give dragged tags some z-index, so they go over the other controls
2023-02-06 15:07:30 -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
Hadi Nategh
dda3b1f5d1
Remove excessive BR tag from email tag
2023-02-06 11:33:50 +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
Hadi Nategh
138999f233
Add again full value as tooltip for email tags
2023-02-02 12:12:08 +01:00
nathan
ab56ad1171
Et2Select: Handle paste of CSV into selects with allowFreeEntries
...
Special handling for Et2SelectEmail to handle email addresses that may have a name or comma
2023-01-31 09:48:27 -07:00
nathan
e575c40ff3
Some missed cases where client-side lavatar was not used
2023-01-30 15:26:09 -07:00
nathan
f503743956
Use client-side Et2LAvatar instead of image for Et2SelectEmail options & tags
...
Should now be only avatar.php image when provided
2023-01-27 13:27:31 -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
9cebab3c2f
Fix readonly selects could display 'undefined' with no value and no emptyLabel
2023-01-26 12:58:37 -07:00
nathan
62bc77a4d2
Make sure egw.lang() doesn't error trying to translate option label
...
This un-reverts 4e5f68f97c
2023-01-25 14:24:08 -07:00
nathan
4b8b454566
Make sure values are strings, otherwise they might not match comparison
...
Should fix tracker list "Created by" filter losing display when you select a search result
2023-01-25 13:43:35 -07:00
ralf
6ef78c9591
Revert "Fix missing translation on read-only select"
...
Causes:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'toLowerCase')
at Object.lang (egw_lang.js:73:16)
at Et2SelectAccountReadonly._readonlyRender (Et2SelectReadonly.ts:189:59)
at Et2SelectAccountReadonly.render (Et2SelectReadonly.ts:168:16)
at Et2SelectAccountReadonly.update (lit-element.js:6:304)
at Et2SelectAccountReadonly.performUpdate (reactive-element.js:6:4849)
at Et2SelectAccountReadonly.scheduleUpdate (reactive-element.js:6:4496)
at Et2SelectAccountReadonly._$Ej (reactive-element.js:6:4404)
This reverts commit 4e5f68f97c
.
2023-01-25 09:46:22 +01:00
nathan
4e5f68f97c
Fix missing translation on read-only select
2023-01-24 14:44:28 -07:00
nathan
9bf0149645
Fix selectbox positioning issue
...
Tracker owner would open down instead of up with fontsize = 14. Updating to shoelace 2.0.0-beta.81 fixes it. Going farther introduces some other issues that I don't want to get into right now
2023-01-24 13:58:38 -07:00
nathan
2332c2a806
Et2Tag: Make edit textbox larger
2023-01-24 08:27:52 -07:00
nathan
7518278948
Add edit button to freeEntry selectbox tags
2023-01-23 17:34:37 -07:00
nathan
86917eff65
Fix file settings error "'0' is NOT allowed ('not found')!" for gid.
...
It did not have a '0' => 'root' option, which is what we were using for the value.
2023-01-19 09:21:03 -07:00
nathan
80fbd3cc26
Fix placeholder widget
...
IDs on et2-boxes caused unwanted namespace, Et2Listbox couldn't find its ID before fully initializing
2023-01-19 08:44:52 -07:00
nathan
4f7b54c6bb
Fix some more select attribute / legacy options issues
2023-01-11 15:49:56 -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
7d94692dfd
Fix some missing account names
...
- egw().accounts() were not cleaned
- accounts not in normal cache did not call requestUpdate() properly
2022-12-19 12:01:29 -07:00
nathan
ac97af35cb
Lets try creating options directly when we get them, rather than going through update first
...
Timing was not getting menu items created soon enough, resulting in IDs instead of names in the options
2022-12-16 11:48:12 -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
e756962f86
Change egw.accounts() to always return a Promise
2022-12-15 10:22:19 -07:00
nathan
3b5f64a4c3
Implement option groups
2022-12-14 14:32:20 -07:00
nathan
5acc8c55c8
Et2SelectEmail: Fix fullEmail did not show full email
2022-12-12 14:07:08 -07:00
nathan
34172704dc
Fix SelectAccount didn't always get values into options correctly
2022-12-12 13:10:53 -07:00
nathan
0f37d2f437
Fix sometimes missing accounts for SelectAccount widgets
2022-12-09 13:16:44 -07:00
nathan
6177ca0536
SearchMixin: Filter selected remote correctly for single selects too
2022-12-09 13:14:57 -07:00
nathan
8ed40c8c0e
Et2SelectThumbnail: Fix current value(s) did not display
2022-12-09 09:03:43 -07:00
nathan
4b4d6fe184
Stop scrolling new tag into view, it causes calendar sidemenu to get stuck
2022-12-08 14:47:02 -07:00
nathan
ce64ddf9e0
Fix doubled tags if widget gets select_options after a remote option is selected
2022-12-08 14:28:05 -07:00
nathan
be5125509e
SearchMixin: Fix selecting multiple remote values only showed the last
2022-12-08 10:24:49 -07:00
nathan
c26732a913
Some more fixes for historylog widget
...
- Fix options in proper format could be interpreted as sub-widgets
- Fix numeric values
2022-12-07 15:04:22 -07:00
nathan
fb40aedf89
SearchMixin: Use parent set select_otions, no need to duplicate
2022-12-06 11:59:51 -07:00
nathan
25f64d0064
Fix error on some bad options
...
Would sometimes stop historylog from loading
2022-12-06 10:05:47 -07:00
nathan
3971abc54b
Fix some select options were not being cleaned
...
Integer values provided from server were not being converted to strings, breaking value handling & matching
2022-12-06 09:13:04 -07:00
nathan
fa2375b1a6
SearchMixin: Fix selected remote options got lost if adding a freeEntry
2022-12-05 13:56:31 -07:00
nathan
2b02d4e9ab
Fix listbox sometimes lost value
2022-12-05 10:11:17 -07:00
nathan
7ba5730251
Change properties to camelCase
2022-12-05 09:42:55 -07:00
nathan
6eebabe472
SearchMixin: Fix tag edit
...
Double clicking just cleared the input, edit was immediately stopped due to search blur
2022-12-01 14:54:34 -07:00
nathan
404a29b985
SearchMixin: If user enters a valid free entry then changes focus without pressing Tab or Enter key, accept the free entry
2022-12-01 14:15:40 -07:00
nathan
6d41c9c30b
Et2SelectAccount: Avoid error if option does not have an image
2022-11-21 09:16:38 -07:00
nathan
1d540aa74c
Fix additional options to a static list were not properly added if they were in correct format with value & label
2022-11-21 09:14:27 -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
32bd2a1084
SearchMixin: Make sure dropdown doesn't cover bottom border
2022-11-09 09:30:53 -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
78333613fa
Et2Select: Fix change event got fired too early
...
If fix_bad_value() made a change, that was triggering change event before Et2App.et2_ready() had been called
2022-11-07 09:57:00 -07:00
nathan
74f7f4dcb5
Et2SelectReadonly: Allow additional supplied options, but fix bug where they overwrote account options
2022-11-02 14:03:12 -06:00
nathan
48eb9c1968
Fix duplicate option warning from customfield select filter
2022-10-18 16:06:28 -06:00
nathan
bd62279f55
Et2Select: Cancel search timer on blur and menu close
...
If we don't, results might come back after we leave/close and re-open
2022-10-17 09:56:58 -06:00
nathan
0004aa5bb4
SearchMixin: Avoid errors if searchInputNode is not created
2022-10-14 15:12:08 -06:00
nathan
69ce014aa6
Et2Select: Vertically center multiple tags
2022-10-13 09:33:04 -06:00
nathan
08e899e91c
Fix Et2SelectCategory had category border when multiple
...
Now only shows category border for single select, when there's a value
2022-10-13 08:41:42 -06:00
nathan
690e89157e
Et2Listbox: Make rows set the height, not the max
2022-10-07 15:33:43 -06:00
nathan
8514792efc
Fix changing select options did not properly clear previous options
2022-10-07 15:31:06 -06:00
ralf
c5b8261ec2
do NOT split RFC822 addresses containing comma in quoted name part eg. 'Becker, Ralf <rb@egroupware.org>'
2022-10-06 13:14:34 +02:00
nathan
3ce5aebe12
Collabora: Get insert placeholder dialog working again
2022-10-05 10:50:54 -06:00
nathan
f8e56edc20
Limit number of accounts (& other select/taglist search results) sent to client
2022-10-04 15:49:07 -06:00
nathan
7bb4332961
Et2SelectCategory: Fix loading with initial value did not get category color or icon in the displayed label
2022-10-04 09:17:31 -06:00
nathan
b5a2778168
Fix category did not display value on first load
2022-10-03 09:12:00 -06:00
nathan
12f8b2cb3e
Et2SelectEmail: Add some documentation
2022-09-28 11:14:02 -06:00
nathan
ffd6c21ed4
Et2Select: Avoid errors if freeEntry has single quote
2022-09-27 13:55:32 -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
171c9c02cb
Pressing escape while in search now closes dropdown
2022-09-23 10:40:16 -06:00
nathan
bea34ad403
Fix adding a freeEntry did not trigger change event
2022-09-22 15:18:34 -06:00
nathan
5a8f7c3c70
More fixing of missing search options / tags
...
Fixes new free entries don't show up after removing a free entry
2022-09-22 11:15:25 -06:00
nathan
8da8c14a00
Et2SelectEmail: Change multiple default to false to match other selects
2022-09-22 08:59:31 -06:00
nathan
2952df2799
Et2Select + SearchMixin: Fix some bugs with display and selecting entries
...
- Fix clicking on text while editing triggered re-display
- Avoid unneeded node re-creation when editing free entry, handle empty value as removal
multiple=true:
- Fix clearing search removed previously selected remote results
- Fix adding a free entry did not move search down, covering the new value
multiple=false:
- Fix search & edit inputs were shown at the same time
- Fix edit free entry always took over making it impossible to search
2022-09-21 17:13:29 -06:00
nathan
7dd0165cd2
Et2Select + search: Fix position adjustment did not work in all cases
...
Subsequent searches did not give space for searchbox
2022-09-20 10:07:36 -06:00
nathan
66368c6d3a
Et2Select + search: Adjust dropdown position based on if it opens up or down
2022-09-20 09:43:25 -06:00
nathan
606e2688d4
Et2SelectEmail: Do not create image in tag, Et2EmailTag uses CSS for image
...
Fixes doubled image
2022-09-19 09:23:23 -06:00
nathan
1deeee207f
Better way to show "no suggestions" indicator, works with local options now too
2022-09-16 11:17:06 -06:00
nathan
30c3000e87
Et2Select fixes
...
- Search with no results blocked any futher searches from displaying results
- Only show "no suggestions" after searching
2022-09-16 10:20:47 -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
nathan
c8b6a5760b
Et2Select: Re-add accidentally removed chunk that sets initial value when initial value is an array
...
Fixes mail preview didn't show to/from addresses
2022-09-15 08:49:36 -06:00
nathan
1b72eb4a00
Revert "Revert "Et2Search: Fix some UI bugs" as it no longer renders values and therefore easily destroys existing content"
...
This reverts commit 0287e06df2
.
2022-09-15 08:30:50 -06:00
ralf
0287e06df2
Revert "Et2Search: Fix some UI bugs" as it no longer renders values and therefore easily destroys existing content
...
This reverts commit 56eb4d64ac
.
2022-09-15 12:56:12 +02:00
nathan
56eb4d64ac
Et2Search: Fix some UI bugs
...
- Fix missing loading spinner while searching
Clear button was in the way, now hiding clear button when displaying the spinner
- Fix searching for the same thing twice displays no results the second time
repeat() and map() directives were not putting the DOM nodes back in, worked around by using a temp div to render into. There were some lifecycle mistakes as well leading to collisions & re-doing.
2022-09-14 15:47:36 -06:00
nathan
9096c17348
Et2Select: Tabbing out of search field now closes the dropdown
2022-09-13 09:06:59 -06:00
ralf
d8d8429622
an other fix for 4c00b812ee
fixing error when trying to reply
2022-09-13 10:17:59 +02:00
ralf
c00c6f9e07
readonly et2-select-mail caused error with 4c00b812ee
eg. in mail.display
2022-09-13 09:15:55 +02:00
nathan
4c00b812ee
Fix edit inputbox covered new freeEntries
2022-09-12 12:48:21 -06:00
nathan
43cce1940d
Fix selecting search result does not display label
...
Infolog contact filter still filtered, but did not show label for selected search result.
2022-09-12 10:19:38 -06:00
Hadi Nategh
1489944d49
Fix category border styling
2022-09-12 15:16:04 +02:00
ralf
26824323e5
got mailing lists working again in mail compose using includeLists=true attribute
...
using "$list_name <$list_id@lists.egroupware.org>" instead of just integer ids for the list, thought et2-select-mail is NOT displaying the mailing-list icon, after a mailing-list is selected
2022-09-12 14:51:13 +02:00
nathan
f85de279c6
Fix some property bugs
...
- Parse values that should have been objects but came as strings
- Decode SearchMixin.searchUrl
2022-09-08 11:17:34 -06:00
nathan
a10938ab2b
Fix select account readonly did not properly show names with CSV
2022-09-07 15:12:06 -06:00
nathan
151df0f76b
Et2Select + search fixes
...
- Fix multiple=false had gap between widget and dropdown
- Add clearSearch() to clear the (remote) search results
2022-09-07 08:40:46 -06:00
nathan
6b4a16357f
Et2LinkAppSelect: Fix displayed icon did not change when value changed
2022-09-06 11:11:13 -06:00
ralf
1ec9ef63fe
fix Uncaught TypeError: Failed to execute 'getComputedStyle'
...
thought the image no longer changes, when selecting another one :(
2022-09-05 13:59:07 +02:00
nathan
daf63d9c23
Et2Select: If multiple and no value, overlap the search onto the widget
2022-09-01 11:53:19 -06:00
nathan
24daafb9ef
Et2Select: If somebody set '' as an option value then '' is not a bad value and doesn't need to be fixed.
2022-09-01 09:58:08 -06:00
nathan
1bbcdbfeb7
Fix Et2SelectAccount couldn't have non-account options, so freeEntries didn't show up
2022-09-01 08:30:43 -06:00
nathan
2e319319d1
Fix general free entries did not validate with 0 validators
2022-09-01 08:29:46 -06:00
nathan
a3d2674757
Et2Select + search: Fix some bugs
...
- Select a searched value didn't validate due to different attribute name
- et2-searchbox inside et2-select threw an additional change event, needed to catch that
- fix_bad_value() needs different handling when you can search, otherwise it just gets cleared again
2022-08-31 13:28:20 -06:00
nathan
6458511d75
Et2Select: Fix some missing "emptyLabel" bugs
...
- If there were no select_options, and an invalid value, empty label was not shown (Infolog pricelist)
- Select Number had numeric values for options which did not match string values (Infolog completed)
2022-08-30 14:27:19 -06:00
Hadi Nategh
31e83ddf05
Stop tags being drawn to the max width
2022-08-29 16:47:58 +02:00
nathan
234b2c78b9
Et2SelectCountry: Fix limited size of search box
...
There was a conflict between flag style & search styles. Now using a specific element for the current value flag instead of styling the whole slot.
2022-08-26 11:48:02 -06:00
nathan
b136958425
Et2Select: (multiple=false) When searching and user selects a value, abort search and show all non-matching entries again
2022-08-25 15:51:15 -06:00
nathan
19d4b9a8b6
Make nm filters always the same size (33% each) and show ellipsis when the current value is too long
2022-08-23 11:07:02 -06:00
nathan
6e30a68121
Get automatic search when more than 20 select_options working for all cases
...
StaticOptions, change after init previously didn't work
2022-08-19 11:07:16 -06:00
nathan
d5d9dd6164
Select + search improvements
...
- Use et2-search widget with clearable for search
- Add focus(), which opens & focuses search
2022-08-16 16:46:20 -06:00
nathan
6095b0e2ae
Fix Et2LinkSearch did not always get correct option when it was loaded with a value
...
SearchMixin was incorrectly allowing it as a free entry, so it wasn't being properly loaded by Et2LinkSearch
2022-08-15 10:38:19 -06:00
nathan
ddee9a2b59
Et2Select: Move option rendering into its own function, call it for Et2SelectAccount. This fixes missing option/label in some cases
...
eg: Kanban edit column Add/Remove assigned
2022-08-15 10:31:49 -06:00
Hadi Nategh
a456f509f5
Let the tags styling matches the rest of the framework
2022-08-12 12:46:48 +02:00
ralf
429886139b
change default remoteQuery to send query and options as parameters and additional as GET parameters
...
to support old taglist style callbacks and the select callbacks
2022-08-11 11:24:07 +02:00
ralf
75a263a047
automatic enable search for more than 20 options on Birgits request
2022-08-10 13:29:15 +02:00
ralf
a54c100470
fix email selection after changing selects client- and server-side to no longer send id attribute, but value
...
thought we still accept id, if there is no value
2022-08-10 13:28:48 +02:00
ralf
9ddfba4a24
fix no category was selected (because of numeric value) and color was not shown
2022-08-09 17:24:28 +02:00
ralf
ea0cbd0441
account selection currently only need to use server-side search, for pref "Primary group and search"
...
for all other types the local search is sufficient, as everything is already local!
fix Taglist::ajax_search for accounts to pass the icon to client-side and always set value instead of id
2022-08-09 10:47:57 +02:00
ralf
e7eb9f42e3
fix many errors around et2-select emulating old taglist:
...
- preprocessor: translate attributes autocomplete_url -> searchUrl, autocomplete_params -> searchOptions, and allow options
- sending search query as URL/GET parameter with default of app: <appname>
- handle searchUrl like allowFreeEntries by adding selected result to select_options via createFreeEntries, as they otherwise get removed by fix_bad_value not finding the value in select_options
- change taglist validation (again) to not validate search values
- still requires changes in application code, as taglist always behaved like multiple=true (returning and expecting an array of values) and did automatically search from client-side for it's initial value(s)
--> maybe more changes are in order to NOT require changing application code
--> fixes editing Sieve rules
2022-08-08 17:28:51 +02:00
ralf
79a395e3e6
fix missing scrollbar in longer then visible dropdown
2022-08-08 14:44:37 +02:00
nathan
e8a93ab782
Handle initial value sometimes not set after Shoelace version bump
2022-08-05 11:32:59 -06:00
nathan
36d74dd91f
Select search term after selecting a search result
2022-08-05 11:10:50 -06:00
nathan
045f322bf6
Et2Select changes:
...
- Position search & edit inputs to avoid reflow
- When editing a freeEntry, blurring accepts the current value, before it canceled the edit
2022-08-04 15:50:52 -06:00
nathan
098c2ab3f0
Fix some issues from the shoelace version bump
...
- SlSelect.getItemLabel() not there anymore
- SlSelect.menuItems is now a real list, and fails when parent tries to write to it
- Tabs didn't hide properly when not active, giving a scrollbar
2022-08-04 13:47:16 -06:00
nathan
aabda23bbd
Et2Select: Turn on hoist, we want it on more than off
...
In particular, ACL dialog, but there's a bunch of other places too.
2022-08-03 16:28:18 -06:00
nathan
f7cf372f09
Et2Select: Better handling for when select_options & value get set one after the other
...
This caused selectbox to look empty, even though it had a value since the new menu-items hadn't been created when value was set
2022-08-03 16:04:08 -06:00
ralf
3a92e104da
fix TypeError for account-selection type "primary_group"
2022-07-29 09:24:57 +02:00
ralf
dbdb124c1c
fix not displayed selected account, caused by egw.accounts() returning value as number, not string
2022-07-27 11:46:45 +02:00
nathan
de73241166
Fix historylog multi-part entries did not actually show values
...
Also deals with some issues setting and missing cleaning of select_options
2022-07-26 11:41:07 -06:00
ralf
9f15169ced
convert hierarchical options / optgroups to a flat list and enable search for more than 100 options automatic
...
fixes timezone selection in preferences
2022-07-26 18:57:18 +02:00
nathan
df0b4f3afb
Fix free entries didn't get added properly for static option selects
2022-07-26 09:15:05 -06:00
nathan
c45661bbe4
Et2Select: No horizontal scrollbar on options
2022-07-26 09:12:52 -06:00
ralf
dee28cb53f
noLang only affects options, label, statustext, placeholder, emptyLabel get always translated
2022-07-26 15:46:42 +02:00
ralf
aa80b4027a
fix not translated tooltip, select options and emptyLabel
2022-07-26 15:06:07 +02:00
nathan
3cb8b1ecce
Get select hover border back
2022-07-22 10:44:37 -06:00
nathan
379ceeb3e5
Switch Et2Template to extend SlInput instead of LionInput
...
Also includes changes to how validation messages are handled to use our own stuff
2022-07-21 12:39:00 -06:00
ralf
b9d96ea3e9
change all attribute-names of new et2-* widgets to camelCase
...
only exception is select_options, never used in templates
2022-07-21 17:57:50 +02:00
ralf
d26ed9bfce
fix not displayed r/o et2-select-cat values
2022-07-21 11:50:05 +02:00
nathan
f72b842031
Let search take full size - empty label margin was taking some
2022-07-20 15:03:15 -06:00
nathan
3b147eaa49
Make sure options are clean before trying to merge them. Fixers broken historylog.
...
Also filter out duplicate options.
2022-07-19 14:20:39 -06:00
nathan
2bcebeed42
Add Et2SelectEmail.full_email property. Set to true when you need to see the full, original value
2022-07-19 13:18:51 -06:00
nathan
1a2e691cbb
Fix some bugs with static options being repeated
...
- Select Tab options being sent from server & cached
- Static options not properly set for all selects
2022-07-19 11:47:03 -06:00
nathan
5ee60c0af1
Fix option merge unique filter left out some options
2022-07-19 10:31:45 -06:00
ralf
6ab34234f5
fix error changing app in preferences
2022-07-19 18:10:12 +02:00
ralf
bec95a4a9d
et2-select-tab widget to fix common preferences not storing and some fixes
2022-07-19 15:17:43 +02:00