Commit Graph

4763 Commits (master)

Author SHA1 Message Date
Pedro Pinto Silva 28cd22e792 Mobile: Formulabar: inherit more from desktop, remove negative value
- Inherit padding from #formulabar desktop, a single dimension instead
of placing different margins/padding across mobile
- Fix alignments
- Use css vars for buttons sizes

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I21110e43115576a212d29b1a55268fbeed6d52af
2024-05-06 15:39:59 +01:00
Pedro Pinto Silva d526ee1031 Formulabar input, cell address input, AutoSum: Fix sizes discrepancies
- Remove individual sizes
- Rely on the same single size digit that comes from the parent
  container
- AutomSum button should not inherit buttons height
- Fix jumping buttons: Cancelformula (close btn) should be placed
  exactly where equal ("=") was before

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I6c5a40709051ace3313195f4491798429eb5f6a0
2024-05-06 15:39:59 +01:00
Pedro Pinto Silva 7a83489abe Formulabar: Fix address input field not being targeted (css)
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ifdd449bcedb5049eae281b9b5e882b410290a7ee
2024-05-06 15:39:59 +01:00
Pedro Pinto Silva 30d3313342 Formulabar: Fix buttons jumping position
Before this commit the buttons would jump position between default
button group and cell edit mode button group (when acceptformula and
cancelformula buttons appear)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I5411f145a9f4f4d2dd10a4278105447a52755815
2024-05-06 15:39:59 +01:00
Pedro Pinto Silva 23db285fa4 Formula bar: Fix alignment, avoid individual margin for each button
Better to rely on grid gap or somesuch

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I50e59d1b3464687a0bba76bf54a0ed2412dc3758
2024-05-06 15:39:59 +01:00
Pedro Pinto Silva 9e87e8ca70 Refactor: CSS: avoid generic formulabar rules
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Idfc850615026dcf06bb1f27c4adbe8f33b6f9bee
2024-05-06 15:39:59 +01:00
Szymon Kłos 05ed084481 Show run presentation icon in Impress slide sorter toolbar
This fixes regression from commit ae5e33b30c
remove-w2ui: convert presentation toolbar to JSDialogs

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2f7c34369f1d2683be481fb466656b972de50cd4
2024-05-06 14:16:41 +02:00
Szymon Kłos 58e5208027 Fix buttons visibility in formulabar on cancelformula
Make code more deterministic by removing old hacks with
timeout and cursor detection from:
- 6037d52
- b62320c

Bug was that on desktop when we were in formula edit mode
and we clicked cancel button - it was not showing again
the regular buttons but instead it was showing the
accept/cancel buttons.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I1a51920e99f4902c1dbb62b0eab6e4f2edc932ce
2024-05-05 21:22:55 +02:00
Szymon Kłos c817690f8d jsdialog: hide unused linkbutton
this is shown after commit cf0a6f4
jsdialog: add "linkbutton" as an independent widget

it wasn't there before

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ibdf8a9eb7f226740c11e8a34c16c7be4177576e6
2024-05-05 20:04:55 +02:00
Darshan-upadhyay1110 e88d9340a0 Fix toolbar up section after w2ui rework
To make consistent all toolbar element height with prev version where we were using w2Ui lib
- i have added height to table-row element same as we had in prev version
- remove fix height for toolbar-up which is not needed now
- this fix height will effect the bg-color in toolbar-up section

Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I7b307a6a72968ed81fe2eb8663c430f11e3b3ced
2024-05-02 13:55:25 +01:00
Pedro Pinto Silva caa132c386 Fix calc-mobile top toolbar and formula bar which are broken
Pedro :
This changes from flex to grid (so we can have multiple columns and 2 rows)

Darshan:
    - adding one more div and wrap all child of toolbar-wrapper execpt 'formulabr' will work here
    - i have tested the css grid approch it is breaking the mobile UI in Calc
    - here i have changed a bit in html and twiked css which covers all cases

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ia50fda95e2bef57d707bb4be1dd34e2ec083bfc5
2024-05-02 13:55:25 +01:00
Pedro Pinto Silva f003bb3b8a Mobile: Hamburger and back btn: Fix height after table to div
With "Change table layout to CSS base table structure" and "Adjust
table elements for mobile view." changes we now have more divs instead
of table elements but with that the hamburger menu is now mislaigned
   - Fix height
   - To do: ideally we would make both hamburger menu and the button
   at its side rendered with the exact same structure which is not the
   case. And ultimately remove height and just have it flex stretch etc

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Id9365df82f1caff132dde41760a06689ec1145d1
2024-05-02 13:55:25 +01:00
Pedro Pinto Silva 82f2e01175 Mobile: remove legacy hamburger (opened state) rules (css refactor)
No need to specifically set width and height for .menuwizard-opened
state. Best to set only one time those dimensions and just inherit
from #toolbar-hamburger no matter the additional css class

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I51eafc6c9b05b843d800b40a990aefd912e463f8
2024-05-02 13:55:25 +01:00
Darshan-upadhyay1110 872ac5ad29 Adjust table elements for mobile view.
- we changed table structure of `toolbar-wrapper` with `div`
- so we also need to consider mobile view
- made some neccessary changes for mobileview because of structure change in cool.html.m4 ('toolbar-wrapper')
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I91cd2c3ffbb0d625a78852398f6773136e9a7f6b
2024-05-02 13:55:25 +01:00
Darshan-upadhyay1110 dd3df946e1 Change table layout to CSS base table structure
- For the editor in the home view, a layout table is used, and it includes the use of IDs. This can
potentially lead to issues with the interpretation of content by assistive technologies
- Layout tables are
meant to structure the layout of a page and should not contain structural markup like th , caption ,
summary , headers , or id.

Solution:
- replace `td` and 'table' tag with `div`
- make some changes on css to be consistent with our prev design
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I136cd8d51b2e5035c6ef4292f759f49519e5bd61
2024-05-02 13:55:25 +01:00
Henry Castro 273e9c15a8 browser: preview: simplifiy _resize function
The _onScroll request the visible previews.

..

Change-Id: Ib5370f1790b489edb4626a22bf6c5bb1cd8d0f17
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-05-02 08:15:53 -04:00
Henry Castro 8da4031073 browser: preview: update 'createPreview' function
It only initialize the initial preview width and height,
the _onScroll function will request the visible previews.

Change-Id: I7e04ea93f85a9270d09b241dc14391be214080a4
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-05-02 08:15:53 -04:00
Henry Castro 3efeae0484 browser: preview: remove unused console logging
Change-Id: Iebe938767ec1c162fe1119f32ba1f7847f6226d5
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-05-02 08:15:53 -04:00
Tomaž Vajngerl cf0a6f4a2f jsdialog: add "linkbutton" as an independent widget
This depends on the core change, which separates the linkbutton
widget from fixedtext widget as it is already an independent widget
in "weld" and used in accessibility checker. Adds "clicked" event
that is triggered when the text is clicked and send to the core.

Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
Change-Id: I4a999f3e57aaa7950482c55defa3012346351cb1
2024-05-02 10:38:21 +02:00
Tomaž Vajngerl eed0dadff3 Adds a11y checker sidebar
Enables the accessibility checker sidebar, changes the icons from
the old name to the new name (as it depends on the UNO name) and
adds the UNO command to enable the sidebar.

Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
Change-Id: If9aeb375ec87ef27d4dead5f3148bc40f01db976
2024-05-02 10:38:21 +02:00
Darshan-upadhyay1110 a7a541ad14 initializ UI after server reconnection
- Non-edit mode does not intialized after server reconnection
- this patch will fix initializedUI after reconnection
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I43405067287dd3f7f134fc9dcabfdcae183724ce
2024-05-02 09:57:46 +02:00
Rashesh Padia fcc34f061a fix: can't reconnect and get to edit mode after full server shutdown
- regresssion from 464358ca70

Signed-off-by: Rashesh Padia <rashesh.padia@collabora.com>
Change-Id: If2b20c7960e3c242064fc04425b4f893612f6362
2024-05-01 16:23:02 +02:00
Pranam Lashkari 1f66dcf831 calc: fixed js console error
problem:
when try to edit any cell for the first time,
there was console error due to undefined variable

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I8a29ad6e0e6243cc55175be0173eceb80bfea877
2024-04-30 15:36:18 +01:00
Darshan-upadhyay1110 e45e31949d Remove '-input' string because we append that in _editControl & correct all getElementById which uses the Input element
- Because we have appended '-input' to add ui-edit-control in jsDialog builder filer
    - now we do not need any id/string which have '-input' at very end of that element

    - for some cases we need correct GetElement by ID in js files

Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: Id9b4f53e8deaa2f26c6abc93dc80504895107bd0
2024-04-30 14:54:21 +02:00
Darshan-upadhyay1110 dd445ad4d1 Wrap input[type='edit'] with a parent div
- To unify editControl, added additional "parent" for edit's input
- this will be consistent with other input type controls
- and will help to establish link between lable and input[type='edit']
- changed parameter from input to it's input container which will help to pass correct ID to Core

Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: If5ab78bdf3d3ad61438898f5e4cacc19bd2ecb63
2024-04-30 14:54:21 +02:00
Szymon Kłos ec63d9c032 css: fix button-box alignment
in 24.04 more elements are grid now, it seems to be a
regression in button box:
1. enable macro execution in coolwsd.xml
2. open spreadsheet with macro
Result: you see the dialog with buttons in 2 rows
Expected: all buttons are in the same row

it seems to be missing grid placement for left and right sections

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic1a3479114e4f832e852b9bdf3d39d2669ae69bb
2024-04-29 21:54:14 +01:00
Julius Härtl b0b73d2794 fix(browser): Emit proper UI_PickLink post message
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Change-Id: I635780723b98887e6c35a397940cc2517a6a9025
2024-04-29 19:13:35 +02:00
Pranam Lashkari ae27e8291c macro: open document without macros enabled
problem:
when user selected disable macro in the opening dialog
document used to close and return to integrator
but now cancel button in csv import dialog is hidden,
so no need to distinguish there and we can continue to load without macros
In addition we still close the file if user clicks "X" button on title bar

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ie0c7d77954e099cb3c8a72c400c688b3ae1343c7
2024-04-29 18:59:12 +02:00
Skyler Grey 1895938524 calc: zoom: Stop leaving blank areas with freezes
Previously when there was a frozen pane we calculated an incorrect
size on the unfrozen pane, leading to slight blank edges when you were
mid-zoom-out.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Id26f6ba815429addd0cdf3af37f5c54363a08b2b
2024-04-29 18:35:43 +02:00
Skyler Grey bb9be7abb8 Make freeze shadow appear/disappear mid-pinch-zoom
Previously when panning with zoom, the freeze shadow would stay in its
initial state (either hidden or shown) whether or not it should actually
be shown at the current position.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Ic0d05c1204b1e15abbb6d8ad34235206fdc7740c
2024-04-29 18:35:43 +02:00
Skyler Grey 227bf6de6b Make freeze shadow move with a pinch-zoom
Previously the freeze shadow would stay where it was, creating a hard
edge and confusion about where was frozen. With this change, the freeze
shadow moves with the zoom.

