@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
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, onMounted, ref, shallowRef, toRaw } from "vue";
|
|
3
|
+
import { Icon } from "@iconify/vue";
|
|
4
|
+
import { toast } from "vue-sonner";
|
|
5
|
+
import { ai as $ai } from "../../utils/ai";
|
|
6
|
+
import { createMessageId } from "../../utils/ai/parts";
|
|
7
|
+
import { usePersistedChat } from "../../share/use-persisted-chat";
|
|
8
|
+
import { ChatMessages, ChatPrompt } from "../ui/chat";
|
|
9
|
+
import { Button } from "../ui/button";
|
|
10
|
+
import { getSystemTemplate } from "./ai-generate.system";
|
|
11
|
+
import { createTableAiTools } from "./utils/ai-tools";
|
|
12
|
+
defineOptions({ name: "ShwfedTableAiGenerate" });
|
|
13
|
+
const config = defineModel({ type: Object, ...{ required: true } });
|
|
14
|
+
const props = defineProps({
|
|
15
|
+
configure: { type: Function, required: false }
|
|
16
|
+
});
|
|
17
|
+
const configure = props.configure ?? (() => {
|
|
18
|
+
});
|
|
19
|
+
const messages = ref([]);
|
|
20
|
+
const streaming = shallowRef(null);
|
|
21
|
+
const input = ref("");
|
|
22
|
+
const busy = ref(false);
|
|
23
|
+
let controller = null;
|
|
24
|
+
const { restore: restoreChat, clear: clearChat } = usePersistedChat(
|
|
25
|
+
() => config.value.id,
|
|
26
|
+
messages
|
|
27
|
+
);
|
|
28
|
+
onMounted(restoreChat);
|
|
29
|
+
const working = shallowRef(config.value);
|
|
30
|
+
const tools = createTableAiTools({
|
|
31
|
+
read: () => working.value,
|
|
32
|
+
write: (next) => {
|
|
33
|
+
const fresh = { ...next };
|
|
34
|
+
working.value = fresh;
|
|
35
|
+
config.value = fresh;
|
|
36
|
+
},
|
|
37
|
+
// `configure` is threaded into each tool's schema factory so the AI sees
|
|
38
|
+
// the same CEL scope the inline UI validates against. Replaces the old
|
|
39
|
+
// `schema` field (a full `TableConfig` Schema); per-tool schemas are now
|
|
40
|
+
// built internally from `configure`.
|
|
41
|
+
configure,
|
|
42
|
+
genUuid: () => crypto.randomUUID()
|
|
43
|
+
});
|
|
44
|
+
function buildSystem() {
|
|
45
|
+
return getSystemTemplate();
|
|
46
|
+
}
|
|
47
|
+
function snapshot(m) {
|
|
48
|
+
return { id: m.id, role: m.role, parts: m.parts.map((p) => ({ ...p })) };
|
|
49
|
+
}
|
|
50
|
+
const status = computed(() => busy.value ? "streaming" : "ready");
|
|
51
|
+
const displayMessages = computed(
|
|
52
|
+
() => streaming.value ? [...messages.value, streaming.value] : messages.value
|
|
53
|
+
);
|
|
54
|
+
const pending = computed(() => {
|
|
55
|
+
if (!busy.value) return false;
|
|
56
|
+
const s = streaming.value;
|
|
57
|
+
if (!s) return true;
|
|
58
|
+
return s.parts.every((p) => p.type === "step-start" || p.type === "text" && !p.text);
|
|
59
|
+
});
|
|
60
|
+
const canSend = computed(() => !busy.value && input.value.trim().length > 0);
|
|
61
|
+
const canClear = computed(() => !busy.value && messages.value.length > 0);
|
|
62
|
+
function newConversation() {
|
|
63
|
+
if (!canClear.value) return;
|
|
64
|
+
messages.value = [];
|
|
65
|
+
clearChat();
|
|
66
|
+
input.value = "";
|
|
67
|
+
}
|
|
68
|
+
function commitPartial(partial) {
|
|
69
|
+
if (partial && partial.parts.length > 0) {
|
|
70
|
+
messages.value = [...messages.value, partial];
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
async function send() {
|
|
74
|
+
if (!canSend.value) return;
|
|
75
|
+
const text = input.value.trim();
|
|
76
|
+
input.value = "";
|
|
77
|
+
messages.value = [
|
|
78
|
+
...messages.value,
|
|
79
|
+
{ id: createMessageId(), role: "user", parts: [{ type: "text", text }] }
|
|
80
|
+
];
|
|
81
|
+
try {
|
|
82
|
+
working.value = structuredClone(toRaw(config.value));
|
|
83
|
+
} catch {
|
|
84
|
+
working.value = config.value;
|
|
85
|
+
}
|
|
86
|
+
busy.value = true;
|
|
87
|
+
streaming.value = null;
|
|
88
|
+
controller = new AbortController();
|
|
89
|
+
try {
|
|
90
|
+
const final = await $ai.streamChat({
|
|
91
|
+
messages: messages.value,
|
|
92
|
+
system: buildSystem(),
|
|
93
|
+
tools,
|
|
94
|
+
signal: controller.signal,
|
|
95
|
+
// Re-publish a fresh snapshot per part mutation so the stream renders.
|
|
96
|
+
onMessageUpdate: (assistant) => {
|
|
97
|
+
streaming.value = snapshot(assistant);
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
messages.value = [...messages.value, final];
|
|
101
|
+
} catch (err) {
|
|
102
|
+
if (controller?.signal.aborted) {
|
|
103
|
+
commitPartial(streaming.value);
|
|
104
|
+
} else {
|
|
105
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
106
|
+
toast.error("\u751F\u6210\u5931\u8D25", { description: message });
|
|
107
|
+
}
|
|
108
|
+
} finally {
|
|
109
|
+
busy.value = false;
|
|
110
|
+
streaming.value = null;
|
|
111
|
+
controller = null;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
function stop() {
|
|
115
|
+
controller?.abort();
|
|
116
|
+
}
|
|
117
|
+
</script>
|
|
118
|
+
|
|
119
|
+
<template>
|
|
120
|
+
<div class="p-3">
|
|
121
|
+
<!-- Frameless chat: a scrolling message area flows directly in the pane over
|
|
122
|
+
a floating, shadowed composer — no outer border and no divider line, so
|
|
123
|
+
nothing visually boxes the conversation (matches the reference composer).
|
|
124
|
+
Fixed 48rem so the messages scroll internally (auto-scroll-to-bottom)
|
|
125
|
+
rather than growing the editor pane; the fixed outer height is what lets
|
|
126
|
+
the inner `flex-1` message area bound and scroll. -->
|
|
127
|
+
<div class="flex h-[48rem] flex-col bg-transparent">
|
|
128
|
+
<!-- New-conversation control: a quiet ghost button pinned top-right that
|
|
129
|
+
clears the dialogue (and its sessionStorage). Disabled while a turn
|
|
130
|
+
streams or when there's nothing to clear. -->
|
|
131
|
+
<div class="flex items-center justify-end pb-1">
|
|
132
|
+
<Button
|
|
133
|
+
type="button"
|
|
134
|
+
variant="ghost"
|
|
135
|
+
size="sm"
|
|
136
|
+
:disabled="!canClear"
|
|
137
|
+
@click="newConversation"
|
|
138
|
+
>
|
|
139
|
+
<Icon icon="fluent:add-20-regular" />
|
|
140
|
+
新对话
|
|
141
|
+
</Button>
|
|
142
|
+
</div>
|
|
143
|
+
|
|
144
|
+
<ChatMessages
|
|
145
|
+
:messages="displayMessages"
|
|
146
|
+
:pending="pending"
|
|
147
|
+
class="min-h-0 flex-1"
|
|
148
|
+
>
|
|
149
|
+
<template #empty>
|
|
150
|
+
<div class="flex flex-col items-center gap-4 text-center text-zinc-400">
|
|
151
|
+
<Icon
|
|
152
|
+
icon="fluent:sparkle-20-regular"
|
|
153
|
+
class="size-24"
|
|
154
|
+
/>
|
|
155
|
+
<p class="text-xl">
|
|
156
|
+
对话开始配置
|
|
157
|
+
</p>
|
|
158
|
+
</div>
|
|
159
|
+
</template>
|
|
160
|
+
</ChatMessages>
|
|
161
|
+
|
|
162
|
+
<div class="p-2">
|
|
163
|
+
<ChatPrompt
|
|
164
|
+
v-model="input"
|
|
165
|
+
:status="status"
|
|
166
|
+
@submit="send"
|
|
167
|
+
@stop="stop"
|
|
168
|
+
/>
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
</div>
|
|
172
|
+
</template>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Environment } from '../../vendor/cel-js/lib/index.js';
|
|
2
|
+
type AnyRecord = Record<string, any>;
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
configure?: (env: Environment) => void;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_ModelProps = {
|
|
7
|
+
modelValue: AnyRecord;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
"update:modelValue": (value: AnyRecord) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((value: AnyRecord) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
78
78
|
readonly hideTitle?: boolean | undefined;
|
|
79
79
|
}, import("../../../../actions/schema.js").RegistryItemValue | {
|
|
80
80
|
readonly id: string;
|
|
81
|
-
readonly title: readonly [{
|
|
81
|
+
readonly title: string | readonly [{
|
|
82
82
|
readonly locale: "zh";
|
|
83
83
|
readonly message: string;
|
|
84
84
|
}, ...{
|
|
@@ -89,7 +89,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
89
89
|
readonly disabled?: string | undefined;
|
|
90
90
|
readonly icon?: string | undefined;
|
|
91
91
|
readonly hidden?: string | undefined;
|
|
92
|
-
readonly tooltip?: readonly [{
|
|
92
|
+
readonly tooltip?: string | readonly [{
|
|
93
93
|
readonly locale: "zh";
|
|
94
94
|
readonly message: string;
|
|
95
95
|
}, ...{
|
|
@@ -101,7 +101,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
101
101
|
readonly hideTitle?: boolean | undefined;
|
|
102
102
|
} | {
|
|
103
103
|
readonly id: string;
|
|
104
|
-
readonly title: readonly [{
|
|
104
|
+
readonly title: string | readonly [{
|
|
105
105
|
readonly locale: "zh";
|
|
106
106
|
readonly message: string;
|
|
107
107
|
}, ...{
|
|
@@ -110,7 +110,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
110
110
|
}[]];
|
|
111
111
|
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
112
112
|
readonly id: string;
|
|
113
|
-
readonly title: readonly [{
|
|
113
|
+
readonly title: string | readonly [{
|
|
114
114
|
readonly locale: "zh";
|
|
115
115
|
readonly message: string;
|
|
116
116
|
}, ...{
|
|
@@ -120,7 +120,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
120
120
|
readonly disabled?: string | undefined;
|
|
121
121
|
readonly icon?: string | undefined;
|
|
122
122
|
readonly hidden?: string | undefined;
|
|
123
|
-
readonly tooltip?: readonly [{
|
|
123
|
+
readonly tooltip?: string | readonly [{
|
|
124
124
|
readonly locale: "zh";
|
|
125
125
|
readonly message: string;
|
|
126
126
|
}, ...{
|
|
@@ -134,13 +134,19 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
134
134
|
readonly icon?: string | undefined;
|
|
135
135
|
readonly hideTitle?: boolean | undefined;
|
|
136
136
|
}, never>>;
|
|
137
|
-
title: Schema.optional<Schema.
|
|
138
|
-
locale:
|
|
139
|
-
message:
|
|
140
|
-
}
|
|
141
|
-
locale:
|
|
142
|
-
message:
|
|
143
|
-
}
|
|
137
|
+
title: Schema.optional<Schema.suspend<readonly [{
|
|
138
|
+
readonly locale: "zh";
|
|
139
|
+
readonly message: string;
|
|
140
|
+
}, ...{
|
|
141
|
+
readonly locale: "en" | "ja" | "ko";
|
|
142
|
+
readonly message: string;
|
|
143
|
+
}[]], string | readonly [{
|
|
144
|
+
readonly locale: "zh";
|
|
145
|
+
readonly message: string;
|
|
146
|
+
}, ...{
|
|
147
|
+
readonly locale: "en" | "ja" | "ko";
|
|
148
|
+
readonly message: string;
|
|
149
|
+
}[]], never>>;
|
|
144
150
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
145
151
|
grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
146
152
|
id: Schema.refine<string, typeof Schema.String>;
|
package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.d.ts
CHANGED
|
@@ -13,25 +13,37 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
13
13
|
default: () => "left";
|
|
14
14
|
}>;
|
|
15
15
|
format: Schema.SchemaClass<string, string, never>;
|
|
16
|
-
title: Schema.
|
|
17
|
-
locale:
|
|
18
|
-
message:
|
|
19
|
-
}
|
|
20
|
-
locale:
|
|
21
|
-
message:
|
|
22
|
-
}
|
|
16
|
+
title: 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
|
accessor: Schema.optional<Schema.Schema<string, string, never>>;
|
|
24
30
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
25
31
|
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
26
32
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
27
33
|
grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
28
|
-
tooltip: Schema.optional<Schema.
|
|
29
|
-
locale:
|
|
30
|
-
message:
|
|
31
|
-
}
|
|
32
|
-
locale:
|
|
33
|
-
message:
|
|
34
|
-
}
|
|
34
|
+
tooltip: 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>>;
|
|
35
47
|
hidden: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
36
48
|
id: Schema.refine<string, typeof Schema.String>;
|
|
37
49
|
groupId: Schema.optional<typeof Schema.UUID>;
|
package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/runtime.vue
CHANGED
|
@@ -3,7 +3,7 @@ import { computed } from "vue";
|
|
|
3
3
|
import { Icon } from "@iconify/vue";
|
|
4
4
|
import { Effect } from "effect";
|
|
5
5
|
import { cel as $cel } from "../../../../../utils/cel";
|
|
6
|
-
import {
|
|
6
|
+
import { celScope, injectCELContext } from "../../../../../utils/cel-context";
|
|
7
7
|
import { JUSTIFY_CLASS } from "../../../utils/runtime";
|
|
8
8
|
defineOptions({ name: "ShwfedTableIconRendererRuntime" });
|
|
9
9
|
const props = defineProps({
|
|
@@ -18,11 +18,10 @@ const iconName = computed(() => {
|
|
|
18
18
|
const color = computed(() => {
|
|
19
19
|
if (!props.column.color) return void 0;
|
|
20
20
|
try {
|
|
21
|
-
const v = Effect.runSync($cel(props.column.color, {
|
|
22
|
-
...celBindings(celContext),
|
|
21
|
+
const v = Effect.runSync($cel(props.column.color, celScope(celContext, {
|
|
23
22
|
row: props.ctx.row?.original,
|
|
24
23
|
index: props.ctx.row?.index
|
|
25
|
-
}));
|
|
24
|
+
})));
|
|
26
25
|
return typeof v === "string" && v.length > 0 ? v : void 0;
|
|
27
26
|
} catch (e) {
|
|
28
27
|
console.error("[shwfed-table] icon color expression failed", e);
|
package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.d.ts
CHANGED
|
@@ -14,24 +14,36 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
14
14
|
align: Schema.optionalWith<Schema.Literal<["left", "center", "right"]>, {
|
|
15
15
|
default: () => "center";
|
|
16
16
|
}>;
|
|
17
|
-
title: Schema.
|
|
18
|
-
locale:
|
|
19
|
-
message:
|
|
20
|
-
}
|
|
21
|
-
locale:
|
|
22
|
-
message:
|
|
23
|
-
}
|
|
17
|
+
title: Schema.suspend<readonly [{
|
|
18
|
+
readonly locale: "zh";
|
|
19
|
+
readonly message: string;
|
|
20
|
+
}, ...{
|
|
21
|
+
readonly locale: "en" | "ja" | "ko";
|
|
22
|
+
readonly message: string;
|
|
23
|
+
}[]], string | readonly [{
|
|
24
|
+
readonly locale: "zh";
|
|
25
|
+
readonly message: string;
|
|
26
|
+
}, ...{
|
|
27
|
+
readonly locale: "en" | "ja" | "ko";
|
|
28
|
+
readonly message: string;
|
|
29
|
+
}[]], never>;
|
|
24
30
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
25
31
|
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
26
32
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
27
33
|
grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
28
|
-
tooltip: Schema.optional<Schema.
|
|
29
|
-
locale:
|
|
30
|
-
message:
|
|
31
|
-
}
|
|
32
|
-
locale:
|
|
33
|
-
message:
|
|
34
|
-
}
|
|
34
|
+
tooltip: 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>>;
|
|
35
47
|
hidden: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
36
48
|
id: Schema.refine<string, typeof Schema.String>;
|
|
37
49
|
groupId: Schema.optional<typeof Schema.UUID>;
|
|
@@ -8,7 +8,7 @@ import { getLocalizedText } from "../../../../../share/locale";
|
|
|
8
8
|
import { Button } from "../../../../ui/button";
|
|
9
9
|
import { Markdown } from "../../../../ui/markdown";
|
|
10
10
|
import { JUSTIFY_CLASS, interpolateMarkdown } from "../../../utils/runtime";
|
|
11
|
-
import {
|
|
11
|
+
import { celScope, injectCELContext } from "../../../../../utils/cel-context";
|
|
12
12
|
defineOptions({ name: "ShwfedTableMarkdownRendererRuntime" });
|
|
13
13
|
const props = defineProps({
|
|
14
14
|
column: { type: null, required: true },
|
|
@@ -19,7 +19,7 @@ const celContext = injectCELContext();
|
|
|
19
19
|
const rendered = computed(() => {
|
|
20
20
|
const source = getLocalizedText(props.column.markdown, locale.value) ?? "";
|
|
21
21
|
if (!source) return "";
|
|
22
|
-
return interpolateMarkdown(source, $cel,
|
|
22
|
+
return interpolateMarkdown(source, $cel, celScope(celContext));
|
|
23
23
|
});
|
|
24
24
|
const isEmpty = computed(() => rendered.value.trim().length === 0);
|
|
25
25
|
const align = computed(() => isEmpty.value ? "center" : props.column.align ?? "left");
|
|
@@ -28,7 +28,7 @@ const copyText = computed(() => {
|
|
|
28
28
|
const { copyExpression } = props.column;
|
|
29
29
|
if (!copyExpression) return void 0;
|
|
30
30
|
try {
|
|
31
|
-
const value = Effect.runSync($cel(copyExpression,
|
|
31
|
+
const value = Effect.runSync($cel(copyExpression, celScope(celContext)));
|
|
32
32
|
return value === void 0 || value === null ? void 0 : String(value);
|
|
33
33
|
} catch (e) {
|
|
34
34
|
console.error("[shwfed-table] markdown copy expression failed", e);
|
|
@@ -9,38 +9,56 @@ export declare const metadata: {
|
|
|
9
9
|
readonly icon: "fluent:markdown-20-regular";
|
|
10
10
|
};
|
|
11
11
|
export declare function schema(configure: (env: Environment) => void): Schema.Struct<{
|
|
12
|
-
title: Schema.
|
|
13
|
-
locale:
|
|
14
|
-
message:
|
|
15
|
-
}
|
|
16
|
-
locale:
|
|
17
|
-
message:
|
|
18
|
-
}
|
|
12
|
+
title: Schema.suspend<readonly [{
|
|
13
|
+
readonly locale: "zh";
|
|
14
|
+
readonly message: string;
|
|
15
|
+
}, ...{
|
|
16
|
+
readonly locale: "en" | "ja" | "ko";
|
|
17
|
+
readonly message: string;
|
|
18
|
+
}[]], string | readonly [{
|
|
19
|
+
readonly locale: "zh";
|
|
20
|
+
readonly message: string;
|
|
21
|
+
}, ...{
|
|
22
|
+
readonly locale: "en" | "ja" | "ko";
|
|
23
|
+
readonly message: string;
|
|
24
|
+
}[]], never>;
|
|
19
25
|
align: Schema.optionalWith<Schema.Literal<["left", "center", "right"]>, {
|
|
20
26
|
default: () => "left";
|
|
21
27
|
}>;
|
|
22
28
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
23
29
|
grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
24
|
-
tooltip: Schema.optional<Schema.
|
|
25
|
-
locale:
|
|
26
|
-
message:
|
|
27
|
-
}
|
|
28
|
-
locale:
|
|
29
|
-
message:
|
|
30
|
-
}
|
|
30
|
+
tooltip: Schema.optional<Schema.suspend<readonly [{
|
|
31
|
+
readonly locale: "zh";
|
|
32
|
+
readonly message: string;
|
|
33
|
+
}, ...{
|
|
34
|
+
readonly locale: "en" | "ja" | "ko";
|
|
35
|
+
readonly message: string;
|
|
36
|
+
}[]], string | readonly [{
|
|
37
|
+
readonly locale: "zh";
|
|
38
|
+
readonly message: string;
|
|
39
|
+
}, ...{
|
|
40
|
+
readonly locale: "en" | "ja" | "ko";
|
|
41
|
+
readonly message: string;
|
|
42
|
+
}[]], never>>;
|
|
31
43
|
markdown: Schema.refine<readonly [{
|
|
32
44
|
readonly locale: "zh";
|
|
33
45
|
readonly message: string;
|
|
34
46
|
}, ...{
|
|
35
47
|
readonly locale: "en" | "ja" | "ko";
|
|
36
48
|
readonly message: string;
|
|
37
|
-
}[]], Schema.
|
|
38
|
-
locale:
|
|
39
|
-
message:
|
|
40
|
-
}
|
|
41
|
-
locale:
|
|
42
|
-
message:
|
|
43
|
-
}
|
|
49
|
+
}[]], Schema.suspend<readonly [{
|
|
50
|
+
readonly locale: "zh";
|
|
51
|
+
readonly message: string;
|
|
52
|
+
}, ...{
|
|
53
|
+
readonly locale: "en" | "ja" | "ko";
|
|
54
|
+
readonly message: string;
|
|
55
|
+
}[]], string | readonly [{
|
|
56
|
+
readonly locale: "zh";
|
|
57
|
+
readonly message: string;
|
|
58
|
+
}, ...{
|
|
59
|
+
readonly locale: "en" | "ja" | "ko";
|
|
60
|
+
readonly message: string;
|
|
61
|
+
}[]], never>>;
|
|
44
62
|
copyExpression: Schema.optional<Schema.Schema<string, string, never>>;
|
|
45
63
|
id: Schema.refine<string, typeof Schema.String>;
|
|
46
64
|
groupId: Schema.optional<typeof Schema.UUID>;
|
package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.d.ts
CHANGED
|
@@ -17,25 +17,37 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
17
17
|
}>;
|
|
18
18
|
preserveMode: Schema.optional<Schema.Literal<["round", "floor", "ceil"]>>;
|
|
19
19
|
preserveDigits: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
20
|
-
title: Schema.
|
|
21
|
-
locale:
|
|
22
|
-
message:
|
|
23
|
-
}
|
|
24
|
-
locale:
|
|
25
|
-
message:
|
|
26
|
-
}
|
|
20
|
+
title: Schema.suspend<readonly [{
|
|
21
|
+
readonly locale: "zh";
|
|
22
|
+
readonly message: string;
|
|
23
|
+
}, ...{
|
|
24
|
+
readonly locale: "en" | "ja" | "ko";
|
|
25
|
+
readonly message: string;
|
|
26
|
+
}[]], string | readonly [{
|
|
27
|
+
readonly locale: "zh";
|
|
28
|
+
readonly message: string;
|
|
29
|
+
}, ...{
|
|
30
|
+
readonly locale: "en" | "ja" | "ko";
|
|
31
|
+
readonly message: string;
|
|
32
|
+
}[]], never>;
|
|
27
33
|
accessor: Schema.optional<Schema.Schema<string, string, never>>;
|
|
28
34
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
29
35
|
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
30
36
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
31
37
|
grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
32
|
-
tooltip: Schema.optional<Schema.
|
|
33
|
-
locale:
|
|
34
|
-
message:
|
|
35
|
-
}
|
|
36
|
-
locale:
|
|
37
|
-
message:
|
|
38
|
-
}
|
|
38
|
+
tooltip: Schema.optional<Schema.suspend<readonly [{
|
|
39
|
+
readonly locale: "zh";
|
|
40
|
+
readonly message: string;
|
|
41
|
+
}, ...{
|
|
42
|
+
readonly locale: "en" | "ja" | "ko";
|
|
43
|
+
readonly message: string;
|
|
44
|
+
}[]], string | readonly [{
|
|
45
|
+
readonly locale: "zh";
|
|
46
|
+
readonly message: string;
|
|
47
|
+
}, ...{
|
|
48
|
+
readonly locale: "en" | "ja" | "ko";
|
|
49
|
+
readonly message: string;
|
|
50
|
+
}[]], never>>;
|
|
39
51
|
hidden: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
40
52
|
id: Schema.refine<string, typeof Schema.String>;
|
|
41
53
|
groupId: Schema.optional<typeof Schema.UUID>;
|
package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/runtime.vue
CHANGED
|
@@ -3,7 +3,7 @@ import { computed } from "vue";
|
|
|
3
3
|
import { Effect } from "effect";
|
|
4
4
|
import { Icon } from "@iconify/vue";
|
|
5
5
|
import { cel as $cel } from "../../../../../utils/cel";
|
|
6
|
-
import {
|
|
6
|
+
import { celScope, injectCELContext } from "../../../../../utils/cel-context";
|
|
7
7
|
import { cn } from "../../../../../utils/cn";
|
|
8
8
|
defineOptions({ name: "ShwfedTableSelectRendererRuntime" });
|
|
9
9
|
const props = defineProps({
|
|
@@ -13,7 +13,7 @@ const props = defineProps({
|
|
|
13
13
|
const celContext = injectCELContext();
|
|
14
14
|
function evalPredicate(expression, fallback) {
|
|
15
15
|
try {
|
|
16
|
-
return Boolean(Effect.runSync($cel(expression,
|
|
16
|
+
return Boolean(Effect.runSync($cel(expression, celScope(celContext))));
|
|
17
17
|
} catch (e) {
|
|
18
18
|
console.error("[shwfed-table] row-selection predicate failed", e);
|
|
19
19
|
return fallback;
|
package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/runtime.vue
CHANGED
|
@@ -5,7 +5,7 @@ import { Effect } from "effect";
|
|
|
5
5
|
import { cel as $cel } from "../../../../../utils/cel";
|
|
6
6
|
import { Button } from "../../../../ui/button";
|
|
7
7
|
import { JUSTIFY_CLASS } from "../../../utils/runtime";
|
|
8
|
-
import {
|
|
8
|
+
import { celScope, injectCELContext } from "../../../../../utils/cel-context";
|
|
9
9
|
defineOptions({ name: "ShwfedTableTextRendererRuntime" });
|
|
10
10
|
const props = defineProps({
|
|
11
11
|
column: { type: null, required: true },
|
|
@@ -20,7 +20,7 @@ const copyText = computed(() => {
|
|
|
20
20
|
const { copyExpression } = props.column;
|
|
21
21
|
if (!copyExpression) return void 0;
|
|
22
22
|
try {
|
|
23
|
-
const value = Effect.runSync($cel(copyExpression,
|
|
23
|
+
const value = Effect.runSync($cel(copyExpression, celScope(celContext)));
|
|
24
24
|
return value === void 0 || value === null ? void 0 : String(value);
|
|
25
25
|
} catch (e) {
|
|
26
26
|
console.error("[shwfed-table] text copy expression failed", e);
|
package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.d.ts
CHANGED
|
@@ -16,25 +16,37 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
16
16
|
default: () => "plain";
|
|
17
17
|
}>;
|
|
18
18
|
copyExpression: Schema.optional<Schema.Schema<string, string, never>>;
|
|
19
|
-
title: Schema.
|
|
20
|
-
locale:
|
|
21
|
-
message:
|
|
22
|
-
}
|
|
23
|
-
locale:
|
|
24
|
-
message:
|
|
25
|
-
}
|
|
19
|
+
title: Schema.suspend<readonly [{
|
|
20
|
+
readonly locale: "zh";
|
|
21
|
+
readonly message: string;
|
|
22
|
+
}, ...{
|
|
23
|
+
readonly locale: "en" | "ja" | "ko";
|
|
24
|
+
readonly message: string;
|
|
25
|
+
}[]], string | readonly [{
|
|
26
|
+
readonly locale: "zh";
|
|
27
|
+
readonly message: string;
|
|
28
|
+
}, ...{
|
|
29
|
+
readonly locale: "en" | "ja" | "ko";
|
|
30
|
+
readonly message: string;
|
|
31
|
+
}[]], never>;
|
|
26
32
|
accessor: Schema.optional<Schema.Schema<string, string, never>>;
|
|
27
33
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
28
34
|
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
29
35
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
30
36
|
grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
31
|
-
tooltip: Schema.optional<Schema.
|
|
32
|
-
locale:
|
|
33
|
-
message:
|
|
34
|
-
}
|
|
35
|
-
locale:
|
|
36
|
-
message:
|
|
37
|
-
}
|
|
37
|
+
tooltip: Schema.optional<Schema.suspend<readonly [{
|
|
38
|
+
readonly locale: "zh";
|
|
39
|
+
readonly message: string;
|
|
40
|
+
}, ...{
|
|
41
|
+
readonly locale: "en" | "ja" | "ko";
|
|
42
|
+
readonly message: string;
|
|
43
|
+
}[]], string | readonly [{
|
|
44
|
+
readonly locale: "zh";
|
|
45
|
+
readonly message: string;
|
|
46
|
+
}, ...{
|
|
47
|
+
readonly locale: "en" | "ja" | "ko";
|
|
48
|
+
readonly message: string;
|
|
49
|
+
}[]], never>>;
|
|
38
50
|
hidden: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
39
51
|
id: Schema.refine<string, typeof Schema.String>;
|
|
40
52
|
groupId: Schema.optional<typeof Schema.UUID>;
|