Commit graph

20287 commits

Author SHA1 Message Date
Gökay Şatır
58d417d152 Activate access keys for tabs and popup windows.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Idfa377bb8afed7afb811f33462c471a1261a32cc
2023-04-07 19:10:51 +03:00
Gökay Şatır
04019a0953 Update cypress tests.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I3d5735bec2162e359c012355781ca70de309ff9b
2023-04-07 17:57:24 +03:00
Gökay Şatır
8cb0c44e1f Update cypress test according to latest changes.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I226abb663edbb15384233a5c2461c1e8f3a36455
2023-04-07 17:57:24 +03:00
Gökay Şatır
be04111173 Turn div elements which has button role into buttons.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I60cebd1b02fdc9dc9e5f8a9b57d40b279b085a99
2023-04-07 17:57:24 +03:00
Szymon Kłos
57ff9a3334 Revert of "a11y: TextInput: switch from <textarea> to content editable <div>"
This reverts commit 1d2607e836.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I6de00182cee32b37c6ced957431c3c21f2734c24
2023-04-07 12:09:53 +02:00
Pedro Pinto Silva
44a945d817 jsdialog: center radiobuttons without using exact units
This is a follow up on f9ad2ea3c3
with Change-Id: I1c200f2208b4f762d01dc6dd85459dbedce7b03e . It
leverages the flex added there to align and justify items.
What it fixes: Radio buttons not being aligned from the "left"
side and behaving slightly different in terms of alignment
if anything else changes around

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I9cb6f24c16603f40acf797c6b68d4305f38cdc58
2023-04-07 11:03:56 +02:00
Szymon Kłos
6f4a3b7206 jsdialog: auto align images
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Idda9b32c0056f637dfb0a304ec26c7db74b09d95
2023-04-07 11:03:56 +02:00
Szymon Kłos
c04be7e069 jsdialog: gap in grid
to make some space between elements in grid

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I5379a1a7fd96cb1fe351cb5b52ce1433eaa7eb53
2023-04-07 11:03:56 +02:00
Szymon Kłos
e7aef3ae03 jsdialog: spinfields and listboxes equal width
they will be aligned to the grid size so look more unified

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I4900e7d4005d172226c23919505702f6926260b7
2023-04-07 11:03:56 +02:00
Michael Meeks
29d7937a46 proxy: get the length right for messages with content outside ASCII.
Interestingly, we've been sending the wrong length, resulting in

[ docbroker_003 ] ERR  #-1: Missing final newline| wsd/ProxyProtocol.cpp:158

type errors, as we read that back in coolwsd.

Change-Id: Iff7d1d38b0ed3e99c1d6903e2663c4335a36aaa3
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-04-06 11:40:18 +02:00
Andras Timar
b0ff00961b handle Uncaught TypeError: Cannot read properties of null
sheets[i].href can be null. Seen with proxy.php.

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I3d774ace869d141973a92abab8ef9ac83e1e0018
2023-04-05 20:57:16 +02:00
Pedro Pinto Silva
a009c43ee9 Remove unnecessary !important from ui-tab
Target .ui-tab instead of .ui-tab-content

.ui-tab-content doesn't exist anymore, we can safely remove it
from CSS

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I17df0fb9de73ffe8665291d9dded8715bed9963c
2023-04-05 16:12:21 +02:00
Pedro Pinto Silva
37f9453634 Tabs: Don't create button inside of a button when one element suffices
- Don't create empty parent button just to have a another button
inside
- Update CSS so the text rules are applied to the button's text

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I7f3a54a131a7a44109789a6612af8047963d8e7b
2023-04-05 16:12:21 +02:00
Szymon Kłos
797a58b523 jsdialog: check if widget exist before use
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I84690e1adbf4d4cf226511a3cc60927c9b37b223
2023-04-04 11:52:14 +02:00
Szymon Kłos
30f86f327a jsdialog: use aria-labelledby attribute
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I91b796b4c803787b2b7b93c3c8761e2809f9a414
2023-04-04 10:45:19 +02:00
Szymon Kłos
30d7543072 jsdialog: use correct property htmlFor in frames
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib4486ddc979ab791699a89d8114f5b01672f0a1d
2023-04-04 10:45:19 +02:00
Szymon Kłos
e46bdcb1df jsdialog: don't hide non-scrollable content
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ifb5c0dc05683ccf3c34ccf376347299571838902
2023-04-04 10:45:19 +02:00
Szymon Kłos
4e534a71d2 jsdialog: use labelFor property for labels
also convert p elements into labels

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I1c24f14671edf8d5e63c21a8b769c29af22737ae
2023-04-04 10:45:19 +02:00
Szymon Kłos
54844e7acf jsdialog: don't show ... in tool buttons
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I830d340db2b88d635feaab6ed16a923f46230fd2
2023-04-04 10:25:58 +02:00
Szymon Kłos
7eda463577 notebookbar: simplify toggle dark mode
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I858e13461a8083baca5851fac24d7cac155badb5
2023-04-04 10:25:58 +02:00
Szymon Kłos
17ecc99d8d notebookbar: simplify show resolved annotations
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I19b34947ec8dc7695119c9d4cb55ef2ba2678c88
2023-04-04 10:25:58 +02:00
Szymon Kłos
ec3cb9f017 jsdialog: prevent drawingarea from blocking tab key
previously when using tab key we focused drawingarea
it wasn't possible to focus other widgets

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Icf23905dfbf04ff46cf8766212a645b962fba98e
2023-04-04 10:12:20 +02:00
Szymon Kłos
9d3d0cdee7 jsdialog: make tabs accessible using keybaord
This changes tabs into button elements so they can
be switched using keyboard Enter key. It's also better
from a11y point of view

