Commit graph

4320 commits

Author SHA1 Message Date
Skyler Grey
50dd9477a6 Stop following text overflowing chip
With some styles the following text was too large for the chip.
Unfortunately, sizing it to be consistent made it unreadably small. To
solve this, we can show only the first line of the text in the following
chip and show the second as a tooltip instead.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I4b5306370c31f4d0b13e1a91bf17a9d491807c45
2024-03-19 10:43:48 +01:00
Pranam Lashkari
ca95ab3f6c Revert "Check for comments in isAnyDialogOpen"
This reverts commit e9cf81f29e.

problem:
when comment is being edited, nothing could be copied from the doc

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I34ceacc5d9c7d5eb7d57ec2489a47734b80a044f
2024-03-19 13:58:53 +05:30
Pedro Pinto Silva
0bec574ec3 Custom properties dialog: Fix height mismatch select and input field
Better to use the same height so to fix the misalignment

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: If3e76a695a943eee4861479e2ce7b6b1dd287d4f
2024-03-19 08:47:43 +01:00
Skyler Grey
34ece47362 Convert ColorPicker.js to ColorPicker.ts
I did the things necessary for TypeScript to stop complaining, as well
as additional modernizing things such as formatting and removing
L.Class.extend

Here's the full list:
- Update browser/Makefile.am with the new filename
- Fix any typescript errors that prevented compile
- Remove L.Class
- Factor out repeated types
- Tighten types to avoid functions leaking anys

Though not all of those steps are necessary, they are all useful, as
along the way TypeScript helped me to find and fix several times when I
had incorrectly inferred what the type should be

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I20d6580c53337909788b0517353c5852365b871d
2024-03-18 18:07:30 +01:00
Skyler Grey
22e92855d3 Remove unnecessary any in Control.UserList.ts
This was left around, presumably from before I typed user

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Ie5ff95a04b20fd260ebfb3dc3317c3869ac22b91
2024-03-18 18:07:30 +01:00
Darshan-upadhyay1110
09cfaa81a9 Improve Update state of uno Tool button state on stateChanged
- We made some adjustment in core side
- it will now send both property
     1."State" = either button is selected or not
     2."disabled" = either it is disabled or not
- based on above message made some adjustment and refactiong in update function
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>

Change-Id: I7aa9bae647252782fcc88bd11b34bf9954741502
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
2024-03-18 13:16:39 +01:00
Szymon Kłos
361039c528 remove-w2ui: reuse MenuButton for color picker button
- reuse MenuButton as base for colorControl
- add only last color indicator and activation on left side button
- make possible to clreate split button from unotoolbutton

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8cd20149cc5bc25bedf4e0b0c56fc93d53339f4b
2024-03-18 12:58:02 +01:00
Szymon Kłos
5ff165124e jsdialog: allow to put any widget into MenuButton dropdown
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: If6f6192fe5cef6e7e6de20329d6e1b49bd6d1ed0
2024-03-18 12:58:02 +01:00
Gökay Şatır
b7454abdbf Provide longpress timer for IOS devices.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ifaf76e198f0357e669c9966a185b6ab506e56f49
2024-03-15 20:46:20 +03:00
Gökay Şatır
dfc523f15a Merge onContextMenu and onLongPress events.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Icd4452a30479591035282a789ad6c9ae742c1b0b
2024-03-15 20:46:20 +03:00
Méven Car
31c512ff66 Impress: Allow to autostart in presentation mode
This is implemented in two cases:
 * using a request parameter '&startPresentation=true'
 * for ppsx/pps for which the backend sends a startPresentation
   stateChange event. This can be overridden passing
'&startPresentation=false' to allow editing the file.

The presentation can only start in present-in-window mode due to browser
gating fullscreen by user activation.

Refactor SlideShow._onFullScreen to better handle the requestFullscreen permission restriction failing case.
Also clean up old references to old restricted implementations.

