@shwfed/config 2.3.10 → 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.
Files changed (111) hide show
  1. package/dist/mcp.mjs +946 -544
  2. package/dist/module.json +1 -1
  3. package/dist/preview/assets/{config-CyScbxXy.js → config-B-1L3Ra-.js} +1 -1
  4. package/dist/preview/assets/{config-ja_GMXxV.js → config-Cf5kO84H.js} +1 -1
  5. package/dist/preview/assets/{config-bxqg3yuv.js → config-DTQkLHVw.js} +1 -1
  6. package/dist/preview/assets/{config-HdWYFZ09.js → config-DqxN0Byp.js} +1 -1
  7. package/dist/preview/assets/{config-2R4XkSGs.js → config-QUQ71Eo6.js} +1 -1
  8. package/dist/preview/assets/{config-ykJZssgx.js → config-oO93sSer.js} +1 -1
  9. package/dist/preview/assets/{config-KcLrpkc1.js → config-sJ5XKUJy.js} +1 -1
  10. package/dist/preview/assets/{config-BxzDT_57.js → config-zCMkbPQt.js} +1 -1
  11. package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-CWyVRSOh.js → definition.vue_vue_type_script_setup_true_lang-D-OVRv68.js} +1 -1
  12. package/dist/preview/assets/index-Br_eXThF.css +1 -0
  13. package/dist/preview/assets/index-D8QyOVfp.js +637 -0
  14. package/dist/preview/assets/index-b_t8yWJJ.js +1 -0
  15. package/dist/preview/assets/{runtime-B8aUJIpn.js → runtime-10_7L7Gz.js} +1 -1
  16. package/dist/preview/assets/{runtime-CxA8fvQP.js → runtime-B2EP6060.js} +1 -1
  17. package/dist/preview/assets/{runtime-LBdh1D75.js → runtime-BxlgShjU.js} +1 -1
  18. package/dist/preview/assets/{runtime-DqZhDPHl.js → runtime-Cv2doZNu.js} +1 -1
  19. package/dist/preview/assets/{runtime-CpSiaWMP.js → runtime-CzDUrqSa.js} +1 -1
  20. package/dist/preview/assets/{runtime-D2K1s33u.js → runtime-DcYhXvSk.js} +1 -1
  21. package/dist/preview/assets/{runtime-DAXQmtLg.js → runtime-DlDhRVII.js} +1 -1
  22. package/dist/preview/assets/{runtime-C9XnvD5A.js → runtime-cmkN6aik.js} +1 -1
  23. package/dist/preview/index.html +2 -2
  24. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +1 -1
  25. package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.xy/schema.d.ts +4 -0
  26. package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.xy/schema.js +6 -17
  27. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +18 -18
  28. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +18 -18
  29. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.d.vue.ts +4 -4
  30. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue.d.ts +4 -4
  31. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +22 -22
  32. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +22 -22
  33. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/config.d.vue.ts +2 -2
  34. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.time/config.vue.d.ts +2 -2
  35. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.d.vue.ts +4 -4
  36. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.vue.d.ts +4 -4
  37. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.d.vue.ts +12 -12
  38. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.vue.d.ts +12 -12
  39. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.d.vue.ts +10 -10
  40. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.switch/config.vue.d.ts +10 -10
  41. package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/config.d.vue.ts +12 -12
  42. package/dist/runtime/components/form/fields/2026-05-12/com.shwfed.form.field.upload/config.vue.d.ts +12 -12
  43. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +133 -0
  44. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue +605 -0
  45. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +133 -0
  46. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/runtime.d.vue.ts +8 -0
  47. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/runtime.vue +324 -0
  48. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/runtime.vue.d.ts +8 -0
  49. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/schema.d.ts +99 -0
  50. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/schema.js +129 -0
  51. package/dist/runtime/components/form/unit-config.vue +8 -27
  52. package/dist/runtime/components/form/utils/resolve.d.ts +48 -9
  53. package/dist/runtime/components/form/utils/resolve.js +59 -5
  54. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/config.d.vue.ts +10 -0
  55. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/config.vue +305 -0
  56. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/config.vue.d.ts +10 -0
  57. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/runtime.d.vue.ts +9 -0
  58. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/runtime.vue +81 -0
  59. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/runtime.vue.d.ts +9 -0
  60. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.d.ts +55 -0
  61. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.js +82 -0
  62. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/config.d.vue.ts +10 -0
  63. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/config.vue +310 -0
  64. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/config.vue.d.ts +10 -0
  65. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/runtime.d.vue.ts +9 -0
  66. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/runtime.vue +81 -0
  67. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/runtime.vue.d.ts +9 -0
  68. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.d.ts +66 -0
  69. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.js +71 -0
  70. package/dist/runtime/components/table/config.d.vue.ts +2 -2
  71. package/dist/runtime/components/table/config.vue +7 -46
  72. package/dist/runtime/components/table/config.vue.d.ts +2 -2
  73. package/dist/runtime/components/table/schema.d.ts +9 -2
  74. package/dist/runtime/components/table/schema.js +30 -14
  75. package/dist/runtime/components/table/utils/resolve.d.ts +53 -0
  76. package/dist/runtime/components/table/utils/resolve.js +66 -1
  77. package/dist/runtime/components/ui/date-range-picker/DateRangePickerDateTimePanel.d.vue.ts +1 -1
  78. package/dist/runtime/components/ui/date-range-picker/DateRangePickerDateTimePanel.vue.d.ts +1 -1
  79. package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.d.vue.ts +1 -1
  80. package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.vue.d.ts +1 -1
  81. package/dist/runtime/components/ui/tree/Tree.d.vue.ts +57 -0
  82. package/dist/runtime/components/ui/tree/Tree.vue +325 -0
  83. package/dist/runtime/components/ui/tree/Tree.vue.d.ts +57 -0
  84. package/dist/runtime/components/ui/tree/TreeNode.d.vue.ts +53 -0
  85. package/dist/runtime/components/ui/tree/TreeNode.vue +299 -0
  86. package/dist/runtime/components/ui/tree/TreeNode.vue.d.ts +53 -0
  87. package/dist/runtime/components/ui/tree/index.d.ts +3 -0
  88. package/dist/runtime/components/ui/tree/index.js +2 -0
  89. package/dist/runtime/components/ui/tree/types.d.ts +120 -0
  90. package/dist/runtime/components/ui/tree/types.js +0 -0
  91. package/dist/runtime/components/ui/tree/useTreeState.d.ts +95 -0
  92. package/dist/runtime/components/ui/tree/useTreeState.js +369 -0
  93. package/dist/runtime/shims.d.ts +2 -0
  94. package/package.json +1 -1
  95. package/dist/preview/assets/index-BPKK3hGV.css +0 -1
  96. package/dist/preview/assets/index-D3pf2RjG.js +0 -1
  97. package/dist/preview/assets/index-OUd02U3g.js +0 -1075
  98. package/dist/runtime/components/form/ai/fields-button.d.vue.ts +0 -13
  99. package/dist/runtime/components/form/ai/fields-button.vue +0 -458
  100. package/dist/runtime/components/form/ai/fields-button.vue.d.ts +0 -13
  101. package/dist/runtime/components/form/ai/fields-task.md +0 -71
  102. package/dist/runtime/components/table/ai/columns-button.d.vue.ts +0 -12
  103. package/dist/runtime/components/table/ai/columns-button.vue +0 -491
  104. package/dist/runtime/components/table/ai/columns-button.vue.d.ts +0 -12
  105. package/dist/runtime/components/table/ai/columns-task.md +0 -53
  106. package/dist/runtime/components/table/ai/data-source-button.d.vue.ts +0 -20
  107. package/dist/runtime/components/table/ai/data-source-button.vue +0 -324
  108. package/dist/runtime/components/table/ai/data-source-button.vue.d.ts +0 -20
  109. package/dist/runtime/components/table/ai/data-source-task.md +0 -17
  110. package/dist/runtime/utils/ai/cel-prompt.d.ts +0 -11
  111. 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$7 = {};
14097
+ var defaults$8 = {};
14098
14098
  var hasRequiredDefaults;
