@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
@@ -2,7 +2,6 @@
2
2
  import { computed } from "vue";
3
3
  import { Icon } from "@iconify/vue";
4
4
  import { ExpressionEditor } from "../../../../ui/expression-editor";
5
- import { Switch } from "../../../../ui/switch";
6
5
  import { Separator } from "../../../../ui/separator";
7
6
  import { Field, FieldLabel } from "../../../../ui/field";
8
7
  import { Locale } from "../../../../ui/locale";
@@ -10,6 +9,7 @@ import {
10
9
  InputGroup,
11
10
  InputGroupAddon,
12
11
  InputGroupButton,
12
+ InputGroupInput,
13
13
  InputGroupNumberField
14
14
  } from "../../../../ui/input-group";
15
15
  import { getStructFieldDescription, getStructFieldTitle } from "../../../utils/schema-meta";
@@ -400,14 +400,10 @@ function updateTriggers(next) {
400
400
  <Separator />
401
401
  <div class="flex flex-wrap gap-x-8 gap-y-3">
402
402
  <Field
403
- orientation="horizontal"
404
- class="w-auto gap-2"
403
+ orientation="vertical"
404
+ class="w-full max-w-xs"
405
405
  >
406
- <Switch
407
- :model-value="value.enableSorting ?? false"
408
- @update:model-value="(v) => value = { ...value, enableSorting: v }"
409
- />
410
- <FieldLabel class="text-sm text-zinc-600">
406
+ <FieldLabel class="text-xs text-zinc-500">
411
407
  <template
412
408
  v-if="fieldDescription('enableSorting')"
413
409
  #tooltip
@@ -420,6 +416,23 @@ function updateTriggers(next) {
420
416
  </template>
421
417
  {{ fieldTitle("enableSorting") }}
422
418
  </FieldLabel>
419
+ <InputGroup>
420
+ <InputGroupInput
421
+ :model-value="value.sortKey"
422
+ placeholder="例:created_at"
423
+ @update:model-value="(v) => value = { ...value, sortKey: v || void 0 }"
424
+ />
425
+ <InputGroupAddon align="inline-end">
426
+ <InputGroupButton
427
+ :variant="value.enableSorting ? 'primary' : 'ghost'"
428
+ size="xs"
429
+ @click="value = { ...value, enableSorting: !value.enableSorting }"
430
+ >
431
+ <Icon :icon="value.enableSorting ? 'fluent:arrow-sort-up-16-regular' : 'fluent:arrow-sort-16-regular'" />
432
+ {{ fieldTitle("enableSorting") }}
433
+ </InputGroupButton>
434
+ </InputGroupAddon>
435
+ </InputGroup>
423
436
  </Field>
424
437
  </div>
425
438
  </div>
@@ -40,9 +40,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
40
40
  readonly readonly?: string | undefined;
41
41
  readonly request: string;
42
42
  readonly grow?: boolean | undefined;
43
- readonly accessor: string;
44
- readonly options: string;
45
43
  readonly enableSorting?: boolean | undefined;
44
+ readonly options: string;
46
45
  readonly optionValue: string;
47
46
  readonly optionLabel: readonly [{
48
47
  readonly locale: "zh";
@@ -52,6 +51,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
52
51
  readonly message: string;
53
52
  }[]];
54
53
  readonly successMessage?: string | undefined;
54
+ readonly accessor: string;
55
+ readonly sortKey?: string | undefined;
55
56
  }) => any;
56
57
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
57
58
  "onUpdate:modelValue"?: ((value: {
@@ -91,9 +92,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
91
92
  readonly readonly?: string | undefined;
92
93
  readonly request: string;
93
94
  readonly grow?: boolean | undefined;
94
- readonly accessor: string;
95
- readonly options: string;
96
95
  readonly enableSorting?: boolean | undefined;
96
+ readonly options: string;
97
97
  readonly optionValue: string;
98
98
  readonly optionLabel: readonly [{
99
99
  readonly locale: "zh";
@@ -103,6 +103,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
103
103
  readonly message: string;
104
104
  }[]];
105
105
  readonly successMessage?: string | undefined;
106
+ readonly accessor: string;
107
+ readonly sortKey?: string | undefined;
106
108
  }) => any) | undefined;
