@shwfed/config 2.12.5 → 2.12.7

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 (137) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +5 -0
  3. package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/runtime.vue +54 -50
  4. package/dist/runtime/components/config/index.vue +23 -3
  5. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.d.vue.ts +22 -22
  6. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue.d.ts +22 -22
  7. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.d.vue.ts +16 -16
  8. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.vue.d.ts +16 -16
  9. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.d.vue.ts +16 -16
  10. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.vue.d.ts +16 -16
  11. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +24 -24
  12. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +24 -24
  13. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.d.vue.ts +16 -16
  14. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue.d.ts +16 -16
  15. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +26 -26
  16. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +26 -26
  17. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.d.vue.ts +2 -2
  18. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.vue.d.ts +2 -2
  19. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.d.vue.ts +30 -28
  20. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue +38 -0
  21. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts +30 -28
  22. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/runtime.vue +11 -2
  23. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.d.ts +3 -0
  24. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.js +7 -0
  25. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.d.vue.ts +6 -6
  26. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.vue.d.ts +6 -6
  27. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.d.vue.ts +22 -22
  28. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.vue.d.ts +22 -22
  29. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.d.vue.ts +16 -16
  30. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.vue.d.ts +16 -16
  31. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +10 -10
  32. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +10 -10
  33. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/config.d.vue.ts +16 -16
  34. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/config.vue.d.ts +16 -16
  35. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.d.vue.ts +24 -24
  36. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.vue.d.ts +24 -24
  37. package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.d.vue.ts +16 -16
  38. package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.vue.d.ts +16 -16
  39. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +10 -10
  40. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +10 -10
  41. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +10 -10
  42. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +10 -10
  43. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +10 -10
  44. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +10 -10
  45. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +10 -10
  46. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +10 -10
  47. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +10 -10
  48. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +10 -10
  49. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +10 -10
  50. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +10 -10
  51. package/dist/runtime/components/sidebar/index.d.vue.ts +22 -3
  52. package/dist/runtime/components/sidebar/index.vue +66 -5
  53. package/dist/runtime/components/sidebar/index.vue.d.ts +22 -3
  54. package/dist/runtime/components/sidebar/node.d.vue.ts +1 -1
  55. package/dist/runtime/components/sidebar/node.vue +33 -13
  56. package/dist/runtime/components/sidebar/node.vue.d.ts +1 -1
  57. package/dist/runtime/components/sidebar/tree.vue +113 -83
  58. package/dist/runtime/components/sidebar/types.d.ts +8 -0
  59. package/dist/runtime/components/sidebar/types.js +1 -0
  60. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/runtime.vue +6 -73
  61. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
  62. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
  63. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/config.vue +44 -0
  64. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/runtime.vue +8 -2
  65. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.d.ts +3 -0
  66. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.js +7 -0
  67. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +6 -6
  68. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +6 -6
  69. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.d.vue.ts +2 -2
  70. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue.d.ts +2 -2
  71. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
  72. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
  73. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +6 -6
  74. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +6 -6
  75. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.d.vue.ts +2 -2
  76. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +2 -2
  77. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
  78. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
  79. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +2 -2
  80. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +2 -2
  81. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
  82. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
  83. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +2 -2
  84. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +2 -2
  85. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +10 -10
  86. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +10 -10
  87. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +10 -10
  88. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +10 -10
  89. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
  90. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
  91. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
  92. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
  93. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +10 -10
  94. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +10 -10
  95. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +10 -10
  96. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +10 -10
  97. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
  98. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
  99. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
  100. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
  101. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +10 -10
  102. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +10 -10
  103. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +10 -10
  104. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +10 -10
  105. package/dist/runtime/components/table/utils/row-reorder.d.ts +3 -2
  106. package/dist/runtime/components/table/utils/row-reorder.js +1 -12
  107. package/dist/runtime/components/tabs/index.d.vue.ts +9 -0
  108. package/dist/runtime/components/tabs/index.vue +92 -0
  109. package/dist/runtime/components/tabs/index.vue.d.ts +9 -0
  110. package/dist/runtime/components/tabs/tab.d.vue.ts +22 -0
  111. package/dist/runtime/components/tabs/tab.vue +85 -0
  112. package/dist/runtime/components/tabs/tab.vue.d.ts +22 -0
  113. package/dist/runtime/components/tabs/types.d.ts +19 -0
  114. package/dist/runtime/components/tabs/types.js +0 -0
  115. package/dist/runtime/components/tabs/use-reorder.d.ts +10 -0
  116. package/dist/runtime/components/tabs/use-reorder.js +90 -0
  117. package/dist/runtime/components/tabs/use-tabs.d.ts +46 -0
  118. package/dist/runtime/components/tabs/use-tabs.js +101 -0
  119. package/dist/runtime/components/ui/date-picker/DatePickerInput.d.vue.ts +1 -1
  120. package/dist/runtime/components/ui/date-picker/DatePickerInput.vue.d.ts +1 -1
  121. package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.d.vue.ts +1 -1
  122. package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.vue.d.ts +1 -1
  123. package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.d.vue.ts +1 -1
  124. package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.vue.d.ts +1 -1
  125. package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.d.vue.ts +2 -2
  126. package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.vue.d.ts +2 -2
  127. package/dist/runtime/components/ui/sidebar/SidebarMenuAction.vue +1 -1
  128. package/dist/runtime/components/ui/sidebar/index.js +2 -2
  129. package/dist/runtime/share/number-format.d.ts +7 -0
  130. package/dist/runtime/share/number-format.js +72 -0
  131. package/dist/runtime/share/reorder.d.ts +2 -0
  132. package/dist/runtime/share/reorder.js +12 -0
  133. package/dist/runtime/utils/nav-registry.d.ts +19 -0
  134. package/dist/runtime/utils/nav-registry.js +14 -0
  135. package/dist/runtime/utils/page-title-registry.d.ts +3 -0
  136. package/dist/runtime/utils/page-title-registry.js +11 -0
  137. package/package.json +1 -1
