@shwfed/config 3.0.12 → 3.0.13
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/config/blocks/2026-06-17/com.shwfed.block.tree.single/config.d.vue.ts +18 -18
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/config.vue.d.ts +18 -18
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/runtime.d.vue.ts +18 -18
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/runtime.vue.d.ts +18 -18
- package/dist/runtime/components/config/blocks/2026-07-17/com.shwfed.block.invoice.digital/config.d.vue.ts +8 -8
- package/dist/runtime/components/config/blocks/2026-07-17/com.shwfed.block.invoice.digital/config.vue +264 -286
- package/dist/runtime/components/config/blocks/2026-07-17/com.shwfed.block.invoice.digital/config.vue.d.ts +8 -8
- package/dist/runtime/components/config/blocks/2026-07-17/com.shwfed.block.invoice.digital/runtime.d.vue.ts +8 -8
- package/dist/runtime/components/config/blocks/2026-07-17/com.shwfed.block.invoice.digital/runtime.vue +91 -291
- package/dist/runtime/components/config/blocks/2026-07-17/com.shwfed.block.invoice.digital/runtime.vue.d.ts +8 -8
- package/dist/runtime/components/config/blocks/2026-07-17/com.shwfed.block.invoice.digital/schema.d.ts +3 -28
- package/dist/runtime/components/config/blocks/2026-07-17/com.shwfed.block.invoice.digital/schema.js +9 -33
- package/dist/runtime/components/config/index.d.vue.ts +2 -2
- package/dist/runtime/components/config/index.vue.d.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.d.vue.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.vue.d.ts +2 -2
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +26 -26
- package/dist/runtime/components/form/utils/validation.js +9 -7
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-07-16/com.shwfed.table.column.upload/config.vue +57 -247
- package/dist/runtime/components/table/columns/2026-07-16/com.shwfed.table.column.upload/prompt.md +2 -2
- package/dist/runtime/components/table/columns/2026-07-16/com.shwfed.table.column.upload/runtime.vue +21 -124
- package/dist/runtime/components/table/columns/2026-07-16/com.shwfed.table.column.upload/schema.d.ts +5 -27
- package/dist/runtime/components/table/columns/2026-07-16/com.shwfed.table.column.upload/schema.js +10 -37
- package/dist/runtime/components/ui/invoice/InvoiceSheet.d.vue.ts +66 -0
- package/dist/runtime/components/ui/invoice/InvoiceSheet.vue +182 -0
- package/dist/runtime/components/ui/invoice/InvoiceSheet.vue.d.ts +66 -0
- package/dist/runtime/components/ui/invoice/index.d.ts +1 -0
- package/dist/runtime/components/ui/invoice/index.js +1 -0
- package/dist/runtime/components/ui/invoice-config/InvoiceConfigShell.d.vue.ts +36 -0
- package/dist/runtime/components/ui/invoice-config/InvoiceConfigShell.vue +41 -0
- package/dist/runtime/components/ui/invoice-config/InvoiceConfigShell.vue.d.ts +36 -0
- package/dist/runtime/components/{config/blocks/2026-07-17/com.shwfed.block.invoice.digital/expr-field.vue → ui/invoice-config/InvoiceExprField.vue} +4 -4
- package/dist/runtime/components/{config/blocks/2026-07-17/com.shwfed.block.invoice.digital/json-scope-provider.vue → ui/invoice-config/InvoiceJsonScope.vue} +3 -3
- package/dist/runtime/components/{config/blocks/2026-07-17/com.shwfed.block.invoice.digital/row-scope-provider.vue → ui/invoice-config/InvoiceRowScope.vue} +2 -2
- package/dist/runtime/components/ui/invoice-config/index.d.ts +4 -0
- package/dist/runtime/components/ui/invoice-config/index.js +4 -0
- package/dist/runtime/share/invoice-eval.d.ts +13 -0
- package/dist/runtime/share/invoice-eval.js +88 -0
- package/dist/runtime/share/invoice.d.ts +68 -0
- package/dist/runtime/share/invoice.js +35 -0
- package/package.json +1 -1
- /package/dist/runtime/components/{config/blocks/2026-07-17/com.shwfed.block.invoice.digital/expr-field.d.vue.ts → ui/invoice-config/InvoiceExprField.d.vue.ts} +0 -0
- /package/dist/runtime/components/{config/blocks/2026-07-17/com.shwfed.block.invoice.digital/expr-field.vue.d.ts → ui/invoice-config/InvoiceExprField.vue.d.ts} +0 -0
- /package/dist/runtime/components/{config/blocks/2026-07-17/com.shwfed.block.invoice.digital/json-scope-provider.d.vue.ts → ui/invoice-config/InvoiceJsonScope.d.vue.ts} +0 -0
- /package/dist/runtime/components/{config/blocks/2026-07-17/com.shwfed.block.invoice.digital/json-scope-provider.vue.d.ts → ui/invoice-config/InvoiceJsonScope.vue.d.ts} +0 -0
- /package/dist/runtime/components/{config/blocks/2026-07-17/com.shwfed.block.invoice.digital/row-scope-provider.d.vue.ts → ui/invoice-config/InvoiceRowScope.d.vue.ts} +0 -0
- /package/dist/runtime/components/{config/blocks/2026-07-17/com.shwfed.block.invoice.digital/row-scope-provider.vue.d.ts → ui/invoice-config/InvoiceRowScope.vue.d.ts} +0 -0
- /package/dist/runtime/{components/config/blocks/2026-07-17/com.shwfed.block.invoice.digital → share}/rmb.d.ts +0 -0
- /package/dist/runtime/{components/config/blocks/2026-07-17/com.shwfed.block.invoice.digital → share}/rmb.js +0 -0
|
@@ -37,15 +37,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
37
37
|
readonly displayName?: string | undefined;
|
|
38
38
|
readonly compatibilityDate: "2026-05-28";
|
|
39
39
|
readonly readonly?: string | undefined;
|
|
40
|
+
readonly dataSource: {
|
|
41
|
+
readonly data: string;
|
|
42
|
+
readonly request?: string | undefined;
|
|
43
|
+
};
|
|
40
44
|
readonly binding?: string | undefined;
|
|
41
45
|
readonly derived?: {
|
|
42
46
|
readonly mode: "formula" | "prefill";
|
|
43
47
|
readonly expression: string;
|
|
44
48
|
} | undefined;
|
|
45
|
-
readonly dataSource: {
|
|
46
|
-
readonly data: string;
|
|
47
|
-
readonly request?: string | undefined;
|
|
48
|
-
};
|
|
49
49
|
readonly nodeKey: string;
|
|
50
50
|
readonly nodeChildren: string;
|
|
51
51
|
readonly nodeLabel: readonly [{
|
|
@@ -56,6 +56,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
56
56
|
readonly message: string;
|
|
57
57
|
}[]];
|
|
58
58
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
59
|
+
readonly nodeTooltip?: readonly [{
|
|
60
|
+
readonly locale: "zh";
|
|
61
|
+
readonly message: string;
|
|
62
|
+
}, ...{
|
|
63
|
+
readonly locale: "en" | "ja" | "ko";
|
|
64
|
+
readonly message: string;
|
|
65
|
+
}[]] | undefined;
|
|
66
|
+
readonly nodeSelectable?: string | undefined;
|
|
67
|
+
readonly expandAll: boolean;
|
|
59
68
|
readonly validations?: readonly {
|
|
60
69
|
readonly message: readonly [{
|
|
61
70
|
readonly locale: "zh";
|
|
@@ -67,15 +76,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
67
76
|
readonly warning?: boolean | undefined;
|
|
68
77
|
readonly when: string;
|
|
69
78
|
}[] | undefined;
|
|
70
|
-
readonly nodeTooltip?: readonly [{
|
|
71
|
-
readonly locale: "zh";
|
|
72
|
-
readonly message: string;
|
|
73
|
-
}, ...{
|
|
74
|
-
readonly locale: "en" | "ja" | "ko";
|
|
75
|
-
readonly message: string;
|
|
76
|
-
}[]] | undefined;
|
|
77
|
-
readonly nodeSelectable?: string | undefined;
|
|
78
|
-
readonly expandAll: boolean;
|
|
79
79
|
}) => any;
|
|
80
80
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
81
81
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -112,15 +112,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
112
112
|
readonly displayName?: string | undefined;
|
|
113
113
|
readonly compatibilityDate: "2026-05-28";
|
|
114
114
|
readonly readonly?: string | undefined;
|
|
115
|
+
readonly dataSource: {
|
|
116
|
+
readonly data: string;
|
|
117
|
+
readonly request?: string | undefined;
|
|
118
|
+
};
|
|
115
119
|
readonly binding?: string | undefined;
|
|
116
120
|
readonly derived?: {
|
|
117
121
|
readonly mode: "formula" | "prefill";
|
|
118
122
|
readonly expression: string;
|
|
119
123
|
} | undefined;
|
|
120
|
-
readonly dataSource: {
|
|
121
|
-
readonly data: string;
|
|
122
|
-
readonly request?: string | undefined;
|
|
123
|
-
};
|
|
124
124
|
readonly nodeKey: string;
|
|
125
125
|
readonly nodeChildren: string;
|
|
126
126
|
readonly nodeLabel: readonly [{
|
|
@@ -131,6 +131,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
131
131
|
readonly message: string;
|
|
132
132
|
}[]];
|
|
133
133
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
134
|
+
readonly nodeTooltip?: readonly [{
|
|
135
|
+
readonly locale: "zh";
|
|
136
|
+
readonly message: string;
|
|
137
|
+
}, ...{
|
|
138
|
+
readonly locale: "en" | "ja" | "ko";
|
|
139
|
+
readonly message: string;
|
|
140
|
+
}[]] | undefined;
|
|
141
|
+
readonly nodeSelectable?: string | undefined;
|
|
142
|
+
readonly expandAll: boolean;
|
|
134
143
|
readonly validations?: readonly {
|
|
135
144
|
readonly message: readonly [{
|
|
136
145
|
readonly locale: "zh";
|
|
@@ -142,15 +151,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
142
151
|
readonly warning?: boolean | undefined;
|
|
143
152
|
readonly when: string;
|
|
144
153
|
}[] | undefined;
|
|
145
|
-
readonly nodeTooltip?: readonly [{
|
|
146
|
-
readonly locale: "zh";
|
|
147
|
-
readonly message: string;
|
|
148
|
-
}, ...{
|
|
149
|
-
readonly locale: "en" | "ja" | "ko";
|
|
150
|
-
readonly message: string;
|
|
151
|
-
}[]] | undefined;
|
|
152
|
-
readonly nodeSelectable?: string | undefined;
|
|
153
|
-
readonly expandAll: boolean;
|
|
154
154
|
}) => any) | undefined;
|
|
155
155
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
156
156
|
declare const _default: typeof __VLS_export;
|
|
@@ -37,15 +37,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
37
37
|
readonly displayName?: string | undefined;
|
|
38
38
|
readonly compatibilityDate: "2026-05-28";
|
|
39
39
|
readonly readonly?: string | undefined;
|
|
40
|
+
readonly dataSource: {
|
|
41
|
+
readonly data: string;
|
|
42
|
+
readonly request?: string | undefined;
|
|
43
|
+
};
|
|
40
44
|
readonly binding?: string | undefined;
|
|
41
45
|
readonly derived?: {
|
|
42
46
|
readonly mode: "formula" | "prefill";
|
|
43
47
|
readonly expression: string;
|
|
44
48
|
} | undefined;
|
|
45
|
-
readonly dataSource: {
|
|
46
|
-
readonly data: string;
|
|
47
|
-
readonly request?: string | undefined;
|
|
48
|
-
};
|
|
49
49
|
readonly nodeKey: string;
|
|
50
50
|
readonly nodeChildren: string;
|
|
51
51
|
readonly nodeLabel: readonly [{
|
|
@@ -55,6 +55,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
55
55
|
readonly locale: "en" | "ja" | "ko";
|
|
56
56
|
readonly message: string;
|
|
57
57
|
}[]];
|
|
58
|
+
readonly nodeTooltip?: readonly [{
|
|
59
|
+
readonly locale: "zh";
|
|
60
|
+
readonly message: string;
|
|
61
|
+
}, ...{
|
|
62
|
+
readonly locale: "en" | "ja" | "ko";
|
|
63
|
+
readonly message: string;
|
|
64
|
+
}[]] | undefined;
|
|
65
|
+
readonly nodeSelectable?: string | undefined;
|
|
66
|
+
readonly expandAll: boolean;
|
|
58
67
|
readonly validations?: readonly {
|
|
59
68
|
readonly message: readonly [{
|
|
60
69
|
readonly locale: "zh";
|
|
@@ -66,15 +75,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
66
75
|
readonly warning?: boolean | undefined;
|
|
67
76
|
readonly when: string;
|
|
68
77
|
}[] | undefined;
|
|
69
|
-
readonly nodeTooltip?: readonly [{
|
|
70
|
-
readonly locale: "zh";
|
|
71
|
-
readonly message: string;
|
|
72
|
-
}, ...{
|
|
73
|
-
readonly locale: "en" | "ja" | "ko";
|
|
74
|
-
readonly message: string;
|
|
75
|
-
}[]] | undefined;
|
|
76
|
-
readonly nodeSelectable?: string | undefined;
|
|
77
|
-
readonly expandAll: boolean;
|
|
78
78
|
}) => any;
|
|
79
79
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
80
80
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -111,15 +111,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
111
111
|
readonly displayName?: string | undefined;
|
|
112
112
|
readonly compatibilityDate: "2026-05-28";
|
|
113
113
|
readonly readonly?: string | undefined;
|
|
114
|
+
readonly dataSource: {
|
|
115
|
+
readonly data: string;
|
|
116
|
+
readonly request?: string | undefined;
|
|
117
|
+
};
|
|
114
118
|
readonly binding?: string | undefined;
|
|
115
119
|
readonly derived?: {
|
|
116
120
|
readonly mode: "formula" | "prefill";
|
|
117
121
|
readonly expression: string;
|
|
118
122
|
} | undefined;
|
|
119
|
-
readonly dataSource: {
|
|
120
|
-
readonly data: string;
|
|
121
|
-
readonly request?: string | undefined;
|
|
122
|
-
};
|
|
123
123
|
readonly nodeKey: string;
|
|
124
124
|
readonly nodeChildren: string;
|
|
125
125
|
readonly nodeLabel: readonly [{
|
|
@@ -129,6 +129,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
129
129
|
readonly locale: "en" | "ja" | "ko";
|
|
130
130
|
readonly message: string;
|
|
131
131
|
}[]];
|
|
132
|
+
readonly nodeTooltip?: readonly [{
|
|
133
|
+
readonly locale: "zh";
|
|
134
|
+
readonly message: string;
|
|
135
|
+
}, ...{
|
|
136
|
+
readonly locale: "en" | "ja" | "ko";
|
|
137
|
+
readonly message: string;
|
|
138
|
+
}[]] | undefined;
|
|
139
|
+
readonly nodeSelectable?: string | undefined;
|
|
140
|
+
readonly expandAll: boolean;
|
|
132
141
|
readonly validations?: readonly {
|
|
133
142
|
readonly message: readonly [{
|
|
134
143
|
readonly locale: "zh";
|
|
@@ -140,15 +149,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
140
149
|
readonly warning?: boolean | undefined;
|
|
141
150
|
readonly when: string;
|
|
142
151
|
}[] | undefined;
|
|
143
|
-
readonly nodeTooltip?: readonly [{
|
|
144
|
-
readonly locale: "zh";
|
|
145
|
-
readonly message: string;
|
|
146
|
-
}, ...{
|
|
147
|
-
readonly locale: "en" | "ja" | "ko";
|
|
148
|
-
readonly message: string;
|
|
149
|
-
}[]] | undefined;
|
|
150
|
-
readonly nodeSelectable?: string | undefined;
|
|
151
|
-
readonly expandAll: boolean;
|
|
152
152
|
}) => any) | undefined;
|
|
153
153
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
154
154
|
declare const _default: typeof __VLS_export;
|
|
@@ -37,15 +37,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
37
37
|
readonly displayName?: string | undefined;
|
|
38
38
|
readonly compatibilityDate: "2026-05-28";
|
|
39
39
|
readonly readonly?: string | undefined;
|
|
40
|
+
readonly dataSource: {
|
|
41
|
+
readonly data: string;
|
|
42
|
+
readonly request?: string | undefined;
|
|
43
|
+
};
|
|
40
44
|
readonly binding?: string | undefined;
|
|
41
45
|
readonly derived?: {
|
|
42
46
|
readonly mode: "formula" | "prefill";
|
|
43
47
|
readonly expression: string;
|
|
44
48
|
} | undefined;
|
|
45
|
-
readonly dataSource: {
|
|
46
|
-
readonly data: string;
|
|
47
|
-
readonly request?: string | undefined;
|
|
48
|
-
};
|
|
49
49
|
readonly nodeKey: string;
|
|
50
50
|
readonly nodeChildren: string;
|
|
51
51
|
readonly nodeLabel: readonly [{
|
|
@@ -55,6 +55,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
55
55
|
readonly locale: "en" | "ja" | "ko";
|
|
56
56
|
readonly message: string;
|
|
57
57
|
}[]];
|
|
58
|
+
readonly nodeTooltip?: readonly [{
|
|
59
|
+
readonly locale: "zh";
|
|
60
|
+
readonly message: string;
|
|
61
|
+
}, ...{
|
|
62
|
+
readonly locale: "en" | "ja" | "ko";
|
|
63
|
+
readonly message: string;
|
|
64
|
+
}[]] | undefined;
|
|
65
|
+
readonly nodeSelectable?: string | undefined;
|
|
66
|
+
readonly expandAll: boolean;
|
|
58
67
|
readonly validations?: readonly {
|
|
59
68
|
readonly message: readonly [{
|
|
60
69
|
readonly locale: "zh";
|
|
@@ -66,15 +75,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
66
75
|
readonly warning?: boolean | undefined;
|
|
67
76
|
readonly when: string;
|
|
68
77
|
}[] | undefined;
|
|
69
|
-
readonly nodeTooltip?: readonly [{
|
|
70
|
-
readonly locale: "zh";
|
|
71
|
-
readonly message: string;
|
|
72
|
-
}, ...{
|
|
73
|
-
readonly locale: "en" | "ja" | "ko";
|
|
74
|
-
readonly message: string;
|
|
75
|
-
}[]] | undefined;
|
|
76
|
-
readonly nodeSelectable?: string | undefined;
|
|
77
|
-
readonly expandAll: boolean;
|
|
78
78
|
}) => any;
|
|
79
79
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
80
80
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -111,15 +111,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
111
111
|
readonly displayName?: string | undefined;
|
|
112
112
|
readonly compatibilityDate: "2026-05-28";
|
|
113
113
|
readonly readonly?: string | undefined;
|
|
114
|
+
readonly dataSource: {
|
|
115
|
+
readonly data: string;
|
|
116
|
+
readonly request?: string | undefined;
|
|
117
|
+
};
|
|
114
118
|
readonly binding?: string | undefined;
|
|
115
119
|
readonly derived?: {
|
|
116
120
|
readonly mode: "formula" | "prefill";
|
|
117
121
|
readonly expression: string;
|
|
118
122
|
} | undefined;
|
|
119
|
-
readonly dataSource: {
|
|
120
|
-
readonly data: string;
|
|
121
|
-
readonly request?: string | undefined;
|
|
122
|
-
};
|
|
123
123
|
readonly nodeKey: string;
|
|
124
124
|
readonly nodeChildren: string;
|
|
125
125
|
readonly nodeLabel: readonly [{
|
|
@@ -129,6 +129,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
129
129
|
readonly locale: "en" | "ja" | "ko";
|
|
130
130
|
readonly message: string;
|
|
131
131
|
}[]];
|
|
132
|
+
readonly nodeTooltip?: readonly [{
|
|
133
|
+
readonly locale: "zh";
|
|
134
|
+
readonly message: string;
|
|
135
|
+
}, ...{
|
|
136
|
+
readonly locale: "en" | "ja" | "ko";
|
|
137
|
+
readonly message: string;
|
|
138
|
+
}[]] | undefined;
|
|
139
|
+
readonly nodeSelectable?: string | undefined;
|
|
140
|
+
readonly expandAll: boolean;
|
|
132
141
|
readonly validations?: readonly {
|
|
133
142
|
readonly message: readonly [{
|
|
134
143
|
readonly locale: "zh";
|
|
@@ -140,15 +149,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
140
149
|
readonly warning?: boolean | undefined;
|
|
141
150
|
readonly when: string;
|
|
142
151
|
}[] | undefined;
|
|
143
|
-
readonly nodeTooltip?: readonly [{
|
|
144
|
-
readonly locale: "zh";
|
|
145
|
-
readonly message: string;
|
|
146
|
-
}, ...{
|
|
147
|
-
readonly locale: "en" | "ja" | "ko";
|
|
148
|
-
readonly message: string;
|
|
149
|
-
}[]] | undefined;
|
|
150
|
-
readonly nodeSelectable?: string | undefined;
|
|
151
|
-
readonly expandAll: boolean;
|
|
152
152
|
}) => any) | undefined;
|
|
153
153
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
154
154
|
declare const _default: typeof __VLS_export;
|
|
@@ -63,23 +63,25 @@ function isEmptyValue(value) {
|
|
|
63
63
|
export function useFieldValidation(options) {
|
|
64
64
|
const { getAt, dirty } = useFormState();
|
|
65
65
|
const provider = useValidationProvider();
|
|
66
|
-
function evalBool(expression) {
|
|
66
|
+
function evalBool(expression, label) {
|
|
67
67
|
if (!expression) return false;
|
|
68
68
|
try {
|
|
69
69
|
return Effect.runSync(options.$cel(expression));
|
|
70
|
-
} catch {
|
|
70
|
+
} catch (err) {
|
|
71
|
+
console.error(`[shwfed-form] failed to evaluate ${label} for ${options.fieldId()}:`, err);
|
|
71
72
|
return false;
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
|
-
const isRequired = computed(() => evalBool(options.config().required));
|
|
75
|
-
function resolveMessage(message) {
|
|
75
|
+
const isRequired = computed(() => evalBool(options.config().required, "required"));
|
|
76
|
+
function resolveMessage(message, label) {
|
|
76
77
|
const template = getLocalizedText(message, options.locale()) ?? "";
|
|
77
78
|
if (!template) return "";
|
|
78
79
|
return interpolate(template, (expression) => {
|
|
79
80
|
try {
|
|
80
81
|
const out = Effect.runSync(options.$cel(expression));
|
|
81
82
|
return out == null ? "" : String(out);
|
|
82
|
-
} catch {
|
|
83
|
+
} catch (err) {
|
|
84
|
+
console.error(`[shwfed-form] failed to interpolate ${label} for ${options.fieldId()}:`, err);
|
|
83
85
|
return "";
|
|
84
86
|
}
|
|
85
87
|
});
|
|
@@ -92,9 +94,9 @@ export function useFieldValidation(options) {
|
|
|
92
94
|
}
|
|
93
95
|
const rules = config.validations ?? [];
|
|
94
96
|
rules.forEach((rule, ruleIndex) => {
|
|
95
|
-
if (!evalBool(rule.when)) return;
|
|
97
|
+
if (!evalBool(rule.when, `validations[${ruleIndex}].when`)) return;
|
|
96
98
|
const severity = rule.warning ? "warning" : "error";
|
|
97
|
-
out.push({ severity, message: resolveMessage(rule.message), ruleIndex });
|
|
99
|
+
out.push({ severity, message: resolveMessage(rule.message, `validations[${ruleIndex}].message`), ruleIndex });
|
|
98
100
|
});
|
|
99
101
|
return out;
|
|
100
102
|
});
|
|
@@ -34,15 +34,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
34
34
|
readonly message: string;
|
|
35
35
|
}[]] | undefined;
|
|
36
36
|
readonly readonly?: string | undefined;
|
|
37
|
+
readonly dataSource: {
|
|
38
|
+
readonly data: string;
|
|
39
|
+
readonly request?: string | undefined;
|
|
40
|
+
};
|
|
37
41
|
readonly binding: string;
|
|
38
42
|
readonly derived?: {
|
|
39
43
|
readonly mode: "formula" | "prefill";
|
|
40
44
|
readonly expression: string;
|
|
41
45
|
} | undefined;
|
|
42
|
-
readonly dataSource: {
|
|
43
|
-
readonly data: string;
|
|
44
|
-
readonly request?: string | undefined;
|
|
45
|
-
};
|
|
46
46
|
readonly nodeKey: string;
|
|
47
47
|
readonly nodeChildren: string;
|
|
48
48
|
readonly nodeLabel: readonly [{
|
|
@@ -97,15 +97,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
97
97
|
readonly message: string;
|
|
98
98
|
}[]] | undefined;
|
|
99
99
|
readonly readonly?: string | undefined;
|
|
100
|
+
readonly dataSource: {
|
|
101
|
+
readonly data: string;
|
|
102
|
+
readonly request?: string | undefined;
|
|
103
|
+
};
|
|
100
104
|
readonly binding: string;
|
|
101
105
|
readonly derived?: {
|
|
102
106
|
readonly mode: "formula" | "prefill";
|
|
103
107
|
readonly expression: string;
|
|
104
108
|
} | undefined;
|
|
105
|
-
readonly dataSource: {
|
|
106
|
-
readonly data: string;
|
|
107
|
-
readonly request?: string | undefined;
|
|
108
|
-
};
|
|
109
109
|
readonly nodeKey: string;
|
|
110
110
|
readonly nodeChildren: string;
|
|
111
111
|
readonly nodeLabel: readonly [{
|
|
@@ -34,15 +34,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
34
34
|
readonly message: string;
|
|
35
35
|
}[]] | undefined;
|
|
36
36
|
readonly readonly?: string | undefined;
|
|
37
|
+
readonly dataSource: {
|
|
38
|
+
readonly data: string;
|
|
39
|
+
readonly request?: string | undefined;
|
|
40
|
+
};
|
|
37
41
|
readonly binding: string;
|
|
38
42
|
readonly derived?: {
|
|
39
43
|
readonly mode: "formula" | "prefill";
|
|
40
44
|
readonly expression: string;
|
|
41
45
|
} | undefined;
|
|
42
|
-
readonly dataSource: {
|
|
43
|
-
readonly data: string;
|
|
44
|
-
readonly request?: string | undefined;
|
|
45
|
-
};
|
|
46
46
|
readonly nodeKey: string;
|
|
47
47
|
readonly nodeChildren: string;
|
|
48
48
|
readonly nodeLabel: readonly [{
|
|
@@ -97,15 +97,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
97
97
|
readonly message: string;
|
|
98
98
|
}[]] | undefined;
|
|
99
99
|
readonly readonly?: string | undefined;
|
|
100
|
+
readonly dataSource: {
|
|
101
|
+
readonly data: string;
|
|
102
|
+
readonly request?: string | undefined;
|
|
103
|
+
};
|
|
100
104
|
readonly binding: string;
|
|
101
105
|
readonly derived?: {
|
|
102
106
|
readonly mode: "formula" | "prefill";
|
|
103
107
|
readonly expression: string;
|
|
104
108
|
} | undefined;
|
|
105
|
-
readonly dataSource: {
|
|
106
|
-
readonly data: string;
|
|
107
|
-
readonly request?: string | undefined;
|
|
108
|
-
};
|
|
109
109
|
readonly nodeKey: string;
|
|
110
110
|
readonly nodeChildren: string;
|
|
111
111
|
readonly nodeLabel: readonly [{
|
|
@@ -34,15 +34,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
34
34
|
readonly message: string;
|
|
35
35
|
}[]] | undefined;
|
|
36
36
|
readonly readonly?: string | undefined;
|
|
37
|
+
readonly dataSource: {
|
|
38
|
+
readonly data: string;
|
|
39
|
+
readonly request?: string | undefined;
|
|
40
|
+
};
|
|
37
41
|
readonly binding: string;
|
|
38
42
|
readonly derived?: {
|
|
39
43
|
readonly mode: "formula" | "prefill";
|
|
40
44
|
readonly expression: string;
|
|
41
45
|
} | undefined;
|
|
42
|
-
readonly dataSource: {
|
|
43
|
-
readonly data: string;
|
|
44
|
-
readonly request?: string | undefined;
|
|
45
|
-
};
|
|
46
46
|
readonly nodeKey: string;
|
|
47
47
|
readonly nodeChildren: string;
|
|
48
48
|
readonly nodeLabel: readonly [{
|
|
@@ -96,15 +96,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
96
96
|
readonly message: string;
|
|
97
97
|
}[]] | undefined;
|
|
98
98
|
readonly readonly?: string | undefined;
|
|
99
|
+
readonly dataSource: {
|
|
100
|
+
readonly data: string;
|
|
101
|
+
readonly request?: string | undefined;
|
|
102
|
+
};
|
|
99
103
|
readonly binding: string;
|
|
100
104
|
readonly derived?: {
|
|
101
105
|
readonly mode: "formula" | "prefill";
|
|
102
106
|
readonly expression: string;
|
|
103
107
|
} | undefined;
|
|
104
|
-
readonly dataSource: {
|
|
105
|
-
readonly data: string;
|
|
106
|
-
readonly request?: string | undefined;
|
|
107
|
-
};
|
|
108
108
|
readonly nodeKey: string;
|
|
109
109
|
readonly nodeChildren: string;
|
|
110
110
|
readonly nodeLabel: readonly [{
|
|
@@ -34,15 +34,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
34
34
|
readonly message: string;
|
|
35
35
|
}[]] | undefined;
|
|
36
36
|
readonly readonly?: string | undefined;
|
|
37
|
+
readonly dataSource: {
|
|
38
|
+
readonly data: string;
|
|
39
|
+
readonly request?: string | undefined;
|
|
40
|
+
};
|
|
37
41
|
readonly binding: string;
|
|
38
42
|
readonly derived?: {
|
|
39
43
|
readonly mode: "formula" | "prefill";
|
|
40
44
|
readonly expression: string;
|
|
41
45
|
} | undefined;
|
|
42
|
-
readonly dataSource: {
|
|
43
|
-
readonly data: string;
|
|
44
|
-
readonly request?: string | undefined;
|
|
45
|
-
};
|
|
46
46
|
readonly nodeKey: string;
|
|
47
47
|
readonly nodeChildren: string;
|
|
48
48
|
readonly nodeLabel: readonly [{
|
|
@@ -96,15 +96,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
96
96
|
readonly message: string;
|
|
97
97
|
}[]] | undefined;
|
|
98
98
|
readonly readonly?: string | undefined;
|
|
99
|
+
readonly dataSource: {
|
|
100
|
+
readonly data: string;
|
|
101
|
+
readonly request?: string | undefined;
|
|
102
|
+
};
|
|
99
103
|
readonly binding: string;
|
|
100
104
|
readonly derived?: {
|
|
101
105
|
readonly mode: "formula" | "prefill";
|
|
102
106
|
readonly expression: string;
|
|
103
107
|
} | undefined;
|
|
104
|
-
readonly dataSource: {
|
|
105
|
-
readonly data: string;
|
|
106
|
-
readonly request?: string | undefined;
|
|
107
|
-
};
|
|
108
108
|
readonly nodeKey: string;
|
|
109
109
|
readonly nodeChildren: string;
|
|
110
110
|
readonly nodeLabel: readonly [{
|
|
@@ -35,15 +35,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
35
35
|
}[]] | undefined;
|
|
36
36
|
readonly keywords?: string | undefined;
|
|
37
37
|
readonly readonly?: string | undefined;
|
|
38
|
+
readonly dataSource: {
|
|
39
|
+
readonly data: string;
|
|
40
|
+
readonly request?: string | undefined;
|
|
41
|
+
};
|
|
38
42
|
readonly binding: string;
|
|
39
43
|
readonly derived?: {
|
|
40
44
|
readonly mode: "formula" | "prefill";
|
|
41
45
|
readonly expression: string;
|
|
42
46
|
} | undefined;
|
|
43
|
-
readonly dataSource: {
|
|
44
|
-
readonly data: string;
|
|
45
|
-
readonly request?: string | undefined;
|
|
46
|
-
};
|
|
47
47
|
readonly nodeKey: string;
|
|
48
48
|
readonly nodeChildren: string;
|
|
49
49
|
readonly nodeLabel: readonly [{
|
|
@@ -99,15 +99,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
99
99
|
}[]] | undefined;
|
|
100
100
|
readonly keywords?: string | undefined;
|
|
101
101
|
readonly readonly?: string | undefined;
|
|
102
|
+
readonly dataSource: {
|
|
103
|
+
readonly data: string;
|
|
104
|
+
readonly request?: string | undefined;
|
|
105
|
+
};
|
|
102
106
|
readonly binding: string;
|
|
103
107
|
readonly derived?: {
|
|
104
108
|
readonly mode: "formula" | "prefill";
|
|
105
109
|
readonly expression: string;
|
|
106
110
|
} | undefined;
|
|
107
|
-
readonly dataSource: {
|
|
108
|
-
readonly data: string;
|
|
109
|
-
readonly request?: string | undefined;
|
|
110
|
-
};
|
|
111
111
|
readonly nodeKey: string;
|
|
112
112
|
readonly nodeChildren: string;
|
|
113
113
|
readonly nodeLabel: readonly [{
|
|
@@ -35,15 +35,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
35
35
|
}[]] | undefined;
|
|
36
36
|
readonly keywords?: string | undefined;
|
|
37
37
|
readonly readonly?: string | undefined;
|
|
38
|
+
readonly dataSource: {
|
|
39
|
+
readonly data: string;
|
|
40
|
+
readonly request?: string | undefined;
|
|
41
|
+
};
|
|
38
42
|
readonly binding: string;
|
|
39
43
|
readonly derived?: {
|
|
40
44
|
readonly mode: "formula" | "prefill";
|
|
41
45
|
readonly expression: string;
|
|
42
46
|
} | undefined;
|
|
43
|
-
readonly dataSource: {
|
|
44
|
-
readonly data: string;
|
|
45
|
-
readonly request?: string | undefined;
|
|
46
|
-
};
|
|
47
47
|
readonly nodeKey: string;
|
|
48
48
|
readonly nodeChildren: string;
|
|
49
49
|
readonly nodeLabel: readonly [{
|
|
@@ -99,15 +99,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
99
99
|
}[]] | undefined;
|
|
100
100
|
readonly keywords?: string | undefined;
|
|
101
101
|
readonly readonly?: string | undefined;
|
|
102
|
+
readonly dataSource: {
|
|
103
|
+
readonly data: string;
|
|
104
|
+
readonly request?: string | undefined;
|
|
105
|
+
};
|
|
102
106
|
readonly binding: string;
|
|
103
107
|
readonly derived?: {
|
|
104
108
|
readonly mode: "formula" | "prefill";
|
|
105
109
|
readonly expression: string;
|
|
106
110
|
} | undefined;
|
|
107
|
-
readonly dataSource: {
|
|
108
|
-
readonly data: string;
|
|
109
|
-
readonly request?: string | undefined;
|
|
110
|
-
};
|
|
111
111
|
readonly nodeKey: string;
|
|
112
112
|
readonly nodeChildren: string;
|
|
113
113
|
readonly nodeLabel: readonly [{
|
|
@@ -35,15 +35,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
35
35
|
}[]] | undefined;
|
|
36
36
|
readonly keywords?: string | undefined;
|
|
37
37
|
readonly readonly?: string | undefined;
|
|
38
|
+
readonly dataSource: {
|
|
39
|
+
readonly data: string;
|
|
40
|
+
readonly request?: string | undefined;
|
|
41
|
+
};
|
|
38
42
|
readonly binding: string;
|
|
39
43
|
readonly derived?: {
|
|
40
44
|
readonly mode: "formula" | "prefill";
|
|
41
45
|
readonly expression: string;
|
|
42
46
|
} | undefined;
|
|
43
|
-
readonly dataSource: {
|
|
44
|
-
readonly data: string;
|
|
45
|
-
readonly request?: string | undefined;
|
|
46
|
-
};
|
|
47
47
|
readonly nodeKey: string;
|
|
48
48
|
readonly nodeChildren: string;
|
|
49
49
|
readonly nodeLabel: readonly [{
|
|
@@ -98,15 +98,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
98
98
|
}[]] | undefined;
|
|
99
99
|
readonly keywords?: string | undefined;
|
|
100
100
|
readonly readonly?: string | undefined;
|
|
101
|
+
readonly dataSource: {
|
|
102
|
+
readonly data: string;
|
|
103
|
+
readonly request?: string | undefined;
|
|
104
|
+
};
|
|
101
105
|
readonly binding: string;
|
|
102
106
|
readonly derived?: {
|
|
103
107
|
readonly mode: "formula" | "prefill";
|
|
104
108
|
readonly expression: string;
|
|
105
109
|
} | undefined;
|
|
106
|
-
readonly dataSource: {
|
|
107
|
-
readonly data: string;
|
|
108
|
-
readonly request?: string | undefined;
|
|
109
|
-
};
|
|
110
110
|
readonly nodeKey: string;
|
|
111
111
|
readonly nodeChildren: string;
|
|
112
112
|
readonly nodeLabel: readonly [{
|
|
@@ -35,15 +35,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
35
35
|
}[]] | undefined;
|
|
36
36
|
readonly keywords?: string | undefined;
|
|
37
37
|
readonly readonly?: string | undefined;
|
|
38
|
+
readonly dataSource: {
|
|
39
|
+
readonly data: string;
|
|
40
|
+
readonly request?: string | undefined;
|
|
41
|
+
};
|
|
38
42
|
readonly binding: string;
|
|
39
43
|
readonly derived?: {
|
|
40
44
|
readonly mode: "formula" | "prefill";
|
|
41
45
|
readonly expression: string;
|
|
42
46
|
} | undefined;
|
|
43
|
-
readonly dataSource: {
|
|
44
|
-
readonly data: string;
|
|
45
|
-
readonly request?: string | undefined;
|
|
46
|
-
};
|
|
47
47
|
readonly nodeKey: string;
|
|
48
48
|
readonly nodeChildren: string;
|
|
49
49
|
readonly nodeLabel: readonly [{
|
|
@@ -98,15 +98,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
98
98
|
}[]] | undefined;
|
|
99
99
|
readonly keywords?: string | undefined;
|
|
100
100
|
readonly readonly?: string | undefined;
|
|
101
|
+
readonly dataSource: {
|
|
102
|
+
readonly data: string;
|
|
103
|
+
readonly request?: string | undefined;
|
|
104
|
+
};
|
|
101
105
|
readonly binding: string;
|
|
102
106
|
readonly derived?: {
|
|
103
107
|
readonly mode: "formula" | "prefill";
|
|
104
108
|
readonly expression: string;
|
|
105
109
|
} | undefined;
|
|
106
|
-
readonly dataSource: {
|
|
107
|
-
readonly data: string;
|
|
108
|
-
readonly request?: string | undefined;
|
|
109
|
-
};
|
|
110
110
|
readonly nodeKey: string;
|
|
111
111
|
readonly nodeChildren: string;
|
|
112
112
|
readonly nodeLabel: readonly [{
|