@shwfed/config 2.5.0 → 2.5.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 +135 -21
- package/dist/module.json +1 -1
- package/dist/preview/assets/{config-C_bBX0wD.js → config-2hrRmW-I.js} +1 -1
- package/dist/preview/assets/{config-BkytEQN5.js → config-BfzthOw9.js} +1 -1
- package/dist/preview/assets/{config-Dx0zHfGt.js → config-BsgSoDjY.js} +1 -1
- package/dist/preview/assets/{config-dwcdYHd4.js → config-CaLzEMyt.js} +1 -1
- package/dist/preview/assets/{config-E-DM6b5t.js → config-DKtPKn2s.js} +1 -1
- package/dist/preview/assets/{config-DYL6kHr3.js → config-DdgZWox9.js} +1 -1
- package/dist/preview/assets/{config-PjseWUbC.js → config-h_LH1CT_.js} +1 -1
- package/dist/preview/assets/{config-Cbn8o9BY.js → config-nsiwkAq8.js} +1 -1
- package/dist/preview/assets/{config-CK011_jJ.js → config-zxVo1EOM.js} +1 -1
- package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-uJFJXxli.js → definition.vue_vue_type_script_setup_true_lang-CLpbGZ37.js} +1 -1
- package/dist/preview/assets/index-C0NJ1FZp.js +1 -0
- package/dist/preview/assets/{index-x-77enex.js → index-C5dK4QAf.js} +102 -102
- package/dist/preview/assets/{index-7MVXgV5n.css → index-nvAUAYGM.css} +1 -1
- package/dist/preview/assets/{runtime-D4_9FCLy.js → runtime-527oKJb4.js} +1 -1
- package/dist/preview/assets/{runtime-ZQryOEKm.js → runtime-BLhH77F7.js} +1 -1
- package/dist/preview/assets/{runtime-DJHpCLnr.js → runtime-BRWnAaFs.js} +1 -1
- package/dist/preview/assets/{runtime-CHLboM_z.js → runtime-CEXA5ttw.js} +1 -1
- package/dist/preview/assets/{runtime-DKq86fZU.js → runtime-CZZWuLu9.js} +1 -1
- package/dist/preview/assets/{runtime-BRMGkqSr.js → runtime-DOLtY37Y.js} +1 -1
- package/dist/preview/assets/{runtime-CeHdesjP.js → runtime-DZqXButD.js} +1 -1
- package/dist/preview/assets/{runtime-DHBTDws7.js → runtime-MJo092Ed.js} +1 -1
- package/dist/preview/assets/{runtime-DjpjaNec.js → runtime-i3-6DCWP.js} +1 -1
- package/dist/preview/index.html +2 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.d.vue.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue.d.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +2 -2
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +20 -20
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +20 -20
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.js +8 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.js +8 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/config.vue +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.js +7 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.js +7 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/config.vue +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.js +8 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/schema.js +5 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/config.vue +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.js +7 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/config.vue +1 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/config.vue +1 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.js +7 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.js +7 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.js +7 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.js +7 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue +1 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.d.vue.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue.d.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue +1 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.d.vue.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.js +8 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.js +8 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/schema.js +3 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/schema.js +3 -0
- package/dist/runtime/components/table/config.vue +4 -58
- package/dist/runtime/components/table/utils/resolve.d.ts +14 -0
- package/dist/runtime/components/table/utils/resolve.js +2 -1
- package/package.json +1 -1
- package/dist/preview/assets/index-CmPiZG_4.js +0 -1
package/dist/mcp.mjs
CHANGED
|
@@ -14094,13 +14094,13 @@ function requireDataType() {
|
|
|
14094
14094
|
}
|
|
14095
14095
|
return dataType;
|
|
14096
14096
|
}
|
|
14097
|
-
var defaults$
|
|
14097
|
+
var defaults$y = {};
|
|
14098
14098
|
var hasRequiredDefaults;
|
|
14099
14099
|
function requireDefaults() {
|
|
14100
|
-
if (hasRequiredDefaults) return defaults$
|
|
14100
|
+
if (hasRequiredDefaults) return defaults$y;
|
|
14101
14101
|
hasRequiredDefaults = 1;
|
|
14102
|
-
Object.defineProperty(defaults$
|
|
14103
|
-
defaults$
|
|
14102
|
+
Object.defineProperty(defaults$y, "__esModule", { value: true });
|
|
14103
|
+
defaults$y.assignDefaults = void 0;
|
|
14104
14104
|
const codegen_1 = /* @__PURE__ */ requireCodegen();
|
|
14105
14105
|
const util_1 = /* @__PURE__ */ requireUtil$1();
|
|
14106
14106
|
function assignDefaults(it, ty) {
|
|
@@ -14113,7 +14113,7 @@ function requireDefaults() {
|
|
|
14113
14113
|
items2.forEach((sch, i) => assignDefault(it, i, sch.default));
|
|
14114
14114
|
}
|
|
14115
14115
|
}
|
|
14116
|
-
defaults$
|
|
14116
|
+
defaults$y.assignDefaults = assignDefaults;
|
|
14117
14117
|
function assignDefault(it, prop, defaultValue) {
|
|
14118
14118
|
const { gen: gen2, compositeRule, data, opts } = it;
|
|
14119
14119
|
if (defaultValue === void 0)
|
|
@@ -14129,7 +14129,7 @@ function requireDefaults() {
|
|
|
14129
14129
|
}
|
|
14130
14130
|
gen2.if(condition, (0, codegen_1._)`${childData} = ${(0, codegen_1.stringify)(defaultValue)}`);
|
|
14131
14131
|
}
|
|
14132
|
-
return defaults$
|
|
14132
|
+
return defaults$y;
|
|
14133
14133
|
}
|
|
14134
14134
|
var keyword = {};
|
|
14135
14135
|
var code$1 = {};
|
|
@@ -82980,13 +82980,13 @@ function schema$_(configure) {
|
|
|
82980
82980
|
description: "日期范围选择输入"
|
|
82981
82981
|
});
|
|
82982
82982
|
}
|
|
82983
|
-
function defaults$
|
|
82983
|
+
function defaults$x() {
|
|
82984
82984
|
return { rangeSeparatorIcon: "fluent:arrow-right-20-regular" };
|
|
82985
82985
|
}
|
|
82986
82986
|
const __vite_glob_0_6$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82987
82987
|
__proto__: null,
|
|
82988
82988
|
compatibilityDate: compatibilityDate$_,
|
|
82989
|
-
defaults: defaults$
|
|
82989
|
+
defaults: defaults$x,
|
|
82990
82990
|
metadata: metadata$_,
|
|
82991
82991
|
presetSchema: presetSchema$4,
|
|
82992
82992
|
schema: schema$_,
|
|
@@ -83210,7 +83210,7 @@ function schema$Y(configure) {
|
|
|
83210
83210
|
description: "日期时间范围选择输入"
|
|
83211
83211
|
});
|
|
83212
83212
|
}
|
|
83213
|
-
function defaults$
|
|
83213
|
+
function defaults$w() {
|
|
83214
83214
|
return { rangeSeparatorIcon: "fluent:arrow-right-20-regular" };
|
|
83215
83215
|
}
|
|
83216
83216
|
const __vite_glob_0_8$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -83219,7 +83219,7 @@ const __vite_glob_0_8$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
83219
83219
|
TIME_GRANULARITIES: TIME_GRANULARITIES$2,
|
|
83220
83220
|
TIME_GRANULARITY_OPTIONS: TIME_GRANULARITY_OPTIONS$2,
|
|
83221
83221
|
compatibilityDate: compatibilityDate$Y,
|
|
83222
|
-
defaults: defaults$
|
|
83222
|
+
defaults: defaults$w,
|
|
83223
83223
|
metadata: metadata$Y,
|
|
83224
83224
|
presetSchema: presetSchema$2,
|
|
83225
83225
|
schema: schema$Y,
|
|
@@ -83372,7 +83372,7 @@ function schema$W(configure) {
|
|
|
83372
83372
|
description: "时间范围选择输入"
|
|
83373
83373
|
});
|
|
83374
83374
|
}
|
|
83375
|
-
function defaults$
|
|
83375
|
+
function defaults$v() {
|
|
83376
83376
|
return { rangeSeparatorIcon: "fluent:arrow-right-20-regular" };
|
|
83377
83377
|
}
|
|
83378
83378
|
const __vite_glob_0_10$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -83381,7 +83381,7 @@ const __vite_glob_0_10$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
83381
83381
|
TIME_GRANULARITIES,
|
|
83382
83382
|
TIME_GRANULARITY_OPTIONS,
|
|
83383
83383
|
compatibilityDate: compatibilityDate$W,
|
|
83384
|
-
defaults: defaults$
|
|
83384
|
+
defaults: defaults$v,
|
|
83385
83385
|
metadata: metadata$W,
|
|
83386
83386
|
schema: schema$W,
|
|
83387
83387
|
type: type$W
|
|
@@ -83548,13 +83548,13 @@ function schema$U(configure) {
|
|
|
83548
83548
|
description: "数值范围输入"
|
|
83549
83549
|
});
|
|
83550
83550
|
}
|
|
83551
|
-
function defaults$
|
|
83551
|
+
function defaults$u() {
|
|
83552
83552
|
return { rangeSeparatorIcon: "fluent:arrow-right-20-regular" };
|
|
83553
83553
|
}
|
|
83554
83554
|
const __vite_glob_0_12$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
83555
83555
|
__proto__: null,
|
|
83556
83556
|
compatibilityDate: compatibilityDate$U,
|
|
83557
|
-
defaults: defaults$
|
|
83557
|
+
defaults: defaults$u,
|
|
83558
83558
|
metadata: metadata$U,
|
|
83559
83559
|
schema: schema$U,
|
|
83560
83560
|
type: type$U
|
|
@@ -89299,7 +89299,7 @@ function schema$P(configure) {
|
|
|
89299
89299
|
description: "可新增/删除/重排的同构子表单列表"
|
|
89300
89300
|
});
|
|
89301
89301
|
}
|
|
89302
|
-
function defaults$
|
|
89302
|
+
function defaults$t() {
|
|
89303
89303
|
return {
|
|
89304
89304
|
unit: {
|
|
89305
89305
|
fields: [],
|
|
@@ -89310,7 +89310,7 @@ function defaults$g() {
|
|
|
89310
89310
|
const __vite_glob_0_17$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
89311
89311
|
__proto__: null,
|
|
89312
89312
|
compatibilityDate: compatibilityDate$P,
|
|
89313
|
-
defaults: defaults$
|
|
89313
|
+
defaults: defaults$t,
|
|
89314
89314
|
metadata: metadata$P,
|
|
89315
89315
|
schema: schema$P,
|
|
89316
89316
|
type: type$P
|
|
@@ -90999,6 +90999,14 @@ function schema$M(configure) {
|
|
|
90999
90999
|
...actionFieldsForColumn
|
|
91000
91000
|
}).annotations({ title: "ActionsRenderer", description: "操作渲染器" });
|
|
91001
91001
|
}
|
|
91002
|
+
function defaults$s() {
|
|
91003
|
+
return {
|
|
91004
|
+
title: [{ locale: "zh", message: "" }],
|
|
91005
|
+
size: 200,
|
|
91006
|
+
groups: [],
|
|
91007
|
+
items: []
|
|
91008
|
+
};
|
|
91009
|
+
}
|
|
91002
91010
|
function toColumnDef$t(value, { getLocaleText }) {
|
|
91003
91011
|
return {
|
|
91004
91012
|
header: value.title ? getLocaleText(value.title) : void 0,
|
|
@@ -91013,6 +91021,7 @@ function toColumnDef$t(value, { getLocaleText }) {
|
|
|
91013
91021
|
const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91014
91022
|
__proto__: null,
|
|
91015
91023
|
compatibilityDate: compatibilityDate$M,
|
|
91024
|
+
defaults: defaults$s,
|
|
91016
91025
|
metadata: metadata$M,
|
|
91017
91026
|
registerRowVariables,
|
|
91018
91027
|
schema: schema$M,
|
|
@@ -91039,6 +91048,14 @@ function schema$L(configure) {
|
|
|
91039
91048
|
})
|
|
91040
91049
|
}).annotations({ title: "DateRenderer", description: "日期渲染器" });
|
|
91041
91050
|
}
|
|
91051
|
+
function defaults$r() {
|
|
91052
|
+
return {
|
|
91053
|
+
title: [{ locale: "zh", message: "" }],
|
|
91054
|
+
accessor: "",
|
|
91055
|
+
format: "yyyy-MM-dd",
|
|
91056
|
+
size: 120
|
|
91057
|
+
};
|
|
91058
|
+
}
|
|
91042
91059
|
function toColumnDef$s(value, { getLocaleText, $cel, inheritedContext }) {
|
|
91043
91060
|
return {
|
|
91044
91061
|
header: getLocaleText(value.title),
|
|
@@ -91061,6 +91078,7 @@ function toColumnDef$s(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
91061
91078
|
const __vite_glob_0_1$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91062
91079
|
__proto__: null,
|
|
91063
91080
|
compatibilityDate: compatibilityDate$L,
|
|
91081
|
+
defaults: defaults$r,
|
|
91064
91082
|
metadata: metadata$L,
|
|
91065
91083
|
schema: schema$L,
|
|
91066
91084
|
toColumnDef: toColumnDef$s,
|
|
@@ -91090,6 +91108,13 @@ function schema$K(configure) {
|
|
|
91090
91108
|
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "center" })
|
|
91091
91109
|
}).annotations({ title: "IconRenderer", description: "图标渲染器" });
|
|
91092
91110
|
}
|
|
91111
|
+
function defaults$q() {
|
|
91112
|
+
return {
|
|
91113
|
+
title: [{ locale: "zh", message: "" }],
|
|
91114
|
+
accessor: "",
|
|
91115
|
+
size: 120
|
|
91116
|
+
};
|
|
91117
|
+
}
|
|
91093
91118
|
function toColumnDef$r(value, { getLocaleText, $cel, inheritedContext }) {
|
|
91094
91119
|
return {
|
|
91095
91120
|
header: getLocaleText(value.title),
|
|
@@ -91112,6 +91137,7 @@ function toColumnDef$r(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
91112
91137
|
const __vite_glob_0_2$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91113
91138
|
__proto__: null,
|
|
91114
91139
|
compatibilityDate: compatibilityDate$K,
|
|
91140
|
+
defaults: defaults$q,
|
|
91115
91141
|
metadata: metadata$K,
|
|
91116
91142
|
schema: schema$K,
|
|
91117
91143
|
toColumnDef: toColumnDef$r,
|
|
@@ -91155,6 +91181,13 @@ function schema$J(configure) {
|
|
|
91155
91181
|
}))
|
|
91156
91182
|
}).annotations({ title: "MarkdownRenderer", description: "MD" });
|
|
91157
91183
|
}
|
|
91184
|
+
function defaults$p() {
|
|
91185
|
+
return {
|
|
91186
|
+
title: [{ locale: "zh", message: "" }],
|
|
91187
|
+
markdown: [{ locale: "zh", message: "" }],
|
|
91188
|
+
size: 120
|
|
91189
|
+
};
|
|
91190
|
+
}
|
|
91158
91191
|
function toColumnDef$q(value, { getLocaleText }) {
|
|
91159
91192
|
return {
|
|
91160
91193
|
header: getLocaleText(value.title),
|
|
@@ -91169,6 +91202,7 @@ function toColumnDef$q(value, { getLocaleText }) {
|
|
|
91169
91202
|
const __vite_glob_0_3$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91170
91203
|
__proto__: null,
|
|
91171
91204
|
compatibilityDate: compatibilityDate$J,
|
|
91205
|
+
defaults: defaults$p,
|
|
91172
91206
|
metadata: metadata$J,
|
|
91173
91207
|
schema: schema$J,
|
|
91174
91208
|
toColumnDef: toColumnDef$q,
|
|
@@ -91203,6 +91237,14 @@ function schema$I(configure) {
|
|
|
91203
91237
|
}))
|
|
91204
91238
|
}).annotations({ title: "NumberRenderer", description: "数值渲染器" });
|
|
91205
91239
|
}
|
|
91240
|
+
function defaults$o() {
|
|
91241
|
+
return {
|
|
91242
|
+
title: [{ locale: "zh", message: "" }],
|
|
91243
|
+
accessor: "",
|
|
91244
|
+
size: 120,
|
|
91245
|
+
align: "right"
|
|
91246
|
+
};
|
|
91247
|
+
}
|
|
91206
91248
|
function toColumnDef$p(value, { getLocaleText, $cel, inheritedContext }) {
|
|
91207
91249
|
return {
|
|
91208
91250
|
header: getLocaleText(value.title),
|
|
@@ -91225,6 +91267,7 @@ function toColumnDef$p(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
91225
91267
|
const __vite_glob_0_4$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91226
91268
|
__proto__: null,
|
|
91227
91269
|
compatibilityDate: compatibilityDate$I,
|
|
91270
|
+
defaults: defaults$o,
|
|
91228
91271
|
metadata: metadata$I,
|
|
91229
91272
|
schema: schema$I,
|
|
91230
91273
|
toColumnDef: toColumnDef$p,
|
|
@@ -91267,6 +91310,11 @@ function schema$H(configure) {
|
|
|
91267
91310
|
})
|
|
91268
91311
|
}).annotations({ title: "SelectRenderer", description: "选择渲染器" });
|
|
91269
91312
|
}
|
|
91313
|
+
function defaults$n() {
|
|
91314
|
+
return {
|
|
91315
|
+
mode: "checkbox"
|
|
91316
|
+
};
|
|
91317
|
+
}
|
|
91270
91318
|
function toColumnDef$o(value) {
|
|
91271
91319
|
return {
|
|
91272
91320
|
header: (ctx) => vueExports.h(__vite_glob_2_5, { column: value, ctx }),
|
|
@@ -91279,6 +91327,7 @@ function toColumnDef$o(value) {
|
|
|
91279
91327
|
const __vite_glob_0_5$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91280
91328
|
__proto__: null,
|
|
91281
91329
|
compatibilityDate: compatibilityDate$H,
|
|
91330
|
+
defaults: defaults$n,
|
|
91282
91331
|
metadata: metadata$H,
|
|
91283
91332
|
schema: schema$H,
|
|
91284
91333
|
toColumnDef: toColumnDef$o,
|
|
@@ -91311,6 +91360,13 @@ function schema$G(configure) {
|
|
|
91311
91360
|
}))
|
|
91312
91361
|
}).annotations({ title: "TextRenderer", description: "文本渲染器" });
|
|
91313
91362
|
}
|
|
91363
|
+
function defaults$m() {
|
|
91364
|
+
return {
|
|
91365
|
+
title: [{ locale: "zh", message: "" }],
|
|
91366
|
+
accessor: "",
|
|
91367
|
+
size: 120
|
|
91368
|
+
};
|
|
91369
|
+
}
|
|
91314
91370
|
function toColumnDef$n(value, { getLocaleText, $cel, inheritedContext }) {
|
|
91315
91371
|
return {
|
|
91316
91372
|
header: getLocaleText(value.title),
|
|
@@ -91334,6 +91390,7 @@ function toColumnDef$n(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
91334
91390
|
const __vite_glob_0_6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91335
91391
|
__proto__: null,
|
|
91336
91392
|
compatibilityDate: compatibilityDate$G,
|
|
91393
|
+
defaults: defaults$m,
|
|
91337
91394
|
metadata: metadata$G,
|
|
91338
91395
|
schema: schema$G,
|
|
91339
91396
|
toColumnDef: toColumnDef$n,
|
|
@@ -91385,6 +91442,13 @@ function schema$F(configure) {
|
|
|
91385
91442
|
}))
|
|
91386
91443
|
}).annotations({ title: "SwitchRenderer", description: "开关渲染器(可编辑)" });
|
|
91387
91444
|
}
|
|
91445
|
+
function defaults$l() {
|
|
91446
|
+
return {
|
|
91447
|
+
title: [{ locale: "zh", message: "" }],
|
|
91448
|
+
accessor: "",
|
|
91449
|
+
size: 120
|
|
91450
|
+
};
|
|
91451
|
+
}
|
|
91388
91452
|
const migrateFrom$e = [
|
|
91389
91453
|
{ type: "com.shwfed.table.column.switch", compatibilityDate: compatibilityDate$F }
|
|
91390
91454
|
];
|
|
@@ -91420,6 +91484,7 @@ function toColumnDef$m(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
91420
91484
|
const __vite_glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91421
91485
|
__proto__: null,
|
|
91422
91486
|
compatibilityDate: compatibilityDate$F,
|
|
91487
|
+
defaults: defaults$l,
|
|
91423
91488
|
metadata: metadata$F,
|
|
91424
91489
|
migrate: migrate$e,
|
|
91425
91490
|
migrateFrom: migrateFrom$e,
|
|
@@ -91849,6 +91914,13 @@ function schema$C(configure) {
|
|
|
91849
91914
|
derived: derivedRowField(configure, "number")
|
|
91850
91915
|
}).annotations({ title: "NumberInputRenderer", description: "数值输入渲染器(可编辑)" });
|
|
91851
91916
|
}
|
|
91917
|
+
function defaults$k() {
|
|
91918
|
+
return {
|
|
91919
|
+
title: [{ locale: "zh", message: "" }],
|
|
91920
|
+
binding: "",
|
|
91921
|
+
size: 120
|
|
91922
|
+
};
|
|
91923
|
+
}
|
|
91852
91924
|
function toColumnDef$j(value, { getLocaleText }) {
|
|
91853
91925
|
return {
|
|
91854
91926
|
header: editableHeader(getLocaleText(value.title)),
|
|
@@ -91873,6 +91945,7 @@ function toColumnDef$j(value, { getLocaleText }) {
|
|
|
91873
91945
|
const __vite_glob_0_10 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91874
91946
|
__proto__: null,
|
|
91875
91947
|
compatibilityDate: compatibilityDate$C,
|
|
91948
|
+
defaults: defaults$k,
|
|
91876
91949
|
metadata: metadata$C,
|
|
91877
91950
|
schema: schema$C,
|
|
91878
91951
|
toColumnDef: toColumnDef$j,
|
|
@@ -91913,6 +91986,13 @@ function schema$B(configure) {
|
|
|
91913
91986
|
derived: derivedRowField(configure, "bool")
|
|
91914
91987
|
}).annotations({ title: "SwitchRenderer", description: "开关渲染器(可编辑、本地)" });
|
|
91915
91988
|
}
|
|
91989
|
+
function defaults$j() {
|
|
91990
|
+
return {
|
|
91991
|
+
title: [{ locale: "zh", message: "" }],
|
|
91992
|
+
binding: "",
|
|
91993
|
+
size: 120
|
|
91994
|
+
};
|
|
91995
|
+
}
|
|
91916
91996
|
const migrateFrom$d = [
|
|
91917
91997
|
{ type: "com.shwfed.table.column.switch", compatibilityDate: compatibilityDate$B }
|
|
91918
91998
|
];
|
|
@@ -91948,6 +92028,7 @@ function toColumnDef$i(value, { getLocaleText }) {
|
|
|
91948
92028
|
const __vite_glob_0_11 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91949
92029
|
__proto__: null,
|
|
91950
92030
|
compatibilityDate: compatibilityDate$B,
|
|
92031
|
+
defaults: defaults$j,
|
|
91951
92032
|
metadata: metadata$B,
|
|
91952
92033
|
migrate: migrate$d,
|
|
91953
92034
|
migrateFrom: migrateFrom$d,
|
|
@@ -92049,6 +92130,13 @@ function schema$z(configure) {
|
|
|
92049
92130
|
derived: derivedRowField(configure, "string")
|
|
92050
92131
|
}).annotations({ title: "TextInputRenderer", description: "文本输入渲染器(可编辑)" });
|
|
92051
92132
|
}
|
|
92133
|
+
function defaults$i() {
|
|
92134
|
+
return {
|
|
92135
|
+
title: [{ locale: "zh", message: "" }],
|
|
92136
|
+
binding: "",
|
|
92137
|
+
size: 120
|
|
92138
|
+
};
|
|
92139
|
+
}
|
|
92052
92140
|
function toColumnDef$g(value, { getLocaleText }) {
|
|
92053
92141
|
return {
|
|
92054
92142
|
header: editableHeader(getLocaleText(value.title)),
|
|
@@ -92070,6 +92158,7 @@ function toColumnDef$g(value, { getLocaleText }) {
|
|
|
92070
92158
|
const __vite_glob_0_13 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
92071
92159
|
__proto__: null,
|
|
92072
92160
|
compatibilityDate: compatibilityDate$z,
|
|
92161
|
+
defaults: defaults$i,
|
|
92073
92162
|
metadata: metadata$z,
|
|
92074
92163
|
schema: schema$z,
|
|
92075
92164
|
toColumnDef: toColumnDef$g,
|
|
@@ -93671,7 +93760,7 @@ function schema$o(configure) {
|
|
|
93671
93760
|
})
|
|
93672
93761
|
}).annotations({ title: "TreeComboboxMultiRenderer", description: "下拉树多选渲染器(可编辑)" });
|
|
93673
93762
|
}
|
|
93674
|
-
function defaults$
|
|
93763
|
+
function defaults$h() {
|
|
93675
93764
|
return {
|
|
93676
93765
|
dataSource: { data: "[]" },
|
|
93677
93766
|
nodeKey: "string(node.id)",
|
|
@@ -93700,7 +93789,7 @@ function toColumnDef$5(value, { getLocaleText }) {
|
|
|
93700
93789
|
const __vite_glob_0_24$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
93701
93790
|
__proto__: null,
|
|
93702
93791
|
compatibilityDate: compatibilityDate$o,
|
|
93703
|
-
defaults: defaults$
|
|
93792
|
+
defaults: defaults$h,
|
|
93704
93793
|
metadata: metadata$o,
|
|
93705
93794
|
schema: schema$o,
|
|
93706
93795
|
toColumnDef: toColumnDef$5,
|
|
@@ -93805,7 +93894,7 @@ function schema$n(configure) {
|
|
|
93805
93894
|
})
|
|
93806
93895
|
}).annotations({ title: "TreeComboboxSingleRenderer", description: "下拉树单选渲染器(可编辑)" });
|
|
93807
93896
|
}
|
|
93808
|
-
function defaults$
|
|
93897
|
+
function defaults$g() {
|
|
93809
93898
|
return {
|
|
93810
93899
|
dataSource: { data: "[]" },
|
|
93811
93900
|
nodeKey: "string(node.id)",
|
|
@@ -93833,7 +93922,7 @@ function toColumnDef$4(value, { getLocaleText }) {
|
|
|
93833
93922
|
const __vite_glob_0_25$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
93834
93923
|
__proto__: null,
|
|
93835
93924
|
compatibilityDate: compatibilityDate$n,
|
|
93836
|
-
defaults: defaults$
|
|
93925
|
+
defaults: defaults$g,
|
|
93837
93926
|
metadata: metadata$n,
|
|
93838
93927
|
schema: schema$n,
|
|
93839
93928
|
toColumnDef: toColumnDef$4,
|
|
@@ -94032,6 +94121,14 @@ function schema$m(configure) {
|
|
|
94032
94121
|
description: "下拉多选渲染器"
|
|
94033
94122
|
});
|
|
94034
94123
|
}
|
|
94124
|
+
function defaults$f() {
|
|
94125
|
+
return {
|
|
94126
|
+
title: [{ locale: "zh", message: "" }],
|
|
94127
|
+
size: 200,
|
|
94128
|
+
write: { kind: "binding", binding: "" },
|
|
94129
|
+
options: { kind: "static", items: [] }
|
|
94130
|
+
};
|
|
94131
|
+
}
|
|
94035
94132
|
const migrateFrom$8 = [
|
|
94036
94133
|
{ type: "com.shwfed.table.column.combobox-multi", compatibilityDate: "2026-05-26" },
|
|
94037
94134
|
{ type: "com.shwfed.table.column.combobox-multi.remote", compatibilityDate: "2026-05-26" }
|
|
@@ -94105,6 +94202,7 @@ function toColumnDef$3(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
94105
94202
|
const __vite_glob_0_26$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
94106
94203
|
__proto__: null,
|
|
94107
94204
|
compatibilityDate: compatibilityDate$m,
|
|
94205
|
+
defaults: defaults$f,
|
|
94108
94206
|
itemSchema: itemSchema$3,
|
|
94109
94207
|
metadata: metadata$m,
|
|
94110
94208
|
migrate: migrate$8,
|
|
@@ -94309,6 +94407,14 @@ function schema$l(configure) {
|
|
|
94309
94407
|
description: "下拉单选渲染器"
|
|
94310
94408
|
});
|
|
94311
94409
|
}
|
|
94410
|
+
function defaults$e() {
|
|
94411
|
+
return {
|
|
94412
|
+
title: [{ locale: "zh", message: "" }],
|
|
94413
|
+
size: 200,
|
|
94414
|
+
write: { kind: "binding", binding: "" },
|
|
94415
|
+
options: { kind: "static", items: [] }
|
|
94416
|
+
};
|
|
94417
|
+
}
|
|
94312
94418
|
const migrateFrom$7 = [
|
|
94313
94419
|
{ type: "com.shwfed.table.column.combobox-single", compatibilityDate: "2026-05-26" },
|
|
94314
94420
|
{ type: "com.shwfed.table.column.combobox-single.remote", compatibilityDate: "2026-05-26" }
|
|
@@ -94382,6 +94488,7 @@ function toColumnDef$2(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
94382
94488
|
const __vite_glob_0_27$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
94383
94489
|
__proto__: null,
|
|
94384
94490
|
compatibilityDate: compatibilityDate$l,
|
|
94491
|
+
defaults: defaults$e,
|
|
94385
94492
|
itemSchema: itemSchema$2,
|
|
94386
94493
|
metadata: metadata$l,
|
|
94387
94494
|
migrate: migrate$7,
|
|
@@ -94506,6 +94613,9 @@ function schema$k(configure) {
|
|
|
94506
94613
|
}
|
|
94507
94614
|
function defaults$d() {
|
|
94508
94615
|
return {
|
|
94616
|
+
title: [{ locale: "zh", message: "" }],
|
|
94617
|
+
binding: "",
|
|
94618
|
+
size: 200,
|
|
94509
94619
|
dataSource: { data: "[]" },
|
|
94510
94620
|
nodeKey: "string(node.id)",
|
|
94511
94621
|
nodeChildren: "has(node.children) ? node.children : null",
|
|
@@ -94660,6 +94770,9 @@ function schema$j(configure) {
|
|
|
94660
94770
|
}
|
|
94661
94771
|
function defaults$c() {
|
|
94662
94772
|
return {
|
|
94773
|
+
title: [{ locale: "zh", message: "" }],
|
|
94774
|
+
binding: "",
|
|
94775
|
+
size: 200,
|
|
94663
94776
|
dataSource: { data: "[]" },
|
|
94664
94777
|
nodeKey: "string(node.id)",
|
|
94665
94778
|
nodeChildren: "has(node.children) ? node.children : null",
|
|
@@ -94868,7 +94981,8 @@ const COLUMNS = registry$2.ENTRIES.map((e) => ({
|
|
|
94868
94981
|
deprecated: e.deprecated,
|
|
94869
94982
|
...e.supersededBy !== void 0 ? { supersededBy: e.supersededBy } : {},
|
|
94870
94983
|
...e.module.migrate !== void 0 ? { migrate: e.module.migrate } : {},
|
|
94871
|
-
...e.module.migrateFrom !== void 0 ? { migrateFrom: e.module.migrateFrom } : {}
|
|
94984
|
+
...e.module.migrateFrom !== void 0 ? { migrateFrom: e.module.migrateFrom } : {},
|
|
94985
|
+
...e.module.defaults !== void 0 ? { defaults: e.module.defaults } : {}
|
|
94872
94986
|
}));
|
|
94873
94987
|
(() => {
|
|
94874
94988
|
const map2 = /* @__PURE__ */ new Map();
|
package/dist/module.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as x,b as k,aN as g,c as S,g as e,w as o,u as t,o as V,h as r,i as m,j as d,t as f,k as p,a5 as w,_,m as $,x as h,y}from"./index-
|
|
1
|
+
import{d as x,b as k,aN as g,c as S,g as e,w as o,u as t,o as V,h as r,i as m,j as d,t as f,k as p,a5 as w,_,m as $,x as h,y}from"./index-C5dK4QAf.js";const z={class:"flex flex-col gap-4"},C=x({name:"ShwfedMarkdownItemConfig",__name:"config",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(v){const a=k(v,"modelValue"),c=g(),u=l=>h(c,l)??l,s=l=>y(c,l);return(l,n)=>(V(),S("div",z,[e(t(_),{orientation:"vertical"},{default:o(()=>[e(t(r),{class:"text-xs text-zinc-500"},m({default:o(()=>[d(" "+f(u("name")),1)]),_:2},[s("name")?{name:"tooltip",fn:o(()=>[e(t(p),{source:s("name"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),e(t(w),{"model-value":a.value.name,placeholder:"仅用于编辑器内识别","onUpdate:modelValue":n[0]||(n[0]=i=>a.value={...a.value,name:String(i)})},null,8,["model-value"])]),_:1}),e(t(_),{orientation:"vertical"},{default:o(()=>[e(t(r),{class:"text-xs text-zinc-500"},m({default:o(()=>[d(" "+f(u("content")),1)]),_:2},[s("content")?{name:"tooltip",fn:o(()=>[e(t(p),{source:s("content"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),e(t($),{markdown:"",multiline:"","model-value":a.value.content,"onUpdate:modelValue":n[1]||(n[1]=i=>a.value={...a.value,content:i})},null,8,["model-value"])]),_:1})]))}});export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as V,b as w,z as F,c as v,g as e,w as n,u as s,f as _,F as U,v as j,o as E,h as c,i as u,j as d,t as p,k as m,l as f,_ as x,T as k,x as N,y as R}from"./index-
|
|
1
|
+
import{d as V,b as w,z as F,c as v,g as e,w as n,u as s,f as _,F as U,v as j,o as E,h as c,i as u,j as d,t as p,k as m,l as f,_ as x,T as k,x as N,y as R}from"./index-C5dK4QAf.js";const D={class:"flex flex-col gap-3"},H={class:"flex items-start gap-2"},$={class:"grid grid-cols-2 gap-3"},B=V({name:"ShwfedHttpRequestActionConfig",__name:"config",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(h){const o=w(h,"modelValue"),g=F(()=>{}),i=t=>N(g,t)??t,r=t=>R(g,t),S=["onSuccess","onWarning","onError","onInfo"];function T(t){const l={...o.value};t.length===0?delete l.messageExpression:l.messageExpression=t,o.value=l}function b(t){const l={...o.value};t.length===0?delete l.resultExpression:l.resultExpression=t,o.value=l}function y(t,l){const a={...o.value};l.length===0?Reflect.deleteProperty(a,t):a[t]=l,o.value=a}return(t,l)=>(E(),v("div",D,[e(s(x),{orientation:"vertical"},{default:n(()=>[e(s(c),{class:"text-xs text-zinc-500"},u({default:n(()=>[d(" "+p(i("expression")),1)]),_:2},[r("expression")?{name:"tooltip",fn:n(()=>[e(s(m),{source:r("expression"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),e(s(f),{"model-value":o.value.expression,multiline:"",placeholder:"例:http.post('/api/foo').body({ id: row.id })","result-type":"HttpRequest",class:"min-h-16","onUpdate:modelValue":l[0]||(l[0]=a=>o.value={...o.value,expression:a})},null,8,["model-value"])]),_:1}),_("div",H,[e(s(x),{orientation:"vertical",class:"flex-1 basis-0 min-w-0"},{default:n(()=>[e(s(c),{class:"text-xs text-zinc-500"},u({default:n(()=>[d(" "+p(i("messageExpression")),1)]),_:2},[r("messageExpression")?{name:"tooltip",fn:n(()=>[e(s(m),{source:r("messageExpression"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),e(s(f),{"model-value":o.value.messageExpression??"",placeholder:"例:string(json.message)","result-type":"string","extra-vars":{json:{type:"dyn",label:"HTTP 响应体(已解析 JSON)"}},"onUpdate:modelValue":T},null,8,["model-value"])]),_:1}),e(s(x),{orientation:"vertical",class:"flex-1 basis-0 min-w-0"},{default:n(()=>[e(s(c),{class:"text-xs text-zinc-500"},u({default:n(()=>[d(" "+p(i("resultExpression")),1)]),_:2},[r("resultExpression")?{name:"tooltip",fn:n(()=>[e(s(m),{source:r("resultExpression"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),e(s(f),{"model-value":o.value.resultExpression??"",placeholder:"例:json.code == 0 ? 'success' : 'error'","result-type":"string","extra-vars":{json:{type:"dyn",label:"HTTP 响应体(已解析 JSON)"}},"onUpdate:modelValue":b},null,8,["model-value"])]),_:1})]),_("div",$,[(E(),v(U,null,j(S,a=>e(s(x),{key:a,orientation:"vertical",class:"min-w-0"},{default:n(()=>[e(s(c),{class:"text-xs text-zinc-500"},u({default:n(()=>[d(" "+p(i(a)),1)]),_:2},[r(a)?{name:"tooltip",fn:n(()=>[e(s(m),{source:r(a),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),e(k,{triggers:o.value[a]??[],"onUpdate:triggers":z=>y(a,z)},null,8,["triggers","onUpdate:triggers"])]),_:2},1024)),64))])]))}});export{B as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as z,o as y,c as w,r as T,n as V,u as e,a as U,b as $,s as j,e as F,w as l,f as v,g as s,_ as d,h as u,i as p,j as m,t as f,k as g,l as b,m as h,p as B,q as C,F as N,v as q,T as D,x as H,y as O}from"./index-
|
|
1
|
+
import{d as z,o as y,c as w,r as T,n as V,u as e,a as U,b as $,s as j,e as F,w as l,f as v,g as s,_ as d,h as u,i as p,j as m,t as f,k as g,l as b,m as h,p as B,q as C,F as N,v as q,T as D,x as H,y as O}from"./index-C5dK4QAf.js";const R=z({__name:"FieldGroup",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(_){const r=_;return(x,i)=>(y(),w("div",{"data-slot":"field-group",class:V(e(U)("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",r.class))},[T(x.$slots,"default")],2))}}),L={class:"grid grid-cols-2 gap-4"},P={class:"grid grid-cols-2 gap-4"},A={class:"flex items-start gap-2"},I={class:"grid grid-cols-2 gap-3"},M=z({name:"ShwfedHttpRequestConfirmActionConfig",__name:"config",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(_){const r=$(_,"modelValue"),x=j(()=>{}),i=n=>H(x,n)??n,a=n=>O(x,n);function c(n){const t={...r.value,...n};for(const[o,k]of Object.entries(n))k===void 0&&Reflect.deleteProperty(t,o);r.value=t}const E=["onSuccess","onWarning","onError","onInfo"];function S(n,t){c({[n]:t.length===0?void 0:t})}return(n,t)=>(y(),F(e(R),null,{default:l(()=>[v("div",L,[s(e(d),{orientation:"vertical"},{default:l(()=>[s(e(u),{class:"text-xs text-zinc-500"},p({default:l(()=>[m(" "+f(i("expression")),1)]),_:2},[a("expression")?{name:"tooltip",fn:l(()=>[s(e(g),{source:a("expression"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),s(e(b),{"model-value":r.value.expression,multiline:"",placeholder:"例:http.post('/api/foo').body({ id: row.id })","result-type":"HttpRequest",class:"min-h-16","onUpdate:modelValue":t[0]||(t[0]=o=>c({expression:o}))},null,8,["model-value"])]),_:1}),s(e(d),{orientation:"vertical"},{default:l(()=>[s(e(u),{class:"text-xs text-zinc-500"},p({default:l(()=>[m(" "+f(i("markdown")),1)]),_:2},[a("markdown")?{name:"tooltip",fn:l(()=>[s(e(g),{source:a("markdown"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),s(e(h),{markdown:"","model-value":r.value.markdown,"onUpdate:modelValue":t[1]||(t[1]=o=>c({markdown:o}))},null,8,["model-value"])]),_:1})]),v("div",P,[s(e(d),{orientation:"vertical"},{default:l(()=>[s(e(u),{class:"text-xs text-zinc-500"},p({default:l(()=>[m(" "+f(i("icon")),1)]),_:2},[a("icon")?{name:"tooltip",fn:l(()=>[s(e(g),{source:a("icon"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),s(e(B),{"model-value":r.value.icon??"","onUpdate:modelValue":t[2]||(t[2]=o=>c(o.trim()===""?{icon:void 0}:{icon:o}))},null,8,["model-value"])]),_:1}),s(e(d),{orientation:"vertical"},{default:l(()=>[s(e(u),{class:"text-xs text-zinc-500"},p({default:l(()=>[m(" "+f(i("color")),1)]),_:2},[a("color")?{name:"tooltip",fn:l(()=>[s(e(g),{source:a("color"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),s(e(C),{"model-value":r.value.color??"","onUpdate:modelValue":t[3]||(t[3]=o=>c(o.trim()===""?{color:void 0}:{color:o}))},null,8,["model-value"])]),_:1})]),v("div",A,[s(e(d),{orientation:"vertical",class:"flex-1 basis-0 min-w-0"},{default:l(()=>[s(e(u),{class:"text-xs text-zinc-500"},p({default:l(()=>[m(" "+f(i("messageExpression")),1)]),_:2},[a("messageExpression")?{name:"tooltip",fn:l(()=>[s(e(g),{source:a("messageExpression"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),s(e(b),{"model-value":r.value.messageExpression??"",placeholder:"例:string(json.message)","result-type":"string","extra-vars":{json:{type:"dyn",label:"HTTP 响应体(已解析 JSON)"}},"onUpdate:modelValue":t[4]||(t[4]=o=>c({messageExpression:o===""?void 0:o}))},null,8,["model-value"])]),_:1}),s(e(d),{orientation:"vertical",class:"flex-1 basis-0 min-w-0"},{default:l(()=>[s(e(u),{class:"text-xs text-zinc-500"},p({default:l(()=>[m(" "+f(i("resultExpression")),1)]),_:2},[a("resultExpression")?{name:"tooltip",fn:l(()=>[s(e(g),{source:a("resultExpression"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),s(e(b),{"model-value":r.value.resultExpression??"",placeholder:"例:json.code == 0 ? 'success' : 'error'","result-type":"string","extra-vars":{json:{type:"dyn",label:"HTTP 响应体(已解析 JSON)"}},"onUpdate:modelValue":t[5]||(t[5]=o=>c({resultExpression:o===""?void 0:o}))},null,8,["model-value"])]),_:1})]),v("div",I,[(y(),w(N,null,q(E,o=>s(e(d),{key:o,orientation:"vertical",class:"min-w-0"},{default:l(()=>[s(e(u),{class:"text-xs text-zinc-500"},p({default:l(()=>[m(" "+f(i(o)),1)]),_:2},[a(o)?{name:"tooltip",fn:l(()=>[s(e(g),{source:a(o),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),s(D,{triggers:r.value[o]??[],"onUpdate:triggers":k=>S(o,k)},null,8,["triggers","onUpdate:triggers"])]),_:2},1024)),64))])]),_:1}))}});export{M as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as v,b as S,ad as h,o as k,c as y,g as s,w as l,u as t,h as r,i as u,j as d,t as p,k as m,l as T,_ as f,T as V,x as w,y as z}from"./index-
|
|
1
|
+
import{d as v,b as S,ad as h,o as k,c as y,g as s,w as l,u as t,h as r,i as u,j as d,t as p,k as m,l as T,_ as f,T as V,x as w,y as z}from"./index-C5dK4QAf.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=>w(i,e)??e,n=e=>z(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)=>(k(),y("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(T),{"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(V,{triggers:o.value.onSuccess??[],"onUpdate:triggers":g},null,8,["triggers"])]),_:1})]))}});export{C as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as J,b as ee,P as le,Q as te,R as I,S as A,c as v,e as F,g as n,w as s,u as l,U as ae,V as oe,F as R,W as ne,t as p,f as c,X as W,Y as H,Z as se,$ as x,a0 as ie,a1 as h,o as d,a2 as j,a3 as K,I as O,a4 as Y,h as B,i as b,j as U,k as V,m as de,_,a5 as P,x as ue,y as ve,a6 as ce,a7 as re,a8 as me,a9 as fe}from"./index-
|
|
1
|
+
import{d as J,b as ee,P as le,Q as te,R as I,S as A,c as v,e as F,g as n,w as s,u as l,U as ae,V as oe,F as R,W as ne,t as p,f as c,X as W,Y as H,Z as se,$ as x,a0 as ie,a1 as h,o as d,a2 as j,a3 as K,I as O,a4 as Y,h as B,i as b,j as U,k as V,m as de,_,a5 as P,x as ue,y as ve,a6 as ce,a7 as re,a8 as me,a9 as fe}from"./index-C5dK4QAf.js";const pe={key:0,class:"flex min-h-96 items-center justify-center p-8 text-sm text-zinc-400"},xe={key:1},ke={key:2,class:"p-6 text-sm text-red-500"},ye={key:2,class:"flex flex-col gap-4"},ge={class:"grid grid-cols-2 gap-4"},Ie={key:0,class:"flex gap-2 min-h-96"},Be={class:"flex w-56 shrink-0 flex-col"},be={class:"flex flex-1 flex-col gap-2"},Ue={class:"flex-1"},Ve={key:1,class:"flex flex-col gap-2"},_e={class:"h-96"},De=J({name:"ShwfedModalLayoutActionConfig",__name:"config",props:se({configure:{type:Function}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(L){const i=ee(L,"modelValue"),X=L,D=x(()=>X.configure??(()=>{})),E=le(()=>{}),k=a=>ue(E,a)??a,r=a=>ve(E,a),q=x({get:()=>i.value.slot??ce(),set:a=>{i.value={...i.value,slot:a}}}),t=te(q,{configure:D.value});function Q(a){i.value={...i.value,modalTitle:a}}function S(a,e){const o=e.trim(),g={...i.value};o.length===0?Reflect.deleteProperty(g,a):g[a]=o,i.value=g}function T(){const a=t.layouts.value;t.layouts.value=[...a,{name:"新布局",layout:{columns:1,placements:{}}}],t.activeLayoutIndex.value=a.length}function M(a,e){t.addBlock(a,e)}function z(a){t.removeBlock(a)}function $(a){t.removeBlocks(a)}const u=ie(null),m=x(()=>{const a=u.value;return a?t.blocks.value.find(e=>e.id===a)??null:null}),w=x(()=>{const a=m.value;return a?re()?.(a.type,a.compatibilityDate)??null:null});function C(a){u.value=a}function Z(){u.value=null}I(()=>t.blocks.value.map(a=>a.id),a=>{const e=u.value;e&&!a.includes(e)&&(u.value=null)});function G(a){const e=u.value;e&&t.updateBlock(e,a)}const N=h(me,null);if(N){const a=N.add();I(m,e=>{e?(a.label.value=t.getBlockLabel(e),a.back.value=Z):(a.label.value=null,a.back.value=null)},{immediate:!0}),A(()=>{a.dispose()})}const f=h(fe,null),y=x(()=>f?.target.value??null);return I(u,a=>{f?.drilled&&(f.drilled.value=!!a)},{immediate:!0}),A(()=>{f?.drilled&&(f.drilled.value=!1)}),(a,e)=>(d(),v(R,null,[y.value&&!u.value?(d(),F(ae,{key:0,to:y.value},[n(l(K),{class:"flex-1"},{default:s(()=>[n(j,{"model-value":l(t).layouts.value,"active-index":l(t).activeLayoutIndex.value,"onUpdate:modelValue":e[0]||(e[0]=o=>{l(t).layouts.value=o}),"onUpdate:activeIndex":e[1]||(e[1]=o=>{l(t).activeLayoutIndex.value=o})},null,8,["model-value","active-index"])]),_:1}),n(l(Y),{variant:"ghost",size:"sm",onClick:e[2]||(e[2]=o=>T())},{default:s(()=>[n(l(O),{icon:"fluent:add-20-regular",class:"size-4"}),e[17]||(e[17]=c("span",null,"新增布局",-1))]),_:1})],8,["to"])):oe("",!0),u.value?(d(),v(R,{key:1},[m.value?w.value?(d(),v("div",xe,[(d(),F(ne(w.value.config),{"model-value":m.value,configure:D.value,"onUpdate:modelValue":e[3]||(e[3]=o=>G(o))},null,8,["model-value","configure"]))])):(d(),v("div",ke," 未注册的块类型:"+p(m.value.type)+"@"+p(m.value.compatibilityDate),1)):(d(),v("div",pe," 块已不存在 "))],64)):(d(),v("div",ye,[n(l(_),{orientation:"vertical"},{default:s(()=>[n(l(B),{class:"text-xs text-zinc-500"},b({default:s(()=>[U(" "+p(k("modalTitle")),1)]),_:2},[r("modalTitle")?{name:"tooltip",fn:s(()=>[n(l(V),{source:r("modalTitle"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),n(l(de),{markdown:"","model-value":i.value.modalTitle,"translate-hint":k("modalTitle"),"onUpdate:modelValue":Q},null,8,["model-value","translate-hint"])]),_:1}),c("div",ge,[n(l(_),{orientation:"vertical"},{default:s(()=>[n(l(B),{class:"text-xs text-zinc-500"},b({default:s(()=>[U(" "+p(k("modalWidth")),1)]),_:2},[r("modalWidth")?{name:"tooltip",fn:s(()=>[n(l(V),{source:r("modalWidth"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),n(l(P),{"model-value":i.value.modalWidth??"",placeholder:"例:720px / 60vw","onUpdate:modelValue":e[4]||(e[4]=o=>S("modalWidth",String(o)))},null,8,["model-value"])]),_:1}),n(l(_),{orientation:"vertical"},{default:s(()=>[n(l(B),{class:"text-xs text-zinc-500"},b({default:s(()=>[U(" "+p(k("modalMinHeight")),1)]),_:2},[r("modalMinHeight")?{name:"tooltip",fn:s(()=>[n(l(V),{source:r("modalMinHeight"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),n(l(P),{"model-value":i.value.modalMinHeight??"",placeholder:"例:400px / 60vh","onUpdate:modelValue":e[5]||(e[5]=o=>S("modalMinHeight",String(o)))},null,8,["model-value"])]),_:1})]),y.value?(d(),v("div",Ve,[n(W,{"model-value":l(t).layouts.value,index:l(t).activeLayoutIndex.value,"onUpdate:modelValue":e[13]||(e[13]=o=>{l(t).layouts.value=o})},null,8,["model-value","index"]),c("div",_e,[n(H,{"model-value":l(t).layouts.value,"active-index":l(t).activeLayoutIndex.value,"selected-item-ids":l(t).selectedBlockIds.value,items:l(t).blocks.value,"find-entry":l(t).findBlockMeta,"get-item-label":l(t).getBlockLabel,"picker-entries":l(t).pickerEntries.value,"can-delete":!0,"item-noun":"块","onUpdate:modelValue":e[14]||(e[14]=o=>{l(t).layouts.value=o}),"onUpdate:activeIndex":e[15]||(e[15]=o=>{l(t).activeLayoutIndex.value=o}),"onUpdate:selectedItemIds":e[16]||(e[16]=o=>{l(t).selectedBlockIds.value=o}),onAddNew:M,onDrillDown:C,onDeleteItem:z,onDeleteItems:$},null,8,["model-value","active-index","selected-item-ids","items","find-entry","get-item-label","picker-entries"])])])):(d(),v("div",Ie,[c("div",Be,[n(l(K),{class:"flex-1"},{default:s(()=>[n(j,{"model-value":l(t).layouts.value,"active-index":l(t).activeLayoutIndex.value,"onUpdate:modelValue":e[6]||(e[6]=o=>{l(t).layouts.value=o}),"onUpdate:activeIndex":e[7]||(e[7]=o=>{l(t).activeLayoutIndex.value=o})},null,8,["model-value","active-index"])]),_:1}),n(l(Y),{variant:"ghost",size:"sm",onClick:e[8]||(e[8]=o=>T())},{default:s(()=>[n(l(O),{icon:"fluent:add-20-regular",class:"size-4"}),e[18]||(e[18]=c("span",null,"新增布局",-1))]),_:1})]),c("div",be,[n(W,{"model-value":l(t).layouts.value,index:l(t).activeLayoutIndex.value,"onUpdate:modelValue":e[9]||(e[9]=o=>{l(t).layouts.value=o})},null,8,["model-value","index"]),c("div",Ue,[n(H,{"model-value":l(t).layouts.value,"active-index":l(t).activeLayoutIndex.value,"selected-item-ids":l(t).selectedBlockIds.value,items:l(t).blocks.value,"find-entry":l(t).findBlockMeta,"get-item-label":l(t).getBlockLabel,"picker-entries":l(t).pickerEntries.value,"can-delete":!0,"item-noun":"块","onUpdate:modelValue":e[10]||(e[10]=o=>{l(t).layouts.value=o}),"onUpdate:activeIndex":e[11]||(e[11]=o=>{l(t).activeLayoutIndex.value=o}),"onUpdate:selectedItemIds":e[12]||(e[12]=o=>{l(t).selectedBlockIds.value=o}),onAddNew:M,onDrillDown:C,onDeleteItem:z,onDeleteItems:$},null,8,["model-value","active-index","selected-item-ids","items","find-entry","get-item-label","picker-entries"])])])]))]))],64))}});export{De as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as g,b as d,x as u,aa as f,c as m,g as a,w as i,u as r,o as p,h as _,j as x,t as h,T as v,_ as T,$ as V}from"./index-
|
|
1
|
+
import{d as g,b as d,x as u,aa as f,c as m,g as a,w as i,u as r,o as p,h as _,j as x,t as h,T as v,_ as T,$ as V}from"./index-C5dK4QAf.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(s){const e={...t.value};s.length===0?Reflect.deleteProperty(e,"triggers"):e.triggers=s,t.value=e}return(s,e)=>(p(),m("div",w,[a(r(T),{orientation:"vertical"},{default:i(()=>[a(r(_),{class:"text-xs text-zinc-500"},{default:i(()=>[x(h(r(o)),1)]),_:1}),a(v,{triggers:c.value,"onUpdate:triggers":n},null,8,["triggers"])]),_:1})]))}});export{S as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as _,b as y,B as x,A as b,c,f as i,g as n,w as o,u as a,o as l,C as v,I as u,D as g,E as D,F as h,v as w,e as B,G as C,t as p,H as S}from"./index-
|
|
1
|
+
import{d as _,b as y,B as x,A as b,c,f as i,g as n,w as o,u as a,o as l,C as v,I as u,D as g,E as D,F as h,v as w,e as B,G as C,t as p,H as S}from"./index-C5dK4QAf.js";const $={class:"flex flex-col gap-3"},k={class:"flex-1"},E={class:"ml-auto text-xs tabular-nums text-zinc-400"},I=_({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 t=s.get(e.type);(!t||e.compatibilityDate>t.compatibilityDate)&&s.set(e.type,{type:e.type,compatibilityDate:e.compatibilityDate,name:e.metadata.name,icon:e.metadata.icon})}return[...s.values()].sort((e,t)=>e.name.localeCompare(t.name,"zh"))})();function d(s,e){r.value={type:s,compatibilityDate:e}}return(s,e)=>(l(),c("div",$,[e[0]||(e[0]=i("p",{class:"text-xs text-zinc-500"}," 原型按钮点击后无任何副作用,用于占位。选择下方任意类型可将其转换为正式按钮 —— 此转换仅能进行一次。 ",-1)),n(a(S),null,{default:o(()=>[n(a(v),{align:"inline-start"},{default:o(()=>[n(a(u),{icon:"fluent:arrow-swap-20-regular"})]),_:1}),n(a(g),null,{default:o(()=>[n(a(D),null,{default:o(()=>[(l(!0),c(h,null,w(a(f),t=>(l(),B(a(C),{key:t.type,value:t.type,onSelect:V=>d(t.type,t.compatibilityDate)},{default:o(()=>[n(a(u),{icon:t.icon,class:"size-4 shrink-0"},null,8,["icon"]),i("span",k,p(t.name),1),i("span",E,p(t.compatibilityDate),1)]),_:2},1032,["value","onSelect"]))),128))]),_:1})]),_:1})]),_:1})]))}});export{I as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as $,b,J as S,c as m,g as e,w as a,u as l,o as _,h as f,i as v,j as i,t as r,k as p,l as V,_ as x,K as y,L as h,M as w,N,F as z,v as D,O as F,x as M,y as O}from"./index-
|
|
1
|
+
import{d as $,b,J as S,c as m,g as e,w as a,u as l,o as _,h as f,i as v,j as i,t as r,k as p,l as V,_ as x,K as y,L as h,M as w,N,F as z,v as D,O as F,x as M,y as O}from"./index-C5dK4QAf.js";const T={class:"flex flex-col gap-3"},B=$({name:"ShwfedNavigationActionConfig",__name:"config",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(g){const t=b(g,"modelValue"),c=S(()=>{}),d=o=>M(c,o)??o,n=o=>O(c,o),k=[{value:"_self",label:"当前页面打开"},{value:"_blank",label:"新页面打开"}];return(o,u)=>(_(),m("div",T,[e(l(x),{orientation:"vertical"},{default:a(()=>[e(l(f),{class:"text-xs text-zinc-500"},v({default:a(()=>[i(" "+r(d("url")),1)]),_:2},[n("url")?{name:"tooltip",fn:a(()=>[e(l(p),{source:n("url"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),e(l(V),{"model-value":t.value.url??"",placeholder:"例:'/detail/' + string(row.id)","result-type":"string",class:"min-h-10","onUpdate:modelValue":u[0]||(u[0]=s=>t.value={...t.value,url:s})},null,8,["model-value"])]),_:1}),e(l(x),{orientation:"vertical"},{default:a(()=>[e(l(f),{class:"text-xs text-zinc-500"},v({default:a(()=>[i(" "+r(d("mode")),1)]),_:2},[n("mode")?{name:"tooltip",fn:a(()=>[e(l(p),{source:n("mode"),block:"",class:"prose prose-sm prose-zinc"},null,8,["source"])]),key:"0"}:void 0]),1024),e(l(y),{"model-value":t.value.mode??"_self","onUpdate:modelValue":u[1]||(u[1]=s=>t.value={...t.value,mode:s})},{default:a(()=>[e(l(h),{class:"w-full"},{default:a(()=>[e(l(w))]),_:1}),e(l(N),null,{default:a(()=>[(_(),m(z,null,D(k,s=>e(l(F),{key:s.value,value:s.value},{default:a(()=>[i(r(s.label),1)]),_:2},1032,["value"])),64))]),_:1})]),_:1},8,["model-value"])]),_:1})]))}});export{B as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as y,b as R,ab as U,c as V,f as x,g as t,w as n,u as s,F as D,v as F,o as z,h as i,j as u,k as c,l as d,_ as p,ac as g,i as f,t as _,T as $,x as C,y as H,$ as S}from"./index-
|
|
1
|
+
import{d as y,b as R,ab as U,c as V,f as x,g as t,w as n,u as s,F as D,v as F,o as z,h as i,j as u,k as c,l as d,_ as p,ac as g,i as f,t as _,T as $,x as C,y as H,$ as S}from"./index-C5dK4QAf.js";const L={class:"flex flex-col gap-3"},N={class:"grid grid-cols-2 gap-3"},B={class:"flex items-start gap-2"},M={class:"grid grid-cols-2 gap-3"},I=y({name:"ShwfedHttpDownloadActionConfig",__name:"config",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(b){const l=R(b,"modelValue"),E=U(()=>{}),m=a=>C(E,a)??a,r=a=>H(E,a),j=["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 q(a){const e={...l.value};a.length===0?delete e.messageExpression:e.messageExpression=a,l.value=e}function T(a){const e={...l.value};a.length===0?delete e.resultExpression:e.resultExpression=a,l.value=e}function k(a,e){const o={...l.value};e.length===0?Reflect.deleteProperty(o,a):o[a]=e,l.value=o}return(a,e)=>(z(),V("div",L,[x("div",N,[t(s(p),{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(d),{"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(p),{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(d),{"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",B,[t(s(p),{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(d),{"model-value":l.value.messageExpression??"",placeholder:"例:string(json.message)","result-type":"string","extra-vars":{json:s(g)},"onUpdate:modelValue":q},null,8,["model-value","extra-vars"])]),_:1}),t(s(p),{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(d),{"model-value":l.value.resultExpression??"",placeholder:"例:json.code == 0 ? 'success' : 'error'","result-type":"string","extra-vars":{json:s(g)},"onUpdate:modelValue":T},null,8,["model-value","extra-vars"])]),_:1})]),x("div",M,[(z(),V(D,null,F(j,o=>t(s(p),{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($,{triggers:l.value[o]??[],"onUpdate:triggers":v=>k(o,v)},null,8,["triggers","onUpdate:triggers"])]),_:2},1024)),64))])]))}});export{I as default};
|