107
109
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
108
110
  declare const _default: typeof __VLS_export;
@@ -67,6 +67,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
67
67
  }>]>;
68
68
  accessor: Schema.Schema<string, string, never>;
69
69
  enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
70
+ sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
70
71
  size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
71
72
  grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
72
73
  tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
@@ -63,9 +63,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
63
63
  }[]] | undefined;
64
64
  readonly readonly?: string | undefined;
65
65
  readonly grow?: boolean | undefined;
66
- readonly accessor: string;
67
66
  readonly enableSorting?: boolean | undefined;
68
67
  readonly successMessage?: string | undefined;
68
+ readonly accessor: string;
69
+ readonly sortKey?: string | undefined;
69
70
  }) => any;
70
71
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
71
72
  "onUpdate:modelValue"?: ((value: {
@@ -128,9 +129,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
128
129
  }[]] | undefined;
129
130
  readonly readonly?: string | undefined;
130
131
  readonly grow?: boolean | undefined;
131
- readonly accessor: string;
132
132
  readonly enableSorting?: boolean | undefined;
133
133
  readonly successMessage?: string | undefined;
134
+ readonly accessor: string;
135
+ readonly sortKey?: string | undefined;
134
136
  }) => any) | undefined;
135
137
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
136
138
  declare const _default: typeof __VLS_export;
@@ -4,7 +4,6 @@ import { Icon } from "@iconify/vue";
4
4
  import { Button } from "../../../../ui/button";
5
5
  import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../../../../ui/dropdown-menu";
6
6
  import { ExpressionEditor } from "../../../../ui/expression-editor";
7
- import { Switch } from "../../../../ui/switch";
8
7
  import { Separator } from "../../../../ui/separator";
9
8
  import { Field, FieldLabel } from "../../../../ui/field";
10
9
  import { Locale } from "../../../../ui/locale";
@@ -560,14 +559,10 @@ function setItemTooltip(index, tooltip) {
560
559
  <Separator />
561
560
  <div class="flex flex-wrap gap-x-8 gap-y-3">
562
561
  <Field
563
- orientation="horizontal"
564
- class="w-auto gap-2"
562
+ orientation="vertical"
563
+ class="w-full max-w-xs"
565
564
  >
566
- <Switch
567
- :model-value="value.enableSorting ?? false"
568
- @update:model-value="(v) => value = { ...value, enableSorting: v }"
569
- />
570
- <FieldLabel class="text-sm text-zinc-600">
565
+ <FieldLabel class="text-xs text-zinc-500">
571
566
  <template
572
567
  v-if="fieldDescription('enableSorting')"
573
568
  #tooltip
@@ -580,6 +575,23 @@ function setItemTooltip(index, tooltip) {
580
575
  </template>
581
576
  {{ fieldTitle("enableSorting") }}
582
577
  </FieldLabel>
578
+ <InputGroup>
579
+ <InputGroupInput
580
+ :model-value="value.sortKey"
581
+ placeholder="例:created_at"
582
+ @update:model-value="(v) => value = { ...value, sortKey: v || void 0 }"
583
+ />
584
+ <InputGroupAddon align="inline-end">
585
+ <InputGroupButton
586
+ :variant="value.enableSorting ? 'primary' : 'ghost'"
587
+ size="xs"
588
+ @click="value = { ...value, enableSorting: !value.enableSorting }"
589
+ >
590
+ <Icon :icon="value.enableSorting ? 'fluent:arrow-sort-up-16-regular' : 'fluent:arrow-sort-16-regular'" />
591
+ {{ fieldTitle("enableSorting") }}
592
+ </InputGroupButton>
593
+ </InputGroupAddon>
594
+ </InputGroup>
583
595
  </Field>
584
596
  </div>
585
597
  </div>
@@ -63,9 +63,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
63
63
  }[]] | undefined;
