@shwfed/config 2.10.12 → 2.11.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 +88 -54
- package/dist/module.json +1 -1
- package/dist/preview/assets/{FieldGroup.vue_vue_type_script_setup_true_lang-BeqytPDr.js → FieldGroup.vue_vue_type_script_setup_true_lang-CosmpPSu.js} +1 -1
- package/dist/preview/assets/{badge-DkHwLDps.js → badge-BkYCxTFK.js} +1 -1
- package/dist/preview/assets/{config-Dx1SXsSf.js → config-74YmXQsH.js} +1 -1
- package/dist/preview/assets/{config-DbV3RlZz.js → config-B62b9dMF.js} +1 -1
- package/dist/preview/assets/{config-OPQWANCx.js → config-BHYlKhDX.js} +1 -1
- package/dist/preview/assets/{config-Cft-srKd.js → config-Bbbyd5lB.js} +1 -1
- package/dist/preview/assets/{config-Uw4cvZGX.js → config-BcZe-bR9.js} +1 -1
- package/dist/preview/assets/{config-DJQ2LOWo.js → config-Bt6--diX.js} +1 -1
- package/dist/preview/assets/{config-CVPVYMuh.js → config-COr2MFhN.js} +1 -1
- package/dist/preview/assets/{config-7KeAl8UU.js → config-CPsd0ppi.js} +1 -1
- package/dist/preview/assets/{config-DAZ2Uj6B.js → config-CYVafGLc.js} +1 -1
- package/dist/preview/assets/{config-DQVKd54J.js → config-C_Ia1CDq.js} +1 -1
- package/dist/preview/assets/{config-CZ1e9utV.js → config-Cbp7aAAw.js} +1 -1
- package/dist/preview/assets/{config-DCANpbtq.js → config-Dk9OegYx.js} +1 -1
- package/dist/preview/assets/{config-Cedm-E2H.js → config-Dt8k1gnT.js} +1 -1
- package/dist/preview/assets/{config-Cy6Eix27.js → config-sCP15_0f.js} +1 -1
- package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-D4Gh9PzS.js → definition.vue_vue_type_script_setup_true_lang-C3NiB99t.js} +1 -1
- package/dist/preview/assets/{index-Cum0oK9u.js → index-BMOizF8g.js} +1 -1
- package/dist/preview/assets/index-C9G8y6qZ.js +1 -0
- package/dist/preview/assets/index-DjG-VVR4.js +763 -0
- package/dist/preview/assets/index-DqRQ67sX.css +1 -0
- package/dist/preview/assets/{item-H4QeOpnC.js → item-C1efxuFt.js} +1 -1
- package/dist/preview/assets/{runtime-C3532B0Y.js → runtime-7z9N9JGG.js} +1 -1
- package/dist/preview/assets/{runtime-sPGVp7yA.js → runtime-Bpa1zRxG.js} +1 -1
- package/dist/preview/assets/{runtime-DvCHNIPq.js → runtime-Csv04MYG.js} +1 -1
- package/dist/preview/assets/{runtime-CwgX0PuH.js → runtime-D0bjM4NL.js} +1 -1
- package/dist/preview/assets/{runtime-CNMjRr9Y.js → runtime-DoLpKFu-.js} +1 -1
- package/dist/preview/assets/{runtime-BotFX6qJ.js → runtime-Du0ghzR2.js} +1 -1
- package/dist/preview/assets/{runtime-CTnwTJlw.js → runtime-Dz3ZQYdq.js} +1 -1
- package/dist/preview/assets/{runtime-cKOD2A6u.js → runtime-Dz7SCudL.js} +1 -1
- package/dist/preview/assets/{runtime-D5HcLLLR.js → runtime-LgZuN2Tf.js} +1 -1
- package/dist/preview/assets/{runtime-ibuFFD1K.js → runtime-S9eZ2nJS.js} +1 -1
- package/dist/preview/assets/{schema-meta-DtZNwp3h.js → schema-meta-CYKPEnu9.js} +1 -1
- package/dist/preview/index.html +2 -2
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.js +10 -1
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.d.vue.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.vue.d.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +4 -4
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +4 -4
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +6 -6
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +6 -6
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.d.vue.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.vue.d.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.js +10 -1
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.d.vue.ts +4 -4
- package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.vue.d.ts +4 -4
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-06-09/com.shwfed.form.field.upload/runtime.vue +23 -1
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/config.vue +30 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.d.ts +2 -1
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.js +1 -1
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/config.vue +30 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.d.ts +2 -1
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.js +7 -4
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/config.vue +30 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.d.ts +2 -1
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.js +1 -1
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/config.vue +30 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.d.ts +2 -1
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.js +1 -1
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/schema.d.ts +2 -1
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/schema.js +1 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/config.vue +30 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.d.ts +2 -1
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.js +1 -1
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/config.vue +60 -32
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/runtime.vue +7 -9
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.d.ts +4 -1
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.js +12 -6
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/config.vue +67 -32
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/runtime.vue +6 -9
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.d.ts +4 -1
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.js +2 -5
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/config.vue +66 -31
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/runtime.vue +7 -9
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.d.ts +4 -1
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.js +12 -6
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/schema.d.ts +1 -1
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/schema.js +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 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/schema.d.ts +1 -1
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/schema.js +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 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/schema.d.ts +1 -1
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/schema.js +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 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/schema.d.ts +1 -1
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/schema.js +1 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/schema.d.ts +1 -1
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/schema.js +1 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/schema.d.ts +1 -1
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/schema.js +1 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.d.vue.ts +6 -4
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.vue +61 -22
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.vue.d.ts +6 -4
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/runtime.vue +6 -9
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/schema.d.ts +4 -1
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/schema.js +3 -4
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.d.vue.ts +6 -4
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.vue +61 -22
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.vue.d.ts +6 -4
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/runtime.vue +6 -9
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/schema.d.ts +4 -1
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/schema.js +3 -4
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +4 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue +67 -23
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +4 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/runtime.vue +6 -9
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +4 -1
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-multi/schema.js +2 -4
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +4 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue +67 -23
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +4 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/runtime.vue +6 -9
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/schema.d.ts +4 -1
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.tree-combobox-single/schema.js +2 -4
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/config.vue +67 -32
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/runtime.vue +7 -9
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.d.ts +4 -1
- package/dist/runtime/components/table/columns/2026-06-17/com.shwfed.table.column.date-input/schema.js +2 -5
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/config.vue +66 -31
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/runtime.vue +5 -8
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/schema.d.ts +4 -1
- package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/schema.js +4 -6
- package/dist/runtime/components/table/index.vue +46 -7
- package/dist/runtime/components/table/utils/runtime.d.ts +1 -0
- package/dist/runtime/components/table/utils/runtime.js +5 -0
- package/dist/runtime/components/table/utils/shared.d.ts +3 -1
- package/dist/runtime/components/table/utils/shared.js +17 -5
- package/dist/runtime/components/ui/date-picker/DatePickerInput.d.vue.ts +1 -1
- package/dist/runtime/components/ui/date-picker/DatePickerInput.vue +9 -2
- package/dist/runtime/components/ui/date-picker/DatePickerInput.vue.d.ts +1 -1
- package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.d.vue.ts +1 -1
- package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.vue.d.ts +1 -1
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.d.vue.ts +1 -1
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.vue +13 -4
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.vue.d.ts +1 -1
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.d.vue.ts +2 -2
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.vue.d.ts +2 -2
- package/package.json +1 -1
- package/dist/preview/assets/index-B3HnlKis.js +0 -763
- package/dist/preview/assets/index-BAY6NLoo.css +0 -1
- package/dist/preview/assets/index-CxUuhfsO.js +0 -1
package/dist/mcp.mjs
CHANGED
|
@@ -83369,7 +83369,16 @@ function schema$1h(configure) {
|
|
|
83369
83369
|
description: "返回 `true` 时仅以纯文本展示当前值"
|
|
83370
83370
|
})),
|
|
83371
83371
|
derived: derivedField(configure, "string"),
|
|
83372
|
-
|
|
83372
|
+
// `Schema.optional` rebuilds the struct's union member, and because the
|
|
83373
|
+
// `optionalWith`-default fields make `AddonActions` a `Transformation`, the
|
|
83374
|
+
// inner struct's `title`/`description` don't survive onto the rebuilt
|
|
83375
|
+
// member. The config editor's `getStructFieldTitle('addon')` would then fall
|
|
83376
|
+
// back to the raw key "addon". Re-state them on the property signature,
|
|
83377
|
+
// which the meta reader checks before the field type.
|
|
83378
|
+
addon: optional(AddonActions$3(configure)).annotations({
|
|
83379
|
+
title: "输入框内按钮",
|
|
83380
|
+
description: "在输入框右侧内嵌一组操作按钮"
|
|
83381
|
+
})
|
|
83373
83382
|
}).annotations({
|
|
83374
83383
|
title: "TextField",
|
|
83375
83384
|
description: "单行文本输入"
|
|
@@ -84208,7 +84217,16 @@ function schema$17(configure) {
|
|
|
84208
84217
|
title: "最大值",
|
|
84209
84218
|
description: "允许输入的最大值表达式;留空时不限制上限"
|
|
84210
84219
|
})),
|
|
84211
|
-
|
|
84220
|
+
// `Schema.optional` rebuilds the struct's union member, and because the
|
|
84221
|
+
// `optionalWith`-default fields make `AddonActions` a `Transformation`, the
|
|
84222
|
+
// inner struct's `title`/`description` don't survive onto the rebuilt
|
|
84223
|
+
// member. The config editor's `getStructFieldTitle('addon')` would then fall
|
|
84224
|
+
// back to the raw key "addon". Re-state them on the property signature,
|
|
84225
|
+
// which the meta reader checks before the field type.
|
|
84226
|
+
addon: optional(AddonActions$2(configure)).annotations({
|
|
84227
|
+
title: "输入框内按钮",
|
|
84228
|
+
description: "在输入框右侧内嵌一组操作按钮"
|
|
84229
|
+
})
|
|
84212
84230
|
}).annotations({
|
|
84213
84231
|
title: "NumberField",
|
|
84214
84232
|
description: "数值输入"
|
|
@@ -90279,10 +90297,14 @@ function columnFields(configure) {
|
|
|
90279
90297
|
return {
|
|
90280
90298
|
...columnIdentityFields(),
|
|
90281
90299
|
title: Locale.annotations({ title: "名称", description: "列标题" }),
|
|
90282
|
-
|
|
90300
|
+
// Optional: a purely visual column (icon, badge, computed-elsewhere cell)
|
|
90301
|
+
// may have no backing data path, letting designers refine the display layer
|
|
90302
|
+
// without an API contract first. Absent → the cell renders no data; present
|
|
90303
|
+
// → still validated as a CEL expression (empty string stays invalid).
|
|
90304
|
+
accessor: optional(CelRowAccess(configure).annotations({
|
|
90283
90305
|
title: "路径",
|
|
90284
|
-
description: "行数据访问 CEL 表达式,例如 `row.user.name
|
|
90285
|
-
}),
|
|
90306
|
+
description: "行数据访问 CEL 表达式,例如 `row.user.name`;可留空,留空时该列不读取数据(用于纯视觉列)"
|
|
90307
|
+
})),
|
|
90286
90308
|
enableSorting: optional(Boolean$.annotations({
|
|
90287
90309
|
title: "允许排序",
|
|
90288
90310
|
description: md$1`
|
|
@@ -90307,7 +90329,11 @@ function columnFields(configure) {
|
|
|
90307
90329
|
description: "指定一个合适的表格列宽度,当列内容长度大于这里指定的宽度后,会导致超出的部分被截断。"
|
|
90308
90330
|
})),
|
|
90309
90331
|
grow: optional(Boolean$.annotations({ title: "占据剩余宽度", description: "列是否占据剩余空余宽度" })),
|
|
90310
|
-
tooltip: optional(Locale.annotations({ title: "提示", description: "列标题悬浮提示,支持 Markdown" }))
|
|
90332
|
+
tooltip: optional(Locale.annotations({ title: "提示", description: "列标题悬浮提示,支持 Markdown" })),
|
|
90333
|
+
hidden: optional(Boolean$.annotations({
|
|
90334
|
+
title: "默认隐藏",
|
|
90335
|
+
description: "开启后该列默认隐藏;使用者可在表格的列设置中重新显示。仅作为初始状态,不随数据变化"
|
|
90336
|
+
}))
|
|
90311
90337
|
};
|
|
90312
90338
|
}
|
|
90313
90339
|
function editableColumnFields() {
|
|
@@ -90331,7 +90357,11 @@ function editableColumnFields() {
|
|
|
90331
90357
|
description: "指定一个合适的表格列宽度,当列内容长度大于这里指定的宽度后,会导致超出的部分被截断。"
|
|
90332
90358
|
})),
|
|
90333
90359
|
grow: optional(Boolean$.annotations({ title: "占据剩余宽度", description: "列是否占据剩余空余宽度" })),
|
|
90334
|
-
tooltip: optional(Locale.annotations({ title: "提示", description: "列标题悬浮提示,支持 Markdown" }))
|
|
90360
|
+
tooltip: optional(Locale.annotations({ title: "提示", description: "列标题悬浮提示,支持 Markdown" })),
|
|
90361
|
+
hidden: optional(Boolean$.annotations({
|
|
90362
|
+
title: "默认隐藏",
|
|
90363
|
+
description: "开启后该列默认隐藏;使用者可在表格的列设置中重新显示。仅作为初始状态,不随数据变化"
|
|
90364
|
+
}))
|
|
90335
90365
|
};
|
|
90336
90366
|
}
|
|
90337
90367
|
const EDITABLE_HEADER_MARKER = /* @__PURE__ */ Symbol("shwfed-editable-header");
|
|
@@ -90449,7 +90479,6 @@ function schema$Z(configure) {
|
|
|
90449
90479
|
function defaults$A() {
|
|
90450
90480
|
return {
|
|
90451
90481
|
title: [{ locale: "zh", message: "" }],
|
|
90452
|
-
accessor: "",
|
|
90453
90482
|
format: "yyyy-MM-dd",
|
|
90454
90483
|
size: 120
|
|
90455
90484
|
};
|
|
@@ -90458,6 +90487,7 @@ function toColumnDef$y(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
90458
90487
|
return {
|
|
90459
90488
|
header: getLocaleText(value.title),
|
|
90460
90489
|
accessorFn: (row, index) => {
|
|
90490
|
+
if (!value.accessor) return void 0;
|
|
90461
90491
|
try {
|
|
90462
90492
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
90463
90493
|
} catch (e) {
|
|
@@ -90493,10 +90523,13 @@ function schema$Y(configure) {
|
|
|
90493
90523
|
type: Literal2(type$Y),
|
|
90494
90524
|
compatibilityDate: Literal2(compatibilityDate$Y),
|
|
90495
90525
|
...columnFields(configure),
|
|
90496
|
-
|
|
90526
|
+
// Optional like every non-editable column's path: an icon column may carry
|
|
90527
|
+
// no data binding (a fixed decorative cell), letting designers build the
|
|
90528
|
+
// visual layer before any API contract exists.
|
|
90529
|
+
accessor: optional(CelRowAccess(configure).annotations({
|
|
90497
90530
|
title: "图标",
|
|
90498
|
-
description: "图标名称 CEL 表达式(Iconify 标识符),例如 `row.iconName
|
|
90499
|
-
}),
|
|
90531
|
+
description: "图标名称 CEL 表达式(Iconify 标识符),例如 `row.iconName`;可留空,留空时不渲染图标"
|
|
90532
|
+
})),
|
|
90500
90533
|
color: optional(
|
|
90501
90534
|
CelRowAccess(configure, { resultType: "string" }).annotations({
|
|
90502
90535
|
title: "颜色",
|
|
@@ -90509,7 +90542,6 @@ function schema$Y(configure) {
|
|
|
90509
90542
|
function defaults$z() {
|
|
90510
90543
|
return {
|
|
90511
90544
|
title: [{ locale: "zh", message: "" }],
|
|
90512
|
-
accessor: "",
|
|
90513
90545
|
size: 120
|
|
90514
90546
|
};
|
|
90515
90547
|
}
|
|
@@ -90517,6 +90549,7 @@ function toColumnDef$x(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
90517
90549
|
return {
|
|
90518
90550
|
header: getLocaleText(value.title),
|
|
90519
90551
|
accessorFn: (row, index) => {
|
|
90552
|
+
if (!value.accessor) return void 0;
|
|
90520
90553
|
try {
|
|
90521
90554
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
90522
90555
|
} catch (e) {
|
|
@@ -90638,7 +90671,6 @@ function schema$W(configure) {
|
|
|
90638
90671
|
function defaults$x() {
|
|
90639
90672
|
return {
|
|
90640
90673
|
title: [{ locale: "zh", message: "" }],
|
|
90641
|
-
accessor: "",
|
|
90642
90674
|
size: 120,
|
|
90643
90675
|
align: "right"
|
|
90644
90676
|
};
|
|
@@ -90647,6 +90679,7 @@ function toColumnDef$v(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
90647
90679
|
return {
|
|
90648
90680
|
header: getLocaleText(value.title),
|
|
90649
90681
|
accessorFn: (row, index) => {
|
|
90682
|
+
if (!value.accessor) return void 0;
|
|
90650
90683
|
try {
|
|
90651
90684
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
90652
90685
|
} catch (e) {
|
|
@@ -90761,7 +90794,6 @@ function schema$U(configure) {
|
|
|
90761
90794
|
function defaults$v() {
|
|
90762
90795
|
return {
|
|
90763
90796
|
title: [{ locale: "zh", message: "" }],
|
|
90764
|
-
accessor: "",
|
|
90765
90797
|
size: 120
|
|
90766
90798
|
};
|
|
90767
90799
|
}
|
|
@@ -90769,6 +90801,7 @@ function toColumnDef$t(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
90769
90801
|
return {
|
|
90770
90802
|
header: getLocaleText(value.title),
|
|
90771
90803
|
accessorFn: (row, index) => {
|
|
90804
|
+
if (!value.accessor) return void 0;
|
|
90772
90805
|
try {
|
|
90773
90806
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
90774
90807
|
} catch (e) {
|
|
@@ -90843,7 +90876,6 @@ function schema$T(configure) {
|
|
|
90843
90876
|
function defaults$u() {
|
|
90844
90877
|
return {
|
|
90845
90878
|
title: [{ locale: "zh", message: "" }],
|
|
90846
|
-
accessor: "",
|
|
90847
90879
|
size: 120
|
|
90848
90880
|
};
|
|
90849
90881
|
}
|
|
@@ -90863,6 +90895,7 @@ function toColumnDef$s(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
90863
90895
|
return {
|
|
90864
90896
|
header: getLocaleText(value.title),
|
|
90865
90897
|
accessorFn: (row, index) => {
|
|
90898
|
+
if (!value.accessor) return void 0;
|
|
90866
90899
|
try {
|
|
90867
90900
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
90868
90901
|
} catch (e) {
|
|
@@ -90940,6 +90973,7 @@ function toColumnDef$r(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
90940
90973
|
return {
|
|
90941
90974
|
header: getLocaleText(value.title),
|
|
90942
90975
|
accessorFn: (row, index) => {
|
|
90976
|
+
if (!value.accessor) return void 0;
|
|
90943
90977
|
try {
|
|
90944
90978
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
90945
90979
|
} catch (e) {
|
|
@@ -91284,14 +91318,11 @@ function schema$Q(configure) {
|
|
|
91284
91318
|
type: Literal2(type$Q),
|
|
91285
91319
|
compatibilityDate: Literal2(compatibilityDate$Q),
|
|
91286
91320
|
...editableColumnFields(),
|
|
91321
|
+
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "right" }),
|
|
91287
91322
|
placeholder: optional(Locale.annotations({
|
|
91288
91323
|
title: "占位符",
|
|
91289
91324
|
description: "单元格为空时显示的提示文本"
|
|
91290
91325
|
})),
|
|
91291
|
-
hidden: optional(CelBool.annotations({
|
|
91292
|
-
title: "隐藏条件",
|
|
91293
|
-
description: "返回 `true` 时该行的输入框不渲染(其余行不受影响)"
|
|
91294
|
-
})),
|
|
91295
91326
|
disabled: optional(CelBool.annotations({
|
|
91296
91327
|
title: "禁用条件",
|
|
91297
91328
|
description: "返回 `true` 时输入框仍然渲染但不可编辑"
|
|
@@ -91325,7 +91356,16 @@ function schema$Q(configure) {
|
|
|
91325
91356
|
description: "允许输入的最大值表达式,可访问 `row` / `index` 和 `form`;留空时不限制上限"
|
|
91326
91357
|
})),
|
|
91327
91358
|
derived: derivedRowField(configure, "number"),
|
|
91328
|
-
|
|
91359
|
+
// `Schema.optional` rebuilds the struct's union member, and because the
|
|
91360
|
+
// `optionalWith`-default fields make `AddonActions` a `Transformation`, the
|
|
91361
|
+
// inner struct's `title`/`description` don't survive onto the rebuilt
|
|
91362
|
+
// member. The config editor's `getStructFieldTitle('addon')` would then fall
|
|
91363
|
+
// back to the raw key "addon" (the v2.10.12 regression). Re-state them on the
|
|
91364
|
+
// property signature, which the meta reader checks before the field type.
|
|
91365
|
+
addon: optional(AddonActions$1(configure)).annotations({
|
|
91366
|
+
title: "输入框内按钮",
|
|
91367
|
+
description: "在输入框右侧内嵌一组操作按钮"
|
|
91368
|
+
})
|
|
91329
91369
|
}).annotations({ title: "NumberInputRenderer", description: "数值输入渲染器(可编辑)" });
|
|
91330
91370
|
}
|
|
91331
91371
|
function defaults$t() {
|
|
@@ -91377,10 +91417,7 @@ function schema$P(configure) {
|
|
|
91377
91417
|
type: Literal2(type$P),
|
|
91378
91418
|
compatibilityDate: Literal2(compatibilityDate$P),
|
|
91379
91419
|
...editableColumnFields(),
|
|
91380
|
-
|
|
91381
|
-
title: "隐藏条件",
|
|
91382
|
-
description: "返回 `true` 时该行的开关不渲染(其余行不受影响)"
|
|
91383
|
-
})),
|
|
91420
|
+
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "center" }),
|
|
91384
91421
|
disabled: optional(CelBool.annotations({
|
|
91385
91422
|
title: "禁用条件",
|
|
91386
91423
|
description: "返回 `true` 时开关仍然渲染但不可切换"
|
|
@@ -91540,14 +91577,11 @@ function schema$N(configure) {
|
|
|
91540
91577
|
type: Literal2(type$N),
|
|
91541
91578
|
compatibilityDate: Literal2(compatibilityDate$N),
|
|
91542
91579
|
...editableColumnFields(),
|
|
91580
|
+
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "left" }),
|
|
91543
91581
|
placeholder: optional(Locale.annotations({
|
|
91544
91582
|
title: "占位符",
|
|
91545
91583
|
description: "单元格为空时显示的提示文本"
|
|
91546
91584
|
})),
|
|
91547
|
-
hidden: optional(CelBool.annotations({
|
|
91548
|
-
title: "隐藏条件",
|
|
91549
|
-
description: "返回 `true` 时该行的输入框不渲染(其余行不受影响)"
|
|
91550
|
-
})),
|
|
91551
91585
|
disabled: optional(CelBool.annotations({
|
|
91552
91586
|
title: "禁用条件",
|
|
91553
91587
|
description: "返回 `true` 时输入框仍然渲染但不可编辑"
|
|
@@ -91557,7 +91591,16 @@ function schema$N(configure) {
|
|
|
91557
91591
|
description: "返回 `true` 时仅以纯文本展示当前值"
|
|
91558
91592
|
})),
|
|
91559
91593
|
derived: derivedRowField(configure, "string"),
|
|
91560
|
-
|
|
91594
|
+
// `Schema.optional` rebuilds the struct's union member, and because the
|
|
91595
|
+
// `optionalWith`-default fields make `AddonActions` a `Transformation`, the
|
|
91596
|
+
// inner struct's `title`/`description` don't survive onto the rebuilt
|
|
91597
|
+
// member. The config editor's `getStructFieldTitle('addon')` would then fall
|
|
91598
|
+
// back to the raw key "addon" (the v2.10.12 regression). Re-state them on the
|
|
91599
|
+
// property signature, which the meta reader checks before the field type.
|
|
91600
|
+
addon: optional(AddonActions(configure)).annotations({
|
|
91601
|
+
title: "输入框内按钮",
|
|
91602
|
+
description: "在输入框右侧内嵌一组操作按钮"
|
|
91603
|
+
})
|
|
91561
91604
|
}).annotations({ title: "TextInputRenderer", description: "文本输入渲染器(可编辑)" });
|
|
91562
91605
|
}
|
|
91563
91606
|
function defaults$r() {
|
|
@@ -93132,6 +93175,7 @@ function toColumnDef$k(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
93132
93175
|
return {
|
|
93133
93176
|
header: editableHeader(getLocaleText(value.title)),
|
|
93134
93177
|
accessorFn: (row, index) => {
|
|
93178
|
+
if (!value.accessor) return void 0;
|
|
93135
93179
|
try {
|
|
93136
93180
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
93137
93181
|
} catch (e) {
|
|
@@ -93256,6 +93300,7 @@ function toColumnDef$j(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
93256
93300
|
return {
|
|
93257
93301
|
header: editableHeader(getLocaleText(value.title)),
|
|
93258
93302
|
accessorFn: (row, index) => {
|
|
93303
|
+
if (!value.accessor) return void 0;
|
|
93259
93304
|
try {
|
|
93260
93305
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
93261
93306
|
} catch (e) {
|
|
@@ -93402,6 +93447,7 @@ function toColumnDef$i(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
93402
93447
|
return {
|
|
93403
93448
|
header: editableHeader(getLocaleText(value.title)),
|
|
93404
93449
|
accessorFn: (row, index) => {
|
|
93450
|
+
if (!value.accessor) return void 0;
|
|
93405
93451
|
try {
|
|
93406
93452
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
93407
93453
|
} catch (e) {
|
|
@@ -93526,6 +93572,7 @@ function toColumnDef$h(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
93526
93572
|
return {
|
|
93527
93573
|
header: editableHeader(getLocaleText(value.title)),
|
|
93528
93574
|
accessorFn: (row, index) => {
|
|
93575
|
+
if (!value.accessor) return void 0;
|
|
93529
93576
|
try {
|
|
93530
93577
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
93531
93578
|
} catch (e) {
|
|
@@ -93847,6 +93894,7 @@ function toColumnDef$f(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
93847
93894
|
return {
|
|
93848
93895
|
header: editableHeader(getLocaleText(value.title)),
|
|
93849
93896
|
accessorFn: (row, index) => {
|
|
93897
|
+
if (!value.accessor) return void 0;
|
|
93850
93898
|
try {
|
|
93851
93899
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
93852
93900
|
} catch (e) {
|
|
@@ -94258,6 +94306,7 @@ function toColumnDef$d(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
94258
94306
|
return {
|
|
94259
94307
|
header: editableHeader(getLocaleText(value.title)),
|
|
94260
94308
|
accessorFn: (row, index) => {
|
|
94309
|
+
if (!value.accessor) return void 0;
|
|
94261
94310
|
try {
|
|
94262
94311
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
94263
94312
|
} catch (e) {
|
|
@@ -95853,14 +95902,11 @@ function schema$w(configure) {
|
|
|
95853
95902
|
compatibilityDate: Literal2(compatibilityDate$w),
|
|
95854
95903
|
...columnIdentityFields(),
|
|
95855
95904
|
title: display.title,
|
|
95905
|
+
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "left" }),
|
|
95856
95906
|
placeholder: optional(Locale.annotations({
|
|
95857
95907
|
title: "占位符",
|
|
95858
95908
|
description: "未选中任何选项时输入框中的占位文本"
|
|
95859
95909
|
})),
|
|
95860
|
-
hidden: optional(CelBool.annotations({
|
|
95861
|
-
title: "隐藏条件",
|
|
95862
|
-
description: "返回 `true` 时该行的下拉框不渲染(其余行不受影响)"
|
|
95863
|
-
})),
|
|
95864
95910
|
disabled: optional(CelBool.annotations({
|
|
95865
95911
|
title: "禁用条件",
|
|
95866
95912
|
description: "返回 `true` 时下拉框仍然渲染但不可选择"
|
|
@@ -95874,6 +95920,7 @@ function schema$w(configure) {
|
|
|
95874
95920
|
size: display.size,
|
|
95875
95921
|
grow: display.grow,
|
|
95876
95922
|
tooltip: display.tooltip,
|
|
95923
|
+
hidden: display.hidden,
|
|
95877
95924
|
options: optionalWith(Options, {
|
|
95878
95925
|
default: () => ({ kind: "static", items: [] })
|
|
95879
95926
|
}),
|
|
@@ -96130,14 +96177,11 @@ function schema$v(configure) {
|
|
|
96130
96177
|
compatibilityDate: Literal2(compatibilityDate$v),
|
|
96131
96178
|
...columnIdentityFields(),
|
|
96132
96179
|
title: display.title,
|
|
96180
|
+
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "left" }),
|
|
96133
96181
|
placeholder: optional(Locale.annotations({
|
|
96134
96182
|
title: "占位符",
|
|
96135
96183
|
description: "未选中任何选项时输入框中的占位文本"
|
|
96136
96184
|
})),
|
|
96137
|
-
hidden: optional(CelBool.annotations({
|
|
96138
|
-
title: "隐藏条件",
|
|
96139
|
-
description: "返回 `true` 时该行的下拉框不渲染(其余行不受影响)"
|
|
96140
|
-
})),
|
|
96141
96185
|
disabled: optional(CelBool.annotations({
|
|
96142
96186
|
title: "禁用条件",
|
|
96143
96187
|
description: "返回 `true` 时下拉框仍然渲染但不可选择"
|
|
@@ -96151,6 +96195,7 @@ function schema$v(configure) {
|
|
|
96151
96195
|
size: display.size,
|
|
96152
96196
|
grow: display.grow,
|
|
96153
96197
|
tooltip: display.tooltip,
|
|
96198
|
+
hidden: display.hidden,
|
|
96154
96199
|
options: optionalWith(Options, {
|
|
96155
96200
|
default: () => ({ kind: "static", items: [] })
|
|
96156
96201
|
}),
|
|
@@ -96298,14 +96343,11 @@ function schema$u(configure) {
|
|
|
96298
96343
|
type: Literal2(type$u),
|
|
96299
96344
|
compatibilityDate: Literal2(compatibilityDate$u),
|
|
96300
96345
|
...editableColumnFields(),
|
|
96346
|
+
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "left" }),
|
|
96301
96347
|
placeholder: optional(Locale.annotations({
|
|
96302
96348
|
title: "占位符",
|
|
96303
96349
|
description: "未选中任何选项时输入框中的占位文本"
|
|
96304
96350
|
})),
|
|
96305
|
-
hidden: optional(CelBool.annotations({
|
|
96306
|
-
title: "隐藏条件",
|
|
96307
|
-
description: "返回 `true` 时该行的下拉树不渲染(其余行不受影响)"
|
|
96308
|
-
})),
|
|
96309
96351
|
disabled: optional(CelBool.annotations({
|
|
96310
96352
|
title: "禁用条件",
|
|
96311
96353
|
description: "返回 `true` 时下拉树仍然渲染但不可选择"
|
|
@@ -96476,14 +96518,11 @@ function schema$t(configure) {
|
|
|
96476
96518
|
type: Literal2(type$t),
|
|
96477
96519
|
compatibilityDate: Literal2(compatibilityDate$t),
|
|
96478
96520
|
...editableColumnFields(),
|
|
96521
|
+
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "left" }),
|
|
96479
96522
|
placeholder: optional(Locale.annotations({
|
|
96480
96523
|
title: "占位符",
|
|
96481
96524
|
description: "未选中任何选项时输入框中的占位文本"
|
|
96482
96525
|
})),
|
|
96483
|
-
hidden: optional(CelBool.annotations({
|
|
96484
|
-
title: "隐藏条件",
|
|
96485
|
-
description: "返回 `true` 时该行的下拉树不渲染(其余行不受影响)"
|
|
96486
|
-
})),
|
|
96487
96526
|
disabled: optional(CelBool.annotations({
|
|
96488
96527
|
title: "禁用条件",
|
|
96489
96528
|
description: "返回 `true` 时下拉树仍然渲染但不可选择"
|
|
@@ -96619,14 +96658,11 @@ function schema$s(configure) {
|
|
|
96619
96658
|
type: Literal2(type$s),
|
|
96620
96659
|
compatibilityDate: Literal2(compatibilityDate$s),
|
|
96621
96660
|
...editableColumnFields(),
|
|
96661
|
+
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "left" }),
|
|
96622
96662
|
placeholder: optional(Locale.annotations({
|
|
96623
96663
|
title: "占位符",
|
|
96624
96664
|
description: "未选中日期时输入框中的占位文本"
|
|
96625
96665
|
})),
|
|
96626
|
-
hidden: optional(CelBool.annotations({
|
|
96627
|
-
title: "隐藏条件",
|
|
96628
|
-
description: "返回 `true` 时该行的输入框不渲染(其余行不受影响)"
|
|
96629
|
-
})),
|
|
96630
96666
|
disabled: optional(CelBool.annotations({
|
|
96631
96667
|
title: "禁用条件",
|
|
96632
96668
|
description: "返回 `true` 时输入框仍然渲染但不可编辑"
|
|
@@ -96728,6 +96764,7 @@ function schema$r(configure) {
|
|
|
96728
96764
|
type: Literal2(type$r),
|
|
96729
96765
|
compatibilityDate: Literal2(compatibilityDate$r),
|
|
96730
96766
|
...editableColumnFields(),
|
|
96767
|
+
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "left" }),
|
|
96731
96768
|
// Swap the inherited single-string `binding` for the range union.
|
|
96732
96769
|
binding: bindingSchema$1,
|
|
96733
96770
|
startPlaceholder: optional(Locale.annotations({
|
|
@@ -96738,10 +96775,6 @@ function schema$r(configure) {
|
|
|
96738
96775
|
title: "结束占位符",
|
|
96739
96776
|
description: "未选中结束日期时输入框中的占位文本"
|
|
96740
96777
|
})),
|
|
96741
|
-
hidden: optional(CelBool.annotations({
|
|
96742
|
-
title: "隐藏条件",
|
|
96743
|
-
description: "返回 `true` 时该行的输入框不渲染(其余行不受影响)"
|
|
96744
|
-
})),
|
|
96745
96778
|
disabled: optional(CelBool.annotations({
|
|
96746
96779
|
title: "禁用条件",
|
|
96747
96780
|
description: "返回 `true` 时输入框仍然渲染但不可编辑"
|
|
@@ -96777,7 +96810,8 @@ function defaults$f() {
|
|
|
96777
96810
|
return {
|
|
96778
96811
|
title: [{ locale: "zh", message: "" }],
|
|
96779
96812
|
binding: "",
|
|
96780
|
-
size: 240
|
|
96813
|
+
size: 240,
|
|
96814
|
+
rangeSeparatorIcon: "fluent:arrow-right-20-regular"
|
|
96781
96815
|
};
|
|
96782
96816
|
}
|
|
96783
96817
|
function toColumnDef(value, { getLocaleText }) {
|
package/dist/module.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as l,o as s,z as r,Z as t,af as n,b as p,ag as c}from"./index-
|
|
1
|
+
import{d as l,o as s,z as r,Z as t,af as n,b as p,ag as c}from"./index-DjG-VVR4.js";const f=l({__name:"FieldGroup",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(a){const e=a;return(o,u)=>(s(),r("div",{"data-slot":"field-group",class:n(p(c)("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4",e.class))},[t(o.$slots,"default")],2))}});export{f as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as q,a6 as F,G as O,H as $,I as p,o as f,z,c as w,a0 as x,b as m,a7 as y,w as E,a as I,h as L,F as N,a8 as P,L as t,M as S,N as V,O as g,P as T,Q as U,R as W,S as A,T as G,K as H,U as J,W as K,a9 as Q,aa as R,X,V as Y,Y as D}from"./index-
|
|
1
|
+
import{d as q,a6 as F,G as O,H as $,I as p,o as f,z,c as w,a0 as x,b as m,a7 as y,w as E,a as I,h as L,F as N,a8 as P,L as t,M as S,N as V,O as g,P as T,Q as U,R as W,S as A,T as G,K as H,U as J,W as K,a9 as Q,aa as R,X,V as Y,Y as D}from"./index-DjG-VVR4.js";const ee=q({name:"ShwfedBlockCardBadge",inheritAttrs:!1,__name:"badge",props:{badge:{}},setup(n){const a=n,{locale:k}=F(),C=K(),o=H(void 0);function i(){return J(C)}const b=t(()=>o.value===void 0?Y():D(o.value)),c=t(()=>Q(a.badge.content,k.value)||""),j=t(()=>c.value?R(c.value,g,{...i(),json:b.value}):""),B=t(()=>{const e=a.badge.show;if(!e)return!0;try{return X(g(e,{...i(),json:b.value}))}catch(r){return console.warn("[shwfed-card-badge] show evaluation failed",r),!0}});async function s(){const e=a.badge.request;if(!e)return;const r=i(),_=S(function*(){const v=yield*V(yield*g(e,r));return T(v)});try{o.value=await U(W(_,A))}catch(v){console.warn("[shwfed-card-badge] fetch failed",v)}}const l=t(()=>!!a.badge.request&&(a.badge.interval??0)>0),M=t(()=>Math.max(1,a.badge.interval??1)*1e3),u=G(),{pause:h,resume:d}=O(()=>{s()},M,{immediate:!1});return $(()=>{s(),l.value&&u.value&&d()}),p(u,e=>{l.value&&(e?(s(),d()):h())}),p(()=>[a.badge.request??"",a.badge.interval??0].join("|"),()=>{s(),l.value&&u.value?d():h()}),(e,r)=>c.value&&B.value?(f(),z(N,{key:0},[n.badge.dot?(f(),w(m(y),x({key:0,variant:n.badge.variant??"default",class:"size-2.5 min-w-0 rounded-full p-0"},e.$attrs),null,16,["variant"])):(f(),w(m(y),x({key:1,variant:n.badge.variant??"default"},e.$attrs),{default:E(()=>[I(m(L),{source:j.value,class:"max-w-none text-inherit [&_*]:text-inherit [&_p]:m-0"},null,8,["source"])]),_:1},16,["variant"]))],64)):P("",!0)}});export{ee as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as y,u as z,aM as V,o as O,z as S,a as s,w as a,b as o,e as i,f as u,g as c,t as d,h as p,n as x,_ as m,j as g,ac as T,i as N,aN as U,ad as $,ae as j}from"./index-
|
|
1
|
+
import{d as y,u as z,aM as V,o as O,z as S,a as s,w as a,b as o,e as i,f as u,g as c,t as d,h as p,n as x,_ as m,j as g,ac as T,i as N,aN as U,ad as $,ae as j}from"./index-DjG-VVR4.js";const B={class:"flex flex-col gap-3"},M={class:"grid grid-cols-2 gap-3 items-start"},C={class:"flex items-start gap-2"},F=y({name:"ShwfedHttpRequestBatchActionConfig",__name:"config",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(_){const l=z(_,"modelValue"),v=V(()=>{}),r=t=>$(v,t)??t,n=t=>j(v,t);function k(t){const e={...l.value};t.length===0?delete e.messageExpression:e.messageExpression=t,l.value=e}function E(t){const e={...l.value};t.length===0?delete e.resultExpression:e.resultExpression=t,l.value=e}function b(t){const e={...l.value};t.length===0?Reflect.deleteProperty(e,"before"):e.before=t,l.value=e}function h(t){const e={...l.value};!t||t.length===0?delete e.markdown:e.markdown=t,l.value=e}function w(t){const e={...l.value};t?e.continueOnError=!0:delete e.continueOnError,l.value=e}return(t,e)=>(O(),S("div",B,[s(o(m),{orientation:"vertical"},{default:a(()=>[s(o(i),{class:"text-xs text-zinc-500"},u({default:a(()=>[c(" "+d(r("expression")),1)]),_:2},[n("expression")?{name:"tooltip",fn:a(()=>[s(o(p),{source:n("expression"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),s(o(x),{"model-value":l.value.expression,multiline:"",placeholder:"例:range(1, 10).map(i, http.post('/api/foo').body({ id: i }))","result-type":"list",class:"min-h-16","onUpdate:modelValue":e[0]||(e[0]=f=>l.value={...l.value,expression:f})},null,8,["model-value"])]),_:1}),g("div",M,[s(o(m),{orientation:"vertical",class:"min-w-0"},{default:a(()=>[s(o(i),{class:"text-xs text-zinc-500"},u({default:a(()=>[c(" "+d(r("before")),1)]),_:2},[n("before")?{name:"tooltip",fn:a(()=>[s(o(p),{source:n("before"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),s(T,{triggers:l.value.before??[],"onUpdate:triggers":e[1]||(e[1]=f=>b(f))},null,8,["triggers"])]),_:1}),s(o(m),{orientation:"vertical",class:"min-w-0"},{default:a(()=>[s(o(i),{class:"text-xs text-zinc-500"},u({default:a(()=>[c(" "+d(r("markdown")),1)]),_:2},[n("markdown")?{name:"tooltip",fn:a(()=>[s(o(p),{source:n("markdown"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),s(o(N),{markdown:"","model-value":l.value.markdown,"onUpdate:modelValue":h},null,8,["model-value"])]),_:1})]),s(o(m),{orientation:"horizontal"},{default:a(()=>[s(o(i),{class:"text-xs text-zinc-500"},u({default:a(()=>[c(" "+d(r("continueOnError")),1)]),_:2},[n("continueOnError")?{name:"tooltip",fn:a(()=>[s(o(p),{source:n("continueOnError"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),s(o(U),{"model-value":l.value.continueOnError??!1,"onUpdate:modelValue":w},null,8,["model-value"])]),_:1}),g("div",C,[s(o(m),{orientation:"vertical",class:"flex-1 basis-0 min-w-0"},{default:a(()=>[s(o(i),{class:"text-xs text-zinc-500"},u({default:a(()=>[c(" "+d(r("messageExpression")),1)]),_:2},[n("messageExpression")?{name:"tooltip",fn:a(()=>[s(o(p),{source:n("messageExpression"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),s(o(x),{"model-value":l.value.messageExpression??"",placeholder:"例:string(jsons.size()) + ' 条已处理'","result-type":"string","extra-vars":{jsons:{type:"list",label:"HTTP 响应体列表(已解析 JSON,仅成功项)"}},"onUpdate:modelValue":k},null,8,["model-value"])]),_:1}),s(o(m),{orientation:"vertical",class:"flex-1 basis-0 min-w-0"},{default:a(()=>[s(o(i),{class:"text-xs text-zinc-500"},u({default:a(()=>[c(" "+d(r("resultExpression")),1)]),_:2},[n("resultExpression")?{name:"tooltip",fn:a(()=>[s(o(p),{source:n("resultExpression"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),s(o(x),{"model-value":l.value.resultExpression??"",placeholder:"例:json.code == 0","result-type":"bool","extra-vars":{json:{type:"dyn",label:"HTTP 响应体(已解析 JSON),当前这一条响应"}},"onUpdate:modelValue":E},null,8,["model-value"])]),_:1})])]))}});export{F as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as _,u as y,ai as x,aj as b,z as c,j as i,a as n,w as o,b as t,o as l,ak as v,al as u,am as g,an as D,F as h,A as k,c as w,ao as S,t as p,ap as $}from"./index-
|
|
1
|
+
import{d as _,u as y,ai as x,aj as b,z as c,j as i,a as n,w as o,b as t,o as l,ak as v,al as u,am as g,an as D,F as h,A as k,c as w,ao as S,t as p,ap as $}from"./index-DjG-VVR4.js";const z={class:"flex flex-col gap-3"},B={class:"flex-1"},C={class:"ml-auto text-xs tabular-nums text-zinc-400"},N=_({name:"ShwfedPrototypeActionConfig",__name:"config",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(m){const r=y(m,"modelValue"),f=(()=>{const s=new Map;for(const e of x){if(e.type===b||e.deprecated)continue;const a=s.get(e.type);(!a||e.compatibilityDate>a.compatibilityDate)&&s.set(e.type,{type:e.type,compatibilityDate:e.compatibilityDate,name:e.metadata.name,icon:e.metadata.icon})}return[...s.values()].sort((e,a)=>e.name.localeCompare(a.name,"zh"))})();function d(s,e){r.value={type:s,compatibilityDate:e}}return(s,e)=>(l(),c("div",z,[e[0]||(e[0]=i("p",{class:"text-xs text-zinc-500"}," 原型按钮点击后无任何副作用,用于占位。选择下方任意类型可将其转换为正式按钮 —— 此转换仅能进行一次。 ",-1)),n(t($),null,{default:o(()=>[n(t(v),{align:"inline-start"},{default:o(()=>[n(t(u),{icon:"fluent:arrow-swap-20-regular"})]),_:1}),n(t(g),null,{default:o(()=>[n(t(D),null,{default:o(()=>[(l(!0),c(h,null,k(t(f),a=>(l(),w(t(S),{key:a.type,value:a.type,onSelect:V=>d(a.type,a.compatibilityDate)},{default:o(()=>[n(t(u),{icon:a.icon,class:"size-4 shrink-0"},null,8,["icon"]),i("span",B,p(a.name),1),i("span",C,p(a.compatibilityDate),1)]),_:2},1032,["value","onSelect"]))),128))]),_:1})]),_:1})]),_:1})]))}});export{N as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as V,u as E,p as S,o as w,c as z,w as l,a as s,b as o,_ as c,e as u,f as d,g as m,t as f,h as x,n as _,i as $}from"./index-
|
|
1
|
+
import{d as V,u as E,p as S,o as w,c as z,w as l,a as s,b as o,_ as c,e as u,f as d,g as m,t as f,h as x,n as _,i as $}from"./index-DjG-VVR4.js";import{_ as D}from"./FieldGroup.vue_vue_type_script_setup_true_lang-CosmpPSu.js";import{g as O,a as C}from"./schema-meta-CYKPEnu9.js";const R=V({name:"ShwfedHttpDownloadOperationConfig",__name:"config",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(g){const a=E(g,"modelValue"),v=S(()=>{}),r=t=>O(v,t)??t,n=t=>C(v,t),k={result:{type:"string",label:"执行结果"}};function p(t){const e={...a.value,...t};for(const[i,h]of Object.entries(t))h===void 0&&Reflect.deleteProperty(e,i);a.value=e}function y(t,e){p({[t]:e.length===0?void 0:e})}function b(t){const e=t.every(i=>i.message.trim().length===0);p({description:e?void 0:t})}return(t,e)=>(w(),z(o(D),null,{default:l(()=>[s(o(c),{orientation:"vertical"},{default:l(()=>[s(o(u),{class:"text-xs text-zinc-500"},d({default:l(()=>[m(" "+f(r("expression")),1)]),_:2},[n("expression")?{name:"tooltip",fn:l(()=>[s(o(x),{source:n("expression"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),s(o(_),{"model-value":a.value.expression,multiline:"",placeholder:"例:http.get('/api/export').body({ id: row.id })","result-type":"HttpRequest",class:"min-h-16","onUpdate:modelValue":e[0]||(e[0]=i=>p({expression:i}))},null,8,["model-value"])]),_:1}),s(o(c),{orientation:"vertical"},{default:l(()=>[s(o(u),{class:"text-xs text-zinc-500"},d({default:l(()=>[m(" "+f(r("titleExpression")),1)]),_:2},[n("titleExpression")?{name:"tooltip",fn:l(()=>[s(o(x),{source:n("titleExpression"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),s(o(_),{"model-value":a.value.titleExpression??"",placeholder:"例:result == 'error' ? '下载失败' : '下载成功'","result-type":"string","extra-vars":k,"onUpdate:modelValue":e[1]||(e[1]=i=>y("titleExpression",i))},null,8,["model-value"])]),_:1}),s(o(c),{orientation:"vertical"},{default:l(()=>[s(o(u),{class:"text-xs text-zinc-500"},d({default:l(()=>[m(" "+f(r("description")),1)]),_:2},[n("description")?{name:"tooltip",fn:l(()=>[s(o(x),{source:n("description"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),s(o($),{markdown:"","model-value":a.value.description,"onUpdate:modelValue":e[2]||(e[2]=i=>b(i))},null,8,["model-value"])]),_:1})]),_:1}))}});export{R as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as $,u as k,q as b,o as m,c as S,w as l,a,b as e,_ as f,e as _,f as p,g as i,t as r,h as v,n as V,r as y,v as w,x as z,y as h,z as B,F as D,A as F,B as N}from"./index-
|
|
1
|
+
import{d as $,u as k,q as b,o as m,c as S,w as l,a,b as e,_ as f,e as _,f as p,g as i,t as r,h as v,n as V,r as y,v as w,x as z,y as h,z as B,F as D,A as F,B as N}from"./index-DjG-VVR4.js";import{_ as O}from"./FieldGroup.vue_vue_type_script_setup_true_lang-CosmpPSu.js";import{g as T,a as C}from"./schema-meta-CYKPEnu9.js";const U=$({name:"ShwfedNavigationOperationConfig",__name:"config",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(g){const t=k(g,"modelValue"),c=b(()=>{}),d=o=>T(c,o)??o,n=o=>C(c,o),x=[{value:"_self",label:"当前页面打开"},{value:"_blank",label:"新页面打开"}];return(o,u)=>(m(),S(e(O),null,{default:l(()=>[a(e(f),{orientation:"vertical"},{default:l(()=>[a(e(_),{class:"text-xs text-zinc-500"},p({default:l(()=>[i(" "+r(d("url")),1)]),_:2},[n("url")?{name:"tooltip",fn:l(()=>[a(e(v),{source:n("url"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),a(e(V),{"model-value":t.value.url??"",placeholder:"例:'/detail/' + string(row.id)","result-type":"string",multiline:"",class:"min-h-10","onUpdate:modelValue":u[0]||(u[0]=s=>t.value={...t.value,url:s})},null,8,["model-value"])]),_:1}),a(e(f),{orientation:"vertical"},{default:l(()=>[a(e(_),{class:"text-xs text-zinc-500"},p({default:l(()=>[i(" "+r(d("mode")),1)]),_:2},[n("mode")?{name:"tooltip",fn:l(()=>[a(e(v),{source:n("mode"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),a(e(y),{"model-value":t.value.mode??"_self","onUpdate:modelValue":u[1]||(u[1]=s=>t.value={...t.value,mode:s})},{default:l(()=>[a(e(w),{class:"w-full"},{default:l(()=>[a(e(z))]),_:1}),a(e(h),null,{default:l(()=>[(m(),B(D,null,F(x,s=>a(e(N),{key:s.value,value:s.value},{default:l(()=>[i(r(s.label),1)]),_:2},1032,["value"])),64))]),_:1})]),_:1},8,["model-value"])]),_:1})]),_:1}))}});export{U as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as g,u as d,ad as u,aI as f,z as m,a as s,w as i,b as r,o as p,e as _,g as v,t as x,ac as h,_ as T,L as V}from"./index-
|
|
1
|
+
import{d as g,u as d,ad as u,aI as f,z as m,a as s,w as i,b as r,o as p,e as _,g as v,t as x,ac as h,_ as T,L as V}from"./index-DjG-VVR4.js";const w={class:"flex flex-col gap-3"},S=g({name:"ShwfedEventDispatchActionConfig",__name:"config",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(l){const t=d(l,"modelValue"),o=u(f(),"triggers")??"触发的操作",c=V(()=>t.value.triggers??[]);function n(a){const e={...t.value};a.length===0?Reflect.deleteProperty(e,"triggers"):e.triggers=a,t.value=e}return(a,e)=>(p(),m("div",w,[s(r(T),{orientation:"vertical"},{default:i(()=>[s(r(_),{class:"text-xs text-zinc-500"},{default:i(()=>[v(x(r(o)),1)]),_:1}),s(h,{triggers:c.value,"onUpdate:triggers":n},null,8,["triggers"])]),_:1})]))}});export{S as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as U,u as k,ah as F,z as v,a as e,w as a,b as t,j as _,F as R,A as j,o as E,e as u,f as c,g as d,t as p,h as f,n as g,_ as m,ac as b,ad as N,ae as B}from"./index-
|
|
1
|
+
import{d as U,u as k,ah as F,z as v,a as e,w as a,b as t,j as _,F as R,A as j,o as E,e as u,f as c,g as d,t as p,h as f,n as g,_ as m,ac as b,ad as N,ae as B}from"./index-DjG-VVR4.js";const D={class:"flex flex-col gap-3"},H={class:"flex items-start gap-2"},P={class:"grid grid-cols-2 gap-3"},q=U({name:"ShwfedHttpRequestActionConfig",__name:"config",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(h){const l=k(h,"modelValue"),x=F(()=>{}),i=o=>N(x,o)??o,n=o=>B(x,o),z=["onSuccess","onWarning","onError","onInfo"];function S(o){const s={...l.value};o.length===0?delete s.messageExpression:s.messageExpression=o,l.value=s}function y(o){const s={...l.value};o.length===0?delete s.resultExpression:s.resultExpression=o,l.value=s}function T(o,s){const r={...l.value};s.length===0?Reflect.deleteProperty(r,o):r[o]=s,l.value=r}function V(o){const s={...l.value};o.length===0?Reflect.deleteProperty(s,"before"):s.before=o,l.value=s}return(o,s)=>(E(),v("div",D,[e(t(m),{orientation:"vertical"},{default:a(()=>[e(t(u),{class:"text-xs text-zinc-500"},c({default:a(()=>[d(" "+p(i("expression")),1)]),_:2},[n("expression")?{name:"tooltip",fn:a(()=>[e(t(f),{source:n("expression"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),e(t(g),{"model-value":l.value.expression,multiline:"",placeholder:"例:http.post('/api/foo').body({ id: row.id })","result-type":"HttpRequest",class:"min-h-16","onUpdate:modelValue":s[0]||(s[0]=r=>l.value={...l.value,expression:r})},null,8,["model-value"])]),_:1}),e(t(m),{orientation:"vertical"},{default:a(()=>[e(t(u),{class:"text-xs text-zinc-500"},c({default:a(()=>[d(" "+p(i("before")),1)]),_:2},[n("before")?{name:"tooltip",fn:a(()=>[e(t(f),{source:n("before"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),e(b,{triggers:l.value.before??[],"onUpdate:triggers":s[1]||(s[1]=r=>V(r))},null,8,["triggers"])]),_:1}),_("div",H,[e(t(m),{orientation:"vertical",class:"flex-1 basis-0 min-w-0"},{default:a(()=>[e(t(u),{class:"text-xs text-zinc-500"},c({default:a(()=>[d(" "+p(i("messageExpression")),1)]),_:2},[n("messageExpression")?{name:"tooltip",fn:a(()=>[e(t(f),{source:n("messageExpression"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),e(t(g),{"model-value":l.value.messageExpression??"",placeholder:"例:string(json.message)","result-type":"string","extra-vars":{json:{type:"dyn",label:"HTTP 响应体(已解析 JSON)"}},"onUpdate:modelValue":S},null,8,["model-value"])]),_:1}),e(t(m),{orientation:"vertical",class:"flex-1 basis-0 min-w-0"},{default:a(()=>[e(t(u),{class:"text-xs text-zinc-500"},c({default:a(()=>[d(" "+p(i("resultExpression")),1)]),_:2},[n("resultExpression")?{name:"tooltip",fn:a(()=>[e(t(f),{source:n("resultExpression"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),e(t(g),{"model-value":l.value.resultExpression??"",placeholder:"例:json.code == 0 ? 'success' : 'error'","result-type":"string","extra-vars":{json:{type:"dyn",label:"HTTP 响应体(已解析 JSON)"}},"onUpdate:modelValue":y},null,8,["model-value"])]),_:1})]),_("div",P,[(E(),v(R,null,j(z,r=>e(t(m),{key:r,orientation:"vertical",class:"min-w-0"},{default:a(()=>[e(t(u),{class:"text-xs text-zinc-500"},c({default:a(()=>[d(" "+p(i(r)),1)]),_:2},[n(r)?{name:"tooltip",fn:a(()=>[e(t(f),{source:n(r),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),e(b,{triggers:l.value[r]??[],"onUpdate:triggers":w=>T(r,w)},null,8,["triggers","onUpdate:triggers"])]),_:2},1024)),64))])]))}});export{q as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as k,u as y,aJ as U,z,j as x,a as t,w as n,b as s,F as D,A as F,o as V,e as i,g as u,h as c,n as p,_ as d,aK as g,f,t as _,ac as L,ad as C,ae as H,L as S}from"./index-
|
|
1
|
+
import{d as k,u as y,aJ as U,z,j as x,a as t,w as n,b as s,F as D,A as F,o as V,e as i,g as u,h as c,n as p,_ as d,aK as g,f,t as _,ac as L,ad as C,ae as H,L as S}from"./index-DjG-VVR4.js";const N={class:"flex flex-col gap-3"},$={class:"grid grid-cols-2 gap-3"},A={class:"flex items-start gap-2"},B={class:"grid grid-cols-2 gap-3"},I=k({name:"ShwfedHttpDownloadActionConfig",__name:"config",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(j){const l=y(j,"modelValue"),E=U(()=>{}),m=a=>C(E,a)??a,r=a=>H(E,a),q=["onSuccess","onWarning","onError","onInfo"],h=S({get:()=>l.value.template?.request??"",set:a=>{l.value={...l.value,template:{...l.value.template,request:a}}}}),w=S({get:()=>l.value.template?.download??"",set:a=>{const e=l.value.template??{request:""};if(a.length===0){const{download:o,...v}=e;l.value={...l.value,template:v}}else l.value={...l.value,template:{...e,download:a}}}});function b(a){const e={...l.value};a.length===0?delete e.messageExpression:e.messageExpression=a,l.value=e}function R(a){const e={...l.value};a.length===0?delete e.resultExpression:e.resultExpression=a,l.value=e}function T(a,e){const o={...l.value};e.length===0?Reflect.deleteProperty(o,a):o[a]=e,l.value=o}return(a,e)=>(V(),z("div",N,[x("div",$,[t(s(d),{orientation:"vertical"},{default:n(()=>[t(s(i),{class:"text-xs text-zinc-500"},{tooltip:n(()=>[t(s(c),{source:r("template")??"返回 `HttpRequest` 的 CEL 表达式;未配置「下载请求」时直接下载其响应",block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),default:n(()=>[e[2]||(e[2]=u(" 请求 ",-1))]),_:1}),t(s(p),{"model-value":h.value,multiline:"",placeholder:"例:http.get('https://api.example.com/files/123')","result-type":"HttpRequest",class:"min-h-16","onUpdate:modelValue":e[0]||(e[0]=o=>h.value=o)},null,8,["model-value"])]),_:1}),t(s(d),{orientation:"vertical"},{default:n(()=>[t(s(i),{class:"text-xs text-zinc-500"},{tooltip:n(()=>[t(s(c),{source:"可选的第二步:用第一步响应 `json` 中的凭据构造真正的下载请求,例如 `json.data.key`",block:"",class:"prose prose-sm prose-zinc"})]),default:n(()=>[e[3]||(e[3]=u(" 下载请求 ",-1))]),_:1}),t(s(p),{"model-value":w.value,multiline:"",placeholder:"例:http.get('https://api.example.com/download').query('key', json.data.key)","result-type":"HttpRequest","extra-vars":{json:s(g)},class:"min-h-16","onUpdate:modelValue":e[1]||(e[1]=o=>w.value=o)},null,8,["model-value","extra-vars"])]),_:1})]),x("div",A,[t(s(d),{orientation:"vertical",class:"flex-1 basis-0 min-w-0"},{default:n(()=>[t(s(i),{class:"text-xs text-zinc-500"},f({default:n(()=>[u(" "+_(m("messageExpression")),1)]),_:2},[r("messageExpression")?{name:"tooltip",fn:n(()=>[t(s(c),{source:r("messageExpression"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),t(s(p),{"model-value":l.value.messageExpression??"",placeholder:"例:string(json.message)","result-type":"string","extra-vars":{json:s(g)},"onUpdate:modelValue":b},null,8,["model-value","extra-vars"])]),_:1}),t(s(d),{orientation:"vertical",class:"flex-1 basis-0 min-w-0"},{default:n(()=>[t(s(i),{class:"text-xs text-zinc-500"},f({default:n(()=>[u(" "+_(m("resultExpression")),1)]),_:2},[r("resultExpression")?{name:"tooltip",fn:n(()=>[t(s(c),{source:r("resultExpression"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),t(s(p),{"model-value":l.value.resultExpression??"",placeholder:"例:json.code == 0 ? 'success' : 'error'","result-type":"string","extra-vars":{json:s(g)},"onUpdate:modelValue":R},null,8,["model-value","extra-vars"])]),_:1})]),x("div",B,[(V(),z(D,null,F(q,o=>t(s(d),{key:o,orientation:"vertical",class:"min-w-0"},{default:n(()=>[t(s(i),{class:"text-xs text-zinc-500"},f({default:n(()=>[u(" "+_(m(o)),1)]),_:2},[r(o)?{name:"tooltip",fn:n(()=>[t(s(c),{source:r(o),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),t(L,{triggers:l.value[o]??[],"onUpdate:triggers":v=>T(o,v)},null,8,["triggers","onUpdate:triggers"])]),_:2},1024)),64))])]))}});export{I as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as x,u as g,bd as k,z as S,a as e,w as o,b as a,o as V,e as r,f as d,g as m,t as f,h as p,aD as w,_,i as z,ad as $,ae as b}from"./index-
|
|
1
|
+
import{d as x,u as g,bd as k,z as S,a as e,w as o,b as a,o as V,e as r,f as d,g as m,t as f,h as p,aD as w,_,i as z,ad as $,ae as b}from"./index-DjG-VVR4.js";const h={class:"flex flex-col gap-4"},y=x({name:"ShwfedMarkdownItemConfig",__name:"config",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(v){const t=g(v,"modelValue"),c=k(),u=l=>$(c,l)??l,s=l=>b(c,l);return(l,n)=>(V(),S("div",h,[e(a(_),{orientation:"vertical"},{default:o(()=>[e(a(r),{class:"text-xs text-zinc-500"},d({default:o(()=>[m(" "+f(u("name")),1)]),_:2},[s("name")?{name:"tooltip",fn:o(()=>[e(a(p),{source:s("name"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),e(a(w),{"model-value":t.value.name,placeholder:"仅用于编辑器内识别","onUpdate:modelValue":n[0]||(n[0]=i=>t.value={...t.value,name:String(i)})},null,8,["model-value"])]),_:1}),e(a(_),{orientation:"vertical"},{default:o(()=>[e(a(r),{class:"text-xs text-zinc-500"},d({default:o(()=>[m(" "+f(u("content")),1)]),_:2},[s("content")?{name:"tooltip",fn:o(()=>[e(a(p),{source:s("content"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),e(a(z),{markdown:"",multiline:"","model-value":t.value.content,"onUpdate:modelValue":n[1]||(n[1]=i=>t.value={...t.value,content:i})},null,8,["model-value"])]),_:1})]))}});export{y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as h,u as z,m as S,o as T,c as O,w as l,a as t,b as e,_ as p,e as u,f as c,g as d,t as m,h as f,n as v,j as $,i as j}from"./index-
|
|
1
|
+
import{d as h,u as z,m as S,o as T,c as O,w as l,a as t,b as e,_ as p,e as u,f as c,g as d,t as m,h as f,n as v,j as $,i as j}from"./index-DjG-VVR4.js";import{_ as w}from"./FieldGroup.vue_vue_type_script_setup_true_lang-CosmpPSu.js";import{g as R,a as U}from"./schema-meta-CYKPEnu9.js";const C={class:"grid grid-cols-2 gap-4"},q=h({name:"ShwfedHttpRequestOperationConfig",__name:"config",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(y){const r=z(y,"modelValue"),_=S(()=>{}),a=o=>R(_,o)??o,n=o=>U(_,o),k={json:{type:"dyn",label:"HTTP 响应"}},E={json:{type:"dyn",label:"HTTP 响应"},result:{type:"string",label:"执行结果"}};function x(o){const s={...r.value,...o};for(const[i,V]of Object.entries(o))V===void 0&&Reflect.deleteProperty(s,i);r.value=s}function g(o,s){x({[o]:s.length===0?void 0:s})}function b(o){const s=o.every(i=>i.message.trim().length===0);x({description:s?void 0:o})}return(o,s)=>(T(),O(e(w),null,{default:l(()=>[t(e(p),{orientation:"vertical"},{default:l(()=>[t(e(u),{class:"text-xs text-zinc-500"},c({default:l(()=>[d(" "+m(a("expression")),1)]),_:2},[n("expression")?{name:"tooltip",fn:l(()=>[t(e(f),{source:n("expression"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),t(e(v),{"model-value":r.value.expression,multiline:"",placeholder:"例:http.post('/api/foo').body({ id: row.id })","result-type":"HttpRequest",class:"min-h-16","onUpdate:modelValue":s[0]||(s[0]=i=>x({expression:i}))},null,8,["model-value"])]),_:1}),$("div",C,[t(e(p),{orientation:"vertical"},{default:l(()=>[t(e(u),{class:"text-xs text-zinc-500"},c({default:l(()=>[d(" "+m(a("resultExpression")),1)]),_:2},[n("resultExpression")?{name:"tooltip",fn:l(()=>[t(e(f),{source:n("resultExpression"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),t(e(v),{"model-value":r.value.resultExpression??"",placeholder:"例:json.code == 0 ? 'success' : 'error'","result-type":"string","extra-vars":k,"onUpdate:modelValue":s[1]||(s[1]=i=>g("resultExpression",i))},null,8,["model-value"])]),_:1}),t(e(p),{orientation:"vertical"},{default:l(()=>[t(e(u),{class:"text-xs text-zinc-500"},c({default:l(()=>[d(" "+m(a("titleExpression")),1)]),_:2},[n("titleExpression")?{name:"tooltip",fn:l(()=>[t(e(f),{source:n("titleExpression"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),t(e(v),{"model-value":r.value.titleExpression??"",placeholder:"例:result == 'error' ? '保存失败' : '保存成功'","result-type":"string","extra-vars":E,"onUpdate:modelValue":s[2]||(s[2]=i=>g("titleExpression",i))},null,8,["model-value"])]),_:1})]),t(e(p),{orientation:"vertical"},{default:l(()=>[t(e(u),{class:"text-xs text-zinc-500"},c({default:l(()=>[d(" "+m(a("description")),1)]),_:2},[n("description")?{name:"tooltip",fn:l(()=>[t(e(f),{source:n("description"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),t(e(j),{markdown:"","model-value":r.value.description,"onUpdate:modelValue":s[3]||(s[3]=i=>b(i))},null,8,["model-value"])]),_:1})]),_:1}))}});export{q as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as k,u as b,aq as S,z as m,a as e,w as l,b as a,o as f,e as _,f as v,g as i,t as r,h as p,n as V,_ as x,r as y,v as h,x as w,y as z,F as D,A as F,B as N,ad as T,ae as B}from"./index-
|
|
1
|
+
import{d as k,u as b,aq as S,z as m,a as e,w as l,b as a,o as f,e as _,f as v,g as i,t as r,h as p,n as V,_ as x,r as y,v as h,x as w,y as z,F as D,A as F,B as N,ad as T,ae as B}from"./index-DjG-VVR4.js";const C={class:"flex flex-col gap-3"},O=k({name:"ShwfedNavigationActionConfig",__name:"config",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(g){const t=b(g,"modelValue"),c=S(()=>{}),d=o=>T(c,o)??o,n=o=>B(c,o),$=[{value:"_self",label:"当前页面打开"},{value:"_blank",label:"新页面打开"}];return(o,u)=>(f(),m("div",C,[e(a(x),{orientation:"vertical"},{default:l(()=>[e(a(_),{class:"text-xs text-zinc-500"},v({default:l(()=>[i(" "+r(d("url")),1)]),_:2},[n("url")?{name:"tooltip",fn:l(()=>[e(a(p),{source:n("url"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),e(a(V),{"model-value":t.value.url??"",placeholder:"例:'/detail/' + string(row.id)","result-type":"string",multiline:"",class:"min-h-10","onUpdate:modelValue":u[0]||(u[0]=s=>t.value={...t.value,url:s})},null,8,["model-value"])]),_:1}),e(a(x),{orientation:"vertical"},{default:l(()=>[e(a(_),{class:"text-xs text-zinc-500"},v({default:l(()=>[i(" "+r(d("mode")),1)]),_:2},[n("mode")?{name:"tooltip",fn:l(()=>[e(a(p),{source:n("mode"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),e(a(y),{"model-value":t.value.mode??"_self","onUpdate:modelValue":u[1]||(u[1]=s=>t.value={...t.value,mode:s})},{default:l(()=>[e(a(h),{class:"w-full"},{default:l(()=>[e(a(w))]),_:1}),e(a(z),null,{default:l(()=>[(f(),m(D,null,F($,s=>e(a(N),{key:s.value,value:s.value},{default:l(()=>[i(r(s.label),1)]),_:2},1032,["value"])),64))]),_:1})]),_:1},8,["model-value"])]),_:1})]))}});export{O as default};
|