@shwfed/config 2.4.1 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/dist/mcp.mjs +222 -45
  2. package/dist/module.json +1 -1
  3. package/dist/preview/assets/{config-ByTxMBcK.js → config-2hrRmW-I.js} +1 -1
  4. package/dist/preview/assets/{config-Q86AhjHq.js → config-BfzthOw9.js} +1 -1
  5. package/dist/preview/assets/{config-C7xYpB3N.js → config-BsgSoDjY.js} +1 -1
  6. package/dist/preview/assets/{config-CH9wsYX8.js → config-CaLzEMyt.js} +1 -1
  7. package/dist/preview/assets/{config-D50Rl2n_.js → config-DKtPKn2s.js} +1 -1
  8. package/dist/preview/assets/{config-BovRv7Mw.js → config-DdgZWox9.js} +1 -1
  9. package/dist/preview/assets/{config-Ch5dL5lp.js → config-h_LH1CT_.js} +1 -1
  10. package/dist/preview/assets/{config-DiwVK32V.js → config-nsiwkAq8.js} +1 -1
  11. package/dist/preview/assets/{config-EKVeWrbS.js → config-zxVo1EOM.js} +1 -1
  12. package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-D8NPPbjZ.js → definition.vue_vue_type_script_setup_true_lang-CLpbGZ37.js} +1 -1
  13. package/dist/preview/assets/index-C0NJ1FZp.js +1 -0
  14. package/dist/preview/assets/index-C5dK4QAf.js +668 -0
  15. package/dist/preview/assets/{index-65eB1l4r.css → index-nvAUAYGM.css} +1 -1
  16. package/dist/preview/assets/{runtime-D34aQN00.js → runtime-527oKJb4.js} +1 -1
  17. package/dist/preview/assets/{runtime-BP7zXnyG.js → runtime-BLhH77F7.js} +1 -1
  18. package/dist/preview/assets/{runtime-a9TOQRwD.js → runtime-BRWnAaFs.js} +1 -1
  19. package/dist/preview/assets/{runtime-BwR_BbTu.js → runtime-CEXA5ttw.js} +1 -1
  20. package/dist/preview/assets/{runtime-Cunk4vOs.js → runtime-CZZWuLu9.js} +1 -1
  21. package/dist/preview/assets/{runtime-Ch3JIgUQ.js → runtime-DOLtY37Y.js} +1 -1
  22. package/dist/preview/assets/{runtime-BQSwNpLC.js → runtime-DZqXButD.js} +1 -1
  23. package/dist/preview/assets/{runtime-aPt-bW3F.js → runtime-MJo092Ed.js} +1 -1
  24. package/dist/preview/assets/{runtime-CjvZcU7X.js → runtime-i3-6DCWP.js} +1 -1
  25. package/dist/preview/index.html +2 -2
  26. package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +1 -1
  27. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +2 -2
  28. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +2 -2
  29. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.d.vue.ts +2 -2
  30. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetime/config.vue.d.ts +2 -2
  31. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +2 -2
  32. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +2 -2
  33. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +20 -20
  34. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +20 -20
  35. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +20 -20
  36. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +20 -20
  37. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +20 -20
  38. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +20 -20
  39. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +20 -20
  40. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +20 -20
  41. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +20 -20
  42. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +20 -20
  43. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +20 -20
  44. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +20 -20
  45. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +20 -20
  46. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +20 -20
  47. package/dist/runtime/components/form/index.vue +5 -18
  48. package/dist/runtime/components/form/schema.d.ts +2 -10
  49. package/dist/runtime/components/form/schema.js +2 -5
  50. package/dist/runtime/components/form/utils/cel-scope.d.ts +12 -3
  51. package/dist/runtime/components/form/utils/cel-scope.js +17 -18
  52. package/dist/runtime/components/form/utils/form-vars.d.ts +19 -0
  53. package/dist/runtime/components/form/utils/form-vars.js +5 -0
  54. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.d.ts +1 -0
  55. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/schema.js +8 -0
  56. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/config.vue +20 -8
  57. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.d.ts +2 -0
  58. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.date/schema.js +8 -0
  59. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/config.vue +21 -8
  60. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.d.ts +2 -0
  61. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.icon/schema.js +7 -0
  62. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.d.ts +1 -0
  63. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.markdown/schema.js +7 -0
  64. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/config.vue +21 -8
  65. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.d.ts +2 -0
  66. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.number/schema.js +8 -0
  67. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/schema.d.ts +1 -0
  68. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.select/schema.js +5 -0
  69. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/config.vue +21 -8
  70. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.d.ts +2 -0
  71. package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.text/schema.js +7 -0
  72. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/config.vue +21 -8
  73. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/schema.d.ts +1 -0
  74. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/config.vue +21 -8
  75. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.d.ts +2 -0
  76. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.js +7 -0
  77. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -0
  78. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.vue +20 -8
  79. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -0
  80. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.combobox-single/schema.d.ts +1 -0
  81. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/config.vue +20 -7
  82. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.d.ts +2 -0
  83. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.js +7 -0
  84. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/config.vue +20 -8
  85. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch/schema.d.ts +1 -0
  86. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/config.vue +20 -8
  87. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.d.ts +2 -0
  88. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/schema.js +7 -0
  89. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/config.vue +20 -8
  90. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.d.ts +2 -0
  91. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.js +7 -0
  92. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +6 -4
  93. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue +21 -8
  94. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +6 -4
  95. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/schema.d.ts +1 -0
  96. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.d.vue.ts +4 -2
  97. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue +20 -8
  98. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue.d.ts +4 -2
  99. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/schema.d.ts +1 -0
  100. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -0
  101. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/config.vue +20 -8
  102. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -0
  103. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi/schema.d.ts +1 -0
  104. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +6 -4
  105. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue +21 -8
  106. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +6 -4
  107. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/schema.d.ts +1 -0
  108. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.d.vue.ts +4 -2
  109. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue +20 -8
  110. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +4 -2
  111. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/schema.d.ts +1 -0
  112. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.d.vue.ts +4 -2
  113. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue +20 -8
  114. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue.d.ts +4 -2
  115. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/schema.d.ts +1 -0
  116. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +6 -4
  117. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue +20 -8
  118. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +6 -4
  119. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/schema.d.ts +1 -0
  120. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.d.vue.ts +4 -2
  121. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue +20 -8
  122. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue.d.ts +4 -2
  123. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/schema.d.ts +1 -0
  124. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +6 -4
  125. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue +20 -8
  126. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +6 -4
  127. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/schema.d.ts +1 -0
  128. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -6
  129. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue +20 -7
  130. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -6
  131. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +1 -0
  132. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +6 -4
  133. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue +20 -7
  134. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +6 -4
  135. package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/schema.d.ts +1 -0
  136. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +6 -4
  137. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue +20 -8
  138. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +6 -4
  139. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.d.ts +2 -0
  140. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.js +10 -1
  141. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +6 -4
  142. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue +20 -8
  143. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +6 -4
  144. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.d.ts +2 -0
  145. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.js +10 -1
  146. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.d.vue.ts +8 -6
  147. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue +20 -7
  148. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/config.vue.d.ts +8 -6
  149. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/schema.d.ts +1 -0
  150. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/schema.js +3 -0
  151. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.d.vue.ts +6 -4
  152. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue +20 -7
  153. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/config.vue.d.ts +6 -4
  154. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/schema.d.ts +1 -0
  155. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/schema.js +3 -0
  156. package/dist/runtime/components/table/config.vue +24 -103
  157. package/dist/runtime/components/table/index.vue +22 -2
  158. package/dist/runtime/components/table/schema.d.ts +4 -2
  159. package/dist/runtime/components/table/schema.js +69 -13
  160. package/dist/runtime/components/table/utils/resolve.d.ts +14 -0
  161. package/dist/runtime/components/table/utils/resolve.js +2 -1
  162. package/dist/runtime/components/table/utils/shared.d.ts +2 -0
  163. package/dist/runtime/components/table/utils/shared.js +10 -2
  164. package/package.json +1 -1
  165. package/dist/preview/assets/index-CIrlYN0M.js +0 -1
  166. package/dist/preview/assets/index-DUDlWaQI.js +0 -661
