nuxt-ui-tools 1.0.1 → 1.1.0
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.d.mts +3 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +37 -0
- package/dist/runtime/dashboard/components/block/dashboard-block-state.d.vue.ts +12 -0
- package/dist/runtime/dashboard/components/block/dashboard-block-state.vue +59 -0
- package/dist/runtime/dashboard/components/block/dashboard-block-state.vue.d.ts +12 -0
- package/dist/runtime/dashboard/components/block/dashboard-data-table.d.vue.ts +9 -0
- package/dist/runtime/dashboard/components/block/dashboard-data-table.vue +47 -0
- package/dist/runtime/dashboard/components/block/dashboard-data-table.vue.d.ts +9 -0
- package/dist/runtime/dashboard/components/block/dashboard-ring.d.vue.ts +34 -0
- package/dist/runtime/dashboard/components/block/dashboard-ring.vue +91 -0
- package/dist/runtime/dashboard/components/block/dashboard-ring.vue.d.ts +34 -0
- package/dist/runtime/dashboard/components/block/dashboard-row-actions.d.vue.ts +13 -0
- package/dist/runtime/dashboard/components/block/dashboard-row-actions.vue +49 -0
- package/dist/runtime/dashboard/components/block/dashboard-row-actions.vue.d.ts +13 -0
- package/dist/runtime/dashboard/components/block/dashboard-skeleton.d.vue.ts +34 -0
- package/dist/runtime/dashboard/components/block/dashboard-skeleton.vue +312 -0
- package/dist/runtime/dashboard/components/block/dashboard-skeleton.vue.d.ts +34 -0
- package/dist/runtime/dashboard/components/charts/renderer.d.ts +43 -0
- package/dist/runtime/dashboard/components/charts/renderer.js +34 -0
- package/dist/runtime/dashboard/components/charts/unovis/dashboard-donut-chart.d.vue.ts +18 -0
- package/dist/runtime/dashboard/components/charts/unovis/dashboard-donut-chart.vue +45 -0
- package/dist/runtime/dashboard/components/charts/unovis/dashboard-donut-chart.vue.d.ts +18 -0
- package/dist/runtime/dashboard/components/charts/unovis/dashboard-xy-chart.d.vue.ts +14 -0
- package/dist/runtime/dashboard/components/charts/unovis/dashboard-xy-chart.vue +190 -0
- package/dist/runtime/dashboard/components/charts/unovis/dashboard-xy-chart.vue.d.ts +14 -0
- package/dist/runtime/dashboard/components/charts/unovis/dashboard-xy-marks.d.vue.ts +13 -0
- package/dist/runtime/dashboard/components/charts/unovis/dashboard-xy-marks.vue +72 -0
- package/dist/runtime/dashboard/components/charts/unovis/dashboard-xy-marks.vue.d.ts +13 -0
- package/dist/runtime/dashboard/components/charts/unovis/xy-layers.d.ts +43 -0
- package/dist/runtime/dashboard/components/charts/unovis/xy-layers.js +60 -0
- package/dist/runtime/dashboard/components/dashboard-alerts.d.vue.ts +49 -0
- package/dist/runtime/dashboard/components/dashboard-alerts.vue +226 -0
- package/dist/runtime/dashboard/components/dashboard-alerts.vue.d.ts +49 -0
- package/dist/runtime/dashboard/components/dashboard-bar-chart.d.vue.ts +53 -0
- package/dist/runtime/dashboard/components/dashboard-bar-chart.vue +131 -0
- package/dist/runtime/dashboard/components/dashboard-bar-chart.vue.d.ts +53 -0
- package/dist/runtime/dashboard/components/dashboard-bars.d.vue.ts +49 -0
- package/dist/runtime/dashboard/components/dashboard-bars.vue +187 -0
- package/dist/runtime/dashboard/components/dashboard-bars.vue.d.ts +49 -0
- package/dist/runtime/dashboard/components/dashboard-card.d.vue.ts +47 -0
- package/dist/runtime/dashboard/components/dashboard-card.vue +316 -0
- package/dist/runtime/dashboard/components/dashboard-card.vue.d.ts +47 -0
- package/dist/runtime/dashboard/components/dashboard-combo-chart.d.vue.ts +52 -0
- package/dist/runtime/dashboard/components/dashboard-combo-chart.vue +128 -0
- package/dist/runtime/dashboard/components/dashboard-combo-chart.vue.d.ts +52 -0
- package/dist/runtime/dashboard/components/dashboard-donut-chart.d.vue.ts +48 -0
- package/dist/runtime/dashboard/components/dashboard-donut-chart.vue +216 -0
- package/dist/runtime/dashboard/components/dashboard-donut-chart.vue.d.ts +48 -0
- package/dist/runtime/dashboard/components/dashboard-feed.d.vue.ts +49 -0
- package/dist/runtime/dashboard/components/dashboard-feed.vue +238 -0
- package/dist/runtime/dashboard/components/dashboard-feed.vue.d.ts +49 -0
- package/dist/runtime/dashboard/components/dashboard-funnel.d.vue.ts +34 -0
- package/dist/runtime/dashboard/components/dashboard-funnel.vue +157 -0
- package/dist/runtime/dashboard/components/dashboard-funnel.vue.d.ts +34 -0
- package/dist/runtime/dashboard/components/dashboard-gauge.d.vue.ts +55 -0
- package/dist/runtime/dashboard/components/dashboard-gauge.vue +177 -0
- package/dist/runtime/dashboard/components/dashboard-gauge.vue.d.ts +55 -0
- package/dist/runtime/dashboard/components/dashboard-grid.d.vue.ts +38 -0
- package/dist/runtime/dashboard/components/dashboard-grid.vue +49 -0
- package/dist/runtime/dashboard/components/dashboard-grid.vue.d.ts +38 -0
- package/dist/runtime/dashboard/components/dashboard-legend.d.vue.ts +8 -0
- package/dist/runtime/dashboard/components/dashboard-legend.vue +37 -0
- package/dist/runtime/dashboard/components/dashboard-legend.vue.d.ts +8 -0
- package/dist/runtime/dashboard/components/dashboard-line-chart.d.vue.ts +46 -0
- package/dist/runtime/dashboard/components/dashboard-line-chart.vue +129 -0
- package/dist/runtime/dashboard/components/dashboard-line-chart.vue.d.ts +46 -0
- package/dist/runtime/dashboard/components/dashboard-list.d.vue.ts +63 -0
- package/dist/runtime/dashboard/components/dashboard-list.vue +239 -0
- package/dist/runtime/dashboard/components/dashboard-list.vue.d.ts +63 -0
- package/dist/runtime/dashboard/components/dashboard-paired-bars.d.vue.ts +43 -0
- package/dist/runtime/dashboard/components/dashboard-paired-bars.vue +194 -0
- package/dist/runtime/dashboard/components/dashboard-paired-bars.vue.d.ts +43 -0
- package/dist/runtime/dashboard/components/dashboard-refresh.d.vue.ts +29 -0
- package/dist/runtime/dashboard/components/dashboard-refresh.vue +86 -0
- package/dist/runtime/dashboard/components/dashboard-refresh.vue.d.ts +29 -0
- package/dist/runtime/dashboard/components/dashboard-relative-time.d.vue.ts +12 -0
- package/dist/runtime/dashboard/components/dashboard-relative-time.vue +23 -0
- package/dist/runtime/dashboard/components/dashboard-relative-time.vue.d.ts +12 -0
- package/dist/runtime/dashboard/components/dashboard-stack-bar.d.vue.ts +36 -0
- package/dist/runtime/dashboard/components/dashboard-stack-bar.vue +162 -0
- package/dist/runtime/dashboard/components/dashboard-stack-bar.vue.d.ts +36 -0
- package/dist/runtime/dashboard/components/dashboard-stat.d.vue.ts +69 -0
- package/dist/runtime/dashboard/components/dashboard-stat.vue +279 -0
- package/dist/runtime/dashboard/components/dashboard-stat.vue.d.ts +69 -0
- package/dist/runtime/dashboard/components/dashboard-stats.d.vue.ts +38 -0
- package/dist/runtime/dashboard/components/dashboard-stats.vue +202 -0
- package/dist/runtime/dashboard/components/dashboard-stats.vue.d.ts +38 -0
- package/dist/runtime/dashboard/components/dashboard-table.d.vue.ts +52 -0
- package/dist/runtime/dashboard/components/dashboard-table.vue +305 -0
- package/dist/runtime/dashboard/components/dashboard-table.vue.d.ts +52 -0
- package/dist/runtime/dashboard/components/dashboard-tabs.d.vue.ts +35 -0
- package/dist/runtime/dashboard/components/dashboard-tabs.vue +55 -0
- package/dist/runtime/dashboard/components/dashboard-tabs.vue.d.ts +35 -0
- package/dist/runtime/dashboard/components/dashboard-total.d.vue.ts +10 -0
- package/dist/runtime/dashboard/components/dashboard-total.vue +32 -0
- package/dist/runtime/dashboard/components/dashboard-total.vue.d.ts +10 -0
- package/dist/runtime/dashboard/components/dashboard-widget.d.vue.ts +46 -0
- package/dist/runtime/dashboard/components/dashboard-widget.vue +84 -0
- package/dist/runtime/dashboard/components/dashboard-widget.vue.d.ts +46 -0
- package/dist/runtime/dashboard/composables/use-dashboard-api.d.ts +15 -0
- package/dist/runtime/dashboard/composables/use-dashboard-api.js +91 -0
- package/dist/runtime/dashboard/composables/use-dashboard-block.d.ts +22 -0
- package/dist/runtime/dashboard/composables/use-dashboard-block.js +35 -0
- package/dist/runtime/dashboard/composables/use-dashboard-chart.d.ts +36 -0
- package/dist/runtime/dashboard/composables/use-dashboard-chart.js +118 -0
- package/dist/runtime/dashboard/composables/use-dashboard-derived.d.ts +12 -0
- package/dist/runtime/dashboard/composables/use-dashboard-derived.js +47 -0
- package/dist/runtime/dashboard/composables/use-dashboard-format.d.ts +6 -0
- package/dist/runtime/dashboard/composables/use-dashboard-format.js +12 -0
- package/dist/runtime/dashboard/composables/use-dashboard-options.d.ts +8 -0
- package/dist/runtime/dashboard/composables/use-dashboard-options.js +63 -0
- package/dist/runtime/dashboard/composables/use-dashboard-param-scope.d.ts +30 -0
- package/dist/runtime/dashboard/composables/use-dashboard-param-scope.js +71 -0
- package/dist/runtime/dashboard/composables/use-dashboard-remote-options.d.ts +12 -0
- package/dist/runtime/dashboard/composables/use-dashboard-remote-options.js +117 -0
- package/dist/runtime/dashboard/composables/use-dashboard-resource.d.ts +35 -0
- package/dist/runtime/dashboard/composables/use-dashboard-resource.js +80 -0
- package/dist/runtime/dashboard/composables/use-dashboard-scope.d.ts +46 -0
- package/dist/runtime/dashboard/composables/use-dashboard-scope.js +127 -0
- package/dist/runtime/dashboard/composables/use-dashboard-time.d.ts +13 -0
- package/dist/runtime/dashboard/composables/use-dashboard-time.js +40 -0
- package/dist/runtime/dashboard/composables/use-dashboard-ui.d.ts +22 -0
- package/dist/runtime/dashboard/composables/use-dashboard-ui.js +19 -0
- package/dist/runtime/dashboard/composables/use-dashboard-views.d.ts +46 -0
- package/dist/runtime/dashboard/composables/use-dashboard-views.js +49 -0
- package/dist/runtime/dashboard/composables/use-dashboard.d.ts +24 -0
- package/dist/runtime/dashboard/composables/use-dashboard.js +42 -0
- package/dist/runtime/dashboard/constants/query.d.ts +16 -0
- package/dist/runtime/dashboard/constants/query.js +15 -0
- package/dist/runtime/dashboard/index.d.ts +4 -0
- package/dist/runtime/dashboard/index.js +3 -0
- package/dist/runtime/dashboard/schema/index.d.ts +57 -0
- package/dist/runtime/dashboard/schema/index.js +3 -0
- package/dist/runtime/dashboard/types/blocks.d.ts +251 -0
- package/dist/runtime/dashboard/types/blocks.js +0 -0
- package/dist/runtime/dashboard/types/charts.d.ts +60 -0
- package/dist/runtime/dashboard/types/charts.js +0 -0
- package/dist/runtime/dashboard/types/index.d.ts +7 -0
- package/dist/runtime/dashboard/types/index.js +0 -0
- package/dist/runtime/dashboard/types/options.d.ts +46 -0
- package/dist/runtime/dashboard/types/options.js +0 -0
- package/dist/runtime/dashboard/types/params.d.ts +115 -0
- package/dist/runtime/dashboard/types/params.js +0 -0
- package/dist/runtime/dashboard/types/resource.d.ts +106 -0
- package/dist/runtime/dashboard/types/resource.js +0 -0
- package/dist/runtime/dashboard/types/runtime.d.ts +44 -0
- package/dist/runtime/dashboard/types/runtime.js +0 -0
- package/dist/runtime/dashboard/types/schema.d.ts +171 -0
- package/dist/runtime/dashboard/types/schema.js +0 -0
- package/dist/runtime/dashboard/types/ui.d.ts +201 -0
- package/dist/runtime/dashboard/types/ui.js +0 -0
- package/dist/runtime/dashboard/utils/builders/dashboard-params.d.ts +85 -0
- package/dist/runtime/dashboard/utils/builders/dashboard-params.js +87 -0
- package/dist/runtime/dashboard/utils/chart-frame.d.ts +5 -0
- package/dist/runtime/dashboard/utils/chart-frame.js +27 -0
- package/dist/runtime/dashboard/utils/charts.d.ts +61 -0
- package/dist/runtime/dashboard/utils/charts.js +142 -0
- package/dist/runtime/dashboard/utils/comparison.d.ts +15 -0
- package/dist/runtime/dashboard/utils/comparison.js +19 -0
- package/dist/runtime/dashboard/utils/export.d.ts +13 -0
- package/dist/runtime/dashboard/utils/export.js +45 -0
- package/dist/runtime/dashboard/utils/options.d.ts +12 -0
- package/dist/runtime/dashboard/utils/options.js +23 -0
- package/dist/runtime/dashboard/utils/params/codecs.d.ts +14 -0
- package/dist/runtime/dashboard/utils/params/codecs.js +69 -0
- package/dist/runtime/dashboard/utils/resource.d.ts +16 -0
- package/dist/runtime/dashboard/utils/resource.js +39 -0
- package/dist/runtime/dashboard/utils/schema.d.ts +9 -0
- package/dist/runtime/dashboard/utils/schema.js +31 -0
- package/dist/runtime/dashboard/utils/sparkline.d.ts +21 -0
- package/dist/runtime/dashboard/utils/sparkline.js +53 -0
- package/dist/runtime/dashboard/utils/state.d.ts +28 -0
- package/dist/runtime/dashboard/utils/state.js +32 -0
- package/dist/runtime/dashboard/utils/time.d.ts +17 -0
- package/dist/runtime/dashboard/utils/time.js +60 -0
- package/dist/runtime/dashboard/utils/tracker.d.ts +12 -0
- package/dist/runtime/dashboard/utils/tracker.js +31 -0
- package/dist/runtime/dashboard/utils/ui.d.ts +38 -0
- package/dist/runtime/dashboard/utils/ui.js +24 -0
- package/dist/runtime/dashboard/utils/visibility.d.ts +2 -0
- package/dist/runtime/dashboard/utils/visibility.js +25 -0
- package/dist/runtime/form/types/options.d.ts +15 -36
- package/dist/runtime/i18n/locales/en.js +62 -0
- package/dist/runtime/i18n/locales/fr.js +62 -0
- package/dist/runtime/i18n/types.d.ts +67 -0
- package/dist/runtime/shared/index.d.ts +2 -0
- package/dist/runtime/shared/styles/tokens.css +1 -1
- package/dist/runtime/shared/types/query.d.ts +10 -0
- package/dist/runtime/shared/types/query.js +0 -0
- package/dist/runtime/shared/types/remote-options.d.ts +37 -0
- package/dist/runtime/shared/types/remote-options.js +0 -0
- package/dist/runtime/spreadsheet/components/layout/spreadsheet-import-footer.d.vue.ts +2 -2
- package/dist/runtime/spreadsheet/components/layout/spreadsheet-import-footer.vue.d.ts +2 -2
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-internals.d.ts +15 -15
- package/dist/runtime/spreadsheet/composables/use-spreadsheet-resolutions.d.ts +2 -2
- package/dist/runtime/spreadsheet/schema/normalize.d.ts +1 -1
- package/dist/runtime/spreadsheet/utils/references/sources.d.ts +1 -1
- package/dist/runtime/table/components/data-list/data-list-content.d.vue.ts +1 -1
- package/dist/runtime/table/components/data-list/data-list-content.vue.d.ts +1 -1
- package/dist/runtime/table/components/data-list/data-list-infinite-loader.d.vue.ts +1 -1
- package/dist/runtime/table/components/data-list/data-list-infinite-loader.vue.d.ts +1 -1
- package/dist/runtime/table/components/data-list/data-list-layout-switch.d.vue.ts +1 -1
- package/dist/runtime/table/components/data-list/data-list-layout-switch.vue.d.ts +1 -1
- package/dist/runtime/table/components/data-list/data-list-pagination.d.vue.ts +1 -1
- package/dist/runtime/table/components/data-list/data-list-pagination.vue.d.ts +1 -1
- package/dist/runtime/table/components/data-list/data-list-sort-menu.d.vue.ts +1 -1
- package/dist/runtime/table/components/data-list/data-list-sort-menu.vue.d.ts +1 -1
- package/dist/runtime/table/components/data-list/sort-menu-panel.d.vue.ts +2 -2
- package/dist/runtime/table/components/data-list/sort-menu-panel.vue.d.ts +2 -2
- package/dist/runtime/table/components/filters/shared/filter-match-mode-button.d.vue.ts +1 -1
- package/dist/runtime/table/components/filters/shared/filter-match-mode-button.vue.d.ts +1 -1
- package/dist/runtime/table/components/layout/table-footer.d.vue.ts +1 -1
- package/dist/runtime/table/components/layout/table-footer.vue.d.ts +1 -1
- package/dist/runtime/table/components/table/table-cell-ellipsis.d.ts +1 -1
- package/dist/runtime/table/composables/use-query-state.d.ts +3 -3
- package/dist/runtime/table/composables/use-table-columns.d.ts +3 -3
- package/dist/runtime/table/composables/use-table-internals.d.ts +27 -27
- package/dist/runtime/table/composables/use-table-pagination.d.ts +2 -2
- package/dist/runtime/table/composables/use-table-selection.d.ts +1 -1
- package/dist/runtime/table/composables/use-table-state.d.ts +3 -3
- package/dist/runtime/table/types/source.d.ts +4 -5
- package/dist/runtime/table/utils/columns/menu.d.ts +1 -1
- package/dist/runtime/table/utils/columns/state.d.ts +1 -1
- package/dist/runtime/table/utils/data-list-ui.d.ts +1 -1
- package/package.json +28 -1
|
@@ -240,7 +240,7 @@ declare function createTableInternals<TSchema>(options: {
|
|
|
240
240
|
loadMore: () => Promise<import("@tanstack/vue-query").InfiniteQueryObserverRefetchErrorResult<unknown, unknown> | import("@tanstack/vue-query").InfiniteQueryObserverSuccessResult<unknown, unknown> | import("@tanstack/vue-query").InfiniteQueryObserverLoadingErrorResult<unknown, unknown> | import("@tanstack/vue-query").InfiniteQueryObserverPendingResult<unknown, unknown> | import("@tanstack/vue-query").InfiniteQueryObserverPlaceholderResult<unknown, unknown> | undefined>;
|
|
241
241
|
loadMoreError: import("vue").ComputedRef<unknown>;
|
|
242
242
|
loadedCount: import("vue").ComputedRef<number>;
|
|
243
|
-
mode: import("vue").ComputedRef<"
|
|
243
|
+
mode: import("vue").ComputedRef<"cursor" | "none" | "offset">;
|
|
244
244
|
next: () => void;
|
|
245
245
|
noneState: import("vue").ComputedRef<{
|
|
246
246
|
loadedCount: number;
|
|
@@ -270,7 +270,7 @@ declare function createTableInternals<TSchema>(options: {
|
|
|
270
270
|
isLoadingMore: boolean;
|
|
271
271
|
loadMoreError: unknown;
|
|
272
272
|
loadedCount: number;
|
|
273
|
-
mode: "
|
|
273
|
+
mode: "cursor" | "none" | "offset";
|
|
274
274
|
pageCount: number;
|
|
275
275
|
pageIndex: number;
|
|
276
276
|
pageSize: number;
|
|
@@ -294,7 +294,7 @@ declare function createTableInternals<TSchema>(options: {
|
|
|
294
294
|
readonly pageSize?: undefined;
|
|
295
295
|
readonly pageIndex?: undefined;
|
|
296
296
|
} | {
|
|
297
|
-
readonly count: "
|
|
297
|
+
readonly count: "none" | "exact";
|
|
298
298
|
readonly cursor: null;
|
|
299
299
|
readonly mode: "cursor";
|
|
300
300
|
readonly pageSize: number;
|
|
@@ -306,7 +306,7 @@ declare function createTableInternals<TSchema>(options: {
|
|
|
306
306
|
readonly pageSize: number;
|
|
307
307
|
readonly cursor?: undefined;
|
|
308
308
|
}>;
|
|
309
|
-
paginationMode: "
|
|
309
|
+
paginationMode: "cursor" | "none" | "offset";
|
|
310
310
|
paginationRevision: import("vue").Ref<number, number>;
|
|
311
311
|
resetPagination: () => void;
|
|
312
312
|
setOffsetPagination: (value: {
|
|
@@ -314,7 +314,7 @@ declare function createTableInternals<TSchema>(options: {
|
|
|
314
314
|
pageSize: number;
|
|
315
315
|
}) => void;
|
|
316
316
|
sorting: import("vue").WritableComputedRef<{
|
|
317
|
-
dir: "
|
|
317
|
+
dir: "asc" | "desc";
|
|
318
318
|
key: string;
|
|
319
319
|
} | null, {
|
|
320
320
|
key: string;
|
|
@@ -325,7 +325,7 @@ declare function createTableInternals<TSchema>(options: {
|
|
|
325
325
|
schema: import("vue").ComputedRef<TableSchemaView>;
|
|
326
326
|
selection: {
|
|
327
327
|
allSelected: import("vue").ComputedRef<boolean>;
|
|
328
|
-
bulkScope: import("vue").Ref<"
|
|
328
|
+
bulkScope: import("vue").Ref<"all" | "selection", "all" | "selection">;
|
|
329
329
|
clearSelection: () => void;
|
|
330
330
|
getRowId: (params: {
|
|
331
331
|
row: import("../types/index.js").GenericObject;
|
|
@@ -394,10 +394,10 @@ declare function createTableInternals<TSchema>(options: {
|
|
|
394
394
|
}) => import("@nuxt/ui/runtime/components/DropdownMenu.d.vue.js").DropdownMenuItem[][];
|
|
395
395
|
getPinnedState: (options: {
|
|
396
396
|
columnId: string;
|
|
397
|
-
}) => "
|
|
397
|
+
}) => "left" | "right" | null;
|
|
398
398
|
getSortState: (options: {
|
|
399
399
|
columnId: string;
|
|
400
|
-
}) => "
|
|
400
|
+
}) => "asc" | "desc" | null;
|
|
401
401
|
orderedColumns: import("vue").ComputedRef<import("../utils/index.js").TableRuntimeColumn[]>;
|
|
402
402
|
reset: () => void;
|
|
403
403
|
runtimeColumns: import("vue").ComputedRef<import("../utils/index.js").TableRuntimeColumn[]>;
|
|
@@ -421,7 +421,7 @@ declare function createTableInternals<TSchema>(options: {
|
|
|
421
421
|
sortKeys: import("vue").ComputedRef<string[]>;
|
|
422
422
|
sortingState: import("vue").ComputedRef<{
|
|
423
423
|
active: boolean;
|
|
424
|
-
dir: "
|
|
424
|
+
dir: "asc" | "desc" | undefined;
|
|
425
425
|
key: string | undefined;
|
|
426
426
|
}>;
|
|
427
427
|
tableColumns: import("vue").ComputedRef<({
|
|
@@ -831,7 +831,7 @@ declare function useProvideTableInternals<TSchema>(options: {
|
|
|
831
831
|
loadMore: () => Promise<import("@tanstack/vue-query").InfiniteQueryObserverRefetchErrorResult<unknown, unknown> | import("@tanstack/vue-query").InfiniteQueryObserverSuccessResult<unknown, unknown> | import("@tanstack/vue-query").InfiniteQueryObserverLoadingErrorResult<unknown, unknown> | import("@tanstack/vue-query").InfiniteQueryObserverPendingResult<unknown, unknown> | import("@tanstack/vue-query").InfiniteQueryObserverPlaceholderResult<unknown, unknown> | undefined>;
|
|
832
832
|
loadMoreError: import("vue").ComputedRef<unknown>;
|
|
833
833
|
loadedCount: import("vue").ComputedRef<number>;
|
|
834
|
-
mode: import("vue").ComputedRef<"
|
|
834
|
+
mode: import("vue").ComputedRef<"cursor" | "none" | "offset">;
|
|
835
835
|
next: () => void;
|
|
836
836
|
noneState: import("vue").ComputedRef<{
|
|
837
837
|
loadedCount: number;
|
|
@@ -861,7 +861,7 @@ declare function useProvideTableInternals<TSchema>(options: {
|
|
|
861
861
|
isLoadingMore: boolean;
|
|
862
862
|
loadMoreError: unknown;
|
|
863
863
|
loadedCount: number;
|
|
864
|
-
mode: "
|
|
864
|
+
mode: "cursor" | "none" | "offset";
|
|
865
865
|
pageCount: number;
|
|
866
866
|
pageIndex: number;
|
|
867
867
|
pageSize: number;
|
|
@@ -885,7 +885,7 @@ declare function useProvideTableInternals<TSchema>(options: {
|
|
|
885
885
|
readonly pageSize?: undefined;
|
|
886
886
|
readonly pageIndex?: undefined;
|
|
887
887
|
} | {
|
|
888
|
-
readonly count: "
|
|
888
|
+
readonly count: "none" | "exact";
|
|
889
889
|
readonly cursor: null;
|
|
890
890
|
readonly mode: "cursor";
|
|
891
891
|
readonly pageSize: number;
|
|
@@ -897,7 +897,7 @@ declare function useProvideTableInternals<TSchema>(options: {
|
|
|
897
897
|
readonly pageSize: number;
|
|
898
898
|
readonly cursor?: undefined;
|
|
899
899
|
}>;
|
|
900
|
-
paginationMode: "
|
|
900
|
+
paginationMode: "cursor" | "none" | "offset";
|
|
901
901
|
paginationRevision: import("vue").Ref<number, number>;
|
|
902
902
|
resetPagination: () => void;
|
|
903
903
|
setOffsetPagination: (value: {
|
|
@@ -905,7 +905,7 @@ declare function useProvideTableInternals<TSchema>(options: {
|
|
|
905
905
|
pageSize: number;
|
|
906
906
|
}) => void;
|
|
907
907
|
sorting: import("vue").WritableComputedRef<{
|
|
908
|
-
dir: "
|
|
908
|
+
dir: "asc" | "desc";
|
|
909
909
|
key: string;
|
|
910
910
|
} | null, {
|
|
911
911
|
key: string;
|
|
@@ -916,7 +916,7 @@ declare function useProvideTableInternals<TSchema>(options: {
|
|
|
916
916
|
schema: import("vue").ComputedRef<TableSchemaView>;
|
|
917
917
|
selection: {
|
|
918
918
|
allSelected: import("vue").ComputedRef<boolean>;
|
|
919
|
-
bulkScope: import("vue").Ref<"
|
|
919
|
+
bulkScope: import("vue").Ref<"all" | "selection", "all" | "selection">;
|
|
920
920
|
clearSelection: () => void;
|
|
921
921
|
getRowId: (params: {
|
|
922
922
|
row: import("../types/index.js").GenericObject;
|
|
@@ -985,10 +985,10 @@ declare function useProvideTableInternals<TSchema>(options: {
|
|
|
985
985
|
}) => import("@nuxt/ui/runtime/components/DropdownMenu.d.vue.js").DropdownMenuItem[][];
|
|
986
986
|
getPinnedState: (options: {
|
|
987
987
|
columnId: string;
|
|
988
|
-
}) => "
|
|
988
|
+
}) => "left" | "right" | null;
|
|
989
989
|
getSortState: (options: {
|
|
990
990
|
columnId: string;
|
|
991
|
-
}) => "
|
|
991
|
+
}) => "asc" | "desc" | null;
|
|
992
992
|
orderedColumns: import("vue").ComputedRef<import("../utils/index.js").TableRuntimeColumn[]>;
|
|
993
993
|
reset: () => void;
|
|
994
994
|
runtimeColumns: import("vue").ComputedRef<import("../utils/index.js").TableRuntimeColumn[]>;
|
|
@@ -1012,7 +1012,7 @@ declare function useProvideTableInternals<TSchema>(options: {
|
|
|
1012
1012
|
sortKeys: import("vue").ComputedRef<string[]>;
|
|
1013
1013
|
sortingState: import("vue").ComputedRef<{
|
|
1014
1014
|
active: boolean;
|
|
1015
|
-
dir: "
|
|
1015
|
+
dir: "asc" | "desc" | undefined;
|
|
1016
1016
|
key: string | undefined;
|
|
1017
1017
|
}>;
|
|
1018
1018
|
tableColumns: import("vue").ComputedRef<({
|
|
@@ -1419,7 +1419,7 @@ declare function useTableInternals(): {
|
|
|
1419
1419
|
loadMore: () => Promise<import("@tanstack/vue-query").InfiniteQueryObserverRefetchErrorResult<unknown, unknown> | import("@tanstack/vue-query").InfiniteQueryObserverSuccessResult<unknown, unknown> | import("@tanstack/vue-query").InfiniteQueryObserverLoadingErrorResult<unknown, unknown> | import("@tanstack/vue-query").InfiniteQueryObserverPendingResult<unknown, unknown> | import("@tanstack/vue-query").InfiniteQueryObserverPlaceholderResult<unknown, unknown> | undefined>;
|
|
1420
1420
|
loadMoreError: import("vue").ComputedRef<unknown>;
|
|
1421
1421
|
loadedCount: import("vue").ComputedRef<number>;
|
|
1422
|
-
mode: import("vue").ComputedRef<"
|
|
1422
|
+
mode: import("vue").ComputedRef<"cursor" | "none" | "offset">;
|
|
1423
1423
|
next: () => void;
|
|
1424
1424
|
noneState: import("vue").ComputedRef<{
|
|
1425
1425
|
loadedCount: number;
|
|
@@ -1449,7 +1449,7 @@ declare function useTableInternals(): {
|
|
|
1449
1449
|
isLoadingMore: boolean;
|
|
1450
1450
|
loadMoreError: unknown;
|
|
1451
1451
|
loadedCount: number;
|
|
1452
|
-
mode: "
|
|
1452
|
+
mode: "cursor" | "none" | "offset";
|
|
1453
1453
|
pageCount: number;
|
|
1454
1454
|
pageIndex: number;
|
|
1455
1455
|
pageSize: number;
|
|
@@ -1473,7 +1473,7 @@ declare function useTableInternals(): {
|
|
|
1473
1473
|
readonly pageSize?: undefined;
|
|
1474
1474
|
readonly pageIndex?: undefined;
|
|
1475
1475
|
} | {
|
|
1476
|
-
readonly count: "
|
|
1476
|
+
readonly count: "none" | "exact";
|
|
1477
1477
|
readonly cursor: null;
|
|
1478
1478
|
readonly mode: "cursor";
|
|
1479
1479
|
readonly pageSize: number;
|
|
@@ -1485,7 +1485,7 @@ declare function useTableInternals(): {
|
|
|
1485
1485
|
readonly pageSize: number;
|
|
1486
1486
|
readonly cursor?: undefined;
|
|
1487
1487
|
}>;
|
|
1488
|
-
paginationMode: "
|
|
1488
|
+
paginationMode: "cursor" | "none" | "offset";
|
|
1489
1489
|
paginationRevision: import("vue").Ref<number, number>;
|
|
1490
1490
|
resetPagination: () => void;
|
|
1491
1491
|
setOffsetPagination: (value: {
|
|
@@ -1493,7 +1493,7 @@ declare function useTableInternals(): {
|
|
|
1493
1493
|
pageSize: number;
|
|
1494
1494
|
}) => void;
|
|
1495
1495
|
sorting: import("vue").WritableComputedRef<{
|
|
1496
|
-
dir: "
|
|
1496
|
+
dir: "asc" | "desc";
|
|
1497
1497
|
key: string;
|
|
1498
1498
|
} | null, {
|
|
1499
1499
|
key: string;
|
|
@@ -1504,7 +1504,7 @@ declare function useTableInternals(): {
|
|
|
1504
1504
|
schema: import("vue").ComputedRef<TableSchemaView>;
|
|
1505
1505
|
selection: {
|
|
1506
1506
|
allSelected: import("vue").ComputedRef<boolean>;
|
|
1507
|
-
bulkScope: import("vue").Ref<"
|
|
1507
|
+
bulkScope: import("vue").Ref<"all" | "selection", "all" | "selection">;
|
|
1508
1508
|
clearSelection: () => void;
|
|
1509
1509
|
getRowId: (params: {
|
|
1510
1510
|
row: import("../types/index.js").GenericObject;
|
|
@@ -1573,10 +1573,10 @@ declare function useTableInternals(): {
|
|
|
1573
1573
|
}) => import("@nuxt/ui/runtime/components/DropdownMenu.d.vue.js").DropdownMenuItem[][];
|
|
1574
1574
|
getPinnedState: (options: {
|
|
1575
1575
|
columnId: string;
|
|
1576
|
-
}) => "
|
|
1576
|
+
}) => "left" | "right" | null;
|
|
1577
1577
|
getSortState: (options: {
|
|
1578
1578
|
columnId: string;
|
|
1579
|
-
}) => "
|
|
1579
|
+
}) => "asc" | "desc" | null;
|
|
1580
1580
|
orderedColumns: import("vue").ComputedRef<import("../utils/index.js").TableRuntimeColumn[]>;
|
|
1581
1581
|
reset: () => void;
|
|
1582
1582
|
runtimeColumns: import("vue").ComputedRef<import("../utils/index.js").TableRuntimeColumn[]>;
|
|
@@ -1600,7 +1600,7 @@ declare function useTableInternals(): {
|
|
|
1600
1600
|
sortKeys: import("vue").ComputedRef<string[]>;
|
|
1601
1601
|
sortingState: import("vue").ComputedRef<{
|
|
1602
1602
|
active: boolean;
|
|
1603
|
-
dir: "
|
|
1603
|
+
dir: "asc" | "desc" | undefined;
|
|
1604
1604
|
key: string | undefined;
|
|
1605
1605
|
}>;
|
|
1606
1606
|
tableColumns: import("vue").ComputedRef<({
|
|
@@ -25,7 +25,7 @@ export declare function useTablePagination(options: UseTablePaginationParams): {
|
|
|
25
25
|
loadMore: () => Promise<import("@tanstack/vue-query").InfiniteQueryObserverRefetchErrorResult<unknown, unknown> | import("@tanstack/vue-query").InfiniteQueryObserverSuccessResult<unknown, unknown> | import("@tanstack/vue-query").InfiniteQueryObserverLoadingErrorResult<unknown, unknown> | import("@tanstack/vue-query").InfiniteQueryObserverPendingResult<unknown, unknown> | import("@tanstack/vue-query").InfiniteQueryObserverPlaceholderResult<unknown, unknown> | undefined>;
|
|
26
26
|
loadMoreError: ComputedRef<unknown>;
|
|
27
27
|
loadedCount: ComputedRef<number>;
|
|
28
|
-
mode: ComputedRef<"
|
|
28
|
+
mode: ComputedRef<"cursor" | "none" | "offset">;
|
|
29
29
|
next: () => void;
|
|
30
30
|
noneState: ComputedRef<{
|
|
31
31
|
loadedCount: number;
|
|
@@ -55,7 +55,7 @@ export declare function useTablePagination(options: UseTablePaginationParams): {
|
|
|
55
55
|
isLoadingMore: boolean;
|
|
56
56
|
loadMoreError: unknown;
|
|
57
57
|
loadedCount: number;
|
|
58
|
-
mode: "
|
|
58
|
+
mode: "cursor" | "none" | "offset";
|
|
59
59
|
pageCount: number;
|
|
60
60
|
pageIndex: number;
|
|
61
61
|
pageSize: number;
|
|
@@ -7,7 +7,7 @@ export interface UseTableSelectionParams {
|
|
|
7
7
|
}
|
|
8
8
|
export declare function useTableSelection(options: UseTableSelectionParams): {
|
|
9
9
|
allSelected: ComputedRef<boolean>;
|
|
10
|
-
bulkScope: import("vue").Ref<"
|
|
10
|
+
bulkScope: import("vue").Ref<"all" | "selection", "all" | "selection">;
|
|
11
11
|
clearSelection: () => void;
|
|
12
12
|
getRowId: (params: {
|
|
13
13
|
row: GenericObject;
|
|
@@ -21,7 +21,7 @@ export declare function useTableState(params: UseTableStateParams): {
|
|
|
21
21
|
readonly pageSize?: undefined;
|
|
22
22
|
readonly pageIndex?: undefined;
|
|
23
23
|
} | {
|
|
24
|
-
readonly count: "
|
|
24
|
+
readonly count: "none" | "exact";
|
|
25
25
|
readonly cursor: null;
|
|
26
26
|
readonly mode: "cursor";
|
|
27
27
|
readonly pageSize: number;
|
|
@@ -33,7 +33,7 @@ export declare function useTableState(params: UseTableStateParams): {
|
|
|
33
33
|
readonly pageSize: number;
|
|
34
34
|
readonly cursor?: undefined;
|
|
35
35
|
}>;
|
|
36
|
-
paginationMode: "
|
|
36
|
+
paginationMode: "cursor" | "none" | "offset";
|
|
37
37
|
paginationRevision: import("vue").Ref<number, number>;
|
|
38
38
|
resetPagination: () => void;
|
|
39
39
|
setOffsetPagination: (value: {
|
|
@@ -41,7 +41,7 @@ export declare function useTableState(params: UseTableStateParams): {
|
|
|
41
41
|
pageSize: number;
|
|
42
42
|
}) => void;
|
|
43
43
|
sorting: import("vue").WritableComputedRef<{
|
|
44
|
-
dir: "
|
|
44
|
+
dir: "asc" | "desc";
|
|
45
45
|
key: string;
|
|
46
46
|
} | null, {
|
|
47
47
|
key: string;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import type { InfiniteData, QueryFunction, QueryKey
|
|
1
|
+
import type { InfiniteData, QueryFunction, QueryKey } from '@tanstack/vue-query';
|
|
2
|
+
import type { QueryDefinition } from '../../shared/types/query.js';
|
|
2
3
|
import type { TableResolvedFilterGroup } from './filters.js';
|
|
3
4
|
import type { GenericObject, TableKnownFieldPath, TablePaginationState, TableSortKey, TableSortingRule, TableRowsFromSourceResult } from './utils.js';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
queryFn?: QueryFunction<TData, QueryKey, string | null>;
|
|
7
|
-
};
|
|
5
|
+
/** Table name of the shared `QueryDefinition`, kept for public type compatibility. */
|
|
6
|
+
export type TableQueryDefinition<TData = unknown> = QueryDefinition<TData>;
|
|
8
7
|
export interface TableInfiniteQueryDefinition<TData = unknown> {
|
|
9
8
|
queryKey: QueryKey;
|
|
10
9
|
queryFn: QueryFunction<TData, QueryKey, string | null>;
|
|
@@ -36,4 +36,4 @@ export declare function getColumnHeaderIcon(options: {
|
|
|
36
36
|
columnId: string;
|
|
37
37
|
}) => 'left' | 'right' | null;
|
|
38
38
|
canHide?: boolean;
|
|
39
|
-
}): "i-lucide-
|
|
39
|
+
}): "i-lucide-chevrons-up-down" | "i-lucide-arrow-up" | "i-lucide-arrow-down" | "i-lucide-grip-vertical";
|
|
@@ -73,7 +73,7 @@ export declare function resolveDataListControlGeometry(size: DataListControlSize
|
|
|
73
73
|
toolbarGap: string;
|
|
74
74
|
};
|
|
75
75
|
/** Downsizes controls nested inside another control, such as preview badges in filter tags. */
|
|
76
|
-
export declare function resolveDataListNestedControlSize(size: DataListControlSize): "
|
|
76
|
+
export declare function resolveDataListNestedControlSize(size: DataListControlSize): "xs" | "sm" | "md" | "lg";
|
|
77
77
|
/** Maps the resolved DataList size to table header, row, cell, and skeleton geometry. */
|
|
78
78
|
export declare function resolveDataListTableSize(size: DataListControlSize): {
|
|
79
79
|
cell: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-ui-tools",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Nuxt module and runtime toolkit for UI-heavy Nuxt applications",
|
|
5
5
|
"homepage": "https://github.com/ChronicStone/nuxt-ui-tools#readme",
|
|
6
6
|
"bugs": "https://github.com/ChronicStone/nuxt-ui-tools/issues",
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
".": [
|
|
21
21
|
"./dist/types.d.mts"
|
|
22
22
|
],
|
|
23
|
+
"dashboard": [
|
|
24
|
+
"./dist/runtime/dashboard/index.d.ts"
|
|
25
|
+
],
|
|
23
26
|
"form": [
|
|
24
27
|
"./dist/runtime/form/index.d.ts"
|
|
25
28
|
],
|
|
@@ -41,6 +44,14 @@
|
|
|
41
44
|
}
|
|
42
45
|
},
|
|
43
46
|
"imports": {
|
|
47
|
+
"#ui-tools/dashboard": {
|
|
48
|
+
"types": "./dist/runtime/dashboard/index.d.ts",
|
|
49
|
+
"default": "./dist/runtime/dashboard/index.js"
|
|
50
|
+
},
|
|
51
|
+
"#ui-tools/dashboard/*": {
|
|
52
|
+
"types": "./dist/runtime/dashboard/*.d.ts",
|
|
53
|
+
"default": "./dist/runtime/dashboard/*.js"
|
|
54
|
+
},
|
|
44
55
|
"#ui-tools/form": {
|
|
45
56
|
"types": "./dist/runtime/form/index.d.ts",
|
|
46
57
|
"default": "./dist/runtime/form/index.js"
|
|
@@ -95,6 +106,10 @@
|
|
|
95
106
|
"types": "./dist/types.d.mts",
|
|
96
107
|
"import": "./dist/module.mjs"
|
|
97
108
|
},
|
|
109
|
+
"./dashboard": {
|
|
110
|
+
"types": "./dist/runtime/dashboard/index.d.ts",
|
|
111
|
+
"import": "./dist/runtime/dashboard/index.js"
|
|
112
|
+
},
|
|
98
113
|
"./form": {
|
|
99
114
|
"types": "./dist/runtime/form/index.d.ts",
|
|
100
115
|
"import": "./dist/runtime/form/index.js"
|
|
@@ -169,6 +184,8 @@
|
|
|
169
184
|
"@nuxt/ui": "^4.10.0",
|
|
170
185
|
"@tiptap/y-tiptap": "3.0.9",
|
|
171
186
|
"@types/node": "25.4.0",
|
|
187
|
+
"@unovis/ts": "1.7.0",
|
|
188
|
+
"@unovis/vue": "1.7.0",
|
|
172
189
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
173
190
|
"@vitejs/plugin-vue-jsx": "^5.1.6",
|
|
174
191
|
"@vue/test-utils": "2.5.1",
|
|
@@ -186,6 +203,8 @@
|
|
|
186
203
|
"peerDependencies": {
|
|
187
204
|
"@nuxt/ui": ">=4.10.0",
|
|
188
205
|
"@tanstack/vue-query": ">=5.101.4",
|
|
206
|
+
"@unovis/ts": ">=1.6.0",
|
|
207
|
+
"@unovis/vue": ">=1.6.0",
|
|
189
208
|
"nuxt": ">=4.5.2",
|
|
190
209
|
"tailwindcss": ">=4.3.3",
|
|
191
210
|
"typescript": ">=5.9.0",
|
|
@@ -193,6 +212,14 @@
|
|
|
193
212
|
"vue-draggable-plus": ">=0.6.1",
|
|
194
213
|
"vue-router": ">=4.6.4"
|
|
195
214
|
},
|
|
215
|
+
"peerDependenciesMeta": {
|
|
216
|
+
"@unovis/ts": {
|
|
217
|
+
"optional": true
|
|
218
|
+
},
|
|
219
|
+
"@unovis/vue": {
|
|
220
|
+
"optional": true
|
|
221
|
+
}
|
|
222
|
+
},
|
|
196
223
|
"overrides": {
|
|
197
224
|
"@tiptap/y-tiptap": "3.0.9"
|
|
198
225
|
}
|