@shwfed/config 3.0.0 → 3.0.2

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.
Files changed (35) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +68 -68
  3. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +68 -68
  4. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +68 -68
  5. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +68 -68
  6. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +34 -34
  7. package/dist/runtime/components/operations/2026-06-11/com.shwfed.operation.http.request.json/schema.d.ts +8 -2
  8. package/dist/runtime/components/operations/2026-06-11/com.shwfed.operation.http.request.json/schema.js +5 -4
  9. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/schema.d.ts +8 -2
  10. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/schema.js +5 -4
  11. package/dist/runtime/components/sidebar/index.vue +1 -1
  12. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -2
  13. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -2
  14. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -2
  15. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -2
  16. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -2
  17. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -2
  18. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -2
  19. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -2
  20. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -2
  21. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -2
  22. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -2
  23. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -2
  24. package/dist/runtime/components/table/columns/2026-07-12/com.shwfed.table.column.dynamic/config.d.vue.ts +10 -0
  25. package/dist/runtime/components/table/columns/2026-07-12/com.shwfed.table.column.dynamic/config.vue +73 -0
  26. package/dist/runtime/components/table/columns/2026-07-12/com.shwfed.table.column.dynamic/config.vue.d.ts +10 -0
  27. package/dist/runtime/components/table/columns/2026-07-12/com.shwfed.table.column.dynamic/schema.d.ts +63 -0
  28. package/dist/runtime/components/table/columns/2026-07-12/com.shwfed.table.column.dynamic/schema.js +157 -0
  29. package/dist/runtime/components/table/index.vue +86 -12
  30. package/dist/runtime/components/table/schema.d.ts +68 -68
  31. package/dist/runtime/components/table/utils/resolve.d.ts +42 -0
  32. package/dist/runtime/components/table/utils/resolve.js +11 -3
  33. package/dist/runtime/share/define-registry.d.ts +11 -0
  34. package/dist/runtime/share/define-registry.js +10 -3
  35. package/package.json +1 -1
@@ -47,40 +47,6 @@ export declare function schema(configure: (env: Environment) => void, _blockRef:
47
47
  readonly message: string;
48
48
  }[]] | undefined;
49
49
  }[];
50
- readonly query?: {
51
- readonly style?: string | undefined;
52
- readonly id?: string | undefined;
53
- readonly initial?: {
54
- readonly data: string;
55
- readonly request?: string | undefined;
56
- } | undefined;
57
- readonly displayName?: string | undefined;
58
- readonly kind: "shwfed.component.form";
59
- readonly fields: readonly any[];
60
- readonly layouts: readonly {
61
- readonly name: string;
62
- readonly layout: {
63
- readonly style?: string | undefined;
64
- readonly columns: number;
65
- readonly gap?: number | undefined;
66
- readonly rows?: number | undefined;
67
- readonly placements: {
68
- readonly [x: string]: {
69
- readonly area: readonly [readonly [number, number], readonly [number, number]];
70
- readonly v?: "stretch" | "center" | "end" | "start" | undefined;
71
- readonly h?: "stretch" | "center" | "end" | "start" | undefined;
72
- };
73
- };
74
- };
75
- readonly media?: string | undefined;
76
- }[];
77
- readonly readonly?: string | undefined;
78
- } | undefined;
79
- readonly dataSource?: {
80
- readonly data: string;
81
- readonly total?: string | undefined;
82
- readonly request?: string | undefined;
83
- } | undefined;
84
50
  readonly actions?: {
85
51
  readonly size: "default" | "sm" | "xs";
86
52
  readonly style?: string | undefined;
@@ -148,6 +114,40 @@ export declare function schema(configure: (env: Environment) => void, _blockRef:
148
114
  readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
149
115
  }[];
150
116
  } | undefined;
