@shwfed/config 2.9.1 → 2.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/mcp.mjs +1 -3
  2. package/dist/module.json +1 -1
  3. package/dist/preview/assets/{badge-BFb-1pCT.js → badge-BfeJsmpt.js} +1 -1
  4. package/dist/preview/assets/{config-DFaQa_Ua.js → config-0PaXoAiK.js} +1 -1
  5. package/dist/preview/assets/{config-ByZ0313c.js → config-3Dav11rw.js} +1 -1
  6. package/dist/preview/assets/{config-CBypmimA.js → config-BlpdrD6d.js} +1 -1
  7. package/dist/preview/assets/{config-CRxO6DVD.js → config-CHRzxGVx.js} +1 -1
  8. package/dist/preview/assets/{config-CgGwKTMB.js → config-CS-NMWcV.js} +1 -1
  9. package/dist/preview/assets/{config-0DneC44h.js → config-CTA1p6um.js} +1 -1
  10. package/dist/preview/assets/{config-iysOo1dH.js → config-Cb6kwkJ7.js} +1 -1
  11. package/dist/preview/assets/{config-DlA3bMzk.js → config-CtENh936.js} +1 -1
  12. package/dist/preview/assets/{config-rr6HpsHl.js → config-zybwxOyV.js} +1 -1
  13. package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-C1MSczMq.js → definition.vue_vue_type_script_setup_true_lang-ClY17iVd.js} +1 -1
  14. package/dist/preview/assets/{index-CuSwhbkD.js → index-BZ2cMq0s.js} +1 -1
  15. package/dist/preview/assets/{index-CpLuDJe9.js → index-Bjjy6l1m.js} +156 -158
  16. package/dist/preview/assets/index-Cw2peSCr.js +1 -0
  17. package/dist/preview/assets/{item-iBF7XNGG.js → item-BTENoFeS.js} +1 -1
  18. package/dist/preview/assets/{runtime-CPiaq4_s.js → runtime-B3kAucV_.js} +1 -1
  19. package/dist/preview/assets/{runtime-XjumEj6A.js → runtime-BWeksK7X.js} +1 -1
  20. package/dist/preview/assets/{runtime-DrKKzpjq.js → runtime-ByvaY-sA.js} +1 -1
  21. package/dist/preview/assets/{runtime-CY9TirG6.js → runtime-D8qWgTCC.js} +1 -1
  22. package/dist/preview/assets/{runtime-BPK6zdoy.js → runtime-D9EdrQs6.js} +1 -1
  23. package/dist/preview/assets/{runtime-Uz1zCLPO.js → runtime-DCftiZTY.js} +1 -1
  24. package/dist/preview/assets/{runtime-S7Afa8F4.js → runtime-DNEDM9BZ.js} +1 -1
  25. package/dist/preview/assets/{runtime-BmED451i.js → runtime-Dpy_UDRy.js} +1 -1
  26. package/dist/preview/assets/{runtime-D4WPJrz9.js → runtime-yP47ki_o.js} +1 -1
  27. package/dist/preview/index.html +1 -1
  28. package/dist/runtime/components/actions/buttons/2026-04-21/com.shwfed.actions.button.navigation/config.vue +1 -0
  29. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.d.vue.ts +16 -16
  30. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.vue.d.ts +16 -16
  31. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +18 -18
  32. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +18 -18
  33. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.d.vue.ts +16 -16
  34. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue.d.ts +16 -16
  35. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +18 -18
  36. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +18 -18
  37. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/config.d.vue.ts +16 -16
  38. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/config.vue.d.ts +16 -16
  39. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.d.vue.ts +18 -18
  40. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.vue.d.ts +18 -18
  41. package/dist/runtime/components/form/utils/common.js +1 -3
  42. package/dist/runtime/components/form/utils/derived.js +2 -1
  43. package/package.json +1 -1
  44. package/dist/preview/assets/index-CLQQPdxj.js +0 -1
@@ -52,28 +52,28 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
52
52
  readonly locale: "en" | "ja" | "ko";
53
53
  readonly message: string;
54
54
  }[]] | undefined;
