nuxt-ui-tools 1.0.1 → 1.2.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 +315 -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 +239 -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 +5 -0
- package/dist/runtime/dashboard/utils/options.js +18 -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 +65 -1
- package/dist/runtime/i18n/locales/fr.js +65 -1
- package/dist/runtime/i18n/types.d.ts +70 -0
- package/dist/runtime/shared/index.d.ts +2 -0
- package/dist/runtime/shared/styles/scrollbars.css +1 -1
- 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/shared/utils/remote-options.d.ts +10 -0
- package/dist/runtime/shared/utils/remote-options.js +6 -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/filters/shared/filter-option-list-end.d.vue.ts +11 -0
- package/dist/runtime/table/components/filters/shared/filter-option-list-end.vue +76 -0
- package/dist/runtime/table/components/filters/shared/filter-option-list-end.vue.d.ts +11 -0
- package/dist/runtime/table/components/filters/shared/filter-option-loading-list.d.vue.ts +3 -0
- package/dist/runtime/table/components/filters/shared/filter-option-loading-list.vue +2 -1
- package/dist/runtime/table/components/filters/shared/filter-option-loading-list.vue.d.ts +3 -0
- package/dist/runtime/table/components/filters/shared/filter-option-multiple-list.vue +1 -1
- package/dist/runtime/table/components/filters/shared/filter-option-picker-content.vue +13 -0
- package/dist/runtime/table/components/filters/shared/filter-option-single-list.d.vue.ts +2 -0
- package/dist/runtime/table/components/filters/shared/filter-option-single-list.vue +1 -1
- package/dist/runtime/table/components/filters/shared/filter-option-single-list.vue.d.ts +2 -0
- package/dist/runtime/table/components/filters/shared/filter-option-tree-content.d.vue.ts +3 -0
- package/dist/runtime/table/components/filters/shared/filter-option-tree-content.vue +2 -2
- package/dist/runtime/table/components/filters/shared/filter-option-tree-content.vue.d.ts +3 -0
- package/dist/runtime/table/components/filters/shared/filter-searchable-panel.vue +1 -0
- 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-option-filter-editor-state.d.ts +13 -1
- package/dist/runtime/table/composables/use-option-filter-editor-state.js +6 -2
- 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-filter-options.d.ts +11 -1
- package/dist/runtime/table/composables/use-table-filter-options.js +128 -17
- package/dist/runtime/table/composables/use-table-filter-selected-options.d.ts +20 -0
- package/dist/runtime/table/composables/use-table-filter-selected-options.js +99 -0
- package/dist/runtime/table/composables/use-table-filters.d.ts +5 -0
- package/dist/runtime/table/composables/use-table-filters.js +20 -1
- package/dist/runtime/table/composables/use-table-internals.d.ts +42 -27
- package/dist/runtime/table/composables/use-table-pagination.d.ts +2 -2
- package/dist/runtime/table/composables/use-table-remote-filter-options.d.ts +42 -0
- package/dist/runtime/table/composables/use-table-remote-filter-options.js +102 -0
- 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/filters.d.ts +42 -0
- package/dist/runtime/table/types/source.d.ts +9 -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/dist/runtime/table/utils/filters/options.d.ts +2 -0
- package/dist/runtime/table/utils/filters/options.js +1 -1
- package/dist/runtime/table/utils/prefetch.js +21 -1
- package/package.json +28 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--nut-scrollbar-size:11px;--nut-scrollbar-gap:3px;--nut-scrollbar-thumb:color-mix(in srgb,var(--ui-text,#1f1d1a) 18%,transparent);--nut-scrollbar-thumb-hover:color-mix(in srgb,var(--ui-text,#1f1d1a) 32%,transparent);--nut-scrollbar-thumb-active:color-mix(in srgb,var(--ui-text,#1f1d1a) 44%,transparent)}@supports
|
|
1
|
+
:root{--nut-scrollbar-size:11px;--nut-scrollbar-gap:3px;--nut-scrollbar-thumb:color-mix(in srgb,var(--ui-text,#1f1d1a) 18%,transparent);--nut-scrollbar-thumb-hover:color-mix(in srgb,var(--ui-text,#1f1d1a) 32%,transparent);--nut-scrollbar-thumb-active:color-mix(in srgb,var(--ui-text,#1f1d1a) 44%,transparent)}@supports (scrollbar-width:thin){*{scrollbar-color:transparent transparent;scrollbar-width:thin;transition:scrollbar-color .2s ease}:hover{scrollbar-color:var(--nut-scrollbar-thumb) transparent}}@supports not (scrollbar-width:thin){::-webkit-scrollbar{background:transparent;height:var(--nut-scrollbar-size);width:var(--nut-scrollbar-size)}::-webkit-scrollbar-corner,::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:var(--nut-scrollbar-gap) solid transparent;border-radius:999px}:hover::-webkit-scrollbar-thumb{background-color:var(--nut-scrollbar-thumb)}::-webkit-scrollbar-thumb:hover{background-color:var(--nut-scrollbar-thumb-hover)}::-webkit-scrollbar-thumb:active{background-color:var(--nut-scrollbar-thumb-active)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--nut-form-veil:rgba(31,29,26,.18)}.dark{--nut-form-veil:rgba(0,0,0,.45)}
|
|
1
|
+
:root{--nut-form-veil:rgba(31,29,26,.18)}.dark{--nut-form-veil:rgba(0,0,0,.45)}:where(:root){--nut-dash-s1:var(--ui-primary);--nut-dash-s2:var(--ui-color-neutral-400);--nut-dash-s3:var(--ui-secondary);--nut-dash-s4:color-mix(in oklab,var(--ui-primary) 20%,var(--ui-bg));--nut-dash-s5:var(--ui-warning);--nut-dash-s6:color-mix(in oklab,var(--ui-secondary) 35%,var(--ui-bg));--nut-dash-up:var(--ui-success);--nut-dash-up-mark:var(--nut-dash-up);--nut-dash-down:var(--ui-error);--nut-dash-muted:var(--ui-border-accented);--nut-dash-track:var(--ui-bg-elevated);--nut-dash-grid:var(--ui-border-muted);--nut-dash-axis:var(--ui-text-dimmed);--nut-dash-ref:var(--ui-text-dimmed);--nut-dash-ref-label:var(--ui-text-muted);--nut-dash-ghost:var(--ui-bg-accented);--nut-dash-ghost-shine:color-mix(in oklab,var(--ui-bg) 70%,transparent)}:where(.dark){--nut-dash-s2:var(--ui-color-neutral-500);--nut-dash-s4:color-mix(in oklab,var(--ui-primary) 30%,var(--ui-bg));--nut-dash-s6:color-mix(in oklab,var(--ui-secondary) 40%,var(--ui-bg))}@supports (color:oklch(from red l c h)){:where(:root){--nut-dash-s4:oklch(from var(--ui-primary) 0.88 calc(c * 0.45) h);--nut-dash-s6:oklch(from var(--ui-secondary) 0.8 calc(c * 0.55) h)}:where(.dark){--nut-dash-s4:oklch(from var(--ui-primary) 0.42 calc(c * 0.6) h);--nut-dash-s6:oklch(from var(--ui-secondary) 0.45 calc(c * 0.65) h)}}.nut-dash-chart{--vis-font-family:inherit;--vis-axis-tick-label-color:var(--nut-dash-axis);--vis-axis-tick-label-font-size:10px;--vis-axis-grid-color:var(--nut-dash-grid);--vis-axis-domain-color:var(--nut-dash-grid);--vis-crosshair-line-stroke-color:var(--ui-border-accented);--vis-crosshair-circle-stroke-color:var(--ui-bg);--vis-tooltip-background-color:var(--ui-bg);--vis-tooltip-border-color:var(--ui-border);--vis-tooltip-text-color:var(--ui-text);--vis-tooltip-padding:8px 10px;--vis-tooltip-border-radius:calc(var(--ui-radius)*1.5);--vis-tooltip-shadow-color:rgb(0 0 0/8%);--vis-plotline-label-font-size:10px}.nut-dash-chart--bars [data-vis-component] rect:hover{opacity:.8}.nut-dash-tip{display:flex;flex-direction:column;font-size:12px;gap:4px;min-width:9rem}.nut-dash-tip-title{color:var(--ui-text-muted);font-weight:500}.nut-dash-tip-row{align-items:center;display:flex;gap:6px}.nut-dash-tip-row i{border-radius:2px;height:8px;width:8px}.nut-dash-tip-row span{color:var(--ui-text-muted);flex:1}.nut-dash-tip-row b{font-variant-numeric:tabular-nums;font-weight:600}.nut-dash-ghost{background:var(--nut-dash-ghost)}.nut-dash-shimmer{overflow:hidden;position:relative}.nut-dash-shimmer:after{animation:nut-dash-shimmer 1.6s ease-in-out infinite;background:linear-gradient(100deg,transparent 25%,var(--nut-dash-ghost-shine) 50%,transparent 75%);content:"";inset:0;pointer-events:none;position:absolute;transform:translateX(-100%);will-change:transform}@keyframes nut-dash-shimmer{to{transform:translateX(100%)}}.nut-dash-enter{animation:nut-dash-enter .28s ease-out}@keyframes nut-dash-enter{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:none}}.nut-dash-progress{animation:nut-dash-progress 1.1s ease-in-out infinite}@keyframes nut-dash-progress{0%{transform:translateX(-100%)}to{transform:translateX(300%)}}@media (prefers-reduced-motion:reduce){.nut-dash-shimmer:after{display:none}.nut-dash-enter{animation:none}.nut-dash-progress{animation-duration:3s}}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { QueryFunction, QueryKey, UseQueryOptions } from '@tanstack/vue-query';
|
|
2
|
+
/**
|
|
3
|
+
* TanStack query definition accepted by runtime domains that own the `useQuery` call themselves
|
|
4
|
+
* (table sources, dashboard queries): an explicit `queryKey`, an optional `queryFn`, and any other
|
|
5
|
+
* query option.
|
|
6
|
+
*/
|
|
7
|
+
export type QueryDefinition<TData = unknown> = Omit<UseQueryOptions<TData>, 'queryFn'> & {
|
|
8
|
+
queryKey: QueryKey;
|
|
9
|
+
queryFn?: QueryFunction<TData, QueryKey, string | null>;
|
|
10
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Page envelope returned by an index-paginated remote option source.
|
|
3
|
+
*/
|
|
4
|
+
export interface RemoteOptionsPage<TOption> {
|
|
5
|
+
options: readonly TOption[];
|
|
6
|
+
hasMore: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Page envelope returned by a cursor-paginated remote option source.
|
|
10
|
+
*/
|
|
11
|
+
export interface RemoteCursorOptionsPage<TOption> {
|
|
12
|
+
options: readonly TOption[];
|
|
13
|
+
nextCursor: string | null;
|
|
14
|
+
}
|
|
15
|
+
export type RemoteOptionsResult<TOption> = RemoteOptionsPage<TOption> | RemoteCursorOptionsPage<TOption>;
|
|
16
|
+
/**
|
|
17
|
+
* Page requested from a remote option source. `cursor` is set for cursor pagination and `index`
|
|
18
|
+
* (1-based) for page pagination.
|
|
19
|
+
*/
|
|
20
|
+
export interface RemoteOptionsPageRequest {
|
|
21
|
+
index: number;
|
|
22
|
+
cursor: string | null;
|
|
23
|
+
size: number;
|
|
24
|
+
}
|
|
25
|
+
export interface RemoteOptionsPagination {
|
|
26
|
+
type: 'page' | 'cursor';
|
|
27
|
+
/** Page size forwarded to the source. */
|
|
28
|
+
size: number;
|
|
29
|
+
/** Distance from the list end that triggers the next page: pixels, or `'viewport'` for three viewport heights. Defaults to `'viewport'`. */
|
|
30
|
+
prefetchDistance?: number | 'viewport';
|
|
31
|
+
}
|
|
32
|
+
export interface RemoteOptionsSearch {
|
|
33
|
+
/** Debounce applied to typed search terms, in milliseconds. Defaults to 250. */
|
|
34
|
+
debounce?: number;
|
|
35
|
+
/** Minimum term length before a search request runs. Defaults to 0. */
|
|
36
|
+
minLength?: number;
|
|
37
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RemoteOptionsResult } from '../types/remote-options.js';
|
|
2
|
+
/** Position of a page in a remote option source: its 1-based index, and its cursor when paged by cursor. */
|
|
3
|
+
export interface RemoteOptionsPageParam {
|
|
4
|
+
index: number;
|
|
5
|
+
cursor: string | null;
|
|
6
|
+
}
|
|
7
|
+
/** First page of any remote option source. */
|
|
8
|
+
export declare const REMOTE_OPTIONS_FIRST_PAGE: RemoteOptionsPageParam;
|
|
9
|
+
/** Next page of a page- or cursor-paginated remote option source, or `undefined` at the end. */
|
|
10
|
+
export declare function resolveRemoteOptionsNextPage<TOption>(page: RemoteOptionsResult<TOption>, loadedPages: number): RemoteOptionsPageParam | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export const REMOTE_OPTIONS_FIRST_PAGE = { cursor: null, index: 1 };
|
|
2
|
+
export function resolveRemoteOptionsNextPage(page, loadedPages) {
|
|
3
|
+
if ("nextCursor" in page)
|
|
4
|
+
return page.nextCursor ? { cursor: page.nextCursor, index: loadedPages + 1 } : void 0;
|
|
5
|
+
return page.hasMore ? { cursor: null, index: loadedPages + 1 } : void 0;
|
|
6
|
+
}
|
|
@@ -12,12 +12,12 @@ type __VLS_Props = {
|
|
|
12
12
|
primaryIcon?: string;
|
|
13
13
|
};
|
|
14
14
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
-
primary: () => any;
|
|
16
15
|
previous: () => any;
|
|
16
|
+
primary: () => any;
|
|
17
17
|
export: () => any;
|
|
18
18
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
-
onPrimary?: (() => any) | undefined;
|
|
20
19
|
onPrevious?: (() => any) | undefined;
|
|
20
|
+
onPrimary?: (() => any) | undefined;
|
|
21
21
|
onExport?: (() => any) | undefined;
|
|
22
22
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
declare const _default: typeof __VLS_export;
|
|
@@ -12,12 +12,12 @@ type __VLS_Props = {
|
|
|
12
12
|
primaryIcon?: string;
|
|
13
13
|
};
|
|
14
14
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
-
primary: () => any;
|
|
16
15
|
previous: () => any;
|
|
16
|
+
primary: () => any;
|
|
17
17
|
export: () => any;
|
|
18
18
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
-
onPrimary?: (() => any) | undefined;
|
|
20
19
|
onPrevious?: (() => any) | undefined;
|
|
20
|
+
onPrimary?: (() => any) | undefined;
|
|
21
21
|
onExport?: (() => any) | undefined;
|
|
22
22
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
declare const _default: typeof __VLS_export;
|
|
@@ -65,8 +65,8 @@ declare function createSpreadsheetInternals<TSchema extends {
|
|
|
65
65
|
sourceValue: string;
|
|
66
66
|
}) => void;
|
|
67
67
|
queryRequests: ComputedRef<import("../types/index.js").SpreadsheetReferenceQueryRequest[]>;
|
|
68
|
-
referenceDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"
|
|
69
|
-
resolutionDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"
|
|
68
|
+
referenceDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"reference" | "column", string, string, unknown, unknown, import("../types/index.js").SpreadsheetOptionItem, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetFieldRulesInput<unknown> | undefined>[]>;
|
|
69
|
+
resolutionDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"reference" | "column", string, string, unknown, unknown, import("../types/index.js").SpreadsheetOptionItem, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetFieldRulesInput<unknown> | undefined>[]>;
|
|
70
70
|
resolutions: ComputedRef<import("../types/index.js").SpreadsheetReferenceResolution<unknown, unknown>[]>;
|
|
71
71
|
resolvedRows: ComputedRef<import("../types/index.js").SpreadsheetResolvedReferenceRow<import("../types/index.js").SpreadsheetRecord>[]>;
|
|
72
72
|
selectReference: (selection: {
|
|
@@ -98,8 +98,8 @@ declare function createSpreadsheetInternals<TSchema extends {
|
|
|
98
98
|
sourceValue: string;
|
|
99
99
|
}) => void;
|
|
100
100
|
queryRequests: ComputedRef<import("../types/index.js").SpreadsheetReferenceQueryRequest[]>;
|
|
101
|
-
referenceDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"
|
|
102
|
-
resolutionDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"
|
|
101
|
+
referenceDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"reference" | "column", string, string, unknown, unknown, import("../types/index.js").SpreadsheetOptionItem, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetFieldRulesInput<unknown> | undefined>[]>;
|
|
102
|
+
resolutionDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"reference" | "column", string, string, unknown, unknown, import("../types/index.js").SpreadsheetOptionItem, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetFieldRulesInput<unknown> | undefined>[]>;
|
|
103
103
|
resolutions: ComputedRef<import("../types/index.js").SpreadsheetReferenceResolution<unknown, unknown>[]>;
|
|
104
104
|
resolvedRows: ComputedRef<import("../types/index.js").SpreadsheetResolvedReferenceRow<import("../types/index.js").SpreadsheetRecord>[]>;
|
|
105
105
|
selectReference: (selection: {
|
|
@@ -163,7 +163,7 @@ declare function createSpreadsheetInternals<TSchema extends {
|
|
|
163
163
|
};
|
|
164
164
|
references: any[];
|
|
165
165
|
relations: readonly unknown[];
|
|
166
|
-
resolutions: readonly import("../types/index.js").SpreadsheetResolutionDefinition<"
|
|
166
|
+
resolutions: readonly import("../types/index.js").SpreadsheetResolutionDefinition<"reference" | "column", string, string, unknown, unknown, import("../types/index.js").SpreadsheetOptionItem, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetFieldRulesInput<unknown> | undefined>[];
|
|
167
167
|
review: {
|
|
168
168
|
[x: string]: unknown;
|
|
169
169
|
};
|
|
@@ -272,8 +272,8 @@ declare function useProvideSpreadsheetInternals(options: {
|
|
|
272
272
|
sourceValue: string;
|
|
273
273
|
}) => void;
|
|
274
274
|
queryRequests: ComputedRef<import("../types/index.js").SpreadsheetReferenceQueryRequest[]>;
|
|
275
|
-
referenceDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"
|
|
276
|
-
resolutionDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"
|
|
275
|
+
referenceDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"reference" | "column", string, string, unknown, unknown, import("../types/index.js").SpreadsheetOptionItem, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetFieldRulesInput<unknown> | undefined>[]>;
|
|
276
|
+
resolutionDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"reference" | "column", string, string, unknown, unknown, import("../types/index.js").SpreadsheetOptionItem, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetFieldRulesInput<unknown> | undefined>[]>;
|
|
277
277
|
resolutions: ComputedRef<import("../types/index.js").SpreadsheetReferenceResolution<unknown, unknown>[]>;
|
|
278
278
|
resolvedRows: ComputedRef<import("../types/index.js").SpreadsheetResolvedReferenceRow<import("../types/index.js").SpreadsheetRecord>[]>;
|
|
279
279
|
selectReference: (selection: {
|
|
@@ -305,8 +305,8 @@ declare function useProvideSpreadsheetInternals(options: {
|
|
|
305
305
|
sourceValue: string;
|
|
306
306
|
}) => void;
|
|
307
307
|
queryRequests: ComputedRef<import("../types/index.js").SpreadsheetReferenceQueryRequest[]>;
|
|
308
|
-
referenceDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"
|
|
309
|
-
resolutionDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"
|
|
308
|
+
referenceDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"reference" | "column", string, string, unknown, unknown, import("../types/index.js").SpreadsheetOptionItem, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetFieldRulesInput<unknown> | undefined>[]>;
|
|
309
|
+
resolutionDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"reference" | "column", string, string, unknown, unknown, import("../types/index.js").SpreadsheetOptionItem, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetFieldRulesInput<unknown> | undefined>[]>;
|
|
310
310
|
resolutions: ComputedRef<import("../types/index.js").SpreadsheetReferenceResolution<unknown, unknown>[]>;
|
|
311
311
|
resolvedRows: ComputedRef<import("../types/index.js").SpreadsheetResolvedReferenceRow<import("../types/index.js").SpreadsheetRecord>[]>;
|
|
312
312
|
selectReference: (selection: {
|
|
@@ -372,7 +372,7 @@ declare function useProvideSpreadsheetInternals(options: {
|
|
|
372
372
|
};
|
|
373
373
|
references: any[];
|
|
374
374
|
relations: readonly unknown[];
|
|
375
|
-
resolutions: readonly import("../types/index.js").SpreadsheetResolutionDefinition<"
|
|
375
|
+
resolutions: readonly import("../types/index.js").SpreadsheetResolutionDefinition<"reference" | "column", string, string, unknown, unknown, import("../types/index.js").SpreadsheetOptionItem, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetFieldRulesInput<unknown> | undefined>[];
|
|
376
376
|
review: {
|
|
377
377
|
[x: string]: unknown;
|
|
378
378
|
};
|
|
@@ -474,8 +474,8 @@ declare function useSpreadsheetInternals(): {
|
|
|
474
474
|
sourceValue: string;
|
|
475
475
|
}) => void;
|
|
476
476
|
queryRequests: ComputedRef<import("../types/index.js").SpreadsheetReferenceQueryRequest[]>;
|
|
477
|
-
referenceDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"
|
|
478
|
-
resolutionDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"
|
|
477
|
+
referenceDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"reference" | "column", string, string, unknown, unknown, import("../types/index.js").SpreadsheetOptionItem, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetFieldRulesInput<unknown> | undefined>[]>;
|
|
478
|
+
resolutionDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"reference" | "column", string, string, unknown, unknown, import("../types/index.js").SpreadsheetOptionItem, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetFieldRulesInput<unknown> | undefined>[]>;
|
|
479
479
|
resolutions: ComputedRef<import("../types/index.js").SpreadsheetReferenceResolution<unknown, unknown>[]>;
|
|
480
480
|
resolvedRows: ComputedRef<import("../types/index.js").SpreadsheetResolvedReferenceRow<import("../types/index.js").SpreadsheetRecord>[]>;
|
|
481
481
|
selectReference: (selection: {
|
|
@@ -507,8 +507,8 @@ declare function useSpreadsheetInternals(): {
|
|
|
507
507
|
sourceValue: string;
|
|
508
508
|
}) => void;
|
|
509
509
|
queryRequests: ComputedRef<import("../types/index.js").SpreadsheetReferenceQueryRequest[]>;
|
|
510
|
-
referenceDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"
|
|
511
|
-
resolutionDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"
|
|
510
|
+
referenceDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"reference" | "column", string, string, unknown, unknown, import("../types/index.js").SpreadsheetOptionItem, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetFieldRulesInput<unknown> | undefined>[]>;
|
|
511
|
+
resolutionDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"reference" | "column", string, string, unknown, unknown, import("../types/index.js").SpreadsheetOptionItem, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetFieldRulesInput<unknown> | undefined>[]>;
|
|
512
512
|
resolutions: ComputedRef<import("../types/index.js").SpreadsheetReferenceResolution<unknown, unknown>[]>;
|
|
513
513
|
resolvedRows: ComputedRef<import("../types/index.js").SpreadsheetResolvedReferenceRow<import("../types/index.js").SpreadsheetRecord>[]>;
|
|
514
514
|
selectReference: (selection: {
|
|
@@ -574,7 +574,7 @@ declare function useSpreadsheetInternals(): {
|
|
|
574
574
|
};
|
|
575
575
|
references: any[];
|
|
576
576
|
relations: readonly unknown[];
|
|
577
|
-
resolutions: readonly import("../types/index.js").SpreadsheetResolutionDefinition<"
|
|
577
|
+
resolutions: readonly import("../types/index.js").SpreadsheetResolutionDefinition<"reference" | "column", string, string, unknown, unknown, import("../types/index.js").SpreadsheetOptionItem, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetRecord, import("../types/index.js").SpreadsheetFieldRulesInput<unknown> | undefined>[];
|
|
578
578
|
review: {
|
|
579
579
|
[x: string]: unknown;
|
|
580
580
|
};
|
|
@@ -15,8 +15,8 @@ export declare function useSpreadsheetResolutions(params: UseSpreadsheetResoluti
|
|
|
15
15
|
sourceValue: string;
|
|
16
16
|
}) => void;
|
|
17
17
|
queryRequests: ComputedRef<import("../types/index.js").SpreadsheetReferenceQueryRequest[]>;
|
|
18
|
-
referenceDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"
|
|
19
|
-
resolutionDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"
|
|
18
|
+
referenceDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"reference" | "column", string, string, unknown, unknown, import("../types/index.js").SpreadsheetOptionItem, SpreadsheetRecord, SpreadsheetRecord, import("../types/index.js").SpreadsheetFieldRulesInput<unknown> | undefined>[]>;
|
|
19
|
+
resolutionDefinitions: ComputedRef<readonly import("../types/index.js").SpreadsheetResolutionDefinition<"reference" | "column", string, string, unknown, unknown, import("../types/index.js").SpreadsheetOptionItem, SpreadsheetRecord, SpreadsheetRecord, import("../types/index.js").SpreadsheetFieldRulesInput<unknown> | undefined>[]>;
|
|
20
20
|
resolutions: ComputedRef<SpreadsheetReferenceResolution<unknown, unknown>[]>;
|
|
21
21
|
resolvedRows: ComputedRef<import("../types/index.js").SpreadsheetResolvedReferenceRow<SpreadsheetRecord>[]>;
|
|
22
22
|
selectReference: (selection: {
|
|
@@ -45,7 +45,7 @@ export declare function normalizeSpreadsheetSchema<TSchema extends {
|
|
|
45
45
|
};
|
|
46
46
|
references: any[];
|
|
47
47
|
relations: readonly unknown[];
|
|
48
|
-
resolutions: readonly SpreadsheetResolutionDefinition<"
|
|
48
|
+
resolutions: readonly SpreadsheetResolutionDefinition<"reference" | "column", string, string, unknown, unknown, import("../types/index.js").SpreadsheetOptionItem, SpreadsheetRecord, SpreadsheetRecord, import("../types/index.js").SpreadsheetFieldRulesInput<unknown> | undefined>[];
|
|
49
49
|
review: {
|
|
50
50
|
[x: string]: unknown;
|
|
51
51
|
};
|
|
@@ -5,5 +5,5 @@ export declare function collectSpreadsheetReferenceSources(references: readonly
|
|
|
5
5
|
rowIndexes: number[];
|
|
6
6
|
value: string;
|
|
7
7
|
}[];
|
|
8
|
-
reference: import("../../types/index.js").SpreadsheetResolutionDefinition<"
|
|
8
|
+
reference: import("../../types/index.js").SpreadsheetResolutionDefinition<"reference" | "column", string, string, unknown, unknown, import("../../types/index.js").SpreadsheetOptionItem, SpreadsheetRecord, SpreadsheetRecord, import("../../types/index.js").SpreadsheetFieldRulesInput<unknown> | undefined>;
|
|
9
9
|
}[];
|
|
@@ -71,8 +71,8 @@ type __VLS_Slots = {} & {
|
|
|
71
71
|
};
|
|
72
72
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
73
73
|
transition: boolean;
|
|
74
|
-
fit: DataListContentFit;
|
|
75
74
|
surface: DataListContentSurface;
|
|
75
|
+
fit: DataListContentFit;
|
|
76
76
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
77
77
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
78
78
|
declare const _default: typeof __VLS_export;
|
|
@@ -71,8 +71,8 @@ type __VLS_Slots = {} & {
|
|
|
71
71
|
};
|
|
72
72
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
73
73
|
transition: boolean;
|
|
74
|
-
fit: DataListContentFit;
|
|
75
74
|
surface: DataListContentSurface;
|
|
75
|
+
fit: DataListContentFit;
|
|
76
76
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
77
77
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
78
78
|
declare const _default: typeof __VLS_export;
|
|
@@ -17,8 +17,8 @@ type __VLS_Slots = {} & {
|
|
|
17
17
|
default?: (props: typeof __VLS_1) => any;
|
|
18
18
|
};
|
|
19
19
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
20
|
-
mobile: boolean;
|
|
21
20
|
order: TableLayout[];
|
|
21
|
+
mobile: boolean;
|
|
22
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
|
@@ -17,8 +17,8 @@ type __VLS_Slots = {} & {
|
|
|
17
17
|
default?: (props: typeof __VLS_1) => any;
|
|
18
18
|
};
|
|
19
19
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
20
|
-
mobile: boolean;
|
|
21
20
|
order: TableLayout[];
|
|
21
|
+
mobile: boolean;
|
|
22
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
|
@@ -7,10 +7,10 @@ type __VLS_Props = {
|
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
selectKey: (key: string) => any;
|
|
10
|
-
selectDirection: (direction: "
|
|
10
|
+
selectDirection: (direction: "asc" | "desc") => any;
|
|
11
11
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
12
|
onSelectKey?: ((key: string) => any) | undefined;
|
|
13
|
-
onSelectDirection?: ((direction: "
|
|
13
|
+
onSelectDirection?: ((direction: "asc" | "desc") => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
15
|
compact: boolean;
|
|
16
16
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -7,10 +7,10 @@ type __VLS_Props = {
|
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
9
|
selectKey: (key: string) => any;
|
|
10
|
-
selectDirection: (direction: "
|
|
10
|
+
selectDirection: (direction: "asc" | "desc") => any;
|
|
11
11
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
12
|
onSelectKey?: ((key: string) => any) | undefined;
|
|
13
|
-
onSelectDirection?: ((direction: "
|
|
13
|
+
onSelectDirection?: ((direction: "asc" | "desc") => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
15
|
compact: boolean;
|
|
16
16
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -15,11 +15,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
15
15
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
16
|
onSelect?: ((value: TableFilterOperator) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
|
-
variant: "default" | "compact";
|
|
19
18
|
items: {
|
|
20
19
|
label: string;
|
|
21
20
|
value: TableFilterOperator;
|
|
22
21
|
}[];
|
|
22
|
+
variant: "default" | "compact";
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
|
25
25
|
export default _default;
|
|
@@ -15,11 +15,11 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
15
15
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
16
|
onSelect?: ((value: TableFilterOperator) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
|
-
variant: "default" | "compact";
|
|
19
18
|
items: {
|
|
20
19
|
label: string;
|
|
21
20
|
value: TableFilterOperator;
|
|
22
21
|
}[];
|
|
22
|
+
variant: "default" | "compact";
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
|
25
25
|
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { useTableFilterOptions } from '../../../composables/use-table-filter-options.js';
|
|
2
|
+
import type { DataListControlSize, DataListFilterEditorUi } from '../../../types/index.js';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
remote: ReturnType<typeof useTableFilterOptions>['remote'];
|
|
5
|
+
indicator: 'checkbox' | 'radio';
|
|
6
|
+
size?: DataListControlSize;
|
|
7
|
+
ui?: DataListFilterEditorUi;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useEventListener } from "@vueuse/core";
|
|
3
|
+
import { nextTick, shallowRef, watch } from "vue";
|
|
4
|
+
import { useUiToolsLocale } from "#ui-tools/i18n";
|
|
5
|
+
import FilterOptionLoadingList from "./filter-option-loading-list.vue";
|
|
6
|
+
const PREFETCH_VIEWPORTS = 3;
|
|
7
|
+
const props = defineProps({
|
|
8
|
+
remote: { type: null, required: true },
|
|
9
|
+
indicator: { type: String, required: true },
|
|
10
|
+
size: { type: String, required: false },
|
|
11
|
+
ui: { type: Object, required: false }
|
|
12
|
+
});
|
|
13
|
+
const { t } = useUiToolsLocale();
|
|
14
|
+
const sentinel = shallowRef(null);
|
|
15
|
+
const viewport = shallowRef(null);
|
|
16
|
+
watch(sentinel, (element) => {
|
|
17
|
+
viewport.value = findScrollContainer(element);
|
|
18
|
+
});
|
|
19
|
+
useEventListener(viewport, "scroll", loadAhead, { passive: true });
|
|
20
|
+
watch(
|
|
21
|
+
() => [props.remote.hasMore.value, props.remote.loadingMore.value, viewport.value],
|
|
22
|
+
async () => {
|
|
23
|
+
await nextTick();
|
|
24
|
+
loadAhead();
|
|
25
|
+
},
|
|
26
|
+
{ immediate: true }
|
|
27
|
+
);
|
|
28
|
+
function loadAhead() {
|
|
29
|
+
const element = viewport.value;
|
|
30
|
+
const { failed, hasMore, loadingMore, prefetchDistance } = props.remote;
|
|
31
|
+
if (!element || element.clientHeight === 0) return;
|
|
32
|
+
if (!hasMore.value || loadingMore.value || failed.value) return;
|
|
33
|
+
const distance = prefetchDistance.value;
|
|
34
|
+
const threshold = distance === "viewport" ? element.clientHeight * PREFETCH_VIEWPORTS : Math.max(0, distance);
|
|
35
|
+
if (element.scrollHeight - element.scrollTop - element.clientHeight <= threshold) {
|
|
36
|
+
props.remote.loadMore();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function findScrollContainer(element) {
|
|
40
|
+
const marked = element?.closest("[data-filter-option-scroll]");
|
|
41
|
+
if (marked instanceof HTMLElement) return marked;
|
|
42
|
+
for (let current = element?.parentElement; current; current = current.parentElement) {
|
|
43
|
+
if (/(auto|scroll)/.test(getComputedStyle(current).overflowY)) return current;
|
|
44
|
+
}
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
</script>
|
|
48
|
+
|
|
49
|
+
<template>
|
|
50
|
+
<div data-filter-option-list-end>
|
|
51
|
+
<FilterOptionLoadingList
|
|
52
|
+
v-if="remote.loadingMore.value"
|
|
53
|
+
:count="3"
|
|
54
|
+
:indicator="indicator"
|
|
55
|
+
:size="size"
|
|
56
|
+
:ui="ui"
|
|
57
|
+
data-filter-option-loading-more
|
|
58
|
+
/>
|
|
59
|
+
<div
|
|
60
|
+
v-else-if="remote.failed.value"
|
|
61
|
+
class="flex items-center justify-between gap-2 px-2 py-1.5 text-xs text-error"
|
|
62
|
+
data-filter-option-error
|
|
63
|
+
>
|
|
64
|
+
<span class="truncate">{{ t("table.filters.options.loadError") }}</span>
|
|
65
|
+
<button
|
|
66
|
+
type="button"
|
|
67
|
+
class="shrink-0 font-medium underline-offset-2 hover:underline focus-visible:underline focus-visible:outline-none"
|
|
68
|
+
data-filter-option-retry
|
|
69
|
+
@click="remote.retry()"
|
|
70
|
+
>
|
|
71
|
+
{{ t("table.filters.options.retry") }}
|
|
72
|
+
</button>
|
|
73
|
+
</div>
|
|
74
|
+
<span ref="sentinel" aria-hidden="true" class="block h-px w-full" />
|
|
75
|
+
</div>
|
|
76
|
+
</template>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { useTableFilterOptions } from '../../../composables/use-table-filter-options.js';
|
|
2
|
+
import type { DataListControlSize, DataListFilterEditorUi } from '../../../types/index.js';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
remote: ReturnType<typeof useTableFilterOptions>['remote'];
|
|
5
|
+
indicator: 'checkbox' | 'radio';
|
|
6
|
+
size?: DataListControlSize;
|
|
7
|
+
ui?: DataListFilterEditorUi;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -2,9 +2,12 @@ import type { DataListControlSize, DataListFilterEditorUi } from '../../../types
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
size?: DataListControlSize;
|
|
4
4
|
indicator?: 'checkbox' | 'radio';
|
|
5
|
+
/** Placeholder rows. */
|
|
6
|
+
count?: number;
|
|
5
7
|
ui?: DataListFilterEditorUi;
|
|
6
8
|
};
|
|
7
9
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
|
+
count: number;
|
|
8
11
|
indicator: "checkbox" | "radio";
|
|
9
12
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
13
|
declare const _default: typeof __VLS_export;
|
|
@@ -6,6 +6,7 @@ import { mergeDataListUiClass, resolveFilterEditorSizeClasses } from "../../../u
|
|
|
6
6
|
const props = defineProps({
|
|
7
7
|
size: { type: String, required: false },
|
|
8
8
|
indicator: { type: String, required: false, default: "radio" },
|
|
9
|
+
count: { type: Number, required: false, default: 5 },
|
|
9
10
|
ui: { type: Object, required: false }
|
|
10
11
|
});
|
|
11
12
|
const dataListUi = useDataListUi();
|
|
@@ -18,7 +19,7 @@ const sizeClasses = computed(() => resolveFilterEditorSizeClasses(resolvedSize.v
|
|
|
18
19
|
<template>
|
|
19
20
|
<div :class="mergeDataListUiClass('grid gap-0.5', void 0, ui?.list)">
|
|
20
21
|
<div
|
|
21
|
-
v-for="index in
|
|
22
|
+
v-for="index in props.count"
|
|
22
23
|
:key="index"
|
|
23
24
|
:class="
|
|
24
25
|
mergeDataListUiClass(
|
|
@@ -2,9 +2,12 @@ import type { DataListControlSize, DataListFilterEditorUi } from '../../../types
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
size?: DataListControlSize;
|
|
4
4
|
indicator?: 'checkbox' | 'radio';
|
|
5
|
+
/** Placeholder rows. */
|
|
6
|
+
count?: number;
|
|
5
7
|
ui?: DataListFilterEditorUi;
|
|
6
8
|
};
|
|
7
9
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
|
+
count: number;
|
|
8
11
|
indicator: "checkbox" | "radio";
|
|
9
12
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
13
|
declare const _default: typeof __VLS_export;
|
|
@@ -100,7 +100,7 @@ const geometry = computed(() => resolveDataListControlGeometry(size.value));
|
|
|
100
100
|
</button>
|
|
101
101
|
|
|
102
102
|
<USkeleton
|
|
103
|
-
v-if="props.showCounts && props.countLoading"
|
|
103
|
+
v-if="props.showCounts && (props.countLoading || entry.count == null)"
|
|
104
104
|
:class="[sizeClasses.skeletonCount, 'shrink-0 rounded-full']"
|
|
105
105
|
/>
|
|
106
106
|
<span
|