Commit Graph

130 Commits

Author SHA1 Message Date
ralf
434ee70b44 new web-component et2-groupbox based on et2-details
also modernized et2-details code a bit using decorators
2024-08-14 15:25:02 +02:00
ralf
aadaa28f86 new et2-vfs-name widget which does NOT allow to put (back)slashes in filenames
@nathangray client-side validation somehow does NOT work
2024-07-31 11:27:23 +02:00
ralf
1913b66b2c replace no longer used and existing <et2-tree-multiple.../> with <et2-tree multiple="true".../> 2024-04-16 09:17:53 +02:00
ralf
227bb91c5f remove Et2SelectEmail replaced by Et2Email incl. using preprocessor to replace all usages 2024-04-08 14:29:59 +02:00
Ralf Becker
e9f5a1efc6 Update etemplate.php
some templates use options="<number>,..." with <number> > 1, instead of multiple="true"
2024-02-13 10:56:42 -07:00
Ralf Becker
d2e029c504 replace <tree(-cat)? multiple="..." with <et2-tree(-cat)(-multiple) and fix attributes 2024-02-13 10:56:33 -07:00
nathan
288c0c39e9 Switch on new Et2VfsSelect widget(s)
includes mail
2024-02-12 10:32:28 -07:00
nathan
aa2570f2ea * Api: Fix custom etemplates were still used after deletion 2023-06-08 11:32:03 -06:00
ralf
044538ae09 ignore tags for select-country, it was never used to get multiple countries
fixes error in addressbook edit, as an array is returned instead of string with country-code
2023-03-17 12:53:34 +01:00
nathan
e532ca176b Add Et2TabsMobile that has special rendering for tabs on mobile 2023-02-21 10:31:38 -07:00
ralf
330ffe73df fix somehow wrong legacy-options for customfields widget 2023-02-06 16:31:28 +01:00
ralf
7eaebce7fd fix preprocessor to NOT add id attribute to vbox used in mobile template instead of tabbox 2023-01-19 08:26:06 -06:00
nathan
8195adfa85 Keep et2-link app attribute if set 2023-01-12 10:01:00 -07:00
ralf
5d97522729 disable legacy-options conversation for nm-customfilter as it breaks infolog and addressbook index templates 2023-01-04 11:23:23 -06:00
ralf
fefe82162e WIP converting filesystem templates to new syntax
- basically commiting what the preprocessor currently generates for the client-side
- server-side need to understand new syntax (et2-prefix and camelCase attribute-names) too
- preprocessor can now be called as cli to either echo-out the new template or replace in-place
- for now only modified edit-templates of addressbook, infolog and timesheet
- setting a new (not yet existing) DTD
2023-01-01 11:49:31 -06:00
ralf
06cb34974a fix error "Can not parse attributes ''" in smallpart.course
thought preprocessor can currently not kope with nested details tags!
2022-12-08 12:27:43 +01:00
ralf
b3f1312f01 modify <details title="..." --> <et2-details summary="..." 2022-11-18 13:49:19 +01:00
ralf
aba1c94b60 wrap details widgets in a vbox, so it's a single widget like the tabbox, incl. tabbox's attributes 2022-11-08 20:07:45 +01:00
ralf
91bff934b2 replace tabs in mobile template with details widgets 2022-11-04 15:38:22 +01:00
ralf
34b2bc135c fix preprocessor to also change <textbox rows="X" to <et2-textarea rows="X" 2022-10-20 08:21:28 +02:00
ralf
d8e54c72c8 only set (default) searchUrl for regular taglist or taglist-email, or if a non-empty autocomplete_url was given 2022-09-30 15:36:40 +02:00
ralf
73de0c5bd5 fix <textbox type="passwd" was not converted to <et2-password 2022-09-28 10:22:50 +02:00
ralf
6c9d6fd13f only remove size attribute from input like widgets: textbox, number, url-*, vfs-*, leave it for all others like *avatar 2022-09-22 13:12:56 +02:00
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