nuxt-ui-tools 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TableSourceRequestContext } from './source.js';
|
|
1
2
|
import type { GenericObject, RenderableType, TableColumnAlign, TableColumnPinned, TableKnownFieldPath, TableFieldValue, TableRowRenderParams, TableSortKey, TableTextValue, TableRuntimeRecord } from './utils.js';
|
|
2
3
|
/** Placeholder shape drawn in a column while its first page loads. */
|
|
3
4
|
export type TableColumnSkeletonKind = 'text' | 'avatar' | 'icon' | 'dot' | 'check' | 'badge' | 'number' | 'progress' | 'none';
|
|
@@ -17,12 +18,12 @@ export type TableColumnSkeleton = TableColumnSkeletonKind | TableColumnSkeletonC
|
|
|
17
18
|
export type TableSummaryKind = 'sum' | 'avg' | 'count' | 'min' | 'max';
|
|
18
19
|
export type TableSummaryScope = 'page' | 'filtered' | 'selection';
|
|
19
20
|
export type TableSummaryValue = string | number | boolean | Date | null | undefined;
|
|
20
|
-
export type TableSummaryRequest
|
|
21
|
+
export type TableSummaryRequest<TRow extends GenericObject = GenericObject> = TableSourceRequestContext<TRow>;
|
|
21
22
|
export interface TableSummaryContext<TRow extends GenericObject = GenericObject> {
|
|
22
23
|
rows: TRow[];
|
|
23
24
|
scope: TableSummaryScope;
|
|
24
25
|
columnKey: string;
|
|
25
|
-
request: TableSummaryRequest
|
|
26
|
+
request: TableSummaryRequest<TRow>;
|
|
26
27
|
}
|
|
27
28
|
export interface TableColumnSummaryConfig<TRow extends GenericObject = GenericObject> {
|
|
28
29
|
/** Derived aggregate computed from the rows in scope. */
|
|
@@ -70,6 +70,6 @@ export interface TableSummariesSchema<TRow extends GenericObject = GenericObject
|
|
|
70
70
|
resolve?: (context: {
|
|
71
71
|
scope: TableSummaryScope;
|
|
72
72
|
rows: TRow[];
|
|
73
|
-
request: TableSummaryRequest
|
|
73
|
+
request: TableSummaryRequest<TRow>;
|
|
74
74
|
}) => Record<string, TableSummaryValue> | Promise<Record<string, TableSummaryValue>>;
|
|
75
75
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-ui-tools",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "Nuxt module and runtime toolkit for UI-heavy Nuxt applications",
|
|
5
5
|
"homepage": "https://github.com/ChronicStone/nuxt-ui-tools#readme",
|
|
6
6
|
"bugs": "https://github.com/ChronicStone/nuxt-ui-tools/issues",
|