@invopop/popui 0.1.4-beta.13 → 0.1.4-beta.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,7 +23,10 @@
23
23
  let currentPage = $derived(table.getState().pagination.pageIndex + 1)
24
24
  let totalPages = $derived(table.getPageCount())
25
25
  let totalItems = $derived.by(() => {
26
- const rowCount = table.getRowCount?.()
26
+ // Access table.options to establish reactive dependencies
27
+ const _ = table.options.data // Track data changes
28
+ const rowCount = table.options.rowCount // Track rowCount changes
29
+
27
30
  if (table.options.manualPagination && rowCount !== undefined) {
28
31
  return rowCount
29
32
  }
package/dist/index.d.ts CHANGED
@@ -71,9 +71,9 @@ import { Tooltip } from './tooltip';
71
71
  import { TooltipContent } from './tooltip';
72
72
  import { TooltipTrigger } from './tooltip';
73
73
  import UuidCopy from './UuidCopy.svelte';
74
- import { resolveIcon } from './helpers.js';
75
- import { getCountryName } from './helpers.js';
76
- import { getStatusType } from './helpers.js';
74
+ import { resolveIcon } from './helpers.ts';
75
+ import { getCountryName } from './helpers.ts';
76
+ import { getStatusType } from './helpers.ts';
77
77
  import { buttonVariants } from './button/button.svelte';
78
78
  import { DataTable } from './data-table';
79
79
  import { DataTableToolbar } from './data-table';
package/dist/index.js CHANGED
@@ -68,7 +68,7 @@ import TitleSection from './TitleSection.svelte'
68
68
  import { Toaster } from './sonner'
69
69
  import { Tooltip, TooltipContent, TooltipTrigger } from './tooltip'
70
70
  import UuidCopy from './UuidCopy.svelte'
71
- import { resolveIcon, getCountryName, getStatusType } from './helpers.js'
71
+ import { resolveIcon, getCountryName, getStatusType } from './helpers.ts'
72
72
  import { buttonVariants } from './button/button.svelte' // Ensure button styles are included
73
73
  import {
74
74
  DataTable,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@invopop/popui",
3
3
  "license": "MIT",
4
- "version": "0.1.4-beta.13",
4
+ "version": "0.1.4-beta.14",
5
5
  "repository": {
6
6
  "url": "https://github.com/invopop/popui"
7
7
  },