@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
|
@@ -42,6 +42,7 @@ export declare function schema(configure: (env: Environment) => void, _blockRef:
|
|
|
42
42
|
};
|
|
43
43
|
readonly media?: string | undefined;
|
|
44
44
|
}[];
|
|
45
|
+
readonly readonly?: string | undefined;
|
|
45
46
|
}, Schema.Struct<{
|
|
46
47
|
fields: Schema.Array$<Schema.Schema<any, any, never>>;
|
|
47
48
|
layouts: Schema.refine<readonly {
|
|
@@ -77,6 +78,7 @@ export declare function schema(configure: (env: Environment) => void, _blockRef:
|
|
|
77
78
|
}>>>;
|
|
78
79
|
kind: Schema.tag<"shwfed.component.form">;
|
|
79
80
|
initial: Schema.optional<Schema.Schema<string, string, never>>;
|
|
81
|
+
readonly: Schema.optional<Schema.Schema<string, string, never>>;
|
|
80
82
|
}>>;
|
|
81
83
|
}>;
|
|
82
84
|
export declare function defaultBody(): Record<string, unknown>;
|
package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.d.vue.ts
CHANGED
|
@@ -13,6 +13,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
13
13
|
readonly id: string;
|
|
14
14
|
readonly table: {
|
|
15
15
|
readonly style?: string | undefined;
|
|
16
|
+
readonly id?: string | undefined;
|
|
17
|
+
readonly displayName?: string | undefined;
|
|
16
18
|
readonly columns: readonly any[];
|
|
17
19
|
readonly kind: "shwfed.component.table";
|
|
18
20
|
readonly groups: readonly {
|
|
@@ -124,6 +126,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
124
126
|
};
|
|
125
127
|
readonly media?: string | undefined;
|
|
126
128
|
}[];
|
|
129
|
+
readonly readonly?: string | undefined;
|
|
127
130
|
} | undefined;
|
|
128
131
|
readonly cellStyle?: string | undefined;
|
|
129
132
|
readonly pagination?: {
|
|
@@ -182,6 +185,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
182
185
|
readonly id: string;
|
|
183
186
|
readonly table: {
|
|
184
187
|
readonly style?: string | undefined;
|
|
188
|
+
readonly id?: string | undefined;
|
|
189
|
+
readonly displayName?: string | undefined;
|
|
185
190
|
readonly columns: readonly any[];
|
|
186
191
|
readonly kind: "shwfed.component.table";
|
|
187
192
|
readonly groups: readonly {
|
|
@@ -293,6 +298,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
293
298
|
};
|
|
294
299
|
readonly media?: string | undefined;
|
|
295
300
|
}[];
|
|
301
|
+
readonly readonly?: string | undefined;
|
|
296
302
|
} | undefined;
|
|
297
303
|
readonly cellStyle?: string | undefined;
|
|
298
304
|
readonly pagination?: {
|
package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
13
13
|
readonly id: string;
|
|
14
14
|
readonly table: {
|
|
15
15
|
readonly style?: string | undefined;
|
|
16
|
+
readonly id?: string | undefined;
|
|
17
|
+
readonly displayName?: string | undefined;
|
|
16
18
|
readonly columns: readonly any[];
|
|
17
19
|
readonly kind: "shwfed.component.table";
|
|
18
20
|
readonly groups: readonly {
|
|
@@ -124,6 +126,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
124
126
|
};
|
|
125
127
|
readonly media?: string | undefined;
|
|
126
128
|
}[];
|
|
129
|
+
readonly readonly?: string | undefined;
|
|
127
130
|
} | undefined;
|
|
128
131
|
readonly cellStyle?: string | undefined;
|
|
129
132
|
readonly pagination?: {
|
|
@@ -182,6 +185,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
182
185
|
readonly id: string;
|
|
183
186
|
readonly table: {
|
|
184
187
|
readonly style?: string | undefined;
|
|
188
|
+
readonly id?: string | undefined;
|
|
189
|
+
readonly displayName?: string | undefined;
|
|
185
190
|
readonly columns: readonly any[];
|
|
186
191
|
readonly kind: "shwfed.component.table";
|
|
187
192
|
readonly groups: readonly {
|
|
@@ -293,6 +298,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
293
298
|
};
|
|
294
299
|
readonly media?: string | undefined;
|
|
295
300
|
}[];
|
|
301
|
+
readonly readonly?: string | undefined;
|
|
296
302
|
} | undefined;
|
|
297
303
|
readonly cellStyle?: string | undefined;
|
|
298
304
|
readonly pagination?: {
|
package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts
CHANGED
|
@@ -8,6 +8,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
8
8
|
readonly id: string;
|
|
9
9
|
readonly table: {
|
|
10
10
|
readonly style?: string | undefined;
|
|
11
|
+
readonly id?: string | undefined;
|
|
12
|
+
readonly displayName?: string | undefined;
|
|
11
13
|
readonly columns: readonly any[];
|
|
12
14
|
readonly kind: "shwfed.component.table";
|
|
13
15
|
readonly groups: readonly {
|
|
@@ -119,6 +121,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
119
121
|
};
|
|
120
122
|
readonly media?: string | undefined;
|
|
121
123
|
}[];
|
|
124
|
+
readonly readonly?: string | undefined;
|
|
122
125
|
} | undefined;
|
|
123
126
|
readonly cellStyle?: string | undefined;
|
|
124
127
|
readonly pagination?: {
|
|
@@ -177,6 +180,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
177
180
|
readonly id: string;
|
|
178
181
|
readonly table: {
|
|
179
182
|
readonly style?: string | undefined;
|
|
183
|
+
readonly id?: string | undefined;
|
|
184
|
+
readonly displayName?: string | undefined;
|
|
180
185
|
readonly columns: readonly any[];
|
|
181
186
|
readonly kind: "shwfed.component.table";
|
|
182
187
|
readonly groups: readonly {
|
|
@@ -288,6 +293,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
288
293
|
};
|
|
289
294
|
readonly media?: string | undefined;
|
|
290
295
|
}[];
|
|
296
|
+
readonly readonly?: string | undefined;
|
|
291
297
|
} | undefined;
|
|
292
298
|
readonly cellStyle?: string | undefined;
|
|
293
299
|
readonly pagination?: {
|
package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
8
8
|
readonly id: string;
|
|
9
9
|
readonly table: {
|
|
10
10
|
readonly style?: string | undefined;
|
|
11
|
+
readonly id?: string | undefined;
|
|
12
|
+
readonly displayName?: string | undefined;
|
|
11
13
|
readonly columns: readonly any[];
|
|
12
14
|
readonly kind: "shwfed.component.table";
|
|
13
15
|
readonly groups: readonly {
|
|
@@ -119,6 +121,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
119
121
|
};
|
|
120
122
|
readonly media?: string | undefined;
|
|
121
123
|
}[];
|
|
124
|
+
readonly readonly?: string | undefined;
|
|
122
125
|
} | undefined;
|
|
123
126
|
readonly cellStyle?: string | undefined;
|
|
124
127
|
readonly pagination?: {
|
|
@@ -177,6 +180,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
177
180
|
readonly id: string;
|
|
178
181
|
readonly table: {
|
|
179
182
|
readonly style?: string | undefined;
|
|
183
|
+
readonly id?: string | undefined;
|
|
184
|
+
readonly displayName?: string | undefined;
|
|
180
185
|
readonly columns: readonly any[];
|
|
181
186
|
readonly kind: "shwfed.component.table";
|
|
182
187
|
readonly groups: readonly {
|
|
@@ -288,6 +293,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
288
293
|
};
|
|
289
294
|
readonly media?: string | undefined;
|
|
290
295
|
}[];
|
|
296
|
+
readonly readonly?: string | undefined;
|
|
291
297
|
} | undefined;
|
|
292
298
|
readonly cellStyle?: string | undefined;
|
|
293
299
|
readonly pagination?: {
|
|
@@ -23,6 +23,8 @@ export declare function schema(configure: (env: Environment) => void, _blockRef:
|
|
|
23
23
|
compatibilityDate: Schema.tag<"2026-05-06">;
|
|
24
24
|
table: Schema.refine<{
|
|
25
25
|
readonly style?: string | undefined;
|
|
26
|
+
readonly id?: string | undefined;
|
|
27
|
+
readonly displayName?: string | undefined;
|
|
26
28
|
readonly columns: readonly any[];
|
|
27
29
|
readonly kind: "shwfed.component.table";
|
|
28
30
|
readonly groups: readonly {
|
|
@@ -134,6 +136,7 @@ export declare function schema(configure: (env: Environment) => void, _blockRef:
|
|
|
134
136
|
};
|
|
135
137
|
readonly media?: string | undefined;
|
|
136
138
|
}[];
|
|
139
|
+
readonly readonly?: string | undefined;
|
|
137
140
|
} | undefined;
|
|
138
141
|
readonly cellStyle?: string | undefined;
|
|
139
142
|
readonly pagination?: {
|
|
@@ -185,6 +188,8 @@ export declare function schema(configure: (env: Environment) => void, _blockRef:
|
|
|
185
188
|
} | undefined;
|
|
186
189
|
}, Schema.Struct<{
|
|
187
190
|
kind: Schema.tag<"shwfed.component.table">;
|
|
191
|
+
id: Schema.optional<Schema.refine<string, typeof Schema.String>>;
|
|
192
|
+
displayName: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
188
193
|
columns: Schema.Array$<Schema.Schema<any, any, never>>;
|
|
189
194
|
groups: Schema.optionalWith<Schema.Array$<Schema.Struct<{
|
|
190
195
|
id: Schema.refine<string, typeof Schema.String>;
|
|
@@ -301,6 +306,7 @@ export declare function schema(configure: (env: Environment) => void, _blockRef:
|
|
|
301
306
|
};
|
|
302
307
|
readonly media?: string | undefined;
|
|
303
308
|
}[];
|
|
309
|
+
readonly readonly?: string | undefined;
|
|
304
310
|
}, Schema.Struct<{
|
|
305
311
|
fields: Schema.Array$<Schema.Schema<any, any, never>>;
|
|
306
312
|
layouts: Schema.refine<readonly {
|
|
@@ -336,6 +342,7 @@ export declare function schema(configure: (env: Environment) => void, _blockRef:
|
|
|
336
342
|
}>>>;
|
|
337
343
|
kind: Schema.tag<"shwfed.component.form">;
|
|
338
344
|
initial: Schema.optional<Schema.Schema<string, string, never>>;
|
|
345
|
+
readonly: Schema.optional<Schema.Schema<string, string, never>>;
|
|
339
346
|
}>>>;
|
|
340
347
|
cellStyle: Schema.optional<Schema.Schema<string, string, never>>;
|
|
341
348
|
style: Schema.optional<typeof Schema.String>;
|
|
@@ -10,6 +10,7 @@ import LayoutMetaStrip from "../../../../block-layout-editor/meta-strip.vue";
|
|
|
10
10
|
import { Button } from "../../../../ui/button";
|
|
11
11
|
import { Field, FieldLabel } from "../../../../ui/field";
|
|
12
12
|
import { Locale as LocaleField } from "../../../../ui/locale";
|
|
13
|
+
import { Markdown } from "../../../../ui/markdown";
|
|
13
14
|
import { ScrollArea } from "../../../../ui/scroll-area";
|
|
14
15
|
import { Separator } from "../../../../ui/separator";
|
|
15
16
|
import { Tooltip, TooltipContent, TooltipTrigger } from "../../../../ui/tooltip";
|
|
@@ -19,6 +20,7 @@ import {
|
|
|
19
20
|
import { BREADCRUMB_EXTENSION_KEY } from "../../../breadcrumb-extension";
|
|
20
21
|
import { findBlock } from "../../../utils/resolve";
|
|
21
22
|
import { useSlotEditor } from "../../../use-editor";
|
|
23
|
+
import { TabPaneMeta, getStructFieldDescription, getStructFieldTitle } from "./schema";
|
|
22
24
|
defineOptions({ name: "ShwfedBlockTabsConfig" });
|
|
23
25
|
const block = defineModel({ type: null, ...{ required: true } });
|
|
24
26
|
const props = defineProps({
|
|
@@ -26,6 +28,8 @@ const props = defineProps({
|
|
|
26
28
|
});
|
|
27
29
|
const configure = computed(() => props.configure ?? (() => {
|
|
28
30
|
}));
|
|
31
|
+
const paneFieldTitle = (f) => getStructFieldTitle(TabPaneMeta, f) ?? f;
|
|
32
|
+
const paneFieldDescription = (f) => getStructFieldDescription(TabPaneMeta, f);
|
|
29
33
|
const { locale } = useI18n();
|
|
30
34
|
const tabs = computed(() => block.value.tabs);
|
|
31
35
|
const activePaneId = ref(tabs.value[0]?.id ?? "");
|
|
@@ -446,11 +450,21 @@ function deleteBlocksFromActive(ids) {
|
|
|
446
450
|
<template v-else-if="activePane && activeShell">
|
|
447
451
|
<Field orientation="vertical">
|
|
448
452
|
<FieldLabel class="text-xs text-zinc-500">
|
|
449
|
-
|
|
453
|
+
<template
|
|
454
|
+
v-if="paneFieldDescription('label')"
|
|
455
|
+
#tooltip
|
|
456
|
+
>
|
|
457
|
+
<Markdown
|
|
458
|
+
:source="paneFieldDescription('label')"
|
|
459
|
+
block
|
|
460
|
+
class="prose prose-sm prose-zinc"
|
|
461
|
+
/>
|
|
462
|
+
</template>
|
|
463
|
+
{{ paneFieldTitle("label") }}
|
|
450
464
|
</FieldLabel>
|
|
451
465
|
<LocaleField
|
|
452
466
|
:model-value="activePane.label"
|
|
453
|
-
translate-hint="
|
|
467
|
+
:translate-hint="paneFieldTitle('label')"
|
|
454
468
|
@update:model-value="(v) => updatePaneLabel(activePane.id, v)"
|
|
455
469
|
/>
|
|
456
470
|
</Field>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Schema } from 'effect';
|
|
2
2
|
import type { Environment } from '../../../../../vendor/cel-js/lib/index.js';
|
|
3
|
+
export { getStructFieldDescription, getStructFieldTitle } from '../../../../table/utils/schema-meta.js';
|
|
3
4
|
type AnySchema = Schema.Schema<any, any, never>;
|
|
4
5
|
export declare const type: "com.shwfed.block.tabs";
|
|
5
6
|
export declare const compatibilityDate: "2026-05-06";
|
|
@@ -17,6 +18,15 @@ export declare const metadata: {
|
|
|
17
18
|
readonly max: number;
|
|
18
19
|
};
|
|
19
20
|
};
|
|
21
|
+
export declare const TabPaneMeta: Schema.Struct<{
|
|
22
|
+
label: Schema.TupleType<readonly [Schema.Struct<{
|
|
23
|
+
locale: Schema.Literal<["zh"]>;
|
|
24
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
25
|
+
}>], [Schema.Struct<{
|
|
26
|
+
locale: Schema.Literal<["ja", "en", "ko"]>;
|
|
27
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
28
|
+
}>]>;
|
|
29
|
+
}>;
|
|
20
30
|
export declare function schema(configure: (env: Environment) => void, blockRef: AnySchema): Schema.refine<{
|
|
21
31
|
readonly type: "com.shwfed.block.tabs";
|
|
22
32
|
readonly id: string;
|
|
@@ -87,14 +97,6 @@ export declare function schema(configure: (env: Environment) => void, blockRef:
|
|
|
87
97
|
}[];
|
|
88
98
|
};
|
|
89
99
|
}[], Schema.filter<Schema.Array$<Schema.Struct<{
|
|
90
|
-
id: Schema.refine<string, typeof Schema.String>;
|
|
91
|
-
label: Schema.TupleType<readonly [Schema.Struct<{
|
|
92
|
-
locale: Schema.Literal<["zh"]>;
|
|
93
|
-
message: Schema.SchemaClass<string, string, never>;
|
|
94
|
-
}>], [Schema.Struct<{
|
|
95
|
-
locale: Schema.Literal<["ja", "en", "ko"]>;
|
|
96
|
-
message: Schema.SchemaClass<string, string, never>;
|
|
97
|
-
}>]>;
|
|
98
100
|
slot: Schema.refine<{
|
|
99
101
|
readonly blocks: readonly any[];
|
|
100
102
|
readonly layouts: readonly {
|
|
@@ -148,8 +150,15 @@ export declare function schema(configure: (env: Environment) => void, blockRef:
|
|
|
148
150
|
}>;
|
|
149
151
|
}>>>;
|
|
150
152
|
}>>;
|
|
153
|
+
label: Schema.TupleType<readonly [Schema.Struct<{
|
|
154
|
+
locale: Schema.Literal<["zh"]>;
|
|
155
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
156
|
+
}>], [Schema.Struct<{
|
|
157
|
+
locale: Schema.Literal<["ja", "en", "ko"]>;
|
|
158
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
159
|
+
}>]>;
|
|
160
|
+
id: Schema.refine<string, typeof Schema.String>;
|
|
151
161
|
}>>>>;
|
|
152
162
|
}>>;
|
|
153
163
|
export declare function defaultBody(): Record<string, unknown>;
|
|
154
164
|
export type Value = Schema.Schema.Type<ReturnType<typeof schema>>;
|
|
155
|
-
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
import { Locale } from "../../../../../share/locale.js";
|
|
3
3
|
import { Slot, defaultSlot } from "../../../../../share/layout.js";
|
|
4
|
+
export { getStructFieldDescription, getStructFieldTitle } from "../../../../table/utils/schema-meta.js";
|
|
4
5
|
export const type = "com.shwfed.block.tabs";
|
|
5
6
|
export const compatibilityDate = "2026-05-06";
|
|
6
7
|
export const metadata = {
|
|
@@ -9,6 +10,12 @@ export const metadata = {
|
|
|
9
10
|
w: { initial: 12, min: 4, max: Infinity },
|
|
10
11
|
h: { initial: 6, min: 4, max: Infinity }
|
|
11
12
|
};
|
|
13
|
+
export const TabPaneMeta = Schema.Struct({
|
|
14
|
+
label: Locale.annotations({
|
|
15
|
+
title: "\u6807\u7B7E\u540D",
|
|
16
|
+
description: "\u8BE5\u6807\u7B7E\u9875\u7684\u672C\u5730\u5316\u663E\u793A\u540D"
|
|
17
|
+
})
|
|
18
|
+
});
|
|
12
19
|
const MAX_NESTING_DEPTH = 8;
|
|
13
20
|
function tabsNestingExceeds(value, maxDepth, currentDepth = 0) {
|
|
14
21
|
if (currentDepth > maxDepth) return true;
|
|
@@ -30,10 +37,7 @@ export function schema(configure, blockRef) {
|
|
|
30
37
|
const TabsSlot = Slot(blockRef, configure);
|
|
31
38
|
const TabPane = Schema.Struct({
|
|
32
39
|
id: Schema.UUID.annotations({ description: "\u6807\u7B7E\u9875\u552F\u4E00\u6807\u8BC6" }),
|
|
33
|
-
|
|
34
|
-
title: "\u6807\u7B7E\u540D",
|
|
35
|
-
description: "\u8BE5\u6807\u7B7E\u9875\u7684\u672C\u5730\u5316\u663E\u793A\u540D"
|
|
36
|
-
}),
|
|
40
|
+
...TabPaneMeta.fields,
|
|
37
41
|
slot: TabsSlot.annotations({
|
|
38
42
|
title: "\u5185\u5BB9",
|
|
39
43
|
description: "\u6807\u7B7E\u9875\u5185\u90E8\u7684\u5757\u4E0E\u5E03\u5C40"
|
package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.line/config.d.vue.ts
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
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 type: "com.shwfed.block.chart.line";
|
|
8
|
+
readonly id: string;
|
|
9
|
+
readonly caption?: readonly [{
|
|
10
|
+
readonly locale: "zh";
|
|
11
|
+
readonly message: string;
|
|
12
|
+
}, ...{
|
|
13
|
+
readonly locale: "en" | "ja" | "ko";
|
|
14
|
+
readonly message: string;
|
|
15
|
+
}[]] | undefined;
|
|
16
|
+
readonly x: string;
|
|
17
|
+
readonly y: readonly {
|
|
18
|
+
readonly label?: readonly [{
|
|
19
|
+
readonly locale: "zh";
|
|
20
|
+
readonly message: string;
|
|
21
|
+
}, ...{
|
|
22
|
+
readonly locale: "en" | "ja" | "ko";
|
|
23
|
+
readonly message: string;
|
|
24
|
+
}[]] | undefined;
|
|
25
|
+
readonly id: string;
|
|
26
|
+
readonly color?: string | undefined;
|
|
27
|
+
readonly value: string;
|
|
28
|
+
}[];
|
|
29
|
+
readonly displayName?: string | undefined;
|
|
30
|
+
readonly compatibilityDate: "2026-05-17";
|
|
31
|
+
readonly dataSources: readonly {
|
|
32
|
+
readonly name: string;
|
|
33
|
+
readonly data: string;
|
|
34
|
+
readonly id: string;
|
|
35
|
+
readonly request?: string | undefined;
|
|
36
|
+
}[];
|
|
37
|
+
readonly curveType: "linear" | "step" | "monotoneX" | "natural" | "basis" | "cardinal" | "catmullRom" | "stepAfter" | "stepBefore";
|
|
38
|
+
readonly lineWidth: number;
|
|
39
|
+
}) => any;
|
|
40
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
41
|
+
"onUpdate:modelValue"?: ((value: {
|
|
42
|
+
readonly type: "com.shwfed.block.chart.line";
|
|
43
|
+
readonly id: string;
|
|
44
|
+
readonly caption?: readonly [{
|
|
45
|
+
readonly locale: "zh";
|
|
46
|
+
readonly message: string;
|
|
47
|
+
}, ...{
|
|
48
|
+
readonly locale: "en" | "ja" | "ko";
|
|
49
|
+
readonly message: string;
|
|
50
|
+
}[]] | undefined;
|
|
51
|
+
readonly x: string;
|
|
52
|
+
readonly y: readonly {
|
|
53
|
+
readonly label?: readonly [{
|
|
54
|
+
readonly locale: "zh";
|
|
55
|
+
readonly message: string;
|
|
56
|
+
}, ...{
|
|
57
|
+
readonly locale: "en" | "ja" | "ko";
|
|
58
|
+
readonly message: string;
|
|
59
|
+
}[]] | undefined;
|
|
60
|
+
readonly id: string;
|
|
61
|
+
readonly color?: string | undefined;
|
|
62
|
+
readonly value: string;
|
|
63
|
+
}[];
|
|
64
|
+
readonly displayName?: string | undefined;
|
|
65
|
+
readonly compatibilityDate: "2026-05-17";
|
|
66
|
+
readonly dataSources: readonly {
|
|
67
|
+
readonly name: string;
|
|
68
|
+
readonly data: string;
|
|
69
|
+
readonly id: string;
|
|
70
|
+
readonly request?: string | undefined;
|
|
71
|
+
}[];
|
|
72
|
+
readonly curveType: "linear" | "step" | "monotoneX" | "natural" | "basis" | "cardinal" | "catmullRom" | "stepAfter" | "stepBefore";
|
|
73
|
+
readonly lineWidth: number;
|
|
74
|
+
}) => any) | undefined;
|
|
75
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
76
|
+
declare const _default: typeof __VLS_export;
|
|
77
|
+
export default _default;
|