@shwfed/config 2.11.6 → 2.12.0

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 (203) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +1 -0
  3. package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/schema.d.ts +13 -7
  4. package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/schema.d.ts +13 -7
  5. package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/schema.d.ts +13 -7
  6. package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/schema.d.ts +13 -7
  7. package/dist/runtime/components/actions/schema.d.ts +82 -52
  8. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/schema.d.ts +5 -5
  9. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/schema.d.ts +13 -7
  10. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +62 -38
  11. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/schema.d.ts +26 -14
  12. package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.xy/schema.d.ts +39 -21
  13. package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/schema.d.ts +13 -7
  14. package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.card/schema.d.ts +26 -14
  15. package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/schema.d.ts +44 -26
  16. package/dist/runtime/components/config/schema.d.ts +13 -7
  17. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.d.ts +26 -14
  18. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.d.vue.ts +22 -22
  19. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue.d.ts +22 -22
  20. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.d.ts +57 -33
  21. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.d.ts +52 -28
  22. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/schema.d.ts +18 -12
  23. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.d.vue.ts +16 -16
  24. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.vue.d.ts +16 -16
  25. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/schema.d.ts +65 -35
  26. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.d.vue.ts +16 -16
  27. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.vue.d.ts +16 -16
  28. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/schema.d.ts +78 -42
  29. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +18 -18
  30. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +18 -18
  31. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/schema.d.ts +91 -49
  32. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.d.vue.ts +16 -16
  33. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue.d.ts +16 -16
  34. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.d.ts +78 -42
  35. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +18 -18
  36. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +18 -18
  37. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/schema.d.ts +91 -49
  38. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/schema.d.ts +39 -21
  39. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/schema.d.ts +39 -21
  40. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.d.vue.ts +28 -28
  41. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts +28 -28
  42. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.d.ts +57 -33
  43. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.d.vue.ts +6 -6
  44. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.vue.d.ts +6 -6
  45. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/schema.d.ts +65 -35
  46. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.d.vue.ts +22 -22
  47. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.vue.d.ts +22 -22
  48. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/schema.d.ts +65 -35
  49. package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/schema.d.ts +104 -56
  50. package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/schema.d.ts +78 -42
  51. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.d.vue.ts +16 -16
  52. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.vue.d.ts +16 -16
  53. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/schema.d.ts +65 -35
  54. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.d.ts +78 -42
  55. package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/schema.d.ts +91 -49
  56. package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/schema.d.ts +91 -49
  57. package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/schema.d.ts +39 -21
  58. package/dist/runtime/components/form/fields/2026-05-20/com.shwfed.form.field.collapsible/schema.d.ts +13 -7
  59. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +30 -30
  60. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +30 -30
  61. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/schema.d.ts +78 -42
  62. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/config.d.vue.ts +16 -16
  63. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/config.vue.d.ts +16 -16
  64. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/schema.d.ts +78 -42
  65. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.d.vue.ts +18 -18
  66. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.vue.d.ts +18 -18
  67. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/schema.d.ts +91 -49
  68. package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.d.vue.ts +16 -16
  69. package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.vue.d.ts +16 -16
  70. package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/schema.d.ts +65 -35
  71. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +30 -30
  72. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +30 -30
  73. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/schema.d.ts +78 -42
  74. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +30 -30
  75. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +30 -30
  76. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/schema.d.ts +78 -42
  77. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/schema.d.ts +169 -91
  78. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/schema.d.ts +169 -91
  79. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +30 -30
  80. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +30 -30
  81. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/schema.d.ts +78 -42
  82. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +30 -30
  83. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +30 -30
  84. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/schema.d.ts +78 -42
  85. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +30 -30
  86. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +30 -30
  87. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/schema.d.ts +78 -42
  88. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +30 -30
  89. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +30 -30
  90. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/schema.d.ts +78 -42
  91. package/dist/runtime/components/form/fields/2026-06-09/com.shwfed.form.field.upload/schema.d.ts +78 -42
  92. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.multi/schema.d.ts +130 -70
  93. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.single/schema.d.ts +130 -70
  94. package/dist/runtime/components/form/fields/2026-06-20/com.shwfed.form.field.tabs/schema.d.ts +26 -14
  95. package/dist/runtime/components/form/utils/common.d.ts +26 -14
  96. package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/schema.d.ts +13 -7
  97. package/dist/runtime/components/operations/2026-06-11/com.shwfed.operation.http.request.json/schema.d.ts +13 -7
  98. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/schema.d.ts +13 -7
  99. package/dist/runtime/components/table/ai-generate.d.vue.ts +16 -0
  100. package/dist/runtime/components/table/ai-generate.system.d.ts +1 -0
  101. package/dist/runtime/components/table/ai-generate.system.js +10 -0
  102. package/dist/runtime/components/table/ai-generate.system.md +95 -0
  103. package/dist/runtime/components/table/ai-generate.vue +172 -0
  104. package/dist/runtime/components/table/ai-generate.vue.d.ts +16 -0
  105. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.d.ts +18 -12
  106. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.d.ts +26 -14
  107. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.d.ts +26 -14
  108. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.d.ts +39 -21
  109. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.d.ts +26 -14
  110. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.d.ts +26 -14
  111. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/schema.d.ts +26 -14
  112. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.d.ts +26 -14
  113. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/schema.d.ts +91 -49
  114. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.d.ts +44 -26
  115. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/schema.d.ts +52 -28
  116. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.d.ts +52 -28
  117. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.d.ts +44 -26
  118. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +6 -6
  119. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +6 -6
  120. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/schema.d.ts +52 -28
  121. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/schema.d.ts +91 -49
  122. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/schema.d.ts +91 -49
  123. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +6 -6
  124. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +6 -6
  125. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/schema.d.ts +52 -28
  126. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/schema.d.ts +91 -49
  127. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/schema.d.ts +156 -84
  128. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/schema.d.ts +156 -84
  129. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/schema.d.ts +156 -84
  130. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/schema.d.ts +156 -84
  131. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -8
  132. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
  133. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +65 -35
  134. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
  135. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
  136. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/schema.d.ts +65 -35
  137. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.d.ts +156 -84
  138. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.d.ts +156 -84
  139. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -8
  140. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
  141. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +65 -35
  142. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
  143. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
  144. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/schema.d.ts +65 -35
  145. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/schema.d.ts +117 -63
  146. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/schema.d.ts +117 -63
  147. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -8
  148. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
  149. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +52 -28
  150. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
  151. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
  152. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/schema.d.ts +52 -28
  153. package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.d.ts +70 -40
  154. package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/schema.d.ts +78 -42
  155. package/dist/runtime/components/table/config.d.vue.ts +3 -3
  156. package/dist/runtime/components/table/config.vue +37 -3
  157. package/dist/runtime/components/table/config.vue.d.ts +3 -3
  158. package/dist/runtime/components/table/schema.d.ts +114 -66
  159. package/dist/runtime/components/table/utils/ai-tools.d.ts +11 -0
  160. package/dist/runtime/components/table/utils/ai-tools.js +458 -0
  161. package/dist/runtime/components/table/utils/resolve.d.ts +23 -0
  162. package/dist/runtime/components/table/utils/resolve.js +3 -0
  163. package/dist/runtime/components/table/utils/shared.d.ts +65 -35
  164. package/dist/runtime/components/table/utils/shared.js +16 -17
  165. package/dist/runtime/components/ui/chat/ChatMessage.d.vue.ts +7 -0
  166. package/dist/runtime/components/ui/chat/ChatMessage.vue +35 -0
  167. package/dist/runtime/components/ui/chat/ChatMessage.vue.d.ts +7 -0
  168. package/dist/runtime/components/ui/chat/ChatMessagePart.d.vue.ts +7 -0
  169. package/dist/runtime/components/ui/chat/ChatMessagePart.vue +43 -0
  170. package/dist/runtime/components/ui/chat/ChatMessagePart.vue.d.ts +7 -0
  171. package/dist/runtime/components/ui/chat/ChatMessages.d.vue.ts +18 -0
  172. package/dist/runtime/components/ui/chat/ChatMessages.vue +63 -0
  173. package/dist/runtime/components/ui/chat/ChatMessages.vue.d.ts +18 -0
  174. package/dist/runtime/components/ui/chat/ChatPrompt.d.vue.ts +24 -0
  175. package/dist/runtime/components/ui/chat/ChatPrompt.vue +43 -0
  176. package/dist/runtime/components/ui/chat/ChatPrompt.vue.d.ts +24 -0
  177. package/dist/runtime/components/ui/chat/ChatPromptSubmit.d.vue.ts +18 -0
  178. package/dist/runtime/components/ui/chat/ChatPromptSubmit.vue +41 -0
  179. package/dist/runtime/components/ui/chat/ChatPromptSubmit.vue.d.ts +18 -0
  180. package/dist/runtime/components/ui/chat/ChatReasoning.d.vue.ts +7 -0
  181. package/dist/runtime/components/ui/chat/ChatReasoning.vue +33 -0
  182. package/dist/runtime/components/ui/chat/ChatReasoning.vue.d.ts +7 -0
  183. package/dist/runtime/components/ui/chat/ChatToolCall.d.vue.ts +10 -0
  184. package/dist/runtime/components/ui/chat/ChatToolCall.vue +92 -0
  185. package/dist/runtime/components/ui/chat/ChatToolCall.vue.d.ts +10 -0
  186. package/dist/runtime/components/ui/chat/index.d.ts +9 -0
  187. package/dist/runtime/components/ui/chat/index.js +8 -0
  188. package/dist/runtime/components/ui/stream-markdown/StreamMarkdown.d.vue.ts +15 -0
  189. package/dist/runtime/components/ui/stream-markdown/StreamMarkdown.vue +22 -0
  190. package/dist/runtime/components/ui/stream-markdown/StreamMarkdown.vue.d.ts +15 -0
  191. package/dist/runtime/components/ui/stream-markdown/index.d.ts +1 -0
  192. package/dist/runtime/components/ui/stream-markdown/index.js +1 -0
  193. package/dist/runtime/share/coerce-from-string.d.ts +62 -0
  194. package/dist/runtime/share/coerce-from-string.js +154 -0
  195. package/dist/runtime/share/locale.d.ts +13 -7
  196. package/dist/runtime/share/locale.js +27 -5
  197. package/dist/runtime/share/use-persisted-chat.d.ts +30 -0
  198. package/dist/runtime/share/use-persisted-chat.js +34 -0
  199. package/dist/runtime/utils/ai/index.d.ts +10 -0
  200. package/dist/runtime/utils/ai/index.js +123 -33
  201. package/dist/runtime/utils/ai/parts.d.ts +30 -0
  202. package/dist/runtime/utils/ai/parts.js +9 -0
  203. package/package.json +2 -1
