@shwfed/config 3.0.6 → 3.0.8

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 (260) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/actions/ai-l1.md +24 -0
  3. package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/schema.d.ts +1 -0
  4. package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/schema.js +2 -1
  5. package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/prompt.md +8 -0
  6. package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/schema.d.ts +6 -0
  7. package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/schema.js +4 -0
  8. package/dist/runtime/components/actions/buttons/2026-05-15/com.shwfed.actions.button.event.dispatch/prompt.md +8 -0
  9. package/dist/runtime/components/actions/buttons/2026-05-15/com.shwfed.actions.button.event.dispatch/schema.d.ts +1 -0
  10. package/dist/runtime/components/actions/buttons/2026-05-15/com.shwfed.actions.button.event.dispatch/schema.js +2 -1
  11. package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/prompt.md +9 -0
  12. package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/schema.d.ts +1 -0
  13. package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/schema.js +2 -1
  14. package/dist/runtime/components/actions/buttons/2026-07-13/com.shwfed.actions.button.state.write/prompt.md +8 -0
  15. package/dist/runtime/components/actions/buttons/2026-07-13/com.shwfed.actions.button.state.write/schema.d.ts +1 -0
  16. package/dist/runtime/components/actions/buttons/2026-07-13/com.shwfed.actions.button.state.write/schema.js +2 -1
  17. package/dist/runtime/components/actions/config.vue +109 -3
  18. package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/schema.d.ts +1 -0
  19. package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/schema.js +2 -1
  20. package/dist/runtime/components/actions/utils/ai-button-tools.d.ts +29 -0
  21. package/dist/runtime/components/actions/utils/ai-button-tools.js +664 -0
  22. package/dist/runtime/components/actions/utils/resolve.d.ts +22 -0
  23. package/dist/runtime/components/actions/utils/resolve.js +23 -1
  24. package/dist/runtime/components/config/ai-generate.d.vue.ts +7 -0
  25. package/dist/runtime/components/config/ai-generate.system.md +39 -0
  26. package/dist/runtime/components/{table → config}/ai-generate.vue +55 -32
  27. package/dist/runtime/components/config/ai-generate.vue.d.ts +7 -0
  28. package/dist/runtime/components/config/ai-page-slot.l1.md +25 -0
  29. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/schema.d.ts +6 -0
  30. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/schema.js +4 -0
  31. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/schema.d.ts +6 -0
  32. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/schema.js +4 -0
  33. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/schema.d.ts +1 -0
  34. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/schema.js +1 -0
  35. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +44 -44
  36. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +44 -44
  37. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +44 -44
  38. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +44 -44
  39. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +28 -22
  40. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.js +4 -0
  41. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/schema.d.ts +7 -0
  42. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/schema.js +4 -0
  43. package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.xy/schema.d.ts +1 -0
  44. package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.xy/schema.js +1 -0
  45. package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/schema.d.ts +1 -0
  46. package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/schema.js +1 -0
  47. package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.card/schema.d.ts +6 -0
  48. package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.card/schema.js +4 -0
  49. package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.icon/schema.d.ts +1 -0
  50. package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.icon/schema.js +1 -0
  51. package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/config.d.vue.ts +18 -18
  52. package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/config.vue.d.ts +18 -18
  53. package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/runtime.d.vue.ts +18 -18
  54. package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/runtime.vue.d.ts +18 -18
  55. package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/schema.d.ts +6 -0
  56. package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/schema.js +4 -0
  57. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/schema.d.ts +7 -0
  58. package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/schema.js +4 -0
  59. package/dist/runtime/components/config/config.vue +24 -3
  60. package/dist/runtime/components/config/history-picker.vue +6 -4
  61. package/dist/runtime/components/config/prune-dialog.vue +15 -4
  62. package/dist/runtime/components/config/use-editor.d.ts +1 -0
  63. package/dist/runtime/components/config/use-editor.js +20 -2
  64. package/dist/runtime/components/config/utils/ai-cursor.d.ts +21 -0
  65. package/dist/runtime/components/config/utils/ai-cursor.js +827 -0
  66. package/dist/runtime/components/config/utils/ai-host-manuals.d.ts +2 -0
  67. package/dist/runtime/components/config/utils/ai-host-manuals.js +19 -0
  68. package/dist/runtime/components/config/utils/linkage.d.ts +15 -6
  69. package/dist/runtime/components/config/utils/linkage.js +23 -7
  70. package/dist/runtime/components/config/utils/resolve.d.ts +19 -0
  71. package/dist/runtime/components/config/utils/resolve.js +25 -2
  72. package/dist/runtime/components/form/ai-l1.md +22 -0
  73. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.d.ts +1 -0
  74. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.js +1 -0
  75. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.d.ts +1 -0
  76. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.js +1 -0
  77. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.d.ts +1 -0
  78. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.js +1 -0
  79. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/schema.d.ts +7 -0
  80. package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/schema.js +4 -0
  81. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/schema.d.ts +1 -0
  82. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/schema.js +1 -0
  83. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/schema.d.ts +1 -0
  84. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/schema.js +1 -0
  85. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.d.ts +1 -0
  86. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.js +1 -0
  87. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/schema.d.ts +1 -0
  88. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/schema.js +1 -0
  89. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/schema.d.ts +1 -0
  90. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/schema.js +1 -0
  91. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/schema.d.ts +1 -0
  92. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/schema.js +1 -0
  93. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.d.ts +1 -0
  94. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.js +1 -0
  95. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/schema.d.ts +1 -0
  96. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/schema.js +1 -0
  97. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/schema.d.ts +1 -0
  98. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/schema.js +1 -0
  99. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/schema.d.ts +1 -0
  100. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/schema.js +1 -0
  101. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/prompt.md +8 -0
  102. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.d.ts +7 -0
  103. package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.js +4 -0
  104. package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/schema.d.ts +1 -0
  105. package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/schema.js +1 -0
  106. package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/schema.d.ts +1 -0
  107. package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/schema.js +1 -0
  108. package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/prompt.md +12 -0
  109. package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/schema.d.ts +6 -0
  110. package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/schema.js +4 -0
  111. package/dist/runtime/components/form/fields/2026-05-20/com.shwfed.form.field.collapsible/schema.d.ts +6 -0
  112. package/dist/runtime/components/form/fields/2026-05-20/com.shwfed.form.field.collapsible/schema.js +4 -0
  113. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +26 -26
  114. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +26 -26
  115. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/schema.d.ts +1 -0
  116. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/schema.js +1 -0
  117. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/schema.d.ts +1 -0
  118. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/schema.js +1 -0
  119. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +26 -26
  120. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +26 -26
  121. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +26 -26
  122. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +26 -26
  123. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +26 -26
  124. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +26 -26
  125. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/prompt.md +7 -0
  126. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/schema.d.ts +1 -0
  127. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/schema.js +1 -0
  128. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +26 -26
  129. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +26 -26
  130. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/prompt.md +7 -0
  131. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/schema.d.ts +1 -0
  132. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/schema.js +1 -0
  133. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +26 -26
  134. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +26 -26
  135. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/prompt.md +9 -0
  136. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/schema.d.ts +1 -0
  137. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/schema.js +1 -0
  138. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +26 -26
  139. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +26 -26
  140. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/prompt.md +11 -0
  141. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/schema.d.ts +1 -0
  142. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/schema.js +1 -0
  143. package/dist/runtime/components/form/fields/2026-06-09/com.shwfed.form.field.upload/prompt.md +12 -0
  144. package/dist/runtime/components/form/fields/2026-06-09/com.shwfed.form.field.upload/schema.d.ts +1 -0
  145. package/dist/runtime/components/form/fields/2026-06-09/com.shwfed.form.field.upload/schema.js +1 -0
  146. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.multi/prompt.md +14 -0
  147. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.multi/schema.d.ts +1 -0
  148. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.multi/schema.js +1 -0
  149. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.single/prompt.md +19 -0
  150. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.single/schema.d.ts +1 -0
  151. package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.single/schema.js +1 -0
  152. package/dist/runtime/components/form/fields/2026-06-20/com.shwfed.form.field.tabs/schema.d.ts +7 -0
  153. package/dist/runtime/components/form/fields/2026-06-20/com.shwfed.form.field.tabs/schema.js +4 -0
  154. package/dist/runtime/components/form/fields/2026-07-13/com.shwfed.form.field.dynamic/prompt.md +14 -0
  155. package/dist/runtime/components/form/fields/2026-07-13/com.shwfed.form.field.dynamic/schema.d.ts +1 -0
  156. package/dist/runtime/components/form/fields/2026-07-13/com.shwfed.form.field.dynamic/schema.js +1 -0
  157. package/dist/runtime/components/form/unit-config.vue +2 -2
  158. package/dist/runtime/components/form/utils/ai-field-tools.d.ts +2 -2
  159. package/dist/runtime/components/form/utils/ai-field-tools.js +47 -30
  160. package/dist/runtime/components/form/utils/resolve.d.ts +11 -0
  161. package/dist/runtime/components/form/utils/resolve.js +13 -1
  162. package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/schema.d.ts +1 -0
  163. package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/schema.js +2 -1
  164. package/dist/runtime/components/operations/2026-06-11/com.shwfed.operation.http.request.json/schema.d.ts +1 -0
  165. package/dist/runtime/components/operations/2026-06-11/com.shwfed.operation.http.request.json/schema.js +1 -0
  166. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/schema.d.ts +1 -0
  167. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/schema.js +2 -1
  168. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.navigation/schema.d.ts +1 -0
  169. package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.navigation/schema.js +2 -1
  170. package/dist/runtime/components/operations/2026-07-06/com.shwfed.operation.table.add-row/schema.d.ts +1 -0
  171. package/dist/runtime/components/operations/2026-07-06/com.shwfed.operation.table.add-row/schema.js +2 -1
  172. package/dist/runtime/components/operations/utils/resolve.d.ts +17 -0
  173. package/dist/runtime/components/operations/utils/resolve.js +18 -1
  174. package/dist/runtime/components/table/ai-l1.md +38 -0
  175. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.d.ts +7 -0
  176. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.js +5 -1
  177. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.d.ts +1 -0
  178. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.js +2 -1
  179. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.d.ts +1 -0
  180. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.js +2 -1
  181. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.d.ts +1 -0
  182. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.js +2 -1
  183. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.d.ts +1 -0
  184. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.js +2 -1
  185. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/schema.d.ts +1 -0
  186. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/schema.js +2 -1
  187. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.d.ts +1 -0
  188. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.js +2 -1
  189. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.d.ts +1 -0
  190. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.js +2 -1
  191. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.d.ts +1 -0
  192. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.js +2 -1
  193. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.d.ts +1 -0
  194. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.js +2 -1
  195. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.d.ts +1 -0
  196. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.js +2 -1
  197. package/dist/runtime/components/table/columns/2026-05-21/com.shwfed.table.column.drag-handle/schema.d.ts +1 -0
  198. package/dist/runtime/components/table/columns/2026-05-21/com.shwfed.table.column.drag-handle/schema.js +2 -1
  199. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -8
  200. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
  201. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
  202. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
  203. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -8
  204. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
  205. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
  206. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
  207. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/prompt.md +12 -0
  208. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/schema.d.ts +1 -0
  209. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/schema.js +1 -0
  210. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/prompt.md +16 -0
  211. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/schema.d.ts +1 -0
  212. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/schema.js +1 -0
  213. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -8
  214. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
  215. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +1 -0
  216. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/schema.js +1 -0
  217. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
  218. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
  219. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/schema.d.ts +1 -0
  220. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/schema.js +1 -0
  221. package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.d.ts +1 -0
  222. package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.js +2 -1
  223. package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/schema.d.ts +1 -0
  224. package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/schema.js +2 -1
  225. package/dist/runtime/components/table/columns/2026-07-12/com.shwfed.table.column.dynamic/prompt.md +15 -0
  226. package/dist/runtime/components/table/config.d.vue.ts +3 -3
  227. package/dist/runtime/components/table/config.vue +3 -35
  228. package/dist/runtime/components/table/config.vue.d.ts +3 -3
  229. package/dist/runtime/components/table/row-provider.vue +7 -1
  230. package/dist/runtime/components/table/schema.d.ts +44 -44
  231. package/dist/runtime/components/table/utils/ai-tools.js +16 -7
  232. package/dist/runtime/components/table/utils/resolve.d.ts +5 -0
  233. package/dist/runtime/components/table/utils/resolve.js +12 -1
  234. package/dist/runtime/share/clipboard.d.ts +15 -9
  235. package/dist/runtime/share/clipboard.js +22 -10
  236. package/dist/runtime/share/define-registry.d.ts +66 -0
  237. package/dist/runtime/share/define-registry.js +37 -1
  238. package/dist/runtime/share/use-persisted-chat.d.ts +11 -9
  239. package/dist/runtime/share/use-persisted-chat.js +3 -3
  240. package/dist/runtime/utils/ai/index.d.ts +1 -1
  241. package/dist/runtime/utils/ai/index.js +18 -11
  242. package/dist/runtime/utils/cel-catalog.d.ts +1 -0
  243. package/dist/runtime/utils/cel-catalog.js +10 -0
  244. package/dist/runtime/utils/cel-catalog.md +42 -0
  245. package/dist/runtime/utils/cel-context.d.ts +15 -0
  246. package/dist/runtime/utils/cel-context.js +8 -0
  247. package/dist/runtime/vendor/cel-js/CLAUDE.md +7 -2
  248. package/dist/runtime/vendor/cel-js/PROMPT.md +27 -0
  249. package/dist/runtime/vendor/cel-js/lib/evaluator.js +2 -0
  250. package/dist/runtime/vendor/cel-js/lib/globals.d.ts +2 -0
  251. package/dist/runtime/vendor/cel-js/lib/globals.js +10 -0
  252. package/dist/runtime/vendor/cel-js/lib/map-builtins.d.ts +2 -0
  253. package/dist/runtime/vendor/cel-js/lib/map-builtins.js +80 -0
  254. package/dist/runtime/vendor/cel-js/lib/operators.js +2 -12
  255. package/package.json +1 -1
  256. package/dist/runtime/components/table/ai-generate.d.vue.ts +0 -16
  257. package/dist/runtime/components/table/ai-generate.system.md +0 -101
  258. package/dist/runtime/components/table/ai-generate.vue.d.ts +0 -16
  259. /package/dist/runtime/components/{table → config}/ai-generate.system.d.ts +0 -0
  260. /package/dist/runtime/components/{table → config}/ai-generate.system.js +0 -0
