From 0d2198bc77e107a86208f89bce20bd8871662f50 Mon Sep 17 00:00:00 2001 From: Blesilda Ramirez Date: Tue, 10 Sep 2024 23:36:35 +0800 Subject: [PATCH] pkp/pkp-lib#9744 Migrate native tables that use class pkpTable to use the new table component --- .../contributors/ContributorsPreviewModal.vue | 58 ++++++---- .../ListPanel/doi/DoiStatusInfoModal.vue | 103 ++++++++++++------ .../ContextDownloadReportModal.vue | 17 ++- .../statsIssues/IssueDownloadReportModal.vue | 27 +++-- .../PublicationsDownloadReportModal.vue | 41 ++++--- 5 files changed, 153 insertions(+), 93 deletions(-) diff --git a/src/components/ListPanel/contributors/ContributorsPreviewModal.vue b/src/components/ListPanel/contributors/ContributorsPreviewModal.vue index 9496b7576..428eeb702 100644 --- a/src/components/ListPanel/contributors/ContributorsPreviewModal.vue +++ b/src/components/ListPanel/contributors/ContributorsPreviewModal.vue @@ -7,35 +7,47 @@

{{ t('contributor.listPanel.preview.description') }}

- - - - - - - - - - - - - - - - - - - - - -
{{ t('contributor.listPanel.preview.format') }}{{ t('contributor.listPanel.preview.display') }}
{{ t('contributor.listPanel.preview.abbreviated') }}{{ publication.authorsStringShort }}
+ + + + {{ t('contributor.listPanel.preview.format') }} + + + {{ t('contributor.listPanel.preview.display') }} + + + + + + {{ t('contributor.listPanel.preview.abbreviated') }} + + {{ publication.authorsStringShort }} + + + {{ t('contributor.listPanel.preview.publicationLists') }} - {{ publication.authorsStringIncludeInBrowse }}
{{ t('contributor.listPanel.preview.full') }}{{ publication.authorsString }}
+ + + {{ publication.authorsStringIncludeInBrowse }} + + + + {{ t('contributor.listPanel.preview.full') }} + {{ publication.authorsString }} + + + diff --git a/src/pages/statsContext/ContextDownloadReportModal.vue b/src/pages/statsContext/ContextDownloadReportModal.vue index 62e677a71..345b4bd5a 100644 --- a/src/pages/statsContext/ContextDownloadReportModal.vue +++ b/src/pages/statsContext/ContextDownloadReportModal.vue @@ -5,12 +5,14 @@

{{ t('stats.context.downloadReport.description') }}

- - - - - -
{{ t('stats.dateRange') }}{{ dateRangeDescription }}
+ + + + {{ t('stats.dateRange') }} + + {{ dateRangeDescription }} + +

{{ t('context.context') }}

@@ -43,6 +45,9 @@ import SideModalLayoutBasic from '@/components/Modal/SideModalLayoutBasic.vue'; import {useLocalize} from '@/composables/useLocalize'; import ActionPanel from '@/components/ActionPanel/ActionPanel.vue'; import PkpButton from '@/components/Button/Button.vue'; +import PkpTable from '@/components/Table/Table.vue'; +import TableRow from '@/components/Table/TableRow.vue'; +import TableCell from '@/components/Table/TableCell.vue'; const {t} = useLocalize(); defineProps({ diff --git a/src/pages/statsIssues/IssueDownloadReportModal.vue b/src/pages/statsIssues/IssueDownloadReportModal.vue index dd7588197..7876d391c 100644 --- a/src/pages/statsIssues/IssueDownloadReportModal.vue +++ b/src/pages/statsIssues/IssueDownloadReportModal.vue @@ -5,16 +5,20 @@

{{ t('stats.issues.downloadReport.description') }}

- - - - - - - - - -
{{ t('stats.dateRange') }}{{ dateRangeDescription }}
{{ t('common.searchPhrase') }}{{ searchPhrase }}
+ + + + {{ t('stats.dateRange') }} + + {{ dateRangeDescription }} + + + + {{ t('common.searchPhrase') }} + + {{ searchPhrase }} + +

{{ t('issue.issues') }}

@@ -47,6 +51,9 @@ import SideModalLayoutBasic from '@/components/Modal/SideModalLayoutBasic.vue'; import {useLocalize} from '@/composables/useLocalize'; import ActionPanel from '@/components/ActionPanel/ActionPanel.vue'; import PkpButton from '@/components/Button/Button.vue'; +import PkpTable from '@/components/Table/Table.vue'; +import TableRow from '@/components/Table/TableRow.vue'; +import TableCell from '@/components/Table/TableCell.vue'; const {t} = useLocalize(); defineProps({ diff --git a/src/pages/statsPublications/PublicationsDownloadReportModal.vue b/src/pages/statsPublications/PublicationsDownloadReportModal.vue index 4fee9165c..d21e19904 100644 --- a/src/pages/statsPublications/PublicationsDownloadReportModal.vue +++ b/src/pages/statsPublications/PublicationsDownloadReportModal.vue @@ -5,24 +5,26 @@

{{ t('stats.publications.downloadReport.description') }}

- - - - - - - - - - - - - -
{{ t('stats.dateRange') }}{{ dateRangeDescription }}
{{ filterSet.heading }}{{ getFilterDescription(filterSet) }}
{{ t('common.searchPhrase') }}{{ searchPhrase }}
+ + + + {{ t('stats.dateRange') }} + + {{ dateRangeDescription }} + + + + {{ filterSet.heading }} + + {{ getFilterDescription(filterSet) }} + + + + {{ t('common.searchPhrase') }} + + {{ searchPhrase }} + +

{{ t('common.publications') }}

@@ -92,6 +94,9 @@ import {useLocalize} from '@/composables/useLocalize'; import ActionPanel from '@/components/ActionPanel/ActionPanel.vue'; import PkpButton from '@/components/Button/Button.vue'; import Tooltip from '@/components/Tooltip/Tooltip.vue'; +import PkpTable from '@/components/Table/Table.vue'; +import TableRow from '@/components/Table/TableRow.vue'; +import TableCell from '@/components/Table/TableCell.vue'; const {t} = useLocalize(); defineProps({