55
- readonly presets?: readonly {
56
- readonly label: readonly [{
55
+ readonly validations?: readonly {
56
+ readonly message: readonly [{
57
57
  readonly locale: "zh";
58
58
  readonly message: string;
59
59
  }, ...{
60
60
  readonly locale: "en" | "ja" | "ko";
61
61
  readonly message: string;
62
62
  }[]];
63
- readonly id: string;
64
- readonly end: string;
65
- readonly start: string;
63
+ readonly warning?: boolean | undefined;
64
+ readonly when: string;
66
65
  }[] | undefined;
67
- readonly validations?: readonly {
68
- readonly message: readonly [{
66
+ readonly presets?: readonly {
67
+ readonly label: readonly [{
69
68
  readonly locale: "zh";
70
69
  readonly message: string;
71
70
  }, ...{
72
71
  readonly locale: "en" | "ja" | "ko";
73
72
  readonly message: string;
74
73
  }[]];
75
- readonly warning?: boolean | undefined;
76
- readonly when: string;
74
+ readonly id: string;
75
+ readonly end: string;
76
+ readonly start: string;
77
77
  }[] | undefined;
78
78
  }) => any;
79
79
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
@@ -126,28 +126,28 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
126
126
  readonly locale: "en" | "ja" | "ko";
127
127
  readonly message: string;
128
128
  }[]] | undefined;
129
- readonly presets?: readonly {
130
- readonly label: readonly [{
129
+ readonly validations?: readonly {
130
+ readonly message: readonly [{
131
131
  readonly locale: "zh";
132
132
  readonly message: string;
133
133
  }, ...{
134
134
  readonly locale: "en" | "ja" | "ko";
135
135
  readonly message: string;
136
136
  }[]];
137
- readonly id: string;
138
- readonly end: string;
139
- readonly start: string;
137
+ readonly warning?: boolean | undefined;
138
+ readonly when: string;
140
139
  }[] | undefined;
141
- readonly validations?: readonly {
142
- readonly message: readonly [{
140
+ readonly presets?: readonly {
141
+ readonly label: readonly [{
143
142
  readonly locale: "zh";
144
143
  readonly message: string;
145
144
  }, ...{
146
145
  readonly locale: "en" | "ja" | "ko";
147
146
  readonly message: string;
148
147
  }[]];
149
- readonly warning?: boolean | undefined;
150
- readonly when: string;
148
+ readonly id: string;
149
+ readonly end: string;
150
+ readonly start: string;
151
151
  }[] | undefined;
152
152
  }) => any) | undefined;
153
153
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -41,27 +41,27 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
41
41
  } | undefined;
42
42
  readonly format?: string | undefined;
43
43
  readonly valueFormat?: string | undefined;
44
- readonly presets?: readonly {
45
- readonly label: readonly [{
44
+ readonly validations?: readonly {
45
+ readonly message: readonly [{
46
46
  readonly locale: "zh";
47
47
  readonly message: string;
48
48
  }, ...{
49
49
  readonly locale: "en" | "ja" | "ko";
50
50
  readonly message: string;
51
51
  }[]];
52
- readonly id: string;
53
- readonly value: string;
52
+ readonly warning?: boolean | undefined;
53
+ readonly when: string;
54
54
  }[] | undefined;
55
- readonly validations?: readonly {
56
- readonly message: readonly [{
55
+ readonly presets?: readonly {
56
+ readonly label: readonly [{
57
57
  readonly locale: "zh";
58
58
  readonly message: string;
59
59
  }, ...{
60
60
  readonly locale: "en" | "ja" | "ko";
61
61
  readonly message: string;
62
62
  }[]];
63
- readonly warning?: boolean | undefined;
64
- readonly when: string;
63
+ readonly id: string;
64
+ readonly value: string;
65
65
  }[] | undefined;
66
66
  }) => any;
67
67
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
@@ -103,27 +103,27 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
103
103
  } | undefined;
104
104
  readonly format?: string | undefined;
105
105
  readonly valueFormat?: string | undefined;
106
- readonly presets?: readonly {
107
- readonly label: readonly [{
106
+ readonly validations?: readonly {
107
+ readonly message: readonly [{
108
108
  readonly locale: "zh";
109
109
  readonly message: string;
110
110
  }, ...{
111
111
  readonly locale: "en" | "ja" | "ko";
112
112
  readonly message: string;
113
113
  }[]];
114
- readonly id: string;
115
- readonly value: string;
114
+ readonly warning?: boolean | undefined;
115
+ readonly when: string;
116
116
  }[] | undefined;
117
- readonly validations?: readonly {
118
- readonly message: readonly [{
117
+ readonly presets?: readonly {
118
+ readonly label: readonly [{
119
119
  readonly locale: "zh";
120
120
  readonly message: string;
121
121
  }, ...{
122
122
  readonly locale: "en" | "ja" | "ko";
123
123
  readonly message: string;
124
124
  }[]];
125
- readonly warning?: boolean | undefined;
126
- readonly when: string;
125
+ readonly id: string;
126
+ readonly value: string;
127
127
  }[] | undefined;
128
128
  }) => any) | undefined;
129
129
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -41,27 +41,27 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
41
41
  } | undefined;
42
42
  readonly format?: string | undefined;
43
43
  readonly valueFormat?: string | undefined;
44
- readonly presets?: readonly {
45
- readonly label: readonly [{
44
+ readonly validations?: readonly {
45
+ readonly message: readonly [{
46
46
  readonly locale: "zh";
47
47
  readonly message: string;
48
48
  }, ...{
49
49
  readonly locale: "en" | "ja" | "ko";
50
50
  readonly message: string;
51
51
  }[]];
52
- readonly id: string;
53
- readonly value: string;
52
+ readonly warning?: boolean | undefined;
53
+ readonly when: string;
54
54
  }[] | undefined;
55
- readonly validations?: readonly {
56
- readonly message: readonly [{
55
+ readonly presets?: readonly {
56
+ readonly label: readonly [{
57
57
  readonly locale: "zh";
58
58
  readonly message: string;
59
59
  }, ...{
60
60
  readonly locale: "en" | "ja" | "ko";
61
61
  readonly message: string;
62
62
  }[]];
63
- readonly warning?: boolean | undefined;
64
- readonly when: string;
63
+ readonly id: string;
64
+ readonly value: string;
65
65
  }[] | undefined;
66
66
  }) => any;
67
67
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
@@ -103,27 +103,27 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
103
103
  } | undefined;
104
104
  readonly format?: string | undefined;
105
105
  readonly valueFormat?: string | undefined;
106
- readonly presets?: readonly {
107
- readonly label: readonly [{
106
+ readonly validations?: readonly {
107
+ readonly message: readonly [{
108
108
  readonly locale: "zh";
109
109
  readonly message: string;
110
110
  }, ...{
111
111
  readonly locale: "en" | "ja" | "ko";
112
112
  readonly message: string;
113
113
  }[]];
114
- readonly id: string;
115
- readonly value: string;
114
+ readonly warning?: boolean | undefined;
115
+ readonly when: string;
116
116
  }[] | undefined;
117
- readonly validations?: readonly {
118
- readonly message: readonly [{
117
+ readonly presets?: readonly {
118
+ readonly label: readonly [{
119
119
  readonly locale: "zh";
120
120
  readonly message: string;
121
121
  }, ...{
122
122
  readonly locale: "en" | "ja" | "ko";
123
123
  readonly message: string;
124
124
  }[]];
125
- readonly warning?: boolean | undefined;
126
- readonly when: string;
125
+ readonly id: string;
126
+ readonly value: string;
127
127
  }[] | undefined;
128
128
  }) => any) | undefined;
129
129
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -49,28 +49,28 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
49
49
  readonly locale: "en" | "ja" | "ko";
50
50
  readonly message: string;
51
51
  }[]] | undefined;
52
- readonly presets?: readonly {
53
- readonly label: readonly [{
52
+ readonly validations?: readonly {
53
+ readonly message: readonly [{
54
54
  readonly locale: "zh";
55
55
  readonly message: string;
56
56
  }, ...{
57
57
  readonly locale: "en" | "ja" | "ko";
58
58
  readonly message: string;
59
59
  }[]];
60
- readonly id: string;
61
- readonly end: string;
62
- readonly start: string;
60
+ readonly warning?: boolean | undefined;
61
+ readonly when: string;
63
62
  }[] | undefined;
64
- readonly validations?: readonly {
65
- readonly message: readonly [{
63
+ readonly presets?: readonly {
64
+ readonly label: readonly [{
66
65
  readonly locale: "zh";
67
66
  readonly message: string;
68
67
  }, ...{
69
68
  readonly locale: "en" | "ja" | "ko";
70
69
  readonly message: string;
71
70
  }[]];
72
- readonly warning?: boolean | undefined;
73
- readonly when: string;
71
+ readonly id: string;
72
+ readonly end: string;
73
+ readonly start: string;
74
74
  }[] | undefined;
75
75
  }) => any;
76
76
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
@@ -120,28 +120,28 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
120
120
  readonly locale: "en" | "ja" | "ko";
121
121
  readonly message: string;
122
122
  }[]] | undefined;
123
- readonly presets?: readonly {
124
- readonly label: readonly [{
123
+ readonly validations?: readonly {
124
+ readonly message: readonly [{
125
125
  readonly locale: "zh";
126
126
  readonly message: string;
127
127
  }, ...{
128
128
  readonly locale: "en" | "ja" | "ko";
129
129
  readonly message: string;
130
130
  }[]];
131
- readonly id: string;
132
- readonly end: string;
133
- readonly start: string;
131
+ readonly warning?: boolean | undefined;
132
+ readonly when: string;
134
133
  }[] | undefined;
135
- readonly validations?: readonly {
136
- readonly message: readonly [{
134
+ readonly presets?: readonly {
135
+ readonly label: readonly [{
137
136
  readonly locale: "zh";
138
137
  readonly message: string;
139
138
  }, ...{
140
139
  readonly locale: "en" | "ja" | "ko";
141
140
  readonly message: string;
142
141
  }[]];
143
- readonly warning?: boolean | undefined;
144
- readonly when: string;
142
+ readonly id: string;
143
+ readonly end: string;
144
+ readonly start: string;
145
145
  }[] | undefined;
146
146
  }) => any) | undefined;
147
147
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -49,28 +49,28 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
49
49
  readonly locale: "en" | "ja" | "ko";
50
50
  readonly message: string;
51
51
  }[]] | undefined;
52
- readonly presets?: readonly {
53
- readonly label: readonly [{
52
+ readonly validations?: readonly {
53
+ readonly message: readonly [{
54
54
  readonly locale: "zh";
55
55
  readonly message: string;
56
56
  }, ...{
57
57
  readonly locale: "en" | "ja" | "ko";
58
58
  readonly message: string;
59
59
  }[]];
60
- readonly id: string;
61
- readonly end: string;
62
- readonly start: string;
60
+ readonly warning?: boolean | undefined;
61
+ readonly when: string;
63
62
  }[] | undefined;
64
- readonly validations?: readonly {
65
- readonly message: readonly [{
63
+ readonly presets?: readonly {
64
+ readonly label: readonly [{
66
65
  readonly locale: "zh";
67
66
  readonly message: string;
68
67
  }, ...{
69
68
  readonly locale: "en" | "ja" | "ko";
70
69
  readonly message: string;
71
70
  }[]];
72
- readonly warning?: boolean | undefined;
73
- readonly when: string;
71
+ readonly id: string;
72
+ readonly end: string;
73
+ readonly start: string;
74
74
  }[] | undefined;
75
75
  }) => any;
76
76
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
@@ -120,28 +120,28 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
120
120
  readonly locale: "en" | "ja" | "ko";
121
121
  readonly message: string;
122
122
  }[]] | undefined;
123
- readonly presets?: readonly {
124
- readonly label: readonly [{
123
+ readonly validations?: readonly {
124
+ readonly message: readonly [{
125
125
  readonly locale: "zh";
126
126
  readonly message: string;
127
127
  }, ...{
128
128
  readonly locale: "en" | "ja" | "ko";
129
129
  readonly message: string;
130
130
  }[]];
131
- readonly id: string;
132
- readonly end: string;
133
- readonly start: string;
131
+ readonly warning?: boolean | undefined;
132
+ readonly when: string;
134
133
  }[] | undefined;
135
- readonly validations?: readonly {
136
- readonly message: readonly [{
134
+ readonly presets?: readonly {
135
+ readonly label: readonly [{
137
136
  readonly locale: "zh";
138
137
  readonly message: string;
139
138
  }, ...{
140
139
  readonly locale: "en" | "ja" | "ko";
141
140
  readonly message: string;
142
141
  }[]];
143
- readonly warning?: boolean | undefined;
144
- readonly when: string;
142
+ readonly id: string;
143
+ readonly end: string;
144
+ readonly start: string;
145
145
  }[] | undefined;
146
146
  }) => any) | undefined;
147
147
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -82,13 +82,11 @@ export function derivedField(configure, resultType) {
82
82
  }).annotations({
83
83
  title: "\u6D3E\u751F\u503C",
84
84
  description: md`
85
- 该字段值的**派生来源**,二选一:
85
+ 该字段值的**派生来源**:
86
86
 
87
87
  - **计算值**:字段变为只读,其值始终由表达式计算得出,依赖字段提交时重算。
88
88
 
89
89
  - **智能填充**:字段保持可编辑。用户未手动修改前由表达式持续计算并填入;一旦用户手动修改(含清空),即以用户输入为准,表达式不再覆盖。
90
-
91
- 两种方式都支持异步调用(如 \`http.get(...)\`)。
92
90
  `
93
91
  })
94
92
  );
@@ -76,7 +76,8 @@ export function useDerived(options) {
76
76
  (result) => {
77
77
  if (gen !== generation) return;
78
78
  if (field.mode === "prefill" && isDirty(field.binding)) return;
79
- if (!deepEqual(getAt(field.binding), result)) setAtSilent(field.binding, result);
79
+ const normalized = result === void 0 ? null : result;
80
+ if (!deepEqual(getAt(field.binding), normalized)) setAtSilent(field.binding, normalized);
80
81
  },
81
82
  () => {
82
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shwfed/config",
3
- "version": "2.9.1",
3
+ "version": "2.9.2",
4
4
  "description": "Configurable UI for SHWFED",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -1 +0,0 @@
1
- import{b1 as e}from"./index-CpLuDJe9.js";import{b2 as f,b3 as r,b4 as s}from"./index-CpLuDJe9.js";export{f as TableConfig,r as createTableConfig,e as default,s as getColumnTechnicalKey};