package/dist/mcp.mjs CHANGED
@@ -14094,13 +14094,13 @@ function requireDataType() {
14094
14094
  }
14095
14095
  return dataType;
14096
14096
  }
14097
- var defaults$l = {};
14097
+ var defaults$y = {};
14098
14098
  var hasRequiredDefaults;
14099
14099
  function requireDefaults() {
14100
- if (hasRequiredDefaults) return defaults$l;
14100
+ if (hasRequiredDefaults) return defaults$y;
14101
14101
  hasRequiredDefaults = 1;
14102
- Object.defineProperty(defaults$l, "__esModule", { value: true });
14103
- defaults$l.assignDefaults = void 0;
14102
+ Object.defineProperty(defaults$y, "__esModule", { value: true });
14103
+ defaults$y.assignDefaults = void 0;
14104
14104
  const codegen_1 = /* @__PURE__ */ requireCodegen();
14105
14105
  const util_1 = /* @__PURE__ */ requireUtil$1();
14106
14106
  function assignDefaults(it, ty) {
@@ -14113,7 +14113,7 @@ function requireDefaults() {
14113
14113
  items2.forEach((sch, i) => assignDefault(it, i, sch.default));
14114
14114
  }
14115
14115
  }
14116
- defaults$l.assignDefaults = assignDefaults;
14116
+ defaults$y.assignDefaults = assignDefaults;
14117
14117
  function assignDefault(it, prop, defaultValue) {
14118
14118
  const { gen: gen2, compositeRule, data, opts } = it;
14119
14119
  if (defaultValue === void 0)
@@ -14129,7 +14129,7 @@ function requireDefaults() {
14129
14129
  }
14130
14130
  gen2.if(condition, (0, codegen_1._)`${childData} = ${(0, codegen_1.stringify)(defaultValue)}`);
14131
14131
  }
14132
- return defaults$l;
14132
+ return defaults$y;
14133
14133
  }
14134
14134
  var keyword = {};
14135
14135
  var code$1 = {};
@@ -82980,13 +82980,13 @@ function schema$_(configure) {
82980
82980
  description: "日期范围选择输入"
82981
82981
  });
82982
82982
  }
82983
- function defaults$k() {
82983
+ function defaults$x() {
82984
82984
  return { rangeSeparatorIcon: "fluent:arrow-right-20-regular" };
82985
82985
  }
82986
82986
  const __vite_glob_0_6$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
82987
82987
  __proto__: null,
82988
82988
  compatibilityDate: compatibilityDate$_,
82989
- defaults: defaults$k,
82989
+ defaults: defaults$x,
82990
82990
  metadata: metadata$_,
82991
82991
  presetSchema: presetSchema$4,
82992
82992
  schema: schema$_,
@@ -83210,7 +83210,7 @@ function schema$Y(configure) {
83210
83210
  description: "日期时间范围选择输入"
83211
83211
  });
83212
83212
  }