Signed-off-by: Méven Car <meven.car@collabora.com>
Change-Id: I98fcb1a7da170fa1c6a7de75c680259163233c9d
2024-03-15 18:25:53 +01:00
Neil Guertin
8a788347f2 Fix &debug=true and &randomUser=true url parameters
Move debug toggle to after docloaded message
Move sidebar toggle even later than that

Signed-off-by: Neil Guertin <neil.guertin@collabora.com>
Change-Id: Ib72b5ef4c2c31f7707a384b2d819d5cde57a796d
2024-03-15 11:51:27 -04:00
Pranam Lashkari
7e51e5544c annotation: fix scaled comment positioning
problem:
when using display scaling/zooming clicking on comment may cause
overlapping on comments if the previous comment from clicked comment is long

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I6e9eec3ba5c3fb9f871ce42bb0a554d7e2cc3c5e
2024-03-15 11:43:12 +00:00
Pranam Lashkari
714b24c6ae canvas:svg: update inner text area of shape/textbox based on input
problem:
before this patch innert textarea svg was not updated after changing text,
it was static based on first selection of textbox/shape,
to update the textarea we needed to unselect and reselect shape/textbox

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I11ceaf76867cecf5a356149d2072181e9f10b86e
2024-03-15 09:23:27 +00:00
Andras Timar
ea4234cfda remove executable bit from SVGs
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id83fbfeb2880ef9208f45b8c2dcb16753c7307fe
2024-03-14 17:10:35 +01:00
Skyler Grey
e385a7b53b Stop following anyone when you start typing
When you are following someone and start typing, it's a pretty good
indication that you don't want to be following that person, particularly
because if they edit you will then be jumped over to where they are

