From dc3d89d584290db9128ff369d50d56439bfaa17f Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 31 May 2022 11:47:01 +0530 Subject: [PATCH] enhancement: open autocomplete menu on focus Signed-off-by: Pranav C --- .../spreadsheet/components/ColumnFilter.vue | 32 +++------ .../FieldListAutoCompleteDropdown.vue | 66 +++++++++++++++++++ .../spreadsheet/components/SortListMenu.vue | 31 ++------- 3 files changed, 79 insertions(+), 50 deletions(-) create mode 100644 packages/nc-gui/components/project/spreadsheet/components/FieldListAutoCompleteDropdown.vue diff --git a/packages/nc-gui/components/project/spreadsheet/components/ColumnFilter.vue b/packages/nc-gui/components/project/spreadsheet/components/ColumnFilter.vue index eba2c39cc5..f5b4007fa1 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/ColumnFilter.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/ColumnFilter.vue @@ -92,36 +92,16 @@ - - - - + /> + import { getUIDTIcon, UITypes } from '~/components/project/spreadsheet/helpers/uiTypes' +import FieldListAutoCompleteDropdown from '~/components/project/spreadsheet/components/FieldListAutoCompleteDropdown' export default { name: 'ColumnFilter', + components: { + FieldListAutoCompleteDropdown + }, props: { fieldList: [Array], meta: Object, diff --git a/packages/nc-gui/components/project/spreadsheet/components/FieldListAutoCompleteDropdown.vue b/packages/nc-gui/components/project/spreadsheet/components/FieldListAutoCompleteDropdown.vue new file mode 100644 index 0000000000..27a3617d6e --- /dev/null +++ b/packages/nc-gui/components/project/spreadsheet/components/FieldListAutoCompleteDropdown.vue @@ -0,0 +1,66 @@ + + + + + diff --git a/packages/nc-gui/components/project/spreadsheet/components/SortListMenu.vue b/packages/nc-gui/components/project/spreadsheet/components/SortListMenu.vue index 31d8f3e5e5..2a7777eb39 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/SortListMenu.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/SortListMenu.vue @@ -41,37 +41,14 @@ mdi-close-box - - - - + /> import { RelationTypes, UITypes } from 'nocodb-sdk' import { getUIDTIcon } from '~/components/project/spreadsheet/helpers/uiTypes' +import FieldListAutoCompleteDropdown from '~/components/project/spreadsheet/components/FieldListAutoCompleteDropdown' export default { name: 'SortListMenu', + components: { FieldListAutoCompleteDropdown }, props: { fieldList: Array, value: [Array, Object],