Commit Graph

47 Commits

Author SHA1 Message Date
ralf
160de9446b fix nothing input into number-field results into 0 causing e.g. timesheet quantity to be always 0 2024-04-23 12:33:04 +02:00
nathan
4d488ef76c Et2Number: Fix number scroll giving NaN 2024-04-17 15:51:27 -06:00
nathan
50352cf36a Api: Fix missing required validation & styling 2024-03-15 14:13:56 -06:00
nathan
b65dca49e5 Etemplate: Fix number widget could not handle separators anymore
Broken by Shoelace update, I think.
2024-03-05 08:26:05 -07:00
nathan
e70974a8e5 Fix Et2Number would no longer validate 2024-02-29 14:10:54 -07:00
nathan
7238356b18 Api: Fix Et2Number did not respect min/max 2024-01-08 14:32:25 -07:00
ralf
a9aefd6a32 disable user-password popup for plaintext passwords (no need) and set disabled, if password field is readonly from server-side 2023-11-02 17:16:34 +02: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
8a1869dcdc passwordToggle - Get the attribute right for Shoelace 2.0.0
It's togglePassword in the current version
2023-08-21 11:54:24 -06:00
nathan
2c5170f15b * Api: Store recoverable password (encrypted) for shares so you don't have to change it when you forget 2023-08-14 13:42:00 -06:00
nathan
afdca98629 Fix up password customfield
- passwd->et2-password custom field type
- passwordToggle attribute (changed name, icon didn't change)
2023-08-02 15:05:33 -06:00
nathan
027fc4dfab Always strip comma regardless of number preference so parse float always works. 2023-04-24 09:42:09 -06:00
nathan
32ce18b832 Et2NumberReadonly: If value is null, just show nothing 2023-04-11 17:08:18 -06:00
nathan
e034557f60 Api: Fix number could not handle comma as decimal separator if different from browser's region. 2023-03-22 10:59:05 -06:00
nathan
e7f10c711c Fix numeric validator on a Et2Number would not pass 2023-03-08 13:28:04 -07:00
nathan
b703e2bfe5 Fix required validator went missing if a regex validator was added 2023-03-08 11:00:27 -07:00
nathan
ced2bc6061 Et2Password: Fix still forced autocomplete="new-password" 2023-02-15 09:21:40 -07:00
nathan
80c5a64316 Et2Password: Autocorrect always off 2023-02-14 13:48:21 -07:00
nathan
d1c6145af0 Et2Password: Some cleanup
- Now passing autocomplete & autocorrect parameters on instead of forcing
 - Only doing the readonly input trick if autocomplete=="new-password"
2023-02-14 13:43:26 -07:00
nathan
16c8fb420b Et2Password: Overwrite render to force input to readonly as a work-around for browsers ignoring autocomplete="new-password"
Doesn't make a difference for me, but easy for others to test if I commit
2023-02-13 15:59:38 -07:00
nathan
c403edc49a Fix incorrect suggested password length 2023-01-05 15:35:04 -07:00
nathan
b2b3caaa64 Fix searchbox triggered change an extra time after pressing Enter key 2022-12-05 10:31:15 -07:00
nathan
2f81a55607 Et2Searchbox: Consume enter keypress in search to avoid triggering anything else. Just start the search. 2022-12-02 09:54:35 -07:00
nathan
ea845b8c4d Et2Textbox: Translate helpText 2022-11-25 11:38:36 -07: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
ralf
2a8aa8e7ae some fixes for vfsSearchUI 2022-08-15 17:38:56 +02:00
ralf
873dcb126f implement deprecated set_suggest to fix JS errors from apps calling it (mail) 2022-07-31 11:43:20 +02:00
ralf
ac0867ab77 implement et2-searchbox and using it in NM
reorganized preprocessor a bit to fix some not replaced size attributes
also pass on constructor args in all Et2Url widgets

There is still a JS error in new searchbox, causing admin searchbox to not render :(
2022-07-22 20:43:09 +02:00
nathan
8a53646188 Fix some textboxes refused to flex smaller than 160px 2022-07-22 09:04:14 -06:00
ralf
888b518e9b implement et2-password web-component replacing passwd legacy widget
enabled Et2InvokerMixin to use an image instead of a textual label
also remove et2_fullWidth CSS class from all web-components in the preprocessor
2022-07-22 15:21:40 +02:00
ralf
817aba5af6 fix custom fields (somehow input widgets had no readonly) and some JS errors
Et2Number still misses styles, thought it extends Et2Textbox
2022-07-22 09:03:54 +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
nathan
d1b5c796dd Expand super.styles 2022-04-06 15:12:39 -06:00
ralf
f76ee3c920 forward min, max and step attribute to input node 2022-03-06 20:44:20 +02:00
ralf
4f93ceb16e Implement et2-number(_ro) and preprocess <(textbox|float|int(eger)|number) type="float|int(eger)" to it in etemplate.php
.
2022-03-06 20:14:53 +02:00
nathan
882f2a913c Implement regex validator 2022-03-02 14:22:19 -07:00
nathan
e048b26235 - Deprecate "needed" attribute in favour of standard "required"
- Fix some required CSS
2022-02-25 10:21:16 -07:00
ralf
c2166c5750 fix select-boxes submit their old value, if they are onchange="1"
@Nathan: Not sure if this is the right fix, but I can't see where we use Lit's FormatMixing, which defines serializedValue (and therefore select-box always returns the old modalValue)
2022-02-21 20:58:56 +02:00
nathan
bc801f9c09 Fix missing import in et2 tests 2022-02-15 12:48:01 -07:00
nathan
3a1d8dfe11 Hide hidden textboxes 2022-02-03 14:41:58 -07:00
nathan
82277c802b Readonly textbox 2022-01-13 15:31:01 -07:00
nathan
ea2004173f Etemplate: Fix readonly was still giving a value 2021-12-10 13:24:06 -07:00
nathan
8a2b717c51 Fix some type issues to make everything play more nicely together
(Not complaining about things from parent classes being missing, mostly)
2021-08-27 11:21:40 -06:00
Ralf Becker
fb69cf39fd replace all "(../)+node_modules/" with bare specifiers 2021-08-27 08:13:36 +02:00
nathan
4218b132f9 - Sort out some type issues to reduce warnings/duplication
- Some tests for textbox
2021-08-26 12:59:13 -06:00
nathan
181b1c03ae Fix imports to work with rollup 2021-08-26 09:20:41 -06:00
nathan
2e712c47bc Move the rest of the WebComponents into their own directory to get ready for tests 2021-08-25 15:35:06 -06:00