@shwfed/config 2.11.6 → 2.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/schema.d.ts +13 -7
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/schema.d.ts +13 -7
- package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/schema.d.ts +13 -7
- package/dist/runtime/components/actions/items/2026-05-21/com.shwfed.actions.item.markdown/schema.d.ts +13 -7
- package/dist/runtime/components/actions/schema.d.ts +82 -52
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.actions/schema.d.ts +5 -5
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/schema.d.ts +13 -7
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +68 -68
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +68 -68
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +68 -68
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +68 -68
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +96 -72
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/schema.d.ts +26 -14
- package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.xy/schema.d.ts +39 -21
- package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/schema.d.ts +13 -7
- package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.card/schema.d.ts +26 -14
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/schema.d.ts +44 -26
- package/dist/runtime/components/config/schema.d.ts +13 -7
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.d.ts +26 -14
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.d.ts +57 -33
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.d.ts +52 -28
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/schema.d.ts +18 -12
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/schema.d.ts +65 -35
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.d.vue.ts +18 -16
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.vue +22 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.vue.d.ts +18 -16
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/runtime.vue +5 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/schema.d.ts +79 -42
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/schema.js +12 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +20 -18
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue +22 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +20 -18
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/runtime.vue +5 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/schema.d.ts +92 -49
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/schema.js +12 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.d.vue.ts +18 -16
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue +22 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue.d.ts +18 -16
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/runtime.vue +5 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.d.ts +79 -42
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.js +12 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +20 -18
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue +22 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +20 -18
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/runtime.vue +5 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/schema.d.ts +92 -49
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/schema.js +12 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/schema.d.ts +39 -21
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/schema.d.ts +39 -21
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.d.vue.ts +28 -28
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts +28 -28
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.d.ts +57 -33
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.d.vue.ts +6 -6
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.vue.d.ts +6 -6
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/schema.d.ts +65 -35
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/schema.d.ts +65 -35
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/schema.d.ts +104 -56
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/schema.d.ts +65 -35
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/schema.d.ts +91 -49
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/schema.d.ts +91 -49
- package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/schema.d.ts +39 -21
- package/dist/runtime/components/form/fields/2026-05-20/com.shwfed.form.field.collapsible/schema.d.ts +13 -7
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/config.d.vue.ts +18 -16
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/config.vue +22 -0
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/config.vue.d.ts +18 -16
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/runtime.vue +5 -0
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/schema.d.ts +79 -42
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/schema.js +12 -0
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.d.vue.ts +20 -18
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.vue +22 -0
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.vue.d.ts +20 -18
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/runtime.vue +5 -0
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/schema.d.ts +92 -49
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/schema.js +12 -0
- package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/schema.d.ts +65 -35
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/schema.d.ts +169 -91
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/schema.d.ts +169 -91
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +30 -30
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-06-09/com.shwfed.form.field.upload/schema.d.ts +78 -42
- package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.multi/schema.d.ts +130 -70
- package/dist/runtime/components/form/fields/2026-06-14/com.shwfed.form.field.combobox.single/schema.d.ts +130 -70
- package/dist/runtime/components/form/fields/2026-06-20/com.shwfed.form.field.tabs/schema.d.ts +26 -14
- package/dist/runtime/components/form/utils/ai-field-tools.d.ts +11 -0
- package/dist/runtime/components/form/utils/ai-field-tools.js +282 -0
- package/dist/runtime/components/form/utils/common.d.ts +26 -14
- package/dist/runtime/components/form/utils/resolve.d.ts +15 -0
- package/dist/runtime/components/form/utils/resolve.js +13 -0
- package/dist/runtime/components/operations/2026-06-09/com.shwfed.operation.alert/schema.d.ts +13 -7
- package/dist/runtime/components/operations/2026-06-11/com.shwfed.operation.http.request.json/schema.d.ts +13 -7
- package/dist/runtime/components/operations/2026-06-15/com.shwfed.operation.http.download/schema.d.ts +13 -7
- package/dist/runtime/components/table/ai-generate.d.vue.ts +16 -0
- package/dist/runtime/components/table/ai-generate.system.d.ts +1 -0
- package/dist/runtime/components/table/ai-generate.system.js +10 -0
- package/dist/runtime/components/table/ai-generate.system.md +101 -0
- package/dist/runtime/components/table/ai-generate.vue +173 -0
- package/dist/runtime/components/table/ai-generate.vue.d.ts +16 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.d.ts +18 -12
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.d.ts +26 -14
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.d.ts +26 -14
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.d.ts +39 -21
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.d.ts +26 -14
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.d.ts +26 -14
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/schema.d.ts +26 -14
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.d.ts +26 -14
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/schema.d.ts +91 -49
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.d.ts +44 -26
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/schema.d.ts +52 -28
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.d.ts +52 -28
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.d.ts +44 -26
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/schema.d.ts +52 -28
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/schema.d.ts +91 -49
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/schema.d.ts +91 -49
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/schema.d.ts +52 -28
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/schema.d.ts +91 -49
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/schema.d.ts +156 -84
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/schema.d.ts +156 -84
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/schema.d.ts +156 -84
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/schema.d.ts +156 -84
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +65 -35
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/schema.d.ts +65 -35
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.d.ts +156 -84
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.d.ts +156 -84
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +65 -35
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/schema.d.ts +65 -35
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/schema.d.ts +117 -63
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/schema.d.ts +117 -63
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +52 -28
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +8 -8
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +8 -8
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/schema.d.ts +52 -28
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/config.vue +33 -0
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/runtime.vue +5 -0
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.d.ts +71 -40
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.js +6 -1
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/config.vue +33 -0
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/runtime.vue +5 -0
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/schema.d.ts +79 -42
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/schema.js +6 -1
- package/dist/runtime/components/table/config.d.vue.ts +3 -3
- package/dist/runtime/components/table/config.vue +37 -3
- package/dist/runtime/components/table/config.vue.d.ts +3 -3
- package/dist/runtime/components/table/schema.d.ts +182 -134
- package/dist/runtime/components/table/utils/ai-tools.d.ts +11 -0
- package/dist/runtime/components/table/utils/ai-tools.js +507 -0
- package/dist/runtime/components/table/utils/resolve.d.ts +23 -0
- package/dist/runtime/components/table/utils/resolve.js +3 -0
- package/dist/runtime/components/table/utils/shared.d.ts +66 -35
- package/dist/runtime/components/table/utils/shared.js +26 -17
- package/dist/runtime/components/ui/alert-dialog/AlertDialogCancel.vue +1 -1
- package/dist/runtime/components/ui/chat/ChatMessage.d.vue.ts +7 -0
- package/dist/runtime/components/ui/chat/ChatMessage.vue +35 -0
- package/dist/runtime/components/ui/chat/ChatMessage.vue.d.ts +7 -0
- package/dist/runtime/components/ui/chat/ChatMessagePart.d.vue.ts +7 -0
- package/dist/runtime/components/ui/chat/ChatMessagePart.vue +43 -0
- package/dist/runtime/components/ui/chat/ChatMessagePart.vue.d.ts +7 -0
- package/dist/runtime/components/ui/chat/ChatMessages.d.vue.ts +18 -0
- package/dist/runtime/components/ui/chat/ChatMessages.vue +63 -0
- package/dist/runtime/components/ui/chat/ChatMessages.vue.d.ts +18 -0
- package/dist/runtime/components/ui/chat/ChatPrompt.d.vue.ts +34 -0
- package/dist/runtime/components/ui/chat/ChatPrompt.vue +53 -0
- package/dist/runtime/components/ui/chat/ChatPrompt.vue.d.ts +34 -0
- package/dist/runtime/components/ui/chat/ChatPromptSubmit.d.vue.ts +18 -0
- package/dist/runtime/components/ui/chat/ChatPromptSubmit.vue +41 -0
- package/dist/runtime/components/ui/chat/ChatPromptSubmit.vue.d.ts +18 -0
- package/dist/runtime/components/ui/chat/ChatReasoning.d.vue.ts +7 -0
- package/dist/runtime/components/ui/chat/ChatReasoning.vue +33 -0
- package/dist/runtime/components/ui/chat/ChatReasoning.vue.d.ts +7 -0
- package/dist/runtime/components/ui/chat/ChatToolCall.d.vue.ts +10 -0
- package/dist/runtime/components/ui/chat/ChatToolCall.vue +92 -0
- package/dist/runtime/components/ui/chat/ChatToolCall.vue.d.ts +10 -0
- package/dist/runtime/components/ui/chat/index.d.ts +9 -0
- package/dist/runtime/components/ui/chat/index.js +8 -0
- package/dist/runtime/components/ui/stream-markdown/StreamMarkdown.d.vue.ts +15 -0
- package/dist/runtime/components/ui/stream-markdown/StreamMarkdown.vue +22 -0
- package/dist/runtime/components/ui/stream-markdown/StreamMarkdown.vue.d.ts +15 -0
- package/dist/runtime/components/ui/stream-markdown/index.d.ts +1 -0
- package/dist/runtime/components/ui/stream-markdown/index.js +1 -0
- package/dist/runtime/share/coerce-from-string.d.ts +62 -0
- package/dist/runtime/share/coerce-from-string.js +154 -0
- package/dist/runtime/share/disabled-date.d.ts +34 -0
- package/dist/runtime/share/disabled-date.js +13 -0
- package/dist/runtime/share/locale.d.ts +13 -7
- package/dist/runtime/share/locale.js +27 -5
- package/dist/runtime/share/use-persisted-chat.d.ts +30 -0
- package/dist/runtime/share/use-persisted-chat.js +34 -0
- package/dist/runtime/utils/ai/index.d.ts +10 -0
- package/dist/runtime/utils/ai/index.js +145 -32
- package/dist/runtime/utils/ai/parts.d.ts +30 -0
- package/dist/runtime/utils/ai/parts.js +9 -0
- package/dist/runtime/utils/disabled-date.d.ts +26 -0
- package/dist/runtime/utils/disabled-date.js +21 -0
- package/package.json +2 -1
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { computed, inject, onBeforeUnmount, ref, watch } from "vue";
|
|
3
3
|
import { Icon } from "@iconify/vue";
|
|
4
4
|
import { format as formatDate } from "date-fns";
|
|
5
|
+
import { DISABLE_DATE_EDITOR_RESULT, INPUT_DATE_VARS } from "../../../../../share/disabled-date";
|
|
5
6
|
import { ExpressionEditor } from "../../../../ui/expression-editor";
|
|
6
7
|
import { Separator } from "../../../../ui/separator";
|
|
7
8
|
import { Switch } from "../../../../ui/switch";
|
|
@@ -201,6 +202,17 @@ const readonlyModel = computed({
|
|
|
201
202
|
}
|
|
202
203
|
}
|
|
203
204
|
});
|
|
205
|
+
const disabledDateModel = computed({
|
|
206
|
+
get: () => value.value.disabledDate ?? "",
|
|
207
|
+
set: (v) => {
|
|
208
|
+
if (v === "") {
|
|
209
|
+
const { disabledDate: _drop, ...rest } = value.value;
|
|
210
|
+
value.value = rest;
|
|
211
|
+
} else {
|
|
212
|
+
value.value = { ...value.value, disabledDate: v };
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
});
|
|
204
216
|
const derivedModel = computed({
|
|
205
217
|
get: () => value.value.derived,
|
|
206
218
|
set: (v) => {
|
|
@@ -461,6 +473,27 @@ const derivedModel = computed({
|
|
|
461
473
|
:extra-vars="ROW_VARS"
|
|
462
474
|
/>
|
|
463
475
|
</Field>
|
|
476
|
+
<Field orientation="vertical">
|
|
477
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
478
|
+
<template
|
|
479
|
+
v-if="fieldDescription('disabledDate')"
|
|
480
|
+
#tooltip
|
|
481
|
+
>
|
|
482
|
+
<Markdown
|
|
483
|
+
:source="fieldDescription('disabledDate')"
|
|
484
|
+
block
|
|
485
|
+
class="prose prose-sm prose-zinc"
|
|
486
|
+
/>
|
|
487
|
+
</template>
|
|
488
|
+
{{ fieldTitle("disabledDate") }}
|
|
489
|
+
</FieldLabel>
|
|
490
|
+
<ExpressionEditor
|
|
491
|
+
v-model="disabledDateModel"
|
|
492
|
+
placeholder="例:input.format('i') == '6' || input.format('i') == '7'"
|
|
493
|
+
:result-type="[...DISABLE_DATE_EDITOR_RESULT]"
|
|
494
|
+
:extra-vars="{ ...ROW_VARS, ...INPUT_DATE_VARS }"
|
|
495
|
+
/>
|
|
496
|
+
</Field>
|
|
464
497
|
<Field
|
|
465
498
|
orientation="vertical"
|
|
466
499
|
class="col-span-2"
|
|
@@ -5,6 +5,7 @@ import { useI18n } from "vue-i18n";
|
|
|
5
5
|
import { format as formatDate } from "date-fns";
|
|
6
6
|
import { cel as $cel } from "../../../../../utils/cel";
|
|
7
7
|
import { celScope, injectCELContext } from "../../../../../utils/cel-context";
|
|
8
|
+
import { makeDisabledDatePredicate } from "../../../../../utils/disabled-date";
|
|
8
9
|
import { useFormReadonly } from "../../../../form/utils/readonly";
|
|
9
10
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
10
11
|
import { DATE_PICKER_DEFAULT_FORMATS, DatePicker } from "../../../../ui/date-picker";
|
|
@@ -33,6 +34,9 @@ function evalBool(expression, label) {
|
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
const isDisabled = computed(() => evalBool(props.column.disabled, "disabled"));
|
|
37
|
+
const disabledDate = computed(
|
|
38
|
+
() => makeDisabledDatePredicate(props.column.disabledDate, (input) => Effect.runSync($cel(props.column.disabledDate, celScope(celContext, { input }))))
|
|
39
|
+
);
|
|
36
40
|
const formReadonly = useFormReadonly();
|
|
37
41
|
const isReadonly = computed(
|
|
38
42
|
() => props.column.readonly != null ? evalBool(props.column.readonly, "readonly") : formReadonly.value
|
|
@@ -124,6 +128,7 @@ const model = computed({
|
|
|
124
128
|
:value-format="column.valueFormat"
|
|
125
129
|
:placeholder="placeholderText"
|
|
126
130
|
:disabled="isDisabled"
|
|
131
|
+
:disabled-date="disabledDate"
|
|
127
132
|
:shortcuts="shortcuts"
|
|
128
133
|
>
|
|
129
134
|
<!-- `mr-[-0.45rem]` mirrors the clear addon's `has-[>button]:mr-[-0.45rem]`
|
|
@@ -10,28 +10,41 @@ export declare const metadata: {
|
|
|
10
10
|
};
|
|
11
11
|
export declare function presetSchema(configure: (env: Environment) => void): Schema.Struct<{
|
|
12
12
|
id: Schema.refine<string, typeof Schema.String>;
|
|
13
|
-
label: Schema.
|
|
14
|
-
locale:
|
|
15
|
-
message:
|
|
16
|
-
}
|
|
17
|
-
locale:
|
|
18
|
-
message:
|
|
19
|
-
}
|
|
13
|
+
label: Schema.suspend<readonly [{
|
|
14
|
+
readonly locale: "zh";
|
|
15
|
+
readonly message: string;
|
|
16
|
+
}, ...{
|
|
17
|
+
readonly locale: "en" | "ja" | "ko";
|
|
18
|
+
readonly message: string;
|
|
19
|
+
}[]], string | readonly [{
|
|
20
|
+
readonly locale: "zh";
|
|
21
|
+
readonly message: string;
|
|
22
|
+
}, ...{
|
|
23
|
+
readonly locale: "en" | "ja" | "ko";
|
|
24
|
+
readonly message: string;
|
|
25
|
+
}[]], never>;
|
|
20
26
|
value: Schema.Schema<string, string, never>;
|
|
21
27
|
}>;
|
|
22
28
|
export declare function schema(configure: (env: Environment) => void): Schema.Struct<{
|
|
23
29
|
align: Schema.optionalWith<Schema.Literal<["left", "center", "right"]>, {
|
|
24
30
|
default: () => "left";
|
|
25
31
|
}>;
|
|
26
|
-
placeholder: Schema.optional<Schema.
|
|
27
|
-
locale:
|
|
28
|
-
message:
|
|
29
|
-
}
|
|
30
|
-
locale:
|
|
31
|
-
message:
|
|
32
|
-
}
|
|
32
|
+
placeholder: Schema.optional<Schema.suspend<readonly [{
|
|
33
|
+
readonly locale: "zh";
|
|
34
|
+
readonly message: string;
|
|
35
|
+
}, ...{
|
|
36
|
+
readonly locale: "en" | "ja" | "ko";
|
|
37
|
+
readonly message: string;
|
|
38
|
+
}[]], string | readonly [{
|
|
39
|
+
readonly locale: "zh";
|
|
40
|
+
readonly message: string;
|
|
41
|
+
}, ...{
|
|
42
|
+
readonly locale: "en" | "ja" | "ko";
|
|
43
|
+
readonly message: string;
|
|
44
|
+
}[]], never>>;
|
|
33
45
|
disabled: Schema.optional<Schema.Schema<string, string, never>>;
|
|
34
46
|
readonly: Schema.optional<Schema.Schema<string, string, never>>;
|
|
47
|
+
disabledDate: Schema.optional<Schema.Schema<string, string, never>>;
|
|
35
48
|
derived: Schema.optional<Schema.Struct<{
|
|
36
49
|
mode: Schema.Literal<["formula", "prefill"]>;
|
|
37
50
|
expression: Schema.Schema<string, string, never>;
|
|
@@ -40,13 +53,19 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
40
53
|
valueFormat: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
41
54
|
presets: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
42
55
|
id: Schema.refine<string, typeof Schema.String>;
|
|
43
|
-
label: Schema.
|
|
44
|
-
locale:
|
|
45
|
-
message:
|
|
46
|
-
}
|
|
47
|
-
locale:
|
|
48
|
-
message:
|
|
49
|
-
}
|
|
56
|
+
label: Schema.suspend<readonly [{
|
|
57
|
+
readonly locale: "zh";
|
|
58
|
+
readonly message: string;
|
|
59
|
+
}, ...{
|
|
60
|
+
readonly locale: "en" | "ja" | "ko";
|
|
61
|
+
readonly message: string;
|
|
62
|
+
}[]], string | readonly [{
|
|
63
|
+
readonly locale: "zh";
|
|
64
|
+
readonly message: string;
|
|
65
|
+
}, ...{
|
|
66
|
+
readonly locale: "en" | "ja" | "ko";
|
|
67
|
+
readonly message: string;
|
|
68
|
+
}[]], never>;
|
|
50
69
|
value: Schema.Schema<string, string, never>;
|
|
51
70
|
}>>>;
|
|
52
71
|
addon: Schema.optional<Schema.Struct<{
|
|
@@ -115,7 +134,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
115
134
|
readonly hideTitle?: boolean | undefined;
|
|
116
135
|
}, import("../../../../actions/schema.js").RegistryItemValue | {
|
|
117
136
|
readonly id: string;
|
|
118
|
-
readonly title: readonly [{
|
|
137
|
+
readonly title: string | readonly [{
|
|
119
138
|
readonly locale: "zh";
|
|
120
139
|
readonly message: string;
|
|
121
140
|
}, ...{
|
|
@@ -126,7 +145,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
126
145
|
readonly disabled?: string | undefined;
|
|
127
146
|
readonly icon?: string | undefined;
|
|
128
147
|
readonly hidden?: string | undefined;
|
|
129
|
-
readonly tooltip?: readonly [{
|
|
148
|
+
readonly tooltip?: string | readonly [{
|
|
130
149
|
readonly locale: "zh";
|
|
131
150
|
readonly message: string;
|
|
132
151
|
}, ...{
|
|
@@ -138,7 +157,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
138
157
|
readonly hideTitle?: boolean | undefined;
|
|
139
158
|
} | {
|
|
140
159
|
readonly id: string;
|
|
141
|
-
readonly title: readonly [{
|
|
160
|
+
readonly title: string | readonly [{
|
|
142
161
|
readonly locale: "zh";
|
|
143
162
|
readonly message: string;
|
|
144
163
|
}, ...{
|
|
@@ -147,7 +166,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
147
166
|
}[]];
|
|
148
167
|
readonly items: readonly (import("../../../../actions/schema.js").RegistrySubItemValue | {
|
|
149
168
|
readonly id: string;
|
|
150
|
-
readonly title: readonly [{
|
|
169
|
+
readonly title: string | readonly [{
|
|
151
170
|
readonly locale: "zh";
|
|
152
171
|
readonly message: string;
|
|
153
172
|
}, ...{
|
|
@@ -157,7 +176,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
157
176
|
readonly disabled?: string | undefined;
|
|
158
177
|
readonly icon?: string | undefined;
|
|
159
178
|
readonly hidden?: string | undefined;
|
|
160
|
-
readonly tooltip?: readonly [{
|
|
179
|
+
readonly tooltip?: string | readonly [{
|
|
161
180
|
readonly locale: "zh";
|
|
162
181
|
readonly message: string;
|
|
163
182
|
}, ...{
|
|
@@ -181,25 +200,37 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
181
200
|
}>;
|
|
182
201
|
style: Schema.optional<typeof Schema.String>;
|
|
183
202
|
}>>;
|
|
184
|
-
title: Schema.
|
|
185
|
-
locale:
|
|
186
|
-
message:
|
|
187
|
-
}
|
|
188
|
-
locale:
|
|
189
|
-
message:
|
|
190
|
-
}
|
|
203
|
+
title: Schema.suspend<readonly [{
|
|
204
|
+
readonly locale: "zh";
|
|
205
|
+
readonly message: string;
|
|
206
|
+
}, ...{
|
|
207
|
+
readonly locale: "en" | "ja" | "ko";
|
|
208
|
+
readonly message: string;
|
|
209
|
+
}[]], string | readonly [{
|
|
210
|
+
readonly locale: "zh";
|
|
211
|
+
readonly message: string;
|
|
212
|
+
}, ...{
|
|
213
|
+
readonly locale: "en" | "ja" | "ko";
|
|
214
|
+
readonly message: string;
|
|
215
|
+
}[]], never>;
|
|
191
216
|
binding: Schema.refine<string, typeof Schema.String>;
|
|
192
217
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
193
218
|
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
194
219
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
195
220
|
grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
196
|
-
tooltip: Schema.optional<Schema.
|
|
197
|
-
locale:
|
|
198
|
-
message:
|
|
199
|
-
}
|
|
200
|
-
locale:
|
|
201
|
-
message:
|
|
202
|
-
}
|
|
221
|
+
tooltip: Schema.optional<Schema.suspend<readonly [{
|
|
222
|
+
readonly locale: "zh";
|
|
223
|
+
readonly message: string;
|
|
224
|
+
}, ...{
|
|
225
|
+
readonly locale: "en" | "ja" | "ko";
|
|
226
|
+
readonly message: string;
|
|
227
|
+
}[]], string | readonly [{
|
|
228
|
+
readonly locale: "zh";
|
|
229
|
+
readonly message: string;
|
|
230
|
+
}, ...{
|
|
231
|
+
readonly locale: "en" | "ja" | "ko";
|
|
232
|
+
readonly message: string;
|
|
233
|
+
}[]], never>>;
|
|
203
234
|
hidden: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
204
235
|
id: Schema.refine<string, typeof Schema.String>;
|
|
205
236
|
groupId: Schema.optional<typeof Schema.UUID>;
|
|
@@ -2,7 +2,7 @@ import { Schema } from "effect";
|
|
|
2
2
|
import { getProperty } from "dot-prop";
|
|
3
3
|
import { Locale } from "../../../../../share/locale.js";
|
|
4
4
|
import { ActionSchemaFields } from "../../../../actions/schema.js";
|
|
5
|
-
import { Align, CelRowAccess, derivedRowField, editableColumnFields, editableHeader, registerRowVariablesIfAbsent } from "../../../utils/shared.js";
|
|
5
|
+
import { Align, CelDateDisable, CelRowAccess, derivedRowField, editableColumnFields, editableHeader, registerRowVariablesIfAbsent } from "../../../utils/shared.js";
|
|
6
6
|
export const type = "com.shwfed.table.column.date-input";
|
|
7
7
|
export const compatibilityDate = "2026-06-17";
|
|
8
8
|
export const metadata = {
|
|
@@ -42,6 +42,7 @@ export function presetSchema(configure) {
|
|
|
42
42
|
}
|
|
43
43
|
export function schema(configure) {
|
|
44
44
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
45
|
+
const DisabledDate = CelDateDisable(configure);
|
|
45
46
|
const Preset = presetSchema(configure);
|
|
46
47
|
return Schema.Struct({
|
|
47
48
|
type: Schema.Literal(type),
|
|
@@ -60,6 +61,10 @@ export function schema(configure) {
|
|
|
60
61
|
title: "\u53EA\u8BFB\u6761\u4EF6",
|
|
61
62
|
description: "\u8FD4\u56DE `true` \u65F6\u4EC5\u4EE5\u7EAF\u6587\u672C\u5C55\u793A\u5F53\u524D\u503C"
|
|
62
63
|
})),
|
|
64
|
+
disabledDate: Schema.optional(DisabledDate.annotations({
|
|
65
|
+
title: "\u7981\u7528\u65E5\u671F",
|
|
66
|
+
description: "\u9010\u4E2A\u65E5\u671F\u5224\u5B9A\u662F\u5426\u53EF\u9009\uFF1B\u53D8\u91CF `input` \u4E3A\u5019\u9009\u65E5\u671F\uFF0C\u540C\u65F6\u53EF\u8BFB\u53D6 `row`/`index`\u3002\u8FD4\u56DE `true` \u65F6\u7981\u7528\u8BE5\u65E5\u671F\uFF0C\u8FD4\u56DE `false`\u3001\u7A7A\u503C\u6216\u4E0D\u586B\u65F6\u53EF\u9009"
|
|
67
|
+
})),
|
|
63
68
|
derived: derivedRowField(configure, "string"),
|
|
64
69
|
format: Schema.optional(Schema.String.pipe(Schema.minLength(1)).annotations({
|
|
65
70
|
title: "\u5C55\u793A\u683C\u5F0F",
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { computed } from "vue";
|
|
3
3
|
import { Icon } from "@iconify/vue";
|
|
4
4
|
import { format as formatDate } from "date-fns";
|
|
5
|
+
import { DISABLE_DATE_EDITOR_RESULT, INPUT_DATE_VARS } from "../../../../../share/disabled-date";
|
|
5
6
|
import { ExpressionEditor } from "../../../../ui/expression-editor";
|
|
6
7
|
import { Separator } from "../../../../ui/separator";
|
|
7
8
|
import { Switch } from "../../../../ui/switch";
|
|
@@ -201,6 +202,17 @@ const readonlyModel = computed({
|
|
|
201
202
|
}
|
|
202
203
|
}
|
|
203
204
|
});
|
|
205
|
+
const disabledDateModel = computed({
|
|
206
|
+
get: () => value.value.disabledDate ?? "",
|
|
207
|
+
set: (v) => {
|
|
208
|
+
if (v === "") {
|
|
209
|
+
const { disabledDate: _drop, ...rest } = value.value;
|
|
210
|
+
value.value = rest;
|
|
211
|
+
} else {
|
|
212
|
+
value.value = { ...value.value, disabledDate: v };
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
});
|
|
204
216
|
const derivedModel = computed({
|
|
205
217
|
get: () => value.value.derived,
|
|
206
218
|
set: (v) => {
|
|
@@ -557,6 +569,27 @@ const derivedModel = computed({
|
|
|
557
569
|
:extra-vars="ROW_VARS"
|
|
558
570
|
/>
|
|
559
571
|
</Field>
|
|
572
|
+
<Field orientation="vertical">
|
|
573
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
574
|
+
<template
|
|
575
|
+
v-if="fieldDescription('disabledDate')"
|
|
576
|
+
#tooltip
|
|
577
|
+
>
|
|
578
|
+
<Markdown
|
|
579
|
+
:source="fieldDescription('disabledDate')"
|
|
580
|
+
block
|
|
581
|
+
class="prose prose-sm prose-zinc"
|
|
582
|
+
/>
|
|
583
|
+
</template>
|
|
584
|
+
{{ fieldTitle("disabledDate") }}
|
|
585
|
+
</FieldLabel>
|
|
586
|
+
<ExpressionEditor
|
|
587
|
+
v-model="disabledDateModel"
|
|
588
|
+
placeholder="例:input.format('i') == '6' || input.format('i') == '7'"
|
|
589
|
+
:result-type="[...DISABLE_DATE_EDITOR_RESULT]"
|
|
590
|
+
:extra-vars="{ ...ROW_VARS, ...INPUT_DATE_VARS }"
|
|
591
|
+
/>
|
|
592
|
+
</Field>
|
|
560
593
|
<Field
|
|
561
594
|
orientation="vertical"
|
|
562
595
|
class="col-span-2"
|
|
@@ -5,6 +5,7 @@ import { useI18n } from "vue-i18n";
|
|
|
5
5
|
import { format as formatDate } from "date-fns";
|
|
6
6
|
import { cel as $cel } from "../../../../../utils/cel";
|
|
7
7
|
import { celScope, injectCELContext } from "../../../../../utils/cel-context";
|
|
8
|
+
import { makeDisabledDatePredicate } from "../../../../../utils/disabled-date";
|
|
8
9
|
import { useFormReadonly } from "../../../../form/utils/readonly";
|
|
9
10
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
10
11
|
import { DATE_RANGE_PICKER_DEFAULT_FORMATS, DateRangePicker } from "../../../../ui/date-range-picker";
|
|
@@ -34,6 +35,9 @@ function evalBool(expression, label) {
|
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
const isDisabled = computed(() => evalBool(props.column.disabled, "disabled"));
|
|
38
|
+
const disabledDate = computed(
|
|
39
|
+
() => makeDisabledDatePredicate(props.column.disabledDate, (input) => Effect.runSync($cel(props.column.disabledDate, celScope(celContext, { input }))))
|
|
40
|
+
);
|
|
37
41
|
const formReadonly = useFormReadonly();
|
|
38
42
|
const isReadonly = computed(
|
|
39
43
|
() => props.column.readonly != null ? evalBool(props.column.readonly, "readonly") : formReadonly.value
|
|
@@ -143,6 +147,7 @@ const readonlyText = computed(() => {
|
|
|
143
147
|
:range-separator-icon="column.rangeSeparatorIcon"
|
|
144
148
|
:number-of-months="column.numberOfMonths"
|
|
145
149
|
:disabled="isDisabled"
|
|
150
|
+
:disabled-date="disabledDate"
|
|
146
151
|
:shortcuts="shortcuts"
|
|
147
152
|
/>
|
|
148
153
|
</div>
|
|
@@ -10,13 +10,19 @@ export declare const metadata: {
|
|
|
10
10
|
};
|
|
11
11
|
export declare function presetSchema(configure: (env: Environment) => void): Schema.Struct<{
|
|
12
12
|
id: Schema.refine<string, typeof Schema.String>;
|
|
13
|
-
label: Schema.
|
|
14
|
-
locale:
|
|
15
|
-
message:
|
|
16
|
-
}
|
|
17
|
-
locale:
|
|
18
|
-
message:
|
|
19
|
-
}
|
|
13
|
+
label: Schema.suspend<readonly [{
|
|
14
|
+
readonly locale: "zh";
|
|
15
|
+
readonly message: string;
|
|
16
|
+
}, ...{
|
|
17
|
+
readonly locale: "en" | "ja" | "ko";
|
|
18
|
+
readonly message: string;
|
|
19
|
+
}[]], string | readonly [{
|
|
20
|
+
readonly locale: "zh";
|
|
21
|
+
readonly message: string;
|
|
22
|
+
}, ...{
|
|
23
|
+
readonly locale: "en" | "ja" | "ko";
|
|
24
|
+
readonly message: string;
|
|
25
|
+
}[]], never>;
|
|
20
26
|
start: Schema.Schema<string, string, never>;
|
|
21
27
|
end: Schema.Schema<string, string, never>;
|
|
22
28
|
}>;
|
|
@@ -25,22 +31,35 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
25
31
|
default: () => "left";
|
|
26
32
|
}>;
|
|
27
33
|
binding: Schema.Union<[Schema.filter<typeof Schema.String>, Schema.filter<Schema.Tuple2<Schema.filter<typeof Schema.String>, Schema.filter<typeof Schema.String>>>]>;
|
|
28
|
-
startPlaceholder: Schema.optional<Schema.
|
|
29
|
-
locale:
|
|
30
|
-
message:
|
|
31
|
-
}
|
|
32
|
-
locale:
|
|
33
|
-
message:
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
34
|
+
startPlaceholder: Schema.optional<Schema.suspend<readonly [{
|
|
35
|
+
readonly locale: "zh";
|
|
36
|
+
readonly message: string;
|
|
37
|
+
}, ...{
|
|
38
|
+
readonly locale: "en" | "ja" | "ko";
|
|
39
|
+
readonly message: string;
|
|
40
|
+
}[]], string | readonly [{
|
|
41
|
+
readonly locale: "zh";
|
|
42
|
+
readonly message: string;
|
|
43
|
+
}, ...{
|
|
44
|
+
readonly locale: "en" | "ja" | "ko";
|
|
45
|
+
readonly message: string;
|
|
46
|
+
}[]], never>>;
|
|
47
|
+
endPlaceholder: Schema.optional<Schema.suspend<readonly [{
|
|
48
|
+
readonly locale: "zh";
|
|
49
|
+
readonly message: string;
|
|
50
|
+
}, ...{
|
|
51
|
+
readonly locale: "en" | "ja" | "ko";
|
|
52
|
+
readonly message: string;
|
|
53
|
+
}[]], string | readonly [{
|
|
54
|
+
readonly locale: "zh";
|
|
55
|
+
readonly message: string;
|
|
56
|
+
}, ...{
|
|
57
|
+
readonly locale: "en" | "ja" | "ko";
|
|
58
|
+
readonly message: string;
|
|
59
|
+
}[]], never>>;
|
|
42
60
|
disabled: Schema.optional<Schema.Schema<string, string, never>>;
|
|
43
61
|
readonly: Schema.optional<Schema.Schema<string, string, never>>;
|
|
62
|
+
disabledDate: Schema.optional<Schema.Schema<string, string, never>>;
|
|
44
63
|
derived: Schema.optional<Schema.Struct<{
|
|
45
64
|
mode: Schema.Literal<["formula", "prefill"]>;
|
|
46
65
|
expression: Schema.Schema<string, string, never>;
|
|
@@ -51,34 +70,52 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
51
70
|
numberOfMonths: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
52
71
|
presets: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
53
72
|
id: Schema.refine<string, typeof Schema.String>;
|
|
54
|
-
label: Schema.
|
|
55
|
-
locale:
|
|
56
|
-
message:
|
|
57
|
-
}
|
|
58
|
-
locale:
|
|
59
|
-
message:
|
|
60
|
-
}
|
|
73
|
+
label: Schema.suspend<readonly [{
|
|
74
|
+
readonly locale: "zh";
|
|
75
|
+
readonly message: string;
|
|
76
|
+
}, ...{
|
|
77
|
+
readonly locale: "en" | "ja" | "ko";
|
|
78
|
+
readonly message: string;
|
|
79
|
+
}[]], string | readonly [{
|
|
80
|
+
readonly locale: "zh";
|
|
81
|
+
readonly message: string;
|
|
82
|
+
}, ...{
|
|
83
|
+
readonly locale: "en" | "ja" | "ko";
|
|
84
|
+
readonly message: string;
|
|
85
|
+
}[]], never>;
|
|
61
86
|
start: Schema.Schema<string, string, never>;
|
|
62
87
|
end: Schema.Schema<string, string, never>;
|
|
63
88
|
}>>>;
|
|
64
|
-
title: Schema.
|
|
65
|
-
locale:
|
|
66
|
-
message:
|
|
67
|
-
}
|
|
68
|
-
locale:
|
|
69
|
-
message:
|
|
70
|
-
}
|
|
89
|
+
title: Schema.suspend<readonly [{
|
|
90
|
+
readonly locale: "zh";
|
|
91
|
+
readonly message: string;
|
|
92
|
+
}, ...{
|
|
93
|
+
readonly locale: "en" | "ja" | "ko";
|
|
94
|
+
readonly message: string;
|
|
95
|
+
}[]], string | readonly [{
|
|
96
|
+
readonly locale: "zh";
|
|
97
|
+
readonly message: string;
|
|
98
|
+
}, ...{
|
|
99
|
+
readonly locale: "en" | "ja" | "ko";
|
|
100
|
+
readonly message: string;
|
|
101
|
+
}[]], never>;
|
|
71
102
|
enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
72
103
|
sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
73
104
|
size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
|
|
74
105
|
grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
75
|
-
tooltip: Schema.optional<Schema.
|
|
76
|
-
locale:
|
|
77
|
-
message:
|
|
78
|
-
}
|
|
79
|
-
locale:
|
|
80
|
-
message:
|
|
81
|
-
}
|
|
106
|
+
tooltip: Schema.optional<Schema.suspend<readonly [{
|
|
107
|
+
readonly locale: "zh";
|
|
108
|
+
readonly message: string;
|
|
109
|
+
}, ...{
|
|
110
|
+
readonly locale: "en" | "ja" | "ko";
|
|
111
|
+
readonly message: string;
|
|
112
|
+
}[]], string | readonly [{
|
|
113
|
+
readonly locale: "zh";
|
|
114
|
+
readonly message: string;
|
|
115
|
+
}, ...{
|
|
116
|
+
readonly locale: "en" | "ja" | "ko";
|
|
117
|
+
readonly message: string;
|
|
118
|
+
}[]], never>>;
|
|
82
119
|
hidden: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
83
120
|
id: Schema.refine<string, typeof Schema.String>;
|
|
84
121
|
groupId: Schema.optional<typeof Schema.UUID>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
import { getProperty } from "dot-prop";
|
|
3
3
|
import { Locale } from "../../../../../share/locale.js";
|
|
4
|
-
import { Align, CelRowAccess, derivedRowField, editableColumnFields, editableHeader } from "../../../utils/shared.js";
|
|
4
|
+
import { Align, CelDateDisable, CelRowAccess, derivedRowField, editableColumnFields, editableHeader } from "../../../utils/shared.js";
|
|
5
5
|
export const type = "com.shwfed.table.column.date-range-input";
|
|
6
6
|
export const compatibilityDate = "2026-06-22";
|
|
7
7
|
export const metadata = {
|
|
@@ -40,6 +40,7 @@ export function presetSchema(configure) {
|
|
|
40
40
|
}
|
|
41
41
|
export function schema(configure) {
|
|
42
42
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
43
|
+
const DisabledDate = CelDateDisable(configure);
|
|
43
44
|
const Preset = presetSchema(configure);
|
|
44
45
|
return Schema.Struct({
|
|
45
46
|
type: Schema.Literal(type),
|
|
@@ -64,6 +65,10 @@ export function schema(configure) {
|
|
|
64
65
|
title: "\u53EA\u8BFB\u6761\u4EF6",
|
|
65
66
|
description: "\u8FD4\u56DE `true` \u65F6\u4EC5\u4EE5\u7EAF\u6587\u672C\u5C55\u793A\u5F53\u524D\u503C"
|
|
66
67
|
})),
|
|
68
|
+
disabledDate: Schema.optional(DisabledDate.annotations({
|
|
69
|
+
title: "\u7981\u7528\u65E5\u671F",
|
|
70
|
+
description: "\u9010\u4E2A\u65E5\u671F\u5224\u5B9A\u662F\u5426\u53EF\u9009\uFF1B\u53D8\u91CF `input` \u4E3A\u5019\u9009\u65E5\u671F\uFF0C\u540C\u65F6\u53EF\u8BFB\u53D6 `row`/`index`\u3002\u8FD4\u56DE `true` \u65F6\u7981\u7528\u8BE5\u65E5\u671F\uFF0C\u8FD4\u56DE `false`\u3001\u7A7A\u503C\u6216\u4E0D\u586B\u65F6\u53EF\u9009"
|
|
71
|
+
})),
|
|
67
72
|
derived: derivedRowField(configure, "dyn"),
|
|
68
73
|
format: Schema.optional(Schema.String.pipe(Schema.minLength(1)).annotations({
|
|
69
74
|
title: "\u5C55\u793A\u683C\u5F0F",
|
|
@@ -9,11 +9,11 @@ type __VLS_ModelProps = {
|
|
|
9
9
|
modelValue: AnyRecord;
|
|
10
10
|
};
|
|
11
11
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
12
|
-
declare var
|
|
12
|
+
declare var __VLS_234: {}, __VLS_236: {};
|
|
13
13
|
type __VLS_Slots = {} & {
|
|
14
|
-
'general-grid-extra'?: (props: typeof
|
|
14
|
+
'general-grid-extra'?: (props: typeof __VLS_234) => any;
|
|
15
15
|
} & {
|
|
16
|
-
'general-extra'?: (props: typeof
|
|
16
|
+
'general-extra'?: (props: typeof __VLS_236) => any;
|
|
17
17
|
};
|
|
18
18
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
19
|
"update:modelValue": (value: AnyRecord) => any;
|
|
@@ -33,6 +33,7 @@ import {
|
|
|
33
33
|
InputGroupNumberField
|
|
34
34
|
} from "../ui/input-group";
|
|
35
35
|
import ActionsConfigEditor from "../actions/config.vue";
|
|
36
|
+
import TableAiGenerate from "./ai-generate.vue";
|
|
36
37
|
import ShwfedFormConfig from "../form/config.vue";
|
|
37
38
|
import { defaultFormConfig } from "../form/schema";
|
|
38
39
|
import { Environment } from "../../vendor/cel-js/lib/index";
|
|
@@ -248,7 +249,7 @@ function writeGeneralPatch(patch) {
|
|
|
248
249
|
};
|
|
249
250
|
}
|
|
250
251
|
const editingGeneralConfig = computed(() => readGeneral());
|
|
251
|
-
const selected = ref({ kind: "general" });
|
|
252
|
+
const selected = ref(props.hideDataSource ? { kind: "general" } : { kind: "ai" });
|
|
252
253
|
const fieldErrors = ref({});
|
|
253
254
|
watch(
|
|
254
255
|
config,
|
|
@@ -267,6 +268,7 @@ watch(
|
|
|
267
268
|
},
|
|
268
269
|
{ immediate: true, deep: true }
|
|
269
270
|
);
|
|
271
|
+
const selectedAi = computed(() => selected.value.kind === "ai");
|
|
270
272
|
const selectedGeneral = computed(() => selected.value.kind === "general");
|
|
271
273
|
const selectedActions = computed(() => selected.value.kind === "actions");
|
|
272
274
|
const selectedBottomActions = computed(() => selected.value.kind === "bottomActions");
|
|
@@ -523,6 +525,7 @@ function deleteColumn(columnId) {
|
|
|
523
525
|
}
|
|
524
526
|
function resolveSelection() {
|
|
525
527
|
const s = selected.value;
|
|
528
|
+
if (s.kind === "ai") return;
|
|
526
529
|
if (s.kind === "general") return;
|
|
527
530
|
if (s.kind === "actions") return;
|
|
528
531
|
if (s.kind === "bottomActions") return;
|
|
@@ -531,6 +534,9 @@ function resolveSelection() {
|
|
|
531
534
|
if (s.kind === "column" && findColumn(s.id)) return;
|
|
532
535
|
selected.value = { kind: "general" };
|
|
533
536
|
}
|
|
537
|
+
function selectAi() {
|
|
538
|
+
selected.value = { kind: "ai" };
|
|
539
|
+
}
|
|
534
540
|
function selectGeneral() {
|
|
535
541
|
selected.value = { kind: "general" };
|
|
536
542
|
}
|
|
@@ -1072,6 +1078,21 @@ const tableQueryValue = computed({
|
|
|
1072
1078
|
>
|
|
1073
1079
|
<ScrollArea class="flex-1">
|
|
1074
1080
|
<div class="flex flex-col gap-1">
|
|
1081
|
+
<div
|
|
1082
|
+
v-if="!hideDataSource"
|
|
1083
|
+
class="row general-row pl-2"
|
|
1084
|
+
:class="[
|
|
1085
|
+
selectedAi ? 'bg-[color-mix(in_srgb,var(--primary)_10%,white)] text-(--primary)' : 'text-zinc-600 hover:bg-zinc-50'
|
|
1086
|
+
]"
|
|
1087
|
+
@click.stop="selectAi()"
|
|
1088
|
+
>
|
|
1089
|
+
<Icon
|
|
1090
|
+
icon="fluent:sparkle-20-regular"
|
|
1091
|
+
class="size-4 shrink-0"
|
|
1092
|
+
/>
|
|
1093
|
+
<span class="flex-1 truncate">AI 生成</span>
|
|
1094
|
+
</div>
|
|
1095
|
+
|
|
1075
1096
|
<div
|
|
1076
1097
|
class="row general-row pl-2"
|
|
1077
1098
|
:class="[
|
|
@@ -1279,8 +1300,21 @@ const tableQueryValue = computed({
|
|
|
1279
1300
|
</div>
|
|
1280
1301
|
</div>
|
|
1281
1302
|
|
|
1282
|
-
<div class="flex flex-1 flex-col">
|
|
1283
|
-
|
|
1303
|
+
<div class="flex min-h-0 min-w-0 flex-1 flex-col">
|
|
1304
|
+
<!-- The AI chat owns the full right pane and manages its own scroll /
|
|
1305
|
+
composer, so it replaces (not nests inside) the section ScrollArea.
|
|
1306
|
+
`min-w-0` lets this flex item shrink below its content's intrinsic
|
|
1307
|
+
width — without it a long tool-call `<pre>` forces the pane (and the
|
|
1308
|
+
whole editor dialog) wider than the viewport. -->
|
|
1309
|
+
<TableAiGenerate
|
|
1310
|
+
v-if="selectedAi"
|
|
1311
|
+
v-model="config"
|
|
1312
|
+
:configure="configure"
|
|
1313
|
+
/>
|
|
1314
|
+
<ScrollArea
|
|
1315
|
+
v-else
|
|
1316
|
+
class="flex-1"
|
|
1317
|
+
>
|
|
1284
1318
|
<div
|
|
1285
1319
|
v-if="selectedGeneral"
|
|
1286
1320
|
class="space-y-5"
|