@@ -42,9 +42,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
42
42
  readonly mode: "formula" | "prefill";
43
43
  readonly expression: string;
44
44
  } | undefined;
45
- readonly precision?: number | undefined;
46
- readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
47
- readonly valueAsString?: boolean | undefined;
45
+ readonly validations?: readonly {
46
+ readonly message: readonly [{
47
+ readonly locale: "zh";
48
+ readonly message: string;
49
+ }, ...{
50
+ readonly locale: "en" | "ja" | "ko";
51
+ readonly message: string;
52
+ }[]];
53
+ readonly warning?: boolean | undefined;
54
+ readonly when: string;
55
+ }[] | undefined;
48
56
  readonly addon?: {
49
57
  readonly size: "default" | "sm" | "xs";
50
58
  readonly style?: string | undefined;
@@ -112,17 +120,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
112
120
  readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
113
121
  }[];
114
122
  } | undefined;
115
- readonly validations?: readonly {
116
- readonly message: readonly [{
117
- readonly locale: "zh";
118
- readonly message: string;
119
- }, ...{
120
- readonly locale: "en" | "ja" | "ko";
121
- readonly message: string;
122
- }[]];
123
- readonly warning?: boolean | undefined;
124
- readonly when: string;
125
- }[] | undefined;
123
+ readonly precision?: number | undefined;
124
+ readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
125
+ readonly valueAsString?: boolean | undefined;
126
+ readonly displayMode: "plain" | "uppercaseChinese" | "monoThousand";
126
127
  }) => any;
