@shwfed/config 2.10.3 → 2.10.4

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 (88) hide show
  1. package/dist/mcp.mjs +26 -2
  2. package/dist/module.json +1 -1
  3. package/dist/preview/assets/{FieldGroup.vue_vue_type_script_setup_true_lang-sT5i_dnE.js → FieldGroup.vue_vue_type_script_setup_true_lang-DIjsktfi.js} +1 -1
  4. package/dist/preview/assets/{badge-ZFj45FMd.js → badge-Cr6_n00S.js} +1 -1
  5. package/dist/preview/assets/{config-BwDPPmtn.js → config-1VGYa1Zb.js} +1 -1
  6. package/dist/preview/assets/{config-3rP_f_3o.js → config-B2rtOFE1.js} +1 -1
  7. package/dist/preview/assets/{config-DZPLqFqt.js → config-BemROLz0.js} +1 -1
  8. package/dist/preview/assets/{config-BLesYihN.js → config-BjUIO7Ps.js} +1 -1
  9. package/dist/preview/assets/{config-BBvebIQw.js → config-Bu-ffrDi.js} +1 -1
  10. package/dist/preview/assets/{config-CSR1JNVB.js → config-CNY70agP.js} +1 -1
  11. package/dist/preview/assets/{config-D1uMzMiN.js → config-CSauYxAG.js} +1 -1
  12. package/dist/preview/assets/{config-Rz0II9u6.js → config-CrA5lAMB.js} +1 -1
  13. package/dist/preview/assets/{config-CEBzJOHo.js → config-CwbWyadd.js} +1 -1
  14. package/dist/preview/assets/{config-cD091sze.js → config-DF4u2WzQ.js} +1 -1
  15. package/dist/preview/assets/{config-CgM75jSO.js → config-DTDFg08z.js} +1 -1
  16. package/dist/preview/assets/{config-lskK7grq.js → config-DpcMlGoM.js} +1 -1
  17. package/dist/preview/assets/{config-DfVc2Iy9.js → config-Dx9AeOjb.js} +1 -1
  18. package/dist/preview/assets/{config-2iinn_1E.js → config-hXHOfKvD.js} +1 -1
  19. package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-Ce_NeQUa.js → definition.vue_vue_type_script_setup_true_lang-v2AaUd8i.js} +1 -1
  20. package/dist/preview/assets/index-BDbNnENM.js +1 -0
  21. package/dist/preview/assets/index-ButPJaOR.css +1 -0
  22. package/dist/preview/assets/{index-_KA5_QIV.js → index-BzWZj-hV.js} +1 -1
  23. package/dist/preview/assets/{index-Zc4Mcm3J.js → index-E3_P6Fhz.js} +177 -177
  24. package/dist/preview/assets/{item-CBFJ6f6b.js → item-B_QcL62I.js} +1 -1
  25. package/dist/preview/assets/{runtime-Q_isegB9.js → runtime-BRg0jxiK.js} +1 -1
  26. package/dist/preview/assets/{runtime-DO9HS0Rb.js → runtime-BbiAwZZ9.js} +1 -1
  27. package/dist/preview/assets/{runtime-jWibKv1T.js → runtime-CKoLdM68.js} +1 -1
  28. package/dist/preview/assets/{runtime-DQXLscBz.js → runtime-CZ6uHCIE.js} +1 -1
  29. package/dist/preview/assets/{runtime-enspc5HG.js → runtime-Cd79TXff.js} +1 -1
  30. package/dist/preview/assets/{runtime-Cu0RJn8g.js → runtime-Cfup01hl.js} +1 -1
  31. package/dist/preview/assets/{runtime-BIGEoc5L.js → runtime-Cu_C4Joj.js} +1 -1
  32. package/dist/preview/assets/{runtime-CvMryNNx.js → runtime-D-MaRCSg.js} +1 -1
  33. package/dist/preview/assets/{runtime-BKqyqEeD.js → runtime-DUMSbsqb.js} +1 -1
  34. package/dist/preview/assets/{runtime-CIc3k_jd.js → runtime-hClBh8tp.js} +1 -1
  35. package/dist/preview/assets/{schema-meta-B5tln_XH.js → schema-meta-BACRMkVo.js} +1 -1
  36. package/dist/preview/index.html +2 -2
  37. package/dist/runtime/components/block-layout-editor/index.vue +8 -0
  38. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.d.vue.ts +134 -0
  39. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue +78 -2
  40. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue.d.ts +134 -0
  41. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/runtime.vue +24 -0
  42. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.d.ts +132 -0
  43. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.js +14 -1
  44. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +4 -4
  45. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +4 -4
  46. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +6 -6
  47. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +6 -6
  48. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.d.vue.ts +2 -2
  49. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.vue.d.ts +2 -2
  50. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.d.vue.ts +134 -0
  51. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue +77 -2
  52. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts +134 -0
  53. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/runtime.vue +24 -0
  54. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.d.ts +132 -0
  55. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.js +14 -1
  56. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.d.vue.ts +4 -4
  57. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.vue.d.ts +4 -4
  58. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +2 -2
  59. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +2 -2
  60. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.d.vue.ts +2 -2
  61. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue.d.ts +2 -2
  62. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +2 -2
  63. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +2 -2
  64. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.d.vue.ts +2 -2
  65. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +2 -2
  66. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +2 -2
  67. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +2 -2
  68. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +2 -2
  69. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +2 -2
  70. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
  71. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
  72. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
  73. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
  74. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
  75. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
  76. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
  77. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
  78. package/dist/runtime/components/ui/date-picker/DatePickerInput.d.vue.ts +1 -1
  79. package/dist/runtime/components/ui/date-picker/DatePickerInput.vue.d.ts +1 -1
  80. package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.d.vue.ts +1 -1
  81. package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.vue.d.ts +1 -1
  82. package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.d.vue.ts +1 -1
  83. package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.vue.d.ts +1 -1
  84. package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.d.vue.ts +2 -2
  85. package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.vue.d.ts +2 -2
  86. package/package.json +1 -1
  87. package/dist/preview/assets/index-pkoEF5dC.css +0 -1
  88. package/dist/preview/assets/index-snO3CfdE.js +0 -1
