@shwfed/config 3.0.16 → 3.0.17

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 (103) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/actions/buttons/2026-06-25/com.shwfed.actions.button.state.write/config.d.vue.ts +8 -8
  3. package/dist/runtime/components/actions/buttons/2026-06-25/com.shwfed.actions.button.state.write/config.vue.d.ts +8 -8
  4. package/dist/runtime/components/actions/buttons/2026-07-13/com.shwfed.actions.button.state.write/config.d.vue.ts +8 -8
  5. package/dist/runtime/components/actions/buttons/2026-07-13/com.shwfed.actions.button.state.write/config.vue.d.ts +8 -8
  6. package/dist/runtime/components/actions/buttons/2026-07-13/com.shwfed.actions.button.state.write/runtime.vue +1 -16
  7. package/dist/runtime/components/config/blocks/2026-07-17/com.shwfed.block.invoice.realestate.lease/config.d.vue.ts +6 -6
  8. package/dist/runtime/components/config/blocks/2026-07-17/com.shwfed.block.invoice.realestate.lease/config.vue.d.ts +6 -6
  9. package/dist/runtime/components/config/blocks/2026-07-17/com.shwfed.block.invoice.realestate.lease/runtime.d.vue.ts +6 -6
  10. package/dist/runtime/components/config/blocks/2026-07-17/com.shwfed.block.invoice.realestate.lease/runtime.vue.d.ts +6 -6
  11. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.d.vue.ts +22 -22
  12. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue.d.ts +22 -22
  13. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.d.vue.ts +2 -2
  14. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.vue.d.ts +2 -2
  15. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.d.vue.ts +22 -22
  16. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts +22 -22
  17. package/dist/runtime/components/form/index.vue +57 -2
  18. package/dist/runtime/components/form/schema.d.ts +5 -0
  19. package/dist/runtime/components/form/schema.js +14 -1
  20. package/dist/runtime/components/form/utils/state-write.d.ts +9 -0
  21. package/dist/runtime/components/form/utils/state-write.js +16 -0
  22. package/dist/runtime/components/operations/2026-07-19/com.shwfed.operation.form.state.write/config.d.vue.ts +21 -0
  23. package/dist/runtime/components/operations/2026-07-19/com.shwfed.operation.form.state.write/config.vue +100 -0
  24. package/dist/runtime/components/operations/2026-07-19/com.shwfed.operation.form.state.write/config.vue.d.ts +21 -0
  25. package/dist/runtime/components/operations/2026-07-19/com.shwfed.operation.form.state.write/schema.d.ts +18 -0
  26. package/dist/runtime/components/operations/2026-07-19/com.shwfed.operation.form.state.write/schema.js +47 -0
  27. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -0
  28. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.vue +32 -0
  29. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -0
  30. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/schema.d.ts +1 -0
  31. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/schema.js +1 -1
  32. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/config.vue +32 -0
  33. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.d.ts +1 -0
  34. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.js +1 -1
  35. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/config.vue +28 -0
  36. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/schema.d.ts +1 -0
  37. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/schema.js +1 -1
  38. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/config.vue +32 -0
  39. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.d.ts +1 -0
  40. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.js +1 -1
  41. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/config.vue +32 -0
  42. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.d.ts +1 -0
  43. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.js +1 -1
  44. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -0
  45. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/config.vue +32 -0
  46. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -0
  47. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/schema.d.ts +1 -0
  48. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/schema.js +1 -1
  49. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -0
  50. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue +22 -0
  51. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -0
  52. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/schema.d.ts +1 -0
  53. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/schema.js +1 -1
  54. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -0
  55. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue +22 -0
  56. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -0
  57. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/schema.d.ts +1 -0
  58. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/schema.js +1 -1
  59. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -0
  60. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue +22 -0
  61. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -0
  62. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +1 -0
  63. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/schema.js +1 -1
  64. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -0
  65. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue +22 -0
  66. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -0
  67. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/schema.d.ts +1 -0
  68. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/schema.js +1 -1
  69. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -0
  70. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue +22 -0
  71. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -0
  72. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +1 -0
  73. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/schema.js +1 -1
  74. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -0
  75. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue +22 -0
  76. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -0
  77. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/schema.d.ts +1 -0
  78. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/schema.js +1 -1
  79. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -0
  80. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue +22 -0
  81. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -0
  82. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +1 -0
  83. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/schema.js +1 -1
  84. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -0
  85. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue +22 -0
  86. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -0
  87. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/schema.d.ts +1 -0
  88. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/schema.js +1 -1
  89. package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/config.vue +32 -0
  90. package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.d.ts +1 -0
  91. package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.js +1 -1
  92. package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/config.vue +32 -0
  93. package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/schema.d.ts +1 -0
  94. package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/schema.js +1 -1
  95. package/dist/runtime/components/table/columns/2026-07-16/com.shwfed.table.column.upload/config.vue +32 -0
  96. package/dist/runtime/components/table/columns/2026-07-16/com.shwfed.table.column.upload/schema.d.ts +1 -0
  97. package/dist/runtime/components/table/columns/2026-07-16/com.shwfed.table.column.upload/schema.js +1 -1
  98. package/dist/runtime/components/table/index.d.vue.ts +1 -0
  99. package/dist/runtime/components/table/index.vue +12 -1
  100. package/dist/runtime/components/table/index.vue.d.ts +1 -0
  101. package/dist/runtime/components/table/utils/shared.d.ts +2 -1
  102. package/dist/runtime/components/table/utils/shared.js +24 -1
  103. package/package.json +1 -1
