@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
|
@@ -37,15 +37,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
37
37
|
readonly displayName?: string | undefined;
|
|
38
38
|
readonly compatibilityDate: "2026-05-28";
|
|
39
39
|
readonly readonly?: string | undefined;
|
|
40
|
+
readonly dataSource: {
|
|
41
|
+
readonly data: string;
|
|
42
|
+
readonly request?: string | undefined;
|
|
43
|
+
};
|
|
40
44
|
readonly binding?: string | undefined;
|
|
41
45
|
readonly derived?: {
|
|
42
46
|
readonly mode: "formula" | "prefill";
|
|
43
47
|
readonly expression: string;
|
|
44
48
|
} | undefined;
|
|
45
|
-
readonly dataSource: {
|
|
46
|
-
readonly data: string;
|
|
47
|
-
readonly request?: string | undefined;
|
|
48
|
-
};
|
|
49
49
|
readonly nodeKey: string;
|
|
50
50
|
readonly nodeChildren: string;
|
|
51
51
|
readonly nodeLabel: readonly [{
|
|
@@ -56,15 +56,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
56
56
|
readonly message: string;
|
|
57
57
|
}[]];
|
|
58
58
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
59
|
-
readonly nodeTooltip?: readonly [{
|
|
60
|
-
readonly locale: "zh";
|
|
61
|
-
readonly message: string;
|
|
62
|
-
}, ...{
|
|
63
|
-
readonly locale: "en" | "ja" | "ko";
|
|
64
|
-
readonly message: string;
|
|
65
|
-
}[]] | undefined;
|
|
66
|
-
readonly nodeSelectable?: string | undefined;
|
|
67
|
-
readonly expandAll: boolean;
|
|
68
59
|
readonly validations?: readonly {
|
|
69
60
|
readonly message: readonly [{
|
|
70
61
|
readonly locale: "zh";
|
|
@@ -76,6 +67,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
76
67
|
readonly warning?: boolean | undefined;
|
|
77
68
|
readonly when: string;
|
|
78
69
|
}[] | undefined;
|
|
70
|
+
readonly nodeTooltip?: readonly [{
|
|
71
|
+
readonly locale: "zh";
|
|
72
|
+
readonly message: string;
|
|
73
|
+
}, ...{
|
|
74
|
+
readonly locale: "en" | "ja" | "ko";
|
|
75
|
+
readonly message: string;
|
|
76
|
+
}[]] | undefined;
|
|
77
|
+
readonly nodeSelectable?: string | undefined;
|
|
78
|
+
readonly expandAll: boolean;
|
|
79
79
|
}) => any;
|
|
80
80
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
81
81
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -112,15 +112,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
112
112
|
readonly displayName?: string | undefined;
|
|
113
113
|
readonly compatibilityDate: "2026-05-28";
|
|
114
114
|
readonly readonly?: string | undefined;
|
|
115
|
+
readonly dataSource: {
|
|
116
|
+
readonly data: string;
|
|
117
|
+
readonly request?: string | undefined;
|
|
118
|
+
};
|
|
115
119
|
readonly binding?: string | undefined;
|
|
116
120
|
readonly derived?: {
|
|
117
121
|
readonly mode: "formula" | "prefill";
|
|
118
122
|
readonly expression: string;
|
|
119
123
|
} | undefined;
|
|
120
|
-
readonly dataSource: {
|
|
121
|
-
readonly data: string;
|
|
122
|
-
readonly request?: string | undefined;
|
|
123
|
-
};
|
|
124
124
|
readonly nodeKey: string;
|
|
125
125
|
readonly nodeChildren: string;
|
|
126
126
|
readonly nodeLabel: readonly [{
|
|
@@ -131,15 +131,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
131
131
|
readonly message: string;
|
|
132
132
|
}[]];
|
|
133
133
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
134
|
-
readonly nodeTooltip?: readonly [{
|
|
135
|
-
readonly locale: "zh";
|
|
136
|
-
readonly message: string;
|
|
137
|
-
}, ...{
|
|
138
|
-
readonly locale: "en" | "ja" | "ko";
|
|
139
|
-
readonly message: string;
|
|
140
|
-
}[]] | undefined;
|
|
141
|
-
readonly nodeSelectable?: string | undefined;
|
|
142
|
-
readonly expandAll: boolean;
|
|
143
134
|
readonly validations?: readonly {
|
|
144
135
|
readonly message: readonly [{
|
|
145
136
|
readonly locale: "zh";
|
|
@@ -151,6 +142,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
151
142
|
readonly warning?: boolean | undefined;
|
|
152
143
|
readonly when: string;
|
|
153
144
|
}[] | undefined;
|
|
145
|
+
readonly nodeTooltip?: readonly [{
|
|
146
|
+
readonly locale: "zh";
|
|
147
|
+
readonly message: string;
|
|
148
|
+
}, ...{
|
|
149
|
+
readonly locale: "en" | "ja" | "ko";
|
|
150
|
+
readonly message: string;
|
|
151
|
+
}[]] | undefined;
|
|
152
|
+
readonly nodeSelectable?: string | undefined;
|
|
153
|
+
readonly expandAll: boolean;
|
|
154
154
|
}) => any) | undefined;
|
|
155
155
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
156
156
|
declare const _default: typeof __VLS_export;
|
package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/prompt.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
## 树(多选)字段
|
|
2
|
+
|
|
3
|
+
在一棵内联渲染的树里勾选多个节点;绑定值是**已勾选节点 ID 的数组**。
|
|
4
|
+
|
|
5
|
+
节点契约与树(单选)一致:`dataSource` 返回完整树的根节点列表(`request` + `data`,同表格数据源写法);`nodeId` / `nodeChildren` / `nodeLabel` / `nodeTooltip` / `nodeSelectable` 都在 `node`(当前节点)作用域下逐节点求值——`nodeChildren` 返回 `none`/`null` 即叶子(常写 `node.?children.orValue(null)`)。
|
|
6
|
+
|
|
7
|
+
多选特有的是 `cascade`(级联模式):`independent` 只勾当前节点;`cascade-down` 勾父节点连带勾选全部可选后代;`cascade-both`(默认)在向下级联之上让父节点反映后代状态(半选)。级联仍尊重 `nodeSelectable`。
|
|
8
|
+
|
|
9
|
+
搜索框(`filter.enabled`)按节点标签匹配,`filter.keywords`(node 作用域)可折入更多字段;过滤只影响显示,不影响已勾选的 ID。
|
package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/schema.js
CHANGED
|
@@ -9,6 +9,7 @@ export const compatibilityDate = "2026-05-28";
|
|
|
9
9
|
export const metadata = {
|
|
10
10
|
name: "\u6811\uFF08\u591A\u9009\uFF09",
|
|
11
11
|
icon: "fluent:tree-evergreen-20-regular",
|
|
12
|
+
description: "\u5728\u6811\u5F62\u6570\u636E\u4E2D\u591A\u9009\u8282\u70B9",
|
|
12
13
|
w: { initial: 8, min: 4, max: Infinity },
|
|
13
14
|
h: { initial: 8, min: 4, max: Infinity, grow: true },
|
|
14
15
|
// Publishes its resolved nodes (array, in selection order) to the `selections`
|
|
@@ -37,15 +37,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
37
37
|
readonly displayName?: string | undefined;
|
|
38
38
|
readonly compatibilityDate: "2026-05-28";
|
|
39
39
|
readonly readonly?: string | undefined;
|
|
40
|
+
readonly dataSource: {
|
|
41
|
+
readonly data: string;
|
|
42
|
+
readonly request?: string | undefined;
|
|
43
|
+
};
|
|
40
44
|
readonly binding?: string | undefined;
|
|
41
45
|
readonly derived?: {
|
|
42
46
|
readonly mode: "formula" | "prefill";
|
|
43
47
|
readonly expression: string;
|
|
44
48
|
} | undefined;
|
|
45
|
-
readonly dataSource: {
|
|
46
|
-
readonly data: string;
|
|
47
|
-
readonly request?: string | undefined;
|
|
48
|
-
};
|
|
49
49
|
readonly nodeKey: string;
|
|
50
50
|
readonly nodeChildren: string;
|
|
51
51
|
readonly nodeLabel: readonly [{
|
|
@@ -55,15 +55,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
55
55
|
readonly locale: "en" | "ja" | "ko";
|
|
56
56
|
readonly message: string;
|
|
57
57
|
}[]];
|
|
58
|
-
readonly nodeTooltip?: readonly [{
|
|
59
|
-
readonly locale: "zh";
|
|
60
|
-
readonly message: string;
|
|
61
|
-
}, ...{
|
|
62
|
-
readonly locale: "en" | "ja" | "ko";
|
|
63
|
-
readonly message: string;
|
|
64
|
-
}[]] | undefined;
|
|
65
|
-
readonly nodeSelectable?: string | undefined;
|
|
66
|
-
readonly expandAll: boolean;
|
|
67
58
|
readonly validations?: readonly {
|
|
68
59
|
readonly message: readonly [{
|
|
69
60
|
readonly locale: "zh";
|
|
@@ -75,6 +66,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
75
66
|
readonly warning?: boolean | undefined;
|
|
76
67
|
readonly when: string;
|
|
77
68
|
}[] | undefined;
|
|
69
|
+
readonly nodeTooltip?: readonly [{
|
|
70
|
+
readonly locale: "zh";
|
|
71
|
+
readonly message: string;
|
|
72
|
+
}, ...{
|
|
73
|
+
readonly locale: "en" | "ja" | "ko";
|
|
74
|
+
readonly message: string;
|
|
75
|
+
}[]] | undefined;
|
|
76
|
+
readonly nodeSelectable?: string | undefined;
|
|
77
|
+
readonly expandAll: boolean;
|
|
78
78
|
}) => any;
|
|
79
79
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
80
80
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -111,15 +111,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
111
111
|
readonly displayName?: string | undefined;
|
|
112
112
|
readonly compatibilityDate: "2026-05-28";
|
|
113
113
|
readonly readonly?: string | undefined;
|
|
114
|
+
readonly dataSource: {
|
|
115
|
+
readonly data: string;
|
|
116
|
+
readonly request?: string | undefined;
|
|
117
|
+
};
|
|
114
118
|
readonly binding?: string | undefined;
|
|
115
119
|
readonly derived?: {
|
|
116
120
|
readonly mode: "formula" | "prefill";
|
|
117
121
|
readonly expression: string;
|
|
118
122
|
} | undefined;
|
|
119
|
-
readonly dataSource: {
|
|
120
|
-
readonly data: string;
|
|
121
|
-
readonly request?: string | undefined;
|
|
122
|
-
};
|
|
123
123
|
readonly nodeKey: string;
|
|
124
124
|
readonly nodeChildren: string;
|
|
125
125
|
readonly nodeLabel: readonly [{
|
|
@@ -129,15 +129,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
129
129
|
readonly locale: "en" | "ja" | "ko";
|
|
130
130
|
readonly message: string;
|
|
131
131
|
}[]];
|
|
132
|
-
readonly nodeTooltip?: readonly [{
|
|
133
|
-
readonly locale: "zh";
|
|
134
|
-
readonly message: string;
|
|
135
|
-
}, ...{
|
|
136
|
-
readonly locale: "en" | "ja" | "ko";
|
|
137
|
-
readonly message: string;
|
|
138
|
-
}[]] | undefined;
|
|
139
|
-
readonly nodeSelectable?: string | undefined;
|
|
140
|
-
readonly expandAll: boolean;
|
|
141
132
|
readonly validations?: readonly {
|
|
142
133
|
readonly message: readonly [{
|
|
143
134
|
readonly locale: "zh";
|
|
@@ -149,6 +140,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
149
140
|
readonly warning?: boolean | undefined;
|
|
150
141
|
readonly when: string;
|
|
151
142
|
}[] | undefined;
|
|
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
152
|
}) => any) | undefined;
|
|
153
153
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
154
154
|
declare const _default: typeof __VLS_export;
|
|
@@ -37,15 +37,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
37
37
|
readonly displayName?: string | undefined;
|
|
38
38
|
readonly compatibilityDate: "2026-05-28";
|
|
39
39
|
readonly readonly?: string | undefined;
|
|
40
|
+
readonly dataSource: {
|
|
41
|
+
readonly data: string;
|
|
42
|
+
readonly request?: string | undefined;
|
|
43
|
+
};
|
|
40
44
|
readonly binding?: string | undefined;
|
|
41
45
|
readonly derived?: {
|
|
42
46
|
readonly mode: "formula" | "prefill";
|
|
43
47
|
readonly expression: string;
|
|
44
48
|
} | undefined;
|
|
45
|
-
readonly dataSource: {
|
|
46
|
-
readonly data: string;
|
|
47
|
-
readonly request?: string | undefined;
|
|
48
|
-
};
|
|
49
49
|
readonly nodeKey: string;
|
|
50
50
|
readonly nodeChildren: string;
|
|
51
51
|
readonly nodeLabel: readonly [{
|
|
@@ -55,15 +55,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
55
55
|
readonly locale: "en" | "ja" | "ko";
|
|
56
56
|
readonly message: string;
|
|
57
57
|
}[]];
|
|
58
|
-
readonly nodeTooltip?: readonly [{
|
|
59
|
-
readonly locale: "zh";
|
|
60
|
-
readonly message: string;
|
|
61
|
-
}, ...{
|
|
62
|
-
readonly locale: "en" | "ja" | "ko";
|
|
63
|
-
readonly message: string;
|
|
64
|
-
}[]] | undefined;
|
|
65
|
-
readonly nodeSelectable?: string | undefined;
|
|
66
|
-
readonly expandAll: boolean;
|
|
67
58
|
readonly validations?: readonly {
|
|
68
59
|
readonly message: readonly [{
|
|
69
60
|
readonly locale: "zh";
|
|
@@ -75,6 +66,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
75
66
|
readonly warning?: boolean | undefined;
|
|
76
67
|
readonly when: string;
|
|
77
68
|
}[] | undefined;
|
|
69
|
+
readonly nodeTooltip?: readonly [{
|
|
70
|
+
readonly locale: "zh";
|
|
71
|
+
readonly message: string;
|
|
72
|
+
}, ...{
|
|
73
|
+
readonly locale: "en" | "ja" | "ko";
|
|
74
|
+
readonly message: string;
|
|
75
|
+
}[]] | undefined;
|
|
76
|
+
readonly nodeSelectable?: string | undefined;
|
|
77
|
+
readonly expandAll: boolean;
|
|
78
78
|
}) => any;
|
|
79
79
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
80
80
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -111,15 +111,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
111
111
|
readonly displayName?: string | undefined;
|
|
112
112
|
readonly compatibilityDate: "2026-05-28";
|
|
113
113
|
readonly readonly?: string | undefined;
|
|
114
|
+
readonly dataSource: {
|
|
115
|
+
readonly data: string;
|
|
116
|
+
readonly request?: string | undefined;
|
|
117
|
+
};
|
|
114
118
|
readonly binding?: string | undefined;
|
|
115
119
|
readonly derived?: {
|
|
116
120
|
readonly mode: "formula" | "prefill";
|
|
117
121
|
readonly expression: string;
|
|
118
122
|
} | undefined;
|
|
119
|
-
readonly dataSource: {
|
|
120
|
-
readonly data: string;
|
|
121
|
-
readonly request?: string | undefined;
|
|
122
|
-
};
|
|
123
123
|
readonly nodeKey: string;
|
|
124
124
|
readonly nodeChildren: string;
|
|
125
125
|
readonly nodeLabel: readonly [{
|
|
@@ -129,15 +129,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
129
129
|
readonly locale: "en" | "ja" | "ko";
|
|
130
130
|
readonly message: string;
|
|
131
131
|
}[]];
|
|
132
|
-
readonly nodeTooltip?: readonly [{
|
|
133
|
-
readonly locale: "zh";
|
|
134
|
-
readonly message: string;
|
|
135
|
-
}, ...{
|
|
136
|
-
readonly locale: "en" | "ja" | "ko";
|
|
137
|
-
readonly message: string;
|
|
138
|
-
}[]] | undefined;
|
|
139
|
-
readonly nodeSelectable?: string | undefined;
|
|
140
|
-
readonly expandAll: boolean;
|
|
141
132
|
readonly validations?: readonly {
|
|
142
133
|
readonly message: readonly [{
|
|
143
134
|
readonly locale: "zh";
|
|
@@ -149,6 +140,15 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
149
140
|
readonly warning?: boolean | undefined;
|
|
150
141
|
readonly when: string;
|
|
151
142
|
}[] | undefined;
|
|
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
152
|
}) => any) | undefined;
|
|
153
153
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
154
154
|
declare const _default: typeof __VLS_export;
|
package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/prompt.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
## 树(单选)字段
|
|
2
|
+
|
|
3
|
+
在一棵内联渲染的树里单选一个节点;绑定值是**所选节点 ID 的字符串**(标量)。
|
|
4
|
+
|
|
5
|
+
节点契约(树家族共同的配方):
|
|
6
|
+
|
|
7
|
+
- `dataSource` 返回**完整树的根节点列表**(`request` 发 HTTP、`data` 从 `json` 里取根列表,同表格数据源写法);树不做懒加载。
|
|
8
|
+
- 其余节点表达式都在 `node`(当前节点,`dyn`)作用域下逐节点求值:`nodeId`(稳定唯一 ID,结果按字符串存)、`nodeChildren`(子级列表,返回 `none`/`null` 即叶子,常写 `node.?children.orValue(null)`)、`nodeLabel`(本地化 Markdown,`{{ node.name }}` 插值)、`nodeSelectable`(返回 `true` 才可选——常用来限制只能选叶子)。
|
|
9
|
+
- 选中节点的完整记录发布到 `selections["<字段 uuid>"]`,兄弟字段表达式可读整个后端对象,而不只是绑定的 ID。
|
|
10
|
+
|
|
11
|
+
搜索框(`filter.enabled`)开启后按节点标签匹配;要把别的字段折进搜索面,配 `filter.keywords`(node 作用域,返回参与匹配的字符串列表)。
|
package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/schema.js
CHANGED
|
@@ -9,6 +9,7 @@ export const compatibilityDate = "2026-05-28";
|
|
|
9
9
|
export const metadata = {
|
|
10
10
|
name: "\u6811\uFF08\u5355\u9009\uFF09",
|
|
11
11
|
icon: "fluent:tree-evergreen-20-regular",
|
|
12
|
+
description: "\u5728\u6811\u5F62\u6570\u636E\u4E2D\u5355\u9009\u4E00\u4E2A\u8282\u70B9",
|
|
12
13
|
w: { initial: 8, min: 4, max: Infinity },
|
|
13
14
|
h: { initial: 8, min: 4, max: Infinity, grow: true },
|
|
14
15
|
// Publishes its resolved node (the backend record) to the `selections`
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
## 文件上传字段
|
|
2
|
+
|
|
3
|
+
两种模式,取决于是否配置「即时上传」(`upload`):
|
|
4
|
+
|
|
5
|
+
- **不配置**(延迟模式):选中的文件以原始 `File` 数组存放在绑定值里,随表单一并提交(由提交按钮的请求负责编码)。
|
|
6
|
+
- **配置后**(即时模式):每次选择文件立刻发起 `upload.request`(CEL 里用 `files` 引用本次选中的文件,如 `http.post(url).body(form({"files": files}))`),再用 `upload.handle` 把响应 `json` **映射成一个列表**追加到绑定值(如 `json.data.map(d, {"cacheKey": d.key, "filename": d.fileOriginalName})`);`upload.filename` 用 `file` 引用单个已存文件项返回其展示名。绑定值里存的是映射后的对象,不是 `File`。
|
|
7
|
+
|
|
8
|
+
三个表达式各有各的变量:`request` 见 `files`(本次选择)、`handle` 见 `json`(上传响应)、`filename` 见 `file`(单个存量项)——不要混用。
|
|
9
|
+
|
|
10
|
+
`templates` 在上传区旁渲染「下载模板」按钮:只配 `request` 则直接下载其响应;再配 `download` 则是两步式——第二步经 `json` 引用第一步响应(如用 `json.data.key` 拼真正的下载地址)。
|
|
11
|
+
|
|
12
|
+
约束类字段(`accept` / `maxFileSize` / `maxTotalSize` / `maxFiles` / `multiple`)按需设置即可。
|
package/dist/runtime/components/form/fields/2026-06-09/com.shwfed.form.field.upload/schema.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare const compatibilityDate: "2026-06-09";
|
|
|
5
5
|
export declare const metadata: {
|
|
6
6
|
readonly name: "文件上传";
|
|
7
7
|
readonly icon: "fluent:cloud-arrow-up-20-regular";
|
|
8
|
+
readonly description: "上传文件,值为文件描述对象列表";
|
|
8
9
|
readonly w: {
|
|
9
10
|
readonly initial: 8;
|
|
10
11
|
readonly min: 8;
|
package/dist/runtime/components/form/fields/2026-06-09/com.shwfed.form.field.upload/schema.js
CHANGED
|
@@ -7,6 +7,7 @@ export const compatibilityDate = "2026-06-09";
|
|
|
7
7
|
export const metadata = {
|
|
8
8
|
name: "\u6587\u4EF6\u4E0A\u4F20",
|
|
9
9
|
icon: "fluent:cloud-arrow-up-20-regular",
|
|
10
|
+
description: "\u4E0A\u4F20\u6587\u4EF6\uFF0C\u503C\u4E3A\u6587\u4EF6\u63CF\u8FF0\u5BF9\u8C61\u5217\u8868",
|
|
10
11
|
w: { initial: 8, min: 8, max: Infinity },
|
|
11
12
|
h: { initial: 6, min: 6, max: Infinity, grow: true }
|
|
12
13
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
**何时用我**:从一组选项中**多选**(可选多个值,绑定为数组)。选项固定用静态,来自接口用远程。与「下拉单选」同构,差别只在选中结果是列表。
|
|
2
|
+
|
|
3
|
+
**配置配方**
|
|
4
|
+
|
|
5
|
+
- `binding`:写入表单状态的 dot-prop 路径;选中值是数组。
|
|
6
|
+
- `options` 是判别联合,二选一:
|
|
7
|
+
- `{ kind: 'static', items: [...] }`:每项 `{ label: <Locale 纯文本>, value: { kind: 'text'|'number', value } }`,可选 `tooltip` / `keywords`。
|
|
8
|
+
- `{ kind: 'remote', ... }`:`request`(可选,返回 `HttpRequest`,可访问 `form`;留空则直接对 `form` 求值 `options`、`json == null`)、`options`(提取数组,可访问 `form` / `json`)、`optionLabel`(可访问 `option`)、`optionValue`(默认 `option`,通常设为 `option.value`)、`optionKeywords`(可选)。
|
|
9
|
+
|
|
10
|
+
**坑**
|
|
11
|
+
|
|
12
|
+
- 静态项 `value` 是判别对象 `{ kind, value }`,不是裸值。
|
|
13
|
+
- 远程 `optionValue` 默认是整个 `option`,多选时通常要设成标量(如 `option.value`),否则数组里塞的是整对象。
|
|
14
|
+
- 选项集合不确定时**先向用户询问**。
|
|
@@ -8,6 +8,7 @@ export const compatibilityDate = "2026-06-14";
|
|
|
8
8
|
export const metadata = {
|
|
9
9
|
name: "\u4E0B\u62C9\u591A\u9009",
|
|
10
10
|
icon: "fluent:chevron-down-20-regular",
|
|
11
|
+
description: "\u4ECE\u4E00\u7EC4\u9009\u9879\u4E2D\u4E0B\u62C9\u591A\u9009",
|
|
11
12
|
w: { initial: 8, min: 4, max: Infinity },
|
|
12
13
|
h: { initial: 2, min: 2, max: 2 },
|
|
13
14
|
// Publishes its resolved options (array, in selection order) to the
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
**何时用我**:从一组选项中单选一个值(角色、状态、分类……)。选项固定就用静态,选项来自接口就用远程。
|
|
2
|
+
|
|
3
|
+
**配置配方**
|
|
4
|
+
|
|
5
|
+
- `binding`:写入表单状态的 dot-prop 路径(如 `user.role`)。
|
|
6
|
+
- `options` 是判别联合,二选一:
|
|
7
|
+
- `{ kind: 'static', items: [...] }`:手配选项。每项 `{ label: <Locale>, value: { kind: 'text'|'number', value } }`;`label` 是**纯文本 Locale**(不支持 Markdown / 插值)。可选 `tooltip` / `keywords`(附加搜索词,不展示)。
|
|
8
|
+
- `{ kind: 'remote', ... }`:CEL / 远端产出。
|
|
9
|
+
- `request`(可选):返回 `HttpRequest` 的表达式,可访问 `form`。**留空则不发请求**,直接对 `form` 求值 `options`(此时 `json == null`)——这是纯 CEL 选项的写法。
|
|
10
|
+
- `options`:提取选项数组,可访问 `form` 与 `json`(如 `json.?data.orValue([])`)。
|
|
11
|
+
- `optionLabel`:返回展示文本,可访问 `option`(当前迭代项),如 `option.name` 或 `string(option.code) + ' - ' + option.name`。
|
|
12
|
+
- `optionValue`(默认 `option`):从 `option` 提取写入绑定的值,如 `option.value`。
|
|
13
|
+
- `optionKeywords`(可选):返回字符串列表,参与搜索但不展示。
|
|
14
|
+
|
|
15
|
+
**坑**
|
|
16
|
+
|
|
17
|
+
- 静态项的 `value` 是判别对象 `{ kind, value }`,不是裸值;文本用 `kind: 'text'`,数字用 `kind: 'number'`。
|
|
18
|
+
- 远程 `optionValue` 默认写入整个 `option` 对象——通常要显式设成 `option.value` 之类的标量。
|
|
19
|
+
- 选项集合不确定(有哪些值、对应什么 label)时**先向用户询问**,不要编造。
|
|
@@ -8,6 +8,7 @@ export const compatibilityDate = "2026-06-14";
|
|
|
8
8
|
export const metadata = {
|
|
9
9
|
name: "\u4E0B\u62C9\u5355\u9009",
|
|
10
10
|
icon: "fluent:chevron-down-20-regular",
|
|
11
|
+
description: "\u4ECE\u4E00\u7EC4\u9009\u9879\u4E2D\u4E0B\u62C9\u5355\u9009",
|
|
11
12
|
w: { initial: 8, min: 4, max: Infinity },
|
|
12
13
|
h: { initial: 2, min: 2, max: 2 },
|
|
13
14
|
// Publishes its resolved option to the `selections` registry (runtime.vue), so
|
package/dist/runtime/components/form/fields/2026-06-20/com.shwfed.form.field.tabs/schema.d.ts
CHANGED
|
@@ -2,9 +2,16 @@ import { Schema } from 'effect';
|
|
|
2
2
|
import type { Environment } from '../../../../../vendor/cel-js/lib/index.js';
|
|
3
3
|
export declare const type: "com.shwfed.form.field.tabs";
|
|
4
4
|
export declare const compatibilityDate: "2026-06-20";
|
|
5
|
+
export declare const edges: readonly [{
|
|
6
|
+
readonly key: "tabs";
|
|
7
|
+
readonly host: "form";
|
|
8
|
+
readonly label: "标签内容";
|
|
9
|
+
readonly itemSlot: "unit";
|
|
10
|
+
}];
|
|
5
11
|
export declare const metadata: {
|
|
6
12
|
readonly name: "标签页";
|
|
7
13
|
readonly icon: "fluent:tabs-20-regular";
|
|
14
|
+
readonly description: "把字段分组到多个标签页(仅视觉分组)";
|
|
8
15
|
readonly w: {
|
|
9
16
|
readonly initial: 12;
|
|
10
17
|
readonly min: 4;
|
|
@@ -3,9 +3,13 @@ import { Locale } from "../../../../../share/locale.js";
|
|
|
3
3
|
import { FormUnit } from "../../../schema.js";
|
|
4
4
|
export const type = "com.shwfed.form.field.tabs";
|
|
5
5
|
export const compatibilityDate = "2026-06-20";
|
|
6
|
+
export const edges = [
|
|
7
|
+
{ key: "tabs", host: "form", label: "\u6807\u7B7E\u5185\u5BB9", itemSlot: "unit" }
|
|
8
|
+
];
|
|
6
9
|
export const metadata = {
|
|
7
10
|
name: "\u6807\u7B7E\u9875",
|
|
8
11
|
icon: "fluent:tabs-20-regular",
|
|
12
|
+
description: "\u628A\u5B57\u6BB5\u5206\u7EC4\u5230\u591A\u4E2A\u6807\u7B7E\u9875\uFF08\u4EC5\u89C6\u89C9\u5206\u7EC4\uFF09",
|
|
9
13
|
w: { initial: 12, min: 4, max: Infinity },
|
|
10
14
|
h: { initial: 6, min: 2, max: Infinity, grow: true },
|
|
11
15
|
// Hosts a nested sub-form per tab (each tab's own fields + layout) — too
|
package/dist/runtime/components/form/fields/2026-07-13/com.shwfed.form.field.dynamic/prompt.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
**何时用我**:字段集合在运行时才由服务端**字段定义接口**决定(不同租户 / 单据类型的表单项不同),无法在设计时逐个固定。本块自身不渲染,是个**生成器**:拉取字段定义,`transform` 成一批普通字段渲染出来。
|
|
2
|
+
|
|
3
|
+
**配置配方**
|
|
4
|
+
|
|
5
|
+
- `request`(可选):返回 `HttpRequest` 的表达式,拉取字段定义。**作用域是冻结的**——不能引用 `form` / `now` 等表单运行时变量(字段集合必须与用户输入无关,引用会在类型检查期直接报错)。
|
|
6
|
+
- `transform`:把响应 `json`(已解析,未取到为 `none`,用 `json.orValue([])` 解包)映射成一个**字段描述符列表**,每项:
|
|
7
|
+
- `binding`(必填,dot-prop 路径)、`label`(纯文本)、`kind`(`text` / `number` / `date` / `daterange` / `dropdown` 之一,封闭词表)。
|
|
8
|
+
- 可选 `required`(布尔)、`default`(初值,仅当该路径当前为空时写入)、`options`(**仅 `dropdown` 用**,`[{ value, label }]`;choice 类缺 `options` 会被丢弃)。
|
|
9
|
+
- `kind` 到具体渲染字段的映射由本块钉死,`data_type_code → kind` 的判断写在你的 `transform` 里,不在别处。
|
|
10
|
+
|
|
11
|
+
**坑**
|
|
12
|
+
|
|
13
|
+
- `transform` 的静态保证只有「返回 `list<dyn>`」;每项运行时按描述符解码,坏项会被丢弃(loud)。字段名、类型、下拉选项等业务映射不确定时**向用户询问**。
|
|
14
|
+
- `request` / `transform` 里写 `form.xxx` 会类型检查失败——这是有意的冻结约束。
|
package/dist/runtime/components/form/fields/2026-07-13/com.shwfed.form.field.dynamic/schema.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare const compatibilityDate: "2026-07-13";
|
|
|
5
5
|
export declare const metadata: {
|
|
6
6
|
readonly name: "动态字段";
|
|
7
7
|
readonly icon: "fluent:form-multiple-20-regular";
|
|
8
|
+
readonly description: "运行时按接口返回动态生成一组字段";
|
|
8
9
|
readonly w: {
|
|
9
10
|
readonly initial: 12;
|
|
10
11
|
readonly min: 4;
|
package/dist/runtime/components/form/fields/2026-07-13/com.shwfed.form.field.dynamic/schema.js
CHANGED
|
@@ -8,6 +8,7 @@ export const compatibilityDate = "2026-07-13";
|
|
|
8
8
|
export const metadata = {
|
|
9
9
|
name: "\u52A8\u6001\u5B57\u6BB5",
|
|
10
10
|
icon: "fluent:form-multiple-20-regular",
|
|
11
|
+
description: "\u8FD0\u884C\u65F6\u6309\u63A5\u53E3\u8FD4\u56DE\u52A8\u6001\u751F\u6210\u4E00\u7EC4\u5B57\u6BB5",
|
|
11
12
|
w: { initial: 12, min: 4, max: Infinity },
|
|
12
13
|
h: { initial: 4, min: 2, max: Infinity, grow: true }
|
|
13
14
|
// Hosts a runtime-generated sub-form; its config (two expressions + two
|
|
@@ -199,7 +199,7 @@ async function copyFields(ids) {
|
|
|
199
199
|
if (p) placements[id] = p;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
if (!await writeClip("form", items, placements)) {
|
|
202
|
+
if (!await writeClip("form", { items, placements })) {
|
|
203
203
|
toast.error("\u590D\u5236\u5931\u8D25");
|
|
204
204
|
return;
|
|
205
205
|
}
|
|
@@ -208,7 +208,7 @@ async function copyFields(ids) {
|
|
|
208
208
|
async function pasteFields(target) {
|
|
209
209
|
const payload = await readClip();
|
|
210
210
|
if (!payload || payload.surface !== "form") return;
|
|
211
|
-
const { items, placements } = reidFragment(payload
|
|
211
|
+
const { items, placements } = reidFragment(payload);
|
|
212
212
|
const pasted = items;
|
|
213
213
|
if (pasted.length === 0) return;
|
|
214
214
|
const place = placements;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Environment } from '../../../vendor/cel-js/lib/index.js';
|
|
2
2
|
import type { AgenticTool } from '../../../utils/ai/index.js';
|
|
3
3
|
type AnyRecord = Record<string, any>;
|
|
4
|
-
export interface
|
|
4
|
+
export interface FormFieldToolDeps {
|
|
5
5
|
readonly read: () => AnyRecord | undefined;
|
|
6
6
|
readonly write: (next: AnyRecord) => void;
|
|
7
7
|
readonly configure: (env: Environment) => void;
|
|
8
8
|
readonly genUuid: () => string;
|
|
9
9
|
}
|
|
10
|
-
export declare function
|
|
10
|
+
export declare function createFormFieldTools(deps: FormFieldToolDeps): AgenticTool[];
|
|
11
11
|
export {};
|