@shwfed/config 2.3.4 → 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 -12
- package/dist/runtime/components/actions/components/group.vue +46 -12
- package/dist/runtime/components/actions/components/group.vue.d.ts +12 -12
- package/dist/runtime/components/actions/config.d.vue.ts +13 -13
- package/dist/runtime/components/actions/config.vue +206 -16
- package/dist/runtime/components/actions/config.vue.d.ts +13 -13
- 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 +399 -196
- package/dist/runtime/components/actions/schema.js +13 -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 -10
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/config.vue.d.ts +10 -10
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/runtime.d.vue.ts +10 -10
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/runtime.vue.d.ts +10 -10
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/schema.d.ts +115 -58
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +10 -10
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +10 -10
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +10 -10
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +10 -10
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +120 -63
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/config.d.vue.ts +10 -10
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/config.vue.d.ts +10 -10
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/schema.d.ts +115 -58
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.d.ts +115 -58
- 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/schema.d.ts +125 -68
- package/package.json +1 -1
|
@@ -1,68 +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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
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>;
|
|
66
134
|
ActionItem: Schema.Struct<{
|
|
67
135
|
id: Schema.refine<string, typeof Schema.String>;
|
|
68
136
|
groupId: Schema.refine<string, typeof Schema.String>;
|
|
@@ -121,28 +189,49 @@ export declare function ActionSchemaFields(configure: (env: Environment) => void
|
|
|
121
189
|
}>]>;
|
|
122
190
|
icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
123
191
|
hideTitle: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
124
|
-
items: Schema.Array$<Schema.
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
locale:
|
|
138
|
-
message:
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
variant
|
|
144
|
-
action
|
|
145
|
-
}
|
|
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>>;
|
|
146
235
|
}>;
|
|
147
236
|
fields: {
|
|
148
237
|
size: Schema.optionalWith<Schema.Literal<["default", "sm", "xs"]>, {
|
|
@@ -156,64 +245,121 @@ export declare function ActionSchemaFields(configure: (env: Environment) => void
|
|
|
156
245
|
id: Schema.refine<string, typeof Schema.String>;
|
|
157
246
|
variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
|
|
158
247
|
}>>;
|
|
159
|
-
items: Schema.Array$<Schema.
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
title:
|
|
163
|
-
locale:
|
|
164
|
-
message:
|
|
165
|
-
}
|
|
166
|
-
locale:
|
|
167
|
-
message:
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
id:
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}
|
|
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>>;
|
|
217
363
|
};
|
|
218
364
|
};
|
|
219
365
|
export declare function ActionsConfig(configure: (env: Environment) => void): Schema.Struct<{
|
|
@@ -228,64 +374,121 @@ export declare function ActionsConfig(configure: (env: Environment) => void): Sc
|
|
|
228
374
|
id: Schema.refine<string, typeof Schema.String>;
|
|
229
375
|
variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
|
|
230
376
|
}>>;
|
|
231
|
-
items: Schema.Array$<Schema.
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
title:
|
|
235
|
-
locale:
|
|
236
|
-
message:
|
|
237
|
-
}
|
|
238
|
-
locale:
|
|
239
|
-
message:
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
}
|
|
255
|
-
id:
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
}
|
|
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>>;
|
|
289
492
|
kind: Schema.tag<"shwfed.component.action">;
|
|
290
493
|
}>;
|
|
291
494
|
export declare function defaultActionsConfig(): ActionsConfigValue;
|