Styles has to be !important to override button styling

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia4ced59544be18ae79d41b4f837eeb31ab80b8ef
2023-04-04 10:12:20 +02:00
Marco Cecchetti
1d2607e836 a11y: TextInput: switch from <textarea> to content editable <div>
Refactored TextInput implementation. A content editable <div> is used
in place of <textarea>.
<img> elements are used as pre/post spaces.
Minimal changes to FormulaBarJSDialog, since some code was
dependendent on
TextInput details.
Refactored some cypress helper funcions, too, since cypress tests
expected a <textarea> element.

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I2141d7769588bb5bf8a0fbb62f036cb78f914966
2023-04-03 14:57:58 +02:00
Henry Castro
f0f641d489 mobile: use attribute 'visibility' to hide toolbar back button
Otherwise, the toolbar re-layout half the size.

Change-Id: I492a98f822a829d814b4c6e6b4765ec14a65cc98
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-04-03 10:54:44 +02:00
Patrick Luby
940d5f2ac3 Fix issues #6103 and #6104 by setting the command to "downloadas-" on iOS
On iOS, the "export*" commands cause a file to be saved to the Online
server, not locally. So, to save locally on iOS, set the commmand to
"downloadas-*".

Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: I4da2614d20af7ae6977dd94713ba16e6eebe1b9e
2023-04-03 09:43:07 +02:00
Pouya Mozaffar Magham
75219b57d3 Feature add Send_UNO_Command postMessage
Signed-off-by: Pouya Mozaffar Magham <pouya.mozafar@gmail.com>
Change-Id: I465293b1d2d4bdc25b237a8a7054bf428543464b
2023-04-03 08:56:43 +02:00
Gökay Şatır
6ddabcb792 Update sanitizeurl function calls.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I07c12c072240307ea67d4f8f9ade8c1a9f63d1b8
2023-04-01 17:49:56 +03:00
Gökay Şatır
5bf2db45f9 Update sanitize-url package.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Iab936fbf2e743dc1908cc978c2c4e5380f4ca47e
2023-04-01 17:49:56 +03:00
Szymon Kłos
f4a9c2dd19 jsdialog: fix help buttons
Responses have to be handled even in top level widget.
After rework we sometimes didn't handle responses
because we didn't call container handler.
Put it in a build function also.

Bug was in find & replace dialog, help didn't work

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I07a69c071b65c6574a1656c71aa7eab361f7e729
2023-04-01 16:42:13 +02:00
Gökay Şatır
aa47a9f0a9 Remove json-js and stylelint-config-standart packages.
We don't need the first one and we don't use the latter one.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I1f48ff5487621781eb38dd8e4e8e2a389a3059d6
2023-04-01 11:30:07 +03:00
Gökay Şatır
c1557a16c0 Update archived packages.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I2c74bcdaf6f2e4ff3edf7b98fa95efb755cb0624
2023-03-31 19:45:50 +02:00
Szymon Kłos
a4b1f69906 jsdialog: implemented mousemove event for drawingarea
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: If93a5cfa2965c9f2de35e6b2328685dd6d019899
2023-03-31 18:41:20 +02:00
Szymon Kłos
8734168a30 Add missing symbol icons
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id195e8cc5a3511311d4901b0dd7e4a26c2cc060c
2023-03-31 18:41:20 +02:00
Szymon Kłos
214aa3142a jsdialog: make drawing area non-draggable
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3a55b704ccbf2272fa42659ac91f5a772585fb50
2023-03-31 18:41:20 +02:00
Dave Conroy
264787255f Update coolwsd.xml.in
Fix Zotero description declaration

