nathan
c67e080c2a
Keep select tag icons their original color
2023-03-28 08:45:18 +02:00
nathan
5872b77606
Et2SelectEmail: Fix keyboard navigation in search results
2023-03-27 11:39:39 -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
ee758d3069
Et2Select: Fix keyboard navigation in search results & sidebox category closes
2023-03-23 17:24:08 -06:00
nathan
8de9ffc240
Et2Select: Fix keyboard navigation in search results & sidebox category closes
2023-03-23 17:21:32 -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
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
nathan
b064b84874
Fix some selects with static options did not render their options after ddd72fd51a
2022-07-18 10:41:48 -06:00
nathan
9ebc1e8f15
Et2Select: Avoid JS error if allowFreeEntries=true but editModeEnabled=false
2022-07-15 13:08:57 -06:00
nathan
ddd72fd51a
Et2Select: Fix selects with static options from the server would not consistently keep any additional options set.
...
Creation / lifecycle would sometimes set the extra options several times, and depending on the timing of the server response they might get overwritten, or overwrite the server options. Now keeping them separate to avoid this.
2022-07-15 12:56:24 -06:00
nathan
2571d90691
Follow my own advice and split out content into an overridable sub-template in case we need it
2022-07-15 09:30:12 -06:00
nathan
6d97cb17f4
Et2EmailTag: If email has name in it, or is a known contact, show just the name. Show name + email on hover.
2022-07-14 16:54:18 -06:00
nathan
28a289e5e1
Check if email is known contact immediately, previously waited for a mouseover
2022-07-14 15:34:58 -06:00
nathan
0034a8fe1c
Thoroughly remove search icon, not just hide it.
2022-07-14 14:17:50 -06:00
nathan
53e5e45a5d
Better handling for options with more properties set (title, icon)
...
Previously they were being discarded
2022-07-14 13:16:48 -06:00
nathan
523c785049
Et2Select: Fix manual message was repeated for each selected value. Once is enough.
2022-07-14 11:33:35 -06:00
nathan
2c08542529
Better handling of select validation
2022-07-12 16:40:38 -06:00
nathan
d9f094053f
Et2Select: Ellipsis on tags that are too long
2022-07-12 11:36:18 -06:00
nathan
e8e3d2fc38
Et2Select layout improvements
...
- Better sizing when row is set
- Always show contact / + for EmailTag instead of just on hover
2022-07-12 10:50:11 -06:00
nathan
ad82ea8faf
Et2Select layout improvements
...
- Added RowLimitedMixin to limit rows
- when multiple=true tags take full width by default, but intelligently resize
- No longer showing search icon
- Move Et2EmailTag add / CRM button to left of remove button
2022-07-11 17:27:17 -06:00
nathan
0ca7508cd3
Select bugfixes
...
- If value is changed because it's not a valid option, that might need a refresh
- If empty_label is changed, we need to update that
2022-07-11 11:01:42 -06:00
nathan
ed16ce52a2
Change nextmatch headers to use web components
2022-07-07 13:18:42 -06:00
nathan
19a45164f9
Change static cat select options to always use promise
2022-07-07 10:49:28 -06:00
nathan
dc8809ef87
Et2Select + Search: Always need to bind our own change handler to catch & cancel search textbox changes or they bubble
2022-07-07 10:47:14 -06:00
nathan
4936c0e043
Et2SelectCategory: keep options sent from server
...
For example, addressbook index does this.
2022-07-07 10:06:41 -06:00
Hadi Nategh
7a4193073b
Make sure we don't reevaluate the value when there's already a value set (eg. given object of options with value attribute set)
2022-07-07 11:54:24 +02:00
nathan
46b172c88e
Et2Select: In some cases the change event from the search input was triggering an extra widget change event
2022-07-06 11:22:10 -06:00
ralf
489eb615ac
fix validation in et2-select had problems with value being an array
...
eg. mail.compose always displayed "Invalid email"
running validator now for each array element or "" for an empty array
2022-07-06 10:33:06 +02:00
nathan
761b0ee6cc
Fix for double-submit caused by change handler bound twice
2022-07-05 13:15:32 -06:00
nathan
5dc1c74167
SearchMixin: Actually pass search options
2022-07-05 10:16:05 -06:00
nathan
31e476089c
Et2Select: Fix missing initial value when initial value is not in select_options
...
Our custom setter was not being called for some reason so option cleaning was not being done.
2022-07-04 15:09:16 -06:00
nathan
36c6df9685
Remove InvokerMixin from Et2Select, we cover the functionality in other ways.
...
InvokerMixin still used in other widgets
2022-06-30 09:39:22 -06:00
nathan
7c7b81201f
Implement missing validation error for Et2Select
2022-06-29 11:49:24 -06:00
nathan
0842eb4376
Finish missing doc
2022-06-29 09:24:12 -06:00
nathan
4f4b83733c
Mail: Re-size header labels in display popup, change mail date widget to date-time-today
2022-06-28 10:18:42 -06:00
nathan
bb48e4ecee
Select + search: don't try to open search when readonly
2022-06-24 14:27:49 -06:00
nathan
0f5cb9f9d3
Select styling improvements
...
- support for Shoelace's size property
- relative sizing for EmailTag's add icon height
2022-06-24 14:12:04 -06:00