@vanstack/solid-ark 0.0.19 → 0.0.21

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.
@@ -2,7 +2,7 @@ import "../solid-ark.css";
2
2
  import { t as e } from "../button-Br_upy12.js";
3
3
  import { t } from "../badge-Dt0uZnmA.js";
4
4
  import { t as n } from "../form-IwL17HZI.js";
5
- import { t as r } from "../table-D3DgojFM.js";
5
+ import { t as r } from "../table-Dl0ngdNr.js";
6
6
  import { className as i, createComponent as a, effect as o, insert as s, memo as c, setAttribute as l, setStyleProperty as u, template as d, use as f } from "solid-js/web";
7
7
  import { For as p, Show as m, createEffect as ee, createMemo as h, createSignal as g, mergeProps as te, on as _, onCleanup as v, onMount as y } from "solid-js";
8
8
  import { formatDate as ne, formatDateTime as re, formatShortDateTime as b } from "@vanstack/shared";
@@ -47,7 +47,7 @@ export type DataTableColumnDef<TData> = {
47
47
  type?: "action" | "badge" | "date" | "dateTime" | "index" | "shortDateTime";
48
48
  } & Partial<UnionToIntersection<ColumnDef<TData>>>;
49
49
  /** 取数函数:接收表单值与查询参数,返回当前页数据与总条数 */
50
- export type DataTableSearchHandler<TData, TSearch> = (values: TSearch, query: DataTableQuery) => DataTableResult<TData> | Promise<DataTableResult<TData>> | Promise<void> | undefined;
50
+ export type DataTableSearchHandler<TData, TSearch> = (values: TSearch, query: DataTableQuery) => DataTableResult<TData> | Promise<DataTableResult<TData>> | Promise<void> | undefined | void;
51
51
  export interface DataTableProps<TData, TSearch extends Record<string, unknown> = Record<string, unknown>> {
52
52
  /** 搜索表单字段;不传或为空数组时不渲染搜索区 */
53
53
  searchFields?: FieldConfig[];
@@ -1,3 +1,3 @@
1
1
  import "../solid-ark.css";
2
- import { t as e } from "../table-D3DgojFM.js";
2
+ import { t as e } from "../table-Dl0ngdNr.js";
3
3
  export { e as Table };
@@ -120,7 +120,8 @@ function P(r) {
120
120
  getCoreRowModel: _(),
121
121
  getSortedRowModel: v(),
122
122
  enableRowSelection: l.selectable,
123
- getRowId: (e) => l.rowId(e)
123
+ getRowId: (e) => l.rowId(e),
124
+ defaultColumn: { enableSorting: !1 }
124
125
  }), L = (e) => e === "__select__";
125
126
  function R(r) {
126
127
  return (() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vanstack/solid-ark",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -71,8 +71,8 @@
71
71
  "vite-plugin-solid": "^2.11.0",
72
72
  "vitest": "^4.1.10",
73
73
  "zod": "^4.4.0",
74
- "@vanstack/prettier-config": "0.0.1",
75
74
  "@vanstack/eslint-config": "0.0.1",
75
+ "@vanstack/prettier-config": "0.0.1",
76
76
  "@vanstack/tsconfig": "0.0.1",
77
77
  "@vanstack/vite-config": "0.0.2"
78
78
  },