From b24b457f39c21843c17f7a4fde8bf9a62781bbb6 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 18 Jul 2024 02:18:35 +0200 Subject: [PATCH] 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 | 162 +++++++++++++++++- .../NcAppNavigation/NcAppNavigationSearch.vue | 123 +++++++++++++ styleguide.config.js | 1 + 4 files changed, 286 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 c877060531..86146841bc 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 + + + +``` +