@shwfed/config 2.3.3 → 2.3.5
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/module.json +1 -1
- package/dist/runtime/components/actions/components/group.d.vue.ts +12 -10
- package/dist/runtime/components/actions/components/group.vue +47 -13
- package/dist/runtime/components/actions/components/group.vue.d.ts +12 -10
- package/dist/runtime/components/actions/config.d.vue.ts +13 -11
- package/dist/runtime/components/actions/config.vue +252 -35
- package/dist/runtime/components/actions/config.vue.d.ts +13 -11
- package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/config.d.vue.ts +37 -0
- package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/config.vue +61 -0
- package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/config.vue.d.ts +37 -0
- package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/runtime.d.vue.ts +7 -0
- package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/runtime.vue +22 -0
- package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/runtime.vue.d.ts +7 -0
- package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/schema.d.ts +23 -0
- package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/schema.js +29 -0
- package/dist/runtime/components/actions/schema.d.ts +400 -193
- package/dist/runtime/components/actions/schema.js +22 -4
- package/dist/runtime/components/actions/utils/resolve.d.ts +15 -0
- package/dist/runtime/components/actions/utils/resolve.js +45 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/config.d.vue.ts +10 -8
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/config.vue.d.ts +10 -8
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/runtime.d.vue.ts +10 -8
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/runtime.vue.d.ts +10 -8
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/schema.d.ts +115 -57
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +10 -8
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +10 -8
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +10 -8
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +10 -8
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +120 -61
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/config.d.vue.ts +10 -8
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/config.vue.d.ts +10 -8
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/schema.d.ts +115 -57
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.d.ts +115 -57
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/runtime.vue +4 -4
- package/dist/runtime/components/table/schema.d.ts +125 -65
- package/dist/runtime/components/table/utils/row-reorder.js +16 -5
- package/dist/runtime/vendor/cel-js/CLAUDE.md +5 -1
- package/dist/runtime/vendor/cel-js/PROMPT.md +19 -0
- package/dist/runtime/vendor/cel-js/lib/evaluator.js +2 -0
- package/dist/runtime/vendor/cel-js/lib/form-builtins.d.ts +2 -0
- package/dist/runtime/vendor/cel-js/lib/form-builtins.js +58 -0
- package/package.json +1 -1
|
@@ -1,67 +1,136 @@
|
|
|
1
1
|
import { Schema } from 'effect';
|
|
2
2
|
import type { Environment } from '../../vendor/cel-js/lib/index.js';
|
|
3
|
+
export type RegistryItemValue = Readonly<{
|
|
4
|
+
id: string;
|
|
5
|
+
groupId: string;
|
|
6
|
+
type: string;
|
|
7
|
+
compatibilityDate: string;
|
|
8
|
+
}> & Readonly<Record<string, unknown>>;
|
|
9
|
+
export type RegistrySubItemValue = Readonly<{
|
|
10
|
+
id: string;
|
|
11
|
+
type: string;
|
|
12
|
+
compatibilityDate: string;
|
|
13
|
+
}> & Readonly<Record<string, unknown>>;
|
|
3
14
|
export declare function ActionSchemaFields(configure: (env: Environment) => void): {
|
|
4
15
|
ActionGroup: Schema.Struct<{
|
|
5
16
|
id: Schema.refine<string, typeof Schema.String>;
|
|
6
17
|
variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
|
|
7
18
|
}>;
|
|
8
|
-
ActionGroupItem: Schema.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
title:
|
|
12
|
-
locale:
|
|
13
|
-
message:
|
|
14
|
-
}
|
|
15
|
-
locale:
|
|
16
|
-
message:
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
id:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
id:
|
|
44
|
-
title:
|
|
45
|
-
locale:
|
|
46
|
-
message:
|
|
47
|
-
}
|
|
48
|
-
locale:
|
|
49
|
-
message:
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
19
|
+
ActionGroupItem: Schema.Schema<RegistryItemValue | {
|
|
20
|
+
readonly disabled?: string | undefined;
|
|
21
|
+
readonly id: string;
|
|
22
|
+
readonly title: readonly [{
|
|
23
|
+
readonly locale: "zh";
|
|
24
|
+
readonly message: string;
|
|
25
|
+
}, ...{
|
|
26
|
+
readonly locale: "en" | "ja" | "ko";
|
|
27
|
+
readonly message: string;
|
|
28
|
+
}[]];
|
|
29
|
+
readonly icon?: string | undefined;
|
|
30
|
+
readonly hidden?: string | undefined;
|
|
31
|
+
readonly tooltip?: readonly [{
|
|
32
|
+
readonly locale: "zh";
|
|
33
|
+
readonly message: string;
|
|
34
|
+
}, ...{
|
|
35
|
+
readonly locale: "en" | "ja" | "ko";
|
|
36
|
+
readonly message: string;
|
|
37
|
+
}[]] | undefined;
|
|
38
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
39
|
+
readonly action?: any;
|
|
40
|
+
readonly groupId: string;
|
|
41
|
+
readonly hideTitle?: boolean | undefined;
|
|
42
|
+
} | {
|
|
43
|
+
readonly id: string;
|
|
44
|
+
readonly title: readonly [{
|
|
45
|
+
readonly locale: "zh";
|
|
46
|
+
readonly message: string;
|
|
47
|
+
}, ...{
|
|
48
|
+
readonly locale: "en" | "ja" | "ko";
|
|
49
|
+
readonly message: string;
|
|
50
|
+
}[]];
|
|
51
|
+
readonly icon?: string | undefined;
|
|
52
|
+
readonly items: readonly (RegistrySubItemValue | {
|
|
53
|
+
readonly disabled?: string | undefined;
|
|
54
|
+
readonly id: string;
|
|
55
|
+
readonly title: readonly [{
|
|
56
|
+
readonly locale: "zh";
|
|
57
|
+
readonly message: string;
|
|
58
|
+
}, ...{
|
|
59
|
+
readonly locale: "en" | "ja" | "ko";
|
|
60
|
+
readonly message: string;
|
|
61
|
+
}[]];
|
|
62
|
+
readonly icon?: string | undefined;
|
|
63
|
+
readonly hidden?: string | undefined;
|
|
64
|
+
readonly tooltip?: readonly [{
|
|
65
|
+
readonly locale: "zh";
|
|
66
|
+
readonly message: string;
|
|
67
|
+
}, ...{
|
|
68
|
+
readonly locale: "en" | "ja" | "ko";
|
|
69
|
+
readonly message: string;
|
|
70
|
+
}[]] | undefined;
|
|
71
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
72
|
+
readonly action?: any;
|
|
73
|
+
})[];
|
|
74
|
+
readonly groupId: string;
|
|
75
|
+
readonly hideTitle?: boolean | undefined;
|
|
76
|
+
}, RegistryItemValue | {
|
|
77
|
+
readonly id: string;
|
|
78
|
+
readonly title: readonly [{
|
|
79
|
+
readonly locale: "zh";
|
|
80
|
+
readonly message: string;
|
|
81
|
+
}, ...{
|
|
82
|
+
readonly locale: "en" | "ja" | "ko";
|
|
83
|
+
readonly message: string;
|
|
84
|
+
}[]];
|
|
85
|
+
readonly groupId: string;
|
|
86
|
+
readonly disabled?: string | undefined;
|
|
87
|
+
readonly icon?: string | undefined;
|
|
88
|
+
readonly hidden?: string | undefined;
|
|
89
|
+
readonly tooltip?: readonly [{
|
|
90
|
+
readonly locale: "zh";
|
|
91
|
+
readonly message: string;
|
|
92
|
+
}, ...{
|
|
93
|
+
readonly locale: "en" | "ja" | "ko";
|
|
94
|
+
readonly message: string;
|
|
95
|
+
}[]] | undefined;
|
|
96
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
97
|
+
readonly action?: any;
|
|
98
|
+
readonly hideTitle?: boolean | undefined;
|
|
99
|
+
} | {
|
|
100
|
+
readonly id: string;
|
|
101
|
+
readonly title: readonly [{
|
|
102
|
+
readonly locale: "zh";
|
|
103
|
+
readonly message: string;
|
|
104
|
+
}, ...{
|
|
105
|
+
readonly locale: "en" | "ja" | "ko";
|
|
106
|
+
readonly message: string;
|
|
107
|
+
}[]];
|
|
108
|
+
readonly items: readonly (RegistrySubItemValue | {
|
|
109
|
+
readonly id: string;
|
|
110
|
+
readonly title: readonly [{
|
|
111
|
+
readonly locale: "zh";
|
|
112
|
+
readonly message: string;
|
|
113
|
+
}, ...{
|
|
114
|
+
readonly locale: "en" | "ja" | "ko";
|
|
115
|
+
readonly message: string;
|
|
116
|
+
}[]];
|
|
117
|
+
readonly disabled?: string | undefined;
|
|
118
|
+
readonly icon?: string | undefined;
|
|
119
|
+
readonly hidden?: string | undefined;
|
|
120
|
+
readonly tooltip?: readonly [{
|
|
121
|
+
readonly locale: "zh";
|
|
122
|
+
readonly message: string;
|
|
123
|
+
}, ...{
|
|
124
|
+
readonly locale: "en" | "ja" | "ko";
|
|
125
|
+
readonly message: string;
|
|
126
|
+
}[]] | undefined;
|
|
127
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
128
|
+
readonly action?: any;
|
|
129
|
+
})[];
|
|
130
|
+
readonly groupId: string;
|
|
131
|
+
readonly icon?: string | undefined;
|
|
132
|
+
readonly hideTitle?: boolean | undefined;
|
|
133
|
+
}, never>;
|
|
65
134
|
ActionItem: Schema.Struct<{
|
|
66
135
|
id: Schema.refine<string, typeof Schema.String>;
|
|
67
136
|
groupId: Schema.refine<string, typeof Schema.String>;
|
|
@@ -119,28 +188,50 @@ export declare function ActionSchemaFields(configure: (env: Environment) => void
|
|
|
119
188
|
message: Schema.SchemaClass<string, string, never>;
|
|
120
189
|
}>]>;
|
|
121
190
|
icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
191
|
+
hideTitle: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
192
|
+
items: Schema.Array$<Schema.Schema<RegistrySubItemValue | {
|
|
193
|
+
readonly disabled?: string | undefined;
|
|
194
|
+
readonly id: string;
|
|
195
|
+
readonly title: readonly [{
|
|
196
|
+
readonly locale: "zh";
|
|
197
|
+
readonly message: string;
|
|
198
|
+
}, ...{
|
|
199
|
+
readonly locale: "en" | "ja" | "ko";
|
|
200
|
+
readonly message: string;
|
|
201
|
+
}[]];
|
|
202
|
+
readonly icon?: string | undefined;
|
|
203
|
+
readonly hidden?: string | undefined;
|
|
204
|
+
readonly tooltip?: readonly [{
|
|
205
|
+
readonly locale: "zh";
|
|
206
|
+
readonly message: string;
|
|
207
|
+
}, ...{
|
|
208
|
+
readonly locale: "en" | "ja" | "ko";
|
|
209
|
+
readonly message: string;
|
|
210
|
+
}[]] | undefined;
|
|
211
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
212
|
+
readonly action?: any;
|
|
213
|
+
}, RegistrySubItemValue | {
|
|
214
|
+
readonly id: string;
|
|
215
|
+
readonly title: readonly [{
|
|
216
|
+
readonly locale: "zh";
|
|
217
|
+
readonly message: string;
|
|
218
|
+
}, ...{
|
|
219
|
+
readonly locale: "en" | "ja" | "ko";
|
|
220
|
+
readonly message: string;
|
|
221
|
+
}[]];
|
|
222
|
+
readonly disabled?: string | undefined;
|
|
223
|
+
readonly icon?: string | undefined;
|
|
224
|
+
readonly hidden?: string | undefined;
|
|
225
|
+
readonly tooltip?: readonly [{
|
|
226
|
+
readonly locale: "zh";
|
|
227
|
+
readonly message: string;
|
|
228
|
+
}, ...{
|
|
229
|
+
readonly locale: "en" | "ja" | "ko";
|
|
230
|
+
readonly message: string;
|
|
231
|
+
}[]] | undefined;
|
|
232
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
233
|
+
readonly action?: any;
|
|
234
|
+
}, never>>;
|
|
144
235
|
}>;
|
|
145
236
|
fields: {
|
|
146
237
|
size: Schema.optionalWith<Schema.Literal<["default", "sm", "xs"]>, {
|
|
@@ -154,63 +245,121 @@ export declare function ActionSchemaFields(configure: (env: Environment) => void
|
|
|
154
245
|
id: Schema.refine<string, typeof Schema.String>;
|
|
155
246
|
variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
|
|
156
247
|
}>>;
|
|
157
|
-
items: Schema.Array$<Schema.
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
title:
|
|
161
|
-
locale:
|
|
162
|
-
message:
|
|
163
|
-
}
|
|
164
|
-
locale:
|
|
165
|
-
message:
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}
|
|
181
|
-
id:
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
id:
|
|
193
|
-
title:
|
|
194
|
-
locale:
|
|
195
|
-
message:
|
|
196
|
-
}
|
|
197
|
-
locale:
|
|
198
|
-
message:
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
248
|
+
items: Schema.Array$<Schema.Schema<RegistryItemValue | {
|
|
249
|
+
readonly disabled?: string | undefined;
|
|
250
|
+
readonly id: string;
|
|
251
|
+
readonly title: readonly [{
|
|
252
|
+
readonly locale: "zh";
|
|
253
|
+
readonly message: string;
|
|
254
|
+
}, ...{
|
|
255
|
+
readonly locale: "en" | "ja" | "ko";
|
|
256
|
+
readonly message: string;
|
|
257
|
+
}[]];
|
|
258
|
+
readonly icon?: string | undefined;
|
|
259
|
+
readonly hidden?: string | undefined;
|
|
260
|
+
readonly tooltip?: readonly [{
|
|
261
|
+
readonly locale: "zh";
|
|
262
|
+
readonly message: string;
|
|
263
|
+
}, ...{
|
|
264
|
+
readonly locale: "en" | "ja" | "ko";
|
|
265
|
+
readonly message: string;
|
|
266
|
+
}[]] | undefined;
|
|
267
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
268
|
+
readonly action?: any;
|
|
269
|
+
readonly groupId: string;
|
|
270
|
+
readonly hideTitle?: boolean | undefined;
|
|
271
|
+
} | {
|
|
272
|
+
readonly id: string;
|
|
273
|
+
readonly title: readonly [{
|
|
274
|
+
readonly locale: "zh";
|
|
275
|
+
readonly message: string;
|
|
276
|
+
}, ...{
|
|
277
|
+
readonly locale: "en" | "ja" | "ko";
|
|
278
|
+
readonly message: string;
|
|
279
|
+
}[]];
|
|
280
|
+
readonly icon?: string | undefined;
|
|
281
|
+
readonly items: readonly (RegistrySubItemValue | {
|
|
282
|
+
readonly disabled?: string | undefined;
|
|
283
|
+
readonly id: string;
|
|
284
|
+
readonly title: readonly [{
|
|
285
|
+
readonly locale: "zh";
|
|
286
|
+
readonly message: string;
|
|
287
|
+
}, ...{
|
|
288
|
+
readonly locale: "en" | "ja" | "ko";
|
|
289
|
+
readonly message: string;
|
|
290
|
+
}[]];
|
|
291
|
+
readonly icon?: string | undefined;
|
|
292
|
+
readonly hidden?: string | undefined;
|
|
293
|
+
readonly tooltip?: readonly [{
|
|
294
|
+
readonly locale: "zh";
|
|
295
|
+
readonly message: string;
|
|
296
|
+
}, ...{
|
|
297
|
+
readonly locale: "en" | "ja" | "ko";
|
|
298
|
+
readonly message: string;
|
|
299
|
+
}[]] | undefined;
|
|
300
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
301
|
+
readonly action?: any;
|
|
302
|
+
})[];
|
|
303
|
+
readonly groupId: string;
|
|
304
|
+
readonly hideTitle?: boolean | undefined;
|
|
305
|
+
}, RegistryItemValue | {
|
|
306
|
+
readonly id: string;
|
|
307
|
+
readonly title: readonly [{
|
|
308
|
+
readonly locale: "zh";
|
|
309
|
+
readonly message: string;
|
|
310
|
+
}, ...{
|
|
311
|
+
readonly locale: "en" | "ja" | "ko";
|
|
312
|
+
readonly message: string;
|
|
313
|
+
}[]];
|
|
314
|
+
readonly groupId: string;
|
|
315
|
+
readonly disabled?: string | undefined;
|
|
316
|
+
readonly icon?: string | undefined;
|
|
317
|
+
readonly hidden?: string | undefined;
|
|
318
|
+
readonly tooltip?: readonly [{
|
|
319
|
+
readonly locale: "zh";
|
|
320
|
+
readonly message: string;
|
|
321
|
+
}, ...{
|
|
322
|
+
readonly locale: "en" | "ja" | "ko";
|
|
323
|
+
readonly message: string;
|
|
324
|
+
}[]] | undefined;
|
|
325
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
326
|
+
readonly action?: any;
|
|
327
|
+
readonly hideTitle?: boolean | undefined;
|
|
328
|
+
} | {
|
|
329
|
+
readonly id: string;
|
|
330
|
+
readonly title: readonly [{
|
|
331
|
+
readonly locale: "zh";
|
|
332
|
+
readonly message: string;
|
|
333
|
+
}, ...{
|
|
334
|
+
readonly locale: "en" | "ja" | "ko";
|
|
335
|
+
readonly message: string;
|
|
336
|
+
}[]];
|
|
337
|
+
readonly items: readonly (RegistrySubItemValue | {
|
|
338
|
+
readonly id: string;
|
|
339
|
+
readonly title: readonly [{
|
|
340
|
+
readonly locale: "zh";
|
|
341
|
+
readonly message: string;
|
|
342
|
+
}, ...{
|
|
343
|
+
readonly locale: "en" | "ja" | "ko";
|
|
344
|
+
readonly message: string;
|
|
345
|
+
}[]];
|
|
346
|
+
readonly disabled?: string | undefined;
|
|
347
|
+
readonly icon?: string | undefined;
|
|
348
|
+
readonly hidden?: string | undefined;
|
|
349
|
+
readonly tooltip?: readonly [{
|
|
350
|
+
readonly locale: "zh";
|
|
351
|
+
readonly message: string;
|
|
352
|
+
}, ...{
|
|
353
|
+
readonly locale: "en" | "ja" | "ko";
|
|
354
|
+
readonly message: string;
|
|
355
|
+
}[]] | undefined;
|
|
356
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
357
|
+
readonly action?: any;
|
|
358
|
+
})[];
|
|
359
|
+
readonly groupId: string;
|
|
360
|
+
readonly icon?: string | undefined;
|
|
361
|
+
readonly hideTitle?: boolean | undefined;
|
|
362
|
+
}, never>>;
|
|
214
363
|
};
|
|
215
364
|
};
|
|
216
365
|
export declare function ActionsConfig(configure: (env: Environment) => void): Schema.Struct<{
|
|
@@ -225,63 +374,121 @@ export declare function ActionsConfig(configure: (env: Environment) => void): Sc
|
|
|
225
374
|
id: Schema.refine<string, typeof Schema.String>;
|
|
226
375
|
variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
|
|
227
376
|
}>>;
|
|
228
|
-
items: Schema.Array$<Schema.
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
title:
|
|
232
|
-
locale:
|
|
233
|
-
message:
|
|
234
|
-
}
|
|
235
|
-
locale:
|
|
236
|
-
message:
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
}
|
|
252
|
-
id:
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
id:
|
|
264
|
-
title:
|
|
265
|
-
locale:
|
|
266
|
-
message:
|
|
267
|
-
}
|
|
268
|
-
locale:
|
|
269
|
-
message:
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
377
|
+
items: Schema.Array$<Schema.Schema<RegistryItemValue | {
|
|
378
|
+
readonly disabled?: string | undefined;
|
|
379
|
+
readonly id: string;
|
|
380
|
+
readonly title: readonly [{
|
|
381
|
+
readonly locale: "zh";
|
|
382
|
+
readonly message: string;
|
|
383
|
+
}, ...{
|
|
384
|
+
readonly locale: "en" | "ja" | "ko";
|
|
385
|
+
readonly message: string;
|
|
386
|
+
}[]];
|
|
387
|
+
readonly icon?: string | undefined;
|
|
388
|
+
readonly hidden?: string | undefined;
|
|
389
|
+
readonly tooltip?: readonly [{
|
|
390
|
+
readonly locale: "zh";
|
|
391
|
+
readonly message: string;
|
|
392
|
+
}, ...{
|
|
393
|
+
readonly locale: "en" | "ja" | "ko";
|
|
394
|
+
readonly message: string;
|
|
395
|
+
}[]] | undefined;
|
|
396
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
397
|
+
readonly action?: any;
|
|
398
|
+
readonly groupId: string;
|
|
399
|
+
readonly hideTitle?: boolean | undefined;
|
|
400
|
+
} | {
|
|
401
|
+
readonly id: string;
|
|
402
|
+
readonly title: readonly [{
|
|
403
|
+
readonly locale: "zh";
|
|
404
|
+
readonly message: string;
|
|
405
|
+
}, ...{
|
|
406
|
+
readonly locale: "en" | "ja" | "ko";
|
|
407
|
+
readonly message: string;
|
|
408
|
+
}[]];
|
|
409
|
+
readonly icon?: string | undefined;
|
|
410
|
+
readonly items: readonly (RegistrySubItemValue | {
|
|
411
|
+
readonly disabled?: string | undefined;
|
|
412
|
+
readonly id: string;
|
|
413
|
+
readonly title: readonly [{
|
|
414
|
+
readonly locale: "zh";
|
|
415
|
+
readonly message: string;
|
|
416
|
+
}, ...{
|
|
417
|
+
readonly locale: "en" | "ja" | "ko";
|
|
418
|
+
readonly message: string;
|
|
419
|
+
}[]];
|
|
420
|
+
readonly icon?: string | undefined;
|
|
421
|
+
readonly hidden?: string | undefined;
|
|
422
|
+
readonly tooltip?: readonly [{
|
|
423
|
+
readonly locale: "zh";
|
|
424
|
+
readonly message: string;
|
|
425
|
+
}, ...{
|
|
426
|
+
readonly locale: "en" | "ja" | "ko";
|
|
427
|
+
readonly message: string;
|
|
428
|
+
}[]] | undefined;
|
|
429
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
430
|
+
readonly action?: any;
|
|
431
|
+
})[];
|
|
432
|
+
readonly groupId: string;
|
|
433
|
+
readonly hideTitle?: boolean | undefined;
|
|
434
|
+
}, RegistryItemValue | {
|
|
435
|
+
readonly id: string;
|
|
436
|
+
readonly title: readonly [{
|
|
437
|
+
readonly locale: "zh";
|
|
438
|
+
readonly message: string;
|
|
439
|
+
}, ...{
|
|
440
|
+
readonly locale: "en" | "ja" | "ko";
|
|
441
|
+
readonly message: string;
|
|
442
|
+
}[]];
|
|
443
|
+
readonly groupId: string;
|
|
444
|
+
readonly disabled?: string | undefined;
|
|
445
|
+
readonly icon?: string | undefined;
|
|
446
|
+
readonly hidden?: string | undefined;
|
|
447
|
+
readonly tooltip?: readonly [{
|
|
448
|
+
readonly locale: "zh";
|
|
449
|
+
readonly message: string;
|
|
450
|
+
}, ...{
|
|
451
|
+
readonly locale: "en" | "ja" | "ko";
|
|
452
|
+
readonly message: string;
|
|
453
|
+
}[]] | undefined;
|
|
454
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
455
|
+
readonly action?: any;
|
|
456
|
+
readonly hideTitle?: boolean | undefined;
|
|
457
|
+
} | {
|
|
458
|
+
readonly id: string;
|
|
459
|
+
readonly title: readonly [{
|
|
460
|
+
readonly locale: "zh";
|
|
461
|
+
readonly message: string;
|
|
462
|
+
}, ...{
|
|
463
|
+
readonly locale: "en" | "ja" | "ko";
|
|
464
|
+
readonly message: string;
|
|
465
|
+
}[]];
|
|
466
|
+
readonly items: readonly (RegistrySubItemValue | {
|
|
467
|
+
readonly id: string;
|
|
468
|
+
readonly title: readonly [{
|
|
469
|
+
readonly locale: "zh";
|
|
470
|
+
readonly message: string;
|
|
471
|
+
}, ...{
|
|
472
|
+
readonly locale: "en" | "ja" | "ko";
|
|
473
|
+
readonly message: string;
|
|
474
|
+
}[]];
|
|
475
|
+
readonly disabled?: string | undefined;
|
|
476
|
+
readonly icon?: string | undefined;
|
|
477
|
+
readonly hidden?: string | undefined;
|
|
478
|
+
readonly tooltip?: readonly [{
|
|
479
|
+
readonly locale: "zh";
|
|
480
|
+
readonly message: string;
|
|
481
|
+
}, ...{
|
|
482
|
+
readonly locale: "en" | "ja" | "ko";
|
|
483
|
+
readonly message: string;
|
|
484
|
+
}[]] | undefined;
|
|
485
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
486
|
+
readonly action?: any;
|
|
487
|
+
})[];
|
|
488
|
+
readonly groupId: string;
|
|
489
|
+
readonly icon?: string | undefined;
|
|
490
|
+
readonly hideTitle?: boolean | undefined;
|
|
491
|
+
}, never>>;
|
|
285
492
|
kind: Schema.tag<"shwfed.component.action">;
|
|
286
493
|
}>;
|
|
287
494
|
export declare function defaultActionsConfig(): ActionsConfigValue;
|