@innertia-solutions/nuxt-theme-spark 0.1.45 → 0.1.46

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.
@@ -34,10 +34,13 @@ const tableData = ref([])
34
34
  const rowCount = ref(0)
35
35
  const loading = ref(false)
36
36
  const isDataFromCache = ref(false)
37
- const lastDataLength = ref(10)
37
+ const lastDataLength = ref(-1)
38
38
  const lastRowHeight = ref(48)
39
39
  const tableBodyRef = ref(null)
40
- const skeletonRows = computed(() => Array.from({ length: Math.max(lastDataLength.value, pagination.value.pageSize) }))
40
+ const skeletonRows = computed(() => {
41
+ const count = lastDataLength.value < 0 ? pagination.value.pageSize : lastDataLength.value
42
+ return Array.from({ length: count })
43
+ })
41
44
  const isGridView = computed(() => props.viewMode === 'grid')
42
45
 
43
46
  // ─── TanStack state ───────────────────────────────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innertia-solutions/nuxt-theme-spark",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
4
4
  "description": "Innertia Solutions — Spark theme: backoffice, landing and mobile components and layouts",
5
5
  "keywords": [
6
6
  "nuxt",