Commit graph

3546 commits

Author SHA1 Message Date
Szymon Kłos
b377353af3 jsdialog: allow to call uno when dropdown is opened
Don't count dropdowns to the number of opened dialogs.
Use special type to indicate that "dialog" is a dropdown.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I38fa3c303d24601fc76606b994b7398f12dc7d38
2023-10-26 09:19:24 +02:00
Szymon Kłos
4c98fe54f0 jsdialog: move dropdown to separate util
so it can be reused

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I9f7940bd9f25a837d673dce20b5ded3a70d134ad
2023-10-26 09:19:24 +02:00
Szymon Kłos
cdc0b71262 Add easy conditional formatting notebookbar menu options
w2menu in our version doesn't have submenus...

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I788a214c71ed880fdbc51dc026f00b82549c3361
2023-10-26 09:19:24 +02:00
Szymon Kłos
937264e5cf jsdialog: treeviews should have full width
but entries have to be max-content to not wrap,
only main container has no width set to be automatically
resized to the needs

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0dc2487b56700b1cc87f5f7ce1fcda8e91855269
2023-10-26 09:19:24 +02:00
Paris Oplopoios
b75e222897 Add easy conditional formatting compact menu option
Signed-off-by: Paris Oplopoios <paris.oplopoios@collabora.com>
Change-Id: I750b0edfc5662db8bd617b933e5d0657250d090e
2023-10-26 09:19:24 +02:00
Pranam Lashkari
7434cb0e65 UI: fix rename dialog flickering
problem:
rename dialog sometimes flickered in Firefox
it flickered when the button label was clicked,
it made the event bubble and triggered the click event multiple times.
trying to open dialog when already opened makes it flicker intentionally

fixes: #7479

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I290c905ac321650bd7979495c78de7d66f188ffd
2023-10-26 08:41:50 +02:00
Hubert Figuière
83c490b08f postmessage: Don't output error for handled UI message before ready
Signed-off-by: Hubert Figuière <hub@collabora.com>
Change-Id: Id357c54bce57464334a24115175087e4bbfa4aea
2023-10-26 08:40:20 +02:00
Rash419
2485dab996 browser: use 'Error_Messages' postmessage call to
override error messages
- send App_LoadingStatus msg with Intialized status once map is
  initialized so that integrator can start to send postmessages

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I96e0c1471cbabe15b0e61711defe15f4e5298ab3
2023-10-25 22:21:40 +02:00
Rash419
294c2da6de browser: show error msg when socket connection is closed unexpectedly
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ib654d0e81d0796ba379e9482ad90e6cb8af5901d
2023-10-25 22:21:40 +02:00
Pranam Lashkari
6a4cd7eea5 annotation: avoid trying autosave empty comments
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I45bbfc7095bf94d9d68faae054ab96287dfc62b8
2023-10-25 22:10:34 +02:00
Gökay Şatır
10f0953f86 Translated using Weblate (German)
Currently translated at 99.5% (465 of 467 strings)

Translated using Weblate (German)

Currently translated at 99.5% (465 of 467 strings)

