Граф коммитов

6527 Коммитов

Автор SHA1 Сообщение Дата
Nextcloud bot 3c62805a62
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-02-03 01:39:40 +00:00
github-actions[bot] 46799fb379
Merge pull request #5333 from nextcloud/renovate/main-nextcloud-vue-8.x
fix(deps): update dependency @nextcloud/vue to ^8.6.1 (main)
2024-02-02 13:52:11 +00:00
renovate[bot] 35447ce691
fix(deps): update dependency @nextcloud/vue to ^8.6.1 2024-02-02 13:12:40 +00:00
Nextcloud bot d2fe6a07cf
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-02-02 01:40:44 +00:00
nextcloud-command 475aa6a556 chore(assets): recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-02-01 11:40:08 +00:00
Grigorii K. Shartsev 11a3295ece
Merge pull request #5218 from nextcloud/fix/5216/remove-incorrect-roles
fix(menubar): menubar and table menus a11y
2024-02-01 16:30:46 +05:00
Grigorii K. Shartsev 9d3139038c fix(menubar): name ActionFormattingHelp as NcActionButton to support NcActions
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-02-01 12:08:02 +01:00
Grigorii K. Shartsev e851f88583 fix(menubar): add separator between radio groups
- Separates different parts visually
- Required for a11y to group radio button in the menu

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-02-01 12:08:02 +01:00
Grigorii K. Shartsev af83b384c9 fix(menubar): separate NcActionButton from ActionSingle
- ActionSingle was used in 2 places:
  1. As a single button in the menu
  2. As an item in NcActions
- NcActions doesn't fully support non-direct NcAction* children
- Move NcActionButton usage from ActionSingle to a new component
- This new component is named NcActionButton so that NcActions will consider it to be a valid NcAction* component

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-02-01 12:03:57 +01:00
nextcloud-command c897a7f167 chore(assets): recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-02-01 08:28:38 +00:00
Julius Härtl 43f8a38c7d
Merge pull request #5327 from nextcloud/bugfix/5326
fix: Only unpause focus traps that we paused ourselves
2024-02-01 09:26:43 +01:00
Julius Härtl c22d700a37 fix: Only unpause focus traps that we paused ourselves
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2024-02-01 09:14:54 +01:00
nextcloud-command 43c451281e chore(assets): recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-02-01 01:51:05 +00:00
Nextcloud bot cb08683cba
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-02-01 01:40:38 +00:00
Grigorii K. Shartsev bfa83dff74 fix(menubar): set correct type for buttons instead of aria-selected
- Since `@nextcloud/vue@8.6.0` correct attributes are covered by `NcAction*` and `NcButton` components, including fixes:
  - Attribute should display not only active `attr="true"` state, but also non-active `attr="false"`
  - It should be `aria-pressed` for buttons and `aria-checked` for menu items instead of `aria-selected`
- Set correct `type` and active state
  - `type="radio"` for a list of options like `Heading`
  - `type="checkbox"` for toggle buttons like `Bold`
  - `type="button"` for general buttons widhout active state like `Undo`

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-01-31 12:16:18 +01:00
Grigorii K. Shartsev e5629fc753 refactor: implement ActionSingle via template instead of render-function
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-01-31 12:16:18 +01:00
Grigorii K. Shartsev eb02f5de9d fix(menubar): replace aria-pressed with text description in action list
- `aria-pressed` is not valid for a menu trigger button
- As alternative solution - show that there is a selected value directly in the text
- Remove incorrect prop for NcActions

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-01-31 12:16:18 +01:00
Grigorii K. Shartsev ada2fdd7cc fix(table): make text align buttons radio
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-01-31 12:15:15 +01:00
Grigorii K. Shartsev 21e76f34c4 fix(table): replace InlineActionsContainer by NcActionButtonGroup
It has the same styles and correct a11y attributes.

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-01-31 11:57:23 +01:00
Grigorii K. Shartsev 34d9710992 fix(menubar): remove incorrect `aria-activedescendant`
- `aria-activedescendant` should identify a visually focused element when the real focus remains on this element.
  In the current implementation it identified selected element (even when the menu is closed), not the focused.
- `aria-activedescendant` is not needed because NcAction has actual focus anyway.
  In case it will be actually needed, it should be implemented in the `NcActions`

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-01-31 11:57:23 +01:00
Grigorii K. Shartsev a762115e89 fix(menubar): remove incorrect `aria-haspopup`
- It must have string `"true"/"menu"` value
- It must be placed on the `button` itself
- It is already correctly set by `NcActions` and `NcPopover`

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-01-31 11:57:23 +01:00
Grigorii K. Shartsev b53602af10 fix(menubar): remove unneeded roles `menu`, `menuitem`
All these roles are correctly set by `NcAction*` components when needed.
Setting these roles in mixins and menu bar puts them on wrong elements.

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-01-31 11:57:23 +01:00
Grigorii K. Shartsev df1f3dc7fa fix: apply a11y attrs for session list trigger
- Migrate from deprecated slot syntax
- Use a11y attrs from `NcPopover` on a custom button

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-01-31 11:57:23 +01:00
github-actions[bot] 45290ea012
Merge pull request #5316 from nextcloud/renovate/main-nextcloud-router-2.x
fix(deps): update dependency @nextcloud/router to ^2.2.1 (main)
2024-01-31 07:32:42 +00:00
renovate[bot] 1d04855907
fix(deps): update dependency @nextcloud/router to ^2.2.1
Signed-off-by: Max <max@nextcloud.com>
2024-01-31 08:24:53 +01:00
Nextcloud bot 9c6cb8ce18
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-01-31 01:38:07 +00:00
nextcloud-command 5c23f686f7 chore(assets): recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-01-30 19:57:36 +00:00
Julius Härtl 065c6fb4e5
Merge pull request #5322 from nextcloud/juliushaertl-patch-1 2024-01-30 20:43:55 +01:00
Jonas a08430614c
Merge pull request #5158 from nextcloud/feat/link_preview_click
Link bubble menu to preview and edit links
2024-01-30 20:41:37 +01:00
Jonas b73181a258
fix(LinkBubble): Add some padding and border radius
Signed-off-by: Jonas <jonas@freesources.org>
2024-01-30 19:44:06 +01:00
Jonas aa673aba3b
fix(LinkBubble): Hide bubble after 100ms delay
Should allow Cypress to click on it before blur event happens.

