@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
|
@@ -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-28";
|
|
27
28
|
readonly orientation?: "vertical" | "floating" | undefined;
|
|
@@ -49,6 +50,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
49
50
|
readonly locale: "en" | "ja" | "ko";
|
|
50
51
|
readonly message: string;
|
|
51
52
|
}[]] | undefined;
|
|
53
|
+
readonly validations?: readonly {
|
|
54
|
+
readonly message: readonly [{
|
|
55
|
+
readonly locale: "zh";
|
|
56
|
+
readonly message: string;
|
|
57
|
+
}, ...{
|
|
58
|
+
readonly locale: "en" | "ja" | "ko";
|
|
59
|
+
readonly message: string;
|
|
60
|
+
}[]];
|
|
61
|
+
readonly warning?: boolean | undefined;
|
|
62
|
+
readonly when: string;
|
|
63
|
+
}[] | undefined;
|
|
52
64
|
readonly precision?: number | undefined;
|
|
53
65
|
readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
|
|
54
66
|
readonly valueAsString?: boolean | undefined;
|
|
@@ -73,6 +85,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
73
85
|
readonly locale: "en" | "ja" | "ko";
|
|
74
86
|
readonly message: string;
|
|
75
87
|
}[]] | undefined;
|
|
88
|
+
readonly required?: string | undefined;
|
|
76
89
|
readonly displayName?: string | undefined;
|
|
77
90
|
readonly compatibilityDate: "2026-04-28";
|
|
78
91
|
readonly orientation?: "vertical" | "floating" | undefined;
|
|
@@ -100,6 +113,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
100
113
|
readonly locale: "en" | "ja" | "ko";
|
|
101
114
|
readonly message: string;
|
|
102
115
|
}[]] | undefined;
|
|
116
|
+
readonly validations?: readonly {
|
|
117
|
+
readonly message: readonly [{
|
|
118
|
+
readonly locale: "zh";
|
|
119
|
+
readonly message: string;
|
|
120
|
+
}, ...{
|
|
121
|
+
readonly locale: "en" | "ja" | "ko";
|
|
122
|
+
readonly message: string;
|
|
123
|
+
}[]];
|
|
124
|
+
readonly warning?: boolean | undefined;
|
|
125
|
+
readonly when: string;
|
|
126
|
+
}[] | undefined;
|
|
103
127
|
readonly precision?: number | undefined;
|
|
104
128
|
readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
|
|
105
129
|
readonly valueAsString?: boolean | undefined;
|
package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/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, InputGroupNumberField } from "../../../../ui/input-group";
|
|
11
11
|
import { Markdown } from "../../../../ui/markdown";
|
|
12
12
|
import { useCommitBus } from "../../../utils/commit-bus";
|
|
13
13
|
import { DEFAULT_FIELD_ORIENTATION } from "../../../utils/common";
|
|
14
|
+
import { useFieldValidation } from "../../../utils/validation";
|
|
14
15
|
import { useFormReadonly } from "../../../utils/readonly";
|
|
15
16
|
import { useFormState } from "../../../utils/state";
|
|
16
17
|
defineOptions({ name: "ShwfedNumberRangeFieldRuntime" });
|
|
@@ -59,6 +60,12 @@ const isReadonly = computed(
|
|
|
59
60
|
const effectiveReadonly = computed(() => isReadonly.value || props.config.derived?.mode === "formula");
|
|
60
61
|
const minValue = computed(() => evalNumber(props.config.min, "min"));
|
|
61
62
|
const maxValue = computed(() => evalNumber(props.config.max, "max"));
|
|
63
|
+
const { isRequired, errors, warnings, visible } = useFieldValidation({
|
|
64
|
+
fieldId: () => props.fieldId,
|
|
65
|
+
config: () => props.config,
|
|
66
|
+
$cel,
|
|
67
|
+
locale: () => locale.value
|
|
68
|
+
});
|
|
62
69
|
const formatOptions = computed(() => ({
|
|
63
70
|
useGrouping: false,
|
|
64
71
|
maximumFractionDigits: 20
|
|
@@ -206,7 +213,11 @@ const readonlyText = computed(() => {
|
|
|
206
213
|
class="prose prose-xs prose-zinc"
|
|
207
214
|
/>
|
|
208
215
|
</template>
|
|
209
|
-
{{ labelText }}
|
|
216
|
+
{{ labelText }}<span
|
|
217
|
+
v-if="isRequired"
|
|
218
|
+
aria-hidden="true"
|
|
219
|
+
class="text-red-600"
|
|
220
|
+
> *</span>
|
|
210
221
|
</FieldLabel>
|
|
211
222
|
<div
|
|
212
223
|
v-if="effectiveReadonly"
|
|
@@ -265,5 +276,10 @@ const readonlyText = computed(() => {
|
|
|
265
276
|
</InputGroupButton>
|
|
266
277
|
</InputGroupAddon>
|
|
267
278
|
</InputGroup>
|
|
279
|
+
<FieldMessages
|
|
280
|
+
v-if="visible"
|
|
281
|
+
:errors="errors"
|
|
282
|
+
:warnings="warnings"
|
|
283
|
+
/>
|
|
268
284
|
</Field>
|
|
269
285
|
</template>
|
package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/schema.d.ts
CHANGED
|
@@ -63,6 +63,24 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
63
63
|
id: Schema.refine<string, typeof Schema.String>;
|
|
64
64
|
displayName: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
65
65
|
hidden: Schema.optional<Schema.Schema<string, string, never>>;
|
|
66
|
+
required: Schema.optional<Schema.Schema<string, string, never>>;
|
|
67
|
+
validations: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
68
|
+
when: Schema.Schema<string, string, never>;
|
|
69
|
+
warning: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
70
|
+
message: Schema.refine<readonly [{
|
|
71
|
+
readonly locale: "zh";
|
|
72
|
+
readonly message: string;
|
|
73
|
+
}, ...{
|
|
74
|
+
readonly locale: "en" | "ja" | "ko";
|
|
75
|
+
readonly message: string;
|
|
76
|
+
}[]], Schema.TupleType<readonly [Schema.Struct<{
|
|
77
|
+
locale: Schema.Literal<["zh"]>;
|
|
78
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
79
|
+
}>], [Schema.Struct<{
|
|
80
|
+
locale: Schema.Literal<["ja", "en", "ko"]>;
|
|
81
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
82
|
+
}>]>>;
|
|
83
|
+
}>>>;
|
|
66
84
|
type: Schema.Literal<["com.shwfed.form.field.numberrange"]>;
|
|
67
85
|
compatibilityDate: Schema.Literal<["2026-04-28"]>;
|
|
68
86
|
}>;
|
package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/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-28";
|
|
27
28
|
readonly readonly?: string | undefined;
|
|
@@ -30,6 +31,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
30
31
|
readonly mode: "formula" | "prefill";
|
|
31
32
|
readonly expression: string;
|
|
32
33
|
} | undefined;
|
|
34
|
+
readonly validations?: readonly {
|
|
35
|
+
readonly message: readonly [{
|
|
36
|
+
readonly locale: "zh";
|
|
37
|
+
readonly message: string;
|
|
38
|
+
}, ...{
|
|
39
|
+
readonly locale: "en" | "ja" | "ko";
|
|
40
|
+
readonly message: string;
|
|
41
|
+
}[]];
|
|
42
|
+
readonly warning?: boolean | undefined;
|
|
43
|
+
readonly when: string;
|
|
44
|
+
}[] | undefined;
|
|
33
45
|
readonly trueLabel?: readonly [{
|
|
34
46
|
readonly locale: "zh";
|
|
35
47
|
readonly message: string;
|
|
@@ -65,6 +77,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
65
77
|
readonly locale: "en" | "ja" | "ko";
|
|
66
78
|
readonly message: string;
|
|
67
79
|
}[]] | undefined;
|
|
80
|
+
readonly required?: string | undefined;
|
|
68
81
|
readonly displayName?: string | undefined;
|
|
69
82
|
readonly compatibilityDate: "2026-04-28";
|
|
70
83
|
readonly readonly?: string | undefined;
|
|
@@ -73,6 +86,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
73
86
|
readonly mode: "formula" | "prefill";
|
|
74
87
|
readonly expression: string;
|
|
75
88
|
} | undefined;
|
|
89
|
+
readonly validations?: readonly {
|
|
90
|
+
readonly message: readonly [{
|
|
91
|
+
readonly locale: "zh";
|
|
92
|
+
readonly message: string;
|
|
93
|
+
}, ...{
|
|
94
|
+
readonly locale: "en" | "ja" | "ko";
|
|
95
|
+
readonly message: string;
|
|
96
|
+
}[]];
|
|
97
|
+
readonly warning?: boolean | undefined;
|
|
98
|
+
readonly when: string;
|
|
99
|
+
}[] | undefined;
|
|
76
100
|
readonly trueLabel?: readonly [{
|
|
77
101
|
readonly locale: "zh";
|
|
78
102
|
readonly message: string;
|
package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.vue
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { computed } from "vue";
|
|
3
3
|
import { ExpressionEditor } from "../../../../ui/expression-editor";
|
|
4
4
|
import DerivedValueEditor from "../../../DerivedValueEditor.vue";
|
|
5
|
+
import ValidationRulesField from "../../../ValidationRulesField.vue";
|
|
5
6
|
import { Field, FieldLabel } from "../../../../ui/field";
|
|
6
7
|
import { InputGroup, InputGroupInput } from "../../../../ui/input-group";
|
|
7
8
|
import { Locale as LocaleField } from "../../../../ui/locale";
|
|
@@ -164,6 +165,26 @@ const pathText = computed({
|
|
|
164
165
|
</div>
|
|
165
166
|
|
|
166
167
|
<div class="grid grid-cols-3 gap-3">
|
|
168
|
+
<Field orientation="vertical">
|
|
169
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
170
|
+
<template #tooltip>
|
|
171
|
+
<Markdown
|
|
172
|
+
:source="fieldDescription('required') ?? '\u8FD4\u56DE `true` \u65F6\u663E\u793A\u5FC5\u586B\u661F\u53F7\u5E76\u8981\u6C42\u975E\u7A7A'"
|
|
173
|
+
block
|
|
174
|
+
class="prose prose-sm prose-zinc"
|
|
175
|
+
/>
|
|
176
|
+
</template>
|
|
177
|
+
{{ fieldTitle("required") }}
|
|
178
|
+
</FieldLabel>
|
|
179
|
+
<ExpressionEditor
|
|
180
|
+
:model-value="value.required ?? ''"
|
|
181
|
+
placeholder="例:form.type == 'company'"
|
|
182
|
+
result-type="bool"
|
|
183
|
+
class="min-h-10"
|
|
184
|
+
@update:model-value="(v) => value = { ...value, required: v.length > 0 ? v : void 0 }"
|
|
185
|
+
/>
|
|
186
|
+
</Field>
|
|
187
|
+
|
|
167
188
|
<Field orientation="vertical">
|
|
168
189
|
<FieldLabel class="text-xs text-zinc-500">
|
|
169
190
|
<template #tooltip>
|
|
@@ -243,5 +264,22 @@ const pathText = computed({
|
|
|
243
264
|
@update:model-value="(v) => value = { ...value, derived: v }"
|
|
244
265
|
/>
|
|
245
266
|
</Field>
|
|
267
|
+
|
|
268
|
+
<Field orientation="vertical">
|
|
269
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
270
|
+
<template #tooltip>
|
|
271
|
+
<Markdown
|
|
272
|
+
:source="fieldDescription('validations')"
|
|
273
|
+
block
|
|
274
|
+
class="prose prose-sm prose-zinc"
|
|
275
|
+
/>
|
|
276
|
+
</template>
|
|
277
|
+
{{ fieldTitle("validations") }}
|
|
278
|
+
</FieldLabel>
|
|
279
|
+
<ValidationRulesField
|
|
280
|
+
:model-value="value.validations"
|
|
281
|
+
@update:model-value="(v) => value = { ...value, validations: v.length > 0 ? v : void 0 }"
|
|
282
|
+
/>
|
|
283
|
+
</Field>
|
|
246
284
|
</div>
|
|
247
285
|
</template>
|
package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/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-28";
|
|
27
28
|
readonly readonly?: string | undefined;
|
|
@@ -30,6 +31,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
30
31
|
readonly mode: "formula" | "prefill";
|
|
31
32
|
readonly expression: string;
|
|
32
33
|
} | undefined;
|
|
34
|
+
readonly validations?: readonly {
|
|
35
|
+
readonly message: readonly [{
|
|
36
|
+
readonly locale: "zh";
|
|
37
|
+
readonly message: string;
|
|
38
|
+
}, ...{
|
|
39
|
+
readonly locale: "en" | "ja" | "ko";
|
|
40
|
+
readonly message: string;
|
|
41
|
+
}[]];
|
|
42
|
+
readonly warning?: boolean | undefined;
|
|
43
|
+
readonly when: string;
|
|
44
|
+
}[] | undefined;
|
|
33
45
|
readonly trueLabel?: readonly [{
|
|
34
46
|
readonly locale: "zh";
|
|
35
47
|
readonly message: string;
|
|
@@ -65,6 +77,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
65
77
|
readonly locale: "en" | "ja" | "ko";
|
|
66
78
|
readonly message: string;
|
|
67
79
|
}[]] | undefined;
|
|
80
|
+
readonly required?: string | undefined;
|
|
68
81
|
readonly displayName?: string | undefined;
|
|
69
82
|
readonly compatibilityDate: "2026-04-28";
|
|
70
83
|
readonly readonly?: string | undefined;
|
|
@@ -73,6 +86,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
73
86
|
readonly mode: "formula" | "prefill";
|
|
74
87
|
readonly expression: string;
|
|
75
88
|
} | undefined;
|
|
89
|
+
readonly validations?: readonly {
|
|
90
|
+
readonly message: readonly [{
|
|
91
|
+
readonly locale: "zh";
|
|
92
|
+
readonly message: string;
|
|
93
|
+
}, ...{
|
|
94
|
+
readonly locale: "en" | "ja" | "ko";
|
|
95
|
+
readonly message: string;
|
|
96
|
+
}[]];
|
|
97
|
+
readonly warning?: boolean | undefined;
|
|
98
|
+
readonly when: string;
|
|
99
|
+
}[] | undefined;
|
|
76
100
|
readonly trueLabel?: readonly [{
|
|
77
101
|
readonly locale: "zh";
|
|
78
102
|
readonly message: string;
|
package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/runtime.vue
CHANGED
|
@@ -5,9 +5,10 @@ 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 { Markdown } from "../../../../ui/markdown";
|
|
10
10
|
import { Switch } from "../../../../ui/switch";
|
|
11
|
+
import { useFieldValidation } from "../../../utils/validation";
|
|
11
12
|
import { useFormReadonly } from "../../../utils/readonly";
|
|
12
13
|
import { useFormState } from "../../../utils/state";
|
|
13
14
|
defineOptions({ name: "ShwfedSwitchFieldRuntime" });
|
|
@@ -44,6 +45,12 @@ const isReadonly = computed(
|
|
|
44
45
|
() => props.config.readonly != null ? evalBool(props.config.readonly, "readonly") : formReadonly.value
|
|
45
46
|
);
|
|
46
47
|
const effectiveReadonly = computed(() => isReadonly.value || props.config.derived?.mode === "formula");
|
|
48
|
+
const { isRequired, errors, warnings, visible } = useFieldValidation({
|
|
49
|
+
fieldId: () => props.fieldId,
|
|
50
|
+
config: () => props.config,
|
|
51
|
+
$cel,
|
|
52
|
+
locale: () => locale.value
|
|
53
|
+
});
|
|
47
54
|
const uncontrolled = ref(false);
|
|
48
55
|
const model = computed({
|
|
49
56
|
get: () => {
|
|
@@ -83,7 +90,11 @@ const model = computed({
|
|
|
83
90
|
class="prose prose-xs prose-zinc"
|
|
84
91
|
/>
|
|
85
92
|
</template>
|
|
86
|
-
{{ labelText }}
|
|
93
|
+
{{ labelText }}<span
|
|
94
|
+
v-if="isRequired"
|
|
95
|
+
aria-hidden="true"
|
|
96
|
+
class="text-red-600"
|
|
97
|
+
> *</span>
|
|
87
98
|
</FieldLabel>
|
|
88
99
|
<div
|
|
89
100
|
v-if="effectiveReadonly"
|
|
@@ -97,5 +108,10 @@ const model = computed({
|
|
|
97
108
|
v-model="model"
|
|
98
109
|
:disabled="isDisabled"
|
|
99
110
|
/>
|
|
111
|
+
<FieldMessages
|
|
112
|
+
v-if="visible"
|
|
113
|
+
:errors="errors"
|
|
114
|
+
:warnings="warnings"
|
|
115
|
+
/>
|
|
100
116
|
</Field>
|
|
101
117
|
</template>
|
package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/schema.d.ts
CHANGED
|
@@ -55,6 +55,24 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
55
55
|
id: Schema.refine<string, typeof Schema.String>;
|
|
56
56
|
displayName: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
57
57
|
hidden: Schema.optional<Schema.Schema<string, string, never>>;
|
|
58
|
+
required: Schema.optional<Schema.Schema<string, string, never>>;
|
|
59
|
+
validations: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
60
|
+
when: Schema.Schema<string, string, never>;
|
|
61
|
+
warning: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
62
|
+
message: Schema.refine<readonly [{
|
|
63
|
+
readonly locale: "zh";
|
|
64
|
+
readonly message: string;
|
|
65
|
+
}, ...{
|
|
66
|
+
readonly locale: "en" | "ja" | "ko";
|
|
67
|
+
readonly message: string;
|
|
68
|
+
}[]], Schema.TupleType<readonly [Schema.Struct<{
|
|
69
|
+
locale: Schema.Literal<["zh"]>;
|
|
70
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
71
|
+
}>], [Schema.Struct<{
|
|
72
|
+
locale: Schema.Literal<["ja", "en", "ko"]>;
|
|
73
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
74
|
+
}>]>>;
|
|
75
|
+
}>>>;
|
|
58
76
|
type: Schema.Literal<["com.shwfed.form.field.switch"]>;
|
|
59
77
|
compatibilityDate: Schema.Literal<["2026-04-28"]>;
|
|
60
78
|
}>;
|
|
@@ -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-29";
|
|
27
28
|
readonly items: readonly {
|
|
@@ -62,6 +63,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
62
63
|
readonly mode: "formula" | "prefill";
|
|
63
64
|
readonly expression: string;
|
|
64
65
|
} | undefined;
|
|
66
|
+
readonly validations?: readonly {
|
|
67
|
+
readonly message: readonly [{
|
|
68
|
+
readonly locale: "zh";
|
|
69
|
+
readonly message: string;
|
|
70
|
+
}, ...{
|
|
71
|
+
readonly locale: "en" | "ja" | "ko";
|
|
72
|
+
readonly message: string;
|
|
73
|
+
}[]];
|
|
74
|
+
readonly warning?: boolean | undefined;
|
|
75
|
+
readonly when: string;
|
|
76
|
+
}[] | undefined;
|
|
65
77
|
}) => any;
|
|
66
78
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
67
79
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -83,6 +95,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
83
95
|
readonly locale: "en" | "ja" | "ko";
|
|
84
96
|
readonly message: string;
|
|
85
97
|
}[]] | undefined;
|
|
98
|
+
readonly required?: string | undefined;
|
|
86
99
|
readonly displayName?: string | undefined;
|
|
87
100
|
readonly compatibilityDate: "2026-04-29";
|
|
88
101
|
readonly items: readonly {
|
|
@@ -123,6 +136,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
123
136
|
readonly mode: "formula" | "prefill";
|
|
124
137
|
readonly expression: string;
|
|
125
138
|
} | undefined;
|
|
139
|
+
readonly validations?: readonly {
|
|
140
|
+
readonly message: readonly [{
|
|
141
|
+
readonly locale: "zh";
|
|
142
|
+
readonly message: string;
|
|
143
|
+
}, ...{
|
|
144
|
+
readonly locale: "en" | "ja" | "ko";
|
|
145
|
+
readonly message: string;
|
|
146
|
+
}[]];
|
|
147
|
+
readonly warning?: boolean | undefined;
|
|
148
|
+
readonly when: string;
|
|
149
|
+
}[] | undefined;
|
|
126
150
|
}) => any) | undefined;
|
|
127
151
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
128
152
|
declare const _default: typeof __VLS_export;
|
|
@@ -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-29";
|
|
27
28
|
readonly items: readonly {
|
|
@@ -62,6 +63,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
62
63
|
readonly mode: "formula" | "prefill";
|
|
63
64
|
readonly expression: string;
|
|
64
65
|
} | undefined;
|
|
66
|
+
readonly validations?: readonly {
|
|
67
|
+
readonly message: readonly [{
|
|
68
|
+
readonly locale: "zh";
|
|
69
|
+
readonly message: string;
|
|
70
|
+
}, ...{
|
|
71
|
+
readonly locale: "en" | "ja" | "ko";
|
|
72
|
+
readonly message: string;
|
|
73
|
+
}[]];
|
|
74
|
+
readonly warning?: boolean | undefined;
|
|
75
|
+
readonly when: string;
|
|
76
|
+
}[] | undefined;
|
|
65
77
|
}) => any;
|
|
66
78
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
67
79
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -83,6 +95,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
83
95
|
readonly locale: "en" | "ja" | "ko";
|
|
84
96
|
readonly message: string;
|
|
85
97
|
}[]] | undefined;
|
|
98
|
+
readonly required?: string | undefined;
|
|
86
99
|
readonly displayName?: string | undefined;
|
|
87
100
|
readonly compatibilityDate: "2026-04-29";
|
|
88
101
|
readonly items: readonly {
|
|
@@ -123,6 +136,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
123
136
|
readonly mode: "formula" | "prefill";
|
|
124
137
|
readonly expression: string;
|
|
125
138
|
} | undefined;
|
|
139
|
+
readonly validations?: readonly {
|
|
140
|
+
readonly message: readonly [{
|
|
141
|
+
readonly locale: "zh";
|
|
142
|
+
readonly message: string;
|
|
143
|
+
}, ...{
|
|
144
|
+
readonly locale: "en" | "ja" | "ko";
|
|
145
|
+
readonly message: string;
|
|
146
|
+
}[]];
|
|
147
|
+
readonly warning?: boolean | undefined;
|
|
148
|
+
readonly when: string;
|
|
149
|
+
}[] | undefined;
|
|
126
150
|
}) => any) | undefined;
|
|
127
151
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
128
152
|
declare const _default: typeof __VLS_export;
|
|
@@ -124,6 +124,24 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
124
124
|
id: Schema.refine<string, typeof Schema.String>;
|
|
125
125
|
displayName: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
126
126
|
hidden: Schema.optional<Schema.Schema<string, string, never>>;
|
|
127
|
+
required: Schema.optional<Schema.Schema<string, string, never>>;
|
|
128
|
+
validations: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
129
|
+
when: Schema.Schema<string, string, never>;
|
|
130
|
+
warning: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
131
|
+
message: Schema.refine<readonly [{
|
|
132
|
+
readonly locale: "zh";
|
|
133
|
+
readonly message: string;
|
|
134
|
+
}, ...{
|
|
135
|
+
readonly locale: "en" | "ja" | "ko";
|
|
136
|
+
readonly message: string;
|
|
137
|
+
}[]], Schema.TupleType<readonly [Schema.Struct<{
|
|
138
|
+
locale: Schema.Literal<["zh"]>;
|
|
139
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
140
|
+
}>], [Schema.Struct<{
|
|
141
|
+
locale: Schema.Literal<["ja", "en", "ko"]>;
|
|
142
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
143
|
+
}>]>>;
|
|
144
|
+
}>>>;
|
|
127
145
|
type: Schema.Literal<["com.shwfed.form.field.combobox.single"]>;
|
|
128
146
|
compatibilityDate: Schema.Literal<["2026-04-29"]>;
|
|
129
147
|
}>;
|
package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/config.d.vue.ts
CHANGED
|
@@ -34,6 +34,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
34
34
|
readonly locale: "en" | "ja" | "ko";
|
|
35
35
|
readonly message: string;
|
|
36
36
|
}[]] | undefined;
|
|
37
|
+
readonly required?: string | undefined;
|
|
37
38
|
readonly displayName?: string | undefined;
|
|
38
39
|
readonly compatibilityDate: "2026-05-12";
|
|
39
40
|
readonly orientation?: "vertical" | "floating" | undefined;
|
|
@@ -46,6 +47,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
46
47
|
}[]] | undefined;
|
|
47
48
|
readonly readonly?: string | undefined;
|
|
48
49
|
readonly binding?: string | undefined;
|
|
50
|
+
readonly validations?: readonly {
|
|
51
|
+
readonly message: readonly [{
|
|
52
|
+
readonly locale: "zh";
|
|
53
|
+
readonly message: string;
|
|
54
|
+
}, ...{
|
|
55
|
+
readonly locale: "en" | "ja" | "ko";
|
|
56
|
+
readonly message: string;
|
|
57
|
+
}[]];
|
|
58
|
+
readonly warning?: boolean | undefined;
|
|
59
|
+
readonly when: string;
|
|
60
|
+
}[] | undefined;
|
|
49
61
|
readonly accept?: readonly string[] | undefined;
|
|
50
62
|
readonly maxFileSize?: number | undefined;
|
|
51
63
|
readonly maxTotalSize?: number | undefined;
|
|
@@ -91,6 +103,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
91
103
|
readonly locale: "en" | "ja" | "ko";
|
|
92
104
|
readonly message: string;
|
|
93
105
|
}[]] | undefined;
|
|
106
|
+
readonly required?: string | undefined;
|
|
94
107
|
readonly displayName?: string | undefined;
|
|
95
108
|
readonly compatibilityDate: "2026-05-12";
|
|
96
109
|
readonly orientation?: "vertical" | "floating" | undefined;
|
|
@@ -103,6 +116,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
103
116
|
}[]] | undefined;
|
|
104
117
|
readonly readonly?: string | undefined;
|
|
105
118
|
readonly binding?: string | undefined;
|
|
119
|
+
readonly validations?: readonly {
|
|
120
|
+
readonly message: readonly [{
|
|
121
|
+
readonly locale: "zh";
|
|
122
|
+
readonly message: string;
|
|
123
|
+
}, ...{
|
|
124
|
+
readonly locale: "en" | "ja" | "ko";
|
|
125
|
+
readonly message: string;
|
|
126
|
+
}[]];
|
|
127
|
+
readonly warning?: boolean | undefined;
|
|
128
|
+
readonly when: string;
|
|
129
|
+
}[] | undefined;
|
|
106
130
|
readonly accept?: readonly string[] | undefined;
|
|
107
131
|
readonly maxFileSize?: number | undefined;
|
|
108
132
|
readonly maxTotalSize?: number | undefined;
|
package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/config.vue
CHANGED
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
DropdownMenuTrigger
|
|
9
9
|
} from "../../../../ui/dropdown-menu";
|
|
10
10
|
import { ExpressionEditor } from "../../../../ui/expression-editor";
|
|
11
|
+
import ValidationRulesField from "../../../ValidationRulesField.vue";
|
|
11
12
|
import { Field, FieldLabel } from "../../../../ui/field";
|
|
12
13
|
import { IconPicker } from "../../../../ui/icon-picker";
|
|
13
14
|
import {
|
|
@@ -585,6 +586,26 @@ function setMultiple(v) {
|
|
|
585
586
|
</div>
|
|
586
587
|
|
|
587
588
|
<div class="grid grid-cols-3 gap-3">
|
|
589
|
+
<Field orientation="vertical">
|
|
590
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
591
|
+
<template #tooltip>
|
|
592
|
+
<Markdown
|
|
593
|
+
:source="fieldDescription('required') ?? '\u8FD4\u56DE `true` \u65F6\u663E\u793A\u5FC5\u586B\u661F\u53F7\u5E76\u8981\u6C42\u975E\u7A7A'"
|
|
594
|
+
block
|
|
595
|
+
class="prose prose-sm prose-zinc"
|
|
596
|
+
/>
|
|
597
|
+
</template>
|
|
598
|
+
{{ fieldTitle("required") }}
|
|
599
|
+
</FieldLabel>
|
|
600
|
+
<ExpressionEditor
|
|
601
|
+
:model-value="value.required ?? ''"
|
|
602
|
+
placeholder="例:form.type == 'company'"
|
|
603
|
+
result-type="bool"
|
|
604
|
+
class="min-h-10"
|
|
605
|
+
@update:model-value="(v) => value = { ...value, required: v.length > 0 ? v : void 0 }"
|
|
606
|
+
/>
|
|
607
|
+
</Field>
|
|
608
|
+
|
|
588
609
|
<Field orientation="vertical">
|
|
589
610
|
<FieldLabel class="text-xs text-zinc-500">
|
|
590
611
|
<template #tooltip>
|
|
@@ -645,5 +666,22 @@ function setMultiple(v) {
|
|
|
645
666
|
/>
|
|
646
667
|
</Field>
|
|
647
668
|
</div>
|
|
669
|
+
|
|
670
|
+
<Field orientation="vertical">
|
|
671
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
672
|
+
<template #tooltip>
|
|
673
|
+
<Markdown
|
|
674
|
+
:source="fieldDescription('validations')"
|
|
675
|
+
block
|
|
676
|
+
class="prose prose-sm prose-zinc"
|
|
677
|
+
/>
|
|
678
|
+
</template>
|
|
679
|
+
{{ fieldTitle("validations") }}
|
|
680
|
+
</FieldLabel>
|
|
681
|
+
<ValidationRulesField
|
|
682
|
+
:model-value="value.validations"
|
|
683
|
+
@update:model-value="(v) => value = { ...value, validations: v.length > 0 ? v : void 0 }"
|
|
684
|
+
/>
|
|
685
|
+
</Field>
|
|
648
686
|
</div>
|
|
649
687
|
</template>
|
package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/config.vue.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
34
34
|
readonly locale: "en" | "ja" | "ko";
|
|
35
35
|
readonly message: string;
|
|
36
36
|
}[]] | undefined;
|
|
37
|
+
readonly required?: string | undefined;
|
|
37
38
|
readonly displayName?: string | undefined;
|
|
38
39
|
readonly compatibilityDate: "2026-05-12";
|
|
39
40
|
readonly orientation?: "vertical" | "floating" | undefined;
|
|
@@ -46,6 +47,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
46
47
|
}[]] | undefined;
|
|
47
48
|
readonly readonly?: string | undefined;
|
|
48
49
|
readonly binding?: string | undefined;
|
|
50
|
+
readonly validations?: readonly {
|
|
51
|
+
readonly message: readonly [{
|
|
52
|
+
readonly locale: "zh";
|
|
53
|
+
readonly message: string;
|
|
54
|
+
}, ...{
|
|
55
|
+
readonly locale: "en" | "ja" | "ko";
|
|
56
|
+
readonly message: string;
|
|
57
|
+
}[]];
|
|
58
|
+
readonly warning?: boolean | undefined;
|
|
59
|
+
readonly when: string;
|
|
60
|
+
}[] | undefined;
|
|
49
61
|
readonly accept?: readonly string[] | undefined;
|
|
50
62
|
readonly maxFileSize?: number | undefined;
|
|
51
63
|
readonly maxTotalSize?: number | undefined;
|
|
@@ -91,6 +103,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
91
103
|
readonly locale: "en" | "ja" | "ko";
|
|
92
104
|
readonly message: string;
|
|
93
105
|
}[]] | undefined;
|
|
106
|
+
readonly required?: string | undefined;
|
|
94
107
|
readonly displayName?: string | undefined;
|
|
95
108
|
readonly compatibilityDate: "2026-05-12";
|
|
96
109
|
readonly orientation?: "vertical" | "floating" | undefined;
|
|
@@ -103,6 +116,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
103
116
|
}[]] | undefined;
|
|
104
117
|
readonly readonly?: string | undefined;
|
|
105
118
|
readonly binding?: string | undefined;
|
|
119
|
+
readonly validations?: readonly {
|
|
120
|
+
readonly message: readonly [{
|
|
121
|
+
readonly locale: "zh";
|
|
122
|
+
readonly message: string;
|
|
123
|
+
}, ...{
|
|
124
|
+
readonly locale: "en" | "ja" | "ko";
|
|
125
|
+
readonly message: string;
|
|
126
|
+
}[]];
|
|
127
|
+
readonly warning?: boolean | undefined;
|
|
128
|
+
readonly when: string;
|
|
129
|
+
}[] | undefined;
|
|
106
130
|
readonly accept?: readonly string[] | undefined;
|
|
107
131
|
readonly maxFileSize?: number | undefined;
|
|
108
132
|
readonly maxTotalSize?: number | undefined;
|