127
128
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
128
129
  "onUpdate:modelValue"?: ((value: {
@@ -164,9 +165,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
164
165
  readonly mode: "formula" | "prefill";
165
166
  readonly expression: string;
166
167
  } | undefined;
167
- readonly precision?: number | undefined;
168
- readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
169
- readonly valueAsString?: boolean | undefined;
168
+ readonly validations?: readonly {
169
+ readonly message: readonly [{
170
+ readonly locale: "zh";
171
+ readonly message: string;
172
+ }, ...{
173
+ readonly locale: "en" | "ja" | "ko";
174
+ readonly message: string;
175
+ }[]];
176
+ readonly warning?: boolean | undefined;
177
+ readonly when: string;
178
+ }[] | undefined;
170
179
  readonly addon?: {
171
180
  readonly size: "default" | "sm" | "xs";
172
181
  readonly style?: string | undefined;
@@ -234,17 +243,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
234
243
  readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
235
244
  }[];
236
245
  } | undefined;
237
- readonly validations?: readonly {
238
- readonly message: readonly [{
239
- readonly locale: "zh";
240
- readonly message: string;
241
- }, ...{
242
- readonly locale: "en" | "ja" | "ko";
243
- readonly message: string;
244
- }[]];
245
- readonly warning?: boolean | undefined;
246
- readonly when: string;
247
- }[] | undefined;
246
+ readonly precision?: number | undefined;
247
+ readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
248
+ readonly valueAsString?: boolean | undefined;
249
+ readonly displayMode: "plain" | "uppercaseChinese" | "monoThousand";
248
250
  }) => any) | undefined;
249
251
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
250
252
  declare const _default: typeof __VLS_export;
@@ -87,6 +87,11 @@ const ROUNDING_MODE_OPTIONS = [
87
87
  { value: "floor", label: "\u5411\u4E0B\u53D6\u6574" },
88
88
  { value: "ceil", label: "\u5411\u4E0A\u53D6\u6574" }
89
89
  ];
90
+ const DISPLAY_MODE_OPTIONS = [
91
+ { value: "plain", label: "\u6570\u503C" },
92
+ { value: "uppercaseChinese", label: "\u4E2D\u6587\u5927\u5199" },
93
+ { value: "monoThousand", label: "\u7B49\u5BBD\u5B57\u4F53\u52A0\u5343\u5206\u4F4D" }
94
+ ];
90
95
  const pathText = computed({
91
96
  get: () => value.value.binding ?? "",
92
97
  set: (next) => {
@@ -364,6 +369,39 @@ function onValueAsStringChange(next) {
364
369
  </Field>
365
370
  </div>
366
371
 
372
+ <Field orientation="vertical">
373
+ <FieldLabel class="text-xs text-zinc-500">
374
+ <template
375
+ v-if="fieldDescription('displayMode')"
376
+ #tooltip
377
+ >
378
+ <Markdown
379
+ :source="fieldDescription('displayMode')"
380
+ block
381
+ class="prose prose-sm prose-zinc"
382
+ />
383
+ </template>
384
+ {{ fieldTitle("displayMode") }}
385
+ </FieldLabel>
386
+ <Select
387
+ :model-value="value.displayMode ?? 'plain'"
388
+ @update:model-value="(v) => value = { ...value, displayMode: v }"
389
+ >
390
+ <SelectTrigger class="w-full">
391
+ <SelectValue />
392
+ </SelectTrigger>
393
+ <SelectContent>
394
+ <SelectItem
395
+ v-for="opt in DISPLAY_MODE_OPTIONS"
396
+ :key="opt.value"
397
+ :value="opt.value"
398
+ >
399
+ {{ opt.label }}
400
+ </SelectItem>
401
+ </SelectContent>
402
+ </Select>
403
+ </Field>
404
+
367
405
  <Field orientation="vertical">
368
406
  <FieldLabel class="text-xs text-zinc-500">
369
407
  <template
@@ -42,9 +42,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
42
42
  readonly mode: "formula" | "prefill";
43
43
  readonly expression: string;
44
44
  } | undefined;
45
- readonly precision?: number | undefined;
46
- readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
47
- readonly valueAsString?: boolean | undefined;
45
+ readonly validations?: readonly {
46
+ readonly message: readonly [{
47
+ readonly locale: "zh";
48
+ readonly message: string;
49
+ }, ...{
50
+ readonly locale: "en" | "ja" | "ko";
51
+ readonly message: string;
52
+ }[]];
53
+ readonly warning?: boolean | undefined;
54
+ readonly when: string;
55
+ }[] | undefined;
48
56
  readonly addon?: {
49
57
  readonly size: "default" | "sm" | "xs";
50
58
  readonly style?: string | undefined;
@@ -112,17 +120,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
112
120
  readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
113
121
  }[];
114
122
  } | undefined;
115
- readonly validations?: readonly {
116
- readonly message: readonly [{
117
- readonly locale: "zh";
118
- readonly message: string;
119
- }, ...{
120
- readonly locale: "en" | "ja" | "ko";
121
- readonly message: string;
122
- }[]];
123
- readonly warning?: boolean | undefined;
124
- readonly when: string;
125
- }[] | undefined;
123
+ readonly precision?: number | undefined;
124
+ readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
125
+ readonly valueAsString?: boolean | undefined;
126
+ readonly displayMode: "plain" | "uppercaseChinese" | "monoThousand";
126
127
  }) => any;