117
+ readonly query?: {
118
+ readonly style?: string | undefined;
119
+ readonly id?: string | undefined;
120
+ readonly initial?: {
121
+ readonly data: string;
122
+ readonly request?: string | undefined;
123
+ } | undefined;
124
+ readonly displayName?: string | undefined;
125
+ readonly kind: "shwfed.component.form";
126
+ readonly fields: readonly any[];
127
+ readonly layouts: readonly {
128
+ readonly name: string;
129
+ readonly layout: {
130
+ readonly style?: string | undefined;
131
+ readonly columns: number;
132
+ readonly gap?: number | undefined;
133
+ readonly rows?: number | undefined;
134
+ readonly placements: {
135
+ readonly [x: string]: {
136
+ readonly area: readonly [readonly [number, number], readonly [number, number]];
137
+ readonly v?: "stretch" | "center" | "end" | "start" | undefined;
138
+ readonly h?: "stretch" | "center" | "end" | "start" | undefined;
139
+ };
140
+ };
141
+ };
142
+ readonly media?: string | undefined;
143
+ }[];
144
+ readonly readonly?: string | undefined;
145
+ } | undefined;
146
+ readonly dataSource?: {
147
+ readonly data: string;
148
+ readonly total?: string | undefined;
149
+ readonly request?: string | undefined;
150
+ } | undefined;
151
151
  readonly bottomActions?: {
152
152
  readonly size: "default" | "sm" | "xs";
153
153
  readonly style?: string | undefined;
@@ -11,7 +11,13 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
11
11
  expression: Schema.Schema<string, string, never>;
12
12
  resultExpression: Schema.optional<Schema.Schema<string, string, never>>;
13
13
  titleExpression: Schema.optional<Schema.Schema<string, string, never>>;
14
- description: Schema.optional<Schema.suspend<readonly [{
14
+ description: Schema.optional<Schema.refine<readonly [{
15
+ readonly locale: "zh";
16
+ readonly message: string;
17
+ }, ...{
18
+ readonly locale: "en" | "ja" | "ko";
19
+ readonly message: string;
20
+ }[]], Schema.suspend<readonly [{
15
21
  readonly locale: "zh";
16
22
  readonly message: string;
17
23
  }, ...{
@@ -23,7 +29,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
23
29
  }, ...{
24
30
  readonly locale: "en" | "ja" | "ko";
25
31
  readonly message: string;
26
- }[]], never>>;
32
+ }[]], never>>>;
27
33
  }>;
28
34
  export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
29
35
  export declare function defaults(): Partial<Value>;
@@ -1,6 +1,5 @@
1
1
  import { Schema } from "effect";
2
- import { Expression } from "../../../../share/expression.js";
3
- import { Locale } from "../../../../share/locale.js";
2
+ import { Expression, LocaleMarkdown } from "../../../../share/expression.js";
4
3
  import { md } from "../../../../share/markdown.js";
5
4
  import { registerStepsVariableIfAbsent } from "../../utils/step-vars.js";
6
5
  export const type = "com.shwfed.operation.http.request.json";
@@ -57,10 +56,12 @@ export function schema(configure) {
57
56
  可按 \`result\` 分支实现仅部分结果下提示,如 \`result == 'error' ? '请求失败' : ''\`。
58
57
  `
59
58
  })),
60
- description: Schema.optional(Locale.annotations({
59
+ description: Schema.optional(LocaleMarkdown({ configure: withOutcome }).annotations({
61
60
  title: "\u63D0\u793A\u5185\u5BB9",
62
61
  description: md`
63
- 配置后,作为提示的内容向用户展示。
62
+ 配置后,作为提示的内容向用户展示。支持 \`{{ 表达式 }}\` 插值——
63
+ 可用 \`json\`(响应体)、\`result\`(执行结果)、\`steps\`(前序步骤输出),
64
+ 如 \`共 {{ json.count }} 条\`。
64
65
  `
65
66
  }))
66
67
  }).annotations({
@@ -10,7 +10,13 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
10
10
  expression: Schema.Schema<string, string, never>;
11
11
  resultExpression: Schema.optional<Schema.Schema<string, string, never>>;
12
12
  titleExpression: Schema.optional<Schema.Schema<string, string, never>>;
13
- description: Schema.optional<Schema.suspend<readonly [{
13
+ description: Schema.optional<Schema.refine<readonly [{
14
+ readonly locale: "zh";
15
+ readonly message: string;
16
+ }, ...{
17
+ readonly locale: "en" | "ja" | "ko";
18
+ readonly message: string;
19
+ }[]], Schema.suspend<readonly [{
14
20
  readonly locale: "zh";
15
21
  readonly message: string;
16
22
  }, ...{
@@ -22,7 +28,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
22
28
  }, ...{
23
29
  readonly locale: "en" | "ja" | "ko";
24
30
  readonly message: string;
25
- }[]], never>>;
31
+ }[]], never>>>;
26
32
  }>;
27
33
  export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
28
34
  export declare function defaults(): Partial<Value>;
@@ -1,6 +1,5 @@
1
1
  import { Schema } from "effect";
2
- import { Expression } from "../../../../share/expression.js";
3
- import { Locale } from "../../../../share/locale.js";
2
+ import { Expression, LocaleMarkdown } from "../../../../share/expression.js";
4
3
  import { md } from "../../../../share/markdown.js";
5
4
  import { registerStepsVariableIfAbsent } from "../../utils/step-vars.js";
6
5
  export const type = "com.shwfed.operation.http.download";
@@ -62,10 +61,12 @@ export function schema(configure) {
62
61
  可按 \`result\` 分支实现仅部分结果下提示,如 \`result == 'error' ? '下载失败' : ''\`。
63
62
  `
64
63
  })),
