@shwfed/config 2.10.7 → 2.10.9
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/mcp.mjs +1171 -1049
- package/dist/module.json +1 -1
- package/dist/preview/assets/{FieldGroup.vue_vue_type_script_setup_true_lang-CV3u1wuG.js → FieldGroup.vue_vue_type_script_setup_true_lang-CysVgnB5.js} +1 -1
- package/dist/preview/assets/{badge-De7TI8Ef.js → badge-DdxT1J-1.js} +1 -1
- package/dist/preview/assets/{config-A0pwpJhu.js → config-073z__NM.js} +1 -1
- package/dist/preview/assets/{config-Cc-RiKc0.js → config-91HQEKhM.js} +1 -1
- package/dist/preview/assets/{config-DccYHX13.js → config-B8k8y1J1.js} +1 -1
- package/dist/preview/assets/{config-Ckn8NixF.js → config-BK8WZ3pm.js} +1 -1
- package/dist/preview/assets/{config-RuqJAgHJ.js → config-BX05eMo3.js} +1 -1
- package/dist/preview/assets/{config-BF4I0Pko.js → config-BXP8aJwW.js} +1 -1
- package/dist/preview/assets/{config-DqHlKqr-.js → config-BhPAyftm.js} +1 -1
- package/dist/preview/assets/{config-DBrYVSus.js → config-BzHBSkht.js} +1 -1
- package/dist/preview/assets/{config-BJL5R6TO.js → config-C3eoRHUo.js} +1 -1
- package/dist/preview/assets/{config-DGj2Xh1R.js → config-CJ-NzxkH.js} +1 -1
- package/dist/preview/assets/{config-C6AzmvwL.js → config-CYRj2ZVL.js} +1 -1
- package/dist/preview/assets/{config-CtW_DgDv.js → config-DLNjjMZY.js} +1 -1
- package/dist/preview/assets/{config-Bei-4M8U.js → config-DudxzmzF.js} +1 -1
- package/dist/preview/assets/{config-CnPPWHxs.js → config-cwlK3BMD.js} +1 -1
- package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-Ceh2rttd.js → definition.vue_vue_type_script_setup_true_lang-l59C6Dgs.js} +1 -1
- package/dist/preview/assets/index-BL58N7_5.js +763 -0
- package/dist/preview/assets/index-CA4hsfRv.js +1 -0
- package/dist/preview/assets/index-CyVzfRGQ.css +1 -0
- package/dist/preview/assets/{index-DAjdcrqQ.js → index-uAwC9Itb.js} +1 -1
- package/dist/preview/assets/{item-BNOUeB-e.js → item-C79mwh5T.js} +1 -1
- package/dist/preview/assets/{runtime-DzDI7B5M.js → runtime-1_EaFcPI.js} +1 -1
- package/dist/preview/assets/{runtime-BtDC6qh0.js → runtime-2yzxOLnF.js} +1 -1
- package/dist/preview/assets/{runtime-CXSBPV7c.js → runtime-8Fe67mkZ.js} +1 -1
- package/dist/preview/assets/{runtime-B-m0fZl0.js → runtime-8oME8Env.js} +1 -1
- package/dist/preview/assets/{runtime-DDz8U0kg.js → runtime-CCMixJjP.js} +1 -1
- package/dist/preview/assets/{runtime-CdrOV1KF.js → runtime-CD1Q4rZ3.js} +1 -1
- package/dist/preview/assets/{runtime-DCyGTrMp.js → runtime-Cb-qIo5p.js} +1 -1
- package/dist/preview/assets/{runtime-Bb0APo4d.js → runtime-CvgAq3mp.js} +1 -1
- package/dist/preview/assets/{runtime-D2Qtb13C.js → runtime-DkWCpjKe.js} +1 -1
- package/dist/preview/assets/{runtime-CtG2gR_k.js → runtime-mYNyG7UH.js} +1 -1
- package/dist/preview/assets/{schema-meta-DmDYh6aL.js → schema-meta-BlTKRs15.js} +1 -1
- package/dist/preview/index.html +2 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +4 -4
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +4 -4
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +6 -6
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +6 -6
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.d.vue.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.vue.d.ts +2 -2
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/config.d.vue.ts +2 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/config.vue +32 -1
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/config.vue.d.ts +2 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/runtime.vue +2 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.d.ts +2 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.js +4 -0
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/config.vue +202 -112
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/config.vue +202 -112
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.d.vue.ts +4 -4
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.vue.d.ts +4 -4
- package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.multi/config.vue +223 -132
- package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.single/config.vue +223 -132
- package/dist/runtime/components/form/fields/2026-06-20/com.shwfed.form.field.tabs/config.d.vue.ts +59 -0
- package/dist/runtime/components/form/fields/2026-06-20/com.shwfed.form.field.tabs/config.vue +345 -0
- package/dist/runtime/components/form/fields/2026-06-20/com.shwfed.form.field.tabs/config.vue.d.ts +59 -0
- package/dist/runtime/components/form/fields/2026-06-20/com.shwfed.form.field.tabs/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-06-20/com.shwfed.form.field.tabs/runtime.vue +113 -0
- package/dist/runtime/components/form/fields/2026-06-20/com.shwfed.form.field.tabs/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-06-20/com.shwfed.form.field.tabs/schema.d.ts +79 -0
- package/dist/runtime/components/form/fields/2026-06-20/com.shwfed.form.field.tabs/schema.js +86 -0
- package/dist/runtime/components/form/unit-config.d.vue.ts +27 -0
- package/dist/runtime/components/form/unit-config.vue +117 -73
- package/dist/runtime/components/form/unit-config.vue.d.ts +27 -0
- package/dist/runtime/components/table/schema.js +24 -25
- package/dist/runtime/components/ui/date-picker/DatePickerInput.d.vue.ts +1 -1
- package/dist/runtime/components/ui/date-picker/DatePickerInput.vue.d.ts +1 -1
- package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.d.vue.ts +1 -1
- package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.vue.d.ts +1 -1
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.d.vue.ts +1 -1
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.vue.d.ts +1 -1
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.d.vue.ts +2 -2
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.vue.d.ts +2 -2
- package/dist/runtime/components/ui/markdown/Markdown.vue +19 -16
- package/dist/runtime/utils/markdown.d.ts +5 -2
- package/dist/runtime/utils/markdown.js +22 -1
- package/dist/runtime/vendor/cel-js/CLAUDE.md +1 -0
- package/dist/runtime/vendor/cel-js/lib/evaluator.d.ts +1 -0
- package/dist/runtime/vendor/cel-js/lib/evaluator.js +4 -0
- package/package.json +1 -1
- package/dist/preview/assets/index-BQIP6UfB.js +0 -763
- package/dist/preview/assets/index-Cj7bRG7B.css +0 -1
- package/dist/preview/assets/index-DpLMRp28.js +0 -1
|
@@ -33,9 +33,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
33
33
|
readonly expression: string;
|
|
34
34
|
} | undefined;
|
|
35
35
|
readonly numberOfMonths?: number | undefined;
|
|
36
|
-
readonly format?: string | undefined;
|
|
37
|
-
readonly valueFormat?: string | undefined;
|
|
38
36
|
readonly rangeSeparatorIcon?: string | undefined;
|
|
37
|
+
readonly format?: string | undefined;
|
|
39
38
|
readonly startPlaceholder?: readonly [{
|
|
40
39
|
readonly locale: "zh";
|
|
41
40
|
readonly message: string;
|
|
@@ -50,6 +49,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
50
49
|
readonly locale: "en" | "ja" | "ko";
|
|
51
50
|
readonly message: string;
|
|
52
51
|
}[]] | undefined;
|
|
52
|
+
readonly valueFormat?: string | undefined;
|
|
53
53
|
readonly validations?: readonly {
|
|
54
54
|
readonly message: readonly [{
|
|
55
55
|
readonly locale: "zh";
|
|
@@ -105,9 +105,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
105
105
|
readonly expression: string;
|
|
106
106
|
} | undefined;
|
|
107
107
|
readonly numberOfMonths?: number | undefined;
|
|
108
|
-
readonly format?: string | undefined;
|
|
109
|
-
readonly valueFormat?: string | undefined;
|
|
110
108
|
readonly rangeSeparatorIcon?: string | undefined;
|
|
109
|
+
readonly format?: string | undefined;
|
|
111
110
|
readonly startPlaceholder?: readonly [{
|
|
112
111
|
readonly locale: "zh";
|
|
113
112
|
readonly message: string;
|
|
@@ -122,6 +121,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
122
121
|
readonly locale: "en" | "ja" | "ko";
|
|
123
122
|
readonly message: string;
|
|
124
123
|
}[]] | undefined;
|
|
124
|
+
readonly valueFormat?: string | undefined;
|
|
125
125
|
readonly validations?: readonly {
|
|
126
126
|
readonly message: readonly [{
|
|
127
127
|
readonly locale: "zh";
|
|
@@ -33,9 +33,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
33
33
|
readonly expression: string;
|
|
34
34
|
} | undefined;
|
|
35
35
|
readonly numberOfMonths?: number | undefined;
|
|
36
|
-
readonly format?: string | undefined;
|
|
37
|
-
readonly valueFormat?: string | undefined;
|
|
38
36
|
readonly rangeSeparatorIcon?: string | undefined;
|
|
37
|
+
readonly format?: string | undefined;
|
|
39
38
|
readonly startPlaceholder?: readonly [{
|
|
40
39
|
readonly locale: "zh";
|
|
41
40
|
readonly message: string;
|
|
@@ -50,6 +49,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
50
49
|
readonly locale: "en" | "ja" | "ko";
|
|
51
50
|
readonly message: string;
|
|
52
51
|
}[]] | undefined;
|
|
52
|
+
readonly valueFormat?: string | undefined;
|
|
53
53
|
readonly validations?: readonly {
|
|
54
54
|
readonly message: readonly [{
|
|
55
55
|
readonly locale: "zh";
|
|
@@ -105,9 +105,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
105
105
|
readonly expression: string;
|
|
106
106
|
} | undefined;
|
|
107
107
|
readonly numberOfMonths?: number | undefined;
|
|
108
|
-
readonly format?: string | undefined;
|
|
109
|
-
readonly valueFormat?: string | undefined;
|
|
110
108
|
readonly rangeSeparatorIcon?: string | undefined;
|
|
109
|
+
readonly format?: string | undefined;
|
|
111
110
|
readonly startPlaceholder?: readonly [{
|
|
112
111
|
readonly locale: "zh";
|
|
113
112
|
readonly message: string;
|
|
@@ -122,6 +121,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
122
121
|
readonly locale: "en" | "ja" | "ko";
|
|
123
122
|
readonly message: string;
|
|
124
123
|
}[]] | undefined;
|
|
124
|
+
readonly valueFormat?: string | undefined;
|
|
125
125
|
readonly validations?: readonly {
|
|
126
126
|
readonly message: readonly [{
|
|
127
127
|
readonly locale: "zh";
|
|
@@ -34,10 +34,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
34
34
|
} | undefined;
|
|
35
35
|
readonly numberOfMonths?: number | undefined;
|
|
36
36
|
readonly hourCycle?: 12 | 24 | undefined;
|
|
37
|
-
readonly format?: string | undefined;
|
|
38
|
-
readonly valueFormat?: string | undefined;
|
|
39
|
-
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
40
37
|
readonly rangeSeparatorIcon?: string | undefined;
|
|
38
|
+
readonly format?: string | undefined;
|
|
41
39
|
readonly startPlaceholder?: readonly [{
|
|
42
40
|
readonly locale: "zh";
|
|
43
41
|
readonly message: string;
|
|
@@ -52,6 +50,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
52
50
|
readonly locale: "en" | "ja" | "ko";
|
|
53
51
|
readonly message: string;
|
|
54
52
|
}[]] | undefined;
|
|
53
|
+
readonly valueFormat?: string | undefined;
|
|
54
|
+
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
55
55
|
readonly validations?: readonly {
|
|
56
56
|
readonly message: readonly [{
|
|
57
57
|
readonly locale: "zh";
|
|
@@ -108,10 +108,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
108
108
|
} | undefined;
|
|
109
109
|
readonly numberOfMonths?: number | undefined;
|
|
110
110
|
readonly hourCycle?: 12 | 24 | undefined;
|
|
111
|
-
readonly format?: string | undefined;
|
|
112
|
-
readonly valueFormat?: string | undefined;
|
|
113
|
-
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
114
111
|
readonly rangeSeparatorIcon?: string | undefined;
|
|
112
|
+
readonly format?: string | undefined;
|
|
115
113
|
readonly startPlaceholder?: readonly [{
|
|
116
114
|
readonly locale: "zh";
|
|
117
115
|
readonly message: string;
|
|
@@ -126,6 +124,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
126
124
|
readonly locale: "en" | "ja" | "ko";
|
|
127
125
|
readonly message: string;
|
|
128
126
|
}[]] | undefined;
|
|
127
|
+
readonly valueFormat?: string | undefined;
|
|
128
|
+
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
129
129
|
readonly validations?: readonly {
|
|
130
130
|
readonly message: readonly [{
|
|
131
131
|
readonly locale: "zh";
|
|
@@ -34,10 +34,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
34
34
|
} | undefined;
|
|
35
35
|
readonly numberOfMonths?: number | undefined;
|
|
36
36
|
readonly hourCycle?: 12 | 24 | undefined;
|
|
37
|
-
readonly format?: string | undefined;
|
|
38
|
-
readonly valueFormat?: string | undefined;
|
|
39
|
-
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
40
37
|
readonly rangeSeparatorIcon?: string | undefined;
|
|
38
|
+
readonly format?: string | undefined;
|
|
41
39
|
readonly startPlaceholder?: readonly [{
|
|
42
40
|
readonly locale: "zh";
|
|
43
41
|
readonly message: string;
|
|
@@ -52,6 +50,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
52
50
|
readonly locale: "en" | "ja" | "ko";
|
|
53
51
|
readonly message: string;
|
|
54
52
|
}[]] | undefined;
|
|
53
|
+
readonly valueFormat?: string | undefined;
|
|
54
|
+
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
55
55
|
readonly validations?: readonly {
|
|
56
56
|
readonly message: readonly [{
|
|
57
57
|
readonly locale: "zh";
|
|
@@ -108,10 +108,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
108
108
|
} | undefined;
|
|
109
109
|
readonly numberOfMonths?: number | undefined;
|
|
110
110
|
readonly hourCycle?: 12 | 24 | undefined;
|
|
111
|
-
readonly format?: string | undefined;
|
|
112
|
-
readonly valueFormat?: string | undefined;
|
|
113
|
-
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
114
111
|
readonly rangeSeparatorIcon?: string | undefined;
|
|
112
|
+
readonly format?: string | undefined;
|
|
115
113
|
readonly startPlaceholder?: readonly [{
|
|
116
114
|
readonly locale: "zh";
|
|
117
115
|
readonly message: string;
|
|
@@ -126,6 +124,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
126
124
|
readonly locale: "en" | "ja" | "ko";
|
|
127
125
|
readonly message: string;
|
|
128
126
|
}[]] | undefined;
|
|
127
|
+
readonly valueFormat?: string | undefined;
|
|
128
|
+
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
129
129
|
readonly validations?: readonly {
|
|
130
130
|
readonly message: readonly [{
|
|
131
131
|
readonly locale: "zh";
|
|
@@ -33,9 +33,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
33
33
|
readonly expression: string;
|
|
34
34
|
} | undefined;
|
|
35
35
|
readonly hourCycle?: 12 | 24 | undefined;
|
|
36
|
+
readonly rangeSeparatorIcon?: string | undefined;
|
|
36
37
|
readonly valueFormat?: string | undefined;
|
|
37
38
|
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
38
|
-
readonly rangeSeparatorIcon?: string | undefined;
|
|
39
39
|
readonly validations?: readonly {
|
|
40
40
|
readonly message: readonly [{
|
|
41
41
|
readonly locale: "zh";
|
|
@@ -79,9 +79,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
79
79
|
readonly expression: string;
|
|
80
80
|
} | undefined;
|
|
81
81
|
readonly hourCycle?: 12 | 24 | undefined;
|
|
82
|
+
readonly rangeSeparatorIcon?: string | undefined;
|
|
82
83
|
readonly valueFormat?: string | undefined;
|
|
83
84
|
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
84
|
-
readonly rangeSeparatorIcon?: string | undefined;
|
|
85
85
|
readonly validations?: readonly {
|
|
86
86
|
readonly message: readonly [{
|
|
87
87
|
readonly locale: "zh";
|
|
@@ -33,9 +33,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
33
33
|
readonly expression: string;
|
|
34
34
|
} | undefined;
|
|
35
35
|
readonly hourCycle?: 12 | 24 | undefined;
|
|
36
|
+
readonly rangeSeparatorIcon?: string | undefined;
|
|
36
37
|
readonly valueFormat?: string | undefined;
|
|
37
38
|
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
38
|
-
readonly rangeSeparatorIcon?: string | undefined;
|
|
39
39
|
readonly validations?: readonly {
|
|
40
40
|
readonly message: readonly [{
|
|
41
41
|
readonly locale: "zh";
|
|
@@ -79,9 +79,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
79
79
|
readonly expression: string;
|
|
80
80
|
} | undefined;
|
|
81
81
|
readonly hourCycle?: 12 | 24 | undefined;
|
|
82
|
+
readonly rangeSeparatorIcon?: string | undefined;
|
|
82
83
|
readonly valueFormat?: string | undefined;
|
|
83
84
|
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
84
|
-
readonly rangeSeparatorIcon?: string | undefined;
|
|
85
85
|
readonly validations?: readonly {
|
|
86
86
|
readonly message: readonly [{
|
|
87
87
|
readonly locale: "zh";
|
package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/config.d.vue.ts
CHANGED
|
@@ -69,6 +69,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
69
69
|
readonly message: string;
|
|
70
70
|
}[]] | undefined;
|
|
71
71
|
readonly reorderable?: boolean | undefined;
|
|
72
|
+
readonly addable?: boolean | undefined;
|
|
72
73
|
}) => any;
|
|
73
74
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
74
75
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -137,6 +138,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
137
138
|
readonly message: string;
|
|
138
139
|
}[]] | undefined;
|
|
139
140
|
readonly reorderable?: boolean | undefined;
|
|
141
|
+
readonly addable?: boolean | undefined;
|
|
140
142
|
}) => any) | undefined;
|
|
141
143
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
142
144
|
declare const _default: typeof __VLS_export;
|
package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/config.vue
CHANGED
|
@@ -87,6 +87,17 @@ const reorderable = computed({
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
|
+
const addable = computed({
|
|
91
|
+
get: () => value.value.addable ?? true,
|
|
92
|
+
set: (next) => {
|
|
93
|
+
if (next === true) {
|
|
94
|
+
const { addable: _omit, ...rest } = value.value;
|
|
95
|
+
value.value = rest;
|
|
96
|
+
} else {
|
|
97
|
+
value.value = { ...value.value, addable: false };
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
});
|
|
90
101
|
</script>
|
|
91
102
|
|
|
92
103
|
<template>
|
|
@@ -256,7 +267,7 @@ const reorderable = computed({
|
|
|
256
267
|
/>
|
|
257
268
|
</Field>
|
|
258
269
|
|
|
259
|
-
<div class="grid grid-cols-
|
|
270
|
+
<div class="grid grid-cols-4 gap-3">
|
|
260
271
|
<Field orientation="vertical">
|
|
261
272
|
<FieldLabel class="text-xs text-zinc-500">
|
|
262
273
|
<template
|
|
@@ -322,6 +333,26 @@ const reorderable = computed({
|
|
|
322
333
|
{{ fieldTitle("reorderable") }}
|
|
323
334
|
</FieldLabel>
|
|
324
335
|
</Field>
|
|
336
|
+
|
|
337
|
+
<Field
|
|
338
|
+
orientation="horizontal"
|
|
339
|
+
class="h-9 w-auto gap-2 self-end"
|
|
340
|
+
>
|
|
341
|
+
<Switch v-model="addable" />
|
|
342
|
+
<FieldLabel class="text-sm text-zinc-600">
|
|
343
|
+
<template
|
|
344
|
+
v-if="fieldDescription('addable')"
|
|
345
|
+
#tooltip
|
|
346
|
+
>
|
|
347
|
+
<Markdown
|
|
348
|
+
:source="fieldDescription('addable')"
|
|
349
|
+
block
|
|
350
|
+
class="prose prose-sm prose-zinc"
|
|
351
|
+
/>
|
|
352
|
+
</template>
|
|
353
|
+
{{ fieldTitle("addable") }}
|
|
354
|
+
</FieldLabel>
|
|
355
|
+
</Field>
|
|
325
356
|
</div>
|
|
326
357
|
|
|
327
358
|
<div class="grid grid-cols-2 gap-3">
|
package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/config.vue.d.ts
CHANGED
|
@@ -69,6 +69,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
69
69
|
readonly message: string;
|
|
70
70
|
}[]] | undefined;
|
|
71
71
|
readonly reorderable?: boolean | undefined;
|
|
72
|
+
readonly addable?: boolean | undefined;
|
|
72
73
|
}) => any;
|
|
73
74
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
74
75
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -137,6 +138,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
137
138
|
readonly message: string;
|
|
138
139
|
}[]] | undefined;
|
|
139
140
|
readonly reorderable?: boolean | undefined;
|
|
141
|
+
readonly addable?: boolean | undefined;
|
|
140
142
|
}) => any) | undefined;
|
|
141
143
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
142
144
|
declare const _default: typeof __VLS_export;
|
package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/runtime.vue
CHANGED
|
@@ -53,6 +53,7 @@ const { isRequired, errors, warnings, visible } = useFieldValidation({
|
|
|
53
53
|
});
|
|
54
54
|
const isDisabled = computed(() => evalBool(props.config.disabled, "disabled"));
|
|
55
55
|
const reorderable = computed(() => props.config.reorderable ?? true);
|
|
56
|
+
const addable = computed(() => props.config.addable ?? true);
|
|
56
57
|
const isScalarRow = computed(() => {
|
|
57
58
|
const fields = props.config.unit.fields;
|
|
58
59
|
if (fields.length !== 1) return false;
|
|
@@ -311,6 +312,7 @@ function rowConfig(i) {
|
|
|
311
312
|
</div>
|
|
312
313
|
|
|
313
314
|
<Button
|
|
315
|
+
v-if="addable"
|
|
314
316
|
type="button"
|
|
315
317
|
:disabled="!canAdd"
|
|
316
318
|
data-slot="list-add"
|
package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.d.ts
CHANGED
|
@@ -80,6 +80,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.re
|
|
|
80
80
|
readonly message: string;
|
|
81
81
|
}[]] | undefined;
|
|
82
82
|
readonly reorderable?: boolean | undefined;
|
|
83
|
+
readonly addable?: boolean | undefined;
|
|
83
84
|
}, Schema.Struct<{
|
|
84
85
|
label: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
|
|
85
86
|
locale: Schema.Literal<["zh"]>;
|
|
@@ -111,6 +112,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.re
|
|
|
111
112
|
message: Schema.SchemaClass<string, string, never>;
|
|
112
113
|
}>]>>;
|
|
113
114
|
reorderable: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
115
|
+
addable: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
114
116
|
min: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
115
117
|
max: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
116
118
|
disabled: Schema.optional<Schema.Schema<string, string, never>>;
|
|
@@ -55,6 +55,10 @@ export function schema(configure) {
|
|
|
55
55
|
title: "\u5141\u8BB8\u91CD\u6392",
|
|
56
56
|
description: "\u5173\u95ED\u540E\u7528\u6237\u65E0\u6CD5\u4E0A\u4E0B\u79FB\u52A8\u5217\u8868\u9879\uFF1B\u9ED8\u8BA4\u5F00\u542F"
|
|
57
57
|
})),
|
|
58
|
+
addable: Schema.optional(Schema.Boolean.annotations({
|
|
59
|
+
title: "\u663E\u793A\u65B0\u589E\u6309\u94AE",
|
|
60
|
+
description: "\u5173\u95ED\u540E\u4E0D\u6E32\u67D3\u5185\u7F6E\u7684\u65B0\u589E\u6309\u94AE\uFF1B\u9ED8\u8BA4\u5F00\u542F\u3002\u5173\u95ED\u65F6\u53EF\u6539\u7531\u5916\u90E8\u6309\u94AE\u5411\u7ED1\u5B9A\u8DEF\u5F84\u8FFD\u52A0\u5217\u8868\u9879\uFF08\u4F8B\u5982 `state.write` \u5199\u5165 `form.<\u8DEF\u5F84> + [{}]`\uFF09"
|
|
61
|
+
})),
|
|
58
62
|
min: Schema.optional(Schema.Number.pipe(Schema.int(), Schema.nonNegative()).annotations({
|
|
59
63
|
title: "\u6700\u5C11\u6570\u91CF",
|
|
60
64
|
description: "\u5217\u8868\u9879\u6570\u91CF\u7684\u4E0B\u9650\uFF1B\u4F4E\u4E8E\u8BE5\u503C\u65F6\u65E0\u6CD5\u5220\u9664"
|