@@ -0,0 +1,172 @@
1
+ <script setup>
2
+ import { computed, onMounted, ref, shallowRef, toRaw } from "vue";
3
+ import { Icon } from "@iconify/vue";
4
+ import { toast } from "vue-sonner";
5
+ import { ai as $ai } from "../../utils/ai";
6
+ import { createMessageId } from "../../utils/ai/parts";
7
+ import { usePersistedChat } from "../../share/use-persisted-chat";
8
+ import { ChatMessages, ChatPrompt } from "../ui/chat";
9
+ import { Button } from "../ui/button";
10
+ import { getSystemTemplate } from "./ai-generate.system";
11
+ import { createTableAiTools } from "./utils/ai-tools";
12
+ defineOptions({ name: "ShwfedTableAiGenerate" });
13
+ const config = defineModel({ type: Object, ...{ required: true } });
14
+ const props = defineProps({
15
+ configure: { type: Function, required: false }
16
+ });
17
+ const configure = props.configure ?? (() => {
18
+ });
19
+ const messages = ref([]);
20
+ const streaming = shallowRef(null);
21
+ const input = ref("");
22
+ const busy = ref(false);
23
+ let controller = null;
24
+ const { restore: restoreChat, clear: clearChat } = usePersistedChat(
25
+ () => config.value.id,
26
+ messages
27
+ );
28
+ onMounted(restoreChat);
29
+ const working = shallowRef(config.value);
30
+ const tools = createTableAiTools({
31
+ read: () => working.value,
32
+ write: (next) => {
33
+ const fresh = { ...next };
34
+ working.value = fresh;
35
+ config.value = fresh;
36
+ },
37
+ // `configure` is threaded into each tool's schema factory so the AI sees
38
+ // the same CEL scope the inline UI validates against. Replaces the old
39
+ // `schema` field (a full `TableConfig` Schema); per-tool schemas are now
40
+ // built internally from `configure`.
41
+ configure,
42
+ genUuid: () => crypto.randomUUID()
43
+ });
44
+ function buildSystem() {
45
+ return getSystemTemplate();
46
+ }
47
+ function snapshot(m) {
48
+ return { id: m.id, role: m.role, parts: m.parts.map((p) => ({ ...p })) };
49
+ }
50
+ const status = computed(() => busy.value ? "streaming" : "ready");
51
+ const displayMessages = computed(
52
+ () => streaming.value ? [...messages.value, streaming.value] : messages.value
53
+ );
54
+ const pending = computed(() => {
55
+ if (!busy.value) return false;
56
+ const s = streaming.value;
57
+ if (!s) return true;
58
+ return s.parts.every((p) => p.type === "step-start" || p.type === "text" && !p.text);
59
+ });
60
+ const canSend = computed(() => !busy.value && input.value.trim().length > 0);
61
+ const canClear = computed(() => !busy.value && messages.value.length > 0);
62
+ function newConversation() {
63
+ if (!canClear.value) return;
64
+ messages.value = [];
65
+ clearChat();
66
+ input.value = "";
67
+ }
68
+ function commitPartial(partial) {
69
+ if (partial && partial.parts.length > 0) {
70
+ messages.value = [...messages.value, partial];
71
+ }
72
+ }
73
+ async function send() {
74
+ if (!canSend.value) return;
75
+ const text = input.value.trim();
76
+ input.value = "";
77
+ messages.value = [
78
+ ...messages.value,
79
+ { id: createMessageId(), role: "user", parts: [{ type: "text", text }] }
80
+ ];
81
+ try {
82
+ working.value = structuredClone(toRaw(config.value));
83
+ } catch {
84
+ working.value = config.value;
85
+ }
86
+ busy.value = true;
87
+ streaming.value = null;
88
+ controller = new AbortController();
89
+ try {
90
+ const final = await $ai.streamChat({
91
+ messages: messages.value,
92
+ system: buildSystem(),
93
+ tools,
94
+ signal: controller.signal,
95
+ // Re-publish a fresh snapshot per part mutation so the stream renders.
96
+ onMessageUpdate: (assistant) => {
97
+ streaming.value = snapshot(assistant);
98
+ }
99
+ });
100
+ messages.value = [...messages.value, final];
101
+ } catch (err) {
102
+ if (controller?.signal.aborted) {
103
+ commitPartial(streaming.value);
104
+ } else {
105
+ const message = err instanceof Error ? err.message : String(err);
106
+ toast.error("\u751F\u6210\u5931\u8D25", { description: message });
107
+ }
108
+ } finally {
109
+ busy.value = false;
110
+ streaming.value = null;
111
+ controller = null;
112
+ }
113
+ }
114
+ function stop() {
115
+ controller?.abort();
116
+ }
117
+ </script>
118
+
119
+ <template>
120
+ <div class="p-3">
121
+ <!-- Frameless chat: a scrolling message area flows directly in the pane over
122
+ a floating, shadowed composer — no outer border and no divider line, so
123
+ nothing visually boxes the conversation (matches the reference composer).
124
+ Fixed 48rem so the messages scroll internally (auto-scroll-to-bottom)
125
+ rather than growing the editor pane; the fixed outer height is what lets
126
+ the inner `flex-1` message area bound and scroll. -->
127
+ <div class="flex h-[48rem] flex-col bg-transparent">
128
+ <!-- New-conversation control: a quiet ghost button pinned top-right that
129
+ clears the dialogue (and its sessionStorage). Disabled while a turn
130
+ streams or when there's nothing to clear. -->
131
+ <div class="flex items-center justify-end pb-1">
132
+ <Button
133
+ type="button"
134
+ variant="ghost"
135
+ size="sm"
136
+ :disabled="!canClear"
137
+ @click="newConversation"
138
+ >
139
+ <Icon icon="fluent:add-20-regular" />
140
+ 新对话
141
+ </Button>
142
+ </div>
143
+
144
+ <ChatMessages
145
+ :messages="displayMessages"
146
+ :pending="pending"
147
+ class="min-h-0 flex-1"
148
+ >
149
+ <template #empty>
150
+ <div class="flex flex-col items-center gap-4 text-center text-zinc-400">
151
+ <Icon
152
+ icon="fluent:sparkle-20-regular"
153
+ class="size-24"
154
+ />
155
+ <p class="text-xl">
156
+ 对话开始配置
157
+ </p>
158
+ </div>
159
+ </template>
160
+ </ChatMessages>
161
+
162
+ <div class="p-2">
163
+ <ChatPrompt
164
+ v-model="input"
165
+ :status="status"
166
+ @submit="send"
167
+ @stop="stop"
168
+ />
169
+ </div>
170
+ </div>
171
+ </div>
172
+ </template>
@@ -0,0 +1,16 @@
1
+ import type { Environment } from '../../vendor/cel-js/lib/index.js';
2
+ type AnyRecord = Record<string, any>;
3
+ type __VLS_Props = {
4
+ configure?: (env: Environment) => void;
5
+ };
6
+ type __VLS_ModelProps = {
7
+ modelValue: AnyRecord;
8
+ };
9
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
10
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
+ "update:modelValue": (value: AnyRecord) => any;
12
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
+ "onUpdate:modelValue"?: ((value: AnyRecord) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
@@ -78,7 +78,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
78
78
  readonly hideTitle?: boolean | undefined;
79
79
  }, import("../../../../actions/schema.js").RegistryItemValue | {
80
80
  readonly id: string;
81
- readonly title: readonly [{
81
+ readonly title: string | readonly [{
82
82
  readonly locale: "zh";
83
83
  readonly message: string;
84
84
  }, ...{
@@ -89,7 +89,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
89
89
  readonly disabled?: string | undefined;
90
90
  readonly icon?: string | undefined;
91
91
  readonly hidden?: string | undefined;
92
- readonly tooltip?: readonly [{
92
+ readonly tooltip?: string | readonly [{
93
93
  readonly locale: "zh";
94
94
  readonly message: string;
95
95
  }, ...{
@@ -101,7 +101,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
101
101
  readonly hideTitle?: boolean | undefined;
102
102
  } | {
103
103
  readonly id: string;
104
- readonly title: readonly [{
104
+ readonly title: string | readonly [{
105
105
  readonly locale: "zh";
106
106
  readonly message: string;
107
107
  }, ...{
@@ -110,7 +110,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
110
110
  }[]];
111
111
  readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
112
112
  readonly id: string;
113
- readonly title: readonly [{
113
+ readonly title: string | readonly [{
114
114
  readonly locale: "zh";
115
115
  readonly message: string;
116
116
  }, ...{
@@ -120,7 +120,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
120
120
  readonly disabled?: string | undefined;
121
121
  readonly icon?: string | undefined;
122
122
  readonly hidden?: string | undefined;
123
- readonly tooltip?: readonly [{
123
+ readonly tooltip?: string | readonly [{
124
124
  readonly locale: "zh";
125
125
  readonly message: string;
126
126
  }, ...{
@@ -134,13 +134,19 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
134
134
  readonly icon?: string | undefined;
135
135
  readonly hideTitle?: boolean | undefined;
136
136
  }, never>>;
137
- title: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
138
- locale: Schema.Literal<["zh"]>;
139
- message: Schema.SchemaClass<string, string, never>;
140
- }>], [Schema.Struct<{
141
- locale: Schema.Literal<["ja", "en", "ko"]>;
142
- message: Schema.SchemaClass<string, string, never>;
143
- }>]>>;
137
+ title: Schema.optional<Schema.suspend<readonly [{
138
+ readonly locale: "zh";
139
+ readonly message: string;
140
+ }, ...{
141
+ readonly locale: "en" | "ja" | "ko";
142
+ readonly message: string;
143
+ }[]], string | readonly [{
144
+ readonly locale: "zh";
145
+ readonly message: string;
146
+ }, ...{
147
+ readonly locale: "en" | "ja" | "ko";
148
+ readonly message: string;
149
+ }[]], never>>;
144
150
  size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
145
151
  grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
146
152
  id: Schema.refine<string, typeof Schema.String>;
@@ -13,25 +13,37 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
13
13
  default: () => "left";
14
14
  }>;
15
15
  format: Schema.SchemaClass<string, string, never>;
16
- title: Schema.TupleType<readonly [Schema.Struct<{
17
- locale: Schema.Literal<["zh"]>;
18
- message: Schema.SchemaClass<string, string, never>;
19
- }>], [Schema.Struct<{
20
- locale: Schema.Literal<["ja", "en", "ko"]>;
21
- message: Schema.SchemaClass<string, string, never>;
22
- }>]>;
16
+ title: Schema.suspend<readonly [{
17
+ readonly locale: "zh";
18
+ readonly message: string;
19
+ }, ...{
20
+ readonly locale: "en" | "ja" | "ko";
21
+ readonly message: string;
22
+ }[]], string | readonly [{
23
+ readonly locale: "zh";
24
+ readonly message: string;
25
+ }, ...{
26
+ readonly locale: "en" | "ja" | "ko";
27
+ readonly message: string;
28
+ }[]], never>;
23
29
  accessor: Schema.optional<Schema.Schema<string, string, never>>;
24
30
  enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
25
31
  sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
26
32
  size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
27
33
  grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
28
- tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
29
- locale: Schema.Literal<["zh"]>;
30
- message: Schema.SchemaClass<string, string, never>;
31
- }>], [Schema.Struct<{
32
- locale: Schema.Literal<["ja", "en", "ko"]>;
33
- message: Schema.SchemaClass<string, string, never>;
34
- }>]>>;
34
+ tooltip: Schema.optional<Schema.suspend<readonly [{
35
+ readonly locale: "zh";
36
+ readonly message: string;
37
+ }, ...{
38
+ readonly locale: "en" | "ja" | "ko";
39
+ readonly message: string;
40
+ }[]], string | readonly [{
41
+ readonly locale: "zh";
42
+ readonly message: string;
43
+ }, ...{
44
+ readonly locale: "en" | "ja" | "ko";
45
+ readonly message: string;
46
+ }[]], never>>;
35
47
  hidden: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
36
48
  id: Schema.refine<string, typeof Schema.String>;
37
49
  groupId: Schema.optional<typeof Schema.UUID>;
@@ -14,24 +14,36 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
14
14
  align: Schema.optionalWith<Schema.Literal<["left", "center", "right"]>, {
15
15
  default: () => "center";
16
16
  }>;
17
- title: Schema.TupleType<readonly [Schema.Struct<{
18
- locale: Schema.Literal<["zh"]>;
19
- message: Schema.SchemaClass<string, string, never>;
20
- }>], [Schema.Struct<{
21
- locale: Schema.Literal<["ja", "en", "ko"]>;
22
- message: Schema.SchemaClass<string, string, never>;
23
- }>]>;
17
+ title: Schema.suspend<readonly [{
18
+ readonly locale: "zh";
19
+ readonly message: string;
20
+ }, ...{
21
+ readonly locale: "en" | "ja" | "ko";
22
+ readonly message: string;
23
+ }[]], string | readonly [{
24
+ readonly locale: "zh";
25
+ readonly message: string;
26
+ }, ...{
27
+ readonly locale: "en" | "ja" | "ko";
28
+ readonly message: string;
29
+ }[]], never>;
24
30
  enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
25
31
  sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
26
32
  size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
27
33
  grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
28
- tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
29
- locale: Schema.Literal<["zh"]>;
30
- message: Schema.SchemaClass<string, string, never>;
31
- }>], [Schema.Struct<{
32
- locale: Schema.Literal<["ja", "en", "ko"]>;
33
- message: Schema.SchemaClass<string, string, never>;
34
- }>]>>;
34
+ tooltip: Schema.optional<Schema.suspend<readonly [{
35
+ readonly locale: "zh";
36
+ readonly message: string;
37
+ }, ...{
38
+ readonly locale: "en" | "ja" | "ko";
39
+ readonly message: string;
40
+ }[]], string | readonly [{
41
+ readonly locale: "zh";
42
+ readonly message: string;
43
+ }, ...{
44
+ readonly locale: "en" | "ja" | "ko";
45
+ readonly message: string;
46
+ }[]], never>>;
35
47
  hidden: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
36
48
  id: Schema.refine<string, typeof Schema.String>;
37
49
  groupId: Schema.optional<typeof Schema.UUID>;
@@ -9,38 +9,56 @@ export declare const metadata: {
9
9
  readonly icon: "fluent:markdown-20-regular";
10
10
  };
11
11
  export declare function schema(configure: (env: Environment) => void): Schema.Struct<{
12
- title: Schema.TupleType<readonly [Schema.Struct<{
13
- locale: Schema.Literal<["zh"]>;
14
- message: Schema.SchemaClass<string, string, never>;
15
- }>], [Schema.Struct<{
16
- locale: Schema.Literal<["ja", "en", "ko"]>;
17
- message: Schema.SchemaClass<string, string, never>;
18
- }>]>;
12
+ title: Schema.suspend<readonly [{
13
+ readonly locale: "zh";
14
+ readonly message: string;
15
+ }, ...{
16
+ readonly locale: "en" | "ja" | "ko";
17
+ readonly message: string;
18
+ }[]], string | readonly [{
19
+ readonly locale: "zh";
20
+ readonly message: string;
21
+ }, ...{
22
+ readonly locale: "en" | "ja" | "ko";
23
+ readonly message: string;
24
+ }[]], never>;
19
25
  align: Schema.optionalWith<Schema.Literal<["left", "center", "right"]>, {
20
26
  default: () => "left";
21
27
  }>;
22
28
  size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
23
29
  grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
24
- tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
25
- locale: Schema.Literal<["zh"]>;
26
- message: Schema.SchemaClass<string, string, never>;
27
- }>], [Schema.Struct<{
28
- locale: Schema.Literal<["ja", "en", "ko"]>;
29
- message: Schema.SchemaClass<string, string, never>;
30
- }>]>>;
30
+ tooltip: Schema.optional<Schema.suspend<readonly [{
31
+ readonly locale: "zh";
32
+ readonly message: string;
33
+ }, ...{
34
+ readonly locale: "en" | "ja" | "ko";
35
+ readonly message: string;
36
+ }[]], string | readonly [{
37
+ readonly locale: "zh";
38
+ readonly message: string;
39
+ }, ...{
40
+ readonly locale: "en" | "ja" | "ko";
41
+ readonly message: string;
42
+ }[]], never>>;
31
43
  markdown: Schema.refine<readonly [{
32
44
  readonly locale: "zh";
33
45
  readonly message: string;
34
46
  }, ...{
35
47
  readonly locale: "en" | "ja" | "ko";
36
48
  readonly message: string;
37
- }[]], Schema.TupleType<readonly [Schema.Struct<{
38
- locale: Schema.Literal<["zh"]>;
39
- message: Schema.SchemaClass<string, string, never>;
40
- }>], [Schema.Struct<{
41
- locale: Schema.Literal<["ja", "en", "ko"]>;
42
- message: Schema.SchemaClass<string, string, never>;
43
- }>]>>;
49
+ }[]], Schema.suspend<readonly [{
50
+ readonly locale: "zh";
51
+ readonly message: string;
52
+ }, ...{
53
+ readonly locale: "en" | "ja" | "ko";
54
+ readonly message: string;
55
+ }[]], string | readonly [{
56
+ readonly locale: "zh";
57
+ readonly message: string;
58
+ }, ...{
59
+ readonly locale: "en" | "ja" | "ko";
60
+ readonly message: string;
61
+ }[]], never>>;
44
62
  copyExpression: Schema.optional<Schema.Schema<string, string, never>>;
45
63
  id: Schema.refine<string, typeof Schema.String>;
46
64
  groupId: Schema.optional<typeof Schema.UUID>;
@@ -17,25 +17,37 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
17
17
  }>;
18
18
  preserveMode: Schema.optional<Schema.Literal<["round", "floor", "ceil"]>>;
19
19
  preserveDigits: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
20
- title: Schema.TupleType<readonly [Schema.Struct<{
21
- locale: Schema.Literal<["zh"]>;
22
- message: Schema.SchemaClass<string, string, never>;
23
- }>], [Schema.Struct<{
24
- locale: Schema.Literal<["ja", "en", "ko"]>;
25
- message: Schema.SchemaClass<string, string, never>;
26
- }>]>;
20
+ title: Schema.suspend<readonly [{
21
+ readonly locale: "zh";
22
+ readonly message: string;
23
+ }, ...{
24
+ readonly locale: "en" | "ja" | "ko";
25
+ readonly message: string;
26
+ }[]], string | readonly [{
27
+ readonly locale: "zh";
28
+ readonly message: string;
29
+ }, ...{
30
+ readonly locale: "en" | "ja" | "ko";
31
+ readonly message: string;
32
+ }[]], never>;
27
33
  accessor: Schema.optional<Schema.Schema<string, string, never>>;
28
34
  enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
29
35
  sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
30
36
  size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
31
37
  grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
32
- tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
33
- locale: Schema.Literal<["zh"]>;
34
- message: Schema.SchemaClass<string, string, never>;
35
- }>], [Schema.Struct<{
36
- locale: Schema.Literal<["ja", "en", "ko"]>;
37
- message: Schema.SchemaClass<string, string, never>;
38
- }>]>>;
38
+ tooltip: Schema.optional<Schema.suspend<readonly [{
39
+ readonly locale: "zh";
40
+ readonly message: string;
41
+ }, ...{
42
+ readonly locale: "en" | "ja" | "ko";
43
+ readonly message: string;
44
+ }[]], string | readonly [{
45
+ readonly locale: "zh";
46
+ readonly message: string;
47
+ }, ...{
48
+ readonly locale: "en" | "ja" | "ko";
49
+ readonly message: string;
50
+ }[]], never>>;
39
51
  hidden: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
40
52
  id: Schema.refine<string, typeof Schema.String>;
41
53
  groupId: Schema.optional<typeof Schema.UUID>;
@@ -16,25 +16,37 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
16
16
  default: () => "plain";
17
17
  }>;
18
18
  copyExpression: Schema.optional<Schema.Schema<string, string, never>>;
19
- title: Schema.TupleType<readonly [Schema.Struct<{
20
- locale: Schema.Literal<["zh"]>;
21
- message: Schema.SchemaClass<string, string, never>;
22
- }>], [Schema.Struct<{
23
- locale: Schema.Literal<["ja", "en", "ko"]>;
24
- message: Schema.SchemaClass<string, string, never>;
25
- }>]>;
19
+ title: Schema.suspend<readonly [{
20
+ readonly locale: "zh";
21
+ readonly message: string;
22
+ }, ...{
23
+ readonly locale: "en" | "ja" | "ko";
24
+ readonly message: string;
25
+ }[]], string | readonly [{
26
+ readonly locale: "zh";
27
+ readonly message: string;
28
+ }, ...{
29
+ readonly locale: "en" | "ja" | "ko";
30
+ readonly message: string;
31
+ }[]], never>;
26
32
  accessor: Schema.optional<Schema.Schema<string, string, never>>;
27
33
  enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
28
34
  sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
29
35
  size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
30
36
  grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
31
- tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
32
- locale: Schema.Literal<["zh"]>;
33
- message: Schema.SchemaClass<string, string, never>;
34
- }>], [Schema.Struct<{
35
- locale: Schema.Literal<["ja", "en", "ko"]>;
36
- message: Schema.SchemaClass<string, string, never>;
37
- }>]>>;
37
+ tooltip: Schema.optional<Schema.suspend<readonly [{
38
+ readonly locale: "zh";
39
+ readonly message: string;
40
+ }, ...{
41
+ readonly locale: "en" | "ja" | "ko";
42
+ readonly message: string;
43
+ }[]], string | readonly [{
44
+ readonly locale: "zh";
45
+ readonly message: string;
46
+ }, ...{
47
+ readonly locale: "en" | "ja" | "ko";
48
+ readonly message: string;
49
+ }[]], never>>;
38
50
  hidden: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
39
51
  id: Schema.refine<string, typeof Schema.String>;
40
52
  groupId: Schema.optional<typeof Schema.UUID>;
@@ -22,25 +22,37 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
22
22
  compatibilityDate: Schema.optional<Schema.SchemaClass<string, string, never>>;
23
23
  params: Schema.optional<Schema.SchemaClass<unknown, unknown, never>>;
24
24
  }>>>;
25
- title: Schema.TupleType<readonly [Schema.Struct<{
26
- locale: Schema.Literal<["zh"]>;
27
- message: Schema.SchemaClass<string, string, never>;
28
- }>], [Schema.Struct<{
29
- locale: Schema.Literal<["ja", "en", "ko"]>;
30
- message: Schema.SchemaClass<string, string, never>;
31
- }>]>;
25
+ title: Schema.suspend<readonly [{
26
+ readonly locale: "zh";
27
+ readonly message: string;
28
+ }, ...{
29
+ readonly locale: "en" | "ja" | "ko";
30
+ readonly message: string;
31
+ }[]], string | readonly [{
32
+ readonly locale: "zh";
33
+ readonly message: string;
34
+ }, ...{
35
+ readonly locale: "en" | "ja" | "ko";
36
+ readonly message: string;
37
+ }[]], never>;
32
38
  accessor: Schema.optional<Schema.Schema<string, string, never>>;
33
39
  enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
34
40
  sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
35
41
  size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
36
42
  grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
37
- tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
38
- locale: Schema.Literal<["zh"]>;
39
- message: Schema.SchemaClass<string, string, never>;
40
- }>], [Schema.Struct<{
41
- locale: Schema.Literal<["ja", "en", "ko"]>;
42
- message: Schema.SchemaClass<string, string, never>;
43
- }>]>>;
43
+ tooltip: Schema.optional<Schema.suspend<readonly [{
44
+ readonly locale: "zh";
45
+ readonly message: string;
46
+ }, ...{
47
+ readonly locale: "en" | "ja" | "ko";
48
+ readonly message: string;
49
+ }[]], string | readonly [{
50
+ readonly locale: "zh";
51
+ readonly message: string;
52
+ }, ...{
53
+ readonly locale: "en" | "ja" | "ko";
54
+ readonly message: string;
55
+ }[]], never>>;
44
56
  hidden: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
45
57
  id: Schema.refine<string, typeof Schema.String>;
46
58
  groupId: Schema.optional<typeof Schema.UUID>;