83213
- function defaults$j() {
83213
+ function defaults$w() {
83214
83214
  return { rangeSeparatorIcon: "fluent:arrow-right-20-regular" };
83215
83215
  }
83216
83216
  const __vite_glob_0_8$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -83219,7 +83219,7 @@ const __vite_glob_0_8$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
83219
83219
  TIME_GRANULARITIES: TIME_GRANULARITIES$2,
83220
83220
  TIME_GRANULARITY_OPTIONS: TIME_GRANULARITY_OPTIONS$2,
83221
83221
  compatibilityDate: compatibilityDate$Y,
83222
- defaults: defaults$j,
83222
+ defaults: defaults$w,
83223
83223
  metadata: metadata$Y,
83224
83224
  presetSchema: presetSchema$2,
83225
83225
  schema: schema$Y,
@@ -83372,7 +83372,7 @@ function schema$W(configure) {
83372
83372
  description: "时间范围选择输入"
83373
83373
  });
83374
83374
  }
83375
- function defaults$i() {
83375
+ function defaults$v() {
83376
83376
  return { rangeSeparatorIcon: "fluent:arrow-right-20-regular" };
83377
83377
  }
83378
83378
  const __vite_glob_0_10$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
@@ -83381,7 +83381,7 @@ const __vite_glob_0_10$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
83381
83381
  TIME_GRANULARITIES,
83382
83382
  TIME_GRANULARITY_OPTIONS,
83383
83383
  compatibilityDate: compatibilityDate$W,
83384
- defaults: defaults$i,
83384
+ defaults: defaults$v,
83385
83385
  metadata: metadata$W,
83386
83386
  schema: schema$W,
83387
83387
  type: type$W
@@ -83548,13 +83548,13 @@ function schema$U(configure) {
83548
83548
  description: "数值范围输入"
83549
83549
  });
83550
83550
  }
83551
- function defaults$h() {
83551
+ function defaults$u() {
83552
83552
  return { rangeSeparatorIcon: "fluent:arrow-right-20-regular" };
83553
83553
  }
83554
83554
  const __vite_glob_0_12$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
83555
83555
  __proto__: null,
83556
83556
  compatibilityDate: compatibilityDate$U,
83557
- defaults: defaults$h,
83557
+ defaults: defaults$u,
83558
83558
  metadata: metadata$U,
83559
83559
  schema: schema$U,
83560
83560
  type: type$U
@@ -89299,7 +89299,7 @@ function schema$P(configure) {
89299
89299
  description: "可新增/删除/重排的同构子表单列表"
89300
89300
  });
89301
89301
  }
