@shwfed/config 2.10.12 → 2.11.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 +46 -49
- 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-UfhMyymD.js} +1 -1
- package/dist/preview/assets/{badge-DkHwLDps.js → badge-CJ9IQ3Jx.js} +1 -1
- package/dist/preview/assets/{config-Cft-srKd.js → config--Vx4fL61.js} +1 -1
- package/dist/preview/assets/{config-DJQ2LOWo.js → config-5PPug5mk.js} +1 -1
- package/dist/preview/assets/{config-Dx1SXsSf.js → config-7V1qHjUk.js} +1 -1
- package/dist/preview/assets/{config-Cedm-E2H.js → config-BYktCefJ.js} +1 -1
- package/dist/preview/assets/{config-DAZ2Uj6B.js → config-BeRYF_cz.js} +1 -1
- package/dist/preview/assets/{config-DCANpbtq.js → config-BldsYfGM.js} +1 -1
- package/dist/preview/assets/{config-Uw4cvZGX.js → config-CQrDCzYN.js} +1 -1
- package/dist/preview/assets/{config-7KeAl8UU.js → config-C_g-FYCR.js} +1 -1
- package/dist/preview/assets/{config-CZ1e9utV.js → config-DIsAIc7H.js} +1 -1
- package/dist/preview/assets/{config-OPQWANCx.js → config-DPX7vGqV.js} +1 -1
- package/dist/preview/assets/{config-DQVKd54J.js → config-DpLMetys.js} +1 -1
- package/dist/preview/assets/{config-CVPVYMuh.js → config-IMd4FZi8.js} +1 -1
- package/dist/preview/assets/{config-Cy6Eix27.js → config-N-FdgfwK.js} +1 -1
- package/dist/preview/assets/{config-DbV3RlZz.js → config-uUF-UHPt.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-B_PKfe3G.js} +1 -1
- package/dist/preview/assets/index-8Ph-sFDI.css +1 -0
- package/dist/preview/assets/index-BCl1NN6k.js +763 -0
- package/dist/preview/assets/index-Core7vRW.js +1 -0
- package/dist/preview/assets/{index-Cum0oK9u.js → index-DKWp47QP.js} +1 -1
- package/dist/preview/assets/{item-H4QeOpnC.js → item-XsW7swFt.js} +1 -1
- package/dist/preview/assets/{runtime-CTnwTJlw.js → runtime-B-ABO0r0.js} +1 -1
- package/dist/preview/assets/{runtime-C3532B0Y.js → runtime-BeHohaOZ.js} +1 -1
- package/dist/preview/assets/{runtime-CNMjRr9Y.js → runtime-BiFFwOIl.js} +1 -1
- package/dist/preview/assets/{runtime-ibuFFD1K.js → runtime-ByArW-jJ.js} +1 -1
- package/dist/preview/assets/{runtime-DvCHNIPq.js → runtime-CpVTGNFZ.js} +1 -1
- package/dist/preview/assets/{runtime-sPGVp7yA.js → runtime-DQ1TnQ7n.js} +1 -1
- package/dist/preview/assets/{runtime-CwgX0PuH.js → runtime-DY7hr7v1.js} +1 -1
- package/dist/preview/assets/{runtime-BotFX6qJ.js → runtime-Dn172S7t.js} +1 -1
- package/dist/preview/assets/{runtime-D5HcLLLR.js → runtime-JxBzvGnw.js} +1 -1
- package/dist/preview/assets/{runtime-cKOD2A6u.js → runtime-bq0hmEXY.js} +1 -1
- package/dist/preview/assets/{schema-meta-DtZNwp3h.js → schema-meta-CZ9yXnsa.js} +1 -1
- package/dist/preview/index.html +2 -2
- 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 +2 -5
- 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 +2 -5
- 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-06-14/com.shwfed.table.column.combobox-multi/config.d.vue.ts +4 -2
- 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 +4 -2
- 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 +4 -2
- 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 +4 -2
- 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 +2 -5
- 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/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
|
@@ -90279,10 +90279,14 @@ function columnFields(configure) {
|
|
|
90279
90279
|
return {
|
|
90280
90280
|
...columnIdentityFields(),
|
|
90281
90281
|
title: Locale.annotations({ title: "名称", description: "列标题" }),
|
|
90282
|
-
|
|
90282
|
+
// Optional: a purely visual column (icon, badge, computed-elsewhere cell)
|
|
90283
|
+
// may have no backing data path, letting designers refine the display layer
|
|
90284
|
+
// without an API contract first. Absent → the cell renders no data; present
|
|
90285
|
+
// → still validated as a CEL expression (empty string stays invalid).
|
|
90286
|
+
accessor: optional(CelRowAccess(configure).annotations({
|
|
90283
90287
|
title: "路径",
|
|
90284
|
-
description: "行数据访问 CEL 表达式,例如 `row.user.name
|
|
90285
|
-
}),
|
|
90288
|
+
description: "行数据访问 CEL 表达式,例如 `row.user.name`;可留空,留空时该列不读取数据(用于纯视觉列)"
|
|
90289
|
+
})),
|
|
90286
90290
|
enableSorting: optional(Boolean$.annotations({
|
|
90287
90291
|
title: "允许排序",
|
|
90288
90292
|
description: md$1`
|
|
@@ -90307,7 +90311,11 @@ function columnFields(configure) {
|
|
|
90307
90311
|
description: "指定一个合适的表格列宽度,当列内容长度大于这里指定的宽度后,会导致超出的部分被截断。"
|
|
90308
90312
|
})),
|
|
90309
90313
|
grow: optional(Boolean$.annotations({ title: "占据剩余宽度", description: "列是否占据剩余空余宽度" })),
|
|
90310
|
-
tooltip: optional(Locale.annotations({ title: "提示", description: "列标题悬浮提示,支持 Markdown" }))
|
|
90314
|
+
tooltip: optional(Locale.annotations({ title: "提示", description: "列标题悬浮提示,支持 Markdown" })),
|
|
90315
|
+
hidden: optional(Boolean$.annotations({
|
|
90316
|
+
title: "默认隐藏",
|
|
90317
|
+
description: "开启后该列默认隐藏;使用者可在表格的列设置中重新显示。仅作为初始状态,不随数据变化"
|
|
90318
|
+
}))
|
|
90311
90319
|
};
|
|
90312
90320
|
}
|
|
90313
90321
|
function editableColumnFields() {
|
|
@@ -90331,7 +90339,11 @@ function editableColumnFields() {
|
|
|
90331
90339
|
description: "指定一个合适的表格列宽度,当列内容长度大于这里指定的宽度后,会导致超出的部分被截断。"
|
|
90332
90340
|
})),
|
|
90333
90341
|
grow: optional(Boolean$.annotations({ title: "占据剩余宽度", description: "列是否占据剩余空余宽度" })),
|
|
90334
|
-
tooltip: optional(Locale.annotations({ title: "提示", description: "列标题悬浮提示,支持 Markdown" }))
|
|
90342
|
+
tooltip: optional(Locale.annotations({ title: "提示", description: "列标题悬浮提示,支持 Markdown" })),
|
|
90343
|
+
hidden: optional(Boolean$.annotations({
|
|
90344
|
+
title: "默认隐藏",
|
|
90345
|
+
description: "开启后该列默认隐藏;使用者可在表格的列设置中重新显示。仅作为初始状态,不随数据变化"
|
|
90346
|
+
}))
|
|
90335
90347
|
};
|
|
90336
90348
|
}
|
|
90337
90349
|
const EDITABLE_HEADER_MARKER = /* @__PURE__ */ Symbol("shwfed-editable-header");
|
|
@@ -90449,7 +90461,6 @@ function schema$Z(configure) {
|
|
|
90449
90461
|
function defaults$A() {
|
|
90450
90462
|
return {
|
|
90451
90463
|
title: [{ locale: "zh", message: "" }],
|
|
90452
|
-
accessor: "",
|
|
90453
90464
|
format: "yyyy-MM-dd",
|
|
90454
90465
|
size: 120
|
|
90455
90466
|
};
|
|
@@ -90458,6 +90469,7 @@ function toColumnDef$y(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
90458
90469
|
return {
|
|
90459
90470
|
header: getLocaleText(value.title),
|
|
90460
90471
|
accessorFn: (row, index) => {
|
|
90472
|
+
if (!value.accessor) return void 0;
|
|
90461
90473
|
try {
|
|
90462
90474
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
90463
90475
|
} catch (e) {
|
|
@@ -90493,10 +90505,13 @@ function schema$Y(configure) {
|
|
|
90493
90505
|
type: Literal2(type$Y),
|
|
90494
90506
|
compatibilityDate: Literal2(compatibilityDate$Y),
|
|
90495
90507
|
...columnFields(configure),
|
|
90496
|
-
|
|
90508
|
+
// Optional like every non-editable column's path: an icon column may carry
|
|
90509
|
+
// no data binding (a fixed decorative cell), letting designers build the
|
|
90510
|
+
// visual layer before any API contract exists.
|
|
90511
|
+
accessor: optional(CelRowAccess(configure).annotations({
|
|
90497
90512
|
title: "图标",
|
|
90498
|
-
description: "图标名称 CEL 表达式(Iconify 标识符),例如 `row.iconName
|
|
90499
|
-
}),
|
|
90513
|
+
description: "图标名称 CEL 表达式(Iconify 标识符),例如 `row.iconName`;可留空,留空时不渲染图标"
|
|
90514
|
+
})),
|
|
90500
90515
|
color: optional(
|
|
90501
90516
|
CelRowAccess(configure, { resultType: "string" }).annotations({
|
|
90502
90517
|
title: "颜色",
|
|
@@ -90509,7 +90524,6 @@ function schema$Y(configure) {
|
|
|
90509
90524
|
function defaults$z() {
|
|
90510
90525
|
return {
|
|
90511
90526
|
title: [{ locale: "zh", message: "" }],
|
|
90512
|
-
accessor: "",
|
|
90513
90527
|
size: 120
|
|
90514
90528
|
};
|
|
90515
90529
|
}
|
|
@@ -90517,6 +90531,7 @@ function toColumnDef$x(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
90517
90531
|
return {
|
|
90518
90532
|
header: getLocaleText(value.title),
|
|
90519
90533
|
accessorFn: (row, index) => {
|
|
90534
|
+
if (!value.accessor) return void 0;
|
|
90520
90535
|
try {
|
|
90521
90536
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
90522
90537
|
} catch (e) {
|
|
@@ -90638,7 +90653,6 @@ function schema$W(configure) {
|
|
|
90638
90653
|
function defaults$x() {
|
|
90639
90654
|
return {
|
|
90640
90655
|
title: [{ locale: "zh", message: "" }],
|
|
90641
|
-
accessor: "",
|
|
90642
90656
|
size: 120,
|
|
90643
90657
|
align: "right"
|
|
90644
90658
|
};
|
|
@@ -90647,6 +90661,7 @@ function toColumnDef$v(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
90647
90661
|
return {
|
|
90648
90662
|
header: getLocaleText(value.title),
|
|
90649
90663
|
accessorFn: (row, index) => {
|
|
90664
|
+
if (!value.accessor) return void 0;
|
|
90650
90665
|
try {
|
|
90651
90666
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
90652
90667
|
} catch (e) {
|
|
@@ -90761,7 +90776,6 @@ function schema$U(configure) {
|
|
|
90761
90776
|
function defaults$v() {
|
|
90762
90777
|
return {
|
|
90763
90778
|
title: [{ locale: "zh", message: "" }],
|
|
90764
|
-
accessor: "",
|
|
90765
90779
|
size: 120
|
|
90766
90780
|
};
|
|
90767
90781
|
}
|
|
@@ -90769,6 +90783,7 @@ function toColumnDef$t(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
90769
90783
|
return {
|
|
90770
90784
|
header: getLocaleText(value.title),
|
|
90771
90785
|
accessorFn: (row, index) => {
|
|
90786
|
+
if (!value.accessor) return void 0;
|
|
90772
90787
|
try {
|
|
90773
90788
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
90774
90789
|
} catch (e) {
|
|
@@ -90843,7 +90858,6 @@ function schema$T(configure) {
|
|
|
90843
90858
|
function defaults$u() {
|
|
90844
90859
|
return {
|
|
90845
90860
|
title: [{ locale: "zh", message: "" }],
|
|
90846
|
-
accessor: "",
|
|
90847
90861
|
size: 120
|
|
90848
90862
|
};
|
|
90849
90863
|
}
|
|
@@ -90863,6 +90877,7 @@ function toColumnDef$s(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
90863
90877
|
return {
|
|
90864
90878
|
header: getLocaleText(value.title),
|
|
90865
90879
|
accessorFn: (row, index) => {
|
|
90880
|
+
if (!value.accessor) return void 0;
|
|
90866
90881
|
try {
|
|
90867
90882
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
90868
90883
|
} catch (e) {
|
|
@@ -90940,6 +90955,7 @@ function toColumnDef$r(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
90940
90955
|
return {
|
|
90941
90956
|
header: getLocaleText(value.title),
|
|
90942
90957
|
accessorFn: (row, index) => {
|
|
90958
|
+
if (!value.accessor) return void 0;
|
|
90943
90959
|
try {
|
|
90944
90960
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
90945
90961
|
} catch (e) {
|
|
@@ -91284,14 +91300,11 @@ function schema$Q(configure) {
|
|
|
91284
91300
|
type: Literal2(type$Q),
|
|
91285
91301
|
compatibilityDate: Literal2(compatibilityDate$Q),
|
|
91286
91302
|
...editableColumnFields(),
|
|
91303
|
+
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "right" }),
|
|
91287
91304
|
placeholder: optional(Locale.annotations({
|
|
91288
91305
|
title: "占位符",
|
|
91289
91306
|
description: "单元格为空时显示的提示文本"
|
|
91290
91307
|
})),
|
|
91291
|
-
hidden: optional(CelBool.annotations({
|
|
91292
|
-
title: "隐藏条件",
|
|
91293
|
-
description: "返回 `true` 时该行的输入框不渲染(其余行不受影响)"
|
|
91294
|
-
})),
|
|
91295
91308
|
disabled: optional(CelBool.annotations({
|
|
91296
91309
|
title: "禁用条件",
|
|
91297
91310
|
description: "返回 `true` 时输入框仍然渲染但不可编辑"
|
|
@@ -91377,10 +91390,7 @@ function schema$P(configure) {
|
|
|
91377
91390
|
type: Literal2(type$P),
|
|
91378
91391
|
compatibilityDate: Literal2(compatibilityDate$P),
|
|
91379
91392
|
...editableColumnFields(),
|
|
91380
|
-
|
|
91381
|
-
title: "隐藏条件",
|
|
91382
|
-
description: "返回 `true` 时该行的开关不渲染(其余行不受影响)"
|
|
91383
|
-
})),
|
|
91393
|
+
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "center" }),
|
|
91384
91394
|
disabled: optional(CelBool.annotations({
|
|
91385
91395
|
title: "禁用条件",
|
|
91386
91396
|
description: "返回 `true` 时开关仍然渲染但不可切换"
|
|
@@ -91540,14 +91550,11 @@ function schema$N(configure) {
|
|
|
91540
91550
|
type: Literal2(type$N),
|
|
91541
91551
|
compatibilityDate: Literal2(compatibilityDate$N),
|
|
91542
91552
|
...editableColumnFields(),
|
|
91553
|
+
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "left" }),
|
|
91543
91554
|
placeholder: optional(Locale.annotations({
|
|
91544
91555
|
title: "占位符",
|
|
91545
91556
|
description: "单元格为空时显示的提示文本"
|
|
91546
91557
|
})),
|
|
91547
|
-
hidden: optional(CelBool.annotations({
|
|
91548
|
-
title: "隐藏条件",
|
|
91549
|
-
description: "返回 `true` 时该行的输入框不渲染(其余行不受影响)"
|
|
91550
|
-
})),
|
|
91551
91558
|
disabled: optional(CelBool.annotations({
|
|
91552
91559
|
title: "禁用条件",
|
|
91553
91560
|
description: "返回 `true` 时输入框仍然渲染但不可编辑"
|
|
@@ -93132,6 +93139,7 @@ function toColumnDef$k(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
93132
93139
|
return {
|
|
93133
93140
|
header: editableHeader(getLocaleText(value.title)),
|
|
93134
93141
|
accessorFn: (row, index) => {
|
|
93142
|
+
if (!value.accessor) return void 0;
|
|
93135
93143
|
try {
|
|
93136
93144
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
93137
93145
|
} catch (e) {
|
|
@@ -93256,6 +93264,7 @@ function toColumnDef$j(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
93256
93264
|
return {
|
|
93257
93265
|
header: editableHeader(getLocaleText(value.title)),
|
|
93258
93266
|
accessorFn: (row, index) => {
|
|
93267
|
+
if (!value.accessor) return void 0;
|
|
93259
93268
|
try {
|
|
93260
93269
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
93261
93270
|
} catch (e) {
|
|
@@ -93402,6 +93411,7 @@ function toColumnDef$i(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
93402
93411
|
return {
|
|
93403
93412
|
header: editableHeader(getLocaleText(value.title)),
|
|
93404
93413
|
accessorFn: (row, index) => {
|
|
93414
|
+
if (!value.accessor) return void 0;
|
|
93405
93415
|
try {
|
|
93406
93416
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
93407
93417
|
} catch (e) {
|
|
@@ -93526,6 +93536,7 @@ function toColumnDef$h(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
93526
93536
|
return {
|
|
93527
93537
|
header: editableHeader(getLocaleText(value.title)),
|
|
93528
93538
|
accessorFn: (row, index) => {
|
|
93539
|
+
if (!value.accessor) return void 0;
|
|
93529
93540
|
try {
|
|
93530
93541
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
93531
93542
|
} catch (e) {
|
|
@@ -93847,6 +93858,7 @@ function toColumnDef$f(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
93847
93858
|
return {
|
|
93848
93859
|
header: editableHeader(getLocaleText(value.title)),
|
|
93849
93860
|
accessorFn: (row, index) => {
|
|
93861
|
+
if (!value.accessor) return void 0;
|
|
93850
93862
|
try {
|
|
93851
93863
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
93852
93864
|
} catch (e) {
|
|
@@ -94258,6 +94270,7 @@ function toColumnDef$d(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
94258
94270
|
return {
|
|
94259
94271
|
header: editableHeader(getLocaleText(value.title)),
|
|
94260
94272
|
accessorFn: (row, index) => {
|
|
94273
|
+
if (!value.accessor) return void 0;
|
|
94261
94274
|
try {
|
|
94262
94275
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
94263
94276
|
} catch (e) {
|
|
@@ -95853,14 +95866,11 @@ function schema$w(configure) {
|
|
|
95853
95866
|
compatibilityDate: Literal2(compatibilityDate$w),
|
|
95854
95867
|
...columnIdentityFields(),
|
|
95855
95868
|
title: display.title,
|
|
95869
|
+
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "left" }),
|
|
95856
95870
|
placeholder: optional(Locale.annotations({
|
|
95857
95871
|
title: "占位符",
|
|
95858
95872
|
description: "未选中任何选项时输入框中的占位文本"
|
|
95859
95873
|
})),
|
|
95860
|
-
hidden: optional(CelBool.annotations({
|
|
95861
|
-
title: "隐藏条件",
|
|
95862
|
-
description: "返回 `true` 时该行的下拉框不渲染(其余行不受影响)"
|
|
95863
|
-
})),
|
|
95864
95874
|
disabled: optional(CelBool.annotations({
|
|
95865
95875
|
title: "禁用条件",
|
|
95866
95876
|
description: "返回 `true` 时下拉框仍然渲染但不可选择"
|
|
@@ -95874,6 +95884,7 @@ function schema$w(configure) {
|
|
|
95874
95884
|
size: display.size,
|
|
95875
95885
|
grow: display.grow,
|
|
95876
95886
|
tooltip: display.tooltip,
|
|
95887
|
+
hidden: display.hidden,
|
|
95877
95888
|
options: optionalWith(Options, {
|
|
95878
95889
|
default: () => ({ kind: "static", items: [] })
|
|
95879
95890
|
}),
|
|
@@ -96130,14 +96141,11 @@ function schema$v(configure) {
|
|
|
96130
96141
|
compatibilityDate: Literal2(compatibilityDate$v),
|
|
96131
96142
|
...columnIdentityFields(),
|
|
96132
96143
|
title: display.title,
|
|
96144
|
+
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "left" }),
|
|
96133
96145
|
placeholder: optional(Locale.annotations({
|
|
96134
96146
|
title: "占位符",
|
|
96135
96147
|
description: "未选中任何选项时输入框中的占位文本"
|
|
96136
96148
|
})),
|
|
96137
|
-
hidden: optional(CelBool.annotations({
|
|
96138
|
-
title: "隐藏条件",
|
|
96139
|
-
description: "返回 `true` 时该行的下拉框不渲染(其余行不受影响)"
|
|
96140
|
-
})),
|
|
96141
96149
|
disabled: optional(CelBool.annotations({
|
|
96142
96150
|
title: "禁用条件",
|
|
96143
96151
|
description: "返回 `true` 时下拉框仍然渲染但不可选择"
|
|
@@ -96151,6 +96159,7 @@ function schema$v(configure) {
|
|
|
96151
96159
|
size: display.size,
|
|
96152
96160
|
grow: display.grow,
|
|
96153
96161
|
tooltip: display.tooltip,
|
|
96162
|
+
hidden: display.hidden,
|
|
96154
96163
|
options: optionalWith(Options, {
|
|
96155
96164
|
default: () => ({ kind: "static", items: [] })
|
|
96156
96165
|
}),
|
|
@@ -96298,14 +96307,11 @@ function schema$u(configure) {
|
|
|
96298
96307
|
type: Literal2(type$u),
|
|
96299
96308
|
compatibilityDate: Literal2(compatibilityDate$u),
|
|
96300
96309
|
...editableColumnFields(),
|
|
96310
|
+
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "left" }),
|
|
96301
96311
|
placeholder: optional(Locale.annotations({
|
|
96302
96312
|
title: "占位符",
|
|
96303
96313
|
description: "未选中任何选项时输入框中的占位文本"
|
|
96304
96314
|
})),
|
|
96305
|
-
hidden: optional(CelBool.annotations({
|
|
96306
|
-
title: "隐藏条件",
|
|
96307
|
-
description: "返回 `true` 时该行的下拉树不渲染(其余行不受影响)"
|
|
96308
|
-
})),
|
|
96309
96315
|
disabled: optional(CelBool.annotations({
|
|
96310
96316
|
title: "禁用条件",
|
|
96311
96317
|
description: "返回 `true` 时下拉树仍然渲染但不可选择"
|
|
@@ -96476,14 +96482,11 @@ function schema$t(configure) {
|
|
|
96476
96482
|
type: Literal2(type$t),
|
|
96477
96483
|
compatibilityDate: Literal2(compatibilityDate$t),
|
|
96478
96484
|
...editableColumnFields(),
|
|
96485
|
+
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "left" }),
|
|
96479
96486
|
placeholder: optional(Locale.annotations({
|
|
96480
96487
|
title: "占位符",
|
|
96481
96488
|
description: "未选中任何选项时输入框中的占位文本"
|
|
96482
96489
|
})),
|
|
96483
|
-
hidden: optional(CelBool.annotations({
|
|
96484
|
-
title: "隐藏条件",
|
|
96485
|
-
description: "返回 `true` 时该行的下拉树不渲染(其余行不受影响)"
|
|
96486
|
-
})),
|
|
96487
96490
|
disabled: optional(CelBool.annotations({
|
|
96488
96491
|
title: "禁用条件",
|
|
96489
96492
|
description: "返回 `true` 时下拉树仍然渲染但不可选择"
|
|
@@ -96619,14 +96622,11 @@ function schema$s(configure) {
|
|
|
96619
96622
|
type: Literal2(type$s),
|
|
96620
96623
|
compatibilityDate: Literal2(compatibilityDate$s),
|
|
96621
96624
|
...editableColumnFields(),
|
|
96625
|
+
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "left" }),
|
|
96622
96626
|
placeholder: optional(Locale.annotations({
|
|
96623
96627
|
title: "占位符",
|
|
96624
96628
|
description: "未选中日期时输入框中的占位文本"
|
|
96625
96629
|
})),
|
|
96626
|
-
hidden: optional(CelBool.annotations({
|
|
96627
|
-
title: "隐藏条件",
|
|
96628
|
-
description: "返回 `true` 时该行的输入框不渲染(其余行不受影响)"
|
|
96629
|
-
})),
|
|
96630
96630
|
disabled: optional(CelBool.annotations({
|
|
96631
96631
|
title: "禁用条件",
|
|
96632
96632
|
description: "返回 `true` 时输入框仍然渲染但不可编辑"
|
|
@@ -96728,6 +96728,7 @@ function schema$r(configure) {
|
|
|
96728
96728
|
type: Literal2(type$r),
|
|
96729
96729
|
compatibilityDate: Literal2(compatibilityDate$r),
|
|
96730
96730
|
...editableColumnFields(),
|
|
96731
|
+
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "left" }),
|
|
96731
96732
|
// Swap the inherited single-string `binding` for the range union.
|
|
96732
96733
|
binding: bindingSchema$1,
|
|
96733
96734
|
startPlaceholder: optional(Locale.annotations({
|
|
@@ -96738,10 +96739,6 @@ function schema$r(configure) {
|
|
|
96738
96739
|
title: "结束占位符",
|
|
96739
96740
|
description: "未选中结束日期时输入框中的占位文本"
|
|
96740
96741
|
})),
|
|
96741
|
-
hidden: optional(CelBool.annotations({
|
|
96742
|
-
title: "隐藏条件",
|
|
96743
|
-
description: "返回 `true` 时该行的输入框不渲染(其余行不受影响)"
|
|
96744
|
-
})),
|
|
96745
96742
|
disabled: optional(CelBool.annotations({
|
|
96746
96743
|
title: "禁用条件",
|
|
96747
96744
|
description: "返回 `true` 时输入框仍然渲染但不可编辑"
|
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-BCl1NN6k.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-BCl1NN6k.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 $,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-BCl1NN6k.js";import{_ as O}from"./FieldGroup.vue_vue_type_script_setup_true_lang-UfhMyymD.js";import{g as T,a as C}from"./schema-meta-CZ9yXnsa.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 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-BCl1NN6k.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 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-BCl1NN6k.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 le,u as te,ar as ae,as as oe,I,at as H,z as c,c as P,a as s,w as n,b as e,au as se,a8 as ne,F as R,av as ie,t as p,j as v,aw as W,ax as K,ay as de,L as x,K as ue,$ as h,az as ce,o as d,aA as j,aB as O,al as Y,aC as q,e as B,f as b,g as L,h as _,i as ve,_ as U,aD as G,ad as re,ae as me,aE as fe,aF as pe,aG as xe,aH as ye}from"./index-
|
|
1
|
+
import{d as le,u as te,ar as ae,as as oe,I,at as H,z as c,c as P,a as s,w as n,b as e,au as se,a8 as ne,F as R,av as ie,t as p,j as v,aw as W,ax as K,ay as de,L as x,K as ue,$ as h,az as ce,o as d,aA as j,aB as O,al as Y,aC as q,e as B,f as b,g as L,h as _,i as ve,_ as U,aD as G,ad as re,ae as me,aE as fe,aF as pe,aG as xe,aH as ye}from"./index-BCl1NN6k.js";const ke={key:0,class:"flex min-h-96 items-center justify-center p-8 text-sm text-zinc-400"},ge={key:1},Ie={key:2,class:"p-6 text-sm text-red-500"},Be={key:2,class:"flex flex-col gap-4"},be={class:"grid grid-cols-2 gap-4"},Le={key:0,class:"flex gap-2 min-h-96"},_e={class:"flex w-56 shrink-0 flex-col"},Ue={class:"flex flex-1 flex-col gap-2"},Ve={class:"flex-1"},De={key:1,class:"flex flex-col gap-2"},Ee={class:"h-96"},Se=le({name:"ShwfedModalLayoutActionConfig",__name:"config",props:de({configure:{type:Function}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(V){const i=te(V,"modelValue"),X=V,D=x(()=>X.configure??(()=>{})),E=ae(()=>{}),y=a=>re(E,a)??a,r=a=>me(E,a),J=x({get:()=>i.value.slot??fe(),set:a=>{i.value={...i.value,slot:a}}}),t=oe(J,{configure:D.value}),{copy:C,paste:S}=ce(t);function Q(a){i.value={...i.value,modalTitle:a}}function T(a,l){const o=l.trim(),g={...i.value};o.length===0?Reflect.deleteProperty(g,a):g[a]=o,i.value=g}function z(){const a=t.layouts.value;t.layouts.value=[...a,{name:"新布局",layout:{columns:1,placements:{}}}],t.activeLayoutIndex.value=a.length}function M(a,l){t.addBlock(a,l)}function w(a){t.removeBlock(a)}function $(a){t.removeBlocks(a)}const u=ue(null),m=x(()=>{const a=u.value;return a?t.blocks.value.find(l=>l.id===a)??null:null}),N=x(()=>{const a=m.value;return a?pe()?.(a.type,a.compatibilityDate)??null:null});function A(a){u.value=a}function Z(){u.value=null}I(()=>t.blocks.value.map(a=>a.id),a=>{const l=u.value;l&&!a.includes(l)&&(u.value=null)});function ee(a){const l=u.value;l&&t.updateBlock(l,a)}const F=h(xe,null);if(F){const a=F.add();I(m,l=>{l?(a.label.value=t.getBlockLabel(l),a.back.value=Z):(a.label.value=null,a.back.value=null)},{immediate:!0}),H(()=>{a.dispose()})}const f=h(ye,null),k=x(()=>f?.target.value??null);return I(u,a=>{f?.drilled&&(f.drilled.value=!!a)},{immediate:!0}),H(()=>{f?.drilled&&(f.drilled.value=!1)}),(a,l)=>(d(),c(R,null,[k.value&&!u.value?(d(),P(se,{key:0,to:k.value},[s(e(O),{class:"flex-1"},{default:n(()=>[s(j,{"model-value":e(t).layouts.value,"active-index":e(t).activeLayoutIndex.value,"onUpdate:modelValue":l[0]||(l[0]=o=>{e(t).layouts.value=o}),"onUpdate:activeIndex":l[1]||(l[1]=o=>{e(t).activeLayoutIndex.value=o})},null,8,["model-value","active-index"])]),_:1}),s(e(q),{variant:"ghost",size:"sm",onClick:l[2]||(l[2]=o=>z())},{default:n(()=>[s(e(Y),{icon:"fluent:add-20-regular",class:"size-4"}),l[17]||(l[17]=v("span",null,"新增布局",-1))]),_:1})],8,["to"])):ne("",!0),u.value?(d(),c(R,{key:1},[m.value?N.value?(d(),c("div",ge,[(d(),P(ie(N.value.config),{"model-value":m.value,configure:D.value,"onUpdate:modelValue":l[3]||(l[3]=o=>ee(o))},null,8,["model-value","configure"]))])):(d(),c("div",Ie," 未注册的块类型:"+p(m.value.type)+"@"+p(m.value.compatibilityDate),1)):(d(),c("div",ke," 块已不存在 "))],64)):(d(),c("div",Be,[s(e(U),{orientation:"vertical"},{default:n(()=>[s(e(B),{class:"text-xs text-zinc-500"},b({default:n(()=>[L(" "+p(y("modalTitle")),1)]),_:2},[r("modalTitle")?{name:"tooltip",fn:n(()=>[s(e(_),{source:r("modalTitle"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),s(e(ve),{markdown:"","model-value":i.value.modalTitle,"translate-hint":y("modalTitle"),"onUpdate:modelValue":Q},null,8,["model-value","translate-hint"])]),_:1}),v("div",be,[s(e(U),{orientation:"vertical"},{default:n(()=>[s(e(B),{class:"text-xs text-zinc-500"},b({default:n(()=>[L(" "+p(y("modalWidth")),1)]),_:2},[r("modalWidth")?{name:"tooltip",fn:n(()=>[s(e(_),{source:r("modalWidth"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),s(e(G),{"model-value":i.value.modalWidth??"",placeholder:"例:720px / 60vw","onUpdate:modelValue":l[4]||(l[4]=o=>T("modalWidth",String(o)))},null,8,["model-value"])]),_:1}),s(e(U),{orientation:"vertical"},{default:n(()=>[s(e(B),{class:"text-xs text-zinc-500"},b({default:n(()=>[L(" "+p(y("modalMinHeight")),1)]),_:2},[r("modalMinHeight")?{name:"tooltip",fn:n(()=>[s(e(_),{source:r("modalMinHeight"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),s(e(G),{"model-value":i.value.modalMinHeight??"",placeholder:"例:400px / 60vh","onUpdate:modelValue":l[5]||(l[5]=o=>T("modalMinHeight",String(o)))},null,8,["model-value"])]),_:1})]),k.value?(d(),c("div",De,[s(W,{"model-value":e(t).layouts.value,index:e(t).activeLayoutIndex.value,"onUpdate:modelValue":l[13]||(l[13]=o=>{e(t).layouts.value=o})},null,8,["model-value","index"]),v("div",Ee,[s(K,{"model-value":e(t).layouts.value,"active-index":e(t).activeLayoutIndex.value,"selected-item-ids":e(t).selectedBlockIds.value,items:e(t).blocks.value,"find-entry":e(t).findBlockMeta,"get-item-label":e(t).getBlockLabel,"picker-entries":e(t).pickerEntries.value,"can-delete":!0,"item-noun":"块","onUpdate:modelValue":l[14]||(l[14]=o=>{e(t).layouts.value=o}),"onUpdate:activeIndex":l[15]||(l[15]=o=>{e(t).activeLayoutIndex.value=o}),"onUpdate:selectedItemIds":l[16]||(l[16]=o=>{e(t).selectedBlockIds.value=o}),onAddNew:M,onDrillDown:A,onDeleteItem:w,onDeleteItems:$,onCopyItems:e(C),onPaste:e(S)},null,8,["model-value","active-index","selected-item-ids","items","find-entry","get-item-label","picker-entries","onCopyItems","onPaste"])])])):(d(),c("div",Le,[v("div",_e,[s(e(O),{class:"flex-1"},{default:n(()=>[s(j,{"model-value":e(t).layouts.value,"active-index":e(t).activeLayoutIndex.value,"onUpdate:modelValue":l[6]||(l[6]=o=>{e(t).layouts.value=o}),"onUpdate:activeIndex":l[7]||(l[7]=o=>{e(t).activeLayoutIndex.value=o})},null,8,["model-value","active-index"])]),_:1}),s(e(q),{variant:"ghost",size:"sm",onClick:l[8]||(l[8]=o=>z())},{default:n(()=>[s(e(Y),{icon:"fluent:add-20-regular",class:"size-4"}),l[18]||(l[18]=v("span",null,"新增布局",-1))]),_:1})]),v("div",Ue,[s(W,{"model-value":e(t).layouts.value,index:e(t).activeLayoutIndex.value,"onUpdate:modelValue":l[9]||(l[9]=o=>{e(t).layouts.value=o})},null,8,["model-value","index"]),v("div",Ve,[s(K,{"model-value":e(t).layouts.value,"active-index":e(t).activeLayoutIndex.value,"selected-item-ids":e(t).selectedBlockIds.value,items:e(t).blocks.value,"find-entry":e(t).findBlockMeta,"get-item-label":e(t).getBlockLabel,"picker-entries":e(t).pickerEntries.value,"can-delete":!0,"item-noun":"块","onUpdate:modelValue":l[10]||(l[10]=o=>{e(t).layouts.value=o}),"onUpdate:activeIndex":l[11]||(l[11]=o=>{e(t).activeLayoutIndex.value=o}),"onUpdate:selectedItemIds":l[12]||(l[12]=o=>{e(t).selectedBlockIds.value=o}),onAddNew:M,onDrillDown:A,onDeleteItem:w,onDeleteItems:$,onCopyItems:e(C),onPaste:e(S)},null,8,["model-value","active-index","selected-item-ids","items","find-entry","get-item-label","picker-entries","onCopyItems","onPaste"])])])]))]))],64))}});export{Se 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-BCl1NN6k.js";import{_ as w}from"./FieldGroup.vue_vue_type_script_setup_true_lang-UfhMyymD.js";import{g as R,a as U}from"./schema-meta-CZ9yXnsa.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 v,u as S,aL as h,z as k,a as s,w as l,b as t,o as V,e as r,f as u,g as d,t as p,h as m,n as w,_ as f,ac as y,ad as z,ae as T}from"./index-
|
|
1
|
+
import{d as v,u as S,aL as h,z as k,a as s,w as l,b as t,o as V,e as r,f as u,g as d,t as p,h as m,n as w,_ as f,ac as y,ad as z,ae as T}from"./index-BCl1NN6k.js";const $={class:"flex flex-col gap-3"},C=v({name:"ShwfedStateWriteActionConfig",__name:"config",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(_){const o=S(_,"modelValue"),i=h(()=>{}),c=e=>z(i,e)??e,n=e=>T(i,e);function g(e){const a={...o.value};e.length===0?Reflect.deleteProperty(a,"onSuccess"):a.onSuccess=e,o.value=a}return(e,a)=>(V(),k("div",$,[s(t(f),{orientation:"vertical"},{default:l(()=>[s(t(r),{class:"text-xs text-zinc-500"},u({default:l(()=>[d(" "+p(c("expression")),1)]),_:2},[n("expression")?{name:"tooltip",fn:l(()=>[s(t(m),{source:n("expression"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),s(t(w),{"model-value":o.value.expression,multiline:"",placeholder:"例:{ invoices: rows, totalAmount: rows.map(r, r.amount).sum() }","result-type":"map",class:"min-h-16","onUpdate:modelValue":a[0]||(a[0]=x=>o.value={...o.value,expression:x})},null,8,["model-value"])]),_:1}),s(t(f),{orientation:"vertical"},{default:l(()=>[s(t(r),{class:"text-xs text-zinc-500"},u({default:l(()=>[d(" "+p(c("onSuccess")),1)]),_:2},[n("onSuccess")?{name:"tooltip",fn:l(()=>[s(t(m),{source:n("onSuccess"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),s(y,{triggers:o.value.onSuccess??[],"onUpdate:triggers":g},null,8,["triggers"])]),_:1})]))}});export{C 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-BCl1NN6k.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 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-BCl1NN6k.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 k,u as V,s as $,o as z,c as S,w as s,a as o,b as e,_ as d,e as u,f as m,g as f,t as p,h as _,i as b,j as y,k as w,l as B}from"./index-
|
|
1
|
+
import{d as k,u as V,s as $,o as z,c as S,w as s,a as o,b as e,_ as d,e as u,f as m,g as f,t as p,h as _,i as b,j as y,k as w,l as B}from"./index-BCl1NN6k.js";import{_ as C}from"./FieldGroup.vue_vue_type_script_setup_true_lang-UfhMyymD.js";import{g as D,a as N}from"./schema-meta-CZ9yXnsa.js";const T={class:"grid grid-cols-2 gap-4"},M=k({name:"ShwfedAlertOperationConfig",__name:"config",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(g){const n=V(g,"modelValue"),v=$(),r=l=>D(v,l)??l,i=l=>N(v,l);function c(l){const t={...n.value,...l};for(const[a,x]of Object.entries(l))x===void 0&&Reflect.deleteProperty(t,a);n.value=t}return(l,t)=>(z(),S(e(C),null,{default:s(()=>[o(e(d),{orientation:"vertical"},{default:s(()=>[o(e(u),{class:"text-xs text-zinc-500"},m({default:s(()=>[f(" "+p(r("message")),1)]),_:2},[i("message")?{name:"tooltip",fn:s(()=>[o(e(_),{source:i("message"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),o(e(b),{markdown:"","model-value":n.value.message,"onUpdate:modelValue":t[0]||(t[0]=a=>c({message:a}))},null,8,["model-value"])]),_:1}),y("div",T,[o(e(d),{orientation:"vertical"},{default:s(()=>[o(e(u),{class:"text-xs text-zinc-500"},m({default:s(()=>[f(" "+p(r("icon")),1)]),_:2},[i("icon")?{name:"tooltip",fn:s(()=>[o(e(_),{source:i("icon"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),o(e(w),{"model-value":n.value.icon??"","onUpdate:modelValue":t[1]||(t[1]=a=>c(a.trim()===""?{icon:void 0}:{icon:a}))},null,8,["model-value"])]),_:1}),o(e(d),{orientation:"vertical"},{default:s(()=>[o(e(u),{class:"text-xs text-zinc-500"},m({default:s(()=>[f(" "+p(r("color")),1)]),_:2},[i("color")?{name:"tooltip",fn:s(()=>[o(e(_),{source:i("color"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),o(e(B),{"model-value":n.value.color??"","onUpdate:modelValue":t[2]||(t[2]=a=>c(a.trim()===""?{color:void 0}:{color:a}))},null,8,["model-value"])]),_:1})])]),_:1}))}});export{M 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-BCl1NN6k.js";import{_ as D}from"./FieldGroup.vue_vue_type_script_setup_true_lang-UfhMyymD.js";import{g as O,a as C}from"./schema-meta-CZ9yXnsa.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 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-BCl1NN6k.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};
|
|
@@ -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-BCl1NN6k.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};
|