From f3811bb8aea77f59ffdef5e21d03ee206778bd9d Mon Sep 17 00:00:00 2001 From: Kevin Glisson Date: Mon, 6 Nov 2023 09:28:54 -0800 Subject: [PATCH 1/2] Project autocomplete --- src/dispatch/static/dispatch/components.d.ts | 3 + .../static/dispatch/src/case/DetailsTab.vue | 6 +- .../dispatch/src/components/AutoComplete.vue | 154 ++++++++++++++++++ .../src/project/ProjectAutoComplete.vue | 54 ++++++ 4 files changed, 214 insertions(+), 3 deletions(-) create mode 100644 src/dispatch/static/dispatch/src/components/AutoComplete.vue create mode 100644 src/dispatch/static/dispatch/src/project/ProjectAutoComplete.vue diff --git a/src/dispatch/static/dispatch/components.d.ts b/src/dispatch/static/dispatch/components.d.ts index 938f0eda76fa..5f5c864db1f8 100644 --- a/src/dispatch/static/dispatch/components.d.ts +++ b/src/dispatch/static/dispatch/components.d.ts @@ -11,6 +11,7 @@ declare module '@vue/runtime-core' { AnimatedNumber: typeof import('./src/components/AnimatedNumber.vue')['default'] AppDrawer: typeof import('./src/components/AppDrawer.vue')['default'] AppToolbar: typeof import('./src/components/AppToolbar.vue')['default'] + AutoComplete: typeof import('./src/components/AutoComplete.vue')['default'] BaseCombobox: typeof import('./src/components/BaseCombobox.vue')['default'] BasicLayout: typeof import('./src/components/layouts/BasicLayout.vue')['default'] ColorPickerInput: typeof import('./src/components/ColorPickerInput.vue')['default'] @@ -25,6 +26,8 @@ declare module '@vue/runtime-core' { MonacoEditor: typeof import('./src/components/MonacoEditor.vue')['default'] NotificationSnackbarsWrapper: typeof import('./src/components/NotificationSnackbarsWrapper.vue')['default'] PageHeader: typeof import('./src/components/PageHeader.vue')['default'] + ParticipantSelect: typeof import('./src/components/ParticipantSelect.vue')['default'] + ProjectAutoComplete: typeof import('./src/components/ProjectAutoComplete.vue')['default'] Refresh: typeof import('./src/components/Refresh.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] diff --git a/src/dispatch/static/dispatch/src/case/DetailsTab.vue b/src/dispatch/static/dispatch/src/case/DetailsTab.vue index 99786988c9d8..e77bffd8601c 100644 --- a/src/dispatch/static/dispatch/src/case/DetailsTab.vue +++ b/src/dispatch/static/dispatch/src/case/DetailsTab.vue @@ -58,7 +58,7 @@ /> - + @@ -132,7 +132,7 @@ import CaseTypeSelect from "@/case/type/CaseTypeSelect.vue" import DateTimePickerMenu from "@/components/DateTimePickerMenu.vue" import IncidentFilterCombobox from "@/incident/IncidentFilterCombobox.vue" import ParticipantSelect from "@/incident/ParticipantSelect.vue" -import ProjectSelect from "@/project/ProjectSelect.vue" +import ProjectAutoComplete from "@/project/ProjectAutoComplete.vue" import TagFilterAutoComplete from "@/tag/TagFilterAutoComplete.vue" export default { @@ -151,7 +151,7 @@ export default { DateTimePickerMenu, IncidentFilterCombobox, ParticipantSelect, - ProjectSelect, + ProjectAutoComplete, TagFilterAutoComplete, }, diff --git a/src/dispatch/static/dispatch/src/components/AutoComplete.vue b/src/dispatch/static/dispatch/src/components/AutoComplete.vue new file mode 100644 index 000000000000..912cd93d0842 --- /dev/null +++ b/src/dispatch/static/dispatch/src/components/AutoComplete.vue @@ -0,0 +1,154 @@ + + + diff --git a/src/dispatch/static/dispatch/src/project/ProjectAutoComplete.vue b/src/dispatch/static/dispatch/src/project/ProjectAutoComplete.vue new file mode 100644 index 000000000000..119459616289 --- /dev/null +++ b/src/dispatch/static/dispatch/src/project/ProjectAutoComplete.vue @@ -0,0 +1,54 @@ + + + From b366f5a132a9df6d8cd457741e2d1c73516d8e03 Mon Sep 17 00:00:00 2001 From: Kevin Glisson Date: Mon, 6 Nov 2023 11:24:22 -0800 Subject: [PATCH 2/2] Fixing linting --- src/dispatch/static/dispatch/components.d.ts | 1 + .../dispatch/src/components/AutoComplete.vue | 25 +++++++++---------- .../src/components/ParticipantSelect.vue | 14 +++-------- .../src/project/ProjectAutoComplete.vue | 9 +++---- 4 files changed, 21 insertions(+), 28 deletions(-) diff --git a/src/dispatch/static/dispatch/components.d.ts b/src/dispatch/static/dispatch/components.d.ts index 5f5c864db1f8..499299563ebe 100644 --- a/src/dispatch/static/dispatch/components.d.ts +++ b/src/dispatch/static/dispatch/components.d.ts @@ -26,6 +26,7 @@ declare module '@vue/runtime-core' { MonacoEditor: typeof import('./src/components/MonacoEditor.vue')['default'] NotificationSnackbarsWrapper: typeof import('./src/components/NotificationSnackbarsWrapper.vue')['default'] PageHeader: typeof import('./src/components/PageHeader.vue')['default'] + ParticipantAutoComplete: typeof import('./src/components/ParticipantAutoComplete.vue')['default'] ParticipantSelect: typeof import('./src/components/ParticipantSelect.vue')['default'] ProjectAutoComplete: typeof import('./src/components/ProjectAutoComplete.vue')['default'] Refresh: typeof import('./src/components/Refresh.vue')['default'] diff --git a/src/dispatch/static/dispatch/src/components/AutoComplete.vue b/src/dispatch/static/dispatch/src/components/AutoComplete.vue index 912cd93d0842..bfdfcf1d7f87 100644 --- a/src/dispatch/static/dispatch/src/components/AutoComplete.vue +++ b/src/dispatch/static/dispatch/src/components/AutoComplete.vue @@ -10,7 +10,7 @@ :hide-no-data="false" v-model:search="search" v-model="selectedModel" - @update:modelValue="handleClear" + @update:model-value="handleClear" >