vome-core 0.1.53 → 0.1.55
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/admin/config/plugin-dev.js +1 -1
- package/dist/admin/crud/components/vm-date-calendar-panel.vue +96 -83
- package/dist/admin/crud/components/vm-date-picker.vue +21 -17
- package/dist/admin/crud/components/vm-date-range.vue +8 -11
- package/dist/admin/crud/components/vm-datetime-field.vue +20 -37
- package/dist/admin/crud/components/vm-richtext-extensions.js +1 -1
- package/dist/admin/crud/config.d.ts +0 -1
- package/dist/admin/crud/config.js +1 -1
- package/dist/admin/crud/confirm.js +1 -1
- package/dist/admin/crud/dict.js +1 -1
- package/dist/admin/crud/key.d.ts +0 -2
- package/dist/admin/crud/key.js +1 -1
- package/dist/admin/crud/plugins.js +1 -1
- package/dist/admin/crud/registry.d.ts +0 -2
- package/dist/admin/crud/registry.js +0 -2
- package/dist/admin/crud/span.js +1 -1
- package/dist/admin/crud/style.d.ts +2 -2
- package/dist/admin/crud/style.js +1 -1
- package/dist/admin/crud/validate.d.ts +0 -10
- package/dist/admin/crud/validate.js +1 -1
- package/dist/admin/crud/vm-crud.vue +1 -9
- package/dist/admin/directives/perm.js +1 -1
- package/dist/admin/hooks/useUpload.js +1 -1
- package/dist/admin/lib/browser.js +1 -1
- package/dist/admin/lib/cn.js +1 -1
- package/dist/admin/lib/dialog-float.js +1 -1
- package/dist/admin/lib/export-excel.d.ts +0 -2
- package/dist/admin/lib/export-excel.js +1 -1
- package/dist/admin/lib/file-preview.d.ts +2 -4
- package/dist/admin/lib/file-preview.js +11 -11
- package/dist/admin/lib/import-excel.d.ts +3 -2
- package/dist/admin/lib/import-excel.js +1 -1
- package/dist/admin/lib/json.js +1 -1
- package/dist/admin/lib/menu.js +1 -1
- package/dist/admin/lib/tree.js +1 -1
- package/dist/admin/lib/upload.d.ts +0 -1
- package/dist/admin/lib/upload.js +1 -1
- package/dist/admin/lib/video-frame.d.ts +0 -3
- package/dist/admin/lib/video-frame.js +1 -1
- package/dist/agent/constants.d.ts +0 -7
- package/dist/agent/index.d.ts +0 -1
- package/dist/agent/index.js +2 -25
- package/dist/agent/protocol.d.ts +0 -2
- package/dist/ai/adapters/auth-headers.d.ts +2 -2
- package/dist/ai/adapters/openai-compatible.d.ts +1 -2
- package/dist/ai/index.js +0 -7
- package/dist/ai/transport.d.ts +0 -6
- package/dist/ai/types.d.ts +0 -2
- package/dist/client/vite-admin.d.ts +0 -5
- package/dist/client/vite-admin.js +0 -6
- package/dist/client/vite-plugin-eps.d.ts +0 -23
- package/dist/client/vite-plugin-eps.js +1 -1
- package/dist/comm/daily-log.d.ts +0 -2
- package/dist/comm/format-time.d.ts +0 -1
- package/dist/core/context/index.d.ts +0 -8
- package/dist/ext/load-plugin.d.ts +0 -4
- package/dist/index.js +1 -1
- package/dist/ioc/metadata.d.ts +0 -1
- package/dist/orm/column-comments.d.ts +2 -1
- package/dist/orm/field-ref.d.ts +2 -1
- package/dist/orm/import-excel.d.ts +2 -6
- package/dist/orm/join-tables.d.ts +0 -3
- package/dist/server/index.js +1 -1
- package/dist/shared/datetime-picker.d.ts +5 -22
- package/dist/shared/datetime-picker.js +1 -1
- package/dist/shared/excel.js +1 -1
- package/dist/shared/index.d.ts +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/locale-json.js +1 -1
- package/dist/shared/tree.js +1 -1
- package/dist/typings/routing/crud.d.ts +1 -1
- package/package.json +1 -1
- package/typings/admin/comm/crud.d.ts +1 -1
- package/typings/admin/comm/crud.ts +1 -3
- package/typings/routing/crud.ts +1 -3
- package/dist/admin/crud/mitt.d.ts +0 -10
- package/dist/admin/crud/mitt.js +0 -1
- package/dist/agent/types.d.ts +0 -14
package/dist/ioc/metadata.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export declare const INJECT_METADATA_KEY = "vome:inject";
|
|
2
1
|
export type { ClassToken, InjectionToken, InjectMeta, ProvideOptions, ProviderMeta, ScopeValue, } from '../../typings/ioc/metadata';
|
|
3
2
|
import type { ClassToken, InjectionToken, InjectMeta, ProviderMeta } from '../../typings/ioc/metadata';
|
|
4
3
|
export declare function registerProvider(meta: ProviderMeta): void;
|
|
@@ -13,7 +13,7 @@ export declare function getColumnComments(table: object): Record<string, string>
|
|
|
13
13
|
/** 已登记的表(schema import 后可用) */
|
|
14
14
|
export declare function listColumnCommentTables(): object[];
|
|
15
15
|
/** Bun.SQL 最小接口(避免 core 强耦合 bun 类型) */
|
|
16
|
-
|
|
16
|
+
type PgCommentSql = {
|
|
17
17
|
(strings: TemplateStringsArray, ...values: unknown[]): Promise<unknown>;
|
|
18
18
|
unsafe: (query: string) => Promise<unknown>;
|
|
19
19
|
};
|
|
@@ -23,3 +23,4 @@ export type PgCommentSql = {
|
|
|
23
23
|
* - 新表 / 新列 / 文案变更 → 只更新对应列
|
|
24
24
|
*/
|
|
25
25
|
export declare function syncColumnCommentsToPg(sql: PgCommentSql): Promise<number>;
|
|
26
|
+
export {};
|
package/dist/orm/field-ref.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* - `b.providerId` → 键 = `providerId`
|
|
6
6
|
* - `e.id as roleId` → 列 `e.id`,键 = `roleId`(select / fieldEq / fieldLike / fieldArray 统一)
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
type ParsedFieldRef = {
|
|
9
9
|
/** `a.col`(不含 as) */
|
|
10
10
|
source: string;
|
|
11
11
|
alias: string;
|
|
@@ -33,3 +33,4 @@ export declare function parseFieldPath(expr: string, opts?: {
|
|
|
33
33
|
export declare function parseFieldRef(input: string): ParsedFieldRef;
|
|
34
34
|
/** 规范化为带 a. 的 source 字符串(保留 as) */
|
|
35
35
|
export declare function normalizeFieldRefExpr(input: string): string;
|
|
36
|
+
export {};
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { type PgTable } from 'drizzle-orm/pg-core';
|
|
2
|
-
import { type ExcelColumn } from '../shared/excel';
|
|
3
2
|
import type { BaseService } from './service';
|
|
4
|
-
/** 从表唯一索引 / unique 约束提取键集合(用于导入 upsert) */
|
|
5
|
-
export declare function listUniqueKeySets(table: PgTable): string[][];
|
|
6
|
-
/** 导入模板列:实体业务字段,排除自动生成列 */
|
|
7
|
-
export declare function buildImportExcelColumns(table: PgTable, ignoreProperty?: string[]): ExcelColumn[];
|
|
8
3
|
export declare function buildEntityImportTemplate(table: PgTable, ignoreProperty?: string[]): Uint8Array;
|
|
9
|
-
|
|
4
|
+
type ImportRowResult = {
|
|
10
5
|
inserted: number;
|
|
11
6
|
updated: number;
|
|
12
7
|
failed: Array<{
|
|
@@ -29,3 +24,4 @@ export declare function importEntityExcel(svc: BaseService, table: PgTable, file
|
|
|
29
24
|
uniqueKeys?: string[];
|
|
30
25
|
ignoreProperty?: string[];
|
|
31
26
|
}): Promise<ImportRowResult>;
|
|
27
|
+
export {};
|
|
@@ -5,8 +5,5 @@ export type JoinTableMap = Record<string, PgTable>;
|
|
|
5
5
|
export declare function resolveJoinAlias(join: QueryJoin, index: number): string;
|
|
6
6
|
/** 主表 a + 各 join 的 drizzle alias 表 */
|
|
7
7
|
export declare function buildJoinTables(main: PgTable, op: QueryOp): JoinTableMap;
|
|
8
|
-
/** 解析 `a.skinId = b.id` 形式等值条件 */
|
|
9
|
-
export declare function parseJoinCondition(condition: string, tables: JoinTableMap): import("drizzle-orm").SQL<unknown>;
|
|
10
8
|
export declare function resolveJoinOn(join: QueryJoin, index: number, tables: JoinTableMap): import("drizzle-orm").SQL<unknown>;
|
|
11
9
|
export declare function joinTypeOf(join: QueryJoin, index?: number): QueryJoinType;
|
|
12
|
-
export declare function getJoinEntity(join: QueryJoin): unknown;
|