We also need to stop unfollowAll from always rerendering the user list,
as when we rerendered on every keypress there was a noticable
performance degredation. Instead, we can make it only rerender when
we're following someone, which is a lot better.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I110ca74859b7cee03c6a58c87d3975275f29760d
2024-03-14 11:44:52 +00:00
Szymon Kłos
e8f61f02bb remove-w2ui: replace w2overlay with jQuery tooltip for user join
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic6db4451222ea2d409e421322a67648c2d9c7989
2024-03-14 08:35:15 +01:00
Szymon Kłos
087380bf2d remove-w2ui: replace w2overlay with info modal for undo conflict
so it will be also visible in notebookbar mode

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia311e3bff119b202b08b6ba04f75ad795d8a735c
2024-03-14 08:35:15 +01:00
Szymon Kłos
edca8edb77 notebookbar: remove some unused rules
in the past when JSON was generated from core it was needed...

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I862bd405f17bd102d9772b0f806aec8bfcca4ac8
2024-03-14 08:35:15 +01:00
Szymon Kłos
240c6754b4 remove-w2ui: reuse MenuButton for insert table popup
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8dbeca30842d7bc8898f7e8146b0f279b9d0054a
2024-03-14 08:35:15 +01:00
Szymon Kłos
7ffa56d711 remove-w2ui: reuse MenuButton for insert shape popup
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib18fad0242d55aa01ef1f2c5e49105eb6d6627f9
2024-03-14 08:35:15 +01:00
Szymon Kłos
e1f1003599 jsdialog: correctly enable/disable widgets
this fixes cypress test: desktop/impress/jsdialog_spec.js

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8e80b1e3721394e18e21902ad7794b526f5da7a5
2024-03-13 18:49:07 +01:00
Henry Castro
5ac45caea0 browser: fix prettier wrong parameters
Change-Id: I40cece8d48b01b8a6dc1cbf91699a5ef436b3631
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-03-12 13:49:38 -04:00
Henry Castro
db8fee7d9b browser: create 'prettier-write' rule
Change-Id: I3f326da9428e4c8c5558912004446725f6b32772
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-03-12 13:49:38 -04:00
Henry Castro
20462e576f browser: create prettier rule
Change-Id: I8ea727458c450a14880b06971d48c58edd0961c2
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-03-12 13:49:38 -04:00
Henry Castro
71023d9ba7 browser: simplify 'prettier' call
Change-Id: I0e2af38d70e30dea42187fa2fb960da5328af857
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-03-12 13:49:38 -04:00
Henry Castro
e2103b241a browser: create eslint rule
Change-Id: I65766ffdebf5c3148cf13507f6ee9c1980c4bb79
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-03-12 13:49:38 -04:00
Henry Castro
5d8e9983a9 browser: simplify eslint call
Change-Id: Ic88985555934f0d6274b9b87a298cf4769594cd1
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-03-12 13:49:38 -04:00
Henry Castro
8a14ca766d browser: fix format style
[error] ===================================================================
[error] ---
[error] +++
[error] @@ -1635,5 +1635,6 @@
[error]  		}
[error]
[error] -		for (var pmKey in partMode) { // no keys method
[error] +		for (var pmKey in partMode) {
[error] +			// no keys method
[error]  			var partTileQueue = partMode[pmKey];
[error]  			var part = partTileQueue[0].part;

Change-Id: I3dad1053203c22c48b0c60ede9b7e83265f183bd
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-03-12 13:49:38 -04:00
Henry Castro
76d33f1182 config: add 'prettier' command before bundeling process
Execute the 'prettier' command to check format code style.

Change-Id: I93e4a57e03d26627caa3b2c52ae44669a8723267
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-03-12 13:49:38 -04:00
Henry Castro
ec40680f9a browser: admin: ignore eslint transpilation code
The *.ts files in admin are transpiled typescript to *.js
so ignore the file to eslint again.

Change-Id: Icb5edbcc9d782562886c17453921979fd2dbdd2e
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-03-12 13:49:38 -04:00
Henry Castro
f6895dcddf config: fix eslint 'prettier' package extension
config setup: builddir != srcdir

------------------------------------------------------------

Oops! Something went wrong! :(

ESLint: 7.0.0

Error: Cannot read config file: ../browser/.eslintrc
Error: ENOENT: no such file or directory, open '../browser/.eslintrc'

Change-Id: I7900d9715b9a918c2f978aae63522a8c62956278
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-03-12 13:49:38 -04:00
Darshan-upadhyay1110
17c6f4241c Do not hide or show elements which are force to be hidden in mobile view
- We specifically hide some section or elements in mobile view
- if we go level up or level down in mobile view, we should not change the state of those elements which already hidden using css rules
- this patch will cover that part of issue where we do not consider elements which are hidden by css rules
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I7ffd83c5b74987f74b7e327fd13775a81d02120d
2024-03-12 15:58:59 +01:00
Darshan-upadhyay1110
9c0e74be84 Fix image path for base spin field icons
- image path was wrongly assigned
- setImage method will do the work to set image path
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I765f0049d7d607926529df38a202b9ec923584b1
2024-03-12 15:58:59 +01:00
Szymon Kłos
661edaeea0 remove-w2ui: use MenuButton for borser style dropdown
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I7d9dfe1015e7488f0d127b39f6abcbda0158800b
2024-03-11 15:21:45 +01:00
Szymon Kłos
6f8996d1c1 jsdialog: reuse standard MenuButton for ConditionalFormatMenu
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I295f916ebc8288a62097f234a933d12ed9e02aa0
2024-03-11 15:21:45 +01:00
Szymon Kłos
668fcfac0b jsdialog: make Dropdown submenu code more generic
- automatically handle html content
- fix dropdown cropped when close to the screen edge
  and content is custom html (fixes #7578)
- automatically handle focus

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3187971f47295d699a18dbf5b8dd129e3a809991
2024-03-11 15:21:45 +01:00
Szymon Kłos
9ae0947b35 remove-w2ui: remove unused _makeW2MenuFocusable helper
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ie97c5945a7ffb45740020c1603843ef6efcebc0d
2024-03-11 15:21:45 +01:00
Szymon Kłos
fe753b6f66 remove-w2ui: apply prettier rules to new files
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ied640eec87c1df05aaba37117a249e1551f45233
2024-03-11 15:21:45 +01:00
Szymon Kłos
8991cc1ef9 remove-w2ui: extra properties for JSDialog.Dropdown entires
- icon
- checked state
- hint / tooltip

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id2c65861262c8aef43395cf933b8d992e643166a
2024-03-11 15:21:45 +01:00
Szymon Kłos
0864c21dbc jsdialog: if MenuButton has only one entry - call it
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I36eb02ce3774880e0c9413169f8fa1ca8e6b596f
2024-03-11 15:21:45 +01:00
Szymon Kłos
88b0407a86 remove-w2ui: reuse JSDialog menus for grouped Export buttons
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I1080610bca521c339f4eacba40320e94dbc7b9df
2024-03-11 15:21:45 +01:00
Szymon Kłos
21057adfc4 Move exportFormats to the app state
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic7fa0f8a9175fc5af0969641c82b4e0fadfc0f1e
2024-03-11 15:21:45 +01:00
Szymon Kłos
16b9294b6a remove-w2ui: reuse JSDialog menus for Paste
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I1e2a8772c079fea0f464a7f1cf41e9a8faf26889
2024-03-11 15:21:45 +01:00
Szymon Kłos
d65663a3f1 remove-w2ui: reuse JSDialog menus for CharSpacing
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic36aabc34dc98ca5d5a8cc1bf88df91b4b53f4d8
2024-03-11 15:21:45 +01:00
Szymon Kłos
cfae74ef97 remove-w2ui: reuse JSDialog menus for InsertGraphic
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id3b3291b517b6fbb10464148ebac4a7e6b48717a
2024-03-11 15:21:45 +01:00
Szymon Kłos
98ac4ccd22 remove-w2ui: reuse JSDialog menus for LanugageMenu
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ica44237bb054d0e1a16eed1f9f062b948497181c
2024-03-11 15:21:45 +01:00
Szymon Kłos
9bad40a2c5 remove-w2ui: reuse JSDialog menus for LineSpacing
TODO: checked state for menu entries
TODO: accessibility, shortcuts

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I6dc96a4748fd69a75af8a64ed37e5dce24bd9830
2024-03-11 15:21:45 +01:00
Szymon Kłos
73553cdd26 remove-w2ui: move menu definitions to separate file
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I478fffd6b533909016e3af89e4e08fd793f5ab48
2024-03-11 15:21:45 +01:00
Szymon Kłos
07da50acc3 remove-w2ui: use JSDialog.Dropdown in MenuButtons
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I9a5bec468a64ef8cfa9868ef3a61b9d308106c94
2024-03-11 15:21:45 +01:00
Szymon Kłos
98f52d9b40 jsdialog: close dropdown on escape key
Dropdowns are objects in the JS only so don't send
message to the server.

Dropdown is a simple list of entries (menu),
do not confuse it with popup which exists in the
core and message shoult be sent in that case.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iffcd6cac81608841dca969e979298e33182c6595
2024-03-11 15:21:45 +01:00
Miklos Vajna
b1917aab1d cool#8465 clipboard: fix skipping the header of the complex case in JS
Have 3 paragraphs in Writer, insert an image in the middle with
(to-char) anchoring. Select all text, copy to trigger the complex copy
codepath. Insert the result to Wrtier, some "text/html" and a number
extra paragraphs appear before the result content in the past result.

Seems the root of the problem is that the clipboard format generated by
ChildSession::getClipboard() is 1) a mime type on its own line 2) size
3) real content; but we just skipped 1) and 2) in the past, but now this
doesn't work, presumably due to a change on the core side.

