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

117 Коммитов

Автор SHA1 Сообщение Дата
Ferdinand Thiessen c4a6618791
fix: Adjust time intervals for relative time
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-08-26 18:46:09 +02:00
Grigorii K. Shartsev a7564303e8 feat(NcCounterBubble): add count prop and humanize output
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-08-20 12:34:59 +02:00
John Molakvoæ (skjnldsv) 74dc419278
fix(NcCheckboxRadioSwitch): keep data attributes bound to the wrapper
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2024-07-04 14:38:47 +02:00
Grigorii K. Shartsev 752fa3610e fix(richText): don't resolve relative links without leading slash
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-06-13 17:28:27 +02:00
Ferdinand Thiessen 73ea7253fe
chore: Add SPDX license information and REUSE CI workflow
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-13 10:35:27 +02:00
Ferdinand Thiessen 2a462c44c3
refactor: Fix linter issues on test case files
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-28 16:36:32 +02:00
Ferdinand Thiessen 5d4b6d7055
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 18:39:43 +02:00
Ferdinand Thiessen 9909dba538
feat(NcAppNavigationCaption): Allow to set heading level
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-08 22:26:43 +02:00
Christopher Ng 4f57f6d120 test(NcDateTime): Works with different languages
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-04-22 16:41:30 -07:00
Ferdinand Thiessen 395fc5f235
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-04-20 01:57:52 +02:00
Ferdinand Thiessen 7246aa3d70
Merge pull request #5493 from nextcloud-libraries/fix/nc-date-time-fulldate
fix(NcDateTime): When relative time is disabled return a string and not the reference to it
2024-04-19 21:40:44 +02:00
Grigorii K. Shartsev 7b81387e37 fix(autolink): correctly handle relative links without base
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-04-18 19:50:01 +02:00
Ferdinand Thiessen 557b1ec847
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-12 21:36:21 +02:00
Grigorii K. Shartsev ef0d06f31f test(autolink): add tests for getRoute
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-04-10 12:43:21 +02:00
Ferdinand Thiessen 23dfbb00ca
fix: Adjust test setup
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-04-09 22:36:31 +02:00
DorraJaouad 487330a4dc fix(NcRichText): apply interactivity
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
2024-04-08 15:53:12 +02:00
Maksim Sukharev b532af4df7
fix(tribute): provide avatar url correctly when in dark mode
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2024-03-19 12:01:29 +01:00
Ferdinand Thiessen 8c72eb4ace
fix(NcActions): Rename 'navigation' to 'expanded'
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-11 13:02:48 +01:00
Ferdinand Thiessen f3125d160d
feat(NcActions): Allow to manually specify the semantic menu type
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-11 12:33:25 +01:00
Maksim Sukharev 18e96f6f2d
fix(richEditor): reference server-scoped regular expression to match complex user mentions
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2024-03-07 22:57:13 +01:00
Maksim Sukharev 84db98a0d8
test(richEditor): expand mentions rendering tests
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2024-03-07 22:57:12 +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
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
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
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
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
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
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
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
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
Grigorii K. Shartsev d54ff77883 test: add resizeWindowWidth util
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2023-12-12 14:07:21 +01:00
Ferdinand Thiessen 9c8bb46553
fix(tests): Adjust tests for new wrapper element of contenteditable
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-12-03 21:38:50 +01:00
Grigorii K. Shartsev 7b035c4729 fix(NcAppNavigation): make navigation closed on mobile initially
Navigation closed on switch to mobile, but it wosn't closed when page was initially open on mobile.

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2023-11-22 12:10:59 +01:00
Joas Schilling 8703e8b48f
Merge pull request #4845 from nextcloud-libraries/bugfix/noid/improve-relative-time-handling
fix(NcDateTime): Also use months for relative date time
2023-11-17 09:46:43 +01:00
Joas Schilling 7ab87e4ef9
fix(NcDateTime): Also use months for relative date time
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-11-17 09:26:13 +01:00
Grigorii K. Shartsev 2d17f2d56c fix(NcRichcontenteditable): remove placeholder attr
This attribute is not valid on `div[richcontenteditable]` and was used only to pass value to css.

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2023-11-17 00:16:14 +01:00
Pytal 1505afce19
Merge pull request #4798 from nextcloud-libraries/fix/app-settings-dialog
fix(NcAppSettingsDialog): `unregisterSection` should remove the section instead of remove all other
2023-11-16 11:10:05 -08:00
Joas Schilling 926b8ffe23
Improve relative time handling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-11-16 12:46:45 +01:00
Ferdinand Thiessen 06b5c2bc5b
fix(NcAppSettingsDialog): Adjust tests to be independent from implementation
Co-authored-by: Grigorii K. Shartsev <me@shgk.me>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-11-16 02:58:36 +01:00
Ferdinand Thiessen c5eccf6cf7
fix(NcAppSettingsDialog): `unregisterSection` should remove the section instead of remove all other
Also fix some minor issues and only warn on duplicated name instead of error

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-11-16 02:58:36 +01:00
Raimund Schlüßler 62379547a1 refactor(NcAppNavigation): use isMobile composable in tests
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
2023-11-14 06:08:34 +05:00
Grigorii K. Shartsev 48cba09f6e feat(isMobile): add useIsMobile composable instead if IsMobileState util
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2023-11-14 06:08:34 +05:00