@shwfed/config 2.11.5 → 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 (236) 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-04-18/com.shwfed.actions.button.prototype/config.vue +1 -0
  5. package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/schema.d.ts +13 -7
  6. package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/schema.d.ts +13 -7
  7. package/dist/runtime/components/actions/config.vue +2 -0
  8. package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/schema.d.ts +13 -7
  9. package/dist/runtime/components/actions/schema.d.ts +82 -52
  10. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/schema.d.ts +5 -5
  11. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/schema.d.ts +13 -7
  12. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +62 -38
  13. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/schema.d.ts +26 -14
  14. package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.xy/schema.d.ts +39 -21
  15. package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/schema.d.ts +13 -7
  16. package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.card/schema.d.ts +26 -14
  17. package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/schema.d.ts +44 -26
  18. package/dist/runtime/components/config/schema.d.ts +13 -7
  19. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.d.ts +26 -14
  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/schema.d.ts +65 -35
  24. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/schema.d.ts +78 -42
  25. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/schema.d.ts +91 -49
  26. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.d.ts +78 -42
  27. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/schema.d.ts +91 -49
  28. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/schema.d.ts +39 -21
  29. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/schema.d.ts +39 -21
  30. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.d.ts +57 -33
  31. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/schema.d.ts +65 -35
  32. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/schema.d.ts +65 -35
  33. package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/schema.d.ts +104 -56
  34. package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/schema.d.ts +78 -42
  35. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/schema.d.ts +65 -35
  36. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.d.ts +78 -42
  37. package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/schema.d.ts +91 -49
  38. package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/schema.d.ts +91 -49
  39. package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/schema.d.ts +39 -21
  40. package/dist/runtime/components/form/fields/2026-05-20/com.shwfed.form.field.collapsible/schema.d.ts +13 -7
  41. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +22 -22
  42. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +22 -22
  43. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/schema.d.ts +78 -42
  44. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/schema.d.ts +78 -42
  45. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/schema.d.ts +91 -49
  46. package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/schema.d.ts +65 -35
  47. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +22 -22
  48. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +22 -22
  49. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/schema.d.ts +78 -42
  50. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +22 -22
  51. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +22 -22
  52. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/schema.d.ts +78 -42
  53. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/schema.d.ts +169 -91
  54. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/schema.d.ts +169 -91
  55. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +22 -22
  56. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +22 -22
  57. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/schema.d.ts +78 -42
  58. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +22 -22
  59. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +22 -22
  60. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/schema.d.ts +78 -42
  61. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +22 -22
  62. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +22 -22
  63. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/schema.d.ts +78 -42
  64. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +22 -22
  65. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +22 -22
  66. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/schema.d.ts +78 -42
  67. package/dist/runtime/components/form/fields/2026-06-09/com.shwfed.form.field.upload/schema.d.ts +78 -42
  68. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.multi/schema.d.ts +130 -70
  69. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.single/schema.d.ts +130 -70
  70. package/dist/runtime/components/form/fields/2026-06-20/com.shwfed.form.field.tabs/schema.d.ts +26 -14
  71. package/dist/runtime/components/form/utils/common.d.ts +26 -14
  72. package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/schema.d.ts +13 -7
  73. package/dist/runtime/components/operations/2026-06-11/com.shwfed.operation.http.request.json/schema.d.ts +13 -7
  74. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/schema.d.ts +13 -7
  75. package/dist/runtime/components/table/ai-generate.d.vue.ts +16 -0
  76. package/dist/runtime/components/table/ai-generate.system.d.ts +1 -0
  77. package/dist/runtime/components/table/ai-generate.system.js +10 -0
  78. package/dist/runtime/components/table/ai-generate.system.md +95 -0
  79. package/dist/runtime/components/table/ai-generate.vue +172 -0
  80. package/dist/runtime/components/table/ai-generate.vue.d.ts +16 -0
  81. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.d.ts +18 -12
  82. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.d.ts +26 -14
  83. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/runtime.vue +3 -4
  84. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.d.ts +26 -14
  85. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/runtime.vue +3 -3
  86. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.d.ts +39 -21
  87. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.d.ts +26 -14
  88. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/runtime.vue +2 -2
  89. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/runtime.vue +2 -2
  90. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.d.ts +26 -14
  91. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/runtime.vue +5 -6
  92. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/schema.d.ts +26 -14
  93. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/runtime.vue +5 -6
  94. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.d.ts +26 -14
  95. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/runtime.vue +2 -2
  96. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/schema.d.ts +91 -49
  97. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/runtime.vue +2 -2
  98. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.d.ts +44 -26
  99. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/runtime.vue +2 -2
  100. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/schema.d.ts +52 -28
  101. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/runtime.vue +2 -2
  102. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.d.ts +52 -28
  103. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/runtime.vue +2 -2
  104. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.d.ts +44 -26
  105. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/runtime.vue +2 -2
  106. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/schema.d.ts +52 -28
  107. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/runtime.vue +2 -2
  108. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/schema.d.ts +91 -49
  109. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/runtime.vue +2 -2
  110. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/schema.d.ts +91 -49
  111. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/runtime.vue +2 -2
  112. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/schema.d.ts +52 -28
  113. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/runtime.vue +2 -2
  114. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/schema.d.ts +91 -49
  115. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/runtime.vue +2 -2
  116. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/schema.d.ts +156 -84
  117. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/runtime.vue +2 -2
  118. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/schema.d.ts +156 -84
  119. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/runtime.vue +2 -2
  120. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/schema.d.ts +156 -84
  121. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/runtime.vue +2 -2
  122. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/schema.d.ts +156 -84
  123. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/runtime.vue +2 -2
  124. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +65 -35
  125. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/runtime.vue +2 -2
  126. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/schema.d.ts +65 -35
  127. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/runtime.vue +2 -2
  128. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.d.ts +156 -84
  129. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/runtime.vue +2 -2
  130. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.d.ts +156 -84
  131. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/runtime.vue +2 -2
  132. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +65 -35
  133. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/runtime.vue +2 -2
  134. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/schema.d.ts +65 -35
  135. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/runtime.vue +2 -2
  136. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/schema.d.ts +117 -63
  137. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/runtime.vue +2 -2
  138. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/schema.d.ts +117 -63
  139. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/runtime.vue +2 -2
  140. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +52 -28
  141. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/runtime.vue +2 -2
  142. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/schema.d.ts +52 -28
  143. package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/runtime.vue +3 -3
  144. package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.d.ts +70 -40
  145. package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/runtime.vue +4 -4
  146. package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/schema.d.ts +78 -42
  147. package/dist/runtime/components/table/config.d.vue.ts +3 -3
  148. package/dist/runtime/components/table/config.vue +38 -3
  149. package/dist/runtime/components/table/config.vue.d.ts +3 -3
  150. package/dist/runtime/components/table/row-provider.vue +2 -2
  151. package/dist/runtime/components/table/schema.d.ts +114 -66
  152. package/dist/runtime/components/table/utils/ai-tools.d.ts +11 -0
  153. package/dist/runtime/components/table/utils/ai-tools.js +458 -0
  154. package/dist/runtime/components/table/utils/resolve.d.ts +23 -0
  155. package/dist/runtime/components/table/utils/resolve.js +3 -0
  156. package/dist/runtime/components/table/utils/shared.d.ts +65 -35
  157. package/dist/runtime/components/table/utils/shared.js +16 -17
  158. package/dist/runtime/components/ui/alert-dialog/AlertDialogFooter.vue +1 -1
  159. package/dist/runtime/components/ui/chat/ChatMessage.d.vue.ts +7 -0
  160. package/dist/runtime/components/ui/chat/ChatMessage.vue +35 -0
  161. package/dist/runtime/components/ui/chat/ChatMessage.vue.d.ts +7 -0
  162. package/dist/runtime/components/ui/chat/ChatMessagePart.d.vue.ts +7 -0
  163. package/dist/runtime/components/ui/chat/ChatMessagePart.vue +43 -0
  164. package/dist/runtime/components/ui/chat/ChatMessagePart.vue.d.ts +7 -0
  165. package/dist/runtime/components/ui/chat/ChatMessages.d.vue.ts +18 -0
  166. package/dist/runtime/components/ui/chat/ChatMessages.vue +63 -0
  167. package/dist/runtime/components/ui/chat/ChatMessages.vue.d.ts +18 -0
  168. package/dist/runtime/components/ui/chat/ChatPrompt.d.vue.ts +24 -0
  169. package/dist/runtime/components/ui/chat/ChatPrompt.vue +43 -0
  170. package/dist/runtime/components/ui/chat/ChatPrompt.vue.d.ts +24 -0
  171. package/dist/runtime/components/ui/chat/ChatPromptSubmit.d.vue.ts +18 -0
  172. package/dist/runtime/components/ui/chat/ChatPromptSubmit.vue +41 -0
  173. package/dist/runtime/components/ui/chat/ChatPromptSubmit.vue.d.ts +18 -0
  174. package/dist/runtime/components/ui/chat/ChatReasoning.d.vue.ts +7 -0
  175. package/dist/runtime/components/ui/chat/ChatReasoning.vue +33 -0
  176. package/dist/runtime/components/ui/chat/ChatReasoning.vue.d.ts +7 -0
  177. package/dist/runtime/components/ui/chat/ChatToolCall.d.vue.ts +10 -0
  178. package/dist/runtime/components/ui/chat/ChatToolCall.vue +92 -0
  179. package/dist/runtime/components/ui/chat/ChatToolCall.vue.d.ts +10 -0
  180. package/dist/runtime/components/ui/chat/index.d.ts +9 -0
  181. package/dist/runtime/components/ui/chat/index.js +8 -0
  182. package/dist/runtime/components/ui/stream-markdown/StreamMarkdown.d.vue.ts +15 -0
  183. package/dist/runtime/components/ui/stream-markdown/StreamMarkdown.vue +22 -0
  184. package/dist/runtime/components/ui/stream-markdown/StreamMarkdown.vue.d.ts +15 -0
  185. package/dist/runtime/components/ui/stream-markdown/index.d.ts +1 -0
  186. package/dist/runtime/components/ui/stream-markdown/index.js +1 -0
  187. package/dist/runtime/share/coerce-from-string.d.ts +62 -0
  188. package/dist/runtime/share/coerce-from-string.js +154 -0
  189. package/dist/runtime/share/locale.d.ts +13 -7
  190. package/dist/runtime/share/locale.js +27 -5
  191. package/dist/runtime/share/use-persisted-chat.d.ts +30 -0
  192. package/dist/runtime/share/use-persisted-chat.js +34 -0
  193. package/dist/runtime/utils/ai/index.d.ts +10 -0
  194. package/dist/runtime/utils/ai/index.js +123 -33
  195. package/dist/runtime/utils/ai/parts.d.ts +30 -0
  196. package/dist/runtime/utils/ai/parts.js +9 -0
  197. package/dist/runtime/utils/cel-context.d.ts +1 -0
  198. package/dist/runtime/utils/cel-context.js +28 -0
  199. package/package.json +4 -8
  200. package/dist/mcp.mjs +0 -102434
  201. package/dist/preview/assets/FieldGroup.vue_vue_type_script_setup_true_lang-BK4nj6mF.js +0 -1
  202. package/dist/preview/assets/badge-Df9KgnrB.js +0 -1
  203. package/dist/preview/assets/config-B3NwVBxT.js +0 -1
  204. package/dist/preview/assets/config-BrtNnMlJ.js +0 -1
  205. package/dist/preview/assets/config-CUJNegvX.js +0 -1
  206. package/dist/preview/assets/config-ChrXUmKf.js +0 -1
  207. package/dist/preview/assets/config-CmEXMpIU.js +0 -1
  208. package/dist/preview/assets/config-CrBoFiYB.js +0 -1
  209. package/dist/preview/assets/config-D-Hf0dls.js +0 -1
  210. package/dist/preview/assets/config-D4cXwy75.js +0 -1
  211. package/dist/preview/assets/config-DCj5Qyiq.js +0 -1
  212. package/dist/preview/assets/config-DPfx03nM.js +0 -1
  213. package/dist/preview/assets/config-DWF0bcmF.js +0 -1
  214. package/dist/preview/assets/config-Do4K9hI7.js +0 -1
  215. package/dist/preview/assets/config-DwblM1r8.js +0 -1
  216. package/dist/preview/assets/config-MW5Hs8yE.js +0 -1
  217. package/dist/preview/assets/config-uNoNEc-1.js +0 -1
  218. package/dist/preview/assets/definition.vue_vue_type_script_setup_true_lang-CbtpddWK.js +0 -1
  219. package/dist/preview/assets/index-Bm7I4Tr0.css +0 -1
  220. package/dist/preview/assets/index-CkyV576r.js +0 -775
  221. package/dist/preview/assets/index-CtW2E0ME.js +0 -1
  222. package/dist/preview/assets/index-xDmBF3zO.js +0 -1
  223. package/dist/preview/assets/item-D0e9Cx1Q.js +0 -1
  224. package/dist/preview/assets/runtime-3tGIbclh.js +0 -1
  225. package/dist/preview/assets/runtime-BCePD3XR.js +0 -1
  226. package/dist/preview/assets/runtime-BMyFUaSM.js +0 -1
  227. package/dist/preview/assets/runtime-BXZU3EqA.js +0 -1
  228. package/dist/preview/assets/runtime-BySNFNSO.js +0 -1
  229. package/dist/preview/assets/runtime-CI02gDFj.js +0 -1
  230. package/dist/preview/assets/runtime-DCo1Qp8a.js +0 -1
  231. package/dist/preview/assets/runtime-DDSKV70N.js +0 -1
  232. package/dist/preview/assets/runtime-Dc7pytUy.js +0 -1
  233. package/dist/preview/assets/runtime-ckLrkTMm.js +0 -1
  234. package/dist/preview/assets/runtime-y4oJ8VkY.js +0 -1
  235. package/dist/preview/assets/schema-meta-D0y0sKal.js +0 -1
  236. package/dist/preview/index.html +0 -19