127
128
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
128
129
  "onUpdate:modelValue"?: ((value: {
@@ -164,9 +165,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
164
165
  readonly mode: "formula" | "prefill";
165
166
  readonly expression: string;
166
167
  } | undefined;
167
- readonly precision?: number | undefined;
168
- readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
169
- readonly valueAsString?: boolean | undefined;
168
+ readonly validations?: readonly {
169
+ readonly message: readonly [{
170
+ readonly locale: "zh";
171
+ readonly message: string;
172
+ }, ...{
173
+ readonly locale: "en" | "ja" | "ko";
174
+ readonly message: string;
175
+ }[]];
176
+ readonly warning?: boolean | undefined;
177
+ readonly when: string;
178
+ }[] | undefined;
170
179
  readonly addon?: {
171
180
  readonly size: "default" | "sm" | "xs";
172
181
  readonly style?: string | undefined;
@@ -234,17 +243,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
234
243
  readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
235
244
  }[];
236
245
  } | undefined;
237
- readonly validations?: readonly {
238
- readonly message: readonly [{
239
- readonly locale: "zh";
240
- readonly message: string;
241
- }, ...{
242
- readonly locale: "en" | "ja" | "ko";
243
- readonly message: string;
244
- }[]];
245
- readonly warning?: boolean | undefined;
246
- readonly when: string;
247
- }[] | undefined;
246
+ readonly precision?: number | undefined;
247
+ readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
248
+ readonly valueAsString?: boolean | undefined;
249
+ readonly displayMode: "plain" | "uppercaseChinese" | "monoThousand";
248
250
  }) => any) | undefined;
249
251
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
250
252
  declare const _default: typeof __VLS_export;
@@ -7,6 +7,7 @@ import { cel as _rawCel } from "../../../../../utils/cel";
7
7
  import { celBindings, injectCELContext } from "../../../../../utils/cel-context";
8
8
  import { getLocalizedText } from "../../../../../share/locale";
9
9
  import { interpolateMarkdown } from "../../../../table/utils/runtime";
10
+ import { formatNumberDisplay } from "../../../../../share/number-format";
10
11
  import { Field, FieldLabel, FieldMessages } from "../../../../ui/field";
11
12
  import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupNumberField } from "../../../../ui/input-group";
12
13
  import { Markdown } from "../../../../ui/markdown";
@@ -85,6 +86,11 @@ const { draft, commit } = useFieldValue({
85
86
  return props.config.valueAsString ? String(next) : next;
86
87
  }
87
88
  });
