@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
@@ -20,13 +20,19 @@ export declare const metadata: {
20
20
  };
21
21
  export declare function itemSchema(configure: (env: Environment) => void): Schema.Struct<{
22
22
  id: Schema.refine<string, typeof Schema.String>;
23
- label: Schema.TupleType<readonly [Schema.Struct<{
24
- locale: Schema.Literal<["zh"]>;
25
- message: Schema.SchemaClass<string, string, never>;
26
- }>], [Schema.Struct<{
27
- locale: Schema.Literal<["ja", "en", "ko"]>;
28
- message: Schema.SchemaClass<string, string, never>;
29
- }>]>;
23
+ label: Schema.suspend<readonly [{
24
+ readonly locale: "zh";
25
+ readonly message: string;
26
+ }, ...{
27
+ readonly locale: "en" | "ja" | "ko";
28
+ readonly message: string;
29
+ }[]], string | readonly [{
30
+ readonly locale: "zh";
31
+ readonly message: string;
32
+ }, ...{
33
+ readonly locale: "en" | "ja" | "ko";
34
+ readonly message: string;
35
+ }[]], never>;
30
36
  value: Schema.Union<[Schema.Struct<{
31
37
  kind: Schema.Literal<["text"]>;
32
38
  value: typeof Schema.String;
@@ -40,13 +46,19 @@ export declare function itemSchema(configure: (env: Environment) => void): Schem
40
46
  }, ...{
41
47
  readonly locale: "en" | "ja" | "ko";
42
48
  readonly message: string;
43
- }[]], 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
- }>]>>>;
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>>>;
50
62
  keywords: Schema.optional<Schema.Array$<typeof Schema.String>>;
51
63
  }>;
52
64
  export declare function remoteOptionsSchema(configure: (env: Environment) => void): Schema.Struct<{
@@ -63,13 +75,19 @@ export declare function optionsSchema(configure: (env: Environment) => void): Sc
63
75
  kind: Schema.Literal<["static"]>;
64
76
  items: Schema.optionalWith<Schema.Array$<Schema.Struct<{
65
77
  id: Schema.refine<string, typeof Schema.String>;
66
- label: 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
- }>]>;
78
+ label: Schema.suspend<readonly [{
79
+ readonly locale: "zh";
80
+ readonly message: string;
81
+ }, ...{
82
+ readonly locale: "en" | "ja" | "ko";
83
+ readonly message: string;
84
+ }[]], string | readonly [{
85
+ readonly locale: "zh";
86
+ readonly message: string;
87
+ }, ...{
88
+ readonly locale: "en" | "ja" | "ko";
89
+ readonly message: string;
90
+ }[]], never>;
73
91
  value: Schema.Union<[Schema.Struct<{
74
92
  kind: Schema.Literal<["text"]>;
75
93
  value: typeof Schema.String;
@@ -83,13 +101,19 @@ export declare function optionsSchema(configure: (env: Environment) => void): Sc
83
101
  }, ...{
84
102
  readonly locale: "en" | "ja" | "ko";
85
103
  readonly message: string;
86
- }[]], Schema.TupleType<readonly [Schema.Struct<{
87
- locale: Schema.Literal<["zh"]>;
88
- message: Schema.SchemaClass<string, string, never>;
89
- }>], [Schema.Struct<{
90
- locale: Schema.Literal<["ja", "en", "ko"]>;
91
- message: Schema.SchemaClass<string, string, never>;
92
- }>]>>>;
104
+ }[]], Schema.suspend<readonly [{
105
+ readonly locale: "zh";
106
+ readonly message: string;
107
+ }, ...{
108
+ readonly locale: "en" | "ja" | "ko";
109
+ readonly message: string;
110
+ }[]], string | readonly [{
111
+ readonly locale: "zh";
112
+ readonly message: string;
113
+ }, ...{
114
+ readonly locale: "en" | "ja" | "ko";
115
+ readonly message: string;
116
+ }[]], never>>>;
93
117
  keywords: Schema.optional<Schema.Array$<typeof Schema.String>>;
94
118
  }>>, {
95
119
  default: () => readonly [];
@@ -105,27 +129,45 @@ export declare function optionsSchema(configure: (env: Environment) => void): Sc
105
129
  optionKeywords: Schema.optional<Schema.Schema<string, string, never>>;
106
130
  }>]>;