64
64
  readonly readonly?: string | undefined;
65
65
  readonly grow?: boolean | undefined;
66
- readonly accessor: string;
67
66
  readonly enableSorting?: boolean | undefined;
68
67
  readonly successMessage?: string | undefined;
68
+ readonly accessor: string;
69
+ readonly sortKey?: string | undefined;
69
70
  }) => any;
70
71
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
71
72
  "onUpdate:modelValue"?: ((value: {
@@ -128,9 +129,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
128
129
  }[]] | undefined;
129
130
  readonly readonly?: string | undefined;
130
131
  readonly grow?: boolean | undefined;
131
- readonly accessor: string;
132
132
  readonly enableSorting?: boolean | undefined;
133
133
  readonly successMessage?: string | undefined;
134
+ readonly accessor: string;
135
+ readonly sortKey?: string | undefined;
134
136
  }) => any) | undefined;
135
137
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
136
138
  declare const _default: typeof __VLS_export;
@@ -108,6 +108,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
108
108
  }>]>;
109
109
  accessor: Schema.Schema<string, string, never>;
110
110
  enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
111
+ sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
111
112
  size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
112
113
  grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
113
114
  tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
@@ -64,6 +64,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
64
64
  readonly expression: string;
65
65
  } | undefined;
66
66
  readonly enableSorting?: boolean | undefined;
67
+ readonly sortKey?: string | undefined;
67
68
  }) => any;
68
69
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
69
70
  "onUpdate:modelValue"?: ((value: {
@@ -127,6 +128,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
127
128
  readonly expression: string;
128
129
  } | undefined;
129
130
  readonly enableSorting?: boolean | undefined;
131
+ readonly sortKey?: string | undefined;
130
132
  }) => any) | undefined;
131
133
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
132
134
  declare const _default: typeof __VLS_export;
@@ -4,7 +4,6 @@ import { Icon } from "@iconify/vue";
4
4
  import { Button } from "../../../../ui/button";
5
5
  import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../../../../ui/dropdown-menu";
6
6
  import { ExpressionEditor } from "../../../../ui/expression-editor";
7
- import { Switch } from "../../../../ui/switch";
8
7
  import { Separator } from "../../../../ui/separator";
9
8
  import { Field, FieldLabel } from "../../../../ui/field";
10
9
  import { Locale } from "../../../../ui/locale";
@@ -507,14 +506,10 @@ function setItemTooltip(index, tooltip) {
507
506
  <Separator />
508
507
  <div class="flex flex-wrap gap-x-8 gap-y-3">
509
508
  <Field
510
- orientation="horizontal"
511
- class="w-auto gap-2"
509
+ orientation="vertical"
510
+ class="w-full max-w-xs"
512
511
  >
513
- <Switch
514
- :model-value="value.enableSorting ?? false"
515
- @update:model-value="(v) => value = { ...value, enableSorting: v }"
516
- />
517
- <FieldLabel class="text-sm text-zinc-600">
512
+ <FieldLabel class="text-xs text-zinc-500">
518
513
  <template
519
514
  v-if="fieldDescription('enableSorting')"
520
515
  #tooltip
@@ -527,6 +522,23 @@ function setItemTooltip(index, tooltip) {
527
522
  </template>
528
523
  {{ fieldTitle("enableSorting") }}
529
524
  </FieldLabel>
525
+ <InputGroup>
526
+ <InputGroupInput
527
+ :model-value="value.sortKey"
528
+ placeholder="例:created_at"
529
+ @update:model-value="(v) => value = { ...value, sortKey: v || void 0 }"
530
+ />
531
+ <InputGroupAddon align="inline-end">
532
+ <InputGroupButton
533
+ :variant="value.enableSorting ? 'primary' : 'ghost'"
534
+ size="xs"
535
+ @click="value = { ...value, enableSorting: !value.enableSorting }"
536
+ >
537
+ <Icon :icon="value.enableSorting ? 'fluent:arrow-sort-up-16-regular' : 'fluent:arrow-sort-16-regular'" />
538
+ {{ fieldTitle("enableSorting") }}
539
+ </InputGroupButton>
540
+ </InputGroupAddon>
541
+ </InputGroup>
530
542
  </Field>
531
543
  </div>
532
544
  </div>
@@ -64,6 +64,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
64
64
  readonly expression: string;
65
65
  } | undefined;
66
66
  readonly enableSorting?: boolean | undefined;
67
+ readonly sortKey?: string | undefined;
67
68
  }) => any;
