@valaxyjs/devtools 1.0.0-rc.9 → 1.0.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/README.md +151 -12
- package/dist/client/assets/FeedbackEmptyState-6lTUwFgn.js +1 -0
- package/dist/client/assets/LayoutCard-ZKe9PNVY.js +1 -0
- package/dist/client/assets/Teleport-qWljvtqZ.js +3 -0
- package/dist/client/assets/VDCheckbox-7mDdABjI.js +1 -0
- package/dist/client/assets/VDCodeBlock-C3pmQBwJ.css +1 -0
- package/dist/client/assets/VDCodeBlock-DhkPq65r.js +1 -0
- package/dist/client/assets/VDNumberField-CaKmb2V5.js +1 -0
- package/dist/client/assets/VDPostListItem-Brv0DUbv.js +1 -0
- package/dist/client/assets/VDPostPanel-CFfkiijD.css +1 -0
- package/dist/client/assets/VDPostPanel-CrXpNq7c.js +1 -0
- package/dist/client/assets/VDSelect-CyeugdZ6.js +1 -0
- package/dist/client/assets/VDToggleGroup-BzEoQtyw.js +1 -0
- package/dist/client/assets/addons-CJtLvLk8.js +1 -0
- package/dist/client/assets/addons-D7_qAb67.css +1 -0
- package/dist/client/assets/app-djZMc7np.js +3 -0
- package/dist/client/assets/archives-BsJLm_8n.js +1 -0
- package/dist/client/assets/batch-edit-ClN1hWOH.js +1 -0
- package/dist/client/assets/batch-edit-UNPFWmV7.css +1 -0
- package/dist/client/assets/browser-agent-rpc-BXhoSh1z-DFmWwqXS.js +1 -0
- package/dist/client/assets/categories-CHNrwy6z.js +1 -0
- package/dist/client/assets/collections-CMorBXJi.js +1 -0
- package/dist/client/assets/colors-CdKJdJxa.js +1 -0
- package/dist/client/assets/config-B2sT3Mep.js +1 -0
- package/dist/client/assets/debug-ChMxlL38.js +1 -0
- package/dist/client/assets/editor-D54vvz-8.js +1 -0
- package/dist/client/assets/index-B089l86K.css +1 -0
- package/dist/client/assets/index-Min1IbcR.js +4 -0
- package/dist/client/assets/nanoid-Cya-tyvy.js +1 -0
- package/dist/client/assets/pages-BrkjA4th.js +1 -0
- package/dist/client/assets/posts-B6FJlERU.js +1 -0
- package/dist/client/assets/rpc-DLTo-XVM.js +4 -0
- package/dist/client/assets/runtime-dom.esm-bundler-COvr_-s-.js +2 -0
- package/dist/client/assets/settings-KjcaeAUC.js +1 -0
- package/dist/client/assets/splitpanes.esm-CnpdH7BM.js +1 -0
- package/dist/client/assets/tags-D8N7EOLY.js +1 -0
- package/dist/client/assets/virtual_intlify-i18n-0-BOFXizJp.js +1 -0
- package/dist/client/assets/virtual_intlify-i18n-1-CPnPqlXp.js +1 -0
- package/{LICENSE → dist/client/icons/LICENSE} +1 -1
- package/dist/client/icons/README.md +2 -0
- package/dist/client/icons/archive.svg +1 -0
- package/dist/client/icons/article.svg +1 -0
- package/dist/client/icons/books.svg +1 -0
- package/dist/client/icons/bug.svg +1 -0
- package/dist/client/icons/folders.svg +1 -0
- package/dist/client/icons/gear-six.svg +1 -0
- package/dist/client/icons/hash.svg +1 -0
- package/dist/client/icons/pencil-simple.svg +1 -0
- package/dist/client/icons/puzzle-piece.svg +1 -0
- package/dist/client/icons/sliders-horizontal.svg +1 -0
- package/dist/client/icons/squares-four.svg +1 -0
- package/dist/client/index.html +10 -5
- package/dist/client-api.d.mts +19 -0
- package/dist/client-api.d.ts +19 -0
- package/dist/client-api.mjs +52 -0
- package/dist/index.d.mts +12 -9
- package/dist/index.d.ts +12 -9
- package/dist/index.mjs +151 -626
- package/dist/node/definition.d.mts +10 -0
- package/dist/node/definition.d.ts +10 -0
- package/dist/node/definition.mjs +1196 -0
- package/dist/node/mcp.d.mts +26 -0
- package/dist/node/mcp.d.ts +26 -0
- package/dist/node/mcp.mjs +250 -0
- package/dist/page.d.mts +12 -0
- package/dist/page.d.ts +12 -0
- package/dist/page.mjs +29 -0
- package/dist/plugin.d.mts +49 -0
- package/dist/plugin.d.ts +49 -0
- package/dist/plugin.mjs +5 -0
- package/dist/shared/devtools.BkRFLW7i.d.mts +58 -0
- package/dist/shared/devtools.BzWtXMed.mjs +3 -0
- package/dist/shared/devtools.CBhjeyeH.mjs +16 -0
- package/dist/shared/devtools.CY2Osfc0.d.ts +181 -0
- package/dist/shared/devtools.Drj3Ivl5.mjs +46 -0
- package/dist/shared/devtools.O-VZ9RtQ.d.mts +30 -0
- package/dist/shared/devtools.O-VZ9RtQ.d.ts +30 -0
- package/dist/shared/devtools.cHv3kjQy.d.mts +181 -0
- package/dist/shared/devtools.qCbHUUKc.d.ts +58 -0
- package/dist/shared/rpc.d.mts +169 -0
- package/dist/shared/rpc.d.ts +169 -0
- package/dist/shared/rpc.mjs +1 -0
- package/package.json +57 -27
- package/rpc.d.ts +1 -100
- package/dist/client/assets/VDButton-BxA3M5c6.js +0 -1
- package/dist/client/assets/VDCheckbox-Rk3U6nn0.js +0 -1
- package/dist/client/assets/VDInput-BtxYqBt3.css +0 -1
- package/dist/client/assets/VDInput-t2XwvZ-t.js +0 -1
- package/dist/client/assets/VDNumberField-CSQG8D_v.js +0 -1
- package/dist/client/assets/VDPostListItem-BqrGZkwk.js +0 -1
- package/dist/client/assets/VDPostPanel-BGOxndtw.js +0 -1
- package/dist/client/assets/VDPostPanel-Bkkd-Lkf.css +0 -1
- package/dist/client/assets/VDSelect-CajFUhEr.js +0 -1
- package/dist/client/assets/VDToggleGroup-Ra7IPGG-.js +0 -1
- package/dist/client/assets/archives-nKpic1Px.js +0 -1
- package/dist/client/assets/batch-edit-BYL9g3v4.css +0 -1
- package/dist/client/assets/batch-edit-xca92IQn.js +0 -1
- package/dist/client/assets/categories-CnW0TeGq.js +0 -1
- package/dist/client/assets/collections-COHpPV6B.js +0 -1
- package/dist/client/assets/config-CiZ--Bsz.js +0 -1
- package/dist/client/assets/index-BTPQPImj.js +0 -6
- package/dist/client/assets/index-BwVVFe6k.css +0 -1
- package/dist/client/assets/pages-B79cXnzi.js +0 -1
- package/dist/client/assets/posts-CnfPAEov.js +0 -1
- package/dist/client/assets/settings-CukGBvgo.js +0 -1
- package/dist/client/assets/splitpanes.esm-B-DN0qHF.js +0 -1
- package/dist/client/assets/tags-BVU3BSid.js +0 -1
- package/dist/client/assets/virtual_intlify-i18n-0-C_fbdMlw.js +0 -1
- package/dist/client/assets/virtual_intlify-i18n-1-CjutLn3A.js +0 -1
- package/dist/client/assets/vue.runtime.esm-bundler-DqDZGG6R.js +0 -4
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { KnownEditor } from 'devframe/utils/launch-editor';
|
|
2
|
+
import { Post } from 'valaxy';
|
|
3
|
+
import { ValaxyPageDebug } from '../page.mjs';
|
|
4
|
+
|
|
5
|
+
interface BlogWindow {
|
|
6
|
+
$frontmatter: any;
|
|
7
|
+
}
|
|
8
|
+
interface ClientOptions {
|
|
9
|
+
userRoot: string;
|
|
10
|
+
siteUrl?: string;
|
|
11
|
+
editor?: KnownEditor;
|
|
12
|
+
editors?: KnownEditor[];
|
|
13
|
+
}
|
|
14
|
+
interface ClientPostList {
|
|
15
|
+
posts: ClientPageData[];
|
|
16
|
+
}
|
|
17
|
+
interface ClientPageData {
|
|
18
|
+
/** Present only in live browser snapshots; never loaded from article files. */
|
|
19
|
+
debug?: ValaxyPageDebug;
|
|
20
|
+
frontmatter: Post;
|
|
21
|
+
/**
|
|
22
|
+
* route.path
|
|
23
|
+
*/
|
|
24
|
+
routePath: string;
|
|
25
|
+
/**
|
|
26
|
+
* 绝对路径
|
|
27
|
+
*/
|
|
28
|
+
filePath: string;
|
|
29
|
+
}
|
|
30
|
+
interface ClientCollectionItem {
|
|
31
|
+
title: string;
|
|
32
|
+
key: string;
|
|
33
|
+
link?: string;
|
|
34
|
+
filePath: string;
|
|
35
|
+
frontmatter: Record<string, any>;
|
|
36
|
+
}
|
|
37
|
+
interface ClientCollectionData {
|
|
38
|
+
key: string;
|
|
39
|
+
title: string;
|
|
40
|
+
cover: string;
|
|
41
|
+
description: string;
|
|
42
|
+
collapse: boolean;
|
|
43
|
+
dirPath: string;
|
|
44
|
+
items: ClientCollectionItem[];
|
|
45
|
+
}
|
|
46
|
+
type BatchFrontmatterOperation = {
|
|
47
|
+
/**
|
|
48
|
+
* 操作类型
|
|
49
|
+
* - set: 设置/更新字段值
|
|
50
|
+
* - delete: 删除字段
|
|
51
|
+
* - rename: 重命名字段(oldKey -> newKey)
|
|
52
|
+
*/
|
|
53
|
+
type: 'set';
|
|
54
|
+
key: string;
|
|
55
|
+
value: unknown;
|
|
56
|
+
} | {
|
|
57
|
+
type: 'delete';
|
|
58
|
+
key: string;
|
|
59
|
+
} | {
|
|
60
|
+
type: 'rename';
|
|
61
|
+
key: string;
|
|
62
|
+
newKey: string;
|
|
63
|
+
};
|
|
64
|
+
interface BatchUpdateResult {
|
|
65
|
+
total: number;
|
|
66
|
+
updated: number;
|
|
67
|
+
errors: {
|
|
68
|
+
filePath: string;
|
|
69
|
+
error: string;
|
|
70
|
+
}[];
|
|
71
|
+
}
|
|
72
|
+
interface ConfigData {
|
|
73
|
+
siteConfig: Record<string, any>;
|
|
74
|
+
valaxyConfig: Record<string, any>;
|
|
75
|
+
themeConfig: Record<string, any>;
|
|
76
|
+
siteConfigExists: boolean;
|
|
77
|
+
valaxyConfigExists: boolean;
|
|
78
|
+
siteConfigPath: string;
|
|
79
|
+
valaxyConfigPath: string;
|
|
80
|
+
}
|
|
81
|
+
interface ConfigUpdateRequest {
|
|
82
|
+
configType: 'site' | 'valaxy' | 'theme';
|
|
83
|
+
fieldPath: string;
|
|
84
|
+
value: any;
|
|
85
|
+
}
|
|
86
|
+
interface CreatePostOptions {
|
|
87
|
+
/** 文章标题 */
|
|
88
|
+
title: string;
|
|
89
|
+
/** 文件路径(相对于 pages/posts/),如 'my-post.md' 或 'sub/my-post.md' */
|
|
90
|
+
path?: string;
|
|
91
|
+
/** 标签 */
|
|
92
|
+
tags?: string[];
|
|
93
|
+
/** 分类 */
|
|
94
|
+
categories?: string[];
|
|
95
|
+
}
|
|
96
|
+
interface UpdateFrontmatterRequest {
|
|
97
|
+
filePath: string;
|
|
98
|
+
frontmatter: Record<string, any>;
|
|
99
|
+
}
|
|
100
|
+
/** Markdown body and its optimistic concurrency token. */
|
|
101
|
+
interface PostContent {
|
|
102
|
+
content: string;
|
|
103
|
+
revision: string;
|
|
104
|
+
}
|
|
105
|
+
interface ServerFunctions {
|
|
106
|
+
/** Read an article body within the project's pages directory. */
|
|
107
|
+
getPostContent: (filePath: string) => Promise<PostContent>;
|
|
108
|
+
/** Save the body while preserving current frontmatter and rejecting stale edits. */
|
|
109
|
+
updatePostContent: (req: {
|
|
110
|
+
filePath: string;
|
|
111
|
+
content: string;
|
|
112
|
+
revision: string;
|
|
113
|
+
}) => Promise<PostContent>;
|
|
114
|
+
/**
|
|
115
|
+
* 获取基础配置
|
|
116
|
+
*/
|
|
117
|
+
getOptions: () => Promise<ClientOptions>;
|
|
118
|
+
/**
|
|
119
|
+
* 获取文章列表
|
|
120
|
+
*/
|
|
121
|
+
getPostList: () => Promise<ClientPostList>;
|
|
122
|
+
/**
|
|
123
|
+
* 获取页面 pageData
|
|
124
|
+
*/
|
|
125
|
+
getPageData: (pagePath: string) => Promise<ClientPageData>;
|
|
126
|
+
/**
|
|
127
|
+
* 获取合集列表
|
|
128
|
+
*/
|
|
129
|
+
getCollectionList: () => Promise<ClientCollectionData[]>;
|
|
130
|
+
/**
|
|
131
|
+
* 更新单个页面的 frontmatter(整体覆盖)
|
|
132
|
+
*/
|
|
133
|
+
updateFrontmatter: (req: UpdateFrontmatterRequest) => Promise<{
|
|
134
|
+
success: boolean;
|
|
135
|
+
}>;
|
|
136
|
+
/**
|
|
137
|
+
* 批量修改文章的 frontmatter
|
|
138
|
+
*/
|
|
139
|
+
batchUpdateFrontmatter: (filePaths: string[], operations: BatchFrontmatterOperation[]) => Promise<BatchUpdateResult>;
|
|
140
|
+
/**
|
|
141
|
+
* 获取配置数据
|
|
142
|
+
*/
|
|
143
|
+
getConfig: () => Promise<ConfigData>;
|
|
144
|
+
/**
|
|
145
|
+
* 更新配置字段
|
|
146
|
+
*/
|
|
147
|
+
updateConfigField: (configType: 'site' | 'valaxy' | 'theme', fieldPath: string, value: any) => Promise<{
|
|
148
|
+
success: boolean;
|
|
149
|
+
error?: string;
|
|
150
|
+
}>;
|
|
151
|
+
/**
|
|
152
|
+
* 运行 frontmatter 迁移
|
|
153
|
+
*/
|
|
154
|
+
runMigration: (filePaths: string[], frontmatter: Record<string, any>) => Promise<{
|
|
155
|
+
success: boolean;
|
|
156
|
+
}>;
|
|
157
|
+
/**
|
|
158
|
+
* 创建新文章
|
|
159
|
+
*/
|
|
160
|
+
createPost: (options: CreatePostOptions) => Promise<{
|
|
161
|
+
success: boolean;
|
|
162
|
+
filePath?: string;
|
|
163
|
+
error?: string;
|
|
164
|
+
}>;
|
|
165
|
+
}
|
|
166
|
+
interface ClientFunctions {
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export type { BatchFrontmatterOperation, BatchUpdateResult, BlogWindow, ClientCollectionData, ClientCollectionItem, ClientFunctions, ClientOptions, ClientPageData, ClientPostList, ConfigData, ConfigUpdateRequest, CreatePostOptions, PostContent, ServerFunctions, UpdateFrontmatterRequest };
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { KnownEditor } from 'devframe/utils/launch-editor';
|
|
2
|
+
import { Post } from 'valaxy';
|
|
3
|
+
import { ValaxyPageDebug } from '../page.js';
|
|
4
|
+
|
|
5
|
+
interface BlogWindow {
|
|
6
|
+
$frontmatter: any;
|
|
7
|
+
}
|
|
8
|
+
interface ClientOptions {
|
|
9
|
+
userRoot: string;
|
|
10
|
+
siteUrl?: string;
|
|
11
|
+
editor?: KnownEditor;
|
|
12
|
+
editors?: KnownEditor[];
|
|
13
|
+
}
|
|
14
|
+
interface ClientPostList {
|
|
15
|
+
posts: ClientPageData[];
|
|
16
|
+
}
|
|
17
|
+
interface ClientPageData {
|
|
18
|
+
/** Present only in live browser snapshots; never loaded from article files. */
|
|
19
|
+
debug?: ValaxyPageDebug;
|
|
20
|
+
frontmatter: Post;
|
|
21
|
+
/**
|
|
22
|
+
* route.path
|
|
23
|
+
*/
|
|
24
|
+
routePath: string;
|
|
25
|
+
/**
|
|
26
|
+
* 绝对路径
|
|
27
|
+
*/
|
|
28
|
+
filePath: string;
|
|
29
|
+
}
|
|
30
|
+
interface ClientCollectionItem {
|
|
31
|
+
title: string;
|
|
32
|
+
key: string;
|
|
33
|
+
link?: string;
|
|
34
|
+
filePath: string;
|
|
35
|
+
frontmatter: Record<string, any>;
|
|
36
|
+
}
|
|
37
|
+
interface ClientCollectionData {
|
|
38
|
+
key: string;
|
|
39
|
+
title: string;
|
|
40
|
+
cover: string;
|
|
41
|
+
description: string;
|
|
42
|
+
collapse: boolean;
|
|
43
|
+
dirPath: string;
|
|
44
|
+
items: ClientCollectionItem[];
|
|
45
|
+
}
|
|
46
|
+
type BatchFrontmatterOperation = {
|
|
47
|
+
/**
|
|
48
|
+
* 操作类型
|
|
49
|
+
* - set: 设置/更新字段值
|
|
50
|
+
* - delete: 删除字段
|
|
51
|
+
* - rename: 重命名字段(oldKey -> newKey)
|
|
52
|
+
*/
|
|
53
|
+
type: 'set';
|
|
54
|
+
key: string;
|
|
55
|
+
value: unknown;
|
|
56
|
+
} | {
|
|
57
|
+
type: 'delete';
|
|
58
|
+
key: string;
|
|
59
|
+
} | {
|
|
60
|
+
type: 'rename';
|
|
61
|
+
key: string;
|
|
62
|
+
newKey: string;
|
|
63
|
+
};
|
|
64
|
+
interface BatchUpdateResult {
|
|
65
|
+
total: number;
|
|
66
|
+
updated: number;
|
|
67
|
+
errors: {
|
|
68
|
+
filePath: string;
|
|
69
|
+
error: string;
|
|
70
|
+
}[];
|
|
71
|
+
}
|
|
72
|
+
interface ConfigData {
|
|
73
|
+
siteConfig: Record<string, any>;
|
|
74
|
+
valaxyConfig: Record<string, any>;
|
|
75
|
+
themeConfig: Record<string, any>;
|
|
76
|
+
siteConfigExists: boolean;
|
|
77
|
+
valaxyConfigExists: boolean;
|
|
78
|
+
siteConfigPath: string;
|
|
79
|
+
valaxyConfigPath: string;
|
|
80
|
+
}
|
|
81
|
+
interface ConfigUpdateRequest {
|
|
82
|
+
configType: 'site' | 'valaxy' | 'theme';
|
|
83
|
+
fieldPath: string;
|
|
84
|
+
value: any;
|
|
85
|
+
}
|
|
86
|
+
interface CreatePostOptions {
|
|
87
|
+
/** 文章标题 */
|
|
88
|
+
title: string;
|
|
89
|
+
/** 文件路径(相对于 pages/posts/),如 'my-post.md' 或 'sub/my-post.md' */
|
|
90
|
+
path?: string;
|
|
91
|
+
/** 标签 */
|
|
92
|
+
tags?: string[];
|
|
93
|
+
/** 分类 */
|
|
94
|
+
categories?: string[];
|
|
95
|
+
}
|
|
96
|
+
interface UpdateFrontmatterRequest {
|
|
97
|
+
filePath: string;
|
|
98
|
+
frontmatter: Record<string, any>;
|
|
99
|
+
}
|
|
100
|
+
/** Markdown body and its optimistic concurrency token. */
|
|
101
|
+
interface PostContent {
|
|
102
|
+
content: string;
|
|
103
|
+
revision: string;
|
|
104
|
+
}
|
|
105
|
+
interface ServerFunctions {
|
|
106
|
+
/** Read an article body within the project's pages directory. */
|
|
107
|
+
getPostContent: (filePath: string) => Promise<PostContent>;
|
|
108
|
+
/** Save the body while preserving current frontmatter and rejecting stale edits. */
|
|
109
|
+
updatePostContent: (req: {
|
|
110
|
+
filePath: string;
|
|
111
|
+
content: string;
|
|
112
|
+
revision: string;
|
|
113
|
+
}) => Promise<PostContent>;
|
|
114
|
+
/**
|
|
115
|
+
* 获取基础配置
|
|
116
|
+
*/
|
|
117
|
+
getOptions: () => Promise<ClientOptions>;
|
|
118
|
+
/**
|
|
119
|
+
* 获取文章列表
|
|
120
|
+
*/
|
|
121
|
+
getPostList: () => Promise<ClientPostList>;
|
|
122
|
+
/**
|
|
123
|
+
* 获取页面 pageData
|
|
124
|
+
*/
|
|
125
|
+
getPageData: (pagePath: string) => Promise<ClientPageData>;
|
|
126
|
+
/**
|
|
127
|
+
* 获取合集列表
|
|
128
|
+
*/
|
|
129
|
+
getCollectionList: () => Promise<ClientCollectionData[]>;
|
|
130
|
+
/**
|
|
131
|
+
* 更新单个页面的 frontmatter(整体覆盖)
|
|
132
|
+
*/
|
|
133
|
+
updateFrontmatter: (req: UpdateFrontmatterRequest) => Promise<{
|
|
134
|
+
success: boolean;
|
|
135
|
+
}>;
|
|
136
|
+
/**
|
|
137
|
+
* 批量修改文章的 frontmatter
|
|
138
|
+
*/
|
|
139
|
+
batchUpdateFrontmatter: (filePaths: string[], operations: BatchFrontmatterOperation[]) => Promise<BatchUpdateResult>;
|
|
140
|
+
/**
|
|
141
|
+
* 获取配置数据
|
|
142
|
+
*/
|
|
143
|
+
getConfig: () => Promise<ConfigData>;
|
|
144
|
+
/**
|
|
145
|
+
* 更新配置字段
|
|
146
|
+
*/
|
|
147
|
+
updateConfigField: (configType: 'site' | 'valaxy' | 'theme', fieldPath: string, value: any) => Promise<{
|
|
148
|
+
success: boolean;
|
|
149
|
+
error?: string;
|
|
150
|
+
}>;
|
|
151
|
+
/**
|
|
152
|
+
* 运行 frontmatter 迁移
|
|
153
|
+
*/
|
|
154
|
+
runMigration: (filePaths: string[], frontmatter: Record<string, any>) => Promise<{
|
|
155
|
+
success: boolean;
|
|
156
|
+
}>;
|
|
157
|
+
/**
|
|
158
|
+
* 创建新文章
|
|
159
|
+
*/
|
|
160
|
+
createPost: (options: CreatePostOptions) => Promise<{
|
|
161
|
+
success: boolean;
|
|
162
|
+
filePath?: string;
|
|
163
|
+
error?: string;
|
|
164
|
+
}>;
|
|
165
|
+
}
|
|
166
|
+
interface ClientFunctions {
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export type { BatchFrontmatterOperation, BatchUpdateResult, BlogWindow, ClientCollectionData, ClientCollectionItem, ClientFunctions, ClientOptions, ClientPageData, ClientPostList, ConfigData, ConfigUpdateRequest, CreatePostOptions, PostContent, ServerFunctions, UpdateFrontmatterRequest };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valaxyjs/devtools",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"description": "DevTools for Valaxy",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -19,6 +19,26 @@
|
|
|
19
19
|
"default": "./dist/index.mjs"
|
|
20
20
|
},
|
|
21
21
|
"./rpc": "./rpc.d.ts",
|
|
22
|
+
"./definition": {
|
|
23
|
+
"types": "./dist/node/definition.d.ts",
|
|
24
|
+
"default": "./dist/node/definition.mjs"
|
|
25
|
+
},
|
|
26
|
+
"./mcp": {
|
|
27
|
+
"types": "./dist/node/mcp.d.ts",
|
|
28
|
+
"default": "./dist/node/mcp.mjs"
|
|
29
|
+
},
|
|
30
|
+
"./page": {
|
|
31
|
+
"types": "./dist/page.d.ts",
|
|
32
|
+
"default": "./dist/page.mjs"
|
|
33
|
+
},
|
|
34
|
+
"./plugin": {
|
|
35
|
+
"types": "./dist/plugin.d.ts",
|
|
36
|
+
"default": "./dist/plugin.mjs"
|
|
37
|
+
},
|
|
38
|
+
"./client-api": {
|
|
39
|
+
"types": "./dist/client-api.d.ts",
|
|
40
|
+
"default": "./dist/client-api.mjs"
|
|
41
|
+
},
|
|
22
42
|
"./client": "./dist/client",
|
|
23
43
|
"./*": "./*"
|
|
24
44
|
},
|
|
@@ -30,48 +50,58 @@
|
|
|
30
50
|
"rpc.d.ts"
|
|
31
51
|
],
|
|
32
52
|
"dependencies": {
|
|
33
|
-
"@
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
53
|
+
"@devframes/agentic": "1.2.0",
|
|
54
|
+
"@devframes/service-open": "1.2.0",
|
|
55
|
+
"@devframes/service-shiki": "1.2.0",
|
|
56
|
+
"@valaxyjs/utils": "1.0.1",
|
|
57
|
+
"@vitejs/devtools-kit": "0.7.5",
|
|
58
|
+
"consola": "^3.4.2",
|
|
59
|
+
"cross-spawn": "^7.0.6",
|
|
60
|
+
"dayjs": "^1.11.23",
|
|
61
|
+
"devframe": "1.2.0",
|
|
62
|
+
"fs-extra": "^11.4.0",
|
|
63
|
+
"gray-matter": "^4.0.3",
|
|
64
|
+
"h3": "2.0.1-rc.32",
|
|
65
|
+
"js-yaml": "^5.4.2",
|
|
66
|
+
"magicast": "^0.5.5",
|
|
41
67
|
"pathe": "^2.0.3",
|
|
42
|
-
"
|
|
68
|
+
"tinyglobby": "^0.2.17",
|
|
69
|
+
"valibot": "1.5.0"
|
|
43
70
|
},
|
|
44
71
|
"devDependencies": {
|
|
72
|
+
"@antfu/design": "0.5.2",
|
|
73
|
+
"@iconify-json/ph": "^1.2.2",
|
|
45
74
|
"@iconify-json/ri": "^1.2.10",
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
75
|
+
"@iconify-json/simple-icons": "^1.2.96",
|
|
76
|
+
"@iconify-json/vscode-icons": "^1.2.78",
|
|
77
|
+
"@types/cross-spawn": "^6.0.6",
|
|
48
78
|
"@types/splitpanes": "^2.2.6",
|
|
49
79
|
"@types/wicg-file-system-access": "^2023.10.7",
|
|
50
|
-
"@unocss/reset": "66.
|
|
51
|
-
"@vitejs/
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
80
|
+
"@unocss/reset": "66.10.5",
|
|
81
|
+
"@vitejs/devtools": "0.7.5",
|
|
82
|
+
"@vitejs/plugin-vue": "^6.0.9",
|
|
83
|
+
"colorjs.io": "^0.6.1",
|
|
84
|
+
"pinia": "^4.0.3",
|
|
85
|
+
"reka-ui": "^2.10.4",
|
|
55
86
|
"splitpanes": "^4.1.2",
|
|
56
87
|
"typescript": "^5.9.3",
|
|
57
88
|
"unbuild": "^3.6.1",
|
|
58
|
-
"unocss": "66.
|
|
59
|
-
"unplugin-vue-components": "
|
|
60
|
-
"vite": "^8.
|
|
61
|
-
"vite-plugin-vue-devtools": "^8.1
|
|
62
|
-
"vue": "^3.5.
|
|
63
|
-
"vue-i18n": "^11.4.
|
|
64
|
-
"vue-router": "^5.1
|
|
89
|
+
"unocss": "66.10.5",
|
|
90
|
+
"unplugin-vue-components": "32.1.0",
|
|
91
|
+
"vite": "^8.3.0",
|
|
92
|
+
"vite-plugin-vue-devtools": "^8.2.1",
|
|
93
|
+
"vue": "^3.5.43",
|
|
94
|
+
"vue-i18n": "^11.4.12",
|
|
95
|
+
"vue-router": "^5.3.1"
|
|
65
96
|
},
|
|
66
97
|
"scripts": {
|
|
67
98
|
"clean": "rimraf dist",
|
|
68
|
-
"build": "rimraf dist && pnpm run build:client &&
|
|
99
|
+
"build": "rimraf dist && pnpm run build:client && pnpm run build:node",
|
|
69
100
|
"build:client": "vite build src/client",
|
|
70
101
|
"build:node": "unbuild",
|
|
71
|
-
"dev": "pnpm run
|
|
102
|
+
"dev": "pnpm run dev:client",
|
|
72
103
|
"dev:client": "vite dev src/client --port 5001",
|
|
73
104
|
"watch:client": "vite build src/client --watch",
|
|
74
|
-
"stub": "unbuild --stub",
|
|
75
105
|
"release": "bumpp && pnpm publish"
|
|
76
106
|
}
|
|
77
107
|
}
|
package/rpc.d.ts
CHANGED
|
@@ -1,100 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export interface BatchFrontmatterOperation {
|
|
4
|
-
/**
|
|
5
|
-
* 操作类型
|
|
6
|
-
* - set: 设置/更新字段值
|
|
7
|
-
* - delete: 删除字段
|
|
8
|
-
* - rename: 重命名字段(oldKey -> newKey)
|
|
9
|
-
*/
|
|
10
|
-
type: 'set' | 'delete' | 'rename'
|
|
11
|
-
key: string
|
|
12
|
-
value?: any
|
|
13
|
-
newKey?: string
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface BatchUpdateResult {
|
|
17
|
-
total: number
|
|
18
|
-
updated: number
|
|
19
|
-
errors: { filePath: string, error: string }[]
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface ConfigData {
|
|
23
|
-
siteConfig: Record<string, any>
|
|
24
|
-
valaxyConfig: Record<string, any>
|
|
25
|
-
themeConfig: Record<string, any>
|
|
26
|
-
siteConfigExists: boolean
|
|
27
|
-
valaxyConfigExists: boolean
|
|
28
|
-
siteConfigPath: string
|
|
29
|
-
valaxyConfigPath: string
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface ConfigUpdateRequest {
|
|
33
|
-
configType: 'site' | 'valaxy' | 'theme'
|
|
34
|
-
fieldPath: string
|
|
35
|
-
value: any
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface CreatePostOptions {
|
|
39
|
-
/** 文章标题 */
|
|
40
|
-
title: string
|
|
41
|
-
/** 文件路径(相对于 pages/posts/),如 'my-post.md' 或 'sub/my-post.md' */
|
|
42
|
-
path?: string
|
|
43
|
-
/** 标签 */
|
|
44
|
-
tags?: string[]
|
|
45
|
-
/** 分类 */
|
|
46
|
-
categories?: string[]
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface UpdateFrontmatterRequest {
|
|
50
|
-
filePath: string
|
|
51
|
-
frontmatter: Record<string, any>
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface ServerFunctions {
|
|
55
|
-
// add: (a: number, b: number) => number
|
|
56
|
-
/**
|
|
57
|
-
* 获取基础配置
|
|
58
|
-
*/
|
|
59
|
-
getOptions: () => Promise<ClientOptions>
|
|
60
|
-
/**
|
|
61
|
-
* 获取文章列表
|
|
62
|
-
*/
|
|
63
|
-
getPostList: () => Promise<ClientPostList>
|
|
64
|
-
/**
|
|
65
|
-
* 获取页面 pageData
|
|
66
|
-
*/
|
|
67
|
-
getPageData: (pagePath: string) => Promise<ClientPageData>
|
|
68
|
-
/**
|
|
69
|
-
* 获取合集列表
|
|
70
|
-
*/
|
|
71
|
-
getCollectionList: () => Promise<ClientCollectionData[]>
|
|
72
|
-
/**
|
|
73
|
-
* 更新单个页面的 frontmatter(整体覆盖)
|
|
74
|
-
*/
|
|
75
|
-
updateFrontmatter: (req: UpdateFrontmatterRequest) => Promise<{ success: boolean }>
|
|
76
|
-
/**
|
|
77
|
-
* 批量修改文章的 frontmatter
|
|
78
|
-
*/
|
|
79
|
-
batchUpdateFrontmatter: (filePaths: string[], operations: BatchFrontmatterOperation[]) => Promise<BatchUpdateResult>
|
|
80
|
-
/**
|
|
81
|
-
* 获取配置数据
|
|
82
|
-
*/
|
|
83
|
-
getConfig: () => Promise<ConfigData>
|
|
84
|
-
/**
|
|
85
|
-
* 更新配置字段
|
|
86
|
-
*/
|
|
87
|
-
updateConfigField: (configType: 'site' | 'valaxy' | 'theme', fieldPath: string, value: any) => Promise<{ success: boolean, error?: string }>
|
|
88
|
-
/**
|
|
89
|
-
* 运行 frontmatter 迁移
|
|
90
|
-
*/
|
|
91
|
-
runMigration: (filePaths: string[], frontmatter: Record<string, any>) => Promise<{ success: boolean }>
|
|
92
|
-
/**
|
|
93
|
-
* 创建新文章
|
|
94
|
-
*/
|
|
95
|
-
createPost: (options: CreatePostOptions) => Promise<{ success: boolean, filePath?: string, error?: string }>
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export interface ClientFunctions {
|
|
99
|
-
// alert: (message: string) => void
|
|
100
|
-
}
|
|
1
|
+
export type * from './dist/shared/rpc.mjs'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as e,St as t,V as n,Z as r,_ as i,g as a,v as o,x as s,y as c,yt as l,z as u}from"./vue.runtime.esm-bundler-DqDZGG6R.js";var d={key:0,class:`i-ri:loader-4-line animate-spin text-sm`},f={key:2},p=s({__name:`VDButton`,props:{variant:{},size:{},disabled:{type:Boolean},loading:{type:Boolean},icon:{},label:{},tag:{}},setup(s){return(p,m)=>(e(),a(n(s.tag||`button`),{class:l([`vd-btn inline-flex items-center justify-center gap-1.5 font-medium transition-colors duration-150 cursor-pointer select-none whitespace-nowrap`,[s.size===`sm`||!s.size?`text-xs px-2 py-1 rounded-md`:`text-sm px-3 py-1.5 rounded-md`,s.variant===`secondary`?`bg-gray-100 text-gray-700 hover:bg-gray-200 dark:bg-gray-800 dark:text-gray-200 dark:hover:bg-gray-700`:s.variant===`warn`?`bg-amber-500 text-white hover:bg-amber-600 dark:bg-amber-600 dark:hover:bg-amber-500`:s.variant===`ghost`?`bg-transparent text-gray-600 hover:bg-gray-100 dark:text-gray-300 dark:hover:bg-gray-800`:`bg-indigo-500 text-white hover:bg-indigo-600 dark:bg-indigo-600 dark:hover:bg-indigo-500`,s.disabled||s.loading?`op-50 pointer-events-none`:``]]),disabled:s.disabled||s.loading},{default:r(()=>[s.loading?(e(),o(`div`,d)):s.icon?(e(),o(`div`,{key:1,class:l([s.icon,`text-sm`])},null,2)):i(``,!0),s.label||p.$slots.default?(e(),o(`span`,f,[u(p.$slots,`default`,{},()=>[c(t(s.label),1)])])):i(``,!0)]),_:3},8,[`class`,`disabled`]))}});export{p as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as e,G as t,I as n,O as r,U as i,V as a,Z as o,_ as s,_t as c,b as l,c as u,ct as d,g as f,h as p,k as m,m as h,s as g,u as _,v,x as y,yt as b,z as x}from"./vue.runtime.esm-bundler-DqDZGG6R.js";import{a as S,d as C,m as w,n as T,u as E,v as D}from"./VDInput-t2XwvZ-t.js";import{A as O,E as k,F as A,L as j,U as M,w as N}from"./index-BTPQPImj.js";function P(t){let n=d(!1);function r(){n.value=!0}function i(r){e(()=>{n.value=!1,t?.(r)})}return{isComposing:n,handleCompositionStart:r,handleCompositionEnd:i}}function F(){return{ALT:`Alt`,ARROW_DOWN:`ArrowDown`,ARROW_LEFT:`ArrowLeft`,ARROW_RIGHT:`ArrowRight`,ARROW_UP:`ArrowUp`,BACKSPACE:`Backspace`,CAPS_LOCK:`CapsLock`,CONTROL:`Control`,DELETE:`Delete`,END:`End`,ENTER:`Enter`,ESCAPE:`Escape`,F1:`F1`,F10:`F10`,F11:`F11`,F12:`F12`,F2:`F2`,F3:`F3`,F4:`F4`,F5:`F5`,F6:`F6`,F7:`F7`,F8:`F8`,F9:`F9`,HOME:`Home`,META:`Meta`,PAGE_DOWN:`PageDown`,PAGE_UP:`PageUp`,SHIFT:`Shift`,SPACE:` `,TAB:`Tab`,CTRL:`Control`,ASTERISK:`*`,SPACE_CODE:`Space`}}var[I,L]=j(`CheckboxGroupRoot`);function R(e){return e===`indeterminate`}function z(e){return R(e)?`indeterminate`:e?`checked`:`unchecked`}var[B,V]=j(`CheckboxRoot`),H=y({inheritAttrs:!1,__name:`CheckboxRoot`,props:{defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},disabled:{type:Boolean,required:!1},value:{type:null,required:!1,default:`on`},id:{type:String,required:!1},trueValue:{type:null,required:!1,default:()=>!0},falseValue:{type:null,required:!1,default:()=>!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let r=e,l=t,{forwardRef:d,currentElement:p}=O(),y=I(null),b=M(r,`modelValue`,l,{defaultValue:r.defaultValue??r.falseValue,passive:r.modelValue===void 0}),k=h(()=>y?.disabled.value||r.disabled),j=h(()=>D(b.value,r.trueValue)),P=h(()=>A(y?.modelValue.value)?b.value===`indeterminate`?`indeterminate`:j.value:w(y.modelValue.value,r.value));function F(){if(A(y?.modelValue.value))b.value===`indeterminate`?b.value=r.trueValue:b.value=j.value?r.falseValue:r.trueValue;else{let e=[...y.modelValue.value||[]];if(w(e,r.value)){let t=e.findIndex(e=>D(e,r.value));e.splice(t,1)}else e.push(r.value);y.modelValue.value=e}}let L=C(p),B=E(),H=i(),U=h(()=>{if(!H[`aria-label`])return r.id&&p.value?document.querySelector(`[for="${r.id}"]`)?.innerText:void 0});return V({disabled:k,state:P}),(e,t)=>(n(),v(_,null,[(n(),f(a(c(y)?.rovingFocus.value?c(T):c(N)),m({...e.$attrs,...c(B)},{id:e.id,ref:c(d),role:`checkbox`,"as-child":e.asChild,as:e.as,type:e.as===`button`?`button`:void 0,"aria-checked":c(R)(P.value)?`mixed`:P.value,"aria-required":e.required,"aria-label":e.$attrs[`aria-label`]||U.value,"data-state":c(z)(P.value),"data-disabled":k.value?``:void 0,disabled:k.value,focusable:c(y)?.rovingFocus.value?!k.value:void 0,onKeydown:g(u(()=>{},[`prevent`]),[`enter`]),onClick:F}),{default:o(()=>[x(e.$slots,`default`,{modelValue:c(b),state:P.value})]),_:3},16,[`id`,`as-child`,`as`,`type`,`aria-checked`,`aria-required`,`aria-label`,`data-state`,`data-disabled`,`disabled`,`focusable`,`onKeydown`])),c(L)&&e.name&&!c(y)?(n(),f(c(S),m({key:0,type:`checkbox`,checked:!!P.value,name:e.name,value:e.value,disabled:k.value,required:e.required},c(B)),null,16,[`checked`,`name`,`value`,`disabled`,`required`])):s(`v-if`,!0)],64))}}),U=y({__name:`CheckboxIndicator`,props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(e){let{forwardRef:t}=O(),r=B();return(e,i)=>(n(),f(c(k),{present:e.forceMount||c(R)(c(r).state.value)||c(r).state.value===!0},{default:o(()=>[l(c(N),m({ref:c(t),"data-state":c(z)(c(r).state.value),"data-disabled":c(r).disabled.value?``:void 0,style:{pointerEvents:`none`},"as-child":e.asChild,as:e.as},e.$attrs),{default:o(()=>[x(e.$slots,`default`)]),_:3},16,[`data-state`,`data-disabled`,`as-child`,`as`])]),_:3},8,[`present`]))}}),W={class:`flex-1`},G=y({__name:`VDMessage`,props:{severity:{},closable:{type:Boolean}},setup(e){let t=d(!0);return(r,i)=>t.value?(n(),v(`div`,{key:0,class:b([`vd-message flex items-center gap-2 px-3 py-2 rounded-lg text-sm`,[e.severity===`success`?`bg-green-50 text-green-700 dark:bg-green-900/20 dark:text-green-400 border border-green-200 dark:border-green-800`:e.severity===`error`?`bg-red-50 text-red-700 dark:bg-red-900/20 dark:text-red-400 border border-red-200 dark:border-red-800`:e.severity===`warn`?`bg-amber-50 text-amber-700 dark:bg-amber-900/20 dark:text-amber-400 border border-amber-200 dark:border-amber-800`:`bg-blue-50 text-blue-700 dark:bg-blue-900/20 dark:text-blue-400 border border-blue-200 dark:border-blue-800`]])},[p(`div`,{class:b([[e.severity===`success`?`i-ri:check-line`:e.severity===`error`?`i-ri:error-warning-line`:e.severity===`warn`?`i-ri:alert-line`:`i-ri:information-line`],`text-base flex-shrink-0`])},null,2),p(`div`,W,[x(r.$slots,`default`)]),e.closable?(n(),v(`button`,{key:0,class:`i-ri:close-line op-50 hover:op-100 cursor-pointer transition-opacity`,onClick:i[0]||=e=>t.value=!1})):s(``,!0)],2)):s(``,!0)}}),K=y({__name:`VDCheckbox`,props:r({disabled:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let r=t(e,`modelValue`);return(t,i)=>(n(),f(c(H),{modelValue:r.value,"onUpdate:modelValue":i[0]||=e=>r.value=e,disabled:e.disabled,class:b([`vd-checkbox inline-flex items-center justify-center w-4 h-4 border border-gray-300 dark:border-gray-600 rounded bg-white dark:bg-gray-900 transition-colors duration-150 cursor-pointer`,[r.value?`bg-indigo-500 border-indigo-500 dark:bg-indigo-600 dark:border-indigo-600`:``,e.disabled?`op-50 cursor-not-allowed`:``]])},{default:o(()=>[l(c(U),{class:`text-white flex items-center justify-center`},{default:o(()=>[...i[1]||=[p(`div`,{class:`i-ri:check-line text-xs`},null,-1)]]),_:1})]),_:1},8,[`modelValue`,`disabled`,`class`]))}});export{P as i,G as n,F as r,K as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.vd-input[data-v-9886437f]:focus,.vd-input-wrapper[data-v-9886437f]:focus-within{box-shadow:0 0 0 2px var(--un-ring-color);border-color:#6366f1}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as e,E as t,G as n,I as r,J as i,K as a,L as o,N as s,O as c,P as l,Q as u,R as d,S as f,Z as p,_ as m,_t as h,b as g,ct as _,g as v,h as y,ht as b,i as x,it as S,k as C,m as w,mt as ee,ot as te,q as T,u as ne,v as E,w as D,x as O,yt as k,z as A}from"./vue.runtime.esm-bundler-DqDZGG6R.js";import{A as re,B as ie,D as ae,F as oe,G as se,J as j,K as ce,L as le,M as ue,N as de,P as fe,Q as pe,T as me,U as he,q as M,t as ge,w as N,x as _e,z as P}from"./index-BTPQPImj.js";function F(e){return typeof e==`string`?`'${e}'`:new ve().serialize(e)}var ve=function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?e.localeCompare(t):n===`number`&&r===`number`?e-t:String.prototype.localeCompare.call(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}return this.serializeObjectEntries(r,Object.entries(e))}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t?.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e}();function I(e,t){return e===t||F(e)===F(t)}function ye(e,t=-1/0,n=1/0){return Math.min(n,Math.max(t,e))}function L(e,t){let n=e,r=t.toString(),i=r.indexOf(`.`),a=i>=0?r.length-i:0;if(a>0){let e=10**a;n=Math.round(n*e)/e}return n}function be(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(Number.isNaN(t)?0:t))%r,a=L(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return Number.isNaN(t)?!Number.isNaN(n)&&a>n&&(a=Math.floor(L(n/r,r))*r):a<t?a=t:!Number.isNaN(n)&&a>n&&(a=t+Math.floor(L((n-t)/r,r))*r),a=L(a,r),a}function R(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function xe(e,t){return oe(e)?!1:Array.isArray(e)?e.some(e=>I(e,t)):I(e,t)}var Se=ce(()=>{let t=_(new Map),n=_(),r=w(()=>{for(let e of t.value.values())if(e)return!0;return!1}),i=fe({scrollBody:_(!0)}),a=null,o=()=>{document.body.style.paddingRight=``,document.body.style.marginRight=``,document.body.style.pointerEvents=``,document.documentElement.style.removeProperty(`--scrollbar-width`),document.body.style.overflow=n.value??``,j&&a?.(),n.value=void 0};return T(r,(t,s)=>{if(!M)return;if(!t){s&&o();return}n.value===void 0&&(n.value=document.body.style.overflow);let c=window.innerWidth-document.documentElement.clientWidth,l={padding:c,margin:0},u=i.scrollBody?.value?typeof i.scrollBody.value==`object`?de({padding:i.scrollBody.value.padding===!0?c:i.scrollBody.value.padding,margin:i.scrollBody.value.margin===!0?c:i.scrollBody.value.margin},l):l:{padding:0,margin:0};c>0&&(document.body.style.paddingRight=typeof u.padding==`number`?`${u.padding}px`:String(u.padding),document.body.style.marginRight=typeof u.margin==`number`?`${u.margin}px`:String(u.margin),document.documentElement.style.setProperty(`--scrollbar-width`,`${c}px`),document.body.style.overflow=`hidden`),j&&(a=ie(document,`touchmove`,e=>we(e),{passive:!1})),e(()=>{r.value&&(document.body.style.pointerEvents=`none`,document.body.style.overflow=`hidden`)})},{immediate:!0,flush:`sync`}),t});function Ce(e){let t=Math.random().toString(36).substring(2,7),n=Se();n.value.set(t,e??!1);let r=w({get:()=>n.value.get(t)??!1,set:e=>n.value.set(t,e)});return pe(()=>{n.value.delete(t)}),r}function z(e){let t=window.getComputedStyle(e);if(t.overflowX===`scroll`||t.overflowY===`scroll`||t.overflowX===`auto`&&e.clientWidth<e.scrollWidth||t.overflowY===`auto`&&e.clientHeight<e.scrollHeight)return!0;{let t=e.parentNode;return!(t instanceof Element)||t.tagName===`BODY`?!1:z(t)}}function we(e){let t=e||window.event,n=t.target;return n instanceof Element&&z(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}var B=0;function Te(){i(e=>{if(!M)return;let t=document.querySelectorAll(`[data-reka-focus-guard]`);document.body.insertAdjacentElement(`afterbegin`,t[0]??V()),document.body.insertAdjacentElement(`beforeend`,t[1]??V()),B++,e(()=>{B===1&&document.querySelectorAll(`[data-reka-focus-guard]`).forEach(e=>e.remove()),B--})})}function V(){let e=document.createElement(`span`);return e.setAttribute(`data-reka-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}function Ee(e){return w(()=>b(e)?!!P(e)?.closest(`form`):!0)}function De(){let e=f()?.vnode?.scopeId;return e?{[e]:``}:{}}var Oe=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},H=new WeakMap,U=new WeakMap,W={},G=0,K=function(e){return e&&(e.host||K(e.parentNode))},ke=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=K(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Ae=function(e,t,n,r){var i=ke(t,Array.isArray(e)?e:[e]);W[n]||(W[n]=new WeakMap);var a=W[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(H.get(e)||0)+1,l=(a.get(e)||0)+1;H.set(e,c),a.set(e,l),o.push(e),c===1&&i&&U.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),G++,function(){o.forEach(function(e){var t=H.get(e)-1,i=a.get(e)-1;H.set(e,t),a.set(e,i),t||(U.has(e)||e.removeAttribute(r),U.delete(e)),i||e.removeAttribute(n)}),G--,G||(H=new WeakMap,H=new WeakMap,U=new WeakMap,W={})}},je=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Oe(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Ae(r,i,n,`aria-hidden`)):function(){return null}};function Me(e){let t;T(()=>P(e),e=>{let n=!1;try{n=!!e?.closest(`[popover]:not(:popover-open)`)}catch{}e&&!n?t=je(e):t&&t()}),l(()=>{t&&t()})}function q(){let e=_();return{primitiveElement:e,currentElement:w(()=>[`#text`,`#comment`].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:P(e))}}var Ne=se(()=>_([]));function Pe(){let e=Ne();return{add(t){let n=e.value[0];t!==n&&n?.pause(),e.value=J(e.value,t),e.value.unshift(t)},remove(t){e.value=J(e.value,t),e.value[0]?.resume()}}}function J(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}var Y=`focusScope.autoFocusOnMount`,X=`focusScope.autoFocusOnUnmount`,Z={bubbles:!1,cancelable:!0};function Fe(e,{select:t=!1}={}){let n=R();for(let r of e)if(Q(r,{select:t}),R()!==n)return!0}function Ie(e){let t=Le(e);return[Re(t,e),Re(t.reverse(),e)]}function Le(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Re(e,t){for(let n of e)if(!ze(n,{upTo:t}))return n}function ze(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function Be(e){return e instanceof HTMLInputElement&&`select`in e}function Q(e,{select:t=!1}={}){if(e&&e.focus){let n=R();e.focus({preventScroll:!0}),e!==n&&Be(e)&&t&&e.select()}}var Ve=O({__name:`FocusScope`,props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},present:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`mountAutoFocus`,`unmountAutoFocus`],setup(t,{emit:n}){let a=t,o=n,{currentRef:s,currentElement:c}=re(),l=_(null),u=Pe(),d=te({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});i(e=>{if(!M)return;let t=c.value;if(!a.trapped)return;function n(e){if(d.paused||!t)return;let n=e.target;t.contains(n)?l.value=n:Q(l.value,{select:!0})}function r(e){if(d.paused||!t)return;let n=e.relatedTarget;n!==null&&(t.contains(n)||Q(l.value,{select:!0}))}function i(e){let n=l.value;n!==null&&e.some(e=>e.removedNodes.length>0)&&(t.contains(n)||Q(t))}document.addEventListener(`focusin`,n),document.addEventListener(`focusout`,r);let o=new MutationObserver(i);t&&o.observe(t,{childList:!0,subtree:!0}),e(()=>{document.removeEventListener(`focusin`,n),document.removeEventListener(`focusout`,r),o.disconnect()})});function f(e,t){let n=new CustomEvent(Y,Z),r=e=>o(`mountAutoFocus`,e);e.addEventListener(Y,r),e.dispatchEvent(n),e.removeEventListener(Y,r),n.defaultPrevented||(Fe(Le(e),{select:!0}),R()===t&&Q(e))}i(async t=>{let n=c.value;if(await e(),!n)return;a.present!==!1&&u.add(d);let r=R();!n.contains(r)&&a.present!==!1&&f(n,r),t(()=>{let e=new CustomEvent(X,Z),t=e=>{o(`unmountAutoFocus`,e)};n.addEventListener(X,t),n.dispatchEvent(e),n.setAttribute(`data-focus-scope-unmounting`,``),setTimeout(()=>{e.defaultPrevented||Q(r??document.body,{select:!0}),n.removeEventListener(X,t),u.remove(d),n.removeAttribute(`data-focus-scope-unmounting`)},0)})}),T(()=>a.present,async(t,n)=>{if(!M)return;if(t===!1&&n===!0){u.remove(d);return}if(t!==!0||n!==!1)return;u.add(d),await e();let r=c.value;if(!r)return;let i=R();r.contains(i)||f(r,i)});function m(e){if(!a.loop&&!a.trapped||d.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=R();if(t&&n){let t=e.currentTarget,[r,i]=Ie(t);r&&i?!e.shiftKey&&n===i?(e.preventDefault(),a.loop&&Q(r,{select:!0})):e.shiftKey&&n===r&&(e.preventDefault(),a.loop&&Q(i,{select:!0})):n===t&&e.preventDefault()}}return(e,t)=>(r(),v(h(N),{ref_key:`currentRef`,ref:s,tabindex:`-1`,"as-child":e.asChild,as:e.as,onKeydown:m},{default:p(()=>[A(e.$slots,`default`)]),_:3},8,[`as-child`,`as`]))}}),He=`data-reka-collection-item`;function $(e={}){let{key:n=``,isProvider:r=!1}=e,a=`${n}CollectionProvider`,s;if(r){let e=_(new Map);s={collectionRef:_(),itemMap:e},o(a,s)}else s=t(a);let c=(e=!1)=>{let t=s.collectionRef.value;if(!t)return[];let n=Array.from(t.querySelectorAll(`[${He}]`)),r=new Map(n.map((e,t)=>[e,t])),i=Array.from(s.itemMap.value.values()).sort((e,t)=>(r.get(e.ref)??-1)-(r.get(t.ref)??-1));return e?i:i.filter(e=>e.ref.dataset.disabled!==``)},l=O({name:`CollectionSlot`,inheritAttrs:!1,setup(e,{slots:t,attrs:n}){let{primitiveElement:r,currentElement:i}=q();return T(i,()=>{s.collectionRef.value=i.value}),()=>D(me,{ref:r,...n},t)}}),u=O({name:`CollectionItem`,inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(e,{slots:t,attrs:n}){let{primitiveElement:r,currentElement:a}=q();return i(t=>{if(a.value){let n=S(a.value);s.itemMap.value.set(n,{ref:a.value,value:e.value}),t(()=>s.itemMap.value.delete(n))}}),()=>D(me,{...n,[He]:``,ref:r},t)}});return{getItems:c,reactiveItems:w(()=>Array.from(s.itemMap.value.values())),itemMapSize:w(()=>s.itemMap.value.size),CollectionSlot:l,CollectionItem:u}}var Ue=O({inheritAttrs:!1,__name:`VisuallyHiddenInputBubble`,props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:`fully-hidden`}},setup(e){let t=e,{primitiveElement:n,currentElement:i}=q();return T(w(()=>t.checked??t.value),(e,t)=>{if(!i.value)return;let n=i.value,r=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(r,`value`).set;if(a&&e!==t){let t=new Event(`input`,{bubbles:!0}),r=new Event(`change`,{bubbles:!0});a.call(n,e),n.dispatchEvent(t),n.dispatchEvent(r)}}),(e,i)=>(r(),v(_e,C({ref_key:`primitiveElement`,ref:n},{...t,...e.$attrs},{as:`input`}),null,16))}}),We=O({inheritAttrs:!1,__name:`VisuallyHiddenInput`,props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:`fully-hidden`}},setup(e){let t=e,n=w(()=>typeof t.value==`object`&&Array.isArray(t.value)&&t.value.length===0&&t.required),i=w(()=>typeof t.value==`string`||typeof t.value==`number`||typeof t.value==`boolean`||t.value===null||t.value===void 0?[{name:t.name,value:t.value}]:typeof t.value==`object`&&Array.isArray(t.value)?t.value.flatMap((e,n)=>typeof e==`object`?Object.entries(e).map(([e,r])=>({name:`${t.name}[${n}][${e}]`,value:r})):{name:`${t.name}[${n}]`,value:e}):t.value!==null&&typeof t.value==`object`&&!Array.isArray(t.value)?Object.entries(t.value).map(([e,n])=>({name:`${t.name}[${e}]`,value:n})):[]);return(e,a)=>(r(),E(ne,null,[m(` We render single input if it's required `),n.value?(r(),v(Ue,C({key:e.name},{...t,...e.$attrs},{name:e.name,value:e.value}),null,16,[`name`,`value`])):(r(!0),E(ne,{key:1},d(i.value,n=>(r(),v(Ue,C({key:n.name},{ref_for:!0},{...t,...e.$attrs},{name:n.name,value:n.value}),null,16,[`name`,`value`]))),128))],2112))}}),Ge=`rovingFocusGroup.onEntryFocus`,Ke={bubbles:!1,cancelable:!0},qe={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Je(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function Ye(e,t,n){let r=Je(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return qe[r]}function Xe(e,t=!1){let n=R();for(let r of e)if(r===n||(r.focus({preventScroll:t}),R()!==n))return}function Ze(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var[Qe,$e]=le(`RovingFocusGroup`),et=O({__name:`RovingFocusGroup`,props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`entryFocus`,`update:currentTabStopId`],setup(e,{expose:t,emit:n}){let i=e,a=n,{loop:o,orientation:s,dir:c}=ee(i),l=ue(c),u=he(i,`currentTabStopId`,a,{defaultValue:i.defaultCurrentTabStopId,passive:i.currentTabStopId===void 0}),d=_(!1),f=_(!1),m=_(0),{getItems:y,CollectionSlot:b}=$({isProvider:!0});function x(e){let t=!f.value;if(e.currentTarget&&e.target===e.currentTarget&&t&&!d.value){let t=new CustomEvent(Ge,Ke);if(e.currentTarget.dispatchEvent(t),a(`entryFocus`,t),!t.defaultPrevented){let e=y().map(e=>e.ref).filter(e=>e.dataset.disabled!==``);Xe([e.find(e=>e.getAttribute(`data-active`)===``),e.find(e=>e.getAttribute(`data-highlighted`)===``),e.find(e=>e.id===u.value),...e].filter(Boolean),i.preventScrollOnEntryFocus)}}f.value=!1}function S(){setTimeout(()=>{f.value=!1},1)}return t({getItems:y}),$e({loop:o,dir:l,orientation:s,currentTabStopId:u,onItemFocus:e=>{u.value=e},onItemShiftTab:()=>{d.value=!0},onFocusableItemAdd:()=>{m.value++},onFocusableItemRemove:()=>{m.value--}}),(e,t)=>(r(),v(h(b),null,{default:p(()=>[g(h(N),{tabindex:d.value||m.value===0?-1:0,"data-orientation":h(s),as:e.as,"as-child":e.asChild,dir:h(l),style:{outline:`none`},onMousedown:t[0]||=e=>f.value=!0,onMouseup:S,onFocus:x,onBlur:t[1]||=e=>d.value=!1},{default:p(()=>[A(e.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`as`,`as-child`,`dir`])]),_:3}))}}),tt=O({__name:`RovingFocusItem`,props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(t){let n=t,i=Qe(),a=ae(),o=w(()=>n.tabStopId||a),c=w(()=>i.currentTabStopId.value===o.value),{getItems:u,CollectionItem:d}=$();s(()=>{n.focusable&&i.onFocusableItemAdd()}),l(()=>{n.focusable&&i.onFocusableItemRemove()}),T(()=>n.focusable,(e,t)=>{e!==t&&(e?i.onFocusableItemAdd():i.onFocusableItemRemove())});function f(t){if(t.key===`Tab`&&t.shiftKey){i.onItemShiftTab();return}if(t.target!==t.currentTarget)return;let r=Ye(t,i.orientation.value,i.dir.value);if(r!==void 0){if(t.metaKey||t.ctrlKey||t.altKey||!n.allowShiftKey&&t.shiftKey)return;t.preventDefault();let a=[...u().map(e=>e.ref).filter(e=>e.dataset.disabled!==``)];if(r===`last`)a.reverse();else if(r===`prev`||r===`next`){r===`prev`&&a.reverse();let e=a.indexOf(t.currentTarget);a=i.loop.value?Ze(a,e+1):a.slice(e+1)}e(()=>Xe(a))}}return(e,t)=>(r(),v(h(d),null,{default:p(()=>[g(h(N),{tabindex:c.value?0:-1,"data-orientation":h(i).orientation.value,"data-active":e.active?``:void 0,"data-disabled":e.focusable?void 0:``,as:e.as,"as-child":e.asChild,onMousedown:t[0]||=t=>{e.focusable?h(i).onItemFocus(o.value):t.preventDefault()},onFocus:t[1]||=e=>h(i).onItemFocus(o.value),onKeydown:f},{default:p(()=>[A(e.$slots,`default`)]),_:3},8,[`tabindex`,`data-orientation`,`data-active`,`data-disabled`,`as`,`as-child`])]),_:3}))}}),nt=[`type`,`placeholder`,`list`,`disabled`],rt=[`type`,`placeholder`,`list`,`disabled`],it=ge(O({__name:`VDInput`,props:c({placeholder:{},size:{},type:{},list:{},disabled:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=n(e,`modelValue`),i=a();return(n,a)=>h(i).suffix||h(i).prefix?(r(),E(`div`,{key:0,class:k([`vd-input-wrapper flex items-center border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900 rounded-md transition-colors duration-150`,[e.disabled?`op-50 cursor-not-allowed`:``]]),style:{"--un-ring-color":`rgb(99 102 241 / 0.4)`}},[h(i).prefix?(r(),E(`span`,{key:0,class:k([`text-gray-400 dark:text-gray-500 select-none shrink-0 pl-2`,[e.size===`sm`||!e.size?`text-xs`:`text-sm`]])},[A(n.$slots,`prefix`,{},void 0,!0)],2)):m(``,!0),u(y(`input`,{"onUpdate:modelValue":a[0]||=e=>t.value=e,type:e.type||`text`,placeholder:e.placeholder,list:e.list,disabled:e.disabled,class:k([`flex-1 min-w-0 bg-transparent text-gray-700 dark:text-gray-200 outline-none`,[e.size===`sm`||!e.size?`text-xs py-1 ${h(i).prefix?`pl-0.5`:`pl-2`} ${h(i).suffix?`pr-0.5`:`pr-2`}`:`text-sm py-1.5 ${h(i).prefix?`pl-0.5`:`pl-2.5`} ${h(i).suffix?`pr-0.5`:`pr-2.5`}`]])},null,10,nt),[[x,t.value]]),h(i).suffix?(r(),E(`span`,{key:1,class:k([`text-gray-400 dark:text-gray-500 select-none shrink-0 pr-2`,[e.size===`sm`||!e.size?`text-xs`:`text-sm`]])},[A(n.$slots,`suffix`,{},void 0,!0)],2)):m(``,!0)],2)):u((r(),E(`input`,{key:1,"onUpdate:modelValue":a[1]||=e=>t.value=e,type:e.type||`text`,placeholder:e.placeholder,list:e.list,disabled:e.disabled,class:k([`vd-input border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900 text-gray-700 dark:text-gray-200 rounded-md transition-colors duration-150 outline-none`,[e.size===`sm`||!e.size?`text-xs px-2 py-1`:`text-sm px-2.5 py-1.5`,e.disabled?`op-50 cursor-not-allowed`:``]]),style:{"--un-ring-color":`rgb(99 102 241 / 0.4)`}},null,10,rt)),[[x,t.value]])}}),[[`__scopeId`,`data-v-9886437f`]]);export{be as _,We as a,q as c,Ee as d,Te as f,ye as g,R as h,Ye as i,Me as l,xe as m,tt as n,$ as o,Ce as p,et as r,Ve as s,it as t,De as u,I as v};
|