89302
- function defaults$g() {
89302
+ function defaults$t() {
89303
89303
  return {
89304
89304
  unit: {
89305
89305
  fields: [],
@@ -89310,7 +89310,7 @@ function defaults$g() {
89310
89310
  const __vite_glob_0_17$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
89311
89311
  __proto__: null,
89312
89312
  compatibilityDate: compatibilityDate$P,
89313
- defaults: defaults$g,
89313
+ defaults: defaults$t,
89314
89314
  metadata: metadata$P,
89315
89315
  schema: schema$P,
89316
89316
  type: type$P
@@ -90892,9 +90892,13 @@ function columnFields(configure) {
90892
90892
  | 数据量 | **全量**,能够跨越多页 | 当前页 |
90893
90893
  | 开发量 | 需要后端支持,可能影响性能 | **配置即启用,无需后端支持** |
90894
90894
 
90895
- 注意:对于服务端排序,除了在这里打开排序开关,你还需要在「通用配置 → 数据源 → 请求」处,**将正在排序字段、排序状态传给后端**。
90895
+ 注意:对于服务端排序,除了在这里打开排序开关,你还需要在「通用配置 → 数据源 → 请求」处,通过 \`sorts\` 变量**将各列「排序字段」(sortKey)、排序方向传给后端**。
90896
90896
  `
90897
90897
  })),
90898
+ sortKey: optional(String$.pipe(minLength(1)).annotations({
90899
+ title: "排序字段",
90900
+ description: "服务端排序时通过数据源请求的 `sorts` 变量传给后端的字段标识;启用排序时必填"
90901
+ })),
90898
90902
  size: optional(Number$.pipe(finite(), positive()).annotations({
90899
90903
  title: "列宽",
90900
90904
  description: "指定一个合适的表格列宽度,当列内容长度大于这里指定的宽度后,会导致超出的部分被截断。"
@@ -90913,7 +90917,11 @@ function editableColumnFields() {
90913
90917
  }),
90914
90918
  enableSorting: optional(Boolean$.annotations({
90915
90919
  title: "允许排序",
90916
- description: "显示排序按钮;启用客户端排序,按当前 `binding` 路径上的值排序"
90920
+ description: "显示排序按钮;客户端排序按当前 `binding` 路径上的值排序,服务端排序则通过数据源请求的 `sorts` 变量将「排序字段」(sortKey) 传给后端"
90921
+ })),
90922
+ sortKey: optional(String$.pipe(minLength(1)).annotations({
90923
+ title: "排序字段",
90924
+ description: "服务端排序时通过数据源请求的 `sorts` 变量传给后端的字段标识;启用排序时必填"
90917
90925
  })),
90918
90926
  size: optional(Number$.pipe(finite(), positive()).annotations({
90919
90927
  title: "列宽",
@@ -90991,6 +90999,14 @@ function schema$M(configure) {
90991
90999
  ...actionFieldsForColumn
90992
91000
  }).annotations({ title: "ActionsRenderer", description: "操作渲染器" });
90993
91001
  }
91002
+ function defaults$s() {
91003
+ return {
91004
+ title: [{ locale: "zh", message: "" }],
91005
+ size: 200,
91006
+ groups: [],
91007
+ items: []
91008
+ };
91009
+ }
90994
91010
  function toColumnDef$t(value, { getLocaleText }) {
90995
91011
  return {
90996
91012
  header: value.title ? getLocaleText(value.title) : void 0,
@@ -91005,6 +91021,7 @@ function toColumnDef$t(value, { getLocaleText }) {
91005
91021
  const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91006
91022
  __proto__: null,
91007
91023
  compatibilityDate: compatibilityDate$M,
91024
+ defaults: defaults$s,
91008
91025
  metadata: metadata$M,
91009
91026
  registerRowVariables,
91010
91027
  schema: schema$M,
@@ -91031,6 +91048,14 @@ function schema$L(configure) {
91031
91048
  })
91032
91049
  }).annotations({ title: "DateRenderer", description: "日期渲染器" });
91033
91050
  }
91051
+ function defaults$r() {
91052
+ return {
91053
+ title: [{ locale: "zh", message: "" }],
91054
+ accessor: "",
91055
+ format: "yyyy-MM-dd",
91056
+ size: 120
91057
+ };
91058
+ }
91034
91059
  function toColumnDef$s(value, { getLocaleText, $cel, inheritedContext }) {
91035
91060
  return {
91036
91061
  header: getLocaleText(value.title),
@@ -91053,6 +91078,7 @@ function toColumnDef$s(value, { getLocaleText, $cel, inheritedContext }) {
91053
91078
  const __vite_glob_0_1$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91054
91079
  __proto__: null,
91055
91080
  compatibilityDate: compatibilityDate$L,
91081
+ defaults: defaults$r,
91056
91082
  metadata: metadata$L,
91057
91083
  schema: schema$L,
91058
91084
  toColumnDef: toColumnDef$s,
@@ -91082,6 +91108,13 @@ function schema$K(configure) {
91082
91108
  align: optionalWith(Align.annotations({ title: "对齐" }), { default: () => "center" })
91083
91109
  }).annotations({ title: "IconRenderer", description: "图标渲染器" });
91084
91110
  }
91111
+ function defaults$q() {
91112
+ return {
91113
+ title: [{ locale: "zh", message: "" }],
91114
+ accessor: "",
91115
+ size: 120
91116
+ };
91117
+ }
91085
91118
  function toColumnDef$r(value, { getLocaleText, $cel, inheritedContext }) {
91086
91119
  return {
91087
91120
  header: getLocaleText(value.title),
@@ -91104,6 +91137,7 @@ function toColumnDef$r(value, { getLocaleText, $cel, inheritedContext }) {
91104
91137
  const __vite_glob_0_2$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91105
91138
  __proto__: null,
91106
91139
  compatibilityDate: compatibilityDate$K,
91140
+ defaults: defaults$q,
91107
91141
  metadata: metadata$K,
91108
91142
  schema: schema$K,
91109
91143
  toColumnDef: toColumnDef$r,
@@ -91147,6 +91181,13 @@ function schema$J(configure) {
91147
91181
  }))
91148
91182
  }).annotations({ title: "MarkdownRenderer", description: "MD" });
91149
91183
  }
91184
+ function defaults$p() {
91185
+ return {
91186
+ title: [{ locale: "zh", message: "" }],
91187
+ markdown: [{ locale: "zh", message: "" }],
91188
+ size: 120
91189
+ };
91190
+ }
91150
91191
  function toColumnDef$q(value, { getLocaleText }) {
91151
91192
  return {
91152
91193
  header: getLocaleText(value.title),
@@ -91161,6 +91202,7 @@ function toColumnDef$q(value, { getLocaleText }) {
91161
91202
  const __vite_glob_0_3$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91162
91203
  __proto__: null,
91163
91204
  compatibilityDate: compatibilityDate$J,
91205
+ defaults: defaults$p,
91164
91206
  metadata: metadata$J,
91165
91207
  schema: schema$J,
91166
91208
  toColumnDef: toColumnDef$q,
@@ -91195,6 +91237,14 @@ function schema$I(configure) {
91195
91237
  }))
91196
91238
  }).annotations({ title: "NumberRenderer", description: "数值渲染器" });
91197
91239
  }
91240
+ function defaults$o() {
91241
+ return {
91242
+ title: [{ locale: "zh", message: "" }],
91243
+ accessor: "",
91244
+ size: 120,
91245
+ align: "right"
91246
+ };
91247
+ }
91198
91248
  function toColumnDef$p(value, { getLocaleText, $cel, inheritedContext }) {
91199
91249
  return {
91200
91250
  header: getLocaleText(value.title),
@@ -91217,6 +91267,7 @@ function toColumnDef$p(value, { getLocaleText, $cel, inheritedContext }) {
91217
91267
  const __vite_glob_0_4$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91218
91268
  __proto__: null,
91219
91269
  compatibilityDate: compatibilityDate$I,
91270
+ defaults: defaults$o,
91220
91271
  metadata: metadata$I,
91221
91272
  schema: schema$I,
91222
91273
  toColumnDef: toColumnDef$p,
@@ -91259,6 +91310,11 @@ function schema$H(configure) {
91259
91310
  })
91260
91311
  }).annotations({ title: "SelectRenderer", description: "选择渲染器" });
91261
91312
  }
91313
+ function defaults$n() {
91314
+ return {
91315
+ mode: "checkbox"
91316
+ };
91317
+ }
91262
91318
  function toColumnDef$o(value) {
91263
91319
  return {
91264
91320
  header: (ctx) => vueExports.h(__vite_glob_2_5, { column: value, ctx }),
@@ -91271,6 +91327,7 @@ function toColumnDef$o(value) {
91271
91327
  const __vite_glob_0_5$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91272
91328
  __proto__: null,
91273
91329
  compatibilityDate: compatibilityDate$H,
91330
+ defaults: defaults$n,
91274
91331
  metadata: metadata$H,
91275
91332
  schema: schema$H,
91276
91333
  toColumnDef: toColumnDef$o,
@@ -91303,6 +91360,13 @@ function schema$G(configure) {
91303
91360
  }))
91304
91361
  }).annotations({ title: "TextRenderer", description: "文本渲染器" });
