@shwfed/config 2.5.0 → 2.5.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 (115) hide show
  1. package/dist/mcp.mjs +135 -21
  2. package/dist/module.json +1 -1
  3. package/dist/preview/assets/{config-E-DM6b5t.js → config-BHInx1QR.js} +1 -1
  4. package/dist/preview/assets/{config-CK011_jJ.js → config-BVTakYXq.js} +1 -1
  5. package/dist/preview/assets/{config-C_bBX0wD.js → config-Bo8qCYUr.js} +1 -1
  6. package/dist/preview/assets/{config-Dx0zHfGt.js → config-CMWb8uI8.js} +1 -1
  7. package/dist/preview/assets/{config-DYL6kHr3.js → config-CoykdrWz.js} +1 -1
  8. package/dist/preview/assets/{config-Cbn8o9BY.js → config-D9Igjtte.js} +1 -1
  9. package/dist/preview/assets/{config-dwcdYHd4.js → config-DLuQtN-6.js} +1 -1
  10. package/dist/preview/assets/{config-BkytEQN5.js → config-DO6VRND9.js} +1 -1
  11. package/dist/preview/assets/{config-PjseWUbC.js → config-Du8jTCck.js} +1 -1
  12. package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-uJFJXxli.js → definition.vue_vue_type_script_setup_true_lang-CjPPVjHf.js} +1 -1
  13. package/dist/preview/assets/{index-x-77enex.js → index-CLhRphC4.js} +102 -102
  14. package/dist/preview/assets/index-DRXgXfoM.js +1 -0
  15. package/dist/preview/assets/{index-7MVXgV5n.css → index-nvAUAYGM.css} +1 -1
  16. package/dist/preview/assets/{runtime-CHLboM_z.js → runtime-BVShchDS.js} +1 -1
  17. package/dist/preview/assets/{runtime-DJHpCLnr.js → runtime-BnXLPPWc.js} +1 -1
  18. package/dist/preview/assets/{runtime-DjpjaNec.js → runtime-Bs_EtAsE.js} +1 -1
  19. package/dist/preview/assets/{runtime-CeHdesjP.js → runtime-CCBYA0xX.js} +1 -1
  20. package/dist/preview/assets/{runtime-ZQryOEKm.js → runtime-Cxl0E6Hg.js} +1 -1
  21. package/dist/preview/assets/{runtime-D4_9FCLy.js → runtime-D7cNZpnE.js} +1 -1
  22. package/dist/preview/assets/{runtime-DKq86fZU.js → runtime-DTC0oZPz.js} +1 -1
  23. package/dist/preview/assets/{runtime-DHBTDws7.js → runtime-as-8tVjx.js} +1 -1
  24. package/dist/preview/assets/{runtime-BRMGkqSr.js → runtime-ePHYJvDG.js} +1 -1
  25. package/dist/preview/index.html +2 -2
  26. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +2 -2
  27. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +2 -2
  28. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.d.vue.ts +2 -2
  29. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue.d.ts +2 -2
  30. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +2 -2
  31. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +2 -2
  32. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +20 -20
  33. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +20 -20
  34. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +20 -20
  35. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +20 -20
  36. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +20 -20
  37. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +20 -20
  38. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +20 -20
  39. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +20 -20
  40. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +20 -20
  41. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +20 -20
  42. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +20 -20
  43. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +20 -20
  44. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +20 -20
  45. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +20 -20
  46. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.d.ts +1 -0
  47. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.js +8 -0
  48. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/config.vue +15 -9
  49. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.d.ts +1 -0
  50. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.js +8 -0
  51. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/config.vue +20 -10
  52. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.d.ts +1 -0
  53. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.js +7 -0
  54. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/config.vue +19 -8
  55. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.d.ts +1 -0
  56. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.js +7 -0
  57. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/config.vue +21 -14
  58. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.d.ts +1 -0
  59. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.js +8 -0
  60. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/schema.d.ts +1 -0
  61. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/schema.js +5 -0
  62. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/config.vue +21 -11
  63. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.d.ts +1 -0
  64. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.js +7 -0
  65. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/config.vue +1 -0
  66. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/config.vue +1 -0
  67. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.d.ts +1 -0
  68. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.js +7 -0
  69. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.d.ts +1 -0
  70. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.js +7 -0
  71. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.d.ts +1 -0
  72. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.js +7 -0
  73. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.d.ts +1 -0
  74. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.js +7 -0
  75. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +6 -6
  76. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue +1 -0
  77. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +6 -6
  78. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.d.vue.ts +4 -4
  79. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue.d.ts +4 -4
  80. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +6 -6
  81. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue +1 -0
  82. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +6 -6
  83. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.d.vue.ts +4 -4
  84. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +4 -4
  85. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
  86. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
  87. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +6 -6
  88. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +6 -6
  89. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
  90. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
  91. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +6 -6
  92. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +6 -6
  93. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +6 -6
  94. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +6 -6
  95. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +4 -4
  96. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +4 -4
  97. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +4 -4
  98. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +4 -4
  99. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.d.ts +1 -0
  100. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.js +8 -0
  101. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +4 -4
  102. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +4 -4
  103. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.d.ts +1 -0
  104. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.js +8 -0
  105. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +6 -6
  106. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +6 -6
  107. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/schema.js +3 -0
  108. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +4 -4
  109. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +4 -4
  110. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/schema.js +3 -0
  111. package/dist/runtime/components/table/config.vue +4 -58
  112. package/dist/runtime/components/table/utils/resolve.d.ts +14 -0
  113. package/dist/runtime/components/table/utils/resolve.js +2 -1
  114. package/package.json +1 -1
  115. package/dist/preview/assets/index-CmPiZG_4.js +0 -1