This change needs a followup to show/hide the shadow when we reach/move
away from the document edge.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I8bec41be6ce5eff3c1bfd3ac0234b6d53833614b
2024-04-29 18:35:43 +02:00
Pedro Pinto Silva f50d5a1303 Custom properties dialog: fix grid and misalignments
- Fix alignment between rows by:
  - Setting some of the columns' width
  - Removing margin from all buttons & set width. Add column gap
- Fix vertical alignment
- Fix header alignment (Name, Type, Value) so it aligns to the content
- Make "Add property" occupy full width (ideally this button would be
  part of the inner grid "last row" but for now this is already an
  improvement)
- Remove lengthly css targets and the use of nth-child

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I85d9bdbcc365c735757ee086f6e4912d694a011c
2024-04-29 15:21:06 +01:00
Hubert Figuière 978dc59ce1 calc: Implement hiding the grid lines
Fixes #8066

Requires https://gerrit.libreoffice.org/c/core/+/166647

Signed-off-by: Hubert Figuière <hub@collabora.com>
Change-Id: I2196e1a8e654a8afd20519b18f00cefafa048f2c
2024-04-29 14:42:18 +01:00
Henry Castro 91b082fb44 browser: preview: fix invalidate previews when resize
Change-Id: Ic4f4a2cc9e98134564e0a9015b0d4c99bad66e08
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-29 07:39:52 -04:00
Henry Castro 53d702b717 browser: preview: remove unused code '_isPreviewVisible'
Change-Id: Ie7c4a8d4909837888db31952dee8a190a0d332c5
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-29 07:39:52 -04:00
Henry Castro c2f4c999ae browser: preview: remove accessor hack
Change-Id: Id936503eade75aba9d9a4772a9dcdd3e5ed4742f
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-29 07:39:52 -04:00
Henry Castro df0ec74f9c browser: preview: replace missing 'preview_placeholder.svg'
.

Change-Id: Ic12df42d1b7bdc79377c9cb5f52f819f0d5083f1
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-29 07:39:52 -04:00
Henry Castro a1c976f913 browser: preview: simplify 'updateAllPreviews'
Change-Id: I0d7c3877924544064bafc3ca93c887329b04a245
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-29 07:39:52 -04:00
Rashesh Padia 7a75153290 fix: zotero options not visible when viewId is zero
- regression from 9202365fc6

Signed-off-by: Rashesh Padia <rashesh.padia@collabora.com>
Change-Id: I4554a5fcc9b0c5dce48c8b35ea32142ff1c323f3
2024-04-29 10:28:54 +02:00
Gökay Şatır 1a1835bd90 Remove "updateResolvedState" function.
It sets a reply's status to "resolved" only if its parent is resolved.

I can't remember why we implemented this like this before.

But now, we don't need to.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ia31dab0237d3b89e5d391cf87394514d18b595f7
2024-04-29 11:09:36 +03:00
Gökay Şatır e43d988084 Fix typo. Causes JS error.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: If2ffdf4d561d34f3febc6c976e7427621c5cdf79
2024-04-29 11:06:01 +03:00
Miklos Vajna c559e2fc5e cool#8806 clipboard: fix paste special of images in Firefox
Copy an image to the clipboard, click Paste -> Paste special on the
notebookbar in Firefox: the image is pasted, but the paste special
dialog doesn't close.

What happens here is that Firefox lacks navigator.clipboard.read(), so
the relevant code is Clipboard.js dataTransferToDocumentFallback(), not
the new _navigatorClipboardGetTypeCallback(). Here e.g. copy from
desktop Writer (html+text) would lead to a _doInternalPaste(), which
would call _checkAndDisablePasteSpecial() for us, but the image case
returns early, so the closing doesn't happen.

Fix the problem by explicitly calling _checkAndDisablePasteSpecial()
before returning early.  In contrast with the other uses of
_checkAndDisablePasteSpecial(), we don't need to call the paste or paste
special uno command (since _asyncReadPasteImage() takes care of pasting
with a websocket comment), so it's fine to ignore the return value.

No testcase, our cypress tests run on Chrome, and this happens only with
Firefox.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I751d234edfdf9e8fb37f2bf2d6b3f3d8e65a27f4
2024-04-29 08:52:53 +01:00
Aron Budea d471d93c1e browser: Add correct class to Share / See History buttons in Impress
...as in other tabbed bar JS files.

Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: I29c43d9dc0ce4fa929e049e70171e0b8ab029088
2024-04-27 02:00:44 +02:00
Szymon Kłos d1a58af640 css: fix insert shape popup
insert shape now shows all the items in one column.
fix it so we have rows

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I371f7fa233e46a62dbb6637d934bc5ceb5cdecb0
2024-04-26 15:26:48 +02:00
Pranam Lashkari 1a287fd96d annotation: avoid resizing editing comment
problem:
when you try to reply to long comment, it would be resized
and subsequntly reply box will take space and other comments
will not make enough space for it

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I4d81904721e5bb196947598d0dca211ee9d480a6
2024-04-25 20:27:25 +01:00
Pranam Lashkari fe9b582275 annotation: fixed comments could not expand
problem:
when comment was on the edge of the document/screen(vertically)
resize was called which ultimately collapsed the comments in small screen
which could not be expanded unless scrolled further from edge.
It was more problematic for the threads,
if entire thread could not fit in the screen it was always failing to expand

regression from bac4161

it nullifies the effect from 81b00e7
now if comment is added at the end of the document and it goes beyond doc boundry
doc will not scroll automatically to make entire comment visible

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I198b4887ae19ca0c17ba1453960cd36a66beb04d
2024-04-25 20:27:25 +01:00
Pranam Lashkari 0c2247213e annotation: fixed thread scrolling to root comment on action
problem:
when long thread did not fit on screen and actions were performed
on last comments of thread which put root comment out of view,
it will cause scroll back to root comment (i.e: reply)

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I23d699425dc2dff1cfeddf6ab9be7131f80c3a31
2024-04-25 20:27:25 +01:00
Pranam Lashkari 38efd68c14 annotation: avoid explicit unselect before select
select function now can take care of reselection and layout update

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I2a061643ec190d5b2d005b940923a28131ed6cb0
2024-04-25 20:27:25 +01:00
Pranam Lashkari e443f940d1 annotation: make comment section scrollable with mouse
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ib6a2fee7ace81ffbc82ec4545e6f613f79c6734f
2024-04-25 20:27:25 +01:00
Gökay Şatır e0a0646ce1 Use app.file.textCursor.rectangle instead of map._docLayer._visibleCursor.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I9108d5b3281cf6d2c904d227880e451b608d8d37
2024-04-25 15:42:35 +03:00
Gökay Şatır a3abadc17e Use "app.file.textCursor.visible" instead of "map._isCursorVisible".
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Iedb841ec64b4fa72511603ac7e43c997676da837
2024-04-25 15:42:35 +03:00
Gökay Şatır 95d1b6d3ca Rename app.file.cursor to app.file.textCursor.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ic81a775efb6592e81f52e8b2a6789ac5a90c761c
2024-04-25 15:42:35 +03:00
Miklos Vajna fa6d8f6dde cool#8806 clipboard: improve detection of HTML that's just an image
Copy an image in Firefox, paste in Chrome with the Paste button or with
Ctrl-V. Nothing happens in Calc, Writer gives you a popup to copy the
image, which is already the case.

What happens is that Clipboard.js already had some code to guess when
the HTML only contains an image, but while Chrome puts '<img ...' to the
clipboard, Firefox puts '<meta ...><img ...', so we don't recognize the
content as image.

Fix the problem by adding a new isHtmlImage() function to Clipboard.js
that handles both markups and use it from both places that deal with
paste (Paste button, keyboard).

Note that this manual parsing is needed, because the input is user
provided, so DOMParser or innerHTML would not be safe.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Ia1340cd3777c5597e3fd257e905e9cc637802bcc
2024-04-25 08:33:49 +01:00
Skyler 8510db5560 iOS: stop keyboard pushing content offscreen
Previously using the onscreen keyboard would shrink the visual viewport
while leaving the elements at the same size, meaning some of the content
had to be offscreen. As we scrolled the page to have the cursor in view,
this would move the notebook bar offscreen.

To avoid the possibility of the cursor leaving the screen or the bottom
toolbar being offscren, we can use the VisualViewport API to force the
logical viewport to have the same size as the visual one

This won't have an effect in iframes as the logical and visual viewport
in iframes are always the same, and we already scale to 100% height by
default anyway

Signed-off-by: Skyler <skyler.grey@collabora.com>
Change-Id: I07726bee8b61334f6a32e873ab2d5428fa60dca3
2024-04-24 21:53:19 +02:00
Attila Szűcs 4566ee65d1 writer: fix annotation size regression
Hidden contentNodes (in annotation) may become visible during resize.
Looks like setting style.max-height also change style.display.

Now i set it only if style.display is not none.

Signed-off-by: Attila Szűcs <attila.szucs@collabora.com>
Change-Id: I30f2eb75cb3ccb5b43044cef856314b0e35b9300
2024-04-24 19:59:26 +01:00
Attila Szűcs e02ae8be7a writer: resize comments based on space
Make comments window bigger, if needed, and possible.
Selected commits grow up to MAX size, even if there is no space for it.

There is 2 constant limitation:
MAX - --annotation-max-size this is the maximum size commentText window
can grow. If the comment have more text, than it will have scrollbar.

MIN - --annotation-min-size if there is not enought space, but comment
have more text, this is the minimum size of commentText window.

note: commentText window can be smaller then MIN, if it has less text.

During doLayout:
first, in resetCommentsSize comments size resets to default.
(max-height = MIN size.)

after comments positioned with loopUp / loopDown,
resizeComments check all comments (maybe it could be optimized)

If a comment have more text as its actual size, then
it check the space between this, and next comment..
and resize this comment.

If there is not enought space after the comment, then
it check for more space between this, and previous comment, and
resize + move up the comment as much as needed.

Signed-off-by: Attila Szűcs <attila.szucs@collabora.com>
Change-Id: Ie7b0971febd8c965b01ebe23125eac4eded1a742
Signed-off-by: Attila Szűcs <attila.szucs@collabora.com>
2024-04-24 19:59:26 +01:00
Henry Castro 97f82d0a72 browser: preview: change place hoder to svg
spinner pre-loading previews

Change-Id: Ib6316d58da60fb537e238f93981f0cc8294f6885
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-24 12:05:29 -04:00
Henry Castro 780b5a8e67 browser: preview: simplify "layoutPreview"
Change-Id: Ia7b478cd14901e877dece81b57f418e8bdf1668b
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-24 12:05:29 -04:00
Henry Castro 7d96728081 browser: preview: remove more unused code
Change-Id: I6431ee0093c006d142c2c0d3561a36ec31ba94f0
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-24 12:05:29 -04:00
Gülşah Köse 1d84071fc5 Prevent opening multiple tooltip on drawing area widgets
We see multiple tooltip problem on drawing area widgets.
Example case:
    Add basic shape into a writer document
    Right click on shape and open Position and Size dialog
    Select the Rotation tab
    Hold the rotation angle widget and drag around itself
When you inspect the "Rotation Angle" tooltip, count may be 600
We expect only 1.

