ralf
c251e2f185
remove removing of empty description and label widgets
...
also make sure option.value is a string, as sl-select seems to use === to calculate matches so option with value 0 is not selected by a value of '0'
2022-06-02 13:45:34 +02:00
nathan
dbcf9e75eb
Set only_app to override value
2022-06-01 09:42:50 -06:00
nathan
7cb13015ae
Fix item class was not correct
2022-06-01 09:41:53 -06:00
nathan
59862bba7b
Fix missing shoelace clear button
2022-06-01 09:26:12 -06:00
nathan
2b68b6cbbe
Work on LinkEntry
...
- fix missing app select
- add clear button
- use request() instead of json() to query server
- add optional class property to SelectOption
- move cleaning select options to its own function so we can use it anywhere
- Use separate render to keep local / remote options separate. Local options stay in select_options.
2022-06-01 09:25:11 -06:00
Hadi Nategh
cbe097b2e3
Replace dnd in toolbar
2022-06-01 16:47:07 +02:00
ralf
0aa813a0ff
got LinkEntry mostly working
2022-06-01 16:05:34 +02:00
nathan
9b0e1b9206
Work on LinkEntry
2022-05-31 13:41:39 -06:00
nathan
c572fa637d
Fix conflict between Et2Select static type options & custom options resulted in losing the type options
2022-05-31 13:41:39 -06:00
nathan
bc045bf0da
Add SearchMixin
...
A little clunky and still missing server-side
2022-05-30 17:05:38 -06:00
ralf
0b547c921d
fix error for typeof this.value !== 'string', eg. number, undefined, ...
2022-05-29 09:53:41 +02:00
nathan
7f1cd117a7
Fix select change event not firing, initial value not showing
2022-05-27 15:39:51 -06:00
nathan
45327d559a
Hoist to escape container
2022-05-27 14:22:15 -06:00
nathan
57e1845c16
Avoid errors if src changes before first render & img is not there
2022-05-27 14:20:35 -06:00
nathan
c212734618
Switch Et2Select to be based on Shoelace select instead of LionSelect
2022-05-27 14:12:31 -06:00
nathan
0963f7d548
Fix src could not be changed after being set
2022-05-27 14:11:35 -06:00
nathan
ac52723ce7
Get Et2Taglist to show initial value when that value is not in select_options
...
(only if allowFreeEntries is on)
2022-05-27 14:11:35 -06:00
nathan
aa20af559a
LinkApp selection
2022-05-27 14:11:35 -06:00
ralf
ad98fb299b
disabling DND in toolbar for now
2022-05-26 17:28:58 +02:00
ralf
b33c13824f
drop jquery-ui, jquery-ui-touch-punch-fix and temp. comment out last usages in framework classes
2022-05-25 21:01:26 +02:00
Hadi Nategh
b8d348d30c
Replace jquery-ui swipe with tapandswipe library
2022-05-25 17:40:54 +02:00
ralf
26c64c0838
* Mail: explicitly apply default font and -size before sending mail
2022-05-23 19:36:04 +02:00
Hadi Nategh
98e959346c
Reduce time complexity of alarms calculation
2022-05-23 15:46:45 +02:00
Hadi Nategh
9f363ad51c
Fix importing interactjs library
2022-05-23 11:35:14 +02:00
nathan
5ed00cc435
Make dialogs resizable again
2022-05-20 11:41:09 -06:00
Hadi Nategh
e8378bd742
Revert unintentional changes from previous commit
2022-05-20 16:05:22 +02:00
Hadi Nategh
ef6cf29ce1
WIP DND:
...
- fix drag-hover not working smoothly
- fix drop zone events being triggered by other draggable items (none et2action draggable)
2022-05-20 16:02:20 +02:00
nathan
f7fc569018
Fix expose CSS & a couple of bugs
2022-05-18 17:33:40 -06:00
nathan
c46f9c5440
Fix up dropdown in toolbar
2022-05-18 14:39:25 -06:00
nathan
7300250dfb
Use webcomponent for favorites widget
2022-05-18 11:30:44 -06:00
nathan
776ce7202a
Et2Favorites
2022-05-18 11:01:27 -06:00
nathan
5edd7dc782
Do a better extending Et2WidgetWithSelectMixin and using what it provides
2022-05-17 10:04:39 -06:00
nathan
5528261050
Fix dropdown took over nextmatch header
2022-05-17 09:40:34 -06:00
nathan
3658d4e7f2
Avoid errors from webcomponent children who haven't had a chance to fully set up yet.
2022-05-17 09:36:56 -06:00
nathan
17d2e2cb5c
Change style of parameter type declaration to make sure it transformAttributes handles it correctly. Objects were still parsed as string, resulting in "[Object object]"
2022-05-13 14:22:44 -06:00
nathan
56def486f0
Switch toolbar to use Et2DropdownButton
...
NB: This doesn't actually work properly yet, there's something that closes the dropdown immediately that I haven't found the source of yet.
2022-05-13 14:19:21 -06:00
nathan
079ebf00b6
Et2DropdownButton: force different handling to escape any container
2022-05-13 14:12:42 -06:00
nathan
9e78e35fd3
Et2DropdownButton now working & looking like it belongs
2022-05-13 11:51:29 -06:00
nathan
ce922c8816
Fix Et2Widget.createElementFromNode() used the wrong variable to determine widget class, and missed out on modifications
2022-05-13 09:39:07 -06:00
ralf
6f2a93ef0a
fix sometimes not working click handler in buttons
...
eg. admin.index or admin.acl
2022-05-13 17:18:15 +02:00
nathan
b69c5e7cbf
Fix IDE errors without changing internal data type
2022-05-13 09:07:47 -06:00
nathan
de0c9aa3f4
Fix incorrect type issues on options
2022-05-13 09:02:22 -06:00
ralf
ace84d7953
fix not set image (if it was set to "") and missing onclick attribute
...
thought some button click-handler are still not working
2022-05-13 16:54:02 +02:00
ralf
273fe9a28a
diverse fixes loading no longer existing legacy widgets like description
2022-05-13 15:32:36 +02:00
ralf
ac5932240b
remove old expose view / blueimp gallery and all widgets which have been using them:
...
- new web-components are unconditionally replacing them via the preprocessor
- some widgets (eg. et2_description) could not be removed as other legacy widgets are extending them, but they are no longer registered
- as there are many places using et2_createWidget('description', ...), et2_description returns now web-components for no longer existing widgets
2022-05-13 11:59:13 +02:00
nathan
8172f6e72d
Et2DropdownButton WIP
2022-05-12 15:22:49 -06:00
nathan
9942ec9f08
Link fixes
...
- Fix links added to not yet saved entries were not displayed in link lists
- Adjust LinkList column sizes
2022-05-12 10:54:29 -06:00
nathan
b9d145a40b
Link fixes
...
- Fix actual Expose didn't work on links themselves
- Adjust delete button / context menu caption to match file/link
2022-05-12 10:08:59 -06:00
nathan
d23b7c1a51
Link fixes
...
- Enable link webcomponents in etemplate.php
- Fix widget ID got overwritten
- Put title into light DOM for easier styling
- Styling
2022-05-11 15:10:09 -06:00
nathan
875a3996aa
WIP on Et2LinkList, should be working now
2022-05-11 14:00:23 -06:00
nathan
b735b0f218
Fix Et2Description.ts appeared the same if you changed its value via JS
2022-05-11 13:58:01 -06:00
nathan
b88267160e
WIP on Et2LinkList
2022-05-11 10:35:47 -06:00
nathan
07ced8046d
WIP on Et2Link & Et2LinkString
2022-05-11 10:35:47 -06:00
ralf
8d29ad1841
more cleaning up commented out code
2022-05-11 16:16:50 +02:00
ralf
53d9abcbd9
cleaning up the TinyMCE code a bit now
2022-05-11 15:51:26 +02:00
ralf
b7d3b7408e
WIP get TinyMCE to respect users preferred font and -size
2022-05-10 18:46:12 +02:00
ralf
5791ef0117
trying "harder" to set users default font and -size in TinyMCE
2022-05-09 18:37:56 +02:00
nathan
66ee3687b6
Fix widgets couldn't change statustext once set
2022-05-09 10:02:07 -06:00
nathan
daa324e948
Fix button wouldn't give its image
2022-05-09 09:59:13 -06:00
Hadi Nategh
87f77a52ea
Fix seek to a new time in youtube video does not work when pause action happens instantly after it
2022-05-09 11:25:33 +02:00
ralf
e82387c15e
adding automatic conversation to et2-vfs-mime, fix gallery indicators to use images again and some CCS fixes
2022-05-07 13:31:46 +02:00
nathan
816ab87f13
Et2VfsMime added as WebComponent
2022-05-06 15:07:07 -06:00
nathan
797c615060
Move Et2Box into Layout
2022-05-06 11:57:53 -06:00
nathan
5a324e448a
Define some system-wide CSS variables that can be used anywhere, set error color
2022-05-06 11:49:30 -06:00
nathan
ca563cf8fb
Use the same style for webcomponent validation messages as legacy messages, update both to latest webcomponent style.
2022-05-05 15:40:28 -06:00
nathan
063c772fbb
Et2DescriptionExpose, used in Mail app
2022-05-05 13:48:39 -06:00
ralf
7dc959c223
automatic convert <(image|description) expose_view="true" to <et2-*-expose
2022-05-05 19:07:44 +02:00
nathan
632c40fbb7
Et2ImageExpose, used in Resources app
2022-05-05 08:51:48 -06:00
Hadi Nategh
a8bcdd88b0
Get rid of jQuery.Color from jquery-ui
2022-05-05 15:55:49 +02:00
ralf
3eaed09185
fix not working et2-date-since and rename et2-date-time_today to et2-date-time-today
...
create a new method egw.getTimezoneOffset() return current offset according to user preferences on server-side, like (new Date).getTimezoneOffset()
2022-05-05 11:38:48 +02:00
nathan
efcd5bbe51
Et2ImageExpose
2022-05-04 17:31:42 -06:00
nathan
3c6c2aec1a
Don't break everything if something goes wrong cloning webcomponent for nm row
2022-05-04 17:27:58 -06:00
nathan
54b2ac54b1
Start on Expose mixin
2022-05-04 11:58:04 -06:00
Hadi Nategh
eecad5f70f
Set back focus to the first field in form
2022-05-04 14:14:48 +02:00
Hadi Nategh
9cdfc93a52
Fix stolen focus on egw input fields
2022-05-04 12:50:29 +02:00
nathan
10af4f7514
Historylog + webcomponents
...
- historylog widget now uses webcomponents for timestamp & user, and whenever possible for values
- History::get_rows() formats customfield date/date-time values as needed
- implement setDetachedAttributes(), if nextmatch & historylog are calling them on webcomponents, might as well use that to set what they pass
2022-05-03 11:01:42 -06:00
Hadi Nategh
ed5e7414ac
* Mail: Fix htmlEditor does not include styling on each tag causing mail content sent with no styling
2022-05-03 15:43:03 +02:00
ralf
f72497db13
HistoryLog: use new Et2DateTimeReadonly widget
...
thought set_value of web-component get not called and nothing is displayed therefore
2022-05-03 11:26:55 +02:00
nathan
215dc21ec5
Avoid error if label is missing
2022-05-02 17:43:10 -06:00
nathan
bbb6444dce
If caller wanted to iterate over all et2_widgets (default), include all Et2Widgets as well
2022-05-02 17:41:35 -06:00
nathan
cff1671f6f
Et2Date: Handle formatting full month d-M-Y
...
Maybe we just pass all formatting off to flatpickr?
2022-05-02 17:10:07 -06:00
nathan
b0a57a05fd
Calendar refactors:
...
- Remove some more jQueryUI.datepicker usages
2022-05-02 15:23:03 -06:00
ralf
3777ba7691
fix not working callback syntax with egw.jsonq() and changing callback to promise (after the fix)
2022-05-02 16:22:12 +02:00
ralf
dc784800b7
loading new Et2Date* instead of dropped et2_date* widget, thought r/o variants in nextmatch are still not working
2022-05-02 13:53:24 +02:00
ralf
21def67f83
fixed a couple more calls to egw.link_title() without 3rd parameter
2022-05-02 11:43:51 +02:00
ralf
74ad3ba7b0
change egw.jsonq() and egw.link_title() to return promises
...
* egw.jsonq() now always returns a promise like egw.request(), still supporting old callback syntax
* egw.link_title(_app, _id, _callback, _context, _force_reload) supports boolean values for _callback (to not break existing code)
- false: just a cache lookup (like current call with just 2 parameters), returning null, if no title is cached, or the title
- true: always return a promise, which might already be resolved, if title was cached
- function: also returns a promise and calls the callback
--> calling egw.link_title(_app, _id) without 3rd parameter is deprecated now (gives a console.trace), to be changed in future to always return a promise, unless called with false, to just return a cache-lookup
* Et2SelectAccountReadonly and et2_link_widget is changed to use the new/updated syntax with promises
2022-05-02 11:27:33 +02:00
ralf
e4c2432f4c
replace jQuery.ui.keyCode.X with EGW_KEY_X
2022-04-30 10:33:07 +02:00
nathan
f54c7f40bb
Improve holidays() return documentation
2022-04-29 14:37:52 -06:00
nathan
b44f4ea30d
Move holidays to its own file, show holidays in all date selection calendars
2022-04-29 14:37:52 -06:00
nathan
de2dade286
Et2SelectReadonly: Make sure we're dealing with string value
2022-04-29 14:37:52 -06:00
ralf
baf07a4a2c
only load localization, if we have one
2022-04-29 17:40:43 +02:00
nathan
e5f238584e
Et2Date: Avoid error localizing English
2022-04-29 09:14:51 -06:00
ralf
ef7c175814
remove jQueryUI DateTime picker and splitter and use them also for eTemplates marked as legacy
2022-04-29 17:05:43 +02:00
Hadi Nategh
c707af32b6
Add hideOnEscape and noCloseButton options into ET2Dialog
2022-04-29 14:28:43 +02:00
nathan
63b2755dbf
Et2Date: Add localization
2022-04-28 15:46:39 -06:00
Hadi Nategh
36f41a9470
Handle appendTo attribute used in legacy dialog properly
2022-04-28 18:00:37 +02:00
nathan
278f75546a
Fix submit proceeded even if legacy widget failed validation
2022-04-27 11:56:03 -06:00
nathan
1c42668a97
Change sidebox calendar from jQuery to webcomponent / flatpickr
2022-04-26 15:27:49 -06:00
nathan
0017b78b53
Et2Date: Add support for inline dates & passing a format to parseDate
2022-04-26 15:24:58 -06:00
Hadi Nategh
fcf195cf47
Fix toolbar menulist doesn't get closed after clicking away from it
2022-04-26 14:53:01 +02:00