@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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type ComputedRef } from 'vue';
|
|
2
2
|
import { Schema } from 'effect';
|
|
3
|
+
import type { UIMessage } from './parts.js';
|
|
3
4
|
export interface GenerateTextInput {
|
|
4
5
|
readonly prompt: string;
|
|
5
6
|
readonly system?: string;
|
|
@@ -27,10 +28,19 @@ export interface GenerateObjectInput<A, I extends Record<string, unknown>> {
|
|
|
27
28
|
readonly feedback: string;
|
|
28
29
|
};
|
|
29
30
|
}
|
|
31
|
+
export interface StreamChatInput {
|
|
32
|
+
readonly messages: ReadonlyArray<UIMessage>;
|
|
33
|
+
readonly system?: string;
|
|
34
|
+
readonly tools?: ReadonlyArray<AgenticTool>;
|
|
35
|
+
readonly signal?: AbortSignal;
|
|
36
|
+
readonly maxTokens?: number;
|
|
37
|
+
readonly onMessageUpdate?: (assistant: UIMessage) => void;
|
|
38
|
+
}
|
|
30
39
|
export interface Ai {
|
|
31
40
|
readonly available: ComputedRef<boolean>;
|
|
32
41
|
readonly generateText: (input: GenerateTextInput) => Promise<string>;
|
|
33
42
|
readonly generateObject: <A, I extends Record<string, unknown>>(input: GenerateObjectInput<A, I>) => Promise<A>;
|
|
43
|
+
readonly streamChat: (input: StreamChatInput) => Promise<UIMessage>;
|
|
34
44
|
}
|
|
35
45
|
export declare class StructuredOutputDecodeError extends Error {
|
|
36
46
|
readonly rawOutput: unknown;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { computed } from "vue";
|
|
2
2
|
import { JSONSchema, Schema } from "effect";
|
|
3
|
+
import { createMessageId, isToolUIPart } from "./parts.js";
|
|
4
|
+
import { coerceFromString } from "../../share/coerce-from-string.js";
|
|
3
5
|
const ENDPOINT = "http://192.168.168.10/anthropic/v1/messages";
|
|
4
6
|
const MODEL = "MiniMax-M2.7";
|
|
5
7
|
const ANTHROPIC_VERSION = "2023-06-01";
|
|
6
|
-
const DEFAULT_MAX_TOKENS =
|
|
8
|
+
const DEFAULT_MAX_TOKENS = 32768;
|
|
7
9
|
export class StructuredOutputDecodeError extends Error {
|
|
8
10
|
rawOutput;
|
|
9
11
|
constructor(rawOutput, cause) {
|
|
@@ -76,7 +78,7 @@ async function call(messages, system, options, signal) {
|
|
|
76
78
|
}
|
|
77
79
|
return await res.json();
|
|
78
80
|
}
|
|
79
|
-
async function callStream(messages, system, options, signal, onProgress) {
|
|
81
|
+
async function callStream(messages, system, options, signal, onProgress, events) {
|
|
80
82
|
const body = { ...buildBody(messages, system, options), stream: true };
|
|
81
83
|
const res = await fetch(ENDPOINT, buildInit(body, signal));
|
|
82
84
|
if (!res.ok) {
|
|
@@ -95,22 +97,26 @@ async function callStream(messages, system, options, signal, onProgress) {
|
|
|
95
97
|
const p = payload;
|
|
96
98
|
if (p.type === "content_block_start" && typeof p.index === "number" && p.content_block) {
|
|
97
99
|
const cb = p.content_block;
|
|
98
|
-
|
|
100
|
+
const block = {
|
|
99
101
|
type: cb.type === "tool_use" ? "tool_use" : "text",
|
|
100
102
|
text: "",
|
|
101
103
|
toolId: cb.id,
|
|
102
104
|
toolName: cb.name,
|
|
103
105
|
inputJson: ""
|
|
104
|
-
}
|
|
106
|
+
};
|
|
107
|
+
blocks.set(p.index, block);
|
|
108
|
+
events?.onStart?.(p.index, block);
|
|
105
109
|
} else if (p.type === "content_block_delta" && typeof p.index === "number" && p.delta) {
|
|
106
110
|
const cur = blocks.get(p.index);
|
|
107
111
|
if (!cur) continue;
|
|
108
112
|
if (p.delta.type === "text_delta" && p.delta.text) {
|
|
109
113
|
cur.text += p.delta.text;
|
|
110
114
|
onProgress();
|
|
115
|
+
events?.onDelta?.(p.index, cur);
|
|
111
116
|
} else if (p.delta.type === "input_json_delta" && p.delta.partial_json) {
|
|
112
117
|
cur.inputJson += p.delta.partial_json;
|
|
113
118
|
onProgress();
|
|
119
|
+
events?.onDelta?.(p.index, cur);
|
|
114
120
|
}
|
|
115
121
|
} else if (p.type === "message_delta" && p.delta?.stop_reason) {
|
|
116
122
|
stopReason = p.delta.stop_reason;
|
|
@@ -162,6 +168,33 @@ function appendRetry(messages, retry, toolName) {
|
|
|
162
168
|
}]
|
|
163
169
|
});
|
|
164
170
|
}
|
|
171
|
+
async function runToolResults(messages, assistantContent, toolUses, helperByName, onOutcome) {
|
|
172
|
+
messages.push({ role: "assistant", content: assistantContent });
|
|
173
|
+
const results = [];
|
|
174
|
+
for (const useBlock of toolUses) {
|
|
175
|
+
const tool = helperByName.get(useBlock.name);
|
|
176
|
+
if (!tool) {
|
|
177
|
+
const errorText = `Unknown tool: ${useBlock.name}`;
|
|
178
|
+
results.push({ type: "tool_result", tool_use_id: useBlock.id, content: errorText });
|
|
179
|
+
onOutcome?.(useBlock, { status: "output-error", errorText });
|
|
180
|
+
continue;
|
|
181
|
+
}
|
|
182
|
+
try {
|
|
183
|
+
const result = await tool.execute(useBlock.input ?? {});
|
|
184
|
+
results.push({
|
|
185
|
+
type: "tool_result",
|
|
186
|
+
tool_use_id: useBlock.id,
|
|
187
|
+
content: typeof result === "string" ? result : JSON.stringify(result)
|
|
188
|
+
});
|
|
189
|
+
onOutcome?.(useBlock, { status: "output-available", output: result });
|
|
190
|
+
} catch (err) {
|
|
191
|
+
const errorText = err instanceof Error ? err.message : String(err);
|
|
192
|
+
results.push({ type: "tool_result", tool_use_id: useBlock.id, content: errorText });
|
|
193
|
+
onOutcome?.(useBlock, { status: "output-error", errorText });
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
messages.push({ role: "user", content: results });
|
|
197
|
+
}
|
|
165
198
|
async function generateText(input) {
|
|
166
199
|
const messages = buildUserMessages(input.prompt);
|
|
167
200
|
const opts = input.maxTokens !== void 0 ? { maxTokens: input.maxTokens } : {};
|
|
@@ -195,7 +228,7 @@ async function generateObject(input) {
|
|
|
195
228
|
};
|
|
196
229
|
const decode = (raw) => {
|
|
197
230
|
try {
|
|
198
|
-
return Schema.decodeUnknownSync(input.schema)(raw);
|
|
231
|
+
return Schema.decodeUnknownSync(input.schema)(coerceFromString(raw, input.schema));
|
|
199
232
|
} catch (cause) {
|
|
200
233
|
throw new StructuredOutputDecodeError(raw, cause);
|
|
201
234
|
}
|
|
@@ -217,41 +250,121 @@ async function generateObject(input) {
|
|
|
217
250
|
const reason = response.stop_reason ? `\uFF08stop_reason=${response.stop_reason}\uFF09` : "";
|
|
218
251
|
throw new Error(`\u6A21\u578B\u672A\u8FD4\u56DE\u7ED3\u6784\u5316\u8F93\u51FA${reason}${text ? `: ${text.slice(0, 200)}` : ""}`);
|
|
219
252
|
}
|
|
220
|
-
messages
|
|
221
|
-
|
|
222
|
-
|
|
253
|
+
await runToolResults(messages, toolUses, toolUses, helperByName);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
function partsToText(parts) {
|
|
257
|
+
return parts.filter((p) => p.type === "text").map((p) => p.text).join("");
|
|
258
|
+
}
|
|
259
|
+
async function streamChat(input) {
|
|
260
|
+
const helperTools = input.tools ?? [];
|
|
261
|
+
const helperByName = new Map(helperTools.map((t) => [t.name, t]));
|
|
262
|
+
const tools = helperTools.length > 0 ? helperTools.map((t) => ({
|
|
263
|
+
name: t.name,
|
|
264
|
+
description: t.description,
|
|
265
|
+
input_schema: t.inputJsonSchema
|
|
266
|
+
})) : void 0;
|
|
267
|
+
const messages = input.messages.map(
|
|
268
|
+
(m) => ({ role: m.role, content: partsToText(m.parts) })
|
|
269
|
+
);
|
|
270
|
+
const opts = {
|
|
271
|
+
...tools !== void 0 ? { tools } : {},
|
|
272
|
+
...input.maxTokens !== void 0 ? { maxTokens: input.maxTokens } : {}
|
|
273
|
+
};
|
|
274
|
+
const assistant = { id: createMessageId(), role: "assistant", parts: [] };
|
|
275
|
+
const publish = () => input.onMessageUpdate?.(assistant);
|
|
276
|
+
const MAX_TRUNCATION_STREAK = 3;
|
|
277
|
+
let truncationStreak = 0;
|
|
278
|
+
for (; ; ) {
|
|
279
|
+
const partByIndex = /* @__PURE__ */ new Map();
|
|
280
|
+
const response = await callStream(messages, input.system, opts, input.signal, () => {
|
|
281
|
+
}, {
|
|
282
|
+
onStart: (index, block) => {
|
|
283
|
+
const part = block.type === "tool_use" ? {
|
|
284
|
+
type: `tool-${block.toolName ?? ""}`,
|
|
285
|
+
toolCallId: block.toolId ?? "",
|
|
286
|
+
state: "input-streaming"
|
|
287
|
+
} : { type: "text", text: "", state: "streaming" };
|
|
288
|
+
assistant.parts.push(part);
|
|
289
|
+
partByIndex.set(index, part);
|
|
290
|
+
publish();
|
|
291
|
+
},
|
|
292
|
+
onDelta: (index, block) => {
|
|
293
|
+
const part = partByIndex.get(index);
|
|
294
|
+
if (part?.type === "text") {
|
|
295
|
+
part.text = block.text;
|
|
296
|
+
publish();
|
|
297
|
+
}
|
|
298
|
+
}
|
|
223
299
|
});
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
if (
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
300
|
+
response.content.forEach((block, i) => {
|
|
301
|
+
const part = partByIndex.get(i);
|
|
302
|
+
if (!part) return;
|
|
303
|
+
if (block.type === "text") {
|
|
304
|
+
if (part.type === "text") {
|
|
305
|
+
part.text = block.text;
|
|
306
|
+
part.state = "done";
|
|
307
|
+
}
|
|
308
|
+
} else if (part.type !== "text") {
|
|
309
|
+
part.input = block.input;
|
|
310
|
+
if (part.state === "input-streaming") part.state = "input-available";
|
|
234
311
|
}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
312
|
+
});
|
|
313
|
+
publish();
|
|
314
|
+
const toolUses = response.content.filter(
|
|
315
|
+
(b) => b.type === "tool_use"
|
|
316
|
+
);
|
|
317
|
+
if (toolUses.length === 0) {
|
|
318
|
+
if (response.stop_reason === "max_tokens") {
|
|
319
|
+
if (truncationStreak >= MAX_TRUNCATION_STREAK) {
|
|
320
|
+
throw new Error("\u6A21\u578B\u8FDE\u7EED\u591A\u8F6E\u5728\u4EA7\u51FA\u524D\u7528\u5C3D token \u9884\u7B97\uFF08max_tokens\uFF09\uFF0C\u5DF2\u505C\u6B62\u3002\u8BF7\u7F29\u5C0F\u672C\u6B21\u914D\u7F6E\u8303\u56F4\u6216\u62C6\u5206\u6307\u4EE4\u540E\u91CD\u8BD5\u3002");
|
|
321
|
+
}
|
|
322
|
+
truncationStreak++;
|
|
323
|
+
const echoable = response.content.filter(
|
|
324
|
+
(b) => !(b.type === "text" && b.text.length === 0)
|
|
325
|
+
);
|
|
326
|
+
const assistantEcho = echoable.length > 0 ? echoable : [{ type: "text", text: "\u2026" }];
|
|
327
|
+
messages.push({ role: "assistant", content: assistantEcho });
|
|
328
|
+
messages.push({
|
|
329
|
+
role: "user",
|
|
330
|
+
content: "\u4E0A\u4E00\u8F6E\u5728 max_tokens \u5904\u88AB\u622A\u65AD\u3002\u8BF7\u7528\u66F4\u5C0F\u7684\u6B65\u5B50\u7EE7\u7EED\uFF1A\u672C\u8F6E\u53EA\u505A\u4E00\u6B65\uFF08\u4E00\u4E2A\u5DE5\u5177\u8C03\u7528\uFF0C\u6216\u4E00\u6BB5\u7B80\u77ED\u56DE\u590D\uFF09\u3002"
|
|
247
331
|
});
|
|
332
|
+
if (assistant.parts.length > 0) {
|
|
333
|
+
assistant.parts.push({ type: "step-start" });
|
|
334
|
+
publish();
|
|
335
|
+
}
|
|
336
|
+
continue;
|
|
248
337
|
}
|
|
338
|
+
return assistant;
|
|
249
339
|
}
|
|
250
|
-
|
|
340
|
+
truncationStreak = 0;
|
|
341
|
+
await runToolResults(
|
|
342
|
+
messages,
|
|
343
|
+
response.content,
|
|
344
|
+
toolUses,
|
|
345
|
+
helperByName,
|
|
346
|
+
(useBlock, outcome) => {
|
|
347
|
+
const part = assistant.parts.find(
|
|
348
|
+
(p) => isToolUIPart(p) && p.toolCallId === useBlock.id
|
|
349
|
+
);
|
|
350
|
+
if (!part) return;
|
|
351
|
+
if (outcome.status === "output-available") {
|
|
352
|
+
part.state = "output-available";
|
|
353
|
+
part.output = outcome.output;
|
|
354
|
+
} else {
|
|
355
|
+
part.state = "output-error";
|
|
356
|
+
part.errorText = outcome.errorText;
|
|
357
|
+
}
|
|
358
|
+
publish();
|
|
359
|
+
}
|
|
360
|
+
);
|
|
361
|
+
assistant.parts.push({ type: "step-start" });
|
|
362
|
+
publish();
|
|
251
363
|
}
|
|
252
364
|
}
|
|
253
365
|
export const ai = {
|
|
254
366
|
available: computed(() => true),
|
|
255
367
|
generateText,
|
|
256
|
-
generateObject
|
|
368
|
+
generateObject,
|
|
369
|
+
streamChat
|
|
257
370
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface TextUIPart {
|
|
2
|
+
type: 'text';
|
|
3
|
+
text: string;
|
|
4
|
+
state?: 'streaming' | 'done';
|
|
5
|
+
}
|
|
6
|
+
export interface ReasoningUIPart {
|
|
7
|
+
type: 'reasoning';
|
|
8
|
+
text: string;
|
|
9
|
+
state?: 'streaming' | 'done';
|
|
10
|
+
}
|
|
11
|
+
export interface StepStartUIPart {
|
|
12
|
+
type: 'step-start';
|
|
13
|
+
}
|
|
14
|
+
export interface ToolUIPart {
|
|
15
|
+
type: `tool-${string}`;
|
|
16
|
+
toolCallId: string;
|
|
17
|
+
state: 'input-streaming' | 'input-available' | 'output-available' | 'output-error';
|
|
18
|
+
input?: unknown;
|
|
19
|
+
output?: unknown;
|
|
20
|
+
errorText?: string;
|
|
21
|
+
}
|
|
22
|
+
export type UIMessagePart = TextUIPart | ReasoningUIPart | StepStartUIPart | ToolUIPart;
|
|
23
|
+
export interface UIMessage {
|
|
24
|
+
id: string;
|
|
25
|
+
role: 'user' | 'assistant';
|
|
26
|
+
parts: UIMessagePart[];
|
|
27
|
+
}
|
|
28
|
+
export declare function isToolUIPart(part: UIMessagePart): part is ToolUIPart;
|
|
29
|
+
export declare function toolNameOf(part: ToolUIPart): string;
|
|
30
|
+
export declare function createMessageId(): string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { DateValue } from 'reka-ui';
|
|
2
|
+
/**
|
|
3
|
+
* Convert an `@internationalized/date` `DateValue` (what the picker's
|
|
4
|
+
* `disabledDate` callback receives) to a native JS `Date`, so user expressions
|
|
5
|
+
* see a plain `input: Date`. Mirrors `pickerValueToNative` in
|
|
6
|
+
* `ui/date-picker/DatePicker.vue` (minus the `Time` branch — the per-date
|
|
7
|
+
* predicate never receives a `Time`). For a `CalendarDate` (date/month/year
|
|
8
|
+
* panels) the time fields are absent and default to `0`; for `month` panels the
|
|
9
|
+
* candidate is the first of the month (`day` is `1`).
|
|
10
|
+
*/
|
|
11
|
+
export declare function dateValueToNative(d: DateValue): Date;
|
|
12
|
+
/**
|
|
13
|
+
* Build the `(d: DateValue) => boolean` predicate the date pickers expect from a
|
|
14
|
+
* user-authored CEL expression. Centralizes three concerns shared by every date
|
|
15
|
+
* block: the `DateValue` → native `Date` conversion, the "expression returns
|
|
16
|
+
* `true` ⇒ date disabled" mapping (`false`/`undefined`/none ⇒ enabled — matching
|
|
17
|
+
* reka-ui's native `isDateDisabled`), and error containment (a throwing
|
|
18
|
+
* expression leaves the date enabled).
|
|
19
|
+
*
|
|
20
|
+
* Each runtime passes its own `evalWithInput` closure so its existing CEL scope
|
|
21
|
+
* is preserved verbatim — form fields evaluate against `{ form, input }`, table
|
|
22
|
+
* columns against `celScope(celContext, { input })`. Returns `undefined` when
|
|
23
|
+
* there's no expression, so the picker omits the prop and all dates stay
|
|
24
|
+
* selectable.
|
|
25
|
+
*/
|
|
26
|
+
export declare function makeDisabledDatePredicate(expr: string | undefined, evalWithInput: (input: Date) => boolean | undefined): ((d: DateValue) => boolean) | undefined;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export function dateValueToNative(d) {
|
|
2
|
+
return new Date(
|
|
3
|
+
d.year,
|
|
4
|
+
d.month - 1,
|
|
5
|
+
"day" in d ? d.day : 1,
|
|
6
|
+
"hour" in d ? d.hour : 0,
|
|
7
|
+
"hour" in d ? d.minute : 0,
|
|
8
|
+
"hour" in d ? d.second : 0
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
export function makeDisabledDatePredicate(expr, evalWithInput) {
|
|
12
|
+
if (!expr) return void 0;
|
|
13
|
+
return (d) => {
|
|
14
|
+
try {
|
|
15
|
+
return evalWithInput(dateValueToNative(d)) === true;
|
|
16
|
+
} catch (e) {
|
|
17
|
+
console.error("[shwfed] disabledDate expression failed", e);
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shwfed/config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.1",
|
|
4
4
|
"description": "Configurable UI for SHWFED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"fx-fetch": "^1.1.2",
|
|
69
69
|
"markdown-it": "^14.1.1",
|
|
70
70
|
"reka-ui": "^2.9.7",
|
|
71
|
+
"remend": "^1.3.0",
|
|
71
72
|
"tailwind-merge": "^3.6.0",
|
|
72
73
|
"tailwindcss": "^4.3.0",
|
|
73
74
|
"vaul-vue": "^0.4.1",
|