Signed-off-by: Dave Conroy <dave@tiredofit.ca>
Change-Id: Icd830aae905224de19c651d80d3891730fb40f85
2023-03-30 15:10:12 +02:00
Gülşah Köse
5f8a339445 Add chapter numbering option into format tab on tabbed view
Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: Icc8f20885236e65fbbc0fa9c0d02af30c120968f
2023-03-30 12:08:28 +02:00
Miklos Vajna
5f77363c4f test: fix -Werror,-Winconsistent-missing-override
'trimIfInactive' overrides a member function but was not marked 'override'.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I25b0033652a3362118a77b7ef5ef7a511ce492ea
2023-03-29 17:31:42 +01:00
Szymon Kłos
6e0b1debbb Hide download in tabbed view when HideExportOption is true
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: If4bb4c16855ee4a8f2cb3e0c2f7b7516b4275c42
2023-03-29 10:40:20 +02:00
Pedro Pinto Silva
c7e1fd6b7d Fix regression from commit 51bb1d3
the commit 51bb1d3 with the following change-id
I16a5df46bced608952c22bf979808bc735645366 introduced incomplete
CSS rule, rendering the whole css file invalid

So we should add back the rules and just remove the vex classes
but and upon further investigation button are already inheriting
font-family from jsdialogs.css: .jsdialog-container .ui-dialog-content
so we can just remove it altogether.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iab42230efc7341e8967ce776f0d3decf41655ba6
2023-03-25 11:36:20 +01:00
Pedro Pinto Silva
4fa4ff8c93 Revert "made bigtoolitem appearance bigger than icon with inline labels."
After reading Rizmut's commets, we should probably revert this for now
at least until we decide on the icon size while avoiding bluriness

This reverts commit e6782d6b5d.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
2023-03-25 11:33:54 +01:00
Gökay Şatır
260cbed5d3 Remove vex from code.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I054977b5c71364c59c7f1fdd1f5d691380951ebb
2023-03-25 07:03:05 +03:00
Szymon Kłos
6ff5801e17 jsdialog: fix dialog jumping on a screen
This is fix for regression from:
commit a2d666d53a
JSDialog overlay: Use CSS rules for positioning.

When switching a tab in Format -> Characters dialog,
update message was received and dialog got request to
update position. Even when we had nothing to update
we did modification to dialog position causing jump.

This patch makes updates less agressive and does update
only when calculated value is really different.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I27364e5ccb60a0391ddc9fb9e22078d559518f69
2023-03-24 17:38:59 +01:00
Gökay Şatır
c80e760b62 Remove vex from toolbar.js.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I00eb376538e2459e204b3a9dfb610e695723f74e
2023-03-24 17:56:13 +03:00
Gökay Şatır
aa9a78da97 Remove vex from Control.idlehandler.ts.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I9de3bccf86029a072fdbda5bc413371f2928e196
2023-03-24 16:54:26 +03:00
Ashod Nakashian
aace69c087 wsd: check for editable session not readonly
The following commit caused a regression with
PDFs which are read-only, but may allow comments.

commit cca0a561ed
Author: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
Date:   Sun Jan 15 18:29:18 2023 -0500

    wsd: never upload using a session that is read-only

Change-Id: I9bf1fde21b47a4f119b99cc58f76cd683c2152a9
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-03-24 13:54:35 +01:00
Rash419
d221de8969 fix: date picker always in norwegian
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Id03cccad6964e7555de6300b0eac619bf521802b
2023-03-24 13:53:39 +01:00
Harsh Gohel
e6782d6b5d made bigtoolitem appearance bigger than icon with inline labels.
Signed-off-by: Harsh Gohel <harsh22gohel@gmail.com>
Change-Id: Ie4eead1f20fb183b2f5c48aee4fe1f72fa7b12f1
2023-03-24 13:13:52 +01:00
Pedro Pinto Silva
3dc32f30f6 Fix main tabs text styles on tabbed view
Tabs were changed to buttons and thus we need to readjust the CSS
so text color and others are correctly applied to the text

Also add :not exception so the tabs are not styles as regular buttons

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I1bc1681e86f17ee7afb435f7c3fc099b80abac2e
2023-03-24 10:28:49 +01:00
Gökay Şatır
50d447cb7e Loop focus inside about dialog.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I48e3d8ebef4e79f2bfb2330ec044105a3b40eb5e
2023-03-23 17:35:12 +01:00