@@ -13,13 +13,19 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
13
13
  align: Schema.optionalWith<Schema.Literal<["left", "center", "right"]>, {
14
14
  default: () => "left";
15
15
  }>;
16
- placeholder: Schema.optional<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
+ placeholder: Schema.optional<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
  disabled: Schema.optional<Schema.Schema<string, string, never>>;
24
30
  readonly: Schema.optional<Schema.Schema<string, string, never>>;
25
31
  derived: Schema.optional<Schema.Struct<{
@@ -39,37 +45,55 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
39
45
  }, ...{
40
46
  readonly locale: "en" | "ja" | "ko";
41
47
  readonly message: string;
42
- }[]], Schema.TupleType<readonly [Schema.Struct<{
43
- locale: Schema.Literal<["zh"]>;
44
- message: Schema.SchemaClass<string, string, never>;
45
- }>], [Schema.Struct<{
46
- locale: Schema.Literal<["ja", "en", "ko"]>;
47
- message: Schema.SchemaClass<string, string, never>;
48
- }>]>>>;
48
+ }[]], Schema.suspend<readonly [{
49
+ readonly locale: "zh";
50
+ readonly message: string;
51
+ }, ...{
52
+ readonly locale: "en" | "ja" | "ko";
53
+ readonly message: string;
54
+ }[]], string | readonly [{
55
+ readonly locale: "zh";
56
+ readonly message: string;
57
+ }, ...{
58
+ readonly locale: "en" | "ja" | "ko";
59
+ readonly message: string;
60
+ }[]], never>>>;
49
61
  keywords: Schema.optional<Schema.Schema<string, string, never>>;