65
- description: Schema.optional(Locale.annotations({
64
+ description: Schema.optional(LocaleMarkdown({ configure: withOutcome }).annotations({
66
65
  title: "\u63D0\u793A\u5185\u5BB9",
67
66
  description: md`
68
- 配置后,作为提示的内容向用户展示。
67
+ 配置后,作为提示的内容向用户展示。支持 \`{{ 表达式 }}\` 插值——
68
+ 可用 \`json\`(响应体)、\`result\`(执行结果)、\`steps\`(前序步骤输出),
69
+ 如 \`结果:{{ result }}\`。
69
70
  `
70
71
  }))
71
72
  }).annotations({
@@ -115,7 +115,7 @@ function onRootClick(event) {
115
115
  @click.capture="onRootClick"
116
116
  >
117
117
  <SidebarProvider
118
- class="relative w-fit"
118
+ class="relative w-fit h-full min-h-0"
119
119
  :style="{ '--sidebar-width': widthStyle }"
120
120
  >
121
121
  <Sidebar
@@ -43,6 +43,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
43
43
  readonly data: string;
44
44
  readonly request?: string | undefined;
45
45
  };
46
+ readonly enableSorting?: boolean | undefined;
46
47
  readonly nodeKey: string;
47
48
  readonly nodeChildren: string;
48
49
  readonly nodeLabel: readonly [{
@@ -52,7 +53,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
52
53
  readonly locale: "en" | "ja" | "ko";
53
54
  readonly message: string;
54
55
  }[]];
55
- readonly enableSorting?: boolean | undefined;
56
56
  readonly cascade: "independent" | "cascade-down" | "cascade-both";
57
57
  readonly nodeTooltip?: readonly [{
58
58
  readonly locale: "zh";
@@ -106,6 +106,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
106
106
  readonly data: string;
107
107
  readonly request?: string | undefined;
108
108
  };
109
+ readonly enableSorting?: boolean | undefined;
109
110
  readonly nodeKey: string;
110
111
  readonly nodeChildren: string;
111
112
  readonly nodeLabel: readonly [{
@@ -115,7 +116,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
115
116
  readonly locale: "en" | "ja" | "ko";
116
117
  readonly message: string;
117
118
  }[]];
118
- readonly enableSorting?: boolean | undefined;
119
119
  readonly cascade: "independent" | "cascade-down" | "cascade-both";
120
120
  readonly nodeTooltip?: readonly [{
121
121
  readonly locale: "zh";
@@ -43,6 +43,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
43
43
  readonly data: string;
44
44
  readonly request?: string | undefined;
45
45
  };
46
+ readonly enableSorting?: boolean | undefined;
46
47
  readonly nodeKey: string;
47
48
  readonly nodeChildren: string;
48
49
  readonly nodeLabel: readonly [{
@@ -52,7 +53,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
52
53
  readonly locale: "en" | "ja" | "ko";
53
54
  readonly message: string;
54
55
  }[]];
55
- readonly enableSorting?: boolean | undefined;
56
56
  readonly cascade: "independent" | "cascade-down" | "cascade-both";
57
57
  readonly nodeTooltip?: readonly [{
58
58
  readonly locale: "zh";
@@ -106,6 +106,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
106
106
  readonly data: string;
107
107
  readonly request?: string | undefined;
108
108
  };
109
+ readonly enableSorting?: boolean | undefined;
109
110
  readonly nodeKey: string;
110
111
  readonly nodeChildren: string;
111
112
  readonly nodeLabel: readonly [{
@@ -115,7 +116,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
115
116
  readonly locale: "en" | "ja" | "ko";
116
117
  readonly message: string;
117
118
  }[]];
118
- readonly enableSorting?: boolean | undefined;
119
119
  readonly cascade: "independent" | "cascade-down" | "cascade-both";
120
120
  readonly nodeTooltip?: readonly [{
121
121
  readonly locale: "zh";
@@ -43,6 +43,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
43
43
  readonly data: string;
44
44
  readonly request?: string | undefined;
45
45
  };
46
+ readonly enableSorting?: boolean | undefined;
46
47
  readonly nodeKey: string;
47
48
  readonly nodeChildren: string;
48
49
  readonly nodeLabel: readonly [{
@@ -52,7 +53,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
52
53
  readonly locale: "en" | "ja" | "ko";
53
54
  readonly message: string;
54
55
  }[]];
55
- readonly enableSorting?: boolean | undefined;
56
56
  readonly nodeTooltip?: readonly [{
57
57
  readonly locale: "zh";
58
58
  readonly message: string;
@@ -105,6 +105,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
105
105
  readonly data: string;
106
106
  readonly request?: string | undefined;
107
107
  };
108
+ readonly enableSorting?: boolean | undefined;
108
109
  readonly nodeKey: string;
109
110
  readonly nodeChildren: string;
110
111
  readonly nodeLabel: readonly [{
@@ -114,7 +115,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
114
115
  readonly locale: "en" | "ja" | "ko";
115
116
  readonly message: string;
116
117
  }[]];
117
- readonly enableSorting?: boolean | undefined;
118
118
  readonly nodeTooltip?: readonly [{
119
119
  readonly locale: "zh";
120
120
  readonly message: string;
@@ -43,6 +43,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
43
43
  readonly data: string;
44
44
  readonly request?: string | undefined;
45
45
  };
46
+ readonly enableSorting?: boolean | undefined;
46
47
  readonly nodeKey: string;
47
48
  readonly nodeChildren: string;
48
49
  readonly nodeLabel: readonly [{
@@ -52,7 +53,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
52
53
  readonly locale: "en" | "ja" | "ko";
53
54
  readonly message: string;
54
55
  }[]];
55
- readonly enableSorting?: boolean | undefined;
56
56
  readonly nodeTooltip?: readonly [{
57
57
  readonly locale: "zh";
58
58
  readonly message: string;
@@ -105,6 +105,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
105
105
  readonly data: string;
106
106
  readonly request?: string | undefined;
107
107
  };
108
+ readonly enableSorting?: boolean | undefined;
108
109
  readonly nodeKey: string;
109
110
  readonly nodeChildren: string;
110
111
  readonly nodeLabel: readonly [{
@@ -114,7 +115,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
114
115
  readonly locale: "en" | "ja" | "ko";
115
116
  readonly message: string;
116
117
  }[]];
117
- readonly enableSorting?: boolean | undefined;
118
118
  readonly nodeTooltip?: readonly [{
119
119
  readonly locale: "zh";
120
120
  readonly message: string;
@@ -44,6 +44,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
44
44
  readonly data: string;
45
45
  readonly request?: string | undefined;
46
46
  };
47
+ readonly enableSorting?: boolean | undefined;
47
48
  readonly nodeKey: string;
48
49
  readonly nodeChildren: string;
49
50
  readonly nodeLabel: readonly [{
@@ -53,7 +54,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
53
54
  readonly locale: "en" | "ja" | "ko";
54
55
  readonly message: string;
55
56
  }[]];
56
- readonly enableSorting?: boolean | undefined;
57
57
  readonly cascade: "independent" | "cascade-down" | "cascade-both";
58
58
  readonly nodeTooltip?: readonly [{
59
59
  readonly locale: "zh";
@@ -108,6 +108,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
108
108
  readonly data: string;
109
109
  readonly request?: string | undefined;
110
110
  };
111
+ readonly enableSorting?: boolean | undefined;
111
112
  readonly nodeKey: string;
112
113
  readonly nodeChildren: string;
113
114
  readonly nodeLabel: readonly [{
@@ -117,7 +118,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
117
118
  readonly locale: "en" | "ja" | "ko";
118
119
  readonly message: string;
119
120
  }[]];
120
- readonly enableSorting?: boolean | undefined;
121
121
  readonly cascade: "independent" | "cascade-down" | "cascade-both";
122
122
  readonly nodeTooltip?: readonly [{
123
123
  readonly locale: "zh";
@@ -44,6 +44,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
44
44
  readonly data: string;
45
45
  readonly request?: string | undefined;
46
46
  };
47
+ readonly enableSorting?: boolean | undefined;
47
48
  readonly nodeKey: string;
48
49
  readonly nodeChildren: string;
49
50
  readonly nodeLabel: readonly [{
@@ -53,7 +54,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
53
54
  readonly locale: "en" | "ja" | "ko";
54
55
  readonly message: string;
55
56
  }[]];
56
- readonly enableSorting?: boolean | undefined;
57
57
  readonly cascade: "independent" | "cascade-down" | "cascade-both";
58
58
  readonly nodeTooltip?: readonly [{
59
59
  readonly locale: "zh";
@@ -108,6 +108,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
108
108
  readonly data: string;
109
109
  readonly request?: string | undefined;
110
110
  };
111
+ readonly enableSorting?: boolean | undefined;
111
112
  readonly nodeKey: string;
112
113
  readonly nodeChildren: string;
113
114
  readonly nodeLabel: readonly [{
@@ -117,7 +118,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
117
118
  readonly locale: "en" | "ja" | "ko";
118
119
  readonly message: string;
119
120
  }[]];
120
- readonly enableSorting?: boolean | undefined;
121
121
  readonly cascade: "independent" | "cascade-down" | "cascade-both";
122
122
  readonly nodeTooltip?: readonly [{
123
123
  readonly locale: "zh";
@@ -44,6 +44,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
44
44
  readonly data: string;
45
45
  readonly request?: string | undefined;
46
46
  };
47
+ readonly enableSorting?: boolean | undefined;
47
48
  readonly nodeKey: string;
48
49
  readonly nodeChildren: string;
49
50
  readonly nodeLabel: readonly [{
@@ -53,7 +54,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
53
54
  readonly locale: "en" | "ja" | "ko";
54
55
  readonly message: string;
55
56
  }[]];
56
- readonly enableSorting?: boolean | undefined;
57
57
  readonly nodeTooltip?: readonly [{
58
58
  readonly locale: "zh";
59
59
  readonly message: string;
@@ -107,6 +107,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
107
107
  readonly data: string;
108
108
  readonly request?: string | undefined;
109
109
  };
110
+ readonly enableSorting?: boolean | undefined;
110
111
  readonly nodeKey: string;
111
112
  readonly nodeChildren: string;
112
113
  readonly nodeLabel: readonly [{
@@ -116,7 +117,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
116
117
  readonly locale: "en" | "ja" | "ko";
117
118
  readonly message: string;
118
119
  }[]];
119
- readonly enableSorting?: boolean | undefined;
120
120
  readonly nodeTooltip?: readonly [{
121
121
  readonly locale: "zh";
122
122
  readonly message: string;
@@ -44,6 +44,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
44
44
  readonly data: string;
45
45
  readonly request?: string | undefined;
46
46
  };
47
+ readonly enableSorting?: boolean | undefined;
47
48
  readonly nodeKey: string;
48
49
  readonly nodeChildren: string;
49
50
  readonly nodeLabel: readonly [{
@@ -53,7 +54,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
53
54
  readonly locale: "en" | "ja" | "ko";
54
55
  readonly message: string;
55
56
  }[]];
56
- readonly enableSorting?: boolean | undefined;
57
57
  readonly nodeTooltip?: readonly [{
58
58
  readonly locale: "zh";
59
59
  readonly message: string;
@@ -107,6 +107,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
107
107
  readonly data: string;
108
108
  readonly request?: string | undefined;
109
109
  };
110
+ readonly enableSorting?: boolean | undefined;
110
111
  readonly nodeKey: string;
111
112
  readonly nodeChildren: string;
112
113
  readonly nodeLabel: readonly [{
@@ -116,7 +117,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
116
117
  readonly locale: "en" | "ja" | "ko";
117
118
  readonly message: string;
118
119
  }[]];
119
- readonly enableSorting?: boolean | undefined;
120
120
  readonly nodeTooltip?: readonly [{
121
121
  readonly locale: "zh";
122
122
  readonly message: string;
@@ -45,10 +45,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
45
45
  readonly data: string;
46
46
  readonly request?: string | undefined;
47
47
  };
48
+ readonly enableSorting?: boolean | undefined;
48
49
  readonly nodeKey: string;
49
50
  readonly nodeChildren: string;
50
51
  readonly nodeLabel: string;
51
- readonly enableSorting?: boolean | undefined;
52
52
  readonly cascade: "independent" | "cascade-down" | "cascade-both";
53
53
  readonly nodeTooltip?: readonly [{
54
54
  readonly locale: "zh";
@@ -104,10 +104,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
104
104
  readonly data: string;
105
105
  readonly request?: string | undefined;
106
106
  };
107
+ readonly enableSorting?: boolean | undefined;
107
108
  readonly nodeKey: string;
108
109
  readonly nodeChildren: string;
109
110
  readonly nodeLabel: string;
110
- readonly enableSorting?: boolean | undefined;
111
111
  readonly cascade: "independent" | "cascade-down" | "cascade-both";
112
112
  readonly nodeTooltip?: readonly [{
113
113
  readonly locale: "zh";
@@ -45,10 +45,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
45
45
  readonly data: string;
46
46
  readonly request?: string | undefined;
47
47
  };
48
+ readonly enableSorting?: boolean | undefined;
48
49
  readonly nodeKey: string;
49
50
  readonly nodeChildren: string;
50
51
  readonly nodeLabel: string;
51
- readonly enableSorting?: boolean | undefined;
52
52
  readonly cascade: "independent" | "cascade-down" | "cascade-both";
53
53
  readonly nodeTooltip?: readonly [{
54
54
  readonly locale: "zh";
@@ -104,10 +104,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
104
104
  readonly data: string;
105
105
  readonly request?: string | undefined;
106
106
  };
107
+ readonly enableSorting?: boolean | undefined;
107
108
  readonly nodeKey: string;
108
109
  readonly nodeChildren: string;
109
110
  readonly nodeLabel: string;
110
- readonly enableSorting?: boolean | undefined;
111
111
  readonly cascade: "independent" | "cascade-down" | "cascade-both";
112
112
  readonly nodeTooltip?: readonly [{
113
113
  readonly locale: "zh";
@@ -45,10 +45,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
45
45
  readonly data: string;
46
46
  readonly request?: string | undefined;
47
47
  };
48
+ readonly enableSorting?: boolean | undefined;
48
49
  readonly nodeKey: string;
49
50
  readonly nodeChildren: string;
50
51
  readonly nodeLabel: string;
51
- readonly enableSorting?: boolean | undefined;
52
52
  readonly nodeTooltip?: readonly [{
53
53
  readonly locale: "zh";
54
54
  readonly message: string;
@@ -103,10 +103,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
103
103
  readonly data: string;
104
104
  readonly request?: string | undefined;
105
105
  };
106
+ readonly enableSorting?: boolean | undefined;
106
107
  readonly nodeKey: string;
107
108
  readonly nodeChildren: string;
108
109
  readonly nodeLabel: string;
109
- readonly enableSorting?: boolean | undefined;
110
110
  readonly nodeTooltip?: readonly [{
111
111
  readonly locale: "zh";
112
112
  readonly message: string;
@@ -45,10 +45,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
45
45
  readonly data: string;
46
46
  readonly request?: string | undefined;
47
47
  };
48
+ readonly enableSorting?: boolean | undefined;
48
49
  readonly nodeKey: string;
49
50
  readonly nodeChildren: string;
50
51
  readonly nodeLabel: string;
51
- readonly enableSorting?: boolean | undefined;
52
52
  readonly nodeTooltip?: readonly [{
53
53
  readonly locale: "zh";
54
54
  readonly message: string;
@@ -103,10 +103,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
103
103
  readonly data: string;
104
104
  readonly request?: string | undefined;
105
105
  };
106
+ readonly enableSorting?: boolean | undefined;
106
107
  readonly nodeKey: string;
107
108
  readonly nodeChildren: string;
108
109
  readonly nodeLabel: string;
109
- readonly enableSorting?: boolean | undefined;
110
110
  readonly nodeTooltip?: readonly [{
111
111
  readonly locale: "zh";
112
112
  readonly message: string;
@@ -0,0 +1,10 @@
1
+ type __VLS_ModelProps = {
2
+ modelValue: Record<string, any>;
3
+ };
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ "update:modelValue": (value: Record<string, any>) => any;
6
+ }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
7
+ "onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
8
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,73 @@
1
+ <script setup>
2
+ import { ExpressionEditor } from "../../../../ui/expression-editor";
3
+ import { Field, FieldLabel } from "../../../../ui/field";
4
+ import { Markdown } from "../../../../ui/markdown";
5
+ import { getStructFieldDescription, getStructFieldTitle } from "../../../utils/schema-meta";
6
+ import { schema } from "./schema";
7
+ defineOptions({ name: "ShwfedTableDynamicColumnsConfig" });
8
+ const value = defineModel({ type: Object, ...{ required: true } });
9
+ const fieldSchema = schema(() => {
10
+ });
11
+ const fieldTitle = (field) => getStructFieldTitle(fieldSchema, field) ?? field;
12
+ const fieldDescription = (field) => getStructFieldDescription(fieldSchema, field);
13
+ const NON_ROW_EXCLUDE = ["row", "index", "selections", "options"];
14
+ const TRANSFORM_VARS = {
15
+ json: { type: "optional<dyn>", label: "HTTP \u54CD\u5E94\u4F53" },
16
+ query: { type: "dyn", label: "\u641C\u7D22\u6761\u4EF6" }
17
+ };
18
+ </script>
19
+
20
+ <template>
21
+ <div class="space-y-5">
22
+ <Field orientation="vertical">
23
+ <FieldLabel class="text-xs text-zinc-500">
24
+ <template
25
+ v-if="fieldDescription('request')"
26
+ #tooltip
27
+ >
28
+ <Markdown
29
+ :source="fieldDescription('request')"
30
+ block
31
+ class="prose prose-sm prose-zinc"
32
+ />
33
+ </template>
34
+ {{ fieldTitle("request") }}
35
+ </FieldLabel>
36
+ <ExpressionEditor
37
+ :model-value="value.request ?? ''"
38
+ placeholder="如 http.get('/api/columns').query('channel', 'invoice')"
39
+ result-type="HttpRequest"
40
+ multiline
41
+ class="min-h-20"
42
+ :exclude-vars="NON_ROW_EXCLUDE"
43
+ @update:model-value="(v) => value = { ...value, request: v }"
44
+ />
45
+ </Field>
46
+
47
+ <Field orientation="vertical">
48
+ <FieldLabel class="text-xs text-zinc-500">
49
+ <template
50
+ v-if="fieldDescription('transform')"
51
+ #tooltip
52
+ >
53
+ <Markdown
54
+ :source="fieldDescription('transform')"
55
+ block
56
+ class="prose prose-sm prose-zinc"
57
+ />
58
+ </template>
59
+ {{ fieldTitle("transform") }}
60
+ </FieldLabel>
61
+ <ExpressionEditor
62
+ :model-value="value.transform ?? ''"
63
+ placeholder="如 json.orValue([]).map(c, { 'key': c.parameter_name, 'header': c.name, 'kind': 'text', 'accessor': &quot;row.custom_property.filter(p, p.name == '&quot; + c.parameter_name + &quot;')[0].?value&quot; })"
64
+ result-type="list"
65
+ multiline
66
+ class="min-h-32"
67
+ :extra-vars="TRANSFORM_VARS"
68
+ :exclude-vars="NON_ROW_EXCLUDE"
69
+ @update:model-value="(v) => value = { ...value, transform: v }"
70
+ />
71
+ </Field>
72
+ </div>
73
+ </template>
@@ -0,0 +1,10 @@
1
+ type __VLS_ModelProps = {
2
+ modelValue: Record<string, any>;
3
+ };
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ "update:modelValue": (value: Record<string, any>) => any;
6
+ }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
7
+ "onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
8
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;