nuxt-ui-tools 1.0.0 → 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/components/root/form.vue +1 -1
- package/dist/runtime/form/composables/use-form-validation.d.ts +2 -3
- package/dist/runtime/form/composables/use-form-validation.js +24 -112
- package/dist/runtime/form/composables/use-form.js +1 -1
- package/dist/runtime/form/fields/password/component.vue +132 -28
- package/dist/runtime/form/fields/password/types.d.ts +6 -0
- package/dist/runtime/form/fields/text/component.vue +7 -2
- package/dist/runtime/form/types/field.d.ts +1 -1
- package/dist/runtime/form/types/options.d.ts +15 -36
- package/dist/runtime/form/types/validation.d.ts +3 -20
- package/dist/runtime/form/utils/state.d.ts +1 -14
- package/dist/runtime/form/utils/state.js +0 -199
- package/dist/runtime/i18n/locales/en.js +63 -0
- package/dist/runtime/i18n/locales/fr.js +63 -0
- package/dist/runtime/i18n/types.d.ts +68 -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 +20 -18
- package/dist/runtime/table/components/data-list/data-list-content.vue +14 -87
- package/dist/runtime/table/components/data-list/data-list-content.vue.d.ts +20 -18
- package/dist/runtime/table/components/data-list/data-list-default.d.vue.ts +1 -4
- package/dist/runtime/table/components/data-list/data-list-default.vue.d.ts +1 -4
- package/dist/runtime/table/components/data-list/data-list-error-state.d.vue.ts +13 -0
- package/dist/runtime/table/components/data-list/data-list-error-state.vue +91 -0
- package/dist/runtime/table/components/data-list/data-list-error-state.vue.d.ts +13 -0
- 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 +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-refresh.vue +42 -4
- package/dist/runtime/table/components/data-list/data-list-root.d.vue.ts +1 -9
- package/dist/runtime/table/components/data-list/data-list-root.vue.d.ts +1 -9
- 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 +11 -5
- 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/data-list.d.vue.ts +2 -13
- package/dist/runtime/table/components/data-list.vue.d.ts +2 -13
- package/dist/runtime/table/components/drawers/column-panel.vue +7 -2
- package/dist/runtime/table/components/filters/panel/filter-panel-chips.vue +2 -5
- package/dist/runtime/table/components/filters/panel/option-filter-panel-field.vue +1 -1
- package/dist/runtime/table/components/filters/shared/dynamic-filter-picker.d.vue.ts +2 -2
- package/dist/runtime/table/components/filters/shared/dynamic-filter-picker.vue +103 -101
- package/dist/runtime/table/components/filters/shared/dynamic-filter-picker.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/filters/shared/filter-option-multiple-list.vue +2 -2
- package/dist/runtime/table/components/filters/shared/filter-option-picker-content.vue +3 -3
- package/dist/runtime/table/components/filters/shared/filter-option-single-list.vue +1 -1
- package/dist/runtime/table/components/filters/shared/filter-popover-shell.d.vue.ts +3 -3
- package/dist/runtime/table/components/filters/shared/filter-popover-shell.vue +17 -15
- package/dist/runtime/table/components/filters/shared/filter-popover-shell.vue.d.ts +3 -3
- package/dist/runtime/table/components/filters/shared/filter-searchable-panel.vue +10 -2
- package/dist/runtime/table/components/filters/sheet/filter-sheet.vue +4 -3
- package/dist/runtime/table/components/filters/tags/filter-tags-bar.vue +1 -1
- package/dist/runtime/table/components/grid/grid-renderer.vue +2 -4
- 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/components/table/table-renderer.d.vue.ts +8 -2
- package/dist/runtime/table/components/table/table-renderer.vue +24 -6
- package/dist/runtime/table/components/table/table-renderer.vue.d.ts +8 -2
- package/dist/runtime/table/composables/use-option-filter-editor-state.d.ts +1 -0
- package/dist/runtime/table/composables/use-option-filter-editor-state.js +2 -2
- package/dist/runtime/table/composables/use-query-state.d.ts +3 -3
- package/dist/runtime/table/composables/use-table-actions.js +10 -5
- package/dist/runtime/table/composables/use-table-api.js +4 -1
- package/dist/runtime/table/composables/use-table-columns.d.ts +9 -5
- package/dist/runtime/table/composables/use-table-data.d.ts +2 -1
- package/dist/runtime/table/composables/use-table-data.js +19 -2
- package/dist/runtime/table/composables/use-table-filter-options.d.ts +1 -0
- package/dist/runtime/table/composables/use-table-filter-options.js +2 -1
- package/dist/runtime/table/composables/use-table-internals.d.ts +45 -33
- 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/actions.d.ts +3 -2
- package/dist/runtime/table/types/data-list.d.ts +8 -0
- package/dist/runtime/table/types/source.d.ts +14 -6
- package/dist/runtime/table/utils/builders/table-source.d.ts +14 -15
- package/dist/runtime/table/utils/client-query.d.ts +1 -1
- package/dist/runtime/table/utils/columns/menu.d.ts +1 -1
- package/dist/runtime/table/utils/columns/render.d.ts +13 -5
- package/dist/runtime/table/utils/columns/render.js +3 -2
- package/dist/runtime/table/utils/columns/state.d.ts +1 -1
- package/dist/runtime/table/utils/data-list-ui.d.ts +1 -1
- package/dist/runtime/table/utils/filters/editor-size.js +9 -9
- package/dist/runtime/table/utils/filters/options.js +6 -1
- package/dist/runtime/table/utils/index.d.ts +1 -0
- package/dist/runtime/table/utils/index.js +1 -0
- package/dist/runtime/table/utils/prefetch.js +5 -1
- package/dist/runtime/table/utils/source-request.d.ts +2 -0
- package/dist/runtime/table/utils/source-request.js +9 -0
- 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<({
|
|
@@ -461,7 +461,9 @@ declare function createTableInternals<TSchema>(options: {
|
|
|
461
461
|
original: import("../types/index.js").GenericObject;
|
|
462
462
|
index: number;
|
|
463
463
|
};
|
|
464
|
-
}) => import("vue
|
|
464
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
465
|
+
[key: string]: any;
|
|
466
|
+
}>;
|
|
465
467
|
enableHiding: boolean;
|
|
466
468
|
enablePinning: boolean;
|
|
467
469
|
enableResizing: boolean;
|
|
@@ -494,7 +496,9 @@ declare function createTableInternals<TSchema>(options: {
|
|
|
494
496
|
original: import("../types/index.js").GenericObject;
|
|
495
497
|
index: number;
|
|
496
498
|
};
|
|
497
|
-
}) => import("vue
|
|
499
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
500
|
+
[key: string]: any;
|
|
501
|
+
}>;
|
|
498
502
|
enableHiding: boolean;
|
|
499
503
|
enablePinning: boolean;
|
|
500
504
|
enableResizing: boolean;
|
|
@@ -827,7 +831,7 @@ declare function useProvideTableInternals<TSchema>(options: {
|
|
|
827
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>;
|
|
828
832
|
loadMoreError: import("vue").ComputedRef<unknown>;
|
|
829
833
|
loadedCount: import("vue").ComputedRef<number>;
|
|
830
|
-
mode: import("vue").ComputedRef<"
|
|
834
|
+
mode: import("vue").ComputedRef<"cursor" | "none" | "offset">;
|
|
831
835
|
next: () => void;
|
|
832
836
|
noneState: import("vue").ComputedRef<{
|
|
833
837
|
loadedCount: number;
|
|
@@ -857,7 +861,7 @@ declare function useProvideTableInternals<TSchema>(options: {
|
|
|
857
861
|
isLoadingMore: boolean;
|
|
858
862
|
loadMoreError: unknown;
|
|
859
863
|
loadedCount: number;
|
|
860
|
-
mode: "
|
|
864
|
+
mode: "cursor" | "none" | "offset";
|
|
861
865
|
pageCount: number;
|
|
862
866
|
pageIndex: number;
|
|
863
867
|
pageSize: number;
|
|
@@ -881,7 +885,7 @@ declare function useProvideTableInternals<TSchema>(options: {
|
|
|
881
885
|
readonly pageSize?: undefined;
|
|
882
886
|
readonly pageIndex?: undefined;
|
|
883
887
|
} | {
|
|
884
|
-
readonly count: "
|
|
888
|
+
readonly count: "none" | "exact";
|
|
885
889
|
readonly cursor: null;
|
|
886
890
|
readonly mode: "cursor";
|
|
887
891
|
readonly pageSize: number;
|
|
@@ -893,7 +897,7 @@ declare function useProvideTableInternals<TSchema>(options: {
|
|
|
893
897
|
readonly pageSize: number;
|
|
894
898
|
readonly cursor?: undefined;
|
|
895
899
|
}>;
|
|
896
|
-
paginationMode: "
|
|
900
|
+
paginationMode: "cursor" | "none" | "offset";
|
|
897
901
|
paginationRevision: import("vue").Ref<number, number>;
|
|
898
902
|
resetPagination: () => void;
|
|
899
903
|
setOffsetPagination: (value: {
|
|
@@ -901,7 +905,7 @@ declare function useProvideTableInternals<TSchema>(options: {
|
|
|
901
905
|
pageSize: number;
|
|
902
906
|
}) => void;
|
|
903
907
|
sorting: import("vue").WritableComputedRef<{
|
|
904
|
-
dir: "
|
|
908
|
+
dir: "asc" | "desc";
|
|
905
909
|
key: string;
|
|
906
910
|
} | null, {
|
|
907
911
|
key: string;
|
|
@@ -912,7 +916,7 @@ declare function useProvideTableInternals<TSchema>(options: {
|
|
|
912
916
|
schema: import("vue").ComputedRef<TableSchemaView>;
|
|
913
917
|
selection: {
|
|
914
918
|
allSelected: import("vue").ComputedRef<boolean>;
|
|
915
|
-
bulkScope: import("vue").Ref<"
|
|
919
|
+
bulkScope: import("vue").Ref<"all" | "selection", "all" | "selection">;
|
|
916
920
|
clearSelection: () => void;
|
|
917
921
|
getRowId: (params: {
|
|
918
922
|
row: import("../types/index.js").GenericObject;
|
|
@@ -981,10 +985,10 @@ declare function useProvideTableInternals<TSchema>(options: {
|
|
|
981
985
|
}) => import("@nuxt/ui/runtime/components/DropdownMenu.d.vue.js").DropdownMenuItem[][];
|
|
982
986
|
getPinnedState: (options: {
|
|
983
987
|
columnId: string;
|
|
984
|
-
}) => "
|
|
988
|
+
}) => "left" | "right" | null;
|
|
985
989
|
getSortState: (options: {
|
|
986
990
|
columnId: string;
|
|
987
|
-
}) => "
|
|
991
|
+
}) => "asc" | "desc" | null;
|
|
988
992
|
orderedColumns: import("vue").ComputedRef<import("../utils/index.js").TableRuntimeColumn[]>;
|
|
989
993
|
reset: () => void;
|
|
990
994
|
runtimeColumns: import("vue").ComputedRef<import("../utils/index.js").TableRuntimeColumn[]>;
|
|
@@ -1008,7 +1012,7 @@ declare function useProvideTableInternals<TSchema>(options: {
|
|
|
1008
1012
|
sortKeys: import("vue").ComputedRef<string[]>;
|
|
1009
1013
|
sortingState: import("vue").ComputedRef<{
|
|
1010
1014
|
active: boolean;
|
|
1011
|
-
dir: "
|
|
1015
|
+
dir: "asc" | "desc" | undefined;
|
|
1012
1016
|
key: string | undefined;
|
|
1013
1017
|
}>;
|
|
1014
1018
|
tableColumns: import("vue").ComputedRef<({
|
|
@@ -1048,7 +1052,9 @@ declare function useProvideTableInternals<TSchema>(options: {
|
|
|
1048
1052
|
original: import("../types/index.js").GenericObject;
|
|
1049
1053
|
index: number;
|
|
1050
1054
|
};
|
|
1051
|
-
}) => import("vue
|
|
1055
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
1056
|
+
[key: string]: any;
|
|
1057
|
+
}>;
|
|
1052
1058
|
enableHiding: boolean;
|
|
1053
1059
|
enablePinning: boolean;
|
|
1054
1060
|
enableResizing: boolean;
|
|
@@ -1081,7 +1087,9 @@ declare function useProvideTableInternals<TSchema>(options: {
|
|
|
1081
1087
|
original: import("../types/index.js").GenericObject;
|
|
1082
1088
|
index: number;
|
|
1083
1089
|
};
|
|
1084
|
-
}) => import("vue
|
|
1090
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
1091
|
+
[key: string]: any;
|
|
1092
|
+
}>;
|
|
1085
1093
|
enableHiding: boolean;
|
|
1086
1094
|
enablePinning: boolean;
|
|
1087
1095
|
enableResizing: boolean;
|
|
@@ -1411,7 +1419,7 @@ declare function useTableInternals(): {
|
|
|
1411
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>;
|
|
1412
1420
|
loadMoreError: import("vue").ComputedRef<unknown>;
|
|
1413
1421
|
loadedCount: import("vue").ComputedRef<number>;
|
|
1414
|
-
mode: import("vue").ComputedRef<"
|
|
1422
|
+
mode: import("vue").ComputedRef<"cursor" | "none" | "offset">;
|
|
1415
1423
|
next: () => void;
|
|
1416
1424
|
noneState: import("vue").ComputedRef<{
|
|
1417
1425
|
loadedCount: number;
|
|
@@ -1441,7 +1449,7 @@ declare function useTableInternals(): {
|
|
|
1441
1449
|
isLoadingMore: boolean;
|
|
1442
1450
|
loadMoreError: unknown;
|
|
1443
1451
|
loadedCount: number;
|
|
1444
|
-
mode: "
|
|
1452
|
+
mode: "cursor" | "none" | "offset";
|
|
1445
1453
|
pageCount: number;
|
|
1446
1454
|
pageIndex: number;
|
|
1447
1455
|
pageSize: number;
|
|
@@ -1465,7 +1473,7 @@ declare function useTableInternals(): {
|
|
|
1465
1473
|
readonly pageSize?: undefined;
|
|
1466
1474
|
readonly pageIndex?: undefined;
|
|
1467
1475
|
} | {
|
|
1468
|
-
readonly count: "
|
|
1476
|
+
readonly count: "none" | "exact";
|
|
1469
1477
|
readonly cursor: null;
|
|
1470
1478
|
readonly mode: "cursor";
|
|
1471
1479
|
readonly pageSize: number;
|
|
@@ -1477,7 +1485,7 @@ declare function useTableInternals(): {
|
|
|
1477
1485
|
readonly pageSize: number;
|
|
1478
1486
|
readonly cursor?: undefined;
|
|
1479
1487
|
}>;
|
|
1480
|
-
paginationMode: "
|
|
1488
|
+
paginationMode: "cursor" | "none" | "offset";
|
|
1481
1489
|
paginationRevision: import("vue").Ref<number, number>;
|
|
1482
1490
|
resetPagination: () => void;
|
|
1483
1491
|
setOffsetPagination: (value: {
|
|
@@ -1485,7 +1493,7 @@ declare function useTableInternals(): {
|
|
|
1485
1493
|
pageSize: number;
|
|
1486
1494
|
}) => void;
|
|
1487
1495
|
sorting: import("vue").WritableComputedRef<{
|
|
1488
|
-
dir: "
|
|
1496
|
+
dir: "asc" | "desc";
|
|
1489
1497
|
key: string;
|
|
1490
1498
|
} | null, {
|
|
1491
1499
|
key: string;
|
|
@@ -1496,7 +1504,7 @@ declare function useTableInternals(): {
|
|
|
1496
1504
|
schema: import("vue").ComputedRef<TableSchemaView>;
|
|
1497
1505
|
selection: {
|
|
1498
1506
|
allSelected: import("vue").ComputedRef<boolean>;
|
|
1499
|
-
bulkScope: import("vue").Ref<"
|
|
1507
|
+
bulkScope: import("vue").Ref<"all" | "selection", "all" | "selection">;
|
|
1500
1508
|
clearSelection: () => void;
|
|
1501
1509
|
getRowId: (params: {
|
|
1502
1510
|
row: import("../types/index.js").GenericObject;
|
|
@@ -1565,10 +1573,10 @@ declare function useTableInternals(): {
|
|
|
1565
1573
|
}) => import("@nuxt/ui/runtime/components/DropdownMenu.d.vue.js").DropdownMenuItem[][];
|
|
1566
1574
|
getPinnedState: (options: {
|
|
1567
1575
|
columnId: string;
|
|
1568
|
-
}) => "
|
|
1576
|
+
}) => "left" | "right" | null;
|
|
1569
1577
|
getSortState: (options: {
|
|
1570
1578
|
columnId: string;
|
|
1571
|
-
}) => "
|
|
1579
|
+
}) => "asc" | "desc" | null;
|
|
1572
1580
|
orderedColumns: import("vue").ComputedRef<import("../utils/index.js").TableRuntimeColumn[]>;
|
|
1573
1581
|
reset: () => void;
|
|
1574
1582
|
runtimeColumns: import("vue").ComputedRef<import("../utils/index.js").TableRuntimeColumn[]>;
|
|
@@ -1592,7 +1600,7 @@ declare function useTableInternals(): {
|
|
|
1592
1600
|
sortKeys: import("vue").ComputedRef<string[]>;
|
|
1593
1601
|
sortingState: import("vue").ComputedRef<{
|
|
1594
1602
|
active: boolean;
|
|
1595
|
-
dir: "
|
|
1603
|
+
dir: "asc" | "desc" | undefined;
|
|
1596
1604
|
key: string | undefined;
|
|
1597
1605
|
}>;
|
|
1598
1606
|
tableColumns: import("vue").ComputedRef<({
|
|
@@ -1632,7 +1640,9 @@ declare function useTableInternals(): {
|
|
|
1632
1640
|
original: import("../types/index.js").GenericObject;
|
|
1633
1641
|
index: number;
|
|
1634
1642
|
};
|
|
1635
|
-
}) => import("vue
|
|
1643
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
1644
|
+
[key: string]: any;
|
|
1645
|
+
}>;
|
|
1636
1646
|
enableHiding: boolean;
|
|
1637
1647
|
enablePinning: boolean;
|
|
1638
1648
|
enableResizing: boolean;
|
|
@@ -1665,7 +1675,9 @@ declare function useTableInternals(): {
|
|
|
1665
1675
|
original: import("../types/index.js").GenericObject;
|
|
1666
1676
|
index: number;
|
|
1667
1677
|
};
|
|
1668
|
-
}) => import("vue
|
|
1678
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
1679
|
+
[key: string]: any;
|
|
1680
|
+
}>;
|
|
1669
1681
|
enableHiding: boolean;
|
|
1670
1682
|
enablePinning: boolean;
|
|
1671
1683
|
enableResizing: boolean;
|
|
@@ -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,5 +1,5 @@
|
|
|
1
1
|
import type { DropdownMenuItem } from '@nuxt/ui/components/DropdownMenu.vue';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TableRemoteSourceRequest } from './source.js';
|
|
3
3
|
import type { TableApi } from './table-api.js';
|
|
4
4
|
import type { GenericObject, MaybePromise, TableLayout, TableRowRenderParams, TableTextValue } from './utils.js';
|
|
5
5
|
export interface TableActionContext<TRow extends GenericObject = GenericObject, TContext extends GenericObject = GenericObject, TPageContext extends GenericObject = GenericObject> {
|
|
@@ -10,7 +10,7 @@ export interface TableActionContext<TRow extends GenericObject = GenericObject,
|
|
|
10
10
|
matchingCount: number | null;
|
|
11
11
|
context: TContext;
|
|
12
12
|
pageContext: TPageContext;
|
|
13
|
-
request:
|
|
13
|
+
request: TableRemoteSourceRequest<TRow>;
|
|
14
14
|
}
|
|
15
15
|
export interface TableToolbarAction<TRow extends GenericObject = GenericObject, TContext extends GenericObject = GenericObject, TPageContext extends GenericObject = GenericObject> extends Omit<DropdownMenuItem, 'children' | 'disabled' | 'loading' | 'label' | 'onSelect'> {
|
|
16
16
|
key: string;
|
|
@@ -22,6 +22,7 @@ export interface TableToolbarAction<TRow extends GenericObject = GenericObject,
|
|
|
22
22
|
}
|
|
23
23
|
export interface TableBulkAction<TRow extends GenericObject = GenericObject, TContext extends GenericObject = GenericObject, TPageContext extends GenericObject = GenericObject> extends TableToolbarAction<TRow, TContext, TPageContext> {
|
|
24
24
|
requiresSelection?: boolean;
|
|
25
|
+
selectionClear?: 'trigger' | 'success' | 'never';
|
|
25
26
|
}
|
|
26
27
|
/** Runtime state exposed for a configured toolbar or bulk action. */
|
|
27
28
|
export interface TableActionState {
|
|
@@ -4,7 +4,15 @@ import type { CheckboxProps } from '@nuxt/ui/components/Checkbox.vue';
|
|
|
4
4
|
import type { InputProps } from '@nuxt/ui/components/Input.vue';
|
|
5
5
|
import type { PaginationProps } from '@nuxt/ui/components/Pagination.vue';
|
|
6
6
|
import type { SelectProps } from '@nuxt/ui/components/Select.vue';
|
|
7
|
+
import type { ComputedRef } from 'vue';
|
|
8
|
+
import type { TableInternals } from '../composables/use-table-internals.js';
|
|
7
9
|
import type { TableLayout } from './utils.js';
|
|
10
|
+
export interface DataListTable {
|
|
11
|
+
schema: ComputedRef<{
|
|
12
|
+
tableKey: string;
|
|
13
|
+
}>;
|
|
14
|
+
__internals: TableInternals;
|
|
15
|
+
}
|
|
8
16
|
export type DataListDensity = 'compact' | 'default' | 'comfortable';
|
|
9
17
|
export type DataListControlSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
10
18
|
/** Controls whether a granular content part owns its table boundary. */
|
|
@@ -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>;
|
|
@@ -89,6 +88,15 @@ export interface TableSourceRequestContext<TRow extends GenericObject = GenericO
|
|
|
89
88
|
context: TContext;
|
|
90
89
|
facets?: TableGlobalFacetDescriptor<TableKnownFieldPath<TRow> | string>[];
|
|
91
90
|
}
|
|
91
|
+
export interface TableRemoteSourceRequest<TRow extends GenericObject = GenericObject, TSortKey extends string = TableSortKey<TRow>> {
|
|
92
|
+
pagination?: Exclude<TablePaginationState, {
|
|
93
|
+
mode: 'none';
|
|
94
|
+
}>;
|
|
95
|
+
sorting: TableSortingRule<TSortKey>[];
|
|
96
|
+
filters: TableResolvedFilterGroup<TableKnownFieldPath<TRow> | string>[];
|
|
97
|
+
search: TableSourceSearchRequest<TRow>;
|
|
98
|
+
facets?: TableGlobalFacetDescriptor<TableKnownFieldPath<TRow> | string>[];
|
|
99
|
+
}
|
|
92
100
|
export interface TableFacetsContext<TRow extends GenericObject = GenericObject, TContext extends GenericObject = GenericObject, TKey extends string = TableKnownFieldPath<TRow> | string> {
|
|
93
101
|
filters: TableResolvedFilterGroup<TKey>;
|
|
94
102
|
search: TableSourceSearchRequest<TRow>;
|
|
@@ -102,7 +110,7 @@ export interface TableClientSource<TRow extends GenericObject = GenericObject, T
|
|
|
102
110
|
export type TableRemoteFacetSource<TRow extends GenericObject = GenericObject, TContext extends GenericObject = GenericObject, TKey extends string = TableKnownFieldPath<TRow> | string> = true | ((ctx: TableFacetsContext<TRow, TContext, TKey>) => TableQueryDefinition<TableFacetExecutionResult<TKey>>);
|
|
103
111
|
export interface TableRemoteSource<TRow extends GenericObject = GenericObject, TContext extends GenericObject = GenericObject, TResult = TableSourceExecutionResult<TRow, TableKnownFieldPath<TRow> | string> | TableOffsetPageResult<TRow, TableKnownFieldPath<TRow> | string> | TableCursorPageResult<TRow, TableKnownFieldPath<TRow> | string>> {
|
|
104
112
|
mode: 'remote';
|
|
105
|
-
query: (
|
|
113
|
+
query: (request: TableRemoteSourceRequest<TRow>, context: TContext) => TableQueryDefinition<TResult>;
|
|
106
114
|
facets?: TableRemoteFacetSource<TRow, TContext>;
|
|
107
115
|
}
|
|
108
116
|
export type TableSource<TRow extends GenericObject = GenericObject, TContext extends GenericObject = GenericObject, TResult = TableSourceExecutionResult<TRow> | TRow[]> = TableClientSource<TRow, TContext, Extract<TResult, TableSourceExecutionResult<TRow> | TRow[]> extends never ? TableSourceExecutionResult<TRow> | TRow[] : Extract<TResult, TableSourceExecutionResult<TRow> | TRow[]>> | TableRemoteSource<TRow, TContext, Extract<TResult, TableSourceExecutionResult<TRow, TableKnownFieldPath<TRow> | string> | TableOffsetPageResult<TRow, TableKnownFieldPath<TRow> | string> | TableCursorPageResult<TRow, TableKnownFieldPath<TRow> | string>> extends never ? TableSourceExecutionResult<TRow, TableKnownFieldPath<TRow> | string> | TableOffsetPageResult<TRow, TableKnownFieldPath<TRow> | string> | TableCursorPageResult<TRow, TableKnownFieldPath<TRow> | string> : Extract<TResult, TableSourceExecutionResult<TRow, TableKnownFieldPath<TRow> | string> | TableOffsetPageResult<TRow, TableKnownFieldPath<TRow> | string> | TableCursorPageResult<TRow, TableKnownFieldPath<TRow> | string>>>;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { GenericObject, TableClientSource, TableCursorPageResult, TableGlobalFacetDescriptor, TableOffsetPageResult, TablePaginationState,
|
|
3
|
-
interface TableSourceRowsResult {
|
|
4
|
-
rows: readonly GenericObject[];
|
|
5
|
-
}
|
|
6
|
-
type TableSourceResult = readonly GenericObject[] | TableSourceRowsResult;
|
|
1
|
+
import type { QueryKey, UseQueryOptions } from '@tanstack/vue-query';
|
|
2
|
+
import type { GenericObject, TableClientSource, TableCursorPageResult, TableGlobalFacetDescriptor, TableOffsetPageResult, TablePaginationState, TableRemoteSource, TableRemoteSourceRequest, TableResolvedFilterGroup, TableRowsFromSourceResult, TableSourceExecutionResult, TableSortingRule } from '../../types/index.js';
|
|
7
3
|
type TableSourceRow<TResult> = TableRowsFromSourceResult<Awaited<TResult>> extends infer TRow ? TRow extends GenericObject ? TRow : GenericObject : GenericObject;
|
|
8
4
|
type ClientTableSourceResult<TResult> = TResult extends readonly GenericObject[] ? TableSourceRow<TResult>[] : TableSourceExecutionResult<TableSourceRow<TResult>>;
|
|
9
5
|
type RemoteTableSourceResult<TResult> = TResult extends {
|
|
@@ -26,16 +22,19 @@ interface TableSourceInferenceContext {
|
|
|
26
22
|
context: GenericObject;
|
|
27
23
|
facets?: TableGlobalFacetDescriptor<never>[];
|
|
28
24
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
25
|
+
interface TableSourceQueryDefinition {
|
|
26
|
+
queryKey: QueryKey;
|
|
27
|
+
}
|
|
28
|
+
type TableSourceQueryResult<TQuery> = TQuery extends {
|
|
29
|
+
queryFn: (...args: never[]) => infer TResult;
|
|
30
|
+
} ? Awaited<TResult> : TQuery extends UseQueryOptions<infer _TQueryFnData, infer _TError, infer TResult, infer _TQueryData, infer _TQueryKey> ? Awaited<TResult> : never;
|
|
31
|
+
interface ClientTableSourceInput<TQuery extends TableSourceQueryDefinition> {
|
|
33
32
|
mode?: 'client';
|
|
34
|
-
query: (context: TableSourceInferenceContext) =>
|
|
33
|
+
query: (context: TableSourceInferenceContext) => TQuery;
|
|
35
34
|
}
|
|
36
|
-
interface RemoteTableSourceInput<
|
|
35
|
+
interface RemoteTableSourceInput<TQuery extends TableSourceQueryDefinition> {
|
|
37
36
|
mode: 'remote';
|
|
38
|
-
query: (context:
|
|
37
|
+
query: (request: TableRemoteSourceRequest<GenericObject, string>, context: GenericObject) => TQuery;
|
|
39
38
|
facets?: TableRemoteSource['facets'];
|
|
40
39
|
}
|
|
41
40
|
/**
|
|
@@ -55,6 +54,6 @@ interface RemoteTableSourceInput<TResult extends TableSourceRowsResult> {
|
|
|
55
54
|
* })
|
|
56
55
|
* ```
|
|
57
56
|
*/
|
|
58
|
-
export declare function tableSource<
|
|
59
|
-
export declare function tableSource<
|
|
57
|
+
export declare function tableSource<TQuery extends TableSourceQueryDefinition>(source: RemoteTableSourceInput<TQuery>): TableRemoteSource<TableSourceRow<TableSourceQueryResult<TQuery>>, GenericObject, RemoteTableSourceResult<TableSourceQueryResult<TQuery>>>;
|
|
58
|
+
export declare function tableSource<TQuery extends TableSourceQueryDefinition>(source: ClientTableSourceInput<TQuery>): TableClientSource<TableSourceRow<TableSourceQueryResult<TQuery>>, GenericObject, ClientTableSourceResult<TableSourceQueryResult<TQuery>>>;
|
|
60
59
|
export {};
|
|
@@ -13,7 +13,7 @@ export declare function executeClientFacets<TRow extends GenericObject = Generic
|
|
|
13
13
|
export declare function filterClientRows<TRow extends GenericObject>(params: {
|
|
14
14
|
rows: Iterable<TRow>;
|
|
15
15
|
filters: TableResolvedFilterGroup<string>;
|
|
16
|
-
search: TableSourceRequestContext
|
|
16
|
+
search: TableSourceRequestContext['search'];
|
|
17
17
|
}): TRow[];
|
|
18
18
|
export declare function sortClientRows<TRow extends GenericObject>(params: {
|
|
19
19
|
rows: Iterable<TRow>;
|
|
@@ -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";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsxImportSource vue */
|
|
2
2
|
import type { DropdownMenuItem } from '@nuxt/ui/components/DropdownMenu.vue';
|
|
3
|
-
import type
|
|
3
|
+
import { type VNodeChild } from 'vue';
|
|
4
4
|
import type { GenericObject } from '../../types/index.js';
|
|
5
5
|
import type { SchemaTableColumn, TableColumnRenderParams, TableRuntimeColumn, UseTableColumnsParams } from './types.js';
|
|
6
6
|
export declare function createSelectionColumn(options: {
|
|
@@ -55,7 +55,9 @@ export declare function createDataColumns(options: {
|
|
|
55
55
|
original: GenericObject;
|
|
56
56
|
index: number;
|
|
57
57
|
};
|
|
58
|
-
}) => import("vue
|
|
58
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
59
|
+
[key: string]: any;
|
|
60
|
+
}>;
|
|
59
61
|
enableHiding: boolean;
|
|
60
62
|
enablePinning: boolean;
|
|
61
63
|
enableResizing: boolean;
|
|
@@ -88,7 +90,9 @@ export declare function createDataColumns(options: {
|
|
|
88
90
|
original: GenericObject;
|
|
89
91
|
index: number;
|
|
90
92
|
};
|
|
91
|
-
}) => import("vue
|
|
93
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
94
|
+
[key: string]: any;
|
|
95
|
+
}>;
|
|
92
96
|
enableHiding: boolean;
|
|
93
97
|
enablePinning: boolean;
|
|
94
98
|
enableResizing: boolean;
|
|
@@ -134,7 +138,9 @@ export declare function createDataColumns(options: {
|
|
|
134
138
|
minSize: number;
|
|
135
139
|
size: number | undefined;
|
|
136
140
|
})[];
|
|
137
|
-
export declare function renderColumnCell(options: TableColumnRenderParams): import("vue
|
|
141
|
+
export declare function renderColumnCell(options: TableColumnRenderParams): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
142
|
+
[key: string]: any;
|
|
143
|
+
}>;
|
|
138
144
|
export declare function wrapEllipsisContent(options: {
|
|
139
145
|
column: SchemaTableColumn;
|
|
140
146
|
content: VNodeChild;
|
|
@@ -157,7 +163,9 @@ export declare function createRowActionsColumn(options: {
|
|
|
157
163
|
original: GenericObject;
|
|
158
164
|
index: number;
|
|
159
165
|
};
|
|
160
|
-
}) => import("vue
|
|
166
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
167
|
+
[key: string]: any;
|
|
168
|
+
}>;
|
|
161
169
|
enableHiding: boolean;
|
|
162
170
|
enablePinning: boolean;
|
|
163
171
|
enableResizing: boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx } from "vue/jsx-runtime";
|
|
2
|
+
import { h } from "vue";
|
|
2
3
|
import {
|
|
3
4
|
isArray,
|
|
4
5
|
isFunction,
|
|
@@ -258,7 +259,7 @@ export function createRowActionsColumn(options) {
|
|
|
258
259
|
row: row.original,
|
|
259
260
|
rowIndex: row.index
|
|
260
261
|
});
|
|
261
|
-
return
|
|
262
|
+
return h(TableRowScopeProvider, { scope }, { default: () => /* @__PURE__ */ jsx(TableRowActionsControl, {}) });
|
|
262
263
|
},
|
|
263
264
|
enableHiding: false,
|
|
264
265
|
enablePinning: true,
|
|
@@ -288,7 +289,7 @@ export function createRowActionsColumn(options) {
|
|
|
288
289
|
};
|
|
289
290
|
}
|
|
290
291
|
function wrapRowScope(options) {
|
|
291
|
-
return
|
|
292
|
+
return h(TableRowScopeProvider, { scope: options.scope }, { default: () => options.content });
|
|
292
293
|
}
|
|
293
294
|
function resolvePlainRenderContext(params) {
|
|
294
295
|
const contextSource = params.data.contextData.value;
|
|
@@ -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;
|