Convert common/components/RoutePagination to TypeScript

What does this MR do and why?

Convert common/components/RoutePagination.vue and its spec to TypeScript.

Part of &33. Closes #876 (closed)

What changed

  • Switched RoutePagination.vue to <script setup lang="ts">.
  • Typed props (totalRows: number, perPage: number) and defineModel<number>().
  • Typed onPageChange with newPage: number | string and marked void router.push(...) so floating promises do not fail lint.
  • Added defineExpose({ currentPage }) to expose the model ref to parent and specs.
  • Migrated RoutePagination.spec.js to RoutePagination.spec.ts with let router: Router per ADR 006, typed wrapper, awaited trigger('click'), and separated arrange/act steps with blank lines.

Behaviour changes

None.

Verification

Passed from contributors/:

npm run typecheck && npm run lint && TZ=UTC npm run test -- --run

Merge request reports

Loading
Loading