So we prevent to show another tooltip if we have already one.

Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com>
Change-Id: I2f548f8c7afce8095e83a6faa3722e164f990210
2024-04-24 17:07:03 +02:00
Gökay Şatır dc7b6d93a3 Add HTMLObjectSection for using for icons.
Replace dropdownmarker with an instance of HTMLObjectSection, which doesn't use lat/lng.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I152ed3ea4120c0682d057b2beedd4e5d8910da17
2024-04-24 16:44:43 +03:00
Szymon Kłos 1bc804deda remove-w2ui: remove css
it is not used anymore: see commits with remove-w2ui prefix

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ifc0034dcb28455204e490d0d21e97af22d3c8ae8
2024-04-24 10:57:31 +01:00
Szymon Kłos f00176aabe remove-w2ui: replace w2ui-scroll-wrapper
And add self made ui-scroll-reight/left items with
primary color tiangle. We should replace it at some
point with something more pretty.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I67530c6352b8356214399f324b55bbf9bc24f876
2024-04-24 10:57:31 +01:00
Miklos Vajna 28e51d58f4 cool#8648 clipboard: stop fetching the clipboard on text selection create in tests
This was just a workaround to keep tests working till they are fixed to
not assume we do an implicit 'copy' as soon as we have a text selection.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I37d16ee2841c41593a5af2fb6ceba025fe1c79e0
2024-04-23 14:17:10 +01:00
Aron Budea 1ff9451754 Browser: Duplicate Repair option in Impress tabbed bar
...and remove duplicate code.

Regression from c9ef8c3015

Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: Ib992d2c169d3e40f9cab670935696ab2899c639c
2024-04-23 10:40:19 +02:00
Skyler Grey f21031c998 mobile: Use SavedUIState=true
SavedUIState is a ui_defaults option to ignore any user preferences for
state when loading, it was added in
https://github.com/CollaboraOnline/online/pull/7575

We need to set SavedUIState explicitly on mobile, which the following
pulls do for iOS and Android respectively:
- https://github.com/CollaboraOnline/online/pull/7908
- https://github.com/CollaboraOnline/online/pull/7912

Unfortunately, setting it to false can cause some nasty bugs, such as
inability to change theme to light. It also intentionally ignores user
preferences when you reopen a document, but this isn't particularly
desirable on mobile.

I believe it to be an oversight that the option was set to `false`
rather than `true`, as `true` was the behavior before the ui_default
option was added and neither change gives a reason for it to be false
rather than true.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I30ce445db1b7e69a3b44eec3fb4689c463233b1f
2024-04-23 08:20:35 +01:00
Darshan-upadhyay1110 258c5c0ce6 Remove extra grid cell space from header in autofilter child popup
- we need to also consider `th` tag to make it display none
- it's a empty text span so do not that extra space.
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: Ib83d42f64a0115fdc4d17a8f7e952419a84cc9d5
2024-04-23 08:45:00 +02:00
Parth Raiyani 0f749d45a8 Removed NBSP while coping info to clipboard
Signed-off-by: Parth Raiyani <pmr642001@gmail.com>
Change-Id: I2566a4902ed36e53ad2acfbe1c32efccb04bddda
2024-04-22 17:02:55 +02:00
Pranam Lashkari 5525ffab36 annotation: refectored reply node count code
now reply count node  multipurpose, it also indicates
if a comment which was being edited is collapsed

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I18a676885deea0afa30eb20505a76239e11c5493
2024-04-22 14:43:08 +01:00
Pranam Lashkari d663e4a6b3 annotation: indicate if comments are in edited state while collapsed
problem:
when in small window, comment was autosaved,
it wasn't collapsed but would hang on the edge of the screen half visible.
We can't collapse the comment directly as user will not be able to find again
which comment was being edited.

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I9393e7f2b53d8ea37273cc2290cc74636c514cb5
2024-04-22 14:43:08 +01:00
Gökay Şatır f64a5c3310 Remove unused functions and notes, improve a comment.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ic62f276983614bfbc56b50e3b0f37b1ea82c4d1a
2024-04-22 16:38:32 +03:00
Gökay Şatır cfeba70dab Lat / Lng Removal
Remove _cellCursor and use app.calc.cellCursorRectangle -> SimpleRectangle.
Turn _prevCellCursor,_cellCursorOnPgUp, _cellCursorOnPgDn into SimpleRectangle.
Remove horizontalDirection and verticalDirection calculations. They are not used. Also remove them from _onUpdateCellCursor function.
Use app.calc.cellCursorVisible instead of empty rectangle checks.
Set variables to null to re-init them instead of assigning them empty rectangles.
Push lat/lng usage through markers (leaflet things).

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I4b258a72f1ac3c94ccf25a07d0e7dab232165b90
2024-04-22 16:38:32 +03:00
Darshan-upadhyay1110 89a7742206 Add color image preview in autofilter dialog for filter by color option
- it's not user friendly to just see color code with a radio button.
- this patch will show color image preview for filter by color options according to the color code
- it will applied only for dialogs with filter using color codes in `Autofilter`

Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: Ifc67a2692df5c9b5c332c8a15d5ad92cde4f4bf8
2024-04-22 14:14:58 +02:00
Pedro Pinto Silva ce0536eae5 Use the same tooltip style and framework for doc name & close button
Before this commit, in both cases we were not using tooltip
method (which is used everywhere) thus, resulting in inconsistent
tooltip styles, sizes and no animation (these ones were just native
browser tooltips)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: If7f6213f507f5c439ceaaeb1c713c7680cf563d5
2024-04-22 12:23:17 +01:00
Pedro Pinto Silva 41063ceafb Fix unobutton's lack of pointer cursor
Before this commit buttons such as bold (in the notebookbar) or
sidebar button (in the top toolbar) would not change the cursor on hover

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ief075b4f4d187f6a5d87458d02077c0deaf69fe6
2024-04-22 12:23:17 +01:00
Henry Castro f17bdc679f browser: preview: remove unused code
The code is old and it is not used anymore by
new changes did it.

..

Change-Id: Id163cba7f586e3a083bff4cbb169a5d16e4b0cce
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-22 11:10:47 +01:00
Shavazo dd6760ca96 Translated using Weblate (Japanese)
Currently translated at 77.0% (451 of 585 strings)

Co-authored-by: Shavazo <pleasure.7010@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ja/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4ca32cd89ee8115aa9bc48db69f3122755017d9e
2024-04-22 08:21:16 +02:00
Ettore Atalan 861da42d71 Translated using Weblate (German)
Currently translated at 100.0% (478 of 478 strings)

Translated using Weblate (German)

Currently translated at 98.6% (577 of 585 strings)

Co-authored-by: Ettore Atalan <atalanttore@googlemail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/de/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/de/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I98466f744ddb6f459c86b0163684e742fc9f2470
2024-04-22 08:21:16 +02:00
Hubert Figuière 46f32423da impress: Allow presentation in read-only mode
- We allow the slide menu and the few presentation commands