@@ -53,6 +53,73 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
53
53
  readonly warning?: boolean | undefined;
54
54
  readonly when: string;
55
55
  }[] | undefined;
56
+ readonly addon?: {
57
+ readonly size: "default" | "sm" | "xs";
58
+ readonly style?: string | undefined;
59
+ readonly gap: number;
60
+ readonly items: readonly (import("../../../../actions/schema.js").RegistryItemValue | {
61
+ readonly disabled?: string | undefined;
62
+ readonly id: string;
63
+ readonly title: readonly [{
64
+ readonly locale: "zh";
65
+ readonly message: string;
66
+ }, ...{
67
+ readonly locale: "en" | "ja" | "ko";
68
+ readonly message: string;
69
+ }[]];
70
+ readonly icon?: string | undefined;
71
+ readonly hidden?: string | undefined;
72
+ readonly tooltip?: readonly [{
73
+ readonly locale: "zh";
74
+ readonly message: string;
75
+ }, ...{
76
+ readonly locale: "en" | "ja" | "ko";
77
+ readonly message: string;
78
+ }[]] | undefined;
79
+ readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
80
+ readonly action?: any;
81
+ readonly groupId: string;
82
+ readonly hideTitle?: boolean | undefined;
83
+ } | {
84
+ readonly id: string;
85
+ readonly title: readonly [{
86
+ readonly locale: "zh";
87
+ readonly message: string;
88
+ }, ...{
89
+ readonly locale: "en" | "ja" | "ko";
90
+ readonly message: string;
91
+ }[]];
92
+ readonly icon?: string | undefined;
93
+ readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
94
+ readonly disabled?: string | undefined;
95
+ readonly id: string;
96
+ readonly title: readonly [{
97
+ readonly locale: "zh";
98
+ readonly message: string;
99
+ }, ...{
100
+ readonly locale: "en" | "ja" | "ko";
101
+ readonly message: string;
102
+ }[]];
103
+ readonly icon?: string | undefined;
104
+ readonly hidden?: string | undefined;
105
+ readonly tooltip?: readonly [{
106
+ readonly locale: "zh";
107
+ readonly message: string;
108
+ }, ...{
109
+ readonly locale: "en" | "ja" | "ko";
110
+ readonly message: string;
111
+ }[]] | undefined;
112
+ readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
113
+ readonly action?: any;
114
+ })[];
115
+ readonly groupId: string;
116
+ readonly hideTitle?: boolean | undefined;
117
+ })[];
118
+ readonly groups: readonly {
119
+ readonly id: string;
120
+ readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
121
+ }[];
122
+ } | undefined;
56
123
  readonly precision?: number | undefined;
