From 7cde9e262f6256f690f538801ac5daa4879efc15 Mon Sep 17 00:00:00 2001 From: Pierre Romera Date: Fri, 4 Oct 2024 11:02:25 +0000 Subject: [PATCH] feat: add widget field facets entry --- components.d.ts | 2 + .../Widget/WidgetFieldFacetsEntry.vue | 123 ++++++++++++++++++ .../Widget/WidgetFieldFacetsEntry.stories.js | 18 +++ 3 files changed, 143 insertions(+) create mode 100644 src/components/Widget/WidgetFieldFacetsEntry.vue create mode 100644 src/stories/components/Widget/WidgetFieldFacetsEntry.stories.js diff --git a/components.d.ts b/components.d.ts index 0e3aa242f2..f749cfd03f 100644 --- a/components.d.ts +++ b/components.d.ts @@ -455,7 +455,9 @@ declare module 'vue' { WidgetDuplicates: typeof import('./src/components/Widget/WidgetDuplicates.vue')['default'] WidgetEmpty: typeof import('./src/components/Widget/WidgetEmpty.vue')['default'] WidgetEntities: typeof import('./src/components/Widget/WidgetEntities.vue')['default'] + WidgetFieldFacetEntry: typeof import('./src/components/Widget/WidgetFieldFacetEntry.vue')['default'] WidgetFieldFacets: typeof import('./src/components/Widget/WidgetFieldFacets.vue')['default'] + WidgetFieldFacetsEntry: typeof import('./src/components/Widget/WidgetFieldFacetsEntry.vue')['default'] WidgetFileBarometer: typeof import('./src/components/Widget/WidgetFileBarometer.vue')['default'] WidgetListGroup: typeof import('./src/components/Widget/WidgetListGroup.vue')['default'] WidgetNames: typeof import('./src/components/Widget/WidgetNames.vue')['default'] diff --git a/src/components/Widget/WidgetFieldFacetsEntry.vue b/src/components/Widget/WidgetFieldFacetsEntry.vue new file mode 100644 index 0000000000..31b24713f1 --- /dev/null +++ b/src/components/Widget/WidgetFieldFacetsEntry.vue @@ -0,0 +1,123 @@ + + + + + diff --git a/src/stories/components/Widget/WidgetFieldFacetsEntry.stories.js b/src/stories/components/Widget/WidgetFieldFacetsEntry.stories.js new file mode 100644 index 0000000000..3030f4c162 --- /dev/null +++ b/src/stories/components/Widget/WidgetFieldFacetsEntry.stories.js @@ -0,0 +1,18 @@ +import { vueRouter } from 'storybook-vue3-router' + +import WidgetFieldFacetsEntry from '@/components/Widget/WidgetFieldFacetsEntry' + +export default { + title: 'Components/Widget/WidgetFieldFacetsEntry', + decorators: [vueRouter([{ name: 'search' }])], + component: WidgetFieldFacetsEntry, + tags: ['autodocs'], + args: { + label: 'English', + count: 6781, + total: 1e4, + to: { name: 'search' } + } +} + +export const Default = {}