nathan
81378fe3a5
Calendar: Fix recurring event prompt did not have labels or icons on buttons
2022-08-23 08:54:31 -06:00
Hadi Nategh
83dc0a95f8
Don't let button-icons grow/shrink
2022-08-23 12:42:10 +02:00
nathan
0775fd1a4e
Icon improvements:
...
- If Et2ButtonIcon image does not resolve to a egw image, treat it as a Shoelace icon name
- Add egw images as an icon library for Shoelace
eg: <sl-icon library="egw" name="5_day_view"/>
2022-08-22 14:06:23 -06:00
ralf
ffb8354728
move label stuff to Et2Button as Et2ButtonIcon does not need it
2022-08-22 22:00:18 +02:00
nathan
1d5467faab
Et2ButtonIcon: Fix icons didn't show
...
Must use SVGs here
2022-08-22 13:45:06 -06:00
ralf
263f2c867f
re-add lost label getter and setter to fix not shown labels in buttons
2022-08-22 20:24:40 +02:00
nathan
f0dcc1685d
Move our button code into a mixin and extend sl-button to our current et2-button and sl-icon-button to a new et2-button-icon.
2022-08-22 08:44:54 -06:00
ralf
458519800d
removing tiny left padding and big right margin from [+] button in calendar NM header
2022-08-11 11:15:22 +02:00
Hadi Nategh
301d38796f
Still set width for buttons with only icon and remove the extra left padding in this case as we want the button and icon be square
2022-08-08 11:57:02 +02:00
Hadi Nategh
2593acf303
Let the button with no label set and only icon be square
2022-08-05 16:25:47 +02:00
nathan
44c331f69d
Fix buttons with image but no label didn't always size correctly
2022-08-03 11:33:37 -06:00
nathan
0f729b7a1b
Center image in button when it has no label
2022-08-03 10:10:28 -06:00
ralf
bd555ec4d1
fix JS error, if we have no image and no _iconNode
2022-08-03 16:27:23 +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
nathan
40e3d6e459
Better sizing for buttons with only image, no label
...
Doesn't skip effects of flex though
2022-08-02 16:38:52 -06:00
Hadi Nategh
66394b3e29
Take images with egwURL format into account
2022-08-01 16:02:50 +02:00
nathan
6bf74dcb11
Fix buttons that have icon & label did not always get both
...
Statistic submit cancel button, for example
2022-07-28 13:06:18 -06:00
ralf
47817e4df5
fix size and alignment of image only button
...
padding-left: 1px also looks nicer for buttons with image+label
2022-07-28 10:08:17 +02:00
nathan
e9f0a5216b
Fix missing button images when image was not set before first update
2022-07-27 13:03:44 -06:00
ralf
1b9e2367e1
fix stalled save in AB caused by no _labelNode / label set
2022-07-27 12:10:39 +02:00
nathan
2394831083
Switch Et2Button base from LionButton to SlButton
2022-07-26 16:23:27 -06:00
nathan
fff8048505
Remove debug
2022-06-20 09:05:06 -06:00
nathan
45bdc86203
Et2Button: Fix hideOnReadonly still showed up when readonly
2022-06-16 13:59:31 -06:00
nathan
ef0a549d1c
Et2Button: fix unable to clear image once set
...
It would always show a broken image instead.
2022-06-06 13:26:44 -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
nathan
daa324e948
Fix button wouldn't give its image
2022-05-09 09:59:13 -06:00
nathan
2ba299f876
Change buttons that used to be just an image to be just an image
...
- Remove Et2ButtonImage, it's not needed. Buttons without labels look the same
- Add Et2Image to take its place
- Change etemplate modifier to use Et2Image for buttononly
- Some styling for mail account placeholder button
2022-04-08 13:03:20 -06:00
nathan
70c5cedec7
Better styles for disabled buttons
2022-04-07 16:45:24 -06:00
nathan
3f86e98257
Deal with et2-button-image showing label
2022-04-07 16:24:45 -06:00
nathan
3c28d4b9a9
Et2Button: change doSubmit (default false) to noSubmit (default true) because of nextmatch complications with boolean properties
2022-04-06 14:48:57 -06:00
nathan
57e231aced
New Et2ButtonImage that shows only image
...
Also doesn't stretch like the others do.
2022-04-05 09:15:08 -06:00
nathan
a763b84be4
Et2Button properties hideOnReadonly, noValidation
...
Added hideOnReadonly, default false. Disabled/readonly buttons are now visible but disabled, unless you set hideOnReadonly="false" to get previous behaviour.
Added noValidation, default false. It's just passed to etemplate2.submit() as before
2022-04-04 16:24:01 -06:00
nathan
f714729c26
Dialog / button fixes
...
- Fix vfsSelect did not close (seen in collabora save as)
- Turn off destroy_on_close, vfsSelect was destroying opening session (seen in mail compose 404)
- Add doSubmit property to Et2Button, dialog no longer gives error on every button click
2022-03-25 09:55:02 -06:00
nathan
ed72d63522
Add missing label property
2022-03-15 13:48:58 -06: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
nathan
d7adf26ce6
Implement splitting up widget label using %s
2022-03-01 16:56:58 -07:00
nathan
bc801f9c09
Fix missing import in et2 tests
2022-02-15 12:48:01 -07:00
Hadi Nategh
c7549daa54
Avoid setting an empty default image
2022-01-31 12:17:35 +01:00
Hadi Nategh
4cf9c109d8
Make the ET2Button container accepting external css rules using ::part to get buttons in NM in shape (This should be avoided after NM is a WC)
2022-01-24 13:36:05 +01:00
Hadi Nategh
5904ac11b0
Fix button widget can't deal with app specific images e.g. mail/navbar
2022-01-24 11:58:06 +01:00
Hadi Nategh
d02afcbe54
Add more general styling to buttons
2022-01-20 17:34:38 +01:00
Hadi Nategh
c8e16dd3fb
Fix broken alignments in button icon+label
2022-01-20 17:23:30 +01:00
Hadi Nategh
6fd23b631f
Get the right size icon for imageOnly buttons and add right padding for buttons with icon+label
2022-01-20 16:36:51 +01:00
Hadi Nategh
28bcaf9422
WIP styling buttons: another approach to style buttons, keeping the icon slotted
2022-01-20 13:13:04 +01:00
Hadi Nategh
d33534e2e1
WIP styling buttons
2022-01-19 18:30:45 +01:00
Hadi Nategh
8b9e81fbfd
WIP styling buttons and color definitions
2022-01-18 15:13:48 +01:00
nathan
abd2e3804a
- Fix default button image was not working
...
- Fix disabled="false" in template sort-of disabled buttons instead of them working normally
This fixes CRM view close button
2021-09-16 13:37:59 -06:00
nathan
23f8bc24c2
Fix some button stuff
...
- Submit / Cancel action was not being called correctly, so cancel buttons were not skipping change check
- Implement default image & class based on ID
2021-09-15 11:08:44 -06:00
nathan
3c7da204c5
Fix button icons so they don't get space when not there
2021-09-14 11:43:43 -06:00