89
+ const readonlyDisplay = computed(() => formatNumberDisplay(draft.value, {
90
+ displayMode: props.config.displayMode,
91
+ precision: props.config.precision,
92
+ roundingMode: props.config.roundingMode
93
+ }));
88
94
  function applyRounding(n, precision, mode) {
89
95
  const factor = 10 ** precision;
90
96
  switch (mode) {
@@ -155,9 +161,12 @@ async function onBlur() {
155
161
  <div
156
162
  v-if="effectiveReadonly"
157
163
  class="min-h-9 py-1.5 text-sm"
158
- :class="draft != null ? 'text-zinc-700' : 'font-mono text-zinc-300 select-none'"
164
+ :class="[
165
+ draft != null ? 'text-zinc-700' : 'font-mono text-zinc-300 select-none',
166
+ draft != null && config.displayMode === 'monoThousand' && 'font-mono'
167
+ ]"
159
168
  >
160
- {{ draft ?? "-" }}
169
+ {{ readonlyDisplay }}
161
170
  </div>
162
171
  <InputGroup
163
172
  v-else
@@ -76,6 +76,9 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
76
76
  valueAsString: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
77
77
  min: Schema.optional<Schema.Schema<string, string, never>>;
78
78
  max: Schema.optional<Schema.Schema<string, string, never>>;
79
+ displayMode: Schema.optionalWith<Schema.Literal<["plain", "uppercaseChinese", "monoThousand"]>, {
80
+ default: () => "plain";
81
+ }>;
79
82
  addon: Schema.optional<Schema.Struct<{
80
83
  groups: Schema.optionalWith<Schema.Array$<Schema.Struct<{
81
84
  id: Schema.refine<string, typeof Schema.String>;
@@ -79,6 +79,13 @@ export function schema(configure) {
79
79
  title: "\u6700\u5927\u503C",
80
80
  description: "\u5141\u8BB8\u8F93\u5165\u7684\u6700\u5927\u503C\u8868\u8FBE\u5F0F\uFF1B\u7559\u7A7A\u65F6\u4E0D\u9650\u5236\u4E0A\u9650"
81
81
  })),
82
+ displayMode: Schema.optionalWith(
83
+ Schema.Literal("plain", "uppercaseChinese", "monoThousand").annotations({
84
+ title: "\u6A21\u5F0F",
85
+ description: "\u53EA\u8BFB\u5C55\u793A\u65F6\u7684\u6A21\u5F0F\uFF1A\u6570\u503C\uFF08\u539F\u6837\uFF09\u3001\u4E2D\u6587\u5927\u5199\uFF08\u5982 4200 \u2192 `\u8086\u4EDF\u8D30\u4F70\u96F6\u62FE`\uFF09\u3001\u7B49\u5BBD\u5B57\u4F53\u52A0\u5343\u5206\u4F4D\uFF08\u5982 `4,200`\uFF09\uFF1B\u7F16\u8F91\u6001\u4E0D\u53D7\u5F71\u54CD"
86
+ }),
87
+ { default: () => "plain" }
88
+ ),
82
89
  // `Schema.optional` rebuilds the struct's union member, and because the
83
90
  // `optionalWith`-default fields make `AddonActions` a `Transformation`, the
84
91
  // inner struct's `title`/`description` don't survive onto the rebuilt
@@ -50,9 +50,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
50
50
  readonly locale: "en" | "ja" | "ko";
51
51
  readonly message: string;
52
52
  }[]] | undefined;
53
- readonly precision?: number | undefined;
54
- readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
55
- readonly valueAsString?: boolean | undefined;
56
53
  readonly validations?: readonly {
57
54
  readonly message: readonly [{
58
55
  readonly locale: "zh";
@@ -64,6 +61,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
64
61
  readonly warning?: boolean | undefined;
65
62
  readonly when: string;
66
63
  }[] | undefined;
64
+ readonly precision?: number | undefined;
65
+ readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
66
+ readonly valueAsString?: boolean | undefined;
67
67
  }) => any;