Signed-off-by: Hubert Figuière <hub@collabora.com>
Change-Id: If2533450a3b2af365a89f780dca32daf87c0758a
2024-04-20 10:36:12 +01:00
NamelessGO a4db9b7a65 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (585 of 585 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (478 of 478 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (478 of 478 strings)

Translated using Weblate (Portuguese)

Currently translated at 100.0% (478 of 478 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (585 of 585 strings)

Translated using Weblate (Portuguese)

Currently translated at 100.0% (585 of 585 strings)

Translated using Weblate (Spanish)

Currently translated at 100.0% (585 of 585 strings)

Translated using Weblate (Portuguese (Brazil))

Currently translated at 100.0% (110 of 110 strings)

Co-authored-by: NamelessGO <66227691+NameLessGO@users.noreply.github.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/es/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/pt/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/es/
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/Android app
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I566f62d87df721abcd9ebb2fc780a9df71f232ed
2024-04-19 16:08:46 +02:00
Sebastiaan Veld b4a949c66f Translated using Weblate (Dutch)
Currently translated at 100.0% (585 of 585 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: I424b6e2dba4947073c21b20975458a6be4365a5e
2024-04-19 16:08:46 +02:00
Yaron Shahrabani 937cb0079e Translated using Weblate (Hebrew)
Currently translated at 53.1% (254 of 478 strings)

Translated using Weblate (Hebrew)

Currently translated at 52.9% (253 of 478 strings)

Translated using Weblate (Hebrew)

Currently translated at 100.0% (585 of 585 strings)

Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/he/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/he/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I45cf1906cca418011e62178e2d6064949707c63b
2024-04-19 16:08:46 +02:00
Oğuz Ersen d26428d250 Translated using Weblate (Turkish)
Currently translated at 100.0% (585 of 585 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: Iaa3fa75a694e85196e81b080e27a531a806936a1
2024-04-19 16:08:46 +02:00
Matthaiks fd3d39e484 Translated using Weblate (Polish)
Currently translated at 100.0% (585 of 585 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: Id8aa995f80f4331406b7030d58c42e25a7e84bda
2024-04-19 16:08:46 +02:00
Andras Timar da532b947a Translated using Weblate (Hungarian)
Currently translated at 100.0% (585 of 585 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: Ia6b0c2ceea1bfd5ab791d56c051ab1c579fe89a4
2024-04-19 16:08:46 +02:00
Pranam Lashkari 77f71b3b0b annotation: do not scroll to root comment while editing
problem:
if comment thread is very long and some action is
performed to the last comments which puts root comment out of view,
entering modify or reply mode will make scroll to root comment.
This makes editing comment/reply go out of view

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I99f8df6886a69242b3db92674516678a61d2904f
2024-04-19 14:45:52 +01:00
Pedro Pinto Silva d84e76a841 Writer, Impress Insert tab: Annotation & Remotelink to similar place
- Make the Insert tab : insert annotation in similar place between
apps
- Use the same accesskey (accessibility, shortcut) in between apps and
the same as the one used inside of Home tab
  - Writer: Insert tab
    - Insert annotation: Add missing DE accesskey
    - Insert remotelink: Add missing accesskey
- Make both insert tabs more compact by making sure hyperlink and
remotelink stacked on both apps

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Icb8c512d437a8c328e6acf2cc41fc335d660af26
2024-04-19 14:03:36 +01:00
Pedro Pinto Silva 0bc4daa15c Writer, Impress Home tab: Promote insert annotation to bigtoolitem
- Promote to big button
  - Use the same from the previous position to make the whole tab more
  - compact by changing the insert image to a simple toolitem
- Change location in the home tab so it's easier to reach and it's
more consistent between writer and impress
- Use the same accesskey (accessibility, aka shortcut) between both apps

Cypress top_toolbar_spec.js needed to be updated to make sure scroll
indicator do not cover when attempting to access it

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I0b3f3b83772317263c9d5d3d0e7f35d831eaa1ed
2024-04-19 14:03:36 +01:00
Skyler Grey 914e3575d1 Use existing viewId in commentListSection avatar
In 79028c6f88 I replaced an instance of
using this.map._docLayer._viewId as if the user is not in the document
this becomes your own view ID and shows the wrong avatar. Unfortunately
I missed CommentListSection which has the same code.

As we already have a viewId fetched a little later down, I opted to use
it rather than get another myself

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Ieda06e03902effe9be8fef3623b73d3caeef6f65
2024-04-19 14:58:32 +02:00
Miklos Vajna 00370c247b cool#8806 clipboard: don't assume that navigator.clipboard is always defined
Trying to paste from the notebookbar in a setup which is not localhost
but uses http resulted in a JS exception:

> Clipboard.js:863 Uncaught TypeError: Cannot read properties of undefined (reading 'read')

We assumed that navigator.clipboard is always defined, but then its
'read' and 'write' properties may be undefined.

Fix the problem by abstracting this, and check for navigator.clipboard
as well in global.js.

Can be tested by disabling https in coolwsd.xml and changing localhost
to the real local IP in the make run URL.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I1dab14e311066fa640dbba65dfcc35526a6886d7
2024-04-19 13:49:53 +01:00
Skyler Grey f8f15a139a Fix broken frozen columns mid-pinch-zoom
Previously the following issues were present when columns were frozen
- The frozen column was allowed to move, this was exacurbated when I
  made it easier to move in my 'calc: pinch-zoom:' commits,
  (3ba8257c64 to
  b378a0fd77). This is now fixed
- A regression was also introduced in that range where the selected cell
  marker would become offset if you placed it in a frozen section then
  pinched to zoom. This is also fixed

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I07f70a32e5cb68aeb759fd6cad626b2d4c0eed72
2024-04-19 09:42:52 +00:00
Pranam Lashkari 0cd7498e64 notebookbar: event prevent default for theme toggle button
problem:
if calc->view tab-> dark theme button is clicked,
if button is clicked from icon it works fine,
but if button is clicked on label event is triggered twice,
which means theme would be restored to first

reproducible only in firefox

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ie645df86651a7507582de44147885a2b62384ddb
2024-04-19 11:17:42 +02:00
Pranam Lashkari 35aa8572c1 annotation: enable comment insertion from context menu
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: If5b949c36851664d5720042d3ff5c8394b2d3961
2024-04-18 22:03:11 +01:00
Pranam Lashkari 17a1db2005 annotation: fixed comments not inserted in calc
problem:
could not insert more than one comment in calc

regression from fcb6367

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I30b52569a48d5f1d0bb2a3fe9f6f6e7c6bd43c80
2024-04-18 22:03:11 +01:00
Pedro Pinto Silva bd6d48b022 Add missing icons for accept and reject change and go to the next
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Ic64c6e640209c150891c7f677d05af2151a6ba06
2024-04-18 17:13:40 +01:00
Darshan-upadhyay1110 4690d8ec28 Hide outline format button for mobile
- Hide `Set outline format` uno button
- we will add this option again after fixing the dialog issue on mobile view for Outline option in `Bullets and numbering`
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I270b78b7b9f00fd7b0f12c348794e3d3da3e653e
2024-04-18 16:35:47 +01:00
Caolán McNamara b95395434e if a sheet is removed or moved, re-request comment positions
a problem since:

commit 72b2ce4bb6
Author: Caolán McNamara <caolan.mcnamara@collabora.com>
Date:   Wed Oct 25 19:19:08 2023 +0100
    we don't need to round-trip through core to reposition notes

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: If00ae17a8e80ca3f8d2a530efa6cdba90207be56
2024-04-18 17:08:28 +02:00
Gökay Şatır 9eeed4d950 Add splitCoordinate to global variables.
Fix getViewRectangles function - it's used now.
Remove "_cellCursor" usage from CalcTileLayer.
Modify tests for the new changes.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ia5ec5a6e89d7d64df2041112936a16ec06c4da93
2024-04-18 16:30:27 +03:00
Gökay Şatır ce36339b35 Turn _cellcursorTwips into a local variable.
Remove an unused function.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ic60d088cceb67c836ead24b84d94064272516d37
2024-04-18 16:30:27 +03:00
Gökay Şatır 05e231b93c Improve geometry classes.
Add CellCursorSection - not used yet.
Start using app.canvasSize variable.
Use simpleRectangle more.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I2cd4e23897c918679a0a385e1ca2d04117fd71c6
2024-04-18 16:30:27 +03:00
Aron Budea a4671ba059 browser: Convert MobileTopBar.js to TypeScript
Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: Ibced15ed3ebec2c7a7b07539f25270b19d615a1f
2024-04-18 08:35:25 +00:00
Bayram Çiçek 99cb267661 Calc: fix drop zone indicator regression
with cbf452b03d drop
indicator was not shown if the cursor is over the <div> elements
that inside the tabs

- fix by using e.currentTarget instead of e.target
and do some checks while on _handleDragLeave

Signed-off-by: Bayram Çiçek <bayram.cicek@collabora.com>
Change-Id: Iec8e246f18e553487b0eb0d9264cff8bb37b6305
2024-04-18 09:25:39 +01:00
Szymon Kłos b878363899 statusbar: use ui-badge for items
Statusbar items which are not active previously were grey.
Recover that styling and do cleanup to not specify CSS in the
JS code.

We use that only for items which are active/inactive - not
for just labels

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic5beb7b2fa398d594cfa035d4cbcfe6f40cae787
2024-04-18 08:00:15 +01:00
Szymon Kłos c7dd10a877 statusbar: better strings formatting
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I7c5d5cbd2e36e6391610f8d4b18a87bf32c9dde2
2024-04-18 08:00:15 +01:00
Pranam Lashkari 81b00e7376 annotation: scroll to comment after resize comment list section
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Icbabf5dcdb6f1e01ca0271b2898df28f11810f35
2024-04-18 07:57:22 +01:00
Pranam Lashkari bac4161583 annotation: resize comment list section on view size change
problem:
in writer when comment is added at the end of document,
it may go out of view and covered by the status bar and can't scroll any further

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Ia40ea128cd36a904ee5030bb7399da183e21f44d
2024-04-18 07:57:22 +01:00
Skyler Grey d5f902de9f comments: fix avatar when author is not in document
In e855aa6114 a regression was introduced
where a comment avatar was set to your avatar if the user was not in the
document

This commit returns it to the previous behavior, which had a "default"
avatar instead. It might instead be nice to embed avatars in the
document to avoid the avatars being missing, however the previous
behavior is far less confusing than the regressed behavior and is far
easier to get to than embedding avatars in the document

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I82834089062b1e7c2570d9fd78c7e1a3077f4c96
2024-04-17 15:02:38 +00:00
Rashesh Padia 9202365fc6 fix: duplicate `You` on reconnect
- it might happen viewinfo message arrives before status message,
viewinfo message update view list with old _viewId because new _viewId
after reconnection is not avaialable yet
- this patch fixes this by reseting the _viewId on socket close and call
updateviewlist event after client gets new _viewId from status message

Signed-off-by: Rashesh Padia <rashesh.padia@collabora.com>
Change-Id: I88a6ade574faa1368b1635db891fe87f89fa080e
2024-04-17 11:09:43 +01:00
Rashesh Padia 1aead601b3 fix: bogus cellviewcursor on reconnect
- also might fix the duplicate user on reconnect

Signed-off-by: Rashesh Padia <rashesh.padia@collabora.com>
Change-Id: Id302d79dd664d2e4efd6b4ba49972b3634b19569
2024-04-17 11:09:43 +01:00
Gökay Şatır a25a8e0ee0 Rename forgotten variable.
In PR https://github.com/CollaboraOnline/online/pull/8700

We renamed some variables and removed usages of cellCursorXY.
One was forgotten and causing null ptr reference.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I840cc711076e4473dee8b6a1b823a362e0eecd84
2024-04-17 11:26:36 +03:00
Henry Castro a80477a16c browser: assert preview queue length
Ensure all preview tiles array is equal length of preview queue
to be processed.

Change-Id: I37a8109a1d02d7dd761c9fbd36a7d0aa8102f7c3
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-16 12:55:24 -04:00
Henry Castro 013b4c7d56 browser: update preview layout part
The function '_processPreviewQueue' it request only
visible preview parts, it was an old code that it
needs to be updated.

Change-Id: I56519c328fb3bec70ca1fce2730f5146dc254fa5
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-16 12:55:24 -04:00
Henry Castro e927ea7286 browser: logging fetched preview parts
Change-Id: I4ebc3e17c9270f61fb430729b2fdcf34e0148ab0
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-16 12:55:24 -04:00
Henry Castro 67f9afe4a7 browser: logging to check request preview parts
Change-Id: Ie6971ffc972e2e3616461a07b8a8f51991ed28f5
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-16 12:55:24 -04:00
Henry Castro 626d2acd2c browser: logging warning if empty rects
Change-Id: I6fa4d760d1ec8cc0dd6060aeb9d19939572c629d
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-16 12:55:24 -04:00
Henry Castro 385d3790a7 browser: fix queue preview part duplicate
Change-Id: Iefc364964ec916f8e230d35c9432f72cf5466ad0
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-04-16 12:55:24 -04:00
Hubert Figuière 6a8e00c1af permission: Don't show the edit button if read-only
If wopi.UserCanWrite tells us we can't write the file no reason to show the edit button
that would do nothing anyway.

Fix https://github.com/CollaboraOnline/online/issues/8686

Signed-off-by: Hubert Figuière <hub@collabora.com>
Change-Id: I4f6d1f8d8be520e422e260f2e532cb86541e8d0f
2024-04-16 16:44:50 +01:00
Szymon Kłos a142cd9161 css: use variable for separator color
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id9f07bac4f653c1f51bade1124cfee730247d6fd
2024-04-15 16:44:45 +02:00
Szymon Kłos aeaba960db jsdialog: don't focus separators
Don't allow separator and spacer (placeolder which expands)
to be target of a focus when we use tab key.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I724604eb299c65e4709d3e7708f514c312188393
2024-04-15 16:44:45 +02:00
Miklos Vajna e733accdac browser: fix merge conflict in Widget.Combobox.js
eslint now forces single quotes.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Ia462bc21bc720b64caf5d535eb46e637e24b9f4a
2024-04-15 14:34:32 +02:00
Patrick Luby aedfd864d4 Enable new paste handler on mobile platforms
At least on iOS, the new paste handler needs to send an uno message to
the LibreOffice code.

Also, completely remove fix for GitHub issue #5839. It no longer worked
and will be handled in a patch to LibreOffice's native iOS clipboard
handling code. Ultimately, GitHub issue #5839 was caused by the iOS
clipboard code's failure to never fire a "clipboard content changed"
event. So, the LibreOffice application layers never updated their
pasting enabled state.

Signed-off-by: Patrick Luby <guibomacdev@gmail.com>
Change-Id: I4e198a45d863e3ecaf1dd04e85ce9d0d9b1a0894
2024-04-15 13:56:51 +02:00
Szymon Kłos a5e20a4943 Revert "eslint: introduce strict rules"
It didn't work: prettier still used double quotes as a standard
so it was not possible to pass make check

This reverts commit 7c5c5bd47b.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic04f1591dc39bbfe522ed2b840c543ec42b3ffa3
2024-04-15 12:23:26 +02:00
Pranam Lashkari 7c5c5bd47b eslint: introduce strict rules
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I2cb0f61d3b159c78e67d99f163b828f60cb0f5e2
2024-04-15 11:48:17 +02:00
Darshan-upadhyay1110 a29ec03fae Fix header avatar have the same image of current UserList
Problem :
 - Open the document which have some comment from other User
 - we can see that they are same as the logged in user avatar

regression
    - this is a regression from commit e855aa6114
    - we were paasing url of user which is logged in and that should not happning for other user avatar image

Solution: - while setUserImage function pass viewId
    - this will help to identify the user Info from map
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: I5ee8b41c2e58a4ba15ecf551b264f944aa926da8
2024-04-15 09:36:53 +00:00
Jaume Pujantell 705755f7b0 browser: correct avatar css on userlist
Avatars on the user list where shown too big

When userlist-dropdown was separated from userListHeader as a
JSDialog, the proper avatar-img css stopped applying.

Signed-off-by: Jaume Pujantell <jaume.pujantell@collabora.com>
Change-Id: I58539c492758c4ecea09d598ba7e113034078cd9
2024-04-15 11:35:08 +02:00
Darshan-upadhyay1110 86cb7081e6 Add readonly option in JSON for all application
- Readonly option was only present in writer before this patch
- this will add option for all other Apps: Calc,Draw,Impress
There is slight issue while getting the read-only flag for MobileTopBar .
        - `app.map. isReadOnlyMode ()`: Still not work because at point of getToolItems() no permission had be setted in permission.js file for function `isReadOnly()`
        - it means this._permission still undefined when we cal `app.map. isReadOnlyMode ()` from Control.MobileTopBar.js-
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>

Change-Id: I1f5fa012218ec1025ae32e33a99363fd2ffb87ab
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
2024-04-15 11:05:29 +02:00
Darshan-upadhyay1110 7438fd546e Hide disabled elements on mobile top-toolbar
- we disabled some specific button on mobile top toolbar
- but just disabling it won't hide that from UI
- maybe it is better to not show those buttons
- it also occupies much space in top view
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>

Change-Id: I5609fb5d02bcb0590a430df73ef4568ca838c960
2024-04-15 11:05:29 +02:00
Andras Timar 28e880e6b0 Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I1e90cd046f92f6b61e38d85ffb8499f0c2451b83
2024-04-12 19:32:23 +02:00
Shavazo f4107de278 Translated using Weblate (Japanese)
Currently translated at 36.4% (174 of 478 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7871d370c5d0a0c28c288fdb5dbfa7b99316301a
2024-04-12 19:19:49 +02:00
Poe Mon 57e7209b23 Translated using Weblate (Japanese)
Currently translated at 75.5% (441 of 584 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4d9692ac2a3ce3dfe97b4ccf572fbb838568b461
2024-04-12 19:19:49 +02:00
Shavazo a0eb3e9eb6 Translated using Weblate (Japanese)
Currently translated at 75.5% (441 of 584 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4d9692ac2a3ce3dfe97b4ccf572fbb838568b461
2024-04-12 19:19:49 +02:00
Shavazo 4cfbfb57eb Translated using Weblate (Japanese)
Currently translated at 35.9% (172 of 478 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia0dd0c5661e95343e4d204f32b7eaf31c30350e6
2024-04-12 19:19:49 +02:00
Poe Mon 3d993a3b61 Translated using Weblate (Japanese)
Currently translated at 35.9% (172 of 478 strings)

Translation: Collabora Online/Help
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia0dd0c5661e95343e4d204f32b7eaf31c30350e6
2024-04-12 19:19:49 +02:00
Poe Mon 14ebc41afc Translated using Weblate (Japanese)
Currently translated at 69.1% (404 of 584 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia98ed0e486c01bad90a83e289c5ff2f757a21d51
2024-04-12 19:19:49 +02:00
Shavazo ce180aeb47 Translated using Weblate (Japanese)
Currently translated at 69.1% (404 of 584 strings)

Translation: Collabora Online/UI
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ja/
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia98ed0e486c01bad90a83e289c5ff2f757a21d51
2024-04-12 19:19:49 +02:00
Poe Mon 50098c8d01 Translated using Weblate (Japanese)
Currently translated at 34.7% (166 of 478 strings)

Translated using Weblate (Japanese)

Currently translated at 58.0% (339 of 584 strings)

Co-authored-by: Poe Mon <p.poemon.awitd@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ja/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I61ea3286363469a3994dba5260611dd94909e743
2024-04-12 19:19:49 +02:00
Shavazo e41fcbe9b8 Translated using Weblate (Japanese)
Currently translated at 34.7% (166 of 478 strings)

Translated using Weblate (Japanese)

Currently translated at 58.0% (339 of 584 strings)

Translated using Weblate (Japanese)

Currently translated at 86.3% (19 of 22 strings)

Translated using Weblate (Japanese)

Currently translated at 67.2% (74 of 110 strings)

Co-authored-by: Shavazo <pleasure.7010@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/ja/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/ja/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ja/
Translation: Collabora Online/Android app
Translation: Collabora Online/Android lib
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7940ff6e6ce714072f9b2b36185720f5da021c81
2024-04-12 19:19:49 +02:00
bittin1ddc447d824349b2 448d763abc Translated using Weblate (Swedish)
Currently translated at 98.4% (575 of 584 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: I4ccb0d08f7289e464c92e1d715dd2b35876910da
2024-04-12 19:19:49 +02:00
Rob Pearson 53cb535c28 Translated using Weblate (English (South Africa))
Currently translated at 100.0% (584 of 584 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (584 of 584 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (584 of 584 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (584 of 584 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: I2c76e646cdcedcfaca4f9a04c3ff97c47fde6808
2024-04-12 19:19:49 +02:00
Sebastiaan Veld ef382064a4 Translated using Weblate (Dutch)
Currently translated at 100.0% (478 of 478 strings)

Translated using Weblate (Dutch)

Currently translated at 100.0% (584 of 584 strings)

Co-authored-by: Sebastiaan Veld <sebastiaan.veld@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/nl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/nl/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: If98f22508fd790e3dc0763e90756564df1ac6ffe
2024-04-12 19:19:49 +02:00
Adolfo Jayme Barrientos c48eea7272 Translated using Weblate (Spanish)
Currently translated at 100.0% (584 of 584 strings)

Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
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: I4d1f4b2b2193de2f363cbe6c31031e93dd713351
2024-04-12 19:19:48 +02:00
Rhoslyn Prys caa41c7278 Translated using Weblate (Welsh)
Currently translated at 100.0% (584 of 584 strings)

Co-authored-by: Rhoslyn Prys <rprys@posteo.net>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/cy/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I4d908b787f380af826d81db1ce4177bc392b9da8
2024-04-12 19:19:48 +02:00
Stanislav Horáček d8356dd907 Translated using Weblate (Czech)
Currently translated at 100.0% (478 of 478 strings)

Translated using Weblate (Czech)

Currently translated at 100.0% (584 of 584 strings)

Translated using Weblate (Czech)

Currently translated at 98.6% (576 of 584 strings)

Co-authored-by: Stanislav Horáček <stanislav.horacek@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/cs/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/cs/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Idee227b1605577163dabf22675d99ebbda590002
2024-04-12 19:19:48 +02:00
Yaron Shahrabani 83975d63aa Translated using Weblate (Hebrew)
Currently translated at 100.0% (584 of 584 strings)

Translated using Weblate (Hebrew)

Currently translated at 51.8% (248 of 478 strings)

Translated using Weblate (Hebrew)

Currently translated at 96.2% (562 of 584 strings)

Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/he/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/he/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I20f108e6599109cfc975e046b6cb92390ab5040b
2024-04-12 19:19:48 +02:00
Méven Car 5f5ca6c3d2 welcome window: allow to translate tab numbers
Signed-off-by: Méven Car <meven.car@collabora.com>
Change-Id: I01d62428ec98b051a7b131901bab3c346e7697d0
2024-04-12 15:25:22 +02:00
Miklos Vajna 1f0aec8f19 cool#8648 clipboard: fix insert hyperlink dialog
Type a word into Writer, select it, Ctrl-K, the link text should default
to the selection, but it was empty.

This happens because Toolbar.js getTextForLink() doesn't have the
pre-fetched clipboard anymore, so we return an empty string there.

Fix the problem by triggering a text selection fetch (and leaving the
clipboard alone), and then handling the hyperlink dialog on the
CanvasTileLayer.js side.

Once this is done, the usual dummy clipboard registration & copy() calls
need adding and the test passes even with the patch from
<https://github.com/CollaboraOnline/online/issues/8648#issuecomment-2037278091>.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Ibd8313588e705c4b027643b452099bbf02cfe8ec
2024-04-12 14:00:26 +01:00
Antony 68ff59156b Add accesibility support to comboboxes inside font panel in sidebar
- Add aria-label to input if aria properties present in the widget data
- Add appropriate roles to input and div as per standards mentioned in MDN docs for accessbility combobox
- Modified combobox button click event to open popup using Space key as well, as mentioned in the MDN docs for accessbility

Signed-off-by: Antony <dasantony@rocketmail.com>
Change-Id: I66ebc6897e6a9a73a65f53d5cbd2f06a645dcb3f

Signed-off-by: Antony <dasantony@rocketmail.com>
Change-Id: Id39242ea2fa57f8f5a46efca7a73b529ceae088d
2024-04-12 14:27:50 +02:00
Miklos Vajna ad74670af5 cool#8734 browser: allow enabling dark mode from a URL parameter
One way for integrations to ask for dark mode is to set URL parameters.
This works for e.g. the language, but didn't work for dark mode.

There was already a parameter for this, but it was limited to Android.

Fix the problem by exposing the parameter for non-Android as well, and
also extend global.js to default to this, but keep the local storage as
an option to customize the setting if the user wants to.

Tested with 'make run', <input type=hidden> way may need more work on
top of this.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I78c4115a8e337ef2b1ea9e498db2572965762bef
2024-04-11 08:33:21 +01:00
NickWingate ec0d89754d Sanitize presentation window title and url
Note the url sanitised is the url passed to
the iframe, not the url in the popup window

Signed-off-by: NickWingate <nick.wingate@collabora.com>
Change-Id: Idad9bfaa390d83cfb083b99144cb9d0a54705287
2024-04-11 07:15:02 +01:00
NickWingate 4cfd274deb Force slideshow popup to have blank url in firefox
Firefox has automatic url navigation when we use
document.write and changes the url to the parent
window. document.write may also cause additional
problems (see https://developer.mozilla.org/en-US/docs/Web/API/Document/write)
Instead change only the innerHTML of the document.

Signed-off-by: NickWingate <nick.wingate@collabora.com>
Change-Id: I55b88fd557af05b2a0e49adb7f08e9467dd4a4ba
2024-04-11 07:15:02 +01:00
NickWingate 10f8e90d76 Add localization to popup title
Signed-off-by: NickWingate <nick.wingate@collabora.com>
Change-Id: I306120db1bcda043c92adad122e368e05c80f613
2024-04-11 07:15:02 +01:00
NickWingate 50267a3aaa Change convoluted url and name in windowed presentation
Open an empty popup with a blank url, then set the
content of the popup to be our slideURL wrapped inside an
iframe with a user friendly title.
Focus the iframe on load so that arrowkey navigation works
and forward the eventlisterner of the iframe to the parent
window to watch for escape key calls

Signed-off-by: NickWingate <nick.wingate@collabora.com>
Change-Id: Ie1063095db51119fd45453b8b4b180fcacb6d7c1
2024-04-11 07:15:02 +01:00
Caolán McNamara 74ef545dd5 _setSpliterGradient triggers excess drawing
every _postMouseEvent in a spreadsheet calls _setSpliterGradient which
triggers a redraw

_applyDelta [bundle.js:18978:86]
ensureCanvas [bundle.js:18941:64]
TilesSection.prototype.ensureCanvas [bundle.js:15642:88]
TilesSection.prototype.drawTileToCanvasCrop [bundle.js:15654:54]
TilesSection.prototype.drawTileInPane [bundle.js:15503:66]
TilesSection.prototype.paintWithPanes [bundle.js:15481:48]
TilesSection.prototype.paint [bundle.js:15532:78]
TilesSection.prototype.onDraw/< [bundle.js:15602:52]
TilesSection.prototype.forEachTileInView [bundle.js:15536:71]
TilesSection.prototype.onDraw [bundle.js:15592:56]
CanvasSectionContainer.prototype.drawSections [bundle.js:14091:56]
CanvasSectionContainer.prototype.requestReDraw [bundle.js:13724:76]
CanvasOverlay.prototype.redraw [bundle.js:16337:41]
CanvasOverlay.prototype.updatePath [bundle.js:16320:80]
CPath.prototype.redraw [bundle.js:15929:33]
CPolyline.prototype.setPointSet [bundle.js:16015:63]
CRectangle.prototype.setBounds [bundle.js:16103:55]
CSplitterLine.prototype.onChange [bundle.js:16172:43]
CSplitterLine.prototype.onPositionChange [bundle.js:16171:51]
_setSpliterGradient [bundle.js:18874:67]
_sendClientVisibleArea [bundle.js:18860:73]
_postMouseEvent [bundle.js:17904:75]
L.Map.Mouse<._onMouseEvent</< [bundle.js:22844:16]
_executeMouseEvents [bundle.js:22878:61]
setTimeout handler

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I7eb9668edda38730daebb7a342b7a9c44677fabb
2024-04-10 17:12:19 +01:00
Pranam Lashkari 3f2a1a5caa added check for undefined properties
problem:
zotero was not loading because element.text didn't exist
on adding bibliography there was error to parse JSON,
because there's some more data in string after JSON

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: If34791ae7ca79ca7fd304b506cd483e929f4d2ac
2024-04-10 16:32:20 +02:00
Skyler Grey eb7d6eaa83 Fix formatting on JQuery join tooltip
A nice followup would be a change to automatically do this on all JQuery
tooltips, maybe I will make a commit to do that later

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I545f5e8d45849fb1b000c321b3554efd874eaaf8
2024-04-10 14:06:27 +02:00
Andras Timar 5cfcbd2222 remove obsolete/removed files from CI check configs
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia3ee3f6b508c5146df172cb07f4f515627ec75f1
2024-04-09 17:18:51 +02:00
Miklos Vajna 286cd1ccf7 cool#8648 clipboard: fix desktop/writer/copy_paste_spec.js
Once the patch from
<https://github.com/CollaboraOnline/online/issues/8648#issuecomment-2037278091>
is applied to make CanvasTileLayer.js _onTextSelectionMsg() not fetch
the clipboard proactively, this test started to fail.

This happened because the test assumed that once a text selection is
created, we have the HTML for it, which is no longer the case.

Fix the problem by extending the dummy clipboard code to also handle
plain text and by adding a function which triggers the copy(), to
minimize the changes to the actual test code.

This is just a start, lots of other tests still need fixing, and once
the pattern is clear, common code should be extracted to
cypress_test/integration_tests/common/helper.js, probably.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I21ed1143470fa8026e133b0519e114a40fc0ed90
2024-04-09 07:52:33 +01:00
Patrick Luby 3a4c3d7c36 Enable new copy handler on mobile platforms
At least on iOS, the new copy handler works as intended and sends an
uno message to the LibreOffice code.

Signed-off-by: Patrick Luby <guibomacdev@gmail.com>
Change-Id: Ifa7dc0738dccf0642a9fadd48919e00bfb62e402
2024-04-09 08:20:33 +02:00
Gökay Şatır c6b461cd54 Shorten app.file.calc.cellCursor variables.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I1abdcac03e77f55d0d0a50a2cb128d4d29991f43
2024-04-08 12:14:46 +03:00
Gökay Şatır fcb6367cd7 Use SimplePoint for cell address.
Use SimpleRectangle for cell cursor.
Add .clone function to SimplePoint.
Use app.file.calc.cellCursor.visible for checking the cursor visibility instead of null variables.
Replace map._cellCursorPixels with app.file.calc.cellCursor.rectangle
Remove map._cellCursorXY with app.file.calc.cellCursor.address
Replace map._validatedCellXY with SimplePoint.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I9b1e2c92e5029b2f184055083d35200bb5e6b8c9
2024-04-08 12:14:46 +03:00
Martin Srebotnjak affa583eb5 Translated using Weblate (Slovenian)
Currently translated at 100.0% (584 of 584 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: I0d6b357e94e0c991a0f3020ec3bb45a5c5b94a6f
2024-04-07 14:13:05 +02:00
Andras Timar cd9293f95b Translated using Weblate (Hungarian)
Currently translated at 100.0% (584 of 584 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: I16965aacd9f5c285c2cf94505ca76c309c68a020
2024-04-07 14:13:05 +02:00
Andras Timar 5e08727bd5 Fix typo: Bellow -> Below
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I1b9938006734063075ff4e87193289a09f726a35
2024-04-06 17:11:28 +02:00
Oğuz Ersen 4f57fe8645 Translated using Weblate (Turkish)
Currently translated at 100.0% (584 of 584 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: I41dd523b698ed045350da7bc94e7ba93c028feee
2024-04-06 17:10:22 +02:00
Matthaiks 00e2a29383 Translated using Weblate (Polish)
Currently translated at 100.0% (478 of 478 strings)

Translated using Weblate (Polish)

Currently translated at 100.0% (584 of 584 strings)

Co-authored-by: Matthaiks <kitynska@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/pl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/pl/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib6cff3505678989abd2bb5ebb4c5f32a177916e7
2024-04-06 17:10:22 +02:00
gallegonovato 5ef7265f5c Translated using Weblate (Spanish)
Currently translated at 100.0% (584 of 584 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: Id0232aecaa33814f268ba1d828d0dbb02813f79b
2024-04-06 17:10:21 +02:00
Szymon Kłos ee256370dd Remove unused hideTooltip function
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: If83bee032183fe93489eb8ff98f6f036528bd48b
2024-04-06 01:18:20 +02:00
Szymon Kłos d79ca54bf7 Move updateVisibilityForToolbar to toolbar base class
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I81c24b50a304ac6771feedfb241a2af54fef8b2c
2024-04-06 01:18:20 +02:00
Szymon Kłos 1ad7500dfb mobile: show/hide align menu correctly
after accessibility rework in notebookbar we use "-"
as separator between id sections for something...

this breaks getting the menubutton items by id,
let's avoid that character then

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I58f6c03bd635e981986b64ae2acfc43561146e8f
2024-04-06 01:18:20 +02:00
Szymon Kłos 92588928ab statusbar: hide icon for language menu
it wasn't there before w2ui removing

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iaef58f76b8cd8aaa606dc6384d458448c24d5564
2024-04-06 01:18:20 +02:00
Szymon Kłos 6a1b5ec7d8 Firefox compatibility fix: text-wrap
As in https://caniuse.com/?search=text-wrap
text-wrap property is not used in currently most
popular Firefox versions, let's change it to
more popular white-space property.

It fixed wrapping of text in statusbar in Firefox

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0fc68fbb128db56844ae8e0174fe292ee95c572a
2024-04-06 01:18:20 +02:00
Szymon Kłos 3d5e04c671 Remove unused userlist code from statusbar
- desktop shows userlist on the top, don't show duplicate in the statusbar
- make behavior compatible with previous version (23.05)
- remove unused signal: it is fired but nothing is listening for it
  (updateuserlistcount)

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Iabcb3b4a926c8941acf2e1425a9a28ede6e88311
2024-04-06 01:18:20 +02:00
Szymon Kłos 4885cbbaeb jsdialog: create base class for toolbars
This allows to share code and provide unified interface
for functionality like: show/hide/enable/disable/insert item.
Also restricted mode is supported for all the items.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I4a4e7ea43a993751b28f685544827d00b2b3668f
2024-04-06 01:18:20 +02:00
Szymon Kłos 74ec3af8b3 Unify MobileSearchBar naming with other toolbars
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I1102cb49e1dada7f3c5439068a05476b10c3ce96
2024-04-06 01:18:20 +02:00
Szymon Kłos 71f191803d remove-leaflet: Control.MobileTopBar
use standard ES6 class

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I316a7dad8b2085938602907f65f1affd4768a1e2
2024-04-06 01:18:20 +02:00
Szymon Kłos 4fd44c73ec remove-leaflet: Control.MobileBottomBar
use standard ES6 class

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I84698240985cf45bbd131f114f93f90b0f91711c
2024-04-06 01:18:20 +02:00
Szymon Kłos 69e85b4c6b remove-leaflet: Control.TopToolbar
use standard ES6 class

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I1b0d9d13354bb8c6d6d70705e427e07f9d221ffd
2024-04-06 01:18:20 +02:00
Szymon Kłos 30c0d121ad remove-leaflet: Control.StatusBar
use standard ES6 class

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic4f41c050d05bf3ffb1a52c72e88af8901b271f6
2024-04-06 01:18:20 +02:00
Andras Timar 51b6f522c7 Update l10n files for Weblate
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia23a33769b7844300bacd7df9a4ad0e2701dcec2
2024-04-05 18:54:09 +02:00
Alexander Gabilondo f65cbf1ba1 Translated using Weblate (Basque)
Currently translated at 99.8% (581 of 582 strings)

Co-authored-by: Alexander Gabilondo <alexgabi@openmailbox.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/eu/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ib8dc41ff640785221cbb04c27b2c9ae5afb3fc21
2024-04-05 18:53:12 +02:00
ButterflyOfFire dbe02ab9d3 Translated using Weblate (Kabyle)
Currently translated at 12.8% (75 of 582 strings)

Translated using Weblate (Kabyle)

Currently translated at 13.5% (65 of 478 strings)

Co-authored-by: ButterflyOfFire <boffire@users.noreply.hosted.weblate.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/kab/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/kab/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Idd37c98f62d70b59e83202b07e3973ce430f4aeb
2024-04-05 18:53:12 +02:00
Darshan-upadhyay1110 d1bc0e8f69 User avatar should be consistent after mode change
- User avatar should first consider is there is already extract info available or not
- if we already have that image source data then please do not set default value
- also when mode change we do preform some refresh function on all icons
    - `map.on('themechanged', setupIcon, this);`
- in that case as well, first check if we have user extract info or not
- and based on that set image source URL
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>

Change-Id: Ifbd543322f5222fa7717b40a5ae565ed2f3c9891
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
2024-04-05 09:15:29 +02:00
Miklos Vajna 75251f9496 cool#8648 clipboard: try to use navigator.clipboard.write()
For one, getting the selection HTML all the time when we create a text
selection is a waste of resources, since only a subsequent copy needs
that HTML. For another, the complex selection case required a confusing
"two step copy" workflow, where first you press Ctrl-C, then you
download the large selection, finally you press Ctrl-C again.

The underlying problem is the same: the document.execCommand() API for
copy (and cut) is synchronous, but network operations are async, which
don't play well together.

Fix the problem by trying to use navigator.clipboard.write() instead:
the write() call still has to happen inside a magic security context
(keyboard used, click happened), but it can take a callback as a
parameter, and inside that callback it's fine to perform async network
operations, which allows both using a one-step copy and getting rid of
the HTML download on text selection change (when most of the time we
don't need it).

Tested:

- Chrome and Safari; the behavior for Firefox is unchanged, unless
  about:config opts in to expose the new Clipboard API.

- HTML, plain text and image copy.

- Cut, not only copy.

- Doing this with the notebookbar button & keyboard.

- A single cypress test now uses a fake clipboard to assert copy. The
  rest of the tests are left unchanged for now, but likely we need to
  get rid of this implicit assumption that the copy container is updated
  on selection change: different behavior for automated vs manual testing
  is ugly.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Ifcf16474a339f3f1dae3dc99181836e645340048
2024-04-04 14:09:42 +01:00
Szymon Kłos 6b37c158d1 jsdialog: enable desktop's idle popup on mobile
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I109b68e6190b16b25ad3a7404141d84c9b713227
2024-04-04 13:43:35 +02:00
Szymon Kłos 2d023ec77f jsdialog: handle select/unselect in toolitems
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I877d1803ba4605c4b82cb2adee2bb6c4226381a4
2024-04-04 13:43:35 +02:00
Szymon Kłos f8d457cb62 remove-w2ui: convert mobile bottom bar to JSDialog
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I1e86d91282d15c6ed055f9a74808cd3158ff08de
2024-04-04 13:43:35 +02:00
Szymon Kłos cff5442244 jsdialog: enable snackbar on mobile
So far we had duplicated snackbar code.
Desktop version was more advanced, mobile wasn't updated.
Mobile one used mobile-wizard as a base so we had to hide
currently presented menu to show small piece of information.

Let's use desktop snackbar on mobile as well. We will be able to
remove old code path from mobile later.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I1da7a6b75591913ca0fc66f6d0e81d136c874f62
2024-04-04 13:43:35 +02:00
Szymon Kłos 912258fe3e jsdialog: enable dropdowns on mobile
Let's allow usage of JSDialog component previously
used on desktop and tablet only - in some cases on mobile.

This case are dropdowns which we do not want to show
as separate mobile wizard screen (eg. alignment selector
from toolbar).

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ibcfaea457c065c34644738c7bf56a2e4e53c50a3
2024-04-04 13:43:35 +02:00
Szymon Kłos c2a0d50839 jsdialog: create separate Util.MessageRouter
So we can type our messages, callbacks and better manage
where message is sent

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3290f5cf9bc08669353d3e71785baffc6fb07003
2024-04-04 13:43:35 +02:00
Szymon Kłos 84e7eb7d03 jsdialog: reduce missing icon warnings
If MenuButton has custom menu defined it should
use original data.id as a command to avoid warnings
about missing icon with "-menu" suffix.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I06dfcdb0412c7d087f4002cdfff83f8157c3f237
2024-04-04 13:43:35 +02:00
Szymon Kłos 46a5b063b7 remove-w2ui: delete library's JS file
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ib279379168d86227b2abf2c979d302c5156fc7f2
2024-04-04 13:43:35 +02:00
Szymon Kłos 72fece4cd1 Add separate mobile commands in docdispatcher
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I6d83f0f5fbd0e373bd28129f8e444795068e3720
2024-04-04 13:43:35 +02:00
Gökay Şatır cd014a92c2 Add simple geometry classes.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ic1819ff187edc9c0d33f77b3b82054cb8b27c6dc
2024-04-04 13:05:04 +03:00
codewithvk 5a90127236 fix : Present in the window button hides only for mobile apps
Signed-off-by: codewithvk <vivek.javiya@collabora.com>
Change-Id: I8b2824f6a17091d1a5202051cc95b6a53013f0cf
2024-04-03 13:38:36 +00:00
codewithvk c0ab567b31 Added additional menu entries and a new sub-entry under Conditional formatting
- Added 'Contains text...' and 'Duplicate...' as menu entries under Conditional > Condition...
- Introduced a new sub-entry Top/Bottom Rules' under Conditional, with the following options:
    - Top n elements
    - Top n% (n percent)
    - Bottom n elements
    - Bottom n% (n percent)
    - Above Average
    - Below Average

These changes enhance the functionality of the Conditional formatting menu by incorporating commonly used options for users.

Signed-off-by: codewithvk <vivek.javiya@collabora.com>
Change-Id: I1c3c06b21a9d26e6a8966782c0af07381403c08f
2024-04-03 12:09:29 +02:00
Darshan-upadhyay1110 5b6042f896 A11y improvements
Problem:

    - At various places, form elements are linked to the same label both through the 'for' attribute in the
associated label, and through the 'aria-labelled by' attribute in the element itself.
    -  This double linkage
can lead to confusion and redundancy, especially when using assistive technologies.

What should we do:

    - Remove Redundant Linkage: In most cases, the 'for' attribute in the label is sufficient to
    establish a clear linkage. The 'aria-labelled by' attribute can be removed in this case to avoid
    redundancy.

    - Consistent Use of Attributes: Ensure consistent use of attributes throughout the website. Use
    either 'for' or 'aria-labelled by' depending on the context and requirements, but avoid double
    linkage

Solution :

    - as we made label `for` attribute value consistent with `id` value for its corresponding `input/select` element
        - https://github.com/CollaboraOnline/online/pull/8646
    - now we can remove 'aria-labelled by' as there is already linkage present
    - there are some cases where labels are not present, we must use `aria-labelledby` in that case.

Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>

Change-Id: I389d271280a80835fd7345e8221e3777f8f8ed51
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
2024-04-02 18:35:56 +05:30
Szymon Kłos a214088801 Convert SearchBar.js to TypeScript file
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I12dc1f0f6744d76a863ed0598185340a898a8b58
2024-04-02 15:02:53 +02:00
Szymon Kłos 13a16ace0a remove-w2ui: convert mobile search bar to JSDialog
- fix typo in cypress function name
- unify mobile and desktop searchbar controls

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2212f588ca720634b073111b1c78f10c6ee6b7ea
2024-04-02 15:02:53 +02:00
Miklos Vajna 25342ed317 Related: cool#8648 clipboard: extract parseClipboard() from Control.DownloadProgress.js
This way it can be reused in future code in Clipboard.js when
navigator.clipboard.write() is used, without duplication.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I843577e55802bcb7ad6cbdc5f83919172bc7d3e0
2024-04-02 13:32:23 +01:00
codewithvk 7e63d2e9d2 fix : Format -> Conditional Menu Button Not Working
Signed-off-by: codewithvk <vivek.javiya@collabora.com>
Change-Id: I6d23bc3c1c4b080ade32a97dd8408149f49d160d
2024-04-02 10:25:20 +02:00
Darshan-upadhyay1110 2009123f18 Direct Label Association
Problem:

- The labels for the <select> elements are being associated with a <div> element that surrounds the
corresponding <select> element instead of directly linking it to the <select> element.
- This creates an unclear semantic relationship between the label and the actual form element, affecting usability for
users with assistive technologies
- this was not only issue with `select` element but for all input selection elements in JSDialogBuilder

Solution:

- `lable` and it's corresponding `input/select` element should have same `for` and `id` values
-  this patch will make `for` attr of `label` equals to `id` attr value of 'input/select' elements
Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
Change-Id: If341174edcdb72af6fde3da14d5ed36ba0c3ae95
2024-04-02 09:54:31 +02:00
Szymon Kłos 855f520989 Fix TypeError on accept formula button
- in the formulabar in Calc
- type "=" then click "accept formula"

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I120f655766bc5e2b4688aec0e598da9c847478a8
2024-04-02 08:54:39 +02:00
Szymon Kłos 128ce410f1 remove-w2ui: stop using old toolbars on tablet
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id8fd8e67c80eab7f48d1c519ecddb3d8dfd16062
2024-04-01 14:04:08 +03:00
Szymon Kłos fb017302f1 remove-w2ui: convert mobile top bar to JSDialogs
- use dispatcher to invoke commands
- TODO: checked state for buttons + cypress check

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I652a163ea0c831b47ce7725ffd0f9f190a98d9bf
2024-04-01 14:04:08 +03:00
Szymon Kłos 7a087600e9 jsdialog: use attribute not class for disabled state
- but still use class for css rules
- after rework in styling to use attribute we can drop that

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I568eedf45440f6636c31430cb98adcfdeab6aa4e
2024-04-01 14:04:08 +03:00
Gökay Şatır 5224c3c72e Diverse the ray casting into smaller functions.
Add guard for notebookbar data  and tab existence.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ied5ef0f75735db12b108a9348062bcd48fd25fd2
2024-04-01 13:24:49 +03:00
Oli a003dc90e5 Arrow keys traverse focus around notebookbar
When focus is in the notebookbar, arrow keys allow focus to be moved.

Signed-off-by: Oli <oli.baker@collabora.com>
Change-Id: Iccc9122f77c224e0190f25732ff9e4a24e4eab3e
2024-04-01 13:24:49 +03:00
Szymon Kłos 2aaadcc298 Fix TypeError on context change
it happens on context change (eg. shape selection) in
compact mode where context change handler used wrong
instance of toolbar

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I9b080786454a3e7ecbf5273ba609671de3f3eb01
2024-04-01 11:30:29 +02:00
Szymon Kłos 5c7fb35e0f user-list: invoke by KeyboardShortcuts and dispatcher
- this helps to reuse code and keep it clean

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I029ac4f5d84f878f36a0d5d9abcecabe0ec63ad1
2024-04-01 11:26:51 +02:00
Szymon Kłos dc943b31ed user-list: hide follow chip when clicked on it
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I35e6b5baf9c7569b8fa1e54a01a26f48024ffb05
2024-04-01 11:26:51 +02:00
Szymon Kłos 41e151a03a user-list: center name vertically, avatar ratio
- avoid resized avatar due to text padding

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3d7b48b3981303096a42a1d8901012cec8a64be9
2024-04-01 11:26:51 +02:00
Szymon Kłos 5cdb826829 remove-w2ui: use JSDialog dropdown for user list
- reuse JSDialog Dropdown
- remove hack with overflow which was needed to show
  any popup above notebookbar
- fixes scrollbar visible above compact toolbar when
  switching from notebookbar mode

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0366dbd68df20991d5fb26d116c38fb657e64c6d
2024-04-01 11:26:51 +02:00
Szymon Kłos 91701db744 jsdialog: css: put toolbuttons rules in btns.css
- put in single place with other button rules
- apply also to .jsdialog case (selected, hover)
  so it will be used in new toolbars

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic04e1939908e0030e710902d38846ba50954fe23
2024-04-01 11:20:36 +02:00
Szymon Kłos 7b1acd8684 remove-w2ui: update toolbar item status
- toolbar had it's own status updates
- adjust the old code to use new toolbar functions

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I6da6b75b40678ed8d32500151b7c1e2c436a8cfe
2024-04-01 11:20:36 +02:00
Aron Budea 47fcdd0cbc browser: Add Accept / Reject and Move to Next to tabbed bar and menu
Also fix Accept / Reject, which didn't show up.

Signed-off-by: Aron Budea <aron.budea@collabora.com>
Change-Id: Ia27b19d640fb59e24b4f7ccabc0df7f2d1fa2498
2024-03-31 13:32:33 +10:30
Besnik Bleta 04c175daaf Translated using Weblate (Albanian)
Currently translated at 98.2% (572 of 582 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: I8e683218df997cdf83acf44f9fa692f6d7f843f0
2024-03-30 15:30:15 +01:00
Méven Car 3b2b186615 Translated using Weblate (French)
Currently translated at 96.7% (563 of 582 strings)

Co-authored-by: Méven Car <meven.car@collabora.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/fr/
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ia991b53cfc8bf5a5fc6407e35fc9e84f1151f0b1
2024-03-30 15:30:15 +01:00
Ihor Hordiichuk b858c394fc Translated using Weblate (Ukrainian)
Currently translated at 100.0% (582 of 582 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: I52812d299e3157891c22daaaa72b3c50eeffef27
2024-03-30 15:30:15 +01:00
CloneWith 4453775650 Translated using Weblate (Chinese (Simplified))
Currently translated at 68.6% (328 of 478 strings)

Translated using Weblate (Chinese (Simplified))

Currently translated at 100.0% (582 of 582 strings)

Co-authored-by: CloneWith <clonewith@users.noreply.hosted.weblate.org>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/zh_Hans/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/zh_Hans/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Ie34a044632accf268ebf1236a45a7b8087f0a47e
2024-03-30 15:30:15 +01:00
Sebastiaan Veld 4878b1cdc9 Translated using Weblate (Dutch)
Currently translated at 100.0% (582 of 582 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: I10db544bfb6808fe767f82b461cd0c354cb91ee8
2024-03-30 15:30:15 +01:00
Software In Interlingua 124fd6de2e Added translation using Weblate (Interlingua)
Co-authored-by: Software In Interlingua <softinterlingua@gmail.com>
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I8ca386465e76aed5447944c1a4c068c0d31821a0
2024-03-30 15:30:15 +01:00
Oğuz Ersen 7a5c747217 Translated using Weblate (Turkish)
Currently translated at 100.0% (582 of 582 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: Idacb6fdea2712f03dfc1cd2896fbdc0abff8fd61
2024-03-30 15:30:15 +01:00
Martin Srebotnjak fa2110ced8 Translated using Weblate (Slovenian)
Currently translated at 100.0% (582 of 582 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: Ie03460b4acd12838566a724a6b4079ad9c3d7d35
2024-03-30 15:30:15 +01:00
gallegonovato 37acc6aa78 Translated using Weblate (Spanish)
Currently translated at 100.0% (582 of 582 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: I12cb02927c656a2309b8d57677731a4536d8a8a6
2024-03-30 15:30:15 +01:00
Rob Pearson c72605a41b Translated using Weblate (English (South Africa))
Currently translated at 100.0% (582 of 582 strings)

Translated using Weblate (English (New Zealand))

Currently translated at 100.0% (582 of 582 strings)

Translated using Weblate (English (United Kingdom))

Currently translated at 100.0% (582 of 582 strings)

Translated using Weblate (English (Australia))

Currently translated at 100.0% (582 of 582 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: Ib171b43b524cc71888d3b4bdd4e36c8d3d453ca9
2024-03-30 15:30:15 +01:00
Ettore Atalan 2eaefcd52d Translated using Weblate (German)
Currently translated at 99.3% (578 of 582 strings)

Co-authored-by: Ettore Atalan <atalanttore@googlemail.com>
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: I83d2fe41d3c83737e12588212368322796c9ed34
2024-03-30 15:30:15 +01:00
Szymon Kłos cc30bb1935 remove-w2ui: handle postmessagge insert/show/hide button
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I67c65e48faf467c1d3e4b478e66b8b8e0dc312b4
2024-03-29 21:55:23 +01:00
Szymon Kłos ae20224fa7 Improve accuracy of Util.ScrollableBar
- remove jQuery where possible

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8aeb4284e62cd81fea8c51c7281fbffffc3d9986
2024-03-29 21:55:23 +01:00
Szymon Kłos ebff222073 remove-w2ui: convert TopToolbar to JSDialog
- reuse old code as much as possible
- font, fontsize, style are managed by old select2 wrapper
- move some commands to dispatcher

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2fd1820b36f3c63a5fdcc482afbcc5ffe04e299f
2024-03-29 21:55:23 +01:00
Szymon Kłos 46b49afc2a jsdialog: avoid duplicated uno command execution in dropdowns
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id74f2149d2dac2c5c70f9c74b8eedb27b377d5eb
2024-03-29 21:55:23 +01:00
Szymon Kłos 3444b0b940 jsdialog: allow to execute action on menubuttons with menuId
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ibbb7d6043e0e22c9c3edb9c295e190e6a72dfde5
2024-03-29 21:55:23 +01:00
Szymon Kłos be1184eef1 notebookbar: correctly add and remove callbacks
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia798e12f06372e839ef8565d4c32626a44b44658
2024-03-29 21:55:23 +01:00
Szymon Kłos 76540bed81 jsdialog: allow separators in menubutton menu
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I1d2e2e9485de1100faf3693d828036e21dbd7b06
2024-03-29 21:55:23 +01:00
Szymon Kłos ad760e4d2c jsdialog: make toolbar styling shared
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id33cfcf9d91fbfe4a2180e945dd32439d4d5999e
2024-03-29 21:55:23 +01:00
Parth Raiyani c9ef8c3015 Removed Group download as option from coolwsd.xml
Signed-off-by: Parth Raiyani <pmr642001@gmail.com>
Change-Id: I47c07ed88d68de5fc65b2e5e1e0896bc2a082131
2024-03-29 15:07:07 +01:00
Skyler Grey b378a0fd77 calc: pinch-zoom: fix hard edge when zoom-panning
Previously we clamped the pinch so it could not go outside the bounds of
the initial zoom pane (presumably this was intended to avoid you going
outside the map with your pinch).

Unfortunately, this is the initial bounds, causing a nasty edge when you
panned around too much, which is particularly noticable with the
improved zoom-pan ergonomics.

I decided to remove this altogether rather than scaling it correctly, as
I don't believe that a check to make sure you're not going outside the
map feels particularly natural when pinch-zooming around the document,
particularly as only the center of your pinch is checked.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Ib98ca91e82bbe7f2bb9986595fc5f7928e2206c9
2024-03-29 13:44:32 +01:00
Skyler Grey 6912edc5de calc: pinch-zoom: Fix zoom end position
Previously the new zoom did not correctly calculate where the end of the
zoom should be centered, causing the zoom to jump when it finished.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Ic6c1eb032c66af764da4efca3f015af895e75600
2024-03-29 13:44:32 +01:00
Skyler Grey f897c3fccc calc: pinch-zoom: stop cursor offset
Previously, overlayed elements such as the cursor did not properly
follow the new zoom as they were separately calculated. To fix this, we
can use the _getZoomDocPos function to calculate where these should be
drawn

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: I39d6c926895e72be03ad33e6a9221a4f740e9b50
2024-03-29 13:44:32 +01:00
Skyler Grey 96e18f48a8 calc: pinch-zoom: Recognize zoom start position
Previously, the document would not always properly follow your finger
when you tried to pan while in a pinch-zoom. In particular, we would
sometimes get this disatrously wrong (e.g. at some zoom levels we would
move our fingers one way and have the document go the other!).

I have rewritten the _getZoomDocPos function to avoid this, in
particular by adding a parameter to keep track of where our zoom started
from which lets us know where we need to zoom around. In the
mouse/button zoom case this doesn't change, but in the touchscreen zoom
case it informs us how much the viewport should have been moved.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Ia87d941651da43eb5c16c8ce10a2493e7214252a
2024-03-29 13:44:32 +01:00
Skyler Grey 3ba8257c64 Stop a leftover swipe action preventing a zoom
Previously if we were in animation from the end of a swipe and we started
a zoom, we would cut the animation but not continue to start a zoom. This
made surprising behavior when you could put down two fingers to stop the
ongoing movement but could not then zoom with them.

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Ib4c6e686caaf78b3637563da6fcc914c06f3055a
2024-03-29 13:44:32 +01:00
Szymon Kłos 026ac909c1 remove-w2ui: disable search next/prev buttons on init
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I520d495dc8f00288a451cc73eeca327d1fdcd02f
2024-03-29 01:40:29 +01:00
Szymon Kłos 35c13792ca remove-w2ui: add tooltips for statusbar buttons
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ifd8994e78947b38dd27a3382b8af15c1c7745c78
2024-03-29 01:40:29 +01:00
Szymon Kłos 2f42cbeb63 remove-w2ui: hide some statusbar items in readonly mode
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: If8ed7efc5d8eec6d28366d8e25d801a31895c9b9
2024-03-29 01:40:29 +01:00
Szymon Kłos a0c0e1601e remove-w2ui: permission mode indicator without hover effect
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ibd540c00a7aaf53b0a831847ae0eb57137e418c4
2024-03-29 01:40:29 +01:00
Szymon Kłos 6a452d9023 remove-w2ui: convert status bar to JSDialog
- move plain html controls into HTMLContent widget
- reuse scrollable bar from notebookbar
- use dynamically loaded menu entries in MenuButton
- allow to update MenuButton which contains menu id in the id

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I2b77479520c03420fefeb32dd09d6b34279e5686
2024-03-29 01:40:29 +01:00
Szymon Kłos a091d1970c remove-w2ui: reuse user list from notebookbar
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id3bb9615385e9951dd53d591f71389975fa8ace9
2024-03-29 01:40:29 +01:00
Henry Castro 652d52f7df browser: fix scroll tab when loading document
If the element 'spreadsheet-tab-scroll' does not exist
when loads document, then scroll to the selected tab.

Change-Id: Iec86225f7ea97a149d455210921daaf91a4e761a
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-03-29 01:43:39 +05:30
Gökay Şatır b6a1df0c9d Show cursor in readonly mode.
Add a guard for potentially undefined functions in scroll section.
Allow arrow and home, end keys in readonly mode.

Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: Ie695ebf2cd14f49fbb4db2b9ba8f81df5b289591
2024-03-28 12:44:53 +03:00
Szymon Kłos 6f44bbc600 Fix error on hide tooltip
Tooltip can be modified only when was already initialized.
Sometimes we tried to hide it without initilization.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I6f4a18acef6be2d3c00548f8b4408c7876d6bdfa
2024-03-28 07:51:42 +01:00
Henry Castro 5c7f26ed22 browser: ignore validation of hidden inputs
"An invalid form control with name='' is not focusable."

Change-Id: Ic81d91748371147beed6cbc7b43cc569412760ba
Signed-off-by: Henry Castro <hcastro@collabora.com>
2024-03-27 09:05:22 -04:00