@shwfed/config 1.1.5 → 2.0.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.d.mts +2 -19
- package/dist/module.json +1 -1
- package/dist/module.mjs +15 -34
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/config.d.vue.ts +36 -4
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/config.vue +45 -8
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/config.vue.d.ts +36 -4
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/runtime.vue +15 -9
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/schema.d.ts +17 -1
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/schema.js +23 -4
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/config.d.vue.ts +36 -4
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/config.vue +39 -5
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/config.vue.d.ts +36 -4
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/runtime.vue +15 -9
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/schema.d.ts +17 -1
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/schema.js +23 -5
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.prototype/config.vue +1 -0
- package/dist/runtime/components/actions/buttons/2026-04-21/com.shwfed.actions.button.navigation/config.d.vue.ts +2 -2
- package/dist/runtime/components/actions/buttons/2026-04-21/com.shwfed.actions.button.navigation/config.vue.d.ts +2 -2
- package/dist/runtime/components/actions/buttons/2026-04-21/com.shwfed.actions.button.navigation/runtime.vue +2 -3
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/config.d.vue.ts +1 -1
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/config.vue +44 -10
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/config.vue.d.ts +1 -1
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/runtime.vue +24 -7
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/schema.d.ts +6 -1
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/schema.js +6 -3
- package/dist/runtime/components/actions/buttons/{2026-04-27/com.shwfed.actions.button.table.reset → 2026-05-15/com.shwfed.actions.button.event.dispatch}/config.d.vue.ts +13 -5
- package/dist/runtime/components/actions/buttons/2026-05-15/com.shwfed.actions.button.event.dispatch/config.vue +32 -0
- package/dist/runtime/components/actions/buttons/{2026-04-27/com.shwfed.actions.button.table.reset → 2026-05-15/com.shwfed.actions.button.event.dispatch}/config.vue.d.ts +13 -5
- package/dist/runtime/components/actions/buttons/{2026-04-27/com.shwfed.actions.button.table.search → 2026-05-15/com.shwfed.actions.button.event.dispatch}/runtime.vue +5 -7
- package/dist/runtime/components/actions/buttons/2026-05-15/com.shwfed.actions.button.event.dispatch/schema.d.ts +17 -0
- package/dist/runtime/components/actions/buttons/2026-05-15/com.shwfed.actions.button.event.dispatch/schema.js +18 -0
- package/dist/runtime/components/actions/components/group.vue +2 -3
- package/dist/runtime/components/actions/components/triggers-field.d.vue.ts +17 -0
- package/dist/runtime/components/actions/components/triggers-field.vue +209 -0
- package/dist/runtime/components/actions/components/triggers-field.vue.d.ts +17 -0
- package/dist/runtime/components/actions/config.vue +51 -1
- package/dist/runtime/components/actions/schema.d.ts +4 -0
- package/dist/runtime/components/actions/schema.js +6 -0
- package/dist/runtime/components/actions/utils/resolve.d.ts +25 -1
- package/dist/runtime/components/actions/utils/resolve.js +37 -9
- package/dist/runtime/components/app.vue +1 -1
- package/dist/runtime/components/block-layout-editor/index.vue +11 -11
- package/dist/runtime/components/block-layout-editor/sidebar.vue +0 -4
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/config.d.vue.ts +2 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/config.vue.d.ts +2 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/runtime.d.vue.ts +2 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/runtime.vue.d.ts +2 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.form/schema.d.ts +2 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts +6 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +6 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +6 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +6 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +7 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/config.d.vue.ts +1 -1
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/config.vue +16 -2
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/config.vue.d.ts +1 -1
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/runtime.vue +1 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/schema.d.ts +18 -9
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/schema.js +8 -4
- package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.line/config.d.vue.ts +77 -0
- package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.line/config.vue +535 -0
- package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.line/config.vue.d.ts +77 -0
- package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.line/runtime.d.vue.ts +77 -0
- package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.line/runtime.vue +233 -0
- package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.line/runtime.vue.d.ts +77 -0
- package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.line/schema.d.ts +134 -0
- package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.line/schema.js +142 -0
- package/dist/runtime/components/config/index.vue +1 -1
- package/dist/runtime/components/config/use-editor.js +4 -3
- package/dist/runtime/components/form/DerivedValueEditor.d.vue.ts +19 -0
- package/dist/runtime/components/form/DerivedValueEditor.vue +77 -0
- package/dist/runtime/components/form/DerivedValueEditor.vue.d.ts +19 -0
- package/dist/runtime/components/form/config.vue +58 -24
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue +21 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/runtime.vue +29 -31
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.d.ts +4 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.js +3 -2
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.vue +21 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/runtime.vue +24 -26
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.d.ts +4 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.js +3 -2
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.d.vue.ts +10 -2
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.vue +21 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.vue.d.ts +10 -2
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/runtime.vue +15 -7
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/schema.d.ts +4 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/schema.js +2 -1
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.d.vue.ts +10 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.vue +21 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.vue.d.ts +10 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/runtime.vue +14 -6
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/schema.d.ts +4 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/schema.js +2 -1
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +10 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue +21 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +10 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/runtime.vue +14 -6
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/schema.d.ts +4 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/schema.js +2 -1
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.d.vue.ts +12 -4
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue +21 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue.d.ts +12 -4
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/runtime.vue +14 -6
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.d.ts +4 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.js +2 -1
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +12 -4
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue +21 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +12 -4
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/runtime.vue +14 -6
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/schema.d.ts +4 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/schema.js +2 -1
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/config.d.vue.ts +12 -4
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/config.vue +21 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/config.vue.d.ts +12 -4
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/runtime.vue +14 -6
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/schema.d.ts +4 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/schema.js +2 -1
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.d.vue.ts +12 -4
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.vue +21 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.vue.d.ts +12 -4
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/runtime.vue +14 -6
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/schema.d.ts +4 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/schema.js +2 -1
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue +21 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/runtime.vue +37 -38
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.d.ts +4 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.js +2 -1
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.d.vue.ts +10 -2
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.vue +21 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.vue.d.ts +10 -2
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/runtime.vue +33 -22
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/schema.d.ts +4 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/schema.js +2 -1
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.vue +21 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/runtime.vue +14 -6
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/schema.d.ts +4 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/schema.js +3 -2
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/config.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/config.vue +21 -0
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/config.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/runtime.vue +14 -7
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/schema.d.ts +4 -0
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/schema.js +2 -1
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/config.vue +1 -0
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/runtime.vue +13 -8
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.d.vue.ts +10 -2
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.vue +25 -1
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.vue.d.ts +10 -2
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/runtime.vue +102 -44
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/schema.d.ts +14 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/schema.js +14 -5
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/config.vue +1 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/row.vue +22 -5
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/runtime.vue +7 -4
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.js +7 -1
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/config.d.vue.ts +113 -0
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/config.vue +426 -0
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/config.vue.d.ts +113 -0
- package/dist/runtime/components/{actions/buttons/2026-04-27/com.shwfed.actions.button.table.search → form/fields/2026-05-17/com.shwfed.form.field.checkbox.group}/runtime.d.vue.ts +1 -1
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/runtime.vue +176 -0
- package/dist/runtime/components/{actions/buttons/2026-04-27/com.shwfed.actions.button.table.search → form/fields/2026-05-17/com.shwfed.form.field.checkbox.group}/runtime.vue.d.ts +1 -1
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/schema.d.ts +121 -0
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/schema.js +78 -0
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/config.d.vue.ts +113 -0
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/config.vue +426 -0
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/config.vue.d.ts +113 -0
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/runtime.vue +159 -0
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/schema.d.ts +121 -0
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/schema.js +78 -0
- package/dist/runtime/components/form/index.d.vue.ts +6 -0
- package/dist/runtime/components/form/index.vue +41 -6
- package/dist/runtime/components/form/index.vue.d.ts +6 -0
- package/dist/runtime/components/form/schema.d.ts +5 -1
- package/dist/runtime/components/form/schema.js +13 -1
- package/dist/runtime/components/form/unit-config.d.vue.ts +0 -3
- package/dist/runtime/components/form/unit-config.vue +4 -10
- package/dist/runtime/components/form/unit-config.vue.d.ts +0 -3
- package/dist/runtime/components/form/utils/commit-bus.d.ts +26 -0
- package/dist/runtime/components/form/utils/commit-bus.js +27 -0
- package/dist/runtime/components/form/utils/common.d.ts +27 -0
- package/dist/runtime/components/form/utils/common.js +31 -0
- package/dist/runtime/components/form/utils/derived.d.ts +72 -0
- package/dist/runtime/components/form/utils/derived.js +116 -0
- package/dist/runtime/components/form/utils/field-value.d.ts +35 -0
- package/dist/runtime/components/form/utils/field-value.js +40 -0
- package/dist/runtime/components/form/utils/history.d.ts +36 -0
- package/dist/runtime/components/form/utils/history.js +74 -0
- package/dist/runtime/components/form/utils/readonly.d.ts +8 -0
- package/dist/runtime/components/form/utils/readonly.js +9 -0
- package/dist/runtime/components/form/utils/state.d.ts +27 -1
- package/dist/runtime/components/form/utils/state.js +16 -8
- package/dist/runtime/components/table/ai/columns-button.vue +3 -4
- package/dist/runtime/components/table/ai/data-source-button.vue +3 -4
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/runtime.vue +2 -3
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/runtime.vue +2 -3
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/runtime.vue +2 -3
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/runtime.vue +2 -3
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/runtime.vue +11 -6
- package/dist/runtime/components/table/config.vue +46 -2
- package/dist/runtime/components/table/index.d.vue.ts +4 -0
- package/dist/runtime/components/table/index.vue +28 -22
- package/dist/runtime/components/table/index.vue.d.ts +4 -0
- package/dist/runtime/components/table/schema.d.ts +33 -0
- package/dist/runtime/components/table/schema.js +21 -0
- package/dist/runtime/components/table/utils/instance.d.ts +2 -0
- package/dist/runtime/components/table/utils/instance.js +8 -0
- package/dist/runtime/components/ui/date-picker/DatePickerInput.vue +2 -2
- package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.vue +2 -2
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.vue +2 -2
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.vue +2 -2
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.d.vue.ts +13 -1
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.vue +11 -3
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.vue.d.ts +13 -1
- package/dist/runtime/components/ui/locale/Locale.vue +2 -2
- package/dist/runtime/components/ui/radio-group/RadioGroup.d.vue.ts +22 -0
- package/dist/runtime/components/ui/radio-group/RadioGroup.vue +32 -0
- package/dist/runtime/components/ui/radio-group/RadioGroup.vue.d.ts +22 -0
- package/dist/runtime/components/ui/radio-group/RadioGroupItem.d.vue.ts +8 -0
- package/dist/runtime/components/ui/radio-group/RadioGroupItem.vue +36 -0
- package/dist/runtime/components/ui/radio-group/RadioGroupItem.vue.d.ts +8 -0
- package/dist/runtime/components/ui/radio-group/index.d.ts +2 -0
- package/dist/runtime/components/ui/radio-group/index.js +2 -0
- package/dist/runtime/composables/useOverlay.d.ts +1 -5
- package/dist/runtime/composables/useOverlay.js +4 -3
- package/dist/runtime/composables/useTranslateLocale.js +1 -2
- package/dist/runtime/share/event-bus.d.ts +118 -0
- package/dist/runtime/share/event-bus.js +55 -0
- package/dist/runtime/share/expression.d.ts +7 -0
- package/dist/runtime/share/expression.js +3 -1
- package/dist/runtime/share/layout.d.ts +1 -0
- package/dist/runtime/share/layout.js +3 -2
- package/dist/runtime/share/slot-renderer.vue +6 -4
- package/dist/runtime/{plugins → utils}/ai/cel-prompt.d.ts +1 -1
- package/dist/runtime/{plugins → utils}/ai/index.d.ts +1 -6
- package/dist/runtime/{plugins → utils}/ai/index.js +5 -14
- package/dist/runtime/utils/cel.d.ts +5 -0
- package/dist/runtime/utils/cel.js +42 -0
- package/dist/runtime/vendor/cel-js/CLAUDE.md +8 -2
- package/dist/runtime/vendor/cel-js/PROMPT.md +35 -10
- package/dist/runtime/vendor/cel-js/lib/functions.js +63 -1
- package/dist/runtime/vendor/cel-js/lib/http-builder.d.ts +35 -0
- package/dist/runtime/{plugins/http/builder.js → vendor/cel-js/lib/http-builder.js} +25 -23
- package/dist/runtime/vendor/cel-js/lib/http-builtins.d.ts +9 -10
- package/dist/runtime/vendor/cel-js/lib/http-builtins.js +53 -13
- package/dist/types.d.mts +7 -1
- package/package.json +1 -1
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.reset/config.vue +0 -10
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.reset/runtime.vue +0 -25
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.reset/schema.d.ts +0 -13
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.reset/schema.js +0 -16
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.search/config.d.vue.ts +0 -17
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.search/config.vue +0 -10
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.search/config.vue.d.ts +0 -17
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.search/schema.d.ts +0 -13
- package/dist/runtime/components/actions/buttons/2026-04-27/com.shwfed.actions.button.table.search/schema.js +0 -16
- package/dist/runtime/components/table/utils/host.d.ts +0 -9
- package/dist/runtime/components/table/utils/host.js +0 -8
- package/dist/runtime/composables/useCel.d.ts +0 -16
- package/dist/runtime/composables/useCel.js +0 -8
- package/dist/runtime/middleware/token.d.ts +0 -2
- package/dist/runtime/middleware/token.js +0 -20
- package/dist/runtime/plugins/cel/http.d.ts +0 -8
- package/dist/runtime/plugins/cel/http.js +0 -49
- package/dist/runtime/plugins/cel/index.d.ts +0 -9
- package/dist/runtime/plugins/cel/index.js +0 -59
- package/dist/runtime/plugins/http/builder.d.ts +0 -14
- package/dist/runtime/plugins/http/index.d.ts +0 -19
- package/dist/runtime/plugins/http/index.js +0 -35
- package/dist/runtime/plugins/toast/index.d.ts +0 -108
- package/dist/runtime/plugins/toast/index.js +0 -10
- package/dist/runtime/types.d.ts +0 -25
- /package/dist/runtime/components/actions/buttons/{2026-04-27/com.shwfed.actions.button.table.reset → 2026-05-15/com.shwfed.actions.button.event.dispatch}/runtime.d.vue.ts +0 -0
- /package/dist/runtime/components/actions/buttons/{2026-04-27/com.shwfed.actions.button.table.reset → 2026-05-15/com.shwfed.actions.button.event.dispatch}/runtime.vue.d.ts +0 -0
- /package/dist/runtime/{plugins → utils}/ai/cel-prompt.js +0 -0
- /package/dist/runtime/{plugins/cel/context.d.ts → utils/cel-context.d.ts} +0 -0
- /package/dist/runtime/{plugins/cel/context.js → utils/cel-context.js} +0 -0
package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/config.vue
ADDED
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { Icon } from "@iconify/vue";
|
|
3
|
+
import { computed } from "vue";
|
|
4
|
+
import { Button } from "../../../../ui/button";
|
|
5
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../../../../ui/dropdown-menu";
|
|
6
|
+
import { ExpressionEditor } from "../../../../ui/expression-editor";
|
|
7
|
+
import DerivedValueEditor from "../../../DerivedValueEditor.vue";
|
|
8
|
+
import { Field, FieldLabel } from "../../../../ui/field";
|
|
9
|
+
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupNumberField } from "../../../../ui/input-group";
|
|
10
|
+
import { Locale as LocaleField } from "../../../../ui/locale";
|
|
11
|
+
import { Markdown } from "../../../../ui/markdown";
|
|
12
|
+
import { getStructFieldDescription, getStructFieldTitle } from "../../../schema";
|
|
13
|
+
import { itemSchema, schema } from "./schema";
|
|
14
|
+
defineOptions({ name: "ShwfedRadioGroupFieldConfig" });
|
|
15
|
+
const value = defineModel({ type: null, ...{ required: true } });
|
|
16
|
+
const fieldSchema = schema(() => {
|
|
17
|
+
});
|
|
18
|
+
const fieldTitle = (f) => getStructFieldTitle(fieldSchema, f) ?? f;
|
|
19
|
+
const fieldDescription = (f) => getStructFieldDescription(fieldSchema, f);
|
|
20
|
+
const itemFieldSchema = itemSchema(() => {
|
|
21
|
+
});
|
|
22
|
+
const itemFieldTitle = (f) => getStructFieldTitle(itemFieldSchema, f) ?? f;
|
|
23
|
+
const itemFieldDescription = (f) => getStructFieldDescription(itemFieldSchema, f);
|
|
24
|
+
const pathText = computed({
|
|
25
|
+
get: () => value.value.binding ?? "",
|
|
26
|
+
set: (next) => {
|
|
27
|
+
const trimmed = next.trim();
|
|
28
|
+
if (trimmed.length === 0) {
|
|
29
|
+
const { binding: _omit, ...rest } = value.value;
|
|
30
|
+
value.value = rest;
|
|
31
|
+
} else {
|
|
32
|
+
value.value = { ...value.value, binding: trimmed };
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
const items = computed(() => value.value.items ?? []);
|
|
37
|
+
function newId() {
|
|
38
|
+
return typeof crypto !== "undefined" && "randomUUID" in crypto ? crypto.randomUUID() : "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
|
|
39
|
+
const r = Math.random() * 16 | 0;
|
|
40
|
+
const v = c === "x" ? r : r & 3 | 8;
|
|
41
|
+
return v.toString(16);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function newItem() {
|
|
45
|
+
return {
|
|
46
|
+
id: newId(),
|
|
47
|
+
label: [{ locale: "zh", message: "" }],
|
|
48
|
+
value: { kind: "text", value: "" }
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function patchItem(index, patch) {
|
|
52
|
+
const next = [...value.value.items ?? []];
|
|
53
|
+
const cur = next[index];
|
|
54
|
+
if (!cur) return;
|
|
55
|
+
next[index] = { ...cur, ...patch };
|
|
56
|
+
value.value = { ...value.value, items: next };
|
|
57
|
+
}
|
|
58
|
+
function addItem() {
|
|
59
|
+
value.value = { ...value.value, items: [...value.value.items ?? [], newItem()] };
|
|
60
|
+
}
|
|
61
|
+
function removeItem(index) {
|
|
62
|
+
const next = [...value.value.items ?? []];
|
|
63
|
+
next.splice(index, 1);
|
|
64
|
+
value.value = { ...value.value, items: next };
|
|
65
|
+
}
|
|
66
|
+
function setItemKind(index, kind) {
|
|
67
|
+
const cur = value.value.items?.[index];
|
|
68
|
+
if (!cur || cur.value.kind === kind) return;
|
|
69
|
+
patchItem(index, {
|
|
70
|
+
value: kind === "text" ? { kind: "text", value: "" } : { kind: "number", value: 0 }
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function setItemTextValue(index, text) {
|
|
74
|
+
patchItem(index, { value: { kind: "text", value: text } });
|
|
75
|
+
}
|
|
76
|
+
function setItemNumberValue(index, n) {
|
|
77
|
+
patchItem(index, {
|
|
78
|
+
value: {
|
|
79
|
+
kind: "number",
|
|
80
|
+
value: typeof n === "number" && Number.isFinite(n) ? n : 0
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
function setItemLabel(index, label) {
|
|
85
|
+
patchItem(index, { label });
|
|
86
|
+
}
|
|
87
|
+
function setItemTooltip(index, tooltip) {
|
|
88
|
+
const isEmpty = !tooltip || tooltip.every((l) => l.message.trim().length === 0);
|
|
89
|
+
if (isEmpty) {
|
|
90
|
+
const cur = value.value.items?.[index];
|
|
91
|
+
if (!cur) return;
|
|
92
|
+
const { tooltip: _omit, ...rest } = cur;
|
|
93
|
+
const next = [...value.value.items ?? []];
|
|
94
|
+
next[index] = rest;
|
|
95
|
+
value.value = { ...value.value, items: next };
|
|
96
|
+
} else {
|
|
97
|
+
patchItem(index, { tooltip });
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
</script>
|
|
101
|
+
|
|
102
|
+
<template>
|
|
103
|
+
<div class="flex flex-col gap-3">
|
|
104
|
+
<div class="grid grid-cols-2 gap-3">
|
|
105
|
+
<Field orientation="vertical">
|
|
106
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
107
|
+
<template
|
|
108
|
+
v-if="fieldDescription('displayName')"
|
|
109
|
+
#tooltip
|
|
110
|
+
>
|
|
111
|
+
<Markdown
|
|
112
|
+
:source="fieldDescription('displayName')"
|
|
113
|
+
block
|
|
114
|
+
class="prose prose-sm prose-zinc"
|
|
115
|
+
/>
|
|
116
|
+
</template>
|
|
117
|
+
{{ fieldTitle("displayName") }}
|
|
118
|
+
</FieldLabel>
|
|
119
|
+
<InputGroup>
|
|
120
|
+
<InputGroupInput
|
|
121
|
+
:model-value="value.displayName ?? ''"
|
|
122
|
+
placeholder="例:用户角色"
|
|
123
|
+
@update:model-value="(v) => {
|
|
124
|
+
const s = String(v ?? '');
|
|
125
|
+
value = { ...value, displayName: s.length > 0 ? s : void 0 };
|
|
126
|
+
}"
|
|
127
|
+
/>
|
|
128
|
+
</InputGroup>
|
|
129
|
+
</Field>
|
|
130
|
+
|
|
131
|
+
<Field orientation="vertical">
|
|
132
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
133
|
+
<template #tooltip>
|
|
134
|
+
<Markdown
|
|
135
|
+
source="写入表单状态的嵌套键路径,使用 `.` 分隔,例如 `user.role`;写入值为选中选项的值"
|
|
136
|
+
block
|
|
137
|
+
class="prose prose-sm prose-zinc"
|
|
138
|
+
/>
|
|
139
|
+
</template>
|
|
140
|
+
{{ fieldTitle("binding") }}
|
|
141
|
+
</FieldLabel>
|
|
142
|
+
<InputGroup>
|
|
143
|
+
<InputGroupInput
|
|
144
|
+
v-model="pathText"
|
|
145
|
+
placeholder="例:user.role"
|
|
146
|
+
class="font-mono"
|
|
147
|
+
/>
|
|
148
|
+
</InputGroup>
|
|
149
|
+
</Field>
|
|
150
|
+
</div>
|
|
151
|
+
|
|
152
|
+
<div class="grid grid-cols-2 gap-3">
|
|
153
|
+
<Field orientation="vertical">
|
|
154
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
155
|
+
<template
|
|
156
|
+
v-if="fieldDescription('label')"
|
|
157
|
+
#tooltip
|
|
158
|
+
>
|
|
159
|
+
<Markdown
|
|
160
|
+
:source="fieldDescription('label')"
|
|
161
|
+
block
|
|
162
|
+
class="prose prose-sm prose-zinc"
|
|
163
|
+
/>
|
|
164
|
+
</template>
|
|
165
|
+
{{ fieldTitle("label") }}
|
|
166
|
+
</FieldLabel>
|
|
167
|
+
<LocaleField
|
|
168
|
+
translate-hint="form field label"
|
|
169
|
+
:model-value="value.label"
|
|
170
|
+
@update:model-value="(v) => value = { ...value, label: v }"
|
|
171
|
+
/>
|
|
172
|
+
</Field>
|
|
173
|
+
|
|
174
|
+
<Field orientation="vertical">
|
|
175
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
176
|
+
<template
|
|
177
|
+
v-if="fieldDescription('tooltip')"
|
|
178
|
+
#tooltip
|
|
179
|
+
>
|
|
180
|
+
<Markdown
|
|
181
|
+
:source="fieldDescription('tooltip')"
|
|
182
|
+
block
|
|
183
|
+
class="prose prose-sm prose-zinc"
|
|
184
|
+
/>
|
|
185
|
+
</template>
|
|
186
|
+
{{ fieldTitle("tooltip") }}
|
|
187
|
+
</FieldLabel>
|
|
188
|
+
<LocaleField
|
|
189
|
+
markdown
|
|
190
|
+
translate-hint="form field tooltip"
|
|
191
|
+
:model-value="value.tooltip"
|
|
192
|
+
@update:model-value="(v) => value = { ...value, tooltip: v }"
|
|
193
|
+
/>
|
|
194
|
+
</Field>
|
|
195
|
+
</div>
|
|
196
|
+
|
|
197
|
+
<Field orientation="vertical">
|
|
198
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
199
|
+
<template #tooltip>
|
|
200
|
+
<Markdown
|
|
201
|
+
:source="fieldDescription('items') ?? '\u5355\u9009\u6846\u7EC4\u53EF\u9009\u9879\u5217\u8868'"
|
|
202
|
+
block
|
|
203
|
+
class="prose prose-sm prose-zinc"
|
|
204
|
+
/>
|
|
205
|
+
</template>
|
|
206
|
+
{{ fieldTitle("items") }}
|
|
207
|
+
</FieldLabel>
|
|
208
|
+
|
|
209
|
+
<div class="flex flex-col gap-3">
|
|
210
|
+
<div
|
|
211
|
+
v-for="(item, index) in items"
|
|
212
|
+
:key="item.id"
|
|
213
|
+
data-slot="radio-group-item"
|
|
214
|
+
class="relative pt-8 grid grid-cols-3 gap-3 rounded border border-zinc-200 bg-zinc-50/40 p-3"
|
|
215
|
+
>
|
|
216
|
+
<InputGroupButton
|
|
217
|
+
variant="destructive"
|
|
218
|
+
size="icon-xs"
|
|
219
|
+
data-slot="radio-group-item-delete"
|
|
220
|
+
aria-label="删除选项"
|
|
221
|
+
class="absolute right-2 top-2 z-10"
|
|
222
|
+
@click="removeItem(index)"
|
|
223
|
+
>
|
|
224
|
+
<Icon icon="fluent:delete-20-regular" />
|
|
225
|
+
</InputGroupButton>
|
|
226
|
+
|
|
227
|
+
<Field orientation="vertical">
|
|
228
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
229
|
+
<template
|
|
230
|
+
v-if="itemFieldDescription('label')"
|
|
231
|
+
#tooltip
|
|
232
|
+
>
|
|
233
|
+
<Markdown
|
|
234
|
+
:source="itemFieldDescription('label')"
|
|
235
|
+
block
|
|
236
|
+
class="prose prose-sm prose-zinc"
|
|
237
|
+
/>
|
|
238
|
+
</template>
|
|
239
|
+
{{ itemFieldTitle("label") }}
|
|
240
|
+
</FieldLabel>
|
|
241
|
+
<LocaleField
|
|
242
|
+
markdown
|
|
243
|
+
translate-hint="radio option label"
|
|
244
|
+
:model-value="item.label"
|
|
245
|
+
@update:model-value="(v) => setItemLabel(index, v)"
|
|
246
|
+
/>
|
|
247
|
+
</Field>
|
|
248
|
+
|
|
249
|
+
<Field orientation="vertical">
|
|
250
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
251
|
+
<template
|
|
252
|
+
v-if="itemFieldDescription('value')"
|
|
253
|
+
#tooltip
|
|
254
|
+
>
|
|
255
|
+
<Markdown
|
|
256
|
+
:source="itemFieldDescription('value')"
|
|
257
|
+
block
|
|
258
|
+
class="prose prose-sm prose-zinc"
|
|
259
|
+
/>
|
|
260
|
+
</template>
|
|
261
|
+
{{ itemFieldTitle("value") }}
|
|
262
|
+
</FieldLabel>
|
|
263
|
+
<InputGroup>
|
|
264
|
+
<InputGroupAddon align="inline-start">
|
|
265
|
+
<DropdownMenu>
|
|
266
|
+
<DropdownMenuTrigger as-child>
|
|
267
|
+
<InputGroupButton
|
|
268
|
+
size="icon-sm"
|
|
269
|
+
as-child
|
|
270
|
+
>
|
|
271
|
+
<button
|
|
272
|
+
type="button"
|
|
273
|
+
data-slot="radio-group-item-kind-trigger"
|
|
274
|
+
class="text-zinc-500 transition-colors hover:text-zinc-700 [&_svg:not([class*='size-'])]:size-3.5"
|
|
275
|
+
aria-label="切换值类型"
|
|
276
|
+
>
|
|
277
|
+
<Icon
|
|
278
|
+
:icon="item.value.kind === 'number' ? 'fluent:number-symbol-20-regular' : 'fluent:textbox-20-regular'"
|
|
279
|
+
/>
|
|
280
|
+
</button>
|
|
281
|
+
</InputGroupButton>
|
|
282
|
+
</DropdownMenuTrigger>
|
|
283
|
+
<DropdownMenuContent align="start">
|
|
284
|
+
<DropdownMenuItem @select="setItemKind(index, 'text')">
|
|
285
|
+
<Icon icon="fluent:textbox-20-regular" />
|
|
286
|
+
<span>文本</span>
|
|
287
|
+
</DropdownMenuItem>
|
|
288
|
+
<DropdownMenuItem @select="setItemKind(index, 'number')">
|
|
289
|
+
<Icon icon="fluent:number-symbol-20-regular" />
|
|
290
|
+
<span>数字</span>
|
|
291
|
+
</DropdownMenuItem>
|
|
292
|
+
</DropdownMenuContent>
|
|
293
|
+
</DropdownMenu>
|
|
294
|
+
</InputGroupAddon>
|
|
295
|
+
|
|
296
|
+
<InputGroupInput
|
|
297
|
+
v-if="item.value.kind === 'text'"
|
|
298
|
+
:model-value="item.value.value"
|
|
299
|
+
placeholder="例:cny"
|
|
300
|
+
@update:model-value="(v) => setItemTextValue(index, String(v ?? ''))"
|
|
301
|
+
/>
|
|
302
|
+
<InputGroupNumberField
|
|
303
|
+
v-else
|
|
304
|
+
:model-value="item.value.value"
|
|
305
|
+
@update:model-value="(v) => setItemNumberValue(index, v)"
|
|
306
|
+
/>
|
|
307
|
+
</InputGroup>
|
|
308
|
+
</Field>
|
|
309
|
+
|
|
310
|
+
<Field orientation="vertical">
|
|
311
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
312
|
+
<template
|
|
313
|
+
v-if="itemFieldDescription('tooltip')"
|
|
314
|
+
#tooltip
|
|
315
|
+
>
|
|
316
|
+
<Markdown
|
|
317
|
+
:source="itemFieldDescription('tooltip')"
|
|
318
|
+
block
|
|
319
|
+
class="prose prose-sm prose-zinc"
|
|
320
|
+
/>
|
|
321
|
+
</template>
|
|
322
|
+
{{ itemFieldTitle("tooltip") }}
|
|
323
|
+
</FieldLabel>
|
|
324
|
+
<LocaleField
|
|
325
|
+
markdown
|
|
326
|
+
translate-hint="radio option tooltip"
|
|
327
|
+
:model-value="item.tooltip"
|
|
328
|
+
@update:model-value="(v) => setItemTooltip(index, v)"
|
|
329
|
+
/>
|
|
330
|
+
</Field>
|
|
331
|
+
</div>
|
|
332
|
+
|
|
333
|
+
<Button
|
|
334
|
+
type="button"
|
|
335
|
+
data-slot="radio-group-add-item"
|
|
336
|
+
class="w-full justify-center"
|
|
337
|
+
@click="addItem"
|
|
338
|
+
>
|
|
339
|
+
<Icon icon="fluent:add-20-regular" />
|
|
340
|
+
<span>增加选项</span>
|
|
341
|
+
</Button>
|
|
342
|
+
</div>
|
|
343
|
+
</Field>
|
|
344
|
+
|
|
345
|
+
<div class="grid grid-cols-3 gap-3">
|
|
346
|
+
<Field orientation="vertical">
|
|
347
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
348
|
+
<template #tooltip>
|
|
349
|
+
<Markdown
|
|
350
|
+
:source="fieldDescription('hidden') ?? '\u8FD4\u56DE `true` \u65F6\u5B57\u6BB5\u5728\u6240\u6709\u5E03\u5C40\u4E2D\u90FD\u4E0D\u6E32\u67D3'"
|
|
351
|
+
block
|
|
352
|
+
class="prose prose-sm prose-zinc"
|
|
353
|
+
/>
|
|
354
|
+
</template>
|
|
355
|
+
{{ fieldTitle("hidden") }}
|
|
356
|
+
</FieldLabel>
|
|
357
|
+
<ExpressionEditor
|
|
358
|
+
:model-value="value.hidden ?? ''"
|
|
359
|
+
placeholder="例:form.role == 'guest'"
|
|
360
|
+
result-type="bool"
|
|
361
|
+
class="min-h-10"
|
|
362
|
+
@update:model-value="(v) => value = { ...value, hidden: v.length > 0 ? v : void 0 }"
|
|
363
|
+
/>
|
|
364
|
+
</Field>
|
|
365
|
+
|
|
366
|
+
<Field orientation="vertical">
|
|
367
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
368
|
+
<template #tooltip>
|
|
369
|
+
<Markdown
|
|
370
|
+
:source="fieldDescription('disabled') ?? '\u8FD4\u56DE `true` \u65F6\u5355\u9009\u6846\u4ECD\u7136\u6E32\u67D3\u4F46\u4E0D\u53EF\u9009\u62E9'"
|
|
371
|
+
block
|
|
372
|
+
class="prose prose-sm prose-zinc"
|
|
373
|
+
/>
|
|
374
|
+
</template>
|
|
375
|
+
{{ fieldTitle("disabled") }}
|
|
376
|
+
</FieldLabel>
|
|
377
|
+
<ExpressionEditor
|
|
378
|
+
:model-value="value.disabled ?? ''"
|
|
379
|
+
placeholder="例:form.status == 'locked'"
|
|
380
|
+
result-type="bool"
|
|
381
|
+
class="min-h-10"
|
|
382
|
+
@update:model-value="(v) => value = { ...value, disabled: v.length > 0 ? v : void 0 }"
|
|
383
|
+
/>
|
|
384
|
+
</Field>
|
|
385
|
+
|
|
386
|
+
<Field orientation="vertical">
|
|
387
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
388
|
+
<template #tooltip>
|
|
389
|
+
<Markdown
|
|
390
|
+
:source="fieldDescription('readonly') ?? '\u8FD4\u56DE `true` \u65F6\u4EC5\u4EE5\u7EAF\u6587\u672C\u5C55\u793A\u5F53\u524D\u9009\u4E2D\u9009\u9879\u7684\u6807\u7B7E'"
|
|
391
|
+
block
|
|
392
|
+
class="prose prose-sm prose-zinc"
|
|
393
|
+
/>
|
|
394
|
+
</template>
|
|
395
|
+
{{ fieldTitle("readonly") }}
|
|
396
|
+
</FieldLabel>
|
|
397
|
+
<ExpressionEditor
|
|
398
|
+
:model-value="value.readonly ?? ''"
|
|
399
|
+
placeholder="例:form.id != null"
|
|
400
|
+
result-type="bool"
|
|
401
|
+
class="min-h-10"
|
|
402
|
+
@update:model-value="(v) => value = { ...value, readonly: v.length > 0 ? v : void 0 }"
|
|
403
|
+
/>
|
|
404
|
+
</Field>
|
|
405
|
+
</div>
|
|
406
|
+
|
|
407
|
+
<Field orientation="vertical">
|
|
408
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
409
|
+
<template #tooltip>
|
|
410
|
+
<Markdown
|
|
411
|
+
:source="fieldDescription('derived')"
|
|
412
|
+
block
|
|
413
|
+
class="prose prose-sm prose-zinc"
|
|
414
|
+
/>
|
|
415
|
+
</template>
|
|
416
|
+
{{ fieldTitle("derived") }}
|
|
417
|
+
</FieldLabel>
|
|
418
|
+
<DerivedValueEditor
|
|
419
|
+
:model-value="value.derived"
|
|
420
|
+
result-type="dyn"
|
|
421
|
+
placeholder="例:form.defaultRole"
|
|
422
|
+
@update:model-value="(v) => value = { ...value, derived: v }"
|
|
423
|
+
/>
|
|
424
|
+
</Field>
|
|
425
|
+
</div>
|
|
426
|
+
</template>
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { type Value } from './schema.js';
|
|
2
|
+
type __VLS_ModelProps = {
|
|
3
|
+
modelValue: Value;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
"update:modelValue": (value: {
|
|
7
|
+
readonly label?: readonly [{
|
|
8
|
+
readonly locale: "zh";
|
|
9
|
+
readonly message: string;
|
|
10
|
+
}, ...{
|
|
11
|
+
readonly locale: "en" | "ja" | "ko";
|
|
12
|
+
readonly message: string;
|
|
13
|
+
}[]] | undefined;
|
|
14
|
+
readonly disabled?: string | undefined;
|
|
15
|
+
readonly type: "com.shwfed.form.field.radio.group";
|
|
16
|
+
readonly id: string;
|
|
17
|
+
readonly hidden?: string | undefined;
|
|
18
|
+
readonly tooltip?: readonly [{
|
|
19
|
+
readonly locale: "zh";
|
|
20
|
+
readonly message: string;
|
|
21
|
+
}, ...{
|
|
22
|
+
readonly locale: "en" | "ja" | "ko";
|
|
23
|
+
readonly message: string;
|
|
24
|
+
}[]] | undefined;
|
|
25
|
+
readonly displayName?: string | undefined;
|
|
26
|
+
readonly compatibilityDate: "2026-05-17";
|
|
27
|
+
readonly items: readonly {
|
|
28
|
+
readonly label: readonly [{
|
|
29
|
+
readonly locale: "zh";
|
|
30
|
+
readonly message: string;
|
|
31
|
+
}, ...{
|
|
32
|
+
readonly locale: "en" | "ja" | "ko";
|
|
33
|
+
readonly message: string;
|
|
34
|
+
}[]];
|
|
35
|
+
readonly id: string;
|
|
36
|
+
readonly tooltip?: readonly [{
|
|
37
|
+
readonly locale: "zh";
|
|
38
|
+
readonly message: string;
|
|
39
|
+
}, ...{
|
|
40
|
+
readonly locale: "en" | "ja" | "ko";
|
|
41
|
+
readonly message: string;
|
|
42
|
+
}[]] | undefined;
|
|
43
|
+
readonly value: {
|
|
44
|
+
readonly value: string;
|
|
45
|
+
readonly kind: "text";
|
|
46
|
+
} | {
|
|
47
|
+
readonly value: number;
|
|
48
|
+
readonly kind: "number";
|
|
49
|
+
};
|
|
50
|
+
}[];
|
|
51
|
+
readonly readonly?: string | undefined;
|
|
52
|
+
readonly binding?: string | undefined;
|
|
53
|
+
readonly derived?: {
|
|
54
|
+
readonly mode: "formula" | "prefill";
|
|
55
|
+
readonly expression: string;
|
|
56
|
+
} | undefined;
|
|
57
|
+
}) => any;
|
|
58
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
59
|
+
"onUpdate:modelValue"?: ((value: {
|
|
60
|
+
readonly label?: readonly [{
|
|
61
|
+
readonly locale: "zh";
|
|
62
|
+
readonly message: string;
|
|
63
|
+
}, ...{
|
|
64
|
+
readonly locale: "en" | "ja" | "ko";
|
|
65
|
+
readonly message: string;
|
|
66
|
+
}[]] | undefined;
|
|
67
|
+
readonly disabled?: string | undefined;
|
|
68
|
+
readonly type: "com.shwfed.form.field.radio.group";
|
|
69
|
+
readonly id: string;
|
|
70
|
+
readonly hidden?: string | undefined;
|
|
71
|
+
readonly tooltip?: readonly [{
|
|
72
|
+
readonly locale: "zh";
|
|
73
|
+
readonly message: string;
|
|
74
|
+
}, ...{
|
|
75
|
+
readonly locale: "en" | "ja" | "ko";
|
|
76
|
+
readonly message: string;
|
|
77
|
+
}[]] | undefined;
|
|
78
|
+
readonly displayName?: string | undefined;
|
|
79
|
+
readonly compatibilityDate: "2026-05-17";
|
|
80
|
+
readonly items: readonly {
|
|
81
|
+
readonly label: readonly [{
|
|
82
|
+
readonly locale: "zh";
|
|
83
|
+
readonly message: string;
|
|
84
|
+
}, ...{
|
|
85
|
+
readonly locale: "en" | "ja" | "ko";
|
|
86
|
+
readonly message: string;
|
|
87
|
+
}[]];
|
|
88
|
+
readonly id: string;
|
|
89
|
+
readonly tooltip?: readonly [{
|
|
90
|
+
readonly locale: "zh";
|
|
91
|
+
readonly message: string;
|
|
92
|
+
}, ...{
|
|
93
|
+
readonly locale: "en" | "ja" | "ko";
|
|
94
|
+
readonly message: string;
|
|
95
|
+
}[]] | undefined;
|
|
96
|
+
readonly value: {
|
|
97
|
+
readonly value: string;
|
|
98
|
+
readonly kind: "text";
|
|
99
|
+
} | {
|
|
100
|
+
readonly value: number;
|
|
101
|
+
readonly kind: "number";
|
|
102
|
+
};
|
|
103
|
+
}[];
|
|
104
|
+
readonly readonly?: string | undefined;
|
|
105
|
+
readonly binding?: string | undefined;
|
|
106
|
+
readonly derived?: {
|
|
107
|
+
readonly mode: "formula" | "prefill";
|
|
108
|
+
readonly expression: string;
|
|
109
|
+
} | undefined;
|
|
110
|
+
}) => any) | undefined;
|
|
111
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
112
|
+
declare const _default: typeof __VLS_export;
|
|
113
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Value } from './schema.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
fieldId: string;
|
|
4
|
+
config: Value;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|