57
124
  readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
58
125
  readonly valueAsString?: boolean | undefined;
@@ -108,6 +175,73 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
108
175
  readonly warning?: boolean | undefined;
109
176
  readonly when: string;
110
177
  }[] | undefined;
178
+ readonly addon?: {
179
+ readonly size: "default" | "sm" | "xs";
180
+ readonly style?: string | undefined;
181
+ readonly gap: number;
182
+ readonly items: readonly (import("../../../../actions/schema.js").RegistryItemValue | {
183
+ readonly disabled?: string | undefined;
184
+ readonly id: string;
185
+ readonly title: readonly [{
186
+ readonly locale: "zh";
187
+ readonly message: string;
188
+ }, ...{
189
+ readonly locale: "en" | "ja" | "ko";
190
+ readonly message: string;
191
+ }[]];
192
+ readonly icon?: string | undefined;
193
+ readonly hidden?: string | undefined;
194
+ readonly tooltip?: readonly [{
195
+ readonly locale: "zh";
196
+ readonly message: string;
197
+ }, ...{
198
+ readonly locale: "en" | "ja" | "ko";
199
+ readonly message: string;
200
+ }[]] | undefined;
201
+ readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
202
+ readonly action?: any;
203
+ readonly groupId: string;
204
+ readonly hideTitle?: boolean | undefined;
205
+ } | {
206
+ readonly id: string;
207
+ readonly title: readonly [{
208
+ readonly locale: "zh";
209
+ readonly message: string;
210
+ }, ...{
211
+ readonly locale: "en" | "ja" | "ko";
212
+ readonly message: string;
213
+ }[]];
214
+ readonly icon?: string | undefined;
215
+ readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
216
+ readonly disabled?: string | undefined;
217
+ readonly id: string;
218
+ readonly title: readonly [{
219
+ readonly locale: "zh";
220
+ readonly message: string;
221
+ }, ...{
222
+ readonly locale: "en" | "ja" | "ko";
223
+ readonly message: string;
224
+ }[]];
225
+ readonly icon?: string | undefined;
226
+ readonly hidden?: string | undefined;
227
+ readonly tooltip?: readonly [{
228
+ readonly locale: "zh";
229
+ readonly message: string;
230
+ }, ...{
231
+ readonly locale: "en" | "ja" | "ko";
232
+ readonly message: string;
233
+ }[]] | undefined;
234
+ readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
235
+ readonly action?: any;
236
+ })[];
237
+ readonly groupId: string;
238
+ readonly hideTitle?: boolean | undefined;
239
+ })[];
240
+ readonly groups: readonly {
241
+ readonly id: string;
242
+ readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
243
+ }[];
244
+ } | undefined;
111
245
  readonly precision?: number | undefined;
112
246
  readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
113
247
  readonly valueAsString?: boolean | undefined;
@@ -9,6 +9,7 @@ import { getLocalizedText } from "../../../../../share/locale";
9
9
  import { Field, FieldLabel, FieldMessages } from "../../../../ui/field";
10
10
  import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupNumberField } from "../../../../ui/input-group";
11
11
  import { Markdown } from "../../../../ui/markdown";
12
+ import ShwfedActions from "../../../../actions/components/group.vue";
12
13
  import { DEFAULT_FIELD_ORIENTATION } from "../../../utils/common";
13
14
  import { useFieldValue } from "../../../utils/field-value";
14
15
  import { useFieldValidation } from "../../../utils/validation";
