@shwfed/config 2.11.6 → 2.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/schema.d.ts +13 -7
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/schema.d.ts +13 -7
- package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/schema.d.ts +13 -7
- package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/schema.d.ts +13 -7
- package/dist/runtime/components/actions/schema.d.ts +82 -52
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/schema.d.ts +5 -5
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/schema.d.ts +13 -7
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +68 -68
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +68 -68
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +68 -68
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +68 -68
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +96 -72
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/schema.d.ts +26 -14
- package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.xy/schema.d.ts +39 -21
- package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/schema.d.ts +13 -7
- package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.card/schema.d.ts +26 -14
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/schema.d.ts +44 -26
- package/dist/runtime/components/config/schema.d.ts +13 -7
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.d.ts +26 -14
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.d.ts +57 -33
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.d.ts +52 -28
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/schema.d.ts +18 -12
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/schema.d.ts +65 -35
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.d.vue.ts +18 -16
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.vue +22 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.vue.d.ts +18 -16
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/runtime.vue +5 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/schema.d.ts +79 -42
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/schema.js +12 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +20 -18
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue +22 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +20 -18
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/runtime.vue +5 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/schema.d.ts +92 -49
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/schema.js +12 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.d.vue.ts +18 -16
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue +22 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue.d.ts +18 -16
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/runtime.vue +5 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.d.ts +79 -42
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.js +12 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +20 -18
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue +22 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +20 -18
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/runtime.vue +5 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/schema.d.ts +92 -49
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/schema.js +12 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/schema.d.ts +39 -21
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/schema.d.ts +39 -21
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.d.vue.ts +28 -28
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts +28 -28
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.d.ts +57 -33
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.d.vue.ts +6 -6
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.vue.d.ts +6 -6
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/schema.d.ts +65 -35
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/schema.d.ts +65 -35
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/schema.d.ts +104 -56
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/schema.d.ts +65 -35
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/schema.d.ts +91 -49
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/schema.d.ts +91 -49
- package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/schema.d.ts +39 -21
- package/dist/runtime/components/form/fields/2026-05-20/com.shwfed.form.field.collapsible/schema.d.ts +13 -7
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/config.d.vue.ts +18 -16
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/config.vue +22 -0
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/config.vue.d.ts +18 -16
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/runtime.vue +5 -0
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/schema.d.ts +79 -42
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/schema.js +12 -0
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.d.vue.ts +20 -18
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.vue +22 -0
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.vue.d.ts +20 -18
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/runtime.vue +5 -0
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/schema.d.ts +92 -49
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/schema.js +12 -0
- package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/schema.d.ts +65 -35
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/schema.d.ts +169 -91
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/schema.d.ts +169 -91
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-06-09/com.shwfed.form.field.upload/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.multi/schema.d.ts +130 -70
- package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.single/schema.d.ts +130 -70
- package/dist/runtime/components/form/fields/2026-06-20/com.shwfed.form.field.tabs/schema.d.ts +26 -14
- package/dist/runtime/components/form/utils/ai-field-tools.d.ts +11 -0
- package/dist/runtime/components/form/utils/ai-field-tools.js +282 -0
- package/dist/runtime/components/form/utils/common.d.ts +26 -14
- package/dist/runtime/components/form/utils/resolve.d.ts +15 -0
- package/dist/runtime/components/form/utils/resolve.js +13 -0
- 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 +101 -0
- package/dist/runtime/components/table/ai-generate.vue +173 -0
- package/dist/runtime/components/table/ai-generate.vue.d.ts +16 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.d.ts +18 -12
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.d.ts +26 -14
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.d.ts +26 -14
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.d.ts +39 -21
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.d.ts +26 -14
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.d.ts +26 -14
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/schema.d.ts +26 -14
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.d.ts +26 -14
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/schema.d.ts +91 -49
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.d.ts +44 -26
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/schema.d.ts +52 -28
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.d.ts +52 -28
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.d.ts +44 -26
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/schema.d.ts +52 -28
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue.d.ts +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/schema.d.ts +91 -49
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/schema.d.ts +52 -28
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +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/schema.d.ts +156 -84
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +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/schema.d.ts +156 -84
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +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/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +65 -35
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/schema.d.ts +65 -35
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +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/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +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/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +65 -35
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/schema.d.ts +65 -35
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.vue.d.ts +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/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.vue.d.ts +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/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +52 -28
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/schema.d.ts +52 -28
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/config.vue +33 -0
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/runtime.vue +5 -0
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.d.ts +71 -40
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.js +6 -1
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/config.vue +33 -0
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/runtime.vue +5 -0
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/schema.d.ts +79 -42
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/schema.js +6 -1
- package/dist/runtime/components/table/config.d.vue.ts +3 -3
- package/dist/runtime/components/table/config.vue +37 -3
- package/dist/runtime/components/table/config.vue.d.ts +3 -3
- package/dist/runtime/components/table/schema.d.ts +182 -134
- package/dist/runtime/components/table/utils/ai-tools.d.ts +11 -0
- package/dist/runtime/components/table/utils/ai-tools.js +507 -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 +66 -35
- package/dist/runtime/components/table/utils/shared.js +26 -17
- package/dist/runtime/components/ui/alert-dialog/AlertDialogCancel.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 +34 -0
- package/dist/runtime/components/ui/chat/ChatPrompt.vue +53 -0
- package/dist/runtime/components/ui/chat/ChatPrompt.vue.d.ts +34 -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/disabled-date.d.ts +34 -0
- package/dist/runtime/share/disabled-date.js +13 -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 +145 -32
- package/dist/runtime/utils/ai/parts.d.ts +30 -0
- package/dist/runtime/utils/ai/parts.js +9 -0
- package/dist/runtime/utils/disabled-date.d.ts +26 -0
- package/dist/runtime/utils/disabled-date.js +21 -0
- package/package.json +2 -1
|
@@ -118,6 +118,21 @@ export type FieldEntry = Readonly<{
|
|
|
118
118
|
}>;
|
|
119
119
|
export declare const FIELDS: ReadonlyArray<FieldEntry>;
|
|
120
120
|
export declare function allFieldSchemas(configure: (env: Environment) => void): ReadonlyArray<AnySchema>;
|
|
121
|
+
export declare function latestFieldByType(): ReadonlyArray<FieldEntry>;
|
|
122
|
+
/**
|
|
123
|
+
* AI 工具可见的字段集合:按 `type` 取最新版本 + 排除 `deprecated`。镜像
|
|
124
|
+
* `table/utils/resolve.ts` 的 `activeColumns()`。
|
|
125
|
+
*
|
|
126
|
+
* 两层过滤的原因:
|
|
127
|
+
* (a) `latestFieldByType()` 解决同 `type` 多版本时只留最新版——避免 AI 拿到
|
|
128
|
+
* 已被新版本替代的旧 `compatibilityDate`(我们对 AI 隐藏 compDate);
|
|
129
|
+
* (b) `!deprecated` 同时屏蔽两类情况:同 type 旧日期(已由 (a) 消除),以及
|
|
130
|
+
* 跨类型迁移的源条目(`deriveEntryExtras` 给被 `migrateFrom` 指名的源都
|
|
131
|
+
* 打了 `deprecated: true`)。
|
|
132
|
+
*
|
|
133
|
+
* 人类 picker 仍走 `FIELDS`(含废弃)—— picker 要让用户选到旧字段再触发迁移。
|
|
134
|
+
*/
|
|
135
|
+
export declare function activeFields(): ReadonlyArray<FieldEntry>;
|
|
121
136
|
export declare function findField(type: string, compatibilityDate: string): FieldEntry | undefined;
|
|
122
137
|
/**
|
|
123
138
|
* Finds the registry entry that has declared `(type, compatibilityDate)` as a
|
|
@@ -120,6 +120,19 @@ export function allFieldSchemas(configure) {
|
|
|
120
120
|
identifier: `${entry.type}@${entry.compatibilityDate}`
|
|
121
121
|
}));
|
|
122
122
|
}
|
|
123
|
+
export function latestFieldByType() {
|
|
124
|
+
const byType = /* @__PURE__ */ new Map();
|
|
125
|
+
for (const r of getFields()) {
|
|
126
|
+
const prev = byType.get(r.type);
|
|
127
|
+
if (!prev || r.compatibilityDate > prev.compatibilityDate) {
|
|
128
|
+
byType.set(r.type, r);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return [...byType.values()];
|
|
132
|
+
}
|
|
133
|
+
export function activeFields() {
|
|
134
|
+
return latestFieldByType().filter((e) => !e.deprecated);
|
|
135
|
+
}
|
|
123
136
|
export function findField(type, compatibilityDate) {
|
|
124
137
|
return getFields().find((f) => f.type === type && f.compatibilityDate === compatibilityDate);
|
|
125
138
|
}
|
package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/schema.d.ts
CHANGED
|
@@ -7,13 +7,19 @@ export declare const metadata: {
|
|
|
7
7
|
readonly icon: "fluent:chat-warning-20-regular";
|
|
8
8
|
};
|
|
9
9
|
export declare function schema(_configure: (env: Environment) => void): Schema.Struct<{
|
|
10
|
-
message: Schema.
|
|
11
|
-
locale:
|
|
12
|
-
message:
|
|
13
|
-
}
|
|
14
|
-
locale:
|
|
15
|
-
message:
|
|
16
|
-
}
|
|
10
|
+
message: Schema.suspend<readonly [{
|
|
11
|
+
readonly locale: "zh";
|
|
12
|
+
readonly message: string;
|
|
13
|
+
}, ...{
|
|
14
|
+
readonly locale: "en" | "ja" | "ko";
|
|
15
|
+
readonly message: string;
|
|
16
|
+
}[]], string | readonly [{
|
|
17
|
+
readonly locale: "zh";
|
|
18
|
+
readonly message: string;
|
|
19
|
+
}, ...{
|
|
20
|
+
readonly locale: "en" | "ja" | "ko";
|
|
21
|
+
readonly message: string;
|
|
22
|
+
}[]], never>;
|
|
17
23
|
icon: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
18
24
|
color: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
19
25
|
}>;
|
|
@@ -11,13 +11,19 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
11
11
|
expression: Schema.Schema<string, string, never>;
|
|
12
12
|
resultExpression: Schema.optional<Schema.Schema<string, string, never>>;
|
|
13
13
|
titleExpression: Schema.optional<Schema.Schema<string, string, never>>;
|
|
14
|
-
description: Schema.optional<Schema.
|
|
15
|
-
locale:
|
|
16
|
-
message:
|
|
17
|
-
}
|
|
18
|
-
locale:
|
|
19
|
-
message:
|
|
20
|
-
}
|
|
14
|
+
description: Schema.optional<Schema.suspend<readonly [{
|
|
15
|
+
readonly locale: "zh";
|
|
16
|
+
readonly message: string;
|
|
17
|
+
}, ...{
|
|
18
|
+
readonly locale: "en" | "ja" | "ko";
|
|
19
|
+
readonly message: string;
|
|
20
|
+
}[]], string | readonly [{
|
|
21
|
+
readonly locale: "zh";
|
|
22
|
+
readonly message: string;
|
|
23
|
+
}, ...{
|
|
24
|
+
readonly locale: "en" | "ja" | "ko";
|
|
25
|
+
readonly message: string;
|
|
26
|
+
}[]], never>>;
|
|
21
27
|
}>;
|
|
22
28
|
export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
|
|
23
29
|
export declare function defaults(): Partial<Value>;
|
package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/schema.d.ts
CHANGED
|
@@ -10,13 +10,19 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
10
10
|
expression: Schema.Schema<string, string, never>;
|
|
11
11
|
resultExpression: Schema.optional<Schema.Schema<string, string, never>>;
|
|
12
12
|
titleExpression: Schema.optional<Schema.Schema<string, string, never>>;
|
|
13
|
-
description: Schema.optional<Schema.
|
|
14
|
-
locale:
|
|
15
|
-
message:
|
|
16
|
-
}
|
|
17
|
-
locale:
|
|
18
|
-
message:
|
|
19
|
-
}
|
|
13
|
+
description: Schema.optional<Schema.suspend<readonly [{
|
|
14
|
+
readonly locale: "zh";
|
|
15
|
+
readonly message: string;
|
|
16
|
+
}, ...{
|
|
17
|
+
readonly locale: "en" | "ja" | "ko";
|
|
18
|
+
readonly message: string;
|
|
19
|
+
}[]], string | readonly [{
|
|
20
|
+
readonly locale: "zh";
|
|
21
|
+
readonly message: string;
|
|
22
|
+
}, ...{
|
|
23
|
+
readonly locale: "en" | "ja" | "ko";
|
|
24
|
+
readonly message: string;
|
|
25
|
+
}[]], never>>;
|
|
20
26
|
}>;
|
|
21
27
|
export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
|
|
22
28
|
export declare function defaults(): Partial<Value>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Environment } from '../../vendor/cel-js/lib/index.js';
|
|
2
|
+
type AnyRecord = Record<string, any>;
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
configure?: (env: Environment) => void;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_ModelProps = {
|
|
7
|
+
modelValue: AnyRecord;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
"update:modelValue": (value: AnyRecord) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((value: AnyRecord) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getSystemTemplate(): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import rawSystem from "./ai-generate.system.md?raw";
|
|
2
|
+
let template = rawSystem;
|
|
3
|
+
if (import.meta.hot) {
|
|
4
|
+
import.meta.hot.accept("./ai-generate.system.md?raw", (mod) => {
|
|
5
|
+
if (typeof mod?.default === "string") template = mod.default;
|
|
6
|
+
});
|
|
7
|
+
}
|
|
8
|
+
export function getSystemTemplate() {
|
|
9
|
+
return template;
|
|
10
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
帮助用户进行配置表格。你的回复可以使用 CommonMark。你应该按照:确认既存配置、变更新增配置、验证配置结果的循环进行。
|
|
2
|
+
|
|
3
|
+
## 处理 API 接口
|
|
4
|
+
|
|
5
|
+
用户可能发送给你 API 接口信息。根据 API 接口可以配置如下内容
|
|
6
|
+
|
|
7
|
+
- 通用配置
|
|
8
|
+
- 列
|
|
9
|
+
- 搜索条件
|
|
10
|
+
|
|
11
|
+
### 配置通用配置
|
|
12
|
+
|
|
13
|
+
利用 API 接口名字等相关信息,配置表格 `displayName`。
|
|
14
|
+
|
|
15
|
+
根据 API 接口,构造 `dataSource` 相关字段。对于 `request` 应当形如
|
|
16
|
+
|
|
17
|
+
```cel
|
|
18
|
+
http
|
|
19
|
+
.post('<construct full URL>') // use .get if request is in GET method
|
|
20
|
+
|
|
21
|
+
// API doc might use env var surrounded by double brackets, these are NOT AVAILABLE in CEL, you should use the `hostname` var instead, e.g., `.get(hostname + '/foo/bar')`
|
|
22
|
+
|
|
23
|
+
.header('<key>', '<value>') // use this to set request header
|
|
24
|
+
|
|
25
|
+
.query(query) // `query` represents all the table search conditions, put it as the first query
|
|
26
|
+
.query('<key>', '<value>') // .query method signature: .query(string, string | number | optional<string> | optional<number> | dyn)
|
|
27
|
+
|
|
28
|
+
// API doc might contain demonstration purpose query, DO NOT hardcode
|
|
29
|
+
// same name query will NOT overwrite, but form URL like `&foo=bar&foo=zoo`
|
|
30
|
+
|
|
31
|
+
// if the API supports pagination, you might need to use `pageIndex` and `pageSize` to pass pagination info to the backend, like `.query('page_index', pageIndex + 1).query('page_size', pageSize)`, be aware the `pageIndex` var starts from 0
|
|
32
|
+
|
|
33
|
+
// if the request is POST, you can set `.body`, it's signature is `.body(dyn)`
|
|
34
|
+
// if you're gonna sent JSON request, remember to set `.header('Content-Type', 'application/json')` where header name is case-insensitive following RFC.
|
|
35
|
+
.body({
|
|
36
|
+
// ...
|
|
37
|
+
})
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
对于 `data` 应当指向 Response 的列表,比如对于下面的这个响应,`data` 应当设置为 `json.?data.?list`
|
|
41
|
+
|
|
42
|
+
```json
|
|
43
|
+
{
|
|
44
|
+
"code": 0,
|
|
45
|
+
"data": {
|
|
46
|
+
"list": [
|
|
47
|
+
{
|
|
48
|
+
"foo": "bar",
|
|
49
|
+
"buz": {
|
|
50
|
+
"bao": "zoo"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"total": 100,
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
对于 `total`,应当指向 Response 中服务器查询到的**总数**,对于上述例子是 `json.?data.?total` 如果你没有找到对应的字段,这个字段可以不填写,并且调用工具将分页功能关闭。
|
|
60
|
+
|
|
61
|
+
### 配置列
|
|
62
|
+
|
|
63
|
+
你应该寻找到最外侧的列表。这个列表的每一个元素,通常代表了一行。而其中的每个字段,通常代表了一列。
|
|
64
|
+
|
|
65
|
+
调用工具,选取合适的类型。你应该首要考虑文本、数值、日期类型。
|
|
66
|
+
|
|
67
|
+
对于只读的字段,你需要配置 `accessor`,可以使用 `row` 变量,`row` 特指当前行。`accessor` 应该**相对于列表元素**来写,不需要再重复访问列表字段本身。使用 CEL 的 optional 语法,如 `row.?foo.?bar`。
|
|
68
|
+
|
|
69
|
+
```json
|
|
70
|
+
{
|
|
71
|
+
"code": 0,
|
|
72
|
+
"data": {
|
|
73
|
+
"list": [
|
|
74
|
+
{
|
|
75
|
+
"foo": "bar",
|
|
76
|
+
"buz": {
|
|
77
|
+
"bao": "zoo"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
对于上述例子,如果需要展示 `bar` 这个值作为一列,其 `accessor` 应为 `row.?foo`;如果需要展示 `zoo` 这个值作为一列,其 `accessor` 应为 `row.?buz.?bao`。
|
|
86
|
+
|
|
87
|
+
你应当选取至少一列,并且设置它的 `grow` 为 `true`。
|
|
88
|
+
|
|
89
|
+
对于金额类型的字段:使用数字类型的列;将其 `align` 设置为 `right`;将其 `displayMode` 设置为 `monoThousand`;设置一个合理的宽度,如 200 或 `grow` 为 `true`。
|
|
90
|
+
|
|
91
|
+
对于普通的数字:使用数字类型的列;将其 `align` 设置为 `center`。
|
|
92
|
+
|
|
93
|
+
对于日期、时间类型的字段:使用日期类型的列;对于时间,设置列宽为 140;对于日期,设置列宽为 120;将其 `align` 设置为 `center`。
|
|
94
|
+
|
|
95
|
+
对于用户名、ID、各种类型等较短字段,酌情将其 `align` 设置为 `center`。
|
|
96
|
+
|
|
97
|
+
### 配置搜索条件
|
|
98
|
+
|
|
99
|
+
你应该根据 API 文档配置其支持的搜索条件。搜索条件应该排除分页、排序相关信息,仅包含业务逻辑。
|
|
100
|
+
|
|
101
|
+
你应该首要考虑文本输入、数字输入、数字范围输入、日期范围输入、日期时间范围输入。如果你遇到了从多个值中选取一个或多个,考虑单选或者多选。如果你不能确定单选和多选的选项,向用户提问。当你不确定选项时,向用户所要配置选项的相关信息。
|
|
@@ -0,0 +1,173 @@
|
|
|
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
|
+
<ChatMessages
|
|
129
|
+
:messages="displayMessages"
|
|
130
|
+
:pending="pending"
|
|
131
|
+
class="min-h-0 flex-1"
|
|
132
|
+
>
|
|
133
|
+
<template #empty>
|
|
134
|
+
<div class="flex flex-col items-center gap-4 text-center text-zinc-400">
|
|
135
|
+
<Icon
|
|
136
|
+
icon="fluent:sparkle-20-regular"
|
|
137
|
+
class="size-24"
|
|
138
|
+
/>
|
|
139
|
+
<p class="text-xl">
|
|
140
|
+
对话开始配置
|
|
141
|
+
</p>
|
|
142
|
+
</div>
|
|
143
|
+
</template>
|
|
144
|
+
</ChatMessages>
|
|
145
|
+
|
|
146
|
+
<div class="p-2">
|
|
147
|
+
<ChatPrompt
|
|
148
|
+
v-model="input"
|
|
149
|
+
:status="status"
|
|
150
|
+
@submit="send"
|
|
151
|
+
@stop="stop"
|
|
152
|
+
>
|
|
153
|
+
<!-- New-conversation control lives at the composer's block-end left
|
|
154
|
+
edge (beside the send button): a quiet ghost button that clears
|
|
155
|
+
the dialogue (and its sessionStorage). Disabled while a turn
|
|
156
|
+
streams or when there's nothing to clear. -->
|
|
157
|
+
<template #actions>
|
|
158
|
+
<Button
|
|
159
|
+
type="button"
|
|
160
|
+
variant="ghost"
|
|
161
|
+
size="sm"
|
|
162
|
+
:disabled="!canClear"
|
|
163
|
+
@click="newConversation"
|
|
164
|
+
>
|
|
165
|
+
<Icon icon="fluent:add-20-regular" />
|
|
166
|
+
新对话
|
|
167
|
+
</Button>
|
|
168
|
+
</template>
|
|
169
|
+
</ChatPrompt>
|
|
170
|
+
</div>
|
|
171
|
+
</div>
|
|
172
|
+
</div>
|
|
173
|
+
</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/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>;
|