@shwfed/config 2.3.10 → 2.3.11
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 +704 -441
- package/dist/module.json +1 -1
- package/dist/preview/assets/{config-BxzDT_57.js → config-57-v4VXo.js} +1 -1
- package/dist/preview/assets/{config-2R4XkSGs.js → config-BZahzuEc.js} +1 -1
- package/dist/preview/assets/{config-KcLrpkc1.js → config-Be-2ZA2R.js} +1 -1
- package/dist/preview/assets/{config-ykJZssgx.js → config-BnZQO-Sp.js} +1 -1
- package/dist/preview/assets/{config-bxqg3yuv.js → config-Bp91DUdU.js} +1 -1
- package/dist/preview/assets/{config-CyScbxXy.js → config-DNokxY7M.js} +1 -1
- package/dist/preview/assets/{config-HdWYFZ09.js → config-_msO_f2R.js} +1 -1
- package/dist/preview/assets/{config-ja_GMXxV.js → config-_uPI8qV-.js} +1 -1
- package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-CWyVRSOh.js → definition.vue_vue_type_script_setup_true_lang-BtScXbs1.js} +1 -1
- package/dist/preview/assets/index-DDbl2Atj.js +1 -0
- package/dist/preview/assets/index-DGa3Oj3y.js +1075 -0
- package/dist/preview/assets/{index-BPKK3hGV.css → index-mbGtsgdv.css} +1 -1
- package/dist/preview/assets/{runtime-LBdh1D75.js → runtime-B9u14qqB.js} +1 -1
- package/dist/preview/assets/{runtime-B8aUJIpn.js → runtime-BBms4myv.js} +1 -1
- package/dist/preview/assets/{runtime-D2K1s33u.js → runtime-CfR7ZAND.js} +1 -1
- package/dist/preview/assets/{runtime-C9XnvD5A.js → runtime-D3EyeiyA.js} +1 -1
- package/dist/preview/assets/{runtime-DqZhDPHl.js → runtime-Dk9u-Ybw.js} +1 -1
- package/dist/preview/assets/{runtime-CpSiaWMP.js → runtime-XXqIAt53.js} +1 -1
- package/dist/preview/assets/{runtime-CxA8fvQP.js → runtime-cKWSGFod.js} +1 -1
- package/dist/preview/assets/{runtime-DAXQmtLg.js → runtime-w7V-p3t1.js} +1 -1
- package/dist/preview/index.html +2 -2
- package/dist/runtime/components/form/ai/fields-button.vue +3 -1
- package/dist/runtime/components/form/unit-config.vue +8 -4
- package/dist/runtime/components/form/utils/resolve.d.ts +48 -9
- package/dist/runtime/components/form/utils/resolve.js +59 -5
- package/dist/runtime/components/table/ai/columns-button.vue +1 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/config.d.vue.ts +10 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/config.vue +305 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/config.vue.d.ts +10 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/runtime.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/runtime.vue +81 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/runtime.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.d.ts +55 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.js +82 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/config.d.vue.ts +10 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/config.vue +310 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/config.vue.d.ts +10 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/runtime.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/runtime.vue +81 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/runtime.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.d.ts +66 -0
- package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.js +71 -0
- package/dist/runtime/components/table/config.vue +2 -1
- package/dist/runtime/components/table/utils/resolve.d.ts +53 -0
- package/dist/runtime/components/table/utils/resolve.js +66 -1
- package/package.json +1 -1
- package/dist/preview/assets/index-D3pf2RjG.js +0 -1
- package/dist/preview/assets/index-OUd02U3g.js +0 -1075
package/dist/mcp.mjs
CHANGED
|
@@ -15509,14 +15509,14 @@ function requireCompile() {
|
|
|
15509
15509
|
}
|
|
15510
15510
|
const $id$1 = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#";
|
|
15511
15511
|
const description = "Meta-schema for $data reference (JSON AnySchema extension proposal)";
|
|
15512
|
-
const type$
|
|
15512
|
+
const type$Q = "object";
|
|
15513
15513
|
const required$1 = ["$data"];
|
|
15514
15514
|
const properties$2 = { "$data": { "type": "string", "anyOf": [{ "format": "relative-json-pointer" }, { "format": "json-pointer" }] } };
|
|
15515
15515
|
const additionalProperties$1 = false;
|
|
15516
15516
|
const require$$9 = {
|
|
15517
15517
|
$id: $id$1,
|
|
15518
15518
|
description,
|
|
15519
|
-
type: type$
|
|
15519
|
+
type: type$Q,
|
|
15520
15520
|
required: required$1,
|
|
15521
15521
|
properties: properties$2,
|
|
15522
15522
|
additionalProperties: additionalProperties$1
|
|
@@ -18516,14 +18516,14 @@ function requireFormat() {
|
|
|
18516
18516
|
format$7.default = format2;
|
|
18517
18517
|
return format$7;
|
|
18518
18518
|
}
|
|
18519
|
-
var metadata$
|
|
18519
|
+
var metadata$P = {};
|
|
18520
18520
|
var hasRequiredMetadata;
|
|
18521
18521
|
function requireMetadata() {
|
|
18522
|
-
if (hasRequiredMetadata) return metadata$
|
|
18522
|
+
if (hasRequiredMetadata) return metadata$P;
|
|
18523
18523
|
hasRequiredMetadata = 1;
|
|
18524
|
-
Object.defineProperty(metadata$
|
|
18525
|
-
metadata$
|
|
18526
|
-
metadata$
|
|
18524
|
+
Object.defineProperty(metadata$P, "__esModule", { value: true });
|
|
18525
|
+
metadata$P.contentVocabulary = metadata$P.metadataVocabulary = void 0;
|
|
18526
|
+
metadata$P.metadataVocabulary = [
|
|
18527
18527
|
"title",
|
|
18528
18528
|
"description",
|
|
18529
18529
|
"default",
|
|
@@ -18532,12 +18532,12 @@ function requireMetadata() {
|
|
|
18532
18532
|
"writeOnly",
|
|
18533
18533
|
"examples"
|
|
18534
18534
|
];
|
|
18535
|
-
metadata$
|
|
18535
|
+
metadata$P.contentVocabulary = [
|
|
18536
18536
|
"contentMediaType",
|
|
18537
18537
|
"contentEncoding",
|
|
18538
18538
|
"contentSchema"
|
|
18539
18539
|
];
|
|
18540
|
-
return metadata$
|
|
18540
|
+
return metadata$P;
|
|
18541
18541
|
}
|
|
18542
18542
|
var hasRequiredDraft7;
|
|
18543
18543
|
function requireDraft7() {
|
|
@@ -18683,14 +18683,14 @@ const $schema = "http://json-schema.org/draft-07/schema#";
|
|
|
18683
18683
|
const $id = "http://json-schema.org/draft-07/schema#";
|
|
18684
18684
|
const title = "Core schema meta-schema";
|
|
18685
18685
|
const definitions = { "schemaArray": { "type": "array", "minItems": 1, "items": { "$ref": "#" } }, "nonNegativeInteger": { "type": "integer", "minimum": 0 }, "nonNegativeIntegerDefault0": { "allOf": [{ "$ref": "#/definitions/nonNegativeInteger" }, { "default": 0 }] }, "simpleTypes": { "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] }, "stringArray": { "type": "array", "items": { "type": "string" }, "uniqueItems": true, "default": [] } };
|
|
18686
|
-
const type$
|
|
18686
|
+
const type$P = ["object", "boolean"];
|
|
18687
18687
|
const properties = { "$id": { "type": "string", "format": "uri-reference" }, "$schema": { "type": "string", "format": "uri" }, "$ref": { "type": "string", "format": "uri-reference" }, "$comment": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "default": true, "readOnly": { "type": "boolean", "default": false }, "examples": { "type": "array", "items": true }, "multipleOf": { "type": "number", "exclusiveMinimum": 0 }, "maximum": { "type": "number" }, "exclusiveMaximum": { "type": "number" }, "minimum": { "type": "number" }, "exclusiveMinimum": { "type": "number" }, "maxLength": { "$ref": "#/definitions/nonNegativeInteger" }, "minLength": { "$ref": "#/definitions/nonNegativeIntegerDefault0" }, "pattern": { "type": "string", "format": "regex" }, "additionalItems": { "$ref": "#" }, "items": { "anyOf": [{ "$ref": "#" }, { "$ref": "#/definitions/schemaArray" }], "default": true }, "maxItems": { "$ref": "#/definitions/nonNegativeInteger" }, "minItems": { "$ref": "#/definitions/nonNegativeIntegerDefault0" }, "uniqueItems": { "type": "boolean", "default": false }, "contains": { "$ref": "#" }, "maxProperties": { "$ref": "#/definitions/nonNegativeInteger" }, "minProperties": { "$ref": "#/definitions/nonNegativeIntegerDefault0" }, "required": { "$ref": "#/definitions/stringArray" }, "additionalProperties": { "$ref": "#" }, "definitions": { "type": "object", "additionalProperties": { "$ref": "#" }, "default": {} }, "properties": { "type": "object", "additionalProperties": { "$ref": "#" }, "default": {} }, "patternProperties": { "type": "object", "additionalProperties": { "$ref": "#" }, "propertyNames": { "format": "regex" }, "default": {} }, "dependencies": { "type": "object", "additionalProperties": { "anyOf": [{ "$ref": "#" }, { "$ref": "#/definitions/stringArray" }] } }, "propertyNames": { "$ref": "#" }, "const": true, "enum": { "type": "array", "items": true, "minItems": 1, "uniqueItems": true }, "type": { "anyOf": [{ "$ref": "#/definitions/simpleTypes" }, { "type": "array", "items": { "$ref": "#/definitions/simpleTypes" }, "minItems": 1, "uniqueItems": true }] }, "format": { "type": "string" }, "contentMediaType": { "type": "string" }, "contentEncoding": { "type": "string" }, "if": { "$ref": "#" }, "then": { "$ref": "#" }, "else": { "$ref": "#" }, "allOf": { "$ref": "#/definitions/schemaArray" }, "anyOf": { "$ref": "#/definitions/schemaArray" }, "oneOf": { "$ref": "#/definitions/schemaArray" }, "not": { "$ref": "#" } };
|
|
18688
18688
|
const require$$3 = {
|
|
18689
18689
|
$schema,
|
|
18690
18690
|
$id,
|
|
18691
18691
|
title,
|
|
18692
18692
|
definitions,
|
|
18693
|
-
type: type$
|
|
18693
|
+
type: type$P,
|
|
18694
18694
|
properties,
|
|
18695
18695
|
"default": true
|
|
18696
18696
|
};
|
|
@@ -81617,13 +81617,13 @@ function md(...args2) {
|
|
|
81617
81617
|
const indent = (original.startsWith("\n") ? original.slice(1) : original).split("\n", 1)[0]?.match(/^(\s*)/)?.[1]?.length ?? 0;
|
|
81618
81618
|
return original.trim().replaceAll("\\`", "`").split("\n").map((line) => line.replace(new RegExp(`^${String.raw`\s`.repeat(indent)}`), "")).join("\n");
|
|
81619
81619
|
}
|
|
81620
|
-
const type$
|
|
81621
|
-
const compatibilityDate$
|
|
81622
|
-
const metadata$
|
|
81620
|
+
const type$O = "com.shwfed.actions.button.http.request.json.confirm";
|
|
81621
|
+
const compatibilityDate$O = "2026-04-18";
|
|
81622
|
+
const metadata$O = {
|
|
81623
81623
|
name: "网络请求(JSON + 确认)",
|
|
81624
81624
|
icon: "fluent:shield-checkmark-20-regular"
|
|
81625
81625
|
};
|
|
81626
|
-
function schema$
|
|
81626
|
+
function schema$O(configure) {
|
|
81627
81627
|
const CelHttpRequest = Expression({ configure, resultType: "HttpRequest" });
|
|
81628
81628
|
const CelMessage = Expression({
|
|
81629
81629
|
configure: (env) => {
|
|
@@ -81635,8 +81635,8 @@ function schema$M(configure) {
|
|
|
81635
81635
|
resultType: "string"
|
|
81636
81636
|
});
|
|
81637
81637
|
return Struct({
|
|
81638
|
-
type: Literal2(type$
|
|
81639
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
81638
|
+
type: Literal2(type$O),
|
|
81639
|
+
compatibilityDate: Literal2(compatibilityDate$O),
|
|
81640
81640
|
expression: CelHttpRequest.annotations({
|
|
81641
81641
|
title: "请求",
|
|
81642
81642
|
description: md`
|
|
@@ -81694,18 +81694,18 @@ function schema$M(configure) {
|
|
|
81694
81694
|
}
|
|
81695
81695
|
const __vite_glob_0_0$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81696
81696
|
__proto__: null,
|
|
81697
|
-
compatibilityDate: compatibilityDate$
|
|
81698
|
-
metadata: metadata$
|
|
81699
|
-
schema: schema$
|
|
81700
|
-
type: type$
|
|
81697
|
+
compatibilityDate: compatibilityDate$O,
|
|
81698
|
+
metadata: metadata$O,
|
|
81699
|
+
schema: schema$O,
|
|
81700
|
+
type: type$O
|
|
81701
81701
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
81702
|
-
const type$
|
|
81703
|
-
const compatibilityDate$
|
|
81704
|
-
const metadata$
|
|
81702
|
+
const type$N = "com.shwfed.actions.button.http.request.json";
|
|
81703
|
+
const compatibilityDate$N = "2026-04-18";
|
|
81704
|
+
const metadata$N = {
|
|
81705
81705
|
name: "网络请求(JSON)",
|
|
81706
81706
|
icon: "fluent:cloud-arrow-up-20-regular"
|
|
81707
81707
|
};
|
|
81708
|
-
function schema$
|
|
81708
|
+
function schema$N(configure) {
|
|
81709
81709
|
const CelHttpRequest = Expression({ configure, resultType: "HttpRequest" });
|
|
81710
81710
|
const CelMessage = Expression({
|
|
81711
81711
|
configure: (env) => {
|
|
@@ -81717,8 +81717,8 @@ function schema$L(configure) {
|
|
|
81717
81717
|
resultType: "string"
|
|
81718
81718
|
});
|
|
81719
81719
|
return Struct({
|
|
81720
|
-
type: Literal2(type$
|
|
81721
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
81720
|
+
type: Literal2(type$N),
|
|
81721
|
+
compatibilityDate: Literal2(compatibilityDate$N),
|
|
81722
81722
|
expression: CelHttpRequest.annotations({
|
|
81723
81723
|
title: "请求",
|
|
81724
81724
|
description: md`
|
|
@@ -81764,21 +81764,21 @@ function schema$L(configure) {
|
|
|
81764
81764
|
}
|
|
81765
81765
|
const __vite_glob_0_1$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81766
81766
|
__proto__: null,
|
|
81767
|
-
compatibilityDate: compatibilityDate$
|
|
81768
|
-
metadata: metadata$
|
|
81769
|
-
schema: schema$
|
|
81770
|
-
type: type$
|
|
81767
|
+
compatibilityDate: compatibilityDate$N,
|
|
81768
|
+
metadata: metadata$N,
|
|
81769
|
+
schema: schema$N,
|
|
81770
|
+
type: type$N
|
|
81771
81771
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
81772
|
-
const type$
|
|
81773
|
-
const compatibilityDate$
|
|
81774
|
-
const metadata$
|
|
81772
|
+
const type$M = "com.shwfed.actions.button.prototype";
|
|
81773
|
+
const compatibilityDate$M = "2026-04-18";
|
|
81774
|
+
const metadata$M = {
|
|
81775
81775
|
name: "原型",
|
|
81776
81776
|
icon: "fluent:predictions-20-regular"
|
|
81777
81777
|
};
|
|
81778
|
-
function schema$
|
|
81778
|
+
function schema$M(_configure) {
|
|
81779
81779
|
return Struct({
|
|
81780
|
-
type: Literal2(type$
|
|
81781
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
81780
|
+
type: Literal2(type$M),
|
|
81781
|
+
compatibilityDate: Literal2(compatibilityDate$M)
|
|
81782
81782
|
}).annotations({
|
|
81783
81783
|
title: "PrototypeAction",
|
|
81784
81784
|
description: "点击无副作用的原型按钮,可被一次性转换为其它类型"
|
|
@@ -81786,23 +81786,23 @@ function schema$K(_configure) {
|
|
|
81786
81786
|
}
|
|
81787
81787
|
const __vite_glob_0_2$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81788
81788
|
__proto__: null,
|
|
81789
|
-
compatibilityDate: compatibilityDate$
|
|
81790
|
-
metadata: metadata$
|
|
81791
|
-
schema: schema$
|
|
81792
|
-
type: type$
|
|
81789
|
+
compatibilityDate: compatibilityDate$M,
|
|
81790
|
+
metadata: metadata$M,
|
|
81791
|
+
schema: schema$M,
|
|
81792
|
+
type: type$M
|
|
81793
81793
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
81794
|
-
const type$
|
|
81795
|
-
const compatibilityDate$
|
|
81796
|
-
const metadata$
|
|
81794
|
+
const type$L = "com.shwfed.actions.button.navigation";
|
|
81795
|
+
const compatibilityDate$L = "2026-04-21";
|
|
81796
|
+
const metadata$L = {
|
|
81797
81797
|
name: "导航",
|
|
81798
81798
|
icon: "fluent:link-20-regular"
|
|
81799
81799
|
};
|
|
81800
81800
|
const Mode = Literal2("_self", "_blank");
|
|
81801
|
-
function schema$
|
|
81801
|
+
function schema$L(configure) {
|
|
81802
81802
|
const CelUrl = Expression({ configure, resultType: "string" });
|
|
81803
81803
|
return Struct({
|
|
81804
|
-
type: Literal2(type$
|
|
81805
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
81804
|
+
type: Literal2(type$L),
|
|
81805
|
+
compatibilityDate: Literal2(compatibilityDate$L),
|
|
81806
81806
|
url: CelUrl.annotations({
|
|
81807
81807
|
title: "链接",
|
|
81808
81808
|
description: "点击后将打开的链接,返回 `string`"
|
|
@@ -81818,10 +81818,10 @@ function schema$J(configure) {
|
|
|
81818
81818
|
}
|
|
81819
81819
|
const __vite_glob_0_3$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81820
81820
|
__proto__: null,
|
|
81821
|
-
compatibilityDate: compatibilityDate$
|
|
81822
|
-
metadata: metadata$
|
|
81823
|
-
schema: schema$
|
|
81824
|
-
type: type$
|
|
81821
|
+
compatibilityDate: compatibilityDate$L,
|
|
81822
|
+
metadata: metadata$L,
|
|
81823
|
+
schema: schema$L,
|
|
81824
|
+
type: type$L
|
|
81825
81825
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
81826
81826
|
const blockRefCache = /* @__PURE__ */ new WeakMap();
|
|
81827
81827
|
function registerBlockRef(configure, ref2) {
|
|
@@ -81830,9 +81830,9 @@ function registerBlockRef(configure, ref2) {
|
|
|
81830
81830
|
function lookupBlockRef(configure) {
|
|
81831
81831
|
return blockRefCache.get(configure);
|
|
81832
81832
|
}
|
|
81833
|
-
const type$
|
|
81834
|
-
const compatibilityDate$
|
|
81835
|
-
const metadata$
|
|
81833
|
+
const type$K = "com.shwfed.actions.button.modal.layout";
|
|
81834
|
+
const compatibilityDate$K = "2026-05-11";
|
|
81835
|
+
const metadata$K = {
|
|
81836
81836
|
name: "模态窗口",
|
|
81837
81837
|
icon: "fluent:window-edit-20-regular",
|
|
81838
81838
|
drillable: true,
|
|
@@ -81843,12 +81843,12 @@ const metadata$I = {
|
|
|
81843
81843
|
const CssLength = String$.pipe(
|
|
81844
81844
|
filter((s) => s.trim().length > 0 || "不能为空字符串")
|
|
81845
81845
|
);
|
|
81846
|
-
function schema$
|
|
81846
|
+
function schema$K(configure) {
|
|
81847
81847
|
const blockUnion = lookupBlockRef(configure) ?? Unknown;
|
|
81848
81848
|
const ModalSlot = Slot(blockUnion, configure);
|
|
81849
81849
|
return Struct({
|
|
81850
|
-
type: Literal2(type$
|
|
81851
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
81850
|
+
type: Literal2(type$K),
|
|
81851
|
+
compatibilityDate: Literal2(compatibilityDate$K),
|
|
81852
81852
|
modalTitle: optional(Locale.annotations({
|
|
81853
81853
|
title: "弹窗标题",
|
|
81854
81854
|
description: "弹窗顶部展示的本地化标题,支持行内 Markdown;不填则回退使用按钮自身的名称"
|
|
@@ -81877,22 +81877,22 @@ function defaultBody$6() {
|
|
|
81877
81877
|
}
|
|
81878
81878
|
const __vite_glob_0_4$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81879
81879
|
__proto__: null,
|
|
81880
|
-
compatibilityDate: compatibilityDate$
|
|
81880
|
+
compatibilityDate: compatibilityDate$K,
|
|
81881
81881
|
defaultBody: defaultBody$6,
|
|
81882
|
-
metadata: metadata$
|
|
81883
|
-
schema: schema$
|
|
81884
|
-
type: type$
|
|
81882
|
+
metadata: metadata$K,
|
|
81883
|
+
schema: schema$K,
|
|
81884
|
+
type: type$K
|
|
81885
81885
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
81886
|
-
const type$
|
|
81887
|
-
const compatibilityDate$
|
|
81888
|
-
const metadata$
|
|
81886
|
+
const type$J = "com.shwfed.actions.button.event.dispatch";
|
|
81887
|
+
const compatibilityDate$J = "2026-05-15";
|
|
81888
|
+
const metadata$J = {
|
|
81889
81889
|
name: "触发事件",
|
|
81890
81890
|
icon: "fluent:flash-20-regular"
|
|
81891
81891
|
};
|
|
81892
|
-
function schema$
|
|
81892
|
+
function schema$J(_configure) {
|
|
81893
81893
|
return Struct({
|
|
81894
|
-
type: Literal2(type$
|
|
81895
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
81894
|
+
type: Literal2(type$J),
|
|
81895
|
+
compatibilityDate: Literal2(compatibilityDate$J),
|
|
81896
81896
|
// This button's entire behaviour: the op-requests it bubbles up the
|
|
81897
81897
|
// component tree on click. Stored on the button itself — there is no
|
|
81898
81898
|
// host-level trigger field any more.
|
|
@@ -81903,14 +81903,14 @@ function schema$H(_configure) {
|
|
|
81903
81903
|
}
|
|
81904
81904
|
const __vite_glob_0_5$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81905
81905
|
__proto__: null,
|
|
81906
|
-
compatibilityDate: compatibilityDate$
|
|
81907
|
-
metadata: metadata$
|
|
81908
|
-
schema: schema$
|
|
81909
|
-
type: type$
|
|
81906
|
+
compatibilityDate: compatibilityDate$J,
|
|
81907
|
+
metadata: metadata$J,
|
|
81908
|
+
schema: schema$J,
|
|
81909
|
+
type: type$J
|
|
81910
81910
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
81911
|
-
const type$
|
|
81912
|
-
const compatibilityDate$
|
|
81913
|
-
const metadata$
|
|
81911
|
+
const type$I = "com.shwfed.actions.button.http.download";
|
|
81912
|
+
const compatibilityDate$I = "2026-05-21";
|
|
81913
|
+
const metadata$I = {
|
|
81914
81914
|
name: "下载文件",
|
|
81915
81915
|
icon: "fluent:arrow-download-20-regular"
|
|
81916
81916
|
};
|
|
@@ -81925,13 +81925,13 @@ function configureWithJson$2(configure) {
|
|
|
81925
81925
|
env.registerVariable("json", JSON_VAR$2.type, { description: JSON_VAR$2.description });
|
|
81926
81926
|
};
|
|
81927
81927
|
}
|
|
81928
|
-
function schema$
|
|
81928
|
+
function schema$I(configure) {
|
|
81929
81929
|
const CelHttpRequest = Expression({ configure, resultType: "HttpRequest" });
|
|
81930
81930
|
const CelDownloadRequest = Expression({ configure: configureWithJson$2(configure), resultType: "HttpRequest" });
|
|
81931
81931
|
const CelMessage = Expression({ configure: configureWithJson$2(configure), resultType: "string" });
|
|
81932
81932
|
return Struct({
|
|
81933
|
-
type: Literal2(type$
|
|
81934
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
81933
|
+
type: Literal2(type$I),
|
|
81934
|
+
compatibilityDate: Literal2(compatibilityDate$I),
|
|
81935
81935
|
template: Struct({
|
|
81936
81936
|
request: CelHttpRequest.annotations({
|
|
81937
81937
|
title: "请求",
|
|
@@ -81994,25 +81994,25 @@ function schema$G(configure) {
|
|
|
81994
81994
|
const __vite_glob_0_6$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81995
81995
|
__proto__: null,
|
|
81996
81996
|
JSON_VAR: JSON_VAR$2,
|
|
81997
|
-
compatibilityDate: compatibilityDate$
|
|
81998
|
-
metadata: metadata$
|
|
81999
|
-
schema: schema$
|
|
82000
|
-
type: type$
|
|
81997
|
+
compatibilityDate: compatibilityDate$I,
|
|
81998
|
+
metadata: metadata$I,
|
|
81999
|
+
schema: schema$I,
|
|
82000
|
+
type: type$I
|
|
82001
82001
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82002
|
-
const type$
|
|
82003
|
-
const compatibilityDate$
|
|
82004
|
-
const metadata$
|
|
82002
|
+
const type$H = "com.shwfed.actions.item.markdown";
|
|
82003
|
+
const compatibilityDate$H = "2026-05-21";
|
|
82004
|
+
const metadata$H = {
|
|
82005
82005
|
name: "内联 Markdown",
|
|
82006
82006
|
icon: "fluent:markdown-20-regular"
|
|
82007
82007
|
};
|
|
82008
|
-
function schema$
|
|
82008
|
+
function schema$H(_configure) {
|
|
82009
82009
|
return Struct({
|
|
82010
82010
|
id: UUID.annotations({ description: "Markdown 项唯一标识" }),
|
|
82011
82011
|
// Present when the item sits at group level; absent when it lives as a
|
|
82012
82012
|
// dropdown sub-item (the parent is the dropdown itself).
|
|
82013
82013
|
groupId: optional(UUID.annotations({ description: "所属按钮组标识" })),
|
|
82014
|
-
type: Literal2(type$
|
|
82015
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82014
|
+
type: Literal2(type$H),
|
|
82015
|
+
compatibilityDate: Literal2(compatibilityDate$H),
|
|
82016
82016
|
name: String$.annotations({
|
|
82017
82017
|
title: "内部名称",
|
|
82018
82018
|
description: "仅用于编辑器内识别该 Markdown 项,不会展示给最终用户"
|
|
@@ -82028,10 +82028,10 @@ function schema$F(_configure) {
|
|
|
82028
82028
|
}
|
|
82029
82029
|
const __vite_glob_3_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82030
82030
|
__proto__: null,
|
|
82031
|
-
compatibilityDate: compatibilityDate$
|
|
82032
|
-
metadata: metadata$
|
|
82033
|
-
schema: schema$
|
|
82034
|
-
type: type$
|
|
82031
|
+
compatibilityDate: compatibilityDate$H,
|
|
82032
|
+
metadata: metadata$H,
|
|
82033
|
+
schema: schema$H,
|
|
82034
|
+
type: type$H
|
|
82035
82035
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82036
82036
|
function defineRegistry(options) {
|
|
82037
82037
|
const {
|
|
@@ -82396,20 +82396,20 @@ function defaultActionsConfig() {
|
|
|
82396
82396
|
items: []
|
|
82397
82397
|
};
|
|
82398
82398
|
}
|
|
82399
|
-
const type$
|
|
82400
|
-
const compatibilityDate$
|
|
82401
|
-
const metadata$
|
|
82399
|
+
const type$G = "com.shwfed.block.actions";
|
|
82400
|
+
const compatibilityDate$G = "2026-05-06";
|
|
82401
|
+
const metadata$G = {
|
|
82402
82402
|
name: "操作按钮",
|
|
82403
82403
|
icon: "fluent:cursor-click-20-regular",
|
|
82404
82404
|
w: { initial: 8, min: 8, max: Infinity },
|
|
82405
82405
|
h: { initial: 2, min: 2, max: Infinity }
|
|
82406
82406
|
};
|
|
82407
|
-
function schema$
|
|
82407
|
+
function schema$G(configure, _blockRef) {
|
|
82408
82408
|
const ActionsSchema = ActionsConfig(configure);
|
|
82409
82409
|
return Struct({
|
|
82410
82410
|
id: UUID.annotations({ description: "块唯一标识" }),
|
|
82411
|
-
type: tag(type$
|
|
82412
|
-
compatibilityDate: tag(compatibilityDate$
|
|
82411
|
+
type: tag(type$G),
|
|
82412
|
+
compatibilityDate: tag(compatibilityDate$G),
|
|
82413
82413
|
actions: ActionsSchema.annotations({
|
|
82414
82414
|
title: "操作按钮配置",
|
|
82415
82415
|
description: "内嵌的 Actions 组件配置"
|
|
@@ -82424,11 +82424,11 @@ function defaultBody$5() {
|
|
|
82424
82424
|
}
|
|
82425
82425
|
const __vite_glob_0_0$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82426
82426
|
__proto__: null,
|
|
82427
|
-
compatibilityDate: compatibilityDate$
|
|
82427
|
+
compatibilityDate: compatibilityDate$G,
|
|
82428
82428
|
defaultBody: defaultBody$5,
|
|
82429
|
-
metadata: metadata$
|
|
82430
|
-
schema: schema$
|
|
82431
|
-
type: type$
|
|
82429
|
+
metadata: metadata$G,
|
|
82430
|
+
schema: schema$G,
|
|
82431
|
+
type: type$G
|
|
82432
82432
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82433
82433
|
function commonFieldFields(configure) {
|
|
82434
82434
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
@@ -82475,18 +82475,18 @@ function derivedField(configure, resultType) {
|
|
|
82475
82475
|
})
|
|
82476
82476
|
);
|
|
82477
82477
|
}
|
|
82478
|
-
const type$
|
|
82479
|
-
const compatibilityDate$
|
|
82480
|
-
const metadata$
|
|
82478
|
+
const type$F = "com.shwfed.form.field.markdown";
|
|
82479
|
+
const compatibilityDate$F = "2026-04-22";
|
|
82480
|
+
const metadata$F = {
|
|
82481
82481
|
name: "Markdown",
|
|
82482
82482
|
icon: "fluent:markdown-20-regular",
|
|
82483
82483
|
w: { initial: 8, min: 2, max: Infinity },
|
|
82484
82484
|
h: { initial: 2, min: 2, max: Infinity }
|
|
82485
82485
|
};
|
|
82486
|
-
function schema$
|
|
82486
|
+
function schema$F(configure) {
|
|
82487
82487
|
return Struct({
|
|
82488
|
-
type: Literal2(type$
|
|
82489
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82488
|
+
type: Literal2(type$F),
|
|
82489
|
+
compatibilityDate: Literal2(compatibilityDate$F),
|
|
82490
82490
|
...commonFieldFields(configure),
|
|
82491
82491
|
content: Locale.annotations({
|
|
82492
82492
|
title: "内容",
|
|
@@ -82499,24 +82499,24 @@ function schema$D(configure) {
|
|
|
82499
82499
|
}
|
|
82500
82500
|
const __vite_glob_0_0$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82501
82501
|
__proto__: null,
|
|
82502
|
-
compatibilityDate: compatibilityDate$
|
|
82503
|
-
metadata: metadata$
|
|
82504
|
-
schema: schema$
|
|
82505
|
-
type: type$
|
|
82502
|
+
compatibilityDate: compatibilityDate$F,
|
|
82503
|
+
metadata: metadata$F,
|
|
82504
|
+
schema: schema$F,
|
|
82505
|
+
type: type$F
|
|
82506
82506
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82507
|
-
const type$
|
|
82508
|
-
const compatibilityDate$
|
|
82509
|
-
const metadata$
|
|
82507
|
+
const type$E = "com.shwfed.form.field.text";
|
|
82508
|
+
const compatibilityDate$E = "2026-04-22";
|
|
82509
|
+
const metadata$E = {
|
|
82510
82510
|
name: "文本输入",
|
|
82511
82511
|
icon: "fluent:text-field-20-regular",
|
|
82512
82512
|
w: { initial: 8, min: 4, max: Infinity },
|
|
82513
82513
|
h: { initial: 2, min: 2, max: 2 }
|
|
82514
82514
|
};
|
|
82515
|
-
function schema$
|
|
82515
|
+
function schema$E(configure) {
|
|
82516
82516
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
82517
82517
|
return Struct({
|
|
82518
|
-
type: Literal2(type$
|
|
82519
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82518
|
+
type: Literal2(type$E),
|
|
82519
|
+
compatibilityDate: Literal2(compatibilityDate$E),
|
|
82520
82520
|
...commonFieldFields(configure),
|
|
82521
82521
|
label: optional(Locale.annotations({
|
|
82522
82522
|
title: "标签",
|
|
@@ -82551,24 +82551,24 @@ function schema$C(configure) {
|
|
|
82551
82551
|
}
|
|
82552
82552
|
const __vite_glob_0_1$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82553
82553
|
__proto__: null,
|
|
82554
|
-
compatibilityDate: compatibilityDate$
|
|
82555
|
-
metadata: metadata$
|
|
82556
|
-
schema: schema$
|
|
82557
|
-
type: type$
|
|
82554
|
+
compatibilityDate: compatibilityDate$E,
|
|
82555
|
+
metadata: metadata$E,
|
|
82556
|
+
schema: schema$E,
|
|
82557
|
+
type: type$E
|
|
82558
82558
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82559
|
-
const type$
|
|
82560
|
-
const compatibilityDate$
|
|
82561
|
-
const metadata$
|
|
82559
|
+
const type$D = "com.shwfed.form.field.textarea";
|
|
82560
|
+
const compatibilityDate$D = "2026-04-22";
|
|
82561
|
+
const metadata$D = {
|
|
82562
82562
|
name: "多行文本输入",
|
|
82563
82563
|
icon: "fluent:text-description-20-regular",
|
|
82564
82564
|
w: { initial: 8, min: 4, max: Infinity },
|
|
82565
82565
|
h: { initial: 3, min: 2, max: Infinity, grow: true }
|
|
82566
82566
|
};
|
|
82567
|
-
function schema$
|
|
82567
|
+
function schema$D(configure) {
|
|
82568
82568
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
82569
82569
|
return Struct({
|
|
82570
|
-
type: Literal2(type$
|
|
82571
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82570
|
+
type: Literal2(type$D),
|
|
82571
|
+
compatibilityDate: Literal2(compatibilityDate$D),
|
|
82572
82572
|
...commonFieldFields(configure),
|
|
82573
82573
|
label: optional(Locale.annotations({
|
|
82574
82574
|
title: "标签",
|
|
@@ -82607,25 +82607,25 @@ function schema$B(configure) {
|
|
|
82607
82607
|
}
|
|
82608
82608
|
const __vite_glob_0_2$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82609
82609
|
__proto__: null,
|
|
82610
|
-
compatibilityDate: compatibilityDate$
|
|
82611
|
-
metadata: metadata$
|
|
82612
|
-
schema: schema$
|
|
82613
|
-
type: type$
|
|
82610
|
+
compatibilityDate: compatibilityDate$D,
|
|
82611
|
+
metadata: metadata$D,
|
|
82612
|
+
schema: schema$D,
|
|
82613
|
+
type: type$D
|
|
82614
82614
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82615
|
-
const type$
|
|
82616
|
-
const compatibilityDate$
|
|
82617
|
-
const metadata$
|
|
82615
|
+
const type$C = "com.shwfed.form.field.actions";
|
|
82616
|
+
const compatibilityDate$C = "2026-04-24";
|
|
82617
|
+
const metadata$C = {
|
|
82618
82618
|
name: "操作",
|
|
82619
82619
|
icon: "fluent:cursor-click-20-regular",
|
|
82620
82620
|
w: { initial: 8, min: 4, max: Infinity },
|
|
82621
82621
|
h: { initial: 2, min: 2, max: Infinity }
|
|
82622
82622
|
};
|
|
82623
|
-
function schema$
|
|
82623
|
+
function schema$C(configure) {
|
|
82624
82624
|
const { fields: actionFields } = ActionSchemaFields(configure);
|
|
82625
82625
|
const { size: _size, groups, items: items2, ...rest } = actionFields;
|
|
82626
82626
|
return Struct({
|
|
82627
|
-
type: Literal2(type$
|
|
82628
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82627
|
+
type: Literal2(type$C),
|
|
82628
|
+
compatibilityDate: Literal2(compatibilityDate$C),
|
|
82629
82629
|
...commonFieldFields(configure),
|
|
82630
82630
|
...rest,
|
|
82631
82631
|
// Form's add-field factory creates new fields with only { type, compatibilityDate, id },
|
|
@@ -82639,14 +82639,14 @@ function schema$A(configure) {
|
|
|
82639
82639
|
}
|
|
82640
82640
|
const __vite_glob_0_3$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82641
82641
|
__proto__: null,
|
|
82642
|
-
compatibilityDate: compatibilityDate$
|
|
82643
|
-
metadata: metadata$
|
|
82644
|
-
schema: schema$
|
|
82645
|
-
type: type$
|
|
82642
|
+
compatibilityDate: compatibilityDate$C,
|
|
82643
|
+
metadata: metadata$C,
|
|
82644
|
+
schema: schema$C,
|
|
82645
|
+
type: type$C
|
|
82646
82646
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82647
|
-
const type$
|
|
82648
|
-
const compatibilityDate$
|
|
82649
|
-
const metadata$
|
|
82647
|
+
const type$B = "com.shwfed.form.field.combobox.single";
|
|
82648
|
+
const compatibilityDate$B = "2026-04-24";
|
|
82649
|
+
const metadata$B = {
|
|
82650
82650
|
name: "下拉单选",
|
|
82651
82651
|
icon: "fluent:chevron-down-20-regular",
|
|
82652
82652
|
w: { initial: 8, min: 4, max: Infinity },
|
|
@@ -82659,14 +82659,14 @@ function configureWithOption$1(configure) {
|
|
|
82659
82659
|
};
|
|
82660
82660
|
}
|
|
82661
82661
|
const isListType$2 = (actual) => actual === "dyn" || actual.startsWith("list");
|
|
82662
|
-
function schema$
|
|
82662
|
+
function schema$B(configure) {
|
|
82663
82663
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
82664
82664
|
const CelOptions = Expression({ configure, resultType: isListType$2 });
|
|
82665
82665
|
const CelOptionValue = Expression({ configure: configureWithOption$1(configure), resultType: "dyn" });
|
|
82666
82666
|
const LocaleOptionLabel = LocaleMarkdown({ configure: configureWithOption$1(configure) });
|
|
82667
82667
|
return Struct({
|
|
82668
|
-
type: Literal2(type$
|
|
82669
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82668
|
+
type: Literal2(type$B),
|
|
82669
|
+
compatibilityDate: Literal2(compatibilityDate$B),
|
|
82670
82670
|
...commonFieldFields(configure),
|
|
82671
82671
|
label: optional(Locale.annotations({
|
|
82672
82672
|
title: "标签",
|
|
@@ -82713,14 +82713,14 @@ function schema$z(configure) {
|
|
|
82713
82713
|
}
|
|
82714
82714
|
const __vite_glob_0_4$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82715
82715
|
__proto__: null,
|
|
82716
|
-
compatibilityDate: compatibilityDate$
|
|
82717
|
-
metadata: metadata$
|
|
82718
|
-
schema: schema$
|
|
82719
|
-
type: type$
|
|
82716
|
+
compatibilityDate: compatibilityDate$B,
|
|
82717
|
+
metadata: metadata$B,
|
|
82718
|
+
schema: schema$B,
|
|
82719
|
+
type: type$B
|
|
82720
82720
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82721
|
-
const type$
|
|
82722
|
-
const compatibilityDate$
|
|
82723
|
-
const metadata$
|
|
82721
|
+
const type$A = "com.shwfed.form.field.date";
|
|
82722
|
+
const compatibilityDate$A = "2026-04-27";
|
|
82723
|
+
const metadata$A = {
|
|
82724
82724
|
name: "日期",
|
|
82725
82725
|
icon: "fluent:calendar-ltr-20-regular",
|
|
82726
82726
|
w: { initial: 8, min: 4, max: Infinity },
|
|
@@ -82742,12 +82742,12 @@ function presetSchema$3(configure) {
|
|
|
82742
82742
|
title: "DateFieldPreset"
|
|
82743
82743
|
});
|
|
82744
82744
|
}
|
|
82745
|
-
function schema$
|
|
82745
|
+
function schema$A(configure) {
|
|
82746
82746
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
82747
82747
|
const Preset = presetSchema$3(configure);
|
|
82748
82748
|
return Struct({
|
|
82749
|
-
type: Literal2(type$
|
|
82750
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82749
|
+
type: Literal2(type$A),
|
|
82750
|
+
compatibilityDate: Literal2(compatibilityDate$A),
|
|
82751
82751
|
...commonFieldFields(configure),
|
|
82752
82752
|
label: optional(Locale.annotations({
|
|
82753
82753
|
title: "标签",
|
|
@@ -82794,14 +82794,14 @@ function schema$y(configure) {
|
|
|
82794
82794
|
}
|
|
82795
82795
|
const __vite_glob_0_5$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82796
82796
|
__proto__: null,
|
|
82797
|
-
compatibilityDate: compatibilityDate$
|
|
82798
|
-
metadata: metadata$
|
|
82797
|
+
compatibilityDate: compatibilityDate$A,
|
|
82798
|
+
metadata: metadata$A,
|
|
82799
82799
|
presetSchema: presetSchema$3,
|
|
82800
|
-
schema: schema$
|
|
82801
|
-
type: type$
|
|
82800
|
+
schema: schema$A,
|
|
82801
|
+
type: type$A
|
|
82802
82802
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82803
|
-
const type$
|
|
82804
|
-
const compatibilityDate$
|
|
82803
|
+
const type$z = "com.shwfed.form.field.daterange";
|
|
82804
|
+
const compatibilityDate$z = "2026-04-27";
|
|
82805
82805
|
const BindingPath$3 = String$.pipe(minLength(1));
|
|
82806
82806
|
const SplitBinding$3 = Tuple(BindingPath$3, BindingPath$3).pipe(
|
|
82807
82807
|
filter(([a, b]) => a !== b, {
|
|
@@ -82812,7 +82812,7 @@ const bindingSchema$3 = Union2(BindingPath$3, SplitBinding$3).annotations({
|
|
|
82812
82812
|
title: "绑定路径",
|
|
82813
82813
|
description: "写入表单状态的 `dot-prop` 路径;填写单个路径时写入 `[start, end]` 字符串数组,例如 `event.range`;填写 `[起始路径, 结束路径]` 元组时分别写入两端;留空则为非受控字段"
|
|
82814
82814
|
});
|
|
82815
|
-
const metadata$
|
|
82815
|
+
const metadata$z = {
|
|
82816
82816
|
name: "日期范围",
|
|
82817
82817
|
icon: "fluent:calendar-arrow-right-20-regular",
|
|
82818
82818
|
w: { initial: 10, min: 10, max: Infinity },
|
|
@@ -82838,12 +82838,12 @@ function presetSchema$2(configure) {
|
|
|
82838
82838
|
title: "DateRangeFieldPreset"
|
|
82839
82839
|
});
|
|
82840
82840
|
}
|
|
82841
|
-
function schema$
|
|
82841
|
+
function schema$z(configure) {
|
|
82842
82842
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
82843
82843
|
const Preset = presetSchema$2(configure);
|
|
82844
82844
|
return Struct({
|
|
82845
|
-
type: Literal2(type$
|
|
82846
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82845
|
+
type: Literal2(type$z),
|
|
82846
|
+
compatibilityDate: Literal2(compatibilityDate$z),
|
|
82847
82847
|
...commonFieldFields(configure),
|
|
82848
82848
|
label: optional(Locale.annotations({
|
|
82849
82849
|
title: "标签",
|
|
@@ -82902,16 +82902,16 @@ function defaults$6() {
|
|
|
82902
82902
|
}
|
|
82903
82903
|
const __vite_glob_0_6$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82904
82904
|
__proto__: null,
|
|
82905
|
-
compatibilityDate: compatibilityDate$
|
|
82905
|
+
compatibilityDate: compatibilityDate$z,
|
|
82906
82906
|
defaults: defaults$6,
|
|
82907
|
-
metadata: metadata$
|
|
82907
|
+
metadata: metadata$z,
|
|
82908
82908
|
presetSchema: presetSchema$2,
|
|
82909
|
-
schema: schema$
|
|
82910
|
-
type: type$
|
|
82909
|
+
schema: schema$z,
|
|
82910
|
+
type: type$z
|
|
82911
82911
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82912
|
-
const type$
|
|
82913
|
-
const compatibilityDate$
|
|
82914
|
-
const metadata$
|
|
82912
|
+
const type$y = "com.shwfed.form.field.datetime";
|
|
82913
|
+
const compatibilityDate$y = "2026-04-27";
|
|
82914
|
+
const metadata$y = {
|
|
82915
82915
|
name: "日期时间",
|
|
82916
82916
|
icon: "fluent:calendar-clock-20-regular",
|
|
82917
82917
|
w: { initial: 8, min: 4, max: Infinity },
|
|
@@ -82943,12 +82943,12 @@ function presetSchema$1(configure) {
|
|
|
82943
82943
|
title: "DateTimeFieldPreset"
|
|
82944
82944
|
});
|
|
82945
82945
|
}
|
|
82946
|
-
function schema$
|
|
82946
|
+
function schema$y(configure) {
|
|
82947
82947
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
82948
82948
|
const Preset = presetSchema$1(configure);
|
|
82949
82949
|
return Struct({
|
|
82950
|
-
type: Literal2(type$
|
|
82951
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82950
|
+
type: Literal2(type$y),
|
|
82951
|
+
compatibilityDate: Literal2(compatibilityDate$y),
|
|
82952
82952
|
...commonFieldFields(configure),
|
|
82953
82953
|
label: optional(Locale.annotations({
|
|
82954
82954
|
title: "标签",
|
|
@@ -83006,14 +83006,14 @@ const __vite_glob_0_7$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
83006
83006
|
HOUR_CYCLE_OPTIONS: HOUR_CYCLE_OPTIONS$3,
|
|
83007
83007
|
TIME_GRANULARITIES: TIME_GRANULARITIES$3,
|
|
83008
83008
|
TIME_GRANULARITY_OPTIONS: TIME_GRANULARITY_OPTIONS$3,
|
|
83009
|
-
compatibilityDate: compatibilityDate$
|
|
83010
|
-
metadata: metadata$
|
|
83009
|
+
compatibilityDate: compatibilityDate$y,
|
|
83010
|
+
metadata: metadata$y,
|
|
83011
83011
|
presetSchema: presetSchema$1,
|
|
83012
|
-
schema: schema$
|
|
83013
|
-
type: type$
|
|
83012
|
+
schema: schema$y,
|
|
83013
|
+
type: type$y
|
|
83014
83014
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
83015
|
-
const type$
|
|
83016
|
-
const compatibilityDate$
|
|
83015
|
+
const type$x = "com.shwfed.form.field.datetimerange";
|
|
83016
|
+
const compatibilityDate$x = "2026-04-27";
|
|
83017
83017
|
const BindingPath$2 = String$.pipe(minLength(1));
|
|
83018
83018
|
const SplitBinding$2 = Tuple(BindingPath$2, BindingPath$2).pipe(
|
|
83019
83019
|
filter(([a, b]) => a !== b, {
|
|
@@ -83024,7 +83024,7 @@ const bindingSchema$2 = Union2(BindingPath$2, SplitBinding$2).annotations({
|
|
|
83024
83024
|
title: "绑定路径",
|
|
83025
83025
|
description: "写入表单状态的 `dot-prop` 路径;填写单个路径时写入 `[start, end]` 字符串数组,例如 `event.range`;填写 `[起始路径, 结束路径]` 元组时分别写入两端;留空则为非受控字段"
|
|
83026
83026
|
});
|
|
83027
|
-
const metadata$
|
|
83027
|
+
const metadata$x = {
|
|
83028
83028
|
name: "日期时间范围",
|
|
83029
83029
|
icon: "fluent:calendar-clock-20-regular",
|
|
83030
83030
|
w: { initial: 14, min: 14, max: Infinity },
|
|
@@ -83060,12 +83060,12 @@ function presetSchema(configure) {
|
|
|
83060
83060
|
title: "DateTimeRangeFieldPreset"
|
|
83061
83061
|
});
|
|
83062
83062
|
}
|
|
83063
|
-
function schema$
|
|
83063
|
+
function schema$x(configure) {
|
|
83064
83064
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
83065
83065
|
const Preset = presetSchema(configure);
|
|
83066
83066
|
return Struct({
|
|
83067
|
-
type: Literal2(type$
|
|
83068
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
83067
|
+
type: Literal2(type$x),
|
|
83068
|
+
compatibilityDate: Literal2(compatibilityDate$x),
|
|
83069
83069
|
...commonFieldFields(configure),
|
|
83070
83070
|
label: optional(Locale.annotations({
|
|
83071
83071
|
title: "标签",
|
|
@@ -83135,16 +83135,16 @@ const __vite_glob_0_8$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
83135
83135
|
HOUR_CYCLE_OPTIONS: HOUR_CYCLE_OPTIONS$2,
|
|
83136
83136
|
TIME_GRANULARITIES: TIME_GRANULARITIES$2,
|
|
83137
83137
|
TIME_GRANULARITY_OPTIONS: TIME_GRANULARITY_OPTIONS$2,
|
|
83138
|
-
compatibilityDate: compatibilityDate$
|
|
83138
|
+
compatibilityDate: compatibilityDate$x,
|
|
83139
83139
|
defaults: defaults$5,
|
|
83140
|
-
metadata: metadata$
|
|
83140
|
+
metadata: metadata$x,
|
|
83141
83141
|
presetSchema,
|
|
83142
|
-
schema: schema$
|
|
83143
|
-
type: type$
|
|
83142
|
+
schema: schema$x,
|
|
83143
|
+
type: type$x
|
|
83144
83144
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
83145
|
-
const type$
|
|
83146
|
-
const compatibilityDate$
|
|
83147
|
-
const metadata$
|
|
83145
|
+
const type$w = "com.shwfed.form.field.time";
|
|
83146
|
+
const compatibilityDate$w = "2026-04-27";
|
|
83147
|
+
const metadata$w = {
|
|
83148
83148
|
name: "时间",
|
|
83149
83149
|
icon: "fluent:clock-20-regular",
|
|
83150
83150
|
w: { initial: 8, min: 4, max: Infinity },
|
|
@@ -83160,11 +83160,11 @@ const HOUR_CYCLE_OPTIONS$1 = [
|
|
|
83160
83160
|
{ value: 24, label: "24 小时制" },
|
|
83161
83161
|
{ value: 12, label: "12 小时制" }
|
|
83162
83162
|
];
|
|
83163
|
-
function schema$
|
|
83163
|
+
function schema$w(configure) {
|
|
83164
83164
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
83165
83165
|
return Struct({
|
|
83166
|
-
type: Literal2(type$
|
|
83167
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
83166
|
+
type: Literal2(type$w),
|
|
83167
|
+
compatibilityDate: Literal2(compatibilityDate$w),
|
|
83168
83168
|
...commonFieldFields(configure),
|
|
83169
83169
|
label: optional(Locale.annotations({
|
|
83170
83170
|
title: "标签",
|
|
@@ -83210,13 +83210,13 @@ const __vite_glob_0_9$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
83210
83210
|
HOUR_CYCLE_OPTIONS: HOUR_CYCLE_OPTIONS$1,
|
|
83211
83211
|
TIME_GRANULARITIES: TIME_GRANULARITIES$1,
|
|
83212
83212
|
TIME_GRANULARITY_OPTIONS: TIME_GRANULARITY_OPTIONS$1,
|
|
83213
|
-
compatibilityDate: compatibilityDate$
|
|
83214
|
-
metadata: metadata$
|
|
83215
|
-
schema: schema$
|
|
83216
|
-
type: type$
|
|
83213
|
+
compatibilityDate: compatibilityDate$w,
|
|
83214
|
+
metadata: metadata$w,
|
|
83215
|
+
schema: schema$w,
|
|
83216
|
+
type: type$w
|
|
83217
83217
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
83218
|
-
const type$
|
|
83219
|
-
const compatibilityDate$
|
|
83218
|
+
const type$v = "com.shwfed.form.field.timerange";
|
|
83219
|
+
const compatibilityDate$v = "2026-04-27";
|
|
83220
83220
|
const BindingPath$1 = String$.pipe(minLength(1));
|
|
83221
83221
|
const SplitBinding$1 = Tuple(BindingPath$1, BindingPath$1).pipe(
|
|
83222
83222
|
filter(([a, b]) => a !== b, {
|
|
@@ -83227,7 +83227,7 @@ const bindingSchema$1 = Union2(BindingPath$1, SplitBinding$1).annotations({
|
|
|
83227
83227
|
title: "绑定路径",
|
|
83228
83228
|
description: "写入表单状态的 `dot-prop` 路径;填写单个路径时写入 `[start, end]` 字符串数组,例如 `meeting.timeRange`;填写 `[起始路径, 结束路径]` 元组时分别写入两端;留空则为非受控字段"
|
|
83229
83229
|
});
|
|
83230
|
-
const metadata$
|
|
83230
|
+
const metadata$v = {
|
|
83231
83231
|
name: "时间范围",
|
|
83232
83232
|
icon: "fluent:clock-arrow-download-20-regular",
|
|
83233
83233
|
w: { initial: 14, min: 14, max: Infinity },
|
|
@@ -83243,11 +83243,11 @@ const HOUR_CYCLE_OPTIONS = [
|
|
|
83243
83243
|
{ value: 24, label: "24 小时制" },
|
|
83244
83244
|
{ value: 12, label: "12 小时制" }
|
|
83245
83245
|
];
|
|
83246
|
-
function schema$
|
|
83246
|
+
function schema$v(configure) {
|
|
83247
83247
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
83248
83248
|
return Struct({
|
|
83249
|
-
type: Literal2(type$
|
|
83250
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
83249
|
+
type: Literal2(type$v),
|
|
83250
|
+
compatibilityDate: Literal2(compatibilityDate$v),
|
|
83251
83251
|
...commonFieldFields(configure),
|
|
83252
83252
|
label: optional(Locale.annotations({
|
|
83253
83253
|
title: "标签",
|
|
@@ -83297,26 +83297,26 @@ const __vite_glob_0_10$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
83297
83297
|
HOUR_CYCLE_OPTIONS,
|
|
83298
83298
|
TIME_GRANULARITIES,
|
|
83299
83299
|
TIME_GRANULARITY_OPTIONS,
|
|
83300
|
-
compatibilityDate: compatibilityDate$
|
|
83300
|
+
compatibilityDate: compatibilityDate$v,
|
|
83301
83301
|
defaults: defaults$4,
|
|
83302
|
-
metadata: metadata$
|
|
83303
|
-
schema: schema$
|
|
83304
|
-
type: type$
|
|
83302
|
+
metadata: metadata$v,
|
|
83303
|
+
schema: schema$v,
|
|
83304
|
+
type: type$v
|
|
83305
83305
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
83306
|
-
const type$
|
|
83307
|
-
const compatibilityDate$
|
|
83308
|
-
const metadata$
|
|
83306
|
+
const type$u = "com.shwfed.form.field.number";
|
|
83307
|
+
const compatibilityDate$u = "2026-04-28";
|
|
83308
|
+
const metadata$u = {
|
|
83309
83309
|
name: "数值输入",
|
|
83310
83310
|
icon: "fluent:number-symbol-20-regular",
|
|
83311
83311
|
w: { initial: 8, min: 4, max: Infinity },
|
|
83312
83312
|
h: { initial: 2, min: 2, max: 2 }
|
|
83313
83313
|
};
|
|
83314
|
-
function schema$
|
|
83314
|
+
function schema$u(configure) {
|
|
83315
83315
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
83316
83316
|
const CelNumber = Expression({ configure, resultType: "number" });
|
|
83317
83317
|
return Struct({
|
|
83318
|
-
type: Literal2(type$
|
|
83319
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
83318
|
+
type: Literal2(type$u),
|
|
83319
|
+
compatibilityDate: Literal2(compatibilityDate$u),
|
|
83320
83320
|
...commonFieldFields(configure),
|
|
83321
83321
|
label: optional(Locale.annotations({
|
|
83322
83322
|
title: "标签",
|
|
@@ -83375,13 +83375,13 @@ function schema$s(configure) {
|
|
|
83375
83375
|
}
|
|
83376
83376
|
const __vite_glob_0_11$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
83377
83377
|
__proto__: null,
|
|
83378
|
-
compatibilityDate: compatibilityDate$
|
|
83379
|
-
metadata: metadata$
|
|
83380
|
-
schema: schema$
|
|
83381
|
-
type: type$
|
|
83378
|
+
compatibilityDate: compatibilityDate$u,
|
|
83379
|
+
metadata: metadata$u,
|
|
83380
|
+
schema: schema$u,
|
|
83381
|
+
type: type$u
|
|
83382
83382
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
83383
|
-
const type$
|
|
83384
|
-
const compatibilityDate$
|
|
83383
|
+
const type$t = "com.shwfed.form.field.numberrange";
|
|
83384
|
+
const compatibilityDate$t = "2026-04-28";
|
|
83385
83385
|
const BindingPath = String$.pipe(minLength(1));
|
|
83386
83386
|
const SplitBinding = Tuple(BindingPath, BindingPath).pipe(
|
|
83387
83387
|
filter(([a, b]) => a !== b, {
|
|
@@ -83392,18 +83392,18 @@ const bindingSchema = Union2(BindingPath, SplitBinding).annotations({
|
|
|
83392
83392
|
title: "绑定路径",
|
|
83393
83393
|
description: "写入表单状态的 `dot-prop` 路径;填写单个路径时写入 `[start, end]` 数值数组,例如 `score.range`;填写 `[起始路径, 结束路径]` 元组时分别写入两端;留空则为非受控字段"
|
|
83394
83394
|
});
|
|
83395
|
-
const metadata$
|
|
83395
|
+
const metadata$t = {
|
|
83396
83396
|
name: "数值范围",
|
|
83397
83397
|
icon: "fluent:arrow-bidirectional-left-right-20-regular",
|
|
83398
83398
|
w: { initial: 8, min: 4, max: Infinity },
|
|
83399
83399
|
h: { initial: 2, min: 2, max: 2 }
|
|
83400
83400
|
};
|
|
83401
|
-
function schema$
|
|
83401
|
+
function schema$t(configure) {
|
|
83402
83402
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
83403
83403
|
const CelNumber = Expression({ configure, resultType: "number" });
|
|
83404
83404
|
return Struct({
|
|
83405
|
-
type: Literal2(type$
|
|
83406
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
83405
|
+
type: Literal2(type$t),
|
|
83406
|
+
compatibilityDate: Literal2(compatibilityDate$t),
|
|
83407
83407
|
...commonFieldFields(configure),
|
|
83408
83408
|
label: optional(Locale.annotations({
|
|
83409
83409
|
title: "标签",
|
|
@@ -83470,25 +83470,25 @@ function defaults$3() {
|
|
|
83470
83470
|
}
|
|
83471
83471
|
const __vite_glob_0_12$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
83472
83472
|
__proto__: null,
|
|
83473
|
-
compatibilityDate: compatibilityDate$
|
|
83473
|
+
compatibilityDate: compatibilityDate$t,
|
|
83474
83474
|
defaults: defaults$3,
|
|
83475
|
-
metadata: metadata$
|
|
83476
|
-
schema: schema$
|
|
83477
|
-
type: type$
|
|
83475
|
+
metadata: metadata$t,
|
|
83476
|
+
schema: schema$t,
|
|
83477
|
+
type: type$t
|
|
83478
83478
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
83479
|
-
const type$
|
|
83480
|
-
const compatibilityDate$
|
|
83481
|
-
const metadata$
|
|
83479
|
+
const type$s = "com.shwfed.form.field.switch";
|
|
83480
|
+
const compatibilityDate$s = "2026-04-28";
|
|
83481
|
+
const metadata$s = {
|
|
83482
83482
|
name: "开关",
|
|
83483
83483
|
icon: "fluent:toggle-left-20-regular",
|
|
83484
83484
|
w: { initial: 4, min: 4, max: Infinity },
|
|
83485
83485
|
h: { initial: 2, min: 2, max: 2 }
|
|
83486
83486
|
};
|
|
83487
|
-
function schema$
|
|
83487
|
+
function schema$s(configure) {
|
|
83488
83488
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
83489
83489
|
return Struct({
|
|
83490
|
-
type: Literal2(type$
|
|
83491
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
83490
|
+
type: Literal2(type$s),
|
|
83491
|
+
compatibilityDate: Literal2(compatibilityDate$s),
|
|
83492
83492
|
...commonFieldFields(configure),
|
|
83493
83493
|
label: optional(Locale.annotations({
|
|
83494
83494
|
title: "标签",
|
|
@@ -83524,12 +83524,12 @@ function schema$q(configure) {
|
|
|
83524
83524
|
description: "布尔开关"
|
|
83525
83525
|
});
|
|
83526
83526
|
}
|
|
83527
|
-
const __vite_glob_0_13 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
83527
|
+
const __vite_glob_0_13$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
83528
83528
|
__proto__: null,
|
|
83529
|
-
compatibilityDate: compatibilityDate$
|
|
83530
|
-
metadata: metadata$
|
|
83531
|
-
schema: schema$
|
|
83532
|
-
type: type$
|
|
83529
|
+
compatibilityDate: compatibilityDate$s,
|
|
83530
|
+
metadata: metadata$s,
|
|
83531
|
+
schema: schema$s,
|
|
83532
|
+
type: type$s
|
|
83533
83533
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
83534
83534
|
const decodeCache = {};
|
|
83535
83535
|
function getDecodeCache(exclude2) {
|
|
@@ -88780,9 +88780,9 @@ function interpolateMarkdown(template, $cel, context2) {
|
|
|
88780
88780
|
}
|
|
88781
88781
|
});
|
|
88782
88782
|
}
|
|
88783
|
-
const type$
|
|
88784
|
-
const compatibilityDate$
|
|
88785
|
-
const metadata$
|
|
88783
|
+
const type$r = "com.shwfed.form.field.combobox.single";
|
|
88784
|
+
const compatibilityDate$r = "2026-04-29";
|
|
88785
|
+
const metadata$r = {
|
|
88786
88786
|
name: "下拉单选(硬编码)",
|
|
88787
88787
|
icon: "fluent:chevron-down-20-regular",
|
|
88788
88788
|
w: { initial: 8, min: 4, max: Infinity },
|
|
@@ -88817,12 +88817,12 @@ function itemSchema$3(configure) {
|
|
|
88817
88817
|
title: "ComboboxSingleItem"
|
|
88818
88818
|
});
|
|
88819
88819
|
}
|
|
88820
|
-
function schema$
|
|
88820
|
+
function schema$r(configure) {
|
|
88821
88821
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
88822
88822
|
const Item = itemSchema$3(configure);
|
|
88823
88823
|
return Struct({
|
|
88824
|
-
type: Literal2(type$
|
|
88825
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
88824
|
+
type: Literal2(type$r),
|
|
88825
|
+
compatibilityDate: Literal2(compatibilityDate$r),
|
|
88826
88826
|
...commonFieldFields(configure),
|
|
88827
88827
|
label: optional(Locale.annotations({
|
|
88828
88828
|
title: "标签",
|
|
@@ -88875,7 +88875,7 @@ function formatErrorMessage(err) {
|
|
|
88875
88875
|
return String(err);
|
|
88876
88876
|
}
|
|
88877
88877
|
}
|
|
88878
|
-
const migrate = (prev, ctx) => {
|
|
88878
|
+
const migrate$2 = (prev, ctx) => {
|
|
88879
88879
|
const legacy = prev;
|
|
88880
88880
|
return gen(function* () {
|
|
88881
88881
|
const rawOptions = yield* mapError$1(
|
|
@@ -88914,23 +88914,23 @@ const migrate = (prev, ctx) => {
|
|
|
88914
88914
|
} = legacy;
|
|
88915
88915
|
return {
|
|
88916
88916
|
...carryover,
|
|
88917
|
-
compatibilityDate: compatibilityDate$
|
|
88917
|
+
compatibilityDate: compatibilityDate$r,
|
|
88918
88918
|
items: items2
|
|
88919
88919
|
};
|
|
88920
88920
|
});
|
|
88921
88921
|
};
|
|
88922
|
-
const __vite_glob_0_14 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
88922
|
+
const __vite_glob_0_14$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
88923
88923
|
__proto__: null,
|
|
88924
|
-
compatibilityDate: compatibilityDate$
|
|
88924
|
+
compatibilityDate: compatibilityDate$r,
|
|
88925
88925
|
itemSchema: itemSchema$3,
|
|
88926
|
-
metadata: metadata$
|
|
88927
|
-
migrate,
|
|
88928
|
-
schema: schema$
|
|
88929
|
-
type: type$
|
|
88926
|
+
metadata: metadata$r,
|
|
88927
|
+
migrate: migrate$2,
|
|
88928
|
+
schema: schema$r,
|
|
88929
|
+
type: type$r
|
|
88930
88930
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
88931
|
-
const type$
|
|
88932
|
-
const compatibilityDate$
|
|
88933
|
-
const metadata$
|
|
88931
|
+
const type$q = "com.shwfed.form.field.upload";
|
|
88932
|
+
const compatibilityDate$q = "2026-05-12";
|
|
88933
|
+
const metadata$q = {
|
|
88934
88934
|
name: "文件上传",
|
|
88935
88935
|
icon: "fluent:cloud-arrow-up-20-regular",
|
|
88936
88936
|
w: { initial: 8, min: 8, max: Infinity },
|
|
@@ -88947,14 +88947,14 @@ function configureWithJson$1(configure) {
|
|
|
88947
88947
|
env.registerVariable("json", JSON_VAR$1.type, { description: JSON_VAR$1.description });
|
|
88948
88948
|
};
|
|
88949
88949
|
}
|
|
88950
|
-
function schema$
|
|
88950
|
+
function schema$q(configure) {
|
|
88951
88951
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
88952
88952
|
const CelHttpRequest = Expression({ configure, resultType: "HttpRequest" });
|
|
88953
88953
|
const CelDownloadRequest = Expression({ configure: configureWithJson$1(configure), resultType: "HttpRequest" });
|
|
88954
88954
|
const LocaleMd = LocaleMarkdown({ configure });
|
|
88955
88955
|
return Struct({
|
|
88956
|
-
type: Literal2(type$
|
|
88957
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
88956
|
+
type: Literal2(type$q),
|
|
88957
|
+
compatibilityDate: Literal2(compatibilityDate$q),
|
|
88958
88958
|
...commonFieldFields(configure),
|
|
88959
88959
|
label: optional(Locale.annotations({
|
|
88960
88960
|
title: "标签",
|
|
@@ -89034,14 +89034,14 @@ function schema$o(configure) {
|
|
|
89034
89034
|
const __vite_glob_0_15 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
89035
89035
|
__proto__: null,
|
|
89036
89036
|
JSON_VAR: JSON_VAR$1,
|
|
89037
|
-
compatibilityDate: compatibilityDate$
|
|
89038
|
-
metadata: metadata$
|
|
89039
|
-
schema: schema$
|
|
89040
|
-
type: type$
|
|
89037
|
+
compatibilityDate: compatibilityDate$q,
|
|
89038
|
+
metadata: metadata$q,
|
|
89039
|
+
schema: schema$q,
|
|
89040
|
+
type: type$q
|
|
89041
89041
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
89042
|
-
const type$
|
|
89043
|
-
const compatibilityDate$
|
|
89044
|
-
const metadata$
|
|
89042
|
+
const type$p = "com.shwfed.form.field.combobox.single.remote";
|
|
89043
|
+
const compatibilityDate$p = "2026-05-13";
|
|
89044
|
+
const metadata$p = {
|
|
89045
89045
|
name: "下拉单选(远程)",
|
|
89046
89046
|
icon: "fluent:cloud-arrow-down-20-regular",
|
|
89047
89047
|
w: { initial: 8, min: 4, max: Infinity },
|
|
@@ -89070,15 +89070,15 @@ function configureWithJson(configure) {
|
|
|
89070
89070
|
};
|
|
89071
89071
|
}
|
|
89072
89072
|
const isListType$1 = (actual) => actual === "dyn" || actual.startsWith("list");
|
|
89073
|
-
function schema$
|
|
89073
|
+
function schema$p(configure) {
|
|
89074
89074
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
89075
89075
|
const CelHttpRequest = Expression({ configure, resultType: "HttpRequest" });
|
|
89076
89076
|
const CelOptions = Expression({ configure: configureWithJson(configure), resultType: isListType$1 });
|
|
89077
89077
|
const CelOptionValue = Expression({ configure: configureWithOption(configure), resultType: "dyn" });
|
|
89078
89078
|
const LocaleOptionLabel = LocaleMarkdown({ configure: configureWithOption(configure) });
|
|
89079
89079
|
return Struct({
|
|
89080
|
-
type: Literal2(type$
|
|
89081
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
89080
|
+
type: Literal2(type$p),
|
|
89081
|
+
compatibilityDate: Literal2(compatibilityDate$p),
|
|
89082
89082
|
...commonFieldFields(configure),
|
|
89083
89083
|
label: optional(Locale.annotations({
|
|
89084
89084
|
title: "标签",
|
|
@@ -89131,20 +89131,20 @@ const __vite_glob_0_16 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
89131
89131
|
__proto__: null,
|
|
89132
89132
|
JSON_VAR,
|
|
89133
89133
|
OPTION_VAR,
|
|
89134
|
-
compatibilityDate: compatibilityDate$
|
|
89135
|
-
metadata: metadata$
|
|
89136
|
-
schema: schema$
|
|
89137
|
-
type: type$
|
|
89134
|
+
compatibilityDate: compatibilityDate$p,
|
|
89135
|
+
metadata: metadata$p,
|
|
89136
|
+
schema: schema$p,
|
|
89137
|
+
type: type$p
|
|
89138
89138
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
89139
|
-
const type$
|
|
89140
|
-
const compatibilityDate$
|
|
89141
|
-
const metadata$
|
|
89139
|
+
const type$o = "com.shwfed.form.field.list";
|
|
89140
|
+
const compatibilityDate$o = "2026-05-13";
|
|
89141
|
+
const metadata$o = {
|
|
89142
89142
|
name: "列表",
|
|
89143
89143
|
icon: "fluent:list-20-regular",
|
|
89144
89144
|
w: { initial: 12, min: 4, max: Infinity },
|
|
89145
89145
|
h: { initial: 6, min: 4, max: Infinity, grow: true }
|
|
89146
89146
|
};
|
|
89147
|
-
function schema$
|
|
89147
|
+
function schema$o(configure) {
|
|
89148
89148
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
89149
89149
|
const unitConfigure = (env) => {
|
|
89150
89150
|
configure(env);
|
|
@@ -89158,8 +89158,8 @@ function schema$m(configure) {
|
|
|
89158
89158
|
};
|
|
89159
89159
|
const Unit = suspend(() => FormUnit(unitConfigure));
|
|
89160
89160
|
return Struct({
|
|
89161
|
-
type: Literal2(type$
|
|
89162
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
89161
|
+
type: Literal2(type$o),
|
|
89162
|
+
compatibilityDate: Literal2(compatibilityDate$o),
|
|
89163
89163
|
...commonFieldFields(configure),
|
|
89164
89164
|
label: optional(Locale.annotations({
|
|
89165
89165
|
title: "标签",
|
|
@@ -89226,15 +89226,15 @@ function defaults$2() {
|
|
|
89226
89226
|
}
|
|
89227
89227
|
const __vite_glob_0_17 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
89228
89228
|
__proto__: null,
|
|
89229
|
-
compatibilityDate: compatibilityDate$
|
|
89229
|
+
compatibilityDate: compatibilityDate$o,
|
|
89230
89230
|
defaults: defaults$2,
|
|
89231
|
-
metadata: metadata$
|
|
89232
|
-
schema: schema$
|
|
89233
|
-
type: type$
|
|
89231
|
+
metadata: metadata$o,
|
|
89232
|
+
schema: schema$o,
|
|
89233
|
+
type: type$o
|
|
89234
89234
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
89235
|
-
const type$
|
|
89236
|
-
const compatibilityDate$
|
|
89237
|
-
const metadata$
|
|
89235
|
+
const type$n = "com.shwfed.form.field.checkbox.group";
|
|
89236
|
+
const compatibilityDate$n = "2026-05-17";
|
|
89237
|
+
const metadata$n = {
|
|
89238
89238
|
name: "复选框组",
|
|
89239
89239
|
icon: "fluent:checkbox-checked-20-regular",
|
|
89240
89240
|
w: { initial: 8, min: 2, max: Infinity },
|
|
@@ -89269,12 +89269,12 @@ function itemSchema$2(configure) {
|
|
|
89269
89269
|
title: "CheckboxGroupItem"
|
|
89270
89270
|
});
|
|
89271
89271
|
}
|
|
89272
|
-
function schema$
|
|
89272
|
+
function schema$n(configure) {
|
|
89273
89273
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
89274
89274
|
const Item = itemSchema$2(configure);
|
|
89275
89275
|
return Struct({
|
|
89276
|
-
type: Literal2(type$
|
|
89277
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
89276
|
+
type: Literal2(type$n),
|
|
89277
|
+
compatibilityDate: Literal2(compatibilityDate$n),
|
|
89278
89278
|
...commonFieldFields(configure),
|
|
89279
89279
|
label: optional(Locale.annotations({
|
|
89280
89280
|
title: "标签",
|
|
@@ -89308,15 +89308,15 @@ function schema$l(configure) {
|
|
|
89308
89308
|
}
|
|
89309
89309
|
const __vite_glob_0_18 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
89310
89310
|
__proto__: null,
|
|
89311
|
-
compatibilityDate: compatibilityDate$
|
|
89311
|
+
compatibilityDate: compatibilityDate$n,
|
|
89312
89312
|
itemSchema: itemSchema$2,
|
|
89313
|
-
metadata: metadata$
|
|
89314
|
-
schema: schema$
|
|
89315
|
-
type: type$
|
|
89313
|
+
metadata: metadata$n,
|
|
89314
|
+
schema: schema$n,
|
|
89315
|
+
type: type$n
|
|
89316
89316
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
89317
|
-
const type$
|
|
89318
|
-
const compatibilityDate$
|
|
89319
|
-
const metadata$
|
|
89317
|
+
const type$m = "com.shwfed.form.field.radio.group";
|
|
89318
|
+
const compatibilityDate$m = "2026-05-17";
|
|
89319
|
+
const metadata$m = {
|
|
89320
89320
|
name: "单选框组",
|
|
89321
89321
|
icon: "fluent:radio-button-20-regular",
|
|
89322
89322
|
w: { initial: 8, min: 2, max: Infinity },
|
|
@@ -89351,12 +89351,12 @@ function itemSchema$1(configure) {
|
|
|
89351
89351
|
title: "RadioGroupItem"
|
|
89352
89352
|
});
|
|
89353
89353
|
}
|
|
89354
|
-
function schema$
|
|
89354
|
+
function schema$m(configure) {
|
|
89355
89355
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
89356
89356
|
const Item = itemSchema$1(configure);
|
|
89357
89357
|
return Struct({
|
|
89358
|
-
type: Literal2(type$
|
|
89359
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
89358
|
+
type: Literal2(type$m),
|
|
89359
|
+
compatibilityDate: Literal2(compatibilityDate$m),
|
|
89360
89360
|
...commonFieldFields(configure),
|
|
89361
89361
|
label: optional(Locale.annotations({
|
|
89362
89362
|
title: "标签",
|
|
@@ -89390,11 +89390,11 @@ function schema$k(configure) {
|
|
|
89390
89390
|
}
|
|
89391
89391
|
const __vite_glob_0_19 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
89392
89392
|
__proto__: null,
|
|
89393
|
-
compatibilityDate: compatibilityDate$
|
|
89393
|
+
compatibilityDate: compatibilityDate$m,
|
|
89394
89394
|
itemSchema: itemSchema$1,
|
|
89395
|
-
metadata: metadata$
|
|
89396
|
-
schema: schema$
|
|
89397
|
-
type: type$
|
|
89395
|
+
metadata: metadata$m,
|
|
89396
|
+
schema: schema$m,
|
|
89397
|
+
type: type$m
|
|
89398
89398
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
89399
89399
|
const matchIconName = /^[a-z0-9]+(-[a-z0-9]+)*$/;
|
|
89400
89400
|
const stringToIcon = (value, validate2, allowSimpleName, provider = "") => {
|
|
@@ -90878,14 +90878,14 @@ function LocaleMarkdownWithRow(configure) {
|
|
|
90878
90878
|
function derivedRowField(configure, resultType) {
|
|
90879
90879
|
return derivedField(configureWithRow(configure), resultType);
|
|
90880
90880
|
}
|
|
90881
|
-
const type$
|
|
90882
|
-
const compatibilityDate$
|
|
90883
|
-
const metadata$
|
|
90881
|
+
const type$l = "com.shwfed.table.column.actions";
|
|
90882
|
+
const compatibilityDate$l = "2026-04-14";
|
|
90883
|
+
const metadata$l = {
|
|
90884
90884
|
name: "操作",
|
|
90885
90885
|
icon: "fluent:cursor-click-20-regular"
|
|
90886
90886
|
};
|
|
90887
90887
|
const registerRowVariables = registerRowVariablesIfAbsent;
|
|
90888
|
-
function schema$
|
|
90888
|
+
function schema$l(configure) {
|
|
90889
90889
|
const configureWithRow2 = (env) => {
|
|
90890
90890
|
configure(env);
|
|
90891
90891
|
registerRowVariables(env);
|
|
@@ -90893,8 +90893,8 @@ function schema$j(configure) {
|
|
|
90893
90893
|
const { fields: actionFields } = ActionSchemaFields(configureWithRow2);
|
|
90894
90894
|
const { size: _buttonSize, ...actionFieldsForColumn } = actionFields;
|
|
90895
90895
|
return Struct({
|
|
90896
|
-
type: Literal2(type$
|
|
90897
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
90896
|
+
type: Literal2(type$l),
|
|
90897
|
+
compatibilityDate: Literal2(compatibilityDate$l),
|
|
90898
90898
|
...columnIdentityFields(),
|
|
90899
90899
|
title: optional(Locale.annotations({ title: "标题", description: "列标题" })),
|
|
90900
90900
|
size: optional(Number$.pipe(finite(), positive()).annotations({
|
|
@@ -90908,7 +90908,7 @@ function schema$j(configure) {
|
|
|
90908
90908
|
...actionFieldsForColumn
|
|
90909
90909
|
}).annotations({ title: "ActionsRenderer", description: "操作渲染器" });
|
|
90910
90910
|
}
|
|
90911
|
-
function toColumnDef$
|
|
90911
|
+
function toColumnDef$e(value, { getLocaleText }) {
|
|
90912
90912
|
return {
|
|
90913
90913
|
header: value.title ? getLocaleText(value.title) : void 0,
|
|
90914
90914
|
enableSorting: false,
|
|
@@ -90921,23 +90921,23 @@ function toColumnDef$c(value, { getLocaleText }) {
|
|
|
90921
90921
|
}
|
|
90922
90922
|
const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
90923
90923
|
__proto__: null,
|
|
90924
|
-
compatibilityDate: compatibilityDate$
|
|
90925
|
-
metadata: metadata$
|
|
90924
|
+
compatibilityDate: compatibilityDate$l,
|
|
90925
|
+
metadata: metadata$l,
|
|
90926
90926
|
registerRowVariables,
|
|
90927
|
-
schema: schema$
|
|
90928
|
-
toColumnDef: toColumnDef$
|
|
90929
|
-
type: type$
|
|
90927
|
+
schema: schema$l,
|
|
90928
|
+
toColumnDef: toColumnDef$e,
|
|
90929
|
+
type: type$l
|
|
90930
90930
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
90931
|
-
const type$
|
|
90932
|
-
const compatibilityDate$
|
|
90933
|
-
const metadata$
|
|
90931
|
+
const type$k = "com.shwfed.table.column.date";
|
|
90932
|
+
const compatibilityDate$k = "2026-04-14";
|
|
90933
|
+
const metadata$k = {
|
|
90934
90934
|
name: "日期",
|
|
90935
90935
|
icon: "fluent:calendar-ltr-20-regular"
|
|
90936
90936
|
};
|
|
90937
|
-
function schema$
|
|
90937
|
+
function schema$k(configure) {
|
|
90938
90938
|
return Struct({
|
|
90939
|
-
type: Literal2(type$
|
|
90940
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
90939
|
+
type: Literal2(type$k),
|
|
90940
|
+
compatibilityDate: Literal2(compatibilityDate$k),
|
|
90941
90941
|
...columnFields(configure),
|
|
90942
90942
|
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "left" }),
|
|
90943
90943
|
format: String$.annotations({
|
|
@@ -90948,7 +90948,7 @@ function schema$i(configure) {
|
|
|
90948
90948
|
})
|
|
90949
90949
|
}).annotations({ title: "DateRenderer", description: "日期渲染器" });
|
|
90950
90950
|
}
|
|
90951
|
-
function toColumnDef$
|
|
90951
|
+
function toColumnDef$d(value, { getLocaleText, $cel, inheritedContext }) {
|
|
90952
90952
|
return {
|
|
90953
90953
|
header: getLocaleText(value.title),
|
|
90954
90954
|
accessorFn: (row, index) => {
|
|
@@ -90969,22 +90969,22 @@ function toColumnDef$b(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
90969
90969
|
}
|
|
90970
90970
|
const __vite_glob_0_1$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
90971
90971
|
__proto__: null,
|
|
90972
|
-
compatibilityDate: compatibilityDate$
|
|
90973
|
-
metadata: metadata$
|
|
90974
|
-
schema: schema$
|
|
90975
|
-
toColumnDef: toColumnDef$
|
|
90976
|
-
type: type$
|
|
90972
|
+
compatibilityDate: compatibilityDate$k,
|
|
90973
|
+
metadata: metadata$k,
|
|
90974
|
+
schema: schema$k,
|
|
90975
|
+
toColumnDef: toColumnDef$d,
|
|
90976
|
+
type: type$k
|
|
90977
90977
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
90978
|
-
const type$
|
|
90979
|
-
const compatibilityDate$
|
|
90980
|
-
const metadata$
|
|
90978
|
+
const type$j = "com.shwfed.table.column.icon";
|
|
90979
|
+
const compatibilityDate$j = "2026-04-14";
|
|
90980
|
+
const metadata$j = {
|
|
90981
90981
|
name: "图标",
|
|
90982
90982
|
icon: "fluent:shapes-20-regular"
|
|
90983
90983
|
};
|
|
90984
|
-
function schema$
|
|
90984
|
+
function schema$j(configure) {
|
|
90985
90985
|
return Struct({
|
|
90986
|
-
type: Literal2(type$
|
|
90987
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
90986
|
+
type: Literal2(type$j),
|
|
90987
|
+
compatibilityDate: Literal2(compatibilityDate$j),
|
|
90988
90988
|
...columnFields(configure),
|
|
90989
90989
|
accessor: CelRowAccess(configure).annotations({
|
|
90990
90990
|
title: "图标",
|
|
@@ -90999,7 +90999,7 @@ function schema$h(configure) {
|
|
|
90999
90999
|
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "center" })
|
|
91000
91000
|
}).annotations({ title: "IconRenderer", description: "图标渲染器" });
|
|
91001
91001
|
}
|
|
91002
|
-
function toColumnDef$
|
|
91002
|
+
function toColumnDef$c(value, { getLocaleText, $cel, inheritedContext }) {
|
|
91003
91003
|
return {
|
|
91004
91004
|
header: getLocaleText(value.title),
|
|
91005
91005
|
accessorFn: (row, index) => {
|
|
@@ -91020,25 +91020,25 @@ function toColumnDef$a(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
91020
91020
|
}
|
|
91021
91021
|
const __vite_glob_0_2$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91022
91022
|
__proto__: null,
|
|
91023
|
-
compatibilityDate: compatibilityDate$
|
|
91024
|
-
metadata: metadata$
|
|
91025
|
-
schema: schema$
|
|
91026
|
-
toColumnDef: toColumnDef$
|
|
91027
|
-
type: type$
|
|
91023
|
+
compatibilityDate: compatibilityDate$j,
|
|
91024
|
+
metadata: metadata$j,
|
|
91025
|
+
schema: schema$j,
|
|
91026
|
+
toColumnDef: toColumnDef$c,
|
|
91027
|
+
type: type$j
|
|
91028
91028
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91029
|
-
const type$
|
|
91030
|
-
const compatibilityDate$
|
|
91031
|
-
const metadata$
|
|
91029
|
+
const type$i = "com.shwfed.table.column.markdown";
|
|
91030
|
+
const compatibilityDate$i = "2026-04-14";
|
|
91031
|
+
const metadata$i = {
|
|
91032
91032
|
name: "MD",
|
|
91033
91033
|
icon: "fluent:markdown-20-regular"
|
|
91034
91034
|
};
|
|
91035
91035
|
const isCopyExpressionType$1 = (t) => t === "string" || t === "dyn" || t.startsWith("optional");
|
|
91036
|
-
function schema$
|
|
91036
|
+
function schema$i(configure) {
|
|
91037
91037
|
const cel = CelRowAccess(configure, { resultType: isCopyExpressionType$1 });
|
|
91038
91038
|
const localeMarkdown = LocaleMarkdownWithRow(configure);
|
|
91039
91039
|
return Struct({
|
|
91040
|
-
type: Literal2(type$
|
|
91041
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91040
|
+
type: Literal2(type$i),
|
|
91041
|
+
compatibilityDate: Literal2(compatibilityDate$i),
|
|
91042
91042
|
...columnIdentityFields(),
|
|
91043
91043
|
title: Locale.annotations({ title: "标题", description: "列标题" }),
|
|
91044
91044
|
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "left" }),
|
|
@@ -91064,7 +91064,7 @@ function schema$g(configure) {
|
|
|
91064
91064
|
}))
|
|
91065
91065
|
}).annotations({ title: "MarkdownRenderer", description: "MD" });
|
|
91066
91066
|
}
|
|
91067
|
-
function toColumnDef$
|
|
91067
|
+
function toColumnDef$b(value, { getLocaleText }) {
|
|
91068
91068
|
return {
|
|
91069
91069
|
header: getLocaleText(value.title),
|
|
91070
91070
|
enableSorting: false,
|
|
@@ -91077,22 +91077,22 @@ function toColumnDef$9(value, { getLocaleText }) {
|
|
|
91077
91077
|
}
|
|
91078
91078
|
const __vite_glob_0_3$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91079
91079
|
__proto__: null,
|
|
91080
|
-
compatibilityDate: compatibilityDate$
|
|
91081
|
-
metadata: metadata$
|
|
91082
|
-
schema: schema$
|
|
91083
|
-
toColumnDef: toColumnDef$
|
|
91084
|
-
type: type$
|
|
91080
|
+
compatibilityDate: compatibilityDate$i,
|
|
91081
|
+
metadata: metadata$i,
|
|
91082
|
+
schema: schema$i,
|
|
91083
|
+
toColumnDef: toColumnDef$b,
|
|
91084
|
+
type: type$i
|
|
91085
91085
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91086
|
-
const type$
|
|
91087
|
-
const compatibilityDate$
|
|
91088
|
-
const metadata$
|
|
91086
|
+
const type$h = "com.shwfed.table.column.number";
|
|
91087
|
+
const compatibilityDate$h = "2026-04-14";
|
|
91088
|
+
const metadata$h = {
|
|
91089
91089
|
name: "数值",
|
|
91090
91090
|
icon: "fluent:number-symbol-20-regular"
|
|
91091
91091
|
};
|
|
91092
|
-
function schema$
|
|
91092
|
+
function schema$h(configure) {
|
|
91093
91093
|
return Struct({
|
|
91094
|
-
type: Literal2(type$
|
|
91095
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91094
|
+
type: Literal2(type$h),
|
|
91095
|
+
compatibilityDate: Literal2(compatibilityDate$h),
|
|
91096
91096
|
...columnFields(configure),
|
|
91097
91097
|
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "right" }),
|
|
91098
91098
|
displayMode: optionalWith(
|
|
@@ -91112,7 +91112,7 @@ function schema$f(configure) {
|
|
|
91112
91112
|
}))
|
|
91113
91113
|
}).annotations({ title: "NumberRenderer", description: "数值渲染器" });
|
|
91114
91114
|
}
|
|
91115
|
-
function toColumnDef$
|
|
91115
|
+
function toColumnDef$a(value, { getLocaleText, $cel, inheritedContext }) {
|
|
91116
91116
|
return {
|
|
91117
91117
|
header: getLocaleText(value.title),
|
|
91118
91118
|
accessorFn: (row, index) => {
|
|
@@ -91133,24 +91133,24 @@ function toColumnDef$8(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
91133
91133
|
}
|
|
91134
91134
|
const __vite_glob_0_4$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91135
91135
|
__proto__: null,
|
|
91136
|
-
compatibilityDate: compatibilityDate$
|
|
91137
|
-
metadata: metadata$
|
|
91138
|
-
schema: schema$
|
|
91139
|
-
toColumnDef: toColumnDef$
|
|
91140
|
-
type: type$
|
|
91136
|
+
compatibilityDate: compatibilityDate$h,
|
|
91137
|
+
metadata: metadata$h,
|
|
91138
|
+
schema: schema$h,
|
|
91139
|
+
toColumnDef: toColumnDef$a,
|
|
91140
|
+
type: type$h
|
|
91141
91141
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91142
91142
|
const __vite_glob_2_5 = {};
|
|
91143
91143
|
const _stubVue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91144
91144
|
__proto__: null,
|
|
91145
91145
|
default: __vite_glob_2_5
|
|
91146
91146
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91147
|
-
const type$
|
|
91148
|
-
const compatibilityDate$
|
|
91149
|
-
const metadata$
|
|
91147
|
+
const type$g = "com.shwfed.table.column.select";
|
|
91148
|
+
const compatibilityDate$g = "2026-04-14";
|
|
91149
|
+
const metadata$g = {
|
|
91150
91150
|
name: "选择",
|
|
91151
91151
|
icon: "fluent:checkbox-checked-20-regular"
|
|
91152
91152
|
};
|
|
91153
|
-
function schema$
|
|
91153
|
+
function schema$g(configure) {
|
|
91154
91154
|
const CelRowSelectionPredicate = Expression({
|
|
91155
91155
|
configure: (env) => {
|
|
91156
91156
|
configure(env);
|
|
@@ -91159,8 +91159,8 @@ function schema$e(configure) {
|
|
|
91159
91159
|
resultType: "bool"
|
|
91160
91160
|
});
|
|
91161
91161
|
return Struct({
|
|
91162
|
-
type: Literal2(type$
|
|
91163
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91162
|
+
type: Literal2(type$g),
|
|
91163
|
+
compatibilityDate: Literal2(compatibilityDate$g),
|
|
91164
91164
|
...columnIdentityFields(),
|
|
91165
91165
|
mode: optionalWith(Literal2("radio", "checkbox").annotations({
|
|
91166
91166
|
title: "模式",
|
|
@@ -91180,7 +91180,7 @@ function schema$e(configure) {
|
|
|
91180
91180
|
})
|
|
91181
91181
|
}).annotations({ title: "SelectRenderer", description: "选择渲染器" });
|
|
91182
91182
|
}
|
|
91183
|
-
function toColumnDef$
|
|
91183
|
+
function toColumnDef$9(value) {
|
|
91184
91184
|
return {
|
|
91185
91185
|
header: (ctx) => vueExports.h(__vite_glob_2_5, { column: value, ctx }),
|
|
91186
91186
|
size: 40,
|
|
@@ -91191,24 +91191,24 @@ function toColumnDef$7(value) {
|
|
|
91191
91191
|
}
|
|
91192
91192
|
const __vite_glob_0_5$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91193
91193
|
__proto__: null,
|
|
91194
|
-
compatibilityDate: compatibilityDate$
|
|
91195
|
-
metadata: metadata$
|
|
91196
|
-
schema: schema$
|
|
91197
|
-
toColumnDef: toColumnDef$
|
|
91198
|
-
type: type$
|
|
91194
|
+
compatibilityDate: compatibilityDate$g,
|
|
91195
|
+
metadata: metadata$g,
|
|
91196
|
+
schema: schema$g,
|
|
91197
|
+
toColumnDef: toColumnDef$9,
|
|
91198
|
+
type: type$g
|
|
91199
91199
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91200
|
-
const type$
|
|
91201
|
-
const compatibilityDate$
|
|
91202
|
-
const metadata$
|
|
91200
|
+
const type$f = "com.shwfed.table.column.text";
|
|
91201
|
+
const compatibilityDate$f = "2026-04-14";
|
|
91202
|
+
const metadata$f = {
|
|
91203
91203
|
name: "文本",
|
|
91204
91204
|
icon: "fluent:text-field-20-regular"
|
|
91205
91205
|
};
|
|
91206
91206
|
const isCopyExpressionType = (t) => t === "string" || t === "dyn" || t.startsWith("optional");
|
|
91207
|
-
function schema$
|
|
91207
|
+
function schema$f(configure) {
|
|
91208
91208
|
const cel = CelRowAccess(configure, { resultType: isCopyExpressionType });
|
|
91209
91209
|
return Struct({
|
|
91210
|
-
type: Literal2(type$
|
|
91211
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91210
|
+
type: Literal2(type$f),
|
|
91211
|
+
compatibilityDate: Literal2(compatibilityDate$f),
|
|
91212
91212
|
...columnFields(configure),
|
|
91213
91213
|
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "left" }),
|
|
91214
91214
|
displayMode: optionalWith(
|
|
@@ -91224,7 +91224,7 @@ function schema$d(configure) {
|
|
|
91224
91224
|
}))
|
|
91225
91225
|
}).annotations({ title: "TextRenderer", description: "文本渲染器" });
|
|
91226
91226
|
}
|
|
91227
|
-
function toColumnDef$
|
|
91227
|
+
function toColumnDef$8(value, { getLocaleText, $cel, inheritedContext }) {
|
|
91228
91228
|
return {
|
|
91229
91229
|
header: getLocaleText(value.title),
|
|
91230
91230
|
accessorFn: (row, index) => {
|
|
@@ -91246,19 +91246,19 @@ function toColumnDef$6(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
91246
91246
|
}
|
|
91247
91247
|
const __vite_glob_0_6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91248
91248
|
__proto__: null,
|
|
91249
|
-
compatibilityDate: compatibilityDate$
|
|
91250
|
-
metadata: metadata$
|
|
91251
|
-
schema: schema$
|
|
91252
|
-
toColumnDef: toColumnDef$
|
|
91253
|
-
type: type$
|
|
91249
|
+
compatibilityDate: compatibilityDate$f,
|
|
91250
|
+
metadata: metadata$f,
|
|
91251
|
+
schema: schema$f,
|
|
91252
|
+
toColumnDef: toColumnDef$8,
|
|
91253
|
+
type: type$f
|
|
91254
91254
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91255
|
-
const type$
|
|
91256
|
-
const compatibilityDate$
|
|
91257
|
-
const metadata$
|
|
91255
|
+
const type$e = "com.shwfed.table.column.switch.remote";
|
|
91256
|
+
const compatibilityDate$e = "2026-05-13";
|
|
91257
|
+
const metadata$e = {
|
|
91258
91258
|
name: "开关(远程)",
|
|
91259
91259
|
icon: "fluent:toggle-left-20-regular"
|
|
91260
91260
|
};
|
|
91261
|
-
function schema$
|
|
91261
|
+
function schema$e(configure) {
|
|
91262
91262
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
91263
91263
|
const CelOnChange = Expression({
|
|
91264
91264
|
configure: (env) => {
|
|
@@ -91276,8 +91276,8 @@ function schema$c(configure) {
|
|
|
91276
91276
|
resultType: "string"
|
|
91277
91277
|
});
|
|
91278
91278
|
return Struct({
|
|
91279
|
-
type: Literal2(type$
|
|
91280
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91279
|
+
type: Literal2(type$e),
|
|
91280
|
+
compatibilityDate: Literal2(compatibilityDate$e),
|
|
91281
91281
|
...columnFields(configure),
|
|
91282
91282
|
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "center" }),
|
|
91283
91283
|
disabled: optional(CelBool.annotations({
|
|
@@ -91298,7 +91298,19 @@ function schema$c(configure) {
|
|
|
91298
91298
|
}))
|
|
91299
91299
|
}).annotations({ title: "SwitchRenderer", description: "开关渲染器(可编辑)" });
|
|
91300
91300
|
}
|
|
91301
|
-
|
|
91301
|
+
const migrateFrom$1 = [
|
|
91302
|
+
{ type: "com.shwfed.table.column.switch", compatibilityDate: compatibilityDate$e }
|
|
91303
|
+
];
|
|
91304
|
+
const migrate$1 = (prev) => try_({
|
|
91305
|
+
try: () => {
|
|
91306
|
+
if (!prev || typeof prev !== "object") {
|
|
91307
|
+
throw new Error("开关(远程)迁移失败:原值不是对象");
|
|
91308
|
+
}
|
|
91309
|
+
return { ...prev, type: type$e, compatibilityDate: compatibilityDate$e };
|
|
91310
|
+
},
|
|
91311
|
+
catch: (e) => e instanceof Error ? e : new Error(String(e))
|
|
91312
|
+
});
|
|
91313
|
+
function toColumnDef$7(value, { getLocaleText, $cel, inheritedContext }) {
|
|
91302
91314
|
return {
|
|
91303
91315
|
header: getLocaleText(value.title),
|
|
91304
91316
|
accessorFn: (row, index) => {
|
|
@@ -91320,11 +91332,87 @@ function toColumnDef$5(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
91320
91332
|
}
|
|
91321
91333
|
const __vite_glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91322
91334
|
__proto__: null,
|
|
91323
|
-
compatibilityDate: compatibilityDate$
|
|
91324
|
-
metadata: metadata$
|
|
91325
|
-
|
|
91326
|
-
|
|
91327
|
-
|
|
91335
|
+
compatibilityDate: compatibilityDate$e,
|
|
91336
|
+
metadata: metadata$e,
|
|
91337
|
+
migrate: migrate$1,
|
|
91338
|
+
migrateFrom: migrateFrom$1,
|
|
91339
|
+
schema: schema$e,
|
|
91340
|
+
toColumnDef: toColumnDef$7,
|
|
91341
|
+
type: type$e
|
|
91342
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
91343
|
+
const type$d = "com.shwfed.table.column.switch";
|
|
91344
|
+
const compatibilityDate$d = "2026-05-13";
|
|
91345
|
+
const metadata$d = {
|
|
91346
|
+
name: "开关(远程)",
|
|
91347
|
+
icon: "fluent:toggle-left-20-regular"
|
|
91348
|
+
};
|
|
91349
|
+
function schema$d(configure) {
|
|
91350
|
+
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
91351
|
+
const CelOnChange = Expression({
|
|
91352
|
+
configure: (env) => {
|
|
91353
|
+
configure(env);
|
|
91354
|
+
registerRowVariablesIfAbsent(env);
|
|
91355
|
+
env.registerVariable("value", "bool", { description: "切换后的新值" });
|
|
91356
|
+
},
|
|
91357
|
+
resultType: "HttpRequest"
|
|
91358
|
+
});
|
|
91359
|
+
const CelMessage = Expression({
|
|
91360
|
+
configure: (env) => {
|
|
91361
|
+
configure(env);
|
|
91362
|
+
env.registerVariable("json", "dyn", { description: "HTTP 响应体(已解析 JSON)" });
|
|
91363
|
+
},
|
|
91364
|
+
resultType: "string"
|
|
91365
|
+
});
|
|
91366
|
+
return Struct({
|
|
91367
|
+
type: Literal2(type$d),
|
|
91368
|
+
compatibilityDate: Literal2(compatibilityDate$d),
|
|
91369
|
+
...columnFields(configure),
|
|
91370
|
+
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "center" }),
|
|
91371
|
+
disabled: optional(CelBool.annotations({
|
|
91372
|
+
title: "禁用条件",
|
|
91373
|
+
description: "返回 `true` 时开关仍然渲染但不可切换"
|
|
91374
|
+
})),
|
|
91375
|
+
onChange: optional(CelOnChange.annotations({
|
|
91376
|
+
title: "切换请求",
|
|
91377
|
+
description: "用户切换后立即求值并发起的 HTTP 请求;`value` 为切换后的新值。未配置时开关只读"
|
|
91378
|
+
})),
|
|
91379
|
+
successMessage: optional(CelMessage.annotations({
|
|
91380
|
+
title: "成功消息",
|
|
91381
|
+
description: "请求成功后弹出的 toast 内容;未配置则静默"
|
|
91382
|
+
})),
|
|
91383
|
+
triggers: optional(Triggers.annotations({
|
|
91384
|
+
title: "成功后触发",
|
|
91385
|
+
description: "请求成功后按列表顺序冒泡的操作请求;未配置则什么都不做"
|
|
91386
|
+
}))
|
|
91387
|
+
}).annotations({ title: "SwitchRenderer", description: "开关渲染器(可编辑)" });
|
|
91388
|
+
}
|
|
91389
|
+
function toColumnDef$6(value, { getLocaleText, $cel, inheritedContext }) {
|
|
91390
|
+
return {
|
|
91391
|
+
header: getLocaleText(value.title),
|
|
91392
|
+
accessorFn: (row, index) => {
|
|
91393
|
+
try {
|
|
91394
|
+
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
91395
|
+
} catch (e) {
|
|
91396
|
+
console.error("[shwfed-table] switch accessor failed", e);
|
|
91397
|
+
return void 0;
|
|
91398
|
+
}
|
|
91399
|
+
},
|
|
91400
|
+
enableSorting: value.enableSorting ?? false,
|
|
91401
|
+
sortingFn: "basic",
|
|
91402
|
+
size: value.size,
|
|
91403
|
+
meta: {
|
|
91404
|
+
grow: value.grow ?? false,
|
|
91405
|
+
tooltip: getLocaleText(value.tooltip)
|
|
91406
|
+
}
|
|
91407
|
+
};
|
|
91408
|
+
}
|
|
91409
|
+
const __vite_glob_0_8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91410
|
+
__proto__: null,
|
|
91411
|
+
compatibilityDate: compatibilityDate$d,
|
|
91412
|
+
metadata: metadata$d,
|
|
91413
|
+
schema: schema$d,
|
|
91414
|
+
toColumnDef: toColumnDef$6,
|
|
91415
|
+
type: type$d
|
|
91328
91416
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91329
91417
|
const isObject$1 = (value) => {
|
|
91330
91418
|
const type2 = typeof value;
|
|
@@ -91523,9 +91611,9 @@ function getProperty(object2, path, value) {
|
|
|
91523
91611
|
}
|
|
91524
91612
|
return object2 === void 0 ? value : object2;
|
|
91525
91613
|
}
|
|
91526
|
-
const type$
|
|
91527
|
-
const compatibilityDate$
|
|
91528
|
-
const metadata$
|
|
91614
|
+
const type$c = "com.shwfed.table.column.combobox-single";
|
|
91615
|
+
const compatibilityDate$c = "2026-05-20";
|
|
91616
|
+
const metadata$c = {
|
|
91529
91617
|
name: "下拉单选",
|
|
91530
91618
|
icon: "fluent:chevron-down-20-regular"
|
|
91531
91619
|
};
|
|
@@ -91558,12 +91646,12 @@ function itemSchema(configure) {
|
|
|
91558
91646
|
title: "ComboboxSingleItem"
|
|
91559
91647
|
});
|
|
91560
91648
|
}
|
|
91561
|
-
function schema$
|
|
91649
|
+
function schema$c(configure) {
|
|
91562
91650
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
91563
91651
|
const Item = itemSchema(configure);
|
|
91564
91652
|
return Struct({
|
|
91565
|
-
type: Literal2(type$
|
|
91566
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91653
|
+
type: Literal2(type$c),
|
|
91654
|
+
compatibilityDate: Literal2(compatibilityDate$c),
|
|
91567
91655
|
...editableColumnFields(),
|
|
91568
91656
|
placeholder: optional(Locale.annotations({
|
|
91569
91657
|
title: "占位符",
|
|
@@ -91588,7 +91676,7 @@ function schema$b(configure) {
|
|
|
91588
91676
|
}), { default: () => [] })
|
|
91589
91677
|
}).annotations({ title: "ComboboxSingleRenderer", description: "下拉单选渲染器(可编辑)" });
|
|
91590
91678
|
}
|
|
91591
|
-
function toColumnDef$
|
|
91679
|
+
function toColumnDef$5(value, { getLocaleText }) {
|
|
91592
91680
|
return {
|
|
91593
91681
|
header: editableHeader(getLocaleText(value.title)),
|
|
91594
91682
|
// `binding` is a dot-prop path (validated non-empty); the cell renderer
|
|
@@ -91609,27 +91697,27 @@ function toColumnDef$4(value, { getLocaleText }) {
|
|
|
91609
91697
|
}
|
|
91610
91698
|
};
|
|
91611
91699
|
}
|
|
91612
|
-
const
|
|
91700
|
+
const __vite_glob_0_9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91613
91701
|
__proto__: null,
|
|
91614
|
-
compatibilityDate: compatibilityDate$
|
|
91702
|
+
compatibilityDate: compatibilityDate$c,
|
|
91615
91703
|
itemSchema,
|
|
91616
|
-
metadata: metadata$
|
|
91617
|
-
schema: schema$
|
|
91618
|
-
toColumnDef: toColumnDef$
|
|
91619
|
-
type: type$
|
|
91704
|
+
metadata: metadata$c,
|
|
91705
|
+
schema: schema$c,
|
|
91706
|
+
toColumnDef: toColumnDef$5,
|
|
91707
|
+
type: type$c
|
|
91620
91708
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91621
|
-
const type$
|
|
91622
|
-
const compatibilityDate$
|
|
91623
|
-
const metadata$
|
|
91709
|
+
const type$b = "com.shwfed.table.column.number-input";
|
|
91710
|
+
const compatibilityDate$b = "2026-05-20";
|
|
91711
|
+
const metadata$b = {
|
|
91624
91712
|
name: "数值输入",
|
|
91625
91713
|
icon: "fluent:number-symbol-20-regular"
|
|
91626
91714
|
};
|
|
91627
|
-
function schema$
|
|
91715
|
+
function schema$b(configure) {
|
|
91628
91716
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
91629
91717
|
const CelNumber = CelRowAccess(configure, { resultType: "number" });
|
|
91630
91718
|
return Struct({
|
|
91631
|
-
type: Literal2(type$
|
|
91632
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91719
|
+
type: Literal2(type$b),
|
|
91720
|
+
compatibilityDate: Literal2(compatibilityDate$b),
|
|
91633
91721
|
...editableColumnFields(),
|
|
91634
91722
|
placeholder: optional(Locale.annotations({
|
|
91635
91723
|
title: "占位符",
|
|
@@ -91674,7 +91762,7 @@ function schema$a(configure) {
|
|
|
91674
91762
|
derived: derivedRowField(configure, "number")
|
|
91675
91763
|
}).annotations({ title: "NumberInputRenderer", description: "数值输入渲染器(可编辑)" });
|
|
91676
91764
|
}
|
|
91677
|
-
function toColumnDef$
|
|
91765
|
+
function toColumnDef$4(value, { getLocaleText }) {
|
|
91678
91766
|
return {
|
|
91679
91767
|
header: editableHeader(getLocaleText(value.title)),
|
|
91680
91768
|
// `binding` is a dot-prop path (validated non-empty); the cell renderer
|
|
@@ -91695,10 +91783,87 @@ function toColumnDef$3(value, { getLocaleText }) {
|
|
|
91695
91783
|
}
|
|
91696
91784
|
};
|
|
91697
91785
|
}
|
|
91698
|
-
const
|
|
91786
|
+
const __vite_glob_0_10 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91787
|
+
__proto__: null,
|
|
91788
|
+
compatibilityDate: compatibilityDate$b,
|
|
91789
|
+
metadata: metadata$b,
|
|
91790
|
+
schema: schema$b,
|
|
91791
|
+
toColumnDef: toColumnDef$4,
|
|
91792
|
+
type: type$b
|
|
91793
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
91794
|
+
const type$a = "com.shwfed.table.column.switch.local";
|
|
91795
|
+
const compatibilityDate$a = "2026-05-20";
|
|
91796
|
+
const metadata$a = {
|
|
91797
|
+
name: "开关",
|
|
91798
|
+
icon: "fluent:toggle-left-20-regular"
|
|
91799
|
+
};
|
|
91800
|
+
function schema$a(configure) {
|
|
91801
|
+
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
91802
|
+
return Struct({
|
|
91803
|
+
type: Literal2(type$a),
|
|
91804
|
+
compatibilityDate: Literal2(compatibilityDate$a),
|
|
91805
|
+
...editableColumnFields(),
|
|
91806
|
+
hidden: optional(CelBool.annotations({
|
|
91807
|
+
title: "隐藏条件",
|
|
91808
|
+
description: "返回 `true` 时该行的开关不渲染(其余行不受影响)"
|
|
91809
|
+
})),
|
|
91810
|
+
disabled: optional(CelBool.annotations({
|
|
91811
|
+
title: "禁用条件",
|
|
91812
|
+
description: "返回 `true` 时开关仍然渲染但不可切换"
|
|
91813
|
+
})),
|
|
91814
|
+
readonly: optional(CelBool.annotations({
|
|
91815
|
+
title: "只读条件",
|
|
91816
|
+
description: "返回 `true` 时仅以纯文本展示当前值"
|
|
91817
|
+
})),
|
|
91818
|
+
trueLabel: optional(Locale.annotations({
|
|
91819
|
+
title: "开启文案",
|
|
91820
|
+
description: "只读状态下,值为 `true` 时展示的文本;留空使用默认 `是`"
|
|
91821
|
+
})),
|
|
91822
|
+
falseLabel: optional(Locale.annotations({
|
|
91823
|
+
title: "关闭文案",
|
|
91824
|
+
description: "只读状态下,值为 `false` 时展示的文本;留空使用默认 `否`"
|
|
91825
|
+
})),
|
|
91826
|
+
derived: derivedRowField(configure, "bool")
|
|
91827
|
+
}).annotations({ title: "SwitchRenderer", description: "开关渲染器(可编辑、本地)" });
|
|
91828
|
+
}
|
|
91829
|
+
const migrateFrom = [
|
|
91830
|
+
{ type: "com.shwfed.table.column.switch", compatibilityDate: compatibilityDate$a }
|
|
91831
|
+
];
|
|
91832
|
+
const migrate = (prev) => try_({
|
|
91833
|
+
try: () => {
|
|
91834
|
+
if (!prev || typeof prev !== "object") {
|
|
91835
|
+
throw new Error("开关(本地)迁移失败:原值不是对象");
|
|
91836
|
+
}
|
|
91837
|
+
return { ...prev, type: type$a, compatibilityDate: compatibilityDate$a };
|
|
91838
|
+
},
|
|
91839
|
+
catch: (e) => e instanceof Error ? e : new Error(String(e))
|
|
91840
|
+
});
|
|
91841
|
+
function toColumnDef$3(value, { getLocaleText }) {
|
|
91842
|
+
return {
|
|
91843
|
+
header: editableHeader(getLocaleText(value.title)),
|
|
91844
|
+
// `binding` is a dot-prop path (validated non-empty); the cell renderer
|
|
91845
|
+
// reads through the same path it writes to. No CEL — accessor is literal.
|
|
91846
|
+
accessorFn: (row) => {
|
|
91847
|
+
if (!row || typeof row !== "object") return void 0;
|
|
91848
|
+
return getProperty(row, value.binding);
|
|
91849
|
+
},
|
|
91850
|
+
enableSorting: value.enableSorting ?? false,
|
|
91851
|
+
// `basic` orders by JS `<` — for booleans that yields `false < true`,
|
|
91852
|
+
// which is the obvious grouping. Mirrors the remote switch column.
|
|
91853
|
+
sortingFn: "basic",
|
|
91854
|
+
size: value.size,
|
|
91855
|
+
meta: {
|
|
91856
|
+
grow: value.grow ?? false,
|
|
91857
|
+
tooltip: getLocaleText(value.tooltip)
|
|
91858
|
+
}
|
|
91859
|
+
};
|
|
91860
|
+
}
|
|
91861
|
+
const __vite_glob_0_11 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91699
91862
|
__proto__: null,
|
|
91700
91863
|
compatibilityDate: compatibilityDate$a,
|
|
91701
91864
|
metadata: metadata$a,
|
|
91865
|
+
migrate,
|
|
91866
|
+
migrateFrom,
|
|
91702
91867
|
schema: schema$a,
|
|
91703
91868
|
toColumnDef: toColumnDef$3,
|
|
91704
91869
|
type: type$a
|
|
@@ -91758,7 +91923,7 @@ function toColumnDef$2(value, { getLocaleText }) {
|
|
|
91758
91923
|
}
|
|
91759
91924
|
};
|
|
91760
91925
|
}
|
|
91761
|
-
const
|
|
91926
|
+
const __vite_glob_0_12 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91762
91927
|
__proto__: null,
|
|
91763
91928
|
compatibilityDate: compatibilityDate$9,
|
|
91764
91929
|
metadata: metadata$9,
|
|
@@ -91815,7 +91980,7 @@ function toColumnDef$1(value, { getLocaleText }) {
|
|
|
91815
91980
|
}
|
|
91816
91981
|
};
|
|
91817
91982
|
}
|
|
91818
|
-
const
|
|
91983
|
+
const __vite_glob_0_13 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91819
91984
|
__proto__: null,
|
|
91820
91985
|
compatibilityDate: compatibilityDate$8,
|
|
91821
91986
|
metadata: metadata$8,
|
|
@@ -91850,7 +92015,7 @@ function toColumnDef(_value) {
|
|
|
91850
92015
|
meta: { grow: false }
|
|
91851
92016
|
};
|
|
91852
92017
|
}
|
|
91853
|
-
const
|
|
92018
|
+
const __vite_glob_0_14 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91854
92019
|
__proto__: null,
|
|
91855
92020
|
compatibilityDate: compatibilityDate$7,
|
|
91856
92021
|
metadata: metadata$7,
|
|
@@ -91866,12 +92031,14 @@ const schemaModules$2 = /* @__PURE__ */ Object.assign({
|
|
|
91866
92031
|
"../columns/2026-04-14/com.shwfed.table.column.number/schema.ts": __vite_glob_0_4$1,
|
|
91867
92032
|
"../columns/2026-04-14/com.shwfed.table.column.select/schema.ts": __vite_glob_0_5$1,
|
|
91868
92033
|
"../columns/2026-04-14/com.shwfed.table.column.text/schema.ts": __vite_glob_0_6,
|
|
91869
|
-
"../columns/2026-05-13/com.shwfed.table.column.switch/schema.ts": __vite_glob_0_7,
|
|
91870
|
-
"../columns/2026-05-
|
|
91871
|
-
"../columns/2026-05-20/com.shwfed.table.column.
|
|
91872
|
-
"../columns/2026-05-20/com.shwfed.table.column.
|
|
91873
|
-
"../columns/2026-05-20/com.shwfed.table.column.
|
|
91874
|
-
"../columns/2026-05-
|
|
92034
|
+
"../columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.ts": __vite_glob_0_7,
|
|
92035
|
+
"../columns/2026-05-13/com.shwfed.table.column.switch/schema.ts": __vite_glob_0_8,
|
|
92036
|
+
"../columns/2026-05-20/com.shwfed.table.column.combobox-single/schema.ts": __vite_glob_0_9,
|
|
92037
|
+
"../columns/2026-05-20/com.shwfed.table.column.number-input/schema.ts": __vite_glob_0_10,
|
|
92038
|
+
"../columns/2026-05-20/com.shwfed.table.column.switch.local/schema.ts": __vite_glob_0_11,
|
|
92039
|
+
"../columns/2026-05-20/com.shwfed.table.column.switch/schema.ts": __vite_glob_0_12,
|
|
92040
|
+
"../columns/2026-05-20/com.shwfed.table.column.text-input/schema.ts": __vite_glob_0_13,
|
|
92041
|
+
"../columns/2026-05-21/com.shwfed.table.column.drag-handle/schema.ts": __vite_glob_0_14
|
|
91875
92042
|
});
|
|
91876
92043
|
const configModules$2 = /* @__PURE__ */ Object.assign({
|
|
91877
92044
|
"../columns/2026-04-14/com.shwfed.table.column.actions/config.vue": __vite_glob_2_5,
|
|
@@ -91881,9 +92048,11 @@ const configModules$2 = /* @__PURE__ */ Object.assign({
|
|
|
91881
92048
|
"../columns/2026-04-14/com.shwfed.table.column.number/config.vue": __vite_glob_2_5,
|
|
91882
92049
|
"../columns/2026-04-14/com.shwfed.table.column.select/config.vue": __vite_glob_2_5,
|
|
91883
92050
|
"../columns/2026-04-14/com.shwfed.table.column.text/config.vue": __vite_glob_2_5,
|
|
92051
|
+
"../columns/2026-05-13/com.shwfed.table.column.switch.remote/config.vue": __vite_glob_2_5,
|
|
91884
92052
|
"../columns/2026-05-13/com.shwfed.table.column.switch/config.vue": __vite_glob_2_5,
|
|
91885
92053
|
"../columns/2026-05-20/com.shwfed.table.column.combobox-single/config.vue": __vite_glob_2_5,
|
|
91886
92054
|
"../columns/2026-05-20/com.shwfed.table.column.number-input/config.vue": __vite_glob_2_5,
|
|
92055
|
+
"../columns/2026-05-20/com.shwfed.table.column.switch.local/config.vue": __vite_glob_2_5,
|
|
91887
92056
|
"../columns/2026-05-20/com.shwfed.table.column.switch/config.vue": __vite_glob_2_5,
|
|
91888
92057
|
"../columns/2026-05-20/com.shwfed.table.column.text-input/config.vue": __vite_glob_2_5,
|
|
91889
92058
|
"../columns/2026-05-21/com.shwfed.table.column.drag-handle/config.vue": __vite_glob_2_5
|
|
@@ -91896,13 +92065,16 @@ const runtimeModules$2 = /* @__PURE__ */ Object.assign({
|
|
|
91896
92065
|
"../columns/2026-04-14/com.shwfed.table.column.number/runtime.vue": __vite_glob_2_5,
|
|
91897
92066
|
"../columns/2026-04-14/com.shwfed.table.column.select/runtime.vue": __vite_glob_2_5,
|
|
91898
92067
|
"../columns/2026-04-14/com.shwfed.table.column.text/runtime.vue": __vite_glob_2_5,
|
|
92068
|
+
"../columns/2026-05-13/com.shwfed.table.column.switch.remote/runtime.vue": __vite_glob_2_5,
|
|
91899
92069
|
"../columns/2026-05-13/com.shwfed.table.column.switch/runtime.vue": __vite_glob_2_5,
|
|
91900
92070
|
"../columns/2026-05-20/com.shwfed.table.column.combobox-single/runtime.vue": __vite_glob_2_5,
|
|
91901
92071
|
"../columns/2026-05-20/com.shwfed.table.column.number-input/runtime.vue": __vite_glob_2_5,
|
|
92072
|
+
"../columns/2026-05-20/com.shwfed.table.column.switch.local/runtime.vue": __vite_glob_2_5,
|
|
91902
92073
|
"../columns/2026-05-20/com.shwfed.table.column.switch/runtime.vue": __vite_glob_2_5,
|
|
91903
92074
|
"../columns/2026-05-20/com.shwfed.table.column.text-input/runtime.vue": __vite_glob_2_5,
|
|
91904
92075
|
"../columns/2026-05-21/com.shwfed.table.column.drag-handle/runtime.vue": __vite_glob_2_5
|
|
91905
92076
|
});
|
|
92077
|
+
const sourceKey$1 = (type2, compatibilityDate2) => `${type2}@${compatibilityDate2}`;
|
|
91906
92078
|
const registry$2 = defineRegistry({
|
|
91907
92079
|
hostName: "shwfed-table",
|
|
91908
92080
|
dirSegment: "columns",
|
|
@@ -91913,6 +92085,47 @@ const registry$2 = defineRegistry({
|
|
|
91913
92085
|
if (typeof mod.toColumnDef !== "function") {
|
|
91914
92086
|
throw new TypeError(`[shwfed-table] column "${type2}@${date2}" is missing toColumnDef export`);
|
|
91915
92087
|
}
|
|
92088
|
+
},
|
|
92089
|
+
// Deprecation rules mirror the form host:
|
|
92090
|
+
// (a) date-versioned: another entry shares this entry's `type` with a
|
|
92091
|
+
// strictly greater `compatibilityDate`;
|
|
92092
|
+
// (b) explicit cross-type: another entry declares this one in its
|
|
92093
|
+
// `migrateFrom`. Same source claimed twice → throw.
|
|
92094
|
+
deriveEntryExtras: (drafts) => {
|
|
92095
|
+
const latestByType = /* @__PURE__ */ new Map();
|
|
92096
|
+
for (const d of drafts) {
|
|
92097
|
+
const prev = latestByType.get(d.type);
|
|
92098
|
+
if (!prev || d.compatibilityDate > prev) latestByType.set(d.type, d.compatibilityDate);
|
|
92099
|
+
}
|
|
92100
|
+
const migrationTargets2 = /* @__PURE__ */ new Map();
|
|
92101
|
+
for (const d of drafts) {
|
|
92102
|
+
const sources = d.module.migrateFrom;
|
|
92103
|
+
if (!sources || sources.length === 0) continue;
|
|
92104
|
+
for (const src of sources) {
|
|
92105
|
+
const key = sourceKey$1(src.type, src.compatibilityDate);
|
|
92106
|
+
const existing = migrationTargets2.get(key);
|
|
92107
|
+
if (existing) {
|
|
92108
|
+
throw new Error(
|
|
92109
|
+
`[shwfed-table] migrateFrom collision: source "${key}" is claimed by both "${sourceKey$1(existing.type, existing.compatibilityDate)}" and "${sourceKey$1(d.type, d.compatibilityDate)}"`
|
|
92110
|
+
);
|
|
92111
|
+
}
|
|
92112
|
+
migrationTargets2.set(key, { type: d.type, compatibilityDate: d.compatibilityDate });
|
|
92113
|
+
}
|
|
92114
|
+
}
|
|
92115
|
+
return (draft) => {
|
|
92116
|
+
const declared = migrationTargets2.get(sourceKey$1(draft.type, draft.compatibilityDate));
|
|
92117
|
+
if (declared) {
|
|
92118
|
+
return { deprecated: true, supersededBy: declared };
|
|
92119
|
+
}
|
|
92120
|
+
const latest = latestByType.get(draft.type);
|
|
92121
|
+
if (draft.compatibilityDate < latest) {
|
|
92122
|
+
return {
|
|
92123
|
+
deprecated: true,
|
|
92124
|
+
supersededBy: { type: draft.type, compatibilityDate: latest }
|
|
92125
|
+
};
|
|
92126
|
+
}
|
|
92127
|
+
return { deprecated: false };
|
|
92128
|
+
};
|
|
91916
92129
|
}
|
|
91917
92130
|
});
|
|
91918
92131
|
const COLUMNS = registry$2.ENTRIES.map((e) => ({
|
|
@@ -91922,8 +92135,26 @@ const COLUMNS = registry$2.ENTRIES.map((e) => ({
|
|
|
91922
92135
|
schema: e.module.schema,
|
|
91923
92136
|
config: e.config,
|
|
91924
92137
|
runtime: e.runtime,
|
|
91925
|
-
toColumnDef: e.module.toColumnDef
|
|
92138
|
+
toColumnDef: e.module.toColumnDef,
|
|
92139
|
+
deprecated: e.deprecated,
|
|
92140
|
+
...e.supersededBy !== void 0 ? { supersededBy: e.supersededBy } : {},
|
|
92141
|
+
...e.module.migrate !== void 0 ? { migrate: e.module.migrate } : {},
|
|
92142
|
+
...e.module.migrateFrom !== void 0 ? { migrateFrom: e.module.migrateFrom } : {}
|
|
91926
92143
|
}));
|
|
92144
|
+
(() => {
|
|
92145
|
+
const map2 = /* @__PURE__ */ new Map();
|
|
92146
|
+
for (const entry of COLUMNS) {
|
|
92147
|
+
const sources = entry.migrateFrom;
|
|
92148
|
+
if (!sources || sources.length === 0) continue;
|
|
92149
|
+
for (const src of sources) {
|
|
92150
|
+
map2.set(sourceKey$1(src.type, src.compatibilityDate), {
|
|
92151
|
+
type: entry.type,
|
|
92152
|
+
compatibilityDate: entry.compatibilityDate
|
|
92153
|
+
});
|
|
92154
|
+
}
|
|
92155
|
+
}
|
|
92156
|
+
return map2;
|
|
92157
|
+
})();
|
|
91927
92158
|
function allColumnSchemas(configure) {
|
|
91928
92159
|
return COLUMNS.map((entry) => entry.schema(configure));
|
|
91929
92160
|
}
|
|
@@ -92351,8 +92582,8 @@ const schemaModules$1 = /* @__PURE__ */ Object.assign({
|
|
|
92351
92582
|
"../fields/2026-04-27/com.shwfed.form.field.timerange/schema.ts": __vite_glob_0_10$1,
|
|
92352
92583
|
"../fields/2026-04-28/com.shwfed.form.field.number/schema.ts": __vite_glob_0_11$1,
|
|
92353
92584
|
"../fields/2026-04-28/com.shwfed.form.field.numberrange/schema.ts": __vite_glob_0_12$1,
|
|
92354
|
-
"../fields/2026-04-28/com.shwfed.form.field.switch/schema.ts": __vite_glob_0_13,
|
|
92355
|
-
"../fields/2026-04-29/com.shwfed.form.field.combobox.single/schema.ts": __vite_glob_0_14,
|
|
92585
|
+
"../fields/2026-04-28/com.shwfed.form.field.switch/schema.ts": __vite_glob_0_13$1,
|
|
92586
|
+
"../fields/2026-04-29/com.shwfed.form.field.combobox.single/schema.ts": __vite_glob_0_14$1,
|
|
92356
92587
|
"../fields/2026-05-12/com.shwfed.form.field.upload/schema.ts": __vite_glob_0_15,
|
|
92357
92588
|
"../fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/schema.ts": __vite_glob_0_16,
|
|
92358
92589
|
"../fields/2026-05-13/com.shwfed.form.field.list/schema.ts": __vite_glob_0_17,
|
|
@@ -92409,25 +92640,56 @@ const runtimeModules$1 = /* @__PURE__ */ Object.assign({
|
|
|
92409
92640
|
"../fields/2026-05-18/com.shwfed.form.field.table/runtime.vue": __vite_glob_2_5,
|
|
92410
92641
|
"../fields/2026-05-20/com.shwfed.form.field.collapsible/runtime.vue": __vite_glob_2_5
|
|
92411
92642
|
});
|
|
92643
|
+
const sourceKey = (type2, compatibilityDate2) => `${type2}@${compatibilityDate2}`;
|
|
92412
92644
|
const registry$1 = defineRegistry({
|
|
92413
92645
|
hostName: "shwfed-form",
|
|
92414
92646
|
dirSegment: "fields",
|
|
92415
92647
|
schemaModules: schemaModules$1,
|
|
92416
92648
|
configModules: configModules$1,
|
|
92417
92649
|
runtimeModules: runtimeModules$1,
|
|
92418
|
-
// An entry is deprecated
|
|
92419
|
-
//
|
|
92420
|
-
//
|
|
92650
|
+
// An entry is deprecated by one of two rules:
|
|
92651
|
+
// (a) another entry shares its `type` with a strictly greater
|
|
92652
|
+
// `compatibilityDate` — date-versioned supersession;
|
|
92653
|
+
// (b) another entry declares this one in its `migrateFrom` — explicit
|
|
92654
|
+
// cross-type supersession (rename, split, merge).
|
|
92655
|
+
// Rule (a) wins on overlap, since the date-versioned rule is the implicit
|
|
92656
|
+
// convention; an explicit `migrateFrom` against a still-current entry is
|
|
92657
|
+
// almost always a mistake, but we let it slide as long as no two targets
|
|
92658
|
+
// claim the same source (that collision throws below).
|
|
92421
92659
|
deriveEntryExtras: (drafts) => {
|
|
92422
92660
|
const latestByType = /* @__PURE__ */ new Map();
|
|
92423
92661
|
for (const d of drafts) {
|
|
92424
92662
|
const prev = latestByType.get(d.type);
|
|
92425
92663
|
if (!prev || d.compatibilityDate > prev) latestByType.set(d.type, d.compatibilityDate);
|
|
92426
92664
|
}
|
|
92665
|
+
const migrationTargets = /* @__PURE__ */ new Map();
|
|
92666
|
+
for (const d of drafts) {
|
|
92667
|
+
const sources = d.module.migrateFrom;
|
|
92668
|
+
if (!sources || sources.length === 0) continue;
|
|
92669
|
+
for (const src of sources) {
|
|
92670
|
+
const key = sourceKey(src.type, src.compatibilityDate);
|
|
92671
|
+
const existing = migrationTargets.get(key);
|
|
92672
|
+
if (existing) {
|
|
92673
|
+
throw new Error(
|
|
92674
|
+
`[shwfed-form] migrateFrom collision: source "${key}" is claimed by both "${sourceKey(existing.type, existing.compatibilityDate)}" and "${sourceKey(d.type, d.compatibilityDate)}"`
|
|
92675
|
+
);
|
|
92676
|
+
}
|
|
92677
|
+
migrationTargets.set(key, { type: d.type, compatibilityDate: d.compatibilityDate });
|
|
92678
|
+
}
|
|
92679
|
+
}
|
|
92427
92680
|
return (draft) => {
|
|
92681
|
+
const declared = migrationTargets.get(sourceKey(draft.type, draft.compatibilityDate));
|
|
92682
|
+
if (declared) {
|
|
92683
|
+
return { deprecated: true, supersededBy: declared };
|
|
92684
|
+
}
|
|
92428
92685
|
const latest = latestByType.get(draft.type);
|
|
92429
|
-
|
|
92430
|
-
|
|
92686
|
+
if (draft.compatibilityDate < latest) {
|
|
92687
|
+
return {
|
|
92688
|
+
deprecated: true,
|
|
92689
|
+
supersededBy: { type: draft.type, compatibilityDate: latest }
|
|
92690
|
+
};
|
|
92691
|
+
}
|
|
92692
|
+
return { deprecated: false };
|
|
92431
92693
|
};
|
|
92432
92694
|
}
|
|
92433
92695
|
});
|
|
@@ -92444,6 +92706,7 @@ function getFields() {
|
|
|
92444
92706
|
deprecated: e.deprecated,
|
|
92445
92707
|
...e.supersededBy !== void 0 ? { supersededBy: e.supersededBy } : {},
|
|
92446
92708
|
migrate: e.module.migrate,
|
|
92709
|
+
...e.module.migrateFrom !== void 0 ? { migrateFrom: e.module.migrateFrom } : {},
|
|
92447
92710
|
defaults: e.module.defaults
|
|
92448
92711
|
}));
|
|
92449
92712
|
return _fields;
|
|
@@ -93258,7 +93521,7 @@ server.registerTool("get_schema", {
|
|
|
93258
93521
|
" - `foo[]` step into an array's `items` after resolving `foo`",
|
|
93259
93522
|
" - `<type>` on a union, pick the branch whose `type` discriminator matches; if multiple `compatibilityDate` versions exist, picks the latest",
|
|
93260
93523
|
" - `<type>@<date>` pin to a specific compatibilityDate",
|
|
93261
|
-
"Example: `blocks[]/com.shwfed.block.table/columns[]/com.shwfed.table.column.switch`. On a bad segment the error lists the legal next steps."
|
|
93524
|
+
"Example: `blocks[]/com.shwfed.block.table/columns[]/com.shwfed.table.column.switch.local`. On a bad segment the error lists the legal next steps."
|
|
93262
93525
|
].join("\n"),
|
|
93263
93526
|
inputSchema: {
|
|
93264
93527
|
path: string$1().optional().describe("Optional `/`-separated path to narrow into. Omit to return the full schema.")
|