50
62
  nodeSelectable: Schema.optional<Schema.Schema<string, string, never>>;
51
63
  expandAll: Schema.optionalWith<typeof Schema.Boolean, {
52
64
  default: () => false;
53
65
  }>;
54
- title: Schema.TupleType<readonly [Schema.Struct<{
55
- locale: Schema.Literal<["zh"]>;
56
- message: Schema.SchemaClass<string, string, never>;
57
- }>], [Schema.Struct<{
58
- locale: Schema.Literal<["ja", "en", "ko"]>;
59
- message: Schema.SchemaClass<string, string, never>;
60
- }>]>;
66
+ title: Schema.suspend<readonly [{
67
+ readonly locale: "zh";
68
+ readonly message: string;
69
+ }, ...{
70
+ readonly locale: "en" | "ja" | "ko";
71
+ readonly message: string;
72
+ }[]], string | readonly [{
73
+ readonly locale: "zh";
74
+ readonly message: string;
75
+ }, ...{
76
+ readonly locale: "en" | "ja" | "ko";
77
+ readonly message: string;
78
+ }[]], never>;
61
79
  binding: Schema.refine<string, typeof Schema.String>;
62
80
  enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
63
81
  sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
64
82
  size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
65
83
  grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
66
- tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
67
- locale: Schema.Literal<["zh"]>;
68
- message: Schema.SchemaClass<string, string, never>;
69
- }>], [Schema.Struct<{
70
- locale: Schema.Literal<["ja", "en", "ko"]>;
71
- message: Schema.SchemaClass<string, string, never>;
72
- }>]>>;
84
+ tooltip: Schema.optional<Schema.suspend<readonly [{
85
+ readonly locale: "zh";
86
+ readonly message: string;
87
+ }, ...{
88
+ readonly locale: "en" | "ja" | "ko";
89
+ readonly message: string;
90
+ }[]], string | readonly [{
91
+ readonly locale: "zh";
92
+ readonly message: string;
93
+ }, ...{
94
+ readonly locale: "en" | "ja" | "ko";
95
+ readonly message: string;
96
+ }[]], never>>;
73
97
  hidden: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
