@h-ai/kit 0.1.0-alpha.61 → 0.1.0-alpha.63

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/README.en.md CHANGED
@@ -285,3 +285,7 @@ pnpm --filter @h-ai/kit test
285
285
  ## License
286
286
 
287
287
  Apache-2.0
288
+
289
+ ## CRUD fields
290
+
291
+ Declarative CRUD fields support `colSpan: 'auto' | 1 | 2` for UI form widths. `validation.message` accepts a string or `() => string` for current-locale validation messages. Configure layout through `CrudPage.form`; validate independently on the server.
package/README.ja.md CHANGED
@@ -285,3 +285,7 @@ pnpm --filter @h-ai/kit test
285
285
  ## License
286
286
 
287
287
  Apache-2.0
288
+
289
+ ## CRUD fields
290
+
291
+ 宣言型 CRUD 項目は UI フォームの幅を指定する `colSpan: 'auto' | 1 | 2` に対応します。`validation.message` は文字列または `() => string` を受け取り、現在の言語で表示できます。レイアウトは `CrudPage.form` で設定し、サーバーでも検証してください。
package/README.md CHANGED
@@ -285,3 +285,7 @@ pnpm --filter @h-ai/kit test
285
285
  ## License
286
286
 
287
287
  Apache-2.0
288
+
289
+ ## CRUD fields
290
+
291
+ 声明式 CRUD 字段支持 `colSpan: 'auto' | 1 | 2`,供 UI 双列表单决定字段宽度;`validation.message` 支持字符串或 `() => string`,便于随当前语言显示校验错误。UI 布局在 `CrudPage.form` 上配置,服务端仍须独立校验。
package/dist/browser.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { c as createKitClient, a as createKitAuthActions, i as installBrowserTransport, b as installBrowserTransportFetch, s as setBrowserToken, d as clearBrowserToken, e as createTokenStore } from './index-B7s-0mZl.js';
2
2
  export { C as ClientTransportConfig, K as KitClient, f as KitClientConfig, g as KitConfig, h as KitConfigInput, j as KitConfigSchema, k as KitServerConfig, l as KitServerConfigInput, m as KitTransportConfig, n as KitTransportConfigInput, o as createSvelteKitNavAdapter, r as resolveKitConfig, p as resolveKitTransportConfig } from './index-B7s-0mZl.js';
3
- import { d as defineCrud, s as setAllModulesLocale } from './kit-i18n-CjFHORw5.js';
3
+ import { d as defineCrud, s as setAllModulesLocale } from './kit-i18n-D9Qqk-1k.js';
4
4
  export { A as ApiResponse, a as AuthOperations, b as AuthOperationsProvider, C as CorsConfig, F as FormError, c as FormValidationResult, G as GuardConfig, d as GuardResult, H as HaiRequestEvent, e as HandleA2AConfig, f as HandleA2AOperations, g as HandleAuthConfig, h as HandleConfig, i as HookCryptoConfig, M as Middleware, j as MiddlewareContext, R as RateLimitConfig, k as RouteGuard, S as SessionData, l as SessionLike, T as TransportEncryptionOptions } from './kit-types-ByWdbCeO.js';
5
5
  import '@h-ai/api-contract';
6
6
  import '@h-ai/core';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { c as createKitClient, a as createKitAuthActions, i as installBrowserTransport, b as installBrowserTransportFetch, q as login, t as loginWithOtp, u as loginWithLdap, v as loginWithApiKey, w as registerAndLogin, x as logout, s as setBrowserToken, d as clearBrowserToken, e as createTokenStore } from './index-B7s-0mZl.js';
2
2
  export { C as ClientTransportConfig, K as KitClient, f as KitClientConfig, g as KitConfig, h as KitConfigInput, j as KitConfigSchema, k as KitServerConfig, l as KitServerConfigInput, m as KitTransportConfig, n as KitTransportConfigInput, o as createSvelteKitNavAdapter, r as resolveKitConfig, p as resolveKitTransportConfig } from './index-B7s-0mZl.js';
