Commit Graph

79 Commits

Author SHA1 Message Date
nathan
89483d80d3 Api: Fix missing spinner icons 2023-05-17 10:08:34 -06:00
nathan
eddcc97163 Et2ButtonIcon: Fix missing icons
There was a conflict between Et2InputWidget setting the widget name & image
2023-05-16 10:02:34 -06:00
nathan
e034557f60 Api: Fix number could not handle comma as decimal separator if different from browser's region. 2023-03-22 10:59:05 -06:00
Hadi Nategh
b25346c1e4 ET2Button doesn't get resized properly after set/remove label therefore try to force an update 2023-02-16 15:17:13 +01:00
nathan
d87e0c7f38 Fix missing default button images 2023-01-16 16:15:57 -07:00
nathan
9a190321c1 Et2Button: Fix class mixup that broke buttons 2023-01-05 09:00:02 -07:00
nathan
acd44a1e0e Get tests for Button passing again 2023-01-04 15:03:43 -07:00
nathan
40278c8827 Get our WebComponent tests running again
Made a lot of "failed to construct htmlelement" errors go away, avoid a bunch of egwIsMobile is undefined errors
2023-01-04 12:01:09 -07:00
nathan
b0bedc8467 Accessability improvements
- Toolbar buttons get label, but it is visually hidden
- Add label to calendar Add button
2022-12-22 14:14:45 -07:00
nathan
e756962f86 Change egw.accounts() to always return a Promise 2022-12-15 10:22:19 -07:00
nathan
e875b9ddf4 Use same background color for primary buttons 2022-12-05 10:54:05 -07:00
nathan
3a1c415ce4 Styling for buttons on dialog 2022-12-02 11:23:09 -07:00
nathan
c81ff8b444 Fix disabled buttons had different styling than normal buttons 2022-12-01 13:03:39 -07:00
nathan
5c3d35aa05 Fix missing SVG icons for some images
They weren't missing, just 0x0px
2022-11-23 14:35:36 -07:00
Hadi Nategh
d1841f9985 Fix hideonreadonly sometimes not being applied (eg. hbox) 2022-10-21 13:29:16 +02:00
ralf
196024a454 stopping buttons in dialog from submitting it to server-side 2022-10-06 13:55:24 +02:00
nathan
91bd7d5a43 Et2Button: Fix disabled was still hiding the event even if hideonreadonly was false 2022-09-22 15:20:21 -06:00
nathan
79b6cef5fd Switch egw.user(..., async=true) to always return a Promise for consistency
Switch Et2ButtonTimestamper to use egw.user(...,async=true)
2022-09-20 08:05:59 -06:00
Hadi Nategh
79cec31989 Fix label of button overlaps outside its container if it gets squeezed enough 2022-09-08 12:47:11 +02:00
Hadi Nategh
978d356eed Set background color for buttons used in dialogs footer 2022-09-05 10:10:11 +02:00
Hadi Nategh
e1a87caf6c WIP of better UI 2022-08-30 07:50:43 +02:00
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