@polymarbot/nuxt-layer-shadcn-ui 0.7.3 → 0.7.5
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.
|
@@ -5,7 +5,6 @@ import {
|
|
|
5
5
|
Table,
|
|
6
6
|
TableBody,
|
|
7
7
|
TableCell,
|
|
8
|
-
TableEmpty,
|
|
9
8
|
TableFooter,
|
|
10
9
|
TableHead,
|
|
11
10
|
TableHeader,
|
|
@@ -437,24 +436,29 @@ defineExpose({
|
|
|
437
436
|
</TableRow>
|
|
438
437
|
</template>
|
|
439
438
|
|
|
440
|
-
<
|
|
439
|
+
<TableRow
|
|
441
440
|
v-else-if="!loading"
|
|
442
|
-
|
|
441
|
+
data-virtual-row
|
|
442
|
+
class="hover:bg-transparent"
|
|
443
443
|
>
|
|
444
|
-
<
|
|
445
|
-
<div
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
444
|
+
<TableCell :colspan="totalColumns">
|
|
445
|
+
<div class="py-10 flex items-center justify-center">
|
|
446
|
+
<slot name="empty">
|
|
447
|
+
<div
|
|
448
|
+
class="gap-2 text-muted-foreground flex flex-col items-center"
|
|
449
|
+
>
|
|
450
|
+
<Icon
|
|
451
|
+
name="inbox"
|
|
452
|
+
class="size-8"
|
|
453
|
+
/>
|
|
454
|
+
<span class="text-sm">
|
|
455
|
+
{{ T('empty') }}
|
|
456
|
+
</span>
|
|
457
|
+
</div>
|
|
458
|
+
</slot>
|
|
455
459
|
</div>
|
|
456
|
-
</
|
|
457
|
-
</
|
|
460
|
+
</TableCell>
|
|
461
|
+
</TableRow>
|
|
458
462
|
|
|
459
463
|
<!-- Bottom body slot (e.g. infinite-scroll trigger / "all loaded") -->
|
|
460
464
|
<TableRow
|
|
@@ -515,7 +519,7 @@ defineExpose({
|
|
|
515
519
|
--cell-bg: var(--color-card);
|
|
516
520
|
}
|
|
517
521
|
|
|
518
|
-
:deep(tbody tr:hover) {
|
|
522
|
+
:deep(tbody tr:not([data-virtual-row]):hover) {
|
|
519
523
|
--cell-bg: var(--color-muted);
|
|
520
524
|
}
|
|
521
525
|
|
|
@@ -207,32 +207,32 @@ onMounted(() => {
|
|
|
207
207
|
<template #footer>
|
|
208
208
|
<slot name="footer">
|
|
209
209
|
<div class="gap-2 text-xs flex items-center justify-between">
|
|
210
|
+
<span
|
|
211
|
+
v-if="total != null"
|
|
212
|
+
class="text-muted-foreground"
|
|
213
|
+
>
|
|
214
|
+
{{ T('count', { loaded: internalData.length, total }) }}
|
|
215
|
+
</span>
|
|
210
216
|
<div class="gap-2 flex items-center">
|
|
211
|
-
<Tooltip :text="T('
|
|
217
|
+
<Tooltip :text="T('scrollToTop')">
|
|
212
218
|
<Button
|
|
213
219
|
variant="ghost"
|
|
214
220
|
size="icon-sm"
|
|
215
|
-
icon="
|
|
216
|
-
:disabled="loading"
|
|
217
|
-
@click="
|
|
221
|
+
icon="arrow-up-to-line"
|
|
222
|
+
:disabled="loading || internalData.length === 0"
|
|
223
|
+
@click="scrollToTop"
|
|
218
224
|
/>
|
|
219
225
|
</Tooltip>
|
|
220
|
-
<Tooltip :text="T('
|
|
226
|
+
<Tooltip :text="T('refresh')">
|
|
221
227
|
<Button
|
|
222
228
|
variant="ghost"
|
|
223
229
|
size="icon-sm"
|
|
224
|
-
icon="
|
|
225
|
-
:disabled="loading
|
|
226
|
-
@click="
|
|
230
|
+
icon="rotate-cw"
|
|
231
|
+
:disabled="loading"
|
|
232
|
+
@click="refresh"
|
|
227
233
|
/>
|
|
228
234
|
</Tooltip>
|
|
229
235
|
</div>
|
|
230
|
-
<span
|
|
231
|
-
v-if="total != null"
|
|
232
|
-
class="text-muted-foreground"
|
|
233
|
-
>
|
|
234
|
-
{{ T('count', { loaded: internalData.length, total }) }}
|
|
235
|
-
</span>
|
|
236
236
|
</div>
|
|
237
237
|
</slot>
|
|
238
238
|
</template>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polymarbot/nuxt-layer-shadcn-ui",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.5",
|
|
4
4
|
"description": "Nuxt layer providing shadcn-vue based UI components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./nuxt.config.ts",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"vue-i18n": "^11",
|
|
43
43
|
"vue-router": "^4 || ^5"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "30f6ac393aad4980ad4a01e84597b0769566ec9e"
|
|
46
46
|
}
|