fix(deps): update dependency @nextcloud/vue to v9 (main) #2077
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^8.31.0->^9.1.0Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
nextcloud-libraries/nextcloud-vue (@nextcloud/vue)
v9.1.0Compare Source
Full Changelog
🚀 Enhancements
orderprop, ensure intended order in navigation list #7636 (Antreesy)NcAppSettingsSectionShortcuts,NcHotkeyListandNcHotkey#7633 (ShGKme)🐛 Fixed bugs
ts-md5#7623 (susnux)Other Changes
<script setup lang="ts">#7651 (ShGKme)v9.0.1Compare Source
Full Changelog
🐛 Fixed bugs
Other Changes
v9.0.0Compare Source
Full Changelog
💥 Breaking Changes
This mostly affects the visual appearance of components.
NcSettingsInputTextcomponent was deprecated in v8 and is now removed.Plugin registering removed
The plugin registering all the components and directives globally is removed.
Instead use local registration of components and directives.
If you really need an alternative we recommend using
unplugin-vue-components.Import paths changed
The old import paths like
@nextcloud/vue/dist/Components/NcComponent.jswere removed.Instead use the new ones (
@nextcloud/vue/components/NcComponent).Example shell command to do the refactoring:
Container components now default to
box-sizing: border-boxFor container components that can be directly mounted to
<body>thebox-sizingwas adjusted to match the behavior ofNcContent.The
box-sizing: border-boxis now default for following components and its content:NcDialogNcModalNcPopoverConsistent usage of
modelValuepropAll input elements were refactored to use the
modelValueprop instead of the now removedvalue/checkedprop and emit theupdate:modelValueevent instead of the removedupdate:checked/update:value/inputevents.This which allows consistent using of
v-model.Affected components:
checkedprop andupdate:checkedeventNcActionCheckboxNcActionRadioNcCheckboxRadioSwitchvalueprop andupdate:value/inputevents:modelValueprop ofNcActionRadiois expecting to have typestring|numberto be compared tovalueprop.valueprop was renamed tomodelValue, theupdate:valueorinputevents were renamed toupdate:modelValue. This affects the following components:NcActionInputNcActionTextEditableNcColorPickerNcDateTimePickerNcDateTimePickerNativeNcInputFieldNcPasswordFieldNcRichContenteditableNcSelectNcSelectTagsNcSettingsInputTextNcSettingsSelectGroupNcTextAreaNcTextFieldNcTimezonePickerRemoving the
exactpropThe
exactprop, previously used byrouter-linkcomponents, was removed.This affects the following components:
NcActionRouterNcAppNavigationItemNcBreadcrumbNcButtonNcListItemRenaming icon slot of
Nc*FieldThe leading icon slot was changed from
#defaultto#iconinNc*Fieldcomponents:NcInputFieldNcTextFieldNcPasswordFieldBoolean props default to
falseSome boolean props that have been deprecated in favor of alternatives with default value
false,are now removed. Following components have been adjusted:
NcAppContentallowSwipeNavigationdisabledSwipeNcAvatarshowUserStatushideStatusNcAvatarshowUserStatusCompactverboseStatusNcModalcloseButtonContainedcloseButtonOutsideNcModalenableSwipedisableSwipeNcModalcanClosenoCloseNcDialogcanClosenoCloseNcPopoverfocusTrapnoFocusTrapAdditionally the default value
closeOnClickOutsideforNcModalwas aligned withNcDialogand now defaults tofalse.Removal of
typeandnativeTypepropsThe
typeproperty for button components (NcButton,NcActions,NcDialogButton) was deprecated for the usage with color variants likeprimary.The fallback behavior was removed,
typenow only allows the native HTML button type likebutton,resetorsubmit.Instead use the
variantproperty for the color variant.The
nativeTypeproperty was removed in favor oftype.Event names
To have a consistent naming for custom event the following events were deprecated
and now are removed in favor of a new consistent event name:
---------------|-----------------|----------------
NcAppContent|resize:list|resizeListNcRichText|interact:todo|interactTodoMixins are removed
Mixins only work in Options API and are in general not recommended by Vue anymore:
As this library also uses composition API now all required mixins have been migrated to composables which work in Options API and Composition API.
Especially the following are now provided as composables:
isFullscreenis now provided asuseIsFullscreenisMobileis now provided asuseIsMobileandisMobileStatewas removed.The
richEditingmixin can be replaced by just using theNcRichTextcomponent.Other breaking changes
NcActionsandNcAction*ariaHiddenproperty is removed, please do no longer provide it, otherwise the root element will inherit incorrect aria-hidden.NcAppSidebarclosingandopeningevents were removed.They are directly emitted when the sidebar was opened when using
v-ifand also just duplicated the state of the
openprop #5606NcButtonnow does no longer hasrole="button"when used as a link (passing thehrefprop or a router link (to)).Instead, for accessibility and semantical correctness, has the
linkrole.NcColorPickercloseevent was removed in favor of theclosedevent, this was done for consistent event names.NcCounterBubblecountprop is now required #5997NcHeaderMenuopen,closeandcancelevents were removed in favor ofopenedandclosedevents #6429NcSettingsSectionlimitWidthwas removed (the content is now always limited width) #5605isFullscreen, andisMobilemixins were removed. Use the according composables instead.clickOutsideOptionsmixin is removedbox-sizing: border-boxis now default for following components and its content. This is done to match behavior ofNcContent(as they can be mounted directly tobody):NcModalNcPopoverNcDateTimePickerrangeproperty was removed in favor oftype="datetime-range"(datetime ranges),type="date-range"(date only ranges), andtype="time-range"(time only ranges).langproperty was replaced with thelocaleproperty.formatterproperty was removed.NcPopoveris no longer a transparent wrapper over thefloating-vuepackage.Instead only use the documented properties and events.
If you find some use cases not covered by the documented interface, please open a feature request.
NcRichContenteditableNcAutoCompleteResult: Thetitleprop was deprecated and is now removed in favor of thelabelpropNcMentionBubble: Thetitleprop was deprecated and is now removed in favor of thelabelpropNcSelectuserSelectproperty was removed, instead just use theNcSelectUserscomponentcloseOnSelectproperty was removed in favor ofkeepOpen.NcTextField:'arrowRight'for thetrailingButtonIconproperty was deprecated is now removed in favor ofarrowEnd.Tooltipdirective was deprecated in v8 and is now removed.This was done in favor of native tooltips using the
titleattribute, which is better for accessibility.If you really need custom formatted tooltips, you can use
NcPopoverinstead.useFormatDateTimecomposable - only exported from default entry point - is removed.Instead you can now use
useFormatTimefor formatting a time to a local date string oruseFormatRelativeTimeto format it to a humanized string like a day ago.usernameToColorfunction is named exported instead of a default export.This was done to have consistent export types.
🚀 Enhancements
NcButton#4525 (susnux)useFormatRelativeTimecomposable #7067 (susnux)activeas slot property to the "icon"-slot #7273 (susnux)closeOnClickOutsidewithnoCloseOnClickOutside#7525 (ShGKme)🐛 Fixed bugs
infoslot #6666 (Antreesy)$attrstoDropdowninNcPopover#4564 (raimund-schluessler)falsefor disabled tooltip #4740 (raimund-schluessler)menuneeds a label assigned so label by trigger #6023 (susnux)requireddoesn't work #6458 (ShGKme)spawnDialogtypes #6781 (mattersj)[Date, null]#6726 (susnux)NcSelectUsersexport #6947 (susnux)core.appsformat in Nextcloud 30 #7010 (julien-nc)showUserStatusprop #7053 (Antreesy)activeprop take higher priority #7086 (DorraJaouad)this.$refs.actions.$refs.menuButtonis undefined #7143--border-radius-container#7176 (susnux)toprop from VueRouter #7201 (susnux)NcActions#7237 (susnux)ariaLabelnorariaLabelledbyis set #7350 (susnux)ariaLabelprop and add proper default values #7367 (susnux)Changed
default: truewithdefault: false#6653 (susnux)GenRandomIdwithgetRandomId#6425 (susnux)md5dependency forusernameToColorand migrate to TS #6657 (susnux)findRangesto Typescript #6662 (susnux)useIsMobileto TS and removeisMobileState#6658 (susnux)@vuepicklibrary #6651 (susnux)isSlotPopulated#6681 (susnux)passive: truetotransitionendevent listener #6688 (skjnldsv)mainand Vue 2 branch isstable8#6697 (susnux)GetChildrenutil #6701 (susnux)GetParentto Typescript #6702 (susnux)NcDateTimePicker#6704 (susnux)checkedprop tomodelValue#4994 (raimund-schluessler)modelValuenaming #4990 (raimund-schluessler)NcSelect*and related components #4587 (raimund-schluessler)valuetomodel-value#4647 (raimund-schluessler)nextbranch #6007 (susnux)useIsDarkThemeimport #6215 (ShGKme)package.json#6405 (susnux)NcButtonfrom render function to template #6033 (susnux)string-lengthdependency and replace with native solution #6779 (susnux)Configuration
📅 Schedule: Branch creation - "every weekend" in timezone Europe/Berlin, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.