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