Co-authored-by: Gokay Satir <gokaysatir@gmail.com>
Co-authored-by: Gökay Şatır <gokaysatir@gmail.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: I1522c1941b3b7d23476ab9ef12ae74383e866a2a
2023-10-25 20:21:32 +02:00
Ayhan Yalçınsoy
1ec288d808 Translated using Weblate (Turkish)
Currently translated at 100.0% (530 of 530 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/ui/tr/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I1ac614376342a1dba0f85d14b4d606435fe33675
2023-10-25 20:21:32 +02:00
bittin1ddc447d824349b2
75774e9152 Translated using Weblate (Swedish)
Currently translated at 100.0% (530 of 530 strings)

Co-authored-by: bittin1ddc447d824349b2 <bittin@reimu.nl>
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: If1b6396bc1c349423f80b2a50e4f76d03bedac80
2023-10-25 20:21:32 +02:00
Matthaiks
bd51e09b11 Translated using Weblate (Polish)
Currently translated at 100.0% (530 of 530 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: I6ad75b1ca9b6161727e6ecda94e278928e05de4b
2023-10-25 20:21:32 +02:00
Andras Timar
0312cb7d3c Translated using Weblate (Hungarian)
Currently translated at 100.0% (530 of 530 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: I9da78f73b06e1b97616944de115d094a00dbdc50
2023-10-25 20:21:32 +02:00
gallegonovato
5b5bc9ffcc Translated using Weblate (Spanish)
Currently translated at 100.0% (530 of 530 strings)

Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/es/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7c9ba061ece158d18d70dac4dd3a9ade0adbd29b
2023-10-25 20:21:32 +02:00
Rash419
09d2413df9 browser: fix readonly document menubar not working
- regression from 8607aa7

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Id94b98c832d8801dd9c05cdd6223bad17d202d71
2023-10-25 20:07:59 +02:00
Hubert Figuière
fd329c353c postmessage: Add field to allow sending arbitrary postmessages
Signed-off-by: Hubert Figuière <hub@collabora.com>
Change-Id: I13976c21ebea018150469dd56f93b3b1ab2105cc
2023-10-25 10:31:04 +02:00
Andras Timar
4ee6f7f310 Fix wrong label on Draw UI: ModifyPage
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4697ea48e1a10fb3e442102c3ad97a35c8a6e3ea
2023-10-25 10:22:53 +02:00
Areg Nakashian
8a735d4faf Remove unused requestloksession command
This removes the unused requestloksession command
and all references to it, including protocol documentation.

Signed-off-by: Areg Nakashian <ss4crifice@gmail.com>
Change-Id: I8c410460a5f500f724996fbcbf8f9650028daaf9
2023-10-24 21:35:38 -04:00
Ashod Nakashian
f978b0146c browser: add wasm.html to load documents via wasm
This is of course for testing locally and as a demo.

This expects the wasm build browser/dist to be located
inside at browser/dist/wasm (which currently is done
manually).

Change-Id: I285177b4f08591cffe772acba531cf1a3434178b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-10-24 21:33:02 -04:00
Marco Cecchetti
83fb699f7f a11y: on Firefox delete key doesn't work in some specific case
The problem occurs when accessibility is disabled
Exactly when the editable area is not empty and the cursor inside the
editable area is at the end.

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: Ia69e0f56233497e91babf9e33080701e1f1adad2
2023-10-24 21:39:08 +02:00
Szymon Kłos
6d7198c0b8 postmessage: handle Get_User_State
Get_User_State postmessage is used to query user status.
If user is active or idle and how many seconds ago there
was registered last activity.

{
    State: 'idle',
    Elapsed: 2.3
}

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I354c329b48d61df380455ce3c4a4732e78b138ab
2023-10-24 17:39:00 +05:30
Szymon Kłos
cd32c129ad postmessage: send User_Active when become active again
We send User_Idle when user become idle, but there was no
similar message when user become active again.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: If0fe48456dc5ba24357bde792254c11c14517170
2023-10-24 17:39:00 +05:30
Szymon Kłos
465210ad27 jsdialog: add warning for actions in not used widget
we replace comboboxes on mobile with listboxes
but when we will want to use that widget again
we need to implement missing actions

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iabf9506bbb13c67a0caf9aee31d24c1d0732a657
2023-10-24 10:36:12 +02:00
Szymon Kłos
e2f9d51552 jsdialog: build correct structure for mobile combobox
so it correctly opens list of entries in goLevelDown

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8c071908f4aa8ed9e47720dabfbb4060c495fbb6
2023-10-24 10:36:12 +02:00
Szymon Kłos
135f1263b2 jsdialog: move mobile combobox widget to separate file
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id9e5aff092e5f9ac039017041033253d6146c9ef
2023-10-24 10:36:12 +02:00
Szymon Kłos
f42f502e86 jsdialog: select & setText action for combobox #7488
Fixes #7488
calc perf: switching sheets spams font bits

requires: https://gerrit.libreoffice.org/c/core/+/158345

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id6665ee6d28433ad1651983ac78f8e98a28e365c
2023-10-24 10:36:12 +02:00
Ashod Nakashian
cacbaae014 js: update package.json sorting
Change-Id: I7abf8adfc235d410823014c0a91131492498fa90
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-10-24 09:20:32 +02:00
Szymon Kłos
8819e0b52f jsdialog: change icon theme without reloading whole components
Previously we reloaded sidebar or notebookbar on theme change because
we wanted to load icons to match new colors. This change makes
icons aware of theme change so they automatically switch the URL.
Reload of notebookbar or sidebar is not needed then.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iae0faa904e386765abebbdb8cc6cf3a156605706
2023-10-23 19:35:30 +01:00
Andras Timar
686f9d7ccb Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6c360ab81289646bf134df12a3f64c47ddb52aab
2023-10-23 14:43:28 +02:00
m4skedbyte
5021a0622d Translated using Weblate (German)
Currently translated at 98.4% (517 of 525 strings)

Co-authored-by: m4skedbyte <weblate@m4skedbyte.xyz>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/de/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I81d1aa4375c0617e8c49128eead598bbbd75a8fb
2023-10-23 14:37:37 +02:00
Andras Timar
02ca6afb5e dark mode improvement of UI images
- Calc - Autofilter - Two image buttons
- Writer - Insert tab - Page Number page preview
- Writer - References tab - Table of Contents and Index - Columns preview

Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I035ac128123fee81d6ea18b0882a7170f19b199f
2023-10-23 13:14:00 +02:00
Szymon Kłos
7aedb714ca jsdialog: a11y: space key should expand TreeGrid entry
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I29a3218b106376a134d5ccc8190c16817789a569
2023-10-23 13:10:14 +02:00
Szymon Kłos
2e10823246 jsdialog: don't add margin to flat list entries
in case of list view without levels we don't need
margin in first cell

detect that based on presence of aria-level property

use width: max-content to be sure we don't wrap entries
if not needed

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ica98e90dffd1e2b7330eb962cfc8141fa6fe01a1
2023-10-23 13:10:14 +02:00
Szymon Kłos
f0e1eea2db jsdialog: build treegrid without additional cells in table
Use pure CSS to make margins for different levels.
Inspired by: https://www.w3.org/WAI/ARIA/apg/patterns/treegrid/examples/treegrid-1/#ex_label

- reuse arrow from tree view and expander widget
- center verticaly entries in the tree grid / list view
- add pointer cursor for expander arrow
- do not allow to sort tree grid - it makes no sense

Tree grid is a kind of table with headers but rows can be expanded
and have subentries with different "level" in the tree

It can be tested in Writer -> Review -> Manage Changes

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I4d0719a35cf852127378525153eb5b1e5d9961a7
2023-10-23 13:10:14 +02:00
Szymon Kłos
ac47dd8c5f jsdialog: better layout in Manage changes dialog
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia709cfe49717568f4ab81a33e3aa65f587dc9379
2023-10-23 13:10:14 +02:00
Szymon Kłos
26fb76cf4c jsdialog: update treeview JSON documentation
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I29c32f8c95dff68b2811d506b73b1c3ace659efb
2023-10-23 13:10:14 +02:00
Ezinne
bab79ecd49 Added the images for the Help guide in German language
Signed-off-by: Ezinne <nnamani.ezinne@gmail.com>
Change-Id: Iff34a6d00cacfc0cb4597cc987e2bb8b3427b15f
Signed-off-by: Ezinne <nnamani.ezinne@gmail.com>
2023-10-21 15:11:12 +02:00
Szymon Kłos
bebf6eb52d jsdialog: detect when scrollwindow has drawingarea inside
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I5e9e586cad14ae56f01abd7f16bbaf46b6540db3
2023-10-20 20:42:05 +02:00
Pedro Pinto Silva
2c800928a6 JSDialog: Set max height for Calc: Data: Sort dialog
To avoid 2 scrollbars in this dialog better to set a max-height to
this element so it never surpasses the main dialog height

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I939fd5fa3cafb3fcc0721aa2864b262535f622a7
2023-10-20 20:42:05 +02:00
Pedro Pinto Silva
2a432c9de7 JSDialog: Calc: Sort dialog: fix width without breaking spelling dialog
This fixes regression introduce in: Fix Spell checker js Dialog
- fd630d427f

By reading the code, it seems there was a fix for the spelling
suggestion (that comes as an image from core). It fixed the width,
before that the image was being resized to fit the parent's width.
- This fix still works but it ended up affecting any other
.ui-scrollwindow (that is not .formulabar)
	- which means that (for **any** text content) the content will not
	wrap at all even if it causes overflows and it will occupy
	only as much space as it needs and not the full parent's
	width.
	- Affected dialogs: Sort dialog's ui-scrollwindow was occupying
	only enough space to display its contents, leaving a big white
	space on the side

The present commit applies the max-content (that should never be
applied to text) solely when we have drawing-area child

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iaf461663508a70a6a599cbe3e9411026b54531f0
2023-10-20 20:42:05 +02:00
Szymon Kłos
8332790984 jsdialog: fix scrollbars inside dialogs
This fixes side effect from commit a1b2091ae6
JSDialog: Dialogs shouldn't be taller than viewport

As mentioned in the above commit, we seemed to have children that are
always bigger than the parent even if there is no elements to be
displayed and to fix that we enforce in multiple places the overflow
hidden: afbf052bb5
	- Ideally we wouldn't do this and just let the web browser
	figure out if a scroll bar is needed or not. However this
	would be a quite risky thing to do without enough testing...so

Best to ensure that other dialogs that have hidden items in the
DOM don't get scrollbars. Examples:
	- Writer -> Format -> Character
	- Calc -> Data -> Validity

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia2625bd7e45214aa43ae96e95a149e0f78c9cd7c
2023-10-20 20:42:05 +02:00
Andras Timar
2ed09707e7 Help window was too narrow
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I245e0979cd069f13eb8237eb155aa1760289a180
2023-10-20 17:36:56 +02:00
Attila Szűcs
fd49092e1c Added Icons to Manage Changed dialog
Not sure if all of them can be used now, but these 5 i tested:
insertion, deletion, cut, paste, format

Signed-off-by: Attila Szűcs <attila.szucs@collabora.com>
Change-Id: I4a6c974817d58455f01f106232c9baa66fe9d58c
2023-10-19 15:04:20 +02:00
Frankie McEyes
8fe1f0fe2c Translated using Weblate (Italian)
Currently translated at 97.7% (513 of 525 strings)

Co-authored-by: Frankie McEyes <mceyes@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/it/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I57bbb753644605e4f6b8afe841c2a1a0fe6a8668
2023-10-19 11:20:40 +02:00
Rysertio
3bb594020b Translated using Weblate (Bengali)
Currently translated at 8.5% (45 of 525 strings)

Co-authored-by: Rysertio <hortoki51@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/bn/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If525523fe7511a99921fdc81859721af59ca1b02
2023-10-19 11:20:40 +02:00
Martin Srebotnjak
871a2aabcf Translated using Weblate (Slovenian)
Currently translated at 100.0% (525 of 525 strings)

Co-authored-by: Martin Srebotnjak <miles@filmsi.net>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sl/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie4b262261f5bfe7aa90c8f81925eb22b44a63502
2023-10-19 11:20:40 +02:00
Yaron Shahrabani
fe6bc91609 Translated using Weblate (Hebrew)
Currently translated at 100.0% (525 of 525 strings)

Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/he/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If916882d717b0eaba96cb7cbfdbbe403868c35d1
2023-10-19 11:20:40 +02:00
Rob Pearson
5d2ad69d52 Translated using Weblate (English (South Africa))
Currently translated at 100.0% (525 of 525 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (525 of 525 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (525 of 525 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (525 of 525 strings)

Co-authored-by: Rob Pearson <rob.dunedin@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_AU/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_GB/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_NZ/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/en_ZA/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I11d64eb01c3c26ca7ee67c173f0fc64edbbcec14
2023-10-19 11:20:40 +02:00
Sebastiaan Veld
3450976df6 Translated using Weblate (Dutch)
Currently translated at 100.0% (467 of 467 strings)

Co-authored-by: Sebastiaan Veld <sebastiaan.veld@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/nl/
Translation: Collabora Online/Help
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6361984ec444756f859ecf879c9e2bb217aba059
2023-10-19 11:20:40 +02:00
Ihor Hordiichuk
ff18c36b3a Translated using Weblate (Ukrainian)
Currently translated at 100.0% (525 of 525 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: Ibe42ae7af50b9ab3065396cb5c4e5c9e0b136555
2023-10-19 11:20:40 +02:00
Milo Ivir
a03e751e31 Translated using Weblate (Croatian)
Currently translated at 100.0% (525 of 525 strings)

Co-authored-by: Milo Ivir <mail@milotype.de>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hr/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7e33a3c85fb8ae3f0844ced131edc2e56d6471fa
2023-10-19 11:20:40 +02:00
Szymon Kłos
5927fe1773 Avoid using undefine in custom button insertion
If postmessage to insert custom button will arrive
early before we initialized notebookbar it could
fail in insertion into compact mode toolbar due to
not existing toolbar.

This prevents us from that error. It will be not added
at the time of postmessage execution
but we remember all the custom buttons in special
array, so when UI will be initialized it will be added there.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I07d86db49a50be70b0c091a66cf5e4be049211ce
2023-10-19 10:44:38 +02:00
Szymon Kłos
7df4101713 postmessage: add more logging for debugging issues
Without that integrator doesn't know what happened.
We were silently ignoring messages.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I897a95b343a1b436745816ccbef7656f30981112
2023-10-19 10:43:40 +02:00
Pranam Lashkari
31d207f520 UI: Prefill rename dialog with the current document name
resolves: #7468

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Icb6563f76cc0f9c7d81eac96fedc6e476dfdad46
2023-10-19 03:55:50 +07:00
Gökay Şatır
d5cda35530 Fixed the name of the new comment.
With this fix, user can open a new commen popup without closing a previous new comment popup.

Without this, a new comment section lingers at the background and new comment command fails until user refreshes page.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: If7f151eb11d3f5d26dae2ca6331eb5dc0dfd9881
2023-10-18 18:38:08 +03:00
Darshan-upadhyay1110
9c994882f1 Fix Format Cell broken with custom text
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I27cf86972e70d956b9005fc1ea0b65a622e898d7
2023-10-18 17:08:28 +05:30
Darshan-upadhyay1110
90cfa44b55 Fix spinfield doesn't adjust the value
- Condition modified for getPrecision.
    - it was not handling the cases for dot value less then 0.
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I740f86e9477656d371ba3b8793bff99671444d7c
2023-10-18 17:08:06 +05:30
Szymon Kłos
707a577c56 jsdialog: make mobile border style control compatible
- jsdialog requires to create in the handler single root node
  with id of the widget
- remove old style update by _refreshSidebar

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8ce6e832b2d27d25f54e9bf636572b8c97d3a7c1
2023-10-18 12:17:48 +02:00
Gökay Şatır
6ecdcf557b Fix JS error on translations.
queryselectorall('something').queryselectorall('something else') fails.

^ This JS error is fixed.

Also we don't have specific images for German help page. So we removed the "de" from that language list.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I69b56e8f4bd2b92835c4aca9c2284750f3df9455
2023-10-18 12:50:37 +03:00
Szymon Kłos
bde5ee533f Enable duplicate checker
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: If08ceb5dd6ca83b6c1bd5e8bd1d8028a61f4296f
2023-10-18 11:47:02 +02:00
Rash419
20f1429896 browser: fix white document background on reconnect with darkmode
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ic853ba5108a1f6f9db2a7f8ab5310fe77357b07c
2023-10-18 14:00:03 +05:30
Szymon Kłos
f78fed8165 notebookbar: we use core widgets in all apps
for font selector and font size...
this makes us sure we initialize everything in Impress and Draw
too in case of reconnect

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I67ee15f470fa43965f6fbd91ae45cd330ea449aa
2023-10-18 13:52:16 +05:30
Szymon Kłos
f861ac7056 notebookbar: encapsulate _isNotebookbarLoadedOnCore
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3328b7bcc5036ed81dc757398dfabe71ba861044
2023-10-18 13:52:16 +05:30
Pranam Lashkari
93b5bdfd79 feature-locking: send lock/restriction status from client session
problem:
earlier restriction/lock status was sent to kit via browser,
now client session send this status directily to the kit.
this design will require less communication between server and browser

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I6b830f30fb326a5e6637e345250893cbba101de6
2023-10-18 03:05:40 +07:00
Szymon Kłos
0b2b048620 jsdialog: fix error in frame label getter
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Idbdb8bc8b895e800450b0f8b7b4b564627c99890
2023-10-17 16:30:23 +03:00
Szymon Kłos
9730d473b5 jsdialog: avoid error when container is missing
TypeError was noticed where container was undefined.
This was case where snackbar was closed.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id465723e01bc2cec2e20056103a918e53abf6d09
2023-10-17 16:30:23 +03:00
Pranam Lashkari
a373b6e121 annotation: make sure comment list is fetched correctly
problem:
this caused problem in autosaved comments,
when comment list is empty autosaved comments may be closed when focus is lost

partial fix: #7421
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I1fc2d087828ce44495001f97b5323dffb8adb2ef
2023-10-17 18:25:03 +07:00
AIlkiv
b2e87c4f45 Shortcuts for different keyboard layouts
Signed-off-by: Andrii Ilkiv <a.ilkiv.ye@gmail.com>
Change-Id: I27d7478e234f06edbf53fd2cee6fd800230bcb0e
2023-10-17 09:36:36 +02:00
Gökay Şatır
d3d5bdf269 Hide the newly added comment.
Also add a check for failed attempts of new comments.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I50a9981cf51475d6008e936e6e28573156a8383a
2023-10-17 05:33:31 +07:00
Gökay Şatır
84cc6dc329 Add guard for applyDrawingOrders function.
It's required only for spreadsheets.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Iae3694cca16cb51d4e3e9b20f3a337fd2e0a4c12
2023-10-17 05:33:31 +07:00
Marco Cecchetti
5680f3dc6e a11y: accessible description to describe how to turn on accessible mode
Set up accessible text through aria-description for describing how to
enable accessibility support for text content when it is disabled.

The description is reported by the screen reader on document load and
on explicit request to read current text content.

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I439b7703c15d3b38c39181d27c11da438834c414
2023-10-16 19:09:54 +02:00
Andras Timar
41fce2572b restore the original install-data-hook in case of debug builds
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I45dc86b7473babba723a873e4a21c8021797fb07
2023-10-16 17:21:56 +02:00
Andras Timar
af8ba81943 Fix CSS selector: make checkboxes visible in light mode
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6e8194ea456e4af3104754cf9219be22f135c042
2023-10-16 16:56:03 +02:00
Szymon Kłos
5f9b8cab6c jsdialog: reduce warnings in console for sidebar
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ibe3c82bde06eb96fe08ea977472c776be4132de1
2023-10-16 10:52:14 +02:00
Szymon Kłos
88b5f508e8 jsdialog: simplify sidebar action code
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I49a5ce3b2667c49475ebbc45d49e00915ad9e4b9
2023-10-16 10:52:14 +02:00
Szymon Kłos
a7ece5d0d6 jsdialog: reduce warnings in console for formulabar
we emit lots of warnings which are not important

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I59027c4d848a98ba3d9e8f4a3feafd3fcb62dec2
2023-10-16 10:52:14 +02:00
Szymon Kłos
1b4883877c jsdialog: move mobile border selector to separate file
to make main JSDialogBuilder shorter and easier to read.
And move handler to mobile builder as control exists only
on mobile.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I9a14c7050711658638d22f0fd7b47e038b5952a1
2023-10-16 10:52:14 +02:00
Andras Timar
db553e3edf Remove ellipsis (…) char at the end of notebookbar button labels
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie110bc895d7a639266affb9ba3129a5a831d6e2c
2023-10-15 16:35:28 +02:00
Szymon Kłos
b35c4f5a1d jsdialog: move frame handler to separate file
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I36640680eb2e0594eb336353deba6c34d1d933e7
2023-10-15 11:43:07 +02:00
Pranam Lashkari
9be1e9261d jsdialog: make sure all elements in frame are displayed
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ie0b949c8dcd820de380f9ee6b497631e594114f3
2023-10-15 11:43:07 +02:00
Pedro Pinto Silva
a1b2091ae6 JSDialog: Dialogs shouldn't be taller than viewport
Don't allow dialogs to grow taller than the web browser's viewport
instead,
 - Set (for dialog's content) a max of 90% of the View height and subtract the dialog's
header. This way the header with the close button stays always visible
 - Set overflow accordingly so it can be  scrollable
   - Needs to have !important because it seems we need by default
   "overflow: hidden;" set to every  ".jsdialog-container
   .lokdialog.ui-dialog-content.ui-widget-content"
      - introduced in afbf052bb5
      possibly due to hidden elements that are part of DOM

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I61a2a41d8b1198fe00b939427cde43d247dc08bb
2023-10-13 13:52:11 +02:00
Szymon Kłos
ede848b2b3 Update file headers in jsdialog related components
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I347ebde789495d852c091cefb1c84ab9f1c7ebdb
2023-10-13 10:01:31 +01:00
Marco Cecchetti
da59a84935 followup: no copy event is emitted by hitting CTRL+C with no selection
This is still occurring also in Firefox 118.
Anyway it seems to never occur on Windows.

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I0e5c643912f2276c60bdba1b2ad1ed801785193f
2023-10-12 17:25:52 +02:00
Caolán McNamara
dffef0e99b reduce onStatusMsg retry timeout to 10ms
https: //github.com/CollaboraOnline/online/pull/7390#discussion_r1351943503
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I0a32933d54fa44486c6807c4d0b01e2029700271
2023-10-12 09:09:25 +01:00
Darshan-upadhyay1110
2586e04148 Fix export as options on android app
Some of the options seems to not working on mobile app
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>

Change-Id: I934e446dfeeab46f26e95898522cb0b7c1cc64a2
2023-10-12 07:33:26 +02:00
Pranam Lashkari
b39a0bba79 browser: notify user for unsupported video
detect if video is able to play via checking if any frames are decoded,
in other cases(i.e: file not found or corrupted file) check for the errors in source and video

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I22bfc836a98ec0eb2caa58b89332b2531d69d18f
2023-10-11 20:23:37 +02:00
Cosmin Humeniuc
4fca649079 Re-set id of 'selectbackground' to 'layout-selectbackground'
Signed-off-by: Cosmin Humeniuc <cosmin.humeniuc@1and1.ro>
Change-Id: Ifdb843b3337ddc1ad64191485335bdcf0ac79478
2023-10-11 18:30:36 +02:00
Cosmin Humeniuc
89db8cf5d4 Enable "Set Background Image" button in tabbed view
Signed-off-by: Cosmin Humeniuc <cosmin.humeniuc@1and1.ro>
Change-Id: I9e6c5f3070683e1949d66355d8e0cf832580b912
2023-10-11 18:30:36 +02:00
Skyler Grey
237d9c084a safari: workaround SVG position bug
This commit fixes videos rendering in the wrong place on Safari (and all
iOS browsers). Note that it will still need the server fixes contained
in https://github.com/CollaboraOnline/online/pull/7367 for Safari to
play video

To reproduce, load a document with an mp4 video in Safari (this may also
work with other formats, but we know of unrelated bugs with non-mp4
videos) and click on the place where the video should be.

Before this commit, you will see a white rectangle where the video
should appear. After this commit, you will see the video. If you have
this commit but not #7367 you will see a play button with a "broken
video" strikethrough. In non-Safari/iOS browsers you will see the video
both before and after this commit.

This commit does not include detection for the upcoming Layer-Based SVG
engine <https://wpewebkit.org/blog/05-new-svg-engine.html>. This means
that this commit will *break* video if this is enabled in Safari debug
mode.  If this commit is merged as-is we need to make a followup to fix
this as soon as possible or we will end up with a similar-but-opposite
bug when that flag is toggled on by default.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I205e692e7027ad917bd6f29aa96b0ac70a4c9e04
2023-10-11 16:25:47 +00:00
Oğuz Ersen
99b83417d1 Translated using Weblate (Turkish)
Currently translated at 100.0% (525 of 525 strings)

Co-authored-by: Oğuz Ersen <oguz@ersen.moe>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/tr/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie2db76bce482a3557f790a2e7a5392f75692e077
2023-10-11 18:24:02 +02:00
Leif-Jöran Olsson
03f0d80d8a Translated using Weblate (Swedish)
Currently translated at 100.0% (525 of 525 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: Ifb2674e4a0f0b3dbf5d466734558d00292d1396a
2023-10-11 18:24:02 +02:00
Matthaiks
6754c74991 Translated using Weblate (Polish)
Currently translated at 100.0% (525 of 525 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: Id708a7b627d80f9783ed36e0f2f98a07d0dfb11a
2023-10-11 18:24:02 +02:00
Sebastiaan Veld
f1b703bf10 Translated using Weblate (Dutch)
Currently translated at 100.0% (525 of 525 strings)

Co-authored-by: Sebastiaan Veld <sebastiaan.veld@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/nl/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iccba3f92080bb0c0a626491636ce214441e22684
2023-10-11 18:24:02 +02:00
Andras Timar
0608b3e808 Translated using Weblate (Hungarian)
Currently translated at 100.0% (525 of 525 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: Icdaa800456e29f7f923b65d4a39346f6d8e3ab0b
2023-10-11 18:24:02 +02:00
Milo Ivir
01922e6c55 Translated using Weblate (Croatian)
Currently translated at 99.8% (524 of 525 strings)

Co-authored-by: Milo Ivir <mail@milotype.de>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hr/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6ce5be9af96f7298f48a88c6e22ed46cc22e87df
2023-10-11 18:24:02 +02:00
gallegonovato
0626607d9e Translated using Weblate (Spanish)
Currently translated at 100.0% (525 of 525 strings)

Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/es/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If739719ada0d1ef7ca67c75c2b54ace9b07a91f0
2023-10-11 18:24:02 +02:00
Pedro Pinto Silva
54348fb2ca Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (525 of 525 strings)

Translated using Weblate (Portuguese)

Currently translated at 100.0% (525 of 525 strings)

Translated using Weblate (French)

Currently translated at 100.0% (525 of 525 strings)

Translated using Weblate (Czech)

Currently translated at 100.0% (525 of 525 strings)

Co-authored-by: Pedro Silva <pedro.silva@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/cs/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/fr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pt_BR/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7834a95d77c55037d72b4afee337eb831df6c09e
2023-10-11 18:24:02 +02:00
Andras Timar
0cfdb87362 exclude debug/dev files from production packages
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ic9b49a401b63af65f4e53e3eb2584b8258575c2a
2023-10-11 16:45:26 +02:00