@shwfed/config 2.3.29 → 2.4.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/mcp.mjs +47 -9
- package/dist/module.json +1 -1
- package/dist/preview/assets/{config-Diuyh0Ex.js → config-BovRv7Mw.js} +1 -1
- package/dist/preview/assets/{config-rpX_Mc6I.js → config-ByTxMBcK.js} +1 -1
- package/dist/preview/assets/{config-DhsbcNzx.js → config-C7xYpB3N.js} +1 -1
- package/dist/preview/assets/{config-CZOeZ8ty.js → config-CH9wsYX8.js} +1 -1
- package/dist/preview/assets/{config-aK67Rsw5.js → config-Ch5dL5lp.js} +1 -1
- package/dist/preview/assets/{config-Bl80ye-i.js → config-D50Rl2n_.js} +1 -1
- package/dist/preview/assets/{config-BJzUh1_G.js → config-DiwVK32V.js} +1 -1
- package/dist/preview/assets/{config-6IiXCmyu.js → config-EKVeWrbS.js} +1 -1
- package/dist/preview/assets/{config-DaZD4ZSa.js → config-Q86AhjHq.js} +1 -1
- package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-C_jU8d47.js → definition.vue_vue_type_script_setup_true_lang-D8NPPbjZ.js} +1 -1
- package/dist/preview/assets/index-65eB1l4r.css +1 -0
- package/dist/preview/assets/index-CIrlYN0M.js +1 -0
- package/dist/preview/assets/index-DUDlWaQI.js +661 -0
- package/dist/preview/assets/runtime-BP7zXnyG.js +1 -0
- package/dist/preview/assets/runtime-BQSwNpLC.js +1 -0
- package/dist/preview/assets/runtime-BwR_BbTu.js +1 -0
- package/dist/preview/assets/runtime-Ch3JIgUQ.js +1 -0
- package/dist/preview/assets/runtime-CjvZcU7X.js +1 -0
- package/dist/preview/assets/runtime-Cunk4vOs.js +1 -0
- package/dist/preview/assets/runtime-D34aQN00.js +1 -0
- package/dist/preview/assets/runtime-a9TOQRwD.js +1 -0
- package/dist/preview/assets/runtime-aPt-bW3F.js +1 -0
- package/dist/preview/index.html +2 -2
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/runtime.vue +7 -4
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/runtime.vue +6 -0
- 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 +2 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/config.vue.d.ts +2 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.d.vue.ts +2 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue.d.ts +2 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +3 -0
- package/dist/runtime/components/form/ValidationRulesField.d.vue.ts +16 -0
- package/dist/runtime/components/form/ValidationRulesField.vue +207 -0
- package/dist/runtime/components/form/ValidationRulesField.vue.d.ts +16 -0
- package/dist/runtime/components/form/config.vue +32 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/runtime.vue +18 -2
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/runtime.vue +18 -2
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/runtime.vue +18 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.date/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/runtime.vue +18 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/runtime.vue +18 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/runtime.vue +18 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/runtime.vue +18 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/runtime.vue +18 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/runtime.vue +18 -2
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/runtime.vue +18 -2
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/runtime.vue +18 -2
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-04-29/com.shwfed.form.field.combobox.single/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/runtime.vue +18 -2
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/runtime.vue +18 -2
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/runtime.vue +18 -2
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.list/schema.d.ts +30 -0
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/runtime.vue +18 -2
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.checkbox.group/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/runtime.vue +18 -2
- package/dist/runtime/components/form/fields/2026-05-17/com.shwfed.form.field.radio.group/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/config.vue +51 -9
- package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/runtime.vue +22 -2
- package/dist/runtime/components/form/fields/2026-05-18/com.shwfed.form.field.table/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-05-20/com.shwfed.form.field.collapsible/runtime.vue +26 -0
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/runtime.vue +18 -2
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.month/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/runtime.vue +18 -2
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/runtime.vue +18 -2
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/runtime.vue +18 -2
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/runtime.vue +18 -2
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/runtime.vue +18 -2
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/runtime.vue +18 -2
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/schema.d.ts +18 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue +38 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +24 -0
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/runtime.vue +18 -2
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/schema.d.ts +18 -0
- package/dist/runtime/components/form/index.d.vue.ts +1 -0
- package/dist/runtime/components/form/index.vue +16 -5
- package/dist/runtime/components/form/index.vue.d.ts +1 -0
- package/dist/runtime/components/form/schema.d.ts +4 -0
- package/dist/runtime/components/form/schema.js +6 -2
- package/dist/runtime/components/form/utils/common.d.ts +42 -0
- package/dist/runtime/components/form/utils/common.js +40 -2
- package/dist/runtime/components/form/utils/validation.d.ts +85 -0
- package/dist/runtime/components/form/utils/validation.js +113 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/config.vue +0 -22
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/header.vue +3 -15
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/schema.d.ts +0 -1
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/schema.js +0 -4
- package/dist/runtime/components/table/config.d.vue.ts +4 -2
- package/dist/runtime/components/table/config.vue +59 -52
- package/dist/runtime/components/table/config.vue.d.ts +4 -2
- package/dist/runtime/components/table/schema.d.ts +4 -0
- package/dist/runtime/components/table/utils/shared.js +2 -2
- package/dist/runtime/components/ui/field/FieldError.vue +1 -1
- package/dist/runtime/components/ui/field/FieldMessages.d.vue.ts +9 -0
- package/dist/runtime/components/ui/field/FieldMessages.vue +21 -0
- package/dist/runtime/components/ui/field/FieldMessages.vue.d.ts +9 -0
- package/dist/runtime/components/ui/field/FieldWarning.d.vue.ts +20 -0
- package/dist/runtime/components/ui/field/FieldWarning.vue +51 -0
- package/dist/runtime/components/ui/field/FieldWarning.vue.d.ts +20 -0
- package/dist/runtime/components/ui/field/index.d.ts +2 -0
- package/dist/runtime/components/ui/field/index.js +10 -4
- package/dist/runtime/components/ui/locale/Locale.d.vue.ts +2 -0
- package/dist/runtime/components/ui/locale/Locale.vue +165 -155
- package/dist/runtime/components/ui/locale/Locale.vue.d.ts +2 -0
- package/dist/runtime/share/form-validate.d.ts +18 -0
- package/dist/runtime/share/form-validate.js +8 -0
- package/package.json +1 -1
- package/dist/preview/assets/index-2eQR4s3q.css +0 -1
- package/dist/preview/assets/index-DEF3_MKr.js +0 -659
- package/dist/preview/assets/index-Df-thth9.js +0 -1
- package/dist/preview/assets/runtime-3p1K6te5.js +0 -1
- package/dist/preview/assets/runtime-BcLnafic.js +0 -1
- package/dist/preview/assets/runtime-CSaV-359.js +0 -1
- package/dist/preview/assets/runtime-CjR8Vi5N.js +0 -1
- package/dist/preview/assets/runtime-D_fJCKX_.js +0 -1
- package/dist/preview/assets/runtime-DpeCgGEG.js +0 -1
- package/dist/preview/assets/runtime-K2a1x0TJ.js +0 -1
- package/dist/preview/assets/runtime-g9Zu3VNQ.js +0 -1
- package/dist/preview/assets/runtime-jTnh_6Dm.js +0 -1
|
@@ -14,8 +14,20 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
14
14
|
readonly locale: "en" | "ja" | "ko";
|
|
15
15
|
readonly message: string;
|
|
16
16
|
}[]];
|
|
17
|
+
readonly required?: string | undefined;
|
|
17
18
|
readonly displayName?: string | undefined;
|
|
18
19
|
readonly compatibilityDate: "2026-04-22";
|
|
20
|
+
readonly validations?: readonly {
|
|
21
|
+
readonly message: readonly [{
|
|
22
|
+
readonly locale: "zh";
|
|
23
|
+
readonly message: string;
|
|
24
|
+
}, ...{
|
|
25
|
+
readonly locale: "en" | "ja" | "ko";
|
|
26
|
+
readonly message: string;
|
|
27
|
+
}[]];
|
|
28
|
+
readonly warning?: boolean | undefined;
|
|
29
|
+
readonly when: string;
|
|
30
|
+
}[] | undefined;
|
|
19
31
|
}) => any;
|
|
20
32
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
21
33
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -29,8 +41,20 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
29
41
|
readonly locale: "en" | "ja" | "ko";
|
|
30
42
|
readonly message: string;
|
|
31
43
|
}[]];
|
|
44
|
+
readonly required?: string | undefined;
|
|
32
45
|
readonly displayName?: string | undefined;
|
|
33
46
|
readonly compatibilityDate: "2026-04-22";
|
|
47
|
+
readonly validations?: readonly {
|
|
48
|
+
readonly message: readonly [{
|
|
49
|
+
readonly locale: "zh";
|
|
50
|
+
readonly message: string;
|
|
51
|
+
}, ...{
|
|
52
|
+
readonly locale: "en" | "ja" | "ko";
|
|
53
|
+
readonly message: string;
|
|
54
|
+
}[]];
|
|
55
|
+
readonly warning?: boolean | undefined;
|
|
56
|
+
readonly when: string;
|
|
57
|
+
}[] | undefined;
|
|
34
58
|
}) => any) | undefined;
|
|
35
59
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
60
|
declare const _default: typeof __VLS_export;
|
package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.d.ts
CHANGED
|
@@ -27,6 +27,24 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
27
27
|
id: Schema.refine<string, typeof Schema.String>;
|
|
28
28
|
displayName: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
29
29
|
hidden: Schema.optional<Schema.Schema<string, string, never>>;
|
|
30
|
+
required: Schema.optional<Schema.Schema<string, string, never>>;
|
|
31
|
+
validations: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
32
|
+
when: Schema.Schema<string, string, never>;
|
|
33
|
+
warning: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
34
|
+
message: Schema.refine<readonly [{
|
|
35
|
+
readonly locale: "zh";
|
|
36
|
+
readonly message: string;
|
|
37
|
+
}, ...{
|
|
38
|
+
readonly locale: "en" | "ja" | "ko";
|
|
39
|
+
readonly message: string;
|
|
40
|
+
}[]], Schema.TupleType<readonly [Schema.Struct<{
|
|
41
|
+
locale: Schema.Literal<["zh"]>;
|
|
42
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
43
|
+
}>], [Schema.Struct<{
|
|
44
|
+
locale: Schema.Literal<["ja", "en", "ko"]>;
|
|
45
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
46
|
+
}>]>>;
|
|
47
|
+
}>>>;
|
|
30
48
|
type: Schema.Literal<["com.shwfed.form.field.markdown"]>;
|
|
31
49
|
compatibilityDate: Schema.Literal<["2026-04-22"]>;
|
|
32
50
|
}>;
|
package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.d.vue.ts
CHANGED
|
@@ -22,6 +22,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
22
22
|
readonly locale: "en" | "ja" | "ko";
|
|
23
23
|
readonly message: string;
|
|
24
24
|
}[]] | undefined;
|
|
25
|
+
readonly required?: string | undefined;
|
|
25
26
|
readonly displayName?: string | undefined;
|
|
26
27
|
readonly compatibilityDate: "2026-04-22";
|
|
27
28
|
readonly orientation?: "vertical" | "floating" | undefined;
|
|
@@ -38,6 +39,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
38
39
|
readonly mode: "formula" | "prefill";
|
|
39
40
|
readonly expression: string;
|
|
40
41
|
} | undefined;
|
|
42
|
+
readonly validations?: readonly {
|
|
43
|
+
readonly message: readonly [{
|
|
44
|
+
readonly locale: "zh";
|
|
45
|
+
readonly message: string;
|
|
46
|
+
}, ...{
|
|
47
|
+
readonly locale: "en" | "ja" | "ko";
|
|
48
|
+
readonly message: string;
|
|
49
|
+
}[]];
|
|
50
|
+
readonly warning?: boolean | undefined;
|
|
51
|
+
readonly when: string;
|
|
52
|
+
}[] | undefined;
|
|
41
53
|
}) => any;
|
|
42
54
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
43
55
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -59,6 +71,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
59
71
|
readonly locale: "en" | "ja" | "ko";
|
|
60
72
|
readonly message: string;
|
|
61
73
|
}[]] | undefined;
|
|
74
|
+
readonly required?: string | undefined;
|
|
62
75
|
readonly displayName?: string | undefined;
|
|
63
76
|
readonly compatibilityDate: "2026-04-22";
|
|
64
77
|
readonly orientation?: "vertical" | "floating" | undefined;
|
|
@@ -75,6 +88,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
75
88
|
readonly mode: "formula" | "prefill";
|
|
76
89
|
readonly expression: string;
|
|
77
90
|
} | undefined;
|
|
91
|
+
readonly validations?: readonly {
|
|
92
|
+
readonly message: readonly [{
|
|
93
|
+
readonly locale: "zh";
|
|
94
|
+
readonly message: string;
|
|
95
|
+
}, ...{
|
|
96
|
+
readonly locale: "en" | "ja" | "ko";
|
|
97
|
+
readonly message: string;
|
|
98
|
+
}[]];
|
|
99
|
+
readonly warning?: boolean | undefined;
|
|
100
|
+
readonly when: string;
|
|
101
|
+
}[] | undefined;
|
|
78
102
|
}) => any) | undefined;
|
|
79
103
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
80
104
|
declare const _default: typeof __VLS_export;
|
package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue
CHANGED
|
@@ -3,6 +3,7 @@ import { computed } from "vue";
|
|
|
3
3
|
import { Field, FieldLabel } from "../../../../ui/field";
|
|
4
4
|
import { ExpressionEditor } from "../../../../ui/expression-editor";
|
|
5
5
|
import DerivedValueEditor from "../../../DerivedValueEditor.vue";
|
|
6
|
+
import ValidationRulesField from "../../../ValidationRulesField.vue";
|
|
6
7
|
import { InputGroup, InputGroupInput } from "../../../../ui/input-group";
|
|
7
8
|
import { Locale as LocaleField } from "../../../../ui/locale";
|
|
8
9
|
import { Markdown } from "../../../../ui/markdown";
|
|
@@ -185,6 +186,26 @@ const pathText = computed({
|
|
|
185
186
|
</div>
|
|
186
187
|
|
|
187
188
|
<div class="grid grid-cols-3 gap-3">
|
|
189
|
+
<Field orientation="vertical">
|
|
190
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
191
|
+
<template #tooltip>
|
|
192
|
+
<Markdown
|
|
193
|
+
:source="fieldDescription('required') ?? '\u8FD4\u56DE `true` \u65F6\u663E\u793A\u5FC5\u586B\u661F\u53F7\u5E76\u8981\u6C42\u975E\u7A7A'"
|
|
194
|
+
block
|
|
195
|
+
class="prose prose-sm prose-zinc"
|
|
196
|
+
/>
|
|
197
|
+
</template>
|
|
198
|
+
{{ fieldTitle("required") }}
|
|
199
|
+
</FieldLabel>
|
|
200
|
+
<ExpressionEditor
|
|
201
|
+
:model-value="value.required ?? ''"
|
|
202
|
+
placeholder="例:form.type == 'company'"
|
|
203
|
+
result-type="bool"
|
|
204
|
+
class="min-h-10"
|
|
205
|
+
@update:model-value="(v) => value = { ...value, required: v.length > 0 ? v : void 0 }"
|
|
206
|
+
/>
|
|
207
|
+
</Field>
|
|
208
|
+
|
|
188
209
|
<Field orientation="vertical">
|
|
189
210
|
<FieldLabel class="text-xs text-zinc-500">
|
|
190
211
|
<template #tooltip>
|
|
@@ -264,5 +285,22 @@ const pathText = computed({
|
|
|
264
285
|
@update:model-value="(v) => value = { ...value, derived: v }"
|
|
265
286
|
/>
|
|
266
287
|
</Field>
|
|
288
|
+
|
|
289
|
+
<Field orientation="vertical">
|
|
290
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
291
|
+
<template #tooltip>
|
|
292
|
+
<Markdown
|
|
293
|
+
:source="fieldDescription('validations')"
|
|
294
|
+
block
|
|
295
|
+
class="prose prose-sm prose-zinc"
|
|
296
|
+
/>
|
|
297
|
+
</template>
|
|
298
|
+
{{ fieldTitle("validations") }}
|
|
299
|
+
</FieldLabel>
|
|
300
|
+
<ValidationRulesField
|
|
301
|
+
:model-value="value.validations"
|
|
302
|
+
@update:model-value="(v) => value = { ...value, validations: v.length > 0 ? v : void 0 }"
|
|
303
|
+
/>
|
|
304
|
+
</Field>
|
|
267
305
|
</div>
|
|
268
306
|
</template>
|
package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
22
22
|
readonly locale: "en" | "ja" | "ko";
|
|
23
23
|
readonly message: string;
|
|
24
24
|
}[]] | undefined;
|
|
25
|
+
readonly required?: string | undefined;
|
|
25
26
|
readonly displayName?: string | undefined;
|
|
26
27
|
readonly compatibilityDate: "2026-04-22";
|
|
27
28
|
readonly orientation?: "vertical" | "floating" | undefined;
|
|
@@ -38,6 +39,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
38
39
|
readonly mode: "formula" | "prefill";
|
|
39
40
|
readonly expression: string;
|
|
40
41
|
} | undefined;
|
|
42
|
+
readonly validations?: readonly {
|
|
43
|
+
readonly message: readonly [{
|
|
44
|
+
readonly locale: "zh";
|
|
45
|
+
readonly message: string;
|
|
46
|
+
}, ...{
|
|
47
|
+
readonly locale: "en" | "ja" | "ko";
|
|
48
|
+
readonly message: string;
|
|
49
|
+
}[]];
|
|
50
|
+
readonly warning?: boolean | undefined;
|
|
51
|
+
readonly when: string;
|
|
52
|
+
}[] | undefined;
|
|
41
53
|
}) => any;
|
|
42
54
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
43
55
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -59,6 +71,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
59
71
|
readonly locale: "en" | "ja" | "ko";
|
|
60
72
|
readonly message: string;
|
|
61
73
|
}[]] | undefined;
|
|
74
|
+
readonly required?: string | undefined;
|
|
62
75
|
readonly displayName?: string | undefined;
|
|
63
76
|
readonly compatibilityDate: "2026-04-22";
|
|
64
77
|
readonly orientation?: "vertical" | "floating" | undefined;
|
|
@@ -75,6 +88,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
75
88
|
readonly mode: "formula" | "prefill";
|
|
76
89
|
readonly expression: string;
|
|
77
90
|
} | undefined;
|
|
91
|
+
readonly validations?: readonly {
|
|
92
|
+
readonly message: readonly [{
|
|
93
|
+
readonly locale: "zh";
|
|
94
|
+
readonly message: string;
|
|
95
|
+
}, ...{
|
|
96
|
+
readonly locale: "en" | "ja" | "ko";
|
|
97
|
+
readonly message: string;
|
|
98
|
+
}[]];
|
|
99
|
+
readonly warning?: boolean | undefined;
|
|
100
|
+
readonly when: string;
|
|
101
|
+
}[] | undefined;
|
|
78
102
|
}) => any) | undefined;
|
|
79
103
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
80
104
|
declare const _default: typeof __VLS_export;
|
package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/runtime.vue
CHANGED
|
@@ -6,11 +6,12 @@ import { useI18n } from "vue-i18n";
|
|
|
6
6
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
7
7
|
import { celBindings, injectCELContext } from "../../../../../utils/cel-context";
|
|
8
8
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
9
|
-
import { Field, FieldLabel } from "../../../../ui/field";
|
|
9
|
+
import { Field, FieldLabel, FieldMessages } from "../../../../ui/field";
|
|
10
10
|
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from "../../../../ui/input-group";
|
|
11
11
|
import { Markdown } from "../../../../ui/markdown";
|
|
12
12
|
import { DEFAULT_FIELD_ORIENTATION } from "../../../utils/common";
|
|
13
13
|
import { useFieldValue } from "../../../utils/field-value";
|
|
14
|
+
import { useFieldValidation } from "../../../utils/validation";
|
|
14
15
|
import { useFormReadonly } from "../../../utils/readonly";
|
|
15
16
|
import { useFormState } from "../../../utils/state";
|
|
16
17
|
defineOptions({ name: "ShwfedTextFieldRuntime" });
|
|
@@ -49,6 +50,12 @@ const { draft, commit } = useFieldValue({
|
|
|
49
50
|
fromState: (raw) => raw == null ? "" : String(raw),
|
|
50
51
|
toState: (next) => next.length === 0 ? null : next
|
|
51
52
|
});
|
|
53
|
+
const { isRequired, errors, warnings, visible } = useFieldValidation({
|
|
54
|
+
fieldId: () => props.fieldId,
|
|
55
|
+
config: () => props.config,
|
|
56
|
+
$cel,
|
|
57
|
+
locale: () => locale.value
|
|
58
|
+
});
|
|
52
59
|
const showClear = computed(() => !isDisabled.value && draft.value.length > 0);
|
|
53
60
|
function handleClear() {
|
|
54
61
|
draft.value = "";
|
|
@@ -75,7 +82,11 @@ function handleClear() {
|
|
|
75
82
|
class="prose prose-xs prose-zinc"
|
|
76
83
|
/>
|
|
77
84
|
</template>
|
|
78
|
-
{{ labelText }}
|
|
85
|
+
{{ labelText }}<span
|
|
86
|
+
v-if="isRequired"
|
|
87
|
+
aria-hidden="true"
|
|
88
|
+
class="text-red-600"
|
|
89
|
+
> *</span>
|
|
79
90
|
</FieldLabel>
|
|
80
91
|
<div
|
|
81
92
|
v-if="effectiveReadonly"
|
|
@@ -112,5 +123,10 @@ function handleClear() {
|
|
|
112
123
|
</InputGroupButton>
|
|
113
124
|
</InputGroupAddon>
|
|
114
125
|
</InputGroup>
|
|
126
|
+
<FieldMessages
|
|
127
|
+
v-if="visible"
|
|
128
|
+
:errors="errors"
|
|
129
|
+
:warnings="warnings"
|
|
130
|
+
/>
|
|
115
131
|
</Field>
|
|
116
132
|
</template>
|
package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.d.ts
CHANGED
|
@@ -49,6 +49,24 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
49
49
|
id: Schema.refine<string, typeof Schema.String>;
|
|
50
50
|
displayName: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
51
51
|
hidden: Schema.optional<Schema.Schema<string, string, never>>;
|
|
52
|
+
required: Schema.optional<Schema.Schema<string, string, never>>;
|
|
53
|
+
validations: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
54
|
+
when: Schema.Schema<string, string, never>;
|
|
55
|
+
warning: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
56
|
+
message: Schema.refine<readonly [{
|
|
57
|
+
readonly locale: "zh";
|
|
58
|
+
readonly message: string;
|
|
59
|
+
}, ...{
|
|
60
|
+
readonly locale: "en" | "ja" | "ko";
|
|
61
|
+
readonly message: string;
|
|
62
|
+
}[]], Schema.TupleType<readonly [Schema.Struct<{
|
|
63
|
+
locale: Schema.Literal<["zh"]>;
|
|
64
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
65
|
+
}>], [Schema.Struct<{
|
|
66
|
+
locale: Schema.Literal<["ja", "en", "ko"]>;
|
|
67
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
68
|
+
}>]>>;
|
|
69
|
+
}>>>;
|
|
52
70
|
type: Schema.Literal<["com.shwfed.form.field.text"]>;
|
|
53
71
|
compatibilityDate: Schema.Literal<["2026-04-22"]>;
|
|
54
72
|
}>;
|
|
@@ -22,6 +22,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
22
22
|
readonly locale: "en" | "ja" | "ko";
|
|
23
23
|
readonly message: string;
|
|
24
24
|
}[]] | undefined;
|
|
25
|
+
readonly required?: string | undefined;
|
|
25
26
|
readonly displayName?: string | undefined;
|
|
26
27
|
readonly rows?: number | undefined;
|
|
27
28
|
readonly compatibilityDate: "2026-04-22";
|
|
@@ -39,6 +40,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
39
40
|
readonly mode: "formula" | "prefill";
|
|
40
41
|
readonly expression: string;
|
|
41
42
|
} | undefined;
|
|
43
|
+
readonly validations?: readonly {
|
|
44
|
+
readonly message: readonly [{
|
|
45
|
+
readonly locale: "zh";
|
|
46
|
+
readonly message: string;
|
|
47
|
+
}, ...{
|
|
48
|
+
readonly locale: "en" | "ja" | "ko";
|
|
49
|
+
readonly message: string;
|
|
50
|
+
}[]];
|
|
51
|
+
readonly warning?: boolean | undefined;
|
|
52
|
+
readonly when: string;
|
|
53
|
+
}[] | undefined;
|
|
42
54
|
}) => any;
|
|
43
55
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
44
56
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -60,6 +72,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
60
72
|
readonly locale: "en" | "ja" | "ko";
|
|
61
73
|
readonly message: string;
|
|
62
74
|
}[]] | undefined;
|
|
75
|
+
readonly required?: string | undefined;
|
|
63
76
|
readonly displayName?: string | undefined;
|
|
64
77
|
readonly rows?: number | undefined;
|
|
65
78
|
readonly compatibilityDate: "2026-04-22";
|
|
@@ -77,6 +90,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
77
90
|
readonly mode: "formula" | "prefill";
|
|
78
91
|
readonly expression: string;
|
|
79
92
|
} | undefined;
|
|
93
|
+
readonly validations?: readonly {
|
|
94
|
+
readonly message: readonly [{
|
|
95
|
+
readonly locale: "zh";
|
|
96
|
+
readonly message: string;
|
|
97
|
+
}, ...{
|
|
98
|
+
readonly locale: "en" | "ja" | "ko";
|
|
99
|
+
readonly message: string;
|
|
100
|
+
}[]];
|
|
101
|
+
readonly warning?: boolean | undefined;
|
|
102
|
+
readonly when: string;
|
|
103
|
+
}[] | undefined;
|
|
80
104
|
}) => any) | undefined;
|
|
81
105
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
82
106
|
declare const _default: typeof __VLS_export;
|
package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.vue
CHANGED
|
@@ -3,6 +3,7 @@ import { computed } from "vue";
|
|
|
3
3
|
import { Field, FieldLabel } from "../../../../ui/field";
|
|
4
4
|
import { ExpressionEditor } from "../../../../ui/expression-editor";
|
|
5
5
|
import DerivedValueEditor from "../../../DerivedValueEditor.vue";
|
|
6
|
+
import ValidationRulesField from "../../../ValidationRulesField.vue";
|
|
6
7
|
import { InputGroup, InputGroupInput } from "../../../../ui/input-group";
|
|
7
8
|
import { Locale as LocaleField } from "../../../../ui/locale";
|
|
8
9
|
import { Markdown } from "../../../../ui/markdown";
|
|
@@ -226,6 +227,26 @@ const rowsText = computed({
|
|
|
226
227
|
</div>
|
|
227
228
|
|
|
228
229
|
<div class="grid grid-cols-3 gap-3">
|
|
230
|
+
<Field orientation="vertical">
|
|
231
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
232
|
+
<template #tooltip>
|
|
233
|
+
<Markdown
|
|
234
|
+
:source="fieldDescription('required') ?? '\u8FD4\u56DE `true` \u65F6\u663E\u793A\u5FC5\u586B\u661F\u53F7\u5E76\u8981\u6C42\u975E\u7A7A'"
|
|
235
|
+
block
|
|
236
|
+
class="prose prose-sm prose-zinc"
|
|
237
|
+
/>
|
|
238
|
+
</template>
|
|
239
|
+
{{ fieldTitle("required") }}
|
|
240
|
+
</FieldLabel>
|
|
241
|
+
<ExpressionEditor
|
|
242
|
+
:model-value="value.required ?? ''"
|
|
243
|
+
placeholder="例:form.type == 'company'"
|
|
244
|
+
result-type="bool"
|
|
245
|
+
class="min-h-10"
|
|
246
|
+
@update:model-value="(v) => value = { ...value, required: v.length > 0 ? v : void 0 }"
|
|
247
|
+
/>
|
|
248
|
+
</Field>
|
|
249
|
+
|
|
229
250
|
<Field orientation="vertical">
|
|
230
251
|
<FieldLabel class="text-xs text-zinc-500">
|
|
231
252
|
<template #tooltip>
|
|
@@ -305,5 +326,22 @@ const rowsText = computed({
|
|
|
305
326
|
@update:model-value="(v) => value = { ...value, derived: v }"
|
|
306
327
|
/>
|
|
307
328
|
</Field>
|
|
329
|
+
|
|
330
|
+
<Field orientation="vertical">
|
|
331
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
332
|
+
<template #tooltip>
|
|
333
|
+
<Markdown
|
|
334
|
+
:source="fieldDescription('validations')"
|
|
335
|
+
block
|
|
336
|
+
class="prose prose-sm prose-zinc"
|
|
337
|
+
/>
|
|
338
|
+
</template>
|
|
339
|
+
{{ fieldTitle("validations") }}
|
|
340
|
+
</FieldLabel>
|
|
341
|
+
<ValidationRulesField
|
|
342
|
+
:model-value="value.validations"
|
|
343
|
+
@update:model-value="(v) => value = { ...value, validations: v.length > 0 ? v : void 0 }"
|
|
344
|
+
/>
|
|
345
|
+
</Field>
|
|
308
346
|
</div>
|
|
309
347
|
</template>
|
|
@@ -22,6 +22,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
22
22
|
readonly locale: "en" | "ja" | "ko";
|
|
23
23
|
readonly message: string;
|
|
24
24
|
}[]] | undefined;
|
|
25
|
+
readonly required?: string | undefined;
|
|
25
26
|
readonly displayName?: string | undefined;
|
|
26
27
|
readonly rows?: number | undefined;
|
|
27
28
|
readonly compatibilityDate: "2026-04-22";
|
|
@@ -39,6 +40,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
39
40
|
readonly mode: "formula" | "prefill";
|
|
40
41
|
readonly expression: string;
|
|
41
42
|
} | undefined;
|
|
43
|
+
readonly validations?: readonly {
|
|
44
|
+
readonly message: readonly [{
|
|
45
|
+
readonly locale: "zh";
|
|
46
|
+
readonly message: string;
|
|
47
|
+
}, ...{
|
|
48
|
+
readonly locale: "en" | "ja" | "ko";
|
|
49
|
+
readonly message: string;
|
|
50
|
+
}[]];
|
|
51
|
+
readonly warning?: boolean | undefined;
|
|
52
|
+
readonly when: string;
|
|
53
|
+
}[] | undefined;
|
|
42
54
|
}) => any;
|
|
43
55
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
44
56
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -60,6 +72,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
60
72
|
readonly locale: "en" | "ja" | "ko";
|
|
61
73
|
readonly message: string;
|
|
62
74
|
}[]] | undefined;
|
|
75
|
+
readonly required?: string | undefined;
|
|
63
76
|
readonly displayName?: string | undefined;
|
|
64
77
|
readonly rows?: number | undefined;
|
|
65
78
|
readonly compatibilityDate: "2026-04-22";
|
|
@@ -77,6 +90,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
77
90
|
readonly mode: "formula" | "prefill";
|
|
78
91
|
readonly expression: string;
|
|
79
92
|
} | undefined;
|
|
93
|
+
readonly validations?: readonly {
|
|
94
|
+
readonly message: readonly [{
|
|
95
|
+
readonly locale: "zh";
|
|
96
|
+
readonly message: string;
|
|
97
|
+
}, ...{
|
|
98
|
+
readonly locale: "en" | "ja" | "ko";
|
|
99
|
+
readonly message: string;
|
|
100
|
+
}[]];
|
|
101
|
+
readonly warning?: boolean | undefined;
|
|
102
|
+
readonly when: string;
|
|
103
|
+
}[] | undefined;
|
|
80
104
|
}) => any) | undefined;
|
|
81
105
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
82
106
|
declare const _default: typeof __VLS_export;
|
package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/runtime.vue
CHANGED
|
@@ -5,11 +5,12 @@ import { useI18n } from "vue-i18n";
|
|
|
5
5
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
6
6
|
import { celBindings, injectCELContext } from "../../../../../utils/cel-context";
|
|
7
7
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
8
|
-
import { Field, FieldLabel } from "../../../../ui/field";
|
|
8
|
+
import { Field, FieldLabel, FieldMessages } from "../../../../ui/field";
|
|
9
9
|
import { InputGroup, InputGroupTextarea } from "../../../../ui/input-group";
|
|
10
10
|
import { Markdown } from "../../../../ui/markdown";
|
|
11
11
|
import { DEFAULT_FIELD_ORIENTATION } from "../../../utils/common";
|
|
12
12
|
import { useFieldValue } from "../../../utils/field-value";
|
|
13
|
+
import { useFieldValidation } from "../../../utils/validation";
|
|
13
14
|
import { useFormReadonly } from "../../../utils/readonly";
|
|
14
15
|
import { useFormState } from "../../../utils/state";
|
|
15
16
|
defineOptions({ name: "ShwfedTextareaFieldRuntime" });
|
|
@@ -48,6 +49,12 @@ const { draft, commit } = useFieldValue({
|
|
|
48
49
|
fromState: (raw) => raw == null ? "" : String(raw),
|
|
49
50
|
toState: (next) => next
|
|
50
51
|
});
|
|
52
|
+
const { isRequired, errors, warnings, visible } = useFieldValidation({
|
|
53
|
+
fieldId: () => props.fieldId,
|
|
54
|
+
config: () => props.config,
|
|
55
|
+
$cel,
|
|
56
|
+
locale: () => locale.value
|
|
57
|
+
});
|
|
51
58
|
</script>
|
|
52
59
|
|
|
53
60
|
<template>
|
|
@@ -69,7 +76,11 @@ const { draft, commit } = useFieldValue({
|
|
|
69
76
|
class="prose prose-xs prose-zinc"
|
|
70
77
|
/>
|
|
71
78
|
</template>
|
|
72
|
-
{{ labelText }}
|
|
79
|
+
{{ labelText }}<span
|
|
80
|
+
v-if="isRequired"
|
|
81
|
+
aria-hidden="true"
|
|
82
|
+
class="text-red-600"
|
|
83
|
+
> *</span>
|
|
73
84
|
</FieldLabel>
|
|
74
85
|
<div
|
|
75
86
|
v-if="effectiveReadonly"
|
|
@@ -87,5 +98,10 @@ const { draft, commit } = useFieldValue({
|
|
|
87
98
|
@blur="commit"
|
|
88
99
|
/>
|
|
89
100
|
</InputGroup>
|
|
101
|
+
<FieldMessages
|
|
102
|
+
v-if="visible"
|
|
103
|
+
:errors="errors"
|
|
104
|
+
:warnings="warnings"
|
|
105
|
+
/>
|
|
90
106
|
</Field>
|
|
91
107
|
</template>
|
package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/schema.d.ts
CHANGED
|
@@ -51,6 +51,24 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
51
51
|
id: Schema.refine<string, typeof Schema.String>;
|
|
52
52
|
displayName: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
53
53
|
hidden: Schema.optional<Schema.Schema<string, string, never>>;
|
|
54
|
+
required: Schema.optional<Schema.Schema<string, string, never>>;
|
|
55
|
+
validations: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
56
|
+
when: Schema.Schema<string, string, never>;
|
|
57
|
+
warning: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
58
|
+
message: Schema.refine<readonly [{
|
|
59
|
+
readonly locale: "zh";
|
|
60
|
+
readonly message: string;
|
|
61
|
+
}, ...{
|
|
62
|
+
readonly locale: "en" | "ja" | "ko";
|
|
63
|
+
readonly message: string;
|
|
64
|
+
}[]], Schema.TupleType<readonly [Schema.Struct<{
|
|
65
|
+
locale: Schema.Literal<["zh"]>;
|
|
66
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
67
|
+
}>], [Schema.Struct<{
|
|
68
|
+
locale: Schema.Literal<["ja", "en", "ko"]>;
|
|
69
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
70
|
+
}>]>>;
|
|
71
|
+
}>>>;
|
|
54
72
|
type: Schema.Literal<["com.shwfed.form.field.textarea"]>;
|
|
55
73
|
compatibilityDate: Schema.Literal<["2026-04-22"]>;
|
|
56
74
|
}>;
|
package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/config.d.vue.ts
CHANGED
|
@@ -8,6 +8,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
8
8
|
readonly style?: string | undefined;
|
|
9
9
|
readonly id: string;
|
|
10
10
|
readonly hidden?: string | undefined;
|
|
11
|
+
readonly required?: string | undefined;
|
|
11
12
|
readonly displayName?: string | undefined;
|
|
12
13
|
readonly gap: number;
|
|
13
14
|
readonly compatibilityDate: "2026-04-24";
|
|
@@ -73,6 +74,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
73
74
|
readonly id: string;
|
|
74
75
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
75
76
|
}[];
|
|
77
|
+
readonly validations?: readonly {
|
|
78
|
+
readonly message: readonly [{
|
|
79
|
+
readonly locale: "zh";
|
|
80
|
+
readonly message: string;
|
|
81
|
+
}, ...{
|
|
82
|
+
readonly locale: "en" | "ja" | "ko";
|
|
83
|
+
readonly message: string;
|
|
84
|
+
}[]];
|
|
85
|
+
readonly warning?: boolean | undefined;
|
|
86
|
+
readonly when: string;
|
|
87
|
+
}[] | undefined;
|
|
76
88
|
}) => any;
|
|
77
89
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
78
90
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -80,6 +92,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
80
92
|
readonly style?: string | undefined;
|
|
81
93
|
readonly id: string;
|
|
82
94
|
readonly hidden?: string | undefined;
|
|
95
|
+
readonly required?: string | undefined;
|
|
83
96
|
readonly displayName?: string | undefined;
|
|
84
97
|
readonly gap: number;
|
|
85
98
|
readonly compatibilityDate: "2026-04-24";
|
|
@@ -145,6 +158,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
145
158
|
readonly id: string;
|
|
146
159
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
147
160
|
}[];
|
|
161
|
+
readonly validations?: readonly {
|
|
162
|
+
readonly message: readonly [{
|
|
163
|
+
readonly locale: "zh";
|
|
164
|
+
readonly message: string;
|
|
165
|
+
}, ...{
|
|
166
|
+
readonly locale: "en" | "ja" | "ko";
|
|
167
|
+
readonly message: string;
|
|
168
|
+
}[]];
|
|
169
|
+
readonly warning?: boolean | undefined;
|
|
170
|
+
readonly when: string;
|
|
171
|
+
}[] | undefined;
|
|
148
172
|
}) => any) | undefined;
|
|
149
173
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
150
174
|
declare const _default: typeof __VLS_export;
|
package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/config.vue.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
8
8
|
readonly style?: string | undefined;
|
|
9
9
|
readonly id: string;
|
|
10
10
|
readonly hidden?: string | undefined;
|
|
11
|
+
readonly required?: string | undefined;
|
|
11
12
|
readonly displayName?: string | undefined;
|
|
12
13
|
readonly gap: number;
|
|
13
14
|
readonly compatibilityDate: "2026-04-24";
|
|
@@ -73,6 +74,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
73
74
|
readonly id: string;
|
|
74
75
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
75
76
|
}[];
|
|
77
|
+
readonly validations?: readonly {
|
|
78
|
+
readonly message: readonly [{
|
|
79
|
+
readonly locale: "zh";
|
|
80
|
+
readonly message: string;
|
|
81
|
+
}, ...{
|
|
82
|
+
readonly locale: "en" | "ja" | "ko";
|
|
83
|
+
readonly message: string;
|
|
84
|
+
}[]];
|
|
85
|
+
readonly warning?: boolean | undefined;
|
|
86
|
+
readonly when: string;
|
|
87
|
+
}[] | undefined;
|
|
76
88
|
}) => any;
|
|
77
89
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
78
90
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -80,6 +92,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
80
92
|
readonly style?: string | undefined;
|
|
81
93
|
readonly id: string;
|
|
82
94
|
readonly hidden?: string | undefined;
|
|
95
|
+
readonly required?: string | undefined;
|
|
83
96
|
readonly displayName?: string | undefined;
|
|
84
97
|
readonly gap: number;
|
|
85
98
|
readonly compatibilityDate: "2026-04-24";
|
|
@@ -145,6 +158,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
145
158
|
readonly id: string;
|
|
146
159
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
147
160
|
}[];
|
|
161
|
+
readonly validations?: readonly {
|
|
162
|
+
readonly message: readonly [{
|
|
163
|
+
readonly locale: "zh";
|
|
164
|
+
readonly message: string;
|
|
165
|
+
}, ...{
|
|
166
|
+
readonly locale: "en" | "ja" | "ko";
|
|
167
|
+
readonly message: string;
|
|
168
|
+
}[]];
|
|
169
|
+
readonly warning?: boolean | undefined;
|
|
170
|
+
readonly when: string;
|
|
171
|
+
}[] | undefined;
|
|
148
172
|
}) => any) | undefined;
|
|
149
173
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
150
174
|
declare const _default: typeof __VLS_export;
|