3
- import { d as defineCrud, s as setAllModulesLocale } from './kit-i18n-CjFHORw5.js';
4
- export { C as CrudApiDef, a as CrudFieldDef, b as CrudFieldOption, c as CrudFieldOptions, e as CrudFieldType, f as CrudFieldValidation, g as CrudFilterParams, h as CrudOperations, i as CrudPaginatedResult, j as CrudPaginationParams, k as CrudResourceDef, l as CrudTableColumn, m as CrudText, r as resolveOptions, n as resolveText } from './kit-i18n-CjFHORw5.js';
3
+ import { d as defineCrud, s as setAllModulesLocale } from './kit-i18n-D9Qqk-1k.js';
4
+ export { C as CrudApiDef, a as CrudFieldDef, b as CrudFieldOption, c as CrudFieldOptions, e as CrudFieldType, f as CrudFieldValidation, g as CrudFilterParams, h as CrudOperations, i as CrudPaginatedResult, j as CrudPaginationParams, k as CrudResourceDef, l as CrudTableColumn, m as CrudText, r as resolveOptions, n as resolveText } from './kit-i18n-D9Qqk-1k.js';
5
5
  import { S as SessionData, k as RouteGuard, l as SessionLike, h as HandleConfig, C as CorsConfig, M as Middleware } from './kit-types-ByWdbCeO.js';
6
6
  export { A as ApiResponse, a as AuthOperations, b as AuthOperationsProvider, F as FormError, c as FormValidationResult, G as GuardConfig, d as GuardResult, H as HaiRequestEvent, e as HandleA2AConfig, f as HandleA2AOperations, g as HandleAuthConfig, i as HookCryptoConfig, m as MemoryRateLimitStore, j as MiddlewareContext, R as RateLimitConfig, n as RateLimitEntry, o as RateLimitStore, T as TransportEncryptionOptions, r as rateLimitMiddleware } from './kit-types-ByWdbCeO.js';
7
7
  import * as _sveltejs_kit from '@sveltejs/kit';
@@ -17,7 +17,7 @@ interface CrudFieldValidation {
17
17
  /** 正则表达式 */
18
18
  pattern?: string;
19
19
  /** 自定义错误提示 */
20
- message?: string;
20
+ message?: CrudText;
21
21
  }
22
22
  /** 选项项(用于 select/radio 等) */
23
23
  interface CrudFieldOption {
@@ -52,6 +52,8 @@ interface CrudFieldDef {
52
52
  options?: CrudFieldOptions;
53
53
  /** 校验规则 */
54
54
  validation?: CrudFieldValidation;
55
+ /** 双列表单中的占用列数;auto 按控件类型判断,默认 auto。 */
56
+ colSpan?: 'auto' | 1 | 2;
55
57
  /** 列宽(列表模式) */
56
58
  width?: string;
57
59
  /** 列对齐方式 */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@h-ai/kit",
3
3
  "type": "module",
4
- "version": "0.1.0-alpha.61",
4
+ "version": "0.1.0-alpha.63",
5
5
  "description": "Hai Framework SvelteKit integration module.",
6
6
  "license": "Apache-2.0",
7
7
  "exports": {
@@ -58,10 +58,10 @@
58
58
  }
59
59
  },
60
60
  "dependencies": {
61
- "@h-ai/api-contract": "0.1.0-alpha.61",
62
- "@h-ai/core": "0.1.0-alpha.61",
63
- "@h-ai/crypto": "0.1.0-alpha.61",
64
- "@h-ai/iam": "0.1.0-alpha.61",
61
+ "@h-ai/api-contract": "0.1.0-alpha.63",
62
+ "@h-ai/core": "0.1.0-alpha.63",
63
+ "@h-ai/crypto": "0.1.0-alpha.63",
64
+ "@h-ai/iam": "0.1.0-alpha.63",
65
65
  "zod": "^4.6.5"
66
66
  },
67
67
  "devDependencies": {