From 11d2acbbf76f4365df460828f9901b47107a75e5 Mon Sep 17 00:00:00 2001 From: timothe Date: Thu, 31 Oct 2024 13:17:33 +0100 Subject: [PATCH 1/4] feat: fix page length value --- .../VRoadizPaginatedList/VRoadizPaginatedList.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/components/organisms/VRoadizPaginatedList/VRoadizPaginatedList.vue b/components/organisms/VRoadizPaginatedList/VRoadizPaginatedList.vue index 84ea35b6..64d47f1a 100644 --- a/components/organisms/VRoadizPaginatedList/VRoadizPaginatedList.vue +++ b/components/organisms/VRoadizPaginatedList/VRoadizPaginatedList.vue @@ -37,8 +37,9 @@ const items = computed(() => { return data.value?.['hydra:member'] || [] }) -const totalItems = computed(() => { - return (data.value?.['hydra:totalItems'] / itemsPerPage.value) || 0 +const pageLength = computed(() => { + const totalItems = data.value?.['hydra:totalItems'] || 0 + return Math.ceil(totalItems / itemsPerPage.value) }) @@ -49,23 +50,23 @@ const totalItems = computed(() => { > Date: Thu, 31 Oct 2024 13:18:42 +0100 Subject: [PATCH 2/4] chore: lint fix --- components/molecules/VRoadizImage/VRoadizImage.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/molecules/VRoadizImage/VRoadizImage.vue b/components/molecules/VRoadizImage/VRoadizImage.vue index 0ba0b0b4..82af6aaf 100644 --- a/components/molecules/VRoadizImage/VRoadizImage.vue +++ b/components/molecules/VRoadizImage/VRoadizImage.vue @@ -60,7 +60,7 @@ export default defineComponent({ || (!isPicture.value && !props.densities && ($img.options.presets?.default?.sizes || $img.options.screens)) - || undefined, + || undefined, provider: 'interventionRequest', modifiers: { ...modifiers.value, From 53003e3913b42aedeb65927762b44bbc64b9dcbd Mon Sep 17 00:00:00 2001 From: timothe Date: Thu, 31 Oct 2024 14:20:37 +0100 Subject: [PATCH 3/4] chore: lint fix --- components/molecules/VRoadizImage/VRoadizImage.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/molecules/VRoadizImage/VRoadizImage.vue b/components/molecules/VRoadizImage/VRoadizImage.vue index 82af6aaf..0ba0b0b4 100644 --- a/components/molecules/VRoadizImage/VRoadizImage.vue +++ b/components/molecules/VRoadizImage/VRoadizImage.vue @@ -60,7 +60,7 @@ export default defineComponent({ || (!isPicture.value && !props.densities && ($img.options.presets?.default?.sizes || $img.options.screens)) - || undefined, + || undefined, provider: 'interventionRequest', modifiers: { ...modifiers.value, From ebbc8ef4d21418cfc51875cb1b8264fbc0261089 Mon Sep 17 00:00:00 2001 From: timothe Date: Fri, 8 Nov 2024 12:14:55 +0100 Subject: [PATCH 4/4] feat: rename var and add slot type safety --- .../VRoadizPaginatedList/Default.stories.vue | 17 +++++++++-- .../VRoadizPaginatedList.vue | 30 ++++++++++++++----- 2 files changed, 37 insertions(+), 10 deletions(-) diff --git a/components/organisms/VRoadizPaginatedList/Default.stories.vue b/components/organisms/VRoadizPaginatedList/Default.stories.vue index 7c3fb71d..7146c031 100644 --- a/components/organisms/VRoadizPaginatedList/Default.stories.vue +++ b/components/organisms/VRoadizPaginatedList/Default.stories.vue @@ -1,4 +1,4 @@ - -