74
98
  id: Schema.refine<string, typeof Schema.String>;
75
99
  groupId: Schema.optional<typeof Schema.UUID>;
@@ -4,7 +4,7 @@ import { computed } from "vue";
4
4
  import { useI18n } from "vue-i18n";
5
5
  import { format as formatDate } from "date-fns";
6
6
  import { cel as $cel } from "../../../../../utils/cel";
7
- import { celBindings, injectCELContext } from "../../../../../utils/cel-context";
7
+ import { celScope, injectCELContext } from "../../../../../utils/cel-context";
8
8
  import { useFormReadonly } from "../../../../form/utils/readonly";
9
9
  import { getLocalizedText } from "../../../../../share/locale";
10
10
  import { DATE_PICKER_DEFAULT_FORMATS, DatePicker } from "../../../../ui/date-picker";
@@ -26,7 +26,7 @@ const placeholderText = computed(
26
26
  function evalBool(expression, label) {
27
27
  if (!expression) return false;
28
28
  try {
29
- return Effect.runSync($cel(expression, celBindings(celContext))) === true;
29
+ return Effect.runSync($cel(expression, celScope(celContext))) === true;
30
30
  } catch (e) {
31
31
  console.error(`[shwfed-table] date-input ${label} failed`, e);
32
32
  return false;
@@ -52,7 +52,7 @@ const shortcuts = computed(() => {
52
52
  name: preset.label,
53
53
  value: () => {
54
54
  try {
55
- const d = Effect.runSync($cel(preset.value, celBindings(celContext)));
55
+ const d = Effect.runSync($cel(preset.value, celScope(celContext)));
56
56
  return formatDate(d, resolvedValueFormat.value);
57
57
  } catch (e) {
58
58
  console.error(`[shwfed-table] date-input preset "${preset.value}" failed`, e);
@@ -10,26 +10,38 @@ export declare const metadata: {
10
10
  };
11
11
  export declare function presetSchema(configure: (env: Environment) => void): Schema.Struct<{
12
12
  id: Schema.refine<string, typeof Schema.String>;
13
- label: Schema.TupleType<readonly [Schema.Struct<{
14
- locale: Schema.Literal<["zh"]>;
15
- message: Schema.SchemaClass<string, string, never>;
16
- }>], [Schema.Struct<{
17
- locale: Schema.Literal<["ja", "en", "ko"]>;
18
- message: Schema.SchemaClass<string, string, never>;
19
- }>]>;
13
+ label: Schema.suspend<readonly [{
14
+ readonly locale: "zh";
15
+ readonly message: string;
16
+ }, ...{
17
+ readonly locale: "en" | "ja" | "ko";
18
+ readonly message: string;
19
+ }[]], string | readonly [{
20
+ readonly locale: "zh";
21
+ readonly message: string;
22
+ }, ...{
23
+ readonly locale: "en" | "ja" | "ko";
24
+ readonly message: string;
25
+ }[]], never>;
20
26
  value: Schema.Schema<string, string, never>;
21
27
  }>;
22
28
  export declare function schema(configure: (env: Environment) => void): Schema.Struct<{
23
29
  align: Schema.optionalWith<Schema.Literal<["left", "center", "right"]>, {
24
30
  default: () => "left";
25
31
  }>;
26
- placeholder: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
27
- locale: Schema.Literal<["zh"]>;
28
- message: Schema.SchemaClass<string, string, never>;
29
- }>], [Schema.Struct<{
30
- locale: Schema.Literal<["ja", "en", "ko"]>;
31
- message: Schema.SchemaClass<string, string, never>;
32
- }>]>>;
32
+ placeholder: Schema.optional<Schema.suspend<readonly [{
33
+ readonly locale: "zh";
34
+ readonly message: string;
35
+ }, ...{
36
+ readonly locale: "en" | "ja" | "ko";
37
+ readonly message: string;
38
+ }[]], string | readonly [{
39
+ readonly locale: "zh";
40
+ readonly message: string;
41
+ }, ...{
42
+ readonly locale: "en" | "ja" | "ko";
43
+ readonly message: string;
44
+ }[]], never>>;
33
45
  disabled: Schema.optional<Schema.Schema<string, string, never>>;
34
46
  readonly: Schema.optional<Schema.Schema<string, string, never>>;
35
47
  derived: Schema.optional<Schema.Struct<{
@@ -40,13 +52,19 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
40
52
  valueFormat: Schema.optional<Schema.refine<string, typeof Schema.String>>;
41
53
  presets: Schema.optional<Schema.Array$<Schema.Struct<{
42
54
  id: Schema.refine<string, typeof Schema.String>;
43
- label: Schema.TupleType<readonly [Schema.Struct<{
44
- locale: Schema.Literal<["zh"]>;
45
- message: Schema.SchemaClass<string, string, never>;
46
- }>], [Schema.Struct<{
47
- locale: Schema.Literal<["ja", "en", "ko"]>;
48
- message: Schema.SchemaClass<string, string, never>;
49
- }>]>;
55
+ label: Schema.suspend<readonly [{
56
+ readonly locale: "zh";
57
+ readonly message: string;
58
+ }, ...{
59
+ readonly locale: "en" | "ja" | "ko";
60
+ readonly message: string;
61
+ }[]], string | readonly [{
62
+ readonly locale: "zh";
63
+ readonly message: string;
64
+ }, ...{
65
+ readonly locale: "en" | "ja" | "ko";
66
+ readonly message: string;
67
+ }[]], never>;
50
68
  value: Schema.Schema<string, string, never>;
51
69
  }>>>;
52
70
  addon: Schema.optional<Schema.Struct<{
@@ -115,7 +133,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
115
133
  readonly hideTitle?: boolean | undefined;
116
134
  }, import("../../../../actions/schema.js").RegistryItemValue | {
117
135
  readonly id: string;
118
- readonly title: readonly [{
136
+ readonly title: string | readonly [{
119
137
  readonly locale: "zh";
120
138
  readonly message: string;
121
139
  }, ...{
@@ -126,7 +144,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
126
144
  readonly disabled?: string | undefined;
127
145
  readonly icon?: string | undefined;
128
146
  readonly hidden?: string | undefined;
129
- readonly tooltip?: readonly [{
147
+ readonly tooltip?: string | readonly [{
130
148
  readonly locale: "zh";
131
149
  readonly message: string;
132
150
  }, ...{
@@ -138,7 +156,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
138
156
  readonly hideTitle?: boolean | undefined;
139
157
  } | {
140
158
  readonly id: string;
141
- readonly title: readonly [{
159
+ readonly title: string | readonly [{
142
160
  readonly locale: "zh";
143
161
  readonly message: string;
144
162
  }, ...{
@@ -147,7 +165,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
147
165
  }[]];
148
166
  readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
149
167
  readonly id: string;
150
- readonly title: readonly [{
168
+ readonly title: string | readonly [{
151
169
  readonly locale: "zh";
152
170
  readonly message: string;
153
171
  }, ...{
@@ -157,7 +175,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
157
175
  readonly disabled?: string | undefined;
158
176
  readonly icon?: string | undefined;
159
177
  readonly hidden?: string | undefined;
160
- readonly tooltip?: readonly [{
178
+ readonly tooltip?: string | readonly [{
161
179
  readonly locale: "zh";
162
180
  readonly message: string;
163
181
  }, ...{
@@ -181,25 +199,37 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
181
199
  }>;
182
200
  style: Schema.optional<typeof Schema.String>;
183
201
  }>>;
184
- title: Schema.TupleType<readonly [Schema.Struct<{
185
- locale: Schema.Literal<["zh"]>;
186
- message: Schema.SchemaClass<string, string, never>;
187
- }>], [Schema.Struct<{
188
- locale: Schema.Literal<["ja", "en", "ko"]>;
189
- message: Schema.SchemaClass<string, string, never>;
190
- }>]>;
202
+ title: Schema.suspend<readonly [{
203
+ readonly locale: "zh";
204
+ readonly message: string;
205
+ }, ...{
206
+ readonly locale: "en" | "ja" | "ko";
207
+ readonly message: string;
208
+ }[]], string | readonly [{
209
+ readonly locale: "zh";
210
+ readonly message: string;
211
+ }, ...{
212
+ readonly locale: "en" | "ja" | "ko";
213
+ readonly message: string;
214
+ }[]], never>;
191
215
  binding: Schema.refine<string, typeof Schema.String>;
192
216
  enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
193
217
  sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
194
218
  size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
195
219
  grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
196
- tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
197
- locale: Schema.Literal<["zh"]>;
198
- message: Schema.SchemaClass<string, string, never>;
199
- }>], [Schema.Struct<{
200
- locale: Schema.Literal<["ja", "en", "ko"]>;
201
- message: Schema.SchemaClass<string, string, never>;
202
- }>]>>;
220
+ tooltip: Schema.optional<Schema.suspend<readonly [{
221
+ readonly locale: "zh";
222
+ readonly message: string;
223
+ }, ...{
224
+ readonly locale: "en" | "ja" | "ko";
225
+ readonly message: string;
226
+ }[]], string | readonly [{
227
+ readonly locale: "zh";
228
+ readonly message: string;
229
+ }, ...{
230
+ readonly locale: "en" | "ja" | "ko";
231
+ readonly message: string;
232
+ }[]], never>>;
203
233
  hidden: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
204
234
  id: Schema.refine<string, typeof Schema.String>;
205
235
  groupId: Schema.optional<typeof Schema.UUID>;
@@ -4,7 +4,7 @@ import { computed } from "vue";
4
4
  import { useI18n } from "vue-i18n";
5
5
  import { format as formatDate } from "date-fns";
6
6
  import { cel as $cel } from "../../../../../utils/cel";
7
- import { celBindings, injectCELContext } from "../../../../../utils/cel-context";
7
+ import { celScope, injectCELContext } from "../../../../../utils/cel-context";
8
8
  import { useFormReadonly } from "../../../../form/utils/readonly";
9
9
  import { getLocalizedText } from "../../../../../share/locale";
10
10
  import { DATE_RANGE_PICKER_DEFAULT_FORMATS, DateRangePicker } from "../../../../ui/date-range-picker";
@@ -27,7 +27,7 @@ const endPlaceholderText = computed(
27
27
  function evalBool(expression, label) {
28
28
  if (!expression) return false;
29
29
  try {
30
- return Effect.runSync($cel(expression, celBindings(celContext))) === true;
30
+ return Effect.runSync($cel(expression, celScope(celContext))) === true;
31
31
  } catch (e) {
32
32
  console.error(`[shwfed-table] date-range-input ${label} failed`, e);
33
33
  return false;
@@ -52,8 +52,8 @@ const shortcuts = computed(() => {
52
52
  name: preset.label,
53
53
  value: () => {
54
54
  try {
55
- const start = Effect.runSync($cel(preset.start, celBindings(celContext)));
56
- const end = Effect.runSync($cel(preset.end, celBindings(celContext)));
55
+ const start = Effect.runSync($cel(preset.start, celScope(celContext)));
56
+ const end = Effect.runSync($cel(preset.end, celScope(celContext)));
57
57
  return [
58
58
  formatDate(start, resolvedValueFormat.value),
59
59
  formatDate(end, resolvedValueFormat.value)
@@ -10,13 +10,19 @@ export declare const metadata: {
10
10
  };
11
11
  export declare function presetSchema(configure: (env: Environment) => void): Schema.Struct<{
12
12
  id: Schema.refine<string, typeof Schema.String>;
13
- label: Schema.TupleType<readonly [Schema.Struct<{
14
- locale: Schema.Literal<["zh"]>;
15
- message: Schema.SchemaClass<string, string, never>;
16
- }>], [Schema.Struct<{
17
- locale: Schema.Literal<["ja", "en", "ko"]>;
18
- message: Schema.SchemaClass<string, string, never>;
19
- }>]>;
13
+ label: Schema.suspend<readonly [{
14
+ readonly locale: "zh";
15
+ readonly message: string;
16
+ }, ...{
17
+ readonly locale: "en" | "ja" | "ko";
18
+ readonly message: string;
19
+ }[]], string | readonly [{
20
+ readonly locale: "zh";
21
+ readonly message: string;
22
+ }, ...{
23
+ readonly locale: "en" | "ja" | "ko";
24
+ readonly message: string;
25
+ }[]], never>;
20
26
  start: Schema.Schema<string, string, never>;
21
27
  end: Schema.Schema<string, string, never>;
22
28
  }>;
@@ -25,20 +31,32 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
25
31
  default: () => "left";
26
32
  }>;
27
33
  binding: Schema.Union<[Schema.filter<typeof Schema.String>, Schema.filter<Schema.Tuple2<Schema.filter<typeof Schema.String>, Schema.filter<typeof Schema.String>>>]>;
28
- startPlaceholder: 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
- }>]>>;
35
- endPlaceholder: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
36
- locale: Schema.Literal<["zh"]>;
37
- message: Schema.SchemaClass<string, string, never>;
38
- }>], [Schema.Struct<{
39
- locale: Schema.Literal<["ja", "en", "ko"]>;
40
- message: Schema.SchemaClass<string, string, never>;
41
- }>]>>;
34
+ startPlaceholder: 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>>;
47
+ endPlaceholder: Schema.optional<Schema.suspend<readonly [{
48
+ readonly locale: "zh";
49
+ readonly message: string;
50
+ }, ...{
51
+ readonly locale: "en" | "ja" | "ko";
52
+ readonly message: string;
53
+ }[]], string | readonly [{
54
+ readonly locale: "zh";
55
+ readonly message: string;
56
+ }, ...{
57
+ readonly locale: "en" | "ja" | "ko";
58
+ readonly message: string;
59
+ }[]], never>>;
42
60
  disabled: Schema.optional<Schema.Schema<string, string, never>>;
43
61
  readonly: Schema.optional<Schema.Schema<string, string, never>>;
44
62
  derived: Schema.optional<Schema.Struct<{
@@ -51,34 +69,52 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
51
69
  numberOfMonths: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
52
70
  presets: Schema.optional<Schema.Array$<Schema.Struct<{
53
71
  id: Schema.refine<string, typeof Schema.String>;
54
- label: Schema.TupleType<readonly [Schema.Struct<{
55
- locale: Schema.Literal<["zh"]>;
56
- message: Schema.SchemaClass<string, string, never>;
57
- }>], [Schema.Struct<{
58
- locale: Schema.Literal<["ja", "en", "ko"]>;
59
- message: Schema.SchemaClass<string, string, never>;
60
- }>]>;
72
+ label: Schema.suspend<readonly [{
73
+ readonly locale: "zh";
74
+ readonly message: string;
75
+ }, ...{
76
+ readonly locale: "en" | "ja" | "ko";
77
+ readonly message: string;
78
+ }[]], string | readonly [{
79
+ readonly locale: "zh";
80
+ readonly message: string;
81
+ }, ...{
82
+ readonly locale: "en" | "ja" | "ko";
83
+ readonly message: string;
84
+ }[]], never>;
61
85
  start: Schema.Schema<string, string, never>;
62
86
  end: Schema.Schema<string, string, never>;
63
87
  }>>>;
64
- title: Schema.TupleType<readonly [Schema.Struct<{
65
- locale: Schema.Literal<["zh"]>;
66
- message: Schema.SchemaClass<string, string, never>;
67
- }>], [Schema.Struct<{
68
- locale: Schema.Literal<["ja", "en", "ko"]>;
69
- message: Schema.SchemaClass<string, string, never>;
70
- }>]>;
88
+ title: Schema.suspend<readonly [{
89
+ readonly locale: "zh";
90
+ readonly message: string;
91
+ }, ...{
92
+ readonly locale: "en" | "ja" | "ko";
93
+ readonly message: string;
94
+ }[]], string | readonly [{
95
+ readonly locale: "zh";
96
+ readonly message: string;
97
+ }, ...{
98
+ readonly locale: "en" | "ja" | "ko";
99
+ readonly message: string;
100
+ }[]], never>;
71
101
  enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
72
102
  sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
73
103
  size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
74
104
  grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
75
- tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
76
- locale: Schema.Literal<["zh"]>;
77
- message: Schema.SchemaClass<string, string, never>;
78
- }>], [Schema.Struct<{
79
- locale: Schema.Literal<["ja", "en", "ko"]>;
80
- message: Schema.SchemaClass<string, string, never>;
81
- }>]>>;
105
+ tooltip: Schema.optional<Schema.suspend<readonly [{
106
+ readonly locale: "zh";
107
+ readonly message: string;
108
+ }, ...{
109
+ readonly locale: "en" | "ja" | "ko";
110
+ readonly message: string;
111
+ }[]], string | readonly [{
112
+ readonly locale: "zh";
113
+ readonly message: string;
114
+ }, ...{
115
+ readonly locale: "en" | "ja" | "ko";
116
+ readonly message: string;
117
+ }[]], never>>;
82
118
  hidden: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
83
119
  id: Schema.refine<string, typeof Schema.String>;
84
120
  groupId: Schema.optional<typeof Schema.UUID>;
@@ -9,11 +9,11 @@ type __VLS_ModelProps = {
9
9
  modelValue: AnyRecord;
10
10
  };
11
11
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
12
- declare var __VLS_224: {}, __VLS_226: {};
12
+ declare var __VLS_234: {}, __VLS_236: {};
13
13
  type __VLS_Slots = {} & {
14
- 'general-grid-extra'?: (props: typeof __VLS_224) => any;
14
+ 'general-grid-extra'?: (props: typeof __VLS_234) => any;
15
15
  } & {
16
- 'general-extra'?: (props: typeof __VLS_226) => any;
16
+ 'general-extra'?: (props: typeof __VLS_236) => any;
17
17
  };
18
18
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
19
  "update:modelValue": (value: AnyRecord) => any;
@@ -33,6 +33,7 @@ import {
33
33
  InputGroupNumberField
34
34
  } from "../ui/input-group";
35
35
  import ActionsConfigEditor from "../actions/config.vue";
36
+ import TableAiGenerate from "./ai-generate.vue";
36
37
  import ShwfedFormConfig from "../form/config.vue";
37
38
  import { defaultFormConfig } from "../form/schema";
38
39
  import { Environment } from "../../vendor/cel-js/lib/index";
@@ -248,7 +249,7 @@ function writeGeneralPatch(patch) {
248
249
  };
249
250
  }
250
251
  const editingGeneralConfig = computed(() => readGeneral());
251
- const selected = ref({ kind: "general" });
252
+ const selected = ref(props.hideDataSource ? { kind: "general" } : { kind: "ai" });
252
253
  const fieldErrors = ref({});
253
254
  watch(
254
255
  config,
@@ -267,6 +268,7 @@ watch(
267
268
  },
268
269
  { immediate: true, deep: true }
269
270
  );
271
+ const selectedAi = computed(() => selected.value.kind === "ai");
270
272
  const selectedGeneral = computed(() => selected.value.kind === "general");
271
273
  const selectedActions = computed(() => selected.value.kind === "actions");
272
274
  const selectedBottomActions = computed(() => selected.value.kind === "bottomActions");
@@ -523,6 +525,7 @@ function deleteColumn(columnId) {
523
525
  }
524
526
  function resolveSelection() {
525
527
  const s = selected.value;
528
+ if (s.kind === "ai") return;
526
529
  if (s.kind === "general") return;
527
530
  if (s.kind === "actions") return;
528
531
  if (s.kind === "bottomActions") return;
@@ -531,6 +534,9 @@ function resolveSelection() {
531
534
  if (s.kind === "column" && findColumn(s.id)) return;
532
535
  selected.value = { kind: "general" };
533
536
  }
537
+ function selectAi() {
538
+ selected.value = { kind: "ai" };
539
+ }
534
540
  function selectGeneral() {
535
541
  selected.value = { kind: "general" };
536
542
  }
@@ -1072,6 +1078,21 @@ const tableQueryValue = computed({
1072
1078
  >
1073
1079
  <ScrollArea class="flex-1">
1074
1080
  <div class="flex flex-col gap-1">
1081
+ <div
1082
+ v-if="!hideDataSource"
1083
+ class="row general-row pl-2"
1084
+ :class="[
1085
+ selectedAi ? 'bg-[color-mix(in_srgb,var(--primary)_10%,white)] text-(--primary)' : 'text-zinc-600 hover:bg-zinc-50'
1086
+ ]"
1087
+ @click.stop="selectAi()"
1088
+ >
1089
+ <Icon
1090
+ icon="fluent:sparkle-20-regular"
1091
+ class="size-4 shrink-0"
1092
+ />
1093
+ <span class="flex-1 truncate">AI 生成</span>
1094
+ </div>
1095
+
1075
1096
  <div
1076
1097
  class="row general-row pl-2"
1077
1098
  :class="[
@@ -1263,6 +1284,7 @@ const tableQueryValue = computed({
1263
1284
  v-for="entry in pickerEntries"
1264
1285
  :key="`${entry.type}@${entry.compatibilityDate}`"
1265
1286
  :value="`${entry.type}@${entry.compatibilityDate}`"
1287
+ :keywords="entry.type"
1266
1288
  @select="addColumn(entry.type, entry.compatibilityDate)"
1267
1289
  >
1268
1290
  <Icon
@@ -1278,8 +1300,21 @@ const tableQueryValue = computed({
1278
1300
  </div>
1279
1301
  </div>
1280
1302
 
1281
- <div class="flex flex-1 flex-col">
1282
- <ScrollArea class="flex-1">
1303
+ <div class="flex min-h-0 min-w-0 flex-1 flex-col">
1304
+ <!-- The AI chat owns the full right pane and manages its own scroll /
1305
+ composer, so it replaces (not nests inside) the section ScrollArea.
1306
+ `min-w-0` lets this flex item shrink below its content's intrinsic
1307
+ width — without it a long tool-call `<pre>` forces the pane (and the
1308
+ whole editor dialog) wider than the viewport. -->
1309
+ <TableAiGenerate
1310
+ v-if="selectedAi"
1311
+ v-model="config"
1312
+ :configure="configure"
1313
+ />
1314
+ <ScrollArea
1315
+ v-else
1316
+ class="flex-1"
1317
+ >
1283
1318
  <div
1284
1319
  v-if="selectedGeneral"
1285
1320
  class="space-y-5"
@@ -9,11 +9,11 @@ type __VLS_ModelProps = {
9
9
  modelValue: AnyRecord;
10
10
  };
11
11
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
12
- declare var __VLS_224: {}, __VLS_226: {};
12
+ declare var __VLS_234: {}, __VLS_236: {};
13
13
  type __VLS_Slots = {} & {
14
- 'general-grid-extra'?: (props: typeof __VLS_224) => any;
14
+ 'general-grid-extra'?: (props: typeof __VLS_234) => any;
15
15
  } & {
16
- 'general-extra'?: (props: typeof __VLS_226) => any;
16
+ 'general-extra'?: (props: typeof __VLS_236) => any;
17
17
  };
18
18
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
19
  "update:modelValue": (value: AnyRecord) => any;
@@ -2,7 +2,7 @@
2
2
  import { Effect } from "effect";
3
3
  import { customRef } from "vue";
4
4
  import { cel as _rawCel } from "../../utils/cel";
5
- import { celBindings, injectCELContext, provideCELContext, provideScopeAddress } from "../../utils/cel-context";
5
+ import { celScope, injectCELContext, provideCELContext, provideScopeAddress } from "../../utils/cel-context";
6
6
  import { provideSelectionsRegistry } from "../../utils/selections-registry";
7
7
  import { useDerived, useDerivedQuiescence } from "../form/utils/derived";
8
8
  import { provideFormState } from "../form/utils/state";
@@ -53,7 +53,7 @@ if (props.scopeId) {
53
53
  });
54
54
  }
55
55
  const inherited = injectCELContext();
56
- const $cel = (expression, context) => _rawCel(expression, { ...celBindings(inherited), ...context });
56
+ const $cel = (expression, context) => _rawCel(expression, celScope(inherited, context));
57
57
  const formState = provideFormState(rowRef, "row");
58
58
  useDerived({
59
59
  fields: () => props.derivedColumns,