@shwfed/config 2.4.0 → 2.5.0
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 +128 -27
- package/dist/module.json +1 -1
- package/dist/preview/assets/{config-Bxkq2ZRm.js → config-BkytEQN5.js} +1 -1
- package/dist/preview/assets/{config-BdFIFUa_.js → config-CK011_jJ.js} +1 -1
- package/dist/preview/assets/{config-BcQQl4v6.js → config-C_bBX0wD.js} +1 -1
- package/dist/preview/assets/{config-CHHX7vhb.js → config-Cbn8o9BY.js} +1 -1
- package/dist/preview/assets/{config-CZ0f5xdI.js → config-DYL6kHr3.js} +1 -1
- package/dist/preview/assets/{config-Ddh8pxIi.js → config-Dx0zHfGt.js} +1 -1
- package/dist/preview/assets/{config-D9xGgFnF.js → config-E-DM6b5t.js} +1 -1
- package/dist/preview/assets/{config-C32yfrlg.js → config-PjseWUbC.js} +1 -1
- package/dist/preview/assets/{config-Bi9F-Jdh.js → config-dwcdYHd4.js} +1 -1
- package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-C_cjxvm1.js → definition.vue_vue_type_script_setup_true_lang-uJFJXxli.js} +1 -1
- package/dist/preview/assets/index-7MVXgV5n.css +1 -0
- package/dist/preview/assets/index-CmPiZG_4.js +1 -0
- package/dist/preview/assets/index-x-77enex.js +668 -0
- package/dist/preview/assets/runtime-BRMGkqSr.js +1 -0
- package/dist/preview/assets/runtime-CHLboM_z.js +1 -0
- package/dist/preview/assets/runtime-CeHdesjP.js +1 -0
- package/dist/preview/assets/runtime-D4_9FCLy.js +1 -0
- package/dist/preview/assets/runtime-DHBTDws7.js +1 -0
- package/dist/preview/assets/runtime-DJHpCLnr.js +1 -0
- package/dist/preview/assets/runtime-DKq86fZU.js +1 -0
- package/dist/preview/assets/runtime-DjpjaNec.js +1 -0
- package/dist/preview/assets/runtime-ZQryOEKm.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.table/schema.d.ts +1 -1
- 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/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 +14 -18
- package/dist/runtime/components/form/index.vue.d.ts +1 -0
- package/dist/runtime/components/form/schema.d.ts +2 -10
- package/dist/runtime/components/form/schema.js +2 -5
- package/dist/runtime/components/form/utils/cel-scope.d.ts +12 -3
- package/dist/runtime/components/form/utils/cel-scope.js +17 -18
- 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/form-vars.d.ts +19 -0
- package/dist/runtime/components/form/utils/form-vars.js +5 -0
- 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.date/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/config.vue +20 -7
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue +20 -7
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue +20 -7
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.js +2 -1
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue +20 -8
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.js +2 -1
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue +20 -7
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue +20 -7
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/schema.d.ts +1 -0
- package/dist/runtime/components/table/config.d.vue.ts +4 -2
- package/dist/runtime/components/table/config.vue +25 -45
- package/dist/runtime/components/table/config.vue.d.ts +4 -2
- package/dist/runtime/components/table/index.vue +22 -2
- package/dist/runtime/components/table/schema.d.ts +4 -2
- package/dist/runtime/components/table/schema.js +69 -13
- package/dist/runtime/components/table/utils/shared.d.ts +2 -0
- package/dist/runtime/components/table/utils/shared.js +12 -4
- 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-BqOX70Hd.css +0 -1
- package/dist/preview/assets/index-D-VR1i8D.js +0 -659
- package/dist/preview/assets/index-ihZGlPdX.js +0 -1
- package/dist/preview/assets/runtime-Bn8mqeDH.js +0 -1
- package/dist/preview/assets/runtime-Cc_Wk3o-.js +0 -1
- package/dist/preview/assets/runtime-CttAjIgg.js +0 -1
- package/dist/preview/assets/runtime-Cx4f2UTl.js +0 -1
- package/dist/preview/assets/runtime-D1dESjXR.js +0 -1
- package/dist/preview/assets/runtime-DIEP1Xbh.js +0 -1
- package/dist/preview/assets/runtime-DKceWuBx.js +0 -1
- package/dist/preview/assets/runtime-Dhid9O5c.js +0 -1
- package/dist/preview/assets/runtime-YMiqi6WY.js +0 -1
|
@@ -255,6 +255,24 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
255
255
|
id: Schema.refine<string, typeof Schema.String>;
|
|
256
256
|
displayName: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
257
257
|
hidden: Schema.optional<Schema.Schema<string, string, never>>;
|
|
258
|
+
required: Schema.optional<Schema.Schema<string, string, never>>;
|
|
259
|
+
validations: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
260
|
+
when: Schema.Schema<string, string, never>;
|
|
261
|
+
warning: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
262
|
+
message: Schema.refine<readonly [{
|
|
263
|
+
readonly locale: "zh";
|
|
264
|
+
readonly message: string;
|
|
265
|
+
}, ...{
|
|
266
|
+
readonly locale: "en" | "ja" | "ko";
|
|
267
|
+
readonly message: string;
|
|
268
|
+
}[]], Schema.TupleType<readonly [Schema.Struct<{
|
|
269
|
+
locale: Schema.Literal<["zh"]>;
|
|
270
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
271
|
+
}>], [Schema.Struct<{
|
|
272
|
+
locale: Schema.Literal<["ja", "en", "ko"]>;
|
|
273
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
274
|
+
}>]>>;
|
|
275
|
+
}>>>;
|
|
258
276
|
type: Schema.Literal<["com.shwfed.form.field.combobox.single"]>;
|
|
259
277
|
compatibilityDate: Schema.Literal<["2026-05-28"]>;
|
|
260
278
|
}>;
|
|
@@ -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-05-28";
|
|
27
28
|
readonly orientation?: "vertical" | "floating" | undefined;
|
|
@@ -54,6 +55,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
54
55
|
}[]];
|
|
55
56
|
readonly expandAll: boolean;
|
|
56
57
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
58
|
+
readonly validations?: readonly {
|
|
59
|
+
readonly message: readonly [{
|
|
60
|
+
readonly locale: "zh";
|
|
61
|
+
readonly message: string;
|
|
62
|
+
}, ...{
|
|
63
|
+
readonly locale: "en" | "ja" | "ko";
|
|
64
|
+
readonly message: string;
|
|
65
|
+
}[]];
|
|
66
|
+
readonly warning?: boolean | undefined;
|
|
67
|
+
readonly when: string;
|
|
68
|
+
}[] | undefined;
|
|
57
69
|
readonly nodeTooltip?: readonly [{
|
|
58
70
|
readonly locale: "zh";
|
|
59
71
|
readonly message: string;
|
|
@@ -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-05-28";
|
|
88
101
|
readonly orientation?: "vertical" | "floating" | undefined;
|
|
@@ -115,6 +128,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
115
128
|
}[]];
|
|
116
129
|
readonly expandAll: boolean;
|
|
117
130
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
131
|
+
readonly validations?: readonly {
|
|
132
|
+
readonly message: readonly [{
|
|
133
|
+
readonly locale: "zh";
|
|
134
|
+
readonly message: string;
|
|
135
|
+
}, ...{
|
|
136
|
+
readonly locale: "en" | "ja" | "ko";
|
|
137
|
+
readonly message: string;
|
|
138
|
+
}[]];
|
|
139
|
+
readonly warning?: boolean | undefined;
|
|
140
|
+
readonly when: string;
|
|
141
|
+
}[] | undefined;
|
|
118
142
|
readonly nodeTooltip?: readonly [{
|
|
119
143
|
readonly locale: "zh";
|
|
120
144
|
readonly message: string;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { computed, ref, watch } 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";
|
|
@@ -535,6 +536,26 @@ function setOptionalExpression(key, next) {
|
|
|
535
536
|
|
|
536
537
|
<!-- 通用: 隐藏 / 禁用 / 只读 + 派生值 -->
|
|
537
538
|
<div class="grid grid-cols-3 gap-3">
|
|
539
|
+
<Field orientation="vertical">
|
|
540
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
541
|
+
<template #tooltip>
|
|
542
|
+
<Markdown
|
|
543
|
+
:source="fieldDescription('required') ?? '\u8FD4\u56DE `true` \u65F6\u663E\u793A\u5FC5\u586B\u661F\u53F7\u5E76\u8981\u6C42\u975E\u7A7A'"
|
|
544
|
+
block
|
|
545
|
+
class="prose prose-sm prose-zinc"
|
|
546
|
+
/>
|
|
547
|
+
</template>
|
|
548
|
+
{{ fieldTitle("required") }}
|
|
549
|
+
</FieldLabel>
|
|
550
|
+
<ExpressionEditor
|
|
551
|
+
:model-value="value.required ?? ''"
|
|
552
|
+
placeholder="例:form.type == 'company'"
|
|
553
|
+
result-type="bool"
|
|
554
|
+
class="min-h-10"
|
|
555
|
+
@update:model-value="(v) => value = { ...value, required: v.length > 0 ? v : void 0 }"
|
|
556
|
+
/>
|
|
557
|
+
</Field>
|
|
558
|
+
|
|
538
559
|
<Field orientation="vertical">
|
|
539
560
|
<FieldLabel class="text-xs text-zinc-500">
|
|
540
561
|
<template #tooltip>
|
|
@@ -614,5 +635,22 @@ function setOptionalExpression(key, next) {
|
|
|
614
635
|
@update:model-value="(v) => value = { ...value, derived: v }"
|
|
615
636
|
/>
|
|
616
637
|
</Field>
|
|
638
|
+
|
|
639
|
+
<Field orientation="vertical">
|
|
640
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
641
|
+
<template #tooltip>
|
|
642
|
+
<Markdown
|
|
643
|
+
:source="fieldDescription('validations')"
|
|
644
|
+
block
|
|
645
|
+
class="prose prose-sm prose-zinc"
|
|
646
|
+
/>
|
|
647
|
+
</template>
|
|
648
|
+
{{ fieldTitle("validations") }}
|
|
649
|
+
</FieldLabel>
|
|
650
|
+
<ValidationRulesField
|
|
651
|
+
:model-value="value.validations"
|
|
652
|
+
@update:model-value="(v) => value = { ...value, validations: v.length > 0 ? v : void 0 }"
|
|
653
|
+
/>
|
|
654
|
+
</Field>
|
|
617
655
|
</div>
|
|
618
656
|
</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 compatibilityDate: "2026-05-28";
|
|
27
28
|
readonly orientation?: "vertical" | "floating" | undefined;
|
|
@@ -54,6 +55,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
54
55
|
}[]];
|
|
55
56
|
readonly expandAll: boolean;
|
|
56
57
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
58
|
+
readonly validations?: readonly {
|
|
59
|
+
readonly message: readonly [{
|
|
60
|
+
readonly locale: "zh";
|
|
61
|
+
readonly message: string;
|
|
62
|
+
}, ...{
|
|
63
|
+
readonly locale: "en" | "ja" | "ko";
|
|
64
|
+
readonly message: string;
|
|
65
|
+
}[]];
|
|
66
|
+
readonly warning?: boolean | undefined;
|
|
67
|
+
readonly when: string;
|
|
68
|
+
}[] | undefined;
|
|
57
69
|
readonly nodeTooltip?: readonly [{
|
|
58
70
|
readonly locale: "zh";
|
|
59
71
|
readonly message: string;
|
|
@@ -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-05-28";
|
|
88
101
|
readonly orientation?: "vertical" | "floating" | undefined;
|
|
@@ -115,6 +128,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
115
128
|
}[]];
|
|
116
129
|
readonly expandAll: boolean;
|
|
117
130
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
131
|
+
readonly validations?: readonly {
|
|
132
|
+
readonly message: readonly [{
|
|
133
|
+
readonly locale: "zh";
|
|
134
|
+
readonly message: string;
|
|
135
|
+
}, ...{
|
|
136
|
+
readonly locale: "en" | "ja" | "ko";
|
|
137
|
+
readonly message: string;
|
|
138
|
+
}[]];
|
|
139
|
+
readonly warning?: boolean | undefined;
|
|
140
|
+
readonly when: string;
|
|
141
|
+
}[] | undefined;
|
|
118
142
|
readonly nodeTooltip?: readonly [{
|
|
119
143
|
readonly locale: "zh";
|
|
120
144
|
readonly message: string;
|
|
@@ -7,7 +7,7 @@ import { useI18n } from "vue-i18n";
|
|
|
7
7
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
8
8
|
import { celBindings, injectCELContext } from "../../../../../utils/cel-context";
|
|
9
9
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
10
|
-
import { Field, FieldLabel } from "../../../../ui/field";
|
|
10
|
+
import { Field, FieldLabel, FieldMessages } from "../../../../ui/field";
|
|
11
11
|
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from "../../../../ui/input-group";
|
|
12
12
|
import { Markdown } from "../../../../ui/markdown";
|
|
13
13
|
import { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from "../../../../ui/popover";
|
|
@@ -17,6 +17,7 @@ import { interpolateMarkdown } from "../../../../table/utils/runtime";
|
|
|
17
17
|
import { DEFAULT_FIELD_ORIENTATION } from "../../../utils/common";
|
|
18
18
|
import { useFormReadonly } from "../../../utils/readonly";
|
|
19
19
|
import { useFormState } from "../../../utils/state";
|
|
20
|
+
import { useFieldValidation } from "../../../utils/validation";
|
|
20
21
|
import {
|
|
21
22
|
findWrappedPath,
|
|
22
23
|
getWrappedChildren,
|
|
@@ -84,6 +85,12 @@ const isReadonly = computed(
|
|
|
84
85
|
() => props.config.readonly != null ? evalBool(props.config.readonly, "readonly") : formReadonly.value
|
|
85
86
|
);
|
|
86
87
|
const effectiveReadonly = computed(() => isReadonly.value || props.config.derived?.mode === "formula");
|
|
88
|
+
const { isRequired, errors, warnings, visible } = useFieldValidation({
|
|
89
|
+
fieldId: () => props.fieldId,
|
|
90
|
+
config: () => props.config,
|
|
91
|
+
$cel,
|
|
92
|
+
locale: () => locale.value
|
|
93
|
+
});
|
|
87
94
|
const uncontrolled = ref([]);
|
|
88
95
|
const model = computed({
|
|
89
96
|
get: () => {
|
|
@@ -334,7 +341,11 @@ const hoveredTooltip = computed(() => {
|
|
|
334
341
|
class="prose prose-xs prose-zinc"
|
|
335
342
|
/>
|
|
336
343
|
</template>
|
|
337
|
-
{{ labelText }}
|
|
344
|
+
{{ labelText }}<span
|
|
345
|
+
v-if="isRequired"
|
|
346
|
+
aria-hidden="true"
|
|
347
|
+
class="text-red-600"
|
|
348
|
+
> *</span>
|
|
338
349
|
</FieldLabel>
|
|
339
350
|
|
|
340
351
|
<div
|
|
@@ -497,5 +508,10 @@ const hoveredTooltip = computed(() => {
|
|
|
497
508
|
</div>
|
|
498
509
|
</PopoverContent>
|
|
499
510
|
</Popover>
|
|
511
|
+
<FieldMessages
|
|
512
|
+
v-if="visible"
|
|
513
|
+
:errors="errors"
|
|
514
|
+
:warnings="warnings"
|
|
515
|
+
/>
|
|
500
516
|
</Field>
|
|
501
517
|
</template>
|
|
@@ -90,6 +90,24 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
90
90
|
id: Schema.refine<string, typeof Schema.String>;
|
|
91
91
|
displayName: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
92
92
|
hidden: Schema.optional<Schema.Schema<string, string, never>>;
|
|
93
|
+
required: Schema.optional<Schema.Schema<string, string, never>>;
|
|
94
|
+
validations: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
95
|
+
when: Schema.Schema<string, string, never>;
|
|
96
|
+
warning: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
97
|
+
message: Schema.refine<readonly [{
|
|
98
|
+
readonly locale: "zh";
|
|
99
|
+
readonly message: string;
|
|
100
|
+
}, ...{
|
|
101
|
+
readonly locale: "en" | "ja" | "ko";
|
|
102
|
+
readonly message: string;
|
|
103
|
+
}[]], Schema.TupleType<readonly [Schema.Struct<{
|
|
104
|
+
locale: Schema.Literal<["zh"]>;
|
|
105
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
106
|
+
}>], [Schema.Struct<{
|
|
107
|
+
locale: Schema.Literal<["ja", "en", "ko"]>;
|
|
108
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
109
|
+
}>]>>;
|
|
110
|
+
}>>>;
|
|
93
111
|
type: Schema.Literal<["com.shwfed.form.field.tree.combobox.multi"]>;
|
|
94
112
|
compatibilityDate: Schema.Literal<["2026-05-28"]>;
|
|
95
113
|
}>;
|
|
@@ -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-05-28";
|
|
27
28
|
readonly orientation?: "vertical" | "floating" | undefined;
|
|
@@ -53,6 +54,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
53
54
|
readonly message: string;
|
|
54
55
|
}[]];
|
|
55
56
|
readonly expandAll: boolean;
|
|
57
|
+
readonly validations?: readonly {
|
|
58
|
+
readonly message: readonly [{
|
|
59
|
+
readonly locale: "zh";
|
|
60
|
+
readonly message: string;
|
|
61
|
+
}, ...{
|
|
62
|
+
readonly locale: "en" | "ja" | "ko";
|
|
63
|
+
readonly message: string;
|
|
64
|
+
}[]];
|
|
65
|
+
readonly warning?: boolean | undefined;
|
|
66
|
+
readonly when: string;
|
|
67
|
+
}[] | undefined;
|
|
56
68
|
readonly nodeTooltip?: readonly [{
|
|
57
69
|
readonly locale: "zh";
|
|
58
70
|
readonly message: string;
|
|
@@ -82,6 +94,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
82
94
|
readonly locale: "en" | "ja" | "ko";
|
|
83
95
|
readonly message: string;
|
|
84
96
|
}[]] | undefined;
|
|
97
|
+
readonly required?: string | undefined;
|
|
85
98
|
readonly displayName?: string | undefined;
|
|
86
99
|
readonly compatibilityDate: "2026-05-28";
|
|
87
100
|
readonly orientation?: "vertical" | "floating" | undefined;
|
|
@@ -113,6 +126,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
113
126
|
readonly message: string;
|
|
114
127
|
}[]];
|
|
115
128
|
readonly expandAll: boolean;
|
|
129
|
+
readonly validations?: readonly {
|
|
130
|
+
readonly message: readonly [{
|
|
131
|
+
readonly locale: "zh";
|
|
132
|
+
readonly message: string;
|
|
133
|
+
}, ...{
|
|
134
|
+
readonly locale: "en" | "ja" | "ko";
|
|
135
|
+
readonly message: string;
|
|
136
|
+
}[]];
|
|
137
|
+
readonly warning?: boolean | undefined;
|
|
138
|
+
readonly when: string;
|
|
139
|
+
}[] | undefined;
|
|
116
140
|
readonly nodeTooltip?: readonly [{
|
|
117
141
|
readonly locale: "zh";
|
|
118
142
|
readonly message: string;
|
|
@@ -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";
|
|
@@ -467,6 +468,26 @@ function setOptionalExpression(key, next) {
|
|
|
467
468
|
|
|
468
469
|
<!-- 通用: 隐藏 / 禁用 / 只读 + 派生值 -->
|
|
469
470
|
<div class="grid grid-cols-3 gap-3">
|
|
471
|
+
<Field orientation="vertical">
|
|
472
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
473
|
+
<template #tooltip>
|
|
474
|
+
<Markdown
|
|
475
|
+
:source="fieldDescription('required') ?? '\u8FD4\u56DE `true` \u65F6\u663E\u793A\u5FC5\u586B\u661F\u53F7\u5E76\u8981\u6C42\u975E\u7A7A'"
|
|
476
|
+
block
|
|
477
|
+
class="prose prose-sm prose-zinc"
|
|
478
|
+
/>
|
|
479
|
+
</template>
|
|
480
|
+
{{ fieldTitle("required") }}
|
|
481
|
+
</FieldLabel>
|
|
482
|
+
<ExpressionEditor
|
|
483
|
+
:model-value="value.required ?? ''"
|
|
484
|
+
placeholder="例:form.type == 'company'"
|
|
485
|
+
result-type="bool"
|
|
486
|
+
class="min-h-10"
|
|
487
|
+
@update:model-value="(v) => value = { ...value, required: v.length > 0 ? v : void 0 }"
|
|
488
|
+
/>
|
|
489
|
+
</Field>
|
|
490
|
+
|
|
470
491
|
<Field orientation="vertical">
|
|
471
492
|
<FieldLabel class="text-xs text-zinc-500">
|
|
472
493
|
<template #tooltip>
|
|
@@ -546,5 +567,22 @@ function setOptionalExpression(key, next) {
|
|
|
546
567
|
@update:model-value="(v) => value = { ...value, derived: v }"
|
|
547
568
|
/>
|
|
548
569
|
</Field>
|
|
570
|
+
|
|
571
|
+
<Field orientation="vertical">
|
|
572
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
573
|
+
<template #tooltip>
|
|
574
|
+
<Markdown
|
|
575
|
+
:source="fieldDescription('validations')"
|
|
576
|
+
block
|
|
577
|
+
class="prose prose-sm prose-zinc"
|
|
578
|
+
/>
|
|
579
|
+
</template>
|
|
580
|
+
{{ fieldTitle("validations") }}
|
|
581
|
+
</FieldLabel>
|
|
582
|
+
<ValidationRulesField
|
|
583
|
+
:model-value="value.validations"
|
|
584
|
+
@update:model-value="(v) => value = { ...value, validations: v.length > 0 ? v : void 0 }"
|
|
585
|
+
/>
|
|
586
|
+
</Field>
|
|
549
587
|
</div>
|
|
550
588
|
</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 compatibilityDate: "2026-05-28";
|
|
27
28
|
readonly orientation?: "vertical" | "floating" | undefined;
|
|
@@ -53,6 +54,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
53
54
|
readonly message: string;
|
|
54
55
|
}[]];
|
|
55
56
|
readonly expandAll: boolean;
|
|
57
|
+
readonly validations?: readonly {
|
|
58
|
+
readonly message: readonly [{
|
|
59
|
+
readonly locale: "zh";
|
|
60
|
+
readonly message: string;
|
|
61
|
+
}, ...{
|
|
62
|
+
readonly locale: "en" | "ja" | "ko";
|
|
63
|
+
readonly message: string;
|
|
64
|
+
}[]];
|
|
65
|
+
readonly warning?: boolean | undefined;
|
|
66
|
+
readonly when: string;
|
|
67
|
+
}[] | undefined;
|
|
56
68
|
readonly nodeTooltip?: readonly [{
|
|
57
69
|
readonly locale: "zh";
|
|
58
70
|
readonly message: string;
|
|
@@ -82,6 +94,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
82
94
|
readonly locale: "en" | "ja" | "ko";
|
|
83
95
|
readonly message: string;
|
|
84
96
|
}[]] | undefined;
|
|
97
|
+
readonly required?: string | undefined;
|
|
85
98
|
readonly displayName?: string | undefined;
|
|
86
99
|
readonly compatibilityDate: "2026-05-28";
|
|
87
100
|
readonly orientation?: "vertical" | "floating" | undefined;
|
|
@@ -113,6 +126,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
113
126
|
readonly message: string;
|
|
114
127
|
}[]];
|
|
115
128
|
readonly expandAll: boolean;
|
|
129
|
+
readonly validations?: readonly {
|
|
130
|
+
readonly message: readonly [{
|
|
131
|
+
readonly locale: "zh";
|
|
132
|
+
readonly message: string;
|
|
133
|
+
}, ...{
|
|
134
|
+
readonly locale: "en" | "ja" | "ko";
|
|
135
|
+
readonly message: string;
|
|
136
|
+
}[]];
|
|
137
|
+
readonly warning?: boolean | undefined;
|
|
138
|
+
readonly when: string;
|
|
139
|
+
}[] | undefined;
|
|
116
140
|
readonly nodeTooltip?: readonly [{
|
|
117
141
|
readonly locale: "zh";
|
|
118
142
|
readonly message: string;
|
|
@@ -7,7 +7,7 @@ import { useI18n } from "vue-i18n";
|
|
|
7
7
|
import { cel as _rawCel } from "../../../../../utils/cel";
|
|
8
8
|
import { celBindings, injectCELContext } from "../../../../../utils/cel-context";
|
|
9
9
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
10
|
-
import { Field, FieldLabel } from "../../../../ui/field";
|
|
10
|
+
import { Field, FieldLabel, FieldMessages } from "../../../../ui/field";
|
|
11
11
|
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from "../../../../ui/input-group";
|
|
12
12
|
import { Markdown } from "../../../../ui/markdown";
|
|
13
13
|
import { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from "../../../../ui/popover";
|
|
@@ -17,6 +17,7 @@ import { interpolateMarkdown } from "../../../../table/utils/runtime";
|
|
|
17
17
|
import { DEFAULT_FIELD_ORIENTATION } from "../../../utils/common";
|
|
18
18
|
import { useFormReadonly } from "../../../utils/readonly";
|
|
19
19
|
import { useFormState } from "../../../utils/state";
|
|
20
|
+
import { useFieldValidation } from "../../../utils/validation";
|
|
20
21
|
import {
|
|
21
22
|
findWrappedPath,
|
|
22
23
|
getWrappedChildren,
|
|
@@ -84,6 +85,12 @@ const isReadonly = computed(
|
|
|
84
85
|
() => props.config.readonly != null ? evalBool(props.config.readonly, "readonly") : formReadonly.value
|
|
85
86
|
);
|
|
86
87
|
const effectiveReadonly = computed(() => isReadonly.value || props.config.derived?.mode === "formula");
|
|
88
|
+
const { isRequired, errors, warnings, visible } = useFieldValidation({
|
|
89
|
+
fieldId: () => props.fieldId,
|
|
90
|
+
config: () => props.config,
|
|
91
|
+
$cel,
|
|
92
|
+
locale: () => locale.value
|
|
93
|
+
});
|
|
87
94
|
const uncontrolled = ref(void 0);
|
|
88
95
|
const model = computed({
|
|
89
96
|
get: () => {
|
|
@@ -330,7 +337,11 @@ const hoveredTooltip = computed(() => {
|
|
|
330
337
|
class="prose prose-xs prose-zinc"
|
|
331
338
|
/>
|
|
332
339
|
</template>
|
|
333
|
-
{{ labelText }}
|
|
340
|
+
{{ labelText }}<span
|
|
341
|
+
v-if="isRequired"
|
|
342
|
+
aria-hidden="true"
|
|
343
|
+
class="text-red-600"
|
|
344
|
+
> *</span>
|
|
334
345
|
</FieldLabel>
|
|
335
346
|
|
|
336
347
|
<div
|
|
@@ -492,5 +503,10 @@ const hoveredTooltip = computed(() => {
|
|
|
492
503
|
</div>
|
|
493
504
|
</PopoverContent>
|
|
494
505
|
</Popover>
|
|
506
|
+
<FieldMessages
|
|
507
|
+
v-if="visible"
|
|
508
|
+
:errors="errors"
|
|
509
|
+
:warnings="warnings"
|
|
510
|
+
/>
|
|
495
511
|
</Field>
|
|
496
512
|
</template>
|
|
@@ -87,6 +87,24 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
|
|
|
87
87
|
id: Schema.refine<string, typeof Schema.String>;
|
|
88
88
|
displayName: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
89
89
|
hidden: Schema.optional<Schema.Schema<string, string, never>>;
|
|
90
|
+
required: Schema.optional<Schema.Schema<string, string, never>>;
|
|
91
|
+
validations: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
92
|
+
when: Schema.Schema<string, string, never>;
|
|
93
|
+
warning: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
|
|
94
|
+
message: Schema.refine<readonly [{
|
|
95
|
+
readonly locale: "zh";
|
|
96
|
+
readonly message: string;
|
|
97
|
+
}, ...{
|
|
98
|
+
readonly locale: "en" | "ja" | "ko";
|
|
99
|
+
readonly message: string;
|
|
100
|
+
}[]], Schema.TupleType<readonly [Schema.Struct<{
|
|
101
|
+
locale: Schema.Literal<["zh"]>;
|
|
102
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
103
|
+
}>], [Schema.Struct<{
|
|
104
|
+
locale: Schema.Literal<["ja", "en", "ko"]>;
|
|
105
|
+
message: Schema.SchemaClass<string, string, never>;
|
|
106
|
+
}>]>>;
|
|
107
|
+
}>>>;
|
|
90
108
|
type: Schema.Literal<["com.shwfed.form.field.tree.combobox.single"]>;
|
|
91
109
|
compatibilityDate: Schema.Literal<["2026-05-28"]>;
|
|
92
110
|
}>;
|
|
@@ -33,6 +33,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
33
33
|
readonly locale: "en" | "ja" | "ko";
|
|
34
34
|
readonly message: string;
|
|
35
35
|
}[]] | undefined;
|
|
36
|
+
readonly required?: string | undefined;
|
|
36
37
|
readonly displayName?: string | undefined;
|
|
37
38
|
readonly compatibilityDate: "2026-05-28";
|
|
38
39
|
readonly readonly?: string | undefined;
|
|
@@ -56,6 +57,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
56
57
|
}[]];
|
|
57
58
|
readonly expandAll: boolean;
|
|
58
59
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
60
|
+
readonly validations?: readonly {
|
|
61
|
+
readonly message: readonly [{
|
|
62
|
+
readonly locale: "zh";
|
|
63
|
+
readonly message: string;
|
|
64
|
+
}, ...{
|
|
65
|
+
readonly locale: "en" | "ja" | "ko";
|
|
66
|
+
readonly message: string;
|
|
67
|
+
}[]];
|
|
68
|
+
readonly warning?: boolean | undefined;
|
|
69
|
+
readonly when: string;
|
|
70
|
+
}[] | undefined;
|
|
59
71
|
readonly nodeTooltip?: readonly [{
|
|
60
72
|
readonly locale: "zh";
|
|
61
73
|
readonly message: string;
|
|
@@ -96,6 +108,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
96
108
|
readonly locale: "en" | "ja" | "ko";
|
|
97
109
|
readonly message: string;
|
|
98
110
|
}[]] | undefined;
|
|
111
|
+
readonly required?: string | undefined;
|
|
99
112
|
readonly displayName?: string | undefined;
|
|
100
113
|
readonly compatibilityDate: "2026-05-28";
|
|
101
114
|
readonly readonly?: string | undefined;
|
|
@@ -119,6 +132,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
119
132
|
}[]];
|
|
120
133
|
readonly expandAll: boolean;
|
|
121
134
|
readonly cascade: "independent" | "cascade-down" | "cascade-both";
|
|
135
|
+
readonly validations?: readonly {
|
|
136
|
+
readonly message: readonly [{
|
|
137
|
+
readonly locale: "zh";
|
|
138
|
+
readonly message: string;
|
|
139
|
+
}, ...{
|
|
140
|
+
readonly locale: "en" | "ja" | "ko";
|
|
141
|
+
readonly message: string;
|
|
142
|
+
}[]];
|
|
143
|
+
readonly warning?: boolean | undefined;
|
|
144
|
+
readonly when: string;
|
|
145
|
+
}[] | undefined;
|
|
122
146
|
readonly nodeTooltip?: readonly [{
|
|
123
147
|
readonly locale: "zh";
|
|
124
148
|
readonly message: string;
|
package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/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";
|
|
@@ -522,6 +523,26 @@ function setFilterKeywords(next) {
|
|
|
522
523
|
|
|
523
524
|
<!-- 通用:隐藏 / 禁用 / 只读 + 派生值 — conventionally last -->
|
|
524
525
|
<div class="grid grid-cols-3 gap-3">
|
|
526
|
+
<Field orientation="vertical">
|
|
527
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
528
|
+
<template #tooltip>
|
|
529
|
+
<Markdown
|
|
530
|
+
:source="fieldDescription('required') ?? '\u8FD4\u56DE `true` \u65F6\u663E\u793A\u5FC5\u586B\u661F\u53F7\u5E76\u8981\u6C42\u975E\u7A7A'"
|
|
531
|
+
block
|
|
532
|
+
class="prose prose-sm prose-zinc"
|
|
533
|
+
/>
|
|
534
|
+
</template>
|
|
535
|
+
{{ fieldTitle("required") }}
|
|
536
|
+
</FieldLabel>
|
|
537
|
+
<ExpressionEditor
|
|
538
|
+
:model-value="value.required ?? ''"
|
|
539
|
+
placeholder="例:form.type == 'company'"
|
|
540
|
+
result-type="bool"
|
|
541
|
+
class="min-h-10"
|
|
542
|
+
@update:model-value="(v) => value = { ...value, required: v.length > 0 ? v : void 0 }"
|
|
543
|
+
/>
|
|
544
|
+
</Field>
|
|
545
|
+
|
|
525
546
|
<Field orientation="vertical">
|
|
526
547
|
<FieldLabel class="text-xs text-zinc-500">
|
|
527
548
|
<template #tooltip>
|
|
@@ -601,5 +622,22 @@ function setFilterKeywords(next) {
|
|
|
601
622
|
@update:model-value="(v) => value = { ...value, derived: v }"
|
|
602
623
|
/>
|
|
603
624
|
</Field>
|
|
625
|
+
|
|
626
|
+
<Field orientation="vertical">
|
|
627
|
+
<FieldLabel class="text-xs text-zinc-500">
|
|
628
|
+
<template #tooltip>
|
|
629
|
+
<Markdown
|
|
630
|
+
:source="fieldDescription('validations')"
|
|
631
|
+
block
|
|
632
|
+
class="prose prose-sm prose-zinc"
|
|
633
|
+
/>
|
|
634
|
+
</template>
|
|
635
|
+
{{ fieldTitle("validations") }}
|
|
636
|
+
</FieldLabel>
|
|
637
|
+
<ValidationRulesField
|
|
638
|
+
:model-value="value.validations"
|
|
639
|
+
@update:model-value="(v) => value = { ...value, validations: v.length > 0 ? v : void 0 }"
|
|
640
|
+
/>
|
|
641
|
+
</Field>
|
|
604
642
|
</div>
|
|
605
643
|
</template>
|