Fix the problem by just making the header check case-insensitive for
now.

Once I add a html+plain text mode here, I'll probably switch to properly
skipping the first two lines instead, since the plain text won't have a
well-known header to identify the content. No testcase, this complex
download codepath will be Firefox-only in the future, so not easy to
cover with cypress.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Ia99e5325188e5a34b56962cf4e3e9b8287e267c0
2024-03-11 13:50:53 +00:00
Skyler Grey
a40be5499e Add prettier
Prettier is a code formatter for javascript/typescript. It's relatively
common to see complaints about style in pull requests or inconsistent
style getting in to Collabora Online. Also, without a formatter it's
harder for editors to automatically format code in sensible and
consistent ways

Prettier doesn't have many options, but those which it does have I have
set to the closest values to current behavior (e.g. single quotes) in
order to minimize unnecessary changes

This commit doesn't format all existing files. Doing so would cause
blames, cherry-picks and diffs to become much less useful. Instead, we
use browser/.beforeprettier to list all files that would need to be
changed, and this file is ignored. You are encouraged but not required
to set your editor's equivalent of 'editor.formatOnSaveMode' to only
format changed lines

This commit also does format of docstatefunctions.js, previously it did
not in to check that an incorrectly-formatted file could fail CI. Now it
does to make sure that formatting fixes the issue. This file was chosen
because it is very new and very small.