68
69
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
69
70
  "onUpdate:modelValue"?: ((value: {
@@ -127,6 +128,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
127
128
  readonly expression: string;
128
129
  } | undefined;
129
130
  readonly enableSorting?: boolean | undefined;
131
+ readonly sortKey?: string | undefined;
130
132
  }) => any) | undefined;
131
133
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
132
134
  declare const _default: typeof __VLS_export;
@@ -106,6 +106,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
106
106
  }>]>;
107
107
  binding: Schema.refine<string, typeof Schema.String>;
108
108
  enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
109
+ sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
109
110
  size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
110
111
  grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
111
112
  tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
@@ -40,9 +40,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
40
40
  readonly readonly?: string | undefined;
41
41
  readonly request: string;
42
42
  readonly grow?: boolean | undefined;
43
- readonly accessor: string;
44
- readonly options: string;
45
43
  readonly enableSorting?: boolean | undefined;
44
+ readonly options: string;
46
45
  readonly optionValue: string;
47
46
  readonly optionLabel: readonly [{
48
47
  readonly locale: "zh";
@@ -52,6 +51,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
52
51
  readonly message: string;
53
52
  }[]];
54
53
  readonly successMessage?: string | undefined;
54
+ readonly accessor: string;
55
+ readonly sortKey?: string | undefined;
55
56
  }) => any;
56
57
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
57
58
  "onUpdate:modelValue"?: ((value: {
@@ -91,9 +92,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
91
92
  readonly readonly?: string | undefined;
92
93
  readonly request: string;
93
94
  readonly grow?: boolean | undefined;
94
- readonly accessor: string;
95
- readonly options: string;
96
95
  readonly enableSorting?: boolean | undefined;
96
+ readonly options: string;
97
97
  readonly optionValue: string;
98
98
  readonly optionLabel: readonly [{
99
99
  readonly locale: "zh";
@@ -103,6 +103,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
103
103
  readonly message: string;
104
104
  }[]];
105
105
  readonly successMessage?: string | undefined;
106
+ readonly accessor: string;
107
+ readonly sortKey?: string | undefined;
106
108
  }) => any) | undefined;
107
109
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
108
110
  declare const _default: typeof __VLS_export;
@@ -2,7 +2,6 @@
2
2
  import { computed } from "vue";
3
3
  import { Icon } from "@iconify/vue";
4
4
  import { ExpressionEditor } from "../../../../ui/expression-editor";
5
- import { Switch } from "../../../../ui/switch";
6
5
  import { Separator } from "../../../../ui/separator";
7
6
  import { Field, FieldLabel } from "../../../../ui/field";
8
7
  import { Locale } from "../../../../ui/locale";
@@ -10,6 +9,7 @@ import {
10
9
  InputGroup,
11
10
  InputGroupAddon,
12
11
  InputGroupButton,
12
+ InputGroupInput,
13
13
  InputGroupNumberField
14
14
  } from "../../../../ui/input-group";
15
15
  import { getStructFieldDescription, getStructFieldTitle } from "../../../utils/schema-meta";
