@tanstack/vue-table
Advanced tools
Comparing version 8.0.0-alpha.58 to 8.0.0-alpha.59
@@ -10,3 +10,3 @@ { | ||
{ | ||
"uid": "939b-161", | ||
"uid": "76c7-161", | ||
"name": "\u0000rollupPluginBabelHelpers.js" | ||
@@ -18,7 +18,7 @@ }, | ||
{ | ||
"uid": "939b-163", | ||
"uid": "76c7-163", | ||
"name": "merge-proxy.ts" | ||
}, | ||
{ | ||
"uid": "939b-165", | ||
"uid": "76c7-165", | ||
"name": "index.ts" | ||
@@ -34,26 +34,26 @@ } | ||
"nodeParts": { | ||
"939b-161": { | ||
"76c7-161": { | ||
"renderedLength": 410, | ||
"gzipLength": 231, | ||
"brotliLength": 0, | ||
"mainUid": "939b-160" | ||
"mainUid": "76c7-160" | ||
}, | ||
"939b-163": { | ||
"76c7-163": { | ||
"renderedLength": 1779, | ||
"gzipLength": 684, | ||
"brotliLength": 0, | ||
"mainUid": "939b-162" | ||
"mainUid": "76c7-162" | ||
}, | ||
"939b-165": { | ||
"76c7-165": { | ||
"renderedLength": 1935, | ||
"gzipLength": 712, | ||
"brotliLength": 0, | ||
"mainUid": "939b-164" | ||
"mainUid": "76c7-164" | ||
} | ||
}, | ||
"nodeMetas": { | ||
"939b-160": { | ||
"76c7-160": { | ||
"id": "\u0000rollupPluginBabelHelpers.js", | ||
"moduleParts": { | ||
"index.production.js": "939b-161" | ||
"index.production.js": "76c7-161" | ||
}, | ||
@@ -63,10 +63,10 @@ "imported": [], | ||
{ | ||
"uid": "939b-164" | ||
"uid": "76c7-164" | ||
} | ||
] | ||
}, | ||
"939b-162": { | ||
"76c7-162": { | ||
"id": "/packages/vue-table/src/merge-proxy.ts", | ||
"moduleParts": { | ||
"index.production.js": "939b-163" | ||
"index.production.js": "76c7-163" | ||
}, | ||
@@ -76,23 +76,23 @@ "imported": [], | ||
{ | ||
"uid": "939b-164" | ||
"uid": "76c7-164" | ||
} | ||
] | ||
}, | ||
"939b-164": { | ||
"76c7-164": { | ||
"id": "/packages/vue-table/src/index.ts", | ||
"moduleParts": { | ||
"index.production.js": "939b-165" | ||
"index.production.js": "76c7-165" | ||
}, | ||
"imported": [ | ||
{ | ||
"uid": "939b-160" | ||
"uid": "76c7-160" | ||
}, | ||
{ | ||
"uid": "939b-166" | ||
"uid": "76c7-166" | ||
}, | ||
{ | ||
"uid": "939b-167" | ||
"uid": "76c7-167" | ||
}, | ||
{ | ||
"uid": "939b-162" | ||
"uid": "76c7-162" | ||
} | ||
@@ -103,3 +103,3 @@ ], | ||
}, | ||
"939b-166": { | ||
"76c7-166": { | ||
"id": "@tanstack/table-core", | ||
@@ -110,3 +110,3 @@ "moduleParts": {}, | ||
{ | ||
"uid": "939b-164" | ||
"uid": "76c7-164" | ||
} | ||
@@ -116,3 +116,3 @@ ], | ||
}, | ||
"939b-167": { | ||
"76c7-167": { | ||
"id": "vue", | ||
@@ -123,3 +123,3 @@ "moduleParts": {}, | ||
{ | ||
"uid": "939b-164" | ||
"uid": "76c7-164" | ||
} | ||
@@ -126,0 +126,0 @@ ], |
@@ -1,7 +0,11 @@ | ||
import { TableGenerics, Options, PartialKeys, Table } from '@tanstack/table-core'; | ||
import { TableGenerics, TableOptions, PartialKeys, Table } from '@tanstack/table-core'; | ||
import { VNode } from 'vue'; | ||
export * from '@tanstack/table-core'; | ||
declare function render<TProps extends {}>(Comp: any, props: TProps): any; | ||
declare function render<TProps extends {}>(Comp: any, props: TProps): VNode | null; | ||
export declare const createTable: () => Table<{ | ||
Render: typeof render; | ||
Renderer: typeof render; | ||
Rendered: VNode<import("vue").RendererNode, import("vue").RendererElement, { | ||
[key: string]: any; | ||
}> | null; | ||
}>; | ||
export declare function useTableInstance<TGenerics extends TableGenerics>(table: Table<TGenerics>, options: PartialKeys<Omit<Options<TGenerics>, 'render'>, 'state' | 'onStateChange'>): import("@tanstack/table-core").TableInstance<TGenerics>; | ||
export declare function useTableInstance<TGenerics extends TableGenerics>(table: Table<TGenerics>, options: PartialKeys<Omit<TableOptions<TGenerics>, 'render'>, 'state' | 'onStateChange'>): import("@tanstack/table-core").TableInstance<TGenerics>; |
{ | ||
"name": "@tanstack/vue-table", | ||
"author": "Tanner Linsley", | ||
"version": "8.0.0-alpha.58", | ||
"version": "8.0.0-alpha.59", | ||
"description": "Composables for building lightweight, fast and extendable datagrids for Vue", | ||
@@ -37,3 +37,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@tanstack/table-core": "8.0.0-alpha.58" | ||
"@tanstack/table-core": "8.0.0-alpha.59" | ||
}, | ||
@@ -40,0 +40,0 @@ "peerDependencies": { |
import { | ||
TableGenerics, | ||
Options, | ||
TableOptions, | ||
PartialKeys, | ||
@@ -10,3 +10,3 @@ Table, | ||
} from '@tanstack/table-core' | ||
import { h, watchEffect, ref, onBeforeUpdate } from 'vue' | ||
import { h, watchEffect, ref, onBeforeUpdate, VNode } from 'vue' | ||
import { mergeProxy } from './merge-proxy' | ||
@@ -16,3 +16,3 @@ | ||
function render<TProps extends {}>(Comp: any, props: TProps) { | ||
function render<TProps extends {}>(Comp: any, props: TProps): VNode | null { | ||
if (!Comp) return null | ||
@@ -32,7 +32,7 @@ | ||
options: PartialKeys< | ||
Omit<Options<TGenerics>, 'render'>, | ||
Omit<TableOptions<TGenerics>, 'render'>, | ||
'state' | 'onStateChange' | ||
> | ||
) { | ||
const resolvedOptions: Options<TGenerics> = mergeProxy( | ||
const resolvedOptions: TableOptions<TGenerics> = mergeProxy( | ||
{ | ||
@@ -43,3 +43,6 @@ ...table.options, | ||
render, | ||
mergeOptions(defaultOptions: TableFeature, options: Options<TGenerics>) { | ||
mergeOptions( | ||
defaultOptions: TableFeature, | ||
options: TableOptions<TGenerics> | ||
) { | ||
return mergeProxy(defaultOptions, options) | ||
@@ -46,0 +49,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
159501
793
+ Added@tanstack/table-core@8.0.0-alpha.59(transitive)
- Removed@tanstack/table-core@8.0.0-alpha.58(transitive)