Commit graph

78 commits

Author SHA1 Message Date
Szymon Kłos
a58c802d5b Create util for doing tab focus cycle inside container
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I25b44ebd1954301de4be0a4b4d22286f026a62fe
2023-07-14 10:32:34 +02:00
Szymon Kłos
ee3935a997 jsdialog: calendar control
can be tested in Writer -> Review -> Manage -> Filter (date dropdown)

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I63b052ae29ac45b9ded66d1ca75195c58f3d7e13
2023-07-11 12:48:28 +02:00
Gökay Şatır
3e40f3fbe4 Add functionality for notebookbar accessibility keys.
Signed-off-by: Gökay Şatır <gokaysatir@gmail.com>
Change-Id: I97476d05559444fe895cd6bf4e040f43350a6706
2023-06-23 20:06:35 +03:00
Attila Szűcs
7414f0b1c1 navigator: explaining text in case of empty contenttree
Add a TR with the text:
"Headings and objects that you add to the document will appear here."
if the navigator is empty.

Signed-off-by: Attila Szűcs <attila.szucs@collabora.com>
Change-Id: Iff944df90b921e6f6415d2a3bee462b86e5a5eb4
2023-06-09 07:28:35 +02:00
Marco Cecchetti
b9f9cef60a a11y: populating editable area with focused paragraph
We handle notification from core about currently focused paragraph:
content, caret position, text selection start/end.
Notifications are sent on any text changes, even when the text has
been modified in another view.
Moreover we can request such info to core at any time.
That allows AT software to read focused paragraph and selected text.
All that keeping editing still working.
A set of new cypress tests for checking clipboard content has been
developed.

failing cpp unit test:
- HTTPWSTest::testInactiveClient
'unexpected message' assertion was failing since an idle client can
receive an a11yfocuschanged message when the same paragraph has focus
in both view and the active view is editing the paragraph.

failing cypress tests:
desktop
- calc/autofilter_spec.js
  - added more wait time before performing clickOnFirstCell
- impress/undo_redo_spec.js
  - Repair Document was broken
    - we need to select 'Hello world' in order to overwrite it

mobile
- impress/spellchecking_spec.js
  - Apply suggestion
    - better use selectTextOfShape instead of Ctrl-A

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I070d390543fa66fe786c4a0661fa09f891b9883e
2023-05-31 22:43:51 +02:00
Michael Meeks
f9eda6c5d0 perf-test: type for a minute or so, with more text.
Change-Id: I90ee29ed1c69cda0c9db2d4375f7417ab2142b5e
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-05-22 20:21:13 +01:00
Michael Meeks
29fedecd21 perf-test: disable SSL mode, with self-signed local certs it fails.
Error: self signed certificate in certificate chain
    at TLSSocket.onConnectSecure (node:_tls_wrap:1530:34)
    at TLSSocket.emit (node:events:526:28)
    at TLSSocket._finishInit (node:_tls_wrap:944:8)
    at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:725:12)
    at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17)
Change-Id: I27462802a6b1cfaed683277d111a480ca474cd7e
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2023-05-22 20:21:10 +01:00
Henry Castro
107509260b browser: fix bundle exceptions
builddir != srcdir

