@innertia-solutions/nuxt-theme-spark 0.1.29 → 0.1.30

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.
@@ -440,11 +440,17 @@ const handleRowKeydown = (row, e) => {
440
440
  }
441
441
 
442
442
  // ─── Expose ───────────────────────────────────────────────────────────────────
443
+ const reloadTable = () => {
444
+ clearCache()
445
+ isDataFromCache.value = false
446
+ fetchData()
447
+ }
448
+
443
449
  defineExpose({
444
450
  getSelectedRows,
445
451
  loading,
446
452
  exportTable,
447
- reload: () => { clearCache(); fetchData() },
453
+ reload: reloadTable,
448
454
  clearCache,
449
455
  table,
450
456
  })
@@ -763,7 +769,7 @@ defineExpose({
763
769
  <IconReload
764
770
  v-if="!loading"
765
771
  class="size-4 cursor-pointer text-gray-500 dark:text-slate-400 hover:text-gray-700 dark:hover:text-slate-300 transition-colors"
766
- @click="() => { clearCache(); isDataFromCache.value = false; fetchData() }"
772
+ @click="reloadTable"
767
773
  />
768
774
  <div v-else>
769
775
  <svg class="animate-spin size-4 text-slate-400 dark:text-slate-600" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innertia-solutions/nuxt-theme-spark",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "description": "Innertia Solutions — Spark theme: backoffice, landing and mobile components and layouts",
5
5
  "keywords": [
6
6
  "nuxt",