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

151 Коммитов

Автор SHA1 Сообщение Дата
Ferdinand Thiessen 79ddba5f2e
Merge pull request #5568 from nextcloud-libraries/fix/next-caption-attrs
[next] fix(NcAppNavigationCaption): Only pass needed props to NcActions
2024-07-10 12:47:32 +02:00
Ferdinand Thiessen 8debebe91f
fix(NcCheckboxRadioSwitch): Pass attrs to `input` if available
If not button type, pass the attrs to the input element to allow setting aria tags like `aria-invalid` and `aria-errormessage`

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-07-08 12:38:04 +02:00
Ferdinand Thiessen 44d9f9c038 fix(NcAppNavigationCaption): Only pass needed props to NcActions
Only forward the real props and not all attributes,
for Vue3 this fixes the forwarding of `class` and `style`.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-07-07 14:12:43 +02:00
Grigorii K. Shartsev a2d26197ba fix(richText): don't resolve relative links without leading slash
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-06-14 13:45:31 +02:00
Ferdinand Thiessen 24f5d4b888
chore: Add SPDX license information and REUSE CI workflow
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-13 12:39:32 +02:00
Ferdinand Thiessen d75205af0a
refactor: Fix linter issues on test case files
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-31 11:57:42 +02:00
Ferdinand Thiessen 46bf2e1f8c
fix: Adjust Typescript definition export
Make sure Typescript definitions are correctly exported.
Also export them from the package.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-11 15:59:08 +02:00
Ferdinand Thiessen 2b34934ef8
Merge pull request #5569 from nextcloud-libraries/fix/next-config
[next] fix: Adjust tsconfig and eslintrc for tests
2024-05-11 12:03:25 +02:00
Ferdinand Thiessen 89529f7984
feat(NcAppNavigationCaption): Add `heading-id` prop to allow setting the ID on the caption itself
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-10 23:02:29 +02:00
Ferdinand Thiessen cd6bb01aac
feat(NcAppNavigationCaption): Allow to set heading level
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-10 22:38:31 +02:00
Ferdinand Thiessen 480d208e82
fix: Adjust tsconfig and eslintrc for tests
* Fixes `rootdir` in invalid place in tsconfig.
* Fixes wrong location of eslintrc

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-08 22:51:29 +02:00
Christopher Ng 5fde466ed4 test(NcDateTime): Works with different languages
Signed-off-by: Christopher Ng <chrng8@gmail.com>
(cherry picked from commit 4f57f6d120)
2024-04-22 16:50:22 -07:00
Ferdinand Thiessen 2fb45d9422
fix(NcDateTime): When relative time is disabled return a string and not the reference to it
The `.value` call was missing in case of disabled relative time. This causes the string to be quoted (because of stringification of the computed value).

To prevent similar issues the file is now migrated to Typescript, also fixed some other issues discovered by type checking.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-04-20 22:40:40 +02:00
Grigorii K. Shartsev ad49b6cc69 fix(autolink): correctly handle relative links without base
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-04-18 20:00:25 +02:00
Maksim Sukharev 470d313ce6
Merge pull request #5479 from nextcloud-libraries/backport/5419/next
[next] fix(NcRichText): more strictly resolve vue router's path
2024-04-11 21:37:24 +02:00
DorraJaouad 0512036536 fix(NcRichText): apply interactivity
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
2024-04-11 12:18:09 +02:00
Grigorii K. Shartsev 6521c467f4 test(autolink): add tests for getRoute
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-04-10 17:36:49 +02:00
Maksim Sukharev b29010ff2d
fix(tribute): provide avatar url correctly when in dark mode
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2024-04-10 10:13:13 +02:00
Maksim Sukharev 039ace4744
fix(richEditor): reference server-scoped regular expression to match complex user mentions
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2024-03-08 10:58:32 +01:00
Maksim Sukharev d744ee7149
test(richEditor): expand mentions rendering tests
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2024-03-08 10:58:30 +01:00
Raimund Schlüßler 13fcdbfc45
Merge remote-tracking branch 'origin' into chore/5230/merge-master-next 2024-02-11 10:46:59 +01:00
Grigorii K. Shartsev 52beddfad1 fix(NcRichContenteditable): bring back label prop for autocomplete
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-02-05 21:24:45 +01:00
Raimund Schlüßler cfe4eb0e92
Merge remote-tracking branch 'origin' into chore/noid/merge-master-next 2024-01-30 22:52:31 +01:00
Jonas 55aa36f506
fix(NcRichText): Make URL_PATTERN match localhost and URLs with ports
E.g. the file reference widget should work with links to Nextcloud on
localhost.

Also add some basic unit tests to prevent regressions with the regexes
in the future.