Change-Id: I0c129d2bc9ea11fc0d46b37a72faa6a32a69b002
Signed-off-by: Henry Castro <hcastro@collabora.com>
2023-05-14 14:40:24 +02:00
Gökay Şatır
9d6296e4b3 Remove unused document signing code.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I30cf381d1fa282cf222ab5abc676374ab7eefb6c
2023-05-08 21:51:47 +03:00
Gökay Şatır
aa47a9f0a9 Remove json-js and stylelint-config-standart packages.
We don't need the first one and we don't use the latter one.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I1f48ff5487621781eb38dd8e4e8e2a389a3059d6
2023-04-01 11:30:07 +03:00
Gökay Şatır
260cbed5d3 Remove vex from code.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I054977b5c71364c59c7f1fdd1f5d691380951ebb
2023-03-25 07:03:05 +03:00
Pedro Pinto Silva
585a438944 Revert "Revert "Add color-scheme-dark.css support""
This reverts commit a864d41c09.
Because we can now work in this WIP feature in its dedicated
feature branch.

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
2023-03-17 17:34:05 +00:00
Szymon Kłos
0e385ef2ec jsdialog: move menubutton to separate file
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ifd314f884e7a96b76a74dcc19922746938e885b5
2023-03-16 09:25:06 +01:00
Szymon Kłos
dae1f7438a jsdialog: move Drawing Area to separate file
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id659d7e2fc9b50d43d66fb48d78c1f1dede4b23f
2023-03-16 09:25:06 +01:00
Szymon Kłos
ad86b08c93 jsdialog: handle scrolled window properties
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id278ff25bb5a87b26ff4e45fca8d972140d16c38
2023-03-15 10:46:44 +01:00
Szymon Kłos
824afb669c jsdialog: mobile tab handler in separate file
and don't hide tabs

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic78c8c17e1543ff4dc1a0874d13e05f5a7a7426b
2023-03-14 10:31:26 +01:00
Szymon Kłos
1665d6e7bc Move formulabar edit field to separate file
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ia4d5f1c8547cf329c5f624ad09ac9049bdda62f7
2023-03-14 10:31:26 +01:00
Gökay Şatır
7b205f8821 Rename version check to versionbar.
There was a naming conflict with infobar event.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I0b2a80bcb6f6e636980f8acff21f39fec5414174
2023-03-11 10:00:17 +03:00
Gökay Şatır
045df53848 Remove vex dialog from infobar.
Remove the control.infobar file.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I57a0be34b318413256d691e636510e0a32403751
2023-03-11 10:00:17 +03:00
Gökay Şatır
86e8491707 For .eslintrc change, see: https://github.com/typescript-eslint/typescript-eslint/issues/1824
idle handler is moved into typescript and outside of map variable.

vex dialog of handler is replaced with JDSdialog.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I341c28e9e3f1659987b871a235a50757f42d4d2e
2023-03-06 15:10:10 +03:00
Rash419
507d0f1a4a js: added localization for jquery-ui datepicker
replaced jquery-ui-dist node_module with jquery-ui
for localization

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I6dd95cb8859cd2e0626195a0b87b496fe44afc49
2023-02-28 15:51:36 +01:00
Szymon Kłos
0c10ed7a11 Move language selector to separate file
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I0c327b42ce381cb0be3aac5a3a6a995d15831421
2023-02-11 09:53:36 +01:00
Szymon Kłos
96230dddec jsdialog: move multiline edit widget to separate file
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ie47125930166ac966d057cd48c8e91b43f781bee
2023-01-31 15:52:17 +01:00
Balázs Varga (allotropia)
ceb1ba5668 WASM: Copy all the necessary files from builddir\wasm
to browser\dist, otherwise it has to be done by hand after every
wasm build.