@@ -400,14 +400,10 @@ function updateTriggers(next) {
400
400
  <Separator />
401
401
  <div class="flex flex-wrap gap-x-8 gap-y-3">
402
402
  <Field
403
- orientation="horizontal"
404
- class="w-auto gap-2"
403
+ orientation="vertical"
404
+ class="w-full max-w-xs"
405
405
  >
406
- <Switch
407
- :model-value="value.enableSorting ?? false"
408
- @update:model-value="(v) => value = { ...value, enableSorting: v }"
409
- />
410
- <FieldLabel class="text-sm text-zinc-600">
406
+ <FieldLabel class="text-xs text-zinc-500">
411
407
  <template
412
408
  v-if="fieldDescription('enableSorting')"
413
409
  #tooltip
@@ -420,6 +416,23 @@ function updateTriggers(next) {
420
416
  </template>
421
417
  {{ fieldTitle("enableSorting") }}
422
418
  </FieldLabel>
419
+ <InputGroup>
420
+ <InputGroupInput
421
+ :model-value="value.sortKey"
422
+ placeholder="例:created_at"
423
+ @update:model-value="(v) => value = { ...value, sortKey: v || void 0 }"
424
+ />
425
+ <InputGroupAddon align="inline-end">
426
+ <InputGroupButton
427
+ :variant="value.enableSorting ? 'primary' : 'ghost'"
428
+ size="xs"
429
+ @click="value = { ...value, enableSorting: !value.enableSorting }"
430
+ >
431
+ <Icon :icon="value.enableSorting ? 'fluent:arrow-sort-up-16-regular' : 'fluent:arrow-sort-16-regular'" />
432
+ {{ fieldTitle("enableSorting") }}
433
+ </InputGroupButton>
434
+ </InputGroupAddon>
435
+ </InputGroup>
423
436
  </Field>
424
437
  </div>
425
438
  </div>
@@ -40,9 +40,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
40
40
  readonly readonly?: string | undefined;
41
41
  readonly request: string;
42
42
  readonly grow?: boolean | undefined;
43
- readonly accessor: string;
44
- readonly options: string;
45
43
  readonly enableSorting?: boolean | undefined;
44
+ readonly options: string;
46
45
  readonly optionValue: string;
47
46
  readonly optionLabel: readonly [{
48
47
  readonly locale: "zh";
@@ -52,6 +51,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
52
51
  readonly message: string;
53
52
  }[]];
54
53
  readonly successMessage?: string | undefined;
54
+ readonly accessor: string;
55
+ readonly sortKey?: string | undefined;
55
56
  }) => any;
56
57
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
57
58
  "onUpdate:modelValue"?: ((value: {
@@ -91,9 +92,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
91
92
  readonly readonly?: string | undefined;
92
93
  readonly request: string;
93
94
  readonly grow?: boolean | undefined;
94
- readonly accessor: string;
95
- readonly options: string;
96
95
  readonly enableSorting?: boolean | undefined;
96
+ readonly options: string;
97
97
  readonly optionValue: string;
98
98
  readonly optionLabel: readonly [{
99
99
  readonly locale: "zh";
@@ -103,6 +103,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
103
103
  readonly message: string;
104
104
  }[]];
105
105
  readonly successMessage?: string | undefined;
106
+ readonly accessor: string;
107
+ readonly sortKey?: string | undefined;
106
108
  }) => any) | undefined;
107
109
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
108
110
  declare const _default: typeof __VLS_export;
@@ -67,6 +67,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
67
67
  }>]>;
68
68
  accessor: Schema.Schema<string, string, never>;
69
69
  enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
70
+ sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
70
71
  size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
71
72
  grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
72
73
  tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
@@ -63,9 +63,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
63
63
  }[]] | undefined;
64
64
  readonly readonly?: string | undefined;
65
65
  readonly grow?: boolean | undefined;
66
- readonly accessor: string;
67
66
  readonly enableSorting?: boolean | undefined;
68
67
  readonly successMessage?: string | undefined;
68
+ readonly accessor: string;
69
+ readonly sortKey?: string | undefined;
69
70
  }) => any;
70
71
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
71
72
  "onUpdate:modelValue"?: ((value: {
@@ -128,9 +129,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
128
129
  }[]] | undefined;
129
130
  readonly readonly?: string | undefined;
130
131
  readonly grow?: boolean | undefined;
131
- readonly accessor: string;
132
132
  readonly enableSorting?: boolean | undefined;
133
133
  readonly successMessage?: string | undefined;
134
+ readonly accessor: string;
135
+ readonly sortKey?: string | undefined;
134
136
  }) => any) | undefined;