Signed-off-by: Jonas <jonas@freesources.org>
2024-01-30 10:44:45 +01:00
Raimund Schlüßler 4ddee9da78
Merge remote-tracking branch 'origin' into chore/noid/merge-master-next 2024-01-28 14:25:01 +01:00
Christopher Ng 16bff1103f test(NcAvatar): Test aria-label on menu toggle
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-01-26 14:18:27 -08:00
Raimund Schlüßler 3b391e9fc7
Merge remote-tracking branch 'origin' into chore/noid/merge-master-next 2024-01-23 23:33:08 +01:00
Maksim Sukharev ce2389db6d
enh(NcRichText): make checkbox interactive
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2024-01-23 18:53:50 +01:00
Grigorii K. Shartsev 1498ede833
Merge pull request #5119 from nextcloud-libraries/fix/nc-button--pressed-a11y
fix(NcButton): pressed state a11y
2024-01-23 22:19:27 +05:00
Ferdinand Thiessen b1c392fb75 enh(NcActionButton): Fully support sematic roles for pressed and checked states
* This introduces new props `modelValue`, `modelBehavior` and `radioValue`

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-01-23 18:00:01 +01:00
Ferdinand Thiessen 3ba708ce1f
Merge pull request #5103 from nextcloud-libraries/enh/emoji-picker-add-always-skintones
enh(NcEmojiPicker): Always show skin tone selector + save selection
2024-01-23 16:56:10 +01:00
Grigorii K. Shartsev 4a12c1365f fix(NcButton): pressed state a11y
- area-pressed should be false when not pressed
- pressed should only be present on buttons, not links
- fix example to not change text on press

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-01-23 15:12:07 +01:00
Ferdinand Thiessen b2527dd8b5
enh(NcEmojiPicker): Always show a skin tone selector
Also save the selected skin tone for future uses and communicate it with all other NcEmojiPicker instances

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-01-23 01:31:45 +01:00
Ferdinand Thiessen a41711a6b4
enh(NcInputField): Support numeric values - if numeric also emit numeric
If the type is set to number and a number is passed as value also emit a number instead of a string.

Co-authored-by: Grigorii K. Shartsev <me@shgk.me>
Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-01-22 04:05:13 +01:00
Raimund Schlüßler 868588129a
Merge remote-tracking branch 'origin' into chore/noid/merge-master-next 2024-01-21 18:42:09 +01:00
Julia Kirschenheuter 1ad3480fac
Merge pull request #5075 from nextcloud-libraries/fix/42599-remove-unneeded-attrs
Remove unneeded `tab`, `tablist` and `aria-selected` roles from navigation
2024-01-19 11:53:41 +01:00
julia.kirschenheuter edd8192724 Remove unneeded `tab`, `tablist` and `aria-selected` roles from navigation
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
2024-01-19 11:48:32 +01:00
Raimund Schlüßler a02bc611b2
Merge remote-tracking branch 'origin' into chore/noid/merge-master-next 2024-01-19 09:31:02 +01:00
Grigorii K. Shartsev 32af0a74b8 fix(NcPopover): warn when used with custom button without attrs
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-01-18 15:40:43 +01:00
Raimund Schlüßler c5eae12dba
Merge remote-tracking branch 'origin' into chore/noid/merge-master-next 2024-01-15 20:25:23 +01:00
Ferdinand Thiessen 95fe5dc1d6
fix(NcActions): In case of inline actions make sure to support icon as URL
Added an unit test case.

Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com>
Co-authored-by: Grigorii K. Shartsev <me@shgk.me>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-01-10 23:39:24 +01:00
Raimund Schlüßler cf90ad1f96
Merge remote-tracking branch 'origin' into chore/noid/merge-master-next 2024-01-10 22:33:59 +01:00
Ferdinand Thiessen 770ed084da
fix: Resolve linting issues due to stricter rules from Typescript parser
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-01-10 00:58:02 +01:00
Ferdinand Thiessen ca4fc37aaf
feat(NcButton): Migrate component to Typescript
* Fix some minor issues related to stronger typing

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-01-10 00:56:17 +01:00
Ferdinand Thiessen 32e9a1fd90
enh: Make the date time formatting reusable for applications
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-01-09 21:07:59 +01:00
Raimund Schlüßler 9a52259975
fix(test): correctly provide props in test
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
2023-12-30 21:24:43 +01:00
Raimund Schlüßler e7d25a8cc6
feat(NcRich*): migrate to vue 3
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
2023-12-21 15:18:31 +01:00
Raimund Schlüßler 55b334dc69
Merge remote-tracking branch 'origin' into chore/noid/merge-master-next 2023-12-17 08:55:44 +01:00
Pytal d0a4f5bd44
Merge pull request #4954 from nextcloud-libraries/fix/4941/NcAppSettingsDialog--respect-show-navigation-prop
fix(NcAppSettingsDialog): respect showNavigation prop
2023-12-14 12:25:01 -08:00
Ferdinand Thiessen ed9451b89d
fix(NcActionX): Allow relative icon URL
Most API returns relative icon URLs so we should also support them for NcActionXXX

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-12-13 00:10:31 +01:00