@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,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" }),
|
|
@@ -90,13 +95,26 @@ export function ActionSchemaFields(configure) {
|
|
|
90
95
|
title: "\u56FE\u6807",
|
|
91
96
|
description: "Iconify \u56FE\u6807\u6807\u8BC6\u7B26"
|
|
92
97
|
})),
|
|
93
|
-
|
|
94
|
-
|
|
98
|
+
hideTitle: Schema.optional(Schema.Boolean.annotations({
|
|
99
|
+
title: "\u4EC5\u663E\u793A\u56FE\u6807",
|
|
100
|
+
description: md`
|
|
101
|
+
隐藏下拉按钮触发器的文字内容,仅显示其图标。常见于有一定关联隐喻的下拉按钮,如
|
|
102
|
+
|
|
103
|
+
- 异步下载与下载历史:下载历史仅展示历史图标
|
|
104
|
+
- 收集归纳多种操作:直接下载作为主要按钮,其他下载形式(如异步下载、自定义下载)放置于其后
|
|
105
|
+
`
|
|
106
|
+
})),
|
|
107
|
+
items: Schema.Array(DropdownActionSubItem).annotations({
|
|
108
|
+
description: "\u4E0B\u62C9\u6309\u94AE\u5185\u7684\u6309\u94AE\u6216\u5176\u4ED6\u9879\u5217\u8868"
|
|
95
109
|
})
|
|
96
110
|
}).annotations({
|
|
97
111
|
title: "DropdownActionItem"
|
|
98
112
|
});
|
|
99
|
-
const ActionGroupItem = Schema.Union(
|
|
113
|
+
const ActionGroupItem = Schema.Union(
|
|
114
|
+
ActionItem,
|
|
115
|
+
DropdownActionItem,
|
|
116
|
+
...itemSchemas
|
|
117
|
+
);
|
|
100
118
|
const ActionGroup = Schema.Struct({
|
|
101
119
|
id: Schema.UUID.annotations({ description: "\u6309\u94AE\u7EC4\u552F\u4E00\u6807\u8BC6" }),
|
|
102
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,8 +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 items: readonly {
|
|
48
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
50
49
|
readonly disabled?: string | undefined;
|
|
51
50
|
readonly id: string;
|
|
52
51
|
readonly title: readonly [{
|
|
@@ -67,7 +66,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
67
66
|
}[]] | undefined;
|
|
68
67
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
69
68
|
readonly action?: any;
|
|
70
|
-
}[];
|
|
69
|
+
})[];
|
|
70
|
+
readonly groupId: string;
|
|
71
|
+
readonly hideTitle?: boolean | undefined;
|
|
71
72
|
})[];
|
|
72
73
|
readonly groups: readonly {
|
|
73
74
|
readonly id: string;
|
|
@@ -85,7 +86,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
85
86
|
readonly style?: string | undefined;
|
|
86
87
|
readonly gap: number;
|
|
87
88
|
readonly kind: "shwfed.component.action";
|
|
88
|
-
readonly items: readonly ({
|
|
89
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistryItemValue | {
|
|
89
90
|
readonly disabled?: string | undefined;
|
|
90
91
|
readonly id: string;
|
|
91
92
|
readonly title: readonly [{
|
|
@@ -118,8 +119,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
118
119
|
readonly message: string;
|
|
119
120
|
}[]];
|
|
120
121
|
readonly icon?: string | undefined;
|
|
121
|
-
readonly
|
|
122
|
-
readonly items: readonly {
|
|
122
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
123
123
|
readonly disabled?: string | undefined;
|
|
124
124
|
readonly id: string;
|
|
125
125
|
readonly title: readonly [{
|
|
@@ -140,7 +140,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
140
140
|
}[]] | undefined;
|
|
141
141
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
142
142
|
readonly action?: any;
|
|
143
|
-
}[];
|
|
143
|
+
})[];
|
|
144
|
+
readonly groupId: string;
|
|
145
|
+
readonly hideTitle?: boolean | undefined;
|
|
144
146
|
})[];
|
|
145
147
|
readonly groups: readonly {
|
|
146
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,8 +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 items: readonly {
|
|
48
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
50
49
|
readonly disabled?: string | undefined;
|
|
51
50
|
readonly id: string;
|
|
52
51
|
readonly title: readonly [{
|
|
@@ -67,7 +66,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
67
66
|
}[]] | undefined;
|
|
68
67
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
69
68
|
readonly action?: any;
|
|
70
|
-
}[];
|
|
69
|
+
})[];
|
|
70
|
+
readonly groupId: string;
|
|
71
|
+
readonly hideTitle?: boolean | undefined;
|
|
71
72
|
})[];
|
|
72
73
|
readonly groups: readonly {
|
|
73
74
|
readonly id: string;
|
|
@@ -85,7 +86,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
85
86
|
readonly style?: string | undefined;
|
|
86
87
|
readonly gap: number;
|
|
87
88
|
readonly kind: "shwfed.component.action";
|
|
88
|
-
readonly items: readonly ({
|
|
89
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistryItemValue | {
|
|
89
90
|
readonly disabled?: string | undefined;
|
|
90
91
|
readonly id: string;
|
|
91
92
|
readonly title: readonly [{
|
|
@@ -118,8 +119,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
118
119
|
readonly message: string;
|
|
119
120
|
}[]];
|
|
120
121
|
readonly icon?: string | undefined;
|
|
121
|
-
readonly
|
|
122
|
-
readonly items: readonly {
|
|
122
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
123
123
|
readonly disabled?: string | undefined;
|
|
124
124
|
readonly id: string;
|
|
125
125
|
readonly title: readonly [{
|
|
@@ -140,7 +140,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
140
140
|
}[]] | undefined;
|
|
141
141
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
142
142
|
readonly action?: any;
|
|
143
|
-
}[];
|
|
143
|
+
})[];
|
|
144
|
+
readonly groupId: string;
|
|
145
|
+
readonly hideTitle?: boolean | undefined;
|
|
144
146
|
})[];
|
|
145
147
|
readonly groups: readonly {
|
|
146
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,8 +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 items: readonly {
|
|
53
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
55
54
|
readonly disabled?: string | undefined;
|
|
56
55
|
readonly id: string;
|
|
57
56
|
readonly title: readonly [{
|
|
@@ -72,7 +71,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
72
71
|
}[]] | undefined;
|
|
73
72
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
74
73
|
readonly action?: any;
|
|
75
|
-
}[];
|
|
74
|
+
})[];
|
|
75
|
+
readonly groupId: string;
|
|
76
|
+
readonly hideTitle?: boolean | undefined;
|
|
76
77
|
})[];
|
|
77
78
|
readonly groups: readonly {
|
|
78
79
|
readonly id: string;
|
|
@@ -90,7 +91,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
90
91
|
readonly style?: string | undefined;
|
|
91
92
|
readonly gap: number;
|
|
92
93
|
readonly kind: "shwfed.component.action";
|
|
93
|
-
readonly items: readonly ({
|
|
94
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistryItemValue | {
|
|
94
95
|
readonly disabled?: string | undefined;
|
|
95
96
|
readonly id: string;
|
|
96
97
|
readonly title: readonly [{
|
|
@@ -123,8 +124,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
123
124
|
readonly message: string;
|
|
124
125
|
}[]];
|
|
125
126
|
readonly icon?: string | undefined;
|
|
126
|
-
readonly
|
|
127
|
-
readonly items: readonly {
|
|
127
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
128
128
|
readonly disabled?: string | undefined;
|
|
129
129
|
readonly id: string;
|
|
130
130
|
readonly title: readonly [{
|
|
@@ -145,7 +145,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
145
145
|
}[]] | undefined;
|
|
146
146
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
147
147
|
readonly action?: any;
|
|
148
|
-
}[];
|
|
148
|
+
})[];
|
|
149
|
+
readonly groupId: string;
|
|
150
|
+
readonly hideTitle?: boolean | undefined;
|
|
149
151
|
})[];
|
|
150
152
|
readonly groups: readonly {
|
|
151
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,8 +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 items: readonly {
|
|
53
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
55
54
|
readonly disabled?: string | undefined;
|
|
56
55
|
readonly id: string;
|
|
57
56
|
readonly title: readonly [{
|
|
@@ -72,7 +71,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
72
71
|
}[]] | undefined;
|
|
73
72
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
74
73
|
readonly action?: any;
|
|
75
|
-
}[];
|
|
74
|
+
})[];
|
|
75
|
+
readonly groupId: string;
|
|
76
|
+
readonly hideTitle?: boolean | undefined;
|
|
76
77
|
})[];
|
|
77
78
|
readonly groups: readonly {
|
|
78
79
|
readonly id: string;
|
|
@@ -90,7 +91,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
90
91
|
readonly style?: string | undefined;
|
|
91
92
|
readonly gap: number;
|
|
92
93
|
readonly kind: "shwfed.component.action";
|
|
93
|
-
readonly items: readonly ({
|
|
94
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistryItemValue | {
|
|
94
95
|
readonly disabled?: string | undefined;
|
|
95
96
|
readonly id: string;
|
|
96
97
|
readonly title: readonly [{
|
|
@@ -123,8 +124,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
123
124
|
readonly message: string;
|
|
124
125
|
}[]];
|
|
125
126
|
readonly icon?: string | undefined;
|
|
126
|
-
readonly
|
|
127
|
-
readonly items: readonly {
|
|
127
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
128
128
|
readonly disabled?: string | undefined;
|
|
129
129
|
readonly id: string;
|
|
130
130
|
readonly title: readonly [{
|
|
@@ -145,7 +145,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
145
145
|
}[]] | undefined;
|
|
146
146
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
147
147
|
readonly action?: any;
|
|
148
|
-
}[];
|
|
148
|
+
})[];
|
|
149
|
+
readonly groupId: string;
|
|
150
|
+
readonly hideTitle?: boolean | undefined;
|
|
149
151
|
})[];
|
|
150
152
|
readonly groups: readonly {
|
|
151
153
|
readonly id: string;
|
package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/schema.d.ts
CHANGED
|
@@ -33,63 +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
|
-
id:
|
|
72
|
-
title:
|
|
73
|
-
locale:
|
|
74
|
-
message:
|
|
75
|
-
}
|
|
76
|
-
locale:
|
|
77
|
-
message:
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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>>;
|
|
93
151
|
kind: Schema.tag<"shwfed.component.action">;
|
|
94
152
|
}>;
|
|
95
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,8 +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 items: readonly {
|
|
79
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
81
80
|
readonly disabled?: string | undefined;
|
|
82
81
|
readonly id: string;
|
|
83
82
|
readonly title: readonly [{
|
|
@@ -98,7 +97,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
98
97
|
}[]] | undefined;
|
|
99
98
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
100
99
|
readonly action?: any;
|
|
101
|
-
}[];
|
|
100
|
+
})[];
|
|
101
|
+
readonly groupId: string;
|
|
102
|
+
readonly hideTitle?: boolean | undefined;
|
|
102
103
|
})[];
|
|
103
104
|
readonly groups: readonly {
|
|
104
105
|
readonly id: string;
|
|
@@ -219,7 +220,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
219
220
|
readonly size: "default" | "sm" | "xs";
|
|
220
221
|
readonly style?: string | undefined;
|
|
221
222
|
readonly gap: number;
|
|
222
|
-
readonly items: readonly ({
|
|
223
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistryItemValue | {
|
|
223
224
|
readonly disabled?: string | undefined;
|
|
224
225
|
readonly id: string;
|
|
225
226
|
readonly title: readonly [{
|
|
@@ -252,8 +253,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
252
253
|
readonly message: string;
|
|
253
254
|
}[]];
|
|
254
255
|
readonly icon?: string | undefined;
|
|
255
|
-
readonly
|
|
256
|
-
readonly items: readonly {
|
|
256
|
+
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
257
257
|
readonly disabled?: string | undefined;
|
|
258
258
|
readonly id: string;
|
|
259
259
|
readonly title: readonly [{
|
|
@@ -274,7 +274,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
274
274
|
}[]] | undefined;
|
|
275
275
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
276
276
|
readonly action?: any;
|
|
277
|
-
}[];
|
|
277
|
+
})[];
|
|
278
|
+
readonly groupId: string;
|
|
279
|
+
readonly hideTitle?: boolean | undefined;
|
|
278
280
|
})[];
|
|
279
281
|
readonly groups: readonly {
|
|
280
282
|
readonly id: string;
|