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

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.
@@ -538,7 +538,7 @@ defineExpose({
538
538
  </thead>
539
539
 
540
540
  <tbody ref="tableBodyRef" class="divide-y divide-gray-200 dark:divide-slate-700">
541
- <!-- Loading skeleton -->
541
+ <!-- Loading skeleton rows -->
542
542
  <tr
543
543
  v-if="loading"
544
544
  v-for="(_, i) in skeletonRows"
@@ -556,22 +556,32 @@ defineExpose({
556
556
  </td>
557
557
  </tr>
558
558
 
559
- <!-- Empty skeleton -->
559
+ <!-- Loading filler rows: pad to pageSize so table height doesn't change -->
560
+ <tr
561
+ v-if="loading && skeletonRows.length < pagination.pageSize"
562
+ v-for="i in (pagination.pageSize - skeletonRows.length)"
563
+ :key="'lf-' + i"
564
+ class="divide-x divide-gray-200 dark:divide-slate-700 bg-white dark:bg-slate-800"
565
+ >
566
+ <td
567
+ v-for="header in (table.getHeaderGroups()[0]?.headers ?? [])"
568
+ :key="'lfc-' + header.id"
569
+ :style="{ height: lastRowHeight + 'px' }"
570
+ />
571
+ </tr>
572
+
573
+ <!-- Empty filler rows: maintain table height when no results -->
560
574
  <tr
561
575
  v-if="!loading && tableData.length === 0"
562
- v-for="(_, i) in skeletonRows"
576
+ v-for="i in pagination.pageSize"
563
577
  :key="'esk-' + i"
564
578
  class="divide-x divide-gray-200 dark:divide-slate-700 bg-white dark:bg-slate-800"
565
579
  >
566
580
  <td
567
581
  v-for="header in (table.getHeaderGroups()[0]?.headers ?? [])"
568
582
  :key="'eskc-' + header.id"
569
- :class="header.id === 'select' ? 'text-center w-12' : 'px-4'"
570
583
  :style="{ height: lastRowHeight + 'px' }"
571
- >
572
- <div v-if="header.id === 'select'" class="w-4 h-4 bg-gray-200 dark:bg-slate-600 rounded mx-auto"></div>
573
- <div v-else class="h-4 w-[50%] rounded bg-gray-100 dark:bg-slate-700"></div>
574
- </td>
584
+ />
575
585
  </tr>
576
586
 
577
587
  <!-- Data rows -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innertia-solutions/nuxt-theme-spark",
3
- "version": "0.1.46",
3
+ "version": "0.1.48",
4
4
  "description": "Innertia Solutions — Spark theme: backoffice, landing and mobile components and layouts",
5
5
  "keywords": [
6
6
  "nuxt",