Change-Id: Ie6067f34aa658f887e149a08aebd0180b2354005
Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
2024-03-09 15:53:21 +01:00
Szymon Kłos
fae5644eaa cypress: fix annotation autosave tests
this fixes regression from commit 34bf81f146
KeyboardShortcuts: define which app supports shortcut

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I90e46de486021254dee96605b9d5d39ca04b5a29
2024-03-08 19:25:52 +01:00
Pranam Lashkari
14ff135f18 annotation: comment added with tracking must deleted without trace
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I4447c5e0be4c86a6c579b91de868a6736704fbfd
2024-03-08 20:42:50 +05:30
Andras Timar
224343cde0 Translated using Weblate (German)
Currently translated at 99.5% (476 of 478 strings)

Translated using Weblate (German)

Currently translated at 99.5% (476 of 478 strings)

Co-authored-by: Andras Timar <andras.timar@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/de/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I8ec860efbb9d8e198e1bc453108fa53e47c5f28f
2024-03-08 16:04:04 +01:00
Leif-Jöran Olsson
664ce6be44 Translated using Weblate (Swedish)
Currently translated at 100.0% (582 of 582 strings)

Co-authored-by: Leif-Jöran Olsson <info@friprogramvarusyndikatet.se>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sv/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia3faf883e1ee90b581c79ada2a4f2e67a97f7487
2024-03-08 15:23:52 +01:00
Matthaiks
a72f97dbc7 Translated using Weblate (Polish)
Currently translated at 100.0% (582 of 582 strings)

Co-authored-by: Matthaiks <kitynska@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pl/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I36857d95d0f0dce1ab6e3d45846df8c80d5a39ef
2024-03-08 15:23:52 +01:00
Andras Timar
6bdd95479b Translated using Weblate (Hungarian)
Currently translated at 100.0% (582 of 582 strings)

Co-authored-by: Andras Timar <andras.timar@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hu/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I877b279c11f156db04750aeb3d5d5238e1713d66
2024-03-08 15:23:52 +01:00
Miklos Vajna
7f9de46688 cool#8465 clipboard: improve handling of plain text copy, simple case
Currently the current selection is always requested as HTML by the
browser, and then we ask the browser to convert it to plain text.

The problem is that e.g. Writer can produce much better plain text from
its model, compared to the plain text by the browser, e.g. bullet
characters for bullet points.

Fix the problem by:

- CanvasTileLayer.js, _onTextSelectionMsg(): requesting both HTML and
  plain text. Use ',' as a separator, as that's already established,
  e.g. the HTTP Accept header does that already

- Switching the textselectioncontent protocol message from just HTML to
  JSON that contains both HTML and plain text. This is produced in
  ChildSession::getTextSelection() and parsed in CanvasTileLayer.js,
  _onMessage()

- Clipboard.js, setTextSelectionHTML(): allowing setting both HTML and
  plain text.

- ClientSession::postProcessCopyPayload(): knowing if the content to be
  processed is HTML-in-JSON or just HTML, do additional escaping in the
  JSON / textselectioncontent case, but leave the other clipboardcontent
  case unchanged.

