@una-ui/nuxt 0.26.0-beta.2 → 0.27.0-beta.1
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/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/data/table/Table.vue +87 -92
- package/dist/runtime/components/data/table/TableLoading.vue +7 -1
- package/dist/runtime/components/data/table/TableRoot.vue +5 -0
- package/dist/runtime/components/elements/Button.vue +2 -0
- package/dist/runtime/components/elements/Progress.vue +2 -0
- package/dist/runtime/components/elements/Toggle.vue +60 -0
- package/dist/runtime/types/button.d.ts +2 -0
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/types/table.d.ts +3 -0
- package/dist/runtime/types/toggle.d.ts +22 -0
- package/dist/runtime/types/toggle.js +0 -0
- package/package.json +10 -10
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -10,7 +10,6 @@ import type {
|
|
|
10
10
|
SortingState,
|
|
11
11
|
VisibilityState,
|
|
12
12
|
} from '@tanstack/vue-table'
|
|
13
|
-
import type { Ref } from 'vue'
|
|
14
13
|
import type { NTableProps } from '../../../types'
|
|
15
14
|
|
|
16
15
|
import {
|
|
@@ -22,10 +21,10 @@ import {
|
|
|
22
21
|
getSortedRowModel,
|
|
23
22
|
useVueTable,
|
|
24
23
|
} from '@tanstack/vue-table'
|
|
25
|
-
import { computed, h } from 'vue'
|
|
26
24
|
|
|
27
|
-
import {
|
|
25
|
+
import { computed, h } from 'vue'
|
|
28
26
|
|
|
27
|
+
import { cn, valueUpdater } from '../../../utils'
|
|
29
28
|
import Button from '../../elements/Button.vue'
|
|
30
29
|
import Checkbox from '../../forms/Checkbox.vue'
|
|
31
30
|
import Input from '../../forms/Input.vue'
|
|
@@ -105,13 +104,14 @@ const columnsWithMisc = computed(() => {
|
|
|
105
104
|
cell: ({ row }: any) => h(Button, {
|
|
106
105
|
size: 'xs',
|
|
107
106
|
icon: true,
|
|
107
|
+
square: true,
|
|
108
|
+
btn: 'ghost-gray',
|
|
108
109
|
label: 'i-radix-icons-chevron-down',
|
|
109
110
|
onClick: () => {
|
|
110
111
|
row.toggleExpanded()
|
|
111
112
|
emit('expand', row)
|
|
112
113
|
},
|
|
113
114
|
una: {
|
|
114
|
-
btnDefaultVariant: 'btn-ghost-gray btn-square',
|
|
115
115
|
btnIconLabel: cn(
|
|
116
116
|
'transform transition-transform duration-200',
|
|
117
117
|
row.getIsExpanded() ? '-rotate-180' : 'rotate-0',
|
|
@@ -128,64 +128,62 @@ const columnsWithMisc = computed(() => {
|
|
|
128
128
|
return data
|
|
129
129
|
})
|
|
130
130
|
|
|
131
|
-
const table =
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
},
|
|
131
|
+
const table = useVueTable({
|
|
132
|
+
get data() {
|
|
133
|
+
return props.data ?? []
|
|
134
|
+
},
|
|
135
|
+
get columns() {
|
|
136
|
+
return columnsWithMisc.value ?? []
|
|
137
|
+
},
|
|
138
|
+
state: {
|
|
139
|
+
get sorting() { return sorting.value },
|
|
140
|
+
get columnFilters() { return columnFilters.value },
|
|
141
|
+
get globalFilter() { return globalFilter.value },
|
|
142
|
+
get rowSelection() { return rowSelection.value },
|
|
143
|
+
get columnVisibility() { return columnVisibility.value },
|
|
144
|
+
get pagination() { return pagination.value },
|
|
145
|
+
get columnOrder() { return columnOrder.value },
|
|
146
|
+
get columnPinning() { return columnPinning.value },
|
|
147
|
+
get expanded() { return expanded.value },
|
|
148
|
+
get grouping() { return grouping.value },
|
|
149
|
+
},
|
|
151
150
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
151
|
+
enableMultiRowSelection: props.enableMultiRowSelection,
|
|
152
|
+
enableSubRowSelection: props.enableSubRowSelection,
|
|
153
|
+
autoResetAll: props.autoResetAll,
|
|
154
|
+
enableRowSelection: props.enableRowSelection,
|
|
155
|
+
enableColumnFilters: props.enableColumnFilters,
|
|
156
|
+
manualPagination: props.manualPagination,
|
|
157
|
+
manualSorting: props.manualSorting,
|
|
158
|
+
pageCount: props.pageCount,
|
|
159
|
+
rowCount: props.rowCount,
|
|
160
|
+
autoResetPageIndex: props.autoResetPageIndex,
|
|
161
|
+
enableSorting: props.enableSorting,
|
|
162
|
+
enableSortingRemoval: props.enableSortingRemoval,
|
|
163
|
+
enableMultiSort: props.enableMultiSort,
|
|
164
|
+
enableMultiRemove: props.enableMultiRemove,
|
|
165
|
+
maxMultiSortColCount: props.maxMultiSortColCount,
|
|
166
|
+
sortingFns: props.sortingFns,
|
|
167
|
+
isMultiSortEvent: props.isMultiSortEvent,
|
|
169
168
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
169
|
+
getCoreRowModel: getCoreRowModel(),
|
|
170
|
+
getSortedRowModel: getSortedRowModel(),
|
|
171
|
+
getFilteredRowModel: getFilteredRowModel(),
|
|
172
|
+
getPaginationRowModel: getPaginationRowModel(),
|
|
173
|
+
getRowId: (row: any) => props.rowId ? row[props.rowId] : row.id,
|
|
174
|
+
getExpandedRowModel: getExpandedRowModel(),
|
|
176
175
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}) as Ref<ReturnType<typeof useVueTable>>
|
|
176
|
+
onSortingChange: updaterOrValue => valueUpdater(updaterOrValue, sorting),
|
|
177
|
+
onRowSelectionChange: updaterOrValue => valueUpdater(updaterOrValue, rowSelection),
|
|
178
|
+
onColumnVisibilityChange: updaterOrValue => valueUpdater(updaterOrValue, columnVisibility),
|
|
179
|
+
onColumnFiltersChange: updaterOrValue => valueUpdater(updaterOrValue, columnFilters),
|
|
180
|
+
onGlobalFilterChange: updaterOrValue => valueUpdater(updaterOrValue, globalFilter),
|
|
181
|
+
onPaginationChange: updaterOrValue => valueUpdater(updaterOrValue, pagination),
|
|
182
|
+
onColumnOrderChange: updaterOrValue => valueUpdater(updaterOrValue, columnOrder),
|
|
183
|
+
onColumnPinningChange: updaterOrValue => valueUpdater(updaterOrValue, columnPinning),
|
|
184
|
+
onExpandedChange: updaterOrValue => valueUpdater(updaterOrValue, expanded),
|
|
185
|
+
onGroupingChange: updaterOrValue => valueUpdater(updaterOrValue, grouping),
|
|
186
|
+
})
|
|
189
187
|
|
|
190
188
|
function getHeaderColumnFiltersCount(headers: Header<unknown, unknown>[]): number {
|
|
191
189
|
let count = 0
|
|
@@ -198,24 +196,25 @@ function getHeaderColumnFiltersCount(headers: Header<unknown, unknown>[]): numbe
|
|
|
198
196
|
}
|
|
199
197
|
|
|
200
198
|
defineExpose({
|
|
201
|
-
...table
|
|
199
|
+
...table,
|
|
202
200
|
})
|
|
203
201
|
</script>
|
|
204
202
|
|
|
205
203
|
<template>
|
|
206
204
|
<TableRoot
|
|
207
|
-
|
|
205
|
+
:class="props.class"
|
|
206
|
+
:una
|
|
208
207
|
>
|
|
209
208
|
<!-- header -->
|
|
210
209
|
<TableHeader
|
|
211
|
-
:una
|
|
210
|
+
:una
|
|
212
211
|
v-bind="props._tableHeader"
|
|
213
212
|
>
|
|
214
213
|
<slot name="header" :table="table">
|
|
215
214
|
<TableRow
|
|
216
215
|
v-for="headerGroup in table.getHeaderGroups()"
|
|
217
216
|
:key="headerGroup.id"
|
|
218
|
-
:una
|
|
217
|
+
:una
|
|
219
218
|
v-bind="props._tableRow"
|
|
220
219
|
>
|
|
221
220
|
<!-- headers -->
|
|
@@ -224,14 +223,14 @@ defineExpose({
|
|
|
224
223
|
:key="header.id"
|
|
225
224
|
:colspan="header.colSpan"
|
|
226
225
|
:data-pinned="header.column.getIsPinned()"
|
|
227
|
-
:una
|
|
226
|
+
:una
|
|
228
227
|
v-bind="{ ...props._tableHead, ...header.column.columnDef.meta }"
|
|
229
228
|
>
|
|
230
229
|
<Button
|
|
231
230
|
v-if="header.column.columnDef.enableSorting || (header.column.columnDef.enableSorting !== false && enableSorting)"
|
|
232
231
|
btn="ghost-gray"
|
|
233
232
|
size="sm"
|
|
234
|
-
class="font-normal -ml-
|
|
233
|
+
class="font-normal -ml-1em"
|
|
235
234
|
:una="{
|
|
236
235
|
btnTrailing: 'text-sm',
|
|
237
236
|
}"
|
|
@@ -254,22 +253,18 @@ defineExpose({
|
|
|
254
253
|
/>
|
|
255
254
|
</slot>
|
|
256
255
|
</Button>
|
|
257
|
-
|
|
258
|
-
|
|
256
|
+
|
|
257
|
+
<slot
|
|
259
258
|
v-else
|
|
260
|
-
|
|
259
|
+
:name="`${header.id}-header`"
|
|
260
|
+
:column="header.column"
|
|
261
261
|
>
|
|
262
|
-
<
|
|
263
|
-
|
|
264
|
-
:
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
:render="header.column.columnDef.header"
|
|
269
|
-
:props="header.getContext()"
|
|
270
|
-
/>
|
|
271
|
-
</slot>
|
|
272
|
-
</component>
|
|
262
|
+
<FlexRender
|
|
263
|
+
v-if="!header.isPlaceholder"
|
|
264
|
+
:render="header.column.columnDef.header"
|
|
265
|
+
:props="header.getContext()"
|
|
266
|
+
/>
|
|
267
|
+
</slot>
|
|
273
268
|
</TableHead>
|
|
274
269
|
</TableRow>
|
|
275
270
|
|
|
@@ -281,13 +276,13 @@ defineExpose({
|
|
|
281
276
|
<TableRow
|
|
282
277
|
v-if="getHeaderColumnFiltersCount(headerGroup.headers) > 0 || enableColumnFilters"
|
|
283
278
|
data-filter="true"
|
|
284
|
-
:una
|
|
279
|
+
:una
|
|
285
280
|
v-bind="props._tableRow"
|
|
286
281
|
>
|
|
287
282
|
<TableHead
|
|
288
283
|
v-for="header in headerGroup.headers"
|
|
289
284
|
:key="header.id"
|
|
290
|
-
:una
|
|
285
|
+
:una
|
|
291
286
|
:colspan="header.colSpan"
|
|
292
287
|
:data-pinned="header.column.getIsPinned()"
|
|
293
288
|
v-bind="{ ...props._tableHead, ...header.column.columnDef.meta }"
|
|
@@ -298,7 +293,7 @@ defineExpose({
|
|
|
298
293
|
:column="header.column"
|
|
299
294
|
>
|
|
300
295
|
<Input
|
|
301
|
-
class="w-auto"
|
|
296
|
+
class="w-auto text-sm text-base"
|
|
302
297
|
:model-value="header.column.getFilterValue() as string"
|
|
303
298
|
:placeholder="header.column.columnDef.header"
|
|
304
299
|
@update:model-value="header.column.setFilterValue($event)"
|
|
@@ -311,7 +306,7 @@ defineExpose({
|
|
|
311
306
|
|
|
312
307
|
<TableLoading
|
|
313
308
|
:enabled="props.loading"
|
|
314
|
-
:una
|
|
309
|
+
:una
|
|
315
310
|
v-bind="props._tableLoading"
|
|
316
311
|
>
|
|
317
312
|
<slot name="loading" />
|
|
@@ -320,7 +315,7 @@ defineExpose({
|
|
|
320
315
|
|
|
321
316
|
<!-- body -->
|
|
322
317
|
<TableBody
|
|
323
|
-
:una
|
|
318
|
+
:una
|
|
324
319
|
v-bind="props._tableBody"
|
|
325
320
|
>
|
|
326
321
|
<slot name="body" :table="table">
|
|
@@ -331,7 +326,7 @@ defineExpose({
|
|
|
331
326
|
>
|
|
332
327
|
<TableRow
|
|
333
328
|
:data-state="row.getIsSelected() && 'selected'"
|
|
334
|
-
:una
|
|
329
|
+
:una
|
|
335
330
|
v-bind="props._tableRow"
|
|
336
331
|
>
|
|
337
332
|
<slot
|
|
@@ -343,7 +338,7 @@ defineExpose({
|
|
|
343
338
|
v-for="cell in row.getVisibleCells()"
|
|
344
339
|
:key="cell.id"
|
|
345
340
|
:data-pinned="cell.column.getIsPinned()"
|
|
346
|
-
:una
|
|
341
|
+
:una
|
|
347
342
|
v-bind="{ ...props._tableCell, ...cell.column.columnDef.meta }"
|
|
348
343
|
>
|
|
349
344
|
<slot
|
|
@@ -362,12 +357,12 @@ defineExpose({
|
|
|
362
357
|
<!-- expanded -->
|
|
363
358
|
<TableRow
|
|
364
359
|
v-if="row.getIsExpanded() && $slots.expanded"
|
|
365
|
-
:una
|
|
360
|
+
:una
|
|
366
361
|
v-bind="props._tableRow"
|
|
367
362
|
>
|
|
368
363
|
<TableCell
|
|
369
364
|
:colspan="row.getAllCells().length"
|
|
370
|
-
:una
|
|
365
|
+
:una
|
|
371
366
|
v-bind="props._tableCell"
|
|
372
367
|
>
|
|
373
368
|
<slot name="expanded" :row="row" />
|
|
@@ -379,7 +374,7 @@ defineExpose({
|
|
|
379
374
|
<TableEmpty
|
|
380
375
|
v-else
|
|
381
376
|
:colspan="table.getAllLeafColumns().length"
|
|
382
|
-
:una
|
|
377
|
+
:una
|
|
383
378
|
v-bind="props._tableEmpty"
|
|
384
379
|
>
|
|
385
380
|
<slot name="empty" />
|
|
@@ -390,7 +385,7 @@ defineExpose({
|
|
|
390
385
|
<!-- footer -->
|
|
391
386
|
<TableFooter
|
|
392
387
|
v-if="table.getFooterGroups().length > 0"
|
|
393
|
-
:una
|
|
388
|
+
:una
|
|
394
389
|
v-bind="props._tableFooter"
|
|
395
390
|
>
|
|
396
391
|
<slot name="footer" :table="table">
|
|
@@ -400,7 +395,7 @@ defineExpose({
|
|
|
400
395
|
>
|
|
401
396
|
<TableRow
|
|
402
397
|
v-if="footerGroup.headers.length > 0"
|
|
403
|
-
:una
|
|
398
|
+
:una
|
|
404
399
|
v-bind="props._tableRow"
|
|
405
400
|
>
|
|
406
401
|
<template
|
|
@@ -410,7 +405,7 @@ defineExpose({
|
|
|
410
405
|
<TableHead
|
|
411
406
|
v-if="header.column.columnDef.footer"
|
|
412
407
|
:colspan="header.colSpan"
|
|
413
|
-
:una
|
|
408
|
+
:una
|
|
414
409
|
v-bind="{ ...props._tableHead, ...header.column.columnDef.meta }"
|
|
415
410
|
>
|
|
416
411
|
<slot :name="`${header.id}-footer`" :column="header.column">
|
|
@@ -6,6 +6,7 @@ import Progress from '../../elements/Progress.vue'
|
|
|
6
6
|
import TableRow from './TableRow.vue'
|
|
7
7
|
|
|
8
8
|
const props = withDefaults(defineProps<NTableLoadingProps>(), {
|
|
9
|
+
size: '2.5px',
|
|
9
10
|
})
|
|
10
11
|
|
|
11
12
|
const delegatedProps = computed(() => {
|
|
@@ -43,7 +44,12 @@ const delegatedProps = computed(() => {
|
|
|
43
44
|
>
|
|
44
45
|
<slot>
|
|
45
46
|
<Progress
|
|
46
|
-
size
|
|
47
|
+
:size
|
|
48
|
+
v-bind="props._tableProgress"
|
|
49
|
+
:class="cn(
|
|
50
|
+
props._tableProgress?.class,
|
|
51
|
+
'bg-transparent',
|
|
52
|
+
)"
|
|
47
53
|
/>
|
|
48
54
|
</slot>
|
|
49
55
|
</div>
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
import type { NTableRootProps } from '../../../types'
|
|
3
3
|
import { cn } from '../../../utils'
|
|
4
4
|
|
|
5
|
+
defineOptions({
|
|
6
|
+
inheritAttrs: false,
|
|
7
|
+
})
|
|
8
|
+
|
|
5
9
|
const props = defineProps<NTableRootProps>()
|
|
6
10
|
</script>
|
|
7
11
|
|
|
@@ -10,6 +14,7 @@ const props = defineProps<NTableRootProps>()
|
|
|
10
14
|
:class="cn('table-root-wrapper', props.una?.tableRootWrapper)"
|
|
11
15
|
>
|
|
12
16
|
<table
|
|
17
|
+
v-bind="$attrs"
|
|
13
18
|
:class="cn(
|
|
14
19
|
'table-root',
|
|
15
20
|
props.una?.tableRoot,
|
|
@@ -23,6 +23,8 @@ const mergeVariants = computed(() => {
|
|
|
23
23
|
'pagination-selected': props.paginationSelected,
|
|
24
24
|
'pagination-unselected': props.paginationUnselected,
|
|
25
25
|
'dropdown-menu': props.dropdownMenu,
|
|
26
|
+
'toggle-on': props.toggleOn,
|
|
27
|
+
'toggle-off': props.toggleOff,
|
|
26
28
|
}
|
|
27
29
|
})
|
|
28
30
|
|
|
@@ -10,6 +10,7 @@ import { cn } from '../../utils'
|
|
|
10
10
|
const props = withDefaults(
|
|
11
11
|
defineProps<NProgressProps>(),
|
|
12
12
|
{
|
|
13
|
+
progress: 'primary',
|
|
13
14
|
},
|
|
14
15
|
)
|
|
15
16
|
|
|
@@ -30,6 +31,7 @@ const delegatedProps = computed(() => {
|
|
|
30
31
|
props.class,
|
|
31
32
|
)
|
|
32
33
|
"
|
|
34
|
+
:progress
|
|
33
35
|
>
|
|
34
36
|
<slot>
|
|
35
37
|
<ProgressIndicator
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { NToggleProps } from '../../types'
|
|
3
|
+
import { Toggle, type ToggleEmits, useForwardPropsEmits } from 'radix-vue'
|
|
4
|
+
import { computed } from 'vue'
|
|
5
|
+
import { cn } from '../../utils'
|
|
6
|
+
import Button from './Button.vue'
|
|
7
|
+
|
|
8
|
+
const props = withDefaults(defineProps<NToggleProps>(), {
|
|
9
|
+
icon: true,
|
|
10
|
+
square: true,
|
|
11
|
+
toggleOff: '~',
|
|
12
|
+
toggleOn: '~',
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
const emits = defineEmits<ToggleEmits>()
|
|
16
|
+
|
|
17
|
+
const delegatedProps = computed(() => {
|
|
18
|
+
const { class: _, size, ...delegated } = props
|
|
19
|
+
|
|
20
|
+
return delegated
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<template>
|
|
27
|
+
<Toggle
|
|
28
|
+
:class="cn(
|
|
29
|
+
'toggle',
|
|
30
|
+
props.class,
|
|
31
|
+
)"
|
|
32
|
+
v-bind="forwarded"
|
|
33
|
+
:toggle-off
|
|
34
|
+
:toggle-on
|
|
35
|
+
:as="Button"
|
|
36
|
+
:una="{
|
|
37
|
+
btnLoading: cn(
|
|
38
|
+
'text-1em',
|
|
39
|
+
props.una?.btnLoading,
|
|
40
|
+
),
|
|
41
|
+
btnLeading: cn(
|
|
42
|
+
'text-1em',
|
|
43
|
+
props.una?.btnLeading,
|
|
44
|
+
),
|
|
45
|
+
btnTrailing: cn(
|
|
46
|
+
'text-1em',
|
|
47
|
+
props.una?.btnTrailing,
|
|
48
|
+
),
|
|
49
|
+
btnIconLabel: cn(
|
|
50
|
+
'text-1em',
|
|
51
|
+
props.una?.btnIconLabel,
|
|
52
|
+
),
|
|
53
|
+
...props.una,
|
|
54
|
+
}"
|
|
55
|
+
>
|
|
56
|
+
<template v-for="(_, name) in $slots" #[name]="slotData">
|
|
57
|
+
<slot :name="name" v-bind="slotData" />
|
|
58
|
+
</template>
|
|
59
|
+
</Toggle>
|
|
60
|
+
</template>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ColumnDef, GroupColumnDef } from '@tanstack/vue-table';
|
|
2
2
|
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
import type { NProgressProps } from './progress.js';
|
|
3
4
|
export interface NTableProps<TData, TValue> extends NTableRootProps {
|
|
4
5
|
/**
|
|
5
6
|
* @see https://tanstack.com/table/latest/docs/guide/data
|
|
@@ -140,11 +141,13 @@ export interface NTableEmptyProps {
|
|
|
140
141
|
una?: Pick<NTableUnaProps, 'tableEmpty' | 'tableRow' | 'tableCell'>;
|
|
141
142
|
}
|
|
142
143
|
export interface NTableLoadingProps {
|
|
144
|
+
size?: HTMLAttributes['class'];
|
|
143
145
|
enabled?: boolean;
|
|
144
146
|
class?: HTMLAttributes['class'];
|
|
145
147
|
colspan?: number;
|
|
146
148
|
_tableCell?: NTableCellProps;
|
|
147
149
|
_tableRow?: NTableRowProps;
|
|
150
|
+
_tableProgress?: NProgressProps;
|
|
148
151
|
una?: Pick<NTableUnaProps, 'tableLoading' | 'tableRow' | 'tableCell'>;
|
|
149
152
|
}
|
|
150
153
|
export interface NTableCaptionProps {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ToggleProps } from 'radix-vue';
|
|
2
|
+
import type { NButtonProps } from './button.js';
|
|
3
|
+
export interface NToggleProps extends ToggleProps, NButtonProps {
|
|
4
|
+
/**
|
|
5
|
+
* Allows you to add `UnaUI` badge preset properties,
|
|
6
|
+
* Think of it as a shortcut for adding options or variants to the preset if available.
|
|
7
|
+
*
|
|
8
|
+
* @see https://github.com/una-ui/una-ui/blob/main/packages/preset/src/_shortcuts/toggle.ts
|
|
9
|
+
* @example
|
|
10
|
+
* toggle-on="soft-accent"
|
|
11
|
+
*/
|
|
12
|
+
toggleOn?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Allows you to add `UnaUI` badge preset properties,
|
|
15
|
+
* Think of it as a shortcut for adding options or variants to the preset if available.
|
|
16
|
+
*
|
|
17
|
+
* @see https://github.com/una-ui/una-ui/blob/main/packages/preset/src/_shortcuts/toggle.ts
|
|
18
|
+
* @example
|
|
19
|
+
* toggle-off="ghost-gray"
|
|
20
|
+
*/
|
|
21
|
+
toggleOff?: string;
|
|
22
|
+
}
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@una-ui/nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.27.0-beta.1",
|
|
5
5
|
"description": "Nuxt module for @una-ui",
|
|
6
6
|
"author": "Phojie Rengel <phojrengel@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -28,28 +28,28 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@headlessui/vue": "^1.7.23",
|
|
30
30
|
"@iconify-json/heroicons": "^1.2.0",
|
|
31
|
-
"@iconify-json/lucide": "^1.2.
|
|
31
|
+
"@iconify-json/lucide": "^1.2.7",
|
|
32
32
|
"@iconify-json/radix-icons": "^1.2.0",
|
|
33
33
|
"@iconify-json/tabler": "^1.2.4",
|
|
34
34
|
"@nuxt/kit": "^3.13.2",
|
|
35
35
|
"@nuxtjs/color-mode": "^3.5.1",
|
|
36
36
|
"@tanstack/vue-table": "^8.20.5",
|
|
37
|
-
"@unocss/core": "^0.63.
|
|
38
|
-
"@unocss/nuxt": "^0.63.
|
|
39
|
-
"@unocss/preset-attributify": "^0.63.
|
|
40
|
-
"@unocss/preset-icons": "^0.63.
|
|
37
|
+
"@unocss/core": "^0.63.3",
|
|
38
|
+
"@unocss/nuxt": "^0.63.3",
|
|
39
|
+
"@unocss/preset-attributify": "^0.63.3",
|
|
40
|
+
"@unocss/preset-icons": "^0.63.3",
|
|
41
41
|
"@vueuse/core": "^11.1.0",
|
|
42
42
|
"@vueuse/integrations": "^11.1.0",
|
|
43
43
|
"@vueuse/nuxt": "^11.1.0",
|
|
44
44
|
"clsx": "^2.1.1",
|
|
45
45
|
"ohash": "^1.1.4",
|
|
46
46
|
"radix-vue": "^1.9.6",
|
|
47
|
-
"tailwind-merge": "^2.5.
|
|
47
|
+
"tailwind-merge": "^2.5.3",
|
|
48
48
|
"typescript": "^5.6.2",
|
|
49
|
-
"unocss": "^0.63.
|
|
49
|
+
"unocss": "^0.63.3",
|
|
50
50
|
"unocss-preset-animations": "^1.1.0",
|
|
51
|
-
"@una-ui/extractor-vue-script": "^0.
|
|
52
|
-
"@una-ui/preset": "^0.
|
|
51
|
+
"@una-ui/extractor-vue-script": "^0.27.0-beta.1",
|
|
52
|
+
"@una-ui/preset": "^0.27.0-beta.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@nuxt/module-builder": "^0.8.4",
|