From 833f965e8b0c118c34a0a6037e6b711bd1077981 Mon Sep 17 00:00:00 2001 From: Hannah Roth Date: Thu, 19 Sep 2024 16:18:06 -0400 Subject: [PATCH 01/11] feat: add search bar to nav bar --- es-design-system/layouts/nav.vue | 3 +- es-vue-base/src/lib-components/EsNavBar.vue | 48 ++++++++++++++++++- .../src/lib-components/EsNavBarSearchBar.vue | 46 ++++++++++++++++++ 3 files changed, 95 insertions(+), 2 deletions(-) create mode 100644 es-vue-base/src/lib-components/EsNavBarSearchBar.vue diff --git a/es-design-system/layouts/nav.vue b/es-design-system/layouts/nav.vue index dab77f75e..3a4f319e1 100644 --- a/es-design-system/layouts/nav.vue +++ b/es-design-system/layouts/nav.vue @@ -2,7 +2,8 @@
+ :global-content="globalContent" + show-search> diff --git a/es-vue-base/src/lib-components/EsNavBar.vue b/es-vue-base/src/lib-components/EsNavBar.vue index 7f4450081..e088f387b 100644 --- a/es-vue-base/src/lib-components/EsNavBar.vue +++ b/es-vue-base/src/lib-components/EsNavBar.vue @@ -100,6 +100,17 @@ + - + +
+ + + +
+
+
+
+
+ + + + + {{ buttonText }} + +
+ +
+ + + From 1980176dd4bacb5e74de1a1eb1de652be736ab3d Mon Sep 17 00:00:00 2001 From: Hannah Roth Date: Thu, 19 Sep 2024 16:24:17 -0400 Subject: [PATCH 02/11] chore: remove console log --- es-vue-base/src/lib-components/EsNavBar.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/es-vue-base/src/lib-components/EsNavBar.vue b/es-vue-base/src/lib-components/EsNavBar.vue index e088f387b..3a438225e 100644 --- a/es-vue-base/src/lib-components/EsNavBar.vue +++ b/es-vue-base/src/lib-components/EsNavBar.vue @@ -288,7 +288,6 @@ export default { methods: { toggleSearchBar() { this.searchBarOpen = !this.searchBarOpen; - console.log(this.searchBarOpen); } }, mounted() { From 4c16f835e6e574bd95793f8383fab4f78c842bdd Mon Sep 17 00:00:00 2001 From: Hannah Roth Date: Thu, 19 Sep 2024 16:29:37 -0400 Subject: [PATCH 03/11] fix: apply v-model to search bar usage --- es-vue-base/src/lib-components/EsNavBar.vue | 4 +++- es-vue-base/src/lib-components/EsNavBarSearchBar.vue | 10 +++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/es-vue-base/src/lib-components/EsNavBar.vue b/es-vue-base/src/lib-components/EsNavBar.vue index 3a438225e..32b202369 100644 --- a/es-vue-base/src/lib-components/EsNavBar.vue +++ b/es-vue-base/src/lib-components/EsNavBar.vue @@ -120,7 +120,8 @@
- +