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
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
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
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
ralf
79a395e3e6
fix missing scrollbar in longer then visible dropdown
2022-08-08 14:44:37 +02: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
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
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
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
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
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
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