Commit graph

22084 commits

Author SHA1 Message Date
Rob Pearson
b26d54cfb0 Translated using Weblate (English (South Africa))
Currently translated at 100.0% (530 of 530 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (530 of 530 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (530 of 530 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (530 of 530 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: Ie623c4118e067b5cd367ceff61e6bf0cd27bd17c
2023-10-26 09:35:50 +02:00
Szymon Kłos
393867f25e notebookbar: a11y: cond format submenu focus & navigation
- focus when opened
- add focus cycle
- convert to grid view

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I86592abb23c1dbe2e7e36d09b46fe0c23957539f
2023-10-26 09:19:24 +02:00
Szymon Kłos
4e0a2a86b0 notebookbar: add more cond format styles
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I57a3e0aaf35a91b1d307b43c90758dd483e6996e
2023-10-26 09:19:24 +02:00
Szymon Kłos
5c449425aa notebookbar: add data bar cond format submenu
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8151a9bf3d5befc0c36a4849f149c348b3ee7e80
2023-10-26 09:19:24 +02:00
Szymon Kłos
82abf2f3b1 notebookbar: add color scale cond format submenu
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I90f403abaf381d9b4afe93d62bebb3e5b888c381
2023-10-26 09:19:24 +02:00
Szymon Kłos
9a9e856c28 Make cond format submenu reusable
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I208efec5ff08ff5af062a367d9a3e335cb9c5fd3
2023-10-26 09:19:24 +02:00
Szymon Kłos
b08a2526ed jsdialog: convert icon set popup in notebookbar
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I51d4f99e0f28a3b1689099d4620c3587cc162430
2023-10-26 09:19:24 +02:00
Szymon Kłos
c28dcea3c1 jsdialog: custom dropdown anchor
submenus should be opened next to the previous level
on the right side in LTR mode. without that change
we had submenus just under previously selected entry.

anchors "top" and "end" were implemented

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I5b3b677c2347664f4ab97aab3a04da5fe72e3bff
2023-10-26 09:19:24 +02:00
Szymon Kłos
4950f3e8a2 jsdialog: multi-level dropdowns
It is possible to make submenus:
{text: _('Condition...'), items: [
   .... sub-menu entries ....
]}

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0a6687c0a6bc19b4cd6616005571b75ad41eb444
2023-10-26 09:19:24 +02:00
Szymon Kłos
c77f1041a5 jsdialog: implement horizontal separator
it is used in dropdowns eg. conditional formatting in Calc

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I19554c74de2fa861686469acbf2c3025633d0687
2023-10-26 09:19:24 +02:00
Szymon Kłos
ab0867069a jsdialog: use dropdown util for conditional formatting
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2cccfc34be1293934611457cbb05cb200f369cc4
2023-10-26 09:19:24 +02:00
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
Caolán McNamara
e0c161c17b These warnings are frequent but harmless
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: Id2517f310a1df71dc1357d103ea074bdd12e7e65
2023-10-25 20:08:20 +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
d9d13d7092 wasm: support serving wasm files
Updates README with instructions.

Change-Id: I5188d3ca267ff88a956dc17f302a70bda1046266
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-10-24 21:33:02 -04:00
Ashod Nakashian
184a4a522e killpoco: replace HTTPResponse in sendFileAndShutdown
We now use our http::Response in HttpHelper::sendFileAndShutdown.

Change-Id: I77503fce7a66a11435bad896d3d5d6df611544be
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-10-24 21:33:02 -04:00
Ashod Nakashian
c3fb1d0dde wsd: helper to serialize pairs
Since we don't want to propagate Poco types
as well as our pair containers, it's best
to have these are named functions rather
than as operator<<.

Change-Id: I9772b8f314262147b6c445464bf3ce8cb598b56d
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-10-24 21:33:02 -04:00
Ashod Nakashian
bd056aef91 wsd: test: proper parsing of http header in UnitHttp
This removes the literal string comparison of the
received http header with proper parsing and
comparison.

Change-Id: I383794aa1dc791632ec9d5ed2191880a57d457ee
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-10-24 21:33:02 -04:00
Ashod Nakashian
6ed5dc9a64 wsd: http: no need to pass the mime-type explicitly to sendFile
Since we already have an http response instance (in all but
one case, prior to this change), there is no need to pass
the mime-type explicitly to the sendFileAndShutdown
function, only to set it on the http response.

There are already too many arguments and the mime-type
is surely redundant.

Change-Id: Iab64074dc111573b87fb8fa9b907c26a4160910c
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-10-24 21:33:02 -04:00
Ashod Nakashian
0c59eda780 wsd: http: use named HTTP status-code instead of naked int
Self-documenting, less error-prone, and searchable.

Change-Id: Ifc21d7cf5512d9a63c5d5bc10ebc003fcccc93c1
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-10-24 21:33:02 -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
Caolán McNamara
3a9089ea95 cid#318929 Big parameter passed by value
this is called from only one place where the arguments are already
passed by const reference, i.e.
void AdminModel::addDocument(const std::string&, ...  const Poco::URI& wopiSrc, ...)
so might as well forword as const reference and construct the copies in
this ctor.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I4fe0ed4a4dd8cb71aa970798760d8488be68f82b
2023-10-24 09:23:47 +02:00
Caolán McNamara
80566a9bfe cid#318836 silence Resource leak
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I57255fe9fd13558a4edf2edd06681c7f08b25e51
2023-10-24 09:23:47 +02:00
Ashod Nakashian
9ad6a69086 wasm: improved build instructions in readme
Change-Id: I420891a555ef4b51304cff26fdcab2ba0bc5fbdd
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2023-10-24 09:20:32 +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