@@ -93,6 +94,18 @@ function applyRounding(n, precision, mode) {
93
94
  return Math.round(n * factor) / factor;
94
95
  }
95
96
  }
97
+ const addonConfig = computed(() => {
98
+ const addon = props.config.addon;
99
+ if (!addon || addon.items.length === 0) return null;
100
+ return {
101
+ kind: "shwfed.component.action",
102
+ size: addon.size ?? "xs",
103
+ gap: addon.gap,
104
+ style: addon.style,
105
+ groups: addon.groups.map((group) => ({ ...group, variant: group.variant ?? "ghost" })),
106
+ items: addon.items
107
+ };
108
+ });
96
109
  const showClear = computed(() => !isDisabled.value && draft.value !== void 0);
97
110
  function handleClear() {
98
111
  draft.value = void 0;
@@ -179,6 +192,13 @@ async function onBlur() {
179
192
  <Icon icon="fluent:dismiss-20-regular" />
180
193
  </InputGroupButton>
181
194
  </InputGroupAddon>
195
+ <InputGroupAddon
196
+ v-if="addonConfig"
197
+ align="inline-end"
198
+ class="field-addon-actions"
199
+ >
200
+ <ShwfedActions :config="addonConfig" />
201
+ </InputGroupAddon>
182
202
  </InputGroup>
183
203
  <FieldMessages
184
204
  v-if="visible"
@@ -187,3 +207,7 @@ async function onBlur() {
187
207
  />
188
208
  </Field>
189
209
  </template>
210
+
211
+ <style scoped>
212
+ .field-addon-actions :deep([data-slot=buttons]){align-items:center;gap:.125rem}.field-addon-actions :deep([data-slot=buttons-dropdown-trigger]),.field-addon-actions :deep([data-slot=buttons-item]){border-radius:.125rem;color:#71717a;height:1.5rem;min-width:1.5rem;padding:0}.field-addon-actions :deep([data-slot=buttons-dropdown-trigger]:hover:not(:disabled)),.field-addon-actions :deep([data-slot=buttons-item]:hover:not(:disabled)){color:#3f3f46}
213
+ </style>
@@ -52,6 +52,138 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
52
52
  valueAsString: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
53
53
  min: Schema.optional<Schema.Schema<string, string, never>>;
54
54
  max: Schema.optional<Schema.Schema<string, string, never>>;
55
+ addon: Schema.optional<Schema.Struct<{
56
+ groups: Schema.optionalWith<Schema.Array$<Schema.Struct<{
57
+ id: Schema.refine<string, typeof Schema.String>;
58
+ variant: Schema.optional<Schema.Literal<["default", "primary", "destructive", "ghost", "link"]>>;
59
+ }>>, {
60
+ default: () => never[];
61
+ }>;
62
+ items: Schema.optionalWith<Schema.Array$<Schema.Schema<import("../../../../actions/schema.js").RegistryItemValue | {
63
+ readonly disabled?: string | undefined;
64
+ readonly id: string;
65
+ readonly title: readonly [{
66
+ readonly locale: "zh";
67
+ readonly message: string;
68
+ }, ...{
69
+ readonly locale: "en" | "ja" | "ko";
70
+ readonly message: string;
71
+ }[]];
72
+ readonly icon?: string | undefined;
73
+ readonly hidden?: string | undefined;
74
+ readonly tooltip?: readonly [{
75
+ readonly locale: "zh";
76
+ readonly message: string;
77
+ }, ...{
78
+ readonly locale: "en" | "ja" | "ko";
79
+ readonly message: string;
80
+ }[]] | undefined;
81
+ readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
82
+ readonly action?: any;
83
+ readonly groupId: string;
84
+ readonly hideTitle?: boolean | undefined;
85
+ } | {
86
+ readonly id: string;
87
+ readonly title: readonly [{
88
+ readonly locale: "zh";
89
+ readonly message: string;
90
+ }, ...{
91
+ readonly locale: "en" | "ja" | "ko";
92
+ readonly message: string;
93
+ }[]];
94
+ readonly icon?: string | undefined;
95
+ readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
96
+ readonly disabled?: string | undefined;
97
+ readonly id: string;
98
+ readonly title: readonly [{
99
+ readonly locale: "zh";
100
+ readonly message: string;
101
+ }, ...{
102
+ readonly locale: "en" | "ja" | "ko";
103
+ readonly message: string;
104
+ }[]];
105
+ readonly icon?: string | undefined;
106
+ readonly hidden?: string | undefined;
107
+ readonly tooltip?: readonly [{
108
+ readonly locale: "zh";
109
+ readonly message: string;
110
+ }, ...{
111
+ readonly locale: "en" | "ja" | "ko";
112
+ readonly message: string;
113
+ }[]] | undefined;
114
+ readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
115
+ readonly action?: any;
116
+ })[];
117
+ readonly groupId: string;
118
+ readonly hideTitle?: boolean | undefined;
119
+ }, import("../../../../actions/schema.js").RegistryItemValue | {
120
+ readonly id: string;
121
+ readonly title: readonly [{
122
+ readonly locale: "zh";
123
+ readonly message: string;
124
+ }, ...{
125
+ readonly locale: "en" | "ja" | "ko";
126
+ readonly message: string;
127
+ }[]];
128
+ readonly groupId: string;
129
+ readonly disabled?: string | undefined;
130
+ readonly icon?: string | undefined;
131
+ readonly hidden?: string | undefined;
132
+ readonly tooltip?: readonly [{
133
+ readonly locale: "zh";
134
+ readonly message: string;
135
+ }, ...{
136
+ readonly locale: "en" | "ja" | "ko";
137
+ readonly message: string;
138
+ }[]] | undefined;
139
+ readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
140
+ readonly action?: any;
141
+ readonly hideTitle?: boolean | undefined;
142
+ } | {
143
+ readonly id: string;
144
+ readonly title: readonly [{
145
+ readonly locale: "zh";
146
+ readonly message: string;
147
+ }, ...{
148
+ readonly locale: "en" | "ja" | "ko";
149
+ readonly message: string;
150
+ }[]];
151
+ readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
152
+ readonly id: string;
153
+ readonly title: readonly [{
154
+ readonly locale: "zh";
155
+ readonly message: string;
156
+ }, ...{
157
+ readonly locale: "en" | "ja" | "ko";
158
+ readonly message: string;
159
+ }[]];
160
+ readonly disabled?: string | undefined;
161
+ readonly icon?: string | undefined;
162
+ readonly hidden?: string | undefined;
163
+ readonly tooltip?: readonly [{
164
+ readonly locale: "zh";
165
+ readonly message: string;
166
+ }, ...{
167
+ readonly locale: "en" | "ja" | "ko";
168
+ readonly message: string;
169
+ }[]] | undefined;
170
+ readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
171
+ readonly action?: any;
172
+ })[];
173
+ readonly groupId: string;
174
+ readonly icon?: string | undefined;
175
+ readonly hideTitle?: boolean | undefined;
176
+ }, never>>, {
177
+ default: () => never[];
178
+ }>;
179
+ size: Schema.optionalWith<Schema.Literal<["default", "sm", "xs"]>, {
180
+ default: () => "default";
181
+ }>;
182
+ gap: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.Number>>, {
183
+ default: () => number;
184
+ }>;
185
+ style: Schema.optional<typeof Schema.String>;
186
+ }>>;
55
187
  id: Schema.refine<string, typeof Schema.String>;