@@ -0,0 +1,80 @@
1
+ import { evaluationError } from "./errors.js";
2
+ import { Decimal } from "./decimal.js";
3
+ import { hasOwn, isArray, objKeys, safeFromEntries } from "./globals.js";
4
+ class MapNamespace {
5
+ brand = "Map";
6
+ }
7
+ const MAP_INSTANCE = new MapNamespace();
8
+ function isRecord(v) {
9
+ if (v === null || typeof v !== "object" || isArray(v)) return false;
10
+ if (v instanceof Map) return true;
11
+ const proto = Object.getPrototypeOf(v);
12
+ return proto === Object.prototype || proto === null;
13
+ }
14
+ function hasField(entry, name) {
15
+ return entry instanceof Map ? entry.has(name) : hasOwn(entry, name);
16
+ }
17
+ function readField(entry, name) {
18
+ return entry instanceof Map ? entry.get(name) : entry[name];
19
+ }
20
+ function assertKey(key, index) {
21
+ const ok = typeof key === "string" || typeof key === "boolean" || typeof key === "number" || typeof key === "bigint" || key instanceof Decimal;
22
+ if (!ok) {
23
+ throw evaluationError(
24
+ "invalid_map_key",
25
+ `Map.fromList(): entry ${index} has a '${key === null ? "null" : typeof key}' key (expected string / number / bool)`
26
+ );
27
+ }
28
+ return key;
29
+ }
30
+ export function registerMapBuiltins(registry) {
31
+ registry.registerType("Map", MapNamespace);
32
+ registry.registerVariable({
33
+ name: "Map",
34
+ type: "Map",
35
+ value: MAP_INSTANCE,
36
+ description: "\u6620\u5C04\u6784\u9020\u4E0E\u89E3\u6784"
37
+ });
38
+ registry.registerFunctionOverload(
39
+ "Map.fromList(list<dyn>): map<dyn, dyn>",
40
+ (_r, entries) => {
41
+ if (!isArray(entries)) {
42
+ throw evaluationError(
43
+ "invalid_argument",
44
+ `Map.fromList(): expects a list of {key, value} records`
45
+ );
46
+ }
47
+ const pairs = entries.map((entry, i) => {
48
+ if (!isRecord(entry)) {
49
+ throw evaluationError(
50
+ "invalid_map_entry",
51
+ `Map.fromList(): entry ${i} is not a {key, value} record`
52
+ );
53
+ }
54
+ for (const field of ["key", "value"]) {
55
+ if (!hasField(entry, field)) {
56
+ throw evaluationError(
57
+ "invalid_map_entry",
58
+ `Map.fromList(): entry ${i} has no '${field}' field`
59
+ );
60
+ }
61
+ }
62
+ return [assertKey(readField(entry, "key"), i), readField(entry, "value")];
63
+ });
64
+ return safeFromEntries(pairs);
65
+ }
66
+ );
67
+ registry.registerFunctionOverload(
68
+ "Map.toList(map<dyn, dyn>): list<map<string, dyn>>",
69
+ (_r, m) => {
70
+ if (!isRecord(m)) {
71
+ throw evaluationError("invalid_argument", `Map.toList(): expects a map`);
72
+ }
73
+ if (m instanceof Map) {
74
+ return Array.from(m, ([key, value]) => ({ key, value }));
75
+ }
76
+ const obj = m;
77
+ return objKeys(obj).map((key) => ({ key, value: obj[key] }));
78
+ }
79
+ );
80
+ }
@@ -1,7 +1,7 @@
1
1
  import { Effect, Either, Option } from "effect";