68
68
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
69
69
  "onUpdate:modelValue"?: ((value: {
@@ -113,9 +113,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
113
113
  readonly locale: "en" | "ja" | "ko";
114
114
  readonly message: string;
115
115
  }[]] | undefined;
116
- readonly precision?: number | undefined;
117
- readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
118
- readonly valueAsString?: boolean | undefined;
119
116
  readonly validations?: readonly {
120
117
  readonly message: readonly [{
121
118
  readonly locale: "zh";
@@ -127,6 +124,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
127
124
  readonly warning?: boolean | undefined;
128
125
  readonly when: string;
129
126
  }[] | undefined;
127
+ readonly precision?: number | undefined;
128
+ readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
129
+ readonly valueAsString?: boolean | undefined;
130
130
  }) => any) | undefined;
131
131
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
132
132
  declare const _default: typeof __VLS_export;
@@ -50,9 +50,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
50
50
  readonly locale: "en" | "ja" | "ko";
51
51
  readonly message: string;
52
52
  }[]] | undefined;
53
- readonly precision?: number | undefined;
54
- readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
55
- readonly valueAsString?: boolean | undefined;
56
53
  readonly validations?: readonly {
57
54
  readonly message: readonly [{
58
55
  readonly locale: "zh";
@@ -64,6 +61,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
64
61
  readonly warning?: boolean | undefined;
65
62
  readonly when: string;
66
63
  }[] | undefined;
64
+ readonly precision?: number | undefined;
65
+ readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
66
+ readonly valueAsString?: boolean | undefined;
67
67
  }) => any;
68
68
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
69
69
  "onUpdate:modelValue"?: ((value: {
@@ -113,9 +113,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
113
113
  readonly locale: "en" | "ja" | "ko";
114
114
  readonly message: string;
115
115
  }[]] | undefined;
116
- readonly precision?: number | undefined;
117
- readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
118
- readonly valueAsString?: boolean | undefined;
119
116
  readonly validations?: readonly {
120
117
  readonly message: readonly [{
121
118
  readonly locale: "zh";
@@ -127,6 +124,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
127
124
  readonly warning?: boolean | undefined;
128
125
  readonly when: string;
129
126
  }[] | undefined;
127
+ readonly precision?: number | undefined;
128
+ readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
129
+ readonly valueAsString?: boolean | undefined;
130
130
  }) => any) | undefined;
131
131
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
132
132
  declare const _default: typeof __VLS_export;
@@ -31,6 +31,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
31
31
  readonly mode: "formula" | "prefill";
32
32
  readonly expression: string;
33
33
  } | undefined;
34
+ readonly validations?: readonly {
35
+ readonly message: readonly [{
36
+ readonly locale: "zh";
37
+ readonly message: string;
38
+ }, ...{
39
+ readonly locale: "en" | "ja" | "ko";
40
+ readonly message: string;
41
+ }[]];
42
+ readonly warning?: boolean | undefined;
43
+ readonly when: string;
44
+ }[] | undefined;
34
45
  readonly trueLabel?: readonly [{
35
46
  readonly locale: "zh";
36
47
  readonly message: string;
@@ -45,17 +56,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
45
56
  readonly locale: "en" | "ja" | "ko";
46
57
  readonly message: string;
47
58
  }[]] | undefined;
48
- readonly validations?: readonly {
49
- readonly message: readonly [{
50
- readonly locale: "zh";
51
- readonly message: string;
52
- }, ...{
53
- readonly locale: "en" | "ja" | "ko";
54
- readonly message: string;
55
- }[]];
56
- readonly warning?: boolean | undefined;
57
- readonly when: string;
58
- }[] | undefined;
59
59
  }) => any;