56
188
  displayName: Schema.optional<Schema.SchemaClass<string, string, never>>;
57
189
  hidden: Schema.optional<Schema.Schema<string, string, never>>;
@@ -1,7 +1,19 @@
1
1
  import { Schema } from "effect";
2
2
  import { Expression } from "../../../../../share/expression.js";
3
3
  import { Locale } from "../../../../../share/locale.js";
4
+ import { ActionSchemaFields } from "../../../../actions/schema.js";
4
5
  import { commonFieldFields, derivedField, FieldOrientationSchema } from "../../../utils/common.js";
6
+ function AddonActions(configure) {
7
+ const { groups, items, ...rest } = ActionSchemaFields(configure).fields;
8
+ return Schema.Struct({
9
+ ...rest,
10
+ groups: Schema.optionalWith(groups, { default: () => [] }),
11
+ items: Schema.optionalWith(items, { default: () => [] })
12
+ }).annotations({
13
+ title: "\u8F93\u5165\u6846\u5185\u6309\u94AE",
14
+ description: "\u5728\u8F93\u5165\u6846\u53F3\u4FA7\u5185\u5D4C\u4E00\u7EC4\u64CD\u4F5C\u6309\u94AE"
15
+ });
16
+ }
5
17
  export const type = "com.shwfed.form.field.number";