@@ -10,6 +10,7 @@ import {
10
10
  InputGroup,
11
11
  InputGroupAddon,
12
12
  InputGroupButton,
13
+ InputGroupInput,
13
14
  InputGroupNumberField
14
15
  } from "../../../../ui/input-group";
15
16
  import {
@@ -49,8 +50,12 @@ const DISPLAY_MODE_OPTIONS = [
49
50
  const copyExpressionModel = computed({
50
51
  get: () => value.value.copyExpression ?? "",
51
52
  set: (v) => {
52
- if (v === "") delete value.value.copyExpression;
53
- else value.value.copyExpression = v;
53
+ if (v === "") {
54
+ const { copyExpression: _drop, ...rest } = value.value;
55
+ value.value = rest;
56
+ } else {
57
+ value.value = { ...value.value, copyExpression: v };
58
+ }
54
59
  }
55
60
  });
56
61
  </script>
@@ -72,7 +77,10 @@ const copyExpressionModel = computed({
72
77
  </template>
73
78
  {{ fieldTitle("title") }}
74
79
  </FieldLabel>
75
- <Locale v-model="value.title" />
80
+ <Locale
81
+ :model-value="value.title"
82
+ @update:model-value="(v) => value = { ...value, title: v }"
83
+ />
76
84
  </Field>
77
85
  <Field orientation="vertical">
78
86
  <FieldLabel class="text-xs text-zinc-500">
@@ -89,8 +97,9 @@ const copyExpressionModel = computed({
89
97
  {{ fieldTitle("tooltip") }}
90
98
  </FieldLabel>
91
99
  <Locale
92
- v-model="value.tooltip"
100
+ :model-value="value.tooltip"
93
101
  markdown
102
+ @update:model-value="(v) => value = { ...value, tooltip: v }"
94
103
  />
95
104
  </Field>
96
105
  </div>
@@ -110,9 +119,10 @@ const copyExpressionModel = computed({
110
119
  {{ fieldTitle("accessor") }}
111
120
  </FieldLabel>
112
121
  <Input
113
- v-model="value.accessor"
122
+ :model-value="value.accessor"
114
123
  placeholder="如 row.user.name"
115
124
  class="font-mono text-xs"
125
+ @update:model-value="(v) => value = { ...value, accessor: v }"
116
126
  />
117
127
  </Field>
118
128
  <Field orientation="vertical">
@@ -145,7 +155,7 @@ const copyExpressionModel = computed({
145
155
  <DropdownMenuItem
146
156
  v-for="opt in ALIGN_OPTIONS"
147
157
  :key="opt.value"
148
- @select="value.align = opt.value"
158
+ @select="value = { ...value, align: opt.value }"
149
159
  >
150
160
  <Icon :icon="opt.icon" />
151
161
  {{ opt.label }}
@@ -157,13 +167,13 @@ const copyExpressionModel = computed({
157
167
  :model-value="value.size"
158
168
  :disabled="value.grow"
159
169
  :min="0"
160
- @update:model-value="(v) => value.size = v"
170
+ @update:model-value="(v) => value = { ...value, size: v }"
161
171
  />
162
172
  <InputGroupAddon align="inline-end">
163
173
  <InputGroupButton
164
174
  :variant="value.grow ? 'primary' : 'ghost'"
165
175
  size="xs"
166
- @click="value.grow = !value.grow"
176
+ @click="value = { ...value, grow: !value.grow }"
167
177
  >
168
178
  <Icon :icon="value.grow ? 'fluent:lock-closed-20-regular' : 'fluent:arrow-autofit-width-20-regular'" />
169
179
  {{ fieldTitle("grow") }}
@@ -208,7 +218,7 @@ const copyExpressionModel = computed({
208
218
  </FieldLabel>
209
219
  <Select
210
220
  :model-value="value.displayMode ?? 'plain'"
211
- @update:model-value="(v) => value.displayMode = v"
221
+ @update:model-value="(v) => value = { ...value, displayMode: v }"
212
222
  >
213
223
  <SelectTrigger class="w-full">
214
224
  <SelectValue />
@@ -248,13 +258,13 @@ const copyExpressionModel = computed({
248
258
  <InputGroupInput
249
259
  :model-value="value.sortKey"
250
260
  placeholder="例:created_at"
251
- @update:model-value="(v) => value.sortKey = v || void 0"
261
+ @update:model-value="(v) => value = { ...value, sortKey: v || void 0 }"
252
262
  />
253
263
  <InputGroupAddon align="inline-end">
254
264
  <InputGroupButton
255
265
  :variant="value.enableSorting ? 'primary' : 'ghost'"
256
266
  size="xs"
257
- @click="value.enableSorting = !value.enableSorting"
267
+ @click="value = { ...value, enableSorting: !value.enableSorting }"
258
268
  >
259
269
  <Icon :icon="value.enableSorting ? 'fluent:arrow-sort-up-16-regular' : 'fluent:arrow-sort-16-regular'" />
260
270
  {{ fieldTitle("enableSorting") }}
@@ -41,4 +41,5 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
41
41
  compatibilityDate: Schema.Literal<["2026-04-14"]>;
42
42
  }>;
43
43
  export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
44
+ export declare function defaults(): Partial<Value>;
44
45
  export declare function toColumnDef(value: Value, { getLocaleText, $cel, inheritedContext }: ColumnDefDeps): Partial<ColumnDef<unknown, unknown>>;
@@ -27,6 +27,13 @@ export function schema(configure) {
27
27
  }))
28
28
  }).annotations({ title: "TextRenderer", description: "\u6587\u672C\u6E32\u67D3\u5668" });
29
29
  }
30
+ export function defaults() {
31
+ return {
32
+ title: [{ locale: "zh", message: "" }],
33
+ accessor: "",
34
+ size: 120
35
+ };
36
+ }
30
37
  export function toColumnDef(value, { getLocaleText, $cel, inheritedContext }) {
31
38
  return {
32
39
  header: getLocaleText(value.title),
@@ -9,6 +9,7 @@ import {
9
9
  InputGroup,
10
10
  InputGroupAddon,
11
11
  InputGroupButton,
12
+ InputGroupInput,
12
13
  InputGroupNumberField
13
14
  } from "../../../../ui/input-group";
14
15
  import {
@@ -9,6 +9,7 @@ import {
9
9
  InputGroup,
10
10
  InputGroupAddon,
11
11
  InputGroupButton,
12
+ InputGroupInput,
12
13
  InputGroupNumberField
13
14
  } from "../../../../ui/input-group";
14
15
  import {
@@ -44,6 +44,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
44
44
  compatibilityDate: Schema.Literal<["2026-05-13"]>;
45
45
  }>;
46
46
  export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
47
+ export declare function defaults(): Partial<Value>;
47
48
  /**
48
49
  * Adopts values that were stored under the pre-split `com.shwfed.table.column.switch`
49
50
  * type at the same `compatibilityDate`. The field shape is byte-identical to
@@ -48,6 +48,13 @@ export function schema(configure) {
48
48
  }))
49
49
  }).annotations({ title: "SwitchRenderer", description: "\u5F00\u5173\u6E32\u67D3\u5668\uFF08\u53EF\u7F16\u8F91\uFF09" });
50
50
  }
51
+ export function defaults() {
52
+ return {
53
+ title: [{ locale: "zh", message: "" }],
54
+ accessor: "",
55
+ size: 120
56
+ };
57
+ }
51
58
  export const migrateFrom = [
52
59
  { type: "com.shwfed.table.column.switch", compatibilityDate }
53
60
  ];
@@ -54,4 +54,5 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
54
54
  compatibilityDate: Schema.Literal<["2026-05-20"]>;
55
55
  }>;
56
56
  export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
57
+ export declare function defaults(): Partial<Value>;
57
58
  export declare function toColumnDef(value: Value, { getLocaleText }: ColumnDefDeps): Partial<ColumnDef<unknown, unknown>>;
@@ -58,6 +58,13 @@ export function schema(configure) {
58
58
  derived: derivedRowField(configure, "number")
59
59
  }).annotations({ title: "NumberInputRenderer", description: "\u6570\u503C\u8F93\u5165\u6E32\u67D3\u5668\uFF08\u53EF\u7F16\u8F91\uFF09" });
60
60
  }
61
+ export function defaults() {
62
+ return {
63
+ title: [{ locale: "zh", message: "" }],
64
+ binding: "",
65
+ size: 120
66
+ };
67
+ }
61
68
  export function toColumnDef(value, { getLocaleText }) {
62
69
  return {
63
70
  header: editableHeader(getLocaleText(value.title)),
@@ -55,6 +55,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
55
55
  compatibilityDate: Schema.Literal<["2026-05-20"]>;
56
56
  }>;
57
57
  export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
58
+ export declare function defaults(): Partial<Value>;
58
59
  /**
59
60
  * Adopts values that were stored under the pre-split `com.shwfed.table.column.switch`
60
61
  * type at the same `compatibilityDate`. The field shape is byte-identical to
@@ -37,6 +37,13 @@ export function schema(configure) {
37
37
  derived: derivedRowField(configure, "bool")
38
38
  }).annotations({ title: "SwitchRenderer", description: "\u5F00\u5173\u6E32\u67D3\u5668\uFF08\u53EF\u7F16\u8F91\u3001\u672C\u5730\uFF09" });
39
39
  }
40
+ export function defaults() {
41
+ return {
42
+ title: [{ locale: "zh", message: "" }],
43
+ binding: "",
44
+ size: 120
45
+ };
46
+ }
40
47
  export const migrateFrom = [
41
48
  { type: "com.shwfed.table.column.switch", compatibilityDate }
42
49
  ];
@@ -48,4 +48,5 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
48
48
  compatibilityDate: Schema.Literal<["2026-05-20"]>;
49
49
  }>;
50
50
  export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
51
+ export declare function defaults(): Partial<Value>;
51
52
  export declare function toColumnDef(value: Value, { getLocaleText }: ColumnDefDeps): Partial<ColumnDef<unknown, unknown>>;
@@ -33,6 +33,13 @@ export function schema(configure) {
33
33
  derived: derivedRowField(configure, "string")
34
34
  }).annotations({ title: "TextInputRenderer", description: "\u6587\u672C\u8F93\u5165\u6E32\u67D3\u5668\uFF08\u53EF\u7F16\u8F91\uFF09" });
35
35
  }
36
+ export function defaults() {
37
+ return {
38
+ title: [{ locale: "zh", message: "" }],
39
+ binding: "",
40
+ size: 120
41
+ };
42
+ }
36
43
  export function toColumnDef(value, { getLocaleText }) {
37
44
  return {
38
45
  header: editableHeader(getLocaleText(value.title)),
@@ -40,9 +40,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
40
40
  readonly readonly?: string | undefined;
41
41
  readonly request: string;
42
42
  readonly grow?: boolean | undefined;
43
- readonly accessor: string;
44
- readonly options: string;
45
43
  readonly enableSorting?: boolean | undefined;
44
+ readonly options: string;
46
45
  readonly optionValue: string;
47
46
  readonly optionLabel: readonly [{
48
47
  readonly locale: "zh";
@@ -51,8 +50,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
51
50
  readonly locale: "en" | "ja" | "ko";
52
51
  readonly message: string;
53
52
  }[]];
54
- readonly sortKey?: string | undefined;
55
53
  readonly successMessage?: string | undefined;
54
+ readonly accessor: string;
55
+ readonly sortKey?: string | undefined;
56
56
  }) => any;
57
57
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
58
58
  "onUpdate:modelValue"?: ((value: {
@@ -92,9 +92,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
92
92
  readonly readonly?: string | undefined;
93
93
  readonly request: string;
94
94
  readonly grow?: boolean | undefined;
95
- readonly accessor: string;
96
- readonly options: string;
97
95
  readonly enableSorting?: boolean | undefined;
96
+ readonly options: string;
98
97
  readonly optionValue: string;
99
98
  readonly optionLabel: readonly [{
100
99
  readonly locale: "zh";
@@ -103,8 +102,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
103
102
  readonly locale: "en" | "ja" | "ko";
104
103
  readonly message: string;
105
104
  }[]];
106
- readonly sortKey?: string | undefined;
107
105
  readonly successMessage?: string | undefined;
106
+ readonly accessor: string;
107
+ readonly sortKey?: string | undefined;
108
108
  }) => any) | undefined;
109
109
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
110
110
  declare const _default: typeof __VLS_export;
@@ -9,6 +9,7 @@ import {
9
9
  InputGroup,
10
10
  InputGroupAddon,
11
11
  InputGroupButton,
12
+ InputGroupInput,
12
13
  InputGroupNumberField
13
14
  } from "../../../../ui/input-group";
14
15
  import { getStructFieldDescription, getStructFieldTitle } from "../../../utils/schema-meta";
@@ -40,9 +40,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
40
40
  readonly readonly?: string | undefined;
41
41
  readonly request: string;
42
42
  readonly grow?: boolean | undefined;
43
- readonly accessor: string;
44
- readonly options: string;
45
43
  readonly enableSorting?: boolean | undefined;
44
+ readonly options: string;
46
45
  readonly optionValue: string;
47
46
  readonly optionLabel: readonly [{
48
47
  readonly locale: "zh";
@@ -51,8 +50,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
51
50
  readonly locale: "en" | "ja" | "ko";
52
51
  readonly message: string;
53
52
  }[]];
54
- readonly sortKey?: string | undefined;
55
53
  readonly successMessage?: string | undefined;
54
+ readonly accessor: string;
55
+ readonly sortKey?: string | undefined;
56
56
  }) => any;
57
57
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
58
58
  "onUpdate:modelValue"?: ((value: {
@@ -92,9 +92,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
92
92
  readonly readonly?: string | undefined;
93
93
  readonly request: string;
94
94
  readonly grow?: boolean | undefined;
95
- readonly accessor: string;
96
- readonly options: string;
97
95
  readonly enableSorting?: boolean | undefined;
96
+ readonly options: string;
98
97
  readonly optionValue: string;
99
98
  readonly optionLabel: readonly [{
100
99
  readonly locale: "zh";
@@ -103,8 +102,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
103
102
  readonly locale: "en" | "ja" | "ko";
104
103
  readonly message: string;
105
104
  }[]];
106
- readonly sortKey?: string | undefined;
107
105
  readonly successMessage?: string | undefined;
106
+ readonly accessor: string;
107
+ readonly sortKey?: string | undefined;
108
108
  }) => any) | undefined;
109
109
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
110
110
  declare const _default: typeof __VLS_export;
@@ -63,10 +63,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
63
63
  }[]] | undefined;
64
64
  readonly readonly?: string | undefined;
65
65
  readonly grow?: boolean | undefined;
66
- readonly accessor: string;
67
66
  readonly enableSorting?: boolean | undefined;
68
- readonly sortKey?: string | undefined;
69
67
  readonly successMessage?: string | undefined;
68
+ readonly accessor: string;
69
+ readonly sortKey?: string | undefined;
70
70
  }) => any;
71
71
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
72
72
  "onUpdate:modelValue"?: ((value: {
@@ -129,10 +129,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
129
129
  }[]] | undefined;
130
130
  readonly readonly?: string | undefined;
131
131
  readonly grow?: boolean | undefined;
132
- readonly accessor: string;
133
132
  readonly enableSorting?: boolean | undefined;
134
- readonly sortKey?: string | undefined;
135
133
  readonly successMessage?: string | undefined;
134
+ readonly accessor: string;
135
+ readonly sortKey?: string | undefined;
136
136
  }) => any) | undefined;
137
137
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
138
138
  declare const _default: typeof __VLS_export;
@@ -63,10 +63,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
63
63
  }[]] | undefined;
64
64
  readonly readonly?: string | undefined;
65
65
  readonly grow?: boolean | undefined;
66
- readonly accessor: string;
67
66
  readonly enableSorting?: boolean | undefined;
68
- readonly sortKey?: string | undefined;
69
67
  readonly successMessage?: string | undefined;
68
+ readonly accessor: string;
69
+ readonly sortKey?: string | undefined;
70
70
  }) => any;
71
71
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
72
72
  "onUpdate:modelValue"?: ((value: {
@@ -129,10 +129,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
129
129
  }[]] | undefined;
130
130
  readonly readonly?: string | undefined;
131
131
  readonly grow?: boolean | undefined;
132
- readonly accessor: string;
133
132
  readonly enableSorting?: boolean | undefined;
134
- readonly sortKey?: string | undefined;
135
133
  readonly successMessage?: string | undefined;
134
+ readonly accessor: string;
135
+ readonly sortKey?: string | undefined;
136
136
  }) => any) | undefined;
137
137
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
138
138
  declare const _default: typeof __VLS_export;
@@ -40,9 +40,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
40
40
  readonly readonly?: string | undefined;
41
41
  readonly request: string;
42
42
  readonly grow?: boolean | undefined;
43
- readonly accessor: string;
44
- readonly options: string;
45
43
  readonly enableSorting?: boolean | undefined;
44
+ readonly options: string;
46
45
  readonly optionValue: string;
47
46
  readonly optionLabel: readonly [{
48
47
  readonly locale: "zh";
@@ -51,8 +50,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
51
50
  readonly locale: "en" | "ja" | "ko";
52
51
  readonly message: string;
53
52
  }[]];
54
- readonly sortKey?: string | undefined;
55
53
  readonly successMessage?: string | undefined;
54
+ readonly accessor: string;
55
+ readonly sortKey?: string | undefined;
56
56
  }) => any;
57
57
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
58
58
  "onUpdate:modelValue"?: ((value: {
@@ -92,9 +92,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
92
92
  readonly readonly?: string | undefined;
93
93
  readonly request: string;
94
94
  readonly grow?: boolean | undefined;
95
- readonly accessor: string;
96
- readonly options: string;
97
95
  readonly enableSorting?: boolean | undefined;
96
+ readonly options: string;
98
97
  readonly optionValue: string;
99
98
  readonly optionLabel: readonly [{
100
99
  readonly locale: "zh";
@@ -103,8 +102,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
103
102
  readonly locale: "en" | "ja" | "ko";
104
103
  readonly message: string;
105
104
  }[]];
106
- readonly sortKey?: string | undefined;
107
105
  readonly successMessage?: string | undefined;
106
+ readonly accessor: string;
107
+ readonly sortKey?: string | undefined;
108
108
  }) => any) | undefined;
109
109
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
110
110
  declare const _default: typeof __VLS_export;
@@ -9,6 +9,7 @@ import {
9
9
  InputGroup,
10
10
  InputGroupAddon,
11
11
  InputGroupButton,
12
+ InputGroupInput,
12
13
  InputGroupNumberField
13
14
  } from "../../../../ui/input-group";
14
15
  import { getStructFieldDescription, getStructFieldTitle } from "../../../utils/schema-meta";
@@ -40,9 +40,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
40
40
  readonly readonly?: string | undefined;
41
41
  readonly request: string;
42
42
  readonly grow?: boolean | undefined;
43
- readonly accessor: string;
44
- readonly options: string;
45
43
  readonly enableSorting?: boolean | undefined;
44
+ readonly options: string;
46
45
  readonly optionValue: string;
47
46
  readonly optionLabel: readonly [{
48
47
  readonly locale: "zh";
@@ -51,8 +50,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
51
50
  readonly locale: "en" | "ja" | "ko";
52
51
  readonly message: string;
53
52
  }[]];
54
- readonly sortKey?: string | undefined;
55
53
  readonly successMessage?: string | undefined;
54
+ readonly accessor: string;
55
+ readonly sortKey?: string | undefined;
56
56
  }) => any;
57
57
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
58
58
  "onUpdate:modelValue"?: ((value: {
@@ -92,9 +92,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
92
92
  readonly readonly?: string | undefined;
93
93
  readonly request: string;
94
94
  readonly grow?: boolean | undefined;
95
- readonly accessor: string;
96
- readonly options: string;
97
95
  readonly enableSorting?: boolean | undefined;
96
+ readonly options: string;
98
97
  readonly optionValue: string;
99
98
  readonly optionLabel: readonly [{
100
99
  readonly locale: "zh";
@@ -103,8 +102,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
103
102
  readonly locale: "en" | "ja" | "ko";
104
103
  readonly message: string;
105
104
  }[]];
106
- readonly sortKey?: string | undefined;
107
105
  readonly successMessage?: string | undefined;
106
+ readonly accessor: string;
107
+ readonly sortKey?: string | undefined;
108
108
  }) => any) | undefined;
109
109
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
110
110
  declare const _default: typeof __VLS_export;
@@ -63,10 +63,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
63
63
  }[]] | undefined;
64
64
  readonly readonly?: string | undefined;
65
65
  readonly grow?: boolean | undefined;
66
- readonly accessor: string;
67
66
  readonly enableSorting?: boolean | undefined;
68
- readonly sortKey?: string | undefined;
69
67
  readonly successMessage?: string | undefined;
68
+ readonly accessor: string;
69
+ readonly sortKey?: string | undefined;
70
70
  }) => any;
71
71
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
72
72
  "onUpdate:modelValue"?: ((value: {
@@ -129,10 +129,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
129
129
  }[]] | undefined;
130
130
  readonly readonly?: string | undefined;
131
131
  readonly grow?: boolean | undefined;
132
- readonly accessor: string;
133
132
  readonly enableSorting?: boolean | undefined;
134
- readonly sortKey?: string | undefined;
135
133
  readonly successMessage?: string | undefined;
134
+ readonly accessor: string;
135
+ readonly sortKey?: string | undefined;
136
136
  }) => any) | undefined;
137
137
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
138
138
  declare const _default: typeof __VLS_export;
@@ -63,10 +63,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
63
63
  }[]] | undefined;
64
64
  readonly readonly?: string | undefined;
65
65
  readonly grow?: boolean | undefined;
66
- readonly accessor: string;
67
66
  readonly enableSorting?: boolean | undefined;
68
- readonly sortKey?: string | undefined;
69
67
  readonly successMessage?: string | undefined;
68
+ readonly accessor: string;
69
+ readonly sortKey?: string | undefined;
70
70
  }) => any;
71
71
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
72
72
  "onUpdate:modelValue"?: ((value: {
@@ -129,10 +129,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
129
129
  }[]] | undefined;
130
130
  readonly readonly?: string | undefined;
131
131
  readonly grow?: boolean | undefined;
132
- readonly accessor: string;
133
132
  readonly enableSorting?: boolean | undefined;
134
- readonly sortKey?: string | undefined;
135
133
  readonly successMessage?: string | undefined;
134
+ readonly accessor: string;
135
+ readonly sortKey?: string | undefined;
136
136
  }) => any) | undefined;
137
137
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
138
138
  declare const _default: typeof __VLS_export;
@@ -39,6 +39,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
39
39
  readonly mode: "formula" | "prefill";
40
40
  readonly expression: string;
41
41
  } | undefined;
42
+ readonly enableSorting?: boolean | undefined;
42
43
  readonly options: {
43
44
  readonly kind: "remote";
44
45
  readonly request: string;
@@ -78,7 +79,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
78
79
  };
79
80
  }[];
80
81
  };
81
- readonly enableSorting?: boolean | undefined;
82
82
  readonly sortKey?: string | undefined;
83
83
  }) => any;
84
84
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
@@ -118,6 +118,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
118
118
  readonly mode: "formula" | "prefill";
119
119
  readonly expression: string;
120
120
  } | undefined;
121
+ readonly enableSorting?: boolean | undefined;
121
122
  readonly options: {
122
123
  readonly kind: "remote";
123
124
  readonly request: string;
@@ -157,7 +158,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
157
158
  };
158
159
  }[];
159
160
  };
160
- readonly enableSorting?: boolean | undefined;
161
161
  readonly sortKey?: string | undefined;
162
162
  }) => any) | undefined;
163
163
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -39,6 +39,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
39
39
  readonly mode: "formula" | "prefill";
40
40
  readonly expression: string;
41
41
  } | undefined;
42
+ readonly enableSorting?: boolean | undefined;
42
43
  readonly options: {
43
44
  readonly kind: "remote";
44
45
  readonly request: string;
@@ -78,7 +79,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
78
79
  };
79
80
  }[];
80
81
  };
81
- readonly enableSorting?: boolean | undefined;
82
82
  readonly sortKey?: string | undefined;
83
83
  }) => any;
84
84
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
@@ -118,6 +118,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
118
118
  readonly mode: "formula" | "prefill";
119
119
  readonly expression: string;
120
120
  } | undefined;
121
+ readonly enableSorting?: boolean | undefined;
121
122
  readonly options: {
122
123
  readonly kind: "remote";
123
124
  readonly request: string;
@@ -157,7 +158,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
157
158
  };
158
159
  }[];
159
160
  };
160
- readonly enableSorting?: boolean | undefined;
161
161
  readonly sortKey?: string | undefined;
162
162
  }) => any) | undefined;
163
163
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -39,7 +39,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
39
39
  }[]] | undefined;
40
40
  readonly readonly?: string | undefined;
41
41
  readonly grow?: boolean | undefined;
42
- readonly accessor: string;
42
+ readonly enableSorting?: boolean | undefined;
43
43
  readonly options: {
44
44
  readonly kind: "remote";
45
45
  readonly request: string;
@@ -79,9 +79,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
79
79
  };
80
80
  }[];
81
81
  };
82
- readonly enableSorting?: boolean | undefined;
83
- readonly sortKey?: string | undefined;
84
82
  readonly successMessage?: string | undefined;
83
+ readonly accessor: string;
84
+ readonly sortKey?: string | undefined;
85
85
  }) => any;
86
86
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
87
87
  "onUpdate:modelValue"?: ((value: {
@@ -120,7 +120,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
120
120
  }[]] | undefined;
121
121
  readonly readonly?: string | undefined;
122
122
  readonly grow?: boolean | undefined;
123
- readonly accessor: string;
123
+ readonly enableSorting?: boolean | undefined;
124
124
  readonly options: {
125
125
  readonly kind: "remote";
126
126
  readonly request: string;
@@ -160,9 +160,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
160
160
  };
161
161
  }[];
162
162
  };
163
- readonly enableSorting?: boolean | undefined;
164
- readonly sortKey?: string | undefined;
165
163
  readonly successMessage?: string | undefined;
164
+ readonly accessor: string;
165
+ readonly sortKey?: string | undefined;
166
166
  }) => any) | undefined;
167
167
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
168
168
  declare const _default: typeof __VLS_export;