Signed-off-by: Jonas <jonas@freesources.org>
2024-01-30 19:44:06 +01:00
Jonas a5911b876b
fix(LinkBubble): Allow to close link bubble with Escape
Signed-off-by: Jonas <jonas@freesources.org>
2024-01-30 19:44:06 +01:00
Jonas 60c1711ad5
fix(Link): Don't open link bubble for anchor links, jump to anchor directly
Signed-off-by: Jonas <jonas@freesources.org>
2024-01-30 19:44:06 +01:00
Jonas 07217adf65
fix(LinkBubble): Improved blur event handler registration
* Clicking outside the bubble always hides it
* Clicking inside the bubble never hides it

Signed-off-by: Jonas <jonas@freesources.org>
2024-01-30 19:44:06 +01:00
Jonas 9f7da38b79
fix(LinkBubble): Restore selection after updating the link
Signed-off-by: Jonas <jonas@freesources.org>
2024-01-30 19:44:06 +01:00
Jonas 37021385a9
fix(LinkBubble): Use private variables for LinkBubbblePluginView class
Signed-off-by: Jonas <jonas@freesources.org>
2024-01-30 19:44:06 +01:00
Jonas 9a819168fe
test(cypress): Fix link tests with link bubble
Signed-off-by: Jonas <jonas@freesources.org>
2024-01-30 19:44:06 +01:00
Jonas 648cf2036f
chore(LinkBubble): Remove code to customize link click handling
We no longer allow custom link click handlers in Text. Instead, the
reference widgets for link previews have to implement their own click
handlers.

Signed-off-by: Jonas <jonas@freesources.org>
2024-01-30 19:44:06 +01:00
Jonas dc13b01f3f
fix(LinkBubble): Prevent update race condition in read-only in Chrome
Signed-off-by: Jonas <jonas@freesources.org>
2024-01-30 19:44:05 +01:00
Jonas bbee8a06b7
feat(editor): Refactor link click handlers
New link click behaviour:
* Link left clicks without Ctrl/Meta open link bubble (Fixes: #3691)
* Link left clicks with Ctrl/Meta open link in new tab
* Link middle clicks open link in new tab
* Link middle clicks on Linux don't paste content (Fixes: #2198)
* No more custom open link handler in editor

Implementation details:
* Moved link click handler plugins back into Link mark class.
* Added 'data-md-href' attribute to a-elements in DOM, to be used in
  onClick handlers.

Signed-off-by: Jonas <jonas@freesources.org>
2024-01-30 19:44:05 +01:00
Jonas df2e5c35e9
refactor(RichText): remove option to disable Link extension
This option is not used anyway. We always use the Link extension.

Signed-off-by: Jonas <jonas@freesources.org>
2024-01-30 19:44:05 +01:00
Jonas da24829eeb
refactor(link): Improve readability of clickHandler function
Signed-off-by: Jonas <jonas@freesources.org>
2024-01-30 19:44:05 +01:00
Jonas d14558b861
feat(paragraph): Don't show link previews
Signed-off-by: Jonas <jonas@freesources.org>
2024-01-30 19:44:05 +01:00
Jonas f750a822f4
feat(editor): Add link view bubble to preview, edit and open links
Signed-off-by: Jonas <jonas@freesources.org>
2024-01-30 19:44:05 +01:00
github-actions[bot] b991d984bb
Merge pull request #5323 from nextcloud/renovate/main-nextcloud-vue-8.x
fix(deps): update dependency @nextcloud/vue to ^8.6.0 (main)
2024-01-30 17:43:17 +00:00
renovate[bot] d995e540c3
fix(deps): update dependency @nextcloud/vue to ^8.6.0 2024-01-30 15:32:48 +00:00
Julius Härtl b963426781
Update CODEOWNERS
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2024-01-30 16:19:37 +01:00
Nextcloud bot 1d0dc3b0df
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-01-30 01:37:02 +00:00
nextcloud-command 04d3ea3291 chore(assets): recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-01-29 07:39:13 +00:00
Julius Härtl cd2f39c5d5
Merge pull request #5281 from nextcloud/fix/sidebar-focustrap
fix: Fix tab focus when other elements are displayed next to text that are within a focus trap
2024-01-29 08:37:02 +01:00