diff --git a/src/routes/users/[userId]/appointment-followup/set-reminders/+page.svelte b/src/routes/users/[userId]/appointment-followup/set-reminders/+page.svelte index 2e6d3ae8..34a92d72 100644 --- a/src/routes/users/[userId]/appointment-followup/set-reminders/+page.svelte +++ b/src/routes/users/[userId]/appointment-followup/set-reminders/+page.svelte @@ -114,17 +114,16 @@ const handleSubmit = (event) => { - - Select dates for follow-up cancellation* + + Select dates for follow-up cancellation - + type="button" + class="button rounded-md border-2 border-secondary-100 w-full bg-surface-50" + placeholder="Click here to select date" + required + /> { bind:value={startdate} required /> - + @@ -254,5 +253,10 @@ const handleSubmit = (event) => { border: 1px solid #ccc; text-align: center; } + + #datePicker:hover { + background-color: #ffffff; /* Background color on hover */ + + } diff --git a/src/routes/users/[userId]/appointment-followup/summary-uploads/+page.svelte b/src/routes/users/[userId]/appointment-followup/summary-uploads/+page.svelte index 889ff3b3..bca2cd1d 100644 --- a/src/routes/users/[userId]/appointment-followup/summary-uploads/+page.svelte +++ b/src/routes/users/[userId]/appointment-followup/summary-uploads/+page.svelte @@ -3,6 +3,10 @@ import { onMount } from 'svelte'; import toast from 'svelte-french-toast'; import type { ActionData } from './$types'; + import { + Paginator, type PaginationSettings, + } from '@skeletonlabs/skeleton'; + export let data let totalPatient =''; let notarrived =''; @@ -13,8 +17,10 @@ console.log(appointmentReport) let summary = appointmentReport['Summary']; let filedata = appointmentReport['File_data']; + let itemsPerPage = 10; + let retriveddata; + let items = 10; - // console.log(filedata[0].Appointment_time) type TableRow = { srNo: number; patientName: string; @@ -25,6 +31,7 @@ appointmentTime: string; replied: string; }; + let numRows = appointmentReport['File_data'].length;; let tableData: TableRow[] = Array.from({ length: numRows }, (_, i) => ({ srNo: i + 1, @@ -37,7 +44,6 @@ replied: '' })); - // function to add patient name function addPatientName(newPatientName: string, rowNumber: number): void { // Update the specified row with the new patient name @@ -84,7 +90,34 @@ } }, 1000); }); + + let paginationSettings = { + page: 0, + limit: 10, + size: numRows, + amounts: [10, 20, 30, 50] + } satisfies PaginationSettings; + $: { + // symptoms = symptoms.map((item, index) => ({ ...item, index: index + 1 })); + paginationSettings.size = numRows; + retriveddata = tableData.slice( + paginationSettings.page * paginationSettings.limit, + paginationSettings.page * paginationSettings.limit + paginationSettings.limit + ); + } + + + function onPageChange(e: CustomEvent): void { + let pageIndex = e.detail; + itemsPerPage = items * (pageIndex + 1); + } + + function onAmountChange(e: CustomEvent): void { + itemsPerPage = e.detail * (paginationSettings.page + 1); + items = itemsPerPage; + } +
@@ -127,8 +160,9 @@
-
- +
+
+ @@ -141,22 +175,38 @@ - {#each tableData as { srNo, patientName, hospitalName, emrId, patientPhoneNo, patientStatus, appointmentTime, replied }} - - - - - - - + + + + {#each retriveddata as row} + + + + + + + - - + + {/each} +
Sr.no Patient NameReplied
{srNo}{patientName}{hospitalName}{emrId}{patientPhoneNo}{patientStatus}
{row.srNo}{row.patientName}{row.hospitalName}{row.emrId}{row.patientPhoneNo}{row.patientStatus} { appointmentTime}{replied}{row.appointmentTime}{row.replied}
+ +
+ +