@shwfed/config 2.12.6 → 2.12.8
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/runtime.vue +54 -50
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.d.vue.ts +2 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts +2 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/runtime.vue +11 -2
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.d.ts +3 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.js +7 -0
- 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/table/columns/2026-04-14/com.shwfed.table.column.number/runtime.vue +6 -73
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/config.vue +44 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/runtime.vue +8 -2
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.d.ts +3 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.js +7 -0
- package/dist/runtime/components/table/index.vue +180 -168
- package/dist/runtime/share/number-format.d.ts +7 -0
- package/dist/runtime/share/number-format.js +72 -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;
|
|
@@ -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;
|
package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/runtime.vue
CHANGED
|
@@ -1,84 +1,17 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { computed } from "vue";
|
|
3
3
|
import { JUSTIFY_CLASS } from "../../../utils/runtime";
|
|
4
|
+
import { formatNumberDisplay } from "../../../../../share/number-format";
|
|
4
5
|
defineOptions({ name: "ShwfedTableNumberRendererRuntime" });
|
|
5
6
|
const props = defineProps({
|
|
6
7
|
column: { type: null, required: true },
|
|
7
8
|
ctx: { type: Object, required: true }
|
|
8
9
|
});
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
if (n === 0) return "\u96F6";
|
|
15
|
-
const isNegative = n < 0;
|
|
16
|
-
const absN = Math.abs(n);
|
|
17
|
-
const [intPart, decPart] = String(absN).split(".");
|
|
18
|
-
let result = "";
|
|
19
|
-
const digits = intPart.split("").reverse();
|
|
20
|
-
let zeroFlag = false;
|
|
21
|
-
for (let i = 0; i < digits.length; i++) {
|
|
22
|
-
const d = Number(digits[i]);
|
|
23
|
-
const groupIndex = Math.floor(i / 4);
|
|
24
|
-
const posInGroup = i % 4;
|
|
25
|
-
if (d === 0) {
|
|
26
|
-
zeroFlag = true;
|
|
27
|
-
} else {
|
|
28
|
-
if (zeroFlag) {
|
|
29
|
-
result = CHINESE_DIGITS[0] + result;
|
|
30
|
-
zeroFlag = false;
|
|
31
|
-
}
|
|
32
|
-
result = CHINESE_DIGITS[d] + CHINESE_UNITS[posInGroup] + result;
|
|
33
|
-
}
|
|
34
|
-
if (posInGroup === 0 && groupIndex > 0 && !zeroFlag) {
|
|
35
|
-
result = (CHINESE_GROUP_UNITS[groupIndex] ?? "") + result;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
if (decPart) {
|
|
39
|
-
result += "\u70B9";
|
|
40
|
-
for (const ch of decPart) {
|
|
41
|
-
result += CHINESE_DIGITS[Number(ch)];
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return isNegative ? `\u8D1F${result}` : result;
|
|
45
|
-
}
|
|
46
|
-
function formatNumber(value, column) {
|
|
47
|
-
if (value === void 0 || value === null) return "-";
|
|
48
|
-
const n = Number(value);
|
|
49
|
-
if (Number.isNaN(n)) return "-";
|
|
50
|
-
const displayMode = column.displayMode ?? "plain";
|
|
51
|
-
if (displayMode === "uppercaseChinese") {
|
|
52
|
-
return toChineseUppercase(n);
|
|
53
|
-
}
|
|
54
|
-
let result;
|
|
55
|
-
if (column.preserveDigits !== void 0) {
|
|
56
|
-
const mode = column.preserveMode ?? "round";
|
|
57
|
-
const digits = column.preserveDigits;
|
|
58
|
-
const factor = 10 ** digits;
|
|
59
|
-
let processed;
|
|
60
|
-
switch (mode) {
|
|
61
|
-
case "floor":
|
|
62
|
-
processed = Math.floor(n * factor) / factor;
|
|
63
|
-
break;
|
|
64
|
-
case "ceil":
|
|
65
|
-
processed = Math.ceil(n * factor) / factor;
|
|
66
|
-
break;
|
|
67
|
-
default:
|
|
68
|
-
processed = Math.round(n * factor) / factor;
|
|
69
|
-
}
|
|
70
|
-
result = processed.toFixed(digits);
|
|
71
|
-
} else {
|
|
72
|
-
result = String(n);
|
|
73
|
-
}
|
|
74
|
-
if (displayMode === "monoThousand") {
|
|
75
|
-
const [integer, decimal] = result.split(".");
|
|
76
|
-
const formattedInt = integer.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
77
|
-
result = decimal !== void 0 ? `${formattedInt}.${decimal}` : formattedInt;
|
|
78
|
-
}
|
|
79
|
-
return result;
|
|
80
|
-
}
|
|
81
|
-
const formatted = computed(() => formatNumber(props.ctx.cell.getValue(), props.column));
|
|
10
|
+
const formatted = computed(() => formatNumberDisplay(props.ctx.cell.getValue(), {
|
|
11
|
+
displayMode: props.column.displayMode,
|
|
12
|
+
precision: props.column.preserveDigits,
|
|
13
|
+
roundingMode: props.column.preserveMode
|
|
14
|
+
}));
|
|
82
15
|
const isNan = computed(() => formatted.value === "-");
|
|
83
16
|
const align = computed(() => isNan.value ? "center" : props.column.align ?? "right");
|
|
84
17
|
const justifyClass = computed(() => JUSTIFY_CLASS[align.value] ?? JUSTIFY_CLASS.right);
|
|
@@ -19,6 +19,13 @@ import {
|
|
|
19
19
|
InputGroupInput,
|
|
20
20
|
InputGroupNumberField
|
|
21
21
|
} from "../../../../ui/input-group";
|
|
22
|
+
import {
|
|
23
|
+
Select,
|
|
24
|
+
SelectContent,
|
|
25
|
+
SelectItem,
|
|
26
|
+
SelectTrigger,
|
|
27
|
+
SelectValue
|
|
28
|
+
} from "../../../../ui/select";
|
|
22
29
|
import ActionsConfigEditor from "../../../../actions/config.vue";
|
|
23
30
|
import { getStructFieldDescription, getStructFieldTitle } from "../../../utils/schema-meta";
|
|
24
31
|
import { Markdown } from "../../../../ui/markdown";
|
|
@@ -92,6 +99,11 @@ const ROUNDING_MODE_OPTIONS = [
|
|
|
92
99
|
{ value: "floor", label: "\u5411\u4E0B\u53D6\u6574" },
|
|
93
100
|
{ value: "ceil", label: "\u5411\u4E0A\u53D6\u6574" }
|
|
94
101
|
];
|
|
102
|
+
const DISPLAY_MODE_OPTIONS = [
|
|
103
|
+
{ value: "plain", label: "\u6570\u503C" },
|
|
104
|
+
{ value: "uppercaseChinese", label: "\u4E2D\u6587\u5927\u5199" },
|
|
105
|
+
{ value: "monoThousand", label: "\u7B49\u5BBD\u5B57\u4F53\u52A0\u5343\u5206\u4F4D" }
|
|
106
|
+
];
|
|
95
107
|
const bindingText = computed({
|
|
96
108
|
get: () => value.value.binding ?? "",
|
|
97
109
|
set: (v) => {
|
|
@@ -439,6 +451,38 @@ function onMaxChange(v) {
|
|
|
439
451
|
/>
|
|
440
452
|
</div>
|
|
441
453
|
</Field>
|
|
454
|
+
<Field orientation="vertical">
|
|
455
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
456
|
+
<template
|
|
457
|
+
v-if="fieldDescription('displayMode')"
|
|
458
|
+
#tooltip
|
|
459
|
+
>
|
|
460
|
+
<Markdown
|
|
461
|
+
:source="fieldDescription('displayMode')"
|
|
462
|
+
block
|
|
463
|
+
class="prose prose-sm prose-zinc"
|
|
464
|
+
/>
|
|
465
|
+
</template>
|
|
466
|
+
{{ fieldTitle("displayMode") }}
|
|
467
|
+
</FieldLabel>
|
|
468
|
+
<Select
|
|
469
|
+
:model-value="value.displayMode ?? 'plain'"
|
|
470
|
+
@update:model-value="(v) => value = { ...value, displayMode: v }"
|
|
471
|
+
>
|
|
472
|
+
<SelectTrigger class="w-full">
|
|
473
|
+
<SelectValue />
|
|
474
|
+
</SelectTrigger>
|
|
475
|
+
<SelectContent>
|
|
476
|
+
<SelectItem
|
|
477
|
+
v-for="opt in DISPLAY_MODE_OPTIONS"
|
|
478
|
+
:key="opt.value"
|
|
479
|
+
:value="opt.value"
|
|
480
|
+
>
|
|
481
|
+
{{ opt.label }}
|
|
482
|
+
</SelectItem>
|
|
483
|
+
</SelectContent>
|
|
484
|
+
</Select>
|
|
485
|
+
</Field>
|
|
442
486
|
</div>
|
|
443
487
|
<div class="grid grid-cols-2 gap-x-6 gap-y-4">
|
|
444
488
|
<Field orientation="vertical">
|