2
2
  import { celTypes } from "./registry.js";
3
3
  import { Decimal } from "./decimal.js";
4
- import { objKeys, isArray, hasOwn } from "./globals.js";
4
+ import { objKeys, isArray, hasOwn, FORBIDDEN_KEYS, safeFromEntries } from "./globals.js";
5
5
  import { attachErrorAst } from "./errors.js";
6
6
  const dynType = celTypes.dyn;
7
7
  export class Base {
@@ -101,10 +101,9 @@ function spreadMapEntryTypes(chk, ctx, node) {
101
101
  node
102
102
  );
103
103
  }
104
- const SPREAD_SKIP_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
105
104
  function assignFragmentEntry(obj, k, v) {
106
105
  const key = k;
107
- if (SPREAD_SKIP_KEYS.has(key)) return;
106
+ if (FORBIDDEN_KEYS.has(key)) return;
108
107
  obj[key] = v;
109
108
  }
110
109
  function mergeMapFragments(ev, frags) {
@@ -354,15 +353,6 @@ function resolveAstArray(ev, astArray, ctx) {
354
353
  if (astArray.length === 0) return Effect.succeed([]);
355
354
  return Effect.all(astArray.map((a) => ev.eval(a, ctx)));
356
355
  }
357
- function safeFromEntries(entries) {
358
- const obj = {};
359
- for (let i = 0; i < entries.length; i++) {
360
- const [k, v] = entries[i];
361
- if (k === "__proto__" || k === "constructor" || k === "prototype") continue;
362
- obj[k] = v;
363
- }
364
- return obj;
365
- }
366
356
  function comprehensionElementType(chk, iterable, ctx) {
367
357
  const iterType = chk.check(iterable, ctx);
368
358
  if (iterType.kind === "dyn") return iterType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shwfed/config",
3
- "version": "3.0.6",
3
+ "version": "3.0.8",
4
4
  "description": "Configurable UI for SHWFED",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -1,16 +0,0 @@
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;
@@ -1,101 +0,0 @@
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`。
96
-
97
- ### 配置搜索条件
98
-
99
- 你应该根据 API 文档配置其支持的搜索条件。搜索条件应该排除分页、排序相关信息,仅包含业务逻辑。
100
-
101
- 你应该首要考虑文本输入、数字输入、数字范围输入、日期范围输入、日期时间范围输入。如果你遇到了从多个值中选取一个或多个,考虑单选或者多选。如果你不能确定单选和多选的选项,向用户提问。当你不确定选项时,向用户所要配置选项的相关信息。
@@ -1,16 +0,0 @@
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;