From 574271f618e62395fc157ad1649e8dd39552ac5e Mon Sep 17 00:00:00 2001 From: Pierre Romera Date: Thu, 25 Jul 2024 08:18:22 +0000 Subject: [PATCH] feat: add document download popover --- components.d.ts | 4 +- .../DocumentActionsGroup.vue | 14 +- .../DocumentActionsGroupEntry.vue | 7 + .../DocumentDownloadPopover.vue | 131 ++++++++++++++++++ .../DocumentDownloadPopoverSection.vue | 21 +++ src/components/PageTable/PageTable.vue | 1 + src/components/PageTable/PageTableTh.vue | 2 +- src/lang/en.json | 3 + src/main.scss | 5 - .../DocumentActionsGroup.stories.js | 51 ++++--- .../DocumentDownloadPopover.stories.js | 58 ++++++++ src/utils/settings.scss | 2 + 12 files changed, 267 insertions(+), 32 deletions(-) create mode 100644 src/components/Document/DocumentDownloadPopover/DocumentDownloadPopover.vue create mode 100644 src/components/Document/DocumentDownloadPopover/DocumentDownloadPopoverSection.vue create mode 100644 src/stories/components/Document/DocumentDownloadPopover/DocumentDownloadPopover.stories.js diff --git a/components.d.ts b/components.d.ts index dcf77da9dd..7638edcb41 100644 --- a/components.d.ts +++ b/components.d.ts @@ -64,7 +64,7 @@ declare module 'vue' { ColumnFilterBadge: typeof import('./src/components/ColumnFilterBadge.vue')['default'] ColumnFilterDropdown: typeof import('./src/components/ColumnFilterDropdown.vue')['default'] ContentTypeBadge: typeof import('./src/components/ContentTypeBadge.vue')['default'] - copy: typeof import('./src/components/PageTable/PageTableTh copy.vue')['default'] + copy: typeof import('./src/components/Document/DocumentDownloadPopover copy.vue')['default'] DismissableAlert: typeof import('./src/components/Dismissable/DismissableAlert.vue')['default'] DismissableToastBody: typeof import('./src/components/Dismissable/DismissableToastBody.vue')['default'] DisplayContentLength: typeof import('./src/components/Display/DisplayContentLength.vue')['default'] @@ -104,6 +104,8 @@ declare module 'vue' { DocumentContentSlice: typeof import('./src/components/DocumentContentSlice.vue')['default'] DocumentContentSlicePlaceholder: typeof import('./src/components/DocumentContentSlicePlaceholder.vue')['default'] DocumentContentSlices: typeof import('./src/components/DocumentContentSlices.vue')['default'] + DocumentDownloadPopover: typeof import('./src/components/Document/DocumentDownloadPopover/DocumentDownloadPopover.vue')['default'] + DocumentDownloadPopoverSection: typeof import('./src/components/Document/DocumentDownloadPopover/DocumentDownloadPopoverSection.vue')['default'] DocumentGlobalSearchTermsTags: typeof import('./src/components/DocumentGlobalSearchTermsTags.vue')['default'] DocumentInModal: typeof import('./src/components/DocumentInModal.vue')['default'] DocumentLocalSearch: typeof import('./src/components/Document/DocumentLocalSearch/DocumentLocalSearch.vue')['default'] diff --git a/src/components/Document/DocumentActionsGroup/DocumentActionsGroup.vue b/src/components/Document/DocumentActionsGroup/DocumentActionsGroup.vue index dbc91c533d..848ad0c66b 100644 --- a/src/components/Document/DocumentActionsGroup/DocumentActionsGroup.vue +++ b/src/components/Document/DocumentActionsGroup/DocumentActionsGroup.vue @@ -22,10 +22,11 @@ @click="clickShare" /> + + + + + diff --git a/src/components/Document/DocumentDownloadPopover/DocumentDownloadPopoverSection.vue b/src/components/Document/DocumentDownloadPopover/DocumentDownloadPopoverSection.vue new file mode 100644 index 0000000000..c3ab3c1437 --- /dev/null +++ b/src/components/Document/DocumentDownloadPopover/DocumentDownloadPopoverSection.vue @@ -0,0 +1,21 @@ + + + diff --git a/src/components/PageTable/PageTable.vue b/src/components/PageTable/PageTable.vue index f255a7d26e..baefa3e1b4 100644 --- a/src/components/PageTable/PageTable.vue +++ b/src/components/PageTable/PageTable.vue @@ -37,6 +37,7 @@ const classList = computed(() => {