@@ -31,7 +31,7 @@ export function schema(configure) {
31
31
  return Schema.Struct({
32
32
  type: Schema.Literal(type),
33
33
  compatibilityDate: Schema.Literal(compatibilityDate),
34
- ...editableColumnFields(),
34
+ ...editableColumnFields(configure),
35
35
  align: Schema.optionalWith(Align.annotations({ title: "\u5BF9\u9F50" }), { default: () => "right" }),
36
36
  placeholder: Schema.optional(Locale.annotations({
37
37
  title: "\u5360\u4F4D\u7B26",
@@ -55,6 +55,13 @@ const readonlyModel = computed({
55
55
  else value.value.readonly = v;
56
56
  }
57
57
  });
58
+ const requiredModel = computed({
59
+ get: () => value.value.required ?? "",
60
+ set: (v) => {
61
+ if (v === "") delete value.value.required;
62
+ else value.value.required = v;
63
+ }
64
+ });
58
65
  const derivedModel = computed({
59
66
  get: () => value.value.derived,
60
67
  set: (v) => {
@@ -256,6 +263,27 @@ const derivedModel = computed({
256
263
  :extra-vars="ROW_VARS"
257
264
  />
258
265
  </Field>
266
+ <Field orientation="vertical">
267
+ <FieldLabel class="text-xs text-zinc-500">
268
+ <template
269
+ v-if="fieldDescription('required')"
270
+ #tooltip
271
+ >
272
+ <Markdown
273
+ :source="fieldDescription('required')"
274
+ block
275
+ class="prose prose-sm prose-zinc"
276
+ />
277
+ </template>
278
+ {{ fieldTitle("required") }}
279
+ </FieldLabel>
280
+ <ExpressionEditor
281
+ v-model="requiredModel"
282
+ placeholder="例:row.type == 'company'"
283
+ result-type="bool"
284
+ :extra-vars="ROW_VARS"
285
+ />
286
+ </Field>
259
287
  <Field
260
288
  orientation="vertical"
261
289
  class="col-span-2"
@@ -73,6 +73,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
73
73
  readonly locale: "en" | "ja" | "ko";
74
74
  readonly message: string;
75
75
  }[]], never>>;
76
+ required: Schema.optional<Schema.Schema<string, string, never>>;
76
77
  id: Schema.refine<string, typeof Schema.String>;
77
78
  groupId: Schema.optional<typeof Schema.UUID>;
78
79
  type: Schema.Literal<["com.shwfed.table.column.switch"]>;
@@ -13,7 +13,7 @@ export function schema(configure) {
13
13
  return Schema.Struct({
14
14
  type: Schema.Literal(type),
15
15
  compatibilityDate: Schema.Literal(compatibilityDate),
16
- ...editableColumnFields(),
16
+ ...editableColumnFields(configure),
17
17
  hidden: Schema.optional(CelBool.annotations({
18
18
  title: "\u9690\u85CF\u6761\u4EF6",
19
19
  description: "\u8FD4\u56DE `true` \u65F6\u8BE5\u884C\u7684\u5F00\u5173\u4E0D\u6E32\u67D3\uFF08\u5176\u4F59\u884C\u4E0D\u53D7\u5F71\u54CD\uFF09"
@@ -75,6 +75,17 @@ const readonlyModel = computed({
75
75
  }
76
76
  }
77
77
  });
78
+ const requiredModel = computed({
79
+ get: () => value.value.required ?? "",
80
+ set: (v) => {
81
+ if (v === "") {
82
+ const { required: _drop, ...rest } = value.value;
83
+ value.value = rest;
84
+ } else {
85
+ value.value = { ...value.value, required: v };
86
+ }
87
+ }
88
+ });
78
89
  function onHiddenChange(v) {
79
90
  if (v) {
80
91
  value.value = { ...value.value, hidden: true };
@@ -300,6 +311,27 @@ const derivedModel = computed({
300
311
  :extra-vars="ROW_VARS"
301
312
  />
302
313
  </Field>
314
+ <Field orientation="vertical">
315
+ <FieldLabel class="text-xs text-zinc-500">
316
+ <template
317
+ v-if="fieldDescription('required')"
318
+ #tooltip
319
+ >
320
+ <Markdown
321
+ :source="fieldDescription('required')"
322
+ block
323
+ class="prose prose-sm prose-zinc"
324
+ />
325
+ </template>
326
+ {{ fieldTitle("required") }}
327
+ </FieldLabel>
328
+ <ExpressionEditor
329
+ v-model="requiredModel"
330
+ placeholder="例:row.type == 'company'"
331
+ result-type="bool"
332
+ :extra-vars="ROW_VARS"
333
+ />
334
+ </Field>
303
335
  <Field
304
336
  orientation="vertical"
305
337
  class="col-span-2"
@@ -77,6 +77,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
77
77
  readonly message: string;
78
78
  }[]], never>>;
79
79
  hidden: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
80
+ required: Schema.optional<Schema.Schema<string, string, never>>;
80
81
  id: Schema.refine<string, typeof Schema.String>;
81
82
  groupId: Schema.optional<typeof Schema.UUID>;
82
83
  type: Schema.Literal<["com.shwfed.table.column.switch.local"]>;
@@ -14,7 +14,7 @@ export function schema(configure) {
14
14
  return Schema.Struct({
15
15
  type: Schema.Literal(type),
16
16
  compatibilityDate: Schema.Literal(compatibilityDate),
17
- ...editableColumnFields(),
17
+ ...editableColumnFields(configure),
18
18
  align: Schema.optionalWith(Align.annotations({ title: "\u5BF9\u9F50" }), { default: () => "center" }),
19
19
  disabled: Schema.optional(CelBool.annotations({
20
20
  title: "\u7981\u7528\u6761\u4EF6",
@@ -129,6 +129,17 @@ const readonlyModel = computed({
129
129
  }
130
130
  }
131
131
  });
132
+ const requiredModel = computed({
133
+ get: () => value.value.required ?? "",
134
+ set: (v) => {
135
+ if (v === "") {
136
+ const { required: _drop, ...rest } = value.value;
137
+ value.value = rest;
138
+ } else {
139
+ value.value = { ...value.value, required: v };
140
+ }
141
+ }
142
+ });
132
143
  const derivedModel = computed({
133
144
  get: () => value.value.derived,
134
145
  set: (v) => {
@@ -335,6 +346,27 @@ const derivedModel = computed({
335
346
  :extra-vars="ROW_VARS"
336
347
  />
337
348
  </Field>
349
+ <Field orientation="vertical">
350
+ <FieldLabel class="text-xs text-zinc-500">
351
+ <template
352
+ v-if="fieldDescription('required')"
353
+ #tooltip
354
+ >
355
+ <Markdown
356
+ :source="fieldDescription('required')"
357
+ block
358
+ class="prose prose-sm prose-zinc"
359
+ />
360
+ </template>
361
+ {{ fieldTitle("required") }}
362
+ </FieldLabel>
363
+ <ExpressionEditor
364
+ v-model="requiredModel"
365
+ placeholder="例:row.type == 'company'"
366
+ result-type="bool"
367
+ :extra-vars="ROW_VARS"
368
+ />
369
+ </Field>
338
370
  <Field
339
371
  orientation="vertical"
340
372
  class="col-span-2"
@@ -196,6 +196,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
196
196
  readonly message: string;
197
197
  }[]], never>>;
198
198
  hidden: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
199
+ required: Schema.optional<Schema.Schema<string, string, never>>;
199
200
  id: Schema.refine<string, typeof Schema.String>;
200
201
  groupId: Schema.optional<typeof Schema.UUID>;
201
202
  type: Schema.Literal<["com.shwfed.table.column.text-input"]>;
@@ -30,7 +30,7 @@ export function schema(configure) {
30
30
  return Schema.Struct({
31
31
  type: Schema.Literal(type),
32
32
  compatibilityDate: Schema.Literal(compatibilityDate),
33
- ...editableColumnFields(),
33
+ ...editableColumnFields(configure),
34
34
  align: Schema.optionalWith(Align.annotations({ title: "\u5BF9\u9F50" }), { default: () => "left" }),
35
35
  placeholder: Schema.optional(Locale.annotations({
36
36
  title: "\u5360\u4F4D\u7B26",
@@ -23,6 +23,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
23
23
  readonly locale: "en" | "ja" | "ko";
24
24
  readonly message: string;
25
25
  }[]] | undefined;
26
+ readonly required?: string | undefined;
26
27
  readonly compatibilityDate: "2026-05-25";
27
28
  readonly grow?: boolean | undefined;
28
29
  readonly items: readonly {
@@ -87,6 +88,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
87
88
  readonly locale: "en" | "ja" | "ko";
88
89
  readonly message: string;
89
90
  }[]] | undefined;
91
+ readonly required?: string | undefined;
90
92
  readonly compatibilityDate: "2026-05-25";
91
93
  readonly grow?: boolean | undefined;
92
94
  readonly items: readonly {
@@ -77,6 +77,17 @@ const readonlyModel = computed({
77
77
  }
78
78
  }
79
79
  });
80
+ const requiredModel = computed({
81
+ get: () => value.value.required ?? "",
82
+ set: (v) => {
83
+ if (v === "") {
84
+ const { required: _omit, ...rest } = value.value;
85
+ value.value = rest;
86
+ } else {
87
+ value.value = { ...value.value, required: v };
88
+ }
89
+ }
90
+ });
80
91
  const derivedModel = computed({
81
92
  get: () => value.value.derived,
82
93
  set: (v) => {
@@ -479,6 +490,27 @@ function setItemTooltip(index, tooltip) {
479
490
  :extra-vars="ROW_VARS"
480
491
  />
481
492
  </Field>
493
+ <Field orientation="vertical">
494
+ <FieldLabel class="text-xs text-zinc-500">
495
+ <template
496
+ v-if="fieldDescription('required')"
497
+ #tooltip
498
+ >
499
+ <Markdown
500
+ :source="fieldDescription('required')"
501
+ block
502
+ class="prose prose-sm prose-zinc"
503
+ />
504
+ </template>
505
+ {{ fieldTitle("required") }}
506
+ </FieldLabel>
507
+ <ExpressionEditor
508
+ v-model="requiredModel"
509
+ placeholder="例:row.type == 'company'"
510
+ result-type="bool"
511
+ :extra-vars="ROW_VARS"
512
+ />
513
+ </Field>
482
514
  <Field
483
515
  orientation="vertical"
484
516
  class="col-span-2"
@@ -23,6 +23,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
23
23
  readonly locale: "en" | "ja" | "ko";
24
24
  readonly message: string;
25
25
  }[]] | undefined;
26
+ readonly required?: string | undefined;
26
27
  readonly compatibilityDate: "2026-05-25";
27
28
  readonly grow?: boolean | undefined;
28
29
  readonly items: readonly {
@@ -87,6 +88,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
87
88
  readonly locale: "en" | "ja" | "ko";
88
89
  readonly message: string;
89
90
  }[]] | undefined;
91
+ readonly required?: string | undefined;
90
92
  readonly compatibilityDate: "2026-05-25";
91
93
  readonly grow?: boolean | undefined;
92
94
  readonly items: readonly {
@@ -158,6 +158,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
158
158
  readonly locale: "en" | "ja" | "ko";
159
159
  readonly message: string;
160
160
  }[]], never>>;
161
+ required: Schema.optional<Schema.Schema<string, string, never>>;
161
162
  id: Schema.refine<string, typeof Schema.String>;
162
163
  groupId: Schema.optional<typeof Schema.UUID>;
163
164
  type: Schema.Literal<["com.shwfed.table.column.combobox-multi"]>;
@@ -49,7 +49,7 @@ export function schema(configure) {
49
49
  return Schema.Struct({
50
50
  type: Schema.Literal(type),
51
51
  compatibilityDate: Schema.Literal(compatibilityDate),
52
- ...editableColumnFields(),
52
+ ...editableColumnFields(configure),
53
53
  placeholder: Schema.optional(Locale.annotations({
54
54
  title: "\u5360\u4F4D\u7B26",
55
55
  description: "\u672A\u9009\u4E2D\u4EFB\u4F55\u9009\u9879\u65F6\u8F93\u5165\u6846\u4E2D\u7684\u5360\u4F4D\u6587\u672C"
@@ -23,6 +23,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
23
23
  readonly locale: "en" | "ja" | "ko";
24
24
  readonly message: string;
25
25
  }[]] | undefined;
26
+ readonly required?: string | undefined;
26
27
  readonly options: {
27
28
  readonly kind: "remote";
28
29
  readonly options: string;
@@ -102,6 +103,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
102
103
  readonly locale: "en" | "ja" | "ko";
103
104
  readonly message: string;
104
105
  }[]] | undefined;
106
+ readonly required?: string | undefined;
105
107
  readonly options: {
106
108
  readonly kind: "remote";
107
109
  readonly options: string;
@@ -73,6 +73,7 @@ function celModel(field) {
73
73
  const hiddenModel = celModel("hidden");
74
74
  const disabledModel = celModel("disabled");
75
75
  const readonlyModel = celModel("readonly");
76
+ const requiredModel = celModel("required");
76
77
  const derivedModel = computed({
77
78
  get: () => value.value.derived,
78
79
  set: (v) => {
@@ -645,6 +646,27 @@ function setItemTooltip(index, tooltip) {
645
646
  :extra-vars="ROW_VARS"
646
647
  />
647
648
  </Field>
649
+ <Field orientation="vertical">
650
+ <FieldLabel class="text-xs text-zinc-500">
651
+ <template
652
+ v-if="fieldDescription('required')"
653
+ #tooltip
654
+ >
655
+ <Markdown
656
+ :source="fieldDescription('required')"
657
+ block
658
+ class="prose prose-sm prose-zinc"
659
+ />
660
+ </template>
661
+ {{ fieldTitle("required") }}
662
+ </FieldLabel>
663
+ <ExpressionEditor
664
+ v-model="requiredModel"
665
+ placeholder="例:row.type == 'company'"
666
+ result-type="bool"
667
+ :extra-vars="ROW_VARS"
668
+ />
669
+ </Field>
648
670
  <Field
649
671
  orientation="vertical"
650
672
  class="col-span-2"
@@ -23,6 +23,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
23
23
  readonly locale: "en" | "ja" | "ko";
24
24
  readonly message: string;
25
25
  }[]] | undefined;
26
+ readonly required?: string | undefined;
26
27
  readonly options: {
27
28
  readonly kind: "remote";
28
29
  readonly options: string;
@@ -102,6 +103,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
102
103
  readonly locale: "en" | "ja" | "ko";
103
104
  readonly message: string;
104
105
  }[]] | undefined;
106
+ readonly required?: string | undefined;
105
107
  readonly options: {
106
108
  readonly kind: "remote";
107
109
  readonly options: string;
@@ -313,6 +313,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
313
313
  readonly locale: "en" | "ja" | "ko";
314
314
  readonly message: string;
315
315
  }[]], never>>;
316
+ required: Schema.optional<Schema.Schema<string, string, never>>;
316
317
  id: Schema.refine<string, typeof Schema.String>;
317
318
  groupId: Schema.optional<typeof Schema.UUID>;
318
319
  type: Schema.Literal<["com.shwfed.table.column.combobox-multi"]>;
@@ -118,7 +118,7 @@ export function schema(configure) {
118
118
  return Schema.Struct({
119
119
  type: Schema.Literal(type),
120
120
  compatibilityDate: Schema.Literal(compatibilityDate),
121
- ...editableColumnFields(),
121
+ ...editableColumnFields(configure),
122
122
  placeholder: Schema.optional(Locale.annotations({
123
123
  title: "\u5360\u4F4D\u7B26",
124
124
  description: "\u672A\u9009\u4E2D\u4EFB\u4F55\u9009\u9879\u65F6\u8F93\u5165\u6846\u4E2D\u7684\u5360\u4F4D\u6587\u672C"
@@ -23,6 +23,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
23
23
  readonly locale: "en" | "ja" | "ko";
24
24
  readonly message: string;
25
25
  }[]] | undefined;
26
+ readonly required?: string | undefined;
26
27
  readonly options: {
27
28
  readonly kind: "remote";
28
29
  readonly options: string;
@@ -102,6 +103,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
102
103
  readonly locale: "en" | "ja" | "ko";
103
104
  readonly message: string;
104
105
  }[]] | undefined;
106
+ readonly required?: string | undefined;
105
107
  readonly options: {
106
108
  readonly kind: "remote";
107
109
  readonly options: string;
@@ -73,6 +73,7 @@ function celModel(field) {
73
73
  const hiddenModel = celModel("hidden");
74
74
  const disabledModel = celModel("disabled");
75
75
  const readonlyModel = celModel("readonly");
76
+ const requiredModel = celModel("required");
76
77
  const derivedModel = computed({
77
78
  get: () => value.value.derived,
78
79
  set: (v) => {
@@ -645,6 +646,27 @@ function setItemTooltip(index, tooltip) {
645
646
  :extra-vars="ROW_VARS"
646
647
  />
647
648
  </Field>
649
+ <Field orientation="vertical">
650
+ <FieldLabel class="text-xs text-zinc-500">
651
+ <template
652
+ v-if="fieldDescription('required')"
653
+ #tooltip
654
+ >
655
+ <Markdown
656
+ :source="fieldDescription('required')"
657
+ block
658
+ class="prose prose-sm prose-zinc"
659
+ />
660
+ </template>
661
+ {{ fieldTitle("required") }}
662
+ </FieldLabel>
663
+ <ExpressionEditor
664
+ v-model="requiredModel"
665
+ placeholder="例:row.type == 'company'"
666
+ result-type="bool"
667
+ :extra-vars="ROW_VARS"
668
+ />
669
+ </Field>
648
670
  <Field
649
671
  orientation="vertical"
650
672
  class="col-span-2"
@@ -23,6 +23,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
23
23
  readonly locale: "en" | "ja" | "ko";
24
24
  readonly message: string;
25
25
  }[]] | undefined;
26
+ readonly required?: string | undefined;
26
27
  readonly options: {
27
28
  readonly kind: "remote";
28
29
  readonly options: string;
@@ -102,6 +103,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
102
103
  readonly locale: "en" | "ja" | "ko";
103
104
  readonly message: string;
104
105
  }[]] | undefined;
106
+ readonly required?: string | undefined;
105
107
  readonly options: {
106
108
  readonly kind: "remote";
107
109
  readonly options: string;
@@ -313,6 +313,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
313
313
  readonly locale: "en" | "ja" | "ko";
314
314
  readonly message: string;
315
315
  }[]], never>>;
316
+ required: Schema.optional<Schema.Schema<string, string, never>>;
316
317
  id: Schema.refine<string, typeof Schema.String>;
317
318
  groupId: Schema.optional<typeof Schema.UUID>;
318
319
  type: Schema.Literal<["com.shwfed.table.column.combobox-single"]>;
@@ -118,7 +118,7 @@ export function schema(configure) {
118
118
  return Schema.Struct({
119
119
  type: Schema.Literal(type),
120
120
  compatibilityDate: Schema.Literal(compatibilityDate),
121
- ...editableColumnFields(),
121
+ ...editableColumnFields(configure),
122
122
  placeholder: Schema.optional(Locale.annotations({
123
123
  title: "\u5360\u4F4D\u7B26",
124
124
  description: "\u672A\u9009\u4E2D\u4EFB\u4F55\u9009\u9879\u65F6\u8F93\u5165\u6846\u4E2D\u7684\u5360\u4F4D\u6587\u672C"
@@ -23,6 +23,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
23
23
  readonly locale: "en" | "ja" | "ko";
24
24
  readonly message: string;
25
25
  }[]] | undefined;
26
+ readonly required?: string | undefined;
26
27
  readonly compatibilityDate: "2026-05-27";
27
28
  readonly grow?: boolean | undefined;
28
29
  readonly groupId?: string | undefined;
@@ -86,6 +87,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
86
87
  readonly locale: "en" | "ja" | "ko";
87
88
  readonly message: string;
88
89
  }[]] | undefined;
90
+ readonly required?: string | undefined;
89
91
  readonly compatibilityDate: "2026-05-27";
90
92
  readonly grow?: boolean | undefined;
91
93
  readonly groupId?: string | undefined;
@@ -553,6 +553,28 @@ const derivedModel = computed({
553
553
  @update:model-value="(v) => setOptionalExpression('readonly', v)"
554
554
  />
555
555
  </Field>
556
+ <Field orientation="vertical">
557
+ <FieldLabel class="text-xs text-zinc-500">
558
+ <template
559
+ v-if="fieldDescription('required')"
560
+ #tooltip
561
+ >
562
+ <Markdown
563
+ :source="fieldDescription('required')"
564
+ block
565
+ class="prose prose-sm prose-zinc"
566
+ />
567
+ </template>
568
+ {{ fieldTitle("required") }}
569
+ </FieldLabel>
570
+ <ExpressionEditor
571
+ :model-value="value.required ?? ''"
572
+ placeholder="例:row.type == 'company'"
573
+ result-type="bool"
574
+ :extra-vars="ROW_VARS"
575
+ @update:model-value="(v) => setOptionalExpression('required', v)"
576
+ />
577
+ </Field>
556
578
  <Field
557
579
  orientation="vertical"
558
580
  class="col-span-2"
@@ -23,6 +23,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
23
23
  readonly locale: "en" | "ja" | "ko";
24
24
  readonly message: string;
25
25
  }[]] | undefined;
26
+ readonly required?: string | undefined;
26
27
  readonly compatibilityDate: "2026-05-27";
27
28
  readonly grow?: boolean | undefined;
28
29
  readonly groupId?: string | undefined;
@@ -86,6 +87,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
86
87
  readonly locale: "en" | "ja" | "ko";
87
88
  readonly message: string;
88
89
  }[]] | undefined;
90
+ readonly required?: string | undefined;
89
91
  readonly compatibilityDate: "2026-05-27";
90
92
  readonly grow?: boolean | undefined;
91
93
  readonly groupId?: string | undefined;
@@ -111,6 +111,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
111
111
  readonly locale: "en" | "ja" | "ko";
112
112
  readonly message: string;
113
113
  }[]], never>>;
114
+ required: Schema.optional<Schema.Schema<string, string, never>>;
114
115
  id: Schema.refine<string, typeof Schema.String>;
115
116
  groupId: Schema.optional<typeof Schema.UUID>;
116
117
  type: Schema.Literal<["com.shwfed.table.column.tree-combobox-multi"]>;
@@ -61,7 +61,7 @@ export function schema(configure) {
61
61
  return Schema.Struct({
62
62
  type: Schema.Literal(type),
63
63
  compatibilityDate: Schema.Literal(compatibilityDate),
64
- ...editableColumnFields(),
64
+ ...editableColumnFields(configure),
65
65
  placeholder: Schema.optional(Locale.annotations({
66
66
  title: "\u5360\u4F4D\u7B26",
67
67
  description: "\u672A\u9009\u4E2D\u4EFB\u4F55\u9009\u9879\u65F6\u8F93\u5165\u6846\u4E2D\u7684\u5360\u4F4D\u6587\u672C"
@@ -23,6 +23,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
23
23
  readonly locale: "en" | "ja" | "ko";
24
24
  readonly message: string;
25
25
  }[]] | undefined;
26
+ readonly required?: string | undefined;
26
27
  readonly compatibilityDate: "2026-05-27";
27
28
  readonly grow?: boolean | undefined;
28
29
  readonly groupId?: string | undefined;
@@ -85,6 +86,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
85
86
  readonly locale: "en" | "ja" | "ko";
86
87
  readonly message: string;
87
88
  }[]] | undefined;
89
+ readonly required?: string | undefined;
88
90
  readonly compatibilityDate: "2026-05-27";
89
91
  readonly grow?: boolean | undefined;
90
92
  readonly groupId?: string | undefined;
@@ -484,6 +484,28 @@ const derivedModel = computed({
484
484
  @update:model-value="(v) => setOptionalExpression('readonly', v)"
485
485
  />
486
486
  </Field>
487
+ <Field orientation="vertical">
488
+ <FieldLabel class="text-xs text-zinc-500">
489
+ <template
490
+ v-if="fieldDescription('required')"
491
+ #tooltip
492
+ >
493
+ <Markdown
494
+ :source="fieldDescription('required')"
495
+ block
496
+ class="prose prose-sm prose-zinc"
497
+ />
498
+ </template>
499
+ {{ fieldTitle("required") }}
500
+ </FieldLabel>
501
+ <ExpressionEditor
502
+ :model-value="value.required ?? ''"
503
+ placeholder="例:row.type == 'company'"
504
+ result-type="bool"
505
+ :extra-vars="ROW_VARS"
506
+ @update:model-value="(v) => setOptionalExpression('required', v)"
507
+ />
508
+ </Field>
487
509
  <Field
488
510
  orientation="vertical"
489
511
  class="col-span-2"
@@ -23,6 +23,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
23
23
  readonly locale: "en" | "ja" | "ko";
24
24
  readonly message: string;
25
25
  }[]] | undefined;
26
+ readonly required?: string | undefined;
26
27
  readonly compatibilityDate: "2026-05-27";
27
28
  readonly grow?: boolean | undefined;
28
29
  readonly groupId?: string | undefined;
@@ -85,6 +86,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
85
86
  readonly locale: "en" | "ja" | "ko";
86
87
  readonly message: string;
87
88
  }[]] | undefined;
89
+ readonly required?: string | undefined;
88
90
  readonly compatibilityDate: "2026-05-27";
89
91
  readonly grow?: boolean | undefined;
90
92
  readonly groupId?: string | undefined;
@@ -108,6 +108,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
108
108
  readonly locale: "en" | "ja" | "ko";
109
109
  readonly message: string;
110
110
  }[]], never>>;
111
+ required: Schema.optional<Schema.Schema<string, string, never>>;
111
112
  id: Schema.refine<string, typeof Schema.String>;
112
113
  groupId: Schema.optional<typeof Schema.UUID>;
113
114
  type: Schema.Literal<["com.shwfed.table.column.tree-combobox-single"]>;
@@ -61,7 +61,7 @@ export function schema(configure) {
61
61
  return Schema.Struct({
62
62
  type: Schema.Literal(type),
63
63
  compatibilityDate: Schema.Literal(compatibilityDate),
64
- ...editableColumnFields(),
64
+ ...editableColumnFields(configure),
65
65
  placeholder: Schema.optional(Locale.annotations({
66
66
  title: "\u5360\u4F4D\u7B26",
67
67
  description: "\u672A\u9009\u4E2D\u4EFB\u4F55\u9009\u9879\u65F6\u8F93\u5165\u6846\u4E2D\u7684\u5360\u4F4D\u6587\u672C"