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
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
import type { ComputedRef } from 'vue';
|
|
2
1
|
import type { UiToolsLocale, UiToolsMessages } from '#ui-tools/i18n';
|
|
3
|
-
import type {
|
|
4
|
-
import type { DataListControlSize, DataListDensity, DataListUiConfig } from '../types/index.js';
|
|
5
|
-
interface DataListTable {
|
|
6
|
-
schema: ComputedRef<{
|
|
7
|
-
tableKey: string;
|
|
8
|
-
}>;
|
|
9
|
-
__internals: TableInternals;
|
|
10
|
-
}
|
|
2
|
+
import type { DataListControlSize, DataListDensity, DataListTable, DataListUiConfig } from '../types/index.js';
|
|
11
3
|
type __VLS_Props = {
|
|
12
4
|
table: DataListTable;
|
|
13
5
|
title?: string;
|
|
@@ -27,10 +19,7 @@ declare var __VLS_15: {}, __VLS_18: {}, __VLS_21: {
|
|
|
27
19
|
layout: import("../types/index.js").TableLayout;
|
|
28
20
|
}, __VLS_33: {
|
|
29
21
|
layout: import("../types/index.js").TableLayout;
|
|
30
|
-
}, __VLS_36: {
|
|
31
|
-
error: {};
|
|
32
|
-
retry: () => void;
|
|
33
|
-
}, __VLS_39: {
|
|
22
|
+
}, __VLS_36: any, __VLS_39: {
|
|
34
23
|
loadedCount: number;
|
|
35
24
|
}, __VLS_42: {
|
|
36
25
|
error: {};
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
import type { ComputedRef } from 'vue';
|
|
2
1
|
import type { UiToolsLocale, UiToolsMessages } from '#ui-tools/i18n';
|
|
3
|
-
import type {
|
|
4
|
-
import type { DataListControlSize, DataListDensity, DataListUiConfig } from '../types/index.js';
|
|
5
|
-
interface DataListTable {
|
|
6
|
-
schema: ComputedRef<{
|
|
7
|
-
tableKey: string;
|
|
8
|
-
}>;
|
|
9
|
-
__internals: TableInternals;
|
|
10
|
-
}
|
|
2
|
+
import type { DataListControlSize, DataListDensity, DataListTable, DataListUiConfig } from '../types/index.js';
|
|
11
3
|
type __VLS_Props = {
|
|
12
4
|
table: DataListTable;
|
|
13
5
|
title?: string;
|
|
@@ -27,10 +19,7 @@ declare var __VLS_15: {}, __VLS_18: {}, __VLS_21: {
|
|
|
27
19
|
layout: import("../types/index.js").TableLayout;
|
|
28
20
|
}, __VLS_33: {
|
|
29
21
|
layout: import("../types/index.js").TableLayout;
|
|
30
|
-
}, __VLS_36: {
|
|
31
|
-
error: {};
|
|
32
|
-
retry: () => void;
|
|
33
|
-
}, __VLS_39: {
|
|
22
|
+
}, __VLS_36: any, __VLS_39: {
|
|
34
23
|
loadedCount: number;
|
|
35
24
|
}, __VLS_42: {
|
|
36
25
|
error: {};
|
|
@@ -9,6 +9,7 @@ import { computed } from "vue";
|
|
|
9
9
|
import { VueDraggable } from "vue-draggable-plus";
|
|
10
10
|
import { useUiToolsLocale } from "#ui-tools/i18n";
|
|
11
11
|
import { isNumber } from "../../../shared/utils/predicate";
|
|
12
|
+
import { useDataListBreakpoint } from "../../composables/use-data-list-breakpoint";
|
|
12
13
|
import { useDataListUi } from "../../composables/use-data-list-ui";
|
|
13
14
|
import { useTableInternals } from "../../composables/use-table-internals";
|
|
14
15
|
import {
|
|
@@ -24,6 +25,7 @@ const props = defineProps({
|
|
|
24
25
|
});
|
|
25
26
|
const internals = useTableInternals();
|
|
26
27
|
const dataListUi = useDataListUi();
|
|
28
|
+
const { isMobile } = useDataListBreakpoint();
|
|
27
29
|
const { t } = useUiToolsLocale();
|
|
28
30
|
const ui = computed(() => ({
|
|
29
31
|
...dataListUi.ui.value.columnPanel?.ui,
|
|
@@ -41,15 +43,16 @@ const triggerProps = computed(
|
|
|
41
43
|
{
|
|
42
44
|
color: "neutral",
|
|
43
45
|
icon: "i-lucide-layers",
|
|
44
|
-
label: t("table.controls.view"),
|
|
46
|
+
label: isMobile.value ? void 0 : t("table.controls.view"),
|
|
45
47
|
size: resolvedSize.value,
|
|
48
|
+
square: isMobile.value,
|
|
46
49
|
variant: "outline"
|
|
47
50
|
},
|
|
48
51
|
controlProps.value.trigger
|
|
49
52
|
)
|
|
50
53
|
);
|
|
51
54
|
const countProps = computed(
|
|
52
|
-
() => controlProps.value.count === false ? null : controlProps.value.count ? mergeDataListProps(
|
|
55
|
+
() => isMobile.value || controlProps.value.count === false ? null : controlProps.value.count ? mergeDataListProps(
|
|
53
56
|
{ color: "neutral", size: resolvedSize.value, variant: "subtle" },
|
|
54
57
|
controlProps.value.count
|
|
55
58
|
) : null
|
|
@@ -159,6 +162,8 @@ function toggle() {
|
|
|
159
162
|
>
|
|
160
163
|
<UButton
|
|
161
164
|
v-bind="triggerProps"
|
|
165
|
+
:aria-label="t('table.controls.view')"
|
|
166
|
+
:title="t('table.controls.view')"
|
|
162
167
|
:ui="{ base: mergeDataListUiClass('nut-dl-colbtn', void 0, ui.trigger) }"
|
|
163
168
|
>
|
|
164
169
|
<template v-if="countProps" #trailing>
|
|
@@ -63,11 +63,8 @@ const CHIP_ACTIVE = "nut-dl-chip--active border-primary/25 bg-primary/10 text-[v
|
|
|
63
63
|
class="nut-dl-skeleton inline-block h-2.5 w-4 rounded"
|
|
64
64
|
aria-hidden="true"
|
|
65
65
|
/>
|
|
66
|
-
<small
|
|
67
|
-
|
|
68
|
-
class="nut-dl-chip__count text-[11px] text-dimmed tabular-nums"
|
|
69
|
-
>
|
|
70
|
-
{{ entry.count }}
|
|
66
|
+
<small v-else-if="showCounts" class="nut-dl-chip__count text-[11px] text-dimmed tabular-nums">
|
|
67
|
+
{{ entry.count ?? 0 }}
|
|
71
68
|
</small>
|
|
72
69
|
</button>
|
|
73
70
|
</div>
|
|
@@ -141,7 +141,7 @@ function isPrimitiveValue(value) {
|
|
|
141
141
|
:entries="chipEntries"
|
|
142
142
|
:loading="state.optionSource.isLoading.value"
|
|
143
143
|
:count-loading="state.optionSource.isCountLoading.value"
|
|
144
|
-
:show-counts="state.
|
|
144
|
+
:show-counts="state.optionSource.showCounts.value"
|
|
145
145
|
:ui="ui"
|
|
146
146
|
@toggle="state.toggleValue"
|
|
147
147
|
/>
|
|
@@ -9,7 +9,7 @@ type __VLS_Props = {
|
|
|
9
9
|
declare function open(): void;
|
|
10
10
|
declare function close(): void;
|
|
11
11
|
declare function toggle(): void;
|
|
12
|
-
declare var
|
|
12
|
+
declare var __VLS_9: {
|
|
13
13
|
open: typeof open;
|
|
14
14
|
close: typeof close;
|
|
15
15
|
toggle: typeof toggle;
|
|
@@ -22,7 +22,7 @@ declare var __VLS_10: {
|
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
type __VLS_Slots = {} & {
|
|
25
|
-
trigger?: (props: typeof
|
|
25
|
+
trigger?: (props: typeof __VLS_9) => any;
|
|
26
26
|
};
|
|
27
27
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
28
|
select: (key: string) => any;
|
|
@@ -156,16 +156,17 @@ function toggle() {
|
|
|
156
156
|
</script>
|
|
157
157
|
|
|
158
158
|
<template>
|
|
159
|
-
<
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
159
|
+
<div class="contents">
|
|
160
|
+
<UPopover
|
|
161
|
+
:open="isOpen"
|
|
162
|
+
mode="click"
|
|
163
|
+
:content="{
|
|
163
164
|
side: 'bottom',
|
|
164
165
|
align: 'start',
|
|
165
166
|
sideOffset: 8,
|
|
166
167
|
onFocusOutside: handleFocusOutside
|
|
167
168
|
}"
|
|
168
|
-
|
|
169
|
+
:ui="{
|
|
169
170
|
content: resolveDataListPopoverContentClass(
|
|
170
171
|
'fit',
|
|
171
172
|
mergeDataListUiClass(
|
|
@@ -175,32 +176,32 @@ function toggle() {
|
|
|
175
176
|
)
|
|
176
177
|
)
|
|
177
178
|
}"
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
179
|
+
@update:open="handleOpenChange"
|
|
180
|
+
>
|
|
181
|
+
<slot
|
|
182
|
+
v-if="$slots.trigger"
|
|
183
|
+
name="trigger"
|
|
184
|
+
:open="open"
|
|
185
|
+
:close="close"
|
|
186
|
+
:toggle="toggle"
|
|
187
|
+
:open-state="isOpen"
|
|
188
|
+
:stage="stage"
|
|
189
|
+
:definition="selectedDefinition"
|
|
190
|
+
:trigger-props="{
|
|
190
191
|
type: 'button',
|
|
191
192
|
'aria-expanded': isOpen
|
|
192
193
|
}"
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
194
|
+
/>
|
|
195
|
+
<UButton
|
|
196
|
+
v-else
|
|
197
|
+
v-bind="triggerProps"
|
|
198
|
+
:icon="
|
|
198
199
|
selectedDefinition ? dataListUi.ui.value.filterTags?.props?.icon === false ? void 0 : resolveFilterTriggerIcon(selectedDefinition) : 'i-lucide-plus'
|
|
199
200
|
"
|
|
200
|
-
|
|
201
|
+
:label="
|
|
201
202
|
selectedDefinition ? getLabel(selectedDefinition) : triggerProps.label ?? t('table.controls.addFilter')
|
|
202
203
|
"
|
|
203
|
-
|
|
204
|
+
:ui="{
|
|
204
205
|
base: mergeDataListUiClass(
|
|
205
206
|
`nut-dl-tag nut-dl-tag--add shrink-0 ${selectedDefinition ? '' : 'border border-dashed border-[var(--ui-border-accented)] text-muted hover:text-default hover:border-[var(--ui-text-dimmed)]'}`,
|
|
206
207
|
void 0,
|
|
@@ -208,118 +209,119 @@ function toggle() {
|
|
|
208
209
|
),
|
|
209
210
|
leadingIcon: 'size-[13px]'
|
|
210
211
|
}"
|
|
211
|
-
|
|
212
|
+
/>
|
|
212
213
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
>
|
|
219
|
-
<div
|
|
220
|
-
v-if="stage === 'picker'"
|
|
221
|
-
:class="mergeDataListUiClass(sizeClasses.editor, void 0, ui?.panel)"
|
|
214
|
+
<template #content>
|
|
215
|
+
<FilterStageTransition
|
|
216
|
+
:stage-key="`${stage}:${selectedKey ?? ''}:${pendingOperator ?? ''}`"
|
|
217
|
+
:direction="stageDirection"
|
|
218
|
+
@settled="stageTransitioning = false"
|
|
222
219
|
>
|
|
223
220
|
<div
|
|
224
|
-
v-if="
|
|
225
|
-
:class="
|
|
221
|
+
v-if="stage === 'picker'"
|
|
222
|
+
:class="mergeDataListUiClass(sizeClasses.editor, void 0, ui?.panel)"
|
|
223
|
+
>
|
|
224
|
+
<div
|
|
225
|
+
v-if="pickerProps?.title !== false"
|
|
226
|
+
:class="
|
|
226
227
|
mergeDataListUiClass(
|
|
227
228
|
'nut-dl-picker__title px-2.5 pt-2 pb-0.5 text-[11.5px] font-semibold text-muted',
|
|
228
229
|
void 0,
|
|
229
230
|
ui?.title
|
|
230
231
|
)
|
|
231
232
|
"
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
233
|
+
>
|
|
234
|
+
{{ t("table.controls.addFilter") }}
|
|
235
|
+
</div>
|
|
236
|
+
<FilterSearchablePanel
|
|
237
|
+
v-model:search-query="searchQuery"
|
|
238
|
+
:searchable="searchable"
|
|
239
|
+
:autofocus="searchable"
|
|
240
|
+
:search-placeholder="t('table.controls.searchFilters')"
|
|
241
|
+
:show-empty="!filteredDefinitions.length"
|
|
242
|
+
:empty-label="t('table.controls.noMatchingFilters')"
|
|
243
|
+
max-height-class="max-h-72"
|
|
244
|
+
:size="size"
|
|
245
|
+
:ui="ui"
|
|
246
|
+
>
|
|
247
|
+
<button
|
|
248
|
+
v-for="definition in filteredDefinitions"
|
|
249
|
+
:key="definition.key"
|
|
250
|
+
type="button"
|
|
251
|
+
:class="
|
|
251
252
|
mergeDataListUiClass(
|
|
252
253
|
`flex min-w-0 items-center rounded-md text-left outline-none transition-colors hover:bg-elevated/70 focus-visible:ring-2 focus-visible:ring-primary/40 ${sizeClasses.option}`,
|
|
253
254
|
void 0,
|
|
254
255
|
ui?.option
|
|
255
256
|
)
|
|
256
257
|
"
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
258
|
+
@click="handleSelect(definition.key)"
|
|
259
|
+
>
|
|
260
|
+
<UIcon
|
|
261
|
+
:name="
|
|
261
262
|
pickerProps?.icon === 'kind' ? resolveFilterTriggerIcon(definition) : 'i-lucide-plus'
|
|
262
263
|
"
|
|
263
|
-
|
|
264
|
+
:class="
|
|
264
265
|
mergeDataListUiClass(
|
|
265
266
|
`${sizeClasses.optionIcon} shrink-0 text-muted`,
|
|
266
267
|
void 0,
|
|
267
268
|
ui?.optionIcon
|
|
268
269
|
)
|
|
269
270
|
"
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
271
|
+
/>
|
|
272
|
+
<span
|
|
273
|
+
:class="
|
|
273
274
|
mergeDataListUiClass(
|
|
274
275
|
`min-w-0 flex-1 truncate text-default ${sizeClasses.optionLabel}`,
|
|
275
276
|
void 0,
|
|
276
277
|
ui?.optionLabel
|
|
277
278
|
)
|
|
278
279
|
"
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
280
|
+
>
|
|
281
|
+
{{ getLabel(definition) }}
|
|
282
|
+
</span>
|
|
283
|
+
<span
|
|
284
|
+
:class="
|
|
284
285
|
mergeDataListUiClass(
|
|
285
286
|
'inline-flex shrink-0 items-center text-dimmed',
|
|
286
287
|
void 0,
|
|
287
288
|
ui?.optionTrailingIcon
|
|
288
289
|
)
|
|
289
290
|
"
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
291
|
+
>
|
|
292
|
+
<UIcon name="i-lucide-chevron-right" :class="geometry.icon" />
|
|
293
|
+
</span>
|
|
294
|
+
</button>
|
|
295
|
+
</FilterSearchablePanel>
|
|
296
|
+
</div>
|
|
296
297
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
298
|
+
<div
|
|
299
|
+
v-else-if="stage === 'match-mode'"
|
|
300
|
+
:class="mergeDataListUiClass(sizeClasses.editor, void 0, ui?.panel)"
|
|
301
|
+
>
|
|
302
|
+
<FilterMatchModePanel
|
|
303
|
+
:items="operatorItems"
|
|
304
|
+
:selected="pendingOperator"
|
|
305
|
+
:size="size"
|
|
306
|
+
:ui="ui"
|
|
307
|
+
@select="openEditor"
|
|
308
|
+
/>
|
|
309
|
+
</div>
|
|
309
310
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
311
|
+
<component
|
|
312
|
+
:is="resolveFilterTagComponent(sessionDefinition)"
|
|
313
|
+
v-else-if="stage === 'editor' && sessionDefinition"
|
|
314
|
+
:definition="sessionDefinition"
|
|
315
|
+
dynamic
|
|
316
|
+
session
|
|
317
|
+
embedded
|
|
318
|
+
:initial-operator="pendingOperator"
|
|
319
|
+
@dismiss="handleSessionClosed"
|
|
320
|
+
@session-closed="handleSessionClosed"
|
|
321
|
+
@back="goBack"
|
|
322
|
+
/>
|
|
323
|
+
</FilterStageTransition>
|
|
324
|
+
</template>
|
|
325
|
+
</UPopover>
|
|
326
|
+
</div>
|
|
325
327
|
</template>
|
|
@@ -9,7 +9,7 @@ type __VLS_Props = {
|
|
|
9
9
|
declare function open(): void;
|
|
10
10
|
declare function close(): void;
|
|
11
11
|
declare function toggle(): void;
|
|
12
|
-
declare var
|
|
12
|
+
declare var __VLS_9: {
|
|
13
13
|
open: typeof open;
|
|
14
14
|
close: typeof close;
|
|
15
15
|
toggle: typeof toggle;
|
|
@@ -22,7 +22,7 @@ declare var __VLS_10: {
|
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
type __VLS_Slots = {} & {
|
|
25
|
-
trigger?: (props: typeof
|
|
25
|
+
trigger?: (props: typeof __VLS_9) => any;
|
|
26
26
|
};
|
|
27
27
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
28
|
select: (key: string) => 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;
|
|
@@ -104,10 +104,10 @@ const geometry = computed(() => resolveDataListControlGeometry(size.value));
|
|
|
104
104
|
:class="[sizeClasses.skeletonCount, 'shrink-0 rounded-full']"
|
|
105
105
|
/>
|
|
106
106
|
<span
|
|
107
|
-
v-else-if="props.showCounts
|
|
107
|
+
v-else-if="props.showCounts"
|
|
108
108
|
:class="mergeDataListUiClass('shrink-0 text-muted', void 0, ui?.optionCount)"
|
|
109
109
|
>
|
|
110
|
-
{{ entry.count }}
|
|
110
|
+
{{ entry.count ?? 0 }}
|
|
111
111
|
</span>
|
|
112
112
|
</div>
|
|
113
113
|
</template>
|
|
@@ -55,7 +55,7 @@ function handleSelect(options) {
|
|
|
55
55
|
:items="props.state.treeRadioItems.value"
|
|
56
56
|
:multiple="props.state.filterUi.value.selection.mode === 'multiple'"
|
|
57
57
|
:count-loading="
|
|
58
|
-
props.state.
|
|
58
|
+
props.state.optionSource.showCounts.value && props.state.optionSource.isCountLoading.value
|
|
59
59
|
"
|
|
60
60
|
:selected-icon="props.state.filterUi.value.row.selectedIcon"
|
|
61
61
|
:size="props.size"
|
|
@@ -77,7 +77,7 @@ function handleSelect(options) {
|
|
|
77
77
|
:sections="
|
|
78
78
|
props.sections ?? [{ key: 'default', entries: props.state.displayEntries.value }]
|
|
79
79
|
"
|
|
80
|
-
:show-counts="props.state.
|
|
80
|
+
:show-counts="props.state.optionSource.showCounts.value"
|
|
81
81
|
:count-loading="props.state.optionSource.isCountLoading.value"
|
|
82
82
|
:selected-icon="props.state.filterUi.value.row.selectedIcon"
|
|
83
83
|
:truncate="props.state.filterUi.value.row.truncate"
|
|
@@ -99,7 +99,7 @@ function handleSelect(options) {
|
|
|
99
99
|
v-model="flatRadioValue"
|
|
100
100
|
:items="props.state.flatRadioItems.value"
|
|
101
101
|
:count-loading="
|
|
102
|
-
props.state.
|
|
102
|
+
props.state.optionSource.showCounts.value && props.state.optionSource.isCountLoading.value
|
|
103
103
|
"
|
|
104
104
|
:size="props.size"
|
|
105
105
|
:ui="props.ui"
|
|
@@ -4,13 +4,13 @@ type __VLS_Props = {
|
|
|
4
4
|
contentClass?: string;
|
|
5
5
|
transitioning?: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare var __VLS_1: {},
|
|
7
|
+
declare var __VLS_1: {}, __VLS_11: {}, __VLS_14: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
content?: (props: typeof __VLS_1) => any;
|
|
10
10
|
} & {
|
|
11
|
-
default?: (props: typeof
|
|
11
|
+
default?: (props: typeof __VLS_11) => any;
|
|
12
12
|
} & {
|
|
13
|
-
content?: (props: typeof
|
|
13
|
+
content?: (props: typeof __VLS_14) => any;
|
|
14
14
|
};
|
|
15
15
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
16
|
updateOpen: (value: boolean) => any;
|
|
@@ -20,24 +20,26 @@ function handleFocusOutside(event) {
|
|
|
20
20
|
</script>
|
|
21
21
|
|
|
22
22
|
<template>
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
<div class="contents">
|
|
24
|
+
<template v-if="embedded">
|
|
25
|
+
<slot name="content" />
|
|
26
|
+
</template>
|
|
27
|
+
<UPopover
|
|
28
|
+
v-else
|
|
29
|
+
:open="open"
|
|
30
|
+
:content="{
|
|
30
31
|
side: 'bottom',
|
|
31
32
|
align: 'start',
|
|
32
33
|
sideOffset: 8,
|
|
33
34
|
onFocusOutside: handleFocusOutside
|
|
34
35
|
}"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
:ui="{ content: resolvedContentClass }"
|
|
37
|
+
@update:open="emit('updateOpen', $event)"
|
|
38
|
+
>
|
|
39
|
+
<slot />
|
|
40
|
+
<template #content>
|
|
41
|
+
<slot name="content" />
|
|
42
|
+
</template>
|
|
43
|
+
</UPopover>
|
|
44
|
+
</div>
|
|
43
45
|
</template>
|
|
@@ -4,13 +4,13 @@ type __VLS_Props = {
|
|
|
4
4
|
contentClass?: string;
|
|
5
5
|
transitioning?: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare var __VLS_1: {},
|
|
7
|
+
declare var __VLS_1: {}, __VLS_11: {}, __VLS_14: {};
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
content?: (props: typeof __VLS_1) => any;
|
|
10
10
|
} & {
|
|
11
|
-
default?: (props: typeof
|
|
11
|
+
default?: (props: typeof __VLS_11) => any;
|
|
12
12
|
} & {
|
|
13
|
-
content?: (props: typeof
|
|
13
|
+
content?: (props: typeof __VLS_14) => any;
|
|
14
14
|
};
|
|
15
15
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
16
|
updateOpen: (value: boolean) => any;
|
|
@@ -51,7 +51,10 @@ const sizeClasses = computed(() => resolveFilterEditorSizeClasses(size));
|
|
|
51
51
|
variant="none"
|
|
52
52
|
:autofocus="autofocus"
|
|
53
53
|
:size="size"
|
|
54
|
-
:ui="{
|
|
54
|
+
:ui="{
|
|
55
|
+
root: ui?.search,
|
|
56
|
+
base: mergeDataListUiClass('h-8', void 0, ui?.searchInput)
|
|
57
|
+
}"
|
|
55
58
|
/>
|
|
56
59
|
</div>
|
|
57
60
|
|
|
@@ -78,7 +81,12 @@ const sizeClasses = computed(() => resolveFilterEditorSizeClasses(size));
|
|
|
78
81
|
"
|
|
79
82
|
>
|
|
80
83
|
<slot name="empty">
|
|
81
|
-
|
|
84
|
+
<div class="grid justify-items-center gap-2">
|
|
85
|
+
<span class="flex size-8 items-center justify-center rounded-full bg-elevated">
|
|
86
|
+
<span class="i-lucide-search-x size-4" aria-hidden="true" />
|
|
87
|
+
</span>
|
|
88
|
+
<span>{{ emptyLabel }}</span>
|
|
89
|
+
</div>
|
|
82
90
|
</slot>
|
|
83
91
|
</div>
|
|
84
92
|
</UScrollArea>
|
|
@@ -98,14 +98,15 @@ function clearAll() {
|
|
|
98
98
|
>
|
|
99
99
|
<UButton
|
|
100
100
|
v-bind="triggerProps"
|
|
101
|
+
:aria-label="t('table.filters.panel.trigger')"
|
|
102
|
+
:title="t('table.filters.panel.trigger')"
|
|
103
|
+
:square="!activeCount"
|
|
101
104
|
:ui="{
|
|
102
105
|
base: mergeDataListUiClass('nut-dl-sheet-trigger shrink-0', void 0, ui?.sheetTrigger)
|
|
103
106
|
}"
|
|
104
107
|
>
|
|
105
|
-
<span class="flex items-center
|
|
106
|
-
<span>{{ t("table.filters.panel.trigger") }}</span>
|
|
108
|
+
<span v-if="activeCount" class="flex items-center">
|
|
107
109
|
<UBadge
|
|
108
|
-
v-if="activeCount"
|
|
109
110
|
color="neutral"
|
|
110
111
|
variant="solid"
|
|
111
112
|
size="xs"
|