135
137
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
136
138
  declare const _default: typeof __VLS_export;
@@ -4,7 +4,6 @@ import { Icon } from "@iconify/vue";
4
4
  import { Button } from "../../../../ui/button";
5
5
  import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../../../../ui/dropdown-menu";
6
6
  import { ExpressionEditor } from "../../../../ui/expression-editor";
7
- import { Switch } from "../../../../ui/switch";
8
7
  import { Separator } from "../../../../ui/separator";
9
8
  import { Field, FieldLabel } from "../../../../ui/field";
10
9
  import { Locale } from "../../../../ui/locale";
@@ -560,14 +559,10 @@ function setItemTooltip(index, tooltip) {
560
559
  <Separator />
561
560
  <div class="flex flex-wrap gap-x-8 gap-y-3">
562
561
  <Field
563
- orientation="horizontal"
564
- class="w-auto gap-2"
562
+ orientation="vertical"
563
+ class="w-full max-w-xs"
565
564
  >
566
- <Switch
567
- :model-value="value.enableSorting ?? false"
568
- @update:model-value="(v) => value = { ...value, enableSorting: v }"
569
- />
570
- <FieldLabel class="text-sm text-zinc-600">
565
+ <FieldLabel class="text-xs text-zinc-500">
571
566
  <template
572
567
  v-if="fieldDescription('enableSorting')"
573
568
  #tooltip
@@ -580,6 +575,23 @@ function setItemTooltip(index, tooltip) {
580
575
  </template>
581
576
  {{ fieldTitle("enableSorting") }}
582
577
  </FieldLabel>
578
+ <InputGroup>
579
+ <InputGroupInput
580
+ :model-value="value.sortKey"
581
+ placeholder="例:created_at"
582
+ @update:model-value="(v) => value = { ...value, sortKey: v || void 0 }"
583
+ />
584
+ <InputGroupAddon align="inline-end">
585
+ <InputGroupButton
586
+ :variant="value.enableSorting ? 'primary' : 'ghost'"
587
+ size="xs"
588
+ @click="value = { ...value, enableSorting: !value.enableSorting }"
589
+ >
590
+ <Icon :icon="value.enableSorting ? 'fluent:arrow-sort-up-16-regular' : 'fluent:arrow-sort-16-regular'" />
591
+ {{ fieldTitle("enableSorting") }}
592
+ </InputGroupButton>
593
+ </InputGroupAddon>
594
+ </InputGroup>
583
595
  </Field>
584
596
  </div>
585
597
  </div>
@@ -63,9 +63,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
63
63
  }[]] | undefined;
64
64
  readonly readonly?: string | undefined;
65
65
  readonly grow?: boolean | undefined;
66
- readonly accessor: string;
67
66
  readonly enableSorting?: boolean | undefined;
68
67
  readonly successMessage?: string | undefined;
68
+ readonly accessor: string;
69
+ readonly sortKey?: string | undefined;
69
70
  }) => any;
70
71
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
71
72
  "onUpdate:modelValue"?: ((value: {
@@ -128,9 +129,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
128
129
  }[]] | undefined;
129
130
  readonly readonly?: string | undefined;
130
131
  readonly grow?: boolean | undefined;
131
- readonly accessor: string;
132
132
  readonly enableSorting?: boolean | undefined;
133
133
  readonly successMessage?: string | undefined;
134
+ readonly accessor: string;
135
+ readonly sortKey?: string | undefined;
134
136
  }) => any) | undefined;
135
137
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
136
138
  declare const _default: typeof __VLS_export;
@@ -108,6 +108,7 @@ export declare function schema(configure: (env: Environment) => void): Schema.St
108
108
  }>]>;
109
109
  accessor: Schema.Schema<string, string, never>;
110
110
  enableSorting: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
