@innertia-solutions/nuxt-theme-spark 0.1.76 → 0.1.77
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 +35 -36
- package/package.json +1 -1
|
@@ -154,20 +154,40 @@ defineExpose({ getSelectedRows, reload, clearCache, exportTable, tableRef })
|
|
|
154
154
|
<Forms.Input v-model="search" type="search" :placeholder="searchPlaceholder" :icon-left="IconSearch" />
|
|
155
155
|
</div>
|
|
156
156
|
|
|
157
|
-
<
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
157
|
+
<div v-if="showFilters && hasFilterableColumns" class="relative">
|
|
158
|
+
<button
|
|
159
|
+
type="button"
|
|
160
|
+
@click="showFilterPanel = !showFilterPanel"
|
|
161
|
+
:class="[
|
|
162
|
+
'py-1.5 px-3 inline-flex items-center gap-2 text-sm font-medium rounded-lg border transition-colors',
|
|
163
|
+
showFilterPanel || activeFilterCount > 0
|
|
164
|
+
? 'border-blue-500 bg-blue-50 text-blue-700 dark:bg-blue-900/20 dark:border-blue-500 dark:text-blue-300'
|
|
165
|
+
: 'border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-800 text-slate-600 dark:text-slate-300 hover:bg-slate-50 dark:hover:bg-slate-700'
|
|
166
|
+
]"
|
|
167
|
+
>
|
|
168
|
+
<IconAdjustmentsHorizontal class="size-4" stroke="1.5" />
|
|
169
|
+
Filtros{{ activeFilterCount > 0 ? ` (${activeFilterCount})` : '' }}
|
|
170
|
+
</button>
|
|
171
|
+
|
|
172
|
+
<!-- Filter panel — anchored below button -->
|
|
173
|
+
<Transition
|
|
174
|
+
enter-active-class="transition ease-out duration-150"
|
|
175
|
+
enter-from-class="opacity-0 translate-y-1 scale-95"
|
|
176
|
+
enter-to-class="opacity-100 translate-y-0 scale-100"
|
|
177
|
+
leave-active-class="transition ease-in duration-100"
|
|
178
|
+
leave-from-class="opacity-100 translate-y-0 scale-100"
|
|
179
|
+
leave-to-class="opacity-0 translate-y-1 scale-95"
|
|
180
|
+
>
|
|
181
|
+
<div
|
|
182
|
+
v-if="showFilterPanel"
|
|
183
|
+
ref="filterPanelRef"
|
|
184
|
+
class="absolute top-full left-0 z-50 mt-1.5 bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 rounded-xl shadow-2xl p-3 min-w-56 max-h-96 overflow-y-auto"
|
|
185
|
+
>
|
|
186
|
+
<p class="text-[10px] font-bold text-slate-400 dark:text-slate-500 uppercase tracking-widest mb-3 px-1">Filtros</p>
|
|
187
|
+
<TableFilter v-model="activeFilters" :columns="filtersConfig" />
|
|
188
|
+
</div>
|
|
189
|
+
</Transition>
|
|
190
|
+
</div>
|
|
171
191
|
|
|
172
192
|
<slot name="actions" />
|
|
173
193
|
|
|
@@ -194,7 +214,7 @@ defineExpose({ getSelectedRows, reload, clearCache, exportTable, tableRef })
|
|
|
194
214
|
<!-- Tabla -->
|
|
195
215
|
<div
|
|
196
216
|
class="min-w-0 transition-[width] duration-200 ease-out"
|
|
197
|
-
:style="
|
|
217
|
+
:style="previewEnabled ? { width: (previewRow ? currentRatio : 100) + '%', flexShrink: 0 } : {}"
|
|
198
218
|
>
|
|
199
219
|
<Table
|
|
200
220
|
ref="tableRef"
|
|
@@ -247,27 +267,6 @@ defineExpose({ getSelectedRows, reload, clearCache, exportTable, tableRef })
|
|
|
247
267
|
</div>
|
|
248
268
|
</div>
|
|
249
269
|
|
|
250
|
-
<!-- Filter panel — outside overflow-hidden so never clipped -->
|
|
251
|
-
<Transition
|
|
252
|
-
enter-active-class="transition ease-out duration-150"
|
|
253
|
-
enter-from-class="opacity-0 translate-y-1 scale-95"
|
|
254
|
-
enter-to-class="opacity-100 translate-y-0 scale-100"
|
|
255
|
-
leave-active-class="transition ease-in duration-100"
|
|
256
|
-
leave-from-class="opacity-100 translate-y-0 scale-100"
|
|
257
|
-
leave-to-class="opacity-0 translate-y-1 scale-95"
|
|
258
|
-
>
|
|
259
|
-
<div
|
|
260
|
-
v-if="showFilterPanel && hasFilterableColumns"
|
|
261
|
-
ref="filterPanelRef"
|
|
262
|
-
class="absolute top-12 left-0 z-50 bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 rounded-xl shadow-2xl p-3 min-w-64 max-h-96 overflow-y-auto"
|
|
263
|
-
>
|
|
264
|
-
<p class="text-[10px] font-bold text-slate-400 dark:text-slate-500 uppercase tracking-widest mb-3 px-1">
|
|
265
|
-
Filtros
|
|
266
|
-
</p>
|
|
267
|
-
<TableFilter v-model="activeFilters" :columns="filtersConfig" />
|
|
268
|
-
</div>
|
|
269
|
-
</Transition>
|
|
270
|
-
|
|
271
270
|
<!-- Column panel — outside overflow-hidden so never clipped -->
|
|
272
271
|
<Transition
|
|
273
272
|
enter-active-class="transition ease-out duration-150"
|