14099
14099
  function requireDefaults() {
14100
- if (hasRequiredDefaults) return defaults$7;
14100
+ if (hasRequiredDefaults) return defaults$8;
14101
14101
  hasRequiredDefaults = 1;
14102
- Object.defineProperty(defaults$7, "__esModule", { value: true });
14103
- defaults$7.assignDefaults = void 0;
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$7.assignDefaults = assignDefaults;
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$7;
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$O = "object";
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$O,
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$N = {};
18519
+ var metadata$Q = {};
18520
18520
  var hasRequiredMetadata;
18521
18521
  function requireMetadata() {
18522
- if (hasRequiredMetadata) return metadata$N;
18522
+ if (hasRequiredMetadata) return metadata$Q;
18523
18523
  hasRequiredMetadata = 1;
18524
- Object.defineProperty(metadata$N, "__esModule", { value: true });
18525
- metadata$N.contentVocabulary = metadata$N.metadataVocabulary = void 0;
18526
- metadata$N.metadataVocabulary = [
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$N.contentVocabulary = [
18535
+ metadata$Q.contentVocabulary = [
18536
18536
  "contentMediaType",
18537
18537
  "contentEncoding",
18538
18538
  "contentSchema"
18539
18539
  ];
18540
- return metadata$N;
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$N = ["object", "boolean"];
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$N,
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$M = "com.shwfed.actions.button.http.request.json.confirm";
81621
- const compatibilityDate$M = "2026-04-18";
81622
- const metadata$M = {
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$M(configure) {
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$M(configure) {
81635
81635
  resultType: "string"
81636
81636
  });
81637
81637
  return Struct({
81638
- type: Literal2(type$M),
81639
- compatibilityDate: Literal2(compatibilityDate$M),
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$M(configure) {
81694
81694
  }
81695
81695
  const __vite_glob_0_0$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
81696
81696
  __proto__: null,
81697
- compatibilityDate: compatibilityDate$M,
81698
- metadata: metadata$M,
81699
- schema: schema$M,
81700
- type: type$M
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$L = "com.shwfed.actions.button.http.request.json";
81703
- const compatibilityDate$L = "2026-04-18";
81704
- const metadata$L = {
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$L(configure) {
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$L(configure) {
81717
81717
  resultType: "string"
81718
81718
  });
81719
81719
  return Struct({
81720
- type: Literal2(type$L),
81721
- compatibilityDate: Literal2(compatibilityDate$L),
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$L(configure) {
81764
81764
  }
81765
81765
  const __vite_glob_0_1$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
81766
81766
  __proto__: null,
81767
- compatibilityDate: compatibilityDate$L,
81768
- metadata: metadata$L,
81769
- schema: schema$L,
81770
- type: type$L
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$K = "com.shwfed.actions.button.prototype";
81773
- const compatibilityDate$K = "2026-04-18";
81774
- const metadata$K = {
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$K(_configure) {
81778
+ function schema$N(_configure) {
81779
81779
  return Struct({
81780
- type: Literal2(type$K),
81781
- compatibilityDate: Literal2(compatibilityDate$K)
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$K(_configure) {
81786
81786
  }
81787
81787
  const __vite_glob_0_2$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
81788
81788
  __proto__: null,
81789
- compatibilityDate: compatibilityDate$K,
81790
- metadata: metadata$K,
81791
- schema: schema$K,
81792
- type: type$K
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$J = "com.shwfed.actions.button.navigation";
81795
- const compatibilityDate$J = "2026-04-21";
81796
- const metadata$J = {
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$J(configure) {
81801
+ function schema$M(configure) {
81802
81802
  const CelUrl = Expression({ configure, resultType: "string" });
81803
81803
  return Struct({
81804
- type: Literal2(type$J),
81805
- compatibilityDate: Literal2(compatibilityDate$J),
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$J(configure) {
81818
81818
  }
81819
81819
  const __vite_glob_0_3$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
81820
81820
  __proto__: null,
81821
- compatibilityDate: compatibilityDate$J,
81822
- metadata: metadata$J,
81823
- schema: schema$J,
81824
- type: type$J
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$I = "com.shwfed.actions.button.modal.layout";
81834
- const compatibilityDate$I = "2026-05-11";
81835
- const metadata$I = {
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$I = {
81843
81843
  const CssLength = String$.pipe(
81844
81844
  filter((s) => s.trim().length > 0 || "不能为空字符串")
81845
81845
  );
81846
- function schema$I(configure) {
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$I),
81851
- compatibilityDate: Literal2(compatibilityDate$I),
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$I,
81880
+ compatibilityDate: compatibilityDate$L,
81881
81881
  defaultBody: defaultBody$6,
81882
- metadata: metadata$I,
81883
- schema: schema$I,
81884
- type: type$I
81882
+ metadata: metadata$L,
81883
+ schema: schema$L,
81884
+ type: type$L
81885
81885
  }, Symbol.toStringTag, { value: "Module" }));
81886
- const type$H = "com.shwfed.actions.button.event.dispatch";
81887
- const compatibilityDate$H = "2026-05-15";
81888
- const metadata$H = {
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$H(_configure) {
81892
+ function schema$K(_configure) {
81893
81893
  return Struct({
81894
- type: Literal2(type$H),
81895
- compatibilityDate: Literal2(compatibilityDate$H),
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$H(_configure) {
81903
81903
  }
81904
81904
  const __vite_glob_0_5$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
81905
81905
  __proto__: null,
81906
- compatibilityDate: compatibilityDate$H,
81907
- metadata: metadata$H,
81908
- schema: schema$H,
81909
- type: type$H
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$G = "com.shwfed.actions.button.http.download";
81912
- const compatibilityDate$G = "2026-05-21";
81913
- const metadata$G = {
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$G(configure) {
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$G),
81934
- compatibilityDate: Literal2(compatibilityDate$G),
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$G(configure) {
81994
81994
  const __vite_glob_0_6$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
81995
81995
  __proto__: null,
81996
81996
  JSON_VAR: JSON_VAR$2,
81997
- compatibilityDate: compatibilityDate$G,
81998
- metadata: metadata$G,
81999
- schema: schema$G,
82000
- type: type$G
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$F = "com.shwfed.actions.item.markdown";
82003
- const compatibilityDate$F = "2026-05-21";
82004
- const metadata$F = {
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$F(_configure) {
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$F),
82015
- compatibilityDate: Literal2(compatibilityDate$F),
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$F(_configure) {
82028
82028
  }
82029
82029
  const __vite_glob_3_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
82030
82030
  __proto__: null,
82031
- compatibilityDate: compatibilityDate$F,
82032
- metadata: metadata$F,
82033
- schema: schema$F,
82034
- type: type$F
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$E = "com.shwfed.block.actions";
82400
- const compatibilityDate$E = "2026-05-06";
82401
- const metadata$E = {
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$E(configure, _blockRef) {
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$E),
82412
- compatibilityDate: tag(compatibilityDate$E),
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$E,
82427
+ compatibilityDate: compatibilityDate$H,
82428
82428
  defaultBody: defaultBody$5,
82429
- metadata: metadata$E,
82430
- schema: schema$E,
82431
- type: type$E
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$D = "com.shwfed.form.field.markdown";
82479
- const compatibilityDate$D = "2026-04-22";
82480
- const metadata$D = {
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$D(configure) {
82486
+ function schema$G(configure) {
82487
82487
  return Struct({
82488
- type: Literal2(type$D),
82489
- compatibilityDate: Literal2(compatibilityDate$D),
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$D(configure) {
82499
82499
  }
82500
82500
  const __vite_glob_0_0$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
82501
82501
  __proto__: null,
82502
- compatibilityDate: compatibilityDate$D,
82503
- metadata: metadata$D,
82504
- schema: schema$D,
82505
- type: type$D
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$C = "com.shwfed.form.field.text";
82508
- const compatibilityDate$C = "2026-04-22";
82509
- const metadata$C = {
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$C(configure) {
82515
+ function schema$F(configure) {
82516
82516
  const CelBool = Expression({ configure, resultType: "bool" });
82517
82517
  return Struct({
82518
- type: Literal2(type$C),
82519
- compatibilityDate: Literal2(compatibilityDate$C),
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$C(configure) {
82551
82551
  }
82552
82552
  const __vite_glob_0_1$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
82553
82553
  __proto__: null,
82554
- compatibilityDate: compatibilityDate$C,
82555
- metadata: metadata$C,
82556
- schema: schema$C,
82557
- type: type$C
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$B = "com.shwfed.form.field.textarea";
82560
- const compatibilityDate$B = "2026-04-22";
82561
- const metadata$B = {
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$B(configure) {
82567
+ function schema$E(configure) {
82568
82568
  const CelBool = Expression({ configure, resultType: "bool" });
82569
82569
  return Struct({
82570
- type: Literal2(type$B),
82571
- compatibilityDate: Literal2(compatibilityDate$B),
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$B(configure) {
82607
82607
  }
82608
82608
  const __vite_glob_0_2$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
82609
82609
  __proto__: null,
82610
- compatibilityDate: compatibilityDate$B,
82611
- metadata: metadata$B,
82612
- schema: schema$B,
82613
- type: type$B
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$A = "com.shwfed.form.field.actions";
82616
- const compatibilityDate$A = "2026-04-24";
82617
- const metadata$A = {
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$A(configure) {
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$A),
82628
- compatibilityDate: Literal2(compatibilityDate$A),
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$A(configure) {
82639
82639
  }
82640
82640
  const __vite_glob_0_3$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
82641
82641
  __proto__: null,
82642
- compatibilityDate: compatibilityDate$A,
82643
- metadata: metadata$A,
82644
- schema: schema$A,
82645
- type: type$A
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$z = "com.shwfed.form.field.combobox.single";
82648
- const compatibilityDate$z = "2026-04-24";
82649
- const metadata$z = {
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$z(configure) {
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$z),
82669
- compatibilityDate: Literal2(compatibilityDate$z),
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$z(configure) {
82713
82713
  }
82714
82714
  const __vite_glob_0_4$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
82715
82715
  __proto__: null,
82716
- compatibilityDate: compatibilityDate$z,
82717
- metadata: metadata$z,
82718
- schema: schema$z,
82719
- type: type$z
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$y = "com.shwfed.form.field.date";
82722
- const compatibilityDate$y = "2026-04-27";
82723
- const metadata$y = {
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$y(configure) {
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$y),
82750
- compatibilityDate: Literal2(compatibilityDate$y),
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$y(configure) {
82794
82794
  }
82795
82795
  const __vite_glob_0_5$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
82796
82796
  __proto__: null,
82797
- compatibilityDate: compatibilityDate$y,
82798
- metadata: metadata$y,
82797
+ compatibilityDate: compatibilityDate$B,
82798
+ metadata: metadata$B,
82799
82799
  presetSchema: presetSchema$3,
82800
- schema: schema$y,
82801
- type: type$y
82800
+ schema: schema$B,
82801
+ type: type$B
82802
82802
  }, Symbol.toStringTag, { value: "Module" }));
82803
- const type$x = "com.shwfed.form.field.daterange";
82804
- const compatibilityDate$x = "2026-04-27";
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$x = {
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$x(configure) {
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$x),
82846
- compatibilityDate: Literal2(compatibilityDate$x),
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$x(configure) {
82897
82897
  description: "日期范围选择输入"
82898
82898
  });
82899
82899
  }
82900
- function defaults$6() {
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$x,
82906
- defaults: defaults$6,
82907
- metadata: metadata$x,
82905
+ compatibilityDate: compatibilityDate$A,
82906
+ defaults: defaults$7,
82907
+ metadata: metadata$A,
82908
82908
  presetSchema: presetSchema$2,
82909
- schema: schema$x,
82910
- type: type$x
82909
+ schema: schema$A,
82910
+ type: type$A
82911
82911
  }, Symbol.toStringTag, { value: "Module" }));
82912
- const type$w = "com.shwfed.form.field.datetime";
82913
- const compatibilityDate$w = "2026-04-27";
82914
- const metadata$w = {
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$w(configure) {
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$w),
82951
- compatibilityDate: Literal2(compatibilityDate$w),
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$w,
83010
- metadata: metadata$w,
83009
+ compatibilityDate: compatibilityDate$z,
83010
+ metadata: metadata$z,
83011
83011
  presetSchema: presetSchema$1,
83012
- schema: schema$w,
83013
- type: type$w
83012
+ schema: schema$z,
83013
+ type: type$z
83014
83014
  }, Symbol.toStringTag, { value: "Module" }));
83015
- const type$v = "com.shwfed.form.field.datetimerange";
83016
- const compatibilityDate$v = "2026-04-27";
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$v = {
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$v(configure) {
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$v),
83068
- compatibilityDate: Literal2(compatibilityDate$v),
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$v(configure) {
83127
83127
  description: "日期时间范围选择输入"
83128
83128
  });
83129
83129
  }
83130
- function defaults$5() {
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$v,
83139
- defaults: defaults$5,
83140
- metadata: metadata$v,
83138
+ compatibilityDate: compatibilityDate$y,
83139
+ defaults: defaults$6,
83140
+ metadata: metadata$y,
83141
83141
  presetSchema,
83142
- schema: schema$v,
83143
- type: type$v
83142
+ schema: schema$y,
83143
+ type: type$y
83144
83144
  }, Symbol.toStringTag, { value: "Module" }));
83145
- const type$u = "com.shwfed.form.field.time";
83146
- const compatibilityDate$u = "2026-04-27";
83147
- const metadata$u = {
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$u(configure) {
83163
+ function schema$x(configure) {
83164
83164
  const CelBool = Expression({ configure, resultType: "bool" });
83165
83165
  return Struct({
83166
- type: Literal2(type$u),
83167
- compatibilityDate: Literal2(compatibilityDate$u),
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$u,
83214
- metadata: metadata$u,
83215
- schema: schema$u,
83216
- type: type$u
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$t = "com.shwfed.form.field.timerange";
83219
- const compatibilityDate$t = "2026-04-27";
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$t = {
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$t(configure) {
83246
+ function schema$w(configure) {
83247
83247
  const CelBool = Expression({ configure, resultType: "bool" });
83248
83248
  return Struct({
83249
- type: Literal2(type$t),
83250
- compatibilityDate: Literal2(compatibilityDate$t),
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$t(configure) {
83289
83289
  description: "时间范围选择输入"
83290
83290
  });
83291
83291
  }
83292
- function defaults$4() {
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$t,
83301
- defaults: defaults$4,
83302
- metadata: metadata$t,
83303
- schema: schema$t,
83304
- type: type$t
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$s = "com.shwfed.form.field.number";
83307
- const compatibilityDate$s = "2026-04-28";
83308
- const metadata$s = {
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$s(configure) {
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$s),
83319
- compatibilityDate: Literal2(compatibilityDate$s),
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$s(configure) {
83375
83375
  }
83376
83376
  const __vite_glob_0_11$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
83377
83377
  __proto__: null,
83378
- compatibilityDate: compatibilityDate$s,
83379
- metadata: metadata$s,
83380
- schema: schema$s,
83381
- type: type$s
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$r = "com.shwfed.form.field.numberrange";
83384
- const compatibilityDate$r = "2026-04-28";
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$r = {
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$r(configure) {
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$r),
83406
- compatibilityDate: Literal2(compatibilityDate$r),
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$r(configure) {
83465
83465
  description: "数值范围输入"
83466
83466
  });
83467
83467
  }
83468
- function defaults$3() {
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$r,
83474
- defaults: defaults$3,
83475
- metadata: metadata$r,
83476
- schema: schema$r,
83477
- type: type$r
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$q = "com.shwfed.form.field.switch";
83480
- const compatibilityDate$q = "2026-04-28";
83481
- const metadata$q = {
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$q(configure) {
83487
+ function schema$t(configure) {
83488
83488
  const CelBool = Expression({ configure, resultType: "bool" });
83489
83489
  return Struct({
83490
- type: Literal2(type$q),
83491
- compatibilityDate: Literal2(compatibilityDate$q),
83490
+ type: Literal2(type$t),
83491
+ compatibilityDate: Literal2(compatibilityDate$t),
83492
83492
  ...commonFieldFields(configure),
83493
83493
  label: optional(Locale.annotations({
83494
83494
  title: "标签",
@@ -83524,12 +83524,12 @@ function schema$q(configure) {
83524
83524
  description: "布尔开关"
83525
83525
  });
83526
83526
  }
83527
- const __vite_glob_0_13 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
83527
+ const __vite_glob_0_13$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
83528
83528
  __proto__: null,
83529
- compatibilityDate: compatibilityDate$q,
83530
- metadata: metadata$q,
83531
- schema: schema$q,
83532
- type: type$q
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$p = "com.shwfed.form.field.combobox.single";
88784
- const compatibilityDate$p = "2026-04-29";
88785
- const metadata$p = {
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$p(configure) {
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$p),
88825
- compatibilityDate: Literal2(compatibilityDate$p),
88824
+ type: Literal2(type$s),
88825
+ compatibilityDate: Literal2(compatibilityDate$s),
88826
88826
  ...commonFieldFields(configure),
88827
88827
  label: optional(Locale.annotations({
88828
88828
  title: "标签",
@@ -88875,7 +88875,7 @@ function formatErrorMessage(err) {
88875
88875
  return String(err);
88876
88876
  }
88877
88877
  }
88878
- const migrate = (prev, ctx) => {
88878
+ const migrate$2 = (prev, ctx) => {
88879
88879
  const legacy = prev;
88880
88880
  return gen(function* () {
88881
88881
  const rawOptions = yield* mapError$1(
@@ -88914,23 +88914,23 @@ const migrate = (prev, ctx) => {
88914
88914
  } = legacy;
88915
88915
  return {
88916
88916
  ...carryover,
88917
- compatibilityDate: compatibilityDate$p,
88917
+ compatibilityDate: compatibilityDate$s,
88918
88918
  items: items2
88919
88919
  };
88920
88920
  });
88921
88921
  };
88922
- const __vite_glob_0_14 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
88922
+ const __vite_glob_0_14$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
88923
88923
  __proto__: null,
88924
- compatibilityDate: compatibilityDate$p,
88924
+ compatibilityDate: compatibilityDate$s,
88925
88925
  itemSchema: itemSchema$3,
88926
- metadata: metadata$p,
88927
- migrate,
88928
- schema: schema$p,
88929
- type: type$p
88926
+ metadata: metadata$s,
88927
+ migrate: migrate$2,
88928
+ schema: schema$s,
88929
+ type: type$s
88930
88930
  }, Symbol.toStringTag, { value: "Module" }));
88931
- const type$o = "com.shwfed.form.field.upload";
88932
- const compatibilityDate$o = "2026-05-12";
88933
- const metadata$o = {
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$o(configure) {
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$o),
88957
- compatibilityDate: Literal2(compatibilityDate$o),
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$o(configure) {
89034
89034
  const __vite_glob_0_15 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
89035
89035
  __proto__: null,
89036
89036
  JSON_VAR: JSON_VAR$1,
89037
- compatibilityDate: compatibilityDate$o,
89038
- metadata: metadata$o,
89039
- schema: schema$o,
89040
- type: type$o
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$n = "com.shwfed.form.field.combobox.single.remote";
89043
- const compatibilityDate$n = "2026-05-13";
89044
- const metadata$n = {
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$n(configure) {
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$n),
89081
- compatibilityDate: Literal2(compatibilityDate$n),
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$n,
89135
- metadata: metadata$n,
89136
- schema: schema$n,
89137
- type: type$n
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$m = "com.shwfed.form.field.list";
89140
- const compatibilityDate$m = "2026-05-13";
89141
- const metadata$m = {
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$m(configure) {
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$m(configure) {
89158
89158
  };
89159
89159
  const Unit = suspend(() => FormUnit(unitConfigure));
89160
89160
  return Struct({
89161
- type: Literal2(type$m),
89162
- compatibilityDate: Literal2(compatibilityDate$m),
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$m(configure) {
89216
89216
  description: "可新增/删除/重排的同构子表单列表"
89217
89217
  });
89218
89218
  }
89219
- function defaults$2() {
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$m,
89230
- defaults: defaults$2,
89231
- metadata: metadata$m,
89232
- schema: schema$m,
89233
- type: type$m
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$l = "com.shwfed.form.field.checkbox.group";
89236
- const compatibilityDate$l = "2026-05-17";
89237
- const metadata$l = {
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$l(configure) {
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$l),
89277
- compatibilityDate: Literal2(compatibilityDate$l),
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$l(configure) {
89308
89308
  }
89309
89309
  const __vite_glob_0_18 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
89310
89310
  __proto__: null,
89311
- compatibilityDate: compatibilityDate$l,
89311
+ compatibilityDate: compatibilityDate$o,
89312
89312
  itemSchema: itemSchema$2,
89313
- metadata: metadata$l,
89314
- schema: schema$l,
89315
- type: type$l
89313
+ metadata: metadata$o,
89314
+ schema: schema$o,
89315
+ type: type$o
89316
89316
  }, Symbol.toStringTag, { value: "Module" }));
89317
- const type$k = "com.shwfed.form.field.radio.group";
89318
- const compatibilityDate$k = "2026-05-17";
89319
- const metadata$k = {
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$k(configure) {
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$k),
89359
- compatibilityDate: Literal2(compatibilityDate$k),
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$k(configure) {
89390
89390
  }
89391
89391
  const __vite_glob_0_19 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
89392
89392
  __proto__: null,
89393
- compatibilityDate: compatibilityDate$k,
89393
+ compatibilityDate: compatibilityDate$n,
89394
89394
  itemSchema: itemSchema$1,
89395
- metadata: metadata$k,
89396
- schema: schema$k,
89397
- type: type$k
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$j = "com.shwfed.table.column.actions";
90882
- const compatibilityDate$j = "2026-04-14";
90883
- const metadata$j = {
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$j(configure) {
90888
+ function schema$m(configure) {
90889
90889
  const configureWithRow2 = (env) => {
90890
90890
  configure(env);
90891
90891
  registerRowVariables(env);
@@ -90893,8 +90893,8 @@ function schema$j(configure) {
90893
90893
  const { fields: actionFields } = ActionSchemaFields(configureWithRow2);
90894
90894
  const { size: _buttonSize, ...actionFieldsForColumn } = actionFields;
90895
90895
  return Struct({
90896
- type: Literal2(type$j),
90897
- compatibilityDate: Literal2(compatibilityDate$j),
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({
@@ -90908,7 +90908,7 @@ function schema$j(configure) {
90908
90908
  ...actionFieldsForColumn
90909
90909
  }).annotations({ title: "ActionsRenderer", description: "操作渲染器" });
90910
90910
  }
90911
- function toColumnDef$c(value, { getLocaleText }) {
90911
+ function toColumnDef$e(value, { getLocaleText }) {
90912
90912
  return {
90913
90913
  header: value.title ? getLocaleText(value.title) : void 0,
90914
90914
  enableSorting: false,
@@ -90921,23 +90921,23 @@ function toColumnDef$c(value, { getLocaleText }) {
90921
90921
  }
90922
90922
  const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
90923
90923
  __proto__: null,
90924
- compatibilityDate: compatibilityDate$j,
90925
- metadata: metadata$j,
90924
+ compatibilityDate: compatibilityDate$m,
90925
+ metadata: metadata$m,
90926
90926
  registerRowVariables,
90927
- schema: schema$j,
90928
- toColumnDef: toColumnDef$c,
90929
- type: type$j
90927
+ schema: schema$m,
90928
+ toColumnDef: toColumnDef$e,
90929
+ type: type$m
90930
90930
  }, Symbol.toStringTag, { value: "Module" }));
90931
- const type$i = "com.shwfed.table.column.date";
90932
- const compatibilityDate$i = "2026-04-14";
90933
- const metadata$i = {
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$i(configure) {
90937
+ function schema$l(configure) {
90938
90938
  return Struct({
90939
- type: Literal2(type$i),
90940
- compatibilityDate: Literal2(compatibilityDate$i),
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({
@@ -90948,7 +90948,7 @@ function schema$i(configure) {
90948
90948
  })
90949
90949
  }).annotations({ title: "DateRenderer", description: "日期渲染器" });
90950
90950
  }
90951
- function toColumnDef$b(value, { getLocaleText, $cel, inheritedContext }) {
90951
+ function toColumnDef$d(value, { getLocaleText, $cel, inheritedContext }) {
90952
90952
  return {
90953
90953
  header: getLocaleText(value.title),
90954
90954
  accessorFn: (row, index) => {
@@ -90969,22 +90969,22 @@ function toColumnDef$b(value, { getLocaleText, $cel, inheritedContext }) {
90969
90969
  }
90970
90970
  const __vite_glob_0_1$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
90971
90971
  __proto__: null,
90972
- compatibilityDate: compatibilityDate$i,
90973
- metadata: metadata$i,
90974
- schema: schema$i,
90975
- toColumnDef: toColumnDef$b,
90976
- type: type$i
90972
+ compatibilityDate: compatibilityDate$l,
90973
+ metadata: metadata$l,
90974
+ schema: schema$l,
90975
+ toColumnDef: toColumnDef$d,
90976
+ type: type$l
90977
90977
  }, Symbol.toStringTag, { value: "Module" }));
90978
- const type$h = "com.shwfed.table.column.icon";
90979
- const compatibilityDate$h = "2026-04-14";
90980
- const metadata$h = {
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$h(configure) {
90984
+ function schema$k(configure) {
90985
90985
  return Struct({
90986
- type: Literal2(type$h),
90987
- compatibilityDate: Literal2(compatibilityDate$h),
90986
+ type: Literal2(type$k),
90987
+ compatibilityDate: Literal2(compatibilityDate$k),
90988
90988
  ...columnFields(configure),
90989
90989
  accessor: CelRowAccess(configure).annotations({
90990
90990
  title: "图标",
@@ -90999,7 +90999,7 @@ function schema$h(configure) {
90999
90999
  align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "center" })
91000
91000
  }).annotations({ title: "IconRenderer", description: "图标渲染器" });
91001
91001
  }
91002
- function toColumnDef$a(value, { getLocaleText, $cel, inheritedContext }) {
91002
+ function toColumnDef$c(value, { getLocaleText, $cel, inheritedContext }) {
91003
91003
  return {
91004
91004
  header: getLocaleText(value.title),
91005
91005
  accessorFn: (row, index) => {
@@ -91020,25 +91020,25 @@ function toColumnDef$a(value, { getLocaleText, $cel, inheritedContext }) {
91020
91020
  }
91021
91021
  const __vite_glob_0_2$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91022
91022
  __proto__: null,
91023
- compatibilityDate: compatibilityDate$h,
91024
- metadata: metadata$h,
91025
- schema: schema$h,
91026
- toColumnDef: toColumnDef$a,
91027
- type: type$h
91023
+ compatibilityDate: compatibilityDate$k,
91024
+ metadata: metadata$k,
91025
+ schema: schema$k,
91026
+ toColumnDef: toColumnDef$c,
91027
+ type: type$k
91028
91028
  }, Symbol.toStringTag, { value: "Module" }));
91029
- const type$g = "com.shwfed.table.column.markdown";
91030
- const compatibilityDate$g = "2026-04-14";
91031
- const metadata$g = {
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$g(configure) {
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$g),
91041
- compatibilityDate: Literal2(compatibilityDate$g),
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" }),
@@ -91064,7 +91064,7 @@ function schema$g(configure) {
91064
91064
  }))
91065
91065
  }).annotations({ title: "MarkdownRenderer", description: "MD" });
91066
91066
  }
91067
- function toColumnDef$9(value, { getLocaleText }) {
91067
+ function toColumnDef$b(value, { getLocaleText }) {
91068
91068
  return {
91069
91069
  header: getLocaleText(value.title),
91070
91070
  enableSorting: false,
@@ -91077,22 +91077,22 @@ function toColumnDef$9(value, { getLocaleText }) {
91077
91077
  }
91078
91078
  const __vite_glob_0_3$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91079
91079
  __proto__: null,
91080
- compatibilityDate: compatibilityDate$g,
91081
- metadata: metadata$g,
91082
- schema: schema$g,
91083
- toColumnDef: toColumnDef$9,
91084
- type: type$g
91080
+ compatibilityDate: compatibilityDate$j,
91081
+ metadata: metadata$j,
91082
+ schema: schema$j,
91083
+ toColumnDef: toColumnDef$b,
91084
+ type: type$j
91085
91085
  }, Symbol.toStringTag, { value: "Module" }));
91086
- const type$f = "com.shwfed.table.column.number";
91087
- const compatibilityDate$f = "2026-04-14";
91088
- const metadata$f = {
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$f(configure) {
91092
+ function schema$i(configure) {
91093
91093
  return Struct({
91094
- type: Literal2(type$f),
91095
- compatibilityDate: Literal2(compatibilityDate$f),
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(
@@ -91112,7 +91112,7 @@ function schema$f(configure) {
91112
91112
  }))
91113
91113
  }).annotations({ title: "NumberRenderer", description: "数值渲染器" });
91114
91114
  }
91115
- function toColumnDef$8(value, { getLocaleText, $cel, inheritedContext }) {
91115
+ function toColumnDef$a(value, { getLocaleText, $cel, inheritedContext }) {
91116
91116
  return {
91117
91117
  header: getLocaleText(value.title),
91118
91118
  accessorFn: (row, index) => {
@@ -91133,24 +91133,24 @@ function toColumnDef$8(value, { getLocaleText, $cel, inheritedContext }) {
91133
91133
  }
91134
91134
  const __vite_glob_0_4$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91135
91135
  __proto__: null,
91136
- compatibilityDate: compatibilityDate$f,
91137
- metadata: metadata$f,
91138
- schema: schema$f,
91139
- toColumnDef: toColumnDef$8,
91140
- type: type$f
91136
+ compatibilityDate: compatibilityDate$i,
91137
+ metadata: metadata$i,
91138
+ schema: schema$i,
91139
+ toColumnDef: toColumnDef$a,
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$e = "com.shwfed.table.column.select";
91148
- const compatibilityDate$e = "2026-04-14";
91149
- const metadata$e = {
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$e(configure) {
91153
+ function schema$h(configure) {
91154
91154
  const CelRowSelectionPredicate = Expression({
91155
91155
  configure: (env) => {
91156
91156
  configure(env);
@@ -91159,8 +91159,8 @@ function schema$e(configure) {
91159
91159
  resultType: "bool"
91160
91160
  });
91161
91161
  return Struct({
91162
- type: Literal2(type$e),
91163
- compatibilityDate: Literal2(compatibilityDate$e),
91162
+ type: Literal2(type$h),
91163
+ compatibilityDate: Literal2(compatibilityDate$h),
91164
91164
  ...columnIdentityFields(),
91165
91165
  mode: optionalWith(Literal2("radio", "checkbox").annotations({
91166
91166
  title: "模式",
@@ -91180,7 +91180,7 @@ function schema$e(configure) {
91180
91180
  })
91181
91181
  }).annotations({ title: "SelectRenderer", description: "选择渲染器" });
91182
91182
  }
91183
- function toColumnDef$7(value) {
91183
+ function toColumnDef$9(value) {
91184
91184
  return {
91185
91185
  header: (ctx) => vueExports.h(__vite_glob_2_5, { column: value, ctx }),
91186
91186
  size: 40,
@@ -91191,24 +91191,24 @@ function toColumnDef$7(value) {
91191
91191
  }
91192
91192
  const __vite_glob_0_5$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91193
91193
  __proto__: null,
91194
- compatibilityDate: compatibilityDate$e,
91195
- metadata: metadata$e,
91196
- schema: schema$e,
91197
- toColumnDef: toColumnDef$7,
91198
- type: type$e
91194
+ compatibilityDate: compatibilityDate$h,
91195
+ metadata: metadata$h,
91196
+ schema: schema$h,
91197
+ toColumnDef: toColumnDef$9,
91198
+ type: type$h
91199
91199
  }, Symbol.toStringTag, { value: "Module" }));
91200
- const type$d = "com.shwfed.table.column.text";
91201
- const compatibilityDate$d = "2026-04-14";
91202
- const metadata$d = {
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$d(configure) {
91207
+ function schema$g(configure) {
91208
91208
  const cel = CelRowAccess(configure, { resultType: isCopyExpressionType });
91209
91209
  return Struct({
91210
- type: Literal2(type$d),
91211
- compatibilityDate: Literal2(compatibilityDate$d),
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(
@@ -91224,7 +91224,7 @@ function schema$d(configure) {
91224
91224
  }))
91225
91225
  }).annotations({ title: "TextRenderer", description: "文本渲染器" });
91226
91226
  }
91227
- function toColumnDef$6(value, { getLocaleText, $cel, inheritedContext }) {
91227
+ function toColumnDef$8(value, { getLocaleText, $cel, inheritedContext }) {
91228
91228
  return {
91229
91229
  header: getLocaleText(value.title),
91230
91230
  accessorFn: (row, index) => {
@@ -91246,19 +91246,19 @@ function toColumnDef$6(value, { getLocaleText, $cel, inheritedContext }) {
91246
91246
  }
91247
91247
  const __vite_glob_0_6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91248
91248
  __proto__: null,
91249
- compatibilityDate: compatibilityDate$d,
91250
- metadata: metadata$d,
91251
- schema: schema$d,
91252
- toColumnDef: toColumnDef$6,
91253
- type: type$d
91249
+ compatibilityDate: compatibilityDate$g,
91250
+ metadata: metadata$g,
91251
+ schema: schema$g,
91252
+ toColumnDef: toColumnDef$8,
91253
+ type: type$g
91254
91254
  }, Symbol.toStringTag, { value: "Module" }));
91255
- const type$c = "com.shwfed.table.column.switch";
91256
- const compatibilityDate$c = "2026-05-13";
91257
- const metadata$c = {
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$c(configure) {
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$c(configure) {
91276
91276
  resultType: "string"
91277
91277
  });
91278
91278
  return Struct({
91279
- type: Literal2(type$c),
91280
- compatibilityDate: Literal2(compatibilityDate$c),
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({
@@ -91298,7 +91298,19 @@ function schema$c(configure) {
91298
91298
  }))
91299
91299
  }).annotations({ title: "SwitchRenderer", description: "开关渲染器(可编辑)" });
91300
91300
  }
91301
- function toColumnDef$5(value, { getLocaleText, $cel, inheritedContext }) {
91301
+ const migrateFrom$1 = [
91302
+ { type: "com.shwfed.table.column.switch", compatibilityDate: compatibilityDate$f }
91303
+ ];
91304
+ const migrate$1 = (prev) => try_({
91305
+ try: () => {
91306
+ if (!prev || typeof prev !== "object") {
91307
+ throw new Error("开关(远程)迁移失败:原值不是对象");
91308
+ }
91309
+ return { ...prev, type: type$f, compatibilityDate: compatibilityDate$f };
91310
+ },
91311
+ catch: (e) => e instanceof Error ? e : new Error(String(e))
91312
+ });
91313
+ function toColumnDef$7(value, { getLocaleText, $cel, inheritedContext }) {
91302
91314
  return {
91303
91315
  header: getLocaleText(value.title),
91304
91316
  accessorFn: (row, index) => {
@@ -91320,11 +91332,87 @@ function toColumnDef$5(value, { getLocaleText, $cel, inheritedContext }) {
91320
91332
  }
91321
91333
  const __vite_glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91322
91334
  __proto__: null,
91323
- compatibilityDate: compatibilityDate$c,
91324
- metadata: metadata$c,
91325
- schema: schema$c,
91326
- toColumnDef: toColumnDef$5,
91327
- type: type$c
91335
+ compatibilityDate: compatibilityDate$f,
91336
+ metadata: metadata$f,
91337
+ migrate: migrate$1,
91338
+ migrateFrom: migrateFrom$1,
91339
+ schema: schema$f,
91340
+ toColumnDef: toColumnDef$7,
91341
+ type: type$f
91342
+ }, Symbol.toStringTag, { value: "Module" }));
91343
+ const type$e = "com.shwfed.table.column.switch";
91344
+ const compatibilityDate$e = "2026-05-13";
91345
+ const metadata$e = {
91346
+ name: "开关(远程)",
91347
+ icon: "fluent:toggle-left-20-regular"
91348
+ };
91349
+ function schema$e(configure) {
91350
+ const CelBool = CelRowAccess(configure, { resultType: "bool" });
91351
+ const CelOnChange = Expression({
91352
+ configure: (env) => {
91353
+ configure(env);
91354
+ registerRowVariablesIfAbsent(env);
91355
+ env.registerVariable("value", "bool", { description: "切换后的新值" });
91356
+ },
91357
+ resultType: "HttpRequest"
91358
+ });
91359
+ const CelMessage = Expression({
91360
+ configure: (env) => {
91361
+ configure(env);
91362
+ env.registerVariable("json", "dyn", { description: "HTTP 响应体(已解析 JSON)" });
91363
+ },
91364
+ resultType: "string"
91365
+ });
91366
+ return Struct({
91367
+ type: Literal2(type$e),
91368
+ compatibilityDate: Literal2(compatibilityDate$e),
91369
+ ...columnFields(configure),
91370
+ align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "center" }),
91371
+ disabled: optional(CelBool.annotations({
91372
+ title: "禁用条件",
91373
+ description: "返回 `true` 时开关仍然渲染但不可切换"
91374
+ })),
91375
+ onChange: optional(CelOnChange.annotations({
91376
+ title: "切换请求",
91377
+ description: "用户切换后立即求值并发起的 HTTP 请求;`value` 为切换后的新值。未配置时开关只读"
91378
+ })),
91379
+ successMessage: optional(CelMessage.annotations({
91380
+ title: "成功消息",
91381
+ description: "请求成功后弹出的 toast 内容;未配置则静默"
91382
+ })),
91383
+ triggers: optional(Triggers.annotations({
91384
+ title: "成功后触发",
91385
+ description: "请求成功后按列表顺序冒泡的操作请求;未配置则什么都不做"
91386
+ }))
91387
+ }).annotations({ title: "SwitchRenderer", description: "开关渲染器(可编辑)" });
91388
+ }
91389
+ function toColumnDef$6(value, { getLocaleText, $cel, inheritedContext }) {
91390
+ return {
91391
+ header: getLocaleText(value.title),
91392
+ accessorFn: (row, index) => {
91393
+ try {
91394
+ return runSync($cel(value.accessor, { ...inheritedContext, row, index }));
91395
+ } catch (e) {
91396
+ console.error("[shwfed-table] switch accessor failed", e);
91397
+ return void 0;
91398
+ }
91399
+ },
91400
+ enableSorting: value.enableSorting ?? false,
91401
+ sortingFn: "basic",
91402
+ size: value.size,
91403
+ meta: {
91404
+ grow: value.grow ?? false,
91405
+ tooltip: getLocaleText(value.tooltip)
91406
+ }
91407
+ };
91408
+ }
91409
+ const __vite_glob_0_8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91410
+ __proto__: null,
91411
+ compatibilityDate: compatibilityDate$e,
91412
+ metadata: metadata$e,
91413
+ schema: schema$e,
91414
+ toColumnDef: toColumnDef$6,
91415
+ type: type$e
91328
91416
  }, Symbol.toStringTag, { value: "Module" }));
91329
91417
  const isObject$1 = (value) => {
91330
91418
  const type2 = typeof value;
@@ -91523,9 +91611,9 @@ function getProperty(object2, path, value) {
91523
91611
  }
91524
91612
  return object2 === void 0 ? value : object2;
91525
91613
  }
91526
- const type$b = "com.shwfed.table.column.combobox-single";
91527
- const compatibilityDate$b = "2026-05-20";
91528
- const metadata$b = {
91614
+ const type$d = "com.shwfed.table.column.combobox-single";
91615
+ const compatibilityDate$d = "2026-05-20";
91616
+ const metadata$d = {
91529
91617
  name: "下拉单选",
91530
91618
  icon: "fluent:chevron-down-20-regular"
91531
91619
  };
@@ -91558,12 +91646,12 @@ function itemSchema(configure) {
91558
91646
  title: "ComboboxSingleItem"
91559
91647
  });
91560
91648
  }
91561
- function schema$b(configure) {
91649
+ function schema$d(configure) {
91562
91650
  const CelBool = CelRowAccess(configure, { resultType: "bool" });
91563
91651
  const Item = itemSchema(configure);
91564
91652
  return Struct({
91565
- type: Literal2(type$b),
91566
- compatibilityDate: Literal2(compatibilityDate$b),
91653
+ type: Literal2(type$d),
91654
+ compatibilityDate: Literal2(compatibilityDate$d),
91567
91655
  ...editableColumnFields(),
91568
91656
  placeholder: optional(Locale.annotations({
91569
91657
  title: "占位符",
@@ -91588,7 +91676,7 @@ function schema$b(configure) {
91588
91676
  }), { default: () => [] })
91589
91677
  }).annotations({ title: "ComboboxSingleRenderer", description: "下拉单选渲染器(可编辑)" });
91590
91678
  }
91591
- function toColumnDef$4(value, { getLocaleText }) {
91679
+ function toColumnDef$5(value, { getLocaleText }) {
91592
91680
  return {
91593
91681
  header: editableHeader(getLocaleText(value.title)),
91594
91682
  // `binding` is a dot-prop path (validated non-empty); the cell renderer
@@ -91609,27 +91697,27 @@ function toColumnDef$4(value, { getLocaleText }) {
91609
91697
  }
91610
91698
  };
91611
91699
  }
91612
- const __vite_glob_0_8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91700
+ const __vite_glob_0_9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91613
91701
  __proto__: null,
91614
- compatibilityDate: compatibilityDate$b,
91702
+ compatibilityDate: compatibilityDate$d,
91615
91703
  itemSchema,
91616
- metadata: metadata$b,
91617
- schema: schema$b,
91618
- toColumnDef: toColumnDef$4,
91619
- type: type$b
91704
+ metadata: metadata$d,
91705
+ schema: schema$d,
91706
+ toColumnDef: toColumnDef$5,
91707
+ type: type$d
91620
91708
  }, Symbol.toStringTag, { value: "Module" }));
91621
- const type$a = "com.shwfed.table.column.number-input";
91622
- const compatibilityDate$a = "2026-05-20";
91623
- const metadata$a = {
91709
+ const type$c = "com.shwfed.table.column.number-input";
91710
+ const compatibilityDate$c = "2026-05-20";
91711
+ const metadata$c = {
91624
91712
  name: "数值输入",
91625
91713
  icon: "fluent:number-symbol-20-regular"
91626
91714
  };
91627
- function schema$a(configure) {
91715
+ function schema$c(configure) {
91628
91716
  const CelBool = CelRowAccess(configure, { resultType: "bool" });
91629
91717
  const CelNumber = CelRowAccess(configure, { resultType: "number" });
91630
91718
  return Struct({
91631
- type: Literal2(type$a),
91632
- compatibilityDate: Literal2(compatibilityDate$a),
91719
+ type: Literal2(type$c),
91720
+ compatibilityDate: Literal2(compatibilityDate$c),
91633
91721
  ...editableColumnFields(),
91634
91722
  placeholder: optional(Locale.annotations({
91635
91723
  title: "占位符",
@@ -91674,7 +91762,7 @@ function schema$a(configure) {
91674
91762
  derived: derivedRowField(configure, "number")
91675
91763
  }).annotations({ title: "NumberInputRenderer", description: "数值输入渲染器(可编辑)" });
91676
91764
  }
91677
- function toColumnDef$3(value, { getLocaleText }) {
91765
+ function toColumnDef$4(value, { getLocaleText }) {
91678
91766
  return {
91679
91767
  header: editableHeader(getLocaleText(value.title)),
91680
91768
  // `binding` is a dot-prop path (validated non-empty); the cell renderer
@@ -91695,25 +91783,102 @@ function toColumnDef$3(value, { getLocaleText }) {
91695
91783
  }
91696
91784
  };
91697
91785
  }
91698
- const __vite_glob_0_9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91786
+ const __vite_glob_0_10 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91699
91787
  __proto__: null,
91700
- compatibilityDate: compatibilityDate$a,
91701
- metadata: metadata$a,
91702
- schema: schema$a,
91788
+ compatibilityDate: compatibilityDate$c,
91789
+ metadata: metadata$c,
91790
+ schema: schema$c,
91791
+ toColumnDef: toColumnDef$4,
91792
+ type: type$c
91793
+ }, Symbol.toStringTag, { value: "Module" }));
91794
+ const type$b = "com.shwfed.table.column.switch.local";
91795
+ const compatibilityDate$b = "2026-05-20";
91796
+ const metadata$b = {
91797
+ name: "开关",
91798
+ icon: "fluent:toggle-left-20-regular"
91799
+ };
91800
+ function schema$b(configure) {
91801
+ const CelBool = CelRowAccess(configure, { resultType: "bool" });
91802
+ return Struct({
91803
+ type: Literal2(type$b),
91804
+ compatibilityDate: Literal2(compatibilityDate$b),
91805
+ ...editableColumnFields(),
91806
+ hidden: optional(CelBool.annotations({
91807
+ title: "隐藏条件",
91808
+ description: "返回 `true` 时该行的开关不渲染(其余行不受影响)"
91809
+ })),
91810
+ disabled: optional(CelBool.annotations({
91811
+ title: "禁用条件",
91812
+ description: "返回 `true` 时开关仍然渲染但不可切换"
91813
+ })),
91814
+ readonly: optional(CelBool.annotations({
91815
+ title: "只读条件",
91816
+ description: "返回 `true` 时仅以纯文本展示当前值"
91817
+ })),
91818
+ trueLabel: optional(Locale.annotations({
91819
+ title: "开启文案",
91820
+ description: "只读状态下,值为 `true` 时展示的文本;留空使用默认 `是`"
91821
+ })),
91822
+ falseLabel: optional(Locale.annotations({
91823
+ title: "关闭文案",
91824
+ description: "只读状态下,值为 `false` 时展示的文本;留空使用默认 `否`"
91825
+ })),
91826
+ derived: derivedRowField(configure, "bool")
91827
+ }).annotations({ title: "SwitchRenderer", description: "开关渲染器(可编辑、本地)" });
91828
+ }
91829
+ const migrateFrom = [
91830
+ { type: "com.shwfed.table.column.switch", compatibilityDate: compatibilityDate$b }
91831
+ ];
91832
+ const migrate = (prev) => try_({
91833
+ try: () => {
91834
+ if (!prev || typeof prev !== "object") {
91835
+ throw new Error("开关(本地)迁移失败:原值不是对象");
91836
+ }
91837
+ return { ...prev, type: type$b, compatibilityDate: compatibilityDate$b };
91838
+ },
91839
+ catch: (e) => e instanceof Error ? e : new Error(String(e))
91840
+ });
91841
+ function toColumnDef$3(value, { getLocaleText }) {
91842
+ return {
91843
+ header: editableHeader(getLocaleText(value.title)),
91844
+ // `binding` is a dot-prop path (validated non-empty); the cell renderer
91845
+ // reads through the same path it writes to. No CEL — accessor is literal.
91846
+ accessorFn: (row) => {
91847
+ if (!row || typeof row !== "object") return void 0;
91848
+ return getProperty(row, value.binding);
91849
+ },
91850
+ enableSorting: value.enableSorting ?? false,
91851
+ // `basic` orders by JS `<` — for booleans that yields `false < true`,
91852
+ // which is the obvious grouping. Mirrors the remote switch column.
91853
+ sortingFn: "basic",
91854
+ size: value.size,
91855
+ meta: {
91856
+ grow: value.grow ?? false,
91857
+ tooltip: getLocaleText(value.tooltip)
91858
+ }
91859
+ };
91860
+ }
91861
+ const __vite_glob_0_11 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91862
+ __proto__: null,
91863
+ compatibilityDate: compatibilityDate$b,
91864
+ metadata: metadata$b,
91865
+ migrate,
91866
+ migrateFrom,
91867
+ schema: schema$b,
91703
91868
  toColumnDef: toColumnDef$3,
91704
- type: type$a
91869
+ type: type$b
91705
91870
  }, Symbol.toStringTag, { value: "Module" }));
91706
- const type$9 = "com.shwfed.table.column.switch";
91707
- const compatibilityDate$9 = "2026-05-20";
91708
- const metadata$9 = {
91871
+ const type$a = "com.shwfed.table.column.switch";
91872
+ const compatibilityDate$a = "2026-05-20";
91873
+ const metadata$a = {
91709
91874
  name: "开关",
91710
91875
  icon: "fluent:toggle-left-20-regular"
91711
91876
  };
91712
- function schema$9(configure) {
91877
+ function schema$a(configure) {
91713
91878
  const CelBool = CelRowAccess(configure, { resultType: "bool" });
91714
91879
  return Struct({
91715
- type: Literal2(type$9),
91716
- compatibilityDate: Literal2(compatibilityDate$9),
91880
+ type: Literal2(type$a),
91881
+ compatibilityDate: Literal2(compatibilityDate$a),
91717
91882
  ...editableColumnFields(),
91718
91883
  hidden: optional(CelBool.annotations({
91719
91884
  title: "隐藏条件",
@@ -91758,25 +91923,25 @@ function toColumnDef$2(value, { getLocaleText }) {
91758
91923
  }
91759
91924
  };
91760
91925
  }
91761
- const __vite_glob_0_10 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91926
+ const __vite_glob_0_12 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91762
91927
  __proto__: null,
91763
- compatibilityDate: compatibilityDate$9,
91764
- metadata: metadata$9,
91765
- schema: schema$9,
91928
+ compatibilityDate: compatibilityDate$a,
91929
+ metadata: metadata$a,
91930
+ schema: schema$a,
91766
91931
  toColumnDef: toColumnDef$2,
91767
- type: type$9
91932
+ type: type$a
91768
91933
  }, Symbol.toStringTag, { value: "Module" }));
91769
- const type$8 = "com.shwfed.table.column.text-input";
91770
- const compatibilityDate$8 = "2026-05-20";
91771
- const metadata$8 = {
91934
+ const type$9 = "com.shwfed.table.column.text-input";
91935
+ const compatibilityDate$9 = "2026-05-20";
91936
+ const metadata$9 = {
91772
91937
  name: "文本输入",
91773
91938
  icon: "fluent:text-field-20-regular"
91774
91939
  };
91775
- function schema$8(configure) {
91940
+ function schema$9(configure) {
91776
91941
  const CelBool = CelRowAccess(configure, { resultType: "bool" });
91777
91942
  return Struct({
91778
- type: Literal2(type$8),
91779
- compatibilityDate: Literal2(compatibilityDate$8),
91943
+ type: Literal2(type$9),
91944
+ compatibilityDate: Literal2(compatibilityDate$9),
91780
91945
  ...editableColumnFields(),
91781
91946
  placeholder: optional(Locale.annotations({
91782
91947
  title: "占位符",
@@ -91815,24 +91980,24 @@ function toColumnDef$1(value, { getLocaleText }) {
91815
91980
  }
91816
91981
  };
91817
91982
  }
91818
- const __vite_glob_0_11 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91983
+ const __vite_glob_0_13 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91819
91984
  __proto__: null,
91820
- compatibilityDate: compatibilityDate$8,
91821
- metadata: metadata$8,
91822
- schema: schema$8,
91985
+ compatibilityDate: compatibilityDate$9,
91986
+ metadata: metadata$9,
91987
+ schema: schema$9,
91823
91988
  toColumnDef: toColumnDef$1,
91824
- type: type$8
91989
+ type: type$9
91825
91990
  }, Symbol.toStringTag, { value: "Module" }));
91826
- const type$7 = "com.shwfed.table.column.drag-handle";
91827
- const compatibilityDate$7 = "2026-05-21";
91828
- const metadata$7 = {
91991
+ const type$8 = "com.shwfed.table.column.drag-handle";
91992
+ const compatibilityDate$8 = "2026-05-21";
91993
+ const metadata$8 = {
91829
91994
  name: "拖拽",
91830
91995
  icon: "fluent:re-order-dots-vertical-20-regular"
91831
91996
  };
91832
- function schema$7(_configure) {
91997
+ function schema$8(_configure) {
91833
91998
  return Struct({
91834
- type: Literal2(type$7),
91835
- compatibilityDate: Literal2(compatibilityDate$7),
91999
+ type: Literal2(type$8),
92000
+ compatibilityDate: Literal2(compatibilityDate$8),
91836
92001
  ...columnIdentityFields()
91837
92002
  }).annotations({ title: "DragHandleRenderer", description: "行拖拽手柄列" });
91838
92003
  }
@@ -91850,13 +92015,13 @@ function toColumnDef(_value) {
91850
92015
  meta: { grow: false }
91851
92016
  };
91852
92017
  }
91853
- const __vite_glob_0_12 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
92018
+ const __vite_glob_0_14 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91854
92019
  __proto__: null,
91855
- compatibilityDate: compatibilityDate$7,
91856
- metadata: metadata$7,
91857
- schema: schema$7,
92020
+ compatibilityDate: compatibilityDate$8,
92021
+ metadata: metadata$8,
92022
+ schema: schema$8,
91858
92023
  toColumnDef,
91859
- type: type$7
92024
+ type: type$8
91860
92025
  }, Symbol.toStringTag, { value: "Module" }));
91861
92026
  const schemaModules$2 = /* @__PURE__ */ Object.assign({
91862
92027
  "../columns/2026-04-14/com.shwfed.table.column.actions/schema.ts": __vite_glob_0_0,
@@ -91866,12 +92031,14 @@ const schemaModules$2 = /* @__PURE__ */ Object.assign({
91866
92031
  "../columns/2026-04-14/com.shwfed.table.column.number/schema.ts": __vite_glob_0_4$1,
91867
92032
  "../columns/2026-04-14/com.shwfed.table.column.select/schema.ts": __vite_glob_0_5$1,
91868
92033
  "../columns/2026-04-14/com.shwfed.table.column.text/schema.ts": __vite_glob_0_6,
91869
- "../columns/2026-05-13/com.shwfed.table.column.switch/schema.ts": __vite_glob_0_7,
91870
- "../columns/2026-05-20/com.shwfed.table.column.combobox-single/schema.ts": __vite_glob_0_8,
91871
- "../columns/2026-05-20/com.shwfed.table.column.number-input/schema.ts": __vite_glob_0_9,
91872
- "../columns/2026-05-20/com.shwfed.table.column.switch/schema.ts": __vite_glob_0_10,
91873
- "../columns/2026-05-20/com.shwfed.table.column.text-input/schema.ts": __vite_glob_0_11,
91874
- "../columns/2026-05-21/com.shwfed.table.column.drag-handle/schema.ts": __vite_glob_0_12
92034
+ "../columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.ts": __vite_glob_0_7,
92035
+ "../columns/2026-05-13/com.shwfed.table.column.switch/schema.ts": __vite_glob_0_8,
92036
+ "../columns/2026-05-20/com.shwfed.table.column.combobox-single/schema.ts": __vite_glob_0_9,
92037
+ "../columns/2026-05-20/com.shwfed.table.column.number-input/schema.ts": __vite_glob_0_10,
92038
+ "../columns/2026-05-20/com.shwfed.table.column.switch.local/schema.ts": __vite_glob_0_11,
92039
+ "../columns/2026-05-20/com.shwfed.table.column.switch/schema.ts": __vite_glob_0_12,
92040
+ "../columns/2026-05-20/com.shwfed.table.column.text-input/schema.ts": __vite_glob_0_13,
92041
+ "../columns/2026-05-21/com.shwfed.table.column.drag-handle/schema.ts": __vite_glob_0_14
91875
92042
  });
91876
92043
  const configModules$2 = /* @__PURE__ */ Object.assign({
91877
92044
  "../columns/2026-04-14/com.shwfed.table.column.actions/config.vue": __vite_glob_2_5,
@@ -91881,9 +92048,11 @@ const configModules$2 = /* @__PURE__ */ Object.assign({
91881
92048
  "../columns/2026-04-14/com.shwfed.table.column.number/config.vue": __vite_glob_2_5,
91882
92049
  "../columns/2026-04-14/com.shwfed.table.column.select/config.vue": __vite_glob_2_5,
91883
92050
  "../columns/2026-04-14/com.shwfed.table.column.text/config.vue": __vite_glob_2_5,
92051
+ "../columns/2026-05-13/com.shwfed.table.column.switch.remote/config.vue": __vite_glob_2_5,
91884
92052
  "../columns/2026-05-13/com.shwfed.table.column.switch/config.vue": __vite_glob_2_5,
91885
92053
  "../columns/2026-05-20/com.shwfed.table.column.combobox-single/config.vue": __vite_glob_2_5,
91886
92054
  "../columns/2026-05-20/com.shwfed.table.column.number-input/config.vue": __vite_glob_2_5,
92055
+ "../columns/2026-05-20/com.shwfed.table.column.switch.local/config.vue": __vite_glob_2_5,
91887
92056
  "../columns/2026-05-20/com.shwfed.table.column.switch/config.vue": __vite_glob_2_5,
91888
92057
  "../columns/2026-05-20/com.shwfed.table.column.text-input/config.vue": __vite_glob_2_5,
91889
92058
  "../columns/2026-05-21/com.shwfed.table.column.drag-handle/config.vue": __vite_glob_2_5
@@ -91896,13 +92065,16 @@ const runtimeModules$2 = /* @__PURE__ */ Object.assign({
91896
92065
  "../columns/2026-04-14/com.shwfed.table.column.number/runtime.vue": __vite_glob_2_5,
91897
92066
  "../columns/2026-04-14/com.shwfed.table.column.select/runtime.vue": __vite_glob_2_5,
91898
92067
  "../columns/2026-04-14/com.shwfed.table.column.text/runtime.vue": __vite_glob_2_5,
92068
+ "../columns/2026-05-13/com.shwfed.table.column.switch.remote/runtime.vue": __vite_glob_2_5,
91899
92069
  "../columns/2026-05-13/com.shwfed.table.column.switch/runtime.vue": __vite_glob_2_5,
91900
92070
  "../columns/2026-05-20/com.shwfed.table.column.combobox-single/runtime.vue": __vite_glob_2_5,
91901
92071
  "../columns/2026-05-20/com.shwfed.table.column.number-input/runtime.vue": __vite_glob_2_5,
92072
+ "../columns/2026-05-20/com.shwfed.table.column.switch.local/runtime.vue": __vite_glob_2_5,
91902
92073
  "../columns/2026-05-20/com.shwfed.table.column.switch/runtime.vue": __vite_glob_2_5,
91903
92074
  "../columns/2026-05-20/com.shwfed.table.column.text-input/runtime.vue": __vite_glob_2_5,
91904
92075
  "../columns/2026-05-21/com.shwfed.table.column.drag-handle/runtime.vue": __vite_glob_2_5
91905
92076
  });
92077
+ const sourceKey$1 = (type2, compatibilityDate2) => `${type2}@${compatibilityDate2}`;
91906
92078
  const registry$2 = defineRegistry({
91907
92079
  hostName: "shwfed-table",
91908
92080
  dirSegment: "columns",
@@ -91913,6 +92085,47 @@ const registry$2 = defineRegistry({
91913
92085
  if (typeof mod.toColumnDef !== "function") {
91914
92086
  throw new TypeError(`[shwfed-table] column "${type2}@${date2}" is missing toColumnDef export`);
91915
92087
  }
92088
+ },
92089
+ // Deprecation rules mirror the form host:
92090
+ // (a) date-versioned: another entry shares this entry's `type` with a
92091
+ // strictly greater `compatibilityDate`;
92092
+ // (b) explicit cross-type: another entry declares this one in its
92093
+ // `migrateFrom`. Same source claimed twice → throw.
92094
+ deriveEntryExtras: (drafts) => {
92095
+ const latestByType = /* @__PURE__ */ new Map();
92096
+ for (const d of drafts) {
92097
+ const prev = latestByType.get(d.type);
92098
+ if (!prev || d.compatibilityDate > prev) latestByType.set(d.type, d.compatibilityDate);
92099
+ }
92100
+ const migrationTargets2 = /* @__PURE__ */ new Map();
92101
+ for (const d of drafts) {
92102
+ const sources = d.module.migrateFrom;
92103
+ if (!sources || sources.length === 0) continue;
92104
+ for (const src of sources) {
92105
+ const key = sourceKey$1(src.type, src.compatibilityDate);
92106
+ const existing = migrationTargets2.get(key);
92107
+ if (existing) {
92108
+ throw new Error(
92109
+ `[shwfed-table] migrateFrom collision: source "${key}" is claimed by both "${sourceKey$1(existing.type, existing.compatibilityDate)}" and "${sourceKey$1(d.type, d.compatibilityDate)}"`
92110
+ );
92111
+ }
92112
+ migrationTargets2.set(key, { type: d.type, compatibilityDate: d.compatibilityDate });
92113
+ }
92114
+ }
92115
+ return (draft) => {
92116
+ const declared = migrationTargets2.get(sourceKey$1(draft.type, draft.compatibilityDate));
92117
+ if (declared) {
92118
+ return { deprecated: true, supersededBy: declared };
92119
+ }
92120
+ const latest = latestByType.get(draft.type);
92121
+ if (draft.compatibilityDate < latest) {
92122
+ return {
92123
+ deprecated: true,
92124
+ supersededBy: { type: draft.type, compatibilityDate: latest }
92125
+ };
92126
+ }
92127
+ return { deprecated: false };
92128
+ };
91916
92129
  }
91917
92130
  });
91918
92131
  const COLUMNS = registry$2.ENTRIES.map((e) => ({
@@ -91922,8 +92135,26 @@ const COLUMNS = registry$2.ENTRIES.map((e) => ({
91922
92135
  schema: e.module.schema,
91923
92136
  config: e.config,
91924
92137
  runtime: e.runtime,
91925
- toColumnDef: e.module.toColumnDef
92138
+ toColumnDef: e.module.toColumnDef,
92139
+ deprecated: e.deprecated,
92140
+ ...e.supersededBy !== void 0 ? { supersededBy: e.supersededBy } : {},
92141
+ ...e.module.migrate !== void 0 ? { migrate: e.module.migrate } : {},
92142
+ ...e.module.migrateFrom !== void 0 ? { migrateFrom: e.module.migrateFrom } : {}
91926
92143
  }));
92144
+ (() => {
92145
+ const map2 = /* @__PURE__ */ new Map();
92146
+ for (const entry of COLUMNS) {
92147
+ const sources = entry.migrateFrom;
92148
+ if (!sources || sources.length === 0) continue;
92149
+ for (const src of sources) {
92150
+ map2.set(sourceKey$1(src.type, src.compatibilityDate), {
92151
+ type: entry.type,
92152
+ compatibilityDate: entry.compatibilityDate
92153
+ });
92154
+ }
92155
+ }
92156
+ return map2;
92157
+ })();
91927
92158
  function allColumnSchemas(configure) {
91928
92159
  return COLUMNS.map((entry) => entry.schema(configure));
91929
92160
  }
@@ -92077,13 +92308,11 @@ const ColumnGroup = Struct({
92077
92308
  description: "列分组定义"
92078
92309
  });
92079
92310
  const QUERY_VAR_DESCRIPTION = "搜索条件当前状态;未配置搜索条件时为空对象";
92080
- function DataSource(configure) {
92311
+ function DataSource(configure, extras) {
92081
92312
  const CelRequest = Expression({
92082
92313
  configure: (env) => {
92083
92314
  configure(env);
92084
- env.registerVariable("pageIndex", "number", { description: "当前页码(从 0 开始);未启用分页时为 0" });
92085
- env.registerVariable("pageSize", "number", { description: "每页行数;未启用分页时为 0" });
92086
- env.registerVariable("query", "dyn", { description: QUERY_VAR_DESCRIPTION });
92315
+ extras?.request?.(env);
92087
92316
  },
92088
92317
  resultType: "HttpRequest"
92089
92318
  });
@@ -92093,10 +92322,35 @@ function DataSource(configure) {
92093
92322
  env.registerVariable("json", "optional<dyn>", {
92094
92323
  description: "HTTP 响应体(已解析 JSON);未配置 request 时为 none"
92095
92324
  });
92096
- env.registerVariable("query", "dyn", { description: QUERY_VAR_DESCRIPTION });
92325
+ extras?.data?.(env);
92097
92326
  },
92098
92327
  resultType: (type2) => type2.startsWith("list") || type2 === "dyn" || type2.startsWith("optional")
92099
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
+ });
92100
92354
  const CelTotal = Expression({
92101
92355
  configure: (env) => {
92102
92356
  configure(env);
@@ -92108,14 +92362,7 @@ function DataSource(configure) {
92108
92362
  resultType: (type2) => type2 === "number" || type2 === "dyn" || type2.startsWith("optional")
92109
92363
  });
92110
92364
  return Struct({
92111
- request: optional(CelRequest).annotations({
92112
- title: "请求",
92113
- description: "可选的 HTTP 请求表达式;未配置时数据从 `data` 表达式中读取(通常引用上下文变量)"
92114
- }),
92115
- data: CelRows.annotations({
92116
- title: "数据",
92117
- description: "返回行数据列表(`list<dyn>`)的 CEL 表达式;在配置了 `request` 时可通过 `json` 引用响应体"
92118
- }),
92365
+ ...base2.fields,
92119
92366
  total: optional(CelTotal).annotations({
92120
92367
  title: "总数",
92121
92368
  description: "返回总行数(`number`)的 CEL 表达式;配置后启用服务端分页,留空则走前端分页"
@@ -92148,7 +92395,7 @@ function TableConfig(configure) {
92148
92395
  const CelRowKey = CelRowAccess(configure, {
92149
92396
  resultType: (type2) => type2 === "string" || type2 === "number" || type2 === "dyn"
92150
92397
  });
92151
- const dataSourceSchema2 = DataSource(configure);
92398
+ const dataSourceSchema2 = tableDataSource(configure);
92152
92399
  const { fields: actionFields } = ActionSchemaFields((env) => {
92153
92400
  configure(env);
92154
92401
  env.registerVariable("selected", "list<dyn>", {
@@ -92234,21 +92481,21 @@ function defaultTableConfig() {
92234
92481
  : index % 2 == 1 ? { 'background-color': 'oklch(98.5% 0 0)' } : { 'background-color': 'white' }`
92235
92482
  };
92236
92483
  }
92237
- const type$6 = "com.shwfed.form.field.table";
92238
- const compatibilityDate$6 = "2026-05-18";
92239
- const metadata$6 = {
92484
+ const type$7 = "com.shwfed.form.field.table";
92485
+ const compatibilityDate$7 = "2026-05-18";
92486
+ const metadata$7 = {
92240
92487
  name: "表格",
92241
92488
  icon: "fluent:table-20-regular",
92242
92489
  w: { initial: 12, min: 6, max: Infinity },
92243
92490
  h: { initial: 10, min: 5, max: Infinity, grow: true }
92244
92491
  };
92245
- function schema$6(configure) {
92492
+ function schema$7(configure) {
92246
92493
  const Table = suspend(
92247
92494
  () => TableConfig(configure)
92248
92495
  );
92249
92496
  return Struct({
92250
- type: Literal2(type$6),
92251
- compatibilityDate: Literal2(compatibilityDate$6),
92497
+ type: Literal2(type$7),
92498
+ compatibilityDate: Literal2(compatibilityDate$7),
92252
92499
  ...commonFieldFields(configure),
92253
92500
  label: optional(Locale.annotations({
92254
92501
  title: "标签",
@@ -92272,31 +92519,31 @@ function schema$6(configure) {
92272
92519
  description: "把一个可本地编辑的表格嵌入表单,其实时数据写入绑定路径"
92273
92520
  });
92274
92521
  }
92275
- function defaults$1() {
92522
+ function defaults$2() {
92276
92523
  const { dataSource: _omit, ...rest } = defaultTableConfig();
92277
92524
  return { table: rest };
92278
92525
  }
92279
92526
  const __vite_glob_0_20 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
92280
92527
  __proto__: null,
92281
- compatibilityDate: compatibilityDate$6,
92282
- defaults: defaults$1,
92283
- metadata: metadata$6,
92284
- schema: schema$6,
92285
- type: type$6
92528
+ compatibilityDate: compatibilityDate$7,
92529
+ defaults: defaults$2,
92530
+ metadata: metadata$7,
92531
+ schema: schema$7,
92532
+ type: type$7
92286
92533
  }, Symbol.toStringTag, { value: "Module" }));
92287
- const type$5 = "com.shwfed.form.field.collapsible";
92288
- const compatibilityDate$5 = "2026-05-20";
92289
- const metadata$5 = {
92534
+ const type$6 = "com.shwfed.form.field.collapsible";
92535
+ const compatibilityDate$6 = "2026-05-20";
92536
+ const metadata$6 = {
92290
92537
  name: "可折叠区域",
92291
92538
  icon: "fluent:chevron-down-20-regular",
92292
92539
  w: { initial: 12, min: 4, max: Infinity },
92293
92540
  h: { initial: 4, min: 2, max: Infinity, grow: true }
92294
92541
  };
92295
- function schema$5(configure) {
92542
+ function schema$6(configure) {
92296
92543
  const Unit = suspend(() => FormUnit(configure));
92297
92544
  return Struct({
92298
- type: Literal2(type$5),
92299
- compatibilityDate: Literal2(compatibilityDate$5),
92545
+ type: Literal2(type$6),
92546
+ compatibilityDate: Literal2(compatibilityDate$6),
92300
92547
  id: UUID.annotations({ description: "字段唯一标识;布局通过该 id 引用字段" }),
92301
92548
  displayName: optional(String$.annotations({
92302
92549
  title: "内部名称",
@@ -92320,7 +92567,7 @@ function schema$5(configure) {
92320
92567
  description: "带 Markdown 标题的可折叠区域,仅用于视觉分组,不影响字段在表单状态中的层级"
92321
92568
  });
92322
92569
  }
92323
- function defaults() {
92570
+ function defaults$1() {
92324
92571
  return {
92325
92572
  header: [{ locale: "zh", message: "" }],
92326
92573
  unit: {
@@ -92330,6 +92577,138 @@ function defaults() {
92330
92577
  };
92331
92578
  }
92332
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({
92333
92712
  __proto__: null,
92334
92713
  compatibilityDate: compatibilityDate$5,
92335
92714
  defaults,
@@ -92351,15 +92730,16 @@ const schemaModules$1 = /* @__PURE__ */ Object.assign({
92351
92730
  "../fields/2026-04-27/com.shwfed.form.field.timerange/schema.ts": __vite_glob_0_10$1,
92352
92731
  "../fields/2026-04-28/com.shwfed.form.field.number/schema.ts": __vite_glob_0_11$1,
92353
92732
  "../fields/2026-04-28/com.shwfed.form.field.numberrange/schema.ts": __vite_glob_0_12$1,
92354
- "../fields/2026-04-28/com.shwfed.form.field.switch/schema.ts": __vite_glob_0_13,
92355
- "../fields/2026-04-29/com.shwfed.form.field.combobox.single/schema.ts": __vite_glob_0_14,
92733
+ "../fields/2026-04-28/com.shwfed.form.field.switch/schema.ts": __vite_glob_0_13$1,
92734
+ "../fields/2026-04-29/com.shwfed.form.field.combobox.single/schema.ts": __vite_glob_0_14$1,
92356
92735
  "../fields/2026-05-12/com.shwfed.form.field.upload/schema.ts": __vite_glob_0_15,
92357
92736
  "../fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/schema.ts": __vite_glob_0_16,
92358
92737
  "../fields/2026-05-13/com.shwfed.form.field.list/schema.ts": __vite_glob_0_17,
92359
92738
  "../fields/2026-05-17/com.shwfed.form.field.checkbox.group/schema.ts": __vite_glob_0_18,
92360
92739
  "../fields/2026-05-17/com.shwfed.form.field.radio.group/schema.ts": __vite_glob_0_19,
92361
92740
  "../fields/2026-05-18/com.shwfed.form.field.table/schema.ts": __vite_glob_0_20,
92362
- "../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
92363
92743
  });
92364
92744
  const configModules$1 = /* @__PURE__ */ Object.assign({
92365
92745
  "../fields/2026-04-22/com.shwfed.form.field.markdown/config.vue": __vite_glob_2_5,
@@ -92383,7 +92763,8 @@ const configModules$1 = /* @__PURE__ */ Object.assign({
92383
92763
  "../fields/2026-05-17/com.shwfed.form.field.checkbox.group/config.vue": __vite_glob_2_5,
92384
92764
  "../fields/2026-05-17/com.shwfed.form.field.radio.group/config.vue": __vite_glob_2_5,
92385
92765
  "../fields/2026-05-18/com.shwfed.form.field.table/config.vue": __vite_glob_2_5,
92386
- "../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
92387
92768
  });
92388
92769
  const runtimeModules$1 = /* @__PURE__ */ Object.assign({
92389
92770
  "../fields/2026-04-22/com.shwfed.form.field.markdown/runtime.vue": __vite_glob_2_5,
@@ -92407,27 +92788,59 @@ const runtimeModules$1 = /* @__PURE__ */ Object.assign({
92407
92788
  "../fields/2026-05-17/com.shwfed.form.field.checkbox.group/runtime.vue": __vite_glob_2_5,
92408
92789
  "../fields/2026-05-17/com.shwfed.form.field.radio.group/runtime.vue": __vite_glob_2_5,
92409
92790
  "../fields/2026-05-18/com.shwfed.form.field.table/runtime.vue": __vite_glob_2_5,
92410
- "../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
92411
92793
  });
92794
+ const sourceKey = (type2, compatibilityDate2) => `${type2}@${compatibilityDate2}`;
92412
92795
  const registry$1 = defineRegistry({
92413
92796
  hostName: "shwfed-form",
92414
92797
  dirSegment: "fields",
92415
92798
  schemaModules: schemaModules$1,
92416
92799
  configModules: configModules$1,
92417
92800
  runtimeModules: runtimeModules$1,
92418
- // An entry is deprecated iff another entry shares its `type` with a strictly
92419
- // greater `compatibilityDate`. The picker already shows only the latest per
92420
- // type; this flag drives the deprecation alert in the right-pane inspector.
92801
+ // An entry is deprecated by one of two rules:
92802
+ // (a) another entry shares its `type` with a strictly greater
92803
+ // `compatibilityDate` date-versioned supersession;
92804
+ // (b) another entry declares this one in its `migrateFrom` — explicit
92805
+ // cross-type supersession (rename, split, merge).
92806
+ // Rule (a) wins on overlap, since the date-versioned rule is the implicit
92807
+ // convention; an explicit `migrateFrom` against a still-current entry is
92808
+ // almost always a mistake, but we let it slide as long as no two targets
92809
+ // claim the same source (that collision throws below).
92421
92810
  deriveEntryExtras: (drafts) => {
92422
92811
  const latestByType = /* @__PURE__ */ new Map();
92423
92812
  for (const d of drafts) {
92424
92813
  const prev = latestByType.get(d.type);
92425
92814
  if (!prev || d.compatibilityDate > prev) latestByType.set(d.type, d.compatibilityDate);
92426
92815
  }
92816
+ const migrationTargets = /* @__PURE__ */ new Map();
92817
+ for (const d of drafts) {
92818
+ const sources = d.module.migrateFrom;
92819
+ if (!sources || sources.length === 0) continue;
92820
+ for (const src of sources) {
92821
+ const key = sourceKey(src.type, src.compatibilityDate);
92822
+ const existing = migrationTargets.get(key);
92823
+ if (existing) {
92824
+ throw new Error(
92825
+ `[shwfed-form] migrateFrom collision: source "${key}" is claimed by both "${sourceKey(existing.type, existing.compatibilityDate)}" and "${sourceKey(d.type, d.compatibilityDate)}"`
92826
+ );
92827
+ }
92828
+ migrationTargets.set(key, { type: d.type, compatibilityDate: d.compatibilityDate });
92829
+ }
92830
+ }
92427
92831
  return (draft) => {
92832
+ const declared = migrationTargets.get(sourceKey(draft.type, draft.compatibilityDate));
92833
+ if (declared) {
92834
+ return { deprecated: true, supersededBy: declared };
92835
+ }
92428
92836
  const latest = latestByType.get(draft.type);
92429
- const deprecated = draft.compatibilityDate < latest;
92430
- return deprecated ? { deprecated: true, supersededBy: latest } : { deprecated: false };
92837
+ if (draft.compatibilityDate < latest) {
92838
+ return {
92839
+ deprecated: true,
92840
+ supersededBy: { type: draft.type, compatibilityDate: latest }
92841
+ };
92842
+ }
92843
+ return { deprecated: false };
92431
92844
  };
92432
92845
  }
92433
92846
  });
@@ -92444,6 +92857,7 @@ function getFields() {
92444
92857
  deprecated: e.deprecated,
92445
92858
  ...e.supersededBy !== void 0 ? { supersededBy: e.supersededBy } : {},
92446
92859
  migrate: e.module.migrate,
92860
+ ...e.module.migrateFrom !== void 0 ? { migrateFrom: e.module.migrateFrom } : {},
92447
92861
  defaults: e.module.defaults
92448
92862
  }));
92449
92863
  return _fields;
@@ -92829,32 +93243,20 @@ function numberExpression(configure) {
92829
93243
  });
92830
93244
  }
92831
93245
  function dataSourceSchema(configure) {
92832
- const CelRequest = Expression({
92833
- configure: (env) => {
92834
- configure(env);
92835
- },
92836
- resultType: "HttpRequest"
92837
- });
92838
- const CelData = Expression({
92839
- configure: (env) => {
92840
- configure(env);
92841
- env.registerVariable("json", "optional<dyn>", {
92842
- description: "HTTP 响应体(已解析 JSON);未配置 request 时为 none"
92843
- });
92844
- },
92845
- resultType: isListType
92846
- });
93246
+ const base2 = DataSource(configure);
92847
93247
  return Struct({
92848
93248
  id: UUID.annotations({ description: "数据源唯一标识" }),
92849
93249
  name: String$.pipe(pattern(/^[a-z_]\w*$/i)).annotations({
92850
93250
  title: "变量名",
92851
93251
  description: "在 X / Y 表达式中引用该数据源的 CEL 标识符(字母或下划线开头,仅含字母、数字、下划线)"
92852
93252
  }),
92853
- request: optional(CelRequest).annotations({
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({
92854
93256
  title: "请求",
92855
93257
  description: "可选的 HTTP 请求表达式;未配置时数据直接从 `数据` 表达式读取(通常引用上下文变量)"
92856
93258
  }),
92857
- data: CelData.annotations({
93259
+ data: base2.fields.data.annotations({
92858
93260
  title: "数据",
92859
93261
  description: "返回一个列表(`list<dyn>`)的 CEL 表达式;配置了 `请求` 时可通过 `json` 引用响应体。结果以上面的变量名暴露给 X / Y"
92860
93262
  })
@@ -93258,7 +93660,7 @@ server.registerTool("get_schema", {
93258
93660
  " - `foo[]` step into an array's `items` after resolving `foo`",
93259
93661
  " - `<type>` on a union, pick the branch whose `type` discriminator matches; if multiple `compatibilityDate` versions exist, picks the latest",
93260
93662
  " - `<type>@<date>` pin to a specific compatibilityDate",
93261
- "Example: `blocks[]/com.shwfed.block.table/columns[]/com.shwfed.table.column.switch`. On a bad segment the error lists the legal next steps."
93663
+ "Example: `blocks[]/com.shwfed.block.table/columns[]/com.shwfed.table.column.switch.local`. On a bad segment the error lists the legal next steps."
93262
93664
  ].join("\n"),
93263
93665
  inputSchema: {
93264
93666
  path: string$1().optional().describe("Optional `/`-separated path to narrow into. Omit to return the full schema.")