107
131
  export declare function schema(configure: (env: Environment) => void): Schema.Struct<{
108
- label: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
109
- locale: Schema.Literal<["zh"]>;
110
- message: Schema.SchemaClass<string, string, never>;
111
- }>], [Schema.Struct<{
112
- locale: Schema.Literal<["ja", "en", "ko"]>;
113
- message: Schema.SchemaClass<string, string, never>;
114
- }>]>>;
115
- placeholder: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
116
- locale: Schema.Literal<["zh"]>;
117
- message: Schema.SchemaClass<string, string, never>;
118
- }>], [Schema.Struct<{
119
- locale: Schema.Literal<["ja", "en", "ko"]>;
120
- message: Schema.SchemaClass<string, string, never>;
121
- }>]>>;
122
- tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
123
- locale: Schema.Literal<["zh"]>;
124
- message: Schema.SchemaClass<string, string, never>;
125
- }>], [Schema.Struct<{
126
- locale: Schema.Literal<["ja", "en", "ko"]>;
127
- message: Schema.SchemaClass<string, string, never>;
128
- }>]>>;
132
+ label: Schema.optional<Schema.suspend<readonly [{
133
+ readonly locale: "zh";
134
+ readonly message: string;
135
+ }, ...{
136
+ readonly locale: "en" | "ja" | "ko";
137
+ readonly message: string;
138
+ }[]], string | readonly [{
139
+ readonly locale: "zh";
140
+ readonly message: string;
141
+ }, ...{
142
+ readonly locale: "en" | "ja" | "ko";
143
+ readonly message: string;
144
+ }[]], never>>;
145
+ placeholder: Schema.optional<Schema.suspend<readonly [{
146
+ readonly locale: "zh";
147
+ readonly message: string;
148
+ }, ...{
149
+ readonly locale: "en" | "ja" | "ko";
150
+ readonly message: string;
151
+ }[]], string | readonly [{
152
+ readonly locale: "zh";
153
+ readonly message: string;
154
+ }, ...{
155
+ readonly locale: "en" | "ja" | "ko";
156
+ readonly message: string;
157
+ }[]], never>>;
158
+ tooltip: Schema.optional<Schema.suspend<readonly [{
159
+ readonly locale: "zh";
160
+ readonly message: string;
161
+ }, ...{
162
+ readonly locale: "en" | "ja" | "ko";
163
+ readonly message: string;
164
+ }[]], string | readonly [{
165
+ readonly locale: "zh";
166
+ readonly message: string;
167
+ }, ...{
168
+ readonly locale: "en" | "ja" | "ko";
169
+ readonly message: string;
170
+ }[]], never>>;
129
171
  orientation: Schema.optional<Schema.Literal<["vertical", "floating"]>>;
130
172
  binding: Schema.optional<Schema.refine<string, typeof Schema.String>>;
131
173
  disabled: Schema.optional<Schema.Schema<string, string, never>>;
@@ -138,13 +180,19 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
138
180
  kind: Schema.Literal<["static"]>;
139
181
  items: Schema.optionalWith<Schema.Array$<Schema.Struct<{
140
182
  id: Schema.refine<string, typeof Schema.String>;
141
- label: Schema.TupleType<readonly [Schema.Struct<{
142
- locale: Schema.Literal<["zh"]>;
143
- message: Schema.SchemaClass<string, string, never>;
144
- }>], [Schema.Struct<{
145
- locale: Schema.Literal<["ja", "en", "ko"]>;
146
- message: Schema.SchemaClass<string, string, never>;
147
- }>]>;
183
+ label: Schema.suspend<readonly [{
184
+ readonly locale: "zh";
185
+ readonly message: string;
186
+ }, ...{
187
+ readonly locale: "en" | "ja" | "ko";
188
+ readonly message: string;
189
+ }[]], string | readonly [{
190
+ readonly locale: "zh";
191
+ readonly message: string;
192
+ }, ...{
193
+ readonly locale: "en" | "ja" | "ko";
194
+ readonly message: string;
195
+ }[]], never>;
148
196
  value: Schema.Union<[Schema.Struct<{
149
197
  kind: Schema.Literal<["text"]>;
150
198
  value: typeof Schema.String;
@@ -158,13 +206,19 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
158
206
  }, ...{
159
207
  readonly locale: "en" | "ja" | "ko";
160
208
  readonly message: string;
161
- }[]], Schema.TupleType<readonly [Schema.Struct<{
162
- locale: Schema.Literal<["zh"]>;
163
- message: Schema.SchemaClass<string, string, never>;
164
- }>], [Schema.Struct<{
165
- locale: Schema.Literal<["ja", "en", "ko"]>;
166
- message: Schema.SchemaClass<string, string, never>;
167
- }>]>>>;
209
+ }[]], Schema.suspend<readonly [{
210
+ readonly locale: "zh";
211
+ readonly message: string;
212
+ }, ...{
213
+ readonly locale: "en" | "ja" | "ko";
214
+ readonly message: string;
215
+ }[]], string | readonly [{
216
+ readonly locale: "zh";
217
+ readonly message: string;
218
+ }, ...{
219
+ readonly locale: "en" | "ja" | "ko";
220
+ readonly message: string;
221
+ }[]], never>>>;
168
222
  keywords: Schema.optional<Schema.Array$<typeof Schema.String>>;