6
18
  export const compatibilityDate = "2026-04-28";
7
19
  export const metadata = {
@@ -66,7 +78,8 @@ export function schema(configure) {
66
78
  max: Schema.optional(CelNumber.annotations({
67
79
  title: "\u6700\u5927\u503C",
68
80
  description: "\u5141\u8BB8\u8F93\u5165\u7684\u6700\u5927\u503C\u8868\u8FBE\u5F0F\uFF1B\u7559\u7A7A\u65F6\u4E0D\u9650\u5236\u4E0A\u9650"
69
- }))
81
+ })),
82
+ addon: Schema.optional(AddonActions(configure))
70
83
  }).annotations({
71
84
  title: "NumberField",
72
85
  description: "\u6570\u503C\u8F93\u5165"
@@ -32,9 +32,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
32
32
  readonly mode: "formula" | "prefill";
33
33
  readonly expression: string;
34
34
  } | undefined;
35
- readonly format?: string | undefined;
36
- readonly valueFormat?: string | undefined;
37
35
  readonly rangeSeparatorIcon?: string | undefined;
36
+ readonly format?: string | undefined;
38
37
  readonly startPlaceholder?: readonly [{
39
38
  readonly locale: "zh";
40
39
  readonly message: string;
@@ -49,6 +48,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
49
48
  readonly locale: "en" | "ja" | "ko";
50
49
  readonly message: string;
51
50
  }[]] | undefined;
51
+ readonly valueFormat?: string | undefined;
52
52
  readonly validations?: readonly {
53
53
  readonly message: readonly [{
54
54
  readonly locale: "zh";
@@ -103,9 +103,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
103
103
  readonly mode: "formula" | "prefill";
104
104
  readonly expression: string;
105
105
  } | undefined;
106
- readonly format?: string | undefined;
107
- readonly valueFormat?: string | undefined;
108
106
  readonly rangeSeparatorIcon?: string | undefined;
107
+ readonly format?: string | undefined;
109
108
  readonly startPlaceholder?: readonly [{
110
109
  readonly locale: "zh";
111
110
  readonly message: string;
@@ -120,6 +119,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
120
119
  readonly locale: "en" | "ja" | "ko";
121
120
  readonly message: string;
122
121
  }[]] | undefined;
122
+ readonly valueFormat?: string | undefined;
123
123
  readonly validations?: readonly {
124
124
  readonly message: readonly [{
125
125
  readonly locale: "zh";
@@ -32,9 +32,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
32
32
  readonly mode: "formula" | "prefill";
33
33
  readonly expression: string;
34
34
  } | undefined;
35
- readonly format?: string | undefined;
36
- readonly valueFormat?: string | undefined;
37
35
  readonly rangeSeparatorIcon?: string | undefined;
36
+ readonly format?: string | undefined;
38
37
  readonly startPlaceholder?: readonly [{
39
38
  readonly locale: "zh";
40
39
  readonly message: string;
@@ -49,6 +48,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
49
48
  readonly locale: "en" | "ja" | "ko";
50
49
  readonly message: string;
51
50
  }[]] | undefined;
51
+ readonly valueFormat?: string | undefined;
52
52
  readonly validations?: readonly {
53
53
  readonly message: readonly [{
54
54
  readonly locale: "zh";
@@ -103,9 +103,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
103
103
  readonly mode: "formula" | "prefill";
104
104
  readonly expression: string;
105
105
  } | undefined;
106
- readonly format?: string | undefined;
107
- readonly valueFormat?: string | undefined;
108
106
  readonly rangeSeparatorIcon?: string | undefined;
107
+ readonly format?: string | undefined;
109
108
  readonly startPlaceholder?: readonly [{
110
109
  readonly locale: "zh";
111
110
  readonly message: string;
@@ -120,6 +119,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
120
119
  readonly locale: "en" | "ja" | "ko";
121
120
  readonly message: string;
122
121
  }[]] | undefined;
122
+ readonly valueFormat?: string | undefined;
123
123
  readonly validations?: readonly {
124
124
  readonly message: readonly [{
125
125
  readonly locale: "zh";
@@ -53,9 +53,9 @@ 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 successMessage?: string | undefined;
57
56
  readonly accessor: string;
58
57
  readonly sortKey?: string | undefined;
58
+ readonly successMessage?: string | undefined;
59
59
  }) => any;
60
60
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
61
61
  "onUpdate:modelValue"?: ((value: {
@@ -108,9 +108,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
108
108
  readonly locale: "en" | "ja" | "ko";
109
109
  readonly message: string;
110
110
  }[]];
111
- readonly successMessage?: string | undefined;
112
111
  readonly accessor: string;
113
112
  readonly sortKey?: string | undefined;
113
+ readonly successMessage?: string | undefined;
114
114
  }) => any) | undefined;
115
115
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
116
116
  declare const _default: typeof __VLS_export;
@@ -53,9 +53,9 @@ 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 successMessage?: string | undefined;
57
56
  readonly accessor: string;
58
57
  readonly sortKey?: string | undefined;
58
+ readonly successMessage?: string | undefined;
59
59
  }) => any;
60
60
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
61
61
  "onUpdate:modelValue"?: ((value: {
@@ -108,9 +108,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
108
108
  readonly locale: "en" | "ja" | "ko";
109
109
  readonly message: string;
110
110
  }[]];
111
- readonly successMessage?: string | undefined;
112
111
  readonly accessor: string;
113
112
  readonly sortKey?: string | undefined;
113
+ readonly successMessage?: string | undefined;
114
114
  }) => any) | undefined;
115
115
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
116
116
  declare const _default: typeof __VLS_export;
@@ -67,9 +67,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
67
67
  readonly readonly?: string | undefined;
68
68
  readonly grow?: boolean | undefined;
69
69
  readonly enableSorting?: boolean | undefined;
70
- readonly successMessage?: string | undefined;
71
70
  readonly accessor: string;
72
71
  readonly sortKey?: string | undefined;
72
+ readonly successMessage?: string | undefined;
73
73
  }) => any;
