Commit graph

3468 commits

Author SHA1 Message Date
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