So far this only handles the simple case, the behavior for complex
selections are left unchanged for now. The payload is also unchanged
when a single format is requested, as many tests depend on test.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I2fe1378a8d50b7901ac9e808eb78858cd8ff8575
2024-03-08 13:54:10 +00:00
Pranam Lashkari
971b235514 annotation: prevent page up/down button from messing the view
problem:
when pressed page up/down button inside the annotation textarea,
entire view is forcefully pushed upwards to put the cursor at the top of view.
This is a chrome bug reported at: https://issues.chromium.org/issues/41417806

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I30048374e7b8330cd8c865010e3b4237d355391e
2024-03-08 14:30:44 +01:00
Szymon Kłos
a0a169920c PostMessage test page: add export with notify set
This allows to test responses.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Idfee8632ac0aeb8a105555e7c9d527288568091e
2024-03-07 06:58:17 +01:00
Szymon Kłos
284a2cfd94 Notify WOPI host about status after export
It requires to add `Notify: true` in the Action_Export
postmessage. Result will be sent with `Action_Save_Resp`

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iaeee2e22bf1a2ae934eb657116c1878cb6ed50f6
2024-03-07 06:58:17 +01:00
Szymon Kłos
f1460e92cf Make exportas error more informative for user
Replace "The server encountered a xxx error while parsing
the yyy command." with more informative "Document cannot
be exported. Please try again." on export issues.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2683720d043713af95ccc61d46c3da09e6f5092b
2024-03-07 06:58:17 +01:00
Pranam Lashkari
5e41d722d2 annotation: fixed incorrect class name use
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I8d7060c6a37781a61add2585d69f1153a60724ce
2024-03-06 22:20:30 +05:30
Pranam Lashkari
5b177f49a0 annotation: tracked deleted comment should't be interacted
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I1b1e6f3f65b49b6ebacfbabcfb6aecfee46dae4d
2024-03-06 22:20:30 +05:30
Michael Meeks
1a0fc1bf43 Fix JS lint warnings during make check.
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: If1444e25d86268580ac9a92f8541ddf344c062cf
2024-03-06 16:36:51 +00:00
Andras Timar
2c54c32e78 Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5010f1fb57d1121d8402b73d764f2a4f1b9a6750
2024-03-06 16:30:03 +01:00
Skyler Grey
c19b6f9d2d jsdialogs: allow limited dragging offscreen
You should be able to drag part of a JSDialog offscreen, so long as you
are also dragging another part of them onscreen. This allows you to
access the whole jsdialog even if you have a small device, which
otherwise would not be possible.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I243124bfdc1afbf8e7da84f5932493540beb12b4
2024-03-06 14:54:46 +00:00
Skyler Grey
bf32456460 Improve screen-edge jsdialog drag ergonomics
When trying to drag a jsdialog offscreen, we previously froze the
dialog. This was frustrating if you dragged a jsdialog to the edge of
the screen, because you then couldn't continue to drag it at all without
moving it away from the edge of the screen, even if the direction you
tried to drag it would not move it offscreen.