Signed-off-by: Balázs Varga (allotropia) <balazs.varga.extern@allotropia.de>
Change-Id: I46c432116d0d42016dfc1573009d284f82c52114
2023-01-30 13:26:59 +02:00
Dennis Francis
8e05061f9b browser: convert calc header controls to TS
Control.Header.js -> Control.Header.ts
Control.ColumnHeader.js -> Control.ColumnHeader.ts
Control.RowHeader.js -> Control.RowHeader.ts
Control.CornerHeader.js -> Control.CornerHeader.ts

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ib0f111cf715171d91660c0672b2473df89f83b0d
2023-01-18 16:45:02 +05:30
Dennis Francis
688ea1d4ea browser: convert createRectangle() to typescript
The logic is simplified by not having to maintain redundant states for
x2, y2, area and rounded versions of all variables. Here they are
automatically calculated by using getters.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I0125c74d06bceaa69896029ce85c6437ffd3d0dc
2023-01-18 16:45:02 +05:30
Dennis Francis
b6a107291a browser: convert group controls to TS
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Iab63fbee8480c40a29635985e97764c1f62fc561
2023-01-18 16:45:02 +05:30
Dennis Francis
a0932fd840 browser: avoid duplication of check command
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I9a31f5abb20ce230925205501b7f1e67b53cb328
2023-01-18 16:45:02 +05:30
Tor Lillqvist
366b94a5fb Limit line length in uglified bundle.js file
Helps in the hopefully rare cases where you need to see what code some
error message points to. Otherwise bundle.js will have extremely long
lines, and many editors have a hard time with such. (For example: Line
1, column 2949562.)

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I229814e985348e94c8cda2d88b77ad1ea4b74ae7
2023-01-18 02:19:26 +02:00
Tor Lillqvist
b248787bfa We do want to temporarily use the idea that a "WASM app" is a separate thing
Only once we have that working will we go back to having a COOL client
that on the fly can switch from a normal COOL server to using local
online and core code in WASM.

Note that the --with-wasm-fallback configure option now then
temporarily is a no-op, and the ENABLE_WASM_FALLBACK Automake
conditional and WASM_BUILDDIR Autoconf macro are not used anywhere.

Once we have something that barely works as a proof of concept, we can
go back to working towards what we really want.

(Yeah, yeah, I know that "temporary" solutions have a tendency to
become more permanent than you expect...)

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I2f01acd418686e672fd9d2e12cbbd688b128dfa5
2023-01-15 19:46:37 +01:00
Tor Lillqvist
ee157c0810 Clean up WASM-related stuff in configury and the cool HTML page
There is no "Emscripten app", but a COOL client that additionally can
fall back to using in-client WASM code instead of a COOL server.

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I86517c6a8f6e0397f6c466278c7be19db001e6d8
2023-01-15 19:46:37 +01:00
Tor Lillqvist
8cc1c1baa5 Preparations for a "WASM app"
The WASM C++ bits (in wasm/wasmapp.cpp) will have to export functions
hande_cool_message(), handle_error_message(), and
handle_debug_message() to receive the calls from JS.

Change-Id: Ic7f2cffdeb4408a9f726ad70a8ceb8db372787dd
Signed-off-by: Tor Lillqvist <tml@collabora.com>
2023-01-11 09:27:36 +02:00
Szymon Kłos
e98e530b66 jsdialog: extract TreeView widget file
This starts cleanup in JSDialogs, we will move
widgets to separate files for easier maintaining.
In the future we will be able to convert single files
to TypeScript

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I4ca26bd51f895476a17ba1d54d9cdb684e8c8e2b
2022-12-14 17:31:38 +01:00
Andras Timar
0f40ddbf8b Fix syntax error in Makefile.am
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I7b72a46379833ca8eba21e4ba39ea0271017f216
2022-12-01 21:10:37 +01:00
Pranam Lashkari
2cfae369af initial zotero skeleton
add zotero UI only if user is logged in
when zotero citation edit button is clicked,
fetch the library with zotero API.
Let user select what to insert

at this stage its not a complete solution but just first stage

Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Id67d8409bcd6416994713acd9ace495b24823fb0
2022-11-30 20:37:48 +01:00
Szymon Kłos
07c3538589 mobile-wizard: create separate window container
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I8317cb7ec9ae31de07c3f2dd4a691afafce9073d
2022-11-25 17:30:39 +01:00
Henry Castro
38764966dc browser: add fzstd lib
usage

	var decompressed = fzstd.decompress(compressed);
	// Second argument is optional: custom output buffer
	var outBuf = new Uint8Array(100000);

	// IMPORTANT: fzstd will assume the buffer is sufficiently sized, so it
	// will yield corrupt data if the buffer is too small. It is highly
	// recommended to only specify this if you know the maximum output size.
	window.fzstd.decompress(compressed, outBuf);

