From 4eda604add41299895315f77eec36ac3de36894b Mon Sep 17 00:00:00 2001 From: Louis Chmn Date: Thu, 16 Oct 2025 15:09:34 +0200 Subject: [PATCH 1/5] feat(FilePicker): Set cursor as pointer on file rows Signed-off-by: Louis Chmn --- lib/components/FilePicker/FileListRow.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/components/FilePicker/FileListRow.vue b/lib/components/FilePicker/FileListRow.vue index 58ec1d6a6..38088fa84 100644 --- a/lib/components/FilePicker/FileListRow.vue +++ b/lib/components/FilePicker/FileListRow.vue @@ -132,6 +132,10 @@ function handleKeyDown(event: KeyboardEvent) { .file-picker { &__row { + * { + cursor: pointer; + } + &--selected { background-color: var(--color-background-dark); } From 7442fac8c30ccf113cf57c431635a322d4f23b89 Mon Sep 17 00:00:00 2001 From: Louis Chmn Date: Fri, 17 Oct 2025 11:23:50 +0200 Subject: [PATCH 2/5] feat(FilePicker): Expose `canPick` option This will inhibit selection of nodes Signed-off-by: Louis Chmn --- lib/components/FilePicker/FileList.vue | 7 ++++++- lib/components/FilePicker/FileListRow.vue | 13 +++++++++++++ lib/components/FilePicker/FilePicker.vue | 9 ++++++++- lib/components/types.ts | 7 ++++++- lib/filepicker-builder.ts | 18 +++++++++++++++++- lib/index.ts | 1 + 6 files changed, 51 insertions(+), 4 deletions(-) diff --git a/lib/components/FilePicker/FileList.vue b/lib/components/FilePicker/FileList.vue index 2bb90394f..59285bb79 100644 --- a/lib/components/FilePicker/FileList.vue +++ b/lib/components/FilePicker/FileList.vue @@ -67,7 +67,7 @@ :key="file.fileid || file.path" :allow-pick-directory="allowPickDirectory" :show-checkbox="multiselect" - :can-pick="multiselect || selectedFiles.length === 0 || selectedFiles.includes(file)" + :can-pick="(multiselect || selectedFiles.length === 0 || selectedFiles.includes(file)) && (canPick === undefined || canPick(file))" :selected="selectedFiles.includes(file)" :node="file" :crop-image-previews="cropImagePreviews" @@ -82,6 +82,7 @@