@shwfed/config 2.3.11 → 2.3.12
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 +664 -525
- package/dist/module.json +1 -1
- package/dist/preview/assets/{config-DNokxY7M.js → config-B-1L3Ra-.js} +1 -1
- package/dist/preview/assets/{config-_uPI8qV-.js → config-Cf5kO84H.js} +1 -1
- package/dist/preview/assets/{config-Bp91DUdU.js → config-DTQkLHVw.js} +1 -1
- package/dist/preview/assets/{config-_msO_f2R.js → config-DqxN0Byp.js} +1 -1
- package/dist/preview/assets/{config-BZahzuEc.js → config-QUQ71Eo6.js} +1 -1
- package/dist/preview/assets/{config-BnZQO-Sp.js → config-oO93sSer.js} +1 -1
- package/dist/preview/assets/{config-Be-2ZA2R.js → config-sJ5XKUJy.js} +1 -1
- package/dist/preview/assets/{config-57-v4VXo.js → config-zCMkbPQt.js} +1 -1
- package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-BtScXbs1.js → definition.vue_vue_type_script_setup_true_lang-D-OVRv68.js} +1 -1
- package/dist/preview/assets/index-Br_eXThF.css +1 -0
- package/dist/preview/assets/index-D8QyOVfp.js +637 -0
- package/dist/preview/assets/index-b_t8yWJJ.js +1 -0
- package/dist/preview/assets/{runtime-BBms4myv.js → runtime-10_7L7Gz.js} +1 -1
- package/dist/preview/assets/{runtime-cKWSGFod.js → runtime-B2EP6060.js} +1 -1
- package/dist/preview/assets/{runtime-B9u14qqB.js → runtime-BxlgShjU.js} +1 -1
- package/dist/preview/assets/{runtime-Dk9u-Ybw.js → runtime-Cv2doZNu.js} +1 -1
- package/dist/preview/assets/{runtime-XXqIAt53.js → runtime-CzDUrqSa.js} +1 -1
- package/dist/preview/assets/{runtime-CfR7ZAND.js → runtime-DcYhXvSk.js} +1 -1
- package/dist/preview/assets/{runtime-w7V-p3t1.js → runtime-DlDhRVII.js} +1 -1
- package/dist/preview/assets/{runtime-D3EyeiyA.js → runtime-cmkN6aik.js} +1 -1
- package/dist/preview/index.html +2 -2
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +1 -1
- package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.xy/schema.d.ts +4 -0
- package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.xy/schema.js +6 -17
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +18 -18
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +18 -18
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.d.vue.ts +4 -4
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue.d.ts +4 -4
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/config.d.vue.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/config.vue.d.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.d.vue.ts +4 -4
- package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.vue.d.ts +4 -4
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.d.vue.ts +12 -12
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.vue.d.ts +12 -12
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.d.vue.ts +10 -10
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.vue.d.ts +10 -10
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/config.d.vue.ts +12 -12
- package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/config.vue.d.ts +12 -12
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +133 -0
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue +605 -0
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +133 -0
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/runtime.d.vue.ts +8 -0
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/runtime.vue +324 -0
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/runtime.vue.d.ts +8 -0
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/schema.d.ts +99 -0
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/schema.js +129 -0
- package/dist/runtime/components/form/unit-config.vue +0 -23
- package/dist/runtime/components/table/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/config.vue +5 -45
- package/dist/runtime/components/table/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/schema.d.ts +9 -2
- package/dist/runtime/components/table/schema.js +30 -14
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerDateTimePanel.d.vue.ts +1 -1
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerDateTimePanel.vue.d.ts +1 -1
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.d.vue.ts +1 -1
- package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.vue.d.ts +1 -1
- package/dist/runtime/components/ui/tree/Tree.d.vue.ts +57 -0
- package/dist/runtime/components/ui/tree/Tree.vue +325 -0
- package/dist/runtime/components/ui/tree/Tree.vue.d.ts +57 -0
- package/dist/runtime/components/ui/tree/TreeNode.d.vue.ts +53 -0
- package/dist/runtime/components/ui/tree/TreeNode.vue +299 -0
- package/dist/runtime/components/ui/tree/TreeNode.vue.d.ts +53 -0
- package/dist/runtime/components/ui/tree/index.d.ts +3 -0
- package/dist/runtime/components/ui/tree/index.js +2 -0
- package/dist/runtime/components/ui/tree/types.d.ts +120 -0
- package/dist/runtime/components/ui/tree/types.js +0 -0
- package/dist/runtime/components/ui/tree/useTreeState.d.ts +95 -0
- package/dist/runtime/components/ui/tree/useTreeState.js +369 -0
- package/dist/runtime/shims.d.ts +2 -0
- package/package.json +1 -1
- package/dist/preview/assets/index-DDbl2Atj.js +0 -1
- package/dist/preview/assets/index-DGa3Oj3y.js +0 -1075
- package/dist/preview/assets/index-mbGtsgdv.css +0 -1
- package/dist/runtime/components/form/ai/fields-button.d.vue.ts +0 -13
- package/dist/runtime/components/form/ai/fields-button.vue +0 -460
- package/dist/runtime/components/form/ai/fields-button.vue.d.ts +0 -13
- package/dist/runtime/components/form/ai/fields-task.md +0 -71
- package/dist/runtime/components/table/ai/columns-button.d.vue.ts +0 -12
- package/dist/runtime/components/table/ai/columns-button.vue +0 -492
- package/dist/runtime/components/table/ai/columns-button.vue.d.ts +0 -12
- package/dist/runtime/components/table/ai/columns-task.md +0 -53
- package/dist/runtime/components/table/ai/data-source-button.d.vue.ts +0 -20
- package/dist/runtime/components/table/ai/data-source-button.vue +0 -324
- package/dist/runtime/components/table/ai/data-source-button.vue.d.ts +0 -20
- package/dist/runtime/components/table/ai/data-source-task.md +0 -17
- package/dist/runtime/utils/ai/cel-prompt.d.ts +0 -11
- package/dist/runtime/utils/ai/cel-prompt.js +0 -27
package/dist/mcp.mjs
CHANGED
|
@@ -14094,13 +14094,13 @@ function requireDataType() {
|
|
|
14094
14094
|
}
|
|
14095
14095
|
return dataType;
|
|
14096
14096
|
}
|
|
14097
|
-
var defaults$
|
|
14097
|
+
var defaults$8 = {};
|
|
14098
14098
|
var hasRequiredDefaults;
|
|
14099
14099
|
function requireDefaults() {
|
|
14100
|
-
if (hasRequiredDefaults) return defaults$
|
|
14100
|
+
if (hasRequiredDefaults) return defaults$8;
|
|
14101
14101
|
hasRequiredDefaults = 1;
|
|
14102
|
-
Object.defineProperty(defaults$
|
|
14103
|
-
defaults$
|
|
14102
|
+
Object.defineProperty(defaults$8, "__esModule", { value: true });
|
|
14103
|
+
defaults$8.assignDefaults = void 0;
|
|
14104
14104
|
const codegen_1 = /* @__PURE__ */ requireCodegen();
|
|
14105
14105
|
const util_1 = /* @__PURE__ */ requireUtil$1();
|
|
14106
14106
|
function assignDefaults(it, ty) {
|
|
@@ -14113,7 +14113,7 @@ function requireDefaults() {
|
|
|
14113
14113
|
items2.forEach((sch, i) => assignDefault(it, i, sch.default));
|
|
14114
14114
|
}
|
|
14115
14115
|
}
|
|
14116
|
-
defaults$
|
|
14116
|
+
defaults$8.assignDefaults = assignDefaults;
|
|
14117
14117
|
function assignDefault(it, prop, defaultValue) {
|
|
14118
14118
|
const { gen: gen2, compositeRule, data, opts } = it;
|
|
14119
14119
|
if (defaultValue === void 0)
|
|
@@ -14129,7 +14129,7 @@ function requireDefaults() {
|
|
|
14129
14129
|
}
|
|
14130
14130
|
gen2.if(condition, (0, codegen_1._)`${childData} = ${(0, codegen_1.stringify)(defaultValue)}`);
|
|
14131
14131
|
}
|
|
14132
|
-
return defaults$
|
|
14132
|
+
return defaults$8;
|
|
14133
14133
|
}
|
|
14134
14134
|
var keyword = {};
|
|
14135
14135
|
var code$1 = {};
|
|
@@ -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$R = "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$R,
|
|
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$Q = {};
|
|
18520
18520
|
var hasRequiredMetadata;
|
|
18521
18521
|
function requireMetadata() {
|
|
18522
|
-
if (hasRequiredMetadata) return metadata$
|
|
18522
|
+
if (hasRequiredMetadata) return metadata$Q;
|
|
18523
18523
|
hasRequiredMetadata = 1;
|
|
18524
|
-
Object.defineProperty(metadata$
|
|
18525
|
-
metadata$
|
|
18526
|
-
metadata$
|
|
18524
|
+
Object.defineProperty(metadata$Q, "__esModule", { value: true });
|
|
18525
|
+
metadata$Q.contentVocabulary = metadata$Q.metadataVocabulary = void 0;
|
|
18526
|
+
metadata$Q.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$Q.contentVocabulary = [
|
|
18536
18536
|
"contentMediaType",
|
|
18537
18537
|
"contentEncoding",
|
|
18538
18538
|
"contentSchema"
|
|
18539
18539
|
];
|
|
18540
|
-
return metadata$
|
|
18540
|
+
return metadata$Q;
|
|
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$Q = ["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$Q,
|
|
18694
18694
|
properties,
|
|
18695
18695
|
"default": true
|
|
18696
18696
|
};
|
|
@@ -81617,13 +81617,13 @@ function md(...args2) {
|
|
|
81617
81617
|
const indent = (original.startsWith("\n") ? original.slice(1) : original).split("\n", 1)[0]?.match(/^(\s*)/)?.[1]?.length ?? 0;
|
|
81618
81618
|
return original.trim().replaceAll("\\`", "`").split("\n").map((line) => line.replace(new RegExp(`^${String.raw`\s`.repeat(indent)}`), "")).join("\n");
|
|
81619
81619
|
}
|
|
81620
|
-
const type$
|
|
81621
|
-
const compatibilityDate$
|
|
81622
|
-
const metadata$
|
|
81620
|
+
const type$P = "com.shwfed.actions.button.http.request.json.confirm";
|
|
81621
|
+
const compatibilityDate$P = "2026-04-18";
|
|
81622
|
+
const metadata$P = {
|
|
81623
81623
|
name: "网络请求(JSON + 确认)",
|
|
81624
81624
|
icon: "fluent:shield-checkmark-20-regular"
|
|
81625
81625
|
};
|
|
81626
|
-
function schema$
|
|
81626
|
+
function schema$P(configure) {
|
|
81627
81627
|
const CelHttpRequest = Expression({ configure, resultType: "HttpRequest" });
|
|
81628
81628
|
const CelMessage = Expression({
|
|
81629
81629
|
configure: (env) => {
|
|
@@ -81635,8 +81635,8 @@ function schema$O(configure) {
|
|
|
81635
81635
|
resultType: "string"
|
|
81636
81636
|
});
|
|
81637
81637
|
return Struct({
|
|
81638
|
-
type: Literal2(type$
|
|
81639
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
81638
|
+
type: Literal2(type$P),
|
|
81639
|
+
compatibilityDate: Literal2(compatibilityDate$P),
|
|
81640
81640
|
expression: CelHttpRequest.annotations({
|
|
81641
81641
|
title: "请求",
|
|
81642
81642
|
description: md`
|
|
@@ -81694,18 +81694,18 @@ function schema$O(configure) {
|
|
|
81694
81694
|
}
|
|
81695
81695
|
const __vite_glob_0_0$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81696
81696
|
__proto__: null,
|
|
81697
|
-
compatibilityDate: compatibilityDate$
|
|
81698
|
-
metadata: metadata$
|
|
81699
|
-
schema: schema$
|
|
81700
|
-
type: type$
|
|
81697
|
+
compatibilityDate: compatibilityDate$P,
|
|
81698
|
+
metadata: metadata$P,
|
|
81699
|
+
schema: schema$P,
|
|
81700
|
+
type: type$P
|
|
81701
81701
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
81702
|
-
const type$
|
|
81703
|
-
const compatibilityDate$
|
|
81704
|
-
const metadata$
|
|
81702
|
+
const type$O = "com.shwfed.actions.button.http.request.json";
|
|
81703
|
+
const compatibilityDate$O = "2026-04-18";
|
|
81704
|
+
const metadata$O = {
|
|
81705
81705
|
name: "网络请求(JSON)",
|
|
81706
81706
|
icon: "fluent:cloud-arrow-up-20-regular"
|
|
81707
81707
|
};
|
|
81708
|
-
function schema$
|
|
81708
|
+
function schema$O(configure) {
|
|
81709
81709
|
const CelHttpRequest = Expression({ configure, resultType: "HttpRequest" });
|
|
81710
81710
|
const CelMessage = Expression({
|
|
81711
81711
|
configure: (env) => {
|
|
@@ -81717,8 +81717,8 @@ function schema$N(configure) {
|
|
|
81717
81717
|
resultType: "string"
|
|
81718
81718
|
});
|
|
81719
81719
|
return Struct({
|
|
81720
|
-
type: Literal2(type$
|
|
81721
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
81720
|
+
type: Literal2(type$O),
|
|
81721
|
+
compatibilityDate: Literal2(compatibilityDate$O),
|
|
81722
81722
|
expression: CelHttpRequest.annotations({
|
|
81723
81723
|
title: "请求",
|
|
81724
81724
|
description: md`
|
|
@@ -81764,21 +81764,21 @@ function schema$N(configure) {
|
|
|
81764
81764
|
}
|
|
81765
81765
|
const __vite_glob_0_1$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81766
81766
|
__proto__: null,
|
|
81767
|
-
compatibilityDate: compatibilityDate$
|
|
81768
|
-
metadata: metadata$
|
|
81769
|
-
schema: schema$
|
|
81770
|
-
type: type$
|
|
81767
|
+
compatibilityDate: compatibilityDate$O,
|
|
81768
|
+
metadata: metadata$O,
|
|
81769
|
+
schema: schema$O,
|
|
81770
|
+
type: type$O
|
|
81771
81771
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
81772
|
-
const type$
|
|
81773
|
-
const compatibilityDate$
|
|
81774
|
-
const metadata$
|
|
81772
|
+
const type$N = "com.shwfed.actions.button.prototype";
|
|
81773
|
+
const compatibilityDate$N = "2026-04-18";
|
|
81774
|
+
const metadata$N = {
|
|
81775
81775
|
name: "原型",
|
|
81776
81776
|
icon: "fluent:predictions-20-regular"
|
|
81777
81777
|
};
|
|
81778
|
-
function schema$
|
|
81778
|
+
function schema$N(_configure) {
|
|
81779
81779
|
return Struct({
|
|
81780
|
-
type: Literal2(type$
|
|
81781
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
81780
|
+
type: Literal2(type$N),
|
|
81781
|
+
compatibilityDate: Literal2(compatibilityDate$N)
|
|
81782
81782
|
}).annotations({
|
|
81783
81783
|
title: "PrototypeAction",
|
|
81784
81784
|
description: "点击无副作用的原型按钮,可被一次性转换为其它类型"
|
|
@@ -81786,23 +81786,23 @@ function schema$M(_configure) {
|
|
|
81786
81786
|
}
|
|
81787
81787
|
const __vite_glob_0_2$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81788
81788
|
__proto__: null,
|
|
81789
|
-
compatibilityDate: compatibilityDate$
|
|
81790
|
-
metadata: metadata$
|
|
81791
|
-
schema: schema$
|
|
81792
|
-
type: type$
|
|
81789
|
+
compatibilityDate: compatibilityDate$N,
|
|
81790
|
+
metadata: metadata$N,
|
|
81791
|
+
schema: schema$N,
|
|
81792
|
+
type: type$N
|
|
81793
81793
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
81794
|
-
const type$
|
|
81795
|
-
const compatibilityDate$
|
|
81796
|
-
const metadata$
|
|
81794
|
+
const type$M = "com.shwfed.actions.button.navigation";
|
|
81795
|
+
const compatibilityDate$M = "2026-04-21";
|
|
81796
|
+
const metadata$M = {
|
|
81797
81797
|
name: "导航",
|
|
81798
81798
|
icon: "fluent:link-20-regular"
|
|
81799
81799
|
};
|
|
81800
81800
|
const Mode = Literal2("_self", "_blank");
|
|
81801
|
-
function schema$
|
|
81801
|
+
function schema$M(configure) {
|
|
81802
81802
|
const CelUrl = Expression({ configure, resultType: "string" });
|
|
81803
81803
|
return Struct({
|
|
81804
|
-
type: Literal2(type$
|
|
81805
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
81804
|
+
type: Literal2(type$M),
|
|
81805
|
+
compatibilityDate: Literal2(compatibilityDate$M),
|
|
81806
81806
|
url: CelUrl.annotations({
|
|
81807
81807
|
title: "链接",
|
|
81808
81808
|
description: "点击后将打开的链接,返回 `string`"
|
|
@@ -81818,10 +81818,10 @@ function schema$L(configure) {
|
|
|
81818
81818
|
}
|
|
81819
81819
|
const __vite_glob_0_3$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81820
81820
|
__proto__: null,
|
|
81821
|
-
compatibilityDate: compatibilityDate$
|
|
81822
|
-
metadata: metadata$
|
|
81823
|
-
schema: schema$
|
|
81824
|
-
type: type$
|
|
81821
|
+
compatibilityDate: compatibilityDate$M,
|
|
81822
|
+
metadata: metadata$M,
|
|
81823
|
+
schema: schema$M,
|
|
81824
|
+
type: type$M
|
|
81825
81825
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
81826
81826
|
const blockRefCache = /* @__PURE__ */ new WeakMap();
|
|
81827
81827
|
function registerBlockRef(configure, ref2) {
|
|
@@ -81830,9 +81830,9 @@ function registerBlockRef(configure, ref2) {
|
|
|
81830
81830
|
function lookupBlockRef(configure) {
|
|
81831
81831
|
return blockRefCache.get(configure);
|
|
81832
81832
|
}
|
|
81833
|
-
const type$
|
|
81834
|
-
const compatibilityDate$
|
|
81835
|
-
const metadata$
|
|
81833
|
+
const type$L = "com.shwfed.actions.button.modal.layout";
|
|
81834
|
+
const compatibilityDate$L = "2026-05-11";
|
|
81835
|
+
const metadata$L = {
|
|
81836
81836
|
name: "模态窗口",
|
|
81837
81837
|
icon: "fluent:window-edit-20-regular",
|
|
81838
81838
|
drillable: true,
|
|
@@ -81843,12 +81843,12 @@ const metadata$K = {
|
|
|
81843
81843
|
const CssLength = String$.pipe(
|
|
81844
81844
|
filter((s) => s.trim().length > 0 || "不能为空字符串")
|
|
81845
81845
|
);
|
|
81846
|
-
function schema$
|
|
81846
|
+
function schema$L(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$L),
|
|
81851
|
+
compatibilityDate: Literal2(compatibilityDate$L),
|
|
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$L,
|
|
81881
81881
|
defaultBody: defaultBody$6,
|
|
81882
|
-
metadata: metadata$
|
|
81883
|
-
schema: schema$
|
|
81884
|
-
type: type$
|
|
81882
|
+
metadata: metadata$L,
|
|
81883
|
+
schema: schema$L,
|
|
81884
|
+
type: type$L
|
|
81885
81885
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
81886
|
-
const type$
|
|
81887
|
-
const compatibilityDate$
|
|
81888
|
-
const metadata$
|
|
81886
|
+
const type$K = "com.shwfed.actions.button.event.dispatch";
|
|
81887
|
+
const compatibilityDate$K = "2026-05-15";
|
|
81888
|
+
const metadata$K = {
|
|
81889
81889
|
name: "触发事件",
|
|
81890
81890
|
icon: "fluent:flash-20-regular"
|
|
81891
81891
|
};
|
|
81892
|
-
function schema$
|
|
81892
|
+
function schema$K(_configure) {
|
|
81893
81893
|
return Struct({
|
|
81894
|
-
type: Literal2(type$
|
|
81895
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
81894
|
+
type: Literal2(type$K),
|
|
81895
|
+
compatibilityDate: Literal2(compatibilityDate$K),
|
|
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$J(_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$K,
|
|
81907
|
+
metadata: metadata$K,
|
|
81908
|
+
schema: schema$K,
|
|
81909
|
+
type: type$K
|
|
81910
81910
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
81911
|
-
const type$
|
|
81912
|
-
const compatibilityDate$
|
|
81913
|
-
const metadata$
|
|
81911
|
+
const type$J = "com.shwfed.actions.button.http.download";
|
|
81912
|
+
const compatibilityDate$J = "2026-05-21";
|
|
81913
|
+
const metadata$J = {
|
|
81914
81914
|
name: "下载文件",
|
|
81915
81915
|
icon: "fluent:arrow-download-20-regular"
|
|
81916
81916
|
};
|
|
@@ -81925,13 +81925,13 @@ function configureWithJson$2(configure) {
|
|
|
81925
81925
|
env.registerVariable("json", JSON_VAR$2.type, { description: JSON_VAR$2.description });
|
|
81926
81926
|
};
|
|
81927
81927
|
}
|
|
81928
|
-
function schema$
|
|
81928
|
+
function schema$J(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$J),
|
|
81934
|
+
compatibilityDate: Literal2(compatibilityDate$J),
|
|
81935
81935
|
template: Struct({
|
|
81936
81936
|
request: CelHttpRequest.annotations({
|
|
81937
81937
|
title: "请求",
|
|
@@ -81994,25 +81994,25 @@ function schema$I(configure) {
|
|
|
81994
81994
|
const __vite_glob_0_6$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
81995
81995
|
__proto__: null,
|
|
81996
81996
|
JSON_VAR: JSON_VAR$2,
|
|
81997
|
-
compatibilityDate: compatibilityDate$
|
|
81998
|
-
metadata: metadata$
|
|
81999
|
-
schema: schema$
|
|
82000
|
-
type: type$
|
|
81997
|
+
compatibilityDate: compatibilityDate$J,
|
|
81998
|
+
metadata: metadata$J,
|
|
81999
|
+
schema: schema$J,
|
|
82000
|
+
type: type$J
|
|
82001
82001
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82002
|
-
const type$
|
|
82003
|
-
const compatibilityDate$
|
|
82004
|
-
const metadata$
|
|
82002
|
+
const type$I = "com.shwfed.actions.item.markdown";
|
|
82003
|
+
const compatibilityDate$I = "2026-05-21";
|
|
82004
|
+
const metadata$I = {
|
|
82005
82005
|
name: "内联 Markdown",
|
|
82006
82006
|
icon: "fluent:markdown-20-regular"
|
|
82007
82007
|
};
|
|
82008
|
-
function schema$
|
|
82008
|
+
function schema$I(_configure) {
|
|
82009
82009
|
return Struct({
|
|
82010
82010
|
id: UUID.annotations({ description: "Markdown 项唯一标识" }),
|
|
82011
82011
|
// Present when the item sits at group level; absent when it lives as a
|
|
82012
82012
|
// dropdown sub-item (the parent is the dropdown itself).
|
|
82013
82013
|
groupId: optional(UUID.annotations({ description: "所属按钮组标识" })),
|
|
82014
|
-
type: Literal2(type$
|
|
82015
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82014
|
+
type: Literal2(type$I),
|
|
82015
|
+
compatibilityDate: Literal2(compatibilityDate$I),
|
|
82016
82016
|
name: String$.annotations({
|
|
82017
82017
|
title: "内部名称",
|
|
82018
82018
|
description: "仅用于编辑器内识别该 Markdown 项,不会展示给最终用户"
|
|
@@ -82028,10 +82028,10 @@ function schema$H(_configure) {
|
|
|
82028
82028
|
}
|
|
82029
82029
|
const __vite_glob_3_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82030
82030
|
__proto__: null,
|
|
82031
|
-
compatibilityDate: compatibilityDate$
|
|
82032
|
-
metadata: metadata$
|
|
82033
|
-
schema: schema$
|
|
82034
|
-
type: type$
|
|
82031
|
+
compatibilityDate: compatibilityDate$I,
|
|
82032
|
+
metadata: metadata$I,
|
|
82033
|
+
schema: schema$I,
|
|
82034
|
+
type: type$I
|
|
82035
82035
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82036
82036
|
function defineRegistry(options) {
|
|
82037
82037
|
const {
|
|
@@ -82396,20 +82396,20 @@ function defaultActionsConfig() {
|
|
|
82396
82396
|
items: []
|
|
82397
82397
|
};
|
|
82398
82398
|
}
|
|
82399
|
-
const type$
|
|
82400
|
-
const compatibilityDate$
|
|
82401
|
-
const metadata$
|
|
82399
|
+
const type$H = "com.shwfed.block.actions";
|
|
82400
|
+
const compatibilityDate$H = "2026-05-06";
|
|
82401
|
+
const metadata$H = {
|
|
82402
82402
|
name: "操作按钮",
|
|
82403
82403
|
icon: "fluent:cursor-click-20-regular",
|
|
82404
82404
|
w: { initial: 8, min: 8, max: Infinity },
|
|
82405
82405
|
h: { initial: 2, min: 2, max: Infinity }
|
|
82406
82406
|
};
|
|
82407
|
-
function schema$
|
|
82407
|
+
function schema$H(configure, _blockRef) {
|
|
82408
82408
|
const ActionsSchema = ActionsConfig(configure);
|
|
82409
82409
|
return Struct({
|
|
82410
82410
|
id: UUID.annotations({ description: "块唯一标识" }),
|
|
82411
|
-
type: tag(type$
|
|
82412
|
-
compatibilityDate: tag(compatibilityDate$
|
|
82411
|
+
type: tag(type$H),
|
|
82412
|
+
compatibilityDate: tag(compatibilityDate$H),
|
|
82413
82413
|
actions: ActionsSchema.annotations({
|
|
82414
82414
|
title: "操作按钮配置",
|
|
82415
82415
|
description: "内嵌的 Actions 组件配置"
|
|
@@ -82424,11 +82424,11 @@ function defaultBody$5() {
|
|
|
82424
82424
|
}
|
|
82425
82425
|
const __vite_glob_0_0$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82426
82426
|
__proto__: null,
|
|
82427
|
-
compatibilityDate: compatibilityDate$
|
|
82427
|
+
compatibilityDate: compatibilityDate$H,
|
|
82428
82428
|
defaultBody: defaultBody$5,
|
|
82429
|
-
metadata: metadata$
|
|
82430
|
-
schema: schema$
|
|
82431
|
-
type: type$
|
|
82429
|
+
metadata: metadata$H,
|
|
82430
|
+
schema: schema$H,
|
|
82431
|
+
type: type$H
|
|
82432
82432
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82433
82433
|
function commonFieldFields(configure) {
|
|
82434
82434
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
@@ -82475,18 +82475,18 @@ function derivedField(configure, resultType) {
|
|
|
82475
82475
|
})
|
|
82476
82476
|
);
|
|
82477
82477
|
}
|
|
82478
|
-
const type$
|
|
82479
|
-
const compatibilityDate$
|
|
82480
|
-
const metadata$
|
|
82478
|
+
const type$G = "com.shwfed.form.field.markdown";
|
|
82479
|
+
const compatibilityDate$G = "2026-04-22";
|
|
82480
|
+
const metadata$G = {
|
|
82481
82481
|
name: "Markdown",
|
|
82482
82482
|
icon: "fluent:markdown-20-regular",
|
|
82483
82483
|
w: { initial: 8, min: 2, max: Infinity },
|
|
82484
82484
|
h: { initial: 2, min: 2, max: Infinity }
|
|
82485
82485
|
};
|
|
82486
|
-
function schema$
|
|
82486
|
+
function schema$G(configure) {
|
|
82487
82487
|
return Struct({
|
|
82488
|
-
type: Literal2(type$
|
|
82489
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82488
|
+
type: Literal2(type$G),
|
|
82489
|
+
compatibilityDate: Literal2(compatibilityDate$G),
|
|
82490
82490
|
...commonFieldFields(configure),
|
|
82491
82491
|
content: Locale.annotations({
|
|
82492
82492
|
title: "内容",
|
|
@@ -82499,24 +82499,24 @@ function schema$F(configure) {
|
|
|
82499
82499
|
}
|
|
82500
82500
|
const __vite_glob_0_0$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82501
82501
|
__proto__: null,
|
|
82502
|
-
compatibilityDate: compatibilityDate$
|
|
82503
|
-
metadata: metadata$
|
|
82504
|
-
schema: schema$
|
|
82505
|
-
type: type$
|
|
82502
|
+
compatibilityDate: compatibilityDate$G,
|
|
82503
|
+
metadata: metadata$G,
|
|
82504
|
+
schema: schema$G,
|
|
82505
|
+
type: type$G
|
|
82506
82506
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82507
|
-
const type$
|
|
82508
|
-
const compatibilityDate$
|
|
82509
|
-
const metadata$
|
|
82507
|
+
const type$F = "com.shwfed.form.field.text";
|
|
82508
|
+
const compatibilityDate$F = "2026-04-22";
|
|
82509
|
+
const metadata$F = {
|
|
82510
82510
|
name: "文本输入",
|
|
82511
82511
|
icon: "fluent:text-field-20-regular",
|
|
82512
82512
|
w: { initial: 8, min: 4, max: Infinity },
|
|
82513
82513
|
h: { initial: 2, min: 2, max: 2 }
|
|
82514
82514
|
};
|
|
82515
|
-
function schema$
|
|
82515
|
+
function schema$F(configure) {
|
|
82516
82516
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
82517
82517
|
return Struct({
|
|
82518
|
-
type: Literal2(type$
|
|
82519
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82518
|
+
type: Literal2(type$F),
|
|
82519
|
+
compatibilityDate: Literal2(compatibilityDate$F),
|
|
82520
82520
|
...commonFieldFields(configure),
|
|
82521
82521
|
label: optional(Locale.annotations({
|
|
82522
82522
|
title: "标签",
|
|
@@ -82551,24 +82551,24 @@ function schema$E(configure) {
|
|
|
82551
82551
|
}
|
|
82552
82552
|
const __vite_glob_0_1$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82553
82553
|
__proto__: null,
|
|
82554
|
-
compatibilityDate: compatibilityDate$
|
|
82555
|
-
metadata: metadata$
|
|
82556
|
-
schema: schema$
|
|
82557
|
-
type: type$
|
|
82554
|
+
compatibilityDate: compatibilityDate$F,
|
|
82555
|
+
metadata: metadata$F,
|
|
82556
|
+
schema: schema$F,
|
|
82557
|
+
type: type$F
|
|
82558
82558
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82559
|
-
const type$
|
|
82560
|
-
const compatibilityDate$
|
|
82561
|
-
const metadata$
|
|
82559
|
+
const type$E = "com.shwfed.form.field.textarea";
|
|
82560
|
+
const compatibilityDate$E = "2026-04-22";
|
|
82561
|
+
const metadata$E = {
|
|
82562
82562
|
name: "多行文本输入",
|
|
82563
82563
|
icon: "fluent:text-description-20-regular",
|
|
82564
82564
|
w: { initial: 8, min: 4, max: Infinity },
|
|
82565
82565
|
h: { initial: 3, min: 2, max: Infinity, grow: true }
|
|
82566
82566
|
};
|
|
82567
|
-
function schema$
|
|
82567
|
+
function schema$E(configure) {
|
|
82568
82568
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
82569
82569
|
return Struct({
|
|
82570
|
-
type: Literal2(type$
|
|
82571
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82570
|
+
type: Literal2(type$E),
|
|
82571
|
+
compatibilityDate: Literal2(compatibilityDate$E),
|
|
82572
82572
|
...commonFieldFields(configure),
|
|
82573
82573
|
label: optional(Locale.annotations({
|
|
82574
82574
|
title: "标签",
|
|
@@ -82607,25 +82607,25 @@ function schema$D(configure) {
|
|
|
82607
82607
|
}
|
|
82608
82608
|
const __vite_glob_0_2$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82609
82609
|
__proto__: null,
|
|
82610
|
-
compatibilityDate: compatibilityDate$
|
|
82611
|
-
metadata: metadata$
|
|
82612
|
-
schema: schema$
|
|
82613
|
-
type: type$
|
|
82610
|
+
compatibilityDate: compatibilityDate$E,
|
|
82611
|
+
metadata: metadata$E,
|
|
82612
|
+
schema: schema$E,
|
|
82613
|
+
type: type$E
|
|
82614
82614
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82615
|
-
const type$
|
|
82616
|
-
const compatibilityDate$
|
|
82617
|
-
const metadata$
|
|
82615
|
+
const type$D = "com.shwfed.form.field.actions";
|
|
82616
|
+
const compatibilityDate$D = "2026-04-24";
|
|
82617
|
+
const metadata$D = {
|
|
82618
82618
|
name: "操作",
|
|
82619
82619
|
icon: "fluent:cursor-click-20-regular",
|
|
82620
82620
|
w: { initial: 8, min: 4, max: Infinity },
|
|
82621
82621
|
h: { initial: 2, min: 2, max: Infinity }
|
|
82622
82622
|
};
|
|
82623
|
-
function schema$
|
|
82623
|
+
function schema$D(configure) {
|
|
82624
82624
|
const { fields: actionFields } = ActionSchemaFields(configure);
|
|
82625
82625
|
const { size: _size, groups, items: items2, ...rest } = actionFields;
|
|
82626
82626
|
return Struct({
|
|
82627
|
-
type: Literal2(type$
|
|
82628
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82627
|
+
type: Literal2(type$D),
|
|
82628
|
+
compatibilityDate: Literal2(compatibilityDate$D),
|
|
82629
82629
|
...commonFieldFields(configure),
|
|
82630
82630
|
...rest,
|
|
82631
82631
|
// Form's add-field factory creates new fields with only { type, compatibilityDate, id },
|
|
@@ -82639,14 +82639,14 @@ function schema$C(configure) {
|
|
|
82639
82639
|
}
|
|
82640
82640
|
const __vite_glob_0_3$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82641
82641
|
__proto__: null,
|
|
82642
|
-
compatibilityDate: compatibilityDate$
|
|
82643
|
-
metadata: metadata$
|
|
82644
|
-
schema: schema$
|
|
82645
|
-
type: type$
|
|
82642
|
+
compatibilityDate: compatibilityDate$D,
|
|
82643
|
+
metadata: metadata$D,
|
|
82644
|
+
schema: schema$D,
|
|
82645
|
+
type: type$D
|
|
82646
82646
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82647
|
-
const type$
|
|
82648
|
-
const compatibilityDate$
|
|
82649
|
-
const metadata$
|
|
82647
|
+
const type$C = "com.shwfed.form.field.combobox.single";
|
|
82648
|
+
const compatibilityDate$C = "2026-04-24";
|
|
82649
|
+
const metadata$C = {
|
|
82650
82650
|
name: "下拉单选",
|
|
82651
82651
|
icon: "fluent:chevron-down-20-regular",
|
|
82652
82652
|
w: { initial: 8, min: 4, max: Infinity },
|
|
@@ -82659,14 +82659,14 @@ function configureWithOption$1(configure) {
|
|
|
82659
82659
|
};
|
|
82660
82660
|
}
|
|
82661
82661
|
const isListType$2 = (actual) => actual === "dyn" || actual.startsWith("list");
|
|
82662
|
-
function schema$
|
|
82662
|
+
function schema$C(configure) {
|
|
82663
82663
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
82664
82664
|
const CelOptions = Expression({ configure, resultType: isListType$2 });
|
|
82665
82665
|
const CelOptionValue = Expression({ configure: configureWithOption$1(configure), resultType: "dyn" });
|
|
82666
82666
|
const LocaleOptionLabel = LocaleMarkdown({ configure: configureWithOption$1(configure) });
|
|
82667
82667
|
return Struct({
|
|
82668
|
-
type: Literal2(type$
|
|
82669
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82668
|
+
type: Literal2(type$C),
|
|
82669
|
+
compatibilityDate: Literal2(compatibilityDate$C),
|
|
82670
82670
|
...commonFieldFields(configure),
|
|
82671
82671
|
label: optional(Locale.annotations({
|
|
82672
82672
|
title: "标签",
|
|
@@ -82713,14 +82713,14 @@ function schema$B(configure) {
|
|
|
82713
82713
|
}
|
|
82714
82714
|
const __vite_glob_0_4$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82715
82715
|
__proto__: null,
|
|
82716
|
-
compatibilityDate: compatibilityDate$
|
|
82717
|
-
metadata: metadata$
|
|
82718
|
-
schema: schema$
|
|
82719
|
-
type: type$
|
|
82716
|
+
compatibilityDate: compatibilityDate$C,
|
|
82717
|
+
metadata: metadata$C,
|
|
82718
|
+
schema: schema$C,
|
|
82719
|
+
type: type$C
|
|
82720
82720
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82721
|
-
const type$
|
|
82722
|
-
const compatibilityDate$
|
|
82723
|
-
const metadata$
|
|
82721
|
+
const type$B = "com.shwfed.form.field.date";
|
|
82722
|
+
const compatibilityDate$B = "2026-04-27";
|
|
82723
|
+
const metadata$B = {
|
|
82724
82724
|
name: "日期",
|
|
82725
82725
|
icon: "fluent:calendar-ltr-20-regular",
|
|
82726
82726
|
w: { initial: 8, min: 4, max: Infinity },
|
|
@@ -82742,12 +82742,12 @@ function presetSchema$3(configure) {
|
|
|
82742
82742
|
title: "DateFieldPreset"
|
|
82743
82743
|
});
|
|
82744
82744
|
}
|
|
82745
|
-
function schema$
|
|
82745
|
+
function schema$B(configure) {
|
|
82746
82746
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
82747
82747
|
const Preset = presetSchema$3(configure);
|
|
82748
82748
|
return Struct({
|
|
82749
|
-
type: Literal2(type$
|
|
82750
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82749
|
+
type: Literal2(type$B),
|
|
82750
|
+
compatibilityDate: Literal2(compatibilityDate$B),
|
|
82751
82751
|
...commonFieldFields(configure),
|
|
82752
82752
|
label: optional(Locale.annotations({
|
|
82753
82753
|
title: "标签",
|
|
@@ -82794,14 +82794,14 @@ function schema$A(configure) {
|
|
|
82794
82794
|
}
|
|
82795
82795
|
const __vite_glob_0_5$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82796
82796
|
__proto__: null,
|
|
82797
|
-
compatibilityDate: compatibilityDate$
|
|
82798
|
-
metadata: metadata$
|
|
82797
|
+
compatibilityDate: compatibilityDate$B,
|
|
82798
|
+
metadata: metadata$B,
|
|
82799
82799
|
presetSchema: presetSchema$3,
|
|
82800
|
-
schema: schema$
|
|
82801
|
-
type: type$
|
|
82800
|
+
schema: schema$B,
|
|
82801
|
+
type: type$B
|
|
82802
82802
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82803
|
-
const type$
|
|
82804
|
-
const compatibilityDate$
|
|
82803
|
+
const type$A = "com.shwfed.form.field.daterange";
|
|
82804
|
+
const compatibilityDate$A = "2026-04-27";
|
|
82805
82805
|
const BindingPath$3 = String$.pipe(minLength(1));
|
|
82806
82806
|
const SplitBinding$3 = Tuple(BindingPath$3, BindingPath$3).pipe(
|
|
82807
82807
|
filter(([a, b]) => a !== b, {
|
|
@@ -82812,7 +82812,7 @@ const bindingSchema$3 = Union2(BindingPath$3, SplitBinding$3).annotations({
|
|
|
82812
82812
|
title: "绑定路径",
|
|
82813
82813
|
description: "写入表单状态的 `dot-prop` 路径;填写单个路径时写入 `[start, end]` 字符串数组,例如 `event.range`;填写 `[起始路径, 结束路径]` 元组时分别写入两端;留空则为非受控字段"
|
|
82814
82814
|
});
|
|
82815
|
-
const metadata$
|
|
82815
|
+
const metadata$A = {
|
|
82816
82816
|
name: "日期范围",
|
|
82817
82817
|
icon: "fluent:calendar-arrow-right-20-regular",
|
|
82818
82818
|
w: { initial: 10, min: 10, max: Infinity },
|
|
@@ -82838,12 +82838,12 @@ function presetSchema$2(configure) {
|
|
|
82838
82838
|
title: "DateRangeFieldPreset"
|
|
82839
82839
|
});
|
|
82840
82840
|
}
|
|
82841
|
-
function schema$
|
|
82841
|
+
function schema$A(configure) {
|
|
82842
82842
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
82843
82843
|
const Preset = presetSchema$2(configure);
|
|
82844
82844
|
return Struct({
|
|
82845
|
-
type: Literal2(type$
|
|
82846
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82845
|
+
type: Literal2(type$A),
|
|
82846
|
+
compatibilityDate: Literal2(compatibilityDate$A),
|
|
82847
82847
|
...commonFieldFields(configure),
|
|
82848
82848
|
label: optional(Locale.annotations({
|
|
82849
82849
|
title: "标签",
|
|
@@ -82897,21 +82897,21 @@ function schema$z(configure) {
|
|
|
82897
82897
|
description: "日期范围选择输入"
|
|
82898
82898
|
});
|
|
82899
82899
|
}
|
|
82900
|
-
function defaults$
|
|
82900
|
+
function defaults$7() {
|
|
82901
82901
|
return { rangeSeparatorIcon: "fluent:arrow-right-20-regular" };
|
|
82902
82902
|
}
|
|
82903
82903
|
const __vite_glob_0_6$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
82904
82904
|
__proto__: null,
|
|
82905
|
-
compatibilityDate: compatibilityDate$
|
|
82906
|
-
defaults: defaults$
|
|
82907
|
-
metadata: metadata$
|
|
82905
|
+
compatibilityDate: compatibilityDate$A,
|
|
82906
|
+
defaults: defaults$7,
|
|
82907
|
+
metadata: metadata$A,
|
|
82908
82908
|
presetSchema: presetSchema$2,
|
|
82909
|
-
schema: schema$
|
|
82910
|
-
type: type$
|
|
82909
|
+
schema: schema$A,
|
|
82910
|
+
type: type$A
|
|
82911
82911
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82912
|
-
const type$
|
|
82913
|
-
const compatibilityDate$
|
|
82914
|
-
const metadata$
|
|
82912
|
+
const type$z = "com.shwfed.form.field.datetime";
|
|
82913
|
+
const compatibilityDate$z = "2026-04-27";
|
|
82914
|
+
const metadata$z = {
|
|
82915
82915
|
name: "日期时间",
|
|
82916
82916
|
icon: "fluent:calendar-clock-20-regular",
|
|
82917
82917
|
w: { initial: 8, min: 4, max: Infinity },
|
|
@@ -82943,12 +82943,12 @@ function presetSchema$1(configure) {
|
|
|
82943
82943
|
title: "DateTimeFieldPreset"
|
|
82944
82944
|
});
|
|
82945
82945
|
}
|
|
82946
|
-
function schema$
|
|
82946
|
+
function schema$z(configure) {
|
|
82947
82947
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
82948
82948
|
const Preset = presetSchema$1(configure);
|
|
82949
82949
|
return Struct({
|
|
82950
|
-
type: Literal2(type$
|
|
82951
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
82950
|
+
type: Literal2(type$z),
|
|
82951
|
+
compatibilityDate: Literal2(compatibilityDate$z),
|
|
82952
82952
|
...commonFieldFields(configure),
|
|
82953
82953
|
label: optional(Locale.annotations({
|
|
82954
82954
|
title: "标签",
|
|
@@ -83006,14 +83006,14 @@ const __vite_glob_0_7$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
83006
83006
|
HOUR_CYCLE_OPTIONS: HOUR_CYCLE_OPTIONS$3,
|
|
83007
83007
|
TIME_GRANULARITIES: TIME_GRANULARITIES$3,
|
|
83008
83008
|
TIME_GRANULARITY_OPTIONS: TIME_GRANULARITY_OPTIONS$3,
|
|
83009
|
-
compatibilityDate: compatibilityDate$
|
|
83010
|
-
metadata: metadata$
|
|
83009
|
+
compatibilityDate: compatibilityDate$z,
|
|
83010
|
+
metadata: metadata$z,
|
|
83011
83011
|
presetSchema: presetSchema$1,
|
|
83012
|
-
schema: schema$
|
|
83013
|
-
type: type$
|
|
83012
|
+
schema: schema$z,
|
|
83013
|
+
type: type$z
|
|
83014
83014
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
83015
|
-
const type$
|
|
83016
|
-
const compatibilityDate$
|
|
83015
|
+
const type$y = "com.shwfed.form.field.datetimerange";
|
|
83016
|
+
const compatibilityDate$y = "2026-04-27";
|
|
83017
83017
|
const BindingPath$2 = String$.pipe(minLength(1));
|
|
83018
83018
|
const SplitBinding$2 = Tuple(BindingPath$2, BindingPath$2).pipe(
|
|
83019
83019
|
filter(([a, b]) => a !== b, {
|
|
@@ -83024,7 +83024,7 @@ const bindingSchema$2 = Union2(BindingPath$2, SplitBinding$2).annotations({
|
|
|
83024
83024
|
title: "绑定路径",
|
|
83025
83025
|
description: "写入表单状态的 `dot-prop` 路径;填写单个路径时写入 `[start, end]` 字符串数组,例如 `event.range`;填写 `[起始路径, 结束路径]` 元组时分别写入两端;留空则为非受控字段"
|
|
83026
83026
|
});
|
|
83027
|
-
const metadata$
|
|
83027
|
+
const metadata$y = {
|
|
83028
83028
|
name: "日期时间范围",
|
|
83029
83029
|
icon: "fluent:calendar-clock-20-regular",
|
|
83030
83030
|
w: { initial: 14, min: 14, max: Infinity },
|
|
@@ -83060,12 +83060,12 @@ function presetSchema(configure) {
|
|
|
83060
83060
|
title: "DateTimeRangeFieldPreset"
|
|
83061
83061
|
});
|
|
83062
83062
|
}
|
|
83063
|
-
function schema$
|
|
83063
|
+
function schema$y(configure) {
|
|
83064
83064
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
83065
83065
|
const Preset = presetSchema(configure);
|
|
83066
83066
|
return Struct({
|
|
83067
|
-
type: Literal2(type$
|
|
83068
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
83067
|
+
type: Literal2(type$y),
|
|
83068
|
+
compatibilityDate: Literal2(compatibilityDate$y),
|
|
83069
83069
|
...commonFieldFields(configure),
|
|
83070
83070
|
label: optional(Locale.annotations({
|
|
83071
83071
|
title: "标签",
|
|
@@ -83127,7 +83127,7 @@ function schema$x(configure) {
|
|
|
83127
83127
|
description: "日期时间范围选择输入"
|
|
83128
83128
|
});
|
|
83129
83129
|
}
|
|
83130
|
-
function defaults$
|
|
83130
|
+
function defaults$6() {
|
|
83131
83131
|
return { rangeSeparatorIcon: "fluent:arrow-right-20-regular" };
|
|
83132
83132
|
}
|
|
83133
83133
|
const __vite_glob_0_8$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -83135,16 +83135,16 @@ const __vite_glob_0_8$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
83135
83135
|
HOUR_CYCLE_OPTIONS: HOUR_CYCLE_OPTIONS$2,
|
|
83136
83136
|
TIME_GRANULARITIES: TIME_GRANULARITIES$2,
|
|
83137
83137
|
TIME_GRANULARITY_OPTIONS: TIME_GRANULARITY_OPTIONS$2,
|
|
83138
|
-
compatibilityDate: compatibilityDate$
|
|
83139
|
-
defaults: defaults$
|
|
83140
|
-
metadata: metadata$
|
|
83138
|
+
compatibilityDate: compatibilityDate$y,
|
|
83139
|
+
defaults: defaults$6,
|
|
83140
|
+
metadata: metadata$y,
|
|
83141
83141
|
presetSchema,
|
|
83142
|
-
schema: schema$
|
|
83143
|
-
type: type$
|
|
83142
|
+
schema: schema$y,
|
|
83143
|
+
type: type$y
|
|
83144
83144
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
83145
|
-
const type$
|
|
83146
|
-
const compatibilityDate$
|
|
83147
|
-
const metadata$
|
|
83145
|
+
const type$x = "com.shwfed.form.field.time";
|
|
83146
|
+
const compatibilityDate$x = "2026-04-27";
|
|
83147
|
+
const metadata$x = {
|
|
83148
83148
|
name: "时间",
|
|
83149
83149
|
icon: "fluent:clock-20-regular",
|
|
83150
83150
|
w: { initial: 8, min: 4, max: Infinity },
|
|
@@ -83160,11 +83160,11 @@ const HOUR_CYCLE_OPTIONS$1 = [
|
|
|
83160
83160
|
{ value: 24, label: "24 小时制" },
|
|
83161
83161
|
{ value: 12, label: "12 小时制" }
|
|
83162
83162
|
];
|
|
83163
|
-
function schema$
|
|
83163
|
+
function schema$x(configure) {
|
|
83164
83164
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
83165
83165
|
return Struct({
|
|
83166
|
-
type: Literal2(type$
|
|
83167
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
83166
|
+
type: Literal2(type$x),
|
|
83167
|
+
compatibilityDate: Literal2(compatibilityDate$x),
|
|
83168
83168
|
...commonFieldFields(configure),
|
|
83169
83169
|
label: optional(Locale.annotations({
|
|
83170
83170
|
title: "标签",
|
|
@@ -83210,13 +83210,13 @@ const __vite_glob_0_9$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
83210
83210
|
HOUR_CYCLE_OPTIONS: HOUR_CYCLE_OPTIONS$1,
|
|
83211
83211
|
TIME_GRANULARITIES: TIME_GRANULARITIES$1,
|
|
83212
83212
|
TIME_GRANULARITY_OPTIONS: TIME_GRANULARITY_OPTIONS$1,
|
|
83213
|
-
compatibilityDate: compatibilityDate$
|
|
83214
|
-
metadata: metadata$
|
|
83215
|
-
schema: schema$
|
|
83216
|
-
type: type$
|
|
83213
|
+
compatibilityDate: compatibilityDate$x,
|
|
83214
|
+
metadata: metadata$x,
|
|
83215
|
+
schema: schema$x,
|
|
83216
|
+
type: type$x
|
|
83217
83217
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
83218
|
-
const type$
|
|
83219
|
-
const compatibilityDate$
|
|
83218
|
+
const type$w = "com.shwfed.form.field.timerange";
|
|
83219
|
+
const compatibilityDate$w = "2026-04-27";
|
|
83220
83220
|
const BindingPath$1 = String$.pipe(minLength(1));
|
|
83221
83221
|
const SplitBinding$1 = Tuple(BindingPath$1, BindingPath$1).pipe(
|
|
83222
83222
|
filter(([a, b]) => a !== b, {
|
|
@@ -83227,7 +83227,7 @@ const bindingSchema$1 = Union2(BindingPath$1, SplitBinding$1).annotations({
|
|
|
83227
83227
|
title: "绑定路径",
|
|
83228
83228
|
description: "写入表单状态的 `dot-prop` 路径;填写单个路径时写入 `[start, end]` 字符串数组,例如 `meeting.timeRange`;填写 `[起始路径, 结束路径]` 元组时分别写入两端;留空则为非受控字段"
|
|
83229
83229
|
});
|
|
83230
|
-
const metadata$
|
|
83230
|
+
const metadata$w = {
|
|
83231
83231
|
name: "时间范围",
|
|
83232
83232
|
icon: "fluent:clock-arrow-download-20-regular",
|
|
83233
83233
|
w: { initial: 14, min: 14, max: Infinity },
|
|
@@ -83243,11 +83243,11 @@ const HOUR_CYCLE_OPTIONS = [
|
|
|
83243
83243
|
{ value: 24, label: "24 小时制" },
|
|
83244
83244
|
{ value: 12, label: "12 小时制" }
|
|
83245
83245
|
];
|
|
83246
|
-
function schema$
|
|
83246
|
+
function schema$w(configure) {
|
|
83247
83247
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
83248
83248
|
return Struct({
|
|
83249
|
-
type: Literal2(type$
|
|
83250
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
83249
|
+
type: Literal2(type$w),
|
|
83250
|
+
compatibilityDate: Literal2(compatibilityDate$w),
|
|
83251
83251
|
...commonFieldFields(configure),
|
|
83252
83252
|
label: optional(Locale.annotations({
|
|
83253
83253
|
title: "标签",
|
|
@@ -83289,7 +83289,7 @@ function schema$v(configure) {
|
|
|
83289
83289
|
description: "时间范围选择输入"
|
|
83290
83290
|
});
|
|
83291
83291
|
}
|
|
83292
|
-
function defaults$
|
|
83292
|
+
function defaults$5() {
|
|
83293
83293
|
return { rangeSeparatorIcon: "fluent:arrow-right-20-regular" };
|
|
83294
83294
|
}
|
|
83295
83295
|
const __vite_glob_0_10$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -83297,26 +83297,26 @@ const __vite_glob_0_10$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
83297
83297
|
HOUR_CYCLE_OPTIONS,
|
|
83298
83298
|
TIME_GRANULARITIES,
|
|
83299
83299
|
TIME_GRANULARITY_OPTIONS,
|
|
83300
|
-
compatibilityDate: compatibilityDate$
|
|
83301
|
-
defaults: defaults$
|
|
83302
|
-
metadata: metadata$
|
|
83303
|
-
schema: schema$
|
|
83304
|
-
type: type$
|
|
83300
|
+
compatibilityDate: compatibilityDate$w,
|
|
83301
|
+
defaults: defaults$5,
|
|
83302
|
+
metadata: metadata$w,
|
|
83303
|
+
schema: schema$w,
|
|
83304
|
+
type: type$w
|
|
83305
83305
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
83306
|
-
const type$
|
|
83307
|
-
const compatibilityDate$
|
|
83308
|
-
const metadata$
|
|
83306
|
+
const type$v = "com.shwfed.form.field.number";
|
|
83307
|
+
const compatibilityDate$v = "2026-04-28";
|
|
83308
|
+
const metadata$v = {
|
|
83309
83309
|
name: "数值输入",
|
|
83310
83310
|
icon: "fluent:number-symbol-20-regular",
|
|
83311
83311
|
w: { initial: 8, min: 4, max: Infinity },
|
|
83312
83312
|
h: { initial: 2, min: 2, max: 2 }
|
|
83313
83313
|
};
|
|
83314
|
-
function schema$
|
|
83314
|
+
function schema$v(configure) {
|
|
83315
83315
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
83316
83316
|
const CelNumber = Expression({ configure, resultType: "number" });
|
|
83317
83317
|
return Struct({
|
|
83318
|
-
type: Literal2(type$
|
|
83319
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
83318
|
+
type: Literal2(type$v),
|
|
83319
|
+
compatibilityDate: Literal2(compatibilityDate$v),
|
|
83320
83320
|
...commonFieldFields(configure),
|
|
83321
83321
|
label: optional(Locale.annotations({
|
|
83322
83322
|
title: "标签",
|
|
@@ -83375,13 +83375,13 @@ function schema$u(configure) {
|
|
|
83375
83375
|
}
|
|
83376
83376
|
const __vite_glob_0_11$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
83377
83377
|
__proto__: null,
|
|
83378
|
-
compatibilityDate: compatibilityDate$
|
|
83379
|
-
metadata: metadata$
|
|
83380
|
-
schema: schema$
|
|
83381
|
-
type: type$
|
|
83378
|
+
compatibilityDate: compatibilityDate$v,
|
|
83379
|
+
metadata: metadata$v,
|
|
83380
|
+
schema: schema$v,
|
|
83381
|
+
type: type$v
|
|
83382
83382
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
83383
|
-
const type$
|
|
83384
|
-
const compatibilityDate$
|
|
83383
|
+
const type$u = "com.shwfed.form.field.numberrange";
|
|
83384
|
+
const compatibilityDate$u = "2026-04-28";
|
|
83385
83385
|
const BindingPath = String$.pipe(minLength(1));
|
|
83386
83386
|
const SplitBinding = Tuple(BindingPath, BindingPath).pipe(
|
|
83387
83387
|
filter(([a, b]) => a !== b, {
|
|
@@ -83392,18 +83392,18 @@ const bindingSchema = Union2(BindingPath, SplitBinding).annotations({
|
|
|
83392
83392
|
title: "绑定路径",
|
|
83393
83393
|
description: "写入表单状态的 `dot-prop` 路径;填写单个路径时写入 `[start, end]` 数值数组,例如 `score.range`;填写 `[起始路径, 结束路径]` 元组时分别写入两端;留空则为非受控字段"
|
|
83394
83394
|
});
|
|
83395
|
-
const metadata$
|
|
83395
|
+
const metadata$u = {
|
|
83396
83396
|
name: "数值范围",
|
|
83397
83397
|
icon: "fluent:arrow-bidirectional-left-right-20-regular",
|
|
83398
83398
|
w: { initial: 8, min: 4, max: Infinity },
|
|
83399
83399
|
h: { initial: 2, min: 2, max: 2 }
|
|
83400
83400
|
};
|
|
83401
|
-
function schema$
|
|
83401
|
+
function schema$u(configure) {
|
|
83402
83402
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
83403
83403
|
const CelNumber = Expression({ configure, resultType: "number" });
|
|
83404
83404
|
return Struct({
|
|
83405
|
-
type: Literal2(type$
|
|
83406
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
83405
|
+
type: Literal2(type$u),
|
|
83406
|
+
compatibilityDate: Literal2(compatibilityDate$u),
|
|
83407
83407
|
...commonFieldFields(configure),
|
|
83408
83408
|
label: optional(Locale.annotations({
|
|
83409
83409
|
title: "标签",
|
|
@@ -83465,30 +83465,30 @@ function schema$t(configure) {
|
|
|
83465
83465
|
description: "数值范围输入"
|
|
83466
83466
|
});
|
|
83467
83467
|
}
|
|
83468
|
-
function defaults$
|
|
83468
|
+
function defaults$4() {
|
|
83469
83469
|
return { rangeSeparatorIcon: "fluent:arrow-right-20-regular" };
|
|
83470
83470
|
}
|
|
83471
83471
|
const __vite_glob_0_12$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
83472
83472
|
__proto__: null,
|
|
83473
|
-
compatibilityDate: compatibilityDate$
|
|
83474
|
-
defaults: defaults$
|
|
83475
|
-
metadata: metadata$
|
|
83476
|
-
schema: schema$
|
|
83477
|
-
type: type$
|
|
83473
|
+
compatibilityDate: compatibilityDate$u,
|
|
83474
|
+
defaults: defaults$4,
|
|
83475
|
+
metadata: metadata$u,
|
|
83476
|
+
schema: schema$u,
|
|
83477
|
+
type: type$u
|
|
83478
83478
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
83479
|
-
const type$
|
|
83480
|
-
const compatibilityDate$
|
|
83481
|
-
const metadata$
|
|
83479
|
+
const type$t = "com.shwfed.form.field.switch";
|
|
83480
|
+
const compatibilityDate$t = "2026-04-28";
|
|
83481
|
+
const metadata$t = {
|
|
83482
83482
|
name: "开关",
|
|
83483
83483
|
icon: "fluent:toggle-left-20-regular",
|
|
83484
83484
|
w: { initial: 4, min: 4, max: Infinity },
|
|
83485
83485
|
h: { initial: 2, min: 2, max: 2 }
|
|
83486
83486
|
};
|
|
83487
|
-
function schema$
|
|
83487
|
+
function schema$t(configure) {
|
|
83488
83488
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
83489
83489
|
return Struct({
|
|
83490
|
-
type: Literal2(type$
|
|
83491
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
83490
|
+
type: Literal2(type$t),
|
|
83491
|
+
compatibilityDate: Literal2(compatibilityDate$t),
|
|
83492
83492
|
...commonFieldFields(configure),
|
|
83493
83493
|
label: optional(Locale.annotations({
|
|
83494
83494
|
title: "标签",
|
|
@@ -83526,10 +83526,10 @@ function schema$s(configure) {
|
|
|
83526
83526
|
}
|
|
83527
83527
|
const __vite_glob_0_13$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
83528
83528
|
__proto__: null,
|
|
83529
|
-
compatibilityDate: compatibilityDate$
|
|
83530
|
-
metadata: metadata$
|
|
83531
|
-
schema: schema$
|
|
83532
|
-
type: type$
|
|
83529
|
+
compatibilityDate: compatibilityDate$t,
|
|
83530
|
+
metadata: metadata$t,
|
|
83531
|
+
schema: schema$t,
|
|
83532
|
+
type: type$t
|
|
83533
83533
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
83534
83534
|
const decodeCache = {};
|
|
83535
83535
|
function getDecodeCache(exclude2) {
|
|
@@ -88780,9 +88780,9 @@ function interpolateMarkdown(template, $cel, context2) {
|
|
|
88780
88780
|
}
|
|
88781
88781
|
});
|
|
88782
88782
|
}
|
|
88783
|
-
const type$
|
|
88784
|
-
const compatibilityDate$
|
|
88785
|
-
const metadata$
|
|
88783
|
+
const type$s = "com.shwfed.form.field.combobox.single";
|
|
88784
|
+
const compatibilityDate$s = "2026-04-29";
|
|
88785
|
+
const metadata$s = {
|
|
88786
88786
|
name: "下拉单选(硬编码)",
|
|
88787
88787
|
icon: "fluent:chevron-down-20-regular",
|
|
88788
88788
|
w: { initial: 8, min: 4, max: Infinity },
|
|
@@ -88817,12 +88817,12 @@ function itemSchema$3(configure) {
|
|
|
88817
88817
|
title: "ComboboxSingleItem"
|
|
88818
88818
|
});
|
|
88819
88819
|
}
|
|
88820
|
-
function schema$
|
|
88820
|
+
function schema$s(configure) {
|
|
88821
88821
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
88822
88822
|
const Item = itemSchema$3(configure);
|
|
88823
88823
|
return Struct({
|
|
88824
|
-
type: Literal2(type$
|
|
88825
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
88824
|
+
type: Literal2(type$s),
|
|
88825
|
+
compatibilityDate: Literal2(compatibilityDate$s),
|
|
88826
88826
|
...commonFieldFields(configure),
|
|
88827
88827
|
label: optional(Locale.annotations({
|
|
88828
88828
|
title: "标签",
|
|
@@ -88914,23 +88914,23 @@ const migrate$2 = (prev, ctx) => {
|
|
|
88914
88914
|
} = legacy;
|
|
88915
88915
|
return {
|
|
88916
88916
|
...carryover,
|
|
88917
|
-
compatibilityDate: compatibilityDate$
|
|
88917
|
+
compatibilityDate: compatibilityDate$s,
|
|
88918
88918
|
items: items2
|
|
88919
88919
|
};
|
|
88920
88920
|
});
|
|
88921
88921
|
};
|
|
88922
88922
|
const __vite_glob_0_14$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
88923
88923
|
__proto__: null,
|
|
88924
|
-
compatibilityDate: compatibilityDate$
|
|
88924
|
+
compatibilityDate: compatibilityDate$s,
|
|
88925
88925
|
itemSchema: itemSchema$3,
|
|
88926
|
-
metadata: metadata$
|
|
88926
|
+
metadata: metadata$s,
|
|
88927
88927
|
migrate: migrate$2,
|
|
88928
|
-
schema: schema$
|
|
88929
|
-
type: type$
|
|
88928
|
+
schema: schema$s,
|
|
88929
|
+
type: type$s
|
|
88930
88930
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
88931
|
-
const type$
|
|
88932
|
-
const compatibilityDate$
|
|
88933
|
-
const metadata$
|
|
88931
|
+
const type$r = "com.shwfed.form.field.upload";
|
|
88932
|
+
const compatibilityDate$r = "2026-05-12";
|
|
88933
|
+
const metadata$r = {
|
|
88934
88934
|
name: "文件上传",
|
|
88935
88935
|
icon: "fluent:cloud-arrow-up-20-regular",
|
|
88936
88936
|
w: { initial: 8, min: 8, max: Infinity },
|
|
@@ -88947,14 +88947,14 @@ function configureWithJson$1(configure) {
|
|
|
88947
88947
|
env.registerVariable("json", JSON_VAR$1.type, { description: JSON_VAR$1.description });
|
|
88948
88948
|
};
|
|
88949
88949
|
}
|
|
88950
|
-
function schema$
|
|
88950
|
+
function schema$r(configure) {
|
|
88951
88951
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
88952
88952
|
const CelHttpRequest = Expression({ configure, resultType: "HttpRequest" });
|
|
88953
88953
|
const CelDownloadRequest = Expression({ configure: configureWithJson$1(configure), resultType: "HttpRequest" });
|
|
88954
88954
|
const LocaleMd = LocaleMarkdown({ configure });
|
|
88955
88955
|
return Struct({
|
|
88956
|
-
type: Literal2(type$
|
|
88957
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
88956
|
+
type: Literal2(type$r),
|
|
88957
|
+
compatibilityDate: Literal2(compatibilityDate$r),
|
|
88958
88958
|
...commonFieldFields(configure),
|
|
88959
88959
|
label: optional(Locale.annotations({
|
|
88960
88960
|
title: "标签",
|
|
@@ -89034,14 +89034,14 @@ function schema$q(configure) {
|
|
|
89034
89034
|
const __vite_glob_0_15 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
89035
89035
|
__proto__: null,
|
|
89036
89036
|
JSON_VAR: JSON_VAR$1,
|
|
89037
|
-
compatibilityDate: compatibilityDate$
|
|
89038
|
-
metadata: metadata$
|
|
89039
|
-
schema: schema$
|
|
89040
|
-
type: type$
|
|
89037
|
+
compatibilityDate: compatibilityDate$r,
|
|
89038
|
+
metadata: metadata$r,
|
|
89039
|
+
schema: schema$r,
|
|
89040
|
+
type: type$r
|
|
89041
89041
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
89042
|
-
const type$
|
|
89043
|
-
const compatibilityDate$
|
|
89044
|
-
const metadata$
|
|
89042
|
+
const type$q = "com.shwfed.form.field.combobox.single.remote";
|
|
89043
|
+
const compatibilityDate$q = "2026-05-13";
|
|
89044
|
+
const metadata$q = {
|
|
89045
89045
|
name: "下拉单选(远程)",
|
|
89046
89046
|
icon: "fluent:cloud-arrow-down-20-regular",
|
|
89047
89047
|
w: { initial: 8, min: 4, max: Infinity },
|
|
@@ -89070,15 +89070,15 @@ function configureWithJson(configure) {
|
|
|
89070
89070
|
};
|
|
89071
89071
|
}
|
|
89072
89072
|
const isListType$1 = (actual) => actual === "dyn" || actual.startsWith("list");
|
|
89073
|
-
function schema$
|
|
89073
|
+
function schema$q(configure) {
|
|
89074
89074
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
89075
89075
|
const CelHttpRequest = Expression({ configure, resultType: "HttpRequest" });
|
|
89076
89076
|
const CelOptions = Expression({ configure: configureWithJson(configure), resultType: isListType$1 });
|
|
89077
89077
|
const CelOptionValue = Expression({ configure: configureWithOption(configure), resultType: "dyn" });
|
|
89078
89078
|
const LocaleOptionLabel = LocaleMarkdown({ configure: configureWithOption(configure) });
|
|
89079
89079
|
return Struct({
|
|
89080
|
-
type: Literal2(type$
|
|
89081
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
89080
|
+
type: Literal2(type$q),
|
|
89081
|
+
compatibilityDate: Literal2(compatibilityDate$q),
|
|
89082
89082
|
...commonFieldFields(configure),
|
|
89083
89083
|
label: optional(Locale.annotations({
|
|
89084
89084
|
title: "标签",
|
|
@@ -89131,20 +89131,20 @@ const __vite_glob_0_16 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
89131
89131
|
__proto__: null,
|
|
89132
89132
|
JSON_VAR,
|
|
89133
89133
|
OPTION_VAR,
|
|
89134
|
-
compatibilityDate: compatibilityDate$
|
|
89135
|
-
metadata: metadata$
|
|
89136
|
-
schema: schema$
|
|
89137
|
-
type: type$
|
|
89134
|
+
compatibilityDate: compatibilityDate$q,
|
|
89135
|
+
metadata: metadata$q,
|
|
89136
|
+
schema: schema$q,
|
|
89137
|
+
type: type$q
|
|
89138
89138
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
89139
|
-
const type$
|
|
89140
|
-
const compatibilityDate$
|
|
89141
|
-
const metadata$
|
|
89139
|
+
const type$p = "com.shwfed.form.field.list";
|
|
89140
|
+
const compatibilityDate$p = "2026-05-13";
|
|
89141
|
+
const metadata$p = {
|
|
89142
89142
|
name: "列表",
|
|
89143
89143
|
icon: "fluent:list-20-regular",
|
|
89144
89144
|
w: { initial: 12, min: 4, max: Infinity },
|
|
89145
89145
|
h: { initial: 6, min: 4, max: Infinity, grow: true }
|
|
89146
89146
|
};
|
|
89147
|
-
function schema$
|
|
89147
|
+
function schema$p(configure) {
|
|
89148
89148
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
89149
89149
|
const unitConfigure = (env) => {
|
|
89150
89150
|
configure(env);
|
|
@@ -89158,8 +89158,8 @@ function schema$o(configure) {
|
|
|
89158
89158
|
};
|
|
89159
89159
|
const Unit = suspend(() => FormUnit(unitConfigure));
|
|
89160
89160
|
return Struct({
|
|
89161
|
-
type: Literal2(type$
|
|
89162
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
89161
|
+
type: Literal2(type$p),
|
|
89162
|
+
compatibilityDate: Literal2(compatibilityDate$p),
|
|
89163
89163
|
...commonFieldFields(configure),
|
|
89164
89164
|
label: optional(Locale.annotations({
|
|
89165
89165
|
title: "标签",
|
|
@@ -89216,7 +89216,7 @@ function schema$o(configure) {
|
|
|
89216
89216
|
description: "可新增/删除/重排的同构子表单列表"
|
|
89217
89217
|
});
|
|
89218
89218
|
}
|
|
89219
|
-
function defaults$
|
|
89219
|
+
function defaults$3() {
|
|
89220
89220
|
return {
|
|
89221
89221
|
unit: {
|
|
89222
89222
|
fields: [],
|
|
@@ -89226,15 +89226,15 @@ function defaults$2() {
|
|
|
89226
89226
|
}
|
|
89227
89227
|
const __vite_glob_0_17 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
89228
89228
|
__proto__: null,
|
|
89229
|
-
compatibilityDate: compatibilityDate$
|
|
89230
|
-
defaults: defaults$
|
|
89231
|
-
metadata: metadata$
|
|
89232
|
-
schema: schema$
|
|
89233
|
-
type: type$
|
|
89229
|
+
compatibilityDate: compatibilityDate$p,
|
|
89230
|
+
defaults: defaults$3,
|
|
89231
|
+
metadata: metadata$p,
|
|
89232
|
+
schema: schema$p,
|
|
89233
|
+
type: type$p
|
|
89234
89234
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
89235
|
-
const type$
|
|
89236
|
-
const compatibilityDate$
|
|
89237
|
-
const metadata$
|
|
89235
|
+
const type$o = "com.shwfed.form.field.checkbox.group";
|
|
89236
|
+
const compatibilityDate$o = "2026-05-17";
|
|
89237
|
+
const metadata$o = {
|
|
89238
89238
|
name: "复选框组",
|
|
89239
89239
|
icon: "fluent:checkbox-checked-20-regular",
|
|
89240
89240
|
w: { initial: 8, min: 2, max: Infinity },
|
|
@@ -89269,12 +89269,12 @@ function itemSchema$2(configure) {
|
|
|
89269
89269
|
title: "CheckboxGroupItem"
|
|
89270
89270
|
});
|
|
89271
89271
|
}
|
|
89272
|
-
function schema$
|
|
89272
|
+
function schema$o(configure) {
|
|
89273
89273
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
89274
89274
|
const Item = itemSchema$2(configure);
|
|
89275
89275
|
return Struct({
|
|
89276
|
-
type: Literal2(type$
|
|
89277
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
89276
|
+
type: Literal2(type$o),
|
|
89277
|
+
compatibilityDate: Literal2(compatibilityDate$o),
|
|
89278
89278
|
...commonFieldFields(configure),
|
|
89279
89279
|
label: optional(Locale.annotations({
|
|
89280
89280
|
title: "标签",
|
|
@@ -89308,15 +89308,15 @@ function schema$n(configure) {
|
|
|
89308
89308
|
}
|
|
89309
89309
|
const __vite_glob_0_18 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
89310
89310
|
__proto__: null,
|
|
89311
|
-
compatibilityDate: compatibilityDate$
|
|
89311
|
+
compatibilityDate: compatibilityDate$o,
|
|
89312
89312
|
itemSchema: itemSchema$2,
|
|
89313
|
-
metadata: metadata$
|
|
89314
|
-
schema: schema$
|
|
89315
|
-
type: type$
|
|
89313
|
+
metadata: metadata$o,
|
|
89314
|
+
schema: schema$o,
|
|
89315
|
+
type: type$o
|
|
89316
89316
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
89317
|
-
const type$
|
|
89318
|
-
const compatibilityDate$
|
|
89319
|
-
const metadata$
|
|
89317
|
+
const type$n = "com.shwfed.form.field.radio.group";
|
|
89318
|
+
const compatibilityDate$n = "2026-05-17";
|
|
89319
|
+
const metadata$n = {
|
|
89320
89320
|
name: "单选框组",
|
|
89321
89321
|
icon: "fluent:radio-button-20-regular",
|
|
89322
89322
|
w: { initial: 8, min: 2, max: Infinity },
|
|
@@ -89351,12 +89351,12 @@ function itemSchema$1(configure) {
|
|
|
89351
89351
|
title: "RadioGroupItem"
|
|
89352
89352
|
});
|
|
89353
89353
|
}
|
|
89354
|
-
function schema$
|
|
89354
|
+
function schema$n(configure) {
|
|
89355
89355
|
const CelBool = Expression({ configure, resultType: "bool" });
|
|
89356
89356
|
const Item = itemSchema$1(configure);
|
|
89357
89357
|
return Struct({
|
|
89358
|
-
type: Literal2(type$
|
|
89359
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
89358
|
+
type: Literal2(type$n),
|
|
89359
|
+
compatibilityDate: Literal2(compatibilityDate$n),
|
|
89360
89360
|
...commonFieldFields(configure),
|
|
89361
89361
|
label: optional(Locale.annotations({
|
|
89362
89362
|
title: "标签",
|
|
@@ -89390,11 +89390,11 @@ function schema$m(configure) {
|
|
|
89390
89390
|
}
|
|
89391
89391
|
const __vite_glob_0_19 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
89392
89392
|
__proto__: null,
|
|
89393
|
-
compatibilityDate: compatibilityDate$
|
|
89393
|
+
compatibilityDate: compatibilityDate$n,
|
|
89394
89394
|
itemSchema: itemSchema$1,
|
|
89395
|
-
metadata: metadata$
|
|
89396
|
-
schema: schema$
|
|
89397
|
-
type: type$
|
|
89395
|
+
metadata: metadata$n,
|
|
89396
|
+
schema: schema$n,
|
|
89397
|
+
type: type$n
|
|
89398
89398
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
89399
89399
|
const matchIconName = /^[a-z0-9]+(-[a-z0-9]+)*$/;
|
|
89400
89400
|
const stringToIcon = (value, validate2, allowSimpleName, provider = "") => {
|
|
@@ -90878,14 +90878,14 @@ function LocaleMarkdownWithRow(configure) {
|
|
|
90878
90878
|
function derivedRowField(configure, resultType) {
|
|
90879
90879
|
return derivedField(configureWithRow(configure), resultType);
|
|
90880
90880
|
}
|
|
90881
|
-
const type$
|
|
90882
|
-
const compatibilityDate$
|
|
90883
|
-
const metadata$
|
|
90881
|
+
const type$m = "com.shwfed.table.column.actions";
|
|
90882
|
+
const compatibilityDate$m = "2026-04-14";
|
|
90883
|
+
const metadata$m = {
|
|
90884
90884
|
name: "操作",
|
|
90885
90885
|
icon: "fluent:cursor-click-20-regular"
|
|
90886
90886
|
};
|
|
90887
90887
|
const registerRowVariables = registerRowVariablesIfAbsent;
|
|
90888
|
-
function schema$
|
|
90888
|
+
function schema$m(configure) {
|
|
90889
90889
|
const configureWithRow2 = (env) => {
|
|
90890
90890
|
configure(env);
|
|
90891
90891
|
registerRowVariables(env);
|
|
@@ -90893,8 +90893,8 @@ function schema$l(configure) {
|
|
|
90893
90893
|
const { fields: actionFields } = ActionSchemaFields(configureWithRow2);
|
|
90894
90894
|
const { size: _buttonSize, ...actionFieldsForColumn } = actionFields;
|
|
90895
90895
|
return Struct({
|
|
90896
|
-
type: Literal2(type$
|
|
90897
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
90896
|
+
type: Literal2(type$m),
|
|
90897
|
+
compatibilityDate: Literal2(compatibilityDate$m),
|
|
90898
90898
|
...columnIdentityFields(),
|
|
90899
90899
|
title: optional(Locale.annotations({ title: "标题", description: "列标题" })),
|
|
90900
90900
|
size: optional(Number$.pipe(finite(), positive()).annotations({
|
|
@@ -90921,23 +90921,23 @@ function toColumnDef$e(value, { getLocaleText }) {
|
|
|
90921
90921
|
}
|
|
90922
90922
|
const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
90923
90923
|
__proto__: null,
|
|
90924
|
-
compatibilityDate: compatibilityDate$
|
|
90925
|
-
metadata: metadata$
|
|
90924
|
+
compatibilityDate: compatibilityDate$m,
|
|
90925
|
+
metadata: metadata$m,
|
|
90926
90926
|
registerRowVariables,
|
|
90927
|
-
schema: schema$
|
|
90927
|
+
schema: schema$m,
|
|
90928
90928
|
toColumnDef: toColumnDef$e,
|
|
90929
|
-
type: type$
|
|
90929
|
+
type: type$m
|
|
90930
90930
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
90931
|
-
const type$
|
|
90932
|
-
const compatibilityDate$
|
|
90933
|
-
const metadata$
|
|
90931
|
+
const type$l = "com.shwfed.table.column.date";
|
|
90932
|
+
const compatibilityDate$l = "2026-04-14";
|
|
90933
|
+
const metadata$l = {
|
|
90934
90934
|
name: "日期",
|
|
90935
90935
|
icon: "fluent:calendar-ltr-20-regular"
|
|
90936
90936
|
};
|
|
90937
|
-
function schema$
|
|
90937
|
+
function schema$l(configure) {
|
|
90938
90938
|
return Struct({
|
|
90939
|
-
type: Literal2(type$
|
|
90940
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
90939
|
+
type: Literal2(type$l),
|
|
90940
|
+
compatibilityDate: Literal2(compatibilityDate$l),
|
|
90941
90941
|
...columnFields(configure),
|
|
90942
90942
|
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "left" }),
|
|
90943
90943
|
format: String$.annotations({
|
|
@@ -90969,22 +90969,22 @@ function toColumnDef$d(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
90969
90969
|
}
|
|
90970
90970
|
const __vite_glob_0_1$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
90971
90971
|
__proto__: null,
|
|
90972
|
-
compatibilityDate: compatibilityDate$
|
|
90973
|
-
metadata: metadata$
|
|
90974
|
-
schema: schema$
|
|
90972
|
+
compatibilityDate: compatibilityDate$l,
|
|
90973
|
+
metadata: metadata$l,
|
|
90974
|
+
schema: schema$l,
|
|
90975
90975
|
toColumnDef: toColumnDef$d,
|
|
90976
|
-
type: type$
|
|
90976
|
+
type: type$l
|
|
90977
90977
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
90978
|
-
const type$
|
|
90979
|
-
const compatibilityDate$
|
|
90980
|
-
const metadata$
|
|
90978
|
+
const type$k = "com.shwfed.table.column.icon";
|
|
90979
|
+
const compatibilityDate$k = "2026-04-14";
|
|
90980
|
+
const metadata$k = {
|
|
90981
90981
|
name: "图标",
|
|
90982
90982
|
icon: "fluent:shapes-20-regular"
|
|
90983
90983
|
};
|
|
90984
|
-
function schema$
|
|
90984
|
+
function schema$k(configure) {
|
|
90985
90985
|
return Struct({
|
|
90986
|
-
type: Literal2(type$
|
|
90987
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
90986
|
+
type: Literal2(type$k),
|
|
90987
|
+
compatibilityDate: Literal2(compatibilityDate$k),
|
|
90988
90988
|
...columnFields(configure),
|
|
90989
90989
|
accessor: CelRowAccess(configure).annotations({
|
|
90990
90990
|
title: "图标",
|
|
@@ -91020,25 +91020,25 @@ function toColumnDef$c(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
91020
91020
|
}
|
|
91021
91021
|
const __vite_glob_0_2$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91022
91022
|
__proto__: null,
|
|
91023
|
-
compatibilityDate: compatibilityDate$
|
|
91024
|
-
metadata: metadata$
|
|
91025
|
-
schema: schema$
|
|
91023
|
+
compatibilityDate: compatibilityDate$k,
|
|
91024
|
+
metadata: metadata$k,
|
|
91025
|
+
schema: schema$k,
|
|
91026
91026
|
toColumnDef: toColumnDef$c,
|
|
91027
|
-
type: type$
|
|
91027
|
+
type: type$k
|
|
91028
91028
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91029
|
-
const type$
|
|
91030
|
-
const compatibilityDate$
|
|
91031
|
-
const metadata$
|
|
91029
|
+
const type$j = "com.shwfed.table.column.markdown";
|
|
91030
|
+
const compatibilityDate$j = "2026-04-14";
|
|
91031
|
+
const metadata$j = {
|
|
91032
91032
|
name: "MD",
|
|
91033
91033
|
icon: "fluent:markdown-20-regular"
|
|
91034
91034
|
};
|
|
91035
91035
|
const isCopyExpressionType$1 = (t) => t === "string" || t === "dyn" || t.startsWith("optional");
|
|
91036
|
-
function schema$
|
|
91036
|
+
function schema$j(configure) {
|
|
91037
91037
|
const cel = CelRowAccess(configure, { resultType: isCopyExpressionType$1 });
|
|
91038
91038
|
const localeMarkdown = LocaleMarkdownWithRow(configure);
|
|
91039
91039
|
return Struct({
|
|
91040
|
-
type: Literal2(type$
|
|
91041
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91040
|
+
type: Literal2(type$j),
|
|
91041
|
+
compatibilityDate: Literal2(compatibilityDate$j),
|
|
91042
91042
|
...columnIdentityFields(),
|
|
91043
91043
|
title: Locale.annotations({ title: "标题", description: "列标题" }),
|
|
91044
91044
|
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "left" }),
|
|
@@ -91077,22 +91077,22 @@ function toColumnDef$b(value, { getLocaleText }) {
|
|
|
91077
91077
|
}
|
|
91078
91078
|
const __vite_glob_0_3$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91079
91079
|
__proto__: null,
|
|
91080
|
-
compatibilityDate: compatibilityDate$
|
|
91081
|
-
metadata: metadata$
|
|
91082
|
-
schema: schema$
|
|
91080
|
+
compatibilityDate: compatibilityDate$j,
|
|
91081
|
+
metadata: metadata$j,
|
|
91082
|
+
schema: schema$j,
|
|
91083
91083
|
toColumnDef: toColumnDef$b,
|
|
91084
|
-
type: type$
|
|
91084
|
+
type: type$j
|
|
91085
91085
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91086
|
-
const type$
|
|
91087
|
-
const compatibilityDate$
|
|
91088
|
-
const metadata$
|
|
91086
|
+
const type$i = "com.shwfed.table.column.number";
|
|
91087
|
+
const compatibilityDate$i = "2026-04-14";
|
|
91088
|
+
const metadata$i = {
|
|
91089
91089
|
name: "数值",
|
|
91090
91090
|
icon: "fluent:number-symbol-20-regular"
|
|
91091
91091
|
};
|
|
91092
|
-
function schema$
|
|
91092
|
+
function schema$i(configure) {
|
|
91093
91093
|
return Struct({
|
|
91094
|
-
type: Literal2(type$
|
|
91095
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91094
|
+
type: Literal2(type$i),
|
|
91095
|
+
compatibilityDate: Literal2(compatibilityDate$i),
|
|
91096
91096
|
...columnFields(configure),
|
|
91097
91097
|
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "right" }),
|
|
91098
91098
|
displayMode: optionalWith(
|
|
@@ -91133,24 +91133,24 @@ function toColumnDef$a(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
91133
91133
|
}
|
|
91134
91134
|
const __vite_glob_0_4$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91135
91135
|
__proto__: null,
|
|
91136
|
-
compatibilityDate: compatibilityDate$
|
|
91137
|
-
metadata: metadata$
|
|
91138
|
-
schema: schema$
|
|
91136
|
+
compatibilityDate: compatibilityDate$i,
|
|
91137
|
+
metadata: metadata$i,
|
|
91138
|
+
schema: schema$i,
|
|
91139
91139
|
toColumnDef: toColumnDef$a,
|
|
91140
|
-
type: type$
|
|
91140
|
+
type: type$i
|
|
91141
91141
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91142
91142
|
const __vite_glob_2_5 = {};
|
|
91143
91143
|
const _stubVue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91144
91144
|
__proto__: null,
|
|
91145
91145
|
default: __vite_glob_2_5
|
|
91146
91146
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91147
|
-
const type$
|
|
91148
|
-
const compatibilityDate$
|
|
91149
|
-
const metadata$
|
|
91147
|
+
const type$h = "com.shwfed.table.column.select";
|
|
91148
|
+
const compatibilityDate$h = "2026-04-14";
|
|
91149
|
+
const metadata$h = {
|
|
91150
91150
|
name: "选择",
|
|
91151
91151
|
icon: "fluent:checkbox-checked-20-regular"
|
|
91152
91152
|
};
|
|
91153
|
-
function schema$
|
|
91153
|
+
function schema$h(configure) {
|
|
91154
91154
|
const CelRowSelectionPredicate = Expression({
|
|
91155
91155
|
configure: (env) => {
|
|
91156
91156
|
configure(env);
|
|
@@ -91159,8 +91159,8 @@ function schema$g(configure) {
|
|
|
91159
91159
|
resultType: "bool"
|
|
91160
91160
|
});
|
|
91161
91161
|
return Struct({
|
|
91162
|
-
type: Literal2(type$
|
|
91163
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91162
|
+
type: Literal2(type$h),
|
|
91163
|
+
compatibilityDate: Literal2(compatibilityDate$h),
|
|
91164
91164
|
...columnIdentityFields(),
|
|
91165
91165
|
mode: optionalWith(Literal2("radio", "checkbox").annotations({
|
|
91166
91166
|
title: "模式",
|
|
@@ -91191,24 +91191,24 @@ function toColumnDef$9(value) {
|
|
|
91191
91191
|
}
|
|
91192
91192
|
const __vite_glob_0_5$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91193
91193
|
__proto__: null,
|
|
91194
|
-
compatibilityDate: compatibilityDate$
|
|
91195
|
-
metadata: metadata$
|
|
91196
|
-
schema: schema$
|
|
91194
|
+
compatibilityDate: compatibilityDate$h,
|
|
91195
|
+
metadata: metadata$h,
|
|
91196
|
+
schema: schema$h,
|
|
91197
91197
|
toColumnDef: toColumnDef$9,
|
|
91198
|
-
type: type$
|
|
91198
|
+
type: type$h
|
|
91199
91199
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91200
|
-
const type$
|
|
91201
|
-
const compatibilityDate$
|
|
91202
|
-
const metadata$
|
|
91200
|
+
const type$g = "com.shwfed.table.column.text";
|
|
91201
|
+
const compatibilityDate$g = "2026-04-14";
|
|
91202
|
+
const metadata$g = {
|
|
91203
91203
|
name: "文本",
|
|
91204
91204
|
icon: "fluent:text-field-20-regular"
|
|
91205
91205
|
};
|
|
91206
91206
|
const isCopyExpressionType = (t) => t === "string" || t === "dyn" || t.startsWith("optional");
|
|
91207
|
-
function schema$
|
|
91207
|
+
function schema$g(configure) {
|
|
91208
91208
|
const cel = CelRowAccess(configure, { resultType: isCopyExpressionType });
|
|
91209
91209
|
return Struct({
|
|
91210
|
-
type: Literal2(type$
|
|
91211
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91210
|
+
type: Literal2(type$g),
|
|
91211
|
+
compatibilityDate: Literal2(compatibilityDate$g),
|
|
91212
91212
|
...columnFields(configure),
|
|
91213
91213
|
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "left" }),
|
|
91214
91214
|
displayMode: optionalWith(
|
|
@@ -91246,19 +91246,19 @@ function toColumnDef$8(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
91246
91246
|
}
|
|
91247
91247
|
const __vite_glob_0_6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91248
91248
|
__proto__: null,
|
|
91249
|
-
compatibilityDate: compatibilityDate$
|
|
91250
|
-
metadata: metadata$
|
|
91251
|
-
schema: schema$
|
|
91249
|
+
compatibilityDate: compatibilityDate$g,
|
|
91250
|
+
metadata: metadata$g,
|
|
91251
|
+
schema: schema$g,
|
|
91252
91252
|
toColumnDef: toColumnDef$8,
|
|
91253
|
-
type: type$
|
|
91253
|
+
type: type$g
|
|
91254
91254
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91255
|
-
const type$
|
|
91256
|
-
const compatibilityDate$
|
|
91257
|
-
const metadata$
|
|
91255
|
+
const type$f = "com.shwfed.table.column.switch.remote";
|
|
91256
|
+
const compatibilityDate$f = "2026-05-13";
|
|
91257
|
+
const metadata$f = {
|
|
91258
91258
|
name: "开关(远程)",
|
|
91259
91259
|
icon: "fluent:toggle-left-20-regular"
|
|
91260
91260
|
};
|
|
91261
|
-
function schema$
|
|
91261
|
+
function schema$f(configure) {
|
|
91262
91262
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
91263
91263
|
const CelOnChange = Expression({
|
|
91264
91264
|
configure: (env) => {
|
|
@@ -91276,8 +91276,8 @@ function schema$e(configure) {
|
|
|
91276
91276
|
resultType: "string"
|
|
91277
91277
|
});
|
|
91278
91278
|
return Struct({
|
|
91279
|
-
type: Literal2(type$
|
|
91280
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91279
|
+
type: Literal2(type$f),
|
|
91280
|
+
compatibilityDate: Literal2(compatibilityDate$f),
|
|
91281
91281
|
...columnFields(configure),
|
|
91282
91282
|
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "center" }),
|
|
91283
91283
|
disabled: optional(CelBool.annotations({
|
|
@@ -91299,14 +91299,14 @@ function schema$e(configure) {
|
|
|
91299
91299
|
}).annotations({ title: "SwitchRenderer", description: "开关渲染器(可编辑)" });
|
|
91300
91300
|
}
|
|
91301
91301
|
const migrateFrom$1 = [
|
|
91302
|
-
{ type: "com.shwfed.table.column.switch", compatibilityDate: compatibilityDate$
|
|
91302
|
+
{ type: "com.shwfed.table.column.switch", compatibilityDate: compatibilityDate$f }
|
|
91303
91303
|
];
|
|
91304
91304
|
const migrate$1 = (prev) => try_({
|
|
91305
91305
|
try: () => {
|
|
91306
91306
|
if (!prev || typeof prev !== "object") {
|
|
91307
91307
|
throw new Error("开关(远程)迁移失败:原值不是对象");
|
|
91308
91308
|
}
|
|
91309
|
-
return { ...prev, type: type$
|
|
91309
|
+
return { ...prev, type: type$f, compatibilityDate: compatibilityDate$f };
|
|
91310
91310
|
},
|
|
91311
91311
|
catch: (e) => e instanceof Error ? e : new Error(String(e))
|
|
91312
91312
|
});
|
|
@@ -91332,21 +91332,21 @@ function toColumnDef$7(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
91332
91332
|
}
|
|
91333
91333
|
const __vite_glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91334
91334
|
__proto__: null,
|
|
91335
|
-
compatibilityDate: compatibilityDate$
|
|
91336
|
-
metadata: metadata$
|
|
91335
|
+
compatibilityDate: compatibilityDate$f,
|
|
91336
|
+
metadata: metadata$f,
|
|
91337
91337
|
migrate: migrate$1,
|
|
91338
91338
|
migrateFrom: migrateFrom$1,
|
|
91339
|
-
schema: schema$
|
|
91339
|
+
schema: schema$f,
|
|
91340
91340
|
toColumnDef: toColumnDef$7,
|
|
91341
|
-
type: type$
|
|
91341
|
+
type: type$f
|
|
91342
91342
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91343
|
-
const type$
|
|
91344
|
-
const compatibilityDate$
|
|
91345
|
-
const metadata$
|
|
91343
|
+
const type$e = "com.shwfed.table.column.switch";
|
|
91344
|
+
const compatibilityDate$e = "2026-05-13";
|
|
91345
|
+
const metadata$e = {
|
|
91346
91346
|
name: "开关(远程)",
|
|
91347
91347
|
icon: "fluent:toggle-left-20-regular"
|
|
91348
91348
|
};
|
|
91349
|
-
function schema$
|
|
91349
|
+
function schema$e(configure) {
|
|
91350
91350
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
91351
91351
|
const CelOnChange = Expression({
|
|
91352
91352
|
configure: (env) => {
|
|
@@ -91364,8 +91364,8 @@ function schema$d(configure) {
|
|
|
91364
91364
|
resultType: "string"
|
|
91365
91365
|
});
|
|
91366
91366
|
return Struct({
|
|
91367
|
-
type: Literal2(type$
|
|
91368
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91367
|
+
type: Literal2(type$e),
|
|
91368
|
+
compatibilityDate: Literal2(compatibilityDate$e),
|
|
91369
91369
|
...columnFields(configure),
|
|
91370
91370
|
align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "center" }),
|
|
91371
91371
|
disabled: optional(CelBool.annotations({
|
|
@@ -91408,11 +91408,11 @@ function toColumnDef$6(value, { getLocaleText, $cel, inheritedContext }) {
|
|
|
91408
91408
|
}
|
|
91409
91409
|
const __vite_glob_0_8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91410
91410
|
__proto__: null,
|
|
91411
|
-
compatibilityDate: compatibilityDate$
|
|
91412
|
-
metadata: metadata$
|
|
91413
|
-
schema: schema$
|
|
91411
|
+
compatibilityDate: compatibilityDate$e,
|
|
91412
|
+
metadata: metadata$e,
|
|
91413
|
+
schema: schema$e,
|
|
91414
91414
|
toColumnDef: toColumnDef$6,
|
|
91415
|
-
type: type$
|
|
91415
|
+
type: type$e
|
|
91416
91416
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91417
91417
|
const isObject$1 = (value) => {
|
|
91418
91418
|
const type2 = typeof value;
|
|
@@ -91611,9 +91611,9 @@ function getProperty(object2, path, value) {
|
|
|
91611
91611
|
}
|
|
91612
91612
|
return object2 === void 0 ? value : object2;
|
|
91613
91613
|
}
|
|
91614
|
-
const type$
|
|
91615
|
-
const compatibilityDate$
|
|
91616
|
-
const metadata$
|
|
91614
|
+
const type$d = "com.shwfed.table.column.combobox-single";
|
|
91615
|
+
const compatibilityDate$d = "2026-05-20";
|
|
91616
|
+
const metadata$d = {
|
|
91617
91617
|
name: "下拉单选",
|
|
91618
91618
|
icon: "fluent:chevron-down-20-regular"
|
|
91619
91619
|
};
|
|
@@ -91646,12 +91646,12 @@ function itemSchema(configure) {
|
|
|
91646
91646
|
title: "ComboboxSingleItem"
|
|
91647
91647
|
});
|
|
91648
91648
|
}
|
|
91649
|
-
function schema$
|
|
91649
|
+
function schema$d(configure) {
|
|
91650
91650
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
91651
91651
|
const Item = itemSchema(configure);
|
|
91652
91652
|
return Struct({
|
|
91653
|
-
type: Literal2(type$
|
|
91654
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91653
|
+
type: Literal2(type$d),
|
|
91654
|
+
compatibilityDate: Literal2(compatibilityDate$d),
|
|
91655
91655
|
...editableColumnFields(),
|
|
91656
91656
|
placeholder: optional(Locale.annotations({
|
|
91657
91657
|
title: "占位符",
|
|
@@ -91699,25 +91699,25 @@ function toColumnDef$5(value, { getLocaleText }) {
|
|
|
91699
91699
|
}
|
|
91700
91700
|
const __vite_glob_0_9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91701
91701
|
__proto__: null,
|
|
91702
|
-
compatibilityDate: compatibilityDate$
|
|
91702
|
+
compatibilityDate: compatibilityDate$d,
|
|
91703
91703
|
itemSchema,
|
|
91704
|
-
metadata: metadata$
|
|
91705
|
-
schema: schema$
|
|
91704
|
+
metadata: metadata$d,
|
|
91705
|
+
schema: schema$d,
|
|
91706
91706
|
toColumnDef: toColumnDef$5,
|
|
91707
|
-
type: type$
|
|
91707
|
+
type: type$d
|
|
91708
91708
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91709
|
-
const type$
|
|
91710
|
-
const compatibilityDate$
|
|
91711
|
-
const metadata$
|
|
91709
|
+
const type$c = "com.shwfed.table.column.number-input";
|
|
91710
|
+
const compatibilityDate$c = "2026-05-20";
|
|
91711
|
+
const metadata$c = {
|
|
91712
91712
|
name: "数值输入",
|
|
91713
91713
|
icon: "fluent:number-symbol-20-regular"
|
|
91714
91714
|
};
|
|
91715
|
-
function schema$
|
|
91715
|
+
function schema$c(configure) {
|
|
91716
91716
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
91717
91717
|
const CelNumber = CelRowAccess(configure, { resultType: "number" });
|
|
91718
91718
|
return Struct({
|
|
91719
|
-
type: Literal2(type$
|
|
91720
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91719
|
+
type: Literal2(type$c),
|
|
91720
|
+
compatibilityDate: Literal2(compatibilityDate$c),
|
|
91721
91721
|
...editableColumnFields(),
|
|
91722
91722
|
placeholder: optional(Locale.annotations({
|
|
91723
91723
|
title: "占位符",
|
|
@@ -91785,23 +91785,23 @@ function toColumnDef$4(value, { getLocaleText }) {
|
|
|
91785
91785
|
}
|
|
91786
91786
|
const __vite_glob_0_10 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91787
91787
|
__proto__: null,
|
|
91788
|
-
compatibilityDate: compatibilityDate$
|
|
91789
|
-
metadata: metadata$
|
|
91790
|
-
schema: schema$
|
|
91788
|
+
compatibilityDate: compatibilityDate$c,
|
|
91789
|
+
metadata: metadata$c,
|
|
91790
|
+
schema: schema$c,
|
|
91791
91791
|
toColumnDef: toColumnDef$4,
|
|
91792
|
-
type: type$
|
|
91792
|
+
type: type$c
|
|
91793
91793
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91794
|
-
const type$
|
|
91795
|
-
const compatibilityDate$
|
|
91796
|
-
const metadata$
|
|
91794
|
+
const type$b = "com.shwfed.table.column.switch.local";
|
|
91795
|
+
const compatibilityDate$b = "2026-05-20";
|
|
91796
|
+
const metadata$b = {
|
|
91797
91797
|
name: "开关",
|
|
91798
91798
|
icon: "fluent:toggle-left-20-regular"
|
|
91799
91799
|
};
|
|
91800
|
-
function schema$
|
|
91800
|
+
function schema$b(configure) {
|
|
91801
91801
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
91802
91802
|
return Struct({
|
|
91803
|
-
type: Literal2(type$
|
|
91804
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91803
|
+
type: Literal2(type$b),
|
|
91804
|
+
compatibilityDate: Literal2(compatibilityDate$b),
|
|
91805
91805
|
...editableColumnFields(),
|
|
91806
91806
|
hidden: optional(CelBool.annotations({
|
|
91807
91807
|
title: "隐藏条件",
|
|
@@ -91827,14 +91827,14 @@ function schema$a(configure) {
|
|
|
91827
91827
|
}).annotations({ title: "SwitchRenderer", description: "开关渲染器(可编辑、本地)" });
|
|
91828
91828
|
}
|
|
91829
91829
|
const migrateFrom = [
|
|
91830
|
-
{ type: "com.shwfed.table.column.switch", compatibilityDate: compatibilityDate$
|
|
91830
|
+
{ type: "com.shwfed.table.column.switch", compatibilityDate: compatibilityDate$b }
|
|
91831
91831
|
];
|
|
91832
91832
|
const migrate = (prev) => try_({
|
|
91833
91833
|
try: () => {
|
|
91834
91834
|
if (!prev || typeof prev !== "object") {
|
|
91835
91835
|
throw new Error("开关(本地)迁移失败:原值不是对象");
|
|
91836
91836
|
}
|
|
91837
|
-
return { ...prev, type: type$
|
|
91837
|
+
return { ...prev, type: type$b, compatibilityDate: compatibilityDate$b };
|
|
91838
91838
|
},
|
|
91839
91839
|
catch: (e) => e instanceof Error ? e : new Error(String(e))
|
|
91840
91840
|
});
|
|
@@ -91860,25 +91860,25 @@ function toColumnDef$3(value, { getLocaleText }) {
|
|
|
91860
91860
|
}
|
|
91861
91861
|
const __vite_glob_0_11 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91862
91862
|
__proto__: null,
|
|
91863
|
-
compatibilityDate: compatibilityDate$
|
|
91864
|
-
metadata: metadata$
|
|
91863
|
+
compatibilityDate: compatibilityDate$b,
|
|
91864
|
+
metadata: metadata$b,
|
|
91865
91865
|
migrate,
|
|
91866
91866
|
migrateFrom,
|
|
91867
|
-
schema: schema$
|
|
91867
|
+
schema: schema$b,
|
|
91868
91868
|
toColumnDef: toColumnDef$3,
|
|
91869
|
-
type: type$
|
|
91869
|
+
type: type$b
|
|
91870
91870
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91871
|
-
const type$
|
|
91872
|
-
const compatibilityDate$
|
|
91873
|
-
const metadata$
|
|
91871
|
+
const type$a = "com.shwfed.table.column.switch";
|
|
91872
|
+
const compatibilityDate$a = "2026-05-20";
|
|
91873
|
+
const metadata$a = {
|
|
91874
91874
|
name: "开关",
|
|
91875
91875
|
icon: "fluent:toggle-left-20-regular"
|
|
91876
91876
|
};
|
|
91877
|
-
function schema$
|
|
91877
|
+
function schema$a(configure) {
|
|
91878
91878
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
91879
91879
|
return Struct({
|
|
91880
|
-
type: Literal2(type$
|
|
91881
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91880
|
+
type: Literal2(type$a),
|
|
91881
|
+
compatibilityDate: Literal2(compatibilityDate$a),
|
|
91882
91882
|
...editableColumnFields(),
|
|
91883
91883
|
hidden: optional(CelBool.annotations({
|
|
91884
91884
|
title: "隐藏条件",
|
|
@@ -91925,23 +91925,23 @@ function toColumnDef$2(value, { getLocaleText }) {
|
|
|
91925
91925
|
}
|
|
91926
91926
|
const __vite_glob_0_12 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91927
91927
|
__proto__: null,
|
|
91928
|
-
compatibilityDate: compatibilityDate$
|
|
91929
|
-
metadata: metadata$
|
|
91930
|
-
schema: schema$
|
|
91928
|
+
compatibilityDate: compatibilityDate$a,
|
|
91929
|
+
metadata: metadata$a,
|
|
91930
|
+
schema: schema$a,
|
|
91931
91931
|
toColumnDef: toColumnDef$2,
|
|
91932
|
-
type: type$
|
|
91932
|
+
type: type$a
|
|
91933
91933
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91934
|
-
const type$
|
|
91935
|
-
const compatibilityDate$
|
|
91936
|
-
const metadata$
|
|
91934
|
+
const type$9 = "com.shwfed.table.column.text-input";
|
|
91935
|
+
const compatibilityDate$9 = "2026-05-20";
|
|
91936
|
+
const metadata$9 = {
|
|
91937
91937
|
name: "文本输入",
|
|
91938
91938
|
icon: "fluent:text-field-20-regular"
|
|
91939
91939
|
};
|
|
91940
|
-
function schema$
|
|
91940
|
+
function schema$9(configure) {
|
|
91941
91941
|
const CelBool = CelRowAccess(configure, { resultType: "bool" });
|
|
91942
91942
|
return Struct({
|
|
91943
|
-
type: Literal2(type$
|
|
91944
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91943
|
+
type: Literal2(type$9),
|
|
91944
|
+
compatibilityDate: Literal2(compatibilityDate$9),
|
|
91945
91945
|
...editableColumnFields(),
|
|
91946
91946
|
placeholder: optional(Locale.annotations({
|
|
91947
91947
|
title: "占位符",
|
|
@@ -91982,22 +91982,22 @@ function toColumnDef$1(value, { getLocaleText }) {
|
|
|
91982
91982
|
}
|
|
91983
91983
|
const __vite_glob_0_13 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
91984
91984
|
__proto__: null,
|
|
91985
|
-
compatibilityDate: compatibilityDate$
|
|
91986
|
-
metadata: metadata$
|
|
91987
|
-
schema: schema$
|
|
91985
|
+
compatibilityDate: compatibilityDate$9,
|
|
91986
|
+
metadata: metadata$9,
|
|
91987
|
+
schema: schema$9,
|
|
91988
91988
|
toColumnDef: toColumnDef$1,
|
|
91989
|
-
type: type$
|
|
91989
|
+
type: type$9
|
|
91990
91990
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
91991
|
-
const type$
|
|
91992
|
-
const compatibilityDate$
|
|
91993
|
-
const metadata$
|
|
91991
|
+
const type$8 = "com.shwfed.table.column.drag-handle";
|
|
91992
|
+
const compatibilityDate$8 = "2026-05-21";
|
|
91993
|
+
const metadata$8 = {
|
|
91994
91994
|
name: "拖拽",
|
|
91995
91995
|
icon: "fluent:re-order-dots-vertical-20-regular"
|
|
91996
91996
|
};
|
|
91997
|
-
function schema$
|
|
91997
|
+
function schema$8(_configure) {
|
|
91998
91998
|
return Struct({
|
|
91999
|
-
type: Literal2(type$
|
|
92000
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
91999
|
+
type: Literal2(type$8),
|
|
92000
|
+
compatibilityDate: Literal2(compatibilityDate$8),
|
|
92001
92001
|
...columnIdentityFields()
|
|
92002
92002
|
}).annotations({ title: "DragHandleRenderer", description: "行拖拽手柄列" });
|
|
92003
92003
|
}
|
|
@@ -92017,11 +92017,11 @@ function toColumnDef(_value) {
|
|
|
92017
92017
|
}
|
|
92018
92018
|
const __vite_glob_0_14 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
92019
92019
|
__proto__: null,
|
|
92020
|
-
compatibilityDate: compatibilityDate$
|
|
92021
|
-
metadata: metadata$
|
|
92022
|
-
schema: schema$
|
|
92020
|
+
compatibilityDate: compatibilityDate$8,
|
|
92021
|
+
metadata: metadata$8,
|
|
92022
|
+
schema: schema$8,
|
|
92023
92023
|
toColumnDef,
|
|
92024
|
-
type: type$
|
|
92024
|
+
type: type$8
|
|
92025
92025
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
92026
92026
|
const schemaModules$2 = /* @__PURE__ */ Object.assign({
|
|
92027
92027
|
"../columns/2026-04-14/com.shwfed.table.column.actions/schema.ts": __vite_glob_0_0,
|
|
@@ -92308,13 +92308,11 @@ const ColumnGroup = Struct({
|
|
|
92308
92308
|
description: "列分组定义"
|
|
92309
92309
|
});
|
|
92310
92310
|
const QUERY_VAR_DESCRIPTION = "搜索条件当前状态;未配置搜索条件时为空对象";
|
|
92311
|
-
function DataSource(configure) {
|
|
92311
|
+
function DataSource(configure, extras) {
|
|
92312
92312
|
const CelRequest = Expression({
|
|
92313
92313
|
configure: (env) => {
|
|
92314
92314
|
configure(env);
|
|
92315
|
-
env
|
|
92316
|
-
env.registerVariable("pageSize", "number", { description: "每页行数;未启用分页时为 0" });
|
|
92317
|
-
env.registerVariable("query", "dyn", { description: QUERY_VAR_DESCRIPTION });
|
|
92315
|
+
extras?.request?.(env);
|
|
92318
92316
|
},
|
|
92319
92317
|
resultType: "HttpRequest"
|
|
92320
92318
|
});
|
|
@@ -92324,10 +92322,35 @@ function DataSource(configure) {
|
|
|
92324
92322
|
env.registerVariable("json", "optional<dyn>", {
|
|
92325
92323
|
description: "HTTP 响应体(已解析 JSON);未配置 request 时为 none"
|
|
92326
92324
|
});
|
|
92327
|
-
env
|
|
92325
|
+
extras?.data?.(env);
|
|
92328
92326
|
},
|
|
92329
92327
|
resultType: (type2) => type2.startsWith("list") || type2 === "dyn" || type2.startsWith("optional")
|
|
92330
92328
|
});
|
|
92329
|
+
return Struct({
|
|
92330
|
+
request: optional(CelRequest).annotations({
|
|
92331
|
+
title: "请求",
|
|
92332
|
+
description: "可选的 HTTP 请求表达式;未配置时数据从 `data` 表达式中读取(通常引用上下文变量)"
|
|
92333
|
+
}),
|
|
92334
|
+
data: CelRows.annotations({
|
|
92335
|
+
title: "数据",
|
|
92336
|
+
description: "返回行数据列表(`list<dyn>`)的 CEL 表达式;在配置了 `request` 时可通过 `json` 引用响应体"
|
|
92337
|
+
})
|
|
92338
|
+
}).annotations({
|
|
92339
|
+
title: "DataSource",
|
|
92340
|
+
description: "数据源配置"
|
|
92341
|
+
});
|
|
92342
|
+
}
|
|
92343
|
+
function tableDataSource(configure) {
|
|
92344
|
+
const base2 = DataSource(configure, {
|
|
92345
|
+
request: (env) => {
|
|
92346
|
+
env.registerVariable("pageIndex", "number", { description: "当前页码(从 0 开始);未启用分页时为 0" });
|
|
92347
|
+
env.registerVariable("pageSize", "number", { description: "每页行数;未启用分页时为 0" });
|
|
92348
|
+
env.registerVariable("query", "dyn", { description: QUERY_VAR_DESCRIPTION });
|
|
92349
|
+
},
|
|
92350
|
+
data: (env) => {
|
|
92351
|
+
env.registerVariable("query", "dyn", { description: QUERY_VAR_DESCRIPTION });
|
|
92352
|
+
}
|
|
92353
|
+
});
|
|
92331
92354
|
const CelTotal = Expression({
|
|
92332
92355
|
configure: (env) => {
|
|
92333
92356
|
configure(env);
|
|
@@ -92339,14 +92362,7 @@ function DataSource(configure) {
|
|
|
92339
92362
|
resultType: (type2) => type2 === "number" || type2 === "dyn" || type2.startsWith("optional")
|
|
92340
92363
|
});
|
|
92341
92364
|
return Struct({
|
|
92342
|
-
|
|
92343
|
-
title: "请求",
|
|
92344
|
-
description: "可选的 HTTP 请求表达式;未配置时数据从 `data` 表达式中读取(通常引用上下文变量)"
|
|
92345
|
-
}),
|
|
92346
|
-
data: CelRows.annotations({
|
|
92347
|
-
title: "数据",
|
|
92348
|
-
description: "返回行数据列表(`list<dyn>`)的 CEL 表达式;在配置了 `request` 时可通过 `json` 引用响应体"
|
|
92349
|
-
}),
|
|
92365
|
+
...base2.fields,
|
|
92350
92366
|
total: optional(CelTotal).annotations({
|
|
92351
92367
|
title: "总数",
|
|
92352
92368
|
description: "返回总行数(`number`)的 CEL 表达式;配置后启用服务端分页,留空则走前端分页"
|
|
@@ -92379,7 +92395,7 @@ function TableConfig(configure) {
|
|
|
92379
92395
|
const CelRowKey = CelRowAccess(configure, {
|
|
92380
92396
|
resultType: (type2) => type2 === "string" || type2 === "number" || type2 === "dyn"
|
|
92381
92397
|
});
|
|
92382
|
-
const dataSourceSchema2 =
|
|
92398
|
+
const dataSourceSchema2 = tableDataSource(configure);
|
|
92383
92399
|
const { fields: actionFields } = ActionSchemaFields((env) => {
|
|
92384
92400
|
configure(env);
|
|
92385
92401
|
env.registerVariable("selected", "list<dyn>", {
|
|
@@ -92465,21 +92481,21 @@ function defaultTableConfig() {
|
|
|
92465
92481
|
: index % 2 == 1 ? { 'background-color': 'oklch(98.5% 0 0)' } : { 'background-color': 'white' }`
|
|
92466
92482
|
};
|
|
92467
92483
|
}
|
|
92468
|
-
const type$
|
|
92469
|
-
const compatibilityDate$
|
|
92470
|
-
const metadata$
|
|
92484
|
+
const type$7 = "com.shwfed.form.field.table";
|
|
92485
|
+
const compatibilityDate$7 = "2026-05-18";
|
|
92486
|
+
const metadata$7 = {
|
|
92471
92487
|
name: "表格",
|
|
92472
92488
|
icon: "fluent:table-20-regular",
|
|
92473
92489
|
w: { initial: 12, min: 6, max: Infinity },
|
|
92474
92490
|
h: { initial: 10, min: 5, max: Infinity, grow: true }
|
|
92475
92491
|
};
|
|
92476
|
-
function schema$
|
|
92492
|
+
function schema$7(configure) {
|
|
92477
92493
|
const Table = suspend(
|
|
92478
92494
|
() => TableConfig(configure)
|
|
92479
92495
|
);
|
|
92480
92496
|
return Struct({
|
|
92481
|
-
type: Literal2(type$
|
|
92482
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
92497
|
+
type: Literal2(type$7),
|
|
92498
|
+
compatibilityDate: Literal2(compatibilityDate$7),
|
|
92483
92499
|
...commonFieldFields(configure),
|
|
92484
92500
|
label: optional(Locale.annotations({
|
|
92485
92501
|
title: "标签",
|
|
@@ -92503,31 +92519,31 @@ function schema$6(configure) {
|
|
|
92503
92519
|
description: "把一个可本地编辑的表格嵌入表单,其实时数据写入绑定路径"
|
|
92504
92520
|
});
|
|
92505
92521
|
}
|
|
92506
|
-
function defaults$
|
|
92522
|
+
function defaults$2() {
|
|
92507
92523
|
const { dataSource: _omit, ...rest } = defaultTableConfig();
|
|
92508
92524
|
return { table: rest };
|
|
92509
92525
|
}
|
|
92510
92526
|
const __vite_glob_0_20 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
92511
92527
|
__proto__: null,
|
|
92512
|
-
compatibilityDate: compatibilityDate$
|
|
92513
|
-
defaults: defaults$
|
|
92514
|
-
metadata: metadata$
|
|
92515
|
-
schema: schema$
|
|
92516
|
-
type: type$
|
|
92528
|
+
compatibilityDate: compatibilityDate$7,
|
|
92529
|
+
defaults: defaults$2,
|
|
92530
|
+
metadata: metadata$7,
|
|
92531
|
+
schema: schema$7,
|
|
92532
|
+
type: type$7
|
|
92517
92533
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
92518
|
-
const type$
|
|
92519
|
-
const compatibilityDate$
|
|
92520
|
-
const metadata$
|
|
92534
|
+
const type$6 = "com.shwfed.form.field.collapsible";
|
|
92535
|
+
const compatibilityDate$6 = "2026-05-20";
|
|
92536
|
+
const metadata$6 = {
|
|
92521
92537
|
name: "可折叠区域",
|
|
92522
92538
|
icon: "fluent:chevron-down-20-regular",
|
|
92523
92539
|
w: { initial: 12, min: 4, max: Infinity },
|
|
92524
92540
|
h: { initial: 4, min: 2, max: Infinity, grow: true }
|
|
92525
92541
|
};
|
|
92526
|
-
function schema$
|
|
92542
|
+
function schema$6(configure) {
|
|
92527
92543
|
const Unit = suspend(() => FormUnit(configure));
|
|
92528
92544
|
return Struct({
|
|
92529
|
-
type: Literal2(type$
|
|
92530
|
-
compatibilityDate: Literal2(compatibilityDate$
|
|
92545
|
+
type: Literal2(type$6),
|
|
92546
|
+
compatibilityDate: Literal2(compatibilityDate$6),
|
|
92531
92547
|
id: UUID.annotations({ description: "字段唯一标识;布局通过该 id 引用字段" }),
|
|
92532
92548
|
displayName: optional(String$.annotations({
|
|
92533
92549
|
title: "内部名称",
|
|
@@ -92551,7 +92567,7 @@ function schema$5(configure) {
|
|
|
92551
92567
|
description: "带 Markdown 标题的可折叠区域,仅用于视觉分组,不影响字段在表单状态中的层级"
|
|
92552
92568
|
});
|
|
92553
92569
|
}
|
|
92554
|
-
function defaults() {
|
|
92570
|
+
function defaults$1() {
|
|
92555
92571
|
return {
|
|
92556
92572
|
header: [{ locale: "zh", message: "" }],
|
|
92557
92573
|
unit: {
|
|
@@ -92561,6 +92577,138 @@ function defaults() {
|
|
|
92561
92577
|
};
|
|
92562
92578
|
}
|
|
92563
92579
|
const __vite_glob_0_21 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
92580
|
+
__proto__: null,
|
|
92581
|
+
compatibilityDate: compatibilityDate$6,
|
|
92582
|
+
defaults: defaults$1,
|
|
92583
|
+
metadata: metadata$6,
|
|
92584
|
+
schema: schema$6,
|
|
92585
|
+
type: type$6
|
|
92586
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
92587
|
+
const type$5 = "com.shwfed.form.field.tree.multi";
|
|
92588
|
+
const compatibilityDate$5 = "2026-05-23";
|
|
92589
|
+
const metadata$5 = {
|
|
92590
|
+
name: "树(多选)",
|
|
92591
|
+
icon: "fluent:tree-evergreen-20-regular",
|
|
92592
|
+
w: { initial: 8, min: 4, max: Infinity },
|
|
92593
|
+
h: { initial: 8, min: 4, max: Infinity, grow: true }
|
|
92594
|
+
};
|
|
92595
|
+
function schema$5(configure) {
|
|
92596
|
+
const CelBool = Expression({ configure, resultType: "bool" });
|
|
92597
|
+
const nodeConfigure = (env) => {
|
|
92598
|
+
configure(env);
|
|
92599
|
+
env.registerVariable("node", "dyn", { description: "当前节点;由 `数据` 表达式返回的每一项" });
|
|
92600
|
+
};
|
|
92601
|
+
const CelNodeKey = Expression({
|
|
92602
|
+
configure: nodeConfigure,
|
|
92603
|
+
resultType: (t) => t === "string" || t === "number" || t === "dyn"
|
|
92604
|
+
});
|
|
92605
|
+
const CelNodeChildren = Expression({
|
|
92606
|
+
configure: nodeConfigure,
|
|
92607
|
+
// Accept lists, optional lists, and `dyn` — CEL infers an empty literal
|
|
92608
|
+
// such as `[]` as `list<dyn>` which a strict `list<dyn>` predicate would
|
|
92609
|
+
// accept, but a configured expression like `has(node.kids) ? node.kids :
|
|
92610
|
+
// null` lands on `dyn` once one branch is `null`. The looser predicate
|
|
92611
|
+
// mirrors the table's `data` expression.
|
|
92612
|
+
resultType: (t) => t === "dyn" || t.startsWith("list") || t.startsWith("optional")
|
|
92613
|
+
});
|
|
92614
|
+
const CelNodeBool = Expression({ configure: nodeConfigure, resultType: "bool" });
|
|
92615
|
+
const NodeLocaleMd = LocaleMarkdown({ configure: nodeConfigure });
|
|
92616
|
+
const CelKeywords = Expression({
|
|
92617
|
+
configure: nodeConfigure,
|
|
92618
|
+
// Empty list literals (`[]`) check as `list<dyn>`, and a
|
|
92619
|
+
// `node.?keywords` access lands on `optional<dyn>` — accept either by
|
|
92620
|
+
// sharing the same loose predicate the data expression uses.
|
|
92621
|
+
resultType: (t) => t === "dyn" || t.startsWith("list") || t.startsWith("optional")
|
|
92622
|
+
});
|
|
92623
|
+
return Struct({
|
|
92624
|
+
type: Literal2(type$5),
|
|
92625
|
+
compatibilityDate: Literal2(compatibilityDate$5),
|
|
92626
|
+
...commonFieldFields(configure),
|
|
92627
|
+
label: optional(Locale.annotations({
|
|
92628
|
+
title: "标签",
|
|
92629
|
+
description: "字段前展示的文本;留空则不渲染标签"
|
|
92630
|
+
})),
|
|
92631
|
+
tooltip: optional(Locale.annotations({
|
|
92632
|
+
title: "提示",
|
|
92633
|
+
description: "鼠标悬停在标签上时展示的说明"
|
|
92634
|
+
})),
|
|
92635
|
+
binding: optional(String$.pipe(minLength(1)).annotations({
|
|
92636
|
+
title: "绑定路径",
|
|
92637
|
+
description: "写入表单状态的 `dot-prop` 路径;写入值为已勾选节点 ID 的数组;留空则为非受控字段"
|
|
92638
|
+
})),
|
|
92639
|
+
disabled: optional(CelBool.annotations({
|
|
92640
|
+
title: "禁用条件",
|
|
92641
|
+
description: "返回 `true` 时仍渲染但不可勾选"
|
|
92642
|
+
})),
|
|
92643
|
+
readonly: optional(CelBool.annotations({
|
|
92644
|
+
title: "只读条件",
|
|
92645
|
+
description: "返回 `true` 时仅以纯文本展示当前已勾选节点的标签"
|
|
92646
|
+
})),
|
|
92647
|
+
derived: derivedField(configure, "dyn"),
|
|
92648
|
+
dataSource: DataSource(configure).annotations({
|
|
92649
|
+
title: "数据源",
|
|
92650
|
+
description: "返回完整树(根节点列表)的数据源;树通过 `节点子级` 表达式逐层向下读取子级"
|
|
92651
|
+
}),
|
|
92652
|
+
nodeKey: CelNodeKey.annotations({
|
|
92653
|
+
title: "节点 ID",
|
|
92654
|
+
description: "为每个节点计算稳定唯一 ID 的 CEL 表达式,可访问 `node`;运行时以字符串形式存储"
|
|
92655
|
+
}),
|
|
92656
|
+
nodeChildren: CelNodeChildren.annotations({
|
|
92657
|
+
title: "节点子级",
|
|
92658
|
+
description: "返回当前节点的子级列表的 CEL 表达式;返回 `none` / `null` 视为叶子节点"
|
|
92659
|
+
}),
|
|
92660
|
+
nodeLabel: NodeLocaleMd.annotations({
|
|
92661
|
+
title: "节点标签",
|
|
92662
|
+
description: "节点展示的本地化文本,支持 Markdown 与 `{{ node.foo }}` / `{{ form.foo }}` 插值"
|
|
92663
|
+
}),
|
|
92664
|
+
nodeTooltip: optional(NodeLocaleMd.annotations({
|
|
92665
|
+
title: "节点提示",
|
|
92666
|
+
description: "鼠标悬停在节点上时展示的本地化提示,支持 Markdown 与插值"
|
|
92667
|
+
})),
|
|
92668
|
+
nodeSelectable: optional(CelNodeBool.annotations({
|
|
92669
|
+
title: "节点可选条件",
|
|
92670
|
+
description: "返回 `true` 表示该节点可被勾选;级联选择仍尊重该条件"
|
|
92671
|
+
})),
|
|
92672
|
+
cascade: optionalWith(Literal2("independent", "cascade-down", "cascade-both"), {
|
|
92673
|
+
default: () => "cascade-both"
|
|
92674
|
+
}).annotations({
|
|
92675
|
+
title: "级联模式",
|
|
92676
|
+
description: "`独立`:仅勾选当前节点;`向下级联`:勾选父节点同时勾选所有可选后代;`双向级联`:在向下级联基础上,父节点反映后代勾选状态(部分选中显示为半选)"
|
|
92677
|
+
}),
|
|
92678
|
+
expandAll: optionalWith(Boolean$, { default: () => false }).annotations({
|
|
92679
|
+
title: "默认全部展开",
|
|
92680
|
+
description: "开启后挂载时展开所有非叶子节点"
|
|
92681
|
+
}),
|
|
92682
|
+
filter: optional(Struct({
|
|
92683
|
+
enabled: Boolean$.annotations({ title: "启用", description: "是否在树上方显示搜索输入框" }),
|
|
92684
|
+
label: optional(Locale.annotations({
|
|
92685
|
+
title: "标签",
|
|
92686
|
+
description: "搜索输入框的浮动标签;留空则使用默认值「搜索」"
|
|
92687
|
+
})),
|
|
92688
|
+
keywords: optional(CelKeywords.annotations({
|
|
92689
|
+
title: "额外关键词",
|
|
92690
|
+
description: "返回字符串列表的 CEL 表达式,可访问 `node`;匹配规则为「节点标签 或 任一关键词」包含搜索词(不区分大小写)"
|
|
92691
|
+
}))
|
|
92692
|
+
}).annotations({
|
|
92693
|
+
title: "过滤",
|
|
92694
|
+
description: "客户端过滤;过滤不会影响已选中的节点 ID"
|
|
92695
|
+
}))
|
|
92696
|
+
}).annotations({
|
|
92697
|
+
title: "TreeMultiField",
|
|
92698
|
+
description: "基于树形数据的多选输入"
|
|
92699
|
+
});
|
|
92700
|
+
}
|
|
92701
|
+
function defaults() {
|
|
92702
|
+
return {
|
|
92703
|
+
dataSource: { data: "[]" },
|
|
92704
|
+
nodeKey: "string(node.id)",
|
|
92705
|
+
nodeChildren: "has(node.children) ? node.children : null",
|
|
92706
|
+
nodeLabel: [{ locale: "zh", message: "{{ node.label }}" }],
|
|
92707
|
+
cascade: "cascade-both",
|
|
92708
|
+
expandAll: false
|
|
92709
|
+
};
|
|
92710
|
+
}
|
|
92711
|
+
const __vite_glob_0_22 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
92564
92712
|
__proto__: null,
|
|
92565
92713
|
compatibilityDate: compatibilityDate$5,
|
|
92566
92714
|
defaults,
|
|
@@ -92590,7 +92738,8 @@ const schemaModules$1 = /* @__PURE__ */ Object.assign({
|
|
|
92590
92738
|
"../fields/2026-05-17/com.shwfed.form.field.checkbox.group/schema.ts": __vite_glob_0_18,
|
|
92591
92739
|
"../fields/2026-05-17/com.shwfed.form.field.radio.group/schema.ts": __vite_glob_0_19,
|
|
92592
92740
|
"../fields/2026-05-18/com.shwfed.form.field.table/schema.ts": __vite_glob_0_20,
|
|
92593
|
-
"../fields/2026-05-20/com.shwfed.form.field.collapsible/schema.ts": __vite_glob_0_21
|
|
92741
|
+
"../fields/2026-05-20/com.shwfed.form.field.collapsible/schema.ts": __vite_glob_0_21,
|
|
92742
|
+
"../fields/2026-05-23/com.shwfed.form.field.tree.multi/schema.ts": __vite_glob_0_22
|
|
92594
92743
|
});
|
|
92595
92744
|
const configModules$1 = /* @__PURE__ */ Object.assign({
|
|
92596
92745
|
"../fields/2026-04-22/com.shwfed.form.field.markdown/config.vue": __vite_glob_2_5,
|
|
@@ -92614,7 +92763,8 @@ const configModules$1 = /* @__PURE__ */ Object.assign({
|
|
|
92614
92763
|
"../fields/2026-05-17/com.shwfed.form.field.checkbox.group/config.vue": __vite_glob_2_5,
|
|
92615
92764
|
"../fields/2026-05-17/com.shwfed.form.field.radio.group/config.vue": __vite_glob_2_5,
|
|
92616
92765
|
"../fields/2026-05-18/com.shwfed.form.field.table/config.vue": __vite_glob_2_5,
|
|
92617
|
-
"../fields/2026-05-20/com.shwfed.form.field.collapsible/config.vue": __vite_glob_2_5
|
|
92766
|
+
"../fields/2026-05-20/com.shwfed.form.field.collapsible/config.vue": __vite_glob_2_5,
|
|
92767
|
+
"../fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue": __vite_glob_2_5
|
|
92618
92768
|
});
|
|
92619
92769
|
const runtimeModules$1 = /* @__PURE__ */ Object.assign({
|
|
92620
92770
|
"../fields/2026-04-22/com.shwfed.form.field.markdown/runtime.vue": __vite_glob_2_5,
|
|
@@ -92638,7 +92788,8 @@ const runtimeModules$1 = /* @__PURE__ */ Object.assign({
|
|
|
92638
92788
|
"../fields/2026-05-17/com.shwfed.form.field.checkbox.group/runtime.vue": __vite_glob_2_5,
|
|
92639
92789
|
"../fields/2026-05-17/com.shwfed.form.field.radio.group/runtime.vue": __vite_glob_2_5,
|
|
92640
92790
|
"../fields/2026-05-18/com.shwfed.form.field.table/runtime.vue": __vite_glob_2_5,
|
|
92641
|
-
"../fields/2026-05-20/com.shwfed.form.field.collapsible/runtime.vue": __vite_glob_2_5
|
|
92791
|
+
"../fields/2026-05-20/com.shwfed.form.field.collapsible/runtime.vue": __vite_glob_2_5,
|
|
92792
|
+
"../fields/2026-05-23/com.shwfed.form.field.tree.multi/runtime.vue": __vite_glob_2_5
|
|
92642
92793
|
});
|
|
92643
92794
|
const sourceKey = (type2, compatibilityDate2) => `${type2}@${compatibilityDate2}`;
|
|
92644
92795
|
const registry$1 = defineRegistry({
|
|
@@ -93092,32 +93243,20 @@ function numberExpression(configure) {
|
|
|
93092
93243
|
});
|
|
93093
93244
|
}
|
|
93094
93245
|
function dataSourceSchema(configure) {
|
|
93095
|
-
const
|
|
93096
|
-
configure: (env) => {
|
|
93097
|
-
configure(env);
|
|
93098
|
-
},
|
|
93099
|
-
resultType: "HttpRequest"
|
|
93100
|
-
});
|
|
93101
|
-
const CelData = Expression({
|
|
93102
|
-
configure: (env) => {
|
|
93103
|
-
configure(env);
|
|
93104
|
-
env.registerVariable("json", "optional<dyn>", {
|
|
93105
|
-
description: "HTTP 响应体(已解析 JSON);未配置 request 时为 none"
|
|
93106
|
-
});
|
|
93107
|
-
},
|
|
93108
|
-
resultType: isListType
|
|
93109
|
-
});
|
|
93246
|
+
const base2 = DataSource(configure);
|
|
93110
93247
|
return Struct({
|
|
93111
93248
|
id: UUID.annotations({ description: "数据源唯一标识" }),
|
|
93112
93249
|
name: String$.pipe(pattern(/^[a-z_]\w*$/i)).annotations({
|
|
93113
93250
|
title: "变量名",
|
|
93114
93251
|
description: "在 X / Y 表达式中引用该数据源的 CEL 标识符(字母或下划线开头,仅含字母、数字、下划线)"
|
|
93115
93252
|
}),
|
|
93116
|
-
|
|
93253
|
+
// Chart-specific phrasing wins for chart UX: the `data` description ends
|
|
93254
|
+
// with "结果以上面的变量名暴露给 X / Y", which is chart-only context.
|
|
93255
|
+
request: base2.fields.request.annotations({
|
|
93117
93256
|
title: "请求",
|
|
93118
93257
|
description: "可选的 HTTP 请求表达式;未配置时数据直接从 `数据` 表达式读取(通常引用上下文变量)"
|
|
93119
93258
|
}),
|
|
93120
|
-
data:
|
|
93259
|
+
data: base2.fields.data.annotations({
|
|
93121
93260
|
title: "数据",
|
|
93122
93261
|
description: "返回一个列表(`list<dyn>`)的 CEL 表达式;配置了 `请求` 时可通过 `json` 引用响应体。结果以上面的变量名暴露给 X / Y"
|
|
93123
93262
|
})
|