@shwfed/config 2.3.4 → 2.3.6
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 +28 -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,7 +1,7 @@
|
|
|
1
1
|
import { Option, Schema, SchemaAST } from "effect";
|
|
2
2
|
import { Expression } from "../../share/expression.js";
|
|
3
3
|
import { Locale } from "../../share/locale.js";
|
|
4
|
-
import { allButtonSchemas } from "./utils/resolve.js";
|
|
4
|
+
import { allButtonSchemas, allItemSchemas } from "./utils/resolve.js";
|
|
5
5
|
import { md } from "../../share/markdown.js";
|
|
6
6
|
const KIND = "shwfed.component.action";
|
|
7
7
|
const Variant = Schema.Literal("default", "primary", "destructive", "ghost", "link").annotations({
|
|
@@ -82,6 +82,11 @@ export function ActionSchemaFields(configure) {
|
|
|
82
82
|
}).annotations({
|
|
83
83
|
title: "DropdownAction"
|
|
84
84
|
});
|
|
85
|
+
const itemSchemas = allItemSchemas(configure);
|
|
86
|
+
const DropdownActionSubItem = Schema.Union(
|
|
87
|
+
DropdownAction,
|
|
88
|
+
...itemSchemas
|
|
89
|
+
);
|
|
85
90
|
const DropdownActionItem = Schema.Struct({
|
|
86
91
|
id: Schema.UUID.annotations({ description: "\u4E0B\u62C9\u6309\u94AE\u552F\u4E00\u6807\u8BC6" }),
|
|
87
92
|
groupId: Schema.UUID.annotations({ description: "\u6240\u5C5E\u6309\u94AE\u7EC4\u6807\u8BC6" }),
|
|
@@ -99,13 +104,17 @@ export function ActionSchemaFields(configure) {
|
|
|
99
104
|
- 收集归纳多种操作:直接下载作为主要按钮,其他下载形式(如异步下载、自定义下载)放置于其后
|
|
100
105
|
`
|
|
101
106
|
})),
|
|
102
|
-
items: Schema.Array(
|
|
103
|
-
description: "\u4E0B\u62C9\u6309\u94AE\u5185\u7684\u6309\u94AE\u5217\u8868"
|
|
107
|
+
items: Schema.Array(DropdownActionSubItem).annotations({
|
|
108
|
+
description: "\u4E0B\u62C9\u6309\u94AE\u5185\u7684\u6309\u94AE\u6216\u5176\u4ED6\u9879\u5217\u8868"
|
|
104
109
|
})
|
|
105
110
|
}).annotations({
|
|
106
111
|
title: "DropdownActionItem"
|
|
107
112
|
});
|
|
108
|
-
const ActionGroupItem = Schema.Union(
|
|
113
|
+
const ActionGroupItem = Schema.Union(
|
|
114
|
+
ActionItem,
|
|
115
|
+
DropdownActionItem,
|
|
116
|
+
...itemSchemas
|
|
117
|
+
);
|
|
109
118
|
const ActionGroup = Schema.Struct({
|
|
110
119
|
id: Schema.UUID.annotations({ description: "\u6309\u94AE\u7EC4\u552F\u4E00\u6807\u8BC6" }),
|
|
111
120
|
variant: Schema.optional(Variant.annotations({
|
|
@@ -29,6 +29,21 @@ export type ButtonEntry = Readonly<{
|
|
|
29
29
|
export declare const BUTTONS: ReadonlyArray<ButtonEntry>;
|
|
30
30
|
export declare function allButtonSchemas(configure: (env: Environment) => void): ReadonlyArray<AnySchema>;
|
|
31
31
|
export declare function findButton(type: string, compatibilityDate: string): ButtonEntry | undefined;
|
|
32
|
+
export type ItemMetadata = Readonly<{
|
|
33
|
+
name: string;
|
|
34
|
+
icon: string;
|
|
35
|
+
}>;
|
|
36
|
+
export type ItemEntry = Readonly<{
|
|
37
|
+
type: string;
|
|
38
|
+
compatibilityDate: string;
|
|
39
|
+
metadata: ItemMetadata;
|
|
40
|
+
schema: SchemaFactory;
|
|
41
|
+
config: Component;
|
|
42
|
+
runtime: Component;
|
|
43
|
+
}>;
|
|
44
|
+
export declare const ITEMS: ReadonlyArray<ItemEntry>;
|
|
45
|
+
export declare function allItemSchemas(configure: (env: Environment) => void): ReadonlyArray<AnySchema>;
|
|
46
|
+
export declare function findItem(type: string, compatibilityDate: string): ItemEntry | undefined;
|
|
32
47
|
export declare function interpolateMarkdown(source: string, $cel: CelEvaluator): string;
|
|
33
48
|
type ToastStyle = 'success' | 'error' | 'warning' | 'info';
|
|
34
49
|
/**
|
|
@@ -72,6 +72,51 @@ export function allButtonSchemas(configure) {
|
|
|
72
72
|
export function findButton(type, compatibilityDate) {
|
|
73
73
|
return BUTTONS.find((a) => a.type === type && a.compatibilityDate === compatibilityDate);
|
|
74
74
|
}
|
|
75
|
+
const itemSchemaModules = import.meta.glob(
|
|
76
|
+
"../items/*/*/schema.{ts,js}",
|
|
77
|
+
{ eager: true, exhaustive: true }
|
|
78
|
+
);
|
|
79
|
+
const itemConfigModuleLoaders = import.meta.glob(
|
|
80
|
+
"../items/*/*/config.vue",
|
|
81
|
+
{ exhaustive: true }
|
|
82
|
+
);
|
|
83
|
+
const itemRuntimeModuleLoaders = import.meta.glob(
|
|
84
|
+
"../items/*/*/runtime.vue",
|
|
85
|
+
{ exhaustive: true }
|
|
86
|
+
);
|
|
87
|
+
const itemConfigModules = Object.fromEntries(
|
|
88
|
+
Object.entries(itemConfigModuleLoaders).map(([path, loader]) => [
|
|
89
|
+
path,
|
|
90
|
+
defineAsyncComponent(loader)
|
|
91
|
+
])
|
|
92
|
+
);
|
|
93
|
+
const itemRuntimeModules = Object.fromEntries(
|
|
94
|
+
Object.entries(itemRuntimeModuleLoaders).map(([path, loader]) => [
|
|
95
|
+
path,
|
|
96
|
+
defineAsyncComponent(loader)
|
|
97
|
+
])
|
|
98
|
+
);
|
|
99
|
+
const itemRegistry = defineRegistry({
|
|
100
|
+
hostName: "shwfed-actions",
|
|
101
|
+
dirSegment: "items",
|
|
102
|
+
schemaModules: itemSchemaModules,
|
|
103
|
+
configModules: itemConfigModules,
|
|
104
|
+
runtimeModules: itemRuntimeModules
|
|
105
|
+
});
|
|
106
|
+
export const ITEMS = itemRegistry.ENTRIES.map((e) => ({
|
|
107
|
+
type: e.type,
|
|
108
|
+
compatibilityDate: e.compatibilityDate,
|
|
109
|
+
metadata: e.module.metadata,
|
|
110
|
+
schema: e.module.schema,
|
|
111
|
+
config: e.config,
|
|
112
|
+
runtime: e.runtime
|
|
113
|
+
}));
|
|
114
|
+
export function allItemSchemas(configure) {
|
|
115
|
+
return ITEMS.map((entry) => entry.schema(configure));
|
|
116
|
+
}
|
|
117
|
+
export function findItem(type, compatibilityDate) {
|
|
118
|
+
return ITEMS.find((i) => i.type === type && i.compatibilityDate === compatibilityDate);
|
|
119
|
+
}
|
|
75
120
|
const INTERPOLATION_RE = /\{\{(.*?)\}\}/gs;
|
|
76
121
|
export function interpolateMarkdown(source, $cel) {
|
|
77
122
|
return source.replace(INTERPOLATION_RE, (_, expr) => {
|
package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/config.d.vue.ts
CHANGED
|
@@ -12,7 +12,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
12
12
|
readonly style?: string | undefined;
|
|
13
13
|
readonly gap: number;
|
|
14
14
|
readonly kind: "shwfed.component.action";
|
|
15
|
-
readonly items: readonly ({
|
|
15
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistryItemValue | {
|
|
16
16
|
readonly disabled?: string | undefined;
|
|
17
17
|
readonly id: string;
|
|
18
18
|
readonly title: readonly [{
|
|
@@ -45,9 +45,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
45
45
|
readonly message: string;
|
|
46
46
|
}[]];
|
|
47
47
|
readonly icon?: string | undefined;
|
|
48
|
-
readonly
|
|
49
|
-
readonly hideTitle?: boolean | undefined;
|
|
50
|
-
readonly items: readonly {
|
|
48
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
51
49
|
readonly disabled?: string | undefined;
|
|
52
50
|
readonly id: string;
|
|
53
51
|
readonly title: readonly [{
|
|
@@ -68,7 +66,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
68
66
|
}[]] | undefined;
|
|
69
67
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
70
68
|
readonly action?: any;
|
|
71
|
-
}[];
|
|
69
|
+
})[];
|
|
70
|
+
readonly groupId: string;
|
|
71
|
+
readonly hideTitle?: boolean | undefined;
|
|
72
72
|
})[];
|
|
73
73
|
readonly groups: readonly {
|
|
74
74
|
readonly id: string;
|
|
@@ -86,7 +86,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
86
86
|
readonly style?: string | undefined;
|
|
87
87
|
readonly gap: number;
|
|
88
88
|
readonly kind: "shwfed.component.action";
|
|
89
|
-
readonly items: readonly ({
|
|
89
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistryItemValue | {
|
|
90
90
|
readonly disabled?: string | undefined;
|
|
91
91
|
readonly id: string;
|
|
92
92
|
readonly title: readonly [{
|
|
@@ -119,9 +119,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
119
119
|
readonly message: string;
|
|
120
120
|
}[]];
|
|
121
121
|
readonly icon?: string | undefined;
|
|
122
|
-
readonly
|
|
123
|
-
readonly hideTitle?: boolean | undefined;
|
|
124
|
-
readonly items: readonly {
|
|
122
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
125
123
|
readonly disabled?: string | undefined;
|
|
126
124
|
readonly id: string;
|
|
127
125
|
readonly title: readonly [{
|
|
@@ -142,7 +140,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
142
140
|
}[]] | undefined;
|
|
143
141
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
144
142
|
readonly action?: any;
|
|
145
|
-
}[];
|
|
143
|
+
})[];
|
|
144
|
+
readonly groupId: string;
|
|
145
|
+
readonly hideTitle?: boolean | undefined;
|
|
146
146
|
})[];
|
|
147
147
|
readonly groups: readonly {
|
|
148
148
|
readonly id: string;
|
package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/config.vue.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
12
12
|
readonly style?: string | undefined;
|
|
13
13
|
readonly gap: number;
|
|
14
14
|
readonly kind: "shwfed.component.action";
|
|
15
|
-
readonly items: readonly ({
|
|
15
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistryItemValue | {
|
|
16
16
|
readonly disabled?: string | undefined;
|
|
17
17
|
readonly id: string;
|
|
18
18
|
readonly title: readonly [{
|
|
@@ -45,9 +45,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
45
45
|
readonly message: string;
|
|
46
46
|
}[]];
|
|
47
47
|
readonly icon?: string | undefined;
|
|
48
|
-
readonly
|
|
49
|
-
readonly hideTitle?: boolean | undefined;
|
|
50
|
-
readonly items: readonly {
|
|
48
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
51
49
|
readonly disabled?: string | undefined;
|
|
52
50
|
readonly id: string;
|
|
53
51
|
readonly title: readonly [{
|
|
@@ -68,7 +66,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
68
66
|
}[]] | undefined;
|
|
69
67
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
70
68
|
readonly action?: any;
|
|
71
|
-
}[];
|
|
69
|
+
})[];
|
|
70
|
+
readonly groupId: string;
|
|
71
|
+
readonly hideTitle?: boolean | undefined;
|
|
72
72
|
})[];
|
|
73
73
|
readonly groups: readonly {
|
|
74
74
|
readonly id: string;
|
|
@@ -86,7 +86,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
86
86
|
readonly style?: string | undefined;
|
|
87
87
|
readonly gap: number;
|
|
88
88
|
readonly kind: "shwfed.component.action";
|
|
89
|
-
readonly items: readonly ({
|
|
89
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistryItemValue | {
|
|
90
90
|
readonly disabled?: string | undefined;
|
|
91
91
|
readonly id: string;
|
|
92
92
|
readonly title: readonly [{
|
|
@@ -119,9 +119,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
119
119
|
readonly message: string;
|
|
120
120
|
}[]];
|
|
121
121
|
readonly icon?: string | undefined;
|
|
122
|
-
readonly
|
|
123
|
-
readonly hideTitle?: boolean | undefined;
|
|
124
|
-
readonly items: readonly {
|
|
122
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
125
123
|
readonly disabled?: string | undefined;
|
|
126
124
|
readonly id: string;
|
|
127
125
|
readonly title: readonly [{
|
|
@@ -142,7 +140,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
142
140
|
}[]] | undefined;
|
|
143
141
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
144
142
|
readonly action?: any;
|
|
145
|
-
}[];
|
|
143
|
+
})[];
|
|
144
|
+
readonly groupId: string;
|
|
145
|
+
readonly hideTitle?: boolean | undefined;
|
|
146
146
|
})[];
|
|
147
147
|
readonly groups: readonly {
|
|
148
148
|
readonly id: string;
|
package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/runtime.d.vue.ts
CHANGED
|
@@ -17,7 +17,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
17
17
|
readonly style?: string | undefined;
|
|
18
18
|
readonly gap: number;
|
|
19
19
|
readonly kind: "shwfed.component.action";
|
|
20
|
-
readonly items: readonly ({
|
|
20
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistryItemValue | {
|
|
21
21
|
readonly disabled?: string | undefined;
|
|
22
22
|
readonly id: string;
|
|
23
23
|
readonly title: readonly [{
|
|
@@ -50,9 +50,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
50
50
|
readonly message: string;
|
|
51
51
|
}[]];
|
|
52
52
|
readonly icon?: string | undefined;
|
|
53
|
-
readonly
|
|
54
|
-
readonly hideTitle?: boolean | undefined;
|
|
55
|
-
readonly items: readonly {
|
|
53
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
56
54
|
readonly disabled?: string | undefined;
|
|
57
55
|
readonly id: string;
|
|
58
56
|
readonly title: readonly [{
|
|
@@ -73,7 +71,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
73
71
|
}[]] | undefined;
|
|
74
72
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
75
73
|
readonly action?: any;
|
|
76
|
-
}[];
|
|
74
|
+
})[];
|
|
75
|
+
readonly groupId: string;
|
|
76
|
+
readonly hideTitle?: boolean | undefined;
|
|
77
77
|
})[];
|
|
78
78
|
readonly groups: readonly {
|
|
79
79
|
readonly id: string;
|
|
@@ -91,7 +91,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
91
91
|
readonly style?: string | undefined;
|
|
92
92
|
readonly gap: number;
|
|
93
93
|
readonly kind: "shwfed.component.action";
|
|
94
|
-
readonly items: readonly ({
|
|
94
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistryItemValue | {
|
|
95
95
|
readonly disabled?: string | undefined;
|
|
96
96
|
readonly id: string;
|
|
97
97
|
readonly title: readonly [{
|
|
@@ -124,9 +124,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
124
124
|
readonly message: string;
|
|
125
125
|
}[]];
|
|
126
126
|
readonly icon?: string | undefined;
|
|
127
|
-
readonly
|
|
128
|
-
readonly hideTitle?: boolean | undefined;
|
|
129
|
-
readonly items: readonly {
|
|
127
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
130
128
|
readonly disabled?: string | undefined;
|
|
131
129
|
readonly id: string;
|
|
132
130
|
readonly title: readonly [{
|
|
@@ -147,7 +145,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
147
145
|
}[]] | undefined;
|
|
148
146
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
149
147
|
readonly action?: any;
|
|
150
|
-
}[];
|
|
148
|
+
})[];
|
|
149
|
+
readonly groupId: string;
|
|
150
|
+
readonly hideTitle?: boolean | undefined;
|
|
151
151
|
})[];
|
|
152
152
|
readonly groups: readonly {
|
|
153
153
|
readonly id: string;
|
package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/runtime.vue.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
17
17
|
readonly style?: string | undefined;
|
|
18
18
|
readonly gap: number;
|
|
19
19
|
readonly kind: "shwfed.component.action";
|
|
20
|
-
readonly items: readonly ({
|
|
20
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistryItemValue | {
|
|
21
21
|
readonly disabled?: string | undefined;
|
|
22
22
|
readonly id: string;
|
|
23
23
|
readonly title: readonly [{
|
|
@@ -50,9 +50,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
50
50
|
readonly message: string;
|
|
51
51
|
}[]];
|
|
52
52
|
readonly icon?: string | undefined;
|
|
53
|
-
readonly
|
|
54
|
-
readonly hideTitle?: boolean | undefined;
|
|
55
|
-
readonly items: readonly {
|
|
53
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
56
54
|
readonly disabled?: string | undefined;
|
|
57
55
|
readonly id: string;
|
|
58
56
|
readonly title: readonly [{
|
|
@@ -73,7 +71,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
73
71
|
}[]] | undefined;
|
|
74
72
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
75
73
|
readonly action?: any;
|
|
76
|
-
}[];
|
|
74
|
+
})[];
|
|
75
|
+
readonly groupId: string;
|
|
76
|
+
readonly hideTitle?: boolean | undefined;
|
|
77
77
|
})[];
|
|
78
78
|
readonly groups: readonly {
|
|
79
79
|
readonly id: string;
|
|
@@ -91,7 +91,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
91
91
|
readonly style?: string | undefined;
|
|
92
92
|
readonly gap: number;
|
|
93
93
|
readonly kind: "shwfed.component.action";
|
|
94
|
-
readonly items: readonly ({
|
|
94
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistryItemValue | {
|
|
95
95
|
readonly disabled?: string | undefined;
|
|
96
96
|
readonly id: string;
|
|
97
97
|
readonly title: readonly [{
|
|
@@ -124,9 +124,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
124
124
|
readonly message: string;
|
|
125
125
|
}[]];
|
|
126
126
|
readonly icon?: string | undefined;
|
|
127
|
-
readonly
|
|
128
|
-
readonly hideTitle?: boolean | undefined;
|
|
129
|
-
readonly items: readonly {
|
|
127
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
130
128
|
readonly disabled?: string | undefined;
|
|
131
129
|
readonly id: string;
|
|
132
130
|
readonly title: readonly [{
|
|
@@ -147,7 +145,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
147
145
|
}[]] | undefined;
|
|
148
146
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
149
147
|
readonly action?: any;
|
|
150
|
-
}[];
|
|
148
|
+
})[];
|
|
149
|
+
readonly groupId: string;
|
|
150
|
+
readonly hideTitle?: boolean | undefined;
|
|
151
151
|
})[];
|
|
152
152
|
readonly groups: readonly {
|
|
153
153
|
readonly id: string;
|
package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/schema.d.ts
CHANGED
|
@@ -33,64 +33,121 @@ export declare function schema(configure: (env: Environment) => void, _blockRef:
|
|
|
33
33
|
id: Schema.refine<string, typeof Schema.String>;
|
|
34
34
|
variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
|
|
35
35
|
}>>;
|
|
36
|
-
items: Schema.Array$<Schema.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
title:
|
|
40
|
-
locale:
|
|
41
|
-
message:
|
|
42
|
-
}
|
|
43
|
-
locale:
|
|
44
|
-
message:
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
id:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
36
|
+
items: Schema.Array$<Schema.Schema<import("../../../../actions/schema.js").RegistryItemValue | {
|
|
37
|
+
readonly disabled?: string | undefined;
|
|
38
|
+
readonly id: string;
|
|
39
|
+
readonly title: readonly [{
|
|
40
|
+
readonly locale: "zh";
|
|
41
|
+
readonly message: string;
|
|
42
|
+
}, ...{
|
|
43
|
+
readonly locale: "en" | "ja" | "ko";
|
|
44
|
+
readonly message: string;
|
|
45
|
+
}[]];
|
|
46
|
+
readonly icon?: string | undefined;
|
|
47
|
+
readonly hidden?: string | undefined;
|
|
48
|
+
readonly tooltip?: readonly [{
|
|
49
|
+
readonly locale: "zh";
|
|
50
|
+
readonly message: string;
|
|
51
|
+
}, ...{
|
|
52
|
+
readonly locale: "en" | "ja" | "ko";
|
|
53
|
+
readonly message: string;
|
|
54
|
+
}[]] | undefined;
|
|
55
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
56
|
+
readonly action?: any;
|
|
57
|
+
readonly groupId: string;
|
|
58
|
+
readonly hideTitle?: boolean | undefined;
|
|
59
|
+
} | {
|
|
60
|
+
readonly id: string;
|
|
61
|
+
readonly title: readonly [{
|
|
62
|
+
readonly locale: "zh";
|
|
63
|
+
readonly message: string;
|
|
64
|
+
}, ...{
|
|
65
|
+
readonly locale: "en" | "ja" | "ko";
|
|
66
|
+
readonly message: string;
|
|
67
|
+
}[]];
|
|
68
|
+
readonly icon?: string | undefined;
|
|
69
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
70
|
+
readonly disabled?: string | undefined;
|
|
71
|
+
readonly id: string;
|
|
72
|
+
readonly title: readonly [{
|
|
73
|
+
readonly locale: "zh";
|
|
74
|
+
readonly message: string;
|
|
75
|
+
}, ...{
|
|
76
|
+
readonly locale: "en" | "ja" | "ko";
|
|
77
|
+
readonly message: string;
|
|
78
|
+
}[]];
|
|
79
|
+
readonly icon?: string | undefined;
|
|
80
|
+
readonly hidden?: string | undefined;
|
|
81
|
+
readonly tooltip?: readonly [{
|
|
82
|
+
readonly locale: "zh";
|
|
83
|
+
readonly message: string;
|
|
84
|
+
}, ...{
|
|
85
|
+
readonly locale: "en" | "ja" | "ko";
|
|
86
|
+
readonly message: string;
|
|
87
|
+
}[]] | undefined;
|
|
88
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
89
|
+
readonly action?: any;
|
|
90
|
+
})[];
|
|
91
|
+
readonly groupId: string;
|
|
92
|
+
readonly hideTitle?: boolean | undefined;
|
|
93
|
+
}, import("../../../../actions/schema.js").RegistryItemValue | {
|
|
94
|
+
readonly id: string;
|
|
95
|
+
readonly title: readonly [{
|
|
96
|
+
readonly locale: "zh";
|
|
97
|
+
readonly message: string;
|
|
98
|
+
}, ...{
|
|
99
|
+
readonly locale: "en" | "ja" | "ko";
|
|
100
|
+
readonly message: string;
|
|
101
|
+
}[]];
|
|
102
|
+
readonly groupId: string;
|
|
103
|
+
readonly disabled?: string | undefined;
|
|
104
|
+
readonly icon?: string | undefined;
|
|
105
|
+
readonly hidden?: string | undefined;
|
|
106
|
+
readonly tooltip?: readonly [{
|
|
107
|
+
readonly locale: "zh";
|
|
108
|
+
readonly message: string;
|
|
109
|
+
}, ...{
|
|
110
|
+
readonly locale: "en" | "ja" | "ko";
|
|
111
|
+
readonly message: string;
|
|
112
|
+
}[]] | undefined;
|
|
113
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
114
|
+
readonly action?: any;
|
|
115
|
+
readonly hideTitle?: boolean | undefined;
|
|
116
|
+
} | {
|
|
117
|
+
readonly id: string;
|
|
118
|
+
readonly title: readonly [{
|
|
119
|
+
readonly locale: "zh";
|
|
120
|
+
readonly message: string;
|
|
121
|
+
}, ...{
|
|
122
|
+
readonly locale: "en" | "ja" | "ko";
|
|
123
|
+
readonly message: string;
|
|
124
|
+
}[]];
|
|
125
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
126
|
+
readonly id: string;
|
|
127
|
+
readonly title: readonly [{
|
|
128
|
+
readonly locale: "zh";
|
|
129
|
+
readonly message: string;
|
|
130
|
+
}, ...{
|
|
131
|
+
readonly locale: "en" | "ja" | "ko";
|
|
132
|
+
readonly message: string;
|
|
133
|
+
}[]];
|
|
134
|
+
readonly disabled?: string | undefined;
|
|
135
|
+
readonly icon?: string | undefined;
|
|
136
|
+
readonly hidden?: string | undefined;
|
|
137
|
+
readonly tooltip?: readonly [{
|
|
138
|
+
readonly locale: "zh";
|
|
139
|
+
readonly message: string;
|
|
140
|
+
}, ...{
|
|
141
|
+
readonly locale: "en" | "ja" | "ko";
|
|
142
|
+
readonly message: string;
|
|
143
|
+
}[]] | undefined;
|
|
144
|
+
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
145
|
+
readonly action?: any;
|
|
146
|
+
})[];
|
|
147
|
+
readonly groupId: string;
|
|
148
|
+
readonly icon?: string | undefined;
|
|
149
|
+
readonly hideTitle?: boolean | undefined;
|
|
150
|
+
}, never>>;
|
|
94
151
|
kind: Schema.tag<"shwfed.component.action">;
|
|
95
152
|
}>;
|
|
96
153
|
}>;
|
package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts
CHANGED
|
@@ -43,7 +43,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
43
43
|
readonly size: "default" | "sm" | "xs";
|
|
44
44
|
readonly style?: string | undefined;
|
|
45
45
|
readonly gap: number;
|
|
46
|
-
readonly items: readonly ({
|
|
46
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistryItemValue | {
|
|
47
47
|
readonly disabled?: string | undefined;
|
|
48
48
|
readonly id: string;
|
|
49
49
|
readonly title: readonly [{
|
|
@@ -76,9 +76,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
76
76
|
readonly message: string;
|
|
77
77
|
}[]];
|
|
78
78
|
readonly icon?: string | undefined;
|
|
79
|
-
readonly
|
|
80
|
-
readonly hideTitle?: boolean | undefined;
|
|
81
|
-
readonly items: readonly {
|
|
79
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
82
80
|
readonly disabled?: string | undefined;
|
|
83
81
|
readonly id: string;
|
|
84
82
|
readonly title: readonly [{
|
|
@@ -99,7 +97,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
99
97
|
}[]] | undefined;
|
|
100
98
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
101
99
|
readonly action?: any;
|
|
102
|
-
}[];
|
|
100
|
+
})[];
|
|
101
|
+
readonly groupId: string;
|
|
102
|
+
readonly hideTitle?: boolean | undefined;
|
|
103
103
|
})[];
|
|
104
104
|
readonly groups: readonly {
|
|
105
105
|
readonly id: string;
|
|
@@ -220,7 +220,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
220
220
|
readonly size: "default" | "sm" | "xs";
|
|
221
221
|
readonly style?: string | undefined;
|
|
222
222
|
readonly gap: number;
|
|
223
|
-
readonly items: readonly ({
|
|
223
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistryItemValue | {
|
|
224
224
|
readonly disabled?: string | undefined;
|
|
225
225
|
readonly id: string;
|
|
226
226
|
readonly title: readonly [{
|
|
@@ -253,9 +253,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
253
253
|
readonly message: string;
|
|
254
254
|
}[]];
|
|
255
255
|
readonly icon?: string | undefined;
|
|
256
|
-
readonly
|
|
257
|
-
readonly hideTitle?: boolean | undefined;
|
|
258
|
-
readonly items: readonly {
|
|
256
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
259
257
|
readonly disabled?: string | undefined;
|
|
260
258
|
readonly id: string;
|
|
261
259
|
readonly title: readonly [{
|
|
@@ -276,7 +274,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
276
274
|
}[]] | undefined;
|
|
277
275
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
278
276
|
readonly action?: any;
|
|
279
|
-
}[];
|
|
277
|
+
})[];
|
|
278
|
+
readonly groupId: string;
|
|
279
|
+
readonly hideTitle?: boolean | undefined;
|
|
280
280
|
})[];
|
|
281
281
|
readonly groups: readonly {
|
|
282
282
|
readonly id: string;
|