-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(vue3): Migrate NcSelect*
and related components
#4587
Conversation
NcSelect*
and related components
export { default as isMobile } from './isMobile/index.js' | ||
export { default as richEditor } from './richEditor/index.js' | ||
// export { default as isMobile } from './isMobile/index.js' | ||
// export { default as richEditor } from './richEditor/index.js' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These mixins are not yet migrated, and would break the build.
@@ -96,7 +96,8 @@ | |||
"unist-builder": "^4.0.0", | |||
"unist-util-visit": "^5.0.0", | |||
"vue": "^3.3.4", | |||
"vue-material-design-icons": "^5.1.2" | |||
"vue-material-design-icons": "^5.1.2", | |||
"vue-select": "^4.0.0-beta.6" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fell back to the upstream library here, because nextcloud/vue-select
does not have a vue3 version yet. Once we migrated this, we have to change the dependency here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:disable-menu="true" | ||
:disable-tooltip="true" | ||
:display-name="displayName || name" | ||
:is-no-user="isNoUser" | ||
:size="avatarSize" | ||
class="option__avatar" /> | ||
class="option__avatar" /> --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NcAvatar
relies on NcActions
, which relies on NcSelect
. So I commented it out here, to not have a giant PR with actions, datepicker and select together. I will bring it back once NcActions
are migrated.
ba1e096
to
f699319
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a problem with duplicating events (see comments above)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 as an iterative migration without 100% feature+functional parity, but for reference please put a TODO in NcSelect.vue that all @nextcloud/vue-select
specific improvements need to be reimplemented on top of the upstream vue-select beta branch
I added a TODO that we have to switch to |
@Pytal I just migrated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Anyone up for a second review so we can go ahead here? Many other migrations depend on this. |
@susnux 👉👈 |
Signed-off-by: Raimund Schlüßler <[email protected]>
66147d9
to
61bb1f9
Compare
Rebased and squashed. |
This migrates
NcSelect
and related components.The components behave slightly different to the version in
master
currently, because I had to fall back tovue-select
as our forkednextcloud/vue-select
version lacks vue 3 support. Once this is done, we have to adjust the dependency. However, I would like to ignore this for now, as I needNcSelect
to migrate the other components ofnextcloud/vue
.