An example is if I dragged a jsdialog to the right edge of the screen,
it would be harder to drag it up as it would "stick" to the edge. I
would expect the upwards component of the movement to be honored, even
if the rightwards component could not be.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I865d4ab4833016228c63bab434eb0c6281fed03c
2024-03-06 14:54:46 +00:00
Gökay Şatır
9e2aa171c4 Allow some of the interactions in readonly mode.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I57c697e3493a92e9b77adbb2a389417b6d5ce5bc
2024-03-06 14:03:02 +01:00
Gökay Şatır
8d1d34d48f Add docstateFunctions.
Simplify readonly document checks.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I8884ba8cc3fec56817d8e3e02c775a9c891dfba0
2024-03-06 14:03:02 +01:00
Gökay Şatır
bf7ce2b086 Allow events through core side on readonlymode.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I4ff02b96f0019aa794834c824de0d1a323a00c7c
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
2024-03-06 14:03:02 +01:00
Gökay Şatır
1354d23a2f Revert "Changes for handling readonly mode click events:"
This reverts commit 924f13f106.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
2024-03-06 14:03:02 +01:00
Gökay Şatır
f05e06b26c Revert "Take the socket messge change back when in readonly mode."
This reverts commit 10fc559c63.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
2024-03-06 14:03:02 +01:00
Gökay Şatır
70da09059d Revert "Fix readonly click event."
This reverts commit ad76f8fece.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
2024-03-06 14:03:02 +01:00
Gökay Şatır
4384cf5225 Revert "Enable readonlyhyperlinkfo functionality for Calc."
This reverts commit be29c99606.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
2024-03-06 14:03:02 +01:00
Gökay Şatır
5a9cc2a529 Revert "Enable readonly click for all document types."
This reverts commit 25db900be2.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
2024-03-06 14:03:02 +01:00
Gökay Şatır
cd24db4e98 Revert "Do copy the hyperlink location in readonly mode."
This reverts commit 9e47d6a830.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
2024-03-06 14:03:02 +01:00
Darshan-upadhyay1110
117453c71b Add freeze-panes options to column/row headers
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: Ibdda73599ca0185a7615971e202dbc1f30ed5da3
2024-03-06 09:22:41 +01:00
Darshan-upadhyay1110
dbc481cc02 Move freeze options to VIEW tab in compact mode
- move freeze options from layput tab to view tab
- options should be consistent for both compact and tabed view
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I9baed9ca50ddfb963dfd555e9fec42b594321902
2024-03-06 09:22:41 +01:00
Pranam Lashkari
993af840c0 annotation: fixed resolved comments are not hidden completly
problem:
when we turn off the option to show the resolved comments,
author image was not hidden and stuck on screen which can't be interacted or scrolled

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Id0fb30c787b6e8c288df1142b9f882b7633f3dc9
2024-03-06 08:10:14 +01:00
Andras Timar
f9b1f96563 Fix processing of URL parameters (in proxy.php case)
The URLSearchParams() function was confused in the proxy.php
case, because the global.location.search contained two '?' marks,
like ?req=/browser/dist/cool.html?WOPISrc=...&lang=..&etc...
In the normal case the string started with ?WOPISrc=

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I566935656be6622d698ea2ba3c949455877526f6
2024-03-06 16:01:54 +10:30
Pranam Lashkari
9869526047 UI:annotation: fixed selection indication for track change buttons
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I0e4f40d1f2ad50c323e9780e05451d7fe9e6e4c9
2024-03-05 20:32:45 +01:00
Henry Castro
c30452befa browser: fix regression print range
Do not send the command ".uno:DeletePrintArea" to server side,
it disables printing range feature.

Change-Id: I8bb1ec9ab01793e6bf3b74b8cb121a5fbad3b8e2
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-03-05 11:23:01 +00:00
Miklos Vajna
ec0e81a7b4 cool#8023 browser: try to use the new Chrome clipboard in non-experimental mode
Now that
<https://sdk.collaboraonline.com/docs/advanced_integration.html#clipboard-handling>
is figured out, this should be less risky.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I549adad6386d328d7dc5f7e4eeee16446665df82
2024-03-05 08:58:49 +00:00
Pranam Lashkari
33470da3f6 css: annotation: removed unused mobile wizard css classes
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ie20202f48fedb0e062e00f2b4d92eaba425c854e
2024-03-05 09:11:25 +01:00
Szymon Kłos
5146e40566 KeyboardShortcuts: update cypress
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I82ff8e10355c31747dc856f94e3693d69d4a2dc6
2024-03-04 22:42:19 +01:00
Pedro Pinto Silva
ab9dacd26f Calc: spreadsheet protected status: use better icon
Before this commit, the icon that is placed in the protected spreadsheet's tab
was too big and bulky. Opt for a smaller and more minimal version of
that so it balances better with the accompanying spreadsheet's name.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I9ab688262ddaed21a067b904f51569ee87355298
2024-03-04 16:08:56 +01:00
Pedro Pinto Silva
1510192b42 Calc: spreadsheet protected status: fix misalignment regression
With cbf452b03d all non protected
spreadsheet tabs have their name (tab label) aligned to the top.
  - Fix it but making sure we align to the middle on both coordinates

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I24cb61d691f2e9e2b4399a5201dc387d32f45eb2
2024-03-04 16:08:56 +01:00
ccz
023a8c68ab Translated using Weblate (Chinese (Simplified))
Currently translated at 93.9% (541 of 576 strings)

