From d517b946456a279057567580266cbc5484de73e6 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 18 Jul 2024 02:18:35 +0200 Subject: [PATCH 1/2] feat(NcAppNavigation): Provide consistent in-app search `NcAppNaviation` now provides an optional in-app search when `show-search` is set. This allows apps which have in app filtering / search to use a consistent layout. There is also an actions slot to provide some inline actions like filters. Signed-off-by: Ferdinand Thiessen --- l10n/messages.pot | 3 + .../NcAppNavigation/NcAppNavigation.vue | 149 +++++++++++++++++- .../NcAppNavigation/NcAppNavigationSearch.vue | 123 +++++++++++++++ styleguide.config.cjs | 1 + 4 files changed, 273 insertions(+), 3 deletions(-) create mode 100644 src/components/NcAppNavigation/NcAppNavigationSearch.vue diff --git a/l10n/messages.pot b/l10n/messages.pot index 59eba91aa8..f45235049d 100644 --- a/l10n/messages.pot +++ b/l10n/messages.pot @@ -332,6 +332,9 @@ msgstr "" msgid "Search for time zone" msgstr "" +msgid "Search in app…" +msgstr "" + msgid "Search results" msgstr "" diff --git a/src/components/NcAppNavigation/NcAppNavigation.vue b/src/components/NcAppNavigation/NcAppNavigation.vue index e4de402d84..b9e611e68f 100644 --- a/src/components/NcAppNavigation/NcAppNavigation.vue +++ b/src/components/NcAppNavigation/NcAppNavigation.vue @@ -33,6 +33,117 @@ emit('toggle-navigation', { }) ``` +#### With in-app search + +```vue + + + +``` +