91305
91362
  }
91363
+ function defaults$m() {
91364
+ return {
91365
+ title: [{ locale: "zh", message: "" }],
91366
+ accessor: "",
91367
+ size: 120
91368
+ };
91369
+ }
91306
91370
  function toColumnDef$n(value, { getLocaleText, $cel, inheritedContext }) {
91307
91371
  return {
91308
91372
  header: getLocaleText(value.title),
@@ -91326,6 +91390,7 @@ function toColumnDef$n(value, { getLocaleText, $cel, inheritedContext }) {
91326
91390
  const __vite_glob_0_6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91327
91391
  __proto__: null,
91328
91392
  compatibilityDate: compatibilityDate$G,
91393
+ defaults: defaults$m,
91329
91394
  metadata: metadata$G,
91330
91395
  schema: schema$G,
91331
91396
  toColumnDef: toColumnDef$n,
@@ -91377,6 +91442,13 @@ function schema$F(configure) {
91377
91442
  }))
91378
91443
  }).annotations({ title: "SwitchRenderer", description: "开关渲染器(可编辑)" });
91379
91444
  }
91445
+ function defaults$l() {
91446
+ return {
91447
+ title: [{ locale: "zh", message: "" }],
91448
+ accessor: "",
91449
+ size: 120
91450
+ };
91451
+ }
91380
91452
  const migrateFrom$e = [
91381
91453
  { type: "com.shwfed.table.column.switch", compatibilityDate: compatibilityDate$F }
91382
91454
  ];
@@ -91412,6 +91484,7 @@ function toColumnDef$m(value, { getLocaleText, $cel, inheritedContext }) {
91412
91484
  const __vite_glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91413
91485
  __proto__: null,
91414
91486
  compatibilityDate: compatibilityDate$F,
91487
+ defaults: defaults$l,
91415
91488
  metadata: metadata$F,
91416
91489
  migrate: migrate$e,
91417
91490
  migrateFrom: migrateFrom$e,
@@ -91841,6 +91914,13 @@ function schema$C(configure) {
91841
91914
  derived: derivedRowField(configure, "number")
91842
91915
  }).annotations({ title: "NumberInputRenderer", description: "数值输入渲染器(可编辑)" });
91843
91916
  }
91917
+ function defaults$k() {
91918
+ return {
91919
+ title: [{ locale: "zh", message: "" }],
91920
+ binding: "",
91921
+ size: 120
91922
+ };
91923
+ }
91844
91924
  function toColumnDef$j(value, { getLocaleText }) {
91845
91925
  return {
91846
91926
  header: editableHeader(getLocaleText(value.title)),
@@ -91865,6 +91945,7 @@ function toColumnDef$j(value, { getLocaleText }) {
91865
91945
  const __vite_glob_0_10 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91866
91946
  __proto__: null,
91867
91947
  compatibilityDate: compatibilityDate$C,
91948
+ defaults: defaults$k,
91868
91949
  metadata: metadata$C,
91869
91950
  schema: schema$C,
91870
91951
  toColumnDef: toColumnDef$j,
@@ -91905,6 +91986,13 @@ function schema$B(configure) {
91905
91986
  derived: derivedRowField(configure, "bool")
91906
91987
  }).annotations({ title: "SwitchRenderer", description: "开关渲染器(可编辑、本地)" });
91907
91988
  }
91989
+ function defaults$j() {
91990
+ return {
91991
+ title: [{ locale: "zh", message: "" }],
91992
+ binding: "",
91993
+ size: 120
91994
+ };
91995
+ }
91908
91996
  const migrateFrom$d = [
91909
91997
  { type: "com.shwfed.table.column.switch", compatibilityDate: compatibilityDate$B }
91910
91998
  ];
@@ -91940,6 +92028,7 @@ function toColumnDef$i(value, { getLocaleText }) {
91940
92028
  const __vite_glob_0_11 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
91941
92029
  __proto__: null,
91942
92030
  compatibilityDate: compatibilityDate$B,
92031
+ defaults: defaults$j,
91943
92032
  metadata: metadata$B,
91944
92033
  migrate: migrate$d,
91945
92034
  migrateFrom: migrateFrom$d,
@@ -92041,6 +92130,13 @@ function schema$z(configure) {
92041
92130
  derived: derivedRowField(configure, "string")
92042
92131
  }).annotations({ title: "TextInputRenderer", description: "文本输入渲染器(可编辑)" });
92043
92132
  }