Co-authored-by: ccz <mmlsc@qq.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/zh_Hans/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If4731566dfc5c4d851d81ba9f0d9c0ade7660520
2024-03-04 14:45:36 +01:00
Ayhan Yalçınsoy
0d741daf11 Translated using Weblate (Turkish)
Currently translated at 100.0% (478 of 478 strings)

Translated using Weblate (Turkish)

Currently translated at 100.0% (576 of 576 strings)

Translated using Weblate (Turkish)

Currently translated at 98.3% (470 of 478 strings)

Translated using Weblate (Turkish)

Currently translated at 99.8% (575 of 576 strings)

Co-authored-by: Ayhan Yalçınsoy <ayhanyalcinsoy@pisilinux.org>
Co-authored-by: PhD. Ayhan YALÇINSOY <ayhanyalcinsoy@pisilinux.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/tr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/tr/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5d3bcfcef9e253af9c8e99f15e7f561b25b94c96
2024-03-04 14:45:36 +01:00
Ihor Hordiichuk
8b00984cd4 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (576 of 576 strings)

Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/uk/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I2d444f37ce6d9d50bcbb1cea7c80edbe87188b17
2024-03-04 14:45:36 +01:00
Milo Ivir
888deba718 Translated using Weblate (Croatian)
Currently translated at 100.0% (478 of 478 strings)

Translated using Weblate (Croatian)

Currently translated at 100.0% (576 of 576 strings)

Co-authored-by: Milo Ivir <mail@milotype.de>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/hr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hr/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I450b9fda9a00d8603ab0adddef604df571d4b733
2024-03-04 14:45:36 +01:00
Besnik Bleta
9ee08e7660 Translated using Weblate (Albanian)
Currently translated at 97.7% (563 of 576 strings)

Co-authored-by: Besnik Bleta <besnik@programeshqip.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sq/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I1202ecc23b8e1d6965d63fee20c33dbc36233336
2024-03-04 14:45:36 +01:00
Martin Srebotnjak
e3369f5018 Translated using Weblate (Slovenian)
Currently translated at 100.0% (478 of 478 strings)

Translated using Weblate (Slovenian)

Currently translated at 100.0% (576 of 576 strings)

Co-authored-by: Martin Srebotnjak <miles@filmsi.net>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/sl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sl/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7ed0ab34193822113d31a929f6c824195bf5c717
2024-03-04 14:45:36 +01:00
Andras Timar
18fb549d72 help search input attributes
- type="search" for a11y
- spellcheck=false" to avoid red underlines
- localizable placeholder is added programmatically from 34bf81f146/browser/src/control/Toolbar.js (L552)

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I695990a25ccb00821a16738a9388a51001199112
2024-03-04 12:09:19 +01:00
Szymon Kłos
34bf81f146 KeyboardShortcuts: define which app supports shortcut
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I5c8735845e54ac30f6af61ff66d8897ead4fe9be
2024-03-04 10:48:39 +01:00
Pranam Lashkari
bfe0c5e7de annotation: remove obsolete mobile wizard popup code
it was introduced in 13bc532
and it was removed from use in 2f77b3a

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Iec401a9505491fe69196cdb1e7192fa499d3d38f
2024-03-04 07:41:16 +01:00
Pranam Lashkari
9cf64b0726 canvas: svg: show textbox move animation while edit
problem:
if a textbox/shape is being edited and try to move it while still in editing,
it was not animated, so user gets illusion that shape was not moved,
but in fact it moved and directly appears at the last moved position without animation

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I830e368e162b3b38edea0d9240cf82800fa8080a
2024-03-01 15:50:33 +00:00