169
223
  }>>, {
170
224
  default: () => readonly [];
@@ -197,13 +251,19 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
197
251
  }, ...{
198
252
  readonly locale: "en" | "ja" | "ko";
199
253
  readonly message: string;
200
- }[]], Schema.TupleType<readonly [Schema.Struct<{
201
- locale: Schema.Literal<["zh"]>;
202
- message: Schema.SchemaClass<string, string, never>;
203
- }>], [Schema.Struct<{
204
- locale: Schema.Literal<["ja", "en", "ko"]>;
205
- message: Schema.SchemaClass<string, string, never>;
206
- }>]>>;
254
+ }[]], Schema.suspend<readonly [{
255
+ readonly locale: "zh";
256
+ readonly message: string;
257
+ }, ...{
258
+ readonly locale: "en" | "ja" | "ko";
259
+ readonly message: string;
260
+ }[]], string | readonly [{
261
+ readonly locale: "zh";
262
+ readonly message: string;
263
+ }, ...{
264
+ readonly locale: "en" | "ja" | "ko";
265
+ readonly message: string;
266
+ }[]], never>>;
207
267
  }>>>;
208
268
  type: Schema.Literal<["com.shwfed.form.field.combobox.single"]>;
209
269
  compatibilityDate: Schema.Literal<["2026-06-14"]>;
@@ -19,13 +19,19 @@ export declare const metadata: {
19
19
  readonly inlineConfig: false;
20
20
  };
21
21
  export declare const TabMeta: Schema.Struct<{
22
- label: Schema.TupleType<readonly [Schema.Struct<{
23
- locale: Schema.Literal<["zh"]>;
24
- message: Schema.SchemaClass<string, string, never>;
25
- }>], [Schema.Struct<{
26
- locale: Schema.Literal<["ja", "en", "ko"]>;
27
- message: Schema.SchemaClass<string, string, never>;
28
- }>]>;
22
+ label: Schema.suspend<readonly [{
23
+ readonly locale: "zh";
24
+ readonly message: string;
25
+ }, ...{
26
+ readonly locale: "en" | "ja" | "ko";
27
+ readonly message: string;
28
+ }[]], string | readonly [{
29
+ readonly locale: "zh";
30
+ readonly message: string;
31
+ }, ...{
32
+ readonly locale: "en" | "ja" | "ko";
33
+ readonly message: string;
34
+ }[]], never>;
29
35
  }>;