74
74
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
75
75
  "onUpdate:modelValue"?: ((value: {
@@ -136,9 +136,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
136
136
  readonly readonly?: string | undefined;
137
137
  readonly grow?: boolean | undefined;
138
138
  readonly enableSorting?: boolean | undefined;
139
- readonly successMessage?: string | undefined;
140
139
  readonly accessor: string;
141
140
  readonly sortKey?: string | undefined;
141
+ readonly successMessage?: string | undefined;
142
142
  }) => any) | undefined;
143
143
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
144
144
  declare const _default: typeof __VLS_export;
@@ -67,9 +67,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
67
67
  readonly readonly?: string | undefined;
68
68
  readonly grow?: boolean | undefined;
69
69
  readonly enableSorting?: boolean | undefined;
70
- readonly successMessage?: string | undefined;
71
70
  readonly accessor: string;
72
71
  readonly sortKey?: string | undefined;
72
+ readonly successMessage?: string | undefined;
73
73
  }) => any;
74
74
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
75
75
  "onUpdate:modelValue"?: ((value: {
@@ -136,9 +136,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
136
136
  readonly readonly?: string | undefined;
137
137
  readonly grow?: boolean | undefined;
138
138
  readonly enableSorting?: boolean | undefined;
139
- readonly successMessage?: string | undefined;
140
139
  readonly accessor: string;
141
140
  readonly sortKey?: string | undefined;
141
+ readonly successMessage?: string | undefined;
142
142
  }) => any) | undefined;
143
143
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
144
144
  declare const _default: typeof __VLS_export;
@@ -53,9 +53,9 @@ 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 successMessage?: string | undefined;
57
56
  readonly accessor: string;
58
57
  readonly sortKey?: string | undefined;
