@shwfed/config 2.12.14 → 2.12.15
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-05-06/com.shwfed.block.table/config.d.vue.ts +68 -68
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +68 -68
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +68 -68
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +68 -68
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +34 -34
- package/dist/runtime/components/config/use-editor.js +7 -0
- 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 +18 -18
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +18 -18
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +18 -18
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +18 -18
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +18 -18
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +18 -18
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +18 -18
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +18 -18
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +18 -18
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +18 -18
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +18 -18
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +18 -18
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +18 -18
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +18 -18
- package/dist/runtime/components/sidebar/use-editor.js +7 -0
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/config.vue +10 -4
- package/dist/runtime/components/table/index.vue +6 -1
- package/dist/runtime/components/table/schema.d.ts +68 -68
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.vue +21 -3
- package/dist/runtime/components/ui/expression-editor/index.d.ts +1 -0
- package/dist/runtime/components/ui/expression-editor/index.js +5 -0
- package/dist/runtime/components/ui/expression-editor/validity.d.ts +12 -0
- package/dist/runtime/components/ui/expression-editor/validity.js +27 -0
- package/dist/runtime/utils/cel-context.d.ts +15 -0
- package/dist/runtime/utils/cel-context.js +18 -1
- package/dist/runtime/vendor/cel-js/CLAUDE.md +1 -1
- package/dist/runtime/vendor/cel-js/PROMPT.md +15 -0
- package/dist/runtime/vendor/cel-js/lib/functions.js +28 -0
- package/package.json +1 -1
|
@@ -54,15 +54,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
54
54
|
readonly message: string;
|
|
55
55
|
}[]];
|
|
56
56
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
57
|
-
readonly nodeTooltip?: readonly [{
|
|
58
|
-
readonly locale: "zh";
|
|
59
|
-
readonly message: string;
|
|
60
|
-
}, ...{
|
|
61
|
-
readonly locale: "en" | "ja" | "ko";
|
|
62
|
-
readonly message: string;
|
|
63
|
-
}[]] | undefined;
|
|
64
|
-
readonly nodeSelectable?: string | undefined;
|
|
65
|
-
readonly expandAll: boolean;
|
|
66
57
|
readonly validations?: readonly {
|
|
67
58
|
readonly message: readonly [{
|
|
68
59
|
readonly locale: "zh";
|
|
@@ -74,6 +65,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
74
65
|
readonly warning?: boolean | undefined;
|
|
75
66
|
readonly when: string;
|
|
76
67
|
}[] | undefined;
|
|
68
|
+
readonly nodeTooltip?: readonly [{
|
|
69
|
+
readonly locale: "zh";
|
|
70
|
+
readonly message: string;
|
|
71
|
+
}, ...{
|
|
72
|
+
readonly locale: "en" | "ja" | "ko";
|
|
73
|
+
readonly message: string;
|
|
74
|
+
}[]] | undefined;
|
|
75
|
+
readonly nodeSelectable?: string | undefined;
|
|
76
|
+
readonly expandAll: boolean;
|
|
77
77
|
}) => any;
|
|
78
78
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
79
79
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -127,15 +127,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
127
127
|
readonly message: string;
|
|
128
128
|
}[]];
|
|
129
129
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
130
|
-
readonly nodeTooltip?: readonly [{
|
|
131
|
-
readonly locale: "zh";
|
|
132
|
-
readonly message: string;
|
|
133
|
-
}, ...{
|
|
134
|
-
readonly locale: "en" | "ja" | "ko";
|
|
135
|
-
readonly message: string;
|
|
136
|
-
}[]] | undefined;
|
|
137
|
-
readonly nodeSelectable?: string | undefined;
|
|
138
|
-
readonly expandAll: boolean;
|
|
139
130
|
readonly validations?: readonly {
|
|
140
131
|
readonly message: readonly [{
|
|
141
132
|
readonly locale: "zh";
|
|
@@ -147,6 +138,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
147
138
|
readonly warning?: boolean | undefined;
|
|
148
139
|
readonly when: string;
|
|
149
140
|
}[] | undefined;
|
|
141
|
+
readonly nodeTooltip?: readonly [{
|
|
142
|
+
readonly locale: "zh";
|
|
143
|
+
readonly message: string;
|
|
144
|
+
}, ...{
|
|
145
|
+
readonly locale: "en" | "ja" | "ko";
|
|
146
|
+
readonly message: string;
|
|
147
|
+
}[]] | undefined;
|
|
148
|
+
readonly nodeSelectable?: string | undefined;
|
|
149
|
+
readonly expandAll: boolean;
|
|
150
150
|
}) => any) | undefined;
|
|
151
151
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
152
152
|
declare const _default: typeof __VLS_export;
|
|
@@ -53,15 +53,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
53
53
|
readonly locale: "en" | "ja" | "ko";
|
|
54
54
|
readonly message: string;
|
|
55
55
|
}[]];
|
|
56
|
-
readonly nodeTooltip?: readonly [{
|
|
57
|
-
readonly locale: "zh";
|
|
58
|
-
readonly message: string;
|
|
59
|
-
}, ...{
|
|
60
|
-
readonly locale: "en" | "ja" | "ko";
|
|
61
|
-
readonly message: string;
|
|
62
|
-
}[]] | undefined;
|
|
63
|
-
readonly nodeSelectable?: string | undefined;
|
|
64
|
-
readonly expandAll: boolean;
|
|
65
56
|
readonly validations?: readonly {
|
|
66
57
|
readonly message: readonly [{
|
|
67
58
|
readonly locale: "zh";
|
|
@@ -73,6 +64,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
73
64
|
readonly warning?: boolean | undefined;
|
|
74
65
|
readonly when: string;
|
|
75
66
|
}[] | undefined;
|
|
67
|
+
readonly nodeTooltip?: readonly [{
|
|
68
|
+
readonly locale: "zh";
|
|
69
|
+
readonly message: string;
|
|
70
|
+
}, ...{
|
|
71
|
+
readonly locale: "en" | "ja" | "ko";
|
|
72
|
+
readonly message: string;
|
|
73
|
+
}[]] | undefined;
|
|
74
|
+
readonly nodeSelectable?: string | undefined;
|
|
75
|
+
readonly expandAll: boolean;
|
|
76
76
|
}) => any;
|
|
77
77
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
78
78
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -125,15 +125,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
125
125
|
readonly locale: "en" | "ja" | "ko";
|
|
126
126
|
readonly message: string;
|
|
127
127
|
}[]];
|
|
128
|
-
readonly nodeTooltip?: readonly [{
|
|
129
|
-
readonly locale: "zh";
|
|
130
|
-
readonly message: string;
|
|
131
|
-
}, ...{
|
|
132
|
-
readonly locale: "en" | "ja" | "ko";
|
|
133
|
-
readonly message: string;
|
|
134
|
-
}[]] | undefined;
|
|
135
|
-
readonly nodeSelectable?: string | undefined;
|
|
136
|
-
readonly expandAll: boolean;
|
|
137
128
|
readonly validations?: readonly {
|
|
138
129
|
readonly message: readonly [{
|
|
139
130
|
readonly locale: "zh";
|
|
@@ -145,6 +136,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
145
136
|
readonly warning?: boolean | undefined;
|
|
146
137
|
readonly when: string;
|
|
147
138
|
}[] | undefined;
|
|
139
|
+
readonly nodeTooltip?: readonly [{
|
|
140
|
+
readonly locale: "zh";
|
|
141
|
+
readonly message: string;
|
|
142
|
+
}, ...{
|
|
143
|
+
readonly locale: "en" | "ja" | "ko";
|
|
144
|
+
readonly message: string;
|
|
145
|
+
}[]] | undefined;
|
|
146
|
+
readonly nodeSelectable?: string | undefined;
|
|
147
|
+
readonly expandAll: boolean;
|
|
148
148
|
}) => any) | undefined;
|
|
149
149
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
150
150
|
declare const _default: typeof __VLS_export;
|
|
@@ -53,15 +53,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
53
53
|
readonly locale: "en" | "ja" | "ko";
|
|
54
54
|
readonly message: string;
|
|
55
55
|
}[]];
|
|
56
|
-
readonly nodeTooltip?: readonly [{
|
|
57
|
-
readonly locale: "zh";
|
|
58
|
-
readonly message: string;
|
|
59
|
-
}, ...{
|
|
60
|
-
readonly locale: "en" | "ja" | "ko";
|
|
61
|
-
readonly message: string;
|
|
62
|
-
}[]] | undefined;
|
|
63
|
-
readonly nodeSelectable?: string | undefined;
|
|
64
|
-
readonly expandAll: boolean;
|
|
65
56
|
readonly validations?: readonly {
|
|
66
57
|
readonly message: readonly [{
|
|
67
58
|
readonly locale: "zh";
|
|
@@ -73,6 +64,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
73
64
|
readonly warning?: boolean | undefined;
|
|
74
65
|
readonly when: string;
|
|
75
66
|
}[] | undefined;
|
|
67
|
+
readonly nodeTooltip?: readonly [{
|
|
68
|
+
readonly locale: "zh";
|
|
69
|
+
readonly message: string;
|
|
70
|
+
}, ...{
|
|
71
|
+
readonly locale: "en" | "ja" | "ko";
|
|
72
|
+
readonly message: string;
|
|
73
|
+
}[]] | undefined;
|
|
74
|
+
readonly nodeSelectable?: string | undefined;
|
|
75
|
+
readonly expandAll: boolean;
|
|
76
76
|
}) => any;
|
|
77
77
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
78
78
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -125,15 +125,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
125
125
|
readonly locale: "en" | "ja" | "ko";
|
|
126
126
|
readonly message: string;
|
|
127
127
|
}[]];
|
|
128
|
-
readonly nodeTooltip?: readonly [{
|
|
129
|
-
readonly locale: "zh";
|
|
130
|
-
readonly message: string;
|
|
131
|
-
}, ...{
|
|
132
|
-
readonly locale: "en" | "ja" | "ko";
|
|
133
|
-
readonly message: string;
|
|
134
|
-
}[]] | undefined;
|
|
135
|
-
readonly nodeSelectable?: string | undefined;
|
|
136
|
-
readonly expandAll: boolean;
|
|
137
128
|
readonly validations?: readonly {
|
|
138
129
|
readonly message: readonly [{
|
|
139
130
|
readonly locale: "zh";
|
|
@@ -145,6 +136,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
145
136
|
readonly warning?: boolean | undefined;
|
|
146
137
|
readonly when: string;
|
|
147
138
|
}[] | undefined;
|
|
139
|
+
readonly nodeTooltip?: readonly [{
|
|
140
|
+
readonly locale: "zh";
|
|
141
|
+
readonly message: string;
|
|
142
|
+
}, ...{
|
|
143
|
+
readonly locale: "en" | "ja" | "ko";
|
|
144
|
+
readonly message: string;
|
|
145
|
+
}[]] | undefined;
|
|
146
|
+
readonly nodeSelectable?: string | undefined;
|
|
147
|
+
readonly expandAll: boolean;
|
|
148
148
|
}) => any) | undefined;
|
|
149
149
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
150
150
|
declare const _default: typeof __VLS_export;
|
|
@@ -56,15 +56,6 @@ 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;
|
|
68
59
|
readonly validations?: readonly {
|
|
69
60
|
readonly message: readonly [{
|
|
70
61
|
readonly locale: "zh";
|
|
@@ -76,6 +67,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
76
67
|
readonly warning?: boolean | undefined;
|
|
77
68
|
readonly when: string;
|
|
78
69
|
}[] | 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: {
|
|
@@ -131,15 +131,6 @@ 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;
|
|
143
134
|
readonly validations?: readonly {
|
|
144
135
|
readonly message: readonly [{
|
|
145
136
|
readonly locale: "zh";
|
|
@@ -151,6 +142,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
151
142
|
readonly warning?: boolean | undefined;
|
|
152
143
|
readonly when: string;
|
|
153
144
|
}[] | 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;
|
|
@@ -56,15 +56,6 @@ 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;
|
|
68
59
|
readonly validations?: readonly {
|
|
69
60
|
readonly message: readonly [{
|
|
70
61
|
readonly locale: "zh";
|
|
@@ -76,6 +67,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
76
67
|
readonly warning?: boolean | undefined;
|
|
77
68
|
readonly when: string;
|
|
78
69
|
}[] | 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: {
|
|
@@ -131,15 +131,6 @@ 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;
|
|
143
134
|
readonly validations?: readonly {
|
|
144
135
|
readonly message: readonly [{
|
|
145
136
|
readonly locale: "zh";
|
|
@@ -151,6 +142,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
151
142
|
readonly warning?: boolean | undefined;
|
|
152
143
|
readonly when: string;
|
|
153
144
|
}[] | 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;
|
|
@@ -55,15 +55,6 @@ 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;
|
|
67
58
|
readonly validations?: readonly {
|
|
68
59
|
readonly message: readonly [{
|
|
69
60
|
readonly locale: "zh";
|
|
@@ -75,6 +66,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
75
66
|
readonly warning?: boolean | undefined;
|
|
76
67
|
readonly when: string;
|
|
77
68
|
}[] | 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: {
|
|
@@ -129,15 +129,6 @@ 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;
|
|
141
132
|
readonly validations?: readonly {
|
|
142
133
|
readonly message: readonly [{
|
|
143
134
|
readonly locale: "zh";
|
|
@@ -149,6 +140,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
149
140
|
readonly warning?: boolean | undefined;
|
|
150
141
|
readonly when: string;
|
|
151
142
|
}[] | 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;
|
|
@@ -55,15 +55,6 @@ 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;
|
|
67
58
|
readonly validations?: readonly {
|
|
68
59
|
readonly message: readonly [{
|
|
69
60
|
readonly locale: "zh";
|
|
@@ -75,6 +66,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
75
66
|
readonly warning?: boolean | undefined;
|
|
76
67
|
readonly when: string;
|
|
77
68
|
}[] | 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: {
|
|
@@ -129,15 +129,6 @@ 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;
|
|
141
132
|
readonly validations?: readonly {
|
|
142
133
|
readonly message: readonly [{
|
|
143
134
|
readonly locale: "zh";
|
|
@@ -149,6 +140,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
149
140
|
readonly warning?: boolean | undefined;
|
|
150
141
|
readonly when: string;
|
|
151
142
|
}[] | 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;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
import { computed, ref, watch } from "vue";
|
|
3
3
|
import { formatValidationError } from "../config/utils/validation-error.js";
|
|
4
|
+
import { createExpressionValidityRegistry, provideExpressionValidity } from "../ui/expression-editor/index.js";
|
|
4
5
|
import { SidebarConfig } from "./schema.js";
|
|
5
6
|
function deepClone(value) {
|
|
6
7
|
return JSON.parse(JSON.stringify(value));
|
|
@@ -14,10 +15,16 @@ export function useSidebarEditor(model, options = {}) {
|
|
|
14
15
|
() => JSON.stringify(draft.value) !== JSON.stringify(baseline.value)
|
|
15
16
|
);
|
|
16
17
|
const validationError = ref(null);
|
|
18
|
+
const validityRegistry = createExpressionValidityRegistry();
|
|
19
|
+
provideExpressionValidity(validityRegistry);
|
|
17
20
|
function confirm() {
|
|
18
21
|
const schema = SidebarConfig(configure);
|
|
19
22
|
try {
|
|
20
23
|
const decoded = Schema.decodeUnknownSync(schema)(draft.value);
|
|
24
|
+
if (!validityRegistry.allValid()) {
|
|
25
|
+
validationError.value = "\u5B58\u5728\u65E0\u6548\u7684\u8DE8\u5C42\u4F5C\u7528\u57DF\u5F15\u7528\uFF0C\u8BF7\u4FEE\u6B63\u6807\u7EA2\u7684\u8868\u8FBE\u5F0F\u540E\u518D\u4FDD\u5B58";
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
21
28
|
validationError.value = null;
|
|
22
29
|
model.value = decoded;
|
|
23
30
|
baseline.value = deepClone(decoded);
|
|
@@ -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";
|