@shwfed/config 3.0.6 → 3.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/runtime/components/actions/ai-l1.md +24 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/schema.d.ts +1 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/schema.js +2 -1
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/prompt.md +8 -0
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/schema.d.ts +6 -0
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/schema.js +4 -0
- package/dist/runtime/components/actions/buttons/2026-05-15/com.shwfed.actions.button.event.dispatch/prompt.md +8 -0
- package/dist/runtime/components/actions/buttons/2026-05-15/com.shwfed.actions.button.event.dispatch/schema.d.ts +1 -0
- package/dist/runtime/components/actions/buttons/2026-05-15/com.shwfed.actions.button.event.dispatch/schema.js +2 -1
- package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/prompt.md +9 -0
- package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/schema.d.ts +1 -0
- package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/schema.js +2 -1
- package/dist/runtime/components/actions/buttons/2026-07-13/com.shwfed.actions.button.state.write/prompt.md +8 -0
- package/dist/runtime/components/actions/buttons/2026-07-13/com.shwfed.actions.button.state.write/schema.d.ts +1 -0
- package/dist/runtime/components/actions/buttons/2026-07-13/com.shwfed.actions.button.state.write/schema.js +2 -1
- package/dist/runtime/components/actions/config.vue +109 -3
- package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/schema.d.ts +1 -0
- package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/schema.js +2 -1
- package/dist/runtime/components/actions/utils/ai-button-tools.d.ts +29 -0
- package/dist/runtime/components/actions/utils/ai-button-tools.js +664 -0
- package/dist/runtime/components/actions/utils/resolve.d.ts +22 -0
- package/dist/runtime/components/actions/utils/resolve.js +23 -1
- package/dist/runtime/components/config/ai-generate.d.vue.ts +7 -0
- package/dist/runtime/components/config/ai-generate.system.md +39 -0
- package/dist/runtime/components/{table → config}/ai-generate.vue +55 -32
- package/dist/runtime/components/config/ai-generate.vue.d.ts +7 -0
- package/dist/runtime/components/config/ai-page-slot.l1.md +25 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/schema.d.ts +6 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/schema.js +4 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/schema.d.ts +6 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/schema.js +4 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/schema.d.ts +1 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/schema.js +1 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +44 -44
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +44 -44
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +44 -44
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +44 -44
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +28 -22
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.js +4 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/schema.d.ts +7 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/schema.js +4 -0
- package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.xy/schema.d.ts +1 -0
- package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.xy/schema.js +1 -0
- package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/schema.d.ts +1 -0
- package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/schema.js +1 -0
- package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.card/schema.d.ts +6 -0
- package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.card/schema.js +4 -0
- package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.icon/schema.d.ts +1 -0
- package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.icon/schema.js +1 -0
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/config.d.vue.ts +18 -18
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/config.vue.d.ts +18 -18
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/runtime.d.vue.ts +18 -18
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/runtime.vue.d.ts +18 -18
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/schema.d.ts +6 -0
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/schema.js +4 -0
- package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/schema.d.ts +7 -0
- package/dist/runtime/components/config/blocks/2026-06-25/com.shwfed.block.loop/schema.js +4 -0
- package/dist/runtime/components/config/config.vue +24 -3
- package/dist/runtime/components/config/history-picker.vue +6 -4
- package/dist/runtime/components/config/prune-dialog.vue +15 -4
- package/dist/runtime/components/config/use-editor.d.ts +1 -0
- package/dist/runtime/components/config/use-editor.js +20 -2
- package/dist/runtime/components/config/utils/ai-cursor.d.ts +21 -0
- package/dist/runtime/components/config/utils/ai-cursor.js +827 -0
- package/dist/runtime/components/config/utils/ai-host-manuals.d.ts +2 -0
- package/dist/runtime/components/config/utils/ai-host-manuals.js +19 -0
- package/dist/runtime/components/config/utils/linkage.d.ts +15 -6
- package/dist/runtime/components/config/utils/linkage.js +23 -7
- package/dist/runtime/components/config/utils/resolve.d.ts +19 -0
- package/dist/runtime/components/config/utils/resolve.js +25 -2
- package/dist/runtime/components/form/ai-l1.md +22 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/schema.d.ts +7 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/schema.js +4 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/prompt.md +8 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.d.ts +7 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.js +4 -0
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/prompt.md +12 -0
- package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/schema.d.ts +6 -0
- package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/schema.js +4 -0
- package/dist/runtime/components/form/fields/2026-05-20/com.shwfed.form.field.collapsible/schema.d.ts +6 -0
- package/dist/runtime/components/form/fields/2026-05-20/com.shwfed.form.field.collapsible/schema.js +4 -0
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/prompt.md +7 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/prompt.md +7 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/prompt.md +9 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +26 -26
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/prompt.md +11 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-06-09/com.shwfed.form.field.upload/prompt.md +12 -0
- package/dist/runtime/components/form/fields/2026-06-09/com.shwfed.form.field.upload/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-06-09/com.shwfed.form.field.upload/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.multi/prompt.md +14 -0
- package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.multi/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.multi/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.single/prompt.md +19 -0
- package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.single/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.single/schema.js +1 -0
- package/dist/runtime/components/form/fields/2026-06-20/com.shwfed.form.field.tabs/schema.d.ts +7 -0
- package/dist/runtime/components/form/fields/2026-06-20/com.shwfed.form.field.tabs/schema.js +4 -0
- package/dist/runtime/components/form/fields/2026-07-13/com.shwfed.form.field.dynamic/prompt.md +14 -0
- package/dist/runtime/components/form/fields/2026-07-13/com.shwfed.form.field.dynamic/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-07-13/com.shwfed.form.field.dynamic/schema.js +1 -0
- package/dist/runtime/components/form/unit-config.vue +2 -2
- package/dist/runtime/components/form/utils/ai-field-tools.d.ts +2 -2
- package/dist/runtime/components/form/utils/ai-field-tools.js +47 -30
- package/dist/runtime/components/form/utils/resolve.d.ts +11 -0
- package/dist/runtime/components/form/utils/resolve.js +13 -1
- package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/schema.d.ts +1 -0
- package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/schema.js +2 -1
- package/dist/runtime/components/operations/2026-06-11/com.shwfed.operation.http.request.json/schema.d.ts +1 -0
- package/dist/runtime/components/operations/2026-06-11/com.shwfed.operation.http.request.json/schema.js +1 -0
- package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/schema.d.ts +1 -0
- package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/schema.js +2 -1
- package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.navigation/schema.d.ts +1 -0
- package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.navigation/schema.js +2 -1
- package/dist/runtime/components/operations/2026-07-06/com.shwfed.operation.table.add-row/schema.d.ts +1 -0
- package/dist/runtime/components/operations/2026-07-06/com.shwfed.operation.table.add-row/schema.js +2 -1
- package/dist/runtime/components/operations/utils/resolve.d.ts +17 -0
- package/dist/runtime/components/operations/utils/resolve.js +18 -1
- package/dist/runtime/components/table/ai-l1.md +38 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.d.ts +7 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.js +5 -1
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.js +2 -1
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.js +2 -1
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.js +2 -1
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.js +2 -1
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/schema.js +2 -1
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.js +2 -1
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.js +2 -1
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.js +2 -1
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.js +2 -1
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.js +2 -1
- package/dist/runtime/components/table/columns/2026-05-21/com.shwfed.table.column.drag-handle/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-21/com.shwfed.table.column.drag-handle/schema.js +2 -1
- 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-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-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-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-06-14/com.shwfed.table.column.combobox-multi/prompt.md +12 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/schema.js +1 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/prompt.md +16 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/schema.js +1 -0
- 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 +1 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/schema.js +1 -0
- 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 +1 -0
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/schema.js +1 -0
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.js +2 -1
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/schema.js +2 -1
- package/dist/runtime/components/table/columns/2026-07-12/com.shwfed.table.column.dynamic/prompt.md +15 -0
- package/dist/runtime/components/table/config.d.vue.ts +3 -3
- package/dist/runtime/components/table/config.vue +3 -35
- package/dist/runtime/components/table/config.vue.d.ts +3 -3
- package/dist/runtime/components/table/row-provider.vue +7 -1
- package/dist/runtime/components/table/schema.d.ts +44 -44
- package/dist/runtime/components/table/utils/ai-tools.js +16 -7
- package/dist/runtime/components/table/utils/resolve.d.ts +5 -0
- package/dist/runtime/components/table/utils/resolve.js +12 -1
- package/dist/runtime/share/clipboard.d.ts +15 -9
- package/dist/runtime/share/clipboard.js +22 -10
- package/dist/runtime/share/define-registry.d.ts +66 -0
- package/dist/runtime/share/define-registry.js +37 -1
- package/dist/runtime/share/use-persisted-chat.d.ts +11 -9
- package/dist/runtime/share/use-persisted-chat.js +3 -3
- package/dist/runtime/utils/ai/index.d.ts +1 -1
- package/dist/runtime/utils/ai/index.js +18 -11
- package/dist/runtime/utils/cel-catalog.d.ts +1 -0
- package/dist/runtime/utils/cel-catalog.js +10 -0
- package/dist/runtime/utils/cel-catalog.md +42 -0
- package/dist/runtime/utils/cel-context.d.ts +15 -0
- package/dist/runtime/utils/cel-context.js +8 -0
- package/dist/runtime/vendor/cel-js/CLAUDE.md +7 -2
- package/dist/runtime/vendor/cel-js/PROMPT.md +27 -0
- package/dist/runtime/vendor/cel-js/lib/evaluator.js +2 -0
- package/dist/runtime/vendor/cel-js/lib/globals.d.ts +2 -0
- package/dist/runtime/vendor/cel-js/lib/globals.js +10 -0
- package/dist/runtime/vendor/cel-js/lib/map-builtins.d.ts +2 -0
- package/dist/runtime/vendor/cel-js/lib/map-builtins.js +80 -0
- package/dist/runtime/vendor/cel-js/lib/operators.js +2 -12
- package/package.json +1 -1
- package/dist/runtime/components/table/ai-generate.d.vue.ts +0 -16
- package/dist/runtime/components/table/ai-generate.system.md +0 -101
- package/dist/runtime/components/table/ai-generate.vue.d.ts +0 -16
- /package/dist/runtime/components/{table → config}/ai-generate.system.d.ts +0 -0
- /package/dist/runtime/components/{table → config}/ai-generate.system.js +0 -0
|
@@ -32,15 +32,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
32
32
|
readonly locale: "en" | "ja" | "ko";
|
|
33
33
|
readonly message: string;
|
|
34
34
|
}[]];
|
|
35
|
-
readonly nodeTooltip?: readonly [{
|
|
36
|
-
readonly locale: "zh";
|
|
37
|
-
readonly message: string;
|
|
38
|
-
}, ...{
|
|
39
|
-
readonly locale: "en" | "ja" | "ko";
|
|
40
|
-
readonly message: string;
|
|
41
|
-
}[]] | undefined;
|
|
42
|
-
readonly nodeSelectable?: string | undefined;
|
|
43
|
-
readonly expandAll: boolean;
|
|
44
35
|
readonly nodeActions: {
|
|
45
36
|
readonly size: "default" | "sm" | "xs";
|
|
46
37
|
readonly style?: string | undefined;
|
|
@@ -109,6 +100,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
109
100
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
110
101
|
}[];
|
|
111
102
|
};
|
|
103
|
+
readonly nodeTooltip?: readonly [{
|
|
104
|
+
readonly locale: "zh";
|
|
105
|
+
readonly message: string;
|
|
106
|
+
}, ...{
|
|
107
|
+
readonly locale: "en" | "ja" | "ko";
|
|
108
|
+
readonly message: string;
|
|
109
|
+
}[]] | undefined;
|
|
110
|
+
readonly nodeSelectable?: string | undefined;
|
|
111
|
+
readonly expandAll: boolean;
|
|
112
112
|
}) => any;
|
|
113
113
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
114
114
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -140,15 +140,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
140
140
|
readonly locale: "en" | "ja" | "ko";
|
|
141
141
|
readonly message: string;
|
|
142
142
|
}[]];
|
|
143
|
-
readonly nodeTooltip?: readonly [{
|
|
144
|
-
readonly locale: "zh";
|
|
145
|
-
readonly message: string;
|
|
146
|
-
}, ...{
|
|
147
|
-
readonly locale: "en" | "ja" | "ko";
|
|
148
|
-
readonly message: string;
|
|
149
|
-
}[]] | undefined;
|
|
150
|
-
readonly nodeSelectable?: string | undefined;
|
|
151
|
-
readonly expandAll: boolean;
|
|
152
143
|
readonly nodeActions: {
|
|
153
144
|
readonly size: "default" | "sm" | "xs";
|
|
154
145
|
readonly style?: string | undefined;
|
|
@@ -217,6 +208,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
217
208
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
218
209
|
}[];
|
|
219
210
|
};
|
|
211
|
+
readonly nodeTooltip?: readonly [{
|
|
212
|
+
readonly locale: "zh";
|
|
213
|
+
readonly message: string;
|
|
214
|
+
}, ...{
|
|
215
|
+
readonly locale: "en" | "ja" | "ko";
|
|
216
|
+
readonly message: string;
|
|
217
|
+
}[]] | undefined;
|
|
218
|
+
readonly nodeSelectable?: string | undefined;
|
|
219
|
+
readonly expandAll: boolean;
|
|
220
220
|
}) => any) | undefined;
|
|
221
221
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
222
222
|
declare const _default: typeof __VLS_export;
|
|
@@ -32,15 +32,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
32
32
|
readonly locale: "en" | "ja" | "ko";
|
|
33
33
|
readonly message: string;
|
|
34
34
|
}[]];
|
|
35
|
-
readonly nodeTooltip?: readonly [{
|
|
36
|
-
readonly locale: "zh";
|
|
37
|
-
readonly message: string;
|
|
38
|
-
}, ...{
|
|
39
|
-
readonly locale: "en" | "ja" | "ko";
|
|
40
|
-
readonly message: string;
|
|
41
|
-
}[]] | undefined;
|
|
42
|
-
readonly nodeSelectable?: string | undefined;
|
|
43
|
-
readonly expandAll: boolean;
|
|
44
35
|
readonly nodeActions: {
|
|
45
36
|
readonly size: "default" | "sm" | "xs";
|
|
46
37
|
readonly style?: string | undefined;
|
|
@@ -109,6 +100,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
109
100
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
110
101
|
}[];
|
|
111
102
|
};
|
|
103
|
+
readonly nodeTooltip?: readonly [{
|
|
104
|
+
readonly locale: "zh";
|
|
105
|
+
readonly message: string;
|
|
106
|
+
}, ...{
|
|
107
|
+
readonly locale: "en" | "ja" | "ko";
|
|
108
|
+
readonly message: string;
|
|
109
|
+
}[]] | undefined;
|
|
110
|
+
readonly nodeSelectable?: string | undefined;
|
|
111
|
+
readonly expandAll: boolean;
|
|
112
112
|
}) => any;
|
|
113
113
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
114
114
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -140,15 +140,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
140
140
|
readonly locale: "en" | "ja" | "ko";
|
|
141
141
|
readonly message: string;
|
|
142
142
|
}[]];
|
|
143
|
-
readonly nodeTooltip?: readonly [{
|
|
144
|
-
readonly locale: "zh";
|
|
145
|
-
readonly message: string;
|
|
146
|
-
}, ...{
|
|
147
|
-
readonly locale: "en" | "ja" | "ko";
|
|
148
|
-
readonly message: string;
|
|
149
|
-
}[]] | undefined;
|
|
150
|
-
readonly nodeSelectable?: string | undefined;
|
|
151
|
-
readonly expandAll: boolean;
|
|
152
143
|
readonly nodeActions: {
|
|
153
144
|
readonly size: "default" | "sm" | "xs";
|
|
154
145
|
readonly style?: string | undefined;
|
|
@@ -217,6 +208,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
217
208
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
218
209
|
}[];
|
|
219
210
|
};
|
|
211
|
+
readonly nodeTooltip?: readonly [{
|
|
212
|
+
readonly locale: "zh";
|
|
213
|
+
readonly message: string;
|
|
214
|
+
}, ...{
|
|
215
|
+
readonly locale: "en" | "ja" | "ko";
|
|
216
|
+
readonly message: string;
|
|
217
|
+
}[]] | undefined;
|
|
218
|
+
readonly nodeSelectable?: string | undefined;
|
|
219
|
+
readonly expandAll: boolean;
|
|
220
220
|
}) => any) | undefined;
|
|
221
221
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
222
222
|
declare const _default: typeof __VLS_export;
|
|
@@ -37,15 +37,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
37
37
|
readonly locale: "en" | "ja" | "ko";
|
|
38
38
|
readonly message: string;
|
|
39
39
|
}[]];
|
|
40
|
-
readonly nodeTooltip?: readonly [{
|
|
41
|
-
readonly locale: "zh";
|
|
42
|
-
readonly message: string;
|
|
43
|
-
}, ...{
|
|
44
|
-
readonly locale: "en" | "ja" | "ko";
|
|
45
|
-
readonly message: string;
|
|
46
|
-
}[]] | undefined;
|
|
47
|
-
readonly nodeSelectable?: string | undefined;
|
|
48
|
-
readonly expandAll: boolean;
|
|
49
40
|
readonly nodeActions: {
|
|
50
41
|
readonly size: "default" | "sm" | "xs";
|
|
51
42
|
readonly style?: string | undefined;
|
|
@@ -114,6 +105,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
114
105
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
115
106
|
}[];
|
|
116
107
|
};
|
|
108
|
+
readonly nodeTooltip?: readonly [{
|
|
109
|
+
readonly locale: "zh";
|
|
110
|
+
readonly message: string;
|
|
111
|
+
}, ...{
|
|
112
|
+
readonly locale: "en" | "ja" | "ko";
|
|
113
|
+
readonly message: string;
|
|
114
|
+
}[]] | undefined;
|
|
115
|
+
readonly nodeSelectable?: string | undefined;
|
|
116
|
+
readonly expandAll: boolean;
|
|
117
117
|
}) => any;
|
|
118
118
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
119
119
|
"onUpdate:block"?: ((value: {
|
|
@@ -145,15 +145,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
145
145
|
readonly locale: "en" | "ja" | "ko";
|
|
146
146
|
readonly message: string;
|
|
147
147
|
}[]];
|
|
148
|
-
readonly nodeTooltip?: readonly [{
|
|
149
|
-
readonly locale: "zh";
|
|
150
|
-
readonly message: string;
|
|
151
|
-
}, ...{
|
|
152
|
-
readonly locale: "en" | "ja" | "ko";
|
|
153
|
-
readonly message: string;
|
|
154
|
-
}[]] | undefined;
|
|
155
|
-
readonly nodeSelectable?: string | undefined;
|
|
156
|
-
readonly expandAll: boolean;
|
|
157
148
|
readonly nodeActions: {
|
|
158
149
|
readonly size: "default" | "sm" | "xs";
|
|
159
150
|
readonly style?: string | undefined;
|
|
@@ -222,6 +213,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
222
213
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
223
214
|
}[];
|
|
224
215
|
};
|
|
216
|
+
readonly nodeTooltip?: readonly [{
|
|
217
|
+
readonly locale: "zh";
|
|
218
|
+
readonly message: string;
|
|
219
|
+
}, ...{
|
|
220
|
+
readonly locale: "en" | "ja" | "ko";
|
|
221
|
+
readonly message: string;
|
|
222
|
+
}[]] | undefined;
|
|
223
|
+
readonly nodeSelectable?: string | undefined;
|
|
224
|
+
readonly expandAll: boolean;
|
|
225
225
|
}) => any) | undefined;
|
|
226
226
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
227
227
|
declare const _default: typeof __VLS_export;
|
|
@@ -37,15 +37,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
37
37
|
readonly locale: "en" | "ja" | "ko";
|
|
38
38
|
readonly message: string;
|
|
39
39
|
}[]];
|
|
40
|
-
readonly nodeTooltip?: readonly [{
|
|
41
|
-
readonly locale: "zh";
|
|
42
|
-
readonly message: string;
|
|
43
|
-
}, ...{
|
|
44
|
-
readonly locale: "en" | "ja" | "ko";
|
|
45
|
-
readonly message: string;
|
|
46
|
-
}[]] | undefined;
|
|
47
|
-
readonly nodeSelectable?: string | undefined;
|
|
48
|
-
readonly expandAll: boolean;
|
|
49
40
|
readonly nodeActions: {
|
|
50
41
|
readonly size: "default" | "sm" | "xs";
|
|
51
42
|
readonly style?: string | undefined;
|
|
@@ -114,6 +105,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
114
105
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
115
106
|
}[];
|
|
116
107
|
};
|
|
108
|
+
readonly nodeTooltip?: readonly [{
|
|
109
|
+
readonly locale: "zh";
|
|
110
|
+
readonly message: string;
|
|
111
|
+
}, ...{
|
|
112
|
+
readonly locale: "en" | "ja" | "ko";
|
|
113
|
+
readonly message: string;
|
|
114
|
+
}[]] | undefined;
|
|
115
|
+
readonly nodeSelectable?: string | undefined;
|
|
116
|
+
readonly expandAll: boolean;
|
|
117
117
|
}) => any;
|
|
118
118
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
119
119
|
"onUpdate:block"?: ((value: {
|
|
@@ -145,15 +145,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
145
145
|
readonly locale: "en" | "ja" | "ko";
|
|
146
146
|
readonly message: string;
|
|
147
147
|
}[]];
|
|
148
|
-
readonly nodeTooltip?: readonly [{
|
|
149
|
-
readonly locale: "zh";
|
|
150
|
-
readonly message: string;
|
|
151
|
-
}, ...{
|
|
152
|
-
readonly locale: "en" | "ja" | "ko";
|
|
153
|
-
readonly message: string;
|
|
154
|
-
}[]] | undefined;
|
|
155
|
-
readonly nodeSelectable?: string | undefined;
|
|
156
|
-
readonly expandAll: boolean;
|
|
157
148
|
readonly nodeActions: {
|
|
158
149
|
readonly size: "default" | "sm" | "xs";
|
|
159
150
|
readonly style?: string | undefined;
|
|
@@ -222,6 +213,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
222
213
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
223
214
|
}[];
|
|
224
215
|
};
|
|
216
|
+
readonly nodeTooltip?: readonly [{
|
|
217
|
+
readonly locale: "zh";
|
|
218
|
+
readonly message: string;
|
|
219
|
+
}, ...{
|
|
220
|
+
readonly locale: "en" | "ja" | "ko";
|
|
221
|
+
readonly message: string;
|
|
222
|
+
}[]] | undefined;
|
|
223
|
+
readonly nodeSelectable?: string | undefined;
|
|
224
|
+
readonly expandAll: boolean;
|
|
225
225
|
}) => any) | undefined;
|
|
226
226
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
227
227
|
declare const _default: typeof __VLS_export;
|
package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/schema.d.ts
CHANGED
|
@@ -3,9 +3,15 @@ import type { Environment } from '../../../../../vendor/cel-js/lib/index.js';
|
|
|
3
3
|
type AnySchema = Schema.Schema<any, any, never>;
|
|
4
4
|
export declare const type: "com.shwfed.block.tree.single";
|
|
5
5
|
export declare const compatibilityDate: "2026-06-17";
|
|
6
|
+
export declare const edges: readonly [{
|
|
7
|
+
readonly key: "nodeActions";
|
|
8
|
+
readonly host: "actions";
|
|
9
|
+
readonly label: "节点操作";
|
|
10
|
+
}];
|
|
6
11
|
export declare const metadata: {
|
|
7
12
|
readonly name: "树(单选)";
|
|
8
13
|
readonly icon: "fluent:tree-evergreen-20-regular";
|
|
14
|
+
readonly description: "基于树形数据的单选导航块";
|
|
9
15
|
readonly selection: true;
|
|
10
16
|
readonly w: {
|
|
11
17
|
readonly initial: 12;
|
package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/schema.js
CHANGED
|
@@ -6,9 +6,13 @@ import { DataSource } from "../../../../table/schema.js";
|
|
|
6
6
|
import { Locale } from "../../../../../share/locale.js";
|
|
7
7
|
export const type = "com.shwfed.block.tree.single";
|
|
8
8
|
export const compatibilityDate = "2026-06-17";
|
|
9
|
+
export const edges = [
|
|
10
|
+
{ key: "nodeActions", host: "actions", label: "\u8282\u70B9\u64CD\u4F5C" }
|
|
11
|
+
];
|
|
9
12
|
export const metadata = {
|
|
10
13
|
name: "\u6811\uFF08\u5355\u9009\uFF09",
|
|
11
14
|
icon: "fluent:tree-evergreen-20-regular",
|
|
15
|
+
description: "\u57FA\u4E8E\u6811\u5F62\u6570\u636E\u7684\u5355\u9009\u5BFC\u822A\u5757",
|
|
12
16
|
// Publishes the picked node to the page `selections` registry under this
|
|
13
17
|
// block's id (see `runtime.vue`'s `publishSelection`), so a sibling block
|
|
14
18
|
// can read `selections["<block-id>"]`. The flag lists it in the page-level
|
|
@@ -5,9 +5,16 @@ type AnySchema = Schema.Schema<any, any, never>;
|
|
|
5
5
|
type Configure = (env: Environment) => void;
|
|
6
6
|
export declare const type: "com.shwfed.block.loop";
|
|
7
7
|
export declare const compatibilityDate: "2026-06-25";
|
|
8
|
+
export declare const edges: readonly [{
|
|
9
|
+
readonly key: "slot";
|
|
10
|
+
readonly host: "slot";
|
|
11
|
+
readonly label: "循环内容";
|
|
12
|
+
readonly celScope: "loop-item";
|
|
13
|
+
}];
|
|
8
14
|
export declare const metadata: {
|
|
9
15
|
readonly name: "循环";
|
|
10
16
|
readonly icon: "fluent:arrow-repeat-all-20-regular";
|
|
17
|
+
readonly description: "对一个 CEL 列表逐项渲染同一套内部布局,每项可访问 `item` / `index`;支持任意层级嵌套";
|
|
11
18
|
readonly w: {
|
|
12
19
|
readonly initial: 12;
|
|
13
20
|
readonly min: 4;
|
|
@@ -5,9 +5,13 @@ import { registerLoopVariablesIfAbsent } from "../../../../../share/loop-item-va
|
|
|
5
5
|
export { getStructFieldDescription, getStructFieldTitle } from "../../../../table/utils/schema-meta.js";
|
|
6
6
|
export const type = "com.shwfed.block.loop";
|
|
7
7
|
export const compatibilityDate = "2026-06-25";
|
|
8
|
+
export const edges = [
|
|
9
|
+
{ key: "slot", host: "slot", label: "\u5FAA\u73AF\u5185\u5BB9", celScope: "loop-item" }
|
|
10
|
+
];
|
|
8
11
|
export const metadata = {
|
|
9
12
|
name: "\u5FAA\u73AF",
|
|
10
13
|
icon: "fluent:arrow-repeat-all-20-regular",
|
|
14
|
+
description: "\u5BF9\u4E00\u4E2A CEL \u5217\u8868\u9010\u9879\u6E32\u67D3\u540C\u4E00\u5957\u5185\u90E8\u5E03\u5C40\uFF0C\u6BCF\u9879\u53EF\u8BBF\u95EE `item` / `index`\uFF1B\u652F\u6301\u4EFB\u610F\u5C42\u7EA7\u5D4C\u5957",
|
|
11
15
|
w: { initial: 12, min: 4, max: Infinity },
|
|
12
16
|
// `grow: true`: the loop's height is content-driven (N rendered items), so its
|
|
13
17
|
// row escapes the grid's `1fr` equal-share (bare `auto`) and the loop grows
|
|
@@ -16,11 +16,15 @@ import { provideSelectionRoster } from "../../utils/cel-context";
|
|
|
16
16
|
import { BREADCRUMB_EXTENSION_KEY } from "./breadcrumb-extension";
|
|
17
17
|
import { PAGE_TARGET_ID, PageConfig, getStructFieldDescription, getStructFieldTitle, metadata as pageMetadata } from "./schema";
|
|
18
18
|
import { useSlotClipboard } from "./use-editor";
|
|
19
|
+
import ConfigAiGenerate from "./ai-generate.vue";
|
|
19
20
|
defineOptions({ name: "ShwfedConfigConfig" });
|
|
20
21
|
const props = defineProps({
|
|
21
22
|
state: { type: Object, required: true }
|
|
22
23
|
});
|
|
23
|
-
const viewMode = ref("
|
|
24
|
+
const viewMode = ref("ai");
|
|
25
|
+
function selectAi() {
|
|
26
|
+
viewMode.value = "ai";
|
|
27
|
+
}
|
|
24
28
|
function selectGeneral() {
|
|
25
29
|
viewMode.value = "general";
|
|
26
30
|
}
|
|
@@ -162,6 +166,18 @@ function findBlockMeta(type, compatibilityDate) {
|
|
|
162
166
|
class="flex gap-2 min-h-128"
|
|
163
167
|
>
|
|
164
168
|
<div class="flex w-64 shrink-0 flex-col">
|
|
169
|
+
<div
|
|
170
|
+
class="row pl-2"
|
|
171
|
+
:class="viewMode === 'ai' ? 'bg-[color-mix(in_srgb,var(--primary)_10%,white)] text-(--primary)' : 'text-zinc-700 hover:bg-zinc-50'"
|
|
172
|
+
@click="selectAi()"
|
|
173
|
+
>
|
|
174
|
+
<Icon
|
|
175
|
+
icon="fluent:sparkle-20-regular"
|
|
176
|
+
class="size-4 shrink-0"
|
|
177
|
+
/>
|
|
178
|
+
<span class="flex-1 truncate">AI 生成</span>
|
|
179
|
+
</div>
|
|
180
|
+
|
|
165
181
|
<div
|
|
166
182
|
class="row pl-2"
|
|
167
183
|
:class="viewMode === 'general' ? 'bg-[color-mix(in_srgb,var(--primary)_10%,white)] text-(--primary)' : 'text-zinc-700 hover:bg-zinc-50'"
|
|
@@ -181,7 +197,7 @@ function findBlockMeta(type, compatibilityDate) {
|
|
|
181
197
|
ref="sidebarRef"
|
|
182
198
|
v-model="layouts"
|
|
183
199
|
v-model:active-index="activeLayoutIndex"
|
|
184
|
-
:active="viewMode
|
|
200
|
+
:active="viewMode === 'content'"
|
|
185
201
|
@select="selectLayout"
|
|
186
202
|
/>
|
|
187
203
|
</ScrollArea>
|
|
@@ -199,8 +215,13 @@ function findBlockMeta(type, compatibilityDate) {
|
|
|
199
215
|
</div>
|
|
200
216
|
|
|
201
217
|
<div class="flex flex-1 flex-col gap-2">
|
|
218
|
+
<!-- Top-level AI agent — the default landing view. -->
|
|
219
|
+
<template v-if="viewMode === 'ai'">
|
|
220
|
+
<ConfigAiGenerate :state="props.state" />
|
|
221
|
+
</template>
|
|
222
|
+
|
|
202
223
|
<!-- Page-level general settings. -->
|
|
203
|
-
<template v-if="viewMode === 'general'">
|
|
224
|
+
<template v-else-if="viewMode === 'general'">
|
|
204
225
|
<Field orientation="vertical">
|
|
205
226
|
<FieldLabel class="text-xs text-zinc-500">
|
|
206
227
|
<template
|
|
@@ -14,7 +14,6 @@ import {
|
|
|
14
14
|
} from "../ui/command";
|
|
15
15
|
import {
|
|
16
16
|
AlertDialog,
|
|
17
|
-
AlertDialogAction,
|
|
18
17
|
AlertDialogCancel,
|
|
19
18
|
AlertDialogContent,
|
|
20
19
|
AlertDialogDescription,
|
|
@@ -140,14 +139,17 @@ function onCancel() {
|
|
|
140
139
|
{{ t("history-confirm-body") }}
|
|
141
140
|
</p>
|
|
142
141
|
<AlertDialogFooter>
|
|
143
|
-
<AlertDialogCancel
|
|
142
|
+
<AlertDialogCancel>
|
|
144
143
|
<Icon icon="fluent:dismiss-20-regular" />
|
|
145
144
|
{{ t("history-cancel") }}
|
|
146
145
|
</AlertDialogCancel>
|
|
147
|
-
<
|
|
146
|
+
<Button
|
|
147
|
+
variant="primary"
|
|
148
|
+
@click="onConfirm"
|
|
149
|
+
>
|
|
148
150
|
<Icon icon="fluent:checkmark-20-regular" />
|
|
149
151
|
{{ t("history-confirm") }}
|
|
150
|
-
</
|
|
152
|
+
</Button>
|
|
151
153
|
</AlertDialogFooter>
|
|
152
154
|
</AlertDialogContent>
|
|
153
155
|
</AlertDialog>
|
|
@@ -3,7 +3,6 @@ import { computed } from "vue";
|
|
|
3
3
|
import { Icon } from "@iconify/vue";
|
|
4
4
|
import {
|
|
5
5
|
AlertDialog,
|
|
6
|
-
AlertDialogAction,
|
|
7
6
|
AlertDialogCancel,
|
|
8
7
|
AlertDialogContent,
|
|
9
8
|
AlertDialogDescription,
|
|
@@ -11,6 +10,7 @@ import {
|
|
|
11
10
|
AlertDialogHeader,
|
|
12
11
|
AlertDialogTitle
|
|
13
12
|
} from "../ui/alert-dialog";
|
|
13
|
+
import { Button } from "../ui/button";
|
|
14
14
|
import { pruneKindNoun } from "./utils/prune";
|
|
15
15
|
defineOptions({ name: "ShwfedConfigPruneDialog" });
|
|
16
16
|
const props = defineProps({
|
|
@@ -58,14 +58,25 @@ function onOpenChange(next) {
|
|
|
58
58
|
</p>
|
|
59
59
|
</div>
|
|
60
60
|
<AlertDialogFooter>
|
|
61
|
-
|
|
61
|
+
<!-- Closes itself, which `onOpenChange` reads as the 取消. -->
|
|
62
|
+
<AlertDialogCancel>
|
|
62
63
|
<Icon icon="fluent:dismiss-20-regular" />
|
|
63
64
|
取消
|
|
64
65
|
</AlertDialogCancel>
|
|
65
|
-
|
|
66
|
+
<!-- A plain Button, NOT an AlertDialogAction: reka's action IS a
|
|
67
|
+
DialogClose, and its built-in close handler — bound in reka's own
|
|
68
|
+
template — runs BEFORE a `@click` we hang on it, which arrives as a
|
|
69
|
+
fallthrough attr and merges after. The close would reach
|
|
70
|
+
`onOpenChange` first and cancel the very save this button
|
|
71
|
+
authorizes. The dialog shuts anyway: the host drops `items` the
|
|
72
|
+
moment it takes the verdict. -->
|
|
73
|
+
<Button
|
|
74
|
+
variant="primary"
|
|
75
|
+
@click="emit('confirm')"
|
|
76
|
+
>
|
|
66
77
|
<Icon icon="fluent:checkmark-20-regular" />
|
|
67
78
|
删除并保存
|
|
68
|
-
</
|
|
79
|
+
</Button>
|
|
69
80
|
</AlertDialogFooter>
|
|
70
81
|
</AlertDialogContent>
|
|
71
82
|
</AlertDialog>
|
|
@@ -119,6 +119,7 @@ export interface ConfigEditorState {
|
|
|
119
119
|
getBlockLabel: (b: BlockValue) => string;
|
|
120
120
|
findBlockMeta: (type: string, compatibilityDate: string) => BlockEntry | undefined;
|
|
121
121
|
onDrillDown: (blockId: string) => void;
|
|
122
|
+
replaceDraft: (next: PageConfigValue) => void;
|
|
122
123
|
confirm: () => Promise<boolean>;
|
|
123
124
|
dismiss: () => void;
|
|
124
125
|
reset: () => void;
|
|
@@ -205,7 +205,7 @@ export function useSlotClipboard(target) {
|
|
|
205
205
|
if (p) placements[id] = p;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
if (!await writeClip("block", items, placements)) {
|
|
208
|
+
if (!await writeClip("block", { items, placements })) {
|
|
209
209
|
toast.error("\u590D\u5236\u5931\u8D25");
|
|
210
210
|
return;
|
|
211
211
|
}
|
|
@@ -214,7 +214,7 @@ export function useSlotClipboard(target) {
|
|
|
214
214
|
async function paste(anchor) {
|
|
215
215
|
const payload = await readClip();
|
|
216
216
|
if (!payload || payload.surface !== "block") return;
|
|
217
|
-
const { items, placements } = reidFragment(payload
|
|
217
|
+
const { items, placements } = reidFragment(payload);
|
|
218
218
|
const pasted = items;
|
|
219
219
|
if (pasted.length === 0) return;
|
|
220
220
|
if (placements && Object.keys(placements).length > 0) {
|
|
@@ -380,6 +380,23 @@ export function useConfigEditor(model, options = {}) {
|
|
|
380
380
|
function onDrillDown(blockId) {
|
|
381
381
|
pushBlock(blockId);
|
|
382
382
|
}
|
|
383
|
+
function replaceDraft(next) {
|
|
384
|
+
draft.value = next;
|
|
385
|
+
const ids = new Set(topSlotEditor.blocks.value.map((b) => b.id));
|
|
386
|
+
let cut = stack.value.length;
|
|
387
|
+
for (let i = 0; i < stack.value.length; i++) {
|
|
388
|
+
const e = stack.value[i];
|
|
389
|
+
if (e.kind === "block" && !ids.has(e.blockId)) {
|
|
390
|
+
cut = i;
|
|
391
|
+
break;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
if (cut !== stack.value.length) stack.value = stack.value.slice(0, cut);
|
|
395
|
+
const sel = topSlotEditor.selectedBlockIds.value;
|
|
396
|
+
if (sel.some((id) => !ids.has(id))) {
|
|
397
|
+
topSlotEditor.selectedBlockIds.value = sel.filter((id) => ids.has(id));
|
|
398
|
+
}
|
|
399
|
+
}
|
|
383
400
|
const validationError = ref(null);
|
|
384
401
|
const saveError = ref(null);
|
|
385
402
|
const saving = ref(false);
|
|
@@ -509,6 +526,7 @@ export function useConfigEditor(model, options = {}) {
|
|
|
509
526
|
getBlockLabel: topSlotEditor.getBlockLabel,
|
|
510
527
|
findBlockMeta: topSlotEditor.findBlockMeta,
|
|
511
528
|
onDrillDown,
|
|
529
|
+
replaceDraft,
|
|
512
530
|
confirm,
|
|
513
531
|
dismiss,
|
|
514
532
|
reset
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Environment } from '../../../vendor/cel-js/lib/index.js';
|
|
2
|
+
import type { AgenticTool } from '../../../utils/ai/index.js';
|
|
3
|
+
type AnyRecord = Record<string, any>;
|
|
4
|
+
export interface ConfigAiCursorDeps {
|
|
5
|
+
readonly read: () => AnyRecord;
|
|
6
|
+
readonly write: (next: AnyRecord) => void;
|
|
7
|
+
readonly configure: (env: Environment) => void;
|
|
8
|
+
readonly genUuid: () => string;
|
|
9
|
+
readonly manualsDelivered?: {
|
|
10
|
+
readonly has: (kind: string) => boolean;
|
|
11
|
+
readonly add: (kind: string) => void;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare function createPageSlotTools(deps: ConfigAiCursorDeps): AgenticTool[];
|
|
15
|
+
export interface ConfigAiCursor {
|
|
16
|
+
tools: () => AgenticTool[];
|
|
17
|
+
reset: () => void;
|
|
18
|
+
scope: () => string;
|
|
19
|
+
}
|
|
20
|
+
export declare function createConfigAiCursor(deps: ConfigAiCursorDeps): ConfigAiCursor;
|
|
21
|
+
export {};
|