Commit Graph

107 Commits

Author SHA1 Message Date
ralf
17ee3e7aaf correctly handle irregular alias time_or_date (of date-time_today) and just menupopup both used in mobile view 2022-09-18 08:54:39 +02:00
ralf
a9f8e6fcd5 set correct default search-url for taglist-email 2022-09-17 09:56:57 +02:00
nathan
12ab9b72a1 Fix Et2SelectEmail search queried wrong URL
broken by 5a20f5965e
2022-09-16 10:38:37 -06:00
ralf
5a20f5965e fix preprocessor to set default taglist autocomplete_url/searchUrl, if none is set and change autocomplte_params to searchOptions
an empty autocomplete_url is preserved, as it was used to disable autocomplete
2022-09-14 09:10:16 +02:00
nathan
5cfa26bd7b Fix line break after widget name broke legacy option parser 2022-08-30 13:56:13 -06:00
ralf
3552fa13e7 only convert buttons without label to et2-button-icon 2022-08-23 12:48:48 +02:00
ralf
94cec559d6 need to leave the NM header check for et2-button-icon conversation, to not convert [+ Add] in NM header 2022-08-23 11:18:21 +02:00
ralf
ef599cb219 drop all size attributes (except SL size: small, large, medium), as it messes up too much
you can always set a width manually, if you don't want flex to share the width equally between input fields
Also removed automatic conversation of image to name attribute for new et2-button-icon, so our image setter can switch between our own icons and the SL icon library
2022-08-23 11:12:10 +02:00
ralf
7876fbf710 convert buttons without background_image attribute to et2-button-icon with name="<image-spec>" library="egw" 2022-08-22 22:41:34 +02:00
ralf
95f68a4b3d convert buttons without background_image attribute to et2-button-icon with name attribute instead of image 2022-08-22 22:31:24 +02:00
Hadi Nategh
bcf9d6b937 Do not drop the size attribute if we are setting new shoelace size format 2022-08-22 13:29:17 +02: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
a7fc04631e Add legacy option for link 2022-08-16 09:44:03 -06:00
ralf
3d97fccb61 only rows > 1 switches on multiple
in some places we have rows="1", which des nothing at all previously, removing it now
fixes errors e.g. in AB where the category filter returned [] (empty array) for "All addressbooks" causing a server-side PHP 8 error (Invalid index)
2022-08-11 14:14:33 +02:00
ralf
e38d0709b7 fix <description /> causes all sorts of problems (by replacing it separate)
for <select rows="N" also switch on multiple, as old eTemplate2 did
fixes tracker site configuration did not allow to select more than one staff member
2022-08-10 15:44:48 +02:00
ralf
cb63269598 style former buttons without background-image, which are now just an et2-image with a more fitting height
preprocessor rewriting them adds class imageButton giving the image a height of 20px, like the image in buttons has
2022-08-09 16:54:21 +02:00
ralf
e438f89371 allow whitespace after last attribute eg. <description value="Something" /> 2022-08-09 16:05:22 +02:00
ralf
0e2d1cb15d fix broken index templates 2022-08-09 15:37:15 +02:00
ralf
56f103b21c another change to make preprocessor more tolerant with > in attributes
eg. label="> %s"
fixes Admin >> Applications >> EPL Functions >> CTI
2022-08-09 15:15:17 +02:00
ralf
b9da68dd7f making preprocessor more tolerant with > in attributes
eg. <description value="Use Admin >> Site config"/>
2022-08-09 13:03:14 +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
2017bd8261 remove legacy widgets dropdown_button and favorites 2022-08-07 12:09:02 +02:00
ralf
d9d14f1e2a implement appicon as web-component and remove/replace legacy et2_widget_image with stubs 2022-08-07 11:55:02 +02:00
ralf
7e81b69b74 support empty attribute values 2022-08-06 12:11:41 +02:00
ralf
c3673b1126 ported timestamper to a web-component
also implemented legacy methods activateTab() and setActiveTab() for new tabs widget
2022-08-03 15:48:35 +02:00
ralf
b00136f178 coping with new et2-tab-box widget:
- change preprocessor to always us it
- giving tab-panels again some padding-top
- change et2_grid to NOT set a width, if cell has a colspan
- switching table-layout: fixed off again, as it does not work well with infolog.edit
- remove dropped Chosen, jQuery-UI, MagicSuggest and old blueimp gallery from Gruntfile
- simplified infolog.edit a bit, which gives better results
2022-08-03 10:57:49 +02:00
nathan
d438b4e355 Use webcomponent for tabs
+ handle tabs set by variable better
2022-08-02 14:53:15 -06:00
ralf
0141cba334 fix sharing password in mail.compose 2022-07-29 15:29:51 +02:00
ralf
76b8a783e5 fix date-time_today was not converted to et2-date-time-today 2022-07-28 16:34:25 +02:00
Hadi Nategh
e0b4c5f6af Implements Et2Details webcomponent widget 2022-07-28 15:01:17 +02:00
nathan
7df2876d8a New checkbox webcomponent based on SlCheckbox 2022-07-27 15:51:32 -06:00
ralf
38721229b0 inject preprocessor and (daily) cache-buster for templates in dialog widget
also allow for a xml comment inside the deprecated menulist tag
fixes Admin ACL popup
2022-07-27 17:54:09 +02:00
ralf
e1097d9ea3 fix <button...></button> was removed and reorganized preprocessor to only consider boxes for <overlay legacy="true"> 2022-07-27 11:04:08 +02:00
ralf
9fe7b22d1f use method to parse and serialize attributes 2022-07-26 18:00:12 +02:00
ralf
656c155951 fix button tags over multiple lines were not processed correctly 2022-07-26 17:36:34 +02:00
ralf
79df51dbbb show "Search" as placeholder
fix sometimes not modified <textbox by adding it to ADD_ET2_LEGACY_PREFIX_REGEXP too
2022-07-24 09:31:58 +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
ralf
0044398090 fix preprocessor was not replacing all size attributes with width for web-components 2022-07-22 17:20:44 +02: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
e90ae88a20 fix preprocessor and transformer can't know if application widget is a web-component or a legacy widget
- white-list now records-* like et2-* widgets for camelCase attribute names
- server-side transformer also transforms attribute-names to camelCase for widget-type et2-*
- client-side transformAttributes() also transforms attribute-names to camelCase for widget-type et2-*
--> hopefully this can be dropped, once als widgets are web-components
2022-07-22 11:08:55 +02:00
nathan
e4f8c88e1e Map template attribute size="#" => width="#ex" to avoid conflict with Shoelace size attribute 2022-07-21 11:33:42 -06:00
ralf
39a3ef8183 rename parent_node to parentId, as parentNode is already a DOM property 2022-07-21 19:29:43 +02: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
50eabfd290 fix not changed nextmatch-customfilter and listbox (old alias of select) 2022-07-21 12:10:58 +02:00
Hadi Nategh
5f86313f46 Fix soe of avatar issues:
- fix letter avatar not getting background
- fix default size
- fix letter avatar not being able to set existing src
2022-07-15 13:35:23 +02:00
nathan
ff6d0ef785 Fix handling of modified widget type.
It wasn't working if a Transform changed the widget type to a webcomponent
2022-07-08 09:24:03 -06:00
nathan
ed16ce52a2 Change nextmatch headers to use web components 2022-07-07 13:18:42 -06:00
ralf
2756b9b247 quote double quotes, if replacing single quotes with double quotes
attr='Some "important" text' --> attr="Some &quot;important&quot; text"
2022-07-01 14:39:54 +02:00
nathan
29bd389c36 Don't set attributes on sub-classes - it's not needed, and interferes with taglist-account 2022-06-22 14:33:58 -06:00
ralf
1218cce8bb fix typo "editModeEnabled" 2022-06-22 16:35:05 +02:00