Change-Id: I0b378f9395b2442bac9f0790f7633e6a6cb0402e
Signed-off-by: Henry Castro <hcastro@collabora.com>
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-11-02 12:09:53 +01:00
Dennis Francis
08f4872e90 remember scroll position on switching tabs
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I7e540f08d2d493e449a41c07fe054207bb79f4ac
2022-10-14 11:55:39 +03:00
Andras Timar
f66871cf18 Enable l10n of browser/src/map/handler/Map.Feedback.js
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iceebef11d522be1a964be35dbd6484ed44b699d4
2022-10-07 17:08:00 +02:00
Rash419
d13d430b58 writer: introducing new mention feature
now you can insert a mention just by starting to type with @
integrator needs to implement UI_Mention postmessage api endpoint on which
online will send request of initial character what user is typing on the basis of
that integrator should send the list of user using Action_Mention postmessage api call
object where each object contains { username: '<username>', profile: '<username profile link> }
for example you can check framed.doc.html

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I38387cd05f1654b0bdb2b4f31cbac633eece5722
2022-09-27 14:43:16 +05:30
Andras Timar
cf6e22c22c Fix typos in comments
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I813f652b516c79f350b46317e589b91e0ef39a1a
2022-08-23 18:37:44 +02:00
Pedro Pinto Silva
a864d41c09 Revert "Add color-scheme-dark.css support"
This reverts commit 08b1d4b1e78fc2560d554b5935452ebb2d025214.

Better to avoid backporting WIP dark mode at least until
issue number #5054 is fixed

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Id4fe8582fdebe9ad078ef5eaa7ba6be655cfb941
2022-08-04 15:26:47 +02:00
Pedro Pinto Silva
ddcf4797a6 Remove Toolbar-mobile.css, avoid bleeding out rules to desktop
The rules found in toolbar-mobile.css seem to no longer be needed
in any shape or form on desktop (even on FF). Remove file and
insert those changes within device-mobile (so it is loaded only
when on mobile)

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I58a3d52fc6313a8e32916fa2b5dd4796dd1c1cef
2022-07-06 08:35:13 +02:00
Rash419
0e12c85fc9 browser: contentcontrol: added dropdown type
- added a new menu button 'form' in classic and tab button in notebookbar for content control

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: Ibe06667de39199fd2541fa70ced3ff879274366d
2022-06-01 15:33:47 +03:00
Gökay Şatır
a4885396bb Remove unused divOverlay parts.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I98ea380037e1653cc4635f895d472825df413c73
2022-05-16 21:52:09 +03:00
Gökay Şatır
04a049922a Remove unused boxzoom related parts.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I6ce90e4ec020f2c96ad72b54ea5c5d2182c91bc1
2022-05-16 21:51:56 +03:00
Rash419
c9b9a6589e introduce content control in online
added unocommand to enter rich text in classic, NB and mobile
created a new section to draw rich text rectangles
handle the callback for content control

Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: If9912b3598729c26014519c4e1c3c65000b973a4
2022-05-13 17:57:53 +03:00
Henry Castro
f19348f0c3 browser: fix bundling error
The uglify tool does not support es6

Change-Id: Ia87651ad39064889c99922b5e910bd4bcaf09885
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-09 16:40:57 +01:00
Henry Castro
e3c170cf94 browser: add pako dev dependency
https://github.com/nodeca/pako

Change-Id: I115c6c729f6783a23856a0e41f1908a7fc7f61fe
Signed-off-by: Henry Castro <hcastro@collabora.com>
2022-05-09 16:40:57 +01:00
andreas kainz
592d27a409 Add color-scheme-dark.css support
@media (prefers-color-scheme: dark) setting
is available by use color-scheme-dark.css
instead of color-scheme.css

sure the scheme need some update
but there are other open points like
use dark color for document
use dark colibre icons

this is only the .css change
so no full dark mode update

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I5c2adcbb75583a952f419af507d7cfe5c1343e3c
2022-05-03 10:40:35 +02:00