60
60
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
61
61
  "onUpdate:modelValue"?: ((value: {
@@ -86,6 +86,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
86
86
  readonly mode: "formula" | "prefill";
87
87
  readonly expression: string;
88
88
  } | undefined;
89
+ readonly validations?: readonly {
90
+ readonly message: readonly [{
91
+ readonly locale: "zh";
92
+ readonly message: string;
93
+ }, ...{
94
+ readonly locale: "en" | "ja" | "ko";
95
+ readonly message: string;
96
+ }[]];
97
+ readonly warning?: boolean | undefined;
98
+ readonly when: string;
99
+ }[] | undefined;
89
100
  readonly trueLabel?: readonly [{
90
101
  readonly locale: "zh";
91
102
  readonly message: string;
@@ -100,17 +111,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
100
111
  readonly locale: "en" | "ja" | "ko";
101
112
  readonly message: string;
102
113
  }[]] | undefined;
103
- readonly validations?: readonly {
104
- readonly message: readonly [{
105
- readonly locale: "zh";
106
- readonly message: string;
107
- }, ...{
108
- readonly locale: "en" | "ja" | "ko";
109
- readonly message: string;
110
- }[]];
111
- readonly warning?: boolean | undefined;
112
- readonly when: string;
113
- }[] | undefined;
114
114
  }) => any) | undefined;
115
115
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
116
116
  declare const _default: typeof __VLS_export;
@@ -31,6 +31,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
31
31
  readonly mode: "formula" | "prefill";
32
32
  readonly expression: string;
33
33
  } | undefined;
34
+ readonly validations?: readonly {
35
+ readonly message: readonly [{
36
+ readonly locale: "zh";
37
+ readonly message: string;
38
+ }, ...{
39
+ readonly locale: "en" | "ja" | "ko";
40
+ readonly message: string;
41
+ }[]];
42
+ readonly warning?: boolean | undefined;
43
+ readonly when: string;
44
+ }[] | undefined;
34
45
  readonly trueLabel?: readonly [{
35
46
  readonly locale: "zh";
36
47
  readonly message: string;
@@ -45,17 +56,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
45
56
  readonly locale: "en" | "ja" | "ko";
46
57
  readonly message: string;
47
58
  }[]] | undefined;
48
- readonly validations?: readonly {
49
- readonly message: readonly [{
50
- readonly locale: "zh";
51
- readonly message: string;
52
- }, ...{
53
- readonly locale: "en" | "ja" | "ko";
54
- readonly message: string;
55
- }[]];
56
- readonly warning?: boolean | undefined;
57
- readonly when: string;
58
- }[] | undefined;
59
59
  }) => any;
60
60
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
61
61
  "onUpdate:modelValue"?: ((value: {
@@ -86,6 +86,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
86
86
  readonly mode: "formula" | "prefill";
87
87
  readonly expression: string;
88
88
  } | undefined;
89
+ readonly validations?: readonly {
90
+ readonly message: readonly [{
91
+ readonly locale: "zh";
92
+ readonly message: string;
93
+ }, ...{
94
+ readonly locale: "en" | "ja" | "ko";
95
+ readonly message: string;
96
+ }[]];
97
+ readonly warning?: boolean | undefined;
98
+ readonly when: string;
99
+ }[] | undefined;
89
100
  readonly trueLabel?: readonly [{
90
101
  readonly locale: "zh";
91
102
  readonly message: string;
@@ -100,17 +111,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
100
111
  readonly locale: "en" | "ja" | "ko";
101
112
  readonly message: string;
102
113
  }[]] | undefined;
103
- readonly validations?: readonly {
104
- readonly message: readonly [{
105
- readonly locale: "zh";
106
- readonly message: string;
107
- }, ...{
108
- readonly locale: "en" | "ja" | "ko";
109
- readonly message: string;
110
- }[]];
111
- readonly warning?: boolean | undefined;
112
- readonly when: string;
113
- }[] | undefined;
114
114
  }) => any) | undefined;
115
115
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
116
116
  declare const _default: typeof __VLS_export;
@@ -41,14 +41,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
41
41
  readonly mode: "formula" | "prefill";
42
42
  readonly expression: string;
43
43
  } | undefined;