92133
+ function defaults$i() {
92134
+ return {
92135
+ title: [{ locale: "zh", message: "" }],
92136
+ binding: "",
92137
+ size: 120
92138
+ };
92139
+ }
92044
92140
  function toColumnDef$g(value, { getLocaleText }) {
92045
92141
  return {
92046
92142
  header: editableHeader(getLocaleText(value.title)),
@@ -92062,6 +92158,7 @@ function toColumnDef$g(value, { getLocaleText }) {
92062
92158
  const __vite_glob_0_13 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
92063
92159
  __proto__: null,
92064
92160
  compatibilityDate: compatibilityDate$z,
92161
+ defaults: defaults$i,
92065
92162
  metadata: metadata$z,
92066
92163
  schema: schema$z,
92067
92164
  toColumnDef: toColumnDef$g,
@@ -93663,7 +93760,7 @@ function schema$o(configure) {
93663
93760
  })
93664
93761
  }).annotations({ title: "TreeComboboxMultiRenderer", description: "下拉树多选渲染器(可编辑)" });
93665
93762
  }
93666
- function defaults$f() {
93763
+ function defaults$h() {
93667
93764
  return {
93668
93765
  dataSource: { data: "[]" },
93669
93766
  nodeKey: "string(node.id)",
@@ -93692,7 +93789,7 @@ function toColumnDef$5(value, { getLocaleText }) {
93692
93789
  const __vite_glob_0_24$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
93693
93790
  __proto__: null,
93694
93791
  compatibilityDate: compatibilityDate$o,
93695
- defaults: defaults$f,
93792
+ defaults: defaults$h,
93696
93793
  metadata: metadata$o,
93697
93794
  schema: schema$o,
93698
93795
  toColumnDef: toColumnDef$5,
@@ -93797,7 +93894,7 @@ function schema$n(configure) {
93797
93894
  })
93798
93895
  }).annotations({ title: "TreeComboboxSingleRenderer", description: "下拉树单选渲染器(可编辑)" });
93799
93896
  }
93800
- function defaults$e() {
93897
+ function defaults$g() {
93801
93898
  return {
93802
93899
  dataSource: { data: "[]" },
93803
93900
  nodeKey: "string(node.id)",
@@ -93825,7 +93922,7 @@ function toColumnDef$4(value, { getLocaleText }) {
93825
93922
  const __vite_glob_0_25$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
93826
93923
  __proto__: null,
93827
93924
  compatibilityDate: compatibilityDate$n,
93828
- defaults: defaults$e,
93925
+ defaults: defaults$g,
93829
93926
  metadata: metadata$n,
93830
93927
  schema: schema$n,
93831
93928
  toColumnDef: toColumnDef$4,
@@ -94009,6 +94106,7 @@ function schema$m(configure) {
94009
94106
  description: "返回 `true` 时仅以纯文本展示当前已选项的标签"
94010
94107
  })),
94011
94108
  enableSorting: display.enableSorting,
94109
+ sortKey: display.sortKey,
94012
94110
  size: display.size,
94013
94111
  grow: display.grow,
94014
94112
  tooltip: display.tooltip,
@@ -94023,11 +94121,19 @@ function schema$m(configure) {
94023
94121
  description: "下拉多选渲染器"
94024
94122
  });
94025
94123
  }
94124
+ function defaults$f() {
94125
+ return {
94126
+ title: [{ locale: "zh", message: "" }],
94127
+ size: 200,
94128
+ write: { kind: "binding", binding: "" },
94129
+ options: { kind: "static", items: [] }
94130
+ };
94131
+ }
94026
94132
  const migrateFrom$8 = [
94027
94133
  { type: "com.shwfed.table.column.combobox-multi", compatibilityDate: "2026-05-26" },
94028
94134
  { type: "com.shwfed.table.column.combobox-multi.remote", compatibilityDate: "2026-05-26" }
94029
94135
  ];
