@shwfed/config 2.3.24 → 2.3.25
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 +1059 -634
- package/dist/module.json +1 -1
- package/dist/preview/assets/{config-DYAEfkYR.js → config-BYTuKQZr.js} +1 -1
- package/dist/preview/assets/{config-D5Kfssb7.js → config-BoE06fMj.js} +1 -1
- package/dist/preview/assets/{config-CWZxlCMJ.js → config-CV5P2_b2.js} +1 -1
- package/dist/preview/assets/{config-CaZpOvHG.js → config-CVAFGzPb.js} +1 -1
- package/dist/preview/assets/{config-B3at5Bue.js → config-CdH0Nxqa.js} +1 -1
- package/dist/preview/assets/{config-B-6Htwv0.js → config-CjlRnKnY.js} +1 -1
- package/dist/preview/assets/{config-CBHKrOP5.js → config-CrvG15To.js} +1 -1
- package/dist/preview/assets/{config-Bi9uFh4Y.js → config-DZXC8YJ4.js} +1 -1
- package/dist/preview/assets/{config-B2KjxFl5.js → config-QaYy6DCp.js} +1 -1
- package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-8BVrrrak.js → definition.vue_vue_type_script_setup_true_lang-CBPR0zl_.js} +1 -1
- package/dist/preview/assets/{index-CJMxrUKZ.css → index-BCE-G4Ha.css} +1 -1
- package/dist/preview/assets/index-BbnG2cVz.js +643 -0
- package/dist/preview/assets/index-NFKAYzMi.js +1 -0
- package/dist/preview/assets/{runtime-C1iENPNJ.js → runtime-1AP_-j3e.js} +1 -1
- package/dist/preview/assets/{runtime-CEP42oTV.js → runtime-BQiYt6n7.js} +1 -1
- package/dist/preview/assets/{runtime-aBsBSCeg.js → runtime-BsiLYYky.js} +1 -1
- package/dist/preview/assets/{runtime-CoRrnGx1.js → runtime-C-h7PIyx.js} +1 -1
- package/dist/preview/assets/{runtime-CRHn61GX.js → runtime-CGW3z1YJ.js} +1 -1
- package/dist/preview/assets/{runtime-Hvzx1ucy.js → runtime-C_R-VCbd.js} +1 -1
- package/dist/preview/assets/{runtime-C5CCMnHt.js → runtime-DGdEDDUA.js} +1 -1
- package/dist/preview/assets/{runtime-jrsJfwMb.js → runtime-DwXjew7j.js} +1 -1
- package/dist/preview/assets/{runtime-CqciI2ST.js → runtime-pM3u8QsQ.js} +1 -1
- package/dist/preview/index.html +2 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +4 -4
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.d.vue.ts +26 -26
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue +4 -14
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue.d.ts +26 -26
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/schema.d.ts +27 -1
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/schema.js +14 -11
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +26 -26
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue +4 -12
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +26 -26
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/schema.d.ts +27 -1
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/schema.js +14 -11
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.d.vue.ts +163 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue +699 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue.d.ts +163 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/runtime.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/runtime.vue +349 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/runtime.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/schema.d.ts +251 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/schema.js +178 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +167 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue +732 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +167 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/runtime.d.vue.ts +9 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/runtime.vue +383 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/runtime.vue.d.ts +9 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/schema.d.ts +253 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/schema.js +230 -0
- package/dist/runtime/components/table/config.vue +40 -0
- package/package.json +1 -1
- package/dist/preview/assets/index-B3wadvvl.js +0 -1
- package/dist/preview/assets/index-DTsYYECD.js +0 -643
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$12 = "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$12,
|
|
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$11 = {};
|
|
18520
18520
|
var hasRequiredMetadata;
|
|
18521
18521
|
function requireMetadata() {
|
|
18522
|
-
if (hasRequiredMetadata) return metadata
|
|
18522
|
+
if (hasRequiredMetadata) return metadata$11;
|
|
18523
18523
|
hasRequiredMetadata = 1;
|
|
18524
|
-
Object.defineProperty(metadata
|
|
18525
|
-
metadata
|
|
18526
|
-
metadata
|
|
18524
|
+
Object.defineProperty(metadata$11, "__esModule", { value: true });
|
|
18525
|
+
metadata$11.contentVocabulary = metadata$11.metadataVocabulary = void 0;
|
|
18526
|
+
metadata$11.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$11.contentVocabulary = [
|
|
18536
18536
|
"contentMediaType",
|
|
18537
18537
|
"contentEncoding",
|
|
18538
18538
|
"contentSchema"
|
|
18539
18539
|
];
|
|
18540
|
-
return metadata
|
|
18540
|
+
return metadata$11;
|
|
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$11 = ["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$11,
|
|
18694
18694
|
properties,
|
|
18695
18695
|
"default": true
|
|
18696
18696
|
};
|
|
@@ -81490,13 +81490,13 @@ function md(...args2) {
|
|
|
81490
81490
|
const indent = (original.startsWith("\n") ? original.slice(1) : original).split("\n", 1)[0]?.match(/^(\s*)/)?.[1]?.length ?? 0;
|
|
81491
81491
|
return original.trim().replaceAll("\\`", "`").split("\n").map((line) => line.replace(new RegExp(`^${String.raw`\s`.repeat(indent)}`), "")).join("\n");
|
|
81492
81492
|
}
|
|
81493
|
-
const type$
|
|
81494
|
-
const compatibilityDate$
|
|
81495
|
-
const metadata$
|
|
81493
|
+
const type$10 = "com.shwfed.actions.button.http.request.json.confirm";
|
|
81494
|
+
const compatibilityDate$10 = "2026-04-18";
|
|
81495
|
+
const metadata$10 = {
|
|
81496
81496
|
name: "网络请求(JSON + 确认)",
|
|
81497
81497
|
icon: "fluent:shield-checkmark-20-regular"
|
|
81498
81498
|
};
|
|
81499
|
-
function schema$
|
|
81499
|
+
function schema$10(configure) {
|
|
81500
81500
|
const CelHttpRequest = Expression({ configure, resultType: "HttpRequest" });
|
|
81501
81501
|
const CelMessage = Expression({
|
|
81502
81502
|
configure: (env) => {
|
|
@@ -81508,8 +81508,8 @@ function schema$_(configure) {
|
|
|
81508
81508
|
resultType: "string"
|
|
81509
81509
|
});
|
|
81510
81510
|
return Struct({
|
|
81511
|
-
type: Literal2(type$
|
|
81512
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
81511
|
+
type: Literal2(type$10),
|
|
81512
|
+
compatibilityDate: Literal2(compatibilityDate$10),
|
|
81513
81513
|
expression: CelHttpRequest.annotations({
|
|
81514
81514
|
title: "请求",
|
|
81515
81515
|
description: md`
|
|
@@ -81567,18 +81567,18 @@ function schema$_(configure) {
|
|
|
81567
81567
|
}
|
|
81568
81568
|
const __vite_glob_0_0$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81569
81569
|
__proto__: null,
|
|
81570
|
-
compatibilityDate: compatibilityDate$
|
|
81571
|
-
metadata: metadata$
|
|
81572
|
-
schema: schema$
|
|
81573
|
-
type: type$
|
|
81570
|
+
compatibilityDate: compatibilityDate$10,
|
|
81571
|
+
metadata: metadata$10,
|
|
81572
|
+
schema: schema$10,
|
|
81573
|
+
type: type$10
|
|
81574
81574
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
81575
|
-
const type
|
|
81576
|
-
const compatibilityDate
|
|
81577
|
-
const metadata
|
|
81575
|
+
const type$$ = "com.shwfed.actions.button.http.request.json";
|
|
81576
|
+
const compatibilityDate$$ = "2026-04-18";
|
|
81577
|
+
const metadata$$ = {
|
|
81578
81578
|
name: "网络请求(JSON)",
|
|
81579
81579
|
icon: "fluent:cloud-arrow-up-20-regular"
|
|
81580
81580
|
};
|
|
81581
|
-
function schema
|
|
81581
|
+
function schema$$(configure) {
|
|
81582
81582
|
const CelHttpRequest = Expression({ configure, resultType: "HttpRequest" });
|
|
81583
81583
|
const CelMessage = Expression({
|
|
81584
81584
|
configure: (env) => {
|
|
@@ -81590,8 +81590,8 @@ function schema$Z(configure) {
|
|
|
81590
81590
|
resultType: "string"
|
|
81591
81591
|
});
|
|
81592
81592
|
return Struct({
|
|
81593
|
-
type: Literal2(type
|
|
81594
|
-
compatibilityDate: Literal2(compatibilityDate
|
|
81593
|
+
type: Literal2(type$$),
|
|
81594
|
+
compatibilityDate: Literal2(compatibilityDate$$),
|
|
81595
81595
|
expression: CelHttpRequest.annotations({
|
|
81596
81596
|
title: "请求",
|
|
81597
81597
|
description: md`
|
|
@@ -81637,21 +81637,21 @@ function schema$Z(configure) {
|
|
|
81637
81637
|
}
|
|
81638
81638
|
const __vite_glob_0_1$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81639
81639
|
__proto__: null,
|
|
81640
|
-
compatibilityDate: compatibilityDate
|
|
81641
|
-
metadata: metadata
|
|
81642
|
-
schema: schema
|
|
81643
|
-
type: type
|
|
81640
|
+
compatibilityDate: compatibilityDate$$,
|
|
81641
|
+
metadata: metadata$$,
|
|
81642
|
+
schema: schema$$,
|
|
81643
|
+
type: type$$
|
|
81644
81644
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
81645
|
-
const type$
|
|
81646
|
-
const compatibilityDate$
|
|
81647
|
-
const metadata$
|
|
81645
|
+
const type$_ = "com.shwfed.actions.button.prototype";
|
|
81646
|
+
const compatibilityDate$_ = "2026-04-18";
|
|
81647
|
+
const metadata$_ = {
|
|
81648
81648
|
name: "原型",
|
|
81649
81649
|
icon: "fluent:predictions-20-regular"
|
|
81650
81650
|
};
|
|
81651
|
-
function schema$
|
|
81651
|
+
function schema$_(_configure) {
|
|
81652
81652
|
return Struct({
|
|
81653
|
-
type: Literal2(type$
|
|
81654
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
81653
|
+
type: Literal2(type$_),
|
|
81654
|
+
compatibilityDate: Literal2(compatibilityDate$_)
|
|
81655
81655
|
}).annotations({
|
|
81656
81656
|
title: "PrototypeAction",
|
|
81657
81657
|
description: "点击无副作用的原型按钮,可被一次性转换为其它类型"
|
|
@@ -81659,23 +81659,23 @@ function schema$Y(_configure) {
|
|
|
81659
81659
|
}
|
|
81660
81660
|
const __vite_glob_0_2$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81661
81661
|
__proto__: null,
|
|
81662
|
-
compatibilityDate: compatibilityDate$
|
|
81663
|
-
metadata: metadata$
|
|
81664
|
-
schema: schema$
|
|
81665
|
-
type: type$
|
|
81662
|
+
compatibilityDate: compatibilityDate$_,
|
|
81663
|
+
metadata: metadata$_,
|
|
81664
|
+
schema: schema$_,
|
|
81665
|
+
type: type$_
|
|
81666
81666
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
81667
|
-
const type$
|
|
81668
|
-
const compatibilityDate$
|
|
81669
|
-
const metadata$
|
|
81667
|
+
const type$Z = "com.shwfed.actions.button.navigation";
|
|
81668
|
+
const compatibilityDate$Z = "2026-04-21";
|
|
81669
|
+
const metadata$Z = {
|
|
81670
81670
|
name: "导航",
|
|
81671
81671
|
icon: "fluent:link-20-regular"
|
|
81672
81672
|
};
|
|
81673
81673
|
const Mode = Literal2("_self", "_blank");
|
|
81674
|
-
function schema$
|
|
81674
|
+
function schema$Z(configure) {
|
|
81675
81675
|
const CelUrl = Expression({ configure, resultType: "string" });
|
|
81676
81676
|
return Struct({
|
|
81677
|
-
type: Literal2(type$
|
|
81678
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
81677
|
+
type: Literal2(type$Z),
|
|
81678
|
+
compatibilityDate: Literal2(compatibilityDate$Z),
|
|
81679
81679
|
url: CelUrl.annotations({
|
|
81680
81680
|
title: "链接",
|
|
81681
81681
|
description: "点击后将打开的链接,返回 `string`"
|
|
@@ -81691,10 +81691,10 @@ function schema$X(configure) {
|
|
|
81691
81691
|
}
|
|
81692
81692
|
const __vite_glob_0_3$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81693
81693
|
__proto__: null,
|
|
81694
|
-
compatibilityDate: compatibilityDate$
|
|
81695
|
-
metadata: metadata$
|
|
81696
|
-
schema: schema$
|
|
81697
|
-
type: type$
|
|
81694
|
+
compatibilityDate: compatibilityDate$Z,
|
|
81695
|
+
metadata: metadata$Z,
|
|
81696
|
+
schema: schema$Z,
|
|
81697
|
+
type: type$Z
|
|
81698
81698
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
81699
81699
|
const TrackCount = Number$.pipe(int(), positive());
|
|
81700
81700
|
const GridCoord = Number$.pipe(int(), positive());
|
|
@@ -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$Y = "com.shwfed.actions.button.modal.layout";
|
|
81834
|
+
const compatibilityDate$Y = "2026-05-11";
|
|
81835
|
+
const metadata$Y = {
|
|
81836
81836
|
name: "模态窗口",
|
|
81837
81837
|
icon: "fluent:window-edit-20-regular",
|
|
81838
81838
|
drillable: true,
|
|
@@ -81843,12 +81843,12 @@ const metadata$W = {
|
|
|
81843
81843
|
const CssLength = String$.pipe(
|
|
81844
81844
|
filter((s) => s.trim().length > 0 || "不能为空字符串")
|
|
81845
81845
|
);
|
|
81846
|
-
function schema$
|
|
81846
|
+
function schema$Y(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$Y),
|
|
81851
|
+
compatibilityDate: Literal2(compatibilityDate$Y),
|
|
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$Y,
|
|
81881
81881
|
defaultBody: defaultBody$6,
|
|
81882
|
-
metadata: metadata$
|
|
81883
|
-
schema: schema$
|
|
81884
|
-
type: type$
|
|
81882
|
+
metadata: metadata$Y,
|
|
81883
|
+
schema: schema$Y,
|
|
81884
|
+
type: type$Y
|
|
81885
81885
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
81886
|
-
const type$
|
|
81887
|
-
const compatibilityDate$
|
|
81888
|
-
const metadata$
|
|
81886
|
+
const type$X = "com.shwfed.actions.button.event.dispatch";
|
|
81887
|
+
const compatibilityDate$X = "2026-05-15";
|
|
81888
|
+
const metadata$X = {
|
|
81889
81889
|
name: "触发事件",
|
|
81890
81890
|
icon: "fluent:flash-20-regular"
|
|
81891
81891
|
};
|
|
81892
|
-
function schema$
|
|
81892
|
+
function schema$X(_configure) {
|
|
81893
81893
|
return Struct({
|
|
81894
|
-
type: Literal2(type$
|
|
81895
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
81894
|
+
type: Literal2(type$X),
|
|
81895
|
+
compatibilityDate: Literal2(compatibilityDate$X),
|
|
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$V(_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$X,
|
|
81907
|
+
metadata: metadata$X,
|
|
81908
|
+
schema: schema$X,
|
|
81909
|
+
type: type$X
|
|
81910
81910
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
81911
|
-
const type$
|
|
81912
|
-
const compatibilityDate$
|
|
81913
|
-
const metadata$
|
|
81911
|
+
const type$W = "com.shwfed.actions.button.http.download";
|
|
81912
|
+
const compatibilityDate$W = "2026-05-21";
|
|
81913
|
+
const metadata$W = {
|
|
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$4.type, { description: JSON_VAR$4.description });
|
|
81926
81926
|
};
|
|
81927
81927
|
}
|
|
81928
|
-
function schema$
|
|
81928
|
+
function schema$W(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$W),
|
|
81934
|
+
compatibilityDate: Literal2(compatibilityDate$W),
|
|
81935
81935
|
template: Struct({
|
|
81936
81936
|
request: CelHttpRequest.annotations({
|
|
81937
81937
|
title: "请求",
|
|
@@ -81994,25 +81994,25 @@ function schema$U(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$4,
|
|
81997
|
-
compatibilityDate: compatibilityDate$
|
|
81998
|
-
metadata: metadata$
|
|
81999
|
-
schema: schema$
|
|
82000
|
-
type: type$
|
|
81997
|
+
compatibilityDate: compatibilityDate$W,
|
|
81998
|
+
metadata: metadata$W,
|
|
81999
|
+
schema: schema$W,
|
|
82000
|
+
type: type$W
|
|
82001
82001
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82002
|
-
const type$
|
|
82003
|
-
const compatibilityDate$
|
|
82004
|
-
const metadata$
|
|
82002
|
+
const type$V = "com.shwfed.actions.button.state.write";
|
|
82003
|
+
const compatibilityDate$V = "2026-05-24";
|
|
82004
|
+
const metadata$V = {
|
|
82005
82005
|
name: "写入表单状态",
|
|
82006
82006
|
icon: "fluent:document-edit-20-regular"
|
|
82007
82007
|
};
|
|
82008
|
-
function schema$
|
|
82008
|
+
function schema$V(configure) {
|
|
82009
82009
|
const CelRecord = Expression({
|
|
82010
82010
|
configure,
|
|
82011
82011
|
resultType: (t) => t === "dyn" || t.startsWith("map")
|
|
82012
82012
|
});
|
|
82013
82013
|
return Struct({
|
|
82014
|
-
type: Literal2(type$
|
|
82015
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82014
|
+
type: Literal2(type$V),
|
|
82015
|
+
compatibilityDate: Literal2(compatibilityDate$V),
|
|
82016
82016
|
expression: CelRecord.annotations({
|
|
82017
82017
|
title: "写入值",
|
|
82018
82018
|
description: md`
|
|
@@ -82032,25 +82032,25 @@ function schema$T(configure) {
|
|
|
82032
82032
|
}
|
|
82033
82033
|
const __vite_glob_0_7$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82034
82034
|
__proto__: null,
|
|
82035
|
-
compatibilityDate: compatibilityDate$
|
|
82036
|
-
metadata: metadata$
|
|
82037
|
-
schema: schema$
|
|
82038
|
-
type: type$
|
|
82035
|
+
compatibilityDate: compatibilityDate$V,
|
|
82036
|
+
metadata: metadata$V,
|
|
82037
|
+
schema: schema$V,
|
|
82038
|
+
type: type$V
|
|
82039
82039
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82040
|
-
const type$
|
|
82041
|
-
const compatibilityDate$
|
|
82042
|
-
const metadata$
|
|
82040
|
+
const type$U = "com.shwfed.actions.item.markdown";
|
|
82041
|
+
const compatibilityDate$U = "2026-05-21";
|
|
82042
|
+
const metadata$U = {
|
|
82043
82043
|
name: "内联 Markdown",
|
|
82044
82044
|
icon: "fluent:markdown-20-regular"
|
|
82045
82045
|
};
|
|
82046
|
-
function schema$
|
|
82046
|
+
function schema$U(_configure) {
|
|
82047
82047
|
return Struct({
|
|
82048
82048
|
id: UUID.annotations({ description: "Markdown 项唯一标识" }),
|
|
82049
82049
|
// Present when the item sits at group level; absent when it lives as a
|
|
82050
82050
|
// dropdown sub-item (the parent is the dropdown itself).
|
|
82051
82051
|
groupId: optional(UUID.annotations({ description: "所属按钮组标识" })),
|
|
82052
|
-
type: Literal2(type$
|
|
82053
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82052
|
+
type: Literal2(type$U),
|
|
82053
|
+
compatibilityDate: Literal2(compatibilityDate$U),
|
|
82054
82054
|
name: String$.annotations({
|
|
82055
82055
|
title: "内部名称",
|
|
82056
82056
|
description: "仅用于编辑器内识别该 Markdown 项,不会展示给最终用户"
|
|
@@ -82066,10 +82066,10 @@ function schema$S(_configure) {
|
|
|
82066
82066
|
}
|
|
82067
82067
|
const __vite_glob_3_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82068
82068
|
__proto__: null,
|
|
82069
|
-
compatibilityDate: compatibilityDate$
|
|
82070
|
-
metadata: metadata$
|
|
82071
|
-
schema: schema$
|
|
82072
|
-
type: type$
|
|
82069
|
+
compatibilityDate: compatibilityDate$U,
|
|
82070
|
+
metadata: metadata$U,
|
|
82071
|
+
schema: schema$U,
|
|
82072
|
+
type: type$U
|
|
82073
82073
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82074
82074
|
function defineRegistry(options) {
|
|
82075
82075
|
const {
|
|
@@ -82441,20 +82441,20 @@ function defaultActionsConfig() {
|
|
|
82441
82441
|
items: []
|
|
82442
82442
|
};
|
|
82443
82443
|
}
|
|
82444
|
-
const type$
|
|
82445
|
-
const compatibilityDate$
|
|
82446
|
-
const metadata$
|
|
82444
|
+
const type$T = "com.shwfed.block.actions";
|
|
82445
|
+
const compatibilityDate$T = "2026-05-06";
|
|
82446
|
+
const metadata$T = {
|
|
82447
82447
|
name: "操作按钮",
|
|
82448
82448
|
icon: "fluent:cursor-click-20-regular",
|
|
82449
82449
|
w: { initial: 8, min: 8, max: Infinity },
|
|
82450
82450
|
h: { initial: 2, min: 2, max: Infinity }
|
|
82451
82451
|
};
|
|
82452
|
-
function schema$
|
|
82452
|
+
function schema$T(configure, _blockRef) {
|
|
82453
82453
|
const ActionsSchema = ActionsConfig(configure);
|
|
82454
82454
|
return Struct({
|
|
82455
82455
|
id: UUID.annotations({ description: "块唯一标识" }),
|
|
82456
|
-
type: tag(type$
|
|
82457
|
-
compatibilityDate: tag(compatibilityDate$
|
|
82456
|
+
type: tag(type$T),
|
|
82457
|
+
compatibilityDate: tag(compatibilityDate$T),
|
|
82458
82458
|
actions: ActionsSchema.annotations({
|
|
82459
82459
|
title: "操作按钮配置",
|
|
82460
82460
|
description: "内嵌的 Actions 组件配置"
|
|
@@ -82469,11 +82469,11 @@ function defaultBody$5() {
|
|
|
82469
82469
|
}
|
|
82470
82470
|
const __vite_glob_0_0$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82471
82471
|
__proto__: null,
|
|
82472
|
-
compatibilityDate: compatibilityDate$
|
|
82472
|
+
compatibilityDate: compatibilityDate$T,
|
|
82473
82473
|
defaultBody: defaultBody$5,
|
|
82474
|
-
metadata: metadata$
|
|
82475
|
-
schema: schema$
|
|
82476
|
-
type: type$
|
|
82474
|
+
metadata: metadata$T,
|
|
82475
|
+
schema: schema$T,
|
|
82476
|
+
type: type$T
|
|
82477
82477
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82478
82478
|
function commonFieldFields(configure) {
|
|
82479
82479
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
@@ -82520,18 +82520,18 @@ function derivedField(configure, resultType) {
|
|
|
82520
82520
|
})
|
|
82521
82521
|
);
|
|
82522
82522
|
}
|
|
82523
|
-
const type$
|
|
82524
|
-
const compatibilityDate$
|
|
82525
|
-
const metadata$
|
|
82523
|
+
const type$S = "com.shwfed.form.field.markdown";
|
|
82524
|
+
const compatibilityDate$S = "2026-04-22";
|
|
82525
|
+
const metadata$S = {
|
|
82526
82526
|
name: "Markdown",
|
|
82527
82527
|
icon: "fluent:markdown-20-regular",
|
|
82528
82528
|
w: { initial: 8, min: 2, max: Infinity },
|
|
82529
82529
|
h: { initial: 2, min: 2, max: Infinity }
|
|
82530
82530
|
};
|
|
82531
|
-
function schema$
|
|
82531
|
+
function schema$S(configure) {
|
|
82532
82532
|
return Struct({
|
|
82533
|
-
type: Literal2(type$
|
|
82534
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82533
|
+
type: Literal2(type$S),
|
|
82534
|
+
compatibilityDate: Literal2(compatibilityDate$S),
|
|
82535
82535
|
...commonFieldFields(configure),
|
|
82536
82536
|
content: Locale.annotations({
|
|
82537
82537
|
title: "内容",
|
|
@@ -82544,24 +82544,24 @@ function schema$Q(configure) {
|
|
|
82544
82544
|
}
|
|
82545
82545
|
const __vite_glob_0_0$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82546
82546
|
__proto__: null,
|
|
82547
|
-
compatibilityDate: compatibilityDate$
|
|
82548
|
-
metadata: metadata$
|
|
82549
|
-
schema: schema$
|
|
82550
|
-
type: type$
|
|
82547
|
+
compatibilityDate: compatibilityDate$S,
|
|
82548
|
+
metadata: metadata$S,
|
|
82549
|
+
schema: schema$S,
|
|
82550
|
+
type: type$S
|
|
82551
82551
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82552
|
-
const type$
|
|
82553
|
-
const compatibilityDate$
|
|
82554
|
-
const metadata$
|
|
82552
|
+
const type$R = "com.shwfed.form.field.text";
|
|
82553
|
+
const compatibilityDate$R = "2026-04-22";
|
|
82554
|
+
const metadata$R = {
|
|
82555
82555
|
name: "文本输入",
|
|
82556
82556
|
icon: "fluent:text-field-20-regular",
|
|
82557
82557
|
w: { initial: 8, min: 4, max: Infinity },
|
|
82558
82558
|
h: { initial: 2, min: 2, max: 2 }
|
|
82559
82559
|
};
|
|
82560
|
-
function schema$
|
|
82560
|
+
function schema$R(configure) {
|
|
82561
82561
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
82562
82562
|
return Struct({
|
|
82563
|
-
type: Literal2(type$
|
|
82564
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82563
|
+
type: Literal2(type$R),
|
|
82564
|
+
compatibilityDate: Literal2(compatibilityDate$R),
|
|
82565
82565
|
...commonFieldFields(configure),
|
|
82566
82566
|
label: optional(Locale.annotations({
|
|
82567
82567
|
title: "标签",
|
|
@@ -82596,24 +82596,24 @@ function schema$P(configure) {
|
|
|
82596
82596
|
}
|
|
82597
82597
|
const __vite_glob_0_1$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82598
82598
|
__proto__: null,
|
|
82599
|
-
compatibilityDate: compatibilityDate$
|
|
82600
|
-
metadata: metadata$
|
|
82601
|
-
schema: schema$
|
|
82602
|
-
type: type$
|
|
82599
|
+
compatibilityDate: compatibilityDate$R,
|
|
82600
|
+
metadata: metadata$R,
|
|
82601
|
+
schema: schema$R,
|
|
82602
|
+
type: type$R
|
|
82603
82603
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82604
|
-
const type$
|
|
82605
|
-
const compatibilityDate$
|
|
82606
|
-
const metadata$
|
|
82604
|
+
const type$Q = "com.shwfed.form.field.textarea";
|
|
82605
|
+
const compatibilityDate$Q = "2026-04-22";
|
|
82606
|
+
const metadata$Q = {
|
|
82607
82607
|
name: "多行文本输入",
|
|
82608
82608
|
icon: "fluent:text-description-20-regular",
|
|
82609
82609
|
w: { initial: 8, min: 4, max: Infinity },
|
|
82610
82610
|
h: { initial: 3, min: 2, max: Infinity, grow: true }
|
|
82611
82611
|
};
|
|
82612
|
-
function schema$
|
|
82612
|
+
function schema$Q(configure) {
|
|
82613
82613
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
82614
82614
|
return Struct({
|
|
82615
|
-
type: Literal2(type$
|
|
82616
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82615
|
+
type: Literal2(type$Q),
|
|
82616
|
+
compatibilityDate: Literal2(compatibilityDate$Q),
|
|
82617
82617
|
...commonFieldFields(configure),
|
|
82618
82618
|
label: optional(Locale.annotations({
|
|
82619
82619
|
title: "标签",
|
|
@@ -82652,25 +82652,25 @@ function schema$O(configure) {
|
|
|
82652
82652
|
}
|
|
82653
82653
|
const __vite_glob_0_2$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82654
82654
|
__proto__: null,
|
|
82655
|
-
compatibilityDate: compatibilityDate$
|
|
82656
|
-
metadata: metadata$
|
|
82657
|
-
schema: schema$
|
|
82658
|
-
type: type$
|
|
82655
|
+
compatibilityDate: compatibilityDate$Q,
|
|
82656
|
+
metadata: metadata$Q,
|
|
82657
|
+
schema: schema$Q,
|
|
82658
|
+
type: type$Q
|
|
82659
82659
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82660
|
-
const type$
|
|
82661
|
-
const compatibilityDate$
|
|
82662
|
-
const metadata$
|
|
82660
|
+
const type$P = "com.shwfed.form.field.actions";
|
|
82661
|
+
const compatibilityDate$P = "2026-04-24";
|
|
82662
|
+
const metadata$P = {
|
|
82663
82663
|
name: "操作",
|
|
82664
82664
|
icon: "fluent:cursor-click-20-regular",
|
|
82665
82665
|
w: { initial: 8, min: 4, max: Infinity },
|
|
82666
82666
|
h: { initial: 2, min: 2, max: Infinity }
|
|
82667
82667
|
};
|
|
82668
|
-
function schema$
|
|
82668
|
+
function schema$P(configure) {
|
|
82669
82669
|
const { fields: actionFields } = ActionSchemaFields(configure);
|
|
82670
82670
|
const { size: _size, groups, items: items2, ...rest } = actionFields;
|
|
82671
82671
|
return Struct({
|
|
82672
|
-
type: Literal2(type$
|
|
82673
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82672
|
+
type: Literal2(type$P),
|
|
82673
|
+
compatibilityDate: Literal2(compatibilityDate$P),
|
|
82674
82674
|
...commonFieldFields(configure),
|
|
82675
82675
|
...rest,
|
|
82676
82676
|
// Form's add-field factory creates new fields with only { type, compatibilityDate, id },
|
|
@@ -82684,14 +82684,14 @@ function schema$N(configure) {
|
|
|
82684
82684
|
}
|
|
82685
82685
|
const __vite_glob_0_3$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82686
82686
|
__proto__: null,
|
|
82687
|
-
compatibilityDate: compatibilityDate$
|
|
82688
|
-
metadata: metadata$
|
|
82689
|
-
schema: schema$
|
|
82690
|
-
type: type$
|
|
82687
|
+
compatibilityDate: compatibilityDate$P,
|
|
82688
|
+
metadata: metadata$P,
|
|
82689
|
+
schema: schema$P,
|
|
82690
|
+
type: type$P
|
|
82691
82691
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82692
|
-
const type$
|
|
82693
|
-
const compatibilityDate$
|
|
82694
|
-
const metadata$
|
|
82692
|
+
const type$O = "com.shwfed.form.field.combobox.single";
|
|
82693
|
+
const compatibilityDate$O = "2026-04-24";
|
|
82694
|
+
const metadata$O = {
|
|
82695
82695
|
name: "下拉单选",
|
|
82696
82696
|
icon: "fluent:chevron-down-20-regular",
|
|
82697
82697
|
w: { initial: 8, min: 4, max: Infinity },
|
|
@@ -82703,15 +82703,15 @@ function configureWithOption$2(configure) {
|
|
|
82703
82703
|
env.registerVariable("option", "dyn", { description: "当前选项" });
|
|
82704
82704
|
};
|
|
82705
82705
|
}
|
|
82706
|
-
const isListType$
|
|
82707
|
-
function schema$
|
|
82706
|
+
const isListType$9 = (actual) => actual === "dyn" || actual.startsWith("list");
|
|
82707
|
+
function schema$O(configure) {
|
|
82708
82708
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
82709
|
-
const CelOptions = Expression({ configure, resultType: isListType$
|
|
82709
|
+
const CelOptions = Expression({ configure, resultType: isListType$9 });
|
|
82710
82710
|
const CelOptionValue = Expression({ configure: configureWithOption$2(configure), resultType: "dyn" });
|
|
82711
82711
|
const LocaleOptionLabel = LocaleMarkdown({ configure: configureWithOption$2(configure) });
|
|
82712
82712
|
return Struct({
|
|
82713
|
-
type: Literal2(type$
|
|
82714
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82713
|
+
type: Literal2(type$O),
|
|
82714
|
+
compatibilityDate: Literal2(compatibilityDate$O),
|
|
82715
82715
|
...commonFieldFields(configure),
|
|
82716
82716
|
label: optional(Locale.annotations({
|
|
82717
82717
|
title: "标签",
|
|
@@ -82758,14 +82758,14 @@ function schema$M(configure) {
|
|
|
82758
82758
|
}
|
|
82759
82759
|
const __vite_glob_0_4$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82760
82760
|
__proto__: null,
|
|
82761
|
-
compatibilityDate: compatibilityDate$
|
|
82762
|
-
metadata: metadata$
|
|
82763
|
-
schema: schema$
|
|
82764
|
-
type: type$
|
|
82761
|
+
compatibilityDate: compatibilityDate$O,
|
|
82762
|
+
metadata: metadata$O,
|
|
82763
|
+
schema: schema$O,
|
|
82764
|
+
type: type$O
|
|
82765
82765
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82766
|
-
const type$
|
|
82767
|
-
const compatibilityDate$
|
|
82768
|
-
const metadata$
|
|
82766
|
+
const type$N = "com.shwfed.form.field.date";
|
|
82767
|
+
const compatibilityDate$N = "2026-04-27";
|
|
82768
|
+
const metadata$N = {
|
|
82769
82769
|
name: "日期",
|
|
82770
82770
|
icon: "fluent:calendar-ltr-20-regular",
|
|
82771
82771
|
w: { initial: 8, min: 4, max: Infinity },
|
|
@@ -82787,12 +82787,12 @@ function presetSchema$5(configure) {
|
|
|
82787
82787
|
title: "DateFieldPreset"
|
|
82788
82788
|
});
|
|
82789
82789
|
}
|
|
82790
|
-
function schema$
|
|
82790
|
+
function schema$N(configure) {
|
|
82791
82791
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
82792
82792
|
const Preset = presetSchema$5(configure);
|
|
82793
82793
|
return Struct({
|
|
82794
|
-
type: Literal2(type$
|
|
82795
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82794
|
+
type: Literal2(type$N),
|
|
82795
|
+
compatibilityDate: Literal2(compatibilityDate$N),
|
|
82796
82796
|
...commonFieldFields(configure),
|
|
82797
82797
|
label: optional(Locale.annotations({
|
|
82798
82798
|
title: "标签",
|
|
@@ -82839,14 +82839,14 @@ function schema$L(configure) {
|
|
|
82839
82839
|
}
|
|
82840
82840
|
const __vite_glob_0_5$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82841
82841
|
__proto__: null,
|
|
82842
|
-
compatibilityDate: compatibilityDate$
|
|
82843
|
-
metadata: metadata$
|
|
82842
|
+
compatibilityDate: compatibilityDate$N,
|
|
82843
|
+
metadata: metadata$N,
|
|
82844
82844
|
presetSchema: presetSchema$5,
|
|
82845
|
-
schema: schema$
|
|
82846
|
-
type: type$
|
|
82845
|
+
schema: schema$N,
|
|
82846
|
+
type: type$N
|
|
82847
82847
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82848
|
-
const type$
|
|
82849
|
-
const compatibilityDate$
|
|
82848
|
+
const type$M = "com.shwfed.form.field.daterange";
|
|
82849
|
+
const compatibilityDate$M = "2026-04-27";
|
|
82850
82850
|
const BindingPath$4 = String$.pipe(minLength(1));
|
|
82851
82851
|
const SplitBinding$4 = Tuple(BindingPath$4, BindingPath$4).pipe(
|
|
82852
82852
|
filter(([a, b]) => a !== b, {
|
|
@@ -82857,7 +82857,7 @@ const bindingSchema$4 = Union2(BindingPath$4, SplitBinding$4).annotations({
|
|
|
82857
82857
|
title: "绑定路径",
|
|
82858
82858
|
description: "写入表单状态的 `dot-prop` 路径;填写单个路径时写入 `[start, end]` 字符串数组,例如 `event.range`;填写 `[起始路径, 结束路径]` 元组时分别写入两端;留空则为非受控字段"
|
|
82859
82859
|
});
|
|
82860
|
-
const metadata$
|
|
82860
|
+
const metadata$M = {
|
|
82861
82861
|
name: "日期范围",
|
|
82862
82862
|
icon: "fluent:calendar-arrow-right-20-regular",
|
|
82863
82863
|
w: { initial: 10, min: 10, max: Infinity },
|
|
@@ -82883,12 +82883,12 @@ function presetSchema$4(configure) {
|
|
|
82883
82883
|
title: "DateRangeFieldPreset"
|
|
82884
82884
|
});
|
|
82885
82885
|
}
|
|
82886
|
-
function schema$
|
|
82886
|
+
function schema$M(configure) {
|
|
82887
82887
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
82888
82888
|
const Preset = presetSchema$4(configure);
|
|
82889
82889
|
return Struct({
|
|
82890
|
-
type: Literal2(type$
|
|
82891
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82890
|
+
type: Literal2(type$M),
|
|
82891
|
+
compatibilityDate: Literal2(compatibilityDate$M),
|
|
82892
82892
|
...commonFieldFields(configure),
|
|
82893
82893
|
label: optional(Locale.annotations({
|
|
82894
82894
|
title: "标签",
|
|
@@ -82947,16 +82947,16 @@ function defaults$8() {
|
|
|
82947
82947
|
}
|
|
82948
82948
|
const __vite_glob_0_6$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82949
82949
|
__proto__: null,
|
|
82950
|
-
compatibilityDate: compatibilityDate$
|
|
82950
|
+
compatibilityDate: compatibilityDate$M,
|
|
82951
82951
|
defaults: defaults$8,
|
|
82952
|
-
metadata: metadata$
|
|
82952
|
+
metadata: metadata$M,
|
|
82953
82953
|
presetSchema: presetSchema$4,
|
|
82954
|
-
schema: schema$
|
|
82955
|
-
type: type$
|
|
82954
|
+
schema: schema$M,
|
|
82955
|
+
type: type$M
|
|
82956
82956
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82957
|
-
const type$
|
|
82958
|
-
const compatibilityDate$
|
|
82959
|
-
const metadata$
|
|
82957
|
+
const type$L = "com.shwfed.form.field.datetime";
|
|
82958
|
+
const compatibilityDate$L = "2026-04-27";
|
|
82959
|
+
const metadata$L = {
|
|
82960
82960
|
name: "日期时间",
|
|
82961
82961
|
icon: "fluent:calendar-clock-20-regular",
|
|
82962
82962
|
w: { initial: 8, min: 4, max: Infinity },
|
|
@@ -82988,12 +82988,12 @@ function presetSchema$3(configure) {
|
|
|
82988
82988
|
title: "DateTimeFieldPreset"
|
|
82989
82989
|
});
|
|
82990
82990
|
}
|
|
82991
|
-
function schema$
|
|
82991
|
+
function schema$L(configure) {
|
|
82992
82992
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
82993
82993
|
const Preset = presetSchema$3(configure);
|
|
82994
82994
|
return Struct({
|
|
82995
|
-
type: Literal2(type$
|
|
82996
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82995
|
+
type: Literal2(type$L),
|
|
82996
|
+
compatibilityDate: Literal2(compatibilityDate$L),
|
|
82997
82997
|
...commonFieldFields(configure),
|
|
82998
82998
|
label: optional(Locale.annotations({
|
|
82999
82999
|
title: "标签",
|
|
@@ -83051,14 +83051,14 @@ const __vite_glob_0_7$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
83051
83051
|
HOUR_CYCLE_OPTIONS: HOUR_CYCLE_OPTIONS$3,
|
|
83052
83052
|
TIME_GRANULARITIES: TIME_GRANULARITIES$3,
|
|
83053
83053
|
TIME_GRANULARITY_OPTIONS: TIME_GRANULARITY_OPTIONS$3,
|
|
83054
|
-
compatibilityDate: compatibilityDate$
|
|
83055
|
-
metadata: metadata$
|
|
83054
|
+
compatibilityDate: compatibilityDate$L,
|
|
83055
|
+
metadata: metadata$L,
|
|
83056
83056
|
presetSchema: presetSchema$3,
|
|
83057
|
-
schema: schema$
|
|
83058
|
-
type: type$
|
|
83057
|
+
schema: schema$L,
|
|
83058
|
+
type: type$L
|
|
83059
83059
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
83060
|
-
const type$
|
|
83061
|
-
const compatibilityDate$
|
|
83060
|
+
const type$K = "com.shwfed.form.field.datetimerange";
|
|
83061
|
+
const compatibilityDate$K = "2026-04-27";
|
|
83062
83062
|
const BindingPath$3 = String$.pipe(minLength(1));
|
|
83063
83063
|
const SplitBinding$3 = Tuple(BindingPath$3, BindingPath$3).pipe(
|
|
83064
83064
|
filter(([a, b]) => a !== b, {
|
|
@@ -83069,7 +83069,7 @@ const bindingSchema$3 = Union2(BindingPath$3, SplitBinding$3).annotations({
|
|
|
83069
83069
|
title: "绑定路径",
|
|
83070
83070
|
description: "写入表单状态的 `dot-prop` 路径;填写单个路径时写入 `[start, end]` 字符串数组,例如 `event.range`;填写 `[起始路径, 结束路径]` 元组时分别写入两端;留空则为非受控字段"
|
|
83071
83071
|
});
|
|
83072
|
-
const metadata$
|
|
83072
|
+
const metadata$K = {
|
|
83073
83073
|
name: "日期时间范围",
|
|
83074
83074
|
icon: "fluent:calendar-clock-20-regular",
|
|
83075
83075
|
w: { initial: 14, min: 14, max: Infinity },
|
|
@@ -83105,12 +83105,12 @@ function presetSchema$2(configure) {
|
|
|
83105
83105
|
title: "DateTimeRangeFieldPreset"
|
|
83106
83106
|
});
|
|
83107
83107
|
}
|
|
83108
|
-
function schema$
|
|
83108
|
+
function schema$K(configure) {
|
|
83109
83109
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
83110
83110
|
const Preset = presetSchema$2(configure);
|
|
83111
83111
|
return Struct({
|
|
83112
|
-
type: Literal2(type$
|
|
83113
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
83112
|
+
type: Literal2(type$K),
|
|
83113
|
+
compatibilityDate: Literal2(compatibilityDate$K),
|
|
83114
83114
|
...commonFieldFields(configure),
|
|
83115
83115
|
label: optional(Locale.annotations({
|
|
83116
83116
|
title: "标签",
|
|
@@ -83180,16 +83180,16 @@ const __vite_glob_0_8$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
83180
83180
|
HOUR_CYCLE_OPTIONS: HOUR_CYCLE_OPTIONS$2,
|
|
83181
83181
|
TIME_GRANULARITIES: TIME_GRANULARITIES$2,
|
|
83182
83182
|
TIME_GRANULARITY_OPTIONS: TIME_GRANULARITY_OPTIONS$2,
|
|
83183
|
-
compatibilityDate: compatibilityDate$
|
|
83183
|
+
compatibilityDate: compatibilityDate$K,
|
|
83184
83184
|
defaults: defaults$7,
|
|
83185
|
-
metadata: metadata$
|
|
83185
|
+
metadata: metadata$K,
|
|
83186
83186
|
presetSchema: presetSchema$2,
|
|
83187
|
-
schema: schema$
|
|
83188
|
-
type: type$
|
|
83187
|
+
schema: schema$K,
|
|
83188
|
+
type: type$K
|
|
83189
83189
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
83190
|
-
const type$
|
|
83191
|
-
const compatibilityDate$
|
|
83192
|
-
const metadata$
|
|
83190
|
+
const type$J = "com.shwfed.form.field.time";
|
|
83191
|
+
const compatibilityDate$J = "2026-04-27";
|
|
83192
|
+
const metadata$J = {
|
|
83193
83193
|
name: "时间",
|
|
83194
83194
|
icon: "fluent:clock-20-regular",
|
|
83195
83195
|
w: { initial: 8, min: 4, max: Infinity },
|
|
@@ -83205,11 +83205,11 @@ const HOUR_CYCLE_OPTIONS$1 = [
|
|
|
83205
83205
|
{ value: 24, label: "24 小时制" },
|
|
83206
83206
|
{ value: 12, label: "12 小时制" }
|
|
83207
83207
|
];
|
|
83208
|
-
function schema$
|
|
83208
|
+
function schema$J(configure) {
|
|
83209
83209
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
83210
83210
|
return Struct({
|
|
83211
|
-
type: Literal2(type$
|
|
83212
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
83211
|
+
type: Literal2(type$J),
|
|
83212
|
+
compatibilityDate: Literal2(compatibilityDate$J),
|
|
83213
83213
|
...commonFieldFields(configure),
|
|
83214
83214
|
label: optional(Locale.annotations({
|
|
83215
83215
|
title: "标签",
|
|
@@ -83255,13 +83255,13 @@ const __vite_glob_0_9$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
83255
83255
|
HOUR_CYCLE_OPTIONS: HOUR_CYCLE_OPTIONS$1,
|
|
83256
83256
|
TIME_GRANULARITIES: TIME_GRANULARITIES$1,
|
|
83257
83257
|
TIME_GRANULARITY_OPTIONS: TIME_GRANULARITY_OPTIONS$1,
|
|
83258
|
-
compatibilityDate: compatibilityDate$
|
|
83259
|
-
metadata: metadata$
|
|
83260
|
-
schema: schema$
|
|
83261
|
-
type: type$
|
|
83258
|
+
compatibilityDate: compatibilityDate$J,
|
|
83259
|
+
metadata: metadata$J,
|
|
83260
|
+
schema: schema$J,
|
|
83261
|
+
type: type$J
|
|
83262
83262
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
83263
|
-
const type$
|
|
83264
|
-
const compatibilityDate$
|
|
83263
|
+
const type$I = "com.shwfed.form.field.timerange";
|
|
83264
|
+
const compatibilityDate$I = "2026-04-27";
|
|
83265
83265
|
const BindingPath$2 = String$.pipe(minLength(1));
|
|
83266
83266
|
const SplitBinding$2 = Tuple(BindingPath$2, BindingPath$2).pipe(
|
|
83267
83267
|
filter(([a, b]) => a !== b, {
|
|
@@ -83272,7 +83272,7 @@ const bindingSchema$2 = Union2(BindingPath$2, SplitBinding$2).annotations({
|
|
|
83272
83272
|
title: "绑定路径",
|
|
83273
83273
|
description: "写入表单状态的 `dot-prop` 路径;填写单个路径时写入 `[start, end]` 字符串数组,例如 `meeting.timeRange`;填写 `[起始路径, 结束路径]` 元组时分别写入两端;留空则为非受控字段"
|
|
83274
83274
|
});
|
|
83275
|
-
const metadata$
|
|
83275
|
+
const metadata$I = {
|
|
83276
83276
|
name: "时间范围",
|
|
83277
83277
|
icon: "fluent:clock-arrow-download-20-regular",
|
|
83278
83278
|
w: { initial: 14, min: 14, max: Infinity },
|
|
@@ -83288,11 +83288,11 @@ const HOUR_CYCLE_OPTIONS = [
|
|
|
83288
83288
|
{ value: 24, label: "24 小时制" },
|
|
83289
83289
|
{ value: 12, label: "12 小时制" }
|
|
83290
83290
|
];
|
|
83291
|
-
function schema$
|
|
83291
|
+
function schema$I(configure) {
|
|
83292
83292
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
83293
83293
|
return Struct({
|
|
83294
|
-
type: Literal2(type$
|
|
83295
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
83294
|
+
type: Literal2(type$I),
|
|
83295
|
+
compatibilityDate: Literal2(compatibilityDate$I),
|
|
83296
83296
|
...commonFieldFields(configure),
|
|
83297
83297
|
label: optional(Locale.annotations({
|
|
83298
83298
|
title: "标签",
|
|
@@ -83342,26 +83342,26 @@ const __vite_glob_0_10$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
83342
83342
|
HOUR_CYCLE_OPTIONS,
|
|
83343
83343
|
TIME_GRANULARITIES,
|
|
83344
83344
|
TIME_GRANULARITY_OPTIONS,
|
|
83345
|
-
compatibilityDate: compatibilityDate$
|
|
83345
|
+
compatibilityDate: compatibilityDate$I,
|
|
83346
83346
|
defaults: defaults$6,
|
|
83347
|
-
metadata: metadata$
|
|
83348
|
-
schema: schema$
|
|
83349
|
-
type: type$
|
|
83347
|
+
metadata: metadata$I,
|
|
83348
|
+
schema: schema$I,
|
|
83349
|
+
type: type$I
|
|
83350
83350
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
83351
|
-
const type$
|
|
83352
|
-
const compatibilityDate$
|
|
83353
|
-
const metadata$
|
|
83351
|
+
const type$H = "com.shwfed.form.field.number";
|
|
83352
|
+
const compatibilityDate$H = "2026-04-28";
|
|
83353
|
+
const metadata$H = {
|
|
83354
83354
|
name: "数值输入",
|
|
83355
83355
|
icon: "fluent:number-symbol-20-regular",
|
|
83356
83356
|
w: { initial: 8, min: 4, max: Infinity },
|
|
83357
83357
|
h: { initial: 2, min: 2, max: 2 }
|
|
83358
83358
|
};
|
|
83359
|
-
function schema$
|
|
83359
|
+
function schema$H(configure) {
|
|
83360
83360
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
83361
83361
|
const CelNumber = Expression({ configure, resultType: "number" });
|
|
83362
83362
|
return Struct({
|
|
83363
|
-
type: Literal2(type$
|
|
83364
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
83363
|
+
type: Literal2(type$H),
|
|
83364
|
+
compatibilityDate: Literal2(compatibilityDate$H),
|
|
83365
83365
|
...commonFieldFields(configure),
|
|
83366
83366
|
label: optional(Locale.annotations({
|
|
83367
83367
|
title: "标签",
|
|
@@ -83420,13 +83420,13 @@ function schema$F(configure) {
|
|
|
83420
83420
|
}
|
|
83421
83421
|
const __vite_glob_0_11$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
83422
83422
|
__proto__: null,
|
|
83423
|
-
compatibilityDate: compatibilityDate$
|
|
83424
|
-
metadata: metadata$
|
|
83425
|
-
schema: schema$
|
|
83426
|
-
type: type$
|
|
83423
|
+
compatibilityDate: compatibilityDate$H,
|
|
83424
|
+
metadata: metadata$H,
|
|
83425
|
+
schema: schema$H,
|
|
83426
|
+
type: type$H
|
|
83427
83427
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
83428
|
-
const type$
|
|
83429
|
-
const compatibilityDate$
|
|
83428
|
+
const type$G = "com.shwfed.form.field.numberrange";
|
|
83429
|
+
const compatibilityDate$G = "2026-04-28";
|
|
83430
83430
|
const BindingPath$1 = String$.pipe(minLength(1));
|
|
83431
83431
|
const SplitBinding$1 = Tuple(BindingPath$1, BindingPath$1).pipe(
|
|
83432
83432
|
filter(([a, b]) => a !== b, {
|
|
@@ -83437,18 +83437,18 @@ const bindingSchema$1 = Union2(BindingPath$1, SplitBinding$1).annotations({
|
|
|
83437
83437
|
title: "绑定路径",
|
|
83438
83438
|
description: "写入表单状态的 `dot-prop` 路径;填写单个路径时写入 `[start, end]` 数值数组,例如 `score.range`;填写 `[起始路径, 结束路径]` 元组时分别写入两端;留空则为非受控字段"
|
|
83439
83439
|
});
|
|
83440
|
-
const metadata$
|
|
83440
|
+
const metadata$G = {
|
|
83441
83441
|
name: "数值范围",
|
|
83442
83442
|
icon: "fluent:arrow-bidirectional-left-right-20-regular",
|
|
83443
83443
|
w: { initial: 8, min: 4, max: Infinity },
|
|
83444
83444
|
h: { initial: 2, min: 2, max: 2 }
|
|
83445
83445
|
};
|
|
83446
|
-
function schema$
|
|
83446
|
+
function schema$G(configure) {
|
|
83447
83447
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
83448
83448
|
const CelNumber = Expression({ configure, resultType: "number" });
|
|
83449
83449
|
return Struct({
|
|
83450
|
-
type: Literal2(type$
|
|
83451
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
83450
|
+
type: Literal2(type$G),
|
|
83451
|
+
compatibilityDate: Literal2(compatibilityDate$G),
|
|
83452
83452
|
...commonFieldFields(configure),
|
|
83453
83453
|
label: optional(Locale.annotations({
|
|
83454
83454
|
title: "标签",
|
|
@@ -83515,25 +83515,25 @@ function defaults$5() {
|
|
|
83515
83515
|
}
|
|
83516
83516
|
const __vite_glob_0_12$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
83517
83517
|
__proto__: null,
|
|
83518
|
-
compatibilityDate: compatibilityDate$
|
|
83518
|
+
compatibilityDate: compatibilityDate$G,
|
|
83519
83519
|
defaults: defaults$5,
|
|
83520
|
-
metadata: metadata$
|
|
83521
|
-
schema: schema$
|
|
83522
|
-
type: type$
|
|
83520
|
+
metadata: metadata$G,
|
|
83521
|
+
schema: schema$G,
|
|
83522
|
+
type: type$G
|
|
83523
83523
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
83524
|
-
const type$
|
|
83525
|
-
const compatibilityDate$
|
|
83526
|
-
const metadata$
|
|
83524
|
+
const type$F = "com.shwfed.form.field.switch";
|
|
83525
|
+
const compatibilityDate$F = "2026-04-28";
|
|
83526
|
+
const metadata$F = {
|
|
83527
83527
|
name: "开关",
|
|
83528
83528
|
icon: "fluent:toggle-left-20-regular",
|
|
83529
83529
|
w: { initial: 4, min: 4, max: Infinity },
|
|
83530
83530
|
h: { initial: 2, min: 2, max: 2 }
|
|
83531
83531
|
};
|
|
83532
|
-
function schema$
|
|
83532
|
+
function schema$F(configure) {
|
|
83533
83533
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
83534
83534
|
return Struct({
|
|
83535
|
-
type: Literal2(type$
|
|
83536
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
83535
|
+
type: Literal2(type$F),
|
|
83536
|
+
compatibilityDate: Literal2(compatibilityDate$F),
|
|
83537
83537
|
...commonFieldFields(configure),
|
|
83538
83538
|
label: optional(Locale.annotations({
|
|
83539
83539
|
title: "标签",
|
|
@@ -83571,10 +83571,10 @@ function schema$D(configure) {
|
|
|
83571
83571
|
}
|
|
83572
83572
|
const __vite_glob_0_13$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
83573
83573
|
__proto__: null,
|
|
83574
|
-
compatibilityDate: compatibilityDate$
|
|
83575
|
-
metadata: metadata$
|
|
83576
|
-
schema: schema$
|
|
83577
|
-
type: type$
|
|
83574
|
+
compatibilityDate: compatibilityDate$F,
|
|
83575
|
+
metadata: metadata$F,
|
|
83576
|
+
schema: schema$F,
|
|
83577
|
+
type: type$F
|
|
83578
83578
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
83579
83579
|
const decodeCache = {};
|
|
83580
83580
|
function getDecodeCache(exclude2) {
|
|
@@ -88825,15 +88825,15 @@ function interpolateMarkdown(template, $cel, context2) {
|
|
|
88825
88825
|
}
|
|
88826
88826
|
});
|
|
88827
88827
|
}
|
|
88828
|
-
const type$
|
|
88829
|
-
const compatibilityDate$
|
|
88830
|
-
const metadata$
|
|
88828
|
+
const type$E = "com.shwfed.form.field.combobox.single";
|
|
88829
|
+
const compatibilityDate$E = "2026-04-29";
|
|
88830
|
+
const metadata$E = {
|
|
88831
88831
|
name: "下拉单选(硬编码)",
|
|
88832
88832
|
icon: "fluent:chevron-down-20-regular",
|
|
88833
88833
|
w: { initial: 8, min: 4, max: Infinity },
|
|
88834
88834
|
h: { initial: 2, min: 2, max: 2 }
|
|
88835
88835
|
};
|
|
88836
|
-
function itemSchema$
|
|
88836
|
+
function itemSchema$a(configure) {
|
|
88837
88837
|
const LocaleMd = LocaleMarkdown({ configure });
|
|
88838
88838
|
const TextValue = Struct({
|
|
88839
88839
|
kind: Literal2("text"),
|
|
@@ -88862,12 +88862,12 @@ function itemSchema$8(configure) {
|
|
|
88862
88862
|
title: "ComboboxSingleItem"
|
|
88863
88863
|
});
|
|
88864
88864
|
}
|
|
88865
|
-
function schema$
|
|
88865
|
+
function schema$E(configure) {
|
|
88866
88866
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
88867
|
-
const Item = itemSchema$
|
|
88867
|
+
const Item = itemSchema$a(configure);
|
|
88868
88868
|
return Struct({
|
|
88869
|
-
type: Literal2(type$
|
|
88870
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
88869
|
+
type: Literal2(type$E),
|
|
88870
|
+
compatibilityDate: Literal2(compatibilityDate$E),
|
|
88871
88871
|
...commonFieldFields(configure),
|
|
88872
88872
|
label: optional(Locale.annotations({
|
|
88873
88873
|
title: "标签",
|
|
@@ -88920,7 +88920,7 @@ function formatErrorMessage(err) {
|
|
|
88920
88920
|
return String(err);
|
|
88921
88921
|
}
|
|
88922
88922
|
}
|
|
88923
|
-
const migrate$
|
|
88923
|
+
const migrate$6 = (prev, ctx) => {
|
|
88924
88924
|
const legacy = prev;
|
|
88925
88925
|
return gen(function* () {
|
|
88926
88926
|
const rawOptions = yield* mapError$1(
|
|
@@ -88959,23 +88959,23 @@ const migrate$4 = (prev, ctx) => {
|
|
|
88959
88959
|
} = legacy;
|
|
88960
88960
|
return {
|
|
88961
88961
|
...carryover,
|
|
88962
|
-
compatibilityDate: compatibilityDate$
|
|
88962
|
+
compatibilityDate: compatibilityDate$E,
|
|
88963
88963
|
items: items2
|
|
88964
88964
|
};
|
|
88965
88965
|
});
|
|
88966
88966
|
};
|
|
88967
88967
|
const __vite_glob_0_14$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
88968
88968
|
__proto__: null,
|
|
88969
|
-
compatibilityDate: compatibilityDate$
|
|
88970
|
-
itemSchema: itemSchema$
|
|
88971
|
-
metadata: metadata$
|
|
88972
|
-
migrate: migrate$
|
|
88973
|
-
schema: schema$
|
|
88974
|
-
type: type$
|
|
88969
|
+
compatibilityDate: compatibilityDate$E,
|
|
88970
|
+
itemSchema: itemSchema$a,
|
|
88971
|
+
metadata: metadata$E,
|
|
88972
|
+
migrate: migrate$6,
|
|
88973
|
+
schema: schema$E,
|
|
88974
|
+
type: type$E
|
|
88975
88975
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
88976
|
-
const type$
|
|
88977
|
-
const compatibilityDate$
|
|
88978
|
-
const metadata$
|
|
88976
|
+
const type$D = "com.shwfed.form.field.upload";
|
|
88977
|
+
const compatibilityDate$D = "2026-05-12";
|
|
88978
|
+
const metadata$D = {
|
|
88979
88979
|
name: "文件上传",
|
|
88980
88980
|
icon: "fluent:cloud-arrow-up-20-regular",
|
|
88981
88981
|
w: { initial: 8, min: 8, max: Infinity },
|
|
@@ -88992,14 +88992,14 @@ function configureWithJson$1(configure) {
|
|
|
88992
88992
|
env.registerVariable("json", JSON_VAR$3.type, { description: JSON_VAR$3.description });
|
|
88993
88993
|
};
|
|
88994
88994
|
}
|
|
88995
|
-
function schema$
|
|
88995
|
+
function schema$D(configure) {
|
|
88996
88996
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
88997
88997
|
const CelHttpRequest = Expression({ configure, resultType: "HttpRequest" });
|
|
88998
88998
|
const CelDownloadRequest = Expression({ configure: configureWithJson$1(configure), resultType: "HttpRequest" });
|
|
88999
88999
|
const LocaleMd = LocaleMarkdown({ configure });
|
|
89000
89000
|
return Struct({
|
|
89001
|
-
type: Literal2(type$
|
|
89002
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
89001
|
+
type: Literal2(type$D),
|
|
89002
|
+
compatibilityDate: Literal2(compatibilityDate$D),
|
|
89003
89003
|
...commonFieldFields(configure),
|
|
89004
89004
|
label: optional(Locale.annotations({
|
|
89005
89005
|
title: "标签",
|
|
@@ -89079,14 +89079,14 @@ function schema$B(configure) {
|
|
|
89079
89079
|
const __vite_glob_0_15$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
89080
89080
|
__proto__: null,
|
|
89081
89081
|
JSON_VAR: JSON_VAR$3,
|
|
89082
|
-
compatibilityDate: compatibilityDate$
|
|
89083
|
-
metadata: metadata$
|
|
89084
|
-
schema: schema$
|
|
89085
|
-
type: type$
|
|
89082
|
+
compatibilityDate: compatibilityDate$D,
|
|
89083
|
+
metadata: metadata$D,
|
|
89084
|
+
schema: schema$D,
|
|
89085
|
+
type: type$D
|
|
89086
89086
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
89087
|
-
const type$
|
|
89088
|
-
const compatibilityDate$
|
|
89089
|
-
const metadata$
|
|
89087
|
+
const type$C = "com.shwfed.form.field.combobox.single.remote";
|
|
89088
|
+
const compatibilityDate$C = "2026-05-13";
|
|
89089
|
+
const metadata$C = {
|
|
89090
89090
|
name: "下拉单选(远程)",
|
|
89091
89091
|
icon: "fluent:cloud-arrow-down-20-regular",
|
|
89092
89092
|
w: { initial: 8, min: 4, max: Infinity },
|
|
@@ -89114,16 +89114,16 @@ function configureWithJson(configure) {
|
|
|
89114
89114
|
env.registerVariable("json", JSON_VAR$2.type, { description: JSON_VAR$2.description });
|
|
89115
89115
|
};
|
|
89116
89116
|
}
|
|
89117
|
-
const isListType$
|
|
89118
|
-
function schema$
|
|
89117
|
+
const isListType$8 = (actual) => actual === "dyn" || actual.startsWith("list");
|
|
89118
|
+
function schema$C(configure) {
|
|
89119
89119
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
89120
89120
|
const CelHttpRequest = Expression({ configure, resultType: "HttpRequest" });
|
|
89121
|
-
const CelOptions = Expression({ configure: configureWithJson(configure), resultType: isListType$
|
|
89121
|
+
const CelOptions = Expression({ configure: configureWithJson(configure), resultType: isListType$8 });
|
|
89122
89122
|
const CelOptionValue = Expression({ configure: configureWithOption$1(configure), resultType: "dyn" });
|
|
89123
89123
|
const LocaleOptionLabel = LocaleMarkdown({ configure: configureWithOption$1(configure) });
|
|
89124
89124
|
return Struct({
|
|
89125
|
-
type: Literal2(type$
|
|
89126
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
89125
|
+
type: Literal2(type$C),
|
|
89126
|
+
compatibilityDate: Literal2(compatibilityDate$C),
|
|
89127
89127
|
...commonFieldFields(configure),
|
|
89128
89128
|
label: optional(Locale.annotations({
|
|
89129
89129
|
title: "标签",
|
|
@@ -89176,20 +89176,20 @@ const __vite_glob_0_16$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
89176
89176
|
__proto__: null,
|
|
89177
89177
|
JSON_VAR: JSON_VAR$2,
|
|
89178
89178
|
OPTION_VAR: OPTION_VAR$2,
|
|
89179
|
-
compatibilityDate: compatibilityDate$
|
|
89180
|
-
metadata: metadata$
|
|
89181
|
-
schema: schema$
|
|
89182
|
-
type: type$
|
|
89179
|
+
compatibilityDate: compatibilityDate$C,
|
|
89180
|
+
metadata: metadata$C,
|
|
89181
|
+
schema: schema$C,
|
|
89182
|
+
type: type$C
|
|
89183
89183
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
89184
|
-
const type$
|
|
89185
|
-
const compatibilityDate$
|
|
89186
|
-
const metadata$
|
|
89184
|
+
const type$B = "com.shwfed.form.field.list";
|
|
89185
|
+
const compatibilityDate$B = "2026-05-13";
|
|
89186
|
+
const metadata$B = {
|
|
89187
89187
|
name: "列表",
|
|
89188
89188
|
icon: "fluent:list-20-regular",
|
|
89189
89189
|
w: { initial: 12, min: 4, max: Infinity },
|
|
89190
89190
|
h: { initial: 6, min: 4, max: Infinity, grow: true }
|
|
89191
89191
|
};
|
|
89192
|
-
function schema$
|
|
89192
|
+
function schema$B(configure) {
|
|
89193
89193
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
89194
89194
|
const unitConfigure = (env) => {
|
|
89195
89195
|
configure(env);
|
|
@@ -89203,8 +89203,8 @@ function schema$z(configure) {
|
|
|
89203
89203
|
};
|
|
89204
89204
|
const Unit = suspend(() => FormUnit(unitConfigure));
|
|
89205
89205
|
return Struct({
|
|
89206
|
-
type: Literal2(type$
|
|
89207
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
89206
|
+
type: Literal2(type$B),
|
|
89207
|
+
compatibilityDate: Literal2(compatibilityDate$B),
|
|
89208
89208
|
...commonFieldFields(configure),
|
|
89209
89209
|
label: optional(Locale.annotations({
|
|
89210
89210
|
title: "标签",
|
|
@@ -89271,21 +89271,21 @@ function defaults$4() {
|
|
|
89271
89271
|
}
|
|
89272
89272
|
const __vite_glob_0_17$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
89273
89273
|
__proto__: null,
|
|
89274
|
-
compatibilityDate: compatibilityDate$
|
|
89274
|
+
compatibilityDate: compatibilityDate$B,
|
|
89275
89275
|
defaults: defaults$4,
|
|
89276
|
-
metadata: metadata$
|
|
89277
|
-
schema: schema$
|
|
89278
|
-
type: type$
|
|
89276
|
+
metadata: metadata$B,
|
|
89277
|
+
schema: schema$B,
|
|
89278
|
+
type: type$B
|
|
89279
89279
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
89280
|
-
const type$
|
|
89281
|
-
const compatibilityDate$
|
|
89282
|
-
const metadata$
|
|
89280
|
+
const type$A = "com.shwfed.form.field.checkbox.group";
|
|
89281
|
+
const compatibilityDate$A = "2026-05-17";
|
|
89282
|
+
const metadata$A = {
|
|
89283
89283
|
name: "复选框组",
|
|
89284
89284
|
icon: "fluent:checkbox-checked-20-regular",
|
|
89285
89285
|
w: { initial: 8, min: 2, max: Infinity },
|
|
89286
89286
|
h: { initial: 2, min: 2, max: 2 }
|
|
89287
89287
|
};
|
|
89288
|
-
function itemSchema$
|
|
89288
|
+
function itemSchema$9(configure) {
|
|
89289
89289
|
const LocaleMd = LocaleMarkdown({ configure });
|
|
89290
89290
|
const TextValue = Struct({
|
|
89291
89291
|
kind: Literal2("text"),
|
|
@@ -89314,12 +89314,12 @@ function itemSchema$7(configure) {
|
|
|
89314
89314
|
title: "CheckboxGroupItem"
|
|
89315
89315
|
});
|
|
89316
89316
|
}
|
|
89317
|
-
function schema$
|
|
89317
|
+
function schema$A(configure) {
|
|
89318
89318
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
89319
|
-
const Item = itemSchema$
|
|
89319
|
+
const Item = itemSchema$9(configure);
|
|
89320
89320
|
return Struct({
|
|
89321
|
-
type: Literal2(type$
|
|
89322
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
89321
|
+
type: Literal2(type$A),
|
|
89322
|
+
compatibilityDate: Literal2(compatibilityDate$A),
|
|
89323
89323
|
...commonFieldFields(configure),
|
|
89324
89324
|
label: optional(Locale.annotations({
|
|
89325
89325
|
title: "标签",
|
|
@@ -89353,21 +89353,21 @@ function schema$y(configure) {
|
|
|
89353
89353
|
}
|
|
89354
89354
|
const __vite_glob_0_18$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
89355
89355
|
__proto__: null,
|
|
89356
|
-
compatibilityDate: compatibilityDate$
|
|
89357
|
-
itemSchema: itemSchema$
|
|
89358
|
-
metadata: metadata$
|
|
89359
|
-
schema: schema$
|
|
89360
|
-
type: type$
|
|
89356
|
+
compatibilityDate: compatibilityDate$A,
|
|
89357
|
+
itemSchema: itemSchema$9,
|
|
89358
|
+
metadata: metadata$A,
|
|
89359
|
+
schema: schema$A,
|
|
89360
|
+
type: type$A
|
|
89361
89361
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
89362
|
-
const type$
|
|
89363
|
-
const compatibilityDate$
|
|
89364
|
-
const metadata$
|
|
89362
|
+
const type$z = "com.shwfed.form.field.radio.group";
|
|
89363
|
+
const compatibilityDate$z = "2026-05-17";
|
|
89364
|
+
const metadata$z = {
|
|
89365
89365
|
name: "单选框组",
|
|
89366
89366
|
icon: "fluent:radio-button-20-regular",
|
|
89367
89367
|
w: { initial: 8, min: 2, max: Infinity },
|
|
89368
89368
|
h: { initial: 2, min: 2, max: 2 }
|
|
89369
89369
|
};
|
|
89370
|
-
function itemSchema$
|
|
89370
|
+
function itemSchema$8(configure) {
|
|
89371
89371
|
const LocaleMd = LocaleMarkdown({ configure });
|
|
89372
89372
|
const TextValue = Struct({
|
|
89373
89373
|
kind: Literal2("text"),
|
|
@@ -89396,12 +89396,12 @@ function itemSchema$6(configure) {
|
|
|
89396
89396
|
title: "RadioGroupItem"
|
|
89397
89397
|
});
|
|
89398
89398
|
}
|
|
89399
|
-
function schema$
|
|
89399
|
+
function schema$z(configure) {
|
|
89400
89400
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
89401
|
-
const Item = itemSchema$
|
|
89401
|
+
const Item = itemSchema$8(configure);
|
|
89402
89402
|
return Struct({
|
|
89403
|
-
type: Literal2(type$
|
|
89404
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
89403
|
+
type: Literal2(type$z),
|
|
89404
|
+
compatibilityDate: Literal2(compatibilityDate$z),
|
|
89405
89405
|
...commonFieldFields(configure),
|
|
89406
89406
|
label: optional(Locale.annotations({
|
|
89407
89407
|
title: "标签",
|
|
@@ -89435,11 +89435,11 @@ function schema$x(configure) {
|
|
|
89435
89435
|
}
|
|
89436
89436
|
const __vite_glob_0_19$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
89437
89437
|
__proto__: null,
|
|
89438
|
-
compatibilityDate: compatibilityDate$
|
|
89439
|
-
itemSchema: itemSchema$
|
|
89440
|
-
metadata: metadata$
|
|
89441
|
-
schema: schema$
|
|
89442
|
-
type: type$
|
|
89438
|
+
compatibilityDate: compatibilityDate$z,
|
|
89439
|
+
itemSchema: itemSchema$8,
|
|
89440
|
+
metadata: metadata$z,
|
|
89441
|
+
schema: schema$z,
|
|
89442
|
+
type: type$z
|
|
89443
89443
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
89444
89444
|
const matchIconName = /^[a-z0-9]+(-[a-z0-9]+)*$/;
|
|
89445
89445
|
const stringToIcon = (value, validate2, allowSimpleName, provider = "") => {
|
|
@@ -90923,14 +90923,14 @@ function LocaleMarkdownWithRow(configure) {
|
|
|
90923
90923
|
function derivedRowField(configure, resultType) {
|
|
90924
90924
|
return derivedField(configureWithRow(configure), resultType);
|
|
90925
90925
|
}
|
|
90926
|
-
const type$
|
|
90927
|
-
const compatibilityDate$
|
|
90928
|
-
const metadata$
|
|
90926
|
+
const type$y = "com.shwfed.table.column.actions";
|
|
90927
|
+
const compatibilityDate$y = "2026-04-14";
|
|
90928
|
+
const metadata$y = {
|
|
90929
90929
|
name: "操作",
|
|
90930
90930
|
icon: "fluent:cursor-click-20-regular"
|
|
90931
90931
|
};
|
|
90932
90932
|
const registerRowVariables = registerRowVariablesIfAbsent;
|
|
90933
|
-
function schema$
|
|
90933
|
+
function schema$y(configure) {
|
|
90934
90934
|
const configureWithRow2 = (env) => {
|
|
90935
90935
|
configure(env);
|
|
90936
90936
|
registerRowVariables(env);
|
|
@@ -90938,8 +90938,8 @@ function schema$w(configure) {
|
|
|
90938
90938
|
const { fields: actionFields } = ActionSchemaFields(configureWithRow2);
|
|
90939
90939
|
const { size: _buttonSize, ...actionFieldsForColumn } = actionFields;
|
|
90940
90940
|
return Struct({
|
|
90941
|
-
type: Literal2(type$
|
|
90942
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
90941
|
+
type: Literal2(type$y),
|
|
90942
|
+
compatibilityDate: Literal2(compatibilityDate$y),
|
|
90943
90943
|
...columnIdentityFields(),
|
|
90944
90944
|
title: optional(Locale.annotations({ title: "标题", description: "列标题" })),
|
|
90945
90945
|
size: optional(Number$.pipe(finite(), positive()).annotations({
|
|
@@ -90953,7 +90953,7 @@ function schema$w(configure) {
|
|
|
90953
90953
|
...actionFieldsForColumn
|
|
90954
90954
|
}).annotations({ title: "ActionsRenderer", description: "操作渲染器" });
|
|
90955
90955
|
}
|
|
90956
|
-
function toColumnDef$
|
|
90956
|
+
function toColumnDef$n(value, { getLocaleText }) {
|
|
90957
90957
|
return {
|
|
90958
90958
|
header: value.title ? getLocaleText(value.title) : void 0,
|
|
90959
90959
|
enableSorting: false,
|
|
@@ -90966,23 +90966,23 @@ function toColumnDef$l(value, { getLocaleText }) {
|
|
|
90966
90966
|
}
|
|
90967
90967
|
const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
90968
90968
|
__proto__: null,
|
|
90969
|
-
compatibilityDate: compatibilityDate$
|
|
90970
|
-
metadata: metadata$
|
|
90969
|
+
compatibilityDate: compatibilityDate$y,
|
|
90970
|
+
metadata: metadata$y,
|
|
90971
90971
|
registerRowVariables,
|
|
90972
|
-
schema: schema$
|
|
90973
|
-
toColumnDef: toColumnDef$
|
|
90974
|
-
type: type$
|
|
90972
|
+
schema: schema$y,
|
|
90973
|
+
toColumnDef: toColumnDef$n,
|
|
90974
|
+
type: type$y
|
|
90975
90975
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
90976
|
-
const type$
|
|
90977
|
-
const compatibilityDate$
|
|
90978
|
-
const metadata$
|
|
90976
|
+
const type$x = "com.shwfed.table.column.date";
|
|
90977
|
+
const compatibilityDate$x = "2026-04-14";
|
|
90978
|
+
const metadata$x = {
|
|
90979
90979
|
name: "日期",
|
|
90980
90980
|
icon: "fluent:calendar-ltr-20-regular"
|
|
90981
90981
|
};
|
|
90982
|
-
function schema$
|
|
90982
|
+
function schema$x(configure) {
|
|
90983
90983
|
return Struct({
|
|
90984
|
-
type: Literal2(type$
|
|
90985
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
90984
|
+
type: Literal2(type$x),
|
|
90985
|
+
compatibilityDate: Literal2(compatibilityDate$x),
|
|
90986
90986
|
...columnFields(configure),
|
|
90987
90987
|
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "left" }),
|
|
90988
90988
|
format: String$.annotations({
|
|
@@ -90993,7 +90993,7 @@ function schema$v(configure) {
|
|
|
90993
90993
|
})
|
|
90994
90994
|
}).annotations({ title: "DateRenderer", description: "日期渲染器" });
|
|
90995
90995
|
}
|
|
90996
|
-
function toColumnDef$
|
|
90996
|
+
function toColumnDef$m(value, { getLocaleText, $cel, inheritedContext }) {
|
|
90997
90997
|
return {
|
|
90998
90998
|
header: getLocaleText(value.title),
|
|
90999
90999
|
accessorFn: (row, index) => {
|
|
@@ -91014,22 +91014,22 @@ function toColumnDef$k(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
91014
91014
|
}
|
|
91015
91015
|
const __vite_glob_0_1$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91016
91016
|
__proto__: null,
|
|
91017
|
-
compatibilityDate: compatibilityDate$
|
|
91018
|
-
metadata: metadata$
|
|
91019
|
-
schema: schema$
|
|
91020
|
-
toColumnDef: toColumnDef$
|
|
91021
|
-
type: type$
|
|
91017
|
+
compatibilityDate: compatibilityDate$x,
|
|
91018
|
+
metadata: metadata$x,
|
|
91019
|
+
schema: schema$x,
|
|
91020
|
+
toColumnDef: toColumnDef$m,
|
|
91021
|
+
type: type$x
|
|
91022
91022
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91023
|
-
const type$
|
|
91024
|
-
const compatibilityDate$
|
|
91025
|
-
const metadata$
|
|
91023
|
+
const type$w = "com.shwfed.table.column.icon";
|
|
91024
|
+
const compatibilityDate$w = "2026-04-14";
|
|
91025
|
+
const metadata$w = {
|
|
91026
91026
|
name: "图标",
|
|
91027
91027
|
icon: "fluent:shapes-20-regular"
|
|
91028
91028
|
};
|
|
91029
|
-
function schema$
|
|
91029
|
+
function schema$w(configure) {
|
|
91030
91030
|
return Struct({
|
|
91031
|
-
type: Literal2(type$
|
|
91032
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91031
|
+
type: Literal2(type$w),
|
|
91032
|
+
compatibilityDate: Literal2(compatibilityDate$w),
|
|
91033
91033
|
...columnFields(configure),
|
|
91034
91034
|
accessor: CelRowAccess(configure).annotations({
|
|
91035
91035
|
title: "图标",
|
|
@@ -91044,7 +91044,7 @@ function schema$u(configure) {
|
|
|
91044
91044
|
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "center" })
|
|
91045
91045
|
}).annotations({ title: "IconRenderer", description: "图标渲染器" });
|
|
91046
91046
|
}
|
|
91047
|
-
function toColumnDef$
|
|
91047
|
+
function toColumnDef$l(value, { getLocaleText, $cel, inheritedContext }) {
|
|
91048
91048
|
return {
|
|
91049
91049
|
header: getLocaleText(value.title),
|
|
91050
91050
|
accessorFn: (row, index) => {
|
|
@@ -91065,25 +91065,25 @@ function toColumnDef$j(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
91065
91065
|
}
|
|
91066
91066
|
const __vite_glob_0_2$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91067
91067
|
__proto__: null,
|
|
91068
|
-
compatibilityDate: compatibilityDate$
|
|
91069
|
-
metadata: metadata$
|
|
91070
|
-
schema: schema$
|
|
91071
|
-
toColumnDef: toColumnDef$
|
|
91072
|
-
type: type$
|
|
91068
|
+
compatibilityDate: compatibilityDate$w,
|
|
91069
|
+
metadata: metadata$w,
|
|
91070
|
+
schema: schema$w,
|
|
91071
|
+
toColumnDef: toColumnDef$l,
|
|
91072
|
+
type: type$w
|
|
91073
91073
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91074
|
-
const type$
|
|
91075
|
-
const compatibilityDate$
|
|
91076
|
-
const metadata$
|
|
91074
|
+
const type$v = "com.shwfed.table.column.markdown";
|
|
91075
|
+
const compatibilityDate$v = "2026-04-14";
|
|
91076
|
+
const metadata$v = {
|
|
91077
91077
|
name: "MD",
|
|
91078
91078
|
icon: "fluent:markdown-20-regular"
|
|
91079
91079
|
};
|
|
91080
91080
|
const isCopyExpressionType$1 = (t) => t === "string" || t === "dyn" || t.startsWith("optional");
|
|
91081
|
-
function schema$
|
|
91081
|
+
function schema$v(configure) {
|
|
91082
91082
|
const cel = CelRowAccess(configure, { resultType: isCopyExpressionType$1 });
|
|
91083
91083
|
const localeMarkdown = LocaleMarkdownWithRow(configure);
|
|
91084
91084
|
return Struct({
|
|
91085
|
-
type: Literal2(type$
|
|
91086
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91085
|
+
type: Literal2(type$v),
|
|
91086
|
+
compatibilityDate: Literal2(compatibilityDate$v),
|
|
91087
91087
|
...columnIdentityFields(),
|
|
91088
91088
|
title: Locale.annotations({ title: "标题", description: "列标题" }),
|
|
91089
91089
|
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "left" }),
|
|
@@ -91109,7 +91109,7 @@ function schema$t(configure) {
|
|
|
91109
91109
|
}))
|
|
91110
91110
|
}).annotations({ title: "MarkdownRenderer", description: "MD" });
|
|
91111
91111
|
}
|
|
91112
|
-
function toColumnDef$
|
|
91112
|
+
function toColumnDef$k(value, { getLocaleText }) {
|
|
91113
91113
|
return {
|
|
91114
91114
|
header: getLocaleText(value.title),
|
|
91115
91115
|
enableSorting: false,
|
|
@@ -91122,22 +91122,22 @@ function toColumnDef$i(value, { getLocaleText }) {
|
|
|
91122
91122
|
}
|
|
91123
91123
|
const __vite_glob_0_3$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91124
91124
|
__proto__: null,
|
|
91125
|
-
compatibilityDate: compatibilityDate$
|
|
91126
|
-
metadata: metadata$
|
|
91127
|
-
schema: schema$
|
|
91128
|
-
toColumnDef: toColumnDef$
|
|
91129
|
-
type: type$
|
|
91125
|
+
compatibilityDate: compatibilityDate$v,
|
|
91126
|
+
metadata: metadata$v,
|
|
91127
|
+
schema: schema$v,
|
|
91128
|
+
toColumnDef: toColumnDef$k,
|
|
91129
|
+
type: type$v
|
|
91130
91130
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91131
|
-
const type$
|
|
91132
|
-
const compatibilityDate$
|
|
91133
|
-
const metadata$
|
|
91131
|
+
const type$u = "com.shwfed.table.column.number";
|
|
91132
|
+
const compatibilityDate$u = "2026-04-14";
|
|
91133
|
+
const metadata$u = {
|
|
91134
91134
|
name: "数值",
|
|
91135
91135
|
icon: "fluent:number-symbol-20-regular"
|
|
91136
91136
|
};
|
|
91137
|
-
function schema$
|
|
91137
|
+
function schema$u(configure) {
|
|
91138
91138
|
return Struct({
|
|
91139
|
-
type: Literal2(type$
|
|
91140
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91139
|
+
type: Literal2(type$u),
|
|
91140
|
+
compatibilityDate: Literal2(compatibilityDate$u),
|
|
91141
91141
|
...columnFields(configure),
|
|
91142
91142
|
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "right" }),
|
|
91143
91143
|
displayMode: optionalWith(
|
|
@@ -91157,7 +91157,7 @@ function schema$s(configure) {
|
|
|
91157
91157
|
}))
|
|
91158
91158
|
}).annotations({ title: "NumberRenderer", description: "数值渲染器" });
|
|
91159
91159
|
}
|
|
91160
|
-
function toColumnDef$
|
|
91160
|
+
function toColumnDef$j(value, { getLocaleText, $cel, inheritedContext }) {
|
|
91161
91161
|
return {
|
|
91162
91162
|
header: getLocaleText(value.title),
|
|
91163
91163
|
accessorFn: (row, index) => {
|
|
@@ -91178,24 +91178,24 @@ function toColumnDef$h(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
91178
91178
|
}
|
|
91179
91179
|
const __vite_glob_0_4$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91180
91180
|
__proto__: null,
|
|
91181
|
-
compatibilityDate: compatibilityDate$
|
|
91182
|
-
metadata: metadata$
|
|
91183
|
-
schema: schema$
|
|
91184
|
-
toColumnDef: toColumnDef$
|
|
91185
|
-
type: type$
|
|
91181
|
+
compatibilityDate: compatibilityDate$u,
|
|
91182
|
+
metadata: metadata$u,
|
|
91183
|
+
schema: schema$u,
|
|
91184
|
+
toColumnDef: toColumnDef$j,
|
|
91185
|
+
type: type$u
|
|
91186
91186
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91187
91187
|
const __vite_glob_2_5 = {};
|
|
91188
91188
|
const _stubVue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91189
91189
|
__proto__: null,
|
|
91190
91190
|
default: __vite_glob_2_5
|
|
91191
91191
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91192
|
-
const type$
|
|
91193
|
-
const compatibilityDate$
|
|
91194
|
-
const metadata$
|
|
91192
|
+
const type$t = "com.shwfed.table.column.select";
|
|
91193
|
+
const compatibilityDate$t = "2026-04-14";
|
|
91194
|
+
const metadata$t = {
|
|
91195
91195
|
name: "选择",
|
|
91196
91196
|
icon: "fluent:checkbox-checked-20-regular"
|
|
91197
91197
|
};
|
|
91198
|
-
function schema$
|
|
91198
|
+
function schema$t(configure) {
|
|
91199
91199
|
const CelRowSelectionPredicate = Expression({
|
|
91200
91200
|
configure: (env) => {
|
|
91201
91201
|
configure(env);
|
|
@@ -91204,8 +91204,8 @@ function schema$r(configure) {
|
|
|
91204
91204
|
resultType: "bool"
|
|
91205
91205
|
});
|
|
91206
91206
|
return Struct({
|
|
91207
|
-
type: Literal2(type$
|
|
91208
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91207
|
+
type: Literal2(type$t),
|
|
91208
|
+
compatibilityDate: Literal2(compatibilityDate$t),
|
|
91209
91209
|
...columnIdentityFields(),
|
|
91210
91210
|
mode: optionalWith(Literal2("radio", "checkbox").annotations({
|
|
91211
91211
|
title: "模式",
|
|
@@ -91225,7 +91225,7 @@ function schema$r(configure) {
|
|
|
91225
91225
|
})
|
|
91226
91226
|
}).annotations({ title: "SelectRenderer", description: "选择渲染器" });
|
|
91227
91227
|
}
|
|
91228
|
-
function toColumnDef$
|
|
91228
|
+
function toColumnDef$i(value) {
|
|
91229
91229
|
return {
|
|
91230
91230
|
header: (ctx) => vueExports.h(__vite_glob_2_5, { column: value, ctx }),
|
|
91231
91231
|
size: 40,
|
|
@@ -91236,24 +91236,24 @@ function toColumnDef$g(value) {
|
|
|
91236
91236
|
}
|
|
91237
91237
|
const __vite_glob_0_5$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91238
91238
|
__proto__: null,
|
|
91239
|
-
compatibilityDate: compatibilityDate$
|
|
91240
|
-
metadata: metadata$
|
|
91241
|
-
schema: schema$
|
|
91242
|
-
toColumnDef: toColumnDef$
|
|
91243
|
-
type: type$
|
|
91239
|
+
compatibilityDate: compatibilityDate$t,
|
|
91240
|
+
metadata: metadata$t,
|
|
91241
|
+
schema: schema$t,
|
|
91242
|
+
toColumnDef: toColumnDef$i,
|
|
91243
|
+
type: type$t
|
|
91244
91244
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91245
|
-
const type$
|
|
91246
|
-
const compatibilityDate$
|
|
91247
|
-
const metadata$
|
|
91245
|
+
const type$s = "com.shwfed.table.column.text";
|
|
91246
|
+
const compatibilityDate$s = "2026-04-14";
|
|
91247
|
+
const metadata$s = {
|
|
91248
91248
|
name: "文本",
|
|
91249
91249
|
icon: "fluent:text-field-20-regular"
|
|
91250
91250
|
};
|
|
91251
91251
|
const isCopyExpressionType = (t) => t === "string" || t === "dyn" || t.startsWith("optional");
|
|
91252
|
-
function schema$
|
|
91252
|
+
function schema$s(configure) {
|
|
91253
91253
|
const cel = CelRowAccess(configure, { resultType: isCopyExpressionType });
|
|
91254
91254
|
return Struct({
|
|
91255
|
-
type: Literal2(type$
|
|
91256
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91255
|
+
type: Literal2(type$s),
|
|
91256
|
+
compatibilityDate: Literal2(compatibilityDate$s),
|
|
91257
91257
|
...columnFields(configure),
|
|
91258
91258
|
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "left" }),
|
|
91259
91259
|
displayMode: optionalWith(
|
|
@@ -91269,7 +91269,7 @@ function schema$q(configure) {
|
|
|
91269
91269
|
}))
|
|
91270
91270
|
}).annotations({ title: "TextRenderer", description: "文本渲染器" });
|
|
91271
91271
|
}
|
|
91272
|
-
function toColumnDef$
|
|
91272
|
+
function toColumnDef$h(value, { getLocaleText, $cel, inheritedContext }) {
|
|
91273
91273
|
return {
|
|
91274
91274
|
header: getLocaleText(value.title),
|
|
91275
91275
|
accessorFn: (row, index) => {
|
|
@@ -91291,19 +91291,19 @@ function toColumnDef$f(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
91291
91291
|
}
|
|
91292
91292
|
const __vite_glob_0_6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91293
91293
|
__proto__: null,
|
|
91294
|
-
compatibilityDate: compatibilityDate$
|
|
91295
|
-
metadata: metadata$
|
|
91296
|
-
schema: schema$
|
|
91297
|
-
toColumnDef: toColumnDef$
|
|
91298
|
-
type: type$
|
|
91294
|
+
compatibilityDate: compatibilityDate$s,
|
|
91295
|
+
metadata: metadata$s,
|
|
91296
|
+
schema: schema$s,
|
|
91297
|
+
toColumnDef: toColumnDef$h,
|
|
91298
|
+
type: type$s
|
|
91299
91299
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91300
|
-
const type$
|
|
91301
|
-
const compatibilityDate$
|
|
91302
|
-
const metadata$
|
|
91300
|
+
const type$r = "com.shwfed.table.column.switch.remote";
|
|
91301
|
+
const compatibilityDate$r = "2026-05-13";
|
|
91302
|
+
const metadata$r = {
|
|
91303
91303
|
name: "开关(远程)",
|
|
91304
91304
|
icon: "fluent:toggle-left-20-regular"
|
|
91305
91305
|
};
|
|
91306
|
-
function schema$
|
|
91306
|
+
function schema$r(configure) {
|
|
91307
91307
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
91308
91308
|
const CelOnChange = Expression({
|
|
91309
91309
|
configure: (env) => {
|
|
@@ -91321,8 +91321,8 @@ function schema$p(configure) {
|
|
|
91321
91321
|
resultType: "string"
|
|
91322
91322
|
});
|
|
91323
91323
|
return Struct({
|
|
91324
|
-
type: Literal2(type$
|
|
91325
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91324
|
+
type: Literal2(type$r),
|
|
91325
|
+
compatibilityDate: Literal2(compatibilityDate$r),
|
|
91326
91326
|
...columnFields(configure),
|
|
91327
91327
|
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "center" }),
|
|
91328
91328
|
disabled: optional(CelBool.annotations({
|
|
@@ -91343,19 +91343,19 @@ function schema$p(configure) {
|
|
|
91343
91343
|
}))
|
|
91344
91344
|
}).annotations({ title: "SwitchRenderer", description: "开关渲染器(可编辑)" });
|
|
91345
91345
|
}
|
|
91346
|
-
const migrateFrom$
|
|
91347
|
-
{ type: "com.shwfed.table.column.switch", compatibilityDate: compatibilityDate$
|
|
91346
|
+
const migrateFrom$5 = [
|
|
91347
|
+
{ type: "com.shwfed.table.column.switch", compatibilityDate: compatibilityDate$r }
|
|
91348
91348
|
];
|
|
91349
|
-
const migrate$
|
|
91349
|
+
const migrate$5 = (prev) => try_({
|
|
91350
91350
|
try: () => {
|
|
91351
91351
|
if (!prev || typeof prev !== "object") {
|
|
91352
91352
|
throw new Error("开关(远程)迁移失败:原值不是对象");
|
|
91353
91353
|
}
|
|
91354
|
-
return { ...prev, type: type$
|
|
91354
|
+
return { ...prev, type: type$r, compatibilityDate: compatibilityDate$r };
|
|
91355
91355
|
},
|
|
91356
91356
|
catch: (e) => e instanceof Error ? e : new Error(String(e))
|
|
91357
91357
|
});
|
|
91358
|
-
function toColumnDef$
|
|
91358
|
+
function toColumnDef$g(value, { getLocaleText, $cel, inheritedContext }) {
|
|
91359
91359
|
return {
|
|
91360
91360
|
header: getLocaleText(value.title),
|
|
91361
91361
|
accessorFn: (row, index) => {
|
|
@@ -91377,21 +91377,21 @@ function toColumnDef$e(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
91377
91377
|
}
|
|
91378
91378
|
const __vite_glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91379
91379
|
__proto__: null,
|
|
91380
|
-
compatibilityDate: compatibilityDate$
|
|
91381
|
-
metadata: metadata$
|
|
91382
|
-
migrate: migrate$
|
|
91383
|
-
migrateFrom: migrateFrom$
|
|
91384
|
-
schema: schema$
|
|
91385
|
-
toColumnDef: toColumnDef$
|
|
91386
|
-
type: type$
|
|
91380
|
+
compatibilityDate: compatibilityDate$r,
|
|
91381
|
+
metadata: metadata$r,
|
|
91382
|
+
migrate: migrate$5,
|
|
91383
|
+
migrateFrom: migrateFrom$5,
|
|
91384
|
+
schema: schema$r,
|
|
91385
|
+
toColumnDef: toColumnDef$g,
|
|
91386
|
+
type: type$r
|
|
91387
91387
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91388
|
-
const type$
|
|
91389
|
-
const compatibilityDate$
|
|
91390
|
-
const metadata$
|
|
91388
|
+
const type$q = "com.shwfed.table.column.switch";
|
|
91389
|
+
const compatibilityDate$q = "2026-05-13";
|
|
91390
|
+
const metadata$q = {
|
|
91391
91391
|
name: "开关(远程)",
|
|
91392
91392
|
icon: "fluent:toggle-left-20-regular"
|
|
91393
91393
|
};
|
|
91394
|
-
function schema$
|
|
91394
|
+
function schema$q(configure) {
|
|
91395
91395
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
91396
91396
|
const CelOnChange = Expression({
|
|
91397
91397
|
configure: (env) => {
|
|
@@ -91409,8 +91409,8 @@ function schema$o(configure) {
|
|
|
91409
91409
|
resultType: "string"
|
|
91410
91410
|
});
|
|
91411
91411
|
return Struct({
|
|
91412
|
-
type: Literal2(type$
|
|
91413
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91412
|
+
type: Literal2(type$q),
|
|
91413
|
+
compatibilityDate: Literal2(compatibilityDate$q),
|
|
91414
91414
|
...columnFields(configure),
|
|
91415
91415
|
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "center" }),
|
|
91416
91416
|
disabled: optional(CelBool.annotations({
|
|
@@ -91431,7 +91431,7 @@ function schema$o(configure) {
|
|
|
91431
91431
|
}))
|
|
91432
91432
|
}).annotations({ title: "SwitchRenderer", description: "开关渲染器(可编辑)" });
|
|
91433
91433
|
}
|
|
91434
|
-
function toColumnDef$
|
|
91434
|
+
function toColumnDef$f(value, { getLocaleText, $cel, inheritedContext }) {
|
|
91435
91435
|
return {
|
|
91436
91436
|
header: getLocaleText(value.title),
|
|
91437
91437
|
accessorFn: (row, index) => {
|
|
@@ -91453,11 +91453,11 @@ function toColumnDef$d(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
91453
91453
|
}
|
|
91454
91454
|
const __vite_glob_0_8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91455
91455
|
__proto__: null,
|
|
91456
|
-
compatibilityDate: compatibilityDate$
|
|
91457
|
-
metadata: metadata$
|
|
91458
|
-
schema: schema$
|
|
91459
|
-
toColumnDef: toColumnDef$
|
|
91460
|
-
type: type$
|
|
91456
|
+
compatibilityDate: compatibilityDate$q,
|
|
91457
|
+
metadata: metadata$q,
|
|
91458
|
+
schema: schema$q,
|
|
91459
|
+
toColumnDef: toColumnDef$f,
|
|
91460
|
+
type: type$q
|
|
91461
91461
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91462
91462
|
const isObject$1 = (value) => {
|
|
91463
91463
|
const type2 = typeof value;
|
|
@@ -91656,13 +91656,13 @@ function getProperty(object2, path, value) {
|
|
|
91656
91656
|
}
|
|
91657
91657
|
return object2 === void 0 ? value : object2;
|
|
91658
91658
|
}
|
|
91659
|
-
const type$
|
|
91660
|
-
const compatibilityDate$
|
|
91661
|
-
const metadata$
|
|
91659
|
+
const type$p = "com.shwfed.table.column.combobox-single";
|
|
91660
|
+
const compatibilityDate$p = "2026-05-20";
|
|
91661
|
+
const metadata$p = {
|
|
91662
91662
|
name: "下拉单选",
|
|
91663
91663
|
icon: "fluent:chevron-down-20-regular"
|
|
91664
91664
|
};
|
|
91665
|
-
function itemSchema$
|
|
91665
|
+
function itemSchema$7(configure) {
|
|
91666
91666
|
const LocaleMd = LocaleMarkdownWithRow(configure);
|
|
91667
91667
|
const TextValue = Struct({
|
|
91668
91668
|
kind: Literal2("text"),
|
|
@@ -91691,12 +91691,12 @@ function itemSchema$5(configure) {
|
|
|
91691
91691
|
title: "ComboboxSingleItem"
|
|
91692
91692
|
});
|
|
91693
91693
|
}
|
|
91694
|
-
function schema$
|
|
91694
|
+
function schema$p(configure) {
|
|
91695
91695
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
91696
|
-
const Item = itemSchema$
|
|
91696
|
+
const Item = itemSchema$7(configure);
|
|
91697
91697
|
return Struct({
|
|
91698
|
-
type: Literal2(type$
|
|
91699
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91698
|
+
type: Literal2(type$p),
|
|
91699
|
+
compatibilityDate: Literal2(compatibilityDate$p),
|
|
91700
91700
|
...editableColumnFields(),
|
|
91701
91701
|
placeholder: optional(Locale.annotations({
|
|
91702
91702
|
title: "占位符",
|
|
@@ -91721,7 +91721,7 @@ function schema$n(configure) {
|
|
|
91721
91721
|
}), { default: () => [] })
|
|
91722
91722
|
}).annotations({ title: "ComboboxSingleRenderer", description: "下拉单选渲染器(可编辑)" });
|
|
91723
91723
|
}
|
|
91724
|
-
function toColumnDef$
|
|
91724
|
+
function toColumnDef$e(value, { getLocaleText }) {
|
|
91725
91725
|
return {
|
|
91726
91726
|
header: editableHeader(getLocaleText(value.title)),
|
|
91727
91727
|
// `binding` is a dot-prop path (validated non-empty); the cell renderer
|
|
@@ -91744,25 +91744,25 @@ function toColumnDef$c(value, { getLocaleText }) {
|
|
|
91744
91744
|
}
|
|
91745
91745
|
const __vite_glob_0_9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91746
91746
|
__proto__: null,
|
|
91747
|
-
compatibilityDate: compatibilityDate$
|
|
91748
|
-
itemSchema: itemSchema$
|
|
91749
|
-
metadata: metadata$
|
|
91750
|
-
schema: schema$
|
|
91751
|
-
toColumnDef: toColumnDef$
|
|
91752
|
-
type: type$
|
|
91747
|
+
compatibilityDate: compatibilityDate$p,
|
|
91748
|
+
itemSchema: itemSchema$7,
|
|
91749
|
+
metadata: metadata$p,
|
|
91750
|
+
schema: schema$p,
|
|
91751
|
+
toColumnDef: toColumnDef$e,
|
|
91752
|
+
type: type$p
|
|
91753
91753
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91754
|
-
const type$
|
|
91755
|
-
const compatibilityDate$
|
|
91756
|
-
const metadata$
|
|
91754
|
+
const type$o = "com.shwfed.table.column.number-input";
|
|
91755
|
+
const compatibilityDate$o = "2026-05-20";
|
|
91756
|
+
const metadata$o = {
|
|
91757
91757
|
name: "数值输入",
|
|
91758
91758
|
icon: "fluent:number-symbol-20-regular"
|
|
91759
91759
|
};
|
|
91760
|
-
function schema$
|
|
91760
|
+
function schema$o(configure) {
|
|
91761
91761
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
91762
91762
|
const CelNumber = CelRowAccess(configure, { resultType: "number" });
|
|
91763
91763
|
return Struct({
|
|
91764
|
-
type: Literal2(type$
|
|
91765
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91764
|
+
type: Literal2(type$o),
|
|
91765
|
+
compatibilityDate: Literal2(compatibilityDate$o),
|
|
91766
91766
|
...editableColumnFields(),
|
|
91767
91767
|
placeholder: optional(Locale.annotations({
|
|
91768
91768
|
title: "占位符",
|
|
@@ -91807,7 +91807,7 @@ function schema$m(configure) {
|
|
|
91807
91807
|
derived: derivedRowField(configure, "number")
|
|
91808
91808
|
}).annotations({ title: "NumberInputRenderer", description: "数值输入渲染器(可编辑)" });
|
|
91809
91809
|
}
|
|
91810
|
-
function toColumnDef$
|
|
91810
|
+
function toColumnDef$d(value, { getLocaleText }) {
|
|
91811
91811
|
return {
|
|
91812
91812
|
header: editableHeader(getLocaleText(value.title)),
|
|
91813
91813
|
// `binding` is a dot-prop path (validated non-empty); the cell renderer
|
|
@@ -91830,23 +91830,23 @@ function toColumnDef$b(value, { getLocaleText }) {
|
|
|
91830
91830
|
}
|
|
91831
91831
|
const __vite_glob_0_10 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91832
91832
|
__proto__: null,
|
|
91833
|
-
compatibilityDate: compatibilityDate$
|
|
91834
|
-
metadata: metadata$
|
|
91835
|
-
schema: schema$
|
|
91836
|
-
toColumnDef: toColumnDef$
|
|
91837
|
-
type: type$
|
|
91833
|
+
compatibilityDate: compatibilityDate$o,
|
|
91834
|
+
metadata: metadata$o,
|
|
91835
|
+
schema: schema$o,
|
|
91836
|
+
toColumnDef: toColumnDef$d,
|
|
91837
|
+
type: type$o
|
|
91838
91838
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91839
|
-
const type$
|
|
91840
|
-
const compatibilityDate$
|
|
91841
|
-
const metadata$
|
|
91839
|
+
const type$n = "com.shwfed.table.column.switch.local";
|
|
91840
|
+
const compatibilityDate$n = "2026-05-20";
|
|
91841
|
+
const metadata$n = {
|
|
91842
91842
|
name: "开关",
|
|
91843
91843
|
icon: "fluent:toggle-left-20-regular"
|
|
91844
91844
|
};
|
|
91845
|
-
function schema$
|
|
91845
|
+
function schema$n(configure) {
|
|
91846
91846
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
91847
91847
|
return Struct({
|
|
91848
|
-
type: Literal2(type$
|
|
91849
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91848
|
+
type: Literal2(type$n),
|
|
91849
|
+
compatibilityDate: Literal2(compatibilityDate$n),
|
|
91850
91850
|
...editableColumnFields(),
|
|
91851
91851
|
hidden: optional(CelBool.annotations({
|
|
91852
91852
|
title: "隐藏条件",
|
|
@@ -91871,19 +91871,19 @@ function schema$l(configure) {
|
|
|
91871
91871
|
derived: derivedRowField(configure, "bool")
|
|
91872
91872
|
}).annotations({ title: "SwitchRenderer", description: "开关渲染器(可编辑、本地)" });
|
|
91873
91873
|
}
|
|
91874
|
-
const migrateFrom$
|
|
91875
|
-
{ type: "com.shwfed.table.column.switch", compatibilityDate: compatibilityDate$
|
|
91874
|
+
const migrateFrom$4 = [
|
|
91875
|
+
{ type: "com.shwfed.table.column.switch", compatibilityDate: compatibilityDate$n }
|
|
91876
91876
|
];
|
|
91877
|
-
const migrate$
|
|
91877
|
+
const migrate$4 = (prev) => try_({
|
|
91878
91878
|
try: () => {
|
|
91879
91879
|
if (!prev || typeof prev !== "object") {
|
|
91880
91880
|
throw new Error("开关(本地)迁移失败:原值不是对象");
|
|
91881
91881
|
}
|
|
91882
|
-
return { ...prev, type: type$
|
|
91882
|
+
return { ...prev, type: type$n, compatibilityDate: compatibilityDate$n };
|
|
91883
91883
|
},
|
|
91884
91884
|
catch: (e) => e instanceof Error ? e : new Error(String(e))
|
|
91885
91885
|
});
|
|
91886
|
-
function toColumnDef$
|
|
91886
|
+
function toColumnDef$c(value, { getLocaleText }) {
|
|
91887
91887
|
return {
|
|
91888
91888
|
header: editableHeader(getLocaleText(value.title)),
|
|
91889
91889
|
// `binding` is a dot-prop path (validated non-empty); the cell renderer
|
|
@@ -91905,25 +91905,25 @@ function toColumnDef$a(value, { getLocaleText }) {
|
|
|
91905
91905
|
}
|
|
91906
91906
|
const __vite_glob_0_11 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91907
91907
|
__proto__: null,
|
|
91908
|
-
compatibilityDate: compatibilityDate$
|
|
91909
|
-
metadata: metadata$
|
|
91910
|
-
migrate: migrate$
|
|
91911
|
-
migrateFrom: migrateFrom$
|
|
91912
|
-
schema: schema$
|
|
91913
|
-
toColumnDef: toColumnDef$
|
|
91914
|
-
type: type$
|
|
91908
|
+
compatibilityDate: compatibilityDate$n,
|
|
91909
|
+
metadata: metadata$n,
|
|
91910
|
+
migrate: migrate$4,
|
|
91911
|
+
migrateFrom: migrateFrom$4,
|
|
91912
|
+
schema: schema$n,
|
|
91913
|
+
toColumnDef: toColumnDef$c,
|
|
91914
|
+
type: type$n
|
|
91915
91915
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91916
|
-
const type$
|
|
91917
|
-
const compatibilityDate$
|
|
91918
|
-
const metadata$
|
|
91916
|
+
const type$m = "com.shwfed.table.column.switch";
|
|
91917
|
+
const compatibilityDate$m = "2026-05-20";
|
|
91918
|
+
const metadata$m = {
|
|
91919
91919
|
name: "开关",
|
|
91920
91920
|
icon: "fluent:toggle-left-20-regular"
|
|
91921
91921
|
};
|
|
91922
|
-
function schema$
|
|
91922
|
+
function schema$m(configure) {
|
|
91923
91923
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
91924
91924
|
return Struct({
|
|
91925
|
-
type: Literal2(type$
|
|
91926
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91925
|
+
type: Literal2(type$m),
|
|
91926
|
+
compatibilityDate: Literal2(compatibilityDate$m),
|
|
91927
91927
|
...editableColumnFields(),
|
|
91928
91928
|
hidden: optional(CelBool.annotations({
|
|
91929
91929
|
title: "隐藏条件",
|
|
@@ -91948,7 +91948,7 @@ function schema$k(configure) {
|
|
|
91948
91948
|
derived: derivedRowField(configure, "bool")
|
|
91949
91949
|
}).annotations({ title: "SwitchRenderer", description: "开关渲染器(可编辑、本地)" });
|
|
91950
91950
|
}
|
|
91951
|
-
function toColumnDef$
|
|
91951
|
+
function toColumnDef$b(value, { getLocaleText }) {
|
|
91952
91952
|
return {
|
|
91953
91953
|
header: editableHeader(getLocaleText(value.title)),
|
|
91954
91954
|
// `binding` is a dot-prop path (validated non-empty); the cell renderer
|
|
@@ -91970,23 +91970,23 @@ function toColumnDef$9(value, { getLocaleText }) {
|
|
|
91970
91970
|
}
|
|
91971
91971
|
const __vite_glob_0_12 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91972
91972
|
__proto__: null,
|
|
91973
|
-
compatibilityDate: compatibilityDate$
|
|
91974
|
-
metadata: metadata$
|
|
91975
|
-
schema: schema$
|
|
91976
|
-
toColumnDef: toColumnDef$
|
|
91977
|
-
type: type$
|
|
91973
|
+
compatibilityDate: compatibilityDate$m,
|
|
91974
|
+
metadata: metadata$m,
|
|
91975
|
+
schema: schema$m,
|
|
91976
|
+
toColumnDef: toColumnDef$b,
|
|
91977
|
+
type: type$m
|
|
91978
91978
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91979
|
-
const type$
|
|
91980
|
-
const compatibilityDate$
|
|
91981
|
-
const metadata$
|
|
91979
|
+
const type$l = "com.shwfed.table.column.text-input";
|
|
91980
|
+
const compatibilityDate$l = "2026-05-20";
|
|
91981
|
+
const metadata$l = {
|
|
91982
91982
|
name: "文本输入",
|
|
91983
91983
|
icon: "fluent:text-field-20-regular"
|
|
91984
91984
|
};
|
|
91985
|
-
function schema$
|
|
91985
|
+
function schema$l(configure) {
|
|
91986
91986
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
91987
91987
|
return Struct({
|
|
91988
|
-
type: Literal2(type$
|
|
91989
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91988
|
+
type: Literal2(type$l),
|
|
91989
|
+
compatibilityDate: Literal2(compatibilityDate$l),
|
|
91990
91990
|
...editableColumnFields(),
|
|
91991
91991
|
placeholder: optional(Locale.annotations({
|
|
91992
91992
|
title: "占位符",
|
|
@@ -92007,7 +92007,7 @@ function schema$j(configure) {
|
|
|
92007
92007
|
derived: derivedRowField(configure, "string")
|
|
92008
92008
|
}).annotations({ title: "TextInputRenderer", description: "文本输入渲染器(可编辑)" });
|
|
92009
92009
|
}
|
|
92010
|
-
function toColumnDef$
|
|
92010
|
+
function toColumnDef$a(value, { getLocaleText }) {
|
|
92011
92011
|
return {
|
|
92012
92012
|
header: editableHeader(getLocaleText(value.title)),
|
|
92013
92013
|
// `binding` is a dot-prop path (validated non-empty); the cell renderer
|
|
@@ -92027,26 +92027,26 @@ function toColumnDef$8(value, { getLocaleText }) {
|
|
|
92027
92027
|
}
|
|
92028
92028
|
const __vite_glob_0_13 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
92029
92029
|
__proto__: null,
|
|
92030
|
-
compatibilityDate: compatibilityDate$
|
|
92031
|
-
metadata: metadata$
|
|
92032
|
-
schema: schema$
|
|
92033
|
-
toColumnDef: toColumnDef$
|
|
92034
|
-
type: type$
|
|
92030
|
+
compatibilityDate: compatibilityDate$l,
|
|
92031
|
+
metadata: metadata$l,
|
|
92032
|
+
schema: schema$l,
|
|
92033
|
+
toColumnDef: toColumnDef$a,
|
|
92034
|
+
type: type$l
|
|
92035
92035
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
92036
|
-
const type$
|
|
92037
|
-
const compatibilityDate$
|
|
92038
|
-
const metadata$
|
|
92036
|
+
const type$k = "com.shwfed.table.column.drag-handle";
|
|
92037
|
+
const compatibilityDate$k = "2026-05-21";
|
|
92038
|
+
const metadata$k = {
|
|
92039
92039
|
name: "拖拽",
|
|
92040
92040
|
icon: "fluent:re-order-dots-vertical-20-regular"
|
|
92041
92041
|
};
|
|
92042
|
-
function schema$
|
|
92042
|
+
function schema$k(_configure) {
|
|
92043
92043
|
return Struct({
|
|
92044
|
-
type: Literal2(type$
|
|
92045
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
92044
|
+
type: Literal2(type$k),
|
|
92045
|
+
compatibilityDate: Literal2(compatibilityDate$k),
|
|
92046
92046
|
...columnIdentityFields()
|
|
92047
92047
|
}).annotations({ title: "DragHandleRenderer", description: "行拖拽手柄列" });
|
|
92048
92048
|
}
|
|
92049
|
-
function toColumnDef$
|
|
92049
|
+
function toColumnDef$9(_value) {
|
|
92050
92050
|
return {
|
|
92051
92051
|
header: () => vueExports.h(Icon, {
|
|
92052
92052
|
"icon": "fluent:re-order-dots-vertical-20-regular",
|
|
@@ -92062,15 +92062,15 @@ function toColumnDef$7(_value) {
|
|
|
92062
92062
|
}
|
|
92063
92063
|
const __vite_glob_0_14 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
92064
92064
|
__proto__: null,
|
|
92065
|
-
compatibilityDate: compatibilityDate$
|
|
92066
|
-
metadata: metadata$
|
|
92067
|
-
schema: schema$
|
|
92068
|
-
toColumnDef: toColumnDef$
|
|
92069
|
-
type: type$
|
|
92065
|
+
compatibilityDate: compatibilityDate$k,
|
|
92066
|
+
metadata: metadata$k,
|
|
92067
|
+
schema: schema$k,
|
|
92068
|
+
toColumnDef: toColumnDef$9,
|
|
92069
|
+
type: type$k
|
|
92070
92070
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
92071
|
-
const type$
|
|
92072
|
-
const compatibilityDate$
|
|
92073
|
-
const metadata$
|
|
92071
|
+
const type$j = "com.shwfed.table.column.combobox-single.remote.options-remote";
|
|
92072
|
+
const compatibilityDate$j = "2026-05-24";
|
|
92073
|
+
const metadata$j = {
|
|
92074
92074
|
name: "远程下拉单选",
|
|
92075
92075
|
icon: "fluent:cloud-arrow-down-20-regular"
|
|
92076
92076
|
};
|
|
@@ -92084,8 +92084,8 @@ const JSON_VAR$1 = {
|
|
|
92084
92084
|
label: "HTTP 响应体",
|
|
92085
92085
|
description: "HTTP 响应体(已解析 JSON);请求失败或尚未完成时为 `null`"
|
|
92086
92086
|
};
|
|
92087
|
-
const isListType$
|
|
92088
|
-
function schema$
|
|
92087
|
+
const isListType$7 = (actual) => actual === "dyn" || actual.startsWith("list");
|
|
92088
|
+
function schema$j(configure) {
|
|
92089
92089
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
92090
92090
|
const CelRequest = Expression({
|
|
92091
92091
|
configure: (env) => {
|
|
@@ -92100,7 +92100,7 @@ function schema$h(configure) {
|
|
|
92100
92100
|
registerRowVariablesIfAbsent(env);
|
|
92101
92101
|
env.registerVariable("json", JSON_VAR$1.type, { description: JSON_VAR$1.description });
|
|
92102
92102
|
},
|
|
92103
|
-
resultType: isListType$
|
|
92103
|
+
resultType: isListType$7
|
|
92104
92104
|
});
|
|
92105
92105
|
const CelOptionValue = Expression({
|
|
92106
92106
|
configure: (env) => {
|
|
@@ -92133,8 +92133,8 @@ function schema$h(configure) {
|
|
|
92133
92133
|
resultType: "string"
|
|
92134
92134
|
});
|
|
92135
92135
|
return Struct({
|
|
92136
|
-
type: Literal2(type$
|
|
92137
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
92136
|
+
type: Literal2(type$j),
|
|
92137
|
+
compatibilityDate: Literal2(compatibilityDate$j),
|
|
92138
92138
|
...columnFields(configure),
|
|
92139
92139
|
placeholder: optional(Locale.annotations({
|
|
92140
92140
|
title: "占位符",
|
|
@@ -92185,7 +92185,7 @@ function schema$h(configure) {
|
|
|
92185
92185
|
description: "下拉单选渲染器(远程写入·远程选项)"
|
|
92186
92186
|
});
|
|
92187
92187
|
}
|
|
92188
|
-
function toColumnDef$
|
|
92188
|
+
function toColumnDef$8(value, { getLocaleText, $cel, inheritedContext }) {
|
|
92189
92189
|
return {
|
|
92190
92190
|
header: editableHeader(getLocaleText(value.title)),
|
|
92191
92191
|
accessorFn: (row, index) => {
|
|
@@ -92209,19 +92209,19 @@ const __vite_glob_0_15 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
92209
92209
|
__proto__: null,
|
|
92210
92210
|
JSON_VAR: JSON_VAR$1,
|
|
92211
92211
|
OPTION_VAR: OPTION_VAR$1,
|
|
92212
|
-
compatibilityDate: compatibilityDate$
|
|
92213
|
-
metadata: metadata$
|
|
92214
|
-
schema: schema$
|
|
92215
|
-
toColumnDef: toColumnDef$
|
|
92216
|
-
type: type$
|
|
92212
|
+
compatibilityDate: compatibilityDate$j,
|
|
92213
|
+
metadata: metadata$j,
|
|
92214
|
+
schema: schema$j,
|
|
92215
|
+
toColumnDef: toColumnDef$8,
|
|
92216
|
+
type: type$j
|
|
92217
92217
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
92218
|
-
const type$
|
|
92219
|
-
const compatibilityDate$
|
|
92220
|
-
const metadata$
|
|
92218
|
+
const type$i = "com.shwfed.table.column.combobox-single.remote.options-static";
|
|
92219
|
+
const compatibilityDate$i = "2026-05-24";
|
|
92220
|
+
const metadata$i = {
|
|
92221
92221
|
name: "下拉单选",
|
|
92222
92222
|
icon: "fluent:chevron-down-20-regular"
|
|
92223
92223
|
};
|
|
92224
|
-
function itemSchema$
|
|
92224
|
+
function itemSchema$6(configure) {
|
|
92225
92225
|
const LocaleMd = LocaleMarkdownWithRow(configure);
|
|
92226
92226
|
const TextValue = Struct({
|
|
92227
92227
|
kind: Literal2("text"),
|
|
@@ -92250,9 +92250,9 @@ function itemSchema$4(configure) {
|
|
|
92250
92250
|
title: "ComboboxSingleRemoteOptionsStaticItem"
|
|
92251
92251
|
});
|
|
92252
92252
|
}
|
|
92253
|
-
function schema$
|
|
92253
|
+
function schema$i(configure) {
|
|
92254
92254
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
92255
|
-
const Item = itemSchema$
|
|
92255
|
+
const Item = itemSchema$6(configure);
|
|
92256
92256
|
const CelOnChange = Expression({
|
|
92257
92257
|
configure: (env) => {
|
|
92258
92258
|
configure(env);
|
|
@@ -92269,8 +92269,8 @@ function schema$g(configure) {
|
|
|
92269
92269
|
resultType: "string"
|
|
92270
92270
|
});
|
|
92271
92271
|
return Struct({
|
|
92272
|
-
type: Literal2(type$
|
|
92273
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
92272
|
+
type: Literal2(type$i),
|
|
92273
|
+
compatibilityDate: Literal2(compatibilityDate$i),
|
|
92274
92274
|
...columnFields(configure),
|
|
92275
92275
|
placeholder: optional(Locale.annotations({
|
|
92276
92276
|
title: "占位符",
|
|
@@ -92309,7 +92309,7 @@ function schema$g(configure) {
|
|
|
92309
92309
|
description: "下拉单选渲染器(远程写入·静态选项)"
|
|
92310
92310
|
});
|
|
92311
92311
|
}
|
|
92312
|
-
function toColumnDef$
|
|
92312
|
+
function toColumnDef$7(value, { getLocaleText, $cel, inheritedContext }) {
|
|
92313
92313
|
return {
|
|
92314
92314
|
header: editableHeader(getLocaleText(value.title)),
|
|
92315
92315
|
accessorFn: (row, index) => {
|
|
@@ -92331,16 +92331,16 @@ function toColumnDef$5(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
92331
92331
|
}
|
|
92332
92332
|
const __vite_glob_0_16 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
92333
92333
|
__proto__: null,
|
|
92334
|
-
compatibilityDate: compatibilityDate$
|
|
92335
|
-
itemSchema: itemSchema$
|
|
92336
|
-
metadata: metadata$
|
|
92337
|
-
schema: schema$
|
|
92338
|
-
toColumnDef: toColumnDef$
|
|
92339
|
-
type: type$
|
|
92334
|
+
compatibilityDate: compatibilityDate$i,
|
|
92335
|
+
itemSchema: itemSchema$6,
|
|
92336
|
+
metadata: metadata$i,
|
|
92337
|
+
schema: schema$i,
|
|
92338
|
+
toColumnDef: toColumnDef$7,
|
|
92339
|
+
type: type$i
|
|
92340
92340
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
92341
|
-
const type$
|
|
92342
|
-
const compatibilityDate$
|
|
92343
|
-
const metadata$
|
|
92341
|
+
const type$h = "com.shwfed.table.column.combobox-multi.remote.options-remote";
|
|
92342
|
+
const compatibilityDate$h = "2026-05-25";
|
|
92343
|
+
const metadata$h = {
|
|
92344
92344
|
name: "远程下拉多选",
|
|
92345
92345
|
icon: "fluent:cloud-arrow-down-20-regular"
|
|
92346
92346
|
};
|
|
@@ -92354,8 +92354,8 @@ const JSON_VAR = {
|
|
|
92354
92354
|
label: "HTTP 响应体",
|
|
92355
92355
|
description: "HTTP 响应体(已解析 JSON);请求失败或尚未完成时为 `null`"
|
|
92356
92356
|
};
|
|
92357
|
-
const isListType$
|
|
92358
|
-
function schema$
|
|
92357
|
+
const isListType$6 = (actual) => actual === "dyn" || actual.startsWith("list");
|
|
92358
|
+
function schema$h(configure) {
|
|
92359
92359
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
92360
92360
|
const CelRequest = Expression({
|
|
92361
92361
|
configure: (env) => {
|
|
@@ -92370,7 +92370,7 @@ function schema$f(configure) {
|
|
|
92370
92370
|
registerRowVariablesIfAbsent(env);
|
|
92371
92371
|
env.registerVariable("json", JSON_VAR.type, { description: JSON_VAR.description });
|
|
92372
92372
|
},
|
|
92373
|
-
resultType: isListType$
|
|
92373
|
+
resultType: isListType$6
|
|
92374
92374
|
});
|
|
92375
92375
|
const CelOptionValue = Expression({
|
|
92376
92376
|
configure: (env) => {
|
|
@@ -92403,8 +92403,8 @@ function schema$f(configure) {
|
|
|
92403
92403
|
resultType: "string"
|
|
92404
92404
|
});
|
|
92405
92405
|
return Struct({
|
|
92406
|
-
type: Literal2(type$
|
|
92407
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
92406
|
+
type: Literal2(type$h),
|
|
92407
|
+
compatibilityDate: Literal2(compatibilityDate$h),
|
|
92408
92408
|
...columnFields(configure),
|
|
92409
92409
|
placeholder: optional(Locale.annotations({
|
|
92410
92410
|
title: "占位符",
|
|
@@ -92455,7 +92455,7 @@ function schema$f(configure) {
|
|
|
92455
92455
|
description: "下拉多选渲染器(远程写入·远程选项)"
|
|
92456
92456
|
});
|
|
92457
92457
|
}
|
|
92458
|
-
function toColumnDef$
|
|
92458
|
+
function toColumnDef$6(value, { getLocaleText, $cel, inheritedContext }) {
|
|
92459
92459
|
return {
|
|
92460
92460
|
header: editableHeader(getLocaleText(value.title)),
|
|
92461
92461
|
accessorFn: (row, index) => {
|
|
@@ -92479,19 +92479,19 @@ const __vite_glob_0_17 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
92479
92479
|
__proto__: null,
|
|
92480
92480
|
JSON_VAR,
|
|
92481
92481
|
OPTION_VAR,
|
|
92482
|
-
compatibilityDate: compatibilityDate$
|
|
92483
|
-
metadata: metadata$
|
|
92484
|
-
schema: schema$
|
|
92485
|
-
toColumnDef: toColumnDef$
|
|
92486
|
-
type: type$
|
|
92482
|
+
compatibilityDate: compatibilityDate$h,
|
|
92483
|
+
metadata: metadata$h,
|
|
92484
|
+
schema: schema$h,
|
|
92485
|
+
toColumnDef: toColumnDef$6,
|
|
92486
|
+
type: type$h
|
|
92487
92487
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
92488
|
-
const type$
|
|
92489
|
-
const compatibilityDate$
|
|
92490
|
-
const metadata$
|
|
92488
|
+
const type$g = "com.shwfed.table.column.combobox-multi.remote.options-static";
|
|
92489
|
+
const compatibilityDate$g = "2026-05-25";
|
|
92490
|
+
const metadata$g = {
|
|
92491
92491
|
name: "下拉多选",
|
|
92492
92492
|
icon: "fluent:chevron-down-20-regular"
|
|
92493
92493
|
};
|
|
92494
|
-
function itemSchema$
|
|
92494
|
+
function itemSchema$5(configure) {
|
|
92495
92495
|
const LocaleMd = LocaleMarkdownWithRow(configure);
|
|
92496
92496
|
const TextValue = Struct({
|
|
92497
92497
|
kind: Literal2("text"),
|
|
@@ -92520,9 +92520,9 @@ function itemSchema$3(configure) {
|
|
|
92520
92520
|
title: "ComboboxMultiRemoteOptionsStaticItem"
|
|
92521
92521
|
});
|
|
92522
92522
|
}
|
|
92523
|
-
function schema$
|
|
92523
|
+
function schema$g(configure) {
|
|
92524
92524
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
92525
|
-
const Item = itemSchema$
|
|
92525
|
+
const Item = itemSchema$5(configure);
|
|
92526
92526
|
const CelOnChange = Expression({
|
|
92527
92527
|
configure: (env) => {
|
|
92528
92528
|
configure(env);
|
|
@@ -92539,8 +92539,8 @@ function schema$e(configure) {
|
|
|
92539
92539
|
resultType: "string"
|
|
92540
92540
|
});
|
|
92541
92541
|
return Struct({
|
|
92542
|
-
type: Literal2(type$
|
|
92543
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
92542
|
+
type: Literal2(type$g),
|
|
92543
|
+
compatibilityDate: Literal2(compatibilityDate$g),
|
|
92544
92544
|
...columnFields(configure),
|
|
92545
92545
|
placeholder: optional(Locale.annotations({
|
|
92546
92546
|
title: "占位符",
|
|
@@ -92579,7 +92579,7 @@ function schema$e(configure) {
|
|
|
92579
92579
|
description: "下拉多选渲染器(远程写入·静态选项)"
|
|
92580
92580
|
});
|
|
92581
92581
|
}
|
|
92582
|
-
function toColumnDef$
|
|
92582
|
+
function toColumnDef$5(value, { getLocaleText, $cel, inheritedContext }) {
|
|
92583
92583
|
return {
|
|
92584
92584
|
header: editableHeader(getLocaleText(value.title)),
|
|
92585
92585
|
accessorFn: (row, index) => {
|
|
@@ -92600,20 +92600,346 @@ function toColumnDef$3(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
92600
92600
|
};
|
|
92601
92601
|
}
|
|
92602
92602
|
const __vite_glob_0_18 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
92603
|
+
__proto__: null,
|
|
92604
|
+
compatibilityDate: compatibilityDate$g,
|
|
92605
|
+
itemSchema: itemSchema$5,
|
|
92606
|
+
metadata: metadata$g,
|
|
92607
|
+
schema: schema$g,
|
|
92608
|
+
toColumnDef: toColumnDef$5,
|
|
92609
|
+
type: type$g
|
|
92610
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
92611
|
+
const type$f = "com.shwfed.table.column.combobox-multi";
|
|
92612
|
+
const compatibilityDate$f = "2026-05-25";
|
|
92613
|
+
const metadata$f = {
|
|
92614
|
+
name: "下拉多选",
|
|
92615
|
+
icon: "fluent:chevron-down-20-regular"
|
|
92616
|
+
};
|
|
92617
|
+
function itemSchema$4(configure) {
|
|
92618
|
+
const LocaleMd = LocaleMarkdownWithRow(configure);
|
|
92619
|
+
const TextValue = Struct({
|
|
92620
|
+
kind: Literal2("text"),
|
|
92621
|
+
value: String$
|
|
92622
|
+
});
|
|
92623
|
+
const NumberValue = Struct({
|
|
92624
|
+
kind: Literal2("number"),
|
|
92625
|
+
value: Number$
|
|
92626
|
+
});
|
|
92627
|
+
const ItemValue = Union2(TextValue, NumberValue).annotations({
|
|
92628
|
+
title: "值",
|
|
92629
|
+
description: "选项绑定的值,可以是文本或数字"
|
|
92630
|
+
});
|
|
92631
|
+
return Struct({
|
|
92632
|
+
id: UUID.annotations({ description: "选项唯一标识,用于稳定的 v-for key" }),
|
|
92633
|
+
label: LocaleMd.annotations({
|
|
92634
|
+
title: "标签",
|
|
92635
|
+
description: "选项展示的本地化文本,支持 Markdown 与 `{{ row.foo }}` / `{{ form.bar }}` 插值"
|
|
92636
|
+
}),
|
|
92637
|
+
value: ItemValue,
|
|
92638
|
+
tooltip: optional(LocaleMd.annotations({
|
|
92639
|
+
title: "提示",
|
|
92640
|
+
description: "鼠标悬停在选项上时展示的本地化提示,支持 Markdown"
|
|
92641
|
+
}))
|
|
92642
|
+
}).annotations({
|
|
92643
|
+
title: "ComboboxMultiItem"
|
|
92644
|
+
});
|
|
92645
|
+
}
|
|
92646
|
+
function schema$f(configure) {
|
|
92647
|
+
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
92648
|
+
const Item = itemSchema$4(configure);
|
|
92649
|
+
return Struct({
|
|
92650
|
+
type: Literal2(type$f),
|
|
92651
|
+
compatibilityDate: Literal2(compatibilityDate$f),
|
|
92652
|
+
...editableColumnFields(),
|
|
92653
|
+
placeholder: optional(Locale.annotations({
|
|
92654
|
+
title: "占位符",
|
|
92655
|
+
description: "未选中任何选项时输入框中的占位文本"
|
|
92656
|
+
})),
|
|
92657
|
+
hidden: optional(CelBool.annotations({
|
|
92658
|
+
title: "隐藏条件",
|
|
92659
|
+
description: "返回 `true` 时该行的下拉框不渲染(其余行不受影响)"
|
|
92660
|
+
})),
|
|
92661
|
+
disabled: optional(CelBool.annotations({
|
|
92662
|
+
title: "禁用条件",
|
|
92663
|
+
description: "返回 `true` 时下拉框仍然渲染但不可选择"
|
|
92664
|
+
})),
|
|
92665
|
+
readonly: optional(CelBool.annotations({
|
|
92666
|
+
title: "只读条件",
|
|
92667
|
+
description: "返回 `true` 时仅以纯文本展示当前已选项的标签"
|
|
92668
|
+
})),
|
|
92669
|
+
derived: derivedRowField(configure, "dyn"),
|
|
92670
|
+
items: optionalWith(Array$(Item).annotations({
|
|
92671
|
+
title: "选项",
|
|
92672
|
+
description: "下拉框可选项列表"
|
|
92673
|
+
}), { default: () => [] })
|
|
92674
|
+
}).annotations({ title: "ComboboxMultiRenderer", description: "下拉多选渲染器(可编辑)" });
|
|
92675
|
+
}
|
|
92676
|
+
function toColumnDef$4(value, { getLocaleText }) {
|
|
92677
|
+
return {
|
|
92678
|
+
header: editableHeader(getLocaleText(value.title)),
|
|
92679
|
+
// `binding` is a dot-prop path; the cell renderer reads through the same
|
|
92680
|
+
// path it writes to. The bound value is an array of selected item
|
|
92681
|
+
// `value`s; sorting falls back to that raw array (basic comparator).
|
|
92682
|
+
accessorFn: (row) => {
|
|
92683
|
+
if (!row || typeof row !== "object") return void 0;
|
|
92684
|
+
return getProperty(row, value.binding);
|
|
92685
|
+
},
|
|
92686
|
+
enableSorting: value.enableSorting ?? false,
|
|
92687
|
+
sortingFn: "basic",
|
|
92688
|
+
size: value.size,
|
|
92689
|
+
meta: {
|
|
92690
|
+
grow: value.grow ?? false,
|
|
92691
|
+
tooltip: getLocaleText(value.tooltip)
|
|
92692
|
+
}
|
|
92693
|
+
};
|
|
92694
|
+
}
|
|
92695
|
+
const __vite_glob_0_19 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
92696
|
+
__proto__: null,
|
|
92697
|
+
compatibilityDate: compatibilityDate$f,
|
|
92698
|
+
itemSchema: itemSchema$4,
|
|
92699
|
+
metadata: metadata$f,
|
|
92700
|
+
schema: schema$f,
|
|
92701
|
+
toColumnDef: toColumnDef$4,
|
|
92702
|
+
type: type$f
|
|
92703
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
92704
|
+
const type$e = "com.shwfed.table.column.combobox-multi.remote";
|
|
92705
|
+
const compatibilityDate$e = "2026-05-26";
|
|
92706
|
+
const metadata$e = {
|
|
92707
|
+
name: "多选(远程)",
|
|
92708
|
+
icon: "fluent:cloud-arrow-up-20-regular"
|
|
92709
|
+
};
|
|
92710
|
+
const isListType$5 = (actual) => actual === "dyn" || actual.startsWith("list");
|
|
92711
|
+
function itemSchema$3(configure) {
|
|
92712
|
+
const LocaleMd = LocaleMarkdownWithRow(configure);
|
|
92713
|
+
const TextValue = Struct({
|
|
92714
|
+
kind: Literal2("text"),
|
|
92715
|
+
value: String$
|
|
92716
|
+
});
|
|
92717
|
+
const NumberValue = Struct({
|
|
92718
|
+
kind: Literal2("number"),
|
|
92719
|
+
value: Number$
|
|
92720
|
+
});
|
|
92721
|
+
const ItemValue = Union2(TextValue, NumberValue).annotations({
|
|
92722
|
+
title: "值",
|
|
92723
|
+
description: "选项绑定的值,可以是文本或数字"
|
|
92724
|
+
});
|
|
92725
|
+
return Struct({
|
|
92726
|
+
id: UUID.annotations({ description: "选项唯一标识,用于稳定的 v-for key" }),
|
|
92727
|
+
label: LocaleMd.annotations({
|
|
92728
|
+
title: "标签",
|
|
92729
|
+
description: "选项展示的本地化文本,支持 Markdown 与 `{{ row.foo }}` / `{{ form.bar }}` 插值"
|
|
92730
|
+
}),
|
|
92731
|
+
value: ItemValue,
|
|
92732
|
+
tooltip: optional(LocaleMd.annotations({
|
|
92733
|
+
title: "提示",
|
|
92734
|
+
description: "鼠标悬停在选项上时展示的本地化提示,支持 Markdown"
|
|
92735
|
+
}))
|
|
92736
|
+
}).annotations({
|
|
92737
|
+
title: "ComboboxMultiRemoteItem"
|
|
92738
|
+
});
|
|
92739
|
+
}
|
|
92740
|
+
function remoteOptionsSchema$3(configure) {
|
|
92741
|
+
const CelRequest = Expression({
|
|
92742
|
+
configure: (env) => {
|
|
92743
|
+
configure(env);
|
|
92744
|
+
registerRowVariablesIfAbsent(env);
|
|
92745
|
+
},
|
|
92746
|
+
resultType: "HttpRequest"
|
|
92747
|
+
});
|
|
92748
|
+
const CelOptions = Expression({
|
|
92749
|
+
configure: (env) => {
|
|
92750
|
+
configure(env);
|
|
92751
|
+
registerRowVariablesIfAbsent(env);
|
|
92752
|
+
env.registerVariable("json", "dyn", { description: "HTTP 响应体(已解析 JSON);请求失败或尚未完成时为 `null`" });
|
|
92753
|
+
},
|
|
92754
|
+
resultType: isListType$5
|
|
92755
|
+
});
|
|
92756
|
+
const CelOptionValue = Expression({
|
|
92757
|
+
configure: (env) => {
|
|
92758
|
+
configure(env);
|
|
92759
|
+
registerRowVariablesIfAbsent(env);
|
|
92760
|
+
env.registerVariable("option", "dyn", { description: "`选项` 表达式产出的数组中迭代到的单个元素" });
|
|
92761
|
+
},
|
|
92762
|
+
resultType: "dyn"
|
|
92763
|
+
});
|
|
92764
|
+
const LocaleOptionLabel = LocaleMarkdown({
|
|
92765
|
+
configure: (env) => {
|
|
92766
|
+
configure(env);
|
|
92767
|
+
registerRowVariablesIfAbsent(env);
|
|
92768
|
+
env.registerVariable("option", "dyn", { description: "`选项` 表达式产出的数组中迭代到的单个元素" });
|
|
92769
|
+
}
|
|
92770
|
+
});
|
|
92771
|
+
return Struct({
|
|
92772
|
+
kind: Literal2("remote"),
|
|
92773
|
+
request: CelRequest.annotations({
|
|
92774
|
+
title: "请求",
|
|
92775
|
+
description: "返回 `HttpRequest` 的 CEL 表达式;可访问 `row` 与 `index`。相同签名的请求会在该表格内自动去重"
|
|
92776
|
+
}),
|
|
92777
|
+
options: CelOptions.annotations({
|
|
92778
|
+
title: "选项",
|
|
92779
|
+
description: "从 HTTP 响应体提取选项数组的 CEL 表达式;可访问 `row`、`index` 与 `json`。例:`json.data`"
|
|
92780
|
+
}),
|
|
92781
|
+
optionValue: optionalWith(CelOptionValue.annotations({
|
|
92782
|
+
title: "选项值",
|
|
92783
|
+
description: "从当前 `option` 提取写入值的 CEL;例:`option.value`"
|
|
92784
|
+
}), { default: () => "option" }),
|
|
92785
|
+
optionLabel: optionalWith(LocaleOptionLabel.annotations({
|
|
92786
|
+
title: "选项标签",
|
|
92787
|
+
description: "每个选项展示的本地化文本,支持 `{{ string(option.foo) }}` 插值"
|
|
92788
|
+
}), { default: () => [{ locale: "zh", message: "" }] })
|
|
92789
|
+
}).annotations({ title: "ComboboxMultiRemoteOptionsRemote", description: "远程加载的选项列表" });
|
|
92790
|
+
}
|
|
92791
|
+
function optionsSchema$3(configure) {
|
|
92792
|
+
const Item = itemSchema$3(configure);
|
|
92793
|
+
const StaticSpec = Struct({
|
|
92794
|
+
kind: Literal2("static"),
|
|
92795
|
+
items: optionalWith(Array$(Item).annotations({
|
|
92796
|
+
title: "选项",
|
|
92797
|
+
description: "下拉框可选项列表"
|
|
92798
|
+
}), { default: () => [] })
|
|
92799
|
+
}).annotations({ title: "ComboboxMultiRemoteOptionsStatic", description: "静态配置的选项列表" });
|
|
92800
|
+
const RemoteSpec = remoteOptionsSchema$3(configure);
|
|
92801
|
+
return Union2(StaticSpec, RemoteSpec).annotations({
|
|
92802
|
+
title: "选项来源",
|
|
92803
|
+
description: '选项可以是静态配置(`kind: "static"`)或由远程接口加载(`kind: "remote"`)'
|
|
92804
|
+
});
|
|
92805
|
+
}
|
|
92806
|
+
function schema$e(configure) {
|
|
92807
|
+
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
92808
|
+
const Options = optionsSchema$3(configure);
|
|
92809
|
+
const CelOnChange = Expression({
|
|
92810
|
+
configure: (env) => {
|
|
92811
|
+
configure(env);
|
|
92812
|
+
registerRowVariablesIfAbsent(env);
|
|
92813
|
+
env.registerVariable("value", "dyn", { description: "用户当前选中项 `value` 组成的数组;清空时为空数组 `[]`" });
|
|
92814
|
+
},
|
|
92815
|
+
resultType: "HttpRequest"
|
|
92816
|
+
});
|
|
92817
|
+
const CelMessage = Expression({
|
|
92818
|
+
configure: (env) => {
|
|
92819
|
+
configure(env);
|
|
92820
|
+
env.registerVariable("json", "dyn", { description: "HTTP 响应体(已解析 JSON)" });
|
|
92821
|
+
},
|
|
92822
|
+
resultType: "string"
|
|
92823
|
+
});
|
|
92824
|
+
return Struct({
|
|
92825
|
+
type: Literal2(type$e),
|
|
92826
|
+
compatibilityDate: Literal2(compatibilityDate$e),
|
|
92827
|
+
...columnFields(configure),
|
|
92828
|
+
placeholder: optional(Locale.annotations({
|
|
92829
|
+
title: "占位符",
|
|
92830
|
+
description: "未选中任何选项时输入框中的占位文本"
|
|
92831
|
+
})),
|
|
92832
|
+
hidden: optional(CelBool.annotations({
|
|
92833
|
+
title: "隐藏条件",
|
|
92834
|
+
description: "返回 `true` 时该行的下拉框不渲染(其余行不受影响)"
|
|
92835
|
+
})),
|
|
92836
|
+
disabled: optional(CelBool.annotations({
|
|
92837
|
+
title: "禁用条件",
|
|
92838
|
+
description: "返回 `true` 时下拉框仍然渲染但不可选择"
|
|
92839
|
+
})),
|
|
92840
|
+
readonly: optional(CelBool.annotations({
|
|
92841
|
+
title: "只读条件",
|
|
92842
|
+
description: "返回 `true` 时仅以纯文本展示当前已选项的标签"
|
|
92843
|
+
})),
|
|
92844
|
+
options: optionalWith(Options, {
|
|
92845
|
+
default: () => ({ kind: "static", items: [] })
|
|
92846
|
+
}),
|
|
92847
|
+
onChange: optional(CelOnChange.annotations({
|
|
92848
|
+
title: "切换请求",
|
|
92849
|
+
description: "用户选择后立即求值并发起的 HTTP 请求;`value` 为新数组。未配置时下拉框只读"
|
|
92850
|
+
})),
|
|
92851
|
+
successMessage: optional(CelMessage.annotations({
|
|
92852
|
+
title: "成功消息",
|
|
92853
|
+
description: "请求成功后弹出的 toast 内容;未配置则静默"
|
|
92854
|
+
})),
|
|
92855
|
+
triggers: optional(Triggers.annotations({
|
|
92856
|
+
title: "成功后触发",
|
|
92857
|
+
description: "请求成功后按列表顺序冒泡的操作请求;未配置则什么都不做"
|
|
92858
|
+
}))
|
|
92859
|
+
}).annotations({
|
|
92860
|
+
title: "ComboboxMultiRemoteRenderer",
|
|
92861
|
+
description: "下拉多选渲染器(远程写入)"
|
|
92862
|
+
});
|
|
92863
|
+
}
|
|
92864
|
+
const migrateFrom$3 = [
|
|
92865
|
+
{ type: "com.shwfed.table.column.combobox-multi.remote.options-static", compatibilityDate: "2026-05-25" },
|
|
92866
|
+
{ type: "com.shwfed.table.column.combobox-multi.remote.options-remote", compatibilityDate: "2026-05-25" }
|
|
92867
|
+
];
|
|
92868
|
+
const migrate$3 = (prev) => try_({
|
|
92869
|
+
try: () => {
|
|
92870
|
+
if (!prev || typeof prev !== "object") {
|
|
92871
|
+
throw new Error("下拉多选(远程写入)迁移失败:原值不是对象");
|
|
92872
|
+
}
|
|
92873
|
+
const src = prev;
|
|
92874
|
+
const srcType = src.type;
|
|
92875
|
+
if (srcType === "com.shwfed.table.column.combobox-multi.remote.options-static") {
|
|
92876
|
+
const { items: items2, type: _t, compatibilityDate: _c, ...rest } = src;
|
|
92877
|
+
const itemsArr = Array.isArray(items2) ? items2 : [];
|
|
92878
|
+
return {
|
|
92879
|
+
...rest,
|
|
92880
|
+
type: type$e,
|
|
92881
|
+
compatibilityDate: compatibilityDate$e,
|
|
92882
|
+
options: { kind: "static", items: itemsArr }
|
|
92883
|
+
};
|
|
92884
|
+
}
|
|
92885
|
+
if (srcType === "com.shwfed.table.column.combobox-multi.remote.options-remote") {
|
|
92886
|
+
const { request, options, optionValue, optionLabel, type: _t, compatibilityDate: _c, ...rest } = src;
|
|
92887
|
+
const remote = { kind: "remote" };
|
|
92888
|
+
if (typeof request === "string") remote.request = request;
|
|
92889
|
+
if (typeof options === "string") remote.options = options;
|
|
92890
|
+
if (typeof optionValue === "string") remote.optionValue = optionValue;
|
|
92891
|
+
if (Array.isArray(optionLabel)) remote.optionLabel = optionLabel;
|
|
92892
|
+
return {
|
|
92893
|
+
...rest,
|
|
92894
|
+
type: type$e,
|
|
92895
|
+
compatibilityDate: compatibilityDate$e,
|
|
92896
|
+
options: remote
|
|
92897
|
+
};
|
|
92898
|
+
}
|
|
92899
|
+
throw new Error(`下拉多选(远程写入)迁移失败:未识别的来源类型 ${String(srcType)}`);
|
|
92900
|
+
},
|
|
92901
|
+
catch: (e) => e instanceof Error ? e : new Error(String(e))
|
|
92902
|
+
});
|
|
92903
|
+
function toColumnDef$3(value, { getLocaleText, $cel, inheritedContext }) {
|
|
92904
|
+
return {
|
|
92905
|
+
header: editableHeader(getLocaleText(value.title)),
|
|
92906
|
+
accessorFn: (row, index) => {
|
|
92907
|
+
try {
|
|
92908
|
+
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
92909
|
+
} catch (e) {
|
|
92910
|
+
console.error("[shwfed-table] combobox-multi.remote accessor failed", e);
|
|
92911
|
+
return void 0;
|
|
92912
|
+
}
|
|
92913
|
+
},
|
|
92914
|
+
enableSorting: value.enableSorting ?? false,
|
|
92915
|
+
sortingFn: "basic",
|
|
92916
|
+
size: value.size,
|
|
92917
|
+
meta: {
|
|
92918
|
+
grow: value.grow ?? false,
|
|
92919
|
+
tooltip: getLocaleText(value.tooltip)
|
|
92920
|
+
}
|
|
92921
|
+
};
|
|
92922
|
+
}
|
|
92923
|
+
const __vite_glob_0_20$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
92603
92924
|
__proto__: null,
|
|
92604
92925
|
compatibilityDate: compatibilityDate$e,
|
|
92605
92926
|
itemSchema: itemSchema$3,
|
|
92606
92927
|
metadata: metadata$e,
|
|
92928
|
+
migrate: migrate$3,
|
|
92929
|
+
migrateFrom: migrateFrom$3,
|
|
92930
|
+
optionsSchema: optionsSchema$3,
|
|
92931
|
+
remoteOptionsSchema: remoteOptionsSchema$3,
|
|
92607
92932
|
schema: schema$e,
|
|
92608
92933
|
toColumnDef: toColumnDef$3,
|
|
92609
92934
|
type: type$e
|
|
92610
92935
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
92611
92936
|
const type$d = "com.shwfed.table.column.combobox-multi";
|
|
92612
|
-
const compatibilityDate$d = "2026-05-
|
|
92937
|
+
const compatibilityDate$d = "2026-05-26";
|
|
92613
92938
|
const metadata$d = {
|
|
92614
|
-
name: "
|
|
92939
|
+
name: "多选",
|
|
92615
92940
|
icon: "fluent:chevron-down-20-regular"
|
|
92616
92941
|
};
|
|
92942
|
+
const isListType$4 = (actual) => actual === "dyn" || actual.startsWith("list");
|
|
92617
92943
|
function itemSchema$2(configure) {
|
|
92618
92944
|
const LocaleMd = LocaleMarkdownWithRow(configure);
|
|
92619
92945
|
const TextValue = Struct({
|
|
@@ -92643,9 +92969,75 @@ function itemSchema$2(configure) {
|
|
|
92643
92969
|
title: "ComboboxMultiItem"
|
|
92644
92970
|
});
|
|
92645
92971
|
}
|
|
92972
|
+
function remoteOptionsSchema$2(configure) {
|
|
92973
|
+
const CelRequest = Expression({
|
|
92974
|
+
configure: (env) => {
|
|
92975
|
+
configure(env);
|
|
92976
|
+
registerRowVariablesIfAbsent(env);
|
|
92977
|
+
},
|
|
92978
|
+
resultType: "HttpRequest"
|
|
92979
|
+
});
|
|
92980
|
+
const CelOptions = Expression({
|
|
92981
|
+
configure: (env) => {
|
|
92982
|
+
configure(env);
|
|
92983
|
+
registerRowVariablesIfAbsent(env);
|
|
92984
|
+
env.registerVariable("json", "dyn", { description: "HTTP 响应体(已解析 JSON);请求失败或尚未完成时为 `null`" });
|
|
92985
|
+
},
|
|
92986
|
+
resultType: isListType$4
|
|
92987
|
+
});
|
|
92988
|
+
const CelOptionValue = Expression({
|
|
92989
|
+
configure: (env) => {
|
|
92990
|
+
configure(env);
|
|
92991
|
+
registerRowVariablesIfAbsent(env);
|
|
92992
|
+
env.registerVariable("option", "dyn", { description: "`选项` 表达式产出的数组中迭代到的单个元素" });
|
|
92993
|
+
},
|
|
92994
|
+
resultType: "dyn"
|
|
92995
|
+
});
|
|
92996
|
+
const LocaleOptionLabel = LocaleMarkdown({
|
|
92997
|
+
configure: (env) => {
|
|
92998
|
+
configure(env);
|
|
92999
|
+
registerRowVariablesIfAbsent(env);
|
|
93000
|
+
env.registerVariable("option", "dyn", { description: "`选项` 表达式产出的数组中迭代到的单个元素" });
|
|
93001
|
+
}
|
|
93002
|
+
});
|
|
93003
|
+
return Struct({
|
|
93004
|
+
kind: Literal2("remote"),
|
|
93005
|
+
request: CelRequest.annotations({
|
|
93006
|
+
title: "请求",
|
|
93007
|
+
description: "返回 `HttpRequest` 的 CEL 表达式;可访问 `row` 与 `index`。相同签名的请求会在该表格内自动去重"
|
|
93008
|
+
}),
|
|
93009
|
+
options: CelOptions.annotations({
|
|
93010
|
+
title: "选项",
|
|
93011
|
+
description: "从 HTTP 响应体提取选项数组的 CEL 表达式;可访问 `row`、`index` 与 `json`。例:`json.data`"
|
|
93012
|
+
}),
|
|
93013
|
+
optionValue: optionalWith(CelOptionValue.annotations({
|
|
93014
|
+
title: "选项值",
|
|
93015
|
+
description: "从当前 `option` 提取写入值的 CEL;例:`option.value`"
|
|
93016
|
+
}), { default: () => "option" }),
|
|
93017
|
+
optionLabel: optionalWith(LocaleOptionLabel.annotations({
|
|
93018
|
+
title: "选项标签",
|
|
93019
|
+
description: "每个选项展示的本地化文本,支持 `{{ string(option.foo) }}` 插值"
|
|
93020
|
+
}), { default: () => [{ locale: "zh", message: "" }] })
|
|
93021
|
+
}).annotations({ title: "ComboboxMultiOptionsRemote", description: "远程加载的选项列表" });
|
|
93022
|
+
}
|
|
93023
|
+
function optionsSchema$2(configure) {
|
|
93024
|
+
const Item = itemSchema$2(configure);
|
|
93025
|
+
const StaticSpec = Struct({
|
|
93026
|
+
kind: Literal2("static"),
|
|
93027
|
+
items: optionalWith(Array$(Item).annotations({
|
|
93028
|
+
title: "选项",
|
|
93029
|
+
description: "下拉框可选项列表"
|
|
93030
|
+
}), { default: () => [] })
|
|
93031
|
+
}).annotations({ title: "ComboboxMultiOptionsStatic", description: "静态配置的选项列表" });
|
|
93032
|
+
const RemoteSpec = remoteOptionsSchema$2(configure);
|
|
93033
|
+
return Union2(StaticSpec, RemoteSpec).annotations({
|
|
93034
|
+
title: "选项来源",
|
|
93035
|
+
description: '选项可以是静态配置(`kind: "static"`)或由远程接口加载(`kind: "remote"`)'
|
|
93036
|
+
});
|
|
93037
|
+
}
|
|
92646
93038
|
function schema$d(configure) {
|
|
92647
93039
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
92648
|
-
const
|
|
93040
|
+
const Options = optionsSchema$2(configure);
|
|
92649
93041
|
return Struct({
|
|
92650
93042
|
type: Literal2(type$d),
|
|
92651
93043
|
compatibilityDate: Literal2(compatibilityDate$d),
|
|
@@ -92667,18 +93059,33 @@ function schema$d(configure) {
|
|
|
92667
93059
|
description: "返回 `true` 时仅以纯文本展示当前已选项的标签"
|
|
92668
93060
|
})),
|
|
92669
93061
|
derived: derivedRowField(configure, "dyn"),
|
|
92670
|
-
|
|
92671
|
-
|
|
92672
|
-
|
|
92673
|
-
}), { default: () => [] })
|
|
93062
|
+
options: optionalWith(Options, {
|
|
93063
|
+
default: () => ({ kind: "static", items: [] })
|
|
93064
|
+
})
|
|
92674
93065
|
}).annotations({ title: "ComboboxMultiRenderer", description: "下拉多选渲染器(可编辑)" });
|
|
92675
93066
|
}
|
|
93067
|
+
const migrateFrom$2 = [
|
|
93068
|
+
{ type: "com.shwfed.table.column.combobox-multi", compatibilityDate: "2026-05-25" }
|
|
93069
|
+
];
|
|
93070
|
+
const migrate$2 = (prev) => try_({
|
|
93071
|
+
try: () => {
|
|
93072
|
+
if (!prev || typeof prev !== "object") {
|
|
93073
|
+
throw new Error("下拉多选迁移失败:原值不是对象");
|
|
93074
|
+
}
|
|
93075
|
+
const { items: items2, ...rest } = prev;
|
|
93076
|
+
const itemsArr = Array.isArray(items2) ? items2 : [];
|
|
93077
|
+
return {
|
|
93078
|
+
...rest,
|
|
93079
|
+
type: type$d,
|
|
93080
|
+
compatibilityDate: compatibilityDate$d,
|
|
93081
|
+
options: { kind: "static", items: itemsArr }
|
|
93082
|
+
};
|
|
93083
|
+
},
|
|
93084
|
+
catch: (e) => e instanceof Error ? e : new Error(String(e))
|
|
93085
|
+
});
|
|
92676
93086
|
function toColumnDef$2(value, { getLocaleText }) {
|
|
92677
93087
|
return {
|
|
92678
93088
|
header: editableHeader(getLocaleText(value.title)),
|
|
92679
|
-
// `binding` is a dot-prop path; the cell renderer reads through the same
|
|
92680
|
-
// path it writes to. The bound value is an array of selected item
|
|
92681
|
-
// `value`s; sorting falls back to that raw array (basic comparator).
|
|
92682
93089
|
accessorFn: (row) => {
|
|
92683
93090
|
if (!row || typeof row !== "object") return void 0;
|
|
92684
93091
|
return getProperty(row, value.binding);
|
|
@@ -92692,19 +93099,23 @@ function toColumnDef$2(value, { getLocaleText }) {
|
|
|
92692
93099
|
}
|
|
92693
93100
|
};
|
|
92694
93101
|
}
|
|
92695
|
-
const
|
|
93102
|
+
const __vite_glob_0_21$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
92696
93103
|
__proto__: null,
|
|
92697
93104
|
compatibilityDate: compatibilityDate$d,
|
|
92698
93105
|
itemSchema: itemSchema$2,
|
|
92699
93106
|
metadata: metadata$d,
|
|
93107
|
+
migrate: migrate$2,
|
|
93108
|
+
migrateFrom: migrateFrom$2,
|
|
93109
|
+
optionsSchema: optionsSchema$2,
|
|
93110
|
+
remoteOptionsSchema: remoteOptionsSchema$2,
|
|
92700
93111
|
schema: schema$d,
|
|
92701
93112
|
toColumnDef: toColumnDef$2,
|
|
92702
93113
|
type: type$d
|
|
92703
93114
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
92704
|
-
const type$c = "com.shwfed.table.column.combobox-
|
|
93115
|
+
const type$c = "com.shwfed.table.column.combobox-single.remote";
|
|
92705
93116
|
const compatibilityDate$c = "2026-05-26";
|
|
92706
93117
|
const metadata$c = {
|
|
92707
|
-
name: "
|
|
93118
|
+
name: "单选(远程)",
|
|
92708
93119
|
icon: "fluent:cloud-arrow-up-20-regular"
|
|
92709
93120
|
};
|
|
92710
93121
|
const isListType$3 = (actual) => actual === "dyn" || actual.startsWith("list");
|
|
@@ -92734,11 +93145,10 @@ function itemSchema$1(configure) {
|
|
|
92734
93145
|
description: "鼠标悬停在选项上时展示的本地化提示,支持 Markdown"
|
|
92735
93146
|
}))
|
|
92736
93147
|
}).annotations({
|
|
92737
|
-
title: "
|
|
93148
|
+
title: "ComboboxSingleRemoteItem"
|
|
92738
93149
|
});
|
|
92739
93150
|
}
|
|
92740
|
-
function
|
|
92741
|
-
const Item = itemSchema$1(configure);
|
|
93151
|
+
function remoteOptionsSchema$1(configure) {
|
|
92742
93152
|
const CelRequest = Expression({
|
|
92743
93153
|
configure: (env) => {
|
|
92744
93154
|
configure(env);
|
|
@@ -92769,14 +93179,7 @@ function optionsSchema$1(configure) {
|
|
|
92769
93179
|
env.registerVariable("option", "dyn", { description: "`选项` 表达式产出的数组中迭代到的单个元素" });
|
|
92770
93180
|
}
|
|
92771
93181
|
});
|
|
92772
|
-
|
|
92773
|
-
kind: Literal2("static"),
|
|
92774
|
-
items: optionalWith(Array$(Item).annotations({
|
|
92775
|
-
title: "选项",
|
|
92776
|
-
description: "下拉框可选项列表"
|
|
92777
|
-
}), { default: () => [] })
|
|
92778
|
-
}).annotations({ title: "ComboboxMultiRemoteOptionsStatic", description: "静态配置的选项列表" });
|
|
92779
|
-
const RemoteSpec = Struct({
|
|
93182
|
+
return Struct({
|
|
92780
93183
|
kind: Literal2("remote"),
|
|
92781
93184
|
request: CelRequest.annotations({
|
|
92782
93185
|
title: "请求",
|
|
@@ -92794,7 +93197,18 @@ function optionsSchema$1(configure) {
|
|
|
92794
93197
|
title: "选项标签",
|
|
92795
93198
|
description: "每个选项展示的本地化文本,支持 `{{ string(option.foo) }}` 插值"
|
|
92796
93199
|
}), { default: () => [{ locale: "zh", message: "" }] })
|
|
92797
|
-
}).annotations({ title: "
|
|
93200
|
+
}).annotations({ title: "ComboboxSingleRemoteOptionsRemote", description: "远程加载的选项列表" });
|
|
93201
|
+
}
|
|
93202
|
+
function optionsSchema$1(configure) {
|
|
93203
|
+
const Item = itemSchema$1(configure);
|
|
93204
|
+
const StaticSpec = Struct({
|
|
93205
|
+
kind: Literal2("static"),
|
|
93206
|
+
items: optionalWith(Array$(Item).annotations({
|
|
93207
|
+
title: "选项",
|
|
93208
|
+
description: "下拉框可选项列表"
|
|
93209
|
+
}), { default: () => [] })
|
|
93210
|
+
}).annotations({ title: "ComboboxSingleRemoteOptionsStatic", description: "静态配置的选项列表" });
|
|
93211
|
+
const RemoteSpec = remoteOptionsSchema$1(configure);
|
|
92798
93212
|
return Union2(StaticSpec, RemoteSpec).annotations({
|
|
92799
93213
|
title: "选项来源",
|
|
92800
93214
|
description: '选项可以是静态配置(`kind: "static"`)或由远程接口加载(`kind: "remote"`)'
|
|
@@ -92807,7 +93221,7 @@ function schema$c(configure) {
|
|
|
92807
93221
|
configure: (env) => {
|
|
92808
93222
|
configure(env);
|
|
92809
93223
|
registerRowVariablesIfAbsent(env);
|
|
92810
|
-
env.registerVariable("value", "dyn", { description: "
|
|
93224
|
+
env.registerVariable("value", "dyn", { description: "用户选中的新值(与所选项的 `value` 一致;清空时为 `null`)" });
|
|
92811
93225
|
},
|
|
92812
93226
|
resultType: "HttpRequest"
|
|
92813
93227
|
});
|
|
@@ -92836,14 +93250,14 @@ function schema$c(configure) {
|
|
|
92836
93250
|
})),
|
|
92837
93251
|
readonly: optional(CelBool.annotations({
|
|
92838
93252
|
title: "只读条件",
|
|
92839
|
-
description: "返回 `true`
|
|
93253
|
+
description: "返回 `true` 时仅以纯文本展示当前选项的标签"
|
|
92840
93254
|
})),
|
|
92841
93255
|
options: optionalWith(Options, {
|
|
92842
93256
|
default: () => ({ kind: "static", items: [] })
|
|
92843
93257
|
}),
|
|
92844
93258
|
onChange: optional(CelOnChange.annotations({
|
|
92845
93259
|
title: "切换请求",
|
|
92846
|
-
description: "用户选择后立即求值并发起的 HTTP 请求;`value`
|
|
93260
|
+
description: "用户选择后立即求值并发起的 HTTP 请求;`value` 为新值。未配置时下拉框只读"
|
|
92847
93261
|
})),
|
|
92848
93262
|
successMessage: optional(CelMessage.annotations({
|
|
92849
93263
|
title: "成功消息",
|
|
@@ -92854,22 +93268,22 @@ function schema$c(configure) {
|
|
|
92854
93268
|
description: "请求成功后按列表顺序冒泡的操作请求;未配置则什么都不做"
|
|
92855
93269
|
}))
|
|
92856
93270
|
}).annotations({
|
|
92857
|
-
title: "
|
|
92858
|
-
description: "
|
|
93271
|
+
title: "ComboboxSingleRemoteRenderer",
|
|
93272
|
+
description: "下拉单选渲染器(远程写入)"
|
|
92859
93273
|
});
|
|
92860
93274
|
}
|
|
92861
93275
|
const migrateFrom$1 = [
|
|
92862
|
-
{ type: "com.shwfed.table.column.combobox-
|
|
92863
|
-
{ type: "com.shwfed.table.column.combobox-
|
|
93276
|
+
{ type: "com.shwfed.table.column.combobox-single.remote.options-static", compatibilityDate: "2026-05-24" },
|
|
93277
|
+
{ type: "com.shwfed.table.column.combobox-single.remote.options-remote", compatibilityDate: "2026-05-24" }
|
|
92864
93278
|
];
|
|
92865
93279
|
const migrate$1 = (prev) => try_({
|
|
92866
93280
|
try: () => {
|
|
92867
93281
|
if (!prev || typeof prev !== "object") {
|
|
92868
|
-
throw new Error("
|
|
93282
|
+
throw new Error("下拉单选(远程写入)迁移失败:原值不是对象");
|
|
92869
93283
|
}
|
|
92870
93284
|
const src = prev;
|
|
92871
93285
|
const srcType = src.type;
|
|
92872
|
-
if (srcType === "com.shwfed.table.column.combobox-
|
|
93286
|
+
if (srcType === "com.shwfed.table.column.combobox-single.remote.options-static") {
|
|
92873
93287
|
const { items: items2, type: _t, compatibilityDate: _c, ...rest } = src;
|
|
92874
93288
|
const itemsArr = Array.isArray(items2) ? items2 : [];
|
|
92875
93289
|
return {
|
|
@@ -92879,7 +93293,7 @@ const migrate$1 = (prev) => try_({
|
|
|
92879
93293
|
options: { kind: "static", items: itemsArr }
|
|
92880
93294
|
};
|
|
92881
93295
|
}
|
|
92882
|
-
if (srcType === "com.shwfed.table.column.combobox-
|
|
93296
|
+
if (srcType === "com.shwfed.table.column.combobox-single.remote.options-remote") {
|
|
92883
93297
|
const { request, options, optionValue, optionLabel, type: _t, compatibilityDate: _c, ...rest } = src;
|
|
92884
93298
|
const remote = { kind: "remote" };
|
|
92885
93299
|
if (typeof request === "string") remote.request = request;
|
|
@@ -92893,7 +93307,7 @@ const migrate$1 = (prev) => try_({
|
|
|
92893
93307
|
options: remote
|
|
92894
93308
|
};
|
|
92895
93309
|
}
|
|
92896
|
-
throw new Error(
|
|
93310
|
+
throw new Error(`下拉单选(远程写入)迁移失败:未识别的来源类型 ${String(srcType)}`);
|
|
92897
93311
|
},
|
|
92898
93312
|
catch: (e) => e instanceof Error ? e : new Error(String(e))
|
|
92899
93313
|
});
|
|
@@ -92904,7 +93318,7 @@ function toColumnDef$1(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
92904
93318
|
try {
|
|
92905
93319
|
return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
|
|
92906
93320
|
} catch (e) {
|
|
92907
|
-
console.error("[shwfed-table] combobox-
|
|
93321
|
+
console.error("[shwfed-table] combobox-single.remote accessor failed", e);
|
|
92908
93322
|
return void 0;
|
|
92909
93323
|
}
|
|
92910
93324
|
},
|
|
@@ -92917,7 +93331,7 @@ function toColumnDef$1(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
92917
93331
|
}
|
|
92918
93332
|
};
|
|
92919
93333
|
}
|
|
92920
|
-
const
|
|
93334
|
+
const __vite_glob_0_22$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
92921
93335
|
__proto__: null,
|
|
92922
93336
|
compatibilityDate: compatibilityDate$c,
|
|
92923
93337
|
itemSchema: itemSchema$1,
|
|
@@ -92925,14 +93339,15 @@ const __vite_glob_0_20$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
92925
93339
|
migrate: migrate$1,
|
|
92926
93340
|
migrateFrom: migrateFrom$1,
|
|
92927
93341
|
optionsSchema: optionsSchema$1,
|
|
93342
|
+
remoteOptionsSchema: remoteOptionsSchema$1,
|
|
92928
93343
|
schema: schema$c,
|
|
92929
93344
|
toColumnDef: toColumnDef$1,
|
|
92930
93345
|
type: type$c
|
|
92931
93346
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
92932
|
-
const type$b = "com.shwfed.table.column.combobox-
|
|
93347
|
+
const type$b = "com.shwfed.table.column.combobox-single";
|
|
92933
93348
|
const compatibilityDate$b = "2026-05-26";
|
|
92934
93349
|
const metadata$b = {
|
|
92935
|
-
name: "
|
|
93350
|
+
name: "单选",
|
|
92936
93351
|
icon: "fluent:chevron-down-20-regular"
|
|
92937
93352
|
};
|
|
92938
93353
|
const isListType$2 = (actual) => actual === "dyn" || actual.startsWith("list");
|
|
@@ -92962,11 +93377,10 @@ function itemSchema(configure) {
|
|
|
92962
93377
|
description: "鼠标悬停在选项上时展示的本地化提示,支持 Markdown"
|
|
92963
93378
|
}))
|
|
92964
93379
|
}).annotations({
|
|
92965
|
-
title: "
|
|
93380
|
+
title: "ComboboxSingleItem"
|
|
92966
93381
|
});
|
|
92967
93382
|
}
|
|
92968
|
-
function
|
|
92969
|
-
const Item = itemSchema(configure);
|
|
93383
|
+
function remoteOptionsSchema(configure) {
|
|
92970
93384
|
const CelRequest = Expression({
|
|
92971
93385
|
configure: (env) => {
|
|
92972
93386
|
configure(env);
|
|
@@ -92997,14 +93411,7 @@ function optionsSchema(configure) {
|
|
|
92997
93411
|
env.registerVariable("option", "dyn", { description: "`选项` 表达式产出的数组中迭代到的单个元素" });
|
|
92998
93412
|
}
|
|
92999
93413
|
});
|
|
93000
|
-
|
|
93001
|
-
kind: Literal2("static"),
|
|
93002
|
-
items: optionalWith(Array$(Item).annotations({
|
|
93003
|
-
title: "选项",
|
|
93004
|
-
description: "下拉框可选项列表"
|
|
93005
|
-
}), { default: () => [] })
|
|
93006
|
-
}).annotations({ title: "ComboboxMultiOptionsStatic", description: "静态配置的选项列表" });
|
|
93007
|
-
const RemoteSpec = Struct({
|
|
93414
|
+
return Struct({
|
|
93008
93415
|
kind: Literal2("remote"),
|
|
93009
93416
|
request: CelRequest.annotations({
|
|
93010
93417
|
title: "请求",
|
|
@@ -93022,7 +93429,18 @@ function optionsSchema(configure) {
|
|
|
93022
93429
|
title: "选项标签",
|
|
93023
93430
|
description: "每个选项展示的本地化文本,支持 `{{ string(option.foo) }}` 插值"
|
|
93024
93431
|
}), { default: () => [{ locale: "zh", message: "" }] })
|
|
93025
|
-
}).annotations({ title: "
|
|
93432
|
+
}).annotations({ title: "ComboboxSingleOptionsRemote", description: "远程加载的选项列表" });
|
|
93433
|
+
}
|
|
93434
|
+
function optionsSchema(configure) {
|
|
93435
|
+
const Item = itemSchema(configure);
|
|
93436
|
+
const StaticSpec = Struct({
|
|
93437
|
+
kind: Literal2("static"),
|
|
93438
|
+
items: optionalWith(Array$(Item).annotations({
|
|
93439
|
+
title: "选项",
|
|
93440
|
+
description: "下拉框可选项列表"
|
|
93441
|
+
}), { default: () => [] })
|
|
93442
|
+
}).annotations({ title: "ComboboxSingleOptionsStatic", description: "静态配置的选项列表" });
|
|
93443
|
+
const RemoteSpec = remoteOptionsSchema(configure);
|
|
93026
93444
|
return Union2(StaticSpec, RemoteSpec).annotations({
|
|
93027
93445
|
title: "选项来源",
|
|
93028
93446
|
description: '选项可以是静态配置(`kind: "static"`)或由远程接口加载(`kind: "remote"`)'
|
|
@@ -93049,21 +93467,21 @@ function schema$b(configure) {
|
|
|
93049
93467
|
})),
|
|
93050
93468
|
readonly: optional(CelBool.annotations({
|
|
93051
93469
|
title: "只读条件",
|
|
93052
|
-
description: "返回 `true`
|
|
93470
|
+
description: "返回 `true` 时仅以纯文本展示当前选项的标签"
|
|
93053
93471
|
})),
|
|
93054
93472
|
derived: derivedRowField(configure, "dyn"),
|
|
93055
93473
|
options: optionalWith(Options, {
|
|
93056
93474
|
default: () => ({ kind: "static", items: [] })
|
|
93057
93475
|
})
|
|
93058
|
-
}).annotations({ title: "
|
|
93476
|
+
}).annotations({ title: "ComboboxSingleRenderer", description: "下拉单选渲染器(可编辑)" });
|
|
93059
93477
|
}
|
|
93060
93478
|
const migrateFrom = [
|
|
93061
|
-
{ type: "com.shwfed.table.column.combobox-
|
|
93479
|
+
{ type: "com.shwfed.table.column.combobox-single", compatibilityDate: "2026-05-20" }
|
|
93062
93480
|
];
|
|
93063
93481
|
const migrate = (prev) => try_({
|
|
93064
93482
|
try: () => {
|
|
93065
93483
|
if (!prev || typeof prev !== "object") {
|
|
93066
|
-
throw new Error("
|
|
93484
|
+
throw new Error("下拉单选迁移失败:原值不是对象");
|
|
93067
93485
|
}
|
|
93068
93486
|
const { items: items2, ...rest } = prev;
|
|
93069
93487
|
const itemsArr = Array.isArray(items2) ? items2 : [];
|
|
@@ -93092,7 +93510,7 @@ function toColumnDef(value, { getLocaleText }) {
|
|
|
93092
93510
|
}
|
|
93093
93511
|
};
|
|
93094
93512
|
}
|
|
93095
|
-
const
|
|
93513
|
+
const __vite_glob_0_23$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
93096
93514
|
__proto__: null,
|
|
93097
93515
|
compatibilityDate: compatibilityDate$b,
|
|
93098
93516
|
itemSchema,
|
|
@@ -93100,6 +93518,7 @@ const __vite_glob_0_21$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
93100
93518
|
migrate,
|
|
93101
93519
|
migrateFrom,
|
|
93102
93520
|
optionsSchema,
|
|
93521
|
+
remoteOptionsSchema,
|
|
93103
93522
|
schema: schema$b,
|
|
93104
93523
|
toColumnDef,
|
|
93105
93524
|
type: type$b
|
|
@@ -93126,7 +93545,9 @@ const schemaModules$2 = /* @__PURE__ */ Object.assign({
|
|
|
93126
93545
|
"../columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/schema.ts": __vite_glob_0_18,
|
|
93127
93546
|
"../columns/2026-05-25/com.shwfed.table.column.combobox-multi/schema.ts": __vite_glob_0_19,
|
|
93128
93547
|
"../columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/schema.ts": __vite_glob_0_20$1,
|
|
93129
|
-
"../columns/2026-05-26/com.shwfed.table.column.combobox-multi/schema.ts": __vite_glob_0_21$1
|
|
93548
|
+
"../columns/2026-05-26/com.shwfed.table.column.combobox-multi/schema.ts": __vite_glob_0_21$1,
|
|
93549
|
+
"../columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/schema.ts": __vite_glob_0_22$1,
|
|
93550
|
+
"../columns/2026-05-26/com.shwfed.table.column.combobox-single/schema.ts": __vite_glob_0_23$1
|
|
93130
93551
|
});
|
|
93131
93552
|
const configModules$2 = /* @__PURE__ */ Object.assign({
|
|
93132
93553
|
"../columns/2026-04-14/com.shwfed.table.column.actions/config.vue": __vite_glob_2_5,
|
|
@@ -93150,7 +93571,9 @@ const configModules$2 = /* @__PURE__ */ Object.assign({
|
|
|
93150
93571
|
"../columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue": __vite_glob_2_5,
|
|
93151
93572
|
"../columns/2026-05-25/com.shwfed.table.column.combobox-multi/config.vue": __vite_glob_2_5,
|
|
93152
93573
|
"../columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue": __vite_glob_2_5,
|
|
93153
|
-
"../columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue": __vite_glob_2_5
|
|
93574
|
+
"../columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue": __vite_glob_2_5,
|
|
93575
|
+
"../columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue": __vite_glob_2_5,
|
|
93576
|
+
"../columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue": __vite_glob_2_5
|
|
93154
93577
|
});
|
|
93155
93578
|
const runtimeModules$2 = /* @__PURE__ */ Object.assign({
|
|
93156
93579
|
"../columns/2026-04-14/com.shwfed.table.column.actions/runtime.vue": __vite_glob_2_5,
|
|
@@ -93174,7 +93597,9 @@ const runtimeModules$2 = /* @__PURE__ */ Object.assign({
|
|
|
93174
93597
|
"../columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/runtime.vue": __vite_glob_2_5,
|
|
93175
93598
|
"../columns/2026-05-25/com.shwfed.table.column.combobox-multi/runtime.vue": __vite_glob_2_5,
|
|
93176
93599
|
"../columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/runtime.vue": __vite_glob_2_5,
|
|
93177
|
-
"../columns/2026-05-26/com.shwfed.table.column.combobox-multi/runtime.vue": __vite_glob_2_5
|
|
93600
|
+
"../columns/2026-05-26/com.shwfed.table.column.combobox-multi/runtime.vue": __vite_glob_2_5,
|
|
93601
|
+
"../columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/runtime.vue": __vite_glob_2_5,
|
|
93602
|
+
"../columns/2026-05-26/com.shwfed.table.column.combobox-single/runtime.vue": __vite_glob_2_5
|
|
93178
93603
|
});
|
|
93179
93604
|
const sourceKey$1 = (type2, compatibilityDate2) => `${type2}@${compatibilityDate2}`;
|
|
93180
93605
|
const registry$2 = defineRegistry({
|