@shwfed/config 2.11.6 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/schema.d.ts +13 -7
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/schema.d.ts +13 -7
- package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/schema.d.ts +13 -7
- package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/schema.d.ts +13 -7
- package/dist/runtime/components/actions/schema.d.ts +82 -52
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/schema.d.ts +5 -5
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/schema.d.ts +13 -7
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +62 -38
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/schema.d.ts +26 -14
- package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.xy/schema.d.ts +39 -21
- package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/schema.d.ts +13 -7
- package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.card/schema.d.ts +26 -14
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/schema.d.ts +44 -26
- package/dist/runtime/components/config/schema.d.ts +13 -7
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.d.ts +26 -14
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.d.ts +57 -33
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.d.ts +52 -28
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/schema.d.ts +18 -12
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/schema.d.ts +65 -35
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +18 -18
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +18 -18
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/schema.d.ts +91 -49
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +18 -18
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +18 -18
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/schema.d.ts +91 -49
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/schema.d.ts +39 -21
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/schema.d.ts +39 -21
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.d.vue.ts +28 -28
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts +28 -28
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.d.ts +57 -33
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.d.vue.ts +6 -6
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.vue.d.ts +6 -6
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/schema.d.ts +65 -35
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/schema.d.ts +65 -35
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/schema.d.ts +104 -56
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/schema.d.ts +65 -35
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/schema.d.ts +91 -49
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/schema.d.ts +91 -49
- package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/schema.d.ts +39 -21
- package/dist/runtime/components/form/fields/2026-05-20/com.shwfed.form.field.collapsible/schema.d.ts +13 -7
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.d.vue.ts +18 -18
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.vue.d.ts +18 -18
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/schema.d.ts +91 -49
- package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/schema.d.ts +65 -35
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/schema.d.ts +169 -91
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/schema.d.ts +169 -91
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-06-09/com.shwfed.form.field.upload/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.multi/schema.d.ts +130 -70
- package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.single/schema.d.ts +130 -70
- package/dist/runtime/components/form/fields/2026-06-20/com.shwfed.form.field.tabs/schema.d.ts +26 -14
- package/dist/runtime/components/form/utils/common.d.ts +26 -14
- package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/schema.d.ts +13 -7
- package/dist/runtime/components/operations/2026-06-11/com.shwfed.operation.http.request.json/schema.d.ts +13 -7
- package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/schema.d.ts +13 -7
- package/dist/runtime/components/table/ai-generate.d.vue.ts +16 -0
- package/dist/runtime/components/table/ai-generate.system.d.ts +1 -0
- package/dist/runtime/components/table/ai-generate.system.js +10 -0
- package/dist/runtime/components/table/ai-generate.system.md +95 -0
- package/dist/runtime/components/table/ai-generate.vue +172 -0
- package/dist/runtime/components/table/ai-generate.vue.d.ts +16 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.d.ts +18 -12
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.d.ts +26 -14
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.d.ts +26 -14
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.d.ts +39 -21
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.d.ts +26 -14
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.d.ts +26 -14
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/schema.d.ts +26 -14
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.d.ts +26 -14
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/schema.d.ts +91 -49
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.d.ts +44 -26
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/schema.d.ts +52 -28
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.d.ts +52 -28
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.d.ts +44 -26
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/schema.d.ts +52 -28
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/schema.d.ts +91 -49
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/schema.d.ts +91 -49
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/schema.d.ts +52 -28
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/schema.d.ts +91 -49
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/schema.d.ts +156 -84
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/schema.d.ts +156 -84
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/schema.d.ts +156 -84
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/schema.d.ts +156 -84
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +65 -35
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/schema.d.ts +65 -35
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.d.ts +156 -84
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.d.ts +156 -84
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +65 -35
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/schema.d.ts +65 -35
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/schema.d.ts +117 -63
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/schema.d.ts +117 -63
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +52 -28
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/schema.d.ts +52 -28
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.d.ts +70 -40
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/schema.d.ts +78 -42
- package/dist/runtime/components/table/config.d.vue.ts +3 -3
- package/dist/runtime/components/table/config.vue +37 -3
- package/dist/runtime/components/table/config.vue.d.ts +3 -3
- package/dist/runtime/components/table/schema.d.ts +114 -66
- package/dist/runtime/components/table/utils/ai-tools.d.ts +11 -0
- package/dist/runtime/components/table/utils/ai-tools.js +458 -0
- package/dist/runtime/components/table/utils/resolve.d.ts +23 -0
- package/dist/runtime/components/table/utils/resolve.js +3 -0
- package/dist/runtime/components/table/utils/shared.d.ts +65 -35
- package/dist/runtime/components/table/utils/shared.js +16 -17
- package/dist/runtime/components/ui/chat/ChatMessage.d.vue.ts +7 -0
- package/dist/runtime/components/ui/chat/ChatMessage.vue +35 -0
- package/dist/runtime/components/ui/chat/ChatMessage.vue.d.ts +7 -0
- package/dist/runtime/components/ui/chat/ChatMessagePart.d.vue.ts +7 -0
- package/dist/runtime/components/ui/chat/ChatMessagePart.vue +43 -0
- package/dist/runtime/components/ui/chat/ChatMessagePart.vue.d.ts +7 -0
- package/dist/runtime/components/ui/chat/ChatMessages.d.vue.ts +18 -0
- package/dist/runtime/components/ui/chat/ChatMessages.vue +63 -0
- package/dist/runtime/components/ui/chat/ChatMessages.vue.d.ts +18 -0
- package/dist/runtime/components/ui/chat/ChatPrompt.d.vue.ts +24 -0
- package/dist/runtime/components/ui/chat/ChatPrompt.vue +43 -0
- package/dist/runtime/components/ui/chat/ChatPrompt.vue.d.ts +24 -0
- package/dist/runtime/components/ui/chat/ChatPromptSubmit.d.vue.ts +18 -0
- package/dist/runtime/components/ui/chat/ChatPromptSubmit.vue +41 -0
- package/dist/runtime/components/ui/chat/ChatPromptSubmit.vue.d.ts +18 -0
- package/dist/runtime/components/ui/chat/ChatReasoning.d.vue.ts +7 -0
- package/dist/runtime/components/ui/chat/ChatReasoning.vue +33 -0
- package/dist/runtime/components/ui/chat/ChatReasoning.vue.d.ts +7 -0
- package/dist/runtime/components/ui/chat/ChatToolCall.d.vue.ts +10 -0
- package/dist/runtime/components/ui/chat/ChatToolCall.vue +92 -0
- package/dist/runtime/components/ui/chat/ChatToolCall.vue.d.ts +10 -0
- package/dist/runtime/components/ui/chat/index.d.ts +9 -0
- package/dist/runtime/components/ui/chat/index.js +8 -0
- package/dist/runtime/components/ui/stream-markdown/StreamMarkdown.d.vue.ts +15 -0
- package/dist/runtime/components/ui/stream-markdown/StreamMarkdown.vue +22 -0
- package/dist/runtime/components/ui/stream-markdown/StreamMarkdown.vue.d.ts +15 -0
- package/dist/runtime/components/ui/stream-markdown/index.d.ts +1 -0
- package/dist/runtime/components/ui/stream-markdown/index.js +1 -0
- package/dist/runtime/share/coerce-from-string.d.ts +62 -0
- package/dist/runtime/share/coerce-from-string.js +154 -0
- package/dist/runtime/share/locale.d.ts +13 -7
- package/dist/runtime/share/locale.js +27 -5
- package/dist/runtime/share/use-persisted-chat.d.ts +30 -0
- package/dist/runtime/share/use-persisted-chat.js +34 -0
- package/dist/runtime/utils/ai/index.d.ts +10 -0
- package/dist/runtime/utils/ai/index.js +123 -33
- package/dist/runtime/utils/ai/parts.d.ts +30 -0
- package/dist/runtime/utils/ai/parts.js +9 -0
- package/package.json +2 -1
|
@@ -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="[
|
|
@@ -1279,8 +1300,21 @@ const tableQueryValue = computed({
|
|
|
1279
1300
|
</div>
|
|
1280
1301
|
</div>
|
|
1281
1302
|
|
|
1282
|
-
<div class="flex flex-1 flex-col">
|
|
1283
|
-
|
|
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
|
+
>
|
|
1284
1318
|
<div
|
|
1285
1319
|
v-if="selectedGeneral"
|
|
1286
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
|
|
12
|
+
declare var __VLS_234: {}, __VLS_236: {};
|
|
13
13
|
type __VLS_Slots = {} & {
|
|
14
|
-
'general-grid-extra'?: (props: typeof
|
|
14
|
+
'general-grid-extra'?: (props: typeof __VLS_234) => any;
|
|
15
15
|
} & {
|
|
16
|
-
'general-extra'?: (props: typeof
|
|
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;
|
|
@@ -63,37 +63,61 @@ export declare const Pagination: Schema.Struct<{
|
|
|
63
63
|
pageSize: Schema.refine<number, Schema.filter<typeof Schema.Number>>;
|
|
64
64
|
pageSizes: Schema.optional<Schema.Array$<Schema.filter<Schema.filter<typeof Schema.Number>>>>;
|
|
65
65
|
pageIndex: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
|
|
66
|
-
left: Schema.optional<Schema.
|
|
67
|
-
locale:
|
|
68
|
-
message:
|
|
69
|
-
}
|
|
70
|
-
locale:
|
|
71
|
-
message:
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
66
|
+
left: Schema.optional<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>>;
|
|
79
|
+
right: Schema.optional<Schema.suspend<readonly [{
|
|
80
|
+
readonly locale: "zh";
|
|
81
|
+
readonly message: string;
|
|
82
|
+
}, ...{
|
|
83
|
+
readonly locale: "en" | "ja" | "ko";
|
|
84
|
+
readonly message: string;
|
|
85
|
+
}[]], string | readonly [{
|
|
86
|
+
readonly locale: "zh";
|
|
87
|
+
readonly message: string;
|
|
88
|
+
}, ...{
|
|
89
|
+
readonly locale: "en" | "ja" | "ko";
|
|
90
|
+
readonly message: string;
|
|
91
|
+
}[]], never>>;
|
|
80
92
|
}>;
|
|
81
93
|
export declare const ColumnGroup: Schema.Struct<{
|
|
82
94
|
id: Schema.refine<string, typeof Schema.String>;
|
|
83
|
-
title: Schema.optional<Schema.
|
|
84
|
-
locale:
|
|
85
|
-
message:
|
|
86
|
-
}
|
|
87
|
-
locale:
|
|
88
|
-
message:
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
title: Schema.optional<Schema.suspend<readonly [{
|
|
96
|
+
readonly locale: "zh";
|
|
97
|
+
readonly message: string;
|
|
98
|
+
}, ...{
|
|
99
|
+
readonly locale: "en" | "ja" | "ko";
|
|
100
|
+
readonly message: string;
|
|
101
|
+
}[]], string | readonly [{
|
|
102
|
+
readonly locale: "zh";
|
|
103
|
+
readonly message: string;
|
|
104
|
+
}, ...{
|
|
105
|
+
readonly locale: "en" | "ja" | "ko";
|
|
106
|
+
readonly message: string;
|
|
107
|
+
}[]], never>>;
|
|
108
|
+
tooltip: Schema.optional<Schema.suspend<readonly [{
|
|
109
|
+
readonly locale: "zh";
|
|
110
|
+
readonly message: string;
|
|
111
|
+
}, ...{
|
|
112
|
+
readonly locale: "en" | "ja" | "ko";
|
|
113
|
+
readonly message: string;
|
|
114
|
+
}[]], string | readonly [{
|
|
115
|
+
readonly locale: "zh";
|
|
116
|
+
readonly message: string;
|
|
117
|
+
}, ...{
|
|
118
|
+
readonly locale: "en" | "ja" | "ko";
|
|
119
|
+
readonly message: string;
|
|
120
|
+
}[]], never>>;
|
|
97
121
|
}>;
|
|
98
122
|
export declare function configureTableActionsScope(env: Environment, configure: (env: Environment) => void): void;
|
|
99
123
|
export declare function registerDataSourceRequestVars(env: Environment): void;
|
|
@@ -358,20 +382,32 @@ export declare function TableConfig(configure: (env: Environment) => void): Sche
|
|
|
358
382
|
columns: Schema.Array$<Schema.Schema<any, any, never>>;
|
|
359
383
|
groups: Schema.optionalWith<Schema.Array$<Schema.Struct<{
|
|
360
384
|
id: Schema.refine<string, typeof Schema.String>;
|
|
361
|
-
title: Schema.optional<Schema.
|
|
362
|
-
locale:
|
|
363
|
-
message:
|
|
364
|
-
}
|
|
365
|
-
locale:
|
|
366
|
-
message:
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
385
|
+
title: Schema.optional<Schema.suspend<readonly [{
|
|
386
|
+
readonly locale: "zh";
|
|
387
|
+
readonly message: string;
|
|
388
|
+
}, ...{
|
|
389
|
+
readonly locale: "en" | "ja" | "ko";
|
|
390
|
+
readonly message: string;
|
|
391
|
+
}[]], string | readonly [{
|
|
392
|
+
readonly locale: "zh";
|
|
393
|
+
readonly message: string;
|
|
394
|
+
}, ...{
|
|
395
|
+
readonly locale: "en" | "ja" | "ko";
|
|
396
|
+
readonly message: string;
|
|
397
|
+
}[]], never>>;
|
|
398
|
+
tooltip: Schema.optional<Schema.suspend<readonly [{
|
|
399
|
+
readonly locale: "zh";
|
|
400
|
+
readonly message: string;
|
|
401
|
+
}, ...{
|
|
402
|
+
readonly locale: "en" | "ja" | "ko";
|
|
403
|
+
readonly message: string;
|
|
404
|
+
}[]], string | readonly [{
|
|
405
|
+
readonly locale: "zh";
|
|
406
|
+
readonly message: string;
|
|
407
|
+
}, ...{
|
|
408
|
+
readonly locale: "en" | "ja" | "ko";
|
|
409
|
+
readonly message: string;
|
|
410
|
+
}[]], never>>;
|
|
375
411
|
}>>, {
|
|
376
412
|
default: () => never[];
|
|
377
413
|
}>;
|
|
@@ -451,7 +487,7 @@ export declare function TableConfig(configure: (env: Environment) => void): Sche
|
|
|
451
487
|
readonly hideTitle?: boolean | undefined;
|
|
452
488
|
}, import("../actions/schema.js").RegistryItemValue | {
|
|
453
489
|
readonly id: string;
|
|
454
|
-
readonly title: readonly [{
|
|
490
|
+
readonly title: string | readonly [{
|
|
455
491
|
readonly locale: "zh";
|
|
456
492
|
readonly message: string;
|
|
457
493
|
}, ...{
|
|
@@ -462,7 +498,7 @@ export declare function TableConfig(configure: (env: Environment) => void): Sche
|
|
|
462
498
|
readonly disabled?: string | undefined;
|
|
463
499
|
readonly icon?: string | undefined;
|
|
464
500
|
readonly hidden?: string | undefined;
|
|
465
|
-
readonly tooltip?: readonly [{
|
|
501
|
+
readonly tooltip?: string | readonly [{
|
|
466
502
|
readonly locale: "zh";
|
|
467
503
|
readonly message: string;
|
|
468
504
|
}, ...{
|
|
@@ -474,7 +510,7 @@ export declare function TableConfig(configure: (env: Environment) => void): Sche
|
|
|
474
510
|
readonly hideTitle?: boolean | undefined;
|
|
475
511
|
} | {
|
|
476
512
|
readonly id: string;
|
|
477
|
-
readonly title: readonly [{
|
|
513
|
+
readonly title: string | readonly [{
|
|
478
514
|
readonly locale: "zh";
|
|
479
515
|
readonly message: string;
|
|
480
516
|
}, ...{
|
|
@@ -483,7 +519,7 @@ export declare function TableConfig(configure: (env: Environment) => void): Sche
|
|
|
483
519
|
}[]];
|
|
484
520
|
readonly items: readonly (import("../actions/schema.js").RegistrySubItemValue | {
|
|
485
521
|
readonly id: string;
|
|
486
|
-
readonly title: readonly [{
|
|
522
|
+
readonly title: string | readonly [{
|
|
487
523
|
readonly locale: "zh";
|
|
488
524
|
readonly message: string;
|
|
489
525
|
}, ...{
|
|
@@ -493,7 +529,7 @@ export declare function TableConfig(configure: (env: Environment) => void): Sche
|
|
|
493
529
|
readonly disabled?: string | undefined;
|
|
494
530
|
readonly icon?: string | undefined;
|
|
495
531
|
readonly hidden?: string | undefined;
|
|
496
|
-
readonly tooltip?: readonly [{
|
|
532
|
+
readonly tooltip?: string | readonly [{
|
|
497
533
|
readonly locale: "zh";
|
|
498
534
|
readonly message: string;
|
|
499
535
|
}, ...{
|
|
@@ -579,7 +615,7 @@ export declare function TableConfig(configure: (env: Environment) => void): Sche
|
|
|
579
615
|
readonly hideTitle?: boolean | undefined;
|
|
580
616
|
}, import("../actions/schema.js").RegistryItemValue | {
|
|
581
617
|
readonly id: string;
|
|
582
|
-
readonly title: readonly [{
|
|
618
|
+
readonly title: string | readonly [{
|
|
583
619
|
readonly locale: "zh";
|
|
584
620
|
readonly message: string;
|
|
585
621
|
}, ...{
|
|
@@ -590,7 +626,7 @@ export declare function TableConfig(configure: (env: Environment) => void): Sche
|
|
|
590
626
|
readonly disabled?: string | undefined;
|
|
591
627
|
readonly icon?: string | undefined;
|
|
592
628
|
readonly hidden?: string | undefined;
|
|
593
|
-
readonly tooltip?: readonly [{
|
|
629
|
+
readonly tooltip?: string | readonly [{
|
|
594
630
|
readonly locale: "zh";
|
|
595
631
|
readonly message: string;
|
|
596
632
|
}, ...{
|
|
@@ -602,7 +638,7 @@ export declare function TableConfig(configure: (env: Environment) => void): Sche
|
|
|
602
638
|
readonly hideTitle?: boolean | undefined;
|
|
603
639
|
} | {
|
|
604
640
|
readonly id: string;
|
|
605
|
-
readonly title: readonly [{
|
|
641
|
+
readonly title: string | readonly [{
|
|
606
642
|
readonly locale: "zh";
|
|
607
643
|
readonly message: string;
|
|
608
644
|
}, ...{
|
|
@@ -611,7 +647,7 @@ export declare function TableConfig(configure: (env: Environment) => void): Sche
|
|
|
611
647
|
}[]];
|
|
612
648
|
readonly items: readonly (import("../actions/schema.js").RegistrySubItemValue | {
|
|
613
649
|
readonly id: string;
|
|
614
|
-
readonly title: readonly [{
|
|
650
|
+
readonly title: string | readonly [{
|
|
615
651
|
readonly locale: "zh";
|
|
616
652
|
readonly message: string;
|
|
617
653
|
}, ...{
|
|
@@ -621,7 +657,7 @@ export declare function TableConfig(configure: (env: Environment) => void): Sche
|
|
|
621
657
|
readonly disabled?: string | undefined;
|
|
622
658
|
readonly icon?: string | undefined;
|
|
623
659
|
readonly hidden?: string | undefined;
|
|
624
|
-
readonly tooltip?: readonly [{
|
|
660
|
+
readonly tooltip?: string | readonly [{
|
|
625
661
|
readonly locale: "zh";
|
|
626
662
|
readonly message: string;
|
|
627
663
|
}, ...{
|
|
@@ -717,20 +753,32 @@ export declare function TableConfig(configure: (env: Environment) => void): Sche
|
|
|
717
753
|
pageSize: Schema.refine<number, Schema.filter<typeof Schema.Number>>;
|
|
718
754
|
pageSizes: Schema.optional<Schema.Array$<Schema.filter<Schema.filter<typeof Schema.Number>>>>;
|
|
719
755
|
pageIndex: Schema.optional<Schema.filter<Schema.filter<typeof Schema.Number>>>;
|
|
720
|
-
left: Schema.optional<Schema.
|
|
721
|
-
locale:
|
|
722
|
-
message:
|
|
723
|
-
}
|
|
724
|
-
locale:
|
|
725
|
-
message:
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
756
|
+
left: Schema.optional<Schema.suspend<readonly [{
|
|
757
|
+
readonly locale: "zh";
|
|
758
|
+
readonly message: string;
|
|
759
|
+
}, ...{
|
|
760
|
+
readonly locale: "en" | "ja" | "ko";
|
|
761
|
+
readonly message: string;
|
|
762
|
+
}[]], string | readonly [{
|
|
763
|
+
readonly locale: "zh";
|
|
764
|
+
readonly message: string;
|
|
765
|
+
}, ...{
|
|
766
|
+
readonly locale: "en" | "ja" | "ko";
|
|
767
|
+
readonly message: string;
|
|
768
|
+
}[]], never>>;
|
|
769
|
+
right: Schema.optional<Schema.suspend<readonly [{
|
|
770
|
+
readonly locale: "zh";
|
|
771
|
+
readonly message: string;
|
|
772
|
+
}, ...{
|
|
773
|
+
readonly locale: "en" | "ja" | "ko";
|
|
774
|
+
readonly message: string;
|
|
775
|
+
}[]], string | readonly [{
|
|
776
|
+
readonly locale: "zh";
|
|
777
|
+
readonly message: string;
|
|
778
|
+
}, ...{
|
|
779
|
+
readonly locale: "en" | "ja" | "ko";
|
|
780
|
+
readonly message: string;
|
|
781
|
+
}[]], never>>;
|
|
734
782
|
}>>;
|
|
735
783
|
persistQuery: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
736
784
|
initialState: Schema.optional<Schema.Struct<{
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Environment } from '../../../vendor/cel-js/lib/index.js';
|
|
2
|
+
import type { AgenticTool } from '../../../utils/ai/index.js';
|
|
3
|
+
type AnyRecord = Record<string, any>;
|
|
4
|
+
export interface TableAiToolDeps {
|
|
5
|
+
readonly read: () => AnyRecord;
|
|
6
|
+
readonly write: (next: AnyRecord) => void;
|
|
7
|
+
readonly configure: (env: Environment) => void;
|
|
8
|
+
readonly genUuid: () => string;
|
|
9
|
+
}
|
|
10
|
+
export declare function createTableAiTools(deps: TableAiToolDeps): AgenticTool[];
|
|
11
|
+
export {};
|