@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
package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.d.ts
CHANGED
|
@@ -28,41 +28,66 @@ export declare const HOUR_CYCLE_OPTIONS: ReadonlyArray<{
|
|
|
28
28
|
}>;
|
|
29
29
|
export declare function presetSchema(configure: (env: Environment) => void): Schema.Struct<{
|
|
30
30
|
id: Schema.refine<string, typeof Schema.String>;
|
|
31
|
-
label: Schema.
|
|
32
|
-
locale:
|
|
33
|
-
message:
|
|
34
|
-
}
|
|
35
|
-
locale:
|
|
36
|
-
message:
|
|
37
|
-
}
|
|
31
|
+
label: Schema.suspend<readonly [{
|
|
32
|
+
readonly locale: "zh";
|
|
33
|
+
readonly message: string;
|
|
34
|
+
}, ...{
|
|
35
|
+
readonly locale: "en" | "ja" | "ko";
|
|
36
|
+
readonly message: string;
|
|
37
|
+
}[]], string | readonly [{
|
|
38
|
+
readonly locale: "zh";
|
|
39
|
+
readonly message: string;
|
|
40
|
+
}, ...{
|
|
41
|
+
readonly locale: "en" | "ja" | "ko";
|
|
42
|
+
readonly message: string;
|
|
43
|
+
}[]], never>;
|
|
38
44
|
value: Schema.Schema<string, string, never>;
|
|
39
45
|
}>;
|
|
40
46
|
export declare function schema(configure: (env: Environment) => void): Schema.Struct<{
|
|
41
|
-
label: Schema.optional<Schema.
|
|
42
|
-
locale:
|
|
43
|
-
message:
|
|
44
|
-
}
|
|
45
|
-
locale:
|
|
46
|
-
message:
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
47
|
+
label: 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>>;
|
|
60
|
+
placeholder: Schema.optional<Schema.suspend<readonly [{
|
|
61
|
+
readonly locale: "zh";
|
|
62
|
+
readonly message: string;
|
|
63
|
+
}, ...{
|
|
64
|
+
readonly locale: "en" | "ja" | "ko";
|
|
65
|
+
readonly message: string;
|
|
66
|
+
}[]], string | readonly [{
|
|
67
|
+
readonly locale: "zh";
|
|
68
|
+
readonly message: string;
|
|
69
|
+
}, ...{
|
|
70
|
+
readonly locale: "en" | "ja" | "ko";
|
|
71
|
+
readonly message: string;
|
|
72
|
+
}[]], never>>;
|
|
73
|
+
tooltip: Schema.optional<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>>;
|
|
62
86
|
orientation: Schema.optional<Schema.Literal<["vertical", "floating"]>>;
|
|
63
87
|
binding: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
64
88
|
disabled: Schema.optional<Schema.Schema<string, string, never>>;
|
|
65
89
|
readonly: Schema.optional<Schema.Schema<string, string, never>>;
|
|
90
|
+
disabledDate: Schema.optional<Schema.Schema<string, string, never>>;
|
|
66
91
|
derived: Schema.optional<Schema.Struct<{
|
|
67
92
|
mode: Schema.Literal<["formula", "prefill"]>;
|
|
68
93
|
expression: Schema.Schema<string, string, never>;
|
|
@@ -73,13 +98,19 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
73
98
|
hourCycle: Schema.optional<Schema.Literal<[12, 24]>>;
|
|
74
99
|
presets: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
75
100
|
id: Schema.refine<string, typeof Schema.String>;
|
|
76
|
-
label: Schema.
|
|
77
|
-
locale:
|
|
78
|
-
message:
|
|
79
|
-
}
|
|
80
|
-
locale:
|
|
81
|
-
message:
|
|
82
|
-
}
|
|
101
|
+
label: Schema.suspend<readonly [{
|
|
102
|
+
readonly locale: "zh";
|
|
103
|
+
readonly message: string;
|
|
104
|
+
}, ...{
|
|
105
|
+
readonly locale: "en" | "ja" | "ko";
|
|
106
|
+
readonly message: string;
|
|
107
|
+
}[]], string | readonly [{
|
|
108
|
+
readonly locale: "zh";
|
|
109
|
+
readonly message: string;
|
|
110
|
+
}, ...{
|
|
111
|
+
readonly locale: "en" | "ja" | "ko";
|
|
112
|
+
readonly message: string;
|
|
113
|
+
}[]], never>;
|
|
83
114
|
value: Schema.Schema<string, string, never>;
|
|
84
115
|
}>>>;
|
|
85
116
|
id: Schema.refine<string, typeof Schema.String>;
|
|
@@ -95,13 +126,19 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
95
126
|
}, ...{
|
|
96
127
|
readonly locale: "en" | "ja" | "ko";
|
|
97
128
|
readonly message: string;
|
|
98
|
-
}[]], Schema.
|
|
99
|
-
locale:
|
|
100
|
-
message:
|
|
101
|
-
}
|
|
102
|
-
locale:
|
|
103
|
-
message:
|
|
104
|
-
}
|
|
129
|
+
}[]], Schema.suspend<readonly [{
|
|
130
|
+
readonly locale: "zh";
|
|
131
|
+
readonly message: string;
|
|
132
|
+
}, ...{
|
|
133
|
+
readonly locale: "en" | "ja" | "ko";
|
|
134
|
+
readonly message: string;
|
|
135
|
+
}[]], string | readonly [{
|
|
136
|
+
readonly locale: "zh";
|
|
137
|
+
readonly message: string;
|
|
138
|
+
}, ...{
|
|
139
|
+
readonly locale: "en" | "ja" | "ko";
|
|
140
|
+
readonly message: string;
|
|
141
|
+
}[]], never>>;
|
|
105
142
|
}>>>;
|
|
106
143
|
type: Schema.Literal<["com.shwfed.form.field.datetime"]>;
|
|
107
144
|
compatibilityDate: Schema.Literal<["2026-04-27"]>;
|
package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
+
import { DISABLE_DATE_RESULT, registerInputDateIfAbsent } from "../../../../../share/disabled-date.js";
|
|
2
3
|
import { Expression } from "../../../../../share/expression.js";
|
|
3
4
|
import { Locale } from "../../../../../share/locale.js";
|
|
4
5
|
import { commonFieldFields, derivedField, FieldOrientationSchema } from "../../../utils/common.js";
|
|
@@ -38,6 +39,13 @@ export function presetSchema(configure) {
|
|
|
38
39
|
}
|
|
39
40
|
export function schema(configure) {
|
|
40
41
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
42
|
+
const DisabledDate = Expression({
|
|
43
|
+
configure: (env) => {
|
|
44
|
+
configure(env);
|
|
45
|
+
registerInputDateIfAbsent(env);
|
|
46
|
+
},
|
|
47
|
+
resultType: DISABLE_DATE_RESULT
|
|
48
|
+
});
|
|
41
49
|
const Preset = presetSchema(configure);
|
|
42
50
|
return Schema.Struct({
|
|
43
51
|
type: Schema.Literal(type),
|
|
@@ -68,6 +76,10 @@ export function schema(configure) {
|
|
|
68
76
|
title: "\u53EA\u8BFB\u6761\u4EF6",
|
|
69
77
|
description: "\u8FD4\u56DE `true` \u65F6\u4EC5\u4EE5\u7EAF\u6587\u672C\u5C55\u793A\u5F53\u524D\u503C"
|
|
70
78
|
})),
|
|
79
|
+
disabledDate: Schema.optional(DisabledDate.annotations({
|
|
80
|
+
title: "\u7981\u7528\u65E5\u671F",
|
|
81
|
+
description: "\u9010\u4E2A\u65E5\u671F\u5224\u5B9A\u662F\u5426\u53EF\u9009\uFF1B\u53D8\u91CF `input` \u4E3A\u5019\u9009\u65E5\u671F\u3002\u8FD4\u56DE `true` \u65F6\u7981\u7528\u8BE5\u65E5\u671F\uFF0C\u8FD4\u56DE `false`\u3001\u7A7A\u503C\u6216\u4E0D\u586B\u65F6\u53EF\u9009"
|
|
82
|
+
})),
|
|
71
83
|
derived: derivedField(configure, "string"),
|
|
72
84
|
format: Schema.optional(Schema.String.pipe(Schema.minLength(1)).annotations({
|
|
73
85
|
title: "\u5C55\u793A\u683C\u5F0F",
|
|
@@ -36,6 +36,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
36
36
|
readonly hourCycle?: 12 | 24 | undefined;
|
|
37
37
|
readonly format?: string | undefined;
|
|
38
38
|
readonly valueFormat?: string | undefined;
|
|
39
|
+
readonly disabledDate?: string | undefined;
|
|
39
40
|
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
40
41
|
readonly rangeSeparatorIcon?: string | undefined;
|
|
41
42
|
readonly startPlaceholder?: readonly [{
|
|
@@ -52,28 +53,28 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
52
53
|
readonly locale: "en" | "ja" | "ko";
|
|
53
54
|
readonly message: string;
|
|
54
55
|
}[]] | undefined;
|
|
55
|
-
readonly
|
|
56
|
-
readonly
|
|
56
|
+
readonly validations?: readonly {
|
|
57
|
+
readonly message: readonly [{
|
|
57
58
|
readonly locale: "zh";
|
|
58
59
|
readonly message: string;
|
|
59
60
|
}, ...{
|
|
60
61
|
readonly locale: "en" | "ja" | "ko";
|
|
61
62
|
readonly message: string;
|
|
62
63
|
}[]];
|
|
63
|
-
readonly
|
|
64
|
-
readonly
|
|
65
|
-
readonly start: string;
|
|
64
|
+
readonly warning?: boolean | undefined;
|
|
65
|
+
readonly when: string;
|
|
66
66
|
}[] | undefined;
|
|
67
|
-
readonly
|
|
68
|
-
readonly
|
|
67
|
+
readonly presets?: readonly {
|
|
68
|
+
readonly label: readonly [{
|
|
69
69
|
readonly locale: "zh";
|
|
70
70
|
readonly message: string;
|
|
71
71
|
}, ...{
|
|
72
72
|
readonly locale: "en" | "ja" | "ko";
|
|
73
73
|
readonly message: string;
|
|
74
74
|
}[]];
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
75
|
+
readonly id: string;
|
|
76
|
+
readonly end: string;
|
|
77
|
+
readonly start: string;
|
|
77
78
|
}[] | undefined;
|
|
78
79
|
}) => any;
|
|
79
80
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -110,6 +111,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
110
111
|
readonly hourCycle?: 12 | 24 | undefined;
|
|
111
112
|
readonly format?: string | undefined;
|
|
112
113
|
readonly valueFormat?: string | undefined;
|
|
114
|
+
readonly disabledDate?: string | undefined;
|
|
113
115
|
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
114
116
|
readonly rangeSeparatorIcon?: string | undefined;
|
|
115
117
|
readonly startPlaceholder?: readonly [{
|
|
@@ -126,28 +128,28 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
126
128
|
readonly locale: "en" | "ja" | "ko";
|
|
127
129
|
readonly message: string;
|
|
128
130
|
}[]] | undefined;
|
|
129
|
-
readonly
|
|
130
|
-
readonly
|
|
131
|
+
readonly validations?: readonly {
|
|
132
|
+
readonly message: readonly [{
|
|
131
133
|
readonly locale: "zh";
|
|
132
134
|
readonly message: string;
|
|
133
135
|
}, ...{
|
|
134
136
|
readonly locale: "en" | "ja" | "ko";
|
|
135
137
|
readonly message: string;
|
|
136
138
|
}[]];
|
|
137
|
-
readonly
|
|
138
|
-
readonly
|
|
139
|
-
readonly start: string;
|
|
139
|
+
readonly warning?: boolean | undefined;
|
|
140
|
+
readonly when: string;
|
|
140
141
|
}[] | undefined;
|
|
141
|
-
readonly
|
|
142
|
-
readonly
|
|
142
|
+
readonly presets?: readonly {
|
|
143
|
+
readonly label: readonly [{
|
|
143
144
|
readonly locale: "zh";
|
|
144
145
|
readonly message: string;
|
|
145
146
|
}, ...{
|
|
146
147
|
readonly locale: "en" | "ja" | "ko";
|
|
147
148
|
readonly message: string;
|
|
148
149
|
}[]];
|
|
149
|
-
readonly
|
|
150
|
-
readonly
|
|
150
|
+
readonly id: string;
|
|
151
|
+
readonly end: string;
|
|
152
|
+
readonly start: string;
|
|
151
153
|
}[] | undefined;
|
|
152
154
|
}) => any) | undefined;
|
|
153
155
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { Icon } from "@iconify/vue";
|
|
3
3
|
import { computed } from "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 { Button } from "../../../../ui/button";
|
|
6
7
|
import { ExpressionEditor } from "../../../../ui/expression-editor";
|
|
7
8
|
import DerivedValueEditor from "../../../DerivedValueEditor.vue";
|
|
@@ -757,6 +758,27 @@ const valueFormatExample = computed(() => previewFormat(value.value.valueFormat
|
|
|
757
758
|
</Field>
|
|
758
759
|
</div>
|
|
759
760
|
|
|
761
|
+
<Field orientation="vertical">
|
|
762
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
763
|
+
<template #tooltip>
|
|
764
|
+
<Markdown
|
|
765
|
+
:source="fieldDescription('disabledDate')"
|
|
766
|
+
block
|
|
767
|
+
class="prose prose-sm prose-zinc"
|
|
768
|
+
/>
|
|
769
|
+
</template>
|
|
770
|
+
{{ fieldTitle("disabledDate") }}
|
|
771
|
+
</FieldLabel>
|
|
772
|
+
<ExpressionEditor
|
|
773
|
+
:model-value="value.disabledDate ?? ''"
|
|
774
|
+
placeholder="例:input.format('i') == '6' || input.format('i') == '7'"
|
|
775
|
+
:result-type="[...DISABLE_DATE_EDITOR_RESULT]"
|
|
776
|
+
:extra-vars="INPUT_DATE_VARS"
|
|
777
|
+
class="min-h-10"
|
|
778
|
+
@update:model-value="(v) => value = { ...value, disabledDate: v.length > 0 ? v : void 0 }"
|
|
779
|
+
/>
|
|
780
|
+
</Field>
|
|
781
|
+
|
|
760
782
|
<Field orientation="vertical">
|
|
761
783
|
<FieldLabel class="text-xs text-zinc-500">
|
|
762
784
|
<template #tooltip>
|
|
@@ -36,6 +36,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
36
36
|
readonly hourCycle?: 12 | 24 | undefined;
|
|
37
37
|
readonly format?: string | undefined;
|
|
38
38
|
readonly valueFormat?: string | undefined;
|
|
39
|
+
readonly disabledDate?: string | undefined;
|
|
39
40
|
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
40
41
|
readonly rangeSeparatorIcon?: string | undefined;
|
|
41
42
|
readonly startPlaceholder?: readonly [{
|
|
@@ -52,28 +53,28 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
52
53
|
readonly locale: "en" | "ja" | "ko";
|
|
53
54
|
readonly message: string;
|
|
54
55
|
}[]] | undefined;
|
|
55
|
-
readonly
|
|
56
|
-
readonly
|
|
56
|
+
readonly validations?: readonly {
|
|
57
|
+
readonly message: readonly [{
|
|
57
58
|
readonly locale: "zh";
|
|
58
59
|
readonly message: string;
|
|
59
60
|
}, ...{
|
|
60
61
|
readonly locale: "en" | "ja" | "ko";
|
|
61
62
|
readonly message: string;
|
|
62
63
|
}[]];
|
|
63
|
-
readonly
|
|
64
|
-
readonly
|
|
65
|
-
readonly start: string;
|
|
64
|
+
readonly warning?: boolean | undefined;
|
|
65
|
+
readonly when: string;
|
|
66
66
|
}[] | undefined;
|
|
67
|
-
readonly
|
|
68
|
-
readonly
|
|
67
|
+
readonly presets?: readonly {
|
|
68
|
+
readonly label: readonly [{
|
|
69
69
|
readonly locale: "zh";
|
|
70
70
|
readonly message: string;
|
|
71
71
|
}, ...{
|
|
72
72
|
readonly locale: "en" | "ja" | "ko";
|
|
73
73
|
readonly message: string;
|
|
74
74
|
}[]];
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
75
|
+
readonly id: string;
|
|
76
|
+
readonly end: string;
|
|
77
|
+
readonly start: string;
|
|
77
78
|
}[] | undefined;
|
|
78
79
|
}) => any;
|
|
79
80
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
@@ -110,6 +111,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
110
111
|
readonly hourCycle?: 12 | 24 | undefined;
|
|
111
112
|
readonly format?: string | undefined;
|
|
112
113
|
readonly valueFormat?: string | undefined;
|
|
114
|
+
readonly disabledDate?: string | undefined;
|
|
113
115
|
readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
|
|
114
116
|
readonly rangeSeparatorIcon?: string | undefined;
|
|
115
117
|
readonly startPlaceholder?: readonly [{
|
|
@@ -126,28 +128,28 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
126
128
|
readonly locale: "en" | "ja" | "ko";
|
|
127
129
|
readonly message: string;
|
|
128
130
|
}[]] | undefined;
|
|
129
|
-
readonly
|
|
130
|
-
readonly
|
|
131
|
+
readonly validations?: readonly {
|
|
132
|
+
readonly message: readonly [{
|
|
131
133
|
readonly locale: "zh";
|
|
132
134
|
readonly message: string;
|
|
133
135
|
}, ...{
|
|
134
136
|
readonly locale: "en" | "ja" | "ko";
|
|
135
137
|
readonly message: string;
|
|
136
138
|
}[]];
|
|
137
|
-
readonly
|
|
138
|
-
readonly
|
|
139
|
-
readonly start: string;
|
|
139
|
+
readonly warning?: boolean | undefined;
|
|
140
|
+
readonly when: string;
|
|
140
141
|
}[] | undefined;
|
|
141
|
-
readonly
|
|
142
|
-
readonly
|
|
142
|
+
readonly presets?: readonly {
|
|
143
|
+
readonly label: readonly [{
|
|
143
144
|
readonly locale: "zh";
|
|
144
145
|
readonly message: string;
|
|
145
146
|
}, ...{
|
|
146
147
|
readonly locale: "en" | "ja" | "ko";
|
|
147
148
|
readonly message: string;
|
|
148
149
|
}[]];
|
|
149
|
-
readonly
|
|
150
|
-
readonly
|
|
150
|
+
readonly id: string;
|
|
151
|
+
readonly end: string;
|
|
152
|
+
readonly start: string;
|
|
151
153
|
}[] | undefined;
|
|
152
154
|
}) => any) | undefined;
|
|
153
155
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -5,6 +5,7 @@ import { computed, ref } from "vue";
|
|
|
5
5
|
import { useI18n } from "vue-i18n";
|
|
6
6
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
7
7
|
import { celBindings, injectCELContext } from "../../../../../utils/cel-context";
|
|
8
|
+
import { makeDisabledDatePredicate } from "../../../../../utils/disabled-date";
|
|
8
9
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
9
10
|
import { DATE_RANGE_PICKER_DEFAULT_FORMATS, DateRangePicker } from "../../../../ui/date-range-picker";
|
|
10
11
|
import { Field, FieldLabel, FieldMessages } from "../../../../ui/field";
|
|
@@ -71,6 +72,9 @@ const shortcuts = computed(() => {
|
|
|
71
72
|
}
|
|
72
73
|
}));
|
|
73
74
|
});
|
|
75
|
+
const disabledDate = computed(
|
|
76
|
+
() => makeDisabledDatePredicate(props.config.disabledDate, (input) => Effect.runSync($cel(props.config.disabledDate, { form: formScope.state.value ?? {}, input })))
|
|
77
|
+
);
|
|
74
78
|
function asRange(raw) {
|
|
75
79
|
if (!Array.isArray(raw) || raw.length !== 2) return void 0;
|
|
76
80
|
const [a, b] = raw;
|
|
@@ -165,6 +169,7 @@ const readonlyText = computed(() => {
|
|
|
165
169
|
:time-granularity="config.timeGranularity"
|
|
166
170
|
:hour-cycle="config.hourCycle"
|
|
167
171
|
:disabled="isDisabled"
|
|
172
|
+
:disabled-date="disabledDate"
|
|
168
173
|
:shortcuts="shortcuts"
|
|
169
174
|
/>
|
|
170
175
|
<FieldMessages
|
|
@@ -28,49 +28,80 @@ export declare const HOUR_CYCLE_OPTIONS: ReadonlyArray<{
|
|
|
28
28
|
}>;
|
|
29
29
|
export declare function presetSchema(configure: (env: Environment) => void): Schema.Struct<{
|
|
30
30
|
id: Schema.refine<string, typeof Schema.String>;
|
|
31
|
-
label: Schema.
|
|
32
|
-
locale:
|
|
33
|
-
message:
|
|
34
|
-
}
|
|
35
|
-
locale:
|
|
36
|
-
message:
|
|
37
|
-
}
|
|
31
|
+
label: Schema.suspend<readonly [{
|
|
32
|
+
readonly locale: "zh";
|
|
33
|
+
readonly message: string;
|
|
34
|
+
}, ...{
|
|
35
|
+
readonly locale: "en" | "ja" | "ko";
|
|
36
|
+
readonly message: string;
|
|
37
|
+
}[]], string | readonly [{
|
|
38
|
+
readonly locale: "zh";
|
|
39
|
+
readonly message: string;
|
|
40
|
+
}, ...{
|
|
41
|
+
readonly locale: "en" | "ja" | "ko";
|
|
42
|
+
readonly message: string;
|
|
43
|
+
}[]], never>;
|
|
38
44
|
start: Schema.Schema<string, string, never>;
|
|
39
45
|
end: Schema.Schema<string, string, never>;
|
|
40
46
|
}>;
|
|
41
47
|
export declare function schema(configure: (env: Environment) => void): Schema.Struct<{
|
|
42
|
-
label: Schema.optional<Schema.
|
|
43
|
-
locale:
|
|
44
|
-
message:
|
|
45
|
-
}
|
|
46
|
-
locale:
|
|
47
|
-
message:
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
48
|
+
label: Schema.optional<Schema.suspend<readonly [{
|
|
49
|
+
readonly locale: "zh";
|
|
50
|
+
readonly message: string;
|
|
51
|
+
}, ...{
|
|
52
|
+
readonly locale: "en" | "ja" | "ko";
|
|
53
|
+
readonly message: string;
|
|
54
|
+
}[]], string | readonly [{
|
|
55
|
+
readonly locale: "zh";
|
|
56
|
+
readonly message: string;
|
|
57
|
+
}, ...{
|
|
58
|
+
readonly locale: "en" | "ja" | "ko";
|
|
59
|
+
readonly message: string;
|
|
60
|
+
}[]], never>>;
|
|
61
|
+
startPlaceholder: Schema.optional<Schema.suspend<readonly [{
|
|
62
|
+
readonly locale: "zh";
|
|
63
|
+
readonly message: string;
|
|
64
|
+
}, ...{
|
|
65
|
+
readonly locale: "en" | "ja" | "ko";
|
|
66
|
+
readonly message: string;
|
|
67
|
+
}[]], string | readonly [{
|
|
68
|
+
readonly locale: "zh";
|
|
69
|
+
readonly message: string;
|
|
70
|
+
}, ...{
|
|
71
|
+
readonly locale: "en" | "ja" | "ko";
|
|
72
|
+
readonly message: string;
|
|
73
|
+
}[]], never>>;
|
|
74
|
+
endPlaceholder: Schema.optional<Schema.suspend<readonly [{
|
|
75
|
+
readonly locale: "zh";
|
|
76
|
+
readonly message: string;
|
|
77
|
+
}, ...{
|
|
78
|
+
readonly locale: "en" | "ja" | "ko";
|
|
79
|
+
readonly message: string;
|
|
80
|
+
}[]], string | readonly [{
|
|
81
|
+
readonly locale: "zh";
|
|
82
|
+
readonly message: string;
|
|
83
|
+
}, ...{
|
|
84
|
+
readonly locale: "en" | "ja" | "ko";
|
|
85
|
+
readonly message: string;
|
|
86
|
+
}[]], never>>;
|
|
87
|
+
tooltip: Schema.optional<Schema.suspend<readonly [{
|
|
88
|
+
readonly locale: "zh";
|
|
89
|
+
readonly message: string;
|
|
90
|
+
}, ...{
|
|
91
|
+
readonly locale: "en" | "ja" | "ko";
|
|
92
|
+
readonly message: string;
|
|
93
|
+
}[]], string | readonly [{
|
|
94
|
+
readonly locale: "zh";
|
|
95
|
+
readonly message: string;
|
|
96
|
+
}, ...{
|
|
97
|
+
readonly locale: "en" | "ja" | "ko";
|
|
98
|
+
readonly message: string;
|
|
99
|
+
}[]], never>>;
|
|
70
100
|
orientation: Schema.optional<Schema.Literal<["vertical", "floating"]>>;
|
|
71
101
|
binding: Schema.optional<Schema.Union<[Schema.filter<typeof Schema.String>, Schema.filter<Schema.Tuple2<Schema.filter<typeof Schema.String>, Schema.filter<typeof Schema.String>>>]>>;
|
|
72
102
|
disabled: Schema.optional<Schema.Schema<string, string, never>>;
|
|
73
103
|
readonly: Schema.optional<Schema.Schema<string, string, never>>;
|
|
104
|
+
disabledDate: Schema.optional<Schema.Schema<string, string, never>>;
|
|
74
105
|
derived: Schema.optional<Schema.Struct<{
|
|
75
106
|
mode: Schema.Literal<["formula", "prefill"]>;
|
|
76
107
|
expression: Schema.Schema<string, string, never>;
|
|
@@ -83,13 +114,19 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
83
114
|
hourCycle: Schema.optional<Schema.Literal<[12, 24]>>;
|
|
84
115
|
presets: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
85
116
|
id: Schema.refine<string, typeof Schema.String>;
|
|
86
|
-
label: Schema.
|
|
87
|
-
locale:
|
|
88
|
-
message:
|
|
89
|
-
}
|
|
90
|
-
locale:
|
|
91
|
-
message:
|
|
92
|
-
}
|
|
117
|
+
label: Schema.suspend<readonly [{
|
|
118
|
+
readonly locale: "zh";
|
|
119
|
+
readonly message: string;
|
|
120
|
+
}, ...{
|
|
121
|
+
readonly locale: "en" | "ja" | "ko";
|
|
122
|
+
readonly message: string;
|
|
123
|
+
}[]], string | readonly [{
|
|
124
|
+
readonly locale: "zh";
|
|
125
|
+
readonly message: string;
|
|
126
|
+
}, ...{
|
|
127
|
+
readonly locale: "en" | "ja" | "ko";
|
|
128
|
+
readonly message: string;
|
|
129
|
+
}[]], never>;
|
|
93
130
|
start: Schema.Schema<string, string, never>;
|
|
94
131
|
end: Schema.Schema<string, string, never>;
|
|
95
132
|
}>>>;
|
|
@@ -106,13 +143,19 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
106
143
|
}, ...{
|
|
107
144
|
readonly locale: "en" | "ja" | "ko";
|
|
108
145
|
readonly message: string;
|
|
109
|
-
}[]], Schema.
|
|
110
|
-
locale:
|
|
111
|
-
message:
|
|
112
|
-
}
|
|
113
|
-
locale:
|
|
114
|
-
message:
|
|
115
|
-
}
|
|
146
|
+
}[]], Schema.suspend<readonly [{
|
|
147
|
+
readonly locale: "zh";
|
|
148
|
+
readonly message: string;
|
|
149
|
+
}, ...{
|
|
150
|
+
readonly locale: "en" | "ja" | "ko";
|
|
151
|
+
readonly message: string;
|
|
152
|
+
}[]], string | readonly [{
|
|
153
|
+
readonly locale: "zh";
|
|
154
|
+
readonly message: string;
|
|
155
|
+
}, ...{
|
|
156
|
+
readonly locale: "en" | "ja" | "ko";
|
|
157
|
+
readonly message: string;
|
|
158
|
+
}[]], never>>;
|
|
116
159
|
}>>>;
|
|
117
160
|
type: Schema.Literal<["com.shwfed.form.field.datetimerange"]>;
|
|
118
161
|
compatibilityDate: Schema.Literal<["2026-04-27"]>;
|
package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/schema.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
+
import { DISABLE_DATE_RESULT, registerInputDateIfAbsent } from "../../../../../share/disabled-date.js";
|
|
2
3
|
import { Expression } from "../../../../../share/expression.js";
|
|
3
4
|
import { Locale } from "../../../../../share/locale.js";
|
|
4
5
|
import { commonFieldFields, derivedField, FieldOrientationSchema } from "../../../utils/common.js";
|
|
@@ -52,6 +53,13 @@ export function presetSchema(configure) {
|
|
|
52
53
|
}
|
|
53
54
|
export function schema(configure) {
|
|
54
55
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
56
|
+
const DisabledDate = Expression({
|
|
57
|
+
configure: (env) => {
|
|
58
|
+
configure(env);
|
|
59
|
+
registerInputDateIfAbsent(env);
|
|
60
|
+
},
|
|
61
|
+
resultType: DISABLE_DATE_RESULT
|
|
62
|
+
});
|
|
55
63
|
const Preset = presetSchema(configure);
|
|
56
64
|
return Schema.Struct({
|
|
57
65
|
type: Schema.Literal(type),
|
|
@@ -83,6 +91,10 @@ export function schema(configure) {
|
|
|
83
91
|
title: "\u53EA\u8BFB\u6761\u4EF6",
|
|
84
92
|
description: "\u8FD4\u56DE `true` \u65F6\u4EC5\u4EE5\u7EAF\u6587\u672C\u5C55\u793A\u5F53\u524D\u503C"
|
|
85
93
|
})),
|
|
94
|
+
disabledDate: Schema.optional(DisabledDate.annotations({
|
|
95
|
+
title: "\u7981\u7528\u65E5\u671F",
|
|
96
|
+
description: "\u9010\u4E2A\u65E5\u671F\u5224\u5B9A\u662F\u5426\u53EF\u9009\uFF1B\u53D8\u91CF `input` \u4E3A\u5019\u9009\u65E5\u671F\u3002\u8FD4\u56DE `true` \u65F6\u7981\u7528\u8BE5\u65E5\u671F\uFF0C\u8FD4\u56DE `false`\u3001\u7A7A\u503C\u6216\u4E0D\u586B\u65F6\u53EF\u9009"
|
|
97
|
+
})),
|
|
86
98
|
derived: derivedField(configure, "dyn"),
|
|
87
99
|
format: Schema.optional(Schema.String.pipe(Schema.minLength(1)).annotations({
|
|
88
100
|
title: "\u5C55\u793A\u683C\u5F0F",
|