nathan
38a3af6981
Set modelValue if the inputWidget has a _callParser() method.
...
This makes sure the internal modelValue is set when we call set_value(), and preserves value if the widget is re-connected (like Et2Dialog does)
2022-03-24 09:46:27 -06:00
nathan
53a7405a61
Et2Dialog: Adjust header style
...
added a line below header, title slightly larger, adjusted padding
2022-03-23 14:50:00 -06:00
nathan
be6b49ca21
Remove debugger
2022-03-23 14:48:45 -06:00
nathan
db27086fe5
Change another reference to et2_dialog in nextmatch
2022-03-23 13:43:23 -06:00
nathan
79fab93351
Fix missing button labels from legacy dialog
2022-03-23 13:42:12 -06:00
nathan
9693cfe538
Switch nextmatch print & select all to using Et2Dialog
2022-03-23 13:28:15 -06:00
nathan
db7c68bdc7
legacy dialog - Fix missing buttons
2022-03-23 13:22:14 -06:00
nathan
6d538f29f0
Fix legacy dialog gave error without parent
2022-03-23 13:02:12 -06:00
nathan
cdbdf53d46
Et2Dialog: Make sure value has a content before loading template, otherwise we get an error from etemplate2
2022-03-23 13:02:12 -06:00
Hadi Nategh
d13d039349
Fix Taglist new free entry replacing other selected options
2022-03-23 18:16:19 +01:00
nathan
f5c1e21ee8
Switch placeholder widget to using Et2Dialog
2022-03-23 11:01:36 -06:00
nathan
39baec10ab
Add some documentation to legacy dialog
2022-03-23 11:00:41 -06:00
nathan
2c92ddfe92
Et2Dialog: Fix template's DOMContainer ID still had .xet in it
2022-03-23 10:53:00 -06:00
nathan
85e247d4d6
Legacy dialog
...
- Fix load event was not bubbling through to the listener
- Fix value was missing
2022-03-23 09:50:11 -06:00
ralf
2f616281e0
fix click eg. in mail on attachment as long as we have no blueimp/expose
2022-03-23 15:26:16 +02:00
nathan
3c4f85155d
Get legacy et2_dialog working with createWidget()
2022-03-22 17:21:59 -06:00
nathan
56ed4e1267
Et2Dialog: Fix incorrect properties declaration
2022-03-22 17:19:53 -06:00
nathan
322fa3c8f4
Get nm_action dialogs working
2022-03-22 15:49:42 -06:00
nathan
8a033b6b9a
Fix sometimes missing namespace causing some child widgets to have their value in the wrong place
2022-03-22 15:46:39 -06:00
Hadi Nategh
f4e877bcdf
Adapt vfs dialogs with new Et2Dialog widget
2022-03-22 12:50:42 +01:00
nathan
ff274c2bc8
Et2Dialog changes
...
- Add some margin, border & box-shadow
- Smaller header & close button
2022-03-21 14:51:43 -06:00
nathan
b600059b68
Et2Dialog changes
...
- improve documentation
2022-03-21 09:52:09 -06:00
nathan
ff471946b5
Make et2_widget_dialog a stub that extends Et2Dialog so 3rd party apps might still work
2022-03-21 09:50:58 -06:00
Hadi Nategh
10453c41e3
Give maximum available height to BOX's parent node
2022-03-21 16:21:55 +01:00
nathan
e9a381da69
Et2Dialog changes
...
- Set template's DOM ID so CSS can style it
This is the best way to set [minimum] dimensions, though you can set width & height on the Et2Dialog.
2022-03-21 08:46:03 -06:00
Hadi Nategh
d7400503ac
Use data value instead of index for close/edit handling as indexes might get change
2022-03-21 14:13:45 +01:00
nathan
9e989596c2
Et2Dialog changes
...
- Fix Et2Dialog.show_prompt() incorrectly returned too much, should be just the prompt value
2022-03-18 14:40:54 -06:00
ralf
a45d26511b
fix not set invoker for expand_multiple_rows attribute
2022-03-18 22:26:15 +02:00
nathan
fefc822d9c
Et2Dialog changes
...
- Fire a close event on close
- When closing, clear the template (if present)
2022-03-18 14:05:57 -06:00
Hadi Nategh
53ecdba510
WIP Et2Taglist: trying to get allowFreeEntries feature working
2022-03-18 19:13:30 +01:00
ralf
5650e8c616
ignore click action for an empty value
2022-03-18 09:53:09 +02:00
nathan
255add7d98
Api: Switch from et2_dialog to Et2Dialog
...
Might be some I missed or can't change just yet
2022-03-17 16:18:39 -06:00
nathan
0479671ac4
Et2Dialog changes
...
- implement Et2Dialog.long_task()
- change to use Et2Dialog._buttons.label instead of Et2Dialog._buttons.text for better consistency
2022-03-17 15:21:15 -06:00
nathan
4fd50db1c3
Et2Dialog - only try to add an image to button if one is specified
...
Avoids error in button set image()
2022-03-17 13:06:29 -06:00
nathan
56571c6fc7
Et2Dialog changes
...
- Fix some event listeners
- Add getCompleted() promise that resolves when the dialog closes.
- Et2Dialog.alert() returns the promise directly, other static methods return the Et2Dialog to avoid breaking existing code
You can now wait for a dialog with:
Et2Dialog.show_prompt(null,"Name?").getComplete().then(([button_id,value]) => console.log(value));
or using async:
[button_id, value] = await Et2Dialog.show_prompt(null,"Name?").getComplete();
if(button_id === Et2Dialog.BUTTON_OK) {...}
2022-03-17 13:03:47 -06:00
ralf
ee36e83cbb
fix Et2Date.set_value('') did not clear
2022-03-16 23:21:15 +02:00
ralf
b9cca9c5ff
using set/get select_option plus a set_selection_options marked as deprecated
...
- get_select_options seems to be nowhere in use, so I did not implement it
- Et2Select* widgets with static options assign them in their constructor (like the r/o ones)
- removed a jQuery.proxy call, which we dont want in new code
2022-03-16 22:36:43 +02:00
nathan
5fdc594d00
Get templates working in Et2Dialog
2022-03-16 13:53:50 -06:00
nathan
c120f13466
Get separate egw object & some styling sorted out
2022-03-15 14:10:53 -06:00
nathan
ed72d63522
Add missing label property
2022-03-15 13:48:58 -06:00
Hadi Nategh
5dd67f2d3d
Fix alarm not being fired sometimes
2022-03-15 18:56:47 +01:00
Hadi Nategh
1d559e9263
Allow multiple alarms being set for countdown widget
2022-03-15 16:58:05 +01:00
ralf
89ebb61f76
implement full_email attribute for et2-url-email with changed default of false
2022-03-15 14:39:42 +02:00
ralf
7a749a8f54
fix instead of all only last option was selected sometimes
...
because multiple property was not yet synced to DOM node
2022-03-15 11:43:55 +02:00
nathan
2c1f9b2579
WIP on dialog
...
You can try it with
et2_dialog.show_dialog(null, "This is the message", "Title")
2022-03-14 17:07:25 -06:00
ralf
293e9f2fc6
Implement multi-select value as string[] or comma-separated
...
Had to overwrite some formMixin methods, which considered everything not string as invalid and set/get value to do the right thing for multi-select
Not sure if code should go to Et2WidgetWithSelectMixing to be shared with TagList ...
2022-03-14 21:13:47 +02:00
ralf
940e1b12c1
Implement expand_multiple_rows attribute for Et2Select using Et2InvokerMixin
2022-03-12 14:49:25 +02:00
nathan
4cf4c5090a
Remove extra image declaration, now using auto-generated internal image property
2022-03-11 14:36:50 -07:00
Hadi Nategh
3705448aff
Fix filemanager's view no longer works
2022-03-11 14:22:04 +01:00
ralf
dd7ebad1e7
Implement et2-select-account
2022-03-10 20:20:32 +02:00
ralf
6ebd09b275
size and align icons for url-widgets
2022-03-10 18:14:28 +02:00
Hadi Nategh
1be92b5b61
Style MixinInvoker widgets
2022-03-10 15:39:54 +01:00
ralf
9285b87a92
implement multiple attribute for et2-select reflecting it to selectbox
...
fixing TypeError set_multiple is not a function
2022-03-10 15:48:27 +02:00
ralf
0099b094b9
Fix TypeError: Cannot set property options
2022-03-10 14:57:00 +02:00
ralf
782958d7fc
Fix/remove email validator and implement trailing_slash attribute
2022-03-10 14:26:06 +02:00
ralf
ebaebf65ca
Implement et2-url-* incl. r/o
...
ToDo: implement allow_path and trailing slash attributes for et2-url
2022-03-10 10:15:59 +02:00
nathan
f34d7f4d9c
Solution for boolean attributes that need row data: Use the default but hold on to the value that couldn't be parsed, defer processing until later.
2022-03-09 14:23:45 -07:00
nathan
944c0ad68e
Add disabled to detached attributes
2022-03-09 10:17:59 -07:00
nathan
4d25d2ea8b
Wait on parsing boolean attributes with ${row} if we're not actually in a row, same as string attributes.
...
Fixes boolean attributes don't follow $row values
2022-03-09 10:16:40 -07:00
nathan
d8517edafa
Fix template load failed if it didn't had a template to load, now just resolving quietly.
...
Fixes calendar sidebox integration stalled eTemplate load
2022-03-09 09:02:36 -07:00
Hadi Nategh
7293b34493
Fix broken egwActionObject import, import statement being removed accidentally in f7f4053d1a
2022-03-09 11:21:06 +01:00
ralf
5fd4423775
fix indention making debugging wired otherwise
2022-03-09 09:43:39 +02:00
nathan
f7f4053d1a
Swap Promise for jQuery.Promise in loadingFinished() & doLoadingFinished()
...
This lets us add LitElement's updateComplete Promise into the list of things to wait for, and solves the problem of app init code being run before widgets are complete.
https://lit.dev/docs/components/lifecycle/#reactive-update-cycle-completing
2022-03-08 15:11:32 -07:00
ralf
1b74f1f1a7
WIP URL widget for email and phone (not yet styled)
2022-03-08 20:20:06 +02:00
Hadi Nategh
e9fbc81565
WIP Taglist: implements get and set value
2022-03-08 16:19:03 +01:00
Hadi Nategh
7bdfceda87
WIP Taglist:
...
- fix dropdown menu not positioned correctly
- fix more styling
2022-03-08 09:24:18 +01:00
nathan
d0926226cd
Fix set_min() & set_max() for Date
2022-03-07 14:33:09 -07:00
nathan
734401c6cd
Get Date widget to use slots for better styling, also fixes re-initializing when not needed
2022-03-07 13:33:13 -07:00
Hadi Nategh
db4d0295b8
WIP Taglist: implement edit buttton
2022-03-07 17:36:15 +01:00
nathan
1671e69603
Fix required dates gave missing error even if they had a value
2022-03-07 09:14:15 -07:00
Hadi Nategh
bb1e9d2c30
WIP Taglist:
...
- fix tag style
- fix close button
- allow to open menu when there's fixed sel_options
2022-03-07 16:32:39 +01:00
Hadi Nategh
285b71b6aa
WIP taglist: Fix backspace doesn't remove selected tags
2022-03-07 11:41:02 +01: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
ralf
3b896e0919
deprecated and replace attributes: needed-->required, blur-->placeholder in preprocessor
...
remove client-side code for them and enable translation of placeholder
2022-03-05 15:22:45 +02:00
nathan
aa2dc5c8f0
Maybe stop the disconnected month selectboxes?
2022-03-04 15:42:27 -07:00
nathan
0e4d32ea20
Get some neglected tests working again
2022-03-04 15:37:22 -07:00
nathan
4bd4402e28
Get taglist selected options showing up
...
Note the [internal] event listener bound in Et2Taglist.connectedCallback() that re-renders the TaglistSelection every time the taglist's [internal] value changes
2022-03-04 13:41:37 -07:00
nathan
2d3e3f86e1
Call requestUpdate() to pass on the new "multiple" value
2022-03-04 09:19:17 -07:00
nathan
4445b11a07
Make sure the option tag is included & registered as a webcomponent
2022-03-04 09:09:16 -07:00
Hadi Nategh
77a67d892b
WIP Et2Taglist wiget:
...
- Make the taglist a Lion-combobox
- Use templateOptions for different taglist types
2022-03-04 14:23:19 +01:00
nathan
1893a2c7fe
Fix duration in infolog list
2022-03-03 14:14:26 -07:00
nathan
aff71549a2
Move some code out of Et2Select into parent mixin for better re-use
...
Any child that has selectbox type functionality (extends Et2WidgetWithSelectMixin) needs to implement:
- _optionTargetNode() : HTMLElement
- _optionTemplate(option : SelectOption) : TemplateResult
2022-03-03 10:38:56 -07:00
nathan
882f2a913c
Implement regex validator
2022-03-02 14:22:19 -07:00
Hadi Nategh
d093a7648c
Remove unintentional committed ET2TaglistEmail file
2022-03-02 16:31:07 +01:00
Hadi Nategh
3112dc1399
WIP of Et2Taglist implementation
2022-03-02 16:28:45 +01:00
ralf
89613dd368
fix et2-date-duration showing NaN:NaN in timesheet
...
boolean attributes should not have a default of true, because DOM does NOT reflect false and we need to reflect for use in NM
--> changed default for select_unit for r/o duration to false and set it in timesheet.index to true
--> changing it for r/w too would require a lot of xet files to be updated (we don't need reflection there)
2022-03-02 11:02:24 +02:00
nathan
d7adf26ce6
Implement splitting up widget label using %s
2022-03-01 16:56:58 -07:00
nathan
7eca91e83a
Implement clearing manual validation error messages
2022-03-01 16:55:55 -07:00
nathan
3c9b9540e4
Fix copy/paste error - Et2DateDuration does not have an options property to access
2022-03-01 16:50:05 -07:00
nathan
00f7b51fbd
Hopefully prevent double-bind of input change
...
Should fix addressbook contacts/organisation filter
2022-03-01 15:15:24 -07:00
nathan
ae700fb391
Fix distribution list filter did not change filters when its value changed
2022-03-01 11:22:47 -07:00
ralf
5ff96e7818
fix last option select instead of empty label or any other option
...
eg. "shared by me" in Addressbook instead of "All contacts"
caused by this._inputNode not available when set_value was called
2022-03-01 18:29:13 +02:00
ralf
c70886f106
fix invalid can be null and then gives an error
2022-03-01 16:52:50 +02:00
ralf
36e3bd5de0
fix typo modalValue instead of modelValue to get validation (required) working
...
Had to overwrite formatter as it gave an error for accessing not yet set _inputNode
2022-03-01 16:51:40 +02:00
ralf
ac408f4eef
Change handler setting modelValue for validation
...
setting it in getValue() alone does not remove validation message direct after entering a date
2022-03-01 16:09:27 +02:00
ralf
185e0eaf95
fix error, if widget has no change handler
2022-03-01 14:45:38 +02:00
Hadi Nategh
2d6770ebfa
Fix missing Et2WidgetWithSelect class
2022-03-01 13:31:13 +01:00
Hadi Nategh
08549e25da
Make Et2WidgetWithSelect a Dedup Mixin in order to make it available cross widgets
2022-03-01 12:35:33 +01:00
nathan
f8b1fcf412
Try and get nextmatch header change working with web components
2022-02-28 14:09:09 -07:00