44
- readonly optionValue: string;
45
- readonly optionLabel: readonly [{
46
- readonly locale: "zh";
47
- readonly message: string;
48
- }, ...{
49
- readonly locale: "en" | "ja" | "ko";
50
- readonly message: string;
51
- }[]];
52
44
  readonly validations?: readonly {
53
45
  readonly message: readonly [{
54
46
  readonly locale: "zh";
@@ -60,6 +52,14 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
60
52
  readonly warning?: boolean | undefined;
61
53
  readonly when: string;
62
54
  }[] | undefined;
55
+ readonly optionValue: string;
56
+ readonly optionLabel: readonly [{
57
+ readonly locale: "zh";
58
+ readonly message: string;
59
+ }, ...{
60
+ readonly locale: "en" | "ja" | "ko";
61
+ readonly message: string;
62
+ }[]];
63
63
  }) => any;
64
64
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
65
65
  "onUpdate:modelValue"?: ((value: {
@@ -100,14 +100,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
100
100
  readonly mode: "formula" | "prefill";
101
101
  readonly expression: string;
102
102
  } | undefined;
103
- readonly optionValue: string;
104
- readonly optionLabel: readonly [{
105
- readonly locale: "zh";
106
- readonly message: string;
107
- }, ...{
108
- readonly locale: "en" | "ja" | "ko";
109
- readonly message: string;
110
- }[]];
111
103
  readonly validations?: readonly {
112
104
  readonly message: readonly [{
113
105
  readonly locale: "zh";
@@ -119,6 +111,14 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
119
111
  readonly warning?: boolean | undefined;
120
112
  readonly when: string;
121
113
  }[] | undefined;
114
+ readonly optionValue: string;
115
+ readonly optionLabel: readonly [{
116
+ readonly locale: "zh";
117
+ readonly message: string;
118
+ }, ...{
119
+ readonly locale: "en" | "ja" | "ko";
120
+ readonly message: string;
121
+ }[]];
122
122
  }) => any) | undefined;
123
123
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
124
124
  declare const _default: typeof __VLS_export;
@@ -41,14 +41,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
41
41
  readonly mode: "formula" | "prefill";
42
42
  readonly expression: string;
43
43
  } | undefined;
44
- readonly optionValue: string;
45
- readonly optionLabel: readonly [{
46
- readonly locale: "zh";
47
- readonly message: string;
48
- }, ...{
49
- readonly locale: "en" | "ja" | "ko";
50
- readonly message: string;
51
- }[]];
52
44
  readonly validations?: readonly {
53
45
  readonly message: readonly [{
54
46
  readonly locale: "zh";
@@ -60,6 +52,14 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
60
52
  readonly warning?: boolean | undefined;
61
53
  readonly when: string;
62
54
  }[] | undefined;
55
+ readonly optionValue: string;
56
+ readonly optionLabel: readonly [{
57
+ readonly locale: "zh";
58
+ readonly message: string;
59
+ }, ...{
60
+ readonly locale: "en" | "ja" | "ko";
61
+ readonly message: string;
62
+ }[]];
63
63
  }) => any;
64
64
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
65
65
  "onUpdate:modelValue"?: ((value: {
@@ -100,14 +100,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
100
100
  readonly mode: "formula" | "prefill";
101
101
  readonly expression: string;
102
102
  } | undefined;
103
- readonly optionValue: string;
104
- readonly optionLabel: readonly [{
105
- readonly locale: "zh";
106
- readonly message: string;
107
- }, ...{
108
- readonly locale: "en" | "ja" | "ko";
109
- readonly message: string;
110
- }[]];
111
103
  readonly validations?: readonly {
112
104
  readonly message: readonly [{
113
105
  readonly locale: "zh";
@@ -119,6 +111,14 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
119
111
  readonly warning?: boolean | undefined;
120
112
  readonly when: string;
121
113
  }[] | undefined;
114
+ readonly optionValue: string;
115
+ readonly optionLabel: readonly [{
116
+ readonly locale: "zh";
117
+ readonly message: string;
118
+ }, ...{
119
+ readonly locale: "en" | "ja" | "ko";
120
+ readonly message: string;
121
+ }[]];
122
122
  }) => any) | undefined;
123
123
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
124
124
  declare const _default: typeof __VLS_export;