58
+ readonly successMessage?: string | undefined;
59
59
  }) => any;
60
60
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
61
61
  "onUpdate:modelValue"?: ((value: {
@@ -108,9 +108,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
108
108
  readonly locale: "en" | "ja" | "ko";
109
109
  readonly message: string;
110
110
  }[]];
111
- readonly successMessage?: string | undefined;
112
111
  readonly accessor: string;
113
112
  readonly sortKey?: string | undefined;
113
+ readonly successMessage?: string | undefined;
114
114
  }) => any) | undefined;
115
115
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
116
116
  declare const _default: typeof __VLS_export;
@@ -53,9 +53,9 @@ 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 successMessage?: string | undefined;
57
56
  readonly accessor: string;
58
57
  readonly sortKey?: string | undefined;
58
+ readonly successMessage?: string | undefined;
59
59
  }) => any;
60
60
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
61
61
  "onUpdate:modelValue"?: ((value: {
@@ -108,9 +108,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
108
108
  readonly locale: "en" | "ja" | "ko";
109
109
  readonly message: string;
110
110
  }[]];
111
- readonly successMessage?: string | undefined;
112
111
  readonly accessor: string;
113
112
  readonly sortKey?: string | undefined;
113
+ readonly successMessage?: string | undefined;
114
114
  }) => any) | undefined;
115
115
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
116
116
  declare const _default: typeof __VLS_export;
@@ -67,9 +67,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
67
67
  readonly readonly?: string | undefined;
68
68
  readonly grow?: boolean | undefined;
69
69
  readonly enableSorting?: boolean | undefined;
70
- readonly successMessage?: string | undefined;
71
70
  readonly accessor: string;
72
71
  readonly sortKey?: string | undefined;
72
+ readonly successMessage?: string | undefined;
73
73
  }) => any;
74
74
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
75
75
  "onUpdate:modelValue"?: ((value: {
@@ -136,9 +136,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
136
136
  readonly readonly?: string | undefined;
137
137
  readonly grow?: boolean | undefined;
138
138
  readonly enableSorting?: boolean | undefined;
139
- readonly successMessage?: string | undefined;
140
139
  readonly accessor: string;
141
140
  readonly sortKey?: string | undefined;
141
+ readonly successMessage?: string | undefined;
142
142
  }) => any) | undefined;
143
143
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
144
144
  declare const _default: typeof __VLS_export;
@@ -67,9 +67,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
67
67
  readonly readonly?: string | undefined;
68
68
  readonly grow?: boolean | undefined;
69
69
  readonly enableSorting?: boolean | undefined;
70
- readonly successMessage?: string | undefined;
71
70
  readonly accessor: string;
72
71
  readonly sortKey?: string | undefined;
72
+ readonly successMessage?: string | undefined;
73
73
  }) => any;
74
74
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
75
75
  "onUpdate:modelValue"?: ((value: {
@@ -136,9 +136,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
136
136
  readonly readonly?: string | undefined;
137
137
  readonly grow?: boolean | undefined;
138
138
  readonly enableSorting?: boolean | undefined;
139
- readonly successMessage?: string | undefined;
140
139
  readonly accessor: string;
141
140
  readonly sortKey?: string | undefined;
141
+ readonly successMessage?: string | undefined;
142
142
  }) => any) | undefined;
143
143
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
144
144
  declare const _default: typeof __VLS_export;
@@ -82,9 +82,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
82
82
  };
83
83
  }[];
84
84
  };
85
- readonly successMessage?: string | undefined;
86
85
  readonly accessor: string;
87
86
  readonly sortKey?: string | undefined;
87
+ readonly successMessage?: string | undefined;
88
88
  }) => any;
89
89
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
90
90
  "onUpdate:modelValue"?: ((value: {
@@ -166,9 +166,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
166
166
  };
167
167
  }[];
168
168
  };
169
- readonly successMessage?: string | undefined;
170
169
  readonly accessor: string;
171
170
  readonly sortKey?: string | undefined;
171
+ readonly successMessage?: string | undefined;
172
172
  }) => any) | undefined;
173
173
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
174
174
  declare const _default: typeof __VLS_export;