@innertia-solutions/nuxt-theme-spark 0.1.77 → 0.1.78
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.
- package/components/Table/Standard.vue +24 -29
- package/package.json +1 -1
|
@@ -208,37 +208,32 @@ defineExpose({ getSelectedRows, reload, clearCache, exportTable, tableRef })
|
|
|
208
208
|
<TableExportable v-if="showExport" :table-ref="tableRef" :name="name" :columns="columns" />
|
|
209
209
|
</div>
|
|
210
210
|
|
|
211
|
-
<!-- Contenido: tabla + preview
|
|
212
|
-
<div
|
|
211
|
+
<!-- Contenido: tabla siempre full width + preview overlay -->
|
|
212
|
+
<div class="relative">
|
|
213
213
|
|
|
214
214
|
<!-- Tabla -->
|
|
215
|
-
<
|
|
216
|
-
|
|
217
|
-
:
|
|
215
|
+
<Table
|
|
216
|
+
ref="tableRef"
|
|
217
|
+
:endpoint="endpoint"
|
|
218
|
+
:columns="columns"
|
|
219
|
+
:name="name"
|
|
220
|
+
:params="mergedParams"
|
|
221
|
+
:search="search"
|
|
222
|
+
:checkable="checkable"
|
|
223
|
+
:cached="cached"
|
|
224
|
+
:show-reload-button="showReloadButton"
|
|
225
|
+
:click-row-to-open="clickRowToOpen"
|
|
226
|
+
:preview-row-id="previewRow?.id ?? null"
|
|
227
|
+
:preview-mode="!!previewEnabled"
|
|
228
|
+
@row-click="handleRowClick"
|
|
229
|
+
@loaded="emit('loaded', $event)"
|
|
218
230
|
>
|
|
219
|
-
<
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
:name="name"
|
|
224
|
-
:params="mergedParams"
|
|
225
|
-
:search="search"
|
|
226
|
-
:checkable="checkable"
|
|
227
|
-
:cached="cached"
|
|
228
|
-
:show-reload-button="showReloadButton"
|
|
229
|
-
:click-row-to-open="clickRowToOpen"
|
|
230
|
-
:preview-row-id="previewRow?.id ?? null"
|
|
231
|
-
:preview-mode="!!previewEnabled"
|
|
232
|
-
@row-click="handleRowClick"
|
|
233
|
-
@loaded="emit('loaded', $event)"
|
|
234
|
-
>
|
|
235
|
-
<template v-for="(_, name) in $slots" #[name]="slotProps">
|
|
236
|
-
<slot :name="name" v-bind="slotProps ?? {}" />
|
|
237
|
-
</template>
|
|
238
|
-
</Table>
|
|
239
|
-
</div>
|
|
231
|
+
<template v-for="(_, name) in $slots" #[name]="slotProps">
|
|
232
|
+
<slot :name="name" v-bind="slotProps ?? {}" />
|
|
233
|
+
</template>
|
|
234
|
+
</Table>
|
|
240
235
|
|
|
241
|
-
<!--
|
|
236
|
+
<!-- Preview panel overlay — slides in from right, tapa la tabla -->
|
|
242
237
|
<Transition
|
|
243
238
|
enter-active-class="transition ease-out duration-200"
|
|
244
239
|
enter-from-class="opacity-0 translate-x-6"
|
|
@@ -249,7 +244,7 @@ defineExpose({ getSelectedRows, reload, clearCache, exportTable, tableRef })
|
|
|
249
244
|
>
|
|
250
245
|
<div
|
|
251
246
|
v-if="previewRow && previewEnabled"
|
|
252
|
-
class="
|
|
247
|
+
class="absolute inset-y-0 right-0 z-10 flex bg-white dark:bg-slate-800 border-l border-slate-200 dark:border-slate-700 shadow-xl"
|
|
253
248
|
:style="{ width: (100 - currentRatio) + '%' }"
|
|
254
249
|
>
|
|
255
250
|
<!-- Resize handle -->
|
|
@@ -258,7 +253,7 @@ defineExpose({ getSelectedRows, reload, clearCache, exportTable, tableRef })
|
|
|
258
253
|
@mousedown="startResize"
|
|
259
254
|
/>
|
|
260
255
|
<!-- Preview -->
|
|
261
|
-
<div class="flex flex-col overflow-y-auto
|
|
256
|
+
<div class="flex flex-col overflow-y-auto flex-1">
|
|
262
257
|
<slot name="preview" :row="previewRow" :close="closePreview" />
|
|
263
258
|
</div>
|
|
264
259
|
</div>
|