@shwfed/config 3.0.7 → 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/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 +58 -58
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +58 -58
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +58 -58
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +58 -58
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +35 -29
- 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/use-editor.d.ts +1 -0
- package/dist/runtime/components/config/use-editor.js +18 -0
- 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/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 +10 -10
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +10 -10
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +10 -10
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +10 -10
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +10 -10
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +10 -10
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +10 -10
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +10 -10
- 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 +10 -10
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +10 -10
- 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 +10 -10
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +10 -10
- 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 +1 -33
- 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 +58 -58
- 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/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/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
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import rawTable from "../../table/ai-l1.md?raw";
|
|
2
|
+
import rawForm from "../../form/ai-l1.md?raw";
|
|
3
|
+
import rawActions from "../../actions/ai-l1.md?raw";
|
|
4
|
+
import rawPageSlot from "../ai-page-slot.l1.md?raw";
|
|
5
|
+
const manuals = {
|
|
6
|
+
"table": rawTable,
|
|
7
|
+
"form": rawForm,
|
|
8
|
+
"actions": rawActions,
|
|
9
|
+
"page-slot": rawPageSlot
|
|
10
|
+
};
|
|
11
|
+
if (import.meta.hot) {
|
|
12
|
+
import.meta.hot.accept("../../table/ai-l1.md?raw", (m) => void (typeof m?.default === "string" && (manuals.table = m.default)));
|
|
13
|
+
import.meta.hot.accept("../../form/ai-l1.md?raw", (m) => void (typeof m?.default === "string" && (manuals.form = m.default)));
|
|
14
|
+
import.meta.hot.accept("../../actions/ai-l1.md?raw", (m) => void (typeof m?.default === "string" && (manuals.actions = m.default)));
|
|
15
|
+
import.meta.hot.accept("../ai-page-slot.l1.md?raw", (m) => void (typeof m?.default === "string" && (manuals["page-slot"] = m.default)));
|
|
16
|
+
}
|
|
17
|
+
export function getHostManual(kind) {
|
|
18
|
+
return manuals[kind];
|
|
19
|
+
}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
export type LinkageKind = 'operation' | 'step' | 'scope';
|
|
2
|
+
/**
|
|
3
|
+
* Why the linkage is bad. `missing` — the uuid is defined nowhere in the tree.
|
|
4
|
+
* `unreachable` — it is defined, but not on the reference's own chain of
|
|
5
|
+
* enclosing nodes (operation targets only; see the header).
|
|
6
|
+
*/
|
|
7
|
+
export type LinkageFault = 'missing' | 'unreachable';
|
|
2
8
|
export type DanglingLinkage = Readonly<{
|
|
3
9
|
kind: LinkageKind;
|
|
4
|
-
|
|
10
|
+
fault: LinkageFault;
|
|
11
|
+
/** The referenced uuid. */
|
|
5
12
|
id: string;
|
|
6
13
|
/**
|
|
7
14
|
* Property path from the config root to the offending reference
|
|
@@ -19,11 +26,13 @@ export type DanglingLinkage = Readonly<{
|
|
|
19
26
|
*/
|
|
20
27
|
export declare function definedIds(node: unknown): Set<string>;
|
|
21
28
|
/**
|
|
22
|
-
* Find every linkage in `config`
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
29
|
+
* Find every linkage in `config` that a save must refuse: one whose uuid is
|
|
30
|
+
* defined nowhere (`missing`), or an operation target that is defined but not on
|
|
31
|
+
* the trigger's own chain of enclosing nodes (`unreachable`). `PAGE_TARGET_ID`
|
|
32
|
+
* (the singleton page target sentinel) is always valid — it names the outermost
|
|
33
|
+
* page, which carries no stored id and encloses everything. Each result carries
|
|
34
|
+
* the property path from the config root to the offending reference, so the
|
|
35
|
+
* caller can render a field-level breadcrumb (see `describePath`).
|
|
27
36
|
*/
|
|
28
37
|
export declare function findDanglingLinkages(config: unknown): DanglingLinkage[];
|
|
29
38
|
export declare const LINKAGE_KIND_LABEL: Record<LinkageKind, string>;
|
|
@@ -22,9 +22,9 @@ export function definedIds(node) {
|
|
|
22
22
|
collectDefinedIds(node, out);
|
|
23
23
|
return out;
|
|
24
24
|
}
|
|
25
|
-
function collectRefs(node, path, into) {
|
|
25
|
+
function collectRefs(node, path, enclosing, into) {
|
|
26
26
|
if (Array.isArray(node)) {
|
|
27
|
-
node.forEach((v, i) => collectRefs(v, [...path, i], into));
|
|
27
|
+
node.forEach((v, i) => collectRefs(v, [...path, i], enclosing, into));
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
if (!isObject(node)) {
|
|
@@ -35,22 +35,38 @@ function collectRefs(node, path, into) {
|
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
37
|
if (typeof node.target === "string" && typeof node.operation === "string" && UUID_RE.test(node.target)) {
|
|
38
|
-
into.push({ kind: "operation", id: node.target, path: [...path, "target"] });
|
|
38
|
+
into.push({ kind: "operation", id: node.target, path: [...path, "target"], enclosing });
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
const inner = typeof node.id === "string" && UUID_RE.test(node.id) ? [...enclosing, node.id] : enclosing;
|
|
41
|
+
for (const [k, v] of Object.entries(node)) collectRefs(v, [...path, k], inner, into);
|
|
41
42
|
}
|
|
42
43
|
export function findDanglingLinkages(config) {
|
|
43
44
|
const defined = /* @__PURE__ */ new Set();
|
|
44
45
|
collectDefinedIds(config, defined);
|
|
45
46
|
const refs = [];
|
|
46
|
-
collectRefs(config, [], refs);
|
|
47
|
-
|
|
47
|
+
collectRefs(config, [], [], refs);
|
|
48
|
+
const out = [];
|
|
49
|
+
for (const ref of refs) {
|
|
50
|
+
if (ref.id === PAGE_TARGET_ID) continue;
|
|
51
|
+
if (!defined.has(ref.id)) {
|
|
52
|
+
out.push({ kind: ref.kind, fault: "missing", id: ref.id, path: ref.path });
|
|
53
|
+
continue;
|
|
54
|
+
}
|
|
55
|
+
if (ref.enclosing && !ref.enclosing.includes(ref.id)) {
|
|
56
|
+
out.push({ kind: ref.kind, fault: "unreachable", id: ref.id, path: ref.path });
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return out;
|
|
48
60
|
}
|
|
49
61
|
export const LINKAGE_KIND_LABEL = {
|
|
50
62
|
operation: "\u89E6\u53D1\u64CD\u4F5C",
|
|
51
63
|
step: "\u6B65\u9AA4\u5F15\u7528",
|
|
52
64
|
scope: "\u8DE8\u5C42\u4F5C\u7528\u57DF\u5F15\u7528"
|
|
53
65
|
};
|
|
66
|
+
const LINKAGE_FAULT_TEXT = {
|
|
67
|
+
missing: "\u5F15\u7528\u4E86\u5DF2\u5931\u6548\u7684\u8D44\u6E90\uFF08\u6765\u6E90\u4E0D\u5B58\u5728\u4E8E\u5F53\u524D\u914D\u7F6E\u4E2D\uFF09",
|
|
68
|
+
unreachable: "\u6307\u5411\u4E86\u5F53\u524D\u4F4D\u7F6E\u65E0\u6CD5\u8BBF\u95EE\u7684\u76EE\u6807\uFF08\u8BE5\u76EE\u6807\u5B58\u5728\uFF0C\u4F46\u4E0D\u662F\u5B83\u7684\u4E0A\u5C42\u7EC4\u4EF6\uFF0C\u901A\u5E38\u662F\u590D\u5236\u540E\u672A\u91CD\u65B0\u6307\u5411\uFF09"
|
|
69
|
+
};
|
|
54
70
|
export function formatDanglingLinkages(dangling, rootData, blockLabelAt) {
|
|
55
71
|
const first = dangling[0];
|
|
56
72
|
if (!first) return "";
|
|
@@ -58,5 +74,5 @@ export function formatDanglingLinkages(dangling, rootData, blockLabelAt) {
|
|
|
58
74
|
const segs = describePath(first.path, rootData, blockLabelAt);
|
|
59
75
|
const where = segs.length > 0 ? `\u300C${segs.join(" \u203A ")}\u300D\u7684${kind}` : kind;
|
|
60
76
|
const suffix = dangling.length > 1 ? `\uFF08\u8FD8\u6709 ${dangling.length - 1} \u4E2A\uFF09` : "";
|
|
61
|
-
return `${where}\
|
|
77
|
+
return `${where}${LINKAGE_FAULT_TEXT[first.fault]}\uFF0C\u8BF7\u4FEE\u6B63\u540E\u518D\u4FDD\u5B58${suffix}`;
|
|
62
78
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Component } from 'vue';
|
|
2
2
|
import { Schema } from 'effect';
|
|
3
3
|
import type { Environment } from '../../../vendor/cel-js/lib/index.js';
|
|
4
|
+
import { type RegistryEdge } from '../../../share/define-registry.js';
|
|
4
5
|
type AnySchema = Schema.Schema<any, any, never>;
|
|
5
6
|
/**
|
|
6
7
|
* Container blocks (e.g. tabs) receive a recursive `blockRef` second arg so
|
|
@@ -32,6 +33,12 @@ export type BlockSizeRange = Readonly<{
|
|
|
32
33
|
export type BlockMetadata = Readonly<{
|
|
33
34
|
name: string;
|
|
34
35
|
icon: string;
|
|
36
|
+
/**
|
|
37
|
+
* 一句话说明该块的适用场景;AI 在 `list_available_block_types` 工具里看到。
|
|
38
|
+
* **可选** —— 缺失时工具返回里省略该字段(人类 picker / 旧调用点不受影响)。
|
|
39
|
+
* 镜像 `ColumnMetadata.description`,把非列宿主的「一句话何时用我」补齐。
|
|
40
|
+
*/
|
|
41
|
+
description?: string;
|
|
35
42
|
w: BlockSizeRange;
|
|
36
43
|
h: BlockSizeRange;
|
|
37
44
|
/**
|
|
@@ -65,6 +72,10 @@ export type BlockEntry = Readonly<{
|
|
|
65
72
|
defaultBody: () => Record<string, unknown>;
|
|
66
73
|
config: Component;
|
|
67
74
|
runtime: Component;
|
|
75
|
+
/** Recursion edges the AI scope cursor walks (empty for leaf blocks). */
|
|
76
|
+
edges: ReadonlyArray<RegistryEdge>;
|
|
77
|
+
/** The block's `prompt.md` (L2 fragment) raw text, when authored. */
|
|
78
|
+
prompt?: string;
|
|
68
79
|
}>;
|
|
69
80
|
export declare const BLOCKS: ReadonlyArray<BlockEntry>;
|
|
70
81
|
/**
|
|
@@ -74,4 +85,12 @@ export declare const BLOCKS: ReadonlyArray<BlockEntry>;
|
|
|
74
85
|
export declare function blockRef(configure: (env: Environment) => void): AnySchema;
|
|
75
86
|
export declare function allBlockSchemas(configure: (env: Environment) => void): ReadonlyArray<AnySchema>;
|
|
76
87
|
export declare function findBlock(type: string, compatibilityDate: string): BlockEntry | undefined;
|
|
88
|
+
export declare function latestBlockByType(): ReadonlyArray<BlockEntry>;
|
|
89
|
+
/**
|
|
90
|
+
* AI 工具可见的块集合:按 `type` 取最新 `compatibilityDate`。镜像
|
|
91
|
+
* `activeColumns()` / `activeFields()`;块目前没有 deprecation 机制(无
|
|
92
|
+
* `migrateFrom` / 废弃标记),所以「最新版本」即活跃集,无第二层过滤。人类
|
|
93
|
+
* picker 走 `BLOCKS`(`pickerEntries` 已自行 dedupe)。
|
|
94
|
+
*/
|
|
95
|
+
export declare function activeBlocks(): ReadonlyArray<BlockEntry>;
|
|
77
96
|
export {};
|
|
@@ -13,12 +13,22 @@ const runtimeModules = import.meta.glob(
|
|
|
13
13
|
"../blocks/*/*/runtime.vue",
|
|
14
14
|
{ eager: true, import: "default", exhaustive: true }
|
|
15
15
|
);
|
|
16
|
+
const promptModules = import.meta.glob(
|
|
17
|
+
"../blocks/*/*/prompt.md",
|
|
18
|
+
{ eager: true, query: "?raw", import: "default", exhaustive: true }
|
|
19
|
+
);
|
|
16
20
|
const registry = defineRegistry({
|
|
17
21
|
hostName: "shwfed-config",
|
|
18
22
|
dirSegment: "blocks",
|
|
19
23
|
schemaModules,
|
|
20
24
|
configModules,
|
|
21
|
-
runtimeModules
|
|
25
|
+
runtimeModules,
|
|
26
|
+
promptModules,
|
|
27
|
+
// Build each edge-declaring block's schema with inert args (no-op configure,
|
|
28
|
+
// a stand-in `blockRef`) purely to verify each declared edge `key` is a real
|
|
29
|
+
// top-level field. Only invoked for blocks that declare `edges`.
|
|
30
|
+
buildSchemaForEdges: (mod) => mod.schema(() => {
|
|
31
|
+
}, Schema.Unknown)
|
|
22
32
|
});
|
|
23
33
|
export const BLOCKS = registry.ENTRIES.map((e) => ({
|
|
24
34
|
type: e.type,
|
|
@@ -27,7 +37,9 @@ export const BLOCKS = registry.ENTRIES.map((e) => ({
|
|
|
27
37
|
schema: e.module.schema,
|
|
28
38
|
defaultBody: e.module.defaultBody,
|
|
29
39
|
config: e.config,
|
|
30
|
-
runtime: e.runtime
|
|
40
|
+
runtime: e.runtime,
|
|
41
|
+
edges: e.module.edges ?? [],
|
|
42
|
+
...e.prompt !== void 0 ? { prompt: e.prompt } : {}
|
|
31
43
|
}));
|
|
32
44
|
const unionCache = /* @__PURE__ */ new WeakMap();
|
|
33
45
|
function getOrBuildUnion(configure) {
|
|
@@ -61,4 +73,15 @@ export function allBlockSchemas(configure) {
|
|
|
61
73
|
export function findBlock(type, compatibilityDate) {
|
|
62
74
|
return BLOCKS.find((b) => b.type === type && b.compatibilityDate === compatibilityDate);
|
|
63
75
|
}
|
|
76
|
+
export function latestBlockByType() {
|
|
77
|
+
const byType = /* @__PURE__ */ new Map();
|
|
78
|
+
for (const b of BLOCKS) {
|
|
79
|
+
const prev = byType.get(b.type);
|
|
80
|
+
if (!prev || b.compatibilityDate > prev.compatibilityDate) byType.set(b.type, b);
|
|
81
|
+
}
|
|
82
|
+
return [...byType.values()];
|
|
83
|
+
}
|
|
84
|
+
export function activeBlocks() {
|
|
85
|
+
return latestBlockByType();
|
|
86
|
+
}
|
|
64
87
|
registerFindBlock(findBlock);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
你正在配置一个「表单块」内嵌的 Form。表单 = 一组字段 + 网格布局。发现式推进:`list_available_field_types` → `describe_specific_field_type` 看清字段类型与契约,再增改;配完 `leave_node` 返回页面。
|
|
2
|
+
|
|
3
|
+
## 字段
|
|
4
|
+
|
|
5
|
+
- 用 `list_available_field_types`(一句话目录)→ `describe_specific_field_type`(完整字段契约 + 默认值 + 默认尺寸 `w`/`h` + 可能的 `guide`)选型。
|
|
6
|
+
- `insert_field` 新增(**不要**传 `id` / `compatibilityDate`,harness 分配)。字段创建后处于「未放置」态,不会渲染,直到 `place_field` 放入布局。
|
|
7
|
+
- `list_fields` 查看现有字段与放置,`delete_fields` 删除。
|
|
8
|
+
|
|
9
|
+
## 绑定与取值
|
|
10
|
+
|
|
11
|
+
- 多数字段有 `binding`:字段值写入表单数据的键;同一表单里 `binding` 应唯一。
|
|
12
|
+
- 字段间引用用 CEL 变量 `form`(如 `form.startDate`)——先 `describe_form_settings` 查看该表单可用的 CEL 变量表与函数目录,再书写。
|
|
13
|
+
- 需要根据其它字段动态显示 / 计算时,用字段自带的可见性 / 默认值 / 派生表达式(见 `describe_specific_field_type` 的字段契约)。
|
|
14
|
+
|
|
15
|
+
## 布局
|
|
16
|
+
|
|
17
|
+
- `place_field` 用 `w.initial` / `h.initial`(来自 describe)作为放置尺寸的宽高;`min`/`max` 界定可调范围。
|
|
18
|
+
- `area` 为 `[[x1,y1],[x2,y2]]`(1 基网格线,右下不含)。放置不要重叠,harness 会拒绝重叠并让你重试;列数会自动生长以容纳放置。
|
|
19
|
+
|
|
20
|
+
## 校验
|
|
21
|
+
|
|
22
|
+
字段可带校验规则(必填、格式、范围等),随字段契约暴露。按业务需要设置必填与格式约束;不确定的规则**向用户确认**,不要臆造。
|
package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare const compatibilityDate: "2026-04-22";
|
|
|
5
5
|
export declare const metadata: {
|
|
6
6
|
readonly name: "Markdown";
|
|
7
7
|
readonly icon: "fluent:markdown-20-regular";
|
|
8
|
+
readonly description: "展示一段本地化 Markdown 文本(仅展示,不收集输入)";
|
|
8
9
|
readonly w: {
|
|
9
10
|
readonly initial: 8;
|
|
10
11
|
readonly min: 2;
|
package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.js
CHANGED
|
@@ -6,6 +6,7 @@ export const compatibilityDate = "2026-04-22";
|
|
|
6
6
|
export const metadata = {
|
|
7
7
|
name: "Markdown",
|
|
8
8
|
icon: "fluent:markdown-20-regular",
|
|
9
|
+
description: "\u5C55\u793A\u4E00\u6BB5\u672C\u5730\u5316 Markdown \u6587\u672C\uFF08\u4EC5\u5C55\u793A\uFF0C\u4E0D\u6536\u96C6\u8F93\u5165\uFF09",
|
|
9
10
|
w: { initial: 8, min: 2, max: Infinity },
|
|
10
11
|
h: { initial: 2, min: 2, max: Infinity, grow: true }
|
|
11
12
|
};
|
|
@@ -19,6 +19,7 @@ export const compatibilityDate = "2026-04-22";
|
|
|
19
19
|
export const metadata = {
|
|
20
20
|
name: "\u6587\u672C\u8F93\u5165",
|
|
21
21
|
icon: "fluent:text-field-20-regular",
|
|
22
|
+
description: "\u5355\u884C\u6587\u672C\u8F93\u5165",
|
|
22
23
|
w: { initial: 8, min: 4, max: Infinity },
|
|
23
24
|
h: { initial: 2, min: 2, max: 2 }
|
|
24
25
|
};
|
package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.js
CHANGED
|
@@ -7,6 +7,7 @@ export const compatibilityDate = "2026-04-22";
|
|
|
7
7
|
export const metadata = {
|
|
8
8
|
name: "\u591A\u884C\u6587\u672C\u8F93\u5165",
|
|
9
9
|
icon: "fluent:text-description-20-regular",
|
|
10
|
+
description: "\u591A\u884C\u6587\u672C\u8F93\u5165",
|
|
10
11
|
w: { initial: 8, min: 4, max: Infinity },
|
|
11
12
|
h: { initial: 3, min: 2, max: Infinity, grow: true }
|
|
12
13
|
};
|
package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/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.actions";
|
|
4
4
|
export declare const compatibilityDate: "2026-04-24";
|
|
5
|
+
export declare const edges: readonly [{
|
|
6
|
+
readonly key: "items";
|
|
7
|
+
readonly host: "actions";
|
|
8
|
+
readonly label: "操作按钮";
|
|
9
|
+
readonly self: true;
|
|
10
|
+
}];
|
|
5
11
|
export declare const metadata: {
|
|
6
12
|
readonly name: "操作";
|
|
7
13
|
readonly icon: "fluent:cursor-click-20-regular";
|
|
14
|
+
readonly description: "渲染一组操作按钮(仅展示,不参与表单提交)";
|
|
8
15
|
readonly w: {
|
|
9
16
|
readonly initial: 8;
|
|
10
17
|
readonly min: 4;
|
package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/schema.js
CHANGED
|
@@ -3,9 +3,13 @@ import { ActionSchemaFields } from "../../../../actions/schema.js";
|
|
|
3
3
|
import { commonFieldFields } from "../../../utils/common.js";
|
|
4
4
|
export const type = "com.shwfed.form.field.actions";
|
|
5
5
|
export const compatibilityDate = "2026-04-24";
|
|
6
|
+
export const edges = [
|
|
7
|
+
{ key: "items", host: "actions", label: "\u64CD\u4F5C\u6309\u94AE", self: true }
|
|
8
|
+
];
|
|
6
9
|
export const metadata = {
|
|
7
10
|
name: "\u64CD\u4F5C",
|
|
8
11
|
icon: "fluent:cursor-click-20-regular",
|
|
12
|
+
description: "\u6E32\u67D3\u4E00\u7EC4\u64CD\u4F5C\u6309\u94AE\uFF08\u4EC5\u5C55\u793A\uFF0C\u4E0D\u53C2\u4E0E\u8868\u5355\u63D0\u4EA4\uFF09",
|
|
9
13
|
w: { initial: 8, min: 4, max: Infinity },
|
|
10
14
|
h: { initial: 2, min: 2, max: Infinity },
|
|
11
15
|
// Drills into its own nested button layout editor — too complex for the
|
|
@@ -8,6 +8,7 @@ export const compatibilityDate = "2026-04-27";
|
|
|
8
8
|
export const metadata = {
|
|
9
9
|
name: "\u65E5\u671F",
|
|
10
10
|
icon: "fluent:calendar-ltr-20-regular",
|
|
11
|
+
description: "\u9009\u62E9\u4E00\u4E2A\u65E5\u671F",
|
|
11
12
|
w: { initial: 8, min: 4, max: Infinity },
|
|
12
13
|
h: { initial: 2, min: 2, max: 2 }
|
|
13
14
|
};
|
package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/schema.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare const compatibilityDate: "2026-04-27";
|
|
|
5
5
|
export declare const metadata: {
|
|
6
6
|
readonly name: "日期范围";
|
|
7
7
|
readonly icon: "fluent:calendar-arrow-right-20-regular";
|
|
8
|
+
readonly description: "选择一个日期区间";
|
|
8
9
|
readonly w: {
|
|
9
10
|
readonly initial: 10;
|
|
10
11
|
readonly min: 10;
|
package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/schema.js
CHANGED
|
@@ -18,6 +18,7 @@ const bindingSchema = Schema.Union(BindingPath, SplitBinding).annotations({
|
|
|
18
18
|
export const metadata = {
|
|
19
19
|
name: "\u65E5\u671F\u8303\u56F4",
|
|
20
20
|
icon: "fluent:calendar-arrow-right-20-regular",
|
|
21
|
+
description: "\u9009\u62E9\u4E00\u4E2A\u65E5\u671F\u533A\u95F4",
|
|
21
22
|
w: { initial: 10, min: 10, max: Infinity },
|
|
22
23
|
h: { initial: 2, min: 2, max: 2 }
|
|
23
24
|
};
|
package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.js
CHANGED
|
@@ -8,6 +8,7 @@ export const compatibilityDate = "2026-04-27";
|
|
|
8
8
|
export const metadata = {
|
|
9
9
|
name: "\u65E5\u671F\u65F6\u95F4",
|
|
10
10
|
icon: "fluent:calendar-clock-20-regular",
|
|
11
|
+
description: "\u9009\u62E9\u4E00\u4E2A\u65E5\u671F\u65F6\u95F4",
|
|
11
12
|
w: { initial: 8, min: 4, max: Infinity },
|
|
12
13
|
h: { initial: 2, min: 2, max: 2 }
|
|
13
14
|
};
|
package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/schema.js
CHANGED
|
@@ -18,6 +18,7 @@ const bindingSchema = Schema.Union(BindingPath, SplitBinding).annotations({
|
|
|
18
18
|
export const metadata = {
|
|
19
19
|
name: "\u65E5\u671F\u65F6\u95F4\u8303\u56F4",
|
|
20
20
|
icon: "fluent:calendar-clock-20-regular",
|
|
21
|
+
description: "\u9009\u62E9\u4E00\u4E2A\u65E5\u671F\u65F6\u95F4\u533A\u95F4",
|
|
21
22
|
w: { initial: 14, min: 14, max: Infinity },
|
|
22
23
|
h: { initial: 2, min: 2, max: 2 }
|
|
23
24
|
};
|
|
@@ -7,6 +7,7 @@ export const compatibilityDate = "2026-04-27";
|
|
|
7
7
|
export const metadata = {
|
|
8
8
|
name: "\u65F6\u95F4",
|
|
9
9
|
icon: "fluent:clock-20-regular",
|
|
10
|
+
description: "\u9009\u62E9\u4E00\u4E2A\u65F6\u95F4",
|
|
10
11
|
w: { initial: 8, min: 4, max: Infinity },
|
|
11
12
|
h: { initial: 2, min: 2, max: 2 }
|
|
12
13
|
};
|
package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/schema.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare const compatibilityDate: "2026-04-27";
|
|
|
5
5
|
export declare const metadata: {
|
|
6
6
|
readonly name: "时间范围";
|
|
7
7
|
readonly icon: "fluent:clock-arrow-download-20-regular";
|
|
8
|
+
readonly description: "选择一个时间区间";
|
|
8
9
|
readonly w: {
|
|
9
10
|
readonly initial: 14;
|
|
10
11
|
readonly min: 14;
|
package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/schema.js
CHANGED
|
@@ -17,6 +17,7 @@ const bindingSchema = Schema.Union(BindingPath, SplitBinding).annotations({
|
|
|
17
17
|
export const metadata = {
|
|
18
18
|
name: "\u65F6\u95F4\u8303\u56F4",
|
|
19
19
|
icon: "fluent:clock-arrow-download-20-regular",
|
|
20
|
+
description: "\u9009\u62E9\u4E00\u4E2A\u65F6\u95F4\u533A\u95F4",
|
|
20
21
|
w: { initial: 14, min: 14, max: Infinity },
|
|
21
22
|
h: { initial: 2, min: 2, max: 2 }
|
|
22
23
|
};
|
package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.js
CHANGED
|
@@ -19,6 +19,7 @@ export const compatibilityDate = "2026-04-28";
|
|
|
19
19
|
export const metadata = {
|
|
20
20
|
name: "\u6570\u503C\u8F93\u5165",
|
|
21
21
|
icon: "fluent:number-symbol-20-regular",
|
|
22
|
+
description: "\u6570\u503C\u8F93\u5165",
|
|
22
23
|
w: { initial: 8, min: 4, max: Infinity },
|
|
23
24
|
h: { initial: 2, min: 2, max: 2 }
|
|
24
25
|
};
|
package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/schema.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare const compatibilityDate: "2026-04-28";
|
|
|
5
5
|
export declare const metadata: {
|
|
6
6
|
readonly name: "数值范围";
|
|
7
7
|
readonly icon: "fluent:arrow-bidirectional-left-right-20-regular";
|
|
8
|
+
readonly description: "数值区间输入";
|
|
8
9
|
readonly w: {
|
|
9
10
|
readonly initial: 8;
|
|
10
11
|
readonly min: 4;
|
package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/schema.js
CHANGED
|
@@ -17,6 +17,7 @@ const bindingSchema = Schema.Union(BindingPath, SplitBinding).annotations({
|
|
|
17
17
|
export const metadata = {
|
|
18
18
|
name: "\u6570\u503C\u8303\u56F4",
|
|
19
19
|
icon: "fluent:arrow-bidirectional-left-right-20-regular",
|
|
20
|
+
description: "\u6570\u503C\u533A\u95F4\u8F93\u5165",
|
|
20
21
|
w: { initial: 8, min: 4, max: Infinity },
|
|
21
22
|
h: { initial: 2, min: 2, max: 2 }
|
|
22
23
|
};
|
package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/schema.js
CHANGED
|
@@ -7,6 +7,7 @@ export const compatibilityDate = "2026-04-28";
|
|
|
7
7
|
export const metadata = {
|
|
8
8
|
name: "\u5F00\u5173",
|
|
9
9
|
icon: "fluent:toggle-left-20-regular",
|
|
10
|
+
description: "\u5E03\u5C14\u5F00\u5173",
|
|
10
11
|
w: { initial: 4, min: 4, max: Infinity },
|
|
11
12
|
h: { initial: 2, min: 2, max: 2 }
|
|
12
13
|
};
|
|
@@ -5,6 +5,7 @@ export declare const compatibilityDate: "2026-05-13";
|
|
|
5
5
|
export declare const metadata: {
|
|
6
6
|
readonly name: "下拉单选(远程)";
|
|
7
7
|
readonly icon: "fluent:cloud-arrow-down-20-regular";
|
|
8
|
+
readonly description: "下拉单选,选项从远端接口按输入搜索加载";
|
|
8
9
|
readonly w: {
|
|
9
10
|
readonly initial: 8;
|
|
10
11
|
readonly min: 4;
|
|
@@ -7,6 +7,7 @@ export const compatibilityDate = "2026-05-13";
|
|
|
7
7
|
export const metadata = {
|
|
8
8
|
name: "\u4E0B\u62C9\u5355\u9009\uFF08\u8FDC\u7A0B\uFF09",
|
|
9
9
|
icon: "fluent:cloud-arrow-down-20-regular",
|
|
10
|
+
description: "\u4E0B\u62C9\u5355\u9009\uFF0C\u9009\u9879\u4ECE\u8FDC\u7AEF\u63A5\u53E3\u6309\u8F93\u5165\u641C\u7D22\u52A0\u8F7D",
|
|
10
11
|
w: { initial: 8, min: 4, max: Infinity },
|
|
11
12
|
h: { initial: 2, min: 2, max: 2 }
|
|
12
13
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
## 列表字段
|
|
2
|
+
|
|
3
|
+
可新增 / 删除 / 重排的同构子表单列表:`unit` 定义**每一行**的字段与布局(enter_node 进入后用表单字段工具族配置),`binding` 存整个列表(行对象数组)。
|
|
4
|
+
|
|
5
|
+
- unit 里字段的 CEL(默认值 / 隐藏 / 校验等)额外可用 `item`(当前行对象)与 `index`(行序号,0 起)——引用兄弟字段写 `item.<绑定路径>` 而不是 `form.<...>`。
|
|
6
|
+
- `locale`(列表项摘要)配置后行可折叠,折叠时渲染该行内 Markdown 摘要,插值同样可用 `item` / `index` / `form`。
|
|
7
|
+
- 关闭 `addable` 后新增交给外部按钮:用「写入表单状态」按钮向绑定路径追加,如 `form.<路径> + [{}]`。
|
|
8
|
+
- `min` / `max` 约束行数;`reorderable` 控制能否上下移动。
|
package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/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.list";
|
|
4
4
|
export declare const compatibilityDate: "2026-05-13";
|
|
5
|
+
export declare const edges: readonly [{
|
|
6
|
+
readonly key: "unit";
|
|
7
|
+
readonly host: "form";
|
|
8
|
+
readonly label: "列表项配置";
|
|
9
|
+
readonly celScope: "loop-item";
|
|
10
|
+
}];
|
|
5
11
|
export declare const metadata: {
|
|
6
12
|
readonly name: "列表";
|
|
7
13
|
readonly icon: "fluent:list-20-regular";
|
|
14
|
+
readonly description: "可新增 / 删除 / 重排的同构子表单列表";
|
|
8
15
|
readonly w: {
|
|
9
16
|
readonly initial: 12;
|
|
10
17
|
readonly min: 4;
|
|
@@ -5,9 +5,13 @@ import { FormUnit } from "../../../schema.js";
|
|
|
5
5
|
import { commonFieldFields } from "../../../utils/common.js";
|
|
6
6
|
export const type = "com.shwfed.form.field.list";
|
|
7
7
|
export const compatibilityDate = "2026-05-13";
|
|
8
|
+
export const edges = [
|
|
9
|
+
{ key: "unit", host: "form", label: "\u5217\u8868\u9879\u914D\u7F6E", celScope: "loop-item" }
|
|
10
|
+
];
|
|
8
11
|
export const metadata = {
|
|
9
12
|
name: "\u5217\u8868",
|
|
10
13
|
icon: "fluent:list-20-regular",
|
|
14
|
+
description: "\u53EF\u65B0\u589E / \u5220\u9664 / \u91CD\u6392\u7684\u540C\u6784\u5B50\u8868\u5355\u5217\u8868",
|
|
11
15
|
w: { initial: 12, min: 4, max: Infinity },
|
|
12
16
|
h: { initial: 6, min: 4, max: Infinity, grow: true },
|
|
13
17
|
// Hosts a nested sub-form (its own fields + layout) — too complex for the
|
|
@@ -5,6 +5,7 @@ export declare const compatibilityDate: "2026-05-17";
|
|
|
5
5
|
export declare const metadata: {
|
|
6
6
|
readonly name: "复选框组";
|
|
7
7
|
readonly icon: "fluent:checkbox-checked-20-regular";
|
|
8
|
+
readonly description: "从一组选项中多选(复选框组)";
|
|
8
9
|
readonly w: {
|
|
9
10
|
readonly initial: 8;
|
|
10
11
|
readonly min: 2;
|
|
@@ -7,6 +7,7 @@ export const compatibilityDate = "2026-05-17";
|
|
|
7
7
|
export const metadata = {
|
|
8
8
|
name: "\u590D\u9009\u6846\u7EC4",
|
|
9
9
|
icon: "fluent:checkbox-checked-20-regular",
|
|
10
|
+
description: "\u4ECE\u4E00\u7EC4\u9009\u9879\u4E2D\u591A\u9009\uFF08\u590D\u9009\u6846\u7EC4\uFF09",
|
|
10
11
|
w: { initial: 8, min: 2, max: Infinity },
|
|
11
12
|
h: { initial: 2, min: 2, max: 2 }
|
|
12
13
|
};
|
package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/schema.js
CHANGED
|
@@ -7,6 +7,7 @@ export const compatibilityDate = "2026-05-17";
|
|
|
7
7
|
export const metadata = {
|
|
8
8
|
name: "\u5355\u9009\u6846\u7EC4",
|
|
9
9
|
icon: "fluent:radio-button-20-regular",
|
|
10
|
+
description: "\u4ECE\u4E00\u7EC4\u9009\u9879\u4E2D\u5355\u9009\uFF08\u5355\u9009\u6846\u7EC4\uFF09",
|
|
10
11
|
w: { initial: 8, min: 2, max: Infinity },
|
|
11
12
|
h: { initial: 2, min: 2, max: 2 }
|
|
12
13
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
**何时用我**:在表单里嵌入一个**可本地编辑的表格**(明细行、子项列表),其行数据实时读写表单状态的某个路径。适合「主表单 + 一组可增删改的明细」。
|
|
2
|
+
|
|
3
|
+
**配置配方**
|
|
4
|
+
|
|
5
|
+
- `binding`:表格行数据在表单状态里的 dot-prop 路径(如 `rows`)。表格从 `form.<binding>` 读取行、本地增删改实时写回**同一路径**。留空则表格无数据、行编辑不持久化。
|
|
6
|
+
- `table`:内嵌表格的完整配置。**数据源自动绑定到 `form.<binding>`,无需单独配置 `dataSource`**——不要给它配 request / data,行数据来自表单本身。
|
|
7
|
+
- 其余就是一张普通表格:用列工具配列(文本 / 数值 / 日期 / 可编辑列等)。
|
|
8
|
+
|
|
9
|
+
**坑**
|
|
10
|
+
|
|
11
|
+
- 别给内嵌表配数据源;行数据来自 `form.<binding>`,配了 `dataSource` 会与表单的 `initial` 抢喋。
|
|
12
|
+
- 这是嵌套的表格宿主:`describe_specific_field_type` 里 `table` 字段是一整份 TableConfig,配列请像配普通表格那样思考(在当前实现中,字段内嵌表格的深层列配置尚需在编辑器画布内微调)。
|
package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/schema.d.ts
CHANGED
|
@@ -2,9 +2,15 @@ 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.table";
|
|
4
4
|
export declare const compatibilityDate: "2026-05-18";
|
|
5
|
+
export declare const edges: readonly [{
|
|
6
|
+
readonly key: "table";
|
|
7
|
+
readonly host: "table";
|
|
8
|
+
readonly label: "表格配置";
|
|
9
|
+
}];
|
|
5
10
|
export declare const metadata: {
|
|
6
11
|
readonly name: "表格";
|
|
7
12
|
readonly icon: "fluent:table-20-regular";
|
|
13
|
+
readonly description: "内嵌一个可本地编辑的表格,其数据写入绑定路径";
|
|
8
14
|
readonly w: {
|
|
9
15
|
readonly initial: 12;
|
|
10
16
|
readonly min: 6;
|