111
+ sortKey: Schema.optional<Schema.refine<string, typeof Schema.String>>;
111
112
  size: Schema.optional<Schema.refine<number, Schema.filter<typeof Schema.Number>>>;
112
113
  grow: Schema.optional<Schema.SchemaClass<boolean, boolean, never>>;
113
114
  tooltip: Schema.optional<Schema.TupleType<readonly [Schema.Struct<{
@@ -39,6 +39,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
39
39
  readonly mode: "formula" | "prefill";
40
40
  readonly expression: string;
41
41
  } | undefined;
42
+ readonly enableSorting?: boolean | undefined;
42
43
  readonly options: {
43
44
  readonly kind: "remote";
44
45
  readonly request: string;
@@ -78,7 +79,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
78
79
  };
79
80
  }[];
80
81
  };
81
- readonly enableSorting?: boolean | undefined;
82
+ readonly sortKey?: string | undefined;
82
83
  }) => any;
83
84
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
84
85
  "onUpdate:modelValue"?: ((value: {
@@ -117,6 +118,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
117
118
  readonly mode: "formula" | "prefill";
118
119
  readonly expression: string;
119
120
  } | undefined;
121
+ readonly enableSorting?: boolean | undefined;
120
122
  readonly options: {
121
123
  readonly kind: "remote";
122
124
  readonly request: string;
@@ -156,7 +158,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
156
158
  };
157
159
  }[];
158
160
  };
159
- readonly enableSorting?: boolean | undefined;
161
+ readonly sortKey?: string | undefined;
160
162
  }) => any) | undefined;
161
163
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
162
164
  declare const _default: typeof __VLS_export;
@@ -4,7 +4,6 @@ import { Icon } from "@iconify/vue";
4
4
  import { Button } from "../../../../ui/button";
5
5
  import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../../../../ui/dropdown-menu";
6
6
  import { ExpressionEditor } from "../../../../ui/expression-editor";
7
- import { Switch } from "../../../../ui/switch";
8
7
  import { Separator } from "../../../../ui/separator";
9
8
  import { Field, FieldLabel } from "../../../../ui/field";
10
9
  import { Locale } from "../../../../ui/locale";
@@ -673,14 +672,10 @@ function setItemTooltip(index, tooltip) {
673
672
  <Separator />
674
673
  <div class="flex flex-wrap gap-x-8 gap-y-3">
675
674
  <Field
676
- orientation="horizontal"
677
- class="w-auto gap-2"
675
+ orientation="vertical"
676
+ class="w-full max-w-xs"
678
677
  >
679
- <Switch
680
- :model-value="value.enableSorting ?? false"
681
- @update:model-value="(v) => value = { ...value, enableSorting: v }"
682
- />
683
- <FieldLabel class="text-sm text-zinc-600">
678
+ <FieldLabel class="text-xs text-zinc-500">
684
679
  <template
685
680
  v-if="fieldDescription('enableSorting')"
686
681
  #tooltip
@@ -693,6 +688,23 @@ function setItemTooltip(index, tooltip) {
693
688
  </template>
694
689
  {{ fieldTitle("enableSorting") }}
695
690
  </FieldLabel>
691
+ <InputGroup>
692
+ <InputGroupInput
693
+ :model-value="value.sortKey"
694
+ placeholder="例:created_at"
695
+ @update:model-value="(v) => value = { ...value, sortKey: v || void 0 }"
696
+ />
697
+ <InputGroupAddon align="inline-end">
698
+ <InputGroupButton
699
+ :variant="value.enableSorting ? 'primary' : 'ghost'"
700
+ size="xs"
701
+ @click="value = { ...value, enableSorting: !value.enableSorting }"
702
+ >
703
+ <Icon :icon="value.enableSorting ? 'fluent:arrow-sort-up-16-regular' : 'fluent:arrow-sort-16-regular'" />
704
+ {{ fieldTitle("enableSorting") }}
705
+ </InputGroupButton>
706
+ </InputGroupAddon>
707
+ </InputGroup>
696
708
  </Field>
697
709
  </div>
698
710
  </div>