@innertia-solutions/nuxt-theme-spark 0.1.82 → 0.1.84

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.
@@ -20,6 +20,10 @@ const props = defineProps({
20
20
 
21
21
  const emit = defineEmits(['row-click', 'loaded'])
22
22
  const slots = useSlots()
23
+ const forwardedSlots = computed(() => {
24
+ const excluded = new Set(['toolbar', 'preview'])
25
+ return Object.fromEntries(Object.entries(slots).filter(([k]) => !excluded.has(k)))
26
+ })
23
27
 
24
28
  const search = ref('')
25
29
  const activeFilters = ref({})
@@ -272,7 +276,7 @@ defineExpose({ getSelectedRows, reload, clearCache, exportTable, tableRef })
272
276
  @page-change="closePreview"
273
277
  @per-page-change="closePreview"
274
278
  >
275
- <template v-for="(_, name) in $slots" v-if="name !== 'toolbar' && name !== 'preview'" #[name]="slotProps">
279
+ <template v-for="(_, name) in forwardedSlots" #[name]="slotProps">
276
280
  <slot :name="name" v-bind="slotProps ?? {}" />
277
281
  </template>
278
282
  </Table>
@@ -178,9 +178,12 @@ const scheduleFetch = (delay = 0) => {
178
178
  }
179
179
 
180
180
  // ─── Cache ────────────────────────────────────────────────────────────────────
181
- const cacheKey = computed(() =>
182
- props.cached && props.name ? `full_table_${props.name}` : null
183
- )
181
+ const cacheKey = computed(() => {
182
+ if (!props.cached || !props.name) return null
183
+ const base = `full_table_${props.name}`
184
+ if (!Object.keys(props.params).length) return base
185
+ try { return base + '_' + btoa(JSON.stringify(props.params)) } catch { return base }
186
+ })
184
187
 
185
188
  const saveToCache = () => {
186
189
  if (!cacheKey.value || !tableData.value.length) return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innertia-solutions/nuxt-theme-spark",
3
- "version": "0.1.82",
3
+ "version": "0.1.84",
4
4
  "description": "Innertia Solutions — Spark theme: backoffice, landing and mobile components and layouts",
5
5
  "keywords": [
6
6
  "nuxt",