30
36
  /**
31
37
  * A tabbed grouping. Pure view — children of each tab stay flat in the form
@@ -65,13 +71,19 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
65
71
  fields: ReadonlyArray<import("../../../schema.js").FieldValue>;
66
72
  layouts: ReadonlyArray<import("../../../schema.js").LayoutSetValue>;
67
73
  }>, never>;
68
- label: Schema.TupleType<readonly [Schema.Struct<{
69
- locale: Schema.Literal<["zh"]>;
70
- message: Schema.SchemaClass<string, string, never>;
71
- }>], [Schema.Struct<{
72
- locale: Schema.Literal<["ja", "en", "ko"]>;
73
- message: Schema.SchemaClass<string, string, never>;
74
- }>]>;
74
+ label: Schema.suspend<readonly [{
75
+ readonly locale: "zh";
76
+ readonly message: string;
77
+ }, ...{
78
+ readonly locale: "en" | "ja" | "ko";
79
+ readonly message: string;
80
+ }[]], string | readonly [{
81
+ readonly locale: "zh";
82
+ readonly message: string;
83
+ }, ...{
84
+ readonly locale: "en" | "ja" | "ko";
85
+ readonly message: string;
86
+ }[]], never>;
75
87
  id: Schema.refine<string, typeof Schema.String>;
76
88
  }>>>>;
77
89
  }>;
@@ -16,13 +16,19 @@ export declare function validationRuleStruct(configure: (env: Environment) => vo
16
16
  }, ...{
17
17
  readonly locale: "en" | "ja" | "ko";
18
18
  readonly message: string;
19
- }[]], 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
+ }[]], 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
  }>;
27
33
  export declare function commonFieldFields(configure: (env: Environment) => void): {
28
34
  id: Schema.refine<string, typeof Schema.String>;
@@ -38,13 +44,19 @@ export declare function commonFieldFields(configure: (env: Environment) => void)
38
44
  }, ...{
39
45
  readonly locale: "en" | "ja" | "ko";
40
46
  readonly message: string;
41
- }[]], Schema.TupleType<readonly [Schema.Struct<{
42
- locale: Schema.Literal<["zh"]>;
43
- message: Schema.SchemaClass<string, string, never>;
44
- }>], [Schema.Struct<{
45
- locale: Schema.Literal<["ja", "en", "ko"]>;
46
- message: Schema.SchemaClass<string, string, never>;
47
- }>]>>;
47
+ }[]], 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>>;
48
60
  }>>>;
49
61
  };
50
62
  export declare const FIELD_ORIENTATIONS: readonly ["vertical", "floating"];
@@ -7,13 +7,19 @@ export declare const metadata: {
7
7
  readonly icon: "fluent:chat-warning-20-regular";
8
8
  };
9
9
  export declare function schema(_configure: (env: Environment) => void): Schema.Struct<{
10
- message: Schema.TupleType<readonly [Schema.Struct<{
11
- locale: Schema.Literal<["zh"]>;
12
- message: Schema.SchemaClass<string, string, never>;
13
- }>], [Schema.Struct<{
14
- locale: Schema.Literal<["ja", "en", "ko"]>;
15
- message: Schema.SchemaClass<string, string, never>;
16
- }>]>;
10
+ message: Schema.suspend<readonly [{
11
+ readonly locale: "zh";
12
+ readonly message: string;
13
+ }, ...{
14
+ readonly locale: "en" | "ja" | "ko";
15
+ readonly message: string;
16
+ }[]], string | readonly [{
17
+ readonly locale: "zh";
18
+ readonly message: string;
19
+ }, ...{
20
+ readonly locale: "en" | "ja" | "ko";
21
+ readonly message: string;
22
+ }[]], never>;
17
23
  icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
18
24
  color: Schema.optional<Schema.SchemaClass<string, string, never>>;
19
25
  }>;
@@ -11,13 +11,19 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
11
11
  expression: Schema.Schema<string, string, never>;
12
12
  resultExpression: Schema.optional<Schema.Schema<string, string, never>>;
13
13
  titleExpression: Schema.optional<Schema.Schema<string, string, never>>;
14
- description: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
15
- locale: Schema.Literal<["zh"]>;
16
- message: Schema.SchemaClass<string, string, never>;
17
- }>], [Schema.Struct<{
18
- locale: Schema.Literal<["ja", "en", "ko"]>;
19
- message: Schema.SchemaClass<string, string, never>;
20
- }>]>>;
14
+ description: Schema.optional<Schema.suspend<readonly [{
15
+ readonly locale: "zh";
16
+ readonly message: string;
17
+ }, ...{
18
+ readonly locale: "en" | "ja" | "ko";
19
+ readonly message: string;
20
+ }[]], string | readonly [{
21
+ readonly locale: "zh";
22
+ readonly message: string;
23
+ }, ...{
24
+ readonly locale: "en" | "ja" | "ko";
25
+ readonly message: string;
26
+ }[]], never>>;
21
27
  }>;
22
28
  export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
23
29
  export declare function defaults(): Partial<Value>;
@@ -10,13 +10,19 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
10
10
  expression: Schema.Schema<string, string, never>;
11
11
  resultExpression: Schema.optional<Schema.Schema<string, string, never>>;
12
12
  titleExpression: Schema.optional<Schema.Schema<string, string, never>>;
13
- description: Schema.optional<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
+ description: Schema.optional<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
  }>;
21
27
  export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
22
28
  export declare function defaults(): Partial<Value>;
@@ -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;
@@ -0,0 +1 @@
1
+ export declare function getSystemTemplate(): string;
@@ -0,0 +1,10 @@
1
+ import rawSystem from "./ai-generate.system.md?raw";
2
+ let template = rawSystem;
3
+ if (import.meta.hot) {
4
+ import.meta.hot.accept("./ai-generate.system.md?raw", (mod) => {
5
+ if (typeof mod?.default === "string") template = mod.default;
6
+ });
7
+ }
8
+ export function getSystemTemplate() {
9
+ return template;
10
+ }
@@ -0,0 +1,95 @@
1
+ 帮助用户进行配置表格。你的回复可以使用 CommonMark。你应该按照:确认既存配置、变更新增配置、验证配置结果的循环进行。
2
+
3
+ ## 处理 API 接口
4
+
5
+ 用户可能发送给你 API 接口信息。根据 API 接口可以配置如下内容
6
+
7
+ - 通用配置
8
+ - 列
9
+ - 搜索条件
10
+
11
+ ### 配置通用配置
12
+
13
+ 利用 API 接口名字等相关信息,配置表格 `displayName`。
14
+
15
+ 根据 API 接口,构造 `dataSource` 相关字段。对于 `request` 应当形如
16
+
17
+ ```cel
18
+ http
19
+ .post('<construct full URL>') // use .get if request is in GET method
20
+
21
+ // API doc might use env var surrounded by double brackets, these are NOT AVAILABLE in CEL, you should use the `hostname` var instead, e.g., `.get(hostname + '/foo/bar')`
22
+
23
+ .header('<key>', '<value>') // use this to set request header
24
+
25
+ .query(query) // `query` represents all the table search conditions, put it as the first query
26
+ .query('<key>', '<value>') // .query method signature: .query(string, string | number | optional<string> | optional<number> | dyn)
27
+
28
+ // API doc might contain demonstration purpose query, DO NOT hardcode
29
+ // same name query will NOT overwrite, but form URL like `&foo=bar&foo=zoo`
30
+
31
+ // if the API supports pagination, you might need to use `pageIndex` and `pageSize` to pass pagination info to the backend, like `.query('page_index', pageIndex + 1).query('page_size', pageSize)`, be aware the `pageIndex` var starts from 0
32
+
33
+ // if the request is POST, you can set `.body`, it's signature is `.body(dyn)`
34
+ // if you're gonna sent JSON request, remember to set `.header('Content-Type', 'application/json')` where header name is case-insensitive following RFC.
35
+ .body({
36
+ // ...
37
+ })
38
+ ```
39
+
40
+ 对于 `data` 应当指向 Response 的列表,比如对于下面的这个响应,`data` 应当设置为 `json.?data.?list`
41
+
42
+ ```json
43
+ {
44
+ "code": 0,
45
+ "data": {
46
+ "list": [
47
+ {
48
+ "foo": "bar",
49
+ "buz": {
50
+ "bao": "zoo"
51
+ }
52
+ }
53
+ ],
54
+ "total": 100,
55
+ }
56
+ }
57
+ ```
58
+
59
+ 对于 `total`,应当指向 Response 中服务器查询到的**总数**,对于上述例子是 `json.?data.?total` 如果你没有找到对应的字段,这个字段可以不填写,并且调用工具将分页功能关闭。
60
+
61
+ ### 配置列
62
+
63
+ 你应该寻找到最外侧的列表。这个列表的每一个元素,通常代表了一行。而其中的每个字段,通常代表了一列。
64
+
65
+ 调用工具,选取合适的类型。你应该首要考虑文本、数值、日期类型。
66
+
67
+ 对于只读的字段,你需要配置 `accessor`,可以使用 `row` 变量,`row` 特指当前行。`accessor` 应该**相对于列表元素**来写,不需要再重复访问列表字段本身。使用 CEL 的 optional 语法,如 `row.?foo.?bar`。
68
+
69
+ ```json
70
+ {
71
+ "code": 0,
72
+ "data": {
73
+ "list": [
74
+ {
75
+ "foo": "bar",
76
+ "buz": {
77
+ "bao": "zoo"
78
+ }
79
+ }
80
+ ]
81
+ }
82
+ }
83
+ ```
84
+
85
+ 对于上述例子,如果需要展示 `bar` 这个值作为一列,其 `accessor` 应为 `row.?foo`;如果需要展示 `zoo` 这个值作为一列,其 `accessor` 应为 `row.?buz.?bao`。
86
+
87
+ 你应当选取至少一列,并且设置它的 `grow` 为 `true`。
88
+
89
+ 对于金额类型的字段:使用数字类型的列;将其 `align` 设置为 `right`;将其 `displayMode` 设置为 `monoThousand`;设置一个合理的宽度,如 200 或 `grow` 为 `true`。
90
+
91
+ 对于普通的数字:使用数字类型的列;将其 `align` 设置为 `center`。
92
+
93
+ 对于日期、时间类型的字段:使用日期类型的列;对于时间,设置列宽为 140;对于日期,设置列宽为 120;将其 `align` 设置为 `center`。
94
+
95
+ 对于用户名、ID、各种类型等较短字段,酌情将其 `align` 设置为 `center`。