94030
- const CARRY$1 = ["id", "groupId", "title", "size", "grow", "tooltip", "enableSorting", "placeholder", "hidden", "disabled", "readonly"];
94136
+ const CARRY$1 = ["id", "groupId", "title", "size", "grow", "tooltip", "enableSorting", "sortKey", "placeholder", "hidden", "disabled", "readonly"];
94031
94137
  const migrate$8 = (prev) => try_({
94032
94138
  try: () => {
94033
94139
  if (!prev || typeof prev !== "object") {
@@ -94096,6 +94202,7 @@ function toColumnDef$3(value, { getLocaleText, $cel, inheritedContext }) {
94096
94202
  const __vite_glob_0_26$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
94097
94203
  __proto__: null,
94098
94204
  compatibilityDate: compatibilityDate$m,
94205
+ defaults: defaults$f,
94099
94206
  itemSchema: itemSchema$3,
94100
94207
  metadata: metadata$m,
94101
94208
  migrate: migrate$8,
@@ -94285,6 +94392,7 @@ function schema$l(configure) {
94285
94392
  description: "返回 `true` 时仅以纯文本展示当前选项的标签"
94286
94393
  })),
94287
94394
  enableSorting: display.enableSorting,
94395
+ sortKey: display.sortKey,
94288
94396
  size: display.size,
94289
94397
  grow: display.grow,
94290
94398
  tooltip: display.tooltip,
@@ -94299,11 +94407,19 @@ function schema$l(configure) {
94299
94407
  description: "下拉单选渲染器"
94300
94408
  });
94301
94409
  }
94410
+ function defaults$e() {
94411
+ return {
94412
+ title: [{ locale: "zh", message: "" }],
94413
+ size: 200,
94414
+ write: { kind: "binding", binding: "" },
94415
+ options: { kind: "static", items: [] }
94416
+ };
94417
+ }
94302
94418
  const migrateFrom$7 = [
94303
94419
  { type: "com.shwfed.table.column.combobox-single", compatibilityDate: "2026-05-26" },
94304
94420
  { type: "com.shwfed.table.column.combobox-single.remote", compatibilityDate: "2026-05-26" }
94305
94421
  ];
94306
- const CARRY = ["id", "groupId", "title", "size", "grow", "tooltip", "enableSorting", "placeholder", "hidden", "disabled", "readonly"];
94422
+ const CARRY = ["id", "groupId", "title", "size", "grow", "tooltip", "enableSorting", "sortKey", "placeholder", "hidden", "disabled", "readonly"];
94307
94423
  const migrate$7 = (prev) => try_({
94308
94424
  try: () => {
94309
94425
  if (!prev || typeof prev !== "object") {
@@ -94372,6 +94488,7 @@ function toColumnDef$2(value, { getLocaleText, $cel, inheritedContext }) {
94372
94488
  const __vite_glob_0_27$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
94373
94489
  __proto__: null,
94374
94490
  compatibilityDate: compatibilityDate$l,
94491
+ defaults: defaults$e,
94375
94492
  itemSchema: itemSchema$2,
94376
94493
  metadata: metadata$l,
94377
94494
  migrate: migrate$7,
@@ -94496,6 +94613,9 @@ function schema$k(configure) {
94496
94613
  }
94497
94614
  function defaults$d() {
94498
94615
  return {
94616
+ title: [{ locale: "zh", message: "" }],
94617
+ binding: "",
94618
+ size: 200,
94499
94619
  dataSource: { data: "[]" },
94500
94620
  nodeKey: "string(node.id)",
94501
94621
  nodeChildren: "has(node.children) ? node.children : null",
@@ -94650,6 +94770,9 @@ function schema$j(configure) {
94650
94770
  }
94651
94771
  function defaults$c() {
94652
94772
  return {
94773
+ title: [{ locale: "zh", message: "" }],
94774
+ binding: "",
94775
+ size: 200,
94653
94776
  dataSource: { data: "[]" },
94654
94777
  nodeKey: "string(node.id)",
94655
94778
  nodeChildren: "has(node.children) ? node.children : null",
@@ -94858,7 +94981,8 @@ const COLUMNS = registry$2.ENTRIES.map((e) => ({
94858
94981
  deprecated: e.deprecated,
94859
94982
  ...e.supersededBy !== void 0 ? { supersededBy: e.supersededBy } : {},
94860
94983
  ...e.module.migrate !== void 0 ? { migrate: e.module.migrate } : {},
94861
- ...e.module.migrateFrom !== void 0 ? { migrateFrom: e.module.migrateFrom } : {}
94984
+ ...e.module.migrateFrom !== void 0 ? { migrateFrom: e.module.migrateFrom } : {},
94985
+ ...e.module.defaults !== void 0 ? { defaults: e.module.defaults } : {}
94862
94986
  }));
94863
94987
  (() => {
94864
94988
  const map2 = /* @__PURE__ */ new Map();
@@ -95029,6 +95153,15 @@ const ColumnGroup = Struct({
95029
95153
  description: "列分组定义"
95030
95154
  });
95031
95155
  const QUERY_VAR_DESCRIPTION = "搜索条件当前状态;未配置搜索条件时为空对象";
95156
+ const JSON_VAR_DESCRIPTION = "已解析的 JSON 响应;未配置 `request` 时为 `none`";
95157
+ const SORTS_VAR_DESCRIPTION = md`
95158
+ 当前的排序状态,为一个**列表**,每个元素包含两个字段:
95159
+
95160
+ - \`key: string\` 为该列上配置的键
95161
+ - \`mode: 'asc' | 'desc'\` 为该列的排序状态
95162
+
95163
+ 未排序的字段,**不会出现在这个列表中**。
95164
+ `;
95032
95165
  function configureTableActionsScope(env, configure) {
95033
95166
  configure(env);
95034
95167
  env.registerVariable("selected", "list<dyn>", {
@@ -95039,12 +95172,43 @@ function configureTableActionsScope(env, configure) {
95039
95172
  label: "搜索条件",
95040
95173
  description: QUERY_VAR_DESCRIPTION
95041
95174
  });
95175
+ env.registerVariable("sorts", "list<map<string, string>>", {
95176
+ label: "排序状态",
95177
+ description: SORTS_VAR_DESCRIPTION
95178
+ });
95179
+ }
95180
+ function registerDataSourceRequestVars(env) {
95181
+ env.registerVariable("pageIndex", "number", {
95182
+ label: "当前页码",
95183
+ description: "从 `0` 开始;未启用分页时为 `0`"
95184
+ });
95185
+ env.registerVariable("pageSize", "number", {
95186
+ label: "每页行数",
95187
+ description: "当前每页行数;未启用分页时为 `0`"
95188
+ });
95189
+ env.registerVariable("sorts", "list<map<string, string>>", {
95190
+ label: "排序状态",
95191
+ description: SORTS_VAR_DESCRIPTION
95192
+ });
95193
+ env.registerVariable("query", "dyn", {
95194
+ label: "搜索条件",
95195
+ description: QUERY_VAR_DESCRIPTION
95196
+ });
95197
+ }
95198
+ function registerDataSourceResponseVars(env) {
95199
+ env.registerVariable("json", "optional<dyn>", {
95200
+ label: "HTTP 响应体",
95201
+ description: JSON_VAR_DESCRIPTION
95202
+ });
95203
+ env.registerVariable("query", "dyn", {
95204
+ label: "搜索条件",
95205
+ description: QUERY_VAR_DESCRIPTION
95206
+ });
95042
95207
  }
95043
95208
  function DataSource(configure, extras) {
95044
95209
  const CelRequest = Expression({
95045
95210
  configure: (env) => {
95046
95211
  configure(env);
95047
- extras?.request?.(env);
95048
95212
  },
95049
95213
  resultType: "HttpRequest"
95050
95214
  });
@@ -95054,7 +95218,6 @@ function DataSource(configure, extras) {
95054
95218
  env.registerVariable("json", "optional<dyn>", {
95055
95219
  description: "HTTP 响应体(已解析 JSON);未配置 request 时为 none"
95056
95220
  });
95057
- extras?.data?.(env);
95058
95221
  },
95059
95222
  resultType: (type2) => type2.startsWith("list") || type2 === "dyn" || type2.startsWith("optional")
95060
95223
  });
@@ -95073,28 +95236,36 @@ function DataSource(configure, extras) {
95073
95236
  });
95074
95237
  }
95075
95238
  function tableDataSource(configure) {
95076
- const base2 = DataSource(configure, {
95077
- request: (env) => {
95078
- env.registerVariable("pageIndex", "number", { description: "当前页码(从 0 开始);未启用分页时为 0" });
95079
- env.registerVariable("pageSize", "number", { description: "每页行数;未启用分页时为 0" });
95080
- env.registerVariable("query", "dyn", { description: QUERY_VAR_DESCRIPTION });
95239
+ const CelRequest = Expression({
95240
+ configure: (env) => {
95241
+ configure(env);
95242
+ registerDataSourceRequestVars(env);
95081
95243
  },
95082
- data: (env) => {
95083
- env.registerVariable("query", "dyn", { description: QUERY_VAR_DESCRIPTION });
95084
- }
95244
+ resultType: "HttpRequest"
95245
+ });
95246
+ const CelRows = Expression({
95247
+ configure: (env) => {
95248
+ configure(env);
95249
+ registerDataSourceResponseVars(env);
95250
+ },
95251
+ resultType: (type2) => type2.startsWith("list") || type2 === "dyn" || type2.startsWith("optional")
95085
95252
  });
95086
95253
  const CelTotal = Expression({
95087
95254
  configure: (env) => {
95088
95255
  configure(env);
95089
- env.registerVariable("json", "optional<dyn>", {
95090
- description: "HTTP 响应体(已解析 JSON);未配置 request 时为 none"
95091
- });
95092
- env.registerVariable("query", "dyn", { description: QUERY_VAR_DESCRIPTION });
95256
+ registerDataSourceResponseVars(env);
95093
95257
  },
95094
95258
  resultType: (type2) => type2 === "number" || type2 === "dyn" || type2.startsWith("optional")
95095
95259
  });
95096
95260
  return Struct({
95097
- ...base2.fields,
95261
+ request: optional(CelRequest).annotations({
95262
+ title: "请求",
95263
+ description: "可选的 HTTP 请求表达式;未配置时数据从 `data` 表达式中读取(通常引用上下文变量)"
95264
+ }),
95265
+ data: CelRows.annotations({
95266
+ title: "数据",
95267
+ description: "返回行数据列表(`list<dyn>`)的 CEL 表达式;在配置了 `request` 时可通过 `json` 引用响应体"
95268
+ }),
95098
95269
  total: optional(CelTotal).annotations({
95099
95270
  title: "总数",
95100
95271
  description: "返回总行数(`number`)的 CEL 表达式;配置后启用服务端分页,留空则走前端分页"
@@ -95185,6 +95356,12 @@ function TableConfig(configure) {
95185
95356
  if (cfg.dataSource?.total !== void 0 && cfg.pagination === void 0) {
95186
95357
  return "配置了 dataSource.total 时必须启用分页";
95187
95358
  }
95359
+ for (const col of cfg.columns) {
95360
+ const c = col;
95361
+ if (c.enableSorting === true && (c.sortKey === void 0 || c.sortKey.length === 0)) {
95362
+ return "启用排序的列必须填写「排序字段」(sortKey)";
95363
+ }
95364
+ }
95188
95365
  return true;
95189
95366
  })).annotations({
95190
95367
  title: "TableConfig",
@@ -97068,6 +97245,11 @@ function allFieldSchemas(configure) {
97068
97245
  identifier: `${entry.type}@${entry.compatibilityDate}`
97069
97246
  }));
97070
97247
  }
97248
+ function registerFormVariablesIfAbsent(env) {
97249
+ const declared = new Set(env.getDefinitions().variables.map((v) => v.name));
97250
+ if (!declared.has("now")) env.registerVariable("now", "Date", { label: "当前时间", description: "当前日期/时间" });
97251
+ if (!declared.has("form")) env.registerVariable("form", "dyn", { label: "表单值", description: "当前表单状态" });
97252
+ }
97071
97253
  const KIND$1 = "shwfed.component.form";
97072
97254
  function unitFields(configure) {
97073
97255
  const fieldSchemas = allFieldSchemas(configure);
@@ -97096,11 +97278,6 @@ function FormUnit(configure) {
97096
97278
  description: "一组表单字段及其布局"
97097
97279
  });
97098
97280
  }
97099
- function registerFormVariablesIfAbsent(env) {
97100
- const declared = new Set(env.getDefinitions().variables.map((v) => v.name));
97101
- if (!declared.has("now")) env.registerVariable("now", "Date", { label: "当前时间", description: "当前日期/时间" });
97102
- if (!declared.has("form")) env.registerVariable("form", "dyn", { label: "表单值", description: "当前表单状态" });
97103
- }
97104
97281
  function FormConfig(configure) {
97105
97282
  const formConfigure = (env) => {
97106
97283
  registerFormVariablesIfAbsent(env);
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shwfed",
3
3
  "configKey": "shwfed",
4
- "version": "2.4.1",
4
+ "version": "2.5.1",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"